/* ==========================================================================
   Money Tracker - glass UI
   ========================================================================== */
/* Plus Jakarta Sans (variable, self-hosted for offline use) - SIL OFL 1.1, see /fonts/OFL.txt */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans-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: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans-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;
}

:root {
  color-scheme: light;
  --bg: #eef0f8;
  --blob-1: #a8c5ff;
  --blob-2: #ffc2dc;
  --blob-3: #b9f0dc;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.75);
  --hairline: rgba(20, 22, 40, 0.08);
  --text: #11131c;
  --text-2: #4d5163;
  --text-3: #8a8ea0;
  --accent: #2a63e8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(42, 99, 232, 0.12);
  --income: #128a5b;
  --expense: #d23f3f;
  --warn: #b97800;
  --good: #128a5b;
  --danger: #d23f3f;
  --track: rgba(20, 22, 40, 0.08);
  --series-income: #1baf7a;
  --series-expense: #eb6834;
  --shadow: 0 10px 30px rgba(30, 40, 90, 0.10), 0 1px 2px rgba(30, 40, 90, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0f1a;
    --blob-1: #2b3f9a;
    --blob-2: #7a2a5e;
    --blob-3: #155c4a;
    --glass: rgba(30, 33, 50, 0.55);
    --glass-strong: rgba(34, 37, 56, 0.86);
    --glass-border: rgba(255, 255, 255, 0.10);
    --hairline: rgba(255, 255, 255, 0.08);
    --text: #f2f3f8;
    --text-2: #b5b8c9;
    --text-3: #7d8196;
    --accent: #5b8cff;
    --accent-ink: #0b1020;
    --accent-soft: rgba(91, 140, 255, 0.16);
    --income: #3fcf95;
    --expense: #ff7a7a;
    --warn: #f0b440;
    --good: #3fcf95;
    --danger: #ff7a7a;
    --track: rgba(255, 255, 255, 0.10);
    --series-income: #199e70;
    --series-expense: #d95926;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0f1a;
  --blob-1: #2b3f9a;
  --blob-2: #7a2a5e;
  --blob-3: #155c4a;
  --glass: rgba(30, 33, 50, 0.55);
  --glass-strong: rgba(34, 37, 56, 0.86);
  --glass-border: rgba(255, 255, 255, 0.10);
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #f2f3f8;
  --text-2: #b5b8c9;
  --text-3: #7d8196;
  --accent: #5b8cff;
  --accent-ink: #0b1020;
  --accent-soft: rgba(91, 140, 255, 0.16);
  --income: #3fcf95;
  --expense: #ff7a7a;
  --warn: #f0b440;
  --good: #3fcf95;
  --danger: #ff7a7a;
  --track: rgba(255, 255, 255, 0.10);
  --series-income: #199e70;
  --series-expense: #d95926;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
[hidden] { display: none !important; }

/* Animated background blobs give the glass something to blur. */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; }
.bg i:nth-child(1) { width: 55vmax; height: 55vmax; background: var(--blob-1); top: -20vmax; left: -15vmax; }
.bg i:nth-child(2) { width: 45vmax; height: 45vmax; background: var(--blob-2); top: 30vh; right: -20vmax; }
.bg i:nth-child(3) { width: 40vmax; height: 40vmax; background: var(--blob-3); bottom: -18vmax; left: 10vw; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

/* ---------- Shell ---------- */
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border-bottom: 1px solid var(--hairline);
}
.topbar h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 52vw;
  padding: 6px 10px 6px 6px; border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass); cursor: pointer; font-size: 13px; font-weight: 600;
}
.ctx-chip span.name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #5b8cff, #b45cff); color: #fff; font-size: 12px; font-weight: 700;
}
.avatar.lg { width: 44px; height: 44px; font-size: 17px; }

main.content {
  max-width: 760px; margin: 0 auto;
  padding: 14px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px);
}
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 2px 12px; }
.page-head h2 { margin: 0; font-size: 17px; font-weight: 700; }

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 30;
  height: var(--tabbar-h); border-radius: 26px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 100%; border: 0; background: none; cursor: pointer; color: var(--text-3);
  font-size: 10.5px; font-weight: 600;
}
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--accent); }
.tab-add {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 18px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #4f7dff, #9a5cff); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(79, 125, 255, 0.45);
}
.tab-add svg { width: 26px; height: 26px; }
.tab-add:disabled { opacity: 0.35; box-shadow: none; cursor: not-allowed; }

/* ---------- Desktop sidebar ---------- */
.sidebar { display: none; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 250px 1fr; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh;
    padding: 22px 14px; border-right: 1px solid var(--hairline);
    background: var(--glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; padding: 4px 10px 18px; }
  .sidebar .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .side-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    color: var(--text-2); font-weight: 600; border: 0; background: none; cursor: pointer; text-align: left; width: 100%;
  }
  .side-link svg { width: 20px; height: 20px; }
  .side-link:hover { background: var(--accent-soft); }
  .side-link.active { background: var(--accent-soft); color: var(--accent); }
  .side-add { margin: 8px 0 14px; }
  .tabbar { display: none; }
  main.content { padding-bottom: 40px; }
  .main-col { min-width: 0; }
}

/* ---------- Cards & lists ---------- */
.card { border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; display: flex; justify-content: space-between; align-items: center; }
.card h3 a, .card h3 button { text-transform: none; letter-spacing: 0; font-size: 13px; }
.hero { padding: 20px; }
.hero .label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.hero .big { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0 14px; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { border-radius: var(--radius-sm); padding: 10px 12px; background: var(--glass-strong); border: 1px solid var(--hairline); min-width: 0; }
.stat .k { font-size: 12px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats.three .stat { padding: 9px 10px; }
.stats.three .v { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 > .card { margin-bottom: 0; } .grid-2 { margin-bottom: 14px; } }

.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--hairline);
  background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; cursor: default;
}
.row:last-child { border-bottom: 0; }
button.row, .row.tap { cursor: pointer; }
.row .ico {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; flex: none;
  background: var(--glass-strong); border: 1px solid var(--hairline);
}
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.row .amt small { display: block; font-weight: 500; font-size: 11.5px; color: var(--text-3); }
.inc { color: var(--income); }
.exp { color: var(--expense); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.day-head { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 4px 4px; display: flex; justify-content: space-between; }
.day-head:first-child { margin-top: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; white-space: nowrap;
}
.badge.good { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.badge.gray { background: var(--track); color: var(--text-2); }

.empty { text-align: center; padding: 26px 10px; color: var(--text-2); }
.empty .e-ico { font-size: 34px; margin-bottom: 6px; }

/* ---------- Progress ---------- */
.progress { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.4s ease; }
.progress.good > i { background: var(--good); }
.progress.warn > i { background: var(--warn); }
.progress.bad > i { background: var(--danger); }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 14px; border: 1px solid var(--glass-border);
  background: var(--glass-strong); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--glass-border); background: var(--glass); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 0 0 5px 4px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hairline);
  background: var(--glass-strong); outline: none; font-size: 16px; appearance: none; -webkit-appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.amount { font-size: 28px; font-weight: 700; text-align: center; padding: 14px; font-variant-numeric: tabular-nums; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 12px; color: var(--text-3); margin: -6px 4px 12px; }

.seg { display: flex; padding: 3px; border-radius: 13px; background: var(--track); margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.seg button.on { background: var(--glass-strong); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.seg.inc-exp button.on[data-v="income"] { color: var(--income); }
.seg.inc-exp button.on[data-v="expense"] { color: var(--expense); }

.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.month-nav .m { font-weight: 700; font-size: 16px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
a.row { color: inherit; }

.searchbar { display: flex; gap: 8px; margin-bottom: 12px; }
.searchbar .input { padding: 10px 14px; font-size: 15px; }

.cat-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.cat-picker button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px;
  border: 1px solid var(--hairline); background: var(--glass-strong); cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--text-2);
  min-width: 0;
}
.cat-picker button span:last-child { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.cat-picker button .ci { font-size: 22px; }
.cat-picker button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.icon-picker {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px;
  max-height: 152px; overflow-y: auto; padding: 2px; margin-bottom: 10px; overscroll-behavior: contain;
}
.icon-picker button {
  height: 42px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--glass-strong);
  font-size: 21px; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.icon-picker button:hover { border-color: var(--accent); }
.icon-picker button.on { border: 2px solid var(--accent); background: var(--accent-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatches button.on { border-color: var(--text); }

/* ---------- Chart: category bars & trend ---------- */
.cbars { display: flex; flex-direction: column; gap: 10px; }
.cbar .top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; margin-bottom: 4px; }
.cbar .top .n { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbar .top .v { font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.cbar .track { height: 10px; border-radius: 4px; background: var(--track); }
.cbar .track i { display: block; height: 100%; border-radius: 4px; min-width: 4px; }

.trend { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-items: end; height: 150px; padding-top: 8px; border-bottom: 1px solid var(--hairline); }
.trend .col { display: flex; gap: 2px; align-items: flex-end; justify-content: center; height: 100%; cursor: pointer; position: relative; }
.trend .col i { width: min(14px, 40%); border-radius: 4px 4px 0 0; min-height: 2px; }
.trend .col:hover i, .trend .col.on i { filter: brightness(1.1); }
.trend-x { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; font-size: 11.5px; color: var(--text-3); text-align: center; margin-top: 5px; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.trend-tip { font-size: 13px; color: var(--text-2); min-height: 20px; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ---------- Debt cards ---------- */
.debt { padding: 14px 2px; border-bottom: 1px solid var(--hairline); cursor: pointer; }
.debt:last-child { border-bottom: 0; }
.debt .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.debt .head .t { font-weight: 700; font-size: 15.5px; }
.debt .meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-top: 6px; gap: 8px; flex-wrap: wrap; }

.pay-toggle {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--text-3); background: none; flex: none;
  display: grid; place-items: center; cursor: pointer; color: transparent;
}
.pay-toggle svg { width: 16px; height: 16px; }
.pay-toggle.on { background: var(--good); border-color: var(--good); color: #fff; }
.pay-toggle:disabled { cursor: default; opacity: 0.6; }

/* ---------- Sheet (bottom modal) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(8, 10, 20, 0.35);
  display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s ease;
}
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 26px 26px 0 0; padding: 8px 18px calc(20px + var(--safe-b));
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border); border-bottom: 0;
  animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--text-3); opacity: 0.5; margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 8px; }
.sheet-head h2 { margin: 0; font-size: 18px; }
@media (min-width: 640px) {
  .overlay { align-items: center; }
  .sheet { border-radius: 26px; border-bottom: 1px solid var(--glass-border); padding-bottom: 20px; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Toasts / banners ---------- */
#toasts { position: fixed; left: 0; right: 0; top: calc(12px + var(--safe-t)); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  padding: 11px 16px; border-radius: 16px; font-weight: 600; font-size: 14px; max-width: 420px;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow); animation: up 0.25s ease;
}
.toast.err { color: var(--danger); }
.net-banner {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-b) + 20px); z-index: 40;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: #2a2c38; color: #fff; box-shadow: var(--shadow);
}
@media (min-width: 900px) { .net-banner { bottom: 20px; } }
.readonly-bar { font-size: 13px; padding: 9px 12px; border-radius: 14px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: 100%; max-width: 380px; padding: 26px 22px; }
.auth .logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 12px; display: block; box-shadow: var(--shadow); }
.auth h1 { text-align: center; font-size: 24px; margin: 0 0 4px; letter-spacing: -0.02em; }
.auth p.sub { text-align: center; color: var(--text-2); margin: 0 0 20px; }

.splash { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--track); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.menu-list .row .ico { font-size: 18px; }
.chev { color: var(--text-3); flex: none; }
.chev svg { width: 18px; height: 18px; display: block; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--hairline); gap: 10px; }
.kv:last-child { border-bottom: 0; }
.kv b { font-variant-numeric: tabular-nums; text-align: right; }
.section-label { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; margin: 18px 6px 8px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
