:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #13213a; background: #f5f1e8; font-variant-numeric: tabular-nums; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: #174ea6; }
.site-header { display: flex; align-items: center; gap: 2rem; min-height: 4.75rem; padding: .8rem clamp(1rem, 4vw, 3rem); background: #101d35; color: #fff; box-shadow: 0 4px 18px #101d3530; }
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; font-size: 1.2rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .55rem; background: linear-gradient(145deg, #3979e8, #16a085); }
nav { display: flex; gap: 1.2rem; margin-right: auto; }
nav a { color: #dce7f8; text-decoration: none; font-size: .9rem; }
nav a:hover { color: #fff; }
.account { display: flex; align-items: center; gap: 1rem; color: #b9c6da; font-size: .78rem; }
.account form { margin: 0; }
.link-button { border: 0; padding: 0; background: transparent; color: #fff; text-decoration: underline; cursor: pointer; }
.container { width: min(100% - 2rem, 92rem); margin: clamp(2rem, 4vw, 4rem) auto; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1.6rem; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -.025em; }
.eyebrow { margin-bottom: .4rem; color: #59708e; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.as-of { margin-bottom: .2rem; color: #68758a; font-size: .82rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.35rem; }
.finance-panel { position: relative; overflow: hidden; min-height: 650px; padding: clamp(1.35rem, 3vw, 2.5rem); border: 1px solid #fff; border-radius: 1.35rem; background: #fffdf8; box-shadow: 0 18px 50px #15294b12; }
.finance-panel::before { position: absolute; inset: 0 0 auto; height: .35rem; content: ''; background: linear-gradient(90deg, #2369d8, #4ba1ff); }
.recovery-panel::before { background: linear-gradient(90deg, #d69e2e, #16a085); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; padding-bottom: 2rem; }
.status-dot { display: flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: 999px; background: #eaf2ff; color: #2257a7; font-size: .72rem; font-weight: 750; }
.status-dot::before { width: .5rem; height: .5rem; border-radius: 50%; background: #2e73db; content: ''; }
.status-dot.gold { background: #fff4d8; color: #89600c; }
.status-dot.gold::before { background: #d69e2e; }
.hero-metric { padding: 1.6rem 0 2rem; border-bottom: 1px solid #e5e9ef; }
.hero-metric span, .metric-grid span { display: block; margin-bottom: .45rem; color: #607089; font-size: .76rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.hero-metric strong { display: block; color: #1c63ce; font-size: clamp(2.65rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.06em; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 2rem 0; }
.metric-grid .wide { grid-column: 1 / -1; }
.metric-grid strong { font-size: clamp(1.4rem, 2.5vw, 2.1rem); letter-spacing: -.04em; }
.metric-grid .copper strong { color: #b56624; }
.cash-bar { display: flex; height: 1rem; overflow: hidden; border: 3px solid #e4ebf5; border-radius: 999px; background: repeating-linear-gradient(90deg, #3276dc 0, #3276dc 8px, #4c8bea 8px, #4c8bea 12px); }
.cash-bar-spent { background: repeating-linear-gradient(135deg, #b56624 0, #b56624 8px, #d68a41 8px, #d68a41 12px); transition: width .3s ease; }
.bar-legend { display: flex; justify-content: space-between; gap: 1rem; margin-top: .75rem; color: #66758a; font-size: .75rem; }
.swatch { display: inline-block; width: .55rem; height: .55rem; margin-right: .35rem; border-radius: 2px; background: #3276dc; }
.swatch.spent { background: #b56624; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.45rem; padding: .55rem .9rem; border: 1px solid transparent; border-radius: .55rem; font: inherit; font-size: .82rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.button.primary { background: #1f60c5; color: #fff; }
.button.secondary { border-color: #cad3e0; background: #fff; color: #233a5d; }
.button.gold-button { background: #a66f09; color: #fff; }
.quiet-link { margin-left: auto; font-size: .78rem; font-weight: 700; }
.recovery-hero { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); padding: .5rem 0 1.5rem; }
.gauge { --angle: calc(var(--progress) * 3.6deg); display: grid; place-items: center; width: 180px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#15a085 0 var(--angle), #d8a42c var(--angle), #ece8df var(--angle)); box-shadow: inset 0 0 0 1px #ffffff80; }
.gauge::before { grid-area: 1 / 1; width: 138px; aspect-ratio: 1; border-radius: 50%; background: #fffdf8; box-shadow: inset 0 2px 8px #14223b12; content: ''; }
.gauge div { z-index: 1; grid-area: 1 / 1; text-align: center; }
.gauge strong { display: block; font-size: 2.2rem; letter-spacing: -.05em; }
.gauge span { color: #67758a; font-size: .65rem; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.hero-metric.savings { border: 0; }
.hero-metric.savings strong { color: #137e70; font-size: clamp(2rem, 4vw, 3.7rem); }
.hero-metric small { display: block; margin-top: .8rem; color: #68758a; }
.recovery-metrics { padding: 1rem 0; }
.recovery-metrics .gap strong { color: #aa3d35; }
.recovery-metrics .surplus strong { color: #137e70; }
.trend { padding: 1rem; border: 1px solid #e5e7df; border-radius: .8rem; background: #faf9f4; }
.trend-title { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 750; }
.trend-title small { color: #718096; font-weight: 500; }
.trend svg { display: block; width: 100%; height: 95px; margin-top: .3rem; overflow: visible; }
.trend polyline { fill: none; stroke: #159180; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.trend circle { fill: #d5a028; stroke: #fff; stroke-width: 2; }
.grid-line { stroke: #dfe4e6; stroke-width: 1; }
.trend-empty, .empty-note { padding: 1rem; color: #6a7688; font-size: .82rem; text-align: center; }
.messages { width: min(100% - 2rem, 92rem); margin: 1rem auto -1rem; }
.message { padding: .8rem 1rem; border-radius: .5rem; background: #e9f7ef; color: #18663d; }
.message.error { background: #fff0ee; color: #982f28; }
.form-card, .history-card { padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid #fff; border-radius: 1rem; background: #fffdf8; box-shadow: 0 14px 40px #15294b10; }
.form-card { max-width: 42rem; margin: 0 auto; }
.form-card h1 { margin-bottom: 1rem; }
.back { display: inline-block; margin-bottom: 2rem; font-size: .8rem; font-weight: 700; text-decoration: none; }
.field, form > div { display: grid; gap: .4rem; margin: 1rem 0; }
label { font-weight: 720; }
input, textarea, select { width: 100%; padding: .72rem; border: 1px solid #9aa8ba; border-radius: .42rem; background: #fff; color: inherit; font: inherit; }
input[type=checkbox] { width: auto; }
textarea { min-height: 7rem; resize: vertical; }
.errorlist { margin: .3rem 0; color: #a22f29; }
.confirmation-total { display: flex; justify-content: space-between; padding: 1rem; border-radius: .6rem; background: #fff3d4; }
.settings-grid, .history-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.clean-list { padding: 0; list-style: none; }
.clean-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #e6e8e5; }
.clean-list small { display: block; color: #748094; }
.history-card { margin-bottom: 1.25rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: .8rem; border-bottom: 1px solid #e4e7e8; text-align: left; vertical-align: top; }
th { color: #637188; font-size: .7rem; text-transform: uppercase; }
.void-form { display: flex; gap: .3rem; margin: 0; }
.void-form input { width: 7rem; padding: .35rem; font-size: .75rem; }
.void-form button { border: 0; background: transparent; color: #a22f29; cursor: pointer; }
.voided { color: #9a3c35; font-size: .75rem; }
:focus-visible { outline: .2rem solid #f3b735; outline-offset: .15rem; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } .finance-panel { min-height: auto; } .site-header { flex-wrap: wrap; } .account { margin-left: auto; } }
@media (max-width: 620px) { .site-header { gap: 1rem; } nav { order: 3; width: 100%; justify-content: space-between; } .account > span { display: none; } .page-heading { align-items: start; flex-direction: column; gap: .8rem; } .recovery-hero { grid-template-columns: 1fr; justify-items: center; } .hero-metric.savings { width: 100%; text-align: center; } .metric-grid, .settings-grid, .history-grid { grid-template-columns: 1fr; } .bar-legend { flex-direction: column; } .quiet-link { margin-left: 0; } }
.import-choice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid #e2e6e8; }
.import-choice input { width: auto; }
fieldset { margin: 1.25rem 0; padding: 1rem; border: 1px solid #d5dce4; border-radius: .6rem; }
legend { padding: 0 .4rem; font-weight: 750; }
.financial-breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem 1rem; margin: -.25rem 0 1rem; padding: .8rem 1rem; border-radius: .6rem; background: #f3f5f2; color: #68758a; font-size: .7rem; }
.financial-breakdown span { display: flex; justify-content: space-between; gap: .5rem; }
.financial-breakdown strong { color: #273a55; }
.setup-card { margin-top: clamp(2rem, 8vh, 6rem); }
.privacy-note { margin: 1.5rem 0 0; color: #69778b; font-size: .78rem; }
@media (max-width: 620px) { .financial-breakdown { grid-template-columns: 1fr; } }
