/* MERIDIAN — Prawn Group's capital strategy, in the same standing field of light.
 *
 * This is the holdco cockpit's sheet (holdco.prawngroup.com), continued. Same tokens, same
 * two washes, same three faces, same four rules — because it is the same group and a
 * sibling page that merely *resembles* the cockpit would read as a different company.
 *
 * The four rules, unchanged:
 *
 * 1. **Light, not boxes.** A region is a wash that fades to nothing and a hairline that
 *    fades at both ends — never a rectangle with a border and a shadow. The only shadow in
 *    the file belongs to the editor panel, because it genuinely floats.
 * 2. **The brand orange is the voice, never a status.** It marks where you are, the figure
 *    that governs, the focus ring and the one control that commits.
 * 3. **The state of a figure is drawn, not just coloured.** A number this page cannot know
 *    is a rule, not a zero (`.blank`); a projection is set in a lighter weight and says so
 *    in words (`.proj`); a measured figure is set in the data face. Colourblind, in
 *    sunlight and in greyscale, the three still read differently.
 * 4. **Motion is physical and optional.** One ease, entry animations that only ever *add*
 *    to a correct static state, and `prefers-reduced-motion` turns all of it off.
 *
 * Mobile-first, and every media query adds. The widest thing on the page — the office
 * ladder — is a stack of labelled pairs on a phone and a table on a desktop, from one
 * markup, so nothing is ever clipped or side-scrolled.
 */

@font-face {
  font-family: "Voice"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/font-display.woff2) format("woff2-variations"),
       url(/static/font-display.woff2) format("woff2");
}
@font-face {
  font-family: "Page"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/font-ui.woff2) format("woff2-variations"),
       url(/static/font-ui.woff2) format("woff2");
}
@font-face {
  font-family: "Data"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/font-mono.woff2) format("woff2");
}
@font-face {
  font-family: "Data"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/font-mono-500.woff2) format("woff2");
}

/* ── night ──────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --ink: 246,242,234;

  --ground:  #0B0A09;
  --deep:    #070605;
  --text:    #F6F2EA;
  --text-2:  #A9A299;
  --text-3:  #7B746B;
  --text-4:  #585249;

  --edge:      rgba(var(--ink),.10);
  --edge-firm: rgba(var(--ink),.19);
  --wash:      rgba(var(--ink),.035);
  --wash-2:    rgba(var(--ink),.065);
  --over:      rgba(var(--ink),.055);
  --filament:  rgba(var(--ink),.22);
  --scrim:     rgba(4,3,2,.62);
  --grain:     .035;

  --accent:     #FF6A1F;
  --accent-ink: #FF8A4C;
  --on-accent:  #1A0B02;
  --accent-ln:  rgba(255,106,31,.38);
  --accent-gl:  rgba(255,106,31,.16);

  --overdue: #FF6B5C; --overdue-gl: rgba(255,107,92,.17);
  --due:     #FFA94D; --due-gl:     rgba(255,169,77,.16);
  --soon:    #F2D15B; --soon-gl:    rgba(242,209,91,.15);
  --clear:   #5ED39B; --clear-gl:   rgba(94,211,155,.14);
  --dormant: #8A857C; --dormant-gl: rgba(138,133,124,.13);

  --voice: "Voice", "Iowan Old Style", Charter, Georgia, ui-serif, serif;
  --page: "Page", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  --data: "Data", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.16,1,.3,1);
  --pad: 22px;
  --spine: 0px;
  --lift: 0 2px 10px rgba(0,0,0,.4), 0 40px 90px -40px rgba(0,0,0,.95);
}

/* ── day: the same room with the lights on ───────────────────────────────── */
[data-theme="light"] {
  color-scheme: light;
  --ink: 18,17,14;

  --ground:  #F4F1EA;
  --deep:    #EAE6DC;
  --text:    #14130F;
  --text-2:  #55514A;
  --text-3:  #6E6962;
  --text-4:  #8C867D;

  --edge:      rgba(var(--ink),.13);
  --edge-firm: rgba(var(--ink),.24);
  --wash:      rgba(var(--ink),.032);
  --wash-2:    rgba(var(--ink),.055);
  --over:      rgba(var(--ink),.05);
  --filament:  rgba(var(--ink),.26);
  --scrim:     rgba(20,19,15,.34);
  --grain:     .024;

  --accent:     #C2410C;
  --accent-ink: #B23A09;
  --on-accent:  #FFF7F2;
  --accent-ln:  rgba(194,65,12,.34);
  --accent-gl:  rgba(194,65,12,.10);

  --overdue: #C62B20; --overdue-gl: rgba(198,43,32,.10);
  --due:     #A85706; --due-gl:     rgba(168,87,6,.10);
  --soon:    #87640A; --soon-gl:    rgba(135,100,10,.10);
  --clear:   #1F7A4D; --clear-gl:   rgba(31,122,77,.10);
  --dormant: #5F6368; --dormant-gl: rgba(95,99,104,.09);

  --lift: 0 2px 10px rgba(20,19,15,.08), 0 40px 80px -40px rgba(20,19,15,.5);
}

/* ── the room ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ground); color: var(--text);
  font: 15px/1.6 var(--page);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-wrap: break-word;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid var(--accent-ln); }
a:hover { border-bottom-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky i { position: absolute; display: block; }
.sky .w1 {
  top: -34vh; left: -22vw; width: 86vw; height: 86vh; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,176,112,.085), transparent 72%);
}
.sky .w2 {
  bottom: -40vh; right: -28vw; width: 92vw; height: 92vh; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126,160,230,.07), transparent 72%);
}
[data-theme="light"] .sky .w1 {
  background: radial-gradient(closest-side, rgba(255,150,70,.13), transparent 70%);
}
[data-theme="light"] .sky .w2 {
  background: radial-gradient(closest-side, rgba(90,120,190,.10), transparent 70%);
}
.sky .grain {
  inset: 0; opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: fixed; left: 10px; top: -60px; z-index: 90; padding: 10px 14px;
  background: var(--ground); border: 1px solid var(--edge-firm); border-radius: 3px;
}
.skip:focus { top: 10px; }

.mono { font-family: var(--data); font-variant-numeric: tabular-nums; }

/* ── the spine ────────────────────────────────────────────────────────────────
 * On a phone it is a strip along the bottom edge — each tap target is full height and an
 * equal share of the width, while what you *see* is a 2px dash. On a wide screen it stands
 * on the left and the current region names itself.
 */
.spine {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  display: flex; align-items: stretch; gap: 0;
  padding: 0 8px calc(env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--ground) 56%, transparent);
  backdrop-filter: blur(6px);
}
.sp {
  flex: 1; height: 42px; position: relative; display: grid; place-items: center;
  color: var(--text-4); min-width: 0;
}
.sp::before {
  content: ""; width: 58%; max-width: 28px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .5;
  transition: width .5s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.sp.on { color: var(--accent-ink); }
.sp.on::before { opacity: 1; width: 90%; box-shadow: 0 0 10px var(--accent-gl); }
.sp .sp-dot {
  position: absolute; top: 8px; left: 50%; margin-left: 9px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--due);
}
.sp .sp-name { display: none; }

@media (min-width: 1000px) {
  :root { --spine: 174px; }
  .spine {
    left: 0; right: auto; top: 0; bottom: 0; width: var(--spine);
    flex-direction: column; justify-content: center; gap: 2px;
    padding: 0 0 0 26px; background: none; backdrop-filter: none;
  }
  .sp {
    flex: 0 0 auto; height: 26px; width: 100%; display: flex; align-items: center;
    justify-content: flex-start; gap: 10px;
  }
  .sp::before { width: 14px; max-width: none; flex: 0 0 auto; }
  .sp.on::before { width: 30px; }
  .sp:hover::before { width: 24px; opacity: .9; }
  .sp .sp-name {
    display: block; font-family: var(--data); font-size: 9.5px; letter-spacing: .17em;
    text-transform: uppercase; opacity: 0; transform: translateX(-4px);
    transition: opacity .35s var(--ease), transform .35s var(--ease); white-space: nowrap;
  }
  .sp.on .sp-name, .sp:hover .sp-name { opacity: 1; transform: none; }
  .sp .sp-dot { top: 4px; left: 8px; margin-left: 0; }
}

/* ── the surface ──────────────────────────────────────────────────────────── */
main {
  position: relative; z-index: 1;
  padding: 0 var(--pad) calc(96px + env(safe-area-inset-bottom));
  max-width: calc(1100px + var(--spine)); margin: 0;
}
@media (min-width: 1000px) {
  main { padding: 0 48px 120px var(--spine); }
}

.region { padding: 0 0 clamp(54px, 9vh, 96px); scroll-margin-top: 26px; }
#standing { padding-top: clamp(30px, 7vh, 72px); }

.r-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.r-head h2 {
  font-family: var(--data); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--text-2);
}
.r-head .r-job { font-size: 12.5px; color: var(--text-4); font-style: italic; }
.r-head .r-act { margin-left: auto; display: flex; gap: 14px; align-items: baseline; }
.r-rule {
  height: 1px; margin: 0 0 20px;
  background: linear-gradient(to right, var(--edge-firm), var(--edge) 32%, transparent 86%);
}

/* ── the crown and the first sentence ─────────────────────────────────────── */
.crown {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--data); font-size: 10px; letter-spacing: .19em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: clamp(26px, 6vh, 56px);
}
.crown .mk { width: 15px; height: auto; display: block; opacity: .85; }
.crown .sep { color: var(--text-4); opacity: .45; }
.crown .push { display: none; }
@media (min-width: 760px) { .crown .push { display: block; margin-left: auto; } }
.crown button, .crown a {
  font: inherit; letter-spacing: inherit; color: var(--text-4); border-bottom: 0;
}
.crown button:hover, .crown a:hover { color: var(--accent-ink); }
.crown .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--clear);
  box-shadow: 0 0 0 3px var(--clear-gl); display: inline-block;
}
.crown .dot.cold { background: var(--dormant); box-shadow: 0 0 0 3px var(--dormant-gl); }
.crown .dot.warm { background: var(--due); box-shadow: 0 0 0 3px var(--due-gl); }

.say {
  font-family: var(--voice); font-weight: 300;
  font-variation-settings: "SOFT" 28, "WONK" 0, "opsz" 120;
  font-size: clamp(31px, 7.4vw, 60px); line-height: 1.08; letter-spacing: -.021em;
  margin: 0 0 18px; max-width: 19ch;
}
@media (min-width: 760px) { .say { max-width: 24ch; } }
.say .q { color: var(--text-3); }
.say .hot { color: var(--overdue); }
.say .good { color: var(--clear); }
.say-next {
  font-family: var(--voice); font-weight: 300;
  font-variation-settings: "SOFT" 28, "opsz" 48;
  font-size: clamp(18px, 3.4vw, 25px); line-height: 1.35; color: var(--text-2);
  max-width: 36ch; margin: 0 0 22px;
}
.say-next b { color: var(--text); font-weight: 400; }
.say-next .num { font-family: var(--data); font-size: .88em; color: var(--accent-ink); }

/* The four standing figures. Not cards — a row of readings separated by light. */
.tally {
  display: grid; gap: 20px 26px; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px 0 0; border-top: 1px solid var(--edge); margin-bottom: 34px;
}
@media (min-width: 760px) { .tally { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fig { min-width: 0; }
.fig .k {
  display: block; font-family: var(--data); font-size: 9.5px; letter-spacing: .19em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 7px;
}
.fig .v {
  font-family: var(--data); font-variant-numeric: tabular-nums; font-weight: 500;
  font-size: clamp(20px, 4.6vw, 27px); line-height: 1.1; letter-spacing: -.02em;
  display: block; overflow-wrap: anywhere;
}
.fig .n { display: block; font-size: 11.5px; color: var(--text-4); margin-top: 7px;
  line-height: 1.45; }
.fig.lit .v { color: var(--accent-ink); }
.fig.good .v { color: var(--clear); }
.fig.warn .v { color: var(--due); }
/* A figure this page cannot know is a rule, never a zero. It is the same height as a
   number so the row does not jump when he fills one in. */
.fig .v.blank {
  color: var(--text-4); font-weight: 400;
}
.fig .v.blank::before {
  content: ""; display: inline-block; width: 1.6em; height: 2px; border-radius: 2px;
  background: var(--filament); vertical-align: .35em; margin-right: .4em;
}
/* A projected figure is set lighter and italic, and always carries a word beside it. */
.fig .v.proj { font-weight: 400; color: var(--text-2); }
.fig .tag {
  display: inline-block; font-family: var(--data); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-4); border: 1px solid var(--edge-firm);
  border-radius: 2px; padding: 2px 5px; margin-top: 8px;
}
.fig .tag.proj { color: var(--soon); border-color: var(--soon-gl); }
.fig .tag.real { color: var(--clear); border-color: var(--clear-gl); }
.fig .tag.unread { color: var(--due); border-color: var(--due-gl); }

/* ── the coach's voice ────────────────────────────────────────────────────── */
.read { max-width: 68ch; }
.read p {
  font-size: 14.5px; line-height: 1.72; color: var(--text-2); margin: 0 0 15px;
}
.read p:first-child { color: var(--text); }
.read strong { color: var(--text); font-weight: 500; }
.do {
  display: flex; gap: 12px; align-items: flex-start; max-width: 68ch;
  margin: 24px 0 0; padding: 14px 0 0; border-top: 1px solid var(--edge);
}
.do .lbl {
  font-family: var(--data); font-size: 9.5px; letter-spacing: .19em; text-transform: uppercase;
  color: var(--accent-ink); flex: 0 0 auto; padding-top: 4px;
}
.do .t { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ── a row of readings: vendor lines, plan lines, product lines ───────────── */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: baseline; gap: 14px; padding: 13px 8px 13px 16px;
  position: relative; border-bottom: 1px solid var(--edge);
  transition: background .3s var(--ease), padding-left .35s var(--ease);
}
.row:last-child { border-bottom: 0; }
.row::before {
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 2px;
  border-radius: 2px; background: var(--dormant);
  transition: top .35s var(--ease), bottom .35s var(--ease);
}
.row:hover { background: var(--over); padding-left: 21px; }
.row:hover::before { top: 6px; bottom: 6px; }
.row .what { flex: 1; min-width: 0; font-size: 15.5px; }
.row .who {
  display: block; font-family: var(--data); font-size: 10.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-4); margin-top: 3px;
}
.row .note { display: block; font-size: 12.5px; color: var(--text-4); margin-top: 5px;
  line-height: 1.5; max-width: 58ch; }
.row .amt {
  font-family: var(--data); font-variant-numeric: tabular-nums; font-size: 13.5px;
  color: var(--text); flex: 0 0 auto; text-align: right; white-space: nowrap;
}
.row .amt .sub { display: block; font-size: 10.5px; color: var(--text-4); margin-top: 4px;
  letter-spacing: .06em; }
.row .amt.zero { color: var(--text-4); }
.row.t-working::before { background: var(--accent); box-shadow: 0 0 12px var(--accent-gl); }
.row.t-flag::before { background: var(--due); }
.row.t-quiet::before { background: var(--dormant); opacity: .6; }
.row.t-fixed::before { background: var(--soon); }
@media (max-width: 559px) {
  .row { flex-wrap: wrap; gap: 4px 14px; }
  .row .amt { width: 100%; text-align: left; }
  .row .amt .sub { display: inline; margin: 0 0 0 10px; }
}

/* ── the split: four buckets as bars of light ─────────────────────────────── */
.buckets { display: flex; flex-direction: column; gap: 0; }
.bucket { padding: 18px 0; border-bottom: 1px solid var(--edge); }
.bucket:last-child { border-bottom: 0; }
.b-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.b-head .nm {
  font-family: var(--voice); font-weight: 400; font-size: 20px; letter-spacing: -.01em;
  font-variation-settings: "SOFT" 28, "opsz" 28;
}
.b-head .pct {
  font-family: var(--data); font-variant-numeric: tabular-nums; font-weight: 500;
  font-size: 17px; color: var(--accent-ink); margin-left: auto; white-space: nowrap;
}
.b-head .pct.unset { color: var(--text-4); font-weight: 400; }
.b-job { font-size: 12.5px; color: var(--text-3); margin: 5px 0 0; }
.b-why { font-size: 13px; color: var(--text-4); margin: 9px 0 0; max-width: 62ch;
  line-height: 1.6; }
/* The bar. A share of light, not a progress meter — it never reads as "done". */
.b-bar {
  height: 3px; margin: 14px 0 0; background: var(--wash-2); border-radius: 3px;
  overflow: hidden;
}
.b-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-ln));
  transition: width .6s var(--ease);
}
.bucket.unset .b-bar i { background: var(--filament); }
.b-at {
  display: grid; gap: 10px 22px; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin: 14px 0 0;
}
.b-at .at { min-width: 0; }
.b-at .at .k {
  display: block; font-family: var(--data); font-size: 9px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 4px;
}
.b-at .at .v {
  font-family: var(--data); font-variant-numeric: tabular-nums; font-size: 14px;
  color: var(--text-2);
}
.b-at .at .v.blank { color: var(--text-4); }

.suggest {
  margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--edge); max-width: 68ch;
}
.suggest h4 {
  font-family: var(--data); font-size: 9.5px; letter-spacing: .19em; text-transform: uppercase;
  color: var(--soon); margin-bottom: 10px;
}
.suggest .nums {
  font-family: var(--data); font-variant-numeric: tabular-nums; font-size: 13.5px;
  color: var(--text-2); margin: 0 0 10px; display: flex; gap: 8px 18px; flex-wrap: wrap;
}
.suggest .nums b { color: var(--text); font-weight: 500; }
.suggest p { font-size: 13px; color: var(--text-4); line-height: 1.65; margin: 0 0 16px; }

/* ── the break-even tracker ───────────────────────────────────────────────── */
.gauge { margin: 0 0 26px; max-width: 68ch; }
.gauge .track {
  position: relative; height: 4px; background: var(--wash-2); border-radius: 4px;
  margin: 14px 0 0;
}
.gauge .track i {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px;
  background: linear-gradient(to right, var(--due), var(--accent));
  transition: width .7s var(--ease);
}
.gauge.covered .track i { background: linear-gradient(to right, var(--clear), var(--clear)); }
.gauge .mark {
  position: absolute; top: -5px; width: 1px; height: 14px; background: var(--filament);
}
.gauge .mark::after {
  content: attr(data-l); position: absolute; top: 18px; left: 0; transform: translateX(-50%);
  font-family: var(--data); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-4); white-space: nowrap;
}
.gauge .legend {
  display: flex; gap: 8px 20px; flex-wrap: wrap; margin: 34px 0 0;
  font-family: var(--data); font-size: 11px; letter-spacing: .08em; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.gauge .legend b { color: var(--text); font-weight: 500; }
.gauge .legend .good { color: var(--clear); }

/* ── the ladder of value ──────────────────────────────────────────────────── */
.bands { display: flex; flex-direction: column; gap: 0; margin-bottom: 26px; }
.band {
  display: flex; align-items: baseline; gap: 14px; padding: 15px 0;
  border-bottom: 1px solid var(--edge); flex-wrap: wrap;
}
.band:last-child { border-bottom: 0; }
.band .nm { flex: 1 1 180px; min-width: 0; font-size: 15px; }
.band .nm .u {
  display: block; font-size: 12.5px; color: var(--text-4); margin-top: 4px;
  line-height: 1.5; max-width: 56ch;
}
.band .rng {
  font-family: var(--data); font-variant-numeric: tabular-nums; font-size: 14.5px;
  color: var(--text); flex: 0 0 auto; white-space: nowrap;
}
.band.govern { position: relative; }
.band.govern .rng { color: var(--accent-ink); font-weight: 500; }
.band.govern .nm::before {
  content: "governs"; font-family: var(--data); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-ink); border: 1px solid var(--accent-ln);
  border-radius: 2px; padding: 2px 5px; margin-right: 9px; vertical-align: 1px;
}
.band.dim .rng, .band.dim .nm { color: var(--text-3); }

/* ── the climb: one markup, a stack on a phone and a table on a desktop ──── */
.rungs { display: flex; flex-direction: column; }
.rung-head { display: none; }
.rung {
  display: grid; gap: 10px 18px; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px 0 16px 16px; position: relative; border-bottom: 1px solid var(--edge);
}
.rung:last-child { border-bottom: 0; }
.rung::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  border-radius: 2px; background: var(--filament); opacity: .5;
}
.rung.mine::before { background: var(--accent); box-shadow: 0 0 12px var(--accent-gl);
  opacity: 1; }
.rung.noted::before { background: var(--soon); opacity: .9; }
.rung .c { min-width: 0; }
.rung .c .k {
  display: block; font-family: var(--data); font-size: 9px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 4px;
}
.rung .c .v {
  font-family: var(--data); font-variant-numeric: tabular-nums; font-size: 14px;
  color: var(--text-2); overflow-wrap: anywhere;
}
.rung .c.lead .v { color: var(--text); font-weight: 500; font-size: 16px; }
.rung .c .v.blank { color: var(--text-4); }
.rung .flag {
  grid-column: 1 / -1; font-family: var(--data); font-size: 9.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--soon);
}
.rung.mine .flag { color: var(--accent-ink); }
/* The same words, carried by the office count once the stack becomes a table. */
.rung .c .mk { display: none; }

@media (min-width: 900px) {
  .rungs { display: table; width: 100%; border-collapse: collapse; }
  .rung-head, .rung { display: table-row; }
  .rung-head > span, .rung > .c {
    display: table-cell; padding: 12px 14px 12px 0; vertical-align: baseline;
    border-bottom: 1px solid var(--edge); text-align: right;
  }
  .rung-head > span {
    font-family: var(--data); font-size: 9px; letter-spacing: .17em; text-transform: uppercase;
    color: var(--text-4); border-bottom-color: var(--edge-firm); white-space: nowrap;
  }
  .rung-head > span:first-child, .rung > .c:first-child { text-align: left; }
  .rung::before { display: none; }
  .rung > .c .k { display: none; }
  .rung > .c:first-child { position: relative; padding-left: 16px; }
  .rung > .c:first-child::before {
    content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px;
    border-radius: 2px; background: var(--filament); opacity: .45;
  }
  .rung.mine > .c:first-child::before { background: var(--accent); opacity: 1;
    box-shadow: 0 0 10px var(--accent-gl); }
  .rung.noted > .c:first-child::before { background: var(--soon); opacity: .9; }
  .rung .flag { display: none; }
  .rung .c .mk {
    display: block; font-family: var(--data); font-size: 9px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--soon); margin-top: 4px; font-weight: 400;
    white-space: normal; max-width: 15ch;
  }
  .rung.mine .c .mk { color: var(--accent-ink); }
  .rung:hover > .c { background: var(--over); }
}
.rungs-note { font-size: 12.5px; color: var(--text-4); max-width: 68ch; margin: 18px 0 28px;
  line-height: 1.6; }

/* ── the assumptions strip ────────────────────────────────────────────────── */
.assume {
  display: flex; gap: 14px 26px; flex-wrap: wrap; align-items: flex-end;
  padding: 16px 0 20px; margin-bottom: 8px; border-bottom: 1px solid var(--edge);
}
.assume .one { min-width: 0; }
.assume label {
  display: block; font-family: var(--data); font-size: 9px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 5px;
}
.assume input {
  width: 112px; max-width: 42vw; padding: 5px 0; background: none; color: var(--text);
  font-family: var(--data); font-variant-numeric: tabular-nums; font-size: 15px;
  border: 0; border-bottom: 1px solid var(--edge-firm); border-radius: 0;
}
.assume input:focus { outline: none; border-bottom-color: var(--accent); }
.assume .src { font-size: 11.5px; color: var(--text-4); flex: 1 1 200px; line-height: 1.5; }

/* ── the posture ──────────────────────────────────────────────────────────── */
.chain { display: flex; flex-direction: column; gap: 0; margin-bottom: 30px; }
.link {
  display: flex; align-items: baseline; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--edge); flex-wrap: wrap;
}
.link:last-child { border-bottom: 0; }
.link .nm {
  font-family: var(--voice); font-weight: 400; font-size: 18px; letter-spacing: -.01em;
  font-variation-settings: "SOFT" 28, "opsz" 24;
}
.link .st {
  font-family: var(--data); font-size: 9.5px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--text-4); border: 1px solid var(--edge-firm); border-radius: 2px;
  padding: 2px 6px;
}
.link .nt { flex: 1 0 100%; font-size: 13px; color: var(--text-3); margin-top: 2px; }
.notes { display: grid; gap: 24px 36px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .notes { grid-template-columns: 1fr 1fr; } }
.note-b h4 {
  font-family: var(--data); font-size: 9.5px; letter-spacing: .19em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 8px;
}
.note-b p { font-size: 13.5px; line-height: 1.68; color: var(--text-3); margin: 0;
  max-width: 54ch; }

/* ── your numbers ─────────────────────────────────────────────────────────── */
.answers { display: flex; flex-direction: column; margin-bottom: 24px; }
.answer {
  display: flex; align-items: baseline; gap: 14px; padding: 15px 0;
  border-bottom: 1px solid var(--edge); flex-wrap: wrap;
}
.answer:last-child { border-bottom: 0; }
.answer .q { flex: 1 1 200px; min-width: 0; font-size: 14.5px; }
.answer .q .h { display: block; font-size: 12.5px; color: var(--text-4); margin-top: 4px;
  line-height: 1.5; max-width: 52ch; }
.answer .a {
  font-family: var(--data); font-variant-numeric: tabular-nums; font-size: 14.5px;
  color: var(--text); flex: 0 0 auto; text-align: right;
}
.answer .a.empty { color: var(--text-4); font-style: italic; font-family: var(--page); }
.answer .a.prose { font-family: var(--page); text-align: left; flex: 1 0 100%;
  color: var(--text-2); font-size: 13.5px; line-height: 1.6; }

.missing {
  margin: 0 0 26px; padding: 16px 0 0; border-top: 1px solid var(--edge); max-width: 68ch;
}
.missing h4 {
  font-family: var(--data); font-size: 9.5px; letter-spacing: .19em; text-transform: uppercase;
  color: var(--due); margin-bottom: 10px;
}
.missing ul { margin: 0; padding-left: 18px; }
.missing li { font-size: 13.5px; color: var(--text-3); margin-bottom: 5px; }

/* ── controls ─────────────────────────────────────────────────────────────── */
.act {
  font-family: var(--data); font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-2); padding-bottom: 3px; border-bottom: 1px solid var(--edge-firm);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.act:hover { color: var(--text); border-color: var(--text-3); }
.act.go { color: var(--accent-ink); border-color: var(--accent-ln); }
.act.go:hover { border-color: var(--accent); }
.act[disabled] { opacity: .45; cursor: default; }

.quiet { color: var(--text-4); font-size: 13px; }
.foot-note {
  margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--edge);
  font-size: 11.5px; line-height: 1.65; color: var(--text-4); max-width: 74ch;
}
.foot-note strong { color: var(--text-3); font-weight: 500; }

/* ── the editor: a panel of light, not a card ─────────────────────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end;
  justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(7px); }
.sheet {
  position: relative; width: 100%; max-width: 620px; max-height: 92dvh; overflow-y: auto;
  background: var(--ground); box-shadow: var(--lift);
  border-top: 1px solid var(--accent-ln);
  padding: 22px var(--pad) calc(26px + env(safe-area-inset-bottom));
  animation: rise .45s var(--ease) both;
}
@keyframes rise { from { transform: translateY(26px); opacity: 0; } }
@media (min-width: 760px) {
  .sheet-wrap { align-items: stretch; justify-content: flex-end; }
  .sheet {
    max-width: 540px; max-height: none; height: 100%; border-top: 0;
    border-left: 1px solid var(--accent-ln); padding: 34px 34px 44px;
    animation-name: slide;
  }
  @keyframes slide { from { transform: translateX(36px); opacity: 0; } }
}
.sheet-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.sheet-head h3 {
  font-family: var(--voice); font-weight: 400; font-size: 24px; letter-spacing: -.015em;
  flex: 1; min-width: 0; font-variation-settings: "SOFT" 28, "opsz" 32;
}
.sheet .note {
  font-family: var(--data); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-4); margin: 0 0 24px;
}
.field { margin-bottom: 18px; }
.field > label {
  display: block; font-family: var(--data); font-size: 9.5px; letter-spacing: .19em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 5px;
}
/* Underlines, not boxes. A field is a place to write on. */
.field input, .field select, .field textarea {
  width: 100%; padding: 7px 0; background: none; color: var(--text); font-size: 15px;
  border: 0; border-bottom: 1px solid var(--edge-firm); border-radius: 0;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 22px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
                    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 10px) 16px, calc(100% - 5px) 16px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--accent);
}
.field .tip { color: var(--text-4); font-size: 11.5px; margin-top: 6px; line-height: 1.5; }
.field.four { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field.two { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field.two > div, .field.four > div { min-width: 0; }
.sum {
  font-family: var(--data); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-4); margin: -6px 0 22px;
}
.sum.bad { color: var(--overdue); }
.sum.ok { color: var(--clear); }
.sheet-actions {
  display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; align-items: baseline;
  padding-top: 20px; border-top: 1px solid var(--edge);
}
.sheet-actions .spacer { margin-left: auto; }
.err-box { color: var(--overdue); font-size: 13px; margin-top: 14px; }

/* ── toast ────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 80;
  padding: 11px 20px; background: var(--ground); border: 1px solid var(--edge-firm);
  border-radius: 2px; box-shadow: var(--lift); font-size: 13.5px; max-width: 90vw;
  text-align: center; animation: rise .4s var(--ease) both;
}
.toast.bad { border-color: var(--overdue); color: var(--overdue); }
@media (min-width: 1000px) { .toast { bottom: 30px; } }

/* ── sign in ──────────────────────────────────────────────────────────────── */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 26px;
  position: relative; z-index: 1; }
.auth { width: 100%; max-width: 420px; text-align: left; }
.auth .mark { width: 30px; height: auto; display: block; margin: 0 0 30px; }
.auth h1 {
  font-family: var(--voice); font-weight: 300; font-variation-settings: "SOFT" 28, "opsz" 72;
  font-size: clamp(34px, 9vw, 46px); line-height: 1.06; letter-spacing: -.022em;
  margin-bottom: 12px;
}
.auth p { color: var(--text-3); font-size: 14px; margin: 0 0 30px; max-width: 34ch; }
.primary {
  font-family: var(--data); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-ink); padding: 0 0 5px; border-bottom: 1px solid var(--accent-ln);
  transition: border-color .3s var(--ease);
}
.primary:hover { border-bottom-color: var(--accent); }
.primary:disabled { opacity: .5; cursor: default; }
.msg { margin-top: 20px; font-size: 13px; color: var(--text-3); min-height: 20px; }
.msg.err { color: var(--overdue); }
.msg.ok { color: var(--clear); }
.hidden { display: none !important; }

/* ── entry: the page settles in once, and only once ────────────────────────── */
@keyframes settle { from { opacity: 0; transform: translateY(14px); } }
@keyframes widen { from { opacity: 0; transform: scaleX(0); } }
body:not(.settled) .say { animation: settle .72s var(--ease) both; }
body:not(.settled) .say-next { animation: settle .72s .09s var(--ease) both; }
body:not(.settled) .tally { animation: settle .6s .18s var(--ease) both; }
body:not(.settled) .crown { animation: settle .6s var(--ease) both; }
body:not(.settled) .r-rule { transform-origin: left; animation: widen .8s var(--ease) both; }

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