:root {
  --bg: #f1f6f3;
  --surface: #fbfcfb;
  --surface-2: #eef5f1;
  --ink: #21352f;
  --muted: #71827c;
  --line: #dce7e1;
  --green: #4c8f7b;
  --green-dark: #2f6758;
  --green-pale: #dcece5;
  --blue-pale: #e4edf5;
  --yellow-pale: #f7edd1;
  --red-pale: #f3dfdc;
  --purple-pale: #e9e3f2;
  --shadow: 0 14px 40px rgba(36, 69, 58, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 248px; display: flex; flex-direction: column; padding: 28px 20px 22px; background: rgba(251,252,251,.96); border-right: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 12px; }
.brand-mark { width: 40px; height: 40px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: var(--green); color: white; font-weight: 800; box-shadow: 0 8px 20px rgba(76,143,123,.24); }
.main-nav { display: grid; gap: 6px; }
.nav-item { width: 100%; border: 0; border-radius: 12px; background: transparent; padding: 11px 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; color: #5f716b; text-align: left; transition: .18s ease; }
.nav-item span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #eef3f0; font-size: 12px; font-weight: 800; }
.nav-item:hover { background: #f2f7f4; color: var(--ink); }
.nav-item.is-active { background: var(--green-pale); color: var(--green-dark); font-weight: 700; }
.nav-item.is-active span { background: white; }
.sidebar-note { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.sidebar-note strong { color: var(--ink); font-weight: 700; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #73aa8e; box-shadow: 0 0 0 5px #deebe4; }
.logout-form { margin: 10px 0 0; }
.logout-form button { width: 100%; padding: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }

.main-content { min-height: 100vh; margin-left: 248px; padding: 32px 42px 24px; }
.topbar { min-height: 64px; display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.topbar h1 { margin: 1px 0 0; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -.035em; }
.eyebrow { margin: 0; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.topbar-badge { margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--muted); font-size: 12px; font-weight: 700; }
.topbar-download { margin-left: auto; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 7px 13px 7px 8px; border: 1px solid #cfe1d8; border-radius: 14px; background: #e2efe9; color: var(--green-dark); text-decoration: none; box-shadow: 0 7px 20px rgba(47,103,88,.08); transition: .18s ease; }
.topbar-download:hover { transform: translateY(-1px); background: #d7e9e1; box-shadow: 0 9px 24px rgba(47,103,88,.13); }
.download-symbol { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: white; font-size: 18px; font-weight: 800; }
.download-copy { display: grid; line-height: 1.2; }
.download-copy strong { font-size: 12px; }
.download-copy small { margin-top: 2px; color: #718a81; font-size: 9px; }
.topbar-download + .topbar-badge { margin-left: 8px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; }

.view { display: none; animation: fade-up .28s ease; }
.view.is-active { display: block; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero-card { min-height: 210px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: center; padding: 38px 42px; border-radius: 24px; background: linear-gradient(135deg,#dbece4 0%,#edf4ef 58%,#e5eef3 100%); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-card::after { content: ""; position: absolute; right: -70px; top: -100px; width: 280px; height: 280px; border: 48px solid rgba(255,255,255,.35); border-radius: 50%; }
.hero-card h2 { max-width: 680px; margin: 8px 0 10px; font-size: clamp(25px,3.1vw,42px); line-height: 1.08; letter-spacing: -.045em; }
.hero-card p:not(.eyebrow) { max-width: 640px; margin: 0; color: #5e756d; }
.hero-value { position: relative; z-index: 1; padding: 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.58); text-align: right; backdrop-filter: blur(10px); }
.hero-value span, .hero-value small { display: block; color: var(--muted); }
.hero-value strong { display: block; margin: 4px 0; font-size: clamp(28px,3.5vw,48px); line-height: 1; letter-spacing: -.05em; color: var(--green-dark); }

.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 20px 0; }
.metric-card, .panel { border: 1px solid rgba(220,231,225,.9); background: rgba(251,252,251,.92); box-shadow: 0 10px 30px rgba(35,69,58,.05); }
.metric-card { min-height: 126px; padding: 22px; border-radius: var(--radius); }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card strong { display: block; margin: 8px 0 2px; font-size: 28px; line-height: 1; letter-spacing: -.035em; }
.metric-card small { font-size: 12px; }
.panel-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.7fr); gap: 20px; }
.panel { padding: 24px; border-radius: var(--radius); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 20px; }
.panel-heading h3 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.02em; }
.legend { color: var(--muted); font-size: 12px; }
.chart-placeholder { min-height: 250px; display: grid; place-items: center; border-radius: 14px; background: repeating-linear-gradient(0deg,transparent 0,transparent 49px,#edf2ef 50px); color: var(--muted); }
.quick-list { display: grid; gap: 4px; }
.quick-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.quick-list > div:last-child { border-bottom: 0; }
.quick-list span { color: var(--muted); }
.quick-list strong { white-space: nowrap; }
.soft-button { border: 0; background: transparent; cursor: pointer; }
.quick-action { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 8px; padding: 11px 13px; border-radius: 11px; background: var(--surface-2); color: var(--green-dark); text-align: left; font-weight: 700; }
.quick-action:hover { background: var(--green-pale); }
.quick-action span { font-size: 17px; }

.annual-chart { min-height: 286px; }
.chart-key { display: flex; justify-content: flex-end; gap: 16px; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.chart-key span { display: flex; align-items: center; gap: 5px; }
.chart-key i { width: 9px; height: 9px; display: block; border-radius: 3px; }
.key-in { background: #85b7a5; }
.key-out { background: #c8d7e3; }
.key-debt { background: #d7ae67; border-radius: 50% !important; }
.chart-columns { height: 250px; display: grid; grid-template-columns: repeat(7,minmax(54px,1fr)); gap: 9px; align-items: end; padding: 8px 0 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(0deg,transparent 0,transparent 49px,#edf2ef 50px); }
.chart-year { min-width: 0; height: 100%; display: grid; grid-template-rows: 1fr auto auto; text-align: center; }
.chart-year > strong { margin-top: 7px; font-size: 12px; }
.chart-year > small { color: var(--muted); font-size: 9px; }
.chart-plot { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; position: relative; }
.flow-bar { width: min(16px,35%); min-height: 3px; border-radius: 5px 5px 1px 1px; transition: height .5s ease; }
.flow-in { background: #85b7a5; }
.flow-out { background: #c8d7e3; }
.debt-dot { position: absolute; left: 50%; z-index: 2; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: #d7ae67; transform: translate(-50%,50%); box-shadow: 0 2px 6px rgba(90,65,28,.24); }
.debt-dot b { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); color: #8d6b32; font-size: 8px; white-space: nowrap; }

.section-intro { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(320px,1fr); gap: 40px; align-items: end; margin: 2px 0 24px; }
.section-intro h2 { margin: 6px 0 0; font-size: clamp(28px,3vw,42px); line-height: 1.05; letter-spacing: -.045em; }
.section-intro > p { max-width: 720px; margin: 0; color: var(--muted); }
.toolbar { display: grid; grid-template-columns: 120px 170px minmax(190px,1fr) minmax(210px,1.25fr) 140px; gap: 10px; align-items: end; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(251,252,251,.86); }
.select-control, .search-control { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.select-control select, .search-control input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: white; color: var(--ink); }
.select-control select:focus, .search-control input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-pale); }
.table-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 30px rgba(35,69,58,.05); overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f2f6f4; color: var(--muted); text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #e6eeea; vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8fbf9; }
.transaction-table { min-width: 900px; }
.salary-table { min-width: 1160px; }
.rent-table { min-width: 1120px; }
.compact-table { min-width: 670px; }
.amount-cell { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.positive { color: var(--green-dark); }
.negative { color: #a76058; }
.nowrap { white-space: nowrap; }
.row-number { display: inline-flex; min-width: 38px; justify-content: center; padding: 4px 6px; border-radius: 7px; background: #edf3f0; color: var(--muted); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.account-name { color: var(--muted); }
.counterparty { display: block; color: var(--ink); font-weight: 700; }
.subline { display: block; max-width: 420px; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-paye { background: var(--green-pale); color: #356a59; }
.status-a-rembourser { background: var(--yellow-pale); color: #8a6729; }
.status-transfert { background: var(--blue-pale); color: #526f86; }
.status-apport { background: #dcebea; color: #3d716f; }
.status-emprunt, .status-salaire { background: var(--purple-pale); color: #67547c; }
.status-huissier { background: var(--red-pale); color: #8c4c44; }
.status-impot-tva { background: #f4e4d7; color: #8b6040; }
.status-frais-bancaires { background: #eceeed; color: #646b68; }
.status-loyer-charges { background: #e0edf1; color: #4c727c; }
.table-summary { display: flex; justify-content: space-between; gap: 20px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafcfb; color: var(--muted); font-size: 11px; }
.table-summary strong { color: var(--ink); }
.table-state { min-height: 180px; }
.loading { min-height: 170px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1s infinite alternate; }
.loading span:nth-child(2) { animation-delay: .2s; }
.loading span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { to { opacity: .25; transform: translateY(-4px); } }
.empty-state { min-height: 180px; display: grid; place-content: center; gap: 3px; text-align: center; }
.empty-state span { color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 15px; border-top: 1px solid var(--line); }
.pagination button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; font-size: 11px; }
.pagination button:hover:not(:disabled), .pagination button.is-current { border-color: var(--green); background: var(--green-pale); color: var(--green-dark); }
.pagination button:disabled { opacity: .45; cursor: default; }

.debt-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; margin-bottom: 20px; padding: 30px 34px; border-radius: 22px; background: linear-gradient(135deg,#f5ebce,#f7f2df); box-shadow: var(--shadow); }
.debt-hero > div:first-child > strong { display: block; margin: 8px 0 4px; color: #866523; font-size: clamp(38px,5vw,64px); line-height: 1; letter-spacing: -.055em; }
.debt-hero > div:first-child > span { color: #8b7e62; }
.debt-hero-note { padding: 18px 20px; border: 1px solid rgba(255,255,255,.8); border-radius: 14px; background: rgba(255,255,255,.45); }
.debt-hero-note p { margin: 4px 0 0; color: #7c735f; }
.debt-layout, .balance-layout { grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); }
.comparison-stack { display: grid; gap: 2px; }
.comparison-stack > div { display: grid; gap: 3px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.comparison-stack > div:last-child { border-bottom: 0; }
.comparison-stack span { color: var(--muted); font-size: 11px; }
.comparison-stack strong { font-size: 22px; letter-spacing: -.03em; }
.comparison-stack .gap { margin-top: 8px; padding: 13px; border: 0; border-radius: 12px; background: var(--red-pale); color: #854a43; }
.comparison-stack .gap span { color: #9a665f; }
.debt-ledger { margin-top: 20px; padding-bottom: 0; overflow: hidden; }
.debt-ledger > .panel-heading { margin-bottom: 12px; }
.inline-toolbar { grid-template-columns: 150px minmax(240px,1fr); margin: 0 0 16px; padding: 0; border: 0; background: transparent; }

.salary-toolbar { grid-template-columns: 150px 1fr; }
.toolbar-note { align-self: center; color: var(--muted); font-size: 12px; }
.salary-metrics { grid-template-columns: repeat(4,1fr); }
.method { display: block; font-weight: 700; }

.exit-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-bottom: 20px; }
.exit-cards article { display: grid; gap: 10px; min-height: 130px; align-content: center; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 10px 30px rgba(35,69,58,.05); }
.exit-cards span { color: var(--muted); font-size: 12px; }
.exit-cards strong { font-size: 29px; letter-spacing: -.04em; }
.exit-cards .current { background: var(--yellow-pale); border-color: #eadbb4; color: #7d602a; }
.source-pill { padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 10px; text-decoration: none; }
a.source-pill:hover { background: var(--green-pale); color: var(--green-dark); }
.balance-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.balance-item { display: grid; gap: 5px; padding: 16px; border-radius: 12px; background: var(--surface-2); }
.balance-item span { color: var(--muted); font-size: 11px; }
.balance-item strong { font-size: 21px; letter-spacing: -.03em; }
.balance-item.highlight { background: var(--red-pale); color: #884d46; }
.secondary-layout { grid-template-columns: minmax(280px,.65fr) minmax(0,1.55fr); margin-top: 20px; }
.prose { margin: 0; color: var(--muted); line-height: 1.7; }
.prose strong { color: var(--ink); }
.method-list { display: grid; gap: 12px; margin: 0; padding-left: 22px; color: var(--muted); }
.method-list li::marker { color: var(--green); font-weight: 800; }
.final-note { margin-top: 20px; padding: 22px 24px; border: 1px solid #d7e5de; border-radius: 16px; background: #e7f1ec; }
.final-note p { margin: 5px 0 0; color: #5e716a; }
.final-note b { color: var(--green-dark); }
.fatal-error { max-width: 600px; margin: 14vh auto; padding: 30px; border-radius: var(--radius); background: var(--red-pale); text-align: center; }
.app-footer { padding: 26px 4px 6px; color: var(--muted); text-align: center; font-size: 11px; }
.mobile-overlay { display: none; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 0,#dcece5 0,transparent 38%), var(--bg); }
.login-card { width: min(430px,100%); padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.login-card h1 { margin: 12px 0 4px; font-size: 32px; letter-spacing: -.04em; }
.login-card > p:not(.eyebrow) { color: var(--muted); }
.login-card .brand-mark { margin-bottom: 24px; }
.login-card form { display: grid; gap: 10px; margin-top: 24px; }
.login-card label { font-weight: 700; font-size: 13px; }
.login-card input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: white; }
.login-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-pale); }
.login-card button { margin-top: 4px; padding: 12px; border: 0; border-radius: 11px; background: var(--green); color: white; cursor: pointer; font-weight: 700; }
.login-error { padding: 10px 12px; border-radius: 10px; background: var(--red-pale); color: #8c4c44; }

.closure-page { min-height: 100vh; padding: 28px; background: radial-gradient(circle at 12% 8%,#d9ebe3 0,transparent 34%), radial-gradient(circle at 92% 88%,#e1ebf1 0,transparent 30%), var(--bg); }
.closure-shell { width: min(1080px,100%); min-height: calc(100vh - 56px); margin: 0 auto; display: flex; flex-direction: column; }
.closure-brand { display: flex; align-items: center; gap: 12px; padding: 8px 2px; }
.closure-brand strong, .closure-brand small { display: block; }
.closure-brand strong { font-size: 17px; letter-spacing: -.02em; }
.closure-brand small { color: var(--muted); font-size: 11px; }
.closure-grid { flex: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.65fr); gap: clamp(42px,8vw,100px); align-items: center; padding: 62px 0; }
.closure-copy { max-width: 650px; }
.closure-copy h1 { margin: 12px 0 22px; font-size: clamp(52px,8vw,92px); line-height: .94; letter-spacing: -.065em; }
.closure-copy > p:not(.eyebrow) { max-width: 590px; margin: 0; color: #5e746c; font-size: clamp(17px,2vw,20px); line-height: 1.65; }
.closure-message { width: fit-content; max-width: 580px; display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 13px 16px; border: 1px solid rgba(207,225,216,.95); border-radius: 14px; background: rgba(251,252,251,.68); color: var(--muted); font-size: 12px; backdrop-filter: blur(10px); }
.access-card { padding: 32px; border: 1px solid rgba(220,231,225,.95); border-radius: 24px; background: rgba(251,252,251,.93); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.access-card h2 { margin: 8px 0 7px; font-size: 28px; line-height: 1.1; letter-spacing: -.04em; }
.access-card > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.access-card form { display: grid; gap: 9px; margin-top: 24px; }
.access-card label { font-size: 12px; font-weight: 800; }
.access-card input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: white; }
.access-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-pale); }
.access-card button { height: 46px; display: flex; align-items: center; justify-content: space-between; margin-top: 3px; padding: 0 15px; border: 0; border-radius: 11px; background: var(--green); color: white; cursor: pointer; font-weight: 800; }
.access-card button:hover { background: var(--green-dark); }
.access-card button span { font-size: 18px; }
.access-card .login-error { margin-top: 16px; }
.access-card > small { display: block; margin-top: 14px; color: #8a9893; font-size: 10px; }
.closure-footer { padding: 18px 2px 8px; border-top: 1px solid rgba(210,225,217,.8); color: var(--muted); font-size: 11px; }

@media (max-width: 980px) {
  .main-content { padding: 28px 24px 20px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-value { text-align: left; }
  .panel-grid { grid-template-columns: 1fr; }
  .metric-grid, .salary-metrics { grid-template-columns: repeat(2,1fr); }
  .toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .search-control { grid-column: span 2; }
  .debt-hero { grid-template-columns: 1fr; }
  .secondary-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-105%); transition: transform .22s ease; }
  .sidebar.is-open { transform: none; }
  .main-content { margin-left: 0; padding: 20px 16px; }
  .menu-toggle { display: grid; place-items: center; }
  .mobile-overlay { position: fixed; inset: 0; z-index: 20; background: rgba(24,43,36,.22); backdrop-filter: blur(2px); }
  .mobile-overlay.is-open { display: block; }
  .metric-grid, .salary-metrics, .exit-cards { grid-template-columns: 1fr; }
  .hero-card { padding: 28px 24px; }
  .topbar-badge { display: none; }
  .topbar-download { min-height: 42px; margin-left: auto; padding: 5px 9px 5px 6px; border-radius: 12px; }
  .download-symbol { width: 30px; height: 30px; }
  .download-copy strong { font-size: 10px; }
  .download-copy small { display: none; }
  .section-intro { grid-template-columns: 1fr; gap: 12px; }
  .toolbar { grid-template-columns: 1fr; }
  .search-control { grid-column: auto; }
  .chart-columns { gap: 3px; }
  .debt-hero { padding: 24px; gap: 24px; }
  .balance-grid { grid-template-columns: 1fr; }
  .closure-page { padding: 20px; }
  .closure-shell { min-height: calc(100vh - 40px); }
  .closure-grid { grid-template-columns: 1fr; gap: 36px; padding: 54px 0 42px; }
  .closure-copy h1 { font-size: clamp(50px,18vw,72px); }
  .access-card { padding: 26px; }
}
