/* Anthropic IPO Watch: a calm terminal. One accent, no glow. */

:root {
  --bg: #0e1116;
  --panel: #131820;
  --raise: #19202a;
  --line: #2b3442;
  --line-strong: #46536a;
  --text: #d0d7de;
  --dim: #98a2b0;
  --faint: #7f8a99;
  --accent: #d9b36c; /* CALC */
  --press: #9fb7d9; /* PRESS */
  --market: #c7a8e6; /* MARKET */
  --pos: #8fc79a;
  --neg: #e39a9a;
  --s1: #5a8fd6; /* first chart series; the pair passes the colour-blind check on --panel */
  --s2: #cf7a3a; /* second chart series */
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", "SF Mono", Menlo, Consolas,
    "DejaVu Sans Mono", "Liberation Mono", monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 3.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--mono);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--text);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--panel);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

kbd {
  font: inherit;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0 0.4em;
  background: var(--raise);
}

/* ---- header ---------------------------------------------------------- */

.top,
.keys,
main,
.bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 1rem;
  padding-top: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* The project's own mark: a frame and a line that climbs in steps. */
.mark {
  width: 22px;
  height: 22px;
  flex: none;
}

.mk-frame {
  fill: var(--panel);
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.mk-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.mk-dot {
  fill: var(--text);
}

h1 .w1 {
  color: var(--text);
}

h1 .w2 {
  color: var(--accent);
}

h1 .w3 {
  color: var(--dim);
  font-weight: 400;
}

/* ---- the IPO at a glance ---------------------------------------------- */

.glance {
  max-width: 1360px;
  margin: 10px auto 0;
  padding: 0 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.stats > div {
  background: var(--panel);
  padding: 6px 10px 7px;
  min-width: 0;
}

.stats dt {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats dd {
  margin: 1px 0 0;
  font-size: 14px;
  white-space: nowrap;
}

.stats .to {
  color: var(--faint);
  padding: 0 0.15em;
}

.stages {
  display: flex;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--faint);
}

.stages li {
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.stages li + li::before {
  content: "";
  flex: 1 1 3rem;
  min-width: 0.4rem;
  margin-left: 0.4em;
  border-top: 1px dashed var(--line-strong);
  margin-right: 0.4em;
}

.stages .dot {
  width: 0.62em;
  height: 0.62em;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.st-done {
  color: var(--dim);
}

.st-done .dot {
  background: var(--pos);
  border-color: var(--pos);
}

.st-next {
  color: var(--text);
}

.st-next .dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 179, 108, 0.25);
}

.st-what {
  flex: none;
}

.prompt {
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.14em;
}

.tagline {
  margin: 0;
  color: var(--dim);
}

.disclaimer {
  margin: 0 0 0 auto;
  color: var(--dim);
  font-size: 12px;
}

/* ---- panel bar ------------------------------------------------------- */

.keys {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 0 1.3rem;
  white-space: nowrap;
  margin-top: 6px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  /* More panels than a phone is wide: the bar scrolls by itself, never the page. */
  overflow-x: auto;
  scrollbar-width: none;
}

.keys::-webkit-scrollbar {
  display: none;
}

.keys a,
.help-key {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--dim);
  text-decoration: none;
  font: inherit;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0;
  min-height: 40px;
  cursor: pointer;
}

.keys a:hover,
.help-key:hover {
  color: var(--text);
}

.keys a[aria-current="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.help-key {
  margin-left: auto;
}

/* ---- status ---------------------------------------------------------- */

.status {
  margin: 12px 0 22px;
  color: var(--dim);
  font-size: 13px;
}

.status dl {
  margin: 0;
}

.status dl > div {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0 0.5rem;
}

.status dt {
  color: var(--faint);
}

.status dt::after {
  content: ": ";
}

.status dd {
  margin: 0;
}

.wait {
  color: var(--accent);
}

.legend {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
  align-items: baseline;
}

.tag {
  margin-left: 0.4rem;
}

.legend .tag:first-child {
  margin-left: 0;
}

.hint {
  margin-left: 0.4rem;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 0.35em;
  white-space: nowrap;
}

.tag-filed {
  color: var(--text);
}

.tag-calc {
  color: var(--accent);
}

.tag-press {
  color: var(--press);
}

.tag-market {
  color: var(--market);
}

.live {
  color: var(--pos);
}

/* ---- numbers --------------------------------------------------------- */

button.n {
  position: relative;
  font: inherit;
  color: var(--text);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0;
}

button.n:hover,
button.n[aria-expanded="true"] {
  background: var(--raise);
  border-bottom-color: currentColor;
}

button.n-calc {
  color: var(--accent);
  border-bottom-style: dashed;
}

button.n-press {
  color: var(--press);
  border-bottom-style: dotted;
}

button.n-market {
  color: var(--market);
  border-bottom-style: double;
  border-bottom-width: 3px;
}

button.n.up {
  color: var(--pos);
}

button.n.down {
  color: var(--neg);
}

td button.n,
.big button.n {
  display: inline-block;
  min-height: 24px;
}

/* ---- panels ---------------------------------------------------------- */

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0 16px 16px;
  margin: 0 0 26px;
  min-width: 0;
  container-type: inline-size;
}

.panel:focus {
  outline: none;
  border-color: var(--line-strong);
}

.panel > h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin: -0.8em 0 10px -6px;
  padding: 0 6px;
  background: var(--bg);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.panel > h2 .q {
  color: var(--dim);
  font-weight: 400;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 20px;
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0 36px;
  align-items: start;
}

.cols-even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.cols-end {
  align-items: end;
}

/* A chart beside its table. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 0 36px;
  align-items: start;
  margin-top: 16px;
}

.split-tight {
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 0 24px;
  margin-top: 0;
}

.split > div > :first-child caption,
.split > table caption {
  padding-top: 0;
}

.chart-gap {
  margin-top: 22px;
}

/* A table behind a chart: open on a wide screen, folded away on a phone. */
.fold > summary {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0 4px;
  cursor: pointer;
  list-style: none;
}

.fold > summary::-webkit-details-marker {
  display: none;
}

.fold > summary::before {
  content: "▸ ";
  color: var(--faint);
}

.fold[open] > summary::before {
  content: "▾ ";
}

.fold > summary:hover {
  color: var(--text);
}

.lede {
  margin: 0 0 10px;
  max-width: 68ch;
}

.aside {
  margin: 10px 0 0;
  color: var(--dim);
  max-width: 78ch;
}

.notes {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--dim);
}

.notes li {
  margin-bottom: 6px;
}

.notes li::marker {
  color: var(--line-strong);
}

/* ---- tiles ----------------------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.tile {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 8px 12px 9px;
  min-width: 0;
}

.tile h3 {
  margin: 0 0 2px;
}

.tile-key {
  border-color: var(--line-strong);
}

.big {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.big .to {
  color: var(--dim);
  font-size: 14px;
  font-weight: 400;
}

.sub {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 12px;
}

/* ---- tables ---------------------------------------------------------- */

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 0 4px;
}

th,
td {
  padding: 3px 0;
  vertical-align: baseline;
  font-weight: 400;
}

th {
  text-align: left;
}

td {
  text-align: right;
  padding-left: 14px;
  white-space: nowrap;
}

thead th {
  color: var(--dim);
  font-size: 12px;
  text-align: right;
  padding-left: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}

thead th:first-child {
  text-align: left;
  padding-left: 0;
}

tbody tr + tr th,
tbody tr + tr td {
  border-top: 1px solid rgba(43, 52, 66, 0.55);
}

tr.sum th,
tr.sum td {
  border-top: 1px solid var(--line-strong);
  font-weight: 700;
}

tr.muted th {
  color: var(--dim);
}

/* The list of filings: a date, then a link and what the form is. */
.filed th {
  width: 7.5rem;
  padding-right: 10px;
  white-space: nowrap;
  color: var(--dim);
}

.filed td {
  padding-left: 0;
  text-align: left;
  white-space: normal;
}

.filed .what,
.filed .more {
  color: var(--dim);
}

/* Other documents of the same form and day: small links, still large enough for a thumb. */
.filed .more a {
  display: inline-block;
  min-width: 24px;
  min-height: 24px;
  text-align: center;
}

.op {
  display: inline-block;
  width: 1.2em;
  color: var(--dim);
}

.na {
  color: var(--faint);
}

.barcell {
  width: 30%;
  min-width: 70px;
  padding-left: 12px;
}

.bar {
  display: block;
  width: 100%;
  height: 8px;
}

.bar-stack {
  height: 12px;
  margin: 2px 0 6px;
}

.bar-bg {
  fill: var(--raise);
}

.bar-fg {
  fill: var(--line-strong);
}

.fg-base {
  fill: #7d8ba0;
}

.fg-sum {
  fill: var(--text);
}

.fg-muted {
  fill: #586479;
}

.fg-pos {
  fill: var(--pos);
}

.fg-neg {
  fill: var(--neg);
}

.fg-mid {
  fill: #b98a8a;
}

.fg-far {
  fill: #7d6a72;
}

.sw {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.5em;
}

span.fg-neg {
  background: var(--neg);
}

span.fg-mid {
  background: #b98a8a;
}

span.fg-far {
  background: #7d6a72;
}

.quarters th[scope="row"] {
  white-space: nowrap;
}

.quarters thead th {
  white-space: normal;
  max-width: 7.5rem;
}

/* ---- charts ----------------------------------------------------------
   Drawn on the server at phone width. Wider screens put them side by side,
   so the text inside keeps about the same size everywhere. */

.charts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 16px 0 6px;
}

.chart {
  margin: 0;
  min-width: 0;
}

.chart figcaption {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.chart-svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  overflow: visible;
}

.chart-svg text {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--dim);
}

.chart-svg .tick,
.chart-svg .ref-label {
  font-size: 10px;
  fill: var(--faint);
}

.chart-svg .cv,
.chart-svg .row-name {
  fill: var(--text);
}

.chart-svg .cv {
  cursor: pointer;
}

.chart-svg .cv-calc {
  fill: var(--accent);
}

.chart-svg .cv-press {
  fill: var(--press);
}

.chart-svg .cv-market {
  fill: var(--market);
}

.grid-line,
.chart-svg .grid {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-svg .zero,
.chart-svg .ref {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.chart-svg .ln {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-svg .dot {
  stroke: var(--panel);
  stroke-width: 2;
}

.chart-svg .s1 {
  fill: var(--s1);
}

.chart-svg .s2 {
  fill: var(--s2);
}

.chart-svg .ln.s1 {
  fill: none;
  stroke: var(--s1);
}

.chart-svg .ln.s2 {
  fill: none;
  stroke: var(--s2);
}

.chart-svg .pos {
  fill: var(--pos);
}

.chart-svg .neg {
  fill: var(--neg);
}

.chart-svg .apart {
  opacity: 0.55;
}

.chart-svg .pale {
  opacity: 0.3;
}

.chart-svg .track {
  fill: var(--raise);
}

.chart-svg .notch {
  stroke: var(--panel);
  stroke-width: 2;
}

.chart-svg .hit {
  fill: transparent;
  stroke: none;
}

.chart-svg .mark {
  cursor: pointer;
  outline: none;
}

.chart-svg .mark:hover .col,
.chart-svg .mark:hover .dot,
.chart-svg .mark:focus-visible .col,
.chart-svg .mark:focus-visible .dot {
  filter: brightness(1.25);
}

.chart-svg .mark:focus-visible .hit {
  stroke: var(--accent);
  stroke-width: 1.5;
}

.legend-keys {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0 0 4px;
  padding: 0;
  font-size: 12px;
  color: var(--dim);
}

.key {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
}

.key.s1 {
  background: var(--s1);
}

.key.s2 {
  background: var(--s2);
}

.tip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  background: #0a0d12;
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  font-size: 12px;
  white-space: nowrap;
}

.fresh {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 15;
  font: inherit;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 3px;
  padding: 8px 16px;
  min-height: 40px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.fg-s1 {
  fill: var(--s1);
}

.fg-s2 {
  fill: var(--s2);
}

.step-total {
  fill: var(--s1);
}

.step-minus,
.step-plus {
  fill: #7d8ba0;
}

.due th,
.due td {
  white-space: nowrap;
}

/* ---- source cards ---------------------------------------------------- */

.src {
  width: min(36rem, calc(100vw - 24px));
  max-height: min(34rem, calc(100vh - 24px));
  overflow: auto;
  margin: auto;
  padding: 14px 16px;
  background: #0a0d12;
  color: var(--text);
  border: 1px solid var(--line-strong);
  font: 13px/1.5 var(--mono);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.src::backdrop {
  background: rgba(5, 7, 10, 0.25);
}

.src.placed {
  margin: 0;
}

.src header {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.src p {
  margin: 8px 0 0;
}

.src-value {
  font-size: 16px;
  font-weight: 700;
}

.src-period {
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
  margin-left: 0.5rem;
}

.src-formula {
  color: var(--accent);
}

.src-terms {
  margin-top: 6px;
  font-size: 12px;
}

.src-terms th {
  color: var(--dim);
  padding-right: 10px;
}

.src-terms td {
  white-space: normal;
}

.src-terms td:last-child {
  text-align: left;
  color: var(--dim);
}

.src blockquote {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 2px solid var(--line-strong);
  background: var(--panel);
  overflow-wrap: anywhere;
}

.src-context {
  display: block;
  color: var(--dim);
  margin-bottom: 4px;
}

.src-note,
.src-where {
  color: var(--dim);
  font-size: 12px;
}

.src-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
}

.close {
  font: inherit;
  color: var(--text);
  background: var(--raise);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 3px 14px;
  min-height: 32px;
  margin-left: auto;
  cursor: pointer;
}

.close:hover {
  border-color: var(--text);
}

.keylist {
  margin: 8px 0 0;
}

.keylist > div {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  padding: 2px 0;
}

.keylist dd {
  margin: 0;
}

/* ---- footer ---------------------------------------------------------- */

.bottom {
  color: var(--dim);
  font-size: 12px;
  padding-top: 4px;
  padding-bottom: 28px;
}

.bottom p {
  margin: 6px 0 0;
  max-width: 90ch;
}

.bottom a {
  color: var(--dim);
}

/* ---- narrower panels ---------------------------------------------------
   Sized by the width of the panel, not of the screen: a panel is narrow on a
   phone, and also when two panels sit side by side on a laptop. */

@container (max-width: 1040px) {
  .charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 760px) {
  .cols,
  .split:not(.split-tight) {
    grid-template-columns: minmax(0, 1fr);
  }

  .split:not(.split-tight) > div {
    margin-top: 12px;
  }
}

@container (max-width: 540px) {
  .charts,
  .split-tight {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-tight > .fold {
    margin-top: 10px;
  }

  /* The bar drops under its label. */
  .lines.bars tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    border-top: 1px solid rgba(43, 52, 66, 0.55);
  }

  .lines.bars thead tr,
  .lines.bars tbody tr:first-child {
    border-top: 0;
  }

  .lines.bars tr.sum {
    border-top-color: var(--line-strong);
  }

  .lines.bars-wide tr {
    grid-template-columns: minmax(0, 1fr) 5.4em 4.2em;
  }

  .lines.bars th,
  .lines.bars td {
    padding-left: 0;
    border-top: 0;
  }

  .lines.bars .barcell {
    grid-column: 1 / -1;
    width: auto;
    min-width: 0;
    padding: 1px 0 7px;
    border-top: 0;
  }

  .lines.bars thead .barcol {
    display: none;
  }
}

@media (max-width: 860px) {
  .pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wide {
  display: inline;
}

.nw {
  white-space: nowrap;
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  .wide,
  .tagline,
  .hint,
  .keys kbd {
    display: none;
  }

  .top {
    padding-top: 10px;
  }

  .disclaimer {
    margin-left: 0;
    font-size: 11px;
  }

  /* A bar made for thumbs: five names across the screen, no keyboard keys. */
  .keys {
    justify-content: space-between;
    gap: 0;
    margin-top: 4px;
  }

  .keys a,
  .help-key {
    min-height: 44px;
    padding: 0 3px;
  }

  .help-key {
    margin-left: 0;
  }

  .help-key kbd {
    display: inline;
  }

  /* The market panel is the first thing on a phone: it needs no link. */
  .keys a.desk {
    display: none;
  }

  .status {
    margin: 8px 0 18px;
    font-size: 12px;
  }

  .status dl > div {
    display: block;
    margin-bottom: 2px;
  }

  .status dt,
  .status dd {
    display: inline;
  }

  .legend {
    gap: 0.2rem 0.9rem;
  }

  .panel {
    padding: 0 12px 14px;
    margin-left: -8px;
    margin-right: -8px;
  }

  .panel > h2 {
    margin: 0 0 8px;
    padding: 8px 0 0;
    background: none;
  }

  .tiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .tile {
    padding: 5px 10px 6px;
  }

  .big {
    font-size: 19px;
  }

  .grid {
    font-size: 12px;
  }

  .grid td,
  .grid thead th {
    padding-left: 8px;
  }

  .fold > summary {
    min-height: 32px;
    padding: 8px 0 4px;
  }

  .cols > .fold + .fold {
    margin-top: 6px;
  }

  /* Source cards rise from the bottom, within reach of a thumb. */
  .src {
    inset: auto 0 0;
    width: 100%;
    max-height: 76vh;
    margin: 0;
    border-width: 1px 0 0;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  }

  .src::backdrop {
    background: rgba(5, 7, 10, 0.55);
  }

  .close {
    min-height: 40px;
    padding: 6px 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  .keys,
  .skip {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ---- shares, unlock, control, timeline ---------------------------------- */

span.fg-base {
  background: #7d8ba0;
}

span.fg-pos {
  background: var(--pos);
}

.banks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 6px 0 0;
  font-size: 12px;
}

.bank {
  padding: 1px 6px;
  border: 1px solid var(--line);
  color: var(--dim);
}

.lines.unlock th[scope="row"] {
  font-weight: 400;
  color: var(--dim);
}

.unlock .step {
  display: block;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.tl {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.tl li {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 0 0.8rem;
  position: relative;
  padding: 5px 0 5px 1.2rem;
  border-left: 1px solid var(--line-strong);
  margin-left: 0.3rem;
}

.tl li::before {
  content: "";
  position: absolute;
  left: -0.36rem;
  top: 0.75em;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.tl-done::before {
  background: var(--pos) !important;
  border-color: var(--pos) !important;
}

.tl-next::before {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(217, 179, 108, 0.25);
}

.tl-later {
  color: var(--dim);
  border-left-style: dashed !important;
}

.tl-day {
  color: var(--faint);
  white-space: nowrap;
}

@container (max-width: 540px) {
  .tl li {
    grid-template-columns: minmax(0, 1fr);
  }
}

.n.long {
  white-space: normal;
  text-align: left;
}

.lines td:has(> .n.long) {
  white-space: normal;
}

@media (max-width: 640px) {
  /* The tags alone on one line; the help card says what each means. */
  .legend {
    gap: 0 0.6rem;
    margin-top: 4px;
  }

  .legend li > span:not(.tag) {
    display: none;
  }

  .stages li + li::before {
    flex-basis: 0.9rem;
    min-width: 0.4rem;
  }

  .status {
    margin-bottom: 12px;
  }
}

/* On a phone the strip at the top already gives the offer and the dates. */
@media (max-width: 640px) {
  .status .dup {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats > div {
    padding: 4px 6px 5px;
  }

  .stats dt {
    font-size: 10px;
  }

  .stats dd {
    font-size: 12px;
  }

  .glance {
    margin-top: 6px;
  }

  .stages {
    margin-top: 6px;
    font-size: 11px;
  }
}

/* A chart over its table, both full width: for tables with long wording. */
.stacked > .chart {
  max-width: 760px;
  margin: 0 0 6px;
}

.stacked > .fold {
  margin-top: 4px;
}

.lines.words th[scope="row"] {
  width: 55%;
}

.lines.words td {
  text-align: left;
}

/* ---- overview --------------------------------------------------------- */

.overview {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 12px 10px;
}

.ov-head {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.ov-tag {
  color: var(--faint);
}

.ov-phase {
  color: var(--accent);
  font-weight: 700;
}

.ov-days {
  color: var(--dim);
  letter-spacing: 0;
}

.overview .stages {
  margin: 0 0 8px;
}

.st-when {
  color: var(--faint);
}

.chk {
  color: var(--faint);
}

@media (max-width: 640px) {
  .overview {
    padding: 6px 8px 8px;
  }

  .ov-head {
    font-size: 11px;
  }
}

.narrow {
  display: none;
}

@media (max-width: 640px) {
  .narrow {
    display: inline;
  }

  .overview dl > div {
    margin-bottom: 1px;
  }
}

.v-chart {
  max-width: 760px;
}

/* ---- Loop 007: a light, centered hero ------------------------------------ */

.hero {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding-top: 22px;
  padding-bottom: 6px;
}

.hero .mark {
  width: 30px;
  height: 30px;
}

.hero h1 {
  font-size: 19px;
  letter-spacing: 0.18em;
}

.hero .tagline {
  color: var(--text);
}

.hero .disclaimer {
  margin: 0;
}

/* ---- the keys, explained, and the tables opened or folded together --------- */

.tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 1.5rem;
  max-width: 1360px;
  margin: 0 auto;
  padding: 6px 16px 0;
  color: var(--faint);
  font-size: 12px;
}

.tools p {
  margin: 0;
}

.tools kbd {
  color: var(--dim);
}

.fold-all button {
  font: inherit;
  color: var(--dim);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.fold-all button:hover,
.fold-all button:focus-visible {
  color: var(--accent);
}

/* ---- UNLOCK takes the full width of its grid -------------------------------- */

.pair > .span {
  grid-column: 1 / -1;
}

/* ---- rings -------------------------------------------------------------------- */

.chart-svg .slice {
  stroke: var(--panel);
  stroke-width: 2;
}

.chart-svg.ring {
  display: block;
  width: 100%;
  max-width: 190px;
  margin: 0 auto;
}

.chart-svg .ring-value {
  font-size: 22px;
  font-weight: 700;
}

.chart-svg .ring-caption {
  fill: var(--dim);
  font-size: 11px;
}

.split-ring {
  align-items: center;
}

.split-ring .chart {
  max-width: 260px;
}

span.fg-blank {
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
}

/* The overview: its lines on the left, who holds the shares on the right. */
.ov-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 0 28px;
  align-items: start;
}

.ov-ring {
  margin: 0;
}

.ov-ring .chart-svg.ring {
  max-width: 140px;
}

.ov-ring figcaption {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.ov-ring-keys {
  margin: 2px 0 0;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 860px) {
  .ov-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ov-ring {
    display: none;
  }
}

@media (max-width: 640px) {
  /* Tight on purpose: with a new-filing notice in the overview, the value at the IPO price must
     still fit on the first screen. */
  .hero {
    padding-top: 6px;
    padding-bottom: 2px;
    gap: 0;
  }

  .hero .tagline,
  .hero .disclaimer {
    line-height: 1.25;
  }

  .hero .disclaimer {
    letter-spacing: 0;
  }

  .hero .mark {
    width: 24px;
    height: 24px;
  }

  .hero h1 {
    font-size: 15px;
    letter-spacing: 0.12em;
  }

  .hero .tagline {
    display: block;
    font-size: 12px;
  }

  /* The first screen keeps the value at the IPO price: on a phone each table opens by itself. */
  .tools {
    display: none;
  }
}

/* UNLOCK across the width: the chart stays in view, the filing's table in two columns. */
#unlock .split > .chart {
  position: sticky;
  top: 56px;
}

@container (min-width: 1100px) {
  #unlock .split {
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  }
}

/* ---- Loop 008: what changed from one filing to the next ------------------- */

.changes .when {
  display: block;
  color: var(--dim);
  font-size: 12px;
}

.changes td {
  white-space: nowrap;
}

/* ---- Loop 008a: up to date, at a glance ------------------------------------ */

.hero .uptodate {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.uptodate .ok {
  color: var(--pos);
}

@media (max-width: 640px) {
  .hero .uptodate {
    font-size: 11px;
    line-height: 1.25;
  }
}
