:root {
    color-scheme: light;
    font-family: Georgia, "Times New Roman", serif;
    color: #1d2926;
    background: #f4f0e8;
    --ink: #1d2926;
    --muted: #6d7971;
    --line: #d8d9cf;
    --paper: #fbfaf6;
    --green: #315f4e;
    --coral: #d36e4b;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 88% 8%, #e2ebe2 0, transparent 28rem), linear-gradient(135deg, #f4f0e8, #e2ebe2); }
a { color: inherit; text-decoration: none; }
.shell { width: min(100% - 3rem, 76rem); margin: 0 auto; padding: 1.5rem 0 2rem; }
.topbar, .topbar-actions, .brand, .status-dot, .card-label, .panel-heading, footer { display: flex; align-items: center; }
.topbar { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.brand { gap: .7rem; font: 700 .82rem/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; border-radius: 50%; color: #f9f6ed; background: var(--green); font: 700 1.1rem Georgia, serif; }
.topbar-actions { gap: 1.2rem; }
.signed-in { max-width: 14rem; overflow: hidden; color: var(--muted); font: .75rem Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.back-link { color: var(--muted); font: .75rem Arial, sans-serif; }
.back-link:hover { color: var(--ink); }
.status-dot { gap: .45rem; color: var(--muted); font: .75rem Arial, sans-serif; }
.status-dot span { width: .45rem; height: .45rem; border-radius: 50%; background: #6c9f75; }
.icon-button { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 1.2rem Arial, sans-serif; transition: background .2s, color .2s; }
.icon-button { cursor: pointer; }
.icon-button:hover { color: #fff; background: var(--green); }
.hero { display: flex; min-height: 17rem; align-items: center; justify-content: space-between; gap: 2rem; padding: 4.5rem 0 3.5rem; }
.eyebrow { margin: 0 0 .75rem; color: var(--coral); font: 700 .7rem/1.2 Arial, sans-serif; letter-spacing: .11em; text-transform: uppercase; }
h1 { max-width: 15ch; margin: 0; font-size: clamp(2.7rem, 6vw, 5.3rem); font-weight: 400; line-height: .94; letter-spacing: -.03em; }
h2 { margin: 0; font-size: 1.35rem; font-weight: 400; }
.hero-copy { max-width: 31rem; margin: 1.3rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.hero-orbit { position: relative; width: 11rem; height: 11rem; flex: 0 0 11rem; }
.orbit { position: absolute; inset: 0; border: 1px solid #b5c4b8; border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { transform: rotate(52deg) scaleX(.55); }
.orbit-two { transform: rotate(-52deg) scaleX(.55); }
.orbit-core { position: absolute; top: 50%; left: 50%; display: grid; width: 4.4rem; height: 4.4rem; place-items: center; border-radius: 50%; color: #fbfaf6; background: var(--green); transform: translate(-50%, -50%); font: 700 .8rem Arial, sans-serif; letter-spacing: .08em; }
.summary-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
.summary-card, .panel { border: 1px solid var(--line); background: rgba(251, 250, 246, .76); }
.summary-card { min-height: 9.8rem; padding: 1.4rem; }
.summary-card-featured { color: #f8f4e9; background: var(--green); border-color: var(--green); }
.card-label { gap: .5rem; color: var(--muted); font: .72rem Arial, sans-serif; }
.summary-card-featured .card-label { color: #c7d9cb; }
.card-icon { font-size: 1rem; }
.summary-card strong { display: block; margin: 1.4rem 0 .25rem; font-size: 2rem; font-weight: 400; }
.summary-card p { margin: 0; color: var(--muted); font: .78rem Arial, sans-serif; }
.summary-card-featured p { color: #c7d9cb; }
.mini-bars { display: flex; height: 1.2rem; align-items: end; gap: .3rem; margin-top: -1rem; justify-content: flex-end; }
.mini-bars span { display: block; width: .32rem; background: #c9dbca; opacity: .8; }
.mini-bars span:nth-child(1) { height: 30%; }.mini-bars span:nth-child(2) { height: 48%; }.mini-bars span:nth-child(3) { height: 25%; }.mini-bars span:nth-child(4) { height: 62%; }.mini-bars span:nth-child(5) { height: 42%; }.mini-bars span:nth-child(6) { height: 78%; }.mini-bars span:nth-child(7) { height: 55%; }
.content-grid, .lower-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; margin-top: 1rem; }
.panel { padding: 1.5rem; }
.panel-heading { justify-content: space-between; gap: 1rem; }
.period-pill, .muted-label { color: var(--muted); font: .68rem Arial, sans-serif; }
.empty-chart { position: relative; min-height: 15rem; margin-top: 1.5rem; overflow: hidden; border-top: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 3.3rem, #e5e5dc 3.35rem, transparent 3.4rem); }
.chart-line { position: absolute; right: 2rem; bottom: 3.1rem; left: 2rem; height: 5rem; border-top: 1px solid #9eb5a2; border-radius: 50%; transform: rotate(-8deg); opacity: .6; }
.chart-message { position: absolute; top: 50%; left: 50%; width: 17rem; text-align: center; transform: translate(-50%, -35%); }
.chart-spark, .empty-list-icon { display: inline-grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: var(--green); background: #dce9dc; font: 1.2rem Arial, sans-serif; }
.chart-message strong { display: block; margin-top: .8rem; font-size: 1rem; font-weight: 400; }
.chart-message p, .panel-copy, .fine-print, .empty-list p { margin: .4rem 0 0; color: var(--muted); font: .78rem/1.5 Arial, sans-serif; }
.connect-panel { display: flex; flex-direction: column; }
.panel-number { color: var(--coral); font: 700 .72rem Arial, sans-serif; }
.panel-copy { max-width: 23rem; margin-top: 2.2rem; font-size: .9rem; line-height: 1.65; }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding: .9rem 1rem; color: #fbfaf6; background: var(--coral); font: 700 .78rem Arial, sans-serif; transition: background .2s, transform .2s; }
.primary-button:hover { background: #b65437; transform: translateY(-2px); }
.primary-button span { font-size: 1.1rem; }
.fine-print { margin-top: .8rem; font-size: .68rem; }
.narrow-shell { width: min(100% - 3rem, 52rem); }
.connect-hero { max-width: 34rem; padding: 5rem 0 3rem; }
.connect-hero h1 { max-width: none; }
.bank-form-panel { max-width: 38rem; }
.bank-form { display: grid; gap: .65rem; }
.bank-form label { margin-top: .5rem; color: var(--muted); font: .72rem Arial, sans-serif; }
.bank-form input { width: 100%; padding: .85rem .9rem; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--paper); font: 1rem Georgia, serif; }
.bank-form input:focus { outline: 2px solid #9eb5a2; outline-offset: 2px; }
.bank-form .primary-button { margin-top: 1.2rem; border: 0; cursor: pointer; }
.alert { margin-bottom: 1.3rem; padding: .85rem 1rem; border-left: 3px solid var(--coral); color: #7a3d2a; background: #f8e4da; font: .8rem/1.5 Arial, sans-serif; }
.lower-grid { grid-template-columns: 1fr 1fr; }
.compact-heading { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.empty-list { display: flex; align-items: center; gap: .9rem; padding: 1.2rem 0 .2rem; }
.empty-list strong { font-size: .95rem; font-weight: 400; }
.record-list { display: grid; gap: .25rem; padding-top: .75rem; }
.record-row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; min-height: 3.3rem; border-bottom: 1px solid #e6e5dc; }
.record-row:last-child { border-bottom: 0; }
.record-icon { display: grid; width: 1.45rem; height: 1.45rem; place-items: center; border-radius: 50%; color: var(--green); background: #dce9dc; font: .7rem Arial, sans-serif; }
.record-row strong { display: block; overflow: hidden; font-size: .82rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.record-row p { margin: .2rem 0 0; color: var(--muted); font: .64rem Arial, sans-serif; }
.record-value { color: var(--ink); font: .72rem Arial, sans-serif; white-space: nowrap; }
.record-value.positive { color: var(--green); }
.record-value.negative { color: #a04d31; }
footer { justify-content: space-between; margin-top: 3rem; color: var(--muted); font: .65rem Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 44rem) { .shell { width: min(100% - 2rem, 36rem); } .hero { padding: 3.5rem 0 2.5rem; } .hero-orbit { display: none; } .summary-grid, .content-grid, .lower-grid { grid-template-columns: 1fr; } .summary-card-featured { min-height: 8.5rem; } }
@media (max-width: 26rem) { .shell { width: min(100% - 1.25rem, 36rem); } .status-dot { display: none; } h1 { font-size: 2.7rem; } }
