:root {
  --bg: #14110d;
  --surface: #f3efe4;
  --white: #ffffff;
  --text: #1c1712;
  --ink: #f6f1e8;
  --muted: #5c5348;
  --primary: #ff3b1f;
  --primary-dark: #8d1d0c;
  --accent: #c8bfb2;
  --line: #e0d6c8;
  --veil: rgba(20, 17, 13, .72);
  --veil-light: rgba(255, 255, 255, .9);
  --shadow: 0 8px 24px rgba(20, 17, 13, .12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-18: 18px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --page: 1120px;
}
html { background: var(--surface); }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
}
button, input, select { font: inherit; }
.skip {
  position: absolute;
  left: var(--space-12);
  top: calc(var(--space-48) * -1);
  background: var(--ink);
  color: var(--text);
  padding: var(--space-8) var(--space-12);
  z-index: 50;
}
.skip:focus { top: var(--space-8); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  min-height: 52px;
  padding: 10px 20px;
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mark-swatch {
  width: var(--space-14);
  height: var(--space-14);
  background: var(--white);
  box-shadow: var(--space-6) var(--space-6) 0 var(--primary);
}
.mark { flex: 0 0 auto; }
.mast {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  margin: 0;
  margin-left: auto;
}
.mast a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.mast a:hover { color: var(--primary-dark); }
.mast a[aria-current="page"] {
  color: var(--primary-dark);
  background: var(--white);
  border-color: var(--line);
}
.ruler { height: 0; }
#main { background: var(--surface); }
.tool-surface {
  position: relative;
  background: var(--white);
}
.screen-title {
  position: absolute;
  top: var(--space-14);
  left: var(--space-14);
  z-index: 2;
  margin: 0;
  padding: var(--space-6) 11px;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.stage[data-field-tone="light"] .screen-title {
  color: var(--text);
  background: var(--veil-light);
  box-shadow: var(--shadow);
}
.stage[data-field-tone="dark"] .screen-title {
  color: var(--ink);
  background: var(--veil);
  box-shadow: var(--shadow);
}
.stage.is-live .screen-title { opacity: 0; }
.stage {
  position: relative;
  height: min(78dvh, 680px);
  min-height: min(62dvh, 480px);
  background: transparent;
}
.stage.is-live .cta,
.stage.is-live .hint {
  opacity: 0;
  pointer-events: none;
}
.field {
  position: absolute;
  inset: 0;
  cursor: default;
}
@media (hover: hover) and (pointer: fine) {
  .field { cursor: pointer; }
}
.cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 15px 22px;
  min-height: 52px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-15);
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.stage[data-field-tone="light"] .cta {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--veil-light);
}
.stage[data-field-tone="dark"] .cta {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--veil);
}
.stage.is-live .cta { display: none; }
.hint {
  position: absolute;
  top: var(--space-14);
  right: var(--space-14);
  left: auto;
  z-index: 2;
  margin: 0;
  max-width: min(20rem, 46vw);
  padding: 7px 11px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.35;
  border-radius: var(--radius-sm);
}
.stage[data-field-tone="light"] .hint {
  color: var(--text);
  background: var(--veil-light);
}
.stage[data-field-tone="dark"] .hint {
  color: var(--ink);
  background: var(--veil);
}
.esc-badge {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  padding: var(--space-6) var(--space-12);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-12);
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.stage[data-field-tone="light"] .esc-badge {
  color: var(--text);
  background: var(--veil-light);
  border: 1px solid var(--line);
}
.stage[data-field-tone="dark"] .esc-badge {
  color: var(--ink);
  background: var(--veil);
  border: 1px solid var(--accent);
}
.stage.is-live .esc-badge { display: none; }
.stage:not(.is-live) .esc-badge { display: none; }
.edge-bright {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  padding: 10px var(--space-8);
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.stage[data-field-tone="light"] .edge-bright {
  background: var(--veil-light);
  border: 1px solid var(--line);
}
.stage[data-field-tone="dark"] .edge-bright {
  background: var(--veil);
  border: 1px solid var(--accent);
}
.stage.is-live .edge-bright,
.stage.is-live.is-quiet .edge-bright:not([hidden]) {
  display: none;
  opacity: 0;
  pointer-events: none;
}
.edge-bright-label {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-12);
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  align-items: center;
}
.stage[data-field-tone="light"] .edge-bright-label { color: var(--text); }
.stage[data-field-tone="dark"] .edge-bright-label { color: var(--ink); }
.edge-bright input[type="range"] {
  width: 120px;
  accent-color: var(--primary);
  transform: rotate(-90deg);
}
.dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-18);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.dock > * { pointer-events: auto; }
.dock-pill {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.stage[data-field-tone="light"] .dock-pill {
  background: var(--veil-light);
  border: 1px solid var(--line);
}
.stage[data-field-tone="dark"] .dock-pill {
  background: var(--veil);
  border: 1px solid var(--accent);
}
.dock-go {
  border: 0;
  margin: 0;
  padding: 0 22px;
  min-height: var(--space-48);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-14);
  font-weight: 700;
  cursor: pointer;
  background: var(--primary);
  color: var(--bg);
}
.stage .dock-pill:not(:has(.dock-more-btn)) {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.stage .dock-pill:not(:has(.dock-more-btn)) .dock-go {
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}
.dock-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  border: 0;
  margin: 0;
  padding: 0 var(--space-16);
  min-height: var(--space-48);
  min-width: var(--space-48);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-13);
  font-weight: 700;
  cursor: pointer;
  background: transparent;
}
.stage[data-field-tone="light"] .dock-more-btn { color: var(--text); }
.stage[data-field-tone="dark"] .dock-more-btn { color: var(--ink); }
.dock-more-btn[aria-expanded="true"] { background: var(--veil-light); }
.dock-more-glyph {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--fs-18);
  line-height: 1;
}
.stage[data-field-tone="light"] .dock-more-glyph { background: var(--line); }
.stage[data-field-tone="dark"] .dock-more-glyph { background: var(--accent); }
.dock-more-label {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .dock-more-label { display: none; }
  .dock-more-btn { padding: 0 var(--space-14); }
}
.dock-sheet {
  width: min(24rem, calc(100vw - 24px));
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.stage[data-field-tone="light"] .dock-sheet {
  background: var(--veil-light);
  border: 1px solid var(--line);
  color: var(--text);
}
.stage[data-field-tone="dark"] .dock-sheet {
  background: var(--veil);
  border: 1px solid var(--accent);
  color: var(--ink);
}
.dock-sheet[hidden] { display: none; }
.swatches { display: flex; flex-wrap: wrap; gap: var(--space-6); width: 100%; }
.swatches button {
  min-width: 52px;
  min-height: 44px;
  border: 1px solid var(--accent);
  padding: var(--space-8) var(--space-12);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-12);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.stage[data-field-tone="light"] .swatches button[aria-pressed="true"] {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}
.stage[data-field-tone="dark"] .swatches button[aria-pressed="true"] {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.dock-sheet button[data-act="png"],
.dock-sheet button[data-act="awake"] {
  min-height: 44px;
  padding: var(--space-8) var(--space-12);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-13);
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
}
.stage[data-field-tone="light"] .dock-sheet button[data-act="png"],
.stage[data-field-tone="light"] .dock-sheet button[data-act="awake"] {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--accent);
}
.stage[data-field-tone="dark"] .dock-sheet button[data-act="png"],
.stage[data-field-tone="dark"] .dock-sheet button[data-act="awake"] {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--accent);
}
.meter, .hexbox, .sizebox {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.meter input[type="range"] { width: 148px; accent-color: var(--primary); }
.hexbox input, .sizebox select {
  min-height: 44px;
  padding: var(--space-8) var(--space-12);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-14);
  font-weight: 700;
  text-transform: none;
  border-radius: var(--radius);
}
.stage[data-field-tone="light"] .hexbox input,
.stage[data-field-tone="light"] .sizebox select {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--accent);
}
.stage[data-field-tone="dark"] .hexbox input,
.stage[data-field-tone="dark"] .sizebox select {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--accent);
}
.readout, .note {
  flex-basis: 100%;
  margin: 0;
  padding: var(--space-4) 0 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.4;
}
.stage[data-field-tone="dark"] .readout { color: var(--ink); }
.stage[data-field-tone="light"] .readout { color: var(--text); }
.note { color: var(--primary); }
.note:empty { display: none; }
.stage:fullscreen,
.stage:-webkit-full-screen,
.stage.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.stage.is-live .stage-copy,
.stage.is-live .screen-title,
.stage.is-live .stage-lede,
.stage.is-live .cta,
.stage.is-live .hint,
.stage.is-live .esc-badge,
.stage.is-live .dock,
.stage.is-live .dock-pill,
.stage.is-live .dock-sheet,
.stage.is-live .edge-bright {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}
html.screen-open, html.screen-open body { overflow: hidden; }
.link-hub {
  margin: 0;
  padding: 28px 20px var(--space-32);
  background: var(--surface);
  color: var(--text);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.link-hub-title {
  margin: 0 0 var(--space-6);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 22ch;
}
.link-hub-lede {
  margin: 0 0 var(--space-18);
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.link-hub-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-12);
}
.link-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 88px;
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.link-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.link-card[aria-current="page"] {
  border-color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.link-card-swatch {
  flex: 0 0 20px;
  min-height: 100%;
  border-right: 1px solid var(--line);
}
.link-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-12) var(--space-14) var(--space-12) var(--space-12);
  min-width: 0;
}
.link-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.link-card-desc {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.35;
  color: var(--muted);
}
.sheet {
  background: var(--surface);
  color: var(--text);
  padding: 36px 20px 80px;
  margin: 0;
}
.link-hub + .sheet { padding-top: 28px; }
.sheet-plain { min-height: 50vh; }
.lede, .sheet p, .sheet li {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 40rem;
}
.lede { font-size: 1.35rem; line-height: 1.4; margin-top: 0; }
.sheet h1 {
  margin: 0 0 0.4em;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
  max-width: 12ch;
}
.sheet h2 {
  margin: 2.2rem 0 0.5rem;
  font-size: 1.7rem;
  line-height: 1.2;
  max-width: 22ch;
}
.sheet h3 { margin: 1.5rem 0 0.3rem; font-size: 1.2rem; line-height: 1.3; }
.sheet a { color: var(--primary-dark); }
.sheet ul, .sheet ol { padding-left: 1.2rem; }
.shareline { margin-top: var(--space-32); }
.shareline button {
  min-height: 44px;
  background: var(--text);
  color: var(--ink);
  border: 0;
  padding: var(--space-8) var(--space-14);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: var(--fs-13);
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
[data-gf-share-msg]:empty { display: none; }
.colophon {
  padding: 36px 20px 80px;
  background: var(--surface);
  color: var(--text);
  border-top: 1px solid var(--line);
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.6;
}
.colophon p,
.colophon nav { max-width: 40rem; }
.colophon a { color: var(--primary-dark); }
.colophon nav.legal { margin: 10px 0 var(--space-16); }
.colophon nav.legal a { margin-right: var(--space-16); }
.langs-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-8);
}
.langs-foot a {
  color: var(--text);
  text-decoration: none;
  margin-right: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  min-height: 44px;
  padding: var(--space-8) var(--space-12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.langs-foot a[aria-current="page"] {
  color: var(--primary-dark);
  border-color: var(--primary);
}
@media (max-width: 559px) {
  .langs-foot { display: grid; grid-template-columns: 1fr 1fr; }
  .colophon nav.legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  .colophon nav.legal a {
    margin-right: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; row-gap: 0; }
  .mast {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .mast a { flex: 0 0 auto; padding: 0 10px; }
  .stage { min-height: 58dvh; height: min(70dvh, 560px); }
  .screen-title { max-width: 58%; }
  .hint {
    top: auto;
    right: 12px;
    bottom: 78px;
    left: 12px;
    max-width: none;
    text-align: center;
  }
  .meter input[type="range"] { width: 100%; }
}
@media (min-width: 800px) {
  .sheet { padding-top: var(--space-64); padding-bottom: 96px; }
  .link-hub { padding-top: 36px; padding-bottom: 40px; }
  .colophon { padding-top: 48px; padding-bottom: 96px; }
  .topbar,
  .sheet,
  .colophon,
  main > .ways {
    padding-left: max(32px, calc((100% - var(--page)) / 2));
    padding-right: max(32px, calc((100% - var(--page)) / 2));
  }
  .screen-title {
    top: 24px;
    left: max(32px, calc((100% - var(--page)) / 2));
    max-width: 20rem;
    font-size: 1.65rem;
  }
  .hint {
    top: 78px;
    right: auto;
    left: max(32px, calc((100% - var(--page)) / 2));
    bottom: auto;
    max-width: 28rem;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta, .edge-bright, .dock-pill, .hint { transition: none; }
}
.ways {
  margin: 0;
  background: var(--surface);
  color: var(--text);
}
main > .ways { padding: 36px 20px 0; }
@media (min-width: 800px) {
  main > .ways {
    padding-top: 48px;
    padding-left: max(32px, calc((100% - var(--page)) / 2));
    padding-right: max(32px, calc((100% - var(--page)) / 2));
  }
}
.sheet .ways { padding: 2.2rem 0 0; }
.ways + .sheet { padding-top: var(--space-32); }
.ways-group { max-width: none; }
.ways-group + .ways-group { margin-top: 2.2rem; }
.ways-title {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 22ch;
}
.ways-lede {
  margin: 0 0 var(--space-18);
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
}
.color-links-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 560px) {
  .color-links-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 800px) {
  .color-links-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .color-links-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.color-link {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  min-height: 48px;
  padding: var(--space-8) var(--space-12);
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.color-link:hover { border-color: var(--primary); }
.color-link-swatch {
  width: var(--space-16);
  height: var(--space-16);
  flex: 0 0 var(--space-16);
  border: 1px solid var(--line);
}
.color-link[aria-current="page"] {
  border-color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.stage-copy {
  position: absolute;
  z-index: 2;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  width: min(40rem, calc(100% - 32px));
  text-align: center;
  pointer-events: none;
}
.stage-copy .screen-title {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.05;
}
.stage-lede {
  margin: 14px auto 0;
  max-width: 36rem;
  font-size: 1.2rem;
  line-height: 1.45;
}
.stage-copy .hint {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  width: auto;
  max-width: 32rem;
  margin: 12px auto 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.stage[data-field-tone="light"] .stage-copy .screen-title,
.stage[data-field-tone="light"] .stage-lede,
.stage[data-field-tone="light"] .stage-copy .hint {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}
.stage[data-field-tone="dark"] .stage-copy .screen-title,
.stage[data-field-tone="dark"] .stage-lede,
.stage[data-field-tone="dark"] .stage-copy .hint {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.stage:has(.stage-copy) .cta { top: 64%; }
.tool-bar.dock-sheet {
  position: static;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 14px 20px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--surface);
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
}
.tool-bar.dock-sheet[hidden] { display: none; }
.stage.is-live ~ .tool-bar { display: none !important; }
.tool-bar .meter,
.tool-bar .hexbox,
.tool-bar .sizebox { color: var(--muted); min-width: 0; }
.tool-bar .meter { flex: 1 1 200px; }
.tool-bar .meter input[type="range"] { width: 100%; }
.tool-bar .hexbox,
.tool-bar .sizebox { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tool-bar .bar-label { color: var(--muted); }
.tool-bar .swatch-toggle,
.tool-bar .swatch,
.tool-bar .size-presets button,
.tool-bar .size-custom input,
.tool-bar button[data-act="png"] {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 44px;
}
.tool-bar .swatch-toggle,
.tool-bar .swatch,
.tool-bar .size-presets button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
@media (min-width: 800px) {
  .color-card { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.tool-bar .swatch-chip {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid var(--line);
}
.color-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(320px, 100%);
  margin-top: 8px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.color-card[hidden] { display: none; }
.picker-sv,
.picker-hue {
  position: relative;
  width: 100%;
  touch-action: none;
  cursor: crosshair;
}
.picker-sv { height: 160px; }
.picker-hue { height: 16px; }
.picker-sv canvas,
.picker-hue canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius-sm);
}
.picker-knob {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.picker-hex {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}
.picker-hex input {
  width: 8.5rem;
  min-height: 44px;
  padding: 0 12px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-transform: none;
}
.picker-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-dot {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.swatch-dot[aria-pressed="true"] {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (min-width: 800px) {
  .color-card { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.tool-bar .swatch { justify-content: flex-start; text-align: left; }
.tool-bar .swatch[aria-pressed="true"],
.tool-bar .size-presets button[aria-pressed="true"] {
  border-color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.tool-bar .size-presets,
.tool-bar .size-custom { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-bar .size-custom label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}
.tool-bar .size-custom input { width: 7rem; padding: 0 12px; font: inherit; font-weight: 600; }
.tool-bar .readout,
.tool-bar .note { color: var(--muted); }
@media (max-width: 720px) {
  .tool-bar .meter,
  .tool-bar .hexbox,
  .tool-bar .sizebox { flex: 1 1 100%; }
}
@media (min-width: 800px) {
  .tool-bar.dock-sheet {
    padding-left: max(32px, calc((100% - var(--page)) / 2));
    padding-right: max(32px, calc((100% - var(--page)) / 2));
  }
}
.prose p,
.prose li,
.prose h2,
.prose h3,
.prose .shareline {
  max-width: none;
}
@media (min-width: 800px) {
  .sheet:has(.prose) .prose {
    max-width: var(--page);
    margin-left: 0;
    margin-right: 0;
  }
}
.tool-surface {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 8px;
  background: var(--surface);
}
.tool-surface .stage {
  box-sizing: border-box;
  height: min(62dvh, 520px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.tool-surface .stage.is-live,
.tool-surface .stage.is-expanded,
.tool-surface .stage:fullscreen,
.tool-surface .stage:-webkit-full-screen {
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
}
.tool-bar.dock-sheet {
  box-sizing: border-box;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: auto;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.tool-bar .sizebox,
.tool-bar .hexbox {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.tool-bar .bar-label {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}
.tool-bar .size-custom { width: 100%; }
.tool-bar .size-custom label { flex: 1 1 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.tool-bar .size-custom input { width: 100%; }
.tool-bar .size-presets button {
  flex: 0 0 auto;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 13px;
}
.hexbox { position: relative; }
.hex-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
}
.color-well {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
}
.color-well .swatch-chip {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.hex-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.hex-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
}
.color-card {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 6;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.color-card[hidden] { display: none; }
.picker-sv { height: 168px; border-radius: 0; }
.picker-sv canvas { border-radius: 0; }
.picker-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 4px;
}
.picker-drop {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.picker-preview {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.picker-tools .picker-hue { flex: 1; height: 12px; }
.picker-tools .picker-hue canvas { border-radius: var(--radius-pill); }
.picker-rgb {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 12px 12px;
}
.picker-rgb label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.picker-rgb input {
  width: 100%;
  min-height: 40px;
  padding: 0 4px;
  text-align: center;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
}
.tool-bar button.png-go {
  width: 100%;
  min-height: 48px;
  background: var(--primary);
  color: var(--bg);
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.tool-bar .readout { display: none; }
.tool-bar.dock-sheet { gap: 0; flex-wrap: nowrap; }
.tool-bar .sizebox,
.tool-bar .hexbox { flex: 0 0 auto; }
.tool-bar .sizebox {
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.tool-bar .hexbox {
  gap: 14px;
  margin-top: 18px;
  position: static;
}
.tool-bar .size-presets { gap: 10px; }
.tool-bar button.png-go { margin-top: 18px; }
.color-card {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  margin: 4px 0 0;
  z-index: auto;
}
.picker-sv { height: 148px; }
@media (min-width: 800px) {
  .tool-surface {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    padding: 28px max(32px, calc((100% - var(--page)) / 2)) 8px;
  }
  .tool-surface .stage {
    width: 100%;
    height: min(46dvh, 440px);
    min-height: 380px;
  }
  .tool-bar.dock-sheet {
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 28px;
    padding: 20px 24px;
  }
  .tool-bar .sizebox {
    flex: 1 1 auto;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .tool-bar .hexbox {
    box-sizing: border-box;
    flex: 0 0 340px;
    width: 340px;
    margin-top: 0;
    padding-left: 28px;
    border-left: 1px solid var(--line);
  }
  .tool-bar button.png-go {
    width: auto;
    min-width: 168px;
    margin: 0;
    align-self: end;
  }
}
.tool-bar,
.tool-bar * {
  box-sizing: border-box;
}
.tool-bar .size-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
}
.tool-bar .size-custom label,
.tool-bar .hex-field {
  min-width: 0;
}
.tool-bar .size-custom input,
.hex-field input {
  width: 100%;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
}
.color-well {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}
.hex-row { align-items: flex-end; }
.tool-bar .size-presets { gap: 12px; }
.tool-bar .size-presets button {
  min-height: 44px;
}
.tool-bar .size-presets button[aria-pressed="true"] {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--primary);
}
@media (min-width: 800px) {
  .tool-bar.dock-sheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) max-content;
    column-gap: 32px;
    row-gap: 16px;
    align-items: start;
    padding: 20px 24px;
  }
  .tool-bar .sizebox,
  .tool-bar .hexbox {
    display: contents;
  }
  .tool-bar .bar-label {
    grid-column: 1;
    grid-row: 1;
  }
  .tool-bar .size-custom,
  .tool-bar .hex-row,
  .tool-bar button.png-go {
    grid-row: 2;
    align-self: end;
  }
  .tool-bar .size-custom { grid-column: 1; }
  .tool-bar .hex-row { grid-column: 2; }
  .tool-bar button.png-go {
    grid-column: 3;
    height: 44px;
    min-height: 44px;
  }
  .tool-bar .size-presets {
    grid-column: 1;
    grid-row: 3;
  }
  .tool-bar .color-card {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    margin: 0;
  }
  .tool-bar .hexbox {
    width: auto;
    margin: 0;
    padding-left: 0;
    border-left: 0;
  }
  .tool-bar .note:not(:empty) {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}
