/* Make it Dead: the Blockstep look (docs/design/blockstep-style.md), as in Sign On: white cards with a thin, even border
   all the way round and a soft shadow, pill buttons, deep navy words, one blue for the main action, Plus Jakarta Sans for
   headings and Inter for everything else. Light only. Phone first: the site on top, the bench (your hands, the job, the
   drawing) below; side by side on a wide screen. Never a coloured stripe down one side of anything. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --ink: #0e1b33;
  --ink-2: #45526e;
  --muted: #6b7690;
  --line: #e3e8f2;
  --brand: #2563eb;
  --brand-ink: #1d4ed8;
  --brand-soft: #e8f0ff;
  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #a16207;
  --warn-soft: #fef6e0;
  --bad: #b91c1c;
  --bad-soft: #fdecec;
  --shadow: 0 1px 2px rgba(14, 27, 51, 0.05), 0 10px 30px rgba(14, 27, 51, 0.09);
  --shadow-sm: 0 1px 2px rgba(14, 27, 51, 0.06), 0 4px 12px rgba(14, 27, 51, 0.07);
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Script", "Comic Sans MS", cursive;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}
button,
input {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}

/* ---- Layout ---- */
.app {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(240px, 42dvh) minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .app {
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr) clamp(400px, 34vw, 500px);
  }
  .bench {
    border-top: 0 !important;
    border-left: 1px solid var(--line);
  }
}
.site {
  position: relative;
  overflow: hidden;
  background: #eef3fa;
  min-height: 0;
  min-width: 0;
}
.site-canvas {
  position: absolute;
  inset: 0;
  display: block;
  cursor: grab;
}
.site-canvas:active {
  cursor: grabbing;
}
.site-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}
#photo-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
}
.bench {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.bench-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 14px 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  overscroll-behavior: contain;
}

/* ---- Pills and chips ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pill small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.chip.bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.chip.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.draft {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid #f3e2b3;
}

/* ---- The HUD over the site ---- */
.hud {
  position: absolute;
  inset: 10px 10px auto 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  z-index: 4;
}
.hud > * {
  pointer-events: auto;
}
.hud-right {
  display: flex;
  gap: 6px;
  align-items: center;
}
.mycard {
  cursor: pointer;
  padding: 3px 12px 3px 3px;
  text-align: left;
  line-height: 1.15;
}
.mycard img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--brand-soft);
}
.mycard b {
  display: block;
  font-size: 12.5px;
}
.mycard small {
  display: block;
}
.clock b {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.clock .sun {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px #fde9b8;
}
.clock.late .sun {
  background: #dc2626;
  box-shadow: 0 0 0 3px #fecaca;
  animation: pulse 1s ease infinite;
}
.clock.late b {
  color: var(--bad);
}
.clock.soon b {
  color: var(--warn);
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.15);
  }
}
.jobdots {
  display: inline-flex;
  gap: 4px;
}
.jobdots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  border: 1px solid #c9d3e3;
}
.jobdots i.now {
  background: var(--brand);
  border-color: var(--brand);
}
.jobdots i.ok {
  background: var(--ok);
  border-color: var(--ok);
}
.jobdots i.bad {
  background: #f59e0b;
  border-color: #d97706;
}
.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  cursor: pointer;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.site-foot {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}
.site-foot > * {
  pointer-events: auto;
}
.looks {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  padding: 2px;
}
.looks::-webkit-scrollbar {
  display: none;
}
.look {
  flex: none;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.look:hover {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.site .draft-tag {
  position: absolute;
  right: 10px;
  top: 54px;
  z-index: 2;
  font-size: 11px;
}

/* ---- Things over the 3D view: bubbles, the inspect card, the radio, the flash, the Ready stamp ---- */
.bubble {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 220px;
  padding: 6px 11px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  will-change: transform;
  animation: bubble-in 0.25s ease;
}
.bubble.shout {
  border: 2px solid #dc2626;
  color: var(--bad);
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  animation: shout 0.35s ease infinite alternate;
}
@keyframes bubble-in {
  from {
    opacity: 0;
    margin-top: 6px;
  }
}
@keyframes shout {
  to {
    background: #fff4f4;
  }
}
.inspect {
  position: absolute;
  left: 10px;
  bottom: 54px;
  z-index: 4;
  display: grid;
  gap: 2px;
  width: min(320px, calc(100% - 20px));
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.4;
  animation: bubble-in 0.2s ease;
}
.inspect b {
  font-family: var(--display);
  font-size: 15px;
}
.inspect span {
  color: var(--ink-2);
}
.inspect em {
  font-style: normal;
  font-weight: 700;
  color: var(--brand-ink);
  font-size: 12.5px;
}
.inspect.found {
  border-color: #b9cdf8;
}
.radio {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: min(440px, calc(100% - 20px));
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  line-height: 1.4;
  animation: radio-in 0.3s ease;
}
.radio svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--brand);
  margin-top: 1px;
}
.radio b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes radio-in {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
}
.flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.flash.on {
  animation: flash 0.5s ease-out;
}
@keyframes flash {
  0% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}
.ready-stamp {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 6;
  transform: translate(-50%, -50%) rotate(-6deg);
  padding: 10px 22px;
  border: 4px solid var(--ok);
  border-radius: 14px;
  color: var(--ok);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 5vw, 34px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: none;
  animation: stamp 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.ready-stamp.retry {
  color: var(--warn);
  border-color: #d97706;
}
@keyframes stamp {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-6deg) scale(1.8);
  }
}

/* ---- The bench: tabs, paper, the device, the tester's chips, the coach, the actions ---- */
.tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  position: relative;
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
  color: var(--brand-ink);
}
.paper {
  display: grid;
  gap: 10px;
  min-width: 0;
  animation: slide-in 0.3s ease;
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.doc {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  min-width: 0;
  display: grid;
  gap: 8px;
}
.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.org {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
}
.doc-note {
  color: var(--muted);
  font-size: 12px;
}
.job-task {
  font-size: 18px;
  line-height: 1.25;
}
.crew-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.crew-face {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
}
.crew-face img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--brand-soft);
}
.crew-note {
  color: var(--muted);
  font-size: 12.5px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  background: #fff;
  min-width: 0;
}
.panel.soft {
  background: var(--bg-soft);
}
.panel h4 {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.small {
  font-size: 12.5px;
}
.muted {
  color: var(--muted);
}
.steps,
.sources,
.isolations,
.also {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.steps li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 4px 6px;
  border-radius: 10px;
}
.steps li.now {
  background: var(--brand-soft);
}
.steps li b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.steps li small,
.sources small {
  color: var(--muted);
  font-size: 12px;
}
.steps .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c9d3e3;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.steps li.done .dot {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.steps li.done b {
  color: var(--ink-2);
}
.steps .dot svg {
  width: 14px;
  height: 14px;
}
.sources li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.sources li.found {
  animation: found 0.9s ease;
}
@keyframes found {
  0% {
    background: #dbeafe;
  }
  100% {
    background: transparent;
  }
}
.sources b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.src-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.src-ico svg {
  width: 16px;
  height: 16px;
}
.src-ico.elec {
  background: #fef3c7;
  color: #b45309;
}
.src-ico.water {
  background: #dbeafe;
  color: #1d4ed8;
}
.isolations li {
  display: grid;
  gap: 4px;
}
.isolations li.empty {
  color: var(--muted);
  font-size: 13px;
}
.iso-open {
  display: flex;
  gap: 8px;
  align-items: baseline;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.iso-open b {
  font-size: 14px;
}
.iso-open small {
  color: var(--muted);
  font-size: 12px;
}
.chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mini {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}
.mini.ghost {
  background: #fff;
  color: var(--brand-ink);
  border-color: var(--line);
}
.also li b {
  font-size: 13.5px;
}
.also li span {
  color: var(--ink-2);
  font-size: 13px;
}
.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.sheet-table th,
.sheet-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.sheet-table th {
  color: var(--muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dlink {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand-ink);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: var(--hand);
  font-size: 18px;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.row.wrap {
  flex-wrap: wrap;
}
.row.spread {
  justify-content: space-between;
}
.row .dlink {
  font-family: var(--body);
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
}
.sld-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.sld line,
.sld path,
.sld rect,
.sld circle {
  stroke: #0e1b33;
  stroke-width: 2;
  fill: none;
}
.sld .bus {
  stroke-width: 4;
}
.sld .pipe-l {
  stroke: #3d6e9e;
  stroke-width: 5;
}
.sld .well {
  fill: #dbe7f5;
}
.sld-t {
  font: 600 10.5px var(--body);
  fill: #45526e;
  stroke: none;
}
.sld-c {
  font: 700 11px var(--body);
  fill: #0e1b33;
  stroke: none;
  text-anchor: middle;
}

/* The close-up of whatever your hands are on. */
.device-host {
  min-width: 0;
}
.hands {
  display: grid;
  gap: 8px;
}
.device {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 0;
  animation: slide-in 0.3s ease;
}
.dev-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62dvh;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .dev-svg {
    max-height: calc(100dvh - 300px);
  }
}
.device-note {
  color: var(--ink-2);
  font-size: 13px;
  padding: 0 6px;
}
.device-note:empty {
  display: none;
}
.dev-svg text {
  font-family: var(--body);
  pointer-events: none;
}
.enclosure {
  fill: #eef1f5;
  stroke: #c9d3e3;
  stroke-width: 1.5;
}
.enclosure.wall {
  fill: #f1ece3;
}
.enclosure.plantroom {
  fill: #eef2f1;
}
.plate-title {
  font: 800 12px var(--display) !important;
  fill: #45526e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.escutcheon {
  fill: #dde3ea;
  stroke: #c9d3e3;
}
.rail {
  fill: #b9c1c9;
}
.sticker {
  fill: #fffef8;
  stroke: #e3dcc5;
}
.hand-label {
  font-family: var(--hand) !important;
  font-weight: 600;
  fill: #1f2d4a;
}
.body {
  fill: #fbfcfd;
  stroke: #c9d3e3;
  stroke-width: 1.2;
  filter: drop-shadow(0 1.5px 1.5px rgba(14, 27, 51, 0.12));
}
.main-body {
  fill: #fdf6f6;
}
.rot-body {
  fill: #e9ecf0;
}
.dev-id {
  font: 700 9.5px var(--body) !important;
  fill: #6b7690;
  letter-spacing: 0.03em;
}
.dev-id.light {
  fill: #fff;
}
.slot {
  fill: #2e343a;
}
.knob {
  fill: #33415a;
  stroke: #1d2636;
}
.main-knob {
  fill: #d64545;
  stroke: #9b2c2c;
}
.window {
  fill: #c9d3e3;
}
.window.is-on {
  fill: #d64545;
}
.window.is-off {
  fill: #22c55e;
}
.devc {
  cursor: grab;
  outline: none;
}
.devc:focus-visible .body {
  stroke: #2563eb;
  stroke-width: 3;
}
.devc.coach .body,
.devc.coach .rot-face {
  stroke: #2563eb;
  stroke-width: 3;
  animation: coach-glow 1.4s ease infinite;
}
@keyframes coach-glow {
  50% {
    stroke-width: 5;
    stroke: #93c5fd;
  }
}
.rot-face {
  fill: #f6f7f9;
  stroke: #c9d3e3;
  stroke-width: 2;
}
.rot-bar {
  fill: #d64545;
  stroke: #9b2c2c;
  stroke-width: 1.2;
}
.rot-hub {
  fill: #9b2c2c;
}
.rot-word {
  font: 800 10px var(--body) !important;
  fill: #45526e;
  letter-spacing: 0.05em;
}
.lock-label {
  font: 800 7px var(--body) !important;
  fill: #fff;
}
.tag-head {
  font: 800 6.5px var(--body) !important;
  fill: #fff;
  letter-spacing: 0.04em;
}
.tag-sub {
  font: 800 5px var(--body) !important;
  fill: #0e1b33;
}
.tag-sig {
  font-family: var(--hand) !important;
  font-size: 9px;
  font-weight: 600;
  fill: #1d3a8a;
}
.tag-sig.ink {
  animation: ink 0.7s ease both;
}
@keyframes ink {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.tag-date {
  font: 600 4.6px var(--body) !important;
  fill: #45526e;
}
.tag-hint {
  fill: rgba(37, 99, 235, 0.1);
  stroke: #2563eb;
  stroke-width: 0.7;
  stroke-dasharray: 2 1.5;
  animation: hint 1.2s ease infinite;
}
@keyframes hint {
  50% {
    fill: rgba(37, 99, 235, 0.24);
  }
}
.inlet {
  fill: #f2c200;
  stroke: #b98f00;
  stroke-width: 2;
}
.lead {
  stroke: #ff7a1a;
  stroke-width: 7;
  fill: none;
  stroke-linecap: round;
}
.pipe {
  fill: #3d6e9e;
}
.casing {
  fill: #2f5a82;
}
.flange {
  fill: #24496b;
}
.valve-body {
  fill: #2f5a82;
  stroke: #24496b;
  stroke-width: 2;
}
.stem {
  fill: #9aa3ab;
}
.travel {
  fill: #e3e8f2;
  stroke: #c9d3e3;
}
.travel-fill {
  fill: #2563eb;
}
.flow {
  stroke: #9cc5f0;
  stroke-width: 6;
  stroke-dasharray: 10 14;
  fill: none;
  animation: flow 0.6s linear infinite;
}
@keyframes flow {
  to {
    stroke-dashoffset: -24;
  }
}
.wheel-rim {
  fill: none;
  stroke: #c62828;
  stroke-width: 14;
}
.wheel-in {
  fill: none;
  stroke: #9b2c2c;
  stroke-width: 2;
  opacity: 0.5;
}
.spoke {
  stroke: #b22222;
  stroke-width: 9;
  stroke-linecap: round;
}
.grip {
  fill: #e04848;
}
.wheel-hub {
  fill: #7d858e;
  stroke: #5a6068;
  stroke-width: 2;
}
.wheel-id {
  font: 800 11px var(--body) !important;
  fill: #fff;
}
.turn-arrow {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3;
  stroke-dasharray: 5 5;
  marker-end: none;
}
.turn-word {
  font: 700 11px var(--body) !important;
  fill: #2563eb;
}
.dev-svg.turning .wheel-rim {
  stroke: #d63636;
}
.link {
  fill: none;
  stroke: #9aa3ab;
  stroke-width: 2.4;
}
.lever-bar {
  fill: #d64545;
  stroke: #9b2c2c;
}
.funnel {
  fill: #b9c1c9;
  stroke: #9aa3ab;
}
.drop {
  fill: #5aa0e6;
}
.gauge-bezel {
  fill: #c9cfd6;
  stroke: #9aa3ab;
  stroke-width: 2;
}
.gauge-face {
  fill: #fff;
}
.tick {
  stroke: #45526e;
  stroke-width: 1.2;
}
.tick.major {
  stroke-width: 2.2;
}
.gauge-num {
  font: 700 10px var(--body) !important;
  fill: #0e1b33;
}
.gauge-unit {
  font: 600 7.5px var(--body) !important;
  fill: #6b7690;
}
.needle {
  fill: #c62828;
}
.needle-hub {
  fill: #0e1b33;
}
.readout {
  font: 800 16px var(--display) !important;
  fill: #0e1b33;
}
.zero-stamp rect,
.proven-stamp rect {
  fill: rgba(231, 246, 236, 0.94);
  stroke: #15803d;
  stroke-width: 3;
}
.zero-stamp text,
.proven-stamp text {
  font: 800 15px var(--display) !important;
  fill: #15803d;
  letter-spacing: 0.04em;
}
.proven-stamp text {
  font-size: 22px !important;
}
.flap {
  fill: #9aa3ab;
}
.flow-arrow {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3;
}
/* The tester. */
.pu-body {
  fill: #f2c200;
  stroke: #b98f00;
  stroke-width: 1.5;
}
.pu-word {
  font: 800 8.5px var(--body) !important;
  fill: #3a3220;
}
.pu-word.small {
  font-weight: 600 !important;
  font-size: 7.5px !important;
}
.pu-led {
  fill: #14532d;
}
.pu-led.lit {
  fill: #22c55e;
}
.pad {
  fill: #c9a227;
  stroke: #8a6d12;
  stroke-width: 2;
}
.pad-in {
  fill: #e2c35a;
}
.contact.done .pad {
  stroke: #15803d;
  stroke-width: 3;
}
.term-label {
  font: 800 11px var(--body) !important;
  fill: #e9edf1;
}
.prover .term-label,
.lockbox ~ .keys .term-label {
  fill: #3a3220;
}
.keys .term-label {
  fill: #0e1b33;
  font-size: 9.5px !important;
}
.t-body {
  fill: #f2c200;
  stroke: #b98f00;
  stroke-width: 2;
}
.tester.ok-glow .t-body {
  fill: #fde68a;
}
.t-lcd {
  fill: #c9dcc0;
  stroke: #6b7f63;
}
.t-digits {
  font: 800 28px "Courier New", monospace !important;
  fill: #1f2a1c;
}
.t-unit {
  font: 800 10px var(--body) !important;
  fill: #1f2a1c;
}
.t-led {
  fill: #5c1d1d;
  stroke: #3a1111;
}
.t-led.lit {
  fill: #ff3b3b;
  filter: drop-shadow(0 0 3px #ff3b3b);
}
.t-led-word {
  font: 700 7px var(--body) !important;
  fill: #3a3220;
}
.grille rect {
  fill: #3a3220;
}
.tbox {
  fill: #3a4048;
  stroke: #23262a;
  stroke-width: 2;
}
.tbox-title {
  font: 700 10px var(--body) !important;
  fill: #c9d3e3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tgroup {
  fill: #4b525b;
}
.tgroup-word {
  font: 700 9px var(--body) !important;
  fill: #e3e8f2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.inbox-label rect {
  fill: #f2c200;
  stroke: #b98f00;
}
.inbox-label text {
  font: 800 10px var(--body) !important;
  fill: #3a3220;
}
.inbox-label {
  cursor: pointer;
}
.zap {
  fill: #fff6c8;
  filter: drop-shadow(0 0 10px #ffe58a);
}
.probe {
  cursor: grab;
}
.lead-red {
  stroke: #d33a3a;
  stroke-width: 3;
}
.lead-black {
  stroke: #2e343a;
  stroke-width: 3;
}
/* The lock box. */
.lockbox {
  fill: #dc2626;
  stroke: #991b1b;
  stroke-width: 2;
}
.lockbox-word {
  font: 800 12px var(--display) !important;
  fill: #fff;
  letter-spacing: 0.06em;
}
.lockbox-count {
  font: 700 11px var(--body) !important;
  fill: #fde2e2;
}
.key-slot {
  fill: #1d2125;
  stroke: #fde2e2;
  stroke-width: 1.5;
}
.hasp-plate {
  fill: #9aa3ab;
}
.hasp-hole {
  fill: #fff;
}
.key {
  cursor: grab;
}
.key-bow {
  fill: #c9a227;
  stroke: #8a6d12;
  stroke-width: 2;
}
.key-blade {
  fill: #c9a227;
}
.shake {
  animation: shake 0.35s ease;
}
@keyframes shake {
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}
.drop-hot .body,
.drop-hot.wheel-hit,
rect.drop-hot,
circle.drop-hot {
  stroke: #2563eb !important;
  stroke-width: 3 !important;
}
rect.drop-hot,
circle.drop-hot {
  fill: rgba(37, 99, 235, 0.08) !important;
}
/* The kit tray: your locks and tags, always in reach above the thing in your hands (it stays put as the bench
   scrolls). */
.kit {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: sticky;
  top: -4px;
  z-index: 3;
  padding: 4px 0 6px;
  background: var(--bg-soft);
}
.kit:empty {
  display: none;
}
.token {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 4px 14px 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  touch-action: none;
  text-align: left;
}
.token .ico {
  width: 34px;
  height: 44px;
  display: grid;
  place-items: center;
}
.token .ico svg {
  width: 30px;
  height: 40px;
}
.token b {
  display: block;
  font-size: 13px;
  line-height: 1.1;
}
.token small {
  color: var(--muted);
  font-size: 11.5px;
}
.token.armed {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}
.token.off {
  opacity: 0.45;
  cursor: default;
}
.drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 44px;
  height: 60px;
  z-index: 50;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(14, 27, 51, 0.3));
}
.drag-ghost svg {
  width: 44px;
  height: 60px;
}
.hands.dragging .dev-svg [data-drop] {
  stroke: rgba(37, 99, 235, 0.25);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.hands.arming .dev-svg [data-drop] {
  cursor: copy;
}
.pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pchip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.pchip.done {
  background: var(--ok-soft);
  border-color: #bfe3cb;
  color: var(--ok);
}
.pchip.now {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  color: var(--brand-ink);
}
.pchip.battery {
  background: var(--warn-soft);
  border-color: #f3e2b3;
  color: var(--warn);
}
.coach {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 12px 8px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #b9cdf8;
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 500;
  animation: slide-in 0.3s ease;
}
.coach-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  animation: pulse-b 1.4s ease infinite;
}
@keyframes pulse-b {
  50% {
    box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.08);
  }
}
.coach .mini {
  margin-left: auto;
}
.question {
  margin: 0 12px 8px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #f3c38b;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  animation: slide-in 0.3s ease;
}
.q-head {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--brand);
}
.q-head svg {
  width: 20px;
  height: 20px;
}
.q-head b {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.question .buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.question .btn {
  flex: 1 1 140px;
  min-height: 44px;
}
.actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr);
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 0.08s, background 0.15s, box-shadow 0.15s;
}
.btn:active {
  transform: scale(0.97);
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn.primary:hover {
  background: var(--brand-ink);
}
.btn.ghost {
  color: var(--ink-2);
}
.btn.todo {
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 0 0 1px var(--brand);
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}
.btn .key {
  display: none;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
  margin-left: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .btn .key {
    display: inline;
  }
}

/* ---- The job's card after Ready for work ---- */
.catch {
  display: grid;
  gap: 10px;
  background: #fff;
  border: 1px solid #bfe3cb;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px;
  animation: slide-in 0.4s ease;
}
.catch.retry {
  border-color: #f3e2b3;
}
.catch h3 {
  font-size: 17px;
}

/* ---- Rules ---- */
.rule {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.rule .plain {
  font-weight: 600;
  color: var(--ink);
}
.rule blockquote {
  margin: 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.rule .cite {
  color: var(--muted);
  font-size: 12px;
}

/* ---- Modals ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 16px;
  background: rgba(14, 27, 51, 0.32);
  animation: fade 0.25s ease;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.sheet {
  width: min(600px, 100%);
  justify-self: center;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(14, 27, 51, 0.25);
  padding: 20px;
  display: grid;
  gap: 14px;
  animation: sheet-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}
@media (max-width: 599px) {
  .modal {
    place-items: end stretch;
    padding: 0;
  }
  .sheet {
    width: 100%;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  }
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet h1 {
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 800;
  line-height: 1.05;
}
.sheet h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}
.sheet h3 {
  font-size: 15px;
  font-weight: 700;
}
.lead {
  color: var(--ink-2);
  font-size: 15.5px;
}
.sheet .row {
  flex-wrap: wrap;
}
.sheet .buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sheet .buttons .btn {
  flex: 1 1 180px;
}
.sheet > .buttons {
  position: sticky;
  bottom: -20px;
  margin-bottom: -20px;
  padding: 10px 0 20px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 12px);
}
@media (max-width: 599px) {
  .sheet > .buttons {
    bottom: calc(-16px - env(safe-area-inset-bottom));
    margin-bottom: calc(-16px - env(safe-area-inset-bottom));
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  font-size: 14.5px;
}
.checks li i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  color: var(--ok);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
}
.credit {
  color: var(--muted);
  font-size: 12px;
}
.name-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.name-field input,
.big-tag input {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
}
.my {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}
.my img {
  width: 76px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--brand-soft);
}
.my b {
  font-family: var(--display);
  font-size: 17px;
  display: block;
}
.my span {
  color: var(--ink-2);
  font-size: 13.5px;
}
.rungs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.rung {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.rung > span {
  min-width: 0;
}
.rung.held {
  background: var(--ok-soft);
  border-color: #bfe3cb;
}
.rung.next {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.rung.locked {
  opacity: 0.6;
}
.rung .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.rung.held .n {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.rung b {
  display: block;
  font-size: 14px;
}
.rung small {
  color: var(--muted);
  font-size: 12px;
}
.rung .go {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}
.rung.next .go {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.rung.levelup {
  animation: levelup 1.2s ease;
}
.rung .stars {
  display: flex;
  margin-top: 2px;
}
@keyframes levelup {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.5);
  }
  40% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(21, 128, 61, 0);
  }
  100% {
    transform: scale(1);
  }
}
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars svg {
  width: 18px;
  height: 18px;
}
.stars.big svg {
  width: 38px;
  height: 38px;
}
.stars.big svg.got {
  animation: star 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.stars.big svg:nth-child(2) {
  animation-delay: 0.15s;
}
.stars.big svg:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes star {
  from {
    transform: scale(0) rotate(-40deg);
  }
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.catch .stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 2px;
  background: #fff;
  min-width: 0;
}
.stat b {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
}
.verdict-head {
  display: grid;
  gap: 6px;
}
details.more summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-2);
  font-size: 14px;
}

/* ---- The signature pad: your danger tag, big ---- */
.signpad {
  position: fixed;
  inset: 0;
  z-index: 26;
  background: rgba(14, 27, 51, 0.36);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fade 0.2s ease;
}
.signpad-inner {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  animation: sheet-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.big-tag {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(14, 27, 51, 0.25);
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 0 0 14px;
}
.bt-head {
  background: #c62828;
  color: #fff;
  text-align: center;
  padding: 14px 10px 10px;
  display: grid;
}
.bt-head b {
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.bt-head span {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.big-tag label {
  display: grid;
  gap: 4px;
  padding: 0 16px;
}
.big-tag small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sig-canvas {
  width: 100%;
  height: 110px;
  border: 1px dashed #b9c1c9;
  border-radius: 12px;
  background: #fffef8;
  touch-action: none;
  cursor: crosshair;
}
.bt-date {
  padding: 0 16px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.bt-why {
  padding: 0 16px;
  color: var(--ink-2);
  font-size: 13px;
}
.signpad .buttons {
  display: flex;
  gap: 8px;
}
.signpad .btn {
  flex: 1;
}

/* ---- Toast ---- */
.toast {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  z-index: 30;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  max-width: calc(100% - 24px);
  text-align: center;
  line-height: 1.3;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, -6px);
}
.toast.good {
  background: var(--ok);
}
.toast.bad {
  background: var(--bad);
}
.toast.warn {
  background: #92400e;
}

/* ---- Narrow phones ---- */
@media (max-width: 430px) {
  .hud {
    inset: 8px 8px auto 8px;
    gap: 6px;
  }
  .pill {
    min-height: 32px;
    padding: 3px 9px;
    gap: 6px;
  }
  .mycard {
    padding: 2px 9px 2px 2px;
  }
  .mycard img {
    width: 26px;
    height: 26px;
  }
  .mycard small,
  .clock small,
  .jobs small {
    display: none;
  }
  .clock b {
    font-size: 15px;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
  }
  .site .draft-tag {
    top: 46px;
    font-size: 10.5px;
  }
  .btn {
    font-size: 13.5px;
    padding: 0 10px;
  }
  .bench-scroll {
    padding: 4px 10px 12px;
  }
  .tabs {
    padding: 8px 10px 6px;
  }
  .stats,
  .catch .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .token {
    min-height: 48px;
    padding-right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Phone: with your hands on something, the site shrinks a little so the thing and your kit both fit. */
@media (max-width: 899px), (max-aspect-ratio: 5/4) {
  .app.hands-on {
    grid-template-rows: minmax(190px, 31dvh) minmax(0, 1fr);
  }
  .coach {
    padding: 7px 10px;
    font-size: 13px;
    margin-bottom: 6px;
  }
  .hands .kit {
    gap: 6px;
  }
  .dev-svg {
    max-height: 46dvh;
  }
}

@media (max-width: 599px) {
  .radio {
    top: 50px;
    padding: 7px 10px;
    font-size: 12.5px;
    line-height: 1.3;
    gap: 8px;
  }
  .radio svg {
    width: 16px;
    height: 16px;
  }
  .inspect {
    font-size: 12.5px;
    padding: 8px 10px;
    bottom: 50px;
  }
  .inspect b {
    font-size: 14px;
  }
  .bubble {
    font-size: 12px;
    max-width: 180px;
    padding: 5px 9px;
  }
}

.streak b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
}
.streak.hot {
  background: var(--warn-soft);
  border-color: #f3e2b3;
}
.calm {
  display: grid;
  gap: 6px;
  place-items: center;
  text-align: center;
  padding: 26px 16px;
  color: var(--muted);
  font-size: 14px;
}
.calm b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
}
@media (max-width: 430px) {
  .streak small {
    display: none;
  }
}

/* Chips inside cards may wrap rather than push the card wider. */
.sheet .chip,
.catch .chip {
  white-space: normal;
}

@media (max-width: 599px) {
  .pchip {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12.5px;
  }
  .pairs {
    gap: 5px;
  }
}
