/* Art Agent — "lightbox".
   A clean light desk for reading and editing feedback; the artwork itself always sits on a neutral dark
   mat (like a passe-partout on a review wall) so colour is judged without bias. One red paint-over marker
   is the accent; the company's xlsx priority fills (#FF5C5C / #FFD84D / #A8E6B8 / #CFE2FF) are the only
   other colours. Display type: Bricolage Grotesque. Text: Be Vietnam Pro. */
@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&display=swap");

:root{
  color-scheme:light;
  --page:#EEF0F3; --surface:#FFFFFF; --surface-2:#F4F5F7; --surface-3:#E7E9ED;
  --ink:#16191F; --ink-2:#434954; --ink-3:#6A707B; --ink-4:#9AA0AA;
  --hair:rgba(22,25,31,.08); --hair-2:rgba(22,25,31,.15);
  --mat:#2B2C2F; --mat-2:#38393D;                      /* neutral dark mat behind artwork */
  --marker:#D9362C; --marker-hi:#E8473C; --marker-soft:rgba(217,54,44,.09); --marker-ink:#A9251D;
  --pri-vi:#FF5C5C; --pri-im:#FFD84D; --pri-sh:#A8E6B8; --pri-po:#CFE2FF; --on-pri:#1A1C21;
  --vi-ink:#B4231B; --im-ink:#7A5B00; --sh-ink:#1D6B3E; --po-ink:#2F5597;
  --ok:#1F8A53; --warn:#9A6200;
  --shadow:0 1px 2px rgba(16,24,40,.05),0 0 0 1px var(--hair);
  --shadow-lift:0 1px 2px rgba(16,24,40,.05),0 18px 40px -24px rgba(16,24,40,.28),0 0 0 1px var(--hair);
  --font:"Be Vietnam Pro",system-ui,sans-serif;
  --display:"Bricolage Grotesque","Be Vietnam Pro",system-ui,sans-serif;
  --r-s:8px; --r-m:12px; --r-l:16px; --r-xl:22px;
  --ease:cubic-bezier(.2,.8,.2,1); --spring:cubic-bezier(.34,1.45,.64,1);

  /* Lucian tokens → plan */
  --ux-page:var(--page); --ux-surface:var(--surface); --ux-surface-2:var(--surface-2); --ux-surface-3:var(--surface-3);
  --ux-ink:var(--ink); --ux-ink-2:var(--ink-2); --ux-ink-3:var(--ink-3);
  --ux-line:var(--hair); --ux-line-2:var(--hair-2);
  --ux-accent:var(--marker); --ux-accent-2:var(--pri-im); --ux-accent-soft:var(--marker-soft); --ux-accent-ink:#FFFFFF;
  --ux-mint:var(--ok); --ux-warn:var(--warn); --ux-danger:var(--vi-ink);
  --ux-glass:rgba(255,255,255,.7); --ux-glass-line:rgba(255,255,255,.9);
  --ux-shadow:rgba(16,24,40,.12); --ux-shadow-strong:rgba(16,24,40,.24);
  --ux-grad:var(--marker); --ux-ease:var(--ease); --ux-spring:var(--spring);
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0}
/* the scrollbar keeps its room on every page: content does not shift sideways when a page grows past the screen (Wayne 2026-10-20) */
html{scrollbar-gutter:stable}
body{background:var(--page);color:var(--ink);font:15px/1.6 var(--font);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration-color:var(--hair-2);text-underline-offset:3px}
a:hover{text-decoration-color:var(--ink-3)}
:focus-visible{outline:2px solid var(--marker);outline-offset:2px;border-radius:6px}
img{max-width:100%;display:block}
h1,h2,h3{margin:0;font-family:var(--display);letter-spacing:-.02em;line-height:1.12;color:var(--ink)}
h1{font-size:32px;font-weight:800}
h2{font-size:21px;font-weight:700}
h3{font-size:16.5px;font-weight:700}
p{margin:0}
.muted{color:var(--ink-3)} .small{font-size:13px} .num{font-variant-numeric:tabular-nums}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
svg.i{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* ---------------------------------------------------------------- shell */
.shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}
.rail{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:24px;padding:20px 14px;background:var(--surface);border-right:1px solid var(--hair)}
.brand{display:flex;align-items:center;gap:11px;padding:2px 8px;text-decoration:none}
.brand svg,.brand img{width:34px;height:34px;flex:none}
.brand b{display:block;font:800 17px/1.05 var(--display);letter-spacing:-.02em}
.brand small{display:block;font-size:11.5px;color:var(--ink-3);font-weight:500;margin-top:2px}
.nav{display:flex;flex-direction:column;gap:2px}
.nav a{position:relative;display:flex;align-items:center;gap:11px;height:40px;padding:0 10px;border-radius:var(--r-s);text-decoration:none;color:var(--ink-2);font-weight:600;font-size:14px;transition:background-color .2s,color .2s}
.nav a:hover{background:var(--surface-2);color:var(--ink)}
.nav a[aria-current="page"]{background:var(--marker-soft);color:var(--marker-ink)}
.nav-h{margin:14px 10px 4px;font-size:12px;font-weight:600;color:var(--ink-4)}
.rail-games{display:flex;flex-direction:column;gap:1px}
.rail-games a{display:flex;align-items:center;gap:10px;height:34px;padding:0 10px;border-radius:var(--r-s);text-decoration:none;font-size:13.5px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail-games a:hover{background:var(--surface-2)}
.rail-games code{min-width:38px;font:700 11.5px/1 var(--display);color:var(--ink-3);font-variant-numeric:tabular-nums}
.rail-foot{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 8px 0;border-top:1px solid var(--hair)}
.avatar{width:32px;height:32px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--surface-3);color:var(--ink-2);font:800 13px/1 var(--display)}
.rail-foot .who{flex:1;min-width:0;font-size:13px;line-height:1.3}
.rail-foot .who b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail-foot .who small{color:var(--ink-3)}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none;border:0;border-radius:var(--r-s);background:none;color:var(--ink-3);cursor:pointer;transition:background-color .2s,color .2s}
.icon-btn:hover{background:var(--surface-2);color:var(--ink)}
main{padding:32px 40px 80px;min-width:0;max-width:1480px}
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:26px}
.head .lede{margin-top:8px;max-width:64ch;color:var(--ink-2)}
.crumb{display:inline-flex;align-items:center;gap:8px;margin-bottom:10px;font-size:13px;color:var(--ink-3);text-decoration:none}
.crumb code{font:700 12px/1 var(--display);padding:4px 7px;border-radius:6px;background:var(--surface);box-shadow:var(--shadow);color:var(--ink-2)}

/* ---------------------------------------------------------------- buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:var(--r-m);border:0;
  background:var(--surface);color:var(--ink);box-shadow:var(--shadow);font:600 14px/1 var(--font);text-decoration:none;cursor:pointer;white-space:nowrap;
  transition:background-color .2s,box-shadow .2s,transform .3s var(--spring)}
.btn:hover{background:var(--surface-2)} .btn:active{transform:scale(.97)}
.btn.primary{background:var(--marker);color:#fff;box-shadow:0 8px 20px -12px rgba(217,54,44,.75)}
.btn.primary:hover{background:var(--marker-hi)}
.btn.ghost{background:transparent;box-shadow:inset 0 0 0 1px var(--hair-2)}
.btn.ghost:hover{background:var(--surface)}
.btn.sm{height:34px;padding:0 12px;font-size:13px;border-radius:10px}
.btn[disabled]{opacity:.55;cursor:progress}
.btn svg.i{width:17px;height:17px}

/* ---------------------------------------------------------------- forms */
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}
.field>label,.field>.lab{font-size:12.5px;font-weight:700;color:var(--ink-2)}
.field .hint{font-size:12.5px;color:var(--ink-3);line-height:1.45}
.field>.ux.u039.is-seg{align-self:flex-start}
:where(input[type=text],input[type=password],input[type=email],input[type=search],textarea){width:100%;border:0;border-radius:12px;background:var(--surface-2);color:var(--ink);
  font:500 15px/1.5 var(--font);box-shadow:inset 0 0 0 1px var(--hair);transition:box-shadow .25s var(--ease),background-color .25s}
:where(input[type=text],input[type=password],input[type=email],input[type=search]){height:48px;padding:0 14px}
:where(textarea){min-height:100px;padding:12px 14px;resize:vertical}
:where(input,textarea):where(:hover){box-shadow:inset 0 0 0 1px var(--hair-2)}
:where(input,textarea):where(:focus){outline:0;background:var(--surface);box-shadow:inset 0 0 0 2px var(--marker),0 0 0 4px var(--marker-soft)}
::placeholder{color:var(--ink-4)}
textarea.mono{font:500 13px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.row2>*{min-width:0}
.card{background:var(--surface);border-radius:var(--r-xl);padding:24px;box-shadow:var(--shadow)}
.stack{display:flex;flex-direction:column;gap:18px;min-width:0}
.card-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}
.card .sub{font-size:13.5px;color:var(--ink-3);margin-bottom:18px;max-width:60ch}
.split{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;align-items:start}
.split>*{min-width:0}
.notice{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-m);background:var(--marker-soft);color:var(--marker-ink);font-size:14px;margin-bottom:18px}
.notice.ok{background:rgba(31,138,83,.09);color:var(--ok)}

/* ---------------------------------------------------------------- priority bar + chips */
.pbar{display:flex;gap:3px;height:8px;border-radius:999px;overflow:hidden;background:var(--surface-3)}
.pbar i{display:block;height:100%}
.pbar .vi{background:var(--pri-vi)} .pbar .im{background:var(--pri-im)} .pbar .sh{background:var(--pri-sh)}
.pbar.empty{background:repeating-linear-gradient(90deg,var(--surface-3) 0 6px,var(--surface-2) 6px 12px)}
.tally{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--ink-2)}
.tally span{display:inline-flex;align-items:center;gap:7px}
.tally i{width:10px;height:10px;border-radius:3px}
.tally b{font:800 16px/1 var(--display);color:var(--ink);font-variant-numeric:tabular-nums}
.pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;background:var(--surface-2);color:var(--ink-2)}
.pill.live::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--marker);animation:pulse 1.4s var(--ease) infinite}
.pill.err{background:var(--marker-soft);color:var(--marker-ink)}
.pill.model{background:var(--surface-3);color:var(--ink-2)}
@keyframes pulse{50%{opacity:.25}}

/* ---------------------------------------------------------------- home */
.desk{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:stretch;margin-bottom:40px}
.intake{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:center;padding:28px 30px;border-radius:var(--r-xl);background:var(--surface);box-shadow:var(--shadow)}
.intake h2{font-size:27px;max-width:18ch}
.intake p{margin:10px 0 20px;color:var(--ink-2);max-width:52ch}
.intake .mat{border-radius:16px;background:var(--surface-2);padding:14px;box-shadow:inset 0 0 0 1px var(--hair)}
.intake .mat svg{display:block;width:100%}
.status{display:flex;flex-direction:column;gap:14px;padding:22px;border-radius:var(--r-xl);background:var(--surface);box-shadow:var(--shadow)}
.status h3{font-size:15px}
.stat{display:flex;gap:12px;align-items:flex-start;font-size:13.5px;color:var(--ink-3);line-height:1.45}
.stat .d{width:9px;height:9px;margin-top:6px;flex:none;border-radius:50%;background:var(--ink-4)}
.stat .d.on{background:var(--ok);box-shadow:0 0 0 4px rgba(31,138,83,.12)}
.stat .d.off{background:var(--marker);box-shadow:0 0 0 4px var(--marker-soft)}
.stat b{display:block;color:var(--ink);font-weight:600}
.sec-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.games{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px;margin-bottom:40px}
.game{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 14px;padding:16px 18px;border-radius:var(--r-l);background:var(--surface);text-decoration:none;box-shadow:var(--shadow);transition:box-shadow .25s,transform .3s var(--spring)}
.game:hover{box-shadow:var(--shadow-lift);transform:translateY(-2px)}
.game code{grid-row:span 4;align-self:start;min-width:58px;padding:11px 0;border-radius:12px;background:var(--mat);color:#fff;font:800 16px/1 var(--display);text-align:center;font-variant-numeric:tabular-nums}
.game b{font-weight:700;line-height:1.3}
.game span{font-size:12.5px;color:var(--ink-3)}
.reviews{display:flex;flex-direction:column;padding:6px;border-radius:var(--r-xl);background:var(--surface);box-shadow:var(--shadow)}
.rv{display:grid;grid-template-columns:128px minmax(0,1fr) 240px;gap:18px;align-items:center;padding:10px 16px 10px 10px;border-radius:14px;text-decoration:none;transition:background-color .2s}
.rv+.rv{position:relative}
.rv+.rv::before{content:"";position:absolute;left:150px;right:16px;top:0;border-top:1px solid var(--hair)}
.rv:hover{background:var(--surface-2)}
.rv .shot{aspect-ratio:16/10;border-radius:10px;background:var(--mat) center/cover no-repeat}
.rv b{display:block;font-weight:700}
.rv .meta{font-size:13px;color:var(--ink-3)}
.metas{display:flex;flex-wrap:wrap;gap:2px 14px}
.metas>*{white-space:nowrap}
.rv .right{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.rv .right .pbar{align-self:stretch}
.rv .verdict-s{font:700 13px/1.2 var(--display);color:var(--ink-2)}
.empty{display:flex;flex-direction:column;align-items:center;gap:14px;padding:40px 24px;border-radius:var(--r-xl);background:var(--surface);box-shadow:var(--shadow);text-align:center;color:var(--ink-2)}
.empty svg{width:96px}

/* ---------------------------------------------------------------- progress */
.run{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.steps{list-style:none;margin:14px 0 0;padding:0;position:relative}
.steps li{position:relative;display:grid;grid-template-columns:36px 1fr;gap:14px;padding:0 0 20px}
.steps li::before{content:"";position:absolute;left:13px;top:30px;bottom:2px;width:2px;background:var(--surface-3)}
.steps li:last-child::before{display:none}
.steps li[data-state="done"]::before{background:var(--pri-sh)}
.steps .mk{position:relative;z-index:1;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--surface);box-shadow:inset 0 0 0 2px var(--surface-3)}
.steps li[data-state="run"] .mk{box-shadow:inset 0 0 0 2px var(--marker-soft)}
.steps li[data-state="run"] .mk::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid transparent;border-top-color:var(--marker);animation:spin .9s linear infinite}
.steps li[data-state="done"] .mk{background:var(--ok);box-shadow:none}
.steps li[data-state="done"] .mk::after{content:"";width:10px;height:5px;border-left:2.4px solid #fff;border-bottom:2.4px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}
.steps li[data-state="skip"] .mk{opacity:.5}
.steps li[data-state="error"] .mk{background:var(--marker)}
.steps b{display:block;font-weight:600;padding-top:3px}
.steps li[data-state="todo"] b,.steps li[data-state="skip"] b{color:var(--ink-3);font-weight:500}
.steps small{display:block;color:var(--ink-3);font-size:13px}
@keyframes spin{to{transform:rotate(360deg)}}
.clock{font:800 46px/1 var(--display);font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.thumbs{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}
.thumbs figure{margin:0}
.thumbs img{aspect-ratio:16/10;object-fit:cover;border-radius:10px;width:100%;background:var(--mat)}
.thumbs figcaption{font-size:12px;color:var(--ink-3);margin-top:5px}

/* ---------------------------------------------------------------- review summary */
.summary{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;align-items:start;padding:24px 26px;border-radius:var(--r-xl);background:var(--surface);box-shadow:var(--shadow);margin-bottom:24px}
.stamp{display:inline-flex;flex-direction:column;justify-content:center;width:100%;padding:13px 16px;border-radius:14px;border:2.5px solid currentColor;font:800 18px/1.1 var(--display);letter-spacing:.01em;transform:rotate(-1.5deg)}
.stamp small{font:600 11.5px/1.3 var(--font);opacity:.9;margin-top:6px}
.stamp.approve{color:var(--ok)} .stamp.changes{color:var(--im-ink)} .stamp.concerns{color:var(--marker)} .stamp.reject{color:var(--vi-ink)}
.summary .tally{margin-top:20px}
.summary .pbar{margin-top:12px}
.summary .meta{margin-top:14px;display:flex;gap:6px;flex-wrap:wrap}
.dir{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;max-width:78ch}
.dir li{position:relative;padding-left:20px;font-size:15px;line-height:1.6;color:var(--ink)}
.dir li::before{content:"";position:absolute;left:3px;top:.62em;width:7px;height:7px;border-radius:2px;background:var(--marker)}
.summary .gd{margin-top:16px;padding-top:14px;border-top:1px solid var(--hair)}
.summary .gd h4{margin:0 0 8px;font:700 12.5px/1 var(--font);color:var(--ink-3)}
.summary .gd .dir li{font-size:14px;color:var(--ink-2)}
.summary .gd .dir li::before{background:var(--ink-4)}
details.en{margin-top:12px}
details.en summary{display:inline-flex;align-items:center;gap:7px;cursor:pointer;list-style:none;font-size:12.5px;font-weight:700;color:var(--ink-3);border-radius:6px}
details.en summary::-webkit-details-marker{display:none}
details.en summary::before{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .25s var(--ease)}
details.en[open] summary::before{transform:rotate(45deg)}
details.en .en-t{margin-top:8px}
details.en .en-t li{color:var(--ink-3);font-size:13.5px}

/* ---------------------------------------------------------------- critique wall */
.wall-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.crit{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(380px,1fr);gap:22px;align-items:start}
.board{position:sticky;top:18px;display:flex;flex-direction:column;gap:14px;min-width:0}
.frame{background:var(--mat);border-radius:var(--r-xl);padding:14px;box-shadow:0 20px 44px -30px rgba(16,24,40,.6)}
.stage{position:relative;line-height:0;overflow:hidden;border-radius:10px}
.stage img{width:100%;border-radius:10px;cursor:zoom-in}
.mark{position:absolute;border:2.5px solid #FF6B5E;border-radius:50%;transition:box-shadow .3s var(--ease),opacity .3s,border-color .3s;pointer-events:none}
.mark.sh{border-color:var(--pri-im)}
.mark .pin{position:absolute;left:-4px;top:-13px;min-width:26px;height:26px;padding:0 7px;border:0;border-radius:999px;background:var(--marker);color:#fff;font:800 12.5px/26px var(--display);text-align:center;pointer-events:auto;cursor:pointer;box-shadow:0 6px 14px -6px #000;transition:transform .3s var(--spring)}
.mark.sh .pin{background:#FFD84D;color:var(--on-pri)}
.mark .pin:hover{transform:scale(1.12)}
.stage.hide-marks .mark{opacity:0}
.stage.focusing .mark{opacity:.2}
.stage.focusing .mark.on{opacity:1;box-shadow:0 0 0 9999px rgba(12,13,15,.5)}
.stage.focusing .mark.on.extra{box-shadow:0 0 0 4px rgba(255,255,255,.35)}   /* one spotlight per item, not stacked shades */
.frame-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 2px 0;line-height:1.4;flex-wrap:wrap;color:#B8BBC1;font-size:13px}
.toggle{display:inline-flex;align-items:center;gap:10px;font-size:13px;cursor:pointer;user-select:none}
.toggle input{appearance:none;width:36px;height:22px;margin:0;border-radius:999px;background:#56585D;position:relative;cursor:pointer;transition:background-color .25s}
.toggle input::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .35s var(--spring)}
.toggle input:checked{background:var(--marker)}
.toggle input:checked::after{transform:translateX(14px)}

/* feedback list: accordion */
.notes{display:flex;flex-direction:column;gap:10px;min-width:0}
.note{position:relative;border-radius:var(--r-l);background:var(--surface);box-shadow:var(--shadow);transition:box-shadow .25s var(--ease),opacity .25s;scroll-margin:24px;overflow:hidden}
.note.on{box-shadow:0 0 0 2px var(--marker),0 18px 40px -26px rgba(16,24,40,.35)}
.note.dropped{opacity:.55}
.note-h{display:grid;grid-template-columns:30px minmax(0,1fr) auto 28px;gap:12px;align-items:center;width:100%;padding:14px 12px 14px 18px;border:0;background:none;text-align:left;cursor:pointer;color:inherit;font:inherit}
.note-h:hover{background:var(--surface-2)}
.note-n{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--pri-im);color:var(--on-pri);font:800 13px/1 var(--display)}
.note[data-p="Very Important"] .note-n{background:var(--pri-vi)}
.note[data-p="Should Have"] .note-n{background:var(--pri-sh)}
.note[data-p="Polishing"] .note-n{background:var(--pri-po)}
.note-t{min-width:0}
.note-t b{display:block;font:700 15.5px/1.3 var(--display);letter-spacing:-.01em}
.note-t .gist{display:block;margin-top:2px;font-size:13px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.note.open .note-t .gist{display:none}
.note-t .tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.note-t .tag{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--surface-3);color:var(--ink-2)}
.note-t .tag.prev{background:rgba(154,98,0,.1);color:var(--warn)}
.chev{width:28px;height:28px;display:grid;place-items:center;color:var(--ink-3)}
.chev svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--spring)}
.note.open .chev svg{transform:rotate(180deg)}
.note-x{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s var(--ease)}
.note.open .note-x{grid-template-rows:1fr}
.note-x>div{min-height:0;overflow:hidden}
.note-body{padding:2px 20px 4px 60px}
.sect{margin:0 0 14px}
.sect h4{display:flex;align-items:center;gap:8px;margin:0 0 6px;font:700 12px/1.2 var(--font);color:var(--ink-3)}
.sect ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.sect li{position:relative;padding-left:18px;line-height:1.55}
.sect li::before{content:"";position:absolute;left:2px;top:.65em;width:6px;height:6px;border-radius:50%;background:var(--ink-4)}
.sect.issue li::before{background:var(--marker)}
.sect.fix{padding:12px 14px;border-radius:12px;background:rgba(31,138,83,.07)}
.sect.fix h4{color:var(--ok)}
.sect.refnote li{color:var(--ink-3)}
.sect.fix li::before{content:"→";background:none;width:auto;height:auto;top:0;left:0;color:var(--ok);font-weight:800}
.note-body.editing li{outline:0;border-radius:6px;box-shadow:0 0 0 1px var(--hair-2);padding:4px 8px 4px 22px;background:var(--surface)}
.note-body.editing li:focus{box-shadow:0 0 0 2px var(--marker)}
.note-body.editing li::before{left:8px}
.note-media{padding:0 20px 14px 60px}
.final-ref{margin-top:14px;padding:16px 16px 4px;border-radius:12px;background:var(--surface);border:1px solid var(--hair-2)}
.final-h{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.final-h b{font:700 15px/1.2 var(--display)}
.final-ref .note-media{padding:0}
.note-media .u060.is-fit .u060-cap{display:none}          /* caption sits under the image so it never covers the bottom UI */
.demo-cap{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;font-size:12px;color:var(--ink-3)}
.demo-cap .btn{flex:none;gap:6px}
.demo-cap .btn .i{width:15px;height:15px}
.cmp-dlg{width:min(1500px,94vw);max-width:none;padding:0}
.cmp-dlg form{padding:16px 20px 18px}
.cmp-box{display:flex;justify-content:center;max-height:78vh}
.cmp-box .u060.is-fit{width:auto;height:min(78vh,calc((94vw - 40px) * 9 / 16));max-width:100%}
.cmp-box .u060-cap,.note-media .u060-cap{display:none}
.refs{display:flex;gap:10px;overflow-x:auto;padding:2px 20px 14px 60px;scrollbar-width:thin}
.ref{flex:none;width:132px;text-decoration:none;font-size:12px;line-height:1.35;color:var(--ink-3)}
.ref img{width:132px;height:84px;object-fit:cover;border-radius:10px;margin-bottom:6px;background:var(--mat)}
.ref .src{display:block;margin-bottom:1px;font-size:11px;font-weight:700;color:var(--ink-2)}
.note-f{display:flex;align-items:center;gap:2px;padding:6px 10px 8px 54px;border-top:1px solid var(--hair)}
.note-f .icon-btn{width:auto;padding:0 10px;gap:7px;font:600 12.5px/1 var(--font);height:34px}
.note-f .spacer{flex:1}
.note-f .icon-btn.danger:hover{color:var(--vi-ink);background:var(--marker-soft)}
.prio{position:relative;flex:none}
.prio-btn{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 9px 0 11px;border:0;border-radius:999px;background:var(--p-bg,var(--pri-im));color:var(--on-pri);font:700 12px/1 var(--font);cursor:pointer;transition:transform .3s var(--spring)}
.prio-btn:active{transform:scale(.95)}
.prio-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .4s var(--spring)}
.prio-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.prio-menu{position:absolute;top:0;left:0;z-index:40;min-width:200px;margin:0;padding:6px;list-style:none;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--hair-2),0 24px 44px -20px rgba(16,24,40,.35);outline:0;
  opacity:0;transform:translateY(-6px) scale(.96);transform-origin:100% 0;visibility:hidden;transition:opacity .18s var(--ease),transform .35s var(--spring),visibility 0s .35s}
.prio-menu.open{opacity:1;transform:none;visibility:visible;transition:opacity .18s var(--ease),transform .35s var(--spring)}
.prio-menu li{display:flex;align-items:center;gap:10px;height:38px;padding:0 10px;border-radius:9px;font-size:13.5px;font-weight:600;cursor:pointer}
.prio-menu li.act{background:var(--surface-2)}
.prio-menu i{width:12px;height:12px;border-radius:4px}
.prio-menu li[aria-selected="true"]::after{content:"";margin-left:auto;width:9px;height:5px;border-left:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(-45deg) translateY(-2px)}
.composer-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 2px 8px}
.composer-h b{font:700 15px/1.2 var(--display)}
.aside-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-top:30px;align-items:start}
.ok-list,.na-list{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.ok-list li,.na-list li{display:grid;grid-template-columns:22px 1fr;gap:10px;font-size:14px;color:var(--ink-2);line-height:1.5}
.ok-list li::before{content:"";width:18px;height:18px;margin-top:2px;border-radius:50%;background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.7 2.7L13 6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat}
.na-list li::before{content:"";width:16px;height:16px;margin:3px 0 0 1px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--ink-4)}
.ai-line{margin-top:18px;font-size:12.5px;color:var(--ink-4)}

/* ---------------------------------------------------------------- dialogs */
dialog{border:0;padding:0;border-radius:var(--r-xl);background:var(--surface);color:var(--ink);width:min(580px,92vw);box-shadow:0 40px 90px -30px rgba(16,24,40,.45)}
dialog::backdrop{background:rgba(22,25,31,.45);backdrop-filter:blur(3px)}
dialog[open]{animation:dlg .35s var(--spring)}
@keyframes dlg{from{opacity:0;transform:translateY(12px) scale(.98)}}
.dlg-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 22px 0}
.dlg-b{padding:10px 22px 0}
.dlg-b p{color:var(--ink-3);font-size:13.5px;margin-bottom:14px;line-height:1.55}
.dlg-f{display:flex;justify-content:flex-end;gap:10px;padding:18px 22px 22px}
dialog.viewer{width:auto;max-width:94vw;background:var(--mat);padding:12px}
dialog.viewer img{max-height:84vh;width:auto;margin:auto;border-radius:10px}
dialog.viewer .dlg-f{padding:12px 0 0}

/* ---------------------------------------------------------------- uploads, files, tables */
.shot-list{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.shot-row{display:grid;grid-template-columns:96px minmax(0,1fr) 34px;gap:14px;align-items:center;padding:10px;border-radius:var(--r-l);background:var(--surface-2);animation:rowin .45s var(--spring)}
@keyframes rowin{from{opacity:0;transform:translateY(-8px)}}
.shot-row>img{width:96px;height:62px;object-fit:cover;border-radius:10px;background:var(--mat)}
.shot-row .nm{font-size:12.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px}
.files{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:16px}
.files figure{position:relative;margin:0}
.files img{aspect-ratio:4/3;object-fit:cover;border-radius:12px;width:100%;background:var(--mat);cursor:zoom-in}
.files figcaption{font-size:12px;color:var(--ink-3);margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.files .rm{position:absolute;top:8px;right:8px;background:rgba(255,255,255,.92);color:var(--ink)}
.doc{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--hair);font-size:14px}
.doc:last-child{border-bottom:0}
.doc .ext{width:34px;height:40px;flex:none;border-radius:8px;display:grid;place-items:end center;padding-bottom:5px;font-size:9px;font-weight:800;background:#3D6FB0;color:#fff}
.doc a{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}
.doc .meta{font-size:12.5px;color:var(--ink-3)}
table.list{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
table.list th{text-align:left;padding:0 12px 8px;font-size:12.5px;font-weight:700;color:var(--ink-3);border-bottom:1px solid var(--hair)}
table.list td{padding:12px;border-bottom:1px solid var(--hair);vertical-align:middle}
table.list tr:last-child td{border-bottom:0}
.role{display:inline-flex;height:24px;padding:0 10px;border-radius:999px;align-items:center;font-size:12px;font-weight:700;background:var(--surface-3);color:var(--ink-2)}
.role.admin{background:var(--marker-soft);color:var(--marker-ink)}
.who-cell{display:flex;align-items:center;gap:12px;line-height:1.35}

/* ---------------------------------------------------------------- auth */
.auth{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:40px 24px}
.auth-brand{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.auth-brand img{width:64px;height:64px;border-radius:16px}
.auth-brand h1{font-size:34px;letter-spacing:-.02em}
.auth-form{display:grid;place-items:center;width:100%}
.auth-wrap{display:flex;flex-direction:column;align-items:center;gap:16px}
.auth-note{font-size:13px;color:var(--ink-3);max-width:340px;text-align:center}

/* ---------------------------------------------------------------- responsive */
@media (max-width:1180px){.crit{grid-template-columns:1fr}.board{position:relative;top:0}.desk{grid-template-columns:1fr}.run{grid-template-columns:1fr}}
@media (max-width:980px){.intake{grid-template-columns:1fr}.intake .mat{display:none}}
@media (max-width:900px){.split,.aside-grid{grid-template-columns:1fr}.summary{grid-template-columns:1fr}}
@media (max-width:820px){
  .shell{grid-template-columns:1fr}
  .rail{position:relative;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px;border-right:0;border-bottom:1px solid var(--hair)}
  .nav{flex-direction:row;flex-wrap:wrap;flex:1 1 100%;order:3}
  .nav-h,.rail-games{display:none}.rail-foot{margin:0 0 0 auto;border:0;padding:0}.rail-foot .who{display:none}
  main{padding:22px 16px 56px}
  h1{font-size:27px}
  .row2{grid-template-columns:1fr}
  .rv{grid-template-columns:96px minmax(0,1fr)}.rv .right{grid-column:1/-1}
  .note-h{grid-template-columns:30px minmax(0,1fr) 28px}.note-h .prio{grid-column:2;grid-row:2;justify-self:start}
  .note-body,.note-media,.refs{padding-left:20px}.note-f{padding-left:10px;flex-wrap:wrap}
  .shot-row{grid-template-columns:72px minmax(0,1fr) 34px}.shot-row>img{width:72px;height:48px}
}
@media (max-width:420px){.auth{padding:32px 16px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
.note-t.sr-btn{all:unset;display:block;min-width:0;cursor:pointer;border-radius:6px}
.note-t.sr-btn:focus-visible{outline:2px solid var(--marker);outline-offset:4px}
.ux input,.ux textarea{box-shadow:none}

/* image view switch + audit panel */
.u039.is-seg.is-sm .u039-tabs{padding:4px}
.u039.is-seg.is-sm .u039-pill{top:4px;bottom:4px}
.u039.is-seg.is-sm .u039-tab{height:30px;padding:0 12px;font-size:12.5px}
.audit td .tag{margin-left:6px}
.frame-tools{flex-wrap:wrap;gap:10px}
.audit{background:var(--surface);border:1px solid var(--hair-2);border-radius:12px;padding:0 16px}
.audit>summary{cursor:pointer;list-style:none;display:flex;gap:10px;align-items:baseline;padding:14px 0}
.audit>summary::-webkit-details-marker{display:none}
.audit>summary::after{content:"";margin-left:auto;width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .2s}
.audit[open]>summary::after{transform:rotate(-135deg)}
.audit h4{margin:14px 0 8px;font-size:13px}
.audit .tbl{overflow-x:auto;margin-bottom:6px}
.audit table{width:100%;border-collapse:collapse;font-size:12.5px}
.audit th{text-align:left;font-weight:700;color:var(--ink-3);padding:6px 8px;border-bottom:1px solid var(--hair-2)}
.audit td{padding:7px 8px;border-bottom:1px solid var(--hair-2);vertical-align:top}
.audit td ul{margin:0;padding-left:16px}
.audit .kv{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;font-size:12.5px;margin:0 0 8px}
.audit .kv dt{font-weight:700}
.audit .kv dd{margin:0}
.audit[open]{padding-bottom:12px}
/* users: pending sign-ups + row actions */
.pending-card{margin-bottom:18px}
.list td.acts{text-align:right;white-space:nowrap}
.list td.acts .btn+.btn{margin-left:6px}
.list tr.off td{opacity:.55}
/* home: single intake row, game cards with their latest round */
.desk{grid-template-columns:1fr}
.game .latest{color:var(--ink-2);font-weight:600}
.game .pbar{margin:4px 0 2px}
.dot-live{display:inline-block;width:8px;height:8px;margin-left:4px;border-radius:50%;background:var(--marker);vertical-align:2px;animation:live 1.6s ease-in-out infinite}
@keyframes live{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.dot-live{animation:none}}
.rounds{margin-bottom:34px}
.tag-new{display:inline-flex;height:20px;padding:0 8px;margin-left:6px;border-radius:999px;align-items:center;font:700 11px/1 var(--font);background:var(--marker-soft);color:var(--marker-ink);vertical-align:2px}
.prio-btn.is-static{cursor:default;padding-right:12px}
.auth .u062{height:418px}                      /* the app name sits above the card, so no logo inside */
.auth .u062-login h3{margin-top:0}
.crit-t td:first-child{width:190px}
.crit-t td.st{width:100px;white-space:nowrap}
.v-ok{color:var(--ok);font-weight:700}
.v-bad{color:var(--marker-ink);font-weight:700}
.temp-pw{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:var(--surface-2)}
.temp-pw code{flex:1;font:700 18px/1.2 ui-monospace,Menlo,monospace;letter-spacing:.04em;user-select:all}
.rail-foot .icon-btn{flex:none}
/* account */
img.avatar{object-fit:cover}
.avatar.xl{width:88px;height:88px;font-size:32px}
.av-edit{display:flex;gap:20px;align-items:center}
.av-id{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.av-id>b{font:700 17px/1.2 var(--display)}
.av-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.av-hint{margin:14px 0 18px}
.me-link{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:4px 6px;margin:-4px -6px;border-radius:12px;text-decoration:none;color:inherit;transition:background-color .2s}
.me-link:hover,.me-link[aria-current="page"]{background:var(--surface-2)}
.me-link .who{min-width:0}
.me-link .who b,.me-link .who small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.role.owner{background:none;box-shadow:inset 0 0 0 1px var(--hair-2);color:var(--ink-2)}
.role.locked{gap:5px;background:var(--surface-3);color:var(--ink-3)}
.role.locked .i{width:13px;height:13px}
/* users table: one line per fact, actions behind a ⋯ menu */
.roles{display:inline-flex;flex-wrap:wrap;gap:6px}
.users-t td:first-child{width:56%}
.who-t{display:flex;flex-direction:column;min-width:0}
.who-t .mail{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.me-tag{margin-left:4px;padding:1px 7px;border-radius:999px;background:var(--surface-3);font-size:11px;font-weight:700;color:var(--ink-3);vertical-align:1px}
.users-t td.acts{width:1%}
.row-menu{position:relative;display:inline-block}
.row-menu [data-menu][aria-expanded="true"],.row-menu [data-menu]:hover{background:var(--surface-2);color:var(--ink)}
.menu-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:208px;padding:6px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--hair-2),0 24px 44px -20px rgba(16,24,40,.35);text-align:left}
.menu-pop.up{top:auto;bottom:calc(100% + 6px)}
.menu-pop button{display:flex;align-items:center;gap:10px;width:100%;height:38px;padding:0 10px;border:0;border-radius:9px;background:none;font:600 13.5px/1 var(--font);color:var(--ink);cursor:pointer}
.menu-pop button .i{width:17px;height:17px;color:var(--ink-3)}
.menu-pop button:hover,.menu-pop button:focus-visible{background:var(--surface-2);outline:0}
.menu-pop button.danger,.menu-pop button.danger .i{color:var(--marker-ink)}
.menu-pop button.danger:hover,.menu-pop button.danger:focus-visible{background:var(--marker-soft)}
.menu-pop hr{margin:6px 4px;border:0;border-top:1px solid var(--hair)}
.btn.danger{color:var(--marker-ink)}
.btn.primary.danger{background:var(--marker);color:#fff}
.btn.primary.danger:disabled{opacity:.45;cursor:not-allowed}
/* role chips never break inside */
.role{white-space:nowrap}
@media (max-width:640px){
  .audit>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
  .audit>summary b{white-space:nowrap}
  .audit>summary .muted{grid-row:2}
  .audit>summary::after{grid-row:1;grid-column:2;align-self:center}
  .composer-h .muted{display:none}
}

/* game profile read from the GDD */
.game-sum{max-width:72ch;margin:-8px 0 26px;color:var(--ink-2)}
.prof{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px 16px;margin:4px 0 0}
.prof dt{font-size:12.5px;font-weight:700;color:var(--ink-3);padding-top:2px}
.prof dd{margin:0;font-size:14px;line-height:1.5}
.prof .chips{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.prof .chips li{padding:3px 10px;border-radius:999px;background:var(--surface-3);font-size:12.5px;font-weight:600;color:var(--ink-2)}
.prof .chips li.t-special{background:var(--marker-soft);color:var(--marker-ink)}
.prof .chips li.t-high{background:#FFF2CC;color:#7F6000}
.prof .plain{margin:8px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.prof details.more>summary{cursor:pointer;color:var(--ink-2);list-style:none}
.prof details.more>summary::-webkit-details-marker{display:none}
.prof details.more>summary::after{content:" · xem";color:var(--marker-ink);font-weight:600}
.prof details.more[open]>summary::after{content:" · thu gọn"}
.prof details.more p{margin:8px 0 0}
.notice.reading{display:flex;align-items:center;gap:10px;background:var(--surface-2);color:var(--ink-2)}
.notice.reading .spin{width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.notice.reading .spin{animation:none}}
@media (max-width:640px){.prof{grid-template-columns:1fr;gap:4px}.prof dd{margin-bottom:10px}}

/* game picker: GDD themes are full sentences, so name and theme stay on one line each */
.u031-v b,.u031-v small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.u031-flag{width:auto;min-width:36px;padding:0 5px}
.u031-o .u031-flag{width:auto;min-width:36px;padding:0 4px}
.u031-o>span:nth-child(2){flex:none;white-space:nowrap}
.u031-o small{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* "Thêm game": GDD and moodboard cards side by side at the same height, drop zones level */
.split.equal{align-items:stretch}
.split.equal>.card{display:flex;flex-direction:column}
.split.equal .sub{min-height:3em}
.split.equal .u032-zone{height:190px!important}
.split.equal .card-foot{margin-top:auto;padding-top:16px}

/* game / review management tables */
.list-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:2px 0 14px}
.list-tools .u031.is-field{width:min(320px,100%)}
.list-tools .u039.is-seg{width:auto;max-width:100%}
.list-tools .u039-tabs{flex-wrap:nowrap}
@media (max-width:640px){.list-tools .u039.is-seg{width:100%}.list-tools .u039-tab{padding:0 6px;font-size:13px}}
.list-tools input[type=search]{max-width:360px;height:42px}
.mgmt a{color:inherit;text-decoration:none}
.mgmt a.who-cell:hover b,.mgmt td a:hover{text-decoration:underline}
.mgmt .gid{display:inline-grid;place-items:center;min-width:46px;height:26px;padding:0 6px;border-radius:8px;background:var(--ink);color:var(--surface);font:700 12px var(--font)}
.mgmt .one{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mgmt .thumb{width:72px;height:44px;flex:none;border-radius:8px;background:var(--surface-3) center/cover}
.mgmt .latest{display:flex;flex-direction:column;gap:4px;max-width:220px}
.mgmt .latest .pbar{width:160px}
.mgmt td .pbar{max-width:180px;margin-top:5px}
.mgmt .ok-t{color:var(--ok);font-weight:700}
.mgmt tr[hidden]{display:none}
.menu-pop a{display:flex;align-items:center;gap:10px;height:38px;padding:0 10px;border-radius:9px;font:600 13.5px/1 var(--font);color:var(--ink);text-decoration:none}
.menu-pop a .i{width:17px;height:17px;color:var(--ink-3)}
.menu-pop a:hover,.menu-pop a:focus-visible{background:var(--surface-2);outline:0}
.btn.danger-solid{background:var(--marker);color:#fff}
.btn.danger-solid:disabled{opacity:.45}
@media (max-width:640px){.list-tools input[type=search],.list-tools .u031.is-field{max-width:none;width:100%}.rv+.rv::before{left:16px}}

.badge-n{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:var(--marker-soft);color:var(--marker-ink);font:700 12.5px var(--font)}
.crit-t tr.bad td:first-child b{color:var(--marker-ink)}

.run-acts{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 22px}

.steps li small{display:block;min-height:1.3em}

/* ---------------------------------------------------------------- generate threads
   Thread list on the left, the conversation on the right. Results sit on the same dark mat as screens under review. */
.gen{display:grid;grid-template-columns:236px minmax(0,1fr);gap:22px;align-items:start}
.gen-side{position:sticky;top:18px;display:flex;flex-direction:column;gap:6px;max-height:calc(100vh - 36px);padding:8px;border-radius:var(--r-l);background:var(--surface);box-shadow:var(--shadow);overflow:auto;overscroll-behavior:contain}
.gen-new{display:flex;align-items:center;gap:9px;height:38px;padding:0 10px;border-radius:10px;font-weight:600;font-size:13.5px;text-decoration:none;color:var(--ink);transition:background-color .2s}
.gen-new:hover{background:var(--surface-2)}
.gen-new[aria-current="page"]{background:var(--marker-soft);color:var(--marker-ink)}
.gen-new .i{width:17px;height:17px}
.gen-filter{margin:2px 0 4px}
.gen-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:1px}
.gen-list a{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center;padding:6px 8px 6px 6px;border-radius:10px;text-decoration:none;transition:background-color .2s}
.gen-list a:hover{background:var(--surface-2)}
.gen-list a[aria-current="page"]{background:var(--marker-soft)}
.gen-list a[aria-current="page"] b{color:var(--marker-ink)}
.gen-thumb{position:relative;width:34px;height:34px;border-radius:8px;background:var(--mat) center/cover no-repeat}
.gen-thumb .dot-live{position:absolute;top:-2px;right:-2px;margin:0;box-shadow:0 0 0 2px var(--surface)}
.gen-li{min-width:0;line-height:1.25}
.gen-li b{display:block;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gen-li small{display:flex;gap:8px;margin-top:2px;font-size:11.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden}
.gen-none{padding:4px 10px 6px}
.gen-chat{display:flex;flex-direction:column;min-height:calc(100vh - 210px);min-width:0}
.gen-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.gen-title{min-width:0}
.gen-title h2{overflow-wrap:anywhere}
.gen-title .metas{margin-top:6px}
.gen-log{flex:1;display:flex;flex-direction:column;gap:24px;padding-bottom:12px}
.gen-hello{display:flex;flex-direction:column;align-items:center;gap:10px;margin:6vh auto 0;max-width:560px;text-align:center}
.gen-mark img{width:44px;height:44px;border-radius:14px}
.gen-hello h3{font-size:22px}
.gen-hello p{color:var(--ink-2)}
.gen-starters{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:8px}
.chip{display:inline-flex;align-items:center;height:34px;padding:0 14px;border:0;border-radius:999px;background:var(--surface);box-shadow:var(--shadow);font:600 13.5px/1 var(--font);color:var(--ink-2);cursor:pointer;transition:background-color .2s,color .2s,transform .3s var(--spring)}
.chip:hover{background:var(--surface-2);color:var(--ink)}
.chip:active{transform:scale(.96)}
.msg.me{align-self:flex-end;max-width:min(560px,82%)}
.msg.me .bub{padding:12px 16px;border-radius:18px 18px 6px 18px;background:var(--surface-3)}
.msg.me .tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.msg.me .tag{font-size:11.5px;font-weight:700;padding:2px 9px;border-radius:999px;background:var(--surface);color:var(--ink-2)}
.msg.me .tag.base{background:var(--marker-soft);color:var(--marker-ink)}
.msg.me p{white-space:pre-wrap;overflow-wrap:anywhere}
.msg.me .att{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.msg.me .att img{width:84px;height:64px;object-fit:cover;border-radius:10px;background:var(--mat)}
.msg.ai{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start}
.msg.ai .ava{width:34px;height:34px;border-radius:10px}
.msg.ai .body{min-width:0}
.gen-img{display:block;padding:0;border:0;background:none;cursor:zoom-in;border-radius:10px}
.gen-shot{display:inline-block;max-width:min(820px,100%);margin:0;padding:12px;border-radius:var(--r-xl);background:var(--mat);box-shadow:0 20px 44px -30px rgba(16,24,40,.6)}
.gen-shot img{max-width:100%;max-height:68vh;width:auto;border-radius:10px}
.gen-shot figcaption{display:flex;align-items:baseline;gap:10px;padding:10px 2px 0;font-size:13px;color:#B8BBC1}
.gen-shot figcaption b{font:700 14px/1 var(--display);color:#fff}
.gen-reply{margin-top:10px;max-width:72ch;color:var(--ink-2)}
.gen-acts{display:flex;flex-wrap:wrap;gap:2px;margin:6px 0 0 -10px}
.gen-acts .icon-btn{width:auto;gap:7px;padding:0 10px;font:600 12.5px/1 var(--font);text-decoration:none}
.gen-acts .icon-btn .i{width:16px;height:16px}
.gen-acts .icon-btn[aria-expanded="true"]{background:var(--surface-2);color:var(--ink)}
.gen-prompt{margin-top:6px;max-width:80ch;padding:12px 14px;border-radius:12px;background:var(--surface);box-shadow:var(--shadow);font-size:13px;line-height:1.55;color:var(--ink-2)}
.gen-wait{position:relative;display:grid;place-content:center;justify-items:center;gap:8px;width:min(560px,100%);aspect-ratio:3/2;border-radius:var(--r-xl);overflow:hidden;
  background:linear-gradient(100deg,var(--mat) 30%,var(--mat-2) 50%,var(--mat) 70%) 0 0/300% 100%;color:#B8BBC1;animation:gen-sheen 2.2s linear infinite}
.gen-wait b{color:#fff;font-weight:600}
.gen-wait small{font:700 15px/1 var(--display);letter-spacing:-.01em}
.gen-wait .spin{width:26px;height:26px;border-radius:50%;border:2.5px solid rgba(255,255,255,.25);border-top-color:#fff;animation:spin .9s linear infinite}
@keyframes gen-sheen{to{background-position:-300% 0}}
.gen-err{display:inline-block;max-width:72ch;padding:12px 14px;border-radius:12px;background:var(--marker-soft);color:var(--marker-ink);font-size:14px}
.gen-comp{position:sticky;bottom:0;z-index:4;padding:18px 0 16px;background:linear-gradient(rgba(238,240,243,0),var(--page) 26px)}
.gen-comp .u028-box{transition:box-shadow .25s var(--ease)}
.gen-comp.is-over .u028-box{box-shadow:0 0 0 2px var(--marker),0 0 0 6px var(--marker-soft)}
.gen-comp .u028-ta{max-height:168px}
.gen-comp .u028-foot{gap:8px}
.gen-comp .u028-send{margin-left:auto;cursor:pointer}
.gen-target{width:270px;max-width:100%}
.gen-target .u031-btn{height:40px;gap:10px;padding:0 10px;border-radius:12px}
.gen-target .u031-btn .u031-flag{width:24px;height:24px;border-radius:7px;font-size:9.5px}
.gen-target .u031-btn .u031-v b{font-size:13.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gen-target .u031-btn .u031-v small{display:none}
.gen-target .u031.is-field .u031-list{top:auto;bottom:calc(100% + 8px);max-height:min(430px,60vh);transform-origin:50% 100%}
.gen-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.gen-chip{display:inline-flex;align-items:center}
.gen-chip.base{height:30px;padding:0 2px 0 12px;border-radius:999px;background:var(--marker-soft);color:var(--marker-ink);font-size:13px;font-weight:600}
.gen-chip.base .icon-btn{width:26px;height:26px;color:inherit}
.gen-chip.file{position:relative;width:56px;height:56px;border-radius:10px;overflow:hidden;background:var(--mat)}
.gen-chip.file img{width:100%;height:100%;object-fit:cover}
.gen-chip.file .icon-btn{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;background:rgba(22,25,31,.65);color:#fff}
.gen-chip .icon-btn .i{width:14px;height:14px}
.gen-hint{margin:8px 6px 0}
.gen-ro{padding:18px 0}
@media (prefers-reduced-motion:reduce){.gen-wait,.gen-wait .spin{animation:none}}
@media (max-width:900px){.gen{grid-template-columns:1fr}.gen-side{position:relative;top:0;max-height:300px}.gen-chat{min-height:0}}
@media (max-width:640px){.msg.me{max-width:92%}.gen-target{width:auto;flex:1;min-width:0}.gen-hint{display:none}}
.head-acts{display:flex;gap:10px;flex-wrap:wrap}
.gen-log>*{scroll-margin-bottom:190px}
.gen-target .u031.is-field .u031-list{right:auto;width:min(380px,calc(100vw - 32px));overflow-x:hidden}
.gen-target .u031-o>span:not(.u031-flag){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.gen-target .u031-o small{flex:none}
/* browser autofill must not paint its own fill over our fields (it broke the sign-in box): keep the field's own background */
input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-text-fill-color:var(--ink);caret-color:var(--ink);transition:background-color 600000s 0s,color 600000s 0s}
input:autofill{background:transparent}
.gen-home{margin-bottom:40px}
.gen-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin:0;padding:0;list-style:none}
.gen-card{display:flex;flex-direction:column;gap:3px;height:100%;padding:10px 10px 14px;border-radius:var(--r-l);background:var(--surface);box-shadow:var(--shadow);text-decoration:none;transition:box-shadow .25s,transform .3s var(--spring)}
.gen-card:hover{box-shadow:var(--shadow-lift);transform:translateY(-2px)}
.gen-cover{position:relative;aspect-ratio:16/10;margin-bottom:8px;border-radius:10px;background:var(--mat) center/cover no-repeat}
.gen-cover .pill{position:absolute;left:8px;top:8px}
.gen-card b{padding:0 4px;font-weight:700;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gen-game{display:flex;align-items:center;gap:7px;padding:0 4px;font-size:13px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gen-game code{font:700 11.5px/1 var(--display);color:var(--ink-3);font-variant-numeric:tabular-nums}
.gen-card .metas{padding:0 4px;font-size:12px;color:var(--ink-3);gap:0 10px}
.u031-list{overscroll-behavior:contain}   /* wheel / touch scrolling in an open list never scrolls the page behind it */
/* region picker: drag a box on a result, only that region is edited */
.region-dlg{width:min(1180px,94vw);max-width:none}
.region-dlg .dlg-h p{margin-top:6px;max-width:72ch}
.region-wrap{display:flex;justify-content:center;margin:14px 22px 0;padding:12px;border-radius:var(--r-l);background:var(--mat)}
.region-stage{position:relative;line-height:0;overflow:hidden;border-radius:8px;cursor:crosshair;touch-action:none;user-select:none;-webkit-user-select:none}
.region-stage img{max-width:100%;max-height:min(64vh,880px);width:auto;pointer-events:none}
.region-sel{position:absolute;border:2px solid #FF6B5E;border-radius:4px;box-shadow:0 0 0 9999px rgba(12,13,15,.5);pointer-events:none}
.region-dlg .dlg-f .spacer{flex:1}
.region-mini{position:relative;display:inline-block;flex:none;line-height:0;border-radius:8px;overflow:hidden;background:var(--mat)}
.region-mini img{width:96px;height:auto}
.region-mini i{position:absolute;border:2px solid #FF6B5E;border-radius:3px;box-shadow:0 0 0 999px rgba(12,13,15,.42)}
.msg.me .region-mini{margin-top:10px}
.gen-chip.base.has-box{height:auto;gap:10px;padding:4px 2px 4px 4px;border-radius:12px}
.gen-chip.base.has-box .region-mini img{width:64px}
/* results stay small in the conversation; the zoom viewer shows them big */
.gen-shot{max-width:min(480px,100%);padding:10px}
.gen-shot img{max-height:340px;cursor:zoom-in}
.zoom-dlg{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden}
.zoom-dlg[open]{animation:zoom-in .25s var(--ease)}
@keyframes zoom-in{from{opacity:0}}
.zoom-dlg::backdrop{background:rgba(52,56,64,.5);backdrop-filter:blur(14px) saturate(.8);-webkit-backdrop-filter:blur(14px) saturate(.8)}
.zoom-box{position:absolute;inset:0;display:flex;padding:68px 28px 96px;overflow:auto;overscroll-behavior:contain;touch-action:none;scrollbar-width:none}
.zoom-box::-webkit-scrollbar{display:none}
.zoom-box img{flex:none;margin:auto;max-width:none;border-radius:6px;box-shadow:0 30px 70px -24px rgba(12,13,15,.55),0 0 0 1px rgba(255,255,255,.12);user-select:none;-webkit-user-select:none}
.zoom-box.pan{cursor:grab}
.zoom-box.pan.dragging{cursor:grabbing}
.zoom-t,.zoom-x,.zoom-tools{position:absolute;z-index:2;background:rgba(255,255,255,.9);box-shadow:0 10px 30px -12px rgba(16,24,40,.35),0 0 0 1px var(--hair);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.zoom-t{top:16px;left:18px;max-width:calc(100% - 100px);padding:8px 14px;border-radius:999px;font:700 14px/1.2 var(--display);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zoom-x{top:14px;right:16px;width:40px;height:40px;border:0;border-radius:50%;display:grid;place-items:center;color:var(--ink-2);cursor:pointer;transition:background-color .2s,color .2s}
.zoom-x:hover{background:#fff;color:var(--ink)}
.zoom-tools{left:50%;bottom:22px;transform:translateX(-50%);display:flex;align-items:center;gap:2px;padding:5px;border-radius:16px}
.zoom-btn{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:11px;background:none;color:var(--ink-2);cursor:pointer;text-decoration:none;transition:background-color .2s,color .2s}
.zoom-btn:hover,.zoom-chip:hover{background:var(--surface-3);color:var(--ink)}
.zoom-pct{min-width:50px;text-align:center;font:700 13px/1 var(--display);color:var(--ink)}
.zoom-sep{width:1px;height:20px;margin:0 4px;background:var(--hair-2)}
.zoom-chip{height:36px;padding:0 12px;border:0;border-radius:11px;background:none;color:var(--ink-2);font:600 13px/1 var(--font);cursor:pointer;white-space:nowrap;transition:background-color .2s,color .2s}
.zoom-chip[aria-pressed="true"]{background:var(--ink);color:#fff}
@media (max-width:640px){.zoom-box{padding:64px 12px 92px}.zoom-chip{padding:0 9px}.zoom-sep{margin:0 2px}}
@media (prefers-reduced-motion:reduce){.zoom-dlg[open]{animation:none}}
.zoom-dlg:focus{outline:none}
/* role picker (sign-up) and role chips */
.role-pick{border:0;margin:0 0 18px;padding:0;min-width:0}
.role-pick legend{padding:0;margin-bottom:7px}
.role-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.role-opt{position:relative;display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--hair);cursor:pointer;transition:box-shadow .2s,background-color .2s}
.role-opt:hover{box-shadow:inset 0 0 0 1px var(--hair-2)}
.role-opt input{position:absolute;opacity:0;pointer-events:none}
.role-opt b{font-size:14.5px;font-weight:700}
.role-opt small{font-size:12px;color:var(--ink-3);line-height:1.35}
.role-opt:has(input:checked){background:var(--marker-soft);box-shadow:inset 0 0 0 2px var(--marker)}
.role-opt:has(input:checked) b{color:var(--marker-ink)}
.role-opt:has(input:focus-visible){outline:2px solid var(--marker);outline-offset:2px}
.role.art{background:rgba(31,138,83,.1);color:var(--ok)}
.role.fe,.role.gd,.role.other{background:var(--surface-3);color:var(--ink-2)}
.u062-av.initial{display:grid;place-items:center;background:var(--surface-3);color:var(--ink-2);font:800 36px/1 var(--display)}
/* iOS zooms into any field under 16px when it gets focus, and the zoomed page then slides left and right */
@media (pointer:coarse){input,textarea,.u028-ta,.u062-box input{font-size:16px!important}}
.auth{overflow-x:clip}
/* sign in with Google (the default way in) */
.auth-msg{width:min(380px,100%);margin:0}
.g-card{width:min(380px,100%);display:flex;flex-direction:column;gap:12px;padding:28px 26px 22px;border-radius:30px;background:var(--surface);box-shadow:0 0 0 1px var(--hair),0 30px 60px -36px rgba(16,24,40,.24)}
.g-card h3{font-size:24px;font-weight:850;letter-spacing:-.045em}
.g-card p{margin:-6px 0 6px;font-size:13.5px;color:var(--ink-3)}
.g-btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:54px;border-radius:17px;background:#fff;color:#1F1F1F;
  box-shadow:inset 0 0 0 1.5px var(--hair-2);font:650 15.5px/1 var(--font);text-decoration:none;transition:box-shadow .2s,background-color .2s,transform .3s var(--spring)}
.g-btn:hover{background:#F8F9FA;box-shadow:inset 0 0 0 1.5px var(--ink-4)}
.g-btn:active{transform:scale(.98)}
.g-logo{width:20px;height:20px;flex:none}
.g-alt{align-self:center;height:36px;padding:0 12px;border:0;border-radius:10px;background:none;color:var(--ink-2);font:600 13.5px/1 var(--font);cursor:pointer}
.g-alt:hover,.g-alt[aria-expanded="true"]{background:var(--surface-2);color:var(--ink)}
.pw-login{display:flex;flex-direction:column;align-items:center;gap:16px}
.g-or{display:flex;align-items:center;gap:12px;margin:16px 0;font-size:12.5px;color:var(--ink-3)}
.g-or::before,.g-or::after{content:"";flex:1;height:1px;background:var(--hair-2)}
.g-signup,.g-link{width:min(420px,100%)}
.g-signup h2{margin-bottom:14px}
.g-who{display:flex;align-items:center;gap:12px;margin-bottom:18px;padding:10px 12px;border-radius:14px;background:var(--surface-2)}
.g-who img,.g-who .avatar{width:44px;height:44px;border-radius:50%;flex:none}
.g-who b{display:block;font-weight:700}
.g-who small{display:block;font-size:12.5px;color:var(--ink-3)}
.g-link summary{cursor:pointer;font-weight:650;font-size:14px;list-style:none}
.g-link summary::-webkit-details-marker{display:none}
.g-link[open] summary{margin-bottom:12px}
/* ---------------------------------------------------------------- phone layout */
.rail-menu,.gen-side-toggle{display:none}
.gen-side-top{display:flex;align-items:center;gap:6px}
.gen-side-top .gen-new{flex:1}
@media (max-width:820px){
  .rail{position:sticky;top:0;z-index:30;flex-wrap:nowrap;gap:6px;padding:10px 12px 10px 14px;box-shadow:0 1px 0 var(--hair)}
  .brand{padding:0;gap:9px}
  .brand img{width:30px;height:30px}
  .brand small{display:none}
  .rail-foot{order:2}
  .rail-menu{display:inline-flex;order:3;width:40px;height:40px;color:var(--ink)}
  .rail .nav{display:none}
  .rail.open .nav{display:flex;position:absolute;left:0;right:0;top:100%;flex-direction:column;gap:2px;padding:8px 12px 14px;background:var(--surface);
    box-shadow:0 1px 0 var(--hair),0 24px 40px -24px rgba(16,24,40,.35)}
  .rail.open .nav a{height:46px;font-size:15px}
  .rail.open .nav-h,.rail.open .rail-games{display:none}
  main{padding:18px 16px 56px}
  .head{margin-bottom:18px}
  .gen-side{padding:6px}
  .gen-side-toggle{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 10px 0 12px;border:0;border-radius:10px;background:var(--surface-2);font:600 13px/1 var(--font);color:var(--ink-2);cursor:pointer}
  .gen-side-toggle .i{width:16px;height:16px;transition:transform .3s var(--spring)}
  .gen-side-toggle[aria-expanded="true"] .i{transform:rotate(180deg)}
  .gen-side:not(.open) .gen-list,.gen-side:not(.open) .gen-filter,.gen-side:not(.open) .gen-none{display:none}
  .gen-chat .gen-top{margin-bottom:12px}
}
@media (max-width:640px){
  .head .lede{font-size:14px}
  body:has(.gen) .head .lede{display:none}
  .msg.ai{grid-template-columns:minmax(0,1fr)}
  .msg.ai .ava{display:none}
  .gen-acts{margin-left:-10px}
  .gen-shot{max-width:100%}
  .gen-comp{padding-bottom:10px}
}
@media (prefers-reduced-motion:reduce){.gen-side-toggle .i{transition:none}}
/* sign-ups waiting for an admin */
.nav-badge{margin-left:auto;min-width:22px;height:22px;padding:0 7px;border-radius:999px;display:inline-grid;place-items:center;background:var(--marker);color:#fff;font:800 12px/1 var(--display);font-variant-numeric:tabular-nums;box-shadow:0 0 0 3px var(--marker-soft)}
.rail-menu{position:relative}
.menu-dot{position:absolute;top:7px;right:7px;width:9px;height:9px;border-radius:50%;background:var(--marker);box-shadow:0 0 0 2px var(--surface)}
.pending-alert{display:flex;align-items:center;gap:14px;margin-bottom:20px;padding:14px 16px;border-radius:var(--r-l);background:var(--marker-soft);color:var(--marker-ink);text-decoration:none;box-shadow:inset 0 0 0 1px rgba(217,54,44,.22);transition:background-color .2s}
.pending-alert:hover{background:rgba(217,54,44,.14)}
.pending-alert>span:nth-child(2){flex:1;min-width:0}
.pending-alert b{display:block;font-weight:700}
.pending-alert small{display:block;font-size:13px;color:var(--ink-2)}
.pending-n{width:36px;height:36px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--marker);color:#fff;font:800 15px/1 var(--display);animation:pending-pulse 2s var(--ease) infinite}
@keyframes pending-pulse{0%,100%{box-shadow:0 0 0 0 rgba(217,54,44,.35)}50%{box-shadow:0 0 0 7px rgba(217,54,44,0)}}
@media (prefers-reduced-motion:reduce){.pending-n{animation:none}}
@media (max-width:480px){.pending-alert .btn{display:none}}
.g-linked{display:inline-flex;align-self:flex-start;margin-top:3px;height:20px;padding:0 8px;border-radius:999px;align-items:center;font-size:11.5px;font-weight:700;background:rgba(66,133,244,.1);color:#2B5FC0}
/* Generate request blocked as off-topic (Jev) */
.gen-blocked{display:flex;flex-direction:column;gap:2px;margin-bottom:10px;padding:12px 14px;border-radius:14px;background:var(--marker-soft);color:var(--marker-ink);box-shadow:inset 0 0 0 1.5px rgba(217,54,44,.35);font-size:13.5px;line-height:1.45}
.gen-blocked span{font-weight:650}
.gen-comp.is-blocked .u028-box{box-shadow:0 0 0 2px var(--marker),0 0 0 6px var(--marker-soft)}
.role.penalty{background:var(--marker);color:#fff}
.role.strikes{background:var(--marker-soft);color:var(--marker-ink)}

/* Jev quality notes on a Generate result */
.qa-chip{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:rgba(255,255,255,.12);color:#E4E6EA;font:600 11.5px/1 var(--font)}
.qa-chip.bad{background:#FFD84D;color:#1A1C21}
.shot-row .ai-hint{display:block;margin-top:4px;font-size:12px;color:var(--ink-3)}

/* a result with several variants: the chosen one big, all of them as thumbs on the right (like ChatGPT) */
.gen-shot.multi{display:inline-grid;grid-template-columns:minmax(0,1fr) 76px;gap:10px;align-items:start}
.gen-shot.multi>.gen-img{grid-column:1}
.gen-shot.multi>figcaption{grid-column:1 / -1}
.gen-vars{display:flex;flex-direction:column;gap:8px}
.gen-var{position:relative;display:block;width:76px;height:76px;padding:0;border:0;border-radius:12px;overflow:hidden;background:var(--mat-2);cursor:pointer;
  box-shadow:0 0 0 1px rgba(255,255,255,.12);transition:box-shadow .2s,transform .3s var(--spring)}
.gen-var img{width:100%;height:100%;object-fit:cover}
.gen-var:hover{box-shadow:0 0 0 2px rgba(255,255,255,.4)}
.gen-var[aria-pressed="true"]{box-shadow:0 0 0 3px #4C8DFF}
.gen-var:active{transform:scale(.96)}
.gen-var.pending{display:grid;place-items:center;cursor:default;background:linear-gradient(100deg,var(--mat) 30%,var(--mat-2) 50%,var(--mat) 70%) 0 0/300% 100%;animation:gen-sheen 2.2s linear infinite}
.gen-var.pending .spin{width:20px;height:20px;border-radius:50%;border:2.5px solid rgba(255,255,255,.25);border-top-color:#fff;animation:spin .9s linear infinite}
.gen-var-tag{position:absolute;left:4px;right:4px;bottom:4px;padding:2px 0;border-radius:6px;background:rgba(31,138,83,.92);color:#fff;font:700 10px/1.2 var(--font);text-align:center}
.u028-send.is-stop{display:inline-flex;align-items:center;gap:8px;background:var(--marker);color:#fff;cursor:pointer}
.stop-sq{width:10px;height:10px;border-radius:2px;background:#fff}
@media (max-width:640px){.gen-shot.multi{grid-template-columns:minmax(0,1fr) 56px}.gen-var{width:56px;height:56px}}
@media (prefers-reduced-motion:reduce){.gen-var.pending,.gen-var.pending .spin{animation:none}}
/* Generate is a chat: results sit on the page like in ChatGPT, no dark mat around them (the review wall keeps its mat) */
.gen-shot,.gen-shot.multi{padding:0;border-radius:0;background:none;box-shadow:none}
.gen-shot img{border-radius:14px;box-shadow:0 1px 2px rgba(16,24,40,.08),0 12px 32px -18px rgba(16,24,40,.35),0 0 0 1px var(--hair)}
.gen-shot figcaption{padding:10px 2px 0;color:var(--ink-3)}
.gen-shot figcaption b{color:var(--ink)}
.qa-chip{background:var(--surface-3);color:var(--ink-2)}
.gen-var{background:var(--surface-2);box-shadow:0 0 0 1px var(--hair-2)}
.gen-var:hover{box-shadow:0 0 0 2px var(--ink-4)}
.gen-var img{border-radius:0;box-shadow:none}
.gen-var.pending{background:linear-gradient(100deg,var(--surface-2) 30%,var(--surface-3) 50%,var(--surface-2) 70%) 0 0/300% 100%}
.gen-var.pending .spin{border-color:var(--hair-2);border-top-color:var(--ink-2)}
.gen-wait{background:linear-gradient(100deg,var(--surface-2) 30%,var(--surface-3) 50%,var(--surface-2) 70%) 0 0/300% 100%;color:var(--ink-3);box-shadow:0 0 0 1px var(--hair)}
.gen-wait b{color:var(--ink)}
.gen-wait .spin{border-color:var(--hair-2);border-top-color:var(--ink-2)}
.msg.me .att img,.gen-thumb{background-color:var(--surface-3)}
/* the Generate chat sits on white, like ChatGPT; the rest of the app keeps its light grey desk */
body:has(.gen){background:#fff}
body:has(.gen) .gen-comp{background:linear-gradient(rgba(255,255,255,0),#fff 26px)}
body:has(.gen) .gen-side{box-shadow:0 0 0 1px var(--hair-2)}
/* wide screens: the content column is capped at 1480 px; centre it in the space beside the rail instead of hugging the rail */
main{width:100%;margin-inline:auto}

/* ================================================================ app shell, after the 2026-10 layout review
   (NN/g vertical nav, Linear 2026 refresh, Material window classes, Wix dashboard widths):
   the rail is quieter than the work area, folds to an icon strip, and each page type gets its own width. */
.rail{background:#F6F7F9;gap:18px}
.rail-top{display:flex;align-items:center;gap:6px}
.rail-top .brand{flex:1;min-width:0}
.rail-collapse{flex:none;color:var(--ink-4)}
.rail .nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.nav-main{display:flex;flex-direction:column;gap:2px}
.nav a{color:var(--ink-3)}
.nav a:hover{background:rgba(22,25,31,.05);color:var(--ink)}
.nav a[aria-current="page"]{background:rgba(22,25,31,.07);color:var(--ink);font-weight:700}
.nav a.rail-cta{margin:0 0 12px;background:var(--marker);color:#fff;font-weight:700;box-shadow:0 8px 20px -12px rgba(217,54,44,.75)}
.nav a.rail-cta:hover,.nav a.rail-cta[aria-current="page"]{background:var(--marker-hi);color:#fff}
.rail .rail-games a{color:var(--ink-3)}
.rail .rail-games a[aria-current="page"]{background:rgba(22,25,31,.07);color:var(--ink)}
.nav .lbl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Generate: the thread list lives in the rail (one sidebar, like ChatGPT) */
.rail-gen{display:flex;flex-direction:column;gap:3px;margin-top:16px}
.rail-game{display:flex;align-items:center;gap:8px;height:34px;padding:0 10px;border-radius:var(--r-s);text-decoration:none;font-size:13px;font-weight:600;color:var(--ink-2)}
.rail-game:hover{background:rgba(22,25,31,.05)}
.rail-game code{flex:none;font:700 11.5px/1 var(--display);padding:4px 6px;border-radius:6px;background:var(--surface-3);color:var(--ink-2)}
.rail .gen-new{height:38px;color:var(--ink);font-weight:600}
.rail .gen-new:hover{background:rgba(22,25,31,.05)}
.rail .gen-new[aria-current="page"]{background:rgba(22,25,31,.07);color:var(--ink)}
.rail .gen-filter{margin:6px 0 2px}
.rail-gen .nav-h{margin:12px 10px 2px}
.rail .gen-list a[aria-current="page"]{background:rgba(22,25,31,.07)}
.rail .gen-list a[aria-current="page"] b{color:var(--ink)}
.rail .gen-thumb .dot-live{box-shadow:0 0 0 2px #F6F7F9}
.rail .gen-none{padding:4px 10px}

/* widths by page type: dashboards stay capped and centred; the review wall and the Generate chat use the room */
.layout-wide main{max-width:none}
.layout-chat main{max-width:none;padding-top:22px}
.layout-chat .gen{display:block}
.layout-chat .gen-chat{max-width:1180px;margin:0 auto;min-height:calc(100vh - 60px)}
.layout-chat .msg.ai .body>p{max-width:78ch}
.layout-chat .msg.me{max-width:min(680px,82%)}
.gen-game-link{display:inline-flex;align-items:center;gap:6px;color:var(--ink-2);text-decoration:none}
.gen-game-link code{font:700 11.5px/1 var(--display);color:var(--ink-3)}
.gen-game-link:hover{color:var(--ink)}
.layout-chat .gen-shot img{max-height:420px}

@media (min-width:821px){
  /* folded rail: an icon strip; labels come back as tooltips (title) */
  .rail-min .shell{grid-template-columns:72px minmax(0,1fr)}
  .rail-min .rail{padding:16px 10px;align-items:stretch}
  .rail-min .rail-top{flex-direction:column;gap:10px}
  .rail-min .brand{justify-content:center;padding:0}
  .rail-min .brand span,.rail-min .nav .lbl,.rail-min .nav-h,.rail-min .rail-games,.rail-min .rail-foot .who,
  .rail-min .gen-filter,.rail-min .gen-list,.rail-min .gen-none{display:none}
  .rail-min .nav a,.rail-min .rail-game{justify-content:center;padding:0;height:44px}
  .rail-min .nav a.rail-cta{margin-bottom:10px}
  .rail-min .nav-badge{position:absolute;top:3px;right:3px;min-width:18px;height:18px;padding:0 5px;font-size:10.5px;margin:0}
  .rail-min .rail-foot{flex-direction:column;gap:6px;padding:12px 0 0}
  .rail-min .rail-gen{align-items:stretch}
}
@media (max-width:820px){
  .rail-collapse{display:none}
  .rail-top{flex:1;min-width:0}
  .rail.open .nav{max-height:calc(100vh - 64px);overflow-y:auto}
  .nav a.rail-cta{margin:4px 0 8px}
  .layout-chat main{padding-top:14px}
}
.rail-top .brand small{display:none}

/* game cards: smart grid (app.js picks the column count so rows come out full; a short last row stretches to the full width).
   Every card in the grid has the same width and the same height; the counts line sits on the card's bottom edge. */
.games{grid-auto-rows:1fr}
.games[data-fit]{grid-template-columns:repeat(var(--tracks),minmax(0,1fr))}
.games[data-fit]>*{grid-column-end:span var(--span)}
.game{grid-template-rows:auto auto auto 1fr auto;align-items:start}
.game code{grid-row:1 / -1}
.game>:not(code){grid-column:2}
.game>.num{grid-row:5;margin-top:6px}
.game .desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* admin tables: cards that hold a table are size containers, so the table folds to stacked rows when the card
   (not the window) gets narrow, which with the sidebar open happens well before the phone breakpoint */
.cq{container-type:inline-size}
.users-t td:first-child{width:auto}
.users-t td.mail-cell{max-width:0;width:34%}
.mail-cell{white-space:nowrap}
.mail-cell .mail{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.mail-cell:has(.g-linked) .mail{max-width:calc(100% - 76px)}
.mail-cell .g-linked{margin:0 0 0 8px;vertical-align:middle}
.mail-cell .muted+.g-linked{margin-left:8px}
/* every row the same height, whatever it holds */
table.users-t tbody td,table.mgmt tbody td{height:72px}
.mgmt .latest-h{display:flex;align-items:baseline;gap:8px;white-space:nowrap}
.mgmt .latest .pbar{margin-top:2px}
/* tables fold to stacked rows below 700 px (management) or 560 px of card */
@container (max-width:700px){
  table.list.mgmt,table.list.mgmt tbody{display:block}
  table.list.mgmt thead{display:none}
  table.list.mgmt tbody tr{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:14px 0;border-bottom:1px solid var(--hair)}
  table.list.mgmt tbody tr:last-child{border-bottom:0}
  table.list.mgmt tbody td{display:block;height:auto;padding:0;border:0;width:auto;max-width:none}
  table.list.mgmt tbody td:first-child{flex:1 1 calc(100% - 64px);min-width:0;order:0}
  table.list.mgmt tbody td.acts{flex:none;order:1;margin-left:auto}
  table.list.mgmt tbody td:not(:first-child):not(.acts){order:2}
  table.list.mgmt tbody tr[hidden],table.list.mgmt tbody tr.pg-out{display:none}
  .mgmt td[data-l]::before{content:attr(data-l) " ";font-size:12px;color:var(--ink-4);margin-right:4px}
  .mgmt td.num[data-l]{display:flex;align-items:baseline}
  table.list.mgmt tbody td:not(:first-child):not(.acts){display:flex;align-items:center;gap:8px;max-width:100%}
  .mgmt td[data-l]::before{margin-right:0}
  table.list.mgmt .latest{flex-direction:row;align-items:center;gap:10px;max-width:none}
  table.list.mgmt .latest .pbar{width:80px;margin:0;flex:none}
  .mgmt .latest-h{flex:none}
  .mgmt .latest-h span,.mgmt .mood-w{display:none}
  table.list.mgmt tbody td:nth-child(2){padding-left:58px}
  table.list.mgmt .thumb{display:none}
  table.list.mgmt:has(.thumb) tbody td:nth-child(2){padding-left:0}
  table.list.mgmt tbody td .pbar{width:80px;flex:none;margin:0}
  table.list.mgmt tbody tr{gap:6px 18px}
  .mgmt .gdd-cell .mood-n{display:inline}
}
@container (max-width:560px){
  table.list,table.list tbody{display:block}
  table.list thead{display:none}
  table.list tbody tr{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:14px 0;border-bottom:1px solid var(--hair)}
  table.list tbody tr:last-child{border-bottom:0}
  table.list tbody td{display:block;height:auto;padding:0;border:0;width:auto;max-width:none}
  table.list tbody td:first-child{flex:1 1 calc(100% - 64px);min-width:0;order:0}
  table.list tbody td.acts{flex:none;order:1;margin-left:auto}
  table.list tbody td:not(:first-child):not(.acts){order:2}
  table.list tbody tr[hidden],table.list tbody tr.pg-out{display:none}
  table.list.users-t tbody td.mail-cell{order:2;padding-left:48px;width:auto;max-width:100%}
  .pending-card table.list tbody td:not(:first-child):not(.acts){padding-left:48px;order:2}
  .pending-card table.list tbody td:nth-child(3){padding-left:0}
  .pending-card table.list tbody td.acts{order:3;flex-basis:100%;margin-left:0;padding-left:48px;text-align:left}
  table.list.users-t tbody td.mail-cell .mail{max-width:220px}
  table.list.users-t tbody td:nth-child(3){order:3}
}
/* pager under a long table (app.js, table[data-pager]) */
tr.pg-out{display:none}
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px}
.pager[hidden]{display:none}
.pg-info{font-size:13px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.pg-btns{display:flex;align-items:center;gap:4px}
.pg-btns button{min-width:36px;height:36px;padding:0 8px;border:0;border-radius:10px;background:none;color:var(--ink-2);font:600 13.5px/1 var(--font);font-variant-numeric:tabular-nums;cursor:pointer;display:inline-grid;place-items:center}
.pg-btns button:hover:not(:disabled){background:var(--surface-2);color:var(--ink)}
.pg-btns button[aria-current="page"]{background:var(--ink);color:var(--surface)}
.pg-btns button:disabled{opacity:.35;cursor:default}
.pg-btns button svg{width:16px;height:16px}
.pg-gap{min-width:24px;text-align:center;color:var(--ink-4)}

/* management tables fit their card: the first column takes the room that is left and cuts long names with "…" */
table.mgmt{table-layout:fixed}
table.mgmt td{overflow:hidden}
table.mgmt td.acts{overflow:visible}
table.mgmt td a{min-width:0}
.mgmt td>a:not(.who-cell):not(.latest){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
table.mgmt td:first-child .who-cell{min-width:0}
table.mgmt td:first-child .who-t{min-width:0}
table.mgmt td:first-child .who-t b,table.mgmt td:first-child .one{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mgmt .latest{max-width:100%}
.mgmt .latest-h{min-width:0}
.mgmt .latest-h span{overflow:hidden;text-overflow:ellipsis}
.mgmt .latest .pbar{width:min(160px,100%)}
.mgmt .gdd-cell{white-space:nowrap}
.mgmt .gdd-cell .mood-n{display:block}

/* Generate: transparent (cut-out) pictures sit on a light checkerboard, so the missing background reads as missing */
.gen-img.alpha img,.gen-var.alpha img,#zoom-img.alpha{background:repeating-conic-gradient(#E7E9ED 0 25%,#fff 0 50%) 0 0/18px 18px}
.qa-chip.clear,.msg.me .tag.clear{background:#E7F0FF;color:#1F4FB0}
/* composer toggle "Nền trong suốt" */
.gen-clear{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 12px 0 10px;border:0;border-radius:12px;background:var(--surface-2);
  color:var(--ink-3);font:600 13px/1 var(--font);cursor:pointer;white-space:nowrap;transition:background-color .2s,color .2s}
.gen-clear:hover{color:var(--ink)}
.gen-clear-ico{width:18px;height:18px;flex:none;border-radius:5px;box-shadow:inset 0 0 0 1.5px currentColor;
  background:repeating-conic-gradient(currentColor 0 25%,transparent 0 50%) 0 0/9px 9px;opacity:.55}
.gen-clear[aria-pressed="true"]{background:var(--ink);color:#fff}
.gen-clear[aria-pressed="true"] .gen-clear-ico{opacity:1}
.gen-clear:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media (max-width:640px){.gen-clear{padding:0 10px}.gen-clear-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}}
/* Generate "Tải về" menu: two-line items (what you get, what it is for) */
.gen-dl .menu-pop{left:0;right:auto;min-width:260px}
.gen-dl .menu-pop a{height:auto;padding:9px 10px;align-items:flex-start}
.gen-dl .menu-pop a .i{margin-top:1px}
.dl-t{display:flex;flex-direction:column;gap:3px}
.dl-t b{font-weight:650}
.dl-t small{font:500 12px/1.3 var(--font);color:var(--ink-3)}

/* Generate run log ("Quy trình"): quiet rows above the result, smaller than chat text; open while it runs */
.trace{max-width:min(600px,100%);margin:0 0 10px;font-size:12.5px;line-height:1.4;color:var(--ink-3)}
.trace-h{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:28px;margin-left:-8px;padding:0 10px 0 6px;border:0;border-radius:8px;
  background:none;color:var(--ink-3);font:600 12.5px/1 var(--font);cursor:pointer}
.trace-h:hover{background:var(--surface-2);color:var(--ink-2)}
.trace-h:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.trace-chev{display:inline-grid;width:14px;height:14px;transition:transform .2s var(--ease)}
.trace-chev .i{width:14px;height:14px}
.trace.open .trace-chev{transform:rotate(90deg)}
.trace-sum{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trace.live .trace-sum{background:linear-gradient(90deg,var(--ink-3) 30%,var(--ink) 50%,var(--ink-3) 70%) 0 0/300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:trace-shine 2.4s linear infinite}
@keyframes trace-shine{from{background-position:100% 0}to{background-position:-200% 0}}
.trace-t{color:var(--ink-4);font-weight:500}
.trace-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s var(--ease)}
.trace.open .trace-body{grid-template-rows:1fr}
.trace-list{min-height:0;overflow:hidden;margin:0;padding:0;list-style:none}
.trace.open .trace-list{padding:4px 0 2px}
.trace-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:start;gap:8px;padding:3px 0}
.trace-mk{display:grid;place-items:center;width:16px;height:16px;margin-top:1px;border-radius:50%}
.trace-mk .i{width:12px;height:12px;stroke-width:2.6}
.trace-mk .spin{width:12px;height:12px;border-radius:50%;border:2px solid var(--hair-2);border-top-color:var(--ink-2);animation:spin .9s linear infinite}
.st-ok .trace-mk{background:#E6F4EC;color:var(--ok)}
.st-warn .trace-mk,.st-skip .trace-mk{background:#FFF3D6;color:#9A6A00}
.st-err .trace-mk,.st-stop .trace-mk{background:var(--marker-soft);color:var(--marker-ink)}
.trace-tx{min-width:0}
.trace-tx b{font-weight:600;color:var(--ink-2)}
.st-run .trace-tx b{color:var(--ink)}
.trace-n{margin-left:8px;color:var(--ink-3)}
.trace-d{color:var(--ink-4);font-variant-numeric:tabular-nums}
.gen-shot.redraw{display:grid;grid-template-columns:minmax(0,420px) 76px}
.gen-wait.slot{width:100%;aspect-ratio:1}
@media (max-width:640px){.gen-shot.redraw{grid-template-columns:minmax(0,1fr) 56px}}
.gen-var-tag.dim{background:rgba(22,25,31,.72)}
@media (prefers-reduced-motion:reduce){.trace.live .trace-sum{animation:none;color:var(--ink-2);background:none}.trace-mk .spin{animation:none}.trace-body{transition:none}}
@media (max-width:640px){.trace-n{display:block;margin-left:0}}

/* ================================================================ lighter palette (2026-10-19): black fills only on artwork
   mats. Selected states are a white pill on a light track or a soft tint; the one strong colour is the brand red. */
/* segmented control: light track, white pill, ink text */
.u039.is-seg .u039-tabs{background:var(--surface-2);box-shadow:none}
.u039.is-seg .u039-pill{background:var(--surface);box-shadow:0 1px 2px rgba(16,24,40,.08),0 0 0 1px var(--hair),0 6px 14px -8px rgba(16,24,40,.22)}
.u039.is-seg .u039-tab{color:var(--ink-3)}
.u039.is-seg .u039-tab[aria-selected="true"]{color:var(--ink)}
.u039.is-seg .u039-tab:hover{color:var(--ink)}
.u039.is-seg .u039-tab .ct{background:var(--surface-3);color:var(--ink-2)}
.u039.is-seg .u039-tab[aria-selected="true"] .ct{background:var(--surface-2);color:var(--ink)}
/* the focus ring sits inside the tab (an outside ring was clipped by the scrolling track and showed as a red box) */
.u039-tab:focus{outline:none}
.u039-tab:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--ink-3)}
/* full-width filters (the rail's Của tôi / Cả team): two equal halves, labels centred */
.u039.is-seg.wide{display:block;width:100%}
.u039.is-seg.wide .u039-tab{flex:1 1 0;justify-content:center;padding:0 8px}
/* select tiles (game ID, screen code): a tint of the tile colour, not a solid block */
.u031-flag{background:color-mix(in srgb,var(--c) 13%,var(--surface));color:color-mix(in srgb,var(--c) 85%,var(--ink));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 18%,transparent)}
/* send: brand red when it can send, quiet grey when it cannot */
.u028-send{background:var(--marker);color:#fff;box-shadow:0 8px 18px -12px rgba(217,54,44,.8)}
.u028-send[aria-disabled="true"]{opacity:1;background:var(--surface-3);color:var(--ink-4);box-shadow:none}
.u062-go{background:var(--marker);color:#fff}
/* "Nền trong suốt" on: soft blue, the same as the chips that label a cut-out */
.gen-clear[aria-pressed="true"]{background:#E7F0FF;color:#1F4FB0;box-shadow:inset 0 0 0 1px rgba(31,79,176,.18)}
/* pager and zoom chips: a light tint marks the current one */
.pg-btns button[aria-current="page"]{background:var(--surface-3);color:var(--ink);font-weight:700}
.zoom-chip[aria-pressed="true"]{background:var(--surface-3);color:var(--ink)}
/* game IDs: light plates with dark numbers */
.game code{background:var(--surface-2);color:var(--ink);box-shadow:inset 0 0 0 1px var(--hair)}
.mgmt .gid{background:var(--surface-2);color:var(--ink);box-shadow:inset 0 0 0 1px var(--hair)}
.rail .u039.is-seg .u039-tabs{background:#EAECF0}
/* account: read-only email, signed-in devices */
.ro-field{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:var(--r-m);background:var(--surface-2);color:var(--ink-2);font-weight:600;overflow-wrap:anywhere}
.devices{margin:0 0 12px;padding:0;list-style:none}
.devices li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}
.devices li+li{box-shadow:0 -1px 0 var(--hair)}
.dev-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.dev-t b{font-weight:650}
.dev-t small{font-size:12.5px;color:var(--ink-3)}
.dev-t .me-tag{align-self:flex-start;margin:2px 0 0}

/* Bảo mật: severity colours, stat tiles, filters, locked list */
.sev{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;font:700 11.5px/1 var(--font);background:var(--surface-3);color:var(--ink-2);white-space:nowrap}
.sev.sev-high{background:var(--marker-soft);color:var(--marker-ink)}
.sev.sev-medium{background:#FFF3D6;color:#8A5A00}
.sev.sev-low{background:var(--surface-3);color:var(--ink-3)}
.sev.sev-ok{background:#E6F4EC;color:var(--ok)}
.sec-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px}
.sec-stats ~ .card,.sec-stats ~ .split,.sec-stats ~ .chips{margin-top:18px}
.sec-stat{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:var(--r-l);background:var(--surface);box-shadow:var(--shadow);text-decoration:none;color:var(--ink)}
.sec-stat b{font:800 20px/1.15 var(--display);letter-spacing:-.02em}
.sec-stat span{font-size:12.5px;color:var(--ink-3)}
.sec-stat.sev-high b{color:var(--marker-ink)}
.sec-stat.sev-medium b{color:#8A5A00}
a.sec-stat:hover{box-shadow:var(--shadow-lift)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips .chip{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);font:600 13px/1 var(--font);text-decoration:none}
.chips a.chip:hover{color:var(--ink);background:var(--surface-3)}
.chips .chip[aria-current="true"]{background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px var(--hair-2),0 4px 10px -6px rgba(16,24,40,.25)}
.chips .chip.sev-high b{color:var(--marker-ink)}
.sec-kinds{margin-bottom:0}
.sec-filter .u031.is-field{width:min(300px,100%)}
.sec-filter input[type=search]{max-width:280px;height:42px}
.sec-locked{margin:0;padding:0;list-style:none}
.sec-locked li{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:10px 0}
.sec-locked li+li{box-shadow:0 -1px 0 var(--hair)}
.sec-locked .who-cell{flex:1 1 220px;min-width:0;text-decoration:none;color:inherit}
.sec-table td{vertical-align:middle}
.sec-table .one{max-width:100%}
.sec-user-head{align-items:center}
.sec-user-head .who-cell{gap:16px}
.sec-user-head h1{margin:0 0 2px}
.sec-user-head .roles{margin-top:6px}
.sec-acts{display:flex;flex-wrap:wrap;gap:8px}
.pg-btns a.pg-a{min-width:36px;height:36px;padding:0 8px;border-radius:10px;display:inline-grid;place-items:center;color:var(--ink-2);font:600 13.5px/1 var(--font);text-decoration:none;font-variant-numeric:tabular-nums}
.pg-btns a.pg-a:hover{background:var(--surface-2);color:var(--ink)}
.pg-btns a.pg-a[aria-current="page"]{background:var(--surface-3);color:var(--ink);font-weight:700}
