:root{--ink:#172033;--muted:#687386;--line:#e2e8f0;--blue:#2563eb;--canvas:#f4f6f9}
*{box-sizing:border-box}body{background:var(--canvas);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:0}.page-shell{margin:0 auto;max-width:1250px;padding:24px}.page-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:20px}.identity{align-items:center;display:flex;gap:13px}.identity img{height:54px;object-fit:contain;width:54px}.page-header h1{font-size:1.4rem;margin:5px 0 0}.back-link{color:var(--blue);font-size:.72rem;text-decoration:none}.page-header form{align-items:center;display:flex;gap:8px}.page-header label{color:var(--muted);font-size:.72rem;font-weight:700}.page-header select{border:1px solid #cbd5e1;border-radius:7px;max-width:240px;padding:7px 9px}.summary-grid{display:grid;gap:12px;grid-template-columns:repeat(4,1fr);margin-bottom:16px}.summary-grid article,.panel{background:#fff;border:1px solid var(--line);border-radius:10px}.summary-grid article{padding:15px 16px}.summary-grid span{color:var(--muted);display:block;font-size:.63rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.summary-grid strong{display:block;font-size:1.55rem;margin:7px 0 2px}.summary-grid small{color:var(--muted);font-size:.68rem}.negative{color:#dc2626}.panel{margin-bottom:16px;padding:18px}.panel-heading{align-items:end;border-bottom:1px solid #f1f5f9;display:flex;justify-content:space-between;margin-bottom:10px;padding-bottom:10px}.panel-heading h2{font-size:.92rem;margin:0}.panel-heading p{color:var(--muted);font-size:.68rem;margin:4px 0 0}.legend{display:flex;gap:15px}.legend span{align-items:center;color:var(--muted);display:flex;font-size:.65rem;gap:5px}.legend span:before{background:currentColor;border-radius:50%;content:"";height:8px;width:8px}.legend .revenue{color:#2563eb}.legend .expenses{color:#94a3b8}.legend .profit{color:#16a34a}.legend .value{color:#7c3aed}.chart{height:310px;width:100%}.chart.compact{height:260px}.chart svg{height:100%;overflow:visible;width:100%}.grid{stroke:#e7ebf0;stroke-width:1}.tick,.year{fill:#718096;font-family:inherit;font-size:11px}.series{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:3}.empty{background:white;border:1px solid var(--line);border-radius:10px;color:var(--muted);padding:30px;text-align:center}
@media(max-width:800px){.page-shell{padding:12px}.page-header,.panel-heading{align-items:flex-start;flex-direction:column;gap:12px}.summary-grid{grid-template-columns:repeat(2,1fr)}.chart{overflow-x:auto}.chart svg{min-width:760px}}@media(max-width:480px){.summary-grid{grid-template-columns:1fr}.identity img{height:42px;width:42px}.page-header h1{font-size:1.15rem}}

/* Integrate financial history into the standard league page shell. */
.right-section>.page-header{align-items:center;margin:0;padding-bottom:12px}.right-section>.page-header h1{font-size:22px;margin:0}.right-section>.page-header form{align-items:center;display:flex;gap:8px}.finance-title{align-items:center;display:flex;gap:12px}.finance-title>img{height:48px;object-fit:contain;width:48px}.finance-title .page-title p{align-items:center;display:flex;gap:6px}.finance-page-content{min-width:0}.right-section{min-width:0}.back-link{font-size:inherit}
@media(max-width:800px){.right-section>.page-header{align-items:flex-start;flex-direction:column;gap:12px}.finance-title>img{height:42px;width:42px}}
