/* studio.css — the Canvas board (#/canvas) and the studio (#/canvas/<id>/<step>).
 * Board classes are cv-*, studio classes st-*. Everything reads the shared
 * tokens in base.css; the step colour arrives as --step on .studio.
 */

/* ================================================================ BOARD */
.cv-page { padding-bottom: 8px; }
.cv-steps {
  list-style: none; margin: 0 0 6px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.cv-step { display: flex; gap: clamp(12px, 1.2vw, 20px); align-items: flex-start; padding: clamp(16px, 1.6vw, 26px) clamp(12px, 1.6vw, 28px); border-left: 1px solid var(--hair); }
.cv-step:first-child { border-left: 0; padding-left: 0; }
.cv-step-n {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tone); color: #fff; border: 2px solid var(--btn-line); box-shadow: 3px 3px 0 var(--btn-line);
  font: 900 26px/1 var(--f-head);
}
.cv-step-name { font: 900 clamp(24px, 1.9vw, 32px)/1 var(--f-head); color: var(--ink); margin: 2px 0 6px; }
.cv-step-name::after { content: ""; display: block; width: 36px; height: 4px; background: var(--tone); margin-top: 8px; }
.cv-step-text { margin: 0; font: 16.5px/1.45 var(--f-body); color: var(--ink-2); max-width: 44ch; }

.cv-main { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(24px, 2.6vw, 56px); align-items: start; }
.cv-main.is-new .cv-how { order: -1; }
@media (min-width: 1100px) {
  .cv-main { grid-template-columns: minmax(0, 1fr) clamp(320px, 24vw, 460px); }
  .cv-main.is-new .cv-how { order: 0; }
  .cv-how { border-left: 1px solid var(--hair); padding-left: clamp(20px, 2vw, 40px); }
  .cv-how .cv-steps { grid-template-columns: minmax(0, 1fr); border: 0; }
  .cv-how .cv-step { border-left: 0; padding: 16px 0; border-top: 1px solid var(--hair); }
  .cv-how .cv-step:first-child { border-top: 0; padding-top: 4px; }
}
.cv-sheets {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 15vw, 330px), 1fr));
  gap: clamp(16px, 1.6vw, 28px); align-items: stretch;
}
.cv-new {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 380px; padding: 28px 20px; text-align: center; text-decoration: none; color: var(--ink);
  border: 3px dashed var(--c-purple);
  background-color: color-mix(in srgb, var(--c-purple) 7%, var(--card));
  background-image:
    linear-gradient(color-mix(in srgb, var(--c-purple) 14%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--c-purple) 14%, transparent) 1px, transparent 1px);
  background-size: 28px 28px; background-position: center;
  transition: background-color .15s ease;
}
.cv-new:hover { background-color: color-mix(in srgb, var(--c-purple) 13%, var(--card)); color: var(--ink); }
.cv-new-plus {
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-purple); color: #fff; border: 2px solid var(--btn-line); box-shadow: 5px 5px 0 var(--btn-line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cv-new-plus .icon { width: 52px; height: 52px; }
.cv-new:hover .cv-new-plus { transform: translate(-2px, -2px) rotate(90deg); box-shadow: 7px 7px 0 var(--btn-line); }
.cv-new:active .cv-new-plus { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--btn-line); }
.cv-new-title { font: 900 clamp(30px, 2.4vw, 40px)/1 var(--f-head); }
.cv-new-sub { font: italic 17px/1.35 var(--f-body); color: var(--muted); max-width: 22ch; }

.cv-sheet {
  --tone: var(--c-purple);
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid var(--rule);
  outline: 2px solid transparent; outline-offset: -1px; transition: outline-color .12s;
}
.cv-sheet:hover { outline-color: var(--tone); }
.cv-sheet::before { content: ""; height: 6px; background: var(--tone); border-bottom: 1px solid var(--rule); }
.cv-sheet-thumb { display: block; padding: 14px 14px 0; }
.cv-sheet-thumb .gridthumb { max-width: 100%; }
.cv-ribbon {
  position: absolute; top: 22px; right: -1px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 10px; background: var(--c-green); color: #fff; border: 2px solid var(--btn-line); border-right: 0;
  font: 700 12px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase;
}
.cv-ribbon .icon { width: 14px; height: 14px; }
@supports (color: color(from red srgb-linear r g b)) { .cv-ribbon { color: color(from var(--c-green) var(--on-of)); } }
.cv-sheet-body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.cv-sheet-kicker { margin: 0; font: 700 11.5px/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--tone); color: color-mix(in srgb, var(--tone), var(--tx-mix) var(--tx-amt)); display: flex; align-items: center; gap: 7px; }
.cv-sheet-kicker::before { content: ""; width: 9px; height: 9px; background: currentColor; }
.cv-sheet-title { font: 800 22px/1.12 var(--f-head); overflow-wrap: anywhere; }
.cv-sheet-title a { color: var(--ink); text-decoration: none; }
.cv-sheet-title a:hover { text-decoration: underline; text-decoration-color: var(--tone); text-decoration-thickness: 3px; }
.cv-sheet-meta { margin: 0; font: italic 15px/1.35 var(--f-body); color: var(--muted); }
.cv-meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 10px 0 4px; }
.cv-meter-seg {
  position: relative; height: 9px; overflow: hidden; border-radius: 999px;
  background: var(--paper-3); border: 1.5px solid var(--btn-line);
}
.cv-meter-seg.is-done { background: var(--tone); }
.cv-meter-seg.is-now::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--frac, 0) * 100%); background: var(--tone); }
.cv-sheet-status { margin: 0; font: 600 12.5px/1.3 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cv-sheet-actions { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; }
/* An unsaved sheet (the account's sketch): dashed, like the New grid card it
   came from, until Next puts it on the board. */
.cv-sheet.is-sketch { border: 2px dashed var(--c-purple); }
.cv-sheet.is-sketch::before { background: repeating-linear-gradient(135deg, var(--c-purple) 0 10px, color-mix(in srgb, var(--c-purple) 30%, var(--card)) 10px 20px); }
.cv-ribbon.cv-ribbon-sketch { background: var(--c-yellow); color: var(--ink); }
@supports (color: color(from red srgb-linear r g b)) { .cv-ribbon.cv-ribbon-sketch { color: color(from var(--c-yellow) var(--on-of)); } }
.cv-sheet-note { margin: 4px 0 0; font: italic 14.5px/1.4 var(--f-body); color: var(--muted); }
.cv-spacer { flex: 1; }
/* A guest's board: the ways in under the New grid card and the sketch. */
.cv-signin { margin-top: clamp(22px, 2.4vw, 36px); }
/* The New grid card holds track 1; the empty-board note takes every other
   track, so no blank paper is left beside it however wide the board. (At
   ≥700px the sheets column always has at least two tracks; phones span 1 / -1.) */
.cv-hello { grid-column: 2 / -1; display: flex; }
.cv-hello .empty { flex: 1; }
.cv-hello .empty-art { width: 180px; }

/* =============================================================== STUDIO */
.studio {
  --step: var(--c-purple);
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  background: var(--paper);
}
.studio .appbar-titles { min-width: 0; }
.st-title-text { display: block; overflow: hidden; text-overflow: ellipsis; }

/* save indicator */
.st-save {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1.5px solid var(--hair); border-radius: 999px; background: var(--card);
  font: 600 12px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.st-save .icon { width: 15px; height: 15px; flex: none; }
.st-save-ico { display: inline-flex; }
.st-save[data-state="saved"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--hair)); }
.st-save[data-state="saving"] .icon { animation: cc-turn 1.2s linear infinite; }
/* The same four states as the shared pill (base.css .savestatus), plus the
   studio's own: a redraw kept but not yet applied to the sheet. */
.st-save[data-state="retry"] { color: var(--ink); border-color: var(--rev); background: var(--rev-bg); cursor: pointer; }
.st-save[data-state="offline"] { color: var(--ink); border: 1.5px dashed var(--ink-2); background: var(--paper-2); cursor: pointer; }
.st-save[data-state="error"] { background: var(--c-red); color: #fff; border: 2px solid var(--btn-line); cursor: pointer; }
.st-save[data-state="pending"] { color: var(--ink-2); border: 1.5px dashed var(--c-purple); }
.st-save[role="button"]:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }

/* A redraw kept but never applied, offered back (Carry on / Discard). */
.st-banner-host:empty { display: none; }
.st-banner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  padding: 10px clamp(10px, 1.4vw, 22px);
  background: color-mix(in srgb, var(--c-purple) 10%, var(--card));
  border-bottom: 1px solid var(--rule); border-left: 6px solid var(--c-purple);
}
.st-banner-thumb { flex: none; display: block; width: 54px; }
.st-banner-text { flex: 1 1 260px; min-width: 0; font: 16px/1.4 var(--f-body); color: var(--ink); }
.st-banner-text b { font-weight: 600; }
.st-banner-actions { flex: none; gap: 10px; }

/* ---- the stepper */
.st-stepper {
  flex: none; position: relative; z-index: 5;
  padding: 10px clamp(10px, 1.4vw, 22px) 12px;
  background: var(--paper-2); border-bottom: 1px solid var(--rule);
}
.st-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 22px);
}
.st-step { position: relative; min-width: 0; }
.st-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: calc(-1 * clamp(10px, 1.2vw, 22px) / 2 - 5px);
  width: 10px; height: 10px; border-top: 3px solid var(--muted); border-right: 3px solid var(--muted);
  transform: translateY(-50%) rotate(45deg); opacity: .6; pointer-events: none;
}
.st-step-btn {
  width: 100%; height: 60px; display: flex; align-items: center; gap: 12px;
  padding: 0 14px 0 10px; margin: 0; text-align: left; color: var(--ink);
  background: var(--card); border: 2px solid var(--btn-line); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--btn-line); cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background-color .12s;
}
.st-step-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--btn-line); }
.st-step-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--btn-line); }
.st-step-disc {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--btn-line); background: var(--paper); color: var(--tone);
  font: 800 18px/1 var(--f-grid);
}
.st-step-disc .icon { width: 20px; height: 20px; }
.st-step-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-step-name { font: 700 16px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; }
.st-step-sub { font: italic 14.5px/1.15 var(--f-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-step.is-done .st-step-disc { background: var(--tone); color: #fff; }
.st-step.is-current .st-step-btn { background: var(--tone); color: #fff; box-shadow: 3px 3px 0 var(--btn-line), inset 0 -4px 0 rgba(0,0,0,.18); }
.st-step.is-current .st-step-disc { background: #fff; color: #16140f; }
.st-step.is-current .st-step-sub { color: rgba(255,255,255,.9); }
.st-step.is-disabled .st-step-btn { opacity: .5; box-shadow: none; cursor: not-allowed; transform: none; }
.st-step.is-disabled .st-step-disc { color: var(--muted); }

/* ---- body layouts */
.st-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.st-pane { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.studio-desk .st-body { grid-template-columns: minmax(0, 1fr) clamp(390px, 34vw, 540px); }
.studio-wide .st-body { grid-template-columns: minmax(0, 1fr) clamp(430px, 27vw, 600px) clamp(340px, 22vw, 480px); }
.studio-clue.studio-desk .st-body { grid-template-columns: clamp(330px, 31vw, 430px) minmax(0, 1fr); }
.studio-clue.studio-wide .st-body { grid-template-columns: clamp(360px, 24vw, 480px) minmax(0, 1fr) clamp(380px, 26vw, 540px); }
.studio-publish.studio-desk .st-body, .studio-publish.studio-wide .st-body { grid-template-columns: minmax(0, 1fr) clamp(400px, 30vw, 560px); }
.studio-narrow .st-body { display: block; overflow-y: auto; overscroll-behavior: contain; }
.studio-narrow .st-pane { overflow: visible; }

/* ---- the board pane */
.st-boardpane {
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  padding: clamp(14px, 1.6vw, 30px);
  background-color: var(--paper);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.4px);
  background-size: 18px 18px;
}
.st-boardwrap { flex: 1; min-height: 0; display: grid; place-items: center; }
.st-boardfoot { flex: none; display: flex; flex-direction: column; gap: 10px; }
.st-help { margin: 0; font: italic 15px/1.45 var(--f-body); color: var(--muted); }
.st-help kbd { font-style: normal; font-size: 12px; }

/* ---- grids */
.st-grid {
  --sq: 40px; --n: 11;
  display: grid; grid-template-columns: repeat(var(--n), var(--sq)); grid-auto-rows: var(--sq);
  gap: 1px; width: max-content;
  background: var(--cell-line); border: 3px solid var(--cell-line);
  user-select: none; -webkit-user-select: none; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.st-grid:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 4px; }
.st-cell { position: relative; background: var(--cell); display: grid; place-items: center; overflow: hidden; }
.st-cell.is-block { background: var(--block); }
.st-num {
  position: absolute; top: 1px; left: 2px; pointer-events: none;
  font: 600 max(8px, calc(var(--sq) * .27))/1 var(--f-grid); color: var(--ink-2);
}
.st-ch { font: 700 calc(var(--sq) * .58)/1 var(--f-grid); color: var(--ink); padding-top: calc(var(--sq) * .08); }

/* draw board */
.st-drawgrid .st-cell { cursor: pointer; transition: background-color .08s ease; }
.st-drawgrid .st-cell.is-checked { background: color-mix(in srgb, var(--c-purple) 14%, var(--cell)); }
.st-drawgrid .st-cell.is-bad {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c-red) 34%, var(--cell)) 0 4px, var(--cell) 4px 9px);
}
.st-drawgrid .st-cell.is-bad .st-num { color: var(--bad); font-weight: 800; }
.st-drawgrid .st-cell.is-hover { box-shadow: inset 0 0 0 3px var(--c-purple); }
.st-drawgrid .st-cell.is-block.is-hover { box-shadow: inset 0 0 0 3px var(--c-yellow); }
.st-drawgrid .st-cell.is-partner { outline: 3px dashed var(--c-purple); outline-offset: -5px; }
.st-drawgrid .st-cell.is-block.is-partner { outline-color: var(--c-yellow); }
.st-drawgrid .st-cell.is-partner::after {
  content: ""; position: absolute; width: 28%; height: 28%; border-radius: 50%;
  background: var(--c-purple); opacity: .75;
}
.st-drawgrid .st-cell.is-block.is-partner::after { background: var(--c-yellow); }
.st-drawgrid .st-cell.is-cursor { box-shadow: inset 0 0 0 4px var(--c-yellow), inset 0 0 0 6px var(--btn-line); }

.st-drawstatus {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--card); border: 2px solid var(--btn-line); border-radius: 12px;
  font: 17px/1.35 var(--f-body);
}
.st-drawstatus b { font-family: var(--f-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.st-drawstatus.is-ok { border-color: var(--c-green); box-shadow: 3px 3px 0 var(--c-green); }
.st-drawstatus.is-bad { border-color: var(--c-red); box-shadow: 3px 3px 0 var(--c-red); }
.st-drawstatus.is-ok b { color: var(--ok); }
.st-drawstatus.is-bad b { color: var(--bad); }

.st-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 600 11.5px/1.2 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.st-legend li { display: inline-flex; align-items: center; gap: 7px; }
.st-sw { width: 18px; height: 18px; flex: none; background: var(--cell); border: 1.5px solid var(--cell-line); }
.st-sw-checked { background: color-mix(in srgb, var(--c-purple) 14%, var(--cell)); }
.st-sw-bad { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c-red) 34%, var(--cell)) 0 3px, var(--cell) 3px 6px); }
.st-sw-partner { outline: 2px dashed var(--c-purple); outline-offset: -4px; }

/* marks: ✓ ✗ ! discs used across the studio */
.st-mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-3); color: var(--ink); border: 2px solid var(--btn-line);
  font: 800 14px/1 var(--f-grid);
}
.st-mark .icon { width: 15px; height: 15px; }
.is-ok > .st-mark { background: var(--c-green); color: #fff; }
.is-bad > .st-mark { background: var(--c-red); color: #fff; }
.is-warn > .st-mark { background: var(--c-yellow); color: #16140f; }

/* ---- side panes, cards, foot */
.st-side {
  display: flex; flex-direction: column; gap: clamp(14px, 1.2vw, 20px);
  padding: clamp(14px, 1.3vw, 24px) clamp(14px, 1.3vw, 24px) 0;
  background: var(--paper); border-left: 1px solid var(--rule);
}
.st-side > :last-child { margin-bottom: clamp(14px, 1.3vw, 24px); }
.st-side > .st-foot:last-child { margin-bottom: 0; }
.st-side-3 { background: var(--paper-2); }

.st-card { --tone: var(--step); position: relative; background: var(--card); border: 1px solid var(--rule); min-width: 0; flex: none; }
.st-card::before { content: ""; display: block; height: 6px; background: var(--tone); border-bottom: 1px solid var(--rule); }
.st-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 0; }
.st-card-title { font: 700 15px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; margin: 0; }
.st-card-body { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.st-card-deck { margin: 0; font: italic 16px/1.45 var(--f-body); color: var(--muted); }
.st-card-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  font: 700 11.5px/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid var(--btn-line);
}
.st-card-badge.is-ok { background: var(--c-green); color: #fff; }
.st-card-badge.is-bad { background: var(--c-red); color: #fff; }
.st-card-badge.is-warn { background: var(--c-yellow); color: #16140f; }

.st-foot {
  position: sticky; bottom: 0; z-index: 3; margin-top: auto; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  padding: 14px clamp(14px, 1.3vw, 24px);
  margin-left: calc(-1 * clamp(14px, 1.3vw, 24px)); margin-right: calc(-1 * clamp(14px, 1.3vw, 24px));
  background: var(--card); border-top: 2px solid var(--rule);
  box-shadow: 0 -10px 18px -12px rgba(0,0,0,.25);
}
.st-foot-text { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-foot .btn { flex: none; }
.st-next-why { margin: 0; font: italic 15.5px/1.4 var(--f-body); color: var(--muted); }
.st-next-why.is-ok { color: var(--ok); font-style: normal; font-weight: 500; }
.st-next-why.is-bad { color: var(--bad); font-style: normal; font-weight: 500; }
.st-next-why.st-now { font-style: normal; font-weight: 600; color: var(--ink); }
.st-next-why.st-now.is-ok { color: var(--ok); }
.st-next-why.st-now.is-bad { color: var(--bad); }

/* ---- draw: sheet card */
.st-title-input { font: 700 20px/1.2 var(--f-head); }
.st-sizes { display: flex; width: 100%; }
.st-sizes > button { flex: 1; justify-content: center; padding: 0 8px; min-height: 48px; --tone: var(--c-purple); }
.st-size-n { font: 800 20px/1 var(--f-grid); letter-spacing: 0; }
.st-size-x { font: 600 13px/1 var(--f-grid); letter-spacing: 0; opacity: .7; margin-left: 1px; }
.st-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.st-tools .btn { padding: 0 6px; gap: .35em; }
.st-redo .icon { transform: scaleX(-1); }
.st-facts { margin: 0; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--hair); }
.st-facts > div { padding: 10px 0 0; min-width: 0; }
.st-facts dt { font: 600 11px/1.2 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.st-facts dd { margin: 3px 0 0; font: 900 24px/1 var(--f-head); font-variant-numeric: lining-nums; }

.st-house { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.st-house .loading { padding: 18px 0; grid-column: 1 / -1; }
.st-house-btn {
  display: flex; flex-direction: column; gap: 7px; padding: 8px; margin: 0; cursor: pointer; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--hair); text-align: left;
  transition: border-color .12s, box-shadow .12s, transform .08s;
}
.st-house-btn:hover { border-color: var(--c-purple); box-shadow: 3px 3px 0 var(--c-purple); transform: translate(-1px, -1px); }
.st-house-btn[aria-pressed="true"] { border: 2px solid var(--c-purple); box-shadow: 3px 3px 0 var(--c-purple); background: color-mix(in srgb, var(--c-purple) 10%, var(--card)); }
.st-house-cap { font: 500 11.5px/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-house-cap b { color: var(--ink); font-weight: 700; }

.st-rules { list-style: none; margin: 0; padding: 0; }
.st-rule { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--hair); }
.st-rule:first-child { border-top: 0; padding-top: 0; }
.st-rule-text { font: 16px/1.4 var(--f-body); padding-top: 2px; }
.st-rule.is-bad .st-rule-text > span:first-child { font-weight: 600; }
.st-rule-why { display: block; font: italic 14.5px/1.35 var(--f-body); color: var(--muted); margin-top: 2px; }
.st-rule.is-bad .st-rule-why { color: var(--bad); }
.st-tag {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 999px; vertical-align: 2px;
  font: 700 10px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; border: 1.5px solid var(--btn-line);
}
.st-tag-must { background: var(--c-red); color: #fff; }
.st-tag-taste { background: var(--c-yellow); color: #16140f; }

/* ---- fill */
.st-letters[role="application"] .st-cell:not(.is-block) { cursor: pointer; }
.st-letters .st-cell.is-word { background: var(--hl); }
.st-letters .st-cell.is-cursor { background: var(--hl-cursor); }
.st-letters .st-cell.is-ok { background: var(--ok-bg); }
.st-letters .st-cell.is-ok .st-ch { color: var(--ok-ink); }
.st-letters .st-cell.is-ok.is-word { background: color-mix(in srgb, var(--hl) 55%, var(--ok-bg)); }
.st-letters .st-cell.is-bad { background: color-mix(in srgb, var(--c-red) 20%, var(--cell)); }

.st-fillprogress { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.st-fillprogress-text { font: 600 13px/1.2 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.st-fillprogress-text b { font: 800 18px/1 var(--f-grid); letter-spacing: 0; color: var(--ink); }

.st-entry { --tone: var(--c-blue); }
.st-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 0; }
.st-entry-kicker { margin: 0 0 6px; font: 700 12.5px/1.2 var(--f-label); letter-spacing: .15em; text-transform: uppercase; color: var(--c-blue); display: flex; align-items: center; gap: 8px; }
.st-entry-kicker::before { content: ""; width: 10px; height: 10px; background: currentColor; }
.st-entry-title { font: 900 clamp(26px, 2.1vw, 38px)/1.02 var(--f-head); letter-spacing: .02em; overflow-wrap: anywhere; }
.st-entry-nav { display: flex; gap: 8px; flex: none; }
.st-tiles { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 18px 0; }
.st-tile {
  position: relative; width: clamp(34px, 2.6vw, 46px); aspect-ratio: 1; padding: 0; margin: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--cell); color: var(--ink); border: 2px solid var(--btn-line); border-radius: 7px;
  box-shadow: 2px 2px 0 var(--btn-line);
  font: 800 clamp(18px, 1.5vw, 24px)/1 var(--f-grid);
}
.st-tile.is-checked::before { content: ""; position: absolute; top: 3px; left: 50%; width: 40%; height: 3px; transform: translateX(-50%); background: var(--c-blue); border-radius: 2px; }
.st-tile.is-set { background: color-mix(in srgb, var(--c-blue) 12%, var(--cell)); }
.st-tile.is-cursor { background: var(--hl-cursor); }
.st-entry-status { margin: 12px 18px 0; font: italic 16px/1.4 var(--f-body); color: var(--muted); }
.st-entry-status.is-done { color: var(--ok); font-style: normal; font-weight: 600; }
.st-entry-status.is-warn { color: var(--rev); font-style: normal; font-weight: 500; }
.st-entry-sec { padding: 16px 18px 0; display: flex; flex-direction: column; gap: 8px; }
.st-sub { margin: 0; font: 700 12px/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.st-sugg { min-height: 40px; }
.st-sugg-wait, .st-sugg-note { margin: 0; font: italic 15px/1.4 var(--f-body); color: var(--muted); }
.st-sugg-count { margin: 0 0 8px; font: italic 14.5px/1.3 var(--f-body); color: var(--muted); }
.st-sugg-none { margin: 0; padding: 10px 12px; font: 15.5px/1.4 var(--f-body); background: color-mix(in srgb, var(--c-red) 10%, var(--card)); border-left: 4px solid var(--c-red); }
.st-chips { gap: 7px 8px; max-height: 236px; overflow: auto; padding: 2px 4px 6px 2px; }
.st-sugg-chip { font-family: var(--f-grid); font-weight: 700; letter-spacing: .1em; height: 32px; }
.st-sugg-chip:hover { background: var(--c-blue); color: #fff; }
.st-answer-row { display: flex; gap: 10px; align-items: stretch; }
.st-answer-row .input { flex: 1; min-width: 0; }
.st-answer-row .btn { height: auto; min-height: 44px; }
.st-crossings { display: flex; flex-wrap: wrap; gap: 8px; }
.st-cross {
  display: grid; grid-template-columns: auto auto; column-gap: 10px; row-gap: 2px; align-items: baseline;
  padding: 6px 12px 7px; margin: 0; cursor: pointer; text-align: left; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--btn-line); border-radius: 10px; box-shadow: 2px 2px 0 var(--btn-line);
}
.st-cross:hover { background: var(--paper-2); }
.st-cross-name { font: 700 12px/1.2 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--c-blue); }
.st-cross-at { font: italic 13px/1.2 var(--f-body); color: var(--muted); justify-self: end; }
.st-cross-pat { grid-column: 1 / -1; font: 700 15px/1.2 var(--f-grid); letter-spacing: .16em; }
.st-cross.is-done .st-cross-pat { color: var(--ok-ink); }
.st-entry-actions { padding: 18px; gap: 10px; }

/* entry lists */
.st-listcard .st-card-body { padding-top: 10px; }
.st-elists { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 18px; }
.st-ecol { min-width: 0; }
.st-ecol-head { margin: 0 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--rule); font: 700 14px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.st-elist { list-style: none; margin: 0; padding: 0; }
.st-eitem {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 38px;
  padding: 6px 8px; margin: 0; cursor: pointer; text-align: left; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--hair);
}
.st-eitem:hover { background: var(--paper-2); }
.st-eitem.is-current { background: var(--hl); box-shadow: inset 5px 0 0 var(--step); }
.st-enum-n { flex: none; min-width: 1.9em; font: 800 14px/1 var(--f-grid); color: var(--ink-2); }
.st-epat { flex: 1; min-width: 0; font: 700 14.5px/1.2 var(--f-grid); letter-spacing: .16em; overflow-wrap: anywhere; }
.st-elen { flex: none; font: 600 12.5px/1 var(--f-grid); color: var(--muted); }
.st-emark {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 800 14px/1 var(--f-grid); color: var(--muted);
}
.st-emark .icon { width: 13px; height: 13px; }
.st-eitem.is-done .st-emark { background: var(--c-blue); color: #fff; border: 1.5px solid var(--btn-line); }
.st-eitem.is-done .st-epat { color: var(--ink); }
.st-eitem.is-ok { background: color-mix(in srgb, var(--ok-bg) 75%, transparent); }
.st-eitem.is-ok.is-current { background: color-mix(in srgb, var(--hl) 60%, var(--ok-bg)); }
.st-eitem.is-ok .st-emark { background: var(--c-green); color: #fff; border: 1.5px solid var(--btn-line); }
.st-eitem.is-bad .st-emark { background: var(--c-red); color: #fff; border: 1.5px solid var(--btn-line); }
.st-eitem.is-ok .st-eans { color: var(--ok-ink); }
.st-eclue { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-eans { font: 700 13px/1.2 var(--f-grid); letter-spacing: .12em; }
.st-etext { font: italic 15px/1.3 var(--f-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-eitem.is-unfilled .st-eans { color: var(--muted); }

/* ---- clue */
.st-cluegridpane { gap: 12px; }
.st-cluegridpane .st-boardwrap { flex: 0 0 auto; height: min(40vh, 30vw); min-height: 220px; }
.st-cluelist { flex: 1; min-height: 0; overflow: auto; background: var(--card); border: 1px solid var(--rule); padding: 10px 12px; }
.st-cluelist .st-elists { grid-template-columns: minmax(0, 1fr); }

.st-formpane {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(14px, 1.6vw, 30px) clamp(14px, 1.8vw, 36px) 0;
  background: var(--paper-2); border-left: 1px solid var(--rule);
}
.st-formpane > .st-foot { margin-left: calc(-1 * clamp(14px, 1.8vw, 36px)); margin-right: calc(-1 * clamp(14px, 1.8vw, 36px)); padding-left: clamp(14px, 1.8vw, 36px); padding-right: clamp(14px, 1.8vw, 36px); }
.studio-wide .st-formpane { padding-bottom: clamp(14px, 1.6vw, 30px); }
.st-form {
  --dev: var(--c-blue); --accent: var(--c-orange);
  width: 100%; max-width: 1180px; margin: 0 auto; flex: none;
  background: var(--card); border: 1px solid var(--rule); box-shadow: 6px 6px 0 var(--btn-line);
}
.st-form::before { content: ""; display: block; height: 8px; background: var(--c-orange); border-bottom: 1px solid var(--rule); }
.st-form-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px clamp(16px, 1.8vw, 28px) 16px; border-bottom: 1px solid var(--rule);
}
.st-form-titles { min-width: 0; }
.st-form-kicker { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font: 700 13px/1.2 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--c-orange); }
.st-form-kicker::before { content: ""; width: 11px; height: 11px; background: currentColor; }
.st-form-answer { font: 900 clamp(30px, 2.8vw, 50px)/1 var(--f-head); letter-spacing: .04em; overflow-wrap: anywhere; }
.st-form-enum { font: 600 .46em/1 var(--f-grid); color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.st-form-body { padding: 0 clamp(16px, 1.8vw, 28px) 10px; }
.st-form-body > .empty { margin: 22px 0 16px; }
.st-fsec { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.st-fsec:last-child { border-bottom: 0; }
.st-fsec-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 14px/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.st-fsec-head label { cursor: pointer; }
.st-fsec-n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-orange); color: #fff; border: 2px solid var(--btn-line); font: 800 14px/1 var(--f-grid); letter-spacing: 0;
}
.st-fsec-body { display: flex; flex-direction: column; gap: 12px; }
.st-clue-input { font: italic 500 clamp(20px, 1.55vw, 27px)/1.35 var(--f-body); min-height: 0; resize: none; padding: 12px 14px; }
.st-clue-previewrow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.st-mini { font: 600 11px/1.2 var(--f-label); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.st-clue-preview { margin: 0; font: 19px/1.45 var(--f-body); flex: 1; min-width: 0; }
.st-clue-enum { font-family: var(--f-body); color: var(--ink-2); }

.st-words { display: flex; flex-wrap: wrap; gap: 7px; }
.st-word {
  margin: 0; padding: 5px 11px; cursor: pointer; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--btn-line); border-radius: 8px; box-shadow: 2px 2px 0 var(--btn-line);
  font: 17.5px/1.25 var(--f-body);
  transition: transform .08s, box-shadow .08s, background-color .12s;
}
.st-word:hover { background: var(--paper-2); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--btn-line); }
.st-word.is-on { background: var(--c-orange); color: #fff; text-decoration: underline 2px; text-underline-offset: 4px; }
.st-words-empty { margin: 0; font-style: italic; }
.st-defwhere { margin: 0; font: italic 15.5px/1.4 var(--f-body); color: var(--muted); }
.st-defwhere.is-ok { color: var(--ok); font-style: normal; font-weight: 500; }
.st-defwhere.is-bad { color: var(--bad); font-style: normal; font-weight: 500; }
.st-note { margin: 0; font: 17px/1.45 var(--f-body); padding: 10px 14px; background: var(--paper-2); border-left: 4px solid var(--c-orange); }

.st-row { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.st-input-row { display: flex; gap: 8px; align-items: stretch; }
.st-input-row .input { flex: 1; min-width: 0; }
.st-input-row .btn { height: auto; min-height: 44px; }

.st-devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
.st-device {
  --dev: var(--c-blue);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  min-height: 62px; padding: 9px 12px 10px 14px; margin: 0; cursor: pointer; text-align: left; color: var(--ink);
  background: var(--card); border: 2px solid var(--btn-line); border-left-width: 9px; border-left-color: var(--dev);
  border-radius: 10px; box-shadow: 2px 2px 0 var(--btn-line);
  transition: transform .08s, box-shadow .08s, background-color .12s;
}
.st-device:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--btn-line); background: color-mix(in srgb, var(--dev) 9%, var(--card)); }
.st-device-eg { font: 800 13px/1 var(--f-grid); letter-spacing: .06em; color: var(--dev); white-space: nowrap; }
.st-device-name { font: 600 13.5px/1.15 var(--f-label); letter-spacing: .06em; text-transform: uppercase; }
.st-device.is-on {
  background: var(--dev); color: #fff; border-left-color: var(--btn-line);
  box-shadow: 3px 3px 0 var(--btn-line), inset 0 -3px 0 rgba(0,0,0,.18);
}
.st-device.is-on .st-device-eg { color: rgba(255,255,255,.88); }
.st-device.is-on[data-tone="yellow"] { color: #16140f; }
.st-device.is-on[data-tone="yellow"] .st-device-eg { color: rgba(22,20,15,.75); }
.st-device-blurb { margin: 0; font: italic 16.5px/1.45 var(--f-body); color: var(--ink-2); }

.st-fields { display: flex; flex-direction: column; gap: 14px; }
.st-fields-lede { margin: 0; font: italic 16px/1.4 var(--f-body); color: var(--muted); }
.st-pieces { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.st-piece {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px; background: var(--paper); border: 1.5px solid var(--hair); border-left: 5px solid var(--c-blue);
}
.st-piece-n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-blue); color: #fff; border: 2px solid var(--btn-line); font: 800 14px/1 var(--f-grid);
}
.st-piece-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-piece-kind { max-width: 340px; }
.st-piece .st-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.st-piece-tools { display: flex; gap: 6px; }
.st-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.st-box { margin: 0; padding: 8px 14px 14px; border: 1.5px solid var(--hair); background: var(--paper); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-box legend { padding: 0 6px; font: 700 12px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--c-purple); }
.st-nudge { display: inline-flex; align-items: center; gap: 12px; }
.st-nudge-val { min-width: 2.2ch; text-align: center; font: 800 26px/1 var(--f-grid); }
.st-switch { padding: 4px 0; }

.st-working {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 12px 14px; margin-top: 4px;
  background: var(--paper-2); border-left: 5px solid var(--hair);
}
.st-working.is-ok { border-left-color: var(--c-green); background: color-mix(in srgb, var(--ok-bg) 65%, var(--card)); }
.st-working.is-bad { border-left-color: var(--c-red); background: color-mix(in srgb, var(--c-red) 8%, var(--card)); }
.st-working .muted { font: italic 15.5px/1.4 var(--f-body); }
.st-lt {
  display: inline-block; padding: 4px 9px; border-radius: 6px;
  font: 800 16px/1.2 var(--f-grid); letter-spacing: .14em; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--btn-line); box-shadow: 1.5px 1.5px 0 var(--btn-line);
}
.st-lt.is-ok { background: var(--c-green); color: #fff; }
.st-lt.is-bad { background: var(--c-red); color: #fff; }
.st-lt.is-inner { background: var(--c-purple); color: #fff; }
.st-lt mark { background: var(--c-yellow); color: #16140f; padding: 0 1px; }
.st-lt s { color: var(--bad); text-decoration-thickness: 2px; }
.st-op { font: 800 18px/1 var(--f-grid); color: var(--muted); }
.st-working-note { font: italic 15.5px/1.35 var(--f-body); color: var(--ink-2); }

/* the verdict */
.st-verdict-host { flex: none; width: 100%; max-width: 1180px; margin: 0 auto; }
.st-verdict { background: var(--card); border: 2px solid var(--btn-line); box-shadow: 5px 5px 0 var(--btn-line); }
.st-verdict-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--paper-2); border-bottom: 2px solid var(--btn-line); }
.st-verdict.is-ok .st-verdict-head { background: var(--c-green); color: #fff; }
.st-verdict.is-bad .st-verdict-head { background: var(--c-red); color: #fff; }
.st-verdict-mark {
  flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); color: var(--muted); border: 2px solid var(--btn-line);
}
.st-verdict-mark .icon { width: 26px; height: 26px; }
.st-verdict.is-ok .st-verdict-mark { background: #fff; color: #138a4b; }
.st-verdict.is-bad .st-verdict-mark { background: #fff; color: #c8102e; }
.st-verdict.is-ok .st-verdict-mark { animation: cc-stamp .45s cubic-bezier(.2,.9,.3,1.25) both; }
.st-verdict-title { font: 900 clamp(22px, 1.8vw, 30px)/1.05 var(--f-head); }
.st-verdict-sub { margin: 4px 0 0; font: italic 16px/1.35 var(--f-body); opacity: .92; }
.st-issues { list-style: none; margin: 0; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.st-issues li { display: flex; gap: 10px; align-items: flex-start; font: 16.5px/1.45 var(--f-body); }
.st-issues .st-mark { width: 24px; height: 24px; margin-top: 1px; }
.st-issues li.is-bad { color: var(--ink); }
.st-howit { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.st-verdict .parse { --accent: var(--c-orange); }

/* ---- publish */
.st-proofpane { padding: clamp(14px, 1.8vw, 36px); background: var(--paper-2); }
.st-proof {
  position: relative; max-width: 1500px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--rule); box-shadow: 6px 6px 0 var(--btn-line);
  padding: clamp(18px, 2vw, 36px);
}
.st-proof-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 24px;
  padding-bottom: 14px; margin-bottom: 20px; border-bottom: 4px double var(--rule);
}
.st-proof-head .kicker { grid-column: 1 / -1; margin: 0; }
.st-proof-title { font: 900 clamp(34px, 3.2vw, 60px)/1 var(--f-head); overflow-wrap: anywhere; }
.st-proof-switch { padding: 0; }
.st-proof-body { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.2fr); gap: clamp(18px, 2.4vw, 44px); align-items: start; }
.st-proofgrid { display: grid; place-items: start center; width: 100%; aspect-ratio: 1; }
.st-proofclues { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 28px; }
.st-proof-colhead { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--rule); font: 700 15px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.st-proof-list { list-style: none; margin: 0; padding: 0; }
.st-proof-clue { display: flex; gap: 10px; padding: 5px 0; font: 17px/1.4 var(--f-body); border-bottom: 1px solid var(--hair); }
.st-proof-n { flex: none; min-width: 1.8em; font: 800 15px/1.5 var(--f-grid); }
.st-proof-enum { color: var(--ink-2); white-space: nowrap; }
.st-proof-ans { font: 700 13.5px/1 var(--f-grid); letter-spacing: .1em; color: var(--ok-ink); background: var(--ok-bg); padding: 2px 6px; border-radius: 4px; margin-left: 4px; white-space: nowrap; }
.st-proof-clue.is-bad .st-proof-n { color: var(--bad); }
.st-proof-why { display: block; margin-top: 2px; font: italic 14.5px/1.35 var(--f-body); color: var(--bad); }
.st-stamp {
  position: absolute; bottom: clamp(8px, 1vw, 16px); left: clamp(24px, 3vw, 60px); pointer-events: none;
  padding: 8px 20px; border: 5px double var(--c-red); border-radius: 8px;
  font: 700 clamp(22px, 2.2vw, 36px)/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--c-red);
  transform: rotate(-9deg); opacity: 0; background: color-mix(in srgb, var(--card) 70%, transparent);
}
.st-proof.is-published .st-stamp { opacity: .92; }

.st-auditpane { background: var(--paper); }
.st-audit { --tone: var(--c-green); }
.st-audit-head { padding-bottom: 4px; }
.st-audit-head .kicker { margin-bottom: 4px; }
.st-audit-title { font: 900 clamp(26px, 2.2vw, 38px)/1.02 var(--f-head); }
.st-checks { list-style: none; margin: 0; padding: 6px 18px 4px; }
.st-check { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--hair); }
.st-check:first-child { border-top: 0; }
.st-check-mark {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; border: 2px solid var(--btn-line);
}
.st-check-mark .icon { width: 17px; height: 17px; }
.st-check.is-ok .st-check-mark { background: var(--c-green); }
.st-check.is-bad .st-check-mark { background: var(--c-red); }
.st-check-text { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.st-check-text b { font: 700 18px/1.2 var(--f-body); }
.st-check-note { font: italic 15px/1.35 var(--f-body); color: var(--muted); }
.st-check.is-bad .st-check-note { color: var(--bad); font-style: normal; }
.st-check-items { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0 0 0 46px; display: flex; flex-direction: column; gap: 8px; }
.st-check-items > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.st-check-slot { font: 700 12px/1.2 var(--f-label); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.st-check-why { font: 15px/1.35 var(--f-body); color: var(--ink-2); min-width: 0; }
.st-pubbox { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 20px; border-top: 2px solid var(--rule); }
.st-publish-btn { width: 100%; }
.st-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 22px 24px; }
.st-done-art { width: min(260px, 70%); aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--rule); background: var(--plate-bg); margin-bottom: 6px; }
.st-done-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-done .kicker { margin: 0; }
.st-done-title { font: 900 clamp(32px, 2.8vw, 48px)/1 var(--f-head); }
.st-done-deck { margin: 0; font: italic 18px/1.45 var(--f-body); color: var(--ink-2); max-width: 36ch; }
.st-done-actions { justify-content: center; margin: 8px 0 4px; }
.st-dialog-actions { margin-top: 18px; justify-content: flex-end; }

/* ============================================================ responsive */
@media (max-width: 1499px) {
  .st-step-btn { height: 56px; }
}
@media (max-width: 1099px) {
  .cv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .cv-step:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .studio-narrow .st-boardpane { overflow: visible; padding: 14px; }
  .studio-narrow .st-boardwrap { flex: none; }
  .studio-narrow .st-side, .studio-narrow .st-formpane { border-left: 0; border-top: 1px solid var(--rule); }
  .studio-narrow .st-cluegridpane .st-boardwrap { height: auto; min-height: 0; }
  .studio-narrow .st-cluelist { max-height: 42vh; }
  .studio-narrow .st-foot { position: sticky; bottom: 0; }
  .st-proof-body { grid-template-columns: minmax(0, 1fr); }
  .st-proofgrid { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 699px) {
  .cv-steps { grid-template-columns: minmax(0, 1fr); }
  .cv-step { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--hair); }
  .cv-step:first-child { border-top: 0; }
  .cv-step-n { width: 42px; height: 42px; font-size: 21px; }
  .cv-sheets { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .cv-new { min-height: 250px; grid-column: 1 / -1; }
  .cv-new-plus { width: 80px; height: 80px; }
  .cv-new-plus .icon { width: 40px; height: 40px; }
  .cv-hello { grid-column: 1 / -1; }
  .cv-sheet-title { font-size: 19px; }
  .cv-sheet-actions { flex-wrap: wrap; gap: 8px; }

  .studio .appbar { gap: 8px; }
  .studio .appbar-left { display: none; }
  .st-save { padding: 0 8px; }
  .st-save .st-save-text { display: none; }
  .st-save[data-state="error"] .st-save-text { display: inline; }
  .st-solve .btn-label { display: none; }
  .st-solve { width: 32px; padding: 0; }
  .st-stepper { padding: 8px 10px; }
  .st-steps { gap: 8px; }
  .st-step:not(:last-child)::after { display: none; }
  .st-step-btn { height: 48px; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 2px; border-radius: 10px; }
  .st-step-disc { width: 24px; height: 24px; font-size: 13px; }
  .st-step-disc .icon { width: 14px; height: 14px; }
  .st-step-name { font-size: 11.5px; letter-spacing: .08em; }
  .st-step-sub { display: none; }
  .st-side { padding: 14px 12px 0; }
  .st-foot { margin-left: -12px; margin-right: -12px; padding: 12px; }
  .st-foot .btn-lg { width: 100%; }
  .st-formpane { padding: 14px 10px 0; }
  .st-formpane > .st-foot { margin-left: -10px; margin-right: -10px; padding-left: 12px; padding-right: 12px; }
  .st-form { box-shadow: 3px 3px 0 var(--btn-line); }
  .st-form-head { padding: 14px; }
  .st-form-body { padding: 0 14px 8px; }
  .st-devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-piece { grid-template-columns: minmax(0, 1fr); }
  .st-piece-n { display: none; }
  .st-piece-tools { justify-content: flex-end; }
  .st-tiles { gap: 4px; }
  .st-tile { width: clamp(26px, 8.4vw, 38px); font-size: 17px; border-radius: 6px; box-shadow: 1.5px 1.5px 0 var(--btn-line); }
  .st-legend { gap: 6px 12px; }
  .st-proofpane { padding: 12px 10px; }
  .st-proof { padding: 16px 14px; box-shadow: 3px 3px 0 var(--btn-line); }
  .st-proof-head { grid-template-columns: minmax(0, 1fr); }
  .st-stamp { top: auto; right: auto; bottom: 10px; left: 14px; font-size: 18px; padding: 5px 10px; }
  .st-check-items { padding-left: 0; }
  .st-check-items > li { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .st-check-items > li .btn .btn-label { display: none; }
  .st-check-items > li .btn { width: 32px; padding: 0; }
}

/* review / repeat marks in the fill list, used words in suggestions */
.st-eitem.is-review .st-emark { background: var(--c-yellow); color: #16140f; border: 1.5px solid var(--btn-line); }
.st-sugg-chip.is-used { opacity: .5; text-decoration: line-through; text-decoration-thickness: 2px; box-shadow: none; }
.st-sugg-chip.is-used:hover { opacity: .8; }

/* worked example (clue step, wide) */
.st-verdict-host { display: flex; flex-direction: column; gap: 18px; }
.st-example .st-card-head { align-items: baseline; }
.st-example-kind { font: 700 11.5px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--tone); }
.st-example-clue { margin: 0; font: italic 20px/1.4 var(--f-body); padding: 10px 14px; background: var(--paper-2); border-left: 4px solid var(--tone); }
.st-example-ans { margin: 0; display: flex; align-items: center; gap: 10px; }
.st-example-how { margin: 0; font: 16.5px/1.5 var(--f-body); color: var(--ink-2); }

/* device mix (publish) */
.st-mixhost { display: contents; }
.st-mixbar { display: flex; height: 22px; border: 2px solid var(--btn-line); border-radius: 999px; overflow: hidden; box-shadow: 2px 2px 0 var(--btn-line); }
.st-mixseg { min-width: 6px; border-right: 2px solid var(--btn-line); }
.st-mixseg:last-child { border-right: 0; }
.st-mixlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 16px; }
.st-mixlist li { display: flex; align-items: center; gap: 9px; font: 16px/1.3 var(--f-body); }
.st-mixsw { width: 14px; height: 14px; flex: none; border: 1.5px solid var(--btn-line); border-radius: 3px; }
.st-mixname { flex: 1; min-width: 0; }
.st-mixn { font: 800 16px/1 var(--f-grid); }
.st-mixhost > .st-card { margin-bottom: clamp(14px, 1.3vw, 24px); }
.st-cluelistpane { padding: 14px 10px 24px; background: var(--paper); border-top: 1px solid var(--rule); }
.st-cluelist-title { margin: 0 0 10px; }
.studio-narrow .st-cluelistpane .st-cluelist { max-height: none; }
.st-check.is-wait .st-check-mark { background: var(--paper-3); color: var(--muted); font: 800 16px/1 var(--f-grid); }
.st-proof-clue.is-bad .st-proof-text > i { color: var(--bad); }
