@font-face { font-family: SG; font-weight: 500; src: url(/fonts/spacegrotesk-500-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: SG; font-weight: 700; src: url(/fonts/spacegrotesk-700-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Plex; font-weight: 400; src: url(/fonts/ibmplexsans-400-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Plex; font-weight: 600; src: url(/fonts/ibmplexsans-600-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Mono; font-weight: 500; src: url(/fonts/ibmplexmono-500-latin.woff2) format('woff2'); font-display: swap; }

:root { --bg: #05070b; --card: #0d1119; --card2: #121826; --line: rgba(255,255,255,.08); --text: #e8ebf1; --muted: #8a92a8; --lime: #a8e84a; --green: #17b26a; --teal: #36c2b4; --red: #ff6b70; --amber: #f5a524; }
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); }
body { min-height: 100vh; background: radial-gradient(60% 40% at 50% 0, rgba(168,232,74,.08), transparent 70%), var(--bg); color: var(--text); font: 400 14px/1.5 Plex, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--lime); text-decoration: none; } a:hover { text-decoration: underline; }
code { font-family: Mono, monospace; font-size: 12.5px; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; }
h2 { font: 700 17px SG, sans-serif; letter-spacing: -.01em; }
h3 { font: 600 12px Plex, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 10px; }
small, .muted { color: var(--muted); }

.wm { font: 700 22px SG, sans-serif; letter-spacing: -.03em; display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.wm .i { position: relative; } .wm .i i { position: absolute; left: 50%; top: .1em; width: .2em; height: .2em; border-radius: 50%; background: var(--lime); transform: translateX(-50%); }
.wm em { font: 500 .62em Mono, monospace; font-style: normal; color: var(--lime); margin-left: 8px; letter-spacing: .08em; text-transform: uppercase; }
.wm.big { font-size: 34px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; padding: 14px 28px; background: rgba(5,7,11,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ranges { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.ranges a { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13px; }
.ranges a.on { background: var(--lime); color: #05070b; } .ranges a:hover { text-decoration: none; color: var(--text); } .ranges a.on:hover { color: #05070b; }
.meta { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.meta form { display: inline; }
button { font: 600 13px Plex, sans-serif; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--text); cursor: pointer; }
button:hover { border-color: var(--lime); } button:disabled { opacity: .6; cursor: default; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 24px 28px 60px; display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.card .h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.notice { padding: 10px 16px; border-radius: 12px; background: rgba(168,232,74,.1); color: var(--lime); }
.card.warn { border-color: rgba(245,165,36,.4); background: rgba(245,165,36,.06); color: #f3d9a8; }
.card.setup { border-color: rgba(168,232,74,.35); } .setup ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.empty { color: var(--muted); padding: 8px 0; }

.live { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 14px 22px; }
.live-n { font: 500 15px SG, sans-serif; display: flex; align-items: center; gap: 10px; } .live-n b { font-size: 26px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(168,232,74,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(168,232,74,0); } 100% { box-shadow: 0 0 0 0 rgba(168,232,74,0); } }
.live-l { display: flex; gap: 8px; flex-wrap: wrap; } .live-l span { padding: 4px 10px; border-radius: 999px; background: var(--card2); font-size: 12.5px; } .live-l b { color: var(--lime); margin-left: 4px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpis.small { grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 12px 0 16px; }
.kpi { position: relative; overflow: hidden; } .kpis.small .kpi { background: var(--card2); border-radius: 14px; padding: 12px 14px; }
.k-l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.k-v { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 2px; } .k-v b { font: 700 30px SG, sans-serif; letter-spacing: -.03em; } .kpis.small .k-v b { font-size: 22px; }
.d { font-size: 12.5px; font-weight: 600; } .d.up { color: var(--lime); } .d.down { color: var(--red); } .d.flat { color: var(--muted); }
.spark { position: absolute; right: 14px; bottom: 12px; width: 120px; height: 30px; opacity: .8; } .spark path { fill: none; stroke: var(--teal); stroke-width: 2; vector-effect: non-scaling-stroke; }
.kpis.small .spark { width: 70px; height: 22px; }

.trend { width: 100%; height: 240px; display: block; }
.trend .grid { stroke: var(--line); } .trend .ax { fill: var(--muted); font: 11px Plex, sans-serif; }
.trend .l-a { fill: none; stroke: var(--lime); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.trend .l-b { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.trend .mk { fill: var(--amber); stroke: var(--bg); stroke-width: 2; }
.legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; } .legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.legend .a { background: var(--lime); } .legend .b { background: var(--teal); } .legend .m { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.bars { list-style: none; padding: 0; display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.bar-l span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar-l small { display: block; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-t { height: 8px; border-radius: 6px; background: rgba(255,255,255,.05); overflow: hidden; } .bar-t i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--lime)); }
.bars b { font: 600 13px Mono, monospace; min-width: 44px; text-align: right; }

.funnel { list-style: none; padding: 0; display: grid; gap: 14px; }
.f-top { display: flex; justify-content: space-between; } .f-top b { font: 700 18px SG, sans-serif; }
.f-bar { height: 12px; border-radius: 8px; background: rgba(255,255,255,.05); margin: 6px 0 4px; overflow: hidden; } .f-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--lime), var(--teal)); }
.funnel small { font-size: 12px; }

.flow { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 26px; } .flow h3 { margin-top: 0; }
.steps { list-style: none; padding: 0; display: grid; gap: 7px; }
.steps li { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--card2); }
.steps span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .steps i { font-style: normal; color: var(--lime); text-align: center; } .steps b { font: 600 13px Mono, monospace; }

.t { width: 100%; border-collapse: collapse; } .t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .t tr:last-child td { border-bottom: 0; }
.t td small { margin-left: 6px; font-size: 11.5px; } .t th:not(:first-child), .t td:not(:first-child) { text-align: right; }
.t.leads th, .t.leads td { text-align: left !important; } .t.leads td:first-child { white-space: nowrap; color: var(--muted); }
.heat { display: inline-block; min-width: 48px; padding: 3px 8px; border-radius: 8px; background: rgba(168,232,74, calc(var(--h) * .45)); font: 600 12.5px Mono, monospace; }
.clarity .links { display: flex; gap: 14px; font-weight: 600; font-size: 13px; }
.foot { color: var(--muted); font-size: 12px; text-align: center; margin-top: 10px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.login-card p { color: var(--muted); } .login-card label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.login-card input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; font-size: 15px; }
.login-card input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.login-card button { background: var(--lime); color: #05070b; border: 0; padding: 12px; font-size: 15px; }
.err { color: var(--red) !important; }

/* Sessions */
.tabs { display: flex; gap: 2px; } .tabs a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13px; }
.tabs a.on { color: var(--text); background: var(--card2); } .tabs a:hover { text-decoration: none; color: var(--text); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--card2); color: var(--muted); white-space: nowrap; vertical-align: 1px; }
.tag.k-business, .tag.k-named { color: var(--lime); background: rgba(168,232,74,.1); } .tag.k-education, .tag.k-government { color: var(--teal); background: rgba(54,194,180,.1); }
.tag.k-cloud { color: var(--amber); background: rgba(245,165,36,.1); }
.t.sessions th, .t.sessions td { text-align: left; } .t.sessions td small { margin-left: 0; display: block; }
.t.sessions .play { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: #05070b; font-size: 11px; }
.t.sessions .play:hover { text-decoration: none; filter: brightness(1.1); }
.grid3.inner { gap: 22px; margin-bottom: 4px; }
.kpis.small.five { grid-template-columns: repeat(5, 1fr); }
#player .rr-timeline__time { color: var(--muted); }
.rows { list-style: none; padding: 0; display: grid; gap: 2px; } .rows li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rows li b, .rows li small { margin-left: auto; } .rows li:last-child { border-bottom: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters select, .filters input { font: 400 13px Plex, sans-serif; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--text); }
.filters input { min-width: 240px; flex: 1; max-width: 360px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--muted); }
.small-print { font-size: 12.5px; max-width: 880px; }
.session { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.player-card { padding: 12px; overflow: hidden; } #player { min-height: 300px; }
#player .rr-player { background: var(--card2); box-shadow: none; border-radius: 12px; } #player .rr-controller { background: var(--card2); }
.facts dl { display: grid; gap: 4px 0; } .facts dt { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 10px; } .facts dd { margin: 0; overflow-wrap: anywhere; }
.pagelist { padding-left: 20px; display: grid; gap: 6px; } .pagelist small { display: block; overflow-wrap: anywhere; }

@media (max-width: 1000px) { .kpis, .kpis.small { grid-template-columns: repeat(2, 1fr); } .grid2, .grid3, .flow, .session { grid-template-columns: 1fr; } .t.sessions { display: block; overflow-x: auto; } .top { flex-wrap: wrap; padding: 12px 16px; } .meta { margin-left: 0; } .wrap { padding: 16px; } }
.trend .pt { fill: var(--lime); stroke: var(--bg); stroke-width: 2; }
