/* analytiikka-ohje: sivun omat sisältötyylit (pienoismallit). Poistuvat, kun pienoismallit korvataan kaappauksilla. */
:root{--in:#6366f1; --in-dark:#4f46e5; --in-soft:#a5b4fc; --in-deep:#3730a3; --ink:#1e293b; --muted:#475569; --soft:#64748b; --faint:#94a3b8; --line:#e2e8f0; --line2:#cbd5e1; --card:#fafbfc; --help-bg:#eef2ff; --help-line:#a5b4fc; --help-ink:#3730a3; --warn-bg:#fef3c7; --warn-line:#f59e0b; --warn-ink:#92400e; --ok:#34d399; --mid:#fbbf24; --bad:#f87171}
h3.sub{font-size:1.12em; margin:24px 0 8px; color:var(--ink)}
.callout{background:var(--help-bg); border-left:4px solid var(--help-line); color:var(--help-ink); padding:12px 16px; border-radius:8px; margin:16px 0; font-size:.95em;}
.callout.warn{background:var(--warn-bg); border-left-color:var(--warn-line); color:var(--warn-ink)}
ul.clean{margin:10px 0; padding-left:22px}
ul.clean li{margin:6px 0}
.path{display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:14px 0; font-size:.92em}
.path .crumb{background:#fff; border:1px solid var(--line2); border-radius:8px; padding:6px 12px; font-weight:600; color:var(--muted)}
.path .arr{color:var(--faint); font-weight:700}
.mock{margin:20px 0 8px; border-radius:12px; overflow:hidden; box-shadow:0 14px 34px rgba(15,23,42,.22); border:1px solid var(--line)}
.mock .bar{background:#e9eef5; padding:9px 12px; display:flex; align-items:center; gap:7px; border-bottom:1px solid var(--line)}
.mock .dot{width:11px;height:11px;border-radius:50%}
.mock .dot.r{background:#f87171}
.mock .dot.y{background:#fbbf24}
.mock .dot.g{background:#34d399}
.mock .bar .ttl{margin-left:10px; font-size:.8em; color:var(--soft); font-weight:600}
.dark{background:#0f172a; padding:16px 18px; font-size:13.5px; color:#cbd5e1}
.dhead{display:flex; align-items:center; justify-content:space-between; margin-bottom:12px}
.dhead .dt{font-size:1.2em; font-weight:800; color:#fff}
.dcsv{background:#1e293b; border:1px solid #334155; color:#cbd5e1; border-radius:7px; padding:5px 11px; font-size:.82em; font-weight:600}
.chips{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px}
.chip{background:#1e293b; border:1px solid #334155; color:#cbd5e1; border-radius:16px; padding:4px 12px; font-size:.8em; font-weight:600}
.chip.sel{background:var(--in); border-color:var(--in); color:#fff}
.chip.ctrl{background:#0b1220; color:#a5b4fc; border-color:#312e81}
.dfilters{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px}
.dsel{background:#1e293b; border:1px solid #334155; color:#94a3b8; border-radius:7px; padding:5px 10px; font-size:.8em}
.dtabs{display:flex; gap:6px; border-bottom:1px solid #334155; margin-bottom:14px}
.dtab{padding:7px 14px; font-size:.86em; font-weight:600; color:#94a3b8; border-bottom:2px solid transparent}
.dtab.act{color:#fff; border-bottom-color:var(--in)}
.kgrid{display:grid; grid-template-columns:repeat(5,1fr); gap:9px; margin-bottom:14px}
@media(max-width:680px){
.kgrid{grid-template-columns:repeat(2,1fr)}
}
.kcard{background:#1e293b; border:1px solid #334155; border-radius:10px; padding:11px 12px; display:flex; gap:9px; align-items:center}
.kcard .ki{font-size:1.3em}
.kcard .kv{font-size:1.25em; font-weight:800; color:#fff; line-height:1.1}
.kcard .kl{font-size:.72em; color:#94a3b8}
.charts{display:flex; gap:10px; flex-wrap:wrap}
.chartcard{background:#1e293b; border:1px solid #334155; border-radius:10px; padding:12px; flex:1; min-width:200px; display:flex; flex-direction:column; align-items:center; justify-content:center}
.chartcard .clbl{font-size:.78em; color:#cbd5e1; margin-bottom:8px; font-weight:600}
.donut{width:96px;height:96px;border-radius:50%; background:conic-gradient(var(--ok) 0 68%, var(--mid) 68% 100%); position:relative}
.donut::after{content:""; position:absolute; inset:18px; border-radius:50%; background:#1e293b}
.leg{display:flex; gap:12px; font-size:.74em; margin-top:8px}
.leg span{display:inline-flex; align-items:center; gap:5px}
.sw{width:9px;height:9px;border-radius:2px;display:inline-block}
.linechart{width:100%; height:96px; display:block}
table.dt{width:100%; border-collapse:collapse; font-size:.8em; margin:6px 0}
table.dt th{color:#94a3b8; text-align:center; padding:6px 8px; border-bottom:1px solid #334155; font-weight:600}
table.dt th.l, table.dt td.l{text-align:left}
table.dt td{padding:6px 8px; border-bottom:1px solid #1f2a3a; text-align:center; color:#cbd5e1}
.g{color:var(--ok); font-weight:700}
.m{color:var(--mid); font-weight:700}
.b{color:var(--bad); font-weight:700}
.barlab{display:flex; align-items:center; gap:8px; margin:4px 0; font-size:.78em}
.barlab .nm{width:120px; color:#cbd5e1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.barlab .tr{flex:1; height:13px; background:#0b1220; border-radius:7px; overflow:hidden}
.barlab .tr .bb{height:100%; border-radius:7px}
.barlab .vv{width:42px; text-align:right}
.ttpill{display:inline-flex; align-items:center; gap:4px; font-weight:700}
.tt-e{color:#60a5fa}
.tt-m{color:#fb923c}
.tt-h{color:#f472b6}
.infodot{display:inline-block; font-size:.8em; color:#a5b4fc}
.kbd{font-family:ui-monospace,Menlo,Consolas,monospace; background:#eef2f7; border:1px solid var(--line2); border-radius:5px; padding:1px 7px; font-size:.86em}
