/* OpenVibe.Design — the studio and the room's own pieces. The page wears the person's theme (theme-loader); the
   previews wear the theme being tried: studio.js sets its tokens on .ds-previews, and everything inside reads only
   var(--…), so a preview is exactly what an OpenVibe site would look like. Phone first: the studio stacks (gallery as a
   swipeable row, then the previews, then the editor); from 1100 px it is three columns. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg-primary, #0a0f1c); color: var(--text-primary, #e6edf7); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; padding: 8px 12px; border-radius: 10px; background: var(--bg-card, #0f1729); color: inherit; }
.ds-wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px 64px; }
.ds a:not([class]) { color: var(--room-strong); }
.ds h2 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.ds h3:not(.ovk-card-title) { margin: 18px 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted, #7386a3); }
:where(.ds) .ovk-i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ds-kicker { margin: 0 0 4px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--room-strong); }
.ds-lede { margin: 8px 0 0; max-width: 720px; color: var(--text-secondary, #96a7c2); line-height: 1.55; }
.ds-fine { color: var(--text-muted, #7386a3); font-size: .84rem; line-height: 1.5; }
/* Where a page sits, above its h1: plain text and one link, the same on every page (the four doors, 2026-11-10). */
.ds-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; font-size: .86rem; color: var(--text-muted, #7386a3); }
.ds-crumbs a { color: var(--text-secondary, #96a7c2); text-decoration: none; font-weight: 700; }
.ds-crumbs a:hover { color: var(--room-strong); }
.ds-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ds-more { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--room-strong); }
.ds-more .ovk-i { width: 1em; height: 1em; }
.ds-page-h { padding-top: clamp(20px, 4vw, 40px); }
.ds-page-h h1, .ds-studio-h h1 { margin: 0; font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.ds-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.ds section { margin-top: clamp(26px, 4vw, 40px); }

/* Swatches: a theme as four dots and its name. */
.ds-swatch { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border, #1f2d47); background: var(--bg-card, #0f1729); color: var(--text-primary, #e6edf7); font: inherit; font-size: .9rem; text-align: left; text-decoration: none; cursor: pointer; transition: border-color var(--ov-dur-2, .15s), transform var(--ov-dur-2, .15s); }
.ds-swatch:hover, .ds-swatch:focus-visible { border-color: var(--room-accent); outline: none; }
.ds-swatch[aria-pressed="true"] { border-color: var(--room-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--room-accent) 35%, transparent); }
.ds-dots { display: inline-flex; }
.ds-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg-card, #0f1729); margin-left: -5px; }
.ds-dots i:first-child { margin-left: 0; }
.ds-swatch-name { font-weight: 700; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }  /* a theme's name wraps, never "Catppuccin La…" (rule names-are-never-cut) */
.ds-swatch-mode { font-size: .75rem; color: var(--text-muted, #7386a3); }
.ds-strip { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; }

/* The studio. */
.ds-studio-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: clamp(18px, 3vw, 32px) 0 14px; }
.ds-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.ds-gallery, .ds-stage, .ds-editor { min-width: 0; border-radius: 18px; border: 1px solid var(--border, #1f2d47); background: var(--bg-secondary, #101828); padding: 14px; }
.ds-gal-head, .ds-stage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ds-gal-head h2, .ds-stage-head h2 { margin: 0; }
.ds-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-card, #0f1729); border: 1px solid var(--border, #1f2d47); }
.ds-seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary, #96a7c2); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.ds-seg button[aria-pressed="true"] { background: var(--room-fill); color: var(--room-on); }
.ds-gal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ds-gal-list li[hidden] { display: none; }
.ds-see { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted, #7386a3); }
.ds-see select, .ds-submit input, .ds-field input[type=text] { min-height: 36px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--border, #1f2d47); background: var(--bg-input, #0d1322); color: var(--text-primary, #e6edf7); font: inherit; font-size: .86rem; }
@media (max-width: 1099px) {
    .ds-gal-list { grid-auto-flow: column; grid-auto-columns: minmax(180px, 64%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
    .ds-gal-list li { scroll-snap-align: start; }
}
@media (min-width: 1100px) {
    .ds-grid { grid-template-columns: 250px minmax(0, 1fr) 300px; align-items: start; }
    .ds-gallery { position: sticky; top: calc(var(--ovnav-real-h, 56px) + 12px); max-height: calc(100vh - var(--ovnav-real-h, 56px) - 24px); overflow-y: auto; }
    .ds-editor { position: sticky; top: calc(var(--ovnav-real-h, 56px) + 12px); }
}

/* The previews: only var(--…) inside, so they wear the theme being tried. */
.ds-previews { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); transition: filter var(--ov-dur-2, .2s); }
@media (min-width: 760px) { .ds-previews { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .pv-shop { grid-column: 1 / -1; } }
.pv-frame { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--bg-primary); color: var(--text-primary); border: 1px solid var(--border); min-width: 0; font-size: .86rem; }
.pv-label { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.pv-video { position: relative; aspect-ratio: 16 / 8; border-radius: 12px; background: radial-gradient(120% 120% at 70% 30%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%), linear-gradient(160deg, var(--bg-tertiary, var(--bg-card)), var(--bg-card)); }
.pv-badge { position: absolute; left: 8px; top: 8px; padding: 1px 7px; border-radius: 5px; background: color-mix(in srgb, var(--live-red, #e11d48) 80%, #000); color: #fff; font-size: .68rem; font-weight: 800; }
.pv-viewers { position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; border-radius: 5px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .7rem; font-weight: 700; }
.pv-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pv-col { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pv-col b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-col small, .pv-muted { color: var(--text-muted); }
.pv-av { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: hsl(var(--h, 200) 55% 45%); color: #fff; font-size: .72rem; font-weight: 800; }
.pv-av-lg { width: 36px; height: 36px; }
.pv-btn { flex: none; min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent-strong, var(--accent)); color: var(--on-accent-strong, var(--on-accent, #fff)); font: inherit; font-weight: 800; font-size: .8rem; }
.pv-chat { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); }
.pv-chat li { display: flex; align-items: flex-start; gap: 8px; color: var(--text-secondary); line-height: 1.35; }
.pv-chat b { color: var(--text-primary); }
.pv-chat .pv-me { justify-content: flex-end; }
.pv-me span { padding: 5px 10px; border-radius: 12px 12px 4px 12px; background: var(--accent-strong, var(--accent)); color: var(--on-accent-strong, #fff); font-weight: 600; }
.pv-room { margin: 0; font-weight: 800; }
.pv-composer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--bg-input, var(--bg-card)); border: 1px solid var(--border); color: var(--text-muted); }
.pv-send { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--accent-strong, var(--accent)); color: var(--on-accent-strong, #fff); }
.pv-send .ovk-i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pv-chips span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-secondary); font-size: .76rem; font-weight: 600; }
.pv-chips .is-on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); color: var(--accent-light, var(--accent)); }
.pv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pv-shoe { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); }
.pv-shoe-pic { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--bg-secondary); color: var(--accent); }
.pv-shoe-pic .ovk-i { width: 40%; height: auto; aspect-ratio: 1; stroke-width: 1.6; }
.pv-price { font-weight: 800; color: var(--text-primary); }
.pv-price s { font-weight: 500; color: var(--text-muted); }
.pv-chip { width: fit-content; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: .66rem; font-weight: 800; color: var(--success-text, #16a34a); background: color-mix(in srgb, var(--success-text, #16a34a) 15%, transparent); }

/* The editor. */
.ds-fields { display: grid; gap: 8px; }
.ds-field { display: grid; grid-template-columns: 1fr 42px 92px; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; }
.ds-field input[type=color] { width: 42px; height: 36px; padding: 2px; border-radius: 10px; border: 1px solid var(--border, #1f2d47); background: var(--bg-input, #0d1322); cursor: pointer; }
.ds-field input[type=text] { width: 92px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; }
.ds-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ds-checks li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--bg-card, #0f1729); border: 1px solid var(--border, #1f2d47); font-size: .82rem; }
.ds-checks li b { font-weight: 600; }
.ds-checks li span { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.ds-checks li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-right: 2px; }
.ds-checks li b { flex: 1; }
.ds-checks .is-pass::before { background: var(--success, #22c55e); }
.ds-checks .is-fail { border-color: color-mix(in srgb, var(--danger, #ef4444) 55%, var(--border, #1f2d47)); }
.ds-checks .is-fail::before { background: var(--danger, #ef4444); }
.ds-checks .is-fail span { color: var(--danger-text, #f87171); }
.ds-checks .is-warn::before { background: var(--warning, #f59e0b); }
.ds-checks.is-demo { max-width: 420px; }
.ds-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ds-status { min-height: 1.4em; margin: 10px 0 0; font-size: .86rem; color: var(--text-secondary, #96a7c2); }
.ds-submit, .ds-history { margin-top: 14px; border-top: 1px solid var(--border, #1f2d47); padding-top: 10px; }
.ds-submit summary, .ds-history summary { cursor: pointer; font-weight: 700; font-size: .9rem; min-height: 32px; display: flex; align-items: center; }
.ds-submit form { display: grid; gap: 8px; margin-top: 8px; }
.ds-submit label { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--text-muted, #7386a3); }
.ds-history ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ds-history li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; font-size: .84rem; }
.ds-history li.ds-fine { display: block; }
.ds-hist-dot { grid-row: 1 / span 2; width: 14px; height: 14px; border-radius: 50%; background: var(--border, #1f2d47); }
.ds-history li small { grid-column: 2; color: var(--text-muted, #7386a3); }
.ds-history li button { grid-column: 3; grid-row: 1 / span 2; }

/* The home's motif: the theme orb (each dot a theme's accent); its dashed ring breathes, it never spins. */
.ds-orb { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto; }
.ds-orb-ring { position: absolute; inset: 8%; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--room-accent) 40%, transparent); animation: ds-breathe 9s var(--ov-ease-in-out, ease-in-out) infinite alternate; }
.ds-orb-core { position: absolute; inset: 30%; border-radius: 50%; background: conic-gradient(from 90deg, var(--room-accent), #5b7cfa, #22c55e, #f59e0b, #ef4444, var(--room-accent)); filter: saturate(1.1); box-shadow: 0 20px 60px -20px var(--room-accent); }
.ds-orb i { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; border: 3px solid var(--bg-primary, #0a0f1c); transform: rotate(calc(var(--i) * 60deg)) translateY(-136%) rotate(calc(var(--i) * -60deg)); }
@supports (container-type: inline-size) { .ds-orb { container-type: inline-size; } .ds-orb i { transform: rotate(calc(var(--i) * 60deg)) translateY(-42cqw) rotate(calc(var(--i) * -60deg)); } }
@keyframes ds-breathe { to { transform: scale(1.04); opacity: .55; } }
.ds-scene-pv { transform: scale(.98); }
.ds-scene-pv .pv-shop { display: none; }
.ds-scene-pv { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 600px) { .ds-scene-pv { grid-template-columns: minmax(0, 1fr); } .ds-scene-pv .pv-chatroom { display: none; } }
.ds-colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 20px 0 0; }
.ds-colours > div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border, #1f2d47); background: var(--bg-card, #0f1729); }
.ds-colours dt { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted, #7386a3); }
.ds-colours dd { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; }
.ds-colours dd i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border, #1f2d47); }
.ds-eps { display: grid; gap: 10px; margin: 0; }
.ds-eps > div { padding: 12px 14px; border-radius: 14px; background: var(--bg-card, #0f1729); border: 1px solid var(--border, #1f2d47); }
.ds-eps dt code { font: 600 .9rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--room-strong); overflow-wrap: anywhere; }
.ds-eps dd { margin: 6px 0 0; color: var(--text-secondary, #96a7c2); line-height: 1.5; }

/* ── The Design Arena (plan 2026-10-28 §5.2 v2) ──────────────────────────────────────────────────────────────
   Server-rendered placeholders for the main session's design. The generated page only ever appears inside an
   iframe, so nothing here can affect the Arena's own layout. Phone first: a pair stacks; from 1000 px it is two
   columns, and a desktop shot is scaled down rather than widening the page. */
.ar-page { padding-top: clamp(18px, 4vw, 40px); }
.ar-hero { max-width: 900px; padding-bottom: 18px; }
.ar-kicker { margin: 0 0 4px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--room-strong); }
.ar-hero h1, .ar-page-h h1 { margin: 0; font-size: clamp(1.7rem, 4.5vw, 3rem); line-height: 1.06; letter-spacing: -.035em; }
.ar-lede { margin: 10px 0 0; max-width: 780px; color: var(--text-secondary, #96a7c2); line-height: 1.55; }
.ar-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 0; }
.ar-fine { color: var(--text-muted, #7386a3); font-size: .84rem; line-height: 1.5; }
.ar-notice { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--border, #26344d); border-radius: 12px; background: var(--bg-card, #0f1729); }
.ar-status { min-height: 1.4em; color: var(--text-secondary, #96a7c2); }
.ar-meta { color: var(--text-secondary, #96a7c2); }
.ar-boards, .ar-open { margin-top: 30px; }
.ar-lb { margin-top: 22px; }
.ar-lb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; }
.ar-lb-head h2 { margin: 0; font-size: 1.05rem; }
.ar-more { font-weight: 700; font-size: .88rem; color: var(--room-strong); text-decoration: none; }
.ar-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ar-table th, .ar-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--border, #26344d); white-space: nowrap; }
.ar-table th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #7386a3); }
.ar-table .ar-lb-model { font-weight: 700; }
.ar-table .ar-lb-elo { font-weight: 800; color: var(--room-strong); }
.ar-lb-empty td, .ar-empty { color: var(--text-muted, #7386a3); }
.ar-form { display: grid; gap: 14px; max-width: 760px; margin-top: 18px; }
.ar-form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.ar-form select, .ar-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border, #26344d); background: var(--bg-card, #0f1729); color: inherit; font: inherit; }
.ar-form textarea { resize: vertical; line-height: 1.5; }
.ar-vote-pair { display: grid; gap: 18px; margin-top: 18px; }
.ar-vote-side { min-width: 0; padding: 12px; border: 1px solid var(--border, #26344d); border-radius: 14px; background: var(--bg-card, #0f1729); }
.ar-vote-side :is(h2, h3) { margin: 0 0 8px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #7386a3); }
.ar-output { padding: 14px; border: 1px solid var(--border, #26344d); border-radius: 16px; background: var(--bg-card, #0f1729); min-width: 0; }
.ar-output-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; }
.ar-output-h h2 { margin: 0; font-size: 1rem; }
.ar-output-error { padding: 12px; border-radius: 10px; background: color-mix(in srgb, #b42318 18%, transparent); color: var(--text-primary, #e6edf7); }
.ar-shot-label { margin: 4px 0 0; font-size: .74rem; color: var(--text-muted, #7386a3); }
.ar-reveal { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .ar-reveal { grid-template-columns: 1fr 1fr; } }
.ar-reveal-side { padding: 14px; border: 1px solid var(--border, #26344d); border-radius: 14px; background: var(--bg-card, #0f1729); }
.ar-reveal-side h2 { margin: 0 0 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #7386a3); }

/* Arena design pass. A pair is compared one viewport at a time (the switch); arena.js scales each 1280 or 390 px
   frame to the width it has (--s), and without it a desktop shot is a fixed half-size and a phone 0.6. */
.ar-view { display: inline-flex; gap: 2px; margin: 18px 0 0; padding: 3px; border: 1px solid var(--border, #26344d); border-radius: 999px; background: var(--bg-card, #0f1729); }
.ar-view input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ar-view label { min-height: 34px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: .84rem; color: var(--text-secondary, #96a7c2); cursor: pointer; }
.ar-view input:checked + label { background: color-mix(in srgb, var(--room-strong) 20%, transparent); color: var(--text-primary, #e6edf7); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--room-strong) 45%, transparent); }
.ar-view input:focus-visible + label { outline: 2px solid var(--room-strong); outline-offset: 2px; }
.ar-page:has(#ar-view-phone:checked) .ar-shot--desktop, .ar-page:has(#ar-view-desktop:checked) .ar-shot--phone { display: none; }

.ar-shot { margin: 0; min-width: 0; }
.ar-shot + .ar-shot { margin-top: 16px; }
.ar-shot-frame { --s: .5; position: relative; overflow: hidden; background: #fff; }
.ar-shot-frame .ar-frame { position: absolute; top: 0; left: 0; display: block; border: 0; background: #fff; transform: scale(var(--s)); transform-origin: top left; }
.ar-shot-label { margin: 6px 0 0; font-size: .72rem; letter-spacing: .04em; color: var(--text-muted, #7386a3); }
/* Desktop: a browser window, the title bar drawn in CSS */
.ar-shot--desktop::before { content: ''; display: block; height: 22px; border: 1px solid var(--border, #26344d); border-bottom: 0; border-radius: 10px 10px 0 0;
    background: radial-gradient(circle at 13px 50%, #ff5f57 3.5px, transparent 4px), radial-gradient(circle at 26px 50%, #febc2e 3.5px, transparent 4px), radial-gradient(circle at 39px 50%, #28c840 3.5px, transparent 4px), var(--bg-elevated, var(--bg-secondary, #16213a)); }
.ar-shot--desktop .ar-shot-frame { width: min(100%, 640px); aspect-ratio: 1280 / 800; border: 1px solid var(--border, #26344d); border-top: 0; border-radius: 0 0 10px 10px; }
.ar-shot--desktop::before { width: min(100%, 640px); box-sizing: border-box; }
html.ar-fit .ar-shot--desktop .ar-shot-frame, html.ar-fit .ar-shot--desktop::before { width: 100%; }
/* Phone: a handset, centred in its column */
.ar-shot--phone { display: grid; justify-items: center; }
.ar-shot--phone .ar-shot-frame { --s: .6; box-sizing: content-box; width: calc(390px * var(--s)); aspect-ratio: 390 / 844; border: 7px solid #0b1020; border-radius: calc(46px * var(--s) + 7px);
    box-shadow: 0 0 0 1px var(--border, #26344d), 0 22px 44px -28px rgba(0, 0, 0, .7); }

/* Vote: two sides; the side a vote button names lights up while it is hovered or focused */
.ar-vote-pair { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 900px) { .ar-vote-pair { grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; } }
.ar-page:has(#ar-view-phone:checked) .ar-vote-pair { grid-template-columns: 1fr 1fr; gap: 10px; }
.ar-vote-side { transition: border-color var(--ov-dur-2, .15s), box-shadow var(--ov-dur-2, .15s); }
.ar-vote-side :is(h2, h3) { display: flex; align-items: center; gap: 8px; }
#ar-vote-left :is(h2, h3)::before, #ar-vote-right :is(h2, h3)::before { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--room-strong) 18%, transparent); color: var(--room-strong); font-size: .78rem; }
#ar-vote-left :is(h2, h3)::before { content: 'A'; }
#ar-vote-right :is(h2, h3)::before { content: 'B'; }
.ar-page:has(.ar-vote-btn[data-winner=left]:is(:hover, :focus-visible)) #ar-vote-left,
.ar-page:has(.ar-vote-btn[data-winner=right]:is(:hover, :focus-visible)) #ar-vote-right,
.ar-page:has(.ar-vote-btn[data-winner=tie]:is(:hover, :focus-visible)) .ar-vote-side { border-color: var(--room-strong); box-shadow: 0 0 0 1px var(--room-strong); }
.ar-page:has(.ar-vote-btn[data-winner=both_bad]:is(:hover, :focus-visible)) .ar-vote-side { border-color: color-mix(in srgb, #ef4444 60%, var(--border, #26344d)); }
/* The verdict stays in reach while the pair scrolls past (above the phone app bar) */
.ar-vote-actions { position: sticky; bottom: var(--ovnav-appbar-h, 0px); z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border, #26344d); background: color-mix(in srgb, var(--bg-primary, #0a0f1c) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (max-width: 759px) { .ar-vote-actions { display: grid; grid-template-columns: 1fr 1fr; } .ar-vote-actions .ovk-btn { justify-content: center; width: 100%; } }

/* Round: the outputs side by side where they fit */
.ar-outputs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); align-items: start; }
.ar-output-h h2 { overflow-wrap: anywhere; }

/* Leaderboards: one card per category, numbers right-aligned, the leader in the room colour */
.ar-lb { padding: 14px 16px 4px; border: 1px solid var(--border, #26344d); border-radius: 16px; background: var(--bg-card, #0f1729); overflow-x: auto; }
.ar-boards > .ar-lb-head h2 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
.ar-table tr:last-child td { border-bottom: 0; }
.ar-table th:nth-child(n+3), .ar-table td:nth-child(n+3) { text-align: right; }
.ar-table .ar-lb-rank { width: 2em; font-weight: 800; color: var(--text-muted, #7386a3); }
.ar-table .ar-lb-row:first-child .ar-lb-rank, .ar-table .ar-lb-row:first-child .ar-lb-model { color: var(--room-strong); }
.ar-table .ar-lb-row:hover td { background: color-mix(in srgb, var(--text-primary, #e6edf7) 4%, transparent); }
.ar-boards > p.ar-fine { margin-top: 12px; }
.ar-open { padding: 18px; border: 1px dashed var(--border, #26344d); border-radius: 16px; }
.ar-open h2 { margin: 0; }

/* Forms */
.ar-form select:focus-visible, .ar-form textarea:focus-visible { outline: 2px solid var(--room-strong); outline-offset: 1px; }
.ar-form textarea::placeholder { color: var(--text-muted, #7386a3); }
/* Design Studio A: a quiet prompt and canvas. */
.dv-visually-hidden { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.dv-create { max-width: 820px; margin: clamp(28px, 9vh, 120px) auto 80px; padding: 0 16px; }
.ds .dv-create { min-height: calc(100svh - 110px); }
.dv-create h1 { margin: 0 0 20px; font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.05em; line-height: 1.06; }
/* The composer: what is made on top, the words, then a tray of choices and the button. */
.dv-composer { position: relative; border: 1px solid var(--border); background: var(--bg-card); border-radius: 22px; padding: 8px; box-shadow: 0 22px 56px -26px color-mix(in srgb, var(--accent) 55%, transparent); transition: border-color .2s, box-shadow .3s; animation: dvIn .5s cubic-bezier(.2, .9, .3, 1.1) backwards; }
/* (backwards, not both: a transform that stays would make the composer the box its sheets are fixed to.) */
.dv-composer:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 26px 64px -24px color-mix(in srgb, var(--accent) 75%, transparent); }
@keyframes dvIn { from { opacity: 0; transform: translateY(calc(12px * var(--ov-move, 1))) scale(.985); } }
/* Seven kinds: one row that shares the width on a computer and rides sideways on a phone. */
.dv-kinds { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.dv-kinds label, .dv-opt, .dv-look { position: relative; display: block; cursor: pointer; }
.dv-kinds input, .dv-opt input, .dv-look input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.dv-kinds span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 8px; border-radius: 14px; color: var(--text-secondary); background: color-mix(in srgb, var(--text-primary) 5%, transparent); font-size: .92rem; transition: background-color .18s, color .18s, transform .12s; }
.dv-kinds b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-kinds svg { flex: none; transition: transform .35s cubic-bezier(.2, 1.4, .3, 1); }
.dv-kinds label:active span { transform: scale(.97); }
.dv-kinds input:checked + span { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-light, var(--accent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent); }
.dv-kinds input:checked + span svg { transform: scale(1.12) rotate(calc(-4deg * var(--ov-move, 1))); }
.dv-kinds input:focus-visible + span, .dv-opt input:focus-visible + span, .dv-look input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dv-create textarea { display: block; width: 100%; box-sizing: border-box; min-height: 132px; padding: 16px 12px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 1.12rem; line-height: 1.45; }
.dv-create textarea::placeholder { color: var(--text-muted); }
.dv-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
/* A choice in the tray: its name, what is chosen, and a sheet of the options (under it on a computer, from the bottom on a phone). */
.dv-mod { position: relative; min-width: 0; }
.dv-mod > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 12px 0 10px; border-radius: 999px; cursor: pointer; user-select: none; background: color-mix(in srgb, var(--text-primary) 5%, transparent); color: var(--text-secondary); font-size: .88rem; transition: background-color .18s, transform .12s; }
.dv-mod > summary::-webkit-details-marker { display: none; }
.dv-mod > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 2px 3px 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .2s; }
.dv-mod[open] > summary::after { transform: translateY(3px) rotate(225deg); }
.dv-mod > summary:hover, .dv-mod[open] > summary { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dv-mod > summary:active { transform: scale(.97); }
.dv-mod > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dv-mod > summary svg { flex: none; width: 18px; height: 18px; color: var(--accent-light, var(--accent)); }
.dv-mod-k { color: var(--text-muted); font-weight: 600; }
.dv-mod > summary b { color: var(--text-primary); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-sw { flex: none; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--b) 50%, var(--a) 50%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--text-primary) 22%, transparent); }
.dv-mod-sheet { position: absolute; z-index: 30; left: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 32px)); max-height: min(62vh, 460px); overflow: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 12px; border-radius: 18px; background: var(--bg-elevated, var(--bg-secondary)); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, .42); transform-origin: 18% 0; animation: dvPop .24s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes dvPop { from { opacity: 0; transform: translateY(calc(-8px * var(--ov-move, 1))) scale(.96); } }
.dv-mod-sheet header { display: grid; gap: 2px; padding: 2px 4px 10px; }
.dv-mod-sheet header b { font-size: 1rem; }
.dv-mod-sheet header small, .dv-opt small { color: var(--text-secondary); font-size: .8rem; line-height: 1.35; }
.dv-opt > span { display: grid; gap: 2px; min-height: 56px; box-sizing: border-box; align-content: center; padding: 8px 40px 8px 12px; border-radius: 14px; transition: background-color .15s; }
.dv-opt:hover > span { background: color-mix(in srgb, var(--text-primary) 6%, transparent); }
.dv-opt b { font-size: .95rem; }
.dv-opt input:checked + span { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 36%, transparent); }
.dv-opt input:checked + span::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 13px; margin-top: -9px; border-right: 2.5px solid var(--accent-light, var(--accent)); border-bottom: 2.5px solid var(--accent-light, var(--accent)); transform: rotate(45deg); animation: dvTick .25s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes dvTick { from { transform: rotate(45deg) scale(0); } }
.dv-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dv-look > span { display: grid; gap: 6px; padding: 5px 5px 7px; border-radius: 14px; transition: background-color .15s, transform .12s; }
/* A theme in small: its page, a card on it, a line of its text and its accent. */
.dv-look i { position: relative; display: block; height: 52px; border-radius: 10px; background: var(--b); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 16%, transparent); overflow: hidden; }
.dv-look i::before { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; bottom: -6px; border-radius: 7px 7px 0 0; background: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 12%, transparent); }
.dv-look i::after { content: ""; position: absolute; left: 15px; top: 17px; width: 46%; height: 5px; border-radius: 3px; background: var(--t); box-shadow: 0 12px 0 0 var(--a); opacity: .92; }
.dv-look b { font-size: .78rem; font-weight: 650; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }
.dv-look:hover > span { background: color-mix(in srgb, var(--text-primary) 6%, transparent); }
.dv-look:active > span { transform: scale(.96); }
.dv-look input:checked + span { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.dv-look input:checked + span b { color: var(--text-primary); }
.dv-mod-more { display: flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 12px; border-radius: 12px; color: var(--accent-light, var(--accent)); font-size: .88rem; font-weight: 650; text-decoration: none; }
.dv-mod-more::after { content: "→"; margin-left: auto; }
.dv-mod-more:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.dv-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-left: auto; min-height: 48px; padding: 0 16px 0 20px; border: 0; border-radius: 999px; background: var(--accent-strong, var(--accent)); color: var(--on-accent-strong, #fff); font: inherit; font-weight: 800; cursor: pointer; transition: transform .12s, filter .2s, box-shadow .3s; box-shadow: 0 10px 24px -12px var(--accent); }
.dv-go:hover { filter: brightness(1.08); }
.dv-go:hover svg { transform: translateX(calc(3px * var(--ov-move, 1))); }
.dv-go svg { transition: transform .25s cubic-bezier(.2, 1.4, .3, 1); }
.dv-go:active { transform: scale(.96); }
/* Pressed: the button fills from the left and its arrow keeps stepping forward (nothing here spins). */
.dv-go[aria-busy="true"] { pointer-events: none; position: relative; overflow: hidden; }
.dv-go[aria-busy="true"]::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 26%, transparent), transparent); transform: translateX(-100%); animation: dvSweep 1.3s ease-in-out infinite; }
.dv-go[aria-busy="true"] svg { animation: dvStep .7s ease-in-out infinite; }
@keyframes dvSweep { to { transform: translateX(100%); } }
@keyframes dvStep { 50% { transform: translateX(calc(5px * var(--ov-move, 1))); opacity: .6; } }
/* Ideas to start from: those of the kind chosen above, each with its glyph. */
.dv-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
/* The gallery's door under the examples (11-12 review: it had been a pink link run into the heading's text). */
.dv-create-door { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-card, var(--bg-secondary)); color: var(--text-primary); text-decoration: none; transition: border-color .15s; }
.dv-create-door:hover, .dv-create-door:focus-visible { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.dv-create-door-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: var(--accent-light, var(--accent)); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dv-create-door b { display: block; font-size: .95rem; }
.dv-create-door small { display: block; margin-top: 2px; color: var(--text-secondary); font-size: .84rem; line-height: 1.4; }
.dv-create-door-go { margin-left: auto; color: var(--text-muted); font-size: 1.1rem; }
.dv-examples button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--border); border-radius: 99px; padding: 0 14px 0 11px; background: var(--bg-card); color: var(--text-secondary); font: inherit; font-size: .86rem; cursor: pointer; transition: color .15s, border-color .15s, transform .12s; animation: dvIn .4s cubic-bezier(.2, .9, .3, 1.1) both; }
.dv-examples button svg { width: 16px; height: 16px; flex: none; color: var(--accent-light, var(--accent)); }
.dv-examples button:hover, .dv-examples button:focus-visible { color: var(--text-primary); border-color: var(--accent); }
.dv-examples button:active { transform: scale(.96); }
.dv-examples button[hidden] { display: none; }
/* In a choice's sheet: a second group, checked rows, the takes, a starting address; and the cost under the tray. */
.dv-opt[hidden] { display: none; }
.dv-mod[hidden] { display: none; }
.dv-ways.is-off { opacity: .5; }
.dv-group-h { display: grid; gap: 2px; margin: 12px 4px 8px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .95rem; font-weight: 700; }
.dv-group-h small { font-size: .8rem; font-weight: 400; color: var(--text-secondary); }
.dv-opt--check > span { padding-left: 44px; }
.dv-opt--check > span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; box-sizing: border-box; border-radius: 6px; border: 2px solid color-mix(in srgb, var(--text-primary) 30%, transparent); transition: background-color .15s, border-color .15s; }
.dv-opt--check input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.dv-opt--check input:checked + span::after { right: auto; left: 21px; margin-top: -8px; width: 5px; height: 10px; border-color: #fff; }
.dv-opt--check input:disabled + span { opacity: .45; }
.dv-takes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 2px; padding: 8px 8px 8px 12px; border-radius: 14px; background: color-mix(in srgb, var(--text-primary) 5%, transparent); }
.dv-takes > span:first-child { display: grid; gap: 1px; }
.dv-takes b { font-size: .92rem; }
.dv-takes small { font-size: .78rem; color: var(--text-secondary); }
.dv-step { display: inline-flex; align-items: center; gap: 2px; }
.dv-step button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text-primary); font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; transition: background-color .15s, transform .12s; }
.dv-step button:hover { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.dv-step button:active { transform: scale(.92); }
.dv-step input { width: 40px; border: 0; background: none; color: var(--text-primary); font: inherit; font-size: 1.05rem; font-weight: 800; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.dv-step input::-webkit-outer-spin-button, .dv-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dv-start { display: block; }
.dv-start input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-input, var(--bg-primary)); color: var(--text-primary); font: inherit; font-size: 1rem; }
.dv-start input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dv-start-note { margin: 8px 4px 2px; font-size: .8rem; color: var(--text-secondary); }
.dv-cost { margin: 8px 6px 2px; font-size: .86rem; color: var(--text-secondary); animation: dvIn .3s cubic-bezier(.2, .9, .3, 1.1) backwards; }
.dv-cost[hidden] { display: none; }
.dv-cost.is-error { color: var(--warning-text, #f59e0b); }
.dv-rc-k img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.dv-recent { margin-top: 44px; }
.dv-recent h2 { margin: 0 0 12px; font-size: 1.05rem; }
.dv-recent ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.dv-rc { display: flex; align-items: center; gap: 12px; min-height: 64px; box-sizing: border-box; padding: 10px 14px 10px 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); color: inherit; text-decoration: none; transition: border-color .15s, transform .12s; }
.dv-rc:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.dv-rc:active { transform: scale(.98); }
.dv-rc-k { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--accent-light, var(--accent)); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.dv-rc-t { display: grid; gap: 2px; min-width: 0; }
.dv-rc-t b { font-size: .95rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-rc-t small { color: var(--text-secondary); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
    .dv-create { margin-top: 22px; }
    .dv-kinds { grid-auto-columns: minmax(84px, 1fr); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -8px; padding: 0 8px; scroll-snap-type: x proximity; }
    .dv-kinds::-webkit-scrollbar { display: none; }
    .dv-kinds label { scroll-snap-align: start; }
    .dv-kinds span { flex-direction: column; gap: 3px; min-height: 58px; font-size: .8rem; }
    .dv-tray { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dv-mod > summary { display: flex; gap: 6px; padding: 0 10px 0 8px; }
    .dv-mod > summary b { flex: 1; }
    .dv-mod-k { display: none; }
    .dv-mod:not([hidden]):nth-of-type(odd):last-of-type { grid-column: 1 / -1; }
    .dv-go { grid-column: 1 / -1; width: 100%; margin: 2px 0 0; min-height: 52px; }
    /* The options rise from the bottom over a dimmed page. */
    .dv-mod[open]::before { content: ""; position: fixed; inset: 0; z-index: 10005; background: rgba(0, 0, 0, .5); animation: dvFade .2s both; }
    .dv-mod-sheet { position: fixed; z-index: 10006; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 76vh; padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; border-width: 1px 0 0; transform-origin: 50% 100%; animation: dvRise .3s cubic-bezier(.2, .9, .25, 1) both; }
    .dv-examples { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .dv-examples::-webkit-scrollbar { display: none; }
    .dv-examples button { flex: none; }
}
@keyframes dvFade { from { opacity: 0; } }
@keyframes dvRise { from { transform: translateY(calc(100% * var(--ov-move, 1))); opacity: calc(1 - var(--ov-move, 1) * .2); } }
.dv-recent li { margin: 10px 0; overflow-wrap: anywhere; }
.dv-canvas { min-height: 80vh; padding: 24px max(16px, 3vw) 120px; background: var(--bg-primary); color: var(--text-primary); }
.dv-heading { max-width: 1320px; margin: 0 auto 24px; }
.dv-heading a { font-size: .85rem; }
.dv-heading h1 { max-width: 900px; margin: 18px 0 8px; font-size: clamp(1.45rem, 3vw, 2.5rem); letter-spacing: -.04em; line-height: 1.12; overflow-wrap: anywhere; }
.dv-heading p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.dv-rail { display: flex; gap: 20px; max-width: 1600px; margin: 0 auto; padding: 8px 4px 24px; overflow-x: auto; scroll-snap-type: x mandatory; }
.dv-card { flex: 0 0 min(34vw, 500px); min-width: 300px; scroll-snap-align: center; }
.dv-frame { height: min(68vh, 680px); min-height: 440px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); box-shadow: 0 14px 32px #0002; transition: box-shadow var(--ov-dur-2, .2s), transform var(--ov-dur-2, .2s); }
.dv-frame iframe { display: block; border: 0; transform-origin: top left; max-width: none; }
.dv-label { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; font-size: .78rem; color: var(--text-muted); }
.dv-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-skeleton { display: grid; place-content: center; gap: 8px; height: 100%; text-align: center; background: linear-gradient(100deg, var(--bg-card), var(--bg-secondary), var(--bg-card)); background-size: 200% 100%; animation: dv-shimmer 1.6s linear infinite; }
.dv-skeleton span { color: var(--text-primary); font-weight: 700; }
.dv-skeleton small { color: var(--text-muted); }
@keyframes dv-shimmer { to { background-position: -200% 0; } }
.dv-toolbar { position: fixed; z-index: 20; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 24px); padding: 9px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); box-shadow: 0 12px 35px #0003; }
.dv-toolbar form, .dv-toolbar label { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; font-size: .8rem; }
.dv-toolbar select, .dv-toolbar button { min-height: 36px; border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; background: var(--bg-card); color: var(--text-primary); font: inherit; }
.dv-toolbar button { cursor: pointer; }
.dv-enhanced #dv-theme-form button { display: none; }
@media (min-width: 1100px) { .dv-card { flex-basis: calc((100% - 40px) / 3); min-width: 0; } .dv-frame { height: min(54vh, 560px); min-height: 400px; } }
@media (max-width: 700px) {
    .dv-create { margin-top: 62px; }
    .dv-rail { margin: 0 -16px; padding: 6px 16px 22px; }
    .dv-card { flex-basis: calc(100vw - 48px); min-width: 0; }
    .dv-frame { height: min(66vh, 600px); }
    .dv-toolbar { bottom: calc(var(--ovnav-appbar-h, 56px) + 12px); width: calc(100% - 24px); justify-content: space-between; gap: 4px; }
    .dv-toolbar select { max-width: 102px; }
    .dv-toolbar form, .dv-toolbar label { gap: 4px; font-size: .72rem; }
}

/* Part B: the working frame, the chat composer, versions and the click-edit panel. One toolbar stays the only
   floating control bar; the composer and the version list are in the page flow, and the element panel opens only
   after a click inside the working frame. */
.dv-chat { max-width: 1320px; margin: 0 auto 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.dv-chat > label { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.dv-chat-row { display: flex; align-items: center; gap: 8px; }
.dv-chat-row input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-input, var(--bg-primary)); color: var(--text-primary); font: inherit; font-size: .92rem; }
.dv-chat-row button, .dv-element button[type=submit] { min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent-strong, var(--accent)); color: var(--on-accent-strong, var(--on-accent)); font: inherit; font-weight: 800; cursor: pointer; }
.dv-chat-row button:disabled, .dv-element button[type=submit]:disabled { opacity: .55; cursor: not-allowed; }
.dv-chat-status, .dv-element .dv-status { min-height: 1.3em; margin: 8px 0 0; font-size: .84rem; color: var(--text-muted); }
.dv-chat-status.is-error, .dv-element .dv-status.is-error { color: var(--danger-text, #f87171); }
.dv-chat .dv-fine { margin: 2px 0 0; font-size: .76rem; }
.dv-card[data-picked="true"] .dv-frame { box-shadow: 0 0 0 2px var(--room-strong), 0 16px 38px #0003; }
.dv-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 0 4px 10px; }
.dv-card-actions form { margin: 0; }
.dv-card-actions .dv-fine { font-size: .74rem; }
.dv-pick { min-height: 34px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: border-color var(--ov-dur-2, .15s), background var(--ov-dur-2, .15s); }
.dv-pick:hover, .dv-pick:focus-visible { border-color: var(--room-strong); background: color-mix(in srgb, var(--room-strong) 12%, var(--bg-card)); outline: none; }
.dv-picked { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; color: var(--room-strong); }
.dv-picked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--room-strong); }
.dv-versions { max-width: 1320px; margin: 0 auto 92px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.dv-versions summary { display: flex; align-items: center; gap: 8px; min-height: 34px; cursor: pointer; font-weight: 800; font-size: .92rem; }
.dv-versions summary span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--bg-secondary); color: var(--text-muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.dv-vcontrols { display: flex; gap: 8px; margin: 8px 0; }
.dv-vcontrols form { margin: 0; }
.dv-vcontrols button { min-height: 34px; padding: 4px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-secondary); color: var(--text-primary); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.dv-vcontrols button:disabled { opacity: .5; cursor: not-allowed; }
.dv-vlist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; max-height: 300px; overflow: auto; }
.dv-vlist li { display: flex; gap: 10px; padding: 8px 8px; border-top: 1px solid var(--border); font-size: .84rem; border-radius: 8px; }
.dv-vlist li.is-current { background: color-mix(in srgb, var(--room-strong) 12%, transparent); }
.dv-vseq { min-width: 30px; font-weight: 800; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dv-vbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dv-vbody small { color: var(--text-muted); font-size: .76rem; }
.dv-vbody q, .dv-vbody .dv-fine { color: var(--text-secondary); font-size: .8rem; overflow-wrap: anywhere; }
.dv-vnow { display: inline-block; padding: 1px 7px; border-radius: 99px; background: var(--bg-secondary); color: var(--room-strong); font-size: .68rem; font-weight: 800; vertical-align: 1px; }
.dv-element { position: fixed; z-index: 30; right: 24px; bottom: 92px; width: min(340px, calc(100vw - 24px)); max-height: min(68vh, 620px); overflow: auto; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); box-shadow: 0 18px 50px #0005; }
.dv-element[hidden] { display: none; }
.dv-element-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dv-element-head b { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--room-strong); }
.dv-element-head button { min-height: 30px; padding: 2px 10px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-muted); font: inherit; font-size: .78rem; cursor: pointer; }
.dv-element form { display: grid; gap: 8px; }
.dv-element label { font-size: .76rem; font-weight: 800; color: var(--text-muted); }
.dv-element textarea, .dv-element select { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-input, var(--bg-primary)); color: var(--text-primary); font: inherit; font-size: .86rem; resize: vertical; }
.dv-element .dv-fine { margin: 0; font-size: .76rem; }
.dv-element button[type=submit] { width: 100%; }
@media (max-width: 700px) {
    .dv-chat { margin-bottom: 12px; padding: 10px 12px; }
    .dv-chat-row { flex-wrap: wrap; }
    .dv-chat-row button { width: 100%; }
    .dv-card-actions { min-height: 34px; }
    .dv-versions { margin-bottom: 104px; }
    .dv-element { left: 12px; right: 12px; bottom: calc(var(--ovnav-appbar-h, 56px) + 76px); width: auto; max-height: 56vh; }
}

/* ── /tokens: a theme as code (views/tokens.js) ── */
.tk { max-width: 980px; }
.tk-files { margin: 22px 0 8px; }
.tk-files h2 { margin: 0 0 6px; font-size: 1.05rem; }
.tk-file-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tk-file { display: grid; gap: 2px; min-height: 44px; align-content: center; padding: 6px 12px; border: 1px solid var(--ovk-line); border-radius: 12px; color: inherit; text-decoration: none; }
.tk-file b { font-size: 13.5px; }
.tk-file code { font-size: .75rem; color: var(--ovk-muted); background: none; padding: 0; }
.tk-file:hover { border-color: color-mix(in srgb, var(--room-accent, var(--ovk-accent)) 55%, var(--ovk-line)); }
.tk-file:focus-visible { outline: 2px solid var(--room-accent, var(--ovk-accent)); outline-offset: 2px; }
.tk-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 12px; }
.tk-pick-l { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tk-pick select { min-height: 44px; max-width: 64vw; padding: 0 12px; border: 1px solid var(--ovk-line); border-radius: 12px; background: var(--ovk-input); color: var(--ovk-text); font: inherit; }
.tk-both { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ovk-muted); }
.tk-both input { width: 18px; height: 18px; accent-color: var(--room-accent, var(--ovk-accent)); }
.tk-pick .ovk-btn { min-height: 44px; }
.tk-halves { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; padding: 0; }
.tk-half { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--ovk-line); border-radius: 14px; background: var(--ovk-panel); }
.tk-half b { display: block; font-size: .95rem; }
.tk-half small { color: var(--ovk-muted); font-size: .8rem; }
.tk-dots { display: inline-flex; }
.tk-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ovk-text) 18%, transparent); }
.tk-dots .tk-dot + .tk-dot { margin-left: -5px; }
.tk-out { margin-top: 14px; }
.tk-out-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.tk-out-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.tk-how { margin: 8px 0 12px; color: var(--ovk-muted); line-height: 1.55; }
.tk-how code, .tk .ovk-fold-body code { padding: 1px 5px; border-radius: 6px; background: var(--ovk-panel-2); color: var(--ovk-text); font-size: .86em; overflow-wrap: anywhere; }
.tk .ovk-fold-body .ds-fine code { font-size: .75rem; }
.tk .ovk-snip pre { max-height: min(56vh, 520px); }
.tk .ovk-fold { margin-top: 12px; }
.tk-table { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tk-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 14px; padding: 8px 0; border-bottom: 1px solid var(--ovk-line); }
.tk-row > code { font-weight: 700; overflow-wrap: anywhere; font-size: .75rem; }
/* The token rows sit inside the exported-code fold, where ".tk .ovk-fold-body code" (0.86em) is more specific. */
.tk .ovk-fold-body .tk-row > code { font-size: .75rem; }
.tk-vals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tk-vals code { margin-right: 8px; color: var(--ovk-muted); font-size: .85rem; }
.tk-row small { color: var(--ovk-muted); }
@media (min-width: 760px) { .tk-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; } }
/* Exported code keeps its lines: it scrolls sideways inside its box instead of wrapping. */
.tk .ovk-snip pre { white-space: pre; overflow-x: auto; }
/* The home's Create scene: the three steps, numbered. */
.ds-flow { list-style: none; counter-reset: flow; margin: 0; padding: 0; display: grid; gap: 10px; }
.ds-flow li { counter-increment: flow; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; padding: 14px; border: 1px solid var(--ovk-line); border-radius: 14px; background: var(--ovk-panel); }
.ds-flow li::before { content: counter(flow); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--room-accent, var(--ovk-accent)) 18%, transparent); color: var(--room-strong, var(--ovk-accent)); font-weight: 800; }
.ds-flow b { font-size: 1rem; }
.ds-flow span { color: var(--ovk-muted); font-size: .92rem; line-height: 1.45; }
/* The home's Arena scene: two drafts, names hidden. */
.ds-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.ds-vs-card { margin: 0; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--ovk-line); border-radius: 14px; background: var(--ovk-panel); }
.ds-vs-bar { height: 10px; width: 60%; border-radius: 6px; background: var(--ovk-panel-2); }
.ds-vs-hero { height: 54px; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--room-accent, var(--ovk-accent)) 45%, transparent), var(--ovk-panel-2)); }
.ds-vs-card + .ds-vs-or + .ds-vs-card .ds-vs-hero { background: linear-gradient(135deg, var(--ovk-panel-2), color-mix(in srgb, var(--room-accent, var(--ovk-accent)) 30%, transparent)); }
.ds-vs-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ds-vs-row i { height: 26px; border-radius: 8px; background: var(--ovk-panel-2); }
.ds-vs-card figcaption { font-weight: 800; text-align: center; }
.ds-vs-or { color: var(--ovk-muted); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.ds-vs-note { margin: 10px 0 0; text-align: center; }
/* Phones: the home's themes two to a row (the mode word gives way to the dots), the developer links 44 px tall. */
@media (max-width: 599px) {
    .ds-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ds-strip .ds-swatch { grid-template-columns: auto minmax(0, 1fr); }
    .ds-strip .ds-swatch-mode { display: none; }
    .ds-strip .ds-swatch-name { overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}
.ds .sc-room-devlinks a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.ds .sc-room-devlinks a:hover { text-decoration: underline; }

/* "Try it on the real sites" (openvibe-shared 4.41.0 ?ov-try=): a row of site pills. */
.ds-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--ovk-muted); font-size: .9rem; }
.ds-try span { flex-basis: 100%; }
.ds-try a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ovk-line); background: var(--ovk-panel); color: var(--ovk-text); font-weight: 700; text-decoration: none; }
.ds-try a:hover, .ds-try a:focus-visible { border-color: var(--room-accent, var(--ovk-accent)); color: var(--room-strong, var(--ovk-accent)); }
.ds-editor .ds-try { margin-top: 12px; }
.ds-editor .ds-try a { min-height: 40px; padding: 0 12px; font-size: .86rem; }
@media (pointer: coarse) { .ds-editor .ds-try a { min-height: 44px; } }

/* ── /look: your look on every site (views/look.js) ── */
.lk .ovk-section { margin-top: 14px; }
.lk-theme { display: flex; align-items: center; gap: 12px; padding: 6px 14px 4px; }
.lk-theme b { display: block; font-size: 1.05rem; }
.lk-theme small { color: var(--ovk-muted); }
.lk-theme .tk-dot { width: 22px; height: 22px; }
.lk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 10px 14px 14px; }
.lk-status { min-height: 1.4em; margin: 10px 0 0; color: var(--ovk-ok); font-weight: 700; }
/* The settings' segmented choices stay on one line on a phone: the label above, the choices below. */
@media (max-width: 599px) {
    .lk .ovk-set-row:has(.ovk-seg) { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
    .lk .ovk-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
}
.lk .ovk-seg label span { display: flex; align-items: center; justify-content: center; min-height: 40px; }
@media (pointer: coarse) { .lk .ovk-seg label span { min-height: 44px; } }

/* ── /components (views/components.js) ── */
.cp { margin-top: 10px; }
.cp-head h2 { margin: 6px 0 4px; font-size: 1.4rem; font-weight: 800; }
.cp-head .ds-lede { margin: 0 0 12px; }
.cp-stage { padding: 18px; border: 1px dashed var(--ovk-line); border-radius: var(--ovk-radius); background: var(--ovk-bg); overflow: hidden; }
.cp-stage > .ovk-section, .cp-stage > .ovk-fold, .cp-stage > .ovk-list { margin: 0; }
.cp-stage > .ovk-card { max-width: 320px; }
.cp-stage .ovk-section .ovk-btn { margin: 4px 6px 10px 14px; }
.cp-stage .ovk-section .ovk-notice { margin: 6px 14px 10px; }
.cp-grid { display: grid; gap: 18px; margin-top: 18px; }
.cp-grid > div > h3, .cp > h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.cp > h3 { margin-top: 20px; }
.cp-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cp-parts li { padding: 10px 12px; border: 1px solid var(--ovk-line); border-radius: 12px; background: var(--ovk-panel); }
.cp-opt { color: var(--ovk-muted); font-size: .8rem; }
.cp-tokens { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
.cp-tok { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; }
.cp-tok small { color: var(--ovk-muted); }
.cp-tok code { font-size: .8rem; }
.cp-note { display: block; margin-top: 4px; color: var(--ovk-muted); font-size: .84rem; }
.cp-facts { margin: 0; display: grid; gap: 6px; }
.cp-facts > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--ovk-line); }
.cp-facts dt { color: var(--ovk-muted); font-weight: 700; font-size: .86rem; }
.cp-facts dd { margin: 0; overflow-wrap: anywhere; }
.cp-facts code { font-size: .84rem; }
@media (min-width: 900px) { .cp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* The studio's "As code" sheet (your edits, compiled in the page). */
.ds-code-pick { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-weight: 700; }
.ds-code-pick select { min-height: 44px; padding: 0 12px; border: 1px solid var(--ovk-line); border-radius: 12px; background: var(--ovk-input); color: var(--ovk-text); font: inherit; }
#ds-code-sheet .ovk-snip pre { max-height: 52vh; white-space: pre; overflow: auto; }
.ds-code-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 0; }

/* /look: a different look on one site */
.lk-sites { list-style: none; margin: 0; padding: 0 14px; }
.lk-sites li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--ovk-line); }
.lk-sites .lk-none { color: var(--ovk-muted); justify-content: flex-start; }
.lk-site-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 12px 14px 14px; }
.lk-site-form label { display: grid; gap: 4px; font-size: .86rem; font-weight: 700; color: var(--ovk-muted); }
.lk-site-form select { min-height: 44px; max-width: 70vw; padding: 0 10px; border: 1px solid var(--ovk-line); border-radius: 12px; background: var(--ovk-input); color: var(--ovk-text); font: inherit; }
.lk-site-form .ovk-btn { min-height: 44px; }

/* /look Comfort (2026-10-29): the sample reads like any page, so each switch shows what it changes. */
.lk-sample { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--border, #1f2d47); border-radius: 12px; background: var(--bg-secondary, #101828); }
.lk-sample p { margin: 0; }
.lk-sample-muted { color: var(--text-muted, #7386a3); }
.lk-sample-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }

/* Touch targets on phones (fleet audit, 2026-10-29): touch pointers only. */
@media (pointer: coarse) {
  .pv-btn { min-height: 45px; }
  .sc-room-chips a { min-height: 44px; }
  .ov-room article a, .ds-act a, .ds-more { position: relative; }
  .ov-room article a::after, .ds-act a::after { content: ''; position: absolute; left: 0; right: 0; top: -2px; bottom: -2px; }
  .ds-more::after { content: ''; position: absolute; left: 0; right: 0; top: -14px; bottom: -14px; }
}

/* Pick: on a phone every pane is shown, stacked, each with its own heading; the chips are a row of links that
   jump to a pane (the owner's rule, 2026-10-31: never hide content to shorten). A wide screen shows the panes as
   before, with no chips. */
.pick-head, .pick-row { display: none; }
@media (max-width: 640px) {
  .pick-bar { margin-top: 30px; }
  .pick-head { display: block; }
  .pick-head h2 { margin: 0 0 4px; font: 700 clamp(20px, 2.4vw, 28px)/1.2 var(--ov-font, 'Inter', system-ui, sans-serif); letter-spacing: -.02em; }
  .pick-row { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pick-row::-webkit-scrollbar { display: none; }
  .pick-chip { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border, #1f2d47); color: var(--text-secondary, #96a7c2); font-size: .9rem; font-weight: 650; white-space: nowrap; text-decoration: none; }
  .pick-chip:hover, .pick-chip:focus-visible { color: var(--text-primary, #e6edf7); border-color: var(--accent, #3b82f6); }
  .pick-chip:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: 2px; }
  .pick .pick-pane { scroll-margin-top: 72px; }
  .pick .pick-pane + .pick-pane { margin-top: 26px; }
}

/* The fold (the owner's short-pages rule): closed on a phone, and where there is room it looks like the section it
   replaces: a heading and its content, with no card around it. */
.ds-fold-block { margin-top: 32px; }
.ds-fold-block > summary h2 { margin: 0; font: 700 clamp(19px,2.2vw,26px)/1.2 var(--ov-font,'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif); }
.ds-fold-hint { display: none; }
/* The fold's summary carries the heading, so the section's own heading gives way to it. */
.ds-fold-block .sc-sec > h2, .ds-fold-block > .sc-sec > h2 { display: none; }
@media (min-width: 641px) {
  .ds-fold-block { border: 0; background: none; border-radius: 0; margin-top: 56px; padding: 0; }
  .ds-fold-block > summary { display: block; min-height: 0; padding: 0; }
  .ds-fold-block > summary h2 { margin: 0 0 6px; font: 700 clamp(22px,2.6vw,30px)/1.2 var(--ov-font,'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif); }
  .ds-fold-block > summary span { display: none; }
  .ds-fold-block .sc-sec { margin: 0; padding: 0; }
}
@media (max-width: 640px) {
  .ds-fold-block { margin-top: 24px; }
  .ds-fold-block > summary { cursor: pointer; }
  .ds-fold-hint { display: inline; margin-left: 8px; font-size: .78rem; font-weight: 600; color: var(--text-secondary, #96a7c2); }
}


/* A link that points into a pick block opens it: the pane carries the id the link names. */
@supports selector(:has(*)) { @media (max-width: 640px) {
  .pick .pick-pane:target { display: block; }
} }

/* On a wide screen the pick block is invisible: its blocks sit where they were, in the order they were. */
@media (min-width: 641px) {
  .pick, .pick-body, .pick-pane { display: contents; }
  .pick-bar { display: none; }
}

/* The chip names the scene, so the scene's own heading gives way to it. */
@supports selector(:has(*)) { @media (max-width: 640px) {
  .pick .sc-scene-text > h2 { display: none; }
} }

/* The icons sample under the Icons choice: small and large, so Auto's switch shows (plan L56). */

/* ── The arena as a view of Bench's nine design kinds (plan L51 step 1) ──
   A sideways rail of kinds, the blind pair right under it, then one card per kind's board (a rail on a phone). */
.ar-hero--arena { padding-bottom: 6px; }
.ar-hero--arena #ar-total { margin: 8px 0 0; }
.ar-kinds { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(138px, 1fr); gap: 8px; margin: 18px 0 0; padding: 2px 2px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.ar-kind { scroll-snap-align: start; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 9px; min-height: 58px; padding: 10px 11px; border: 1px solid var(--border, #26344d); border-radius: 14px;
    background: var(--bg-card, #0f1729); color: var(--text-primary, #e6edf7); text-decoration: none; transition: border-color var(--ov-dur-2, .15s), background-color var(--ov-dur-2, .15s); }
.ar-kind:hover { border-color: color-mix(in srgb, var(--room-strong) 45%, var(--border, #26344d)); }
.ar-kind:focus-visible { outline: 2px solid var(--room-strong); outline-offset: 2px; }
.ar-kind[aria-current] { border-color: var(--room-strong); background: color-mix(in srgb, var(--room-strong) 14%, var(--bg-card, #0f1729)); box-shadow: inset 0 0 0 1px var(--room-strong); }
.ar-kind-i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--room-strong) 16%, transparent); color: var(--room-strong); }
.ar-kind[aria-current] .ar-kind-i { background: var(--room-strong); color: var(--bg-primary, #0a0f1c); }
.ar-kind-t { display: grid; gap: 1px; min-width: 0; }
.ar-kind-t b { font-size: .88rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.ar-kind-t small { font-size: .72rem; line-height: 1.3; color: var(--text-secondary, #96a7c2); }

.ar-judge { margin-top: 18px; scroll-margin-top: 72px; }
.ar-brief h2 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: -.02em; text-wrap: balance; }
.ar-prompt { margin: 10px 0 0; max-width: 72ch; padding: 10px 14px; border-left: 3px solid var(--room-strong); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--room-strong) 7%, transparent);
    color: var(--text-secondary, #96a7c2); line-height: 1.55; overflow-wrap: anywhere; }
/* A piece of art (illustration, motion, a chart, a 3D model, a shader, a component) is drawn once, 4:3, edge to edge */
.ar-art { position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; border: 1px solid var(--border, #26344d); border-radius: 10px; background: #fff; }
.ar-art .ar-art-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.ar-arena .ar-vote-pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ar-arena .ar-vote-actions .ovk-btn[data-winner=tie], .ar-arena .ar-vote-actions .ovk-btn[data-winner=both_bad] { min-width: 96px; }
.ar-who { margin: 10px 0 0; text-align: center; color: var(--text-muted, #7386a3); font-size: .84rem; line-height: 1.5; }
.ar-who a, .ar-notice a { color: var(--room-strong); font-weight: 750; }
/* The reveal: each side names its model; your pick wears the room colour */
.ar-model { margin: -2px 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; overflow-wrap: anywhere; }
.ar-model b { font-size: 1.02rem; }
.ar-pick { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--room-strong); color: var(--bg-primary, #0a0f1c); font-size: .68rem; letter-spacing: .06em; }
.ar-reveal-side.is-picked { border-color: var(--room-strong); box-shadow: 0 0 0 1px var(--room-strong); }
.ar-none { padding: clamp(20px, 4vw, 36px); border: 1px dashed var(--border, #26344d); border-radius: 16px; text-align: center; }
.ar-none h2 { margin: 0; font-size: 1.2rem; }
.ar-none p { margin: 8px auto 0; max-width: 56ch; color: var(--text-secondary, #96a7c2); }
.ar-none .ar-actions { justify-content: center; }

/* Boards: one card per kind; who voted, the top five, a counted fold for the rest */
.ar-boards--kinds { margin-top: 36px; scroll-margin-top: 72px; }
.ar-boards--kinds > .ar-lb-head h2 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
.ar-voters { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border, #26344d); border-radius: 999px; background: var(--bg-card, #0f1729); }
.ar-voters a { min-height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font-weight: 750; font-size: .8rem; color: var(--text-secondary, #96a7c2); text-decoration: none; }
.ar-voters a[aria-current] { background: color-mix(in srgb, var(--room-strong) 20%, transparent); color: var(--text-primary, #e6edf7); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--room-strong) 45%, transparent); }
.ar-voters a:focus-visible { outline: 2px solid var(--room-strong); outline-offset: 2px; }
.ar-kboards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.ar-kb { min-width: 0; padding: 14px 14px 12px; border: 1px solid var(--border, #26344d); border-radius: 16px; background: var(--bg-card, #0f1729); scroll-margin-top: 72px; }
.ar-kb.is-on { border-color: color-mix(in srgb, var(--room-strong) 55%, var(--border, #26344d)); }
.ar-kb-h { display: flex; align-items: center; gap: 9px; }
.ar-kb-h .ar-kind-i { width: 26px; height: 26px; border-radius: 8px; }
.ar-kb-h h3 { margin: 0; font-size: 1rem; }
.ar-kb-go { margin-left: auto; min-height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--room-strong) 45%, var(--border, #26344d));
    color: var(--room-strong); font-weight: 800; font-size: .8rem; text-decoration: none; }
.ar-kb-go:hover { background: color-mix(in srgb, var(--room-strong) 12%, transparent); }
.ar-kb-count { margin: 6px 0 0; font-size: .76rem; }
.ar-kb-rows { list-style: none; margin: 10px 0 0; padding: 0; font-variant-numeric: tabular-nums; }
.ar-kb-row { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) 3.4em 3.6em; align-items: baseline; gap: 6px; padding: 6px 2px; border-top: 1px solid color-mix(in srgb, var(--border, #26344d) 70%, transparent); font-size: .86rem; }
.ar-kb-row > :nth-child(n+3) { text-align: right; }
.ar-kb-th { border-top: 0; padding-top: 0; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-secondary, #96a7c2); }
.ar-kb-rank { font-weight: 800; color: var(--text-secondary, #96a7c2); }
.ar-kb-model { font-weight: 700; overflow-wrap: anywhere; }
.ar-kb-elo { font-weight: 800; }
.ar-kb-games { color: var(--text-secondary, #96a7c2); }
.ar-kb-rows .ar-kb-row:nth-child(2) :is(.ar-kb-rank, .ar-kb-model, .ar-kb-elo) { color: var(--room-strong); }
.ar-kb-more { margin-top: 2px; }
.ar-kb-more summary { cursor: pointer; padding: 6px 2px; font-size: .8rem; font-weight: 750; color: var(--room-strong); }
.ar-kb-more .ar-kb-rows { margin-top: 0; }
.ar-kb-more .ar-kb-row:nth-child(2) :is(.ar-kb-rank, .ar-kb-model, .ar-kb-elo) { color: inherit; }
.ar-kb-empty { margin: 10px 0 0; color: var(--text-secondary, #96a7c2); font-size: .86rem; }
.ar-kb-links { margin: 10px 0 0; font-size: .78rem; color: var(--text-secondary, #96a7c2); }
.ar-kb-links a { color: var(--text-secondary, #96a7c2); }
.ar-provisional { padding: 0 6px; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; background: color-mix(in srgb, var(--text-muted, #7386a3) 18%, transparent); color: var(--text-secondary, #96a7c2); }

.ar-make { display: grid; gap: 12px; margin-top: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ar-make-card { padding: 16px 18px; border: 1px dashed var(--border, #26344d); border-radius: 16px; }
.ar-make-card h2 { margin: 0; font-size: 1.05rem; }
.ar-make-card p { margin: 8px 0 0; color: var(--text-secondary, #96a7c2); line-height: 1.5; }
.ar-make-card .ovk-btn { margin: 4px 6px 0 0; }
.ar-costs { margin-top: 22px; border-top: 1px solid var(--border, #26344d); padding-top: 10px; }
.ar-costs > summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-weight: 800; }
.ar-costs .ar-boards--cost { margin-top: 0; }

/* The room's own heading and section rules (.ds h3, section spacing) are for its pages; the arena's cards keep theirs */
.ar-arena .ar-vote-side { margin: 0; }
.ar-arena .ar-vote-side h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .06em; }
.ar-arena #ar-vote-left h3::before, .ar-arena #ar-vote-right h3::before { content: none; display: none; }
.ar-letter { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--room-strong) 18%, transparent); color: var(--room-strong); font-size: .86rem; font-weight: 900; letter-spacing: 0; }
.ar-arena .ar-kb-h h3 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; text-transform: none; color: var(--text-primary, #e6edf7); }
.ar-arena .ar-boards--kinds, .ar-arena .ar-judge { margin-bottom: 0; }

@media (max-width: 759px) {
  .ar-kinds { grid-auto-columns: minmax(124px, 42%); margin-left: -2px; margin-right: -2px; }
  /* Nine boards side by side, a swipe apart, instead of nine cards down the page */
  .ar-kboards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .ar-kb { scroll-snap-align: start; }
  .ar-who { text-align: left; }
}

/* /look: the icon styles side by side (server/views/look.js iconStyles): three small phone screens drawn with the
   real glyphs. Each is a button that picks its style; the picked one wears the accent. */
.lk-styles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:2px 14px 16px}
.lk-style input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.lk-style{all:unset;position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;min-width:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lk-style:has(input:focus-visible) .lk-st-screen{outline:2px solid var(--accent);outline-offset:3px}
.lk-st-screen{display:flex;flex-direction:column;gap:7px;padding:10px 10px 0;border-radius:18px;border:1px solid var(--border,color-mix(in srgb, var(--text-primary, #fff) 10%, transparent));background:var(--bg-primary);color:var(--text-primary);overflow:hidden;transition:border-color var(--ov-dur-2,.2s) var(--ov-ease-out,ease-out),transform var(--ov-dur-2,.2s) var(--ov-ease-out,ease-out)}
.lk-style:hover .lk-st-screen{border-color:color-mix(in srgb,var(--accent) 55%,var(--border,transparent))}
.lk-style:has(input:checked) .lk-st-screen{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.lk-style:active .lk-st-screen{transform:scale(.98)}
.lk-st-head{display:flex;align-items:center;gap:8px;font-size:21px;padding-bottom:2px}
.lk-st-title{flex:1 1 auto;height:9px;border-radius:5px;background:color-mix(in srgb,var(--text-primary) 70%,transparent);max-width:48%}
.lk-st-row{display:flex;align-items:center;gap:8px;font-size:13px}
.lk-st-dot{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent)}
.lk-st-lines{flex:1 1 auto;display:flex;flex-direction:column;gap:5px;min-width:0}
.lk-st-lines>span{height:6px;border-radius:3px;background:color-mix(in srgb,var(--text-muted,currentColor) 40%,transparent)}
.lk-st-lines>span+span{width:42%;opacity:.6}
.lk-st-bar{display:flex;justify-content:space-around;margin:4px -10px 0;padding:8px 6px 9px;border-top:1px solid var(--border,color-mix(in srgb, var(--text-primary, #fff) 10%, transparent));background:var(--bg-secondary,var(--bg-card));font-size:17px;color:var(--text-muted)}
.lk-st-tab{display:grid;place-items:center;width:34px;height:24px;border-radius:12px}
.lk-st-tab[aria-current="page"]{background:color-mix(in srgb,var(--accent) 18%,transparent);color:var(--accent)}
.lk-st-cap{display:flex;flex-direction:column;gap:2px;padding:0 2px}
.lk-st-cap b{font-size:14px}
.lk-st-cap small{color:var(--text-muted);font-size:12px;line-height:1.35}
.lk-style:has(input:checked) .lk-st-cap b{color:var(--accent)}
@media (max-width:480px){.lk-styles{gap:8px}.lk-st-screen{padding:8px 7px 0;border-radius:14px}.lk-st-head{font-size:19px;gap:6px}.lk-st-lines>span+span{display:none}.lk-st-bar{margin:4px -7px 0;font-size:15px}.lk-st-tab{width:26px}.lk-st-cap small{font-size:11px}}
html[data-ov-motion=off] .lk-style:active .lk-st-screen{transform:none}

/* Publish on openvibe.space (open item D8), drawn like the Versions panel. */
.dv-publish { max-width: 1320px; margin: 0 auto 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.dv-publish summary { display: flex; align-items: center; gap: 8px; min-height: 34px; cursor: pointer; font-weight: 800; font-size: .92rem; }
.dv-publish summary span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--bg-secondary); color: var(--text-muted); font-size: .74rem; }
.dv-publish-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 8px 0 4px; }
.dv-publish-name { display: grid; gap: 4px; flex: 1 1 260px; min-width: 0; font-size: .86rem; }
.dv-publish-name small { color: var(--text-muted); }
.dv-publish-addr { display: flex; align-items: center; min-height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-secondary); overflow: hidden; }
.dv-publish-addr input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; }
.dv-publish-addr span { padding: 0 10px; color: var(--text-muted); white-space: nowrap; font-size: .86rem; }
.dv-publish-form button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font: inherit; font-weight: 800; cursor: pointer; }
.dv-live, .dv-ok, .dv-err { margin: 8px 0; font-size: .9rem; overflow-wrap: anywhere; }
.dv-ok { padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, #22c55e 14%, transparent); }
.dv-err { padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, #ef4444 14%, transparent); }

/* On a phone a fold is a card row (11-03): its heading, what it holds counted on the right, no browser triangle; open,
   its content sits inside the card. A wider screen shows the section as before. */
@media (max-width: 640px) {
  .ds-fold-block { border: 1px solid var(--border, #1f2d47); border-radius: 14px; background: var(--bg-card, #131c2e); }
  .ds-fold-block > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 4px 16px; cursor: pointer; list-style: none; }
  .ds-fold-block > summary::-webkit-details-marker { display: none; }
  .ds-fold-block > summary::marker { content: ''; }
  .ds-fold-block > summary h2 { margin: 0; padding: 0; border: 0; font-size: 1.12rem; }
  .ds-fold-block > summary span { flex: none; color: var(--text-muted, #7386a3); font-weight: 600; font-size: .86rem; white-space: nowrap; }
  .ds-fold-block > summary:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: -2px; border-radius: 14px; }
  /* The content sits 16px inside the card, whatever spacing its own section had for a page without a card. */
  .ds-fold-block > summary ~ * { margin-left: 0 !important; margin-right: 0 !important; padding-left: 16px !important; padding-right: 16px !important; }
  .ds-fold-block > summary + * { margin-top: 0 !important; padding-top: 4px !important; }
  .ds-fold-block[open] { padding-bottom: 12px; }
}

/* The whole system on the home (11-07): every part with its real count, one tap each. */
.ds-system { margin: 8px 0 28px; }
.ds-system-lede { margin: 0 0 12px; }
.ds-system-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ds-sys { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; column-gap: 12px; row-gap: 4px; height: 100%; padding: 16px; border-radius: 18px;
  border: 1px solid var(--border, #1f2d47); background: var(--bg-card, var(--bg-secondary, #101828)); color: var(--text-secondary, #96a7c2); text-decoration: none; transition: border-color .2s, transform .2s; }
.ds-sys:hover { border-color: color-mix(in srgb, var(--room-strong, var(--accent, #3b82f6)) 55%, var(--border, #1f2d47)); transform: translateY(-2px); }
.ds-sys-ic { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--room-strong, var(--accent, #3b82f6)); background: color-mix(in srgb, var(--room-strong, var(--accent, #3b82f6)) 14%, transparent); }
.ds-sys-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ds-sys-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ds-sys-t b { font-size: 16px; color: var(--text-primary, #e6edf7); }
.ds-sys-t em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--room-strong, var(--accent, #3b82f6)); }
.ds-sys small { font-size: 13px; line-height: 1.45; }
@media (max-width: 1000px) { .ds-system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ds-system-grid { grid-template-columns: minmax(0, 1fr); } }
html[data-ov-motion=off] .ds-sys:hover{transform: none}

/* ── The arena, easier to judge (owner 11-08: "make A and B clickable", "smoother between things") ──
   The drawing is the vote: a transparent button lies over each frame, so a tap picks it and a swipe scrolls the page
   (never the frame). "Try it" lifts the cover to scroll, turn or hover a design first. The four verdicts sit in one
   slim floating bar. Frame boxes are sized by CSS alone, so nothing moves when the script scales the drawing. */
.ar-side-h { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 0 0 10px; }
.ar-arena .ar-side-h h3 { margin: 0; }
.ar-try-in { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ar-try { margin-left: auto; display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border, #26344d);
    color: var(--text-secondary, #96a7c2); font-size: .78rem; font-weight: 750; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
    transition: background-color var(--ov-dur-2, .15s), border-color var(--ov-dur-2, .15s), color var(--ov-dur-2, .15s); }
.ar-try > span { display: inline-flex; align-items: center; gap: 5px; }
.ar-try:hover { border-color: color-mix(in srgb, var(--room-strong) 50%, var(--border, #26344d)); color: var(--text-primary, #e6edf7); }
.ar-try .ar-try-on, .ar-try-in:checked + .ar-try .ar-try-off { display: none; }
.ar-try-in:checked + .ar-try .ar-try-on { display: inline-flex; }
.ar-try-in:checked + .ar-try { background: color-mix(in srgb, var(--room-strong) 18%, transparent); border-color: var(--room-strong); color: var(--text-primary, #e6edf7); }
.ar-try-in:focus-visible + .ar-try { outline: 2px solid var(--room-strong); outline-offset: 2px; }

.ar-side-body { position: relative; }
.ar-cover { all: unset; box-sizing: border-box; position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding: 0 10px 34px;
    cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; touch-action: pan-x pan-y; }
.ar-pick-tag { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px 0 6px; border-radius: 999px; max-width: 100%;
    background: color-mix(in srgb, var(--bg-primary, #0a0f1c) 80%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--text-primary, #e6edf7) 16%, transparent); color: var(--text-primary, #e6edf7); font-size: .86rem; font-weight: 800; white-space: nowrap;
    box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .55); transform: translateY(3px); transition: transform .22s cubic-bezier(.2, .8, .2, 1), background-color .18s, color .18s, box-shadow .22s; }
.ar-cover .ar-pick-tag { position: sticky; bottom: calc(var(--ovnav-appbar-h, 0px) + 88px + env(safe-area-inset-bottom, 0px)); }
.ar-pick-l { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; flex: none; background: color-mix(in srgb, var(--room-strong) 24%, transparent); color: var(--room-strong); font-weight: 900; }
.ar-pick-tag svg { display: none; }
.ar-cover:is(:hover, :focus-visible) .ar-pick-tag { transform: none; background: var(--room-strong); color: var(--bg-primary, #0a0f1c); box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--room-strong) 70%, transparent); }
.ar-cover:is(:hover, :focus-visible) .ar-pick-l { background: color-mix(in srgb, var(--bg-primary, #0a0f1c) 22%, transparent); color: var(--bg-primary, #0a0f1c); }
.ar-cover:focus-visible { outline: none; }
.ar-pickable { transition: border-color .18s, box-shadow .22s, transform .18s cubic-bezier(.2, .8, .2, 1), opacity .25s, filter .25s; }
.ar-pickable:has(.ar-cover:is(:hover, :focus-visible)) { border-color: var(--room-strong); box-shadow: 0 0 0 1px var(--room-strong), 0 16px 36px -20px color-mix(in srgb, var(--room-strong) 80%, transparent); }
.ar-pickable:has(.ar-cover:active) { transform: scale(.985); }
.ar-pickable:has(.ar-try-in:checked) .ar-cover { display: none; }
.ar-pickable:has(.ar-try-in:checked) { border-color: color-mix(in srgb, var(--room-strong) 55%, var(--border, #26344d)); }
/* A phone handset is narrow: the tag is just the letter and the tick */
.ar-page:has(#ar-view-phone:checked) .ar-pick-t { display: none; }
.ar-page:has(#ar-view-phone:checked) .ar-pick-tag { padding: 0 6px; }
@media (max-width: 759px) {
  .ar-page:has(.ar-view):not(:has(.ar-view input:checked)) .ar-pick-t { display: none; }
  .ar-page:has(.ar-view):not(:has(.ar-view input:checked)) .ar-pick-tag { padding: 0 6px; }
}
.ar-art + .ar-cover { padding-bottom: 14px; }

/* The verdict, the moment it is cast: the pick lights and ticks, the other side steps back, then the answer swaps in */
.ar-vote-pair[data-pick] .ar-pickable { pointer-events: none; }
.ar-vote-pair[data-pick=left] #ar-vote-right, .ar-vote-pair[data-pick=right] #ar-vote-left { opacity: .42; filter: saturate(.5); transform: scale(.98); }
.ar-vote-pair:is([data-pick=left]) #ar-vote-left, .ar-vote-pair:is([data-pick=right]) #ar-vote-right, .ar-vote-pair[data-pick=tie] .ar-pickable {
    border-color: var(--room-strong); box-shadow: 0 0 0 2px var(--room-strong), 0 18px 40px -20px color-mix(in srgb, var(--room-strong) 80%, transparent); }
.ar-vote-pair[data-pick=both_bad] .ar-pickable { border-color: color-mix(in srgb, #ef4444 65%, var(--border, #26344d)); opacity: .7; filter: saturate(.6); }
.ar-vote-pair:is([data-pick=left]) #ar-vote-left .ar-pick-tag, .ar-vote-pair:is([data-pick=right]) #ar-vote-right .ar-pick-tag { transform: none; background: var(--room-strong); color: var(--bg-primary, #0a0f1c); animation: ar-picked .42s cubic-bezier(.2, .9, .3, 1.4); }
.ar-vote-pair:is([data-pick=left]) #ar-vote-left .ar-pick-tag svg, .ar-vote-pair:is([data-pick=right]) #ar-vote-right .ar-pick-tag svg { display: block; }
@keyframes ar-picked { 0% { transform: scale(.9); } 55% { transform: scale(1.08); } 100% { transform: none; } }

/* One slim floating bar for the four verdicts (and for "Next pair" after a vote), above the phone's app bar */
.ar-arena :is(#ar-vote-actions, #ar-next) { display: grid; gap: 6px; width: min(100%, 560px); box-sizing: border-box; margin: 16px auto 0; padding: 6px;
    bottom: calc(var(--ovnav-appbar-h, 0px) + 10px + env(safe-area-inset-bottom, 0px)); border: 1px solid var(--border, #26344d); border-radius: 18px;
    background: color-mix(in srgb, var(--bg-primary, #0a0f1c) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .6); }
.ar-arena #ar-vote-actions { grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr); }
.ar-arena #ar-next { grid-template-columns: 1fr 1fr; }
.ar-arena :is(#ar-vote-actions, #ar-next) .ovk-btn { min-width: 0; width: 100%; min-height: 44px; padding: 0 12px; justify-content: center; white-space: nowrap; border-radius: 13px; font-size: .9rem; }
.ar-vote-l { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: -1px; border-radius: 7px; background: color-mix(in srgb, currentColor 20%, transparent); font-weight: 900; }
.ar-arena #ar-vote-actions .ovk-btn:disabled { opacity: .55; }
@media (max-width: 420px) { .ar-arena :is(#ar-vote-actions, #ar-next) .ovk-btn { padding: 0 9px; font-size: .84rem; } .ar-vote-l { width: 20px; height: 20px; } }

/* Frame boxes sized by CSS alone: a desktop drawing fills its column, a phone is a handset at most 281 px wide */
.ar-shot--desktop .ar-shot-frame, .ar-shot--desktop::before { width: 100%; }
.ar-shot--phone .ar-shot-frame { width: min(calc(100% - 14px), 281px); }

/* Desktop or Phone: until someone chooses, the screen decides (a phone opens at the phone view, with no jump) */
@media (min-width: 760px) { .ar-page:not(:has(.ar-view input:checked)) .ar-shot--phone { display: none; }
  .ar-view:not(:has(input:checked)) label[for=ar-view-desktop] { background: color-mix(in srgb, var(--room-strong) 20%, transparent); color: var(--text-primary, #e6edf7); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--room-strong) 45%, transparent); } }
@media (max-width: 759px) { .ar-page:not(:has(.ar-view input:checked)) .ar-shot--desktop { display: none; }
  .ar-page:has(.ar-view):not(:has(.ar-view input:checked)) .ar-vote-pair { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ar-view:not(:has(input:checked)) label[for=ar-view-phone] { background: color-mix(in srgb, var(--room-strong) 20%, transparent); color: var(--text-primary, #e6edf7); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--room-strong) 45%, transparent); } }
/* A page pair drawn as two handsets side by side leaves little room: the cards hug them */
.ar-page:has(#ar-view-phone:checked) .ar-vote-side, .ar-vote-pair .ar-shot--phone:only-child { padding: 8px; }
@media (max-width: 759px) { .ar-page:not(:has(.ar-view input:checked)) .ar-vote-side:has(.ar-shot--phone) { padding: 8px; } }

/* Moving between kinds, votes and pairs: the pair and the boards cross over in place, the rail stays put */
.ar-arena #ar-pair { view-transition-name: ar-pair; }
.ar-arena #ar-boards { view-transition-name: ar-boards; }
.ar-arena #ar-kinds { view-transition-name: ar-kinds; }
::view-transition-group(ar-pair), ::view-transition-group(ar-boards) { animation-duration: .34s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(ar-pair) { animation: ar-vt-out .16s ease-in both; }
::view-transition-new(ar-pair) { animation: ar-vt-in .34s cubic-bezier(.2, .8, .2, 1) .05s both; }
@keyframes ar-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes ar-vt-in { from { opacity: 0; transform: translateY(12px); } }
.ar-arena #ar-pair { transition: opacity .2s; }
.ar-arena.is-loading #ar-pair { opacity: .55; }
.ar-arena.is-loading #ar-kinds .ar-kind[aria-current] .ar-kind-i { animation: ar-breathe 1s ease-in-out infinite alternate; }
@keyframes ar-breathe { to { opacity: .55; } }
/* A frame that was swapped in waits on a quiet surface and fades in once drawn, instead of flashing white */
.ar-wait { background: linear-gradient(100deg, var(--bg-card, #0f1729) 40%, color-mix(in srgb, var(--text-primary, #e6edf7) 7%, var(--bg-card, #0f1729)) 50%, var(--bg-card, #0f1729) 60%) 0 0 / 220% 100%;
    animation: ar-shimmer 1.3s linear infinite; }
.ar-wait > .ar-frame { opacity: 0; transition: opacity .3s ease-out; }
.ar-wait.is-loaded { animation: none; background: #fff; }
.ar-wait.is-loaded > .ar-frame { opacity: 1; }
@keyframes ar-shimmer { to { background-position: -220% 0; } }
html[data-ov-motion=off] .ar-vote-pair[data-pick] .ar-pickable{transform: none}

/* The kinds rail on a phone: the icon beside the name, the line under both, no word broken mid-way */
@media (max-width: 759px) {
  .ar-kinds { grid-auto-columns: minmax(148px, 44%); }
  .ar-kind { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'i b' 's s'; align-items: center; gap: 6px 8px; min-height: 0; padding: 10px; }
  .ar-kind-i { grid-area: i; width: 26px; height: 26px; border-radius: 8px; }
  .ar-kind-t { display: contents; }
  .ar-kind-t b { grid-area: b; overflow-wrap: normal; hyphens: manual; }
  .ar-kind-t small { grid-area: s; }
}

/* Elements (2026-11-11): the look preview, the sample run and the generated sliders. Plain, 390 px first. */
.dv-frame--element { display: grid; place-items: center; min-height: 220px; background: var(--bg-primary, #0b0f17); }
.dv-el-look { display: grid; place-items: center; padding: 18px; }
.dv-elx { display: inline-grid; place-items: center; gap: 4px; min-width: 128px; max-width: 100%; padding: 18px 24px; border-radius: var(--el-radius, 999px); background: var(--el-tint); color: #fff; font-weight: 600; box-sizing: border-box; }
.dv-elx small { font-weight: 400; opacity: .8; font-size: .72rem; }
.dv-elx-label { font-size: 1.05rem; overflow-wrap: anywhere; }
.dv-elx-number { font-size: 1.8rem; }
.dv-elx-number small { font-size: .8rem; margin-left: 4px; }
.dv-elx-bar { display: block; width: 120px; height: 10px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.dv-elx-bar span { display: block; height: 100%; background: #fff; }
.dv-elx-switch { display: block; width: 34px; height: 20px; border-radius: 99px; background: rgba(0,0,0,.35); position: relative; }
.dv-elx-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.dv-elx-slider { display: block; width: 120px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.3); }
.dv-elx-wheel, .dv-elx-pad { font-size: 1.8rem; }
.dv-elx-ticker { letter-spacing: .3em; }
.dv-elx-alert { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #b42318; font-weight: 800; }

/* Elements pages (2026-11-12 design pass): the look on a lit stage, the sample run as turns (who did it, then what
   happened), and the price as one plain sentence. 390 px first. */
.el-page { max-width: 1080px; margin: 0 auto; padding: 16px; }
.el-page .dv-fine { font-size: .875rem; line-height: 1.45; color: var(--text-muted); }
.el-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; margin: 16px 0; align-items: start; }
.el-look-panel { display: grid; gap: 12px; justify-items: center; border: 1px solid var(--border); border-radius: 18px; padding: 16px; background: var(--bg-card, var(--bg-secondary)); }
.el-look-stage { display: grid; place-items: center; width: 100%; min-height: 168px; border-radius: 14px;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%), var(--bg-primary); }
/* The component's name under a look is the maker's note (the canvas prints it on its own line). */
.el-look-stage .dv-elx small { display: none; }
.el-look-panel canvas { width: 100%; max-width: 320px; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.el-look-panel .dv-fine { margin: 0; text-align: center; }
.el-run h2 { margin: 0 0 4px; font-size: 1.05rem; }
.el-run > .dv-fine { margin: 0 0 12px; }
.el-turns { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.el-turn { padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card, var(--bg-secondary)); }
.el-turn.is-refused { border-color: color-mix(in srgb, #f97066 38%, var(--border)); }
.el-turn-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: .95rem; }
.el-turn-who small { padding: 1px 8px; border-radius: 999px; background: var(--ovk-panel-2, rgba(255,255,255,.07)); color: var(--text-secondary); font-size: .75rem; font-weight: 600; }
.el-turn-who > span { color: var(--text-muted); }
.el-turn-who > .el-turn-chat { color: var(--text-primary); }
.el-turn-who .ovk-i { width: 16px; height: 16px; color: var(--text-muted); }
.el-turn-out { list-style: none; margin: 8px 0 2px 7px; padding: 0 0 0 12px; border-left: 2px solid var(--border); display: grid; gap: 6px; }
.el-out { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--text-secondary); }
.el-out .ovk-i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--el-out, var(--accent-light)); }
.el-out--robot { --el-out: #60a5fa; }
.el-out--screen { --el-out: #a78bfa; }
.el-out--chat { --el-out: #34d399; }
.el-out--cost, .el-out--money { --el-out: #fbbf24; }
.el-out--ai { --el-out: #c084fc; }
.el-out--state { --el-out: #2dd4bf; }
.el-out--chance { --el-out: #94a3b8; }
.el-out--refused { --el-out: #f97066; color: var(--text-primary); }
.el-price { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.el-price > .ovk-i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent-light); }
.el-price b { display: block; font-weight: 650; }
.el-price small { display: block; margin-top: 2px; color: var(--text-muted); font-size: .8125rem; }
.el-pack-pick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 0; padding: 0 16px 4px; }
.el-pack-pick::-webkit-scrollbar { display: none; }
.el-pack-pick .el-g-chip { padding: 0 14px; }
@media (min-width: 761px) { .el-pack-pick { flex-wrap: wrap; margin: 4px 0 0; padding: 0; overflow: visible; } }
.el-tweaks { margin: 16px 0; }
.el-tweaks fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: grid; gap: 10px; }
.el-tweak { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 8px; align-items: center; }
.el-tweak input[type=range] { width: 100%; min-height: 44px; }
.el-tweak input[type=text] { min-height: 44px; width: 100%; box-sizing: border-box; }
.el-tweak--check { display: flex; gap: 8px; align-items: center; }
.el-handoffs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.el-handoffs form { display: inline-block; }
.el-codes textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, monospace; font-size: .82rem; }
@media (max-width: 760px) { .el-grid { grid-template-columns: minmax(0, 1fr); } .el-tweak { grid-template-columns: minmax(0, 1fr); } }

/* Elements and packs gallery (2026-11-12 design pass): the search pill, kind chips with their counts (rule 134) and
   the order as links; cards whose picture is the element, or a pack's first four; a listing that shows a pack's
   whole deck beside one action card. */
.el-gallery .ovk-find { margin: 4px 0 10px; }
.el-g-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 16px; }
.el-g-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.el-g-chips::-webkit-scrollbar { display: none; }
.el-g-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 7px; box-sizing: border-box;
  border-radius: 999px; border: 1px solid var(--ovk-line, rgba(255,255,255,.1)); background: var(--ovk-panel, rgba(255,255,255,.04)); color: var(--text-primary);
  font-size: .9375rem; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .12s; }
.el-g-chip:hover, .el-g-chip:focus-visible { background: var(--ovk-panel-2, rgba(255,255,255,.07)); }
.el-g-chip[aria-current] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.el-g-chip:active { transform: scale(.97); }
.el-g-chip-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; color: var(--accent-light);
  background: color-mix(in srgb, var(--accent) 16%, transparent); }
.el-g-chip-ic .ovk-i { width: 17px; height: 17px; }
.el-g-n { color: var(--text-secondary); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.el-g-sort { display: flex; gap: 2px; font-size: .875rem; }
.el-g-filters .el-g-sort a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--text-muted); text-decoration: none; }
.el-g-filters .el-g-sort a:hover { color: var(--text-primary); }
.el-g-filters .el-g-sort a[aria-current] { color: var(--text-primary); background: var(--ovk-panel, rgba(255,255,255,.04)); font-weight: 600; }
@media (min-width: 600px) { .el-g-chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; } }

.el-g-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.el-g-card { border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card, var(--bg-secondary)); overflow: hidden; transition: border-color .15s; }
.el-g-card:hover, .el-g-card:focus-within { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.el-g-card a { display: grid; grid-template-rows: auto 1fr; color: inherit; text-decoration: none; height: 100%; }
.el-g-look { display: grid; place-items: center; min-height: 168px; padding: 14px; box-sizing: border-box;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg-primary); }
.el-g-look--pack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: center; }
.el-g-mini { display: grid; place-items: center; min-width: 0; }
.el-g-mini .dv-elx { min-width: 0; width: 100%; padding: 10px 12px; }
.el-g-mini .dv-elx-label { font-size: .875rem; }
.el-g-more { grid-column: 1 / -1; font-size: .8rem; color: var(--text-muted); }
/* The component's name under its label is the maker's note; a gallery tile shows the control itself. */
.el-g-look .dv-elx small, .el-deck-look .dv-elx small { display: none; }
.el-g-text { display: grid; gap: 4px; padding: 12px 14px 14px; align-content: start; }
.el-g-kind { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.el-g-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.el-g-summary { color: var(--text-secondary); font-size: .9rem; line-height: 1.45; }
.el-g-by { color: var(--text-muted); font-size: .8rem; margin-top: 4px; }

.el-g-lede { font-size: 1.05rem; line-height: 1.55; color: var(--text-secondary); margin: 4px 0 16px; max-width: 62ch; }
.el-g-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 24px; align-items: start; }
.el-g-main { min-width: 0; }
.el-g-h { font-size: 1rem; margin: 0 0 2px; }
.el-g-main > .dv-fine { margin: 0; }
.el-g-stage { display: grid; place-items: center; min-height: 260px; border: 1px solid var(--border); border-radius: 18px; padding: 16px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg-primary); }
.el-deck { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.el-deck-tile { display: grid; gap: 6px; justify-items: center; align-content: start; text-align: center; height: 100%; box-sizing: border-box; padding: 14px 10px 12px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card, var(--bg-secondary)); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.el-deck-tile:hover, .el-deck-tile:focus-visible { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-1px); }
.el-deck-look { display: grid; place-items: center; min-height: 64px; }
.el-deck-look .dv-elx { min-width: 0; padding: 12px 18px; }
.el-deck-look .dv-elx-label { font-size: .9375rem; }
.el-deck-name { font-weight: 650; font-size: .95rem; }
.el-deck-line { font-size: .8125rem; color: var(--text-muted); line-height: 1.35; }
.el-g-act { position: sticky; top: 76px; display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card, var(--bg-secondary)); }
.el-g-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.el-g-btns > form { display: contents; }
/* The one main action fills the card; the quieter two share the row under it. */
.el-g-btns--main > .ovk-btn { flex: 1 1 100%; justify-content: center; }
.el-g-btns > .ovk-btn, .el-g-btns > form > .ovk-btn { flex: 1 1 0; justify-content: center; white-space: nowrap; }
.el-g-act .dv-fine { margin: 0; }
.el-g-installed { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 650; color: #34d399; }
.el-g-installed .ovk-i { width: 18px; height: 18px; }
.el-g-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: .9rem; }
.el-g-stars { color: #fbbf24; letter-spacing: 1px; }
.el-g-act input, .el-g-act select, .el-g-act textarea, .el-g-report input, .el-g-report select, .el-g-report textarea { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; }
.el-g-act fieldset { border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 8px; padding: 12px; margin: 0; }
.el-g-report { margin: 28px 0 0; color: var(--text-muted); font-size: .9rem; }
.el-g-report summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.el-g-report summary .ovk-i { width: 16px; height: 16px; }
.el-g-report form { display: grid; gap: 8px; max-width: 480px; }
.el-g-reports { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.el-g-report-row { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.el-g-report-row form { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-prose { line-height: 1.5; }
@media (max-width: 760px) { .el-g-detail { grid-template-columns: minmax(0, 1fr); gap: 16px; } .el-g-act { position: static; order: -1; } .el-g-stage { min-height: 200px; } }

/* An element take is a look, not a document frame: one compact card, and no device/theme toolbar over it. */
.dv-canvas[data-kind="element"] .dv-rail { justify-content: center; }
.dv-canvas[data-kind="element"] .dv-card { flex: 0 0 min(100%, 420px); min-width: 0; }
.dv-canvas[data-kind="element"] .dv-frame--element { height: auto; min-height: 170px; display: grid; place-items: center; }
.dv-canvas[data-kind="element"] .dv-toolbar { display: none; }

/* The element editor's icon picker (L32 I2): a field plus the glyphs suggested by the label's words. */
.dv-elx-icon{display:inline-grid;place-items:center;width:1.1em;height:1.1em;margin-right:.35em;vertical-align:-.15em}
.dv-elx-icon svg{width:100%;height:100%}
.el-tweak--icon{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
.el-icon-row{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.el-icon-pick{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 10px;border-radius:999px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);font:inherit;font-size:12px;cursor:pointer}
.el-icon-pick:hover,.el-icon-pick.is-on{border-color:var(--accent);color:var(--accent)}
.el-icon-pick svg{width:18px;height:18px}
.el-icon-pick span{color:var(--text-muted);font-size:11px}
@media (max-width:760px){.el-tweak--icon{grid-template-columns:minmax(0,1fr)}}
