/* ─────────────────────────────────────────────────────────────
   VIP Alert · Billing Report
   Identity: nested surfaces. A warm grey tray holds white cards.
   Almost no rules; depth comes from soft shadow. A serif speaks to
   the reader, the sans handles the interface. Brand green owns the
   interface and never enters the data layer; direction of change speaks
   blue and red. Nothing on the page is green and ambiguous.
   ───────────────────────────────────────────────────────────── */
:root {
  --page:      #f7f6f4;
  --tray:      #efeeea;
  --card:      #ffffff;
  --card-sunk: #faf9f7;
  --hair:      #e8e5df;
  --hair-soft: #f0eee9;

  --ink:   #1c1b19;
  --ink-2: #6b6862;
  --ink-3: #9d9990;

  /* Brand green owns the interface; it appears nowhere in the data layer,
     so nothing on this page is green and ambiguous. */
  --brand-deep: #004f3e;
  --brand:      #157a63;
  --brand-dim:  #a8c9bf;
  --on-brand:   #ffffff;
  --brand-wash:   rgba(21, 122, 99, .09);
  --brand-wash-2: rgba(21, 122, 99, .16);
  --brand-head:   #157a63;
  --brand-line:   rgba(21, 122, 99, .18);

  /* Direction of change. Blue over green because the brand took green:
     measured DE 25.3 under colour blindness, against 10.7 for green/red. */
  --up-bar:   #2a78d6;
  --down-bar: #cf3a2e;
  --up-ink:   #1d5fb0;
  --down-ink: #b83226;
  --flat-ink: #9d9990;
  --up-wash:   rgba(42, 120, 214, .10);
  --down-wash: rgba(207, 58, 46, .10);
  --note:      #8a6512;
  --note-wash: #fbf3e2;
  --note-line: #efdfba;

  --shadow-card: 0 1px 2px rgba(28,27,25,.045), 0 6px 18px rgba(28,27,25,.045);
  --shadow-rail: 0 1px 2px rgba(28,27,25,.05), 0 12px 34px rgba(28,27,25,.06);
  --shadow-pop:  0 8px 26px rgba(28,27,25,.16);

  --r-tray: 20px;
  --r-card: 14px;
  --r-ctl: 10px;
  --r-chip: 7px;

  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-deep: #004536;
    --brand:      #1c8c72;
    --brand-dim:  #9dc0b6;
    --brand-wash:   rgba(47, 176, 145, .14);
    --brand-wash-2: rgba(47, 176, 145, .22);
    --brand-head:   #2fb091;
    --brand-line:   rgba(47, 176, 145, .26);
    --page:      #161513;
    --tray:      #1e1d1a;
    --card:      #262420;
    --card-sunk: #2c2a25;
    --hair:      #34312b;
    --hair-soft: #2d2b26;
    --ink:   #f2efe9;
    --ink-2: #a8a399;
    --ink-3: #7a766e;
    --up-bar:   #4a90e8;
    --down-bar: #e8584a;
    --up-ink:   #7fb6f5;
    --down-ink: #f07a6e;
    --flat-ink: #7a766e;
    --up-wash:   rgba(74, 144, 232, .16);
    --down-wash: rgba(232, 88, 74, .16);
    --note:      #e0b252;
    --note-wash: #2c2312;
    --note-line: #4a3c1c;
    --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.24);
    --shadow-rail: 0 1px 2px rgba(0,0,0,.34), 0 12px 34px rgba(0,0,0,.3);
    --shadow-pop:  0 8px 26px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-deep: #004536;
  --brand:      #1c8c72;
  --brand-dim:  #9dc0b6;
  --brand-wash:   rgba(47, 176, 145, .14);
  --brand-wash-2: rgba(47, 176, 145, .22);
  --brand-head:   #2fb091;
  --brand-line:   rgba(47, 176, 145, .26);
  --page:      #161513;
  --tray:      #1e1d1a;
  --card:      #262420;
  --card-sunk: #2c2a25;
  --hair:      #34312b;
  --hair-soft: #2d2b26;
  --ink:   #f2efe9;
  --ink-2: #a8a399;
  --ink-3: #7a766e;
  --up-bar:   #4a90e8;
  --down-bar: #e8584a;
  --up-ink:   #7fb6f5;
  --down-ink: #f07a6e;
  --flat-ink: #7a766e;
  --up-wash:   rgba(74, 144, 232, .16);
  --down-wash: rgba(232, 88, 74, .16);
  --note:      #e0b252;
  --note-wash: #2c2312;
  --note-line: #4a3c1c;
  --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.24);
  --shadow-rail: 0 1px 2px rgba(0,0,0,.34), 0 12px 34px rgba(0,0,0,.3);
  --shadow-pop:  0 8px 26px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--f-ui); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── top bar ─────────────────────────────────────────── */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 22px;
  background: var(--brand-deep); color: var(--on-brand);
}
.top .pill, .top .iconbtn {
  background: rgba(255,255,255,.13); box-shadow: none; color: var(--brand-dim);
}
.top .iconbtn:hover { color: var(--on-brand); background: rgba(255,255,255,.2); }
.top .glyph { background: rgba(255,255,255,.16); box-shadow: none; }
.top .glyph span { background: linear-gradient(135deg, #fff 0 50%, rgba(255,255,255,.42) 50% 100%); }
.top :focus-visible { outline-color: var(--on-brand); }
.brandline { display: flex; align-items: center; gap: 11px; }
.glyph {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--card); box-shadow: var(--shadow-card);
  display: grid; place-items: center;
}
.glyph span {
  width: 11px; height: 11px; border-radius: 3px;
  background: linear-gradient(135deg, var(--ink) 0 50%, var(--ink-3) 50% 100%);
}
.brandname { font-weight: 600; letter-spacing: -.01em; font-size: 14.5px; }
.brandname i { font-style: normal; color: var(--brand-dim); font-weight: 500; }
.top-right { display: flex; align-items: center; gap: 9px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-chip);
  font-size: 11.5px; font-weight: 600; letter-spacing: .005em;
  background: var(--card); color: var(--ink-2); box-shadow: var(--shadow-card);
}
.pill.note { background: var(--note-wash); color: var(--note); box-shadow: none; border: 1px solid var(--note-line); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.iconbtn {
  text-decoration: none; width: 30px; height: 30px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--card); box-shadow: var(--shadow-card);
  color: var(--ink-2); display: grid; place-items: center; font-size: 13px;
}
.iconbtn:hover { color: var(--ink); }

/* ── frame ───────────────────────────────────────────────── */
.frame { padding: 0 14px 22px; max-width: 1440px; margin: 0 auto; }
.tray { background: var(--tray); border-radius: var(--r-tray); padding: 20px; min-width: 0; }

/* ── report header ──────────────────────────────────────────── */
.eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
}
.hero {
  font-family: var(--f-serif); font-weight: 300;
  font-size: 40px; line-height: 1.12; letter-spacing: -.015em;
  margin: 5px 0 0; color: var(--ink); text-wrap: balance;
}
.hero em { font-style: normal; color: var(--ink-3); padding: 0 4px; }
.hero-sub { margin: 5px 0 0; font-size: 13px; color: var(--ink-2); }

/* freshness: the seven-day window, loaded and not yet loaded */
.fresh { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.fresh-track { display: flex; gap: 4px; }
.fresh-track i {
  width: 15px; height: 5px; border-radius: 3px; display: block;
  background: var(--hair); position: relative;
}
.fresh-track i.has { background: var(--ink-3); }
.fresh-track i.shown { background: var(--brand); height: 7px; margin-top: -1px; }
.fresh-label { font-size: 11.5px; color: var(--ink-3); }

/* ── controls ─────────────────────────────────────── */
.strip {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px;
  margin: 18px 0 14px; padding: 14px 16px;
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.strip-right { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-bottom: 1px; }
.tabs {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--card-sunk); border-radius: 11px; box-shadow: inset 0 0 0 1px var(--hair-soft);
}
.tabs a {
  display: inline-flex; align-items: center; text-decoration: none; cursor: pointer;
  font-family: var(--f-ui); font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); padding: 6px 14px; border-radius: 8px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-card); }
.spacer { margin-left: auto; }
.mini-label { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-right: 8px; }

/* ── block card ─────────────────────────────────────────── */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.card + .card { margin-top: 12px; }
.card-head { display: flex; align-items: center; gap: 11px; padding: 14px 18px 12px; }
.tile-icon {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.tile-icon.dep { background: var(--up-wash); color: var(--up-ink); }
.tile-icon.wd  { background: var(--down-wash); color: var(--down-ink); }
.card-title { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.card-sub { font-size: 12px; color: var(--ink-3); }
.card-count { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }

/* ── A · Ledger ───────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
table.ledger th, table.ledger td { padding: 11px 16px; text-align: right; white-space: nowrap; }
table.ledger thead .grp {
  text-align: center; font-size: 10.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2);
  padding-bottom: 4px;
}
/* The Ledger head wears the same green band as the Swing head — the prototype
   only ever showed one of the two, and a grey head next to a green one reads
   as an oversight rather than a distinction. */
table.ledger thead .col {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-head); background: var(--brand-wash);
  border-bottom: 1px solid var(--brand-line); padding-top: 9px; padding-bottom: 9px;
}
table.ledger .rowhead { text-align: left; font-weight: 600; font-size: 13px; }
table.ledger .rowhead small { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
table.ledger tbody td { font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
table.ledger tbody tr + tr td, table.ledger tbody tr + tr th { border-top: 1px solid var(--hair-soft); }
table.ledger .split { box-shadow: inset 1px 0 0 var(--hair); }
tr.delta td, tr.delta th { background: var(--card-sunk); font-weight: 700; }
tr.delta th { color: var(--ink-2); }
tr.delta td:first-of-type { }

/* ── B · Swing ──────────────────────────────────────────────── */
/* Колонка «Метрика» забирає весь надлишок, чотири колонки даних однакові —
   тоді праві краї чисел стоять з рівним кроком, а не «як вийшло». */
table.swing { table-layout: fixed; }
table.swing th, table.swing td { padding: 10px 14px; white-space: nowrap; text-align: right; }
/* Надлишок ширини ділиться між УСІМА колонками. Віддати його одній —
   чи то «Metric», чи то розпірці в кінці — і таблиця з'їжджає на один бік. */
table.swing th:first-child, table.swing td:first-child { text-align: left; width: 24%; }
table.swing th:not(:first-child), table.swing td:not(:first-child) { width: 19%; }
table.swing thead th {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-head); background: var(--brand-wash);
  border-bottom: 1px solid var(--brand-line);
  padding-top: 9px; padding-bottom: 9px;
}
table.swing thead th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
table.swing thead th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
table.swing td:first-child { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
table.swing tbody tr + tr td { border-top: 1px solid var(--hair-soft); }
table.swing tbody tr:hover td { background: var(--card-sunk); }
/* Напрям уже сказала колонка Change — тут лише величина, тому заповнення
   йде зліва направо, однаково для deposit і withdrawal. */
.pct {
  display: inline-flex; align-items: center; justify-content: flex-end;
  position: relative; overflow: hidden; isolation: isolate;
  width: 92px; padding: 4px 10px; border-radius: 8px;
  background: var(--card-sunk); box-shadow: inset 0 0 0 1px var(--hair-soft);
  font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pct::before {
  content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0;
  width: var(--fill, 0%); background: var(--pct-fill, transparent);
}
.pct.up   { color: var(--up-ink);   --pct-fill: var(--up-wash); }
.pct.down { color: var(--down-ink); --pct-fill: var(--down-wash); }
.pct.flat { color: var(--flat-ink); }

/* Усі чотири числові колонки — один кегль і одна насиченість.
   Різниця тільки в кольорі: T-2 приглушений, T-1 чорний, зміна кольорова. */
.prev, .curr, .chg {
  font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.prev { color: var(--ink-3); }
.curr { color: var(--ink); }


/* ── C · Tiles ───────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 4px 14px 16px; }
.metric {
  background: var(--card-sunk); border-radius: 11px; padding: 13px 14px 12px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: inset 0 0 0 1px var(--hair-soft);
}
.metric-name { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.metric-delta {
  font-size: 25px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2;
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 5px;
}
.metric-delta .arrow { font-size: 15px; }
.metric-track { height: 4px; border-radius: 2px; background: var(--hair); margin: 8px 0 6px; overflow: hidden; }
.metric-track i { display: block; height: 100%; border-radius: 2px; background: var(--hair); }
.metric-track i.fill-up { background: var(--up-bar); }
.metric-track i.fill-down { background: var(--down-bar); }
.metric-vals { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.metric-vals b { color: var(--ink); font-weight: 700; }
.metric-vals .to { color: var(--ink-3); margin: 0 5px; }
.metric.blank { background: transparent; box-shadow: none; }

/* ── states ────────────────────────────────────────────────── */
.up { color: var(--up-ink); } .down { color: var(--down-ink); } .flat { color: var(--flat-ink); }
.blank-state { padding: 54px 26px; text-align: center; }
.blank-state .mono {
  font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.blank-state h3 { font-family: var(--f-serif); font-weight: 400; font-size: 20px; margin: 0 0 7px; }
.blank-state p { margin: 0 auto; max-width: 44ch; font-size: 13px; color: var(--ink-2); }
.blank-icon {
  width: 40px; height: 40px; border-radius: 11px; margin: 0 auto 14px;
  background: var(--card-sunk); box-shadow: inset 0 0 0 1px var(--hair-soft);
  display: grid; place-items: center; color: var(--ink-3); font-size: 16px;
}

/* ── right rail ──────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 5px; }

.field label { font-size: 11px; font-weight: 600; color: var(--ink-2); }
select {
  appearance: none; width: 196px; cursor: pointer;
  font-family: var(--f-ui); font-size: 13px; font-weight: 500; color: var(--ink);
  background: var(--card-sunk); border: 0; box-shadow: inset 0 0 0 1px var(--hair);
  border-radius: var(--r-ctl); padding: 8px 30px 8px 11px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 11px) 52%;
  background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
}
select:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
/* З'являється лише коли якийсь фільтр обрано — інакше це кнопка без роботи. */
.clearbtn {
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 1px; padding: 7px 12px 7px 10px; border: 0; border-radius: var(--r-ctl);
  background: var(--brand-wash); color: var(--brand);
  font-family: var(--f-ui); font-size: 12.5px; font-weight: 600;
}
.clearbtn:hover { background: var(--brand-wash-2); color: var(--brand-deep); }
.clearbtn[hidden] { display: none; }

.key { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; margin: 12px 2px 0; font-size: 11.5px; color: var(--ink-3); }
.key-item { display: inline-flex; align-items: center; gap: 6px; }
.key-sw { width: 20px; height: 6px; border-radius: 3px; }

.banner {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px;
  padding: 11px 14px; border-radius: var(--r-card);
  background: var(--note-wash); border: 1px solid var(--note-line);
  font-size: 12.5px; line-height: 1.5; color: var(--ink);
}
.banner .bglyph { color: var(--note); font-weight: 700; flex: none; }
.banner code { font-family: inherit; font-weight: 700; }

/* Стан джерела даних. Спокійніший за .banner навмисно: це не проблема,
   яку треба лагодити, а те, ЩО саме людина зараз читає. */
.notice {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px;
  padding: 10px 14px; border-radius: var(--r-card);
  background: var(--brand-wash); border: 1px solid var(--brand-dim);
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
}
.notice strong { color: var(--brand-head); font-weight: 600; }
.notice .nglyph { color: var(--brand-head); flex: none; font-weight: 700; }


/* Плавність лише тим, хто її не вимкнув. Блок був зламаний від самого
   порту: селектор закінчувався комою й не мав жодної декларації, тож
   браузер відкидав правило цілком. */
@media (prefers-reduced-motion: no-preference) {
  .tabs a,
  select,
  .iconbtn,
  .userpill {
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  }
  .pct::before { transition: width .35s cubic-bezier(.4, 0, .2, 1); }
}

@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .metric.blank { display: none; }
  }

/* ── phone ────────────────────────────────────────────────────────────
   The Swing table stops being a table below 760px. Five columns cannot
   share 390px without shrinking the figures past reading size, and a
   sideways scroll defeats the one thing this screen is for — a glance.
   Each metric becomes its own block: identity and both days on the left,
   the change and its pill on the right.
   ─────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .top { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .brandname i { display: none; }
  .top-right { gap: 7px; }
    .top-right { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
  .brandline { min-width: 0; }

  .frame { padding: 0 10px 20px; }
  .tray { padding: 14px; border-radius: 16px; }
  .hero { font-size: 27px; }
  .hero em { padding: 0 2px; }
  .fresh { flex-direction: column; align-items: flex-start; gap: 7px; }
  .fresh-label { line-height: 1.4; }

  .strip { padding: 12px; gap: 10px; }
  /* Finger-sized controls: every tap target clears 44px on a phone. */
  select { padding: 12px 32px 12px 12px; font-size: 14px; min-height: 44px; }
  .tabs a { min-height: 44px; }
  .clearbtn { min-height: 44px; padding: 0 14px 0 12px; }
  .iconbtn { width: 44px; height: 44px; }
    .strip .field { flex: 1 1 100%; }
  select { width: 100%; }
  .clearbtn { margin-bottom: 0; }
  .strip-right { margin-left: 0; flex: 1 1 100%; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding-bottom: 0; }
  .mini-label { display: none; }
  .tabs a { padding: 6px 12px; font-size: 12px; }

  .card-head { padding: 12px 14px 10px; }
  .card-count { font-size: 11.5px; white-space: nowrap; }
  .card-title { font-size: 13.5px; }
  .card-sub { display: none; }

  /* display:block on the table itself, or it keeps sizing to its widest
     row and drags the whole document past the viewport. */
  table.swing { display: block; width: 100%; table-layout: auto; }
  table.swing thead { display: none; }
  table.swing tbody, table.swing tr, table.swing td { display: block; width: auto !important; }
  table.swing tbody { width: 100%; }
  table.swing tr {
    display: grid; align-items: center; gap: 3px 10px; padding: 11px 14px;
    grid-template-columns: auto auto 1fr;
    grid-template-areas: "name name chg" "prev curr pct";
  }
  table.swing tbody tr + tr { border-top: 1px solid var(--hair-soft); }
  table.swing tbody tr + tr td { border-top: 0; }
  table.swing td { padding: 0 !important; text-align: left; }
  table.swing td:nth-child(1) { grid-area: name; font-size: 12.5px; color: var(--ink-2); }
  table.swing td:nth-child(2) { grid-area: prev; }
  table.swing td:nth-child(3) { grid-area: curr; }
  table.swing td:nth-child(3)::before {
    content: "\2192"; color: var(--ink-3); font-weight: 400; margin: 0 7px 0 3px;
  }
  table.swing td:nth-child(4) { grid-area: chg; text-align: right; }
  table.swing td:nth-child(5) { grid-area: pct; text-align: right; }
  .pct { width: 82px; padding: 3px 8px; }

  .tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 2px 12px 14px; }
  .metric-delta { font-size: 21px; }
  .key { gap: 10px; font-size: 11px; }

  .banner { font-size: 12px; padding: 10px 12px; }
  .blank-state { padding: 38px 18px; }
}

@media (max-width: 400px) {
  .hero { font-size: 23px; }
  .tabs a { padding: 6px 10px; font-size: 11.5px; }
  .tiles { grid-template-columns: 1fr; }
}

/* ── sign-in, and the one real button in the product ──────────────────── */
.applybtn {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--f-ui); font-size: 13.5px; font-weight: 600;
  color: var(--on-brand); background: var(--brand);
  padding: 11px 18px; border-radius: var(--r-ctl); min-height: 42px;
}
.applybtn:hover { background: var(--brand-deep); }

input[type="text"], input[type="password"] {
  font-family: var(--f-ui); font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--card-sunk); border: 0; box-shadow: inset 0 0 0 1px var(--hair);
  border-radius: var(--r-ctl); padding: 11px 12px; width: 100%; min-height: 44px;
}
input:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }

body.centered { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card {
  width: 336px; max-width: 100%; padding: 26px;
  background: var(--card); border-radius: var(--r-tray); box-shadow: var(--shadow-rail);
  display: flex; flex-direction: column; gap: 13px;
}
.login-card .field { gap: 6px; }
.glyph-lg {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand-deep); box-shadow: none; margin-bottom: 2px;
}
.glyph-lg span { width: 14px; height: 14px; background: linear-gradient(135deg, #fff 0 50%, rgba(255,255,255,.42) 50% 100%); }
.login-brand { font-family: var(--f-serif); font-weight: 400; font-size: 26px; letter-spacing: -.015em; }
.login-sub { margin: -9px 0 3px; font-size: 12.5px; color: var(--ink-2); }
.banner-error { background: var(--down-wash); border-color: var(--down-ink); }
.banner-error .bglyph { color: var(--down-ink); }
