/* AGL Overseer design (Claude Design prototypes, 2026-10-19 and task groups 2026-10-20). Light theme; dark theme from
   prefers-color-scheme. The task groups prototype: docs/design/2026-10-20-task-groups-prototype.html. */
:root{
  color-scheme:light dark;
  --bg:#FAFAFB;--surface:#FFFFFF;--col:#F4F4F5;--line:#E4E4E7;--ctl:#D4D4D8;--field:#FAFAFA;--hover:#F4F4F5;
  --text:#18181B;--text2:#3F3F46;--muted:#6B6B74;
  --accent:#4F46E5;--accent-h:#4338CA;--accent-text:#4F46E5;--ring:#4F46E5;--drop:#EEF0FF;--drop-line:#A5B4FC;
  --ok:#16A34A;
  --shadow-card:0 1px 2px rgba(24,24,27,.05);--shadow-hover:0 4px 14px rgba(24,24,27,.08);
  --shadow-panel:-12px 0 32px rgba(24,24,27,.10);--shadow-dlg:0 24px 64px rgba(24,24,27,.28);
  --toast-bg:#18181B;--toast-text:#FAFAFA;
  --danger:#DC2626;--danger-wash:#FEF2F2;--warn-bg:#FEF3C7;--warn-text:#78350F;--warn-line:#FDE68A;
  /* The safe areas: Discord's buttons and the notch in the Activity on a phone (Discord's mobile guide). 0 in a browser:
     no --discord-* variables there, and env() is 0 without viewport-fit=cover. */
  --sait:var(--discord-safe-area-inset-top,env(safe-area-inset-top));--saib:var(--discord-safe-area-inset-bottom,env(safe-area-inset-bottom));
  --sail:var(--discord-safe-area-inset-left,env(safe-area-inset-left));--sair:var(--discord-safe-area-inset-right,env(safe-area-inset-right));
}
@media (prefers-color-scheme:dark){:root{
  --bg:#0E0E10;--surface:#1B1B1E;--col:#141416;--line:#2A2A2E;--ctl:#3F3F46;--field:#141416;--hover:#25252A;
  --text:#F4F4F5;--text2:#D4D4D8;--muted:#A1A1AA;
  --accent:#4F46E5;--accent-h:#4338CA;--accent-text:#A5B4FC;--ring:#A5B4FC;--drop:rgba(99,102,241,.14);--drop-line:#6366F1;
  --ok:#4ADE80;
  --shadow-card:0 1px 2px rgba(0,0,0,.3);--shadow-hover:0 4px 14px rgba(0,0,0,.4);
  --shadow-panel:-12px 0 32px rgba(0,0,0,.45);--shadow-dlg:0 24px 64px rgba(0,0,0,.6);
  --toast-bg:#F4F4F5;--toast-text:#18181B;
  --danger:#F87171;--danger-wash:rgba(248,113,113,.12);--warn-bg:rgba(251,191,36,.12);--warn-text:#FCD34D;--warn-line:rgba(251,191,36,.28);
}}
/* Segoe UI (system-ui on Windows) with the capitals in the middle of the line box. Its own ascent (1.079 em) and
   descent (0.251 em) put the band from the capital height (0.703 em) to the baseline 0.06 em under the middle, so each
   button, picker and tag shows its text 1-1.5 px low. These faces have the same sum (1.33 em, thus the same line heights)
   with ascent - descent = 0.703 em. The weight ranges are the faces Chrome picks for system-ui (500 is Semibold), thus
   the widths do not change. Systems without Segoe UI skip these faces: by their font metrics, SF (macOS, iOS) and
   Roboto (Android) have their capitals within about 0.01 em of the middle. A system with Segoe UI and another system-ui
   font (for example a Japanese Windows, or Linux with the Windows fonts) now shows Latin and Cyrillic in Segoe UI. */
@font-face{font-family:"Segoe UI Centred";src:local("Segoe UI"),local("SegoeUI");font-weight:400 450;ascent-override:101.66%;descent-override:31.35%;line-gap-override:0%}
@font-face{font-family:"Segoe UI Centred";src:local("Segoe UI Italic"),local("SegoeUI-Italic");font-weight:400 450;font-style:italic;ascent-override:101.66%;descent-override:31.35%;line-gap-override:0%}
@font-face{font-family:"Segoe UI Centred";src:local("Segoe UI Semibold"),local("SegoeUI-Semibold");font-weight:500 600;ascent-override:101.66%;descent-override:31.35%;line-gap-override:0%}
@font-face{font-family:"Segoe UI Centred";src:local("Segoe UI Semibold Italic"),local("SegoeUI-SemiboldItalic");font-weight:500 600;font-style:italic;ascent-override:101.66%;descent-override:31.35%;line-gap-override:0%}
@font-face{font-family:"Segoe UI Centred";src:local("Segoe UI Bold"),local("SegoeUI-Bold");font-weight:650 700;ascent-override:101.66%;descent-override:31.35%;line-gap-override:0%}
@font-face{font-family:"Segoe UI Centred";src:local("Segoe UI Bold Italic"),local("SegoeUI-BoldItalic");font-weight:650 700;font-style:italic;ascent-override:101.66%;descent-override:31.35%;line-gap-override:0%}
@font-face{font-family:"Segoe UI Centred";src:local("Segoe UI Black"),local("SegoeUIBlack");font-weight:800 900;ascent-override:101.66%;descent-override:31.35%;line-gap-override:0%}
@font-face{font-family:"Segoe UI Centred";src:local("Segoe UI Black Italic"),local("SegoeUIBlack-Italic");font-weight:800 900;font-style:italic;ascent-override:101.66%;descent-override:31.35%;line-gap-override:0%}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--text);font:500 13.5px/1.35 "Segoe UI Centred",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--accent-text);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--ctl);border:3px solid transparent;background-clip:padding-box;border-radius:8px}
.sr{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Bold and code in task names (richName in app.js; the page has no other strong or code elements). */
strong{font-weight:700}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:var(--hover);padding:0 3px;border-radius:4px}

/* app shell. The column template keeps a wide board inside #board, so it does not widen the top bar. */
#app{display:grid;grid-template-rows:52px minmax(0,1fr);grid-template-columns:minmax(0,1fr);height:100vh;height:100dvh;padding:var(--sait) var(--sair) var(--saib) var(--sail)}
.top{display:flex;align-items:center;gap:18px;padding:0 18px;border-bottom:1px solid var(--line);background:var(--surface);min-width:0}
.brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:15px;letter-spacing:-.02em;white-space:nowrap}
.brand-mark{width:24px;height:24px;border-radius:7px;background:var(--accent);display:grid;place-items:center;color:#fff;font-size:12px;font-weight:700;letter-spacing:0}
/* People, then the forum list (combo in app.js), in one row. */
#tabs{display:flex;gap:2px;align-self:stretch;min-width:0}
.tab{appearance:none;border:0;background:none;padding:0 12px;color:var(--muted);font-weight:600;white-space:nowrap;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s}
.tab:hover{color:var(--text)}
.tab.active{color:var(--text);border-bottom-color:var(--accent-text)}
.tab:focus-visible{outline-offset:-4px}
/* The forum list looks like a tab: the name on one line (the combo cuts it with an ellipsis) and the arrow; underlined
   while a forum shows. */
#tabs .combo{width:220px;max-width:40vw;margin-bottom:-1px}
#forum-pick-combo{height:100%;padding-left:12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;box-shadow:none;font-weight:600;color:var(--muted);transition:color .15s}
#forum-pick-combo:hover,#forum-pick-combo[aria-expanded=true]{color:var(--text)}
#forum-pick-combo.active{color:var(--text);border-bottom-color:var(--accent-text)}
#forum-pick-combo:focus-visible{outline:2px solid var(--ring);outline-offset:-4px}
.top-right{margin-left:auto;display:flex;align-items:center;gap:14px;white-space:nowrap;font-size:13px}
.live{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}
.live::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ok)}
.live.off::before{background:var(--muted)}
.lang{display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.lang button{appearance:none;border:0;background:none;padding:2px 7px;font-size:11.5px;font-weight:600;color:var(--muted);cursor:pointer}
.lang button:hover{color:var(--text)}
.lang button[aria-pressed=true]{background:var(--hover);color:var(--text)}
/* Ask Sage: a button with a border, as high as the .seg buttons (28px); in the accent colors while the Sage view shows.
   inline-flex and text-box center the label: the box of the label span is cut to the capital letters and the baseline.
   text-box has no effect on the flex container itself, thus the span. */
#sage-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;height:28px;border:1px solid var(--line);border-radius:8px;background:none;padding:0 12px;font-size:13px;font-weight:600;line-height:1;color:var(--muted);cursor:pointer}
#sage-btn>span{text-box:trim-both cap alphabetic}
#sage-btn:hover{color:var(--text)}
#sage-btn.active{border-color:var(--drop-line);background:var(--drop);color:var(--accent-text)}
#me{font-weight:600}
.logout{color:var(--muted)}
.view{display:flex;flex-direction:column;min-height:0;min-width:0;position:relative}
#sage-view{overflow:auto;padding:16px 18px}
#sage-view>.sage{max-width:960px}

/* board */
#board{flex:1;display:flex;align-items:flex-start;gap:12px;padding:16px 18px;overflow:auto;min-height:0;min-width:0}
/* The columns share the board's width, each 248-360px (then the board scrolls). The explicit min-width also keeps a
   long group name (nowrap, in the Tasks view) from widening its column. */
.column{flex:1 1 0;min-width:248px;max-width:360px;display:flex;flex-direction:column;max-height:100%;background:var(--col);border:1px solid var(--line);border-radius:12px;transition:background-color .15s,border-color .15s}
.column.none{background:transparent;border-style:dashed}
.column.over{background:var(--drop);border-color:var(--drop-line);box-shadow:inset 0 0 0 1px var(--drop-line)}
.col-head{display:flex;align-items:center;gap:8px;padding:9px 8px 9px 12px}
.col-head h2{margin:0;font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px;min-width:0}
.count{font-size:11.5px;font-weight:600;color:var(--muted);background:var(--hover);border-radius:999px;padding:1px 7px;font-variant-numeric:tabular-nums}
.add{margin-left:auto;width:28px;height:28px;border:0;border-radius:8px;background:color-mix(in oklab,var(--accent) 20%,transparent);color:var(--accent-text);font-size:20px;font-weight:600;line-height:1;cursor:pointer;display:grid;place-items:center}
.add:hover{background:var(--accent);color:#fff}
.cards{display:flex;flex-direction:column;gap:6px;padding:0 6px 6px;overflow-y:auto;min-height:44px}
.empty{border:1px dashed var(--ctl);border-radius:10px;padding:14px;text-align:center;color:var(--muted);font-size:12.5px}
.card{appearance:none;display:flex;flex-direction:column;gap:6px;width:100%;text-align:left;padding:10px 11px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-card);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.card:hover{border-color:var(--ctl);box-shadow:var(--shadow-hover)}
.card.open{border-color:var(--drop-line);box-shadow:0 0 0 1px var(--drop-line)}
.card.dragging{opacity:.45;border-style:dashed;box-shadow:none}
.card .title{font-weight:650;font-size:13.5px;line-height:1.3;overflow-wrap:anywhere;text-wrap:pretty}
.labels{display:flex;flex-wrap:wrap;gap:4px}
.labels:empty{display:none}
.label{display:inline-flex;align-items:center;gap:4px;padding:1px 7px 1px 6px;border-radius:999px;font-size:11.5px;font-weight:600;line-height:18px;color:#18181B;white-space:nowrap}
.label img{width:13px;height:13px;border-radius:3px;display:block}
.meta{font-size:12px;color:var(--muted);line-height:1.4}
.meta b{font-weight:600;color:var(--text2)}

/* side panels: the task panel (#panel) and the discussion panel (#disc) */
.panel{position:fixed;top:0;right:0;bottom:0;width:420px;max-width:100%;background:var(--surface);border-left:1px solid var(--line);box-shadow:var(--shadow-panel);display:flex;flex-direction:column;z-index:20;padding:var(--sait) var(--sair) var(--saib) var(--sail)}
.p-head{display:flex;align-items:flex-start;gap:8px;padding:14px 14px 10px 18px;border-bottom:1px solid var(--line)}
#p-title{flex:1;min-width:0;border:1px solid transparent;background:none;border-radius:8px;padding:5px 7px;margin-left:-8px;font-size:17px;font-weight:700;letter-spacing:-.01em;resize:none;overflow:hidden;min-height:34px;height:34px;line-height:1.3}
#p-title:hover{border-color:var(--line)}
#p-title:focus{outline:none;border-color:var(--accent-text);background:var(--field)}
.close{flex:none;width:32px;height:32px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:20px;line-height:1;cursor:pointer}
.close:hover{background:var(--hover);color:var(--text)}
.p-body{flex:1;overflow-y:auto;padding:16px 18px 22px;display:flex;flex-direction:column;gap:18px}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fl{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;color:var(--muted)}
.fl.wide{grid-column:1/-1}
.fl .row{margin-top:0}
.fl .row select{flex:1;min-width:0}
.fl .row .combo{flex:1;min-width:0}
/* Searchable lists (combo in app.js): a button like a select, and a popover with a search line and the entries. */
.combo{display:block;min-width:0}
.combo-btn{position:relative;width:100%;height:34px;display:flex;align-items:center;padding:0 28px 0 9px;border:1px solid var(--ctl);background:var(--field);border-radius:8px;font-size:13.5px;font-weight:500;color:var(--text);text-align:left;cursor:pointer}
.combo-btn::after{content:'';position:absolute;right:11px;top:50%;width:6px;height:6px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:translateY(-70%) rotate(45deg)}
.combo-btn:focus-visible,.combo-btn[aria-expanded=true]{outline:none;border-color:var(--accent-text);box-shadow:0 0 0 3px color-mix(in oklab,var(--accent-text) 22%,transparent)}
.combo-btn:disabled{opacity:.6;cursor:default}
.combo-btn.invalid{border-color:var(--danger)}
.combo-val{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-field .combo-btn{width:auto;max-width:220px;height:30px;font-size:13px}
.combo-pop{position:fixed;inset:auto;margin:0;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);box-shadow:0 12px 32px rgba(0,0,0,.3)}
.combo-q{height:32px;margin-bottom:6px}
.combo-list{position:relative;list-style:none;margin:0;padding:0;overflow-y:auto}
/* line-height 1.3334: 18px at 13.5px, thus rows of a whole number of pixels (30), so the text of each row rounds to the
   pixels in the same way. A number, not 18px: with a minimum font size in the browser, the lines grow with the text. */
.combo-list li{padding:6px 8px;border-radius:6px;font-size:13.5px;font-weight:500;line-height:1.3334;cursor:pointer;overflow-wrap:anywhere}
.combo-list li:hover{background:var(--hover)}
.combo-list li.active{background:color-mix(in oklab,var(--accent-text) 20%,transparent)}
@media (forced-colors:active){.combo-list li.active{forced-color-adjust:none;background:Highlight;color:HighlightText}}
.combo-list li[aria-selected=true]{font-weight:700}
.combo-list li[aria-disabled=true]{opacity:.5;cursor:default}
.combo-none{padding:6px 8px;color:var(--muted);font-size:13.5px}
.combo-none:empty{padding:0}
.fl .btn{color:var(--text)}
.chips{display:flex;flex-wrap:wrap;gap:4px}
.chips:empty{display:none}
.chip{display:inline-flex;align-items:center;gap:2px;padding:1px 2px 1px 9px;border:1px solid var(--ctl);border-radius:999px;background:var(--field);color:var(--text);font-size:12.5px;font-weight:600;line-height:20px}
.chip button{appearance:none;border:0;background:none;color:var(--muted);font-size:15px;line-height:1;width:20px;height:20px;border-radius:999px;cursor:pointer}
.chip button:hover{background:var(--hover);color:var(--text)}
.chip button:disabled{display:none}
.sec-title{margin:0 0 7px;font-size:12px;font-weight:600;color:var(--muted)}
select,.inp,textarea{width:100%;border:1px solid var(--ctl);background:var(--field);border-radius:8px;padding:7px 9px;font-size:13.5px;font-weight:500;color:var(--text)}
select{height:34px;padding:0 8px}
textarea{resize:vertical;line-height:1.5;min-height:84px}
select:focus,.inp:focus,textarea:focus{outline:none;border-color:var(--accent-text);box-shadow:0 0 0 3px color-mix(in oklab,var(--accent-text) 22%,transparent)}
select:disabled,textarea:disabled,.inp:disabled{opacity:.6}
.p-desc-text{white-space:pre-wrap;line-height:1.55;color:var(--text2);overflow-wrap:anywhere}
.note{margin:8px 0 0;font-size:12px;color:var(--muted);line-height:1.45}
.p-body>.note{margin:0}
.row{display:flex;align-items:center;gap:8px;margin-top:8px}
.btn{appearance:none;white-space:nowrap;height:32px;padding:0 12px;border-radius:8px;border:1px solid var(--ctl);background:var(--surface);font-weight:600;font-size:13px;cursor:pointer;transition:background-color .15s}
.btn:hover{background:var(--hover)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 2px 6px rgba(79,70,229,.28)}
.btn.primary:hover{background:var(--accent-h)}
.btn.danger{background:#DC2626;border-color:#DC2626;color:#fff;box-shadow:0 2px 6px rgba(220,38,38,.28)}
.btn.danger:hover{background:#B91C1C}
.btn:disabled{opacity:.6;cursor:default}
.saved{font-size:12px;color:var(--muted)}
.p-link{display:inline-flex;align-items:center;gap:5px;font-weight:600;font-size:13px}
.p-msg-link{display:flex;width:fit-content;margin-top:6px}
/* Media on tasks (spec 2026-11-06-task-media-design.md): the Media section of the task panel. */
.media-list{display:flex;flex-direction:column;gap:12px}
.media-list:empty{display:none}
.media{display:flex;flex-direction:column;gap:4px}
.media-files{display:flex;flex-wrap:wrap;gap:6px}
.media-files img{display:block;max-width:100%;max-height:200px;border-radius:8px;background:var(--hover)}
.media-files video{display:block;max-width:100%;max-height:240px;border-radius:8px;background:#000}
.media-files audio{width:100%}
.media-name,.media-note{font-size:13px;color:var(--text2);overflow-wrap:anywhere}
.media-note{color:var(--muted)}
.media-row{margin-top:0}
.media-x{width:28px;height:28px;margin-left:auto}
.replies{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.replies li{display:flex;flex-direction:column;gap:3px}
.r-head{font-size:12px;color:var(--muted)}
.r-head b{color:var(--text);font-weight:600;margin-right:4px}
.r-link{margin-left:8px;font-weight:600}
.r-link:hover,.r-link:focus-visible{text-decoration:underline}
.replies .text{line-height:1.5;color:var(--text2);white-space:pre-wrap;overflow-wrap:anywhere}
.replies .none{color:var(--muted);font-size:12.5px}
.p-reply{border-top:1px solid var(--line);padding:12px 18px 14px;display:flex;flex-direction:column;gap:8px;background:var(--surface)}
.p-reply textarea{min-height:60px}
.p-reply .btn{align-self:flex-end}
.p-hgroup{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding-top:2px}
.p-kicker{font-size:12px;font-weight:600;color:var(--muted)}
.p-htitle{font-size:17px;font-weight:700;letter-spacing:-.01em;line-height:1.3;overflow-wrap:anywhere}
.p-group{font-weight:600}
.p-danger{border-top:1px solid var(--line);padding-top:14px}
.btn-quiet-danger{appearance:none;border:0;background:none;height:32px;padding:0 10px;margin-left:-10px;border-radius:8px;color:var(--danger);font-weight:600;font-size:13px;cursor:pointer;transition:background-color .15s}
.btn-quiet-danger:hover{background:var(--danger-wash)}
.btn-quiet-danger:disabled{opacity:.6;cursor:default;background:none}
.link-btn{appearance:none;border:0;background:none;padding:2px 4px;border-radius:6px;font-size:12.5px;font-weight:600;color:var(--accent-text);cursor:pointer}
.link-btn:hover{text-decoration:underline}
.link-btn.p-group{padding:0;font-size:13.5px}

/* dialogs: new task (#create), new group, and the confirmations */
.dlg{border:1px solid var(--line);border-radius:16px;padding:0;width:min(480px,calc(100% - 32px));background:var(--surface);color:var(--text);box-shadow:var(--shadow-dlg)}
.dlg.sm{width:min(400px,calc(100% - 32px))}
.dlg::backdrop{background:rgba(24,24,27,.5);backdrop-filter:blur(3px)}
.dlg h2{margin:0;padding:18px 22px 4px;font-size:16px;font-weight:700;letter-spacing:-.01em;overflow-wrap:anywhere}
.d-sub{margin:0;padding:0 22px;color:var(--muted);font-size:12.5px}
.d-body{padding:16px 22px;display:flex;flex-direction:column;gap:14px}
.d-text{margin:0;padding:6px 22px 18px;color:var(--text2);line-height:1.5;text-wrap:pretty}
.d-group{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--col)}
.d-group-h{font-size:12px;font-weight:700;color:var(--text2)}
.lab-row{display:flex;justify-content:space-between}
.lab-row span:last-child{font-weight:500;font-variant-numeric:tabular-nums}
.opt{font-weight:500}
.err{margin:6px 0 0;font-size:12px;font-weight:600;color:var(--danger)}
.d-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 22px;border-top:1px solid var(--line);background:var(--col);border-radius:0 0 16px 16px}

/* notice */
#notice{position:fixed;left:50%;bottom:calc(20px + var(--saib));transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:10px;max-width:calc(100% - 32px);padding:9px 10px 9px 14px;border-radius:10px;background:var(--toast-bg);color:var(--toast-text);font-size:13px;box-shadow:0 12px 32px rgba(0,0,0,.28)}
#notice::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#EF4444}
#notice button{border:0;background:none;color:inherit;opacity:.7;cursor:pointer;border-radius:6px}
#notice button:hover{opacity:1}

/* text page */
.page{min-height:100vh;display:grid;place-items:center;padding:24px;text-align:center}
.page p{margin:0 0 10px;font-size:15px}
.page .sub{font-size:13px;color:var(--muted)}

/* tab toolbar */
.toolbar{display:flex;align-items:center;gap:14px;min-height:54px;padding:10px 18px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.tb-sep{width:1px;height:20px;background:var(--line);flex:none}
.tb-lab{font-size:12px;font-weight:600;color:var(--muted)}
.seg{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface)}
.seg button{appearance:none;border:0;background:none;height:28px;padding:0 12px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;transition:color .15s,background-color .15s}
.seg button+button{border-left:1px solid var(--line)}
.seg button:hover{color:var(--text)}
.seg button[aria-pressed=true]{background:var(--hover);color:var(--text)}
.seg button:focus-visible{outline-offset:-3px}
/* The Any | All switch of the tag filter: as high as a tag chip (22px). */
.seg.small{border-radius:6px}
.seg.small button{height:20px;padding:0 8px;font-size:11.5px}
.tb-filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.filters-btn{display:none}
.tag-filter{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tag-toggle{appearance:none;cursor:pointer;border:1px solid transparent;font:inherit;font-size:11.5px;font-weight:600;line-height:18px}
.tag-toggle[aria-pressed=false]{color:var(--text2);border-color:var(--ctl);background:transparent}
.tag-toggle[aria-pressed=false]:hover{border-color:var(--muted);color:var(--text)}
.tag-toggle:disabled{opacity:.6;cursor:default}
.tag-toggle:disabled:hover{border-color:var(--ctl);color:var(--text2)}
.person-filter{display:flex;align-items:center;gap:12px}
.tb-field{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--muted)}
.tb-field select{width:auto;max-width:220px;height:30px;font-size:13px;color:var(--text)}
.tb-field select:disabled{opacity:.6}
.tb-check{cursor:pointer;white-space:nowrap}
.tb-check input{margin:0;accent-color:var(--accent)}
.tb-count{margin-left:auto;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.toolbar .btn.primary{flex:none}

/* people */
.people{display:flex;align-items:center;gap:3px;flex:none}
.ini{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:999px;background:var(--hover);border:1px solid var(--ctl);color:var(--text2);font-size:10px;font-weight:700;letter-spacing:.02em;line-height:1;flex:none}
.ini.more{background:transparent;color:var(--muted)}

/* group grid and group card */
.groups-wrap{flex:1;min-height:0;overflow:auto;padding:16px 18px}
.ggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(288px,1fr));gap:12px;align-items:start}
.gcard{gap:8px;padding:11px 12px 10px}
.g-prog{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.g-prog:empty{display:none}
.g-prog-t{white-space:nowrap}
.g-prog-t b{font-weight:650;color:var(--text2)}
.bar{flex:1;min-width:40px;height:4px;border-radius:999px;background:var(--ctl);overflow:hidden}
.bar span{display:block;height:100%;background:var(--ok);border-radius:999px}
.g-open{display:flex;flex-direction:column;border-top:1px solid var(--line);padding-top:6px;gap:1px}
.g-task{display:flex;align-items:center;gap:7px;min-height:24px;font-size:12.5px;color:var(--text2)}
.g-task-n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-task .nobody{font-size:11.5px;color:var(--muted)}
.g-more{font-size:12px;color:var(--muted);padding-top:2px}
.marks{display:flex;flex-wrap:wrap;gap:4px}
.marks:empty{display:none}
.mark{display:inline-flex;align-items:center;gap:6px;padding:0 8px;border:1px solid var(--ctl);border-radius:999px;font-size:11.5px;font-weight:600;line-height:18px;color:var(--text2);white-space:nowrap}
.mark::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--muted)}
.mark.done::before{background:var(--ok)}
.mark.err::before{background:#EF4444}
.g-empty{max-width:440px;margin:72px auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}
.g-empty b{font-size:14px}
.g-empty span{color:var(--muted);font-size:13px;line-height:1.5;text-wrap:pretty}
.g-empty .btn{margin-top:12px}
/* Suggestions (spec 2026-11-03 "5. The page"): a section for each meeting, then its cards in the group grid. */
.tab-n{margin-left:6px;color:var(--accent-text);font-variant-numeric:tabular-nums}
.tab-n:empty{display:none}
.sug-meeting{margin:0 0 22px}
.sug-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0 0 10px}
.sug-head h2{margin:0;font-size:14px;font-weight:650}
.sug-head .r-link{margin-left:0}
.sug-meeting>.note{margin:0}
.sug-card{cursor:auto}
.sug-card .title{font-weight:500}
.sug-desc{margin:0;font-size:12.5px;line-height:1.45;color:var(--text2);white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sug-meta{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.sug-source{font-size:12px;color:var(--muted);font-style:italic;overflow-wrap:anywhere}
.sug-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}

/* group page header */
.g-head{display:flex;flex-direction:column;gap:6px;padding:10px 18px 12px;border-bottom:1px solid var(--line)}
.back{appearance:none;border:0;background:none;cursor:pointer;align-self:flex-start;font-size:12.5px;font-weight:600;color:var(--muted);padding:2px 6px;margin-left:-6px;border-radius:6px}
.back:hover{color:var(--text);background:var(--hover)}
.g-main{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 22px}
/* The basis keeps room for the name: a narrow page puts .g-right on its own line. */
.g-left{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:6px}
.g-name{max-width:100%;border:1px solid transparent;background:none;border-radius:8px;padding:3px 7px;margin-left:-8px;font-size:19px;font-weight:700;letter-spacing:-.01em;line-height:1.3}
.g-name:hover{border-color:var(--line)}
.g-name:focus{outline:none;border-color:var(--accent-text);background:var(--field)}
.g-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tag-edit{appearance:none;border:1px dashed var(--ctl);background:none;border-radius:999px;padding:0 9px;font-size:11.5px;font-weight:600;line-height:18px;color:var(--muted);cursor:pointer}
.tag-edit:hover,.tag-edit[aria-expanded=true]{color:var(--text);border-color:var(--muted)}
.picker-wrap{position:relative}
.picker{position:absolute;top:calc(100% + 6px);left:0;z-index:15;width:260px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(24,24,27,.16);padding:10px 12px 12px}
.picker-head{display:flex;justify-content:space-between;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:8px}
.picker-head span:last-child{font-weight:500;font-variant-numeric:tabular-nums}
.picker-list{display:flex;flex-wrap:wrap;gap:5px}
.picker .note{margin-top:10px}
.g-right{display:flex;align-items:center;gap:14px;flex:none}
.g-right .g-prog{width:210px}
.warn-bar{display:flex;align-items:center;gap:12px;min-height:44px;padding:6px 18px;background:var(--warn-bg);color:var(--warn-text);border-bottom:1px solid var(--warn-line);font-size:13px;font-weight:600}
.warn-bar .btn{height:30px;background:var(--surface);color:var(--text)}
.warn-bar .btn:hover{background:var(--hover)}

/* task card */
.task .title{font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.t-group{font-size:12px;color:var(--muted);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t-meta{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}
.t-owner{display:inline-flex;align-items:center;gap:6px;color:var(--text2);font-weight:600;min-width:0;overflow:hidden}
.t-oname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t-owner.none{color:var(--muted);font-weight:500}
.t-right{margin-left:auto;display:inline-flex;align-items:center;gap:9px}
.t-fol,.t-media{white-space:nowrap}
.t-desc{display:block;width:14px;height:14px;color:var(--muted)}
/* The status of a task card in owner columns (spec 2026-11-02): it takes the place of the owner. */
.t-status{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text2);font-weight:600}
/* The People tab (spec 2026-11-02): a row of status columns for each forum. The board scrolls down through the rows; a
   row that is wider than the board scrolls to the side on its own; each column of a row is as tall as the longest one,
   so beside the last card of a long column a short column is a drop target (with the board scrolled down, a short
   column that ends at its cards ends above the screen). */
#board.lanes{flex-direction:column;align-items:stretch;gap:18px}
.lane{flex:none;display:flex;flex-direction:column;gap:8px;min-width:0}
.lane-head{display:flex;align-items:center;gap:8px}
.lane-head h2{margin:0;font-size:14px;font-weight:700}
.lane-cols{display:flex;align-items:stretch;gap:12px;overflow-x:auto;padding-bottom:4px}
.lane .column{max-height:none}
.lane .cards{overflow:visible}
/* The forum after the status of a People column: only a phone shows it, in the sticky header. */
.col-note{display:none;font-weight:500;color:var(--muted)}

/* Add forum: the "+" after the tabs; the column and post type editors of Add forum and Forum settings */
.tab-add{flex:none;width:28px;height:28px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:20px;font-weight:600;line-height:1;cursor:pointer}
.tab-add:hover{background:var(--hover);color:var(--text)}
.col-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.col-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.col-row .inp{flex:1;width:auto;min-width:120px}
.icon-btn{flex:none;width:32px;height:32px;border:1px solid var(--ctl);border-radius:8px;background:var(--surface);color:var(--text);font-size:15px;line-height:1;cursor:pointer}
.icon-btn:hover{background:var(--hover)}
.icon-btn:disabled{opacity:.4;cursor:default;background:var(--surface)}
.col-count{font-size:12px;font-weight:500;white-space:nowrap}
.col-was{flex-basis:100%;font-size:12px;font-weight:500}
.col-was:empty{display:none}
.fl .row .inp{flex:1;min-width:0}
.chip-new{margin-left:5px;font-size:11px;color:var(--accent-text)}

/* Forum settings: the warning of a new or moved last column */
.warn-note{margin:8px 0 0;padding:7px 10px;border:1px solid var(--warn-line);border-radius:8px;background:var(--warn-bg);color:var(--warn-text);font-size:12px;font-weight:600;line-height:1.45}
/* An empty status line (the busy note of Add forum, the warning) takes no room, also no gap of the flex box, but stays
   in the accessibility tree (no display:none), so a screen reader says its text when it comes. */
#af-loading:empty,.warn-note:empty{position:absolute;margin:0;padding:0;border:0}

/* Presets (spec 2026-11-10-forum-presets-design.md "The Presets dialog"): a row for each preset. The chips have no ×. */
.preset-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.preset-list:empty{display:none}
.preset-row{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid var(--line);border-radius:10px}
.preset-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.preset-name{flex:1;min-width:0;overflow-wrap:anywhere}
.preset-row .note{margin:0;overflow-wrap:anywhere}
.preset-row .chip{padding-right:9px}
.preset-row .btn-quiet-danger{margin-left:0}

/* Notifications (spec 2026-11-17-notifications-design.md "The page"): the 🔔 button of the top bar; the dialog, whose
   body scrolls while the title and the footer with Save stay in view; the forum rows, and the controls of the open row
   under its button. */
.bell{appearance:none;border:0;background:none;padding:2px 5px;border-radius:6px;font-size:15px;line-height:1;cursor:pointer}
.bell:hover{background:var(--hover)}
#notify-dlg[open]{display:flex;flex-direction:column}
#nt-form{display:flex;flex-direction:column;min-height:0}
#nt-form .d-body{overflow-y:auto;min-height:0}
.fl .seg,.fl .p-link{align-self:flex-start}
.nt-forums{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.nt-row{appearance:none;display:flex;flex-direction:column;gap:2px;width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);text-align:left;cursor:pointer}
.nt-row:hover{background:var(--hover)}
.nt-row[aria-expanded=true]{border-color:var(--drop-line);border-radius:10px 10px 0 0}
.nt-name{font-weight:650;overflow-wrap:anywhere}
.nt-sum{font-size:12px;font-weight:500;color:var(--muted);overflow-wrap:anywhere}
.nt-forum{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid var(--drop-line);border-top:0;border-radius:0 0 10px 10px}

/* Task search (spec 2026-11-17-task-search-design.md): the field after the "+" of Add forum, and the result box under
   it (app.js sets its width and place, inside the window). While the field has the focus, the field and its box are
   above the task panel (z-index 20), which covers the right part of the top bar. The 🔍 button is for a phone only. */
.search{position:relative;flex:0 1 260px;min-width:120px}
.search:focus-within{z-index:30}
.search .inp{height:32px;padding:5px 9px}
.search-btn{display:none;appearance:none;border:0;background:none;padding:2px 5px;border-radius:6px;font-size:15px;line-height:1;cursor:pointer}
.search-btn:hover,.search-btn[aria-expanded=true]{background:var(--hover)}
.search-pop{position:absolute;top:calc(100% + 4px);display:flex;flex-direction:column;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);box-shadow:0 12px 32px rgba(0,0,0,.3)}
.search-pop[hidden]{display:none}
.search-list{position:relative;list-style:none;margin:0;padding:0;overflow-y:auto}
.search-list li{display:flex;flex-direction:column;gap:2px;padding:6px 8px;border-radius:6px;cursor:pointer;overflow-wrap:anywhere}
.search-list li:hover{background:var(--hover)}
.search-list li.active{background:color-mix(in oklab,var(--accent-text) 20%,transparent)}
@media (forced-colors:active){.search-list li.active{forced-color-adjust:none;background:Highlight;color:HighlightText}}
.s-name{font-size:13.5px;font-weight:600}
.s-meta{font-size:12px;color:var(--muted)}
.search-n{margin:0;padding:6px 8px 2px;font-size:12px;color:var(--muted)}

/* Symbol buttons (+ × ↑ ↓ 🔔 🔍): a font puts + and × on its maths axis, below the middle of the line, and each system
   draws emoji with its own metrics, so a glyph is never in the middle of the button on every system. These buttons draw
   their symbol as a mask in the middle (--ico: the shape, --ico-size: its size); the glyph stays in the page for screen
   readers and the page checks, at font-size 0. The ::before keeps the text color in forced colors. */
:is(.add,.tab-add,.close,.chip button,.icon-btn,.bell,.search-btn,[id=notice-x]){position:relative;font-size:0}
:is(.add,.tab-add,.close,.chip button,.icon-btn,.bell,.search-btn,[id=notice-x])::before{content:"";position:absolute;inset:0;margin:auto;width:var(--ico-size,14px);height:var(--ico-size,14px);background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat;forced-color-adjust:none}
.add,.tab-add{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E")}
.close,.chip button,.icon-btn.i-x,[id=notice-x]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.75' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E")}
.icon-btn.i-up{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V4M5 11l7-7 7 7'/%3E%3C/svg%3E")}
.icon-btn.i-down{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M5 13l7 7 7-7'/%3E%3C/svg%3E")}
.bell{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15V9.5a6 6 0 0 1 12 0V15l1.5 1.5h-15zM10 19a2 2 0 0 0 4 0'/%3E%3C/svg%3E")}
.search-btn{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E")}
.close{--ico-size:17px}
.chip button{--ico-size:12px}
.icon-btn{--ico-size:15px}
.bell,.search-btn{width:28px;height:24px;padding:0;--ico-size:17px}
[id=notice-x]{width:22px;height:22px;padding:0}

@media (max-width:640px){
  .panel{width:100%;border-left:0}
  /* The top bar has two rows: the logo with Ask Sage, EN/RU, 🔔 and Log out, then People and the forum list across the width and the
     "+" at the end (36px: the "+" and the gap). */
  #app{grid-template-rows:auto minmax(0,1fr)}
  .top{flex-wrap:wrap;gap:0 8px;padding:0 12px}
  .live,.brand span{display:none}
  /* Row 1 has room only for the logo, Ask Sage, EN/RU, 🔔 and Log out. */
  #me{display:none}
  .brand{height:48px}
  #tabs{order:1;flex:1 0 calc(100% - 36px);min-width:0;height:40px}
  #tabs .combo{flex:1;min-width:0;max-width:none}
  #add-forum-btn{order:2}
  /* Task search: 🔍 after the logo; the field is row 3, across the top bar, while 🔍 shows it. */
  .search-btn{display:block}
  .search{order:3;flex:1 0 100%;min-width:0;padding-bottom:8px}
  .search:not(.shown){display:none}
  .top-right{gap:10px}
  /* Ask Sage keeps its small size here: row 1 has no room for more. */
  #sage-btn{height:24px;padding:0 9px;font-size:11.5px}
  /* The kanban stacks: each status is a full-width section, and the board is the one scroll. The header of a section
     stays at the top of the board while its section scrolls past (top:-12px: above the padding of the board).
     The cards keep the header height free (scroll-margin-top), so a card that gets the keyboard focus is not under the
     header. Not scroll-padding on the board: with it, Chromium scrolls the board at each focus of a "+" in a header at
     the top, also with preventScroll. */
  #board{padding:12px;flex-direction:column;align-items:stretch;overflow-x:hidden;overflow-y:auto}
  .column{flex:none;min-width:0;max-width:none;max-height:none}
  .cards{overflow:visible}
  .card{scroll-margin-top:46px}
  .col-head{position:sticky;top:-12px;z-index:1;background:var(--col);border-radius:11px 11px 0 0}
  .column.none .col-head{background:var(--bg)}
  /* The drop tint of the column on its opaque header: --drop over the page, as the column shows it (--drop is
     see-through in the dark theme). */
  .column.over .col-head{background:linear-gradient(var(--drop),var(--drop)) var(--bg)}
  /* People rows: the columns stack as in a forum. No scroll box in a row, so the headers stick to the board; the
     header names the forum too. */
  .lane-cols{flex-direction:column;overflow:visible;padding-bottom:0}
  .col-note{display:inline}
  /* The tag and person filters fold behind the Filters button. */
  .toolbar{gap:8px;padding:10px 12px}
  .filters-btn{display:inline-flex;align-items:center}
  .filters-btn[aria-expanded=true]{background:var(--hover)}
  .tb-filters{display:none;order:10;flex-basis:100%;flex-direction:column;align-items:flex-start;gap:12px;padding:4px 0 2px}
  .toolbar.open .tb-filters{display:flex}
  .tb-sep,.tb-count{display:none}
  .person-filter{flex-wrap:wrap}
  .tb-field{flex-wrap:wrap}
  .toolbar .btn.primary{margin-left:auto}
  .groups-wrap{padding:12px}
  .g-head{padding:8px 12px 12px}
  .g-main{flex-direction:column;align-items:stretch;gap:10px}
  /* In a column the 220px basis of .g-left would be its height: an empty space under the tags. */
  .g-left{flex:none}
  .g-right{flex-wrap:wrap;gap:10px 14px}
  .g-right .g-prog{width:100%}
  .warn-bar{padding:8px 12px;flex-wrap:wrap}
  /* The picker would go past the right edge from a button far to the right: use the screen width. */
  .picker{position:fixed;left:12px;right:12px;top:auto;width:auto;margin-top:6px}
}
