/* Teduh UI, direction "Field guide" (won the /design bracket 3-0, 3-0). Tokens and rules live in design.md. */
@font-face { font-family: 'Fraunces'; src: url('../fonts/Fraunces.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/Figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --paper: #f8f3e8;      /* panels */
  --paper-2: #efe7d6;    /* insets, hover */
  --ink: #23302a;        /* text */
  --muted: #56615a;      /* secondary text, 6.1:1 on paper */
  --line: #d9cfba;       /* hairlines */
  --accent: #2f5d4a;     /* forest: the one accent, 7.4:1 with white */
  --accent-ink: #ffffff;
  --sun: #c9951a;        /* energy only */
  --warn: #9c3b26;       /* missing materials, 6.3:1 on paper */
  --radius: 6px;
  --pill: 999px;
  --shadow: 0 1px 0 rgba(35, 48, 42, .08), 0 10px 30px rgba(35, 48, 42, .16);
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #a8d4e6; color: var(--ink); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; font: 600 32px var(--display); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
a { color: var(--accent); }
.ico svg { display: block; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num, .qty { font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
.btn { min-height: 44px; padding: 0 var(--s4); border-radius: var(--pill); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.btn:hover { background: var(--paper-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #264d3d; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--warn); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn.tiny { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled, .btn.primary:disabled { opacity: 1; background: transparent; color: var(--muted); border: 1px dashed #b9ad94; cursor: not-allowed; }
.btn.wide { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--pill); border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.icon-btn:hover { background: var(--paper-2); }
.input { min-height: 44px; border-radius: var(--radius); border: 1px solid var(--line); padding: 0 var(--s3); font: inherit; background: #fffdf8; color: var(--ink); width: 100%; }
.swatch { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

/* ---------- title ---------- */
.title { position: fixed; inset: 0; display: grid; place-items: center; padding: var(--s4); overflow: auto; background: linear-gradient(180deg, rgba(248, 243, 232, 0) 40%, rgba(35, 48, 42, .25)); }
.title-card { width: min(460px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: var(--s6) var(--s5) var(--s5); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 var(--s2); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.title-name { font: 600 56px/1 var(--display); letter-spacing: -.02em; margin: 0; padding-bottom: var(--s3); border-bottom: 3px double var(--line); }
.title-tag { font: 600 19px/1.35 var(--display); margin: var(--s4) 0 var(--s1); }
.title-sub { color: var(--muted); margin: 0 0 var(--s5); }
.start-form { display: grid; gap: var(--s4); margin-top: var(--s4); }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.colors { display: flex; gap: var(--s2); flex-wrap: wrap; }
.color { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.color.on { box-shadow: 0 0 0 2px var(--ink); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-btn { min-height: 44px; padding: 0 var(--s4); border-radius: var(--pill); border: 1px solid var(--line); background: #fffdf8; font: inherit; cursor: pointer; color: var(--ink); }
.seg-btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.howto { margin-top: var(--s4); color: var(--muted); }
.howto summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.howto ul { margin: var(--s2) 0 0; padding-left: 18px; }
.fine { font-size: 12px; color: var(--muted); margin: var(--s4) 0 0; }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-top { position: absolute; top: var(--s4); left: var(--s4); right: var(--s4); display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s2); pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.status, .wallet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.status { display: flex; flex-direction: column; gap: 6px; padding: var(--s3) 14px; min-width: 230px; }
.status-cell { display: inline-flex; align-items: center; gap: 6px; }
.status-cell.time strong { font: 600 26px/1 var(--display); letter-spacing: -.01em; }
.status-cell.place { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status-cell.place:empty { display: none; }
.meter { width: 120px; height: 6px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--sun); transition: width .4s; }
.energy .ico { color: var(--sun); }
.wallet { display: flex; align-items: center; gap: var(--s2); padding: 10px 14px; }
.wallet strong { font: 600 22px/1 var(--display); }
.goal { position: absolute; left: var(--s4); bottom: var(--s4); width: 320px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: var(--s3) 14px; box-shadow: var(--shadow); font: inherit; color: var(--ink); cursor: pointer; display: grid; gap: 2px; }
.goal:hover { background: #fbf8f0; }
.goal-top { display: flex; justify-content: space-between; align-items: center; }
.goal strong { font: 600 18px/1.25 var(--display); }
.kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.goal-hint { font-size: 13px; color: var(--muted); }
.buffs { position: absolute; top: 84px; right: var(--s4); display: grid; gap: 6px; justify-items: end; }
.chip { background: var(--paper); border: 1px solid var(--line); padding: 4px 12px; border-radius: var(--pill); font-size: 13px; box-shadow: var(--shadow); }
.cam { position: absolute; right: var(--s4); bottom: var(--s4); display: grid; grid-template-columns: repeat(2, 44px); gap: var(--s2); }
.action-btn { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); min-height: 52px; display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s2) 0 22px; border-radius: var(--pill); border: 0; background: var(--ink); color: #fff; font: inherit; box-shadow: var(--shadow); cursor: pointer; max-width: calc(100vw - 32px); }
.action-btn:hover { background: #18221d; }
.action-btn:disabled { background: var(--paper); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.action-text { display: grid; text-align: left; line-height: 1.2; min-width: 0; }
.action-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-text span { font-size: 12px; opacity: .8; }
.action-text span:empty { display: none; }
kbd { font: 600 12px var(--body); border: 1px solid currentColor; border-radius: 4px; padding: 2px 7px; opacity: .75; margin-right: 10px; }
.dock { position: absolute; left: 50%; bottom: var(--s4); transform: translateX(-50%); display: flex; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 10px; box-shadow: var(--shadow); }
.dock-btn { min-width: 64px; min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 2px; border: 0; background: transparent; border-radius: var(--pill); color: var(--ink); font: 600 12px var(--body); cursor: pointer; }
.dock-btn:hover { background: var(--paper-2); }

/* ---------- panels ---------- */
.panel { width: min(600px, calc(100vw - 24px)); max-height: min(82vh, 780px); border: 1px solid var(--line); border-radius: 10px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.panel[data-size="lg"] { width: min(760px, calc(100vw - 24px)); }
.panel[data-size="sm"] { width: min(400px, calc(100vw - 24px)); }
.panel::backdrop { background: rgba(35, 48, 42, .32); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 14px var(--s5) var(--s3); border-bottom: 3px double var(--line); background: var(--paper); }
.panel-head h2 { margin: 0; font: 600 26px/1.15 var(--display); letter-spacing: -.01em; }
.panel-head .icon-btn { box-shadow: none; }
.panel-body { padding: var(--s4) var(--s5) var(--s5); overflow: auto; max-height: calc(min(82vh, 780px) - 72px); }
.rows, .cards, .needs, .plain, .goals { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 52px; }
.row-name { flex: 1; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line); }
.card { border-bottom: 1px solid var(--line); padding: 14px 6px; display: grid; gap: var(--s2); align-content: start; }
.panel[data-size="lg"] .cards .card:nth-child(odd) { border-right: 1px solid var(--line); padding-right: var(--s4); }
.panel[data-size="lg"] .cards .card:nth-child(even) { padding-left: var(--s4); }
.panel:not([data-size="lg"]) .cards, .panel-body > div > .card { border-top: 0; }
.panel-body > div > .card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: var(--s3); }
.card.dim .card-head strong { color: var(--muted); }
.card.focus { background: #f1ead9; }
.card.done .card-head strong { color: var(--accent); }
.card-head { display: flex; align-items: baseline; gap: var(--s2); }
.card-head strong { flex: 1; font-size: 16px; }
.card-head .swatch { align-self: center; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.needs { display: grid; gap: 4px; }
.needs li { display: flex; align-items: center; gap: var(--s2); font-size: 14px; }
.needs li > span:nth-child(2) { flex: 1; }
.needs .have { color: var(--muted); font-variant-numeric: tabular-nums; }
.needs .short .have { color: var(--warn); font-weight: 600; }
.needs .ok .ico-inline { color: var(--accent); }
.meta { font-size: 13px; color: var(--muted); margin: 0; }
.lede { margin: 0 0 var(--s3); font-size: 16px; }
.note { background: var(--paper-2); padding: 10px var(--s3); border-radius: var(--radius); margin: 0 0 var(--s3); display: flex; gap: 6px; align-items: center; }
.ico-inline svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.tabs { display: flex; gap: 0; margin-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.tab { min-height: 44px; padding: 0 var(--s4); border: 0; border-bottom: 3px solid transparent; background: transparent; font: 600 15px var(--body); cursor: pointer; color: var(--muted); margin-bottom: -1px; }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.bar { height: 6px; background: var(--line); overflow: hidden; flex: 1; }
.bar span { display: block; height: 100%; background: var(--accent); }
.meter-row { display: flex; align-items: center; gap: var(--s3); margin: var(--s2) 0; }
.btn-row { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.btn-pair { display: flex; gap: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.goal-item { display: flex; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.goal-item strong { font-weight: 600; }
.goal-item.later { color: var(--muted); }
.goal-item.now strong { font: 600 17px var(--display); }
.goal-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; margin-top: 1px; }
.goal-item.done .goal-mark { background: var(--accent); color: #fff; border-color: var(--accent); }
.goal-item.now .goal-mark { border-color: var(--accent); }
.goal-mark svg { width: 14px; height: 14px; }
.skill .row-name { flex: 0 0 120px; }
.facts { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dd { font: 600 17px var(--display); text-align: right; }
.sub-h { font: 600 18px var(--display); margin: var(--s5) 0 6px; }
.code-area { min-height: 72px; padding: var(--s2); font: 12px/1.4 ui-monospace, Consolas, monospace; resize: vertical; }
.code-big { font: 600 32px var(--display); letter-spacing: .2em; margin: var(--s2) 0; }
.inline-form { display: flex; gap: var(--s2); margin: var(--s2) 0; }
.inline-form .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .1em; }
.check { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s3); min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.empty { color: var(--muted); }
.settings { display: grid; gap: var(--s3); }
.plain li { padding: 4px 0; color: var(--muted); }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: var(--s4); left: 50%; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; pointer-events: none; z-index: 5; width: min(460px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 9px var(--s4); border-radius: var(--pill); font-size: 14px; box-shadow: var(--shadow); transition: opacity .4s, transform .4s; text-align: center; }
.toast.good { background: var(--accent); }
.toast.out { opacity: 0; transform: translateY(-6px); }

/* ---------- fishing ---------- */
.fishing { position: fixed; left: 0; right: 0; bottom: 96px; display: grid; place-items: center; padding: 0 var(--s4); z-index: 4; }
.fish-card { background: var(--paper); border: 1px solid var(--line); padding: var(--s4) var(--s5); border-radius: 10px; box-shadow: var(--shadow); width: min(440px, 100%); }
.fish-card strong { font: 600 22px var(--display); }
.fish-card p { margin: 2px 0 0; }
.fish-track { position: relative; height: 32px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--pill); margin: 14px 0 10px; overflow: hidden; }
.fish-zone { position: absolute; top: 0; bottom: 0; background: #7fa66a; }
.fish-marker { position: absolute; top: 3px; bottom: 3px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.fish-tries { display: flex; gap: 6px; }
.try { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.try.used { background: var(--line); }

/* ---------- build bar ---------- */
.buildbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: var(--s4); width: min(760px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: var(--s3) var(--s4); box-shadow: var(--shadow); display: grid; gap: var(--s2); z-index: 3; }
.build-head { display: grid; gap: 2px; }
.build-head strong { font: 600 20px var(--display); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.chip-btn { min-height: 44px; display: inline-flex; align-items: center; gap: var(--s2); padding: 0 14px; border: 1px solid var(--line); background: #fffdf8; border-radius: var(--pill); font: inherit; white-space: nowrap; cursor: pointer; color: var(--ink); }
.chip-btn.on { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
body:has(.buildbar:not([hidden])) .dock, body:has(.buildbar:not([hidden])) .action-btn, body:has(.buildbar:not([hidden])) .goal { display: none; }

/* ---------- phone ---------- */
@media (max-width: 640px) {
  html, body { font-size: 14px; }
  .hud-top { top: var(--s3); left: var(--s3); right: var(--s3); }
  .status { min-width: 0; padding: var(--s2) var(--s3); gap: 4px; }
  .status-cell.time strong { font-size: 20px; }
  .meter { width: 72px; }
  #energyTrend, .goal-hint, .status-cell.place { display: none; }
  .wallet { padding: var(--s2) var(--s3); }
  .wallet strong { font-size: 18px; }
  .goal { left: var(--s3); right: 64px; bottom: 92px; width: auto; padding: var(--s2) var(--s3); }
  .goal strong { font-size: 16px; }
  .cam { right: var(--s3); bottom: 92px; grid-template-columns: 44px; }
  .cam #zoomIn, .cam #zoomOut { display: none; }
  .action-btn { bottom: 168px; }
  .dock { left: var(--s3); right: var(--s3); transform: none; justify-content: space-between; padding: 4px 6px; }
  .dock-btn { min-width: 0; flex: 1; }
  .buffs { top: 104px; right: var(--s3); }
  .panel, .panel[data-size="lg"], .panel[data-size="sm"] { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .panel-head { padding: var(--s3) var(--s4) 10px; }
  .panel-head h2 { font-size: 22px; }
  .panel-body { padding: var(--s3) var(--s4) var(--s5); max-height: calc(88vh - 66px); }
  .panel[data-size="lg"] .cards .card:nth-child(odd), .panel[data-size="lg"] .cards .card:nth-child(even) { border-right: 0; padding: 12px 2px; }
  .title-name { font-size: 46px; }
  .title-card { padding: var(--s5) var(--s4) var(--s4); }
  .fishing { bottom: 92px; }
  .buildbar { bottom: var(--s3); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* hone round 1 */
.status-cell.time { width: 100%; }
.sun-path { width: 72px; height: 24px; margin-left: auto; overflow: visible; }
.sun-track { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 2 3; }
.sun-horizon { stroke: var(--line); stroke-width: 1; }
.sun-dot { fill: var(--sun); stroke: var(--paper); stroke-width: 1.5; }
.sun-path.night .sun-dot { fill: var(--paper); stroke: var(--ink); }
#panelTitle:focus { outline: none; }
.panel .cards { border-top: 0; }
.card-foot .why { color: var(--warn); }
.needs .have { font-size: 13px; }
body:has(.panel[open]) .dock, body:has(.panel[open]) .goal, body:has(.panel[open]) .action-btn, body:has(.panel[open]) .cam { visibility: hidden; }
@media (hover: none) and (pointer: coarse) {
  .action-btn kbd { display: none; }
  .action-btn { padding: 0 24px; }
}

/* ---------- how-to-play guide ---------- */
.guide { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: var(--s4); overflow: auto; background: rgba(35, 48, 42, .38); }
.guide-card { width: min(560px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: var(--s5); box-shadow: var(--shadow); display: grid; gap: var(--s3); }
.guide-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.guide-head .eyebrow { margin: 0; }
.guide-art { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.guide-art svg { width: 100%; height: auto; display: block; }
.guide-title { font: 600 26px/1.15 var(--display); margin: var(--s2) 0 0; letter-spacing: -.01em; }
.guide-body { margin: 0; color: var(--ink); max-width: 52ch; min-height: 4.4em; }
.guide-dots { display: flex; gap: 6px; }
.guide-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.guide-dots .dot.on { background: var(--accent); width: 22px; border-radius: var(--pill); }
.guide-actions { display: flex; justify-content: space-between; gap: var(--s2); }
.guide-actions .btn.primary { min-width: 9.5rem; }
.howto-btn { margin-top: var(--s3); width: 100%; }

/* ---------- character creator ---------- */
.creator { position: fixed; inset: 0; z-index: 40; background: #e7efe9; }
.creator-shell { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 460px); }
.creator-stage { position: relative; background: radial-gradient(120% 90% at 50% 30%, #f2f6f1 0%, #d9e6de 60%, #c9d9cf 100%); }
.creator-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.creator-canvas:active { cursor: grabbing; }
.creator-views { position: absolute; left: 50%; bottom: var(--s5); transform: translateX(-50%); display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 6px; padding: 6px; background: rgba(248, 243, 232, .92); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--shadow); }
.creator-side { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--paper); border-left: 1px solid var(--line); min-height: 0; }
.creator-head { padding: var(--s5) var(--s5) var(--s3); border-bottom: 1px solid var(--line); }
.creator-head .eyebrow { margin: 0 0 var(--s1); }
.creator-title { font: 600 30px/1.1 var(--display); margin: 0 0 var(--s1); letter-spacing: -.01em; }
.creator-head .muted { margin: 0; font-size: 14px; }
.creator-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.creator-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.creator-tabs .tab { min-height: 48px; border: 0; border-bottom: 3px solid transparent; background: transparent; font: 600 15px var(--body); color: var(--muted); cursor: pointer; }
.creator-tabs .tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.creator-fields { overflow: auto; padding: var(--s4) var(--s5) var(--s5); display: grid; gap: var(--s5); align-content: start; }
.creator-field { display: grid; gap: var(--s2); }
.creator-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.creator-field .seg-btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.creator-field .color { width: 40px; height: 40px; }
.creator-foot { display: flex; justify-content: space-between; gap: var(--s2); padding: var(--s3) var(--s5) var(--s4); border-top: 1px solid var(--line); background: var(--paper); }
.creator-foot .btn.primary { min-width: 9.5rem; }

@media (max-width: 760px) {
  .guide-card { padding: var(--s4); }
  .guide-title { font-size: 22px; }
  .creator-shell { grid-template-columns: 1fr; grid-template-rows: 40vh minmax(0, 1fr); }
  .creator-side { border-left: 0; border-top: 1px solid var(--line); }
  .creator-head { padding: var(--s3) var(--s4) var(--s2); }
  .creator-head .muted { display: none; }
  .creator-title { font-size: 22px; }
  .creator-fields { padding: var(--s3) var(--s4) var(--s4); gap: var(--s4); }
  .creator-views { top: var(--s3); bottom: auto; left: var(--s3); transform: none; flex-direction: column; gap: 4px; padding: 4px; border-radius: 14px; }
  .creator-views .seg-btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .creator-field .seg-btn { min-height: 44px; }
  .creator-field .color { width: 38px; height: 38px; }
  .creator-field .colors { gap: 6px; flex-wrap: wrap; }
  .creator-foot { padding: var(--s2) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); }
}
