/* TaskFlow — LM brand system (Landmark Guides Bhd)
   tangelo #F05123 = accent ONLY (KPI numerals, LM marque, editorial labels) — never status.
   Status stays semantic: green = done, red = overdue.
   Backgrounds are set explicitly (never transparent — the old white-on-white bug).
   Licensed faces (Brother 1816 / Baskerville Display PT) unavailable on this host:
   --tf-sans falls back to Inter/system, --tf-serif to Baskerville/Georgia. */
:root{
  --tf-bg:#f7f6f4; --tf-card:#fff; --tf-fg:#231f20; --tf-mut:#5f595c; --tf-bd:#e5e1de;
  --tf-acc:#d8431c; --tf-acc-ink:#F05123; --tf-acc-soft:#fdece5; --tf-ok:#0f7b4f; --tf-ok-soft:#e6f5ee;
  --tf-warn:#a15c00; --tf-warn-soft:#fdf1de; --tf-bad:#c02626; --tf-bad-soft:#fdeaea;
  --tf-r:14px; --tf-sh:0 1px 2px rgba(35,31,32,.05),0 1px 3px rgba(35,31,32,.06);
  /* TaskFlow owns this namespace: a host surface (desktop preview pane, composer widget frame)
     publishes --card/--border/--accent/--background of its own, and those names used to be ours —
     which is how the app ended up with light cards under light text. Never read a bare token. */
  /* Client ruling 12 Nov: light mode ONLY — the dark palette was never liked. 'light' also keeps
     the browser's own controls (date pickers, scrollbars, autofill) light. Do not reintroduce
     'dark' or a prefers-color-scheme:dark block without a new client ruling. */
  color-scheme: light;
  --tf-acc-fill:#cc3d17; --tf-on-acc:#ffffff;      /* filled primary button: 4.94:1 */
  --tf-on-bad:#ffffff;                              /* filled danger button: 5.92:1  */
  --tf-chip-acc-ink:#c0330e;                     /* 'Ready' chip text: 4.92:1 */
  --tf-field-bg:#ffffff; --tf-field-fg:#231f20;     /* explicit, so a host background can't wash it out */
  /* Band rules on the task list (client 12 Nov: "we need a clear separation line between status of
     tasks, and subjects, and details of tasks"). One step darker than --tf-bd so the rule is seen
     against --tf-bg and not mistaken for a card edge. */
  --tf-sep:#d4ceca;
  --tf-serif:"Baskerville Display PT",Baskerville,"Playfair Display",Georgia,"Times New Roman",serif;
  --tf-sans:"Brother 1816",Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,sans-serif;
}
/* The dark palette block that lived here was removed on client ruling 12 Nov ("dark mode isn't
   nice to be viewed. Only allowed for light mode"). The light tokens above are now the ONLY
   tokens. If a dark theme is ever wanted again it must be an explicit user choice, not the OS. */
/* A duplicated brace here once silently swallowed this rule, which is why grid inputs
   rendered content-box and spilled 12-31px over the neighbouring columns. */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0;color:var(--tf-fg);background:var(--tf-bg);
  /* embedded in another surface (preview pane) the host styles html/body too */
  min-height:100%;
  font-family:var(--tf-sans);font-size:15px;line-height:1.45}
#app-root,#login-root{color:var(--tf-fg);background:var(--tf-bg);min-height:100vh}
/* The shell used to be a fixed 460px on every device: a phone width imposed on a 1280px laptop
   (client 05 Nov: "standardize it by automatically fit into the device default width"). Phone keeps
   the full-bleed column it was designed for; tablet and desktop get a centred reading column, and
   screens that genuinely need width (the meeting grid) opt in with .wide. */
.shell{width:100%;max-width:560px;margin:0 auto;padding:12px 14px 92px}
@media (min-width:720px){ .shell{max-width:760px;padding:18px 22px 96px} }
@media (min-width:1120px){ .shell{max-width:880px} }
header.top{display:flex;align-items:center;gap:10px;padding:8px 2px 12px}
/* Expand/collapse row under Back (client 07 Nov). Pulled up into the header's bottom padding so it
   reads as part of the header rather than page content, and right-aligned so it sits directly under
   the Back button, where the client asked for it. */
.grpbar{display:flex;gap:7px;justify-content:flex-end;align-items:center;margin:-8px 2px 8px}
.grpbar .btn[disabled]{opacity:.45;cursor:default}
.brand{font-weight:700;letter-spacing:-.3px}
.brand .ed{font-family:var(--tf-serif);font-style:italic;font-weight:500;color:var(--tf-acc-fill);margin-right:2px}
.brand small{display:block;font-weight:500;color:var(--tf-mut);font-size:11px;letter-spacing:0}
select,button,input,textarea{font:inherit;color:inherit}
.card{background:var(--tf-card);color:var(--tf-fg);border:1px solid var(--tf-bd);border-radius:var(--tf-r);box-shadow:var(--tf-sh);margin-bottom:10px}
.pad{padding:13px 14px}
h1{font-size:19px;margin:2px 0 3px;letter-spacing:-.4px}
h1 .ed{font-family:var(--tf-serif);font-style:italic;font-weight:400;color:var(--tf-acc-fill);letter-spacing:0}
h2{font-size:15px;margin:0 0 8px}
.mut{color:var(--tf-mut)} .xs{font-size:11.5px} .sm{font-size:12.5px}
.row{display:flex;align-items:center;gap:8px} .sp{margin-left:auto}
/* nowrap + a long name made member chips wider than their card, so they ran past the right edge
   and read as truncated text (client screenshot 04 Nov). They may break; short status chips never
   need to. */
.chip{font-size:11px;font-weight:600;padding:3px 8px;border-radius:999px;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.chip button{flex:none;white-space:nowrap}
.c-over{background:var(--tf-bad-soft);color:var(--tf-bad)} .c-today{background:var(--tf-warn-soft);color:var(--tf-warn)}
.c-soon{background:var(--tf-acc-soft);color:var(--tf-chip-acc-ink)} .c-open{background:var(--tf-bg);color:var(--tf-mut)}
.c-done,.c-ok{background:var(--tf-ok-soft);color:var(--tf-ok)} .c-pend{background:var(--tf-warn-soft);color:var(--tf-warn)}
.btn{border:1px solid var(--tf-bd);background:var(--tf-card);color:var(--tf-fg);border-radius:11px;padding:9px 13px;font-weight:600;cursor:pointer}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.45;cursor:default}
/* act() marks the driving button busy while its request is in flight. It IS disabled, but it must
   not read as "you may not press this" (see the two-oranges ruling just below) — it reads as
   "working": heavier ink than a dead button, progress cursor, aria-busy for screen readers. */
.btn[data-busy]{opacity:.72;cursor:progress}
/* Two-oranges ruling (@uiux, docs/UIUX-AUDIT-04-Nov.md §6b): .btn:disabled{opacity:.45} on a
   PRIMARY composites the accent fill over the card → dark rgb(128,66,47) "rust" with ink at
   2.22:1 (WCAG fail). Every user meets it as "Nothing ready yet" [data-meet-all] on a fresh
   meeting grid (app.js:1481); the other reachable case is #li-go "Signing in…" (transient).
   Disabled primaries/dangerous go NEUTRAL instead of translucent — one orange family, one state
   language. The .45 above stays for neutral/ghost buttons only (neutral ink-on-fill ≈5.58:1 AA).
   DO NOT dodge this by disabling Create on an empty project name: that is an inline-error path
   with the button left enabled (app.js:2153, @qa's do-not-break guard). */
.btn.pri:disabled,.btn.dan:disabled{background:var(--tf-bd);border-color:var(--tf-bd);color:var(--tf-mut);opacity:1}
.btn.pri{background:var(--tf-acc-fill);border-color:var(--tf-acc-fill);color:var(--tf-on-acc)}
.btn.dan{background:var(--tf-bad);border-color:var(--tf-bad);color:var(--tf-on-bad)}
.btn.dan.ghost,.btn.mini.dan{border:1px solid var(--tf-bad-soft);color:var(--tf-bad);background:transparent}
.btn.gho,.btn.ghost{background:transparent}
.btn.big{width:100%;padding:12px;font-size:15px;margin-top:6px}
.btn.mini{padding:6px 10px;font-size:12.5px;border-radius:9px}
/* Chip density (client 12 Nov: "make the font size smaller, the button not so tall, because i
   suppose will have more subjects to be added later"). 12px/8px-padding/34px was sized for four
   filter buttons; the row now carries eleven status buttons plus however many subjects the
   superadmin invents, and at 473px the old two rows ate 340px of a 900px screen before the first
   task appeared. 11px + tighter padding + flex-wrap (so a count badge joins the last text line
   instead of forcing a third one) keeps every chip in the two filter rows the SAME height, which
   is what 'make it same height for both' asked for. Task titles are deliberately NOT shrunk —
   the client's 04 Nov complaint was 'light font'. */
.chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:1px 2px 8px}
.fchip{border:1px solid var(--tf-bd);background:var(--tf-card);border-radius:10px;padding:4px 4px;font-size:11px;font-weight:700;cursor:pointer;color:var(--tf-mut);
       text-align:center;line-height:1.12;min-height:30px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 4px;overflow-wrap:anywhere}
.fchip b{font-weight:800;color:var(--tf-fg)}
/* One flex item per chip (label + count in a single span) so the sentence wraps like text.
   min-width:0 so the item may shrink below its own longest word. */
.fchip>span{min-width:0}
/* (Here lived a dark-scheme override for .fchip.on, removed with dark mode on client ruling
   12 Nov — the light inverted chip below is now the only chip there is.) */
.fchip.on{background:var(--tf-fg);color:var(--tf-bg);border-color:var(--tf-fg)} .fchip.on b{color:var(--tf-bg)}
/* Three labelled bands on My Tasks (client 12 Nov): status filters, subjects, task rows. Each band
   opens with a caption sitting ON its own rule — the separation line the client asked for, at
   16px tall instead of a divider block, and the caption stops the two chip rows reading as one
   wall of buttons. Uppercase + tracked so a caption never reads as another chip. */
.band{margin:0 0 2px;padding-top:5px}
.band + .band{margin-top:3px}
.bandhd{display:flex;align-items:center;gap:8px;margin:0 0 5px;font-size:10.5px;font-weight:800;
        letter-spacing:.7px;text-transform:uppercase;color:var(--tf-mut)}
.bandhd::after{content:"";flex:1 1 auto;height:1px;background:var(--tf-sep)}
/* The download button (client 13 Nov: "move it the same row as the My Tasks"). It used to span the
   whole grid on a line of its own, which made it read as a fourth band heading; now it sits beside
   My Tasks / All Projects as the next cell. It spans TWO cells so the 21-letter label keeps one
   line down to a 360px phone (two cells = 161px there, the label measures 151px) — a wrapped label
   would have made it the tallest control on the screen again, which is what this whole pass is
   about. Drop it back to 1/-1 if the client wants it on its own line after all. */
.chips .dlrow{grid-column:span 2;justify-self:stretch;text-align:center}
/* Consistency (client 13 Nov: "we need consistency"): the two buttons that sit among the chips —
   ⬇ Download Tasks Detail and Load more — were still `.btn.mini` (12.5px text, 44px/50px tall)
   beside 36px chips, so the screen read as two different button families. Same 11px text, same
   box height, same radius as `.fchip`; colour is the only thing that still says "button".
   `.btn.mini` is 2 classes, so these selectors are 3 to actually win. */
.btn.mini.chipbtn, .chips .btn.dlrow{font-size:11px;font-weight:700;padding:4px 9px;line-height:1.12;
        min-height:30px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center}
.grp{display:flex;align-items:center;gap:8px;padding:12px 2px 6px}
.grp .gn{font-size:12px;font-weight:800;letter-spacing:.2px}
.grp .gs{font-size:10.5px;color:var(--tf-mut);min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grp .btn{white-space:nowrap;flex:none}
.grp .dot{width:7px;height:7px;border-radius:50%;background:var(--tf-acc);flex:none}
.task{padding:12px 14px;border-bottom:1px solid var(--tf-bd);cursor:pointer}
.task:last-child{border-bottom:0}
.task .t{font-weight:600;margin-bottom:3px;white-space:pre-wrap;overflow-wrap:anywhere}
/* Multi-line task descriptions (client 13 Nov: keyed line-per-line "to ease the viewing of the
   task details") — the card keeps the lines exactly as typed. The meeting grid's own read strip
   (.gr-read) was retired the same day: the cell grew into a textarea, so the mirror only repeated
   what was already on screen. */
.task .m{font-size:11.5px;color:var(--tf-mut)}
.bar{position:fixed;left:0;right:0;bottom:0;background:var(--tf-card);color:var(--tf-fg);border-top:1px solid var(--tf-bd);
     display:flex;justify-content:space-around;padding:7px 2px 9px;z-index:20;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.bar::-webkit-scrollbar{display:none}
.bar button{background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:2px;
     font-size:12px;font-weight:600;color:var(--tf-mut);cursor:pointer;padding:4px 8px;border-radius:10px;position:relative;min-width:0;flex:0 0 auto}
.bar button.on{color:var(--tf-acc-fill)}
.bar .ic{font-size:19px;line-height:1}
/* Eight doors on the bar now (client 12 Nov: My Tasks · Inbox · Reminders · Requests up front).
   Labels are spans so a narrow phone can shrink just the words, never the tap target's height. */
.bar .lb{line-height:1.1;white-space:nowrap}
@media (max-width:430px){
  .bar{justify-content:flex-start;padding:6px 4px 8px}
  .bar button{flex:1 0 auto;min-width:44px;padding:4px 3px;font-size:10px;gap:1px}
  .bar .ic{font-size:17px}
}
.badge{position:absolute;top:-1px;right:2px;background:var(--tf-bad);color:var(--tf-on-bad);font-size:10px;font-weight:700;
       border-radius:999px;padding:1px 4px;min-width:16px;text-align:center}
nav.sbs{display:flex;gap:6px;margin:2px 0 10px}
nav.sbs button{flex:1;background:var(--tf-bg);border:1px solid var(--tf-bd);border-radius:9px;padding:7px;font-size:12.5px;font-weight:600;cursor:pointer;color:var(--tf-mut)}
/* Phase 8 (11 Nov), measured in Chromium at 390px: the task screen's own three tabs — Timeline,
   Detail, Files — came out 34px tall, under the 44px a thumb needs, on the control a site person
   uses most. Height is about the finger, not the design, so it is set where phones live. */
@media (max-width:720px){ nav.sbs button{min-height:44px;padding-top:11px;padding-bottom:11px} }
nav.sbs button.on{background:var(--tf-card);color:var(--tf-fg);box-shadow:var(--tf-sh)}
table.k{width:100%;border-collapse:collapse;font-size:12.5px}
table.k td{padding:6px 0;border-bottom:1px solid var(--tf-bd)} table.k tr:last-child td{border-bottom:0}
table.k td:last-child{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
table.k th{text-align:left;font-size:10.5px;letter-spacing:.4px;text-transform:uppercase;color:var(--tf-mut);padding:4px 0;border-bottom:1px solid var(--tf-bd);font-weight:700}
table.k th:last-child{text-align:right}
.tl{list-style:none;margin:0;padding:0}
.tl li{border-left:2px solid var(--tf-bd);padding:0 0 14px 14px;position:relative;margin-left:5px}
.tl li:before{content:"";position:absolute;left:-5px;top:4px;width:8px;height:8px;border-radius:50%;background:var(--tf-mut)}
.tl li.sys:before{background:var(--tf-acc)} .tl li.good:before{background:var(--tf-ok)} .tl li.bad:before{background:var(--tf-bad)}
.tl .h{font-size:12px;font-weight:700} .tl .b{font-size:12.5px;color:var(--tf-mut);margin-top:2px}
.tl .d{font-size:10.5px;color:var(--tf-mut);margin-top:3px;font-variant-numeric:tabular-nums}
.tile{background:var(--tf-card);color:var(--tf-fg);border:1px solid var(--tf-bd);border-radius:var(--tf-r);padding:11px 12px;box-shadow:var(--tf-sh)}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
/* oversized numerals in brand tangelo — display use only, never button text (contrast) */
.tile .n{font-size:24px;font-weight:750;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:var(--tf-acc-ink)}
.meter{height:6px;border-radius:99px;background:var(--tf-bg);overflow:hidden;margin-top:6px}
.meter i{display:block;height:100%;border-radius:99px}
.bucketbar{display:flex;align-items:flex-end;gap:8px;height:86px;padding:6px 2px 0}
.bucketbar .b{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;justify-content:flex-end;height:100%}
.bucketbar .bcol{width:100%;border-radius:6px 6px 2px 2px;background:var(--tf-bad-soft);min-height:3px}
.bucketbar .bcol.hot{background:var(--tf-bad)}
.bucketbar .bn{font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.bucketbar .bl{font-size:11px;color:var(--tf-mut);font-weight:700}
.sheet{position:fixed;inset:0;background:rgba(8,11,16,.5);display:flex;align-items:flex-end;justify-content:center;z-index:40}
.sheet .in{background:var(--tf-card);color:var(--tf-fg);width:100%;max-width:460px;border-radius:18px 18px 0 0;padding:16px 16px 24px;max-height:88%;overflow:auto}
.sheet h3{margin:0 0 4px;font-size:16px}
label{display:block;font-size:11.5px;font-weight:700;color:var(--tf-mut);margin:11px 0 4px;text-transform:uppercase;letter-spacing:.3px}
input[type=text],input[type=email],input[type=password],input[type=date],textarea,select.full{width:100%;background:var(--tf-field-bg);color:var(--tf-field-fg);border:1px solid var(--tf-bd);
  border-radius:10px;padding:10px 11px;outline:none}
/* The rule above is a type WHITELIST, so an <input> with no type attribute (or type=search/number)
   kept the browser's own white box — in a dark UI that is the "bright white rectangle" the client
   screenshotted in the Add-a-project invite row. Theme every text-like control, then let UA
   controls (checkbox/radio/color/range) keep their native look.
   NOTE: this selector weighs (0,8,1), so it outranks table.grid input (0,1,1) — the grid's own
   transparent-border rule is restated at matching weight down there, or every meeting-grid cell
   gets a visible border. Do not "simplify" either side without re-measuring the grid. */
input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=file]):not([type=range]),
textarea,select{background:var(--tf-field-bg);color:var(--tf-field-fg);border:1px solid var(--tf-bd)}
/* An unselected select must not read as a filled value (@uiux, UIUX-AUDIT-04-Nov §6a): JS toggles
   .is-placeholder when selectedIndex===0 && option[0].value==='' (e.g. "Choose a person…"), on
   change and after any re-render. (0,1,1) outranks the blanket `select` item above, which is
   (0,0,1) — specificity is per selector in the list, so no :not() chain is needed here. */
select.is-placeholder{color:var(--tf-mut)}
input::placeholder,textarea::placeholder{color:var(--tf-mut);opacity:1}
select option{background:var(--tf-card);color:var(--tf-fg)}
input:focus,textarea:focus,select:focus{border-color:var(--tf-acc);box-shadow:0 0 0 3px var(--tf-acc-soft)}
textarea{min-height:78px;resize:vertical}
/* .fld — themed AND sized. The blanket rule above paints a control but does not size it, which is
   how #np-nr (Add-project role picker) and .ppl-role (People tab) ended up themed yet still
   21px/16px tall (audit P1-2). Padding deliberately lives HERE and never on the blanket rule:
   table.grid inputs carry their own 1px transparent border + padding, and a global padding would
   spill them over the neighbouring columns (the bug noted above). Explicit bg/fg so a host
   surface embedding the app cannot wash the field out. */
.fld{width:100%;background:var(--tf-field-bg);color:var(--tf-field-fg);border:1px solid var(--tf-bd);
  border-radius:10px;padding:10px 11px;min-height:44px;outline:none}
.hint{font-size:11px;color:var(--tf-mut);margin-top:4px}
.err{font-size:12px;color:var(--tf-bad);font-weight:600;margin-top:7px}
.okmsg{font-size:12px;color:var(--tf-ok);font-weight:600;margin-top:7px}
/* ── The diary (client 13 Nov: "when i click download, i think we also need to include the log or
   update of the tasks, not just description of the tasks. it carries no meaning") ────────────────
   One muted line under the task row carries the newest sentence; the full week-by-week log is on the
   task screen, reading oldest-first like minutes. Nothing here is clickable on its own — the row
   itself opens the task, so a second click target inside a row would fight it. */
.lw{font-size:11.5px;line-height:1.4;color:var(--tf-mut);margin-top:4px;padding-left:2px}
.lw b{color:var(--tf-warn);font-weight:700}
.lw.quiet{color:var(--tf-warn)}
.tl.updates{margin-top:9px}
.tl.updates li:before{background:var(--tf-ok)}
.tl.updates .b{color:var(--tf-fg)}
textarea#u-body.bad{border-color:var(--tf-bad);outline:2px solid var(--tf-bad);outline-offset:-1px}
/* input[type=number] is not in the blanket field rule above, so a percentage box came up unthemed
   and a half-pixel shorter than the date box beside it. Same box, same ink, same height. */
input[type=number]{width:100%;background:var(--tf-field-bg);color:var(--tf-field-fg);border:1px solid var(--tf-bd);
  border-radius:10px;padding:10px 11px;min-height:44px;outline:none}
input[type=number]:focus{border-color:var(--tf-acc);box-shadow:0 0 0 3px var(--tf-acc-soft)}

.pill{display:inline-block;font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:6px;background:var(--tf-bg);color:var(--tf-mut);margin-right:4px}
.f8{font-size:10.5px;color:var(--tf-mut);text-align:center;padding:10px 6px 0;line-height:1.5}
.hide{display:none!important}
.sect{font-size:11px;font-weight:800;letter-spacing:.5px;color:var(--tf-mut);text-transform:uppercase;margin:14px 2px 7px}
.boot{padding:40px 20px;text-align:center;color:var(--tf-mut);font-weight:600}
/* login screen */
.login-wrap{max-width:460px;margin:0 auto;padding:48px 20px 40px}
.login-wrap .mark{font-size:34px;font-weight:800;letter-spacing:-1px;margin-bottom:2px}
.login-wrap .mark .ed{font-family:var(--tf-serif);font-style:italic;font-weight:500;color:var(--tf-acc-ink)}
.login-wrap .tag{color:var(--tf-mut);font-size:13px;margin-bottom:24px}
/* meeting grid — Excel-style entry. The normal shell is a reading column (560 / 760 / 880 by
   device width); the grid needs materially more room than any reading column, so the Meeting screen
   adds .wide (a class, not :has — :has support is not guaranteed here).
   IMPORTANT: the max-width override uses a doubled-class selector (.shell.shell.wide) so it beats
   `.shell` on equal-specificity ordering regardless of rule order, and the mobile case is duplicated
   WITHOUT :has (client screenshot showed thead strip rendering beside, not above, tbody when a :has
   rule was skipped on one engine) — both engines agree at <=720px.
   .wide must stay WIDER than the reading shell at every tier. When the reading shell grew to
   760/880px this rule was left at 760px, which made the "wide" grid the NARROWEST screen in the app
   — measured at 1280px on 05 Nov. Any future change to .shell widths must keep .wide above them. */
.shell.shell.wide{max-width:640px;width:100%}
@media (min-width:721px){ .shell.shell.wide{max-width:1060px} }
@media (min-width:1120px){ .shell.shell.wide{max-width:1240px} }
@media (max-width:720px){
  .shell.shell.wide{max-width:100%}
}
.grid-card{padding:0;overflow:visible}
/* Fixed layout + identical width behaviour on thead and tbody (they share one table box, so
   headers can never split from the cells as long as widths are deterministic — verified: the
   client screenshot was the 460px shell clipping a wider-than-shell table, NOT two tables).
   Widths live on the <colgroup>; table-layout:fixed makes them authoritative.
   Column contract (client 03 Nov): c-no 34 · c-desc = remaining slack (min 240) ·
   c-who >= 220 · c-due >= 130 (tabular) · c-act >= 92. */
/* THE header/body split, root-caused in live Chromium: the tile helper `.grid{display:grid}`
   (line ~86) also matches <table class="grid"> — display:grid destroys the table layout, so
   thead and tbody render as two independent block strips (exactly the client screenshot:
   headers right, rows left). `table.grid` (0,1,1) beats `.grid` (0,1,0) on the table element
   itself, but thead/tbody/tr/td inherit display:grid's children-behave-as-blocks behaviour
   unless display is restored on EVERY structural part. table-layout:fixed alone can never
   win against display:grid. */
table.grid{display:table;width:100%;max-width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed}
table.grid colgroup{display:table-column-group}
table.grid thead{display:table-header-group;width:100%}
table.grid tbody{display:table-row-group;width:100%}
table.grid tr{display:table-row}
table.grid th,table.grid td{display:table-cell}
table.grid col.c-no{width:34px} table.grid col.c-desc{width:auto}
table.grid col.c-who{width:200px} table.grid col.c-due{width:150px} table.grid col.c-act{width:92px}
/* Subject (client 06 Nov). Wide enough for "Bomba Compliance" on one line: a subject column that
   truncates is a subject column nobody can read, and reading it is the whole point. */
table.grid col.c-cat{width:158px}
table.grid .c-cat{padding-top:5px}
table.grid select.g-cat{box-sizing:border-box;width:100%;min-height:44px;background:var(--tf-card);color:var(--tf-fg);
  border:1px solid transparent;border-radius:var(--tf-r);padding:6px 8px;font:inherit;font-size:13.5px}
table.grid select.g-cat:hover{border-color:var(--tf-bd)}
table.grid select.g-cat:focus{border-color:var(--tf-acc);box-shadow:0 0 0 3px var(--tf-acc-soft);outline:none}
table.grid select.g-cat.is-none{color:var(--tf-mut);font-style:italic}
table.grid thead th{font-size:10.5px;letter-spacing:.4px;text-transform:uppercase;color:var(--tf-mut);
  text-align:left;padding:9px 8px;border-bottom:1px solid var(--tf-bd);background:var(--tf-bg);position:sticky;top:0;z-index:2}
table.grid thead th:first-child{border-radius:var(--tf-r) 0 0 0} table.grid thead th:last-child{border-radius:0 var(--tf-r) 0 0}
table.grid td{padding:4px 6px;border-bottom:1px solid var(--tf-bd);vertical-align:top;position:relative}
table.grid tr.gr.is-assigned td{background:var(--tf-ok-soft);color:var(--tf-fg)}
table.grid tr.gr.is-bad td{background:var(--tf-bad-soft);color:var(--tf-fg)}
table.grid .c-no{text-align:center;color:var(--tf-mut);font-size:11.5px;font-weight:700;
  font-variant-numeric:tabular-nums;padding-top:14px}
table.grid .c-desc{min-width:0}
table.grid .c-act{text-align:right;padding-top:6px}
/* 16px input font is deliberate — below it iOS/Android auto-zoom the viewport on focus, which
   re-flows the grid under the caret mid-typing (the "can't read what I'm typing" complaint). */
table.grid input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;background:var(--tf-card);color:var(--tf-fg);border:1px solid transparent;
  border-radius:8px;padding:10px 11px;outline:none;font-size:16px;line-height:1.3}
/* Grid placeholder — opacity:1 is a RULING, not a style preference (@uiux, UIUX-AUDIT-04-Nov
   §6/QA W04-QA-2: "kill the dimming"). Restated at the blanket rule's weight because
   `table.grid input::placeholder` (0,1,3) out-ranked the global `input::placeholder{opacity:1}`
   pin (0,0,2), so grid placeholders kept the UA-ish .75 wash: measured 4.32:1 dark on --tf-card
   and 3.32:1 light on #fff — both AA fails (@qa, 04 Nov). Same lesson as the rules above: match
   the weight, do not reason about it. Bringing .75 back "for style" re-fails WCAG AA. */
table.grid input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=file]):not([type=range])::placeholder{color:var(--tf-mut);opacity:1}
/* Grid controls, restated at (0,9,1)/(0,10,1). The blanket theme rule above carries eight :not()
   attribute selectors = (0,8,1) and outranks `table.grid input` (0,1,1), which silently gave every
   meeting-grid cell a visible --tf-bd border on --tf-field-bg (measured in live CSSOM, 04 Nov — the
   grid is meant to show no border until hover/focus). Weight must be matched, not reasoned about.
   Plain selectors on purpose: a complex :not(table.grid input) here would be dropped wholesale by
   an engine that can't parse it, and dropping it means dropping the theming (the white-box bug).
   :hover/:focus are restated too — a (0,9,1) base would otherwise swallow their (0,2,1) rules. */
table.grid input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=file]):not([type=range]){background:var(--tf-card);color:var(--tf-fg);border:1px solid transparent}
table.grid input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=file]):not([type=range]):hover{border-color:var(--tf-bd)}
table.grid input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=file]):not([type=range]):focus{border-color:var(--tf-acc);background:var(--tf-card);color:var(--tf-fg);box-shadow:0 0 0 3px var(--tf-acc-soft)}
table.grid input:hover{border-color:var(--tf-bd)}
table.grid input:focus{border-color:var(--tf-acc);background:var(--tf-card);color:var(--tf-fg);box-shadow:0 0 0 3px var(--tf-acc-soft)}
table.grid input[readonly]{color:var(--tf-mut);background:transparent}
table.grid input.is-bad{border-color:var(--tf-bad);background:var(--tf-bad-soft);color:var(--tf-fg)}
table.grid .g-due{font-variant-numeric:tabular-nums;letter-spacing:0;text-transform:uppercase}
/* (13 Nov client: "i can't read the whole date") YYYY/MM/DD is 10 characters — on narrower
   screens the cell renders it smaller and with less icon room, so the full date always fits. */
@media (max-width:640px){
  table.grid input.g-due{font-size:13px !important;padding-right:26px;min-width:98px}   /* ! beats the input:not(...) anti-zoom 16px (0,8,1); min-width because auto table-layout treats col widths as hints */
  table.grid .c-due .dt-cal{font-size:13px;right:7px}
}
@media (max-width:430px){
  table.grid input.g-due{font-size:12.5px !important;padding-right:24px;min-width:104px}
}
/* compact on purpose: an error must not shove the row taller (client: "violent jump") —
   small, tight, directly under the description input. */
.g-err{font-size:11.5px;color:var(--tf-bad);font-weight:600;margin-top:2px;line-height:1.25;padding:0 11px 2px;overflow-wrap:anywhere}
/* assignee picker — anchored to the assignee cell (td is position:relative) but deliberately
   wider than it: a person's name plus their firm must read on one line; stays >= 260px. */
.sug{position:absolute;left:0;top:calc(100% - 2px);z-index:30;min-width:260px;width:290px;max-width:min(290px,88vw);
  background:var(--tf-card);color:var(--tf-fg);border:1px solid var(--tf-bd);border-radius:11px;box-shadow:0 8px 22px rgba(35,31,32,.16);
  overflow:hidden;max-height:214px;overflow-y:auto}
.sug.hide{display:none}
.sug::-webkit-scrollbar{width:9px}
.sug::-webkit-scrollbar-thumb{background:var(--tf-bd);border-radius:99px}
.sug-i{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-height:40px;
  width:100%;text-align:left;
  background:none;border:0;border-bottom:1px solid var(--tf-bd);padding:8px 11px;cursor:pointer;font:inherit;color:inherit}
.sug-i:last-child{border-bottom:0}
.sug-i.on,.sug-i:hover{background:var(--tf-acc-soft);color:var(--tf-fg)}
.sug-i b{font-size:13.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.sug-i .xs{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@media (max-width:720px){
  /* duplicate of the full-width rule, :has-free — if an engine drops one rule the other holds */
  .shell:has(.grid-card){max-width:100%}
  /* 34+220+130+92 = 476 of fixed columns + ~240 desc min ≈ 716 min grid. Below that the table
     overflows the shell on purpose (client contract: c-who >= 220, c-due >= 130, c-act >= 92 —
     never squeeze below readable); the user pans horizontally, headers pan WITH the rows since
     they are the same table box. */
  .shell.shell.wide{overflow-x:auto}
  table.grid{width:max-content;min-width:716px}
  table.grid col.c-desc{width:240px}
  /* touch widths: every interactive target >= 44px */
  table.grid .btn.mini{min-height:44px;padding:8px 10px;font-size:12.5px}
  /* audit P1-2: 44px applies to the non-grid controls too, not only the grid's. Same 44 the grid
     already carried (table.grid input, ~line 198) so the grid cannot regress; the :not() chain
     leaves native checkbox/radio/button rendering alone, and textarea is absent because it is
     already 78px — re-listing it here would have shrunk every notes box to 44. */
  input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=file]):not([type=range]),
  select{min-height:44px}
  /* @uiux rulings 1 + 4 (UIUX-AUDIT-04-Nov §107-137): the 44px touch contract covers the whole
     form row, not just its fields. @qa measured Add / Invite＋ at 32.1px and Cancel / Create
     project at 41.8px sitting beside 44px fields, and the meeting-grid footer action row
     ([data-meet-all] "Nothing ready yet" + [data-meet-clear]) at 41.8px. Blanket .btn rather than
     a list of today's offenders — a rule naming four buttons is dead the day a fifth appears.
     Desktop deliberately untouched (43.8px fields / 38px sheet selects / 34px chips accepted as
     pointer density, §2), and table.grid .btn.mini already carried 44 above. */
  .btn{min-height:44px}
  /* 36px, not 44, on the filter chips only — client ruling 12 Nov asked for them 'not so tall'
     because more subjects are coming and the two filter rows pushed the task list off the first
     screen. This is a deliberate, surfaced relaxation of @uiux's own 44px contract, not an
     oversight: 44px was that audit's internal floor, stricter than the published standard
     (WCAG 2.2 SC 2.5.8 Target Size Minimum = 24x24 CSS px, AA). At 36px a thumb still owns the
     target and the chip is still the widest-press control on the screen. `.btn` keeps 44 — the
     relaxation covers chips, not the app's real action buttons. Flip this back to 44 on one line
     if the client prefers the old feel on a phone. */
  .fchip{min-height:36px}
  /* ...and the two buttons that sit among them keep the same height, or the consistency the client
     asked for (13 Nov) dies the moment the screen narrows to a phone. */
  .btn.mini.chipbtn, .chips .btn.dlrow{min-height:36px}
  /* Permissions-matrix cells — @uiux ruling relayed by @qa (04 Nov, QA checklist item 7): these
     were the last sub-44px actionable targets in the console, measured 31.1px @473. Re-measured
     before writing: 414 tbody cells at {30.6, 31.1}px, padding `6px 0px`, vertical-align already
     `middle`, both themes. ≤720px only — desktop density untouched per the R2 precedent, and the
     ~200px scroll cost on the 16-row matrix is @uiux's accepted trade, not my call.
     SELECTOR NOTE so nobody "fixes" this back: the matrix renders as `table.k` inside #perm-matrix
     (app.js:1330); there is no `.perm` class anywhere in this stylesheet, so a `table.perm td` rule
     matches nothing (verified `table.matches('table.perm') === false`) and would have shipped as
     dead CSS while item 7 quietly failed. Scoping on #perm-matrix also keeps this ruling off the
     other `table.k` instance at app.js:539. Padding and vertical centering deliberately untouched.
     MECHANISM NOTE: the ruling was written as `min-height:44px`, which is a NO-OP on a table cell —
     measured in this very build: the rule matched (computed `min-height:44px`) yet cells stayed
     31.1px, and forcing `min-height:60px` inline still rendered 31.1px, while `height:60px` rendered
     60px. Blink treats `height` on a table cell as a minimum (content can still grow the row), which
     is what the ruling wants; `min-height` is simply ignored for `display:table-cell`. Keeping the
     literal `min-height` here would have shipped dead CSS and failed @qa's item 7. */
  #perm-matrix table td{height:44px;vertical-align:middle}
  /* iOS/Android auto-zoom the viewport when a focused control is under 16px, re-flowing the page
     under the caret mid-typing (§3: "density loses to anti-zoom"). .ppl-role was 11.5px; the grid
     inputs were already 16px for the same reason. Direct element rules beat the inherited size
     whatever class set it, so no per-class restatement is needed.
     line-height:1.3 is load-bearing, not decoration: at 16px with the UA `normal` (~1.45) the text
     box grows to 23.2px, so 23.2+20 padding+2 border = 45.2px and a form row's fields silently
     stand 1.2px taller than the buttons beside them (#np-nn/#np-ne measured 45.2 vs Invite 44.0).
     1.3 keeps the natural box under the 44 floor so min-height decides the height — exactly 44.0
     for every sibling, the same value table.grid input already uses. */
  input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=file]):not([type=range]),
  select,textarea{font-size:16px}
  input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=file]):not([type=range]),
  select{line-height:1.3}
}

/* ── narrow tier (client 04 Nov: "some of the information cannot be seen") ─────────────
   The ≤720px contract lets the grid overflow and pan — correct on a 700px window, but in a
   473px pane it parked the Assignee and Due-date columns off-screen behind a scrollbar nobody
   can see. Below 600px nothing is allowed to sit off-screen by accident: the row number is the
   least useful column, so it retires and everything else fits. */
@media (max-width:600px){
  table.grid col.c-no{width:0} table.grid th.c-no, table.grid td.c-no{display:none}
  /* the top-left corner lived on th:first-child, which is the hidden No header at this width —
     move it to the header the user can actually see, or the grid loses its rounded top-left. */
  table.grid thead th.c-desc{border-radius:var(--tf-r) 0 0 0}
  table.grid{width:100%;min-width:0}
  table.grid col.c-who{width:140px} table.grid col.c-due{width:132px} table.grid col.c-act{width:62px}
  /* the subject stays on the phone: it is the column the client asked for, and the date reading
     under each cell needs the room more than the person-picker does */
  table.grid col.c-cat{width:118px}
  table.grid col.c-desc{width:auto}
  table.grid .c-no{display:none}
}
/* Phone width: keep it usable rather than unreadably squeezed, but SAY so (see .panhint). */
@media (max-width:430px){
  table.grid{width:max-content;min-width:430px}
  table.grid col.c-who{width:130px} table.grid col.c-due{width:132px} table.grid col.c-act{width:52px}
}
/* Phase 8 (11 Nov) — two pieces of information that were being cut off in Chromium at 390px and 360px.
   Both are the kind of number and identity a person on site is checking with one thumb, so "1 item(…"
   and "qa.invited.ceo.1794286800213@y" are not acceptable renderings of them. */
@media (max-width:430px){
  /* The group header squeezed its count against the name and the buttons and ellipsised it. */
  details.grpwrap>summary.grp{flex-wrap:wrap;row-gap:2px}
  .grp .gs{white-space:normal;overflow:visible;text-overflow:clip;flex:1 1 auto;min-width:0}
  /* Directory rows: a real work email is 30+ characters and identifies the person. Wrap it. */
  #people-list .xs{overflow-wrap:anywhere;word-break:break-word}
}
/* A pan you cannot see is not a pan: make the scrollbar real, and label it when it exists. */
.shell.shell.wide{scrollbar-width:thin;scrollbar-color:var(--tf-bd) transparent}
.shell.shell.wide::-webkit-scrollbar{height:9px}
.shell.shell.wide::-webkit-scrollbar-track{background:transparent}
.shell.shell.wide::-webkit-scrollbar-thumb{background:var(--tf-bd);border-radius:99px}
.panhint{display:none}
.needs-pan .panhint{display:flex;align-items:center;gap:6px;margin:0 0 7px;padding:6px 9px;border-radius:9px;
  font-size:11.5px;font-weight:700;background:var(--tf-acc-fill);color:var(--tf-on-acc)}
/* Two-column key/value tables must wrap, not push their last column out of the card. */
table.k th,table.k td{overflow-wrap:anywhere;word-break:normal}
/* toast */
#toast-root{position:fixed;left:0;right:0;bottom:78px;display:flex;flex-direction:column;align-items:center;gap:6px;z-index:60;pointer-events:none}
.toast{background:var(--tf-fg);color:var(--tf-bg);font-size:12.5px;font-weight:600;border-radius:11px;padding:9px 14px;max-width:90%;box-shadow:var(--tf-sh)}
.toast.bad{background:var(--tf-bad);color:var(--tf-on-bad)}

/* ── meeting grid: assignee dropdown + row pager, task list load-more ─────────
   04 Nov 2026: the client asked for BOTH ways in — type a name (the suggest popup,
   unchanged) or open the list and pick (the ▾). The popup scrolls because a big
   project roster is longer than the old 8-entry list ever was. */
td.c-who { position: relative; }
td.c-who .g-who { padding-right: 30px; }
.g-who-list { position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 20px; padding: 0; line-height: 1; font-size: 11px; cursor: pointer;
  border: 1px solid var(--tf-bd); border-radius: 4px;
  background: var(--tf-card); color: var(--tf-mut); }
.g-who-list:hover:not([disabled]) { border-color: var(--tf-acc); color: var(--tf-acc); }
.g-who-list[disabled] { opacity: .4; cursor: default; }
/* Hit target, not the visual box: 19x20 was the last sub-44px actionable control in the grid
   (measured at 473px). A 44px pseudo-element makes it thumb-safe without reflowing the column. */
.g-who-list::before { content:''; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:44px; height:44px; }
.g-who-list:focus-visible { outline:2px solid var(--tf-acc); outline-offset:2px; }
/* Second .sug block (row pager era). z-index MUST stay above .bar (20) and below .sheet (40) —
   it briefly read 6 here, which put the roster popup behind the fixed bottom nav. */
.sug { max-height: 268px; overflow: auto; z-index: 30; }
.sug-h { position: sticky; top: 0; padding: 4px 8px; background: var(--tf-card);color:var(--tf-fg);
  border-bottom: 1px solid var(--tf-bd); }
.loadmore { justify-content: center; gap: 10px; margin: 12px 0 4px; }

/* ── meeting lobby (grouped by project, newest first) + new-project sheet ─────
   04 Nov 2026: meetings must file under their project with the latest on top, and
   the add-project entry point belongs at the top of Projects, not below the cards. */
.mtrow { display: flex; gap: 8px; align-items: center; padding: 9px 12px; cursor: pointer;
  border-top: 1px solid var(--tf-bd); }
.mtrow:first-child { border-top: 0; }

/* KPI per-project drilldown (and the People tab) are the EVIDENCE behind the headline number, but
   <summary> was rendered with list-style:none + -webkit-appearance:none and nothing in its place —
   rows did not look expandable, so discovery was an accident. cursor:pointer is no cue on touch. */
details > summary { cursor:pointer; }
details > summary::-webkit-details-marker { display:none; }
details > summary::after { content:'\25BE'; display:inline-block; margin-left:8px; font-size:13px;
  color:var(--tf-mut); transition:transform .15s ease; }
details[open] > summary::after { transform:rotate(180deg); }
details > summary:focus-visible { outline:2px solid var(--tf-acc); outline-offset:2px; border-radius:6px; }
.mtrow:hover { background: var(--tf-bg); color:var(--tf-fg); }
.mtrow:focus-visible { outline:2px solid var(--tf-acc); outline-offset:-2px; background: var(--tf-bg); }
.grp .btn.mini.pri { margin-left: auto; }
.np-row { padding: 6px 0; border-top: 1px solid var(--tf-bd); }
#np-people { margin-top: 8px; }


/* ── Client pass 05 Nov: disclosures, aligned roster, readable grid typing ─────────────── */
/* Same click-to-open/close behaviour as the KPI person rows, applied portal-wide. */
details.grpwrap{border:1px solid var(--tf-bd);border-radius:12px;background:var(--tf-card);margin:0 0 9px;overflow:hidden}
details.grpwrap>summary.grp{cursor:pointer;list-style:none;-webkit-appearance:none;display:flex;align-items:center;gap:8px;padding:11px 12px;user-select:none}
details.grpwrap>summary.grp::-webkit-details-marker{display:none}
details.grpwrap>summary.grp::after{content:none}
details.grpwrap>summary.grp:focus-visible{outline:2px solid var(--tf-acc);outline-offset:-2px}
details.grpwrap[open]>summary.grp{border-bottom:1px solid var(--tf-bd)}
details.grpwrap .tw{margin-left:auto;color:var(--tf-mut);font-size:12px;transition:transform .15s ease;flex:none}
details.grpwrap[open] .tw{transform:rotate(90deg)}
details.grpwrap .gbody{padding:8px 10px 10px}
/* Inside a disclosure the group box already IS the card, so the inner card sheds its own frame —
   but it must keep its PADDING. An earlier version of this rule said padding:0, which outranked
   `.card.pad`: the colour rail then sat on top of the first letter of every title (client 05 Nov:
   "a coloured open bracket at each of the task, it is blocking the wordings"). */
details.grpwrap .card{border-top:0;border-right:0;border-bottom:0;background:transparent;box-shadow:none}
details.grpwrap .card.pad{padding:11px 12px}
/* The status rail: 3px, flush-left, SQUARE corners. A rounded card with only a left border draws an
   ARC at each corner, and a curved 3px red sliver is what a person reads as "(" — rails are bars. */
.card.rail{border-left:3px solid var(--rail,var(--tf-mut));border-top-left-radius:0;border-bottom-left-radius:0}

/* Access roster: one aligned row per person instead of a wrapping chip cloud. */
/* Type-ahead people box (client 11 Nov: "key in the name and it will suggest it, work together with
   scrolling to search"). 44px rows so a thumb hits the right name, and the list itself scrolls —
   the company has 100 people and a closed <select> on a phone was the thing he was complaining about. */
.pslist{max-height:190px;overflow:auto;-webkit-overflow-scrolling:touch;margin-top:6px;
  border:1px solid var(--tf-bd);border-radius:var(--tf-r);background:var(--tf-card)}
.psrow{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;
  min-height:44px;padding:8px 11px;background:transparent;border:0;border-bottom:1px solid var(--tf-bd);
  text-align:left;color:var(--tf-fg);font:inherit;cursor:pointer}
.psrow:last-child{border-bottom:0}
.psrow:active,.psrow[aria-selected="true"]{background:var(--tf-acc-soft)}
.psrow .xs{flex:none;max-width:46%;text-align:right;overflow-wrap:anywhere}
/* A person whose account is switched off stays in the list but cannot be picked (client 12 Nov:
   "if the person in inactive ... we need to tell the account or the person is deactivated"). Greyed
   and non-pressable so it never looks like a tap that worked; the reason sits where the seat normally
   goes, in the caution colour — it is a fixable state, not an error. */
.psrow.off{cursor:help;color:var(--tf-mut);opacity:.72}
.psrow.off:active{background:transparent}
.psrow.off .xs{color:var(--tf-warn);max-width:54%;font-weight:700}
.psrow.off b.sm{text-decoration:line-through;text-decoration-color:var(--tf-mut)}
/* A line between the people already listed and the boxes that add more (client 11 Nov). It is the
   border token, not a decorative colour, so it stays legible in both schemes. */
.rule{height:1px;background:var(--tf-bd);margin:12px 0}
.rule.acc{height:3px;background:var(--tf-acc);border-radius:2px}

.acc-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,34%) 30px;gap:10px;align-items:center;
  padding:8px 2px;border-top:1px solid var(--tf-bd)}
.acc-row .nm{font-weight:600;min-width:0;overflow-wrap:anywhere}
.acc-row .rl{color:var(--tf-mut);font-size:12.5px;min-width:0;overflow-wrap:anywhere}
.acc-row.acc-head{border-top:0;padding-bottom:4px;letter-spacing:.02em;text-transform:uppercase;font-size:10.5px}
.acc-row button{justify-self:end}
@media (max-width:520px){ .acc-row{grid-template-columns:minmax(0,1fr) minmax(88px,38%) 30px;gap:8px} }

/* Meeting grid: the strip that lets you read the sentence you are typing. */
/* (13 Nov) The .gr-read mirror strip was retired with the client's ruling — the growing textarea
   in the description cell superseded it. Rules removed; see public/app.js where the panel used to
   render for the history note. */
table.grid .c-desc input{font-size:15px;min-height:40px}
/* 13 Nov (client: "make the task description input to be able to extend downwards"): the cell is a
   textarea now — it starts one line tall and grows DOWN as the sentence grows, capped at ~6 lines,
   beyond which it scrolls internally. No drag handle (resize:none) — the row layout is not optional. */
table.grid .c-desc textarea.g-title{display:block;width:100%;font-size:15px;min-height:40px;line-height:1.35;
  resize:none;overflow:hidden;border-radius:10px;margin:0;padding:9px 10px}
@media (min-width:720px){
  /* Desk and tablet: the description is the point of the row, so give it the room a phone cannot. */
  table.grid col.c-desc{width:auto}
  table.grid .c-desc input{min-height:44px}
  table.grid .c-desc textarea.g-title{min-height:44px}
  .sheet .in{max-width:620px;border-radius:18px 18px 0 0}
}
@media (min-width:1120px){ .sheet .in{max-width:680px} }


/* ── Client decisions 05 Nov: readable dates, calendar entry, required completion note ──── */
.dt-wrap{position:relative;display:block}
.dt-wrap input.ymd{padding-right:40px}
.dt-cal{position:absolute;right:9px;top:50%;transform:translateY(-50%);font-size:15px;pointer-events:none;line-height:1}
.dt-proxy{position:absolute;right:0;top:0;width:36px;height:100%;opacity:0;border:0;background:transparent;cursor:pointer;padding:0}
.dt-hint{margin-top:4px;min-height:15px}
/* Client 06 Nov, on the assign screen: "the interface still did not show the date assigned in full.
   Currently I only see a short description of the date, and how many days from now, which is good,
   but it is too small. Probably we need to directly show it out, then only click assign."
   It used to be a small floating tooltip that appeared ONLY while the cell was focused — invisible in
   a screenshot, invisible on a shared screen, invisible until you already knew to click. It is now
   part of the row, at a size that survives a meeting table. The cost is one extra line per row, which
   the client has now asked for in his own words; if the grid ever needs to be tight again, this rule
   is the only thing to change. */
.dt-wrap input.g-due{padding-right:38px}
.dt-hint{font-size:12.5px;font-weight:600;color:var(--tf-fg);letter-spacing:.1px}
.dt-hint:empty{display:none}
table.grid .c-due .dt-hint{display:block;position:static;margin:3px 0 0;padding:0;background:none;
  border:0;border-radius:0;box-shadow:none;white-space:normal;line-height:1.3;text-align:left}
/* No subject chosen yet is a fact worth saying out loud, not a blank cell. */
.dt-hint.is-empty{font-weight:400;color:var(--tf-mut)}
textarea#c-note{min-height:84px}
textarea#c-note.bad{border-color:var(--tf-bad);outline:2px solid var(--tf-bad);outline-offset:-1px}


/* ── Role id change gate (client report 06 Nov) ───────────────────────────────────────────────
   Renaming a role id is the one edit in this app that moves people and permissions underneath
   itself, so it keeps its confirm box. The client's complaint was that the id looked uneditable;
   the real cause was that the box — and the refusal to save without it — were easy to miss. These
   rules make the gate the loudest thing on the sheet. */
.confirm-lead { color: var(--tf-warn, #8a4b00); }
.confirm-box {
  border: 1px solid var(--tf-warn, #a15c00);
  border-radius: 10px;
  padding: 9px 11px;
  /* colour-mix with the transparent keyword came back rgba(0,0,0,0) on this browser, so the gate
     used the palette's own soft fills — they are already defined for both light and dark. */
  background: var(--tf-warn-soft, #fdf1de);
}
.confirm-box input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--tf-warn, #a15c00); flex: 0 0 auto; }
.confirm-box.missed {
  border-color: var(--tf-bad, #c02626);
  background: var(--tf-bad-soft, #fdeaea);
  animation: tf-shake .34s ease-in-out 2;
}
@keyframes tf-shake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-5px); }
  55% { transform: translateX(5px); }
  78% { transform: translateX(-3px); }
}
button.needs-confirm {
  background: var(--tf-warn, #a15c00);
  color: #fff;
  border-color: var(--tf-warn, #a15c00);
}
@media (prefers-reduced-motion: reduce) { .confirm-box.missed { animation: none; } }

/* Requests — the ask read in the order it is keyed (client 13 Nov): row 1 who + date/time,
   row 2 project + subject, row 3 the request itself. Label above value, so a long site name
   wrapping on a phone pushes nothing sideways; the pair shares a line on a wide screen and stacks
   when there is no room (flex-wrap, never a squeeze). Used on the card AND the Answer/Decline
   sheet, so the person deciding can re-read the ask without closing the sheet. */
.rqkv{display:grid;gap:9px;margin:2px 0 10px}
.rql{display:flex;gap:6px 16px;align-items:flex-start;flex-wrap:wrap}
.rqf{flex:1 1 150px;min-width:0;display:flex;flex-direction:column;gap:1px}
.rqf .rqk{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tf-mut)}
.rqf .rqv{font-size:13.5px;color:var(--tf-fg);overflow-wrap:anywhere}
.rqf .rq-role{color:var(--tf-mut);font-weight:500}
.rq-none{color:var(--tf-mut);font-weight:400}
.rq-body{white-space:pre-wrap}
/* Their answer keeps the green rail it had before; the stamp (when it was answered) rides with it,
   because the client asked on 10 Nov for both dates to stay on the record. */
.rq-ans{margin:0 0 9px;padding:7px 9px;border-left:3px solid var(--tf-ok);background:var(--tf-ok-soft);color:var(--tf-fg);border-radius:0 8px 8px 0}
.rq-ans .rqk{display:block;font-size:12.5px;color:var(--tf-fg);margin-bottom:2px}
.rq-ans .rq-body{color:var(--tf-fg)}
/* The chips and the buttons used to share a flex row with the ask itself: on a phone that ate
   ~150px of the 445px card and squeezed every labelled field to 152px, and on a desktop the vision
   read of the screen said the right-hand status/action column made the three rows read as two
   half-cards. The rail now sits UNDER the ask at every width — status on the left, actions on the
   right — so rows 1 and 2 keep both fields side by side across the whole card. */
.rq-row{flex-direction:column;align-items:stretch}
.rq-rail{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:space-between;margin-top:2px;text-align:left}
.rq-acts{gap:5px;margin-left:auto;justify-content:flex-end}
/* The People screen's three views are chips, so they get the chip row's equal-width grid (the shared
   .chips class is a four-column grid for My Tasks; three equal columns is what this row needs). */
#people-views{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:10px}
@media (max-width:520px){
  .mtrow,.pt-row{flex-wrap:wrap}
  .pt-row .pt-rename{flex:1 1 100%;min-width:0}
  .rem-acts{justify-content:flex-start}
}
