[hidden] { display: none !important; }

/* The /clear look: the same tokens as .clear-page in src/styles.css (copied, the demo has no build step) and its
   Aptos fonts (copied into fonts/, the site's own copies are renamed by the build) */
@font-face { font-family: "Aptos"; src: url("fonts/aptos-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aptos"; src: url("fonts/aptos-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Aptos"; src: url("fonts/aptos-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Aptos Mono"; src: url("fonts/aptos-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root {
  --background: oklch(97.5% 0.001 200);
  --foreground: oklch(22% 0.015 160);
  --card: oklch(100% 0 0);
  --primary: #35966a;
  --primary-foreground: oklch(1 0 0);
  --primary-strong: oklch(0.44 0.1 158);
  --muted: oklch(95.5% 0.004 150);
  --muted-foreground: oklch(48% 0.012 160);
  --accent: oklch(92% 0.012 155);
  --signal: oklch(0.56 0.24 30);
  --border: oklch(91% 0.006 150);
  --border-strong: oklch(84% 0.012 150);
  --ink-soft: oklch(42% 0.015 160);
  --deep: oklch(0.24 0.03 162);
  --gradient-green: linear-gradient(135deg, #35966a, #14694f);
  --shadow-elevated: 0 1px 2px oklch(0.22 0.02 160 / 0.05), 0 20px 50px -12px oklch(0.34 0.07 160 / 0.22);
  --shadow-document: 0 3px 8px color-mix(in oklab, var(--deep) 25%, transparent), 0 12px 24px color-mix(in oklab, var(--deep) 30%, transparent);
  --shadow-cta: 0 12px 30px -10px color-mix(in oklab, var(--primary) 70%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.22);
  --glass: color-mix(in oklab, var(--card) 88%, transparent);
  --cs1: #3fae5a; --cs2: #e9c22b; --cs3: #f07a1a; --cs4: #d93a32;
  --sans: "Aptos", "Segoe UI", Calibri, ui-sans-serif, system-ui, sans-serif;
  --mono: "Aptos Mono", ui-monospace, "Segoe UI Mono", Menlo, monospace;
}
* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted-foreground); }
.small { font-size: 13px; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; background: var(--primary); color: var(--primary-foreground); padding: 11px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-cta); transition: transform .2s, filter .2s; white-space: nowrap; }
.btn:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.ghost { background: var(--card); color: var(--foreground); border-color: var(--border-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--muted); filter: none; }
.btn.small { padding: 7px 14px; font-size: 13.5px; }
.link { background: none; border: 0; padding: 0; color: var(--primary-strong); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.x { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted-foreground); padding: 2px 8px; }
.x:hover { color: var(--foreground); }

/* nav (standalone page only) */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in oklab, var(--background) 70%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.brand { font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.brand .sep { color: var(--muted-foreground); font-weight: 400; }
.mark { width: 18px; height: 18px; border: 2px solid var(--foreground); border-radius: 3px; position: relative; }
.mark::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 3px; height: 6px; border: 2px solid var(--primary); border-bottom: 0; border-radius: 6px 6px 0 0; }
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 14.5px; }
.nav nav a { text-decoration: none; color: var(--muted-foreground); }
.nav nav a:hover { color: var(--foreground); }

/* hero (standalone page only) */
.hero { padding: clamp(48px, 9vw, 112px) clamp(16px, 4vw, 48px) 40px; max-width: 1180px; margin: 0 auto; }
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--signal); margin: 0 0 18px; }
h1 { font-size: clamp(36px, 6vw, 72px); line-height: .95; letter-spacing: -.025em; margin: 0 0 24px; font-weight: 700; text-transform: uppercase; max-width: 16ch; }
h1 span { color: var(--primary); }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted-foreground); max-width: 60ch; margin: 0 0 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* demo */
.demo-wrap { padding: 32px clamp(16px, 3vw, 40px) 24px; max-width: 1480px; margin: 0 auto; scroll-margin-top: 64px; }
.demo-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.demo-head h2 { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; font-weight: 700; }
.demo-head p { margin: 0; }
.demo { position: relative; display: grid; grid-template-columns: 290px 1fr; height: min(78vh, 760px); min-height: 560px; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: var(--background); box-shadow: var(--shadow-elevated); }
.note { margin: 10px 2px 0; }

/* the bridge file */
.files { background: var(--card); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.crumbs { font-size: 11.5px; color: var(--muted-foreground); padding: 12px 16px 6px; } .crumbs b { color: var(--border-strong); font-weight: 400; }
.tree { list-style: none; margin: 0; padding: 4px 8px; overflow: auto; flex: 1; font-size: 13.5px; }
.tree li { list-style: none; }
.tree .dir { display: flex; align-items: center; gap: 8px; padding: 6px 8px; color: var(--muted-foreground); cursor: default; }
.tree .dir::before { content: ""; width: 14px; height: 11px; border: 1.5px solid var(--border-strong); border-radius: 2px; border-top-width: 3px; flex: none; }
.tree ul { margin: 0; padding: 0 0 4px 14px; }
.file { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; user-select: none; border: 1px solid transparent; transition: background .15s; }
.file:hover { background: var(--muted); }
.file.sel { background: var(--accent); border-color: color-mix(in oklab, var(--primary) 35%, transparent); }
.file.used .ico { opacity: .6; }
.file .ico { width: 26px; height: 32px; flex: none; border-radius: 3px; background: var(--card); border: 1px solid var(--border-strong); position: relative; box-shadow: 0 1px 2px oklch(0.22 0.02 160 / 0.08); }
.file .ico::after { content: "PDF"; position: absolute; left: -4px; bottom: 5px; background: var(--signal); color: #fff; font: 600 7.5px/1 var(--mono); padding: 2px 3px; border-radius: 2px; }
.file .ico.img { background: linear-gradient(160deg, #6f8a6b, #3b4f5c); }
.file .ico.img::after { content: "JPG"; background: #3b4f5c; }
.file .nm { min-width: 0; }
.file .nm b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.file .nm span { font-size: 11.5px; color: var(--muted-foreground); font-family: var(--mono); }
.file.static { cursor: default; opacity: .7; }
.files-hint { margin: 0; padding: 12px 16px 16px; font-size: 12.5px; color: var(--muted-foreground); border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; }
.drag-ico { width: 16px; height: 16px; border: 1.5px dashed var(--primary); border-radius: 3px; flex: none; margin-top: 2px; animation: nudge 1.8s ease-in-out infinite; }
.autoplay .drag-ico { display: none; }
@keyframes nudge { 50% { transform: translateX(5px); } }

/* stage */
.stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--background); }
.three { position: absolute; inset: 0; }
.three canvas { display: block; outline: none; }
.drop { position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; transition: opacity .3s; background-color: var(--background);
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 32px 32px; }
.drop-inner { text-align: center; padding: 44px 56px; border: 1.5px dashed var(--border-strong); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-elevated); transition: all .2s; }
.drop-inner p { margin: 6px 0; }
.drop-ico { width: 44px; height: 54px; margin: 0 auto 16px; border-radius: 4px; background: var(--card); border: 1px solid var(--border-strong); box-shadow: var(--shadow-document); position: relative; animation: bob 2.4s ease-in-out infinite; }
.drop-ico::after { content: ""; position: absolute; inset: 12px 9px auto; height: 2px; background: var(--border-strong); box-shadow: 0 7px 0 var(--border-strong), 0 14px 0 var(--border-strong), 0 21px 0 var(--border); }
@keyframes bob { 50% { transform: translateY(-6px); } }
.stage.over .drop-inner { border-color: var(--primary); background: var(--accent); transform: scale(1.02); }
.drop.gone { opacity: 0; pointer-events: none; }
/* ?autoplay: the build starts by itself, so no prompt to drop a report */
.autoplay .drop-inner { display: none; }

/* reading the report */
.scan { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.scan-page { position: relative; height: min(76%, 560px); aspect-ratio: 612 / 792; background: #fff; border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-document); transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); }
.scan-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-line { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--primary) 20%, transparent) 80%, var(--primary)); animation: sweep 1.1s linear infinite; }
@keyframes sweep { to { top: 100%; } }
.scan-boxes span { position: absolute; border: 1.5px solid var(--primary); background: color-mix(in oklab, var(--primary) 8%, transparent); border-radius: 2px; animation: pop .35s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.scan-meta { color: var(--muted-foreground); font-size: 12px; }
.scan.out { animation: out .6s forwards; }
@keyframes out { to { opacity: 0; transform: scale(.96); } }

/* pills over the viewer: what is on screen (top) and the step (bottom) */
.hud, .caption, .seg, .keys, .photo-bar { background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow-elevated); }
.hud { position: absolute; left: 16px; top: 16px; z-index: 5; font-size: 11.5px; line-height: 1.6; border-radius: 999px; padding: 6px 14px; max-width: calc(100% - 32px); }
.hud b { color: var(--primary-strong); font-weight: 400; }
.caption { position: absolute; left: 16px; bottom: 16px; z-index: 6; display: flex; align-items: center; gap: 10px; border-radius: 999px; padding: 8px 16px 8px 14px; font-size: 13px; max-width: calc(100% - 32px); }
.caption .n { font-family: var(--mono); font-size: 11.5px; color: var(--muted-foreground); }
.caption .n:empty { display: none; }
.caption .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 50%, transparent); animation: pulse 1.4s infinite; }
.pulse.done { animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.loading { position: absolute; right: 16px; top: 16px; z-index: 5; font-size: 11.5px; color: var(--muted-foreground); }

/* agent log: kept, but only shown with ?log (the step caption replaces it) */
html:not(.show-log) .log { display: none !important; }
.show-log .scan { padding-right: 380px; }
.show-log .hud { max-width: calc(100% - 420px); }
.show-log .legend { max-width: calc(100% - 400px); }
.log { position: absolute; right: 16px; top: 16px; bottom: 16px; width: 350px; z-index: 6; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column; overflow: hidden; transition: opacity .4s, transform .4s; }
.log.min { bottom: auto; max-height: 52px; }
.log-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.log-head .link { margin-left: auto; color: var(--muted-foreground); font-weight: 400; }
.steps { list-style: none; margin: 0; padding: 8px 0 16px; overflow: auto; flex: 1; scroll-behavior: smooth; }
.step { padding: 9px 16px; }
.step-t { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.st { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong); position: relative; }
.step.run .st { border-color: var(--primary); border-right-color: transparent; animation: spin .8s linear infinite; }
.step.ok .st { border-color: var(--primary); background: var(--primary); }
.step.ok .st::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.step.ok .step-t { color: var(--muted-foreground); }
.step .dur { margin-left: auto; font: 11px var(--mono); color: var(--muted-foreground); }
@keyframes spin { to { transform: rotate(360deg); } }
.lines { margin: 6px 0 0 24px; padding: 0; list-style: none; font: 11.5px/1.55 var(--mono); color: var(--ink-soft); }
.lines li { padding: 1px 0; white-space: pre-wrap; word-break: break-word; }
.lines .call { color: var(--primary-strong); }
.lines .call::before { content: "› "; color: var(--border-strong); }
.lines .res::before { content: "  "; }
.lines .res b { color: var(--foreground); font-weight: 400; }
.lines .thumbs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.lines .thumbs img { width: 38px; height: 28px; object-fit: cover; border-radius: 2px; animation: pop .3s; }
.caret::after { content: "▍"; color: var(--primary); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Model / Condition, and the condition key */
.legend { position: absolute; left: 16px; top: 16px; z-index: 6; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; max-width: calc(100% - 32px); }
.seg { display: inline-flex; border-radius: 999px; padding: 3px; }
.seg button { background: none; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--muted-foreground); font-size: 12.5px; font-weight: 600; transition: background .15s, color .15s; }
.seg button:hover { color: var(--foreground); }
.seg button.on { background: var(--primary); color: var(--primary-foreground); }
.keys { display: flex; flex-wrap: wrap; gap: 4px 12px; border-radius: 999px; padding: 7px 14px; font-size: 11.5px; }
.keys span { white-space: nowrap; }
.keys i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* the photo lined up with the model, during the build */
.photo { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.photo img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 2px; box-shadow: 0 0 0 1px var(--card), 0 0 0 9999px color-mix(in oklab, var(--background) 55%, transparent); transition: opacity .6s; }
.photo-bar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); border-radius: 999px; padding: 8px 18px; max-width: calc(100% - 32px); }
.photo-cap { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
.in-photo .legend, .in-photo .log, .in-photo .caption { display: none; }

/* pdf quick look */
.pdf { position: absolute; inset: 0 0 0 290px; z-index: 20; background: color-mix(in oklab, var(--background) 94%, transparent); backdrop-filter: blur(8px); display: flex; flex-direction: column; animation: pop .25s; }
.pdf-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--border); }
.pdf-ico { width: 18px; height: 22px; background: var(--card); border: 1px solid var(--border-strong); border-radius: 2px; flex: none; }
.pdf-title { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.pdf-title b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-pages { flex: 1; overflow: auto; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pdf-pages img { width: min(680px, 100%); aspect-ratio: 612 / 792; background: #fff; display: block; border-radius: 2px; box-shadow: var(--shadow-document); }
.pdf-pages .pn { font: 11px var(--mono); color: var(--muted-foreground); margin-top: -12px; }

/* what you get, send, footer (standalone page only) */
.what { max-width: 1180px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 48px) 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.what h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -.01em; font-weight: 600; }
.what h3::before { content: ""; display: block; width: 24px; height: 3px; background: var(--primary); margin-bottom: 14px; }
.what p { margin: 0; color: var(--muted-foreground); font-size: 15px; }
.send { max-width: 1180px; margin: 40px auto 0; padding: 56px clamp(16px, 4vw, 48px); border-top: 1px solid var(--border); text-align: center; }
.send h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.025em; margin: 0 0 10px; font-weight: 700; text-transform: uppercase; }
.send p { margin: 0 auto 24px; max-width: 52ch; }
.foot { max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); }

/* upload dialog (standalone page only) */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100% - 32px)); background: var(--card); color: var(--foreground); box-shadow: var(--shadow-elevated); }
dialog::backdrop { background: color-mix(in oklab, var(--deep) 45%, transparent); backdrop-filter: blur(3px); }
dialog form { padding: 22px 24px 24px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.drop-field { display: block; border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 22px; text-align: center; margin: 14px 0; cursor: pointer; background: var(--background); font-size: 14px; position: relative; }
.drop-field:hover, .drop-field.over { border-color: var(--primary); background: var(--accent); }
.drop-field input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.row input { border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; background: var(--card); }
.row input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.dlg-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.sent { margin: 14px 0 0; padding: 10px 12px; background: var(--accent); border-radius: 10px; font-size: 14px; }

/* narrow screens: file list on top */
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 0; }
  .pdf { inset: 0; }
  .files { border-right: 0; border-bottom: 1px solid var(--border); }
  .tree { max-height: 190px; }
  .files-hint { display: none; }
  .stage { height: 72vh; min-height: 480px; }
  .show-log .log { left: 10px; right: 10px; width: auto; top: auto; bottom: 10px; max-height: 42%; }
  .show-log .scan { padding: 16px 16px 45%; }
  .hud, .show-log .hud { left: 10px; top: 10px; max-width: calc(100% - 20px); }
  .legend, .show-log .legend { left: 10px; top: 10px; max-width: calc(100% - 20px); }
  .caption { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .what { grid-template-columns: 1fr 1fr; }
  .nav nav a { display: none; }
  .photo-cap { max-width: 240px; }
}
@media (max-width: 560px) {
  .what { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .drop-inner { padding: 28px 22px; }
}

/* view.html: the finished bridge in one colour mode, filling its iframe (the density on Bridge Twin's dark slate) */
.view .stage { position: fixed; inset: 0; height: auto; min-height: 0; }
.density body, .density .stage { background: #1f2933; }
.view .loading { left: 50%; top: 50%; right: auto; transform: translate(-50%, -50%); }
.density .loading { color: #cbd5e1; }
/* the condition view's component panel: on the right, below the viewer where the frame is narrow */
.condition .three { right: 360px; }
.side { position: absolute; top: 0; right: 0; bottom: 0; width: 360px; z-index: 7; display: flex; flex-direction: column; background: var(--card); border-left: 1px solid var(--border); }
.side-pick { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.side-pick label { font: 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); }
.side-pick label span { letter-spacing: .04em; text-transform: none; }
.side-pick select { width: 100%; border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 10px; background: var(--background); font-size: 13.5px; cursor: pointer; }
.side-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 16px 24px; }
.side .code { font: 11px var(--mono); color: var(--muted-foreground); }
.side h3 { margin: 4px 0 10px; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
.side h4 { margin: 22px 0 8px; font: 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); }
.side .cs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.side .g { flex: none; min-width: 40px; padding: 3px 8px; border-radius: 6px; text-align: center; color: #fff; font: 600 11.5px var(--mono); }
.side .g.none { background: var(--border-strong); color: var(--foreground); }
.side .ph { margin: 14px 0 0; }
.side .ph img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--muted); }
.side .ph figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }
.side .ph figcaption span { display: block; font: 11px var(--mono); color: var(--muted-foreground); }
.side .strip { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.side .strip button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; }
.side .strip button.on { border-color: var(--primary); }
.side .strip img { display: block; width: 56px; height: 42px; object-fit: cover; border-radius: 4px; }
.side .cmt { margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--background); }
.side .cmt-h { font-size: 12.5px; } .side .cmt-h span { color: var(--muted-foreground); }
.side .cmt p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.side .src { margin-top: 6px; font: 11px var(--mono); color: var(--muted-foreground); }
.side .finds { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.side .empty { margin: 14px 0 0; font-size: 13px; color: var(--muted-foreground); }
@media (max-width: 720px) {
  .condition .three { right: 0; bottom: 52%; }
  .side { top: 48%; left: 0; width: auto; border-left: 0; border-top: 1px solid var(--border); }
}

.ramp-bar { display: inline-block; width: 64px; height: 8px; margin: 0 7px; border-radius: 2px; vertical-align: 0; background: linear-gradient(90deg, #fde68a, #f97316, #b91c1c, #581c87); }

/* ?embed: the demo box alone, filling its iframe */
.embed body { background: transparent; }
.embed .nav, .embed .hero, .embed .what, .embed .send, .embed .foot, .embed .demo-head, .embed .note { display: none; }
.embed .demo-wrap { padding: 0; max-width: none; }
.embed .demo { height: 100vh; min-height: 0; border-radius: 0; border: 0; box-shadow: none; }
.embed .stage { height: auto; min-height: 0; }

/* ?nocaption: the host page shows the step itself */
.no-caption .caption { display: none !important; }
.no-hint .files-hint { display: none; }
