:root {
  color-scheme: light;
  --navy-950: #09131f;
  --navy-900: #0f1b2a;
  --navy-800: #16283b;
  --navy-700: #243c53;
  --red-600: #b91f2a;
  --red-500: #cf2632;
  --red-100: #feecee;
  --blue-100: #eaf3ff;
  --blue-700: #2763a5;
  --green-100: #e7f7ee;
  --green-700: #197447;
  --amber-100: #fff4da;
  --amber-700: #996100;
  --ink: #172131;
  --muted: #6f7885;
  --line: #e4e7eb;
  --surface: #ffffff;
  --canvas: #f5f6f8;
  --shadow: 0 8px 30px rgba(15, 27, 42, 0.08);
  --shadow-lg: 0 22px 60px rgba(15, 27, 42, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img, svg { display: block; }
a { color: inherit; }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
}

.boot-screen img { border-radius: 16px; box-shadow: var(--shadow-lg); }
.boot-screen p { margin: 0; }

.app-shell { min-height: 100vh; }

.sidebar {
  display: none;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 248px;
  padding: 28px 18px 22px;
  background: var(--navy-900);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: #fff;
}

.brand-logo { width: 100%; height: auto; }

.side-nav { display: grid; gap: 6px; margin-top: 42px; }
.nav-link {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #aeb9c5;
  text-align: left;
}
.nav-link svg { width: 20px; height: 20px; }
.nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-link.active { background: rgba(255,255,255,0.11); color: #fff; }
.nav-link.active::before {
  content: "";
  width: 3px;
  height: 22px;
  margin-left: -14px;
  border-radius: 4px;
  background: var(--red-500);
}

.sidebar-foot {
  position: absolute;
  inset: auto 18px 22px;
  display: grid;
  gap: 8px;
}
.sidebar-foot p { margin: 0; color: #a8b5c2; font-size: 12px; }

.page {
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));
}

.page-inner { width: min(1120px, 100%); margin: 0 auto; }

.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 18px;
}

.mobile-logo { width: 166px; display: flex; align-items: center; }
.mobile-logo img { width: 100%; height: auto; }

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #22a566; }
.sync-pill.saving .sync-dot { background: #d89412; animation: pulse 1s infinite; }
.sync-pill.offline .sync-dot { background: #89929d; }
@keyframes pulse { 50% { opacity: 0.35; } }

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 22px;
}
.eyebrow {
  margin: 0 0 5px;
  color: var(--red-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; color: var(--navy-900); font-size: clamp(26px, 6.5vw, 38px); line-height: 1.08; letter-spacing: -0.035em; }
h2 { margin: 0; color: var(--navy-900); font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
h3 { margin: 0; color: var(--navy-900); font-size: 15px; }
.subheading { max-width: 620px; margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.icon-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy-800);
}
.icon-btn:hover { border-color: #cdd2d9; background: #fafbfc; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.danger { color: var(--red-600); }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.button svg { width: 18px; height: 18px; }
.button:hover { background: var(--navy-800); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--navy-900); }
.button.secondary:hover { background: #f9fafb; }
.button.red { background: var(--red-600); }
.button.red:hover { background: #a91923; }
.button.ghost { min-height: 38px; padding-inline: 10px; background: transparent; color: var(--navy-800); }
.button.danger { border-color: #f1c9cd; background: #fff; color: var(--red-600); }
.button.block { width: 100%; }
.button:disabled { cursor: not-allowed; opacity: 0.48; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(15, 27, 42, 0.02);
}

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric-card { min-height: 125px; padding: 16px; overflow: hidden; position: relative; }
.metric-card::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: -24px;
  top: -25px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, #8290a0) 10%, transparent);
}
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--accent, #8290a0) 12%, white); color: var(--accent, #8290a0); }
.metric-icon svg { width: 18px; height: 18px; }
.metric-label { margin: 14px 0 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-value { margin: 0; color: var(--navy-900); font-size: clamp(19px, 5.6vw, 28px); font-weight: 820; letter-spacing: -0.04em; white-space: nowrap; }
.metric-card.wide { grid-column: 1 / -1; min-height: 110px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; }
.metric-card.wide .metric-label { margin-top: 0; }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.text-link { border: 0; padding: 5px 0; background: none; color: var(--red-600); font-size: 12px; font-weight: 750; }

.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.quick-action {
  min-height: 88px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--navy-800);
  font-size: 11px;
  font-weight: 750;
}
.quick-action:hover { border-color: #c9ced5; box-shadow: var(--shadow); }
.quick-action svg { width: 22px; height: 22px; color: var(--red-600); }

.activity-list, .list-stack { display: grid; gap: 9px; }
.activity-row, .invoice-card, .record-card {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.activity-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.record-dot { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--blue-100); color: var(--blue-700); }
.record-dot.payment { background: var(--green-100); color: var(--green-700); }
.record-dot.expense { background: var(--red-100); color: var(--red-600); }
.record-dot svg { width: 19px; height: 19px; }
.activity-main { min-width: 0; }
.activity-main strong { display: block; overflow: hidden; color: var(--navy-900); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.activity-main span { color: var(--muted); font-size: 11px; }
.activity-amount { text-align: right; }
.activity-amount strong { display: block; color: var(--navy-900); font-size: 13px; }

.filters {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; color: #7e8793; transform: translateY(-50%); pointer-events: none; }
.search-wrap input { padding-left: 41px; }
.chip-row { display: flex; gap: 7px; overflow-x: auto; padding: 1px 1px 5px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.chip.active { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }

input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9dde2;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(36, 60, 83, 0.1); }
input::placeholder, textarea::placeholder { color: #a2a9b1; }
label.field { display: grid; gap: 6px; color: #4d5662; font-size: 12px; font-weight: 700; }
.field-hint { color: var(--muted); font-size: 11px; font-weight: 450; }
.field-grid { display: grid; gap: 14px; }
.form-section { padding: 18px; }
.form-section + .form-section { margin-top: 12px; }
.form-section-title { margin-bottom: 15px; }
.form-section-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.invoice-card { grid-template-columns: minmax(0, 1fr) auto; }
.invoice-card:hover { border-color: #ccd1d7; box-shadow: var(--shadow); }
.invoice-card-main { min-width: 0; }
.invoice-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.invoice-card-top strong { font-size: 14px; }
.invoice-client { display: block; overflow: hidden; margin: 0; color: var(--navy-800); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.invoice-meta { display: block; margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.invoice-card-side { text-align: right; }
.invoice-card-side strong { display: block; font-size: 15px; }
.invoice-card-side span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.badge.draft { background: #edf0f3; color: #64707d; }
.badge.sent { background: var(--blue-100); color: var(--blue-700); }
.badge.paid { background: var(--green-100); color: var(--green-700); }
.badge.overdue { background: var(--red-100); color: var(--red-600); }

.record-card { grid-template-columns: auto minmax(0, 1fr) auto; }
.record-card .record-dot { width: 42px; height: 42px; }
.record-main { min-width: 0; }
.record-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-main span { color: var(--muted); font-size: 11px; }
.record-side { text-align: right; }
.record-side strong { display: block; }
.record-side button { margin: 2px -6px -5px 0; }

.summary-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.summary-item { padding: 14px; background: var(--surface); }
.summary-item span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.summary-item strong { display: block; margin-top: 4px; color: var(--navy-900); font-size: 18px; letter-spacing: -0.03em; }

.empty-state { padding: 36px 22px; text-align: center; }
.empty-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 17px; background: #eef1f4; color: var(--navy-700); }
.empty-icon svg { width: 26px; height: 26px; }
.empty-state h3 { font-size: 17px; }
.empty-state p { max-width: 390px; margin: 8px auto 18px; color: var(--muted); font-size: 12px; }

.fab {
  position: fixed;
  z-index: 35;
  right: 18px;
  bottom: calc(80px + env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 17px;
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 11px 24px rgba(185, 31, 42, 0.28);
}
.fab svg { width: 24px; height: 24px; }

.bottom-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  height: calc(68px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 5px 6px env(safe-area-inset-bottom);
  border-top: 1px solid rgba(15, 27, 42, 0.09);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 -8px 26px rgba(15, 27, 42, 0.06);
  backdrop-filter: blur(18px);
}
.bottom-link {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #818a95;
  font-size: 9px;
  font-weight: 700;
}
.bottom-link svg { width: 21px; height: 21px; }
.bottom-link.active { color: var(--red-600); }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  background: rgba(9, 19, 31, 0.48);
  backdrop-filter: blur(3px);
}
.sheet {
  width: 100%;
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: 9px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--canvas);
  box-shadow: var(--shadow-lg);
}
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 99px; background: #c8cdd3; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.sheet-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.sheet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }

.editor-page { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.editor-topbar { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 10px; margin-bottom: 16px; }
.editor-title { min-width: 0; text-align: center; }
.editor-title strong { display: block; overflow: hidden; color: var(--navy-900); text-overflow: ellipsis; white-space: nowrap; }
.editor-title span { color: var(--muted); font-size: 10px; }
.editor-grid { display: grid; gap: 12px; }

.line-items { display: grid; gap: 10px; }
.line-item { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfc; }
.line-item-top { display: grid; grid-template-columns: 1fr 42px; gap: 8px; }
.line-item-bottom { display: grid; grid-template-columns: 0.72fr 1fr 0.8fr; align-items: end; gap: 8px; margin-top: 9px; }
.line-total { display: grid; gap: 6px; color: #4d5662; font-size: 12px; font-weight: 700; text-align: right; }
.line-total strong { min-height: 46px; display: flex; align-items: center; justify-content: flex-end; color: var(--navy-900); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.toggle-row + .toggle-row { border-top: 1px solid var(--line); }
.toggle-copy strong { display: block; }
.toggle-copy span { color: var(--muted); font-size: 11px; }
.switch { position: relative; width: 47px; height: 28px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfd4da; transition: 0.2s; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: 0.2s; }
.switch input:checked + span { background: var(--red-600); }
.switch input:checked + span::after { transform: translateX(19px); }

.totals { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: var(--muted); font-size: 13px; }
.total-row strong { color: var(--navy-900); }
.total-row.grand { margin-top: 8px; padding: 13px 0 0; border-top: 1px solid var(--line); color: var(--navy-900); font-size: 17px; font-weight: 820; }
.total-row.grand strong { color: var(--red-600); font-size: 21px; }

.editor-actions {
  position: fixed;
  z-index: 45;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 9px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(18px);
}

.settings-stack { display: grid; gap: 12px; }
.settings-card { overflow: hidden; }
.settings-card summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 760;
}
.settings-card summary::-webkit-details-marker { display: none; }
.settings-card summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 22px; font-weight: 400; }
.settings-card[open] summary::after { content: "−"; }
.settings-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #eef1f4; color: var(--navy-700); }
.settings-icon svg { width: 18px; height: 18px; }
.settings-body { padding: 0 16px 17px; }
.settings-body .field-grid { padding-top: 4px; }

.profile-card { display: flex; align-items: center; gap: 13px; padding: 16px; margin-bottom: 14px; }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--navy-900); color: #fff; font-weight: 850; }
.profile-copy { min-width: 0; }
.profile-copy strong { display: block; }
.profile-copy span { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 15% 15%, rgba(207, 38, 50, 0.2), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(68, 99, 131, 0.22), transparent 30%),
    var(--navy-950);
}
.auth-card { width: min(430px, 100%); padding: 26px 22px; border: 1px solid rgba(255,255,255,0.12); border-radius: 24px; background: rgba(255,255,255,0.98); box-shadow: 0 28px 80px rgba(0,0,0,0.3); }
.auth-brand { display: flex; align-items: center; margin-bottom: 28px; }
.auth-brand img { width: min(260px, 76%); height: auto; }
.auth-card h1 { font-size: 28px; }
.auth-card > p { margin: 8px 0 22px; color: var(--muted); }
.auth-form { display: grid; gap: 14px; }
.auth-error { margin: -2px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--red-100); color: var(--red-600); font-size: 12px; }
.security-note { display: flex; gap: 8px; margin: 17px 0 0; color: var(--muted); font-size: 11px; }
.security-note svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--green-700); }

.toast-region { position: fixed; z-index: 120; inset: max(14px, env(safe-area-inset-top)) 14px auto; pointer-events: none; }
.toast { width: min(390px, 100%); margin: 0 auto 8px; padding: 12px 14px; border-radius: 12px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); font-size: 12px; font-weight: 650; animation: toast-in 0.2s ease-out; }
.toast.error { background: var(--red-600); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.hidden { display: none !important; }
.hidden-mobile { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (min-width: 620px) {
  .page { padding-inline: 24px; }
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-card.wide { grid-column: auto; display: block; min-height: 125px; }
  .metric-card.wide .metric-label { margin-top: 14px; }
  .summary-strip { grid-template-columns: repeat(4, 1fr); }
  .field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet { width: min(620px, calc(100% - 32px)); margin: 0 auto 18px; border-radius: 22px; }
  .editor-actions { left: 50%; width: min(720px, calc(100% - 48px)); bottom: 18px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
}

@media (min-width: 900px) {
  .hidden-mobile { display: inline-flex; }
  .sidebar { display: block; }
  .page { padding: 38px 38px 54px 286px; }
  .mobile-topbar, .bottom-nav { display: none; }
  .page-heading { margin-top: 0; }
  .fab { right: 34px; bottom: 32px; }
  .desktop-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr); gap: 20px; align-items: start; }
  .desktop-grid .section { margin-top: 0; }
  .filters { grid-template-columns: minmax(260px, 0.7fr) 1fr; align-items: start; }
  .editor-page { padding-left: 286px; }
  .editor-page .page-inner { max-width: 930px; }
  .editor-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr); align-items: start; }
  .editor-actions { left: calc(248px + (100vw - 248px) / 2); }
  .settings-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
  .settings-layout .profile-card { position: sticky; top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
