/* Layout: tool-first workbench — controls in numbered panels, sticky preview column
   (2D code + 3D object on a "build plate"), content and ads below. */
:root {
  --bg: #f1f2f4;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #5a606c;
  --line: #dde0e6;
  --accent: #e5560a;
  --accent-ink: #ffffff;
  --accent-soft: #fde9dc;
  --plate: #24262c;
  --plate-ink: #c9ccd3;
  --ok: #17824a;
  --warn: #9a6200;
  --bad: #c0282d;
  --ad: #eceef1;
  --shadow: 0 1px 2px rgba(22, 24, 29, .06), 0 8px 24px rgba(22, 24, 29, .06);
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216; --surface: #191c22; --ink: #eceef2; --muted: #9ba2ae; --line: #2a2e36;
    --accent: #ff7a33; --accent-ink: #1a0e05; --accent-soft: #3a2214; --plate: #0b0c0f; --plate-ink: #9ba2ae;
    --ok: #4cc283; --warn: #e3a948; --bad: #ff6b6f; --ad: #20242b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101216; --surface: #191c22; --ink: #eceef2; --muted: #9ba2ae; --line: #2a2e36;
  --accent: #ff7a33; --accent-ink: #1a0e05; --accent-soft: #3a2214; --plate: #0b0c0f; --plate-ink: #9ba2ae;
  --ok: #4cc283; --warn: #e3a948; --bad: #ff6b6f; --ad: #20242b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.mono { font-family: var(--font-mono); font-size: .86em; font-variant-numeric: tabular-nums; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.08rem/1 var(--font-display); }
.brand-mark { width: 30px; height: 30px; }
.bm-base { fill: var(--ink); }
.bm-top { fill: var(--accent); }
.bm-top2 { fill: #f5f5f0; }
.head-nav { display: flex; gap: 18px; font-size: .94rem; }
.head-nav a { text-decoration: none; color: var(--muted); }
.head-nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .head-nav { display: none; } }

/* Hero */
.hero { padding-block: 26px 18px; }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); font-weight: 800; max-width: 22ch; }
.lede { margin: 10px 0 0; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 62ch; }
.lede strong { color: var(--ink); font-weight: 600; }

/* Tool grid */
.tool {
  display: grid; gap: 16px; padding-block: 4px 18px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "content" "preview" "design" "object" "privacy";
}
@media (min-width: 940px) {
  .tool {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    grid-template-areas: "content preview" "design preview" "object preview" "privacy preview";
    align-items: start;
  }
  .p-preview { position: sticky; top: 16px; }
}
.p-content { grid-area: content; }
.p-preview { grid-area: preview; }
.p-design { grid-area: design; }
.p-object { grid-area: object; }
.privacy { grid-area: privacy; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; display: grid; gap: 14px; }
.panel-title { font-size: 1.12rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 800 .85rem/1 var(--font-body); }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--muted); }
.tab:hover { color: var(--ink); border-color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.mode { display: grid; gap: 10px; }

/* Fields */
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-weight: 600; font-size: .9rem; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="url"], .field select {
  width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px;
  padding: 11px 12px; font-size: 1rem; min-width: 0;
}
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
#in-url { font-size: 1.05rem; padding: 13px 14px; }
.hint { margin: 0; color: var(--muted); font-size: .86rem; }
.hint.tight { font-size: .8rem; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; padding-bottom: 12px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* Groups */
.group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.group legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 8px; }
.legend-note { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: 6px; }

.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.style-opt { border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 6px 8px; display: grid; justify-items: center; gap: 6px; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--muted); }
.style-opt svg { width: 34px; height: 34px; fill: var(--ink); }
.style-opt[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }

.color-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.color-name { font-size: .86rem; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; position: relative; }
.sw[aria-checked="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.custom-color { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 1.5px dashed var(--muted); display: inline-grid; place-items: center; cursor: pointer; background: conic-gradient(#e33, #fd3, #3c6, #39f, #a3f, #e33); }
.custom-color input { opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
@media (max-width: 480px) { .color-row { grid-template-columns: minmax(0, 1fr) auto; } .color-name { grid-column: 1 / -1; } }

.emoji-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.emo { width: 40px; height: 40px; border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; font-size: 1.25rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.emoji-grid.compact .emo { width: 34px; height: 34px; font-size: 1.05rem; }
.emo[aria-checked="true"], .emo[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.emo.none { font-size: .72rem; font-weight: 600; color: var(--muted); }
.logo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.format-opt { border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 8px; display: grid; justify-items: center; gap: 2px; cursor: pointer; text-align: center; }
.format-opt svg { width: 56px; height: 42px; margin-bottom: 4px; }
.f-a { fill: var(--muted); opacity: .45; }
.f-b { fill: var(--ink); }
.f-hole { fill: var(--bg); }
.f-name { font-weight: 700; font-size: .92rem; }
.f-note { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.format-opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.format-opt[aria-checked="true"] .f-a { fill: var(--accent); opacity: .55; }

/* Checks */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; font-size: .88rem; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.checks li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; margin-top: .45em; background: var(--muted); }
.checks li.ok::before { background: var(--ok); }
.checks li.warn::before { background: var(--warn); }
.checks li.bad::before { background: var(--bad); }
.checks li.bad { color: var(--bad); }
.checks b { font-weight: 700; }

/* Preview column */
.p-preview { gap: 12px; }
.preview-2d { display: grid; gap: 10px; }
.canvas-frame { position: relative; background: var(--bg); border-radius: 12px; padding: 14px; display: grid; place-items: center; }
#qr-canvas { width: 100%; max-width: 300px; aspect-ratio: 1; height: auto; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.example-tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.err { margin: 0; color: var(--bad); font-size: .88rem; font-weight: 600; }

.preview-3d { display: grid; gap: 10px; }
.viewer {
  position: relative; height: 300px; border-radius: 12px; overflow: hidden; touch-action: none;
  background-color: var(--plate);
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.viewer canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--plate-ink); font-size: .9rem; }
.viewer-hint { position: absolute; left: 10px; top: 8px; font-size: .72rem; color: var(--plate-ink); opacity: .85; pointer-events: none; }
.dims { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; padding: 11px 14px; font-weight: 700; font-size: .95rem; cursor: pointer; border: 1.5px solid transparent; text-decoration: none; transition: transform .12s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--accent); color: var(--accent-ink); font-size: 1.06rem; padding: 15px 16px; width: 100%; }
.btn-main:hover { filter: brightness(1.06); }
.btn-main svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-main[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 12px; font-size: .88rem; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .86rem; justify-self: center; }
.link-btn:hover { color: var(--ink); }
#swap-colors { justify-self: start; }

.privacy { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .88rem; color: var(--muted); }
.privacy svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ok); stroke-width: 2; margin-top: 2px; }
.noscript { grid-column: 1 / -1; background: var(--accent-soft); padding: 12px; border-radius: 10px; margin: 0; }

/* Ads (placeholders) */
.ad-slot { display: grid; place-items: center; background: var(--ad); border: 1.5px dashed var(--line); border-radius: 10px; color: var(--muted); font: 600 .72rem/1 var(--font-body); letter-spacing: .18em; }
.ad-leaderboard { min-height: 100px; max-width: 728px; margin: 10px auto; }
@media (min-width: 760px) { .ad-leaderboard { min-height: 90px; } }
.ad-incontent { min-height: 280px; max-width: 336px; margin: 8px auto; }
.ad-box { width: 300px; max-width: 100%; height: 250px; }
.ad-mini { width: 100%; height: 100%; min-height: 90px; }

.ad-dialog { border: 0; border-radius: 16px; padding: 22px 20px 18px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); width: min(360px, calc(100vw - 32px)); }
.ad-dialog[open] { display: grid; gap: 14px; justify-items: center; }
.ad-dialog::backdrop { background: rgba(10, 12, 16, .55); }
.ad-dialog-title { margin: 0; font-weight: 700; color: var(--ok); }
.ad-close { position: absolute; top: 6px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.ad-close:hover { background: var(--bg); color: var(--ink); }
.ad-toast {
  position: fixed; z-index: 40; width: 240px; height: 110px; padding: 10px; border-radius: 14px;
  right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.18);
  animation: rise .35s ease-out;
}
.ad-toast .ad-close { top: -12px; right: -10px; width: 28px; height: 28px; font-size: 1.1rem; background: var(--ink); color: var(--bg); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 480px) { .ad-toast { width: 200px; height: 96px; } }

.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .9rem; font-weight: 600; max-width: calc(100vw - 32px); text-align: center; }

/* Content sections */
.section { padding-block: 44px 8px; }
.section > h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 800; margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); font: 800 2.2rem/1 var(--font-display); color: var(--accent); }
.steps h3 { font-size: 1.12rem; }
.steps p { margin: 0; color: var(--muted); }

.ideas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.idea { border-top: 3px solid var(--ink); padding: 14px 2px 4px; display: grid; gap: 6px; align-content: start; }
.idea-tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.idea h3 { font-size: 1.1rem; }
.idea p { margin: 0; color: var(--muted); font-size: .95rem; }

.prose { max-width: 68ch; }
.prose h3 { font-size: 1.15rem; margin: 22px 0 6px; }
.prose p { margin: 0 0 10px; }

.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.2rem/1 var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

.site-foot { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-inner { padding-block: 22px 28px; display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.foot-inner p { margin: 0; }
.foot-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.fine { font-size: .78rem; }

/* Legal pages */
.legal { max-width: 760px; padding-block: 32px; }
.legal h1 { font-size: 2rem; margin-bottom: 16px; }
.legal h2 { font-size: 1.2rem; margin: 22px 0 6px; }
.legal .todo { background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; }

/* Language switch */
.lang-switch { margin-left: auto; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.lang-switch:hover { border-color: var(--ink); }
.head-nav + .lang-switch { margin-left: 0; }

/* ===================== Brand kit studio ===================== */
.studio .p-preview { gap: 12px; }
.out-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.out { border: 1.5px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .86rem; cursor: pointer; }
.out:hover { color: var(--ink); border-color: var(--muted); }
.out[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.stage { position: relative; border-radius: 12px; padding: 18px; display: grid; place-items: center; min-height: 260px; overflow: hidden;
  background-color: #e9eaee; }
.stage[data-bg="dark"] { background-color: #1d1f24; }
.stage[data-bg="clear"] { background-color: #fff; background-image: linear-gradient(45deg, #e3e4e8 25%, transparent 25%), linear-gradient(-45deg, #e3e4e8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e3e4e8 75%), linear-gradient(-45deg, transparent 75%, #e3e4e8 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.stage[data-shadow="1"] #pv { box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 12px 30px rgba(0,0,0,.14); }
#pv { display: block; max-width: 100%; height: auto; max-height: 560px; width: auto; border-radius: 2px; }
.stage .example-tag { z-index: 2; }
.bg-toggle { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 2px; background: rgba(255,255,255,.85); border-radius: 999px; padding: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.bg-toggle button { border: 0; background: transparent; font: 600 .72rem/1 var(--font-body); color: #3a3d45; padding: 5px 9px; border-radius: 999px; cursor: pointer; }
.bg-toggle button[aria-checked="true"] { background: #16181d; color: #fff; }
.dl-box { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.dl-box .btn-main { grid-column: 1 / -1; }
.dl-box .btn-ghost { font-size: .88rem; padding: 10px 8px; }

.layouts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lay { border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px 4px 6px; display: grid; justify-items: center; gap: 4px; cursor: pointer; font-size: .76rem; font-weight: 600; color: var(--muted); }
.lay svg { width: 100%; max-width: 64px; height: auto; }
.lay .la { fill: var(--accent); } .lay .lb { fill: var(--ink); } .lay .lc { fill: var(--muted); opacity: .6; } .lay .ld { fill: var(--bg); }
.lay .le { fill: none; stroke: var(--accent); stroke-width: 2.4; }
.lay[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
@media (max-width: 480px) { .layouts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.ico { aspect-ratio: 1; border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--ink); font: 700 .7rem/1 var(--font-body); }
.ico svg { width: 22px; height: 22px; fill: currentColor; }
.ico[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.field-label.sub { font-size: .82rem; color: var(--muted); font-weight: 500; }

.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.fnt { border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 9px 6px; cursor: pointer; font-size: 1.05rem; line-height: 1.1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fnt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.pal { border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 6px; cursor: pointer; display: grid; gap: 4px; justify-items: center; font-size: .7rem; font-weight: 600; color: var(--muted); }
.pal i { display: flex; width: 100%; height: 18px; border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.pal i b { flex: 1; }
.pal[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); }
.pickers { display: flex; flex-wrap: wrap; gap: 14px; }
.picker { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); cursor: pointer; }
.picker input { width: 30px; height: 30px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0; background: none; cursor: pointer; }
.picker input::-webkit-color-swatch-wrapper { padding: 2px; }
.picker input::-webkit-color-swatch { border: 0; border-radius: 5px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1.5px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .86rem; cursor: pointer; }
.chips button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.opt { display: grid; gap: 12px; }
.field textarea { width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 12px; font: inherit; color: inherit; resize: vertical; min-width: 0; }
.field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[type="email"], .field input[type="tel"], .field input[type="date"], .field input[type="number"] {
  width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 11px 12px; font-size: 1rem; min-width: 0; }
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.span-2 { grid-column: 1 / -1; }
.grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.field-col { display: grid; gap: 12px; }
.more { border: 1.5px dashed var(--line); border-radius: 12px; padding: 0 14px; }
.more summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 12px 0; color: var(--ink); }
.more-body { padding-bottom: 14px; }

.items { display: grid; gap: 6px; }
.item-head, .item { display: grid; grid-template-columns: minmax(0, 1fr) 64px 92px 32px; gap: 6px; align-items: center; }
.item-head span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.item input { width: 100%; min-width: 0; border: 1.5px solid var(--line); background: var(--bg); border-radius: 8px; padding: 8px; font-size: .92rem; }
.item input:focus { border-color: var(--accent); outline: none; }
.item .x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.item .x:hover { background: var(--bg); color: var(--bad); }
#iv-add { justify-self: start; }

.swatches .sw { width: 28px; height: 28px; }

/* Offers: custom logo + Pro */
.offers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.offer { border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.offer h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 800; }
.offer p { margin: 0; }
.offer-custom { background: var(--ink); color: var(--bg); }
.offer-custom p, .offer-custom .ticks li { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.offer-pro { background: var(--surface); border: 1.5px solid var(--line); }
.offer-pro p, .offer-pro .ticks li { color: var(--muted); }
.eyebrow { justify-self: start; font: 600 .74rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.eyebrow.soon { background: var(--accent-soft); color: var(--accent); }
.ticks { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; }
.ticks li::before { content: ""; width: 14px; height: 8px; margin-top: .45em; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.offer-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 6px; }
.offer-actions .btn-main { width: auto; }
.offer-email { font-size: .86rem; opacity: .85; }
.sel { user-select: all; }
.dl-upsell { margin: 0; font-size: .9rem; text-align: center; color: var(--muted); }
.dl-upsell a { color: var(--accent); font-weight: 600; }
