:root{
  --bg:#f6f7f4; --surface:#ffffff; --sunk:#eceee9; --ink:#111b21; --muted:#54616a; --rule:#dfe3dc;
  --accent:#0d6b70; --accent-ink:#ffffff; --accent-soft:#dcefee;
  --brass:#8a5c0b; --brass-soft:#f6ead2; --good:#2a7037; --good-soft:#ddf0e0; --bad:#b3261e; --bad-soft:#fbe3e0;
  --sky1:#cfe0e6; --sky2:#f3ede0; --tower:#e9e4d8; --tower2:#d9d2c3; --win:#9fb7c2; --sea:#2c5d6e; --sea2:#1e4553;
  --f-display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI Variable Display","Segoe UI",system-ui,"Helvetica Neue",Arial,sans-serif; --f-body:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI Variable Text","Segoe UI",system-ui,"Helvetica Neue",Arial,sans-serif; --f-mono:ui-monospace,"SF Mono","Cascadia Mono",Consolas,"SFMono-Regular",Menlo,monospace;
  --r-lg:16px; --r:12px; --r-sm:10px; --tap:44px; --tabbar-h:58px;
  --shadow-1:0 1px 2px rgba(17,27,33,.04),0 2px 10px rgba(17,27,33,.05); --shadow-2:0 10px 34px rgba(17,27,33,.14),0 2px 6px rgba(17,27,33,.06);
  --glass:rgba(255,255,255,.82); --ease-out:cubic-bezier(.23,1,.32,1);
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0e161b; --surface:#16212a; --sunk:#0a1115; --ink:#e7eef0; --muted:#9dacb3; --rule:#26353f;
  --accent:#5fc1c4; --accent-ink:#06282a; --accent-soft:#163a3d;
  --brass:#e6b860; --brass-soft:#3a2f18; --good:#7ccb8b; --good-soft:#1a3322; --bad:#f2918a; --bad-soft:#3d1f1d;
  --sky1:#0f2430; --sky2:#27384a; --tower:#3a4652; --tower2:#2c3640; --win:#e8c675; --sea:#0d2a35; --sea2:#081c24;
  --shadow-1:0 1px 2px rgba(0,0,0,.3); --shadow-2:0 12px 36px rgba(0,0,0,.5); --glass:rgba(22,33,42,.84); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0e161b; --surface:#16212a; --sunk:#0a1115; --ink:#e7eef0; --muted:#9dacb3; --rule:#26353f;
  --accent:#5fc1c4; --accent-ink:#06282a; --accent-soft:#163a3d;
  --brass:#e6b860; --brass-soft:#3a2f18; --good:#7ccb8b; --good-soft:#1a3322; --bad:#f2918a; --bad-soft:#3d1f1d;
  --sky1:#0f2430; --sky2:#27384a; --tower:#3a4652; --tower2:#2c3640; --win:#e8c675; --sea:#0d2a35; --sea2:#081c24;
  --shadow-1:0 1px 2px rgba(0,0,0,.3); --shadow-2:0 12px 36px rgba(0,0,0,.5); --glass:rgba(22,33,42,.84); color-scheme:dark}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font:15.5px/1.5 var(--f-body);margin:0}
h1,h2,h3{font-family:var(--f-display);margin:0;text-wrap:balance}
p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.eyebrow{font:500 11.5px/1.2 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.wrap{max-width:1240px;margin:0 auto;padding-inline:20px}

/* top bar */
.bar{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--surface);border-bottom:1px solid var(--rule)}
.bar .wrap{display:flex;align-items:center;gap:14px;min-height:56px;flex-wrap:wrap;padding-block:6px}
.brand{display:flex;align-items:center;gap:10px;font:800 16px var(--f-display);color:var(--ink);text-decoration:none;background:none;border:0;padding:0}
.brand svg{flex:none}
.tabs{display:flex;gap:2px;flex-wrap:wrap}
.tabs button{border:0;background:none;padding:8px 11px;border-radius:5px;color:var(--muted);font-weight:600}
.tabs button[aria-current="page"]{color:var(--ink);background:var(--sunk)}
.tabs .count,.more summary .count{font:500 11px var(--f-mono);background:var(--brass-soft);color:var(--brass);padding:2px 6px;border-radius:10px;margin-left:5px}
.spacer{flex:1}
.role{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.role select{border:1px solid var(--rule);background:var(--surface);border-radius:5px;padding:6px 8px;font-size:13.5px}
.demo-strip{background:var(--brass-soft);color:var(--brass);font-size:13px;text-align:center;padding:6px 16px}

/* landing */
.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--rule)}
.hero canvas{display:block;width:100%;height:340px}
.hero .over{position:absolute;inset:0;display:flex;align-items:flex-start}
.hero .over .wrap{width:100%;padding-block:40px}
.hero h1{font-size:clamp(32px,5.4vw,58px);font-weight:800;line-height:1.02;letter-spacing:-.015em;max-width:14ch}
.hero p{margin-top:12px;max-width:46ch;color:var(--ink);font-size:17px}
.hero .copy{display:inline-block;max-width:620px;background:color-mix(in srgb,var(--surface) 86%,transparent);backdrop-filter:blur(3px);padding:18px 22px;border-radius:8px;border:1px solid var(--rule)}
.hero .over .wrap{padding-block:28px}
.hero .copy h1{font-size:clamp(30px,4.2vw,48px);max-width:16ch}
@media (max-width:640px){.hero .copy{padding:14px 16px}.hero .over .wrap{padding-block:16px}}
.quaytags{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
.quaytags span{font:500 12px var(--f-mono);background:color-mix(in srgb,var(--surface) 80%,transparent);border:1px solid var(--rule);padding:4px 8px;border-radius:4px}
.land{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:22px;padding-block:28px 56px}
@media (max-width:860px){.land{grid-template-columns:1fr}}
.stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--rule);background:var(--rule);gap:1px;border-radius:6px;overflow:hidden}
@media (max-width:560px){.stats{grid-template-columns:repeat(2,1fr)}}
.stat{background:var(--surface);padding:14px 16px;display:grid;gap:2px}
.stat b{font:500 26px var(--f-mono)}
.stat span{font-size:13px;color:var(--muted)}
.stat.missing b{color:var(--brass)}
.sections{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin-top:22px}
.sec{text-align:left;background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:14px 16px;display:grid;gap:6px;transition:border-color .15s}
.sec:hover{border-color:var(--accent)}
.sec h3{font-size:16px}
.sec{grid-template-rows:auto 1fr auto}
.sec .meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px;font:12px var(--f-mono);color:var(--muted)}
.sec .meta span{white-space:nowrap}
.sec .meta .m{color:var(--brass)}
.side{display:grid;gap:14px;align-content:start}
.card{background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:16px}
.card h3{font-size:15px;margin-bottom:10px}
.start a,.start button{display:flex;justify-content:space-between;gap:10px;width:100%;padding:9px 0;border:0;border-bottom:1px solid var(--rule);background:none;color:var(--ink);text-decoration:none;text-align:left}
.start > :last-child{border-bottom:0}
.start small{color:var(--muted);font-size:12.5px}
.feed{display:grid;gap:10px;font-size:14px}
.feed div{display:grid;gap:1px}
.feed time{font:12px var(--f-mono);color:var(--muted)}
.btn{border:1px solid var(--rule);background:var(--surface);border-radius:5px;padding:7px 12px;font-weight:600;font-size:14px}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn.brass{background:var(--brass);color:var(--surface);border-color:var(--brass)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.sm{padding:4px 9px;font-size:13px}

/* library */
.lib{display:grid;grid-template-columns:260px minmax(0,1fr);gap:0;min-height:calc(100vh - 120px);border-inline:1px solid var(--rule);background:var(--surface)}
@media (max-width:860px){.lib{grid-template-columns:1fr}}
.rail{border-right:1px solid var(--rule);padding:14px 10px;background:var(--bg)}
@media (max-width:860px){.rail{border-right:0;border-bottom:1px solid var(--rule)}}
.sect-g>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;border-radius:4px}
.sect-g>summary::-webkit-details-marker{display:none}
.sect-g>summary::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s;margin-right:2px}
.sect-g[open]>summary::before{transform:rotate(45deg)}
.sect-g>summary:hover{color:var(--ink)}
.sect-g>summary .n{font-weight:400;letter-spacing:0}
@media (min-width:861px){.sect-g>summary{pointer-events:none}.sect-g>summary::before{display:none}.sect-g>summary .n{display:none}}
.search{width:100%;border:1px solid var(--rule);background:var(--surface);border-radius:5px;padding:8px 10px;margin-bottom:10px}
.tree{display:grid;gap:1px;font-size:14px}
.tree button{display:flex;align-items:center;gap:7px;width:100%;text-align:left;border:0;background:none;border-radius:4px;padding:5px 8px;color:var(--ink)}
.tree button:hover{background:var(--sunk)}
.tree button[aria-current="true"]{background:var(--accent-soft);color:var(--accent);font-weight:600}
.tree .sect{font:600 11.5px var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:12px 8px 4px}
.tree .n{margin-left:auto;font:11.5px var(--f-mono);color:var(--muted)}
.tree .mm{font:11px var(--f-mono);color:var(--brass)}
.main{min-width:0;display:grid;grid-template-rows:auto 1fr}
.crumbs{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid var(--rule)}
.crumbs .path{font:13px var(--f-mono);color:var(--muted)}
.crumbs .path b{color:var(--ink);font-weight:500}
.crumbs .acts{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
.panes{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-height:0}
@media (max-width:1080px){.panes{grid-template-columns:1fr}}
.list{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:14px}
th,td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--rule);vertical-align:middle}
th{font:600 11.5px var(--f-mono);letter-spacing:.05em;text-transform:uppercase;color:var(--muted);white-space:nowrap;background:var(--bg)}
td.d,td.s{font:13px var(--f-mono);color:var(--muted);white-space:nowrap}
tr.row{cursor:pointer}
.tt{display:flex;align-items:flex-start;gap:0}
.vers{font:11.5px var(--f-mono);color:var(--muted);margin-left:8px;white-space:nowrap}
.closeDetail{display:none}
@media (max-width:640px){th.hide,td.hide{display:none} .doc{display:none} td.d{font-size:12px;white-space:nowrap;min-width:64px}}
@media (min-width:641px){.hero canvas{height:400px}}
@media (max-width:1080px){.detail.open{position:fixed;left:0;right:0;bottom:0;max-height:72vh;overflow:auto;z-index:40;border-top:1px solid var(--rule);box-shadow:0 -10px 30px rgba(0,0,0,.18);padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))} .detail:not(.open){display:none} .closeDetail{display:inline-block} .detail .doc{display:none!important}}
tr.row:hover td{background:var(--sunk)}
tr.row.sel td{background:var(--accent-soft)}
tr.ghost td{background:repeating-linear-gradient(-45deg,transparent 0 8px,color-mix(in srgb,var(--brass-soft) 70%,transparent) 8px 16px);color:var(--brass)}
.ft{display:inline-grid;flex:none;place-items:center;width:30px;height:20px;border-radius:3px;font:600 9.5px var(--f-mono);background:var(--sunk);color:var(--muted);margin-right:8px;vertical-align:-4px}
.ft.pdf{background:var(--bad-soft);color:var(--bad)} .ft.docx{background:var(--accent-soft);color:var(--accent)} .ft.xlsx{background:var(--good-soft);color:var(--good)}
.detail{border-left:1px solid var(--rule);padding:16px;display:grid;gap:12px;align-content:start;background:var(--bg)}
@media (max-width:1080px){.detail{border-left:0;border-top:1px solid var(--rule)}}
.doc{aspect-ratio:1/1.3;max-width:100%;background:var(--surface);border:1px solid var(--rule);border-radius:3px;padding:18px;display:grid;align-content:start;gap:7px}
.doc i{display:block;height:6px;border-radius:2px;background:var(--sunk)}
.kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:13.5px}
.kv dt{color:var(--muted)} .kv dd{margin:0}
.empty{padding:40px 18px;color:var(--muted);text-align:center}
.pill{display:inline-block;font:500 11.5px/1 var(--f-mono);padding:4px 7px;border-radius:3px;white-space:nowrap}
.pill.suspected{background:var(--brass-soft);color:var(--brass)}
.pill.requested{background:var(--accent-soft);color:var(--accent)}
.pill.received{background:var(--bad-soft);color:var(--bad)}
.pill.accepted{background:var(--good-soft);color:var(--good)}
.locked{display:flex;gap:10px;align-items:flex-start;padding:18px;margin:18px;border:1px dashed var(--rule);border-radius:6px;color:var(--muted)}

/* missing */
.page{padding-block:24px 56px;display:grid;gap:16px}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chips button{border:1px solid var(--rule);background:var(--surface);border-radius:14px;padding:4px 11px;font-size:13px}
.chips button[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.mlist{display:grid;gap:8px}
.mi{display:grid;grid-template-columns:4px minmax(0,1fr) auto;gap:14px;background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:12px 14px 12px 0;align-items:start}
.mi::before{content:"";align-self:stretch;background:var(--st,var(--brass))}
.mi.requested{--st:var(--accent)} .mi.received{--st:var(--bad)} .mi.accepted{--st:var(--good)}
.mi .body{display:grid;gap:4px;min-width:0}
.mi .why{font-size:14px;color:var(--muted)}
.mi .where{font:12px var(--f-mono);color:var(--muted)}
.mi .acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:640px){.mi{grid-template-columns:4px minmax(0,1fr)} .mi .acts{grid-column:2;justify-content:flex-start}}

/* dialogs */
.scrim{position:fixed;inset:0;background:color-mix(in srgb,var(--ink) 45%,transparent);display:grid;place-items:center;padding:16px;z-index:50}
.dlg{background:var(--surface);border:1px solid var(--rule);border-radius:8px;width:min(520px,100%);padding:20px;display:grid;gap:12px;max-height:90vh;overflow:auto}
.dlg label{display:grid;gap:4px;font-size:13.5px;color:var(--muted)}
.dlg input,.dlg select,.dlg textarea{border:1px solid var(--rule);background:var(--bg);border-radius:5px;padding:8px 10px;color:var(--ink)}
.dlg .row{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.drop{border:2px dashed var(--rule);border-radius:6px;padding:22px;text-align:center;color:var(--muted)}
.drop.on{border-color:var(--accent);background:var(--accent-soft)}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:9px 16px;border-radius:6px;font-size:14px;z-index:60}
.ext{max-width:560px;margin:40px auto;padding-inline:16px;display:grid;gap:16px}
.note{font-size:13px;color:var(--muted)}
.members td:first-child{font-weight:600}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---- server-rendered additions (links styled like the demo buttons) ---- */
html,body{overflow-x:clip}
a{color:var(--accent)}
.brand{white-space:nowrap}
.tabs a{display:inline-block;padding:8px 11px;border-radius:5px;color:var(--muted);font-weight:600;text-decoration:none}
.tabs a[aria-current="page"]{color:var(--ink);background:var(--sunk)}
.tabs a:hover{color:var(--ink)}
.tabs .count.review{background:var(--bad-soft);color:var(--bad)}
.who{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.who form{display:inline}
.linkbtn{border:0;background:none;padding:0;color:var(--accent);font-weight:600;text-decoration:underline;cursor:pointer}
.theme-toggle{border:1px solid var(--rule);background:var(--surface);border-radius:5px;padding:4px 8px;font-size:12.5px}
.demo-strip b{font-weight:600}
.flash{background:var(--accent-soft);color:var(--ink);border:1px solid var(--accent);border-radius:6px;padding:10px 14px;margin-top:14px}
.flash.err,.error{background:var(--bad-soft);color:var(--bad);border:1px solid var(--bad);border-radius:6px;padding:10px 14px}
a.sec{color:var(--ink);text-decoration:none}
.start a{display:flex;justify-content:space-between;gap:10px;width:100%;padding:9px 0;border-bottom:1px solid var(--rule);color:var(--ink);text-decoration:none}
.start a:last-child{border-bottom:0}
.tree a{display:flex;align-items:center;gap:7px;width:100%;text-align:left;border-radius:4px;padding:5px 8px;color:var(--ink);text-decoration:none}
.tree a:hover{background:var(--sunk)}
.tree a[aria-current="true"]{background:var(--accent-soft);color:var(--accent);font-weight:600}
.tree a.empty-f{color:var(--muted)}
.chips a{border:1px solid var(--rule);background:var(--surface);border-radius:14px;padding:4px 11px;font-size:13px;color:var(--ink);text-decoration:none;display:inline-block}
.chips a[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.chips .n{font:11px var(--f-mono);color:inherit;opacity:.75;margin-left:4px}
a.btn{display:inline-block;text-decoration:none;color:var(--ink)}
a.btn.primary{color:var(--accent-ink)}
.btn.danger{background:var(--bad);color:var(--surface);border-color:var(--bad)}
td a.rowlink{color:var(--ink);text-decoration:none;display:block}
td a.rowlink:hover{text-decoration:underline}
.closeDetail{text-decoration:none}
.detail h3{font-size:16px}
.detail .acts{display:flex;gap:6px;flex-wrap:wrap}
.form{display:grid;gap:12px}
.form label{display:grid;gap:4px;font-size:13.5px;color:var(--muted)}
.form input,.form select,.form textarea{border:1px solid var(--rule);background:var(--bg);border-radius:5px;padding:8px 10px;color:var(--ink);width:100%;max-width:100%}
.form textarea{min-height:70px}
.form .row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.inline-form{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0}
.inline-form input,.inline-form select{border:1px solid var(--rule);background:var(--bg);border-radius:5px;padding:5px 8px;color:var(--ink);max-width:100%}
.authbox{max-width:460px;margin:40px auto;padding-inline:16px;display:grid;gap:16px}
.authbox .card{display:grid;gap:12px}
.qr{background:#fff;padding:10px;border-radius:6px;width:220px;max-width:100%;justify-self:center}
.qr img{display:block;width:100%;height:auto}
.secret{font:500 15px var(--f-mono);letter-spacing:.06em;word-break:break-all;background:var(--sunk);padding:8px 10px;border-radius:5px}
.codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;font:500 15px var(--f-mono);background:var(--sunk);padding:12px;border-radius:6px}
.linkbox{font:13px var(--f-mono);word-break:break-all;background:var(--sunk);padding:10px;border-radius:5px;user-select:all}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{font:500 11.5px/1 var(--f-mono);padding:4px 7px;border-radius:3px;background:var(--sunk);color:var(--muted);white-space:nowrap}
.bucket{font:600 11.5px/1 var(--f-mono);padding:4px 7px;border-radius:3px;white-space:nowrap;display:inline-block}
.bucket.A{background:var(--good-soft);color:var(--good)} .bucket.R{background:var(--brass-soft);color:var(--brass)}
.bucket.C{background:var(--accent-soft);color:var(--accent)} .bucket.G{background:var(--sunk);color:var(--muted)}
.bucket.D{background:var(--bad-soft);color:var(--bad)} .bucket.E{background:var(--sunk);color:var(--ink)}
.state{font:500 11.5px/1 var(--f-mono);padding:4px 7px;border-radius:3px;background:var(--sunk);color:var(--muted);white-space:nowrap;display:inline-block}
.state.accepted{background:var(--good-soft);color:var(--good)} .state.awaiting_second{background:var(--bad-soft);color:var(--bad)}
.state.review{background:var(--brass-soft);color:var(--brass)} .state.rejected{background:var(--bad-soft);color:var(--bad)}
.preview{width:100%;height:70vh;min-height:360px;border:1px solid var(--rule);border-radius:4px;background:var(--surface)}
.reviewgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:16px;align-items:start}
@media (max-width:1080px){.reviewgrid{grid-template-columns:1fr}}
.qlist{background:var(--surface);border:1px solid var(--rule);border-radius:6px;overflow-x:auto}
.decide{display:grid;gap:10px}
.decide details{border:1px solid var(--rule);border-radius:6px;padding:10px 12px;background:var(--surface)}
.decide summary{cursor:pointer;font-weight:600}
.decide details[open] summary{margin-bottom:10px}
.reasons{margin:0;padding-left:18px;font-size:14px}
.history{font-size:13px}
.history td{padding:6px 8px}
.snip{font-size:13.5px;color:var(--muted)}
.snip mark{background:var(--brass-soft);color:var(--ink);padding:0 2px;border-radius:2px}
.results{display:grid;gap:10px}
.result{background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:12px 14px;display:grid;gap:4px;min-width:0}
.result a{font-weight:600;color:var(--ink)}
.result .where{font:12px var(--f-mono);color:var(--muted)}
.docpage{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:860px){.docpage{grid-template-columns:1fr}}
.tombstone{border:1px dashed var(--bad);color:var(--bad);border-radius:6px;padding:12px}
.mi details{margin-top:6px}
.mi details .form{margin-top:8px}
.wrapcell{word-break:break-word;min-width:0}
.footer{padding:24px 0 40px;color:var(--muted);font-size:12.5px}
@media (max-width:640px){
  .wrap{padding-inline:16px}
  .bar .wrap{gap:8px}
  .tabs a{padding:6px 8px;font-size:14px}
  .who{width:100%}
  table{font-size:13px}
  th,td{padding:8px}
  .codes{grid-template-columns:1fr}
}
a.stat{color:var(--ink);text-decoration:none}
a.stat:hover b{text-decoration:underline}
.badge{display:inline-block;font:600 11px/1.2 var(--f-body);padding:3px 7px;border-radius:999px;white-space:nowrap;vertical-align:1px}
.badge.ocr{background:var(--brass-soft);color:var(--brass);border:1px solid color-mix(in srgb,var(--brass) 35%,transparent)}
.badge.ocr-done{background:var(--good-soft);color:var(--ink);border:1px solid color-mix(in srgb,var(--good) 35%,transparent)}
.badge.ocr-poor,.badge.ocr-failed{background:var(--bad-soft);color:var(--ink);border:1px solid color-mix(in srgb,var(--bad) 35%,transparent)}
.ocr-box p{margin:.5rem 0}
.ocr-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:24rem;overflow:auto;font:12px/1.5 var(--f-mono);background:var(--sunk);border:1px solid var(--rule);border-radius:8px;padding:10px;margin:.5rem 0 0}
.badge.check{background:var(--accent-soft);color:var(--ink);border:1px solid color-mix(in srgb,var(--accent) 35%,transparent)}
.filing h3{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.filing-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px}
.btn[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.btn .n{margin-left:6px;opacity:.75}

/* ---- v0.2: council pages, sign-in, home brief ---- */
.skip{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--ink);color:var(--bg);padding:8px 12px;border-radius:5px}
.skip:focus{left:12px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.js-hide{display:none}
.small{font-size:12.5px}
.lede{font-size:17px;color:var(--ink);max-width:60ch}
.narrow{max-width:760px}
.wide{width:100%}
.crumb{font-size:13px}
.crumb a{color:var(--muted)}
.demo-mark{font:500 11px/1 var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--brass);border:1px solid color-mix(in srgb,var(--brass) 40%,transparent);padding:4px 7px;border-radius:999px;white-space:nowrap}
.demo-foot{color:var(--brass)}
.who .me{display:grid;line-height:1.15;color:var(--ink);text-decoration:none;font-weight:600;text-align:right}
.who .me small{font-weight:400;color:var(--muted);font-size:11.5px}
.navrow{display:flex;padding-bottom:6px;align-items:center;gap:4px}
.bar .navrow{flex-wrap:nowrap}
.navrow .tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;align-items:center;min-width:0;flex:0 1 auto;scroll-padding-inline:16px}
/* Edge fades: both sides use the same width so a clipped neighbour reads as "more this way", never as a cut word. */
.navrow .tabs{--fade:40px}
/* Snap tabs to their start so none rests clipped mid-word; the padding keeps the first and last clear of the fades. */
@media (max-width:760px){.navrow .tabs{scroll-snap-type:x mandatory;scroll-padding-inline:12px;padding-inline:12px}.navrow .tabs a{scroll-snap-align:start}}
.navrow .tabs.fade-r{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - var(--fade)),transparent);mask-image:linear-gradient(to right,#000 calc(100% - var(--fade)),transparent)}
.navrow .tabs.fade-l.fade-r{-webkit-mask-image:linear-gradient(to right,transparent,#000 var(--fade),#000 calc(100% - var(--fade)),transparent);mask-image:linear-gradient(to right,transparent,#000 var(--fade),#000 calc(100% - var(--fade)),transparent)}
.navrow .tabs.fade-l:not(.fade-r){-webkit-mask-image:linear-gradient(to right,transparent,#000 var(--fade));mask-image:linear-gradient(to right,transparent,#000 var(--fade))}
.navrow .more{flex:none}
.m-only{display:none}
@media (max-width:760px){.navrow .d-only:not([aria-current]){display:none}.more .menu a.m-only{display:block}}
.navrow .tabs::-webkit-scrollbar{display:none}
.navrow .tabs a{white-space:nowrap}
.more{position:static}
.more summary{list-style:none;cursor:pointer;padding:8px 11px;border-radius:5px;color:var(--muted);font-weight:600;white-space:nowrap}
.more summary::-webkit-details-marker{display:none}
.more summary::after{content:" \25BE"}
.more[open] summary{background:var(--sunk);color:var(--ink)}
.more .menu{position:absolute;right:16px;margin-top:6px;z-index:45;background:var(--surface);border:1px solid var(--rule);border-radius:8px;box-shadow:0 12px 30px rgba(0,0,0,.14);display:grid;min-width:220px;padding:6px}
.more .menu a{padding:9px 12px;border-radius:5px;color:var(--ink);text-decoration:none}
.more .menu a:hover{background:var(--sunk)}
.bar{position:sticky}
.bar>.navrow{position:relative}
.page-h{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.page-h h2{font-size:26px}
h2{font-size:24px}
.prose{white-space:pre-wrap;overflow-wrap:anywhere}
.kind{display:inline-block;justify-self:start;font:500 10.5px/1 var(--f-mono);text-transform:uppercase;letter-spacing:.05em;color:var(--accent);background:var(--accent-soft);padding:4px 8px;border-radius:999px;white-space:nowrap;vertical-align:middle}
.mtg .what .t{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.kind.agm{color:var(--brass);background:var(--brass-soft)} .kind.finance{color:var(--good);background:var(--good-soft)}
details.add>summary,details.kd-admin>summary,.card details>summary{cursor:pointer;font-weight:600;color:var(--accent)}
details.add[open]>summary{margin-bottom:12px}
.card details[open]>summary{margin-bottom:10px}
.card details{margin-top:10px}

/* calm restricted page */
.calm{max-width:520px;margin:56px auto;text-align:center;display:grid;gap:12px;justify-items:center;padding-inline:16px}
.calm-icon{width:56px;height:56px;border-radius:50%;background:var(--sunk);display:grid;place-items:center;color:var(--muted)}

/* sign-in */
.authbox.wide-auth{max-width:720px}
.pk{width:100%;padding:12px;font-size:15.5px}
.or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--rule)}
.choices{display:grid;gap:12px}
.choice{background:var(--surface);border:1px solid var(--rule);border-radius:8px;padding:16px;display:grid;gap:8px}
.choice.rec{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.choice h3{font-size:16px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tag.good{background:var(--good-soft);color:var(--good)}
.split{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
.plain{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.steps{margin:0;padding-left:22px;display:grid;gap:10px}
.steps li::marker{color:var(--accent);font-weight:700}

/* home brief */
/* short hero: the copy sets the height, the harbour sits behind it */
.hero.short{min-height:170px}
.hero.short canvas{position:absolute;inset:0;width:100%;height:100%}
.hero.short .over{position:relative;inset:auto}
.hero.short .copy{max-width:min(620px,100%)}
@media (min-width:641px){.hero.short{min-height:200px}}
@media (max-width:640px){.hero.short .copy h1{font-size:28px}.hero.short p{font-size:15.5px}}
.brief{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width:960px){.brief{grid-template-columns:1fr}}
.panel{display:grid;gap:10px;align-content:start}
.panel-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.panel-h h2,.panel-h h3{font-size:17px;margin:0}
.panel-h a{font-size:13px}
.items{list-style:none;margin:0;padding:0;display:grid}
.items li{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--rule);align-items:baseline;min-width:0}
.items li:last-child{border-bottom:0}
.items li>span:first-child,.items li>a:first-child{min-width:0;overflow-wrap:anywhere}
.items time,.items .acts{font-size:12.5px;color:var(--muted);white-space:nowrap;display:flex;gap:6px;align-items:center}
.items a{color:var(--ink)}
.items li.soon time{color:var(--brass);font-weight:600}
.items.mine{border-top:1px dashed var(--rule)}
.items.docs .acts{flex-wrap:wrap}
.tally{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tally a,.tally li>span{display:grid;background:var(--sunk);border-radius:6px;padding:10px 12px;color:var(--ink);text-decoration:none}
.tally b{font:700 22px/1.1 var(--f-display)}
.tally small{color:var(--muted);font-size:12.5px}

/* meetings */
.mtg-list,.kd-list,.act-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.mtg{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:center;background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:12px 14px;color:var(--ink);text-decoration:none}
.mtg:hover{border-color:var(--accent)}
.mtg .when{font:500 13px var(--f-mono);color:var(--muted)}
.mtg .what{display:grid;gap:3px;min-width:0}
.mtg .what small{color:var(--muted)}
@media (max-width:520px){.mtg{grid-template-columns:1fr;gap:4px}}

/* key dates */
.kd{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:14px;border-left:4px solid var(--rule)}
.kd.done{opacity:.7}
.kd-date{display:grid;gap:2px;align-content:start}
.kd-date b{font:700 15px var(--f-display)}
.kd-date small{color:var(--muted);font-size:12.5px}
.kd.soon .kd-date small{color:var(--brass);font-weight:600}
.kd-body{display:grid;gap:6px;min-width:0}
.kd-body h3{font-size:16px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.kd-docs{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13.5px}
.kd-admin .form,.kd-admin .inline-form{margin-top:8px}
@media (max-width:520px){.kd{grid-template-columns:1fr;gap:6px}}

/* actions */
.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end}
.filters label{display:grid;gap:3px;font-size:12.5px;color:var(--muted)}
.filters select{border:1px solid var(--rule);background:var(--surface);border-radius:5px;padding:6px 8px;max-width:100%}
.act{display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:12px 14px;border-left:4px solid var(--accent)}
.act.decision{border-left-color:var(--brass)} .act.done{opacity:.75;border-left-color:var(--good)} .act.late{border-left-color:var(--bad)}
.act-main{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
@media (max-width:520px){.act{flex-direction:column;align-items:flex-start}}

/* questions, interests, approvals */
.qa{display:grid;gap:10px}
.qa .q,.qa .a{white-space:pre-wrap;overflow-wrap:anywhere}
.qa .a{border-left:3px solid var(--accent);padding-left:12px}
.int{display:grid;gap:6px}
.int h3{font-size:16px}
.appr{display:grid;gap:8px}

/* document preview */
.viewer{width:100%;height:75vh;min-height:420px;border:1px solid var(--rule);border-radius:6px;background:var(--surface);display:block}
.viewer iframe{width:100%;height:100%;border:0;display:block}
.viewer.img img{display:block;max-width:100%;margin:auto}
.page1{position:relative;display:block;margin-top:14px;max-width:760px;border:1px solid var(--rule);border-radius:6px;overflow:hidden;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.page1 img{display:block;width:100%;height:auto}
.page1 .btn{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);background:var(--surface);box-shadow:0 4px 14px rgba(0,0,0,.18)}
.page1:hover{border-color:var(--accent)}
.viewer.img{height:auto;min-height:0;max-height:80vh;object-fit:contain}
.viewer-note{font-size:12.5px;color:var(--muted)}
@media (max-width:640px){.viewer{height:60vh;min-height:320px}}
.brief{align-items:start}
.empty-state{margin-top:22px;padding:22px;border:1px dashed var(--rule);border-radius:8px;display:grid;gap:8px;color:var(--ink)}
.more-row{margin-top:16px;text-align:center}
.mgroup{font-size:15px;margin:18px 0 6px;display:flex;gap:8px;align-items:baseline}
.mgroup:first-child{margin-top:4px}

/* review polish (v0.2) */
@media (max-width:420px){
  .brand{font-size:15px;gap:7px}
  .brand svg{width:22px;height:22px}
  .demo-mark{font-size:9.5px;letter-spacing:.03em;padding:3px 6px}
  .bar .wrap{gap:6px}
  .theme-toggle{padding:4px 7px}
}
.choice>form{margin:0}
.choice>.btn,.choice>form>.btn{justify-self:start;display:inline-flex;align-items:center;font-size:14.5px;padding:9px 16px;line-height:1.2}
.secret{word-break:normal;overflow-wrap:normal;white-space:normal;display:flex;flex-wrap:wrap;gap:4px 10px;letter-spacing:.08em;font-size:16px}
.secret span{white-space:nowrap}
details.kd-admin>summary,details.add>summary,.card details>summary{list-style:none;display:inline-flex;align-items:center;gap:8px}
details.kd-admin>summary::-webkit-details-marker,details.add>summary::-webkit-details-marker,.card details>summary::-webkit-details-marker{display:none}
details.kd-admin>summary::before,details.add>summary::before,.card details>summary::before{content:"";width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
details.kd-admin[open]>summary::before,details.add[open]>summary::before,.card details[open]>summary::before{transform:rotate(45deg)}
.ask-form{margin-top:18px;padding-top:14px;border-top:1px solid var(--rule)}
.form label .hint{display:block;font-weight:400;margin:2px 0 4px}
.page1.no-img{padding:40px 16px 70px;text-align:center;background:var(--sunk)}

/* ---- v0.3: key dates calendar ---- */
.kd-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.chips.seg{gap:0}
.chips.seg a{border-radius:0;margin-left:-1px}
.chips.seg a:first-child{border-radius:14px 0 0 14px;margin-left:0}
.chips.seg a:last-child{border-radius:0 14px 14px 0}
.kd-filter{margin:0 0 10px}
.kd-cal{margin:0;font-size:13px}
.kd-docs .note{font-size:13px}
.kd-one{margin-top:8px}
.cal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 8px}
.cal-head h3{font:700 20px var(--f-display);margin:0}
.cal-nav{display:flex;gap:6px}
.cal-nav a[aria-current="true"]{border-color:var(--accent);color:var(--accent)}
.cal-key{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12.5px;color:var(--muted)}
.cal-key li{display:inline-flex;align-items:center;gap:6px}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--muted);flex:none}
.dot.overdue{background:var(--bad)} .dot.soon{background:var(--brass)} .dot.later{background:var(--accent)}
.dot.done{background:transparent;border:1.5px solid var(--muted);width:7px;height:7px}
.dot.meeting{background:transparent;border:1.5px dashed var(--muted);width:7px;height:7px}
table.cal{width:100%;table-layout:fixed;border-collapse:collapse;background:var(--surface);border:1px solid var(--rule);border-radius:6px}
table.cal th{padding:7px 8px;text-align:left;border-bottom:1px solid var(--rule)}
table.cal th .short{display:none}
table.cal td{vertical-align:top;height:104px;padding:5px 6px;border:1px solid var(--rule);border-width:0 1px 1px 0;overflow:hidden}
table.cal td:last-child{border-right:0}
table.cal td.out{background:var(--bg)}
table.cal td.out .dn{color:var(--muted);opacity:.6}
.dn{display:inline-grid;place-items:center;min-width:24px;height:24px;font:600 12.5px var(--f-mono);color:var(--ink);border-radius:12px}
td.today .dn{background:var(--accent);color:var(--accent-ink)}
.pills{list-style:none;margin:3px 0 0;padding:0;display:grid;gap:3px}
.pill{display:block;font-size:12px;line-height:1.3;padding:2px 6px;border-radius:4px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid transparent;color:var(--ink)}
.pill.overdue{background:var(--bad-soft);border-color:color-mix(in srgb,var(--bad) 40%,transparent);color:var(--bad);font-weight:600}
.pill.soon{background:var(--brass-soft);border-color:color-mix(in srgb,var(--brass) 40%,transparent);font-weight:600}
.pill.later{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 30%,transparent)}
.pill.done{background:transparent;border-color:var(--rule);color:var(--muted);text-decoration:line-through}
.pill.meeting{background:transparent;border:1px dashed var(--rule);color:var(--muted)}
.pill:hover{border-color:var(--accent)}
.mini-check{font:600 10px var(--f-body);padding:0 4px;border-radius:999px;background:var(--surface);border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);color:var(--accent)}
.dots{display:none}
.cal-month-list{display:none}
.cal-month-list h4{margin:16px 0 6px;font-size:15px}
.cal-month-list ol{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cal-li{display:grid;grid-template-columns:10px 54px minmax(0,1fr);gap:8px;align-items:center;padding:10px 12px;background:var(--surface);border:1px solid var(--rule);border-radius:6px;color:var(--ink);text-decoration:none}
.cal-li time{font:600 12.5px var(--f-mono);color:var(--muted)}
.cal-li .t{min-width:0;overflow-wrap:anywhere}
@media (max-width:600px){
  .hide-sm{display:none}
  table.cal th .full{display:none} table.cal th .short{display:inline}
  table.cal th{text-align:center;padding:6px 0}
  table.cal td{height:48px;padding:3px 0;text-align:center}
  .pills{display:none}
  .dots{display:flex;justify-content:center;gap:3px;margin-top:2px}
  .dots .dot{width:6px;height:6px}
  .cal-month-list{display:block}
}
.remind-form fieldset{border:0;margin:0 0 6px;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center}
.remind-form legend{font-weight:600;font-size:14px;padding:0;margin-bottom:6px;width:100%}

/* ---- v0.3: calendar QA fixes, proposed schedule ---- */
.pills li{min-width:0}
.pill{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%}
.pill .pt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto}
.pm{flex:none;display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;font:700 10.5px/1 var(--f-body);background:var(--surface);color:var(--accent);border:1.5px solid var(--accent)}
.pill.chk{border-style:dashed;border-color:var(--accent)}
.wc{flex:none;font:600 10px/1 var(--f-mono);padding:2px 4px;border-radius:3px;background:var(--sunk);color:var(--muted)}
.cal-key .pm,.cal-key .wc{margin-right:0}
.pill.meeting.chk{border-color:color-mix(in srgb,var(--accent) 60%,transparent)}
.cal-strip{margin:0 0 10px;padding:8px 10px;background:var(--surface);border:1px solid var(--rule);border-radius:6px}
.cal-strip h4{margin:0 0 6px;font-size:14px}
.cal-strip h4 small{font-weight:400;color:var(--muted)}
.cal-strip ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:4px 8px}
.cal-strip li{min-width:0}
.cal-strip .pill{font-size:13px;padding:4px 8px}
.cal-tbc{margin-top:16px}
.cal-tbc h4{margin:0 0 6px;font-size:15px}
.cal-tbc ul{margin:0;padding-left:18px;display:grid;gap:4px}
/* One colour per status, list and calendar alike */
/* The bar colour comes only from st-<state> (council.date_state), the same state and tokens as .pill/.dot:
   later = accent, soon = brass, overdue = bad, done/undated = muted. Status classes (check, soon, past) no longer colour it. */
.kd{--st:var(--muted)}
.kd.st-later{--st:var(--accent)} .kd.st-soon{--st:var(--brass)} .kd.st-overdue{--st:var(--bad)}
.kd.st-done,.kd.st-undated{--st:var(--muted)}
.kd.kd{border-left-color:var(--st)}
/* Phone dots: bigger, and shape as well as colour */
@media (max-width:600px){
  .dots{gap:4px}
  .dots .dot{width:8px;height:8px}
  .dots .dot.overdue{background:var(--surface);border:2.5px solid var(--bad);width:9px;height:9px}
  .dots .dot.done,.dots .dot.meeting{width:8px;height:8px}
  .dots .dot.meeting{border:2px dashed var(--ink);opacity:.75;width:9px;height:9px}
  .dots .dot.soon{border-radius:2px}
  .cal-strip ul{grid-template-columns:minmax(0,1fr)}
}
.cal-key .dot.overdue{background:var(--surface);border:2.5px solid var(--bad);width:9px;height:9px}
.cal-key .dot.soon{border-radius:2px}
.cal-li .dot.overdue{background:var(--surface);border:2.5px solid var(--bad);width:9px;height:9px}
.cal-li .dot.soon{border-radius:2px}
/* Account: reminder options sit beside their controls and wrap as whole units */
.card-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.card-h h3{margin:0}
.remind-form fieldset{gap:8px 20px;margin-bottom:12px}
.remind-form label.opt{display:inline-flex;flex-direction:row;align-items:center;gap:7px;white-space:nowrap;color:var(--ink);font-size:14px}
.remind-form label.opt input{margin:0;width:18px;height:18px;flex:none}
/* Meetings list: .ics link beside each row */
.mtg-row{display:flex;gap:8px;align-items:stretch}
.mtg-row .mtg{flex:1 1 auto;min-width:0}
.mtg-ics{flex:none;display:grid;place-items:center;padding:0 12px;border:1px solid var(--rule);border-radius:6px;background:var(--surface);font:600 12.5px var(--f-mono);color:var(--accent);text-decoration:none}
.mtg-ics:hover{border-color:var(--accent)}
.kind.operations{color:var(--accent);background:var(--accent-soft)}
.proposed-note{margin:6px 0 10px;padding:10px 12px;border:1px dashed var(--accent);border-radius:6px;background:var(--surface)}
.proposed-note .note{margin:0 0 6px}
/* ---- v0.3 sort + upload (library/search sort control, folder picker, new folder) ---- */
.sortform{display:flex;align-items:center;gap:6px;margin:0;min-width:0;max-width:100%}
.sortform label{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);min-width:0}
.sortform select{border:1px solid var(--rule);background:var(--bg);border-radius:5px;padding:5px 8px;color:var(--ink);max-width:100%;min-width:0;font-size:13px}
.crumbs .sortform{flex:0 1 auto}
/* Library toolbar: the path text gives way first so buttons and Sort stay on one row; if Sort must wrap it sits right. */
@media (min-width:641px){.crumbs .path{flex:1 1 12em;min-width:0}.crumbs .acts{flex-wrap:nowrap}.crumbs .acts .btn{white-space:nowrap}.crumbs .sortform{flex:none;margin-left:auto}}
.results~.sortform,.wrap.page>.sortform{margin:8px 0}
td .undated,.where .undated{display:inline-block;font-size:11px;letter-spacing:.02em;color:var(--muted);border:1px solid var(--rule);border-radius:3px;padding:0 4px;line-height:1.5}
td .added{display:block;font-size:11px;color:var(--muted);white-space:nowrap}
.folder-pick{display:grid;gap:4px;min-width:0;align-content:start}
.folder-pick>label{font-size:13.5px;color:var(--muted)}
.folder-pick select,.folder-pick .folder-filter{border:1px solid var(--rule);background:var(--bg);border-radius:5px;padding:8px 10px;color:var(--ink);width:100%;max-width:100%;min-width:0}
.folder-pick .folder-filter[hidden]{display:none}
.newfolder{font-size:13.5px}
.newfolder>summary{cursor:pointer;color:var(--accent);display:inline-block;padding:4px 0}
.newfolder-fields{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));align-items:end;margin-top:6px}
.newfolder-fields label{display:grid;gap:4px;color:var(--muted)}
.newfolder-fields input,.newfolder-fields select{border:1px solid var(--rule);background:var(--bg);border-radius:5px;padding:7px 9px;color:var(--ink);width:100%;max-width:100%}
.uploader-folder{margin:0 0 6px;font-size:14px}
@media (max-width:640px){
  .crumbs .sortform{width:100%}
  .crumbs .sortform label{flex:1 1 auto}
  .crumbs .sortform select,.sortform select{flex:1 1 auto;width:100%}
}
/* v0.3 QA: search copy hint, required marker, review no-preview line */
.copy-hint{font-size:12.5px;color:var(--muted);font-weight:400}
.req{font-size:12px;color:var(--muted);font-weight:400}
.no-preview{margin:4px 0}
.kd-about{margin:-4px 0 12px}
.kd-about>summary{cursor:pointer;color:var(--accent);font-size:13.5px;font-weight:600}
.kd-about>p{margin:6px 0 0}
.mtg-ics{white-space:nowrap;font-family:var(--f-body)}
@media (max-width:420px){.mtg-ics{padding:0 8px;font-size:12px}}

/* v0.4 Certificates and contracts. Reuses the key-date state colours (later/soon/overdue/undated); new: missing, check. */
.pill.missing{background:transparent;border-color:color-mix(in srgb,var(--bad) 55%,transparent);color:var(--bad);font-weight:600}
.pill.check{background:var(--surface);border:1px dashed color-mix(in srgb,var(--accent) 55%,transparent);color:var(--accent)}
.pill.undated{background:var(--sunk);border-color:var(--rule);color:var(--muted)}
.ci-intro{max-width:70ch}
.ci-sum{list-style:none;margin:14px 0 6px;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.ci-sum li>a,.ci-sum li{color:var(--ink);text-decoration:none}
.ci-sum li{display:grid;background:var(--sunk);border-radius:6px;padding:10px 12px;border-left:4px solid var(--st,var(--muted))}
.ci-sum li>a{display:grid}
.ci-sum b{font:700 22px/1.1 var(--f-display)}
.ci-sum span{color:var(--muted);font-size:12.5px}
.ci-sum.sm{grid-template-columns:repeat(auto-fit,minmax(78px,1fr));margin:8px 0}
.ci-sum.sm b{font-size:19px}
.st-later{--st:var(--accent)}.st-soon{--st:var(--brass)}.st-overdue{--st:var(--bad)}.st-undated{--st:var(--muted)}
.st-missing{--st:var(--bad)}.st-check{--st:var(--accent)}
.ci-group{margin-top:22px}
.ci-group>h3{font-size:17px;margin:0 0 8px}
.ci-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.ci-head,.ci-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1.5fr) minmax(0,.9fr) 118px minmax(0,.9fr);gap:14px;padding:12px 12px 12px 14px;border-bottom:1px solid var(--rule);align-items:start}
.ci-head{font:600 11.5px var(--f-mono);text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding-block:8px}
.ci-row{border-left:4px solid var(--st,var(--rule));background:var(--surface)}
.ci-row>div{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:3px;min-width:0;overflow-wrap:anywhere}
.ci-row .note{font-size:13px}
.ci-row .muted{color:var(--muted)}
.ci-row .pill{display:inline-block;justify-self:start;font-size:12.5px;padding:3px 8px;white-space:normal}
.ci-k{display:none}
.ci-acts{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13.5px;margin-top:2px}
.ci-home .panel-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.ci-home .panel-h h3{margin:0}
.ci-form .ci-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ci-docpick{border:1px solid var(--rule);border-radius:6px;padding:10px 14px 14px;display:grid;gap:8px;min-width:0}
.ci-docpick legend{font-weight:600;padding:0 4px}
.ci-find{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:10px;align-items:end}
.ci-opts{display:grid;gap:6px;max-height:340px;overflow:auto}
.ci-opts label.opt{display:flex;flex-direction:row;gap:8px;align-items:flex-start;font-size:14px;color:var(--ink);overflow-wrap:anywhere}
.ci-opts .note{white-space:nowrap}
.ci-opts label.opt input{margin-top:3px;width:16px;height:16px;flex:none}
.ci-form label.check{display:flex;flex-direction:row;gap:8px;align-items:flex-start}
.ci-form label.check input{width:18px;height:18px;flex:none;margin-top:2px}
@media (max-width:860px){.ci-sum{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){
  .ci-head{display:none}
  .ci-list{border-top:0;display:grid;gap:10px}
  .ci-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;border:1px solid var(--rule);border-left:4px solid var(--st,var(--rule));border-radius:6px}
  .ci-name{grid-column:1/-1;order:0}
  .ci-st{grid-column:2;grid-row:1;order:-1}
  .ci-name{grid-column:1;grid-row:1}
  .ci-doc,.ci-exp,.ci-who{grid-column:1/-1}
  .ci-k{display:block;font:600 11px var(--f-mono);text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
  .ci-st .ci-k{display:none}
  .ci-row>.ci-doc,.ci-row>.ci-exp,.ci-row>.ci-who{grid-template-columns:86px minmax(0,1fr);column-gap:10px;align-items:baseline}
  :is(.ci-doc,.ci-exp,.ci-who)>.ci-k{grid-column:1;grid-row:1/span 3}
  :is(.ci-doc,.ci-exp,.ci-who)>:not(.ci-k){grid-column:2}
  .ci-form .ci-pair,.ci-find{grid-template-columns:1fr}
}
@media (max-width:520px){.ci-sum{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.ci-sum li{padding:8px 6px 8px 7px;border-left-width:3px}.ci-sum b{font-size:18px}.ci-sum span{font-size:11px;line-height:1.2}}

/* v0.4 additions: page subtitles, home cover rows, decisions, admin approvals, next meeting */
.page-h .sub,.panel-h .sub{margin:2px 0 0;color:var(--muted);font-size:14px}
.ci-top{list-style:none;margin:10px 0 4px;padding:0;display:grid}
.ci-top li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--rule);min-width:0}
.ci-top li:last-child{border-bottom:0}
.ci-top a{color:var(--ink);min-width:0;overflow-wrap:anywhere;font-size:14px}
.ci-top .pill{flex:none}
.decisions .items{margin-top:6px}
.approvals-card{background:var(--sunk);box-shadow:none}
.approvals-card h3{font-size:15px;margin:0 0 4px}
.approvals-card p{margin:0;font-size:14px;color:var(--muted)}
.approvals-card b{color:var(--ink)}
.next-mtg{margin:16px 0}
.next-mtg h3{font-size:16px;margin:0 0 6px}
.next-mtg .mtg-list,.mtg-sec .mtg-list{margin:8px 0 0}
.mtg-sec{margin:0 0 16px}
.mtg-sec summary{cursor:pointer}
.mtg-sec summary h3{display:inline;font-size:16px;margin:0}

/* v0.4.6 tickets */
.tk-tabs{margin:4px 0 12px}
.tk-filters{margin-bottom:14px}
.tk-filters input[type=search]{border:1px solid var(--rule);background:var(--surface);border-radius:5px;padding:6px 8px;max-width:100%}
.tk-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tk-row{display:grid;gap:6px;background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:10px 14px;border-left:4px solid var(--accent);min-width:0}
.tk-row.tk-high{border-left-color:var(--brass)} .tk-row.tk-urgent{border-left-color:var(--bad)}
.tk-main{display:flex;gap:10px;align-items:baseline;text-decoration:none;color:var(--ink);min-width:0;overflow-wrap:anywhere}
.tk-num{font:500 12px var(--f-mono);color:var(--muted);white-space:nowrap}
.tk-title{font-weight:600}
.tk-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tk-pill{display:inline-block;font:500 11px/1 var(--f-mono);padding:4px 8px;border-radius:999px;background:var(--sunk);color:var(--ink);white-space:nowrap}
.tk-pill.st-new{background:var(--accent-soft);color:var(--accent)} .tk-pill.st-acknowledged,.tk-pill.st-in_progress{background:var(--brass-soft);color:var(--brass)}
.tk-pill.st-resolved{background:var(--good-soft);color:var(--good)} .tk-pill.pr-high,.tk-pill.tk-wait{background:var(--brass-soft);color:var(--brass)}
.tk-pill.pr-urgent{background:var(--bad-soft);color:var(--bad)}
.tk-two{align-items:end} .tk-two label{flex:1 1 140px}
.form label.tk-check{display:flex;flex-direction:row;gap:8px;align-items:flex-start;color:var(--ink)}
.form label.tk-check input{width:18px;height:18px;flex:none;margin-top:2px}
.tk-files{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.tk-file{display:grid;gap:3px;justify-items:start;text-decoration:none;border:1px solid var(--rule);border-radius:6px;padding:6px;background:var(--surface);max-width:160px;overflow-wrap:anywhere}
.tk-file img{width:140px;height:105px;object-fit:cover;border-radius:4px;display:block}
.tk-thread{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:10px}
.tk-c{background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:10px 14px;min-width:0;overflow-wrap:anywhere}
.tk-c-h{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;margin-bottom:4px}
.tk-c-h time{margin-left:auto}
.tk-staff{border-left:4px solid var(--accent)}
@media (max-width:520px){.tk-main{flex-direction:column;gap:2px}.tk-file img{width:120px;height:90px}.tk-c-h time{margin-left:0}}

/* v0.4.7 tickets: summary strip, cards, two-column ticket page, conversation */
.tk-sum{grid-template-columns:repeat(4,minmax(0,1fr));margin:6px 0 14px}
.tk-sum a[aria-current]{outline:2px solid var(--st);outline-offset:-2px;border-radius:6px}
.tk-s-open{--st:var(--accent)}.tk-s-progress{--st:var(--brass)}.tk-s-waiting{--st:var(--muted)}.tk-s-month{--st:var(--good)}
.tk-card{display:grid;gap:6px;background:var(--surface);border:1px solid var(--rule);border-radius:8px;padding:12px 14px;border-left:4px solid var(--accent);min-width:0}
.tk-card.tk-high{border-left-color:var(--brass)} .tk-card.tk-urgent{border-left-color:var(--bad)} .tk-card.tk-done{border-left-color:var(--good)}
.tk-card:hover{border-color:var(--accent)}
.tk-card-h{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;justify-content:space-between;min-width:0}
.tk-card-h .tk-main{flex:1 1 260px}
.tk-where{color:var(--muted);font-size:13.5px}
.tk-card-f{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px;color:var(--muted);align-items:center}
.tk-who{color:var(--ink);font-weight:600} .tk-who.tk-none{color:var(--muted);font-weight:400;font-style:italic}
.tk-count{display:inline-flex;gap:4px;align-items:center;font-family:var(--f-mono)}
.tk-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;align-items:start;margin-top:6px}
.tk-body{min-width:0;display:grid;gap:10px;align-content:start}
.tk-body>h3{margin-top:12px}
.tk-desc .prose{white-space:pre-wrap}
.tk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.tk-grid .tk-file{max-width:none}.tk-grid .tk-file img{width:100%;height:110px}
.tk-side{display:grid;gap:14px;position:sticky;top:76px}
.tk-details dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 14px;margin:10px 0 0;font-size:14px}
.tk-details dt{font:600 11px/1.9 var(--f-mono);text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.tk-details dd{margin:0;overflow-wrap:anywhere}
.tk-staff .form{display:grid;gap:10px;margin-top:10px}
.tk-thread .tk-c{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;background:none;border:0;padding:0}
.tk-av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--sunk);color:var(--ink);font:600 12.5px var(--f-mono)}
.tk-bubble{background:var(--surface);border:1px solid var(--rule);border-radius:4px 10px 10px 10px;padding:10px 14px;min-width:0;overflow-wrap:anywhere}
.tk-bubble .prose{white-space:pre-wrap}
.tk-team .tk-av{background:var(--accent);color:var(--accent-ink)}
.tk-team .tk-bubble{background:var(--accent-soft);border-color:var(--accent-soft)}
.tk-pill.tk-teampill{background:var(--accent);color:var(--accent-ink)}
.tk-sys{font-size:13px;color:var(--muted);padding:2px 0 2px 44px;position:relative}
.tk-sys::before{content:"";position:absolute;left:16px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:var(--rule)}
.tk-sys b{color:var(--ink);font-weight:600}
@media (max-width:860px){.tk-layout{grid-template-columns:minmax(0,1fr)}.tk-side{position:static}}
@media (max-width:520px){.tk-sum{grid-template-columns:repeat(2,minmax(0,1fr))}.tk-thread .tk-c{grid-template-columns:28px minmax(0,1fr);gap:8px}
  .tk-av{width:28px;height:28px;font-size:11px}.tk-sys{padding-left:36px}.tk-sys::before{left:10px}.tk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.4.8 redesign: system type, larger scale, 12-16px cards, 44px targets, bottom tab bar on phones */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{font:16px/1.5 var(--f-body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
h1,h2,h3{font-weight:700;letter-spacing:-.016em}
h2{font-size:26px;line-height:1.15}
h3{font-size:18px;line-height:1.25}
.page-h h2{font-size:clamp(28px,3.2vw,36px);line-height:1.08;letter-spacing:-.024em}
.page>h2,.page .narrow>h2{font-size:clamp(26px,3vw,32px);letter-spacing:-.022em}
.eyebrow{font:600 12.5px/1.3 var(--f-body);letter-spacing:.06em}
.note{font-size:14px}
.note.small,.small{font-size:13.5px}
.crumb{font-size:15px}
.crumb a{display:inline-flex;align-items:center;gap:4px;min-height:var(--tap);text-decoration:none;font-weight:600;color:var(--accent)}
.crumb a:first-of-type::before{content:"";width:8px;height:8px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:2px}
.wrap{max-width:1200px;padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
.page{padding-block:28px 64px;gap:20px;grid-template-columns:minmax(0,1fr)}
.page>*{min-width:0}
html{background:var(--bg)}
img{max-width:100%;height:auto}
dd,.mono,.wrapcell{overflow-wrap:anywhere}
span.pill{display:inline-flex;align-items:center;font:600 12.5px/1 var(--f-body);padding:5px 10px;border-radius:999px;letter-spacing:.01em}
fieldset{border:1px solid var(--rule);border-radius:var(--r-lg);padding:16px;margin:0;background:var(--surface);min-width:0}
fieldset>legend{float:left;width:100%;padding:0;margin:0 0 10px;font:700 17px/1.3 var(--f-display);letter-spacing:-.01em}
fieldset>legend+*{clear:both}
.mtg-ics{border-radius:var(--r);font:600 14px var(--f-body);min-height:var(--tap)}
.tally a,.tally li>span{border-radius:var(--r);padding:12px 14px;align-content:start;gap:2px;min-height:72px}
.tally b{font-size:24px}
::selection{background:color-mix(in srgb,var(--accent) 24%,transparent)}
:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 70%,transparent);outline-offset:2px;border-radius:6px}
a{text-underline-offset:.16em;text-decoration-thickness:1px}

/* header: translucent material, sticky, safe-area aware */
.bar{top:0;padding-top:env(safe-area-inset-top);background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid color-mix(in srgb,var(--rule) 75%,transparent)}
.bar .wrap{min-height:60px;gap:12px}
.brand{font:700 17px/1.1 var(--f-display);letter-spacing:-.02em;min-height:var(--tap)}
.brand svg{width:30px;height:30px}
.demo-mark{font:600 11px/1 var(--f-body);letter-spacing:.06em;border-radius:999px;padding:5px 10px}
.who{gap:6px;font-size:14px}
.who .me{min-height:var(--tap);align-content:center;padding:4px 12px;border-radius:var(--r-sm);transition:background-color .15s ease}
.who .me:hover{background:var(--sunk)}
.who .me small{font-size:12.5px}
.theme-toggle,.who .linkbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--rule);background:var(--surface);color:var(--ink);font:600 14px/1 var(--f-body);text-decoration:none;transition:transform .16s var(--ease-out),background-color .15s ease}
.theme-toggle[hidden]{display:none}
.theme-toggle svg{fill:none;stroke:currentColor;stroke-width:1.8}
.theme-toggle:hover,.who .linkbtn:hover{background:var(--sunk)}
.theme-toggle:active,.who .linkbtn:active{transform:scale(.96)}
.navrow{padding-bottom:10px;gap:6px}
.tabs a,.more summary{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:999px;font-size:15px;font-weight:600;color:var(--muted);transition:background-color .15s ease,color .15s ease}
.tabs a:hover,.more summary:hover{color:var(--ink);background:var(--sunk)}
.tabs a[aria-current="page"]{background:var(--ink);color:var(--bg)}
.tabs .count,.more summary .count{font:600 12px/1 var(--f-body);padding:3px 7px;border-radius:999px;margin-left:6px}
.tabs a[aria-current="page"] .count{background:var(--bg);color:var(--ink)}
.more summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);margin-left:8px}
.more .menu{border-radius:var(--r-lg);box-shadow:var(--shadow-2);padding:6px;min-width:250px;transform-origin:top right;animation:kw-pop .18s var(--ease-out)}
.more .menu a{display:flex;align-items:center;min-height:42px;padding:0 12px;border-radius:var(--r-sm)}
@keyframes kw-pop{from{opacity:0;transform:translateY(-4px) scale(.98)}}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:0 18px;border-radius:var(--r);border:1px solid var(--rule);background:var(--surface);color:var(--ink);font:600 15px/1.2 var(--f-body);text-decoration:none;box-shadow:0 1px 1px rgba(17,27,33,.04);transition:transform .16s var(--ease-out),background-color .15s ease,border-color .15s ease,box-shadow .15s ease;touch-action:manipulation}
.btn:hover{border-color:color-mix(in srgb,var(--ink) 28%,var(--rule))}
.btn:active:not(:disabled){transform:scale(.97)}
.btn.sm{min-height:36px;padding:0 14px;font-size:14px;border-radius:var(--r-sm)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);box-shadow:0 1px 2px rgba(13,107,112,.2),0 6px 16px -6px rgba(13,107,112,.45)}
.btn.primary:hover{background:color-mix(in srgb,var(--accent) 86%,#000);border-color:color-mix(in srgb,var(--accent) 86%,#000)}
.btn.danger{background:var(--bad);border-color:var(--bad);color:#fff}
.btn.brass{background:var(--brass);border-color:var(--brass);color:var(--surface)}
.btn[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
a.btn{display:inline-flex;color:var(--ink)} a.btn.primary{color:var(--accent-ink)} a.btn.danger{color:#fff}
.linkbtn{min-height:32px}

/* forms: 16px text so iOS does not zoom, 44px fields */
.form{gap:16px}
.row{gap:10px;flex-wrap:wrap;align-items:center}
.form label{gap:6px;font-size:14.5px;font-weight:600;color:var(--ink)}
.form label .hint,.form label .note{font-weight:400;color:var(--muted)}
.form input,.form select,.form textarea,.filters select,.filters input,.search,input.search,input[type="search"],input[type="text"],input[type="email"],input[type="password"],input[type="date"],input[type="time"],input[type="number"],input[type="url"],input[type="tel"],select,textarea{min-height:var(--tap);font:16px/1.35 var(--f-body);padding:10px 14px;border:1px solid var(--rule);border-radius:var(--r-sm);background:var(--surface);color:var(--ink);transition:border-color .15s ease,box-shadow .15s ease;max-width:100%}
textarea{min-height:110px;resize:vertical}
select{-webkit-appearance:none;appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2378868e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px}
select[multiple]{background-image:none;padding-right:14px}
input:focus-visible,select:focus-visible,textarea:focus-visible,.search:focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 22%,transparent)}
input::placeholder,textarea::placeholder{color:color-mix(in srgb,var(--muted) 80%,transparent)}
input[type="checkbox"],input[type="radio"]{accent-color:var(--accent);width:20px;height:20px;min-height:0;padding:0;margin:0;flex:none}
input[type="file"]{min-height:var(--tap);font-size:15px;padding:6px;border:1px dashed color-mix(in srgb,var(--ink) 22%,var(--rule));border-radius:var(--r-sm);background:var(--bg);width:100%;color:var(--muted)}
input[type="file"]::file-selector-button{font:600 15px var(--f-body);min-height:36px;padding:0 14px;margin-right:12px;border-radius:9px;border:1px solid var(--rule);background:var(--surface);color:var(--ink);cursor:pointer}
.filters{gap:12px}
.filters label{gap:6px;font-size:13.5px;font-weight:600;color:var(--muted)}
.form label.tk-check{align-items:center;min-height:var(--tap)}
.form label.tk-check input{width:22px;height:22px;margin:0}

/* surfaces */
.card,.qlist,.sec,.tk-card,.mtg-sec,.ci-group{border-radius:var(--r-lg)}
.card{padding:20px;box-shadow:var(--shadow-1)}
.card h3{font-size:17px}
.qlist{box-shadow:var(--shadow-1)}
.flash,.flash.err,.error{border-radius:var(--r);padding:12px 16px;font-size:15px}
.authbox{gap:20px;margin-block:48px}
.authbox .card{padding:24px;gap:16px}
.authbox h2{font-size:30px;letter-spacing:-.024em}
.footer{font-size:13px}

/* tables */
table{font-size:15px}
th,td{padding:12px 14px}
th{font:600 12px/1.2 var(--f-body);letter-spacing:.05em;background:var(--sunk)}
td.d,td.s{font-size:13.5px}
tbody tr{transition:background-color .12s ease}
tbody tr:hover{background:color-mix(in srgb,var(--sunk) 55%,transparent)}
td a.rowlink{display:flex;align-items:center;min-height:var(--tap);margin-block:-10px}

/* statuses: readable pills */
.state,.tk-pill{font:600 12.5px/1 var(--f-body);padding:5px 10px;border-radius:999px;letter-spacing:.01em}
.badge{border-radius:999px}
.chips{gap:8px}
.chips a,.chips button{display:inline-flex;align-items:center;min-height:38px;padding:0 15px;border-radius:999px;font-size:14.5px;font-weight:600;transition:background-color .15s ease,transform .16s var(--ease-out)}
.chips a:active,.chips button:active{transform:scale(.97)}
.chips .n{font:600 12px var(--f-body)}
.chips.seg a:first-child{border-radius:999px 0 0 999px} .chips.seg a:last-child{border-radius:0 999px 999px 0}

/* summary tiles (tickets, cover and certificates) */
.ci-sum{gap:10px}
.ci-sum li{background:var(--surface);border:1px solid var(--rule);border-left:4px solid var(--st,var(--muted));border-radius:var(--r);box-shadow:var(--shadow-1);padding:12px 14px}
.ci-sum b{font:700 26px/1.05 var(--f-display);letter-spacing:-.02em}
.ci-sum span{font-size:13.5px}
.tk-sum li{padding:0;overflow:hidden}
.tk-sum li>a{padding:12px 14px;min-height:72px;align-content:center;transition:background-color .15s ease}
.tk-sum li>a:hover{background:var(--sunk)}
.tk-sum a[aria-current]{outline:0;background:color-mix(in srgb,var(--st) 12%,var(--surface));box-shadow:inset 0 0 0 2px var(--st);border-radius:0 var(--r) var(--r) 0}

/* tickets */
.tk-list{display:grid;gap:12px}
.tk-card{position:relative;padding:16px 18px;gap:8px;box-shadow:var(--shadow-1);transition:box-shadow .2s ease,transform .16s var(--ease-out),border-color .15s ease}
.tk-card:hover{box-shadow:var(--shadow-2)}
.tk-card:active{transform:scale(.99)}
.tk-main{display:flex;gap:10px;align-items:baseline;min-height:var(--tap);align-content:center;text-decoration:none;color:var(--ink)}
.tk-main::after{content:"";position:absolute;inset:0;border-radius:inherit}
.tk-num{font:600 13px var(--f-mono);color:var(--muted)}
.tk-title{font-size:17px;font-weight:650;letter-spacing:-.01em}
.tk-where{font-size:14.5px}
.tk-card-f{font-size:13.5px}
.tk-bubble{border-radius:6px 18px 18px 18px;padding:12px 16px}
.tk-av{font:700 13px var(--f-body)}
.tk-details dt{font:600 12px/1.9 var(--f-body)}
.tk-details dl{font-size:15px}
.tk-side{top:calc(84px + env(safe-area-inset-top))}
a.btn.tk-jump{display:none}
.tk-file{border-radius:var(--r)}
.tk-file img{border-radius:8px}

/* library, home and meetings: larger hit areas */
.tree{font-size:15px}
.tree button,.tree a{min-height:40px;border-radius:var(--r-sm)}
.start a,.start button{min-height:var(--tap);align-items:center}
.sec{box-shadow:var(--shadow-1);transition:border-color .15s ease,box-shadow .2s ease}
.sec:hover{box-shadow:var(--shadow-2)}
.hero .copy{border-radius:var(--r-lg);box-shadow:var(--shadow-1)}
summary{cursor:pointer}

/* tab bar: phones only */
.tabbar{display:none}
@media (max-width:760px){
  :root{--tap:44px}
  body.has-tabbar{padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom))}
  .wrap{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .page{padding-block:20px 40px;gap:16px}
  h2{font-size:24px}
  .page-h h2{font-size:30px}
  .bar .wrap{min-height:52px;gap:8px;flex-wrap:wrap;padding-block:4px}
  .bar .navrow{display:none}
  .brand{font-size:16px;gap:8px;flex:1 1 auto;min-width:0}
  .brand span{overflow:hidden;text-overflow:ellipsis}
  .brand svg{width:28px;height:28px}
  .bar .spacer{display:none}
  .demo-mark{order:5;flex:1 0 100%;text-align:center;margin:0 0 4px;padding:6px 10px;border-radius:999px}
  .who{width:auto;flex:none;gap:4px;flex-wrap:nowrap}
  .who .me{display:none}
  .theme-toggle,.who .linkbtn{min-height:var(--tap);min-width:var(--tap);padding:0 12px;border-color:transparent;background:transparent}
  .theme-toggle .tt-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .theme-toggle svg{width:22px;height:22px}
  .who .linkbtn{color:var(--accent)}
  .footer{padding-bottom:24px}
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;padding:0 max(6px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px,env(safe-area-inset-left));border-top:1px solid color-mix(in srgb,var(--rule) 80%,transparent)}
  .tabbar::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}
  .tabbar>a,.tabmore>summary{flex:1 1 0;min-width:0;min-height:var(--tabbar-h);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;position:relative;color:var(--muted);text-decoration:none;font:600 11px/1.1 var(--f-body);letter-spacing:.01em;transition:color .15s ease}
  .tabmore{flex:1 1 0;min-width:0;display:flex}
  .tabmore>summary{list-style:none}
  .tabmore>summary::-webkit-details-marker{display:none}
  .tabbar svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s var(--ease-out)}
  .tabbar a:active svg,.tabmore>summary:active svg{transform:scale(.9)}
  .tabbar .tl{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tabbar a[aria-current="page"],.tabmore[open]>summary{color:var(--accent)}
  .tabbar a[aria-current="page"] svg{stroke-width:2.1}
  .tb-badge{position:absolute;top:5px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--bad);color:#fff;font:700 11px/18px var(--f-body);text-align:center}
  .tabmore[open]>summary::before{content:"";position:fixed;inset:0;z-index:-2;background:rgba(8,14,18,.32);animation:kw-fade .2s ease-out}
  .tabmore .sheet{position:fixed;left:8px;right:8px;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);max-height:min(70vh,560px);overflow:auto;overscroll-behavior:contain;display:grid;padding:8px;background:var(--surface);border:1px solid var(--rule);border-radius:20px;box-shadow:var(--shadow-2);transform-origin:bottom right;animation:kw-sheet .24s var(--ease-out)}
  .tabmore .sheet a{display:flex;align-items:center;min-height:48px;padding:0 14px;border-radius:12px;color:var(--ink);text-decoration:none;font-size:16px;font-weight:500}
  .tabmore .sheet a+a{box-shadow:0 -1px 0 color-mix(in srgb,var(--rule) 70%,transparent)}
  .tabmore .sheet a:active{background:var(--sunk)}
  .flash{margin-top:10px}

  /* 44px targets */
  .btn,.btn.sm{min-height:var(--tap)}
  .btn.sm{padding:0 14px;font-size:15px}
  .chips a,.chips button{min-height:var(--tap)}
  .form input:not([type="checkbox"]):not([type="radio"]),.form select,.filters select,.filters input:not([type="checkbox"]),select,input[type="search"],input[type="text"],input[type="email"],input[type="password"],input[type="date"],input[type="time"],input[type="number"],input[type="file"],.search{min-height:48px}
  .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
  .filters label{min-width:0}
  .filters label.tk-search{grid-column:1/-1}
  .filters .btn{width:100%}
  .linkbtn{min-height:var(--tap)}
  summary{min-height:var(--tap);display:flex;align-items:center}
  .tree button,.tree a{min-height:var(--tap)}
  td a.rowlink{margin-block:-8px}
  .crumbs .acts .btn{min-height:var(--tap)}

  .inline-form input,.inline-form select{min-height:var(--tap)}
  .panel-h a{display:inline-flex;align-items:center;justify-content:center;min-height:var(--tap);min-width:var(--tap);padding-inline:4px}
  .items li>span>a:first-child{display:inline-flex;align-items:center;min-height:var(--tap)}
  .form label.tk-check input,.remind-form label.opt input{width:24px;height:24px}
  .items li>a,.panel li>a,.kd-body h3 a,.kd-cal a,.kd-docs a,.act-main a,.result a,.to-confirm a{display:inline-flex;align-items:center;min-height:var(--tap)}
  label.opt,label.check,label.tk-check{min-height:var(--tap);align-items:center}
  input[type="checkbox"],input[type="radio"]{width:24px;height:24px}
  .mtg-row{flex-direction:column;gap:0}
  .mtg-row .mtg{border-bottom-left-radius:0;border-bottom-right-radius:0}
  .mtg-ics{justify-content:start;place-items:center start;padding:0 16px;border-top:0;border-radius:0 0 var(--r-lg) var(--r-lg)}
  .filters .btn{grid-column:1/-1}
  .filters,.tk-filters{column-gap:12px;row-gap:12px}
  .inline-form{display:grid;gap:10px;width:100%}
  label.inline-form{display:grid;gap:6px;width:100%}
  .inline-form>*,.inline-form label{min-width:0;max-width:100%}
  .inline-form label{display:grid;gap:6px}
  .inline-form select{width:100%}
  label.inline-form input,label.inline-form select,.inline-form label input{width:100%}
  .card table:not(.qlist table),.card>table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .tally li:last-child:nth-child(odd){grid-column:1/-1}
  /* sticky primary actions */
  .sticky-act{position:sticky;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom));z-index:5;margin:4px -20px -20px;padding:12px 20px calc(12px);background:linear-gradient(to bottom,color-mix(in srgb,var(--surface) 0%,transparent),var(--surface) 26%);border-radius:0 0 var(--r-lg) var(--r-lg)}
  .sticky-act .btn{flex:1 1 auto;min-height:50px;font-size:16px}
  .tk-raise{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);z-index:25;min-height:52px;padding:0 22px;border-radius:999px;font-size:16px;box-shadow:0 10px 26px -6px rgba(13,107,112,.55),0 2px 6px rgba(0,0,0,.12)}
  a.btn.tk-jump{display:inline-flex;position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);z-index:25;min-height:50px;padding:0 20px;border-radius:999px;box-shadow:0 10px 26px -6px rgba(13,107,112,.55),0 2px 6px rgba(0,0,0,.12)}
  .tk-reply:focus-within~.tk-jump,.tk-jump:focus{opacity:1}
  .tk-list{padding-bottom:64px}
  .tk-body{padding-bottom:24px}

  /* ticket cards */
  .tk-card{padding:14px 16px}
  .tk-card-h .tk-main{flex:1 1 100%}
  .tk-main{flex-direction:column;gap:2px;align-items:flex-start}
  .tk-sum li>a{min-height:64px;padding:10px 12px}
  .ci-sum b{font-size:24px}

  /* tables become cards */
  .qlist{background:none;border:0;box-shadow:none;overflow:visible}
  .qlist>table>thead,.qlist table.history>thead{display:none}
  .qlist>table,.qlist>table>tbody{display:block}
  .qlist>table>tbody>tr{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;background:var(--surface);border:1px solid var(--rule);border-radius:var(--r-lg);box-shadow:var(--shadow-1);padding:14px 16px;margin-bottom:10px}
  .qlist>table>tbody>tr>td{display:block;border:0;padding:0;min-width:0}
  .qlist>table>tbody>tr>td.wrapcell:first-child{flex:1 1 100%;font-size:16px}
  .qlist>table>tbody>tr>td.hide{display:none}
  .qlist>table>tbody>tr>td:last-child:not(:first-child){margin-left:auto}
  .qlist .acts{display:flex;flex-wrap:wrap;gap:8px}
  .qlist select{min-height:var(--tap)}
}
@media (max-width:400px){
  .brand{font-size:15px}
  .theme-toggle,.who .linkbtn{padding:0 8px}
}
@media (min-width:761px){
  .tk-raise{min-height:44px;padding:0 20px}
}
@keyframes kw-fade{from{opacity:0}}
@keyframes kw-sheet{from{opacity:0;transform:translateY(12px) scale(.98)}}
@media (hover:none){.tk-card:hover,.sec:hover{box-shadow:var(--shadow-1)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.btn:active,.tk-card:active,.chips a:active{transform:none}}
@media (prefers-reduced-transparency:reduce){.bar,.tabbar::before{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}}
@media (prefers-contrast:more){:root{--rule:#8a969c}.card,.tk-card,.qlist{border-color:var(--ink)}}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
.btn,button,summary,.chips a,.tabbar a,label.opt,label.check,label.tk-check,input[type="checkbox"],input[type="radio"],select{cursor:pointer}

/* ---- visual pass: Apple neutrals, one teal accent ---- */
:root{--bg:#f5f5f7;--surface:#ffffff;--sunk:#ececf0;--ink:#1d1d1f;--muted:#6e6e73;--rule:#e2e2e7;--accent-soft:#e1f0ef;
  --seg-on:#ffffff;--r-xl:22px;--shadow-1:0 1px 1px rgba(0,0,0,.03),0 2px 12px rgba(0,0,0,.05);--shadow-2:0 2px 4px rgba(0,0,0,.04),0 14px 36px rgba(0,0,0,.1);
  --glass:rgba(250,250,252,.78)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#000000;--surface:#1c1c1e;--sunk:#2c2c2e;--ink:#f5f5f7;--muted:#a1a1a6;--rule:#38383a;--accent-soft:#12383a;--seg-on:#636366;
  --shadow-1:0 0 0 1px rgba(255,255,255,.02);--shadow-2:0 14px 36px rgba(0,0,0,.6);--glass:rgba(22,22,24,.76)}}
:root[data-theme="dark"]{
  --bg:#000000;--surface:#1c1c1e;--sunk:#2c2c2e;--ink:#f5f5f7;--muted:#a1a1a6;--rule:#38383a;--accent-soft:#12383a;--seg-on:#636366;
  --shadow-1:0 0 0 1px rgba(255,255,255,.02);--shadow-2:0 14px 36px rgba(0,0,0,.6);--glass:rgba(22,22,24,.76)}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* type: large, tight titles; quiet secondary text */
.page-h{align-items:flex-end;gap:16px 24px;margin-bottom:4px}
.page-h h2,.page>h2,.page .narrow>h2{font:700 clamp(30px,3.6vw,46px)/1.06 var(--f-display);letter-spacing:-.032em}
.page-h .sub{margin-top:8px;font-size:17px;line-height:1.4;color:var(--muted);max-width:60ch}
.page-h .eyebrow,.page>.eyebrow{color:var(--accent)}
.panel-h h2,.panel-h h3{font:700 19px/1.25 var(--f-display);letter-spacing:-.015em}
.panel-h a{font-size:15px;font-weight:600;color:var(--accent);text-decoration:none}
.card h3{font:700 19px/1.25 var(--f-display);letter-spacing:-.012em}
.note{color:var(--muted)}

/* surfaces: softer, larger radius, hairline borders */
.card,.qlist,.sec,.tk-card,.mtg,.mtg-sec,.ci-group,.tally a,.tally li>span{border-radius:var(--r-lg)}
.card{border-color:transparent;box-shadow:var(--shadow-1)}
.card,.sec,.mtg,.tk-card,.qlist,.ci-sum li{border-color:color-mix(in srgb,var(--rule) 70%,transparent)}

/* home: at a glance */
.glance{list-style:none;margin:22px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.glance:not(:has(li)){display:none}
.glance a{position:relative;display:grid;align-content:start;gap:6px;min-height:150px;padding:20px 22px;background:var(--surface);border-radius:var(--r-xl);box-shadow:var(--shadow-1);color:var(--ink);text-decoration:none;
  transition:transform .16s var(--ease-out),box-shadow .2s ease}
.glance a:hover{box-shadow:var(--shadow-2)}
.glance a:active{transform:scale(.97)}
.glance a::after{content:"";position:absolute;top:30px;right:24px;width:8px;height:8px;border-top:2px solid var(--muted);border-right:2px solid var(--muted);transform:rotate(45deg);opacity:.55}
.gi{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.glance .gi{box-sizing:content-box;padding:9px;border-radius:12px;background:var(--accent-soft);color:var(--accent);margin-bottom:12px}
.glance b{font:700 40px/1 var(--f-display);letter-spacing:-.035em}
.glance b.hl{font-size:24px;line-height:1.15;letter-spacing:-.02em}
.glance span{font-size:15px;color:var(--muted);font-weight:500}
.brief{margin-top:14px}
.hero .copy{border:0}

/* tappable list rows: iOS chevrons */
.mtg,.sec,.start a,.tally a{position:relative}
.mtg{padding:16px 44px 16px 18px;box-shadow:var(--shadow-1);transition:transform .16s var(--ease-out),box-shadow .2s ease}
.mtg:active,.sec:active,.tally a:active{transform:scale(.985)}
.mtg:hover{box-shadow:var(--shadow-2)}
.mtg::after,.sec::after,.start a::after{content:"";position:absolute;right:18px;top:50%;width:7px;height:7px;margin-top:-4px;border-top:2px solid var(--muted);border-right:2px solid var(--muted);transform:rotate(45deg);opacity:.5}
.sec{padding:18px 40px 18px 20px;transition:transform .16s var(--ease-out),box-shadow .2s ease}
.sec::after{top:26px;margin-top:0}
.start a{padding-right:28px}
.start a::after{right:6px}
.start a small{color:var(--muted)}
.mtg .when{font:600 14px var(--f-body);color:var(--accent);letter-spacing:-.005em}
.tally a{transition:transform .16s var(--ease-out),background-color .15s ease}
.tally b{font:700 28px/1.05 var(--f-display);letter-spacing:-.03em}

/* ticket cards: status accent bar inside the card, quieter meta */
.tk-card{border-left-width:1px;padding-left:22px;overflow:hidden}
.tk-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--accent)}
.tk-card.tk-high::before{background:var(--brass)}
.tk-card.tk-urgent::before{background:var(--bad)}
.tk-card.tk-done::before{background:var(--good)}
.tk-card.tk-high,.tk-card.tk-urgent,.tk-card.tk-done{border-left-color:color-mix(in srgb,var(--rule) 70%,transparent)}
.tk-title{font-size:18px;font-weight:650;letter-spacing:-.015em}
.tk-bubble{box-shadow:var(--shadow-1)}

/* forms: large rounded fields, iOS segmented control */
.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.form select,.form textarea{min-height:50px;border-radius:12px;font-size:17px;padding:12px 16px;background:var(--surface)}
.form textarea{min-height:130px}
.form fieldset{border-color:color-mix(in srgb,var(--rule) 70%,transparent)}
.form fieldset.seg-field,.seg-field{border:0;background:none;padding:0;margin:0;box-shadow:none;border-radius:0;min-width:0}
.seg-field legend{float:none;width:auto;padding:0;margin:0 0 6px;font:600 14.5px/1.3 var(--f-body);color:var(--ink)}
.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;padding:3px;background:var(--sunk);border-radius:12px}
.segmented label{position:relative;display:flex;min-height:44px;margin:0;cursor:pointer}
.segmented input[type="radio"]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.segmented span{flex:1;display:flex;align-items:center;justify-content:center;padding:0 6px;border-radius:9px;font:600 15px/1.1 var(--f-body);color:var(--ink);text-align:center;
  transition:background-color .2s ease,box-shadow .2s ease,transform .16s var(--ease-out)}
.segmented input:checked+span{background:var(--seg-on);box-shadow:0 1px 3px rgba(0,0,0,.12),0 3px 8px rgba(0,0,0,.06)}
.segmented input[value="urgent"]:checked+span{color:var(--bad)}
.segmented input:focus-visible+span{outline:2px solid var(--accent);outline-offset:1px}
.segmented label:active span{transform:scale(.96)}

/* sign-in: branded backdrop */
html:has(.auth-page){background:#083f43}
body:has(.auth-page){background:radial-gradient(140% 900px at 50% 0%,#14868b 0%,#0d6b70 40%,#083f43 100%) no-repeat #083f43;min-height:100vh}
body:has(.auth-page) .demo-mark{color:#fff;border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.1)}
.auth-page .card .btn.primary{width:100%}
.auth-page>.note,.auth-page>p{color:rgba(255,255,255,.85)}
.auth-page>.note a,.auth-page>p a{color:#fff}
body:has(.auth-page) .bar{background:transparent;border-bottom-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
body:has(.auth-page) .bar,body:has(.auth-page) .bar a,body:has(.auth-page) .brand,body:has(.auth-page) .theme-toggle,body:has(.auth-page) .footer,body:has(.auth-page) .footer a{color:#fff}
body:has(.auth-page) .theme-toggle{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22)}
body:has(.auth-page) .footer{opacity:.8}
.auth-page{margin-block:32px 48px}
.auth-page .card{padding:28px;border:0;border-radius:var(--r-xl);box-shadow:0 30px 70px -20px rgba(0,0,0,.45),0 2px 8px rgba(0,0,0,.12)}
.auth-page .card .btn.primary{min-height:52px;font-size:17px;border-radius:14px}
.auth-brand{display:grid;justify-items:center;gap:8px;text-align:center;color:#fff;padding-top:8px}
.auth-brand svg{width:72px;height:72px;border-radius:18px;box-shadow:0 14px 34px -10px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.18)}
.auth-brand b{margin-top:6px;font:700 30px/1.1 var(--f-display);letter-spacing:-.03em}
.auth-brand span{font-size:16px;opacity:.82}
@media (min-width:761px){.auth-page{margin-block:64px 72px}.auth-brand b{font-size:36px}}

@media (max-width:760px){
  .page-h h2,.page>h2,.page .narrow>h2{font-size:32px}
  .page-h .sub{font-size:16px}
  .glance{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
  .glance a{min-height:136px;padding:16px;border-radius:20px}
  .glance a::after{top:24px;right:18px}
  .glance .gi{margin-bottom:8px}
  .glance b{font-size:34px}
  .glance b.hl{font-size:19px}
  .glance span{font-size:14px}
  .glance li:last-child:nth-child(odd){grid-column:1/-1}
  .glance li:last-child:nth-child(odd) a{min-height:0}
  .mtg{padding:14px 40px 14px 16px}
  .sec{padding:16px 36px 16px 18px}
  .tk-card{padding-left:20px}
  .auth-page{margin-block:20px 32px}
  .auth-page .card{padding:22px}
  .auth-brand svg{width:64px;height:64px}
}
@media (prefers-reduced-transparency:reduce){body:has(.auth-page){background:#0d6b70}}
@media (prefers-reduced-motion:reduce){.glance a:active,.mtg:active,.sec:active,.tally a:active,.segmented label:active span{transform:none}}

/* visual pass 2: list rows read as app rows, not web links */
.panel .tally li>a{display:grid;width:100%;align-content:start;gap:2px}
.tally span{font-size:14px;color:var(--muted);line-height:1.3}
.items li>a,.items li>span>a:first-child,.decisions .items a{color:var(--ink);text-decoration:none;font-weight:500}
.items li>a:hover,.items li>span>a:first-child:hover{color:var(--accent)}
.items time{color:var(--muted);font-size:13.5px;white-space:nowrap}
.sec .meta{font-family:var(--f-body)}

/* phone: decision and audit history read as stacked rows, not a sideways table */
@media (max-width:760px){
  .card>table.history{display:block;overflow:visible;border:0}
  .card>table.history>thead{display:none}
  .card>table.history>tbody{display:block}
  .card>table.history tr{display:flex;flex-wrap:wrap;gap:2px 10px;padding:12px 0;border-bottom:1px solid var(--rule)}
  .card>table.history tr:last-child{border-bottom:0}
  .card>table.history tr:hover{background:none}
  .card>table.history td{display:block;padding:0;border:0;min-width:0;font-size:15px}
  .card>table.history td.d{flex:1 1 100%;color:var(--muted);font-size:13px}
  .card>table.history td.wrapcell{flex:1 1 100%}
  .card>table.history td.hide.wrapcell{display:block;color:var(--muted);font-size:14px}
}

/* visual pass 3: controls, type and rhythm */
/* selects keep their chevron: the field rules above set background with the shorthand */
select,.form select,.filters select,.inline-form select,.qlist select,.sortform select,.folder-pick select,.newfolder-fields select,.role select,.dlg select{-webkit-appearance:none;appearance:none;padding-right:40px;background-color:var(--surface);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2378868e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 15px center;background-size:12px 8px;text-overflow:ellipsis}
select[multiple]{background-image:none;padding-right:14px}

/* UI labels in the body face; mono stays for hashes, codes and links */
.eyebrow{font:600 12.5px/1.2 var(--f-body);letter-spacing:.04em}
.tree .sect,.ci-head,.ci-k,.tk-details dt,th{font-family:var(--f-body);letter-spacing:.03em}
.tree .n,.tree .mm,.crumbs .path,td.d,td.s,.vers,.feed time,.mi .where,.result .where,.chips .n,.tk-num,.tk-count,.cal-li time,.dn,.stat b,.tabs .count,.more summary .count,.quaytags span,.tk-av{font-family:var(--f-body);font-variant-numeric:tabular-nums}
.state,.pill,.tag,.bucket,.kind,.tk-pill,.wc,.demo-mark,.ft{font-family:var(--f-body);letter-spacing:.01em}
.state,.pill,.tag,.bucket,.tk-pill{font-size:12.5px;font-weight:600;padding:5px 9px;border-radius:999px}
.kind{font-size:11px;font-weight:700;padding:4px 8px;border-radius:999px}
.crumbs .path{font-size:15px}
.crumbs .path b{color:var(--ink)}
td.d,td.s{font-size:14px}

/* chips and states sit at their own width, never stretched by a grid */
.state,.badge,.pill,.tag,.bucket,.kind,.tk-pill{justify-self:start;align-self:center;width:fit-content}

/* one button system: 44 standard, 38 small on desktop, 48 for a form's main action */
.btn{min-height:44px;border-radius:12px;font-size:15px;font-weight:600;letter-spacing:-.005em}
.btn.sm{min-height:38px;padding:0 15px;font-size:14.5px;border-radius:10px}
.form .row .btn,.sticky-act .btn,.choice>.btn,.choice>form>.btn{min-height:48px;padding:0 22px;font-size:16px;border-radius:12px}
.form .row .btn.sm{min-height:44px;font-size:15px;padding:0 18px}
.btn{transition:transform .16s var(--ease-out),background-color .15s ease,border-color .15s ease,box-shadow .2s ease}
.row{gap:10px}
.inline-form{gap:10px}
.toolbar{gap:10px}
.toolbar .btn.primary{min-height:48px;padding:0 24px;font-size:16px}

/* filters: breathing room between selects */
.filters{gap:12px}
.filters label{min-width:0}

/* file pickers read as an upload tile */
input[type="file"]{min-height:84px;padding:18px 16px 18px 64px;border:1.5px dashed color-mix(in srgb,var(--accent) 45%,var(--rule));border-radius:16px;background-color:color-mix(in srgb,var(--accent-soft) 55%,var(--surface));background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%230d6b70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:20px center;background-size:28px 28px;font-size:15px;color:var(--muted);cursor:pointer;transition:border-color .15s ease,background-color .15s ease}
input[type="file"]:hover{border-color:var(--accent)}
input[type="file"]::file-selector-button{min-height:42px;padding:0 18px;margin-right:12px;border-radius:999px;border:0;background:var(--accent);color:var(--accent-ink);font:600 15px var(--f-body)}
.form label:has(input[type="file"]){gap:8px}

/* radio and checkbox options: full 44px rows */
label.opt,label.check{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 4px}
input[type="checkbox"],input[type="radio"]{width:22px;height:22px}
fieldset>legend+label.opt,fieldset>legend+label.check{margin-top:4px}

/* card rhythm */
.card{padding:22px}
.card>h3{margin-bottom:6px}
.card>p.note+form,.card>p.note+.form,.card>p+form{margin-top:16px}
.card>.note+.btn,.card>.note+a.btn{margin-top:12px}
.card+.card,.card+details.card,details.card+.card{margin-top:20px}
.page-h{margin-bottom:22px}

/* folded cards: summary row with a turning chevron */
details.card>summary,.mtg-sec>summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;position:relative;padding-right:28px}
details.card>summary::-webkit-details-marker,.mtg-sec>summary::-webkit-details-marker{display:none}
details.card>summary::after,.mtg-sec>summary::after{content:"";position:absolute;right:6px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s var(--ease-out)}
details.card[open]>summary::after,.mtg-sec[open]>summary::after{transform:rotate(225deg);margin-top:-2px}
details.card>summary h3,.mtg-sec summary h3{display:block;margin:0;font-size:18px;font-weight:650;letter-spacing:-.01em}
details.card.fold>summary .note{margin-left:auto}
details.card[open]>summary{margin-bottom:10px}
details.add>summary{font-weight:650;font-size:17px}

/* document hash: short form, full on request */
details.hash>summary{list-style:none;display:inline-flex;align-items:center;gap:8px;min-height:32px;cursor:pointer}
details.hash>summary::-webkit-details-marker{display:none}
details.hash>summary .note{color:var(--accent);font-weight:600}
details.hash[open]>summary .note{display:none}
details.hash .wrapcell{display:block;margin-top:4px;user-select:all;font-size:13px;color:var(--muted)}

/* meetings: the row and its calendar link are one card */
.mtg-row{gap:0;background:var(--surface);border:1px solid color-mix(in srgb,var(--rule) 70%,transparent);border-radius:var(--r-lg);box-shadow:var(--shadow-1);overflow:hidden;transition:box-shadow .2s ease}
.mtg-row:hover{box-shadow:var(--shadow-2)}
.mtg-row+.mtg-row{margin-top:10px}
.mtg-row .mtg{border:0;border-radius:0;box-shadow:none;background:none}
.mtg-row .mtg:hover{box-shadow:none}
.mtg-row .mtg-ics{border:0;border-left:1px solid var(--rule);border-radius:0;background:none;padding:0 20px;min-height:var(--tap);font:600 14.5px var(--f-body);color:var(--accent)}
.mtg-row .mtg-ics:hover{background:var(--accent-soft)}
.mtg .when{white-space:nowrap}
.mtg-list{list-style:none;padding:0}

/* sign-in: one brand mark, legible footer */
body:has(.auth-page) .bar .brand{visibility:hidden}
body:has(.auth-page) .footer{opacity:1;color:rgba(255,255,255,.78)}
body:has(.auth-page) .footer .note{color:rgba(255,255,255,.78)}
.auth-page{max-width:440px;margin-inline:auto}
.auth-page .card h2{font-size:28px;letter-spacing:-.025em;margin:4px 0 6px}
.auth-page .card .form{gap:16px}
.auth-brand{margin-bottom:24px}

/* home: large-title hero over the harbour, the art showing beneath */
.hero.short{border-bottom:0;min-height:0}
.hero.short .over{background:linear-gradient(to bottom,var(--bg) 0%,var(--bg) 52%,color-mix(in srgb,var(--bg) 0%,transparent) 100%)}
.hero.short .over .wrap{padding-block:36px 150px}
.hero .copy,.hero.short .copy{background:none;border:0;box-shadow:none;padding:0;-webkit-backdrop-filter:none;backdrop-filter:none;max-width:680px}
.hero .copy h1,.hero.short .copy h1{font:800 clamp(34px,4.6vw,52px)/1.04 var(--f-display);letter-spacing:-.035em;max-width:none}
.hero.short p{font-size:18px;color:var(--muted);max-width:52ch}
.glance{margin-top:-64px;position:relative}
.panel .tally{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.panel .tally li{min-width:0;display:grid}
.panel .tally li>a,.panel .tally li>span{height:100%}
.brief{align-items:stretch}

/* tickets board: compact stats, tabs scroll sideways */
.tk-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}

/* library: empty preview reads as an empty state */
.detail:not(.open){place-content:center;justify-items:center;text-align:center;min-height:260px}
.detail:not(.open)::before{content:"";width:48px;height:48px;border-radius:14px;background:var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230d6b70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8zM14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E") no-repeat center/24px}

/* dark: danger buttons keep white text legible */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .btn.danger{background:#b3261e;border-color:#b3261e;color:#fff}}
:root[data-theme="dark"] .btn.danger{background:#b3261e;border-color:#b3261e;color:#fff}

/* the floating action never covers the last row */
@media (max-width:760px){
  body.has-tabbar:has(.tk-raise),body.has-tabbar:has(.tk-jump){padding-bottom:calc(var(--tabbar-h) + 88px + env(safe-area-inset-bottom))}
  .card{padding:20px 18px}
  .btn.sm{min-height:var(--tap);font-size:15px}
  .form .row .btn,.sticky-act .btn{min-height:50px}
  .hero.short .over .wrap{padding-block:24px 110px}
  .hero .copy h1,.hero.short .copy h1{font-size:32px}
  .hero.short p{font-size:16px}
  .glance{margin-top:-56px}
  .tk-sum{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .tk-sum li{padding:10px 8px;border-left-width:3px;min-width:0}
  .tk-sum b{font-size:22px}
  .tk-sum span{font-size:12px;line-height:1.2}
  .tk-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin-inline:-16px;padding-inline:16px;scroll-padding-inline:16px}
  .tk-tabs::-webkit-scrollbar{display:none}
  .tk-tabs a{flex:none;white-space:nowrap}
  .tk-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end}
  .tk-filters>label:nth-of-type(2){grid-column:2/-1}
  .tk-filters .tk-search{grid-column:1/3}
  .tk-filters>.btn{grid-column:3;width:auto;min-width:64px}
  .rail .tree{max-height:min(46vh,340px);overflow-y:auto;overscroll-behavior:contain;background:var(--surface);border:1px solid var(--rule);border-radius:14px;padding:4px 8px;margin-top:10px}
  .mtg-row{flex-direction:column}
  .mtg-row .mtg-ics{border-left:0;border-top:1px solid var(--rule);justify-content:start;place-items:center start;padding:0 16px}
  .detail:not(.open){display:none}
  .auth-page{max-width:none}
  .inline-form .state{justify-self:start}
}
.remind-form .segmented{max-width:320px}
.glance li{display:grid}
.glance li>a{height:100%;box-sizing:border-box}
body:has(.auth-page) .footer .demo-foot{color:#f3d58f}

/* visual pass 4 */
/* hidden really means hidden, whatever display a button class sets */
.btn[hidden],.js-hide,[hidden].btn{display:none!important}

/* one grey step darker for small text */
:root{--muted:#5f5f64}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--muted:#aeaeb2}}
:root[data-theme="dark"]{--muted:#aeaeb2}

/* spacing scale 16 / 24 / 32 */
.card+.card,.card+details.card,details.card+.card,details.card+details.card{margin-top:24px}
.brief{gap:24px}

/* neutral "off" state; quiet text actions */
.state.off{background:var(--sunk);color:var(--muted)}
.link-act{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-weight:600;color:var(--accent);text-decoration:none}
.link-act:hover{text-decoration:underline}
.btn.chip-toggle{border-radius:999px}
.btn.chip-toggle[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}

/* back links: one style everywhere */
.crumb{margin:0 0 8px}

/* demonstration mark: a slim tag, not a banner */
.demo-mark{font-size:10.5px;padding:3px 8px;border-radius:999px;width:auto}

/* meetings: date column never runs under the title */
.mtg{grid-template-columns:200px minmax(0,1fr);gap:18px}
.mtg .when{white-space:normal;line-height:1.3}
.mtg-row .mtg-ics{border-left:0;padding:0 20px 0 8px;font-weight:600}
.mtg-row .mtg-ics:hover{background:none;text-decoration:underline}
.next-mtg{background:linear-gradient(135deg,var(--accent) 0%,color-mix(in srgb,var(--accent) 70%,#000) 100%);border:0;color:#fff;padding:24px}
.next-mtg h3{color:rgba(255,255,255,.85);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.next-mtg .mtg-row{background:none;border:0;box-shadow:none}
.next-mtg .mtg{color:#fff;padding:8px 0;grid-template-columns:1fr}
.next-mtg .mtg::after{border-color:#fff;opacity:.8}
.next-mtg .mtg .when{color:#fff;font-size:15px}
.next-mtg .mtg b{font:700 26px/1.15 var(--f-display);letter-spacing:-.025em;color:#fff}
.next-mtg .mtg small,.next-mtg .note{color:rgba(255,255,255,.82)}
.next-mtg .kind{background:rgba(255,255,255,.18);color:#fff}
.next-mtg .mtg-ics{color:#fff;padding:0;justify-content:start}

/* library */
.lib-title{display:none}
.folder-jump{display:none}
.crumbs{flex-wrap:wrap;row-gap:12px}
.crumbs .path{flex:1 1 100%}
.crumbs .acts .btn,.crumbs .sortform select{min-height:38px}
.undated{background:none;padding:0;color:var(--muted);font-weight:500}
.undated+.added::before{content:" · "}
td.d .added{display:inline;color:var(--muted)}
.detail:not(.open){place-content:start center;padding-top:72px;min-height:0;align-self:start;position:sticky;top:120px}

/* document: hash on one line with a copy action, file tile behind the preview */
.hashrow{display:flex;align-items:center;gap:10px;min-width:0}
.hash-short{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:22ch;font-size:13.5px;color:var(--muted)}
.hashrow .btn.sm{min-height:32px;padding:0 12px;font-size:13.5px}
.page1{display:block;position:relative;min-height:220px;border-radius:14px;overflow:hidden;border:1px solid var(--rule);background:var(--sunk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%2378868e' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8zM14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E") no-repeat center 40%/48px;margin-top:16px}
.page1 img{display:block;width:100%;height:auto;position:relative}
.page1 .btn{border-radius:999px;min-height:44px;padding:0 20px}
details.newfolder>summary::before,.newfolder>summary::before{content:none}

/* home */
.hero.short .over .wrap{padding-block:36px 170px}
.glance{margin-top:24px}
.panel .tally li:last-child:nth-child(odd){grid-column:1/-1}
.panel .tally li>a,.panel .tally li>span{background:var(--surface);border:1px solid var(--rule)}
.panel .tally li:last-child:nth-child(odd)>a{border-left:4px solid var(--brass)}
.brief{align-items:start}
.panel-h{min-height:32px;align-items:center}

/* tickets */
.tk-card .tk-title{margin-bottom:4px}
.tk-tabs a[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.chips a{min-height:36px;display:inline-flex;align-items:center;padding:0 14px;border-radius:999px;font-size:14.5px;font-weight:600}
.chips a[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.tk-av{background:var(--accent-soft);color:var(--accent);border:0}

/* new ticket and account: comfortable form widths */
.tk-new,form.tk-new{max-width:640px}
#password .form{max-width:420px}
.acts-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}
.acts-row .inline-form{margin:0}
.segmented{width:100%}
.remind-form .segmented{max-width:none}
.remind-form .seg-field{max-width:360px}

@media (max-width:760px){
  .lib-title{display:block;font:800 32px/1.1 var(--f-display);letter-spacing:-.03em;margin:8px 0 12px}
  .lib{border:0;background:none;min-height:0}
  .rail{padding:0 0 12px;background:none;border:0}
  .rail .tree{display:none}
  .folder-jump{display:block;margin-top:10px}
  .folder-jump label{display:grid;gap:6px;font-weight:600;font-size:14.5px}
  .folder-jump select{width:100%;min-height:50px;font-size:17px;border-radius:12px}
  .crumbs .acts{display:flex;gap:8px;flex-wrap:wrap}
  .crumbs .acts .btn{width:auto;flex:1 1 auto}
  .tk-sum{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tk-sum li{padding:12px 14px}
  .tk-sum span{font-size:13.5px}
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding-inline:16px;-webkit-mask-image:linear-gradient(to right,#000 85%,transparent);mask-image:linear-gradient(to right,#000 85%,transparent)}
  .chips::-webkit-scrollbar{display:none}
  .chips a{flex:none;white-space:nowrap}
  .hero.short .over .wrap{padding-block:24px 120px}
  .glance{margin-top:16px}
  .mtg{grid-template-columns:1fr;gap:4px}
  .next-mtg .mtg b{font-size:22px}
  .card>table.history td[data-label]::before{content:attr(data-label) ": ";color:var(--muted);font-size:13px}
  .card>table.history td[data-label]{flex:1 1 100%}
  .brief>.panel[aria-labelledby="h-out"]{order:-1}
  .page-h .row{gap:6px}
  .sticky-act{border-top:1px solid var(--rule)}
}
a.btn.tk-jump{display:none!important}

/* desktop inbox: Missing, To review and Approvals behind one tab */
.tabs .inbox{position:relative;display:inline-block}
.tabs .inbox summary.on{color:var(--ink);background:var(--sunk)}
.tabs .inbox .menu{left:0;right:auto;top:100%}
.tabs .inbox .menu a{justify-content:space-between;min-height:44px;color:var(--ink);background:none}
.tabs .inbox .menu a[aria-current]{background:var(--sunk)}
.tabs .inbox .menu .count{margin-left:16px}
@media (max-width:760px){.tabs .inbox{display:none}}

/* account: one switch-row pattern for on/off settings (a submit button, so it works without JS) */
.switch-row{display:flex;align-items:center;gap:16px;justify-content:space-between}
.switch-row .sw-text{min-width:0;flex:1}
.switch-row .sw-text h3{margin:0 0 4px}
.switch-row .sw-text .note{margin:0}
.switch{flex:none;position:relative;width:51px;height:31px;border-radius:999px;border:0;padding:0;background:var(--rule);cursor:pointer;transition:background-color .2s var(--ease-out)}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2);transition:transform .2s var(--ease-out)}
.switch[aria-checked="true"]{background:#34c759}
.switch[aria-checked="true"]::after{transform:translateX(20px)}
.switch:active::after{width:31px}
.switch[aria-checked="true"]:active::after{transform:translateX(16px)}
.switch:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.switch::before{content:"";position:absolute;inset:-7px -2px}
@media (prefers-reduced-motion:reduce){.switch,.switch::after{transition:none}}

/* filing: the find box and the folder list read as one picker */
.folder-pick .folder-filter:not([hidden]){display:block;width:100%;margin:6px 0 0;border-radius:12px 12px 0 0;border-bottom-color:transparent;background-color:var(--sunk)}
.folder-pick .folder-filter:not([hidden])+select{margin-top:0;border-radius:0 0 12px 12px}

/* visual pass 5 */
/* labels and tags in sentence case, no letter-spacing */
.eyebrow,.kind,th,.ci-head,.ci-k,.tk-details dt,.tree .sect,.next-mtg h3,.demo-mark{text-transform:none;letter-spacing:0}
.eyebrow{font:600 13px/1.3 var(--f-body);color:var(--muted)}
th{font:600 13px var(--f-body)}
.tk-details dt{font:600 13px/1.9 var(--f-body)}
.next-mtg h3{font-size:15px}
.demo-mark{font:600 12px/1 var(--f-body);background:var(--brass-soft);color:var(--brass);border:0;padding:5px 10px}

/* the phone shows the footer on Account only; sign out lives on Account */
.signout-card{display:flex;justify-content:center;padding:6px}
.btn.danger-text{width:100%;border:0;background:none;color:#d70015;font-weight:600}
.btn.danger-text:hover{background:var(--sunk)}
:root[data-theme="dark"] .btn.danger-text{color:#ff6961}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .btn.danger-text{color:#ff6961}}
.who .me[aria-current]{background:var(--sunk);border-radius:999px}
body:not(.has-tabbar) .footer{text-align:center}

/* home: equal tops, only non-zero tallies, missing as the one amber alert */
.brief>.card{margin-top:0}
.brief{align-items:stretch}
.panel .tally{display:flex;flex-wrap:wrap;gap:8px}
.panel .tally li{flex:1 1 calc(50% - 4px);display:grid;min-width:0}
.panel .tally li.zero{display:none}
.panel .tally li:last-child:nth-child(odd){grid-column:auto}
.panel .tally li:last-child:nth-child(odd)>a{border-left:1px solid var(--rule)}
.panel .tally li.alert>a{background:var(--brass-soft);border-color:color-mix(in srgb,var(--brass) 40%,transparent)}
.panel .tally li.alert b{color:var(--brass)}
.approvals-card.zero{padding-block:16px}
.approvals-card.zero h3{font-size:15px;margin:0 0 2px}
.approvals-card.zero p{margin:0;font-size:14px;color:var(--muted)}
.approvals-card.zero p a{color:inherit}

/* tickets: selects fill their column; the search field carries its own icon */
.tk-filters select{width:100%;min-width:0}
.tk-filters input[type=search]{padding-left:40px;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2378868e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center/18px}
.tk-card .tk-card-h{gap:8px}
.tk-file-cap{display:block;color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.tk-file small{display:block;padding:8px 10px}

/* new ticket: centred form column, full-width priority */
.wrap:has(>form.tk-new){max-width:688px}
.seg-field{width:100%}
.seg-field .segmented{display:flex;width:100%}
.seg-field .segmented label{flex:1 1 0;min-width:0}

/* library: hide the empty preview pane; dim empty folders; one pill shape in the toolbar */
.panes:has(>.detail:not(.open)){grid-template-columns:minmax(0,1fr)}
.detail:not(.open){display:none}
.tree a.empty-f{color:var(--muted);opacity:.7}
.crumbs .acts .btn{border-radius:999px}

/* document: admin file facts fold away; the first page reads as a page */
.file-details{margin-top:12px;border-top:1px solid var(--rule);padding-top:8px}
.file-details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;min-height:44px;font-weight:600;color:var(--accent)}
.file-details>summary::-webkit-details-marker{display:none}
.file-details>summary::after{content:"";width:7px;height:7px;margin-left:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s var(--ease-out)}
.file-details[open]>summary::after{transform:translateY(1px) rotate(225deg)}
.page1{max-width:460px;aspect-ratio:1/1.414;min-height:0;background-color:#fff;background-size:64px;box-shadow:var(--shadow-1,0 1px 3px rgba(0,0,0,.08))}
.page1 img{height:100%;object-fit:cover;object-position:top}
.page1 .btn{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);background:var(--accent);color:var(--accent-ink);border:0;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.toolbar .btn:not(.primary){min-height:48px;border-radius:12px}
.filing .row .btn,.tk-staff .row .btn{width:100%;min-height:44px}

/* meetings: one chevron on the right; the next meeting as a full-width banner */
details.card>summary::before{content:none!important}
.next-mtg .mtg-row{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.next-mtg .mtg{flex:1 1 320px}
.next-mtg .mtg-ics{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 20px!important;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;text-decoration:none}
.next-mtg .mtg-ics:hover{background:rgba(255,255,255,.28);text-decoration:none}
.kind{font:600 12.5px/1 var(--f-body)}

/* account: a narrower column on desktop, aligned checkbox rows */
.page.narrow{max-width:680px}
label.opt input[type="checkbox"]{margin:0;flex:none}

@media (max-width:760px){
  .footer:not(.keep){display:none}
  .who .signout{display:none}
  .card+.card,.card+details.card,details.card+.card,details.card+details.card{margin-top:16px}
  .brief{gap:16px}
  .sec .note{display:none}
  .decisions .items li:nth-child(n+4),.feed>div:nth-child(n+4){display:none}
  .tk-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .tk-filters>label:nth-of-type(2){grid-column:auto}
  .tk-filters .tk-search{grid-column:1/-1}
  .tk-filters>.btn{grid-column:1/-1}
  /* ticket: title, then details, then the conversation */
  .tk-layout{display:flex;flex-direction:column}
  .tk-body{display:contents}
  .tk-side{order:1}
  #thread,.tk-thread,.tk-reply,.tk-reopen{order:2}
  .tk-reply .sticky-act .btn{width:100%}
  .tk-reply{padding-bottom:16px}
  /* library list rows instead of a squeezed table */
  .list table,.list tbody{display:block}
  .list thead{display:none}
  .list tr.row{display:grid;grid-template-columns:minmax(0,1fr) 16px;column-gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid var(--rule);position:relative}
  .list tr.row td{display:block;border:0;padding:0}
  .list tr.row td.hide{display:none}
  .list tr.row td.d{grid-column:1;font-size:13.5px;color:var(--muted);margin-top:2px}
  .list tr.row::after{content:"";grid-column:2;grid-row:1/span 2;width:7px;height:7px;border-top:2px solid var(--muted);border-right:2px solid var(--muted);transform:rotate(45deg)}
  .next-mtg .mtg-row{flex-direction:column;align-items:stretch;gap:12px}
  .next-mtg .mtg-ics{align-self:flex-start}
  .mtg-list,.mtg-sec{margin-top:16px}
  .card>table.history td.blank{display:none}
  .page1{max-width:none}
}
@media (prefers-reduced-motion:reduce){.file-details>summary::after{transition:none}}

/* visual pass 6 */
/* nav: the current tab in the brand colour, not black */
.tabs a[aria-current="page"],.tabs .inbox summary.on{background:var(--accent-soft);color:var(--accent)}
.tabs a[aria-current="page"] .count{background:var(--accent);color:var(--accent-ink)}
.demo-foot{color:var(--muted)}

/* one chevron on the file details fold; the page preview button never wraps */
.file-details>summary::before{content:none!important}
.page1 .btn{white-space:nowrap}

/* form actions sit inside the card, no cut-out corners */
.sticky-act{position:static;margin:16px 0 0;padding:0;background:none;border:0;border-radius:0}
.tk-reply .sticky-act .btn,form.tk-new .sticky-act .btn{width:100%}

/* ticket: the title at page scale */
.tk-body>h2{font:700 clamp(28px,3vw,38px)/1.08 var(--f-display);letter-spacing:-.03em;margin:4px 0 8px}

/* home: cards keep their own height; an empty approvals card stays out of the way */
.brief{align-items:start}
.approvals-card.zero{display:none}
.hero.short .over .wrap{padding-block:32px 110px}

/* library: the title on every screen size */
.lib>.lib-title{display:block;grid-column:1/-1;font:700 clamp(30px,3.6vw,46px)/1.06 var(--f-display);letter-spacing:-.032em;margin:0;padding:24px 24px 16px;border-bottom:1px solid var(--rule)}
.crumbs .acts{margin-left:auto}
.list th{background:none;border-bottom:1px solid var(--rule)}

/* account: full-width password fields */
#password .form{max-width:none}

@media (max-width:760px){
  .lib>.lib-title{padding:8px 0 12px;border:0;font-size:32px}
  /* ticket: title, details, conversation, then managing it, the reply last */
  .tk-side{display:contents}
  .tk-details{order:1}
  #thread,.tk-thread{order:2}
  .tk-staff{order:3}
  .tk-reply,.tk-reopen{order:4}
  .tk-body>h2{font-size:28px}
  .page-h .row{width:100%}
  .page-h .row>.btn.primary{flex:1 1 auto}
  .page1 .btn{bottom:12px;padding:0 16px;font-size:15px}
  .hero.short .over .wrap{padding-block:20px 72px}
}

/* visual pass 7 */
/* the More tab lights up on the pages it holds */
.tabmore>summary.on{color:var(--accent)}
.tabmore>summary.on svg{stroke-width:2.1}

/* document without a first-page image: a compact file tile, not an empty page */
.page1.no-img{aspect-ratio:auto;max-width:none;display:flex;align-items:center;gap:16px;padding:20px;text-align:left;background:var(--surface);border:1px solid var(--rule);border-radius:var(--r-lg)}
.page1.no-img::before{content:"";flex:none;width:52px;height:64px;border-radius:8px;background:var(--brass-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23a2692a' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") no-repeat center/28px}
.page1.no-img .btn{position:static;transform:none;margin-left:auto}
.page1:not(.no-img){width:100%;max-width:560px;aspect-ratio:auto;max-height:640px}

/* library desktop: title on the page, folders and list as two rounded panels */
.lib{background:none;border:0;gap:24px;min-height:0}
.lib>.lib-title{padding:8px 0 0;border:0;background:none}
.rail{background:var(--surface);border:1px solid var(--rule);border-radius:var(--r-lg);align-self:start}
.lib>.main{background:var(--surface);border:1px solid var(--rule);border-radius:var(--r-lg);overflow:hidden;align-self:start}
.crumbs{justify-content:space-between;padding:14px 20px}
.crumbs .path{flex:1 1 auto}

/* ticket: details fill the column; avatars line up with the first line of the bubble */
.tk-details,.tk-staff{width:100%;box-sizing:border-box}
.tk-thread .tk-c{align-items:start}
.tk-thread .tk-av{margin-top:12px}
.tk-files.tk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}

/* tickets: the selected tally is one teal outline, the access link on the gutter */
.tk-sum a[aria-current]{box-shadow:none;outline:2px solid var(--accent);outline-offset:-2px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));border-radius:inherit}
.page-h .link-act{padding-left:0;margin-left:0}

/* account: reminder days on an even grid; both actions the same width */
.remind-form fieldset:not(.seg-field){display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}
.remind-form fieldset:not(.seg-field) legend{grid-column:1/-1}
.acts-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.acts-row .btn,.acts-row .inline-form{width:100%}

/* chosen files show as a strip before upload (filled in by app.js) */
.file-strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.file-strip:empty{display:none}
.file-strip span{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:4px 10px 4px 4px;border-radius:10px;background:var(--sunk);font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-strip img,.file-strip i{flex:none;width:36px;height:36px;border-radius:7px;object-fit:cover;background:var(--brass-soft)}

@media (max-width:760px){
  .lib{gap:12px}
  .lib>.main{background:none;border:0;border-radius:0;overflow:visible}
  .crumbs{padding:0 0 12px}
  .acts-row{grid-template-columns:1fr}
  .next-mtg .mtg{flex:none}
  .next-mtg{padding:20px}
  /* home: the harbour sits under the words, not behind them */
  .hero.short{display:flex;flex-direction:column}
  .hero.short .over{order:1;background:none}
  .hero.short canvas{position:static;order:2;height:96px}
  .hero.short .over .wrap{padding-block:20px 4px}
  .page1.no-img{padding:16px;gap:12px}
}

/* visual pass 8 */
/* one content edge: narrow pages keep the page's left edge and limit their own column */
.page.narrow{max-width:1200px}
.page.narrow>*{max-width:680px}
.wrap:has(>form.tk-new){max-width:1200px}
form.tk-new{max-width:680px;margin-inline:0}
.who .me[aria-current]{background:var(--accent-soft);color:var(--accent)}

/* library: a header like every other page */
.lib>.lib-head{grid-column:1/-1;padding:8px 0 0}
.lib-head .lib-title{display:block;font:700 clamp(30px,3.6vw,46px)/1.06 var(--f-display);letter-spacing:-.032em;margin:0;padding:0;border:0}
.lib-head .sub{margin-top:6px}
.tree a.empty-f{opacity:1;color:var(--muted)}

/* document: the find box and the folder list as two separate fields */
.folder-pick .folder-filter:not([hidden]){border-radius:12px;border-bottom-color:var(--rule);background-color:var(--surface);margin-bottom:8px}
.folder-pick .folder-filter:not([hidden])+select{border-radius:12px}
h1,h2,.page-h h2{text-wrap:balance}

/* ticket comments: the time stays on the name line */
.tk-c-h time{white-space:nowrap}

@media (max-width:760px){
  .chips{flex-wrap:wrap;overflow:visible;margin-inline:0;padding-inline:0;-webkit-mask-image:none;mask-image:none;row-gap:8px}
  .rail{background:none;border:0;border-radius:0;padding:0}
  .crumbs .acts{margin-left:0}
  .lib>.lib-head{padding:4px 0 4px}
  .lib-head .lib-title{font-size:32px}
  .tk-card-f>span:first-child{flex:1 1 100%}
  .tk-card-f>span:nth-child(4){margin-left:auto}
  .tk-c-h time{margin-left:auto}
  .tk-thread .tk-c{grid-template-columns:32px minmax(0,1fr)}
  .tk-reply{padding-bottom:20px;margin-bottom:8px}
  textarea{resize:none}
  .start a .where,.start .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mtg-sec .mtg-list .mtg-row{border:0;border-bottom:1px solid var(--rule);border-radius:0;box-shadow:none;background:none}
  .mtg-sec .mtg-list .mtg-row:last-child{border-bottom:0}
  .mtg-list,.mtg-sec{margin-top:12px}
  .tk-sum{margin-top:8px}
}
@media (max-width:760px){
  .start a{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding-block:10px}
  .start a small{font-size:13.5px}
}

/* visual pass 9 */
/* narrow pages sit centred on desktop, as before */
.page.narrow{max-width:680px}
.page.narrow>*{max-width:none}
.wrap:has(>form.tk-new){max-width:688px}
form.tk-new{max-width:none}

/* home: the harbour drawing under the words, never behind them; level cards */
.hero.short{display:flex;flex-direction:column}
.hero.short .over{order:1;position:relative;background:none}
.hero.short canvas{position:static;order:2;height:150px}
.hero.short .over .wrap{padding-block:32px 8px}
.brief{align-items:stretch}
.brief>.panel,.brief>.card{height:100%}

/* file pickers: the styled button only; chosen names appear in the strip */
input[type=file]{color:transparent;max-width:100%}
input[type=file]::file-selector-button{color:var(--accent-ink)}

/* ticket: Save is secondary to Post */
.tk-staff .row .btn.primary{background:var(--accent-soft);color:var(--accent);border:0}

/* meetings: the banner chevron goes; Add to calendar becomes a calendar button */
.next-mtg .mtg::after{display:none}
.mtg-list .mtg-row{display:flex;align-items:center;gap:8px}
.mtg-list .mtg-row>.mtg{flex:1 1 auto;min-width:0}
.mtg-list .mtg-ics{flex:none;width:44px;height:44px;padding:0!important;font-size:0;border-radius:12px;background:var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230f6e6a' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M12 13v5M9.5 15.5h5'/%3E%3C/svg%3E") no-repeat center/20px}

/* account: reminder days on one baseline */
.remind-form label.opt{display:flex;min-height:44px;line-height:1.2;align-items:center}

@media (max-width:760px){
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding-inline:16px;scroll-padding-inline:16px;-webkit-mask-image:linear-gradient(to right,#000 88%,transparent);mask-image:linear-gradient(to right,#000 88%,transparent)}
  .hero.short canvas{height:96px}
  .hero.short .over .wrap{padding-block:20px 4px}
  .lib>.lib-head{padding-top:16px}
  .crumbs{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
  .crumbs .path{grid-column:1/-1}
  .crumbs .acts{flex-wrap:nowrap}
  .crumbs .acts .btn{flex:0 0 auto}
  .tk-layout{margin-bottom:0;padding-bottom:0}
  .page-h+.tk-sum,.page-h~.tk-sum{margin-top:12px}
}

/* visual10: equal-height document row; whole Next meeting card is the link */
.docpage{align-items:stretch}
.docpage>.card{height:100%}
.docpage>.side{display:flex;flex-direction:column;gap:16px}
.docpage>.side>.card{margin:0}
.docpage>.side>.card:last-child{flex:1}
@media (max-width:860px){.docpage>.card{height:auto}.docpage>.side>.card:last-child{flex:none}}
.next-mtg{position:relative;cursor:pointer;transition:box-shadow 160ms ease,border-color 160ms ease}
.next-mtg .mtg-row,.next-mtg .mtg{position:static}
.next-mtg .mtg::before{content:"";position:absolute;inset:0;border-radius:inherit}
.next-mtg .mtg-ics{position:relative;z-index:1}
.next-mtg:hover{border-color:var(--accent)}
.next-mtg:has(.mtg:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.next-mtg .mtg:focus-visible{outline:none}

/* visual10 library: title row with Upload; compact count/filter/sort row; list rows with a file tile */
@media (hover:hover){tr.row:hover td{background:var(--sunk)}}
@media (hover:none){tr.row:hover td{background:none}td a.rowlink:hover{text-decoration:none}}
.lib>.lib-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.lib-upload{flex:none;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.lib-upload svg{flex:none}
.crumbs .sortform .js-hide{display:none}
@media (max-width:760px){
  .lib>.lib-head{display:block;padding:16px 0 4px}
  .lib-upload{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);z-index:25;min-height:52px;padding:0 22px;border-radius:999px;font-size:16px;box-shadow:0 10px 26px -6px rgba(13,107,112,.55),0 2px 6px rgba(0,0,0,.12)}
  body.has-tabbar:has(.lib-upload){padding-bottom:calc(var(--tabbar-h) + 88px + env(safe-area-inset-bottom))}
  .rail{gap:12px}
  .rail .folder-jump label{font-size:0;gap:0}
  .rail .folder-jump select{font-size:16px}
  .crumbs{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;padding:4px 0 8px;border:0}
  .crumbs .path{flex:1 1 auto;min-width:0;font-size:14px;color:var(--muted)}
  .crumbs .path .lp,.crumbs .path b{display:none}
  .crumbs .acts{flex:none;margin:0}
  .crumbs .acts .btn{min-height:36px;padding:0 14px;font-size:14px}
  .crumbs .sortform{flex:none;width:auto;margin:0}
  .crumbs .sortform label{flex:none;font-size:0;gap:0;display:block}
  .crumbs .sortform select,.crumbs .sortform select:focus{width:44px;min-width:44px;height:44px;min-height:44px;flex:none;padding:0;border-radius:999px;color:transparent;text-indent:-999px;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M6 3v13M2.5 12.5 6 16l3.5-3.5M14 17V4M10.5 7.5 14 4l3.5 3.5' fill='none' stroke='%230d6b70' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;-webkit-appearance:none;appearance:none}
  .list table,.list tbody{display:block}
  .list thead{display:none}
  .list tr.row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 16px;column-gap:8px;row-gap:3px;align-items:center;min-height:68px;padding:12px 0 12px 52px;border-bottom:1px solid var(--rule);background:none}
  .list tr.row td{display:block;padding:0;border:0;background:none;grid-column:1}
  .list tr.row td.hide{display:none}
  .list tr.row::after{content:"";grid-column:2;grid-row:1/span 2;width:8px;height:8px;border-right:2px solid var(--muted);border-top:2px solid var(--muted);transform:rotate(45deg);opacity:.6}
  .list .rowlink{min-height:0;display:block;color:var(--ink);text-decoration:none}
  .list .rowlink::after{content:"";position:absolute;inset:0}
  .list .rowlink .tt{display:block;width:100%}
  .list .rowlink .tt>span:last-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-weight:600;font-size:16px;line-height:1.3;background:none;text-decoration:none}
  .list .ft{position:absolute;left:0;top:14px;width:40px;height:40px;border-radius:10px;margin:0;font-size:10.5px}
  .list td.d{font-size:13px;color:var(--muted);background:none}
  .list td.d .undated{background:var(--sunk);padding:1px 6px;border-radius:6px;font-size:12px}
}

/* visual10 document: file block first, then an inset grouped details list; one actions row */
.doc-file{margin-top:16px;display:flex;flex-direction:column;gap:12px}
.doc-file .viewer-note{margin:0}
.doc-file:has(.page1.no-img) .viewer-note{display:none}
.page1 .pf-meta{display:none}
.page1.no-img{border:0;padding:0;background:none;border-radius:0;gap:14px}
.page1.no-img .pf-meta{display:flex;flex-direction:column;gap:2px;min-width:0;color:var(--ink);text-decoration:none}
.page1.no-img .pf-meta b{font-weight:600;font-size:16px}
.page1.no-img .pf-meta small{color:var(--muted);font-size:13px}
.page1.no-img>.btn{display:none}
.doc-file:has(.page1.no-img){padding:16px;border:1px solid var(--rule);border-radius:var(--r-lg);background:var(--surface-2,var(--bg))}
.doc-file:not(:has(.page1.no-img)) .doc-open{display:none}
.doc-file:not(:has(.page1)) .doc-open{display:inline-flex}
.doc-acts{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.doc-acts:not(:has(a)){display:none}
.doc-info{margin-top:20px;border:1px solid var(--rule);border-radius:var(--r-lg);overflow:hidden;background:var(--surface)}
.doc-info>.kv{display:block;margin:0;font-size:15px}
.doc-info .kv dt{float:left;clear:left;padding:12px 0 12px 16px;color:var(--muted);font-weight:500}
.doc-info .kv dd{padding:12px 16px 12px 104px;text-align:right;border-bottom:1px solid var(--rule);overflow-wrap:anywhere}
.doc-info>.kv>dd:last-of-type{border-bottom:0}
.doc-info .file-details{margin:0;padding:0;border-top:1px solid var(--rule)}
.doc-info .file-details>summary{padding:0 16px;min-height:48px;justify-content:space-between}
.doc-info .file-details>.kv{border-top:1px solid var(--rule);font-size:14px}
.doc-info .file-details>.kv>dd:last-of-type{border-bottom:0}
.doc-info .hashrow{display:flex;justify-content:flex-end;align-items:center;gap:8px}
.card>table.history thead th{background:none;border-bottom:1px solid var(--rule);font-size:12px;font-weight:600;color:var(--muted);text-transform:none;letter-spacing:.01em}
.ask-form .row .btn.primary{width:100%;min-height:48px}
@media (min-width:761px){.ask-form .row .btn.primary{width:auto;min-width:160px}}
@media (max-width:760px){
  .doc-file:has(.page1.no-img){padding:14px}
  .doc-acts .btn{flex:1 1 0;min-height:48px}
}
.doc-file .page1.no-img{background:none;box-shadow:none;border:0;padding:0;text-decoration:none;max-width:none;width:100%}
.doc-file .page1.no-img:hover .pf-meta b{color:var(--accent)}
.card>table.history.decisions th,.card>table.history.decisions td{text-align:left}
@media (max-width:760px){.doc-acts .btn{padding:0 10px;white-space:nowrap;font-size:15px}}
.doc-file .page1{margin:0}
@media (min-width:761px){.doc-file:has(.page1.no-img){flex-direction:row;align-items:center}.doc-file:has(.page1.no-img) .page1{flex:1 1 auto;min-width:0}.doc-file:has(.page1.no-img) .doc-acts{flex:none;flex-wrap:nowrap}}
@media (max-width:760px){.doc-acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}}

/* visual10 ticket: one header block, one avatar column, grouped details, a composer that stays to hand */
.tk-head{display:grid;gap:0}
.tk-head h2{margin:6px 0 12px}
.tk-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tk-title-row .btn{flex:none;margin-top:6px}
.tk-head .tk-meta{margin:0}
.tk-head .tk-desc{margin-top:16px;padding-top:16px;border-top:1px solid var(--rule)}
.tk-head .tk-files{margin-top:14px}
.tk-thread .tk-c{grid-template-columns:36px minmax(0,1fr);column-gap:12px}
.tk-thread .tk-av{width:36px;height:36px}
.tk-sys{padding-left:48px}
.tk-sys::before{left:14px}
.tk-sys time,.tk-c-h time{white-space:nowrap}
.tk-details dl{grid-template-columns:auto minmax(0,1fr);gap:0;margin-top:8px;font-size:15px}
.tk-details dt,.tk-details dd{padding:11px 0;border-top:1px solid var(--rule);margin:0}
.tk-details dt{font:400 15px/1.45 var(--f-body);color:var(--ink);padding-right:16px}
.tk-details dd{text-align:right;color:var(--muted);line-height:1.45}
.tk-details dt:first-of-type,.tk-details dt:first-of-type+dd{border-top:0}
.tk-details dd .tk-pill{vertical-align:middle}
.tk-details dd small{display:block}
.tk-staff{border-left:1px solid var(--rule)}
.tk-staff .row .btn.primary{background:var(--accent);color:var(--accent-ink);border:0}
@media (max-width:760px){
  body.has-tabbar:has(.tk-reply){padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom))}
  .tk-thread .tk-c{grid-template-columns:32px minmax(0,1fr);column-gap:10px}
  .tk-thread .tk-av{width:32px;height:32px}
  .tk-sys{padding-left:42px}
  .tk-sys::before{left:12px}
  .tk-head h2{font-size:26px}
  /* the composer: paperclip, text, Post, pinned above the tab bar */
  .tk-reply{position:sticky;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);z-index:20;display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"clip text send" "strip strip strip";align-items:end;gap:0 8px;padding:8px;margin:12px 0 8px;border-radius:24px;box-shadow:0 10px 30px -10px rgba(0,0,0,.28),0 1px 3px rgba(0,0,0,.08)}
  .tk-reply>label:first-of-type{grid-area:text;font-size:0;gap:0}
  .tk-reply textarea{min-height:44px;height:44px;max-height:160px;padding:10px 14px;border-radius:22px;font-size:16px;line-height:1.4;field-sizing:content}
  .tk-reply>label:nth-of-type(2){grid-area:clip;position:relative;width:44px;height:44px;font-size:0;border-radius:50%;cursor:pointer;background:var(--sunk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230d6b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 11.1l-9.2 9.2a6 6 0 01-8.5-8.5l9.2-9.2a4 4 0 015.7 5.7l-9.2 9.2a2 2 0 01-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center/20px no-repeat}
  .tk-reply>label:nth-of-type(2):focus-within{outline:2px solid var(--accent);outline-offset:2px}
  .tk-reply input[type="file"]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
  .tk-reply .hint{display:none}
  .tk-reply .file-strip{grid-area:strip;margin:8px 0 0}
  .tk-reply .sticky-act{grid-area:send;margin:0}
  .tk-reply .sticky-act .btn,.tk-reply .sticky-act .btn.primary{width:auto;min-height:44px;height:44px;padding:0 18px;border-radius:22px;font-size:16px}
}
.tk-side{gap:16px}
@media (max-width:760px){
  form.tk-reply{max-width:none;width:100%;box-sizing:border-box}
  .tk-reply>label .hint{display:none!important}
}

/* visual10 account: iOS-style grouped lists, centred at 680px */
.acct{max-width:680px;margin-inline:auto;display:block}
.acct>*{max-width:none}
.acct .page-h{margin-bottom:8px}
.acct .grp-h{margin:28px 0 8px 18px;font:600 13px/1.3 var(--f-body);color:var(--muted);text-transform:none;letter-spacing:.01em}
.acct>.card,.acct .grp{margin-top:0}
.acct>.card+.card,.acct>.card+.grp,.acct>.grp+.card{margin-top:16px}
.acct .grp{border:1px solid var(--rule);border-radius:var(--r-lg);background:var(--surface);overflow:hidden;box-shadow:var(--shadow-1)}
.acct .grp>.card{margin:0;border:0;border-radius:0;box-shadow:none;background:none}
.acct .grp>.card+.card{border-top:1px solid var(--rule);margin-top:0}
.acct .grp>.card:not(.switch-row):not(#reminders){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:center}
.acct .grp>.card:not(.switch-row):not(#reminders)>*{grid-column:1;margin-block:0}
.acct .grp>.card:not(.switch-row):not(#reminders)>h3{margin-bottom:4px}
.acct .grp>.card:not(.switch-row):not(#reminders)>.note+.note{margin-top:4px}
.acct .grp>.card:not(.switch-row):not(#reminders)>.btn,.acct .grp>.card:not(.switch-row):not(#reminders)>.inline-form{grid-column:2;grid-row:1/span 3;align-self:center;margin:0}
.acct .grp .card>.btn.sm,.acct .grp .card>.inline-form .btn.sm{min-height:44px;padding:0 26px 0 14px;border:0;background:none;box-shadow:none;color:var(--accent);font-weight:600;position:relative;white-space:nowrap}
.acct .grp .card>.btn.sm::after,.acct .grp .card>.inline-form .btn.sm::after{content:"";position:absolute;right:8px;top:50%;width:7px;height:7px;margin-top:-4px;border:solid currentColor;border-width:2px 2px 0 0;transform:rotate(45deg)}
.acct .grp .card>.btn.sm:hover,.acct .grp .card>.inline-form .btn.sm:hover{background:var(--accent-soft)}
.acct .grp-h+.card,.acct .grp-h+.grp{margin-top:0}
.acct .switch-row .sw-text h3{margin:0 0 4px}
/* reminders: one aligned list of choices */
.acct .remind-form .seg-field{max-width:none;margin-bottom:16px}
.acct .remind-form fieldset:not(.seg-field){display:block;margin:0;border:1px solid var(--rule);border-radius:12px;overflow:hidden}
.acct .remind-form fieldset:not(.seg-field) legend{float:left;width:100%;padding:0;margin:0 0 8px;font:600 14.5px/1.3 var(--f-body);color:var(--ink)}
.acct .remind-form fieldset:not(.seg-field){border:0;border-radius:0}
.acct .remind-form label.opt{display:flex;align-items:center;gap:14px;min-height:48px;margin:0;padding:0 2px;border-top:1px solid var(--rule);font-size:16px;line-height:1.2;white-space:nowrap;clear:both}
.acct .remind-form legend+label.opt{border-top:0;margin-top:0}
.acct .remind-form label.opt input{width:22px;height:22px;margin:0;flex:none;accent-color:var(--accent)}
.acct .acts-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.acct .acts-row>.btn,.acct .acts-row>.inline-form{width:auto;flex:0 0 auto}
.acct .acts-row .btn{min-height:44px}
.acct #password .row .btn{min-height:48px;padding:0 24px}
.acct .signout-card{margin-top:16px}
@media (max-width:760px){
  .acct .grp-h{margin:24px 0 8px 16px}
  .acct .acts-row{display:grid;grid-template-columns:1fr}
  .acct .acts-row>.btn,.acct .acts-row>.inline-form,.acct .acts-row .btn{width:100%}
  .acct #password .row .btn{width:100%}
  .acct .grp>.card{padding:16px}
}
.acct>p.note:has(>a[href="/welcome"]){margin:16px 0 0;padding:0;border:1px solid var(--rule);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-1);overflow:hidden}
.acct>p.note>a[href="/welcome"]{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 20px;color:var(--ink);font-size:16px;font-weight:500;text-decoration:none}
.acct>p.note>a[href="/welcome"]::after{content:"";width:7px;height:7px;border:solid var(--muted);border-width:2px 2px 0 0;transform:rotate(45deg);margin-right:4px}
@media (hover:hover){.acct>p.note>a[href="/welcome"]:hover{background:var(--sunk)}}

/* visual10 tickets: the selected tally is the tile itself; tiles share one height */
.tk-sum{grid-auto-rows:1fr}
.tk-sum li,.tk-sum li:not(:first-child){padding:0}
.tk-sum li>a{display:grid;height:100%;box-sizing:border-box;padding:12px 14px}
.tk-sum a[aria-current]{outline:0;box-shadow:none;border-radius:0;background:color-mix(in srgb,var(--accent) 9%,var(--surface))}
.tk-sum li:has(>a[aria-current]){box-shadow:inset 0 0 0 2px var(--accent),var(--shadow-1)}
@media (max-width:760px){.tk-sum li{padding:0}}
.page-h:has(+.tk-sum){margin-bottom:0}
.page-h+.tk-sum,.page-h~.tk-sum{margin-top:4px}

/* visual10 meetings: calendar button beside the chevron; one 24px rhythm between sections */
.mtg-sec .mtg-list .mtg-row{position:relative;padding-right:28px}
.mtg-sec .mtg-list .mtg::after{display:none}
.mtg-sec .mtg-list .mtg-row::after{content:"";position:absolute;right:12px;top:50%;width:7px;height:7px;margin-top:-4px;border-top:2px solid var(--muted);border-right:2px solid var(--muted);transform:rotate(45deg);pointer-events:none}
.mtg-sec .mtg-list .mtg{padding-right:8px}
@media (max-width:760px){
  .mtg-sec .mtg-list .mtg-row{flex-direction:row;align-items:center;gap:8px;padding-right:22px}
  .mtg-sec .mtg-list .mtg-row::after{right:6px}
  .mtg-sec .mtg-list .mtg{padding:14px 0}
  .mtg-sec .mtg-list .mtg-ics{align-self:center;border:0}
  .page:has(.mtg-sec)>.page-h{margin-bottom:0}
  .page:has(.mtg-sec)>.card,.page:has(.mtg-sec)>details.card{margin:0}
  .page:has(.mtg-sec){row-gap:24px}
}

/* visual10 home: equal tiles, a 24px rhythm, the records as one grouped list on phone */
.glance{grid-auto-rows:1fr}
.glance>li>a,.glance>li>span{height:100%;box-sizing:border-box}
@media (max-width:760px){
  .wrap.brief{margin-top:24px;row-gap:24px}
  .brief>.panel,.brief>.panel+.panel{margin:0}
  .wrap.land{padding-top:32px;row-gap:24px}
  .land .side{row-gap:24px}
  .land .side>.card+.card{margin-top:0}
  .land .sections{gap:0;background:var(--surface);border:1px solid var(--rule);border-radius:var(--r-lg);box-shadow:var(--shadow-1);overflow:hidden}
  .land .sections>.sec{border:0;border-radius:0;box-shadow:none;background:none;margin:0}
  .land .sections>.sec+.sec{border-top:1px solid var(--rule)}
  .land .panel-h+.sections{margin-top:12px}
}
@media (max-width:760px){
  .page:has(>.docpage){row-gap:16px}
  .page:has(>.docpage)>.card,.page:has(>.docpage)>details.card{margin:0}
}
@media (max-width:760px){
  .tk-layout{gap:16px;margin-top:0}
  .tk-layout>*,.tk-layout .tk-body>*,.tk-layout .tk-side>*{margin-top:0;margin-bottom:0}
  .tk-layout #thread{margin:8px 0 -4px}
  .tk-team .tk-c-h>small.note{display:none}
  .tk-c-h{flex-wrap:nowrap}
  .tk-c-h>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
.page:has(>.docpage){row-gap:16px}
.page:has(>.docpage)>.card,.page:has(>.docpage)>details.card{margin:0}
table.history.decisions{table-layout:fixed}
table.history.decisions th:nth-child(1),table.history.decisions th:nth-child(2){width:28%}
@media (max-width:760px){.tk-reply>label:nth-of-type(2){overflow:hidden}}
.tk-sum li>a[aria-current]{box-shadow:inset 0 0 0 2px var(--accent);border-radius:inherit}

/* ---- iter11 ---- */
/* home: stat labels share one baseline; brief cards hug their content; record and side columns start level */
.glance li>a{display:flex;flex-direction:column;align-items:flex-start}
.glance li>a>b{min-height:40px;display:flex;align-items:flex-end}
.glance li>a>span{margin-top:auto}
.brief{align-items:start}
.brief>.panel,.brief>.card{height:auto}
@media (min-width:861px){.land>.side{padding-top:54px}}
@media (max-width:760px){
  .glance li>a>b{min-height:34px}
  .brief .items li{flex-direction:column;align-items:flex-start;gap:2px}
  .brief .items li>time{white-space:normal}
}
/* chips: a clear fade at the scrolling edge, and room to scroll the last chip clear of it */
@media (max-width:760px){
  .chips{padding-inline-end:48px;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent)}
}
/* tickets: one rhythm inside cards; search takes the rest of the filter row */
.tk-card{gap:6px}
.tk-card .tk-title{margin-bottom:0}
.tk-card .tk-where,.tk-card .tk-card-f{margin:0}
@media (min-width:761px){
  .tk-filters{display:flex;flex-wrap:nowrap}
  .tk-filters>label{flex:0 0 200px}
  .tk-filters>label.tk-search{flex:1 1 auto}
  .tk-filters .tk-search input{width:100%}
}
@media (max-width:760px){
  .page-h:has(.tk-raise) .row{margin-top:-6px}
  .page-h:has(.tk-raise) .link-act{min-height:32px;font-size:15px}
}
/* ticket: the team badge says who they are; one 24px rhythm in both columns; no resize grips */
.tk-team .tk-c-h>small.note{display:none}
.tk-side{gap:24px}
.tk-side>*{margin:0}
textarea{resize:none}
/* new ticket: equal field gaps; the two helper lines read as one block */
.tk-new .tk-two{row-gap:16px}
.tk-new>p.note.small{margin-top:-12px}
/* library desktop: a wider rail that stays put and scrolls on its own; readable dates */
@media (min-width:861px){
  .lib{grid-template-columns:272px minmax(0,1fr)}
  .rail{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;overscroll-behavior:contain}
  .list td.d,.list td.d .undated,.list td.d .added{font-size:14px}
  .list td.d .undated{color:var(--ink);font-weight:500}
  .list tr.row td{vertical-align:middle}
}
/* doc phone: actions stacked full width; decisions as key-value rows */
@media (max-width:760px){
  .doc-acts{grid-template-columns:1fr}
  .doc-acts .btn{width:100%}
  .card>table.history.decisions td[data-label]{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid var(--rule);font-size:15px}
  .card>table.history.decisions td[data-label]::before{content:attr(data-label);color:var(--muted);font-size:15px}
  .card>table.history.decisions td.blank{display:none}
}
h1,h2{text-wrap:balance}
/* meetings: a labelled calendar button on the next meeting; TBC on its own line */
.next-mtg .mtg-list .mtg-ics{position:relative;z-index:1;width:auto;height:auto;min-height:44px;padding:0 20px 0 46px!important;font:600 15px/1 var(--f-body);color:#fff;border-radius:999px;background:rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M12 13v5M9.5 15.5h5'/%3E%3C/svg%3E") no-repeat 18px center/20px}
.next-mtg .mtg-list .mtg-ics:hover{background-color:rgba(255,255,255,.28)}
.mtg .when .tbc{display:block}
@media (max-width:760px){
  .next-mtg .mtg-list .mtg-row{flex-direction:column;align-items:stretch}
  .next-mtg .mtg-list .mtg-ics{align-self:stretch;justify-content:center}
}
/* account: section headers line up with the text inside the cards; reminders use a switch */
.acct .card{padding-inline:20px}
.acct .grp-h{margin-left:20px}
.remind-form .sw-line{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;font-weight:600;margin:0}
.remind-form .sw-line .sw{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:51px;min-width:0;height:31px;min-height:0;margin:0;padding:0;border:0;box-shadow:none;border-radius:999px;background:var(--rule);cursor:pointer;transition:background-color .2s var(--ease-out)}
.remind-form .sw::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2);transition:transform .2s var(--ease-out)}
.remind-form .sw-line .sw:checked{background:#34c759}
.remind-form .sw:checked::after{transform:translateX(20px)}
.sw:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:760px){
  .acct .card{padding-inline:16px}
  .acct .grp-h{margin-left:16px}
  .acct .grp>.card:not(.switch-row):not(#reminders):has(>.inline-form){display:block}
  .acct .grp>.card:not(.switch-row):not(#reminders)>.inline-form{margin-top:4px}
  .acct .grp>.card:not(.switch-row):not(#reminders)>.inline-form .btn.sm{padding-left:0}
}

/* final pass: bug fixes only */
/* library desktop: the rail grows with its content, no clipped folder headings */
@media (min-width:861px){
  .rail{position:static;max-height:none;overflow:visible}
}
/* home desktop: the three cards in the middle row share one height; Outstanding's tiles fill it */
@media (min-width:961px){
  .brief{align-items:stretch}
  .brief>.panel,.brief>.card{height:auto;display:flex;flex-direction:column}
  .brief>.panel>.tally{flex:none;align-content:start;align-items:start}
}
/* chip rows on phone: a wider edge fade so the row reads as scrollable */
@media (max-width:760px){
  .chips{padding-inline-end:64px;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 88px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 88px),transparent)}
}
/* doc desktop: decisions table, headers line up with values; short columns hug their content */
@media (min-width:761px){
  .card>table.history.decisions{table-layout:auto;width:100%}
  .card>table.history.decisions th,.card>table.history.decisions td{padding:12px 24px 12px 0;text-align:left;vertical-align:top}
  .card>table.history.decisions th{font:600 13px var(--f-body);color:var(--muted);letter-spacing:0;text-transform:none}
  .card>table.history.decisions td{font-size:15px}
  .card>table.history.decisions th:nth-child(-n+2),.card>table.history.decisions td:nth-child(-n+2){width:1%;white-space:nowrap}
  .card>table.history.decisions th:last-child,.card>table.history.decisions td:last-child{padding-right:0}
}
/* account: Sign out is one surface; Make new codes reads as a left-aligned row */
.acct .signout-card{padding:0;overflow:hidden}
.acct .signout-card .btn.danger-text{min-height:52px;border-radius:0;box-shadow:none}
@media (max-width:760px){
  .acct .grp>.card:not(.switch-row):not(#reminders)>.inline-form .btn.sm{justify-content:space-between;width:100%}
}
/* switches use the brand teal */
.switch[aria-checked="true"],.remind-form .sw-line .sw:checked{background:var(--accent)}
/* ticket file picker: our own label over the real input; the native "Choose Files" button is hidden */
.file-zone{position:relative;display:block}
.file-zone input[type="file"]::file-selector-button{display:none}
.file-zone input[type="file"]::-webkit-file-upload-button{display:none}
.file-zone .file-cta{position:absolute;left:64px;top:50%;transform:translateY(-50%);pointer-events:none;font:600 16px var(--f-body);color:var(--accent)}
.file-zone input[type="file"]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:760px){
  .tk-reply .file-zone{position:static}
  .tk-reply .file-cta{display:none}
}

/* ===== v0.4.9: desktop shape. One grid, one rhythm (8px), hairlines and soft shadow, quiet motion ===== */
:root{--sp1:8px;--sp2:16px;--sp3:24px;--sp4:32px;--r-card:14px;--r-row:10px;--bar-h:121px}
.glance,.tally,.count,.tb-badge,.when,.kd,.tk-card,.mtg-row,table,time,.mono,.stat{font-variant-numeric:tabular-nums}
:where(a,button,summary,select,input,textarea,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tk-k{color:var(--muted);font-weight:400}
.next-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font:600 12px/1 var(--f-body);vertical-align:2px}
.tk-steps{list-style:none;margin:0;padding:0;display:grid;gap:16px;counter-reset:st}
.tk-steps li{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:12px;counter-increment:st}
.tk-steps li::before{content:counter(st);grid-row:span 2;width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font:600 14px/28px var(--f-body);text-align:center}
.tk-steps b{font-weight:600}
.tk-steps span{color:var(--muted);font-size:14px;line-height:1.45}
.folder-combo{display:grid;grid-template-columns:minmax(120px,2fr) minmax(0,3fr);border:1px solid var(--rule);border-radius:var(--r-sm);background:var(--surface);overflow:hidden}
.folder-combo:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.folder-pick .folder-combo>.folder-filter:not([hidden]),.folder-pick .folder-combo>.folder-filter:not([hidden])+select{margin:0;border:0;border-radius:0;background-color:transparent;box-shadow:none;min-height:44px}
.folder-pick .folder-combo>.folder-filter:not([hidden]){border-right:1px solid var(--rule);padding-left:12px}
.folder-combo>:focus-visible{outline:none}
@media (max-width:520px){.folder-combo{grid-template-columns:1fr}.folder-pick .folder-combo>.folder-filter:not([hidden]){border-right:0;border-bottom:1px solid var(--rule)}}
.acct .note b,.acct .note{text-wrap:pretty}

@media (min-width:761px){
  /* top bar: translucent material, nav aligned to the content edge, one active style */
  .bar{background:color-mix(in srgb,var(--surface) 74%,transparent);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid color-mix(in srgb,var(--rule) 80%,transparent)}
  .navrow .tabs{margin-left:-14px}
  .tabs .more summary.on,.navrow>.more>summary.on{background:var(--accent-soft);color:var(--accent)}
  .tabs a,.more summary,.btn,.chips a,.mtg-ics{transition:transform .16s var(--ease-out)}
  .tabs a:active,.more summary:active,.chips a:active,.mtg-ics:active{transform:scale(.97)}
  .more .menu{animation:kw-pop .18s var(--ease-out)}

  /* rhythm and surfaces */
  .page{gap:var(--sp3);padding-block:var(--sp4) 64px}
  .card{border-radius:var(--r-card);border:1px solid var(--rule);box-shadow:var(--shadow-1)}
  .docpage h2{letter-spacing:-.02em;line-height:1.15}
  .card h3{letter-spacing:-.01em}
  main a{text-underline-offset:3px;text-decoration-thickness:1px;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent)}
  main a:hover{text-decoration-color:currentColor}
  .kd a,.act a,.crumb a,.kd-cal a{text-decoration:none}
  .kd a:hover,.act a:hover,.crumb a:hover,.kd-cal a:hover{text-decoration:underline}

  /* list rows: one radius, a quiet status edge that the radius can't clip */
  .kd,.act{border-radius:var(--r-row);border-left-width:1px;border-left-color:var(--rule);box-shadow:inset 3px 0 0 var(--stripe,transparent),var(--shadow-1)}
  .kd.kd{border-left-color:var(--rule);--stripe:var(--st)}
  .act.decision{--stripe:var(--brass)} .act.done{--stripe:var(--good)} .act.late{--stripe:var(--bad)}
  .kd:hover,.act:hover,.tk-card:hover{border-color:color-mix(in srgb,var(--ink) 16%,var(--rule))}
  .kd.kd:hover{border-left-color:color-mix(in srgb,var(--ink) 16%,var(--rule))}

  /* creation disclosures are actions, not full-width bars */
  details.card.add:not([open]){justify-self:start;width:auto;max-width:max-content}
  details.card.add:not([open])>summary{padding-inline-end:40px}

  /* primary actions: their own width, at the end of the form */
  .sticky-act{justify-content:flex-end}
  .sticky-act .btn.primary{width:auto;min-width:160px;padding-inline:24px}

  /* meetings: the next meeting is the hero; its repeat in the list is marked, not hidden */
  .mtg-list{gap:var(--sp1)}
  .next-mtg{margin:0}
  .mtg-row.is-next>.mtg{background:color-mix(in srgb,var(--accent-soft) 45%,transparent)}

  /* library: the rail stays in view and scrolls on its own instead of running the page long */
  .rail{position:sticky;top:calc(var(--bar-h) + var(--sp2));max-height:calc(100vh - var(--bar-h) - var(--sp4));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}

  /* document: an 8/4 grid all the way down */
  .wrap.page:has(>.docpage){grid-template-columns:minmax(0,1fr) 440px;column-gap:16px}
  .wrap.page:has(>.docpage)>*{grid-column:1/-1}
  .wrap.page:has(>.docpage)>.docpage~*{grid-column:1}
  .docpage>.side{position:sticky;top:calc(var(--bar-h) + var(--sp2));align-self:start}
}

@media (min-width:961px){
  /* narrow pages share the 1200 grid's left edge; long reading columns stay 760 */
  .wrap.page.narrow{max-width:1200px}
  .wrap.page.narrow>*{max-width:760px}
  .wrap.page.narrow>.page-h{max-width:none}

  /* account: two columns of settings on desktop (the grouped phone list stays as it was) */
  .wrap.page.narrow.acct{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--sp3);row-gap:0;align-items:start}
  .wrap.page.narrow.acct>*{max-width:none;grid-column:1/-1;margin-top:0}
  .wrap.page.narrow.acct>.card:not(.signout-card),.wrap.page.narrow.acct>.grp{grid-column:auto;margin-top:0}
  .wrap.page.narrow.acct>.grp-h{margin:var(--sp4) 0 var(--sp1) 4px}
  .wrap.page.narrow.acct>.note{margin-top:var(--sp2)}
  .wrap.page.narrow.acct>.signout-card{justify-self:start;width:auto;margin-top:var(--sp3)}
  .acct .signout-card .btn.danger-text{padding-inline:32px}

  /* new ticket: form and what happens next, side by side */
  .wrap.page.narrow.tk-new-page{grid-template-columns:minmax(0,1fr) 340px;column-gap:var(--sp3);align-items:start}
  .wrap.page.narrow.tk-new-page>*{max-width:none;grid-column:1/-1}
  .wrap.page.narrow.tk-new-page>.tk-new{grid-column:1}
  .wrap.page.narrow.tk-new-page>.tk-aside{grid-column:2;position:sticky;top:calc(var(--bar-h) + var(--sp2))}

  /* one meeting: agenda and papers on the left, invitations on the right */
  .wrap.page.narrow.mtg-page{grid-template-columns:minmax(0,1fr) 380px;column-gap:var(--sp3);grid-auto-flow:row dense;align-items:start}
  .wrap.page.narrow.mtg-page>*{max-width:none;grid-column:1/-1;margin-top:0;margin-bottom:0}
  .wrap.page.narrow.mtg-page>.card{grid-column:1}
  .wrap.page.narrow.mtg-page>.card.invites{grid-column:2;grid-row:span 4;align-self:start}
  .wrap.page.narrow.mtg-page>h2{max-width:24ch}
}
@media (min-width:761px) and (max-width:960px){.tk-aside{display:none}}
@media (prefers-reduced-motion:reduce){.tabs a:active,.more summary:active,.chips a:active,.mtg-ics:active{transform:none}.more .menu{animation:none}}
@media (prefers-reduced-transparency:reduce){.bar{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}}

/* v0.4.9 round 2: rows use the width they have; empty states look intended */
@media (min-width:761px){
  .kd-body{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--sp3);align-items:start}
  .kd-body>*{grid-column:1}
  .kd-body>.kd-cal{grid-column:2;grid-row:1;justify-self:end;margin:0}
  .kd-body>details.kd-admin:not([open]){grid-column:2;grid-row:2;justify-self:end}
  .kd-body>details.kd-admin[open]{grid-column:1/-1}
  .kd-cal a{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid var(--rule);border-radius:var(--r-sm);background:var(--surface);color:var(--accent);font-weight:600;font-size:14px;white-space:nowrap;text-decoration:none}
  .kd-cal a:hover{background:var(--accent-soft);text-decoration:none}
  .act-list .act-main{display:flex;justify-content:space-between;align-items:baseline;gap:var(--sp3);width:100%}
  .act-list .act-main>p{margin:0}
  .act-list .act-main>small{flex:none;max-width:40%;text-align:right}
  .act.decision .kind{background:none;border:0;padding:0;color:var(--muted);font-weight:600}
  .page>p.empty{display:grid;place-items:center;align-content:center;gap:var(--sp1);min-height:200px;margin:0;padding:var(--sp4);border:1px dashed var(--rule);border-radius:var(--r-card);background:var(--surface);color:var(--muted);text-align:center}
  .undated{font-weight:500;border:0;background:var(--sunk);color:var(--muted)}
  .invites select{width:100%;max-width:100%;box-sizing:border-box}
  .invites .row{gap:var(--sp1)}
  .wrap.page.narrow.tk-new-page>.tk-aside{margin-top:0}
  /* account: Emails stays one grouped list; the reminder card reads left to right */
  .wrap.page.narrow.acct>.grp:last-of-type{grid-column:1/-1}
  .acct #reminders{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--sp4);align-items:start}
  .acct #reminders>*{grid-column:2}
  .acct #reminders>h3,.acct #reminders>.note:first-of-type{grid-column:1}
  .acct #reminders>h3{grid-row:1}
  .acct #reminders>.note:first-of-type{grid-row:2}
  .acct #reminders>.remind-form{grid-row:1/span 3;margin-top:0}
  .acct #reminders>.acts-row{grid-row:4}
  .acct #reminders>.note.small{grid-row:5}
}

/* v0.4.9 round 3: one-row bar, footer at the foot, add/edit forms as sheets, pages shaped by their content */
@media (max-width:760px){.sheet-open{display:none!important}}
@media (min-width:761px){
  /* the footer sits at the bottom of short pages */
  body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
  body>main{flex:1 0 auto}
  body>.footer{width:100%}

  /* add and edit forms: a header button opens them as a sheet from the right edge */
  html.sheets details.sheet:not([open]){display:none}
  html.sheets details.sheet[open]{position:fixed;z-index:60;top:12px;right:12px;bottom:12px;width:min(460px,calc(100vw - 24px));max-width:none;margin:0;
    overflow-y:auto;overscroll-behavior:contain;background:var(--surface);border:1px solid var(--rule);border-radius:18px;padding:0 24px 24px;
    box-shadow:0 0 0 100vmax rgba(8,14,18,.3),0 24px 64px -16px rgba(0,0,0,.35);animation:kw-sheet-in .3s cubic-bezier(.32,.72,0,1)}
  html.sheets details.sheet[open]>summary{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;width:auto;
    margin:0 -24px 16px;padding:18px 20px 14px 24px;background:var(--surface);border-bottom:1px solid var(--rule);font:650 19px/1.25 var(--f-display);letter-spacing:-.01em;color:var(--ink)}
  html.sheets details.sheet[open]>summary::before{content:none}
  html.sheets details.sheet[open]>summary::after{content:"";position:static;flex:none;width:32px;height:32px;margin:0;border:0;border-radius:50%;transform:none;
    background:var(--sunk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' stroke='%2366737b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat}
  html.sheets details.sheet[open]>summary:hover::after{background-color:var(--rule)}
  html.sheets details.sheet .form+.form{margin-top:20px;padding-top:20px;border-top:1px solid var(--rule)}
  body.sheet-on{overflow:hidden}
  .page-h .row,.kd-tools{display:flex;gap:var(--sp1);align-items:center;flex-wrap:wrap;justify-content:flex-end}
  .mtg-head-acts{display:flex;gap:var(--sp1);justify-content:flex-start;margin:-4px 0 var(--sp1)}

  /* meeting: papers, agenda and decisions as one grouped card; cancel is a quiet text action */
  .wrap.page.narrow.mtg-page>.mtg-main{grid-column:1;background:var(--surface);border:1px solid var(--rule);border-radius:var(--r-card);box-shadow:0 1px 2px rgba(16,24,40,.04),0 4px 14px -6px rgba(16,24,40,.08);overflow:hidden}
  .mtg-main>.card{margin:0;border:0;border-radius:0;box-shadow:none;background:none}
  .mtg-main>.card+.card{border-top:1px solid var(--rule)}
  .card.invites .mtg-cancel{width:auto;min-height:36px;padding-inline:12px;margin-top:var(--sp1);font-weight:600}
  .wrap.page.narrow.mtg-page>.mtg-head-acts{grid-column:1/-1}

  /* tickets: tabs and filters in one toolbar row */
  .tk-toolbar{display:flex;align-items:end;justify-content:space-between;gap:var(--sp2);margin:var(--sp1) 0 var(--sp2);flex-wrap:wrap}
  .tk-toolbar>.tk-tabs{margin:0;flex:none}
  .tk-toolbar>.tk-filters{margin:0;display:flex;flex-wrap:nowrap;gap:var(--sp1);align-items:end}
  .tk-toolbar>.tk-filters>label{font-size:12.5px}
  .tk-toolbar>.tk-filters select{width:150px}
  .tk-toolbar>.tk-filters .tk-search input{width:220px}

  /* key dates: grouped by month */
  .kd-timeline>.kd-month{list-style:none;margin:var(--sp3) 0 0;padding:0 0 6px 2px;border-bottom:1px solid var(--rule);font:650 13px/1.3 var(--f-body,inherit);letter-spacing:.02em;color:var(--muted)}
  .kd-timeline>.kd-month:first-child{margin-top:0}

  /* decisions: a dated list, the meeting link under each */
  .act-list>.act.decision{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:baseline;column-gap:var(--sp2)}
  .act.decision>.act-when{font-size:13px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}

  /* cover and certificates: grouped by status, category as a quiet tag */
  .ci-group>h3 .n{font:600 12px/1 inherit;color:var(--muted);background:var(--sunk);border-radius:999px;padding:3px 8px;margin-left:6px;vertical-align:2px}
  .ci-name .ci-cat{font-size:11.5px;vertical-align:1px}
  .ci-sum li>a:hover{background:var(--sunk)}
  .ci-group{scroll-margin-top:calc(var(--bar-h) + var(--sp2))}

  /* library: the list is as tall as its documents, no empty pane under a short folder */
  .lib{align-items:start}
  .lib>.main,.panes,.panes>.list{min-height:0;height:auto;align-self:start}
}
@media (min-width:1280px){
  /* one bar, one row: brand, sections, then the account */
  :root{--bar-h:57px}
  .bar{display:flex;align-items:center;gap:4px;min-height:56px;padding-inline:max(20px,calc((100% - 1160px) / 2))}
  .bar>.wrap{display:contents}
  .bar .brand{order:0;margin-right:var(--sp2)}
  .bar .navrow>.tabs{order:1;margin-left:0;min-width:0}
  .bar .navrow>.more{order:2}
  .bar .spacer{order:3;flex:1 1 0}
  .bar .demo-mark{order:4}
  .bar .who,.bar>.wrap>.theme-toggle{order:5}
}
@keyframes kw-sheet-in{from{transform:translateX(28px);opacity:0}}
@media (prefers-reduced-motion:reduce){html.sheets details.sheet[open]{animation:kw-fade .15s ease-out}}
@media (min-width:961px){
  .bar .who{flex-wrap:nowrap;align-items:center;gap:4px}
  .bar .who .signout{margin:0}
}
/* round 3 fix: the one-row bar never scrolls its sections; the bar runs a little wider than the page so the name fits */
@media (min-width:1280px){
  .bar{padding-inline:max(20px,calc((100% - 1400px) / 2))}
  .bar .who .theme-toggle{min-width:36px;padding-inline:8px}
  .bar .navrow>.tabs{flex:none;overflow:visible}
  .bar .navrow>.tabs>a,.bar .navrow>.tabs>details>summary{padding-inline:10px}
}
@media (min-width:961px){
  .bar .who .me{white-space:nowrap}
  .bar .who .me small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .bar .who .linkbtn,.bar .signout button{white-space:nowrap}
  .bar .theme-toggle .tt-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body.sheet-on .bar{z-index:0}
}

/* ===== v0.5.0: five sections, then search, inbox and your account. Meetings, key dates and decisions share one switcher ===== */
.brand .bn{display:grid;line-height:1.05;min-width:0}
.brand .bn b{font:700 17px/1.1 var(--f-display);letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis}
.brand .bn small{font:500 11.5px/1.25 var(--f-body);letter-spacing:.01em;color:var(--muted)}
.nav-end{display:flex;align-items:center;gap:2px;margin-left:auto;flex:none}
.nav-end details{position:relative}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;position:relative;width:40px;height:40px;border-radius:999px;color:var(--muted);cursor:pointer;
  transition:background-color .15s ease,color .15s ease,transform .16s var(--ease-out)}
.icon-btn svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-end .more summary.icon-btn{padding:0;min-height:40px}
.nav-end summary::after{content:none!important}
.icon-btn:hover,.icon-btn[aria-current],.nav-end details[open]>summary,.nav-end summary.on{color:var(--ink);background:var(--sunk)}
.icon-btn:active,.acct-menu>summary:active{transform:scale(.96)}
.dot-n{position:absolute;top:-1px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font:700 11px/18px var(--f-body);text-align:center;box-shadow:0 0 0 2px var(--surface)}
.acct-menu>summary{gap:8px;padding:0 12px 0 4px;color:var(--ink)}
.avatar{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font:650 12.5px/1 var(--f-body);letter-spacing:.03em}
.nav-end .menu{position:absolute;right:0;top:100%;margin-top:8px}
.nav-end .menu a .count{margin-left:auto}
.menu-h{margin:0;padding:8px 12px 4px;font:650 12px/1.3 var(--f-body);letter-spacing:.02em;color:var(--muted)}
.menu-id{display:grid;gap:2px;padding:10px 12px}
.menu-id small{color:var(--muted);font-size:12.5px}
.more .menu hr{border:0;border-top:1px solid var(--rule);margin:6px 6px}
.more .menu form{margin:0}
.more .menu form button{display:flex;align-items:center;width:100%;min-height:42px;padding:0 12px;border:0;border-radius:var(--r-sm);background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background-color .15s ease}
.more .menu form button:hover{background:var(--sunk)}
@media (min-width:761px){.who.has-menu .me,.who.has-menu .signout{display:none}}
@media (min-width:1280px){.bar .nav-end{order:6;margin-left:4px}}

.meet-tabs{display:inline-flex;gap:2px;max-width:100%;padding:3px;margin:0 0 var(--sp2);background:var(--sunk);border-radius:999px;overflow-x:auto;scrollbar-width:none}
.meet-tabs::-webkit-scrollbar{display:none}
.meet-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 18px;border-radius:999px;color:var(--muted);font:600 14px/1 var(--f-body);text-decoration:none;white-space:nowrap;
  transition:background-color .15s ease,color .15s ease,box-shadow .15s ease,transform .16s var(--ease-out)}
.meet-tabs a:hover{color:var(--ink)}
.meet-tabs a[aria-current]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(16,24,40,.08),0 2px 8px -3px rgba(16,24,40,.14)}
.meet-tabs a:active{transform:scale(.97)}
@media (max-width:760px){.meet-tabs{display:flex;margin-top:2px}.meet-tabs a{flex:1 1 0;min-height:40px;padding:0 8px;font-size:14.5px}}
@media (prefers-reduced-motion:reduce){.meet-tabs a:active,.icon-btn:active,.acct-menu>summary:active{transform:none}}

/* v0.5.0 round 2: phone sheet rows, a two-row bar that keeps every control together, a switcher that fits its segments */
@media (max-width:760px){
  .tabmore .sheet{max-height:min(78vh,640px);padding:6px 8px 10px}
  .tabmore .sheet .sheet-h{margin:0;padding:10px 14px 6px;font:700 13px/1.2 var(--f-body);letter-spacing:.02em;color:var(--muted)}
  .tabmore .sheet .sheet-h::before{content:"";display:block;width:36px;height:5px;margin:-2px auto 12px;border-radius:999px;background:var(--rule)}
  .tabmore .sheet a+a{box-shadow:none;position:relative}
  .tabmore .sheet a+a::before{content:"";position:absolute;left:14px;right:14px;top:0;border-top:1px solid color-mix(in srgb,var(--rule) 80%,transparent)}
  .tabmore .sheet a .count{margin-left:auto;font:600 12.5px/1 var(--f-body);padding:4px 8px;border-radius:999px;background:var(--sunk);color:var(--muted)}
}
@media (min-width:761px) and (max-width:1279px){
  .bar{display:flex;flex-wrap:wrap;align-items:center;column-gap:4px;padding-inline:max(20px,calc((100% - 1160px) / 2))}
  .bar>.wrap{display:contents}
  .bar .brand{order:0;min-height:60px}
  .bar .spacer{order:1;flex:1 1 0}
  .bar .demo-mark{order:2;margin-right:8px}
  .bar .who{order:3}
  .bar .nav-end{order:4;margin-left:0}
  .bar .navrow>.tabs{order:10;flex:1 0 100%;margin-left:-12px;padding-bottom:8px;overflow:visible}
}
@media (min-width:761px){
  .bar .theme-toggle{width:40px;height:40px;min-height:40px;min-width:40px;padding:0;border-color:transparent;background:transparent;color:var(--muted)}
  .bar .theme-toggle:hover{background:var(--sunk);color:var(--ink)}
  .bar .demo-mark{margin-right:8px}
  .meet-tabs{width:fit-content;justify-self:start;align-self:flex-start}
}

/* v0.5.0 round 2: List / Calendar uses the same pill switcher as Meetings, Key dates, Decisions; month headers read as headers */
.chips.seg{display:inline-flex;gap:2px;padding:3px;background:var(--sunk);border-radius:999px;width:fit-content}
.chips.seg a,.chips.seg a:first-child,.chips.seg a:last-child{margin:0;border:0;border-radius:999px;min-height:32px;padding:0 14px;display:inline-flex;align-items:center;background:transparent;color:var(--muted);box-shadow:none;transition:background-color .15s ease,color .15s ease,transform .12s var(--ease-out)}
.chips.seg a[aria-pressed="true"]{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.08),0 0 0 .5px color-mix(in srgb,var(--rule) 80%,transparent)}
.chips.seg a:active{transform:scale(.97)}
.kd-timeline>.kd-month{font:700 15px/1.3 var(--f-body,inherit);letter-spacing:0;color:var(--ink);padding-bottom:8px}
@media (max-width:760px){.chips.seg a{min-height:40px;flex:1;justify-content:center}}
@media (prefers-reduced-motion:reduce){.chips.seg a{transition:none}.chips.seg a:active{transform:none}}

/* ---- v0.6.0 privacy notice, Beta terms, acknowledgement ---- */
.legal{line-height:1.6}
.legal h3{margin:28px 0 8px;font-size:17px;letter-spacing:-.005em}
.legal ul,.legal ol{padding-left:22px}
.legal li{margin:6px 0}
.legal .terms li{margin:10px 0}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.legal-table{width:100%;border-collapse:collapse;font-size:15px}
.legal-table th,.legal-table td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--rule)}
.legal-table th{font-weight:600;color:var(--muted);font-size:13px}
.gap{background:var(--brass-soft);color:var(--brass);border-radius:4px;padding:1px 5px;font-weight:600}
.callout-bad{border-left:4px solid var(--bad);background:var(--bad-soft)}
.callout-bad h3{margin-top:0;color:var(--bad)}
.ack{display:flex;gap:12px;align-items:flex-start;min-height:var(--tap);padding:10px 0;cursor:pointer;line-height:1.45}
.ack input[type=checkbox]{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--accent);cursor:pointer}
.footer .legal-links a{color:inherit}
