/* NIVORA — theme v2 "Vault Green" (27 Nov 2026)
   Palette / type / spacing per files/theme-v2.md. No external fonts,
   no external assets, no network calls. */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #0E7C66;
  --primary-dark: #0B2E29;
  --primary-mid: #0F4038;
  --bg: #F6F8F7;
  --card: #FFFFFF;
  --ink: #1E2A26;
  --mut: #68756F;
  --faint: #9AA6A0;
  --line: #E7ECE9;
  --gain: #0E7C66;
  --gain-dark: #4ADE80;
  --gain-bg: #E6F4EE;
  --privacy-tx: #0B5C46;
  --loss: #E0533D;
  --loss-bg: #FDEEEC;
  --amber: #B7791F;
  --amber-bg: #FEF3C7;
  --violet: #6D5BD0;
  --violet-bg: #EFEDFB;
  --emerald: #2FA36B;
  --emerald-bg: #E3F2EB;
  --slate: #64748B;
  --slate-bg: #EEF1F4;
  --gold: #C08A00;
  --gold-bg: #FBF3DC;
  --cap-mid: #0E7C66;
  --cap-small: #7FD1B9;
  --hero-label: #A8CDC1;
  /* legacy aliases (v1 names) — all point at v2 tokens */
  --blue: #0E7C66;
  --blue-soft: #E6F4EE;
  --navy: #0B2E29;
  --navy-2: #0F4038;
  --green: #0E7C66;
  --green-bg: #E6F4EE;
  --purple: #6D5BD0;
  --teal: #2FA36B;
  --grey: #64748B;
  --red: #E0533D;
  --red-bg: #FDEEEC;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: #DFE6E1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.phone {
  max-width: 390px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding-bottom: 92px; /* room for bottom nav */
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
a { color: var(--primary); }

/* ---------- screens ---------- */
.screen { display: none; padding: 18px 16px 12px; }
.screen.active { display: block; }
.screen h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.sub { color: var(--mut); font-size: 14px; font-weight: 400; margin-top: 3px; line-height: 1.45; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--mut); text-transform: uppercase; margin: 24px 2px 10px;
}
.card {
  background: var(--card); border-radius: 20px;
  padding: 16px; margin-top: 16px;
  box-shadow: 0 1px 3px rgba(30, 42, 38, 0.06);
}
.card h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.card .card-sub { color: var(--mut); font-size: 13.5px; font-weight: 400; margin-top: 2px; }

/* ---------- home ---------- */
.wordmark { color: var(--primary); font-weight: 800; font-size: 14px; letter-spacing: 1.2px; }
.home-head { display: flex; justify-content: space-between; align-items: flex-start; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--primary);
  border: 1.5px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 700; flex: none;
}
.home-head h1 { font-size: 22px; font-weight: 700; margin-top: 6px; }
.home-head .sub { font-size: 14px; }

.networth {
  background: var(--primary-dark);
  border-radius: 20px; color: #fff; padding: 20px; margin-top: 16px;
}
.networth .nw-label { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: var(--hero-label); }
.networth .nw-total { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-top: 6px; }
.networth .nw-gain { color: var(--gain-dark); font-size: 13px; font-weight: 700; margin-top: 8px; }
.nw-today-pill {
  display: inline-block; background: var(--primary-mid); color: var(--gain-dark);
  border-radius: 12px; padding: 7px 12px; margin-top: 10px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.networth hr { border: none; border-top: 1px solid rgba(255,255,255,0.14); margin: 16px 0 13px; }
.nw-stats { display: flex; justify-content: space-between; }
.nw-stats .stat .k { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; color: var(--hero-label); }
.nw-stats .stat .v { font-size: 14px; font-weight: 700; margin-top: 3px; white-space: nowrap; }
.nw-stats .stat .v.pos { color: var(--gain-dark); }

.donut-wrap { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.donut { flex: none; }
.legend { flex: 1; min-width: 0; }
.legend-row { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; }
.legend-row .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 4px; }
.legend-row .name { flex: 1; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.legend-row .pct { font-weight: 700; white-space: nowrap; font-size: 12.5px; }
.legend-row .amt { color: var(--mut); font-size: 11px; font-weight: 400; display: block; margin-top: 1px; }

.activity-row {
  background: var(--card); border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px; margin-top: 6px;
  box-shadow: 0 1px 3px rgba(30, 42, 38, 0.05);
}
.activity-row .a-name { flex: 1; font-size: 14px; font-weight: 400; }
.activity-row .a-amt { font-weight: 700; font-size: 14px; white-space: nowrap; }
.activity-row .a-amt.pos { color: var(--gain); }
.activity-row .a-date { color: var(--mut); font-size: 13px; white-space: nowrap; }

/* privacy: a quiet wash row, never a banner pill */
.privacy-strip {
  background: var(--gain-bg); color: var(--privacy-tx);
  border-radius: 16px; padding: 14px 16px; margin-top: 24px;
  display: flex; align-items: flex-start; gap: 10px;
}
.privacy-strip svg { flex: none; margin-top: 1px; }
.privacy-strip .ps-title { font-size: 14px; font-weight: 700; line-height: 1.35; }
.privacy-strip .ps-sub { font-size: 13px; font-weight: 400; line-height: 1.4; margin-top: 2px; opacity: 0.85; }

/* ---------- import ---------- */
.steps { display: flex; margin-top: 20px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 10px; left: 12%; right: 12%;
  border-top: 1px solid var(--line);
}
.step { flex: 1; text-align: center; position: relative; }
.step:first-child { text-align: left; }
.step:last-child { text-align: right; }
.step .s-num {
  width: 20px; height: 20px; border-radius: 50%; margin: 0 auto;
  background: #fff; border: 1.5px solid var(--faint); color: var(--mut);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  position: relative; z-index: 1;
}
.step:first-child .s-num { margin-left: 0; }
.step:last-child .s-num { margin-right: 0; }
.step .s-label { font-size: 11px; font-weight: 700; color: var(--mut); margin-top: 6px; }
.step.done .s-num, .step.active .s-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.active .s-label { color: var(--primary); }

.promise {
  background: var(--gain-bg); border-radius: 16px; padding: 16px;
  display: flex; gap: 12px; align-items: flex-start; margin-top: 16px;
}
.promise svg { flex: none; margin-top: 2px; }
.promise .p-title { color: var(--privacy-tx); font-size: 16px; font-weight: 700; line-height: 1.3; }
.promise .p-sub { color: var(--privacy-tx); font-size: 13px; font-weight: 400; margin-top: 3px; line-height: 1.45; opacity: 0.85; }

.file-row {
  width: 100%; display: flex; align-items: center; gap: 13px;
  background: var(--card); border-radius: 16px; padding: 12px 16px;
  margin-top: 10px; text-align: left; min-height: 48px;
  box-shadow: 0 1px 3px rgba(30, 42, 38, 0.05);
}
.file-row:active { background: var(--gain-bg); }
.file-badge {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--gain-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
}
.file-row .f-name { font-size: 13.5px; font-weight: 700; }
.file-row .f-sub { color: var(--mut); font-size: 11px; font-weight: 400; margin-top: 2px; line-height: 1.35; }
.file-row .f-chev { margin-left: auto; color: var(--faint); font-size: 20px; font-weight: 700; }

.demo-box {
  background: var(--gain-bg); border-radius: 16px; padding: 16px;
  margin-top: 16px; display: flex; align-items: center; gap: 12px;
}
.demo-box .d-text { flex: 1; }
.demo-box .d-title { color: var(--privacy-tx); font-size: 15px; font-weight: 700; line-height: 1.3; }
.demo-box .d-sub { color: var(--mut); font-size: 13px; font-weight: 400; margin-top: 3px; }
.demo-box .btn-primary { border-radius: 999px; }
.csv-help {
  background: #FFF7ED; border: 1px solid #FDBA74; border-radius: 16px;
  padding: 16px; margin-top: 16px;
}
.csv-help .d-title { color: var(--privacy-tx); font-size: 15px; font-weight: 700; line-height: 1.3; }
.csv-help .d-sub { color: var(--mut); font-size: 13px; font-weight: 400; margin-top: 3px; }
.csv-help ol { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.csv-help ol li { margin-top: 6px; }
.pdf-err { color: var(--loss); font-size: 13.5px; font-weight: 700; margin-top: 8px; }
.pdf-show { display: block; margin: 8px 0 0 auto; background: none; border: none; color: var(--primary); font-size: 13.5px; font-weight: 700; padding: 6px 0; min-height: 32px; }
.pdf-note { color: var(--mut); font-size: 12.5px; margin-top: 10px; line-height: 1.45; }
.btn-primary {
  background: var(--primary); color: #fff; border-radius: 16px;
  padding: 12px 20px; font-size: 15px; font-weight: 700; white-space: nowrap;
  min-height: 44px;
}
.btn-primary:disabled { opacity: 0.55; }
.btn-primary.block { display: block; width: 100%; height: 52px; padding: 0 16px; font-size: 15px; border-radius: 16px; margin-top: 16px; }
.btn-ghost {
  display: block; width: 100%; text-align: center; color: var(--loss);
  font-size: 15px; font-weight: 700; padding: 14px 0 4px; min-height: 44px;
}
.result-card { display: none; }
.result-card.show { display: block; }
.result-head { display: flex; gap: 12px; align-items: flex-start; }
.result-head svg { flex: none; }
.result-head .r-title { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.result-head .r-sub { color: var(--mut); font-size: 13px; font-weight: 400; margin-top: 3px; }
.result-rows { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: 14px; gap: 10px; }
.result-row .rr-k { color: var(--mut); }
.result-row .rr-v { font-weight: 700; text-align: right; }
.result-row .rr-v.warn { color: var(--amber); }
.result-row .rr-v.clean { color: var(--gain); }
.result-note { color: var(--mut); font-size: 13px; font-weight: 400; line-height: 1.5; padding: 6px 0 2px; }
.review-list { margin-top: 6px; }
.review-line { font-size: 13px; color: var(--amber); background: var(--amber-bg); border-radius: 8px; padding: 8px 10px; margin-top: 6px; line-height: 1.4; }
.review-line.info { background: #EFF6FF; color: #1E40AF; }
.saved-note {
  display: none; margin-top: 12px; background: var(--gain-bg); color: var(--privacy-tx);
  border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 700; text-align: center;
}
.saved-note.show { display: block; }

/* ---------- holdings ---------- */
.search {
  width: 100%; border: none; outline: none; background: var(--card);
  border-radius: 18px; padding: 14px 18px; font-size: 13px; margin-top: 14px;
  box-shadow: 0 1px 3px rgba(30, 42, 38, 0.05); color: var(--ink);
}
.search::placeholder { color: var(--faint); }
.chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: var(--ink);
  min-height: 28px;
}
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.sort-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.sort-btn {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 9px 16px; font-size: 12px; font-weight: 700; min-height: 44px;
}
.sort-hint { color: var(--mut); font-size: 13px; }
.group-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--mut); text-transform: uppercase; margin: 20px 2px 0;
}
.holding {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--card); border-radius: 14px; padding: 6px 16px 6px 12px; margin-top: 8px;
  min-height: 48px;
  box-shadow: 0 1px 3px rgba(30, 42, 38, 0.05);
}
.holding:active { background: var(--gain-bg); }
/* monogram tile: the visual anchor on every holding row */
.mono {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2px;
}
.mono-stock { background: var(--gain-bg); color: var(--primary); }
.mono-mf { background: var(--violet-bg); color: var(--violet); }
.mono-epf { background: var(--emerald-bg); color: var(--emerald); }
.mono-fd { background: var(--slate-bg); color: var(--slate); }
.mono-gold { background: var(--gold-bg); color: var(--gold); }
.holding .h-name { flex: 1; min-width: 0; }
.holding .h-name .t { font-size: 13px; font-weight: 700; line-height: 1.25; }
.holding .h-name .s { color: var(--mut); font-size: 11px; font-weight: 400; margin-top: 2px; }
.holding .h-val { text-align: right; flex: none; }
.holding .h-val .v { font-size: 13px; font-weight: 700; }
.holding .h-val .g { font-size: 11.5px; font-weight: 700; color: var(--gain); margin-top: 2px; }
.holding .h-val .g.neg { color: var(--loss); }
.holding.more-row { background: var(--gain-bg); color: var(--primary); font-weight: 700; font-size: 14px; justify-content: space-between; padding: 6px 16px; }
.holding.more-row .m-val { font-weight: 700; }
.epf-grid { display: flex; margin-top: 8px; background: var(--card); border-radius: 14px; padding: 16px 6px; box-shadow: 0 1px 3px rgba(30, 42, 38, 0.05); }
.epf-cell { flex: 1; text-align: center; }
.epf-cell + .epf-cell { border-left: 1px solid var(--line); }
.epf-cell .k { color: var(--mut); font-size: 12.5px; }
.epf-cell .v { font-weight: 700; font-size: 16px; margin-top: 4px; }
.empty-note { text-align: center; color: var(--mut); font-size: 14px; padding: 26px 10px; line-height: 1.5; }

/* detail sheet */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(11, 46, 41, 0.45);
  display: none; z-index: 40; align-items: flex-end; justify-content: center;
}
.sheet-backdrop.show { display: flex; }
.sheet {
  width: min(390px, 100%); background: #fff; border-radius: 22px 22px 0 0;
  padding: 10px 20px 26px; max-height: 82vh; overflow-y: auto;
}
.sheet .grab { width: 42px; height: 5px; border-radius: 99px; background: var(--line); margin: 4px auto 14px; }
.sheet h2 { font-size: 20px; font-weight: 700; }
.sheet .sheet-sub { color: var(--mut); font-size: 13px; font-weight: 400; margin-top: 3px; }
.detail-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-row .dk { color: var(--mut); }
.detail-row .dv { font-weight: 700; text-align: right; }
.detail-row .dv.pos { color: var(--gain); }
.detail-row .dv.neg { color: var(--loss); }
.sheet-close { display: block; width: 100%; margin-top: 16px; background: var(--gain-bg); color: var(--primary); font-weight: 700; font-size: 15px; border-radius: 12px; padding: 13px; min-height: 44px; }

/* ---------- allocation ---------- */
.strip4 { display: flex; background: var(--card); border-radius: 16px; padding: 16px 4px; margin-top: 14px; box-shadow: 0 1px 3px rgba(30, 42, 38, 0.05); }
.strip4 .cell { flex: 1; text-align: center; padding: 0 4px; }
.strip4 .cell + .cell { border-left: 1px solid var(--line); }
.strip4 .k { color: var(--mut); font-size: 13px; }
.strip4 .v { font-weight: 700; font-size: 15px; margin-top: 4px; white-space: nowrap; }
.strip4 .p { color: var(--mut); font-size: 12px; margin-top: 2px; }
/* full-width segmented allocation bar (no gaps between segments) */
.seg-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 12px; background: var(--line); }
.seg-bar .seg { height: 100%; }
.seg-equity { background: var(--primary); }
.seg-debt { background: var(--slate); }
.seg-gold { background: var(--gold); }
.bar-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.bar-row .b-label { flex: none; width: 128px; }
.bar-row .b-label .pct { color: var(--mut); }
.bar-track { flex: 1; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; }
.bar-row .b-val { flex: none; font-weight: 700; font-size: 14px; text-align: right; min-width: 86px; }
.bar-row.top5 .b-label { width: 150px; }
.bar-row.top5 .b-val { min-width: 52px; }
.conclusion { color: var(--gain); font-size: 14px; font-weight: 600; margin-top: 14px; line-height: 1.45; }

/* ---------- more / add asset + privacy ---------- */
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.field-label { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: var(--mut); text-transform: uppercase; margin: 18px 0 8px; }
.text-input {
  width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 16px; font-size: 14px; background: #fff; outline: none; color: var(--ink);
}
.text-input:focus { border-color: var(--primary); }
.date-save-row { display: flex; gap: 10px; align-items: stretch; }
.date-save-row .text-input { flex: 1; min-width: 0; }
.date-save-row .btn-primary { flex: 1; border-radius: 999px; }
.manual-list { margin-top: 6px; }
.manual-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 2px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.manual-item:last-child { border-bottom: none; }
.manual-item .m-name { flex: 1; }
.manual-item .m-name .s { color: var(--mut); font-size: 12.5px; margin-top: 1px; }
.manual-item .m-val { font-weight: 700; }
.manual-del { color: var(--loss); font-weight: 800; font-size: 16px; padding: 6px 8px; min-width: 44px; min-height: 44px; }

.privacy-big { display: flex; gap: 12px; align-items: flex-start; }
.privacy-big svg { flex: none; }
.privacy-big .pb-title { color: var(--privacy-tx); font-size: 17px; font-weight: 700; line-height: 1.25; }
.privacy-big .pb-sub { color: var(--mut); font-size: 11.5px; font-weight: 400; margin-top: 3px; }
.privacy-rows { margin-top: 12px; border-top: 1px solid var(--line); }
.privacy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-height: 44px; }
.privacy-row:last-child { border-bottom: none; }
.privacy-row .pr-k { color: var(--ink); }
.privacy-row .pr-v { font-weight: 700; text-align: right; font-size: 12.5px; }
.privacy-row .pr-v.green { color: var(--gain); }
.privacy-row button.pr-v { color: var(--gain); }
.toggle {
  width: 40px; height: 24px; border-radius: 99px; background: #CBD5E1;
  position: relative; flex: none; transition: background 0.15s;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: left 0.15s;
}
.toggle.on { background: var(--primary); }
.toggle.on::after { left: 19px; }
.btn-soft {
  display: block; width: 100%; background: var(--gain-bg); color: var(--privacy-tx);
  font-weight: 700; font-size: 15px; border-radius: 14px; padding: 15px; margin-top: 12px; min-height: 52px;
}
.btn-danger {
  display: block; width: 100%; background: var(--loss-bg); color: var(--loss);
  font-weight: 700; font-size: 15px; border-radius: 14px; padding: 15px; margin-top: 10px; min-height: 52px;
}
.fineprint { color: var(--mut); font-size: 13px; line-height: 1.55; text-align: center; margin-top: 12px; }
.honest-note { color: var(--mut); font-size: 12.5px; line-height: 1.5; margin-top: 10px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(390px, 100%); background: #fff;
  border-top: 1px solid var(--line);
  display: flex; min-height: 64px; padding: 8px 4px calc(10px + env(safe-area-inset-bottom));
  z-index: 30;
}
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--faint); font-size: 10px; font-weight: 600; padding: 2px 0; min-height: 44px; }
.nav-btn svg { width: 24px; height: 24px; }
.nav-btn.on { color: var(--primary); font-weight: 700; }

/* toast */
.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(20px);
  width: min(360px, calc(100% - 32px)); background: var(--primary-dark); color: #fff;
  border-radius: 12px; padding: 13px 16px; font-size: 14px; font-weight: 600;
  text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  z-index: 60; line-height: 1.4;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hidden-input { display: none; }

/* ---------- import v2: single option + states (mockup v2) ---------- */
/* Tap-to-reveal hint line under the hero total: small, muted. */
.networth .nw-total-full { color: var(--hero-label); font-size: 12px; font-weight: 500; margin-top: 2px; }
/* Tap-to-reveal numbers: pointer cursor; the toggle is JS (see tapNum). */
.tap-num { cursor: pointer; }
.drop-zone {
  border: 2px dashed var(--faint); border-radius: 16px; background: var(--card);
  padding: 22px 16px 18px; text-align: center; margin-top: 16px; cursor: pointer;
}
.drop-zone.drag { border-color: var(--primary); background: var(--gain-bg); }
.drop-zone:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.drop-zone .dz-title { font-size: 16px; font-weight: 700; }
.drop-zone .dz-sub { color: var(--mut); font-size: 13px; margin-top: 4px; }
.drop-zone .btn-primary { margin-top: 14px; border-radius: 999px; padding: 0 22px; height: 44px; }
.drop-zone .dz-formats { color: var(--mut); font-size: 12px; margin-top: 12px; }
.import-explain { text-align: center; color: var(--mut); font-size: 12.5px; font-weight: 600; margin-top: 12px; }
.file-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
}
.fc-badge {
  background: var(--slate-bg); color: var(--slate); font-size: 11px; font-weight: 800;
  border-radius: 6px; padding: 4px 8px; letter-spacing: 0.5px;
}
.fc-name { font-size: 14px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); width: 100%; }
.fc-sub { color: var(--mut); font-size: 12.5px; width: 100%; }
.fc-progress { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.fc-bar { display: block; height: 100%; width: 40%; border-radius: 2px; background: var(--primary); animation: fc-slide 1.1s ease-in-out infinite alternate; }
@keyframes fc-slide { from { margin-left: 0; } to { margin-left: 60%; } }
.fc-note { color: var(--mut); font-size: 12px; width: 100%; }
.spinner {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.detect-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--gain-bg); border-radius: 14px; padding: 14px 16px; margin-top: 16px;
}
.detect-banner svg { flex: none; margin-top: 1px; }
.detect-banner .db-title { color: var(--privacy-tx); font-size: 15px; font-weight: 700; line-height: 1.3; }
.detect-banner .db-sub { color: var(--mut); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.import-error { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; margin-top: 16px; }
.import-error .ie-title { font-size: 17px; font-weight: 800; line-height: 1.3; }
.import-error .ie-reason { color: var(--mut); font-size: 13.5px; line-height: 1.5; margin-top: 6px; }
.import-error .ie-accept { margin-top: 14px; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.import-error .ie-accept-k { font-weight: 700; }
.import-error .ie-saved { color: var(--mut); font-size: 13px; margin-top: 12px; }
.import-error .ie-demo-link {
  display: block; margin: 10px auto 0; background: none; border: none;
  color: var(--primary); font-size: 14px; font-weight: 700; cursor: pointer; padding: 10px;
}
.import-error .ie-help { color: var(--mut); font-size: 12.5px; line-height: 1.5; margin-top: 10px; text-align: center; }
.guide-list { margin-top: 4px; }
.guide-row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
.guide-row .g-name { display: block; font-size: 14px; font-weight: 700; }
.guide-row .g-sub { display: block; color: var(--mut); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.last-import-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-top: 16px; font-size: 13.5px;
}
.last-import-row .li-k { color: var(--mut); }
.last-import-row .li-v { font-weight: 700; text-align: right; }
.after-confirm-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.after-confirm-card .ac-title { font-size: 14px; font-weight: 700; }
.after-confirm-card .ac-note { color: var(--mut); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.import-footer { text-align: center; color: var(--mut); font-size: 12.5px; margin-top: 16px; line-height: 1.5; }
/* Add Asset: live easy-number conversion inside the same box. */
.value-wrap { position: relative; }
.value-wrap .text-input { padding-right: 110px; }
.value-easy {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--primary); font-size: 14px; font-weight: 800; white-space: nowrap; pointer-events: none;
}
