:root { --ink:#171414; --paper:#f4eddd; --paper2:#fffaf0; --purple:#6c5cff; --lime:#c4ff46; --red:#dc3f32; --muted:#746b60; --line:#b9ad9c; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; color:var(--ink); background:var(--paper); font-family:Inter,Arial,sans-serif; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.22; background-image:radial-gradient(#6f6457 0.7px,transparent 0.7px); background-size:7px 7px; }
button,input,a { font:inherit; }
.report-header { position:sticky; z-index:5; top:0; display:grid; grid-template-columns:100px 1fr 100px; align-items:center; min-height:112px; padding:16px clamp(18px,4vw,54px); color:white; background:var(--ink); border-bottom:6px solid var(--purple); }
.report-header a,.report-header button { color:white; background:transparent; border:1px solid #777; padding:10px; text-align:center; text-decoration:none; font-size:11px; font-weight:900; cursor:pointer; }
.report-header button { justify-self:end; }.report-header > div { text-align:center; }.report-header span,.panel header span,.insight-card span { color:var(--lime); font-size:9px; font-weight:950; letter-spacing:.18em; }
h1 { margin:3px 0 0; font-family:Impact,"Arial Black",sans-serif; font-size:clamp(28px,5vw,50px); line-height:.82; letter-spacing:.02em; }
main { position:relative; width:min(1180px,calc(100% - 28px)); margin:24px auto 64px; }
.control-strip { display:flex; justify-content:space-between; gap:14px; align-items:end; margin-bottom:18px; padding:12px; border:2px solid var(--ink); background:var(--paper2); box-shadow:5px 5px 0 var(--ink); }
.control-strip > div:first-child { display:grid; gap:5px; }.control-strip span { font-size:9px; font-weight:900; }.control-strip input { min-height:38px; border:1px solid var(--ink); background:white; padding:0 10px; }
.range-buttons { display:flex; }.range-buttons button { min-height:38px; min-width:56px; border:1px solid var(--ink); border-left:0; background:white; font-size:10px; font-weight:900; cursor:pointer; }.range-buttons button:first-child { border-left:1px solid var(--ink); }.range-buttons button.active { color:white; background:var(--purple); }
.status { padding:50px 20px; border:2px dashed var(--line); text-align:center; color:var(--muted); font-weight:800; }.status.error { color:var(--red); }.hidden { display:none!important; }
.report { display:grid; gap:18px; }.metric-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }.metric { min-height:142px; padding:18px; display:flex; flex-direction:column; border:3px solid var(--ink); background:var(--paper2); box-shadow:6px 7px 0 var(--ink); }.metric.hero { background:var(--lime); }.metric span { font-size:11px; font-weight:950; }.metric strong { margin:auto 0 2px; font-family:Impact,"Arial Black",sans-serif; font-size:clamp(36px,5vw,66px); line-height:1; }.metric small { color:var(--muted); font-size:9px; }
.insight-card { display:grid; grid-template-columns:180px 1fr; gap:20px; align-items:center; padding:20px 24px; color:white; background:var(--purple); border:3px solid var(--ink); box-shadow:7px 7px 0 var(--ink); }.insight-card h2,.panel h2 { margin:4px 0 0; font-family:Georgia,serif; font-size:21px; }.insight-card p { margin:0; font-size:clamp(14px,2vw,20px); font-weight:900; line-height:1.45; }
.panel { padding:20px; border:2px solid var(--ink); background:rgba(255,250,240,.78); }.panel > header,.split-panel header { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-bottom:18px; }.panel header small { color:var(--muted); font-size:9px; }
.funnel-chart { display:grid; gap:8px; }.funnel-row { display:grid; grid-template-columns:140px 1fr 94px; align-items:center; gap:10px; }.funnel-label { font-size:11px; font-weight:900; }.funnel-track { height:28px; border:2px solid var(--ink); background:white; }.funnel-bar { height:100%; min-width:3px; display:flex; align-items:center; justify-content:flex-end; padding-right:7px; color:white; background:var(--purple); font-size:9px; font-weight:900; transition:width .4s ease; }.funnel-value { text-align:right; font-family:Impact,"Arial Black",sans-serif; font-size:19px; }.funnel-value small { display:block; color:var(--muted); font-family:Arial,sans-serif; font-size:8px; }
.trend-chart { min-height:220px; display:flex; align-items:end; gap:8px; padding:18px 8px 0; border-bottom:2px solid var(--ink); }.trend-day { flex:1; min-width:22px; height:190px; display:flex; justify-content:center; align-items:end; gap:2px; position:relative; }.trend-day i { width:min(20px,40%); min-height:2px; border:1px solid var(--ink); }.trend-day i.dau { background:var(--lime); }.trend-day i.sessions { background:var(--purple); }.trend-day span { position:absolute; top:100%; margin-top:6px; font-size:7px; }.chart-legend { display:flex; justify-content:center; gap:18px; margin-top:24px; font-size:9px; font-weight:900; }.chart-legend i { display:inline-block; width:10px; height:10px; margin-right:5px; border:1px solid var(--ink); }.chart-legend .dau { background:var(--lime); }.chart-legend .sessions { background:var(--purple); }
.split-panel { display:grid; grid-template-columns:1fr 1fr; gap:24px; }.event-list { display:grid; gap:7px; }.event-row { display:grid; grid-template-columns:1fr 70px; gap:10px; align-items:center; padding:8px 10px; border-left:5px solid var(--purple); background:white; font-size:10px; }.event-row b { text-align:right; font-size:14px; }.table-wrap { overflow:auto; }table { width:100%; border-collapse:collapse; font-size:10px; }th,td { padding:9px 7px; border-bottom:1px solid var(--line); text-align:right; }th:first-child,td:first-child { text-align:left; }
footer { padding:16px; color:var(--muted); border-top:1px solid var(--line); font-size:9px; line-height:1.6; text-align:center; }
@media (max-width:760px) { .report-header { grid-template-columns:68px 1fr 68px; padding-inline:12px; }.report-header a,.report-header button { padding:8px 4px; font-size:8px; }.metric-grid { grid-template-columns:1fr 1fr; }.metric { min-height:116px; padding:13px; }.insight-card,.split-panel { grid-template-columns:1fr; }.insight-card { gap:8px; }.funnel-row { grid-template-columns:92px 1fr 62px; }.funnel-label { font-size:9px; }.trend-chart { gap:3px; overflow:hidden; }.trend-day span { font-size:6px; transform:rotate(-45deg); transform-origin:top; }.control-strip { align-items:stretch; flex-direction:column; }.range-buttons button { flex:1; } }
