*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── LIGHT THEME (default) ── */
:root {
  --bg: #F7F5F0; --bg2: #FFFFFF; --bg3: #F0EDE6;
  --border: #E4DFD6; --border-light: #C8C0B4;
  --pretax: #2D5016; --taxable: #1A3A5C; --taxfree: #5C3A1A;
  --realestate: #7A4A1A;
  --pretax-dim: #EBF2E3; --taxable-dim: #E3EBF5; --taxfree-dim: #F5EBE3;
  --equity-dim: #E8F5EA; --cash-dim: #F0F4F8;
  --text-primary: #1A1814; --text-secondary: #6B6560; --text-muted: #9E9890;
  --income: #2D7A3A; --expense: #C0392B; --transfer: #6B4A8A;
  --accent: #C4973A; --accent-light: #FBF3E3;
  --future: #C4973A; --future-dim: #FBF3E3;
  --single: #2D5016; --single-dim: #EBF2E3;
  --family: #8B5E3C; --family-dim: #F5EBE3;
  --crypto: #8B5E3C;
  --cash: #4A7A6A;
  --equity: #2D7A3A;
}

/* ── DARK THEME ── */
body.dark {
  --bg: #0d1117; --bg2: #13181f; --bg3: #1a2030;
  --border: rgba(255,255,255,0.07); --border-light: rgba(255,255,255,0.14);
  --pretax: #5b9cf6; --taxable: #a78bfa; --taxfree: #f0b429;
  --realestate: #34d399;
  --pretax-dim: rgba(91,156,246,0.12); --taxable-dim: rgba(167,139,250,0.12);
  --taxfree-dim: rgba(240,180,41,0.12); --equity-dim: rgba(52,211,153,0.10);
  --cash-dim: rgba(148,163,184,0.10);
  --text-primary: #f0f4ff; --text-secondary: #8892a4; --text-muted: #505870;
  --income: #34d399; --expense: #f87171; --transfer: #a78bfa;
  --accent: #f0b429; --accent-light: rgba(240,180,41,0.12);
  --future: #c084fc; --future-dim: rgba(192,132,252,0.12);
  --single: #5b9cf6; --single-dim: rgba(91,156,246,0.12);
  --family: #fb923c; --family-dim: rgba(251,146,60,0.12);
  --crypto: #fb923c; --cash: #94a3b8; --equity: #34d399;
}

body {
  background: var(--bg); color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh; overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

/* ── TOPBAR ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s;
}

.wordmark {
  font-family: 'DM Serif Display', serif; font-size: 22px;
  letter-spacing: -0.5px; cursor: pointer;
}
.wordmark .w-my  { color: var(--text-primary); transition: color 0.4s; }
.wordmark .w-eco { color: var(--accent); transition: color 0.4s; }

.topbar-center { display: flex; align-items: center; gap: 12px; }

.nav-tabs {
  display: flex; gap: 4px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 10px; padding: 4px;
  transition: all 0.4s;
}
body.in-future .nav-tabs { opacity: 0.3; pointer-events: none; }

.nav-tab {
  padding: 7px 18px; border-radius: 7px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; border: none; background: none;
  transition: all 0.18s; font-family: 'DM Sans', sans-serif;
}
.nav-tab:hover { color: var(--text-secondary); }
.nav-tab.active {
  background: var(--bg2); color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.nav-divider { width: 1px; height: 22px; background: var(--border); }

.future-tab-btn {
  font-family: 'DM Serif Display', serif; font-size: 17px;
  letter-spacing: -0.3px; color: var(--text-secondary);
  cursor: pointer; border: none; background: none;
  padding: 4px 2px; transition: opacity 0.2s; white-space: nowrap;
}
.future-tab-btn:hover { opacity: 0.75; }
.future-tab-btn .future-F { font-size: 21px; color: var(--accent); font-style: italic; line-height: 1; vertical-align: baseline; }
.future-tab-btn .future-word { color: var(--accent); font-style: italic; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.sync-badge { font-size: 12px; color: var(--text-muted); font-family: 'DM Mono', monospace; }

.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg3);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.2s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--border-light); }

/* ── SHELL ── */
.shell {
  max-width: 980px; margin: 0 auto;
  padding: 0 32px 100px;
}

/* ── PANELS ── */
.panel { display: none; }
.panel.active { display: block; }

/* ── SHARED ── */
.slabel {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}

@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

/* ══════════════════════════════════════
   OVERVIEW
══════════════════════════════════════ */
#panel-overview { padding-top: 40px; }

.hero { margin-bottom: 8px; opacity: 0; animation: fadeUp 0.5s ease 0.1s forwards; }
.hero-label { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.hero-row { display: flex; align-items: baseline; gap: 20px; margin-bottom: 4px; }
.hero-amount { font-family: 'DM Serif Display', serif; font-size: clamp(52px,7vw,76px); letter-spacing: -0.03em; line-height: 1; }
.hero-growth { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--income); background: var(--equity-dim); padding: 3px 10px; border-radius: 6px; }
.hero-invested { font-size: 14px; color: var(--income); font-weight: 500; margin-top: 6px; }

.ov-comp-section { margin: 28px 0 32px; opacity: 0; animation: fadeUp 0.5s ease 0.2s forwards; }
.ov-slabel { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.ov-seg-label { font-size: 10px; font-weight: 600; overflow: hidden; white-space: nowrap; padding-right: 4px; }
.ov-comp-bar { height: 10px; border-radius: 999px; display: flex; gap: 2px; overflow: hidden; }
.ov-comp-seg { height: 100%; border-radius: 2px; transition: opacity 0.2s; }
.ov-comp-seg:hover { opacity: 0.75; }
.ov-seg-pct { font-size: 10px; color: var(--text-muted); font-family: 'DM Mono', monospace; overflow: hidden; padding-right: 4px; }

/* Bucket tiles */
.buckets { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 32px; opacity: 0; animation: fadeUp 0.5s ease 0.35s forwards; }
.bucket { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 22px 20px; position: relative; overflow: hidden; cursor: default; transition: border-color 0.2s, transform 0.2s; }
.bucket::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; border-radius:16px 16px 0 0; }
.bucket::after  { content:''; position:absolute; bottom:-28px; right:-28px; width:100px; height:100px; border-radius:50%; opacity:0.06; transition:opacity 0.3s; }
.bucket:hover { transform: translateY(-2px); border-color: var(--border-light); }
.bucket:hover::after { opacity: 0.12; }
.bucket.pretax::before  { background: var(--pretax); }
.bucket.taxable::before { background: var(--taxable); }
.bucket.taxfree::before { background: var(--taxfree); }
.bucket.pretax::after  { background: var(--pretax); }
.bucket.taxable::after { background: var(--taxable); }
.bucket.taxfree::after { background: var(--taxfree); }
.bucket-tag { display:inline-flex; align-items:center; gap:4px; font-size:10px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; padding:3px 10px; border-radius:100px; margin-bottom:14px; }
.pretax  .bucket-tag { background:var(--pretax-dim);  color:var(--pretax); }
.taxable .bucket-tag { background:var(--taxable-dim); color:var(--taxable); }
.taxfree .bucket-tag { background:var(--taxfree-dim); color:var(--taxfree); }
.bucket-amount { font-family:'DM Serif Display',serif; font-size:30px; letter-spacing:-0.025em; line-height:1; margin-bottom:14px; }
.bucket-accounts { display:flex; flex-direction:column; gap:6px; border-top:1px solid var(--border); padding-top:12px; position:relative; z-index:1; }
.acct-row { display:flex; justify-content:space-between; align-items:center; }
.acct-name { font-size:12px; color:var(--text-secondary); }
.acct-val  { font-family:'DM Mono',monospace; font-size:12px; }

/* FI section */
.ov-fi-section { background:var(--bg2); border:1px solid var(--border); border-radius:16px; padding:24px; margin-bottom:24px; opacity:0; animation:fadeUp 0.5s ease 0.5s forwards; }
.ov-fi-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.ov-fi-label { font-size:10px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); margin-bottom:6px; }
.ov-fi-story { font-family:'DM Serif Display',serif; font-size:18px; color:var(--text-primary); line-height:1.35; }
.ov-fi-story em { color:var(--accent); font-style:normal; }
.ov-fi-right { text-align:right; flex-shrink:0; }
.ov-fi-pct { font-family:'DM Serif Display',serif; font-size:32px; color:var(--accent); line-height:1; }
.ov-fi-pct-label { font-size:11px; color:var(--text-muted); margin-top:2px; }
.ov-fi-bar-wrap { position:relative; margin-bottom:22px; }
.ov-fi-bar-bg { height:8px; background:var(--bg3); border-radius:999px; overflow:hidden; }
.ov-fi-bar-fill { height:100%; background:linear-gradient(90deg,var(--accent) 0%,#E8B84B 100%); border-radius:999px; width:0%; transition:width 1s cubic-bezier(0.4,0,0.2,1) 0.8s; }
.ov-fi-marker { position:absolute; top:12px; transform:translateX(-100%); transition:left 1s cubic-bezier(0.4,0,0.2,1) 0.8s; text-align:right; }
.ov-fi-marker-label { font-size:10px; color:var(--accent); font-weight:600; font-family:'DM Mono',monospace; white-space:nowrap; }
.ov-fi-milestones { display:flex; justify-content:space-between; }
.ov-fi-milestone { font-size:10px; color:var(--text-muted); font-family:'DM Mono',monospace; }

/* Detail toggle */
.ov-detail-toggle { display:flex; align-items:center; gap:10px; margin-bottom:16px; opacity:0; animation:fadeUp 0.5s ease 0.6s forwards; }
.ov-toggle-btn { display:flex; align-items:center; gap:8px; background:none; border:1px solid var(--border); border-radius:8px; padding:8px 14px; font-size:12px; font-weight:500; color:var(--text-secondary); cursor:pointer; font-family:'DM Sans',sans-serif; transition:all 0.2s; }
.ov-toggle-btn:hover { border-color:var(--border-light); color:var(--text-primary); }
.ov-toggle-icon { transition:transform 0.3s; font-size:10px; }
.ov-toggle-btn.open .ov-toggle-icon { transform:rotate(180deg); }
.ov-detail-panel { overflow:hidden; max-height:0; transition:max-height 0.5s cubic-bezier(0.4,0,0.2,1); }
.ov-detail-panel.open { max-height:900px; }

/* Detail cards */
.ov-insight { background:var(--accent-light); border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:10px; padding:14px 18px; font-size:13px; color:var(--text-secondary); line-height:1.6; margin-bottom:14px; }
.ov-insight strong { color:var(--text-primary); font-weight:500; }
.ov-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.ov-detail-card { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:16px 18px; }
.ov-detail-title { font-size:10px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:var(--text-muted); margin-bottom:12px; }
.ov-detail-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid var(--border); font-size:12px; }
.ov-detail-row:last-child { border-bottom:none; }
.ov-dr-label { color:var(--text-secondary); }
.ov-dr-val { font-family:'DM Mono',monospace; font-size:12px; font-weight:500; color:var(--text-primary); }

/* ══════════════════════════════════════
   ACCOUNTS
══════════════════════════════════════ */
#panel-accounts { padding-top: 32px; }
.accounts-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.group-toggle { display:flex; gap:4px; background:var(--bg2); border:1px solid var(--border); border-radius:10px; padding:3px; }
.toggle-btn { padding:6px 14px; border-radius:8px; font-size:12px; font-weight:500; color:var(--text-muted); cursor:pointer; border:none; background:none; transition:all 0.15s; font-family:'DM Sans',sans-serif; }
.toggle-btn:hover { color:var(--text-secondary); }
.toggle-btn.active { background:var(--bg3); color:var(--text-primary); border:1px solid var(--border); }
.acct-group { margin-bottom:28px; }
.acct-group-label { font-size:10px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.acct-group-total { font-family:'DM Mono',monospace; font-size:11px; color:var(--text-secondary); margin-left:auto; }
.acct-list { display:flex; flex-direction:column; gap:8px; }
.acct-item { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:14px 18px; display:flex; align-items:center; gap:14px; transition:border-color 0.2s; cursor:default; }
.acct-item:hover { border-color:var(--border-light); }
.acct-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }
.acct-info { flex:1; min-width:0; }
.acct-item-name { font-size:13px; font-weight:500; color:var(--text-primary); margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acct-item-meta { font-size:11px; color:var(--text-muted); }
.acct-item-right { text-align:right; flex-shrink:0; }
.acct-item-bal { font-family:'DM Serif Display',serif; font-size:18px; letter-spacing:-0.02em; margin-bottom:2px; }
.acct-item-bal.negative { color:var(--expense); }
.sync-badge { font-size:10px; font-family:'DM Mono',monospace; padding:2px 7px; border-radius:4px; }
.sync-ok     { background:var(--equity-dim); color:var(--income); }
.sync-manual { background:var(--taxfree-dim); color:var(--accent); }
.nw-toggle   { font-size:10px; font-family:'DM Mono',monospace; padding:2px 7px; border-radius:4px; cursor:pointer; user-select:none; }
.nw-on       { background:rgba(52,211,153,0.1); color:var(--income); }
.nw-off      { background:rgba(158,152,144,0.12); color:var(--text-muted); }
.nw-excluded .acct-item-bal { opacity:0.4; }
.acct-item-right { display:flex; align-items:center; gap:6px; flex-shrink:0; }

/* ══════════════════════════════════════
   TRANSACTIONS
══════════════════════════════════════ */
#panel-transactions { padding-top: 32px; }
.tx-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:24px; }
.tx-stat { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:14px 16px; }
.tx-stat-label { font-size:10px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-muted); margin-bottom:6px; }
.tx-stat-val { font-family:'DM Serif Display',serif; font-size:22px; letter-spacing:-0.02em; }
.tx-stat-sub { font-size:10px; color:var(--text-muted); font-family:'DM Mono',monospace; margin-top:3px; line-height:1.4; }
.tx-flag { font-size:10px; color:var(--accent); background:var(--accent-light); padding:2px 7px; border-radius:4px; font-family:'DM Mono',monospace; margin-top:4px; display:inline-block; }
.tx-controls { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; gap:12px; flex-wrap:wrap; }
.tx-list { display:flex; flex-direction:column; gap:6px; }
.tx-item { background:var(--bg2); border:1px solid var(--border); border-radius:10px; padding:12px 16px; display:flex; align-items:center; gap:12px; transition:border-color 0.15s; }
.tx-item:hover { border-color:var(--border-light); }
.tx-cat-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.tx-info { flex:1; min-width:0; }
.tx-merchant { font-size:13px; font-weight:500; color:var(--text-primary); margin-bottom:2px; }
.tx-meta { font-size:11px; color:var(--text-muted); display:flex; gap:8px; align-items:center; }
.tx-cat-pill { font-size:10px; padding:1px 7px; border-radius:4px; background:var(--bg3); color:var(--text-muted); }
.tx-amount { font-family:'DM Mono',monospace; font-size:14px; font-weight:500; flex-shrink:0; }
.tx-amount.positive { color:var(--income); }
.tx-amount.negative { color:var(--text-secondary); }
.tx-group-header { font-size:10px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-muted); padding:16px 0 8px; display:flex; align-items:center; justify-content:space-between; }
.tx-group-total { font-family:'DM Mono',monospace; font-size:11px; }
.cat-filter { background:var(--bg2); border:1px solid var(--border); border-radius:8px; color:var(--text-secondary); font-size:12px; font-family:'DM Sans',sans-serif; padding:7px 12px; cursor:pointer; outline:none; }

/* ══════════════════════════════════════
   MY FUTURE
══════════════════════════════════════ */
#panel-future { padding-top: 32px; }
.return-present { display:inline-flex; align-items:center; gap:8px; font-size:12px; color:var(--text-muted); font-family:'DM Mono',monospace; letter-spacing:0.06em; cursor:pointer; margin-bottom:40px; transition:color 0.2s; text-transform:uppercase; }
.return-present:hover { color:var(--accent); }
.return-present::before { content:'←'; font-size:14px; }
.future-hero-section { margin-bottom:48px; }
.future-big-word { font-family:'DM Serif Display',serif; font-size:clamp(48px,8vw,80px); letter-spacing:-0.03em; line-height:1; margin-bottom:12px; }
.future-big-word .fbw-my     { color:var(--text-secondary); }
.future-big-word .fbw-future { color:var(--accent); }
.future-tagline { font-size:15px; color:var(--text-muted); line-height:1.7; max-width:580px; }
.future-tagline strong { color:var(--text-secondary); font-weight:500; }
.scenario-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.scenario-toggle { display:flex; gap:4px; background:var(--bg3); border:1px solid var(--border); border-radius:12px; padding:4px; }
.sc-btn { padding:8px 18px; border-radius:9px; font-size:13px; font-weight:500; color:var(--text-muted); cursor:pointer; border:none; background:none; font-family:'DM Sans',sans-serif; transition:all 0.2s; }
.sc-btn[data-sc="single"].active { background:var(--single-dim); color:var(--single); border:1px solid rgba(45,80,22,0.25); }
.sc-btn[data-sc="both"].active   { background:var(--accent-light); color:var(--accent); border:1px solid rgba(196,151,58,0.25); }
.sc-btn[data-sc="family"].active { background:var(--family-dim); color:var(--family); border:1px solid rgba(139,94,60,0.25); }
.fi-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:32px; }
.fi-card { background:var(--bg2); border:1px solid var(--border); border-radius:14px; padding:20px; position:relative; overflow:hidden; }
.fi-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; border-radius:14px 14px 0 0; }
.fi-card.single::before { background:var(--single); }
.fi-card.family::before { background:var(--family); }
.fi-card-label { font-size:10px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:12px; display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:100px; }
.fi-card.single .fi-card-label { background:var(--single-dim); color:var(--single); }
.fi-card.family .fi-card-label { background:var(--family-dim); color:var(--family); }
.fi-card-name { font-size:12px; color:var(--text-muted); margin-bottom:4px; }
.fi-card-val  { font-family:'DM Serif Display',serif; font-size:28px; letter-spacing:-0.025em; margin-bottom:3px; }
.fi-card-sub  { font-size:11px; color:var(--text-muted); font-family:'DM Mono',monospace; line-height:1.5; }
.timeline-section { background:var(--bg2); border:1px solid var(--border); border-radius:16px; padding:28px 28px 24px; margin-bottom:28px; }
.sliders-section { background:var(--bg2); border:1px solid var(--border); border-radius:16px; padding:24px 28px; margin-bottom:28px; }
.sliders-title { font-size:13px; color:var(--text-muted); margin-bottom:20px; }
.slider-row { display:grid; grid-template-columns:210px 1fr 90px; align-items:center; gap:16px; margin-bottom:14px; }
.sl-label { font-size:12px; color:var(--text-secondary); }
.sl-input { width:100%; accent-color:var(--accent); cursor:pointer; }
.sl-val { font-family:'DM Mono',monospace; font-size:12px; color:var(--accent); text-align:right; }
.goals-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:28px; }
.goal-card { background:var(--bg2); border:1px solid var(--border); border-radius:14px; padding:20px; position:relative; overflow:hidden; }
.goal-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; border-radius:14px 14px 0 0; }
.goal-near::before { background:var(--income); }
.goal-life::before { background:var(--accent); }
.goal-tag { font-size:10px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; padding:3px 10px; border-radius:100px; margin-bottom:12px; display:inline-block; }
.goal-near .goal-tag { background:var(--equity-dim); color:var(--income); }
.goal-life .goal-tag { background:var(--accent-light); color:var(--accent); }
.goal-name   { font-size:14px; font-weight:500; color:var(--text-primary); margin-bottom:4px; }
.goal-amount { font-family:'DM Serif Display',serif; font-size:26px; letter-spacing:-0.02em; margin-bottom:6px; }
.goal-meta   { font-size:12px; color:var(--text-muted); line-height:1.6; }
.goal-note   { font-size:10px; color:var(--accent); background:var(--accent-light); padding:2px 8px; border-radius:4px; font-family:'DM Mono',monospace; margin-top:6px; display:inline-block; }
.dream-section { background:var(--bg2); border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:14px; padding:24px 28px; }
.dream-title { font-size:13px; font-weight:500; color:var(--text-secondary); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.api-row { display:flex; gap:8px; margin-bottom:14px; }
.api-mini-input { flex:1; background:var(--bg3); border:1px solid var(--border); border-radius:8px; color:var(--text-secondary); font-family:'DM Mono',monospace; font-size:11px; padding:8px 12px; outline:none; transition:border-color 0.2s; }
.api-mini-input::placeholder { color:var(--text-muted); }
.api-mini-input:focus { border-color:var(--border-light); }
.api-mini-btn { background:var(--accent-light); border:1px solid var(--border); border-radius:8px; color:var(--accent); font-size:11px; padding:8px 14px; cursor:pointer; font-family:'DM Mono',monospace; white-space:nowrap; transition:all 0.2s; }
.dream-row { display:flex; gap:10px; margin-bottom:12px; }
.dream-input { flex:1; background:var(--bg3); border:1px solid var(--border); border-radius:10px; color:var(--text-primary); font-family:'DM Sans',sans-serif; font-size:13px; padding:10px 14px; outline:none; transition:border-color 0.2s; }
.dream-input:focus { border-color:var(--border-light); }
.dream-input::placeholder { color:var(--text-muted); }
.dream-input:disabled { opacity:0.4; }
.dream-btn { background:var(--accent-light); border:1px solid var(--border); border-radius:10px; color:var(--accent); font-size:13px; padding:10px 18px; cursor:pointer; font-family:'DM Sans',sans-serif; transition:all 0.2s; }
.dream-btn:disabled { opacity:0.4; cursor:not-allowed; }
.dream-result { font-size:13px; color:var(--text-secondary); line-height:1.7; background:var(--bg3); border-radius:10px; padding:14px 16px; display:none; }
.dream-result.visible { display:block; }
.dream-result strong { color:var(--text-primary); font-weight:500; }

@media(max-width:700px){
  .topbar{padding:16px 20px;}
  .shell{padding:0 16px 80px;}
  .buckets{grid-template-columns:1fr;}
  .tx-summary{grid-template-columns:1fr 1fr;}
  .fi-cards{grid-template-columns:1fr;}
  .goals-grid{grid-template-columns:1fr;}
  .slider-row{grid-template-columns:1fr;gap:6px;}
  .nav-tab{padding:8px 10px;font-size:12px;}
}
