/* Fonts are served from this site (no Google Fonts requests, so visitors' IP addresses aren't shared). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Material Icons"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/material-icons.woff2") format("woff2"); }
@font-face { font-family: "Material Icons Outlined"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/material-icons-outlined.woff2") format("woff2"); }
.material-icons, .material-icons-outlined { font-weight: normal; font-style: normal; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }
.material-icons { font-family: "Material Icons"; }
.material-icons-outlined { font-family: "Material Icons Outlined"; }
/* Layout: slim top nav, big centred canvas stage, fixed settings column on the right (stacks on phones) */
:root {
  --bg: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --field: #d4d4d8;
  --hover: #f4f4f5;
  --lime: #a5f001;
  --lime-ink: #1a2e05;
  --lime-hover: #93d900;
  --stage: #f3f3f1;
  --danger: #dc2626;
  --ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 13px; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
.material-icons, .material-icons-outlined { font-size: 18px; line-height: 1; user-select: none; }

.app { height: 100%; display: flex; flex-direction: column; }

/* ---------- top nav ---------- */
.top { flex: none; height: 60px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; height: 40px; width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.top-left { display: flex; align-items: center; gap: 44px; }
.nav, .auth { display: flex; gap: 36px; }
.nav a, .auth a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; }
.nav a:hover, .auth a:hover { text-decoration: underline; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; }
.link:hover { text-decoration: underline; }
.intro-link { font-size: 12px; text-decoration: underline; }
.intro-links { display: inline-flex; gap: 12px; margin-left: 4px; }
.help-lead { margin: 0; font-size: 13px; line-height: 1.5; color: #3f3f46; }
.help-email { margin: 0; font-size: 16px; font-weight: 700; user-select: all; overflow-wrap: anywhere; }
.help-mail { text-decoration: none; height: 34px; font-size: 12.5px; }

/* ---------- vinyl colours ---------- */
.vinyl-name { font-size: 12px; font-weight: 600; }
.vinyl-grid { display: flex; flex-direction: column; gap: 4px; }
.vgroup { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.vrow { display: flex; flex-wrap: wrap; gap: 6px; }
.vsw { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.vsw canvas { width: 32px; height: 32px; border-radius: 50%; display: block; }
.vsw[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.vsw:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vsw:hover canvas { transform: scale(1.06); }
#vinylSwatch { background: #E11D48; }
.vinyl-custom-help { align-self: center; }
@media (prefers-reduced-motion: reduce) { .vsw:hover canvas { transform: none; } }

/* ---------- cover art maker ---------- */
.make-cover { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 12px; font-weight: 600; text-decoration: underline; }
.make-cover .material-icons { font-size: 15px; }
.modal.cover-modal { width: min(1000px, calc(100% - 32px)); }
.cover-card { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.cover-head { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cover-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.cover-head .modal-x { position: static; margin-left: auto; }
.cover-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; padding: 20px; overflow-y: auto; min-height: 0; }
.cover-preview { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#coverCanvas { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cover-shuffle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cover-controls { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pal-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pal { width: 46px; height: 26px; border-radius: 6px; border: 1px solid rgba(0,0,0,.15); cursor: pointer; padding: 0; }
.pal[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.pal:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pal-photo { width: auto; padding: 0 9px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.cover-actions { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cover-actions .cover-note { flex: 1 1 220px; margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.cover-actions .btn { height: 38px; }
@media (max-width: 780px) {
  .modal.cover-modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .cover-card { height: 100%; max-height: 100%; padding-top: env(safe-area-inset-top, 0px); }
  .cover-body { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .cover-head { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .cover-actions { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .cover-actions .btn { flex: 1 1 auto; }
}
.link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.auth { align-items: center; }
.auth .btn { height: 30px; }
.auth .who { color: var(--muted); font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fef9c3; color: #713f12; font-size: 12px; line-height: 1.4;
  padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.beta-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.4;
  padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.beta-bar b { color: var(--lime); }
.beta-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.beta-btn .material-icons { font-size: 15px; }
.beta-btn:hover { background: var(--lime-hover); }
.beta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.badge-beta { background: var(--lime); color: var(--lime-ink); }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-kind { height: 30px; padding: 0 12px; border: 1px solid var(--field); border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 600; cursor: pointer; }
.fb-kind:hover { background: var(--hover); }
.fb-kind[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fb-kind:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fb-text { height: auto; min-height: 110px; padding: 10px; line-height: 1.45; resize: vertical; font-family: inherit; }
.demo-switch { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; white-space: nowrap; }

.field.locked { cursor: pointer; }
.field.locked > :not(.field-head) { opacity: .45; pointer-events: none; }
.field.locked .lbl { color: var(--muted); }
.field.locked .badge:not(.badge-new) { background: #a1a1aa; }
.field.locked:hover .badge:not(.badge-new) { background: var(--ink); }

.modal { border: 0; padding: 0; border-radius: 12px; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); color: var(--ink); background: var(--bg); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(24,24,27,.45); }
.modal-card { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.modal-card h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; background: none; border-radius: 6px; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.modal-x:hover { background: var(--hover); color: var(--ink); }
.badge-lg { align-self: flex-start; font-size: 9px; padding: 3px 7px; }
.price { margin: 0; font-size: 15px; font-weight: 700; }
.perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.4; }
.perks li { display: flex; gap: 8px; }
.perks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231a2e05' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.modal-note { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.modal-note.err { color: var(--danger); }
.faq h3 { margin: 6px 0 0; font-size: 13px; font-weight: 700; }
.faq p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #3f3f46; }
.faq { max-height: calc(100vh - 64px); overflow-y: auto; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; z-index: 40; max-width: calc(100% - 32px); text-align: center; }

/* ---------- work area ---------- */
.work { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 248px; }
.stage { position: relative; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden;
  background: var(--stage) radial-gradient(circle, rgba(24,24,27,.09) 1px, transparent 1.4px) 0 0 / 18px 18px; }
#view { display: block; border-radius: 10px; max-width: 100%; }

.render { position: absolute; inset: 0; background: var(--stage); display: flex; align-items: center; justify-content: center; padding: 24px; }
.render-card { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.render-disc { width: 72px; height: 72px; margin: 0 auto 4px; background: url("brand/disc.png") center / contain no-repeat; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.render-card h2 { margin: 0; font-size: 16px; font-weight: 700; }
.render-step { color: var(--muted); font-size: 12px; min-height: 16px; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--lime); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); border-radius: 3px; transition: width .15s linear; }
.render-quote { margin: 6px 0 2px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; gap: 6px; transition: opacity .45s ease; }
.render-quote.fade { opacity: 0; }
.render-quote blockquote { margin: 0; font-size: 14px; line-height: 1.45; font-style: italic; font-weight: 500; color: var(--ink); }
.render-quote.tip blockquote { font-style: normal; font-weight: 400; color: var(--muted); }
.render-quote figcaption { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.render-pct { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

.result { position: absolute; inset: 0; background: var(--stage); display: flex; padding: 24px; overflow-y: auto; }
.result-card { width: 100%; max-width: 420px; margin: auto; display: flex; flex-direction: column; gap: 12px; }
.result-card h2 { margin: 0; font-size: 16px; font-weight: 700; }
.result-card video { width: 100%; max-height: 52vh; border-radius: 10px; background: #000; display: block; }
.result-how { color: var(--muted); font-size: 11px; margin-top: -8px; }
.result-meta { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.result-row { display: flex; gap: 8px; }
#closeResult { height: 36px; }
.btn.first { order: -1; }
.capture-canvas { position: fixed; left: -10000px; top: 0; width: 2px; height: 2px; pointer-events: none; }
.result-row .btn { flex: 1; }
.result-note { font-size: 12px; min-height: 16px; }

/* ---------- settings column ---------- */
.panel { min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--bg); }
.panel-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 18px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 15px; }
fieldset:disabled { opacity: .55; }
.intro { border: 1px solid var(--line); border-radius: 6px; padding: 12px; line-height: 1.55; font-size: 12px; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lbl { font-size: 12px; font-weight: 700; }
.req { color: var(--danger); }
.badge { font-size: 7.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 2px 5px; border-radius: 3px; }
.badge-new { background: var(--lime); color: var(--lime-ink); }
.badges { display: flex; gap: 4px; }
.help { font-size: 10.5px; color: var(--muted); line-height: 1.4; }

.control { width: 100%; height: 34px; border: 1px solid var(--field); border-radius: 6px; background: var(--bg); padding: 0 10px; font-size: 13px; }
.control:focus-visible, .file-row:focus-within, .wave:focus-visible, .btn:focus-visible, .icon-btn:focus-visible, .sw:focus-visible, .swatch:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer; }
.select-wrap select:disabled { cursor: not-allowed; color: var(--muted); }
.chev { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.select-wrap.has-icon select { padding-left: 32px; }
.shape-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 16px; height: 16px; }

.file-row { display: flex; align-items: center; height: 34px; border: 1px solid var(--field); border-radius: 6px; background: var(--bg); min-width: 0; }
.file-row label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 8px; cursor: pointer; color: var(--muted); font-size: 13px; }
.file-row .material-icons-outlined { font-size: 16px; color: #a1a1aa; }
.file-row .fname { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row.has label { color: var(--ink); }
.file-row .x { flex: none; width: 28px; height: 28px; margin-right: 3px; border: 0; background: none; border-radius: 5px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.file-row .x:hover { background: var(--hover); color: var(--ink); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }

input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 16px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--ink) var(--p), var(--line) var(--p)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 1px solid #a1a1aa; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 1px solid #a1a1aa; }
input[type=range]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.ticks { position: relative; height: 12px; font-size: 9px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticks span { position: absolute; top: 0; transform: translateX(-50%); }

.color-row { display: flex; gap: 6px; }
.swatch { flex: none; position: relative; width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--field); overflow: hidden; }
.swatch input { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); opacity: 0; cursor: pointer; }
.color-row .control { font-variant-numeric: tabular-nums; text-transform: uppercase; }
.control.bad { border-color: var(--danger); }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); cursor: pointer; padding: 0; }
.sw:hover { transform: scale(1.1); }

.sub { display: flex; flex-direction: column; gap: 6px; padding-left: 10px; border-left: 2px solid var(--line); }
.sub .control { height: 30px; font-size: 12px; }

.trim { border: 1px solid var(--field); border-radius: 6px; overflow: hidden; }
.wave { display: block; width: 100%; height: 64px; touch-action: none; cursor: pointer; }
.trim-bar { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 2px 3px; }
.icon-btn { width: 32px; height: 30px; border: 0; background: none; border-radius: 5px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--hover); }
.icon-btn .material-icons { font-size: 20px; }
.trim-times { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trim-times b { color: var(--ink); font-weight: 600; }

.panel-actions { flex: none; border-top: 1px solid var(--line); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn { height: 34px; border-radius: 6px; border: 1px solid var(--field); background: var(--bg); font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; padding: 0 10px; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); height: 38px; font-size: 13px; font-weight: 700; }
.btn.primary:hover { background: var(--lime-hover); border-color: var(--lime-hover); }
.btn.warn { border-color: var(--danger); color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.status { font-size: 11px; min-height: 14px; color: var(--muted); line-height: 1.35; }
.status.err { color: var(--danger); }

@media (max-width: 780px) {
  .app { height: auto; min-height: 100%; }
  .nav { display: none; }
  .brand-logo { height: 32px; }
  .auth { gap: 14px; }
  .auth .who { display: none; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .stage { padding-block: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .panel-scroll { overflow: visible; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .render, .result { position: fixed; inset: 0; z-index: 30;
    padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  html.overlay-open, html.overlay-open body { overflow: hidden; }
  .panel-actions { position: sticky; bottom: 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .render-disc { animation: none; } .bar-fill { transition: none; } .render-quote { transition: none; } .sw:hover { transform: none; } }

.grow { flex: 1; }
.badge-demo { background: #ca8a04; }

/* ---------- quick styles, all sizes, result size tabs ---------- */
.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.style-chip { display: flex; align-items: center; gap: 7px; min-width: 0; height: 36px; padding: 0 8px; border: 1px solid var(--field); border-radius: 8px; background: var(--bg); font-size: 11.5px; font-weight: 600; cursor: pointer; text-align: left; }
.style-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.style-chip:hover { border-color: var(--ink); }
.style-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.style-dot { flex: none; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.style-disc { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.check-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.result-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 3px; border-radius: 9px; background: var(--hover); }
.size-tab { height: 30px; border: 0; border-radius: 7px; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--muted); }
.size-tab[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.size-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* ---------- description section, footer and legal pages ---------- */
.about { border-top: 1px solid var(--line); background: var(--bg); }
.about-inner, .legal { max-width: 960px; margin: 0 auto; padding: 56px max(20px, env(safe-area-inset-left, 0px)) 64px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.about h1 { margin: 0; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; max-width: 760px; }
.about .lede { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: #3f3f46; max-width: 680px; }
.about h2 { margin: 52px 0 18px; font-size: 22px; letter-spacing: -0.01em; }
.examples { display: grid; grid-template-columns: 1.15fr 0.65fr 0.92fr; gap: 16px; align-items: end; margin-top: 36px; }
.examples figure { margin: 0; }
.examples figcaption { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps li { counter-increment: step; padding: 18px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: #3f3f46; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); font-weight: 800; }
.steps b, .feature-list b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; }
.feature-list li { font-size: 13.5px; line-height: 1.5; color: #3f3f46; padding-left: 14px; border-left: 3px solid var(--lime); }
.site-foot { background: var(--ink); color: #d4d4d8; font-size: 12.5px; }
.foot-inner { max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  padding: 22px max(20px, env(safe-area-inset-left, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)); }
.foot-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-inner a, .foot-inner .link { color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.foot-inner a:hover, .foot-inner .link:hover { color: var(--lime); }
.modal-note a { color: inherit; }
@media (max-width: 780px) {
  .about-inner { padding-top: 40px; }
  .examples { grid-template-columns: 1fr 1fr; align-items: start; }
  .examples figure:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}
/* legal pages */
.legal-top { height: 60px; display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0 max(20px, env(safe-area-inset-left, 0px)); }
.legal { padding-top: 40px; max-width: 760px; font-size: 15px; line-height: 1.65; color: #27272a; }
.legal h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--ink); }
.legal .updated { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.legal h2 { font-size: 18px; margin: 32px 0 8px; color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--ink); }
.legal .callout { background: var(--stage); border-left: 3px solid var(--lime); padding: 12px 16px; border-radius: 6px; }
.legal-body { height: auto; }
.examples canvas { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
