/* Studio FGA prototype. Look: landing option A ("Highlighter"): cream paper, ink outlines, hard shadows.
   To restyle the whole app, change only these tokens. Board and deck sheets keep their own text styles (A / C). */
/* Stand-ins for the two web faces, scaled to their widths (measured: Bricolage Grotesque 800 is 92.4% of Arial Bold, DM Sans 91.7% of Arial),
   so the headline wraps the same before and after the real fonts arrive and the picture under it does not jump (CLS 0.19 -> 0). */
@font-face { font-family: 'Bricolage Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold'); font-weight: 600 800; size-adjust: 92.4%; }
@font-face { font-family: 'DM Sans Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo'); font-weight: 400 700; size-adjust: 91.7%; }
:root {
  --student-proof-bg: #FFF6EA; --student-proof-text: #1B1A17;
  --paper: #FFF6EA; --card: #FFFFFF; --ink: #1B1A17; --muted: #6B655B; --line: #1B1A17; --shadow: #1B1A17;
  --coral: #FF5A36; --lime: #CFF25A; --sun: #FFD84D; --lilac: #E4DAFF; --desk: #EDE4D3; --on-accent: #1B1A17;
  --danger: #B42A17; --focus: #2F5BFF; --hl: #CFF25A; --warn: #8A5300; --warn-bg: #FFEBC2;
  --display: 'Bricolage Grotesque', 'Bricolage Fallback', 'Arial Black', Arial, sans-serif;
  --body: 'DM Sans', 'DM Sans Fallback', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', Menlo, Consolas, monospace;
  --r: 16px; --sh: 4px 4px 0 var(--shadow); --sh-big: 6px 6px 0 var(--shadow);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --student-proof-bg: #FFF6EA; --student-proof-text: #1B1A17;
  --paper: #191814; --card: #24221D; --ink: #F6EEDF; --muted: #B9AF9D; --line: #F6EEDF; --shadow: #000000;
  --coral: #FF6B4A; --lime: #CFF25A; --sun: #FFD84D; --lilac: #3B3452; --desk: #2C2923; --on-accent: #1B1A17; --danger: #FF8A73; --focus: #8FA8FF; --hl: #4D5E10; --warn: #FFC56B; --warn-bg: #3A2D12; color-scheme: dark } }
:root[data-theme="dark"] {
  --student-proof-bg: #FFF6EA; --student-proof-text: #1B1A17;
  --paper: #191814; --card: #24221D; --ink: #F6EEDF; --muted: #B9AF9D; --line: #F6EEDF; --shadow: #000000;
  --coral: #FF6B4A; --lime: #CFF25A; --sun: #FFD84D; --lilac: #3B3452; --desk: #2C2923; --on-accent: #1B1A17; --danger: #FF8A73; --focus: #8FA8FF; --hl: #4D5E10; --warn: #FFC56B; --warn-bg: #3A2D12; color-scheme: dark }

html, body { height: 100%; }
body { background: var(--paper); color: var(--ink); font: 16px/1.45 var(--body); }
* { box-sizing: border-box; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- shell */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--paper); border-bottom: 2px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.logo { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--shadow);
  font-family: var(--display); font-weight: 800; font-size: 17px; text-decoration: none; color: var(--ink); }
.logo i { width: 28px; height: 28px; display: grid; place-items: center; background: var(--coral); color: var(--on-accent); border: 2px solid var(--line); border-radius: 8px; font-style: normal; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; font: 600 11px/1 var(--mono); letter-spacing: 0.04em; }
.steps span { padding: 6px 10px; border: 1.5px solid var(--muted); border-radius: 999px; color: var(--muted); }
.steps span.done { border-color: var(--line); color: var(--ink); background: var(--card); }
.steps span.now { border: 2px solid var(--line); background: #CFF25A; color: #1B1A17; }
.spacer { flex: 1; }
.wrap { width: 100%; min-width: 0; max-width: 1120px; margin: 0 auto; padding-block: 28px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 22px; }
.narrow { max-width: 720px; }
.kicker { font: 600 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.big { font-size: clamp(34px, 5vw, 58px); }
.mid { font-size: clamp(26px, 3.4vw, 40px); }
.lede { font-size: 18px; color: var(--muted); max-width: min(62ch, 100%); overflow-wrap: anywhere; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); font: 600 12px/1.1 var(--mono); }
.chip.lime { background: #CFF25A; color: #1B1A17; } .chip.sun { background: var(--sun); color: var(--on-accent); } .chip.ink { background: var(--ink); color: var(--paper); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; min-width: 0; }

/* ---------- buttons */
.btn { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--shadow); font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.primary { background: var(--coral); color: var(--on-accent); font-family: var(--display); font-weight: 800; font-size: 20px; box-shadow: var(--sh-big); min-height: 58px; }
.btn.small { min-height: 40px; padding: 0 12px; font-size: 14px; box-shadow: 2px 2px 0 var(--shadow); border-radius: 11px; }
.btn.ghost { box-shadow: none; background: transparent; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.on { background: #CFF25A; color: #1B1A17; }
.link { background: none; border: 0; padding: 0; min-height: 44px; text-decoration: underline; cursor: pointer; color: var(--ink); }

/* ---------- upload */
.drop { position: relative; border: 2.5px dashed var(--line); border-radius: 22px; padding: 26px; background: var(--card); display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .15s; }
.drop.hot, .drop.open { background: #CFF25A; color: #1B1A17; transform: scale(1.015); box-shadow: 8px 8px 0 var(--shadow); }
.drop.press { transform: scale(1.01); box-shadow: 6px 6px 0 var(--shadow); }
/* the cover shown over the whole files panel while files are dragged over the screen or the file window is open */
.dzmsg { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; text-align: center; border-radius: inherit; background: #CFF25A; color: #1B1A17;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s .2s; }
.dzmsg svg { width: 76px; height: 76px; padding: 16px; border: 2px solid var(--line); border-radius: 22px; background: var(--card); color: var(--ink); }
.dzmsg b { font: 800 clamp(22px, 4.4vw, 32px)/1.1 var(--display); letter-spacing: -0.01em; }
.dzmsg span { font-size: 15px; }
.drop.hot .dzmsg, .drop.open .dzmsg { opacity: 1; visibility: visible; transition: opacity .2s; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.file { display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 0; }
.file img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- questions */
.qtop { display: flex; align-items: center; gap: 12px; }
.bar { flex: 1; height: 16px; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.bar i { display: block; height: 100%; background: var(--coral); border-right: 2px solid var(--line); transition: width .35s ease; }
.round { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 16px;
  box-shadow: 3px 3px 0 var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; font-weight: 700; font-size: 17px; }
.opt b { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 8px; font: 600 13px var(--mono); background: var(--paper); }
.opt.sel { background: #CFF25A; color: #1B1A17; box-shadow: 5px 5px 0 var(--shadow); transform: translate(-2px, -2px); }
.opt.sel b { background: var(--ink); color: var(--lime); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.thumb { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.thumb img { width: 100%; height: 110px; object-fit: cover; background: #fff; border-bottom: 2px solid var(--line); display: block; }
.thumb span { padding: 8px 10px; font-weight: 700; font-size: 14px; }
.thumb.sel { background: #CFF25A; color: #1B1A17; box-shadow: 5px 5px 0 var(--shadow); transform: translate(-2px, -2px); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 600 11px var(--mono); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.input { min-height: 50px; padding: 0 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); width: 100%; }
.input.filled { background: #CFF25A; color: #1B1A17; }
.err { color: var(--danger); font-size: 14px; font-weight: 600; }
/* title block, concept box and brief (D80, D82) */
.opt:disabled { cursor: default; }
.opt:disabled:not(.sel) { opacity: .45; }
.chip .link { font: inherit; padding: 0 0 0 4px; color: inherit; }
.cline { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; background: #CFF25A; color: #1B1A17; }
.cline .kicker, .cline .link { color: var(--on-accent); }
.cline .ctext { margin: 0; font: 700 22px/1.3 var(--display); }

/* ---------- summary and plan */
.heard { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.heard button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--shadow); cursor: pointer; }
.heard small { font: 500 11px/1.3 var(--mono); color: var(--muted); }
.heard strong { font-size: 16px; line-height: 1.25; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 899px) { .two { grid-template-columns: minmax(0, 1fr); } }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; min-width: 0; }
.item.off { opacity: .55; background: transparent; border-style: dashed; }
.item .num { font: 800 22px var(--display); color: var(--coral); width: 28px; flex: none; text-align: center; }
.item .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .txt strong { font-size: 16px; } .item .txt span { font-size: 14px; color: var(--muted); }
.item .ctl { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ctl button { min-width: 40px; min-height: 40px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; font-weight: 700; font-size: 13px; padding: 0 8px; }
.ctl button[disabled] { opacity: .35; cursor: default; }
.pair { display: inline-flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tag { align-self: flex-start; font: 500 11px var(--mono); padding: 3px 8px; background: var(--sun); color: var(--on-accent); border: 1.5px solid var(--line); border-radius: 6px; }
.alts { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 2px dashed var(--line); border-radius: 14px; }
.sth { flex: none; border: 1.5px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.sth .mini, .mini { overflow: hidden; position: relative; }
.mini .sheet { position: absolute; left: 0; top: 0; }

/* ---------- price */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.opt.sel, .thumb.sel span { color: var(--on-accent); }
/* the pricing card (landing Pricing and the pay screen; app.js tierCard): price head, AI amount, model chips, the
   "how far it goes" ladder, plain check rows (key ones highlighted), the guarantee and a full-width coral button */
.tiers { align-items: stretch; }   /* both cards the same height, buttons on one line (owner, 17 Nov) */
.tc-body { flex: 1; }
.tc-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.tc-incl { padding: 14px 16px; background: var(--sun); color: #1B1A17; border: 2px solid var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--shadow); }
.tc-incl-h { display: flex; align-items: center; gap: 8px; font: 800 22px/1.15 var(--display); letter-spacing: -0.01em; }
.tc-incl-h svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tc-incl-s { margin-top: 6px; font-size: 14px; line-height: 1.45; color: #3D3A33; }
.tc { position: relative; display: flex; flex-direction: column; min-width: 0; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 20px; box-shadow: var(--sh); }
.tc[data-act] { cursor: pointer; }
.tc.sel { box-shadow: var(--sh-big); outline: 3px solid var(--coral); outline-offset: 3px; }
.tc-tag { position: absolute; top: -14px; right: 16px; padding: 5px 10px; background: var(--sun); color: #1B1A17; border: 2px solid var(--line); border-radius: 10px; font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; box-shadow: 2px 2px 0 var(--shadow); }
.tc-head { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; border-bottom: 2px solid var(--line); border-radius: 18px 18px 0 0; }
.tc.sel .tc-head, .tc.feat .tc-head { background: #CFF25A; color: #1B1A17; }
.tc.sel .tc-head .kicker, .tc.feat .tc-head .kicker, .tc.sel .tc-head .fx, .tc.feat .tc-head .fx { color: #3D3A33; }
.tc .price { font: 800 clamp(44px, 6vw, 56px)/1 var(--display); letter-spacing: -0.03em; }
.tc .fx { margin-top: 0; }
.tc-promise { font: 700 17px/1.3 var(--body); }
.tc-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.tc-amt b { display: flex; align-items: center; gap: 8px; font: 800 21px/1.15 var(--display); letter-spacing: -0.01em; }
.tc-amt .spark { width: 22px; height: 22px; flex: none; fill: var(--coral); }
.tc-amt small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.tc-blk { display: flex; flex-direction: column; gap: 7px; }
.tc-lab { font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tc-blk .tc-lab + .tc-chips + .tc-lab { margin-top: 4px; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mchip, .lchip { display: inline-flex; align-items: center; padding: 5px 9px; border: 1.5px solid var(--line); border-radius: 8px; font: 700 13px/1.15 var(--body); color: #1B1A17; }
.mchip.sun, .lchip.sun { background: var(--sun); } .mchip.lime, .lchip.lime { background: #CFF25A; }
.mchip.coral, .lchip.coral { background: var(--coral); } .mchip.lilac { background: var(--lilac); color: var(--ink); }
.mchip.coral { background: #FFD9CF; }
.lchip.off { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tc-note { font-size: 13px; line-height: 1.35; color: var(--muted); }
.tc-plus { font: 700 15px/1.3 var(--body); }
.tc-plus span { color: var(--coral); }
.tc-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.3; }
.tc-rows li { display: flex; gap: 9px; align-items: flex-start; }
.tc-rows li > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tc-rows b { font-weight: 600; }
.tc-rows small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.tc-rows li.tc-hl b { display: inline; padding: 1px 6px; background: #CFF25A; color: #1B1A17; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tc-lab + .tc-rows { margin-top: -6px; }
.tc-guar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 700; font-size: 15px; line-height: 1.3; }
.tc-guar .dic { width: 20px; height: 20px; flex: none; }
.tc-btn { width: 100%; margin-top: 2px; background: var(--coral); color: var(--on-accent); font-family: var(--display); font-weight: 800; font-size: 18px; }
.tc-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tc-btn.on { background: #CFF25A; color: #1B1A17; }
@media (max-width: 640px) { .tiers { gap: 28px; } .tc-head { padding: 18px 16px 16px; } .tc-body { padding: 16px; } }
.blue { max-height: 380px; position: relative; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.blue::after { content: "PREVIEW"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 30px var(--display); letter-spacing: .2em; color: rgba(27, 26, 23, .5);
  background: repeating-linear-gradient(45deg, rgba(255, 246, 234, .55) 0 14px, rgba(255, 246, 234, .25) 14px 28px); }

/* ---------- making */
.making { display: flex; flex-direction: column; gap: 10px; }
.mk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 600; }
.mk i { width: 26px; height: 26px; flex: none; border: 2px solid var(--line); border-radius: 999px; display: grid; place-items: center; font-style: normal; font-size: 13px; }
.mk.done i { background: #CFF25A; color: #1B1A17; } .mk.now { background: var(--sun); color: var(--on-accent); } .mk.todo { opacity: .5; }
.mk.now i { border-style: dashed; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- result and files */
.result { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 899px) { .result { grid-template-columns: minmax(0, 1fr); } }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.strip .sth { border-radius: 6px; }
.dl { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; flex-wrap: wrap; }
.dl .txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.dl .txt span { color: var(--muted); font-size: 14px; }
.status { font: 500 13px var(--mono); color: var(--muted); min-height: 1.2em; }

/* ---------- editor */
.ed { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
body.editing { overflow: hidden; }
body.editing #app { height: 100%; }
.edbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-block: 8px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px));
  border-bottom: 2px solid var(--line); background: var(--paper); }
.seg { display: inline-flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.seg button { min-height: 40px; padding: 0 12px; border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: 14px; }
.seg button + button { border-left: 2px solid var(--line); }
.seg button.on { background: #CFF25A; color: #1B1A17; }
.saved { font: 500 12px var(--mono); color: var(--muted); }
.edbody { display: grid; grid-template-columns: 172px minmax(0, 1fr) 312px; min-height: 0; }
.edbody.board { grid-template-columns: minmax(0, 1fr) 312px; }
.edbody.board .rail { display: none; }
.rail { overflow-y: auto; padding: 12px; border-right: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.rail button { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: 600 11px var(--mono); color: var(--muted); }
.rail button .sth { border-width: 2px; border-radius: 6px; }
.rail button.on .sth { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral); }
.viewport { position: relative; overflow: auto; background: var(--sp-desk); padding: 16px; touch-action: pan-x pan-y; }
.holder { position: relative; margin: 0 auto; box-shadow: 0 6px 30px rgba(0, 0, 0, .18); }
.panel { overflow-y: auto; border-left: 2px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.panel h3 { font-size: 22px; }
.panel .tip { font-size: 14px; color: var(--muted); }
.panel .warn { padding: 10px 12px; border: 2px solid var(--danger); color: var(--danger); border-radius: 12px; font-weight: 600; font-size: 14px; }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick button { padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; aspect-ratio: 4 / 3; }
.pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.range { width: 100%; accent-color: var(--coral); }
.vz { display: inline-flex; gap: 4px; }
#ghost { position: fixed; z-index: 99; width: 120px; height: 80px; object-fit: cover; border: 2px solid var(--line); border-radius: 8px; transform: translate(-50%, -50%) rotate(-3deg); pointer-events: none; box-shadow: var(--sh); }
@media (max-width: 899px) {
  .edbody, .edbody.board { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .edbody.board { grid-template-rows: minmax(0, 1fr); }
  .rail { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 2px solid var(--line); padding: 8px 12px; }
  .rail button { flex: none; width: 96px; }
  .panel { position: fixed; left: 0; right: 0; bottom: 0; max-height: 46vh; border-left: 0; border-top: 2px solid var(--line); z-index: 25; box-shadow: 0 -6px 20px rgba(0, 0, 0, .15);
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .panel.min { max-height: calc(68px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
  .edbar .seg button { padding: 0 10px; }
  .viewport { padding-bottom: 50vh; }
  .hide-phone { display: none !important; }
}
@media (min-width: 900px) { .show-phone { display: none !important; } }

/* ---------- the sheet (board / slide) */
.sheet { position: relative; background: #fff; overflow: hidden; color: #1D1D1B; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet * { box-sizing: border-box; }
.sheet img, .sheet .tb, .sheet .slot, .sheet .lab, .sheet .ov, .sheet svg { position: absolute; }
.sheet .slot { overflow: hidden; }
.sheet .slot img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.sheet .deco { display: block; }
.sheet .ov { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.sheet .ov svg, .sheet .static { left: 0; top: 0; overflow: visible; }
.sheet .lab { white-space: nowrap; display: block; pointer-events: auto; text-shadow: 0 0 1.5px #fff, 0 0 1.5px #fff, 0 0 3px #fff; }
.sheet .lab[data-label] { cursor: pointer; }
.sheet .lab.sc, .sheet .lab.nth { pointer-events: none; text-shadow: 0 0 1.5px #fff, 0 0 3px #fff; }
.sheet .tb { display: flex; flex-direction: column; }
.sheet .tb p { margin: 0; }
.sheet .tb.nw p { white-space: nowrap; }
.sheet .info table { border-collapse: collapse; }
.sheet .info th { text-transform: uppercase; text-align: left; padding: 0 3mm .7mm 0; white-space: nowrap; vertical-align: baseline; font-size: 7.5pt; }
.sheet .info td { padding: 0 0 .7mm 0; vertical-align: baseline; line-height: 1.3; }
.sheet.editable .slot { cursor: pointer; }
.sheet.editable .slot.is-sel { cursor: grab; outline: 0.9mm solid #FF5A36; outline-offset: -0.45mm; touch-action: none; }
.sheet.editable .slot.drop { outline: 1.2mm dashed #2F5BFF; outline-offset: -0.6mm; }
.sheet.editable .tb { cursor: text; }
.sheet.editable .tb:hover, .sheet.editable .lab[data-label]:hover { outline: 0.35mm dashed rgba(47, 91, 255, .7); }
.sheet.editable .tb.is-sel, .sheet.editable .lab.is-sel { outline: 0.6mm solid #2F5BFF; outline-offset: 0.6mm; }
.sheet.editable .tb.editing { outline: 0.6mm solid #FF5A36; background: rgba(255, 216, 77, .12); }
.sheet.editable .tb.locked { cursor: pointer; }
.sheet.editable .tb.over { outline: 0.6mm dashed #B42A17; }
.sheet .tb [contenteditable], .sheet .tb[contenteditable] { -webkit-user-modify: read-write-plaintext-only; }
.shoot-host { position: fixed; left: -100000px; top: 0; }

/* ---------- toast and dialog */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; max-width: min(560px, calc(100% - 32px));
  padding: 12px 16px; background: var(--ink); color: var(--paper); border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--sh); }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(27, 26, 23, .45); padding: 16px; }
.modal .card { max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: 12px; }

.opt b.ico { width: 40px; height: 40px; border-radius: 10px; color: var(--ink); }
/* question 1 ("What are you making?"): each option with a short sub-line */
.opt .ot { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt .ot small { font-size: 13px; font-weight: 400; line-height: 1.3; opacity: .72; }

.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.pcard { border: 2px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; box-shadow: 3px 3px 0 var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.pcard img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--line); background: var(--paper); }
.pcard .pbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.pcard b { font: 700 15px/1.25 var(--body, inherit); }

.rlabel { margin: 0 0 8px; font-size: 15px; } .rlabel b { font-weight: 700; font-size: 17px; }

.ewrap { position: relative; }
.editbtn { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: 700 13px/1 var(--body); box-shadow: 2px 2px 0 var(--shadow); cursor: pointer; }
.editbtn svg { width: 14px; height: 14px; }
.editbtn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }
.editbtn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.btn.big { min-height: 60px; padding: 0 26px; font-size: 18px; }

.rlabel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .rlabel b.chip { font-size: 14px; padding: 7px 13px; }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.steps span.done { color: var(--ink); }
.steps span.justdone { background: #CFF25A; color: #1B1A17; animation: pop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.bar i { transition: width .45s cubic-bezier(.3, 1.4, .6, 1); position: relative; }
.bar i::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(255, 216, 77, .35); }
@media (prefers-reduced-motion: reduce) { .steps span.justdone { animation: none; } .bar i { transition: none; } }

.howto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.howto div { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); font: 600 13px/1.2 var(--body); min-width: 0; }
.howto svg { width: 20px; height: 20px; flex: none; color: var(--coral); }

.hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

.pdl { margin: 18px 0 8px; font: 700 14px/1.2 var(--body); }
.pdlgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pdlgrid .btn { justify-content: flex-start; font-size: 13px; padding: 0 10px; }

/* Editor toolbar at the bottom (owner: keeps it away from the browser's own bar at the top) */
.ed { grid-template-rows: minmax(0, 1fr) auto; }
.ed > .edbody { grid-row: 1; }
.ed > .edbar { grid-row: 2; border-bottom: 0; border-top: 2px solid var(--line); padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
.pdlgrid .btn { background: #CFF25A; color: #1B1A17; }
.pdlgrid .btn:hover { background: var(--lime); }

.btn.dlall { flex-direction: column; align-items: flex-start; gap: 1px; background: #CFF25A; color: #1B1A17; min-height: 46px; line-height: 1.1; }
.btn.dlall span { font-weight: 800; font-size: 14px; }
.btn.dlall small { font: 500 11px/1.2 var(--body); opacity: .8; }

.stars { display: flex; gap: 8px; margin: 6px 0 18px; }
.star { width: 52px; height: 52px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); display: grid; place-items: center; cursor: pointer; box-shadow: 3px 3px 0 var(--shadow); }
.star svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.star.on { background: var(--sun); } .star.on svg { fill: var(--ink); }
.star:hover { transform: translate(-1px, -1px); }
.sharecard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; border: 2px solid var(--line); border-radius: 18px; background: var(--card); padding: 16px; box-shadow: 3px 3px 0 var(--shadow); margin-bottom: 18px; }
@media (max-width: 640px) { .sharecard { grid-template-columns: minmax(0, 1fr); } }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.ba figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ba img, .ba .sth { width: 100%; border: 1.5px solid var(--line); border-radius: 6px; }
.ba figcaption { font: 600 12px/1 var(--mono); }
.sharetxt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sharetxt .input { font-size: 13px; }
.codechip { font-size: 14px; padding: 8px 14px; }
.sharetwo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.deal { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; border: 2px solid var(--line); border-radius: 22px; background: var(--card); padding: 22px; box-shadow: 4px 4px 0 var(--shadow); margin-top: 8px; }
@media (max-width: 720px) { .deal { grid-template-columns: minmax(0, 1fr); } .dealprev { order: 2; } }
.dealprev { display: flex; flex-direction: column; gap: 10px; }
.dealtxt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.deal.deal2 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.deal.deal3 { grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 28px; }
.deal3 .gets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deal3 .gets li:not(.key) { padding: 9px 11px; } .deal3 .gets b { font-size: 14.5px; } .deal3 .gets span { font-size: 12.5px; } .deal3 .dealtxt { gap: 10px; }
@media (max-width: 960px) { .deal.deal3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .deal3 .gets { grid-template-columns: minmax(0, 1fr); } }
/* board and deck at equal weight */
.sheets { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: start; }
.sbox { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sgrid.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sgrid .sth { border-radius: 3px; }
@media (max-width: 720px) { .sheets { grid-template-columns: minmax(0, 1fr); } .sgrid, .sgrid.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gets { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .gets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gets { grid-template-columns: minmax(0, 1fr); } }
.gets li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.gets li:not(.key) { padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); }
.gets svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--on-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; background: var(--lime); border: 2px solid var(--line); border-radius: 7px; padding: 2px; }
.gets b { display: block; font-weight: 700; } .gets span { font-size: 13.5px; color: var(--muted); }

.btn.shiny { position: relative; overflow: hidden; justify-content: flex-start; gap: 14px; min-height: 72px; padding: 0 22px; border-radius: 18px;
  background: linear-gradient(135deg, var(--lime), #E9FF9A 45%, var(--lime)); color: var(--on-accent); box-shadow: 4px 4px 0 var(--shadow); text-align: left; }
.btn.shiny::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: shine 2.8s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn.shiny .spark { width: 28px; height: 28px; flex: none; fill: var(--on-accent); }
.btn.shiny .cta { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.btn.shiny .cta b { font-size: 19px; font-weight: 800; } .btn.shiny .cta small { font-size: 13px; font-weight: 600; opacity: .8; }
.btn.shiny .arrow { font-size: 24px; font-weight: 800; transition: transform .15s; }
.btn.shiny:hover .arrow { transform: translateX(4px); }
.btn.small-shiny { min-height: 60px; } .btn.small-shiny .cta b { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .btn.shiny::after { animation: none; display: none; } }

.role { display: inline-block; align-self: flex-start; font: 600 11.5px/1.2 var(--mono); padding: 3px 8px; border-radius: 999px; background: var(--sun); color: var(--on-accent); margin: 2px 0; }

.btn.shiny .cta b, .btn.shiny .cta small { white-space: nowrap; }
.btn.small-shiny { padding: 0 16px; gap: 10px; } .btn.small-shiny .spark { width: 22px; height: 22px; }

.gets li.key { grid-column: 1 / -1; order: -1; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, var(--sun), var(--lime)); color: var(--on-accent); box-shadow: 3px 3px 0 var(--shadow); }
.gets li.key b { font-size: 18px; } .gets li.key span { color: var(--on-accent); opacity: .8; }
.gets li.key svg { background: var(--card); stroke: var(--ink); }
.keytag { display: block; font: 700 11px/1 var(--mono); font-style: normal; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }

/* Shiny CTA on every main button before payment (owner) */
body[data-screen="upload"] .btn.primary, body[data-screen="q"] .btn.primary, body[data-screen="heard"] .btn.primary, body[data-screen="plan"] .btn.primary, body[data-screen="price"] .btn.primary { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--lime), #E9FF9A 45%, var(--lime)); color: var(--on-accent); }
body[data-screen="upload"] .btn.primary::after, body[data-screen="q"] .btn.primary::after, body[data-screen="heard"] .btn.primary::after, body[data-screen="plan"] .btn.primary::after, body[data-screen="price"] .btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: shine 2.8s ease-in-out infinite; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body[data-screen="upload"] .btn.primary::after, body[data-screen="q"] .btn.primary::after, body[data-screen="heard"] .btn.primary::after, body[data-screen="plan"] .btn.primary::after, body[data-screen="price"] .btn.primary::after { animation: none; display: none; } }

.guide { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1.5px dashed var(--line); font-size: 14px; }

.file { position: relative; }
.rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--shadow); }
.rm svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.rm:hover { background: var(--coral); color: var(--on-accent); }
.rm:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.backbar { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: 14px; }
.backbar .link { font-weight: 700; }
.steps span.back { cursor: pointer; } .steps span.back:hover { background: #CFF25A; color: #1B1A17; }
.steps span.back:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.item .txt span.role { color: var(--on-accent); background: var(--sun); font: 700 12.5px/1.2 var(--body); padding: 4px 9px; }

.btn.shiny.dlall2 { min-height: 76px; padding: 0 24px; } .btn.shiny.dlall2 > svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn.shiny.dlall2 .cta b { font-size: 21px; }
.did { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.didgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pair { margin: 0; border: 2px solid var(--line); border-radius: 16px; background: var(--card); padding: 12px; box-shadow: 3px 3px 0 var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pimgs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.pimgs > div { position: relative; min-width: 0; }
.pimgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; display: block; }
.pimgs em { position: absolute; left: 6px; top: 6px; font: 700 10.5px/1 var(--mono); font-style: normal; padding: 4px 6px; border-radius: 6px; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.pimgs em.after { background: #CFF25A; color: #1B1A17; }
.parrow { font-size: 22px; font-weight: 800; }
.pair figcaption { display: flex; flex-direction: column; gap: 2px; } .pair figcaption span { color: var(--muted); font-size: 14px; }

/* ---------- landing page (findgreatarchitecture.com/studio): same tokens and parts as the app */
.lnav .llinks { display: flex; gap: 18px; font-weight: 600; }
.lnav .llinks a { color: var(--ink); text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; }
.lnav .llinks a:hover { border-bottom-color: var(--coral); }
.land section { scroll-margin-top: 80px; }
.land .wrap { padding-block: 40px; }
.huge { font-size: clamp(42px, 6.4vw, 84px); line-height: .95; letter-spacing: -0.035em; }
.hl { background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 82%; background-size: 100% 42%; animation: hilite .8s ease .5s both; color: inherit; }
@keyframes hilite { from { background-size: 0% 42%; } to { background-size: 100% 42%; } }
:root[data-theme="dark"] .hl, .hl { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lhero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
@media (max-width: 899px) { .lhero { grid-template-columns: minmax(0, 1fr); } }
.lcopy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lcopy .btn.shiny { align-self: flex-start; }
/* headings for search, looks unchanged (29 Oct 2026): the hero H1 holds the small line and the big headline; each
   section's small label is its H2 and the big line under it is a styled paragraph */
.lh1 { display: flex; flex-direction: column; gap: 18px; font-weight: 800; }
.lh1 .huge { display: block; }
.hd { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
/* "What you download" strip under the hero: three file tiles, each with what it holds and what opens it */
.land .louts { padding-block: 0 24px; gap: 12px; }
.outs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.outs li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); min-width: 0; }
.outs li div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.outs b { font: 800 22px/1.1 var(--display); letter-spacing: -0.015em; }
.outs span { font-size: 14px; color: var(--muted); }
.docico { flex: none; width: 44px; height: 55px; }
.docico text { font: 700 11px var(--mono); fill: #1B1A17; letter-spacing: .02em; }
@media (max-width: 860px) { .outs { grid-template-columns: minmax(0, 1fr); gap: 10px; } .outs li { padding: 10px 14px; box-shadow: 3px 3px 0 var(--shadow); } .docico { width: 36px; height: 45px; } }
.gcredw summary { cursor: pointer; width: max-content; min-height: 44px; display: flex; align-items: center; font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gcredw summary:hover { color: var(--ink); }
.lart { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.2fr); align-items: center; gap: 12px; min-width: 0; }
.ptag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; z-index: 2; font: 700 11px/1 var(--mono); padding: 6px 9px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.ptag.lime { background: #CFF25A; color: #1B1A17; }
.lart .before { position: relative; min-width: 0; }
.crop { position: relative; background-color: #fff; background-repeat: no-repeat; border: 2px solid var(--line); border-radius: 5px; box-shadow: 3px 3px 0 var(--shadow); animation: fly .7s cubic-bezier(.2, .9, .3, 1.2) both; transform: rotate(var(--r, 0deg)); }
.crop.rough { filter: grayscale(.35) contrast(.92); }
@keyframes fly { from { transform: translateY(-40px) rotate(calc(var(--r, 0deg) * 3)); } to { transform: rotate(var(--r, 0deg)); } }
.c0 { animation-delay: .05s; } .c1 { animation-delay: .15s; } .c2 { animation-delay: .25s; } .c3 { animation-delay: .35s; } .c4 { animation-delay: .45s; } .c5 { animation-delay: .55s; }
.arrowcol { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.garrow { width: 64px; height: 40px; fill: var(--lime); stroke: var(--line); stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(3px 3px 0 var(--shadow)); }
.atag { font: 700 11px/1 var(--mono); padding: 5px 8px; border: 2px solid var(--line); border-radius: 999px; background: #CFF25A; color: #1B1A17; white-space: nowrap; }
.lart .after { position: relative; justify-self: stretch; display: flex; justify-content: center; min-width: 0; animation: boardIn .8s cubic-bezier(.2, .9, .3, 1.1) .7s both; }
/* taped to the wall, a rough grid; small torn strips of masking tape */
.lart .crops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; align-items: center; padding: 6px 4px 18px; }
.lart .crop::before { content: ""; position: absolute; left: var(--tx, 50%); top: -6px; width: 27%; height: 10px; transform: translateX(-50%) rotate(var(--t, -3deg));
  background: linear-gradient(180deg, rgb(246 234 196 / .86), rgb(232 216 168 / .8)); opacity: .92;
  clip-path: polygon(3% 0, 97% 0, 100% 18%, 96% 36%, 100% 55%, 96% 74%, 99% 100%, 2% 100%, 4% 78%, 0 58%, 4% 38%, 0 18%); }
.lart .c0 { --r: -3deg; --t: -4deg; --tx: 46%; } .lart .c1 { --r: 4deg; --t: 3deg; --tx: 55%; width: 78%; justify-self: center; } .lart .c2 { --r: 2deg; --t: -2deg; --tx: 40%; }
.lart .c3 { --r: -5deg; --t: 6deg; --tx: 58%; width: 86%; } .lart .c4 { --r: 3deg; --t: -5deg; --tx: 50%; width: 74%; justify-self: center; } .lart .c5 { --r: -2deg; --t: 2deg; --tx: 44%; }
@media (max-width: 520px) {
  .lart { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lart .crops { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .lart .crop { width: 100%; justify-self: stretch; }
  .arrowcol { flex-direction: row; justify-content: center; margin-top: 16px; } .garrow { transform: rotate(90deg); width: 52px; height: 32px; }
  .lart .after .sth { max-width: 300px; }
}
.lart .after .sth { border: 2px solid var(--line); border-radius: 4px; box-shadow: 6px 6px 0 var(--shadow); }
@keyframes boardIn { from { transform: translateY(50px) rotate(2deg); } to { transform: none; } }
.lsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lstep { position: relative; display: flex; flex-direction: column; gap: 8px; }
.lstep svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lstep p { color: var(--muted); }
.lnum { position: absolute; right: 14px; top: 10px; font: 800 40px/1 var(--display); color: var(--coral); }
.h3 { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; margin: 0; }
.band { background: #CFF25A; color: #1B1A17; border-block: 2px solid var(--line); }
.band .lede { color: var(--on-accent); opacity: .85; }
.band.dark { background: var(--ink); color: var(--paper); }
.bandin { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band .btn.shiny { flex: none; }
.band.dark .btn.shiny { box-shadow: 4px 4px 0 var(--coral); }
.narrow2 { max-width: 820px; }
.note { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 2px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 16px; }
.faq summary { min-height: 56px; display: flex; align-items: center; font-weight: 700; font-size: 17px; cursor: pointer; }
.faq details p { padding-bottom: 16px; color: var(--muted); }
/* Studio FGA in plain words (index.html #studio-text, 10 Nov 2026): plain HTML written into the page for search engines
   and visitors alike; on the landing app.js places it after Pricing. Same tokens as the rest, nothing hidden. */
.stext { gap: 12px; }
.land .stext { padding-block: 40px; }
.stext h2 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 22px; scroll-margin-top: 80px; }
.stext h2:first-child { margin-top: 0; }
.stext h3 { font-size: 19px; letter-spacing: -0.01em; margin-top: 10px; }
.stext p, .stext li { max-width: 68ch; line-height: 1.55; }
.stext h3 + p { color: var(--muted); }
.stext a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.stext a:hover { color: var(--coral); }
.stext ol { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stext ol li { counter-increment: st; position: relative; padding: 16px 16px 16px 58px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.stext ol li::before { content: counter(st); position: absolute; left: 16px; top: 12px; font: 800 30px/1 var(--display); color: var(--coral); }
.stext ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stext ul li { padding: 12px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; font-weight: 600; }
.stext ul a { text-decoration: none; display: block; }
.stext ul a::after { content: " →"; color: var(--coral); }
@media (max-width: 640px) { .stext ol, .stext ul { grid-template-columns: minmax(0, 1fr); } }
.ph { color: var(--danger); font-family: var(--mono); font-size: .9em; font-style: normal; }
.lfoot { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border-top: 2px solid var(--line); color: var(--muted); font-size: 14px; }
.lfoot .row { gap: 16px; }
/* export page extras */
.fmt { flex: none; width: 64px; text-align: center; font: 700 11px/1 var(--mono); padding: 10px 4px; border: 2px solid var(--line); border-radius: 10px; background: var(--sun); color: var(--on-accent); }
.two2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.two2 .card { display: flex; flex-direction: column; gap: 10px; }
.tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
/* emails */
.mail { display: flex; flex-direction: column; gap: 10px; }
.mhead { display: flex; flex-direction: column; gap: 4px; font-size: 14px; padding-bottom: 10px; border-bottom: 1.5px dashed var(--line); }
.mbody { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.mbody ul { margin: 0; padding-left: 18px; }
.mlogo { align-self: flex-start; box-shadow: none; }
.mbtn { align-self: flex-start; pointer-events: none; }
.mtable { border-collapse: collapse; font-size: 14px; } .mtable td { padding: 4px 18px 4px 0; border-bottom: 1px solid var(--muted); }
.msmall, .mfoot { font-size: 13px; color: var(--muted); }
.mlink { font: 600 13px var(--mono); }
.land .wrap > .btn.shiny { align-self: flex-start; }
.btn.shiny { max-width: 100%; }
@media (max-width: 560px) { .btn.shiny .cta b, .btn.shiny .cta small { white-space: normal; } }
.land { overflow-x: clip; }
/* legal pages */
.legal { display: flex; flex-direction: column; gap: 12px; }
.legal .link { align-self: flex-start; }
.legal h2.h3 { margin-top: 14px; }
.legal p, .legal li { max-width: 68ch; line-height: 1.55; }
.legal ul, .legal ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.legal p > em:only-child { color: var(--muted); font-style: normal; font: 500 12px var(--mono); }
.legal p .link, .faq p .link, .hint .link, .lfoot .link { display: inline; min-height: 0; align-self: auto; }
.tablewrap { overflow-x: auto; }
.ltable { border-collapse: collapse; min-width: 480px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; }
.ltable th, .ltable td { text-align: left; padding: 8px 12px; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.ltable th { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.lfoot p { max-width: 80ch; }

/* ---------- rating pop-up after the first download (accessible: native dialog, radio stars) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ratebox { border: 2px solid var(--line); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 6px 6px 0 var(--shadow); padding: 24px; width: min(460px, calc(100vw - 32px)); }
@media (max-width: 420px) { .ratebox { padding: 18px; } }
.ratebox::backdrop { background: rgb(0 0 0 / .5); }
.ratef { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.ratef .lede, .ratef .err { margin: 0; }
.rstars { display: flex; gap: 8px; border: 0; padding: 0; margin: 4px 0 0; }
.rstars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rstars label { flex: 1 1 0; max-width: 56px; min-width: 44px; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 14px; background: var(--card); display: grid; place-items: center; cursor: pointer; box-shadow: 3px 3px 0 var(--shadow); }
.rstars svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.rstars label.on { background: var(--sun); } .rstars label.on svg { fill: var(--ink); }
.rstars input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.rword { margin: 0; font-weight: 700; }
.ratef textarea.input { padding: 10px 14px; min-height: 84px; resize: vertical; }

/* ---------- live app additions (upload progress) */
.file.up img { opacity: .55; }
.file .upbar { flex: none; height: 10px; }
.file .upbar i { transition: width .2s linear; }

/* a step that is running: a moving bar and the time it has run, so it never looks stuck */
.mk .mkt { margin-left: auto; font: 600 12px/1 var(--mono); opacity: .8; }
.mk.now { position: relative; overflow: hidden; }
.mk.now::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 35%; background: var(--ink); opacity: .55; animation: mkrun 1.6s ease-in-out infinite; }
@keyframes mkrun { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .mk.now::after { animation: none; width: 100%; opacity: .25; } }
/* an upload on its way, or one that failed */
.file .spin { position: absolute; left: 50%; top: 32%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid var(--line); border-top-color: transparent; border-radius: 999px; animation: spin .9s linear infinite; }
.file { position: relative; }
.file.err img { opacity: .35; filter: grayscale(1); }
.file .ferr { color: var(--danger); font-size: 12px; white-space: normal; }
/* upload checks: a quiet note per file (amber when worth fixing), one nudge above Next */
.fnote { display: flex; gap: 5px; align-items: flex-start; margin: 0; font-size: 12px; line-height: 1.3; color: var(--muted); }
.fnote.warn { color: var(--warn); background: var(--warn-bg); border-radius: 7px; padding: 4px 6px; }
.fnote svg, .nudge svg { width: 14px; height: 14px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.file .fnote span { white-space: normal; overflow: visible; }
.fnote b { font-weight: 700; }
.nudge { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); font-size: 14px; box-shadow: 3px 3px 0 var(--shadow); }
.nudge span { flex: 1 1 200px; }
.nudge svg { width: 18px; height: 18px; margin: 0; }
.file .fkind { position: absolute; left: 8px; top: 8px; font: 700 11px/1 var(--mono); padding: 3px 6px; border: 2px solid var(--line); border-radius: 6px; background: var(--card); }

/* ---------- from the prototype, 3ed209a..d9a1f66: the composition preview (option 2) and the pay page */

/* ---------- buying panel (preview, first view): wider, calmer, with icons */
.deal.dealx { width: min(1320px, calc(100vw - 32px)); align-self: center; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: 36px; padding: 28px; }
@media (max-width: 1000px) { .deal.dealx { grid-template-columns: minmax(0, 1fr); } }
.dic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.magic { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 2px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, var(--sun), var(--lime)); color: var(--on-accent); box-shadow: 3px 3px 0 var(--shadow); }
.magic > .dic { width: 34px; height: 34px; padding: 6px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.magic b { display: block; font: 800 22px/1.15 var(--display); margin: 2px 0 4px; } .magic span { font-size: 14px; }
.trust { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 7px; } .trust .dic { width: 18px; height: 18px; color: var(--ink); }
/* the order card; included items across the full width below */
.order { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 2px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 5px 5px 0 var(--shadow); align-self: start; }
.osub { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.ohead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oprice { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; padding-bottom: 12px; border-bottom: 2px dashed var(--line); }
.oprice b { font: 800 44px/1 var(--display); } .oprice span { font-size: 13px; color: var(--muted); }
.ifull { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 2px solid var(--line); }
.icards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.icards li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); }
.icards .dic { width: 40px; height: 40px; padding: 8px; border: 2px solid var(--line); border-radius: 12px; background: #CFF25A; color: #1B1A17; margin-bottom: 4px; }
.icards b { font-size: 16px; } .icards span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 860px) { .icards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .icards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- composition preview (rule 26): faded own drawings, grey "new" boxes, text lines */
.comp { position: relative; width: 100%; background: #fff; border: 2px solid var(--line); border-radius: 4px; box-shadow: 4px 4px 0 var(--shadow); container-type: inline-size; overflow: hidden; }
.cs { position: absolute; margin: 0; padding: 0; border: 0; border-radius: 2px; display: grid; place-items: center; overflow: hidden; cursor: pointer; font: inherit; color: #1B1A17; transition: opacity .2s, outline-color .2s; }
.cs.student { background: #F2EFE8; }
.cs .ci { position: absolute; inset: 0; background-repeat: no-repeat; opacity: .4; filter: grayscale(.25); }
.cs .cl { position: relative; display: inline-flex; align-items: center; gap: .3em; max-width: 92%; font: 800 clamp(6px, 3.1cqw, 15px)/1.1 var(--display); background: rgb(255 255 255 / .9); padding: .3em .55em; border-radius: 4px; text-align: center; box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.cs.create { background: repeating-linear-gradient(135deg, #E6E3DC 0 7px, #DEDAD2 7px 14px); outline: 1.5px dashed #8E897F; outline-offset: -1.5px; }
.cs.create .cl { background: #1B1A17; color: #CFF25A; box-shadow: none; }
.cs .cl svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.cs.text { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: max(2px, 1.2cqw); padding: max(3px, 1.4cqw) 2px; background: transparent; }
.cs.text i, .cs.ctitle i { display: block; height: max(2px, .8cqw); background: #DAD6CD; border-radius: 2px; }
.cs.text i:nth-of-type(2) { width: 82%; } .cs.text i:nth-of-type(3) { width: 58%; }
.cs.text span { font: 600 clamp(5px, 1.9cqw, 10px)/1 var(--mono); color: #8A857B; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
.cs.ctitle { cursor: default; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: max(2px, 1cqw); }
.cs.ctitle b { font: 800 clamp(7px, 3.3cqw, 22px)/1.05 var(--display); letter-spacing: -.02em; text-align: left; }
.cs.ctitle i { width: 70%; } .cs.ctitle i + i { width: 45%; }
.cs.sel { outline: 3px solid var(--coral); outline-offset: 1px; z-index: 2; }
.cs:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; z-index: 2; }
.comp.show-yours .cs.create, .comp.show-yours .cs.text, .comp.show-yours .cs.ctitle { opacity: .12; }
.comp.show-new .cs.student, .comp.show-new .cs.text, .comp.show-new .cs.ctitle { opacity: .12; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; font-weight: 600; }
.lg { display: inline-flex; align-items: center; gap: 7px; } .lg i { width: 16px; height: 12px; border: 1.5px solid var(--line); border-radius: 3px; }
.lg.yours i { background: linear-gradient(135deg, #cfcabe, #f2efe8); } .lg.new i { background: repeating-linear-gradient(135deg, #E6E3DC 0 3px, #C9C4BA 3px 6px); border-style: dashed; } .lg.txt i { background: #fff; box-shadow: inset 0 -4px 0 #DAD6CD; }
.pvseg button, .pvtabs button { white-space: nowrap; }
.pvtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sinfo { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 2px dashed var(--line); border-radius: 14px; font-size: 14px; color: var(--muted); }
.sinfo b { color: var(--ink); font-size: 15px; }
.sinfo.on { border-style: solid; background: var(--paper); color: var(--ink); } .sinfo.on.create { background: #CFF25A; color: #1B1A17; } .sinfo.on.create b { color: var(--on-accent); }
.dslide { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dslide .comp { box-shadow: 3px 3px 0 var(--shadow); border-radius: 3px; }
.dslide figcaption { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; color: var(--muted); line-height: 1.35; } .dslide figcaption b { font-size: 14px; color: var(--ink); }
.pvhead h1 { margin: 2px 0 6px; } .pvhead .lede { margin: 0; max-width: 62ch; }

/* the sticky order card stays inside .pvtop, so it never slides over the deck or 'What's included' (owner comment) */
.pvtop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 14px 36px; align-items: start; min-width: 0; }
.deal.pv2 { grid-template-columns: minmax(0, 1fr); }
.pv2 .pvtop { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); }
/* the preview: tabs on a big stage, a sticky rail with the tap-to-see box and the order */
.pv2 .pvhead { grid-column: 1 / -1; }
.pvmain { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pvrail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; align-self: start; }
.pvstage.board .comp { max-width: 560px; margin: 0 auto; }
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
@media (max-width: 1000px) { .pvtop, .pv2 .pvtop { grid-template-columns: minmax(0, 1fr); } .pvrail { position: static; } }
@media (max-width: 560px) { .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pvseg button, .pvtabs button { padding-inline: 8px; font-size: 12.5px; } .deal.dealx { padding: 16px; } }
/* the call to action stays on screen the whole time on the preview page (owner comment) */
.pvwrap { padding-bottom: 120px; }
.ctabar { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border: 2px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 5px 5px 0 var(--shadow); }
.ctabar[hidden] { display: none; }
.ctabar div { display: flex; flex-direction: column; min-width: 0; } .ctabar b { font-size: 15px; } .ctabar span { font-size: 12.5px; color: var(--muted); }
.ctabar .btn { min-height: 46px; font-size: 17px; flex: none; }
.pvrail, .pvrail > *, .pvmain { min-width: 0; max-width: 100%; box-sizing: border-box; }

/* the jury deck list: order sits outside the card on a left rail; plain title, what the slide holds, the concept note */
.dlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.dlist::before { content: ""; position: absolute; left: 21px; top: 18px; bottom: 18px; width: 2px; background: var(--line); opacity: .35; }
.drow { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.dnum { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 999px; background: var(--card); font: 700 14px var(--mono); }
.dcard { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); }
.dthumb .comp { box-shadow: 2px 2px 0 var(--shadow); border-width: 1.5px; }
.dtxt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dtxt > b { font-size: 16px; }
.dcont { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.dcont li { font: 600 12px/1.2 var(--mono); padding: 4px 8px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.dnote { margin: 4px 0 0; font-size: 13.5px; font-style: italic; color: var(--muted); max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dctl { display: flex; gap: 6px; }
.dctl button { min-width: 36px; height: 36px; padding: 0 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 700; cursor: pointer; }
.dctl button:disabled { opacity: .35; cursor: default; }
.drow.off .dcard { opacity: .55; border-style: dashed; } .drow.off .dnum { opacity: .5; }
@media (max-width: 640px) { .dcard { grid-template-columns: 96px minmax(0, 1fr); } .dctl { grid-column: 1 / -1; } .drow { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; } .dnum { width: 34px; height: 34px; font-size: 12px; } .dlist::before { left: 16px; } }
@media (max-width: 560px) { .item { flex-wrap: wrap; } .item .txt { flex-basis: calc(100% - 40px); } .item .ctl { width: 100%; justify-content: flex-start; padding-left: 40px; } }
.order .btn.shiny { width: 100%; } .order .btn.shiny .cta { min-width: 0; } .order .btn.shiny b { white-space: nowrap; font-size: clamp(16px, 1.35vw, 19px); } .order .btn.shiny small { white-space: nowrap; } .order .btn.shiny .arrow { flex: none; }
@media (max-width: 560px) { .pvseg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; } .pvseg button { white-space: normal; line-height: 1.15; padding: 6px 4px; } }


/* your drawings get an AI mark too: AI Studio retouches them (owner comment) */
.cs .cl .aim { display: inline-flex; align-items: center; gap: .15em; margin-left: .2em; padding: .1em .35em; border-radius: 999px; background: #1B1A17; color: #CFF25A; font: 800 .72em/1 var(--display); font-style: normal; letter-spacing: .02em; }
.cs .cl .aim svg { width: .9em; height: .9em; }

/* preview page: less white space, so the whole layout shows in the first view (owner comment) */
.pvwrap { padding-top: 6px; gap: 10px; }
.pvwrap .backbar { margin: 0; font-size: 13px; }
.pvwrap .deal.dealx { margin-top: 0; padding: 16px 22px 22px; row-gap: 12px; }
.pvhead h1 { font-size: clamp(22px, 2.1vw, 28px); margin: 0; }
.pvhead .kicker { margin: 0; }
.order h2.mid { font-size: clamp(22px, 2vw, 28px); } .order { gap: 10px; padding: 18px; } .order .oprice b { font-size: 36px; }
.pvstage.board .comp { max-width: min(560px, calc((100svh - 375px) * .7063)); }
.pvstage.board .comp { min-width: min(100%, 300px); }

.airew { font-size: .78em; font-weight: 600; opacity: .75; margin-left: 2px; }

.oprice small { font-size: 14px; font-weight: 700; color: var(--muted); align-self: flex-end; margin-bottom: 4px; }

/* pay page: the landing's before/after (taped sheets -> A1 board) reinforces the choice (owner comment) */
.paywow { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 26px; border: 2px solid var(--line); border-radius: 18px; background: var(--card); }
.paywow .lart .after .sth { max-width: 300px; }

.paywrap { padding-bottom: 150px; }
.paybar .btn { min-width: 120px; }
.fxi { white-space: nowrap; }
.paybar b .fxi { font: 600 12.5px var(--mono); color: var(--muted); margin-left: 6px; }
.paybar .bsec { display: flex; flex-direction: row; align-items: flex-start; gap: 5px; margin-top: 1px; } .paybar .bsec .dic { width: 14px; height: 14px; margin-top: 1px; color: var(--ink); }
/* trust cues around the Pay button (owner, 13 Nov 2026): fixed-height-free text, no images, so nothing moves when the page settles */
.paytrust { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); }
.paytrust p { margin: 0; }
.paytrust .oline { font-size: 15px; } .paytrust .oamt { font-size: 15px; } .paytrust .oamt b { font: 800 22px/1.1 var(--display); }
.paytrust .oamt .fxi { font: 600 14px var(--mono); color: var(--muted); margin-left: 10px; } .paytrust .onote { color: var(--muted); font-size: 13.5px; }
.paytrust .trust { flex-direction: column; flex-wrap: nowrap; gap: 6px; margin: 0; font-size: 14px; color: var(--ink); }
.paytrust .hint { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 13px; } .paytrust .hint .dic { width: 18px; height: 18px; margin-top: 1px; color: var(--ink); }
.paytrust .hint a { display: inline; min-height: 0; }
#payBtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 420px) { .paybar b { font-size: 14px; } .paybar span { font-size: 12px; } .paybar .btn { min-width: 96px; padding: 0 16px; } }

/* clear, readable field label where it matters (owner comment) */
.field label.biglabel { font: 800 20px/1.2 var(--display); letter-spacing: -.01em; text-transform: none; color: var(--ink); }

/* the email box when Pay is pressed without it */
.input.needs { border-color: var(--danger); box-shadow: 0 0 0 4px rgb(220 60 40 / .25); animation: nudge .4s ease 2; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.savedjob { gap: 6px 14px; } .savedjob .chip { cursor: pointer; font-size: 13px; padding: 8px 12px; }
.card.stale { border-color: var(--coral); background: var(--sun); color: var(--on-accent); }

/* text slots drawn as the text will sit: a tiny kicker, a heading bar, body lines at the slot's real spacing */
.cs.text.tx2 { gap: 0; padding: max(1px, .4cqw) 1px; }
.cs.text.tx2 .tk { flex: none; font: 600 clamp(4px, 1.3cqw, 9px)/1 var(--mono); color: #8A857B; text-transform: uppercase; letter-spacing: .04em; text-align: left; margin-bottom: max(1px, .35cqw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs.text.tx2 .tl { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.cs.text.tx2 .tl i { align-self: center; height: 42%; min-height: 1px; max-height: 6px; background: #DAD6CD; border-radius: 2px; }
.cs.text.tx2 .tl i.th { height: 58%; max-height: 10px; width: 56%; background: #C4BFB4; }

/* label pills always fit their cell: one line, clipped as a last resort; compact and mark-only forms */
.cs .cl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 92%; max-height: 90%; box-sizing: border-box; }
.cs .cl.compact { padding: .25em .45em; gap: .2em; }
.cs .cl.mark { padding: .2em .35em; gap: .15em; }
.cs .cl.mark .aim { margin-left: 0; }

/* result without the editor: the board picture, the deck slides as pictures, loading shimmer, the files */
.rboardimg { display: block; width: 100%; max-width: 360px; aspect-ratio: 594 / 841; object-fit: contain; background: #fff; border: 2px solid var(--line); border-radius: 4px; box-shadow: 4px 4px 0 var(--shadow); }
.rslide { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; border: 1.5px solid var(--line); border-radius: 6px; }
.rboardimg.ph, .rslide.ph { background: linear-gradient(100deg, #EFECE6 30%, #F8F6F2 50%, #EFECE6 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .rboardimg.ph, .rslide.ph { animation: none; } }
.rguide { padding: 14px 16px; } .rguide .lede { font-size: 15px; }
.rfiles { display: flex; flex-direction: column; gap: 10px; }
.rba .after img { max-width: 300px; width: 100%; }
.waitfb { display: flex; flex-direction: column; gap: 10px; } .waitfb h2.mid { font-size: clamp(20px, 2.4vw, 26px); }

/* C1 (D101): the estimate line under a schematic drawing's tap-to-see text */
.sinfo .est { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; }
/* C8 (D101): "Leave my name off the board" on the name question */
.tick { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.tick input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--ink); cursor: pointer; }
/* D91: the one-tap building check on the preview, in the questions' multiple-choice style; never blocks the order */
.bcheck { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); min-width: 0; }
.bcheck .bq { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; flex: 1 1 260px; min-width: 0; }
.bcheck .bq .dic { width: 20px; height: 20px; flex: none; }
.bcheck .hint { flex-basis: 100%; }
.bcheck.done { border-style: dashed; padding-block: 8px; }
.bcheck.open { flex-direction: column; align-items: stretch; } .bcheck.open .bq { flex: none; }
.bgroups { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.bgroup { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bgroup .kicker { margin: 0; }
.bopts { display: flex; flex-wrap: wrap; gap: 8px; }
.bopt { min-height: 44px; min-width: 52px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.bopt.sel, .bopt.yes { background: #CFF25A; color: #1B1A17; box-shadow: 3px 3px 0 var(--shadow); }
.bopt:disabled { opacity: .45; cursor: default; }
@media (max-width: 560px) { .bgroups { gap: 10px 14px; } .bopt { padding: 0 12px; } }

/* hero upload box (owner, 5 Nov 2026). It grows when pressed, focused, hovered by a drag or open for file choice (owner,
   13 Nov 2026: "more surface area"). The wrapper keeps the resting height (--hd0, set by bindHeroDrop), the box is
   laid over it, so it grows downwards over empty space and nothing below moves. */
.hdwrap { position: relative; margin: 22px 0 12px; }
.hdwrap.on { height: var(--hd0); }
.hdwrap.on .hdrop { position: absolute; inset: 0 0 auto; min-height: var(--hd0); z-index: 6; }
.hdrop { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 2.5px dashed var(--line); border-radius: 22px; background: var(--card); box-shadow: 5px 5px 0 var(--shadow); cursor: pointer;
  transition: min-height .3s cubic-bezier(.2, .8, .2, 1), padding .3s cubic-bezier(.2, .8, .2, 1), gap .3s, transform .15s, box-shadow .2s, background .15s; }
.hdrop:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
.hdrop:focus-visible { outline: 3px solid var(--focus, #2F5BFF); outline-offset: 3px; }
.hdrop:is(:active, :focus-visible, .hot, .open) { min-height: 178px; padding: 38px 28px; gap: 22px; box-shadow: 8px 8px 0 var(--shadow); }
.hdrop.hot { background: #CFF25A; color: #1B1A17; }
.hdrop svg { flex: none; width: 44px; height: 44px; padding: 9px; border: 2px solid var(--line); border-radius: 14px; background: #CFF25A; color: #1B1A17; transition: width .3s, height .3s, padding .3s, border-radius .3s; }
.hdrop:is(:active, :focus-visible, .hot, .open) svg { width: 72px; height: 72px; padding: 16px; border-radius: 20px; }
.hdrop.hot svg { background: #fff; color: #1B1A17; }
.hdt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hdt b { position: relative; font: 800 21px/1.1 var(--display); letter-spacing: -0.01em; transition: font-size .3s; }
.hd-b { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .2s; }
.hdrop:is(:active, :focus-visible, .hot, .open) .hdt b { font-size: 28px; }
.hdrop:is(:active, :focus-visible, .hot, .open) .hd-a { position: absolute; left: 0; top: 0; opacity: 0; }
.hdrop:is(:active, :focus-visible, .hot, .open) .hd-b { position: static; opacity: 1; }
.hd-sub { font-size: 14px; color: var(--muted); transition: font-size .3s; }
.hdrop:is(:active, :focus-visible, .hot, .open) .hd-sub { font-size: 16px; }
.hdrop.hot .hd-sub { color: inherit; }
@media (max-width: 520px) { .hdrop { padding: 18px; gap: 12px; } .hdt b { font-size: 18px; }
  .hdrop:is(:active, :focus-visible, .hot, .open) { min-height: 156px; padding: 28px 18px; gap: 16px; }
  .hdrop:is(:active, :focus-visible, .hot, .open) svg { width: 60px; height: 60px; padding: 13px; }
  .hdrop:is(:active, :focus-visible, .hot, .open) .hdt b { font-size: 23px; } }

/* the whole deck, flip-through (owner, 5 Nov 2026) */
.flip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 18px; }
.ftrack { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: auto; padding: 6px 4px 14px; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.ftrack::-webkit-scrollbar { display: none; }
.ftrack:focus-visible { outline: 3px solid var(--focus, #2F5BFF); outline-offset: 2px; border-radius: 14px; }
.fcard { flex: 0 0 min(620px, 78%); scroll-snap-align: center; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 5px 5px 0 var(--shadow); overflow: hidden; }
.fcard .sth { border: 0; border-radius: 0; }
.farr { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 700 20px/1 var(--display); box-shadow: 3px 3px 0 var(--shadow); cursor: pointer; }
.farr:hover:not(:disabled) { background: #CFF25A; color: #1B1A17; }
.farr:disabled { opacity: .35; cursor: default; box-shadow: none; }
.fcount { margin: 6px 0 0; text-align: center; font: 600 13px/1.4 var(--mono); color: var(--muted); }
.fcount b { color: var(--ink); }
.fx { display: block; margin-top: 4px; font: 600 14px/1.2 var(--mono); color: var(--muted); }
@media (max-width: 640px) { .flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ftrack { grid-column: 1 / -1; grid-row: 1; } .flip .farr { grid-row: 2; justify-self: center; } .fcard { flex-basis: 86%; } }

/* what your free preview looks like (owner, 5 Nov 2026) */
.pvshow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
.pvshot { position: relative; margin: 0; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 6px 6px 0 var(--shadow); background: #FFF6EA; }
.pvshot img { display: block; width: 100%; height: auto; }
.pvpin { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #1B1A17; background: var(--coral); color: #fff; font: 800 15px/1 var(--display); box-shadow: 2px 2px 0 #1B1A17; }
.pvshot .pvpin { position: absolute; transform: translate(-50%, -50%); }
.pvlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pvlist li { display: flex; gap: 12px; align-items: flex-start; }
.pvlist li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pvlist b { font: 800 18px/1.2 var(--display); }
.pvlist span:not(.pvpin):not(.bopt) { color: var(--muted); font-size: 15px; line-height: 1.45; }
.pvbc { margin-top: 8px; pointer-events: none; } .pvbc .bopt { display: inline-flex; align-items: center; }
.pvbc .bq span { color: var(--ink) !important; }
.pvgo { margin: 18px 0 0; } .pvgo .link { font-weight: 700; font-size: 17px; }
@media (max-width: 899px) { .pvshow { grid-template-columns: minmax(0, 1fr); } .pvshot .pvpin { width: 24px; height: 24px; font-size: 13px; } }
/* showcase permission tick box (owner, 5 Nov 2026) */
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 6px 0 4px; font-weight: 600; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; accent-color: var(--lime); cursor: pointer; }
/* boards made with Studio FGA, the example gallery (owner, 5 Nov 2026) */
.ggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 8px; }
@media (max-width: 899px) { .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 560px) { .ggrid { grid-template-columns: minmax(0, 1fr); } }
.gcard { display: flex; flex-direction: column; padding: 0; min-width: 0; overflow: hidden; text-align: left; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 16px; box-shadow: 4px 4px 0 var(--shadow); cursor: zoom-in; transition: transform .12s, box-shadow .12s; }
.gcard:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.gimg { position: relative; display: block; aspect-ratio: 2 / 3; background: var(--sp-desk); border-bottom: 2px solid var(--line); }
.gimg img { position: absolute; inset: 0; margin: auto; display: block; width: auto; height: auto; max-width: calc(100% - 32px); max-height: calc(100% - 32px); background: #fff; box-shadow: 3px 3px 0 rgb(27 26 23 / .35); }
.gtxt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 16px; min-width: 0; }
.gtxt b { font: 800 18px/1.2 var(--display); letter-spacing: -0.01em; }
.gmeta { font: 600 12px/1.3 var(--mono); color: var(--muted); }
.gcred { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 0; font: 500 12.5px/1.55 var(--body); color: var(--muted); max-width: 100ch; overflow-wrap: anywhere; }
.gcred .kicker { margin-bottom: 2px; } .gcred b { font-weight: 700; } .gcred .link, .glcred .link { font-weight: 600; }
.gcred .gnote { margin-top: 4px; font-style: italic; }
.gcred a[rel~="license"], .glcred a[rel~="license"] { white-space: nowrap; }
.glcred { flex: none; margin: 0; padding: 8px 16px 10px; border-top: 2px solid var(--line); font: 500 12.5px/1.5 var(--body); color: var(--muted); overflow-wrap: anywhere; }
.glight { width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 6px 6px 0 var(--shadow); overflow: hidden; }
.glight:not([open]) { display: none; }
.glight::backdrop { background: rgb(0 0 0 / .6); }
.glbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 10px 10px 16px; border-bottom: 2px solid var(--line); }
.glbar b { font: 800 16px/1.2 var(--display); min-width: 0; }
.glbar .link { font-size: 14px; font-weight: 700; }
.gx { width: 44px; height: 44px; flex: none; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: 700 26px/1 var(--body); box-shadow: 2px 2px 0 var(--shadow); cursor: pointer; }
.gx:hover { background: #CFF25A; color: #1B1A17; }
.glimg { flex: 1 1 auto; min-height: min(50dvh, 420px); display: flex; justify-content: center; align-items: center; overflow: auto; padding: 14px; background: var(--sp-desk); }
.glimg img { display: block; max-width: 100%; max-height: calc(100dvh - 210px); width: auto; height: auto; background: #fff; cursor: zoom-in; }
.glimg.zoom { align-items: flex-start; } .glimg.zoom img { max-height: none; cursor: zoom-out; }
@media (max-width: 560px) { .glbar { padding: 8px 8px 8px 12px; } .glbar b { font-size: 14px; flex-basis: calc(100% - 56px); order: -1; } .glbar .gx { order: -1; margin-left: auto; } .glbar .spacer { display: none; } .glimg { padding: 8px; } }
@media (max-width: 560px) { .gimg { aspect-ratio: auto; padding: 14px; } .gimg img { position: static; width: 100%; max-width: 100%; max-height: none; } }
/* "Watch it work": the walkthrough video, framed like the other landing cards */
.wvid { margin: 0; border: 2px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 5px 5px 0 var(--shadow); background: #1B1A17; }
.wvid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #1B1A17; }
@media (max-width: 560px) { .wvid { border-radius: 12px; box-shadow: 3px 3px 0 var(--shadow); } }

/* Owner view (#view=…, from the admin page's "View their preview"): a read-only look at a student's job */
.ownerview { background: var(--ink); color: var(--paper); font: 600 13px/1.3 system-ui, sans-serif; letter-spacing: .02em; text-align: center; padding: 7px 16px; overflow-wrap: anywhere; }
.vo-off { opacity: .45; cursor: not-allowed !important; }

/* D116: questions 4-6 as one card read from the sheets ("We read this from your sheets. Right?") */
.readcard { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 2px; }
.rc-line { margin: 0; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.rc-line .rc-k { font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rc-line .rc-sep { color: var(--muted); }
@media (max-width: 600px) { .rc-line .rc-item { display: block; } .rc-line .rc-item + .rc-sep { display: none; } .rc-line .rc-item + .rc-sep + .rc-item { margin-top: 8px; } }
.rc-field label { font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
/* D117: "Board in: English ▾" on the concept step */
.langpick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.langpick label { font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.langsel-wrap { position: relative; display: inline-flex; }
.langsel-wrap::after { content: "▾"; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink); font-size: 14px; }
.langsel { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 6px 32px 6px 12px; font: 600 15px/1.2 var(--body); color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.langsel:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
/* D120: the concept step's idea chips (tap up to two) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 4px; }
.chipbtn { min-height: 46px; padding: 0 16px; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 999px; font: 600 15px/1 var(--body); cursor: pointer; }
.chipbtn.sel { background: #CFF25A; color: #1B1A17; box-shadow: 3px 3px 0 var(--shadow); transform: translate(-1px, -1px); }
.chipbtn:disabled { opacity: .45; cursor: default; }
.chipbtn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
/* D122: two labelled groups (up to 5 taps in all, a live "3 of 5"), then three ways to answer */
.chipbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -8px; }
.chipbar .lede { margin: 0; }
.chipcount { font: 600 13px/1 var(--mono); letter-spacing: .04em; padding: 8px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); white-space: nowrap; }
.chipcount.full { background: #CFF25A; color: #1B1A17; }
.chipgrp { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chiphead { margin: 0; font: 600 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chipgrp .chipbtn { max-width: 100%; line-height: 1.15; padding-block: 6px; text-align: center; }
.ways { display: flex; flex-direction: column; gap: 10px; }
.way { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); }
.way.sel { box-shadow: var(--sh); }
.waybtn { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px; background: none; border: 0; border-radius: inherit; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.waybtn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.waydot { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); }
.way.sel .waydot { background: #CFF25A; box-shadow: inset 0 0 0 4px var(--card); }
.wayt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wayt b { font-size: 16px; }
.wayt small { font-size: 14px; line-height: 1.35; color: var(--muted); }
.ownbox { position: relative; padding: 0 14px 14px 48px; }
.ownbox[hidden], .waynote[hidden] { display: none; }
.ownbox textarea.input { min-height: 84px; padding: 10px 14px 28px; resize: vertical; font: 16px/1.4 var(--body); color: var(--ink); }
.owncount { position: absolute; right: 26px; bottom: 24px; font: 600 11px/1 var(--mono); color: var(--muted); }
.waynote { margin: 0; padding: 0 14px 14px 48px; }
@media (max-width: 600px) { .ownbox, .waynote { padding-left: 14px; } }

/* ---------- share button and social row (owner, 13 Nov 2026; share.css has the rest) in Studio's own outlined look */
.top .fga-share { border: 2px solid var(--line); background: var(--card); box-shadow: 3px 3px 0 var(--shadow); font-family: var(--body); }
.top .fga-share[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.fga-s-pop { border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.fga-s-main { background: var(--coral); border-color: var(--line); color: var(--on-accent); }
.fga-s-link, .fga-s-main { border-width: 2px; border-color: var(--line); }
.lfoot .fga-social a { color: var(--ink); }
/* ---------- loading: jury boards shuffling (owner, 13 Nov 2026). Four A1 sheets, 594 x 841, riffle like a deck of cards:
   the front one flies out, tucks behind the stack, the rest step forward. Pure CSS, transform and z-index only. Under
   prefers-reduced-motion the sheets sit still, fanned. Sizes: .xs .s (default) .m .l (set --w, the sheet's width). */
.shuf { --w: 30px; position: relative; display: block; flex: none; width: calc(var(--w) * 2.1); height: calc(var(--w) * 1.65); margin: auto; pointer-events: none; }
.shuf.xs { --w: 20px; } .shuf.m { --w: 42px; } .shuf.l { --w: 60px; }
.shuf i { position: absolute; left: calc(var(--w) * .9); bottom: 0; width: var(--w); height: calc(var(--w) * 1.416); border: 1.5px solid var(--line); border-radius: 2px; background:
  linear-gradient(var(--c), var(--c)) 11% 8% / 54% 7% no-repeat,
  linear-gradient(var(--desk), var(--desk)) 11% 22% / 78% 34% no-repeat,
  linear-gradient(var(--c), var(--c)) 11% 61% / 36% 22% no-repeat,
  repeating-linear-gradient(var(--line) 0 1px, transparent 1px 4px) 54% 63% / 35% 20% no-repeat,
  var(--card); box-shadow: 2px 2px 0 var(--shadow); will-change: transform; animation: shuf 3.6s ease-in-out infinite; }
.shuf i:nth-child(1) { --c: var(--coral); transform: none; z-index: 4; }
.shuf i:nth-child(2) { --c: var(--lime); transform: translate(4%, -4%) rotate(-1deg); z-index: 3; animation-delay: -2.7s; }
.shuf i:nth-child(3) { --c: var(--sun); transform: translate(8%, -8%) rotate(1.5deg); z-index: 2; animation-delay: -1.8s; }
.shuf i:nth-child(4) { --c: var(--lilac); transform: translate(12%, -12%) rotate(-1deg); z-index: 1; animation-delay: -.9s; }
@keyframes shuf {
  0%, 15% { transform: translate(0, 0) rotate(0); z-index: 4; }
  22%, 25% { transform: translate(-88%, 3%) rotate(-9deg); z-index: 4; }
  25.1% { z-index: 1; }
  32%, 45% { transform: translate(12%, -12%) rotate(-1deg); z-index: 1; }
  50%, 70% { transform: translate(8%, -8%) rotate(1.5deg); z-index: 2; }
  75%, 95% { transform: translate(4%, -4%) rotate(-1deg); z-index: 3; }
  100% { transform: translate(0, 0) rotate(0); z-index: 4; }
}
@media (prefers-reduced-motion: reduce) { .shuf i { animation: none !important; } .shuf i:nth-child(1) { transform: translate(-30%, 4%) rotate(-5deg); } }
/* a box of the picture's final shape, the shuffle over it until the picture has loaded (no jump when it arrives) */
.ldwrap { position: relative; }
.ldov { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: var(--sp-desk); border-radius: inherit; pointer-events: none; transition: opacity .25s ease, visibility 0s; }
.ldwrap.ready > .ldov { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
.ldov .shuf { margin: 0; }
/* last resort, no script needed: whatever happened, a shuffle never covers a preview for more than 40 s */
.ldov { animation: ldfree .25s ease 40s forwards; }
@keyframes ldfree { to { opacity: 0; visibility: hidden; } }
/* a picture that would not load (a 404): a plain neutral box with its title, never an endless shuffle */
.ldfail { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 8px; text-align: center; background: var(--sp-desk); border-radius: inherit; color: var(--muted); font: 600 13px/1.3 var(--mono); pointer-events: none; overflow: hidden; }
.ldfail b { font-weight: inherit; max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fcard > .ldov { z-index: 1; }
.fcard { position: relative; }
.glimg .glbox { aspect-ratio: var(--ar); width: min(100%, calc((100dvh - 210px) * var(--arn))); max-width: 100%; background: #fff; }
.glimg .glbox img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.glimg.zoom .glbox { width: 100%; }

/* The question remains the main task; this quiet, manual rail is a clearly optional add-on below the answer controls. */
.student-proof-optional { max-width: none; width: 100%; margin: 22px 0 0; padding: 13px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.student-proof-optional .student-proof-head { margin: 0 0 9px; }
.student-proof-optional .student-proof-title { color: var(--muted); font: 600 13px/1.3 var(--mono); letter-spacing: 0; }
.student-proof-optional .student-proof-rail { grid-auto-columns: min(220px, 56vw); gap: 10px; padding-bottom: 9px; }
.student-proof-optional .student-story { min-height: 118px; grid-template-rows: 118px; border-color: var(--line); border-radius: 10px; box-shadow: none; }
.student-proof-optional .student-story img { background: var(--bg); }
.student-gallery { margin-top: 34px; }
.student-gallery > .kicker { margin-bottom: 12px; }
.student-gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.student-gallery-card { display: block; min-width: 0; aspect-ratio: 1.42; overflow: hidden; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: zoom-in; }
.student-gallery-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.student-gallery-card:hover { border-color: var(--accent); }
.student-board-lightbox { --sp-desk: #EDE4D3; }
.student-board-lightbox .glimg img { max-width: 100%; max-height: calc(100dvh - 100px); }
@media (max-width: 760px) {
  .student-proof-optional { width: 100%; max-width: 100%; margin: 20px 0 0; padding: 12px 0 0; }
  .student-proof-optional .student-proof-rail { grid-auto-columns: min(220px, 64vw); }
  .student-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.rboardimg.ph, .rslide.ph { display: grid; place-items: center; }
.mkshuf { display: grid; place-items: center; padding: 8px 0 14px; }
.boot-land { min-height: 100vh; min-height: 100svh; }
.boot { display: flex; align-items: center; gap: 16px; margin: 22px 0 12px; min-height: 96px; font: 600 14px var(--mono); color: var(--muted); }
.boot .shuf { --w: 40px; margin: 0; }
.pimgs .ldov { border-radius: 8px; }
.ed .viewport > .ldov { z-index: 8; }


/* Student work and approved testimonials */
.student-proof { box-sizing: border-box; --sp-ink: #1B1A17; --sp-muted: #6B655B; --sp-card: #FFFFFF; --sp-desk: #EDE4D3; --sp-line: #1B1A17; --sp-accent: #CFF25A; min-width: 0; width: 100%; max-width: 1120px; margin: 20px auto 28px; padding: 20px; color: var(--sp-ink); background: #FFF6EA; border: 2px solid var(--sp-line); border-radius: 20px; box-shadow: 4px 4px 0 #1B1A17; }
.land .student-proof { width: calc(100% - 32px); margin-block: 12px 24px; }
.student-proof-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.student-proof-title { font-size: clamp(21px, 2.8vw, 30px); }
.student-proof-controls { display: flex; align-items: center; gap: 10px; flex: none; color: var(--sp-ink); }
.student-proof-controls button { width: 42px; height: 42px; border: 2px solid var(--sp-ink); border-radius: 12px; background: var(--sp-card); color: var(--sp-ink); cursor: pointer; font-size: 20px; }
.student-proof-controls button:hover { background: #CFF25A; color: #1B1A17; }
.student-proof-controls button:focus-visible, .student-proof-rail:focus-visible { outline: 3px solid #81A500; outline-offset: 3px; }
.student-proof-rail { position: relative; display: grid; width: 100%; min-width: 0; max-width: 100%; grid-auto-columns: minmax(280px, 36%); grid-auto-flow: column; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #81A500 transparent; padding: 2px 2px 12px; }
.student-proof-full .student-proof-rail { overflow-x: hidden; scroll-snap-type: none; scrollbar-width: none; }
.student-story { min-width: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: 165px 1fr; min-height: 210px; overflow: hidden; scroll-snap-align: start; color: var(--sp-ink); background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: 15px; }
.student-story img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; background: var(--sp-desk); }
.student-story-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
.student-story blockquote { margin: 0; font-size: 15px; line-height: 1.38; }
.student-story-copy p { margin-top: auto; color: var(--sp-muted); font-size: 13px; font-weight: 700; }
.student-story-copy .student-story-location { display: flex; align-items: center; gap: 7px; }
.student-story-location span { font-size: 18px; line-height: 1; }
.student-proof-invite { margin: 12px 2px 0; color: var(--sp-muted); font-size: 14px; line-height: 1.5; }
.student-proof-invite a { color: var(--sp-ink); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.student-proof-compact { width: 100%; max-width: min(100%, calc(100vw - 32px)); margin: 18px 0; padding: 14px; box-shadow: 2px 2px 0 var(--shadow); }
.student-proof-compact .student-proof-title { font-size: 20px; }
.student-proof-compact .student-proof-rail { grid-auto-columns: 100%; }
.student-proof-compact .student-story { width: 100%; min-height: 150px; grid-template-columns: 1fr; grid-template-rows: 112px 1fr; }
.student-proof-compact .student-story img { height: 112px; min-height: 0; }
.student-proof-compact .student-story-copy { padding: 10px 12px; gap: 5px; }
.student-proof-compact .student-story blockquote { font-size: 14px; }
.student-proof-compact .student-proof-controls button { width: 36px; height: 36px; }
@media (max-width: 760px) {
  .wrap { width: min(100%, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
  .land .student-proof { width: min(340px, calc(100vw - 32px)); }
  .student-proof { width: min(340px, calc(100vw - 32px)); max-width: min(340px, calc(100vw - 32px)); padding: 14px; border-radius: 16px; margin-inline: auto; }
  .student-proof-head { align-items: center; }
  .student-proof-controls { gap: 6px; }
  .student-proof-controls button { width: 38px; height: 38px; }
  .student-proof-rail, .student-proof-compact .student-proof-rail { grid-auto-columns: min(310px, calc(100vw - 120px)); }

  .student-story { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; min-height: 190px; }
  .student-story img { height: 150px; min-height: 0; }
  .student-story-copy { padding: 11px; }
  .student-story blockquote { font-size: 14px; }
}
@media (max-width: 420px) {
  .student-proof-head { align-items: flex-start; }
  .student-proof-title { font-size: 20px; }
  .student-proof-controls { gap: 4px; }
  .student-proof-controls button { width: 34px; height: 34px; }
  .student-proof-compact { width: min(320px, calc(100vw - 32px)); max-width: min(320px, calc(100vw - 32px)); padding: 12px; }
  .student-proof-compact .student-proof-rail { grid-auto-columns: 100%; }
  .student-proof-compact .student-proof-title { font-size: 18px; }
  .wrap.narrow > .lede { max-width: min(320px, calc(100vw - 80px)); }
  .student-proof-compact .student-story { grid-template-columns: 1fr; grid-template-rows: 112px 1fr; }
  .student-proof-compact .student-story-copy { padding: 9px; }
}

@media (prefers-reduced-motion: reduce) { .student-proof-rail { scroll-behavior: auto; } }

@media (min-width: 761px) and (max-width: 1000px) { .student-proof-full .student-proof-rail { grid-auto-columns: calc((100% - 14px) / 2); } }
@media (min-width: 1001px) { .student-proof-full .student-proof-rail { grid-auto-columns: calc((100% - 28px) / 3); } }

/* Quiet add-on below the answers; keep this after the shared proof card rules above. */
.student-proof-optional { box-sizing: border-box; width: 100%; max-width: none; margin: 22px 0 0; padding: 13px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.student-proof-optional .student-proof-head { margin: 0 0 9px; }
.student-proof-optional .student-proof-title { color: var(--muted); font: 600 13px/1.3 var(--mono); letter-spacing: 0; }
.student-proof-optional .student-proof-rail { width: 100%; max-width: 100%; grid-auto-columns: min(310px, 44%); gap: 12px; padding: 2px 2px 9px; }
.student-proof-optional .student-story { width: auto; min-height: 168px; grid-template-columns: 1fr; grid-template-rows: 168px; border-color: var(--line); border-radius: 10px; box-shadow: none; }
.student-proof-optional .student-story img { height: 100%; min-height: 0; background: transparent; }
.student-gallery { margin-top: 34px; }
.student-gallery > .kicker { margin-bottom: 12px; }
.student-gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.student-gallery-card { display: block; min-width: 0; aspect-ratio: 1.42; overflow: hidden; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: zoom-in; }
.student-gallery-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.student-gallery-card:hover { border-color: var(--lime); }
.student-board-lightbox { --sp-desk: #EDE4D3; }
.student-board-lightbox .glimg img { max-width: 100%; max-height: calc(100dvh - 100px); }
@media (max-width: 760px) {
  .student-proof-optional { width: 100%; max-width: 100%; margin: 20px 0 0; padding: 12px 0 0; }
  .student-proof-optional .student-proof-rail { grid-auto-columns: min(300px, 74vw); }
  .student-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
