:root{--paper:#f3f3f0;--surface:#fff;--ink:#191b1e;--muted:#61666c;--line:#d6d8d5;--blue:#2743cc;--warning:#765d12;--error:#8a2020;font-family:"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:16px}
*{box-sizing:border-box}
body{margin:0;background:var(--paper)}
a{color:inherit}
.site-header{height:4.5rem;display:flex;justify-content:space-between;align-items:center;padding:0 clamp(1.2rem,4vw,4rem);border-bottom:1px solid var(--line);font-size:.8rem}
.site-header>a{text-decoration:none;font-weight:700}
.account-actions{display:flex;align-items:center;gap:1rem;color:var(--muted)}
.account-actions form{margin:0}
.wrap{width:min(100% - 2.4rem,92rem);margin:auto;padding-bottom:7rem}
.intro{display:flex;justify-content:space-between;gap:2rem;align-items:end;padding:clamp(3rem,7vw,5rem) 0 3rem}
.intro h1{font-size:2.25rem;font-weight:650;line-height:1.2;letter-spacing:-.02em;margin:0}
.intro p{max-width:42rem;color:var(--muted);font-size:.9375rem;line-height:1.6;margin:1rem 0 0}
.account-status{min-width:12rem;margin:0;color:var(--muted);font-size:.75rem;line-height:1.5;text-align:right}
.account-status strong{color:var(--ink);font-size:.8125rem;font-weight:500;overflow-wrap:anywhere}
.button,button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--ink);border-radius:0;background:var(--ink);color:#fff;padding:.7rem 1rem;font:inherit;font-size:.9375rem;line-height:1.25;cursor:pointer;text-decoration:none}
.button:hover,button:hover{background:#30343a}
.button:active,button:active{transform:translateY(1px)}
.button--quiet{border-color:var(--line);background:transparent;color:var(--ink)}
.button--quiet:hover{border-color:var(--ink);background:var(--surface)}
.button--danger{border-color:var(--error);background:var(--error)}
.button:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.welcome-panel{border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);padding:2rem 0 2.25rem;max-width:52rem}
.welcome-panel h2{font-size:1.5rem;font-weight:650;line-height:1.3;letter-spacing:-.015em;margin:0}
.welcome-panel p{max-width:42rem;color:var(--muted);line-height:1.6;margin:1rem 0 1.5rem}
.site-message{padding:1rem;border:1px solid;margin:0 0 1.5rem;background:var(--surface)}
.site-message__body{margin:0;font-size:.875rem;line-height:1.5}
.site-message--error{border-color:#c97878;color:var(--error)}
.site-message--warning{border-color:#c6b36b;color:var(--warning)}
.site-message--success{border-color:#77a889;color:#225a35}
.source-bar{display:flex;justify-content:space-between;gap:1.5rem;align-items:end;padding:1rem 0;border-top:1px solid var(--ink);border-bottom:1px solid var(--line)}
.source-bar div{display:flex;flex-wrap:wrap;gap:.35rem 1rem;align-items:baseline}
.source-label{width:100%;color:var(--muted);font-size:.6875rem;letter-spacing:.05em;text-transform:uppercase}
.source-bar strong{font-size:.875rem;font-weight:600;overflow-wrap:anywhere}
.source-note{color:var(--muted);font-size:.75rem;white-space:nowrap}
.filters{display:flex;align-items:end;gap:.75rem;padding:1.25rem 0;border-bottom:1px solid var(--ink)}
.filters label{font-size:.8125rem;color:var(--muted)}
select,input{min-height:44px;font:inherit;font-size:.9375rem;line-height:1.25;border:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--ink);padding:.7rem}
.filters select{min-width:9rem}
.summary-status{margin:1rem 0 0;color:var(--warning);font-size:.8125rem;line-height:1.5}
.kpi-section{padding:3.5rem 0 0}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:1.5rem;border-bottom:1px solid var(--ink);padding-bottom:.9rem}
.section-head h2{font-size:1.375rem;font-weight:650;line-height:1.3;letter-spacing:-.015em;margin:0}
.section-head p{color:var(--muted);font-size:.8125rem;line-height:1.5;margin:.4rem 0 0}
.section-head>span{color:var(--muted);font-size:.75rem;white-space:nowrap}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--ink)}
.kpi{min-width:0;padding:1rem;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.kpi:nth-child(4n){border-right:0}
.kpi-label,.kpi strong,.kpi small{display:block}
.kpi-label{color:var(--muted);font-size:.75rem;line-height:1.4}
.kpi strong{margin-top:.45rem;font-size:1.45rem;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.kpi-hint{margin-top:.35rem;color:var(--muted);font-size:.6875rem;line-height:1.4}
.kpi-delta{margin-top:.35rem;color:var(--blue);font-size:.6875rem;line-height:1.4;font-variant-numeric:tabular-nums}
.range-notes{display:grid;gap:.25rem;margin:1rem 0 0;color:var(--muted);font-size:.75rem;line-height:1.5}
.range-notes p{margin:0}
.range-notes strong{color:var(--ink);font-weight:600}
.reports-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3.5rem;margin-top:4rem}
.report-block{min-width:0}
.report-block--full{margin-top:4rem}
.table-wrap{overflow:auto}
table{width:100%;min-width:38rem;border-collapse:collapse;font-size:.8125rem;line-height:1.45;font-variant-numeric:tabular-nums}
th,td{text-align:left;padding:.8rem .45rem;border-bottom:1px solid var(--line);vertical-align:top}
th:not(:first-child),td:not(:first-child){text-align:right;white-space:nowrap}
td:first-child{width:52%;max-width:35rem;overflow-wrap:anywhere}
td strong,td small{display:block}
td strong{font-weight:600}
td small{margin-top:.25rem;color:var(--muted);font-size:.75rem}
th{color:var(--muted);font-weight:500}
.empty,.criteria,.data-note{color:var(--muted);font-size:.8125rem;line-height:1.55}
.empty{margin:1rem 0 0}
.criteria{margin:1rem 0 0}
.inline-error{padding:.75rem 0;color:var(--error);font-size:.8125rem;line-height:1.5}
.trend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem;margin-top:1.5rem}
.trend-grid h3{font-size:1rem;font-weight:600;margin:0 0 .75rem}
.trend-grid table{min-width:26rem}
.data-note{margin:3rem 0 0;padding:1rem 0;border-top:1px solid var(--line)}
.settings{margin-top:3.5rem;border-top:1px solid var(--ink);padding:1.5rem 0 0}
.settings summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:1.125rem;font-weight:650;list-style-position:inside}
.settings summary::after{content:'＋';color:var(--muted);font-size:1rem;font-weight:400}
.settings[open] summary::after{content:'－'}
.settings>div{margin-top:1.5rem}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,8vw,8rem)}
.settings h2{font-size:1.125rem;font-weight:650;line-height:1.35;margin:0}
.settings p{max-width:42rem;color:var(--muted);font-size:.8125rem;line-height:1.6;margin:1rem 0}
.settings form{display:grid;gap:.75rem;max-width:32rem}
.settings form label{font-size:.8125rem;line-height:1.4}
.settings-actions{border-top:1px solid var(--line);padding-top:1rem}
.settings--account{margin-top:2rem}
.settings--account>div>p:first-child{max-width:48rem}
.confirm-details{margin-top:1.5rem;border-top:1px solid var(--line);padding-top:1rem;max-width:32rem}
.confirm-details summary{color:var(--error);cursor:pointer;font-size:.875rem;font-weight:600}
.confirm-details form{margin-top:1rem}
.small{font-size:.75rem!important}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){
  .wrap{width:min(100% - 1.5rem,60rem)}
  .intro{display:block;padding:3rem 0 2rem}
  .intro h1{font-size:1.875rem;line-height:1.25;letter-spacing:-.015em}
  .account-status{margin-top:1.5rem;text-align:left}
  .source-bar{display:block}
  .source-note{display:block;margin-top:.75rem;white-space:normal}
  .filters{align-items:stretch;flex-direction:column}
  .filters select,.filters button,.filters .button{width:100%}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpi:nth-child(4n){border-right:1px solid var(--line)}
  .kpi:nth-child(2n){border-right:0}
  .reports-grid,.trend-grid{grid-template-columns:1fr;gap:3rem}
  .reports-grid,.report-block--full{margin-top:3rem}
  .section-head{align-items:flex-start;flex-direction:column;gap:.5rem}
  .section-head>span{white-space:normal}
  .settings-grid{grid-template-columns:1fr;gap:1.5rem}
  .account-actions{gap:.5rem}
  .account-actions>span{max-width:11rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
