/* team.css — «اجتماعات الفريق» و«مهامي» (الدفعة 2 · العقد §14.3 · R-221 · R-235)
   قواعدُ النموذج المعتمد (قالب-اجتماعات-الفريق.html) منقولةً ببادئة tm-، وكل قاعدةٍ تبدأ بجذر الميزة
   (#page-team · #page-mine · #tm-dlg · #tm-cal · #tm-toast · #tm-tip · #tmAdmBox) أو بصنفٍ مبادَأ.
   لا :root ولا عنصرٌ عارٍ: ما أسقطه R-240 (الشريط التجريبي · الجرس · :root · body · *) لا يُنقل.
   ويُعاد من المنصة كما هو: .pagehead (.in · .eyebrow) · .wrap · .chip · table.ct (R-221).
   والألوانُ رموز: أسطحُ المنصة (--surface · --surface-2 · --ink · --muted · --line) ورموزُ الميزة على جذورها،
   ونظائرُها الداكنة تحت body.dark — فتتبع الوضع الداكن (R-235). وتعبئاتُ الدليل ثابتةٌ في الوضعين وحبرُها محسوب (القاعدة ١). */

/* ═══ رموز الميزة ═══ */
#page-team,#page-mine,#tm-dlg,#tm-cal,#tm-toast,#tm-tip,#tmAdmBox{
  --tm-navy:#275967;     /* حبرُ العناوين على الأسطح الفاتحة */
  --tm-soft:#EDF3F5;     /* سطحٌ ثانٍ مائلٌ إلى الأزرق */
  --tm-soft2:#F4F8F9;    /* تظليلُ المختار والمرور */
  --tm-field:#fbfcfe;
  --tm-shadow-s:0 2px 10px rgba(25,52,60,.06);
  --tm-shadow-m:0 12px 34px -14px rgba(25,52,60,.22);
  --tm-shadow-l:0 26px 60px -26px rgba(20,43,49,.5)}
body.dark #page-team,body.dark #page-mine,body.dark #tm-dlg,body.dark #tm-cal,body.dark #tm-toast,body.dark #tm-tip,body.dark #tmAdmBox{
  --tm-navy:#C7E0E7;--tm-soft:#16272c;--tm-soft2:#233b43;--tm-field:#233b43}
/* رابطٌ على خلفية الصفحة (--bg #eef3f5) لا على بطاقةٍ بيضاء: --teal-t محسوبٌ للأبيض (5.12) وعليها 4.42 — فدرجةُ الأزرق المحسوبة
   على الخلفية المركّبة (القاعدة ٢.٣ · #2E697A: 5.30)؛ وفي الداكن رمزُ المنصّة كما هو */
#page-team{--tm-lnk-pg:#2E697A}
body.dark #page-team{--tm-lnk-pg:var(--teal-t)}
#page-team .tm-olderw .tm-older{color:var(--tm-lnk-pg)}
/* مجموعةُ «الأداء والمؤشرات» في ألوان الترويسة (UI:262-264 — R-210 «أو القيم نفسها في team.css») */
#page-team,#page-mine{--pac:#275967;--pac-d:#1E434E;--pac-l:#EAEFF1;--pac-ink:#fff;--pac-ink2:#fff;--pac-eb:#fff;--pac-ebbg:rgba(0,0,0,.18)}
/* المنصة بلا [hidden] عامّة، والنموذج يعتمد عليها */
#page-team [hidden],#page-mine [hidden],#tm-dlg [hidden],#tm-dlg[hidden],#tm-cal[hidden],#tmAdmBox [hidden]{display:none!important}
#page-team bdi.tm-ltr,#page-mine bdi.tm-ltr,#tm-dlg bdi.tm-ltr{unicode-bidi:isolate;direction:ltr;white-space:nowrap}
#page-team,#page-mine,#tm-dlg{overflow-wrap:break-word}

/* ═══ الشريط: زرُّ «مهامي» وعدّادُه وبندُ «اجتماعات الفريق» (R-213 · R-215 · R-216) ═══ */
#topnav#topnav #tmMineBtn{position:relative}
#topnav#topnav #tmMineCount{position:absolute;top:-5px;left:-5px;background:#A34C00;color:#fff;font-size:10px;font-weight:800;
  min-width:17px;height:17px;border-radius:9px;display:none;align-items:center;justify-content:center;padding:0 3px;line-height:1}
#topnav#topnav #tmMineCount.tm-has{display:flex}
body:not(.tm-on) #tmMineBtn{display:none!important}
body:not(.tm-core) .tm-core-only{display:none!important}

/* ═══ هيكلُ الصفحتين: شريطُ التبويب الداخليّ (R-218) · الترويسة · الانتظار والفشل (R-219 · R-228) ═══ */
.tm-tabbar{background:var(--surface);border-bottom:1px solid var(--line)}
.tm-tabs{max-width:var(--maxw);margin:0 auto;padding:0 26px;display:flex;gap:4px;flex-wrap:wrap}
.tm-tabs button{display:inline-flex;align-items:center;gap:7px;background:none;border:none;border-bottom:3px solid transparent;
  color:var(--muted);font-size:13.5px;font-weight:700;padding:10px 14px 9px;min-height:44px;cursor:pointer;white-space:nowrap}
.tm-tabs button:hover{color:var(--tm-navy)}
.tm-tabs button[aria-selected=true]{color:var(--tm-navy);border-bottom-color:#387F93}
.tm-tabs button i{font-style:normal;background:#FFA95C;color:#5c2b00;border-radius:9px;min-width:19px;height:19px;padding:0 5px;
  font-size:11px;font-weight:800;display:inline-grid;place-items:center;line-height:1}
.tm-ph{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 22px;flex-wrap:wrap}
.tm-ph>div:first-child{min-width:0}
.tm-acts{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tm-wrap{padding-top:22px;padding-bottom:70px}
.tm-wait{padding:26px 6px;color:var(--muted);font-size:13.5px}
.tm-fail{display:block;width:100%;padding:22px;text-align:center;color:var(--ink);background:var(--surface);border:1px dashed #C9D9DE;
  border-radius:12px;font-size:13.5px;font-weight:700;cursor:pointer}
.tm-fail:hover{background:var(--tm-soft2)}
.tm-fail.tm-fail-m{margin-bottom:16px}   /* تعذُّرُ «مهامي» وحده في صفحة «اجتماعات الفريق» (CT-04 · ROB-08) */

/* ═══ الترويسة: موعدُ القادم وشارةُ المسودة ═══ */
.tm-nextm{display:inline-flex;align-items:center;gap:5px 10px;flex-wrap:wrap;background:rgba(0,0,0,.22);border-radius:12px;padding:7px 13px;font-size:12.5px;color:#fff}
.tm-nextm b{font-weight:800}
.tm-nextm .tm-lnk{color:#fff}
.tm-nextm.tm-warn{background:#FFA95C;color:#5c2b00}
.tm-nextm.tm-warn .tm-lnk{color:#5c2b00}
/* حقلُ الموعد في الشريط مضغوطٌ كالنموذج (T:78): وبمحدِّد الصنف وحده (0,2,1) كان يغلبه أساسُ المنصّة (UI:909 · 0,5,1) في الحشو والخطّ،
   و«#page-team input…{width:100%}» (1,2,1) في العرض — فصار الحقلُ 419×36 في سطرٍ وحده والشريطُ ثلاثةَ أسطر (قِيس) */
#page-team .tm-nextm input.tm-dt.tm-nx{width:156px;padding:4px 9px;font-size:12.5px}
.tm-drf{font-style:normal;background:#EFE867;color:#6a650b;border-radius:6px;padding:1px 7px;font-size:10.5px;font-weight:800}

.tm-sec-h{display:flex;align-items:flex-end;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;margin:26px 0 12px}
.tm-sec-h:first-child{margin-top:0}
.tm-sec-h h2{font-size:18px;font-weight:800;color:var(--tm-navy);line-height:1.4}
.tm-sec-h p{font-size:12.5px;color:var(--muted)}

/* ═══ الأزرار — بأسمائها (.btn للمنصة بمقاسٍ آخر) ═══ */
.tm-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:700;font-size:13.5px;border:none;border-radius:11px;
  padding:9px 18px;cursor:pointer;transition:transform .12s,filter .12s;white-space:nowrap;font-family:inherit;line-height:1.5}
.tm-btn:active{transform:translateY(1px) scale(.985)}
.tm-btn:disabled{cursor:default;opacity:.55;transform:none}
.tm-btn-p{background:linear-gradient(135deg,#275967,#2A606F);color:#fff}
.tm-btn-w{background:#fff;color:#275967}
.tm-btn-l{background:var(--surface);color:var(--tm-navy);border:1.5px solid var(--line)}
.tm-btn-s{padding:6px 13px;font-size:12.5px;border-radius:9px}
.tm-lnk{background:none;border:none;color:var(--teal-t);font-weight:700;font-size:12.5px;cursor:pointer;padding:2px 0;
  text-decoration:underline;text-underline-offset:3px;font-family:inherit}

/* ═══ الصور الرمزية والشارات (الألوانُ تعبئةٌ ثابتة وحبرُها axOn — R-014) ═══ */
.tm-av{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:11px;font-weight:800;flex:none;line-height:1}
.tm-av.tm-sm{width:22px;height:22px;font-size:9.5px}
.tm-avs{display:inline-flex}
.tm-avs .tm-av{box-shadow:0 0 0 2px var(--surface)}
.tm-avs .tm-av+.tm-av{margin-inline-start:-6px}
.tm-c-done{background:#80BD66;color:#2b471f}.tm-c-open{background:#387F93;color:#fff}.tm-c-late{background:#FFA95C;color:#6d3300}
.tm-c-new{background:#DCE7EB;color:#275967}.tm-c-off{background:#EEF1F2;color:#5f5d5d}.tm-c-soon{background:#EFE867;color:#5f5a09}
.tm-c-dec{background:#2F395B;color:#fff}.tm-c-rec{background:#EDF5F3;color:#3E786F;box-shadow:inset 0 0 0 1px #CFE4DF}
.tm-c-move{background:#EEF2F4;color:#306C7E}.tm-c-pri{background:#275967;color:#fff}.tm-c-lock{background:#EEF1F2;color:#535252}
.tm-idc{display:inline-block;background:#EDF3F5;color:#275967;border-radius:7px;padding:1px 8px;font-size:11.5px;font-weight:800}
/* والوضعُ الداكن: قاعدةُ المنصة body.dark .chip (UI:2708 · نوعيّتها 0,2,1) تمحو تعبئةَ الحالة فتتشابه الشارات — والتعبئاتُ ثابتةٌ في الوضعين
   (R-014 · R-235): فتُعاد بنوعيّةٍ أعلى (الباني 2 — قِيس: «متأخرة» و«مؤجلة» بلا تعبئةٍ في body.dark) */
body.dark .tm-c-done.chip{background:#80BD66;color:#2b471f}body.dark .tm-c-open.chip{background:#387F93;color:#fff}body.dark .tm-c-late.chip{background:#FFA95C;color:#6d3300}
body.dark .tm-c-new.chip{background:#DCE7EB;color:#275967}body.dark .tm-c-off.chip{background:#EEF1F2;color:#5f5d5d}body.dark .tm-c-soon.chip{background:#EFE867;color:#5f5a09}
body.dark .tm-c-dec.chip{background:#2F395B;color:#fff}body.dark .tm-c-rec.chip{background:#EDF5F3;color:#3E786F}
body.dark .tm-c-move.chip{background:#EEF2F4;color:#306C7E}body.dark .tm-c-pri.chip{background:#275967;color:#fff}body.dark .tm-c-lock.chip{background:#EEF1F2;color:#535252}

/* ═══ لوحة المتابعة ═══ */
.tm-frow{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.tm-frow .tm-fl{font-size:12px;color:var(--muted);font-weight:700;margin-inline-end:2px}
.tm-fchip{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--line);background:var(--surface);border-radius:22px;padding:4px 12px;
  font-size:12.5px;font-weight:700;color:var(--tm-navy);cursor:pointer;white-space:nowrap;font-family:inherit}
.tm-fchip.tm-has-av{padding-inline-start:4px}
.tm-fchip[aria-pressed=true]{background:#275967;color:#fff;border-color:#275967}
.tm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.tm-kt{display:block;width:100%;text-align:start;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--tm-k,#387F93);
  border-radius:14px;padding:13px 16px 12px;box-shadow:var(--tm-shadow-s);color:var(--ink);font-family:inherit}
#page-team button.tm-kt,#page-mine button.tm-kt{cursor:pointer;transition:transform .15s,box-shadow .15s}
#page-team button.tm-kt:hover,#page-mine button.tm-kt:hover{transform:translateY(-2px);box-shadow:var(--tm-shadow-m)}
#page-team button.tm-kt[aria-pressed=true],#page-mine button.tm-kt[aria-pressed=true]{background:var(--tm-soft2);box-shadow:0 0 0 2px #387F93}
/* التسمياتُ الثانوية السبع بلون النموذج var(--grey) #535252 (T:117 · T:127 · T:147 · T:184 · T:267 · T:287 · T:304) — ورمزُ المنصّة الثانويّ
   له نظيرٌ داكن --ink-2 (#c2d8de)؛ وكانت --ink لونَ النصّ (V-3 · المرحلة 6) */
.tm-kt .tm-kl{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--ink-2);font-weight:700}
.tm-kt .tm-kl i{width:10px;height:10px;border-radius:3px;background:var(--tm-k,#387F93);flex:none}
.tm-kt b{display:block;font-size:31px;font-weight:900;color:var(--tm-navy);line-height:1.25;margin-top:2px}
.tm-kt small{display:block;font-size:11.5px;color:var(--muted)}
.tm-kt b.tm-cntv{font-size:25px;line-height:1.55}
.tm-k-open{--tm-k:#387F93}.tm-k-late{--tm-k:#FFA95C}.tm-k-done{--tm-k:#80BD66}.tm-k-pct{--tm-k:#2F395B}
.tm-panels{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;margin-top:12px}
.tm-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 14px 8px;box-shadow:var(--tm-shadow-s)}
.tm-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;padding:0 4px 8px}
.tm-panel h3{font-size:14px;font-weight:800;color:var(--tm-navy)}
.tm-legend{display:flex;gap:6px 13px;flex-wrap:wrap;font-size:11.5px;color:var(--ink-2)}
.tm-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.tm-sw{width:10px;height:10px;border-radius:3px;display:inline-block}
.tm-sw.tm-done,.tm-sg.tm-done{background:#80BD66}.tm-sw.tm-open,.tm-sg.tm-open{background:#387F93}.tm-sw.tm-late,.tm-sg.tm-late{background:#FFA95C}
.tm-brow{display:grid;grid-template-columns:minmax(0,172px) minmax(60px,1fr) auto;align-items:center;gap:12px;width:100%;text-align:start;background:none;
  border:none;border-top:1px solid var(--line);padding:9px 6px;cursor:pointer;color:var(--ink);border-radius:0;font-family:inherit}
.tm-brow:hover{background:var(--tm-soft2)}
.tm-brow.tm-on{background:var(--tm-soft2);box-shadow:inset -3px 0 0 #387F93}
/* التركيزُ ظاهرٌ على البلاطة المضغوطة وصفِّ «بحسب المسؤول» المختار (V-1 · WCAG 2.4.7 · T:23): ظلُّهما يحمل حالَ الاختيار فيغلب حلقةَ المنصّة
   (UI:2973 · box-shadow:var(--ring))، فكان المركَّزُ كغير المركَّز — والتركيزُ إطارٌ بلون الحلقة نفسِه لا ظلّ */
#page-team button.tm-kt[aria-pressed=true]:focus-visible,#page-mine button.tm-kt[aria-pressed=true]:focus-visible,#page-team .tm-brow.tm-on:focus-visible{outline:3px solid rgba(56,127,147,.55);outline-offset:2px}
.tm-bn{display:flex;align-items:center;gap:8px;min-width:0}
.tm-bn>span:last-child{min-width:0}
.tm-bn b{display:block;font-size:13px;font-weight:700;color:var(--tm-navy);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-bn small{display:block;font-size:11px;color:var(--muted);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-barw{display:block;min-width:0}
@media (min-width:721px){.tm-brow[data-act=fperson]{grid-template-columns:minmax(0,172px) minmax(60px,1fr) 190px}}
#tm-items-h{scroll-margin-top:74px}
.tm-o-text,.tm-tk-note textarea{overflow:hidden}
.tm-bar{display:flex;gap:2px;height:14px}
.tm-sg{display:block;min-width:5px}
.tm-sg:last-child{border-radius:4px 0 0 4px}
.tm-nob{font-size:11.5px;color:var(--muted)}
.tm-bnum{font-size:11.5px;color:var(--ink-2);white-space:nowrap}
#tm-tip{position:fixed;z-index:1150;background:#1E434E;color:#fff;font-size:12px;font-weight:700;padding:4px 10px;border-radius:8px;pointer-events:none;
  opacity:0;transition:opacity .12s;white-space:nowrap}

/* ═══ الجداول — table.ct من المنصة كما هو، والزيادات مقيّدة ═══ */
.tm-tw{overflow-x:auto;border-radius:12px}
#page-team table.ct,#page-mine table.ct,#tm-dlg table.ct{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
#page-team table.ct td small,#page-mine table.ct td small,#tm-dlg table.ct td small{display:block;color:var(--muted);font-size:11px}
#page-team table.ct tr.tm-rowb,#tm-dlg table.ct tr.tm-rowb{cursor:pointer}
#page-team table.ct tr.tm-rowb:hover td,#tm-dlg table.ct tr.tm-rowb:hover td{background:var(--tm-soft2)}
#page-team table.ct .tm-tx,#tm-dlg table.ct .tm-tx{min-width:220px}
#page-team table.ct .tm-tx .chip,#tm-dlg table.ct .tm-tx .chip{margin-inline-end:6px}
.tm-rn{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;font-size:11.5px;color:var(--muted);margin-top:3px}
#page-team table.ct td small.tm-rn,#tm-dlg table.ct td small.tm-rn{display:-webkit-box;font-size:11.5px}
#page-team table.ct td small.tm-rn.tm-rnc,#tm-dlg table.ct td small.tm-rn.tm-rnc{display:block}
.tm-older{display:block;margin:8px 6px 4px}
.tm-olderw{margin-top:10px;text-align:center}
.tm-olderw .tm-older{display:inline-block;margin:0}
.tm-first{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:26px 24px;box-shadow:var(--tm-shadow-s);text-align:center;max-width:720px;margin:6px auto 0}
.tm-first h2{font-size:19px;font-weight:800;color:var(--tm-navy)}
.tm-first p{font-size:13.5px;color:var(--ink);margin-top:10px;line-height:1.9}
.tm-first .tm-btn{margin-top:16px}
.tm-ow{display:flex;align-items:center;gap:7px;white-space:nowrap;font-weight:700;color:var(--tm-navy)}
.tm-emp{padding:22px;text-align:center;color:var(--muted);background:var(--surface);border:1px dashed #C9D9DE;border-radius:12px;font-size:13px}

/* ═══ بطاقات الاجتماعات ═══ */
.tm-mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:12px}
.tm-mc{display:flex;flex-direction:column;text-align:start;background:var(--surface);border:1px solid var(--line);border-radius:13px;overflow:hidden;
  box-shadow:var(--tm-shadow-s);cursor:pointer;padding:0;color:var(--ink);transition:transform .2s,box-shadow .2s;font-family:inherit}
.tm-mc:hover{transform:translateY(-2px);box-shadow:var(--tm-shadow-m)}
.tm-mc-h{display:block;background:radial-gradient(120% 120% at 80% -10%,#2A606F,#275967 60%,#18363F);color:#fff;padding:12px 14px 11px}
.tm-mc-k{display:block;color:#C9E0E6;font-size:10.5px;font-weight:700}
.tm-mc-n{display:block;font-weight:900;font-size:20px;line-height:1.35}
.tm-mc-d{display:block;font-size:12px;font-weight:700;margin-top:3px}
.tm-mc-hj{display:block;font-size:11px;color:#D6E3E7}
.tm-mc-b{display:block;padding:11px 14px 12px}
.tm-mc-r{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--ink-2);margin-bottom:9px}
.tm-mc-b .tm-bar{height:10px}
.tm-mc-f{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11.5px;color:var(--muted);margin-top:8px}
.tm-mc-f b{color:var(--teal-t);font-weight:700}
.tm-mc-a{display:inline-flex;align-items:center}
.tm-more{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:11px;background:#DCE7EB;color:#275967;font-size:10.5px;font-weight:800;padding:0 5px;margin-inline-start:4px}

/* ═══ نافذةُ الميزة #tm-dlg (R-224): فوق الشريط (200) و#aiFab (500)، تحت #toast (900) و.adm-ov (1000) ═══ */
#tm-dlg{position:fixed;inset:0;background:rgba(15,35,41,.58);z-index:800;display:grid;place-items:center;padding:14px}
#tm-dlg .tm-mcard{background:var(--surface);color:var(--ink);border-radius:16px;width:min(580px,100%);min-width:0;max-height:92vh;display:flex;flex-direction:column;
  box-shadow:var(--tm-shadow-l);animation:tm-pop .2s ease-out;text-align:start}
#tm-dlg .tm-mcard.tm-wide{width:min(1060px,100%)}
@keyframes tm-pop{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
#tm-dlg .tm-mcard>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
#tm-dlg .tm-mcard>header h3{font-size:17px;font-weight:800;color:var(--tm-navy);line-height:1.4}
#tm-dlg .tm-mcard>header button{background:var(--tm-soft);border:none;width:32px;height:32px;border-radius:9px;color:var(--tm-navy);font-size:14px;font-weight:800;cursor:pointer;flex:none}
#tm-dlg .tm-mbody{padding:16px 18px;overflow:auto}
#tm-dlg .tm-mfoot{display:flex;justify-content:flex-start;gap:9px;flex-wrap:wrap;padding:12px 18px;border-top:1px solid var(--line);background:var(--surface-2);border-radius:0 0 16px 16px}
#tm-dlg .tm-mfoot .tm-sp{flex:1}
#tm-dlg .tm-mfoot .tm-hint{font-size:11.5px;color:var(--muted);align-self:center}
#tm-nm-msg{flex:1 0 100%}
#tm-nm-msg:empty{display:none}
#tm-dlg .tm-mfoot .tm-msg{margin-top:0}

/* ═══ الحقول: هويّتُها من المنصة (القاعدة ٢.٤ · UI:903-922)، ويُضاف المختلف وحده ═══ */
#page-team input:not([type=checkbox]):not([type=radio]),#page-team select,#page-team textarea,
#page-mine input:not([type=checkbox]):not([type=radio]),#page-mine select,#page-mine textarea,
#tm-dlg input:not([type=checkbox]):not([type=radio]),#tm-dlg select,#tm-dlg textarea{width:100%}
#page-team textarea,#page-mine textarea,#tm-dlg textarea{resize:vertical;min-height:38px;line-height:1.6}
#page-team input::placeholder,#page-mine input::placeholder,#tm-dlg input::placeholder,
#page-team textarea::placeholder,#page-mine textarea::placeholder,#tm-dlg textarea::placeholder{color:var(--muted);opacity:1}
.tm-dt{cursor:pointer;caret-color:transparent}
.tm-f{display:block;font-size:12px;font-weight:700;color:var(--tm-navy)}
.tm-f>span{display:block;margin-bottom:4px}
.tm-fgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tm-fgrid.tm-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.tm-fx>*+*{margin-top:10px}
.tm-lead{font-size:13.5px;color:var(--ink);line-height:1.9;margin-bottom:12px}
.tm-sum{margin-top:12px;font-size:12.5px;line-height:1.8;background:var(--surface-2)}
/* الموعدُ المملوء تلقائيًّا بلون السطح الثاني (T:218): وبالصنف والسمة وحدهما (0,2,0) كان يغلبه أساسُ المنصّة (UI:934 · 0,5,1) فبقي بلون الحقول —
   كاشفُ النوعيّة (المرحلة 6 · ui_b2_css_field_rules_win)؛ والمركَّزُ أبيضُ كالنموذج (T:208: التركيزُ يغلب) */
#tm-dlg input.tm-o-due[data-auto]:not(:focus){background:var(--tm-soft)}
.tm-ro{background:var(--tm-soft);border-radius:9px;padding:7px 11px;font-size:13px;font-weight:700;color:var(--tm-navy);min-height:36px}
.tm-ro small{display:block;font-weight:400;color:var(--muted);font-size:11.5px}
.tm-sub-h{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin:20px 0 9px;padding-bottom:6px;border-bottom:2px solid var(--line)}
.tm-sub-h b{font-size:14.5px;font-weight:800;color:var(--tm-navy)}
.tm-sub-h span{font-size:12px;color:var(--muted)}
.tm-att{display:flex;gap:8px 14px;flex-wrap:wrap}
.tm-att label{display:flex;align-items:center;gap:7px;border:1.5px solid var(--line);border-radius:11px;padding:5px 11px;font-size:12.5px;font-weight:700;
  color:var(--tm-navy);cursor:pointer;background:var(--surface)}
.tm-att input[type=checkbox]{width:16px;height:16px;accent-color:#275967}
.tm-att label small{font-weight:400;color:var(--muted);font-size:11.5px}
.tm-rv{display:grid;grid-template-columns:auto minmax(0,1fr) 190px;gap:8px 12px;align-items:center;padding:9px 4px;padding-inline-start:9px;
  border-bottom:1px solid var(--line);border-inline-start:3px solid transparent}
.tm-rv .tm-rt{min-width:0}
.tm-rv .tm-rt b{display:block;font-size:13px;font-weight:700;color:var(--ink);line-height:1.55}
.tm-rv .tm-rt small{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11.5px;color:var(--muted);margin-top:2px}
.tm-rv .tm-rq{grid-column:2/-1;background:#FFF3E6;color:#6d3300;border-radius:9px;padding:5px 10px;font-size:12px}
.tm-rv .tm-rq small{display:block;font-size:11.5px;margin-top:2px}
.tm-rv .tm-rq.tm-nt{background:#EDF3F5;color:#275967}
.tm-rx{display:grid;grid-template-columns:170px minmax(0,1fr);gap:8px}
.tm-rx.tm-one{grid-template-columns:minmax(0,1fr)}
.tm-rv .tm-rx{grid-column:2/-1}
.tm-rv.tm-ask1{border-inline-start-color:#FFA95C}
.tm-rv .tm-rvg{grid-column:2/-1;margin-top:0;color:#6d3300;font-weight:700}
.tm-rvd .tm-rvg{flex:1 0 100%;margin-top:0;color:#6d3300;font-weight:700}
body.dark #tm-dlg .tm-rvg{color:#FFB97B}
.tm-rvd{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:7px 4px;border-bottom:1px solid var(--line);font-size:12.5px}
.tm-rvd span.tm-t{flex:1;min-width:0}
.tm-rvd .tm-rx{flex:1 0 100%}
.tm-rvd label{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--tm-navy);white-space:nowrap;cursor:pointer}
.tm-rvd input[type=checkbox]{width:15px;height:15px;accent-color:#275967}
.tm-orow{display:grid;grid-template-columns:30px minmax(0,1fr) minmax(0,1.9fr) 92px 190px 146px 40px;gap:8px;align-items:start;padding:8px 0;border-bottom:1px solid var(--line)}
.tm-orow .tm-on{display:grid;place-items:center;width:28px;height:36px;border-radius:8px;background:#275967;color:#fff;font-weight:800;font-size:12.5px}
.tm-orow .tm-del{background:none;border:none;color:#A34C00;font-size:12px;font-weight:700;cursor:pointer;padding:8px 2px;font-family:inherit}
.tm-ohead{display:grid;grid-template-columns:30px minmax(0,1fr) minmax(0,1.9fr) 92px 190px 146px 40px;gap:8px;font-size:11.5px;font-weight:700;color:var(--muted);padding:0 0 4px}
#page-team .tm-err,#page-mine .tm-err,#tm-dlg .tm-err{border-color:#B85700!important;background:#FFF7EE!important}
body.dark #page-team .tm-err,body.dark #page-mine .tm-err,body.dark #tm-dlg .tm-err{background:#3a2a1c!important}
.tm-msg{background:#FFF3E6;color:#6d3300;border-radius:9px;padding:7px 11px;font-size:12.5px;margin-top:10px}

/* ═══ مهامي ═══ */
.tm-metiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tm-meter{display:block;height:8px;border-radius:4px;background:#DCE7EB;margin-top:8px;overflow:hidden}
.tm-meter i{display:block;height:100%;background:#387F93;border-radius:4px}
.tm-kt .tm-near{display:block;font-size:14px;font-weight:700;color:var(--tm-navy);line-height:1.5;margin-top:4px}
.tm-say{background:var(--surface);border:1px solid var(--line);border-inline-start:4px solid #387F93;border-radius:12px;padding:10px 14px;margin-top:12px;
  font-size:13px;color:var(--ink);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tm-say.tm-warn{border-inline-start-color:#FFA95C}
.tm-say.tm-good{border-inline-start-color:#80BD66}
.tm-say.tm-top{margin-top:0}
.tm-say.tm-top+.tm-metiles{margin-top:12px}
#tm-dlg .tm-mbody .tm-say.tm-top{margin-bottom:14px}
.tm-say.tm-undo{margin:0 0 8px;border-inline-start-color:#9ABEC9}
.tm-tk{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;background:var(--surface);border:1px solid var(--line);border-inline-start:5px solid #9ABEC9;
  border-radius:13px;padding:13px 16px;box-shadow:var(--tm-shadow-s);margin-bottom:10px}
.tm-tk.tm-doing{border-inline-start-color:#387F93}.tm-tk.tm-soon{border-inline-start-color:#EFE867}.tm-tk.tm-late{border-inline-start-color:#FFA95C}
.tm-tk.tm-flash,.tm-ptk.tm-flash{animation:tm-fl 1.4s ease-out}
@keyframes tm-fl{from{background:rgba(94,172,160,.28)}to{background:var(--surface)}}
.tm-tk-src{font-size:11.5px;color:var(--muted);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tm-tk h3{font-size:14.5px;font-weight:700;color:var(--ink);line-height:1.6;margin:4px 0 6px}
.tm-tk-meta{display:flex;align-items:center;gap:6px 9px;flex-wrap:wrap;font-size:12px;color:var(--ink-2)}
.tm-tk-note{display:block;margin-top:9px;font-size:11.5px;font-weight:700;color:var(--muted);max-width:560px}
.tm-tk-note span{display:block;margin-bottom:3px}
#page-mine .tm-tk-note textarea{min-height:36px}   /* T:377 — وبالصنف وحده (0,1,1) كان يغلبه «#page-mine textarea{min-height:38px}» (1,0,1) */
.tm-tk-c{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.tm-seg{display:inline-flex;border:1.5px solid var(--line);border-radius:11px;overflow:hidden;background:var(--surface)}
.tm-seg button{background:none;border:none;padding:6px 12px;font-size:12.5px;font-weight:700;color:var(--tm-navy);cursor:pointer;white-space:nowrap;font-family:inherit}
.tm-seg button+button{border-inline-start:1.5px solid var(--line)}
.tm-seg button[aria-pressed=true]{background:#275967;color:#fff}
.tm-ask{grid-column:1/-1;background:var(--tm-soft2);border:1px solid var(--line);border-radius:11px;padding:11px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;align-items:end}
.tm-ask.tm-two{grid-template-columns:170px minmax(0,1fr) auto}
.tm-ask .tm-bs{display:flex;gap:7px}
.tm-dn{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;align-items:center;padding:9px 4px;border-bottom:1px solid var(--line);font-size:12.5px}
.tm-dn b{font-weight:700;color:var(--ink)}
.tm-dn small{display:block;color:var(--muted);font-size:11.5px}
.tm-padd{background:var(--surface);border:1px dashed #B9CDD3;border-radius:13px;padding:13px 14px;display:grid;grid-template-columns:minmax(0,1fr) 190px auto;gap:9px;align-items:end;margin-bottom:10px}
.tm-ptk{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px 12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin-bottom:8px}
.tm-ptk input[type=checkbox]{width:20px;height:20px;accent-color:#275967;cursor:pointer}
.tm-ptk b{display:block;font-size:13.5px;font-weight:700;color:var(--ink);line-height:1.5}
.tm-ptk small{display:block;font-size:11.5px;color:var(--muted)}
.tm-ptk.tm-dn1 b{text-decoration:line-through;color:var(--muted)}
.tm-ptk .tm-when{font-size:12px;color:var(--ink-2);white-space:nowrap}
.tm-ptk .tm-del,.tm-pe-b .tm-del{background:none;border:none;color:#A34C00;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}
body.dark #page-mine .tm-del,body.dark #tm-dlg .tm-del{color:#FFB97B}
.tm-ck{display:grid;place-items:center;width:40px;height:40px;margin:-6px -8px -6px -6px;cursor:pointer}
.tm-pb{min-width:0}
.tm-pn{white-space:pre-line;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tm-ptk small.tm-pn{display:-webkit-box}
.tm-ptk.tm-ed{grid-template-columns:minmax(0,230px) minmax(0,1fr);align-items:end;gap:10px 12px;border-color:#387F93;box-shadow:0 0 0 3px rgba(56,127,147,.16)}
#page-mine .tm-ptk.tm-ed textarea{min-height:76px}   /* T:368 — وبالصنفين وحدهما (0,2,1) كان يغلبه «#page-mine textarea{min-height:38px}» (1,0,1) */
.tm-pe-b{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tm-pe-b .tm-sp{flex:1}
.tm-ptk.tm-ptd{grid-template-columns:minmax(0,1fr) auto}
.tm-ptk.tm-ptd b{color:var(--muted);text-decoration:line-through}
.tm-pdel .tm-pdh{margin:2px 0 4px}
.tm-dnbox{margin-top:6px}
.tm-dnbox summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--tm-navy);padding:9px 2px}
.tm-dnbox .tm-panel{margin-top:2px;padding:4px 12px}
.tm-dnbox .tm-ptk{margin-top:8px;margin-bottom:0}
#tm-pcount{color:var(--tm-navy);font-weight:700}
.tm-lft{display:inline-block;margin-inline-start:6px;font-size:11px;font-weight:700;color:var(--muted)}

/* ═══ تفاصيل البند ═══ */
.tm-dl{display:grid;grid-template-columns:118px minmax(0,1fr);gap:7px 12px;font-size:13px}
.tm-dl dt{color:var(--muted);font-weight:700;font-size:12px;padding-top:1px}
.tm-dl dd{color:var(--ink);min-width:0}
.tm-dl dd.tm-pre{white-space:pre-line}
.tm-hist{list-style:none;margin-top:6px;border-inline-start:2px solid #DCE7EB;padding-inline-start:14px}
.tm-hist li{position:relative;padding:5px 0;font-size:12.5px;color:var(--ink)}
.tm-hist li::before{content:"";position:absolute;inset-inline-start:-20px;top:13px;width:10px;height:10px;border-radius:50%;background:#387F93;box-shadow:0 0 0 2px var(--surface)}
.tm-hist li small{display:block;color:var(--muted);font-size:11.5px}
.tm-pp{display:inline-flex;align-items:center;gap:6px;margin-inline-end:16px;margin-block:2px}
.tm-pp small{color:var(--muted);font-size:11.5px}

/* ═══ «كيف تعمل» (R-118 · R-119) ═══ */
.tm-help{margin-bottom:18px}
.tm-help+.tm-sec-h{margin-top:0}
.tm-help-b{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;background:var(--surface);border:1px solid var(--line);
  border-radius:12px;padding:9px 15px;font-size:13.5px;font-weight:700;color:var(--tm-navy);cursor:pointer;text-align:start;box-shadow:var(--tm-shadow-s);font-family:inherit}
.tm-help-b i{font-style:normal;transition:transform .15s}
.tm-help-b[aria-expanded=true]{border-radius:12px 12px 0 0;background:var(--tm-soft2)}
.tm-help-b[aria-expanded=true] i{transform:rotate(180deg)}
.tm-help-p{background:var(--surface);border:1px solid var(--line);border-top:none;border-radius:0 0 12px 12px;padding:13px 15px 12px}
.tm-loop{margin-top:10px;background:var(--tm-soft);border-radius:11px;padding:8px 14px;font-size:12.5px;color:var(--tm-navy);font-weight:700}
.tm-help-p .tm-loop{margin:0 0 11px}
.tm-help-p .tm-intro{margin:0 0 10px;padding:7px 10px;border-radius:8px;background:var(--tm-soft);color:var(--ink);font-size:12.5px;font-weight:700}
.tm-rules{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tm-rules li{background:var(--surface-2);border:1px solid var(--line);border-radius:13px;padding:12px 15px}
.tm-rules b{display:block;font-size:13.5px;font-weight:800;color:var(--tm-navy);line-height:1.6}
.tm-rules span{display:block;font-size:12.5px;color:var(--ink-2);line-height:1.75;margin-top:2px}
.tm-help-p .tm-rules{margin-bottom:10px}

/* ═══ الحضور: بحثٌ بالاسم (combobox) ═══ */
.tm-cb{margin-top:10px;max-width:580px}
.tm-cb ul{list-style:none;border:1.5px solid var(--line);border-radius:11px;margin-top:5px;background:var(--surface);overflow:hidden;box-shadow:var(--tm-shadow-s)}
.tm-cb li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:7px 12px;min-height:44px;cursor:pointer;border-top:1px solid var(--line)}
.tm-cb li:first-child{border-top:none}
.tm-cb li[aria-selected=true]{background:var(--tm-soft2);box-shadow:inset -3px 0 0 #387F93}
.tm-cb li[aria-disabled=true]{cursor:default}
.tm-cb li b{display:block;font-size:13px;font-weight:700;color:var(--tm-navy);line-height:1.5}
.tm-cb li small{display:block;font-size:11.5px;color:var(--muted);line-height:1.45}
.tm-cb li .tm-tg{font-size:11.5px;font-weight:700;color:var(--teal-t);white-space:nowrap}
.tm-cb li[aria-disabled=true] .tm-tg{color:var(--muted)}
.tm-cb li.tm-g{display:block;padding-block:11px;color:var(--tm-navy);font-weight:700;font-size:13px}
.tm-cb li.tm-none{display:block;cursor:default;color:var(--muted);font-size:12.5px;min-height:0;padding-block:10px}
.tm-cb .tm-ask{margin-top:8px}
.tm-w2{grid-column:1/-1}
.tm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tm-fh{display:block;margin-top:4px;font-weight:400;color:var(--muted);font-size:11.5px}

/* ═══ تقويمُ الميزة #tm-cal (R-226): فوق النافذة ═══ */
#tm-cal{position:fixed;z-index:860;width:266px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:var(--tm-shadow-l);padding:10px}
#tm-cal header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
#tm-cal header b{font-size:13.5px;color:var(--tm-navy);font-weight:800}
#tm-cal header button,#tm-cal footer button{background:var(--tm-soft);border:none;border-radius:8px;color:var(--tm-navy);font-weight:800;cursor:pointer;height:28px;min-width:28px;padding:0 10px;font-size:12.5px;font-family:inherit}
#tm-cal .tm-cg{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
#tm-cal .tm-cg span{font-size:11px;color:var(--muted);font-weight:700;text-align:center;padding:3px 0}
#tm-cal .tm-cg button{background:none;border:none;border-radius:8px;height:31px;font-size:12.5px;color:var(--ink);cursor:pointer;font-weight:500;font-family:inherit}
#tm-cal .tm-cg button:hover{background:var(--tm-soft)}
#tm-cal .tm-cg button.tm-td{box-shadow:inset 0 0 0 1.5px #387F93;font-weight:800;color:var(--tm-navy)}
#tm-cal .tm-cg button.tm-sel{background:#275967;color:#fff;font-weight:800}
#tm-cal footer{display:flex;justify-content:space-between;margin-top:8px}

/* ═══ رسالةُ الميزة العابرة #tm-toast (R-227): أسفلَ الوسط، فلا تقع على #toast المنصة (أسفل اليمين) ولا على شارة الحفظ ═══ */
#tm-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#1E434E;color:#fff;font-size:13px;font-weight:700;padding:9px 18px;
  border-radius:12px;box-shadow:var(--tm-shadow-l);z-index:1100;opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .2s,visibility 0s linear .2s;max-width:calc(100vw - 28px);width:max-content;text-align:center}
#tm-toast.tm-show{opacity:1;visibility:visible;transition:opacity .2s,visibility 0s}
/* وفي الجوّال واللوحيّ تقع شارةُ الحفظ (أسفل اليمين 16 · نحو 38 ارتفاعًا — AC:344) ورسالةُ المنصّة (أسفل اليمين 26 · نحو 47) تحت الوسط،
   وكلُّ كتابةٍ تُظهر الشارةَ مع رسالة الميزة: فترتفع فوقهما وتبقى في الوسط (ROB-03 · R-227) */
@media (max-width:1023px){#tm-toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}

/* ═══ تبويبُ لوحة التحكم (R-233 · R-163 · R-249) ═══ */
#tmAdmBox .tm-adm h3{font-size:16px;font-weight:800;color:var(--tm-navy);margin-bottom:10px}
#tmAdmBox .tm-adm h4{font-size:14px;font-weight:800;color:var(--tm-navy);margin:16px 0 4px}
#tmAdmBox .tm-adm-sw{display:flex;gap:8px 18px;flex-wrap:wrap}
#tmAdmBox .tm-adm-r,#tmAdmBox .tm-adm-c{display:inline-flex;align-items:center;gap:8px;border:1.5px solid var(--line);border-radius:11px;padding:7px 12px;
  background:var(--surface);color:var(--ink);font-size:13px;font-weight:700;cursor:pointer;min-height:40px}
#tmAdmBox .tm-adm-r input,#tmAdmBox .tm-adm-c input{width:16px;height:16px;accent-color:#275967}
#tmAdmBox .tm-adm-c small{font-weight:400;color:var(--muted);font-size:11.5px}
#tmAdmBox .tm-adm-note{font-size:12.5px;color:var(--muted);margin-bottom:8px}
#tmAdmBox .tm-adm-list{display:flex;flex-direction:column;gap:7px;align-items:flex-start}
#tmAdmBox .tm-adm-warn{margin-top:12px}
#tmAdmBox .tm-adm-b{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
#tmAdmBox .tm-adm-st{font-size:12.5px;font-weight:700;color:var(--ink)}

/* ═══ العروض الضيّقة (T:358-448) ═══ */
@media (max-width:960px){
  .tm-panels{grid-template-columns:minmax(0,1fr)}
  .tm-orow{grid-template-columns:30px minmax(0,.6fr) minmax(0,1.4fr) minmax(0,1fr);background:var(--surface-2);border:1px solid var(--line);border-radius:11px;padding:9px;margin-bottom:8px}
  .tm-orow>:not(.tm-on){grid-column:2/-1}
  .tm-orow .tm-o-type{grid-column:2}
  .tm-orow .tm-o-owner{grid-column:3}
  .tm-orow .tm-o-due{grid-column:4}
  .tm-orow .tm-del{justify-self:end}
  .tm-fchip{min-height:36px}
  .tm-seg button{min-height:38px}
  .tm-btn-s{min-height:38px}
  .tm-lnk{min-height:36px;display:inline-flex;align-items:center}
  .tm-nextm input.tm-dt{min-height:36px}
  .tm-orow .tm-del,.tm-pe-b .tm-del{min-height:36px;padding-inline:8px}
  .tm-rvd label{min-height:36px}
  .tm-tabs button{min-height:44px}
  .tm-att label{min-height:38px}
  #tm-dlg .tm-mcard>header button{min-width:38px;min-height:38px}
  .tm-ohead{display:none}
  .tm-rv{grid-template-columns:auto minmax(0,1fr)}
  .tm-rv>.tm-avs,.tm-rv>select,.tm-rv>.tm-av{grid-column:2/-1;justify-self:start}
  .tm-rv>select{width:100%}
}
/* أهدافُ اللمس 44 كبقيّة المنصّة — قرار صاحب المشروع 2026-10-17 (ق-15 · القاعدة ٤.١٧.١٦ · R-238، وينقض فيه «كما في القالب» 36–38 · V-2):
   على اللمس (hover:none) في كل عرض — الجوّالُ واللوحيّ — كلُّ ما يُضغط في الصفحتين والنافذة والتقويم ارتفاعُه 44، وزرُّ الأداة (✕ · ← →) 44×44
   و40 عرضًا دون 360. ارتفاعٌ أدنى وحشوٌ لا تغييرُ نصّ (كقواعد اللمس في المنصّة UI:3092-3104)، والنوعيّةُ كنوعيّة ما يغلبه فوقُ (وبعده في الملفّ).
   وبالفأرة دون 960 تبقى قيمُ القالب في الكتلة أعلاه (T:388-399)، وسطحُ المكتب لا يتغيّر */
@media (hover:none){
  .tm-fchip,.tm-seg button,.tm-btn,.tm-btn-s,.tm-del,.tm-orow .tm-del,.tm-pe-b .tm-del,.tm-att label,.tm-rvd label,.tm-tabs button{min-height:44px}
  .tm-lnk{min-height:44px;display:inline-flex;align-items:center}
  .tm-orow .tm-del,.tm-pe-b .tm-del{padding-inline:8px}
  #page-team input:not([type=checkbox]):not([type=radio]),#page-team select,#page-team textarea,
  #page-mine input:not([type=checkbox]):not([type=radio]),#page-mine select,#page-mine textarea,
  #tm-dlg input:not([type=checkbox]):not([type=radio]),#tm-dlg select,#tm-dlg textarea,#page-mine .tm-tk-note textarea{min-height:44px}
  .tm-nextm{min-height:44px;padding-block:0}   /* الشريطُ بارتفاع رابطه «تعديل» (44) لا أطول، وبلا الرابط (غيرُ العضو) بالارتفاع نفسه */
  .tm-dnbox summary{min-height:44px;padding-block:11px}
  .tm-ck{width:44px;height:44px;margin:-8px -10px -8px -8px}
  #tm-dlg .tm-mcard>header button{min-width:44px;min-height:44px}
  #tm-cal{width:min(340px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow-y:auto}
  #tm-cal header button,#tm-cal footer button{height:auto;min-height:44px}
  #tm-cal header button{min-width:44px}
  #tm-cal .tm-cg button{height:44px}
}
@media (hover:none) and (max-width:359px){
  #tm-dlg .tm-mcard>header button,#tm-cal header button{min-width:40px}
}
/* وصفُّ الجدول زرٌّ (role=button · R-237): ارتفاعُ صفّ الجدول حدٌّ أدنى؛ ودون 721 بطاقةٌ (display:grid) أطولُ منه فلا يُثبَّت فيها ارتفاع */
@media (hover:none) and (min-width:721px){
  #page-team table.ct tr.tm-rowb,#tm-dlg table.ct tr.tm-rowb{height:44px}
}
@media (max-width:720px){
  /* لا حشوَ 14 هنا: .wrap و.pagehead بحشو المنصّة 26 (R-221 «كما هي»)، فكان الشريطُ يخرج 12 بكسلًا عن حافّتي المحتوى (V-4) */
  .tm-tabs button{flex:1;justify-content:center;padding:7px 9px;font-size:12.5px}
  .tm-kpis,.tm-metiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  #page-team .pagehead h1,#page-mine .pagehead h1{font-size:23px}
  .tm-wrap{padding-top:18px}
  .tm-brow{grid-template-columns:minmax(0,1fr) auto}
  .tm-brow .tm-barw{grid-column:1/-1;grid-row:2}
  .tm-tk{grid-template-columns:minmax(0,1fr)}
  .tm-tk-c{align-items:flex-start}
  .tm-ask,.tm-ask.tm-two{grid-template-columns:minmax(0,1fr)}
  .tm-fgrid,.tm-rules{grid-template-columns:minmax(0,1fr)}
  .tm-ptk{grid-template-columns:auto minmax(0,1fr) auto}
  .tm-ptk .tm-when{grid-column:2/3;grid-row:2}
  .tm-dl{grid-template-columns:minmax(0,1fr)}
  .tm-dl dt{padding-top:6px}
  .tm-rx{grid-template-columns:minmax(0,1fr)}
  .tm-fgrid.tm-two{grid-template-columns:minmax(0,1fr)}
  .tm-orow{grid-template-columns:30px minmax(0,1fr)}
  .tm-orow .tm-o-type,.tm-orow .tm-o-owner,.tm-orow .tm-o-due{grid-column:2/-1}
  .tm-padd{grid-template-columns:minmax(0,1fr) auto}
  .tm-padd label:first-child{grid-column:1/-1}
  .tm-ptk.tm-ed{grid-template-columns:minmax(0,1fr)}
  #tm-nm-q{font-size:16px}
  #tm-items-h{scroll-margin-top:112px}
  .tm-tw{overflow-x:visible}
  #page-team table.ct,#page-team table.ct tbody,#tm-dlg table.ct,#tm-dlg table.ct tbody{display:block}
  #page-team table.ct thead,#tm-dlg table.ct thead{display:none}
  #page-team table.ct tr,#tm-dlg table.ct tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 9px;align-items:center;padding:11px 12px;border-bottom:1px solid var(--line)}
  #page-team table.ct tr:last-child,#tm-dlg table.ct tr:last-child{border-bottom:none}
  #page-team table.ct td,#tm-dlg table.ct td{display:block;padding:0;border:none;min-width:0}
  #page-team table.ct tr.tm-rowb:hover td,#tm-dlg table.ct tr.tm-rowb:hover td{background:none}
  #page-team table.ct td:nth-child(1),#tm-dlg table.ct td:nth-child(1){grid-area:1/1}
  #page-team table.ct td:nth-child(2),#tm-dlg table.ct td:nth-child(2){grid-area:1/2}
  #page-team table.ct td:nth-child(6),#tm-dlg table.ct td:nth-child(6){grid-area:1/3}
  #page-team table.ct td:nth-child(3),#tm-dlg table.ct td:nth-child(3){grid-area:2/1/3/-1}
  #page-team table.ct td:nth-child(4),#tm-dlg table.ct td:nth-child(4){grid-area:3/1/4/3}
  #page-team table.ct td:nth-child(5),#tm-dlg table.ct td:nth-child(5){grid-area:3/3;text-align:end;max-width:130px}
  #page-team table.ct .tm-tx,#tm-dlg table.ct .tm-tx{min-width:0;line-height:1.7}
}
@media (prefers-reduced-motion:reduce){
  #page-team *,#page-mine *,#tm-dlg *,#tm-dlg,#tm-cal,#tm-toast{animation:none!important;transition:none!important}
}
