/* ============================================================
   CRE Tax & Insurance Escrow Manager
   Shared stylesheet — portfolio demo by Geetanjali
   ============================================================ */

:root {
  --bg: #0f1419;
  --bg-soft: #161d26;
  --panel: #1b2430;
  --panel-2: #212c3a;
  --border: #2c3a4d;
  --border-soft: #243040;
  --text: #e6edf3;
  --text-dim: #9fb0c3;
  --text-faint: #6b7d91;
  --accent: #4aa8ff;
  --accent-2: #2d7dd2;
  --green: #3ecf8e;
  --green-dim: #1f7a52;
  --amber: #f0b429;
  --red: #ff6b6b;
  --red-dim: #7a2c2c;
  --purple: #b78cff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Roboto Mono", monospace;
}

* { box-sizing: border-box; }

html { height: 100%; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* sticky footer: shell + main + footer stack full height */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; width: 100%; }
footer.site { flex-shrink: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.4em; font-weight: 650; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.9em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 22px;
  min-height: 60px;            /* stable header height even if the brand lockup grows */
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  white-space: nowrap;
}
/* Two-line brand lockup: title over subtitle, tightly stacked and vertically
   centred, so it can never crowd or spill into the process-nav below. */
.brand .brand-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.18;
}
.brand .logo {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 8px;
  font-size: 16px;
  flex: none;
}
.brand small { display:block; font-weight:500; font-size:.68rem; line-height:1.2; margin-top:1px; color:var(--text-faint); letter-spacing:.04em; }
.topbar-spacer { flex: 1; }
.demo-pill {
  font-size: .74rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.demo-pill.active { color: var(--green); border-color: var(--green-dim); }

/* ---------- Process nav ---------- */
.processnav {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.processnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 18px;
  min-width: max-content;
}
.stepnav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: .86rem;
  font-weight: 550;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s, color .15s;
}
.stepnav:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.stepnav.active { background: var(--panel-2); color: var(--text); border-color: var(--border); }
.stepnav .num {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 999px;
  background: var(--border);
  color: var(--text-dim);
  font-size: .72rem; font-weight: 700;
  flex: none;
}
.stepnav.active .num { background: var(--accent); color: #04121f; }
.stepnav .arrow { color: var(--text-faint); margin: 0 -2px; }

/* ---------- Layout ---------- */
main { padding: 28px 0 70px; }
.page-head { margin-bottom: 22px; }
.page-head .kicker {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 6px;
}
.page-head p.lead { color: var(--text-dim); max-width: 70ch; margin: 0; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card.pad-lg { padding: 24px 26px; }
.card h2, .card h3 { margin-top: 0; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.card-head h2, .card-head h3 { margin: 0; }

/* ---------- Stat tiles ---------- */
.stat {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat .label { font-size: .78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 1.55rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .8rem; color: var(--text-dim); margin-top: 2px; }
.stat .value.green { color: var(--green); }
.stat .value.amber { color: var(--amber); }
.stat .value.red { color: var(--red); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .73rem; font-weight: 650;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid transparent;
}
.badge.green { background: rgba(62,207,142,.12); color: var(--green); border-color: var(--green-dim); }
.badge.amber { background: rgba(240,180,41,.12); color: var(--amber); border-color: rgba(240,180,41,.3); }
.badge.red { background: rgba(255,107,107,.12); color: var(--red); border-color: var(--red-dim); }
.badge.blue { background: rgba(74,168,255,.12); color: var(--accent); border-color: rgba(74,168,255,.3); }
.badge.gray { background: rgba(159,176,195,.1); color: var(--text-dim); border-color: var(--border); }

/* ---------- Tables ---------- */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
table.data th {
  text-align: left;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-faint);
  font-weight: 650;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
table.data td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--panel-2); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .9rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #28384b; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #04121f; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 11px; font-size: .82rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- AI panel ---------- */
.ai-panel {
  border: 1px solid rgba(183,140,255,.35);
  background: linear-gradient(180deg, rgba(183,140,255,.07), rgba(183,140,255,.02));
  border-radius: var(--radius);
  padding: 16px 18px;
}
.ai-panel .ai-head {
  display: flex; align-items: center; gap: 9px;
  font-weight: 650; color: var(--purple); margin-bottom: 4px;
}
.ai-panel .ai-head .spark { font-size: 16px; }
.ai-output { font-size: .92rem; color: var(--text); }
.ai-output ul { margin: .4em 0 .4em; padding-left: 1.1em; }
.ai-output li { margin: .25em 0; }
.ai-output .flag { color: var(--red); font-weight: 600; }
.ai-output .ok { color: var(--green); font-weight: 600; }
.ai-thinking { color: var(--text-dim); font-style: italic; }
.dot-flash::after { content: "…"; animation: dots 1.2s steps(4,end) infinite; }
@keyframes dots { 0%,20%{content:"";} 40%{content:".";} 60%{content:"..";} 80%,100%{content:"...";} }

/* ---------- Misc ---------- */
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 22px; }
.hr { height: 1px; background: var(--border-soft); border: none; margin: 18px 0; }
.pos { color: var(--green); }
.neg { color: var(--red); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 10px 0; border-bottom: 1px solid var(--border-soft);
}
.checklist li:last-child { border-bottom: none; }
.checklist .mark {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px;
}
.checklist .mark.done { background: rgba(62,207,142,.15); color: var(--green); }
.checklist .mark.todo { background: rgba(240,180,41,.15); color: var(--amber); }
.checklist .mark.miss { background: rgba(255,107,107,.15); color: var(--red); }
.checklist .ck-body small { color: var(--text-faint); display:block; }

.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel-2);
  margin-bottom: 10px;
}
.alert .ic { font-size: 17px; line-height: 1.4; flex: none; }
.alert.warn { border-color: rgba(240,180,41,.35); background: rgba(240,180,41,.06); }
.alert.danger { border-color: var(--red-dim); background: rgba(255,107,107,.06); }
.alert.ok { border-color: var(--green-dim); background: rgba(62,207,142,.06); }
.alert .a-title { font-weight: 650; }
.alert .a-body { font-size: .87rem; color: var(--text-dim); }

.banner-demo {
  background: linear-gradient(90deg, rgba(74,168,255,.12), rgba(183,140,255,.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.banner-demo .bd-text { flex: 1; min-width: 240px; }
.banner-demo .bd-text b { color: var(--text); }

/* ---------- Forms ---------- */
label.field { display: block; margin-bottom: 14px; }
label.field .lab { font-size: .82rem; color: var(--text-dim); margin-bottom: 5px; display: block; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; font: inherit;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-faint);
  font-size: .82rem;
  padding: 22px 0 36px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
footer.site a { color: var(--text-dim); }

.disclaimer {
  font-size: .78rem; color: var(--text-faint);
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; margin-top: 26px;
}

/* progress meter */
.meter { height: 8px; background: var(--border-soft); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); }

/* ---------- Landing hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 30px 0 14px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40px -200px auto -200px;
  height: 320px;
  background: radial-gradient(60% 120% at 30% 0%, rgba(74,168,255,.16), transparent 60%),
             radial-gradient(50% 120% at 80% 10%, rgba(183,140,255,.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-copy .badge { margin-bottom: 14px; }
.hero-copy h2 {
  font-size: 2.05rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  background: linear-gradient(180deg, #fff, #b9c8da);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p { font-size: 1.02rem; max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; }
.hero-cta .btn { padding: 11px 20px; font-size: .95rem; }
.hero-meta { font-size: .85rem; }

.hero-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.hero-card .hc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--border-soft);
}
.hero-card .hc-row span { color: var(--text-dim); font-size: .9rem; }
.hero-card .hc-row b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hero-card .hc-bar { height: 7px; background: var(--border-soft); border-radius: 999px; overflow: hidden; margin: 16px 0 18px; }
.hero-card .hc-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); }
.hero-card .hc-flags { display: flex; flex-direction: column; gap: 9px; }
.hero-card .hc-flag {
  font-size: .82rem; font-weight: 550;
  padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--border);
}
.hero-card .hc-flag.red { color: var(--red); border-color: var(--red-dim); background: rgba(255,107,107,.07); }
.hero-card .hc-flag.amber { color: var(--amber); border-color: rgba(240,180,41,.3); background: rgba(240,180,41,.06); }

.section-title {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700;
  margin: 38px 0 16px;
}

/* ---------- Feature cards ---------- */
.features { gap: 16px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 18px;
  color: var(--text);
  transition: transform .12s, border-color .12s, background .12s;
}
.feature:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--accent-2);
  background: var(--panel-2);
}
.feature-ic {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  font-size: 20px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(74,168,255,.18), rgba(183,140,255,.18));
  border: 1px solid var(--border);
}
.feature-body h4 { margin: 2px 0 5px; font-size: 1rem; }
.feature-body p { font-size: .87rem; line-height: 1.45; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .hero-copy h2 { font-size: 1.7rem; }
}

/* ---------- Inner-page empty state ---------- */
.empty-state {
  min-height: 56vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
}
.empty-state::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 70%;
  background: radial-gradient(50% 80% at 50% 0%, rgba(74,168,255,.10), transparent 70%);
  pointer-events: none;
}
.empty-state .es-inner { max-width: 480px; position: relative; }
.empty-state .es-ic {
  width: 66px; height: 66px; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(74,168,255,.18), rgba(183,140,255,.18));
  border: 1px solid var(--border);
}
.empty-state h2 { font-size: 1.5rem; margin: 0 0 8px; }
.empty-state p { color: var(--text-dim); margin: 0 0 20px; }

/* ---------- Document upload ---------- */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover { border-color: var(--accent-2); }
.dropzone.drag { border-color: var(--accent); background: rgba(74,168,255,.08); }
.dropzone .dz-ic { font-size: 30px; margin-bottom: 8px; }
.dropzone small { display: block; margin-top: 6px; }
.link { color: var(--accent); cursor: pointer; text-decoration: underline; }

.filelist { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.fileitem {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 9px 12px;
}
.fileitem .fi-ic { font-size: 18px; }
.fileitem .fi-body { flex: 1; min-width: 0; }
.fileitem .fi-body b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fileitem .fi-x {
  background: transparent; border: none; color: var(--text-faint);
  cursor: pointer; font-size: 14px; padding: 4px 6px; border-radius: 6px;
}
.fileitem .fi-x:hover { color: var(--red); background: rgba(255,107,107,.1); }

/* ---------- Busy overlay + toast ---------- */
.busy-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,12,17,.66); backdrop-filter: blur(3px);
  display: grid; place-items: center;
}
.busy-box {
  display: flex; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow);
}
.busy-spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin .8s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  z-index: 210; max-width: 90vw;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 18px; box-shadow: var(--shadow);
  font-size: .9rem; opacity: 0; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: var(--green-dim); }
.toast.err { border-color: var(--red-dim); color: var(--red); }

/* ---------- Extraction review modal ---------- */
.modal-ov {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(8,12,17,.72); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow);
  width: min(680px, 96vw); max-height: 88vh; overflow-y: auto;
  padding: 22px 26px;
}
.modal h2 { margin-top: 0; }
.modal h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); margin: 20px 0 8px;
}
.modal .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.modal .frow.w3 { grid-template-columns: 1.2fr 1fr 1fr; }
.modal label.mf { display: block; }
.modal label.mf .lab { display: block; font-size: .76rem; color: var(--text-faint); margin-bottom: 3px; }
.modal input { padding: 7px 10px; font-size: .9rem; }
.modal .m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- Document staging tray ---------- */
/* Scoped to .doc-tray so these never collide with the document list further down. */
.doc-tray .doc-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; max-height: 46vh; overflow-y: auto; }
.doc-tray .doc-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--panel-2); border: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.doc-tray .doc-item .doc-ic { flex: none; width: auto; margin-top: 0; }
.doc-tray .doc-item .doc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; font-size: .9rem; }
.doc-tray .doc-item .doc-size { flex: none; font-size: .78rem; font-variant-numeric: tabular-nums; }
.doc-tray .doc-item .doc-tag { flex: none; font-size: .66rem; font-weight: 650; letter-spacing: .02em; color: var(--accent); border: 1px solid rgba(74,168,255,.3); background: rgba(74,168,255,.1); border-radius: 999px; padding: 2px 8px; }
.doc-tray .doc-item .doc-x { flex: none; background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: .95rem; line-height: 1; padding: 4px 7px; border-radius: 6px; }
.doc-tray .doc-item .doc-x:hover { background: var(--red-dim); color: var(--red); }
.doc-empty { padding: 22px; text-align: center; }
.doc-tray .m-actions { flex-wrap: wrap; }
.doc-tray .m-actions [data-tray-cancel] { margin-right: auto; }

/* ---------- Inline edit inputs (tables) ---------- */
td input.cell-edit {
  width: 110px; padding: 5px 8px; font-size: .88rem;
  font-family: var(--mono); text-align: right;
  background: var(--bg-soft); border: 1px solid var(--accent-2); border-radius: 6px; color: var(--text);
}

/* ---------- Clickable checklist ---------- */
.checklist li.clickable { cursor: pointer; border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.checklist li.clickable:hover { background: var(--panel-2); }

/* ---------- Print (statements & file printouts) ---------- */
@media print {
  body { background: #fff !important; color: #111 !important; display: block; }
  .topbar, .processnav, footer.site, .btn, .ai-panel, .banner-demo,
  .disclaimer, .toast, .busy-overlay, .tour-block, .tour-spot, .tour-tip { display: none !important; }
  main { padding: 0; }
  .card, .stat {
    background: #fff !important; border: 1px solid #bbb !important;
    color: #111 !important; break-inside: avoid; box-shadow: none !important;
  }
  .card h2, .card h3, .stat .value, td, th, p, .muted, .faint, .sub, .label { color: #111 !important; }
  table.data th { background: #f0f0f0 !important; }
  table.data td { border-color: #ddd !important; }
  .badge { border: 1px solid #999 !important; color: #111 !important; background: #fff !important; }
  .page-head .kicker { color: #444 !important; }
  h1 { color: #000 !important; }
  a { color: #111 !important; text-decoration: none; }
}

/* ---------- Guided tour ---------- */
.tour-block { position: fixed; inset: 0; z-index: 299; }
.tour-block.solid { background: rgba(8,12,17,.74); }
.tour-spot {
  position: fixed; z-index: 300; border-radius: 10px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 9999px rgba(8,12,17,.74), 0 0 0 4px rgba(74,168,255,.35);
  pointer-events: none;
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
.tour-tip {
  position: fixed; z-index: 301; width: 330px; max-width: 92vw;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow);
}
.tour-tip .tt-step {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.tour-tip h4 { margin: .25em 0 .45em; font-size: 1.08rem; }
.tour-tip p { margin: 0 0 14px; color: var(--text-dim); font-size: .9rem; line-height: 1.5; }
.tour-tip .tt-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Charts (inline SVG) ----------
   Text inside a chart wears TEXT tokens, never the series colour — identity
   comes from the coloured mark beside it. */
.chart { display: block; width: 100%; height: auto; margin: 14px 0 10px; overflow: visible; }
.ct-tick { fill: var(--text-faint); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.ct-cat  { fill: var(--text-dim);   font-size: 12.5px; font-family: var(--font); font-weight: 550; }
.ct-val  { fill: var(--text);       font-size: 12.5px; font-family: var(--font); font-weight: 650; font-variant-numeric: tabular-nums; }
.ct-label{ fill: var(--text);       font-size: 12px; font-family: var(--font); font-weight: 650; }
.ct-note { fill: var(--text-faint); font-size: 11px; font-family: var(--font); }
.ct-band, .ct-row { cursor: default; }
.ct-row:hover rect[fill="transparent"] { fill: rgba(255,255,255,.03); }
.ct-tip {
  position: fixed; z-index: 300; pointer-events: none;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 8px 11px; font-size: .8rem; line-height: 1.5; color: var(--text);
  max-width: 260px;
}
.ct-tip b { display: block; margin-bottom: 2px; }
.ct-tip span { display: block; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* ---------- Required documents list ---------- */
.doc-list { margin-top: 4px; }
.doc-item {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 12px 0; border-bottom: 1px solid var(--border-soft);
}
.doc-item:last-child { border-bottom: none; }
.doc-ic {
  font-size: 19px; width: 30px; text-align: center; flex: none; margin-top: 1px;
}
.doc-body { flex: 1; min-width: 0; }
.doc-body small { display: block; color: var(--text-faint); margin-top: 3px; line-height: 1.45; }
.doc-item .badge { margin-left: 8px; vertical-align: middle; }
@media (max-width: 620px) {
  .doc-item > .badge.nowrap { display: none; }
}

