/* DAO HQ · Calm Sidebar (Minh, 2026-10-11) · loaded last, over h1.css + live.css.
   Reference: PROJECTS/dao-hq/OUTPUTS/prototypes/2026-10-11-dao-hq-redesign-calm-sidebar-v01.html (design only; its sample data is not truth).
   Paper, ink and hairlines; big tight headlines; one spacing scale (4 · 8 · 12 · 16 · 24 · 32 · 48). */
:root{
  --paper:#f6f6f7;--ink:#19191b;--ink-2:#2b2b2f;--muted:#6d6d73;--muted2:#8d8d94;--line:#dedee1;--line2:#e9e9ec;--glass:#ffffff8c;
  --blue:#315fbd;--green:#2d694c;--red:#b24d56;--amber:#9a6a1c;
  --hot-bg:linear-gradient(180deg,#f8fbff,#edf3ff);--hot-line:#cad6ec;
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:32px;--s7:48px;
  --gutter:32px;--pad-x:var(--gutter); /* one horizontal gutter for heads, toolbars and canvases */
  --wash:var(--paper);--sidebar:#ffffff59;--accent:var(--ink);--accent-wash:#ececef;--radius:14px;--side:240px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  /* ONE SCALE (design pass 2026-11-14, Minh: "Knöpfe, Font, Sizes … nicht harmonisch"). Every control, chip, label, title
     and box takes its size from here; nothing below picks a literal. Headlines keep their fluid clamps (DECISIONS 2026-10-11).
     type      label 11 / 600 / +.08em uppercase (every small-caps label; nothing smaller) · xs 11 (meta, card chips) ·
               sm 12 (secondary) · ctl 13 (every control: buttons, filter chips, toggles, segments, tabs, search, nav) ·
               body 14 · row 15 (every row, card and name title) · section 17 (box and section headings) ·
               group 22 (level-1 group headings) · stat 28 (every KPI number) · input 16 (phone fields: iOS zoom guard)
     height    tag 20 (read-only pill) · chip 24 (card chip) · ctl 28 (every control in a bar) · field 36 (dialog field).
               Phone/coarse: bar controls 36 (the filter contract: a phone filter chip is ≥ 36 px and its native select
               covers it exactly), field 40; card chips stay 24 visible and reach 44 px through their native select;
               buttons and summaries add an invisible 44 px hit area on coarse pointers (Apple's 44 pt).
     radius    xs 4 (chart cells, marks) · sm 8 · card 10 (cards, fields, nav items) · md 14 (popovers, bands) ·
               box 20 (content boxes) · dialog 24 · pill 999 (controls, chips, tags)
     spacing   --s1…--s7 above (4 · 8 · 12 · 16 · 24 · 32 · 48); head hairline → first content = --head-gap (24) */
  --fs-label:11px;--fs-xs:11px;--fs-sm:12px;--fs-ctl:13px;--fs-body:14px;--fs-row:15px;--fs-input:16px;--fs-section:17px;--fs-group:22px;--fs-stat:28px;
  --lh-ctl:1.2;--fw-label:600;--track-label:.08em;
  --h-tag:20px;--h-chip:24px;--h-ctl:28px;--h-field:36px;--bar-h:54px;
  --r-xs:4px;--r-sm:8px;--r-card:10px;--r-md:14px;--r-box:20px;--r-dialog:24px;--r-pill:999px;
  --head-gap:var(--s5);
  /* motion and elevation (UX package B, Minh 2026-11-16 "1B"): one ease-out curve; 150 · 200 · 250 ms, opening 180 and landing 220;
     four shadow levels in Calm ink: e1 hover (and a control's lift) · e2 popover and toast · e3 drag ghost · e4 dialog. The role layer's
     shadow tokens (live.css) point at them, so nothing casts a blue shadow any more. JS reads the motion tokens once (app.js motion()). */
  --ease-out:cubic-bezier(.2,.8,.2,1);--dur-1:150ms;--dur-2:200ms;--dur-3:250ms;--dur-enter:180ms;--dur-land:220ms;
  --e1:0 1px 2px #19191b0f,0 12px 30px -24px #19191b66;--e2:0 12px 30px #19191b1c;--e3:0 18px 40px -12px #19191b47,0 4px 12px #19191b1f;--e4:0 40px 90px -40px #19191b80;
  --shadow-card:0 1px 2px #19191b05;--shadow-control:var(--e1);--shadow-popover:var(--e2);--shadow-dialog:var(--e4);
  /* the inherited role layer (live.css) reads its tokens from here, so its !important role rules render the scale:
     controls are pills, fields and nav items take the card corner, tags are pills, chart cells keep the small corner */
  --control-height:var(--h-ctl);--radius-control:var(--r-pill);--radius-field:var(--r-card);--radius-tag:var(--r-pill);--radius-chip:var(--r-xs);
  --radius-card:var(--r-card);--radius-surface:var(--r-md);
  --size-overline:var(--fs-label);--size-meta:var(--fs-xs);--size-control:var(--fs-xs);--size-body:var(--fs-sm);
  --size-row-title:var(--fs-row);--size-card-title:var(--fs-row);--size-section:var(--fs-section);--size-number:var(--fs-stat);
}
@media (max-width:760px),(pointer:coarse){:root{--h-ctl:36px;--h-field:40px;--control-height:36px}}
@media (max-width:760px){:root{--head-gap:var(--s4)}}
html.calm,html.calm body{background:var(--paper)!important;color:var(--ink)}
html.calm body{font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}

/* ---- sidebar ---- */
html.calm .sidebar{background:var(--sidebar)!important;backdrop-filter:blur(16px);border-right:1px solid var(--line)!important;padding:var(--s5) var(--s3) var(--s4)!important}
html.calm .sidebar .brand{padding:0 var(--s2) var(--s2)!important;font-size:19px;font-weight:660;letter-spacing:-.6px}
html.calm .nav-section{font-size:var(--fs-label)!important;letter-spacing:.14em!important;text-transform:uppercase;color:var(--muted)!important;font-weight:650!important;
  padding:var(--s5) var(--s2) var(--s2)!important;border-bottom:1px solid var(--line);margin:0 0 var(--s1)!important}
html.calm .nav-item{border-radius:var(--r-card)!important;padding:7px var(--s2)!important;color:#3a3a3f!important;font-size:var(--fs-ctl)!important;letter-spacing:-.01em;min-height:var(--h-ctl)}
html.calm .nav-item:hover{background:#fff9!important;color:var(--ink)!important}
html.calm .nav-item.active{background:#fff!important;color:var(--ink)!important;font-weight:580;box-shadow:0 1px 0 var(--line),0 0 0 1px var(--line2)}
html.calm .nav-count{color:var(--muted)!important;background:transparent!important}

/* ---- top bar + workspace ---- */
html.calm .topbar{background:transparent!important;border-bottom:1px solid var(--line)!important;padding-inline:var(--pad-x)!important}
html.calm .workspace{background:var(--paper)!important}
html.calm .btn{border-radius:999px!important;border:1px solid var(--line)!important;background:#fff8!important;font-weight:550;letter-spacing:-.01em}
html.calm .btn:hover{background:#fff!important}
html.calm .btn.primary{background:var(--ink)!important;border-color:var(--ink)!important;color:#fff!important}
html.calm .btn.primary:hover{background:#000!important}
html.calm .search-launch{border-radius:999px!important;background:#fff8!important;border:1px solid var(--line)!important}
html.calm .topbar .breadcrumb{min-width:0;overflow:hidden;flex:0 1 auto}
html.calm .topbar .breadcrumb>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.calm .topbar :is(.search-launch,.capture-counter,.top-create){flex-shrink:0}


/* ---- page head: the core — a huge tight headline, the muted second clause below ---- */
html.calm .study-header,html.calm .global-head{padding:var(--s6) var(--pad-x) var(--s5)!important;margin:0!important;border:0!important;background:transparent!important;
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--s5)}
html.calm .study-title{min-width:0;max-width:1260px}
html.calm .study-title h1{font-size:clamp(44px,5.4vw,84px)!important;line-height:.97!important;letter-spacing:-.062em!important;font-weight:620!important;margin:0!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;color:var(--ink)}
html.calm .study-title p{color:var(--muted2)!important;font-size:clamp(22px,2.4vw,36px)!important;line-height:1.08!important;letter-spacing:-.045em!important;font-weight:570!important;margin:var(--s2) 0 0!important;max-width:1100px}
html.calm .head-actions{display:flex;gap:var(--s2);padding-bottom:var(--s2)}

/* one gap from the head to the first content, on every page (S1 · S2) */
html.calm .toolbar{padding:0 var(--pad-x)!important;margin:0!important;border-bottom:1px solid var(--line)!important;background:transparent!important}
html.calm .canvas,html.calm body.board-study.v04[data-board-variant] .board-canvas{padding:var(--head-gap) var(--pad-x) var(--s6)!important}
html.calm .project-directory{margin-top:0!important}

/* ---- kanban ---- */
html.calm .board .column{background:transparent!important;border-radius:var(--r-box)!important;padding:0 0 var(--s2)!important}
html.calm .board .column-head,html.calm body.board-study.v04[data-board-variant] .board .column-head{
  border-top:1.5px solid var(--ink)!important;border-bottom:0!important;background:var(--paper)!important;padding:var(--s3) var(--s1) var(--s3)!important;
  top:0!important;box-shadow:0 -12px 0 var(--paper)!important;min-height:44px;align-items:center;gap:var(--s2)}
html.calm .board .column-head > span[title]{font-size:15px;letter-spacing:-.02em;font-weight:620}
html.calm .board .column-head .count{color:var(--muted)!important;background:transparent!important;font-size:12px}
html.calm .board .cards{padding:var(--s1) 0 0!important}
html.calm .operating-card.task-card{border:1px solid var(--line)!important;border-radius:10px!important;background:#fff8!important;box-shadow:none!important;
  transition:box-shadow var(--dur-1) var(--ease-out),background var(--dur-1) var(--ease-out)}
html.calm .operating-card.task-card:hover{background:#fff!important;box-shadow:var(--e1)!important}
html.calm .operating-card.task-card.selected{border-color:var(--ink)!important}
html.calm .column-add{border:1px dashed var(--line)!important;border-radius:var(--r-md)!important;background:transparent!important;color:var(--muted)!important;margin-top:var(--s1)}
html.calm .column-add:hover{background:#fff8!important;color:var(--ink)!important}
html.calm .board-study .operating-card{min-height:0!important}

/* ---- projects (S3) ---- */
html.calm .project-row{border:1px solid var(--line)!important;border-radius:var(--r-box)!important;background:#fff6!important;padding:var(--s5)!important;margin:0 0 var(--s3)!important;gap:var(--s4)!important;align-items:flex-start}
html.calm .project-row:hover{background:#fff!important}
html.calm .project-row h2{font-size:clamp(22px,2vw,30px)!important;letter-spacing:-.04em!important;font-weight:600!important;margin:0!important}
html.calm .project-mark{white-space:nowrap;min-width:max-content;padding-inline:4px;border-radius:var(--r-card)!important}
html.calm .pending-projects{display:grid;gap:var(--s3);margin-bottom:var(--s5)}
html.calm .project-row.pending{background:var(--hot-bg)!important;border-color:var(--hot-line)!important;border-style:dashed!important}
html.calm .project-row.pending.ready{background:linear-gradient(180deg,#f9fdfb,#edf7f1)!important;border-color:#c8dece!important;border-style:solid!important}
html.calm .project-row.pending.incomplete{background:#fbf1f2!important;border-color:#ecd0d3!important}
html.calm .state-pill{font-size:10px;letter-spacing:.08em;text-transform:uppercase;border:1px solid var(--line);border-radius:999px;padding:4px 9px;background:#fff8;color:var(--muted)}
html.calm .state-pill.ready{color:var(--green);border-color:#c8dece}
html.calm .state-pill.incomplete{color:var(--red);border-color:#ecd0d3}

/* ---- overview ---- */
html.calm .overview{display:grid;gap:var(--s5)}
html.calm .eyebrow{font-size:var(--fs-xs);letter-spacing:.14em;color:var(--muted);font-weight:650;text-transform:uppercase}
html.calm .ov-focus{border:1px solid var(--hot-line);border-radius:var(--r-box);background:var(--hot-bg);padding:var(--s5) var(--s5) var(--s4)}
html.calm .ov-focus.empty{background:#fff6;border-color:var(--line)}
html.calm .ov-focus h2{font-size:clamp(30px,3.4vw,52px)!important;line-height:1.02!important;letter-spacing:-.05em!important;font-weight:620!important;margin:var(--s2) 0 0!important}
html.calm .ov-sub{color:var(--muted);font-size:15px;margin:var(--s2) 0 0}
html.calm .ov-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s4);margin:var(--s5) 0 var(--s4)}
html.calm .ov-facts div{border-top:1px solid var(--hot-line);padding-top:var(--s2)}
html.calm .ov-facts dt{font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}
html.calm .ov-facts dd{margin:var(--s1) 0 0;font-size:15px;line-height:1.4;font-weight:520}
html.calm .ov-split{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:var(--s5)}
html.calm .ov-head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--s3);border-top:1.5px solid var(--ink);padding:var(--s3) 0 var(--s2)}
html.calm .ov-head h3{font-size:clamp(20px,1.8vw,26px)!important;letter-spacing:-.035em!important;font-weight:620!important;margin:0!important}
html.calm .ov-result .text-btn{justify-content:flex-start!important;text-align:left!important;padding:0!important;min-height:0!important}
html.calm .ov-result .text-btn strong{font-size:15px;letter-spacing:-.015em;font-weight:580}
html.calm .ov-head span{font-size:12px;color:var(--muted)}
html.calm .ov-need{display:grid;gap:3px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;padding:var(--s3) 0;cursor:pointer}
html.calm .ov-need:hover strong{color:#000}
html.calm .ov-need strong{font-size:17px;letter-spacing:-.02em;font-weight:590}
html.calm .ov-need small{color:var(--muted);font-size:13px;line-height:1.45}
html.calm .ov-need .unlocks{color:var(--blue)}
html.calm .need-kind{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);font-weight:650}
html.calm .ov-result{display:grid;gap:2px;border-bottom:1px solid var(--line);padding:var(--s3) 0}
html.calm .ov-result small{color:var(--muted)}
html.calm .ov-result .mono{font-size:11.5px;color:var(--blue);overflow-wrap:anywhere}
html.calm .ov-empty{color:var(--muted);padding:var(--s3) 0;margin:0}
html.calm .ov-table{display:grid}
html.calm .ov-row{display:grid;grid-template-columns:minmax(120px,.9fr) minmax(0,2fr) minmax(90px,.8fr) 90px minmax(0,1.5fr) minmax(110px,.9fr);gap:var(--s3);align-items:start;
  width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;padding:var(--s3) 0;font-size:13px;cursor:pointer;color:var(--ink)}
html.calm button.ov-row:hover{background:linear-gradient(90deg,#fff0,#fff9 30%,#fff0)}
html.calm .ov-row-head{cursor:default;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:var(--s2) 0}
html.calm .ov-what strong{display:block;font-size:14.5px;letter-spacing:-.015em;font-weight:580}
html.calm .ov-what small,html.calm .ov-where{color:var(--muted)}
html.calm .ov-next.blocked{color:var(--red)}
html.calm .ov-fresh{color:var(--muted);font-size:12px}
html.calm .ov-fresh.stale{color:var(--amber);font-weight:560}
html.calm .live-dot{font-style:normal;font-size:11px;color:var(--green)}
html.calm .ov-foot{font-size:12px;margin:0}
html.calm .ov-foot a,html.calm .ov-head a{color:inherit}

/* ---- task drawer ---- */
html.calm dialog.task-modal{background:#f6f6f7f5!important;backdrop-filter:blur(20px);border:1px solid var(--line)!important;border-radius:24px!important;box-shadow:var(--e4)!important}
html.calm .panel-title,html.calm #task-modal #task-title,html.calm #entity-dialog #entity-title{font-size:clamp(26px,2.6vw,36px)!important;line-height:1.05!important;letter-spacing:-.045em!important;font-weight:620!important}
html.calm .panel-notice:empty{display:none}
html.calm .guide-box{border:1px solid var(--hot-line);background:var(--hot-bg);border-radius:var(--r-box);padding:var(--s4);margin:var(--s3) 0;display:grid;gap:var(--s2)}
html.calm .guide-box > strong{font-size:18px;letter-spacing:-.025em}
html.calm .guide-box p{margin:0;color:var(--muted);font-size:13px}
html.calm .guide-box label{display:grid;gap:var(--s1);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html.calm .guide-box select,html.calm .guide-box input,html.calm .guide-box textarea{font:inherit;font-size:14px;text-transform:none;letter-spacing:0;color:var(--ink);border:1px solid var(--line);border-radius:var(--r-card);background:#fff;padding:9px 11px}
html.calm .guide-fields{display:grid;grid-template-columns:1fr 1fr;gap:var(--s3)}
html.calm .req-list{list-style:none;margin:0;padding:0;display:grid;gap:3px;font-size:13px;color:var(--red)}
html.calm .req-list li.met{color:var(--green)}
html.calm .req-strip{display:flex;flex-wrap:wrap;gap:var(--s2);align-items:center;margin:var(--s3) 0;font-size:12px;color:var(--muted)}
html.calm .req-strip > span:first-child{font-size:10px;letter-spacing:.1em;text-transform:uppercase}
html.calm .req{border:1px solid var(--line);border-radius:999px;padding:3px 9px;background:#fff8;color:var(--red)}
html.calm .req.met{color:var(--green)}
html.calm .work-section{margin:var(--s3) 0}
html.calm .work-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--s3)}
html.calm .work-field{display:grid;gap:var(--s1)}
html.calm .work-field.wide{margin-top:var(--s3)}
html.calm .work-field > span{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}
html.calm .work-field textarea,html.calm .work-field input,html.calm .work-field select{font:inherit;font-size:14px;border:1px solid var(--line);border-radius:var(--r-card);background:#fff;padding:8px 10px;resize:vertical;width:100%;box-sizing:border-box}
html.calm .execution-section{border-top:1px solid var(--line);margin:var(--s3) 0;padding-top:var(--s2)}
html.calm .execution-section summary{cursor:pointer;font-size:12px;color:var(--muted);padding:var(--s1) 0}
html.calm .report-line{font-size:13px;margin:var(--s2) 0}
html.calm .pill-basis{font-size:10px;letter-spacing:.08em;text-transform:uppercase;border:1px solid var(--line);border-radius:999px;padding:2px 7px;margin-right:6px;color:var(--amber)}
html.calm .pill-basis.verified{color:var(--green);border-color:#c8dece}
html.calm .waiting-reason{margin:var(--s2) 0;font-size:14px}

/* ---- dialogs ---- */
html.calm dialog.modal{border:1px solid var(--line)!important;border-radius:24px!important;background:#f8f8f9!important;box-shadow:var(--e4)!important}
html.calm .create-modal-title{font-size:clamp(30px,3.4vw,42px)!important;line-height:1!important;letter-spacing:-.055em!important;font-weight:620!important}
html.calm .create-work{margin-top:var(--s2)}
html.calm .seg-field{border:0;padding:0;margin:var(--s3) 0;display:flex;gap:var(--s2)}
html.calm .seg-field legend{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:var(--s2)}
html.calm .seg-field label span{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:7px 13px;background:#fff8;cursor:pointer}
html.calm .seg-field input{position:absolute;opacity:0}
html.calm .seg-field input:checked + span{background:var(--ink);color:#fff;border-color:var(--ink)}
html.calm .seg-field input:focus-visible + span{outline:2px solid var(--blue)}

@media (max-width:980px){
  html.calm .ov-split{grid-template-columns:1fr}
  html.calm .ov-row{grid-template-columns:1fr 1fr}
  html.calm .ov-row-head{display:none}
  html.calm .ov-facts,html.calm .work-grid,html.calm .guide-fields{grid-template-columns:1fr}
}

/* ---- slightly coloured boxes (Minh, 2026-10-11): the tint carries meaning, never decoration ----
   blue = needs Minh or ready to inspect · green = done / ready · warm = waiting on something */
:root{--green-bg:linear-gradient(180deg,#f9fdfb,#edf7f1);--green-line:#c8dece;--warm-bg:linear-gradient(180deg,#fffcf6,#fbf3e6);--warm-line:#eadbc0}
html.calm .operating-card.task-card:has(.needs-you-signal),
html.calm .column[data-status="review"] .operating-card.task-card{background:var(--hot-bg)!important;border-color:var(--hot-line)!important}
html.calm .column[data-status="done"] .operating-card.task-card{background:var(--green-bg)!important;border-color:var(--green-line)!important}
html.calm .column[data-status="waiting"] .operating-card.task-card{background:var(--warm-bg)!important;border-color:var(--warm-line)!important}
html.calm .ov-row:has(.ov-next.blocked){background:linear-gradient(90deg,#fbf3e600,#fbf3e6aa 40%,#fbf3e600)}
html.calm .waiting-context{background:var(--warm-bg);border:1px solid var(--warm-line);border-radius:var(--r-box);padding:var(--s3) var(--s4)}
html.calm .project-row:not(.pending):hover{background:var(--hot-bg)!important;border-color:var(--hot-line)!important}

/* compact cards (UX run S9): the content decides the height; board cards only (list rows keep their one-line grid);
   padding stays with the Display density setting */
html.calm .board .cards .operating-card.task-card .title-zone{margin:var(--s2) 0!important}
html.calm .board .cards .operating-card.task-card .card-meta{margin-top:var(--s1)!important}
html.calm .board .cards .operating-card.task-card .card-people-date{margin-top:var(--s2)!important}
html.calm .ov-upcoming .upcoming-row{display:flex;gap:var(--s3);width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;padding:var(--s2) 0}
html.calm .ov-system{border-top:1px solid var(--line);padding-top:var(--s2);font-size:13px}
html.calm .ov-system summary{cursor:pointer;color:var(--muted);font-size:12px}
html.calm .ov-system[open] summary{margin-bottom:var(--s2)}
/* the hairline edge sits under whatever comes right before a scrolling canvas (head or toolbar) */
html.calm .study-header:has(+ .canvas),html.calm .global-head:has(+ .canvas){border-bottom:1px solid var(--line)!important}
@media (max-width:760px){:root{--gutter:16px}}
/* lanes snap to the same gutter the page uses (h1.css snapped to 16px, which pulled WebKit off the scroll end) */
html.calm body.board-study.v04[data-board-variant] .board-canvas{scroll-padding-inline:var(--pad-x)!important}

/* ---- Overview = the Calm reference Home (Minh, 2026-10-11: "so habe ich direkt Blick") ---- */
html.calm .page-eyebrow{display:block;font-size:11px;letter-spacing:.14em;color:var(--muted);font-weight:650;text-transform:uppercase;margin:0 0 var(--s3)}
html.calm .ov-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
html.calm .ov-card{display:block;text-align:left;text-decoration:none;color:var(--ink);font:inherit;border:1px solid var(--line);border-radius:var(--r-box);background:#fff6;padding:20px;min-height:150px;cursor:pointer;transition:box-shadow var(--dur-1) var(--ease-out)}
html.calm .ov-card:hover{box-shadow:0 18px 40px -28px #19191b55}
html.calm .ov-card.hot,html.calm .ov-card.ov-focus:not(.empty){background:var(--hot-bg);border-color:var(--hot-line)}
html.calm .ov-card.green{background:var(--green-bg);border-color:var(--green-line)}
html.calm .ov-card.empty{cursor:default}
html.calm .ov-card small{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
html.calm .ov-card strong{display:block;font-size:clamp(20px,1.9vw,28px);line-height:1.08;letter-spacing:-.04em;font-weight:600}
html.calm .ov-card p{margin:9px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
html.calm .section-label{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:650;margin:var(--s5) 0 0;display:flex;justify-content:space-between;gap:12px}
html.calm .section-label span{letter-spacing:.04em;text-transform:none;font-weight:450}
html.calm .stack{margin-top:var(--s3)}
html.calm .stack-row{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;width:100%;text-align:left;font:inherit;color:var(--ink);background:transparent;border:0;border-top:1px solid var(--line);padding:15px 0 14px;cursor:pointer}
html.calm .stack .stack-row:last-child{border-bottom:1px solid var(--line)}
html.calm .stack-row:hover{background:linear-gradient(90deg,#fff0,#fff9 30%,#fff0)}
html.calm .stack-row strong{display:block;font-size:clamp(22px,2.4vw,36px);line-height:1.04;letter-spacing:-.045em;font-weight:600}
html.calm .stack-row .sub{display:block;color:var(--muted);font-size:14px;margin-top:6px;line-height:1.45}
html.calm .stack-row .right{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
html.calm .pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:4px 8px;background:#fff5;white-space:nowrap}
html.calm .pill.hot{background:#edf3ff;border-color:var(--hot-line);color:var(--blue)}
html.calm .kpi-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-top:var(--s5)}
html.calm .kpi{display:block;text-decoration:none;color:var(--ink);border-top:1px solid var(--line);padding-top:12px}
html.calm .kpi.ink{border-top:1.5px solid var(--ink)}
html.calm .kpi small{font-size:10px;letter-spacing:.1em;color:var(--muted);text-transform:uppercase}
html.calm .kpi b{display:block;font-size:30px;letter-spacing:-.04em;margin-top:6px;font-weight:600}
html.calm .kpi span{display:block;color:var(--muted);font-size:12px;margin-top:3px}
html.calm .overview{gap:0!important}
html.calm .overview > section,html.calm .overview > details{margin-top:var(--s6)}
@media (max-width:980px){html.calm .ov-cards{grid-template-columns:1fr}html.calm .kpi-row{grid-template-columns:repeat(2,1fr)}html.calm .stack-row{grid-template-columns:1fr}html.calm .stack-row .right{justify-content:flex-start}}
/* sidebar: the logo goes to the Overview; collapsing keeps working */
html.calm .sidebar.collapsed{padding-inline:var(--s2)!important}
/* the whole logo (mark + name) opens the Overview; the sidebar is wide enough for logo + collapse button (desktop) */
html.calm a.brand-copy{color:inherit;text-decoration:none}
@media (min-width:761px){
  html.calm body.board-study.v04[data-board-variant]{--side:232px}
  html.calm body.board-study.v04[data-board-variant].side-collapsed{--side:64px}
}
/* head actions sit at the right edge, next to the head numbers, aligned to the headline's last line */
html.calm .global-head .head-actions{margin-left:auto;align-self:flex-end;padding-bottom:var(--s2)}
html.calm .global-head .head-actions + .study-overview{margin-left:var(--s5)}

/* Overview hero (Minh, 2026-10-11): a big greeting, then the situation, then a line that changes */
html.calm .ov-hero .study-title p{display:flex;flex-direction:column;gap:var(--s2);margin-top:var(--s3)!important;color:var(--ink)!important}
html.calm .ov-hero .ov-statement{font-size:clamp(34px,3.8vw,58px);line-height:1;letter-spacing:-.055em;font-weight:620;color:var(--ink)}
html.calm .ov-hero .ov-rotate{font-size:clamp(20px,2vw,30px);line-height:1.15;letter-spacing:-.035em;font-weight:560;color:var(--muted2);transition:opacity var(--dur-3) var(--ease-out),transform var(--dur-3) var(--ease-out);min-height:1.2em}
html.calm .ov-hero .ov-rotate.out{opacity:0;transform:translateY(4px)}
@media (prefers-reduced-motion:reduce){html.calm .ov-hero .ov-rotate{transition:none}}

/* =====================================================================================================================
   Audit pass v01 (OUTPUTS/reports/2026-10-11-dao-hq-ui-audit-v01.md) + Minh 2026-10-11: macro → micro, less but focused,
   colour carries meaning, gradients where a state deserves attention. Scale: 4·8·12·16·24·32·48 · radii 10/20/999.
   ===================================================================================================================== */
:root{
  --st-inbox:#8a8a91;--st-next:#5b5fc7;--st-doing:#2f7d8c;--st-waiting:#9a6a1c;--st-review:#7d68d8;--st-done:#2d694c;
  --doing-bg:linear-gradient(180deg,#f6fbfc,#e9f4f6);--doing-line:#c3dfe4;
  --review-bg:linear-gradient(180deg,#faf8ff,#f0ecfd);--review-line:#d9d1f5;
}

/* 1 · toolbar: paper, one hairline, chips flush with the headline and the first lane */
html.calm body .board-tools{background:transparent!important;padding:0 var(--pad-x) var(--s3)!important;border-bottom:1px solid var(--line)!important}
html.calm body .board-tools .toolbar{padding:0!important;border:0!important;margin:0!important;background:transparent!important}
html.calm .filter-select-chip,html.calm .board-tools .filter-chip,html.calm .board-tools summary.filter-chip,html.calm .display-trigger{border-radius:var(--r-pill)!important;background:#fff6!important;border:1px solid var(--line)!important;min-height:var(--h-ctl)}
html.calm .board-tools .segmented{background:transparent!important;border:1px solid var(--line)!important;border-radius:var(--r-pill)!important;padding:1px!important}
html.calm .board-tools .segmented button{border-radius:999px!important}
html.calm .board-tools .segmented button[aria-pressed="true"]{background:var(--ink)!important;color:#fff!important}

/* 2 · board density (Default): tighter lanes and cards; Comfortable keeps the roomy values */
html.calm body.board-study.v04.density-dense[data-board-variant] .board:not(.specimen-board){--lane-gap:12px;--card-gap:12px;--card-x:12px;--card-y:12px} /* 12px between cards keeps a usable drop gap */
html.calm body.board-study.v04[data-board-variant] .study-header.global-head{padding-top:var(--s5)!important;padding-bottom:var(--s4)!important}

/* 3 · status colour: a 2px rule + dot per lane; cards: Inbox/Next stay white (not yet), active states carry a soft gradient */
html.calm .board .column-head,html.calm body.board-study.v04[data-board-variant] .board .column-head{border-radius:0!important;border-top-width:2px!important}
html.calm .board .column-head > span[title]{color:var(--ink)!important;font-size:14px;font-weight:600}
html.calm body.board-study.v04[data-board-variant] .board .column[data-status="inbox"] .column-head{border-top:2px solid var(--st-inbox)!important}
html.calm body.board-study.v04[data-board-variant] .board .column[data-status="next"] .column-head{border-top:2px solid var(--st-next)!important}
html.calm body.board-study.v04[data-board-variant] .board .column[data-status="doing"] .column-head{border-top:2px solid var(--st-doing)!important}
html.calm body.board-study.v04[data-board-variant] .board .column[data-status="waiting"] .column-head{border-top:2px solid var(--st-waiting)!important}
html.calm body.board-study.v04[data-board-variant] .board .column[data-status="review"] .column-head{border-top:2px solid var(--st-review)!important}
html.calm body.board-study.v04[data-board-variant] .board .column[data-status="done"] .column-head{border-top:2px solid var(--st-done)!important}
html.calm .status-dot.inbox{background:var(--st-inbox)!important}html.calm .status-dot.next{background:var(--st-next)!important}
html.calm .status-dot.doing{background:var(--st-doing)!important}html.calm .status-dot.waiting{background:var(--st-waiting)!important}
html.calm .status-dot.review{background:var(--st-review)!important}html.calm .status-dot.done{background:var(--st-done)!important}
html.calm .column[data-status="inbox"] .operating-card.task-card,html.calm .column[data-status="next"] .operating-card.task-card{background:#fffc!important;border-color:var(--line)!important}
html.calm .column[data-status="doing"] .operating-card.task-card{background:var(--doing-bg)!important;border-color:var(--doing-line)!important}
html.calm .column[data-status="review"] .operating-card.task-card{background:var(--review-bg)!important;border-color:var(--review-line)!important}
/* needs Minh wins over any status: the blue box + an ink edge, so it is the first thing the eye finds */
html.calm .board .operating-card.task-card:has(.needs-you-signal){background:var(--hot-bg)!important;border-color:var(--ink)!important;box-shadow:0 0 0 .5px var(--ink)!important}
/* waiting: the inner reason box no longer doubles the tint */
html.calm .column[data-status="waiting"] .operating-card .signal-zone{background:#fff8!important;border:1px solid var(--warm-line)!important;border-radius:8px!important}
/* empty lanes: one muted line, the dashed box only while something is dragged */
html.calm .board .empty-drop,html.calm .board .empty-state{border:0!important;background:transparent!important;min-height:0!important;padding:var(--s3) var(--s1)!important;align-items:flex-start!important;text-align:left!important;justify-content:flex-start!important}
html.calm .board .empty-drop small{display:none}
html.calm .board .column.drag-over .empty-drop{border:1px dashed var(--muted2)!important;border-radius:var(--r-card)!important;min-height:80px!important}

/* 4 · focus: the app moving focus to a heading or title is not a user focus ring */
html.calm .study-title h1:focus,html.calm #task-title:focus,html.calm #entity-title:focus,html.calm .task-dialog-title:focus,html.calm h2[tabindex="-1"]:focus{outline:none!important;box-shadow:none!important}

/* 5 · sidebar fits a 900px laptop: 30px items, 16px section gap; the nav scrolls above the footer */
html.calm .nav-item{min-height:var(--h-ctl)!important;padding:4px var(--s2)!important}
html.calm .nav-section{padding-top:var(--s3)!important;padding-bottom:var(--s1)!important;font-size:var(--fs-label)!important}
html.calm .sidebar .nav-body{overflow-y:auto;min-height:0;flex:1 1 auto}
html.calm body:not(.auth-page) .sidebar{display:flex!important;flex-direction:column!important}

/* 6 · drawer and dialogs: paper, 24px corners (beats live.css) */
html.calm body dialog.task-modal,html.calm body dialog.modal,html.calm body dialog.entity-modal{background:#f8f8f9!important;border:1px solid var(--line)!important;border-radius:24px!important;box-shadow:var(--e4)!important}
html.calm body dialog .modal-head h2,html.calm body .create-modal-title{color:var(--ink)!important}

/* 7 · one input style everywhere (drawer, create, guide, record): white, card corner, the field height (--h-field), 14px */
html.calm body :is(#task-modal,#create-dialog,#entity-dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fff!important;border:1px solid var(--line)!important;border-radius:var(--r-card)!important;font-size:14px!important;color:var(--ink)}
html.calm body :is(#task-modal,#create-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=date]),select){min-height:var(--h-field);line-height:normal!important;padding:8px 12px!important}
html.calm .guide-box select{height:auto!important;padding:9px 12px!important;line-height:1.3!important}
html.calm #create-dialog .create-work{display:block}
html.calm #create-dialog .create-work > div{width:100%;margin-top:var(--s2)}
html.calm #create-dialog label small{color:var(--muted2);font-weight:400;text-transform:none;letter-spacing:0}

/* 8 · "Done needs" is guidance, not an error: muted before an attempt */
html.calm .req{color:var(--muted)!important;border-color:var(--line)!important}
html.calm .req.met{color:var(--st-done)!important;border-color:#c8dece!important}
html.calm .req-list{color:var(--amber)!important}

/* 9 · headings and bands from H1 become calm: ink headings, paper bands with a hairline */
html.calm .page-eyebrow,html.calm .study-title .eyebrow.page-eyebrow{font-size:11px!important;letter-spacing:.14em!important;font-weight:650!important}
html.calm body .project-board-context{background:transparent!important;border-bottom:1px solid var(--line)!important}
html.calm body .bottom-line{background:var(--paper)!important;border-top:1px solid var(--line)!important}
html.calm .section-head h2,html.calm .section-head h3,html.calm .section-label h2,html.calm .panel-section-title,html.calm .day-section h2,html.calm .now-layout h2{color:var(--ink)!important}
html.calm .canvas section > .section-head h2,html.calm .canvas .section-label h2{font-size:17px!important;letter-spacing:-.02em;font-weight:620}
html.calm :is(.momentum,.attention,.panel,.spec,.agent-card,.person-card,.people-card,.output-row,.event-wrap,.settings-row){border-radius:var(--r-box)}
html.calm .canvas .board-kpis,html.calm .global-head .board-kpis{gap:var(--s5)!important}
html.calm .global-head .study-metric strong{font-size:var(--fs-stat)!important;font-weight:600!important;letter-spacing:-.04em}
html.calm .global-head .study-metric{border-top:1px solid var(--line);padding-top:var(--s2)!important;background:transparent!important}
html.calm .global-head .study-metric:first-child{border-top:1.5px solid var(--ink)}

/* 10 · command palette selection: white row + ink bar */
html.calm #command .command-results [aria-selected="true"],html.calm #command .command-results .active,html.calm #command .command-results .highlight{background:#fff!important;box-shadow:inset 3px 0 0 var(--ink)!important}
html.calm #command{border-radius:24px!important;background:#f8f8f9!important}

/* 11 · Overview hero: the changing line is the third, quieter step */
html.calm .ov-hero .ov-rotate{font-size:clamp(18px,1.8vw,26px)!important}
html.calm .ov-dump{margin-top:0!important;margin-bottom:var(--s5)}
html.calm .ov-dump .section-label{margin-top:0;margin-bottom:var(--s2)}
html.calm #dump-text,html.calm #ctx-dump{width:100%;box-sizing:border-box;font:inherit;font-size:16px;line-height:1.5;border:1px solid var(--line);border-radius:var(--r-box);background:#fff;padding:14px 16px;resize:vertical;min-height:84px;color:var(--ink)}
html.calm #dump-text:focus,html.calm #ctx-dump:focus{outline:none;border-color:var(--ink)}
html.calm .dump-actions{display:flex;align-items:center;gap:var(--s3);margin-top:var(--s2)}
html.calm .dump-actions .dump-count{margin-left:auto;font-size:12px}
html.calm .dump-voice{opacity:.55}
/* drawer: summary sentence, then the two primary questions, then quiet details */
html.calm .task-summary{display:flex;align-items:center;gap:8px;margin:var(--s2) 0 var(--s3);font-size:15px;color:var(--ink);line-height:1.4}
html.calm .task-summary .status-dot{flex:none;width:8px;height:8px;border-radius:50%}
html.calm #task-modal .drawer-details{margin:0;margin-top:var(--s5)!important;padding-top:var(--s3);border-top:1px solid var(--line);font-size:11px!important;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)!important}
html.calm .criteria-grid{margin:var(--s3) 0}
html.calm .work-section .work-field textarea{min-height:64px}
html.calm .copy-task{min-height:var(--h-ctl);padding:0 12px!important;font-size:var(--fs-ctl)!important}
/* overview rhythm: 24px from the head to the first block; every section starts with the same small label */
html.calm .canvas.overview{padding-top:var(--s5)!important}
html.calm .ov-head{border-top:1px solid var(--line)!important;padding:var(--s3) 0 var(--s2)!important}
html.calm .ov-head h3{font-size:var(--fs-label)!important;letter-spacing:var(--track-label)!important;text-transform:uppercase;color:var(--muted)!important;font-weight:var(--fw-label)!important}
html.calm .ov-head span,html.calm .ov-head a{font-size:12px}
html.calm .stack-row .pill,html.calm .ov-need .pill{border-radius:var(--r-pill)!important;padding:0 8px!important;font-size:var(--fs-label)!important}
html.calm .stack-row .pill.hot{background:#edf3ff!important;border-color:var(--hot-line)!important;color:var(--blue)!important}
html.calm .ov-result .text-btn strong{color:var(--ink)}
/* drawer title is the headline, never an input box */
html.calm body #task-modal #task-title.panel-title,html.calm body #entity-dialog #entity-title#entity-title{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;min-height:0!important}
/* assignees: avatar pills, the checkbox stays for keyboard/screen readers but is visually hidden; chosen = ink outline */
html.calm .modal-assignees label{border-radius:999px!important;border:1px solid var(--line)!important;background:#fff8!important;padding:3px 10px 3px 4px!important;gap:6px}
html.calm .modal-assignees label:has(input:checked){border-color:var(--ink)!important;background:#fff!important}
html.calm .modal-assignees input[type=checkbox]{accent-color:var(--ink);width:14px;height:14px;margin:0}
html.calm .modal-assignees label:focus-within{outline:2px solid var(--blue);outline-offset:2px}
html.calm body #task-modal .panel-title-band,html.calm body #task-modal .task-dialog-title{border:0!important;box-shadow:none!important;background:transparent!important;outline:none!important}
html.calm body #task-modal textarea.panel-title{box-shadow:none!important;outline:none!important}
html.calm body #task-modal .panel-fields .chip-select{background:#fff!important;border:1px solid var(--line)!important;border-radius:var(--r-card)!important;min-height:var(--h-field)}
html.calm body #task-modal .panel-fields .date-control{background:#fff!important;border:1px solid var(--line)!important;border-radius:var(--r-card)!important;min-height:var(--h-field)}
/* record dialog facts use the same field style as Create and the drawer */
html.calm body #entity-dialog .entity-facts .chip-select,html.calm body #entity-dialog .entity-facts .date-control,html.calm body #task-modal .chip-select,html.calm body #task-modal .date-control,html.calm body #create-dialog .chip-select{background:#fff!important;border:1px solid var(--line)!important;border-radius:var(--r-card)!important;background-image:none!important}
/* desktop boards scroll freely; lane snapping (h1.css) stays for phones only, where it helps */
@media (min-width:761px){html.calm body.board-study.v04[data-board-variant] .board-canvas{scroll-snap-type:none!important}}
html.calm body.board-study.v04[data-board-variant] .canvas.overview{padding-top:var(--s5)!important}
html.calm .project-row h2,html.calm .project-row h3{color:var(--ink)!important}

/* Project toggles above the Global Board (2026-10-12) · Order buttons in the task-fields popover */
.project-toggles{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:0 var(--gutter,24px) 12px}
.project-toggle{display:inline-flex;flex:none;width:max-content;white-space:nowrap;align-items:center;gap:6px;height:var(--h-ctl);padding:0 12px;border:1px solid var(--line,#e5e2dc);border-radius:var(--r-pill);background:var(--paper,#fff);color:inherit;font:inherit;font-size:var(--fs-ctl);cursor:pointer}
.project-toggle small{color:var(--muted,#8a857d);font-variant-numeric:tabular-nums}
html.calm .project-toggle .project-mark{flex:none;width:20px;min-width:20px;height:20px;padding:0;font-size:9px!important;letter-spacing:-.02em}
.project-toggle[aria-pressed="true"]{background:var(--ink,#1d1b18);border-color:var(--ink,#1d1b18);color:var(--paper,#fff)}
.project-toggle[aria-pressed="true"] small{color:inherit;opacity:.7}
.project-toggles .text-btn{margin-left:4px;font-size:var(--fs-ctl)}
.quick-order{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px}
.quick-order>span{font-size:12px;color:var(--muted,#8a857d);margin-right:4px}

html.calm .board [data-card]{-webkit-user-select:none;user-select:none;cursor:grab}
html.calm .board [data-card] :is(button,select,input,textarea,label,a,[data-no-drag]){cursor:pointer}
html.calm body.live-drag,html.calm body.live-drag *{cursor:grabbing!important;-webkit-user-select:none;user-select:none}
html.calm .drag-ghost{position:fixed;left:0;top:0;margin:0;z-index:1000;pointer-events:none;will-change:transform}
html.calm .drag-ghost>[data-object-kind]{margin:0!important;background:#fff!important;opacity:1!important;transition:none!important;box-shadow:var(--e3)!important}
html.calm .drag-ghost .ghost-badge{position:absolute;z-index:1;left:10px;top:-13px;padding:4px 9px;border-radius:999px;background:var(--ink,#16181d);color:#fff;font-size:11px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;box-shadow:0 4px 10px #19191b33}
html.calm .drag-ghost .ghost-badge.no-change{background:#fff;color:var(--muted,#8a94a6);border:1px solid var(--line,#e3e6eb)}
html.calm .drag-ghost .ghost-badge:empty{display:none}
/* Live drag: the card's space travels with the pointer, the other cards slide aside, the slot says what the drop does */
html.calm .drag-source{position:absolute!important;visibility:hidden!important;pointer-events:none!important}
html.calm .drop-slot{flex:none;box-sizing:border-box;height:var(--slot-h,72px);display:flex;align-items:center;justify-content:center;border-radius:var(--r-card,12px);border:1.5px dashed color-mix(in srgb,var(--lane-ink,#7f93ae) 60%,transparent);background:color-mix(in srgb,var(--lane-ink,#7f93ae) 9%,#fff);animation:slot-in var(--dur-2) var(--ease-out)}
html.calm .drop-slot.home{animation:none}
@keyframes slot-in{from{opacity:0;transform:scale(.97)}}
html.calm body.live-drag .drop-slot-label{visibility:hidden}
html.calm .drop-slot-label{font-size:12px;font-weight:600;letter-spacing:-.01em;color:color-mix(in srgb,var(--lane-ink,#7f93ae) 80%,#1d2433);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 10px}
html.calm .drop-slot.no-change{border-color:var(--muted2,#c3cad6);background:transparent}
html.calm .drop-slot.no-change .drop-slot-label{color:var(--muted,#8a94a6);font-weight:500}
html.calm .board .cards:has(.drop-slot) .empty-drop{display:none!important}
html.calm .board .column.drag-over{outline:0!important;background:color-mix(in srgb,var(--lane-ink,#7f93ae) 7%,transparent)!important}
html.calm .board .column.drag-over .column-head{background:transparent!important}
html.calm body.live-drag .drop-before:before{display:none}
html.calm body.live-drag .drop-before,html.calm body.live-drag .cards.drop-end{box-shadow:none!important}
/* 3 · landing (UX package B): the card that took a new place shows it with one quiet ring and tint in its lane's ink, 220 ms on the one
   curve, then nothing (the 600 ms bounce is gone). A 1.01 lift only when no fly brought it there (keyboard, dialog, ··· field, create).
   The ring is an overlay (::before; ::after is the venture stripe) that fades out: the card's own shadow (none at rest) is never
   animated, so it ends where it was. */
html.calm .just-landed::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--lane-ink,#7f93ae) 70%,transparent);background:color-mix(in srgb,var(--lane-ink,#7f93ae) 8%,transparent);animation:card-land var(--dur-land) var(--ease-out)}
@keyframes card-land{from{opacity:1}to{opacity:0}}
html.calm .just-landed.land-lift{animation:card-land-lift var(--dur-land) var(--ease-out)}
@keyframes card-land-lift{from{transform:scale(1.01)}to{transform:none}}
@media (prefers-reduced-motion:reduce){html.calm .drop-slot{animation:none}html.calm .just-landed,html.calm .just-landed::before{animation:none}}

/* UX package B · motion and feedback (Minh 2026-11-16 "1B"; OUTPUTS/reports/2026-11-16-dao-hq-ux-principles-audit-v01.md). Calm,
   purposeful motion only, on the :root tokens; none of it under prefers-reduced-motion: reduce (h1.css also turns every transition off).
   2 · a card's save note is a small pill laid over its bottom-right corner, out of flow: the card never changes height (audit §10).
       A failure keeps the readable red block line (live.css, role=alert): an error must be read, so it may take space. */
html.calm .board .operating-card>.write-feedback:not([role=alert]){position:absolute;right:var(--s2);bottom:var(--s2);z-index:2;max-width:calc(100% - 2*var(--s2));margin:0;padding:2px var(--s2);border:1px solid var(--line);border-radius:var(--r-pill);background:#fff;box-shadow:var(--e1);color:var(--muted);font-size:var(--fs-xs);font-weight:500;line-height:16px;white-space:normal;pointer-events:none}
html.calm .board .operating-card>.write-feedback[data-leaving]:not([role=alert]){opacity:0}
/* 4 · dialogs, the palette, the card popovers (···, people) and the toast open over 180 ms from opacity 0 (dialogs scale .98; popovers
       rise 4 px, as their placement measures their own box; the toast rises 6 px) and close over 150 ms; the backdrop fades with its
       dialog. Closing needs the top layer to wait (overlay): a browser without it closes at once. 9 · card actions fade over --dur-1. */
@media (prefers-reduced-motion:no-preference){
  html.calm .board .operating-card>.write-feedback:not([role=alert]){transition:opacity var(--dur-1) var(--ease-out)}
  html.calm .operating-card :is(.card-focus,.card-more,.assign-button){transition:opacity var(--dur-1) var(--ease-out)}
  html.calm dialog:not(.login-page)[open]{transition:opacity var(--dur-enter) var(--ease-out),scale var(--dur-enter) var(--ease-out)}
  html.calm dialog:not(.login-page)[open]::backdrop{transition:opacity var(--dur-enter) var(--ease-out)}
  html.calm :is(#task-options,#people-popover):popover-open{transition:opacity var(--dur-enter) var(--ease-out),translate var(--dur-enter) var(--ease-out)}
  html.calm #toast:popover-open{transition:opacity var(--dur-enter) var(--ease-out),translate var(--dur-enter) var(--ease-out)}
  @starting-style{
    html.calm .board .operating-card>.write-feedback:not([role=alert]){opacity:0}
    html.calm dialog:not(.login-page)[open]{opacity:0;scale:.98}
    html.calm dialog:not(.login-page)[open]::backdrop{opacity:0}
    html.calm :is(#task-options,#people-popover):popover-open{opacity:0;translate:0 -4px}
    html.calm #toast:popover-open{opacity:0;translate:0 6px}
  }
  @supports (overlay:auto){
    html.calm dialog:not(.login-page):not([open]){opacity:0;scale:.98;pointer-events:none;transition:opacity var(--dur-1) var(--ease-out),scale var(--dur-1) var(--ease-out),overlay var(--dur-1) var(--ease-out) allow-discrete,display var(--dur-1) var(--ease-out) allow-discrete}
    html.calm dialog:not(.login-page):not([open])::backdrop{opacity:0;transition:opacity var(--dur-1) var(--ease-out),overlay var(--dur-1) var(--ease-out) allow-discrete,display var(--dur-1) var(--ease-out) allow-discrete}
    html.calm :is(#task-options,#people-popover):not(:popover-open){opacity:0;translate:0 -4px;pointer-events:none;transition:opacity var(--dur-1) var(--ease-out),translate var(--dur-1) var(--ease-out),overlay var(--dur-1) var(--ease-out) allow-discrete,display var(--dur-1) var(--ease-out) allow-discrete}
    html.calm #toast:not(:popover-open){translate:0 6px;pointer-events:none;transition:opacity var(--dur-1) var(--ease-out),translate var(--dur-1) var(--ease-out),overlay var(--dur-1) var(--ease-out) allow-discrete,display var(--dur-1) var(--ease-out) allow-discrete}
  }
}
/* 6 · more of the card opens it (audit §13): the project chip is only as wide as its name and the next step as its text, so the rest of
       those lines opens (and drags) the card. A click on the title still edits (Minh's rule). The identity still fills the top line; the
       chip inside it takes its name width. fit-content, never max-content: max-content would make the chip's smallest size its whole
       name, so the top line could not shrink and pushed ··· and focus out of the card (e2e and lint 13ed31b). The name's rest keeps its
       real width (no inline-size containment, see below) but may break anywhere, so the chip's minimum stays its first word (Q1/B3). */
html.calm .board .card-top .project-identity .chip-select.project-chip{width:fit-content!important;max-width:100%!important}
html.calm .board .signal-zone>.next-step{justify-self:start;width:fit-content;max-width:calc(100% + 4px)}
/* 7 · bigger hit boxes on fine pointers (audit §14): ···, focus and a lone Assign are 32 px boxes, the lane "+" a 36 px box, and each
       looks exactly as before. The box grows by padding with content-box sizing (so the measured height stays the 28 px control height
       and the border 1 px), the background (rest, hover, pressed) is clipped to the 28 px content box, a negative margin keeps the
       footprint, and the focus ring keeps its place. The box is the button itself, so every engine hit-tests it alike (the ::before
       areas did not: e2e 13ed31b, a989e28). Neighbours: the boxes of focus and ··· meet in the middle of their 4 px gap, never overlap;
       the top line keeps 6 px to the chip; the "+" reaches its head's edge; an Assign beside avatars or a name keeps 28 px (a bigger
       box would cover them). A lone Assign moves its 8 px side padding inside as two 4 px spacers plus the 5 px gap, so its pill keeps
       its width. The row under the top line (workstream chip, tag, "To sort") starts only 2 px below it, so the top line gets 2 px more
       room below: the 2 px under the boxes stay free and that row's control keeps its own top edge (e2e c7ff389: zero gap, WebKit gave
       the box's bottom to the chip). A board card grows by exactly 2 px. Phones and narrow windows have 36 px controls already. */
@media (pointer:fine) and (min-width:761px){
  html.calm .card-actions>:is(.card-focus,.card-more),html.calm .column-head>.icon-btn,html.calm .people-cluster>.assign-button.empty:only-child{box-sizing:content-box;background-clip:content-box!important}
  html.calm .card-actions>:is(.card-focus,.card-more),html.calm .people-cluster>.assign-button.empty:only-child{padding:1px!important;margin:-2px}
  html.calm .column-head>.icon-btn{padding:3px!important;margin:-4px -4px -4px auto}
  html.calm .card-actions>:is(.card-focus,.card-more):focus-visible,html.calm .people-cluster>.assign-button.empty:only-child:focus-visible{outline-offset:0}
  html.calm .column-head>.icon-btn:focus-visible{outline-offset:-2px}
  html.calm .people-cluster>.assign-button.empty:only-child{gap:5px}
  html.calm .people-cluster>.assign-button.empty:only-child::before{content:""!important;flex:none;width:4px;height:0}
  html.calm .people-cluster>.assign-button.empty:only-child::after{content:""!important;flex:none;width:4px;height:0}
  html.calm .board .card-top:has(>.card-actions){padding-bottom:2px}
}

/* Project goals (milestones): same box as Momentum / Needs attention; progress = done tasks linked to the goal */
html.calm .goals-panel{background:#fff;border:1px solid var(--line);border-radius:var(--r-box);padding:var(--s4) var(--s5) var(--s3);margin-bottom:var(--s5)}
html.calm .goals-panel .section-label{margin-bottom:var(--s2)}
html.calm .goal-row{padding:var(--s3) 0;border-top:1px solid var(--line2)}
html.calm .goal-row:first-of-type{border-top:0}
html.calm .goal-head{display:flex;align-items:baseline;gap:var(--s3)}
html.calm .goal-head h3{margin:0;font-size:16px;font-weight:620;letter-spacing:-.01em}
html.calm .goal-due{font-size:12px;color:var(--muted)}
html.calm .goal-edit{margin-left:auto;font-size:12px}
html.calm .goals-panel .progress-track{height:6px;border-radius:999px;background:var(--line2);margin:var(--s2) 0 var(--s1);overflow:hidden}
html.calm .goals-panel .progress-track span{display:block;height:100%;border-radius:999px;background:var(--green)}
html.calm .goal-progress{margin:0;font-size:12px;color:var(--muted)}
html.calm .goal-criteria{margin:var(--s2) 0 0;padding-left:18px;font-size:13px;color:var(--ink);line-height:1.5}
html.calm .goal-empty{margin:var(--s1) 0 var(--s2);font-size:13px;color:var(--muted)}
html.calm .goals-panel>.text-btn{display:inline-flex;align-items:center;gap:6px;margin-top:var(--s2);font-size:13px}
html.calm .goals-panel>.text-btn svg{width:14px;height:14px}

/* One heading colour: every heading in the workspace is ink (UI audit 2026-10-11 #17: no navy #344660 left from H1) */
html.calm :where(.workspace,.canvas,#task-modal,#entity-dialog,#create-dialog,#command) :is(h2,h3,h4){color:var(--ink)!important}
html.calm #goal-form textarea{width:100%;box-sizing:border-box;min-height:96px;border:1px solid var(--line);border-radius:var(--r-card);padding:10px 12px;font:inherit;font-size:14px;line-height:1.45;background:#fff;resize:vertical}
html.calm #goal-form label .muted{margin-left:4px;font-weight:400}
html.calm :is(.v04 .task-modal,.v04 .entity-modal){color:var(--ink)}
/* Create dialog selects share the drawer's select (design suite invariant); the input rule's 8 px vertical padding clipped
   their text at that height, so selects keep only horizontal padding */
html.calm body #create-dialog :is(select#new-project,select#new-owner,select#new-status,select){padding-top:0!important;padding-bottom:0!important;line-height:normal!important}

/* List rows line up (UX run S8): from 1200 px the row is one table-like grid; the meta wrappers dissolve (display:contents)
   so title · signal · project · date · priority · planning · private · status · people each own a column. A missing item
   leaves its cell empty, so every row shares the same x positions. Narrower screens keep the flexible row. */
@media (min-width:1200px){
html.calm .list .task-row{display:grid!important;grid-template-columns:minmax(0,1fr) 168px 132px 68px 88px 64px 18px 84px 96px!important;column-gap:12px!important;align-items:center!important}
html.calm .list .task-row :is(.list-meta,.card-meta){display:contents!important}
html.calm .list .task-row>.list-title{grid-column:1;grid-row:1;min-width:0}
html.calm .list .task-row>.signal-zone{grid-column:2;grid-row:1;min-width:0}
html.calm .list .task-row .project-identity{grid-column:3;grid-row:1;min-width:0}
html.calm .list .task-row .card-meta>.date-control{grid-column:4;grid-row:1}
html.calm .list .task-row .card-meta>.priority-token{grid-column:5;grid-row:1}
html.calm .list .task-row .card-meta>.chip-select{grid-column:6;grid-row:1;min-width:0;max-width:100%}
html.calm .list .task-row .private-mark{grid-column:7;grid-row:1}
html.calm .list .task-row .list-meta>.status-chip{grid-column:8;grid-row:1}
html.calm .list .task-row>.card-people-date{grid-column:9;grid-row:1;justify-content:flex-end}
html.calm .list .task-row>.card-people-date .people-cluster{flex-wrap:nowrap!important}
/* chips in a list cell keep their whole label on one line (B10: the urgent chip had wrapped "Urgen|t" in its 76 px cell);
   the date and priority cells are sized for the 12 px chip type: priority = mark 14 + gap 4 + chip ~63 */
html.calm body .list .task-row .card-meta :is(.priority-token,.priority-token > .chip-select,.date-control){flex-shrink:0}
html.calm body .list .task-row .card-meta .chip-select:not(.project-chip) > .chip-label{white-space:nowrap!important;overflow-wrap:normal!important}
}
html.calm .command-searching{margin:0;padding:var(--s4) var(--s5);font-size:13px;color:var(--muted)}
/* Stats inside a page body sit left with one column width (UX run S7), never spread across the full width */
html.calm .page-body>.study-overview .board-kpis{display:grid!important;grid-template-columns:repeat(auto-fill,220px)!important;justify-content:start!important;max-width:none!important;width:100%!important}
html.calm .page-body>.study-overview .board-kpis .overline{white-space:nowrap}

/* Project toggles (Minh 2026-10-12: a chosen chip turned light on hover with white text). The general button hover must
   never repaint a pressed ink pill; an unpressed chip answers hover with a white face and a darker hairline. */
html.calm .project-toggles .project-toggle:hover{background:#fff!important;border-color:var(--muted2)!important;color:var(--ink)!important}
html.calm .project-toggles .project-toggle[aria-pressed="true"],html.calm .project-toggles .project-toggle[aria-pressed="true"]:hover{background:var(--ink)!important;border-color:var(--ink)!important;color:var(--paper)!important}
html.calm .project-toggles .project-toggle[aria-pressed="true"] small{color:#ffffffb3!important}
html.calm .project-toggles .project-toggle[aria-pressed="true"]:hover{background:#2e2e33!important}
/* the create dialog's selects show they open: a caret drawn by their field (the select itself keeps the drawer's style) */
html.calm #create-dialog .quick-fields>div{position:relative}
html.calm #create-dialog .quick-fields>div:has(select)::after{content:'';position:absolute;right:12px;bottom:12px;width:6px;height:6px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);pointer-events:none}
html.calm body #create-dialog .quick-fields select{padding-right:28px!important}

/* ---- lint C (tokens, colour, format) ---- 2026-10-12 · each rule makes a Calm declaration above actually render; values
   are unchanged. The inherited live.css roles use !important (and `:is()` lists that contain an id), so the Calm
   declarations they shadow repeat here with enough weight. One rule per role, never per instance. */
/* board KPI: 28 / 600 / −.04em (live.css :is(.study-metric > strong,…) resets the tracking to 0 with !important) */
html.calm .global-head .study-metric strong{letter-spacing:-.04em!important}
/* canvas section headings: 17 / 620 / −.02em (live.css's heading `font` shorthand reset weight and tracking) */
html.calm .canvas section > .section-head h2,html.calm .canvas .section-label h2{font-weight:620!important;letter-spacing:-.02em!important}
/* Overview section labels are the small muted uppercase label (11 · audit pass); the id-weighted "one heading colour"
   rule and live.css's text-transform reset painted them as ink mixed case */
html.calm #main-content .ov-head h3{color:var(--muted)!important;text-transform:uppercase!important}
/* dialogs: paper, 24 px corners. live.css :is(dialog,…,#toast,…) carries id weight, so the surface repeats per dialog id */
html.calm body :is(#task-modal,#create-dialog,#help-dialog,#entity-dialog,#login-dialog){background:#f8f8f9!important;border-radius:24px!important}
/* list rows are the card in its list variant: the card corner (--r-card), not live.css's 8 px --radius-card */
html.calm body.board-study.v04 .list .task-row{border-radius:var(--r-card)!important}
/* drawer text inputs take the field height (7 · one input style); live.css names the owner-exception input in its 28 px control-height
   list, the only drawer text input it pins. (Create's selects stay the drawer's field chip: design suite invariant.) */
html.calm body #task-modal #override-reason{min-height:var(--h-field)!important}
/* the Task fields popover edits the same fields as the drawer and the record dialog: same field chip */
html.calm body #task-options .quick-fields .chip-select{background:#fff!important;border:1px solid var(--line)!important;border-radius:var(--r-card)!important;background-image:none!important}
/* brain dump: the declared capture box (16 px text, content-box corner); live.css's field rule had shrunk it to 13 px / 6 px */
html.calm #dump-text,html.calm #ctx-dump{font-size:16px!important;line-height:1.5!important;border-radius:var(--r-box)!important}
/* Calm's blue (needs Minh · ready to inspect) is a :root token; live.css re-points --blue to --accent on body, and Calm's
   accent is ink, so every Calm blue carrier (hot pill, need kind, unlocks, result path) rendered ink. Inherit the token. */
html.calm body.board-study.v04[data-board-variant]{--blue:inherit}
/* project identity in an Activity line: the control type of the card chip, including its tracking (h1.css left −.1px) */
html.calm .event-project .project-chip{letter-spacing:0}

/* ---- workstreams (lanes of a venture) and quick captures still to sort ---- */
.ws-toggles{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:0 var(--gutter,24px) 12px}
/* Team / Agents: the Ventures row sits in the tools bar (its hairline is the head edge); the bar already gives the inset */
.people-tools>.ws-toggles{padding:0}
/* Minh 2026-10-15: a chip row never wraps. Each level (Ventures, Divisions, Workstreams, Projects) is one line that scrolls
   sideways, its label stays in view and the far edge fades, so 40 projects cost one line and the board keeps the screen */
:is(.ws-toggles,.project-toggles){flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 32px),transparent)}
:is(.ws-toggles,.project-toggles)::-webkit-scrollbar{display:none}
:is(.ws-toggles,.project-toggles)::after{content:'';flex:none;width:24px}
:is(.ws-toggles,.project-toggles)>.ws-toggles-label{position:sticky;left:0;z-index:1;flex:none;align-self:stretch;display:flex;align-items:center;margin-right:0;padding-right:10px;background:var(--paper)}
.ws-toggles-label{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-right:6px}
html.calm .ws-toggles .ws-toggle{display:inline-flex;flex:none;width:max-content;white-space:nowrap;align-items:center;gap:6px;height:var(--h-ctl);padding:0 12px;border:1px solid var(--line);border-radius:var(--r-pill);background:transparent;color:var(--ink);font:inherit;font-size:var(--fs-ctl);cursor:pointer}
html.calm .ws-toggles .ws-toggle small{color:var(--muted);font-variant-numeric:tabular-nums}
html.calm .ws-toggles .ws-toggle:hover{background:#fff!important;border-color:var(--muted2)!important;color:var(--ink)!important}
html.calm .ws-toggles .ws-toggle[aria-pressed="true"],html.calm .ws-toggles .ws-toggle[aria-pressed="true"]:hover{background:var(--ink)!important;border-color:var(--ink)!important;color:var(--paper)!important}
html.calm .ws-toggles .ws-toggle[aria-pressed="true"] small{color:#ffffffb3!important}
html.calm .ws-toggles .ws-toggle.sort{border-style:dashed;border-color:#d9c38f}
/* To sort stands apart from the workstream chips (2026-11-16): its caption after a thin rule, not sticky like the row label */
html.calm :is(.ws-toggles,.project-toggles)>.ws-toggles-label.ws-toggles-aside{position:static;z-index:auto;margin-left:6px;padding:0 4px 0 12px;border-left:1px solid var(--line);background:none}
html.calm .ws-toggles .ws-toggle.sort[aria-pressed="true"]{background:#7a5b14!important;border-color:#7a5b14!important;border-style:solid}
/* a card's workstream: one quiet line above the title, a link to its lane */
html.calm .ws-tag{display:inline-block;max-width:100%;margin:2px 0 4px;padding:1px 8px;border-radius:999px;background:#eef0f6;color:#3d4766;font-size:11px;font-weight:550;line-height:18px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.calm .ws-tag:hover{background:#e2e6f1}
html.calm .chip-select.ws-chip{display:inline-flex;max-width:100%;margin:2px 0 4px;padding:1px 8px;border:0;border-radius:999px;background:#eef0f6;color:#3d4766;font-size:11px;font-weight:550;line-height:18px;min-height:0}
html.calm .chip-select.ws-chip:hover{background:#e2e6f1}
/* Divisions (2026-10-14): one colour per division, on the group blocks and the board chips */
html.calm [data-division]{--div:#94a3b8}
html.calm [data-division=product]{--div:#6366f1}
html.calm [data-division=marketing]{--div:#f59e0b}
html.calm [data-division=customers]{--div:#14b8a6}
html.calm [data-division=finance]{--div:#22a06b}
html.calm [data-division=operations]{--div:#8b5cf6}
html.calm [data-division=legal]{--div:#e05d6f}
html.calm .div-group{margin:18px 0 10px;padding:2px 0 2px 14px;border-left:3px solid var(--div)}
html.calm .div-group+.div-group{margin-top:26px}
html.calm .div-head{display:flex;align-items:center;gap:8px;margin:0 0 10px}
html.calm .div-head h2,html.calm .div-head h3{margin:0;font-size:14px;font-weight:650;color:var(--ink,#1f2937);letter-spacing:0}
html.calm .div-dot{flex:none;width:9px;height:9px;border-radius:50%;background:var(--div)}
html.calm .div-meta{margin-left:4px;font-size:12px;color:var(--muted,#6b7280)}
html.calm .div-group[data-division=none] .div-head h2,html.calm .div-group[data-division=none] .div-head h3{color:var(--muted,#6b7280);font-weight:600}
html.calm .ctx-page .div-group{display:grid;gap:10px;margin:0}
html.calm .ctx-page .div-group .div-head{margin:0 0 2px}
html.calm :is(.div-toggle,.ws-toggles .ws-toggle)[data-division]:not([data-division=""])::before{content:"";display:inline-block;flex:none;width:7px;height:7px;margin-right:6px;border-radius:50%;background:var(--div)}
html.calm .chip-select.ws-chip .chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* To sort: no project yet — warm paper and a dashed edge, so it is found and finished later */
html.calm .board .task-card.to-sort,html.calm .list .task-row.to-sort{background:#fffaf0!important;border:1px dashed #dcc89a!important}
html.calm .sort-tag{display:inline-block;margin:2px 0 4px;padding:1px 8px;border-radius:999px;background:#f6ead0;color:#6f5413;font-size:11px;font-weight:600;line-height:18px}
html.calm .list .task-row .list-title .ws-tag,html.calm .list .task-row .list-title .sort-tag{margin:0 8px;flex:none;max-width:180px}
/* "→ Add a project" (Minh 2026-11-14): the To sort tag of a card outside Inbox is the action that opens its Project field: warm, calm, no alarm */
html.calm button.sort-tag.add-project{cursor:pointer;text-align:left}
html.calm :is(.board,.list) .task-zones button.sort-tag.add-project:is(:hover,:focus-visible){background:color-mix(in srgb,var(--amber) 20%,#fff)}
/* the column form's project choice sits right below the title, in the same quiet field look */
html.calm .inline-create :is(select[name=project],select[name=venture],input[name=new_project]){display:block;width:100%;margin-top:6px;padding:6px 5px;border:0;border-radius:6px;background:#fff;font-size:12px;color:var(--ink)}
html.calm .inline-create :is(select[name=venture],input[name=new_project])[hidden],html.calm :is(#new-venture,#new-task-project)[hidden]{display:none}
html.calm :is(#new-venture,#new-task-project){margin-top:8px}
/* the Workstreams page: one section per venture, one row per workstream */
html.calm .ws-page{display:flex;flex-direction:column;gap:var(--s5)}
html.calm .ws-venture{background:#fff;border:1px solid var(--line);border-radius:var(--r-box);padding:var(--s4) var(--s5) var(--s2)}
html.calm .ws-venture .section-label{display:flex;align-items:baseline;gap:var(--s3);margin-bottom:var(--s2)}
html.calm .ws-venture .section-label span{font-size:12px;color:var(--muted)}
html.calm .ws-venture .section-label .text-btn{margin-left:auto;display:inline-flex;align-items:center;gap:4px;font-size:13px}
html.calm .ws-venture .section-label .text-btn svg{width:14px;height:14px}
html.calm .ws-row{display:grid;grid-template-columns:minmax(0,1fr) auto 180px 48px;gap:var(--s4);align-items:center;padding:var(--s3) 0;border-top:1px solid var(--line2)}
html.calm .ws-row:first-of-type{border-top:0}
html.calm .ws-row.status-done{opacity:.62}
html.calm .ws-title{display:flex;align-items:baseline;gap:var(--s2);flex-wrap:wrap}
html.calm .ws-name{font-size:var(--fs-row);font-weight:620;letter-spacing:-.01em;color:var(--ink);text-decoration:none}
html.calm .ws-name:hover{text-decoration:underline}
html.calm .ws-kind{font-size:11px;font-weight:600;padding:1px 8px;border-radius:999px;background:#eef0f6;color:#3d4766}
html.calm .ws-status{font-size:11px;color:var(--muted)}
html.calm .ws-meta{margin:4px 0 0;font-size:var(--fs-sm);color:var(--muted)}
html.calm .ws-next{margin:4px 0 0;font-size:var(--fs-sm);color:var(--ink)}
html.calm .ws-next .text-btn{font-size:var(--fs-sm);padding:0}
html.calm .ws-numbers{display:flex;gap:var(--s4)}
html.calm .ws-numbers span{display:flex;flex-direction:column;align-items:flex-end;font-size:11px;color:var(--muted);min-width:44px}
html.calm .ws-numbers b{font-size:18px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
html.calm .ws-numbers .hot b{color:var(--red)}
html.calm .ws-progress .progress-track{height:6px;border-radius:999px;background:var(--line2);overflow:hidden}
html.calm .ws-progress .progress-track span{display:block;height:100%;background:var(--green)}
html.calm .ws-progress small{display:block;margin-top:4px;font-size:11px;color:var(--muted)}
html.calm .ws-edit{font-size:12px}
html.calm .ws-empty{margin:var(--s1) 0 var(--s3);font-size:13px;color:var(--muted)}
html.calm .ws-foot{font-size:var(--fs-sm);color:var(--muted)}
html.calm .project-ws .ws-line{display:flex;justify-content:space-between;gap:var(--s3);padding:10px 0;border-top:1px solid var(--line2);text-decoration:none;color:var(--ink);font-size:14px}
html.calm .project-ws .ws-line:first-of-type{border-top:0}
html.calm .project-ws .ws-line span{font-size:12px;color:var(--muted)}
html.calm .ws-toggles .ws-toggle.sort[aria-pressed="true"] small{color:#fff!important}
/* ---- lint B (semantics, contrast, names) ---- */
/* K4: --muted2 (top of file) moved #929299 → #8d8d94 so the page sub-headline and the home rotate line reach 3.05:1 on paper (was 2.86:1) and stay a step lighter than --muted.
   Muted copy inside the waiting tint (#f5ebd8) is darkened so 10–11px age and reason text reach 4.5:1 (was 4.35:1). */
html.calm .signal-zone[data-tone=waiting] :is(.signal-age,.signal-detail){color:#636369!important}
/* K8: the home section heads are h2 under the page h1 (were h3, a skipped level); they keep the exact h3 look */
html.calm .ov-head h2{font-size:var(--fs-label)!important;letter-spacing:var(--track-label)!important;text-transform:uppercase;color:var(--muted)!important;font-weight:var(--fw-label)!important;margin:0!important}
/* K9: card wrappers marked data-no-drag (people cluster, inline title form) do nothing on click (app.js ignores clicks inside them); only their controls show the pointer */
html.calm .board [data-card] :is(div,span,form)[data-no-drag]:not([data-action],[role]){cursor:default}
/* K10: the voice placeholder dims through :disabled, so the dimming states the disabled attribute instead of the class */
html.calm .dump-voice:not(:disabled){opacity:1}
/* ---- lint A (content, truncation, spacing) ---- */
/* B1/B2/B3: Overview rows, cards and need stacks break long unbroken names inside their box (#home stack-main ran to 2665px). */
html.calm .canvas.overview{overflow-wrap:anywhere}
/* S3: running text keeps a measure of at most 90 characters; 72ch (digit width) read as ~91 average characters. */
html.calm :is(p.entity-description,.panel-textarea,.prototype-note,.proof-hint,.heatmap-note,.settings-row p){max-width:44em}
/* B3b: a project chip keeps its first word whole and shows the rest only when at least four characters fit; otherwise
   the rest wraps onto a clipped second line and the chip reads as its first word (no "Synthetic …"). */
html.calm .chip-select.project-chip > .chip-label{flex-wrap:wrap;max-height:1lh}
html.calm .chip-select.project-chip .chip-rest{flex:1 1 3.4em;min-width:3.4em}
/* B10: the project head (status, members, tabs) always owns the full first row of the tools, as it does with a long
   member list; with a short one the filters joined it and Board/List dropped alone onto a second row. */
html.calm .board-tools > .project-board-context{flex:1 0 100%}
/* Q1/B3: on cards the chip and its slot never shrink below the first whole word (comfortable density squeezed
   "Synthetic" to "Synthet" beside the private mark); the rest adds no intrinsic width, so only the first word is the minimum. */
html.calm .card-top > .project-identity,html.calm .card-top .chip-select.project-chip{min-width:min-content!important}
/* UX package B (6): the rest now adds its real width, so the chip can be as wide as its name; break-all keeps its smallest size at one
   character (the min-width above still holds the 3.4em floor) and the one-line clamp keeps the ellipsis where the name is cut */
html.calm .board .card-top .chip-select.project-chip .chip-rest{contain:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;white-space:pre-wrap;word-break:break-all}
/* a one-word name has an empty rest: it takes no room (no 3.4em blank), so the chip ends with its word */
html.calm .board .card-top .chip-select.project-chip .chip-rest:empty{display:none}
/* Q2: WebKit ignores -webkit-line-clamp on a <button>, so a card's next-action heading painted three lines; its text
   span carries the two-line clamp, as card titles do. */
html.calm .operating-card .signal-heading-copy[data-action] > .card-title-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
/* the project head's people stay on one line (lint P1: a long member list pushed the lanes past 45 % of the height); the full
   team is listed on the project overview */
html.calm .project-members{flex-wrap:nowrap!important;min-width:0;max-width:100%}
html.calm .project-members>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html.calm .project-members .project-people{flex:none}
html.calm .board-tools:has(.project-members){padding-bottom:8px!important}
html.calm .board-tools .project-members + .tabs{margin-top:0!important}
/* owner actions (Edit, Delete project) close the members row; the names ellipsize between them */
html.calm .project-members>.project-member-names{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1 1 180px}
html.calm .project-members>.head-actions{margin-left:auto;padding-bottom:0;flex:none}
/* Overview section heads keep Calm's small muted uppercase label (the ink rule for workspace headings does not apply to them) */
html.calm .ov-head h2{color:var(--muted)!important;text-transform:uppercase!important}
/* an experiment's page: what it tests, and the owner's promote step (or the pending promotion) */
html.calm .experiment-panel{background:#fff;border:1px dashed #c9cfe0;border-radius:var(--r-box);padding:var(--s4) var(--s5);margin-bottom:var(--s5)}
html.calm .experiment-panel p{margin:var(--s1) 0 var(--s3);font-size:14px;line-height:1.5;color:var(--ink)}
html.calm .experiment-panel .btn{display:inline-flex;align-items:center;gap:6px}
html.calm .experiment-panel .btn svg{width:14px;height:14px}
/* ---- flows (feedback, focus) ---- */
/* D5: the activity heatmap scrolls sideways; its day buttons sit on the scroller's edge, so their focus ring (2px + 2px offset)
   was cut off. Room inside the scroller, given back outside, keeps the layout unchanged. */
html.calm .contribution-wrap > div:first-child{padding:4px;margin:-4px}
/* D5: project tabs scroll sideways (overflow:auto) with their tabs on its edge: same room for the ring */
html.calm .project-tabs{padding:4px;margin:-4px}
/* D5: the task-field order buttons wrap onto the popover's edge, where the popover (overflow hidden) cut their ring;
   the row gets the inset the field rows above already have */
html.calm #task-options .quick-order{padding:0 12px 12px}

/* flows D5: the New project Kind pills keep room for their focus ring inside the scrolling form */
#project-form .seg-field{padding:4px;margin-inline:-4px}

/* V3.1 simple: delete = Trash (restorable) · undo bar · trash list · project edit dialog */
html.calm .btn.danger{color:var(--red)!important;border-color:color-mix(in srgb,var(--red) 35%,var(--line))!important}
html.calm .btn.danger:hover{background:color-mix(in srgb,var(--red) 8%,#fff)!important}
html.calm #delete-project-form .btn.danger{background:var(--red)!important;border-color:var(--red)!important;color:#fff!important}
#toast .toast-action{margin-left:10px;font-weight:620;text-decoration:underline;text-underline-offset:3px;color:inherit}
.trash-list{display:grid;gap:8px;max-width:860px}
.trash-row{gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line,#dedee1);border-radius:var(--r-card);background:#fff}
.trash-row h3{margin:0;font-size:var(--fs-row)}
.trash-row .muted{color:var(--muted,#6d6d73);font-size:13px}
.project-row-wrap{position:relative;display:grid}
.project-row-wrap>.project-row{width:100%}
.project-row-wrap>.project-details{position:absolute;z-index:1;top:18px;right:56px;font-size:13px;color:var(--muted,#6d6d73)}
.project-row-wrap>.project-details:hover,.project-row-wrap>.project-details:focus-visible{color:var(--ink,#19191b)}
/* V3.2 cardinbox: Inbox list · a card title opens on click (rename = double click) */
html.calm .title-zone[data-rename-on]{cursor:pointer}
.inbox-page{max-width:920px}
.inbox-group{margin-top:var(--s5)}
.inbox-list{display:grid;gap:var(--s2)}
.inbox-row{display:flex;align-items:center;gap:var(--s3);padding:10px 14px;border:1px solid var(--line);border-radius:var(--r-card);background:#fff;min-width:0}
.inbox-title{flex:1 1 auto;min-width:0;text-align:left;font-size:14px;font-weight:560;color:var(--ink);padding:2px 0;background:none;border:0;cursor:pointer}
.inbox-title-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inbox-title:hover .inbox-title-text{text-decoration:underline;text-underline-offset:3px}
.inbox-row .chip-select{flex:none;max-width:200px}
.inbox-age{flex:none;font-size:12px;color:var(--muted);white-space:nowrap}
.inbox-next{flex:none;white-space:nowrap}
@media(max-width:760px){.inbox-row{flex-wrap:wrap}.inbox-title{flex-basis:100%}}
/* ---------- V3.3 work structure (Minh 2026-10-14): context pages, project summary, decide, intake review ----------
   Same paper, hairlines and tinted boxes: blue = needs a decision · green = achieved · warm = waiting / to decide */
html.calm .check-row{display:flex;align-items:center;gap:var(--s2);margin:var(--s3) 0;font-size:14px;color:var(--ink-2);cursor:pointer}
html.calm .check-row input{width:auto;margin:0}
html.calm .ctx-page{display:grid;gap:var(--s5)}
html.calm .ctx-ws{background:#fff;border:1px solid var(--line);border-radius:var(--r-box);padding:var(--s4) var(--s5)}
html.calm .ctx-ws.chosen{background:var(--hot-bg);border-color:var(--hot-line)}
html.calm .ctx-ws.loose,html.calm .ctx-ws.conflicts{background:var(--warm-bg);border-color:var(--warm-line)}
html.calm .ctx-ws.status-done{opacity:.62}
html.calm .ctx-ws-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s3);margin-bottom:var(--s2)}
html.calm .ctx-ws-head h2{margin:0;font-size:var(--fs-section);line-height:1.2;letter-spacing:-.02em;font-weight:620}
html.calm .ctx-ws-head h2 a{color:inherit;text-decoration:none}
html.calm .ctx-ws-head h2 a:hover{text-decoration:underline;text-underline-offset:4px}
html.calm .ctx-ws-head .muted{font-size:13px}
html.calm .ctx-ws-n{margin-left:auto;font-size:13px;color:var(--muted)}
html.calm .ctx-ws-desc{margin:0 0 var(--s2);color:var(--muted);font-size:14px;line-height:1.5}
html.calm .ctx-projs{display:grid;grid-template-columns:minmax(0,1fr)}
html.calm .ctx-proj,html.calm .ctx-task{display:grid;gap:4px;width:100%;text-align:left;font:inherit;color:var(--ink);background:transparent;border:0;border-top:1px solid var(--line2);padding:var(--s3) 0;cursor:pointer}
html.calm .ctx-projs > :first-child{border-top:0}
html.calm .ctx-proj:hover,html.calm .ctx-task:hover{background:linear-gradient(90deg,#fff0,#fff9 30%,#fff0)}
html.calm .ctx-proj-name{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap}
html.calm .ctx-proj-name strong,html.calm .ctx-task strong{font-size:var(--fs-row);letter-spacing:-.02em;font-weight:600;overflow-wrap:anywhere;min-width:0}
html.calm .ctx-proj,html.calm .ctx-task{min-width:0}
html.calm .ctx-proj-facts span,html.calm .ctx-missing,html.calm .ctx-ws-desc,html.calm .sum-cell div,html.calm .ib-main strong,html.calm .ib-source,html.calm .ib-note,html.calm .ib-question{overflow-wrap:anywhere;min-width:0}
html.calm .ctx-task small{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
html.calm .ctx-proj-facts{display:flex;flex-wrap:wrap;gap:4px var(--s4);font-size:13px;color:var(--muted)}
html.calm .ctx-proj-facts em{font-style:normal;color:var(--amber)}
html.calm .ctx-blocked{color:var(--amber);font-weight:600}
html.calm .ctx-missing{font-size:12px;color:var(--amber)}
html.calm .ctx-warn{margin:0;background:var(--warm-bg);border:1px solid var(--warm-line);border-radius:var(--r-box);padding:var(--s3) var(--s4);font-size:14px}
html.calm .ctx-capture{background:#fff;border:1px solid var(--line);border-radius:var(--r-box);padding:var(--s4) var(--s5)}
/* project summary: the answer first */
html.calm .project-summary{margin-bottom:var(--s5)}
html.calm .sum-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--s3)}
html.calm .sum-cell{background:#fff;border:1px solid var(--line);border-radius:var(--r-box);padding:var(--s3) var(--s4);min-height:76px}
html.calm .sum-cell small{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
html.calm .sum-cell div{font-size:15px;line-height:1.4}
html.calm .sum-cell.missing{background:var(--warm-bg);border-color:var(--warm-line)}
html.calm .sum-cell.missing div{color:var(--amber)}
html.calm .sum-cell.blocked{background:var(--warm-bg);border-color:var(--warm-line)}
html.calm .sum-cell.achieved{background:var(--green-bg);border-color:var(--green-line)}
html.calm .sum-missing{margin:var(--s3) 0 0;font-size:13px;color:var(--amber)}
html.calm .goal-next,html.calm .goal-done{display:inline-block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;border-radius:999px;padding:2px 8px;margin-right:8px;vertical-align:middle}
html.calm .goal-next{background:#edf3ff;color:var(--blue);border:1px solid var(--hot-line)}
html.calm .goal-done{background:#edf7f1;color:var(--green);border:1px solid var(--green-line)}
html.calm .goal-row.achieved h3{color:var(--muted)}
html.calm .goal-evidence{margin:6px 0 0;font-size:13px;color:var(--green)}
/* inbox + decide */
.inbox-age.aging{color:var(--amber);font-weight:600}
.inbox-question{flex:0 1 260px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--amber)}
.inbox-decide{flex:none;white-space:nowrap}
html.calm .ov-card.warm{background:var(--warm-bg);border-color:var(--warm-line)}
html.calm .triage-part{display:grid;gap:4px;min-width:0}
html.calm #create-dialog .quick-fields > div{min-width:0}
html.calm #create-dialog .quick-fields select{max-width:100%;min-width:0;text-overflow:ellipsis}
html.calm .triage-part[hidden],html.calm [data-part][hidden]{display:none}
html.calm .triage-choice{flex-wrap:wrap}
/* intake review */
html.calm .ib-page{display:grid;gap:var(--s5)}
html.calm .ib-intro{margin:0;background:var(--hot-bg);border:1px solid var(--hot-line);border-radius:var(--r-box);padding:var(--s3) var(--s4);font-size:14px}
html.calm .ib-section{background:#fff;border:1px solid var(--line);border-radius:var(--r-box);padding:var(--s4) var(--s5)}
html.calm .ib-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--s4);align-items:start;padding:var(--s3) 0;border-top:1px solid var(--line2)}
html.calm .ib-section .section-head + .ib-row{border-top:0}
html.calm .ib-row.decision-accepted{background:linear-gradient(90deg,#fff0,#edf7f1 40%,#fff0)}
html.calm .ib-row.decision-skipped{opacity:.55}
html.calm .ib-row.applied{opacity:.7}
html.calm .ib-main{display:flex;flex-wrap:wrap;align-items:center;gap:4px var(--s2)}
html.calm .ib-main strong{font-size:var(--fs-row);font-weight:600;letter-spacing:-.01em}
html.calm .ib-main .muted{font-size:13px}
html.calm .ib-note,html.calm .ib-question,html.calm .ib-match,html.calm .ib-source{flex:1 1 100%;font-size:13px}
html.calm .ib-question{color:var(--amber)}
html.calm .ib-match{color:var(--blue)}
html.calm .ib-source{color:var(--muted2)}
html.calm .ib-actions{display:flex;gap:var(--s2);align-items:center;white-space:nowrap}
@media (max-width:760px){html.calm .ib-row{grid-template-columns:1fr}html.calm .ib-actions{flex-wrap:wrap}html.calm .ctx-ws,html.calm .ib-section{padding:var(--s3) var(--s4)}}

/* ---- V3.3 polish · atmosphere (Minh 2026-10-15: "clean but captivating — big headlines, subheadlines, clear hierarchy, colour boxes";
   inspo: soft gradient haze, kicker labels in small caps, numbers in [ ], colour on top / paper below). Only colours already used:
   the six status colours and blue · green · red · amber. Big tight headlines and meaning-tinted boxes stay (DECISIONS 2026-10-11). ---- */
:root{
  --v-zeit-1:#2f7d8c;--v-zeit-2:#315fbd;--v-dao-1:#5b5fc7;--v-dao-2:#7d68d8;--v-minh-1:#b24d56;--v-minh-2:#9a6a1c;
  --v-atc-1:#2d694c;--v-atc-2:#2f7d8c;--v-other-1:#8a8a91;--v-other-2:#6d6d73;
  --a1:#5b5fc7;--a2:#b24d56;--a3:#2f7d8c;
}
html.calm [data-venture],html.calm [data-context]{--v1:var(--v-other-1);--v2:var(--v-other-2)}
html.calm [data-venture="zeit"],html.calm [data-context="zeit"]{--v1:var(--v-zeit-1);--v2:var(--v-zeit-2)}
html.calm [data-venture="dao"],html.calm [data-context="dao"]{--v1:var(--v-dao-1);--v2:var(--v-dao-2)}
html.calm [data-venture="minh"],html.calm [data-context="minh"]{--v1:var(--v-minh-1);--v2:var(--v-minh-2)}
html.calm [data-venture="atc"],html.calm [data-context="atc"]{--v1:var(--v-atc-1);--v2:var(--v-atc-2)}

/* page heads: a soft haze behind the big headline; a venture page (or a board filtered to one venture) takes its venture's colours */
html.calm .study-header.global-head{position:relative;isolation:isolate}
html.calm .study-header.global-head::before{content:"";position:absolute;z-index:-1;pointer-events:none;right:2%;top:-56px;width:min(620px,58%);height:320px;
  background:radial-gradient(closest-side at 28% 46%,color-mix(in srgb,var(--a1) 60%,transparent),transparent),radial-gradient(closest-side at 68% 58%,color-mix(in srgb,var(--a2) 46%,transparent),transparent),radial-gradient(closest-side at 50% 26%,color-mix(in srgb,var(--a3) 42%,transparent),transparent);
  filter:blur(46px);opacity:.34}
html.calm body[data-venture]:not([data-venture=""]) .study-header.global-head{--a1:var(--v1);--a2:var(--v2);--a3:#7d68d8}
html.calm body[data-view="context"] .study-header.global-head::before{opacity:.46}

/* kanban lanes (task boards): each head is a small colour box over the declared lane line — a big name and the count in drawn
   brackets. Design lint (2026-10-15): words stay DOM text (T1), the declared lane line, head colour, dot and name colour stay (L1). */
html.calm .board .column{--lane:var(--muted2)}
html.calm .board .column[data-status="inbox"]{--lane:var(--st-inbox)}
html.calm .board .column[data-status="next"]{--lane:var(--st-next)}
html.calm .board .column[data-status="doing"]{--lane:var(--st-doing)}
html.calm .board .column[data-status="waiting"]{--lane:var(--st-waiting)}
html.calm .board .column[data-status="review"]{--lane:var(--st-review)}
html.calm .board .column[data-status="done"]{--lane:var(--st-done)}
html.calm body.board-study .board .column[data-status]:not([data-board]) .column-head,html.calm body.board-study.v04[data-board-variant] .board .column[data-status]:not([data-board]) .column-head{
  padding-left:var(--s3)!important;border-right:1px solid color-mix(in srgb,var(--lane) 22%,#fff)!important;border-bottom:1px solid color-mix(in srgb,var(--lane) 22%,#fff)!important;
  border-left:1px solid color-mix(in srgb,var(--lane) 22%,#fff)!important;border-radius:4px 4px 12px 12px!important;
  background-image:linear-gradient(160deg,color-mix(in srgb,var(--lane) 16%,#fff) 0%,color-mix(in srgb,var(--lane) 5%,#fff) 62%,#fff 100%)!important}
html.calm .board .column[data-status]:not([data-board]) .column-head > span[title]{font-size:17px!important;font-weight:650!important;letter-spacing:-.03em}
html.calm .board .column[data-status]:not([data-board]) .column-head > .count{--bk:color-mix(in srgb,var(--lane) 55%,var(--muted));padding:0 5px;margin-left:auto;font-variant-numeric:tabular-nums;
  border-left:1.5px solid var(--bk);border-right:1.5px solid var(--bk);background-image:linear-gradient(var(--bk),var(--bk)),linear-gradient(var(--bk),var(--bk)),linear-gradient(var(--bk),var(--bk)),linear-gradient(var(--bk),var(--bk));
  background-size:4px 1.5px;background-repeat:no-repeat;background-position:left top,left bottom,right top,right bottom}

/* cards: a venture stripe on the left; the title as the headline */
html.calm .board .operating-card.task-card[data-venture]::after{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:linear-gradient(180deg,var(--v1),var(--v2));opacity:.85;pointer-events:none}
html.calm .board .operating-card.task-card .title-zone > .card-title-text{font-size:var(--fs-row)!important;font-weight:640!important;letter-spacing:-.018em;line-height:1.28!important;color:var(--ink)!important}
html.calm .board .operating-card.task-card :is(.ws-tag,.chip-select.ws-chip){font-size:var(--fs-sm)!important;font-weight:500!important;letter-spacing:0;text-transform:none;background:color-mix(in srgb,var(--v1,#8a8a91) 9%,#fff)!important;color:color-mix(in srgb,var(--v1,#8a8a91) 70%,var(--ink))!important;border:0!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--v1,#8a8a91) 22%,#fff)!important;border-radius:999px!important}
html.calm .sort-tag{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}
html.calm .board .operating-card.task-card .sort-tag{font-size:var(--fs-sm);font-weight:500;letter-spacing:0;text-transform:none;background:color-mix(in srgb,var(--amber) 10%,#fff);color:color-mix(in srgb,var(--amber) 85%,var(--ink));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--amber) 28%,#fff)}

/* venture marks: a small two-colour dot on venture chips and in the sidebar */
html.calm .ws-toggle.ctx-toggle[data-context]:not([data-context=""]):not([data-context="none"])::before{content:"";display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:linear-gradient(135deg,var(--v1),var(--v2));vertical-align:0}
html.calm .nav-item[href="#context=zeit"] svg{color:var(--v-zeit-1)}
html.calm .nav-item[href="#context=dao"] svg{color:var(--v-dao-1)}
html.calm .nav-item[href="#context=minh"] svg{color:var(--v-minh-1)}
html.calm .nav-item[href="#context=atc"] svg{color:var(--v-atc-1)}

/* the open card: a colour band in its venture's colours on top, paper below (inspo: colour on top, the words on paper) */
html.calm body #task-modal[data-venture]:not([data-venture=""]) .panel-top{background:linear-gradient(90deg,color-mix(in srgb,var(--v1) 26%,#fff) 0%,color-mix(in srgb,var(--v2) 14%,#fff) 55%,#fbfbfc 100%)!important;border-bottom:1px solid color-mix(in srgb,var(--v1) 18%,#fff)!important}
html.calm #task-modal .panel-kicker{margin-left:var(--s3);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-sm);font-weight:600;letter-spacing:0;text-transform:none;color:color-mix(in srgb,var(--v1,#6d6d73) 78%,var(--ink))}
html.calm #task-modal .panel-place{font-size:var(--fs-sm);font-weight:600;letter-spacing:0;text-transform:none;color:var(--amber)}

/* venture and workstream pages: tasks placed directly in a division sit in a quiet dashed box */
html.calm .ws-row.ws-direct{border-top-style:dashed!important}
html.calm .ws-row.ws-direct .ws-name{color:var(--ink-2)}
html.calm .ctx-ws.direct{border:1px dashed var(--line)!important;background:#fff8!important}

/* ---- V3.3 polish pass 2 · venture pages read like the board: colour on top, the words on paper, counts as small caps ---- */
/* Workstreams page: each venture is a box with its colour band on top (data-venture → --v1/--v2) */
html.calm .ws-venture[data-venture]{background:linear-gradient(180deg,color-mix(in srgb,var(--v1) 12%,#fff) 0,color-mix(in srgb,var(--v2) 5%,#fff) 72px,#fff 132px)!important;border-color:color-mix(in srgb,var(--v1) 18%,var(--line))!important}
html.calm .ws-venture .section-label > span{font-size:var(--fs-label);font-weight:650;letter-spacing:.12em;text-transform:uppercase;color:color-mix(in srgb,var(--v1) 55%,var(--ink-2))}
/* Division heads (venture and workstreams pages): a soft colour box, the name as a headline, the count in small caps */
html.calm .div-group{border-left-width:2px}
html.calm .div-head{padding:8px 12px;border-radius:var(--r-md);background:linear-gradient(90deg,color-mix(in srgb,var(--div) 13%,#fff) 0%,color-mix(in srgb,var(--div) 4%,#fff) 60%,transparent 100%)}
html.calm .div-head h2,html.calm .div-head h3{font-size:var(--fs-section);letter-spacing:-.03em;line-height:1.2}
html.calm .div-meta{font-size:var(--fs-label);font-weight:650;letter-spacing:.12em;text-transform:uppercase;color:color-mix(in srgb,var(--div) 50%,var(--ink-2))}
html.calm .div-group[data-division=none] .div-head{background:linear-gradient(90deg,#f1f1f3 0%,transparent 100%)}
/* Context page: a workstream box takes its division's colour on top, paper below; counts in small caps */
html.calm .ctx-page .div-group[data-division] .ctx-ws:not(.direct):not(.chosen){background:linear-gradient(180deg,color-mix(in srgb,var(--div) 8%,#fff) 0,#fff 76px)}
html.calm .ctx-ws-n{font-size:var(--fs-label);font-weight:650;letter-spacing:.12em;text-transform:uppercase}
html.calm .ctx-ws.chosen .ctx-ws-head h2{font-size:var(--fs-section)}
/* tasks placed directly in a division: a quiet dashed box in the division's colour, never a heavy line */
html.calm .ws-row.ws-direct{margin:6px 0;padding:var(--s3) var(--s3)!important;border:1px dashed color-mix(in srgb,var(--div,#9ca3af) 45%,#fff)!important;border-radius:var(--r-md);background:color-mix(in srgb,var(--div,#9ca3af) 4%,#fff)}
html.calm .ctx-ws.direct{border:1px dashed color-mix(in srgb,var(--div,#9ca3af) 45%,#fff)!important;background:color-mix(in srgb,var(--div,#9ca3af) 4%,#fff)!important}
/* Activity in a place: the server KPIs cannot be scoped, so the head shows the place's 7-day completions trend instead
   (the board head hides the trend since design v04; here it is the only 7-day number of the place) */
html.calm body .study-header .activity-trend .board-trend{display:flex!important;min-width:300px;align-items:flex-end;gap:22px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--v1,#8b93a7) 22%,#fff)!important;border-radius:var(--r-md)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--v1,#8b93a7) 12%,#fff) 0%,#fff 70%)!important}
html.calm .activity-trend .trend-copy .micro-label{font-size:10px;font-weight:650;letter-spacing:.12em;text-transform:uppercase}
html.calm .activity-trend .trend-copy strong{font-size:34px;letter-spacing:-.04em}

/* =====================================================================================================================
   ONE SCALE · shared building blocks (design pass 2026-11-14). Sizes come only from the scale at the top of this file.
   One rule per role, never per view; colours are untouched (Minh: "Farben passt"). Founder sample → defect class:
   "Texte nicht ganz in den Chips" → chip text leaves its box · "Knöpfe, Font, Sizes" → controls in one row differ in
   height, type and corner · phone board → scroll rows collapse in the workspace column · sidebar → last items cut.
   ===================================================================================================================== */

/* 1 · every control in a bar has one height, one type, one corner and one baseline: buttons, the search launcher, the
   capture counter, filter and display chips, project / venture / division / workstream toggles. (Inline capture buttons
   keep their own wrapping height: board standard "capture buttons wrap whole".) */
html.calm :is(.btn:not(.inline-create .btn),.search-launch,.capture-counter,.filter-chip,.filter-select-chip,.display-trigger,.activity-filter,.status-filter-label,.project-toggle,.ws-toggles .ws-toggle){
  box-sizing:border-box;height:var(--h-ctl)!important;min-height:var(--h-ctl)!important;font-size:var(--fs-ctl)!important;line-height:var(--lh-ctl)!important;
  font-weight:500;letter-spacing:-.01em!important;border-radius:var(--r-pill)!important;white-space:nowrap;vertical-align:middle;min-width:auto!important}
html.calm :is(.project-toggle,.ws-toggles .ws-toggle){padding:0 12px!important}
/* the New project / Create Kind pills are the same control */
html.calm .seg-field label span{display:inline-flex;align-items:center;box-sizing:border-box;height:var(--h-ctl);padding:0 12px;font-size:var(--fs-ctl);line-height:var(--lh-ctl);white-space:nowrap;border-radius:var(--r-pill)}
html.calm :is(.project-toggle,.ws-toggles .ws-toggle) small,html.calm .search-launch kbd,html.calm .capture-counter b{font-size:var(--fs-xs)!important}
/* segmented switches: the outer pill is the control height; its buttons fill it with a 1 px inset (24 px desktop targets) */
html.calm .segmented,html.calm .board-tools .segmented{box-sizing:border-box;height:var(--h-ctl)!important;padding:1px!important;gap:2px!important;align-items:stretch!important;border-radius:var(--r-pill)!important}
html.calm .segmented > button{height:auto!important;min-height:0!important;padding:0 10px!important;border-radius:var(--r-pill)!important;font-size:var(--fs-ctl)!important;line-height:var(--lh-ctl)!important;font-weight:500!important;letter-spacing:-.01em!important}
@media (max-width:760px),(pointer:coarse){html.calm .segmented,html.calm .board-tools .segmented{height:calc(var(--h-ctl) + 4px)!important}}
/* section tabs share the control type */
html.calm :is(.tab,.project-tabs button){font-size:var(--fs-ctl)!important;line-height:var(--lh-ctl)!important;font-weight:500;letter-spacing:-.01em!important}
/* the top bar reads as one line: breadcrumb and launcher in the control type, the date one step quieter */
html.calm .topbar .breadcrumb{font-size:var(--fs-ctl)!important;line-height:var(--lh-ctl)!important}
html.calm .topbar .top-date{font-size:var(--fs-sm)!important;white-space:nowrap}

/* 2 · text never leaves its chip. Read-only tags are one 20 px line: explicit height, line height, padding, no wrap,
   capped width with an ellipsis (the full text stays in the element's title where the view can cut it). */
html.calm :is(.pill,.tag,.state-pill,.req,.pill-basis,.goal-next,.goal-done,.card-draft,.right-note,.ws-tag,.sort-tag,.ws-kind):not(button){
  display:inline-block;box-sizing:border-box;height:var(--h-tag);line-height:calc(var(--h-tag) - 2px)!important;padding:0 8px!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;min-width:0;vertical-align:middle;border-radius:var(--r-pill)!important}
html.calm :is(.ws-tag,.sort-tag,.ws-kind):not(button){line-height:var(--h-tag)!important} /* borderless: the line is the full height */
html.calm :is(.pill,.state-pill,.pill-basis,.goal-next,.goal-done):not(button){font-size:var(--fs-label)!important}
html.calm :is(.tag,.req,.ws-kind,.ws-tag,.sort-tag,.card-draft,.right-note):not(button){font-size:var(--fs-xs)}
html.calm .pill > .dot{vertical-align:middle;margin-top:-2px}
/* interactive card chips with a fill (workstream picker, high/urgent priority): a 24 px pill with room on both sides, one
   line, ellipsis inside the lane card (space is genuinely constrained there). The native select keeps its title, so a cut
   label is still readable on hover. List rows show FULL chip labels (board standard): they only get the side room. */
html.calm body .list .task-row .chip-select.card-control:is(.ws-chip,.priority-chip:is(.high,.urgent,[data-tone=high],[data-tone=urgent])){padding-inline:6px!important}
html.calm body .board .operating-card .chip-select.card-control:is(.ws-chip,.priority-chip:is(.high,.urgent,[data-tone=high],[data-tone=urgent])){
  box-sizing:border-box;height:var(--h-chip)!important;min-height:var(--h-chip)!important;padding:0 8px!important;gap:4px;
  min-width:0!important;max-width:100%!important;white-space:nowrap;border-radius:var(--r-pill)!important}
/* every chip label but the project chip (which keeps its first-word policy, B3b) and list-row chips (full labels, board
   standard: never clipped) is one line with an ellipsis */
html.calm body .chip-select:not(.project-chip):not(.list *) > .chip-label{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;min-width:0}
/* a filter chip's label mirrors its native select's option text, so it is set without the control tracking (the option text
   has none; with -.01em the label box came out ~2 px narrower than the text it stands for: phone pipeline "label fits") */
html.calm body .filter-select-chip > .chip-label{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;letter-spacing:0!important}

/* 3 · dialog fields: one field height for text inputs, selects, field chips and dates in the drawer, Create and the record
   dialog (was 40 / 36 / 28 side by side). Selects centre their text without vertical padding. */
html.calm body :is(#task-modal,#create-dialog,#entity-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=date]):not([type=hidden]):not([type=file]),select):not(.chip-select > select):not(.date-control > input):not(.amount-chip input):not(.inline-title-zone input):not(#task-title):not(#entity-title),
html.calm body :is(#task-modal,#create-dialog,#entity-dialog) :is(.field-row,.panel-fields,.panel-section-title,.entity-facts,.waiting-fields,.quick-fields) :is(.chip-select,.date-control),
html.calm body #task-options .quick-fields :is(.chip-select,.date-control){
  box-sizing:border-box;height:var(--h-field)!important;min-height:var(--h-field)!important}
html.calm body :is(#task-modal,#create-dialog,#entity-dialog) select:not(.chip-select > select){padding-top:0!important;padding-bottom:0!important;line-height:normal!important}

/* 4 · scroll rows never collapse: in the workspace column only the canvas may give up height. A sideways-scrolling chip
   row (overflow ≠ visible) has an automatic minimum height of 0, so on the phone (and on short desktops) the four filter
   rows were shrunk on top of each other. */
html.calm .workspace > :not(.canvas){flex-shrink:0}

/* 5 · sidebar on the same scale: the brand row is the top bar's band (one line across the window), section labels and
   items use the spacing and control scale, so the whole Operations group shows on a 900 px laptop and the nav scrolls
   the rest above the workspace footer with the shared edge cue. */
@media (min-width:761px) and (min-height:480px){
  html.calm body.board-study.v04 .topbar{height:var(--bar-h);min-height:var(--bar-h)}
  html.calm body:not(.auth-page) .sidebar{padding-top:0!important}
  html.calm body.board-study.v04 .sidebar .brand{height:var(--bar-h);padding-bottom:0!important}
}

/* 6 · phones and touch (audit-mobile 2026-11-14). The phone layer of live.css / h1.css had outranked Calm here.
   a · head actions wrap instead of squeezing their labels; the phone head keeps Calm's rhythm (the compact landscape head
       is now scoped to short screens in live.css). The muted second clause stays hidden on phones except Home, as live. */
html.calm .head-actions{flex-wrap:wrap;row-gap:var(--s2)}
@media (max-width:760px) and (min-height:480px){html.calm .study-header,html.calm .global-head{row-gap:var(--s4)!important}}
/* b · the top bar's icon buttons are one round set at the touch floor (menu, search, inbox, create), 36 px square: the
       id outranks rule 1, whose min-width:auto (text controls keep their label) had shrunk the icon-only ones to 27-29 px */
@media (max-width:760px),(pointer:coarse){html.calm #topbar :is(.search-launch,.top-create,.capture-counter){height:var(--control-height)!important;min-height:var(--control-height)!important;min-width:var(--control-height)!important}}
/* c · coarse pointers: the visible chip stays 24 / 28 px; an invisible hit area reaches 44 px. A chip's native select is
       the tap target, so the select itself grows; buttons and summaries grow through ::after. */
@media (pointer:coarse){
  html.calm :is(.btn:not(.inline-create .btn),.search-launch,.capture-counter,.filter-chip,.display-trigger,.activity-filter,.status-filter-label,.project-toggle,.ws-toggles .ws-toggle,.segmented > button){position:relative}
  html.calm :is(.btn:not(.inline-create .btn),.search-launch,.capture-counter,.filter-chip,.display-trigger,.activity-filter,.status-filter-label,.project-toggle,.ws-toggles .ws-toggle,.segmented > button)::after{
    content:""!important;position:absolute;top:min(0px,calc(50% - 22px));bottom:min(0px,calc(50% - 22px));left:min(0px,calc(50% - 22px));right:min(0px,calc(50% - 22px))}
  html.calm body :is(.board .operating-card,.list .task-row) .chip-select.card-control:is(.ws-chip,.priority-chip:is(.high,.urgent,[data-tone=high],[data-tone=urgent])) > select{
    inset:auto!important;top:min(-1px,calc(50% - 22px))!important;left:min(-1px,calc(50% - 22px))!important;width:max(calc(100% + 2px),44px)!important;height:max(calc(100% + 2px),44px)!important}
}
/* d · iOS zooms into any field under 16 px: dialog fields keep 16 px on phones and touch (the 14 px Calm field rule had
       beaten live.css's 16 px guard by id weight). Titles keep their headline size. */
@media (max-width:760px),(pointer:coarse){
  html.calm body :is(#task-modal,#create-dialog,#entity-dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea):not(#task-title):not(#entity-title):not(.panel-title){font-size:var(--fs-input)!important}
}
/* e · Create: the project select spans its field like the title input above it */
html.calm body #create-dialog .quick-fields select{width:100%}
/* f · two-part heads stack instead of wrapping both parts: the action stays on the title's line, the meta takes its own
       line as one unit (division bands, workstream boxes, venture boxes) */
html.calm .div-head{flex-wrap:wrap;row-gap:2px}
html.calm .div-meta{white-space:nowrap}
html.calm .ctx-ws-head > .muted:empty{display:none}
@media (max-width:760px){
  html.calm .ctx-ws-head,html.calm .ws-venture .section-label{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--s3);row-gap:2px;align-items:baseline}
  html.calm .ctx-ws-head > :is(.text-btn,a):not(:first-child),html.calm .ws-venture .section-label > .text-btn{grid-column:2;grid-row:1;margin-left:0}
  html.calm .ctx-ws-head > :is(.muted,.ctx-ws-n),html.calm .ws-venture .section-label > span{grid-column:1 / -1;margin-left:0}
}
/* g · Workstreams rows stack on phones: name + Edit, then the numbers, then progress (the fixed 4-column grid needed
       ~560 px and squeezed the name to one letter per line) */
@media (max-width:760px){
  html.calm .ws-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main edit" "nums nums" "prog prog";row-gap:var(--s2)}
  html.calm .ws-row > .ws-main{grid-area:main}
  html.calm .ws-row > .ws-numbers{grid-area:nums;flex-wrap:wrap;gap:var(--s2) var(--s4)}
  html.calm .ws-row > .ws-numbers span{align-items:flex-start}
  html.calm .ws-row > .ws-progress{grid-area:prog}
  html.calm .ws-row > .ws-edit{grid-area:edit;align-self:start}
}
/* h · Projects: the title and its arrow share one line; on phones "Open" sits in the card's own last line (normal grid
       flow in a reserved band) instead of floating above the title at fixed offsets */
html.calm .project-row .row.spread{flex-wrap:nowrap}
html.calm .project-row .row.spread > h2{flex:1 1 auto;min-width:0}
html.calm .project-row .row.spread > svg{flex:none}
@media (max-width:760px){
  html.calm .project-row-wrap > *{grid-area:1 / 1}
  html.calm .project-row-wrap > .project-row{padding-bottom:calc(var(--s5) + var(--h-ctl))!important}
  html.calm .project-row-wrap > .project-details{position:static;align-self:end;justify-self:end;margin:0 var(--s4) calc(var(--s3) + var(--s3)) 0;z-index:1}
}

/* 7 · desktop round (audit-desktop 2026-11-14): one label, one title ladder, one selected look, one KPI tile.
   a · every uppercase micro-label is one style: 11 / 600 / +.08em (tinted variants keep only their colour). live.css's
       overline and KPI-label roles read the same tokens (--size-overline, --track-label). */
html.calm :is(.eyebrow,.page-eyebrow,.study-title .eyebrow.page-eyebrow,.nav-section,.section-label,.ws-toggles-label,.ov-head :is(h2,h3),.ov-card small,.kpi small,.sum-cell small,.ov-facts dt,.ov-row-head,.need-kind,.work-field > span,.guide-box label,.seg-field legend,.req-strip > span:first-child,.div-meta,.ctx-ws-n,.ws-venture .section-label > span,.micro-label){
  font-size:var(--fs-label)!important;font-weight:var(--fw-label)!important;letter-spacing:var(--track-label)!important;text-transform:uppercase!important}
html.calm #task-modal .drawer-details{font-size:var(--fs-label)!important;font-weight:var(--fw-label)!important;letter-spacing:var(--track-label)!important}
/* b · one title ladder: group 22 › box / section 17 › row 15. The venture page's division band and the Workstreams page's
       venture box are level 1; workstream boxes and the Workstreams page's division bands are level 2; every row, card and
       name is 15 (live.css's h2/h3 role had pinned all of them to 17, so a row of 18 sat under its 17 box heading). */
html.calm .ctx-page .div-head h2{font-size:var(--fs-group)!important;font-weight:620!important;letter-spacing:-.03em!important;line-height:1.15!important}
html.calm :is(.ctx-ws-head :is(h2,h3),.div-head h3){font-size:var(--fs-section)!important;font-weight:620!important;letter-spacing:-.02em!important;line-height:1.2!important}
html.calm :is(.ctx-proj-name strong,.ctx-task strong,.ws-name,.ib-main strong,.trash-row h3,.person-card h2){font-size:var(--fs-row)!important;font-weight:600!important;letter-spacing:-.012em!important}
/* c · one selected look per kind: every control (filter, display, activity filter, segment) is the ink fill the toggles and
       board segments already use; an open menu shows the hover face, not a selection; navigation keeps white + hairline */
html.calm body :is(.filter-chip,.filter-select-chip,.display-trigger,.activity-filter,.status-filter-label):is(.active,[aria-pressed=true]),
html.calm body .segmented > button[aria-pressed=true]{background:var(--ink)!important;color:#fff!important;border-color:var(--ink)!important;box-shadow:none!important}
html.calm details[open] > :is(.filter-chip,.display-trigger):not(.active):not([aria-pressed=true]){background:#fff!important;color:var(--ink)!important;border-color:var(--muted2)!important}
/* d · one KPI tile: an absent value is the number's own size and line, muted (was control type in a 1.5 line, 13 px low);
       head tiles share one width so their gaps no longer follow the label lengths */
html.calm .study-metric > strong.metric-na{font-size:var(--size-number)!important;line-height:1.04!important;font-weight:600!important;letter-spacing:-.04em!important}
html.calm .global-head .study-metric > strong.metric-na{font-size:var(--fs-stat)!important}
html.calm .study-metric > strong.metric-na::before{content:none!important}
@media (min-width:761px){html.calm .global-head .board-kpis{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(max-content,1fr)}}

/* 8 · names are content, never labels (lead review 2026-11-14: the label rule had turned card workstream chips into
       "ZH - WEBAPP ALP…"). Every chip or line that shows a user-entered name — workstream chip and tag, project chip,
       person name, priority / planning / status chip, date and amount on a card or list row, the drawer's venture ·
       workstream kicker and place — keeps the name's own case: 12 / 500, no tracking, on lane cards and list rows alike
       (desktop lint A2 2026-11-14: list rows at 11 px had split the chip, date and project roles; the list grid's date and
       priority columns are sized for 12 px, see "List rows line up"). Uppercase stays for section, eyebrow, KPI and
       toolbar-row labels only. Read-only workstream / sort tags on cards match the chip beside them. */
html.calm :is(.board .operating-card,.list .task-row) :is(.chip-select.card-control,.card-chip,.date-control,.amount-chip,.ws-tag,.sort-tag,button.assignee-name,.assignee-name){
  font-size:var(--fs-sm)!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important}
html.calm .board .operating-card :is(.ws-tag,.sort-tag):not(button){height:var(--h-chip);line-height:var(--h-chip)!important}

/* 9 · lint round (design lint 2026-11-14, candidate eba13d4 vs live 1362186), each at its shared rule:
   a · K9 / phone filter design: a chip's native select is its click target and covers the whole chip, border included,
       whatever height the chip takes (live.css pinned it at --control-height with top:-1px) */
html.calm :is(dialog,.task-options,form) .chip-select > select.card-control{top:-1px!important;height:calc(100% + 2px)!important}
/* b · A2 button role: the inline capture button keeps its wrapping height but shares the control type, corner and floor */
html.calm .inline-create .btn{font-size:var(--fs-ctl)!important;line-height:var(--lh-ctl)!important;font-weight:500;letter-spacing:-.01em!important;border-radius:var(--r-pill)!important;min-height:var(--h-ctl)!important;min-width:auto!important}

/* 10 · phone lint round (phone lint 2026-11-14, candidate 8f7c391 vs live 1362186), each at its shared rule:
   a · (withdrawn: the muted second clause stays hidden on phones, so its K4 and the 24 px floor no longer apply)
   b · B3b / Q1 / B1: the project head row (status pill, people, names, owner actions) wraps on phones. The status pill
       keeps its label and the owner actions take their own line instead of running off screen. */
html.calm .project-members>.pill{flex:none}
@media (max-width:760px){
  html.calm .project-members{flex-wrap:wrap!important;row-gap:var(--s2)}
  html.calm .project-members>.head-actions{margin-left:0}
}
/* c · coarse pointers: the bar's sideways toolbar clips vertically, so it holds its controls' 44 px hit area inside its
       own padding (net layout unchanged); the cut-off ::after had counted as hidden overflow */
@media (pointer:coarse){
  html.calm body .board-tools .toolbar{padding-block:max(0px,calc(22px - var(--h-ctl) / 2))!important;margin-block:min(0px,calc(var(--h-ctl) / 2 - 22px))!important}
}
/* d · phone pipeline: the sideways toolbar keeps live.css's 16 px trailing space after its last control (Calm's toolbar
       reset had zeroed it, so the last chip stopped at the clipped edge) */
@media (max-width:760px),(max-height:479px){
  html.calm body.board-study.v04[data-board-variant] .board-tools .toolbar{padding-inline-end:var(--s4)!important}
}
/* e · text buttons keep their label (rule 1), so the rows that hold several of them wrap instead of running out of the
       drawer at 320-375 px: the drawer footer (Session · Move to Review · Mark done) takes a second line. At 320 px the
       drawer's top row (id · kicker · Delete · Copy · prev / next / close) gets back the room the squeezed labels had
       given up: a 12 px inset and no extra kicker margin (the row gap already separates it). */
html.calm #task-modal .panel-footer .row{flex-wrap:wrap;row-gap:var(--s2)}
@media (max-width:360px){
  html.calm #task-modal .panel-top{padding-inline:var(--s3)!important}
  html.calm #task-modal .panel-kicker{margin-left:0}
}
/* Board function round (Minh 2026-11-14, "die letzten 10 %"): the obvious next thing sits on the card.
   The next concrete step of a Next/Doing card: one quiet line under its situation, click = edit in place. None yet = a warm
   "→ Add next step" (it mirrors "→ Add a project": warm ink, no alarm), click = the same editor. */
html.calm .signal-zone > .next-step{display:block;justify-self:stretch;flex:1 0 100%;min-width:0;min-height:24px;margin:0 0 0 -4px;padding:2px 4px!important;border:0;border-radius:6px;background:transparent;text-align:left;font:var(--type-control-strong)!important;color:var(--ink-2)!important;cursor:pointer}
html.calm .signal-zone > .next-step .card-title-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font:inherit;color:inherit}
html.calm .signal-zone > .next-step .rename-hint{display:none}
html.calm .signal-zone > .next-step:is(:hover,:focus-visible){background:color-mix(in srgb,var(--ink) 5%,transparent)}
html.calm .signal-zone > .next-step.add-next-step{display:inline-flex;align-items:center;gap:4px;justify-self:start;flex:0 0 auto;color:#7a5b14!important}
html.calm .signal-zone > .next-step.add-next-step svg{flex:none;width:12px;height:12px}
html.calm .signal-zone > .next-step.add-next-step:is(:hover,:focus-visible){background:color-mix(in srgb,var(--amber) 16%,#fff)}
/* an Inbox capture's next thing is its decision: "Decide" opens the existing triage (the age stays in the tooltip). Its 24px
   target overhangs the heading line (negative block margins), so the card keeps the height it had with the plain label */
html.calm .signal-zone .signal-heading-copy.decide{display:inline-flex;align-items:center;flex:none;min-height:24px;margin:-4px 0 -4px -4px;padding:0 6px!important;border:0;border-radius:999px;background:transparent;color:var(--ink)!important;cursor:pointer}
html.calm .signal-zone .signal-heading-copy.decide:is(:hover,:focus-visible){background:color-mix(in srgb,var(--ink) 6%,transparent)}
/* Done needs a project: the card's field popover says so and the move finishes once a project is chosen */
html.calm #task-options .options-hint{margin:0 0 var(--s2);padding:6px 10px;border:1px solid var(--warm-line);border-radius:8px;background:var(--warm-bg);color:#6f5413;font-size:12px;line-height:1.4}
/* Done straight from the card (UX package B, 2026-11-16): the same popover asks for one completion note; layout only, colours as the fields */
html.calm #task-options .done-note{display:grid;gap:6px;padding:8px 12px 12px}
html.calm #task-options .done-note>label{font-size:12px;color:var(--muted)}
html.calm #task-options .done-note>textarea{width:100%;min-height:56px;resize:vertical;padding:6px 8px;border:1px solid var(--line);border-radius:var(--r-card);background:#fff;color:var(--ink);font:inherit;line-height:1.4}
html.calm #task-options .done-note>.field-error:empty{display:none}
html.calm #task-options .done-note>.row{display:flex;align-items:center;gap:8px}
html.calm #task-options .done-note>.row>small{margin-left:auto}
