/* ═══════════════════════════════════════════════════════════════
   CTB Realty — Portal (mobile-first SPA)
   Inherits tokens from welcome.css
   ═══════════════════════════════════════════════════════════════ */

/* ── PORTAL SHELL ── */
.portal {
  display: none;
  background: var(--bone);
  min-height: 100vh;
  flex-direction: column;
  position: relative;
}
.portal.live { display: flex; }

/* Hide welcome when portal lives */
body.portal-mode .welcome { display: none; }
body.portal-mode { overflow-y: auto; }

/* ── TOP BAR ── */
.p-topbar {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--hair);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  transition: background .3s ease, border-color .3s ease;
}
.p-topbar-l {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0;
}
.p-mark {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.p-mark em { color: var(--gold); font-style: normal; font-size: 1.2em; line-height: 0; }
.p-title {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--slate);
  font-weight: 400;
  letter-spacing: -.005em;
  line-height: 1.2;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--hair);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-topbar-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.p-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background .2s;
  position: relative;
}
.p-icon-btn:hover, .p-icon-btn:active { background: var(--bone-mute); }
.p-icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.p-icon-btn .dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--terra);
  border: 1.5px solid var(--bone);
}
.p-agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  transition: all .2s;
}
.p-agent-chip:hover { background: var(--white); border-color: var(--hair-strong); }
.p-agent-chip-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #6B4E10 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: 12px;
}
.p-agent-chip-name { display: none; font-size: 12px; font-weight: 500; color: var(--ink); }
.p-agent-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #15be53;
  margin-right: 6px;
}

/* ── CONTENT ── */
.p-main {
  flex: 1;
  padding: 22px 18px calc(92px + env(safe-area-inset-bottom, 0)) 18px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.p-view { display: none; animation: viewIn .35s var(--ease-out); }
.p-view.live { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.p-view-head { margin-bottom: 22px; }
.p-view-eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.p-view-title {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
}
.p-view-sub {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
  margin-top: 8px;
  max-width: 56ch;
}

/* ── CARDS ── */
.p-card {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(10,22,40,.03);
}
.p-card-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
}
.p-divider { height: 1px; background: var(--hair); margin: 14px 0; }

.p-grid { display: grid; gap: 12px; }

/* ── BOTTOM TAB BAR (primary nav on mobile) ── */
.p-tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--hair);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0));
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  transition: background .3s ease, border-color .3s ease;
}
.p-tab {
  flex: 1;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--muted);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  transition: color .2s;
}
.p-tab:hover { color: var(--slate); }
.p-tab.live { color: var(--gold); }
.p-tab svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.p-tab.live .p-tab-pill {
  position: absolute;
  top: 4px;
  width: 24px; height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.p-tab-badge {
  position: absolute;
  top: 6px; right: 50%;
  margin-right: -18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  min-width: 14px;
  text-align: center;
  line-height: 1.3;
}

/* ── DRAWER (full menu / secondary nav) ── */
.p-drawer-bg {
  position: fixed; inset: 0;
  background: rgba(10,22,40,.45);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.p-drawer-bg.live { opacity: 1; pointer-events: auto; }
.p-drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: min(86vw, 320px);
  z-index: 75;
  background: var(--fixed-dark);
  color: var(--fixed-light);
  padding: 28px 22px;
  transform: translateX(-100%);
  transition: transform .35s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.p-drawer.live { transform: translateX(0); }
.p-drawer-head { margin-bottom: 28px; }
.p-drawer-mark {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--fixed-light);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.p-drawer-mark em { color: var(--gold-soft); font-style: normal; font-size: 1.2em; line-height: 0; }
.p-drawer-sub {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,241,232,.4);
  margin-top: 6px;
}
.p-drawer-agent {
  margin-bottom: 24px;
  padding: 14px;
  background: rgba(184,149,72,.08);
  border: 1px solid rgba(184,149,72,.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.p-drawer-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #6B4E10 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--white);
  flex-shrink: 0;
}
.p-drawer-an { flex: 1; min-width: 0; }
.p-drawer-aname { font-size: 13px; font-weight: 500; color: var(--fixed-light); }
.p-drawer-arole { font-size: 10px; color: var(--gold-soft); letter-spacing: .04em; margin-top: 1px; }
.p-drawer-sec {
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,241,232,.36);
  font-weight: 600;
  margin: 18px 0 6px;
}
.p-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(245,241,232,.78);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.p-drawer-item:hover, .p-drawer-item.live {
  background: rgba(184,149,72,.1);
  color: var(--gold-soft);
}
.p-drawer-item svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 1.5; fill: none;
}
.p-drawer-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(245,241,232,.08);
}
.p-drawer-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(245,241,232,.5);
  cursor: pointer;
}
.tog {
  width: 32px; height: 18px;
  background: rgba(245,241,232,.15);
  border-radius: 10px;
  position: relative;
  transition: background .2s;
}
.tog.on { background: var(--gold); }
.tog::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--fixed-light);
  transition: transform .2s;
}
.tog.on::after { transform: translateX(14px); }
.p-drawer-back-to-welcome {
  margin-top: 16px;
  padding: 11px 14px;
  width: 100%;
  border-radius: 8px;
  background: rgba(245,241,232,.05);
  color: rgba(245,241,232,.55);
  font-size: 12px;
  text-align: center;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.p-drawer-back-to-welcome:hover { background: rgba(184,149,72,.12); color: var(--gold-soft); }

/* ── BADGES ── */
.b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  line-height: 1.2;
}
.b-gold { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(184,149,72,.28); }
.b-jade { background: rgba(45,125,111,.1); color: var(--jade); border: 1px solid rgba(45,125,111,.22); }
.b-terra { background: rgba(196,103,74,.1); color: var(--terra); border: 1px solid rgba(196,103,74,.22); }
.b-mute { background: var(--bone-mute); color: var(--slate); border: 1px solid var(--hair); }
.b-green { background: rgba(21,190,83,.1); color: #108c3d; border: 1px solid rgba(21,190,83,.22); }

/* ──────────────── ACCOUNT ──────────────── */
.acc-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.acc-hero {
  background: linear-gradient(135deg, var(--fixed-dark) 0%, var(--fixed-dark-2) 100%);
  border-radius: 16px;
  padding: 24px 22px;
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.acc-hero::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(184,149,72,.18), transparent 65%);
  pointer-events: none;
}
.acc-hero-row { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.acc-av {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #6B4E10 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--white);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
  flex-shrink: 0;
}
.acc-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -.01em;
  line-height: 1.15;
}
.acc-status { font-size: 11.5px; color: rgba(245,241,232,.6); margin-top: 4px; }
.acc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; position: relative; z-index: 1; }
.acc-tags .b-gold { background: rgba(184,149,72,.16); border-color: rgba(184,149,72,.4); color: var(--gold-soft); }
.acc-tags .b-jade { background: rgba(45,125,111,.18); border-color: rgba(45,125,111,.4); color: #6FBAA8; }
.acc-tags .b-terra { background: rgba(196,103,74,.18); border-color: rgba(196,103,74,.4); color: #E5917A; }

/* ── Passport hero expand button (Stripe style — white chip on dark card) ── */
.acc-hero-expand {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(83,58,253,.22);
  color: #533afd;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  z-index: 2;
  padding: 0;
}
.acc-hero-expand:hover {
  background: #fff;
  border-color: rgba(83,58,253,.45);
  color: #4434d4;
}

/* ── Passport expand sheet ── */
.passport-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.passport-sheet.open {
  pointer-events: all;
  opacity: 1;
}
.passport-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,.44);
  backdrop-filter: blur(4px);
}
.passport-sheet-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 44px;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .44s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
.passport-sheet.open .passport-sheet-panel {
  transform: translateY(0);
}
@media (min-width: 720px) {
  .passport-sheet-panel {
    bottom: auto; left: 50%; right: auto;
    top: 50%;
    transform: translate(-50%, calc(-50% + 28px));
    width: 440px;
    border-radius: 16px;
    max-height: 82vh;
    transition: transform .36s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .passport-sheet.open .passport-sheet-panel {
    transform: translate(-50%, -50%);
  }
}
.passport-sheet-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(83,58,253,.35);
  background: var(--surface);
  color: var(--slate);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
}
.passport-sheet-close:hover { background: var(--hair); color: var(--ink); }

.psh-hero-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
  padding-right: 44px;
}
.psh-hero-row .acc-av {
  width: 44px; height: 44px; font-size: 18px;
  box-shadow: none;
}
.psh-hero-row .acc-name { color: var(--ink); font-size: 15px; }
.psh-status { font-size: 11px; font-weight: 300; color: var(--slate); margin-top: 3px; }
.psh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0; }

.psh-desc {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 20px;
}

.psh-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 24px;
}
.psh-actions .btn-primary { justify-content: center; width: 100%; }
.btn-outline {
  display: flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px;
  border-radius: 9999px;
  border: 1px solid rgba(83,58,253,.3);
  background: transparent;
  color: #533afd;
  font-size: 14px; font-weight: 400;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  width: 100%;
}
.btn-outline:hover { background: rgba(83,58,253,.05); border-color: rgba(83,58,253,.5); }

.psh-bullets {
  list-style: none;
  display: flex; flex-direction: column; gap: 13px;
  padding: 0; margin: 0;
}
.psh-bullets li {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
  padding-left: 30px;
  position: relative;
}
.psh-bullets li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: rgba(83,58,253,.1);
  border-radius: 50%;
  color: #533afd;
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.acc-budget {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 22px;
}
.acc-budget-val {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-top: 4px;
}
.acc-budget-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--jade);
  font-weight: 500;
}
.acc-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}
.acc-stack-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
}
.acc-stack-row:last-child { border-bottom: 0; }
.acc-stack-row .l { color: var(--slate); }
.acc-stack-row .v { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-stack-row .v.terra { color: var(--terra); }

.acc-form {
  display: flex; flex-direction: column;
  gap: 14px;
}
.acc-form-row { display: flex; flex-direction: column; gap: 5px; }
.acc-form-lbl { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
.acc-form-inp {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: all .2s;
}
.acc-form-inp:focus { outline: none; background: var(--white); border-color: var(--gold); }
.acc-form-row.duo { flex-direction: row; gap: 10px; }
.acc-form-row.duo > div { flex: 1; }

.btn-primary {
  background: var(--ink);
  color: var(--bone);
  font-weight: 500;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
  letter-spacing: -.005em;
}
.btn-primary:hover, .btn-primary:active { background: var(--gold); color: var(--ink); }
.btn-secondary {
  background: var(--bone-mute);
  color: var(--ink);
  border: 1px solid var(--hair);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  transition: all .2s;
}
.btn-secondary:hover { background: var(--white); border-color: var(--hair-strong); }

.milestones {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ms-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.ms-row:last-child { border-bottom: 0; }
.ms-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  background: var(--bone-mute);
  color: var(--slate);
  border: 1px solid var(--hair);
}
.ms-row.done .ms-mark {
  background: var(--jade);
  color: var(--white);
  border-color: var(--jade);
}
.ms-row.up .ms-mark {
  background: var(--gold-glow);
  color: var(--gold);
  border-color: rgba(184,149,72,.4);
}
.ms-body { flex: 1; min-width: 0; }
.ms-t { font-size: 13px; color: var(--ink); font-weight: 500; }
.ms-d { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ──────────────── PIPELINE ──────────────── */
.pipe-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.pipe-sum-cell {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  transition: all .2s;
}
.pipe-sum-cell.live {
  background: var(--ink);
  border-color: var(--ink);
}
.pipe-sum-cell.live .pipe-sum-lbl { color: var(--gold-soft); }
.pipe-sum-cell.live .pipe-sum-n { color: var(--bone); }
.pipe-sum-cell.live .pipe-sum-sub { color: rgba(245,241,232,.5); }
.pipe-sum-lbl {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.pipe-sum-n {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.pipe-sum-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.3;
}

.pipe-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.pipe-filters::-webkit-scrollbar { display: none; }
.pf-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--hair);
  color: var(--slate);
  white-space: nowrap;
  transition: all .2s;
}
.pf-chip.on { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.pf-chip:hover { border-color: var(--hair-strong); }

.pipe-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pc {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all .25s var(--ease-out);
  box-shadow: 0 1px 2px rgba(10,22,40,.03);
}
.pc:hover { box-shadow: 0 12px 32px -12px rgba(10,22,40,.12); transform: translateY(-1px); }
.pc.pc-featured { border-color: rgba(184,149,72,.4); box-shadow: 0 0 0 1px rgba(184,149,72,.18), 0 12px 32px -12px rgba(184,149,72,.18); }
.pc-thumb {
  height: 100px;
  background: linear-gradient(135deg, var(--fixed-dark), var(--fixed-dark-2));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
}
.pc-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(184,149,72,.35), transparent 65%);
}
.pc-thumb.jade { background: linear-gradient(135deg, var(--jade), #0F3A33); }
.pc-thumb.gold { background: linear-gradient(135deg, #5C4A1F, #2A1F08); }
.pc-thumb.plum { background: linear-gradient(135deg, #2B1E5C, #110A2E); }
.pc-stage {
  position: relative; z-index: 1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(10,22,40,.55);
  backdrop-filter: blur(8px);
  color: var(--gold-soft);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(184,149,72,.25);
}
.pc-score {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--bone);
  background: rgba(10,22,40,.45);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(245,241,232,.18);
}
.pc-body { padding: 16px 18px; }
.pc-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
}
.pc-meta { font-size: 11.5px; color: var(--slate); margin-top: 3px; }
.pc-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.pc-metric {
  background: var(--bone);
  border-radius: 10px;
  padding: 10px 11px;
}
.pc-metric-l {
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pc-metric-v {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.pc-metric-v.jade { color: var(--jade); }
.pc-metric-v.terra { color: var(--terra); }
.pc-mom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 11px;
  background: var(--bone);
  border-radius: 10px;
}
.pc-mom-bar { flex: 1; height: 3px; background: var(--hair-strong); border-radius: 2px; overflow: hidden; }
.pc-mom-fill { height: 100%; border-radius: 2px; }
.pc-mom.up .pc-mom-fill { background: var(--jade); }
.pc-mom.dn .pc-mom-fill { background: var(--terra); }
.pc-mom-l { font-size: 11px; font-weight: 600; }
.pc-mom.up .pc-mom-l { color: var(--jade); }
.pc-mom.dn .pc-mom-l { color: var(--terra); }
.pc-note {
  margin-top: 12px;
  padding: 12px 13px;
  background: var(--gold-glow);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
}
.pc-note-h {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.pc-note-h .a {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #6B4E10);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
  font-family: var(--serif);
}
.pc-note-t { font-size: 12px; color: var(--ink); line-height: 1.55; }

/* Stage info pinned inline */
.pc-stage-info {
  margin-top: 12px;
  background: rgba(45,125,111,.06);
  border: 1px solid rgba(45,125,111,.22);
  border-radius: 10px;
  padding: 11px 12px;
}
.pc-stage-info.neg { background: rgba(196,103,74,.06); border-color: rgba(196,103,74,.22); }
.pc-stage-info.disc { background: var(--gold-glow); border-color: rgba(184,149,72,.25); }
.pc-stage-info-h {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 7px;
}
.pc-stage-info.neg .pc-stage-info-h { color: var(--terra); }
.pc-stage-info.disc .pc-stage-info-h { color: var(--gold); }
.pc-stage-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 3px;
}
.pc-stage-info-row .k { color: var(--slate); }
.pc-stage-info-row .v { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ──────────────── DOSSIER ──────────────── */
.dos-hero {
  background: linear-gradient(135deg, var(--fixed-dark) 0%, var(--fixed-dark-2) 100%);
  border-radius: 16px;
  padding: 24px 22px 22px;
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.dos-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(184,149,72,.2), transparent 65%);
  pointer-events: none;
}
.dos-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,241,232,.6);
  margin-bottom: 16px;
  position: relative; z-index: 1;
  cursor: pointer;
}
.dos-hero-back:hover { color: var(--gold-soft); }
.dos-hero-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -.015em;
  line-height: 1.1;
  position: relative; z-index: 1;
}
.dos-hero-sub {
  font-size: 12px;
  color: rgba(245,241,232,.6);
  margin-top: 6px;
  position: relative; z-index: 1;
  line-height: 1.5;
}
.dos-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  position: relative; z-index: 1;
}
.dos-hero-tags .b { background: rgba(184,149,72,.18); border-color: rgba(184,149,72,.38); color: var(--gold-soft); }
.dos-hero-tags .b.b-jade { background: rgba(45,125,111,.2); border-color: rgba(45,125,111,.4); color: #6FBAA8; }
.dos-hero-tags .b.b-glass { background: rgba(245,241,232,.1); border-color: rgba(245,241,232,.18); color: rgba(245,241,232,.78); }

.dos-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
}
.dos-stat {
  background: var(--white);
  padding: 14px 14px;
}
.dos-stat-l {
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.dos-stat-v {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.dos-stat-v.terra { color: var(--terra); }
.dos-stat-d { font-size: 11px; margin-top: 3px; font-weight: 600; }
.dos-stat-d.up { color: var(--jade); }
.dos-stat-d.dn { color: var(--terra); }
.dos-stat-d.flat { color: var(--slate); font-weight: 500; }

.dos-tabs {
  display: flex;
  margin-top: 22px;
  border-bottom: 1px solid var(--hair);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.dos-tabs::-webkit-scrollbar { display: none; }
.dos-tab {
  flex: 1;
  min-width: 110px;
  padding: 12px 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate);
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  text-align: center;
}
.dos-tab.live { color: var(--gold); border-bottom-color: var(--gold); }

.dos-panel { display: none; padding-top: 20px; }
.dos-panel.live { display: block; }

.cost-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
}
.cost-row:last-child { border-bottom: 0; }
.cost-row .l { color: var(--slate); }
.cost-row .v { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.cost-row .v.terra { color: var(--terra); }
.cost-row .v.big { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--gold); }

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 4px;
}
.cmp-table th {
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1.5px solid var(--hair);
  text-align: left;
}
.cmp-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--hair);
  font-variant-numeric: tabular-nums;
}
.cmp-table tr.hl td { background: var(--gold-glow); }
.cmp-table tr.hl td:first-child { color: var(--ink); font-weight: 600; }
.cmp-table td .pos { color: var(--jade); font-weight: 600; }
.cmp-table td .neg { color: var(--terra); font-weight: 600; }
.cmp-table-wrap { overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.cmp-table-wrap::-webkit-scrollbar { display: none; }

.thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tm { display: flex; gap: 9px; align-items: flex-start; }
.tm.me { flex-direction: row-reverse; }
.tm-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bone-mute);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  flex-shrink: 0;
  border: 1px solid var(--hair);
}
.tm-av.ag {
  background: linear-gradient(135deg, var(--gold), #6B4E10);
  color: var(--white);
  border-color: var(--gold);
  font-family: var(--serif);
}
.tm-bub {
  max-width: 78%;
  background: var(--bone);
  border: 1px solid var(--hair);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}
.tm.me .tm-bub {
  border-radius: 14px 14px 4px 14px;
  background: var(--gold-glow);
  border-color: rgba(184,149,72,.24);
}
.tm-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.tm.me .tm-time { text-align: right; }
.t-input {
  display: flex; gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.t-inp {
  flex: 1;
  background: var(--bone);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink);
  font-family: inherit;
  transition: all .2s;
}
.t-inp:focus { outline: none; border-color: var(--gold); background: var(--white); }
.t-send {
  background: var(--ink);
  color: var(--bone);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background .2s;
}
.t-send:hover { background: var(--gold); color: var(--ink); }

/* Radar */
.radar-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.radar-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}
.radar-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.radar-meta-d {
  width: 8px; height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.radar-meta-l { color: var(--slate); flex: 1; }
.radar-meta-v { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ──────────────── COMPARE ──────────────── */
.cmp-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.cmp-cards::-webkit-scrollbar { display: none; }
.cmp-card-hero {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmp-card-hero.best { border-color: rgba(45,125,111,.4); background: rgba(45,125,111,.04); }
.cmp-card-hero.worst { border-color: rgba(196,103,74,.4); background: rgba(196,103,74,.04); }
.cmp-card-thumb {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--fixed-dark), var(--fixed-dark-2));
  flex-shrink: 0;
}
.cmp-card-thumb.jade { background: linear-gradient(135deg, var(--jade), #0F3A33); }
.cmp-card-thumb.plum { background: linear-gradient(135deg, #2B1E5C, #110A2E); }
.cmp-card-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.cmp-card-sub { font-size: 10.5px; color: var(--slate); margin-top: 1px; }
.cmp-card-tag { font-size: 9px; font-weight: 700; letter-spacing: .06em; margin-top: 5px; }
.cmp-card-hero.best .cmp-card-tag { color: var(--jade); }
.cmp-card-hero.worst .cmp-card-tag { color: var(--terra); }

.cmp-matrix {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
}
.cmp-matrix-cat {
  background: var(--bone);
  padding: 9px 14px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.cmp-matrix-cat:first-child { border-top: 0; }
.cmp-matrix-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--hair);
}
.cmp-matrix-row:last-child { border-bottom: 0; }
.cmp-matrix-cell {
  padding: 10px 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--hair);
  display: flex;
  align-items: center;
}
.cmp-matrix-cell:last-child { border-right: 0; }
.cmp-matrix-row .lbl { color: var(--slate); font-size: 11.5px; font-variant-numeric: normal; }
.cmp-matrix-cell.best { background: rgba(45,125,111,.07); color: var(--jade); font-weight: 600; }
.cmp-matrix-cell.worst { background: rgba(196,103,74,.07); color: var(--terra); font-weight: 600; }

.cmp-score-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  background: var(--bone);
  border-top: 1.5px solid var(--hair-strong);
}
.cmp-score-cell {
  padding: 14px 12px;
  text-align: left;
  border-right: 1px solid var(--hair);
}
.cmp-score-cell:last-child { border-right: 0; }
.cmp-score-cell .l { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.cmp-score-cell .n {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.cmp-score-cell .n.jade { color: var(--jade); }
.cmp-score-cell .n.gold { color: var(--gold); }
.cmp-score-cell .n.terra { color: var(--terra); }
.cmp-score-cell .s { font-size: 10px; color: var(--muted); margin-top: 1px; }

/* ──────────────── SIMULATOR ──────────────── */
.sim-card {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 22px 20px;
}
.sim-sliders { display: flex; flex-direction: column; gap: 22px; margin-top: 6px; }
.sim-srow { display: flex; flex-direction: column; gap: 6px; }
.sim-srow-h { display: flex; justify-content: space-between; align-items: baseline; }
.sim-srow-l { font-size: 12.5px; color: var(--slate); }
.sim-srow-v { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sim-track {
  height: 6px;
  background: var(--bone-mute);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}
.sim-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  position: relative;
}
.sim-fill::after {
  content: '';
  position: absolute;
  right: -9px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  box-shadow: 0 2px 6px rgba(10,22,40,.15);
}
.sim-track:active .sim-fill::after { box-shadow: 0 0 0 6px var(--gold-glow); }
.sim-range { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 2px; }

.sim-split {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  gap: 2px;
  margin-top: 22px;
}
.sim-split-seg { height: 100%; border-radius: 3px; transition: flex .3s; }
.sim-split-cash { background: var(--jade); }
.sim-split-cpf { background: var(--gold); }
.sim-split-loan { background: var(--plum); }
.sim-split-leg { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.sim-leg { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--slate); }
.sim-leg-d { width: 9px; height: 9px; border-radius: 2px; }

.sim-ceiling {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--bone);
  border-radius: 12px;
  border: 1px solid var(--hair);
}
.sim-ceiling-l { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.sim-ceiling-v {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.sim-spec {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 20px;
}
.sim-spec-hints {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.sim-spec-bar {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--jade) 0%, var(--gold) 55%, var(--terra) 82%, rgba(196,103,74,.25) 100%);
  position: relative;
  margin: 4px 0 20px;
}
.sim-spec-needle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left .3s;
}
.sim-spec-needle .line {
  width: 2px; height: 22px;
  background: var(--ink);
  border-radius: 1px;
  margin: 0 auto;
}
.sim-spec-needle .lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
  color: var(--ink);
}
.sim-spec-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(10,22,40,.18);
  transition: left .3s, background .3s;
}
.sim-spec-range {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}

.sim-elig {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 18px 20px;
}
.sim-elig-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sim-elig-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bone);
  border: 1px solid var(--hair);
  border-left-width: 3px;
  border-radius: 10px;
  transition: border-color .3s;
}
.sim-elig-thumb {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--fixed-dark), var(--fixed-dark-2));
  flex-shrink: 0;
}
.sim-elig-thumb.jade { background: linear-gradient(135deg, var(--jade), #0F3A33); }
.sim-elig-thumb.plum { background: linear-gradient(135deg, #2B1E5C, #110A2E); }
.sim-elig-info { flex: 1; min-width: 0; }
.sim-elig-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.sim-elig-price { font-size: 11px; color: var(--slate); font-variant-numeric: tabular-nums; }
.sim-elig-r { text-align: right; flex-shrink: 0; }
.sim-elig-gap { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sim-elig-b { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }

/* ──────────────── INSIGHTS ──────────────── */
.ins-tabs {
  display: flex;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
}
.ins-tab {
  flex: 1;
  padding: 9px 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--slate);
  border-radius: 8px;
  text-align: center;
  letter-spacing: .03em;
  transition: all .2s;
}
.ins-tab.live { background: var(--ink); color: var(--bone); }

.ins-map-card {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
}
.ins-map-wrap { background: var(--bone); border-radius: 10px; padding: 10px; overflow: hidden; }
.ins-map-svg { width: 100%; height: auto; }
.ins-map-svg .dp {
  fill: var(--white);
  stroke: var(--hair-strong);
  stroke-width: .7;
  cursor: pointer;
  transition: all .3s;
}
.ins-map-svg .dp:hover { stroke: var(--gold); stroke-width: 1.4; }
.ins-map-svg .hh { fill: rgba(196,103,74,.55); }
.ins-map-svg .hw { fill: rgba(184,149,72,.4); }
.ins-map-svg .hc { fill: rgba(45,125,111,.3); }
.ins-map-svg .hd { fill: rgba(107,122,144,.15); }
.ins-map-svg .ph { fill: rgba(83,58,253,.4); }
.ins-map-svg .pm { fill: rgba(184,149,72,.3); }
.ins-map-svg .pl { fill: rgba(45,125,111,.2); }
.ins-map-svg .sl { fill: rgba(184,149,72,.3); stroke: var(--gold); stroke-width: 1.4; }
.ins-map-svg .dl { font-family: var(--sans); font-size: 7.5px; fill: var(--slate); font-weight: 500; pointer-events: none; }

.ins-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.ins-legend-item { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--slate); }
.ins-legend-d { width: 11px; height: 11px; border-radius: 2px; }

.ins-district {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 18px 20px;
}
.ins-district-n {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
}
.ins-district-s { font-size: 12px; color: var(--slate); margin-top: 2px; }
.ins-district-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.ins-district-stat {
  background: var(--bone);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 11px 13px;
}
.ins-district-stat-v {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ins-district-stat-l { font-size: 10px; color: var(--slate); margin-top: 4px; letter-spacing: .04em; }
.ins-district-stat-d { font-size: 11px; font-weight: 600; margin-top: 4px; }
.ins-district-stat-d.up { color: var(--jade); }
.ins-district-pin {
  margin-top: 12px;
  background: var(--gold-glow);
  border: 1px solid rgba(184,149,72,.28);
  border-radius: 10px;
  padding: 12px 14px;
}
.ins-district-pin-l { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.ins-district-pin-n { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.ins-district-pin-s { font-size: 11px; color: var(--slate); margin-top: 1px; }

.ins-rank {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 18px 20px;
}
.ins-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  cursor: pointer;
}
.ins-rank-row:last-child { border-bottom: 0; }
.ins-rank-row.sel { background: var(--gold-glow); border-radius: 8px; padding: 10px 10px; border-bottom-color: transparent; margin: 0 -10px; }
.ins-rank-code { font-size: 11px; font-weight: 700; color: var(--gold); width: 32px; flex-shrink: 0; }
.ins-rank-name { flex: 1; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-rank-psf { font-size: 11.5px; color: var(--slate); font-variant-numeric: tabular-nums; }
.ins-rank-dlt { font-size: 11px; font-weight: 600; width: 42px; text-align: right; }
.ins-rank-dlt.up { color: var(--jade); }
.ins-rank-pin { font-size: 11px; color: var(--gold); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 110px; left: 50%;
  transform: translate(-50%, 20px);
  z-index: 200;
  background: var(--fixed-dark);
  color: var(--fixed-light);
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(10,22,40,.32);
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease-out);
}
.toast.live { opacity: 1; transform: translate(-50%, 0); }

/* ═════════════ KANBAN PIPELINE (v2) ═════════════ */
.kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 18px 14px;
  margin: 0 -18px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-padding-left: 18px;
}
.kanban::-webkit-scrollbar { display: none; }
.kc {
  flex: 0 0 86vw;
  max-width: 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.kc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair-strong);
  margin-bottom: 14px;
}
.kc-head-l { display: flex; flex-direction: column; }
.kc-num {
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--muted);
  font-weight: 600;
}
.kc-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-top: 4px;
}
.kc-sub {
  font-size: 11px;
  color: var(--slate);
  margin-top: 4px;
  line-height: 1.4;
}
.kc-count {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 8px;
}
.kc-cards { display: flex; flex-direction: column; gap: 12px; }
.kc-empty {
  padding: 36px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  border: 1px dashed var(--hair-strong);
  border-radius: 14px;
  background: var(--surface);
  line-height: 1.6;
}

/* Property card (kanban) */
.kp {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s;
  box-shadow: 0 1px 2px rgba(10,22,40,.03);
}
.kp:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(10,22,40,.14); border-color: var(--hair-strong); }
.kp-thumb {
  height: 84px;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.06) 14px 15px),
    linear-gradient(135deg, var(--fixed-dark) 0%, var(--fixed-dark-2) 100%);
}
.kp-thumb.jade {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.06) 14px 15px),
    linear-gradient(135deg, #1F5A50 0%, #0A2E27 100%);
}
.kp-thumb.gold {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.06) 14px 15px),
    linear-gradient(135deg, #5C4A1F 0%, #2A1F08 100%);
}
.kp-thumb.plum {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.06) 14px 15px),
    linear-gradient(135deg, #2B1E5C 0%, #110A2E 100%);
}
.kp-district {
  position: absolute;
  top: 9px; left: 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .15em;
  color: rgba(245,241,232,.85);
  background: rgba(10,22,40,.4);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 4px;
}
.kp-score {
  position: absolute;
  top: 9px; right: 10px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--fixed-light);
  background: rgba(10,22,40,.4);
  backdrop-filter: blur(6px);
  padding: 3px 11px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(245,241,232,.18);
  line-height: 1.1;
}

.kp-body { padding: 13px 14px 14px; }
/* Stage breadcrumb */
.kp-stages {
  display: flex;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  flex-wrap: nowrap;
}
.kp-stages .s {
  white-space: nowrap;
}
.kp-stages .s.on { color: var(--gold); }
.kp-stages .sep { color: var(--hair-strong); }

.kp-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.15;
}
.kp-name em { font-style: italic; }
.kp-addr {
  font-size: 11px;
  color: var(--slate);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kp-specs {
  font-size: 11px;
  color: var(--slate);
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  letter-spacing: .02em;
}
.kp-specs strong { color: var(--ink); font-weight: 500; }
.kp-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
}
.kp-price {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.kp-psf {
  font-size: 11px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.kp-delta {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.kp-delta.up { color: var(--jade); }
.kp-delta.dn { color: var(--terra); }

/* Stage-specific footer slot */
.kp-foot {
  margin-top: 12px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.55;
}
.kp-foot.tour {
  background: rgba(45,125,111,.08);
  border: 1px solid rgba(45,125,111,.22);
  color: var(--ink);
}
.kp-foot.disc {
  background: var(--gold-glow);
  border: 1px solid rgba(184,149,72,.22);
  color: var(--ink);
}
.kp-foot.neg {
  background: rgba(196,103,74,.07);
  border: 1px solid rgba(196,103,74,.22);
  color: var(--ink);
}
.kp-foot-h {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}
.kp-foot.tour .kp-foot-h { color: var(--jade); }
.kp-foot.disc .kp-foot-h { color: var(--gold); }
.kp-foot.neg .kp-foot-h { color: var(--terra); }
.kp-foot-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.kp-foot-row b { font-weight: 600; }
.kp-foot-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--jade);
  color: var(--fixed-light);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.kp-foot-quote {
  font-style: italic;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 6px;
  color: var(--ink);
}
.kp-foot-by {
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

/* ═════════════ COMPARE (v2) ═════════════ */
.cmp2-head {
  display: grid;
  grid-template-columns: 110px repeat(3, 1fr);
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 14px 14px 0 0;
  border-bottom: none;
  overflow: hidden;
  position: sticky;
  top: 56px;
  z-index: 10;
  background: var(--card);
}
.cmp2-head-spacer { background: var(--surface); border-right: 1px solid var(--hair); }
.cmp2-prop {
  padding: 14px 12px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.cmp2-prop:last-child { border-right: none; }
.cmp2-ring {
  position: relative;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.cmp2-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cmp2-ring .ring-bg { stroke: var(--hair-strong); fill: none; stroke-width: 2.5; }
.cmp2-ring .ring-fg { fill: none; stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease-out); }
.cmp2-ring.jade .ring-fg { stroke: var(--jade); }
.cmp2-ring.gold .ring-fg { stroke: var(--gold); }
.cmp2-ring.terra .ring-fg { stroke: var(--terra); }
.cmp2-ring-n {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  z-index: 1;
}
.cmp2-prop-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.005em;
}
.cmp2-prop-meta {
  font-size: 10px;
  color: var(--slate);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.cmp2-prop-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 2px;
}
.cmp2-prop-tag.jade { background: rgba(45,125,111,.12); color: var(--jade); }
.cmp2-prop-tag.gold { background: var(--gold-glow); color: var(--gold); }
.cmp2-prop-tag.terra { background: rgba(196,103,74,.12); color: var(--terra); }

.cmp2-body {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
.cmp2-cat {
  background: var(--surface);
  padding: 9px 14px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.cmp2-cat:first-child { border-top: 0; }
.cmp2-row {
  display: grid;
  grid-template-columns: 110px repeat(3, 1fr);
  border-bottom: 1px solid var(--hair);
}
.cmp2-row:last-child { border-bottom: 0; }
.cmp2-cell {
  padding: 10px 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--hair);
  display: flex;
  align-items: center;
  color: var(--ink);
}
.cmp2-cell:last-child { border-right: 0; }
.cmp2-cell.lbl { color: var(--slate); font-size: 11px; background: var(--surface); }
.cmp2-cell.best { background: rgba(45,125,111,.07); color: var(--jade); font-weight: 600; }
.cmp2-cell.worst { background: rgba(196,103,74,.07); color: var(--terra); font-weight: 600; }

.cmp2-remarks {
  display: grid;
  grid-template-columns: 110px repeat(3, 1fr);
  background: var(--card);
  border-top: 2px solid var(--hair-strong);
}
.cmp2-remarks .lbl {
  padding: 14px 12px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  background: var(--surface);
  border-right: 1px solid var(--hair);
  display: flex; align-items: flex-start;
}
.cmp2-remark {
  padding: 14px 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink);
  border-right: 1px solid var(--hair);
  font-style: italic;
  font-family: var(--serif);
  font-size: 13px;
}
.cmp2-remark:last-child { border-right: 0; }
.cmp2-remark-by {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
}

/* Centered Passport CTA */
.cmp2-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cmp2-cta-hint {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.btn-passport {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px 13px 20px;
  background: var(--card);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  border-radius: 999px;
  transition: all .25s var(--ease-out);
  cursor: pointer;
  letter-spacing: -.005em;
  box-shadow: 0 4px 12px -4px var(--gold-glow);
}
.btn-passport:hover {
  background: var(--gold);
  color: var(--fixed-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(184,149,72,.4);
}
.btn-passport .passport-ico {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--gold-glow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold);
  border: 1px solid rgba(184,149,72,.25);
}
.btn-passport:hover .passport-ico {
  background: var(--fixed-dark);
  color: var(--gold);
  border-color: var(--fixed-dark);
}

/* ═════════════ PASSPORT TAB (raised central) ═════════════ */
.p-tab.p-tab-passport {
  position: relative;
}
.p-tab.p-tab-passport .pass-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--fixed-dark);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-top: -22px;
  box-shadow: 0 8px 20px -4px rgba(184,149,72,.5), 0 0 0 4px var(--card);
  transition: transform .2s var(--ease-out), background .2s;
}
.p-tab.p-tab-passport:hover .pass-glyph { transform: translateY(-2px); }
.p-tab.p-tab-passport.live .pass-glyph {
  background: var(--gold);
  box-shadow: 0 8px 20px -4px rgba(184,149,72,.7), 0 0 0 4px var(--card);
}
.p-tab.p-tab-passport .p-tab-pill { display: none; }
.p-tab.p-tab-passport span { margin-top: 2px; }

/* ═════════════ THEME TOGGLE BTN (portal topbar) ═════════════ */
.p-theme-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hair);
  transition: background .2s, border-color .2s;
}
.p-theme-btn:hover { background: var(--surface); border-color: var(--hair-strong); }
.p-theme-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; fill: none; }
[data-theme="dark"] .p-theme-btn .sun { display: none; }
:root:not([data-theme="dark"]) .p-theme-btn .moon { display: none; }
[data-theme="dark"] .p-theme-btn .moon { display: inline; }

/* When in kanban mode, hide old .pipe-list/.pipe-summary if both present (we replace pipe section) */
.pipe-list-old { display: none; }

/* ── Accordion chevron: hidden on desktop ── */
.kc-chev {
  display: none;
  width: 16px; height: 16px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-out);
}

/* ══════════════════════════════════════════════════════════════
   DESIGN UPLIFT
   Stripe principles: thin display type · dark feature cards ·
   Level-2 elevation · editorial tracking · vibrant color moments
   ══════════════════════════════════════════════════════════════ */

/* ── View header: Stripe display-thin ── */
.p-view-title {
  font-size: clamp(34px, 9vw, 46px);
  letter-spacing: -.04em;
  font-weight: 300;
  line-height: 1;
}
.p-view-eyebrow { font-size: 9px; letter-spacing: .22em; }
.p-view-sub { font-size: 12.5px; margin-top: 10px; }

/* ── Topbar: sharper type ── */
.p-title {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -.015em;
}

/* ── Tabbar: filled active pill ── */
.p-tab.live {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border-radius: 12px;
}
.p-tab.live .p-tab-pill {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  width: 28px;
}

/* ── Cards: Stripe Level-2 elevation, no border ── */
.p-card {
  border: none;
  box-shadow: rgba(10,22,40,.07) 0 8px 24px, rgba(10,22,40,.04) 0 2px 6px;
}
.p-card-lbl { font-size: 9px; letter-spacing: .18em; }

/* ── Kanban columns: more character ── */
.kc {
  border: none;
  box-shadow: rgba(10,22,40,.05) 0 4px 16px, rgba(10,22,40,.03) 0 1px 4px;
  background: var(--card);
  border-radius: 20px;
}
.kc-num { font-size: 10px; letter-spacing: .2em; }
.kc-name { font-size: 24px; letter-spacing: -.025em; margin-top: 2px; }
.kc-count {
  font-size: 32px;
  letter-spacing: -.04em;
  color: var(--muted);
  opacity: 0.6;
}
.kc-head { border-bottom: 1px solid var(--hair); padding-bottom: 16px; margin-bottom: 16px; }

/* Stage accent stripe on left edge of open count */
.kc[data-stage="disc"] .kc-count { color: var(--gold); opacity: 1; }
.kc[data-stage="tour"] .kc-count { color: var(--jade); opacity: 1; }
.kc[data-stage="neg"]  .kc-count { color: var(--terra); opacity: 1; }

/* ── Kanban property cards: bold & elevated ── */
.kp {
  border: none;
  box-shadow: rgba(10,22,40,.06) 0 4px 16px, rgba(10,22,40,.04) 0 1px 4px;
  border-radius: 16px;
}
.kp:hover {
  transform: translateY(-3px);
  box-shadow: rgba(10,22,40,.14) 0 16px 40px -6px, rgba(10,22,40,.06) 0 4px 12px;
}
.kp-thumb { height: 108px; }
.kp-name { font-size: 20px; letter-spacing: -.02em; }
.kp-price { font-size: 27px; letter-spacing: -.03em; font-weight: 300; }
.kp-score { font-size: 19px; background: rgba(10,22,40,.55); }
.kp-price-row { padding-top: 12px; margin-top: 12px; }
.kp-specs { font-size: 11.5px; gap: 14px; }
.kp-body { padding: 15px 16px 16px; }

/* ── Pipeline summary cells ── */
.pipe-sum-cell {
  border: none;
  box-shadow: rgba(10,22,40,.05) 0 4px 12px, rgba(10,22,40,.03) 0 1px 4px;
  border-radius: 14px;
}
.pipe-sum-n { font-size: 30px; letter-spacing: -.04em; }

/* ── Dossier hero: bigger name, richer mesh ── */
.dos-hero::after {
  content: '';
  position: absolute;
  left: -40px; bottom: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(45,125,111,.2), transparent 65%);
  pointer-events: none;
}
.dos-hero-name { font-size: 36px; letter-spacing: -.025em; }
.dos-stat-v { font-size: 26px; letter-spacing: -.025em; font-weight: 300; }
.dos-stat-l { font-size: 9px; letter-spacing: .16em; }

/* Dossier tabs: pill style ── */
.dos-tabs { border-bottom: none; padding: 4px; background: var(--surface); border-radius: 12px; }
.dos-tab { border-bottom: none; border-radius: 8px; min-width: 80px; font-size: 12px; }
.dos-tab.live { background: var(--fixed-dark); color: var(--fixed-light); border-bottom: none; }

/* ── Simulator: buying ceiling as dark feature card ── */
.sim-ceiling {
  background: var(--fixed-dark);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.sim-ceiling::after {
  content: '';
  position: absolute;
  right: -32px; top: -32px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(184,149,72,.24), transparent 60%);
  pointer-events: none;
}
.sim-ceiling-l { color: rgba(245,241,232,.55); position: relative; z-index: 1; }
.sim-ceiling-v {
  color: var(--gold-soft);
  font-size: 52px;
  letter-spacing: -.04em;
  position: relative;
  z-index: 1;
}
.sim-track { height: 7px; }

/* ── Compare: dark premium header ── */
.cmp2-head {
  background: var(--fixed-dark);
  border-color: transparent;
  border-radius: 16px 16px 0 0;
}
.cmp2-head-spacer { background: rgba(10,22,40,.6); border-right-color: rgba(245,241,232,.07); }
.cmp2-prop { border-right-color: rgba(245,241,232,.08); }
.cmp2-prop-name { color: var(--fixed-light); font-size: 13px; }
.cmp2-prop-meta { color: rgba(245,241,232,.55); font-size: 10.5px; }
.cmp2-ring-n { color: var(--fixed-light); }
.cmp2-ring .ring-bg { stroke: rgba(245,241,232,.15); }
.cmp2-prop-tag { background: rgba(245,241,232,.1); color: var(--fixed-light); border: 1px solid rgba(245,241,232,.18); }
.cmp2-prop-tag.gold { background: rgba(184,149,72,.18); color: var(--gold-soft); border-color: rgba(184,149,72,.35); }
.cmp2-prop-tag.jade { background: rgba(45,125,111,.2); color: #6FBAA8; border-color: rgba(45,125,111,.35); }
.cmp2-prop-tag.terra { background: rgba(196,103,74,.15); color: #E5917A; border-color: rgba(196,103,74,.3); }
.cmp2-cell { font-size: 12.5px; }
.cmp2-cell.best { background: rgba(45,125,111,.1); }
.cmp2-cat { font-size: 9px; letter-spacing: .18em; }

/* ── Insights: ink selected rank, pill tabs ── */
.ins-tabs { background: var(--surface); border-color: transparent; box-shadow: none; }
.ins-tab.live { background: var(--fixed-dark); color: var(--fixed-light); }
.ins-rank-row.sel {
  background: var(--fixed-dark);
  border-radius: 10px;
  border-bottom-color: transparent;
  padding: 10px 12px;
  margin: 0 -12px;
}
.ins-rank-row.sel .ins-rank-code { color: var(--gold-soft); }
.ins-rank-row.sel .ins-rank-name { color: var(--fixed-light); }
.ins-rank-row.sel .ins-rank-psf { color: rgba(245,241,232,.7); font-weight: 600; }
.ins-rank-row.sel .ins-rank-dlt.up { color: #6FBAA8; }
.ins-rank-row.sel .ins-rank-pin { color: var(--gold-soft); }
.ins-district-n { font-size: 26px; letter-spacing: -.02em; }
.ins-district-stat-v { font-size: 22px; letter-spacing: -.02em; }
.ins-rank { box-shadow: rgba(10,22,40,.06) 0 4px 16px; border-color: transparent; }

/* ── Passport: budget as dark feature card ── */
.acc-budget {
  background: var(--fixed-dark);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.acc-budget::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(184,149,72,.22), transparent 60%);
  pointer-events: none;
}
.acc-budget-val {
  color: var(--gold-soft);
  font-size: 44px;
  letter-spacing: -.04em;
  font-weight: 300;
  position: relative;
}
.acc-budget-delta { color: #6FBAA8; position: relative; }
.acc-budget .p-card-lbl { color: rgba(245,241,232,.45); }
.acc-stack { position: relative; }
.acc-stack-row { border-bottom-color: rgba(245,241,232,.08); }
.acc-stack-row .l { color: rgba(245,241,232,.55); }
.acc-stack-row .v { color: var(--fixed-light); }
.acc-stack-row .v.terra { color: #E5917A; }

/* Milestone marks: more vibrant ── */
.ms-mark.done { background: var(--jade); border-color: var(--jade); }
.ms-mark.next { background: var(--gold); border-color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   MAGIC GATE — Stripe-palette conjuring overlay
   Background: Stripe ink #0d253d · Mesh: indigo · magenta · ruby
   ══════════════════════════════════════════════════════════════ */
.magic-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d253d;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow: hidden;
}
.magic-gate.summoned {
  opacity: 1;
  pointer-events: all;
}

/* ── Atmospheric gradient mesh (Stripe signature) ── */
.mg-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}
.mg-blob-indigo {
  width: 56%;
  height: 56%;
  top: -14%;
  right: -8%;
  background: radial-gradient(circle, rgba(83,58,253,0.52) 0%, transparent 70%);
  animation: mg-blob-drift 5.2s ease-in-out infinite alternate;
}
.mg-blob-magenta {
  width: 48%;
  height: 48%;
  bottom: -10%;
  left: -6%;
  background: radial-gradient(circle, rgba(249,107,238,0.36) 0%, transparent 70%);
  animation: mg-blob-drift 6.8s ease-in-out infinite alternate-reverse;
}
.mg-blob-ruby {
  width: 40%;
  height: 42%;
  top: 26%;
  left: 8%;
  background: radial-gradient(circle, rgba(234,34,97,0.26) 0%, transparent 70%);
  animation: mg-blob-drift 8.1s ease-in-out infinite alternate;
}
@keyframes mg-blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(38px, -28px) scale(1.13); }
}

/* ── Centering container ── */
.mg-canvas {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Indigo core pulse */
.mg-canvas::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83,58,253,0.65) 0%, rgba(83,58,253,0) 70%);
  animation: mg-core-pulse 1.4s ease-in-out infinite;
}
@keyframes mg-core-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.65; }
  50%       { transform: scale(1.7); opacity: 1;    }
}

/* ── SVG sigil ── */
.mg-sigil {
  position: absolute;
  width: 230px;
  height: 230px;
  opacity: 0;
  animation: mg-spin 10s linear infinite;
  transition: opacity 0.5s ease 0.15s;
}
.magic-gate.summoned .mg-sigil { opacity: 1; }
@keyframes mg-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Magenta dashed mid ring counter-rotates */
.mg-ring-rev {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: mg-spin-rev 6s linear infinite;
}
@keyframes mg-spin-rev {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* Center gem breathes */
.mg-gem {
  animation: mg-gem-pulse 1.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
@keyframes mg-gem-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.88; }
  50%       { transform: scale(1.4); opacity: 1;    }
}

/* ── Orbiting sparks ── */
.mg-sparks { position: absolute; inset: 0; }

.mg-spark {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  animation: mg-orbit var(--dur, 2s) linear var(--delay, 0s) infinite;
}
@keyframes mg-orbit {
  from { transform: rotate(var(--a, 0deg)) translateX(var(--r, 70px)) translate(-50%, -50%); }
  to   { transform: rotate(calc(var(--a, 0deg) + 360deg)) translateX(var(--r, 70px)) translate(-50%, -50%); }
}

/* ── Caption — Stripe thin weight, negative tracking ── */
.mg-caption {
  position: absolute;
  bottom: -46px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.62);
  letter-spacing: -0.4px;
  opacity: 0;
  transition: opacity 0.5s ease 0.45s;
}
.magic-gate.summoned .mg-caption { opacity: 1; }

/* ── Mobile pipeline: stage accordion (< 900px) ── */
@media (max-width: 899px) {
  .kanban {
    flex-direction: column;
    overflow-x: visible;
    padding: 4px 0 14px;
    margin: 0;
    gap: 8px;
    scroll-snap-type: none;
  }
  .kc {
    flex: none;
    max-width: none;
    background: var(--card);
    border: 1px solid var(--hair);
    border-radius: 16px;
    overflow: hidden;
  }
  .kc-head {
    cursor: pointer;
    user-select: none;
    padding: 13px 16px;
    margin-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.14s;
  }
  .kc-head:active { background: rgba(0,0,0,0.03); }
  [data-theme="dark"] .kc-head:active { background: rgba(255,255,255,0.04); }
  .kc.open .kc-head { border-bottom: 1px solid var(--hair); }

  /* Stage accent bar on left edge */
  .kc[data-stage="disc"] .kc-head  { border-left: 3px solid var(--gold); }
  .kc[data-stage="tour"] .kc-head  { border-left: 3px solid var(--jade); }
  .kc[data-stage="neg"] .kc-head   { border-left: 3px solid var(--terra); }
  .kc[data-stage="close"] .kc-head { border-left: 3px solid var(--hair-strong); }

  .kc-head-l { flex-direction: row; align-items: center; gap: 8px; }
  .kc-num { display: none; }
  .kc-sub { display: none; }
  .kc-name { font-size: 15px; margin-top: 0; letter-spacing: 0; }
  .kc-count {
    font-size: 13px; margin-top: 0;
    background: var(--surface); color: var(--slate);
    border: 1px solid var(--hair);
    padding: 2px 8px; border-radius: 999px;
    font-family: var(--sans); font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .kc-chev { display: block; margin-left: auto; }
  .kc.open .kc-chev { transform: rotate(180deg); }

  /* Cards area */
  .kc-cards { display: none; flex-direction: column; padding: 10px 12px 12px; gap: 8px; }
  .kc.open .kc-cards { display: flex; }
  .kc-empty { padding: 20px 16px; }

  /* Compact horizontal property card */
  .kp {
    display: grid;
    grid-template-columns: 4px 1fr;
    border-radius: 10px;
  }
  .kp-thumb {
    height: auto;
    min-height: 0;
    border-radius: 10px 0 0 10px;
    /* Solid accent strip — no repeating texture */
    background: var(--fixed-dark) !important;
  }
  .kp-thumb.jade { background: #1F5A50 !important; }
  .kp-thumb.gold { background: #7A5A1E !important; }
  .kp-thumb.plum { background: #3B2A7A !important; }
  .kp-district, .kp-score { display: none; }
  .kp-body { padding: 10px 13px 12px; }
  .kp-stages { display: none; }
  .kp-name { font-size: 17px; }
  .kp-addr { font-size: 11px; }
  .kp-specs { margin-top: 7px; gap: 9px; font-size: 11px; }
  .kp-price-row { margin-top: 8px; padding-top: 8px; }
  .kp-price { font-size: 18px; }
  .kp-psf { font-size: 10.5px; }
  .kp-foot { margin-top: 10px; }
  .kp-foot-quote { font-size: 12.5px; }
}

/* Responsive (kanban → grid) */
@media (min-width: 900px) {
  .kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .kc { flex: none; max-width: none; }
}

/* ── RESPONSIVE (portal) ── */
@media (min-width: 720px) {
  .p-topbar { padding: 14px 28px; }
  .p-main { padding: 32px 28px calc(100px + env(safe-area-inset-bottom, 0)); }
  .p-agent-chip-name { display: inline; }
  .acc-profile { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; }
  .acc-profile > :nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
}

/* ══════════════════════════════════════════════════════════════
   Mobile polish — < 720px
   Compare tab-switching · Simulator · Insights · Dossier · Passport
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 719px) {

  /* ── STRIPE CONSISTENCY ── */
  .p-view-title { letter-spacing: -.025em; }

  /* ── COMPARE: transform header into scrollable pill-tab row ── */
  .cmp2-head {
    display: flex;
    grid-template-columns: unset;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--surface);
    border-bottom: none;
  }
  .cmp2-head::-webkit-scrollbar { display: none; }
  .cmp2-head-spacer { display: none; }
  .cmp2-prop {
    flex: 1;
    border-right: none;
    border-radius: 10px;
    padding: 10px 8px;
    gap: 5px;
    background: var(--card);
    border: 1.5px solid var(--hair);
    cursor: pointer;
    transition: background .15s, border-color .15s;
    -webkit-tap-highlight-color: transparent;
    min-width: 0;
  }
  .cmp2-prop.cmp-active {
    border-color: var(--gold);
    background: color-mix(in srgb, var(--gold) 8%, var(--card));
  }
  .cmp2-ring { width: 38px; height: 38px; }
  .cmp2-ring-n { font-size: 14px; color: var(--ink); }
  .cmp2-ring .ring-bg { stroke: var(--hair-strong); }
  .cmp2-prop-name { font-size: 10.5px; color: var(--ink); }
  .cmp2-prop-meta { font-size: 9px; color: var(--slate); }
  .cmp2-prop-tag { display: none; }

  /* Body: 2-column grid (label + selected property) */
  .cmp2-body { border-top: 1px solid var(--hair); border-radius: 0; }
  .cmp2-row { grid-template-columns: 88px 1fr; }
  .cmp2-cell { font-size: 12px; padding: 9px 10px; }

  /* Column hiding via data-cmp-col */
  #view-compare[data-cmp-col="1"] .cmp2-row > .cmp2-cell:nth-child(3),
  #view-compare[data-cmp-col="1"] .cmp2-row > .cmp2-cell:nth-child(4),
  #view-compare[data-cmp-col="2"] .cmp2-row > .cmp2-cell:nth-child(2),
  #view-compare[data-cmp-col="2"] .cmp2-row > .cmp2-cell:nth-child(4),
  #view-compare[data-cmp-col="3"] .cmp2-row > .cmp2-cell:nth-child(2),
  #view-compare[data-cmp-col="3"] .cmp2-row > .cmp2-cell:nth-child(3) { display: none; }

  /* Remarks: stack vertically, show only active property */
  .cmp2-remarks {
    display: flex;
    flex-direction: column;
    border-radius: 0 0 14px 14px;
  }
  .cmp2-remarks .lbl { display: none; }
  #view-compare[data-cmp-col="1"] .cmp2-remarks > *:nth-child(3),
  #view-compare[data-cmp-col="1"] .cmp2-remarks > *:nth-child(4),
  #view-compare[data-cmp-col="2"] .cmp2-remarks > *:nth-child(2),
  #view-compare[data-cmp-col="2"] .cmp2-remarks > *:nth-child(4),
  #view-compare[data-cmp-col="3"] .cmp2-remarks > *:nth-child(2),
  #view-compare[data-cmp-col="3"] .cmp2-remarks > *:nth-child(3) { display: none; }
  .cmp2-remark { border-right: none; padding: 14px 16px; }

  /* ── SIMULATOR ── */
  .sim-split-leg { gap: 6px 10px; }
  .sim-ceiling-v { font-size: 26px; }
  .sim-elig-b { font-size: 11px; }
  .sim-elig-row { min-height: 52px; }

  /* ── INSIGHTS ── */
  .ins-rank-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
  }

  /* ── DOSSIER ── */
  .dos-tab { min-height: 44px; }

  /* ── PASSPORT ── */
  .acc-budget-val { font-size: 34px; }
  .acc-form-row.duo { flex-direction: column; gap: 8px; }
  .btn-secondary { min-height: 44px; }
}
