:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f3f6f5; color: #17231f; --green:#167552; --mint:#63d6a3; --ink:#17231f; --muted:#68766f; --line:#dce5e1; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% -20%, #d9f5e8 0, transparent 30rem), #f3f6f5; }
a { color: var(--green); text-decoration: none; }
.shell { width: min(1240px, calc(100% - 36px)); margin-inline: auto; }
.app-header { min-height: 76px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid rgba(220,229,225,.8); }
.brand { display:flex; align-items:center; gap:10px; color:var(--ink); font-weight:850; letter-spacing:-.03em; font-size:1.1rem; white-space:nowrap; }
.brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; background:var(--ink); color:var(--mint); }
.brand-light { color:var(--green); }
.nav { display:flex; align-self:stretch; align-items:center; gap:4px; overflow-x:auto; flex:1; }
.nav a { color:#53615b; padding:10px 11px; border-radius:9px; font-size:.9rem; font-weight:650; white-space:nowrap; }
.nav a:hover,.nav a.active { color:var(--ink); background:#fff; box-shadow:0 5px 18px rgba(23,35,31,.07); }
.page { padding:48px 0 72px; }
.page-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:32px; }
.page-heading h1 { margin:5px 0 10px; font-size:clamp(2.35rem,6vw,4.6rem); letter-spacing:-.065em; line-height:.98; max-width:850px; }
.eyebrow { margin:0; color:var(--green); font-size:.74rem; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
.muted { color:var(--muted); line-height:1.6; }
.button,button { border:0; border-radius:11px; padding:12px 17px; background:var(--green); color:#fff; font:inherit; font-weight:750; cursor:pointer; }
button.ghost,.ghost { background:#e3ebe7; color:var(--ink); }
button.small { padding:9px 12px; margin:0; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.stats-grid.three { grid-template-columns:repeat(3,1fr); }
.metric,.panel { background:rgba(255,255,255,.92); border:1px solid var(--line); box-shadow:0 16px 50px rgba(27,49,40,.055); }
.metric { padding:22px; border-radius:16px; display:flex; flex-direction:column; min-height:142px; }
.metric.accent { background:var(--ink); color:#fff; border-color:var(--ink); }
.metric span { color:var(--muted); font-size:.82rem; font-weight:700; }
.metric.accent span,.metric.accent small { color:#a8bdb4; }
.metric strong { font-size:clamp(1.55rem,3vw,2.25rem); letter-spacing:-.05em; margin:auto 0 5px; }
.metric small { color:#84918c; }
.panel { border-radius:18px; padding:24px; margin-bottom:20px; overflow:hidden; }
.panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:20px; }
.panel-head h2 { margin:4px 0 0; font-size:1.35rem; letter-spacing:-.035em; }
.content-grid { display:grid; gap:20px; }
.content-grid.two-one { grid-template-columns:2fr 1fr; }
.content-grid.equal { grid-template-columns:1fr 1fr; }
.year-bars { display:grid; gap:11px; }
.year-bar { display:grid; grid-template-columns:42px 1fr 92px; gap:12px; align-items:center; font-size:.82rem; }
.year-bar div { height:9px; background:#edf2f0; border-radius:9px; overflow:hidden; }
.year-bar i { display:block; height:100%; background:linear-gradient(90deg,var(--green),var(--mint)); border-radius:9px; }
.year-bar strong { text-align:right; }
.ranking { list-style:none; padding:0; margin:0; display:grid; gap:6px; counter-reset:rank; }
.ranking li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid #edf1ef; }
.ranking li:last-child { border:0; }.ranking span,.ranking b,td small { display:block; }.ranking small,td small { color:#8a9691; margin-top:3px; }
.table-wrap { overflow:auto; margin:0 -24px -24px; }
table { width:100%; border-collapse:collapse; font-size:.88rem; }
th { color:#75817c; font-size:.72rem; text-transform:uppercase; letter-spacing:.07em; text-align:left; background:#f8faf9; }
th,td { padding:13px 16px; border-bottom:1px solid #e8eeeb; white-space:nowrap; }
tbody tr:hover { background:#fafcfb; }.num { text-align:right; font-variant-numeric:tabular-nums; }.positive { color:#10704b; }.negative { color:#a33e42; }
.tag { display:inline-block; border-radius:7px; background:#eaf1ee; color:#52635b; padding:4px 7px; font-size:.7rem; font-weight:750; }
.notice { padding:15px 18px; margin-bottom:20px; border-radius:12px; background:#fff7dc; color:#675422; border:1px solid #eadba6; }
.chart { height:390px; position:relative; }.chart.compact { height:310px; }.chart canvas { width:100%; height:100%; display:block; }
.legend { color:#718079; font-size:.76rem; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.line-dot,.bar-dot { width:17px; height:3px; background:var(--mint); display:inline-block; border-radius:4px; }.bar-dot { height:9px; }.ma3{background:#f4b860}.ma6{background:#8ab4f8}.ma12{background:#c69cff}.deposits{background:#63d6a3}.trades{background:#8ab4f8}.income{background:#f4b860}
.collapsible summary { cursor:pointer; font-weight:800; }.collapsible[open] summary { margin-bottom:20px; }
.filters { display:grid; grid-template-columns:2fr 1fr 1fr auto auto; align-items:end; gap:12px; overflow:visible; }
.filters label { color:#59675f; font-size:.78rem; font-weight:750; }.filters input,.filters select { display:block; width:100%; margin-top:6px; padding:11px 12px; border:1px solid #bdcbc5; border-radius:9px; background:#fff; font:inherit; }.button-link { padding:11px 14px; border-radius:10px; text-align:center; }.empty { text-align:center; color:var(--muted); padding:40px; }
.login-card { width:min(440px,100%); margin:8vh auto 0; padding:36px; }.login-card h1 { font-size:2.2rem; margin:8px 0; }.login-card label { display:block; margin:18px 0 7px; font-weight:700; }.login-card input { width:100%; padding:12px 14px; border:1px solid #b8c6c0; border-radius:10px; font:inherit; }.login-card button { margin-top:22px; width:100%; }.error { margin-top:18px; padding:12px; border-radius:9px; background:#fff0ef; color:#9b2c26; }
.analysis-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.analysis-card { display:flex; flex-direction:column; min-height:210px; }.analysis-card h2 { margin:10px 0 8px; font-size:1.35rem; letter-spacing:-.03em; }.analysis-card .muted { margin:0 0 24px; }.analysis-card a { margin-top:auto; font-weight:800; }
.markdown { max-width:900px; margin-inline:auto; line-height:1.75; overflow-wrap:anywhere; }.markdown h1 { font-size:2.25rem; letter-spacing:-.045em; line-height:1.1; }.markdown h2 { margin-top:2.2em; padding-bottom:.3em; border-bottom:1px solid var(--line); }.markdown h3 { margin-top:1.8em; }.markdown img { max-width:100%; height:auto; }.markdown pre { overflow:auto; padding:16px; border-radius:12px; background:#17231f; color:#e8f3ee; }.markdown code { padding:.15em .35em; border-radius:5px; background:#edf2f0; }.markdown pre code { padding:0; background:transparent; }.markdown blockquote { margin-left:0; padding:2px 18px; border-left:4px solid var(--mint); color:var(--muted); }.markdown table { display:block; overflow-x:auto; }.back-link { display:inline-block; margin-bottom:18px; font-weight:750; }
@media(max-width:960px){.app-header{flex-wrap:wrap;padding:14px 0}.nav{order:3;width:100%}.stats-grid,.stats-grid.three{grid-template-columns:repeat(2,1fr)}.content-grid.two-one,.content-grid.equal{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr}.chart{height:330px}}
@media(max-width:960px){.analysis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.shell{width:min(100% - 22px,1240px)}.page{padding-top:30px}.page-heading{align-items:start;flex-direction:column}.stats-grid,.stats-grid.three,.analysis-grid{grid-template-columns:1fr}.metric{min-height:120px}.panel{padding:18px}.table-wrap{margin:0 -18px -18px}.filters{grid-template-columns:1fr}.chart{height:290px}.app-header>form{margin-left:auto}.page-heading h1{font-size:2.65rem}}

.empty-state { max-width:760px; margin:8vh auto; text-align:center; padding:42px; }.empty-state h1 { font-size:clamp(2rem,5vw,3.4rem); letter-spacing:-.05em; }
.upload-form { max-width:760px; }.upload-form label { display:block; font-weight:800; margin-bottom:10px; }.upload-form input[type="file"] { display:block; width:100%; padding:14px; border:1px dashed #9eb2a9; border-radius:11px; background:#f8fbfa; }.upload-form button { margin-top:8px; }.import-message { margin:0 0 20px; }.error-list { color:#8b302b; line-height:1.55; }
