/* Frongus launchpad. The page is the Frongus's own world: the original art's grey paper,
   true-black ink at the drawing's line weight, and slate blue as the only brand colour. */

/* Archivo (SIL Open Font License), self-hosted: weight 100-900, width 62-125% */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2-variations'), url('/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/fonts/archivo-latin.woff2') format('woff2-variations'), url('/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ececea;
  --paper-art: #e4e4e4;
  --card: #ffffff;
  --ink: #000000;
  --slate: #758aa2;
  --slate-deep: #3f5470;
  --slate-tint: #dfe5ec;
  --muted: #555b63;
  --hair: #c8c8c3;
  --ok: #17784a;
  --bad: #b3261e;
  --warn: #fff1c7;

  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 14px;
  --pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
.muted { color: var(--muted); font-weight: 400; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------- header */
.top {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 18px clamp(16px, 4vw, 40px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  background: url('/img/favicon.svg') center / contain no-repeat;
}
.brand-name {
  font-size: 26px; font-weight: 850; letter-spacing: -0.03em;
  font-variation-settings: 'wdth' 125;
}
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.top-nav a:hover { text-decoration: underline; }
.wallet-slot { position: relative; }
.wallet-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; min-width: 240px;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 12px; box-shadow: 5px 5px 0 var(--ink);
}
.wallet-addr { margin: 0; font-weight: 700; font-size: 15px; word-break: break-all; }
.wallet-bal { margin: 2px 0 10px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.menu-item {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 15px;
}
.menu-item:hover { background: var(--slate-tint); }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--pill);
  border: 2px solid var(--ink); background: transparent; cursor: pointer;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .12s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--slate-deep); border-color: var(--slate-deep); }
.btn-line { background: var(--card); }
.btn-line:hover { background: var(--slate-tint); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-launch {
  width: 100%; min-height: 64px; font-size: 20px; font-weight: 850; letter-spacing: -0.01em;
  font-variation-settings: 'wdth' 118;
  background: var(--ink); color: #fff; box-shadow: 5px 5px 0 var(--slate);
}
.btn-launch:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--slate); }
.btn-launch:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--slate); }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--card); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.chip-btn {
  border: 2px solid var(--ink); background: var(--card); border-radius: var(--pill);
  padding: 4px 12px; font-weight: 700; font-size: 13px; cursor: pointer;
}

/* -------------------------------------------------------------- hero */
main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.hero { padding: clamp(14px, 3vw, 34px) 0 clamp(20px, 3vw, 34px); }
.hero-title {
  margin: 0; max-width: 13ch;
  font-size: clamp(44px, 7vw, 100px); line-height: .9; letter-spacing: -0.045em;
  font-weight: 900; font-variation-settings: 'wdth' 125;
}
.hero-sub { margin: 18px 0 0; max-width: 44ch; font-size: clamp(17px, 2vw, 21px); color: var(--muted); }

/* ------------------------------------------------------------ studio */
.studio {
  display: grid; gap: clamp(22px, 3.5vw, 48px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
}
.stage { position: sticky; top: 18px; }
.art-frame {
  position: relative; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden;
  border: 3px solid var(--ink); background: var(--paper-art);
  box-shadow: 9px 9px 0 var(--ink);
}
.art, .art svg { width: 100%; height: 100%; }
.art.pop { animation: pop .26s var(--ease); }
@keyframes pop { 0% { transform: scale(.965); } 60% { transform: scale(1.012); } 100% { transform: scale(1); } }
.art-ticker {
  position: absolute; left: 16px; top: 16px; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; border-radius: var(--pill); padding: 6px 14px;
  font-weight: 800; font-size: 16px; letter-spacing: .01em; font-variation-settings: 'wdth' 112;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.art-ticker:empty { display: none; }
.name-slot:not(:empty) { margin-top: 22px; }
.name-slot .field-name input { background: var(--card); }
.name-home:empty { display: none; }
.traits { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; }
.traits li {
  border: 2px solid var(--ink); background: var(--card); border-radius: var(--pill);
  padding: 4px 12px; font-size: 14px; font-weight: 600;
}
.traits li.from-name { background: var(--slate-tint); }
.traits li.plain { border-style: dashed; color: var(--muted); background: transparent; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.panel {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--r-xl);
  padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 18px;
}
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; align-content: start; }
.field-label { font-weight: 700; font-size: 15px; }
.field-hint { font-size: 14px; color: var(--muted); }
.field input, .field textarea, .ticker-input, .buy-input {
  width: 100%; border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--card);
  padding: 12px 14px; font-size: 17px; outline: none;
}
.field input:focus, .field textarea:focus, .ticker-input:focus-within, .buy-input:focus-within {
  box-shadow: 0 0 0 3px var(--slate);
}
.field textarea { resize: vertical; min-height: 64px; line-height: 1.4; }
.field-name input {
  font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; padding: 14px 16px; letter-spacing: -0.01em;
  font-variation-settings: 'wdth' 112;
}
.field input::placeholder, .field textarea::placeholder { color: #8b9097; font-weight: 400; }
.row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
.ticker-input, .buy-input { display: flex; align-items: center; gap: 6px; padding: 0 8px 0 14px; }
.ticker-input span { font-weight: 800; color: var(--muted); }
.ticker-input input, .buy-input input {
  border: 0; padding: 12px 0; box-shadow: none !important; min-width: 0; font-weight: 700; text-transform: uppercase;
}
.buy-input input { text-transform: none; font-variant-numeric: tabular-nums; }
.field-ticker input { letter-spacing: .02em; }

.more { border-top: 2px solid var(--ink); padding-top: 14px; }
.more summary {
  cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before {
  content: ''; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg); transition: transform .15s; margin-right: 4px;
}
.more[open] summary::before { transform: rotate(45deg); }
.more-body { display: grid; gap: 14px; margin-top: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-block; border: 2px solid var(--ink); border-radius: var(--pill); padding: 6px 14px; font-weight: 600; font-size: 14px;
}
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--slate); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 2px; flex: none; }

.launch { display: grid; gap: 10px; margin-top: 4px; }
.launch-note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.form-error {
  margin: 0; padding: 12px 14px; border-radius: var(--r-md); border: 2px solid var(--bad);
  color: var(--bad); background: #fff5f4; font-weight: 600; font-size: 15px;
}
.notice { padding: 12px 14px; border-radius: var(--r-md); border: 2px solid var(--ink); font-size: 15px; font-weight: 600; }
.notice-warn { background: var(--warn); }

/* ----------------------------------------------------------- sections */
section.gallery, section.how, section.pair, section.mine { margin-top: clamp(64px, 9vw, 120px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.section-head p { margin: 0; color: var(--muted); }
h2 {
  margin: 0; font-size: clamp(30px, 4.4vw, 52px); line-height: 1; letter-spacing: -0.035em;
  font-weight: 900; font-variation-settings: 'wdth' 120;
}

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.variant {
  display: grid; gap: 8px; padding: 8px 8px 12px; text-align: left; cursor: pointer;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.variant:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.variant .thumb { aspect-ratio: 1; border-radius: 15px; overflow: hidden; }
.variant .thumb svg { width: 100%; height: 100%; }
.variant b { font-size: 15px; line-height: 1.2; padding: 0 4px; }
.variant small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.how h2 { margin-bottom: 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 900; font-size: 20px; margin-bottom: 14px;
}
.steps h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; font-weight: 850; font-variation-settings: 'wdth' 115; }
.steps p { margin: 0; color: var(--muted); max-width: 36ch; }

.pair {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  background: var(--slate); border: 3px solid var(--ink); border-radius: var(--r-xl); padding: clamp(18px, 3.5vw, 44px);
}
.pair-art { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; border: 3px solid var(--ink); background: var(--paper-art); }
.pair-art svg { width: 100%; height: 100%; }
.pair-body p { max-width: 52ch; font-size: 18px; }
.pair-body h2 { margin-bottom: 14px; }
.ca {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md); padding: 10px 10px 10px 14px; margin-top: 20px;
}
.ca-label { font-size: 13px; font-weight: 700; color: var(--muted); width: 100%; }
.ca-value { flex: 1 1 220px; min-width: 0; font-family: var(--font); font-size: 15px; font-weight: 600; word-break: break-all; font-variant-numeric: tabular-nums; }
.pair-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; margin: 16px 0 0; }
.pair-status { font-size: 15px !important; margin: 12px 0 0; font-weight: 600; }

.mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mine-list li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-md); padding: 8px 12px 8px 8px;
}
.mine-list .mini { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; }
.mine-list .mini svg { width: 100%; height: 100%; }
.mine-list b { display: block; }
.mine-list small { color: var(--muted); font-size: 13px; word-break: break-all; }

.foot {
  max-width: 1240px; margin: clamp(64px, 9vw, 120px) auto 0; padding: 24px clamp(16px, 4vw, 40px) 48px;
  border-top: 2px solid var(--ink); color: var(--muted); font-size: 14px;
}
.foot p { margin: 0 0 6px; max-width: 70ch; }

/* ------------------------------------------------------------ dialogs */
dialog { border: 3px solid var(--ink); border-radius: var(--r-xl); padding: 0; background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgba(10, 12, 16, .5); }
.sheet { width: min(460px, calc(100vw - 24px)); }
.sheet-head, .editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 0 22px; }
.sheet-head h2, .editor-head h2 { font-size: 26px; }
.sheet-note { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 14px; }
.sheet-note:empty { display: none; }
.sheet-foot { display: flex; gap: 10px; padding: 0 22px 22px; }
.sheet-foot:not(:has(:not([hidden]))) { display: none; }
.wallet-list { display: grid; gap: 10px; padding: 18px 22px 18px; }
.wallet-option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--card); padding: 12px 14px;
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.wallet-option:hover { background: var(--slate-tint); }
.wallet-option img { width: 30px; height: 30px; border-radius: 8px; }
.wallet-option small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13px; }

.launch-sheet .launch-art { width: 132px; height: 132px; border-radius: 22px; overflow: hidden; border: 3px solid var(--ink); margin: 16px 22px 0; }
.launch-sheet .launch-art svg { width: 100%; height: 100%; }
.progress { list-style: none; margin: 0; padding: 16px 22px 18px; display: grid; gap: 12px; }
.progress li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 600; color: var(--muted); }
.progress li small { display: block; font-weight: 400; font-size: 14px; }
.progress li[data-state='active'], .progress li[data-state='done'] { color: var(--ink); }
.progress .dot { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid currentColor; margin-top: 1px; display: grid; place-items: center; }
.progress li[data-state='active'] .dot { border-color: var(--hair); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.progress li[data-state='done'] .dot { background: var(--ok); border-color: var(--ok); }
.progress li[data-state='done'] .dot::after { content: ''; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.progress li[data-state='error'] { color: var(--bad); }
.progress li[data-state='error'] .dot { background: var(--bad); border-color: var(--bad); }
@keyframes spin { to { transform: rotate(360deg); } }
#launchError { margin: 0 22px 18px; }
.done { padding: 0 22px 18px; }
.done .ca { margin-top: 0; }
.done-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.done-actions .btn-launch { min-height: 56px; font-size: 18px; }

.editor { width: min(1000px, calc(100vw - 24px)); height: min(760px, calc(100vh - 24px)); }
.editor[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.editor-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; padding: 16px 22px; min-height: 0; }
.editor-preview { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; border: 3px solid var(--ink); align-self: start; }
.editor-preview svg { width: 100%; height: 100%; }
.editor-controls { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; min-height: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px; margin: -3px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 2px solid var(--ink); border-radius: var(--pill); background: var(--card); cursor: pointer;
  padding: 7px 14px; font-weight: 700; font-size: 14px;
}
.tab[aria-selected='true'] { background: var(--ink); color: #fff; }
.editor-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.editor-extra:empty { display: none; }
.editor-extra .label { font-weight: 700; font-size: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer; padding: 0; }
.swatch[aria-checked='true'] { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--slate); }
.editor-extra select {
  border: 2px solid var(--ink); border-radius: var(--pill); padding: 6px 12px; font: inherit; font-weight: 600; font-size: 14px; background: var(--card);
}
.options {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; overflow-y: auto; align-content: start;
  padding: 4px; margin: -4px; overscroll-behavior: contain;
}
.option { display: grid; gap: 4px; padding: 5px 5px 8px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); cursor: pointer; text-align: center; font-size: 13px; font-weight: 600; }
.option .thumb { aspect-ratio: 1; border-radius: 11px; overflow: hidden; }
.option .thumb svg { width: 100%; height: 100%; }
.option[aria-checked='true'] { box-shadow: 0 0 0 4px var(--slate); }
.editor-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 22px 18px; border-top: 2px solid var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100;
  background: var(--ink); color: #fff; border-radius: var(--pill); padding: 12px 20px; font-weight: 700; font-size: 15px;
  max-width: calc(100vw - 32px);
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .stage { position: static; }
  .top-nav { display: none; }
  .wallet-slot { margin-left: auto; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair-art { max-width: 260px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top { padding-top: 12px; padding-bottom: 12px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 22px; }
  .hero-title { max-width: 12ch; }
  .art-frame { box-shadow: 6px 6px 0 var(--ink); border-radius: var(--r-lg); }
  .stage-actions .btn { flex: 1 1 0; padding: 0 10px; font-size: 14px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .variant { padding: 5px 5px 8px; border-radius: 16px; }
  .variant .thumb { border-radius: 11px; }
  .variant b { font-size: 13px; padding: 0 2px; }
  .variant small { display: none; }
  dialog.sheet, dialog.editor {
    width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 26px 26px 0 0; border-bottom: 0;
    max-height: 92vh;
  }
  dialog.editor { height: 92vh; }
  .editor-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding: 12px 14px; gap: 12px; }
  .editor-preview { width: 42vw; max-width: 200px; justify-self: center; }
  .options { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .editor-foot { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); }
  .sheet-foot, .done, .progress { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
