:root {
  --p-void: #060a12;
  --p-navy: #0a1020;
  --p-graphite: #111827;
  --p-raised: #151f33;
  --p-line: #25314a;
  --p-line-soft: #1a2539;
  --p-electric: #5b6cff;
  --p-electric-strong: #7080ff;
  --p-cyan: #35d7e7;
  --p-violet: #8e7dff;
  --p-success: #4fd1a5;
  --p-danger: #ff7a70;
  --p-frost: #f4f7ff;
  --p-muted: #9ba6ba;
  --p-subtle: #69768e;
  --p-radius-sm: 6px;
  --p-radius-md: 10px;
  --p-radius-lg: 14px;
  --p-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  --p-shadow-soft: 0 12px 32px rgba(0, 0, 0, .18);
  --sidebar: 224px;
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  color: var(--p-frost);
  background: var(--p-void);
}

body {
  color: var(--p-frost);
  background: var(--p-void);
  scrollbar-color: var(--p-line) var(--p-void);
}

h1, h2, h3, .brand, .free-balance > strong,
.planning-summary > div:first-child > strong,
.goals-intro > div > strong,
.accounts-total > div > strong {
  font-family: 'Sora', sans-serif;
}

.eyebrow,
.daily-limit,
.track-node small,
.stat-card strong,
.transaction-meta strong,
.bill-row > b,
.simple-row > b,
.budget-ring b,
.budget-top > strong,
.budget-values b,
.goal-values strong,
.account-value,
.money-input,
.money-input input {
  font-family: 'IBM Plex Mono', monospace;
}

::selection { color: var(--p-void); background: var(--p-cyan); }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--p-cyan);
  outline-offset: 3px;
}

.sidebar {
  width: var(--sidebar);
  padding: 24px 14px 18px;
  color: var(--p-frost);
  background: var(--p-navy);
  border-right: 1px solid var(--p-line-soft);
}

.brand {
  gap: 11px;
  padding: 0 12px 35px;
  color: var(--p-frost);
  font-size: 20px;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 31px;
  height: 31px;
  color: var(--p-frost);
  background: var(--p-electric);
  border: 1px solid var(--p-electric-strong);
  border-radius: 7px 7px 7px 2px;
  font: 700 18px/1 'Sora', sans-serif;
  transform: none;
  box-shadow: 0 0 22px rgba(91, 108, 255, .18);
}

.side-nav { gap: 3px; }
.nav-item {
  min-height: 44px;
  gap: 12px;
  padding: 0 12px;
  border-radius: var(--p-radius-sm);
  color: #71809a;
  font-size: 13px;
  font-weight: 500;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-item .icon { width: 18px; height: 18px; }
.nav-item:hover { color: var(--p-frost); background: rgba(91, 108, 255, .08); transform: translateX(2px); }
.nav-item.active { color: var(--p-frost); background: #141d31; }
.nav-item.active::before {
  left: -14px;
  width: 2px;
  height: 22px;
  background: var(--p-cyan);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(53, 215, 231, .4);
}
.nav-item.active .icon { color: var(--p-cyan); }
.profile { padding: 17px 10px 0; border-color: var(--p-line-soft); }
.profile .avatar { color: white; background: var(--p-electric); border: 1px solid rgba(255,255,255,.12); }
.profile strong { color: #dfe6f6; font-weight: 500; }
.profile small { color: var(--p-subtle); }

.main-content {
  margin-left: var(--sidebar);
  padding: 38px clamp(30px, 4vw, 62px) 72px;
  color: var(--p-frost);
  background: var(--p-void);
}
.page-header { margin-bottom: 30px; }
.page-header h1 {
  margin-top: 7px;
  color: var(--p-frost);
  font-size: clamp(2.15rem, 3.3vw, 3.65rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.055em;
}
.eyebrow { color: var(--p-subtle); font-size: 10px; letter-spacing: .13em; }
.eyebrow.light { color: #7786a5; }

.icon-button {
  width: 43px;
  height: 43px;
  color: var(--p-muted);
  background: var(--p-navy);
  border-color: var(--p-line);
  border-radius: 8px;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.icon-button:hover { color: var(--p-cyan); border-color: #3d4d70; background: var(--p-graphite); }
.button {
  min-height: 43px;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button.primary {
  color: white;
  background: var(--p-electric);
  border: 1px solid #7281ff;
  box-shadow: 0 9px 28px rgba(91, 108, 255, .2);
}
.button.primary:hover { background: var(--p-electric-strong); box-shadow: 0 11px 32px rgba(91,108,255,.27); }
.button.secondary, .button.ghost {
  color: #c6cfe0;
  background: transparent;
  border: 1px solid var(--p-line);
}
.button.secondary:hover, .button.ghost:hover { color: white; background: var(--p-raised); border-color: #3a4864; }
.button.light { color: var(--p-frost); background: var(--p-raised); border: 1px solid #33415c; }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.button.is-loading { color: transparent; pointer-events: none; position: relative; }
.button.is-loading::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: white;
  border-radius: 50%;
  animation: premium-spin .7s linear infinite;
}

.overview-hero { grid-template-columns: minmax(260px, .62fr) minmax(560px, 1.65fr); gap: 12px; }
.free-balance {
  min-height: 280px;
  padding: 29px;
  background: var(--p-graphite);
  border: 1px solid var(--p-line-soft);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-soft);
}
.free-balance > strong {
  color: var(--p-frost);
  font-size: clamp(2.55rem, 3.7vw, 3.85rem);
  font-weight: 500;
  letter-spacing: -.065em;
}
.free-balance > p { color: var(--p-muted); }
.balance-status { color: var(--p-cyan); font-size: 11px; font-weight: 500; }

.breath-ruler {
  min-height: 280px;
  padding: 29px;
  color: var(--p-frost);
  background: #0e172a;
  border: 1px solid #263654;
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-soft);
}
.breath-ruler::after {
  content: '';
  right: 0;
  top: 0;
  width: 84px;
  height: 100%;
  background: transparent;
  border-left: 1px solid rgba(91, 108, 255, .13);
  font-size: 0;
}
.ruler-heading h2 { max-width: 480px; color: #edf3ff; font: 500 21px/1.15 'Sora', sans-serif; }
.daily-limit { color: var(--p-cyan); font-size: 17px; font-weight: 500; }
.daily-limit small { color: var(--p-subtle); }
.ruler-track::before { height: 1px; background: #33415d; }
.track-progress { height: 1px; background: var(--p-cyan); box-shadow: 0 0 9px rgba(53,215,231,.65); }
.track-node i {
  width: 15px;
  height: 15px;
  margin-left: calc(50% - 7px);
  background: var(--p-navy);
  border: 3px solid var(--p-electric-strong);
  box-shadow: 0 0 0 4px rgba(91,108,255,.08), 0 0 14px rgba(91,108,255,.2);
}
.track-node.today i { background: var(--p-cyan); border-color: var(--p-cyan); box-shadow: 0 0 14px rgba(53,215,231,.42); }
.track-node.income i { background: var(--p-success); border-color: #c4fff0; box-shadow: 0 0 13px rgba(79,209,165,.35); }
.track-node b { color: #e4ebfa; font-size: 11px; font-weight: 500; }
.track-node small { color: #64718a; font-size: 9px; }
.ruler-note { border-color: #22304a; color: #7f8ba3; }
.ruler-note strong { color: #cfd7e8; font-weight: 500; }
.ruler-note .icon { color: var(--p-electric-strong); }

.stats-grid { gap: 0; margin: 12px 0; background: var(--p-navy); border: 1px solid var(--p-line-soft); border-radius: var(--p-radius-md); overflow: hidden; }
.stat-card {
  min-height: 119px;
  padding: 23px 25px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--p-line-soft);
  border-radius: 0;
}
.stat-card:last-child { border-right: 0; }
.stat-card span, .stat-card small { color: var(--p-subtle); }
.stat-card strong { color: #e9effb; font-size: 22px; font-weight: 500; }
.stat-card.positive strong { color: var(--p-cyan); }

.dashboard-grid, .planning-grid { gap: 12px; }
.panel {
  padding: 26px;
  color: var(--p-frost);
  background: var(--p-navy);
  border: 1px solid var(--p-line-soft);
  border-radius: var(--p-radius-md);
  box-shadow: var(--p-shadow-soft);
}
.section-heading h2 { color: #eaf0fb; font: 500 20px/1.15 'Sora', sans-serif; letter-spacing: -.035em; }
.text-button { color: var(--p-electric-strong); font-weight: 500; }
.text-button:hover { color: var(--p-cyan); }

.transaction-row { border-color: var(--p-line-soft); transition: background .18s ease, padding .18s ease; }
.transaction-row:hover { padding-left: 8px; padding-right: 6px; background: #0e1728; }
.transaction-row > .icon:last-child { color: #47536b; }
.transaction-icon { width: 38px; height: 38px; border-radius: 7px; }
.transaction-icon.expense { color: var(--p-danger); background: rgba(255, 122, 112, .09); }
.transaction-icon.income { color: var(--p-success); background: rgba(79, 209, 165, .09); }
.transaction-copy strong { color: #dfe6f4; font-weight: 500; }
.transaction-copy small, .transaction-meta small { color: var(--p-subtle); }
.transaction-meta strong { color: #dce4f2; font-weight: 500; }
.transaction-meta strong.income { color: var(--p-success); }
.bill-row, .simple-row { border-color: var(--p-line-soft); }
.bill-row strong, .simple-row strong { color: #dfe6f4; font-weight: 500; }
.bill-row small, .simple-row small { color: var(--p-subtle); }
.bill-row > b, .simple-row > b { color: #c7d0e2; font-weight: 500; }
.date-tile { color: var(--p-cyan); background: #101b30; border: 1px solid #243657; border-radius: 6px; }

.toolbar { margin-bottom: 12px; }
.search-field {
  height: 45px;
  color: var(--p-frost);
  background: var(--p-navy);
  border-color: var(--p-line);
  border-radius: 7px;
}
.search-field input { color: var(--p-frost); }
.search-field input::placeholder { color: var(--p-subtle); }
.pill { min-height: 36px; color: var(--p-muted); background: transparent; border-color: var(--p-line); font-weight: 500; }
.pill:hover { color: white; border-color: #3b4a67; }
.pill.active { color: var(--p-frost); background: var(--p-electric); border-color: var(--p-electric); }
.transactions-panel { margin-top: 12px; }
.empty-state > span { color: var(--p-cyan); background: #101b30; }
.empty-state h3 { color: var(--p-frost); }
.empty-state p { color: var(--p-muted); }

.planning-summary, .goals-intro, .accounts-total {
  min-height: 205px;
  padding: 32px 36px;
  color: var(--p-frost);
  background: var(--p-navy);
  border: 1px solid var(--p-line-soft);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-soft);
}
.planning-summary::after, .accounts-total::after, .goals-intro::after { display: none; }
.planning-summary > div:first-child > strong,
.goals-intro > div > strong,
.accounts-total > div > strong {
  color: var(--p-frost);
  font-size: clamp(2.25rem, 4vw, 3.9rem);
  font-weight: 500;
  letter-spacing: -.06em;
}
.planning-summary strong small { color: var(--p-subtle); }
.planning-summary strong small { margin-left: .14em; }
.planning-summary strong small { word-spacing: .2em; }
.planning-summary p, .goals-intro p, .accounts-total p { color: var(--p-muted); }
.budget-ring { width: 130px; height: 130px; background: conic-gradient(var(--p-cyan) calc(var(--percent) * 1%), #1a263b 0); box-shadow: 0 0 28px rgba(53,215,231,.08); }
.budget-ring::before { background: var(--p-navy); }
.budget-ring b { color: var(--p-frost); font-weight: 500; }
.budget-ring small { color: var(--p-subtle); }

.budget-grid { gap: 12px; }
.budget-card { padding: 24px; color: var(--p-frost); background: var(--p-navy); border: 1px solid var(--p-line-soft); border-radius: var(--p-radius-md); }
.category-dot.blue { background: var(--p-electric); }.category-dot.teal { background: var(--p-cyan); }.category-dot.coral { background: var(--p-danger); }
.budget-top h3 { color: #dfe6f4; font-weight: 500; }
.budget-top small, .budget-values { color: var(--p-subtle); }
.budget-top > strong, .budget-values b { color: #dce4f2; font-weight: 500; }
.progress { background: #1a2539; }
.progress .blue { background: var(--p-electric); }.progress .teal { background: var(--p-cyan); }.progress .coral { background: var(--p-danger); }

.goals-intro { background: #0d1527; border-color: #273756; }
.goals-grid { gap: 12px; margin: 12px 0; }
.goal-card { min-height: 370px; gap: 20px; padding: 12px; color: var(--p-frost); background: var(--p-navy); border: 1px solid var(--p-line-soft); border-radius: var(--p-radius-md); }
.goal-visual { background: #111d34; border: 1px solid #223354; border-radius: 7px; }
.goal-visual::before { border-color: rgba(91,108,255,.2); }
.goal-visual::after { background: var(--p-electric); opacity: .7; }
.goal-visual.mountain { background: #0f2227; }
.goal-visual.mountain::before { background: #18414a; }
.goal-visual.mountain::after { background: var(--p-cyan); opacity: .45; }
.goal-visual span { color: var(--p-frost); background: var(--p-navy); border: 1px solid #354563; font-weight: 500; }
.goal-content h2 { color: #e7edf8; font: 500 24px/1.1 'Sora', sans-serif; }
.goal-values { color: var(--p-subtle); }
.goal-values strong { color: var(--p-frost); font-weight: 500; }
.insight-panel { background: #0c1424; border-color: #263552; }
.insight-mark { color: var(--p-cyan); background: #101e34; border: 1px solid #284365; }
.insight-panel h2 { color: #e5ecf9; font: 500 21px 'Sora', sans-serif; }
.insight-panel p { color: var(--p-muted); }

.accounts-total { background: #0b1323; }
.accounts-grid { gap: 12px; margin: 12px 0; }
.account-card { min-height: 275px; padding: 22px; color: var(--p-frost); background: var(--p-navy); border: 1px solid var(--p-line-soft); border-radius: var(--p-radius-md); }
.account-symbol { width: 43px; height: 43px; margin-bottom: 24px; border-radius: 7px; }
.account-symbol.navy { background: #1d2940; }.account-symbol.blue { background: var(--p-electric); }.account-symbol.teal { color: var(--p-void); background: var(--p-cyan); }.account-symbol.yellow { color: var(--p-frost); background: var(--p-violet); }
.account-card h2 { color: #e5ebf7; font: 500 18px 'Sora', sans-serif; }
.account-value { color: var(--p-frost); font-weight: 500; }
.account-card > small { color: var(--p-subtle); }
.account-card .text-button { border-color: var(--p-line-soft); }
.distribution-bar { background: var(--p-graphite); }
.dist-main { background: var(--p-electric); }.dist-reserve { background: var(--p-cyan); }.dist-cash { background: var(--p-violet); }
.distribution-legend { color: var(--p-muted); }
.distribution-legend i.navy { background: var(--p-electric); }.distribution-legend i.teal { background: var(--p-cyan); }.distribution-legend i.yellow { background: var(--p-violet); }

.modal-backdrop { overflow: hidden; background: rgba(2, 5, 12, .78); backdrop-filter: blur(3px); }
.modal { max-width: 100%; color: var(--p-frost); background: var(--p-navy); border: 1px solid var(--p-line); border-radius: var(--p-radius-lg); box-shadow: var(--p-shadow); }
.modal-header > div, .modal form, .modal .form-grid, .modal .field, .modal .money-input { min-width: 0; max-width: 100%; }
.modal-header h2 { color: var(--p-frost); font: 500 27px 'Sora', sans-serif; }
.segmented { background: var(--p-void); border: 1px solid var(--p-line-soft); border-radius: 8px; }
.segmented span { color: var(--p-muted); border-radius: 5px; }
.segmented input:checked + span { color: white; background: var(--p-raised); box-shadow: none; }
.field { color: #9ba7bc; font-weight: 500; }
.field > input, .field > select, .money-input {
  color: var(--p-frost);
  background: #0b1323;
  border-color: var(--p-line);
  border-radius: 7px;
}
.field > select { color-scheme: dark; }
.field > input::placeholder, .money-input input::placeholder { color: #47536b; }
.field input:user-invalid, .field select:user-invalid { border-color: var(--p-danger); box-shadow: 0 0 0 2px rgba(255,122,112,.08); }
.field input:user-valid { border-color: #2c5360; }
.money-input input { color: var(--p-frost); background: transparent; }
.check-field { background: #0d1729; border: 1px solid var(--p-line-soft); border-radius: 7px; }
.check-field input { accent-color: var(--p-electric); }
.check-field b { color: #d8e0ee; }.check-field small { color: var(--p-subtle); }
.impact-preview { color: #d6deed; background: #0f1a31; border-color: var(--p-cyan); }
.impact-preview span { color: var(--p-muted); }
.modal-actions { background: var(--p-navy); }

#toast-root .toast { color: var(--p-frost); background: var(--p-raised); border: 1px solid #33435f; border-radius: 8px; box-shadow: var(--p-shadow); }
.toast span { color: var(--p-void); background: var(--p-cyan); }
.toast.error { border-color: rgba(255,122,112,.45); }
.toast.error span { color: white; background: var(--p-danger); }

.modal-copy { margin: 0 0 20px; color: var(--p-muted); font-size: 12px; line-height: 1.55; }
.modal-field-list { display: grid; gap: 5px; }
.modal-field-list .field { padding-bottom: 13px; border-bottom: 1px solid var(--p-line-soft); }
.modal-field-list .field:last-child { border-bottom: 0; }
.field > small { color: var(--p-subtle); font-size: 10px; font-weight: 400; }
.compact-money-input {
  height: 45px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--p-muted);
  background: #0b1323;
  border: 1px solid var(--p-line);
  border-radius: 7px;
  font: 500 13px 'IBM Plex Mono', monospace;
}
.compact-money-input input { min-width: 0; flex: 1; color: var(--p-frost); background: transparent; border: 0; outline: 0; font: 500 15px 'IBM Plex Mono', monospace; }
.modal-action-spacer { flex: 1; }
.button.danger { color: var(--p-danger); background: transparent; border: 1px solid rgba(255,122,112,.35); }
.button.danger:hover { color: white; background: var(--p-danger); border-color: var(--p-danger); }
.goal-modal-summary { padding: 18px; margin-bottom: 19px; display: grid; gap: 5px; background: #0f1a31; border-left: 3px solid var(--p-electric); }
.goal-modal-summary span, .goal-modal-summary small { color: var(--p-muted); font-size: 10px; }
.goal-modal-summary strong { color: var(--p-frost); font: 500 24px 'IBM Plex Mono', monospace; }
.account-filter-banner {
  min-height: 46px;
  margin-bottom: 12px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--p-muted);
  background: #0f1a31;
  border: 1px solid #283958;
  border-radius: 7px;
  font-size: 12px;
}
.account-filter-banner strong { color: var(--p-frost); }
.account-filter-banner button { display: inline-flex; align-items: center; gap: 6px; color: var(--p-cyan); background: transparent; font-size: 11px; font-weight: 600; }
.account-filter-banner .icon { width: 14px; height: 14px; }

.sync-status {
  min-height: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--p-subtle);
  background: #080e1a;
  border: 1px solid var(--p-line-soft);
  border-radius: var(--p-radius-sm);
  font: 500 10px/1.2 'IBM Plex Mono', monospace;
}
.sync-status i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--p-subtle); }
.sync-status.synced i { background: var(--p-success); box-shadow: 0 0 9px rgba(79,209,165,.35); }
.sync-status.syncing i { background: var(--p-cyan); animation: sync-pulse 1.2s ease-in-out infinite; }
.sync-status.offline i { background: var(--p-violet); }
.sync-status.error i { background: var(--p-danger); }
.mobile-sync { display: none; }
.profile { min-width: 0; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy strong, .profile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-signout {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--p-subtle);
  background: transparent;
  border-radius: var(--p-radius-sm);
  transition: color .18s ease, background .18s ease;
}
.profile-signout:hover { color: var(--p-danger); background: rgba(255,122,112,.08); }
.profile-signout .icon { width: 16px; height: 16px; }

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
  overflow: hidden;
  color: var(--p-frost);
  background: var(--p-void);
}
.auth-thesis {
  min-height: 100%;
  padding: clamp(32px, 5vw, 72px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #080e1a;
  background-image: linear-gradient(rgba(91,108,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(91,108,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  border-right: 1px solid var(--p-line-soft);
}
.auth-thesis::after {
  content: '';
  position: absolute;
  top: 14%;
  right: -1px;
  width: 2px;
  height: 23%;
  background: var(--p-cyan);
  box-shadow: 0 0 18px rgba(53,215,231,.45);
}
.auth-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--p-frost);
  font: 600 21px/1 'Sora', sans-serif;
  letter-spacing: -.04em;
  text-decoration: none;
}
.auth-thesis-copy { max-width: 720px; margin: clamp(68px, 12vh, 150px) 0 auto; }
.auth-thesis-copy h1 {
  margin: 17px 0 24px;
  color: var(--p-frost);
  font: 500 clamp(3.2rem, 6.1vw, 6.8rem)/.92 'Sora', sans-serif;
  letter-spacing: -.075em;
}
.auth-thesis-copy h1 em { color: var(--p-electric-strong); font-style: normal; }
.auth-thesis-copy > p { max-width: 590px; color: var(--p-muted); font-size: clamp(14px, 1.35vw, 18px); line-height: 1.65; }
.auth-proof { margin-top: 54px; display: flex; flex-wrap: wrap; gap: 11px 24px; color: var(--p-subtle); font: 500 10px 'IBM Plex Mono', monospace; }
.auth-proof span { display: inline-flex; align-items: center; gap: 8px; }
.auth-proof i { width: 5px; height: 5px; border-radius: 50%; background: var(--p-cyan); }
.auth-panel { padding: clamp(28px, 5vw, 76px); display: grid; place-items: center; background: var(--p-navy); }
.auth-panel-inner { width: min(100%, 430px); }
.auth-step { color: var(--p-cyan); font: 500 9px 'IBM Plex Mono', monospace; letter-spacing: .18em; }
.auth-panel h2 { margin: 15px 0 10px; color: var(--p-frost); font: 500 clamp(2rem, 3.2vw, 3rem)/1.05 'Sora', sans-serif; letter-spacing: -.055em; }
.auth-copy { margin: 0 0 34px; color: var(--p-muted); font-size: 13px; line-height: 1.6; }
.auth-field { margin-bottom: 17px; display: grid; gap: 8px; color: #aab5c9; font-size: 11px; font-weight: 600; }
.auth-field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  color: var(--p-frost);
  background: #080f1d;
  border: 1px solid var(--p-line);
  border-radius: 7px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.auth-field input:hover { border-color: #384866; }
.auth-field input:focus { border-color: var(--p-electric-strong); background: #0a1323; box-shadow: 0 0 0 3px rgba(91,108,255,.09); }
.auth-field input::placeholder { color: #46536a; }
.auth-forgot { margin: -2px 0 20px auto; display: block; color: var(--p-electric-strong); background: transparent; font-size: 11px; font-weight: 600; }
.auth-forgot:hover { color: var(--p-cyan); }
.auth-submit { width: 100%; min-height: 50px; margin-top: 5px; }
.auth-feedback { display: none; margin: 0 0 13px; padding: 11px 12px; color: var(--p-muted); background: #0c1628; border-left: 2px solid var(--p-electric); font-size: 11px; line-height: 1.5; }
.auth-feedback.visible { display: block; }
.auth-feedback.success { color: #a9e8d3; border-color: var(--p-success); }
.auth-feedback.error { color: #ffc0bb; border-color: var(--p-danger); }
.auth-switch { margin-top: 25px; color: var(--p-subtle); font-size: 12px; text-align: center; }
.auth-switch button { color: var(--p-cyan); background: transparent; font-weight: 600; }
.auth-switch button:hover { color: var(--p-frost); }
.auth-local-note { margin-top: 32px; padding-top: 18px; display: block; color: #5e6b82; border-top: 1px solid var(--p-line-soft); font-size: 10px; line-height: 1.55; }

.loading-shell { display: grid; place-items: center; }
.auth-loading { display: grid; justify-items: center; gap: 21px; color: var(--p-muted); font-size: 12px; }
.auth-loader { width: 68px; height: 1px; position: relative; overflow: hidden; background: var(--p-line); }
.auth-loader::after { content: ''; width: 34px; height: 100%; position: absolute; background: var(--p-cyan); box-shadow: 0 0 12px rgba(53,215,231,.5); animation: auth-scan 1.2s ease-in-out infinite; }

@keyframes sync-pulse { 50% { opacity: .35; transform: scale(.75); } }
@keyframes auth-scan { from { transform: translateX(-36px); } to { transform: translateX(72px); } }

@keyframes premium-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  :root { --sidebar: 196px; }
  .overview-hero { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .auth-shell { grid-template-columns: 1fr; overflow: visible; }
  .auth-thesis { min-height: auto; padding: 28px 24px 36px; border-right: 0; border-bottom: 1px solid var(--p-line-soft); }
  .auth-thesis::after { top: auto; right: auto; bottom: -1px; left: 24px; width: 26%; height: 2px; }
  .auth-thesis-copy { margin: 46px 0 0; }
  .auth-thesis-copy h1 { margin: 13px 0 16px; font-size: clamp(2.65rem, 11vw, 4.6rem); line-height: .98; }
  .auth-thesis-copy > p { max-width: 540px; font-size: 13px; }
  .auth-proof { display: none; }
  .auth-panel { padding: 42px 22px 58px; }
  .mobile-sync { width: 30px; min-height: 43px; padding: 0; display: inline-flex; justify-content: center; background: transparent; border: 0; }
  .mobile-sync [data-sync-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .main-content { margin-left: 0; padding: 25px 16px 106px; background: var(--p-void); }
  .page-header { margin-bottom: 23px; }
  .page-header h1 { font-size: clamp(2.2rem, 10vw, 3.15rem); }
  .free-balance { min-height: 185px; }
  .mobile-nav {
    inset: auto 9px 9px;
    height: 68px;
    padding: 5px 7px;
    color: var(--p-muted);
    background: #0b1221;
    border: 1px solid var(--p-line);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0,0,0,.48);
    backdrop-filter: none;
  }
  .mobile-nav-item { color: #66738a; }
  .mobile-nav-item.active { color: var(--p-frost); }
  .mobile-nav-item.active .icon { color: var(--p-cyan); }
  .mobile-nav-item.active::after { background: var(--p-cyan); box-shadow: 0 0 8px rgba(53,215,231,.35); }
  .mobile-add {
    width: 48px;
    height: 48px;
    color: white;
    background: var(--p-electric);
    border: 1px solid #7483ff;
    border-radius: 9px 9px 9px 3px;
    transform: none;
  }
  .mobile-add .icon { transform: none; }
}

@media (max-width: 600px) {
  .auth-brand { font-size: 18px; }
  .auth-brand .brand-mark { width: 28px; height: 28px; font-size: 16px; }
  .auth-thesis-copy h1 { font-size: 2.65rem; }
  .auth-panel { place-items: start center; }
  .auth-panel h2 { font-size: 2.15rem; }
  .auth-copy { margin-bottom: 27px; }
  .main-content { padding-inline: 13px; }
  .page-header h1 { font-size: 2.45rem; }
  .free-balance { padding: 24px; }
  .free-balance > strong { font-size: 3rem; }
  .breath-ruler { min-height: 300px; padding: 24px; }
  .breath-ruler::after { display: none; }
  .ruler-heading h2 { font-size: 18px; }
  .stats-grid { margin-right: -13px; padding-right: 13px; background: transparent; border: 0; border-radius: 0; }
  .stat-card { min-width: 204px; background: var(--p-navy); border: 1px solid var(--p-line-soft); border-radius: 8px; }
  .planning-summary, .goals-intro, .accounts-total { padding: 26px 23px; }
  .planning-summary { padding: 24px 21px; }
  .planning-summary strong small { display: block; margin: 10px 0 0; }
  .section-heading.standalone h2 { max-width: 240px; text-wrap: pretty; }
  .budget-ring { width: 102px; height: 102px; }
  .goal-card { padding: 10px; }
  .goal-content { padding: 18px 8px 8px; }
  .modal { padding: 24px 19px; background: var(--p-navy); border-radius: 14px 14px 0 0; }
  .modal-header { gap: 12px; }
  .modal-header h2 { font-size: 23px; }
  .modal-actions { margin-inline: -19px; padding-inline: 19px; }
}

@media (prefers-reduced-motion: no-preference) {
  .main-content > * { animation: premium-enter .32s ease both; }
  .main-content > *:nth-child(2) { animation-delay: .025s; }
  .main-content > *:nth-child(3) { animation-delay: .05s; }
  @keyframes premium-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .sync-status.syncing i, .auth-loader::after { animation: none; }
}
