/* Oracle. The same calm design as Pitboss (its colours, type, controls and sign-in screen), with Oracle's own layout: the steps on the
   left, the step in the middle, the game card on the right. Light and dark follow the device unless the person picks one. */
:root {
  color-scheme: light;
  --page: #f6f6f3; --surface: #fcfcfb; --surface-2: #f1f0ec; --side: #efeee9; --hover: rgba(11, 11, 11, .045); --press: rgba(11, 11, 11, .08);
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #7c7a74; --line: #e1e0d9; --line-2: #ecebe5; --axis: #c3c2b7; --ring: rgba(11, 11, 11, .10);
  --accent: #2a78d6; --accent-ink: #1c5cab; --accent-soft: #e6effb; --on-accent: #fff;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --good: #0ca30c; --good-ink: #006300; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b; --info: #6a7f99;
  --shadow: 0 1px 2px rgba(11, 11, 11, .04), 0 2px 8px rgba(11, 11, 11, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0f0f0e; --surface: #1a1a19; --surface-2: #222220; --side: #141413; --hover: rgba(255, 255, 255, .05); --press: rgba(255, 255, 255, .09);
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #8f8d86; --line: #2c2c2a; --line-2: #252523; --axis: #383835; --ring: rgba(255, 255, 255, .10);
    --accent: #3987e5; --accent-ink: #86b6ef; --accent-soft: #17283d; --on-accent: #fff;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --good-ink: #0ca30c; --info: #8ea3bd; --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f0f0e; --surface: #1a1a19; --surface-2: #222220; --side: #141413; --hover: rgba(255, 255, 255, .05); --press: rgba(255, 255, 255, .09);
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #8f8d86; --line: #2c2c2a; --line-2: #252523; --axis: #383835; --ring: rgba(255, 255, 255, .10);
  --accent: #3987e5; --accent-ink: #86b6ef; --accent-soft: #17283d; --on-accent: #fff;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --good-ink: #0ca30c; --info: #8ea3bd; --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 22px; line-height: 1.25; font-weight: 650; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 650; margin: 0; }
h3 { font-size: 13px; font-weight: 650; margin: 0 0 8px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 10px; } small, .muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---- shell: steps | the step | the game card */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.work { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; min-width: 0; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 18px 12px 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-size: 17px; letter-spacing: -.01em; } .brand span { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.nav-label { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 520; }
.nav a:hover { background: var(--hover); text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 650; min-width: 22px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; background: var(--surface-2); color: var(--ink-2); }
.steps a { align-items: flex-start; }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--axis); color: var(--ink-2); margin-top: 1px; }
.steps .done .dot { background: var(--good); border-color: var(--good); color: #fff; }
.steps .done .dot svg { width: 13px; height: 13px; opacity: 1; }
.steps a[aria-current="page"] .dot { border-color: var(--accent); color: var(--accent-ink); }
.steps .done[aria-current="page"] .dot { color: #fff; }
.steps small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); font-weight: 400; }
.side-admin { margin-top: auto; padding-bottom: 10px; } /* the Admin links at the foot of the menu, going up from who is signed in (27 Nov) */
.side-admin + .side-foot { margin-top: 0; }
.side-foot { margin-top: auto; padding: 14px 10px 0; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.side-foot b { color: var(--ink-2); font-weight: 600; } .side-foot a { display: inline-block; margin-top: 6px; margin-right: 12px; }
.main { min-width: 0; padding: 26px 34px 60px; max-width: 980px; width: 100%; }
.shell.wide .main { max-width: 1280px; }
.topbar { display: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head p { margin: 4px 0 0; color: var(--ink-2); }
.head > div:first-child { flex: 1 1 380px; min-width: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.saved { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.saved.bad { color: var(--critical); font-weight: 560; }
.pager-steps { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.step-pills { display: none; }

/* ---- controls */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 11px; border-radius: 7px; color: var(--ink-2); cursor: pointer; font-weight: 520; min-height: 32px; white-space: nowrap; }
.seg button:hover { color: var(--ink); background: var(--hover); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
select, input[type=text], input[type=password], input[type=number], input[type=search], textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-height: 38px; min-width: 0; width: 100%; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[disabled], select[disabled], textarea[disabled] { opacity: .65; }
input[type=range] { width: 100%; accent-color: var(--accent); min-height: 30px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 12.5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 8px; min-height: 38px; cursor: pointer; font-weight: 560; color: var(--ink); white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; } .btn:active { background: var(--press); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .btn.primary:hover { filter: brightness(1.06); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13.5px; }
.btn.quiet { border-color: transparent; background: none; color: var(--accent-ink); } .btn.quiet:hover { background: var(--hover); }
.btn[disabled] { opacity: .5; cursor: default; } .btn[disabled]:hover { background: var(--surface); }
.btn svg { width: 16px; height: 16px; }
.icon-btn { border: 0; background: none; width: 40px; height: 40px; border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--hover); } .icon-btn svg { width: 20px; height: 20px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 32px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .tr { width: 38px; height: 22px; border-radius: 11px; background: var(--axis); position: relative; flex: none; transition: background .15s; }
.switch .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.switch input:checked + .tr { background: var(--accent); } .switch input:checked + .tr::after { transform: translateX(16px); }
.switch input:focus-visible + .tr { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 4px 0; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
details.more { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 4px; }
details.more > summary { cursor: pointer; color: var(--accent-ink); font-weight: 560; padding: 10px 0; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+ "; } details.more[open] > summary::before { content: "– "; }

/* ---- cards and blocks */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.card > .ch { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px 6px; flex-wrap: wrap; }
.card > .ch p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.card > .cb { padding: 8px 18px 18px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.note { background: var(--surface-2); border-radius: 8px; padding: 10px 14px; color: var(--ink-2); font-size: 13.5px; }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.err { color: var(--critical); font-size: 13.5px; font-weight: 560; } .ok { color: var(--good-ink); font-size: 13.5px; font-weight: 560; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.on { background: var(--accent-soft); color: var(--accent-ink); }
.badge.good { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good-ink); }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status.good::before { background: var(--good); } .status.warning::before { background: var(--warning); } .status.critical::before { background: var(--critical); border-radius: 2px; transform: rotate(45deg); }
.status.info::before { background: var(--info); } .status.todo::before { background: transparent; border: 2px solid var(--muted); width: 7px; height: 7px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 9px 14px; color: var(--ink-2); font-weight: 560; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.tabs button:hover { color: var(--ink); } .tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- the games list */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.game { position: relative; overflow: hidden; padding: 0; }
.game:hover { border-color: var(--axis); }
.game .gopen { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.game .gopen:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gdel { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); opacity: .9; }
.gdel:hover, .gdel:focus-visible { color: var(--critical); border-color: var(--critical); opacity: 1; } .gdel:focus-visible { outline: 2px solid var(--critical); outline-offset: 2px; }
.gdel span, .gdel svg { width: 17px; height: 17px; display: block; }
.btn.danger { color: var(--critical); border-color: var(--critical); } .btn.danger.solid { background: var(--critical); color: #fff; } .btn.danger.solid:hover { filter: brightness(1.08); background: var(--critical); }
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(11, 11, 11, .55); }
.modal-box { width: min(480px, 100%); background: var(--surface); color: var(--ink); border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); padding: 20px 22px; display: grid; gap: 12px; }
.modal-box h2 { font-size: 19px; overflow-wrap: anywhere; } .modal-box p { margin: 0; }
.modal-box .acts { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.tickline { display: flex; gap: 10px; align-items: flex-start; font-weight: 560; font-size: 14px; cursor: pointer; } .tickline input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--critical); }
.money { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); } .money input { flex: 1; min-width: 0; }
.cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); display: grid; place-items: center; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover b { font-size: 34px; font-weight: 700; color: var(--accent-ink); letter-spacing: .02em; opacity: .7; }
.game .gb { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.game h2 { font-size: 16px; }
.progress-dots { display: flex; gap: 5px; margin-top: 6px; }
.progress-dots i { width: 18px; height: 5px; border-radius: 3px; background: var(--line); }
.progress-dots i.on { background: var(--good); }
/* choosing games to send together, and what waits to be merged (24 Nov) */
.game .gfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gsel { position: absolute; top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.gsel input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.gsel:hover { border-color: var(--accent); }
.game.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.selbar { position: sticky; bottom: 14px; z-index: 40; margin-top: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 34px rgba(0, 0, 0, .2); }
.selbar[hidden] { display: none; }
.selbar .grow { flex: 1 1 220px; min-width: 0; }
.pulls { margin-bottom: 18px; border-color: var(--accent); }
.pulls h2 { font-size: 16px; }
.pr-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.pr-row:first-child { border-top: 0; padding-top: 2px; }
.pr-what { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.modal-box.wide { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mlist li { padding: 8px 0; border-top: 1px solid var(--line-2); }
.mlist li:first-child { border-top: 0; }
.mlist .mrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mlist .mname { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.mlist .err { margin-top: 4px; font-weight: 500; font-size: 13px; }
@media (max-width: 640px) { .selbar { bottom: 8px; } .selbar .btn { flex: 1 1 auto; } .pr-row .btn { width: 100%; } }

/* ---- step 2: game types */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.type { position: relative; text-align: left; cursor: pointer; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); }
.type:hover { border-color: var(--axis); }
.type[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.type .rank { position: absolute; top: 12px; right: 14px; font-size: 12px; color: var(--muted); font-weight: 600; }
.type p { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.type .meta { font-size: 12.5px; color: var(--muted); }
.minigrid { display: grid; gap: 3px; width: max-content; padding: 6px; background: var(--surface-2); border-radius: 8px; }
.minigrid i { width: 11px; height: 11px; border-radius: 3px; background: var(--axis); }
.type[aria-pressed="true"] .minigrid i { background: var(--accent); opacity: .75; }
.minigrid i.lk { background: none; outline: 1px dashed var(--axis); outline-offset: -1px; } /* expanding reels: the rows not open at the start */

/* ---- step 3: features */
.fgroup { margin-bottom: 22px; }
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 11px 0; border-top: 1px solid var(--line-2); align-items: start; }
.feature:first-of-type { border-top: 0; }
.feature .fn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.feature p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; }
.feature .extra { grid-column: 2; display: grid; gap: 10px; margin-top: 6px; max-width: 520px; }
.divider { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 14px 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 4px 12px; cursor: pointer; font-size: 13.5px; font-weight: 520; color: var(--ink-2); min-height: 32px; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

/* ---- step 4: maths */
.target { display: grid; grid-template-columns: 170px minmax(0, 1fr) 110px; gap: 6px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.target:first-child { border-top: 0; }
.target .tl { font-weight: 600; } .target .tl small { display: block; font-weight: 400; font-size: 12.5px; }
.target .tv { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; font-size: 16px; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fig { padding: 12px 14px; background: var(--surface-2); border-radius: 9px; }
.fig .label { font-size: 12.5px; color: var(--ink-2); font-weight: 560; }
.fig .value { font-size: 22px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fig .sub { font-size: 12.5px; color: var(--muted); }
.split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: var(--surface); margin: 8px 0 6px; }
.split i { display: block; height: 100%; }
.split .s1 { background: var(--s1); } .split .s2 { background: var(--s2); } .split .s3 { background: var(--s3); } .split .s4 { background: var(--s4); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.s1 { background: var(--s1); } .legend i.s2 { background: var(--s2); } .legend i.s3 { background: var(--s3); } .legend i.s4 { background: var(--s4); }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- step 5: briefs */
.brief { border-top: 1px solid var(--line-2); padding: 14px 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
.brief:first-child { border-top: 0; }
.brief .thumb { width: 96px; height: 96px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 11px; text-align: center; padding: 4px; }
.brief .thumb img { width: 100%; height: 100%; object-fit: contain; }
.brief .bt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brief .bt b { font-family: var(--mono); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.brief .text { color: var(--ink-2); font-size: 13.5px; margin: 6px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.brief .text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.brief .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.brief audio { width: 100%; max-width: 360px; height: 36px; margin-top: 6px; }
.loopline { margin: 6px 0; font-size: 13px; display: grid; gap: 6px; }
.labelline { margin: 6px 0; font-size: 13px; display: grid; gap: 6px; }
.labelline p { margin: 0; }
.labelline input { width: 9.5em; height: 30px; padding: 0 8px; text-transform: uppercase; font: inherit; }
.loopline p { margin: 0; }
.loopline .spin { vertical-align: -2px; }
/* the AI video trial (step 5): a pose animated by three models, side by side */
.vtrial { margin-top: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); display: grid; gap: 8px; }
.vtrial .vt-head { margin: 0; font-size: 13.5px; }
.vtrial .vt-label { font-size: 12.5px; font-weight: 600; }
.vtrial textarea { width: 100%; font-size: 13px; }
.vt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vt-cell { margin: 0; display: grid; gap: 6px; align-content: start; }
.vt-media { position: relative; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.vt-media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vt-wait { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 6px 8px; border-radius: 6px; background: var(--surface); }
.vt-media video + .vt-wait { position: absolute; left: 8px; top: 8px; }
.vt-pick { display: flex; gap: 6px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.vt-what { font-size: 12px; }
.vt-cell .err { margin: 0; font-size: 12.5px; }
@media (max-width: 720px) { .vt-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .vt-grid { grid-template-columns: 1fr; } }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.brief .take { display: flex; align-items: center; gap: 10px; } .brief .take .muted { font-size: 12.5px; min-width: 46px; } .brief .take audio { margin-top: 4px; }
.brief .err { margin: 6px 0; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 8px 0 10px; }
.option { margin: 0; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); display: grid; gap: 6px; }
.option.chosen { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.option img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; background: repeating-conic-gradient(var(--line-2) 0% 25%, transparent 0% 50%) 50% / 16px 16px; border-radius: 6px; }
.option figcaption { display: grid; gap: 6px; font-size: 13px; } .option figcaption .btn { width: 100%; }
.brief .thumb img { background: repeating-conic-gradient(var(--line-2) 0% 25%, transparent 0% 50%) 50% / 12px 12px; }
/* a picture opens large when clicked: the small one is a button, the large one a full-window viewer */
.zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; position: relative; }
.zoom:hover img { filter: brightness(1.06); } .zoom:hover::after, .zoom:focus-visible::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 6px; background: rgba(11, 11, 11, .72)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.option .zoom { height: auto; }
.brief .take .btn { margin-top: 4px; flex: none; }
.viewer { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr); background: rgba(11, 11, 11, .88); color: #fff; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.viewer-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; } .viewer-name b { font-family: var(--mono); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; } .viewer-name .muted { font-size: 13px; }
.viewer-bar .acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.viewer-stage { display: grid; place-items: center; padding: 16px; min-height: 0; overflow: auto; cursor: zoom-out; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: default; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  background: repeating-conic-gradient(#8a8a86 0% 25%, #a6a6a1 0% 50%) 50% / 24px 24px; }
body.viewing { overflow: hidden; }
.batch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 12px 0 4px; background: var(--surface-2); border-radius: 10px; font-size: 13.5px; }
.voices { margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.voices > h3 { margin: 0 0 4px; }
.voice { padding: 12px 0; border-top: 1px solid var(--line-2); display: grid; gap: 10px; } .voice:first-of-type { border-top: 0; }
.vhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; } .vhead .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.preview { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); } .preview audio { width: 100%; height: 36px; }
.vlist { display: grid; gap: 2px; max-height: 360px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 10px; }
.vitem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto; gap: 10px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line-2); } .vitem:first-child { border-top: 0; }
.vitem audio { width: 100%; height: 34px; }
@media (max-width: 640px) { .vitem { grid-template-columns: minmax(0, 1fr) auto; } .vitem audio { grid-column: 1 / -1; grid-row: 2; } }
.uploader { border: 1.5px dashed var(--axis); border-radius: 10px; padding: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.uploader img { width: 200px; max-width: 100%; border-radius: 8px; display: block; }
.uploader.drag { border-color: var(--accent); background: var(--accent-soft); }
.fillbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 4px 0 6px; }
.cimgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; flex: 1 1 100%; }
.cimg { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.uploader .cimg img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--surface-2, rgba(0,0,0,.05)); }
.cimg-name { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cimg-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---- step 6 */
.frames { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
/* step 6: the draft playing in a frame, as a phone or as a desktop */
.playbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.playbar .play-phone { width: auto; max-width: 100%; min-height: 34px; padding: 4px 30px 4px 10px; font-size: 13px; } /* which phone (27 Nov) */
.place-bar { border: 1px dashed var(--line, #9aa4b5); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.place-bar p { margin: 0; }
.place-scenes, .place-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.playbox { display: grid; place-items: center; background: var(--surface-2); border-radius: 14px; padding: 18px; min-height: 240px; }
.playbox .stagebox { width: 100%; display: grid; place-items: center; transition: height .55s cubic-bezier(.45, 0, .2, 1); }
.playbox .pv { position: relative; overflow: hidden; background: #000; box-shadow: 0 0 0 9px #16181d, 0 12px 40px rgba(0, 0, 0, .3); }
.playbox.desk .pv { box-shadow: 0 0 0 6px #16181d, 0 12px 40px rgba(0, 0, 0, .3); }
.playbox .pv.turning { transition: transform .55s cubic-bezier(.45, 0, .2, 1); }
.playbox iframe { border: 0; display: block; background: #000; position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.playbox.desk { padding: 12px; }
.turnbtn { margin-top: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.turnbtn:hover { background: var(--hover); } .turnbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.turnbtn span, .turnbtn svg { width: 26px; height: 26px; display: block; }
.turnbtn svg { transition: transform .55s cubic-bezier(.45, 0, .2, 1); } .turnbtn:hover svg { transform: rotate(-25deg); } .turnbtn.turning svg { transform: rotate(-180deg); }
@media (prefers-reduced-motion: reduce) { .turnbtn svg, .playbox .pv.turning, .playbox .stagebox { transition: none; } }
.playnotes, .sendnotes { margin: 14px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); display: grid; gap: 5px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--link, #1d6fd8); font: inherit; cursor: pointer; text-decoration: underline; }
.frame { border: 2px solid var(--axis); border-radius: 22px; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 16px; font-size: 13px; background: var(--surface-2); }
.frame.phone { width: 180px; height: 340px; } .frame.desk { width: 420px; max-width: 100%; height: 250px; border-radius: 12px; }
.checklist { list-style: none; margin: 0; padding: 0; } .checklist li { padding: 8px 0; border-top: 1px solid var(--line-2); } .checklist li:first-child { border-top: 0; }

/* ---- advice: beside the choice it is about, never covering the screen */
.advice-pop { border: 1px solid var(--line); border-left: 4px solid var(--info); background: var(--surface); border-radius: 9px; padding: 12px 14px; margin: 10px 0; box-shadow: var(--shadow); max-width: 640px; }
.advice-pop.warning { border-left-color: var(--warning); } .advice-pop.not-possible { border-left-color: var(--critical); }
.advice-pop .lv { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.advice-pop b { display: block; margin: 2px 0; } .advice-pop p { margin: 0 0 4px; color: var(--ink-2); font-size: 13.5px; }
.advice-pop .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---- the game card */
.gamecard { border-left: 1px solid var(--line); background: var(--surface); padding: 20px 18px 40px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.gamecard .cover { border-radius: 10px; margin-bottom: 12px; }
.gamecard h2 { font-size: 18px; line-height: 1.3; }
.gamecard section { border-top: 1px solid var(--line-2); padding: 12px 0; }
.gamecard section:first-of-type { border-top: 0; }
.gamecard h3 { font-size: 11.5px; margin-bottom: 6px; }
.gamecard .kv { font-size: 13.5px; gap: 4px 14px; }
.gamecard .adv { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; padding: 3px 0; }
.card-toggle { display: none; }

/* ---- sign-in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .card { width: 100%; max-width: 400px; padding: 28px 28px 24px; }
.login .brand { padding: 0 0 22px; }
.login h1 { font-size: 20px; margin-bottom: 4px; }
.login .form { margin-top: 18px; }

/* ---- smaller laptops and iPads: the game card folds into the step */
@media (max-width: 1260px) {
  .work { display: flex; flex-direction: column; align-items: stretch; }
  .gamecard { order: -1; position: static; height: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 20px 34px 0; padding: 0; overflow: visible; max-width: 912px; }
  .gamecard .gc-body { padding: 4px 16px 12px; } .gamecard:not(.open) .gc-body { display: none; }
  .card-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: none; padding: 12px 16px; cursor: pointer; font-weight: 600; text-align: left; }
  .card-toggle small { font-weight: 400; }
  .gamecard .cover { max-width: 320px; }
}
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .gamecard { margin: 14px 22px 0; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 280px; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
  .shell.nav-open .side { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, .25); transition: transform .2s ease; }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; background: var(--page); border-bottom: 1px solid var(--line); padding: 8px 14px; }
  .topbar .brand { padding: 0; } .topbar .brand svg { width: 26px; height: 26px; }
  .main { padding: 20px 22px 60px; }
  .step-pills { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 4px; }
  .step-pills a { border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; white-space: nowrap; font-size: 13px; color: var(--ink-2); }
  .step-pills a[aria-current="page"] { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
  .step-pills a.done::before { content: "✓ "; color: var(--good-ink); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .main { padding: 16px 16px 50px; } .gamecard { margin: 12px 16px 0; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .target { grid-template-columns: minmax(0, 1fr) auto; } .target .tc { grid-column: 1 / -1; grid-row: 2; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .brief { grid-template-columns: 64px minmax(0, 1fr); } .brief .thumb { width: 64px; height: 64px; }
  .frame.desk { height: 200px; }
}
@media (hover: none) { .seg button, .btn, select, input, .chip { min-height: 42px; } }
@media (prefers-reduced-motion: reduce) { .side { transition: none !important; } .spin { animation-duration: 2s; } }
.main:focus { outline: none; }
@media (max-width: 640px) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brief .acts .btn { max-width: 100%; white-space: normal; height: auto; text-align: left; } }

/* step 1: Copy the AI brief */
.aibrief .cb { padding-top: 14px; padding-bottom: 14px; }
.aibrief-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.aibrief-row > div:first-child { flex: 1 1 280px; min-width: 0; }
.aibrief-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.aibrief-row p { margin: 2px 0 0; }
.aibrief-out:not(:empty) { margin-top: 12px; display: grid; gap: 4px; }
.aibrief-text { width: 100%; box-sizing: border-box; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.csv-report { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); display: grid; gap: 6px; font-size: 13.5px; }
.csv-report ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.csv-report p { margin: 4px 0 0; }
.csv-report .btn { justify-self: start; }

/* step 5: the hero's animations */
.animpanel { margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; }
/* a symbol's own animation (22 Nov): its motion and its clip, square */
.sym-clip video { display: block; width: 220px; max-width: 100%; aspect-ratio: 1; border-radius: 8px; background: #000; object-fit: contain; }
.sym-clip.hero-clip video { width: 160px; aspect-ratio: 9 / 16; } /* a hero's moment: upright, as the game plays it */
.sym-clip.scene-clip video { width: 420px; aspect-ratio: 16 / 9; object-fit: cover; } /* a scene's loop (26 Nov): its own shape */
.sym-clip.scene-clip.up video { width: 200px; aspect-ratio: 9 / 16; }
/* a symbol's sprite sheet (27 Nov): played as the game plays it, over the reels' dark */
.spriteblock { background: var(--surface); }
.sprite-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.sprite-row > div { flex: 1 1 220px; min-width: 0; display: grid; gap: 4px; justify-items: start; }
canvas.sprite-prev { width: 160px; height: auto; border-radius: 8px; background: #14121c; flex: none; }
.anim-models { display: flex; gap: 8px; flex-wrap: wrap; }
.anim-model { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, rgba(127,127,127,.25)); cursor: pointer; flex: 1 1 200px; font-size: 13px; }
.anim-model.on { border-color: currentColor; }
.anim-model input { margin-top: 3px; }

/* ---- Ideas (27 Nov): the chats on the left, a large chat on the right; on a phone one or the other */
.shell.ideas-page .main { max-width: none; padding: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.shell.ideas-page #msg { margin: 12px 20px 0; }
.ideas { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.idea-side { border-right: 1px solid var(--line); padding: 20px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--page); }
.idea-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.idea-blurb { font-size: 13px; margin: 0; }
.idea-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.idea-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.idea-item { display: grid; gap: 2px; padding: 9px 10px; border-radius: 8px; color: var(--ink); }
.idea-item:hover { background: var(--hover); text-decoration: none; }
.idea-item[aria-current="page"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.idea-item b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idea-item .snip { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea-item .meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.empty-list { font-size: 13.5px; padding: 8px 10px; }
.idea-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface); }
.idea-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.idea-title { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 240px; }
.idea-title h2 { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idea-title .back { display: none; }
.idea-rename { font-size: 16px; font-weight: 600; padding: 4px 8px; border: 1px solid var(--accent); border-radius: 6px; background: var(--surface); width: min(420px, 100%); }
.idea-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.idea-log { flex: 1; min-height: 0; overflow-y: auto; padding: 24px max(20px, calc((100% - 820px) / 2)); display: flex; flex-direction: column; gap: 18px; }
.msg { max-width: 100%; }
.msg.user { align-self: flex-end; max-width: min(640px, 88%); }
.msg.user .body { background: var(--accent-soft); color: var(--ink); padding: 10px 14px; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg.user .meta { justify-content: flex-end; }
.msg.ai .body { line-height: 1.6; overflow-wrap: anywhere; }
.msg.sent .body { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--page); }
.msg.sent .body > div { flex: 1 1 240px; } .msg.sent .body > span svg { width: 20px; height: 20px; color: var(--good-ink); }
.msg.sent details { font-size: 13px; margin-top: 4px; } .msg.sent summary { cursor: pointer; }
.msg.error .body { border: 1px solid color-mix(in srgb, var(--critical) 40%, transparent); border-radius: 10px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.msg.error .err { margin: 0; flex: 1; }
.idea-status { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 13.5px; margin-top: 8px; }
.idea-src { margin-top: 8px; font-size: 13px; }
.idea-src summary { cursor: pointer; color: var(--ink-2); font-weight: 560; }
.idea-src ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 3px; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 10px; }
.md .md-h { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 16px; margin: 16px 0 6px; } .md h4.md-h { font-size: 14.5px; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; } .md li { margin: 2px 0; } .md li > ul, .md li > ol { margin: 4px 0; }
.md code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.md pre { background: var(--surface-2); padding: 10px 12px; border-radius: 8px; overflow-x: auto; margin: 0 0 10px; } .md pre code { background: none; padding: 0; }
.md blockquote { margin: 0 0 10px; padding: 2px 12px; border-left: 3px solid var(--line); color: var(--ink-2); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.md-table { overflow-x: auto; margin: 0 0 12px; } .md-table table { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; } .md-table th { background: var(--surface-2); font-weight: 620; }
.md sup a { font-size: 11px; }
.idea-start { margin: auto; max-width: 620px; text-align: center; display: grid; gap: 10px; justify-items: center; padding: 20px 0; }
.idea-start h2 { font-size: 22px; } .idea-start p { margin: 0; }
.idea-mark svg { width: 44px; height: 44px; color: var(--accent); }
.idea-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.idea-compose { border-top: 1px solid var(--line); padding: 12px max(20px, calc((100% - 820px) / 2)) 14px; background: var(--surface); }
.idea-box { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; background: var(--page); }
.idea-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.idea-box textarea { flex: 1; border: 0; background: none; resize: none; outline: none; padding: 7px 0; min-height: 38px; max-height: 220px; line-height: 1.5; }
.idea-box .btn { flex: none; } .idea-box textarea:focus-visible { outline: none; }
.idea-foot { font-size: 12px; margin-top: 6px; }
/* Best model (27 Nov): a small switch before the line that says who answers; on, the next answer comes from the best model */
.idea-foot .idea-best { font-size: 12px; padding: 2px 10px; min-height: 26px; margin-right: 8px; vertical-align: middle; }
@media (hover: none) { .kbd-hint { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 1023px) {
  .shell.ideas-page .main { height: calc(100vh - 57px); height: calc(100dvh - 57px); }
  .ideas { grid-template-columns: minmax(0, 1fr); }
  .ideas[data-view="chat"] .idea-side { display: none; } .ideas[data-view="list"] .idea-chat { display: none; }
  .idea-title .back { display: inline-grid; }
  .idea-side { border-right: 0; padding: 16px; }
}
@media (max-width: 640px) {
  .idea-head { padding: 8px 12px; } .idea-log { padding: 16px 14px; } .idea-compose { padding: 10px 12px 12px; }
  .idea-acts { width: 100%; } .idea-acts #idea-build { flex: 1; }
  .msg.user { max-width: 92%; }
}

/* Viral (27 Nov): the daily run's settings, then each run's ideas as cards: the early mockup, the viral score in a ring, the trend, how it
   links, the two scores as bars, the whole idea folded away, Develop in Ideas */
.viral { max-width: 1240px; }
.viral-kv { margin-bottom: 14px; }
.viral-on { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .viral-on .switch > span:last-child { font-weight: 600; }
.acts-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#viral-settings textarea { width: 100%; font: inherit; resize: vertical; }
.viral-live { margin-top: 14px; border-color: var(--accent); } .viral-live .idea-status { margin: 0; }
.badge.bad { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--critical); }
.viral-run { margin-top: 26px; }
.viral-run-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; } .viral-run-head h2 { margin: 0; font-size: 18px; }
.viral-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.viral-idea { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.viral-idea.hidden-idea { opacity: .55; }
.viral-shot { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.viral-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viral-shot .badge { position: absolute; left: 8px; bottom: 8px; background: rgba(11, 11, 11, .72); color: #fff; }
.viral-shot.none { display: grid; place-content: center; gap: 4px; text-align: center; padding: 16px; cursor: default; font-size: 13px; } .viral-shot.none b { font-size: 18px; }
.viral-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.viral-top { display: flex; gap: 12px; align-items: flex-start; } .viral-top h3 { margin: 0; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--ink); } .viral-top p { margin: 2px 0 0; font-size: 13.5px; }
.viral-score { --v: 0; flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-content: center; text-align: center; line-height: 1;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 78%), conic-gradient(var(--accent) calc(var(--v) * 1%), var(--line) 0); }
.viral-score b { font-size: 18px; } .viral-score small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.viral-trend { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; } .viral-trend .badge { white-space: normal; }
.viral-link { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.viral-bars { display: grid; gap: 5px; }
.viral-bar { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 2.2em; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.viral-bar i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--n), var(--line) var(--n)); }
.viral-bar b { text-align: right; color: var(--ink); }
.viral-more-info { font-size: 13.5px; } .viral-more-info summary { cursor: pointer; color: var(--accent-ink); font-weight: 560; } .viral-more-info .kv { margin-top: 8px; font-size: 13.5px; }
.viral-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.viral-research { margin-top: 12px; font-size: 13.5px; } .viral-research > summary { cursor: pointer; color: var(--accent-ink); font-weight: 560; }
.viral-digest { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin: 12px 0; } .viral-digest h4 { margin: 0 0 4px; font-size: 14px; }
.viral-more { margin-top: 20px; text-align: center; }
.msg.viral-note .body { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--page); font-size: 13.5px; }
.msg.viral-note img { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; } .msg.viral-note .body > div { flex: 1 1 200px; display: grid; gap: 2px; }
@media (max-width: 640px) { .viral-bar { grid-template-columns: 8.5em minmax(0, 1fr) 2.2em; } .msg.viral-note img { width: 100%; } }

/* ---- step 5, Look and sound (28 Nov; Michael: where a lot of the work happens, and it was busy, messy and hard on the eye): the concept sheet
   folded away; the briefs in tabs with how many are made; the pictures' work in bulk in one panel; a filter and a jump to each group; every
   brief a module of its own, a picture's in stages left to right (its still, its animation, its sprite sheet) */
details.fold > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary:hover { background: var(--hover); }
details.fold[open] > summary { border-bottom: 1px solid var(--line-2); border-radius: var(--r) var(--r) 0 0; }
details.fold > .cb { padding-top: 16px; }
.fold-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fold-sub { grid-column: 1; font-size: 13px; }
.fold-chev { grid-column: 2; grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); background: var(--surface); }
.fold-chev::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
details.fold[open] .fold-chev::before { transform: translateY(2px) rotate(-135deg); }
#briefs-card > .ch { align-items: flex-start; }
#briefs-card > .ch > div { flex: 1 1 340px; min-width: 0; }
#briefs-card .tabs { margin-bottom: 14px; }
.tabcount { display: inline-block; margin-left: 2px; padding: 0 7px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 20px; }
.tabcount.done { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good-ink); }
/* the work in bulk: a row each, what on the left and what to do on the right */
.bulk { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); padding: 2px 14px 6px; margin: 0 0 6px; }
.bulk-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 10px 0 6px; font-size: 13.5px; }
.bulk-row { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 6px 18px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.bulk-what { display: grid; gap: 1px; font-size: 13.5px; min-width: 0; } .bulk-what .muted { font-size: 12.5px; } .bulk-what small { font-size: 12px; line-height: 1.35; }
.bulk-act { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; } .bulk-act .err { margin: 0; flex-basis: 100%; }
.bulk-sub { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 2px; }
.bulk .batch { margin: 0; padding: 0; background: none; border-radius: 0; }
.bulk .anim-models { gap: 6px; }
.bulk .anim-model { flex: 0 1 auto; padding: 6px 10px; align-items: center; background: var(--surface); font-size: 13px; }
.bulk .anim-model.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.bulk .anim-model input { margin: 0; }
.bulk details.about { border-top: 1px solid var(--line); padding: 8px 0 4px; font-size: 13px; }
.bulk details.about > summary { cursor: pointer; color: var(--accent-ink); font-weight: 560; width: max-content; max-width: 100%; }
.about-body { display: grid; gap: 6px; padding: 8px 0 4px; color: var(--ink-2); } .about-body p { margin: 0; }
.muted.run { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
/* what the list shows, and the jump to a group: kept in view while the list scrolls */
.listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 0; position: sticky; top: 0; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line-2); }
.listbar .seg button { font-size: 13px; min-height: 30px; padding: 4px 10px; }
.segn { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 600; } .seg button[aria-pressed="true"] .segn { color: var(--accent-ink); }
.jump { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; } .jump select { max-width: 260px; min-height: 32px; font-size: 13px; }
.empty-list { padding: 18px 0; text-align: center; }
/* a group: its name, what it is for, and how far along it is */
.grp { margin-top: 18px; scroll-margin-top: 64px; }
.grp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; margin-bottom: 8px; }
#briefs-card .grp-head h3 { margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 650; color: var(--ink); flex: 1 1 320px; min-width: 0; }
.grp-head .gd { font-weight: 450; color: var(--muted); } .grp-head .gn { font-weight: 500; color: var(--muted); }
.grp-prog { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.grp-prog .bar { width: 72px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; } .grp-prog .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.grp-prog.done { color: var(--good-ink); } .grp-prog.done .bar i { background: var(--good); }
.grp-list { display: grid; gap: 10px; }
/* a module: a brief of its own */
.brief.pic, .brief.snd { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.brief.pic:first-child, .brief.snd:first-child { border-top: 1px solid var(--line); }
.brief.pic:hover, .brief.snd:hover { border-color: var(--axis); }
.pic-head { display: grid; gap: 2px; min-width: 0; } .pic-head .meta { font-size: 12.5px; overflow-wrap: anywhere; }
.brief .brieftext { display: flex; align-items: flex-end; gap: 4px 8px; flex-wrap: wrap; }
.brief .brieftext .text { flex: 1 1 260px; margin: 0; } .brief .brieftext .text.clamp { -webkit-line-clamp: 2; }
.brief .brieftext .more { min-height: 26px; padding: 2px 6px; }
.brief .acts { align-items: center; }
.acts-sep { width: 1px; align-self: stretch; min-height: 22px; background: var(--line); margin: 0 4px; }
.takes { display: grid; gap: 4px; }
/* a picture's stages, left to right */
.stages { display: flex; align-items: center; overflow-x: auto; padding: 1px; scrollbar-width: thin; }
.stage-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 14px 3px 3px; min-height: 36px; cursor: pointer; color: var(--ink-2); text-align: left; font: inherit; }
.stage-tab:hover { background: var(--surface-2); color: var(--ink); }
.stage-tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: 0 0 0 1px var(--accent) inset; }
.stage-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); }
.stage-dot svg { width: 14px; height: 14px; display: block; } .stage-dot span { display: grid; }
.stage-tab.is-made .stage-dot { background: var(--good); border-color: var(--good); color: #fff; }
.stage-tab.is-making .stage-dot { background: var(--accent); border-color: var(--accent); color: #fff; animation: stagepulse 1.2s ease-in-out infinite; }
.stage-tab.is-failed .stage-dot, .stage-tab.is-stale .stage-dot { background: color-mix(in srgb, var(--warning) 30%, var(--surface)); border-color: var(--warning); color: var(--ink); }
.stage-tab.is-locked { color: var(--muted); } .stage-tab.is-locked .stage-dot { border-style: dashed; background: none; }
@keyframes stagepulse { 50% { opacity: .55; } }
.stage-txt { display: grid; line-height: 1.2; } .stage-txt b { font-size: 13px; font-weight: 620; } .stage-txt small { font-size: 11.5px; }
.stage-link { width: 26px; height: 2px; flex: none; background: var(--line); } .stage-link.on { background: var(--good); }
/* a stage: what it made on the left, what to do on the right */
.stage-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: start; }
.vtrial.stage-body { margin: 0; padding: 0; border: 0; background: none; }
.stage-main { display: grid; gap: 8px; min-width: 0; align-content: start; }
.stage-body .thumb, .brief .stage-body .thumb { width: 136px; height: 136px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; padding: 6px; }
.stage-body .vt-head { margin: 0; font-size: 13px; line-height: 1.45; }
.stage-body .vt-label { margin-top: 2px; }
.clip-state { margin: 0; font-size: 13px; color: var(--ink-2); } .clip-state.ok { color: var(--good-ink); font-weight: 560; }
.stage-body .sym-clip video { width: 136px; }
.stage-body .sym-clip.hero-clip video { width: 136px; }
.stage-body .sym-clip.scene-clip video { width: 260px; } .stage-body .sym-clip.scene-clip.up video { width: 136px; }
.clip-wait { position: relative; width: 136px; aspect-ratio: 1; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; }
.hero-clip .clip-wait, .scene-clip.up .clip-wait { aspect-ratio: 9 / 16; } .scene-clip:not(.up) .clip-wait { width: 260px; aspect-ratio: 16 / 9; }
.clip-wait img { width: 100%; height: 100%; object-fit: contain; opacity: .45; filter: grayscale(.4); }
.clip-wait.busy img { animation: stagepulse 1.4s ease-in-out infinite; }
.clip-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.sprite-media canvas.sprite-prev { width: 136px; display: block; }
.sprite-wait { aspect-ratio: 1; }
@media (max-width: 640px) {
  .bulk-row { grid-template-columns: 1fr; }
  .stage-body { grid-template-columns: minmax(0, 1fr); }
  .stage-body .thumb, .brief .stage-body .thumb { width: 112px; height: 112px; }
  .stage-body .sym-clip.scene-clip video, .scene-clip:not(.up) .clip-wait { width: 100%; max-width: 320px; }
  .stage-tab { padding-right: 10px; } .stage-txt small { display: none; } .stage-link { width: 14px; }
  .listbar { position: static; } .jump select { max-width: 200px; }
}
.pic-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.pic-top .pic-head { flex: 1 1 260px; }
.pic-top .stages { flex: 0 1 auto; }
.brief .acts .why { order: 20; flex-basis: 100%; }
.stage-body .thumb, .brief .stage-body .thumb { width: 124px; height: 124px; }
.stage-body .sym-clip video, .stage-body .sym-clip.hero-clip video, .clip-wait, .sprite-media canvas.sprite-prev, .stage-body .sym-clip.scene-clip.up video { width: 124px; }
.bulk-row { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); }
details.grp > summary { list-style: none; cursor: pointer; border-radius: 8px; padding: 4px 6px 4px 4px; margin: 0 -6px 4px -4px; }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp > summary:hover { background: var(--hover); }
details.grp > summary h3::before { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); margin: 0 10px 0 4px; transition: transform .15s; }
details.grp:not([open]) > summary h3::before { transform: translateY(-1px) rotate(-45deg); }
details.grp:not([open]) { margin-bottom: -4px; }
.listbar-r { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.jump > span { white-space: nowrap; }
@media (max-width: 640px) {
  .bulk-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bulk .anim-model { flex: 1 1 100%; }
  .acts-sep { display: none; }
  .pic-top .stages { flex: 1 1 100%; }
  .stages { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; overflow: visible; }
  .stage-link { display: none; }
  .stage-tab { padding: 3px 6px 3px 3px; gap: 6px; min-width: 0; }
  .stage-dot { width: 24px; height: 24px; }
  .stage-txt { min-width: 0; } .stage-txt b { font-size: 12px; line-height: 1.15; overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .stage-tab { padding-right: 4px; gap: 5px; overflow: hidden; }
  .stage-dot { width: 20px; height: 20px; font-size: 11px; } .stage-dot svg { width: 12px; height: 12px; }
  .stage-txt b { font-size: 11.5px; overflow-wrap: normal; }
  .bulk-act .btn, .brief .acts .btn { max-width: 100%; white-space: normal; height: auto; text-align: left; }
}
.motion-acts { margin-top: -4px; }

/* the way into the bonus: its clips and their briefs (30 Nov) */
.tr-more { margin: 0 0 8px; } .tr-more .field { margin-top: 6px; }
/* what crosses the screen and its picture, under the row (2 Dec 2026) */
.tr-cross { display: grid; gap: 10px; padding: 0 0 10px; } .tr-cross .field { margin: 0; } .tr-cross .tr-who { font-size: 13px; margin: 0; }
.tr-clips { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; align-items: flex-start; }
.tr-clip { display: grid; gap: 6px; width: 260px; align-content: start; } .tr-clip.up { width: 130px; }
.tr-clip video, .tr-clip .clip-wait { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; } .tr-clip.up video, .tr-clip.up .clip-wait { aspect-ratio: 9 / 16; }
.tr-clip .clip-wait { display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); padding: 6px; }
.tr-pick { display: flex; gap: 6px; align-items: center; font-size: 12.5px; } .tr-brief summary { cursor: pointer; font-size: 12.5px; color: var(--accent-ink); } .tr-brief p { font-size: 12px; margin: 4px 0 0; }
.tr-again { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
@media (max-width: 600px) { .tr-clip { width: 100%; } .tr-clip.up { width: 46%; } }
/* a picture OpenAI made only on a calmer brief (1 Dec 2026): what changed, beside it */
.brief .meta.calm{font-size:12.5px;color:var(--serious);margin-top:2px}
.bar-choice{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 10px}.bar-choice .muted{font-size:13px} /* the control bar, used or left out (4 Dec 2026) */
/* the Engine site (3 Dec 2026; ORACLE_EDITION=engine): Stake Engine's games in their own colour, a deep teal, so it is always clear which site is open */
.shell.ed-engine { --accent: #0f8a7e; --accent-ink: #0b6d63; --accent-soft: #e1f3f1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shell.ed-engine { --accent: #22a596; --accent-ink: #7fd6cb; --accent-soft: #10302d; } }
:root[data-theme="dark"] .shell.ed-engine { --accent: #22a596; --accent-ink: #7fd6cb; --accent-soft: #10302d; }
.card.type.not-here { opacity: .62; }
.card.type.not-here .note { margin: 6px 0 0; font-size: 12.5px; }
.ed-banner { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; }

/* step 6 on the Engine site: the game as Stake plays it, at one of Engine's screen sizes (3 Dec 2026) */
.stkframe{position:relative;overflow:hidden;border-radius:10px;border:1px solid var(--line,#ddd);background:#000}
.stkframe iframe{border:0;display:block}
.stkflags{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px}
.stkflags label{display:inline-flex;align-items:center;gap:4px;cursor:pointer}
