@font-face {
  font-family: "Allura";
  src: url("assets/fonts/allura.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Great Vibes";
  src: url("assets/fonts/great-vibes.woff2") format("woff2");
  font-display: swap;
}
:root {

  --vm-paper: #f4f0e8;
  --vm-paper-deep: #ebe5da;
  --vm-white: #fffdf8;
  --vm-ink: #1f1e1a;
  --vm-muted: #6b655c;
  --vm-muted-ui: #6f6960;
  --vm-hairline: rgba(31, 30, 26, .17);
  --vm-edge: #8a8378;
  --vm-accent: #a7552b;
  --vm-accent-dark: #81401f;
  --vm-accent-tint: rgba(167, 85, 43, .08);
  --vm-love: #ad4c45;
  --vm-ok: #2f6b45;
  --vm-error: #9b2f25;
  --vm-shadow: 0 18px 50px rgba(40, 31, 20, .09);
  --vm-shadow-card: 0 6px 18px rgba(40, 31, 20, .10);

  --vm-font-ui: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "PMingLiU", Georgia, serif;
  --vm-font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vm-font-allura: "Allura", cursive;
  --vm-font-greatvibes: "Great Vibes", cursive;

  --fs-brand: 24px;
  --fs-title: 22px;
  --fs-body: 16px;
  --fs-label: 14px;
  --fs-small: 13px;
  --fs-badge: 12px;

  --tap: 44px;
  --nav-h: 52px;
  --r-s: 4px; --r-m: 8px; --r-l: 12px; --r-pill: 999px;
  --gap-1: 4px; --gap-2: 8px; --gap-3: 12px; --gap-4: 16px; --gap-5: 24px; --gap-6: 32px;
  --panel-w: 480px;
  --sa-t: env(safe-area-inset-top);
  --sa-l: env(safe-area-inset-left);
  --sa-r: env(safe-area-inset-right);
  --sa-b: env(safe-area-inset-bottom);

  --ease-out: cubic-bezier(.2, .72, .2, 1);
  --t-fast: .18s; --t-mid: .28s; --t-slow: .42s;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
[hidden] { display: none !important; }
body {
  min-width: 0; color: var(--vm-ink); font-family: var(--vm-font-ui); -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 15% 8%, rgba(255,255,255,.86), transparent 30%),
              radial-gradient(circle at 82% 75%, rgba(164,119,76,.055), transparent 28%), var(--vm-paper);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--vm-accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

.app { height: 100vh; height: 100svh; padding: var(--sa-t) var(--sa-r) 0 var(--sa-l); display: flex; flex-direction: column; overflow: hidden; }
.topbar { flex: none; height: 60px; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--vm-hairline); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #000; box-shadow: 0 0 0 1px rgba(31,30,26,.18); }
.brand-name { font-size: var(--fs-brand); font-weight: 700; letter-spacing: .08em; line-height: 1; white-space: nowrap; }
.more-toggle { min-height: var(--tap); min-width: var(--tap); padding: 0 12px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--vm-muted-ui); font-family: var(--vm-font-sans); font-size: 14px; font-weight: 650; letter-spacing: .04em; }
.more-toggle:hover, .more-toggle[aria-expanded="true"] { color: var(--vm-accent-dark); background: var(--vm-accent-tint); }

.pv-stage { position: relative; min-width: 0; flex: none; height: 27vh; height: 27svh; min-height: 120px; padding: 10px 16px; display: grid; place-items: center; }
@media (max-height: 700px) and (max-width: 1023px) { .pv-stage { height: 24vh; height: 24svh; min-height: 120px; padding: 8px 16px; } }

.panel { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--vm-hairline); }
.panel-scroll { min-width: 0; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 20px; }
.footnote, .sidebar-note { margin-top: 28px; text-align: center; font-family: var(--vm-font-sans); font-size: 12px; letter-spacing: .12em; }
.footnote-link, .sidebar-link { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--vm-muted); text-decoration: none; }
.footnote-link:hover, .sidebar-link:hover { color: var(--vm-accent-dark); text-decoration: underline; text-underline-offset: 5px; }

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: min(var(--panel-w), 40vw) minmax(0, 1fr); grid-template-rows: 88px minmax(0, 1fr); }
  .topbar { grid-column: 1; grid-row: 1; height: 88px; padding: 0 20px 0 32px; border-right: 1px solid var(--vm-hairline); }
  .brand-logo { width: 52px; height: 52px; }
  .brand-name { font-size: clamp(26px, 2vw, 34px); }
  .panel { grid-column: 1; grid-row: 2; border-right: 1px solid var(--vm-hairline); }
  .panel-scroll { padding: 20px 32px 16px; }
  .pv-stage { grid-column: 2; grid-row: 1 / 3; height: auto; min-height: 0; padding: clamp(32px, 5vw, 72px); padding-bottom: calc(clamp(32px, 5vw, 72px) + var(--sa-b)); }
  .nav { padding: 14px 32px calc(18px + env(safe-area-inset-bottom)); }
  .footnote, .sidebar-note { text-align: left; }
  :root { --fs-title: 26px; }
}

.pv-frame { position: relative; box-shadow: var(--vm-shadow); border-radius: 3px; }
.pv-frame.is-entering { animation: pv-in var(--t-mid) var(--ease-out) both; }
.pv-canvas { position: absolute; inset: 0; background: var(--bg); overflow: hidden; border-radius: inherit; }
.pv-frame.fmt-logo { box-shadow: none; border-radius: 0;
  background: repeating-conic-gradient(#e6e0d5 0 25%, #f7f3ec 0 50%) 0 0 / 16px 16px; }
.pv-frame.fmt-logo .pv-canvas { border-radius: 50%; inset: 0; box-shadow: var(--vm-shadow); }
.pv-fig { position: absolute; left: 50%; display: block; object-fit: contain; object-position: center bottom; transform: translateX(-50%); }

.pv-name { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; }
.pv-name span { white-space: nowrap; line-height: 1.15; }
.pv-tag { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: var(--r-pill); background: rgba(31,30,26,.74); color: #fffdf8; font-family: var(--vm-font-sans); font-size: 11px; line-height: 16px; }
.fmt-logo .pv-tag { top: 0; left: 0; }
@keyframes pv-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

.steps { flex: none; border-bottom: 1px solid var(--vm-hairline); }
.steps ol { margin: 0; padding: 0 8px; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.step { position: relative; width: 100%; min-height: 56px; padding: 6px 0; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--vm-muted); font-size: var(--fs-small); }
.step-dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--vm-edge); display: grid; place-items: center; font-family: var(--vm-font-sans); font-size: 12px; font-weight: 700; line-height: 1; }
.step-label { line-height: 1.2; }
.step::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; background: var(--vm-accent); transform: scaleX(0); transition: transform var(--t-mid) var(--ease-out); }
.step.is-current { color: var(--vm-ink); font-weight: 700; cursor: default; }
.step.is-current .step-dot { background: var(--vm-accent); border-color: var(--vm-accent); color: #fff; }
.step.is-current::after { transform: scaleX(1); }
.step.is-done { color: var(--vm-ink); }
.step.is-done .step-dot { border-color: var(--vm-accent); color: var(--vm-accent-dark); }
.step.is-done:hover .step-label { text-decoration: underline; text-underline-offset: 4px; }
.step[aria-disabled="true"] { cursor: default; }
@media (min-width: 1024px) { .step { flex-direction: row; gap: 6px; min-height: 52px; } }

.step-body { position: relative; }
.step-head { position: relative; display: flex; align-items: center; gap: 2px; min-height: var(--tap); margin-bottom: 8px; }
.step-head h2 { font-size: var(--fs-title); font-weight: 700; letter-spacing: .04em; outline: none; }
.group-label { margin: 14px 0 8px; color: var(--vm-muted); font-size: var(--fs-label); letter-spacing: .06em; }

.help-wrap { display: inline-flex; }
.help { width: var(--tap); height: var(--tap); border: 0; background: transparent; display: inline-grid; place-items: center; padding: 0; }
.help span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--vm-edge); color: var(--vm-muted); display: grid; place-items: center; font-family: var(--vm-font-sans); font-size: 13px; font-weight: 700; transition: transform var(--t-fast) ease; }
.help:hover span { transform: scale(1.08); }
.help.is-open span { background: var(--vm-accent-dark); border-color: var(--vm-accent-dark); color: #fff; }
.help-pop { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 2px); padding: 10px 12px; border-radius: var(--r-m); background: #f7ecd9; border: 1px solid rgba(129,64,31,.25); color: var(--vm-ink); font-size: 14px; line-height: 1.6; box-shadow: var(--vm-shadow-card); animation: pop-in var(--t-fast) var(--ease-out) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.step-body.is-entering > * { animation: body-in var(--t-mid) var(--ease-out) both; }
@keyframes body-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.pick-line { position: relative; display: flex; align-items: center; gap: 6px; min-height: var(--tap); margin: -6px 0 6px; font-size: 16px; }
.pick-line .num { font-family: var(--vm-font-sans); color: var(--vm-accent-dark); font-variant-numeric: tabular-nums; }
.style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.style-card { position: relative; padding: 0; border: 1px solid var(--vm-hairline); border-radius: var(--r-s); background: var(--vm-white); overflow: hidden; aspect-ratio: 16 / 9; transition: transform var(--t-fast) ease; }
.style-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-card:hover { transform: translateY(-2px); box-shadow: var(--vm-shadow-card); }
.style-card.is-on { border-color: var(--vm-accent); box-shadow: 0 0 0 1px var(--vm-accent), var(--vm-shadow-card); }
.style-card.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--vm-accent); }
.badge { position: absolute; top: 4px; left: 4px; padding: 1px 5px; border-radius: 3px; background: var(--vm-white); color: var(--vm-ink); font-family: var(--vm-font-sans); font-size: var(--fs-badge); font-weight: 700; line-height: 16px; box-shadow: 0 0 0 1px rgba(31,30,26,.12); }
.style-card.is-on .badge { background: var(--vm-accent); color: #fff; box-shadow: none; }

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.swatch { padding: 0 0 4px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: var(--tap); }
.chip { width: 100%; aspect-ratio: 1; max-width: 72px; border-radius: var(--r-m); border: 1px solid var(--vm-edge); display: grid; place-items: center; font-family: var(--vm-font-allura); font-size: 26px; transition: transform var(--t-fast) var(--ease-out); }
.swatch:hover .chip { transform: translateY(-2px); }
.swatch.is-on .chip { box-shadow: 0 0 0 2px var(--vm-paper), 0 0 0 4px var(--vm-accent); }
.sw-name { font-size: var(--fs-small); white-space: nowrap; color: var(--vm-ink); }
.swatch.is-on .sw-name { font-weight: 700; color: var(--vm-accent-dark); }

.field { position: relative; }
.name-input { width: 100%; height: 52px; padding: 0 52px 0 14px; border: 1px solid var(--vm-edge); border-radius: var(--r-s); background: var(--vm-white); font-family: var(--vm-font-sans); font-size: 18px; }
.name-input::placeholder { color: var(--vm-muted); }
.name-input:focus { outline: 2px solid var(--vm-accent); outline-offset: 0; border-color: var(--vm-accent); }
.field-clear { position: absolute; top: 4px; right: 4px; width: var(--tap); height: var(--tap); border: 0; background: transparent; color: var(--vm-muted); font-size: 24px; line-height: 1; }
.count { position: absolute; right: 2px; bottom: -20px; font-family: var(--vm-font-sans); font-size: 12px; color: var(--vm-muted); }
.font-list { display: grid; gap: 8px; }
.font-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 64px; padding: 4px 14px 4px 4px; border: 1px solid var(--vm-hairline); border-radius: var(--r-s); background: var(--vm-white); text-align: left; }
.font-sample { display: block; min-width: 0; max-width: 100%; padding: 4px 8px; overflow: hidden; white-space: nowrap; font-size: 30px; line-height: 1.4; text-overflow: ellipsis; }
.font-name { font-family: var(--vm-font-sans); font-size: var(--fs-label); color: var(--vm-ink); white-space: nowrap; }
.font-card.is-on { border-color: var(--vm-accent); box-shadow: 0 0 0 1px var(--vm-accent); }
.font-card.is-on .font-name { color: var(--vm-accent-dark); font-weight: 700; }
.font-card.is-on .font-name::before { content: "✓ "; }

.fmt-list { display: grid; gap: 8px; }
.fmt-card { display: grid; grid-template-columns: 48px 52px 1fr; align-items: center; gap: 8px; min-height: 64px; padding: 0 14px 0 8px; border: 1px solid var(--vm-hairline); border-radius: var(--r-s); background: var(--vm-white); text-align: left; }
.fmt-icon { justify-self: center; display: block; border: 2px solid var(--vm-muted); border-radius: 2px; }
.fmt-icon-screen { width: 36px; height: 20px; }
.fmt-icon-mobile { width: 16px; height: 28px; }
.fmt-icon-logo { width: 28px; height: 28px; border-radius: 50%; }
.fmt-ratio { font-family: var(--vm-font-sans); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.fmt-label { font-size: 16px; }
.fmt-card.is-on { border-color: var(--vm-accent); background: #fbf3ea; box-shadow: 0 0 0 1px var(--vm-accent); }
.fmt-card.is-on .fmt-icon { border-color: var(--vm-accent); background: var(--vm-accent-tint); }
.fmt-card.is-on .fmt-ratio { color: var(--vm-accent-dark); }

.summary { margin: 0 0 14px; padding: 0; list-style: none; border-top: 1px solid var(--vm-hairline); }
.sum-row { width: 100%; min-height: 52px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--vm-hairline); background: transparent; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 8px; text-align: left; }
.sum-k { color: var(--vm-muted); font-size: var(--fs-label); }
.sum-v { display: flex; align-items: center; flex-wrap: wrap; column-gap: 8px; min-width: 0; padding: 6px 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; }
.sum-sub { color: var(--vm-muted); font-size: var(--fs-label); }
.mini-chip { flex: none; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--vm-edge); }
.sum-edit { min-width: var(--tap); text-align: center; color: var(--vm-accent-dark); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.sum-row:hover { background: var(--vm-accent-tint); }
.prompt-box { position: relative; border: 1px solid var(--vm-edge); border-radius: var(--r-s); background: var(--vm-white); }
.prompt-box textarea { display: block; width: 100%; height: 88px; padding: 10px 12px 0; border: 0; border-radius: var(--r-s); background: transparent; resize: none; overflow: hidden; font-family: var(--vm-font-sans); font-size: 13px; line-height: 1.55; color: var(--vm-ink); }
.prompt-box:not(.is-open)::after { content: ""; position: absolute; left: 1px; right: 1px; top: 46px; height: 42px; background: linear-gradient(rgba(255,253,248,0), var(--vm-white)); pointer-events: none; }
.prompt-box.is-open textarea { height: 260px; overflow: auto; }
.prompt-tools { display: flex; justify-content: flex-end; gap: 4px; padding: 0 4px; border-top: 1px solid var(--vm-hairline); }
.text-btn { min-height: var(--tap); padding: 0 12px; border: 0; background: transparent; color: var(--vm-accent-dark); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.hint { margin-top: 12px; text-align: center; color: var(--vm-muted); font-size: 14px; }
.msg { margin: 0 0 10px; padding: 10px 12px; border-radius: var(--r-s); font-size: 14px; line-height: 1.55; }
.msg-error { color: var(--vm-error); background: #f8e9e5; border-left: 3px solid var(--vm-error); }

.nav { flex: none; display: flex; gap: 10px; padding: 10px 16px calc(10px + var(--sa-b)); border-top: 1px solid var(--vm-hairline); background: rgba(244,240,232,.96); }
.nav-back { flex: none; width: 52px; height: var(--nav-h); }
.nav-back { border: 1px solid var(--vm-edge); border-radius: var(--r-s); background: var(--vm-white); font-size: 26px; line-height: 1; color: var(--vm-ink); }
.nav-main { min-width: 0; flex: 1; height: var(--nav-h); border: 1px solid var(--vm-accent); border-radius: var(--r-s); background: var(--vm-accent); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .06em; transition: transform var(--t-fast) ease; }
.nav-main:hover { background: var(--vm-accent-dark); }
.nav-main:active { transform: scale(.98); }
.nav-main.is-quiet { background: var(--vm-white); color: var(--vm-accent-dark); }
.nav-main.is-quiet:hover { background: #fbf3ea; }
.nav-main.is-ok { background: var(--vm-accent-dark); border-color: var(--vm-accent-dark); }

.toast { position: fixed; z-index: 60; left: calc((100% + var(--sa-l) - var(--sa-r)) / 2); bottom: calc(var(--nav-h) + 34px + var(--sa-b)); width: max-content; max-width: calc(100% - var(--sa-l) - var(--sa-r) - 24px); max-height: calc(100% - var(--sa-t) - var(--nav-h) - 34px - var(--sa-b)); overflow-y: auto; padding: 10px 18px; border-radius: var(--r-pill); background: var(--vm-ink); color: #fffdf8; font-family: var(--vm-font-sans); font-size: 14px; white-space: normal; text-align: center; opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { left: calc(var(--sa-l) + min(var(--panel-w), 40vw) / 2); bottom: calc(96px + var(--sa-b)); max-width: calc(min(var(--panel-w), 40vw) - 24px); max-height: calc(100% - var(--sa-t) - 96px - var(--sa-b)); } }

.more-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(31,30,26,.28); animation: fade-in var(--t-mid) ease both; }
.more-panel { position: fixed; z-index: 50; inset: 0; display: flex; flex-direction: column; background: var(--vm-paper); font-family: var(--vm-font-sans); animation: sheet-in var(--t-mid) var(--ease-out) both; }
@media (min-width: 1024px) { .more-panel { right: auto; width: min(var(--panel-w), 40vw); border-right: 1px solid var(--vm-hairline); box-shadow: var(--vm-shadow); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.more-panel-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(8px + var(--sa-t)) calc(8px + var(--sa-r)) 8px calc(20px + var(--sa-l)); border-bottom: 1px solid var(--vm-hairline); min-height: calc(60px + var(--sa-t)); }
.more-panel-title { font-size: 22px; font-weight: 750; letter-spacing: .05em; }
.more-close { width: var(--tap); height: var(--tap); border: 0; background: transparent; color: var(--vm-muted-ui); font-size: 26px; }
.more-scroll { min-height: 0; min-width: 0; flex: 1; overflow-y: auto; padding: 0 calc(20px + var(--sa-r)) calc(24px + var(--sa-b)) calc(20px + var(--sa-l)); }
.about-block { padding: 16px 0 8px; container-type: inline-size; }
.info-kicker { margin: 0 0 8px; color: var(--vm-muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; font-size: 14px; }
.author-card { position: relative; min-width: 0; padding: 12px 36px 12px 12px; border: 1px solid var(--vm-hairline); border-radius: 14px; color: inherit; background: rgba(255,255,255,.34); display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 12px; text-decoration: none; min-height: var(--tap); }
.author-avatar { width: 46px; aspect-ratio: 1; border-radius: 50%; display: block; object-fit: cover; background: #000; }
.author-handle { color: var(--vm-accent); display: block; font-size: 16px; font-weight: 650; line-height: 1.45; white-space: nowrap; }
.author-name { margin: 4px 0 0; color: #686159; display: block; font-size: 13px; font-weight: 600; line-height: 1.45; white-space: nowrap; }
.author-arrow { position: absolute; top: 50%; right: 14px; color: var(--vm-muted); font-size: 18px; transform: translateY(-50%); }
.about-copy { margin: 0; color: #423e38; font-size: 15px; line-height: 1.8; }
.about-line { display: block; white-space: normal; }
.changelog { margin-top: 10px; border-top: 1px solid var(--vm-hairline); }
.changelog-title { margin: 0; padding: 10px 0; color: var(--vm-accent-dark); font-size: 14px; font-weight: 750; }
.changelog-list { margin: 0; padding: 0 0 4px; list-style: none; }
.changelog-list li { border-top: 1px solid rgba(31,30,26,.09); color: #676159; font-size: 14px; line-height: 1.5; }
.changelog-link { min-width: 0; overflow-wrap: anywhere; display: flex; align-items: baseline; min-height: var(--tap); padding: 11px 0; color: inherit; text-decoration: none; }
.changelog-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.log-version { color: var(--vm-muted); margin-right: 6px; font-variant-numeric: tabular-nums; flex: none; }

@media (max-width: 359px) {
  .topbar { padding-left: 12px; } .brand-name { font-size: 21px; } .brand { gap: 8px; } .brand-logo { width: 36px; height: 36px; }
  .panel-scroll { padding: 14px 12px 18px; } .nav { padding-left: 12px; padding-right: 12px; }
  .swatches { gap: 4px; } .sw-name { font-size: 12px; } .chip { font-size: 22px; }
  .style-grid { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.bg-note { margin: -8px 0 10px; font-size: var(--fs-small); color: var(--vm-muted); }

.preview-fallback { position: absolute; bottom: calc(2px + var(--sa-b)); left: 12px; right: 12px; text-align: center; color: var(--vm-muted); font-family: var(--vm-font-sans); font-size: 12px; line-height: 1.4; }
.pv-stage.has-fallback { padding-bottom: calc(24px + var(--sa-b)); }
.step-head h2:focus-visible { outline: 2px solid var(--vm-accent); outline-offset: 4px; }
.field.has-count { margin-bottom: 24px; }
.changelog-title > span > span:last-child { white-space: normal !important; font-size: inherit !important; }
.more-return { display: block; margin: 16px auto 0; }
.noscript { position: fixed; z-index: 70; inset: auto 16px 90px; padding: 16px; background: var(--vm-white); border: 1px solid var(--vm-edge); color: var(--vm-error); }

@media (min-width: 1024px) { .nav { padding: 14px 32px calc(18px + env(safe-area-inset-bottom)); } }

@media (orientation: landscape) and (max-height: 540px) and (max-width: 1023px) {
  :root { --nav-h: 44px; }
  .app { display: grid; grid-template-columns: 56% minmax(0, 1fr); grid-template-rows: 48px minmax(0, 1fr); }
  .topbar { grid-column: 1; grid-row: 1; height: 48px; padding: 0 8px 0 12px; border-right: 1px solid var(--vm-hairline); }
  .brand { gap: 8px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-name { font-size: 21px; }
  .more-toggle { padding: 0 8px; }
  .panel { grid-column: 1; grid-row: 2; border-top: 0; border-right: 1px solid var(--vm-hairline); }
  .step { min-height: 44px; padding: 0; flex-direction: row; gap: 0; }
  .step-label { display: none; }
  .panel-scroll { padding: 8px 12px 10px; }
  .step-head { margin-bottom: 4px; }
  .nav { padding: 6px 12px calc(6px + var(--sa-b)); }
  .pv-stage { grid-column: 2; grid-row: 1 / 3; height: auto; min-height: 0; padding: 12px 12px calc(12px + var(--sa-b)); }
  .pv-stage.has-fallback { padding-bottom: calc(24px + var(--sa-b)); }
}
