/* Visualise It — studio. Disposable exploration, 17 Oct 2026. Not production code.
   Dark-first studio. One accent per job. The prompt is a physical object, never hidden. */
:root {
  --pink: #ff2e87; --orange: #ff7a1a; --blue: #3d7bff; --teal: #17c4b0; --purple: #9a6bff;
  --accent: var(--pink);
  --bg: #0b0b0e; --bg-2: #121318; --card: #16171d; --card-2: #1c1e25;
  --ink: #f6f6f8; --ink-2: #a9adb8; --ink-3: #6d7280;
  --line: rgba(255,255,255,.11); --line-2: rgba(255,255,255,.06);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --ui: "Figtree", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
}
[data-theme="light"] {
  --bg: #efeef0; --bg-2: #e6e5e9; --card: #ffffff; --card-2: #f6f6f8;
  --ink: #101116; --ink-2: #4e525c; --ink-3: #868b96;
  --line: rgba(16,17,22,.14); --line-2: rgba(16,17,22,.07);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background: radial-gradient(60vw 50vh at 78% -10%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%); transition: background .6s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.wrap { position: relative; z-index: 1; max-width: 1480px; margin: 0 auto; padding: 0 26px 40px; }

/* ---------------- header ---------------- */
.top { display: flex; align-items: center; gap: 16px; padding: 16px 0 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .m { width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: #0b0b0e; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; transition: background .4s var(--ease); }
.brand b { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.brand span { color: var(--ink-3); font-size: 13px; border-left: 1px solid var(--line); padding-left: 11px; margin-left: 2px; max-width: 28ch; line-height: 1.25; }
.top .sp { flex: 1; }
.ghost { padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: border-color .18s, color .18s, background .18s; }
.ghost:hover { border-color: var(--ink); color: var(--ink); }
.ghost.on { background: var(--accent); border-color: var(--accent); color: #0b0b0e; }

/* ---------------- job strip ---------------- */
.jobs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.job { display: block; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); text-align: left; transition: transform .2s var(--ease), border-color .2s; }
.job:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.job .pic { display: block; position: relative; aspect-ratio: 16/7; background: var(--card-2); }
.job .pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.job .lab { padding: 9px 12px 11px; display: grid; gap: 2px; }
.job .lab b, .job .lab small { display: block; }
.job .lab b { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.job .lab small { color: var(--ink-3); font-size: 11.5px; line-height: 1.3; }
.job.on { border-color: var(--j); box-shadow: 0 0 0 1px var(--j), 0 14px 30px rgba(0,0,0,.35); }
.job.on .lab b { color: var(--j); }
.job .tick { position: absolute; right: 8px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--j); color: #0b0b0e; display: none; place-items: center; font-size: 11px; font-weight: 800; }
.job.on .tick { display: grid; }

/* ---------------- main ---------------- */
.grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(296px, .8fr); gap: 18px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.lead { padding: 18px 20px 20px; display: grid; gap: 14px; justify-items: stretch; min-width: 0; }
.grid > section { min-width: 0; }
.ask { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ask input { flex: 1 1 260px; min-width: 0; background: transparent; border: 0; outline: none; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.035em; line-height: 1.05; padding: 2px 0; border-bottom: 2px solid transparent; }
.ask input:hover { border-bottom-color: var(--line); }
.ask input:focus { border-bottom-color: var(--accent); }
.ask input::placeholder { color: var(--ink-3); }
.ask .roll { flex: 0 0 auto; padding: 9px 12px; border-radius: 11px; border: 1px dashed var(--accent); color: var(--accent); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.ask .roll:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }

.frame { position: relative; width: 100%; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; max-height: 44vh; background: #0e0f12; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.frame .layer { position: absolute; inset: 0; transition: opacity .34s var(--ease); }
.frame .layer.in { opacity: 0; }
.frame svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frame .strip { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.frame .strip span { padding: 4px 8px; border-radius: 7px; background: rgba(8,8,10,.72); backdrop-filter: blur(6px); color: #fff; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.frame .note { position: absolute; left: 12px; top: 12px; padding: 5px 9px; border-radius: 8px; background: var(--accent); color: #0b0b0e; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.frame .sketchy { position: absolute; right: 12px; top: 12px; padding: 5px 9px; border-radius: 8px; background: rgba(8,8,10,.6); color: #fff; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------------- the prompt, never hidden ---------------- */
.prompt { margin-top: 18px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); overflow: hidden; }
.prompt .head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px dashed var(--line); }
.prompt .head b { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: -.01em; }
.prompt .head .count { color: var(--ink-3); }
.prompt .head .sp { flex: 1; }
.prompt .body { padding: 16px 18px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }
.prompt .body .seed { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
.prompt .body .w { cursor: pointer; font-weight: 650; border-radius: 6px; padding: 1px 3px; transition: background .15s; animation: pop .35s var(--ease) both; }
.prompt .body .w:hover { background: color-mix(in srgb, currentColor 18%, transparent); }
.prompt .body .w:hover::after { content: " ×"; font-size: .7em; opacity: .7; }
.prompt .body .dim { color: var(--ink-3); font-weight: 400; }
.prompt .body .empty { color: var(--ink-3); font-size: .8em; }
.prompt .acts { display: flex; gap: 8px; padding: 0 18px 16px; flex-wrap: wrap; align-items: center; }
@keyframes pop { from { opacity: 0; transform: translateY(5px) } to { opacity: 1; transform: none } }
.btn { padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 13.5px; border: 1px solid var(--line); background: var(--card); transition: transform .16s var(--ease), background .16s, color .16s, border-color .16s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn.go { background: var(--accent); border-color: var(--accent); color: #0b0b0e; }
.btn.go:hover { filter: brightness(1.08); }
.btn.quiet { color: var(--ink-2); }
.ok { color: var(--teal); font-weight: 700; font-size: 13px; }
.c-camera, .c-light { color: var(--blue); } .c-colour, .c-medium { color: var(--purple); } .c-strange, .c-world { color: var(--teal); } .c-scene, .c-people { color: var(--ink); }

/* ---------------- words ---------------- */
.side { display: grid; gap: 12px; }
.side .panel { padding: 14px 16px 16px; }
.side h3 { margin: 0 0 3px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.side .sub { margin: 0 0 12px; color: var(--ink-3); font-size: 12.5px; }
.find { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); margin-bottom: 10px; }
.find input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; }
.find button { color: var(--accent); font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.row { border-top: 1px solid var(--line-2); }
.row:first-of-type { border-top: 0; }
.row-head { width: 100%; display: grid; grid-template-columns: 8px 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; text-align: left; }
.row-head i { width: 8px; height: 8px; border-radius: 2px; background: var(--k); }
.row-head b { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.row-head .n { font-size: 12px; font-weight: 700; color: var(--k); }
.row-head .chev { color: var(--ink-3); font-size: 11px; transition: transform .22s var(--ease); }
.row.open .row-head .chev { transform: rotate(90deg); }
.row-body { padding-bottom: 12px; animation: pop .25s var(--ease) both; }
.row-body .why { margin: 0 0 9px; color: var(--ink-3); font-size: 12.5px; }
.group { margin: 10px 0 4px; color: var(--ink-3); }
.words { display: flex; flex-wrap: wrap; gap: 6px; }
.word { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); font-size: 13px; font-weight: 600; transition: transform .14s var(--ease), border-color .14s, background .14s, color .14s; }
.word .th { width: 26px; height: 20px; border-radius: 5px; overflow: hidden; position: relative; background: #0e0f12; flex: 0 0 auto; }
.word .th svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.word.plain { padding-left: 10px; }
.word:hover { transform: translateY(-1px); border-color: var(--k); }
.word.on { background: var(--k); border-color: var(--k); color: #0b0b0e; }
[data-theme="light"] .word.on { color: #fff; }
.word.mine { border-style: dashed; }

/* teaching card */
.teach { position: fixed; z-index: 60; width: min(340px, calc(100vw - 32px)); border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 24px 60px rgba(0,0,0,.5); overflow: hidden; animation: pop .22s var(--ease) both; }
.teach .pic { position: relative; aspect-ratio: 16/10; background: #0e0f12; }
.teach .pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.teach .txt { padding: 12px 14px 14px; display: grid; gap: 6px; }
.teach .txt .k { color: var(--k); }
.teach .txt b { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.teach .txt p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.teach .txt .acts { display: flex; gap: 8px; margin-top: 4px; }
.teach .txt .acts .btn { padding: 9px 13px; font-size: 13px; }

/* colour panel */
.pal { display: flex; gap: 7px; flex-wrap: wrap; }
.pal button { width: 34px; height: 34px; border-radius: 9px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); transition: transform .14s var(--ease); }
.pal button:hover { transform: scale(1.08); }
.pal button.on { border-color: var(--ink); }
.shades { display: flex; gap: 5px; margin-top: 8px; }
.shades button { flex: 1; height: 26px; border-radius: 7px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.shades button.on { border-color: var(--ink); }
.tune { display: grid; gap: 8px; margin-top: 10px; }
.tune input[type=range] { width: 100%; height: 14px; border-radius: 99px; appearance: none; background: linear-gradient(90deg,#f00,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00); }
.tune input[type=range]::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #111; cursor: pointer; }
.tune .r { display: flex; gap: 8px; align-items: center; }
.tune .sw { width: 34px; height: 34px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.tune input[type=text] { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--card-2); font-family: var(--mono); font-size: 12px; text-transform: uppercase; outline: none; }

/* bring it back + notes */
.back-drop { border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 8px; text-align: center; color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s; }
.back-drop:hover, .back-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.back-drop b { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--ink); }
.back-drop small { color: var(--ink-3); font-size: 11.5px; }
.result { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.result img { display: block; width: 100%; }
.result .x { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(8,8,10,.7); color: #fff; }
.notes-wrap { display: grid; gap: 8px; }
.note-row { display: flex; gap: 8px; }
.note-row input { flex: 1; min-width: 0; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); outline: none; font-size: 14px; }
.note-row input:focus { border-color: var(--accent); }
.note-row button { padding: 11px 14px; border-radius: 12px; background: var(--accent); color: #0b0b0e; font-weight: 700; font-size: 13px; }
.notes { display: grid; gap: 6px; max-height: 190px; overflow-y: auto; }
.n { padding: 9px 11px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 13px; display: grid; gap: 3px; animation: pop .25s var(--ease) both; }
.n .meta { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.n .meta i { font-style: normal; color: var(--accent); }
.notes .empty { color: var(--ink-3); font-size: 12.5px; }

/* ---------------- responsive ---------------- */
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } .jobs { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 720px) {
  .wrap { padding: 0 14px 30px; }
  .top { padding: 12px 0 10px; gap: 10px; }
  .brand span { display: none; }
  .jobs { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .job .pic { aspect-ratio: 16/8; }
  .ask input { font-size: 28px; flex: 1 1 100%; }
  .ask .roll { width: 100%; text-align: center; }
  .frame { aspect-ratio: 4/3; max-height: none; }
  .prompt .body { font-size: 17px; }
  .teach { left: 10px !important; right: 10px; width: auto; bottom: 10px !important; top: auto !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }

/* ======== start page ======== */
.brand { background: none; border: 0; display: flex; align-items: center; gap: 11px; cursor: pointer; }
.tagline { color: var(--ink-3); font-size: 13px; border-left: 1px solid var(--line); padding-left: 12px; max-width: 30ch; line-height: 1.25; }
.start { max-width: 860px; margin: 0 auto; padding: 6vh 0 40px; }
.start h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 10px; }
.start h1 em { font-style: normal; color: var(--accent); }
.start .lede { color: var(--ink-2); font-size: 17px; margin: 0 0 26px; max-width: 46ch; }
.bigbox { display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 18px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.bigbox:focus-within { border-color: var(--accent); }
.bigbox input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 19px; padding: 12px 0; }
.bigbox button { padding: 13px 18px; border-radius: 12px; background: var(--accent); color: #0b0b0e; font-weight: 700; white-space: nowrap; }
.doors-h { margin: 28px 0 10px; color: var(--ink-3); }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.door { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: grid; gap: 3px; transition: border-color .16s, transform .16s var(--ease); }
.door:hover { border-color: var(--accent); transform: translateY(-2px); }
.door b { font-size: 14.5px; font-weight: 700; }
.door span { color: var(--ink-3); font-size: 12.5px; }
.area-pick { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.area-pick .lab { color: var(--ink-3); margin-bottom: 8px; }
.areas { display: flex; flex-wrap: wrap; gap: 7px; }
.area { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; background: var(--card); }
.area.on { background: var(--accent); border-color: var(--accent); color: #0b0b0e; }
.area-note { margin-top: 9px; color: var(--ink-3); font-size: 12.5px; }

/* ======== studio additions ======== */
.explain { min-height: 34px; display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); padding: 2px 2px 0; }
.explain b { color: var(--k, var(--accent)); font-weight: 700; }
.explain .mono { color: var(--ink-3); }
.row-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.row-bar .area { padding: 7px 11px; font-size: 12.5px; }
.saved-list { display: grid; gap: 8px; }
.saved { border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); padding: 12px 14px; display: grid; gap: 8px; }
.saved.master { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.saved .ttl { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.saved .ttl .v { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .1em; }
.saved .ttl .flag { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: #0b0b0e; padding: 2px 6px; border-radius: 5px; }
.saved p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.saved .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.saved .acts button { padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.saved .acts button:hover { border-color: var(--ink); }
.saved .shot { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.paste { display: grid; gap: 8px; }
.paste textarea { width: 100%; min-height: 92px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); padding: 11px 13px; font-size: 14px; resize: vertical; outline: none; }
.paste textarea:focus { border-color: var(--accent); }
.matched { display: flex; flex-wrap: wrap; gap: 5px; }
.matched i { font-style: normal; font-size: 12px; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); }
.matched i.new { border-style: dashed; color: var(--ink-3); }

/* sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(5,5,7,.55); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 70; }
.sheet-bg.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(102%); transition: transform .32s var(--ease); overflow-y: auto; padding: 20px 22px 40px; display: grid; gap: 16px; align-content: start; }
.sheet.on { transform: none; }
.sheet h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.sheet .sub { margin: 0; color: var(--ink-3); font-size: 13px; }
.sheet .x { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); }
@media (max-width: 720px) { .doors { grid-template-columns: repeat(2, minmax(0,1fr)); } .tagline { display: none; } .sheet { width: 100vw; } }

/* rows added 17 Oct: who's in it, world */
.sheet { padding-top: 56px; }
@media (max-width: 720px) { .bigbox { flex-wrap: wrap; } .bigbox input { flex: 1 1 100%; } .bigbox button { width: 100%; } }
@media (max-width: 560px) {
  .ask input { font-size: 22px; }
  .prompt .head { flex-wrap: wrap; gap: 6px 10px; }
  .prompt .head > .mono:last-child { display: none; }
  .frame .strip span { font-size: 8.5px; padding: 3px 6px; }
}
.row-head .n:empty { display: none; }

/* =====================================================================
   PREMIUM PASS — 17 Oct. Milled dark cards (studio standard), a front
   page that shows the tool working, a picture that never leaves you.
   ===================================================================== */

/* ---- milled card base, dark only. Light mode stays flat paper. ---- */
[data-theme="dark"] .panel,
[data-theme="dark"] .prompt,
[data-theme="dark"] .bigbox,
[data-theme="dark"] .door,
[data-theme="dark"] .back-drop,
[data-theme="dark"] .saved,
[data-theme="dark"] .sheet {
  background: linear-gradient(135deg, #161616 0%, #0c0c0c 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.15), 0 12px 24px rgba(0,0,0,.5);
  position: relative;
}
[data-theme="dark"] .panel::before,
[data-theme="dark"] .prompt::before,
[data-theme="dark"] .door::before,
[data-theme="dark"] .saved::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.05), transparent 60%);
}
[data-theme="dark"] .panel > *, [data-theme="dark"] .prompt > *, [data-theme="dark"] .door > * { position: relative; z-index: 1; }
[data-theme="dark"] .word { background: linear-gradient(135deg, #1a1a1d 0%, #121214 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
[data-theme="dark"] .word.on { background: var(--k); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px rgba(0,0,0,.45); }

/* ---- front page ---- */
.start { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(340px, .96fr); gap: 38px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 5vh 0 64px; }
.start-copy { min-width: 0; }
.eyebrow { color: var(--accent); margin: 0 0 14px; }
.start h1 { font-size: clamp(40px, 5vw, 68px); line-height: .98; letter-spacing: -.04em; margin: 0 0 12px; }
.start .lede { font-size: 17.5px; max-width: 42ch; margin: 0 0 24px; }
.bigbox { border-radius: 18px; padding: 7px 7px 7px 18px; }
.bigbox input { font-size: 18px; }
.bigbox button { display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.bigbox button i { font-style: normal; transition: transform .2s var(--ease); }
.bigbox button:hover i { transform: translateX(3px); }
.doors { gap: 9px; }
.door { padding: 13px 15px; }
.door:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

/* the reel: the tool working, before anyone has typed a thing */
.start-reel { display: grid; gap: 18px; }
.stage { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; background: #0e0f12;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 34px 70px rgba(0,0,0,.6); }
.stage .layer { position: absolute; inset: 0; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.stage .layer.in { opacity: 0; transform: scale(1.05); }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(0,0,0,.55); }
.stage .sketchy { position: absolute; left: 12px; top: 12px; right: auto; padding: 5px 9px; border-radius: 8px;
  background: rgba(8,8,10,.62); backdrop-filter: blur(6px); color: #fff; font-family: var(--mono);
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase; z-index: 2; }
.stage .strip { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.stage .strip span { padding: 5px 9px; border-radius: 8px; background: rgba(8,8,10,.74); backdrop-filter: blur(6px);
  color: #fff; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.area-pick { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---- the picture stays with you ---- */
@media (min-width: 861px) {
  .grid > section:first-child { position: sticky; top: 14px; max-height: calc(100vh - 26px); overflow-y: auto; overscroll-behavior: contain; }
  .grid > section:first-child::-webkit-scrollbar { width: 0; }
  .frame { max-height: 40vh; }
}
.frame .layer { transition: opacity .42s var(--ease), transform .42s var(--ease); }
.frame .layer.in { opacity: 0; transform: scale(1.03); }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 0 60px rgba(0,0,0,.45); }
.frame .strip span { animation: rise .4s var(--ease) both; }

/* ---- the dock: on a phone the picture rides with you ---- */
.dock { display: none; }
@media (max-width: 860px) {
  .dock { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 55; align-items: center; gap: 11px; padding: 8px;
    border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(135deg, rgba(26,26,26,.96), rgba(10,10,10,.96));
    box-shadow: inset 0 1px 1px rgba(255,255,255,.14), 0 16px 40px rgba(0,0,0,.6); backdrop-filter: blur(10px); }
  [data-theme="light"] .dock { background: linear-gradient(135deg, #fff, #f1f1f4); border-color: var(--line); }
  .dock .peek { position: relative; width: 66px; height: 46px; border-radius: 11px; overflow: hidden; background: #0e0f12; flex: 0 0 auto; }
  .dock .peek .layer, .dock .peek svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .dock .t { flex: 1; min-width: 0; display: grid; gap: 1px; }
  .dock .t b { font-size: 12.5px; font-weight: 700; }
  .dock .t i { font-style: normal; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock .btn { padding: 10px 14px; font-size: 12.5px; }
  .wrap { padding-bottom: 86px; }
  .start { gap: 26px; padding-top: 2vh; }
  .start-reel .stage { aspect-ratio: 16/10; }
}
@media (max-width: 980px) { .start { grid-template-columns: 1fr; } }

/* ---- small motion, everywhere ---- */
.word:active, .btn:active, .door:active, .area:active { transform: scale(.975); }
.btn.go { box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.ghost.on { box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent); }
.brand .m { box-shadow: inset 0 1px 1px rgba(255,255,255,.4), 0 8px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
[data-theme="dark"] .sheet { position: fixed; }
.keepsafe { margin-top: 6px; padding: 14px 15px; border-radius: 14px; border: 1px dashed var(--line); display: grid; gap: 8px; }
.keepsafe .mono { color: var(--ink-3); margin: 0; }
.keepsafe .sub { margin: 0; }
.keepsafe .acts { display: flex; gap: 7px; flex-wrap: wrap; }
.keepsafe .btn { padding: 9px 12px; font-size: 12.5px; }
.matched.spot i { cursor: pointer; border-style: dashed; transition: background .15s, color .15s, border-color .15s; }
.matched.spot i:hover { border-color: currentColor; }
.matched.spot i.on { background: currentColor; border-style: solid; }
.matched.spot i.on { color: var(--ink); }
[data-theme="dark"] .matched.spot i.on { -webkit-text-fill-color: #0b0b0e; }
.ask input.long { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.02em; }

/* ---- one column: the words come straight after the picture, never last ---- */
@media (max-width: 860px) {
  .grid { display: flex; flex-direction: column; gap: 14px; }
  .grid > section:first-child { display: contents; }
  .grid .lead { order: 1; }
  .grid .side { order: 2; }
  .grid .prompt { order: 3; margin-top: 0; }
  .grid > section:first-child > .panel:last-child { order: 4; margin-top: 0 !important; }
  .grid .dock { order: 5; }
}
.sheet .note-row { display: flex; gap: 8px; }
.sheet .note-row input { flex: 1; min-width: 0; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); outline: none; font-size: 14px; }
.sheet .note-row input:focus { border-color: var(--accent); }
.sheet .note-row button { padding: 11px 15px; border-radius: 12px; background: var(--accent); color: #0b0b0e; font-weight: 700; font-size: 13.5px; }
.sheet .notes { display: grid; gap: 7px; max-height: none; }
.n .meta .drop { margin-left: 8px; color: var(--ink-3); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.n .meta .drop:hover { color: var(--orange); }
#noteBtn { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---- before and after, on your own subject ---- */
.frame .cmp { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 6px 10px; border-radius: 9px;
  background: rgba(8,8,10,.66); backdrop-filter: blur(6px); color: #fff; font-family: var(--mono);
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.18); }
.frame .cmp:hover { background: rgba(8,8,10,.85); border-color: #fff; }
.frame .cmp.on { background: var(--accent); color: #0b0b0e; border-color: var(--accent); }
/* ---- a spin for each row ---- */
.word.spin { border-style: dashed; color: var(--k); background: transparent; }
.word.spin:hover { background: color-mix(in srgb, var(--k) 14%, transparent); }
/* ---- what the area is doing, said out loud ---- */
.area-live { margin: -2px 0 12px; color: var(--ink-3); font-size: 12px; line-height: 1.45; }
.area-live b { color: var(--accent); font-weight: 700; }

/* ---- the prompt belongs to the picture, not to a second card ---- */
.lead .prompt { margin-top: 4px; border-radius: 14px; }
.lead .prompt .head { padding: 10px 14px; }
.btn.small { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.lead .prompt .body { padding: 12px 14px; }
.lead .prompt .acts { padding: 0 14px 14px; }
/* ---- fewer words at once ---- */
.word.more { border-style: dashed; color: var(--ink-2); background: transparent; }
.word.more:hover { color: var(--ink); border-color: var(--ink); }
.frame .strip, .frame .sketchy, .frame .note { z-index: 3; }

/* ---- fewer colours, grouped by what the row is for ---- */
.fam { color: var(--ink-3); margin: 16px 0 2px; }
.row:first-of-type + .fam, .side .fam:first-child { margin-top: 6px; }
/* ---- the prompt folds, and says how many ---- */
.prompt .fold { display: flex; align-items: center; gap: 7px; }
.prompt .fold .chev { color: var(--ink-3); font-size: 13px; transition: transform .22s var(--ease); display: inline-block; }
.prompt.open .fold .chev { transform: rotate(90deg); }
.prompt:not(.open) .body, .prompt:not(.open) .acts { display: none; }
.prompt:not(.open) .head { border-bottom: 0; }

/* ---- work version: the two play rows switch off ---- */
.row.off .row-head { opacity: .45; }
.row.off .row-head .chev { display: none; }
.off-note { margin: -4px 0 10px; color: var(--ink-3); font-size: 12px; }
.btn.on { background: var(--accent); border-color: var(--accent); color: #0b0b0e; }
/* ---- quiet second line of actions ---- */
.acts.small { padding-top: 0; gap: 14px; }
.link { color: var(--ink-3); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }

/* ---- add your own detail, at the prompt where you need it ---- */
.addown { display: flex; gap: 8px; padding: 0 14px 12px; }
.addown input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--line); background: transparent; outline: none; font-size: 13.5px; }
.addown input:focus { border-color: var(--accent); border-style: solid; }
.addown .btn { flex: 0 0 auto; }
.keepsafe .sub b { color: var(--ink); }
.keepsafe .warn { color: var(--orange); }
.saved .acts button.lit { border-color: var(--accent); color: var(--accent); }
