/* Approved pro instruction layout, shared by every light palette. */
@font-face { font-family: "Inter"; src: url("./fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: block; }
/* Palette tokens are installed by theme.js from palettes.js, not duplicated in CSS. */
:root {
  --font: "Inter", Arial, sans-serif;
  --box-radius: 4px;
  --panel-radius: 4px;
  --shadow: none;
  --num-size: 84px;
  --num-weight: 600;
  --halo: none;
}
body { font-variant-numeric: tabular-nums; }
canvas#view { background: var(--canvas); }
.deco { display: none; }
button { min-height: 44px; }
button:focus-visible, .progress .bar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#context { position: fixed; inset: 0 0 auto; height: 56px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; background: var(--context); color: var(--on-context); }
#context .context-title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#context .context-progress { font-size: 13px; font-weight: 500; white-space: nowrap; }
#callout { top: 76px; left: 20px; max-width: min(560px, calc(100vw - 40px)); }
#callout .num { letter-spacing: -.05em; color: var(--accent-text); }
#callout .box { border-width: 1px; padding: 10px 12px; }
#callout .boxlabel { display: block; font-size: 12px; font-weight: 600; color: var(--sub); margin-bottom: 6px; }
#callout .title { font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; margin-top: 12px; }
#callout .hint { font-size: 16px; font-weight: 400; line-height: 1.5; }
#callout .chapter { font-weight: 600; font-size: 12px; color: var(--muted); }
#callout .auto { color: var(--sub); font-weight: 500; }
.pcell .n { font-weight: 600; }
.pcell .nm { font-weight: 500; font-size: 11px; text-transform: none; letter-spacing: 0; line-height: 1.3; }
.pcell.dig .n { color: var(--ink); }
#newLegend { display: flex; align-items: center; gap: 6px; margin: 8px 0 0 4px; font-size: 12px; font-weight: 500; color: var(--sub); }
#newLegend::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--cell-highlight); }
#inset { top: 184px; right: 20px; border-width: 1px; border-radius: 4px; padding: 8px; }
#inset figcaption { font-weight: 600; color: var(--sub); letter-spacing: .03em; }
.compass { border: 1px solid var(--ink); border-radius: 2px; font-weight: 600; }
.compass::before { border-bottom-color: var(--ink); }
#tools { top: 76px; right: 20px; gap: 8px; }
#tools button { border-width: 1px; border-radius: 4px; font-weight: 500; padding: 8px 12px; }
#tools .seg button { margin-left: -1px; border-radius: 0; }
#tools .seg button:first-child { margin-left: 0; border-radius: 4px 0 0 4px; }
#tools .seg button:last-child { border-radius: 0 4px 4px 0; }
#layerbar { border-width: 1px; border-radius: 4px; }
#layerbar button { border-radius: 4px; }
#layerbar #layerLabel { font-weight: 500; }
#cover .card, #bom .sheet { border-width: 1px; border-radius: 4px; padding: 20px; }
#cover .kicker { color: var(--sub); font-weight: 600; }
#cover h1 { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
#cover .sub { font-size: 16px; font-weight: 400; line-height: 1.5; }
#cover .totals { font-weight: 600; }
#cover .legal { font-size: 11px; line-height: 1.5; }
.go { border: 1px solid var(--btn-edge); border-radius: 4px; background: var(--accent); box-shadow: none; font-weight: 600; }
.go:active { transform: none; box-shadow: none; }
#bom { top: 72px; }
#bom h2 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
#bom .totals { font-size: 16px; font-weight: 400; line-height: 1.5; }
#bom .grid .kind { color: var(--muted); font-weight: 600; }
#bom .pcell { border-width: 1px; border-radius: 4px; background: var(--box); }
#bom .pcell .n { font-size: 20px; }
#bom .pcell .nm { font-size: 12px; }
#nav { gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.navbtn { border-width: 1px; border-radius: 4px; font-weight: 500; box-shadow: none; }
.navbtn.primary { box-shadow: none; }
.progress .label { font-weight: 500; }
.progress .bar { gap: 3px; align-items: center; }
.progress .bar button { flex: 1; height: 24px; min-height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; position: relative; }
.progress .bar button::after { content: ""; position: absolute; inset: 8px 0; background: var(--bar); border-radius: 1px; }
.progress .bar button.done::after { background: var(--bar-done); }
.progress .bar button.cur::after, .progress .bar button.end.cur::after { background: var(--accent); }
.progress .bar button.end { flex: .8; }
#texnote { border: 1px solid var(--panel-edge); border-radius: 4px; font-weight: 500; }
@media (max-width: 640px) {
  :root { --num-size: 58px; }
  #context { padding: 0 12px; gap: 8px; }
  #context .context-title { font-size: 14px; }
  #context .context-progress { font-size: 12px; }
  #callout { top: 72px; left: 12px; max-width: calc(100vw - 24px); }
  #callout .row { gap: 8px; }
  #callout .box { padding: 8px; }
  #callout .title { font-size: 18px; margin-top: 8px; }
  #callout .hint { font-size: 14px; line-height: 1.45; }
  #callout .chapter { font-size: 11px; }
  #callout .boxlabel { font-size: 11px; margin-bottom: 4px; }
  .pcell .nm { font-size: 10px; }
  #newLegend { font-size: 11px; margin-top: 6px; }
  #tools { top: auto; left: 12px; right: 12px; bottom: 92px; gap: 6px; }
  #tools button { padding: 7px 10px; font-size: 12px; }
  #inset { top: auto; right: 12px; bottom: 194px; width: 132px; padding: 5px; }
  #inset figcaption { font-size: 10px; }
  #layerbar { bottom: 194px; }
  #cover { bottom: 194px; }
  #cover h1 { font-size: 25px; }
  #cover .mini { margin-bottom: 10px; }
  #bom { inset: 68px 0 192px; padding: 8px 12px; }
  #bom .sheet { padding: 16px 12px; }
  #bom h2 { font-size: 22px; }
  #bom .totals { font-size: 14px; }
  #bom .grid { gap: 8px; }
  #bom .pcell .nm { font-size: 11px; }
  #nav { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .progress .bar button { height: 44px; min-height: 44px; }
  .progress .bar button::after { inset: 18px 0; }
  .progress .label { font-size: 12px; margin-bottom: 0; }
  #texnote { bottom: 194px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
