/* Spin The Wheel — site styles.
   UI typeface is Google Sans (SIL OFL 1.1), self-hosted from the official
   Google Fonts files. Inter remains as an openly licensed fallback.
   Licence: /fonts/OFL-GoogleSans.txt */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/google-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/google-sans-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;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/inter-800.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/inter-900.woff2") format("woff2");
}

:root {
  scroll-padding-top: var(--chrome-h, var(--header-h));
  --accent: #ff4500;
  --accent-hover: #d83a00;
  --accent-deep: #b83100;
  --accent-soft: #fff4ed;
  --accent-ring: rgba(255, 69, 0, 0.28);
  --bg: #ffffff;
  --bg-muted: #f8fafc;
  --bg-stage: radial-gradient(70% 50% at 50% -10%, rgba(255, 69, 0, 0.09) 0%, transparent 70%), #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-inverse: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.12);
  --panel: #ffffff;
  --danger: #dc2626;
  --ok: #16a34a;
  --focus: #ff4500;
  --header-h: 56px;
  --radius: 14px;
  --font: "Google Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --accent: #ff6a33;
  --accent-hover: #ff8a5b;
  --accent-deep: #d83a00;
  --accent-soft: #3b1a10;
  --accent-ring: rgba(255, 106, 51, 0.35);
  --bg: #0b1220;
  --bg-muted: #111827;
  --bg-stage: radial-gradient(70% 50% at 50% -10%, rgba(255, 106, 51, 0.16) 0%, transparent 70%), #0b1220;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-inverse: #0f172a;
  --border: #243044;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.45);
  --panel: #111827;
  --danger: #f87171;
  --ok: #4ade80;
}


*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html { line-height: 1.5; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-stage);
  background-attachment: fixed;
  line-height: 1.5;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 640px) {
  .header-inner { padding: 0 24px; }
}
.wordmark {
  font-weight: 700;
  letter-spacing: -0.05em;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .wordmark { font-size: 1.5rem; }
}
.wordmark:hover { color: var(--text); }
.wordmark span { color: var(--accent); }

.nav-desktop {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
}
@media (min-width: 1280px) {
  .nav-desktop { gap: 32px; }
}
.nav-desktop a,
.nav-more > summary {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
}
.nav-desktop a:hover,
.nav-more > summary:hover { color: var(--accent); }
.nav-more { position: relative; }
.nav-more > summary { display: flex; align-items: center; gap: 4px; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more[open] > summary { color: var(--accent); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 2px;
}
.dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
}
.dropdown a:hover { background: var(--accent-soft); color: var(--accent); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  min-width: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 0 12px;
}
.icon-btn:hover, .btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 36px; min-width: 36px; padding: 0 10px; font-size: 0.9rem; }

.nav-toggle { display: block; position: relative; }
.nav-toggle > summary {
  list-style: none;
  width: 36px;
  height: 36px;
  min-height: 36px;
  min-width: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
}
.nav-toggle > summary:hover { background: var(--bg-muted); }
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(88vw, 320px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 4px;
}
.nav-toggle nav a {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}
.nav-toggle nav a:hover { background: var(--accent-soft); color: var(--accent); }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* Layout */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 16px 64px;
}
.page.page-home {
  max-width: none;
  padding: 0 0 72px;
}
.page-intro { margin: 0 0 16px; }
.page-intro h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
  font-weight: 900;
}
.content-hero {
  text-align: center;
  max-width: 860px;
  margin: 56px auto 28px;
  padding: 0 20px;
}
.content-hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.2;
}
.content-hero .subline {
  max-width: 46rem;
  margin: 18px auto 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}
.subline {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--text); font-weight: 600; }

/* Studio / tool */
.studio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 8px 0 48px;
}
@media (min-width: 1024px) {
  .studio { grid-template-columns: minmax(0, 1fr) 380px; align-items: stretch; gap: 0; }
}
.page-home .studio, .tool-hero .studio {
  max-width: 1920px;
  margin: 0 auto;
  padding: 4px 0 8px;
  gap: 12px;
}
@media (min-width: 1024px) {
  .page-home .studio, .tool-hero .studio {
    grid-template-columns: minmax(0, 1fr) 380px;
    min-height: calc(100vh - var(--header-h));
    padding: 0;
    gap: 0;
  }
}

.studio-stage {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 12px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.page-home .studio-stage, .tool-hero .studio-stage {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  min-height: 0;
  padding: 8px 8px 12px;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .page-home .studio-stage, .tool-hero .studio-stage {
    min-height: calc(100vh - var(--header-h));
    padding: 0;
  }
}
.wheel-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.wheel-title-wrap {
  position: absolute;
  top: 6px;
  left: 8px;
  pointer-events: auto;
  max-width: calc(100% - 132px);
}
.wheel-title-input {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
  width: min(100%, 260px);
  padding: 6px 8px;
  border-radius: 8px;
}
.wheel-title-input:hover, .wheel-title-input:focus {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--text);
}
.wheel-tools {
  position: absolute;
  top: 6px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}

.wheel-wrap {
  position: relative;
  width: min(100%, 720px);
  margin: 36px auto 0;
  aspect-ratio: 1;
}
.page-home .wheel-wrap, .tool-hero .wheel-wrap { margin: 28px auto 0; }
@media (min-width: 1024px) {
  .page-home .wheel-wrap, .tool-hero .wheel-wrap { margin: 0 auto; width: min(calc(100% - 16px), calc(100vh - 72px)); }
}
.wheel-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 10px 28px rgba(15, 23, 42, 0.12));
}
.pointer {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid #c2410c;
  transform: translateX(-50%);
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35));
  z-index: 2;
  pointer-events: none;
}
.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 23%;
  min-width: 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 3;
  cursor: pointer;
  padding: 0;
}
html[data-theme="dark"] .hub { background: #1f2937; }
.hub:hover { transform: translate(-50%, -50%) scale(1.03); }
.hub:disabled { cursor: wait; opacity: 0.85; }

.trust-line, .hint-line {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 10px 8px 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.chip {
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}
.chip a { color: inherit; text-decoration: none; }
.chip a:hover { color: var(--accent); }

/* Panel */
.panel {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}
.page-home .panel, .tool-hero .panel {
  margin: 0 8px 8px;
}
@media (min-width: 1024px) {
  .panel,
  .page-home .panel, .tool-hero .panel {
    margin: 0;
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--border);
    box-shadow: none;
    min-height: calc(100vh - var(--header-h));
    background: var(--bg-muted);
  }
}
.tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.tabs-main {
  display: flex;
  flex: 1;
  min-width: 0;
}
.tab-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px;
  border-left: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  flex-shrink: 0;
}
.tab {
  flex: 1;
  min-height: 0;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.tab[aria-selected="true"] {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.tab-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-hover);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.tab:not([aria-selected="true"]) .badge {
  background: color-mix(in srgb, var(--accent-hover) 15%, transparent);
  color: var(--accent-hover);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
#tab-entries, #tab-results, #tab-saved, .tab-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
#tab-entries[hidden], #tab-results[hidden], #tab-saved[hidden], .tab-panel[hidden] {
  display: none;
}
#entries {
  flex: 1;
  width: 100%;
  min-height: 180px;
  border: 0;
  resize: none;
  padding: 10px 14px;
  font: inherit;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}
#entries:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ring); }
.panel-footer {
  padding: 10px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.modes label, .seg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  min-height: 32px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg);
}
.modes input { accent-color: var(--accent); }
.special {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}
.special .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
.field { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}
.help {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 4px 12px 8px;
}
.warn { color: var(--danger); font-size: 0.85rem; }

.results {
  padding: 10px 14px;
  overflow: auto;
  max-height: 420px;
}
.results ol { margin: 0; padding-left: 20px; }
.results li { margin: 6px 0; }
.empty { color: var(--text-secondary); padding: 16px; }

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}
.swatch {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
}
.swatch[aria-pressed="true"], .swatch:hover { border-color: var(--accent); }
.swatch i {
  display: block;
  height: 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

/* Content */
.prose { max-width: 760px; }
.prose-wide { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.prose h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.prose h3 { margin: 1.4rem 0 0.5rem; font-size: 1.12rem; }
.prose p, .prose li { color: var(--text); }
.prose .lead { font-size: 1.08rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  position: relative;
  padding: 12px 12px 12px 56px;
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-muted);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.card-grid, .tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}
@media (max-width: 900px) {
  .card-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .card-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 360px) {
  .card-grid, .tool-grid { grid-template-columns: 1fr; }
}
.card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}
.card strong { display: block; margin-bottom: 4px; }
.card span { color: var(--text-secondary); font-size: 0.9rem; }
.card-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
}
.card-mark svg { width: 18px; height: 18px; display: block; }
.card-copy { min-width: 0; flex: 1; }

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 14px;
  margin: 10px 0;
  background: var(--bg-muted);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq details p { margin-top: 0; }

.related {
  max-width: 1120px;
  width: 100%;
  margin: 48px auto 0;
  padding: 0 20px 8px;
  box-sizing: border-box;
}
.related h2 { margin-bottom: 12px; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}
th { background: var(--bg-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 48px 16px 28px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.site-footer h2 {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-base {
  max-width: 1280px;
  margin: 24px auto 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Dialogs */
dialog {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 0;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  color: var(--text);
  width: min(560px, calc(100vw - 24px));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}
dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.modal { padding: 22px; }
.modal h2 { margin: 0 0 8px; font-size: 1.1rem; }
.winner-name {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
  line-height: 1.15;
  word-break: break-word;
}
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Present / fullscreen */
.studio-stage:fullscreen,
.studio-stage.pseudo-fullscreen {
  background: var(--bg-stage);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.studio-stage.pseudo-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 70;
  border-radius: 0;
}
.studio-stage:fullscreen .wheel-wrap,
.studio-stage.pseudo-fullscreen .wheel-wrap {
  width: min(86vmin, 720px);
}
body.presenting .panel { display: none; }

/* Charts (how-it-works) */
.chart-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg-muted);
}
#fair-chart { width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub { transition: none; }
}

@media (max-width: 640px) {
  .page { padding-top: 12px; }
  .wordmark { font-size: 1.05rem; }
  .studio-stage { min-height: 0; }
}

body.embed-mode .site-header,
body.embed-mode .site-footer,
body.embed-mode .prose,
body.embed-mode .page-intro,
body.embed-mode .crumbs,
body.embed-mode .related,
body.embed-mode .skip-link { display: none !important; }
body.embed-mode .page { padding: 8px; max-width: none; }
body.embed-mode .studio { margin: 0; }
body.embed-mode .studio-stage { min-height: 0; }


.page-home .studio-note { display: none; }

.icon-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.icon-tool:hover {
  background: var(--bg-muted);
  color: var(--accent);
}
.overlay-tool { width: 34px; height: 34px; }
.icon-when-muted { display: none; }
.is-muted .icon-when-on { display: none; }
.is-muted .icon-when-muted { display: inline-flex; }

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
}
.theme-btn:hover { color: var(--text); background: var(--bg-muted); }
.icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: inline-flex; }

.my-wheels-btn {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 0;
  min-width: 0;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.my-wheels-btn:hover {
  background: var(--bg-muted);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
@media (min-width: 1024px) {
  .my-wheels-btn { display: inline-flex; }
}

/* Content sections */
.section-band {
  padding: 28px 0 8px;
}
.split-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 900px) {
  .split-feature { grid-template-columns: 1.15fr 0.85fr; gap: 36px; }
}
.situations-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: var(--shadow);
}
.situations-card h3 { margin-top: 0; }
.situations-card ul { list-style: none; padding: 0; margin: 12px 0; }
.situations-card li {
  position: relative;
  padding: 7px 0 7px 28px;
}
.situations-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 3.5px #fff;
}
.check-note {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-style: italic;
}

.step-grid, .feature-grid, .use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
  margin: 20px 0;
}
.step-card, .feature-card, .use-card {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover, .feature-card:hover, .use-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}
.step-card h3, .feature-card h3, .use-card h3 { margin: 0 0 8px; }
.step-card p, .feature-card p, .use-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.how-note {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--text-secondary);
}
.category-block { margin: 28px 0 36px; }
.category-block h2 { margin-bottom: 12px; }

.cta-banner {
  margin: 56px auto 8px;
  max-width: 920px;
  border-radius: 22px;
  padding: 42px 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, #fb7185 0%, #a78bfa 48%, #38bdf8 100%);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.18);
}
.cta-banner h2 { margin: 0 0 8px; color: #fff; }
.cta-banner p { margin: 0 0 18px; color: rgba(255,255,255,0.92); }
.cta-banner .btn {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
  font-weight: 750;
}
.cta-banner .btn:hover { color: var(--accent); }

.settings-grid { display: grid; gap: 14px; }
.settings-grid .field input[type="range"] { width: 100%; accent-color: var(--accent); }
.pack-list { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.pack-list legend { font-weight: 750; margin-bottom: 6px; }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row output { min-width: 3.2rem; color: var(--text-secondary); font-size: 0.9rem; }

.brand-blurb {
  color: var(--text-secondary);
  max-width: 22rem;
  margin: 10px 0 0;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.is-in, .reveal-root.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-root { opacity: 0; transform: translateY(-8px); }
.tab-panel.tab-in {
  animation: tabIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes tabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.bar-grow {
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  width: 0;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-root { opacity: 1; transform: none; transition: none; }
  .card, .step-card, .feature-card, .use-card { transition: none; }
  .card:hover, .step-card:hover, .feature-card:hover, .use-card:hover { transform: none; }
  .tab-panel.tab-in { animation: none; }
  .bar-grow { transition: none; }
}


/* —— Google Sans Display + layout/feature pass —— */
@font-face {
  font-family: "Google Sans Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/google-sans-display-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/google-sans-display-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;
}
@font-face {
  font-family: "Google Sans Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/google-sans-display-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/google-sans-display-700-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;
}

.wordmark {
  font-family: "Google Sans Display", "Google Sans", Inter, sans-serif;
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: -0.05em;
}

html[data-bg="classic"] {
  --accent: #ff4500;
  --accent-hover: #d83a00;
  --accent-deep: #b83100;
  --accent-soft: #fff4ed;
  --bg-stage: radial-gradient(70% 50% at 50% -15%, #ff45001f 0, transparent 100%), #ffffff;
}
html[data-bg="ocean"], html:not([data-bg]) {
  --accent: #0284c7;
  --accent-hover: #026c9f;
  --accent-deep: #014d71;
  --accent-soft: #e0f2fe;
  --bg-stage: radial-gradient(70% 50% at 50% -15%, #0ea5e926 0, transparent 100%), #ffffff;
}
html[data-bg="forest"] {
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-deep: #166534;
  --accent-soft: #dcfce7;
  --bg-stage: radial-gradient(70% 50% at 50% -15%, #22c55e1f 0, transparent 100%), #ffffff;
}
html[data-bg="sunset"] {
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-deep: #9f1239;
  --accent-soft: #ffe4e6;
  --bg-stage: radial-gradient(70% 50% at 50% -15%, #f43f5e26 0, transparent 100%), #ffffff;
}
html[data-bg="midnight"] {
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-deep: #5b21b6;
  --accent-soft: #ede9fe;
  --bg-stage: radial-gradient(70% 50% at 50% -15%, #8b5cf626 0, transparent 100%), #ffffff;
}
html[data-bg="none"] {
  --accent: #ff4500;
  --accent-hover: #d83a00;
  --bg-stage: #ffffff;
}
html[data-bg="image"] {
  --bg-stage: var(--image-bg, #ffffff);
}

html[data-theme="dark"][data-bg="ocean"] {
  --accent: #38bdf8;
  --accent-hover: #0284c7;
  --accent-soft: #0c4a6e;
  --bg-stage: radial-gradient(70% 50% at 50% -15%, #0ea5e940 0, transparent 100%), #0b1220;
}

.login-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--accent-hover);
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.login-btn:hover { opacity: 0.92; color: #fff; }
@media (min-width: 1024px) { .login-btn { display: inline-flex; } }
.my-wheels-btn svg { color: #f59e0b; }

.title-col {
  display: flex;
  align-items: flex-start;
  padding: 12px 16px 0 20px;
}
.title-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.title-edit .wheel-title-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  font-weight: 700;
  color: var(--text);
}
.title-edit #editTitleBtn {
  flex: 0 0 auto;
}

.page-home .studio, .tool-hero .studio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1920px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .page-home .studio, .tool-hero .studio {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "title panel" "stage panel";
    min-height: calc(100vh - 56px);
  }
  .page-home .title-col, .tool-hero .title-col { grid-area: title; }
  .page-home .studio-stage, .tool-hero .studio-stage { grid-area: stage; min-height: calc(100vh - 56px - 52px); }
  .page-home .panel, .tool-hero .panel { grid-area: panel; width: 380px; min-height: calc(100vh - 56px); margin: 0; }
}
@media (min-width: 1280px) {
  .page-home .studio, .tool-hero .studio {
    grid-template-columns: 340px minmax(0, 1fr) 380px;
    grid-template-areas: "title stage panel";
  }
  .page-home .studio-stage, .tool-hero .studio-stage { min-height: calc(100vh - 56px); }
  .title-col { width: 340px; padding: 16px 24px 0 16px; }
}
@media (min-width: 1536px) {
  .page-home .studio, .tool-hero .studio {
    grid-template-columns: 340px minmax(0, 1fr) 420px;
  }
  .page-home .panel, .tool-hero .panel { width: 420px; }
}

.wheels-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}
.page-home .wheel-wrap, .tool-hero .wheel-wrap {
  width: min(calc(100vw - 28px), calc(100vh - 56px - 290px));
  margin: 8px auto;
}
@media (min-width: 1024px) {
  .page-home .studio-stage, .tool-hero .studio-stage {
    justify-content: flex-start;
    padding-top: 8px;
  }
  .page-home .wheel-wrap, .tool-hero .wheel-wrap {
    margin: 0 auto;
    width: min(calc(100% - 16px), calc(100vh - 72px));
  }
}
.studio-stage.has-many .wheel-wrap { width: min(340px, 42vw); }

.pointer-diamond {
  width: 16px;
  height: 16px;
  border: 0;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  top: 4px;
}
.pointer-wedge {
  border-left-width: 16px;
  border-right-width: 16px;
  border-top-width: 22px;
}

.toolbar-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-muted);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.chip-btn:hover { background: var(--bg); color: var(--accent); }
.chip-btn svg { color: var(--accent); }
.reset-btn { color: #ea580c; border-color: rgba(234, 88, 12, 0.3); background: rgba(234, 88, 12, 0.08); }
.reset-btn svg { color: #ea580c; }

.entries-wrap { position: relative; flex: 1; min-height: 180px; display: flex; }
#entries {
  font-size: 15px;
  line-height: 22px;
  min-height: 180px;
  background: var(--bg);
}
.eraser-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.eraser-btn:hover { background: #b91c1c; }

.image-menu { position: relative; }
.image-menu > summary { list-style: none; }
.image-menu > summary::-webkit-details-marker { display: none; }
.image-menu .dropdown { min-width: 180px; }

.drawer { border-top: 1px solid var(--border); padding: 6px 10px; }
.drawer > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.drawer-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pie-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.15);
  cursor: pointer;
  padding: 0;
}
.pie-swatch[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }

.panel-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.panel-bottom .btn { min-height: 36px; font-size: 0.875rem; font-weight: 700; }

.sr-mode {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.advanced-box {
  max-height: 220px;
  overflow: auto;
  border-top: 1px solid var(--border);
  padding: 8px;
}
.adv-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 64px 36px 28px 28px;
  gap: 6px;
  align-items: center;
  margin: 4px 0;
}
.adv-row input[type="text"] { min-height: 28px; width: 100%; }
.adv-row input[type="number"] { min-height: 28px; width: 64px; }

.settings-tabs { display: flex; gap: 8px; margin: 8px 0 14px; }
.settings-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 6px 10px;
  cursor: pointer;
}
.settings-tabs button.is-active { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }
.settings-pane { display: grid; gap: 10px; max-height: min(70vh, 640px); overflow: auto; padding-right: 4px; }
.modal-settings { width: min(640px, calc(100vw - 24px)); }

.winner-name.is-zoom { animation: winZoom 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes winZoom { from { transform: scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
.winner-emoji { font-size: 2rem; margin: 0; text-align: center; }
dialog.popup-modern { border-radius: 24px; }
dialog.popup-glass { background: color-mix(in srgb, var(--panel) 70%, transparent); }
dialog.popup-flat { border-radius: 4px; box-shadow: none; border: 2px solid var(--border); }
dialog.popup-segment { border-top: 8px solid var(--accent); }

.hub-outline { box-shadow: inset 0 0 0 3px var(--hub-color, #fff), 0 8px 24px rgba(15,23,42,.12); background: transparent !important; }
.hub-ring { box-shadow: 0 0 0 8px color-mix(in srgb, var(--hub-color, #fff) 80%, transparent); }

.footer-five { grid-template-columns: 1.3fr repeat(4, minmax(120px, 1fr)); }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a { font-size: 0.9rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.lang-switch { font-size: 0.85rem; color: var(--text-secondary); display: flex; gap: 8px; align-items: center; }

.rate-box { margin: 36px 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-muted); }
.rate-stars { display: flex; gap: 6px; }
.rate-stars button { border: 0; background: none; font-size: 1.4rem; color: #cbd5e1; cursor: pointer; }
.rate-stars button.is-on { color: #f59e0b; }

.page-home .content-hero h1 { text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 900; }
.page-home .step-num { width: 48px; height: 48px; border-radius: 8px; font-size: 1.1rem; }
@media (min-width: 900px) {
  .page-home .use-grid { grid-template-columns: 1fr 1fr; }
  .page-home .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.studio.panel-hidden .panel,
html[data-panel-hidden="1"] .studio .panel { display: none; }
.on-wheel-winner {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  background: transparent;
  border-radius: 0;
  padding: 0 16px;
  font-weight: 800;
  box-shadow: none;
  z-index: 6;
  width: min(92%, 28rem);
  text-align: center;
  pointer-events: none;
}
.on-wheel-winner-name {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 6px 18px rgba(15,23,42,0.18);
}
html[data-theme="dark"] .on-wheel-winner-name {
  text-shadow: 0 1px 0 rgba(0,0,0,0.5), 0 8px 20px rgba(0,0,0,0.45);
}
.on-wheel-winner-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  pointer-events: auto;
}

.spin-all-btn { margin: 12px auto 0; }
[hidden], .btn[hidden], button[hidden], .spin-all-btn[hidden] { display: none !important; }


.toolbar-split .chip-btn {
  font-size: 0;
  letter-spacing: 0;
  gap: 0;
  padding: 6px 8px;
  min-height: 32px;
}
@media (max-width: 1199px) {
  .title-col {
    position: relative;
    left: auto;
    top: auto;
    z-index: auto;
    padding: 12px 16px 8px;
    width: auto;
    max-width: 100%;
  }
  .title-col #wheelTitle {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}


/* ===== v4: dark mode vs page backgrounds ===== */
html[data-theme="dark"][data-bg="classic"],
html[data-theme="dark"][data-bg="none"] {
  --accent: #ff6a33;
  --accent-hover: #ff8a5b;
  --accent-deep: #d83a00;
  --accent-soft: #3b1a10;
  --bg: #0b1220;
  --bg-muted: #111827;
  --bg-stage: radial-gradient(70% 50% at 50% -15%, rgba(255, 106, 51, 0.18) 0, transparent 100%), #0b1220;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --border: #243044;
  --panel: #111827;
}
html[data-theme="dark"][data-bg="ocean"] {
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-soft: #0c4a6e;
  --bg: #0b1220;
  --bg-muted: #111827;
  --bg-stage: radial-gradient(70% 50% at 50% -15%, rgba(14, 165, 233, 0.28) 0, transparent 100%), #0b1220;
  --text: #f8fafc;
  --panel: #111827;
}
html[data-theme="dark"][data-bg="forest"] {
  --accent: #4ade80;
  --accent-hover: #86efac;
  --accent-soft: #14532d;
  --bg: #0b1220;
  --bg-muted: #111827;
  --bg-stage: radial-gradient(70% 50% at 50% -15%, rgba(34, 197, 94, 0.22) 0, transparent 100%), #0b1220;
  --text: #f8fafc;
  --panel: #111827;
}
html[data-theme="dark"][data-bg="sunset"] {
  --accent: #fb7185;
  --accent-hover: #fda4af;
  --accent-soft: #4c0519;
  --bg: #0b1220;
  --bg-muted: #111827;
  --bg-stage: radial-gradient(70% 50% at 50% -15%, rgba(244, 63, 94, 0.24) 0, transparent 100%), #0b1220;
  --text: #f8fafc;
  --panel: #111827;
}
html[data-theme="dark"][data-bg="midnight"] {
  --accent: #a78bfa;
  --accent-hover: #c4b5fd;
  --accent-soft: #2e1065;
  --bg: #0b1220;
  --bg-muted: #111827;
  --bg-stage: radial-gradient(70% 50% at 50% -15%, rgba(124, 58, 237, 0.28) 0, transparent 100%), #0b1220;
  --text: #f8fafc;
  --panel: #111827;
}
html[data-theme="dark"][data-bg="image"] {
  --bg: #0b1220;
  --text: #f8fafc;
  --panel: #111827;
}
html[data-theme="dark"] .title-edit .wheel-title-input,
html[data-theme="dark"] .wheel-title-input {
  color: var(--text);
}
html[data-theme="dark"] .studio-stage,
html[data-theme="dark"] .page-home .studio-stage, html[data-theme="dark"] .tool-hero .studio-stage {
  background: transparent;
}
html[data-theme="dark"] dialog {
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="dark"] .cta-banner { opacity: 0.96; }

/* ===== toolbar ===== */
.app-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  min-height: 48px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  position: sticky;
  top: var(--header-h);
  z-index: 15;
}
.tb-btn, .toolbar-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.tb-btn:hover, .toolbar-more > summary:hover,
.tb-btn:focus-visible, .toolbar-more > summary:focus-visible {
  background: var(--bg-muted);
  color: var(--accent-hover);
}
.tb-btn svg, .toolbar-more svg { width: 16px; height: 16px; flex: 0 0 auto; }
.toolbar-more { position: relative; }
.toolbar-more > summary { list-style: none; }
.toolbar-more > summary::-webkit-details-marker { display: none; }
.toolbar-more .dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-hover);
  padding: 6px;
  z-index: 30;
  display: grid;
}
.toolbar-more .dropdown a,
.toolbar-more .dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.toolbar-more .dropdown a:hover,
.toolbar-more .dropdown button:hover { background: var(--bg-muted); }
@media (max-width: 900px) {
  .tb-label { display: none; }
  .tb-btn, .toolbar-more > summary { padding: 8px; }
  .app-toolbar [data-collapse="wide"] { display: none; }
}
body:has(.app-toolbar) { --chrome-h: calc(var(--header-h) + 48px); }
@media (min-width: 1024px) {
  body:has(.app-toolbar) .page-home .studio,
  body:has(.app-toolbar) .page-home .studio-stage,
  body:has(.app-toolbar) .page-home .panel, body:has(.app-toolbar) .tool-hero .studio, body:has(.app-toolbar) .tool-hero .studio-stage, body:has(.app-toolbar) .tool-hero .panel {
    min-height: calc(100vh - var(--chrome-h, 104px));
  }
}

/* ===== counter ===== */
.spin-counter {
  margin: 10px auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.spin-counter strong { color: var(--text); font-weight: 700; }

/* ===== palettes / modals ===== */
.field input, .field select, .field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
dialog {
  overflow-x: hidden;
  max-width: calc(100vw - 16px);
}
.modal { max-width: 100%; }
.modal-settings {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 760px);
  width: min(640px, calc(100vw - 16px));
  overflow: hidden;
}
.modal-settings .settings-pane {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  padding-bottom: 12px;
}
.modal-settings > .modal-actions {
  flex: 0 0 auto;
  position: static;
  margin-top: 0;
  padding: 12px 0 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  z-index: 2;
}
#shareUrl { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
  width: 100%;
}
.swatch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.swatch-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
svg.swatch-dot,
.swatch-dot {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  overflow: visible;
  background: none;
  background-color: transparent;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
}
html[data-theme="dark"] svg.swatch-dot,
html[data-theme="dark"] .swatch-dot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.swatch svg.swatch-dot {
  /* Do not set `fill` here — it would override the circle's fill attribute. */
  color: inherit;
}
.swatch-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

/* ===== footer polish ===== */
.footer-five { gap: 28px 20px; }
.site-footer h2 {
  color: var(--accent-hover);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer .footer-brand .wordmark { text-decoration: none; }
@media (max-width: 800px) {
  .footer-five { grid-template-columns: 1fr 1fr; }
}


/* v4 qa polish */
html { scroll-padding-top: var(--chrome-h, var(--header-h)); }
#studio { scroll-margin-top: var(--chrome-h, var(--header-h)); }
.library-card { margin-bottom: 8px; }
.library-card .modal-actions { margin-top: 8px; }


/* ==========================================================================
   v5 — glassy sections, live spin pill, desktop wheel spacing, flags
   ========================================================================== */

@media (min-width: 1024px) {
  .studio,
  .page-home .studio,
  body:has(.app-toolbar) .page-home .studio, .tool-hero .studio, body:has(.app-toolbar) .tool-hero .studio {
    column-gap: 28px;
  }
  .studio-stage,
  .page-home .studio-stage, .tool-hero .studio-stage {
    padding: 16px 32px 28px 20px;
    justify-content: center;
    align-items: center;
  }
  .wheel-wrap,
  .page-home .wheel-wrap, .tool-hero .wheel-wrap {
    width: min(500px, calc(100% - 24px), calc(100vh - 220px));
    margin: 0 auto;
  }
}

/* ----- live counter pill ----- */
.spin-counter.live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-self: center;
  margin: 16px auto 4px;
  padding: 9px 18px 9px 14px;
  max-width: calc(100% - 16px);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel, var(--bg)) 68%, transparent);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, rgba(255, 255, 255, 0.35));
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  z-index: 3;
}
.spin-counter.live-pill[hidden] { display: none !important; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: live-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.live-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #16a34a;
}
.live-sep {
  width: 1px;
  height: 18px;
  background: color-mix(in srgb, var(--text) 16%, transparent);
}
.live-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.live-stat .odo {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 1.14rem;
  font-weight: 850;
  color: var(--text);
  letter-spacing: -0.03em;
  min-width: 1.1ch;
  line-height: 1;
}
.live-pill.just-ticked {
  animation: pill-tick 0.55s ease;
}
@keyframes pill-tick {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 26%, transparent); }
  100% { transform: translateY(0) scale(1); }
}
html[data-theme="dark"] .spin-counter.live-pill {
  background: color-mix(in srgb, #0b1220 64%, transparent);
  border-color: color-mix(in srgb, #38bdf8 32%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .live-label { color: #4ade80; }
html[data-theme="dark"] .live-dot { background: #4ade80; }

/* ----- flags ----- */
.swatch-flag,
.winner-flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  vertical-align: middle;
  margin-right: 6px;
}
.winner-flag {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  margin-right: 8px;
}
.swatch-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ----- below-the-fold canvas ----- */
.below-fold {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 12px 0 32px;
}
.blob-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.below-fold > :not(.blob-bg) { position: relative; z-index: 1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.42;
  animation: blob-drift 20s ease-in-out infinite alternate;
  will-change: transform;
}
.blob-a { width: 380px; height: 380px; background: #fb7185; top: 48px; left: -90px; }
.blob-b { width: 440px; height: 440px; background: #a78bfa; top: 28%; right: -140px; animation-delay: -7s; }
.blob-c { width: 320px; height: 320px; background: #38bdf8; bottom: 6%; left: 32%; animation-delay: -13s; }
@keyframes blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(36px, -24px) scale(1.08); }
}
html[data-theme="dark"] .blob { opacity: 0.2; }

.content-section {
  margin: 52px 0 28px;
}
.section-head { margin: 0 0 22px; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(115deg, var(--text) 10%, var(--accent) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-ico,
.card-ico,
.footer-h-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.section-ico svg,
.card-ico svg,
.li-ico svg,
.faq-q svg,
.footer-h-ico svg,
.footer-ico svg,
.footer-social a svg {
  width: 22px;
  height: 22px;
  display: block;
}
.card-ico { width: 40px; height: 40px; border-radius: 12px; }
.card-ico svg { width: 20px; height: 20px; }
.ic-1 { background: linear-gradient(145deg, #fb7185, #f43f5e); }
.ic-2 { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.ic-3 { background: linear-gradient(145deg, #38bdf8, #2563eb); }
.ic-4 { background: linear-gradient(145deg, #34d399, #059669); }
.ic-5 { background: linear-gradient(145deg, #fbbf24, #f59e0b); }
.ic-6 { background: linear-gradient(145deg, #fb923c, #ea580c); }
.ic-7 { background: linear-gradient(145deg, #f472b6, #db2777); }
.ic-8 { background: linear-gradient(145deg, #2dd4bf, #0d9488); }

.glass-card {
  position: relative;
  background: color-mix(in srgb, var(--panel, var(--bg)) 74%, transparent);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  border: 1px solid color-mix(in srgb, #ffffff 55%, var(--border));
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent);
  pointer-events: none;
}
a.card.glass-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 18px;
  color: var(--text);
}
.card.glass-card .card-copy,
.feature-card .card-copy,
.use-card .card-copy { min-width: 0; position: relative; z-index: 1; }
.card.glass-card .card-ico,
.feature-card > .card-ico { position: relative; z-index: 1; }
.glass-card:hover,
a.card.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  color: var(--text);
}
html[data-theme="dark"] .glass-card {
  background: color-mix(in srgb, #111827 70%, transparent);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .glass-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
}

.feature-card.glass-card,
.use-card.glass-card,
.step-card.glass-card,
.situations-card.glass-card {
  padding: 18px 18px 20px;
}
.feature-card.glass-card,
.use-card.glass-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-grid, .use-grid, .step-grid {
  gap: 16px;
}
.step-card.glass-card { display: block; }
.situations-card.glass-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.pretty-li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  list-style: none;
  margin: 0 0 8px;
}
.pretty-li .li-ico {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.section-body > ul { padding-left: 0; }

.split-feature {
  gap: 28px;
  align-items: stretch;
}

/* FAQ accordion */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border-radius: 16px;
  padding: 0;
  margin: 0;
}
.faq-item[open] {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
}
.faq-q {
  list-style: none;
  cursor: pointer;
  font-weight: 750;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  position: relative;
  z-index: 1;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .faq-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}
.faq-q .faq-ico svg { width: 18px; height: 18px; }
.faq-chevron {
  margin-left: auto;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text-secondary);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  margin: 0;
  padding: 0 18px 16px 64px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* CTA */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 56px auto 8px;
  padding: 36px 32px;
  text-align: left;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,0.22), transparent 46%),
    linear-gradient(105deg, #fb7185 0%, #a78bfa 48%, #38bdf8 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 50px rgba(79, 70, 229, 0.22);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(255,255,255,0.16), transparent 32%);
  animation: cta-sheen 8s linear infinite;
  pointer-events: none;
}
@keyframes cta-sheen { to { transform: rotate(360deg); } }
.cta-visual { position: relative; z-index: 1; }
.cta-copy { position: relative; z-index: 1; max-width: 34rem; }
.cta-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  animation: cta-ring 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes cta-ring {
  0% { transform: scale(0.82); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}
.cta-wheel {
  width: 88px;
  height: 88px;
  display: block;
  animation: cta-spin 9s linear infinite;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.2));
}
@keyframes cta-spin { to { transform: rotate(360deg); } }
.cta-banner h2,
.cta-banner .section-title {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  margin: 0 0 8px;
}
.cta-banner p { margin: 0 0 18px; color: rgba(255,255,255,0.94); }
.cta-banner .btn {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}
.cta-banner .btn:hover { color: var(--accent); transform: translateY(-2px); }

/* Rate box */
.rate-box.glass-card { padding: 18px 20px; margin-top: 36px; }

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 56px 16px 28px;
  background:
    radial-gradient(80% 80% at 10% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 50%),
    var(--bg);
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
}
.footer-glow {
  position: absolute;
  inset: auto 10% -80px 10%;
  height: 180px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent);
  pointer-events: none;
}
.footer-glass {
  position: relative;
  z-index: 1;
}
.footer-col { min-width: 0; }
.footer-h-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.footer-h-ico svg { width: 18px; height: 18px; }
.site-footer .footer-col h2 {
  display: block;
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0 0 14px;
}
.site-footer .footer-col h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 99px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
}
.site-footer .footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-radius: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-ico {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.footer-ico svg { width: 16px; height: 16px; }
.site-footer .footer-col a:hover { transform: translateX(4px); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel, var(--bg)) 70%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-brand .wordmark { font-size: 1.35rem; }

.page-intro,
.content-hero {
  position: relative;
}

@media (max-width: 720px) {
  .cta-banner { text-align: center; padding: 28px 20px; }
  .cta-copy { max-width: none; }
  .faq-a { padding-left: 16px; }
  .spin-counter.live-pill { padding: 8px 12px; gap: 6px 10px; font-size: 0.8rem; }
  .live-stat .odo { font-size: 1.02rem; }
  .live-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .cta-wheel,
  .cta-pulse,
  .cta-banner::before,
  .blob,
  .live-pill.just-ticked {
    animation: none !important;
  }
  .glass-card:hover,
  a.card.glass-card:hover,
  .site-footer .footer-col a:hover {
    transform: none;
  }
}


/* v5 class-name aliases matching glass-enhance.mjs */
.section-icon,
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.section-icon svg,
.card-icon svg { width: 22px; height: 22px; display: block; }
.card-icon { width: 40px; height: 40px; border-radius: 12px; }
.card-icon svg { width: 20px; height: 20px; }
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}
.section-head .section-eyebrow {
  margin: 0 0 10px;
}
.grad-text {
  background: linear-gradient(115deg, var(--text) 8%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glass-panel,
.text-panel {
  padding: 8px 26px 10px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel, var(--bg)) 74%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid color-mix(in srgb, #ffffff 50%, var(--border));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
html[data-theme="dark"] .glass-panel,
html[data-theme="dark"] .text-panel {
  background: color-mix(in srgb, #111827 70%, transparent);
  border-color: rgba(255, 255, 255, 0.08);
}
.pretty-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.pretty-li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}
.pretty-li .li-ico { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.pretty-li .li-ico svg { width: 18px; height: 18px; display: block; }
.card-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.card-kicker h3 { margin: 0; }

.faq summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  padding: 2px 10px 2px 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: 52px;
  padding: 8px 8px 8px 10px;
  font-weight: 750;
}
.faq-q .card-icon { width: 36px; height: 36px; border-radius: 12px; }
.faq-q .card-icon svg { width: 18px; height: 18px; }
.faq-a { padding: 0 18px 16px 62px; color: var(--text-secondary); position: relative; z-index: 1; }
.faq-a p { margin: 0; }

.footer-col > .card-icon { margin-bottom: 12px; width: 36px; height: 36px; border-radius: 12px; }
.footer-col > .card-icon svg { width: 18px; height: 18px; }

.cta-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  z-index: 1;
}
.cta-orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  animation: cta-ring 2.4s ease-out infinite;
  pointer-events: none;
}
.mini-wheel {
  width: 72px;
  height: 72px;
  display: block;
  animation: cta-spin 9s linear infinite;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.22));
}
.btn.cta-pulse {
  position: relative;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .mini-wheel,
  .cta-orb::after { animation: none !important; }
}

.btn.cta-pulse {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  display: inline-flex;
  pointer-events: auto;
  border-radius: 999px;
  border: 1px solid #fff;
  animation: none;
}


/* v5 polish pass */
.situations-card li.pretty-li { padding-left: 0; }
.situations-card li.pretty-li::before { content: none; display: none; }

a.card .card-icon,
.feature-card .card-icon,
.use-card .card-icon,
.faq-q .card-icon,
.section-icon,
.card-kicker .card-icon,
.footer-col > .card-icon {
  color: #fff;
  position: relative;
  z-index: 1;
}
.glass-card::after { z-index: 0; }

@media (min-width: 1024px) {
  .studio {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas:
      "title panel"
      "stage panel";
    column-gap: 28px;
    align-items: stretch;
  }
  .title-col { grid-area: title; }
  .studio-stage { grid-area: stage; }
  .panel { grid-area: panel; }
}

/* ===== v7 quieter chrome ===== */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
}
.brand-mark {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  display: block;
}

.nav-desktop a,
.nav-more-btn {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
}
.nav-desktop a:hover,
.nav-more-btn:hover,
.nav-more.is-open .nav-more-btn { color: var(--accent); }
.nav-more { position: relative; }
.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.menu-caret {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform 0.16s ease;
}
.menu-caret svg { width: 14px; height: 14px; display: block; }
[aria-expanded="true"] .menu-caret,
details[open] > summary .menu-caret { transform: rotate(180deg); }

.nav-more-menu {
  min-width: 276px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
}
.nav-more-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-more-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-more-menu .menu-ico {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  flex: 0 0 auto;
}
.nav-more-menu .menu-ico svg { width: 18px; height: 18px; display: block; }
.nav-more-menu a:hover .menu-ico { color: var(--accent); }
.nav-more-menu .dropdown-all {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.tb-menu { position: relative; }
.tb-menu .tb-btn .menu-caret { margin-left: 2px; }
.toolbar-more .dropdown,
.tb-menu .dropdown,
.image-menu .dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 200px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-hover, var(--shadow));
  padding: 6px;
  display: grid;
}
.toolbar-more .dropdown { right: 0; left: auto; }
.toolbar-more .dropdown a,
.toolbar-more .dropdown button,
.tb-menu .dropdown a,
.tb-menu .dropdown button,
.image-menu .dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.toolbar-more .dropdown a:hover,
.toolbar-more .dropdown button:hover,
.tb-menu .dropdown a:hover,
.tb-menu .dropdown button:hover,
.image-menu .dropdown button:hover { background: var(--bg-muted); }

.app-toolbar {
  position: relative;
  top: auto;
  z-index: 8;
}

.drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
}
.drawer > summary::-webkit-details-marker { display: none; }

.nav-toggle .mobile-more { margin: 0; }
.nav-toggle .mobile-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  height: auto;
  min-height: 40px;
  color: var(--text);
}
.nav-toggle .mobile-more > summary::-webkit-details-marker { display: none; }
.nav-toggle .mobile-more > summary:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-more-list { display: grid; gap: 2px; padding: 0 0 6px 10px; }
.mobile-more-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
}
.mobile-more-list .menu-ico {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  flex: 0 0 auto;
}
.mobile-more-list .menu-ico svg { width: 18px; height: 18px; display: block; }
.mobile-more-list .dropdown-all { font-weight: 700; }

.blob-bg, .blob, .cta-orb, .cta-banner::before { display: none !important; }
.footer-glow { display: block; animation: none; }
.below-fold {
  overflow: visible;
  isolation: auto;
  padding: 8px 0 24px;
}

.section-eyebrow,
.section-icon,
.content-section .card-icon,
.faq-q .card-icon,
.cta-orb { display: none !important; }

.section-head { margin: 0 0 16px; }
.section-head h2,
.content-section > .section-head h2 {
  display: block;
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: inherit;
}
.grad-text {
  background: none;
  color: inherit;
  -webkit-text-fill-color: inherit;
}

.glass-card,
.glass-panel,
.text-panel {
  background: var(--panel);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.glass-card::after { display: none; }
.glass-card:hover,
a.card.glass-card:hover,
a.card:hover {
  transform: none;
  box-shadow: none;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.text-panel { padding: 0; border: 0; background: transparent; border-radius: 0; }

.cta-banner {
  background: var(--accent);
  overflow: hidden;
}
.cta-banner::before,
.mini-wheel,
.btn.cta-pulse { animation: none !important; }
.cta-banner .btn:hover { transform: none; }

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 0;
  background:
    radial-gradient(80% 80% at 10% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 50%),
    var(--bg);
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
}
.footer-glow {
  display: block;
  animation: none;
}
.site-footer .footer-col h2 {
  display: block;
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hover);
  text-decoration: none;
}
.site-footer .footer-col h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 99px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
}
.site-footer .footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 8px;
  transform: none;
  font-size: 0.9rem;
  line-height: 1.25;
  min-height: 0;
}
.site-footer .wordmark {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
}
.site-footer .footer-col a:hover { color: var(--accent); }
.site-footer ul { gap: 8px; }
.footer-col > .card-icon { display: none; }
.footer-ico { display: inline-flex; }
.footer-five { gap: 18px 20px; align-items: start; }
.footer-brand .brand-blurb {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
  max-width: 20rem;
}
.footer-social { margin-top: 10px; gap: 8px; }
.footer-social a { padding: 5px 10px; }
.footer-legal {
  border-top: 1px solid var(--border);
  margin: 16px -20px 0;
  padding: 14px 20px;
}
.footer-legal-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
}
.footer-legal p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-secondary);
  white-space: nowrap;
}
.footer-legal nav {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.footer-legal nav a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-legal nav a:hover { color: var(--accent); }
html[data-theme="dark"] .footer-legal {
  border-top-color: rgba(255, 255, 255, 0.1);
}
@media (max-width: 800px) {
  .footer-five {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding: 24px 16px 0; }
  .footer-legal {
    margin: 16px -16px 0;
    padding: 14px 16px;
  }
}
@media (max-width: 700px) {
  .footer-legal p { font-size: 0.72rem; }
}
@media (max-width: 480px) {
  .footer-legal-inner {
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
  }
  .footer-legal p { white-space: normal; }
  .footer-legal nav { justify-content: center; }
}

.faq-q { min-height: 0; padding: 8px 0; gap: 0; }
.faq-a { padding: 0 8px 14px 4px; }
.faq-chevron { color: var(--text-secondary); display: inline-flex; }
details[open] > summary .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.16s ease; }

.result-summary { margin: 0 0 16px; }
.result-summary h3,
.result-history-h {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.result-counts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.result-counts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.rate-box {
  margin-top: 36px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

@media (prefers-reduced-motion: reduce) {
  .menu-caret,
  .faq-chevron { transition: none; }
  .blob,
  .cta-banner::before,
  .mini-wheel,
  .cta-orb::after,
  .cta-pulse,
  .live-dot { animation: none !important; }
}

.nav-more-menu[hidden],
.dropdown[hidden],
[data-menu-panel][hidden] {
  display: none !important;
}

/* Keep related cards in the content column (not flush/left-stuck). */
section.related.content-section {
  max-width: 1120px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 48px;
  margin-bottom: 28px;
  padding: 0 20px 8px;
  box-sizing: border-box;
}

/* Winner banner (original diagonal reveal) */
.stw-banner {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.stw-banner[hidden] { display: none !important; }
.stw-banner-dim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
html[data-theme="dark"] .stw-banner-dim { background: rgba(0, 0, 0, 0.58); }
.stw-banner-ribbon {
  position: relative;
  z-index: 1;
  width: 150vw;
  min-height: clamp(120px, 22vw, 210px);
  background: var(--stw-banner-bg, #dc2626);
  transform: rotate(-8deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.stw-banner-inner {
  width: 100%;
  padding: 22px 8vw;
  text-align: center;
}
.stw-banner-name {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 5.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18), 0 12px 28px rgba(0, 0, 0, 0.35);
  line-height: 1.05;
  word-break: break-word;
}
.stw-banner-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.stw-banner-rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
}
.stw-banner-rule-a { top: 7px; }
.stw-banner-rule-b { bottom: 7px; }
.stw-banner-actions {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(20px, 7vh);
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
@keyframes stwBannerDimIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes stwBannerRibbonIn {
  from { opacity: 0; transform: rotate(-8deg) scale(0.84) translateY(36px); }
  to { opacity: 1; transform: rotate(-8deg) scale(1) translateY(0); }
}
.stw-banner.is-on .stw-banner-dim { animation: stwBannerDimIn 0.28s ease both; }
.stw-banner.is-on .stw-banner-ribbon { animation: stwBannerRibbonIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) both; }
@media (max-width: 640px) {
  .stw-banner-ribbon { width: 170vw; min-height: clamp(104px, 28vw, 168px); }
  .stw-banner-name { font-size: clamp(1.55rem, 10vw, 2.7rem); }
  .stw-banner-actions { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .stw-banner.is-on .stw-banner-dim,
  .stw-banner.is-on .stw-banner-ribbon { animation: none; }
  .card:hover { transform: none; }
}

/* ==========================================================================
   v13 — compact home lead, preset pills, consistent close buttons
   ========================================================================== */

.home-lead {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px 6px;
  text-align: center;
}
.home-lead h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-transform: none;
}
.home-lead-copy {
  margin: 8px auto 0;
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.45;
}
.page.page-home:has(.home-lead) { --home-lead-h: 84px; }
.page.page-home:has(.quick-presets) { --presets-h: 58px; }

.quick-presets {
  max-width: 1120px;
  margin: 8px auto 20px;
  padding: 0 20px;
  text-align: center;
}
.quick-presets-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.quick-presets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.preset-pill svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: 0 0 auto;
}
.preset-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.preset-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

@media (min-width: 1024px) {
  body:has(.app-toolbar) .page-home:has(.home-lead) .studio,
  body:has(.app-toolbar) .page-home:has(.home-lead) .studio-stage,
  body:has(.app-toolbar) .page-home:has(.home-lead) .panel {
    min-height: calc(100vh - var(--chrome-h, 104px) - var(--home-lead-h, 0px) - var(--presets-h, 0px));
  }
  .page-home:has(.home-lead) .wheel-wrap {
    width: min(460px, calc(100% - 24px), calc(100vh - 280px));
  }
}

.modal {
  position: relative;
  padding: 22px 52px 22px 22px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 4;
  padding: 0;
  box-shadow: none;
}
.modal-close::before {
  content: "";
  position: absolute;
  inset: -4px;
}
.modal-close svg {
  display: block;
  width: 16px;
  height: 16px;
}
.modal-close:hover {
  background: var(--bg-muted);
  color: var(--accent);
  border-color: var(--accent);
}
.modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
html[data-theme="dark"] .modal-close {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}
html[data-theme="dark"] .modal-close:hover {
  background: var(--bg-muted);
  color: var(--accent);
}

.nav-toggle nav {
  position: relative;
  padding-top: 48px;
}
.nav-toggle .nav-drawer-close {
  top: 8px;
  right: 8px;
}

.stw-banner-x {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
  background: var(--panel);
}
.home-cta .section-body {
  text-align: center;
}
.home-cta .btn {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .home-lead { padding: 14px 16px 4px; }
  .home-lead-copy { font-size: 0.92rem; }
  .quick-presets { margin-bottom: 16px; }
}

/* ==========================================================================
   v14 — homepage and content info boxes
   ========================================================================== */

.page-home .prose-wide {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 24px 28px;
}
.page-home .content-section,
.content-section {
  margin: 44px 0 28px;
}
.page-home .section-head,
.content-section > .section-head {
  margin: 0 0 20px;
}

.ibox-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
  padding: 0;
  margin: 0;
  list-style: none;
}
.ibox-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ibox-grid-uses {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ibox-grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
@media (max-width: 1100px) {
  .ibox-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .ibox-grid-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ibox-grid-4,
  .ibox-grid-uses,
  .ibox-grid-auto { grid-template-columns: 1fr; }
}

.ibox {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ibox-use:hover,
.ibox-grid .ibox:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
html[data-theme="dark"] .ibox {
  background: var(--panel);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
html[data-theme="dark"] .ibox-use:hover,
html[data-theme="dark"] .ibox-grid .ibox:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.ibox-badge,
.ibox-visual-mark,
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}
.ibox-badge svg,
.ibox-visual-mark svg,
.ibox-arrow svg {
  width: 22px;
  height: 22px;
  display: block;
}
.ibox-badge-lg {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}
.ibox-badge-lg svg { width: 26px; height: 26px; }

.ibox-tone-1 .ibox-badge,
.ibox-tone-1 .ibox-visual-mark,
.ibox-tone-1 .step-num { background: #2563eb; }
.ibox-tone-2 .ibox-badge,
.ibox-tone-2 .ibox-visual-mark,
.ibox-tone-2 .step-num { background: #16a34a; }
.ibox-tone-3 .ibox-badge,
.ibox-tone-3 .ibox-visual-mark,
.ibox-tone-3 .step-num { background: #ea580c; }
.ibox-tone-4 .ibox-badge,
.ibox-tone-4 .ibox-visual-mark,
.ibox-tone-4 .step-num { background: #7c3aed; }
.ibox-tone-5 .ibox-badge,
.ibox-tone-5 .ibox-visual-mark,
.ibox-tone-5 .step-num { background: #db2777; }
.ibox-tone-6 .ibox-badge,
.ibox-tone-6 .ibox-visual-mark,
.ibox-tone-6 .step-num { background: #0d9488; }
.ibox-tone-7 .ibox-badge,
.ibox-tone-7 .ibox-visual-mark,
.ibox-tone-7 .step-num { background: #dc2626; }
.ibox-tone-8 .ibox-badge,
.ibox-tone-8 .ibox-visual-mark,
.ibox-tone-8 .step-num { background: #ca8a04; }

.ibox-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ibox h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 750;
  color: var(--text);
}
.ibox h3 a {
  color: inherit;
  text-decoration: none;
}
.ibox h3 a:hover { color: var(--accent); }
.ibox-text,
.ibox-copy {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}
.ibox-text p,
.ibox-copy p,
.ibox-lead p {
  margin: 0 0 0.75em;
}
.ibox-text p:last-child,
.ibox-copy p:last-child,
.ibox-lead p:last-child { margin-bottom: 0; }
.ibox-lead { margin-bottom: 16px; }

.ibox-use {
  position: relative;
  padding-right: 44px;
}
.ibox-arrow {
  position: absolute;
  top: 20px;
  right: 18px;
  color: var(--accent);
  width: 22px;
  height: 22px;
}
.ibox-arrow svg { width: 22px; height: 22px; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step-ibox {
  position: relative;
}
.step-num {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
@media (min-width: 801px) {
  .step-ibox:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42px;
    left: calc(100% + 6px);
    width: 12px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
  }
}
@media (max-width: 800px) {
  .step-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-ibox:not(:last-child)::after { display: none; }
}

.split-ibox {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.7fr);
  gap: 20px;
  align-items: stretch;
}
.split-ibox.is-rev .ibox-visual { order: -1; }
.ibox-copy { min-height: 100%; }
.ibox-visual {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
}
.ibox-visual-mark {
  width: 96px;
  height: 96px;
  border-radius: 28px;
}
.ibox-visual-mark svg { width: 48px; height: 48px; }
@media (max-width: 720px) {
  .split-ibox,
  .split-ibox.is-rev {
    grid-template-columns: 1fr;
  }
  .split-ibox.is-rev .ibox-visual { order: 0; }
}

.callout-ibox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px;
}
@media (max-width: 520px) {
  .callout-ibox { flex-direction: column; }
}

.card-grid.ibox-explore,
.page-home .card-grid {
  gap: 20px;
}
.card-grid.ibox-explore .card,
.page-home .card-grid .card,
section.related .card {
  border-radius: 18px;
  padding: 18px 18px 20px;
  min-height: 100%;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.card-grid.ibox-explore .card-mark,
.page-home .card-grid .card-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.faq.content-section .faq-list,
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}
.faq-item .faq-q {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  font-weight: 700;
  color: var(--text);
}
.faq-item .faq-a {
  padding: 0 18px 16px;
  color: var(--text);
}
.faq-item .faq-a p { margin: 0; }
html[data-theme="dark"] .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

section.home-cta {
  background: #ea580c;
  color: #fff;
  border-radius: 24px;
  padding: 40px 28px 36px;
  margin: 48px 0 16px;
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.2);
  text-align: center;
}
section.home-cta .section-head {
  margin: 0 0 12px;
}
section.home-cta .section-head h2 {
  color: #fff;
  text-align: center;
}
section.home-cta .section-body {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}
section.home-cta .section-body p {
  color: #fff;
}
section.home-cta .btn,
section.home-cta .btn-primary {
  background: #fff;
  color: #c2410c;
  border-color: #fff;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 8px;
}
section.home-cta .btn:hover,
section.home-cta .btn-primary:hover {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fff7ed;
}
html[data-theme="dark"] section.home-cta {
  background: #c2410c;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.prose:has(.ibox-grid-4),
.prose:has(.split-ibox),
.prose:has(.step-grid) {
  max-width: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  .ibox,
  .ibox-use,
  .ibox-grid .ibox,
  .card { transition: none; }
  .ibox-use:hover,
  .ibox-grid .ibox:hover,
  .card:hover { transform: none; }
}


/* ==========================================================================
   v15 — thumbs, drawer, presets, FAQ, panel restore, favicon mark
   ========================================================================== */

.brand-mark { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; display: block; }

.nav-open-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.nav-open-btn:hover { background: var(--bg-muted); }
@media (min-width: 1024px) {
  .nav-open-btn,
  .nav-backdrop,
  .nav-drawer { display: none !important; }
}

.nav-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.48);
  z-index: 70;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: var(--panel);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.16);
  z-index: 71;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nav-drawer[hidden],
.nav-backdrop[hidden] { display: none !important; }
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 8px 16px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.nav-drawer-title {
  margin: 0;
  font-weight: 750;
  font-size: 1rem;
}
.nav-drawer-head .modal-close,
.nav-drawer-close {
  position: static;
}
.nav-drawer-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  padding: 8px 10px 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  width: 100%;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  box-sizing: border-box;
}
.nav-row:hover { background: var(--accent-soft); color: var(--accent); }
.nav-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--bg-muted);
}
.nav-more-menu a {
  gap: 12px;
  min-height: 44px;
}
.nav-more-menu .nav-thumb { width: 32px; height: 32px; }
.nav-row-ico {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.nav-row .icon-moon,
.nav-row .icon-sun { display: none; }
html:not([data-theme="dark"]) .nav-row .icon-moon { display: inline-flex; }
html[data-theme="dark"] .nav-row .icon-sun { display: inline-flex; }
.nav-tools-group { margin: 0; border: 0; }
.nav-tools-summary {
  justify-content: flex-start;
  list-style: none;
}
.nav-tools-summary::-webkit-details-marker { display: none; }
.nav-tools-summary .menu-caret { margin-left: auto; }
.nav-tools-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 6px;
}
.nav-tools-list .nav-row {
  padding-left: 28px;
  font-weight: 500;
}
body.nav-open { overflow: hidden; }

.page.page-home:has(.quick-presets) { --presets-h: 0px; }
.quick-presets {
  max-width: 1120px;
  margin: 28px auto 32px;
  padding: 0 20px 8px;
  text-align: center;
}
.quick-presets-label {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 720px) {
  .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.preset-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 12px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.preset-card img,
.preset-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.preset-card span { padding: 10px 10px 2px; display: block; }
.preset-card:hover,
.preset-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  color: var(--text);
}
.preset-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ibox {
  padding: 0 0 20px;
  overflow: hidden;
}
.ibox-media {
  margin: 0 0 4px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-muted);
}
.ibox-media img,
.ibox-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ibox-body { padding: 14px 20px 0; }
.ibox-use { padding-right: 0; }
.ibox-use .ibox-arrow { top: auto; bottom: 18px; right: 16px; }
.step-ibox .ibox-media { position: relative; }
.step-ibox .step-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.05rem;
}
.split-ibox .ibox-copy { padding: 22px 24px; }
.split-ibox .ibox-visual {
  padding: 0;
  overflow: hidden;
  min-height: 220px;
}
.split-ibox .ibox-visual img,
.ibox-visual-photo {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.callout-ibox {
  flex-direction: row;
  padding: 16px;
  align-items: center;
  gap: 18px;
}
.callout-ibox .ibox-media {
  width: 148px;
  flex: 0 0 148px;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
}
@media (max-width: 520px) {
  .callout-ibox { flex-direction: column; align-items: stretch; }
  .callout-ibox .ibox-media { width: 100%; flex-basis: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .ibox-grid-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .ibox-grid-tools { grid-template-columns: 1fr; }
}

.card-has-thumb,
.card-grid .card.card-has-thumb,
.page-home .card-grid .card.card-has-thumb,
section.related .card.card-has-thumb {
  flex-direction: column;
  padding: 0 0 16px;
  overflow: hidden;
  gap: 0;
}
.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-muted);
}
.card-has-thumb .card-copy { padding: 14px 16px 0; }
.card-has-thumb .card-mark { display: none; }

.faq.content-section {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.faq-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.faq-head-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--bg-muted);
}
.faq-head h2 { margin: 0; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
  border-left: 3px solid transparent;
}
.faq-item[open] {
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  border-left-color: var(--accent);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-q {
  font-weight: 700;
  font-size: 1.02rem;
  flex: 1;
  color: var(--text);
  min-height: 0;
  padding: 0;
}
.faq-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease;
  background: var(--panel);
}
.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.faq-item .faq-a {
  padding: 0 20px 20px;
  color: var(--text);
}
.faq-item .faq-a p { margin: 0; }
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.28s ease, content-visibility 0.28s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-plus, .faq-item::details-content { transition: none; }
}

.show-panel-btn {
  display: none;
  position: absolute;
  top: 84px;
  right: 0;
  z-index: 8;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px 10px 16px;
  border-radius: 12px 0 0 12px;
  border: 1px solid var(--border);
  border-right: 0;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.show-panel-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.studio { position: relative; }
.studio.panel-hidden .show-panel-btn,
html[data-panel-hidden="1"] .show-panel-btn { display: inline-flex; }
@media (min-width: 1280px) {
  html[data-panel-hidden="1"] .page-home .studio,
  .page-home .studio.panel-hidden, html[data-panel-hidden="1"] .tool-hero .studio, .tool-hero .studio.panel-hidden {
    grid-template-columns: 340px minmax(0, 1fr);
    grid-template-areas: "title stage";
  }
  html[data-panel-hidden="1"] .studio:not(.studio-home),
  .studio.panel-hidden:not(.studio-home) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "stage";
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  html[data-panel-hidden="1"] .page-home .studio,
  .page-home .studio.panel-hidden, html[data-panel-hidden="1"] .tool-hero .studio, .tool-hero .studio.panel-hidden {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "stage";
  }
}
html[data-theme="dark"] .show-panel-btn {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .preset-card,
html[data-theme="dark"] .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .nav-backdrop { background: rgba(0, 0, 0, 0.58); }
html[data-theme="dark"] .faq-item[open] {
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
}

/* Mobile QA helpers */
@media (max-width: 640px) {
  .home-lead { padding: 14px 16px 8px; }
  .home-lead h1 { font-size: 1.28rem; line-height: 1.25; padding-right: 0; }
  .title-col { padding: 10px 12px 6px; }
  .app-toolbar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tb-btn { min-height: 44px; min-width: 44px; }
  .header-actions { gap: 4px; }
  .wordmark { font-size: 1.05rem; }
  .site-footer { padding-bottom: 24px; }
  .footer-legal-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .spin-counter { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 390px) {
  .wordmark { font-size: 0.98rem; }
  .my-wheels-btn span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .preset-card { transition: none; }
  .preset-card:hover { transform: none; }
}

/* ==========================================================================
   v16 — steps, stats, vote, wheelify cards, winner styles, matched icon hues
   ========================================================================== */

.ibox-tone-1, .easy-tone-1, .stat-tone-1, .dev-tone-1 { --piece: #2563eb; --piece-soft: #dbeafe; --piece-ink: #1d4ed8; --piece-deep: #1e3a8a; }
.ibox-tone-2, .easy-tone-2, .stat-tone-2, .dev-tone-2 { --piece: #16a34a; --piece-soft: #dcfce7; --piece-ink: #15803d; --piece-deep: #14532d; }
.ibox-tone-3, .easy-tone-3, .stat-tone-3, .dev-tone-3 { --piece: #ea580c; --piece-soft: #ffedd5; --piece-ink: #c2410c; --piece-deep: #9a3412; }
.ibox-tone-4, .easy-tone-4, .stat-tone-4, .dev-tone-4 { --piece: #7c3aed; --piece-soft: #ede9fe; --piece-ink: #6d28d9; --piece-deep: #5b21b6; }
.ibox-tone-5, .easy-tone-5, .stat-tone-5, .dev-tone-5 { --piece: #db2777; --piece-soft: #fce7f3; --piece-ink: #be185d; --piece-deep: #9d174d; }
.ibox-tone-6, .easy-tone-6, .stat-tone-6, .dev-tone-6 { --piece: #0d9488; --piece-soft: #ccfbf1; --piece-ink: #0f766e; --piece-deep: #115e59; }
.ibox-tone-7, .easy-tone-7, .stat-tone-7, .dev-tone-7 { --piece: #dc2626; --piece-soft: #fee2e2; --piece-ink: #b91c1c; --piece-deep: #991b1b; }
.ibox-tone-8, .easy-tone-8, .stat-tone-8, .dev-tone-8 { --piece: #ca8a04; --piece-soft: #fef9c3; --piece-ink: #a16207; --piece-deep: #854d0e; }

html[data-theme="dark"] .ibox-tone-1, html[data-theme="dark"] .easy-tone-1, html[data-theme="dark"] .stat-tone-1, html[data-theme="dark"] .dev-tone-1 { --piece-soft: #1e3a8a; --piece-ink: #93c5fd; --piece: #3b82f6; }
html[data-theme="dark"] .ibox-tone-2, html[data-theme="dark"] .easy-tone-2, html[data-theme="dark"] .stat-tone-2, html[data-theme="dark"] .dev-tone-2 { --piece-soft: #14532d; --piece-ink: #86efac; --piece: #22c55e; }
html[data-theme="dark"] .ibox-tone-3, html[data-theme="dark"] .easy-tone-3, html[data-theme="dark"] .stat-tone-3, html[data-theme="dark"] .dev-tone-3 { --piece-soft: #7c2d12; --piece-ink: #fdba74; --piece: #f97316; }
html[data-theme="dark"] .ibox-tone-4, html[data-theme="dark"] .easy-tone-4, html[data-theme="dark"] .stat-tone-4, html[data-theme="dark"] .dev-tone-4 { --piece-soft: #4c1d95; --piece-ink: #c4b5fd; --piece: #8b5cf6; }
html[data-theme="dark"] .ibox-tone-5, html[data-theme="dark"] .easy-tone-5, html[data-theme="dark"] .stat-tone-5, html[data-theme="dark"] .dev-tone-5 { --piece-soft: #831843; --piece-ink: #f9a8d4; --piece: #ec4899; }
html[data-theme="dark"] .ibox-tone-6, html[data-theme="dark"] .easy-tone-6, html[data-theme="dark"] .stat-tone-6, html[data-theme="dark"] .dev-tone-6 { --piece-soft: #134e4a; --piece-ink: #5eead4; --piece: #14b8a6; }
html[data-theme="dark"] .ibox-tone-7, html[data-theme="dark"] .easy-tone-7, html[data-theme="dark"] .stat-tone-7, html[data-theme="dark"] .dev-tone-7 { --piece-soft: #7f1d1d; --piece-ink: #fca5a5; --piece: #ef4444; }
html[data-theme="dark"] .ibox-tone-8, html[data-theme="dark"] .easy-tone-8, html[data-theme="dark"] .stat-tone-8, html[data-theme="dark"] .dev-tone-8 { --piece-soft: #713f12; --piece-ink: #fde047; --piece: #eab308; }

.ibox-arrow { color: var(--piece-ink, var(--accent)); }
.step-ibox .step-num {
  background: var(--piece, #2563eb);
  color: #fff;
}
.ibox-tone-1 .ibox-badge, .ibox-tone-2 .ibox-badge, .ibox-tone-3 .ibox-badge,
.ibox-tone-4 .ibox-badge, .ibox-tone-5 .ibox-badge, .ibox-tone-6 .ibox-badge,
.ibox-tone-7 .ibox-badge, .ibox-tone-8 .ibox-badge {
  background: var(--piece-soft);
  color: var(--piece-ink);
}

.footer-col li:nth-child(8n+1) .footer-ico { color: #1d4ed8; background: #dbeafe; }
.footer-col li:nth-child(8n+2) .footer-ico { color: #15803d; background: #dcfce7; }
.footer-col li:nth-child(8n+3) .footer-ico { color: #c2410c; background: #ffedd5; }
.footer-col li:nth-child(8n+4) .footer-ico { color: #6d28d9; background: #ede9fe; }
.footer-col li:nth-child(8n+5) .footer-ico { color: #be185d; background: #fce7f3; }
.footer-col li:nth-child(8n+6) .footer-ico { color: #0f766e; background: #ccfbf1; }
.footer-col li:nth-child(8n+7) .footer-ico { color: #b91c1c; background: #fee2e2; }
.footer-col li:nth-child(8n+8) .footer-ico { color: #a16207; background: #fef9c3; }
.footer-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html[data-theme="dark"] .footer-col li:nth-child(8n+1) .footer-ico { color: #93c5fd; background: #1e3a8a; }
html[data-theme="dark"] .footer-col li:nth-child(8n+2) .footer-ico { color: #86efac; background: #14532d; }
html[data-theme="dark"] .footer-col li:nth-child(8n+3) .footer-ico { color: #fdba74; background: #7c2d12; }
html[data-theme="dark"] .footer-col li:nth-child(8n+4) .footer-ico { color: #c4b5fd; background: #4c1d95; }
html[data-theme="dark"] .footer-col li:nth-child(8n+5) .footer-ico { color: #f9a8d4; background: #831843; }
html[data-theme="dark"] .footer-col li:nth-child(8n+6) .footer-ico { color: #5eead4; background: #134e4a; }
html[data-theme="dark"] .footer-col li:nth-child(8n+7) .footer-ico { color: #fca5a5; background: #7f1d1d; }
html[data-theme="dark"] .footer-col li:nth-child(8n+8) .footer-ico { color: #fde047; background: #713f12; }

.qw-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.qw-head h2, .qw-head .quick-presets-label { margin: 0; }
.view-all {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.view-all:hover { text-decoration: underline; }

.preset-grid.qw-grid,
.card-grid.qw-grid,
.page-home .card-grid,
section.related .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 800px) {
  .preset-grid.qw-grid,
  .card-grid.qw-grid,
  .page-home .card-grid,
  section.related .card-grid { grid-template-columns: 1fr; }
}

.qw-card,
.card.card-has-thumb {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #f8fafc;
  box-shadow: none;
  min-height: 132px;
  text-align: left;
}
html[data-theme="dark"] .qw-card,
html[data-theme="dark"] .card.card-has-thumb {
  background: var(--panel);
}
.qw-thumb,
.card-has-thumb .card-thumb {
  width: 132px;
  min-width: 132px;
  height: 132px;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
  border-right: 1px solid var(--border);
}
html[data-theme="dark"] .qw-thumb,
html[data-theme="dark"] .card-has-thumb .card-thumb { background: #0b1220; }
.qw-copy,
.card-has-thumb .card-copy {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qw-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--piece-ink, var(--text-secondary));
}
.qw-copy strong,
.card-has-thumb .card-copy strong {
  font-size: 1.05rem;
  line-height: 1.3;
}
.qw-go {
  width: 36px;
  height: 36px;
  margin-right: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  flex: 0 0 auto;
  background: #fff;
}
html[data-theme="dark"] .qw-go { background: var(--bg-muted); }
.qw-card:hover,
.card.card-has-thumb:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.qw-card:hover .qw-go {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.easy-steps {
  max-width: 1120px;
  margin: 28px auto 12px;
  padding: 8px 20px 20px;
  text-align: center;
}
.easy-steps h2 {
  margin: 0 0 28px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
.easy-steps-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  position: relative;
}
.easy-step { position: relative; padding: 0 8px; }
.easy-step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--piece-deep, #1e3a8a);
  color: var(--piece-soft, #dbeafe);
  position: relative;
  z-index: 1;
}
.easy-step-icon svg { width: 28px; height: 28px; }
@media (min-width: 801px) {
  .easy-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 36px;
    left: calc(50% + 44px);
    width: calc(100% - 88px);
    border-top: 2px dotted color-mix(in srgb, var(--piece, var(--border)) 55%, var(--border));
    z-index: 0;
  }
}
.easy-step-title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 1.05rem;
}
.easy-step-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.easy-steps-note {
  margin: 22px 0 10px;
  color: var(--text-secondary);
}
.easy-steps-devices {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: center;
}
.dev-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--piece-soft);
  color: var(--piece-ink);
}
.dev-ico svg { width: 18px; height: 18px; }
@media (max-width: 800px) {
  .easy-steps-row { grid-template-columns: 1fr; gap: 8px; }
  .easy-step { padding: 8px 0 16px; }
  .easy-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: auto;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 16px;
    border-top: 0;
    border-left: 2px dotted color-mix(in srgb, var(--piece, var(--border)) 55%, var(--border));
  }
}

.stat-strip {
  max-width: 1120px;
  margin: 8px auto 28px;
  padding: 0 20px 12px;
}
.stat-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}
html[data-theme="dark"] .stat-card { background: var(--panel); }
.stat-cell {
  padding: 22px 18px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: 0; }
.stat-ico {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--piece-soft);
  color: var(--piece-ink);
}
.stat-ico svg { width: 22px; height: 22px; }
.stat-cell strong {
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.stat-cell span {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
@media (max-width: 720px) {
  .stat-card { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

.vote-section {
  max-width: 720px;
  margin: 36px auto 20px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  text-align: center;
}
.vote-section h2 { margin: 0 0 8px; }
.vote-lead { margin: 0 0 16px; color: var(--text-secondary); }
.vote-stars { display: flex; justify-content: center; gap: 8px; }
.vote-star {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fef3c7;
  color: #a16207;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.vote-star.is-on,
.vote-star:hover { background: #fde047; color: #854d0e; }
html[data-theme="dark"] .vote-star { background: #713f12; color: #fde047; border-color: #854d0e; }
.vote-section.has-voted .vote-star { cursor: default; }
.vote-totals { margin: 14px 0 0; font-weight: 700; }
.vote-msg { margin: 8px 0 0; color: var(--text-secondary); }

.winner-fx {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 24px;
}
.winner-fx[hidden] { display: none !important; }
.winner-card-inner, .spotlight-panel {
  position: relative;
  z-index: 2;
  background: var(--panel);
  border-radius: 24px;
  padding: 28px 32px 24px;
  text-align: center;
  max-width: 28rem;
  width: min(100%, 28rem);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}
.winner-fx-kicker { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); }
.winner-fx-name { margin: 0 0 18px; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.15; }
.winner-card { background: rgba(15, 23, 42, 0.28); }
.winner-card.is-on .winner-card-inner { animation: winnerPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes winnerPop { from { transform: scale(0.86); opacity: 0; } to { transform: none; opacity: 1; } }

.winner-spotlight { padding: 0; }
.spotlight-dim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}
.spotlight-ring {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.95), 0 0 80px 20px rgba(250, 204, 21, 0.35);
  animation: spotlightPulse 1.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes spotlightPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.95), 0 0 80px 20px rgba(250, 204, 21, 0.28); }
  50% { box-shadow: 0 0 0 16px rgba(250, 204, 21, 0.55), 0 0 110px 36px rgba(250, 204, 21, 0.45); }
}
.spotlight-panel { margin-top: auto; margin-bottom: 8vh; }

.winner-ribbon-drop { align-content: start; background: rgba(15, 23, 42, 0.25); }
.ribbon-drop-bar {
  width: min(100%, 920px);
  margin: 0 auto;
  background: #dc2626;
  color: #fff;
  text-align: center;
  padding: 22px 24px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.28);
}
.winner-ribbon-drop.is-on .ribbon-drop-bar { animation: ribbonDrop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes ribbonDrop { from { transform: translateY(-120%); } to { transform: none; } }
.ribbon-drop-bar .winner-fx-kicker, .ribbon-drop-bar .winner-fx-name { color: #fff; }
.winner-ribbon-drop .btn { margin-top: 20px; }

.winner-fireworks { background: rgba(15, 23, 42, 0.45); }
.fw-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(250, 204, 21, 0.55) 0 6px, transparent 7px),
    radial-gradient(circle at 70% 25%, rgba(244, 63, 94, 0.55) 0 5px, transparent 6px),
    radial-gradient(circle at 40% 60%, rgba(56, 189, 248, 0.5) 0 7px, transparent 8px),
    radial-gradient(circle at 80% 65%, rgba(132, 204, 22, 0.5) 0 6px, transparent 7px),
    radial-gradient(circle at 55% 18%, rgba(167, 139, 250, 0.5) 0 8px, transparent 9px);
  animation: fwTwinkle 1.1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fwTwinkle { 50% { opacity: 0.45; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .spotlight-ring, .winner-card.is-on .winner-card-inner, .winner-ribbon-drop.is-on .ribbon-drop-bar, .fw-sky { animation: none; }
}

.try-it {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--accent);
}
.try-it:hover { background: var(--accent-hover); color: #fff; }

@media (max-width: 520px) {
  .qw-thumb, .card-has-thumb .card-thumb { width: 96px; min-width: 96px; height: 110px; }
  .vote-star { width: 44px; height: 44px; }
  .qw-card, .card.card-has-thumb { min-height: 110px; border-radius: 18px; }
}

.ibox-tone-1, .easy-tone-1, .stat-tone-1, .dev-tone-1, .nav-tone-1 { --piece-on-deep: #dbeafe; }
.ibox-tone-2, .easy-tone-2, .stat-tone-2, .dev-tone-2, .nav-tone-2 { --piece-on-deep: #dcfce7; }
.ibox-tone-3, .easy-tone-3, .stat-tone-3, .dev-tone-3, .nav-tone-3 { --piece-on-deep: #ffedd5; }
.ibox-tone-4, .easy-tone-4, .stat-tone-4, .dev-tone-4, .nav-tone-4 { --piece-on-deep: #ede9fe; }
.ibox-tone-5, .easy-tone-5, .stat-tone-5, .dev-tone-5, .nav-tone-5 { --piece-on-deep: #fce7f3; }
.ibox-tone-6, .easy-tone-6, .stat-tone-6, .dev-tone-6, .nav-tone-6 { --piece-on-deep: #ccfbf1; }
.ibox-tone-7, .easy-tone-7, .stat-tone-7, .dev-tone-7, .nav-tone-7 { --piece-on-deep: #fee2e2; }
.ibox-tone-8, .easy-tone-8, .stat-tone-8, .dev-tone-8, .nav-tone-8 { --piece-on-deep: #fef9c3; }

.easy-step-icon { color: var(--piece-on-deep, #e2e8f0); }

.ibox[class*="ibox-tone-"] {
  background: color-mix(in srgb, var(--piece-soft) 72%, var(--panel));
  border-color: color-mix(in srgb, var(--piece) 22%, var(--border));
}
html[data-theme="dark"] .ibox[class*="ibox-tone-"] {
  background: color-mix(in srgb, var(--piece-soft) 55%, var(--panel));
}

.nav-tone-1 { --piece: #2563eb; --piece-soft: #dbeafe; --piece-ink: #1d4ed8; }
.nav-tone-2 { --piece: #16a34a; --piece-soft: #dcfce7; --piece-ink: #15803d; }
.nav-tone-3 { --piece: #ea580c; --piece-soft: #ffedd5; --piece-ink: #c2410c; }
.nav-tone-4 { --piece: #7c3aed; --piece-soft: #ede9fe; --piece-ink: #6d28d9; }
.nav-tone-5 { --piece: #db2777; --piece-soft: #fce7f3; --piece-ink: #be185d; }
.nav-tone-6 { --piece: #0d9488; --piece-soft: #ccfbf1; --piece-ink: #0f766e; }
.nav-tone-7 { --piece: #dc2626; --piece-soft: #fee2e2; --piece-ink: #b91c1c; }
.nav-tone-8 { --piece: #ca8a04; --piece-soft: #fef9c3; --piece-ink: #a16207; }
html[data-theme="dark"] .nav-tone-1 { --piece-soft: #1e3a8a; --piece-ink: #93c5fd; --piece: #3b82f6; }
html[data-theme="dark"] .nav-tone-2 { --piece-soft: #14532d; --piece-ink: #86efac; --piece: #22c55e; }
html[data-theme="dark"] .nav-tone-3 { --piece-soft: #7c2d12; --piece-ink: #fdba74; --piece: #f97316; }
html[data-theme="dark"] .nav-tone-4 { --piece-soft: #4c1d95; --piece-ink: #c4b5fd; --piece: #8b5cf6; }
html[data-theme="dark"] .nav-tone-5 { --piece-soft: #831843; --piece-ink: #f9a8d4; --piece: #ec4899; }
html[data-theme="dark"] .nav-tone-6 { --piece-soft: #134e4a; --piece-ink: #5eead4; --piece: #14b8a6; }
html[data-theme="dark"] .nav-tone-7 { --piece-soft: #7f1d1d; --piece-ink: #fca5a5; --piece: #ef4444; }
html[data-theme="dark"] .nav-tone-8 { --piece-soft: #713f12; --piece-ink: #fde047; --piece: #eab308; }

.nav-thumb-well {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--piece-soft, var(--bg-muted));
  color: var(--piece-ink, var(--text));
  flex: 0 0 auto;
  overflow: hidden;
}
.nav-thumb-well .nav-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}
.nav-more-menu a:hover,
.nav-tools-list a:hover {
  background: var(--piece-soft, var(--accent-soft));
  color: var(--piece-ink, var(--accent));
}

.qw-card .qw-go {
  color: var(--piece-ink, var(--text-secondary));
  background: var(--piece-soft, #fff);
  border-color: transparent;
}
.qw-card:hover .qw-go {
  background: var(--piece, var(--accent));
  color: var(--piece-on-deep, #fff);
  border-color: var(--piece, var(--accent));
}
.qw-kicker { color: var(--piece-ink, var(--text-secondary)); }

.content-section img.post-inline,
.content-section .post-inline {
  display: block;
  width: min(100%, 720px);
  height: auto;
  border-radius: 16px;
  margin: 8px 0 18px;
}

.stat-cell { background: color-mix(in srgb, var(--piece-soft) 55%, transparent); }

.preset-card.qw-card,
.card-grid .card.card-has-thumb,
.page-home .card-grid .card.card-has-thumb,
section.related .card.card-has-thumb {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  text-align: left;
  box-shadow: none;
  background: #f8fafc;
}
html[data-theme="dark"] .preset-card.qw-card,
html[data-theme="dark"] .card-grid .card.card-has-thumb,
html[data-theme="dark"] .page-home .card-grid .card.card-has-thumb,
html[data-theme="dark"] section.related .card.card-has-thumb {
  background: var(--panel);
}
.preset-card.qw-card img,
.preset-card.qw-card .qw-thumb,
.preset-card.qw-card .preset-thumb,
.card-grid .card.card-has-thumb .card-thumb,
.page-home .card-grid .card.card-has-thumb .card-thumb,
section.related .card.card-has-thumb .card-thumb {
  width: 132px;
  min-width: 132px;
  height: 132px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
  border-right: 1px solid var(--border);
}
html[data-theme="dark"] .preset-card.qw-card img,
html[data-theme="dark"] .card-grid .card.card-has-thumb .card-thumb,
html[data-theme="dark"] .page-home .card-grid .card.card-has-thumb .card-thumb,
html[data-theme="dark"] section.related .card.card-has-thumb .card-thumb {
  background: #0b1220;
}
.preset-card.qw-card span { padding: 0; display: block; }
.preset-card.qw-card .qw-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
}
.preset-card.qw-card .qw-go {
  display: grid;
  margin-right: 16px;
}
.card-has-thumb .card-copy,
.page-home .card-grid .card.card-has-thumb .card-copy,
section.related .card.card-has-thumb .card-copy {
  padding: 16px 18px;
}
@media (max-width: 520px) {
  .preset-card.qw-card img,
  .preset-card.qw-card .qw-thumb,
  .card-grid .card.card-has-thumb .card-thumb,
  .page-home .card-grid .card.card-has-thumb .card-thumb,
  section.related .card.card-has-thumb .card-thumb {
    width: 96px;
    min-width: 96px;
    height: 110px;
  }
}
.card-grid:has(.card-has-thumb) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 800px) {
  .card-grid:has(.card-has-thumb) { grid-template-columns: 1fr; }
}


/* v17: restore v14/v12/v11 chrome; compact vote row */
.site-footer .footer-col h2::after {
  background: var(--accent);
}
.footer-col li .footer-ico,
html[data-theme="dark"] .footer-col li .footer-ico,
.footer-col li:nth-child(n) .footer-ico,
html[data-theme="dark"] .footer-col li:nth-child(n) .footer-ico {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent !important;
  color: var(--accent) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.footer-col li .footer-ico svg {
  width: 16px;
  height: 16px;
}
.footer-h-ico,
.footer-col > .card-icon { display: none !important; }

.nav-more-menu a:hover,
.nav-tools-list a:hover,
.nav-tools-list .nav-row:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-drawer .menu-ico {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
  flex: 0 0 auto;
}
.nav-drawer .menu-ico svg { width: 22px; height: 22px; display: block; }
.nav-row:hover .menu-ico { color: var(--accent); }

.ibox,
.ibox[class*="ibox-tone-"],
html[data-theme="dark"] .ibox[class*="ibox-tone-"] {
  padding: 20px 22px;
  overflow: visible;
  background: var(--panel);
  border-color: var(--border);
}
.ibox-body { padding: 0; }
.ibox-media { display: none; }
.split-ibox .ibox-visual {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 24px;
  overflow: visible;
}
.split-ibox .ibox-visual img,
.ibox-visual-photo { display: none; }
.callout-ibox {
  flex-direction: row;
  padding: 20px 22px;
  align-items: flex-start;
}
.callout-ibox .ibox-media { display: none; }
.ibox-use { padding-right: 44px; }
.ibox-use .ibox-arrow {
  top: 20px;
  right: 18px;
  bottom: auto;
  color: var(--accent);
}
.ibox-arrow { color: var(--accent); }
.step-ibox .step-num {
  position: static;
  margin: 0 0 4px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.15rem;
}
.ibox-tone-1 .ibox-badge, .ibox-tone-1 .ibox-visual-mark, .ibox-tone-1 .step-num { background: #2563eb; color: #fff; }
.ibox-tone-2 .ibox-badge, .ibox-tone-2 .ibox-visual-mark, .ibox-tone-2 .step-num { background: #16a34a; color: #fff; }
.ibox-tone-3 .ibox-badge, .ibox-tone-3 .ibox-visual-mark, .ibox-tone-3 .step-num { background: #ea580c; color: #fff; }
.ibox-tone-4 .ibox-badge, .ibox-tone-4 .ibox-visual-mark, .ibox-tone-4 .step-num { background: #7c3aed; color: #fff; }
.ibox-tone-5 .ibox-badge, .ibox-tone-5 .ibox-visual-mark, .ibox-tone-5 .step-num { background: #db2777; color: #fff; }
.ibox-tone-6 .ibox-badge, .ibox-tone-6 .ibox-visual-mark, .ibox-tone-6 .step-num { background: #0d9488; color: #fff; }
.ibox-tone-7 .ibox-badge, .ibox-tone-7 .ibox-visual-mark, .ibox-tone-7 .step-num { background: #dc2626; color: #fff; }
.ibox-tone-8 .ibox-badge, .ibox-tone-8 .ibox-visual-mark, .ibox-tone-8 .step-num { background: #ca8a04; color: #fff; }

.page-home .card-grid,
section.related .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .page-home .card-grid,
  section.related .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .page-home .card-grid,
  section.related .card-grid { grid-template-columns: 1fr; }
}
.card-grid:has(.card-has-thumb) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 800px) {
  .card-grid:has(.card-has-thumb) { grid-template-columns: 1fr; }
}

.preset-grid.preset-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px) {
  .preset-grid.preset-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.preset-card.preset-pill {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 56px;
  border-radius: 14px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: none;
  overflow: visible;
}
.preset-card.preset-pill span {
  padding: 0;
  display: inline;
  font-weight: 700;
}
.preset-pill-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  flex: 0 0 auto;
}
.preset-pill-ico svg { width: 18px; height: 18px; display: block; }

.vote-section.vote-compact {
  max-width: 1120px;
  width: min(100% - 32px, 1120px);
  margin: 8px auto 10px;
  padding: 8px 16px;
  min-height: 56px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  border-radius: 14px;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--panel);
}
.vote-compact .vote-q,
.vote-section.vote-compact h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}
.vote-compact .vote-stars {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: center;
}
.vote-compact .vote-star {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.vote-compact .vote-totals {
  margin: 0;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.vote-compact .vote-msg {
  margin: 0;
  flex: 1 0 100%;
  text-align: center;
  font-size: 0.82rem;
}
@media (max-width: 520px) {
  .vote-compact .vote-star { width: 32px; height: 32px; }
  .vote-compact .vote-totals { white-space: normal; }
}

.text-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
}
@media (max-width: 640px) {
  .text-link-list { grid-template-columns: 1fr; }
}
.text-link-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.text-link-item h3 a {
  color: var(--accent);
  text-decoration: none;
}
.text-link-item h3 a:hover { text-decoration: underline; }
.text-link-item .ibox-text { color: var(--text-secondary); }

.post-cover {
  margin: 0 0 24px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-muted);
}
.post-cover-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
