
/* v3 look. Light: warm ground, white cards with a soft shadow, one orange accent. Black: AMOLED ground, near-black cards,
   the accent glows and takes black text. Colour carries meaning only: blue iterations, purple new ideas, green done, red problems.
   Themes follow the system unless the viewer picks Light or Black in the header (kept in this browser only). */
:root{
  color-scheme:light;
  --ground:#F5F4F1; --nav-bg:#F8F7F4; --nav-line:#E9E7E2;
  --card:#FFFFFF; --card-line:#E9E7E2; --card-shadow:0 1px 2px rgba(20,20,26,.04),0 12px 32px -20px rgba(20,20,26,.18);
  --soft:#F0EEEA; --seg-on:#FFFFFF; --seg-on-shadow:0 1px 2px rgba(20,20,26,.08);
  --input-bg:#FFFFFF; --input-line:#E4E1DB; --line-soft:#EFEDE9; --chip-bg:#F1EFEB;
  --ink:#15151A; --ink2:#3A3A44; --muted:#6E6E78; --faint:#A4A2AB;
  --accent:#D9430B; --on-accent:#FFFFFF; --accent-ink:#C2410C; --accent-soft:#FFF1EA; --accent-line:#F6C9B0; --accent-glow:0 10px 26px -10px rgba(217,67,11,.7);
  --primary:#15151A; --on-primary:#FFFFFF;
  --ok:#12A150; --ok-ink:#15803D; --ok-soft:#E6F6EC;
  --fail:#D92D20; --fail-ink:#B42318; --fail-soft:#FDECEA; --fail-line:#F5C2BD;
  --new-soft:#EFEBFF; --new-ink:#5B3FC4; --iter-soft:#E6EEFF; --iter-ink:#2457D6;
  /* v38.36.1: Big Brain's mark is the bare v3 one-line mark in the text colour (design/brands/bigbrain/v3-one-line); no tile, no orange. */
  --strip-mid:#FCFBF9; --strip-dots:radial-gradient(circle at 1px 1px,#DDD9D2 1px,transparent 0) 0 0/24px 24px; --strip-glow:none;
  --warn:#D97706; --glow:0 0 0 3px; --glow-mix:16%;
  --aurora:radial-gradient(60% 120% at 100% 0%,rgba(217,67,11,.12),transparent 60%),radial-gradient(50% 120% at 0% 100%,rgba(109,74,224,.09),transparent 60%);
  --pop-shadow:0 30px 60px -30px rgba(20,20,26,.28),0 1px 2px rgba(20,20,26,.04);
  --dock-bg:rgba(21,21,26,.92); --dock-ink:#FFFFFF; --dock-muted:rgba(255,255,255,.68); --dock-line:#3A3A44;
  --dock-shadow:0 24px 60px -12px rgba(20,20,26,.45),0 0 0 1px rgba(255,255,255,.06) inset;
  --thumb-shadow:0 14px 28px -18px rgba(20,20,26,.55);
  --link:#C2410C; --link-hover:#9A3412; --ring:rgba(217,67,11,.32);
  --b-people:#E5531A; --b-looks:#6D4AE0; --b-realism:#0A92C7; --b-winners:#12A150; --b-rules:#15151A; --b-tags:#B9B5AD;
  /* v26: the brain's stage, its glass panel, label chips and tips; batch progress and empty thumbs. */
  --stage-bg:radial-gradient(circle at 1px 1px,#DDD9D2 1px,transparent 0) 0 0/24px 24px,linear-gradient(180deg,#FFFFFF,#FAF9F6); --stage-line:#E9E7E2; --stage-shadow:0 1px 2px rgba(20,20,26,.04),0 30px 60px -40px rgba(20,20,26,.25);
  --glass:rgba(255,255,255,.86); --glass-line:#E9E7E2; --glass-shadow:0 30px 60px -30px rgba(20,20,26,.28);
  --label-bg:rgba(255,255,255,.94); --label-line:#E6E3DD; --tip-bg:#15151A; --tip-ink:#FFFFFF; --bead-rim:#FFFFFF; --halo-a:.12;
  --track:#ECEAE5; --empty-thumb:#ECE9E3; --run-shadow:0 1px 2px rgba(20,20,26,.04),0 28px 60px -36px rgba(217,67,11,.55);
  --ui:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --display:"Inter Tight",Inter,ui-sans-serif,system-ui,sans-serif;
  --mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --r:18px; --r-md:12px; --r-sm:10px;
  /* v38.23: the motion tokens (design-clean/SPEC.md 2.1) and the batch bar's colours; the dark ones are below each dark block. */
  --t-press:100ms; --t-hover:200ms; --t-exit:200ms; --t-thumb:520ms; --t-rise:520ms; --t-step:50ms; --ease-calm:cubic-bezier(.22,1,.36,1); --ease-spring:cubic-bezier(.3,1.15,.5,1); --t-appear:160ms; --t-open:180ms; --t-fill:220ms; --t-panel:240ms; --amber-ink:#B45309; --amber-soft:#FFF4E0; --ease-enter:cubic-bezier(.2,.8,.2,1); --ease-exit:cubic-bezier(.4,0,1,1);
  --bar-ok:#12A150; --bar-dec:#E5531A; --bar-now:#F7B294; --bar-bad:#E9B4AE; --bar-track:#ECEAE5; --raise:#E9E7E2; --pop-bg:#FFFFFF; --shim:rgba(255,255,255,.7);
}
@media (prefers-reduced-motion:reduce){:root{--t-press:0ms; --t-hover:0ms; --t-exit:0ms; --t-appear:0ms; --t-open:0ms; --t-fill:0ms; --t-panel:0ms; --t-thumb:0ms; --t-rise:0ms; --t-step:0ms}}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  color-scheme:dark;
  --ground:#000000; --nav-bg:#050506; --nav-line:#17171B;
  --card:#0B0B0D; --card-line:#1F1F24; --card-shadow:none;
  --soft:#121215; --seg-on:#1F1F24; --seg-on-shadow:none;
  --input-bg:#000000; --input-line:#2A2A31; --line-soft:#1F1F24; --chip-bg:#121215;
  --ink:#F4F3EF; --ink2:#C9C8CF; --muted:#8B8B96; --faint:#6B6B76;
  --accent:#FF6A2B; --on-accent:#000000; --accent-ink:#FF8A5B; --accent-soft:#2A1308; --accent-line:#5A2A14; --accent-glow:0 0 24px rgba(255,106,43,.45);
  --primary:#F4F3EF; --on-primary:#000000;
  --ok:#3DDC84; --ok-ink:#3DDC84; --ok-soft:#0E2A1A;
  --fail:#FF7A7A; --fail-ink:#FF8A8A; --fail-soft:#1F0A0A; --fail-line:#5A1F1F;
  --new-soft:#1C1533; --new-ink:#B6A4FF; --iter-soft:#0F1D33; --iter-ink:#8DB2FF;
  --strip-mid:#020203; --strip-dots:none; --strip-glow:var(--aurora); --warn:#FBBF24; --glow:0 0 7px; --glow-mix:75%; --aurora:radial-gradient(60% 120% at 100% 0%,rgba(255,106,43,.16),transparent 60%),radial-gradient(50% 120% at 0% 100%,rgba(155,123,255,.10),transparent 60%);
  --pop-shadow:0 30px 60px -20px rgba(0,0,0,.9);
  --dock-bg:#0B0B0D; --dock-ink:#F4F3EF; --dock-muted:#8B8B96; --dock-line:#2A2A31;
  --dock-shadow:0 24px 60px rgba(0,0,0,.8),0 0 40px rgba(255,106,43,.12),0 0 0 1px #26262C inset;
  --thumb-shadow:0 0 0 1px #1F1F24;
  --link:#FF8A5B; --link-hover:#FFB08F; --ring:rgba(255,106,43,.4);
  --b-people:#FF6A2B; --b-looks:#9B7BFF; --b-realism:#39C6FF; --b-winners:#3DDC84; --b-rules:#F4F3EF; --b-tags:#4A4A55;
  --stage-bg:#000000; --stage-line:#141417; --stage-shadow:none; --glass:rgba(12,12,15,.78); --glass-line:#222228; --glass-shadow:none;
  --label-bg:rgba(0,0,0,.72); --label-line:#222228; --tip-bg:#F4F3EF; --tip-ink:#000000; --bead-rim:#000000; --halo-a:.14;
  --bar-ok:#7BE8B0; --bar-dec:#FF6A2B; --bar-now:#FFB48F; --bar-bad:#6B3A40; --bar-track:#24242A; --raise:#24242A; --pop-bg:#151518; --shim:rgba(255,255,255,.06); --amber-ink:#FFC46B; --amber-soft:#2A2110;
  --track:#121215; --empty-thumb:#121215; --run-shadow:0 30px 80px -40px rgba(255,106,43,.35) }}
:root[data-theme="dark"]{
  color-scheme:dark;
  --ground:#000000; --nav-bg:#050506; --nav-line:#17171B;
  --card:#0B0B0D; --card-line:#1F1F24; --card-shadow:none;
  --soft:#121215; --seg-on:#1F1F24; --seg-on-shadow:none;
  --input-bg:#000000; --input-line:#2A2A31; --line-soft:#1F1F24; --chip-bg:#121215;
  --ink:#F4F3EF; --ink2:#C9C8CF; --muted:#8B8B96; --faint:#6B6B76;
  --accent:#FF6A2B; --on-accent:#000000; --accent-ink:#FF8A5B; --accent-soft:#2A1308; --accent-line:#5A2A14; --accent-glow:0 0 24px rgba(255,106,43,.45);
  --primary:#F4F3EF; --on-primary:#000000;
  --ok:#3DDC84; --ok-ink:#3DDC84; --ok-soft:#0E2A1A;
  --fail:#FF7A7A; --fail-ink:#FF8A8A; --fail-soft:#1F0A0A; --fail-line:#5A1F1F;
  --new-soft:#1C1533; --new-ink:#B6A4FF; --iter-soft:#0F1D33; --iter-ink:#8DB2FF;
  --strip-mid:#020203; --strip-dots:none; --strip-glow:var(--aurora); --warn:#FBBF24; --glow:0 0 7px; --glow-mix:75%; --aurora:radial-gradient(60% 120% at 100% 0%,rgba(255,106,43,.16),transparent 60%),radial-gradient(50% 120% at 0% 100%,rgba(155,123,255,.10),transparent 60%);
  --pop-shadow:0 30px 60px -20px rgba(0,0,0,.9);
  --dock-bg:#0B0B0D; --dock-ink:#F4F3EF; --dock-muted:#8B8B96; --dock-line:#2A2A31;
  --dock-shadow:0 24px 60px rgba(0,0,0,.8),0 0 40px rgba(255,106,43,.12),0 0 0 1px #26262C inset;
  --thumb-shadow:0 0 0 1px #1F1F24;
  --link:#FF8A5B; --link-hover:#FFB08F; --ring:rgba(255,106,43,.4);
  --b-people:#FF6A2B; --b-looks:#9B7BFF; --b-realism:#39C6FF; --b-winners:#3DDC84; --b-rules:#F4F3EF; --b-tags:#4A4A55;
  --stage-bg:#000000; --stage-line:#141417; --stage-shadow:none; --glass:rgba(12,12,15,.78); --glass-line:#222228; --glass-shadow:none;
  --label-bg:rgba(0,0,0,.72); --label-line:#222228; --tip-bg:#F4F3EF; --tip-ink:#000000; --bead-rim:#000000; --halo-a:.14;
  --bar-ok:#7BE8B0; --bar-dec:#FF6A2B; --bar-now:#FFB48F; --bar-bad:#6B3A40; --bar-track:#24242A; --raise:#24242A; --pop-bg:#151518; --shim:rgba(255,255,255,.06); --amber-ink:#FFC46B; --amber-soft:#2A2110;
  --track:#121215; --empty-thumb:#121215; --run-shadow:0 30px 80px -40px rgba(255,106,43,.35) }

/* ---------- base ---------- */
*,*::before,*::after{box-sizing:border-box}
html,body{background:var(--ground)}
body{margin:0;color:var(--ink);font:400 14px/1.5 var(--ui);-webkit-font-smoothing:antialiased;overflow-wrap:break-word;font-feature-settings:"cv11","ss01"}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:20;background:var(--nav-bg)}
a{color:var(--link)} a:hover{color:var(--link-hover)}
[hidden]{display:none!important}
.gutter{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
@media (min-width:900px){.gutter{padding-left:max(28px,env(safe-area-inset-left,0px));padding-right:max(28px,env(safe-area-inset-right,0px))}}
.shell{max-width:1440px;margin:0 auto}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
button{font:inherit;cursor:pointer;color:inherit}
button:disabled{cursor:default}
:is(input,select,textarea,button,summary,a,[tabindex]):focus-visible{outline:none;box-shadow:0 0 0 3px var(--ring)}
svg{flex:none}
.ic{display:inline-flex;flex:none}
.ic svg{width:16px;height:16px}
input[type="number"],select,textarea,input[type="search"],input[type="text"],input[type="url"]{font:inherit;color:var(--ink);background:var(--input-bg);border:1px solid var(--input-line);border-radius:var(--r-sm);padding:9px 12px;width:100%;min-width:0;transition:border-color .15s}
input[type="number"]{font-family:var(--mono);font-variant-numeric:tabular-nums}
input:hover,select:hover,textarea:hover{border-color:var(--muted)}
textarea{resize:vertical;line-height:1.45}
input[type="range"]{width:100%;accent-color:var(--accent);height:20px;margin:0}
.label{font:500 11px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:8px}
.label output,.label b{color:var(--ink);letter-spacing:.02em;font-weight:500;font-variant-numeric:tabular-nums}
.hint{font-size:12.5px;color:var(--muted);margin:0;line-height:1.45}
.status{font-size:12.5px;margin:0}
.status.ok{color:var(--ok-ink)} .status.bad{color:var(--fail-ink)}
.chev{width:7px;height:7px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:-3px 2px 0;transition:transform .2s;opacity:.7}
[aria-expanded="true"] > .chev{transform:rotate(225deg);margin-top:3px}

/* ---------- buttons ---------- */
.btn{height:34px;padding:0 13px;border:1px solid var(--input-line);background:var(--card);color:var(--ink);border-radius:var(--r-sm);font:500 13px var(--ui);display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;transition:border-color .15s,background .15s,transform .1s}
.btn:hover{border-color:var(--muted)}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.btn.go{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600;box-shadow:var(--accent-glow)}
.btn.dark{background:var(--primary);border-color:var(--primary);color:var(--on-primary);font-weight:600}
.btn.ghost{background:transparent;border-color:transparent;color:var(--muted);padding:0 9px}
.btn.ghost:hover{color:var(--ink);background:var(--soft)}
.btn.big{height:46px;border-radius:12px;font-size:15px;width:100%}
.btn.done{color:var(--ok-ink)}
.linkbtn{border:0;background:none;padding:0;font:600 13px var(--ui);color:var(--accent-ink);cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.linkbtn:hover{color:var(--link-hover)}
.icon{border:0;background:transparent;color:var(--muted);width:30px;height:30px;border-radius:8px;display:inline-grid;place-items:center}
.icon:hover{color:var(--ink);background:var(--soft)}
.icon svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.icon.done{color:var(--ok-ink)}

/* ---------- header ---------- */
/* v32: one line, 60 px. Header, memory strip and page share the page's ground: no band, rule or edge between them.
   When the line would not fit, fitHeader compacts it step by step: Images · Video as icons (c1), the brands as one menu (c2),
   the tabs as icons (c3); only a phone lets it wrap (wrap). */
.topbar{background:var(--ground);position:relative;z-index:12}
.topbar-in{display:flex;align-items:center;gap:16px;flex-wrap:nowrap;min-height:60px;padding-block:10px}
.topbar-in > *{flex:none}
.mark{display:flex;align-items:center;gap:10px}
.logo svg{display:block}
.logo{width:28px;height:28px;color:var(--ink);display:inline-grid;place-items:center;font:700 14px var(--display);flex:none}   /* v38.26.1: the mark v3 stands bare, in the text colour */
.mark strong{font:700 16px var(--display);letter-spacing:-.01em;white-space:nowrap}
.seg{display:inline-grid;grid-auto-flow:column;gap:4px;padding:4px;background:var(--soft);border-radius:12px;min-width:0}
.seg button{height:32px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:var(--muted);font:500 13px var(--ui);display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.seg button:hover:not(:disabled){color:var(--ink)}
.seg button[aria-pressed="true"]{background:var(--seg-on);box-shadow:var(--seg-on-shadow);color:var(--ink);font-weight:600}
.seg.fill{display:grid;grid-auto-columns:minmax(0,1fr)}
.seg.fill button{padding:0 6px}
#brands{max-width:100%;overflow-x:auto;scrollbar-width:none}
#brands::-webkit-scrollbar{display:none}
.seg button.pending{position:relative;color:var(--ink)}
.seg button.pending::after{content:"";position:absolute;right:6px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--accent);animation:breathe 1s ease-in-out infinite}
.brandwrap{position:relative}
.brandbtn{display:none;height:40px;padding:0 12px;border:0;border-radius:12px;background:var(--soft);color:var(--ink);font:600 13px var(--ui);align-items:center;gap:8px;white-space:nowrap}
.brandbtn .chev{color:var(--muted)}
.views{display:flex;gap:4px;margin-left:auto;position:relative}
/* v38.37: lay the logo: the run's line on the B, and the viewer's button. */
.layline{align-items:center}
.drawline{margin:0}
.layline .hint{margin:0}
.vw-lay{margin-top:8px}
/* Motion v2 (17 Nov): one thumb under the selected tab (and the brand), placed by script from the selected button, travelling on
   the spring by transform only (its new width is drawn from the old one by scaleX); the label takes its colour as it arrives. A row is .thumbed only once its thumb is placed: until then the old fill shows. */
.vthumb{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;z-index:0;transform-origin:0 0;transition:transform var(--t-thumb) var(--ease-spring)}
.vthumb.now{transition:none}
.vthumb i{display:block;width:100%;height:100%;border-radius:10px;background:var(--primary)}
#brands .vthumb i{border-radius:9px;background:var(--seg-on);box-shadow:var(--seg-on-shadow)}
.vthumb.sqa i{animation:liqa var(--t-thumb) ease-out}
.vthumb.sqb i{animation:liqb var(--t-thumb) ease-out}
@keyframes liqa{35%{transform:scale(1.07,.94)}70%{transform:scale(.99,1.01)}}
@keyframes liqb{35%{transform:scale(1.07,.94)}70%{transform:scale(.99,1.01)}}
.views.thumbed button,#brands.thumbed button{position:relative;z-index:1;transition:color var(--t-hover)}
.views.thumbed button[aria-selected="true"],.views.thumbed button[aria-selected="true"]:hover{background:transparent}
#brands.seg{position:relative}
#brands.thumbed button[aria-pressed="true"]{background:transparent;box-shadow:none}
.topbar.c2 #brands .vthumb,.topbar.fitting .vthumb{display:none}
.topbar.c2 #brands.thumbed button[aria-pressed="true"]{background:var(--seg-on);box-shadow:var(--seg-on-shadow)}
/* The page change: the old view's sections step out on a layer of their own (fixed, inert, each over where it was) while the new
   view, rendered at once underneath, waits out the step and rises: ten sections at most, 50 ms apart. */
.vghost{position:fixed;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;z-index:1}
.vghost > .vg-part{position:absolute;margin:0;box-sizing:border-box}
.vghost > .vg-body{min-width:0}
.vghost.vout-l{animation:voutL var(--t-exit) var(--ease-exit) forwards}
.vghost.vout-r{animation:voutR var(--t-exit) var(--ease-exit) forwards}
.vghost.vout-u{animation:voutU var(--t-exit) var(--ease-exit) forwards}
@keyframes voutL{to{opacity:0;transform:translateX(-28px)}}
@keyframes voutR{to{opacity:0;transform:translateX(28px)}}
@keyframes voutU{to{opacity:0;transform:translateY(-6px)}}
.vrise{animation:rise10 var(--t-rise) var(--ease-calm) both;animation-delay:calc(var(--rw, 0ms) + 60ms + var(--i, 0) * var(--t-step))}
@keyframes rise10{from{opacity:0;transform:translateY(10px)}}
@media (prefers-reduced-motion:reduce){.vthumb{transition:none}.vthumb i{animation:none !important}.vghost{display:none}.vrise{animation:none}}
.views button{height:36px;padding:0 14px;border:0;border-radius:10px;background:transparent;color:var(--ink2);font:500 14px var(--ui);display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.views button:hover{background:var(--soft)}
.views button[aria-selected="true"]{background:var(--primary);color:var(--on-primary);font-weight:600}
.views .c{font:500 12px var(--mono);color:var(--accent-ink)}
.views button[aria-selected="true"] .c{color:inherit;opacity:.75}
.tools{position:relative;display:flex;align-items:center;gap:4px;padding-left:12px;margin-left:-4px;border-left:1px solid var(--line-soft)}
.tbtn{width:36px;height:36px;padding:0;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--ink2);display:inline-grid;place-items:center;text-decoration:none}
.tbtn:hover{background:var(--soft);color:var(--ink)}
.tbtn[aria-expanded="true"]{background:var(--soft);border-color:var(--input-line);color:var(--ink)}
.tbtn svg{width:17px;height:17px}
/* v38.31 (the clean design 1.1): the tools in one menu under "⋯"; each says its name (its aria-label). Opens with the open token. */
.moremenu{position:absolute;right:0;top:calc(100% + 8px);z-index:40;min-width:224px;padding:6px;display:grid;gap:2px;border-radius:14px;background:var(--card);border:1px solid var(--card-line);box-shadow:var(--pop-shadow);transform-origin:top right;animation:mmin var(--t-open) var(--ease-enter)}
.moremenu[hidden]{display:none}
@keyframes mmin{from{opacity:0;transform:translateY(-6px) scale(.98)}}
.moremenu .tbtn{width:100%;height:40px;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:0 10px}
.moremenu .tbtn[hidden]{display:none}
.moremenu .tbtn::after{content:attr(aria-label);font:500 14px/1 var(--sans);color:var(--ink)}
.moremenu .thmenu{position:static;width:auto;box-shadow:none;border:0;padding:0 0 0 28px;background:transparent}
.views .c.todo{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--bar-dec);color:#fff;font:600 11px/18px var(--mono);text-align:center;font-variant-numeric:tabular-nums}
.views button[aria-selected="true"] .c.todo{color:#fff;opacity:1}
.thmenu{position:absolute;right:40px;top:calc(100% + 8px);z-index:30;width:176px;padding:6px;display:grid;gap:2px;border-radius:14px;background:var(--card);border:1px solid var(--card-line);box-shadow:var(--pop-shadow)}
.thmenu button{height:36px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--ink2);font:500 13px var(--ui);display:flex;align-items:center;gap:10px;text-align:left}
.thmenu button:hover{background:var(--soft);color:var(--ink)}
.thmenu button[aria-pressed="true"]{background:var(--soft);color:var(--ink);font-weight:600}
.thmenu .tick{margin-left:auto;display:inline-flex;opacity:0}
.thmenu button[aria-pressed="true"] .tick{opacity:1}
.topbar.c3 .views .tl{display:none}
.topbar.c3 .views button{padding:0 11px}
.topbar.c2 .brandbtn{display:inline-flex}
.topbar.c2 #brands{display:none;position:absolute;left:0;top:calc(100% + 8px);z-index:30;grid-auto-flow:row;min-width:200px;padding:6px;border-radius:14px;background:var(--card);border:1px solid var(--card-line);box-shadow:var(--pop-shadow)}
.topbar.c2 #brands.open{display:grid}
.topbar.c2 #brands button{justify-content:flex-start;height:36px}
.topbar.wrap .topbar-in{flex-wrap:wrap;row-gap:10px}
.topbar.wrap .views{margin-left:0}

/* ---------- memory strip ---------- */
.strip{position:relative;overflow:hidden;background:linear-gradient(180deg,var(--nav-bg) 0%,var(--strip-mid) 42%,var(--ground) 100%)}
/* The dots and the glow fade out at both edges, so nothing draws a line where the strip meets the header or the page. */
.strip::before,.strip::after{content:"";position:absolute;inset:0;pointer-events:none;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 30%,#000 62%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 30%,#000 62%,transparent 100%)}
.strip::before{background:var(--strip-dots)}
.strip::after{background:var(--aurora);opacity:.8}
.strip-in{position:relative;z-index:1;display:flex;align-items:center;gap:14px 40px;flex-wrap:wrap;padding-block:18px 22px}
.strip-text{display:grid;gap:8px;min-width:0;flex:0 1 auto}
.nums{display:flex;align-items:flex-start;gap:14px;min-width:0}
/* One small dot says whether Big Brain is connected (green), showing a saved copy (amber) or offline (red); its words are in the tooltip. */
.pulse{width:9px;height:9px;border-radius:50%;background:var(--faint);flex:none;margin-top:12px}
.pulse[data-s="ok"]{background:var(--ok);box-shadow:0 0 0 3px color-mix(in srgb,var(--ok) 18%,transparent)}
.pulse[data-s="warn"]{background:var(--warn);box-shadow:0 0 0 3px color-mix(in srgb,var(--warn) 22%,transparent)}
.pulse[data-s="bad"]{background:var(--fail);box-shadow:0 0 0 3px color-mix(in srgb,var(--fail) 22%,transparent)}
.pulse[data-s="wait"]{animation:breathe 1.6s ease-in-out infinite}
.strip-note{margin:0;font-size:12.5px;color:var(--muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.strip-note .linkbtn{font-size:12.5px}
.stat{display:grid;gap:2px;min-width:0}
.stat b{font:700 24px/1.15 var(--display);letter-spacing:-.01em;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.stat span{font-size:12px;color:var(--muted);white-space:nowrap}
.stat.up b{color:var(--ok-ink)} .stat.warn b{color:var(--accent-ink)}
.cons{position:relative;flex:1 1 300px;max-width:560px;height:84px;margin-left:auto}
.cons canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
/* v30: the strip belongs to Ideas. On Batches and Memory it folds away smoothly, and its dot moves next to the title. */
.strip{display:grid;grid-template-rows:1fr}   /* v38.26 (note 59): no fold transition; a tab switch changes it at once */
.strip>.strip-in{min-height:0;overflow:hidden}
body[data-view="batches"] .strip,body[data-view="memory"] .strip,body[data-view="analysis"] .strip,body[data-view="settings"] .strip{grid-template-rows:0fr;opacity:0;pointer-events:none}
.pulse.mini{width:8px;height:8px;margin:0;opacity:0;transition:opacity .3s ease}
body[data-view="batches"] .pulse.mini,body[data-view="memory"] .pulse.mini,body[data-view="analysis"] .pulse.mini,body[data-view="settings"] .pulse.mini{opacity:1}
@media (prefers-reduced-motion:reduce){.strip,.pulse.mini{transition:none}}
@media (max-width:640px){.stat b{font-size:20px}.nums{gap:10px}.pulse{margin-top:9px}.cons{height:64px;flex-basis:100%;max-width:none}}
@keyframes breathe{50%{opacity:.35}}
/* v32: 56 px, on Ideas only, with no background, edge or dot grid of its own, so in both themes it reads as the page; the dark
   theme keeps a faint glow that fades out before the strip's edges. The numbers sit on one line and the constellation fills the
   rest. The status dot is the one by the name on every tab. The padding lives inside, so folding leaves nothing behind. */
.strip{background:none}
.strip::before{display:none}
.strip::after{background:var(--strip-glow);opacity:.8}
.strip-in{padding-block:0;gap:0 32px;flex-wrap:nowrap;width:100%}
.strip-text{display:flex;align-items:center;gap:4px 20px;flex-wrap:wrap;min-height:56px;padding-block:8px}
.nums{align-items:center}
.nums > .pulse{display:none}
.stat{display:inline-flex;align-items:baseline;gap:6px}
.stat b{font-size:18px;line-height:1.2}
.cons{flex:1 1 200px;max-width:none;height:44px}
.pulse.mini,body[data-view] .pulse.mini{opacity:1}
@media (max-width:640px){.strip-in{flex-wrap:wrap}.stat b{font-size:16px}.cons{display:none}}

/* ---------- layout ---------- */
.brief,.blk,.picker,.plist,.selgrid,.mini,.peek-list,.ready,.board,.more,.queue,.qlist,.pop{grid-template-columns:minmax(0,1fr)}
.peek-list li,.headline,.why,.prow span,.qrow .h,.notice,.ready span,.toggle span,.hint,.status,#dock-note{overflow-wrap:anywhere}
.layout{display:grid;gap:16px;grid-template-columns:minmax(0,1fr);padding-block:16px 150px}
.panel{background:var(--card);border:1px solid var(--card-line);border-radius:var(--r);box-shadow:var(--card-shadow)}

/* ---------- brief ---------- */
.brief{display:grid;min-width:0}
.blk{display:grid;gap:10px;padding:18px 20px;border-top:1px solid var(--line-soft);min-width:0}
.blk:first-child{border-top:0}
.shead{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px}
.shead.what{margin-top:8px}
.setc{color:var(--accent-ink);margin-left:6px}
.srow{position:relative;display:flex;align-items:flex-start;gap:8px;min-height:32px}
.slabel{flex:0 0 76px;padding-top:6px;font-size:13px;color:var(--muted);overflow-wrap:anywhere;line-height:1.3}
.svals{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.chips{display:contents}
.chip{height:30px;padding:0 3px 0 10px;display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:var(--accent-soft);border:1px solid var(--accent-line);font:500 13px var(--ui);color:var(--ink);max-width:100%;min-width:0}
.chip .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.chip code,.opt .cc{font:600 10px var(--mono);color:var(--accent-ink);letter-spacing:.02em}
.chip .x{width:22px;height:22px;flex:none;border:0;border-radius:50%;background:transparent;color:var(--accent-ink);font-size:15px;line-height:1;display:inline-grid;place-items:center;padding:0}
.chip .x:hover{background:color-mix(in srgb,var(--accent) 14%,transparent)}
.anychip{height:30px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border-radius:999px;border:1px dashed var(--input-line);background:transparent;font:500 13px var(--ui);color:var(--muted)}
.anychip:hover{color:var(--ink);border-color:var(--muted)}
.anychip.claude{border:0;background:var(--chip-bg);color:var(--ink2)}
.anychip.claude .ic,.opt .spark{color:var(--accent-ink)}
.anychip.claude .ic svg{width:13px;height:13px}
.morechip{height:30px;padding:0 10px;border-radius:999px;border:0;background:var(--chip-bg);font:600 12px var(--ui);color:var(--ink2)}
.morechip:hover{color:var(--ink)}
.addbtn{width:30px;height:30px;padding:0;flex:none;border-radius:999px;border:1px solid var(--input-line);background:transparent;color:var(--ink2);display:inline-grid;place-items:center}
.addbtn:hover{color:var(--ink);border-color:var(--muted)}
.addbtn svg{width:14px;height:14px}
.vbtn{height:30px;padding:0 10px;display:inline-flex;align-items:center;gap:8px;border-radius:999px;border:1px solid var(--input-line);background:var(--input-bg);font:500 13px var(--ui);color:var(--ink);max-width:100%}
.vbtn:hover{border-color:var(--muted)}
.vbtn:disabled{color:var(--muted)}
.vbtn .v{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vbtn .v b{font-family:var(--mono);font-weight:500}
.vbtn.add{width:30px;padding:0;justify-content:center;background:transparent}
.vbtn.add .chev{display:none}
.vbtn.add svg{width:14px;height:14px}
.shead .label{white-space:nowrap}
.minibtn{height:28px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border-radius:8px;border:1px solid var(--input-line);background:var(--card);font:500 12px var(--ui);color:var(--ink);max-width:150px}
.minibtn span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.minibtn .chev{color:var(--muted)}
.filterbtn{height:34px;width:100%;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:10px;border:1px dashed var(--input-line);background:transparent;color:var(--ink2);font:500 13px var(--ui)}
.filterbtn:hover{color:var(--ink);border-color:var(--muted)}
.filterbtn svg{width:14px;height:14px}
.claude-note{padding-left:84px;color:var(--faint)}
.notebtn{border:0;background:none;padding:0;font:inherit;color:var(--muted);text-decoration:underline dotted;text-underline-offset:3px}
.notebtn:hover{color:var(--accent-ink)}
.popwrap{position:relative}
.pop{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 6px);display:grid;gap:10px;padding:14px;border-radius:16px;background:var(--card);border:1px solid var(--card-line);box-shadow:var(--pop-shadow);max-height:min(480px,72vh);overflow:auto;overscroll-behavior:contain}
.pop.right{left:auto;right:0;width:min(320px,calc(100vw - 32px))}
.ptitle{font:600 15px var(--ui);display:flex;justify-content:space-between;align-items:center;gap:8px}
.ptitle span{font:500 12px var(--mono);color:var(--muted)}
.phead{display:flex;align-items:center;gap:6px;min-width:0}
.phead .ptitle{flex:1;min-width:0}
.phead .ptitle b{font:600 15px var(--ui);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pbtn{width:30px;height:30px;flex:none;border:0;border-radius:8px;background:transparent;color:var(--muted);display:inline-grid;place-items:center;padding:0;font-size:18px;line-height:1}
.pbtn:hover{color:var(--ink);background:var(--soft)}
.pbtn .chev{transform:rotate(135deg);margin:0 0 0 3px;width:8px;height:8px}
.search{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border-radius:10px;background:var(--ground);border:1px solid var(--line-soft);color:var(--muted)}
.search svg{width:16px;height:16px}
.search input[type="search"]{flex:1;min-width:0;border:0;background:transparent;padding:0;height:100%;font:14px var(--ui);color:var(--ink);box-shadow:none}
.search input[type="search"]:focus-visible{box-shadow:none}
.search:focus-within{box-shadow:0 0 0 3px var(--ring)}
.olist{display:grid;gap:2px;grid-template-columns:minmax(0,1fr)}
.minihead{display:flex;justify-content:space-between;gap:8px;font:500 10px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--faint);padding:8px 8px 2px}
.opt{display:flex;align-items:center;gap:10px;min-height:36px;width:100%;padding:4px 8px;border:0;border-radius:9px;background:transparent;text-align:left;font:400 14px var(--ui);color:var(--ink)}
.opt:hover{background:var(--soft)}
.opt[aria-pressed="true"]{background:var(--accent-soft)}
.opt .box{width:18px;height:18px;flex:none;border-radius:5px;border:1.5px solid var(--input-line);display:inline-grid;place-items:center;color:var(--on-accent)}
.opt.radio .box{border-radius:50%}
.opt[aria-pressed="true"] .box{background:var(--accent);border-color:var(--accent)}
.opt[aria-pressed="true"] .box::after{content:"";width:8px;height:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-1px) rotate(-45deg)}
.opt .lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.opt .lbl small{color:var(--muted);font-size:12px}
.opt code{font:12px var(--mono);color:var(--muted)}
.opt .val{font-size:12px;color:var(--faint);white-space:nowrap;max-width:45%;overflow:hidden;text-overflow:ellipsis}
.opt .val.on{color:var(--accent-ink)}
.opt .dot{width:6px;height:6px;flex:none;border-radius:50%;background:transparent}
.opt .dot.on{background:var(--accent)}
.opt .spark{color:var(--accent-ink)}
.pfoot{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.pfoot .btn.dark{height:34px;margin-left:auto}
.preset{display:flex;align-items:center;gap:4px}
.preset .opt{flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:0}
.preset .opt .lbl{width:100%;font-weight:500}
.preset .opt code{font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.psave{display:grid;gap:8px;padding-top:10px;border-top:1px solid var(--line-soft)}

/* avatar picker */
.plist{display:grid;max-height:260px;overflow:auto;scrollbar-width:thin;margin:0 -4px;padding:0 4px;gap:1px}
.pgroup{font:500 10px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--faint);padding:8px 4px 4px}
.prow{display:grid;grid-template-columns:18px 70px minmax(0,1fr);gap:10px;align-items:center;border:0;background:transparent;text-align:left;padding:6px 6px;border-radius:9px;font-size:13px;color:var(--ink2)}
.prow:hover{background:var(--soft)}
.prow i{width:18px;height:18px;border-radius:5px;border:1.5px solid var(--input-line);display:inline-grid;place-items:center;color:var(--on-accent)}
.prow[aria-pressed="true"]{background:var(--accent-soft);color:var(--ink)}
.prow[aria-pressed="true"] i{background:var(--accent);border-color:var(--accent)}
.prow[aria-pressed="true"] i::after{content:"";width:8px;height:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-1px) rotate(-45deg)}
.prow b{font:500 11px var(--mono);letter-spacing:.03em;color:var(--ink)}
.prow span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* selector value form */
.selgrid{display:grid;gap:8px}
.selform{display:grid;gap:8px;padding:12px;border:1px solid var(--card-line);border-radius:var(--r-md);background:var(--soft)}
.selform .code{font-family:var(--mono);text-transform:uppercase;letter-spacing:.04em}
.pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.line{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;color:var(--ink2)}
.line b{color:var(--ink);font-family:var(--mono);font-weight:500}
.stepper{display:inline-grid;grid-template-columns:34px 52px 34px;align-items:center;height:38px;border:1px solid var(--input-line);border-radius:10px;background:var(--input-bg);overflow:hidden}
.stepper button{border:0;background:transparent;color:var(--ink2);height:38px;font-size:16px}
.stepper button:hover{color:var(--ink);background:var(--soft)}
.stepper input[type="number"]{height:38px;width:100%;padding:0;border:0;border-radius:0;background:transparent;text-align:center;font:600 15px var(--mono);color:var(--ink);font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
.stepper input[type="number"]::-webkit-inner-spin-button,.stepper input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.stepper input[type="number"]:focus-visible{box-shadow:inset 0 0 0 2px var(--ring)}
.line label .hint{margin-left:4px;font-size:11.5px;color:var(--faint)}
.mini{display:grid;gap:8px;font-size:12px;color:var(--muted)}
.split{display:flex;height:8px;border-radius:999px;overflow:hidden;background:var(--soft)}
.split i{display:block;height:100%;transition:width .3s}
.split .it{background:var(--iter-ink)} .split .nw{background:var(--new-ink)}
.legend{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.legend .it{color:var(--iter-ink)} .legend .nw{color:var(--new-ink);font-weight:600}
.legend b{font-family:var(--mono);font-weight:600}
.segwrap{display:grid;gap:6px}
.seglabel{font-size:12.5px;color:var(--muted)}
details.fold > summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--ink2)}
details.fold > summary::-webkit-details-marker{display:none}
details.fold[open] > summary{margin-bottom:10px}
details.fold[open] > summary .chev{transform:rotate(225deg);margin-top:3px}
.toggle{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;font-size:13px;color:var(--ink2);cursor:pointer}
.toggle + .toggle{margin-top:10px}
.toggle input{appearance:none;-webkit-appearance:none;width:36px;height:20px;border-radius:999px;background:var(--input-line);position:relative;cursor:pointer;margin:1px 0 0;transition:background .2s;flex:none}
.toggle input::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#FFFFFF;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .2s}
.toggle input:checked{background:var(--accent)}
.toggle input:checked::after{transform:translateX(16px)}
.ready{display:grid;gap:6px;padding:16px 20px;border-top:1px solid var(--line-soft);font-size:13px;color:var(--ink2);background:var(--fail-soft);border-radius:0 0 var(--r) var(--r)}
.ready strong{color:var(--fail-ink);font-weight:600;display:flex;gap:8px;align-items:center}
.ready strong::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--fail)}
.ready .linkbtn{justify-self:start}
.sched{display:grid;gap:6px;margin-top:4px}
.sched-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sched-head .label{margin:0}
.sched-next{color:var(--ink2)}
.sched-next.due{color:var(--ok-ink)}
.schedform select{font:inherit;font-size:13px;width:auto;padding:5px 8px;border-radius:8px}
.schedform .range{display:inline-flex;align-items:center;gap:6px;color:var(--muted)}
.days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.days button{font:inherit;font-size:12px;padding:6px 0;border-radius:8px;border:1px solid var(--input-line);background:var(--card);color:var(--muted)}
.days button[aria-pressed="true"]{border-color:var(--accent-line);color:var(--ink);background:var(--accent-soft)}

/* ---------- board ---------- */
.board{display:grid;gap:16px;min-width:0}
.bhead{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;justify-content:space-between}
.bhead h1{margin:0;font:700 24px/1.2 var(--display);letter-spacing:-.015em}
h2,h3{font-family:var(--ui)}
.tabs{display:flex;gap:6px;flex-wrap:wrap}
.tabs button{height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--input-line);background:transparent;color:var(--ink);font:500 13px var(--ui)}
.tabs button:hover{border-color:var(--muted)}
.tabs button[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.tabs .c{font-family:var(--mono);font-size:12px;opacity:.75}
.tabs .c::before{content:" · "}
#board-acts{display:flex;gap:4px;flex-wrap:wrap}
.notice{border-radius:var(--r-md);padding:12px 14px;font-size:13.5px;border:1px solid var(--card-line);background:var(--card);display:flex;gap:10px;align-items:flex-start;color:var(--ink2);box-shadow:var(--card-shadow)}
.notice::before{content:"";flex:0 0 7px;height:7px;border-radius:50%;margin-top:7px;background:var(--faint)}
.notice.bad{background:var(--fail-soft);border-color:var(--fail-line);color:var(--ink)} .notice.bad::before{background:var(--fail)}
.notice.ok::before{background:var(--ok)}
.notice.acts{flex-wrap:wrap;align-items:center}.notice.acts::before{margin-top:0}.notice.acts>span{flex:1 1 220px}.notice.acts .btn{height:32px}
#board-body{display:grid;gap:24px;min-width:0}
.sheet{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
/* v38.25 (clean design 1.5): the idea card, 196 px, and the panel that holds the rest of the idea. */
.sheet{gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr))}
.icard{position:relative;height:196px;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:18px;background:var(--card);border:1.5px solid var(--card-line);min-width:0;transition:border-color var(--t-hover),background-color var(--t-hover);content-visibility:auto;contain-intrinsic-size:auto 196px}
.icard:hover{border-color:var(--input-line)}
.icard.on{border-color:var(--accent)}
.icard.open{background:var(--soft);border-color:var(--muted)}
.icard.queued{opacity:.6}
.icard.fresh{animation:bin var(--t-appear) var(--ease-enter)}
.ic-top{display:flex;align-items:center;gap:8px;min-width:0;height:24px}
.icard .pick{flex:none;position:relative;width:24px;height:24px;margin:0;padding:0;border-radius:12px;border:2px solid var(--faint);background:transparent;font-size:0;color:transparent;cursor:pointer;transition:background-color var(--t-hover),border-color var(--t-hover),transform var(--t-press)}
.icard .pick:hover:not(:disabled){border-color:var(--muted)}
.icard .pick[aria-pressed="true"]{background:var(--accent);border-color:var(--accent)}
.icard .pick[aria-pressed="true"]::after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid var(--on-accent);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.icard .pick.saved{border-color:var(--ok)}
.icard .pick.queued{background:var(--ok-soft);border-color:var(--ok)}
.icard .pick:disabled{cursor:default;opacity:.6}
.ic-kind{min-width:0;font:700 12px var(--ui);color:var(--accent-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ic-s{margin-left:auto;flex:none;font:500 12px var(--ui);color:var(--muted);font-variant-numeric:tabular-nums}
.icard .dstate{flex:none;height:20px;max-width:46%;font-size:11px;overflow:hidden;text-overflow:ellipsis}
.icard .byother{font:500 10.5px var(--mono);letter-spacing:.03em;color:var(--muted);white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis;flex:0 100 auto}
.ic-open{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;font:inherit;cursor:pointer;border-radius:8px}
.ic-text{font:700 16px/1.3 var(--ui);white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ic-why{font-size:13px;line-height:1.35;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ic-why.held{color:var(--amber-ink);font-weight:600}
.ic-foot{display:flex;align-items:center;gap:6px;min-width:0;height:32px}
.ic-chip{height:24px;max-width:42%;box-sizing:border-box;padding:0 8px;border-radius:8px;background:var(--chip-bg);color:var(--ink);font:600 12px/24px var(--ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ic-note{margin-left:auto;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:10px;background:var(--amber-soft);color:var(--amber-ink);font:700 15px var(--ui);cursor:pointer;transition:transform var(--t-press)}
.icard .pick:active:not(:disabled),.ic-note:active,.ip-close:active{transform:scale(.97)}
.idea.ipanel{position:fixed;top:16px;right:16px;bottom:16px;z-index:45;width:min(400px,calc(100vw - 32px));box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:16px;padding:22px;border-radius:24px;background:var(--pop-bg);border:1px solid var(--card-line);box-shadow:var(--pop-shadow);color:var(--ink)}
.idea.ipanel.in{animation:ipin var(--t-panel) var(--ease-enter)}
body:has(#dock:not([hidden])) .idea.ipanel{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
/* v38.25.1 (seen live on v38.25): with the dock showing, the wide views keep room for it under their last line. */
body:has(#dock:not([hidden])) .layout.wide{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
#drawask{z-index:50}   /* review M3: the Draw question stays over the idea panel */
.sheet .ghost-card{min-height:0;height:196px}
@keyframes ipin{from{opacity:0;transform:translateX(16px)}}
.ip-head{display:flex;align-items:flex-start;gap:10px}
.ip-where{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:13px;line-height:1.35;color:var(--muted)}
.ip-where b{color:var(--ink);font-weight:700}
.ip-close{margin-left:auto;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:20px;background:var(--chip-bg);color:var(--ink);font:400 22px/1 var(--ui);cursor:pointer;transition:background-color var(--t-hover),transform var(--t-press)}
.ip-close:hover{background:var(--raise)}
.ip-sec{display:flex;flex-direction:column;gap:6px;min-width:0}
.ip-label{font:700 12px var(--ui);letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.ip-copy{margin:0;font:700 22px/1.2 var(--display);letter-spacing:-.3px;white-space:pre-line;overflow-wrap:anywhere}
.idea.ipanel .headline{display:block;-webkit-line-clamp:unset;font-size:15px}
.idea.ipanel .why{display:block;-webkit-line-clamp:unset;font-size:14px;line-height:1.55;color:var(--ink2)}
.ip-notes{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:16px;background:var(--amber-soft);color:var(--ink)}
.idea.ipanel .warnline,.idea.ipanel .watchline,.idea.ipanel .keptline{margin:0;font-size:13px;line-height:1.5}
.ip-box{padding:12px 14px;border-radius:16px;background:var(--soft)}
.idea.ipanel .prompt{padding:0;background:transparent}
.idea.ipanel .foot{border-top:0;padding-top:0;margin-top:0}
.ip-acts{margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ip-acts .btn{height:48px;border-radius:14px;font-weight:700}
.ip-acts .ip-clear{color:var(--fail-ink)}
@media (prefers-reduced-motion:reduce){.idea.ipanel.in,.icard.fresh,#board-body.vin,.blb.in,.moremenu{animation:none}}
@media (max-width:640px){.idea.ipanel{top:auto;left:8px;right:8px;bottom:8px;width:auto;max-height:85vh}body:has(#dock:not([hidden])) .idea.ipanel{bottom:calc(132px + env(safe-area-inset-bottom,0px));max-height:calc(85vh - 132px)}body:has(#dock:not([hidden])) .layout.wide{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}}
.idea{position:relative;display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:var(--r);background:var(--card);border:1px solid var(--card-line);box-shadow:var(--card-shadow);min-width:0;transition:border-color .2s,box-shadow .2s}
.idea:hover{border-color:var(--input-line)}
.idea.on{border-color:var(--primary);box-shadow:0 0 0 .5px var(--primary),var(--card-shadow)}
.idea.fresh{animation:rise .45s cubic-bezier(.2,.8,.2,1) both}
@keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.top{display:flex;align-items:center;gap:8px;min-width:0}
.kind{flex:none;display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;font:600 11px var(--ui);background:var(--iter-soft);color:var(--iter-ink)}
.idea[data-kind="new"] .kind{background:var(--new-soft);color:var(--new-ink)}
.pick{margin-left:auto;flex:none;height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--input-line);background:transparent;color:var(--ink2);font:600 12px var(--ui);white-space:nowrap}
.pick:hover:not(:disabled){color:var(--ink);border-color:var(--muted)}
.pick[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.pick:disabled{cursor:default}
.pick.saved{border-color:var(--ok);color:var(--ok-ink)}
.pick.queued{background:var(--ok-soft);border-color:transparent;color:var(--ok-ink)}
.main{display:flex;gap:14px;min-width:0}
.frame{position:relative;width:96px;aspect-ratio:var(--ar,9/16);border-radius:10px;overflow:hidden;background:var(--scene);display:flex;flex-direction:column;justify-content:flex-end;padding:8px;color:#FFFFFF;box-shadow:var(--thumb-shadow);isolation:isolate}
.frame::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 40%,rgba(0,0,0,.55))}
.frame .copy{font:600 10px/1.15 var(--display);white-space:pre-line;overflow:hidden;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;text-shadow:0 1px 8px rgba(0,0,0,.4)}
.body{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.headline{font:600 17px/1.3 var(--ui);margin:0;letter-spacing:-.005em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.why{font-size:13px;line-height:1.45;color:var(--ink2);margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.facets{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.facet{height:24px;padding:0 8px;display:inline-flex;align-items:center;border-radius:6px;background:var(--chip-bg);font-size:12px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;border:0}
.facet b{font:500 11px var(--mono);color:var(--ink);letter-spacing:.02em}
.facet.keep{font-family:var(--mono);font-size:11px}
.facet.warn{background:var(--fail-soft);color:var(--fail-ink)}
.facet.add{border:1px dashed var(--input-line);background:transparent;cursor:pointer;font-family:var(--mono);font-size:11px;color:var(--accent-ink)}
.facet.add:hover{border-color:var(--accent-line)}
.prompt{display:grid;gap:4px;padding:10px 12px;border-radius:12px;background:var(--soft);min-width:0}
.prompt .ph{display:flex;justify-content:space-between;align-items:center;gap:8px;font:500 10px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--faint);min-height:24px}
.prompt .ph .icon{width:26px;height:26px;margin-right:-6px}
.prompt .pt{margin:0;font-size:12.5px;line-height:1.45;color:var(--ink2);white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.prompt.full .pt{display:block;-webkit-line-clamp:unset;overflow:visible}
.prompt .pt.none{color:var(--faint)}
.prompt .linkbtn{justify-self:start;font-size:12px}
.dstate{align-self:flex-start;height:24px;font-size:11.5px}
.dstate.wait::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px;animation:blink 1.2s ease-in-out infinite}
@keyframes blink{50%{opacity:.25}}
.more{display:grid;gap:8px}
.more p{margin:0;font-size:12.5px;color:var(--muted)}
.more textarea{min-height:160px;font-size:13px}
.foot{display:flex;gap:6px;align-items:center;justify-content:space-between;border-top:1px solid var(--line-soft);padding-top:8px;margin-top:auto;min-width:0}
.foot code{font:11px var(--mono);color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.acts{display:flex;flex:0 0 auto}
.ghost-card{position:relative;overflow:hidden;border:1px solid var(--card-line);border-radius:var(--r);min-height:230px;background:var(--card);display:grid;place-items:center;color:var(--faint);font:500 11px var(--mono);letter-spacing:.1em;text-transform:uppercase}
.ghost-card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 0%,var(--soft) 50%,transparent 100%);background-size:100% 40%;background-repeat:no-repeat;animation:sweep 1.8s ease-in-out infinite}
@keyframes sweep{from{background-position:0 -60%}to{background-position:0 160%}}
.empty{border:1px dashed var(--input-line);border-radius:var(--r);padding:52px 22px;text-align:center;color:var(--ink2);display:grid;gap:8px;justify-items:center;background:var(--card)}
.empty strong{font:700 18px var(--display);color:var(--ink);letter-spacing:-.01em}
.empty p{margin:0;max-width:52ch;font-size:14px}

/* ---------- batches and queue ---------- */
.batch{display:grid;gap:14px;min-width:0}
.bgroup-head h3{margin:0;font:600 15px var(--ui)}
.bgroup-head h3 span{color:var(--muted);font-weight:400}
details.batch{border:1px solid var(--card-line);border-radius:var(--r);padding:12px 16px;background:var(--card);box-shadow:var(--card-shadow)}
details.batch > summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--ink2)}
details.batch > summary::-webkit-details-marker{display:none}
details.batch > summary b{color:var(--ink);font-family:var(--mono);font-weight:500}
details.batch[open] > summary{margin-bottom:12px}
details.batch[open] > summary .chev{transform:rotate(225deg);margin-top:3px}
.pill{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;font:600 12px var(--ui);background:var(--chip-bg);color:var(--ink2);white-space:nowrap}
.pill.wait{background:var(--accent-soft);color:var(--accent-ink)}
.pill.done{background:var(--ok-soft);color:var(--ok-ink)}
.pill.bad{background:var(--fail-soft);color:var(--fail-ink)}
.next{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px dashed var(--input-line);border-radius:var(--r-md);padding:12px;font-size:13.5px;color:var(--ink2)}
.next a{display:block;margin-top:6px;font-weight:600;text-decoration:none}
.next code{display:block;font:12px/1.5 var(--mono);color:var(--ink);margin-top:4px;overflow-wrap:anywhere}

/* ---------- drawing ---------- */
.drawbar{padding:14px 16px;display:grid;gap:10px}
.dtop{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.dtop h3{margin:0;font:600 15px var(--ui);display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.dtop h3 b{font:600 15px var(--mono);font-variant-numeric:tabular-nums}
.dtop h3 span{font:500 12px var(--mono);color:var(--muted)}
.dacts{display:flex;gap:6px}
.track{display:flex;height:6px;border-radius:999px;background:var(--soft);overflow:hidden}
.track i{display:block;height:100%;background:var(--ok);transition:width .3s}
.track i.bad{background:var(--fail)} .track i.run{background:var(--accent);opacity:.45}
.dnote{font-size:13px;color:var(--ink2);margin:0}
.dnote.bad{color:var(--fail-ink)}
.drawask ul.why{margin:0;padding-left:18px;display:grid;gap:4px}
.bstuckbox{display:contents}
.bdrawbox{display:contents}
.drawask{position:fixed;z-index:16;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom,0px));width:min(440px,calc(100% - 32px));max-height:calc(100vh - 120px);overflow:auto;padding:18px;display:grid;gap:12px;background:var(--card);border:1px solid var(--card-line);border-radius:var(--r);box-shadow:var(--pop-shadow)}
.drawask h2{margin:0;font:700 18px/1.25 var(--display);letter-spacing:-.01em}
.kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 16px;margin:0;font-size:13.5px}
.kv dt{color:var(--muted)} .kv dd{margin:0;text-align:right;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.kv dd small{color:var(--muted);font-size:12px}
.short{display:grid;gap:6px;padding:10px 12px;border-radius:12px;background:var(--accent-soft);border:1px solid var(--accent-line);font-size:13px;color:var(--ink)}
.short a{font-weight:600;text-decoration:none}
.drawask .pfoot .btn{height:38px}

/* ---------- memory view ---------- */
/* The site's Memory → Notes: the folder tree on the left, the open note on the right, two panes of a fixed height that
   scroll inside, so the page never grows. Where the board is narrower than 700px it is one pane: the tree, then the note with Back. */
.mem{display:grid;gap:14px}
.layout.wide{grid-template-columns:minmax(0,1fr);padding-bottom:40px}
.layout.wide > .brief{display:none}
.mv{display:grid;gap:14px;min-width:0;container:mv/inline-size}
.mv a.btn,.mv a.linkbtn{text-decoration:none}
.mv-panes{display:grid;grid-template-columns:minmax(250px,340px) minmax(0,1fr);gap:16px;height:clamp(460px,calc(100vh - 190px),780px);min-width:0}
@supports (height:100dvh){.mv-panes{height:clamp(460px,calc(100dvh - 190px),780px)}}
.mv-tree,.mv-reader{min-height:0;min-width:0;overflow:hidden;display:flex;flex-direction:column}
.mv-find{display:grid;gap:10px;padding:12px;border-bottom:1px solid var(--line-soft)}
.mv-chips{display:flex;gap:6px;flex-wrap:wrap}
.mv-chips button{height:30px;padding:0 12px;border-radius:999px;border:1px solid var(--input-line);background:transparent;color:var(--ink2);font:500 12px var(--ui);white-space:nowrap}
.mv-chips button:hover{border-color:var(--muted);color:var(--ink)}
.mv-chips button.w{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-ink);font-weight:600}
.mv-chips button[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.mv-chips button.w[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.mv-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:6px 8px 14px;scrollbar-width:thin}
.mv-row{--lvl:0;display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:0 10px 0 calc(8px + var(--lvl) * 18px);border:0;border-radius:9px;background:transparent;color:var(--ink);font:400 14px var(--ui);text-align:left;min-width:0}
.mv-row:hover{background:var(--soft)}
.mv-row.head{min-height:36px;font-weight:600;font-size:13.5px;position:sticky;top:0;z-index:1;background:var(--card)}
.mv-row.head:hover{background:var(--soft)}
.mv-row.folder{font-weight:500}
.mv-row[aria-current="true"]{background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent-line)}
.mv-row .car{width:14px;height:14px;flex:none;color:var(--faint);display:inline-grid;place-items:center}
.mv-row .car::before{content:"";width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.mv-row[aria-expanded="true"] > .car::before{transform:rotate(45deg) translate(-1px,-1px)}
.mv-row .car.none::before{display:none}
.mv-row .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mv-row .ct{flex:none;font:12px var(--mono);color:var(--faint);white-space:nowrap}
.mv-row .ct b{font-weight:500;color:var(--accent-ink)}
.mv-row.more .nm{color:var(--accent-ink);font:500 13px var(--ui)}
.mv-row.missing .ct{color:var(--accent-ink);font:600 12px var(--ui)}
.mv-row.unused .nm{color:var(--muted)}
.mv-none{padding:8px 12px 8px calc(30px + var(--lvl,1) * 18px);font-size:13px;color:var(--muted)}
/* State dots: accent waiting, green in use, grey not used. Light gets a soft ring, black a glow. */
.sdot,.lobe{--c:var(--faint);width:7px;height:7px;border-radius:50%;flex:none;background:var(--c);box-shadow:var(--glow) color-mix(in srgb,var(--c) var(--glow-mix),transparent)}
.sdot.waiting{--c:var(--accent)} .sdot.used{--c:var(--ok)} .sdot.unused{--c:var(--faint);box-shadow:none}
.lobe{width:9px;height:9px;--c:var(--b-rules)}
.lobe[data-lobe="people"]{--c:var(--b-people)} .lobe[data-lobe="looks"]{--c:var(--b-looks)} .lobe[data-lobe="realism"]{--c:var(--b-realism)} .lobe[data-lobe="winners"]{--c:var(--b-winners)}
.mv-read{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:16px;padding:26px 32px 22px;scrollbar-width:thin}
.mv-back{display:none;align-self:flex-start;height:32px;padding:0 10px 0 6px;border:0;border-radius:9px;background:var(--soft);color:var(--ink2);font:500 13px var(--ui);align-items:center;gap:6px}
.mv-back .chev{transform:rotate(135deg);margin:0 0 0 4px}
.mv-crumb{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);min-width:0;flex-wrap:wrap}
.mv-crumb .sep{color:var(--faint)}
.mv-st{margin-left:auto;display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;font:600 12px var(--ui);background:var(--chip-bg);color:var(--muted);white-space:nowrap}
.mv-st i{width:6px;height:6px;border-radius:50%;background:currentColor}
.mv-st.waiting{background:var(--accent-soft);color:var(--accent-ink)} .mv-st.waiting i{background:var(--accent);animation:breathe 2s ease-in-out infinite}
.mv-st.used{background:var(--ok-soft);color:var(--ok-ink)}
.mv-title{margin:0;font:700 26px/1.2 var(--display);letter-spacing:-.015em;overflow-wrap:anywhere}
.mv-tags{display:flex;gap:8px;flex-wrap:wrap}
.mv-tag{height:28px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border-radius:8px;background:var(--chip-bg);font-size:12px;color:var(--ink2);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mv-tag b{font:500 12px var(--mono);color:var(--ink)}
.mv-body{white-space:pre-wrap;font-size:15px;line-height:1.65;color:var(--ink2);max-width:76ch;overflow-wrap:anywhere}
.mv-body.wait{color:var(--faint)}
.mv-wired{display:grid;gap:2px;max-width:560px}
.mv-wired .label{padding-bottom:6px;justify-content:flex-start}
.mv-link{display:flex;align-items:center;gap:10px;min-height:36px;padding:6px 10px;border:0;border-radius:10px;background:transparent;text-align:left;font:400 14px var(--ui);color:var(--ink);min-width:0}
.mv-link:hover{background:var(--soft)}
.mv-link .nm{flex:1;min-width:0;overflow-wrap:anywhere}
.mv-link .why{font:11px var(--mono);color:var(--faint);white-space:nowrap}
.mv-foot{margin-top:auto;padding-top:16px;border-top:1px solid var(--line-soft);display:flex;gap:8px 10px;align-items:center;flex-wrap:wrap}
.mv-foot .btn{height:38px}
.mv-foot .meta{margin-left:auto;font-size:12px;color:var(--muted)}
.mv-more{display:flex;gap:6px 14px;flex-wrap:wrap;align-items:center}
.mv-sec{display:grid;gap:2px}
.mv-sec + .mv-sec{margin-top:8px}
.msub{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px 4px;font:500 10px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
.mv-irow{display:flex;align-items:center;gap:10px;min-height:42px;padding:4px 6px 4px 10px;border-radius:10px;min-width:0}
.mv-irow:hover{background:var(--soft)}
.mv-irow .mv-link{flex:1;padding-left:0}
.mv-irow .btn{height:30px;padding:0 11px;font-size:12.5px}
.mv-stats{display:flex;gap:8px 24px;flex-wrap:wrap}
.mv-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.mv-img{display:grid;gap:6px;align-content:start;min-width:0}
.mv-img .frame{width:100%;aspect-ratio:var(--ar,4/5)}
.mv-img .t{font-size:13px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mv-img .n{font-size:12px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mv-img .pill{justify-self:start;height:22px;font-size:11px}
.mform{display:grid;gap:10px}
.mform h3{margin:0;font:700 22px/1.2 var(--display);letter-spacing:-.01em}
.mform textarea{min-height:180px}
@container mv (max-width:699px){
  .mv-panes{grid-template-columns:minmax(0,1fr);height:clamp(440px,calc(100vh - 170px),720px)}
  .mv-panes[data-reading="true"] > .mv-tree,.mv-panes:not([data-reading="true"]) > .mv-reader{display:none}
  .mv-back{display:inline-flex}
  .mv-read{padding:16px 16px 18px}
  .mv-title{font-size:22px}
}

/* ---------- view bar ---------- */
/* v26: beside the board's title, Memory gets its four views (Notes, Brain, Winners, Competitors) with counts, what waits and
   the view's own actions; Batches gets its filter, a search and Start B. One row on a wide board, wrapping on a phone. */
.vbar{flex:1 1 auto;display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap;min-width:0}
.vbar .seg{max-width:100%;overflow-x:auto;scrollbar-width:none;grid-auto-columns:max-content}
.vbar .seg::-webkit-scrollbar{display:none}
.vbar .seg button{height:32px;padding:0 12px}
.vbar .seg .ic svg{width:15px;height:15px}
.vbar .seg .c{font:500 11px var(--mono);color:var(--faint)}
.vbar .seg button[aria-pressed="true"] .c{color:var(--muted)}
.wchip{height:30px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;border-radius:999px;border:0;background:var(--accent-soft);color:var(--accent-ink);font:600 12px var(--ui);white-space:nowrap}
.wchip i{width:6px;height:6px;border-radius:50%;background:var(--accent)}
.wchip:hover{box-shadow:inset 0 0 0 1px var(--accent-line)}
.vacts{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.vacts .btn{height:38px;padding:0 14px;border-radius:10px}
.vacts .btn .ic svg{width:15px;height:15px}
.vacts a.btn{text-decoration:none}
.vbar .search{width:240px;max-width:100%;background:var(--card);border-color:var(--input-line)}
@media (max-width:640px){.vacts{margin-left:0;width:100%}.vbar .search{width:auto;flex:1 1 100%}}
@media (max-width:480px){.vbar .seg .ic{display:none}.vbar .seg button{padding:0 9px}}

/* ---------- memory brain ---------- */
/* The site's Memory → Brain (brain.css) on this page's tokens: lobes, beads, signals, the camera's controls and the glass panel.
   Light gets white bead rims and coloured soft shadows; Black gets glow. Positions are SVG attributes. */
.brain{--panel-w:380px;display:flex;flex-direction:column;gap:10px;min-width:0}
.brain .lobe-people{--c:var(--b-people)} .brain .lobe-looks{--c:var(--b-looks)} .brain .lobe-realism{--c:var(--b-realism)}
.brain .lobe-winners{--c:var(--b-winners)} .brain .lobe-rules{--c:var(--b-rules)} .brain .lobe-tags{--c:var(--muted)}
.brain-top{display:grid;gap:16px;padding-bottom:6px;min-width:0}
.brain-ask{flex:1;min-width:0;max-width:640px;height:44px;display:flex;align-items:center;gap:10px;padding:0 8px 0 14px;border-radius:12px;background:var(--card);border:1px solid var(--accent-line);box-shadow:var(--card-shadow),0 0 0 4px var(--accent-soft)}
.brain-ask:focus-within{border-color:var(--accent)}
.brain-ask .ic{color:var(--accent-ink)}
.brain-ask .ic svg{width:18px;height:18px}
.brain-ask input[type="search"]{flex:1;min-width:0;height:100%;border:0;padding:0;background:transparent;color:var(--ink);font:400 15px var(--ui);box-shadow:none}
.brain-ask input[type="search"]:focus-visible{box-shadow:none}
.brain-kbd{flex:none;height:26px;padding:0 8px;display:inline-flex;align-items:center;border-radius:7px;background:var(--chip-bg);color:var(--muted);font:500 12px var(--mono)}
.brain-chips{display:flex;align-items:center;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.brain-chips::-webkit-scrollbar{display:none}
.brain-try{flex:none;padding-right:2px;color:var(--faint);font:500 11px var(--mono);letter-spacing:.1em;text-transform:uppercase}
.brain-chip{flex:none;height:32px;padding:0 12px;border:1px solid var(--input-line);border-radius:999px;background:var(--card);color:var(--ink2);font:500 13px var(--ui);white-space:nowrap}
.brain-chip:hover{border-color:var(--accent-line);color:var(--ink)}
.brain-chip[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}
.brain-body{position:relative;height:clamp(480px,calc(100vh - 210px),860px);min-width:0}
@supports (height:100dvh){.brain-body{height:clamp(480px,calc(100dvh - 210px),860px)}}
.brain-stage{position:absolute;inset:0;overflow:hidden;border-radius:22px;background:var(--stage-bg);border:1px solid var(--stage-line);box-shadow:var(--stage-shadow)}
.brain-canvas{position:absolute;inset:0}
.brain-frame{position:absolute;top:0;left:0;right:calc(var(--panel-w) + 80px);bottom:64px;visibility:hidden;pointer-events:none}
.brain-canvas > svg{position:absolute;inset:0;display:block;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.bn-controls{position:absolute;top:10px;right:calc(var(--panel-w) + 32px);width:42px;display:flex;flex-direction:column;align-items:stretch;gap:1px;padding:3px;border:1px solid var(--glass-line);border-radius:12px;background:var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:var(--card-shadow)}
.bn-ctl{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;height:32px;padding:0;border:0;border-radius:9px;background:transparent;color:var(--ink2);font:600 10px var(--ui)}
.bn-ctl:hover:not(:disabled){background:var(--chip-bg);color:var(--ink)}
.bn-ctl:disabled{opacity:.38}
.bn-ctl .ic svg{width:15px;height:15px}
.bn-fit{height:38px;margin-top:2px;border-top:1px solid var(--line-soft);border-radius:0 0 9px 9px}
.bn-fit .ic svg{width:13px;height:13px}
.bn-zoom{padding:3px 0;color:var(--muted);font:500 10px var(--mono);text-align:center;font-variant-numeric:tabular-nums}
.brain-empty{position:absolute;top:38%;left:24px;right:calc(var(--panel-w) + 40px);margin:0;color:var(--muted);text-align:center}
.brain-foot{position:absolute;left:20px;right:calc(var(--panel-w) + 40px);bottom:14px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;pointer-events:none}
.brain-growth{flex:0 1 360px;min-width:150px;display:flex;flex-direction:column;gap:8px}
.brain-bars{display:block;width:100%;height:34px}
.brain-bars rect{fill:var(--track)}
.brain-bars rect.is-now{fill:var(--accent)}
.brain-growth-cap{display:flex;justify-content:space-between;gap:12px;color:var(--faint);font:500 11px var(--mono);letter-spacing:.06em;text-transform:uppercase}
.brain-up{color:var(--ok-ink)}
.brain-stats{min-width:0;overflow:hidden;color:var(--faint);font:500 12px var(--mono);white-space:nowrap;text-overflow:ellipsis}
.bn-svg{--bead-o:.92;--rest-o:.68;--dim-o:.2;--tag-o:.9;cursor:grab}
.bn-svg.is-pointing{cursor:pointer} .bn-svg.is-panning{cursor:grabbing}
.bn-svg:focus{outline:none} .bn-svg:focus-visible{box-shadow:inset 0 0 0 2px var(--accent-line)}
.bn-svg circle,.bn-svg path,.bn-svg line{vector-effect:non-scaling-stroke}
.bn-svg [tabindex]:focus{outline:none;box-shadow:none}
.bn-svg [tabindex]:focus-visible{stroke:var(--accent);stroke-width:3px}
.bn-h0{stop-color:var(--c);stop-opacity:var(--halo-a)} .bn-h1{stop-color:var(--c);stop-opacity:calc(var(--halo-a) / 3)} .bn-h2{stop-color:var(--c);stop-opacity:0}
.bn-halo{opacity:.75;pointer-events:none;animation:bn-breathe 9s ease-in-out infinite}
.bn-halo.lobe-looks{animation-delay:-2.2s} .bn-halo.lobe-realism{animation-delay:-4.5s} .bn-halo.lobe-winners{animation-delay:-6.1s} .bn-halo.lobe-rules{animation-delay:-7.4s}
@keyframes bn-breathe{0%,100%{opacity:.55}50%{opacity:.9}}
.bn-s0{stop-color:var(--c);stop-opacity:.34} .bn-s1{stop-color:var(--c);stop-opacity:.07}
.bn-spokes,.bn-tlinks,.bn-inner,.bn-cross,.bn-hotwire{fill:none;stroke-width:1px;stroke-linecap:round;pointer-events:none;transition:opacity .2s}
.bn-tlinks{stroke:var(--b-tags);stroke-opacity:.6}
.bn-inner{stroke:var(--c);stroke-opacity:.3}
.bn-x0{stop-color:var(--c);stop-opacity:.42} .bn-x1{stop-color:var(--c);stop-opacity:.14}
.has-sel .bn-spokes,.has-sel .bn-tlinks,.has-sel .bn-inner,.has-sel .bn-cross{opacity:.5}
.is-asking .bn-spokes,.is-asking .bn-tlinks,.is-asking .bn-inner,.is-asking .bn-cross{opacity:.3}
.bn-hotwire{stroke-width:1.6px;filter:drop-shadow(0 0 3px color-mix(in srgb,var(--c) 50%,transparent))}
.bn-w0{stop-color:var(--c);stop-opacity:1} .bn-w1{stop-color:var(--c);stop-opacity:.4}
.bn-signal{fill:var(--card);stroke:var(--c);stroke-width:2px;pointer-events:none;filter:drop-shadow(0 0 4px var(--c))}
.bn-hub{fill:var(--bead-rim);stroke:var(--c);stroke-width:2.5px;filter:drop-shadow(0 4px 6px color-mix(in srgb,var(--c) 45%,transparent))}
.bn-hub-glow{fill:var(--c);opacity:.1;pointer-events:none}
.bn-beads{filter:drop-shadow(0 1.5px 2px color-mix(in srgb,var(--c) 55%,transparent))}
.bn-bead{fill:var(--c);stroke:var(--bead-rim);stroke-width:1.5px;opacity:var(--bead-o);transition:opacity .2s}
.bn-bead.is-wait{fill-opacity:.35;stroke:var(--c);stroke-width:1.2px;stroke-dasharray:2 1.6}
.bn-tag{fill:var(--b-tags);stroke:none;opacity:var(--tag-o)}
.bn-tag.is-hot,.bn-tag.is-lit{fill:var(--ink2)}
.has-sel .bn-bead{opacity:var(--rest-o)}
.is-asking .bn-bead{opacity:var(--dim-o)}
.bn-svg .bn-bead.is-hot,.bn-svg .bn-bead.is-lit{opacity:1}
.has-focus .bn-lobe:not(.is-focus){opacity:.3}
.bn-lobe{transition:opacity .2s}
.bn-g0{stop-color:var(--c);stop-opacity:.3} .bn-g1{stop-color:var(--c);stop-opacity:0}
.bn-sel-glow{pointer-events:none}
.bn-sel-gap{fill:none;stroke:var(--bead-rim);stroke-width:4px;pointer-events:none}
.bn-sel-ring{fill:none;stroke:var(--c);stroke-width:2px;pointer-events:none}
.bn-hov{pointer-events:none}
.bn-hov-halo{fill:var(--c);opacity:.16}
.bn-hov-bead{fill:var(--c);stroke:var(--bead-rim);stroke-width:2px;filter:drop-shadow(0 0 5px var(--c))}
.bn-hov-bead.bn-tag{fill:var(--ink2);filter:none}
.bn-hov-ring{fill:none;stroke:var(--c);stroke-width:2px;filter:drop-shadow(0 0 4px var(--c))}
.bn-cluster{fill:var(--c);fill-opacity:.14;stroke:var(--c);stroke-opacity:.55;stroke-width:1.5px}
.bn-cluster-ring{fill:none;stroke:var(--c);stroke-opacity:.35;stroke-width:1.5px;stroke-dasharray:2 7;pointer-events:none}
.bn-empty{fill:none;stroke:var(--c);stroke-opacity:.35;stroke-dasharray:3 5;pointer-events:none}
.bn-text{pointer-events:none}
.bn-lname{fill:var(--c);fill-opacity:.85;font:500 11px var(--mono);letter-spacing:.12em}
.bn-lname.is-on,.bn-lname.is-hover{fill-opacity:1;font-weight:700}
.bn-lcount{fill-opacity:.6}
.bn-ccount{fill:var(--c);font:600 20px var(--mono)}
.bn-csub{fill:var(--muted);font:500 10px var(--mono);letter-spacing:.14em}
.bn-chip rect{fill:var(--label-bg);stroke:var(--label-line);stroke-width:1px;filter:drop-shadow(0 6px 8px color-mix(in srgb,var(--ink) 16%,transparent))}
.bn-chip text{fill:var(--ink2);font:500 12px var(--ui)}
.bn-chip.is-strong text{fill:var(--ink);font-size:13px;font-weight:600}
.bn-tip rect{fill:var(--tip-bg);filter:drop-shadow(0 8px 14px color-mix(in srgb,var(--ink) 22%,transparent))}
.bn-tip-t{fill:var(--tip-ink);font:600 12.5px var(--ui)}
.bn-tip-s{fill:var(--tip-ink);fill-opacity:.7;font:500 11px var(--ui)}
/* Black: glow instead of rims and shadows (the same rules for the Black choice and for a dark system). */
:root[data-theme="dark"] .bn-svg{--bead-o:.8;--rest-o:.5;--dim-o:.14;--tag-o:.75}
:root[data-theme="dark"] .bn-beads{filter:drop-shadow(0 0 3px var(--c))}
:root[data-theme="dark"] .bn-hub{filter:drop-shadow(0 0 6px var(--c))}
:root[data-theme="dark"] .bn-hub-glow{opacity:.2}
:root[data-theme="dark"] .bn-hotwire{filter:drop-shadow(0 0 3px var(--c))}
:root[data-theme="dark"] .bn-w1{stop-color:var(--ink);stop-opacity:.5}
:root[data-theme="dark"] .bn-signal{fill:var(--ink);stroke:none;filter:drop-shadow(0 0 3px var(--ink)) drop-shadow(0 0 7px var(--c))}
:root[data-theme="dark"] .bn-sel-gap{stroke-width:3px}
:root[data-theme="dark"] .bn-sel-ring{stroke:var(--ink)}
:root[data-theme="dark"] .bn-g0{stop-opacity:.5}
:root[data-theme="dark"] .bn-cluster{filter:drop-shadow(0 0 10px var(--c))}
:root[data-theme="dark"] .bn-chip rect,:root[data-theme="dark"] .bn-tip rect{filter:none}
:root[data-theme="dark"] .bn-hov-halo{opacity:.24}
:root[data-theme="dark"] .brain .bp-dot{box-shadow:0 0 8px var(--c)}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .bn-svg{--bead-o:.8;--rest-o:.5;--dim-o:.14;--tag-o:.75}
  :root:not([data-theme="light"]) .bn-beads{filter:drop-shadow(0 0 3px var(--c))}
  :root:not([data-theme="light"]) .bn-hub{filter:drop-shadow(0 0 6px var(--c))}
  :root:not([data-theme="light"]) .bn-hub-glow{opacity:.2}
  :root:not([data-theme="light"]) .bn-hotwire{filter:drop-shadow(0 0 3px var(--c))}
  :root:not([data-theme="light"]) .bn-w1{stop-color:var(--ink);stop-opacity:.5}
  :root:not([data-theme="light"]) .bn-signal{fill:var(--ink);stroke:none;filter:drop-shadow(0 0 3px var(--ink)) drop-shadow(0 0 7px var(--c))}
  :root:not([data-theme="light"]) .bn-sel-gap{stroke-width:3px}
  :root:not([data-theme="light"]) .bn-sel-ring{stroke:var(--ink)}
  :root:not([data-theme="light"]) .bn-g0{stop-opacity:.5}
  :root:not([data-theme="light"]) .bn-cluster{filter:drop-shadow(0 0 10px var(--c))}
  :root:not([data-theme="light"]) .bn-chip rect,:root:not([data-theme="light"]) .bn-tip rect{filter:none}
  :root:not([data-theme="light"]) .bn-hov-halo{opacity:.24}
  :root:not([data-theme="light"]) .brain .bp-dot{box-shadow:0 0 8px var(--c)}
}
/* The glass panel: overview, a lobe's notes by folder, a note, a tag, or what a question found. */
.brain-panel{position:absolute;z-index:2;top:16px;right:16px;bottom:16px;width:var(--panel-w);display:flex;flex-direction:column;gap:16px;padding:22px;border:1px solid var(--glass-line);border-radius:18px;background:var(--glass);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:var(--glass-shadow);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.bp-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--faint);font:500 11px var(--mono);letter-spacing:.1em;text-transform:uppercase}
.bp-eyebrow.is-accent{color:var(--accent-ink)}
.bp-eyebrow .ic svg{width:14px;height:14px}
.bp-title{margin:0;color:var(--ink);font:700 26px/1.15 var(--display);letter-spacing:-.01em;overflow-wrap:anywhere}
.bp-question{font-size:22px;line-height:1.25}
.bp-lead{margin:0;color:var(--ink2);font-size:14px;line-height:1.55}
.bp-small{margin:0;color:var(--faint);font-size:12px;line-height:1.45}
.bp-label{padding-bottom:4px;color:var(--faint);font:500 11px var(--mono);letter-spacing:.08em;text-transform:uppercase}
.bp-section{flex:none;display:flex;flex-direction:column;gap:2px}
.bp-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.bp-close{flex:none;margin:-6px -8px -6px 0}
.bp-dot{flex:none;width:9px;height:9px;border-radius:50%;background:var(--c,var(--muted));box-shadow:0 0 0 3px color-mix(in srgb,var(--c,var(--muted)) 14%,transparent)}
.bp-crumbs{flex:none;display:flex;align-items:flex-start;gap:8px;min-width:0}
.bp-trail-wrap{flex:1;min-width:0}
.bp-trail{display:flex;flex-wrap:wrap;align-items:center;min-width:0;margin:0 0 0 -5px;padding:0;list-style:none;color:var(--muted);font-size:12px}
.bp-trail li{display:flex;align-items:center;flex:none;min-width:0;max-width:100%}
.bp-trail li:last-child{flex:1 1 80px}
.bp-trail li + li::before{content:"›";flex:none;padding:0 2px;color:var(--faint)}
.bp-crumb{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;height:26px;padding:0 5px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:500 12px var(--ui);white-space:nowrap}
.bp-crumb .bp-dot{width:7px;height:7px}
button.bp-crumb:hover{background:var(--chip-bg);color:var(--ink)}
.bp-crumb.is-now{color:var(--ink);font-weight:600}
.bp-crumb-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.bp-kind{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;margin-bottom:-8px}
.bp-kind .bp-eyebrow{min-width:0;color:var(--c)}
.bp-kind .bp-dot{width:7px;height:7px}
.bp-text{flex:none;color:var(--ink2);font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.bp-quote{margin:0;color:var(--ink);font:500 17px/1.4 var(--display)}
.bp-row,.bp-wire{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:7px 10px;border:0;border-radius:10px;background:transparent;color:var(--ink);font:400 14px/1.35 var(--ui);text-align:left}
.bp-wire:hover{background:var(--chip-bg)}
.bp-row:hover{background:color-mix(in srgb,var(--c,var(--ink)) 10%,transparent)}
.bp-row .grow,.bp-wire .grow{flex:1;min-width:0;overflow-wrap:anywhere}
.bp-chev{flex:none;width:7px;height:7px;border-right:1.5px solid var(--faint);border-bottom:1.5px solid var(--faint);transform:rotate(-45deg);margin-right:2px}
.bp-lobe-title{display:flex;align-items:center;gap:12px}
.bp-dot-lg{width:13px;height:13px}
.bp-meta{color:var(--muted);font:500 12px var(--mono)}
.bp-find{flex:none;height:38px;background:var(--card);border-color:var(--input-line)}
.bp-folders{gap:14px}
.bp-folder{display:flex;flex-direction:column;gap:1px}
.bp-fname{display:flex;align-items:center;gap:8px;padding:0 10px 4px;color:var(--muted);font:500 11px var(--mono);letter-spacing:.08em;text-transform:uppercase}
.bp-fname .grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bp-note{display:flex;align-items:center;gap:10px;width:100%;min-height:34px;padding:6px 10px;border:0;border-radius:9px;background:transparent;color:var(--ink);font:400 14px/1.3 var(--ui);text-align:left}
.bp-note:hover,.bp-note:focus-visible{background:color-mix(in srgb,var(--c,var(--ink)) 10%,transparent)}
.bp-note-t{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bp-sdot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--c)}
.bp-sdot.is-wait{background:transparent;box-shadow:inset 0 0 0 1.5px var(--c)}
.bp-more{align-self:flex-start;padding:4px 10px}
.bp-via{flex:0 1 auto;max-width:42%;color:var(--faint);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bp-count{flex:none;color:var(--muted);font:500 12px var(--mono)}
.bp-wait{flex:none;color:var(--accent-ink);font-size:12px;font-weight:600}
.bp-tip{flex:none;display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;border:1px solid var(--accent-line);background:var(--accent-soft);color:var(--accent-ink);font:500 13px/1.45 var(--ui)}
.bp-tip .grow{flex:1;min-width:0}
.bp-state{flex:none;display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:999px;font:600 12px var(--ui);background:var(--chip-bg);color:var(--muted)}
.bp-state i{width:6px;height:6px;border-radius:50%;background:currentColor}
.bp-state.used{background:var(--ok-soft);color:var(--ok-ink)} .bp-state.waiting{background:var(--accent-soft);color:var(--accent-ink)}
.bp-group{flex:none;display:flex;flex-direction:column;gap:4px}
.bp-gname{display:flex;align-items:center;gap:8px;padding-bottom:2px;color:var(--c);font:500 11px var(--mono);letter-spacing:.08em;text-transform:uppercase}
.bp-item{padding:3px 0 3px 17px;border:0;background:transparent;color:var(--ink);font:400 14px/1.35 var(--ui);text-align:left;overflow-wrap:anywhere}
.bp-item:hover{color:var(--accent-ink)}
.bp-item.cited{font-weight:600}
.bp-answer{display:grid;gap:8px;padding:14px;border-radius:14px;background:var(--card);border:1px solid var(--card-line)}
.bp-answer p{margin:0;font-size:14px;line-height:1.6;color:var(--ink2);white-space:pre-wrap;overflow-wrap:anywhere}
.bp-foot{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:16px;border-top:1px solid var(--line-soft)}
.bp-actions{flex-direction:row;flex-wrap:wrap;align-items:center}
.bp-ask{width:100%}
.brain-panel .mform textarea{min-height:200px}
@container mv (max-width:899px){
  .brain-body{height:auto}
  .brain-stage{position:relative;inset:auto;height:clamp(330px,92vw,62vh)}
  .brain-frame{right:52px;bottom:70px}
  .bn-controls{top:8px;right:8px}
  .brain-foot{right:16px;left:16px}
  .brain-stats{display:none}
  .brain-empty{right:24px}
  .brain-panel{position:relative;inset:auto;width:auto;margin-top:12px;max-height:none;overflow:visible}
  .brain-ask{max-width:none}
  .bp-title{font-size:23px}
}

/* ---------- library gallery ---------- */
/* Memory → Winners and Competitors: the library's pictures as a grid with filter chips and a search, and the picked one in
   a panel on the right (below on a phone) with what it says and the step it leads to. */
.gal{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;min-width:0;height:clamp(460px,calc(100vh - 190px),780px)}
@supports (height:100dvh){.gal{height:clamp(460px,calc(100dvh - 190px),780px)}}
.gal-main{min-width:0;min-height:0;display:flex;flex-direction:column;gap:14px}
.gal-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gal-tools .search{margin-left:auto;width:260px;max-width:100%;background:var(--card);border-color:var(--input-line)}
.gal-grid{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px;align-content:start;padding:2px;scrollbar-width:thin}
.gcard{display:flex;flex-direction:column;gap:8px;padding:8px;border-radius:16px;background:var(--card);border:1px solid var(--card-line);box-shadow:var(--card-shadow);text-align:left;color:var(--ink);min-width:0}
.gcard:hover{border-color:var(--input-line)}
.gcard[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 .5px var(--accent),var(--card-shadow)}
.gcard .frame{width:100%;aspect-ratio:var(--ar,9/16);border-radius:12px}
.gcard .frame .copy{font-size:13px}
.gsub{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}
.gsub code{font:500 11px var(--mono);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.gsub .pill{height:22px;font-size:11px;flex:none}
.gal-side{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px;padding:18px;scrollbar-width:thin}
.gal-side .frame{width:100%;aspect-ratio:var(--ar,4/5);border-radius:14px;padding:16px;max-height:420px}
.gal-side .frame .copy{font-size:20px;line-height:1.15;-webkit-line-clamp:5}
.gal-side h2{margin:0;font:600 17px/1.3 var(--display);overflow-wrap:anywhere}
.gkv{display:grid}
.gkv div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line-soft);font-size:13px}
.gkv span{color:var(--muted);flex:none}
.gkv b{font-weight:500;text-align:right;overflow-wrap:anywhere;min-width:0}
.gacts{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap}
.gacts .btn{height:42px;border-radius:11px;font-size:14px;flex:1 1 140px}
.gacts a.btn{text-decoration:none}
.gal .none{grid-column:1/-1;padding:20px 4px;color:var(--muted);font-size:14px}
@container mv (max-width:759px){
  .gal{grid-template-columns:minmax(0,1fr);height:auto}
  .gal-grid{max-height:none;overflow:visible;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
  .gal-tools .search{margin-left:0;width:100%}
  .gal-side{overflow:visible}
}

/* ---------- batches list ---------- */
/* Batches: every batch as a folded card, newest first: B, images, engine, when, the plan; six small frames; a thin bar of
   approved, rejected, to review and left; the state. Unfolded: every image and the batch's next steps. */
.bl{display:grid;gap:12px;min-width:0}
/* v38.23 (clean design 1.2 and 2.1, design-clean/SPEC.md): the batch line and its details; the motion tokens. */
.blc{position:relative;display:grid;gap:16px;padding:18px 20px;border-radius:24px;background:var(--card);border:1px solid var(--card-line);box-shadow:var(--card-shadow);min-width:0}
.blc:not(.open){padding:12px 20px;border-radius:20px}
.blh{display:flex;align-items:center;gap:10px 16px;min-width:0}
.blc>*{order:2} .blc>.blh{order:0} .blc>.bplain{order:1;margin:-10px 0 0;padding-left:56px;min-height:18px;font-size:13px;line-height:18px}
.blc>.bplain.in{animation:bin var(--t-appear) var(--ease-enter)}
.anblines{margin-top:24px;display:grid;gap:6px} .anblines .aneb{margin:0;font:700 11px var(--ui);text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.anblines [role=list]{display:grid;gap:5px} .anblines p.hint{margin:0;color:var(--muted)} .anblines p.hint b{color:var(--ink);font-weight:600}
.bchev{width:40px;height:40px;flex:none;border-radius:20px;border:0;background:var(--chip-bg);color:var(--ink);display:inline-grid;place-items:center;cursor:pointer;padding:0;transition:background-color var(--t-hover),transform var(--t-press)}
.bchev:hover,.bchev[aria-expanded="true"]{background:var(--raise)}
.bchev .car::before{content:"";display:block;width:7px;height:7px;border-right:2.4px solid currentColor;border-bottom:2.4px solid currentColor;transform:translate(-2px,0) rotate(-45deg);transition:transform var(--t-open) var(--ease-enter)}
.blc.open .bchev .car::before{transform:translate(0,-2px) rotate(45deg)}
.blc.open .bchev[aria-expanded="true"] .car::before{transform:translate(0,2px) rotate(225deg)}
.btitle{display:inline-flex;align-items:baseline;gap:10px;flex:none;padding:0;border:0;background:transparent;color:var(--ink);cursor:pointer;text-align:left;min-width:0;border-radius:8px;transition:transform var(--t-press)}
.btitle strong{font:700 24px var(--display);letter-spacing:-.4px;font-variant-numeric:tabular-nums}
.blc:not(.open) .btitle strong{font-size:20px}
.btitle .bweek{font:500 14px var(--ui);color:var(--muted);white-space:nowrap}
.bbar{flex:1 1 120px;min-width:60px;height:8px;border-radius:4px;background:var(--bar-track);overflow:hidden}
.bbar .bfill{display:flex;height:100%;transform-origin:left center}
.bbar .bfill.in{animation:bfill var(--t-fill) var(--ease-enter)}
.bbar i{display:block;height:100%;flex:none;box-sizing:border-box}
.bbar i:not(.z) ~ i:not(.z){border-left:2px solid var(--bar-track)}
.bbar i.z{display:none}
.bbar .ok{background:var(--bar-ok)} .bbar .bad{background:var(--bar-bad)} .bbar .rev{background:var(--bar-dec)} .bbar .now{background:var(--bar-now)}
.bbar.drawing .now{animation:bpulse 1.6s ease-in-out infinite}
.blc.done:not(.open) .bbar i{opacity:.55}
.bnums{flex:0 1 250px;min-width:0;text-align:right;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums;color:var(--muted)}
.bnums b{font-weight:700;color:var(--ink)}
.bnums.in{animation:bin var(--t-appear) var(--ease-enter)}
.bnums .ph,.btf .n.ph{position:relative;display:inline-block;height:12px;border-radius:6px;background:var(--raise);vertical-align:-1px;overflow:hidden}
.bnums .ph::after,.btf .n.ph:not(.still)::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,var(--shim),transparent);transform:translateX(-100%);animation:bshim 1.2s ease-in-out infinite}
.blh .bchip{flex:none;width:120px;height:30px;padding:0 8px;justify-content:center;gap:8px;border-radius:15px;font:700 13px var(--ui);overflow:hidden;text-overflow:ellipsis}
.bchip.draw{background:var(--accent-soft);color:var(--accent-ink)}
.bchip.ready{background:var(--accent);color:var(--on-accent)}
.bchip.done{background:var(--ok-soft);color:var(--ok-ink)}
.bchip .dot{width:7px;height:7px;border-radius:4px;background:var(--accent);flex:none}
.bchip.live .dot{animation:bpulse 1.6s ease-in-out infinite}
.bdet{position:absolute;left:20px;top:70px;z-index:25;width:min(580px,calc(100% - 40px));box-sizing:border-box;padding:20px;border-radius:22px;background:var(--pop-bg);border:1px solid var(--card-line);box-shadow:var(--pop-shadow);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;animation:bopen var(--t-open) var(--ease-enter)}
.bdet[hidden]{display:none}
.bdcol{display:flex;flex-direction:column;gap:8px;min-width:0}
.bdh{font:700 12px var(--ui);color:var(--muted)}
.bdr{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;font-variant-numeric:tabular-nums}
.bdr span{display:flex;align-items:center;gap:8px}
.bdr .dot{width:8px;height:8px;border-radius:4px;flex:none;box-sizing:border-box}
.bdr .dot.ok{background:var(--bar-ok)} .bdr .dot.rev{background:var(--bar-dec)} .bdr .dot.now{background:var(--bar-now)} .bdr .dot.bad{background:var(--bar-bad)} .bdr .dot.left{background:var(--faint)} .bdr .dot.stop{border:1.5px solid var(--faint)}
.bdsub{font-size:13px;color:var(--muted);padding-left:16px}
.bdabout{margin:0;font-size:14px;line-height:1.5;color:var(--ink2)}
.bdacts{display:flex;flex-direction:column;gap:8px;margin-top:auto;padding-top:8px}
.bdacts .btn{height:40px;border-radius:12px;font-weight:600;transition:background-color var(--t-hover),border-color var(--t-hover),transform var(--t-press)}
.btools{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 16px;flex-wrap:wrap}
.btf{padding:4px;border-radius:18px;background:var(--soft)}
.btf button{height:40px;padding:0 16px;border-radius:14px;font-size:14px;transition:background-color var(--t-hover),color var(--t-hover),transform var(--t-press)}
.btf button[aria-pressed="true"]{font-weight:700}
.btf .n{display:inline-block;min-width:2ch;text-align:left;font-variant-numeric:tabular-nums}
.btf .n.ph{width:2ch;height:11px}
.bappw{display:grid;gap:4px;justify-items:end}
.bappw[hidden]{display:none}
.bapp.btn{width:290px;height:48px;border-radius:16px;font:700 16px var(--display);gap:8px;box-shadow:none;transition:opacity var(--t-hover),background-color var(--t-hover),transform var(--t-press)}
.bapp.btn:disabled{opacity:.4}
.bwhy{margin:0;min-height:18px;font-size:12.5px;line-height:18px;color:var(--muted);text-align:right}
.bnone{margin:0}
.bchev:active,.btitle:active,.btf button:active:not(:disabled),.bapp.btn:active:not(:disabled),.bdacts .btn:active{transform:scale(.97)}
@keyframes bfill{from{transform:scaleX(0)}}
@keyframes bin{from{opacity:0}}
@keyframes vin{from{opacity:0}}
#board-body.vin{animation:vin var(--t-appear) var(--ease-enter)}
@keyframes bodyin{from{opacity:0;transform:translateY(-6px)}}
.blb.in{animation:bodyin var(--t-open) var(--ease-enter)}
.blh{cursor:pointer}
@keyframes bopen{from{opacity:0;transform:translateY(-6px) scale(.98)}}
@keyframes bpulse{50%{opacity:.35}}
@keyframes bshim{to{transform:translateX(100%)}}
@media (max-width:760px){.blh{flex-wrap:wrap}.blh .bbar{order:5;flex:1 1 100%}.blh .bnums{order:6;flex:1 1 100%;text-align:left}.blh .bchip{margin-left:auto}.bdet{left:12px;width:calc(100% - 24px);grid-template-columns:1fr}}
@media (max-width:640px){.bapp.btn{width:100%}.bappw{width:100%;justify-items:stretch}.bwhy{text-align:left}.btitle{flex:1 1 0;min-width:0;flex-wrap:wrap;column-gap:8px}.btitle .bweek{white-space:normal}.blh .bchip{width:auto;max-width:132px}.btf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;box-sizing:border-box}.btf button{min-width:0;padding:0 8px}}
@media (prefers-reduced-motion:reduce){.bbar.drawing .now,.bchip.live .dot,.bdet,.bnums.in,.bbar .bfill.in,.bnums .ph::after,.btf .n.ph::after{animation:none}}
.blb{display:grid;gap:14px}
.bslots{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.bslot{display:flex;flex-direction:column;gap:6px;min-width:0}
.bslot .frame{width:100%;aspect-ratio:var(--ar,9/16);border-radius:12px}
.bslot .frame.empty{background:var(--empty-thumb);box-shadow:none;color:var(--faint)}
.bslot .frame.empty::after{display:none}
.bslot .frame .copy{font-size:12px}
/* v29: a drawn image's preview fills its frame; the header's small frames show it too. */
.frame.shot{background:var(--empty-thumb);padding:0}
.frame.shot::after{display:none}
.frame.shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.bslot .h{margin:0;font-size:12.5px;line-height:1.35;color:var(--ink2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* v38.24 (clean design 1.3): the tile. The chip, ⋯ and the badges sit on the picture, always on its dark glass whatever the theme. */
.bslots{grid-template-columns:repeat(auto-fill,minmax(216px,1fr));gap:20px}
.bslot.tile{gap:10px;padding:10px;border-radius:20px;background:var(--soft);content-visibility:auto;contain-intrinsic-size:auto 560px;transition:opacity var(--t-hover)}
.bslot.tile.dim{opacity:.5}
.tpic{position:relative;min-width:0}
.tpic .frame{border-radius:14px}
.tpic .frame.empty{border:0;background:var(--raise)}
.frame.sk{position:relative;overflow:hidden}
.frame.sk::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,var(--shim),transparent);transform:translateX(-100%);animation:bshim 1.2s ease-in-out infinite}
.tpic .tchip{position:absolute;left:10px;top:10px;z-index:2;height:26px;max-width:calc(100% - 64px);padding:0 9px;border:0;border-radius:10px;background:rgba(14,13,12,.84);color:#F5F1EC;font:600 12px/26px var(--ui);display:block;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpic button.tchip{cursor:pointer;transition:background-color var(--t-hover),transform var(--t-press)}
.tpic .tchip.ok{color:#7BE8B0} .tpic .tchip.bad{color:#FF7A8A;box-shadow:inset 0 0 0 1px #7A2B36} .tpic .tchip.unk{color:#FFC46B} .tpic .tchip.wait{color:#FF8A52} .tpic .tchip.mute{color:#D8D0C8}
.tpic .tchip.done{background:#14231B;color:#7BE8B0;font-weight:700}
.tmore{position:absolute;right:8px;top:8px;z-index:2;width:40px;height:40px;border:0;border-radius:20px;background:rgba(14,13,12,.72);color:#F5F1EC;font:700 18px/1 var(--ui);display:grid;place-items:center;cursor:pointer;transition:background-color var(--t-hover),transform var(--t-press)}
.tmore[aria-expanded="true"]{background:#F5F1EC;color:#0E0D0C}
.tcard,.tmenu{position:absolute;z-index:3;border-radius:14px;background:rgba(31,28,25,.97);color:#F5F1EC;box-shadow:0 14px 30px rgba(0,0,0,.55)}
.tcard.in,.tmenu.in{animation:bopen var(--t-open) var(--ease-enter)}
.tcard{left:8px;right:8px;top:44px;padding:12px;display:flex;flex-direction:column;gap:6px}
.tcard .tch{font:700 12px var(--ui);color:#A9A098}
.tcard .bchecks{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;font:500 13px var(--ui)}
.tcard .bchecks .ok{color:#7BE8B0} .tcard .bchecks .bad{color:#FF7A8A;font-weight:700} .tcard .bchecks .unk{color:#FFC46B}
.tcard .tnote{margin:0;font-size:12.5px;line-height:1.4;color:#E6DED6}
.tcard .thint{margin:0;font-size:12px;color:#A9A098}
.tmenu{right:8px;top:54px;width:196px;max-width:calc(100% - 16px);padding:6px;display:flex;flex-direction:column}
.tmenu button,.tmenu a{height:34px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:#F5F1EC;font:500 13px var(--ui);text-align:left;text-decoration:none;display:flex;align-items:center;cursor:pointer}
.tmenu button:hover,.tmenu a:hover,.tmenu button:focus-visible{background:rgba(255,255,255,.08)}
.tbadges{position:absolute;left:10px;bottom:10px;z-index:1;display:flex;flex-wrap:wrap;gap:6px;max-width:calc(100% - 20px)}
.tbadges span{height:22px;max-width:100%;box-sizing:border-box;padding:0 8px;border-radius:8px;background:rgba(14,13,12,.84);color:#F5F1EC;font:600 11px/22px var(--ui);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tbadges .live,.tbadges .ltag.live{color:#7BE8B0} .tbadges .nologo{color:#FFC46B}
.tmeta{display:flex;flex-direction:column;gap:4px;padding:0 4px;min-width:0}
.tmeta .tcode{font:500 12px var(--ui);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bslot .tileh{margin:0;height:39px;font:600 15px/1.3 var(--ui);color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tacts{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-height:44px}
.tacts.one{grid-template-columns:1fr}
.tileb{height:44px;min-width:0;padding:0 6px;border:0;border-radius:14px;font:700 14px var(--ui);display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;overflow:hidden;text-decoration:none;cursor:pointer;transition:opacity var(--t-hover),background-color var(--t-hover),transform var(--t-press)}
.tileb.ok{background:var(--ok-soft);color:var(--ok-ink)} .tileb.no{background:var(--raise);color:var(--ink);font-weight:600}
.tileb:disabled{opacity:.4;cursor:not-allowed}
.tileb:active:not(:disabled),.tpic .tchip:active,.tmore:active{transform:scale(.97)}
.tdone{grid-column:1/-1;height:44px;padding:0 6px 0 14px;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:8px;font:700 14px var(--ui)}
.tdone > span{display:flex;align-items:center;gap:6px}
.tdone.ok{background:var(--ok-soft);color:var(--ok-ink)} .tdone.no{background:var(--raise);color:var(--muted)}
.tdone .linkbtn{height:34px;padding:0 12px;color:var(--ink);font:600 13px var(--ui);text-decoration:underline}
.tsay{grid-column:1/-1;display:flex;align-items:center;min-height:44px;font-size:12.5px;line-height:1.35;color:var(--muted)}
.tline{margin:0;font-size:12.5px}
.bleft{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;box-sizing:border-box;padding:10px 12px 10px 20px;border-radius:18px;background:var(--soft);font-size:14px;color:var(--muted)}
.bleft b{color:var(--ink);font-weight:700}
@media (prefers-reduced-motion:reduce){.frame.sk::before,.tcard.in,.tmenu.in{animation:none}}
@media (max-width:640px){.bslots{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.bslot .tileh{font-size:14px;height:36px}.bleft{flex-wrap:wrap}.tacts{grid-template-columns:1fr}.tdone{padding:0 4px 0 10px;font-size:13px}.tdone .linkbtn{padding:0 8px}}
.bacts{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--line-soft)}
.bacts .btn{height:38px;border-radius:10px}
.bacts a.btn{text-decoration:none}
.bacts .push{margin-left:auto}
@media (max-width:640px){.blc{padding:14px}.bslots{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.bacts .btn{flex:1 1 auto}.bacts .push{margin-left:0}}

/* ---------- seed ---------- */
.seed{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.seed .chip{max-width:100%}

/* ---------- v27: Fill for me ---------- */
/* Claude's plan for the brief opens under the Audience header, in the page's own tokens; nothing in the brief changes until Apply. */
.shead{flex-wrap:wrap}
.shead-acts{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;min-width:0;margin-left:auto}
.fillbtn{color:var(--accent-ink);border-color:var(--accent-line);background:var(--accent-soft);font-weight:600}
.fillbtn:hover:not(:disabled){border-color:var(--accent)}
.fillbtn:disabled{opacity:.55;cursor:default}
.fillbtn .ic svg{width:13px;height:13px}
.fillbtn[aria-busy="true"] .ic{animation:breathe 1s ease-in-out infinite}
.fillbox{display:grid;gap:12px;padding:14px;border-radius:14px;border:1px solid var(--accent-line);background:var(--card);box-shadow:0 0 0 4px var(--accent-soft);min-width:0}
.fill-head{display:flex;align-items:center;gap:8px;font:600 14px var(--ui);color:var(--ink);min-width:0}
.fill-head .ic{color:var(--accent-ink)}
.fill-head span:last-child{margin-left:auto;font:500 11px var(--mono);color:var(--muted);white-space:nowrap}
.fill-sec{display:grid;gap:6px;min-width:0}
.fill-k{font:500 10px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
.fill-row{display:grid;gap:4px;padding:8px 10px;border-radius:10px;background:var(--soft);min-width:0}
.fill-row .t{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;color:var(--ink);min-width:0}
.fill-row .t b{font-weight:600;margin-right:2px}
.fill-n{font:500 11px var(--mono);color:var(--muted);margin-left:auto;white-space:nowrap}
.fill-val{height:24px;padding:0 9px;border-radius:999px;background:var(--accent-soft);border:1px solid var(--accent-line);font:500 12px var(--ui);color:var(--ink);display:inline-flex;align-items:center;gap:5px;max-width:100%;min-width:0}
.fill-val > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.fill-val code{font:600 10px var(--mono);color:var(--accent-ink)}
.fill-why{margin:0;font-size:12.5px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.fill-line{margin:0;font-size:13px;color:var(--ink2);overflow-wrap:anywhere}
.fill-dir{margin:0;padding:9px 12px;border-left:2px solid var(--accent);background:var(--soft);border-radius:0 10px 10px 0;font-size:13px;line-height:1.45;color:var(--ink);overflow-wrap:anywhere}
.fill-list{margin:0;padding:0;list-style:none;display:grid;gap:7px}
.fill-list li{display:grid;gap:2px;font-size:12.5px;line-height:1.4;color:var(--ink2);overflow-wrap:anywhere}
.fill-src{font:500 11px var(--mono);color:var(--accent-ink);overflow-wrap:anywhere}
.fill-src.unknown{color:var(--faint)}
.fill-notes{margin:0;padding:8px 10px 8px 26px;border-radius:10px;background:var(--soft);display:grid;gap:4px;font-size:12px;line-height:1.4;color:var(--muted)}
.fill-wait{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--ink2)}
.fill-wait i{width:8px;height:8px;border-radius:50%;background:var(--accent);animation:breathe 1s ease-in-out infinite;flex:none}
.fillbox .pfoot{padding-top:10px;border-top:1px solid var(--line-soft)}
.fillbox .pfoot .btn.ghost{margin-right:auto}
/* The next step grows: beside Apply where the brief is wide, on its own full row in the 340px brief. */
.fillbox .pfoot .btn.go{flex:1 0 auto}
.fillbox.done{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 6px 8px 12px;box-shadow:none;border-color:var(--card-line);background:var(--soft)}
.fillbox.done .ic{color:var(--ok-ink)}
.fillbox.done p{margin:0;font-size:12.5px;color:var(--ink2)}
.testtag{display:inline-block;margin-left:5px;padding:0 5px;border-radius:5px;background:var(--accent-soft);color:var(--accent-ink);font:600 9.5px/16px var(--mono);letter-spacing:.06em;text-transform:uppercase;vertical-align:1px}
@media (max-width:560px){.fillbox .pfoot .btn{flex:1 1 auto}.fillbox .pfoot .btn.ghost{flex:0 0 auto}}

/* ---------- v27: voice input ---------- */
/* A microphone inside the Direction field and the brain's Ask field, with a small RU / EN toggle. While it listens the field
   carries the accent ring and the button glows; a short tip shows where the browser blocks the microphone. */
.vfield{position:relative;min-width:0}
.vfield textarea{padding-right:78px;min-height:84px}
.vctl{display:inline-flex;align-items:center;gap:2px;flex:none}
.vfield .vctl{position:absolute;right:6px;bottom:7px}
.mic{width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);display:inline-grid;place-items:center}
.mic:hover{color:var(--ink);background:var(--soft)}
.mic svg{width:16px;height:16px}
.mic.on{background:var(--accent);color:var(--on-accent);box-shadow:var(--accent-glow);animation:breathe 1.4s ease-in-out infinite}
.mlang{height:22px;min-width:28px;padding:0 5px;border:1px solid var(--input-line);border-radius:6px;background:transparent;color:var(--muted);font:600 10px var(--mono);letter-spacing:.04em}
.mlang:hover{color:var(--ink);border-color:var(--muted)}
textarea.listening,.brain-ask.listening{border-color:var(--accent);box-shadow:0 0 0 3px var(--ring)}
.vtip{color:var(--ink2)}
.brain-top .vtip{margin:8px 2px 0}

/* ---------- v31: memory ---------- */
/* The brain comes first. Ask sits on the tabs' line and fills the rest of the row; the Try chips stay under it. "Added by Claude
   this week" stands beside the stage with Delete and Undo. Full screen moves the brain's box into a layer over the page: the
   glass panel floats on the right as the chat, the Ask field docks under it, Exit and the lobes sit top left. */
.vbar .mask{flex:1 1 300px;min-width:0;display:flex}
.vbar .mask .brain-ask{flex:1;max-width:none;height:42px}
.brain-top{gap:8px;padding-bottom:0}
.brain-row{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
.brain-row.has-recent{grid-template-columns:minmax(0,1fr) 300px}
.brain-recent{align-self:start;display:flex;flex-direction:column;gap:4px;padding:16px;max-height:clamp(480px,calc(100vh - 210px),860px);overflow:auto;scrollbar-width:thin}
.br-head{display:flex;align-items:center;gap:8px;padding-bottom:4px}
.br-head h3{margin:0;font:600 15px var(--display)}
.br-list{display:grid}
.br-row{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line-soft);min-width:0}
.br-row .t{flex:1;min-width:0;display:grid;gap:2px;padding:0;border:0;background:transparent;text-align:left;color:var(--ink)}
.br-row button.t:hover b{color:var(--accent-ink)}
.br-row .t b{font:600 13px/1.35 var(--ui);overflow-wrap:anywhere}
.br-row .t span{font-size:12px;color:var(--muted)}
.br-ask{flex-wrap:wrap}
.br-ask .btn{height:30px}
.br-acts{display:flex;gap:8px;flex-wrap:wrap;padding-top:8px}
.br-acts .an-confirm{flex-wrap:wrap}
.bn-full .ic svg{width:15px;height:15px}
.bp-confirm{gap:12px}
.bp-confirm .bp-actions{display:flex;gap:10px}
.btn.danger{border-color:var(--fail-line);background:var(--fail-soft);color:var(--fail-ink);font-weight:600}
.btn.ghost.danger{background:transparent;border-color:transparent;color:var(--fail-ink)}
.btn.ghost.danger:hover{background:var(--fail-soft)}
.pill.new{background:var(--new-soft);color:var(--new-ink)} .pill.iter{background:var(--iter-soft);color:var(--iter-ink)}
.pill .ic{margin-right:5px} .pill .ic svg{width:13px;height:13px}
.brain-fullbar,.brain-fdock{display:none}
body.brain-full{overflow:hidden}
.brain-portal{position:fixed;inset:0;z-index:40;display:block;background:var(--ground)}
.brain-portal.anim{animation:bn-full .22s cubic-bezier(.2,.7,.2,1)}
@keyframes bn-full{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:none}}
.brain-portal .brain-body{position:absolute;inset:0;height:auto}
.brain-portal .brain-stage{border-radius:0;border:0}
.brain-portal .brain-panel{top:24px;right:24px;bottom:92px}
.brain-portal .brain-frame{top:64px}
.brain-portal .brain-fullbar{display:flex;position:absolute;z-index:3;left:24px;top:20px;right:calc(var(--panel-w) + 96px);gap:8px;flex-wrap:wrap;align-items:center}
.brain-portal .brain-fdock{display:flex;position:absolute;z-index:3;right:24px;bottom:24px;width:var(--panel-w)}
.brain-portal .brain-fdock .brain-ask{flex:1;max-width:none}
.bn-exit{height:38px;border-radius:10px;background:var(--glass);border-color:var(--glass-line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.bn-lchip{height:30px;padding:0 10px;display:inline-flex;align-items:center;gap:7px;border-radius:999px;border:1px solid var(--glass-line);background:var(--glass);color:var(--ink2);font:500 12px var(--ui);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.bn-lchip:hover{color:var(--ink);border-color:var(--c)}
.bn-lchip .bp-dot{width:7px;height:7px}
@media (max-width:760px){
  .brain-portal .brain-panel{left:12px;right:12px;width:auto;top:auto;bottom:74px;max-height:42%}
  .brain-portal .brain-fdock{left:12px;right:12px;bottom:14px;width:auto}
  .brain-portal .bn-controls{right:12px;top:64px}
  .brain-portal .brain-frame{right:60px;bottom:calc(42% + 80px)}
  .brain-portal .brain-fullbar{left:12px;right:12px;top:12px}
  .brain-portal .brain-foot{display:none}
}
@container mv (max-width:1099px){.brain-row.has-recent{grid-template-columns:minmax(0,1fr)}.brain-recent{max-height:none}}

/* ---------- v31: analysis ---------- */
/* Analysis (v7 boards): the answer first. The trust line; the batch as tiles by bucket beside the next batch's decision, with the
   verdict in large type; three short evidence groups; the buyers' to-do; one line with the pages saved, Undo and History. A run
   fills the same page in: the button becomes "Analysing · m:ss" with Stop, one thought line, the Method's four questions light up. */
.abar{justify-content:flex-start}
.an-pick{width:auto;height:32px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--ink2);font:500 13px var(--ui);cursor:pointer}
.an-pick:hover{background:var(--soft)}
.an-acts{align-self:flex-start}
.an-runcol{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.an-runcol .btn.go{height:40px;padding:0 16px;border-radius:10px;font-size:14px}
.an-when{font-size:11.5px;color:var(--muted)}
.an-live{height:40px;display:inline-flex;align-items:center;gap:10px;padding:0 6px 0 16px;border-radius:999px;background:var(--accent-soft);color:var(--accent-ink);font:600 14px var(--ui);font-variant-numeric:tabular-nums}
.an-live > i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent);animation:breathe 1.4s ease-in-out infinite}
.an-live .btn{height:30px;color:var(--accent-ink)}
.an{display:grid;gap:18px;min-width:0}
.an-trust{display:flex;flex-wrap:wrap;gap:6px 18px;font:500 12px var(--mono);color:var(--muted)}
.an-hero{display:grid;gap:20px;padding:28px 32px;min-width:0}
.an-hero[aria-busy="true"]{box-shadow:var(--run-shadow)}
.an-eyebrow{font:500 11px var(--mono);letter-spacing:.1em;color:var(--muted);text-transform:uppercase}
.an-main{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:32px;align-items:start;min-width:0}
.an-left{display:grid;gap:18px;min-width:0;align-content:start}
.an-groups{display:flex;flex-wrap:wrap;gap:16px 22px;align-items:flex-start}
.an-group{display:grid;gap:8px;align-content:start}
.an-tiles{display:flex;gap:6px;flex-wrap:wrap;padding:4px}
.an-tile{position:relative;flex:none;width:42px;height:75px;border-radius:8px;overflow:hidden;background:var(--scene,var(--empty-thumb));box-shadow:var(--thumb-shadow);outline:2px solid var(--tc,transparent);outline-offset:2px}
.an-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.an-tile.b-scale{--tc:var(--ok)} .an-tile.b-iterate{--tc:var(--iter-ink)} .an-tile.b-kill{--tc:var(--fail)} .an-tile.b-refresh{--tc:var(--warn)}
.an-tile.b-too_early{outline:1px solid var(--card-line);outline-offset:0;opacity:.55}
.an-tile.b-lost{background:transparent;box-shadow:none;outline:0;border:1.5px dashed var(--input-line)}
.an-tile.pending{background:transparent;box-shadow:none;outline:1px solid var(--card-line);outline-offset:0;opacity:.6}
.an-gname{font:500 11px var(--mono);letter-spacing:.08em;color:var(--muted)}
.an-group.b-scale .an-gname{color:var(--ok-ink)} .an-group.b-iterate .an-gname{color:var(--iter-ink)} .an-group.b-kill .an-gname{color:var(--fail-ink)} .an-group.b-refresh .an-gname{color:var(--warn)}
.an-verdict{margin:6px 0 0;font:600 clamp(24px,2.6vw,38px)/1.18 var(--display);letter-spacing:-.02em;max-width:760px;overflow-wrap:anywhere}
.an-thought{margin:6px 0 0;font:400 20px/1.4 var(--ui);color:var(--ink2)}
.an-stats{margin:0;font:500 12px var(--mono);color:var(--muted)}
.an-chips{display:flex;gap:8px;flex-wrap:wrap}
.an-next{display:grid;gap:10px;padding:20px;border:1px solid var(--accent-line);border-radius:var(--r);background:var(--card);min-width:0}
.an-next-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.an-next-head h3{margin:0;font:600 17px var(--display)}
.an-nrow{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid var(--line-soft)}
.an-nrow > span{font-size:13px;color:var(--muted)}
.an-nrow b{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.an-nrow small{display:block;margin-top:3px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.an-build{display:flex;align-items:center;gap:8px;font:600 13px var(--ui)}
.an-build .linkbtn{margin-left:auto}
.an-track{height:2px;border-radius:2px;background:var(--track);overflow:hidden}
.an-track i{display:block;height:2px;border-radius:2px;background:var(--accent)}
.an-skel{display:grid;gap:10px;padding:18px 0}
.an-skel i{height:12px;border-radius:6px;background:var(--soft)}
.an-method{display:grid;gap:10px;padding:16px;border-radius:14px;background:var(--soft)}
.an-mhead{display:flex;align-items:center;gap:8px;font-size:13px}
.an-q{display:flex;align-items:center;gap:10px;font-size:14px}
.an-q i{width:8px;height:8px;border-radius:50%;background:var(--track);flex:none}
.an-q.done i{background:var(--ok)} .an-q.run i{background:var(--accent);box-shadow:0 0 10px var(--accent)} .an-q.run{font-weight:600} .an-q.wait{color:var(--muted)}
.an-note{margin:0;font-size:13px;color:var(--muted)}
.an-think{margin:0;padding:12px;border-radius:12px;background:var(--soft);font:12px/1.5 var(--mono);white-space:pre-wrap;max-height:240px;overflow:auto;color:var(--ink2);overflow-wrap:anywhere}
.an-why{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.an-wcard{display:grid;gap:6px;padding:18px;align-content:start;min-width:0}
.an-wcard > .linkbtn{justify-self:start}
.an-whead{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.an-whead h3{margin:0;font:600 15px var(--display)}
.an-whead span{font-size:12px;color:var(--muted)}
.an-wrow{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line-soft)}
.an-wrow p{margin:0;flex:1;min-width:0;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.an-num{margin-left:auto;text-align:right;white-space:nowrap}
.an-num b{display:block;font:600 18px var(--mono)}
.an-num span{font-size:12px;color:var(--muted)}
.an-left-out{display:grid;gap:6px}
.an-left-out .linkbtn{justify-self:start}
.an-drops{margin:0;padding-left:18px;display:grid;gap:4px;font-size:13px;color:var(--ink2)}
.an-drops span{color:var(--muted)}
.an-buyers{display:grid;gap:10px;padding:16px}
.an-brow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.an-brow h3{margin:0 4px 0 0;font:600 15px var(--display)}
.an-brow .linkbtn{margin-left:auto}
.an-names{display:grid;gap:6px;font:12px/1.5 var(--mono);color:var(--ink2);overflow-wrap:anywhere}
.an-foot{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.an-foot .linkbtn:disabled{opacity:.5;cursor:default}
.an-confirm{display:flex;gap:8px 10px;align-items:center;flex-wrap:wrap;padding:10px 12px;border-radius:12px;border:1px solid var(--fail-line);background:var(--fail-soft);font-size:13px;color:var(--ink)}
.an-confirm .btn{height:32px}
.an-state{display:grid;gap:12px;padding:20px;max-width:640px;justify-items:start}
.an-state p{margin:0;font-size:14px;line-height:1.5;color:var(--ink)}
.an-state .btn{height:38px}
/* v38.32: the empty state. The title in the display face; the button greyed (.4) until the read, lit in the hover time; the reason
   line holds its 18 px from the first paint (amber when it says something). */
.an-empty .an-title{margin:0;font:600 20px/1.25 var(--display, var(--sans));color:var(--ink)}
.an-empty.reading .an-title{color:var(--muted)}
.an-empty .btn{transition:opacity var(--t-hover) ease}
.an-empty .btn:disabled{opacity:.4;cursor:default}
.an-empty .an-why{min-height:18px;margin:0;font-size:13px;line-height:18px;color:var(--amber-ink)}
.an-hist{display:grid;gap:2px}
.an-hrow{display:flex;gap:10px;align-items:center;width:100%;padding:8px 10px;border:0;border-radius:10px;background:transparent;text-align:left;color:var(--ink);font:400 13px var(--ui);min-width:0}
.an-hrow:hover,.an-hrow.on{background:var(--soft)}
.an-hrow .grow{flex:1;min-width:0;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.am-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.am-head h2{margin:0;font:700 26px var(--display);letter-spacing:-.015em}
.am-head span{font-size:14px;color:var(--muted)}
.am-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:22px;align-items:start}
.am-col{display:grid;gap:16px;min-width:0}
.am-card{display:grid;gap:14px;padding:22px;min-width:0}
.am-card h3{margin:0;font:600 17px var(--display)}
.am-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.am-row .am-edit{margin-left:auto}
.am-asks{display:grid;gap:18px}
.am-ask{display:flex;gap:14px;align-items:flex-start;min-width:0}
.am-ask > div{flex:1;min-width:0}
.am-n{width:34px;height:34px;border-radius:10px;display:inline-grid;place-items:center;background:var(--accent-soft);color:var(--accent-ink);font:600 15px var(--display);flex:none}
.am-ask strong{display:block;font:600 17px var(--display)}
.am-ask p{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--ink2)}
.am-fields{display:grid;gap:6px}
.am-never{display:flex;gap:10px;align-items:center;font-size:14px}
.am-never .ic{color:var(--muted)}
.am-add{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line-soft)}
.am-add .t{flex:1;min-width:0;display:grid;gap:4px}
.am-add strong{font-size:14px}
.am-add p{margin:0;font-size:12px;color:var(--muted)}
.am-add .pill{height:22px;font-size:11.5px}
.am-tog{display:inline-flex}
.am-held{display:flex;align-items:center;gap:8px}
.am-held b{margin-left:auto;font:600 22px var(--mono)}
.am-form{display:grid;gap:10px}
@media (max-width:1180px){.an-main{grid-template-columns:minmax(0,1fr)}.am-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:900px){.an-why{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){.an-hero{padding:18px}.an-tile{width:34px;height:60px}.an-runcol{align-items:flex-start}.an-verdict{font-size:24px}}

/* ---------- v31: ideas built on the analysis ---------- */
.builton{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:12px 12px 12px 16px;border-radius:var(--r);border:1px solid var(--accent-line);background:var(--accent-soft);min-width:0}
.builton > .ic{color:var(--accent-ink)}
.builton > .ic svg{width:18px;height:18px}
.bo-text{flex:1;min-width:0;display:grid;gap:2px}
.bo-text strong{font:600 15px var(--display)}
.bo-text p{margin:0;font-size:13px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bo-text p b{font-weight:600;color:var(--ink)}
.builton .btn{flex:none;height:36px}
.layout.wide > .builton{display:none}
@media (max-width:640px){.builton{flex-wrap:wrap}.bo-text p{white-space:normal}}

/* ---------- v32: the brief as one folded bar ---------- */
/* The brief sits above the ideas as one card: a line of pills says what is set, Fill for me fills it, Set manually opens
   Audience, Batch and Drawing under it, and the Direction field with Propose closes it. */
.brief{gap:0}
.bsum{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:16px 16px 0;min-width:0}
.bsum > .label{margin-right:2px}
.pills{display:flex;gap:8px;flex-wrap:wrap;min-width:0}
.pill{height:34px;max-width:340px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;border-radius:10px;border:1px solid transparent;background:var(--soft);font:500 13px var(--ui);color:var(--ink);white-space:nowrap;min-width:0}
.pill:hover{border-color:var(--input-line)}
.pill .k{color:var(--muted)}
.pill .v{font-weight:600;overflow:hidden;text-overflow:ellipsis;min-width:0}
.bsum-acts{margin-left:auto;display:flex;align-items:center;gap:8px}
.bsum-acts .btn{height:36px}
.bsum-acts .fillbtn .ic svg{width:15px;height:15px}
.brief > .fillbox{margin:14px 16px 0}
.bman{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:12px;padding:14px 16px 0;align-items:start}
.bman .blk{border:0;border-radius:14px;background:var(--soft);padding:16px}
.bman .seg{background:var(--card)}
.dirblk{border-top:0;padding:14px 16px 16px;gap:8px}
.dirblk > .label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dirrow{display:flex;gap:10px;align-items:flex-start;min-width:0}
.dirrow .vfield{flex:1}
.dirrow .vfield textarea{min-height:46px;height:46px;padding-top:12px;padding-bottom:12px}
.dirrow #propose{width:auto;flex:none;padding:0 20px}
.brief > .ready{margin:0 16px 16px}
/* v38.39.19 (§8.9, §8.10): Details, under the brief and closed; what the tab no longer says out loud, never a press. */
.brief > .dets{margin:0 16px 16px;padding:10px 14px;border-radius:12px;background:var(--soft)}
.dets .dlist{display:grid;gap:4px}
.dets .dlist p{margin:0}
/* Settings → Schedule and options: the schedule and the options, kept in the page above the tab's own part. */
.setdraw{margin-bottom:16px}
@media (max-width:1100px){.bman{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media (max-width:760px){.bman{grid-template-columns:minmax(0,1fr)}.bsum-acts{margin-left:0;width:100%}.dirrow{flex-direction:column;align-items:stretch}.dirrow #propose{width:100%}}

/* ---------- dock ---------- */
.dock{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:15;display:flex;gap:10px;align-items:center;background:var(--dock-bg);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:var(--dock-ink);border-radius:16px;padding:8px 8px 8px 20px;box-shadow:var(--dock-shadow);max-width:calc(100% - 32px)}
.dock .t{font-size:14px;color:var(--dock-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:4px;min-width:0}
.dock .t b{color:var(--dock-ink);font-weight:600}
.dock .t .dl{display:block;white-space:normal;max-width:440px;font-size:12.5px;line-height:1.35;margin-top:2px}
.dock .btn{height:40px;padding:0 16px;border-radius:10px;border:1px solid var(--dock-line);background:transparent;color:var(--dock-ink);font-size:14px;white-space:nowrap}
.dock .btn:hover{border-color:var(--dock-muted)}
.dock .btn.go{background:var(--accent);border-color:var(--accent);color:var(--on-accent);box-shadow:var(--accent-glow);padding:0 18px}
.dock .btn.done{color:var(--ok)}
@media (max-width:560px){.drawask{bottom:calc(122px + env(safe-area-inset-bottom,0px))}.dock{left:16px;right:16px;transform:none;max-width:none;justify-content:flex-end;flex-wrap:wrap;padding:10px;gap:8px}.dock .t{white-space:normal;flex:1 1 100%;font-size:13px;padding-left:6px}.dock .btn{flex:1 1 0;min-width:0;padding:0 10px;font-size:13px;overflow:hidden;text-overflow:ellipsis}.dock .btn.go{flex-grow:1.4;padding:0 10px}
  .slabel{flex-basis:64px}.claude-note{padding-left:72px}.main{gap:12px}.frame{width:84px}}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* v33: review in Batches, the site's sign-in card */
.bdec{display:grid;gap:6px}
.bdrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;line-height:1.35}
.bdrow .dstate{color:var(--muted)}.bdrow .dstate.approved{color:var(--ok-ink)}.bdrow .dstate.rejected{color:var(--fail-ink)}
.bdrow .dacts{display:inline-flex;gap:6px}.bdrow .btn.small{height:28px;padding:0 10px;font-size:12px}.bdrow .btn.small.ok{border-color:var(--ok-ink);color:var(--ok-ink)}
.bdrow .status,.bdrow .hint{flex-basis:100%;margin:0;font-size:11.5px}
.zipline{margin:8px 0 0;font-size:12.5px}
.empty.signin .btn{margin-top:14px;text-decoration:none}
/* v34 (part A): tests in the brief, the copy check on a card, the six review checks, files nobody launched */
.bman .tblk{grid-column:1/-1;gap:10px;grid-template-columns:minmax(0,1fr)}
.tblk .trows{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.trow{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0;padding-top:12px;border-top:1px solid var(--line-soft)}
.trow:first-child{padding-top:0;border-top:0}
.thead{display:flex;align-items:center;gap:8px;min-width:0}
.thead .hint{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tblk select{width:auto;max-width:100%;min-width:0;font-size:13px;padding:5px 8px;border-radius:8px;background:var(--card)}
.tblk .slabel{flex-basis:86px}
.tval{height:28px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border-radius:999px;border:1px solid var(--input-line);background:var(--card);font:500 12.5px var(--ui);color:var(--ink);max-width:100%;min-width:0}
.tval span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.tval code{font:600 10px var(--mono);color:var(--accent-ink);letter-spacing:.02em}
.tval[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent-line)}
.tblk .stepper{height:32px;grid-template-columns:30px 40px 30px}.tblk .stepper button{height:32px}
.tblk .stepper output{text-align:center;font:600 14px var(--mono);color:var(--ink);font-variant-numeric:tabular-nums}
.facet.test{background:var(--accent-soft);color:var(--accent-ink)}
.lint{margin:0;padding:0 0 0 16px;display:grid;gap:4px;font-size:12.5px;line-height:1.4;color:var(--fail-ink)}
.lint-edit{display:grid;gap:6px}.lint-edit textarea{min-height:58px;font-size:13px}
.idea .warnline{margin:0;font-size:12px;color:var(--muted)}
/* v34 part D (watch mode, 6 Nov 2026): one quiet "Watched" note on an idea's card, and the tripwire's line in the analysis report. */
.idea .watchline{margin:0;font-size:12px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.watch-tag{display:inline-block;margin-right:6px;padding:0 7px;border-radius:999px;border:1px solid var(--card-line);color:var(--muted);font:600 10px/16px var(--ui);letter-spacing:.04em;text-transform:uppercase;vertical-align:1px}
.an-trip{display:grid;gap:4px;margin:0;padding:0;list-style:none;font-size:13px;color:var(--muted)}
/* v35 (release v86): a variation's and a system's facet, Keep anyway on a refused idea, who kept it, the seed bar's sets and the
   analysis's four-variations read. */
.facet.vary{background:var(--accent-soft);color:var(--accent-ink)}
.facet.sys{letter-spacing:.03em}
.keep{display:grid;gap:6px}
.keeprow{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.keeprow input{flex:1 1 180px;min-width:0;height:34px;font-size:13px}
.keeprow .btn{height:34px}
.idea .keptline{margin:0;font-size:12px;line-height:1.45;color:var(--ink2);overflow-wrap:anywhere}
.seed .chip.vary .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.an-kpis{display:grid;grid-template-columns:1fr 1fr .7fr;gap:12px}
.an-kpi{display:grid;gap:4px;padding:14px 16px;align-content:start;min-width:0}
.an-klabel{font:600 12px var(--mono);color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.an-knum{font:700 30px var(--display);line-height:1.1}
.an-knum.sm{font-size:20px;text-align:left;padding:0}
.an-ksub{font-size:12px;color:var(--muted)}
.an-kset{justify-self:start}
.an-bars{display:flex;align-items:flex-end;gap:4px;height:28px;margin-top:4px}
.an-bars i{flex:1;height:var(--h);min-height:2px;border-radius:2px;background:var(--line-soft)}
.an-bars i:last-child{background:var(--primary)}
.an-krule{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:13px;color:var(--ink2)}
.an-learn{display:grid;gap:3px;margin:0;padding:0;list-style:none;font-size:13px;color:var(--muted)}
.an-fat{display:grid;gap:10px;padding:16px}
.an-frow{display:grid;gap:3px;padding:8px 0;border-top:1px solid var(--line-soft);font-size:13px;color:var(--ink2);overflow-wrap:anywhere}
.an-fhead{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.an-fref{color:var(--fail-ink);font-weight:600}
.an-picks{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.am-win{max-width:none}
.am-wline{margin:0;font-size:15px;line-height:1.9}
.am-num{width:84px;display:inline-block;margin:0 4px}
@media (max-width:720px){.an-kpis{grid-template-columns:1fr 1fr}.an-kpi.small{grid-column:1/-1}}
.an-vary{display:grid;gap:6px}
.an-vary h3{margin:0;font-size:14px}
.an-vary p{margin:0;font:500 13px var(--mono);color:var(--ink2);overflow-wrap:anywhere}
.an-trip .hard{color:var(--fail-ink);font-weight:600}
.bchecks{display:flex;flex-wrap:wrap;gap:2px 10px;flex-basis:100%;font:500 11px var(--mono);color:var(--ok-ink)}
.bchecks .bad{color:var(--fail-ink)}.bchecks .unk{color:var(--warn)}
.an-tile.b-not_launched{background:transparent;box-shadow:none;outline:0;border:1.5px dotted var(--card-line);opacity:.6}
.an-launch{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.an-launch .an-names{flex-basis:100%}
/* v34: which model answered (Fill, the dock, the analysis), quiet and mono. */
.mnote{font:500 11px var(--mono);color:var(--faint);white-space:nowrap}
/* ---------- v34, part B: the launch ledger in Batches, Analysis → Loop, Settings ---------- */
/* Batches: under a batch's images, its Meta launches (087) as one compact block: the counts, one row an ad, the files nobody
   launched; the Mark launched form opens in place. A file's tile says Live, Ended or Not launched in mono. */
.lnch{display:grid;gap:8px;padding:12px 14px;border-radius:var(--r-md);background:var(--soft);min-width:0}
.lnch-head{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;min-width:0}
.lnch-head strong{font:600 14px var(--display)}
.lnch-n{font:500 12px var(--mono);color:var(--muted)}
.lnch-head .acts{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
.lnch .btn.small,.set .btn.small,.lp .btn.small{height:30px;padding:0 10px;font-size:12.5px}
.lrows{display:grid}
.lrow{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.4fr) auto auto auto auto;gap:2px 12px;align-items:center;padding:7px 0;border-top:1px solid var(--line-soft);font-size:12.5px;color:var(--ink2);min-width:0}
.lrow code{font:500 12px var(--mono);color:var(--ink);overflow-wrap:anywhere;min-width:0}
.lrow .lset{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--muted)}
.lrow .lwhen{font:500 12px var(--mono);color:var(--muted);white-space:nowrap}
.lrow .lsrc{white-space:nowrap;color:var(--muted)}
.lrow .pill{height:22px;font-size:11px}
.lrow .lsub{grid-column:1/-1;font:500 11px var(--mono);color:var(--faint);overflow-wrap:anywhere}
.lfiles{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;margin:0;font-size:12.5px;color:var(--muted)}
.lfiles b{font:500 12px var(--mono);color:var(--ink2)}
.lform .lgrid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.4fr) auto auto;gap:8px}
.lform select{width:auto}
input[type="date"]{font:inherit;font-size:13px;color:var(--ink);background:var(--input-bg);border:1px solid var(--input-line);border-radius:var(--r-sm);padding:8px 10px;min-width:0}
.lpick{display:flex;flex-wrap:wrap;gap:4px}
.lpick button{height:26px;padding:0 9px;border-radius:999px;border:1px solid var(--input-line);background:var(--card);font:500 11.5px var(--mono);color:var(--ink2)}
.lpick button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-ink)}
.ltag{font:500 10.5px var(--mono);letter-spacing:.04em;color:var(--muted)}
.ltag.live{color:var(--ok-ink)}
.bslot .linkbtn.ltag{font-size:11px;align-self:flex-start}
/* Analysis → Loop and Settings: a list of facts (label left, value right), owner controls in the page's own forms, and one
   ledger row a step the loop took. */
.lp,.set{display:grid;gap:16px;min-width:0}
.lp .am-card,.set .am-card{gap:10px;max-width:980px}
.kv{display:grid;grid-template-columns:150px minmax(0,1fr);gap:3px 16px;padding:10px 0;border-top:1px solid var(--line-soft);font-size:13.5px;color:var(--ink);min-width:0}
.kv > span:first-child{color:var(--muted)}
.kv small{display:block;margin-top:2px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.kv code{font:500 12.5px var(--mono);overflow-wrap:anywhere}
.kv .linkbtn{display:block;margin-top:3px;text-align:left}
.lp-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-top:4px}
.lp-acts .btn{height:34px}
.lp-run{display:grid;grid-template-columns:132px 128px minmax(0,1fr) auto;gap:2px 12px;align-items:center;padding:8px 0;border-top:1px solid var(--line-soft);font-size:13px;min-width:0}
.lp-run > span:first-child{font:500 12px var(--mono);color:var(--muted);white-space:nowrap}
.lp-run b{font-weight:600}
.lp-run .t{color:var(--ink2);overflow-wrap:anywhere;min-width:0}
.lp-run .pill{height:22px;font-size:11px}
.lp-run .status{grid-column:3/-1}
.lp-store{font:500 12px var(--mono);color:var(--muted);margin:0}
.st-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;align-items:start;padding:12px 0;border-top:1px solid var(--line-soft);min-width:0}
.st-row .t{display:grid;gap:4px;min-width:0}
.st-head{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;min-width:0}
.st-head strong{font-size:14px}
.st-head code{font:600 11px var(--mono);color:var(--accent-ink);background:var(--accent-soft);padding:2px 6px;border-radius:6px}
.st-head .k{font:500 11px var(--mono);color:var(--faint)}
.st-row p{margin:0;font-size:13px;line-height:1.45;color:var(--ink2);overflow-wrap:anywhere}
.st-row .meta{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.st-row .pat{font:500 12.5px var(--mono);color:var(--ink);overflow-wrap:anywhere}
.st-side{display:flex;align-items:center;gap:8px}
.st-side .pill{height:22px;font-size:11px}
.st-form{grid-column:1/-1}
.st-form .two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.st-form fieldset{border:0;margin:0;padding:0;display:grid;gap:6px;min-width:0}
.st-form legend{padding:0;margin-bottom:2px}
.st-form .line > span:first-child,.schedform .line > span:first-child{white-space:nowrap}
.st-form input[type="number"],.schedform input[type="number"]{width:96px;flex:0 0 auto}
.schedform .stepper input[type="number"]{width:100%}
.st-form select{width:auto}
.st-form .range{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.tbtn[aria-pressed="true"]{background:var(--soft);border-color:var(--input-line);color:var(--ink)}
/* ---------- v36: the team view, Start over, the shared ideas board, the reviewer ---------- */
/* A tile's team actions sit under its words: Check again, Finish drawing, Cancel; Cancel opens a small form in the tile. History
   (cancelled and set-aside images) folds at the end of the card, quieter. A drawn image without its stored preview says so in
   its frame. */
.frame .pnr{position:absolute;left:8px;right:8px;bottom:8px;font:500 10.5px var(--mono);letter-spacing:.03em;color:#FFFFFF;text-shadow:0 1px 2px rgba(0,0,0,.55);text-align:center}
.bteamw{display:grid;gap:6px;min-width:0}
.bteam{display:flex;flex-wrap:wrap;gap:6px}
.bteam .btn.small,.bcancel .btn.small,.pressline .btn.small,.conflict .btn.small{height:28px;padding:0 10px;font-size:12px}
.bteam a.btn{text-decoration:none}
.bteamw .status{margin:0;font-size:11.5px;line-height:1.35}
.bcancel{display:grid;gap:6px;padding:8px;border-radius:10px;border:1px solid var(--fail-line);background:var(--fail-soft);min-width:0}
.bcancel input{font:inherit;font-size:12.5px;color:var(--ink);background:var(--input-bg);border:1px solid var(--input-line);border-radius:var(--r-sm);padding:6px 8px;min-width:0}
.bcancel .warnline{margin:0;font-size:11.5px;line-height:1.35;color:var(--ink2)}
.bcancel .pfoot{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
/* v38.6 (R1): a B's stuck images in one line, with Finish and Cancel all (and Cancel all's form under it). */
.bstuck{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 0;padding:8px 10px;border-radius:10px;border:1px solid var(--fail-line);background:var(--fail-soft);min-width:0}
.bstuck .what{margin:0;font-size:13px;font-weight:600;color:var(--ink);flex:1 1 180px}
.bstuck .btn{height:32px;border-radius:9px;padding:0 12px;font-size:12.5px}
.bstuck .said{flex:1 1 100%;margin:0;font-size:12px;line-height:1.4}
.bstuck .bcancel{flex:1 1 100%}
/* v38.39.10: the batch line on a brand the server draws for: one quiet line, no box (one-design SPEC.md §8.4). */
.bnd{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 0;min-width:0}
.bnd .what{margin:0;font-size:13px;font-weight:600;color:var(--ink2);flex:1 1 140px}
.bnd .btn{height:36px;border-radius:10px;padding:0 14px;font-size:13px}
.bnd .btn.ghost{padding:0 10px}
.bnd .said{flex:1 1 100%;margin:0;font-size:12px;line-height:1.4;color:var(--warn)}
.baside{border-top:1px solid var(--line-soft);padding-top:10px}
.baside > summary{cursor:pointer;font-size:12.5px;color:var(--muted);list-style:none}
.baside > summary::-webkit-details-marker{display:none}
.baside .bslots{margin-top:10px}
.bslot.aside{opacity:.72}
.sover{display:grid;gap:8px;padding:12px 14px;border-radius:var(--r-md);border:1px solid var(--fail-line);background:var(--soft);min-width:0}
.sover strong{font:600 14px var(--display)}
.socounts{margin:0;padding-left:18px;display:grid;gap:2px;font-size:13px;color:var(--ink2)}
.sonext{margin:0;font-size:13px;font-weight:600}
.sover textarea{font:inherit;font-size:13px;color:var(--ink);background:var(--input-bg);border:1px solid var(--input-line);border-radius:var(--r-sm);padding:8px 10px;resize:vertical;min-width:0}
.sover .pfoot{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
/* The shared ideas board: a small tag on another member's idea; the conflict note on a card. v38.39.19 (§8.9, §8.10): a press the
   person must make (the one-time share, a policy read that cannot mend itself) gets one amber line above the dock, with its button. */
.pressline{position:fixed;z-index:15;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom,0px));width:max-content;max-width:min(760px,calc(100% - 32px));display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:8px 12px;border-radius:10px;border:1px solid var(--accent-line);background:var(--accent-soft);color:var(--ink);font-size:12.5px;box-shadow:var(--card-shadow)}
@media (max-width:560px){.pressline{left:16px;right:16px;transform:none;width:auto;max-width:none;bottom:calc(122px + env(safe-area-inset-bottom,0px))}}
/* v38.7 (Dima's note 9): the tag gives way first, then the slate, each to an ellipsis on one line (the tag says itself on hover);
   the kind and the pill keep their size, so the pill never crosses the tile's edge and the line stays one line high. */
.idea .byother{font:500 10.5px var(--mono);letter-spacing:.03em;color:var(--muted);white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis;flex:0 100 auto}
.conflict{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin:0;padding:8px 10px;border-radius:10px;border:1px solid var(--fail-line);background:var(--fail-soft);font-size:12.5px;color:var(--ink)}
/* ---------- v37: a drawn tile opens the full-size viewer ---------- */
/* The tile's frame is a button: it zooms in on click or Enter, with the page's focus ring. The viewer is a dark layer over the
   whole page in both themes; the image as large as fits with 16 px margins (object-fit: contain keeps its own aspect ratio, so
   the 288 px preview and the full view sit in the same place); every control at least 44 px; a horizontal swipe is the page's,
   a vertical one stays the browser's (touch-action: pan-y). v37 (review): the 16 px margins grow to the safe-area insets (a
   notch in landscape, rounded corners), as the page's gutters do, so Previous and Close are never under them. */
button.frame{border:0;margin:0;font:inherit;text-align:left;cursor:zoom-in;-webkit-appearance:none;appearance:none}
button.frame:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.frame .shotph{display:none}
body.vw-open{overflow:hidden}
.viewer{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;gap:8px;padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));background:rgba(0,0,0,.92);color:#FFFFFF;font-family:var(--ui)}
.vw-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.vw-count{font:600 14px var(--mono);letter-spacing:.02em}
.vw-btn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.24);background:rgba(20,20,26,.6);color:#FFFFFF;cursor:pointer}
.vw-btn:hover{background:rgba(255,255,255,.16)}
.vw-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.vw-btn:disabled{opacity:.3;cursor:default}
.vw-btn .ic svg{display:block}
.vw-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.vw-img{width:100%;height:100%;object-fit:contain;display:block;user-select:none;-webkit-user-drag:none}
/* v38.36.6 (note 84): the preview stays under the full size, in the same frame; the full size fades in over it (appear) */
.vw-under{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;user-select:none;-webkit-user-drag:none}
.vw-img{position:relative}
.vw-img.vw-swap{opacity:0}
.vw-img.vw-in{animation:vwin var(--t-appear) var(--ease-enter)}
@keyframes vwin{from{opacity:0}to{opacity:1}}
.vw-prev,.vw-next{position:absolute;top:50%;transform:translateY(-50%)}
.vw-prev{left:0}.vw-next{right:0}
.vw-info{display:grid;gap:6px;justify-items:center;text-align:center;max-width:720px;width:100%;margin:0 auto}
.vw-h{margin:0;font:600 15px/1.35 var(--display);overflow-wrap:anywhere}
.vw-meta{margin:0;font-size:12.5px;color:rgba(255,255,255,.72)}
.vw-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.vw-state{margin:0;min-height:1.35em;font-size:12.5px;line-height:1.35;color:rgba(255,255,255,.72)}
.vw-state.bad{color:#FF8A8A}
@media (max-width:640px){
  .lrow{grid-template-columns:auto auto minmax(0,1fr) auto}.lrow code,.lrow .lset{grid-column:1/-1}.lform .lgrid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lform .lgrid input[type="text"]{grid-column:1/-1}
  .kv{grid-template-columns:minmax(0,1fr)}.lp-run{grid-template-columns:minmax(0,1fr) auto}.lp-run .t,.lp-run .status{grid-column:1/-1}.st-form .two{grid-template-columns:minmax(0,1fr)}
}
