/* Shared component classes (page.md, Components); tokens only. */
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }
.dot.sm { width: 8px; height: 8px; }
.dot.need { background: var(--need); box-shadow: 0 0 0 3px var(--need-bg); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.dot.run { background: var(--run); box-shadow: 0 0 0 3px var(--run-bg); }
.dot.wait { background: var(--wait); box-shadow: 0 0 0 3px var(--wait-bg); }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.dot.sm.need, .dot.sm.bad, .dot.sm.run, .dot.sm.wait, .dot.sm.ok { box-shadow: none; }

.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 13px; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; min-width: 0; max-width: 100%; flex: 0 1 auto; overflow: hidden; font-variant-numeric: tabular-nums; text-decoration: none; }
.badge:hover { text-decoration: none; border-color: var(--line-2); }
.badge.need { background: var(--need-bg); border-color: var(--need-line); color: var(--need); font-weight: 600; }
.badge.bad { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); font-weight: 600; }
.badge .why { overflow: hidden; text-overflow: ellipsis; min-width: 0; font-weight: 400; }
.badge.grow { flex: 0 1 auto; }
.badge .lg { display: inline; }
.badge .lg, .badge .sh { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.badge .sh { display: none; }
@media (max-width: 420px) { .badge { padding: 3px 7px; font-size: 12.5px; } }
@media (max-width: 560px) { .badge .lg { display: none; } .badge .sh { display: inline; } }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--line); color: var(--dim); background: var(--surface); white-space: nowrap; }
.chip.need { color: var(--need); background: var(--need-bg); border-color: var(--need-line); }
.chip.bad { color: var(--bad); background: var(--bad-bg); border-color: transparent; }
.chip.run { color: var(--run); background: var(--run-bg); border-color: transparent; }
.chip.ok { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.chip.wait { color: var(--dim); background: var(--wait-bg); border-color: transparent; }
.chip.held { color: var(--held); border-color: var(--held); background: transparent; }
.chip.kind { border-color: currentColor; background: transparent; }
.chip.k-feature { color: var(--k-feature); } .chip.k-fix { color: var(--k-fix); } .chip.k-docs { color: var(--k-docs); } .chip.k-chore { color: var(--k-chore); }
.chip.k-assess { color: var(--k-assess); } .chip.k-refactor { color: var(--k-refactor); } .chip.k-test { color: var(--k-test); }
.chip.rk { font-family: var(--mono); font-size: 11px; padding: 0 6px; }
.chip.tag { text-transform: lowercase; font-weight: 500; }
.chip.tag.security { color: var(--need); background: var(--need-bg); border-color: var(--need-line); }
.chip.label { color: var(--ink); } a.chip.label { text-decoration: none; cursor: pointer; }   /* an item's labels (FLOW-243) */

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 14px; }
.btn:hover { background: var(--surface-2); }
.btn.go { background: var(--need); border-color: var(--need); color: var(--bg); font-weight: 600; }
.btn.sm { padding: 3px 9px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: default; }

details > summary { cursor: pointer; color: var(--dim); font-size: 13px; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "\25B8"; display: inline-block; width: 1em; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
.fold { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 0; scroll-margin-top: 72px; }
.fold.need { border-left: 3px solid var(--need); }
.fold > summary { display: flex; align-items: baseline; padding: 12px 14px; color: var(--fg); font-size: 14.5px; white-space: nowrap; overflow: hidden; min-width: 0; border-radius: 10px; }
.fold > summary:hover { background: var(--surface-2); }
.fold > summary::before { color: var(--faint); flex: none; }
.fold > summary .ft { font-weight: 600; flex: none; }
.fold > summary .fs { color: var(--dim); overflow: hidden; text-overflow: ellipsis; min-width: 0; font-variant-numeric: tabular-nums; }
.fold[open] > summary { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.fold > .fb { padding: 12px 14px 14px; min-width: 0; }
.fold > .fb > .list:only-child, .fold > .fb > .tw:only-child { margin: 0; }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-width: 0; align-items: flex-start; }
.row:last-child { border-bottom: 0; }
a.row { color: inherit; }
a.row:hover { background: var(--surface-2); text-decoration: none; }
.row .dot { margin-top: 6px; }

.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; font-weight: 500; color: var(--dim); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; }
.kv > div { padding: 7px 14px; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.kv > div:nth-child(odd) { color: var(--dim); font-size: 13.5px; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat .v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .l { font-size: 12.5px; color: var(--dim); }

.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.seg button { border: 0; background: var(--surface); padding: 5px 10px; font-size: 13px; cursor: pointer; color: var(--ink); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 34px; height: 20px; border-radius: 999px; background: var(--wait-2); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: left .15s; }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { left: 17px; }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }

.empty { padding: 12px 14px; color: var(--dim); font-size: 14px; }
.illus { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); border: 1px dashed var(--line-2); border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: 1px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 10px; font-size: 13.5px; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }
.banner { background: var(--surface-2); color: var(--dim); font-size: 12px; padding: 5px 16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.banner b { color: var(--ink); font-weight: 500; }
.banner button { background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 8px; color: var(--dim); cursor: pointer; font-size: 12px; flex: none; }

/* The shell: header, tabs, back bar, main (page.md, Components: Header, Tabs, Back bar). */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr { max-width: 920px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; flex: none; color: var(--fg); }
.brand:hover { text-decoration: none; }
.badges { display: flex; gap: 6px; align-items: center; min-width: 0; flex: 1; justify-content: flex-end; }
.tabs-top { display: none; }
@media (min-width: 760px) {
  .tabs-top { display: flex; max-width: 920px; margin: 0 auto; padding: 0 16px; gap: 2px; }
  .tabs-top a { padding: 8px 12px 9px; color: var(--dim); font-size: 14px; border-bottom: 2px solid transparent; display: inline-flex; gap: 6px; align-items: center; }
  .tabs-top a:hover { color: var(--fg); text-decoration: none; }
  .tabs-top a.on { color: var(--fg); border-bottom-color: var(--fg); font-weight: 500; }
  .tabbar { display: none !important; }
  main { padding-bottom: 48px !important; }
}
@media (max-width: 420px) { .hdr { gap: 6px; } }
@media (max-width: 370px) { .brand span.name { display: none; } }
.count { background: var(--need); color: var(--bg); border-radius: 999px; font-size: 11px; font-weight: 600; padding: 0 6px; line-height: 16px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(7, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; font-size: 10.5px; color: var(--dim); position: relative; min-width: 0; }
.tabbar a:hover { text-decoration: none; }
.tabbar a.on { color: var(--fg); font-weight: 600; }
.tabbar a.on svg { stroke: var(--fg); }
.tabbar svg { width: 20px; height: 20px; fill: none; stroke: var(--dim); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .count { position: absolute; top: 3px; left: 50%; margin-left: 6px; }
@media (max-width: 420px) { .tabbar a { font-size: 10px; letter-spacing: -.01em; } }
.backbar { margin: 8px 0 -4px; }
.backbar[hidden] { display: none; }
main { max-width: 920px; margin: 0 auto; padding: 8px 16px calc(92px + env(safe-area-inset-bottom, 0px)); }
h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin: 22px 0 8px; display: flex; align-items: baseline; gap: 8px; scroll-margin-top: 72px; }

/* part bar, category bar, usage bar, links and artifact chips, actions, job card */
.pbar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--wait-bg); }
.pbar > i { display: block; height: 100%; min-width: 0; }
.p-waiting { background: var(--wait-2); }
.p-agent { background: var(--run); }
.p-checks { background: repeating-linear-gradient(135deg, var(--run) 0 3px, var(--run-2) 3px 6px); }
.p-owner { background: var(--need); }
.p-rework { background: repeating-linear-gradient(135deg, var(--run-2) 0 2px, var(--wait-2) 2px 6px); }
.ubar { position: relative; height: 12px; background: var(--wait-bg); border-radius: 3px; margin: 10px 0 4px; }
.ubar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); opacity: .75; border-radius: 3px; }
.tick { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px solid var(--fg); }
.tick.limit { border-left: 2px dashed var(--fg); }
.tickkey { display: inline-block; width: 0; height: 13px; border-left: 2px solid var(--fg); vertical-align: -2px; }
.tickkey.limit { border-left-style: dashed; }
.lnk { overflow-wrap: anywhere; }
a.artifact { display: inline-flex; align-items: center; gap: 5px; vertical-align: -3px; padding: 1px 8px 1px 6px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface-2); color: var(--fg); font-size: 13px; line-height: 18px; max-width: 100%; }
a.artifact:hover { text-decoration: none; border-color: var(--run); }
a.artifact svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--run); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a.artifact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.acts .line { flex: 1 1 200px; min-width: 0; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font-size: 13.5px; }
.owner-only-note { font-size: 12px; color: var(--faint); }
body.as-coord .owner-only { display: none !important; }
.sure { font-size: 12.5px; color: var(--need); }
.cbar { display: flex; height: 8px; border-radius: 3px; overflow: hidden; background: var(--wait-bg); }
.cbar > i { display: block; height: 100%; }
.c-model { background: var(--cat-model); } .c-tests { background: var(--cat-tests); } .c-reading { background: var(--cat-read); } .c-writing { background: var(--cat-write); } .c-git { background: var(--cat-git); } .c-other { background: var(--cat-other); }
#jobcard { position: absolute; z-index: 50; width: 296px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.28); padding: 10px 12px 10px; font-size: 13px; color: var(--ink); }
#jobcard[hidden] { display: none; }
#jobcard .jt { font-weight: 600; color: var(--fg); line-height: 1.3; overflow-wrap: anywhere; }
#jobcard .jt .id { font-size: 12.5px; }
#jobcard .js { color: var(--dim); font-size: 12.5px; margin-top: 2px; }
#jobcard table { width: 100%; border-collapse: collapse; margin: 7px 0 4px; font-size: 12.5px; }
#jobcard td { padding: 1px 0; border: 0; white-space: nowrap; }
#jobcard td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
#jobcard .cbar { height: 5px; margin: 1px 0 3px; }
#jobcard .jr { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
#jobcard .jo b { font-weight: 600; }
#jobcard .jo .o-merged, #jobcard .jo .o-passed, #jobcard .jo .o-done { color: var(--ok); } #jobcard .jo .o-back, #jobcard .jo .o-built { color: var(--ink); } #jobcard .jo .o-failed { color: var(--bad); } #jobcard .jo .o-running { color: var(--run); }
#jobcard .jgo { color: var(--run); font-size: 12px; margin-top: 6px; }
#jobcard .jw { margin-top: 6px; font-size: 12.5px; }
.sw.ph-plan, .ph-plan { background: var(--ph-plan); } .ph-build { background: var(--ph-build); } .ph-review { background: var(--ph-review); }
.ph-fix { background: repeating-linear-gradient(135deg, var(--run-2) 0 2px, var(--wait-2) 2px 5px); }
.ph-checks, .ph-check { background: repeating-linear-gradient(135deg, var(--run) 0 3px, var(--run-2) 3px 6px); }
.ph-assess { background: var(--ph-assess); } .ph-reply { background: var(--ph-reply); }
.errl .src2 { font: 11.5px var(--mono); color: var(--bad); text-transform: lowercase; }
.sec-note { font-size: 12.5px; color: var(--dim); margin: 0 0 8px; }
td .ov { color: var(--need); font-size: 11px; margin-left: 4px; }

/* Home: needs you, now, next up (part 5) */
h2 .r { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 400; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
.grid2 > * { min-width: 0; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.ask { border-left: 3px solid var(--need); }
.ask .q { font-weight: 600; margin: 10px 0 6px; }
.ask .msg { font-size: 14px; color: var(--ink); margin: 6px 0; }
.opt { display: flex; width: 100%; text-align: left; gap: 10px; align-items: flex-start; margin: 6px 0; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.opt:hover { border-color: var(--line-2); }
.opt.on { border-color: var(--need); box-shadow: inset 0 0 0 1px var(--need); }
.opt .box { width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 4px; flex: none; margin-top: 2px; display: grid; place-items: center; font-size: 11px; line-height: 1; }
.opt.on .box { background: var(--need); border-color: var(--need); color: var(--bg); }
.opt small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt.on small { white-space: normal; }
.askhead { display: flex; gap: 6px; align-items: center; min-width: 0; font-size: 13px; color: var(--dim); }
.askhead .clamp1 { min-width: 0; flex: 1; }
.btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.res { font-size: 13px; color: var(--dim); margin-top: 6px; font-style: italic; }
.res:empty { display: none; }
.prow { display: grid; grid-template-columns: 74px 1fr 64px; gap: 10px; align-items: center; margin: 6px 0; font-size: 13px; }
.prow > * { min-width: 0; }
.askline { display: flex; width: 100%; gap: 8px; align-items: center; text-align: left; margin-top: 8px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--need); border-radius: 10px; cursor: pointer; min-width: 0; font-size: 14px; }
.askline:hover { border-color: var(--line-2); border-left-color: var(--need); }
.askline .chip { flex: none; }
.ask + .askline, .askline + .ask, .ask + .ask { margin-top: 8px; }
.today { margin: 22px 0 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.today b { color: var(--fg); font-weight: 600; }
.folds { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.askhead .tags { display: inline-flex; gap: 4px; flex: none; }
.hint { font-size: 12.5px; color: var(--dim); margin: 2px 0 6px; }
.ta { display: block; width: 100%; min-height: 2.6em; resize: vertical; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); line-height: 1.4; font-size: 14px; }
.ta:focus { border-color: var(--line-2); }
.talabel { display: block; font-size: 12.5px; color: var(--dim); margin: 8px 0 3px; }
.opt .do { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.ask .round { margin: 6px 0 0 14px; font-size: 13px; }
.ask .round .dim { font-size: 12.5px; }
.kbd { font: 11px "IBM Plex Mono", ui-monospace, monospace; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; color: var(--dim); }
.mergewait { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--run-bg); color: var(--ink); font-size: 13.5px; }
.mergewait .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--run); border-right-color: transparent; flex: none; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reading { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--dim); }
.reading i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: blink 1.2s infinite; }
.reading i:nth-child(2) { animation-delay: .2s; } .reading i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.steps { display: flex; gap: 3px; margin-top: 8px; }
.steps span { flex: 1; font-size: 11px; text-align: center; padding: 2px 0; border-radius: 4px; background: var(--wait-bg); color: var(--faint); }
.steps span.done { background: var(--run-bg); color: var(--run); }
.steps span.cur { background: var(--run); color: var(--bg); font-weight: 600; }
.ask .q.lead { margin-top: 8px; }
.askhead .askn { flex: none; }
.btns .kbdhint { align-self: center; margin-left: auto; }
.row .place { width: 1.4em; text-align: right; flex: none; }
.row .stamp { flex: none; padding-top: 2px; }
.pbox { margin-top: 8px; }
.meta b.est { color: var(--ink); }
.sec-note.flush { margin: 8px 0 0; }

/* time summary: card, two columns, section note, bottleneck chip, slot bar, reason bars, estimate ratios */
.bchip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: 13.5px; background: var(--wait-bg); color: var(--fg); border: 1px solid var(--line); }
.slotbar { margin-top: 10px; }
.sbar2 { display: flex; height: 18px; border-radius: 4px; overflow: hidden; background: var(--wait-bg); margin-top: 6px; }
.sbar2 > i { display: flex; align-items: center; height: 100%; min-width: 0; font: normal 11px/18px "IBM Plex Sans", sans-serif; color: var(--bg); padding-left: 5px; white-space: nowrap; overflow: hidden; }
.s-busy { background: var(--run); } .s-work { background: repeating-linear-gradient(135deg, var(--need) 0 3px, var(--need-bg) 3px 6px); color: var(--fg) !important; } .s-free { background: var(--wait-2); }
.hbar { display: grid; grid-template-columns: 96px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; margin: 5px 0; }
.hbar > * { min-width: 0; }
.hbar .b { height: 10px; background: var(--wait-bg); border-radius: 3px; overflow: hidden; }
.hbar .b i { display: block; height: 100%; background: var(--wait-2); }
.rt-ok { color: var(--ok); } .rt-over { font-weight: 600; color: var(--fg); }

/* System tables (part 13) */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.share input[type=range] { flex: 1 1 160px; min-width: 0; accent-color: var(--fg); }
.share output { font-variant-numeric: tabular-nums; min-width: 9ch; }
.usage-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.usage-keys { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.legend.rule { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 14px; }
.legend.big { margin: 0; gap: 10px 22px; font-size: 14px; color: var(--fg); }
.sw.used { background: var(--fg); opacity: .75; }
.dot.held { background: var(--held); }
.sec-note.tight { margin: 6px 0 0; }
.n-bad { color: var(--bad); }
.hbar .why { display: block; line-height: 1.2; }
.hbar .tn { text-align: right; }
.usage-win + .usage-win { margin-top: 18px; }
/* Items: filters, search, waiting on, forecast lanes */
.sec-note.flat { margin: 0; }
.sec-note.first { margin-top: 0; }
.search.topic { flex: 0 1 11rem; }
.rt { text-align: right; }
.card.mine { border-left: 3px solid var(--need); }
.nm-body { margin-top: 4px; }
.nm-ask { margin-top: 8px; }
.id.big { font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
pre.text.flush0 { margin-top: 0; }
pre.text.note { margin: 0 0 10px; }
details.amend { margin-top: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.fchip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.fchip .n { color: var(--faint); }
.fchip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.fchip[aria-pressed="true"] .n { color: var(--bg); opacity: .7; }
.search { flex: 1 1 200px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.fc-lanes { position: relative; }
.fc-lane { display: grid; grid-template-columns: 40px 1fr 46px; gap: 8px; align-items: center; height: 18px; }
.fc-lane .lb { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--dim); text-align: right; }
.fc-lane .tr { position: relative; height: 10px; }
.fc-lane .tr i { position: absolute; top: 0; bottom: 0; border-radius: 2px; min-width: 2px; }
.fc-axis { display: grid; grid-template-columns: 40px 1fr 46px; gap: 8px; margin-top: 4px; }
.fc-axis .tr { position: relative; height: 16px; border-top: 1px solid var(--line); }
.wtree { display: flex; flex-direction: column; gap: 10px; }
.wgroup.needg { border-left: 3px solid var(--need); }
.brow { background: var(--surface); }
.hrow { padding-left: calc(14px + var(--d) * 18px); position: relative; }
.hrow::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(17px + (var(--d) - 1) * 18px); border-left: 1px solid var(--line-2); }
.held { font-weight: 600; color: var(--ink); }
.fe { font-size: 11.5px; color: var(--dim); text-align: right; }
.frun { background: var(--run); }
.fc-axis .tr span { position: absolute; top: 2px; font-size: 11px; color: var(--faint); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.fest { background: repeating-linear-gradient(135deg, var(--wait-2) 0 4px, transparent 4px 6px); box-shadow: inset 0 0 0 1px var(--wait-2); }
pre.text { white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.5 "IBM Plex Sans", system-ui, sans-serif; margin: 8px 0 0; color: var(--ink); }
pre.json { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.45 "IBM Plex Mono", ui-monospace, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin: 6px 0 2px; color: var(--ink); max-height: 320px; overflow: auto; }
.rec { display: grid; grid-template-columns: 46px 1fr; gap: 2px 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.rec:last-child { border-bottom: 0; }
.rec .tm { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--dim); padding-top: 1px; }
.rec .who { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-right: 6px; }
.rec .what { overflow-wrap: anywhere; font-size: 14px; }
.rec .what .dot { margin-right: 6px; vertical-align: 1px; }
.rec details { grid-column: 2; }
.rec ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink); }
.att { border-top: 1px solid var(--line); padding: 8px 0 2px; margin-top: 8px; }
.att .ah { font-size: 13px; color: var(--ink); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.catrow { display: grid; grid-template-columns: 64px 1fr 52px; gap: 8px; align-items: center; font-size: 12.5px; margin: 4px 0; }
.catrow > * { min-width: 0; }
.proposal { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.proposal b { color: var(--ink); font-weight: 500; }
.proposal.refused { color: var(--bad); background: var(--bad-bg); padding: 4px 6px; border-radius: 4px; }
.rec .what .chip { margin-right: 6px; vertical-align: 1px; }
/* Changes: live grid, milestones, day and topic heads, change rows */
.card .list { box-shadow: none; margin-top: 6px; }
.livegrid { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.svc { display: inline-flex; align-items: center; gap: 6px; }
.card .lead { margin-top: 10px; }
.daylabel { font-size: 13px; font-weight: 600; color: var(--fg); margin: 18px 0 4px; }
.topichead { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); margin: 8px 2px 4px; }
.topichead b { color: var(--fg); }
details.row.ms { display: block; }
details.row.ms > summary { list-style: none; cursor: pointer; }
details.row.ms .mt { font-weight: 600; color: var(--fg); }
details.row.ms > .list { margin-top: 8px; }
details.what { margin-top: 4px; }
details.what summary { cursor: pointer; color: var(--dim); font-size: 12.5px; }
.idle-why { margin: 0 0 8px; white-space: normal; overflow-wrap: anywhere; color: var(--dim); }

/* The status line at the top of Home (flow/status.py): green when healthy, red with what is wrong. */
.status-line { margin: 0 0 12px; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.status-line.ok { background: var(--ok-bg); color: var(--ok); }
.status-line.bad { background: var(--bad-bg); color: var(--bad); }
.status-line a { color: inherit; text-decoration: underline; }


/* The Authorize card: each choice is a button with what it grants beside it. */
.authorize .grants { display: grid; gap: 8px; margin: 10px 0; }
.authorize .grant { display: grid; grid-template-columns: max-content 1fr; gap: 10px; align-items: center; }
.authorize .note { padding: 6px 10px; border-radius: 6px; }
.authorize .note.ok { background: var(--ok-bg); color: var(--ok); }
.authorize .note.bad { background: var(--bad-bg); color: var(--bad); }
@media (max-width: 560px) { .authorize .grant { grid-template-columns: 1fr; } }

/* Permissions: the buttons stay inside the card on any width. */
.perms .tbl { width: 100%; table-layout: auto; }
.perms .tbl td:last-child { white-space: nowrap; width: 1%; }
@media (max-width: 700px) { .perms .tbl td:last-child { white-space: normal; } }


/* Permissions: one row per role, its capabilities as wrapping chips, its buttons always in view. */
.perm-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.perm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.perm-acts { display: inline-flex; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip.cap { font-size: 12px; padding: 1px 6px; border-radius: 10px; border: 1px solid var(--line); color: var(--dim); }
.chip.cap.high { color: var(--bad); border-color: var(--bad); }
.perms .tbl td { white-space: normal; overflow-wrap: anywhere; }
