@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root { --bg: #0a1012; --panel: #10191b; --line: #284045; --text: #dbe9e6; --muted: #78918f; --cyan: #63e6d4; --orange: #ff9b54; --red: #ff6f61; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 50% 10%, #173033 0, var(--bg) 46%); font-family: 'IBM Plex Mono', monospace; }
.console { width: min(1200px, 100%); margin: 0 auto; padding: 28px clamp(16px, 4vw, 52px); }
.topbar, .scope-head, .event-strip, .metrics { display: flex; align-items: center; }
.topbar { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.5px; }
h1 { margin: 5px 0 0; font: 700 clamp(30px, 6vw, 54px)/.9 'Barlow Condensed', sans-serif; letter-spacing: 1px; }
h1 span { color: var(--cyan); }
.device-state { color: var(--muted); font-size: 11px; display: flex; gap: 9px; align-items: center; }
.device-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.metrics { gap: 1px; margin: 24px 0; background: var(--line); }
.metric { flex: 1; min-width: 0; background: var(--panel); padding: 14px 18px; }
.metric span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.metric strong { display: block; margin-top: 7px; color: var(--cyan); font: 600 32px/1 'Barlow Condensed', sans-serif; }
.scope-panel { border: 1px solid var(--line); background: rgba(16,25,27,.85); }
.scope-head { justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
button { border: 1px solid var(--cyan); color: var(--cyan); background: transparent; padding: 8px 11px; font: 500 10px 'IBM Plex Mono', monospace; cursor: pointer; }
button:hover { background: rgba(99,230,212,.12); }
canvas { display: block; width: 100%; height: min(68vh, 650px); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.legend b { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--cyan); }
.legend .coasting { background: var(--orange); }.legend .gate-key { background: var(--red); }
.event-strip { justify-content: space-between; gap: 20px; margin-top: 24px; padding: 15px 16px; border-left: 3px solid var(--red); background: var(--panel); font-size: 11px; }
.event-strip strong { flex: 1; color: var(--text); font-weight: 500; }.event-strip span:last-child { color: var(--muted); }
@media (max-width: 640px) { .console { padding: 20px 12px; }.topbar { align-items: flex-start; gap: 16px; flex-direction: column; }.metrics { display: grid; grid-template-columns: 1fr 1fr; }.metric strong { font-size: 27px; } .event-strip { align-items: flex-start; flex-direction: column; gap: 8px; } canvas { height: 62vh; } }
