/* NEIIA LP & GP Reporting — shared styles */
:root {
  --brand: #0E7A3C;
  --brand-600: #0B6431;
  --brand-50: #E8F4EC;
  --amber: #F59E0B;
  --red: #DC2626;
  --ink: #0F172A;
  --body: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --surface: #F8FAFC;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

.brand-text { color: var(--brand); }
.bg-brand { background: var(--brand); }
.bg-brand-50 { background: var(--brand-50); }
.border-brand { border-color: var(--brand); }

/* Wordmark */
.wordmark {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; font-size: 18px;
}
.wordmark-mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; color: white;
  font-size: 12px; font-weight: 800;
}

/* Portal shell */
.portal-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.portal-sidebar {
  background: white; border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.portal-sidebar .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin: 1px 8px;
  border-radius: 8px; color: var(--body); font-weight: 500; font-size: 14px;
}
.portal-sidebar .nav-item:hover { background: #F1F5F9; }
.portal-sidebar .nav-item.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.portal-sidebar .nav-item.active svg { stroke: var(--brand); }
.portal-sidebar .nav-section { padding: 14px 16px 6px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.portal-main { display: flex; flex-direction: column; min-width: 0; }
.portal-header {
  background: white; border-bottom: 1px solid var(--border);
  padding: 0 20px; height: 60px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.portal-header .search {
  flex: 1; max-width: 460px; position: relative;
}
.portal-header .search input {
  width: 100%; padding: 8px 12px 8px 36px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); font-size: 14px;
}
.portal-header .search input:focus { outline: none; border-color: var(--brand); background: white; }
.portal-header .search svg { position: absolute; left: 11px; top: 9px; }

.portal-content { padding: 24px 28px; max-width: 1400px; width: 100%; }

@media (max-width: 768px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-100%); z-index: 50; transition: transform .25s; }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-content { padding: 16px; }
}

/* Cards / surfaces */
.card { background: white; border: 1px solid var(--border); border-radius: 12px; }
.card-p { padding: 18px; }
.kpi-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.kpi-value { font-size: 24px; font-weight: 700; color: var(--ink); margin-top: 4px; line-height: 1.1; }
.kpi-delta { font-size: 12px; font-weight: 600; margin-top: 4px; }
.kpi-delta.up { color: var(--brand); }
.kpi-delta.down { color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: white; border-color: #CBD5E1; color: #334155; }
.btn-secondary:hover { background: #F8FAFC; }
.btn-ghost { background: transparent; color: var(--body); }
.btn-ghost:hover { background: #F1F5F9; }
.btn-sm { padding: 6px 10px; font-size: 13px; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl thead th { background: #F8FAFC; text-align: left; font-weight: 600; color: #475569; padding: 10px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--border); position: sticky; top: 0; }
.tbl tbody td { padding: 12px 14px; border-bottom: 1px solid #F1F5F9; color: var(--body); }
.tbl tbody tr:hover { background: #F8FAFC; cursor: pointer; }
.tbl tbody tr:last-child td { border-bottom: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--brand-50); color: var(--brand); }
.badge-amber { background: #FEF3C7; color: #B45309; }
.badge-red { background: #FEE2E2; color: var(--red); }
.badge-slate { background: #F1F5F9; color: #475569; }
.badge-blue { background: #DBEAFE; color: #1D4ED8; }

/* Avatars */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: white; font-weight: 600; background: var(--brand); flex-shrink: 0; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-md { width: 36px; height: 36px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }

.avatar-slate { background: #475569; }
.avatar-amber { background: var(--amber); }
.avatar-blue { background: #2563EB; }
.avatar-purple { background: #7C3AED; }
.avatar-rose { background: #E11D48; }
.avatar-teal { background: #0D9488; }

/* Engagement chip */
.eng-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.eng-high { background: var(--brand-50); color: var(--brand); }
.eng-med { background: #FEF3C7; color: #B45309; }
.eng-low { background: #FEE2E2; color: var(--red); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: white; border-radius: 14px; width: min(520px, calc(100vw - 32px));
  padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.modal-body { color: var(--body); font-size: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45);
  z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; right: 0; top: 0; height: 100vh; width: min(480px, 100vw);
  background: white; z-index: 95; transform: translateX(100%); transition: transform .25s;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }

/* Toast */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); animation: toast-in .25s ease;
}
.toast-success { background: var(--brand); }
.toast-error { background: var(--red); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Accordion */
.acc-item { border-top: 1px solid var(--border); }
.acc-item:last-child { border-bottom: 1px solid var(--border); }
.acc-trigger { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 16px; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .2s; color: var(--body); }
.acc-item.open .acc-body { max-height: 280px; padding: 0 4px 18px; }
.acc-item.open .acc-chev { transform: rotate(180deg); }
.acc-chev { transition: transform .2s; }

/* Sparkline / charts containers */
.chart-h-200 { height: 200px; }
.chart-h-260 { height: 260px; }
.chart-h-320 { height: 320px; }

/* Notif dot */
.notif-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: var(--red); border-radius: 999px; border: 2px solid white; }

/* Progress bars */
.progress { background: #E2E8F0; border-radius: 999px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.progress-bar-amber { background: var(--amber); }

/* Heatmap cell */
.heat-cell { width: 100%; aspect-ratio: 1/1; border-radius: 4px; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 8px; }
.step-num { width: 28px; height: 28px; border-radius: 999px; background: #E2E8F0; color: #475569; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.step-num.active { background: var(--brand); color: white; }
.step-num.done { background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand); }
.step-bar { flex: 1; height: 2px; background: #E2E8F0; }
.step-bar.done { background: var(--brand); }
.step-label { font-size: 13px; font-weight: 600; color: #475569; }
.step-label.active { color: var(--ink); }

/* Marketing site */
.mkt-nav { background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.mkt-hero { background: linear-gradient(180deg, #F0F7F2 0%, #FFFFFF 100%); }
.mkt-section { padding: 80px 24px; }
.mkt-container { max-width: 1180px; margin: 0 auto; }
.mkt-eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.mkt-h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); font-weight: 800; }
.mkt-sub { color: #475569; font-size: 18px; line-height: 1.6; }
.mkt-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 22px; }

/* Login split */
.login-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-brand { background: var(--brand); color: white; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-brand::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 40%); pointer-events: none; }
.login-form { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 768px) {
  .login-split { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}

/* Sortable header indicator */
.sort-caret { display: inline-block; margin-left: 4px; color: #94A3B8; }

/* Tag chip */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: #F1F5F9; color: #475569; font-size: 12px; font-weight: 500; }

/* Sidebar bottom helper */
.sidebar-helper { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tab { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); background: white; border: 1px solid var(--border); border-radius: 10px; padding: 6px; min-width: 240px; box-shadow: 0 12px 30px rgba(15,23,42,0.12); display: none; z-index: 50; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--body); font-size: 14px; cursor: pointer; }
.dropdown-item:hover { background: #F1F5F9; }

/* Action banner */
.action-banner { background: #FEF3C7; border: 1px solid #FDE68A; border-radius: 12px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.action-banner.green { background: var(--brand-50); border-color: #B7E0C5; }
.action-banner.red { background: #FEE2E2; border-color: #FECACA; }

/* Pill toggle (annual/monthly) */
.pill-toggle { display: inline-flex; background: #F1F5F9; padding: 4px; border-radius: 999px; }
.pill-toggle button { padding: 6px 18px; border-radius: 999px; border: none; background: transparent; font-weight: 600; color: #475569; font-size: 14px; cursor: pointer; }
.pill-toggle button.active { background: white; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

/* Subtle scroll for sidebar */
.portal-sidebar::-webkit-scrollbar { width: 6px; }
.portal-sidebar::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

/* ===== Reporting product additions ===== */

/* Role toggle (GP/LP) */
.role-toggle { display: inline-flex; background: white; border: 1px solid var(--border); padding: 4px; border-radius: 999px; box-shadow: 0 2px 6px rgba(15,23,42,0.04); }
.role-toggle button { padding: 8px 18px; border-radius: 999px; border: none; background: transparent; font-weight: 600; color: var(--muted); font-size: 14px; cursor: pointer; min-height: 38px; }
.role-toggle button.active { background: var(--brand); color: white; }

/* Animated brand gradient (signin) */
.brand-animated { background: linear-gradient(135deg, #0E7A3C 0%, #0B6431 40%, #146a3d 70%, #0E7A3C 100%); background-size: 400% 400%; animation: brand-shift 12s ease infinite; }
@keyframes brand-shift { 0% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } 100% { background-position: 0% 0%; } }

/* Hero gradient */
.hero-gradient { background: radial-gradient(ellipse at 20% 0%, rgba(14,122,60,0.10) 0%, transparent 50%), radial-gradient(ellipse at 80% 100%, rgba(14,122,60,0.08) 0%, transparent 50%), linear-gradient(180deg, #F0F7F2 0%, #FFFFFF 100%); }

/* Animated KPI counters band */
.kpi-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi-strip .stat-num { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.kpi-strip .stat-lbl { color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 4px; }
@media (max-width: 768px) {
  .kpi-strip { display: flex; overflow-x: auto; gap: 14px; padding-bottom: 6px; }
  .kpi-strip > div { min-width: 220px; }
}

/* Feature card */
.feat-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 22px; transition: transform .3s ease, box-shadow .3s ease, opacity .4s ease; transform: translateY(12px); opacity: 0; }
.feat-card.visible { transform: translateY(0); opacity: 1; }
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(14,122,60,0.10); }

/* Tap targets — buttons min 44px on mobile */
@media (max-width: 768px) {
  .btn { min-height: 44px; padding: 10px 16px; }
  .btn-sm { min-height: 36px; }
}

/* Corporate graph (inline bar charts) */
.corp-bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.corp-bar-chart .bar { flex: 1; background: var(--brand); border-radius: 2px 2px 0 0; min-height: 4px; }
.corp-bar-chart .bar.alt { background: #93C5A4; }

/* Apex floating button */
.apex-fab { position: fixed; bottom: 22px; right: 22px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--brand); color: white; border: none; cursor: pointer; box-shadow: 0 14px 30px rgba(14,122,60,0.35); font-weight: 600; transition: transform .2s, box-shadow .2s; min-height: 48px; }
.apex-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(14,122,60,0.45); }
.apex-fab-label { font-size: 14px; }
@media (max-width: 480px) {
  .apex-fab-label { display: none; }
  .apex-fab { padding: 14px; }
}

/* Apex modal */
.apex-modal-bd { position: fixed; inset: 0; background: rgba(15,23,42,0.55); display: flex; align-items: center; justify-content: center; z-index: 110; opacity: 0; pointer-events: none; transition: opacity .2s; }
.apex-modal-bd.open { opacity: 1; pointer-events: auto; }
.apex-modal { background: white; border-radius: 16px; width: min(880px, calc(100vw - 24px)); height: min(620px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
.apex-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.apex-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.apex-body { display: grid; grid-template-columns: 240px 1fr; flex: 1; min-height: 0; }
.apex-sidebar { border-right: 1px solid var(--border); overflow-y: auto; padding: 8px; background: var(--surface); }
.apex-chat-item { padding: 10px 12px; border-radius: 8px; cursor: pointer; margin-bottom: 4px; }
.apex-chat-item:hover { background: #F1F5F9; }
.apex-chat-item.active { background: var(--brand-50); }
.apex-chat-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.apex-chat-when { font-size: 11px; color: var(--muted); margin-top: 2px; }
.apex-pane { display: flex; flex-direction: column; min-height: 0; }
.apex-stream { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.apex-msg { display: flex; }
.apex-msg-user { justify-content: flex-end; }
.apex-msg-apex { justify-content: flex-start; }
.apex-bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; line-height: 1.45; font-size: 14px; }
.apex-msg-user .apex-bubble { background: var(--brand); color: white; border-bottom-right-radius: 4px; }
.apex-msg-apex .apex-bubble { background: #F1F5F9; color: var(--ink); border-bottom-left-radius: 4px; }
.apex-typing .apex-dots { display: inline-block; animation: apex-dots 1.2s linear infinite; }
@keyframes apex-dots { 0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; } }
.apex-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.apex-input input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.apex-input input:focus { outline: none; border-color: var(--brand); }
@media (max-width: 700px) {
  .apex-body { grid-template-columns: 1fr; }
  .apex-sidebar { display: none; }
}

/* Apex inline panel */
.apex-inline { background: linear-gradient(135deg, rgba(14,122,60,0.06) 0%, rgba(14,122,60,0.02) 100%); border: 1px solid #B7E0C5; border-radius: 14px; padding: 18px; margin: 14px 0; }
.apex-inline-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.apex-inline-list { margin: 0 0 12px; padding-left: 18px; color: var(--ink); }
.apex-inline-list li { padding: 3px 0; font-size: 14px; }

/* Deal terms / memo */
.term-row { display: grid; grid-template-columns: 200px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F1F5F9; font-size: 14px; }
.term-row .term-label { color: var(--muted); font-weight: 500; }
.term-row .term-val { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) {
  .term-row { grid-template-columns: 1fr; gap: 2px; }
}

/* Print-styled memo */
.memo-sheet { background: white; max-width: 880px; margin: 24px auto; padding: 48px; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 30px rgba(15,23,42,0.06); }
.memo-section { margin-top: 28px; }
.memo-section h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 12px; }
.memo-watermark { position: absolute; opacity: 0.05; font-size: 120px; transform: rotate(-30deg); top: 40%; left: 20%; pointer-events: none; color: var(--brand); font-weight: 800; }
@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .memo-sheet { border: none; box-shadow: none; margin: 0; padding: 24px; }
}

/* LP / Investor card grid */
.lp-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.lp-card:hover { transform: translateY(-2px); box-shadow: 0 14px 24px rgba(15,23,42,0.08); }

/* Deal status chips */
.deal-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.deal-status-new { background: #DBEAFE; color: #1D4ED8; }
.deal-status-counter { background: #FEF3C7; color: #B45309; }
.deal-status-accepted { background: var(--brand-50); color: var(--brand); }
.deal-status-declined { background: #FEE2E2; color: var(--red); }

/* Role chooser cards */
.role-chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role-card { background: white; border: 2px solid var(--border); border-radius: 14px; padding: 28px; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; text-align: left; }
.role-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 18px 36px rgba(14,122,60,0.15); }
.role-card.selected { border-color: var(--brand); background: var(--brand-50); }
.role-card .role-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
@media (max-width: 700px) {
  .role-chooser { grid-template-columns: 1fr; }
}

/* LP type chooser grid */
.lp-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-type-card { background: white; border: 2px solid var(--border); border-radius: 12px; padding: 18px; cursor: pointer; transition: transform .15s, border-color .15s; }
.lp-type-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.lp-type-card.selected { border-color: var(--brand); background: var(--brand-50); }
@media (max-width: 768px) {
  .lp-type-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .lp-type-grid { grid-template-columns: 1fr; }
}

/* Multi-select chip */
.chip-select { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #F1F5F9; color: #475569; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid transparent; }
.chip-select.selected { background: var(--brand-50); color: var(--brand); border-color: var(--brand); }

/* Counter rotating testimonial */
.rotating-quotes { position: relative; min-height: 130px; }
.rotating-quotes .quote { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.rotating-quotes .quote.active { opacity: 1; }

/* Soft scroll-in animation */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Mobile login brand banner */
@media (max-width: 768px) {
  .login-split { grid-template-columns: 1fr; }
  .login-brand { display: flex !important; padding: 24px; min-height: auto; }
  .login-brand .login-brand-full { display: none; }
  .login-brand .login-brand-mobile { display: block; }
}
.login-brand .login-brand-mobile { display: none; }

/* ===== 14-change extensions ===== */

/* Calendar (Portal.calendar modal) */
.pcal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pcal-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.pcal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; padding: 4px 0; }
.pcal-dow > div { text-align: center; }
.pcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pcal-day { aspect-ratio: 1 / 1; border: 1px solid var(--border); background: white; border-radius: 6px; font-size: 13px; color: var(--ink); cursor: pointer; padding: 0; }
.pcal-day:hover { background: var(--brand-50); border-color: var(--brand); }
.pcal-day.pcal-past { background: #F8FAFC; color: #CBD5E1; cursor: not-allowed; }
.pcal-day.pcal-past:hover { background: #F8FAFC; border-color: var(--border); }
.pcal-day.pcal-picked { background: var(--brand); color: white; border-color: var(--brand); font-weight: 700; }
.pcal-slots-title { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; margin: 14px 0 6px; }
.pcal-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pcal-slot { padding: 6px 8px; border: 1px solid var(--border); background: white; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--ink); }
.pcal-slot:hover { background: var(--brand-50); border-color: var(--brand); }
.pcal-slot.pcal-slot-sel { background: var(--brand); color: white; border-color: var(--brand); font-weight: 600; }
.pcal-lbl { font-size: 12px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; }
.pcal-in { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
@media (max-width: 480px) { .pcal-slots { grid-template-columns: repeat(3, 1fr); } }

/* Net-worth chip + status pills */
.nw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: 12px; font-weight: 700; }
.nw-chip.down { background: #FEE2E2; color: var(--red); }
.deal-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: box-shadow .2s, transform .2s; }
.deal-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,23,42,0.08); }

/* Doc tabs / vault */
.vault-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.vault-tab { padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.vault-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.dropzone { border: 2px dashed var(--border); border-radius: 12px; padding: 24px; text-align: center; color: var(--muted); background: white; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag-over { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }

/* Report card */
.rep-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.rep-card .rep-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.rep-card .rep-kpi { background: var(--surface); border-radius: 8px; padding: 10px; }
.rep-card .rep-kpi-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.rep-card .rep-kpi-val { font-size: 16px; color: var(--ink); font-weight: 700; margin-top: 2px; }
@media (max-width: 600px) { .rep-card .rep-kpis { grid-template-columns: repeat(2, 1fr); } }

/* Cadence chip */
.cadence-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: #DBEAFE; color: #1D4ED8; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.cadence-chip.monthly { background: #FEF3C7; color: #B45309; }
.cadence-chip.daily { background: #FEE2E2; color: var(--red); }
.cadence-chip.weekly { background: #E0E7FF; color: #4338CA; }
.cadence-chip.yearly { background: var(--brand-50); color: var(--brand); }

/* Timeline (capital activity) */
.tl-row { display: grid; grid-template-columns: 110px 36px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid #F1F5F9; align-items: center; }
.tl-row:last-child { border-bottom: none; }
.tl-dot { width: 28px; height: 28px; border-radius: 999px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.tl-dot.dist { background: #DBEAFE; color: #1D4ED8; }
.tl-dot.fee { background: #FEF3C7; color: #B45309; }
.tl-dot.carry { background: #F1F5F9; color: #475569; }
@media (max-width: 700px) { .tl-row { grid-template-columns: 1fr; gap: 6px; } .tl-row .tl-amt { text-align: left; } }

/* GP tier card */
.tier-card { background: white; border: 2px solid var(--border); border-radius: 14px; padding: 24px; position: relative; transition: transform .2s, box-shadow .2s; }
.tier-card.featured { border-color: var(--brand); box-shadow: 0 24px 50px rgba(14,122,60,0.14); }
.tier-card:hover { transform: translateY(-3px); }
.tier-card .tier-ribbon { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--brand); color: white; padding: 4px 14px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }

/* Wrapper chip */
.wrap-chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; background: var(--brand-50); color: var(--brand); font-size: 12px; font-weight: 700; }
