/* ==========================================================================
   Subtitld Cloud — site styles
   Same design language as subtitld.org: tokens.css and fonts.css are copies
   of the ones in Subtitld/grav-theme-subtitld, and the shared pieces below
   (base, header, buttons, badges, tables, callouts, sidebar) follow that
   theme's site.css. Keep them in step when the website changes.
   Fluid layouts, no breakpoints; corners at 2px/4px, no drop shadows.
   ========================================================================== */

:root {
  --text-lead: #a9bfd2;
  --text-body: #c8d6e2;
  --text-dim: #6a7483;
  --bg-tile: #111920;
  --surface-strong: rgba(48, 66, 81, .3);
  --border-strong: rgba(184, 206, 224, .2);
  --box-gradient: linear-gradient(180deg, var(--slate-900), #22303b);

  --tip-bg: rgba(85, 212, 63, .08);
  --tip-border: rgba(103, 255, 77, .28);
  --tip-text: #d6eed1;
  --warn-bg: rgba(197, 82, 82, .1);
  --warn-border: rgba(212, 100, 100, .35);
  --warn-text: #e3cfcf;

  --container-docs: 1280px;
  --hit: 44px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--text); }
a:hover { color: #fff; }

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

h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }

code, kbd, pre, samp { font-family: var(--font-mono); }
code { font-size: .95em; color: var(--sky-light); }

b, strong { font-weight: 600; color: var(--text-strong); }

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-0) 0, var(--bg-1) 900px, var(--bg-2) 100%);
}
.page > main { flex: 1 0 auto; }

.skip-link {
  position: absolute;
  top: -200px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--btn-secondary);
  color: var(--slate-800);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.icon { display: inline-block; flex: none; width: 18px; height: 18px; vertical-align: middle; }

.container {
  width: 100%;
  max-width: calc(var(--container-docs) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header ------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--hairline);
  background: rgba(7, 9, 11, .72);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--hit);
  margin-right: auto;
  text-decoration: none;
}
.brand__logo { width: 30px; height: 30px; }
.brand__word {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: var(--wordmark-tracking);
  text-transform: uppercase;
  color: var(--text-strong);
}
.brand__product {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
}

.header-link {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--nav);
  text-decoration: none;
}
.header-link:hover { color: #fff; }

/* Account menu: a <details> drop-down, no script. */
.user-menu { position: relative; }
.user-menu > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--hit);
  list-style: none;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { color: #fff; }
.user-menu__initial {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--btn-default);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
}
.user-menu__email { overflow: hidden; max-width: 260px; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  background: var(--bg-card);
  list-style: none;
}
.user-menu__list a, .user-menu__list button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--text-soft);
  font: 14px var(--font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.user-menu__list a:hover, .user-menu__list button:hover { background: rgba(184, 206, 224, .06); color: #fff; }

/* Footer ------------------------------------------------------------------- */
/* subtitld.org's footer (grav-theme-subtitld css/site.css), verbatim. */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-0);
  color: var(--text-dim);
}
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.site-footer__main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-block: 56px 32px;
}
.site-footer__about { flex: 2 1 260px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { width: 26px; height: 26px; }
.site-footer__brand span {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: var(--wordmark-tracking);
  text-transform: uppercase;
  color: var(--text-strong);
}
.site-footer__tagline { max-width: 300px; margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.site-footer__col { flex: 1 1 140px; }
.site-footer__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 36px;
  border-top: 1px solid rgba(184, 206, 224, .06);
  font-size: 12px;
}
/* The languages row, above the bottom line. */
.site-footer__languages:empty { display: none; }
.lang-menu { padding-block: 16px 22px; font-size: 13px; }
.lang-menu details { position: relative; display: inline-block; }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  cursor: pointer;
  list-style: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu details[open] summary { color: #fff; border-color: rgba(184, 206, 224, .3); }
.lang-menu summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.lang-menu .icon { flex: none; width: 15px; height: 15px; color: var(--nav); }
.lang-menu__chevron { width: 12px; height: 12px; transition: transform .15s; }
.lang-menu details:not([open]) .lang-menu__chevron { transform: rotate(180deg); }
/* Opens upwards, in two columns, as it sits at the foot of the page. */
.lang-menu ul {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 2px;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  max-height: min(70vh, 480px);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  scrollbar-color: rgba(184, 206, 224, .25) transparent;
}
/* Buttons here, links on subtitld.org: set_language needs a POST. */
.lang-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--text-soft);
  font: inherit;
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { color: #fff; background: rgba(184, 206, 224, .08); }
.lang-menu button[aria-current] { color: #fff; font-weight: 600; }
@media (max-width: 420px) { .lang-menu ul { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 48px); } .lang-menu button { white-space: normal; } }
.site-footer__inline { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }

/* Layout: menu beside the page, wrapping above it on narrow screens ------- */
.layout-sidebar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 48px;
  padding-block: 40px 112px;
}
.layout-sidebar > .sidebar { flex: 1 1 220px; max-width: 260px; font-size: 14px; }
.layout-sidebar > .content { flex: 999 1 620px; min-width: 0; }

.sidebar__group + .sidebar__group { margin-top: 22px; }
.sidebar__title { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.sidebar__list { display: flex; flex-direction: column; margin: 8px 0 0; padding: 0; list-style: none; }
.sidebar__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: var(--radius);
  color: var(--text-soft);
  text-decoration: none;
}
.sidebar__list a:hover { color: #fff; background: rgba(184, 206, 224, .06); }
.sidebar__list a[aria-current] { color: #fff; background: rgba(184, 206, 224, .1); box-shadow: inset 3px 0 0 var(--sky); font-weight: 600; }
.sidebar__list .icon { width: 16px; height: 16px; color: var(--nav); }
.sidebar__list a[aria-current] .icon { color: var(--sky-light); }

/* Signed-out pages: one box in the middle. */
.entrance { display: grid; place-items: center; padding-block: 72px 112px; }
.entrance > * { width: 100%; max-width: 460px; }

/* Type ----------------------------------------------------------------------- */
.eyebrow {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow--muted { font-size: 10px; letter-spacing: .16em; color: var(--text-dim); }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 32px; }
.page-head__text { flex: 1 1 420px; }
.page-head__title { margin-top: 10px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; color: var(--text-strong); overflow-wrap: anywhere; }
.page-head__lead { max-width: 720px; margin-top: 14px; font-size: 16px; color: var(--text-soft); }
.page-head__meta { margin-top: 10px; font-size: 13px; color: var(--text-muted); }

.h-section { font-size: 22px; font-weight: 300; line-height: 1.3; color: var(--text-strong); }

.text-soft { color: var(--text-soft); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green-light); }
.text-red { color: var(--danger-text); }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  text-decoration: none;
}

.stack > * + * { margin-top: 24px; }
.narrow { max-width: 640px; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }

/* Buttons and badges ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  font: 700 11px/1.2 var(--font);
  letter-spacing: var(--label-tracking);
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--btn-primary);
  color: var(--on-green);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover { background: var(--btn-primary-hover); color: var(--on-green); }
.btn--default {
  background: var(--btn-default);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.btn--default:hover { background: var(--btn-default-hover); color: var(--text); }
.btn--outline { border: 1px solid var(--border-strong); background: none; color: var(--text); }
.btn--outline:hover { border-color: rgba(184, 206, 224, .45); }
.btn--danger { border: 1px solid var(--warn-border); background: rgba(197, 82, 82, .16); color: var(--danger-text); }
.btn--danger:hover { background: rgba(197, 82, 82, .28); color: #fff; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 10px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 12px; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* A text-looking button, for row actions such as Revoke. */
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: 700 11px var(--font);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}
.link-btn:hover { color: #fff; }
.link-btn--danger { color: var(--danger-text); }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: var(--label-tracking);
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--green { background: rgba(85, 212, 63, .14); color: var(--green-light); }
.badge--red { background: rgba(197, 82, 82, .16); color: var(--danger-text); }
.badge--amber { background: rgba(232, 178, 74, .14); color: #f0d08c; }
.badge--slate { background: var(--slate-900); color: var(--text); font-weight: 700; }
.badge--sky { background: var(--btn-secondary); color: var(--slate-800); }

/* Surfaces --------------------------------------------------------------- */
.card {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: var(--radius);
  background: var(--surface);
}
.card > * + * { margin-top: 12px; }
.card__title { font-size: 11px; font-weight: 700; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-strong); }
.card__text { font-size: 14px; color: var(--text-soft); }
.card--danger { border-color: var(--warn-border); background: var(--warn-bg); }
.card--danger .card__title { color: var(--danger-text); }
.card--center { text-align: center; }

/* A box with a title bar (the website's donate box), for forms and lists. */
.panel {
  overflow: hidden;
  border: 1px solid rgba(184, 206, 224, .16);
  border-radius: var(--radius-frame);
  background: var(--box-gradient);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 18px;
  background: var(--slate-800);
}
.panel__title { font-size: var(--label-size); font-weight: 700; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-strong); }
.panel__body { padding: 24px 24px 26px; }
.panel__body--flush { padding: 0; }
.panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text-muted);
}
.panel .table-wrap { border: 0; border-radius: 0; }

.empty { padding: 48px 24px; text-align: center; font-size: 15px; color: var(--text-soft); }
.empty > * + * { margin-top: 16px; }
.empty__title { font-size: 18px; font-weight: 300; color: var(--text-strong); }

/* Number tiles with 2px seams; the label comes first for screen readers
   but shows under the value. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 220px), 100%), 1fr));
  gap: 2px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-frame);
  background: rgba(184, 206, 224, .06);
}
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 22px 22px 20px; background: var(--bg-tile); }
.stats dt { margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--nav); }
.stats dd { font-size: 34px; font-weight: 200; line-height: 1.2; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.stats__note { order: -1; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.stats__note a { font-weight: 600; text-decoration: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 320px), 100%), 1fr));
  gap: var(--gap, 24px);
  align-items: start;
}

/* Tables ------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(184, 206, 224, .1);
  border-radius: var(--radius);
}
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; color: var(--text-body); }
.table-wrap th, .table-wrap td { padding: 11px 16px; text-align: left; vertical-align: middle; }
.table-wrap thead tr { background: rgba(62, 83, 99, .6); }
.table-wrap thead th { font-size: 10px; font-weight: 700; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text); white-space: nowrap; }
.table-wrap tbody tr + tr { border-top: 1px solid var(--hairline); }
.table-wrap tbody tr:nth-child(even) { background: rgba(48, 66, 81, .14); }
.table-wrap tbody td:first-child { font-weight: 600; color: var(--text-strong); }
.table-wrap code { font-size: 1em; }
.table-wrap .end { text-align: right; }
.table-wrap--plain tbody td:first-child { font-weight: 400; color: inherit; }

/* Ledger: one entry per row, amount on the right. */
.entries { margin: 0; padding: 0; list-style: none; }
.entries li { padding: 14px 18px; font-size: 14px; }
.entries li + li { border-top: 1px solid var(--hairline); }
.entries__row { display: flex; justify-content: space-between; gap: 12px; }
.entries__kind { color: var(--text-body); }
.entries__amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.entries__meta { margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.entries__note { overflow: hidden; margin-top: 4px; font-size: 12px; color: var(--text-soft); text-overflow: ellipsis; white-space: nowrap; }

/* Key/value list (account profile). */
.facts { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 10px 24px; font-size: 15px; }
.facts dt { padding-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--nav); }
.facts dd { color: var(--text-strong); overflow-wrap: anywhere; }

.list { padding-left: 20px; font-size: 14px; color: var(--text-body); }
.list li + li { margin-top: 8px; }

.steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; font-size: 14px; color: var(--text-body); }
.steps li { position: relative; padding-left: 34px; }
.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius);
  background: var(--slate-900);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-strong);
}

/* Callouts and messages ---------------------------------------------------- */
.messages { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(184, 206, 224, .1);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text-body);
  font-size: 15px;
}
.callout > .icon { margin-top: 3px; color: var(--text); }
.callout b, .callout strong { font-weight: 700; color: #fff; }
.callout--tip { border-color: var(--tip-border); background: var(--tip-bg); color: var(--tip-text); }
.callout--tip > .icon { color: var(--green-light); }
.callout--warning { border-color: var(--warn-border); background: var(--warn-bg); color: var(--warn-text); }
.callout--warning > .icon { color: var(--danger-text); }

.terminal {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg-code);
  font-size: 14px;
  line-height: 1.7;
  color: var(--sky-light);
  overflow-x: auto;
}

.ui-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-strong); }

/* Forms ------------------------------------------------------------------- */
.form > * + * { margin-top: 22px; }
.form > .btn-row { margin-top: 28px; }
.field__label { display: block; font-size: 10px; font-weight: 700; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text); }
.field__label code { font-size: 12px; text-transform: none; letter-spacing: 0; }
.field__label .req { color: var(--danger-text); }
.field__help { margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.field__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.field__row > .input { flex: 1 1 240px; margin-top: 0; }

.input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--slate-900);
  color: var(--text-strong);
  font: 15px var(--font);
}
.input::placeholder { color: var(--grey-500); }
.input:hover { border-color: var(--border-strong); }
.input:focus { border-color: var(--sky); outline: none; }
.input:focus-visible { outline: 2px solid var(--sky-light); outline-offset: 0; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 36px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--nav) 50%), linear-gradient(-45deg, transparent 50%, var(--nav) 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input--mono { font-family: var(--font-mono); font-size: 15px; }
.input--danger:focus { border-color: var(--danger); }

.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-body); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }

/* Money: a $ before the field. */
.amount-input { display: flex; align-items: center; margin-top: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--slate-900); }
.amount-input:focus-within { border-color: var(--sky); }
.amount-input span { padding-left: 14px; font-size: 16px; color: var(--nav); }
.amount-input input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px 0 6px;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font: 16px var(--font);
  font-variant-numeric: tabular-nums;
  outline-offset: -2px;
}
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin-top: 8px; }
.amounts button {
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--slate-900);
  color: var(--text-strong);
  font: 600 18px var(--font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.amounts button:hover { border-color: rgba(184, 206, 224, .45); }
.amounts button[aria-pressed="true"] { border-color: var(--sky-light); background: var(--sky); color: #22303b; }

/* Filters above a table. */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.filters > div { flex: 1 1 160px; }
.filters > .btn-row { flex: 0 0 auto; }

/* Google sign-in button: dark, with the multicolour G. */
.btn--google { gap: 12px; border: 1px solid var(--border-strong); background: var(--slate-900); color: var(--text-strong); font-size: 12px; }
.btn--google:hover { border-color: rgba(184, 206, 224, .45); background: var(--slate-800); color: #fff; }
.btn--google svg { width: 18px; height: 18px; }

/* Error pages. */
.error-code { font-size: clamp(64px, 10vw, 96px); font-weight: 200; line-height: 1; color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* Main column with a narrower one beside it; stacks when space runs out. */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.split__main { flex: 2 1 560px; min-width: 0; }
.split__aside { flex: 1 1 280px; min-width: 0; }
.split--even > * { flex: 1 1 400px; min-width: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Phones: the menu above the page turns into wrapping rows, and the
   account menu shows only the initial, so the page starts near the top. */
@media (max-width: 720px) {
  .layout-sidebar { padding-top: 20px; gap: 28px; }
  .layout-sidebar > .sidebar { max-width: none; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
  .sidebar__group + .sidebar__group { margin-top: 14px; }
  .sidebar__list { flex-direction: row; flex-wrap: wrap; gap: 2px 4px; margin-top: 6px; }
  .sidebar__list a { padding: 7px 10px; }
  .sidebar__list a[aria-current] { box-shadow: inset 0 -2px 0 var(--sky); }
  .site-header__inner { gap: 12px; }
  .user-menu__email { display: none; }
}

