:root {
  color-scheme: dark;
  --bg: #0b1118;
  --panel: #121c27;
  --panel-2: #172432;
  --line: #2a3a4b;
  --text: #eef4fa;
  --muted: #9fb0c1;
  --blue: #5da9e9;
  --green: #66c17a;
  --amber: #efb74e;
  --red: #ed6b72;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 30% 0, #182634 0, var(--bg) 42rem); color: var(--text); font: 15px/1.45 Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button { border: 1px solid var(--line); border-radius: 10px; padding: .72rem .9rem; background: #263747; color: var(--text); font-weight: 800; cursor: pointer; }
button:hover { background: #30465a; }
button:disabled { cursor: not-allowed; opacity: .42; }
button.primary { background: #245d82; border-color: #4087b4; }
button.success { background: #285c38; border-color: #4b9b62; }
button.warning { background: #61491e; border-color: #b48331; }
button.danger { background: #762d35; border-color: #bd505a; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: .72rem; background: #0d1720; color: var(--text); }
label { display: grid; gap: .35rem; color: var(--muted); font-size: .86rem; font-weight: 700; }
.page { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 38px; }
.topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 18px; }
.brand { font-size: 1.15rem; font-weight: 900; letter-spacing: .025em; }
.subtitle { color: var(--muted); font-size: .82rem; }
.card { background: rgba(18, 28, 39, .93); border: 1px solid var(--line); border-radius: 15px; padding: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.grid { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.hidden { display: none !important; }
.status-dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; background: var(--red); box-shadow: 0 0 0 3px rgba(237, 107, 114, .12); }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 3px rgba(102, 193, 122, .12); }
.connection { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .85rem; }
.error { border: 1px solid rgba(237, 107, 114, .55); background: rgba(118, 45, 53, .32); color: #ffd8db; border-radius: 10px; padding: .72rem .85rem; }
.room-code { font: 900 clamp(2rem, 6vw, 4.6rem)/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .15em; color: #fff0c5; }
.command { border: 1px solid rgba(93, 169, 233, .45); background: rgba(36, 93, 130, .18); border-radius: 13px; padding: 15px; min-height: 92px; }
.command small { display: block; color: #91c7ef; font-weight: 900; letter-spacing: .11em; margin-bottom: .4rem; }
.command strong { font-size: 1.12rem; }
.pressure-track { height: 14px; border-radius: 999px; overflow: hidden; background: #091019; border: 1px solid var(--line); }
.pressure-fill { height: 100%; width: 0; background: linear-gradient(90deg, #3a8fc9, #efb74e 83%, #ed6b72); transition: width .12s linear; }
.metric { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.metric output { font: 900 1.45rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 9px; }
.muted { color: var(--muted); }
.footer { margin-top: 18px; color: var(--muted); font-size: .78rem; text-align: center; }
@media (max-width: 620px) { .page { width: min(100% - 16px, 1180px); padding-top: 10px; } .topbar { align-items: flex-start; } }
