:root {
  --navy: #0c1e33;
  --navy-2: #16304c;
  --ink: #142033;
  --muted: #5c6d80;
  --line: #e5edf5;
  --bg: #f3f6fb;
  --card: #ffffff;
  --green: #128a45;
  --green-2: #0f7a3c;
  --green-soft: #e7f7ee;
  --green-ink: #0d6b34;
  --red: #c42336;
  --red-soft: #fdecee;
  --amber: #9a6700;
  --amber-soft: #fff6e4;
  --pink: #fde8ec;
  --shadow: 0 10px 28px rgba(16, 36, 64, .06);
  --radius: 18px;
  --sidebar: 248px;
  --font: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); min-width: 360px; }
a { color: var(--green-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #1f8a4c; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.shell { display: flex; min-height: 100vh; }
.maincol { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.sidebar { width: var(--sidebar); background: var(--navy); color: #d5e0ea; display: flex; flex-direction: column; padding: 18px 12px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; font-weight: 800; padding: 6px 10px 18px; letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; }
.nav-link { display: flex; align-items: center; gap: 10px; color: #c5d2de; text-decoration: none; padding: 10px 12px; border-radius: 12px; margin: 2px 0; font-weight: 650; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link.active, .nav-link:hover { background: var(--green); color: #fff; }
.userbox { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-weight: 800; }
.workspace { flex: 1; min-width: 0; padding: 22px 22px 108px; }
.page-kicker { display: none; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.lede { color: var(--muted); margin: 4px 0 0; }
.card { background: #fff; border: 1.5px solid #c8efd6; border-radius: 18px; box-shadow: none; padding: 16px; }
.card h2 { margin: 0 0 12px; font-size: 18px; }
a.card { color: inherit; text-decoration: none; }
.grid-stats:has(> :only-child) { grid-template-columns: 1fr; }
.grid-stats .card span { display: block; color: var(--muted); font-size: 12px; }
.grid-stats .card b { display: block; margin-top: 6px; font-size: 20px; letter-spacing: -.02em; }
form.card > .btn:not(.ghost):not(.danger),
.card > form > .btn:not(.ghost):not(.danger) { width: 100%; }
.grid-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; gap: 12px; align-items: center; }
.stat b { display: block; font-size: 26px; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13px; }
.bubble { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); }
.bubble.red { background: var(--red-soft); color: var(--red); }
.bubble.amber { background: var(--amber-soft); color: var(--amber); }
.btn { border: 0; background: var(--green); color: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; }
.btn:hover { background: var(--green-2); }
.btn.soft { background: var(--green-soft); color: var(--green-ink); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--red); }
.btn.full { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span, .field label { font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #d7e1ec; background: #fff; border-radius: 12px; padding: 11px 12px; min-height: 44px; }
textarea { min-height: 90px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px; }
td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 750; background: #eef3f8; }
.badge.paid, .badge.scheduled { background: var(--green-soft); color: var(--green-ink); }
.badge.unpaid, .badge.overdue { background: var(--red-soft); color: var(--red); }
.badge.partial, .badge.awaiting_amount, .badge.needs_review { background: var(--amber-soft); color: var(--amber); }
.money-pos { color: var(--green-ink); font-weight: 800; }
.money-neg { color: var(--red); font-weight: 800; }
.alert { border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.alert.success { background: var(--green-soft); color: var(--green-ink); }
.alert.error { background: var(--red-soft); color: var(--red); }
.alert.warning, .alert.info { background: var(--amber-soft); color: #6d4a00; }
.empty { text-align: center; padding: 28px 10px; color: var(--muted); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a, .tabs button { border-radius: 999px; padding: 8px 12px; text-decoration: none; color: var(--muted); background: #fff; border: 1px solid #d7f3e2; font-weight: 750; }
.tabs .active { background: #dcfce7; color: #15803d; border-color: #86efac; box-shadow: none; }
.progress { height: 8px; background: #e7eef6; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); }
.progress.over span { background: var(--red); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; background: #fff; border: 1px solid #d7f3e2; border-radius: 16px; padding: 12px; }
.more-list { display: flex; flex-direction: column; gap: 10px; }
.more-link { display: flex; align-items: center; gap: 10px; min-height: 56px; font-weight: 750; }
.more-link .icon { width: 20px; height: 20px; color: #16a34a; }
.filters input, .filters select { width: auto; min-width: 140px; }
.tabbar { display: none; }
.sheet { display: none; position: fixed; inset: 0; background: rgba(8, 18, 32, .45); z-index: 30; }
.sheet.open { display: grid; align-items: end; }
.sheet .panel { background: #fff; border-radius: 20px 20px 0 0; padding: 16px; display: grid; gap: 8px; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: #f7fbf8; }
.hero { background: #fff; color: var(--ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; border-right: 1px solid #c8efd6; }
.hero .brand { color: var(--ink); }
.hero h1 { font-size: 56px; line-height: 1.05; letter-spacing: -.04em; max-width: 520px; }
.hero h1 em { color: #15803d; font-style: normal; }
.chart-line { height: 180px; }
.auth-panel { display: grid; place-items: center; padding: 28px 18px 40px; }
.auth-card { width: min(440px, 100%); background: #fff; border: 1.5px solid #c8efd6; border-radius: 28px; box-shadow: none; padding: 28px 24px; }
.auth-card h2 { margin: 8px 0 16px; text-align: center; }
.checkline { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.locale { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 8px; }
.locale button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.locale button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--p) * 1%), #e7eef6 0); }
.ring span { width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.bars i { display: block; width: 18px; border-radius: 6px 6px 2px 2px; background: var(--green); }
.bars i.alt { background: #b7ebc9; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar .day, .calendar .dow { min-height: 78px; background: #fff; border: 1px solid #d7f3e2; border-radius: 12px; padding: 6px; font-size: 13px; }
.calendar .dow { min-height: 0; color: var(--muted); font-weight: 800; background: transparent; border: 0; }
.calendar .day strong { display: block; }
.calendar .day em { font-style: normal; color: var(--green-ink); font-size: 11px; }
.steps { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 12px; flex-wrap: wrap; }
.steps .on { color: var(--ink); font-weight: 800; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.pager a, .pager span { text-decoration: none; padding: 6px 10px; border-radius: 8px; background: #fff; }
.dash-hello { margin: 2px 0 14px; font-size: 34px; letter-spacing: -.04em; line-height: 1.1; }
.month-switch { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; background: #fff; border: 1.5px solid #c8efd6; border-radius: 16px; min-height: 52px; box-shadow: none; margin-bottom: 12px; }
.month-switch a { display: grid; place-items: center; height: 100%; text-decoration: none; color: var(--ink); font-size: 28px; line-height: 1; }
.month-switch a:first-child { border-right: 1px solid var(--line); }
.month-switch a:last-child { border-left: 1px solid var(--line); }
.month-switch span { text-align: center; font-weight: 750; }
.dash-hero, .dash-card, .dash-stat, .dash-wide { background: #fff; border: 1.5px solid #c8efd6; border-radius: 18px; box-shadow: none; }
.dash-hero { padding: 18px 18px 16px; }
.dash-hero span, .dash-stat span, .dash-wide span { color: var(--muted); font-size: 14px; }
.dash-hero b { display: block; margin: 8px 0 6px; font-size: 40px; letter-spacing: -.045em; line-height: 1; }
.dash-hero small { color: var(--muted); }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.dash-stat, .dash-wide { display: block; padding: 16px; text-decoration: none; color: inherit; min-height: 96px; }
.dash-stat b, .dash-wide b { display: block; margin-top: 10px; font-size: 22px; letter-spacing: -.03em; }
.dash-wide { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 0; margin-top: 12px; padding: 16px 18px; }
.dash-wide b { margin-top: 0; }
.dash-card { margin-top: 12px; padding: 16px 18px 8px; }
.dash-card h2 { margin: 0; font-size: 18px; }
.dash-line, .tx-row, .pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.dash-card h2 + .dash-line, .dash-card h2 + .pay-row, .dash-card h2 + .tx-row { border-top: 0; }
.pay-row { display: grid; grid-template-columns: auto 1fr auto auto; }
.pay-date { width: 46px; height: 46px; border-radius: 12px; background: #f3f5f8; display: grid; place-items: center; align-content: center; text-align: center; line-height: 1.05; }
.pay-date b { font-size: 15px; }
.pay-date small { color: var(--muted); font-size: 11px; }
.dash-lower { margin-top: 0; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 132px; margin-top: 14px; }
.dash-bars .col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.dash-bars .pair { display: flex; align-items: flex-end; gap: 3px; height: 96px; }
.dash-bars i { display: block; width: 8px; border-radius: 5px 5px 2px 2px; background: var(--green); }
.dash-bars i.spend { background: #d97706; }
.dash-bars small { color: var(--muted); font-size: 11px; }
.loan-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin: 0 0 12px; overflow: hidden; }
.loan-tabs a { text-align: center; text-decoration: none; color: var(--muted); font-weight: 750; font-size: 14px; padding: 14px 6px; border-left: 1px solid var(--line); }
.loan-tabs a:first-child { border-left: 0; }
.loan-tabs a.active { color: var(--ink); background: #f4f6f8; }
.loan-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; padding: 12px 8px; background: #f4f6f8; border-radius: 14px; text-align: center; }
.loan-split span { display: block; color: var(--muted); font-size: 12px; line-height: 1.25; }
.loan-split b { display: block; margin-top: 6px; font-size: 16px; letter-spacing: -.03em; }
.loan-next { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0 4px; margin-top: 8px; border-top: 1px solid var(--line); }
.loan-card h2 a { color: inherit; text-decoration: none; }
.loan-form { padding-bottom: 18px; }
.loan-fields { display: grid; gap: 0 12px; }
.loan-check { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 12px; }
.loan-check input { width: auto; min-height: 0; margin-top: 3px; }
.loan-doc { text-align: center; margin: 12px 0 0; }
.loan-doc a { color: var(--green-ink); font-weight: 750; text-decoration: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.owe-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 16px 18px; }
.owe-strip span { color: var(--muted); font-size: 15px; }
.owe-strip b { font-size: 22px; letter-spacing: -.03em; }
.owe-card { padding-bottom: 14px; }
.owe-card h2 a { color: inherit; text-decoration: none; }
.owe-bank { margin: 2px 0 8px; color: var(--muted); font-size: 14px; }
.owe-sum { display: block; margin: 0 0 14px; font-size: 32px; letter-spacing: -.04em; line-height: 1; }
.owe-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.owe-facts span { display: block; color: var(--muted); font-size: 12px; }
.owe-facts b { display: block; margin-top: 4px; font-size: 15px; letter-spacing: -.02em; }
.owe-track { height: 3px; margin: 12px 0 10px; background: #e6eaef; border-radius: 99px; overflow: hidden; }
.owe-track i { display: block; height: 100%; background: #16304c; border-radius: 99px; }
.owe-track.pos i { background: var(--green); }
.owe-next { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.owe-empty { margin: 4px 0 8px; color: var(--muted); }
.lent-page { display: flex; flex-direction: column; gap: 12px; }
.lent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lent-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 22px; letter-spacing: -.02em; }
.lent-head h2 .icon { width: 26px; height: 26px; color: #16a34a; }
.lent-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.lent-pill { background: #dcfce7; color: #15803d; border-radius: 999px; padding: 10px 14px; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.lent-pill.owe { background: #fff; color: var(--ink); border: 1.5px solid #86efac; }
.lent-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid #c8efd6; border-radius: 16px; overflow: hidden; }
.lent-stat { padding: 12px 10px; border-left: 1px solid #e7f6ee; }
.lent-stat:first-child { border-left: 0; }
.lent-stat span { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.lent-stat .icon { width: 14px; height: 14px; }
.lent-stat b { display: block; margin-top: 4px; font-size: 14px; letter-spacing: -.02em; }
.lent-stat.back .icon, .lent-stat.back b { color: #15803d; }
.lent-stat.left .icon, .lent-stat.left b { color: #d97706; }
.lent-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 0 12px; color: #6b7280; }
.lent-search .icon { width: 18px; height: 18px; flex: none; }
.lent-search input { border: 0; background: transparent; box-shadow: none; min-height: 44px; padding: 8px 0; }
.lent-search input:focus { outline: none; }
.lent-search:focus-within { outline: 3px solid #1f8a4c; outline-offset: 2px; }
.lent-list { display: flex; flex-direction: column; gap: 12px; }
.lent-card { background: #fff; border: 1.5px solid #86efac; border-radius: 18px; padding: 14px 14px 10px; }
.lent-card[hidden] { display: none; }
.lent-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.lent-person { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 750; }
.lent-avatar { width: 28px; height: 28px; border-radius: 50%; background: #f3f4f6; display: grid; place-items: center; color: #6b7280; }
.lent-avatar .icon { width: 16px; height: 16px; }
.lent-badge { background: #dcfce7; color: #15803d; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 750; }
.lent-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
.lent-amount { grid-column: 1; font-size: 32px; line-height: 1; letter-spacing: -.04em; color: #15803d; }
.lent-amount.owe { color: var(--ink); }
.lent-badge.off { background: #f3f4f6; color: #374151; }
.lent-mini { grid-column: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.lent-mini span { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; }
.lent-mini .icon { width: 13px; height: 13px; }
.lent-mini b { display: block; margin-top: 2px; font-size: 13px; letter-spacing: -.02em; }
.lent-ring { grid-column: 2; grid-row: 1 / span 2; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#16a34a calc(var(--p) * 1%), #e7f6ec 0); }
.lent-ring span { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; text-align: center; }
.lent-ring b { font-size: 16px; color: #14532d; }
.lent-ring small { font-size: 10px; color: #166534; font-weight: 650; }
.lent-bar { height: 6px; margin: 12px 0 8px; background: #e8eef2; border-radius: 99px; overflow: hidden; }
.lent-bar i { display: block; height: 100%; background: #22c55e; border-radius: 99px; }
.lent-next { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding-top: 8px; border-top: 1px solid #eef6f1; font-size: 13px; }
.lent-next span { display: flex; align-items: center; gap: 6px; color: #374151; }
.lent-next .icon { width: 14px; height: 14px; }
.lent-next b { color: #15803d; }
.loan-tabs:has(+ .lent-page) { background: transparent; box-shadow: none; gap: 8px; }
.loan-tabs:has(+ .lent-page) a { border: 1px solid #d7f3e2; border-radius: 999px; background: #fff; padding: 8px 6px; }
.loan-tabs:has(+ .lent-page) a.active { background: #dcfce7; color: #15803d; }
.lent-page ~ .loan-form { border: 1px solid #c8efd6; }
.lent-detail .lent-stats { margin-bottom: 12px; }
.lent-detail .grid-2 { grid-template-columns: 1fr; }
.lent-detail .dash-card { border: 1.5px solid #c8efd6; box-shadow: none; }
.lent-detail .btn.soft { background: var(--green); color: #fff; }
.lent-detail form .btn:not(.ghost) { width: 100%; }
.lent-one { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lent-one .lent-ring { grid-column: auto; grid-row: auto; }
.lent-who { color: var(--muted); font-weight: 650; font-size: 13px; }
.loan-hero { background: #0c1e33; color: #fff; text-align: center; border-radius: 20px; padding: 26px 18px 22px; }
.loan-hero p { margin: 0; }
.loan-kicker { font-size: 14px; opacity: .78; }
.loan-sum { margin: 8px 0 6px; font-size: 40px; line-height: 1; letter-spacing: -.045em; font-weight: 750; }
.loan-who { font-size: 15px; }
.loan-bar { height: 6px; margin: 18px 8px 8px; background: rgba(255,255,255,.28); border-radius: 99px; overflow: hidden; }
.loan-bar i { display: block; height: 100%; width: 0; background: #3ddc84; border-radius: 99px; }
.loan-caption { font-size: 13px; opacity: .8; }
.loan-hero + .dash-card { margin-top: -8px; }
.loan-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; }
.loan-facts span { display: block; color: var(--muted); font-size: 13px; }
.loan-facts b { display: block; margin-top: 6px; font-size: 22px; letter-spacing: -.03em; }
.loan-when { text-align: center; margin: 14px 0 2px; }
.loan-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.dash-card h2 + .loan-row { border-top: 0; }
@media (min-width: 901px) { .loan-fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) {
  .grid-stats, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2, .auth { grid-template-columns: 1fr; }
  .hero { min-height: 220px; padding: 28px 20px; border-right: 0; border-bottom: 1px solid #c8efd6; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .shell { height: 100dvh; min-height: 100dvh; overflow: hidden; }
  .maincol { height: calc(100dvh - 96px - env(safe-area-inset-bottom)); overflow: auto; }
  .workspace { padding: 16px 14px 28px; }
  .loan-hero { margin: 4px -14px 0; border-radius: 0; padding-bottom: 28px; }
  .loan-hero + .dash-card { margin-top: -16px; position: relative; }
  .page-head h1 { font-size: 26px; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 0; }
  .topbar .brand { color: var(--ink); padding: 0; }
  .topbar .brand svg rect { fill: #142033; }
  .topbar .locale { margin: 0; }
  .locale-desktop { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 12px; right: 12px; bottom: 12px; background: #fff; border-radius: 22px; box-shadow: 0 10px 28px rgba(16, 36, 64, .12); z-index: 25; padding: 10px 6px calc(10px + env(safe-area-inset-bottom)); }
  .tabbar a { color: #142033; background: transparent; border: 0; text-decoration: none; display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 700; }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar .active { color: var(--green); }
  table.responsive thead { display: none; }
  table.responsive tr { display: block; background: #fff; border-radius: 16px; margin-bottom: 10px; padding: 8px; box-shadow: var(--shadow); }
  table.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; }
  table.responsive td::before { content: attr(data-label); color: var(--muted); font-weight: 700; }
  .grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .row-2 { grid-template-columns: 1fr; }
  .filters input, .filters select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
