/* 拾色室：warm paper meets vivid rose, mint and ink. */
:root {
  --accent: #e0445f;
  --accent-dark: #8b1830;
  --accent-soft: #ffdbe2;
  --mint: #2ec4b6;
  --mint-soft: #d9f7f2;
  --mint-dark: #146c65;
  --gold: #f2b84b;
  --stage: #171518;
  --paper: #f3ede3;
  --paper-deep: #e8ddcd;
  --card: #fffaf2;
  --card-soft: #fcf3e7;
}

body {
  background-image:
    radial-gradient(circle at 82% 7%, rgba(224, 68, 95, .075), transparent 24rem),
    radial-gradient(circle at 8% 39%, rgba(46, 196, 182, .065), transparent 26rem),
    linear-gradient(rgba(25, 21, 16, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 21, 16, .032) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

::selection { background: var(--accent-dark); }
.site-header { border-bottom-color: rgba(43, 36, 28, .13); }
.color-mark { gap: 3px !important; padding: 4px !important; background: var(--ink) !important; }
.color-mark i { width: 100%; height: 100%; border: 0 !important; border-radius: 2px !important; }
.color-mark i:nth-child(1) { background: var(--accent) !important; }
.color-mark i:nth-child(2) { background: var(--gold) !important; }
.color-mark i:nth-child(3) { background: var(--mint) !important; }
.color-mark i:nth-child(4) { background: #fffaf1 !important; }
.top-nav a::after { background: var(--accent); }

/* Hero */
.hero {
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, .86fr);
  gap: clamp(44px, 7vw, 96px);
  padding-block: clamp(54px, 7vw, 92px) 70px;
  align-items: center;
}
.eyebrow span { background: var(--mint-dark); }
.hero h1 {
  max-width: 780px;
  font-size: clamp(52px, 7.1vw, 92px);
  line-height: .98;
  letter-spacing: -.065em;
}
.hero h1 em::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.03em;
  right: -.03em;
  bottom: .06em;
  height: .22em;
  background: var(--accent-soft);
  transform: rotate(-1.2deg);
}
.hero-lede {
  max-width: 590px;
  margin: 26px 0 0;
  color: #5c5246;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}
.hero-actions .button { min-height: 52px; padding-inline: 22px; }
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link span { color: var(--accent); font-size: 18px; text-decoration: none; }
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 34px 0 0;
  padding: 20px 0 0;
  border-top: 1px dashed #c8b9a5;
  list-style: none;
  color: var(--muted);
  font-size: 11px;
}
.hero-notes li { display: flex; align-items: center; gap: 7px; }
.hero-notes b {
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.tone-board {
  position: relative;
  padding: 17px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 11px 11px 0 var(--accent), -7px 8px 0 var(--mint);
  transform: rotate(1.1deg);
}
.tone-board::before {
  content: "";
  position: absolute;
  left: 23px;
  top: -13px;
  width: 82px;
  height: 25px;
  background: rgba(242, 184, 75, .78);
  transform: rotate(-3deg);
}
.tone-board-head {
  display: flex;
  justify-content: space-between;
  padding: 3px 4px 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .13em;
  border-bottom: 1px solid var(--line);
}
.tone-list { display: grid; gap: 7px; margin-top: 12px; }
.tone-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #f9f2e7;
  border: 1px solid #d3c4b0;
  border-radius: 10px;
}
.tone-row i {
  display: block;
  width: 56px;
  height: 48px;
  background: var(--tone);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  box-shadow: 2px 2px 0 rgba(25, 21, 16, .18);
}
.tone-row span { font-size: 14px; font-weight: 700; }
.tone-row code { color: var(--muted); font-size: 10px; }
.tone-stamp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 13px 4px 0;
  border-top: 1px dashed #c8b9a5;
}
.tone-stamp span {
  padding: 4px 8px;
  color: var(--card);
  background: var(--ink);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .12em;
}
.tone-stamp strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -.02em; }

/* Workbench */
.color-workbench { margin-top: 10px; scroll-margin-top: 28px; }
.workbench-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #c8b9a5;
}
.workbench-heading h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.7vw, 54px);
  line-height: 1.05;
  letter-spacing: -.05em;
}
.workbench-heading > p {
  max-width: 420px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}
.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(345px, .84fr);
  gap: 24px;
  margin-top: 22px;
  align-items: start;
}
.picker-card { padding: clamp(18px, 3vw, 28px); min-width: 0; }
.picker-heading { align-items: center; margin-bottom: 16px; }
.picker-heading strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -.025em;
}
.picker-heading p { margin: 0; color: var(--muted); font-size: 11px; }

.pick-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(360px, 45vw, 550px);
  overflow: hidden;
  background: var(--stage);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  transition: border-color .15s ease, box-shadow .15s ease;
  touch-action: manipulation;
}
.pick-stage.is-dragover {
  border-color: var(--mint);
  box-shadow: inset 0 0 0 4px rgba(46, 196, 182, .38), 0 0 0 4px rgba(46, 196, 182, .18);
}
.pick-stage.has-image { background: #121114; }
.pick-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.pick-stage canvas:focus-visible { outline: 3px solid var(--mint); outline-offset: -5px; }
.stage-empty {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  padding: 30px 24px;
  color: #f8eee1;
  text-align: center;
}
.upload-glyph {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 24px);
  align-items: end;
  justify-content: center;
  gap: 5px;
  width: 96px;
  height: 76px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid #514c4e;
  border-radius: 14px;
  background: #242125;
  box-shadow: 4px 4px 0 rgba(224, 68, 95, .65);
  transform: rotate(-2deg);
}
.upload-glyph span { display: block; border-radius: 3px 3px 1px 1px; }
.upload-glyph span:nth-child(1) { height: 22px; background: var(--accent); }
.upload-glyph span:nth-child(2) { height: 39px; background: var(--gold); }
.upload-glyph span:nth-child(3) { height: 30px; background: var(--mint); }
.upload-glyph b {
  position: absolute;
  right: -9px;
  bottom: -10px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}
.stage-kicker {
  margin: 0 0 8px;
  color: #a9a0a2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
}
.stage-empty h3 {
  margin: 0;
  color: #fffaf1;
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -.025em;
}
.stage-empty > p:not(.stage-kicker) {
  margin: 10px 0 20px;
  color: #aca3a3;
  font-size: 12px;
  line-height: 1.7;
}
.stage-empty .button {
  color: var(--ink);
  background: var(--card);
  border-color: #fffaf1;
  box-shadow: 3px 3px 0 var(--accent);
}
.demo-link { min-height: 38px; margin-top: 8px; color: #e8ddd1; font-size: 11px; }
.pick-badge {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #fffaf1;
  background: rgba(23, 21, 24, .8);
  border: 1px solid rgba(255, 250, 241, .3);
  border-radius: 100px;
  backdrop-filter: blur(5px);
  font-size: 9px;
  pointer-events: none;
}
.pick-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  background: var(--mint);
  border-radius: 50%;
}
.canvas-corner {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 12px;
  color: rgba(255, 250, 241, .32);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  pointer-events: none;
}
.hover-chip {
  position: absolute;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 6px;
  color: #fffaf1;
  background: #1d1a1d;
  border: 1px solid #fffaf1;
  border-radius: 5px;
  box-shadow: 2px 2px 0 var(--accent);
  font-size: 9px;
  line-height: 1;
  pointer-events: none;
  transform: translate(12px, -50%);
  white-space: nowrap;
}
.hover-chip i { width: 14px; height: 14px; border-radius: 3px; background: #000; }
.hover-chip code { color: #fffaf1; }
.drop-overlay {
  position: absolute;
  z-index: 12;
  inset: 8px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(217, 247, 242, .92);
  border: 2px dashed var(--mint-dark);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  pointer-events: none;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}
.stage-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
}
.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--mint);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46, 196, 182, .16);
}
.stage-actions { display: flex; gap: 7px; }
.stage-actions .tool-button { min-width: 64px; background: var(--card-soft); }
.picker-tip {
  margin: 13px 0 0;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--soft-line);
  font-size: 10px;
  line-height: 1.65;
}
.picker-tip span { color: var(--accent-dark); }
#formError { margin-bottom: 0; }

/* Color inspector */
.color-side { display: grid; gap: 18px; min-width: 0; }
.color-side .card + .card { margin-top: 0; }
.current-card { padding: clamp(18px, 2.5vw, 25px); }
.current-card .card-heading h2 { font-size: 27px; }
.current-swatch {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 144px;
  margin-top: 18px;
  overflow: hidden;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: background-color .18s ease;
}
.swatch-grid {
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 16px 16px;
}
.swatch-mark {
  position: relative;
  z-index: 1;
  margin: 0 0 13px 15px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.current-swatch.is-light { color: var(--ink); }
.current-swatch.is-light .swatch-mark { text-shadow: 0 1px 2px rgba(255, 255, 255, .35); }

.value-stack {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--soft-line);
  border-radius: 9px;
  background: #fffdf8;
  overflow: hidden;
}
.value-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 7px 6px 12px;
  border-bottom: 1px solid #eadfce;
}
.value-row:last-child { border-bottom: 0; }
.value-label { color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; }
.value-code, #result {
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.value-row-hex { background: var(--accent-soft); }
.value-row-hex .value-label { color: var(--accent-dark); }
#result { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.value-row .copy-button { min-height: 34px; min-width: 54px; padding: 5px 10px; font-size: 10px; }
.value-row .copy-button:disabled { opacity: .48; }
.pick-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}
.pick-readout strong { color: var(--accent-dark); font-weight: 600; }
.extract-button { margin-top: 16px; min-height: 50px; }
.extract-button b { font-weight: 700; }
.extract-note { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }

/* Palette */
.palette-card, .css-card { padding: clamp(18px, 2.5vw, 25px); }
.palette-card .card-heading, .css-card .card-heading { align-items: flex-start; }
.palette-card h2, .css-card h2 { font-size: 27px; }
.panel-copy { margin: 12px 0 15px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.panel-copy code { color: var(--accent-dark); }
.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.palette-slot {
  min-height: 96px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #f5ecdf;
}
.palette-slot.is-empty {
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 7px, rgba(109, 98, 85, .06) 7px, rgba(109, 98, 85, .06) 8px);
}
.palette-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
  min-height: 96px;
  padding: 8px 7px;
  overflow: hidden;
  color: #fff;
  background: var(--swatch);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 rgba(25, 21, 16, .2);
  cursor: pointer;
  text-align: left;
  transition: transform .14s ease, box-shadow .14s ease;
}
.palette-item:hover { transform: translateY(-2px); box-shadow: 3px 4px 0 rgba(25, 21, 16, .28); }
.palette-item:active { transform: translateY(0); box-shadow: none; }
.palette-item.is-light { color: var(--ink); }
.palette-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, .2));
  pointer-events: none;
}
.palette-item.is-light::after { background: linear-gradient(180deg, transparent 48%, rgba(255, 255, 255, .22)); }
.palette-item strong, .palette-item small, .palette-item em {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.palette-item strong { font-family: var(--font-mono); font-size: 9.5px; line-height: 1.35; }
.palette-item small { opacity: .8; font-family: var(--font-mono); font-size: 8px; line-height: 1.5; }
.palette-item em {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  opacity: .86;
}
.palette-empty {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.palette-empty:empty { display: none; }
.palette-card .premium-note { margin: 13px 0 0; font-size: 10.5px; }
.palette-card .mini-badge { white-space: nowrap; }

/* CSS export */
.css-card code { font-size: .95em; }
#cssOutput {
  width: 100%;
  min-height: 164px;
  margin: 0;
  padding: 12px;
  color: #e9ffe9;
  background: #1e1b1d;
  border: 1.5px solid #1e1b1d;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.65;
  resize: vertical;
}
#cssOutput::placeholder { color: #a899a0; }
#cssOutput:disabled { color: #a899a0; background: #2a2629; opacity: 1; }
.css-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.css-actions .button { flex: 1 1 118px; padding-inline: 10px; }
.css-card .lock-note { margin: 13px 0 0; font-size: 10.5px; }
.privacy-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 13px 0 0;
  padding-top: 11px;
  color: var(--muted);
  border-top: 1px dashed var(--soft-line);
  font-size: 9.5px;
}
.privacy-line span { color: var(--mint-dark); font-size: 7px; }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.quick-facts > div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 1px 7px;
  padding: 12px 13px;
  background: var(--card);
  border: 1px solid var(--soft-line);
  border-radius: 9px;
}
.quick-facts span { grid-row: 1 / 3; align-self: center; color: var(--accent-dark); font-family: var(--font-mono); font-size: 8px; }
.quick-facts strong { font-size: 10.5px; line-height: 1.3; }
.quick-facts small { color: var(--muted); font-size: 8.5px; line-height: 1.4; }

/* Guide, FAQ and unlock */
.guide-shell, .faq-shell { margin-top: 58px; }
.guide-heading { border-bottom-color: #c8b9a5; }
.how-to-grid li > span { background: var(--accent); }
.how-to-grid li:nth-child(2) > span { color: var(--ink); background: var(--gold); }
.how-to-grid li:nth-child(3) > span { color: var(--card); background: var(--mint-dark); }
.how-to-grid li { box-shadow: 4px 4px 0 var(--ink); }
.faq-list summary::after { color: var(--accent-dark); }
.unlock-section { margin-block: 56px; }
.referral-card { box-shadow: 7px 7px 0 var(--accent); }
.premium-map { box-shadow: 6px 6px 0 var(--mint); }
.premium-map .section-index { color: var(--accent-dark); }
.premium-map li span { color: var(--accent-dark); }
.premium-map code { color: var(--accent-dark); }
.footer-brand .color-mark { width: 36px; height: 36px; }

body.is-premium .palette-card .mini-badge { color: var(--card); background: var(--mint-dark); border-color: var(--mint-dark); }
body.is-premium .css-card .premium-chip { background: var(--mint-dark); border-color: var(--mint-dark); }
body.is-premium .css-card { box-shadow: 4px 4px 0 var(--mint); }

@media (max-width: 1060px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr); gap: 40px; }
  .workbench-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .palette-item strong { font-size: 8.5px; }
}

@media (min-width: 1001px) {
  .picker-card { position: sticky; top: 16px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .tone-board { width: min(100%, 480px); transform: rotate(.6deg); }
  .workbench-grid { grid-template-columns: 1fr; }
  .color-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .current-card { grid-row: span 2; }
}

@media (max-width: 760px) {
  .hero { padding-block: 45px 52px; }
  .hero h1 { font-size: clamp(48px, 13.5vw, 72px); }
  .hero-notes { gap: 8px 18px; }
  .workbench-heading, .guide-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .workbench-heading > p, .guide-heading > p { max-width: 100%; margin: 0; text-align: left; }
  .workbench-grid { margin-top: 17px; }
  .color-side { grid-template-columns: 1fr; }
  .current-card { grid-row: auto; }
  .pick-stage { height: clamp(320px, 80vw, 470px); }
  .stage-toolbar { align-items: flex-start; }
  .stage-meta { max-width: 58%; }
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts > div { grid-template-columns: 26px 1fr auto; grid-template-rows: auto; align-items: center; }
  .quick-facts span { grid-row: auto; }
  .quick-facts small { text-align: right; }
  .unlock-section { margin-block: 42px; }
}

@media (max-width: 480px) {
  .shell, .shell.narrow { width: min(100% - 28px, 1180px); }
  .site-header { padding: 16px 0; }
  .header-inner { align-items: flex-start; gap: 12px; }
  .top-nav { max-width: 154px; justify-content: flex-end; gap: 8px 14px; font-size: 10.5px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 8px; }
  .hero h1 { font-size: clamp(44px, 13.6vw, 62px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 9px; }
  .hero-actions .button { width: 100%; }
  .tone-board { padding: 13px; box-shadow: 8px 8px 0 var(--accent), -5px 6px 0 var(--mint); }
  .tone-row { grid-template-columns: 45px 1fr auto; gap: 9px; }
  .tone-row i { width: 45px; height: 42px; }
  .tone-row code { font-size: 9px; }
  .picker-card, .current-card, .palette-card, .css-card { padding: 16px; }
  .pick-stage { height: 330px; }
  .stage-empty { padding: 22px 16px; }
  .stage-empty h3 { font-size: 23px; }
  .stage-empty > p:not(.stage-kicker) { margin-bottom: 16px; }
  .stage-toolbar { flex-direction: column; gap: 8px; }
  .stage-meta { max-width: 100%; }
  .stage-actions { width: 100%; }
  .stage-actions .tool-button { flex: 1; }
  .canvas-corner { display: none; }
  .current-swatch { height: 126px; }
  .value-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 6px; padding-left: 9px; }
  #result { font-size: 19px; }
  .palette-grid { gap: 5px; }
  .palette-item, .palette-slot { min-height: 86px; }
  .palette-item { padding: 6px 5px; }
  .palette-item strong { font-size: 8px; }
  .palette-item small { font-size: 7px; }
  .palette-item em { display: none; }
  .guide-shell, .faq-shell { margin-top: 44px; }
  .how-to-grid li { grid-template-columns: 40px minmax(0, 1fr); gap: 11px; padding: 16px; }
  .how-to-grid li > span { width: 38px; height: 38px; }
  .footer-brand { align-items: flex-start; }
}

@media (max-width: 370px) {
  .top-nav { display: none; }
  .hero h1 { font-size: 43px; }
  .palette-item strong { font-size: 7.5px; }
  .value-row { grid-template-columns: 36px minmax(0, 1fr) 49px; }
  .value-code { font-size: 11px; }
  #result { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .tone-board { transform: none; }
  * { scroll-behavior: auto !important; }
}
