/* Vesper website.

   Every page sits on the night sky that /sky.js draws behind it: the real stars, Moon and
   planets over the visitor's time zone. The pages themselves stay quiet so the sky can be
   seen: near-black surfaces, hairline edges, one wide display face for headings and one sans
   for text. Gold is the evening star: it marks the main action on each screen, the focus ring,
   and the small stars that show where you are. Links are light text with an underline.

   Only light text (--ink) stands on the open sky, which sky.js keeps dim enough for it. Muted
   and coloured text sits on a sheet or card: a near-black pane the sky shows around. */

/* ---------- Fonts ----------
   Self-hosted, latin subset only: every character the templates print (including × and ·) is
   inside this range, and anything outside it falls through to the next font in the stack.
   Licences: /fonts/*-OFL.txt. The version query matches the file hash (asset() in the layout
   preloads the same URLs), so each file is cached for a year. */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/unbounded-latin.woff2?v=22f9b928aa39") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2?v=4c8b93f431d4") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Until a file arrives, a local face stands in, scaled to the web font's average width and set
   to its line metrics, so lines keep their height at the swap and almost all text keeps its
   wrapping. size-adjust is the measured width ratio of the site's own text; the overrides are
   each web font's ascent and descent divided by it. */
@font-face {
  font-family: "Unbounded Fallback";
  src: local("Verdana Bold"), local("Verdana-Bold"), local("DejaVu Sans Bold");
  size-adjust: 109.10%;
  ascent-override: 91.20%;
  descent-override: 22.46%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Schibsted Grotesk Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  font-weight: 400 500;
  size-adjust: 104.18%;
  ascent-override: 93.74%;
  descent-override: 24.75%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Schibsted Grotesk Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold");
  font-weight: 600 900;
  size-adjust: 100.00%;
  ascent-override: 97.65%;
  descent-override: 25.78%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  /* Colour. The page is the night; surfaces are panes of darker glass over it. */
  --night: #04060b;
  --ground: #020306;
  --surface: rgb(9 12 22 / .84);
  --surface-solid: #0a0d17;
  --well: rgb(2 3 7 / .78);
  --raise: rgb(198 208 235 / .06);
  --edge: rgb(198 208 235 / .14);
  --edge-strong: rgb(198 208 235 / .26);
  --field-edge: rgb(198 208 235 / .34);
  --ink: #ede8dc;
  --mute: #9ba1b4;
  --star: #f3d58a;
  --star-ink: #1a1406;
  --live: #3ddc97;
  --stop: #ff7a7a;
  --warn: #f2b56b;

  /* Type */
  --display: "Unbounded", "Unbounded Fallback", Verdana, ui-sans-serif, sans-serif;
  --sans: "Schibsted Grotesk", "Schibsted Grotesk Fallback", ui-sans-serif, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.5rem + 1.7vw, 2.75rem);
  --fs-hero: clamp(2.25rem, 1rem + 3.4vw, 4rem);

  /* Space: every step is a multiple of four pixels. */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;
  --gutter: 1rem;
  /* Text widths are in em, not ch: ch is the advance of "0" in whichever face is drawing, so a
     ch width changes at the font swap and moves everything after it. */
  --measure: 40em;
  --header-h: 4rem;

  /* Shape: one corner for controls and panes, one for the phone frame. */
  --r: 6px;
  --r-frame: 16px;

  /* Motion */
  --dur-press: 120ms;
  --dur-ui: 200ms;
  --dur-panel: 320ms;
  --dur-exit: 120ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
}
@media (min-width: 64em) {
  :root { --gutter: 2rem; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--ink);
  font: 400 var(--fs-base)/1.6 var(--sans);
  /* Only real weights and styles: no faux bold, and no faux italic for either face. */
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-wrap: break-word;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font: 500 var(--fs-2xl)/1.1 var(--display); }
h2 { font: 500 var(--fs-xl)/1.15 var(--display); }
h3 { font: 600 var(--fs-md)/1.35 var(--sans); }
h4 { font: 600 var(--fs-base)/1.4 var(--sans); }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--sp-3); }

ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgb(237 232 220 / .45);
}
a:hover { color: var(--ink); text-decoration-color: currentColor; }

strong, b { font-weight: 600; color: var(--ink); }
/* Neither face ships an italic, so emphasis in text is upright and set apart by colour. */
em { font-style: normal; color: var(--ink); }

svg { flex: none; }
img, svg { max-width: 100%; }

.pay-amount, .pay-address, .invoice-ref {
  font-family: var(--mono);
  font-size: 0.9em;
}
time { white-space: nowrap; }
code {
  padding: 0.08em 0.4em;
  border-radius: var(--r);
  background: var(--raise);
  color: var(--ink);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
pre {
  margin: 0;
  padding: var(--sp-4);
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--well);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
pre code { padding: 0; border: 0; background: none; font-size: inherit; }

hr { border: 0; border-top: 1px solid var(--edge); margin: var(--sp-6) 0; }

::selection { background: var(--star); color: var(--star-ink); }

:focus-visible {
  outline: 2px solid var(--star);
  outline-offset: 4px;
  border-radius: var(--r);
}

[hidden] { display: none !important; }

/* ---------- The sky ----------
   sky.js adds .sky as the first child of body: a fixed layer, a little taller than the window
   so the page can drift over it as it scrolls. */

.sky {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 112vh;
  height: 112lvh;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity calc(var(--dur-panel) * 3) var(--ease-out);
  will-change: transform;
}
.sky[data-ready] { opacity: 1; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-galaxy { opacity: 0; transition: opacity calc(var(--dur-panel) * 6) var(--ease-out); }
.sky-galaxy[data-ready] { opacity: 1; }
.sky-static { transition: opacity var(--dur-panel) var(--ease-move); }
.sky[data-fast] .sky-static { opacity: 0; }
.sky[data-fast] .sky-galaxy { opacity: 0; transition-duration: var(--dur-panel); }
.site-header, main, .site-footer { transition: opacity var(--dur-panel) var(--ease-out); }
[data-sky-show] :is(.site-header, main, .site-footer) { opacity: .06; pointer-events: none; }
main { text-shadow: 0 0 4px rgb(4 6 11 / .85); }
main .btn-primary { text-shadow: none; }

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute !important;
  width: 4px;
  height: 4px;
  margin: -4px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.muted { color: var(--mute); }
.nums { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.fineprint { font-size: var(--fs-sm); color: var(--mute); }
.footnote { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--mute); }
.lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink);
  max-width: 36em;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.page { padding-block: var(--sp-6) var(--sp-8); }
@media (min-width: 48em) {
  .page { padding-block: var(--sp-7) var(--sp-9); }
}
.page-head { margin-bottom: var(--sp-6); }
.page-head h1 + .lead, .page-head h1 + .muted { margin-top: var(--sp-3); }
.page-head h1 + p:not([class]) { margin-top: var(--sp-2); }
.page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-5);
}
.page-head-row h1 { overflow-wrap: anywhere; }

.stack { display: grid; gap: var(--sp-4); }
.stack-sm { display: grid; gap: var(--sp-3); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }

.split { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 56em) {
  .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--sp-6); }
  .split-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
.grid-2 { display: grid; gap: var(--sp-4); align-items: start; }
@media (min-width: 52em) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.section { padding-block: var(--sp-8); }
@media (min-width: 48em) {
  .section { padding-block: var(--sp-9); }
}
.section-tight { padding-block: var(--sp-5) 0; }
.section-head { max-width: 46rem; margin-bottom: var(--sp-6); }
.section-head h2 + p { margin-top: var(--sp-3); }
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  max-width: none;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--sp-4);
  border-radius: var(--r);
  background: var(--star);
  color: var(--star-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus-visible, .skip-link:focus { transform: none; color: var(--star-ink); }
a[target="_blank"]::after {
  content: "";
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: var(--sp-2);
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

/* ---------- Mark ---------- */

.mark { width: 1.5rem; height: 1.5rem; display: block; }
.mark-lg { width: 2.75rem; height: 2.75rem; }
.mark-xl { width: 4rem; height: 4rem; }
.mark .mark-star { fill: var(--star); }
.mark .mark-horizon { fill: none; stroke: var(--mute); stroke-width: 2.2; stroke-linecap: round; }
.mark-hollow .mark-star { fill: none; stroke: var(--star); stroke-width: 1.8; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--edge);
  background: rgb(4 6 11);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand primary account";
  align-items: center;
  gap: var(--sp-2) var(--sp-6);
  min-height: var(--header-h);
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--sp-2);
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 1.75rem; height: 1.75rem; }
.wordmark { font: 600 1.25rem/1 var(--display); }
.nav-primary {
  grid-area: primary;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.nav-mobile { display: none; }
.nav-primary a, .nav-account > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--sp-3);
  border-radius: var(--r);
  color: var(--mute);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-primary a:hover, .nav-account > a:not(.btn):hover { color: var(--ink); }
.nav-primary a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--star);
  text-underline-offset: 0.5em;
}
.nav-account {
  grid-area: account;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
}
.who {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.who a {
  display: inline-block;
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
  padding-block: var(--sp-3);
}
.who a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 47.99em) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand account";
  }
  .nav-desktop { display: none; }
  .nav-mobile { grid-area: account; display: flex; align-items: center; gap: var(--sp-2); }
  .nav-app, .mobile-menu summary, .nav-sheet a { display: grid; align-items: center; min-height: 44px; }
  .nav-app { padding-inline: var(--sp-2); color: var(--ink); font-weight: 500; text-decoration: none; }
  .mobile-menu summary { place-items: center; width: 44px; border: 1px solid var(--edge-strong); border-radius: var(--r); cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary path { transform-origin: 12px 12px; transition: transform var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out); }
  .mobile-menu[open]:not([data-closing]) .burger-top { transform: translateY(5.5px) rotate(45deg); }
  .mobile-menu[open]:not([data-closing]) .burger-mid { opacity: 0; }
  .mobile-menu[open]:not([data-closing]) .burger-low { transform: translateY(-5.5px) rotate(-45deg); }
  html:has(.mobile-menu[open]) { overflow: hidden; }
  .mobile-menu[open]::before {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0;
    background: rgb(2 3 7 / .6);
    transition: opacity var(--dur-ui) var(--ease-out);
  }
  @starting-style { .mobile-menu[open]::before { opacity: 0; } }
  .mobile-menu[data-closing]::before { opacity: 0; transition-duration: var(--dur-exit); }
  .nav-sheet {
    position: absolute;
    inset: 100% var(--gutter) auto;
    display: grid;
    gap: var(--sp-1);
    padding: var(--sp-2);
    border: 1px solid var(--edge-strong);
    border-radius: var(--r);
    background: var(--surface-solid);
    transform-origin: calc(100% - 20px) top;
    transition: transform var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out);
  }
  @starting-style {
    .mobile-menu[open] .nav-sheet { opacity: 0; transform: scale(.97); }
  }
  .mobile-menu[data-closing] .nav-sheet {
    opacity: 0;
    transform: scale(.97);
    transition: transform var(--dur-exit) var(--ease-in), opacity var(--dur-exit) var(--ease-in);
  }
  .nav-sheet a:not(.btn) { padding-inline: var(--sp-3); color: var(--ink); text-decoration: none; }
  .nav-sheet .btn { margin-top: var(--sp-1); }
}

/* ---------- Banner ---------- */

.banner {
  border-bottom: 1px solid var(--edge);
  background: var(--surface-solid);
  color: var(--ink);
}
.banner-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  font-size: var(--fs-sm);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 2.75rem;
  padding: var(--sp-2) 1.25rem;
  border: 1px solid var(--edge-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font: 500 var(--fs-base)/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.btn:hover { border-color: var(--mute); background: var(--surface-solid); color: var(--ink); }
.btn-primary, .btn-primary:hover {
  border-color: var(--star);
  background: var(--star);
  color: var(--star-ink);
  font-weight: 600;
}
.btn-primary:hover { border-color: #f8e2a8; background: #f8e2a8; }
.btn-secondary { background: var(--surface); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--mute); }
.btn-quiet:hover { background: var(--raise); border-color: var(--edge); color: var(--ink); }
.btn-danger { background: transparent; border-color: rgb(255 122 122 / .6); color: var(--stop); }
.btn-danger:hover { background: var(--surface-solid); border-color: var(--stop); color: var(--stop); }
.btn-sm { min-height: 2.75rem; padding: var(--sp-1) var(--sp-3); font-size: var(--fs-sm); }
.btn-lg { min-height: 3.25rem; padding: var(--sp-3) var(--sp-5); font-size: var(--fs-md); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
form[data-busy="1"] [type="submit"] { opacity: 0.85; cursor: progress; }

.btn-link {
  display: inline-block;
  min-height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-decoration-color: rgb(237 232 220 / .45);
  text-underline-offset: 0.2em;
  cursor: pointer;
  position: relative;
}
.btn-link::after { content: ""; position: absolute; inset: -12px -4px; }
.btn-link:hover { text-decoration-color: currentColor; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-ui) var(--ease-out);
}
a.link-arrow:hover::after, .script-card:hover .link-arrow::after { transform: translateX(3px) rotate(45deg); }
.link-arrow-lg { min-height: 3.25rem; font-size: var(--fs-md); }

/* ---------- Forms ---------- */

.field { display: grid; gap: var(--sp-2); }
/* Side by side while each field keeps room for its steppers and a readable number, stacked below that. */
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--sp-3); }
.label, legend.label {
  display: block;
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}
/* After the password field, so the keyboard reaches it after the field it is about. */
.label-link { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; font-size: var(--fs-sm); }
.hint { font-size: var(--fs-sm); color: var(--mute); }

.input {
  width: 100%;
  min-height: 3rem;
  padding: var(--sp-3);
  border: 1px solid var(--field-edge);
  border-radius: var(--r);
  background: var(--well);
  color: var(--ink);
  font: 400 var(--fs-base)/1.4 var(--sans);
}
.input::placeholder { color: var(--mute); opacity: .8; }
.input:hover { border-color: var(--mute); }
.input:focus { border-color: var(--star); outline: 2px solid var(--star); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--stop); }
.input[aria-invalid="true"]:focus { outline-color: rgb(255 122 122 / .5); }
.input.nums { font-variant-numeric: tabular-nums; }
.input-code { letter-spacing: 0.08em; }
input[type="number"].input { -moz-appearance: textfield; appearance: textfield; }
input[type="number"].input::-webkit-inner-spin-button,
input[type="number"].input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.input-group { position: relative; display: flex; }
.input-group .input { padding-right: 4.5rem; min-height: 48px; }
/* The full height of the 48px field. Its border is transparent and the hover fill stays inside it,
   so the field's own edge still shows. */
.input-addon {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  min-width: 3.75rem;
  padding: 0 var(--sp-3);
  border: 1px solid transparent;
  border-radius: 0 var(--r) var(--r) 0;
  background-color: transparent;
  background-clip: padding-box;
  color: var(--mute);
  font: 500 var(--fs-sm)/1 var(--sans);
  cursor: pointer;
}
.input-addon:hover { background-color: var(--raise); color: var(--ink); }
.input-addon[aria-pressed="true"] { color: var(--ink); }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices, .checklist { display: grid; gap: var(--sp-2); }
.choices legend, .checklist legend { margin-bottom: var(--sp-2); }
.choice, .check {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 3rem;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--well);
  cursor: pointer;
}
.choice:hover, .check:hover { border-color: var(--edge-strong); }
.choice:has(input:checked), .check:has(input:checked) { border-color: rgb(237 232 220 / .55); }
.choice:has(input:disabled) { cursor: not-allowed; opacity: .7; }
.choice input, .check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--ink); flex: none; }
.choice-name, .check-text { font-weight: 500; }
.choice-meta, .check-meta { margin-left: auto; font-size: var(--fs-sm); color: var(--mute); }
/* One method is no choice: it reads as plain text, and its checked radio still sends the value. */
.choices-one .choice { min-height: 0; padding: 0; border: 0; background: none; cursor: default; }
.choices-one .choice input { position: absolute; width: 4px; height: 4px; margin: -4px; overflow: hidden; clip-path: inset(50%); }
.choices-one legend { margin-bottom: var(--sp-2); }
.choices-one .choice:has(:focus-visible) { outline: 2px solid var(--star); outline-offset: 4px; border-radius: var(--r); }

/* ---------- Panes: sheets, cards and notices ---------- */

/* A sheet carries a block of reading text over the sky. */
.sheet {
  padding: var(--sp-5);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--surface);
}
@media (min-width: 40em) {
  .sheet { padding: var(--sp-6) var(--sp-7); }
}

.card {
  padding: var(--sp-5);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--surface);
}
.card > h2, .card > h3 { margin-bottom: var(--sp-3); }
.card.stack-sm > h2, .card.stack-sm > h3 { margin-bottom: 0; }
.card.stack-sm { align-content: start; }
.card h2 { font-size: 1.75rem; line-height: 1.15; }

.notice {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--edge);
  border-left: 2px solid var(--edge-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-sm);
}
.notice p + p { margin-top: 0; }
.notice-title { font: 600 var(--fs-base)/1.4 var(--sans); }
.notice-live { border-left-color: var(--live); }
.notice-live .notice-title { color: var(--live); }
.notice-stop { border-left-color: var(--stop); }
.notice-stop .notice-title { color: var(--stop); }
.notice-warn { border-left-color: var(--warn); }
.notice-warn .notice-title { color: var(--warn); }
.notice-star { border-left-color: var(--star); }
.notice .btn-link { justify-self: start; }

/* ---------- Empty states ---------- */

.empty {
  display: grid;
  justify-items: start;
  gap: var(--sp-3);
  padding: var(--sp-7) var(--sp-6);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--mute);
}
.empty h2, .empty h3 { font: 500 1.375rem/1.2 var(--display); color: var(--ink); }
.empty p { max-width: 29em; }
.empty .mark { margin-bottom: var(--sp-2); }
.empty-sm { padding: var(--sp-5); }
.empty-sm h3 { font: 600 var(--fs-base)/1.4 var(--sans); }

/* ---------- Tables ---------- */

/* position: relative keeps absolutely placed screen-reader text inside the scroll box. */
.table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--surface);
  scrollbar-width: thin;
  scrollbar-color: var(--edge-strong) transparent;
}
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table-wrap table { min-width: 34rem; }
/* A scrolling table has room for an id on one line; wrapping split them mid-word. */
.table-wrap:not(.table-cards) td code { white-space: nowrap; }
th, td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  vertical-align: middle;
}
tbody tr + tr td { border-top: 1px solid var(--edge); }
th {
  border-bottom: 1px solid var(--edge-strong);
  font: 500 var(--fs-xs)/1.4 var(--sans);
  letter-spacing: 0.01em;
  color: var(--mute);
  white-space: nowrap;
}
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.cell-action { text-align: right; white-space: nowrap; }
td.cell-action > a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: -12px; padding-inline: var(--sp-2); }
td form { display: inline; margin: 0; }
caption { text-align: left; }

/* Narrow screens: each row of a .table-cards table becomes a small card, so the action column
   never hides off to the side. Cells carry their header as data-label; a cell without one is
   the row's title. */
@media (max-width: 39.99em) {
  .table-cards { overflow: visible; border: 0; border-radius: 0; background: none; }
  .table-cards table, .table-cards tbody, .table-cards tr, .table-cards td { display: block; }
  .table-cards table { min-width: 0; }
  .table-cards thead {
    position: absolute;
    width: 4px;
    height: 4px;
    margin: -4px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .table-cards tbody { display: grid; gap: var(--sp-2); }
  .table-cards tr {
    padding: var(--sp-2) var(--sp-4) var(--sp-3);
    border: 1px solid var(--edge);
    border-radius: var(--r);
    background: var(--surface);
  }
  .table-cards tbody tr + tr td { border-top: 0; }
  .table-cards td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-1) var(--sp-3);
    padding: var(--sp-1) 0;
    border-bottom: 0;
    text-align: right;
  }
  .table-cards td[data-label]::before {
    content: attr(data-label);
    font: 500 var(--fs-xs)/1.4 var(--sans);
    letter-spacing: 0;
    color: var(--mute);
    text-align: left;
  }
  .table-cards td:not([data-label]),
  .table-cards tbody tr:last-child td:not([data-label]) {
    justify-content: flex-start;
    margin-bottom: var(--sp-1);
    padding: var(--sp-1) 0 var(--sp-2);
    text-align: left;
    font-weight: 600;
  }
  .table-cards td.cell-action,
  .table-cards tbody tr:last-child td.cell-action {
    margin: var(--sp-1) 0 0;
    padding: var(--sp-1) 0 0;
    border-bottom: 0;
    font-weight: 400;
  }
  .table-cards td.cell-action form, .table-cards td.cell-action .btn { display: flex; width: 100%; }
  .table-cards td.cell-action > a { margin-left: auto; }
}

/* ---------- Disclosures and facts ---------- */

.disclosure {
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--surface);
}
.disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 2.75rem;
  padding: var(--sp-2) var(--sp-4);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  border-radius: var(--r);
}
.disclosure > summary::-webkit-details-marker { display: none; }
/* The same chevron as the questions: on the right, pointing down, turning up when open. */
.disclosure > summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: var(--sp-1);
  border-right: 1.5px solid var(--mute);
  border-bottom: 1.5px solid var(--mute);
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur-ui) var(--ease-out);
}
.disclosure[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.disclosure > :not(summary) { margin: 0 var(--sp-4) var(--sp-4); }

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: var(--sp-4);
  color: var(--ink);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.back-link::before {
  content: "";
  width: 8px;
  height: 8px;
  margin: 0 var(--sp-2) 0 var(--sp-1);
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.back-link:hover { text-decoration: underline; }

.facts-list { display: grid; gap: 0; margin: 0; }
.facts-list > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr);
  gap: var(--sp-3);
  padding-block: var(--sp-2);
  font-size: var(--fs-sm);
}
.facts-list > div + div { border-top: 1px solid var(--edge); }
.facts-list dt { color: var(--mute); }
.facts-list dd { margin: 0; text-align: right; }
.facts-list code { white-space: normal; }
.facts-list > .fact-stack { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
.facts-list > .fact-stack dd { text-align: left; }

/* ---------- Footer: the ground under the sky ---------- */

.site-footer {
  margin-top: auto;
  padding-block: var(--sp-7) var(--sp-6);
  border-top: 1px solid var(--edge-strong);
  background: var(--ground);
  font-size: var(--fs-sm);
}
.footer-top { display: grid; gap: var(--sp-6); }
@media (min-width: 52em) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
}
.footer-brand p { margin-top: var(--sp-3); color: var(--mute); max-width: 20em; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--sp-5); }
.footer-heading {
  margin-bottom: var(--sp-3);
  font: 500 var(--fs-xs)/1.4 var(--sans);
  letter-spacing: 0.01em;
  color: var(--mute);
}
.footer-nav ul { list-style: none; display: grid; gap: 0; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.sky-note {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--edge);
  color: var(--mute);
}
@media (min-width: 52em) {
  .sky-note { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: var(--sp-6); }
  .sky-toggle { grid-column: 2; grid-row: 1 / span 2; }
}
.sky-note-lead { font: 400 var(--fs-md)/1.45 var(--display); color: var(--ink); }
.sky-now { max-width: 48em; }
.sky-toggle {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0 var(--sp-3);
  border: 1px solid var(--edge-strong);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font: 500 var(--fs-sm)/1 var(--sans);
  cursor: pointer;
}
.sky-toggle:hover { border-color: var(--mute); }
.disclaimer {
  margin-top: var(--sp-5);
  color: var(--mute);
  font-size: var(--fs-xs);
  line-height: 1.6;
  max-width: 56em;
}

/* ---------- Home: hero ---------- */

.hero { padding-block: var(--sp-8) var(--sp-9); }
@media (min-width: 60em) {
  .hero { padding-block: 7.5rem 9rem; }
}
.hero-layout { display: grid; align-items: center; gap: var(--sp-7); }
.hero-copy { max-width: 40rem; }
.hero h1 {
  max-width: 11em;
  margin-bottom: var(--sp-5);
  font: 500 var(--fs-hero)/1.04 var(--display);
  text-wrap: balance;
}
.hero .lead { max-width: 30em; margin-bottom: var(--sp-6); color: var(--ink); }
.hero-actions { gap: var(--sp-3) var(--sp-6); }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-6);
  /* Full ink: these short facts sit low in the hero, often right over the bright core. */
  color: var(--ink);
  font-size: var(--fs-sm);
}
.hero-facts li { display: inline-flex; align-items: center; gap: var(--sp-4); }
.hero-facts li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mute);
  opacity: .6;
}
/* Too narrow for one line of facts: a short list, each with its dot. */
@media (max-width: 29.99em) {
  .hero-facts { flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
  .hero-facts li { gap: var(--sp-3); }
  .hero-facts li::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mute);
    opacity: .6;
  }
}
.hero-visual { position: relative; width: min(100%, 34rem); justify-self: center; }
.hero-phone {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--sp-4) var(--sp-5);
  border: 8px solid var(--ground);
  border-radius: var(--r-frame);
  outline: 1px solid var(--edge-strong);
  background: transparent;
}
/* The front camera, set into the left edge of a landscape phone. */
.hero-phone::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--edge-strong);
  transform: translate(-50%, -50%);
}
.hero-phone::after {
  content: "";
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 2 / 1;
}
.hero-panel {
  grid-area: 1 / 1;
  width: min(100%, 19rem);
  border: 1px solid var(--edge-strong);
  border-radius: var(--r);
  background: var(--surface-solid);
  font-size: clamp(.75rem, 2.6vw, .9375rem);
  line-height: 1.4;
}
.hero-panel-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3) var(--sp-1);
}
.hero-panel-head img { width: 1.15em; height: auto; }
.hero-panel-head strong { font: 600 1em/1 var(--display); }
.hero-panel-head span { margin-inline-start: auto; color: var(--mute); }
.hero-panel-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: var(--sp-1);
  border-bottom: 1px solid var(--edge);
  color: var(--mute);
  font-size: max(.625rem, .8em);
  text-align: center;
}
.hero-panel-tabs span:first-child {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--star);
  text-underline-offset: 0.45em;
}
.hero-panel-body { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.hero-panel-meta { color: var(--mute); font-size: max(.625rem, .75em); line-height: 1.35; }
.hero-panel-meta::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-inline-end: 0.45em;
  border-radius: 50%;
  background: var(--live);
  vertical-align: 0.05em;
}
.hero-panel-script { display: block; margin-block-start: var(--sp-1); font-size: 1.1em; font-weight: 600; }
.hero-runtime {
  display: block;
  margin-block: 0 var(--sp-2);
  color: var(--star);
  font: 500 clamp(1.5rem, 5.4vw, 2.375rem)/1.1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.hero-panel-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); text-align: center; }
.hero-panel-actions span {
  padding: var(--sp-1);
  border: 1px solid var(--edge-strong);
  border-radius: var(--r);
  font-size: .85em;
}
.hero-panel-actions span:last-child { border-color: rgb(255 122 122 / .5); color: var(--stop); }
@media (min-width: 30em) {
  .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 60em) {
  .hero-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-8); }
  .hero-visual { justify-self: end; }
}

/* ---------- Home: how it works, drawn as a constellation ---------- */

.steps { display: grid; gap: var(--sp-6); }
.step { position: relative; display: grid; align-content: start; gap: var(--sp-2); padding-left: var(--sp-7); }
.step h3 { font: 500 1.25rem/1.2 var(--display); }
.step p { max-width: 22em; color: var(--mute); }
.step-star {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.step:last-child .step-star { width: 12px; height: 12px; background: var(--star); }
/* The line from each star to the next stops short of both, as in a star chart. */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: var(--sp-5);
  bottom: calc(var(--sp-6) * -1);
  left: var(--sp-3);
  border-left: 1px solid var(--edge-strong);
  transform: translateX(-0.5px);
}
@media (min-width: 56em) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
  .step { padding: var(--sp-7) 0 0; }
  .step-star { left: var(--sp-1); }
  .step:not(:last-child)::before {
    top: var(--sp-3);
    bottom: auto;
    left: var(--sp-4);
    right: calc(var(--sp-4) * -1);
    border-left: 0;
    border-top: 1px solid var(--edge-strong);
    transform: translateY(-0.5px);
  }
}

/* ---------- Home and catalogue: script cards ---------- */

.script-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 40em) {
  .script-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .script-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.script-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
  padding: var(--sp-5);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
/* The card's edge, and a brighter edge over it that fades in on hover: a border colour cannot
   be animated here, an opacity can. */
.script-card::before, .script-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--edge);
  border-radius: inherit;
  pointer-events: none;
}
.script-card::after {
  border-color: rgb(237 232 220 / .42);
  opacity: 0;
  transition: opacity var(--dur-press) var(--ease-out);
}
.script-card:is(:hover, :focus-visible) { color: var(--ink); }
.script-card:is(:hover, :focus-visible)::after { opacity: 1; }
.script-card .script-name { font: 500 1.25rem/1.2 var(--display); }
.script-card-desc { color: var(--mute); }
.script-card-meta { display: grid; gap: var(--sp-1); color: var(--mute); font-size: var(--fs-sm); }
.script-card-meta:empty { display: none; }
.script-preview { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--edge); border-radius: var(--r); }
.script-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--edge);
}
.script-card .price { margin-top: auto; }
.script-card-foot .price { margin-top: 0; }
.script-card-foot .link-arrow { flex: none; white-space: nowrap; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); }
.price-amount { font: 500 1.5rem/1 var(--display); font-variant-numeric: proportional-nums; color: var(--ink); }
.price-unit { font-size: var(--fs-sm); color: var(--mute); }

/* A script's constellation: its stars, the lines between them, and the name beneath. */
.sigil { display: inline-grid; justify-items: end; gap: var(--sp-1); flex: none; color: var(--mute); }
.sigil svg { width: 4rem; height: 2.75rem; overflow: visible; }
.sigil line { stroke: rgb(198 208 235 / .4); stroke-width: 1; }
.sigil circle { fill: var(--ink); }
.sigil-lines { opacity: .55; }
.sigil-stars { opacity: .85; }
.sigil-name { font: 500 var(--fs-xs)/1 var(--sans); color: var(--mute); white-space: nowrap; }
.sigil-large { justify-items: end; }
.sigil-large svg { width: 6rem; height: 4rem; }

/* ---------- Questions ---------- */

.faq-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 60em) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--sp-7); }
}
.faq { display: grid; }
.faq details + details { border-top: 1px solid var(--edge); }
.faq summary {
  position: relative;
  display: block;
  min-height: 3rem;
  padding: var(--sp-4) var(--sp-7) var(--sp-4) 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r);
}
.faq summary:hover { color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--sp-2);
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--mute);
  border-bottom: 1.5px solid var(--mute);
  transform: translateY(-75%) rotate(45deg);
  transition: transform var(--dur-ui) var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p, .faq-body { max-width: var(--measure); padding: 0 var(--sp-7) var(--sp-5) 0; color: var(--mute); }
.faq-body { display: grid; gap: var(--sp-3); }
.faq-body p { padding: 0; }
@media (max-width: 37.49em) {
  .faq details p, .faq-body { padding-right: 0; }
}

/* ---------- Script detail ---------- */

.product { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 60em) {
  .product { grid-template: "intro buy" auto "details buy" 1fr / minmax(0, 1.4fr) minmax(20rem, 1fr); column-gap: var(--sp-8); }
  .product-intro { grid-area: intro; }
  .product-main { grid-area: details; }
  .product-side { grid-area: buy; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
/* The script's constellation stands beside its name, at the top right of the sheet. */
.product-head { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); width: 100%; }
.product-head > div { min-width: 0; }
@media (max-width: 29.99em) {
  .product-head { flex-direction: column; gap: var(--sp-3); }
  .product-head .sigil-large { justify-items: start; }
  .product-head .sigil-large svg { width: 4rem; height: 2.75rem; }
}
.product-head h1 { font-size: min(var(--fs-2xl), 8vw); overflow-wrap: break-word; }
.product-head h1 + .muted { margin-top: var(--sp-2); }
.product-intro, .product-main { display: grid; justify-items: start; gap: var(--sp-4); }
.product-intro .lead { max-width: 32em; }
.product-main { gap: var(--sp-6); }
.product-main > .faq, .product-main > .disclosure, .product-main > .stack-sm { width: 100%; }
.product-side { display: grid; gap: var(--sp-4); }
.buy-card {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--edge-strong);
  border-radius: var(--r);
  background: var(--surface);
}
.buy-card h2 { font-size: 1.75rem; }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); }
.buy-price .price-amount { font: 500 var(--fs-2xl)/1 var(--display); }
.buy-price small, .price small { flex-basis: 100%; color: var(--mute); }
.total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-1) var(--sp-3);
  min-height: 3rem;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--well);
}
.total-label { font-size: var(--fs-sm); color: var(--mute); }
.total output { font-weight: 700; text-align: right; }
.total output.total-empty { font-weight: 400; font-size: var(--fs-sm); color: var(--mute); }
.total small { grid-column: 2; color: var(--mute); text-align: right; }
.total small:empty { display: none; }
.stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: var(--sp-1); }
.stepper button { padding: 0; min-width: 44px; min-height: 44px; }
.stepper button[hidden] { display: none; }
.stepper:has(button[hidden]) { display: block; }
.stepper input { appearance: textfield; text-align: center; padding-inline: var(--sp-1); }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.buy-sticky { display: none; }
@media (max-width: 47.99em) {
  .buy-sticky:not([hidden]) {
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4) max(var(--sp-3), env(safe-area-inset-bottom));
    border-top: 1px solid var(--edge-strong);
    background: var(--surface-solid);
  }
  body:has(.buy-sticky:not([hidden])) { padding-bottom: 4.5rem; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
}

/* ---------- Download and install ---------- */

.download-card { display: grid; gap: var(--sp-5); }
.file { display: flex; align-items: center; gap: var(--sp-4); }
.file-icon {
  width: 3rem;
  height: 3rem;
  padding: var(--sp-3);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--well);
  fill: none;
  stroke: var(--star);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.file-name { font: 500 1.25rem/1.25 var(--display); overflow-wrap: anywhere; }
.file-meta { color: var(--mute); font-size: var(--fs-sm); }
.hash { display: grid; gap: var(--sp-2); }
.copy-field {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--well);
}
.copy-field code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}
.copy-field .btn { flex: none; }
.aside h2 { font-size: 1.75rem; }
.aside-stack { display: grid; gap: var(--sp-4); align-content: start; }
.checks { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.checks li { position: relative; padding-left: 1.75rem; color: var(--mute); }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 12px;
  height: 8px;
  border-left: 1.5px solid var(--live);
  border-bottom: 1.5px solid var(--live);
  transform: rotate(-45deg);
}

/* ---------- Sign-in pages ---------- */

.auth { display: grid; justify-items: center; }
.auth-card {
  width: 100%;
  max-width: 28rem;
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--edge-strong);
  border-radius: var(--r);
  background: var(--surface);
}
@media (min-width: 30em) {
  .auth-card { padding: var(--sp-7) var(--sp-6); }
}
.auth-card-wide { max-width: 36rem; }
.auth-head { display: grid; gap: var(--sp-2); justify-items: start; }
.auth-head .mark { margin-bottom: var(--sp-2); }
.auth-alt { font-size: var(--fs-sm); color: var(--mute); text-align: center; }

.codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  counter-reset: code;
}
.codes li { counter-increment: code; }
.codes code {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--well);
  font-size: var(--fs-base);
  letter-spacing: 0;
  white-space: nowrap;
}
.codes code::before {
  content: counter(code);
  min-width: 1.25rem;
  color: var(--mute);
  font-size: var(--fs-xs);
  letter-spacing: 0;
}
/* A code cell needs about 10.5rem; two columns fit from a 30em window. Below that a code ran
   into its border and lost its last character, so one column. */
@media (max-width: 29.99em) {
  .codes { grid-template-columns: 1fr; }
}
.codes-actions { margin-top: var(--sp-1); }
/* The journey can sit on the open sky, so every label stays ink; the dots and the weight say where you are. */
.journey { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: 0 0 var(--sp-5); color: var(--ink); font-size: var(--fs-sm); }
.journey li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.journey li::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--mute);
  border-radius: 50%;
}
.journey [aria-current] { color: var(--ink); font-weight: 600; }
.journey [aria-current]::before { border-color: var(--star); background: var(--star); }
.journey [data-done]::before { background: var(--mute); }
/* Too narrow for five labels on one line: the steps become dots and only the current one is named.
   The other names stay in the list for screen readers. */
@media (max-width: 37.49em) {
  .journey { gap: var(--sp-2) var(--sp-3); }
  .journey li:not([aria-current]) > span {
    position: absolute;
    width: 4px;
    height: 4px;
    margin: -4px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.order-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3) 0; font-size: var(--fs-sm); }
.order-summary > strong:last-child { margin-inline-start: auto; color: var(--ink); }
.app-handoff { display: none; }
@media (min-width: 48em) and (pointer: fine) {
  .app-phone { display: none; }
  .app-handoff { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; max-width: 42rem; }
}
.paid-success { display: grid; justify-items: start; gap: var(--sp-3); margin-bottom: var(--sp-5); padding: var(--sp-5); }
@media (min-width: 37.5em) {
  .paid-success { padding: var(--sp-6); }
}
/* One row: what to do next on the left, the button that does it on the right. */
.next-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  margin-bottom: var(--sp-5);
}
.next-step h2 { margin-bottom: var(--sp-1); font: 600 var(--fs-base)/1.4 var(--sans); }
.next-step p { color: var(--mute); }
.invoice-rate { color: var(--mute); font-size: var(--fs-sm); }
.invoice-rate strong { color: var(--ink); }
.invoice-state { position: relative; }
/* The state sits on the open sky, so its words stay ink and only the dot takes the colour. */
.invoice-state-label { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ink); font-size: var(--fs-sm); }
.invoice-state-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.invoice[data-status="paid"] .invoice-state-label::before { background: var(--live); }
.invoice[data-status="expired"] .invoice-state-label::before { background: var(--stop); }
.invoice-skeleton { display: none; position: absolute; inset: 0; border-radius: var(--r); background: var(--surface-solid); }
.invoice[data-payment-poll] .invoice-skeleton { display: block; }

/* ---------- Account ---------- */

.account { display: grid; gap: var(--sp-5); margin-top: var(--sp-5); }
/* Narrow screens wrap the section links instead of hiding some off to the side. */
.subnav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--sp-3);
  border-radius: var(--r);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.subnav a:hover { background: var(--raise); color: var(--ink); }
.subnav form { display: contents; }
.subnav-out {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: var(--r);
  background: none;
  color: var(--ink);
  font: 500 var(--fs-sm)/1 var(--sans);
  cursor: pointer;
}
.subnav-out:hover { background: var(--raise); color: var(--ink); }
.subnav-out { margin-left: auto; }
.subnav a[aria-current] { color: var(--ink); background: var(--raise); }
@media (min-width: 64em) {
  .account { grid-template-columns: 12rem minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
  .subnav { position: sticky; top: calc(var(--header-h) + 1.5rem); flex-direction: column; flex-wrap: nowrap; }
  .subnav a { justify-content: flex-start; }
  .subnav-out { margin-top: var(--sp-3); margin-left: 0; }
}
.account-main { display: grid; gap: var(--sp-7); min-width: 0; }
.block { display: grid; gap: var(--sp-4); min-width: 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.block-head h2 { font-size: var(--fs-xl); }
.subhead { font-size: var(--fs-base); margin-top: var(--sp-2); }
.summary-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 40em) {
  .summary-grid { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
}
.summary-card {
  display: grid;
  gap: var(--sp-2);
  align-content: start;
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--surface);
}
.summary-card .btn { justify-self: start; margin-top: var(--sp-2); }
.summary-head { font: 500 1.25rem/1.2 var(--display); }
.summary-head a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: -8px; color: var(--ink); text-decoration: none; }
.summary-head a:hover { text-decoration: underline; }
.summary-count { color: var(--mute); }
.instance-list { display: grid; margin-top: var(--sp-2); border-top: 1px solid var(--edge); }
.instance-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--edge);
  font-size: var(--fs-sm);
}
.ref { font-size: var(--fs-xs); }
code.ref { padding: 0; background: none; color: var(--mute); }
.rows { display: grid; }
.list-panel { border: 1px solid var(--edge); border-radius: var(--r); background: var(--surface); }
.list-panel > li + li { border-top: 1px solid var(--edge); }
.rows li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
}
.devices { display: grid; }
.device {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
}
.device-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: var(--sp-2);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--well);
  fill: none;
  stroke: var(--mute);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.device-main { flex: 1 1 auto; min-width: 0; }
.device-name { font-weight: 500; overflow-wrap: anywhere; }
.device-meta { font-size: var(--fs-sm); color: var(--mute); }
.device form { margin: 0; flex: none; }
.device .btn { white-space: nowrap; }

/* ---------- Invoice ---------- */

.invoice-head { margin-bottom: var(--sp-5); }
.invoice-head h1 { font-size: var(--fs-2xl); }
/* One note shows at a time; hidden notes take no space, so a pending invoice has no gap here. */
.invoice-notes > .notice { margin-bottom: var(--sp-5); }
/* Payment links and time remaining appear while the invoice accepts payment. A paid or expired
   invoice shows no amount or address at all: nobody should send coins to a closed invoice, and the
   paid selector also hides the card during the poll's reload. */
.invoice:not([data-status="pending"]):not([data-status="partial"]) .when-open,
.invoice[data-status="paid"] .pay,
.invoice[data-status="expired"] .pay,
.invoice[data-status="pending"] .when-closed,
.invoice[data-status="partial"] .when-closed,
.invoice:not([data-status="expired"]) .when-expired { display: none; }
.invoice-grid { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 60em) {
  .invoice-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-6); }
  .invoice:is([data-status="paid"], [data-status="expired"]) .invoice-grid,
  .invoice[data-status="partial"][data-payment-amount=""] .invoice-grid { grid-template-columns: minmax(0, 42rem); }
  .invoice:is([data-status="paid"], [data-status="expired"]) .invoice-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-6); }
}
.pay { display: grid; gap: var(--sp-5); }
.pay-field { display: grid; gap: var(--sp-2); }
.pay-amount { font-size: var(--fs-lg) !important; font-weight: 600; color: var(--ink); }
.pay-address { word-break: break-all; }
.qr {
  display: grid;
  justify-items: center;
  gap: var(--sp-2);
  margin: 0;
}
/* Scanners need dark modules on a light field, so the code keeps its white quiet zone. */
.qr svg {
  width: 13.75rem;
  height: auto;
  padding: var(--sp-2);
  border-radius: var(--r);
  background: #ffffff;
}
.pay .wallet-desktop { display: none; }
@media (min-width: 60em) and (pointer: fine) {
  .pay :is(.wallet-mobile, .wallet-other) { display: none; }
  .pay .wallet-desktop { display: grid; }
}
.qr figcaption { font-size: var(--fs-sm); color: var(--mute); }
.invoice-side { display: grid; gap: var(--sp-4); }
.progress { display: grid; gap: 0; }
.progress li {
  position: relative;
  display: grid;
  gap: var(--sp-1);
  padding: 0 0 var(--sp-5) var(--sp-7);
  color: var(--mute);
}
.progress li::before {
  content: "";
  position: absolute;
  left: var(--sp-3);
  top: var(--sp-3);
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--edge-strong);
  border-radius: 50%;
  background: var(--night);
  transform: translate(-50%, -50%);
}
.progress li::after {
  content: "";
  position: absolute;
  left: var(--sp-3);
  top: var(--sp-5);
  bottom: var(--sp-1);
  border-left: 1px solid var(--edge-strong);
  transform: translateX(-0.5px);
}
.progress li:last-child { padding-bottom: 0; }
.progress li:last-child::after { display: none; }
.progress li.done::before { border-color: var(--live); background: var(--live); }
.progress li.now { color: var(--ink); }
.progress li.now:not(.done)::before { border-color: var(--star); background: var(--star); }
.invoice[data-status="expired"] .progress li.now::before { border-color: var(--stop); background: transparent; }
.progress li[data-step="2"].done .progress-meta { display: none; }
.progress-title { font-weight: 500; }
.progress li.done .progress-title { color: var(--ink); }
.progress-meta { font-size: var(--fs-sm); color: var(--mute); }
.invoice-state { margin: 0; }
.ref-full { font-size: var(--fs-xs); word-break: normal; overflow-wrap: anywhere; }
.invoice-side .facts-list { align-content: start; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }

/* ---------- Status ---------- */

.status-summary { margin-bottom: var(--sp-6); }
.status-summary p { margin-top: var(--sp-2); }
.status-list { margin: 0 0 var(--sp-6); border: 1px solid var(--edge); border-radius: var(--r); background: var(--surface); }

.status-row {
  display: grid;
  gap: var(--sp-2) var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
}
.status-row + .status-row { border-top: 1px solid var(--edge); }
@media (min-width: 40em) {
  .status-row { grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; }
}
.status-row dt { font-weight: 500; }
.status-row dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.status-detail { width: 100%; font-size: var(--fs-sm); color: var(--mute); }
.status-detail-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); }
.status-notes { padding-top: var(--sp-2); }

/* ---------- Error pages ---------- */

.error-page { display: grid; justify-items: center; }
.error-card {
  width: 100%;
  max-width: 36rem;
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
}
.error-card:focus { outline: none; }
.error-card .mark { margin-bottom: var(--sp-2); }
.error-actions { margin-top: var(--sp-2); }
/* On a phone the two buttons stack. Left to wrapping, a pair that fits within a pixel or two sat
   in one row in the stand-in font and in two once the web font arrived. */
@media (max-width: 29.99em) {
  .error-actions .btn { flex: 1 1 100%; }
}
.error-details { width: 100%; margin-top: var(--sp-4); }
.error-details .facts-list { margin-bottom: var(--sp-3); }

/* ---------- Prose (Markdown pages) ---------- */

.prose { max-width: var(--measure); color: var(--mute); }
.prose > * + * { margin-top: var(--sp-4); }
.prose h1 { margin-bottom: var(--sp-5); color: var(--ink); }
.prose h2 { margin-top: var(--sp-7); font-size: 1.875rem; color: var(--ink); }
.prose h3 { margin-top: var(--sp-5); color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--sp-2); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--mute); }
.prose strong { color: var(--ink); }
.prose a { overflow-wrap: anywhere; }
.prose-page { font-size: var(--fs-md); line-height: 1.7; }
.prose-page h1 + p { font-size: 1.25rem; color: var(--ink); }

/* ---------- Usage reports ---------- */

.summary-line { margin-bottom: var(--sp-5); color: var(--ink); }
.report { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.report-head h2 { font: 500 1.375rem/1.25 var(--display); }
.report-head h2 code { font-size: 0.6em; vertical-align: 0.2em; }
.report h3 { font-size: var(--fs-base); margin-top: var(--sp-2); }
.code-block { max-height: 28rem; }

/* ---------- Motion, contrast and print ---------- */

a, button, .wp-pick .btn {
  transition: opacity var(--dur-press) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
:is(button, .btn):active:not(:disabled) { transform: scale(.97); }
[data-copy] { min-width: 44px; min-height: 44px; }
[data-copied] { animation: show-feedback var(--dur-press) var(--ease-out) both; }
@keyframes show-feedback { from { opacity: .55; } to { opacity: 1; } }

/* A check drawn as the two strokes of an L turned on its side. */
.payment-check { position: relative; width: 2rem; height: 1.75rem; color: var(--live); }
.payment-check::before {
  content: "";
  position: absolute;
  left: 0.6em;
  top: 0.1em;
  width: 0.55em;
  height: 1.05em;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-press); }
  .script-name { view-transition-name: attr(data-transition type(<custom-ident>), none); }
  .catalogue-grid[data-first-visit] > li:nth-child(-n+6) {
    animation: reveal-script var(--dur-panel) var(--ease-out) both;
  }
  .catalogue-grid[data-first-visit] > li:nth-child(2) { animation-delay: calc(var(--dur-press) / 3); }
  .catalogue-grid[data-first-visit] > li:nth-child(3) { animation-delay: calc(var(--dur-press) / 3 * 2); }
  .catalogue-grid[data-first-visit] > li:nth-child(4) { animation-delay: var(--dur-press); }
  .catalogue-grid[data-first-visit] > li:nth-child(5) { animation-delay: calc(var(--dur-press) / 3 * 4); }
  .catalogue-grid[data-first-visit] > li:nth-child(6) { animation-delay: calc(var(--dur-press) / 3 * 5); }
  [aria-invalid="true"][autofocus], .input:user-invalid:focus { animation: field-error var(--dur-panel) var(--ease-move) both; }
  .payment-check::before { animation: draw-check var(--dur-ui) var(--ease-out) both; }
  .paid-success .btn-primary { animation: show-install var(--dur-press) var(--ease-out) calc(var(--dur-ui) * 2) both; }
  .hero[data-first-visit] :is(h1, .lead, .hero-actions, .hero-facts, .hero-visual) { animation: reveal-hero calc(var(--dur-panel) * 2) var(--ease-out) both; }
  .hero[data-first-visit] .lead { animation-delay: var(--dur-press); }
  .hero[data-first-visit] :is(.hero-actions, .hero-facts) { animation-delay: calc(var(--dur-press) * 2); }
  .hero[data-first-visit] .hero-visual { animation-delay: var(--dur-ui); }
}
@keyframes reveal-script { from { opacity: 0; } }
@keyframes reveal-hero { from { opacity: 0; } }
@keyframes field-error {
  14%, 42%, 70% { transform: translateX(-3px); }
  28%, 56%, 84% { transform: translateX(3px); }
}
@keyframes draw-check { from { opacity: 0; transform: rotate(45deg) scale(.6); } }
@keyframes show-install { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  :is(button, .btn):active:not(:disabled), .mobile-menu[data-closing] .nav-sheet { transform: none; }
  @starting-style { .mobile-menu[open] .nav-sheet { transform: none; } }
  [data-copied] { animation-duration: var(--dur-press) !important; }
}

@media (forced-colors: active) {
  .sky { display: none; }
  .btn, .card, .notice, .input, .choice, .check, .table-wrap, .disclosure, .faq details, .script-card, .buy-card, .auth-card { border: 1px solid CanvasText; }
  .mark .mark-star { fill: CanvasText; }
  .mark .mark-horizon { stroke: CanvasText; }
  .sigil circle { fill: CanvasText; }
  .sigil line { stroke: CanvasText; }
  .step-star, .hero-facts li::before { forced-color-adjust: none; background: CanvasText; }
  /* Steps still to come stay hollow, so the dots alone show how far along the journey is. */
  .journey li::before { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
  .journey :is([aria-current], [data-done])::before { background: CanvasText; }
  .invoice-state-label::before { forced-color-adjust: none; background: CanvasText; }
  :focus-visible { outline: 2px solid Highlight; }
}

@media print {
  :root { color-scheme: light; }
  html, body { background: #ffffff; color: #000000; }
  h1, h2, h3, h4 { color: #000000; }
  .sky, .site-header, .site-footer, .skip-link, .banner, .subnav, .btn, .input-addon { display: none !important; }
  .card, .auth-card, .codes code, .notice { background: #ffffff; color: #000000; border-color: #888888; }
  a { color: #000000; }
  .codes { grid-template-columns: repeat(2, 1fr); }
  .codes code { color: #000000; font-size: 14pt; }
  main, main * { text-shadow: none !important; color: #000000 !important; }
  :is(.sheet, .buy-card, .invoice-side, .copy-field, .list-panel, .hero-panel, .script-card, .total, .pay) { background: #ffffff !important; border-color: #888888 !important; }
}
