:root{--series-1:#3987e5;--chart-grid:#2e2e2e;--chart-axis:#9a9a9a;--chart-text:#ececec;--chart-surface:#1c1c1c}
:root[data-theme=light]{--series-1:#2a78d6;--chart-grid:#e3e3e8;--chart-axis:#62656c;--chart-text:#202124;--chart-surface:#f7f7f8}
.report-builder{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);gap:18px;align-items:start}
.report-tabs{margin-bottom:16px;width:max-content;max-width:100%}
.report-drop{margin-bottom:12px}
.report-hint{display:block;margin-top:6px;font-size:11px;color:var(--muted,#8392a6)}
.report-paste{min-height:150px!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.report-preview{border:1px solid var(--border,#e6ecf4);border-radius:12px;padding:12px;margin:14px 0 6px}
.report-preview-head{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:8px}
.report-preview-head span{color:var(--muted,#8392a6)}
.report-preview .data-table td,.report-preview .data-table th{white-space:nowrap;max-width:180px;overflow:hidden;text-overflow:ellipsis;padding:7px 9px}
.report-step{margin-top:22px}
.report-generate{padding:14px;font-size:13px;margin-top:6px}
.report-history .note-row h3{margin-bottom:2px}
.report-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.report-actions{display:flex;gap:8px;flex-wrap:wrap}
.report-doc{max-width:1000px;margin:0 auto}
.report-cover{margin-bottom:22px}
.report-cover h1{font-size:32px;letter-spacing:-1px;margin:8px 0 8px;line-height:1.15}
.report-cover p{color:var(--muted,#74859d);font-size:13px;margin:0}
.report-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:24px}
.report-kpis .metric strong{font-size:24px;word-break:break-word}
.report-block{margin:26px 0}
.report-block h2{font-size:19px;margin:0 0 10px;letter-spacing:-.3px}
.report-block p{font-size:14px;line-height:1.7;margin:0 0 12px}
.report-list{margin:0;padding-left:22px;display:grid;gap:8px;font-size:14px;line-height:1.6}
.muted-list{color:var(--muted,#74859d)}
.report-recommendations .report-list li::marker{font-weight:800}
.report-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:14px;margin:24px 0}
.report-chart{margin:0;position:relative;padding:18px}
.report-chart figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:13px;margin-bottom:10px}
.link-button{border:0;background:none;color:var(--series-1);font-size:11px;font-weight:700;padding:2px 0;white-space:nowrap}
.chart-area{position:relative}
.chart-svg{display:block;width:100%;height:auto;overflow:visible}
.chart-bar{fill:var(--series-1)}
.chart-mark:hover .chart-bar,.chart-mark:focus .chart-bar{filter:brightness(1.18)}
.chart-mark:focus{outline:none}
.chart-mark:focus .chart-label{text-decoration:underline}
.chart-line{fill:none;stroke:var(--series-1);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.chart-dot{fill:var(--series-1);stroke:var(--chart-surface);stroke-width:2}
.chart-grid{stroke:var(--chart-grid);stroke-width:1}
.chart-baseline{stroke:var(--chart-axis);stroke-width:1}
.chart-cursor{stroke:var(--chart-axis);stroke-width:1;stroke-dasharray:3 3}
.chart-hit{fill:transparent;cursor:crosshair}
.chart-hit:focus{outline:none;stroke:var(--series-1);stroke-width:1}
.chart-label,.chart-value{font-size:12px;fill:var(--chart-text)}
.chart-value{font-weight:700}
.chart-axis{font-size:11px;fill:var(--chart-axis)}
.chart-tooltip{position:absolute;transform:translate(-50%,-100%);pointer-events:none;background:var(--chart-surface);border:1px solid var(--chart-grid);border-radius:8px;padding:7px 10px;box-shadow:0 6px 18px #0004;display:grid;gap:2px;min-width:110px;text-align:center;z-index:5}
.chart-tooltip[hidden]{display:none}
.chart-tooltip strong{font-size:14px;color:var(--chart-text)}
.chart-tooltip span{font-size:11px;color:var(--chart-axis)}
.chart-table{margin-top:12px;max-height:260px;overflow:auto}
.report-profile td small{display:inline;color:var(--muted,#8392a6)}
.report-footnote{font-size:11px!important;color:var(--muted,#8392a6);margin-top:12px!important}
@media(max-width:1050px){.report-builder{grid-template-columns:1fr}}
@media(max-width:720px){.report-cover h1{font-size:25px}.report-kpis{grid-template-columns:1fr 1fr}.report-tabs{width:100%}.report-tabs button{flex:1}}
@media print{
  body.printing-report .sidebar,body.printing-report .topbar,body.printing-report .no-print,body.printing-report .theme-picker,body.printing-report .page-banner{display:none!important}
  body.printing-report,body.printing-report .main,body.printing-report .page{background:#fff!important;color:#111!important;margin:0!important;padding:0!important;max-width:none!important}
  body.printing-report .report-doc{--series-1:#2a78d6;--chart-grid:#ddd;--chart-axis:#555;--chart-text:#111;--chart-surface:#fff;max-width:none}
  body.printing-report .panel,body.printing-report .metric{background:#fff!important;border:1px solid #ddd!important;box-shadow:none!important;color:#111!important}
  body.printing-report .report-chart,body.printing-report .metric,body.printing-report .report-block li{break-inside:avoid}
  body.printing-report .chart-tooltip{display:none!important}
}
