/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); color: var(--accent-bright); }

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }
button { font: inherit; cursor: pointer; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute;
  left: var(--sp-3);
  top: -48px;
  z-index: var(--z-toast);
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip:focus-visible { top: var(--sp-3); color: var(--on-accent); }

.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.pos { color: var(--gain); }
.neg { color: var(--loss); }
.right { text-align: right; }

/* ---------- Shell layout ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100dvh; }
.shell > .sidebar, .shell > .main-col { min-width: 0; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-3);
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: var(--sp-1) var(--sp-2);
}
.brand span { color: var(--accent); }
.brand:hover { color: var(--text); }

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--sp-2);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link svg { width: 18px; height: 18px; stroke: currentColor; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }

[data-active="dashboard"] .nav-dashboard,
[data-active="accounts"] .nav-accounts,
[data-active="trades"] .nav-trades,
[data-active="cashflow"] .nav-cashflow,
[data-active="goals"] .nav-goals,
[data-active="import"] .nav-import,
[data-active="settings"] .nav-settings {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--sp-2); }

.fx-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  padding: 0 var(--sp-2);
}
.fx-chip strong { color: var(--muted); font-weight: 500; }

/* ---------- Ticker rail ---------- */
.ticker {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 10px var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 41px;
}
.ticker::-webkit-scrollbar { display: none; }

.tick { display: inline-flex; align-items: baseline; gap: var(--sp-2); color: var(--muted); }
.tick .t-label { font-size: 10px; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; }
.tick .t-val { color: var(--text); font-variant-numeric: tabular-nums; }
.tick .t-val.pos { color: var(--gain); }
.tick .t-val.neg { color: var(--loss); }

/* ---------- Content ---------- */
.content { padding: var(--sp-5); max-width: 1200px; width: 100%; margin: 0 auto; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.page-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.page-head .actions { display: flex; gap: var(--sp-2); }

/* ---------- Cards & grids ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-4);
  min-width: 0;
}
.card + .card, .grid + .grid, .card + .grid, .grid + .card { margin-top: var(--sp-3); }

.card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--sp-3);
}
.card-title .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }

.grid { display: grid; gap: var(--sp-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-main { grid-template-columns: 2fr 1fr; }

/* ---------- Stats ---------- */
.stat .s-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.stat .s-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 20px; margin-top: var(--sp-1); }
.stat .s-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.big-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.delta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--surface-3);
  color: var(--muted);
  white-space: nowrap;
}
.chip-accent { background: var(--accent-soft); color: var(--accent-bright); }
.chip-gain { background: var(--gain-soft); color: var(--gain); }
.chip-loss { background: var(--loss-soft); color: var(--loss); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 40px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; }
.btn:hover { background: var(--surface-3); border-color: var(--faint); }
.btn:active { opacity: 0.85; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }

.btn-danger { background: transparent; border-color: var(--line-strong); color: var(--loss); }
.btn-danger:hover { background: var(--loss-soft); border-color: var(--loss); }

.btn-sm { min-height: 30px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  padding: var(--sp-2);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
td { padding: 10px var(--sp-2); border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td .row-actions { display: flex; gap: var(--sp-1); justify-content: flex-end; opacity: 0; transition: opacity var(--t-fast); }
tr:hover .row-actions, tr:focus-within .row-actions { opacity: 1; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-3); min-width: 0; }
.field > label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field .help { font-size: 12px; color: var(--faint); }
.field .error { font-size: 12px; color: var(--loss); }

input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0 12px;
  min-height: 40px;
  width: 100%;
}
textarea { padding: 10px 12px; resize: vertical; min-height: 72px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
input[type="file"] { padding: 8px 12px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }

.field-row { display: flex; gap: var(--sp-2); }
.field-row .field { flex: 1; }

.check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; min-height: 0; cursor: pointer; }
.seg span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.seg input:checked + span { background: var(--surface-3); color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.seg input:checked + span.seg-gain { background: var(--gain-soft); color: var(--gain); }
.seg input:checked + span.seg-loss { background: var(--loss-soft); color: var(--loss); }

/* ---------- Slide-over panel ---------- */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.6);
  z-index: var(--z-panel);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}
.panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(440px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  z-index: calc(var(--z-panel) + 1);
  transform: translateX(100%);
  transition: transform var(--t-med);
  display: flex;
  flex-direction: column;
}
.panel-open .panel { transform: translateX(0); }
.panel-open .panel-backdrop { opacity: 1; pointer-events: auto; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 15px; font-weight: 600; }
.panel-body { padding: var(--sp-4); overflow-y: auto; flex: 1; }
.panel-foot { display: flex; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line); }
.panel-foot .btn { flex: 1; }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px var(--sp-3);
  border-radius: var(--r-sm);
  font-size: 13px;
  max-width: min(90vw, 480px);
}
#toast.toast-err { border-color: var(--loss); color: var(--loss); }

/* ---------- Skeleton / empty ---------- */
.skeleton {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  min-height: 18px;
  color: transparent;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { text-align: center; padding: var(--sp-6) var(--sp-4); color: var(--muted); }
.empty .btn { margin-top: var(--sp-3); }

/* ---------- Progress (goals) ---------- */
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > div { height: 100%; border-radius: 999px; background: var(--accent); transition: width var(--t-med); }
.progress.done > div { background: var(--gain); }

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; }
.chart .axis-label { font-family: var(--font-mono); font-size: 10px; fill: var(--faint); }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart-tip {
  position: absolute;
  pointer-events: none;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  transform: translate(-50%, -110%);
  z-index: 5;
}
.chart-tip .tip-date { color: var(--faint); }

.spark { width: 110px; height: 28px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; }

.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: minmax(90px, 150px) 1fr auto; align-items: center; gap: var(--sp-2); }
.hbar-label { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 999px; }
.hbar-gain { background: var(--gain); }
.hbar-loss { background: var(--loss); }
.hbar-accent { background: var(--accent); }
.hbar-value { font-size: 12px; }

.bar-gain { fill: var(--gain); }
.bar-loss { fill: var(--loss); }
.bar-accent { fill: var(--accent); }
.bar-muted { fill: var(--surface-3); }

/* ---------- Login ---------- */
.login-body { display: grid; place-items: center; padding: var(--sp-3); }
.login-card { width: min(380px, 100%); }
.login-card .brand { display: block; text-align: center; font-size: 20px; margin-bottom: var(--sp-4); padding: 0; }
.login-note { margin-top: var(--sp-3); font-size: 12px; color: var(--faint); text-align: center; }

/* ---------- Import wizard ---------- */
.steps { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: 12px; font-weight: 600; color: var(--faint); }
.step .n {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
}
.step.on { color: var(--accent-bright); }
.step.on .n { border-color: var(--accent); background: var(--accent-soft); }

.dropzone {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  color: var(--muted);
  transition: border-color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }

.map-grid { display: grid; grid-template-columns: 160px 1fr; gap: var(--sp-2) var(--sp-3); align-items: center; }
.map-grid .map-label { font-size: 12px; font-weight: 600; color: var(--muted); }

.preview-note { font-size: 12px; color: var(--faint); margin-top: var(--sp-2); }

/* ---------- Utilities ---------- */
.row { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.stack { display: flex; flex-direction: column; gap: var(--sp-2); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.hidden { display: none !important; }

/* ---------- Inline control rows (filter bars) ---------- */
/* Filters size to content and share a row instead of stacking full-width. */
.filters > input, .filters > select { width: auto; flex: 1 1 150px; min-width: 0; }
.filters > .btn { flex: 0 0 auto; }

.monthnav { display: inline-flex; align-items: center; gap: var(--sp-2); }
.monthnav > input { width: auto; }

/* ---------- Bottom tab bar + More sheet (mobile primary nav) ---------- */
/* Hidden on desktop; the sidebar is the nav there. Shown at <=767px. */
.tabbar, .more-sheet, .more-backdrop { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-main { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  /* Shell → single column. The desktop sidebar gives way to the bottom tab bar. */
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }

  /* Content clears the fixed tab bar (+ the phone's home indicator). */
  .content { padding: var(--sp-3); padding-bottom: calc(56px + env(safe-area-inset-bottom) + var(--sp-5)); }
  .ticker {
    padding: 10px var(--sp-3);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .big-num { font-size: 32px; }
  .table-wrap { margin: 0 calc(-1 * var(--sp-3)); padding: 0 var(--sp-3); }
  td .row-actions { opacity: 1; }

  /* KPI strips stay multi-up instead of a tall single-column stack. */
  .stat-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
  .stat-grid .card { padding: var(--sp-3) var(--sp-2); }
  .stat-grid .s-label { font-size: 10px; }
  .stat-grid .s-value { font-size: 16px; }
  .stat-grid .s-sub { font-size: 11px; }

  /* Filter bars → tidy 2-up grid; search and Clear span the row. */
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .filters > select, .filters > input { width: auto; min-width: 0; }
  .filters > input:not([type="month"]) { grid-column: 1 / -1; }
  .filters > .btn { grid-column: 1 / -1; }

  /* Cash-flow month navigator: full-width picker row, then the primary action. */
  .page-head .actions { width: 100%; flex-wrap: wrap; }
  .monthnav { flex: 1 1 100%; }
  .monthnav > input { flex: 1; min-width: 0; }
  .page-head .actions > .btn-primary { flex: 1 1 100%; }

  /* Segmented controls span the width in equal, touch-sized segments. */
  .seg { display: flex; width: 100%; }
  .seg label { flex: 1 1 0; min-width: 0; }
  .seg span { width: 100%; justify-content: center; padding: 0 var(--sp-2); font-size: 12px; }

  /* Dense tables: pin the identifying first column while the rest scrolls. */
  .sticky-first th:first-child,
  .sticky-first td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
  }
  .sticky-first thead th:first-child { z-index: 2; }
  .sticky-first tbody tr:hover td:first-child { background: var(--surface-2); }
  .table-wrap { position: relative; }

  /* Give horizontal bars more room for the track on narrow screens. */
  .hbar-row { grid-template-columns: minmax(64px, 108px) 1fr auto; }

  /* Toast clears the tab bar. */
  #toast { bottom: calc(56px + env(safe-area-inset-bottom) + var(--sp-3)); }

  /* ----- Bottom tab bar ----- */
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-nav);
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    padding: 8px 4px 6px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
  }
  .tab svg { width: 22px; height: 22px; stroke: currentColor; }
  .tab span { line-height: 1; }
  .tab:active { color: var(--text); }
  [data-active="dashboard"] .tab-dashboard,
  [data-active="accounts"] .tab-accounts,
  [data-active="trades"] .tab-trades,
  [data-active="cashflow"] .tab-cashflow,
  .tabbar.more-open .tab-more,
  [data-active="goals"] .tab-more,
  [data-active="import"] .tab-more,
  [data-active="settings"] .tab-more { color: var(--accent-bright); }

  /* ----- More sheet (Goals / Import / Settings / Sign out) ----- */
  .more-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-nav) - 1);
    background: rgba(4, 6, 10, 0.5);
  }
  .more-sheet.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: var(--sp-3);
    left: var(--sp-3);
    bottom: calc(56px + env(safe-area-inset-bottom) + var(--sp-2));
    z-index: calc(var(--z-nav) + 1);
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    padding: var(--sp-2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
  .more-link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    width: 100%;
    min-height: 48px;
    padding: 12px var(--sp-3);
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
  }
  .more-link svg { width: 18px; height: 18px; stroke: currentColor; color: var(--muted); }
  .more-link:active { background: var(--surface-3); }
  [data-active="goals"] .more-link.nav-goals,
  [data-active="import"] .more-link.nav-import,
  [data-active="settings"] .more-link.nav-settings {
    background: var(--accent-soft);
    color: var(--accent-bright);
  }
  [data-active="goals"] .more-link.nav-goals svg,
  [data-active="import"] .more-link.nav-import svg,
  [data-active="settings"] .more-link.nav-settings svg { color: var(--accent-bright); }
  .more-signout { color: var(--loss); border-top: 1px solid var(--line); margin-top: var(--sp-1); }
  .more-signout svg { color: var(--loss); }
}

@media (pointer: coarse) {
  .btn, input, select { min-height: 44px; }
  .btn-sm { min-height: 36px; }
}

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