@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg: #f0f2f6;
  --card: #ffffff;
  --border: #d8dde8;
  --blue: #4a7fc1;
  --blue-dark: #2d5a94;
  --blue-light: #e8f0fb;
  --blue-mid: #5b8fd4;
  --text: #1a1d23;
  --text2: #5a6270;
  --text3: #8a909c;
  --nav-bg: #1a2035;
  --nav-text: #7a8aaa;
  --nav-active: #5b9ae0;
  --header: #1a2035;
  --green: #2e7d52;
  --red: #b83232;
  --red-light: #fce8e8;
  --amber: #b06020;
  --font: 'DM Sans', sans-serif;
  --font2: 'Space Grotesk', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

.dark {
  --bg: #0f1117;
  --card: #1a2035;
  --border: #2a3250;
  --blue: #5b8fd4;
  --blue-dark: #7aaae0;
  --blue-light: #1a2a45;
  --blue-mid: #4a7fc1;
  --text: #eef0f6;
  --text2: #9aa5c0;
  --text3: #5a6a88;
  --nav-bg: #0d0f18;
  --nav-text: #5a6a88;
  --nav-active: #7aaae0;
  --header: #0d0f18;
  --green: #3aad6e;
  --red: #e05555;
  --red-light: #3a2024;
  --amber: #d4882a;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  margin: 0;
  padding: 0;
}
html { background: var(--bg); }
body { background: var(--bg); }
html:has(#s-auth.active) { background: var(--nav-bg); }

/* ── App shell: full screen, no scroll, no zoom ── */
.app-shell {
  width: 100vw;
  height: 100dvh;
  height: var(--app-height, 100dvh);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}


/* ── Status bar ── */
.status-bar {
  display: none;
}

/* ── Screens ── */
.screen { display: none; flex-direction: column; flex: 1; overflow: hidden; min-height: 0; }
.screen.active {
  display: flex;
  animation: screenFadeIn .28s ease;
}
@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Header ── */
.hdr {
  background: var(--nav-bg);
  padding: 12px 18px 16px;
  padding-top: max(12px, env(safe-area-inset-top, 12px));
  color: #fff;
  flex-shrink: 0;
}
.hdr-row { display: flex; align-items: center; justify-content: space-between; }
.hdr-title { font-size: 16px; font-weight: 500; font-family: var(--font2); }
.hdr-sub { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.hdr-balance { font-size: 30px; font-weight: 600; font-family: var(--font2); letter-spacing: -0.5px; margin: 4px 0 2px; }
.hdr-period { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.stat-cell { background: rgba(255,255,255,0.07); border-radius: 8px; padding: 7px 6px; text-align: center; }
.stat-val { font-size: 13px; font-weight: 500; color: #fff; }
.stat-lbl { font-size: 9px; color: rgba(255,255,255,0.45); margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }

/* Home: header sits on light background instead of navy. */
#s-home .hdr { background: var(--bg); color: var(--text); }
#s-home .hdr-sub { color: var(--text2); }
#s-home .hdr-period { color: var(--text2); }
#s-home .hdr-balance { color: var(--text); }
#s-home .stat-cell { background: var(--card); border: 0.5px solid var(--border); }
#s-home .stat-val { color: var(--text); }
#s-home .stat-lbl { color: var(--text3); }

/* Every other .hdr-using screen: same light-header treatment as Home. #s-auth keeps its own separate navy header block (not a .hdr) and is intentionally untouched. */
#s-budget .hdr,
#s-plan .hdr,
#s-reports .hdr,
#s-advisor .hdr,
#s-settings .hdr,
#s-notif .hdr,
#s-account .hdr,
#s-transactions .hdr {
  background: var(--bg);
  color: var(--text);
}
#s-settings .back-btn,
#s-notif .back-btn,
#s-account .back-btn,
#s-transactions .back-btn {
  color: var(--text2);
}

/* ── Scrollable body ── */
.scr-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}
.scr-body::-webkit-scrollbar { display: none; }


/* ── Sections ── */
.sec { padding: 15px 14px 0; }
.sec-title {
  font-size: 10px; font-weight: 500; color: var(--text3);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 9px;
  font-family: var(--font2);
}

/* ── Collapsible sections ── */
.sec-header {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none; margin-bottom: 9px;
  background: var(--card); border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
  transition: border-radius .25s ease;
}
.sec-header.expanded {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  margin-bottom: 0;
}
.sec-header .sec-title { margin-bottom: 0; flex-shrink: 0; }
.sec-summary {
  font-size: 11px; font-weight: 500; color: var(--text);
  font-family: var(--font2); flex: 1; text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .2s ease;
}
.sec-header.expanded .sec-summary { opacity: 0; pointer-events: none; width: 0; flex: 0; }
.sec-add {
  flex-shrink: 0; opacity: 1;
  transition: opacity .2s ease, transform .2s ease;
}
.sec-header:not(.expanded) .sec-chev {
  opacity: 0; pointer-events: none;
}

/* ── Plan cards: header + body + totals as one unit ── */
.plan-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.plan-card .sec-header {
  background: none; border: none; box-shadow: none;
  border-radius: 0; margin-bottom: 0; padding: 12px;
}
.plan-card .sec-header.expanded {
  border-radius: 0;
  border-bottom: 0.5px solid var(--border);
}
.plan-card .sec-body { margin-top: 0 !important; }
.plan-card .sec-body .card {
  background: none; border: none; border-radius: 0; margin-bottom: 0;
}
.plan-card .sec-body .card > div:last-child { border-bottom: none !important; }
.plan-card .sec-totals {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-top: 0.5px solid var(--border);
  font-size: 11px; font-weight: 500; color: var(--text);
}
.sec-chev {
  flex-shrink: 0; font-size: 10px; color: var(--text3);
  transition: transform .25s ease, opacity .2s ease; display: inline-block;
}
.sec-header.expanded .sec-chev { transform: rotate(180deg); }
.sec-body {
  overflow: hidden;
  max-height: 1000px;
  opacity: 1;
  transition: max-height .35s ease, opacity .25s ease, margin-top .35s ease;
}
.sec-body.collapsed {
  max-height: 0;
  opacity: 0;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  padding: 12px;
  margin-bottom: 8px;
}
.g2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 8px; }
.mini { background: var(--card); border-radius: 10px; border: 0.5px solid var(--border); padding: 10px 12px; }
.mini .ml { font-size: 10px; color: var(--text3); margin-bottom: 4px; }
.mini .mv { font-size: 16px; font-weight: 500; color: var(--text); font-family: var(--font2); }
.mini .ms { font-size: 10px; margin-top: 3px; }

/* ── Transactions ── */
.txn { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 0.5px solid var(--border); }
.txn:last-child { border: none; }
.t-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.t-name { font-size: 13px; font-weight: 500; color: var(--text); }
.t-cat { font-size: 10px; color: var(--text3); margin-top: 1px; }
.t-amt { font-size: 13px; font-weight: 500; font-family: var(--font2); }

/* ── Progress bars ── */
.pb-wrap { margin-bottom: 10px; }
.pb-wrap:last-child { margin-bottom: 0; }
.pb-top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
.pb-name { font-weight: 500; color: var(--text); }
.pb-pct { color: var(--text3); font-family: var(--font2); }
.pb-track { background: var(--bg); border-radius: 99px; height: 6px; overflow: hidden; }
.pb-fill { height: 100%; border-radius: 99px; transition: width .4s ease; }
.pb-bot { display: flex; justify-content: space-between; font-size: 10px; color: var(--text3); margin-top: 3px; }

/* ── Colors ── */
.g { color: var(--green); }
.r { color: var(--red); }
.b { color: var(--blue); }
.amb { color: var(--amber); }

/* ── Nav (floating pill) ── */
.nav {
  background: var(--bg);
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  height: calc(45px + 8px + max(20px, env(safe-area-inset-bottom, 20px)));
  padding: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  width: 100%;
}
.ni {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end;
  gap: 3px; cursor: pointer; font-size: 9px; color: var(--nav-text);
  border: none; background: none;
  padding: 0 0 calc(max(20px, env(safe-area-inset-bottom, 20px)) + 8px);
  transition: color .2s ease; font-family: var(--font);
  text-transform: uppercase; letter-spacing: .04em;
}
.ni i {
  font-size: 18px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.ni.active { color: var(--nav-active); }
.ni.active i { background: var(--nav-active); color: var(--nav-bg); }
.ni:active i { transform: scale(0.9); }

/* ── Settings rows ── */
.srow { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 0.5px solid var(--border); }
.srow:last-child { border: none; }
.srow-l { display: flex; align-items: center; gap: 10px; }
.s-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--blue); flex-shrink: 0; }
.s-title { font-size: 13px; font-weight: 500; color: var(--text); }
.s-sub { font-size: 10px; color: var(--text3); margin-top: 1px; }

/* ── Toggle ── */
.tog { width: 36px; height: 20px; border-radius: 99px; background: var(--blue); display: flex; align-items: center; padding: 2px; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.tog-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; margin-left: auto; transition: margin .2s; }
.tog.off { background: var(--border); }
.tog.off .tog-thumb { margin-left: 0; }

/* ── Auth ── */
.auth-body { flex: 1; overflow-y: auto; padding: 24px 20px; background: var(--bg); -webkit-overflow-scrolling: touch; }
.auth-card { background: var(--card); border-radius: var(--radius); border: 0.5px solid var(--border); padding: 20px; margin-bottom: 12px; }
.auth-card h2 { font-size: 16px; font-weight: 500; margin-bottom: 16px; font-family: var(--font2); }
.field { margin-bottom: 12px; }
.field label { font-size: 11px; color: var(--text3); display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select {
  width: 100%; background: var(--bg); border: 0.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 16px;
  color: var(--text); outline: none; font-family: var(--font);
  transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--blue); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 40px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--text3); cursor: pointer; line-height: 1;
}
.btn-primary {
  width: 100%; background: var(--blue); border: none; border-radius: var(--radius-sm);
  padding: 12px; font-size: 14px; font-weight: 500; color: #fff; cursor: pointer;
  font-family: var(--font2); letter-spacing: .02em; transition: opacity .2s;
}
.btn-primary:active { opacity: .85; }
.btn-outline {
  width: 100%; background: transparent; border: 0.5px solid var(--blue);
  border-radius: var(--radius-sm); padding: 11px; font-size: 14px; font-weight: 500;
  color: var(--blue); cursor: pointer; font-family: var(--font2);
}
.btn-danger {
  width: 100%; background: transparent; border: 0.5px solid var(--red);
  border-radius: var(--radius-sm); padding: 10px; font-size: 13px;
  color: var(--red); cursor: pointer; font-family: var(--font);
}
.auth-switch { text-align: center; font-size: 12px; color: var(--text3); margin-top: 12px; }
.auth-switch span { color: var(--blue); cursor: pointer; }
.bio-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--blue-light); border-radius: var(--radius-sm); margin: 10px 0; border: 0.5px solid var(--border); }
.bio-row i { font-size: 20px; color: var(--blue); }
.bio-text { font-size: 12px; color: var(--text); }
.auth-note { text-align: center; font-size: 10px; color: var(--text3); margin-top: 10px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 0.5px; background: var(--border); }
.btn-google {
  width: 100%; background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer;
  font-family: var(--font2); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-google:active { opacity: .85; }
.btn-google i { font-size: 16px; color: #4285F4; }

/* ── Notif items ── */
.notif { display: flex; gap: 10px; padding: 10px; background: var(--blue-light); border-radius: 10px; margin-bottom: 8px; }
.notif-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-body { font-size: 12px; color: var(--text); line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--text3); margin-top: 3px; }

/* ── AI block ── */
.ai-block { background: var(--header); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
.ai-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-badge { background: rgba(91,143,212,0.3); border-radius: 20px; padding: 2px 10px; font-size: 10px; color: #7aaae0; font-family: var(--font2); }
.ai-msg { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.ai-btn { margin-top: 10px; background: rgba(255,255,255,0.1); border: none; border-radius: 7px; color: #fff; padding: 6px 14px; font-size: 12px; cursor: pointer; font-family: var(--font); }

/* ── Pill ── */
.pill { background: var(--blue-light); color: var(--blue-dark); border-radius: 20px; padding: 3px 10px; font-size: 10px; font-family: var(--font2); }

/* ── Back button ── */
.back-btn { background: none; border: none; color: rgba(255,255,255,0.8); cursor: pointer; font-size: 20px; padding: 0; display: flex; align-items: center; margin-right: 6px; }

/* ── Net worth rows ── */
.nw-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 0.5px solid var(--border); }
.nw-row:last-child { border: none; }
.nw-lbl { font-size: 12px; color: var(--text3); }
.nw-val { font-size: 13px; font-weight: 500; font-family: var(--font2); }

/* ── Trend bars ── */
.trend-wrap { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin: 8px 0 4px; }
.tb { flex: 1; border-radius: 3px 3px 0 0; min-height: 4px; background: var(--blue); }
.trend-lbls { display: flex; gap: 5px; }
.tl { flex: 1; font-size: 9px; color: var(--text3); text-align: center; font-family: var(--font2); }

/* ── Cat rows ── */
.cat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cat-row:last-child { margin-bottom: 0; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-lbl { flex: 1; font-size: 12px; color: var(--text); }
.cat-bar { width: 80px; height: 5px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.cat-fill { height: 100%; border-radius: 99px; }
.cat-amt { font-size: 11px; font-weight: 500; color: var(--text3); width: 40px; text-align: right; font-family: var(--font2); }

/* ── Badge dot ── */
.badge { width: 8px; height: 8px; background: var(--red); border-radius: 50%; position: absolute; top: -1px; right: -1px; }

/* ── User avatar ── */
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: #fff; cursor: pointer; font-family: var(--font2); flex-shrink: 0; }

/* ── Toast ── */
#toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: var(--nav-bg); color: #fff; padding: 10px 20px;
  border-radius: 20px; font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity .3s; z-index: 9999; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#toast.show { opacity: 1; }

/* ── Update banner ── */
#updateBanner {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 500; text-align: center;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top, 10px));
  cursor: pointer; z-index: 10000;
  transform: translateY(-100%); transition: transform .3s ease;
}
#updateBanner.show { transform: translateY(0); }

/* ── Onboarding Tour ── */
#zellTourOverlay { transition: none; }
#zellTourSpot    { transition: left .32s ease, top .32s ease, width .32s ease, height .32s ease; }
#zellTourTip     { animation: tourFadeIn .22s ease; }
@keyframes tourFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ── Modal overlay ── */
.modal-bg {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: flex-end; z-index: 100;
  opacity: 1; visibility: visible;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-bg.hidden {
  display: flex !important;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.hidden { display: none !important; }
.modal {
  width: 100%; background: var(--card); border-radius: 20px 20px 0 0;
  padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: min(85vh, calc(var(--app-height, 100vh) - 24px)); overflow-y: auto;
  transform: translateY(60px);
  transition: transform .3s cubic-bezier(.32,.72,.35,1);
}
.modal-bg.hidden .modal { transform: translateY(60px); }
.modal-bg:not(.hidden) .modal { transform: translateY(0); }
.modal h3 { font-size: 15px; font-weight: 500; margin-bottom: 16px; font-family: var(--font2); color: var(--text); }
.modal-close { float: right; background: none; border: none; font-size: 20px; color: var(--text3); cursor: pointer; }

/* ── Loading ── */
#loading {
  position: fixed; inset: 0; width: 100%;
  height: 100vh; height: var(--app-height, 100vh);
  background: #1a2035; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; z-index: 9999; transition: opacity .4s;
}

#loading .logo span { color: #5b8fd4; }
#loading .spinner { width: 24px; height: 24px; border: 2px solid rgba(255,255,255,0.2); border-top-color: #5b8fd4; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── App Lock overlay ── */
#lockOverlay {
  position: fixed; inset: 0; width: 100%;
  height: 100vh; height: var(--app-height, 100vh);
  background: #1a2035; display: flex; align-items: center; justify-content: center;
  flex-direction: column; padding: 24px; z-index: 10000;
}

/* ── Report tab buttons ── */
.rb-btn { flex:1; padding:6px; border-radius:8px; border:0.5px solid var(--border); background:var(--bg); color:var(--text3); font-size:12px; cursor:pointer; font-family:var(--font); transition:all .2s; }
.active-rb { background:var(--blue) !important; color:#fff !important; border-color:var(--blue) !important; }

/* ── Budget wizard ── */
.bchip {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 16px; text-align: left; font-size: 13px; color: var(--text);
  cursor: pointer; font-family: var(--font); width: 100%; margin-bottom: 8px;
  transition: all .15s; display: block;
}
.bchip.selected {
  background: var(--blue-light); border-color: var(--blue);
  color: var(--blue-dark); font-weight: 500;
}
.bchip:active { opacity: .85; }
.budget-wizard-body {
  display: flex; flex-direction: column; height: 100%;
  padding: 16px 20px 24px;
}
.budget-splash {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1; text-align: center; padding: 40px 28px;
}
/* ── Custom-budget sliders ──
   The track is styled explicitly rather than left to accent-color: WebKit picks
   the unfilled-track tone by contrast against the accent, so a light category
   colour rendered a near-black track while the darker ones stayed grey. Every
   slider now gets the same var(--border) track; --tc (set inline per category)
   colours only the thumb, so all three read as one control in both themes. */
.brange {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: none; cursor: pointer;
}
.brange:focus { outline: none; }
.brange::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px; background: var(--border);
}
.brange::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--tc, var(--blue));
  border: 2px solid var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  margin-top: -6px; /* centres the 18px thumb on the 6px track */
}
.brange::-moz-range-track {
  height: 6px; border-radius: 99px; background: var(--border);
}
.brange::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--card);
  background: var(--tc, var(--blue)); box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
/* Typed % beside each slider — reads as the old static label, not a form field */
.pctin {
  width: 34px; padding: 1px 1px 1px 3px; border: none; outline: none;
  background: none; border-radius: var(--radius-sm);
  font-family: var(--font2); font-size: 14px; font-weight: 700;
  text-align: right; color: inherit;
}
.pctin:focus { background: var(--bg); box-shadow: 0 0 0 1.5px var(--blue); }

/* ── Insight rows ── */
.ins-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 0.5px solid var(--border); }
.ins-row:last-child { border: none; }
.ins-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.ins-text { font-size: 12px; color: var(--text); line-height: 1.4; }
.ins-text strong { font-weight: 500; }
