@font-face {
  font-family: "Public Sans";
  src: url("../../assets/PublicSans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Staatliches";
  src: url("../../assets/Staatliches-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f3f1eb;
  --paper-2: #ebe8df;
  --ink: #101010;
  --muted: #77746d;
  --line: #aaa79e;
  --yellow: #fff200;
  --coral: #ff6d62;
  --white: #fffefa;
  --font-display: "Staatliches", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { background: #d7d4cc; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(255,255,255,.94), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(255,242,0,.12), transparent 26%),
    linear-gradient(135deg, #e4e1d9, #c9c6be);
  font-family: "Public Sans", Arial, sans-serif;
}

button, input { font: inherit; }

button { color: inherit; }

.ledger-shell {
  width: min(1500px, calc(100vw - 16px));
  min-height: calc(100vh - 16px);
  margin: 8px auto;
  border: 1px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(243,241,235,.9);
  box-shadow:
    0 22px 54px rgba(28,27,24,.18),
    inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(.86);
  -webkit-backdrop-filter: blur(16px) saturate(.86);
}

.topbar {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  text-transform: uppercase;
}

.brand {
  display: flex;
  min-height: 48px;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
}

.topbar-meta {
  font-size: 10px;
  letter-spacing: .16em;
  opacity: .72;
}

.topbar-nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.topbar button,
.language-control select {
  min-height: 48px;
  border: 0;
  color: #fff;
  background: transparent;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .12em;
  cursor: pointer;
}

.language-control {
  position: relative;
  display: inline-flex;
  min-width: 50px;
  min-height: 48px;
  align-items: center;
  direction: ltr;
}

.language-control::after {
  position: absolute;
  right: 2px;
  content: "⌄";
  font-size: 8px;
  pointer-events: none;
}

.language-control select {
  width: 100%;
  appearance: none;
  padding: 0 12px 0 2px;
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-align-last: center;
}

.language-control option { color: #101010; background: #f3f1eb; }
.language-control select:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }

.screen {
  display: none;
  min-height: calc(100vh - 60px);
  animation: reveal .24s ease both;
}

.screen.is-active { display: block; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
}

.eyebrow span {
  padding: 6px 10px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  letter-spacing: .08em;
}

.enter-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 104px);
  padding: clamp(30px, 5vw, 64px) clamp(28px, 6vw, 88px) 42px;
}

.enter-copy { max-width: 1030px; }

.enter-copy h1 {
  margin: 22px 0 26px;
  max-width: 1080px;
  font-family: "Arial Black", "Public Sans", sans-serif;
  font-size: clamp(72px, 9vw, 140px);
  font-weight: 950;
  line-height: .76;
  letter-spacing: -.082em;
  text-transform: uppercase;
}

.enter-copy h1 span,
.enter-copy h1 strong,
.enter-copy h1 em {
  display: block;
  width: max-content;
  max-width: 100%;
}

.enter-copy h1 strong {
  margin: .08em 0 .1em;
  padding: .03em .13em .09em .08em;
  color: var(--paper);
  background: var(--ink);
  box-shadow: .075em .075em 0 var(--yellow);
  font-size: 1.08em;
  line-height: .78;
}

.enter-copy h1 em {
  position: relative;
  padding: .03em .13em .08em .08em;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--yellow);
  box-shadow: .065em .065em 0 var(--ink);
  font-style: normal;
  transform: rotate(-.45deg);
}

.lede {
  max-width: 630px;
  margin: 0 0 28px;
  font-size: clamp(14px, 1.4vw, 19px);
  line-height: 1.55;
}

.primary, .secondary, .danger {
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.primary { background: var(--yellow); }
.danger { background: var(--coral); }
.secondary { background: transparent; }

.primary:hover, .secondary:hover, .danger:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.arrow::after { content: " →"; font-size: 1.45em; font-weight: 400; }

.phase-preview {
  align-self: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.27);
  transform: rotate(.25deg);
}

.phase-preview-head, .phase-preview li {
  display: grid;
  grid-template-columns: 1fr 70px;
  align-items: center;
  min-height: 39px;
  border-bottom: 1px dotted var(--line);
}

.phase-preview-head {
  min-height: 48px;
  padding: 0 14px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.phase-preview ol { margin: 0; padding: 0; list-style: none; }
.phase-preview li span { padding-left: 14px; font-size: 10px; text-transform: uppercase; }
.phase-preview li b { color: var(--muted); font-weight: 400; }

.screen-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-top: 1px solid var(--ink);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.screen-footer span:nth-child(2) { text-align: right; padding-right: 24px; }
.screen-footer b { padding: 5px 8px; background: var(--yellow); border: 1px solid var(--ink); }

/* Setup */
[data-screen="set"] { padding: clamp(20px, 3vw, 42px) clamp(22px, 4vw, 58px) 24px; }

.setup-heading {
  display: grid;
  grid-template-columns: 100px minmax(420px, .92fr) minmax(260px, .55fr);
  gap: 22px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.step-label {
  align-self: start;
  padding: 6px 8px;
  width: max-content;
  border: 1px solid var(--ink);
  background: var(--yellow);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.setup-heading h1 {
  margin: 0;
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: .86;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.setup-heading p {
  margin: 0;
  max-width: 400px;
  font: 11px/1.55 ui-monospace, monospace;
}

.setup-compact {
  display: grid;
  grid-template-columns: minmax(430px, 1.1fr) minmax(420px, .9fr);
  min-height: 480px;
  border-bottom: 1px solid var(--ink);
}

.allowance-orbit-panel {
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 0;
  padding: 14px 34px 8px;
  border-right: 1px solid var(--ink);
  background:
    radial-gradient(circle at 50% 45%, rgba(255,242,0,.12), transparent 46%),
    linear-gradient(110deg, rgba(255,255,255,.55), transparent 50%);
}

.allowance-orbit {
  --orbit-progress: .474;
  position: relative;
  overflow: hidden;
  width: min(430px, 38vw);
  min-width: 330px;
  aspect-ratio: 1;
  border-radius: 50%;
  outline: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.allowance-orbit:active { cursor: grabbing; }
.allowance-orbit:focus-visible::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 2px dashed var(--ink);
  border-radius: 50%;
}

.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(135deg); }
.orbit-track, .orbit-progress {
  fill: none;
  stroke-width: 18;
  stroke-linecap: round;
  stroke-dasharray: 594 198;
}
.orbit-track { stroke: #d0cdc4; }
.orbit-progress {
  stroke: var(--yellow);
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.12));
  transition: stroke-dasharray .18s cubic-bezier(.2,.8,.2,1);
}

.orbit-tick {
  position: absolute;
  z-index: 2;
  font: 9px ui-monospace, monospace;
  transform: translate(-50%, -50%);
}
.orbit-tick-1 { left: 12%; top: 81%; }
.orbit-tick-2 { left: 10%; top: 31%; }
.orbit-tick-3 { left: 50%; top: 4%; }
.orbit-tick-4 { left: 90%; top: 31%; }
.orbit-tick-5 { left: 88%; top: 81%; }

.orbit-knob {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 5%;
  display: grid;
  place-items: center;
  align-content: center;
  width: 74px;
  height: 74px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 7px 0 rgba(0,0,0,.16), 0 12px 25px rgba(0,0,0,.14);
  transform: translate(-50%, -50%);
  transition: left .18s cubic-bezier(.2,.8,.2,1), top .18s cubic-bezier(.2,.8,.2,1), transform .12s ease;
}
.allowance-orbit:active .orbit-knob { transform: translate(-50%, -50%) scale(1.08); }
.orbit-knob strong { font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; }
.orbit-knob small { margin-top: 3px; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }

.orbit-stack {
  --spread: .47;
  position: absolute;
  left: 50%;
  top: 48%;
  width: 150px;
  height: 110px;
  transform: translate(-50%, -50%);
}
.orbit-stack i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 48px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  box-shadow: 0 5px 8px rgba(0,0,0,.12);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease, background .2s ease;
}
.orbit-stack i:nth-child(1) { transform: translate(-58%, calc(-20% + (24px * var(--spread)))) rotate(calc(-19deg * var(--spread))); background: #fff8b1; }
.orbit-stack i:nth-child(2) { transform: translate(calc(-56% - (14px * var(--spread))), calc(-34% + (12px * var(--spread)))) rotate(calc(13deg * var(--spread))); }
.orbit-stack i:nth-child(3) { transform: translate(calc(-46% + (18px * var(--spread))), calc(-55% + (7px * var(--spread)))) rotate(calc(-7deg * var(--spread))); background: #fffbe0; }
.orbit-stack i:nth-child(4) { transform: translate(calc(-52% - (7px * var(--spread))), calc(-68% - (6px * var(--spread)))) rotate(calc(5deg * var(--spread))); }
.orbit-stack i:nth-child(5) { transform: translate(calc(-46% + (10px * var(--spread))), calc(-82% - (16px * var(--spread)))) rotate(calc(-4deg * var(--spread))); background: #fff8b1; }
.orbit-stack i:nth-child(6) { transform: translate(calc(-51% - (2px * var(--spread))), calc(-95% - (25px * var(--spread)))) rotate(calc(2deg * var(--spread))); }
.orbit-stack[data-level="1"] i:nth-child(n+3),
.orbit-stack[data-level="2"] i:nth-child(n+4),
.orbit-stack[data-level="3"] i:nth-child(n+5),
.orbit-stack[data-level="4"] i:nth-child(n+6) { opacity: 0; }

.orbit-readout {
  position: absolute;
  left: 50%;
  bottom: 12%;
  display: grid;
  width: 72%;
  justify-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.orbit-readout output { font-family: var(--font-display); font-size: clamp(42px, 4.5vw, 66px); font-weight: 400; line-height: .82; letter-spacing: .015em; font-variant-numeric: tabular-nums; }
.allowance-orbit[data-digits="4"] .orbit-readout output { font-size: clamp(40px, 4.2vw, 61px); }
.orbit-readout span { margin-top: 7px; font: 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
#allowance { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.orbit-meta { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; width: min(560px, 100%); margin-top: -6px; }
.orbit-hint { margin: 0; font: 8px ui-monospace, monospace; text-transform: uppercase; }
.orbit-hint span { display: inline-grid; place-items: center; width: 23px; height: 23px; margin-right: 6px; border: 1px solid var(--ink); border-radius: 50%; background: var(--yellow); }

.time-reference { padding-left: 16px; border-left: 1px solid var(--line); }
.time-reference > span { display: block; font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.time-reference strong { display: block; margin: 4px 0 2px; font-size: 18px; line-height: 1; }
.time-reference small { display: block; font: 8px ui-monospace, monospace; }
.time-reference p { margin: 5px 0 0; color: var(--muted); font: 7px/1.3 ui-monospace, monospace; }

.setup-rules { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.rules-heading { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.rules-heading span { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rules-heading h2 { margin: 7px 0 0; font-size: clamp(36px, 3.4vw, 54px); line-height: .92; letter-spacing: -.055em; text-transform: uppercase; }

.feature-list { display: grid; }
.feature-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 54px;
  gap: 12px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.feature-row:last-child { border-bottom: 0; }
.feature-row b { display: block; text-transform: uppercase; font-size: 14px; letter-spacing: .08em; }
.feature-row small { display: block; margin-top: 5px; font-family: ui-monospace, monospace; font-size: 9px; }
.feature-icon { font-size: 25px; text-align: center; }
.feature-row input { position: absolute; opacity: 0; }
.feature-row i {
  position: relative;
  width: 48px;
  height: 25px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--paper-2);
}
.feature-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  transition: left .15s ease;
}
.feature-row input:checked + i { background: var(--yellow); }
.feature-row input:checked + i::after { left: 25px; }

.rules-note { display: flex; align-items: center; gap: 12px; padding: 12px 22px; }
.rules-note b { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%; background: var(--yellow); }
.rules-note span { font: 8px/1.4 ui-monospace, monospace; text-transform: uppercase; }

.start-bar { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; }

/* Meeting */
.meeting-screen.is-active { display: block; }
.meeting-main { display: flex; flex-direction: column; min-width: 0; }

.usage-overview {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(480px, 1.28fr);
  margin: 14px;
  overflow: hidden;
  border: 1px solid rgba(16,16,16,.8);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(229,227,219,.58)),
    rgba(243,241,235,.58);
  box-shadow:
    0 10px 22px rgba(28,27,24,.1),
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 -2px 5px rgba(28,27,24,.08);
  backdrop-filter: blur(18px) saturate(.8);
  -webkit-backdrop-filter: blur(18px) saturate(.8);
}
.usage-metrics { display: grid; grid-template-columns: 1fr 1fr; border-right: 1px solid var(--ink); }
.usage-metrics article {
  min-height: 74px;
  padding: 11px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(158,155,147,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), inset 0 -1px 2px rgba(0,0,0,.05);
  text-transform: uppercase;
}
.usage-metrics article:nth-child(even) { border-right: 0; }
.usage-metrics article:nth-last-child(-n+2) { border-bottom: 0; }
.usage-metrics span, .usage-metrics small { display: block; font-size: 7px; letter-spacing: .08em; }
.usage-metrics strong { display: block; margin: 5px 0 2px; font-size: clamp(25px, 2.7vw, 38px); line-height: .8; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

.usage-chart-card {
  position: relative;
  min-width: 0;
  padding: 10px 16px 9px;
  background:
    radial-gradient(circle at 52% -10%, rgba(255,255,255,.94), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.36), rgba(210,207,199,.2));
  box-shadow: inset 5px 0 13px rgba(28,27,24,.045);
}
.usage-chart-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 12px;
  pointer-events: none;
}
.usage-chart-card header, .receipt-chart-section header { display: flex; justify-content: space-between; align-items: center; min-height: 24px; text-transform: uppercase; }
.usage-chart-card header div { display: flex; align-items: center; gap: 8px; }
.usage-chart-card h2, .receipt-chart-section h2 { margin: 0; font-size: 9px; letter-spacing: .1em; }
.usage-chart-card header > strong, .receipt-chart-section header > strong { font: 8px ui-monospace, monospace; }
.usage-chart { position: relative; z-index: 1; display: block; width: 100%; height: 105px; overflow: visible; }
.usage-chart line, .receipt-chart line { stroke: rgba(80,78,72,.42); stroke-width: .7; stroke-dasharray: 1.5 6; }
.usage-line { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: d .35s ease; }
.usage-area { fill: rgba(255,242,0,.62); stroke: none; transition: d .35s ease; }
.usage-overview .usage-area { fill: url(#density-fill); }
.receipt-chart-section .usage-area { fill: url(#receipt-density-fill); }
.usage-dot { fill: var(--coral); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; transition: cx .35s ease, cy .35s ease; }
.density-markers circle { fill: var(--paper); stroke: var(--coral); stroke-width: 2; vector-effect: non-scaling-stroke; }
.density-markers text { fill: var(--ink); font: 800 8px ui-monospace, monospace; text-anchor: middle; }
.usage-chart-card footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
  font: 7px ui-monospace, monospace;
  text-transform: uppercase;
}
.usage-chart-card footer span:nth-child(2), .usage-chart-card footer span:nth-child(3) { text-align: center; }
.usage-chart-card footer span:last-child { text-align: right; }

.ledger-dashboard { display: grid; grid-template-columns: 1.45fr .75fr; min-height: 244px; }
.counter-card { display: grid; place-items: center; align-content: center; border-right: 1px solid var(--line); }
.big-number { font-size: clamp(118px, 18vw, 268px); font-weight: 900; line-height: .75; letter-spacing: -.085em; font-variant-numeric: tabular-nums; transition: transform .16s ease, color .16s ease; }
.big-number.is-changing { color: var(--coral); transform: translateY(-5px) scale(1.035); }
.counter-label { margin-top: 14px; font-size: clamp(21px, 2.3vw, 34px); font-weight: 800; text-transform: uppercase; letter-spacing: -.04em; }
.progress-rule { width: min(80%, 720px); height: 2px; margin-top: 16px; background: var(--line); }
.progress-rule span { display: block; width: 0; height: 100%; background: var(--coral); transition: width .35s ease; }

.repeat-card { padding: 18px 20px; }
.repeat-card h2, .transcript-label, .arc-section h2, .receipt-repeats h2 { margin: 0 0 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.repeat-card ol { list-style: none; margin: 0; padding: 0; }
.repeat-card li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dotted var(--line); text-transform: uppercase; font-weight: 650; animation: ledger-row-in .3s ease both; }
.repeat-card p { color: var(--coral); font: 10px/1.45 ui-monospace, monospace; }

@keyframes ledger-row-in { from { opacity: 0; transform: translateX(8px); } }

.transcript-stage {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(255,242,0,.16), transparent 28%),
    rgba(255,255,255,.26);
}

.transcript-head {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-bottom: 1px dotted var(--line);
  background: rgba(247,245,239,.88);
  text-transform: uppercase;
}
.transcript-head > div { display: flex; align-items: center; gap: 8px; }
.transcript-head h2 { margin: 0; font-size: 10px; letter-spacing: .1em; }
.transcript-head p { margin: 0; font: 8px ui-monospace, monospace; }
.transcript-head p span { padding: 3px 6px; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); }
.transcript-head p em { margin-left: 8px; font-style: normal; opacity: .65; }
.transcript-head p em[hidden] { display: none; }
.live-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: live-pulse 1.15s ease-in-out infinite; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 6px rgba(255,109,98,0); transform: scale(.65); } }

.transcript-flow {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 150px;
  max-height: 190px;
  padding: 12px 18px 16px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0, #000 25%, #000 100%);
}
.transcript-flow p { margin: 0; }
.transcript-empty { align-self: center; margin: auto !important; font: 11px ui-monospace, monospace; text-transform: uppercase; opacity: .55; }
.utterance {
  max-width: 96%;
  font-size: clamp(18px, 2.05vw, 30px);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: -.035em;
  opacity: .35;
  transform-origin: left center;
  animation: utterance-settle .34s ease both;
}
.utterance:nth-last-child(2) { opacity: .58; }
.utterance.is-latest { opacity: 1; }
.utterance.is-latest .word { animation: word-arrive .42s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--word-index) * 22ms); }
.word { display: inline-block; margin-right: .22em; }
.word.is-repeat { padding: 0 .08em; color: var(--coral); background: var(--white); box-shadow: inset 0 -2px var(--coral); }
.word.is-signal { position: relative; z-index: 1; padding: 0 .12em; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
@keyframes utterance-settle { from { opacity: 0; transform: translateY(16px) rotate(.4deg); } }
@keyframes word-arrive { from { opacity: 0; transform: translateY(18px) rotate(2deg); } }

.word-field { position: absolute; inset: 38px 0 0; z-index: 3; overflow: hidden; pointer-events: none; }
.word-particle {
  position: absolute;
  left: var(--particle-x);
  top: 72%;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  border-radius: 30px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  animation: word-lift 2.2s cubic-bezier(.17,.8,.22,1) forwards;
}
@keyframes word-lift {
  0% { opacity: 0; transform: translate(-50%, 24px) rotate(0); }
  14% { opacity: 1; }
  70% { opacity: 1; transform: translate(calc(-50% + var(--particle-drift)), -84px) rotate(var(--particle-rotate)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--particle-drift)), -126px) rotate(var(--particle-rotate)); }
}

.meeting-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 10px 16px; }

/* End */
.exhausted-screen.is-active { display: grid; place-items: center; align-content: center; text-align: center; padding: 40px; }
.zero { font-size: clamp(180px, 30vw, 430px); font-weight: 900; line-height: .68; letter-spacing: -.08em; }
.exhausted-screen h1 { margin: 30px 0 20px; font-size: clamp(44px, 5.6vw, 82px); line-height: 1; text-transform: uppercase; letter-spacing: -.055em; border-bottom: 2px solid var(--ink); }
.silence { font: clamp(28px, 4vw, 60px)/1 ui-monospace, monospace; text-transform: uppercase; }
.end-actions { display: flex; gap: 34px; margin-top: 58px; }
.end-actions button { min-width: 260px; }
.end-actions small { display: block; margin-top: 5px; font: 8px ui-monospace, monospace; text-transform: none; }

/* Receipt */
.receipt-screen { padding: clamp(22px, 3vw, 42px); }
.receipt-heading { display: grid; grid-template-columns: 1fr minmax(300px, .45fr); gap: 30px; align-items: start; }
.receipt-heading h1 { margin: 0; font-size: clamp(60px, 7.8vw, 108px); line-height: .84; letter-spacing: -.075em; text-transform: uppercase; }
.receipt-heading dl { margin: 0; border: 1px solid var(--line); }
.receipt-heading dl div { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 12px; border-bottom: 1px dotted var(--line); font-size: 9px; text-transform: uppercase; }
.receipt-heading dt { font-weight: 750; }
.receipt-heading dd { margin: 0; text-align: right; }

.receipt-chart-section { margin-top: 24px; padding: 12px 14px 8px; border: 1px solid var(--ink); background: rgba(255,255,255,.2); }
.receipt-chart { display: block; width: 100%; height: 112px; }

.receipt-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); margin-top: 18px; border: 1px solid var(--line); }
.receipt-grid article { min-height: 164px; padding: 16px; border-right: 1px solid var(--line); position: relative; }
.receipt-grid article:last-child { border-right: 0; }
.receipt-repeats ol { list-style: none; margin: 0; padding: 0; }
.receipt-repeats li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dotted var(--line); text-transform: uppercase; font-size: 11px; }
.receipt-stat small { text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.receipt-stat strong { display: block; margin: 10px 0; font-size: 58px; line-height: .8; }
.receipt-stat p { max-width: 170px; font: 9px/1.45 ui-monospace, monospace; }
.receipt-stat > b { position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); background: var(--yellow); font-size: 22px; }

.takeaway-panel { display: grid; grid-template-columns: minmax(270px, .75fr) minmax(540px, 1.25fr); margin-top: 18px; border: 1px solid var(--ink); }
.takeaway-copy { padding: 18px; border-right: 1px solid var(--ink); }
.takeaway-copy > span { font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.takeaway-copy h2 { margin: 7px 0 12px; font-size: clamp(30px, 3.2vw, 48px); line-height: .9; letter-spacing: -.05em; text-transform: uppercase; }
.takeaway-copy p { max-height: 110px; margin: 0; overflow: auto; white-space: pre-line; font: 8px/1.45 ui-monospace, monospace; }
.takeaway-actions { display: grid; }
.takeaway-actions article { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 8px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.takeaway-actions article:last-child { border-bottom: 0; }
.takeaway-actions span, .takeaway-actions small { display: block; text-transform: uppercase; }
.takeaway-actions span { font-size: 11px; font-weight: 800; }
.takeaway-actions small { margin-top: 4px; font: 7px ui-monospace, monospace; }
.takeaway-actions button { min-height: 48px; padding: 0 13px; font-size: 9px; }

.receipt-actions { display: grid; grid-template-columns: minmax(280px, 1fr) 1fr auto; align-items: stretch; margin-top: 18px; border: 1px solid var(--ink); }
.receipt-actions button { border-width: 0 1px 0 0; }
.receipt-actions p { margin: 0; padding: 12px 20px; font: 9px/1.5 ui-monospace, monospace; }
.receipt-actions > b { display: grid; place-items: center; padding: 0 20px; border-left: 1px solid var(--ink); background: var(--yellow); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* WORD CLOCK interaction pass */
.manifesto {
  max-width: 630px;
  margin: -8px 0 26px;
  padding: 12px 0;
  border-block: 1px dotted var(--line);
}
.manifesto p { margin: 0; font: 9px/1.55 ui-monospace, monospace; }

.word-timepiece {
  width: clamp(480px, 42vw, 590px);
  color: var(--ink);
}

.word-timepiece-face {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-inline: auto;
  border: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(102deg, rgba(255,255,255,.055) 0 1px, rgba(16,16,16,.018) 1px 2px, transparent 2px 5px),
    radial-gradient(circle at 35% 27%, rgba(255,255,255,.98), transparent 30%),
    radial-gradient(circle at center, transparent 0 72%, rgba(16,16,16,.055) 72.5% 73%, transparent 73.5%),
    linear-gradient(145deg, #b8b5ad 0%, #f8f7f2 21%, #d8d5cd 56%, #aaa79f 100%);
  box-shadow:
    0 42px 78px rgba(25,24,21,.24),
    0 12px 22px rgba(25,24,21,.14),
    inset 0 0 0 1px rgba(16,16,16,.9),
    inset 0 0 0 7px rgba(255,255,255,.72),
    inset 0 0 0 9px rgba(16,16,16,.3),
    inset 0 0 0 18px rgba(237,235,228,.82),
    inset 0 0 0 20px rgba(16,16,16,.12),
    inset 0 -28px 48px rgba(16,16,16,.11);
  transition: box-shadow .65s cubic-bezier(.2,.7,.15,1), transform .65s cubic-bezier(.2,.7,.15,1);
}

.word-timepiece-face::before {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -.45deg, rgba(16,16,16,.66) 0 .7deg, transparent .7deg 15deg);
  mask: radial-gradient(circle, transparent 0 91%, #000 91.5% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 91%, #000 91.5% 100%);
  content: "";
  opacity: .55;
}

.word-timepiece-dial {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.word-timepiece-dial::before {
  position: absolute;
  z-index: 1;
  inset: 24px;
  border: 1px solid rgba(16,16,16,.25);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.7) 0 12%, rgba(255,255,255,.16) 24%, transparent 43% 68%, rgba(255,255,255,.18) 82%, transparent 100%);
  box-shadow:
    inset 10px 14px 26px rgba(255,255,255,.34),
    inset -12px -16px 30px rgba(16,16,16,.07),
    0 1px 0 rgba(255,255,255,.72);
  content: "";
  pointer-events: none;
}

.word-timepiece-dial::after {
  position: absolute;
  z-index: 1;
  inset: 31px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0%, #4a4945 0 1px, #c9c6bd 1.5px 4px, #5e5c56 4.5px 5px, transparent 5.5px),
    radial-gradient(circle at 100% 50%, #4a4945 0 1px, #c9c6bd 1.5px 4px, #5e5c56 4.5px 5px, transparent 5.5px),
    radial-gradient(circle at 50% 100%, #4a4945 0 1px, #c9c6bd 1.5px 4px, #5e5c56 4.5px 5px, transparent 5.5px),
    radial-gradient(circle at 0% 50%, #4a4945 0 1px, #c9c6bd 1.5px 4px, #5e5c56 4.5px 5px, transparent 5.5px);
  content: "";
  opacity: .8;
  pointer-events: none;
}

.word-timepiece-face::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 73%, rgba(255,242,0,.02) 75%, rgba(255,242,0,.96) 79%, rgba(16,16,16,.9) 80%, transparent 82% 100%);
  mask: radial-gradient(circle, transparent 0 91.7%, #000 92.2% 96.5%, transparent 97%);
  -webkit-mask: radial-gradient(circle, transparent 0 91.7%, #000 92.2% 96.5%, transparent 97%);
  content: "";
  animation: acoustic-scan 13s cubic-bezier(.64,0,.36,1) infinite alternate;
  pointer-events: none;
}

.word-timepiece-dial span {
  --dial-angle: calc(var(--dial-index) * 60deg);
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 112px;
  text-align: center;
  color: rgba(16,16,16,.66);
  font: 750 7px/1 ui-monospace, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(var(--dial-angle)) translateY(-216px) rotate(calc(var(--dial-index) * -60deg));
}

.word-timepiece-hand {
  position: absolute;
  z-index: 3;
  bottom: 50%;
  left: calc(50% - .75px);
  width: 1.5px;
  height: 174px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 1px 0 rgba(255,255,255,.5);
  transform-origin: 50% 100%;
  animation: word-timepiece-turn 48s linear infinite;
}

.word-timepiece-hand::after {
  position: absolute;
  top: -6px;
  left: -5px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255,242,0,.12);
  content: "";
}

.word-timepiece-center {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 158px;
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background:
    repeating-linear-gradient(102deg, rgba(255,255,255,.09) 0 1px, rgba(16,16,16,.025) 1px 2px, transparent 2px 4px),
    radial-gradient(circle at 38% 30%, rgba(255,255,255,.98), transparent 42%),
    linear-gradient(145deg, #f4f2ec, #bebbb3);
  box-shadow:
    0 14px 28px rgba(16,16,16,.2),
    0 3px 6px rgba(16,16,16,.14),
    inset 0 0 0 1px rgba(16,16,16,.78),
    inset 0 0 0 7px rgba(255,255,255,.52),
    inset 0 0 0 9px rgba(16,16,16,.18),
    inset 0 -12px 20px rgba(16,16,16,.08);
  text-align: center;
  transform: translate(-50%, -50%);
}

.word-timepiece-center::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  border: 1px solid rgba(16,16,16,.34);
  border-radius: 50%;
  content: "";
  animation: acoustic-breathe 5.8s cubic-bezier(.45,0,.2,1) infinite;
}

.word-timepiece-center::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
}

.word-timepiece-center strong {
  font-size: 50px;
  line-height: .9;
  letter-spacing: -.07em;
}

.word-timepiece-center span {
  margin-top: 19px;
  color: rgba(16,16,16,.66);
  font: 750 6px/1 ui-monospace, monospace;
  letter-spacing: .09em;
}

.word-timepiece > p {
  margin: 18px auto 0;
  max-width: 310px;
  color: rgba(16,16,16,.7);
  text-align: center;
  font: 750 7px/1.35 ui-monospace, monospace;
  letter-spacing: .11em;
}

.word-timepiece:hover .word-timepiece-face {
  box-shadow:
    0 50px 92px rgba(25,24,21,.28),
    0 14px 26px rgba(25,24,21,.16),
    inset 0 0 0 1px rgba(16,16,16,.9),
    inset 0 0 0 7px rgba(255,255,255,.78),
    inset 0 0 0 9px rgba(16,16,16,.3),
    inset 0 0 0 18px rgba(237,235,228,.82),
    inset 0 0 0 20px rgba(16,16,16,.12),
    inset 0 -28px 48px rgba(16,16,16,.11);
  transform: translateY(-3px);
}

@keyframes word-timepiece-turn { to { transform: rotate(360deg); } }
@keyframes acoustic-scan {
  0%, 12% { transform: rotate(-35deg); }
  48% { transform: rotate(128deg); }
  88%, 100% { transform: rotate(325deg); }
}
@keyframes acoustic-breathe {
  0%, 100% { opacity: .12; transform: translate(-50%, -50%) scale(.92); }
  42%, 58% { opacity: .72; transform: translate(-50%, -50%) scale(1.08); }
}

.about-dialog {
  width: min(690px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
}

.about-dialog::backdrop {
  background: rgba(16,16,16,.58);
  backdrop-filter: blur(8px) saturate(.75);
  -webkit-backdrop-filter: blur(8px) saturate(.75);
}

.about-card {
  position: relative;
  border: 1px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,255,255,.7), transparent 48%),
    var(--paper);
  box-shadow: 14px 14px 0 var(--yellow), 0 28px 70px rgba(0,0,0,.32);
  animation: about-arrive .22s ease both;
}

.about-close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  min-width: 76px;
  min-height: 48px;
  border: 0;
  border-left: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--yellow);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  cursor: pointer;
}

.about-close:hover,
.about-close:focus-visible { color: var(--paper); background: var(--ink); outline: 0; }

.about-kicker {
  display: block;
  min-height: 48px;
  padding: 17px 98px 12px 24px;
  border-bottom: 1px solid var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.about-card h2 {
  max-width: 610px;
  margin: 0;
  padding: 28px 32px 24px;
  font-family: "Arial Black", "Public Sans", sans-serif;
  font-size: clamp(44px, 6.8vw, 76px);
  font-weight: 950;
  line-height: .88;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.about-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}

.about-copy p {
  min-height: 150px;
  margin: 0;
  padding: 21px 24px 24px;
  font-size: 13px;
  line-height: 1.55;
}

.about-copy p + p { border-left: 1px solid var(--ink); }

.about-card footer {
  display: grid;
  grid-template-columns: 1fr 54px;
  min-height: 54px;
  border-top: 1px solid var(--ink);
  align-items: center;
  font: 700 8px/1.3 ui-monospace, monospace;
  letter-spacing: .06em;
}

.about-card footer span { padding: 10px 24px; }
.about-card footer b { display: grid; height: 100%; border-left: 1px solid var(--ink); place-items: center; background: var(--yellow); font-size: 14px; }

@keyframes about-arrive {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.access-dialog {
  width: min(560px, calc(100vw - 24px));
  max-width: none;
  padding: 0;
  border: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
}

.access-dialog::backdrop {
  background: rgba(16,16,16,.64);
  backdrop-filter: blur(9px) saturate(.7);
  -webkit-backdrop-filter: blur(9px) saturate(.7);
}

.access-card {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(255,255,255,.72), transparent 52%), var(--paper);
  box-shadow: 12px 12px 0 var(--yellow), 0 28px 70px rgba(0,0,0,.34);
  animation: about-arrive .22s ease both;
}

.access-card form { display: grid; }
.access-kicker {
  min-height: 46px;
  padding: 16px 22px 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
}
.access-card h2 {
  margin: 0;
  padding: 24px 24px 14px;
  font-family: "Arial Black", "Public Sans", sans-serif;
  font-size: clamp(44px, 7.8vw, 70px);
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.access-description {
  max-width: 48ch;
  margin: 0;
  padding: 0 24px 22px;
  font: 600 12px/1.5 ui-monospace, monospace;
}
.access-field {
  display: grid;
  gap: 8px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--ink);
}
.access-field label { font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.access-field input {
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  outline: 0;
  color: var(--ink);
  background: rgba(255,255,255,.76);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.1);
  font: 700 18px/1 ui-monospace, monospace;
}
.access-field input:focus { box-shadow: inset 0 2px 6px rgba(0,0,0,.1), 0 0 0 4px var(--yellow); }
.access-error { margin: 0; color: var(--coral); font: 850 10px/1.35 ui-monospace, monospace; letter-spacing: .05em; }
.access-actions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 8px;
  padding: 12px 24px;
  border-top: 1px solid var(--ink);
}
.access-actions button { min-height: 56px; }
.access-card footer {
  min-height: 38px;
  padding: 12px 24px;
  border-top: 1px solid var(--ink);
  font: 750 8px/1.3 ui-monospace, monospace;
  letter-spacing: .08em;
}

.allowance-orbit-panel { align-content: start; padding-top: 16px; }
.allowance-orbit {
  width: min(392px, 35vw);
  min-width: 320px;
  overflow: visible;
  background: radial-gradient(circle at center, rgba(255,242,0,.07), transparent 68%);
}
.allowance-orbit::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.allowance-orbit::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -1deg, var(--line) 0 1deg, transparent 1deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 0 67%, #000 67.5% 74%, transparent 74.5%);
  mask: radial-gradient(circle, transparent 0 67%, #000 67.5% 74%, transparent 74.5%);
  pointer-events: none;
}
.orbit-svg { transform: none; }
.orbit-track, .orbit-progress { stroke-width: 11; stroke-dasharray: none; }
.orbit-progress { transform: rotate(-90deg); transform-origin: 50% 50%; }
.orbit-tick-1 { left: 38%; top: 4%; }
.orbit-tick-2 { left: 96%; top: 50%; }
.orbit-tick-3 { left: 50%; top: 96%; }
.orbit-tick-4 { left: 4%; top: 50%; }
.orbit-tick-5 { left: 63%; top: 4%; }

.clock-hand {
  --hand-angle: 41deg;
  position: absolute;
  z-index: 4;
  left: calc(50% - 3px);
  bottom: 50%;
  width: 6px;
  height: 34%;
  border: 1px solid var(--ink);
  border-radius: 5px 5px 0 0;
  background: var(--yellow);
  box-shadow: 2px 2px 0 rgba(0,0,0,.16);
  transform: rotate(var(--hand-angle));
  transform-origin: 50% 100%;
  transition: transform .18s cubic-bezier(.2,.8,.2,1);
}
.clock-hand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  transform: translateX(-50%);
}
.clock-hand i { position: absolute; left: 50%; top: 8px; width: 2px; height: 55%; background: var(--ink); transform: translateX(-50%); }
.orbit-knob { width: 64px; height: 64px; z-index: 7; }
.page-count {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 57%;
  display: grid;
  justify-items: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.page-count span { font: 800 12px ui-monospace, monospace; }
.page-count small { font: 6px ui-monospace, monospace; letter-spacing: .08em; }
.orbit-readout { top: auto; bottom: 12%; }

.preset-block { width: min(590px, 100%); margin: -8px 0 9px; }
.preset-block > span { display: block; margin-bottom: 5px; font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.preset-block > small { display: block; margin-top: 6px; color: var(--muted); font: 7px ui-monospace, monospace; }
.preset-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.preset-buttons button {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .06em;
  cursor: pointer;
}
.preset-buttons button:hover, .preset-buttons button.is-active { background: var(--yellow); }
.orbit-hint b { font-weight: 500; }

.overtime-banner {
  padding: 10px 18px;
  color: #101010;
  background: var(--coral);
  border-bottom: 2px solid currentColor;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
}
.overtime-banner[hidden] { display: none; }

.counter-card { position: relative; min-width: 0; padding: 26px 16px 22px; overflow: hidden; }
.split-flap {
  display: flex;
  justify-content: center;
  gap: clamp(4px, .7vw, 10px);
  width: 100%;
  font-size: clamp(78px, 12vw, 180px);
  line-height: .82;
  letter-spacing: 0;
}
.flap-digit {
  position: relative;
  display: grid;
  place-items: center;
  width: .68em;
  height: .92em;
  overflow: hidden;
  border: 1px solid #000;
  border-radius: 5px;
  color: var(--paper);
  background: #111;
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 4px 0 rgba(0,0,0,.24);
  font-variant-numeric: tabular-nums;
}
.flap-digit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid #000;
  box-shadow: 0 1px rgba(255,255,255,.12);
}
.flap-sign { align-self: center; font-size: .72em; }
.flap-digit.is-changing { animation: flap-turn .38s cubic-bezier(.2,.72,.2,1) both; }
@keyframes flap-turn { 0% { transform: rotateX(-82deg); filter: brightness(.55); } 58% { transform: rotateX(8deg); } 100% { transform: rotateX(0); filter: brightness(1); } }
.big-number.is-changing { color: inherit; transform: none; }
.counter-label { margin-top: 20px; }
.counter-state { min-height: 17px; margin: 9px 0 0; font: 10px/1.4 ui-monospace, monospace; }
.progress-rule span { background: color-mix(in srgb, var(--yellow) calc((1 - var(--depletion, 0)) * 100%), var(--coral)); }

.live-clock {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 54px;
  height: 54px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: repeating-conic-gradient(var(--ink) 0 1deg, transparent 1deg 30deg);
}
.live-clock::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); }
.live-clock i, .live-clock b { position: absolute; z-index: 2; left: calc(50% - 1px); bottom: 50%; width: 2px; background: var(--ink); transform-origin: 50% 100%; }
.live-clock i { height: 19px; animation: live-hand 12s linear infinite; }
.live-clock b { height: 13px; animation: live-hand 60s linear infinite; }
.live-clock.is-stopped i, .live-clock.is-stopped b { animation-play-state: paused; }
@keyframes live-hand { to { transform: rotate(360deg); } }

.clock-stop-chip {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 50%;
  padding: 7px 11px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  transform: translateX(-50%);
}
.clock-stop-chip[hidden] { display: none; }
.cast-exit { display: none; }
.cast-subtitle { display: none; }

.repeat-card li { gap: 8px; align-items: baseline; }
.repeat-card li span { font: 9px/1.35 ui-monospace, monospace; }
.repeat-card li b:empty { display: none; }
.repeat-card p { display: none; }
.word.is-overtime { color: var(--coral) !important; background: transparent !important; box-shadow: none !important; text-decoration: line-through 3px; text-decoration-color: currentColor; }

.meeting-screen.is-final-stretch .flap-digit { color: #101010; background: color-mix(in srgb, var(--yellow) 24%, var(--coral)); }
.meeting-screen.is-final-stretch .counter-state { color: var(--coral); font-weight: 900; }
.meeting-screen.is-overtime {
  --paper: #101010;
  --paper-2: #181212;
  --ink: #f3f1eb;
  --line: #70403d;
  --yellow: #ff6d62;
  --coral: #ff584d;
  --white: #231817;
  color: var(--ink);
  background: var(--paper);
}
.meeting-screen.is-overtime .flap-digit { color: #101010; background: var(--coral); border-color: #fff; }
.meeting-screen.is-overtime .usage-area { fill: rgba(255,88,77,.55); }
.meeting-screen.is-overtime .meeting-actions .secondary { opacity: .35; }
.meeting-screen.is-clock-stopped .live-pulse { animation-play-state: paused; opacity: .25; }

.record-kicker { display: block; margin-bottom: 10px; font: 8px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.time-card-preview {
  position: relative;
  background: #f6f0df;
  box-shadow: inset 8px 0 0 rgba(0,0,0,.04);
}
.time-card-preview::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 7px;
  background: radial-gradient(circle, var(--paper) 0 2px, var(--ink) 2.5px 3.5px, transparent 4px) center top / 7px 32px repeat-y;
}
.time-card-stamp {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 5px 8px;
  border: 3px double var(--coral);
  color: var(--coral);
  font: 900 9px ui-monospace, monospace;
  font-style: normal;
  transform: rotate(1.5deg);
}

body.is-cast-mode { overflow: hidden; background: var(--paper); }
body.is-cast-mode .ledger-shell { width: 100vw; height: 100vh; min-height: 100vh; margin: 0; border: 0; box-shadow: none; }
body.is-cast-mode .topbar,
body.is-cast-mode .usage-overview,
body.is-cast-mode .repeat-card,
body.is-cast-mode .transcript-stage,
body.is-cast-mode .meeting-actions,
body.is-cast-mode .overtime-banner { display: none !important; }
body.is-cast-mode .screen,
body.is-cast-mode .meeting-main,
body.is-cast-mode .ledger-dashboard,
body.is-cast-mode .counter-card { height: 100vh; min-height: 100vh; }
body.is-cast-mode .ledger-dashboard { display: block; }
body.is-cast-mode .counter-card { border: 0; }
body.is-cast-mode .split-flap { font-size: min(23vw, 360px); }
body.is-cast-mode .cast-subtitle {
  position: absolute;
  left: 50%;
  bottom: 15vh;
  display: block;
  width: min(760px, 76vw);
  margin: 0;
  color: var(--ink);
  font: 500 clamp(12px, 1.3vw, 18px)/1.45 ui-monospace, monospace;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .28s ease, transform .28s ease;
}
body.is-cast-mode .cast-subtitle.is-visible { opacity: .88; transform: translate(-50%, 0); }
body.is-cast-mode .cast-exit { display: block; position: absolute; right: 22px; bottom: 22px; min-width: 48px; min-height: 48px; padding: 0 12px; border: 1px solid var(--ink); color: inherit; background: transparent; font-size: 8px; }

/* Poster typography: the condensed display face is reserved for titles so
   interface copy and long-form text remain easy to scan. */
.enter-copy h1,
.setup-heading h1,
.rules-heading h2,
.exhausted-screen h1,
.receipt-heading h1,
.takeaway-copy h2,
.about-card h2,
.access-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .006em;
}

.enter-copy h1 { line-height: .82; }
.setup-heading h1,
.receipt-heading h1 { line-height: .9; }
.about-card h2,
.access-card h2 { line-height: .94; }

/* Desktop screens are composed as single-view panels. The controls and the
   result stay above the fold at common laptop heights without shrinking the
   touch targets below 48px. */
@media (min-width: 901px) {
  body {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .ledger-shell {
    height: calc(100svh - 16px);
    min-height: 0;
  }

  .topbar { height: 48px; }
  main { height: calc(100% - 48px); }

  .screen {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  [data-screen="enter"].is-active {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 52px;
  }

  .enter-grid {
    min-height: 0;
    padding: clamp(18px, 3.2vh, 30px) clamp(32px, 5.2vw, 76px) 16px;
  }

  .enter-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    max-width: min(880px, calc(100% - clamp(330px, 38vw, 520px)));
  }

  .word-timepiece {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: clamp(-86px, -4vw, -34px);
    transform: translateY(-50%);
  }

  .enter-copy h1 {
    margin: clamp(12px, 1.8vh, 18px) 0 clamp(14px, 2vh, 20px);
    font-size: clamp(66px, min(7.8vw, 11.2vh), 116px);
  }

  .lede {
    margin-bottom: clamp(12px, 1.8vh, 18px);
    font-size: clamp(13px, min(1.25vw, 2vh), 18px);
    line-height: 1.42;
  }

  .manifesto {
    margin: 0 0 clamp(12px, 1.8vh, 18px);
    padding: clamp(7px, 1vh, 10px) 0;
  }

  .manifesto p { line-height: 1.4; }

  [data-screen="set"].is-active {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: clamp(12px, 2vh, 20px) clamp(24px, 3.2vw, 46px) 12px;
  }

  .setup-heading {
    grid-template-columns: 82px minmax(360px, .92fr) minmax(240px, .55fr);
    gap: 16px;
    padding-bottom: clamp(9px, 1.4vh, 14px);
  }

  .setup-heading h1 {
    font-size: clamp(42px, min(4.5vw, 6.8vh), 66px);
  }

  .setup-heading p {
    font-size: 9px;
    line-height: 1.4;
  }

  .setup-compact { min-height: 0; }

  .allowance-orbit-panel {
    padding: 7px 24px 5px;
  }

  .allowance-orbit {
    width: min(326px, 28vw, 43vh);
    min-width: 280px;
  }

  .preset-block { margin: -5px 0 5px; }
  .preset-buttons { flex-wrap: nowrap; }
  .preset-buttons button { padding-inline: 9px; }

  .orbit-meta {
    gap: 12px;
    margin-top: -3px;
  }

  .rules-heading { padding: 13px 18px 11px; }
  .rules-heading h2 { font-size: clamp(32px, min(3.1vw, 5.3vh), 48px); }
  .feature-row { padding: clamp(9px, 1.35vh, 13px) 18px; }
  .feature-row b { font-size: 12px; }
  .feature-row small { margin-top: 3px; font-size: 8px; }
  .feature-icon { font-size: 21px; }
  .rules-note { padding: 7px 18px; }
  .rules-note b { width: 38px; height: 38px; }
  .start-bar { padding-top: 8px; }

  .meeting-screen.is-active { overflow: hidden; }
  .meeting-main { height: 100%; }

  .usage-overview {
    grid-template-columns: minmax(250px, .62fr) minmax(460px, 1.38fr);
    flex: 0 0 auto;
    margin: 8px 10px;
  }

  .usage-metrics article {
    min-height: 58px;
    padding: 7px 11px;
  }

  .usage-metrics strong {
    margin: 3px 0 1px;
    font-size: clamp(23px, 2.25vw, 32px);
  }

  .usage-chart-card { padding: 7px 13px 6px; }
  .usage-chart-card header { min-height: 20px; }
  .usage-chart { height: clamp(66px, 10.5vh, 86px); }

  .ledger-dashboard {
    flex: 1 1 auto;
    min-height: 190px;
  }

  .counter-card { padding: 12px 14px 10px; }
  .split-flap { font-size: clamp(72px, min(10vw, 16vh), 140px); }
  .counter-label { margin-top: 11px; font-size: clamp(19px, 2vw, 28px); }
  .counter-state { margin-top: 5px; }
  .progress-rule { margin-top: 10px; }
  .live-clock { top: 12px; left: 12px; width: 46px; height: 46px; }
  .repeat-card { padding: 13px 16px; }

  .transcript-stage {
    flex: 0 0 clamp(120px, 18vh, 150px);
    min-height: 120px;
  }

  .transcript-head { min-height: 32px; }
  .transcript-flow {
    min-height: 88px;
    max-height: 118px;
    padding: 8px 14px 10px;
  }

  .utterance { font-size: clamp(16px, min(1.55vw, 2.5vh), 22px); }
  .meeting-actions { flex: 0 0 auto; padding: 5px 12px; }
  .meeting-actions button { min-height: 48px; }

  .receipt-screen.is-active {
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    align-content: start;
    padding: clamp(11px, 1.7vh, 16px) clamp(18px, 2.5vw, 34px);
  }

  .receipt-heading { gap: 18px; }
  .receipt-heading h1 { font-size: clamp(54px, min(6.1vw, 8.8vh), 82px); }
  .receipt-heading dl div { padding: 4px 9px; font-size: 8px; }
  .record-kicker { margin-bottom: 5px; }

  .receipt-chart-section {
    margin-top: 9px;
    padding: 7px 10px 5px;
  }

  .receipt-chart { height: clamp(58px, 9vh, 78px); }

  .receipt-grid { margin-top: 9px; }
  .receipt-grid article { min-height: 100px; padding: 9px 11px; }
  .receipt-repeats h2 { margin-bottom: 8px; }
  .receipt-repeats li { padding: 4px 0; font-size: 9px; }
  .receipt-stat small { font-size: 8px; }
  .receipt-stat strong { margin: 6px 0; font-size: 42px; }
  .receipt-stat p { margin: 0; font-size: 7px; }
  .receipt-stat > b { right: 9px; bottom: 9px; width: 28px; height: 28px; font-size: 18px; }

  .takeaway-panel {
    grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr);
    margin-top: 9px;
  }

  .takeaway-copy { padding: 9px 12px; }
  .takeaway-copy h2 { margin: 4px 0 7px; font-size: clamp(26px, 2.5vw, 36px); }
  .takeaway-copy p { max-height: 52px; }
  .takeaway-actions { grid-template-columns: 1fr 1fr; }
  .takeaway-actions article {
    grid-template-columns: minmax(100px, 1fr) auto auto;
    padding: 7px 8px;
    border-bottom: 0;
  }
  .takeaway-actions article + article { border-left: 1px solid var(--line); }
  .takeaway-actions span { font-size: 9px; }
  .takeaway-actions button { min-height: 48px; padding-inline: 9px; font-size: 8px; }

  .receipt-actions { margin-top: 9px; }
  .receipt-actions button { min-height: 48px; }
  .receipt-actions p { padding: 8px 14px; font-size: 8px; }
}

@media (max-width: 900px) {
  .ledger-shell { width: 100%; margin: 0; border-left: 0; border-right: 0; }
  .topbar { grid-template-columns: 1fr auto; }
  .topbar-meta { display: none; }
  .enter-grid { grid-template-columns: 1fr; }
  .word-timepiece {
    position: static;
    display: grid;
    grid-template-columns: 214px minmax(150px, 240px);
    width: auto;
    max-width: 500px;
    margin-top: 34px;
    align-items: center;
  }
  .word-timepiece-face { width: 202px; margin: 0; }
  .word-timepiece-dial span { width: 62px; font-size: 5px; transform: translate(-50%, -50%) rotate(var(--dial-angle)) translateY(-80px) rotate(calc(var(--dial-index) * -60deg)); }
  .word-timepiece-hand { height: 67px; }
  .word-timepiece-center { width: 78px; }
  .word-timepiece-center strong { font-size: 26px; }
  .word-timepiece-center span { margin-top: 10px; font-size: 4px; }
  .word-timepiece > p { margin: 0; text-align: left; }
  .phase-preview { display: none; }
  .setup-heading { grid-template-columns: auto 1fr; }
  .setup-heading p { grid-column: 2; }
  .setup-compact, .receipt-heading { grid-template-columns: 1fr; }
  .allowance-orbit-panel { border-right: 0; border-bottom: 1px solid var(--ink); }
  .allowance-orbit { width: min(390px, 72vw); }
  .meeting-screen.is-active { display: block; }
  .meeting-rail { display: grid; grid-template-columns: repeat(4, 1fr); border-right: 0; border-bottom: 1px solid var(--ink); }
  .rail-status { display: none; }
  .ledger-dashboard { grid-template-columns: 1fr; }
  .counter-card { border-right: 0; border-bottom: 1px solid var(--line); min-height: 260px; }
  .phase-track { overflow-x: auto; grid-template-columns: repeat(8, minmax(100px, 1fr)); }
  .receipt-grid { grid-template-columns: 1fr 1fr; }
  .receipt-grid article:nth-child(2) { border-right: 0; }
  .receipt-grid article { border-bottom: 1px solid var(--line); }
  .receipt-actions { grid-template-columns: 1fr; }
  .receipt-actions button { border: 0; border-bottom: 1px solid var(--ink); }
  .receipt-actions > b { min-height: 50px; border-left: 0; border-top: 1px solid var(--ink); }
  .usage-overview { grid-template-columns: 1fr; }
  .usage-metrics { border-right: 0; border-bottom: 1px solid var(--ink); }
  .takeaway-panel { grid-template-columns: 1fr; }
  .takeaway-copy { border-right: 0; border-bottom: 1px solid var(--ink); }
}

@media (min-width: 761px) and (max-width: 900px) {
  .setup-heading { grid-template-columns: 82px minmax(0, 1fr) minmax(210px, .55fr); }
  .setup-heading p { grid-column: 3; }
  .setup-heading h1 { font-size: 54px; }
  .setup-compact { grid-template-columns: minmax(340px, .88fr) minmax(380px, 1.12fr); min-height: 470px; }
  .allowance-orbit-panel { padding: 8px; border-right: 1px solid var(--ink); border-bottom: 0; }
  .allowance-orbit { width: min(350px, 39vw); min-width: 310px; }
  .orbit-knob { width: 66px; height: 66px; }
  .rules-heading { padding: 18px 20px 14px; }
  .feature-row { padding: 13px 18px; }
  .ledger-dashboard { grid-template-columns: 1.45fr .75fr; }
  .counter-card { min-height: 244px; border-right: 1px solid var(--line); border-bottom: 0; }
}

@media (max-width: 760px) {
  .setup-heading { grid-template-columns: auto minmax(0, 1fr); }
  .setup-heading p { grid-column: 2; }
  .setup-compact { grid-template-columns: 1fr; min-height: 0; }
  .allowance-orbit-panel { border-right: 0; border-bottom: 1px solid var(--ink); }
  .usage-overview { grid-template-columns: 1fr; }
  .usage-metrics { border-right: 0; border-bottom: 1px solid var(--ink); }
  .usage-chart-card { padding-block: 10px; }
  .takeaway-panel { grid-template-columns: 1fr; }
  .takeaway-copy { border-right: 0; border-bottom: 1px solid var(--ink); }
  .takeaway-actions article { grid-template-columns: 1fr 1fr; }
  .takeaway-actions article > div { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .takeaway-actions article { grid-template-columns: minmax(0, 1fr) auto auto; }
}

@media (max-width: 600px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; padding: 0 10px; }
  .brand { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-nav { gap: 2px; }
  .topbar-nav button { padding-inline: 7px; }
  .topbar-nav [data-download-transcript] { display: none; }
  .topbar-nav button:last-child { width: 48px; padding: 0; font-size: 0; }
  .topbar-nav button:last-child::after { content: "↻"; font-size: 18px; }
  .enter-grid { min-height: calc(100svh - 100px); padding: 28px 16px 30px; }
  .word-timepiece { grid-template-columns: 162px minmax(0, 1fr); gap: 12px; margin-top: 28px; }
  .word-timepiece-face { width: 154px; }
  .word-timepiece-dial span { width: 50px; font-size: 4px; transform: translate(-50%, -50%) rotate(var(--dial-angle)) translateY(-61px) rotate(calc(var(--dial-index) * -60deg)); }
  .word-timepiece-hand { height: 50px; }
  .word-timepiece-center { width: 62px; }
  .word-timepiece-center strong { font-size: 21px; }
  .word-timepiece-center span { margin-top: 8px; font-size: 3px; }
  .word-timepiece > p { font-size: 7px; }
  .enter-copy h1 { margin-block: 18px 22px; font-size: clamp(48px, 14.5vw, 58px); }
  .eyebrow { gap: 8px; font-size: 10px; }
  .screen-footer { grid-template-columns: 1fr auto; gap: 10px; padding-inline: 12px; }
  .screen-footer span:nth-child(2) { display: none; }
  [data-screen="set"] { padding: 16px; }
  .setup-heading { grid-template-columns: 1fr; gap: 12px; }
  .setup-heading h1 { font-size: clamp(36px, 10.5vw, 44px); line-height: .94; overflow-wrap: anywhere; }
  .setup-heading p { grid-column: 1; }
  .setup-compact { min-height: 0; }
  .allowance-orbit-panel { padding: 14px 0 10px; }
  .allowance-orbit { width: min(300px, 80vw); min-width: 270px; }
  .orbit-knob { width: 64px; height: 64px; }
  .orbit-knob strong { font-size: 14px; }
  .orbit-readout { top: 69%; }
  .orbit-meta { grid-template-columns: 1fr; gap: 10px; padding-inline: 14px; }
  .time-reference { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .rules-heading { padding: 17px 18px 14px; }
  .feature-row { padding: 14px 16px; }
  .start-bar, .end-actions { flex-direction: column; }
  .start-bar button, .meeting-actions button { width: 100%; }
  .usage-overview { order: 0; }
  .ledger-dashboard { order: 1; }
  .meeting-actions {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px;
    border-bottom: 1px solid var(--ink);
    background: rgba(243,241,235,.96);
  }
  .meeting-actions button { min-width: 0; padding-inline: 7px; font-size: 8px; }
  .transcript-stage { order: 3; }
  .end-actions button { min-width: 0; }
  .meeting-rail { grid-template-columns: 1fr 1fr; }
  .usage-overview { margin: 8px; border-radius: 14px; }
  .usage-chart-card header > strong { max-width: 44%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .usage-chart-card footer { grid-template-columns: 1fr 1fr; row-gap: 5px; }
  .usage-chart-card footer span:nth-child(odd) { text-align: left; }
  .usage-chart-card footer span:nth-child(even) { text-align: right; }
  .density-markers text { display: none; }
  .transcript-head p { display: none; }
  .transcript-flow { padding-inline: 12px; }
  .utterance { font-size: 18px; }
  .receipt-grid { grid-template-columns: 1fr; }
  .receipt-grid article { border-right: 0; }
  .takeaway-actions article { grid-template-columns: 1fr 1fr; }
  .takeaway-actions article > div { grid-column: 1 / -1; }
  .receipt-heading h1 { font-size: clamp(48px, 13.5vw, 66px); overflow-wrap: anywhere; }
  .receipt-heading dl div { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
  .time-card-preview::before { display: none; }
  .time-card-stamp { position: static; display: inline-block; margin-bottom: 8px; }
  .about-card { box-shadow: 7px 7px 0 var(--yellow), 0 20px 50px rgba(0,0,0,.3); }
  .about-kicker { padding-left: 16px; }
  .about-card h2 { padding: 24px 18px 20px; font-size: clamp(40px, 12vw, 54px); }
  .about-copy { grid-template-columns: 1fr; }
  .about-copy p { min-height: 0; padding: 17px 18px; font-size: 12px; }
  .about-copy p + p { border-left: 0; border-top: 1px solid var(--ink); }
  .about-card footer span { padding-inline: 18px; }
}

/* Mobile task mode: keep the decision, the main reading and the next action
   visible together. Deeper analysis remains available immediately below. */
@media (max-width: 600px) {
  html, body {
    width: 100%;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }
  .ledger-shell {
    height: 100svh;
    min-height: 0;
    border-radius: 0;
  }
  main { height: calc(100svh - 48px); overflow: hidden; }
  .screen.is-active { height: 100%; min-height: 0; overflow: hidden; }
  .topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    min-height: 48px;
  }
  .topbar-nav button { min-width: 48px; }
  .word-field { display: none; }
  .toast {
    bottom: 76px;
    max-width: calc(100vw - 24px);
    font-size: 8px;
    text-align: center;
  }
  .primary,
  .secondary,
  .danger,
  .preset-buttons button {
    overflow: hidden;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
  }

  /* Home: one idea, one action, with the clock as an atmospheric instrument. */
  [data-screen="enter"].is-active {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 44px;
    min-height: calc(100svh - 48px);
    overflow: clip;
  }
  [data-screen="enter"] .enter-grid {
    min-height: 0;
    padding: 24px 16px 18px;
    overflow: clip;
  }
  [data-screen="enter"] .enter-copy {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  [data-screen="enter"] .manifesto { display: none; }
  [data-screen="enter"] .eyebrow {
    width: 100%;
    padding-bottom: 9px;
    font-size: 8px;
  }
  [data-screen="enter"] .eyebrow span { padding: 4px 7px; }
  [data-screen="enter"] .enter-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(48px, 14.8vw, 58px);
    line-height: .78;
  }
  [data-screen="enter"] .lede {
    max-width: 285px;
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1.42;
  }
  [data-screen="enter"] .enter-copy > button {
    width: min(100%, 290px);
    min-height: 60px;
    margin-top: auto;
    font-size: 11px;
  }
  [data-screen="enter"] .word-timepiece {
    position: absolute;
    z-index: 1;
    right: -82px;
    bottom: 0;
    display: block;
    width: 285px;
    margin: 0;
    opacity: .32;
    pointer-events: none;
  }
  [data-screen="enter"] .word-timepiece-face { width: 285px; }
  [data-screen="enter"] .word-timepiece-dial span {
    width: 75px;
    font-size: 5px;
    transform: translate(-50%, -50%) rotate(var(--dial-angle)) translateY(-113px) rotate(calc(var(--dial-index) * -60deg));
  }
  [data-screen="enter"] .word-timepiece-hand { height: 94px; }
  [data-screen="enter"] .word-timepiece-center { width: 105px; }
  [data-screen="enter"] .word-timepiece-center strong { font-size: 34px; }
  [data-screen="enter"] .word-timepiece-center span { margin-top: 12px; font-size: 4px; }
  [data-screen="enter"] .word-timepiece > p { display: none; }
  [data-screen="enter"] .screen-footer {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 7px;
  }

  /* Setup: dial, time reference and quick presets share one compact panel. */
  [data-screen="set"] { padding: 9px 12px 74px; }
  [data-screen="set"].is-active {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }
  [data-screen="set"] .setup-heading {
    display: block;
    padding-bottom: 8px;
  }
  [data-screen="set"] .setup-heading .step-label,
  [data-screen="set"] .setup-heading p { display: none; }
  [data-screen="set"] .setup-heading h1 {
    font-size: 34px;
    line-height: .88;
  }
  [data-screen="set"] .setup-compact {
    display: flex;
    flex-direction: column;
    border-bottom: 0;
  }
  [data-screen="set"] .allowance-orbit-panel {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 5px;
    align-items: center;
    justify-items: center;
    min-height: 0;
    padding: 4px 0 6px;
    border-bottom: 1px solid var(--ink);
    background: transparent;
  }
  [data-screen="set"] .allowance-orbit {
    grid-row: 1;
    width: min(286px, calc(100vw - 48px));
    min-width: 0;
    margin-bottom: -120px;
    clip-path: inset(0 0 42% 0);
  }
  [data-screen="set"] .orbit-progress {
    transform: rotate(180deg);
    transform-origin: 50% 50%;
  }
  [data-screen="set"] .orbit-knob {
    width: 50px;
    height: 50px;
  }
  [data-screen="set"] .orbit-knob strong { font-size: 11px; }
  [data-screen="set"] .orbit-knob small { font-size: 5px; }
  [data-screen="set"] .orbit-tick {
    z-index: 8;
    width: auto;
    padding: 1px 2px;
    background: rgba(243,241,235,.9);
    font-size: 6px;
  }
  [data-screen="set"] .orbit-tick-1 { left: 10%; top: 50%; }
  [data-screen="set"] .orbit-tick-2 { left: 22%; top: 22%; }
  [data-screen="set"] .orbit-tick-3 { left: 50%; top: 8%; }
  [data-screen="set"] .orbit-tick-4 { left: 78%; top: 22%; }
  [data-screen="set"] .orbit-tick-5 { left: 90%; top: 50%; }
  [data-screen="set"] .clock-hand { width: 4px; }
  [data-screen="set"] .clock-hand::after { width: 14px; height: 14px; }
  [data-screen="set"] .orbit-stack,
  [data-screen="set"] .page-count { display: none; }
  [data-screen="set"] .orbit-readout { top: 34%; }
  [data-screen="set"] .orbit-readout output { font-size: 34px; }
  [data-screen="set"] .orbit-readout span { display: none; }
  [data-screen="set"] .preset-block {
    grid-row: 3;
    width: 100%;
    margin: 0;
  }
  [data-screen="set"] .preset-block > span,
  [data-screen="set"] .preset-block > small { display: none; }
  [data-screen="set"] .preset-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  [data-screen="set"] .preset-buttons button {
    min-height: 56px;
    padding: 5px 7px;
    font-size: 7.5px;
    line-height: 1.2;
  }
  [data-screen="set"] .preset-buttons button:last-child { grid-column: 1 / -1; }
  [data-screen="set"] .orbit-meta {
    grid-row: 2;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  [data-screen="set"] .orbit-hint { display: none; }
  [data-screen="set"] .time-reference {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px 10px;
    align-items: baseline;
    justify-content: center;
    padding: 0 0 3px;
    border: 0;
    text-align: center;
  }
  [data-screen="set"] .time-reference > span { grid-column: 1 / -1; font-size: 6px; }
  [data-screen="set"] .time-reference strong { margin: 1px 0; font-size: 17px; }
  [data-screen="set"] .time-reference small {
    min-width: 0;
    font-size: 7px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  [data-screen="set"] .time-reference p { display: none; }
  [data-screen="set"] .setup-rules {
    display: block;
    min-height: 0;
  }
  [data-screen="set"] .rules-heading,
  [data-screen="set"] .rules-note { display: none; }
  [data-screen="set"] .feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  [data-screen="set"] .feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    place-items: center;
    min-height: 70px;
    padding: 6px 4px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--ink);
    text-align: center;
  }
  [data-screen="set"] .feature-row:last-child { border-right: 0; border-bottom: 1px solid var(--ink); }
  [data-screen="set"] .feature-icon,
  [data-screen="set"] .feature-row small { display: none; }
  [data-screen="set"] .feature-row b {
    min-height: 18px;
    font-size: 7px;
    line-height: 1.25;
  }
  [data-screen="set"] .feature-row i { width: 44px; height: 24px; }
  [data-screen="set"] .start-bar {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 56px minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 5px;
    padding: 6px;
    border-top: 1px solid var(--ink);
    background: rgba(243,241,235,.97);
    backdrop-filter: blur(12px);
  }
  [data-screen="set"] .start-bar button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 5px;
    font-size: 8px;
  }
  [data-screen="set"] .start-bar button:first-child { font-size: 0; }
  [data-screen="set"] .start-bar button:first-child::after { content: "←"; font-size: 18px; }

  /* Meeting: remaining words and controls first, live transcript second. */
  .meeting-screen.is-active {
    min-height: 0;
    padding-bottom: 71px;
    overflow: hidden;
  }
  .meeting-main { height: 100%; min-height: 0; overflow: hidden; }
  .ledger-dashboard {
    order: 0;
    display: block;
    min-height: 0;
  }
  .counter-card {
    min-height: 268px;
    padding: 18px 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .split-flap { font-size: clamp(68px, 24vw, 92px); }
  .counter-label { margin-top: 10px; font-size: 22px; }
  .counter-state { margin: 5px 0 0; font-size: 9px; }
  .progress-rule { margin-top: 10px; }
  .live-clock { top: 14px; left: 14px; width: 48px; height: 48px; }
  .repeat-card { display: none; }
  .transcript-stage {
    order: 2;
    flex: 0 0 180px;
    min-height: 180px;
  }
  .transcript-flow {
    min-height: 141px;
    max-height: 141px;
    padding: 8px 12px 11px;
  }
  .transcript-flow .utterance:not(.is-latest) { display: none; }
  .utterance { font-size: 16px; }
  .meeting-actions {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    order: 1;
    gap: 5px;
    padding: 6px;
    border-top: 1px solid var(--ink);
    border-bottom: 0;
  }
  .meeting-actions button {
    min-height: 58px;
    padding-inline: 6px;
    font-size: 8px;
  }
  .usage-overview {
    order: 3;
    margin: 8px 8px 18px;
  }
  .usage-metrics { display: none; }
  .usage-chart-card { padding: 8px 10px 7px; }
  .usage-chart { height: 76px; }

  /* Record: the portable takeaways are the first thing you can act on. */
  .receipt-screen.is-active {
    display: flex;
    min-height: 0;
    padding: 10px 12px 74px;
    flex-direction: column;
  }
  .receipt-heading { order: 0; gap: 8px; }
  .record-kicker { display: none; }
  .receipt-heading h1 {
    font-size: 34px;
    line-height: .84;
  }
  .receipt-heading dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .receipt-heading dl div {
    display: block;
    min-width: 0;
    padding: 7px 6px;
    border-right: 1px dotted var(--line);
    border-bottom: 0;
    font-size: 6px;
  }
  .receipt-heading dl div:nth-child(n+4) { display: none; }
  .receipt-heading dl div:nth-child(3) { border-right: 0; }
  .receipt-heading dt { min-height: 15px; }
  .receipt-heading dd {
    margin-top: 4px;
    overflow: hidden;
    font-size: 10px;
    font-weight: 850;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .takeaway-panel {
    order: 1;
    display: block;
    margin-top: 8px;
  }
  .takeaway-copy { display: none; }
  .takeaway-actions { display: block; }
  .takeaway-actions article {
    display: grid;
    grid-template-columns: minmax(58px, 1fr) 54px minmax(96px, auto);
    gap: 5px;
    min-height: 64px;
    padding: 5px;
    border-bottom: 1px solid var(--line);
  }
  .takeaway-actions article + article { border-left: 0; }
  .takeaway-actions article > div { grid-column: auto; }
  .takeaway-actions span { font-size: 7px; line-height: 1.15; }
  .takeaway-actions small { display: none; }
  .takeaway-actions button {
    min-width: 0;
    min-height: 54px;
    padding: 4px;
    font-size: 7px;
    line-height: 1.15;
  }
  .receipt-actions {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    order: 2;
    display: block;
    margin: 0;
    padding: 6px;
    border: 0;
    border-top: 1px solid var(--ink);
    background: rgba(243,241,235,.97);
    backdrop-filter: blur(12px);
  }
  .receipt-actions button {
    width: 100%;
    min-height: 58px;
    border: 1px solid var(--ink);
    font-size: 11px;
  }
  .receipt-actions p,
  .receipt-actions > b { display: none; }
  .receipt-chart-section {
    order: 3;
    margin-top: 8px;
    padding: 7px 8px 5px;
  }
  .receipt-chart { height: 72px; }
  .receipt-grid {
    order: 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 8px;
  }
  .receipt-grid article {
    min-height: 90px;
    padding: 9px;
    border-right: 1px solid var(--line);
  }
  .receipt-grid article:last-child { border-right: 0; }
  .receipt-grid .receipt-repeats {
    grid-column: 1 / -1;
    min-height: 96px;
    border-right: 0;
  }
  .receipt-stat strong { margin: 6px 0; font-size: 34px; }
  .receipt-stat p,
  .receipt-stat > b { display: none; }
}

@media (max-width: 600px) and (max-height: 700px) {
  [data-screen="enter"] .enter-grid { padding-top: 14px; }
  [data-screen="enter"] .enter-copy h1 { margin-block: 10px 12px; font-size: clamp(42px, 13vw, 50px); }
  [data-screen="enter"] .lede { margin-bottom: 10px; font-size: 11px; }

  [data-screen="set"] { padding-top: 6px; padding-bottom: 70px; }
  [data-screen="set"] .setup-heading { padding-bottom: 5px; }
  [data-screen="set"] .setup-heading h1 { font-size: 30px; }
  [data-screen="set"] .allowance-orbit {
    width: min(240px, calc(100vw - 58px));
    margin-bottom: -100px;
  }
  [data-screen="set"] .orbit-knob { width: 46px; height: 46px; }
  [data-screen="set"] .orbit-readout output { font-size: 29px; }
  [data-screen="set"] .preset-buttons button { min-height: 50px; }
  [data-screen="set"] .feature-row { min-height: 62px; }

  .counter-card { min-height: 210px; padding-block: 12px; }
  .transcript-stage { flex-basis: 128px; min-height: 128px; }
  .transcript-flow { min-height: 89px; max-height: 89px; }
  .usage-chart { height: 52px; }
  .usage-chart-card footer { display: none; }
  .usage-overview { margin-top: 6px; }

  .receipt-screen.is-active { padding-top: 7px; }
  .receipt-heading h1 { font-size: 34px; }
  .takeaway-actions article { min-height: 58px; }
  .takeaway-actions button { min-height: 50px; }
  .receipt-chart { height: 58px; }
  .receipt-grid .receipt-repeats { display: none; }
  .receipt-grid article { min-height: 80px; }
}

/* Locale-specific typesetting and reading order. */
html[dir="rtl"] .ledger-shell { direction: rtl; text-align: right; }
html[dir="rtl"] .topbar-nav { justify-content: flex-start; }
html[dir="rtl"] .allowance-orbit-panel { border-right: 0; border-left: 1px solid var(--ink); }
html[dir="rtl"] .feature-row { grid-template-columns: 54px minmax(0, 1fr) 52px; }
html[dir="rtl"] .feature-icon { grid-column: 3; }
html[dir="rtl"] .feature-row > span:nth-child(2) { grid-column: 2; grid-row: 1; }
html[dir="rtl"] .feature-row i { grid-column: 1; grid-row: 1; }
html[dir="rtl"] .usage-metrics,
html[dir="rtl"] .split-flap,
html[dir="rtl"] .usage-chart-card,
html[dir="rtl"] .receipt-chart-section,
html[dir="rtl"] .live-clock,
html[dir="rtl"] .time-reference { direction: ltr; }
html[dir="rtl"] .utterance,
html[dir="rtl"] .takeaway-copy p { direction: rtl; unicode-bidi: plaintext; }
html[dir="rtl"] .utterance { max-width: 100%; transform-origin: right center; }
html[dir="rtl"] .word { margin-right: 0; margin-left: .22em; }
html[dir="rtl"] .receipt-heading dd { text-align: left; }
html[dir="rtl"] body.is-cast-mode .cast-exit { right: auto; left: 22px; }
html[dir="rtl"] .about-close { right: auto; left: 0; border-right: 1px solid var(--ink); border-left: 0; }
html[dir="rtl"] .about-kicker { padding-right: 24px; padding-left: 98px; }
html[dir="rtl"] .about-copy p + p { border-right: 1px solid var(--ink); border-left: 0; }
html[dir="rtl"] .about-card footer b { border-right: 1px solid var(--ink); border-left: 0; }
html[dir="rtl"] .access-dialog { direction: rtl; text-align: right; }

html[data-locale="ar"] body { font-family: Tahoma, Arial, sans-serif; }
html[data-locale="ja"] body { font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; }
html[data-locale="zh-Hans"] body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif; }

html[data-locale="ar"] :is(.enter-copy h1, .setup-heading h1, .rules-heading h2, .exhausted-screen h1, .receipt-heading h1, .takeaway-copy h2, .about-card h2, .access-card h2) {
  font-family: Tahoma, Arial, sans-serif;
  font-weight: 900;
}
html[data-locale="ja"] :is(.enter-copy h1, .setup-heading h1, .rules-heading h2, .exhausted-screen h1, .receipt-heading h1, .takeaway-copy h2, .about-card h2, .access-card h2) {
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 900;
}
html[data-locale="zh-Hans"] :is(.enter-copy h1, .setup-heading h1, .rules-heading h2, .exhausted-screen h1, .receipt-heading h1, .takeaway-copy h2, .about-card h2, .access-card h2) {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-weight: 900;
}

html[data-locale="ar"] .ledger-shell *,
html[data-locale="ja"] .ledger-shell *,
html[data-locale="zh-Hans"] .ledger-shell * {
  letter-spacing: normal;
  text-transform: none;
}

html[data-locale="ar"] .enter-copy h1 { max-width: 980px; font-size: clamp(58px, 7vw, 106px); line-height: .98; }
html[data-locale="ar"] .enter-copy h1 span,
html[data-locale="ar"] .enter-copy h1 strong,
html[data-locale="ar"] .enter-copy h1 em,
html[data-locale="ja"] .enter-copy h1 span,
html[data-locale="ja"] .enter-copy h1 strong,
html[data-locale="ja"] .enter-copy h1 em,
html[data-locale="zh-Hans"] .enter-copy h1 span,
html[data-locale="zh-Hans"] .enter-copy h1 strong,
html[data-locale="zh-Hans"] .enter-copy h1 em { width: fit-content; }

html[data-locale="ar"] .lede,
html[data-locale="ar"] .manifesto p,
html[data-locale="ar"] .setup-heading p,
html[data-locale="ar"] .feature-row small { line-height: 1.75; }

html[data-locale="ja"] .enter-copy h1,
html[data-locale="zh-Hans"] .enter-copy h1 { max-width: 920px; font-size: clamp(58px, 7.5vw, 112px); line-height: .96; }
html[data-locale="ja"] .lede,
html[data-locale="zh-Hans"] .lede { line-height: 1.8; }
html[data-locale="ja"] .utterance,
html[data-locale="zh-Hans"] .utterance { line-height: 1.22; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  html[dir="rtl"] .allowance-orbit-panel { border-left: 0; }
}

@media (max-width: 600px) {
  html[dir="rtl"] [data-screen="set"] .feature-row { grid-template-columns: 1fr; }
  html[dir="rtl"] [data-screen="set"] .feature-row > span:nth-child(2),
  html[dir="rtl"] [data-screen="set"] .feature-row i {
    grid-column: auto;
    grid-row: auto;
  }
  html[data-locale="ar"] .enter-copy h1,
  html[data-locale="ja"] .enter-copy h1,
  html[data-locale="zh-Hans"] .enter-copy h1 { font-size: clamp(38px, 12vw, 46px); line-height: 1.04; }
  html[data-locale="ar"] .setup-heading h1 { font-size: 34px; line-height: 1.15; }
  html[data-locale="ja"] .setup-heading h1,
  html[data-locale="zh-Hans"] .setup-heading h1 { font-size: 34px; line-height: 1.1; }
  html[data-locale="ar"] .eyebrow,
  html[data-locale="ja"] .eyebrow,
  html[data-locale="zh-Hans"] .eyebrow { line-height: 1.5; }
}

@media (max-width: 600px) {
  .access-dialog { width: calc(100vw - 16px); }
  .access-card { box-shadow: 7px 7px 0 var(--yellow), 0 20px 48px rgba(0,0,0,.34); }
  .access-kicker { min-height: 42px; padding: 14px 16px 10px; }
  .access-card h2 { padding: 18px 16px 10px; font-size: clamp(38px, 12vw, 52px); }
  .access-description { padding: 0 16px 16px; font-size: 11px; }
  .access-field { padding: 14px 16px 16px; }
  .access-field input { min-height: 56px; font-size: 16px; }
  .access-actions { grid-template-columns: 1fr 1.25fr; padding: 8px 16px; }
  .access-actions button { min-height: 54px; padding-inline: 8px; font-size: 9px; }
  .access-card footer { padding: 10px 16px; }
}

@media (max-width: 600px) and (max-height: 700px) {
  html[data-locale="ar"] .setup-heading h1,
  html[data-locale="ja"] .setup-heading h1,
  html[data-locale="zh-Hans"] .setup-heading h1 {
    font-size: 24px;
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Accessible type and collision pass. Display text uses Staatliches; interface
   copy uses Public Sans. No functional label is reduced to ornamental scale. */
.topbar {
  grid-template-columns: minmax(150px, 1fr) auto;
  column-gap: 16px;
}

.brand {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .035em;
  white-space: nowrap;
}

.topbar-nav,
.topbar-nav > *,
.setup-heading > *,
.setup-compact > *,
.feature-row > *,
.usage-overview > *,
.ledger-dashboard > *,
.receipt-heading > *,
.receipt-grid > *,
.takeaway-panel > *,
.takeaway-actions article > * { min-width: 0; }

.topbar button,
.language-control select,
.primary,
.secondary,
.danger { font-size: 12px; }

.screen-footer {
  display: flex;
  min-height: 44px;
  justify-content: flex-end;
  padding: 0 18px;
  font-size: 12px;
}

.screen-footer b {
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1;
}

.enter-copy h1 { font-family: var(--font-display); }
.lede { font-size: clamp(16px, 1.4vw, 20px); }
.manifesto p { font-size: 13px; }

.step-label,
.setup-heading p,
.rules-heading span,
.orbit-hint,
.preset-block > span,
.preset-block > small { font-size: 12px; }

.orbit-tick { font-size: 11px; }
.orbit-knob small { font-size: 10px; }
.time-reference > span,
.time-reference small,
.time-reference p { font-size: 11px; }
.preset-buttons button { font-size: 11px; }
.feature-row b { font-size: 14px; }
.feature-row small { font-size: 12px; line-height: 1.35; }
.rules-note span { font-size: 11px; }

.usage-metrics span,
.usage-metrics small,
.usage-chart-card header > strong,
.receipt-chart-section header > strong,
.usage-chart-card footer { font-size: 11px; }
.usage-chart-card h2,
.receipt-chart-section h2,
.transcript-head h2,
.repeat-card h2 { font-size: 13px; }
.transcript-head p,
.density-markers text { font-size: 11px; }
.counter-state { font-size: 12px; }
.repeat-card li span { font-size: 12px; }

.receipt-heading dl div,
.receipt-repeats li,
.receipt-stat small,
.takeaway-copy > span,
.takeaway-actions span,
.takeaway-actions small,
.receipt-actions p { font-size: 11px; }
.receipt-stat p,
.takeaway-copy p { font-size: 12px; }
.takeaway-actions button { font-size: 11px; }

.about-kicker,
.about-card footer,
.access-kicker,
.access-card footer { font-size: 12px; }
.about-copy p,
.access-description { font-size: 14px; }
.access-field label { font-size: 12px; }
.access-actions button { font-size: 12px; }

button,
label,
dt,
dd,
.time-reference,
.usage-chart-card,
.receipt-chart-section {
  overflow-wrap: anywhere;
}

@media (min-width: 901px) {
  html { height: 100svh; overflow: hidden; }
  [data-screen="enter"].is-active { grid-template-rows: minmax(0, 1fr) 44px; }
  .enter-grid { padding-bottom: 12px; }
  .word-timepiece { max-height: calc(100% - 20px); }

  .setup-heading p { font-size: 12px; }
  .feature-row { padding-block: clamp(8px, 1.15vh, 12px); }
  .feature-row small { font-size: 11px; }
  .receipt-heading dl div { font-size: 11px; }
  .receipt-stat p,
  .takeaway-copy p { font-size: 11px; }
}

@media (min-width: 901px) and (max-height: 780px) {
  .takeaway-copy p { display: none; }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: minmax(132px, 1fr) auto; }
  .brand { font-size: 19px; }
  .topbar button,
  .language-control select { font-size: 11px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  [data-screen="set"].is-active {
    display: grid;
    height: calc(100svh - 50px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 16px 30px 12px;
    overflow: hidden;
  }
  [data-screen="set"] .setup-heading {
    align-items: start;
    padding-bottom: 12px;
  }
  [data-screen="set"] .setup-heading h1 { font-size: 50px; }
  [data-screen="set"] .setup-heading p { font-size: 11px; line-height: 1.35; }
  [data-screen="set"] .setup-compact {
    height: 100%;
    min-height: 0;
  }
  [data-screen="set"] .allowance-orbit-panel { padding: 4px 8px; }
  [data-screen="set"] .allowance-orbit {
    width: min(320px, 38vw, 39vh);
    min-width: 284px;
  }
  [data-screen="set"] .preset-block {
    width: 100%;
    margin: -4px 0 3px;
  }
  [data-screen="set"] .preset-buttons button {
    min-height: 48px;
    padding-inline: 8px;
  }
  [data-screen="set"] .preset-block > small,
  [data-screen="set"] .orbit-hint,
  [data-screen="set"] .time-reference p,
  [data-screen="set"] .rules-note { display: none; }
  [data-screen="set"] .orbit-meta {
    display: block;
    width: 100%;
    margin: 0;
  }
  [data-screen="set"] .time-reference {
    display: grid;
    grid-template-columns: auto auto;
    gap: 3px 12px;
    align-items: baseline;
    justify-content: center;
    padding: 6px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: center;
  }
  [data-screen="set"] .time-reference > span { grid-column: 1 / -1; }
  [data-screen="set"] .time-reference strong { font-size: 17px; }
  [data-screen="set"] .rules-heading { padding: 12px 16px 10px; }
  [data-screen="set"] .rules-heading h2 { font-size: 34px; }
  [data-screen="set"] .feature-row { padding: 9px 14px; }
  [data-screen="set"] .feature-row small { font-size: 11px; }
  [data-screen="set"] .start-bar { padding-top: 8px; }

  .receipt-screen.is-active {
    display: flex;
    height: calc(100svh - 48px);
    min-height: 0;
    padding: 14px 22px 76px;
    flex-direction: column;
    overflow: hidden;
  }
  .receipt-heading {
    order: 0;
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
    gap: 14px;
    align-items: start;
  }
  .receipt-heading h1 { font-size: 52px; }
  .receipt-heading dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .receipt-heading dl div {
    display: block;
    padding: 6px 8px;
    border-right: 1px dotted var(--line);
    font-size: 10px;
  }
  .receipt-heading dl div:nth-child(3n) { border-right: 0; }
  .receipt-heading dd {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 850;
    text-align: left;
  }
  .takeaway-panel {
    order: 1;
    display: block;
    margin-top: 10px;
  }
  .takeaway-copy { display: none; }
  .takeaway-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .takeaway-actions article {
    display: grid;
    grid-template-columns: minmax(92px, 1fr) auto auto;
    gap: 6px;
    min-height: 64px;
    padding: 7px;
    border-bottom: 0;
  }
  .takeaway-actions article + article { border-left: 1px solid var(--line); }
  .takeaway-actions article > div { grid-column: auto; }
  .takeaway-actions small { display: none; }
  .takeaway-actions button {
    min-height: 50px;
    padding-inline: 8px;
    font-size: 10px;
  }
  .receipt-chart-section {
    order: 2;
    margin-top: 10px;
    padding: 8px 10px 5px;
  }
  .receipt-chart { height: 105px; }
  .receipt-grid {
    order: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 10px;
  }
  .receipt-grid .receipt-repeats { display: none; }
  .receipt-grid article {
    min-height: 112px;
    padding: 10px;
    border-right: 1px solid var(--line);
  }
  .receipt-grid article:last-child { border-right: 0; }
  .receipt-stat strong { margin: 6px 0; font-size: 38px; }
  .receipt-stat p { margin: 0; font-size: 11px; }
  .receipt-actions {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    order: 4;
    display: block;
    margin: 0;
    padding: 6px 16px;
    border: 0;
    border-top: 1px solid var(--ink);
    background: rgba(243,241,235,.97);
    backdrop-filter: blur(12px);
  }
  .receipt-actions button {
    width: 100%;
    min-height: 58px;
    border: 1px solid var(--ink);
    font-size: 12px;
  }
  .receipt-actions p,
  .receipt-actions > b { display: none; }
}

@media (max-width: 600px) {
  .topbar {
    grid-template-columns: minmax(112px, 1fr) auto;
    padding-inline: 10px 6px;
  }
  .brand {
    font-size: 18px;
    text-overflow: clip;
  }
  .topbar button,
  .language-control select { font-size: 11px; }
  .topbar-nav button { padding-inline: 8px; }

  [data-screen="enter"].is-active { grid-template-rows: minmax(0, 1fr) 40px; }
  [data-screen="enter"] .enter-grid { padding: 18px 16px 14px; }
  [data-screen="enter"] .eyebrow { font-size: 11px; }
  [data-screen="enter"] .enter-copy h1 {
    margin: 14px 0;
    font-size: clamp(46px, 14vw, 56px);
  }
  [data-screen="enter"] .lede {
    max-width: 300px;
    margin-bottom: 14px;
    font-size: 14px;
  }
  [data-screen="enter"] .enter-copy > button { font-size: 12px; }
  [data-screen="enter"] .screen-footer {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 12px;
  }

  [data-screen="set"] .orbit-readout { top: 34%; bottom: auto; }
  [data-screen="set"] .orbit-readout output,
  [data-screen="set"] .allowance-orbit[data-digits="4"] .orbit-readout output { font-size: 36px; }
  [data-screen="set"] .orbit-knob strong { font-size: 14px; }
  [data-screen="set"] .orbit-knob small { font-size: 10px; }
  [data-screen="set"] .orbit-tick { font-size: 10px; }
  [data-screen="set"] .preset-buttons button { font-size: 11px; }
  [data-screen="set"] .time-reference > span,
  [data-screen="set"] .time-reference small { font-size: 10px; }
  [data-screen="set"] .feature-row b { font-size: 11px; }
  [data-screen="set"] .start-bar button { font-size: 11px; }

  .meeting-actions button { font-size: 11px; }
  .counter-state { font-size: 12px; }
  .usage-chart-card h2 { font-size: 11px; }
  .usage-chart-card header > strong,
  .usage-chart-card footer { font-size: 10px; }
  .transcript-label { font-size: 12px; }

  .receipt-heading dl div { font-size: 10px; }
  .receipt-heading dt { min-height: 24px; }
  .receipt-heading dd { font-size: 12px; }
  .takeaway-actions span,
  .takeaway-actions button { font-size: 11px; }
  .receipt-stat small { font-size: 11px; }
  .access-actions button { font-size: 12px; }
}

@media (max-width: 600px) and (max-height: 700px) {
  [data-screen="enter"] .enter-copy h1 { font-size: clamp(42px, 12.5vw, 48px); }
  [data-screen="enter"] .lede { font-size: 13px; }
  [data-screen="set"] .setup-heading h1 { font-size: 28px; }
  [data-screen="set"] .preset-buttons button { min-height: 48px; }
  [data-screen="set"] .feature-row { min-height: 58px; }
  .receipt-heading h1 { font-size: 32px; }
}
