@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  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-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") 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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") 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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Matchwright app: one design system for /login, /signup, /reset, /forgot, /verify and /account/*.
   Ink blue and marker yellow, as on the Live site. Class names use the app- and mw- prefixes so they
   can sit beside live.css on the reconcile page. Colours are tokens on :root, redefined for dark mode. */

:root {
  color-scheme: light;
  --paper: #EEF3F7;
  --sheet: #FFFFFF;
  --fg: #13284A;
  --ink: #1C3D6E;
  --ink-hover: #14305A;
  --on-ink: #FFFFFF;
  --fg-2: #4A5D75;
  --fg-3: #5A6E86;            /* 4.69:1 on --paper, 5.24:1 on white */
  --rule: #C5D2DE;
  --rule-soft: #DDE5ED;
  --field-line: #7A8DA3;      /* 3:1 on white for field borders */
  --row: #F5F8FB;
  --ink-tint: #E2E9F1;
  --track: #EEF2F7;
  --marker: #F2C230;
  --marker-wash: #FBE7A6;
  --bad: #B8392A;
  --bad-ink: #962C20;
  --bad-wash: #F8E3DF;
  --deduct: #6F87A8;
  --pending: #6F8AA6;         /* not-yet-known amounts; kept apart from --deduct */
  --focus: #2E6BC6;
  --scrim: rgba(16, 33, 61, 0.36);
  --night: #10213D;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 0.5rem + 2.4vw, 40px);
  --r-btn: 0;
  --r-tag: 4px;
  --r-ctl: 8px;
  --r-sheet: 16px;
  --shadow-sm: 0 1px 2px rgba(19, 40, 74, 0.05), 0 1px 3px rgba(19, 40, 74, 0.06);
  --shadow-md: 0 4px 8px rgba(19, 40, 74, 0.06), 0 2px 4px rgba(19, 40, 74, 0.05);
  --ease-ui: cubic-bezier(0.25, 1, 0.5, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0E1828;
    --sheet: #15223A;
    --fg: #E8EEF6;
    --ink: #9EC1EE;
    --ink-hover: #B6D2F4;
    --on-ink: #0E1828;
    --fg-2: #B4C3D6;
    --fg-3: #9AAEC6;
    --rule: #34476A;
    --rule-soft: #243656;
    --field-line: #6F86A6;
    --row: #1A2A44;
    --ink-tint: #223556;
    --track: #1E2E4A;
    --marker: #F2C230;
    --marker-wash: #4A3D12;
    --bad: #E0695A;
    --bad-ink: #F59A8C;
    --bad-wash: #3F1F1B;
    --deduct: #8AA3C4;
    --pending: #8AA3C4;
    --focus: #7FB0F0;
    --scrim: rgba(3, 8, 18, 0.6);
    --night: #070F1C;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0E1828;
  --sheet: #15223A;
  --fg: #E8EEF6;
  --ink: #9EC1EE;
  --ink-hover: #B6D2F4;
  --on-ink: #0E1828;
  --fg-2: #B4C3D6;
  --fg-3: #9AAEC6;
  --rule: #34476A;
  --rule-soft: #243656;
  --field-line: #6F86A6;
  --row: #1A2A44;
  --ink-tint: #223556;
  --track: #1E2E4A;
  --marker-wash: #4A3D12;
  --bad: #E0695A;
  --bad-ink: #F59A8C;
  --bad-wash: #3F1F1B;
  --deduct: #8AA3C4;
  --pending: #8AA3C4;
  --focus: #7FB0F0;
  --scrim: rgba(3, 8, 18, 0.6);
  --night: #070F1C;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: var(--ink); }
code, .app-mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--ink-tint); padding: 0.05em 0.35em; border-radius: 3px; }
.app-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }

.app-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; text-decoration: none; font-weight: 650; border-radius: var(--r-ctl); }
.app-skip:focus { top: 12px; }

.app-wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- header and shell ---------- */
.app-top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.app-top:empty { display: none; }
.app-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 10px; min-height: 60px; }
.app-brand { display: flex; color: inherit; text-decoration: none; flex: none; min-height: 44px; align-items: center; border-radius: 3px; }
.app-brand svg, .app-brand-logo { height: 26px; width: auto; display: block; }
.mw-band { fill: var(--marker); }
.mw-line { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.mw-text { fill: var(--ink); }
.app-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-user-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; text-align: right; }
.app-user-name { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.app-user-email { font-size: 13px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.app-menu-btn { display: none; appearance: none; min-width: 44px; min-height: 44px; border: 1px solid var(--rule); background: var(--sheet); border-radius: var(--r-ctl); cursor: pointer; align-items: center; justify-content: center; color: var(--fg); }
.app-menu-btn svg { width: 20px; height: 20px; }

.app-nav ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.app-nav ul::-webkit-scrollbar { display: none; }
.app-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; white-space: nowrap;
  color: var(--fg-2); text-decoration: none; font-weight: 500; font-size: 15px;
  border-bottom: 2.5px solid transparent;
}
.app-nav a:hover { color: var(--fg); }
.app-nav a[aria-current="page"] { color: var(--fg); font-weight: 650; border-bottom-color: var(--ink); }
.app-nav-row { padding-bottom: 0; }
.app-nav-out { display: none; }

/* ---------- main and layout ---------- */
.app-main { padding-top: 32px; padding-bottom: 72px; }
.app-main:focus { outline: none; }
.app-head { margin-bottom: 24px; max-width: 760px; }
.app-head h1 { font-size: clamp(28px, 1.2vw + 20px, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; }
.app-head .app-lede { margin-top: 10px; }
.app-lede { font-size: 16.5px; line-height: 1.55; color: var(--fg-2); max-width: 64ch; }
.app-small { font-size: 14px; color: var(--fg-3); }
.app-kind { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.app-stack { display: flex; flex-direction: column; gap: 24px; }
.app-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.app-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.app-between { justify-content: space-between; }
.app-section-title { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; }

.app-card {
  background: var(--sheet); border: 1px solid var(--rule-soft); border-radius: var(--r-sheet);
  padding: 28px; box-shadow: var(--shadow-sm); min-width: 0;
}
.app-card.flush { padding: 0; overflow: hidden; }
.app-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.app-card-head p { color: var(--fg-3); font-size: 14px; margin-top: 3px; max-width: 70ch; }
.app-card.flush .app-card-head { padding: 24px 28px 0; }
.app-card-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }

.app-notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-ctl);
  background: var(--marker-wash); color: var(--fg); font-size: 15px;
}
.app-notice p + p { margin-top: 6px; }
.app-notice.is-bad { background: var(--bad-wash); }
.app-notice.is-ok { background: var(--ink-tint); }
.app-notice .app-btn { margin-top: 10px; }

.app-empty { padding: 28px; text-align: left; color: var(--fg-2); }
.app-empty b { color: var(--fg); font-weight: 650; display: block; font-size: 16px; margin-bottom: 4px; }
.app-empty p + p { margin-top: 8px; }

/* ---------- buttons, links ---------- */
.app-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 18px; border-radius: var(--r-btn); border: 1.5px solid transparent;
  font: inherit; font-size: 15px; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 200ms var(--ease-ui), box-shadow 200ms var(--ease-ui), background-color 200ms var(--ease-ui);
}
.app-btn:active { transform: scale(0.98); transition-duration: 100ms; }
.app-btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.app-btn-primary { background: var(--ink); color: var(--on-ink); }
.app-btn-primary:hover:not(:disabled) { background: var(--ink-hover); box-shadow: var(--shadow-md); }
.app-btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.app-btn-quiet:hover:not(:disabled) { background: var(--ink-tint); border-color: var(--ink-tint); }
.app-btn-danger { background: var(--bad); color: #fff; }
.app-btn-danger:hover:not(:disabled) { background: var(--bad-ink); }
.app-btn-marker { background: var(--marker); color: var(--night); }
.app-btn-marker:hover:not(:disabled) { background: #FFD24A; }
.app-btn-block { width: 100%; }
.app-link {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
  font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.app-link:hover { text-decoration-thickness: 2px; }
.app-link.is-bad { color: var(--bad-ink); }

/* ---------- chips and pills ---------- */
.app-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px;
  font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--ink-tint); color: var(--fg-2);
}
.app-chip-ok { background: var(--marker-wash); color: var(--ink); }
.app-chip-open { background: var(--bad-wash); color: var(--bad-ink); }
.app-chip-wait { background: var(--ink-tint); color: var(--fg-2); }
.app-chip-plan { background: var(--ink); color: var(--on-ink); }
.app-mark { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; }
.app-mark svg { width: 10px; height: 10px; display: block; }
.app-mark-ok { background: var(--marker); color: var(--night); }
.app-mark-open { background: var(--bad); color: #fff; }
.app-mark-wait { background: var(--ink-tint); color: var(--fg-2); }

/* ---------- forms ---------- */
.app-form { display: flex; flex-direction: column; gap: 20px; }
.app-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.app-label { font-size: 15px; font-weight: 600; color: var(--fg); }
.app-help { font-size: 14px; color: var(--fg-3); }
.app-input, .app-select, .app-textarea {
  appearance: none; width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: 16px; color: var(--fg); background: var(--sheet);
  border: 1.5px solid var(--field-line); border-radius: var(--r-ctl);
}
.app-input::placeholder { color: var(--fg-3); opacity: 1; }
.app-input:hover { border-color: var(--fg-2); }
.app-input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad) inset; }
.app-error { font-size: 14px; color: var(--bad-ink); font-weight: 550; }
.app-input-row { display: flex; gap: 8px; align-items: stretch; }
.app-input-row .app-input { flex: 1; }
.app-input-row .app-btn { min-height: 44px; }
.app-check { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 15px; color: var(--fg-2); cursor: pointer; }
.app-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.app-form-msg { font-size: 15px; color: var(--bad-ink); font-weight: 550; }
.app-form-msg:empty { display: none; }
.app-form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.app-fieldset legend { padding: 0; font-size: 15px; font-weight: 650; margin-bottom: 4px; }
.app-readonly { background: var(--row); color: var(--fg-2); }
.app-form-split { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }

/* ---------- auth pages ---------- */
.app-auth-main { padding-top: clamp(24px, 6vh, 64px); padding-bottom: 64px; }
.app-auth { max-width: 440px; margin: 0 auto; }
.app-auth .app-card { padding: 32px; }
.app-auth h1 { font-size: clamp(26px, 1vw + 20px, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.app-auth .app-lede { margin-bottom: 24px; }
.app-auth-foot { margin-top: 20px; font-size: 15px; color: var(--fg-2); display: flex; flex-direction: column; gap: 6px; }
.app-auth-top { display: flex; justify-content: center; margin-bottom: 28px; }
.app-auth-top .app-brand { min-height: 44px; }

/* ---------- lists of cards (sources, runs) ---------- */
.app-items { display: flex; flex-direction: column; gap: 12px; }
.app-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: center;
  padding: 18px 20px; background: var(--sheet); border: 1px solid var(--rule-soft); border-radius: var(--r-ctl); box-shadow: var(--shadow-sm);
}
.app-item-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.app-item-title { font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
.app-item-meta { font-size: 14px; color: var(--fg-3); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.app-item-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.app-kind { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.app-kind-icon { width: 36px; height: 36px; border-radius: var(--r-ctl); background: var(--ink-tint); color: var(--ink); display: grid; place-items: center; flex: none; }
.app-kind-icon svg { width: 20px; height: 20px; }

/* ---------- tables (card per row under 600px) ---------- */
.app-table-wrap { overflow-x: auto; }
.app-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.app-table th { text-align: left; font-weight: 650; font-size: 13.5px; color: var(--fg-2); padding: 12px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--sheet); }
.app-table td { padding: 14px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.app-table tbody tr:last-child td { border-bottom: 0; }
.app-table th:first-child, .app-table td:first-child { padding-left: 24px; }
.app-table th:last-child, .app-table td:last-child { padding-right: 24px; }
.app-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-table .sub { display: block; color: var(--fg-3); font-size: 13.5px; margin-top: 2px; }
.app-table tfoot td { font-weight: 700; border-top: 1.5px solid var(--fg); border-bottom: 0; }
.app-table .is-bad { color: var(--bad-ink); }
.app-table .is-dim { color: var(--fg-3); }
.app-table.no-dates th:nth-child(2), .app-table.no-dates td:nth-child(2) { display: none; }

/* ---------- dialogs ---------- */
.app-dialog {
  width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0;
  border-radius: var(--r-sheet); background: var(--sheet); color: var(--fg); box-shadow: var(--shadow-md), 0 24px 48px -24px rgba(19, 40, 74, 0.35);
}
.app-dialog::backdrop { background: var(--scrim); }
.app-dialog-body { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.app-dialog h2 { font-size: 21px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; }
.app-dialog p { color: var(--fg-2); font-size: 15px; }
.app-dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--rule-soft); }
.app-dialog-foot .app-btn { min-width: 0; }
.app-dialog-x { position: absolute; top: 12px; right: 12px; }

/* ---------- toasts ---------- */
.app-toasts { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.app-toast {
  max-width: 560px; width: 100%; padding: 12px 16px; border-radius: var(--r-ctl); background: var(--night); color: #fff;
  box-shadow: var(--shadow-md); font-size: 15px; font-weight: 550;
}
.app-toast.is-bad { background: var(--bad); }
.app-toast.is-ok { background: var(--ink); color: var(--on-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-toast.is-ok { background: var(--marker); color: var(--night); } }
:root[data-theme="dark"] .app-toast.is-ok { background: var(--marker); color: var(--night); }

/* ---------- key/value and definitions ---------- */
.app-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; font-size: 15px; }
.app-kv dt { color: var(--fg-2); }
.app-kv dd { font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.app-why { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.app-why li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.app-why li .app-mark { margin-top: 2px; }

/* ---------- plan cards ---------- */
.app-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.app-plan { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--sheet); border: 1.5px solid var(--rule-soft); border-radius: var(--r-sheet); box-shadow: var(--shadow-sm); }
.app-plan.is-current { border-color: var(--ink); }
.app-plan h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.01em; }
.app-price { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.app-price span { font-size: 15px; font-weight: 500; color: var(--fg-2); letter-spacing: 0; }
.app-plan ul { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--fg-2); }
.app-plan ul li { position: relative; padding-left: 22px; }
.app-plan ul li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 9px; background: var(--marker); border-radius: 2px; }
.app-plan .app-btn { margin-top: auto; }

/* ---------- misc ---------- */
.app-stat { display: flex; flex-direction: column; gap: 2px; }
.app-stat b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.app-stat span { font-size: 14px; color: var(--fg-2); }
.app-bar { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.app-bar > span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
/* Top and bottom only: a shorthand padding here would also zero the side gutter of .app-wrap. */
.app-foot { border-top: 1px solid var(--rule); padding-top: 20px; padding-bottom: 32px; font-size: 14px; color: var(--fg-2); }
.app-foot p + p { margin-top: 4px; }
.app-danger-zone { border-color: var(--bad-wash); }
.app-danger-zone h2 { color: var(--bad-ink); }
.app-danger-zone .app-card-head h2 { font-size: 19px; font-weight: 750; }
.app-prose p + p { margin-top: 12px; }
.app-prose { max-width: 66ch; color: var(--fg-2); font-size: 15px; }


/* helpers used by the page markup */
.app-title { font-size: clamp(26px, 1vw + 20px, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.app-stack-s { display: flex; flex-direction: column; gap: 14px; }
.app-top-gap { margin-top: 20px; }
.app-top-gap-s { margin-top: 6px; }
.app-bottom-gap { margin-bottom: 14px; }
.app-runs-pad { padding: 0 24px 24px; }
.app-more { padding: 0 24px 24px; margin-top: -6px; }
.app-back { margin-bottom: 16px; }
.app-danger-row { padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.app-danger-text { color: var(--bad-ink); }
.app-dialog-form { margin: 0; display: flex; flex-direction: column; }
.app-plan-name { font-size: 20px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; }
.app-dialog-body h2 + p { margin-top: -6px; }
.app-empty .app-form-actions { margin-top: 8px; }
.app-kv dd .app-mono { font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .app-menu-btn { display: inline-flex; }
  .app-signout { display: none; }
  .app-nav-out { display: block; border-top: 1px solid var(--rule-soft); margin-top: 6px; }
  .app-nav-out .app-link { min-height: 48px; padding-left: 12px; font-size: 16px; }
  .app-user-who { display: none; }
  .app-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-md); }
  .app-nav.is-open { display: block; }
  .app-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 12px; overflow: visible; }
  .app-nav a { min-height: 48px; border-bottom: 0; border-left: 3px solid transparent; padding-left: 12px; font-size: 16px; }
  .app-nav a[aria-current="page"] { border-left-color: var(--ink); background: var(--ink-tint); }
  .app-top { position: sticky; }
  .app-top-row { position: relative; }
  .app-nav-row { position: static; }
  .app-form-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .app-card { padding: 22px 20px; border-radius: 14px; }
  .app-card.flush .app-card-head { padding: 20px 20px 0; }
  .app-auth .app-card { padding: 26px 22px; }
  .app-item { grid-template-columns: minmax(0, 1fr); }
  .app-item-actions { justify-content: flex-start; }
  .app-dialog-body { padding: 24px 20px; }
  .app-dialog-foot { padding: 14px 20px; }
  .app-dialog-foot .app-btn { flex: 1 1 auto; }
  .app-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .app-kv dt { margin-top: 10px; font-size: 13.5px; }
  .app-kv dt:first-child { margin-top: 0; }
  /* tables become one card per row */
  .app-table-wrap { overflow: visible; }
  .app-table thead { display: none; }
  .app-table, .app-table tbody { display: block; }
  .app-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 16px 18px; border-bottom: 1px solid var(--rule-soft); }
  .app-table tbody tr:last-child { border-bottom: 0; }
  .app-table td { display: block; padding: 0; border: 0; white-space: normal; text-align: left; min-width: 0; }
  .app-table td.num { text-align: left; }
  .app-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12.5px; color: var(--fg-3); margin-bottom: 1px; }
  .app-table td.app-cell-full { grid-column: 1 / -1; }
  .app-table td.app-cell-end { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  .app-table tfoot { display: block; }
  .app-table tfoot tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 14px 18px; border-top: 1.5px solid var(--fg); border-bottom: 0; }
  .app-table tfoot td { border: 0; padding: 0; }
  .app-table tfoot td::before { content: none; }
}
@media (max-width: 380px) {
  .app-brand svg, .app-brand-logo { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media print {
  .app-top, .app-toasts, .app-btn, .app-skip { display: none !important; }
  body { background: #fff; color: #000; }
  .app-card { box-shadow: none; }
}

/* Reconcile page: the "how it works" block has two columns since the in-browser note was removed. */
@media (min-width: 901px) { .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
