:root {
  /* Light (the ONE standard): gray page, near-white panels, charcoal text. */
  --canvas: #f2f2f4;
  /* The page sheet beside the sidebar (desktop): the same gray, so glass reads as glass. */
  --page: #f2f2f4;
  --surface: #ffffff;
  --raised: #ffffff;
  /* Selected sidebar item, segmented control, chips: the soft navy. */
  --selected: #eef2f8;
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  /*
   * Second text. The board's #6e6e73 is 4.49:1 on the #f2f2f4 page, just under WCAG AA 4.5:1,
   * so ONE uses #6a6a6f (4.8:1), the same gray to the eye.
   */
  --muted: #6a6a6f;
  --faint: #6a6a6f;
  --line: #e5e5ea;
  --line-strong: #d1d1d6;
  /* Edges of fields, checkboxes and choices: strong enough to see in sunlight (3:1). */
  --control-border: #8e8e93;
  /* The main button is charcoal (one per screen). The logo itself keeps #101B2E. */
  --primary: #1d1d1f;
  --primary-ink: #ffffff;
  /* Navy #1E3A63 is the only accent: selected items, progress lines, value tags, focus. Never a big surface. */
  --accent: #1e3a63;
  --accent-ink: #ffffff;
  --accent-soft: #eef2f8;
  /*
   * Status: no yellow, amber or violet anywhere.
   * navy = needs action (to pack), red = problem (unpaid, failed), green = done or paid, gray = normal.
   * `warn` is the "needs action" navy.
   */
  --good: #1f7a4d;
  --good-soft: #e8f3ec;
  --warn: #1e3a63;
  --warn-soft: #eef2f8;
  --bad: #b42318;
  --bad-soft: #fdeceb;
  --on-ink: #ffffff;
  --glow: rgb(30 58 99 / 0.22);
  /* Glass (chrome and panels): white 55%, blur 28 + saturate 180%, a 1px white edge, a soft navy shadow. */
  --glass-bg: rgb(255 255 255 / 0.55);
  --glass-edge: inset 0 0 0 1px rgb(255 255 255 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.9), 0 10px 30px rgb(15 35 64 / 0.08);
  /* Solid fallback: no blur, "reduce transparency", or weak phones. */
  --glass-solid: #f7f7f9;
  /* The floating tab bar and docks (OWNER RULING ONE2-57, 26 Nov 10:40): 92% so no text reads through (86% still let it, 11:35 item 5). */
  --bar-bg: rgb(250 250 252 / 0.92);
  /* The calm navy light that sits behind the glass. */
  --ambient: radial-gradient(28rem 20rem at 0% 0%, rgb(30 58 99 / 0.14), transparent 70%), radial-gradient(22rem 22rem at 100% 35%, rgb(143 180 232 / 0.18), transparent 70%), radial-gradient(26rem 24rem at 15% 100%, rgb(29 29 31 / 0.06), transparent 70%);
  /* Panels (00:20): solid white with a 1px rgba(0,0,0,.06) edge and the faintest lift. Glass is for the fixed bars only. */
  --shadow-rest: 0 0 0 1px rgb(0 0 0 / 0.06), 0 1px 2px rgb(16 24 40 / 0.03);
  --shadow-control: 0 1px 2px rgb(16 24 40 / 0.05), 0 0 0 1px rgb(16 24 40 / 0.08);
  --shadow-float: 0 16px 48px rgb(14 18 19 / 0.14), 0 0 0 1px rgb(16 24 40 / 0.04);
  --shadow-sheet: 0 0 0 1px rgb(16 24 40 / 0.05), 0 1px 3px rgb(16 24 40 / 0.04);
  /* The ambient light replaces the old charcoal fade at the top of the page. */
  --fade: var(--ambient);
  --fade-phone: var(--ambient);
  --scrim: rgb(14 14 16 / 0.32);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
  /* Night (the ONE standard): near-black gray page #0B0B0D, never pure black; dark-gray panels. */
  --canvas: #0b0b0d;
  --page: #0b0b0d;
  --surface: #1c1c1e;
  --raised: #2c2c2e;
  --selected: #3a3a3c;
  --ink: #f5f5f7;
  --ink-2: #e5e5ea;
  /* Second text at night. The board's #a1a1a6 is 4.41:1 on the selected gray, under WCAG AA, so ONE uses #aeaeb2. */
  --muted: #aeaeb2;
  --faint: #98989d;
  --line: #2c2c2e;
  --line-strong: #3a3a3c;
  --control-border: #8e8e93;
  /* The main button at night: near-white with dark text. */
  --primary: #f5f5f7;
  --primary-ink: #1d1d1f;
  /* The navy accent at night: light navy, readable on dark panels. */
  --accent: #8fb4e8;
  --accent-ink: #0b0b0d;
  --accent-soft: #1b2535;
  --good: #62cc8f;
  --good-soft: #17291f;
  --warn: #8fb4e8;
  --warn-soft: #1b2535;
  --bad: #ff8a80;
  --bad-soft: #3a1f1d;
  --on-ink: #0b0b0d;
  --glow: rgb(143 180 232 / 0.18);
  --glass-bg: rgb(44 44 48 / 0.45);
  --glass-edge: inset 0 0 0 1px rgb(255 255 255 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.06), 0 10px 30px rgb(0 0 0 / 0.4);
  --glass-solid: #1c1c1e;
  --bar-bg: rgb(30 30 33 / 0.92);
  --ambient: radial-gradient(28rem 20rem at 0% 0%, rgb(47 85 134 / 0.4), transparent 70%), radial-gradient(22rem 22rem at 100% 35%, rgb(143 180 232 / 0.14), transparent 70%), radial-gradient(26rem 24rem at 15% 100%, rgb(255 255 255 / 0.04), transparent 70%);
  /* Night uses hairline rings instead of shadows. */
  --shadow-rest: 0 0 0 1px #2c2c2e;
  --shadow-control: 0 0 0 1px #3a3a3c;
  --shadow-float: 0 0 0 1px #2c2c2e, 0 24px 64px rgb(0 0 0 / 0.5);
  --shadow-sheet: 0 0 0 1px #2c2c2e;
  --fade: var(--ambient);
  --fade-phone: var(--ambient);
  --scrim: rgb(0 0 0 / 0.55);
  color-scheme: dark;
  }
}

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/inter.woff2") format("woff2"); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); background-image: var(--fade-phone); background-repeat: no-repeat; color: var(--ink); font: 400 15px/1.6 "Inter", ui-sans-serif, system-ui, sans-serif; }
@media (min-width: 768px) { body { background-image: var(--fade); } }
a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--surface); border-radius: 8px; z-index: 1; }
.skip:focus { top: 12px; }
.top { max-width: 760px; margin: 0 auto; padding: 20px 16px 0; }
.home { display: inline-block; }
.home img { height: 28px; width: auto; display: block; }
.night { display: none !important; }
@media (prefers-color-scheme: dark) { .day { display: none !important; } .night { display: block !important; } }
main { max-width: 760px; margin: 0 auto; padding: 20px 16px 8px; }
.sheet { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-sheet); padding: 24px 20px 32px; }
@media (min-width: 768px) { .sheet { padding: 40px 48px 48px; } }
.draft { margin: 0 0 20px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); font-size: 13.5px; }
h1 { margin: 0; font-size: 30px; line-height: 1.14; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; }
.updated { margin: 8px 0 28px; color: var(--muted); font-size: 13.5px; }
h2 { margin: 36px 0 10px; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; scroll-margin-top: 16px; }
h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 650; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
li > ul, li > ol { margin: 4px 0 0; }
strong { font-weight: 620; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.table { overflow-x: auto; margin: 8px 0 16px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 9rem; }
th { font-weight: 620; background: var(--canvas); }
tr:last-child td { border-bottom: 0; }
.foot { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; color: var(--muted); font-size: 13.5px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; }
.foot a { color: var(--muted); display: inline-flex; align-items: center; min-height: 24px; }
.foot a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot p { margin: 0; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
