/* Transitional Investment Partners — design system (no frameworks, no external fonts) */
:root {
  --navy-950: #060e22; --navy-900: #0a1733; --navy-800: #0f2147; --navy-700: #172e5b; --navy-600: #203d75; --navy-400: #4c6eae; --navy-200: #adbfe0; --navy-100: #d6dff0; --navy-50: #eef2f9;
  --gold-600: #8c6a28; --gold-500: #b08733; --gold-400: #c9a14a; --gold-300: #d9b96c; --gold-100: #f4ead0; --gold-50: #fbf7ec;
  --ink: #1f2530; --ink-2: #4a5262; --muted: #6b7385; --line: #e2e8f0; --bg: #f6f8fb; --white: #fff;
  --ok: #047857; --ok-bg: #ecfdf5; --warn: #92400e; --warn-bg: #fffbeb; --bad: #b91c1c; --bad-bg: #fef2f2;
  --radius: 12px; --shadow: 0 1px 2px rgba(10,23,51,.06), 0 4px 16px rgba(10,23,51,.06);
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--navy-700); }
a:hover { color: var(--navy-900); }
h1, h2, h3 { color: var(--navy-900); line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
code { font-size: .85em; background: #eef1f6; padding: .1em .35em; border-radius: 4px; word-break: break-all; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: .5rem 1rem; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.pad { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pad-xl { padding-top: 5rem; padding-bottom: 5rem; }
.mt { margin-top: 1rem; } .mt-lg { margin-top: 2rem; } .mb { margin-bottom: 1rem; } .mb-lg { margin-bottom: 2rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .xs { font-size: .75rem; } .block { display: block; } .bold { font-weight: 650; }
.row { display: flex; flex-wrap: wrap; align-items: center; } .gap-sm { gap: .5rem; } .gap { gap: 1rem; } .between { justify-content: space-between; }
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.split { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) 360px; } .split.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } .split.split-left { grid-template-columns: 300px minmax(0, 1fr); } .span-2 { grid-column: span 2; } }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .4rem; }
.eyebrow.light { color: var(--gold-300); }
.lead { color: var(--ink-2); max-width: 46rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .62rem 1.05rem; border-radius: 9px; border: 1px solid transparent; background: var(--navy-800); color: #fff; font: 600 .9rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--navy-700); color: #fff; }
.btn-gold { background: var(--gold-400); color: var(--navy-950); } .btn-gold:hover { background: var(--gold-300); color: var(--navy-950); }
.btn-secondary { background: #fff; color: var(--navy-800); border-color: var(--navy-200); } .btn-secondary:hover { background: var(--navy-50); color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--navy-800); } .btn-ghost:hover { background: var(--navy-50); color: var(--navy-900); }
.btn-danger { background: var(--bad); } .btn-danger:hover { background: #991b1b; }
.btn-sm { padding: .35rem .7rem; font-size: .8rem; }
.btn.disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-300); text-decoration: underline; cursor: pointer; font: inherit; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--navy-900); letter-spacing: .02em; }
.logo-sub { font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); }
.logo-inv .logo-name { color: #fff; } .logo-inv .logo-sub { color: var(--gold-300); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 1rem; }
.main-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .5rem .7rem; border-radius: 7px; text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--navy-50); color: var(--navy-900); }
.header-cta { display: flex; gap: .4rem; }
.menu-btn { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: .7rem .5rem; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 6px; }
.mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .75rem; }
@media (max-width: 1080px) { .main-nav, .header-cta { display: none; } .menu-btn { display: block; } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1000px 400px at 90% -10%, rgba(201,161,74,.18), transparent 60%), linear-gradient(135deg, var(--navy-950), var(--navy-900) 45%, var(--navy-700)); }
.hero .container { padding-top: 3.5rem; padding-bottom: 3.75rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 48rem; }
.hero-text { color: var(--navy-100); font-size: 1.1rem; max-width: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.home-hero .container { display: grid; gap: 2.5rem; padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 980px) { .home-hero .container { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.home-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
.glass { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); border-radius: 18px; padding: 1.5rem; }
.glass dl { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1.2rem 0; }
.glass dl div { background: rgba(6,14,34,.45); border-radius: 10px; padding: .7rem; }
.glass dt { font-weight: 650; } .glass dd { margin: 0; color: var(--navy-200); font-size: .85rem; }
.text-link-light { color: #fff; font-weight: 600; text-decoration-color: var(--gold-400); text-underline-offset: 4px; align-self: center; }

/* Sections & cards */
.section { padding: 4rem 0; } .section-white { background: #fff; }
.section-title { max-width: 42rem; margin-bottom: 2rem; }
.section-title h2 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; min-width: 0; }
.card > h2:first-child, .card-head h2 { margin-bottom: .9rem; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.card-link:hover { transform: translateY(-2px); border-color: var(--gold-300); color: inherit; }
.accent-bar { width: 40px; height: 4px; background: var(--gold-400); border-radius: 4px; margin-bottom: 1rem; }
.value { border-left: 4px solid var(--gold-400); }
.list { margin: 0; padding-left: 1.15rem; color: var(--ink-2); } .list li { margin-bottom: .3rem; }
.checklist { list-style: none; padding: 0; margin: 0; } .checklist li { padding-left: 1.5rem; position: relative; margin-bottom: .45rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-500); font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem 1.5rem; margin: 0; font-size: .92rem; }
.dl-grid dt { color: var(--muted); font-size: .82rem; } .dl-grid dd { margin: 0; font-weight: 550; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.steps li { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; font-weight: 550; color: var(--navy-900); }
.num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: var(--gold-300); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; }
.timeline { list-style: none; padding: 0 0 0 2.4rem; margin: 0; border-left: 2px solid var(--gold-300); }
.timeline > li { position: relative; margin-bottom: 1.1rem; }
.timeline > li .num { position: absolute; left: -3.55rem; top: .6rem; box-shadow: 0 0 0 5px var(--bg); }
.cta-band { background: var(--navy-900); color: #fff; border-radius: 18px; padding: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; font-family: var(--serif); font-size: 1.6rem; } .cta-band p { color: var(--navy-200); margin: 0; }
.prose p, .prose li { color: var(--ink-2); } .prose h2 { font-family: var(--serif); font-size: 1.45rem; margin-top: 2rem; }
.prose section:first-child h2 { margin-top: 0; }
.toc { position: sticky; top: 90px; align-self: start; } .toc ol, .toc ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; } .toc a { display: block; padding: .3rem .5rem; color: var(--ink-2); text-decoration: none; border-radius: 6px; } .toc a:hover { background: var(--navy-50); }
.page-body { padding-top: 2rem; padding-bottom: 3rem; }

/* Badges, alerts, placeholders */
.badge { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; border: 1px solid; vertical-align: middle; }
.badge-neutral { background: #f1f5f9; color: #334155; border-color: #e2e8f0; } .badge-info { background: var(--navy-50); color: var(--navy-700); border-color: var(--navy-100); }
.badge-success { background: var(--ok-bg); color: var(--ok); border-color: #a7f3d0; } .badge-warning { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.badge-danger { background: var(--bad-bg); color: var(--bad); border-color: #fecaca; } .badge-gold { background: var(--gold-50); color: var(--gold-600); border-color: var(--gold-100); }
.alert { border-radius: 10px; padding: .85rem 1rem; font-size: .92rem; border: 1px solid; margin-bottom: 1rem; }
.alert div > :last-child { margin-bottom: 0; }
.alert-title { font-weight: 700; margin-bottom: .2rem; }
.alert-info { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy-800); } .alert-success { background: var(--ok-bg); border-color: #a7f3d0; color: #065f46; }
.alert-warning { background: var(--warn-bg); border-color: #fde68a; color: var(--warn); } .alert-danger { background: var(--bad-bg); border-color: #fecaca; color: #991b1b; }
.alert-gold { background: var(--gold-50); border-color: var(--gold-300); color: var(--gold-600); } .alert-neutral { background: #f8fafc; border-color: var(--line); color: var(--ink-2); }
.placeholder { border: 1px dashed var(--gold-400); background: var(--gold-50); color: var(--gold-600); border-radius: 4px; padding: 0 .3rem; font-size: .88em; }
.empty { border: 1px dashed #cbd5e1; background: #f8fafc; border-radius: var(--radius); padding: 2.2rem 1.5rem; text-align: center; }
.empty-title { font-weight: 650; color: var(--navy-900); margin-bottom: .3rem; }
.flashes { margin: 1rem 0; }

/* Forms */
form { margin: 0; }
.form { display: grid; gap: 1rem; align-content: start; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.field .req { color: var(--bad); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=file], select, textarea {
  width: 100%; padding: .62rem .75rem; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; font: inherit; font-size: .93rem; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-400); box-shadow: 0 0 0 3px var(--navy-100); }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.hint { font-size: .78rem; color: var(--muted); margin: .3rem 0 0; }
.field-error { font-size: .8rem; color: var(--bad); font-weight: 600; margin: .3rem 0 0; }
.check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: .25rem; width: 16px; height: 16px; flex: none; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.inline-form .field { flex: 1 1 180px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 160px; }
.strength { display: flex; gap: 4px; margin-top: .5rem; } .strength i { flex: 1; height: 5px; border-radius: 4px; background: #e2e8f0; }
.strength[data-score="1"] i:nth-child(-n+1), .strength[data-score="2"] i:nth-child(-n+2) { background: #f59e0b; }
.strength[data-score="0"] i:nth-child(-n+1) { background: #ef4444; }
.strength[data-score="3"] i:nth-child(-n+3), .strength[data-score="4"] i { background: #10b981; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pill { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: .85rem; color: var(--ink-2); }
.pill[aria-current="page"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f8fafc; padding: .7rem .9rem; white-space: nowrap; }
td { padding: .7rem .9rem; border-top: 1px solid #f1f5f9; vertical-align: top; }
tr.highlight td { background: var(--gold-50); } tr.overdue td { background: var(--bad-bg); }
.scroll-y { max-height: 26rem; overflow-y: auto; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: .9rem; }

/* Stats */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin: 0; }
.stat-value { font-size: 1.6rem; font-weight: 650; color: var(--navy-900); margin: .4rem 0 0; }
.stat-hint { font-size: .78rem; color: var(--muted); margin: .35rem 0 0; }
.stat.dark { background: var(--navy-900); border-color: var(--navy-900); } .stat.dark .stat-label { color: var(--gold-300); } .stat.dark .stat-value { color: #fff; } .stat.dark .stat-hint { color: var(--navy-200); }
.bar { display: block; height: 6px; border-radius: 6px; background: #e2e8f0; overflow: hidden; } .bar > span { display: block; height: 100%; background: var(--gold-400); }
.bar.navy > span { background: var(--navy-700); }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.5rem; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; } .crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--navy-800); }

/* Page header */
.page-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--navy-100); margin-top: 4rem; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-tag { margin-top: 1rem; color: var(--navy-200); font-size: .9rem; }
.site-footer h2 { color: var(--gold-300); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: .8rem 0 0; font-size: .9rem; } .site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--navy-100); text-decoration: none; } .site-footer a:hover { color: #fff; }
.footer-legal { border-top: 1px solid var(--navy-800); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .78rem; color: var(--navy-200); }

/* Cookie banner */
.cookie-banner { position: fixed; z-index: 50; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 40px rgba(10,23,51,.2); padding: 1.1rem 1.2rem; font-size: .9rem; }

/* Auth */
.auth-wrap { background: linear-gradient(180deg, var(--navy-50), var(--bg)); padding: 3.5rem 1rem; min-height: 70vh; }
.auth-card { width: 100%; max-width: 500px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 2rem; }
.auth-card h1 { font-size: 1.6rem; margin-top: 1rem; }
.admin-auth { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }

/* Portal / admin shell */
.shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .shell { grid-template-columns: 255px minmax(0, 1fr); } .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.sidebar { background: var(--navy-900); color: #fff; display: flex; flex-direction: column; }
.shell-admin .sidebar { background: var(--navy-950); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; }
.sidebar-toggle { display: none; background: transparent; color: #fff; border: 1px solid var(--navy-600); border-radius: 7px; padding: .35rem .7rem; cursor: pointer; }
.console-label { padding: 0 1.1rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); margin: 0 0 .5rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0 .6rem; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; border-radius: 8px; color: var(--navy-200); text-decoration: none; font-size: .92rem; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; font-weight: 650; }
.count { background: var(--gold-400); color: var(--navy-950); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 1.1rem; font-size: .8rem; color: var(--navy-200); }
.sidebar-foot strong { color: #fff; }
.shell-main { min-width: 0; padding: 2rem 1.25rem 3rem; max-width: 1240px; width: 100%; }
@media (min-width: 1000px) { .shell-main { padding: 2.5rem 2.5rem 4rem; } }
@media (max-width: 999px) {
  .sidebar-toggle { display: block; }
  .side-nav { display: none; padding-bottom: .8rem; } .side-nav.open { display: block; }
  .sidebar-foot { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: 1px solid var(--navy-800); padding: .7rem 1.1rem; }
}

/* Messages */
.thread { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.msg { max-width: 85%; border-radius: 10px; padding: .7rem .85rem; font-size: .9rem; white-space: pre-line; }
.msg.staff { background: var(--navy-50); } .msg.mine { background: var(--gold-50); margin-left: auto; }
.msg-meta { display: block; font-size: .74rem; color: var(--muted); margin-top: .3rem; white-space: normal; }
.history { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line); font-size: .9rem; }
.history li { position: relative; margin-bottom: 1rem; }
.history li::before { content: ""; position: absolute; left: -1.5rem; top: .35rem; width: 11px; height: 11px; border-radius: 50%; background: var(--gold-400); }

/* Accordion (FAQ) */
.accordion { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.accordion details { border-top: 1px solid var(--line); } .accordion details:first-child { border-top: 0; }
.accordion summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 550; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.accordion summary::after { content: "+"; color: var(--gold-500); font-weight: 700; } .accordion details[open] summary::after { content: "−"; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion .answer { padding: 0 1.2rem 1rem; color: var(--ink-2); font-size: .93rem; }

/* Calculators & charts */
.calc { display: grid; gap: 1.5rem; } @media (min-width: 1000px) { .calc { grid-template-columns: 340px minmax(0, 1fr); } }
.calc-results { min-width: 0; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-top: 1.25rem; }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .8rem; color: var(--ink-2); margin-top: .5rem; }
.legend i { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: .35rem; border-radius: 2px; }
.risk-scale { height: 10px; border-radius: 10px; background: linear-gradient(90deg, #34d399, #fcd34d, #f87171); margin-top: 1rem; }

/* Wizard */
.wizard { display: grid; gap: 1.5rem; } @media (min-width: 1000px) { .wizard { grid-template-columns: 230px minmax(0, 1fr); } }
.wizard-steps { list-style: none; padding: 0; margin: .8rem 0 0; font-size: .9rem; }
.wizard-steps a, .wizard-steps span { display: block; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: var(--muted); }
.wizard-steps a { color: var(--navy-800); } .wizard-steps a:hover { background: var(--navy-50); }
.wizard-steps [aria-current="step"] { background: var(--navy-800); color: #fff; font-weight: 650; }
.form-actions { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.2rem; }
.declaration { max-height: 15rem; overflow-y: auto; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; font-size: .88rem; color: var(--ink-2); }
.autosave { font-size: .78rem; color: var(--muted); margin-top: .6rem; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.tabs a { padding: .55rem .85rem; text-decoration: none; color: var(--ink-2); font-size: .9rem; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; margin-bottom: -1px; }
.tabs a[aria-current="page"] { background: #fff; border-color: var(--line); color: var(--navy-900); font-weight: 650; }

/* Dialog */
.dialog { border: 0; border-radius: 14px; padding: 1.5rem; width: min(440px, calc(100% - 24px)); box-shadow: 0 20px 60px rgba(6,14,34,.35); }
.dialog::backdrop { background: rgba(6,14,34,.55); }
.dialog p { color: var(--ink-2); font-size: .93rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }
.dev-error { text-align: left; white-space: pre-wrap; font-size: .75rem; background: #fff; border: 1px solid var(--line); padding: 1rem; overflow: auto; }

@media (max-width: 640px) { h1 { font-size: 1.65rem; } .card { padding: 1.1rem; } .msg { max-width: 100%; } .cta-band { padding: 1.6rem; } .kv { grid-template-columns: 1fr; } .kv dt { margin-top: .4rem; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .sidebar, .cookie-banner, .btn { display: none !important; } .shell { display: block; } }

/* ===== Modern header (glass bar, pill navigation, Law Firm link) ===== */
.site-header { background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(15,33,71,.08); box-shadow: 0 10px 30px -24px rgba(10,23,51,.45); }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--navy-800), var(--gold-400) 50%, var(--navy-800)); }
.header-inner { height: 72px; gap: 1.25rem; }
.main-nav ul { gap: 2px; padding: 4px; background: var(--navy-50); border: 1px solid rgba(15,33,71,.06); border-radius: 999px; }
.main-nav a { position: relative; padding: .5rem .75rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.main-nav a:hover { background: #fff; color: var(--navy-900); box-shadow: 0 2px 8px -2px rgba(10,23,51,.18); }
.main-nav a[aria-current="page"] { background: var(--navy-900); color: #fff; box-shadow: 0 4px 12px -4px rgba(10,23,51,.5); }
.header-cta { align-items: center; gap: .5rem; }
.header-cta .btn, .mobile-cta .btn { border-radius: 999px; }
.btn-crosslink { gap: .45rem; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; padding: .6rem 1.1rem; color: var(--navy-950); background: linear-gradient(135deg, var(--gold-300), var(--gold-400) 55%, var(--gold-600)); border: 1px solid rgba(255,255,255,.4); box-shadow: 0 6px 16px -8px rgba(160,120,40,.8), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-crosslink::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M5 21h14M3 7h18M6 7l-3 7a3 3 0 0 0 6 0zM18 7l-3 7a3 3 0 0 0 6 0z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M5 21h14M3 7h18M6 7l-3 7a3 3 0 0 0 6 0zM18 7l-3 7a3 3 0 0 0 6 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-crosslink:hover { color: var(--navy-950); transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(160,120,40,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.header-cta .btn-gold:not(.btn-crosslink) { background: var(--navy-900); color: #fff; } .header-cta .btn-gold:not(.btn-crosslink):hover { background: var(--navy-700); color: #fff; }
.header-cta .btn-ghost { border-color: transparent; background: transparent; }
.header-cta .btn-ghost:hover { background: var(--navy-50); }
.mobile-cta .btn-crosslink { grid-column: 1 / -1; }
.mobile-menu a:hover { background: var(--navy-50); }
@media (max-width: 1420px) { .main-nav, .header-cta { display: none; } .menu-btn { display: block; } }
.header-inner > a:first-child, .logo-mark { flex: none; }
