/* Enigma app kit. The one stylesheet every Enigma app is built from.
   Version and file hashes: KIT.json. How to use it: README.md. Rules and reasons: the Enigma
   App Design System, and brain/decisions/app-design-system.md in the HQ repo.

   Do not edit this file inside an app. It is a copy of app-kit/kit/ in the HQ repo, and the
   app's tests fail when it differs. A new part starts in the app's own stylesheet, marked
   as proposed, and moves here when Oscar has approved it.

   One system, few parts:
   - Greys are fixed: ground, box, row. Boxes are plates: a top strip with an icon and a name.
   - Three fonts, one job each: Grafic names screens and sections, Moregressive sets numbers,
     sizes and file names, DM Sans is everything you read or press.
   - A colour is a small cut square with one meaning: cobalt waits on you, mint is approved,
     running or done, yellow is money and Claude's pointer, violet is Claude at work. At most one full band of
     colour on a screen.
   - One height for every control. Sharp corners. Buttons are filled rectangles. */

@font-face{font-family:"Grafic";src:url("fonts/Grafic.ttf") format("truetype");font-display:swap}
@font-face{font-family:"Moregressive";src:url("fonts/Moregressive.ttf") format("truetype");font-display:swap}

:root{
  --bg:#161616; --panel:#1a1a1a; --row:#212121; --side:#212121; --line:#2e2e2e;
  --g1:#2d2d2c; --g2:#3b3b39; --g3:#55534e;
  --ink:#DDDBD5; --soft:#c4c2bb; --muted:#9a9891; --off:#6f6d67; --hi:#F2F1EC; --blk:#161616;
  --cobalt:#1F2BE0; --mint:#00D68F; --yellow:#EBF91F; --violet:#7B2BFF;
  --body:'DM Sans',system-ui,sans-serif; --disp:'Grafic','DM Sans',sans-serif; --mono:'Moregressive',ui-monospace,monospace;
  --h:32px; --pad:24px; --gap:16px; --fs:13px;
  --pl-gap:12px; --pl-h:36px; --pl-pad:12px; --pl-hi:#313030; --pl-dim:0.6;
  --cut:polygon(25% 0,75% 0,100% 25%,100% 100%,25% 100%,0 75%,0 25%);
  --tr:.12s;
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink)}
body{font-family:var(--body);font-size:var(--fs);line-height:1.4;-webkit-font-smoothing:antialiased}
body::after{content:"";position:fixed;inset:0;pointer-events:none;background:url("grain.png");opacity:.05;mix-blend-mode:overlay;z-index:60}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer;color:inherit}
button:disabled{cursor:not-allowed}
p,h1,h2,h3,dl,menu{margin:0}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
[hidden]{display:none!important}
::selection{background:var(--ink);color:var(--blk)}

/* the marker: the brand's cut square, small, carrying a meaning by its colour (his card of
   2026-11-18: type and the symbol carry the brand) */
.mk,.cs{flex:none;display:inline-block;width:10px;height:10px;background:var(--g3);clip-path:var(--cut)}
.mk.cob{background:var(--cobalt)} .mk.mint{background:var(--mint)} .mk.vio,.cs.on{background:var(--violet)} .mk.yel{background:var(--yellow)} .mk.ink{background:var(--ink)}

/* ---------- frame ---------- */
.app{min-height:100vh;display:grid;grid-template-columns:216px minmax(0,1fr)}
.main{min-width:0;padding:0 var(--pad) 56px;display:flex;flex-direction:column;gap:var(--gap)}
.main.fresh>*{animation:in .18s ease-out both}
@keyframes in{from{opacity:0;transform:translateY(4px)}}
.side{background:var(--side);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:6px;padding:14px 10px 12px;position:sticky;top:0;height:100vh;overflow:auto}
.wm{padding:2px 8px 12px;display:flex;align-items:baseline;gap:8px}
/* the logo: logo.svg, the brand's one fixed file, painted in ink. Never typed. The box is the
   word above its baseline at the size Grafic 24px had, so the app's name sits on the same
   line; the tail of the g hangs below, as it did in type. Any text inside is hidden. */
.wm b{flex:none;position:relative;display:flex;align-items:flex-end;width:71.86px;height:18px;margin-bottom:6px;font-size:0}
.wm b::before{content:"";position:absolute;left:.48px;top:.86px;width:70.66px;height:23.09px;background:var(--ink);-webkit-mask:url("logo.svg") center/100% 100% no-repeat;mask:url("logo.svg") center/100% 100% no-repeat}
.wm span{color:var(--muted);font-size:12px}
.brandsw{position:relative}
.brandsw>button{width:100%;height:40px;padding:0 8px;display:flex;align-items:center;gap:10px;background:var(--bg);border:0;text-align:left;transition:background var(--tr)}
.brandsw>button:hover{background:#101010}
.sw6{flex:none;width:16px;height:16px;display:inline-block}
.brandsw .nm{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brandsw menu{position:absolute;z-index:20;left:0;right:0;top:100%;margin-top:2px;padding:4px;list-style:none;background:var(--g1);box-shadow:0 12px 32px rgba(0,0,0,.5);display:flex;flex-direction:column;gap:1px}
.brandsw menu button{width:100%;height:var(--h);padding:0 8px;display:flex;align-items:center;gap:8px;background:transparent;border:0;text-align:left}
.brandsw menu button:hover,.brandsw menu button[aria-current=true]{background:var(--g2)}
.side .new{width:100%;margin:2px 0 8px}
.nav{display:flex;flex-direction:column;gap:2px}
.nav a{height:36px;padding:0 8px;display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:center;font-size:14px;transition:background var(--tr)}
.nav a:hover{background:#34332f}
.nav a[aria-current=page]{background:var(--ink);color:var(--side)}
.nav svg{width:16px;height:16px;justify-self:center}
.nav .n{font-family:var(--mono);font-size:11px;color:var(--muted)}
.nav a[aria-current=page] .n{color:inherit}
.nav a[aria-current=page] .n.w{color:var(--ink)}
.nav .n.w{min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;background:var(--cobalt);color:var(--ink)}
.side .foot{margin-top:auto;padding:8px;display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}
.side .foot b{font-weight:400;color:var(--ink)}

/* ---------- top of a screen ---------- */
.bar{margin:0 calc(var(--pad) * -1);padding:0 var(--pad);min-height:48px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10;background:var(--bg)}
.crumb{flex:1 1 200px;min-width:0;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crumb a:hover{color:var(--ink)}
.crumb b{font-weight:400;color:var(--ink)}
.crumb i{font-style:normal;margin:0 6px;color:var(--off)}
.head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin-top:8px}
h1{font-family:var(--disp);font-weight:400;font-size:30px;line-height:1.1}
h1.dk{font-family:var(--body);font-weight:500;font-size:26px;letter-spacing:-.01em}
h2{font-family:var(--disp);font-weight:400;font-size:15px;line-height:1.2;display:flex;align-items:center;gap:8px}
h2.dk{font-family:var(--body);font-weight:400;font-size:15px}
.dk{font-family:var(--body);font-weight:400}
.mut{color:var(--muted)}
.m{font-family:var(--mono);letter-spacing:.02em}
.small{font-size:12px}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.col{display:flex;flex-direction:column;gap:12px;min-width:0}
.grow{flex:1 1 0;min-width:0}
.end{margin-left:auto}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:2px;align-items:start}
.cols>.col{gap:2px}
.cols.w2{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr)}
.cols.ed{grid-template-columns:minmax(0,1fr) 380px}
@media (max-width:1100px){.cols.w2,.cols.ed{grid-template-columns:minmax(0,1fr)}}
.note{color:var(--muted);max-width:70ch}

/* ---------- surfaces ---------- */
.pan{background:var(--panel);padding:12px;display:flex;flex-direction:column;gap:10px;min-width:0}
.list{display:flex;flex-direction:column;gap:2px}
.rw{background:var(--panel);min-height:40px;padding:6px 12px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-width:0;transition:background var(--tr)}
.pan .rw{background:var(--row)}
a.rw:hover{background:var(--row)}
.pan a.rw:hover{background:var(--g1)}
.sample{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;color:var(--off)}

/* ---------- buttons ---------- */
.b1,.b2,.bm{height:var(--h);padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;white-space:nowrap;font-weight:500;transition:background var(--tr),color var(--tr),transform var(--tr)}
.b1:active,.b2:active,.bm:active{transform:translateY(1px)}
.b1{background:var(--ink);color:var(--blk)}
.b1:hover{background:var(--hi)}
.b1:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--blk),0 0 0 2px var(--ink)}
.b2,.bm{background:var(--g1);color:var(--ink)}
.b2:hover,.bm:hover{background:var(--g2)}
.b1:disabled,.b2:disabled,.bm:disabled{background:var(--row);color:var(--off);transform:none}
.bm::before{content:"";width:10px;height:10px;background:var(--violet);clip-path:var(--cut)}
.bm:disabled::before{background:var(--off)}
.bq{height:var(--h);padding:0 4px;background:transparent;border:0;color:var(--muted);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--g3);display:inline-flex;align-items:center}
.bq:hover{color:var(--ink)}
.sm{height:26px;padding:0 8px;font-size:12px}
.in.s{font-size:13px}
.band .b2{background:rgba(22,22,22,.28);color:inherit}
.band .b2:hover{background:rgba(22,22,22,.45)}

/* ---------- tags: small mono words, a marker when the state has a colour ---------- */
.tag{height:20px;padding:0 6px;display:inline-flex;align-items:center;gap:6px;font-family:var(--mono);font-size:10.5px;letter-spacing:.05em;background:var(--row);color:var(--muted);white-space:nowrap}
.pan .tag,.rw .tag{background:var(--g1)}
.tag.i{color:var(--ink)}
.tag.mint,.tag.cob{color:var(--ink)}
.tag.mint::before,.tag.cob::before{content:"";width:8px;height:8px;clip-path:var(--cut);background:var(--mint)}
.tag.cob::before{background:var(--cobalt)}
.tag.word{font-family:var(--body);font-size:12px;letter-spacing:0;color:var(--ink);height:24px}
.tag.word button{background:transparent;border:0;padding:0 0 0 2px;color:var(--muted)}
.tag.word button:hover{color:var(--ink)}
.price{height:20px;padding:0 6px;display:inline-flex;align-items:center;font-family:var(--mono);font-size:10.5px;letter-spacing:.05em;background:var(--yellow);color:var(--blk);white-space:nowrap}

/* ---------- fields ---------- */
.fl{display:flex;flex-direction:column;gap:0;min-width:0}
.row>.fl{flex:1 1 140px}
.fl .lb{display:flex;justify-content:space-between;align-items:baseline;gap:12px;color:var(--muted);font-size:12px}
.in{width:100%;height:var(--h);padding:0;background:transparent;border:0;border-bottom:1px solid var(--g2);border-radius:0;color:var(--ink);font-size:15px;transition:border-color var(--tr)}
.in:hover{border-color:var(--muted)}
.in:focus-visible{outline:0;border-color:var(--ink);box-shadow:0 1px 0 var(--ink)}
.in::placeholder{color:var(--off)}
textarea.in{height:auto;min-height:64px;padding:6px 0;resize:vertical;line-height:1.4}
.sl{display:flex;align-items:center;gap:12px;--v:30%}
.sl input{-webkit-appearance:none;appearance:none;background:none;flex:1;min-width:0;height:var(--h);margin:0;cursor:pointer}
.sl output{width:36px;text-align:right;color:var(--ink)}
.sl input::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,var(--ink) var(--v),var(--line) var(--v))}
.sl input::-moz-range-track{height:2px;background:linear-gradient(to right,var(--ink) var(--v),var(--line) var(--v))}
.sl input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;border:0;border-radius:0;width:8px;height:22px;margin-top:-10px;background:var(--ink)}
.sl input::-moz-range-thumb{border:0;border-radius:0;width:8px;height:22px;background:var(--ink)}
.tk{min-height:28px;padding:2px 0;display:flex;align-items:flex-start;gap:10px;background:transparent;border:0;color:var(--ink);text-align:left}
.tk i,.tile i{flex:none;width:16px;height:16px;margin-top:1px;display:grid;place-items:center;border:1px solid var(--g3);color:var(--blk);transition:background var(--tr),border-color var(--tr)}
.tk:hover i{border-color:var(--muted)}
.tk i svg,.tile i svg{width:10px;height:10px;opacity:0}
.tk[aria-checked=true] i,.tile[aria-checked=true] i{background:var(--ink);border-color:var(--ink)}
.tk[aria-checked=true] i svg,.tile[aria-checked=true] i svg{opacity:1}
.tk:disabled{color:var(--off)}
.tk:disabled i{border-color:var(--g1)}
.tk small{display:block;color:var(--muted);font-size:12px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px}
.tile{padding:6px;display:flex;flex-direction:column;gap:6px;background:var(--row);border:0;color:var(--ink);text-align:left;min-width:0;transition:background var(--tr)}
.tile:hover{background:var(--g1)}
.tile[aria-checked=true]{box-shadow:inset 0 0 0 1px var(--ink)}
.tile .nm{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px}
.tile .nm span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile .pic{display:block;position:relative;height:64px;overflow:hidden}
.tile .pic img{width:100%;height:100%;object-fit:cover;display:block}
.chips{display:flex;flex-wrap:wrap;gap:4px}
.chip{height:28px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border:0;background:var(--row);color:var(--soft);white-space:nowrap;transition:background var(--tr),color var(--tr)}
.pan .chip{background:var(--g1)}
.chip:hover{background:var(--g2);color:var(--ink)}
.chip[aria-pressed=true]{background:var(--ink);color:var(--blk)}
.chip:focus-visible{outline:0;box-shadow:inset 0 0 0 2px currentColor}
.chip .m{font-size:10.5px;opacity:.65}
.lbl{color:var(--muted);font-size:12px}

/* ---------- review switch ---------- */
.sw{display:flex;gap:1px;background:var(--row)}
.sw button{flex:1;min-width:0;height:28px;padding:0 4px;display:flex;align-items:center;justify-content:center;gap:6px;background:var(--g1);border:0;color:var(--soft);font-size:12px;transition:background var(--tr),color var(--tr)}
.sw button:hover{background:var(--g2);color:var(--ink)}
.sw .rej[aria-pressed=true]{background:var(--g3);color:var(--ink)}
.sw .keep[aria-pressed=true]{background:var(--ink);color:var(--blk)}
.sw .ok[aria-pressed=true]{background:var(--mint);color:var(--blk)}
.sw kbd{font-family:var(--mono);font-size:9.5px;opacity:.55}
.sw .t{display:none;align-items:center;gap:6px;white-space:nowrap}
.sw button:hover .t,.sw button:focus-visible .t{display:inline-flex}
.sw .ic{flex:none}
.sw button{overflow:hidden}
.card .sw kbd{display:none}

/* ---------- the one band ---------- */
.band{margin:0 calc(var(--pad) * -1);padding:6px var(--pad);min-height:44px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.bar + .band{margin-top:calc(var(--gap) * -1)}
.band.waits{background:var(--cobalt);color:var(--hi)}
.band.done{background:var(--mint);color:var(--blk);min-height:64px}
.band.done .big{font-family:var(--disp);font-size:22px;line-height:1.1}
.band.done .m{opacity:.8}
.band.done .b2{background:rgba(22,22,22,.14)}
.band.done .b2:hover{background:rgba(22,22,22,.26)}
.cl{display:flex;align-items:center;gap:8px;min-height:20px;min-width:0;color:var(--muted)}
.cl .m{font-size:11px;letter-spacing:0;min-width:0;overflow:hidden;white-space:nowrap}
.type{display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:bottom;width:0;animation:type 5s steps(var(--n)) infinite}
.caret{display:inline-block;width:6px;height:11px;margin-left:2px;vertical-align:-1px;background:currentColor;animation:blink 1s steps(1) infinite}
@keyframes type{0%{width:0}55%,100%{width:calc(var(--n) * 1ch)}}
@keyframes blink{50%{opacity:0}}
.toast{position:fixed;z-index:70;left:50%;bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:14px;height:40px;padding:0 14px;background:var(--ink);color:var(--blk);max-width:min(560px,calc(100vw - 32px));animation:in .18s ease-out both;box-shadow:0 12px 32px rgba(0,0,0,.5)}
.toast button{background:transparent;border:0;color:var(--blk);text-decoration:underline;text-underline-offset:3px;padding:0;font-weight:500}

/* ---------- steps: one line ---------- */
.steps{margin:0;padding:0;list-style:none;display:flex;border-bottom:1px solid var(--line)}
.steps li{display:flex}
.steps a,.steps span.st{height:36px;padding:0 16px 0 0;margin-right:16px;display:flex;align-items:center;gap:8px;color:var(--off);border-bottom:2px solid transparent;margin-bottom:-1px;transition:color var(--tr)}
.steps a,.steps .was{color:var(--muted)}
.steps a:hover{color:var(--ink)}
.steps .n{font-family:var(--mono);font-size:11px;display:inline-flex;align-items:center;gap:4px}
.steps .n svg{display:none}
.steps span.st[aria-current=step]{color:var(--ink);border-bottom-color:var(--ink)}

/* ---------- ads ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(264px,1fr));gap:var(--gap) 12px;align-items:start}
.grid.s{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px}
.card{display:flex;flex-direction:column;gap:6px;min-width:0}
.main.fresh .card{animation:in .2s ease-out both}
.card.rej .stage .fit{opacity:.3}
.stage{display:flex;align-items:center;justify-content:center;background:var(--panel);height:300px;padding:12px;position:relative;transition:background var(--tr)}
.card:hover .stage{background:var(--row)}
.grid.s .stage{height:140px;padding:8px}
.stage .fit{max-width:100%;max-height:100%;box-shadow:0 6px 24px rgba(0,0,0,.35)}
.stage a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.cardb{display:flex;flex-direction:column;gap:6px}
.cardb .meta{display:flex;align-items:center;gap:6px;min-height:20px;min-width:0;color:var(--muted);font-size:12px}
.cardb .meta .no{font-family:var(--mono);font-size:11px;color:var(--ink)}
.cardb .meta .tx{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.big-stage{background:var(--panel);display:flex;align-items:center;justify-content:center;padding:24px;height:calc(100vh - 150px);min-height:420px;position:sticky;top:64px}
.big-stage .fit{max-width:100%;max-height:100%;box-shadow:0 12px 48px rgba(0,0,0,.45)}
.progress{height:2px;background:var(--g1)}
.progress i{display:block;height:100%;background:var(--mint);transition:width .26s linear}
.slot{background:var(--row);position:relative;overflow:hidden;background-image:repeating-linear-gradient(135deg,var(--g1) 0 1px,transparent 1px 10px)}
.photo{position:relative;background:var(--row);aspect-ratio:4/3;overflow:hidden;display:flex;align-items:flex-end}
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo.ph{background-image:repeating-linear-gradient(135deg,var(--g2) 0 1px,transparent 1px 10px)}
.photo .cap{position:relative;display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:4px 8px;background:rgba(22,22,22,.85);font-size:12px}
.photo .cap span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.photo .cap button{background:transparent;border:0;color:var(--muted);text-decoration:underline;padding:0}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px}
dialog{border:0;padding:20px;background:var(--row);color:var(--ink);width:min(440px,calc(100vw - 32px));box-shadow:0 24px 64px rgba(0,0,0,.6)}
dialog::backdrop{background:rgba(10,10,10,.7)}
.kv{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 16px}
.kv dt{color:var(--muted)}
.kv dd{margin:0;min-width:0;overflow-wrap:anywhere}
.upl{cursor:pointer}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.main.fresh *,.band .mk,.lin-r .mk,.cs.on,.opened,.opened>*,.sw .okd{animation:none!important}.type{width:calc(var(--n) * 1ch)}}
@media (max-width:820px){
  :root{--pad:14px}
  .app{grid-template-columns:minmax(0,1fr)}
  .side{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line)}
  .side .foot{display:none}
  .nav{flex-direction:row;flex-wrap:wrap}
  .nav a{grid-template-columns:18px auto auto;padding:0 10px}
  .bar{position:static}
  .steps{overflow-x:auto}
  .big-stage{position:static;height:56vh}
}

/* ---------- small helpers ---------- */
.ink{color:var(--ink)}
.sep{display:inline-block;width:1px;height:10px;background:var(--g2);margin:0 10px;vertical-align:-1px}

.lab{display:inline-flex;align-items:center;gap:6px}
.pv{height:min(60vh,460px);display:flex;align-items:center;justify-content:center;background:var(--panel);padding:16px;min-width:0}
.pv .fit{max-width:100%;max-height:100%;box-shadow:0 12px 48px rgba(0,0,0,.45)}
.photo .ix{color:var(--muted);font-size:10.5px}

/* ---------- T: modules ---------- */
.deck{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:2px}
.mod{background:var(--panel);padding:12px;display:flex;flex-direction:column;gap:10px;min-width:0}
.mh{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-family:var(--disp);font-size:15px;line-height:1.1}
.mh .n{font-family:var(--mono);font-size:11px;color:var(--muted)}
.mod.fg{min-height:136px;justify-content:space-between}
.mod.fg b,.mod.key b{font-family:var(--mono);font-weight:400;font-size:64px;line-height:.9;letter-spacing:-.02em;overflow:hidden}
.mod.fg.ok .mh span:first-child::before{content:"";display:inline-block;width:10px;height:10px;margin-right:8px;background:var(--mint);clip-path:var(--cut)}
.mod.key{grid-column:span 2;background:var(--cobalt);color:var(--hi);display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:10px 16px;transition:filter var(--tr)}
.mod.key:hover{filter:brightness(1.12)}
.mod.key .mh{grid-column:1/-1}
.mod.key .b2{grid-column:1/-1;justify-self:start;background:rgba(22,22,22,.28);color:inherit}
.te-c{display:flex;flex-direction:column;gap:2px}
.te-ch{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;min-height:48px;padding:6px 8px 6px 12px;background:var(--row)}
.te-ch .ix{font-size:22px;color:var(--muted)}
.te-ch .nm{font-size:20px;flex:1 1 180px}
.te-s{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:2px}
.mod.ses{transition:background var(--tr),transform .18s cubic-bezier(.2,.8,.2,1)}
.mod.ses:hover{background:var(--row);transform:translateY(-3px)}
.mod.ses .mh span,.mod.tpl .mh span{font-family:var(--mono);font-size:11px;color:var(--muted)}
.mod.ses .mh span:last-child,.mod.tpl .mh span:last-child{font-family:var(--body);font-size:12px}
.strip{display:grid;grid-template-columns:repeat(4,1fr);gap:2px}
.strip>span{display:block;aspect-ratio:1;overflow:hidden;background:var(--bg)}
.mod.ses .nm{font-size:15px}
.meter{display:flex;flex-wrap:wrap;gap:2px}
.meter i{width:10px;height:10px;background:var(--cobalt)}
.meter i.ok{background:var(--mint)} .meter i.k{background:var(--ink)} .meter i.r{background:var(--g2)}
.mod.add{flex-direction:row;align-items:center;justify-content:center;min-height:88px;color:var(--muted);transition:background var(--tr),color var(--tr)}
.mod.add:hover{background:var(--row);color:var(--ink)}
.board{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:2px}
.in.big{height:40px;font-size:22px}
.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.ckey{position:relative;min-height:128px;padding:10px;display:flex;flex-direction:column;gap:2px;cursor:pointer;font-size:12px;transition:transform .18s cubic-bezier(.2,.8,.2,1)}
.ckey:hover{transform:translateY(-3px)}
.ckey:focus-within{outline:2px solid var(--ink);outline-offset:2px}
.ckey input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.ckey .nm{font-size:15px}
.ckey .hx{margin-top:auto;font-size:18px}
.specs{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.specs>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.aa{display:block;font-size:72px;line-height:1}

/* ---------- motion: Cut, with Flash on status (his card of 2026-11-18) ----------
   Subtle but playful, never a bounce. Things arrive with the diagonal cut of the marker. The
   only colour blink is on status: something waits on him, or an ad was just approved. Every
   move runs once; nothing loops except while Claude is working. Figures count up in app.js. */
@keyframes cut{from{clip-path:polygon(0 0,0 0,-20% 100%,0 100%)}to{clip-path:polygon(0 0,120% 0,100% 100%,0 100%)}}
@keyframes cutsq{0%{clip-path:polygon(0 100%,0 100%,0 100%,0 100%)}50%{clip-path:polygon(0 0,0 0,100% 100%,0 100%)}100%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}}
@keyframes turn{from{transform:rotate(-90deg) scale(.4);opacity:0}}
@keyframes waits{0%,30%{background:var(--hi);color:var(--blk)}}
@keyframes okd{0%,25%{background:var(--hi)}}
@keyframes mark{0%,15%{clip-path:polygon(30% 0,100% 0,100% 100%,0 100%,0 30%)}25%,40%{clip-path:polygon(0 0,70% 0,100% 30%,100% 100%,0 100%)}50%,65%{clip-path:polygon(0 0,100% 0,100% 70%,70% 100%,0 100%)}75%,90%{clip-path:polygon(0 0,100% 0,100% 100%,30% 100%,0 70%)}100%{clip-path:polygon(30% 0,100% 0,100% 100%,0 100%,0 30%)}}
.main.fresh .mod,.main.fresh .pan,.main.fresh .te-ch,.main.fresh .ckey,.main.fresh .band,.te-s.opened>*,.chips.opened{animation:cut .5s cubic-bezier(.2,.8,.2,1) backwards}
.main.fresh .mod.fg b,.main.fresh .mod.key b{animation:cut .55s cubic-bezier(.2,.8,.2,1) .15s backwards}
.main.fresh .mk,.main.fresh .mod.fg.ok .mh span:first-child::before{animation:turn .4s cubic-bezier(.2,.8,.2,1) .2s backwards}
.main.fresh .meter i{animation:cutsq .32s cubic-bezier(.2,.8,.2,1) backwards}
.main.fresh .band.waits,.main.fresh .mod.key{animation:cut .5s cubic-bezier(.2,.8,.2,1) backwards,waits .8s cubic-bezier(.2,.8,.2,1) backwards}
.sw .ok.okd{animation:okd .6s cubic-bezier(.2,.8,.2,1)}
.cs.on{animation:mark 2.4s cubic-bezier(.4,0,.2,1) infinite}
.b1{clip-path:polygon(0 0,100% 0,100% 0,100% 100%,0 100%);transition:background var(--tr),color var(--tr),clip-path .18s cubic-bezier(.2,.8,.2,1)}
.b1:hover:not(:disabled){clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%)}
.b1:active:not(:disabled){clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,0 100%);transform:none}
.b1:focus-visible{box-shadow:inset 0 0 0 2px var(--ink),inset 0 0 0 4px var(--blk)}
.sl input:active::-webkit-slider-thumb{clip-path:polygon(0 0,40% 0,100% 30%,100% 100%,0 100%)}
.sl input:active::-moz-range-thumb{clip-path:polygon(0 0,40% 0,100% 30%,100% 100%,0 100%)}
.te-s.opened>*:nth-child(2){animation-delay:50ms}.te-s.opened>*:nth-child(3){animation-delay:100ms}.te-s.opened>*:nth-child(4){animation-delay:150ms}.te-s.opened>*:nth-child(n+5){animation-delay:200ms}
.main.fresh .deck .mod:nth-child(2){animation-delay:60ms}
.main.fresh .deck .mod:nth-child(3){animation-delay:120ms}
.main.fresh .deck .mod:nth-child(4){animation-delay:180ms}
.main.fresh .deck .mod:nth-child(5){animation-delay:240ms}
.main.fresh .deck .mod:nth-child(6){animation-delay:300ms}
.main.fresh .te-c:nth-of-type(1) .te-ch,.main.fresh .te-c:nth-of-type(1) .mod{animation-delay:200ms}
.main.fresh .te-c:nth-of-type(2) .te-ch,.main.fresh .te-c:nth-of-type(2) .mod{animation-delay:290ms}
.main.fresh .te-c:nth-of-type(3) .te-ch,.main.fresh .te-c:nth-of-type(3) .mod{animation-delay:380ms}
.main.fresh .te-c:nth-of-type(4) .te-ch,.main.fresh .te-c:nth-of-type(4) .mod{animation-delay:470ms}
.main.fresh .te-c:nth-of-type(5) .te-ch,.main.fresh .te-c:nth-of-type(5) .mod{animation-delay:560ms}
.main.fresh .te-c:nth-of-type(6) .te-ch,.main.fresh .te-c:nth-of-type(6) .mod{animation-delay:650ms}
.main.fresh .board .mod:nth-child(2){animation-delay:60ms}
.main.fresh .board .mod:nth-child(3){animation-delay:120ms}
.main.fresh .board .mod:nth-child(4){animation-delay:180ms}
.main.fresh .board .mod:nth-child(5){animation-delay:240ms}
.main.fresh .board .mod:nth-child(6){animation-delay:300ms}
.main.fresh .board .mod:nth-child(7){animation-delay:360ms}
.main.fresh .board .mod:nth-child(8){animation-delay:420ms}
.main.fresh .meter i:nth-child(1){animation-delay:402ms}
.main.fresh .meter i:nth-child(2){animation-delay:424ms}
.main.fresh .meter i:nth-child(3){animation-delay:446ms}
.main.fresh .meter i:nth-child(4){animation-delay:468ms}
.main.fresh .meter i:nth-child(5){animation-delay:490ms}
.main.fresh .meter i:nth-child(6){animation-delay:512ms}
.main.fresh .meter i:nth-child(7){animation-delay:534ms}
.main.fresh .meter i:nth-child(8){animation-delay:556ms}
.main.fresh .meter i:nth-child(9){animation-delay:578ms}
.main.fresh .meter i:nth-child(10){animation-delay:600ms}
.main.fresh .meter i:nth-child(11){animation-delay:622ms}
.main.fresh .meter i:nth-child(12){animation-delay:644ms}
.main.fresh .meter i:nth-child(13){animation-delay:666ms}
.main.fresh .meter i:nth-child(14){animation-delay:688ms}
.main.fresh .meter i:nth-child(15){animation-delay:710ms}
.main.fresh .meter i:nth-child(16){animation-delay:732ms}
.main.fresh .meter i:nth-child(17){animation-delay:754ms}
.main.fresh .meter i:nth-child(18){animation-delay:776ms}
.main.fresh .meter i:nth-child(19){animation-delay:798ms}
.main.fresh .meter i:nth-child(20){animation-delay:820ms}
.main.fresh .meter i:nth-child(21){animation-delay:842ms}
.main.fresh .meter i:nth-child(22){animation-delay:864ms}
.main.fresh .meter i:nth-child(23){animation-delay:886ms}
.main.fresh .meter i:nth-child(24){animation-delay:908ms}
.main.fresh .ckey:nth-child(1){animation-delay:250ms}
.main.fresh .ckey:nth-child(2){animation-delay:340ms}
.main.fresh .ckey:nth-child(3){animation-delay:430ms}
@media (hover:none){.sw button[aria-pressed=true] .t{display:inline-flex}}

@media (max-width:1100px){
  .board{grid-template-columns:minmax(0,1fr)}
  .board>.mod{grid-column:1/-1;grid-row:auto}
}
@media (max-width:820px){
  .mod.fg b,.mod.key b{font-size:44px}
  .mod.fg{min-height:104px}
  .aa{font-size:48px}
}


/* ---------- the hint: explaining text lives behind a small "i" ---------- */
.inf{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;background:var(--g1);color:var(--muted);cursor:help;vertical-align:middle;transition:background var(--tr),color var(--tr)}
.inf:hover,.inf:focus-visible{background:var(--ink);color:var(--blk)}
#tip{position:fixed;z-index:60;max-width:min(300px,calc(100vw - 24px));padding:10px 12px;background:var(--ink);color:var(--blk);font:400 12.5px/1.45 var(--body);box-shadow:0 12px 32px rgba(0,0,0,.5);pointer-events:none}
#tip[hidden]{display:none}
.head .inf{align-self:center}

/* ---------- folding ---------- */
.fold{flex:none;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;background:var(--g1);border:0;color:var(--muted);cursor:pointer;transition:background var(--tr),color var(--tr)}
.fold:hover{color:var(--ink)}
.fold svg{transition:transform .18s cubic-bezier(.2,.8,.2,1)}
.fold[aria-expanded=false] svg{transform:rotate(-90deg)}
.te-ch .meter{max-width:260px}
.mod.tpl{min-height:168px}
.mod.tpl .nm{font-size:15px}
.chips{align-items:center}
.chips .sample{margin-left:8px}

/* ---------- plates (his pick of 2026-11-18, "A, but lets remove the numbers") ----------
   Every box gets a top: a strip with its icon and name. Wider gaps between boxes, so the eye
   sees where one starts and ends. Icons do work that words did. */
.icn{flex:none}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pan,.mod{background:var(--pl-box,var(--panel));padding:var(--pl-pad,12px)}
.plh{display:flex;align-items:center;gap:10px;min-height:var(--pl-h,36px);margin:calc(var(--pl-pad,12px)*-1) calc(var(--pl-pad,12px)*-1) 2px;padding:4px var(--pl-pad,12px);background:var(--pl-top,var(--row));min-width:0}
.plh h2{color:var(--pl-ink,var(--hi))}
.pl-noicon .plh>.icn{display:none}
.plh h2{margin:0;min-width:0}
/* Grafic sits high on its line: its caps end 2px above the bar centre without this */
.plh h2>span{position:relative;top:2px}
.plh>.icn{color:var(--pl-soft,var(--ink))}
.plh .inf,.plh .b2,.plh .tag,.plh .fold{background:var(--pl-box,var(--panel))}
.plh .b2:hover,.plh .fold:hover{background:var(--bg)}
.plh .sample{color:var(--pl-soft,var(--ink))}
.plh .fold:disabled{color:var(--off);cursor:default}
.pan.shut{padding-bottom:0;gap:0}
.pan.shut .plh{margin-bottom:0}
.cols,.board,.cols2{gap:var(--pl-gap,12px)}
.cols>.col{gap:var(--pl-gap,12px)}
.cols2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
@media (max-width:820px){.cols2{grid-template-columns:minmax(0,1fr)}}
.steps .icn{opacity:.8}
.wrow{display:flex;align-items:flex-end;gap:6px}
.wrow>.fl{flex:1}
.pin{flex:none;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--g1);color:var(--muted);transition:background var(--tr),color var(--tr)}
.pin:hover{background:var(--g2);color:var(--ink)}
.pin[aria-pressed=true]{background:var(--ink);color:var(--blk)}
.wrow .chip{height:28px;font-family:var(--mono);font-size:11px}
.pts{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:2px}
.pt{min-height:92px;padding:8px 4px;border:0;background:var(--g1);color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;text-align:center;transition:background var(--tr),color var(--tr)}
.pt:hover:not(:disabled){background:var(--g2);color:var(--ink)}
.pt[aria-checked=true]{background:var(--ink);color:var(--blk)}
.pt[aria-checked=true]:hover{background:var(--hi);color:var(--blk)}
.pt:focus-visible,.pin:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.pt .m{font-size:12px}
.pt small{font-size:11px}
.pt:disabled{cursor:default}
.pt:disabled .icn{color:var(--off)}
.mod.ses .mh .nm,.mod.tpl .mh .nm{font-family:var(--body);font-weight:500;font-size:15px;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mod.ses .row{gap:8px}

/* Hover focus (his values, 2026-11-18): the box under the pointer lifts a grey step, the rest dims 40%. Mouse only. */
@media (hover:hover){
  :root:not(.pl-nofocus) .main :is(.pan,.mod,.te-ch,.band,.ckey){transition:opacity .14s ease-out}
  :root:not(.pl-nofocus) .main:has(:is(.pan,.mod):hover) :is(.pan,.mod,.te-ch,.band,.ckey):not(:hover):not(:has(:hover)){opacity:var(--pl-dim,.6)}
  :root:not(.pl-nofocus) .main :is(.pan,.mod):hover>.plh{background:var(--pl-hi,#313030);transition:background .14s ease-out}
  :root:not(.pl-nofocus) .main :is(.pan,.mod):hover>.plh h2,:root:not(.pl-nofocus) .main :is(.pan,.mod):hover>.plh>.icn{color:var(--pl-hi-ink,var(--hi))}
  :root:not(.pl-nofocus) .main :is(.pan,.mod):hover:not(:has(>.plh)):not(:has(:is(.pan,.mod):hover)){box-shadow:inset 0 2px 0 var(--pl-hi,#313030)}
}
@media (prefers-reduced-motion:reduce){:root:not(.pl-nofocus) .main *{transition:none!important}}

.brandsw>button svg{color:var(--muted)}
.stripes{display:block;height:100%;background-image:repeating-linear-gradient(135deg,var(--g2) 0 1px,transparent 1px 10px)}
.ckey.lt{color:var(--blk)} .ckey.dk{color:var(--hi)}
.mod .pv{background:var(--bg)}

/* ================= 1.1.0: nine parts from the office app (his yes, 2026-11-19) ================= */

/* ---------- folding sidebar: .app.folded is a 56px rail of icons. The fold button sits in .wm ---------- */
.wm .fold{align-self:center}
.side .wm .fold svg{transform:rotate(90deg)}
.side .wm .fold[aria-expanded=false] svg{transform:rotate(-90deg)}
.app.folded{grid-template-columns:56px minmax(0,1fr)}
.app.folded .wm{padding:2px 4px 12px}
.app.folded .wm b,.app.folded .wm span,.app.folded .nav a>span{display:none}
.app.folded .nav a{grid-template-columns:1fr;position:relative}
.app.folded .nav a>.n.w{display:grid;position:absolute;top:1px;right:1px}

/* ---------- talk button: at the foot of the sidebar. Mint while it listens ---------- */
.talk{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding:8px 0 0}
.talk .bm{width:100%;height:40px}
.talk .bm .icn{display:none}
.talk .bm.on{background:var(--mint);color:var(--blk)}
.talk .bm.on::before{background:var(--blk)}
.app.folded .talk form,.app.folded .talk .bm span{display:none}
.app.folded .talk .bm .icn{display:block}

/* ---------- phone tab bar: .app.tabs turns the sidebar into a bar at the bottom of a phone ---------- */
@media (max-width:820px){
  .app.tabs,.app.tabs.folded{grid-template-columns:minmax(0,1fr)}
  .app.tabs .side{position:fixed;left:0;right:0;bottom:0;top:auto;height:auto;z-index:30;flex-direction:row;align-items:center;gap:6px;padding:4px 10px;overflow:visible;border-bottom:0;border-top:1px solid var(--line)}
  .app.tabs .wm,.app.tabs .talk form,.app.tabs .talk .bm span{display:none}
  .app.tabs .talk .bm .icn{display:block}
  .app.tabs .nav{flex:1;flex-wrap:nowrap;gap:0;min-width:0}
  .app.tabs .nav a,.app.tabs.folded .nav a{flex:1;min-width:0;height:48px;grid-template-columns:1fr;justify-items:center;align-content:center;gap:2px;padding:0 2px;position:relative;font-size:11px}
  .app.tabs.folded .nav a>span{display:block}
  .app.tabs .nav a>.n.w,.app.tabs.folded .nav a>.n.w{display:grid;position:absolute;top:2px;right:2px}
  .app.tabs .talk{margin:0;padding:0}
  .app.tabs .talk .bm{width:48px;height:48px;padding:0}
  .app.tabs .main{padding-bottom:140px}
}

/* ---------- agent pointer: four panes dim the page around the part Claude points at ---------- */
.veil{position:fixed;inset:0;z-index:40;cursor:pointer}
.veil i{position:fixed;background:color-mix(in srgb,var(--bg) 55%,transparent);backdrop-filter:blur(5px) saturate(.35);-webkit-backdrop-filter:blur(5px) saturate(.35)}
.spot{position:fixed;z-index:41;pointer-events:none;box-shadow:0 0 0 3px var(--yellow)}
.spot::after{content:"Claude";position:absolute;left:-3px;top:-25px;padding:4px 8px;background:var(--yellow);color:var(--blk);font-family:var(--mono);font-size:11px;white-space:nowrap}
.pointed{transform:scale(1.035);transition:transform .18s cubic-bezier(.2,.8,.2,1)}
.main.pointed,.pointed.still{transform:none}

/* ---------- caption bar: what is being said, fixed at the foot of the page ---------- */
.capbar{position:fixed;left:240px;right:24px;bottom:20px;max-width:860px;z-index:45;display:flex;align-items:center;gap:12px;padding:12px 16px;pointer-events:none;background:var(--g1);color:var(--hi);font-size:15px;outline:1px solid var(--g3);animation:in .18s ease-out both}
.capbar[hidden]{display:none}
.capbar>span:not(.tag){flex:1;min-width:0}
.app.folded~.capbar{left:80px}
@media (max-width:820px){.capbar,.app.folded~.capbar{left:14px;right:14px}.app.tabs~.capbar{bottom:72px}}

/* ---------- floating card: asks for one thing without leaving the screen, over a scrim ---------- */
.scrim{position:fixed;inset:0;z-index:35;background:var(--bg);opacity:.9}
dialog.float{position:fixed;inset:0;margin:auto;height:fit-content;max-height:calc(100vh - 32px);overflow:auto;z-index:36;outline:1px solid var(--g2)}
dialog.float.wide{width:min(640px,calc(100vw - 32px))}
dialog.float.at{inset:16px 16px auto auto;margin:0;z-index:46}
@media (max-width:820px){dialog.float.at{inset:12px 12px auto 12px}}

/* ---------- note text: a written note shown inside the app ---------- */
.doc{display:flex;flex-direction:column;gap:12px;min-width:0}
.doc .tbl{overflow-x:auto}
.doc .md{font-size:14px;max-width:62ch;color:var(--soft)}
.doc .md h4{font-family:var(--disp);font-weight:400;font-size:18px;color:var(--ink);margin:16px 0 4px}
.doc .md p{margin:0 0 10px}
.doc .md ul{margin:0 0 10px;padding-left:18px}
.doc .md code{font-family:var(--mono);font-size:12px}
.doc .md table{border-collapse:collapse;margin:0 0 10px}
.doc .md td{border-bottom:1px solid var(--line);padding:4px 10px 4px 0;vertical-align:top}
.doc .md a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--g3)}
.doc .md a:hover{text-decoration-color:var(--ink);color:var(--ink)}

/* ---------- brief player: a stage, its controls and the line being said ---------- */
.eb{display:grid;gap:10px}
.eb-stage{position:relative;width:100%;max-width:100%;aspect-ratio:16/9;overflow:hidden;cursor:crosshair;background:var(--row)}
.eb-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.eb-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.eb button{height:32px;padding:0 12px;cursor:pointer;border:0;background:var(--g1);color:var(--ink);font-weight:500}
.eb button:hover{background:var(--g2)}
.eb-prog{flex:1;min-width:80px;height:14px;position:relative;cursor:pointer;background:linear-gradient(var(--g3),var(--g3)) center/100% 2px no-repeat}
.eb-prog i{position:absolute;left:0;top:6px;height:2px;width:0;background:var(--ink)}
.eb-time{font-family:var(--mono);font-size:11px;color:var(--muted)}
.eb-cap{min-height:3em;margin:0}
.eb-cap,.eb-quiet{color:var(--soft)}

/* ---------- week grid: seven days as an hour grid, events as blocks, a line for now ---------- */
.wkscroll{overflow-x:auto;overflow-y:hidden}
.wk{display:grid;grid-template-columns:44px repeat(7,minmax(0,1fr));gap:0 2px;min-width:640px;padding-bottom:10px}
.wk .dh{height:32px;display:flex;align-items:center;gap:6px;padding:0 6px;background:var(--row);color:var(--muted);font-size:12px}
.wk .dh b{font-family:var(--mono);font-weight:400}
.wk .dh.today{background:var(--ink);color:var(--blk)}
.wk .hrs,.wk .day{position:relative;margin-top:2px}
.wk .hrs{position:sticky;left:0;z-index:3;background:var(--bg)}
.wk span.hrs{margin:0}
.wk .hrs span{position:absolute;right:6px;margin-top:-6px;font-family:var(--mono);font-size:9.5px;color:var(--off)}
.wk .day{background:repeating-linear-gradient(to bottom,var(--panel) 0 43px,var(--line) 43px 44px)}
.ev{position:absolute;padding:3px 6px;overflow:hidden;display:flex;flex-direction:column;gap:1px;text-align:left;cursor:pointer;border:0;background:var(--g2);color:var(--hi);font-size:11px;line-height:1.25;box-shadow:inset 0 0 0 1px var(--bg);transition:background var(--tr)}
.ev:hover{background:var(--g3)}
.ev .m{font-size:9.5px;color:var(--soft)}
.ev.past{background:var(--g1);color:var(--muted)}
.now{position:absolute;left:0;right:0;height:2px;z-index:2;pointer-events:none;background:var(--ink)}
.now::before{content:"";position:absolute;left:-2px;top:-4px;width:10px;height:10px;background:var(--ink);clip-path:var(--cut)}

/* ---------- page tabs: the pages a person has open, as a row under a search field ---------- */
.ptabs{display:flex;gap:2px;overflow-x:auto;border-bottom:1px solid var(--line)}
.ptab{flex:0 0 auto;display:flex;align-items:center;height:var(--h);background:var(--row);color:var(--muted);white-space:nowrap;transition:background var(--tr),color var(--tr)}
.ptab a{height:100%;padding:0 10px;display:flex;align-items:center;gap:8px}
.ptab button{width:24px;height:100%;padding:0;background:transparent;border:0;color:inherit}
.ptab:hover{background:var(--g1);color:var(--ink)}
.ptab[aria-current=page]{background:var(--ink);color:var(--blk)}

/* ---------- quote: a source's own words, with what stands around them and where they are from ---------- */
.qt{flex:1 1 100%;margin:0;padding:8px 12px;display:flex;flex-direction:column;gap:6px;background:var(--bg);border-left:2px solid var(--g3)}
.qt p{margin:0;color:var(--off)}
.qt q{quotes:none;color:var(--ink)}
.qt cite{font-family:var(--mono);font-size:10.5px;font-style:normal;letter-spacing:.05em;color:var(--muted)}

/* ---------- graph: things as dots and what links them as lines. For show. ---------- */
.gr{display:block;width:100%;height:auto;background:var(--panel);color:var(--g2)}
.gr line{stroke:currentColor}
.gr line.on{color:var(--ink)}
.gr g{color:var(--muted);cursor:pointer;transition:color var(--tr)}
.gr g:hover,.gr g[aria-current=true]{color:var(--ink)}
.gr g.far{color:var(--g3)}
.gr text{font-family:var(--body);font-size:11px;fill:currentColor}

/* ---------- recorder: the big record button, the timer, the level meter and the spoken text ---------- */
.recorder{background:var(--panel);padding:24px;display:flex;align-items:center;gap:32px;flex-wrap:wrap}
.recb{flex:none;width:148px;height:148px;border:0;background:var(--ink);color:var(--blk);clip-path:var(--cut);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font-family:var(--body);font-size:17px;font-weight:500;transition:background var(--tr),transform var(--tr)}
.recb:hover{background:var(--hi)}
.recb:active{transform:translateY(1px)}
.recb:disabled{background:var(--row);color:var(--off)}
.recb i{width:34px;height:34px;background:var(--blk);clip-path:var(--cut);transition:width var(--tr),height var(--tr)}
.recb.on{background:var(--mint)}
.recb.on i{width:28px;height:28px;clip-path:none}
.recorder .rinfo{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:14px}
.recorder .tm{font-family:var(--mono);font-size:64px;line-height:.9;letter-spacing:-.02em;color:var(--ink)}
.recorder .tm.idle{color:var(--off)}
.lvl{height:56px;display:flex;align-items:center;gap:3px;overflow:hidden}
.lvl i{flex:none;width:4px;min-height:2px;background:var(--g2);transition:height 80ms linear}
.lvl.on i{background:var(--mint)}
.say{white-space:pre-wrap;font-size:22px;line-height:1.55;color:var(--ink)}
.say .partial{color:var(--muted)}
.say p{margin:0 0 18px}
.say .who{display:block;font-family:var(--mono);font-size:11px;letter-spacing:.05em;color:var(--muted);margin-bottom:2px}
@media (max-width:820px){.recorder{gap:20px;padding:16px}.recb{width:112px;height:112px}.recorder .tm{font-size:48px}.say{font-size:19px}}
