/* Onbrand studio app. Tokens from brand/tokens.json (palette A); see DESIGN.md. */
@import url("fonts/fonts.css");
:root{--ink:#16191F;--muted:#4F5663;--bg:#F6F5F1;--surface:#FFF;--sheet:#ECEAE4;--line:#DEDBD3;--action:#3346C8;--attention:#8A5300;--failure:#B3261E;--ok:#1E6B43;--ok-wash:#E1EFE6;--attention-wash:#F7EBD5;--failure-wash:#F8E1DF;--action-ink:#2A3AA8;--action-wash:#E4E7FA;--shadow:0 2px 8px rgba(22,25,31,.12);--font-body:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;--font-mono:"JetBrains Mono",ui-monospace,Consolas,monospace}
*{box-sizing:border-box}html,body{margin:0}
body{font:400 0.9375rem/22px var(--font-body);color:var(--ink);background:var(--bg)}
a{color:var(--action);text-decoration:none}a:hover{text-decoration:underline}
:focus-visible{outline:3px solid var(--action);outline-offset:4px}
.skip{position:absolute;left:-999px}.skip:focus{left:16px;top:8px;z-index:9;background:var(--surface);padding:8px 12px;border-radius:6px}
.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
h1{font-size:1.25rem;line-height:26px;font-weight:600;margin:0 0 8px}h2{font-size:1rem;line-height:22px;font-weight:600;margin:0}
.meta{font-size:0.8125rem;line-height:18px;color:var(--muted);margin:0}
.top{display:flex;align-items:center;gap:24px;height:56px;padding:0 24px;background:var(--surface);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--ink);margin:0}.brand img{width:22px;height:22px}
.nav{display:flex;gap:4px}.nav a{color:var(--muted);padding:8px 12px;border-radius:6px;font-weight:600;font-size:0.8125rem}.nav a.on{color:var(--ink);background:var(--sheet)}
.who{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:0.8125rem;color:var(--muted)}
.link{border:0;background:none;color:var(--action);font:inherit;cursor:pointer;min-height:44px}
.page{max-width:none;margin:0 auto;padding:32px 32px 48px}
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:6px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:600 14px var(--font-body);cursor:pointer}
.btn.pri{background:var(--action);border-color:var(--action);color:var(--surface)}.btn.wide{width:100%;margin-top:16px}
label.f{display:block;font-size:0.8125rem;font-weight:600;margin:20px 0 8px}
.in{width:100%;min-height:44px;padding:12px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font:15px var(--font-body);color:var(--ink)}
.card{background:var(--surface);border-radius:10px;box-shadow:var(--shadow)}.pad{padding:24px}
.st{display:inline-flex;align-items:center;gap:4px;font:700 0.8125rem/16px var(--font-body);letter-spacing:.06em;padding:3px 8px 3px 8px;border-radius:999px;border:1px solid transparent;background:var(--sheet);white-space:nowrap;color:var(--muted)}
.st::before{content:"\25CB";content:"\25CB" / "";font-size:0.6875rem;line-height:1;width:12px;text-align:center}
.st.busy{color:var(--ink);background:var(--sheet)}.st.busy::before{content:"";width:8px;height:8px;margin:0 2px;box-sizing:border-box;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:stspin 1s linear infinite}@keyframes stspin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.st.busy::before{animation:none}}
.st.rev{color:var(--action-ink);background:var(--action-wash)}.st.rev::before{content:"\25CF";content:"\25CF" / ""}
.st.look{color:var(--attention);background:var(--attention-wash);border-color:var(--attention-line)}.st.look::before{content:"!";content:"!" / "";font-weight:800}
.st.ok{color:var(--ok);background:var(--ok-wash)}.st.ok::before{content:"\2713";content:"\2713" / "";font-weight:800}
.st.fail{color:var(--failure);background:var(--failure-wash)}.st.fail::before{content:"\2715";content:"\2715" / "";font-weight:800}
.st.held{color:var(--muted);background:transparent;border:1px dashed var(--held-line)}.st.held::before{content:"\2013";content:"\2013" / "";font-weight:800}
.key{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0 0}.key .st{cursor:help}
table.t{width:100%;border-collapse:collapse}.t th{font-size:0.8125rem;font-weight:600;color:var(--muted);text-align:left;padding:12px 16px;border-bottom:1px solid var(--line)}
.t td{padding:16px 16px;border-bottom:1px solid var(--line);vertical-align:middle}.t tr:last-child td{border-bottom:0}.t .num{text-align:right}
.chips{display:flex;gap:8px;flex-wrap:wrap}
meter{display:block;width:100%;height:6px;margin-top:8px;appearance:none;background:var(--sheet);border:0;border-radius:3px}
meter::-webkit-meter-bar{background:var(--sheet);border:0;border-radius:3px;height:6px}meter::-webkit-meter-optimum-value,meter::-webkit-meter-suboptimum-value{background:var(--action);border-radius:3px}meter::-moz-meter-bar{background:var(--action)}
.note{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;border-radius:10px;background:var(--surface);border:1px solid var(--line);margin-bottom:16px;font-size:0.8125rem}
.note.wait{border-color:var(--attention-line);background:var(--attention-note)}.note.fail{border-color:var(--failure-line);background:var(--failure-note)}
.solo{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(1200px 500px at 50% -10%,var(--action-wash) 0,var(--bg) 60%)}
.solo-in{width:400px;max-width:100%}.solo .brand{justify-content:center;font-size:1.25rem;margin-bottom:24px}
.empty{text-align:center;padding:48px 24px}
select.in{appearance:auto}textarea.in{min-height:88px;resize:vertical}.narrow{max-width:760px}.row{display:flex;gap:8px;justify-content:flex-end;margin-top:20px}
.steps{display:flex;padding:0;margin:16px 0 24px;list-style:none}.steps li{flex:1;font-size:0.8125rem;font-weight:600;color:var(--muted);padding-top:12px;border-top:3px solid var(--line);margin-right:8px}.steps li.done{color:var(--ink);border-color:var(--ink)}.steps li.on{color:var(--action);border-color:var(--action)}
.g2{display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:start}.g2.left{grid-template-columns:240px 1fr}.fl{display:flex;flex-direction:column;margin:8px 0 16px}.fl a{display:flex;justify-content:space-between;padding:8px 8px;border-radius:6px;color:inherit;text-decoration:none}.fl a.on,.fl a:hover{background:var(--sheet)}.crumbs{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.move{display:flex;gap:8px;align-items:center}.move .in{width:auto;margin:0}.tgs{border:0;padding:0;margin:16px 0 0}.tg{display:grid;grid-template-columns:auto 40px 1fr;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}.pick{margin-bottom:16px}.tg.vc{grid-template-columns:40px 1fr}.tg.vc .in{margin:0}.listen{padding:32px;width:100%;max-width:560px}.listen audio{width:100%}
.shotrow{display:grid;grid-template-columns:1fr 2fr auto auto;gap:16px;align-items:center;padding:16px 24px;border-top:1px solid var(--line)}
dl.kv{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:16px 0 0;font-size:0.8125rem}dl.kv dt{color:var(--muted)}dl.kv dd{margin:0;text-align:right}
.cap{font-size:0.8125rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:20px 0 8px}
.studio{display:grid;grid-template-columns:260px 1fr 340px;min-height:calc(100vh - 56px)}.pane{background:var(--surface);padding:20px;border-right:1px solid var(--line)}form.pane{border-right:0;border-left:1px solid var(--line)}
.view{display:flex;flex-direction:column;gap:16px;padding:20px 24px;min-width:0}.stage{display:grid;place-items:center;background:var(--sheet);border-radius:12px;min-height:420px;overflow:hidden}
.stage img,.stage video{max-width:100%;max-height:70vh;display:block}.strip{display:flex;gap:8px;flex-wrap:wrap}.strip a{display:flex;gap:8px;align-items:center;padding:8px 12px;border-radius:6px;background:var(--surface);color:var(--ink);border:1px solid var(--line)}.strip a.on{outline:3px solid var(--action)}
.claims{padding-left:16px;font-size:0.8125rem}.check{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:0.8125rem;padding:8px 0;border-bottom:1px solid var(--line)}
.check>span:last-child{white-space:nowrap;flex-shrink:0}.rb{display:inline-flex;align-items:center;gap:4px;margin-left:12px;font-size:0.8125rem;min-height:32px}.rb.all{display:flex;margin:16px 0 0;font-weight:600}.files{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.file{margin:0}.file img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:10px;display:block;background:var(--sheet)}.file figcaption{display:flex;justify-content:space-between;margin-top:8px;font-size:0.8125rem}
@media (max-width:768px){.g2.left{grid-template-columns:1fr}.studio{grid-template-columns:1fr}.studio>aside{display:none}.g2{grid-template-columns:1fr}.shotrow{grid-template-columns:1fr auto}.shotrow .meta{display:none}.page{padding:20px 16px}.t th:nth-child(2),.t td:nth-child(2){display:none}.who span{display:none}}
.lede{font-size:0.9375rem;color:var(--muted);margin:0 0 16px;max-width:640px}.sec{display:flex;align-items:center;gap:12px;margin:24px 0 0}.sec:first-of-type{margin-top:0}.sec .n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--sheet);font-size:0.8125rem}.sec2{margin:24px 0 8px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cur{position:relative}.cur span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-family:var(--font-mono)}.cur .in{padding-left:28px}
.tg{display:grid;grid-template-columns:56px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}.what{display:flex;flex-direction:column;min-width:0}.cks{display:flex;gap:12px;flex-wrap:wrap}.ck{display:inline-flex;align-items:center;gap:8px;font-size:0.8125rem;min-height:44px}
.thumb{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:6px;background:var(--sheet);color:var(--muted);font-size:0.8125rem;font-weight:600;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}
.plan{display:grid;grid-template-columns:56px 1fr auto;gap:4px 12px;align-items:center;padding:16px 24px;border-top:1px solid var(--line)}.plan .more{grid-column:2/4}.plan .more .meta{margin-top:2px}.plan details{margin-top:8px;font-size:0.8125rem}.plan summary{cursor:pointer;color:var(--action);min-height:28px}.price{font-size:0.9375rem}
.next{margin:0;padding-left:20px;font-size:0.8125rem;line-height:19px;color:var(--muted)}.next li{margin:0 0 8px}
@media (max-width:720px){.two{grid-template-columns:1fr}.tg{grid-template-columns:56px 1fr}.tg .cks{grid-column:1/3}}
.plan .kv{margin-top:8px}.plan .kv dd{text-align:left}
.card+.card{margin-top:16px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin:16px 0}.tile{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column}.tile>img,.tile>video,.tile .face{width:100%;aspect-ratio:3/4;object-fit:cover;background:var(--sheet);display:block}.tile>audio{width:100%;padding:16px}.tile figcaption{display:flex;flex-direction:column;gap:8px;padding:12px 16px 16px;align-items:flex-start}.tile figcaption .btn{margin-top:4px}
.face{position:relative}.face.busy{background:linear-gradient(100deg,var(--sheet) 30%,var(--bg) 50%,var(--sheet) 70%);background-size:300% 100%;animation:shimmer 1.4s linear infinite}.spin{position:absolute;left:50%;top:50%;width:28px;height:28px;margin:-16px 0 0 -16px;border:3px solid var(--line);border-top-color:var(--action);border-radius:50%;animation:spin .8s linear infinite}
.landed{animation:land .5s ease-out}.bar{width:100%;height:8px;margin:8px 0 0;appearance:none;border:0;border-radius:4px;background:var(--sheet);overflow:hidden}.bar::-webkit-progress-bar{background:var(--sheet)}.bar::-webkit-progress-value{background:var(--action);transition:width .4s}.bar::-moz-progress-bar{background:var(--action)}
.legend{margin-top:8px}.legend .kv dd{text-align:left}.row.left{justify-content:center}
.finish{position:relative;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:40px 24px 28px;margin-bottom:24px;overflow:hidden}.finish h1{font-size:1.75rem;line-height:36px;margin:16px 0 8px}.finish .meta{margin:8px 0}.btn.big{min-height:52px;padding:0 24px;font-size:1rem;margin-top:12px}
.tick{display:inline-block;width:64px;height:64px;border-radius:50%;background:var(--ok);position:relative;animation:pop .5s cubic-bezier(.2,1.6,.4,1) both}.tick::after{content:"";position:absolute;left:23px;top:14px;width:14px;height:26px;border:solid var(--surface);border-width:0 5px 5px 0;transform:rotate(45deg)}
.burst i{position:absolute;left:50%;top:72px;width:8px;height:8px;border-radius:2px;opacity:0;animation:burst 1.1s ease-out .15s both}.burst i:nth-child(1){background:var(--action);--x:-140px;--y:-40px}.burst i:nth-child(2){background:var(--ok);--x:130px;--y:-50px}.burst i:nth-child(3){background:var(--attention);--x:-90px;--y:50px}.burst i:nth-child(4){background:var(--action);--x:100px;--y:60px}.burst i:nth-child(5){background:var(--attention);--x:-30px;--y:-70px}.burst i:nth-child(6){background:var(--ok);--x:40px;--y:80px}
@keyframes shimmer{to{background-position:-150% 0}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes land{from{opacity:.3;transform:scale(.97)}to{opacity:1;transform:none}}@keyframes pop{from{transform:scale(0)}to{transform:scale(1)}}@keyframes burst{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(200deg)}}
@media (prefers-reduced-motion:reduce){.face.busy,.spin,.landed,.tick,.burst i{animation:none}.burst{display:none}}
.st{letter-spacing:0;font-size:0.8125rem;font-weight:600}
.meta.held{color:var(--attention)}.note.live{border-color:var(--action)}
.rv{grid-template-columns:240px minmax(0,1fr) 380px;height:calc(100vh - 56px);min-height:560px}.rv>.pane,.rv>.view{overflow:auto}
.rv .stage{flex:1 1 auto;min-height:320px}.rv .stage img,.rv .stage video{max-height:calc(100vh - 300px);max-width:100%;object-fit:contain}
h2.side{font-size:0.8125rem;line-height:18px;font-weight:600;color:var(--muted);margin:20px 0 8px}h2.side:first-child{margin-top:0}
.rvhead{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.rvhead h1{margin:0}
.rvform{display:flex;flex-direction:column;padding:0}.rvscroll{flex:1 1 auto;overflow:auto;padding:20px}.rvscroll h2{margin-bottom:4px}
.rvbar{display:grid;gap:8px;padding:16px 20px;border-top:1px solid var(--line);background:var(--surface)}.rvbar .btn{width:100%}.btn:disabled{opacity:.45;cursor:not-allowed}
h3.sub{font-size:0.8125rem;line-height:18px;font-weight:600;margin:20px 0 4px}
.autoline{display:flex;gap:8px;align-items:center;font-size:0.8125rem;color:var(--muted);margin:12px 0 0}
.flag{display:flex;gap:12px;align-items:flex-start;padding:8px;margin:0 -8px;border-radius:6px;font-size:0.8125rem;line-height:20px;cursor:pointer}.flag:hover{background:var(--bg)}
.flag input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--failure)}.flag b{margin-right:2px}.flag .meta{display:block}.flag:has(input:checked){background:var(--failure-wash)}
kbd{font:600 0.6875rem/16px var(--font-mono);padding:0 5px;margin-left:8px;border-radius:4px;background:rgba(255,255,255,.22)}.btn.bad kbd{background:var(--failure-wash)}
@media (max-width:768px){.rv{height:auto;padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}.rv>.pane,.rv>.view,.rvscroll{overflow:visible}.rvbar{position:fixed;left:0;right:0;bottom:0;z-index:6;grid-template-columns:1fr 1fr;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 16px rgba(0,0,0,.08)}.rvbar .btn{padding-left:8px;padding-right:8px}.rvbar>.meta{grid-column:1/-1;margin:0;text-align:center}}
/* Long titles: two lines show in full, a third fades out (no dots); full text in the title tooltip. */
.tile figcaption{flex:1 1 auto}.tile figcaption .btn{margin-top:auto}
.tt{display:block;max-height:66px;overflow:hidden;overflow-wrap:anywhere;-webkit-mask-image:linear-gradient(#000 50px,transparent 66px);mask-image:linear-gradient(#000 50px,transparent 66px)}
.t td b,.rvhead h1,.crumbs .meta{overflow-wrap:anywhere}
.ko{margin:8px 0 2px}.ko>summary{cursor:pointer;font-size:0.8125rem;color:var(--muted);list-style:none;display:flex;gap:8px;align-items:center}.ko>summary::-webkit-details-marker{display:none}
.ko .chg{color:var(--action);font-weight:600}.ko[open] .chg{display:none}.ko .cks{display:flex;flex-direction:column;gap:2px;margin:8px 0 12px}.ko .btn{min-height:36px}.ko select.in{margin:8px 0 12px}
.plan .model{font-weight:600;color:var(--ink)}ol.next{display:flex;flex-direction:column;gap:4px;margin:16px 0 0;padding-left:20px;font-size:0.8125rem;color:var(--muted)}
.rv .note{padding:8px 12px;font-size:0.8125rem;line-height:18px;margin:0}.rv .strip{flex-wrap:nowrap;overflow-x:auto}.rv .strip .st{font-size:0.8125rem}
.err{color:var(--failure);font-size:0.8125rem;font-weight:600;margin:8px 0 0}.in[aria-invalid="true"]{border-color:var(--failure);box-shadow:0 0 0 1px var(--failure)}
.ko.big{margin:20px 0 0}.ko.big>summary{font-size:0.8125rem;color:var(--ink);font-weight:600}
.mode{font-size:0.8125rem;font-weight:600;padding:3px 12px;border-radius:999px;background:var(--sheet);color:var(--muted);white-space:nowrap}
.mode.live{background:var(--attention-wash);color:var(--attention)}.mode.live::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:8px;vertical-align:1px}
@media (max-width:768px){.mode{display:none}}
/* Breathing room: help text never sits flush under a button or form. */
form+.meta,.btn+.meta,form+p.meta,.row+.meta,.cur+.meta,.cur+.err,.err+.meta{margin-top:12px}.wide+.meta{margin-top:12px}
aside.card form+p.meta,aside>.card form+p.meta{margin:12px 0 0}
.in+.meta,.two+.meta,.move+.meta,select+.meta,textarea+.meta,.kv+.meta,.tiles+.key,.cks+.meta{margin-top:8px}
script+.meta,form~p.meta{margin-top:12px}
/* Review: the brand notes fold into a slim strip on the left; click it to open them again */
.fold>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;font-size:0.8125rem;font-weight:600;color:var(--muted);margin:-8px -8px 12px;padding:8px;border-radius:6px}
.fold>summary::-webkit-details-marker{display:none}
.fold>summary::before{content:"";width:7px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:3px}
.fold>summary:hover,.fold>summary:focus-visible{color:var(--ink);background:var(--bg)}
.fold>summary span{flex:1}
.rv:has(.fold:not([open])){grid-template-columns:52px minmax(0,1fr) 380px}
.rv:has(.fold:not([open]))>.pane{padding:12px 8px;overflow:hidden}
.fold:not([open])>summary{flex-direction:column;margin:0;padding:12px 0;min-height:160px}
.fold:not([open])>summary::before{transform:rotate(-135deg);margin:0 0 4px}
.fold:not([open])>summary span{writing-mode:vertical-rl;transform:rotate(180deg);flex:0 0 auto}
.rv .strip a{white-space:nowrap}
/* Briefs list: drag to move into folders and to reorder */
tbody.drag tr[draggable]{cursor:grab}tbody.drag tr.lifted{opacity:.45}
.fl a.target{background:var(--action-wash);color:var(--action-ink);outline:2px dashed var(--action);outline-offset:-2px}
.hint{margin:12px 0 0}
/* Every select: our own arrow with room on the right, never against the edge */
select.in{appearance:none;-webkit-appearance:none;padding-right:40px;background-color:var(--surface);background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 15px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.note.toast{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.note.toast .btn{flex:0 0 auto}
/* Review shot tabs: card-style tabs, the current one marked by a full blue border (never clipped) */
.strip{padding:3px 2px 8px}
.strip a,.strip a:hover{text-decoration:none}
.strip a{padding:12px 16px;gap:12px;min-height:44px;box-sizing:border-box;transition:border-color .15s}
.strip a:hover{border-color:var(--muted)}
.strip a.on{outline:0;border-color:var(--action);box-shadow:0 0 0 1px var(--action)}
.strip a b{font-weight:600}
/* Buttons never look like links */
a.btn,a.btn:hover,a.btn:focus{text-decoration:none}
/* Breadcrumb with the folder menu: Briefs / Folder / Brief name */
.trail{display:flex;align-items:center;gap:8px;min-width:0;margin:0}.trail .tt1{overflow-wrap:anywhere}
.pickf{margin:0;display:inline-flex}
select.in.chip{width:auto;margin:0;min-height:32px;height:32px;padding:4px 34px 4px 12px;border-radius:999px;border:1px solid var(--line);background-color:var(--sheet);font-size:0.8125rem;font-weight:600;color:var(--ink);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;cursor:pointer}
select.in.chip:hover{border-color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Select briefs: a checkbox column and a bar that wakes up once something is ticked */
.t th.pick,.t td.pick{width:36px;padding-right:0}.t td.pick input,.t th.pick input{width:18px;height:18px;margin:0;cursor:pointer}
.bulkbar{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);min-height:56px;box-sizing:border-box}
.bulkbar [data-count]{flex:1}.bulkbar.on{background:var(--action-wash)}.bulkbar.on [data-count]{color:var(--action-ink);font-weight:600}
.bulkbar .btn{min-height:36px;padding:0 16px}.bulkbar select:disabled{color:var(--muted);cursor:not-allowed}
.fl a.trash{margin-top:8px;border-top:1px solid var(--line);border-radius:0 0 6px 6px;color:var(--muted)}
/* Rename a brief from its breadcrumb */
.ren{position:relative}.ren>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;border-radius:6px;padding:2px 8px;margin:-2px -8px}
.ren>summary::-webkit-details-marker{display:none}.ren>summary:hover{background:var(--sheet);color:var(--ink)}
.pen{width:10px;height:10px;border:1.5px solid currentColor;border-radius:2px;opacity:.6}
.ren[open]>summary{display:none}.ren form{display:flex;gap:8px;align-items:center}.ren .in{margin:0;width:min(360px,60vw);min-height:36px}
.ren .btn{min-height:36px}
/* Folders card: title with a folder-plus button that opens Name and Description */
.fhead{display:flex;align-items:center;justify-content:space-between;gap:8px}.fhead h2{margin:0}
.newf>summary{list-style:none}.newf>summary::-webkit-details-marker{display:none}
.iconbtn{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:6px;border:1px solid var(--line);color:var(--ink);cursor:pointer;background:var(--surface)}
.iconbtn:hover{border-color:var(--muted);background:var(--sheet)}.newf[open]>.iconbtn{background:var(--action-wash);color:var(--action-ink);border-color:var(--action)}
.fcard{position:relative}.newf form{position:absolute;left:12px;right:12px;top:60px;z-index:5;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:16px}
.newf textarea.in{resize:vertical;min-height:56px}
.card.empty .row{justify-content:center;margin-top:16px}
/* Design-system sweep 2026-11-23: components (tokens, links, buttons, badge, label, card header, list, check line, page state, phone fixes) */
/* New tokens (add to :root and to brand/tokens.json + DESIGN.md) */
:root{
  --line-strong:#86837A;      /* control borders: 3.79:1 on surface, 3.47:1 on background (WCAG 1.4.11) */
  --attention-line:#E2C38E;   /* already used for "Needs a look"; name it */
  --attention-note:#FBF4E8;   /* note.wait background */
  --failure-line:#E7C3C0;     /* note.fail border, .btn.bad border */
  --failure-note:#FBEFEE;     /* note.fail background */
  --held-line:#B9B4A8;        /* dashed outline of "Not generated" */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-6:24px;--sp-8:32px;--sp-12:48px;
  --r-btn:6px;--r-card:10px;--r-sheet:12px;--r-pill:999px;
}

/* 1. Links: underline only real text links, never card-like links (tabs, tiles, folder rows, nav) */
a:hover{text-decoration:none}
.prose a:hover,p a:hover,.meta a:hover,.crumbs-path a:hover,td a:hover{text-decoration:underline}
/* 5. Buttons: control border passes 3:1; disabled never uses opacity (it breaks contrast) */
.btn{border-color:var(--line-strong);gap:var(--sp-2);white-space:nowrap}
.btn:hover{border-color:var(--ink)}
.btn.pri:hover{background:var(--action-ink);border-color:var(--action-ink)}
.btn:disabled,.btn[disabled]{opacity:1;color:var(--muted);background:var(--surface);border:1px dashed var(--line-strong);cursor:not-allowed}
.btn.pri:disabled{color:var(--muted);background:var(--sheet);border-color:var(--sheet)}
.btn.bad{border-color:var(--failure-line)}

/* 6. Badge: a mode or a fact (Practice, Live, Video, 4:5). NOT a status, so it has no status icon
   and is square-cornered so it never reads as a status chip. */
.badge{display:inline-flex;align-items:center;gap:8px;font:600 0.8125rem/16px var(--font-body);padding:2px 8px;
  border-radius:var(--r-btn);background:var(--sheet);color:var(--muted);white-space:nowrap;vertical-align:middle}
.badge.live{background:var(--attention-wash);color:var(--attention)}
.badge.live::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.badge.mono{font-family:var(--font-mono);font-weight:400}

/* 8. Section label: replaces the uppercase letter-spaced .cap (not in the type scale; wraps badly).
   Sentence case, meta size, semibold, muted. */
.label{font:600 0.8125rem/18px var(--font-body);color:var(--muted);margin:var(--sp-6) 0 var(--sp-2);text-transform:none;letter-spacing:0}
.label:first-child{margin-top:0}

/* 9. Card header: a heading always has 12px before its content. Fixes "text runs together". */
.card>h2:first-child,.card .pad>h2:first-child{margin-bottom:var(--sp-3)}
.card h2+ul,.card h2+ol,.card h2+.kv,.card h2+.list{margin-top:var(--sp-3)}

/* 10. List rows: replaces browser bullets for things like "Not in the download". One fact per line:
   name (ink) then reason (meta) underneath. */
.list{list-style:none;margin:0;padding:0}
.list>li{display:grid;grid-template-columns:auto 1fr;gap:2px var(--sp-3);align-items:start;padding:var(--sp-3) 0;border-top:1px solid var(--line)}
.list>li:first-child{border-top:0;padding-top:0}
.list>li>.st{grid-row:span 2}
.list>li>b{font-weight:600}
.list>li>.meta{grid-column:2}

/* 11. Check line: a status chip beside text that may wrap. Chip stays top-aligned, text wraps under itself. */
.checkline{display:grid;grid-template-columns:auto 1fr;gap:var(--sp-2) 12px;align-items:start;font-size:0.8125rem;line-height:20px;color:var(--muted)}
.checkline>.st{margin-top:0}

/* 13. Empty and error state (404, form expired, empty folder, nothing approved). Inside the normal
   layout, never a bare text page. */
.state{text-align:center;padding:var(--sp-12) var(--sp-6);max-width:520px;margin:var(--sp-8) auto}
.state .glyph{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--sheet);color:var(--muted);font:700 1.25rem/1 var(--font-body)}
.state h1,.state h2{margin:var(--sp-4) 0 var(--sp-2)}
.state p{margin:0 auto var(--sp-6);color:var(--muted);max-width:420px}
.state .row{justify-content:center;margin:0}

/* 14. Phone fixes (layout, not components) */
@media (max-width:768px){
  .rv,.rv:has(.fold:not([open])){grid-template-columns:1fr}           /* review middle column was 0px */
  .rv:has(.fold:not([open]))>aside.pane{display:none}
  .head{flex-wrap:wrap;align-items:flex-start}.head>div:first-child{flex:1 1 100%}
  .t-wrap{overflow-x:auto;margin:0 -16px;padding:0 16px}               /* wide tables scroll inside their card */
  .group{flex-wrap:wrap}.group>.select,.group>.in{flex-basis:100%}
}
select.in{border-color:var(--line-strong)}select.in.chip{border-color:var(--line)}.strip a,.strip a:hover{text-decoration:none}
/* Phone: the header keeps to the screen; the briefs table keeps the brief name */
@media (max-width:768px){
  .top .badge{display:none}.top{min-width:0}.top .who{flex:none}
  .bulk .t th:nth-child(2),.bulk .t td:nth-child(2){display:table-cell}
  .bulk .t th:nth-child(3),.bulk .t td:nth-child(3),.bulk .t th:nth-child(5),.bulk .t td:nth-child(5){display:none}
  .bulkbar{flex-wrap:wrap}.bulkbar [data-count]{flex:1 1 100%}
}
/* 7. Disclosure: one chevron for every fold (plan "What the model is asked for", "Change",
   brand notes). Replaces the native triangle. */
.disclosure>summary{list-style:none;display:inline-flex;align-items:center;gap:var(--sp-2);min-height:32px;cursor:pointer;
  color:var(--action);font-weight:600;font-size:0.8125rem;line-height:18px}
.disclosure>summary::-webkit-details-marker{display:none}
.disclosure>summary::before{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(-45deg);transition:transform 140ms cubic-bezier(.2,.8,.2,1)}
.disclosure[open]>summary::before{transform:rotate(45deg)}
.disclosure>summary:hover{text-decoration:none;color:var(--action-ink)}
.disclosure>:not(summary){margin-top:var(--sp-2)}
/* Every other fold (Change, Rename or delete) uses the same chevron */
.ko>summary::before{content:"";flex:none;width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform 140ms cubic-bezier(.2,.8,.2,1)}
.ko[open]>summary::before{transform:rotate(45deg)}
@media (prefers-reduced-motion:reduce){.ko>summary::before,.disclosure>summary::before{transition:none}}
/* Briefs list: brief names in ink, next step as a small button */
.bulk .t td a b{color:var(--ink);font-weight:600}.bulk .t td a:hover b{color:var(--action)}
.btn.sm{min-height:32px;padding:0 12px;font-size:0.8125rem}

/* Apple HIG review 2026-11-24 */
/* H6: every button shows it is pressed */
.btn:active{transform:translateY(1px)}.btn.pri:active{background:var(--action-ink);border-color:var(--action-ink)}
@media (prefers-reduced-motion:reduce){.btn:active{transform:none}}
/* H4: 44px tap targets on touch screens */
@media (pointer:coarse),(max-width:768px){
  .btn,.btn.sm,.iconbtn,select.in.chip,.nav a,.bulkbar .btn{min-height:44px}
  .iconbtn{width:44px;height:44px}
  .ko>summary,.disclosure>summary,.ren>summary,.fold>summary{min-height:44px}
  .t td.pick,.t th.pick{width:44px}.t td.pick input,.t th.pick input,.tg input[type=checkbox],.ko input[type=checkbox]{width:24px;height:24px}
  .crumbs a,.trail a{display:inline-flex;align-items:center;min-height:44px}
}
/* H10: no keyboard hints on touch screens */
@media (hover:none){kbd,.keys{display:none}}
/* H11: chips at the meta size */
.st,.strip .st,.tab .st{font-size:.8125rem}
/* H7: blue means "you can act" and Ready for review; the Live badge is ink, not amber */
.badge.live{background:var(--ink);color:var(--surface)}
.pickrow{flex-wrap:wrap}.pickrow select.in{flex:1 1 240px;min-width:0;max-width:100%}
.plan .disclosure>p.label:first-of-type{margin-top:var(--sp-3)}.plan .disclosure .label{margin-bottom:var(--sp-1)}
.g2>.card+.card,.g2>*+aside.card{margin-top:0}
.stepsf{margin-top:16px}.stepsf>.card .sec:first-child{margin-top:0}
p.meta.gap{margin:0 0 var(--sp-4)}
ul.plain{margin:0;padding-left:20px}ul.plain li{margin:2px 0}.gap-top{margin-top:var(--sp-6)}
.list.rules>li{grid-template-columns:auto 1fr}.list.rules>li>.badge{grid-row:span 2;align-self:start}.pagehead>.st{justify-self:end}
.tabs{display:flex;gap:var(--sp-2);margin:0 calc(-1 * var(--sp-2));padding:var(--sp-2);overflow-x:auto;scroll-padding:var(--sp-2);scrollbar-width:thin}
.tab{display:inline-flex;align-items:center;gap:10px;flex:none;min-height:48px;padding:0 var(--sp-3) 0 var(--sp-4);
  border-radius:var(--r-card);background:var(--surface);border:1px solid var(--line);box-shadow:none;
  color:var(--ink);font:600 0.9375rem/22px var(--font-body);text-decoration:none;white-space:nowrap;
  transition:box-shadow 140ms cubic-bezier(.2,.8,.2,1),border-color 100ms}
.tab:hover{border-color:var(--line-strong);text-decoration:none}
.tab[aria-current="page"]{border-color:transparent;box-shadow:inset 0 0 0 2px var(--action)}
.tab:focus-visible{outline:3px solid var(--action);outline-offset:2px}
.tab .st{font-size:0.8125rem;line-height:16px;padding:2px 8px 2px 6px}
@media (prefers-reduced-motion:reduce){.tab{transition:none}}
.pagehead{display:grid;grid-template-columns:1fr auto;gap:var(--sp-1) var(--sp-4);align-items:end;margin-bottom:var(--sp-6)}
.pagehead .path{grid-column:1/-1;font-size:0.8125rem;line-height:18px;color:var(--muted)}
.pagehead .path a+span::before,.pagehead .path a+a::before{content:"/";margin:0 8px;color:var(--muted)}
.pagehead h1{margin:0}
.pagehead .actions{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:640px){.pagehead{grid-template-columns:1fr}.pagehead .actions{justify-content:flex-start}}
.pagehead>p.meta{grid-column:1/-1;margin:0}.pagehead .rvhead{grid-column:1;margin:0}.tabs{margin-bottom:var(--sp-4)}
.narrowcard{max-width:640px}ul.cited{list-style:none;margin:0;padding:0}ul.cited li{display:flex;flex-direction:column;padding:var(--sp-2) 0;border-top:1px solid var(--line)}ul.cited li:first-child{border-top:0}ul.cited a{overflow-wrap:anywhere}
.state .spin{position:relative;left:auto;top:auto;margin:0 auto;display:block}.found{margin-top:var(--sp-6)}
.narrowcard>label.f:first-of-type{margin-top:0}
@media (max-width:480px){.top{gap:var(--sp-3);padding:0 var(--sp-4)}.top .brand{font-size:0}.top .brand img{margin:0}.nav a{padding:8px}}
/* Recently deleted (ONBRAND-206): the Restore column stays on phones, and a hint never touches the next card */
@media (max-width:768px){.t.keep th:nth-child(2),.t.keep td:nth-child(2){display:table-cell}}
.hint+.card{margin-top:var(--sp-6)}
/* Undo toasts fade after about 8 seconds (ONBRAND-205) */
.note.toast.gone{opacity:0;visibility:hidden;height:0;margin:0;padding-top:0;padding-bottom:0;overflow:hidden;transition:opacity .3s,visibility 0s .3s}
@media (prefers-reduced-motion:reduce){.note.toast.gone{transition:none}}

/* Brand files (ONBRAND-228 slice 3): one row per file, thumbnail, name, type and size, remove on drafts */
.files{list-style:none;margin:var(--sp-3) 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:var(--sp-3)}
.file{display:grid;grid-template-columns:3.5rem 1fr auto;grid-template-rows:auto auto;gap:0 var(--sp-3);align-items:center;
  padding:var(--sp-2);border:1px solid var(--line);border-radius:var(--r-card)}
.file .thumb{grid-row:span 2;width:3.5rem;height:3.5rem;border-radius:var(--r-btn);object-fit:contain;background:var(--sheet)}
.file .thumb.doc{display:grid;place-items:center;font:600 0.8125rem/1 var(--font-body);color:var(--muted)}
.file>a,.file>b{min-width:0;overflow-wrap:anywhere;align-self:end}
.file>.meta{grid-column:2;align-self:start}
.file>form{grid-column:3;grid-row:1/span 2}
.upload{margin-top:var(--sp-4);padding-top:var(--sp-4);border-top:1px solid var(--line)}
.upload input[type=file]{padding:var(--sp-2)}
.upload-row{display:flex;gap:var(--sp-2);align-items:stretch}
.upload-row>.in{flex:1 1 auto;min-width:0;width:auto}
.upload-row>.btn{flex:none}
.file>a,.file>b{overflow-wrap:normal;word-break:normal}
@media (max-width:480px){.upload-row{flex-wrap:wrap}.upload-row>.in{flex-basis:100%}}
/* Open tabs under the top bar, like browser tabs (ONBRAND-201) */
.otabs{display:flex;align-items:flex-end;gap:var(--sp-2);padding:var(--sp-2) var(--sp-6) 0;background:var(--sheet);border-bottom:1px solid var(--line-strong);min-height:44px;box-sizing:border-box}
.otabrow{display:flex;align-items:flex-end;gap:2px;min-width:0;overflow-x:auto;scrollbar-width:none}
.otab{flex:0 0 auto;display:flex;align-items:center;gap:var(--sp-2);max-width:240px;min-width:96px;height:36px;padding:0 4px 0 var(--sp-3);border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;color:var(--muted);box-sizing:border-box}
.otab:hover{background:var(--surface);color:var(--ink)}
.otab.on{background:var(--bg);border-color:var(--line-strong);color:var(--ink);font-weight:600;margin-bottom:-1px;height:37px}
.otab a{flex:1;min-width:0;overflow:hidden;white-space:nowrap;color:inherit;text-decoration:none;font-size:0.9375rem}
.otab a:focus-visible{outline:3px solid var(--action);outline-offset:2px;border-radius:4px}
.otab form{margin:0}
.otabx{display:grid;place-items:center;width:24px;height:24px;border:0;border-radius:6px;background:none;color:var(--muted);cursor:pointer}
.otabx:hover{background:var(--line);color:var(--ink)}
.otabadd{margin:0 0 4px}.otabadd .iconbtn{width:32px;height:32px}
.otabmenu{display:none}
@media (max-width:768px){
  .otabs{padding:var(--sp-2) var(--sp-4);align-items:center}
  .otabrow{display:none}
  .otabmenu{display:block;position:relative}
  .otabmenu>summary{display:flex;align-items:center;gap:var(--sp-2);min-height:44px;padding:0 var(--sp-3);border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);cursor:pointer;list-style:none;font-weight:600}
  .otabmenu>summary::-webkit-details-marker{display:none}
  .otablist{position:absolute;z-index:5;top:calc(100% + 4px);left:0;min-width:220px;display:flex;flex-direction:column;padding:var(--sp-2);background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12)}
  .otablist a{min-height:44px;display:flex;align-items:center;padding:0 var(--sp-3);border-radius:8px;color:var(--ink);text-decoration:none}
  .otablist a[aria-current]{background:var(--sheet);font-weight:600}
}
.otab[draggable]{cursor:grab}.otab.lifted{opacity:.45}  /* drag tabs to reorder (ONBRAND-201) */
/* Search and stars on the briefs list (ONBRAND-208) */
.find{display:flex;align-items:center;gap:var(--sp-2);margin:0}
.find input[type=search]{width:220px;min-height:40px}
.allf{display:flex;align-items:center;gap:6px;white-space:nowrap}
.namerow{display:flex;align-items:center;gap:var(--sp-2)}
.star{display:grid;place-items:center;flex:none;width:28px;height:28px;margin-left:-4px;border:0;border-radius:6px;background:none;color:var(--line-strong);cursor:pointer}
.star:hover{background:var(--sheet);color:var(--ink)}
.star.on{color:var(--attention)}
.star:focus-visible{outline:3px solid var(--action);outline-offset:2px}
.t tr.group th{padding:10px 16px;background:var(--sheet);font-size:0.8125rem;font-weight:600;color:var(--muted);text-align:left;border-bottom:1px solid var(--line)}
@media (max-width:768px){.head .move{flex-wrap:wrap;width:100%}.find{flex-wrap:wrap;flex:1 1 100%}.find input[type=search]{flex:1 1 100%;width:auto}.star{width:44px;height:44px;margin-left:-10px}}
/* Earlier plans of a brief (ONBRAND-209) */
.earlier{margin-top:var(--sp-6);padding:var(--sp-4) var(--sp-6)}
@media (max-width:768px){.earlier{padding:var(--sp-4)}}
.earlier>summary .mono{margin-left:var(--sp-2);color:var(--muted)}
.plans{list-style:none;margin:var(--sp-4) 0 0;padding:0}
.plans>li{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--sp-4);padding:var(--sp-4) 0;border-top:1px solid var(--line)}
.plans ul{margin:6px 0 0;padding-left:18px}
.plans form{margin:0;flex:none}
@media (max-width:768px){.plans>li{flex-direction:column}}

/* AI assist (ONBRAND-255): buttons under a field, suggestions as rows with Use this */
.assist{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin-top:var(--sp-2)}
.assist>.meta{flex:1 1 12rem}
.assist-out{flex:1 1 100%}
.assist-out:empty{display:none}
.assist-list{list-style:none;margin:0 0 var(--sp-2);padding:0}
.assist-list>li{display:flex;gap:var(--sp-3);align-items:center;justify-content:space-between;padding:var(--sp-2) 0;border-top:1px solid var(--line)}
.assist-list>li:first-child{border-top:0}
/* Captions under an approved file (ONBRAND-256) */
.captions{margin:0;padding:var(--sp-3) 16px 16px;border-top:1px solid var(--line)}
.caprow{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2);margin-top:var(--sp-3)}.caprow label.f{margin:0}
.captions textarea.in{margin-top:var(--sp-1)}.captions .err{margin:var(--sp-2) 0}.captions>.assist-out>.meta{margin-top:var(--sp-2)}
/* A hint above a field: room for the field's 7px focus ring (Tate, 2026-11-24) */
label.f+p.meta,p.meta:has(+.in),p.meta:has(+.select),p.meta:has(+textarea){margin-bottom:12px}
.assist[hidden]{display:none}
.captions .row{justify-content:flex-start;margin-top:var(--sp-2)}
.assist .undo{background:none;border:0;padding:0 var(--sp-2);min-height:36px;font:600 0.875rem var(--font-body);color:var(--action);cursor:pointer}
.assist .undo:hover{text-decoration:underline}.assist .undo[hidden]{display:none}
.assist[data-assist]{margin-bottom:var(--sp-2)}
/* ONBRAND-196: Edit this on review */
.editthis,.redothis{margin-top:var(--sp-4);padding:var(--sp-4) var(--sp-6)}
@media (max-width:768px){.editthis,.redothis{padding:var(--sp-4)}}
.editthis form,.redothis form{display:grid;gap:var(--sp-2);margin-top:var(--sp-3)}
.editthis .go,.redothis .go{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap}
.edfrom{margin-top:var(--sp-3)}
ul.edits{list-style:none;padding:0;margin:0 0 var(--sp-3);display:grid;gap:var(--sp-1)}
ul.edits li{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
/* ONBRAND-209: versions of one output, newest first, with side-by-side compare */
.versions{margin-top:var(--sp-2)}
.vstack{list-style:none;padding:0;margin:0;display:grid;gap:var(--sp-2)}
.vrow{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-2);border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.vrow.on{outline:3px solid var(--action);outline-offset:-1px}
.vthumb{flex:0 0 auto;width:56px;height:56px;border-radius:6px;overflow:hidden;background:var(--sheet);display:block}
.vthumb img{width:100%;height:100%;object-fit:cover;display:block}
.vtext{flex:1 1 auto;display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-2);min-width:0}
.vtext .said{color:var(--muted);overflow-wrap:anywhere}
.vnow{font-size:0.875rem;color:var(--muted)}
.rv .stage.compare{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-3);place-items:center;padding:var(--sp-3)}
.stage.compare figure{margin:0;display:grid;gap:var(--sp-2);justify-items:center;min-width:0}
.stage.compare figcaption{font-size:0.875rem;color:var(--muted)}
.rv .stage.compare{flex:0 0 auto;align-items:start}
.rv .stage.compare img,.rv .stage.compare video{max-height:56vh;width:auto;max-width:100%;object-fit:contain}
@media (max-width:768px){.rv .stage.compare{grid-template-columns:1fr}}
/* Write a new brief: placements, counts, cap, audience tags (Tate's notes, 2026-11-24) */
fieldset.f{border:0;margin:20px 0 0;padding:0;min-width:0}legend.f{font-size:0.8125rem;font-weight:600;padding:0;margin:0 0 8px}
legend.f+p.meta{margin:0 0 12px}label.f .meta{font-weight:400;margin-left:4px}
.chips{display:flex;flex-wrap:wrap;gap:var(--sp-2)}
.chip{display:inline-flex;align-items:center;gap:var(--sp-2);min-height:44px;padding:0 var(--sp-4);border:1px solid var(--line);border-radius:999px;background:var(--surface);cursor:pointer;font-weight:500}
.chip input{width:18px;height:18px;margin:0;accent-color:var(--action)}.chip .meta{margin-left:2px}
.chip:has(input:checked){border-color:var(--action);background:var(--action-wash);color:var(--action-ink)}
.chip:has(input:focus-visible){outline:3px solid var(--action);outline-offset:2px}
.steppers{display:flex;flex-wrap:wrap;gap:var(--sp-3) var(--sp-6,24px)}
.stepper{display:flex;align-items:center;gap:var(--sp-2)}.stepper label{font-weight:500;min-width:6.5rem}
.stepper input.in{width:4.5rem;text-align:center}.stepper .btn.sm{min-width:44px;min-height:44px;font-size:1.125rem}
[data-estimate]{margin-top:12px}[data-estimate].warn{color:var(--attention)}
.money{display:flex;align-items:center;gap:var(--sp-2);max-width:12rem}.money>span{font-weight:600;color:var(--muted)}
.tagbox{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);min-height:44px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);cursor:text}
.tagbox:focus-within{outline:3px solid var(--action);outline-offset:4px}
.tagchips{display:contents}.tag{display:inline-flex;align-items:center;gap:4px;padding:2px 4px 2px 10px;border-radius:999px;background:var(--action-wash);color:var(--action-ink);font-size:0.875rem}
.tag button{border:0;background:none;color:inherit;font-size:1rem;line-height:1;min-width:28px;min-height:28px;cursor:pointer;border-radius:999px}
.tagtyped{flex:1 1 10rem;border:0;outline:0;min-height:30px;font:inherit;background:transparent}
/* First-run pass (2026-11-24): phone mode badge, first tab hint, pencil, spacing */
.badge .short{display:none}
@media (max-width:768px){.top .badge{display:inline-flex;flex:none}.badge .long{display:none}.badge .short{display:inline}}
.otabadd .otabfirst{display:inline-flex;align-items:center;gap:var(--sp-2);min-height:32px;font-size:0.875rem;padding:0 var(--sp-3);margin-bottom:var(--sp-1)}
@media (max-width:768px){.otabadd .otabfirst span{display:none}}
svg.pen{opacity:.6;margin-left:var(--sp-1);vertical-align:-2px}
.card.empty>.row{justify-content:center;margin-top:var(--sp-4)}
.page>.crumbs{margin-bottom:var(--sp-3)}
.t th{white-space:nowrap}
/* ONBRAND-260: on phones, folders are one scrolling row of chips, so the briefs come first */
@media (max-width:768px){
  .g2.left>*{min-width:0}
  .fcard{padding:var(--sp-3) var(--sp-4)}
  .fcard .fhead h2{font-size:1rem}
  .fcard .fl{flex-direction:row;overflow-x:auto;gap:var(--sp-2);margin:var(--sp-2) 0 0;padding-bottom:var(--sp-1);scroll-snap-type:x proximity}
  .fcard .fl a{flex:0 0 auto;gap:var(--sp-2);align-items:center;min-height:40px;padding:0 var(--sp-3);border:1px solid var(--line);border-radius:999px;scroll-snap-align:start}
  .fcard .fl a.on{background:var(--action-wash);border-color:var(--action);color:var(--action-ink)}
  .fcard .fl a.trash{margin-top:0}
  .fcard{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
  .fcard .fl{flex:1 1 0;min-width:0;margin:0;order:1}
  .fcard .fhead{order:2;flex:none}
  .fcard .fhead h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .fcard>details.ko{order:3;flex:1 1 100%}
  .find input[type=search]{flex:1 1 8rem}
}
/* Second first-run pass (2026-11-24): hidden buttons stay hidden, one open caption draft doesn't
   stretch its neighbours, the phone page head reads title, line, then button, and the Brands table
   keeps its status pill on phones. */
.btn[hidden]{display:none}
.tiles:has(.assist-out:not(:empty)){align-items:start}
@media (max-width:640px){.pagehead>p.meta{order:1}.pagehead .actions{order:2}}
@media (max-width:768px){.t.brands th:nth-child(3),.t.brands td:nth-child(3){display:none}}
.card.empty>.row{flex-wrap:wrap}
/* All files (ONBRAND-261) */
.tile.lib .face.voice{display:flex;align-items:center;justify-content:center;color:var(--muted)}
.tile.lib a.tt{color:var(--ink);font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.tile.lib a.tt:hover,.tile.lib a.tt:focus-visible{text-decoration:underline}
.tile.lib .meta{overflow-wrap:anywhere}
@media (max-width:480px){.tiles:has(.tile.lib){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tile.lib figcaption{padding:10px 12px 12px}
.top{gap:var(--sp-2);padding:0 12px}.nav{gap:0}.nav a{padding:8px 5px}.top .badge{padding-inline:6px}}
.trail{flex-wrap:wrap;row-gap:0}.trail a,.trail span{overflow-wrap:anywhere}
/* All files views (ONBRAND-262) */
.lside .fl a .lbl{display:inline-flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.lside .fl a svg{flex:none;color:var(--muted)}.lside .fl a.on svg{color:inherit}
.lside .fl+.fhead{margin-top:8px;padding-top:12px;border-top:1px solid var(--line)}
.head .find select.in{width:auto;margin:0}
@media (max-width:768px){.fcard.lside{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap}
.fcard.lside .fhead{order:0;display:block}.fcard.lside .fhead h2{position:static;width:auto;height:auto;overflow:visible;clip:auto;font-size:.875rem}
.fcard.lside .fl{order:0;flex:none;flex-wrap:wrap;overflow:visible;padding-bottom:0}.fcard.lside .fl+.fhead{margin-top:var(--sp-2);padding-top:var(--sp-2)}}
/* Pick files and download them together (ONBRAND-264) */
.tile.lib{position:relative}.tile.lib.picked{outline:2px solid var(--action);outline-offset:-2px}
.pickbox{position:absolute;top:8px;left:8px;z-index:2;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--r-btn);background:var(--surface);box-shadow:var(--shadow);cursor:pointer}
.pickbox input{width:20px;height:20px;margin:0;cursor:pointer}
.lbar{position:sticky;bottom:0;z-index:4;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:16px;padding:12px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--shadow)}
.lbar [data-count]{flex:1 1 12rem;overflow-wrap:anywhere}.lbar.on{background:var(--action-wash);border-color:var(--action)}.lbar.on [data-count]{color:var(--action-ink);font-weight:600}
.lbar .all{display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}.lbar .all input{width:20px;height:20px;margin:0}
.lbar .btn:disabled{opacity:.5;cursor:not-allowed}
/* Review notes on file cards and brief rows (ONBRAND-265) */
.row.tight{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.notes{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:0 8px;border-radius:var(--r-pill);background:var(--sheet);color:var(--ink);font-size:.8125rem;font-weight:600;text-decoration:none}
.notes:hover,.notes:focus-visible{background:var(--action-wash);color:var(--action-ink)}
.notelist{list-style:none;margin:8px 0 16px;padding:0;display:flex;flex-direction:column;gap:8px}
.notelist li{padding:8px 12px;border:1px solid var(--line);border-radius:var(--r-btn);background:var(--surface)}
.notelist li p{margin:0;overflow-wrap:anywhere}.notecount{white-space:nowrap}
/* Files as a list (ONBRAND-266) */
.lswitch{display:inline-flex;border:1px solid var(--line-strong);border-radius:var(--r-btn);overflow:hidden}
.lswitch .iconbtn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;color:var(--muted);border-radius:0}
.lswitch .iconbtn.on{background:var(--action-wash);color:var(--action-ink)}
.lrows{list-style:none;margin:0;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card)}
.lrow{position:relative;display:grid;grid-template-columns:44px 56px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:8px 16px;border-top:1px solid var(--line)}
.lrow:first-child{border-top:0}.lrow.picked{background:var(--action-wash)}
.lrow .pickbox{position:static;box-shadow:none;background:none}
.lrow .thumb img,.lrow .thumb video,.lrow .thumb .face{display:block;width:56px;height:56px;object-fit:cover;border-radius:var(--r-btn);background:var(--sheet)}
.lrow .thumb .face.voice{display:flex;align-items:center;justify-content:center;color:var(--muted)}.lrow .thumb .face.voice svg{width:24px;height:24px}
.lrow .what{display:flex;flex-direction:column;gap:2px;min-width:0}.lrow .tt{color:var(--ink);font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.lrow .tt:hover,.lrow .tt:focus-visible{text-decoration:underline}.lrow .meta{overflow-wrap:anywhere}.lrow .spec{white-space:nowrap}
@media (max-width:768px){.lrow{grid-template-columns:44px 48px minmax(0,1fr);padding:8px 12px}.lrow .thumb img,.lrow .thumb video,.lrow .thumb .face{width:48px;height:48px}
.lrow .spec,.lrow>.row.tight{grid-column:3}.lrow .spec{white-space:normal}}
@media (max-width:768px){.lrow{row-gap:4px;align-items:start}.lrow .pickbox,.lrow .thumb{grid-row:span 3}.lrow>.row.tight{justify-content:flex-start}}
.lrow>.row.tight,.tile.lib .row.tight{margin:0}
@media (max-width:480px){.lbar{gap:8px}.lbar [data-count]{order:-1;flex-basis:100%;font-size:.8125rem}.lbar .all{flex:1 1 auto}}
/* Files uses the whole window (Tate, 2026-11-24) */
.page.wide .tiles{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
@media (max-width:768px){.page{padding-left:16px;padding-right:16px}}
/* Saved views on Files (ONBRAND-267) */
.vtools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 16px}.vtools .in{width:240px;max-width:100%;margin:0}
.vtools .btn{display:inline-flex;align-items:center;gap:6px}
@media (max-width:768px){.vtools .in{flex:1 1 100%;width:auto}}
/* Tags (ONBRAND-268) */
.ftag{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:0.8125rem;text-decoration:none;margin:0}
.ftag svg{color:var(--muted);flex:none}a.ftag:hover{border-color:var(--muted)}
form.ftag{padding:0 2px 0 8px}form.ftag a{display:inline-flex;align-items:center;gap:4px;color:inherit;text-decoration:none}
form.ftag .x{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;background:none;color:var(--muted);cursor:pointer;border-radius:50%}
form.ftag .x:hover{background:var(--sheet);color:var(--ink)}
.filetags{flex:none}.filetags .wrap{flex-wrap:wrap;justify-content:flex-start;gap:8px}.filetags .meta{margin:0 0 8px}.tagadd{display:flex;gap:8px;align-items:center}.tagadd .in{width:160px;margin:0}
.lbar .tagger{display:inline-flex;gap:8px;align-items:center}.lbar .tagger .in{width:160px;margin:0}.lbar .tagger .btn{display:inline-flex;align-items:center;gap:6px}
@media (max-width:768px){.lbar .tagger{flex:1 1 100%}.lbar .tagger .in{flex:1 1 auto;width:auto}}
.ftags{display:flex;flex-wrap:wrap;gap:6px}
.lrow .ftags{grid-column:3/-1}
.trail span svg{margin-right:4px;vertical-align:-2px}
/* Comments with replies (ONBRAND-269) */
.comments{flex:none}.comments>.meta{margin:0 0 8px}
.thread,.replies{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.thread>li{padding:12px;border:1px solid var(--line);border-radius:var(--r-btn);background:var(--surface)}
.replies{margin:8px 0 0 16px;padding-left:12px;border-left:2px solid var(--line)}
.thread .who,.thread .said{margin:0}.thread .said{overflow-wrap:anywhere;white-space:pre-wrap}
.reply{margin-top:8px}.reply summary{cursor:pointer;color:var(--action);font-size:0.8125rem;min-height:24px}
.reply form,.newcomment{display:flex;flex-direction:column;gap:8px;margin-top:8px}.reply textarea,.newcomment textarea{min-height:64px;margin:0}
.newcomment .row,.reply .row{justify-content:flex-start}
.fl a.sub{padding-left:28px}.lside .fl a.sub{padding-left:28px}
/* Uploads (ONBRAND-271) */
.st.up{color:var(--ink);background:var(--sheet);border-color:var(--line)}
.upf{position:relative}.upf>summary{list-style:none;display:inline-flex;align-items:center;gap:6px}.upf>summary::-webkit-details-marker{display:none}
.upf form{position:absolute;right:0;top:calc(100% + 8px);z-index:6;width:340px;max-width:calc(100vw - 32px);background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:16px}
.upf form .meta{margin:4px 0 8px}
.upview .upstage{display:flex;justify-content:center;align-items:center;background:var(--sheet);border-radius:var(--r-btn);padding:16px;min-height:240px}
.upview .upstage img,.upview .upstage video{max-width:100%;max-height:70vh}
@media (max-width:768px){.upf form{left:0;right:auto}}
.upview>.row{justify-content:flex-start;margin-top:0}
/* Client review links (ONBRAND-244) */
.sharebox{margin-top:24px}.sharebox h2{margin:0 0 4px}.sharelinks{list-style:none;margin:12px 0;padding:0;display:flex;flex-direction:column;gap:8px}
.sharelinks li{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sharelinks .in{flex:1 1 320px;margin:0;font-size:0.8125rem}
.sharelinks [data-fresh]{border-color:var(--action);box-shadow:0 0 0 3px var(--action-wash)}
.shrpage .brandline{display:flex;align-items:center;gap:8px;margin:0 0 8px}.shrpage h1{margin:0 0 8px}
.shrpage .tiles{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.tile.shr figcaption{display:flex;flex-direction:column;gap:8px}.tile.shr form{display:flex;flex-direction:column;gap:8px}
.tile.shr .in{margin:0}.verdict{border:0;padding:0;margin:0;display:flex;gap:16px;flex-wrap:wrap}.verdict label{display:inline-flex;gap:6px;align-items:center;min-height:32px}
.claimsfold{margin:0 0 16px}.claimsfold summary{cursor:pointer;color:var(--action);font-weight:600}.claimsfold .claims{margin:8px 0 0}
.tile.shr form>*,.tile.shr .notelist{width:100%;box-sizing:border-box}.tile.shr .notelist{margin:0}
/* Share menu next to Duplicate (ONBRAND-244) */
.sharemenu{position:relative}.sharemenu>summary{list-style:none;display:inline-flex;align-items:center;gap:6px}.sharemenu>summary::-webkit-details-marker{display:none}
.sharepanel{position:absolute;right:0;top:calc(100% + 8px);z-index:6;width:460px;max-width:calc(100vw - 32px);background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:16px}
.sharepanel h2{margin:0 0 4px;font-size:1rem}.sharepanel .meta{margin:0 0 12px}.sharepanel .sharelinks{margin:0 0 12px}
.sharepanel .sharelinks .in{flex:1 1 100%}
@media (max-width:768px){.sharepanel{left:0;right:auto}}
.sharepanel .sharelinks .meta{margin:0}
/* Send to Drive (ONBRAND-272) */
.drivenote{margin-bottom:16px}.drivenote a{margin-left:4px;font-weight:600}

/* New brief: format cards and the shot preview (step 3) */
.startname{margin:var(--sp-3) 0 var(--sp-2);font-size:1rem}
.fmts{border:0;padding:0;margin:0}.fmts legend.f{margin-top:var(--sp-4)}
.fmtgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--sp-3)}
.fmt{position:relative;display:flex;flex-direction:column;gap:var(--sp-1);padding:var(--sp-4);border:1px solid var(--line-strong);border-radius:var(--r-card);background:var(--surface);cursor:pointer}
.fmt input{position:absolute;top:var(--sp-3);right:var(--sp-3);width:18px;height:18px;margin:0;accent-color:var(--action)}
.fmt:hover{border-color:var(--action)}
.fmt:has(input:checked){border-color:var(--action);box-shadow:0 0 0 1px var(--action);background:var(--action-wash)}
.fmt:has(input:focus-visible){outline:3px solid var(--action);outline-offset:2px}
.fmt b{font-size:0.9375rem;line-height:20px}.fmt .use{color:var(--ink)}
.fmt.off{cursor:not-allowed;border-style:dashed;background:transparent}.fmt.off b{color:var(--muted)}.fmt.off:hover{border-color:var(--line-strong)}
.shapes{display:flex;align-items:flex-end;gap:6px;height:52px;margin-bottom:var(--sp-2)}
.shape{display:inline-flex;align-items:center;justify-content:center;height:48px;aspect-ratio:3/4;border:1.5px solid var(--muted);border-radius:4px;background:var(--surface);color:var(--muted);font:600 0.625rem/1 var(--font-body);letter-spacing:.02em}
.shape.clip{background:var(--sheet)}.shape.voiceover{aspect-ratio:auto;padding:0 6px;border-style:dashed}
.shape.r3x4{aspect-ratio:3/4}.shape.r1x1{aspect-ratio:1/1}.shape.r9x16{aspect-ratio:9/16}.shape.r16x9{aspect-ratio:16/9;height:30px}.shape.r4x5{aspect-ratio:4/5}
.fmt:has(input:checked) .shape{border-color:var(--action);color:var(--action-ink)}
.shots{margin-top:var(--sp-6)}.shots>.label{color:var(--ink);font-size:0.9375rem}.shots>.label span{font-weight:400;color:var(--muted)}
.tg.sh{grid-template-columns:56px 1fr auto}.tg.sh[hidden]{display:none}
.frame{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:var(--r-btn);background:var(--sheet)}
.frame .shape{height:44px}.frame .shape.r16x9{height:28px}
.pks{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
.pk{position:relative;display:inline-flex;cursor:pointer}
.pk input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.pk span{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:0 12px;border:1px solid var(--line-strong);border-radius:var(--r-pill);font-size:0.8125rem;color:var(--muted);background:var(--surface)}
.pk input:checked+span{border-color:var(--action);background:var(--action-wash);color:var(--action-ink);font-weight:600}
.pk input:checked+span::before{content:"\2713";content:"\2713" / "";font-weight:800}
.pk input:focus-visible+span{outline:3px solid var(--action);outline-offset:2px}
@media (max-width:720px){.tg.sh{grid-template-columns:56px 1fr}.tg.sh .pks{grid-column:1/3}.fmtgrid{grid-template-columns:1fr 1fr}}
@media (pointer:coarse){.pk span{min-height:44px}}
.chips .chip>span{display:inline-flex;align-items:center;gap:8px}.chips .chip .shape{height:22px;border-width:1.5px;border-radius:3px}.chips .chip .shape.r16x9{height:14px}
/* Files Appearance menu (ONBRAND-273): card size, shape, picture fit, details, subfolders, sidebar; saved per person */
.appear{position:relative}.appear>summary{list-style:none;display:inline-flex;align-items:center;gap:6px}.appear>summary::-webkit-details-marker{display:none}
.appear[open]>summary{background:var(--action-wash);color:var(--action-ink);border-color:var(--action)}
.lkpanel{position:absolute;right:0;top:calc(100% + 8px);z-index:6;width:320px;max-width:calc(100vw - 32px);background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:16px}
.lknote{margin:0 0 12px}.lkrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.lklabel{font-size:0.875rem;font-weight:600}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--sheet)}
.seg button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:0.8125rem;font-weight:600;padding:6px 12px;min-width:44px;min-height:32px;cursor:pointer}
.seg button+button{border-left:1px solid var(--line)}.seg button:hover{color:var(--ink)}
.seg button[aria-pressed=true]{background:var(--surface);color:var(--action-ink);box-shadow:inset 0 -2px 0 var(--action)}
.lsw{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;border:0;border-top:1px solid var(--line);background:none;font:inherit;font-size:0.875rem;color:var(--ink);padding:10px 0;cursor:pointer;text-align:left}
.lsw .knob{flex:0 0 auto;width:34px;height:20px;border-radius:10px;background:var(--line);position:relative;transition:background .15s}
.lsw .knob::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgba(22,25,31,.3);transition:left .15s}
.lsw[aria-checked=true] .knob{background:var(--action)}.lsw[aria-checked=true] .knob::after{left:16px}
.lsw:focus-visible,.seg button:focus-visible{outline:2px solid var(--action);outline-offset:2px}
.paneltog{display:inline-flex}.iconbtn.on{background:var(--action-wash);color:var(--action-ink);border-color:var(--action)}
.paneltogs{margin-left:auto;display:inline-flex;gap:8px}
.page.wide .tiles.cards-s{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.page.wide .tiles.cards-m{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.page.wide .tiles.cards-l{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:20px}
.tiles.shape-wide .tile>img,.tiles.shape-wide .tile>video,.tiles.shape-wide .tile .face{aspect-ratio:16/9}
.tiles.shape-square .tile>img,.tiles.shape-square .tile>video,.tiles.shape-square .tile .face{aspect-ratio:1/1}
.tiles.shape-tall .tile>img,.tiles.shape-tall .tile>video,.tiles.shape-tall .tile .face{aspect-ratio:3/4}
.tiles.thumb-fit .tile>img,.tiles.thumb-fit .tile>video{object-fit:contain}
.tiles.thumb-fill .tile>img,.tiles.thumb-fill .tile>video{object-fit:cover}
.tiles.cards-s .tile figcaption{padding:8px 12px 12px;gap:6px}
.tiles.noinfo .tile figcaption>.meta,.tiles.noinfo .tile .ftags{display:none}
.g2.left.noside{grid-template-columns:minmax(0,1fr)}
.rv.nopanel{grid-template-columns:240px minmax(0,1fr)}.rv.nopanel>.rvform{display:none}
.rv.nopanel:has(.fold:not([open])){grid-template-columns:52px minmax(0,1fr)}
@media (max-width:768px){.rv.nopanel,.rv.nopanel:has(.fold:not([open])){grid-template-columns:1fr}}
/* Branded client share page (ONBRAND-275): header picture, brand mark, Grid or Reel */
.shrhero{position:relative;overflow:hidden;background:var(--ink);color:#fff;min-height:260px;display:flex;align-items:flex-end}
.shrhero.plain{background:linear-gradient(135deg,var(--action-ink),var(--ink))}
.shrbg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.shrhero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(22,25,31,0) 20%,rgba(22,25,31,.85) 100%)}
.shrhead{position:relative;z-index:1;padding:32px 32px 28px;width:100%;box-sizing:border-box}
.shrmark{display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:#fff;color:var(--ink);font-weight:800;font-size:1.5rem;margin-bottom:16px}
.shrhero .brandline{color:rgba(255,255,255,.8);margin:0 0 4px}.shrhero h1{color:#fff;margin:0 0 6px;font-size:2rem;line-height:1.15}
.shrby{margin:0;color:rgba(255,255,255,.85);font-size:0.875rem}
.whatsreal{margin:0 0 12px;max-width:760px}.shrpage .whatsreal{padding:10px 14px;border-left:3px solid var(--action);background:var(--sheet);border-radius:0 8px 8px 0}
.shrfoot{text-align:center;padding:32px 16px 40px;font-size:0.8125rem}.shrfoot a{color:var(--muted);text-decoration:none}.shrfoot a:hover{color:var(--action-ink);text-decoration:underline}
.shrtools{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 8px}.shrtools .claimsfold{margin:0}
.seglinks{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--sheet)}
.seglinks .btn{border:0;border-radius:0;background:transparent;color:var(--muted);gap:6px}.seglinks .btn+.btn{border-left:1px solid var(--line)}
.seglinks .btn.on{background:var(--surface);color:var(--action-ink);box-shadow:inset 0 -2px 0 var(--action)}
.reel{display:flex;flex-direction:column;gap:12px;margin:16px 0}
.tile.shr.big{display:grid;grid-template-columns:minmax(0,1fr) 340px}.tile.shr.big>img,.tile.shr.big>video{aspect-ratio:auto;max-height:60vh;object-fit:contain;background:var(--ink);height:100%}
.tile.shr.big>audio{align-self:center}
.reelnav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.reelstrip{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
.reelthumb{flex:0 0 auto;width:72px;height:72px;border-radius:8px;overflow:hidden;border:2px solid transparent;background:var(--sheet);display:grid;place-items:center}
.reelthumb img{width:100%;height:100%;object-fit:cover}.reelthumb.on{border-color:var(--action)}.reelk{font-size:0.75rem;font-weight:600;color:var(--muted)}
@media (max-width:768px){.tile.shr.big{grid-template-columns:1fr}.shrhead{padding:24px 16px 20px}.shrhero{min-height:220px}.shrhero h1{font-size:1.5rem}}
/* Share settings per link (ONBRAND-276) */
.sharepanel{max-height:min(70vh,640px);overflow:auto}
.sharelinks li.off .in{color:var(--muted);text-decoration:line-through}
.shareset{flex:1 1 100%}.shareset>summary{cursor:pointer;color:var(--action);font-weight:600;font-size:0.875rem;padding:4px 0}
.shareset form{border:1px solid var(--line);border-radius:8px;padding:4px 12px 12px;margin-top:6px;background:var(--bg)}
.shareset .lkrow{flex-wrap:wrap;margin:10px 0 0}.shareset .lsw small{display:block;font-weight:400;margin-top:2px}
.shareset .lsw:first-child{border-top:0}
/* Passphrase (ONBRAND-277) and single-card pages on phones */
.solo{grid-template-columns:minmax(0,1fr)}.solo-in{box-sizing:border-box}
.passform{margin-top:8px}.passform .lkrow{flex-direction:column;align-items:stretch;gap:6px;margin:0}
.passform .row.tight{flex-wrap:nowrap}.passform .in{flex:1 1 auto;margin:0}
/* Full screen view and swipe on the review page (ONBRAND-281) */
.stage img{cursor:zoom-in;touch-action:pan-y pinch-zoom}
.zoomview{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0B0D10;color:#fff}.zoomview::backdrop{background:#0B0D10}
.zoomwrap{width:100%;height:100%;overflow:auto;display:grid;place-items:center;touch-action:pinch-zoom}
.zoomwrap img{max-width:100%;max-height:100dvh;object-fit:contain;cursor:zoom-in;touch-action:pinch-zoom}
.zoomview.actual img{max-width:none;max-height:none;cursor:zoom-out}.zoomview.actual .zoomwrap{place-items:start}
.zoomclose{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));right:12px;z-index:1;background:rgba(255,255,255,.92);color:var(--ink);border-color:transparent}
/* Spend (ONBRAND-280): caps card under the table on iPad held upright; phone rows stack with their own labels. */
@media (max-width:1024px){.g2.spendg{grid-template-columns:1fr}}
@media (max-width:640px){.t.spend,.t.spend tbody{display:block}.t.spend thead{display:none}.t.spend tr{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;padding:16px;border-bottom:1px solid var(--line)}.t.spend tr:last-child{border-bottom:0}.t.spend td,.t.spend td:nth-child(2){display:flex;flex-direction:column;gap:2px;padding:0;border:0;text-align:left}.t.spend td:first-child{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}.t.spend td[colspan]{grid-column:1/-1}.t.spend td::before{content:attr(data-label);font:600 0.75rem/16px var(--font-body);color:var(--muted)}}
/* Files on phones (ONBRAND-283): one Showing row that opens the views, folders and tags. */
@media (min-width:769px){.lfold>summary{display:none}}
.lfold>summary{display:flex;align-items:center;gap:6px;min-height:44px;cursor:pointer;list-style:none;color:var(--muted)}.lfold>summary::-webkit-details-marker{display:none}
.lfold>summary b{color:var(--ink);font-weight:600}.lfold>summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}.lfold[open]>summary::after{transform:rotate(-135deg)}
@media (max-width:768px){.lside .lfold{width:100%}.lside .lfold[open]>summary{margin-bottom:8px}}
/* Sign in and Create account: one centered card (2026-11-24) */
.solo-in:has(.auth){width:440px}
.auth{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:32px;text-align:left}
.auth h1{font-size:1.75rem;line-height:32px;font-weight:700;margin:0;text-align:center;letter-spacing:-0.01em}
.auth .lead{color:var(--muted);text-align:center;margin:8px auto 24px;max-width:320px}
.auth .btn.google{width:100%;min-height:48px;gap:12px;border-color:var(--line-strong);font-size:0.9375rem}
.auth .btn.google:hover{background:var(--bg);text-decoration:none}
.auth .or{display:flex;align-items:center;gap:12px;margin:24px 0 4px;color:var(--muted);font-size:0.8125rem}
.auth .or::before,.auth .or::after{content:"";flex:1;height:1px;background:var(--line)}
.auth label.f{margin-top:16px}
.auth .in{min-height:48px;border-color:var(--line-strong)}
.auth .hint{color:var(--muted);font-size:0.8125rem;line-height:18px;margin:8px 0 0}
.auth .btn.big{width:100%;min-height:48px;margin-top:24px;font-size:0.9375rem}
.auth .legal{color:var(--muted);font-size:0.8125rem;line-height:18px;text-align:center;margin:16px 0 0}
.auth .legal a{text-decoration:underline}
.auth .swap{text-align:center;margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line);color:var(--muted)}
.auth .swap a{font-weight:600}
@media (max-width:480px){.solo{padding:24px 16px;place-items:start center}.solo .brand{margin:8px 0 20px}.auth{padding:24px 20px}.auth h1{font-size:1.5rem;line-height:30px}}
/* Home Screen app (ONBRAND-282): keep the header and sides clear of the notch and rounded corners. */
.top{padding-top:env(safe-area-inset-top,0px);height:auto;min-height:56px;box-sizing:border-box}
@media (display-mode:standalone){.top{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}}

/* Weekly winners (ONBRAND-288): one card per market ad, video on top. */
.ads{list-style:none;margin:var(--sp-4) 0;padding:0;display:grid;gap:var(--sp-4);grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.ads .ad{margin:0;padding:0;overflow:hidden;display:flex;flex-direction:column}
.ads video{display:block;width:100%;aspect-ratio:9/16;max-height:480px;object-fit:cover;background:#000}
.ads .pad{display:flex;flex-direction:column;gap:var(--sp-2);flex:1}
.ads h2{font-size:1.0625rem;margin:0}.ads h3{font-size:0.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:var(--sp-2) 0 0}
.ads p{margin:0}.ads .stats{display:flex;flex-wrap:wrap;gap:var(--sp-2)}
.ads .stats span{border:1px solid var(--line);border-radius:var(--r-pill);padding:2px 10px;font-size:0.8125rem}
.ads .pitch{border-left:3px solid var(--action);padding-left:var(--sp-3)}
.ads .row{margin-top:auto;padding-top:var(--sp-2);display:flex;flex-wrap:wrap;gap:var(--sp-3);align-items:center}
.weeks{display:flex;flex-wrap:wrap;gap:var(--sp-3);margin-top:var(--sp-2)}.weeks a[aria-current]{font-weight:600}
.keyform .btn{margin-top:16px}
.keybox{display:flex;gap:8px;align-items:center;margin-top:12px}.keybox .in{flex:1;min-width:0}
.btn.icon{width:44px;padding:0;flex:none}.btn.icon svg[hidden]{display:none}
.keysaid{min-height:18px;margin-top:8px;color:var(--ok)}
.nav a{white-space:nowrap}.keyform label.f{margin-top:0}
@media (max-width:480px){.nav a.navwide{display:none}}
/* Spend: balances, caps and Add funds (ONBRAND spend redesign) */
.otabadd.top1{margin:0 0 0 auto}.otabadd.top1+.who{margin-left:0}.otabadd.top1 .iconbtn{width:32px;height:32px}
.stack{display:flex;flex-direction:column;gap:16px;min-width:0}.stack>.card+.card{margin-top:0}
.fund{padding:12px 0;border-bottom:1px solid var(--line)}.fund:last-of-type{border-bottom:0}
.fundtop{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:0.9375rem}
.fundnum{margin:8px 0 0;font-size:1.25rem;line-height:26px}.fundnum .meta{font-size:0.8125rem}
.fund .bar{height:8px;margin:8px 0}.fund .meta{margin:0}
.bar.look::-webkit-progress-value{background:var(--attention)}.bar.look::-moz-progress-bar{background:var(--attention)}
.bar.fail::-webkit-progress-value{background:var(--failure)}.bar.fail::-moz-progress-bar{background:var(--failure)}
.tpad{padding:24px 24px 8px;margin:0}#add-funds .chips{margin-bottom:16px}#add-funds .btn.wide{width:100%;justify-content:center;min-height:44px}
#add-funds select.in{margin-bottom:8px}.card h2{margin-top:0}
@media (max-width:768px){.stack>.t-wrap{margin:0;padding:0}}@media (max-width:640px){.otabadd.top1{display:none}.otabadd.top1+.who{margin-left:auto}}
/* Suggested answers from the website, with a Use this button each (brand page and Fill in) */
ul.suggest{list-style:none;margin:var(--sp-2) 0 0;padding:0;display:flex;flex-direction:column;gap:var(--sp-2)}
ul.suggest li{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-2) var(--sp-3);border:1px dashed var(--line);border-radius:10px;background:var(--sheet)}
ul.suggest .said{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;color:var(--ink)}
ul.suggest .use{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;position:relative;overflow:hidden;isolation:isolate;
  color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--action) 0%,#5B4BD6 55%,var(--action-ink) 100%);
  box-shadow:0 1px 2px rgba(22,25,31,.18),0 0 0 1px rgba(255,255,255,.18) inset;font-weight:600;transition:transform .15s ease,box-shadow .15s ease}
ul.suggest .use::after{content:"";position:absolute;inset:-2px auto -2px -60%;width:45%;z-index:-1;pointer-events:none;
  background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.55) 50%,transparent 100%);transform:skewX(-20deg);animation:useshine 1.1s ease .4s 1 both}
ul.suggest .use:hover,ul.suggest .use:focus-visible{color:#fff;transform:translateY(-1px);box-shadow:0 4px 12px rgba(51,70,200,.35),0 0 0 1px rgba(255,255,255,.22) inset}
ul.suggest .use:hover::after,ul.suggest .use:focus-visible::after{animation:useshine .8s ease 1}
ul.suggest .use svg{filter:drop-shadow(0 0 3px rgba(255,255,255,.6))}
@keyframes useshine{from{left:-60%}to{left:120%}}
ul.suggest .use.used{color:var(--ok);background:var(--ok-wash);box-shadow:none;transform:none;pointer-events:none}
ul.suggest .use.used::after{display:none}ul.suggest .use.used svg{filter:none}
@media (prefers-reduced-motion:reduce){ul.suggest .use,ul.suggest .use::after{animation:none;transition:none}ul.suggest .use:hover{transform:none}}
ul.suggest li.used .said{color:var(--muted)}
ul.plain+ul.suggest{margin-top:var(--sp-2)}
.suggestbox{margin-top:var(--sp-2)}.suggestbox>.meta{margin:0}
@media (max-width:560px){ul.suggest li{flex-direction:column;align-items:stretch}ul.suggest .use{justify-content:center;min-height:44px}}
/* A person and the parts that can show: the parts appear once A person is ticked */
.ppl{display:flex;flex-direction:column}
.ppl .parts{display:flex;flex-direction:column;gap:2px;margin-left:28px;padding-left:12px;border-left:2px solid var(--line)}
.ppl:not(:has([data-person]:checked)) .parts{display:none}
.pks:not(:has([data-person]:checked)) .pk.part{display:none}
.pk.part span{border-style:dashed}
.pk.part input:checked+span{border-style:solid}
/* Brand kit: logo, colors and typography at the top of a brand page */
.kit{margin-bottom:var(--sp-6)}
.kitgrid{display:grid;grid-template-columns:minmax(200px,1fr) minmax(260px,1.4fr) minmax(220px,1fr);gap:var(--sp-6);align-items:start}
.kit .sub{font:600 0.75rem/16px var(--font-body);color:var(--muted);margin:0 0 var(--sp-2)}.kit .swatches+.sub{margin-top:var(--sp-3)}
.kitlogo{display:grid;place-items:center;aspect-ratio:16/10;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:var(--sp-4);overflow:hidden}
.kitlogo img{max-width:100%;max-height:100%;object-fit:contain}
.kitlogo.empty{border-style:dashed;background:var(--bg)}
.kitacts{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-top:var(--sp-3)}.kitacts form{margin:0}.kitacts label.btn{cursor:pointer}
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.kitup:focus-within label.btn{outline:3px solid var(--action);outline-offset:2px}
ul.swatches,ul.kitfonts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-2)}
ul.swatches li,ul.kitfonts li{display:flex;align-items:center;gap:var(--sp-3)}
ul.swatches li>span,ul.kitfonts li>span:last-child{display:flex;flex-wrap:wrap;column-gap:6px;align-items:baseline;min-width:0}
ul.swatches li .meta,ul.kitfonts li>span:last-child>.meta:last-child{flex-basis:100%}
.sw{width:40px;height:40px;flex:0 0 40px}.sw rect{stroke:rgba(22,25,31,.14)}
ul.swatches code{font:500 0.8125rem/1 var(--font-mono);color:var(--muted)}
.aa{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border-radius:8px;background:var(--sheet);font:700 1.0625rem/1 var(--font-body);color:var(--ink)}.aa.body{font-weight:400}
.kitcheck{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:var(--sp-6);padding-top:var(--sp-4);border-top:1px solid var(--line)}
@media (max-width:900px){.kitgrid{grid-template-columns:1fr 1fr}.kitgrid>div:first-child{grid-column:1/-1}.kitlogo{max-width:360px}}
@media (max-width:560px){.kitgrid{grid-template-columns:1fr}.kitlogo{max-width:none}}
.kit .swatches+.meta{margin-top:var(--sp-3)}ul.kitfonts li>span:last-child>b+.meta{flex-basis:auto}
/* Delete a brand: a quiet link, then a dialog that asks for the brand's name */
.dangerrow{display:flex;justify-content:flex-end;margin-top:var(--sp-6)}
.btn.ghostdanger{color:var(--failure);border-color:transparent;background:transparent}.btn.ghostdanger:hover{background:var(--failure-wash)}
.btn.danger{background:var(--failure);border-color:var(--failure);color:#fff}.btn.danger:disabled{opacity:.45;cursor:not-allowed}
.deldialog{border:0;border-radius:14px;padding:0;width:min(480px,calc(100vw - 32px));box-shadow:0 12px 40px rgba(22,25,31,.28);background:var(--surface);color:var(--ink)}
.deldialog::backdrop{background:rgba(22,25,31,.45)}
.delform{padding:var(--sp-6)}.delform h2{margin:0 0 var(--sp-2)}.delform .row{display:flex;justify-content:flex-end;gap:var(--sp-2);margin-top:var(--sp-4)}
.siteurl{margin:-4px 0 var(--sp-3)}.siteurl a{display:inline-flex;align-items:center;gap:6px;font-weight:600;overflow-wrap:anywhere}
/* No smooshing: fixes for gaps flagged by tests/design_qa/spacing.js */
.card .gap-top{margin-top:var(--sp-6)}
p.meta+h1{margin-top:var(--sp-2)}
p.meta+fieldset,.meta+.tg{margin-top:var(--sp-3)}
.kitacts+.meta{margin-top:var(--sp-3)}
@media (max-width:640px){.pagehead{row-gap:var(--sp-3)}}
summary+.fhead{margin-top:var(--sp-3)}.fhead+.fl{margin-top:var(--sp-2)}
@media (max-width:768px){.lbar .tagger{min-width:0;max-width:100%}.lbar .tagger .in{flex:1 1 0;min-width:0}.lbar .tagger .btn{flex:none}}
@media print{.noprint,header.top,.skip{display:none!important}.page{padding:0}.card{box-shadow:none;break-inside:avoid}}
.clientf{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.clientf .in.sm{max-width:200px;min-height:36px}.clients{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:12px}.clients li{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between;padding-top:12px;border-top:1px solid var(--line)}.clients li:first-child{border-top:0;padding-top:0}
/* Bring in your brand kit (ONBRAND-231): what a guide or tokens file gave, and a way to add one */
.kitread{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:var(--sp-3) 0 0}
ul.kitguides li{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);flex-wrap:wrap}
.kitimport{margin-bottom:var(--sp-6)}.kitimport .upload,.kitimport .kitmore{margin-top:var(--sp-4)}.kitimport .note{margin-top:var(--sp-3)}
.kitwhere{margin:var(--sp-2) 0 var(--sp-3)}.kitwhere ul{margin-top:var(--sp-2)}.kitwhere li+li{margin-top:var(--sp-1)}
.free{margin-bottom:16px;box-shadow:inset 0 0 0 2px var(--action,#3346C8)}.free h2{margin-top:0}.free .meta{margin:8px 0 14px}
/* In the feed preview (ONBRAND-303): plain post frame and 9:16 safe zone, CSS only */
.feedview{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:var(--sp-3);padding:var(--sp-3);width:100%}
.feedbtn{min-height:36px;padding:0 var(--sp-3);font-size:0.8125rem}
.feedtog:checked+.feedbtn,.safetog:checked+.feedbtn{background:var(--action-wash);border-color:var(--action);color:var(--action-ink)}
.feedtog:focus-visible+.feedbtn,.safetog:focus-visible+.feedbtn{outline:2px solid var(--action);outline-offset:2px}
.feedpost{flex:0 0 100%;display:grid;justify-items:center}
.feedhead,.feedcap{display:none}
.feedmedia{position:relative;display:grid;width:fit-content;max-width:100%;overflow:hidden}
.feedcard{display:grid;justify-items:center;max-width:100%}
.feedtog:checked~.feedpost .feedcard{width:min(360px,100%);justify-items:stretch;background:var(--surface);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}
.feedtog:checked~.feedpost .feedhead{display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-3)}
.feedav{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--action);color:var(--surface);font-weight:700;font-size:0.875rem}
.feedtog:checked~.feedpost .feedmedia{width:100%}
.rv .stage .feedtog:checked~.feedpost .feedmedia img,.rv .stage .feedtog:checked~.feedpost .feedmedia video,.feedtog:checked~.feedpost .feedmedia img,.feedtog:checked~.feedpost .feedmedia video{width:100%;max-height:none;object-fit:cover}
.feedtog:checked~.feedpost .feedcap{display:block;margin:0;padding:var(--sp-3);font-size:0.875rem;line-height:20px}
.safezone{display:none;position:absolute;left:16.67%;right:16.67%;top:18.75%;bottom:18.75%;border:2px dashed var(--surface);box-shadow:0 0 0 2000px rgba(22,25,31,.5);pointer-events:none}
.safetog:checked~.feedpost .safezone{display:block}
/* Studio paper look (2026-11-30, Tate: "still reads like AI, no AI cues"). Built from our design playbook and its
   skills (impeccable craft floor, tasteskill): the screen stays neutral so the shots carry the color, one accent
   (action) for the one filled button, links and focus, no gradient buttons, blur, violet or pastel tiles. The soft
   page glow behind each title stays (Tate liked it). The shell is
   solid ink; surfaces are paper and white with ink hairlines. Signature move: shots sit as a contact sheet, image
   first, with a mono slate line. See DESIGN.md "Studio app look". */
:root{--hair:rgba(22,25,31,.12);--hair-2:rgba(22,25,31,.22);--font-display:"Inter Display",Inter,system-ui,sans-serif;--shadow:0 1px 2px rgba(22,25,31,.06)}
html{background:var(--bg)}
/* Film grain (fractal noise, 240px tile) so gradients never band; multiply on light, screen on dark. */
:root{--grain-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.26' intercept='.84'/%3E%3CfeFuncG type='linear' slope='.26' intercept='.84'/%3E%3CfeFuncB type='linear' slope='.26' intercept='.84'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");--grain-dark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.17' intercept='-.05'/%3E%3CfeFuncG type='linear' slope='.17' intercept='-.05'/%3E%3CfeFuncB type='linear' slope='.17' intercept='-.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
body{min-height:100vh;background-color:var(--bg)}
/* The glow, used selectively: only on overview pages that open with a page head (Briefs, Spend, Files), never on
   forms, plans or review. Colors are mixed in OKLab from palette tokens and fade on a smoothstep, under fine grain. */
body:has(main.page>.head:first-child){position:relative;background-color:transparent}
body:has(main.page>.head:first-child)::before{content:"";position:absolute;inset:0 0 auto;height:560px;z-index:-1;pointer-events:none;
  background-color:var(--bg);background-repeat:no-repeat,no-repeat,no-repeat,repeat,repeat;background-size:auto,auto,auto,auto,240px 240px;
  background-image:radial-gradient(60% 100% at 6% 0,color-mix(in oklab,var(--action) 15%,transparent),color-mix(in oklab,var(--action) 8%,transparent) 30%,color-mix(in oklab,var(--action) 2%,transparent) 60%,transparent 85%),
  radial-gradient(48% 90% at 96% 0,color-mix(in oklab,#E8603C 14%,transparent),color-mix(in oklab,#E8603C 7%,transparent) 32%,color-mix(in oklab,#E8603C 1.5%,transparent) 62%,transparent 85%),
  radial-gradient(40% 70% at 58% 0,color-mix(in oklab,#F2B33D 12%,transparent),color-mix(in oklab,#F2B33D 5%,transparent) 35%,transparent 80%),
  linear-gradient(color-mix(in oklab,var(--bg) 62%,transparent),color-mix(in oklab,var(--bg) 62%,transparent)),var(--grain-light);
  background-blend-mode:normal,normal,normal,normal,multiply;
  -webkit-mask-image:linear-gradient(#000 0,#000 40%,rgba(0,0,0,.84) 52%,rgba(0,0,0,.5) 68%,rgba(0,0,0,.16) 84%,transparent);mask-image:linear-gradient(#000 0,#000 40%,rgba(0,0,0,.84) 52%,rgba(0,0,0,.5) 68%,rgba(0,0,0,.16) 84%,transparent)}
::selection{background:var(--action-wash);color:var(--ink)}
.top{color:var(--surface);border-bottom:1px solid var(--ink);background-color:var(--ink);
  background-image:radial-gradient(70% 220% at 0% 0%,color-mix(in oklab,var(--action) 44%,transparent),color-mix(in oklab,var(--action) 19%,transparent) 35%,color-mix(in oklab,var(--action) 4%,transparent) 65%,transparent 90%),
  radial-gradient(40% 260% at 100% 100%,color-mix(in oklab,#E8603C 26%,transparent),color-mix(in oklab,#E8603C 10%,transparent) 40%,transparent 85%),var(--grain-dark);
  background-blend-mode:normal,normal,screen;background-size:auto,auto,240px 240px;box-shadow:inset 0 -1px 0 rgba(255,255,255,.06)}
.top .brand{color:var(--surface)}.top .brand img{filter:invert(1)}
.nav a{color:#C9CCD3;border-radius:6px}.nav a:hover{color:var(--surface);background:rgba(255,255,255,.08);text-decoration:none}
.nav a.on{color:var(--surface);background:rgba(255,255,255,.14)}
.top .who{color:#C9CCD3}.top .who .link,.top .who a{color:var(--surface)}
.top .badge,.top .mode{background:rgba(255,255,255,.12);color:var(--surface)}
.top .iconbtn{background:transparent;border:1px solid rgba(255,255,255,.28);color:var(--surface)}
.card{border-radius:12px;border:1px solid var(--hair);box-shadow:none}
.btn{border-radius:8px;border:1px solid var(--hair-2);background:var(--surface);color:var(--ink);font-weight:600;box-shadow:none;transition:border-color 120ms,background-color 120ms}
.btn:hover{border-color:var(--ink);text-decoration:none}
.btn.pri{background:var(--action);border-color:var(--action);color:var(--surface)}
.btn.pri:hover{background:var(--action-ink);border-color:var(--action-ink)}
.btn.bad{color:var(--failure);border-color:var(--failure-line)}
.btn:disabled,.btn[disabled],.btn.pri:disabled,.btn.bad:disabled{background:var(--sheet);border:1px solid var(--sheet);color:var(--muted)}
.in{border-radius:8px;border:1px solid var(--line-strong);background-color:var(--surface)}
.in:focus{border-color:var(--action)}
select.in.chip{background-color:var(--surface);border-color:var(--hair-2)}
.iconbtn{border-radius:8px}
.note{border:0;border-radius:10px;background:var(--sheet)}
.note.wait{background:var(--attention-wash)}
.fcard{background:transparent;border:0;padding-left:0;padding-right:0}
.fl a{border-radius:6px}.fl a.on{background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair);color:var(--ink);font-weight:600}
.tab{border:0;border-radius:0;background:transparent;box-shadow:inset 0 -2px 0 transparent}
.tab:hover{box-shadow:inset 0 -2px 0 var(--hair-2)}
.tab[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--ink)}
.tabs{border-bottom:1px solid var(--hair);margin-left:0;margin-right:0;padding-left:0;padding-right:0}
.steps li{border-top-width:2px;border-color:var(--hair-2);border-radius:0;padding-top:10px}
.steps li.done{border-color:var(--ink)}.steps li.on{border-color:var(--action);color:var(--action-ink)}
.tiles{gap:32px 20px}
.tile{border:0;border-radius:0;background:transparent;overflow:visible}
.tile>img,.tile>video,.tile .face{border-radius:8px;box-shadow:0 0 0 1px var(--hair)}
.tile figcaption{padding:12px 0 0;gap:8px}
.tile figcaption .meta{font-family:var(--font-mono);font-size:.75rem;line-height:1.125rem;letter-spacing:0}
.card.empty{padding:56px 24px 48px}
.card.empty h2{font-family:var(--font-display);font-size:1.5rem;line-height:2rem;font-weight:700;letter-spacing:-.015em;margin-bottom:8px}
.card.empty .meta{max-width:520px;margin:0 auto;font-size:.9375rem;line-height:22px}
.card.empty .row{justify-content:center;margin-top:24px}
.sec .n{width:28px;height:28px;background:var(--ink);color:var(--surface);font-weight:600}
.kitlogo.empty{border:1px dashed var(--hair-2);background:var(--bg)}
table.t th{font-size:.8125rem;font-weight:600;color:var(--muted)}
table.t tbody tr:hover{background:var(--bg)}
meter::-webkit-meter-optimum-value,meter::-webkit-meter-suboptimum-value{background:var(--action)}meter::-moz-meter-bar{background:var(--action)}
@media (max-width:768px){.nav a.on{background:rgba(255,255,255,.14);color:var(--surface)}}
@media (prefers-reduced-motion:reduce){.btn{transition:none}}
/* Type, set by our typography-and-taste skill (2026-11-30, Tate: "a bit louder"). One modular scale, ratio 1.25 on a
   15px body: 12, 13, 15, 19, 24, 30, 46 (46 is the page title, the one loud element; the rest stay quiet). Display
   sizes use Inter Display with leading 1.0 to 1.25 and tracking down to -4%; body leading 1.4; caps labels +8%. */
body{line-height:1.4}
.page h1{font-family:var(--font-display);font-size:2.875rem;line-height:1.04;font-weight:700;letter-spacing:-.04em;text-wrap:balance}
.page h1+.meta,.head .meta,.pagehead>p.meta{max-width:72ch;font-size:.9375rem;line-height:1.4;margin-top:8px}
.page h2,.card h2{font-family:var(--font-display);font-size:1.1875rem;line-height:1.25;font-weight:600;letter-spacing:-.01em}
.card.empty h2{font-size:1.5rem;line-height:1.2;letter-spacing:-.02em}
.tile figcaption b,.tile figcaption h3{font-family:var(--font-display);font-size:1.1875rem;line-height:1.25;letter-spacing:-.01em}
table.t th,.label{font-size:.75rem;line-height:1rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.mono,table.t td{font-variant-numeric:tabular-nums}
@media (max-width:768px){.page h1{font-size:2.25rem;line-height:1.08;letter-spacing:-.035em}}
/* Components, reshaped (2026-11-30, Tate: "row 2 is so clunky"). Icons are Lucide paths drawn as CSS masks. */
:root{--i-search:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");--i-info:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");--i-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");--i-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
/* Search: one joined field, magnifier inside, the button fused to its right edge. */
.find{gap:0;position:relative}
.find::before{content:"";position:absolute;left:14px;top:50%;width:16px;height:16px;margin-top:-8px;background:var(--muted);-webkit-mask:var(--i-search) center/contain no-repeat;mask:var(--i-search) center/contain no-repeat;pointer-events:none;z-index:1}
.find input[type=search].in{padding-left:38px;border-radius:10px 0 0 10px;border-right:0;min-height:44px}
.find .btn{border-radius:0 10px 10px 0;min-height:44px;border-color:var(--line-strong);background:var(--bg)}
.find .btn:hover{background:var(--sheet)}
/* Sort: a quiet text menu, not a second box. */
.sort{gap:4px}.sort label.meta{color:var(--muted)}
.sort select.in{border:0;background-color:transparent;background-image:none;font-weight:600;padding:0 26px 0 6px;min-height:44px;width:auto;flex:none;
  -webkit-mask:none;background:linear-gradient(var(--ink),var(--ink)) right 6px center/0 0 no-repeat}
.sort{position:relative}.sort::after{content:"";position:absolute;right:6px;top:50%;width:14px;height:14px;margin-top:-7px;background:var(--ink);-webkit-mask:var(--i-chev) center/contain no-repeat;mask:var(--i-chev) center/contain no-repeat;pointer-events:none}
.sort select.in:hover{background-color:var(--sheet)}
/* Selection bar: quiet until something is ticked, then it turns ink and the actions light up. */
.bulk{overflow:hidden}
.bulkbar{gap:4px;padding:6px 8px 6px 16px;border-bottom:1px solid var(--hair);transition:background-color 120ms,color 120ms}
.bulkbar .btn,.bulkbar select.in.chip{border:0;background-color:transparent;box-shadow:none;padding:0 14px;border-radius:8px;font-weight:600}
.bulkbar .btn:disabled,.bulkbar .btn.bad:disabled,.bulkbar select.in.chip:disabled{background-color:transparent;border:0;color:#6B7180}
.bulkbar.on{background:var(--ink);color:var(--surface)}
.bulkbar.on [data-count]{color:var(--surface)}
.bulkbar.on .btn,.bulkbar.on select.in.chip{color:var(--surface)}
.bulkbar.on .btn:hover,.bulkbar.on select.in.chip:hover{background-color:rgba(255,255,255,.12)}
.bulkbar.on select.in.chip{background-color:rgba(255,255,255,.1)}
.bulkbar.on select.in.chip option{color:var(--ink)}
.bulkbar.on .btn.bad{color:#FFB4AB}
/* Notices: an info mark and the words, no box edge. */
.note{align-items:flex-start;gap:12px;padding:12px 16px}
.note::before{content:"";flex:none;width:18px;height:18px;margin-top:2px;background:var(--muted);-webkit-mask:var(--i-info) center/contain no-repeat;mask:var(--i-info) center/contain no-repeat}
.note.toast::before{display:none}
.note{color:var(--muted);line-height:1.45}.note b{color:var(--ink);font-weight:600}
/* Steps: one connected track. Numbered nodes on a hairline; done nodes are ink with a check, the current one is the
   action color, later ones are outlined. Phones keep the nodes and show only the current step's name. */
:root{--i-check-w:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");--i-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E")}
.steps{counter-reset:step;display:flex;align-items:center;gap:12px;margin:24px 0 32px}
.steps li{counter-increment:step;flex:1 1 0;display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding:0;border:0;
  font-size:.8125rem;line-height:1rem;font-weight:600;color:var(--muted);white-space:nowrap}
.steps li::before{content:counter(step);flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;box-sizing:border-box;
  border:1px solid var(--hair-2);background:var(--surface);font:600 .75rem/1 var(--font-mono);color:var(--muted);-webkit-mask:none;mask:none;margin:0}
.steps li::after{content:"";flex:1 1 auto;min-width:12px;height:1px;background:var(--hair-2)}
.steps li:last-child{flex:none}.steps li:last-child::after{display:none}
.steps li.done{color:var(--ink)}
.steps li.done::before{content:"";border-color:var(--ink);background:var(--ink) var(--i-check-w) center/12px no-repeat}
.steps li.done::after{background:var(--ink)}
.steps li.on{color:var(--ink);font-weight:700}
.steps li.on::before{border-color:var(--action);background:var(--action);color:var(--surface);box-shadow:0 0 0 4px var(--action-wash)}
@media (max-width:768px){.steps{gap:8px}.steps li{font-size:0}.steps li.on{font-size:.8125rem;flex:none}}
/* Shot cards: one object per shot. A white print with the picture inset (radii concentric: 12 outside, 6 inside),
   the status on the picture's corner, a mono slate line, the title, and a footer row that opens the shot. The whole
   card is the click target; the video keeps its own controls. */
.tile.shot{position:relative;padding:6px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--hair);transition:box-shadow 160ms}
.tile.shot>img,.tile.shot>video,.tile.shot .face{border-radius:6px;box-shadow:none}
.tile.shot>video{position:relative;z-index:1}
.tile.shot figcaption{padding:12px 8px 12px;gap:4px}
.tile.shot figcaption>.st:first-child{position:absolute;top:16px;left:16px;z-index:2;background:var(--surface);box-shadow:0 1px 3px rgba(22,25,31,.18)}
.tile.shot .slate{display:flex;justify-content:space-between;gap:8px;align-self:stretch;font:500 .75rem/1rem var(--font-mono);color:var(--muted);font-variant-numeric:tabular-nums}
.tile.shot figcaption .meta{font-family:var(--font-body);font-size:.8125rem;line-height:1.125rem;color:var(--muted);font-variant-numeric:tabular-nums}
.tile.shot figcaption b.tt{font-family:var(--font-display);font-size:.9375rem;line-height:1.3;font-weight:600;letter-spacing:-.005em;text-wrap:pretty;margin-top:4px}
.tile.shot figcaption .meta.held{font-family:var(--font-body)}
.tile.shot .go{display:flex;align-items:center;justify-content:space-between;align-self:stretch;min-height:44px;margin:auto -14px -18px;position:static;padding:0 14px;
  border-top:1px solid var(--hair);font-size:.8125rem;font-weight:600;color:var(--action-ink);text-decoration:none}
.tile.shot .go::before{content:"";position:absolute;inset:0;border-radius:12px}
.tile.shot .go::after{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:var(--i-arrow) center/contain no-repeat;mask:var(--i-arrow) center/contain no-repeat;transition:transform 160ms}
.tile.shot:hover,.tile.shot:focus-within{box-shadow:0 0 0 1px var(--ink)}
.tile.shot:hover .go::after,.tile.shot .go:focus-visible::after{transform:translateX(3px)}
.tile.shot .go:focus-visible{outline:none}.tile.shot:has(.go:focus-visible){box-shadow:0 0 0 2px var(--action)}
@media (prefers-reduced-motion:reduce){.tile.shot,.tile.shot .go::after{transition:none}}
.tile.shot figcaption>.meta:not(.held){margin-bottom:8px}
.bulkbar select.in.chip{padding-right:32px}
