:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050608;
  color: #f3f6fb;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #111827, #050608 46%); }
.app { width: min(1120px, calc(100vw - 28px)); margin: 0 auto; padding: 28px 0 56px; display: grid; gap: 14px; }
.topbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.eyebrow { margin: 0 0 4px; color: #7dd3fc; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
h1 { margin: 0; font-size: clamp(36px, 8vw, 72px); line-height: .9; }
h2 { margin: 0 0 10px; font-size: 14px; color: #aeb9cc; }
.status { display: flex; align-items: center; gap: 8px; color: #aeb9cc; font-size: 13px; }
#statusDot { width: 10px; height: 10px; border-radius: 999px; background: #ef4444; box-shadow: 0 0 18px currentColor; }
#statusDot.online { background: #22c55e; }
#statusDot.busy { background: #f59e0b; }
.panel { border: 1px solid #1f2937; border-radius: 20px; background: rgba(15, 23, 42, .78); box-shadow: 0 24px 80px rgba(0,0,0,.38); padding: 16px; }
.connection { display: grid; grid-template-columns: minmax(280px, 1fr) auto auto; align-items: end; gap: 12px; }
.connection code { grid-column: 1 / -1; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; }
label { display: grid; gap: 7px; color: #aeb9cc; font-size: 12px; }
input, textarea, button { border-radius: 13px; border: 1px solid #334155; background: #070b12; color: #f3f6fb; padding: 12px 14px; font: inherit; }
textarea { width: 100%; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
button { cursor: pointer; background: #172033; color: #dbeafe; }
button:hover:not(:disabled) { background: #21304a; }
button:disabled { opacity: .55; cursor: wait; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.terminal pre { min-height: 42vh; max-height: 54vh; overflow: auto; white-space: pre-wrap; font-size: 15px; line-height: 1.45; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin: 0; }
.tools, .events { display: grid; gap: 10px; }
#inspector, #events { min-height: 140px; max-height: 280px; overflow: auto; margin: 0; white-space: pre-wrap; color: #cbd5e1; font-size: 12px; }
@media (max-width: 720px) { .connection { grid-template-columns: 1fr; } .topbar { align-items: start; flex-direction: column; } }
