:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #0b0e12;
  color: #e9edf2;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #17202b, #0b0e12 45%); }
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
header, .auth, .summary, .client-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; }
h2 { margin-top: 4px; }
.eyebrow, .server, dt, .unsupported { color: #8b98a8; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.status, .pill { border: 1px solid #394554; border-radius: 99px; padding: 8px 12px; font-size: .75rem; font-weight: 800; }
.online, .is-online .pill { color: #6df5a9; border-color: #277c50; }
.offline, .is-offline .pill { color: #ff7b7b; border-color: #8d3535; }
.auth { margin: 28px 0 12px; padding: 16px; border: 1px solid #28313c; border-radius: 12px; background: #11161d; justify-content: flex-start; flex-wrap: wrap; }
input, select, button { border: 1px solid #394554; border-radius: 8px; background: #171e27; color: inherit; padding: 10px 12px; }
input { min-width: min(360px, 100%); }
button { cursor: pointer; font-weight: 750; }
button:hover:not(:disabled) { border-color: #f0b429; color: #f0b429; }
button:disabled { cursor: not-allowed; opacity: .42; }
.command[data-command="FULL_RESET_CAR"] { border-color: #8d3535; color: #ff9b9b; }
#message { color: #f0b429; font-family: ui-monospace, monospace; font-size: .8rem; }
.summary { padding: 12px 2px 22px; color: #aab4c0; font-size: .9rem; }
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 18px; }
.client { border: 1px solid #293441; border-radius: 14px; background: rgba(17, 22, 29, .94); padding: 20px; }
.client.is-offline { opacity: .68; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
dl div { min-width: 0; }
dd { margin: 4px 0 0; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: .83rem; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.client h3 { margin: 22px 0 10px; font-size: .95rem; }
.settings { display: grid; gap: 10px; }
.setting-control { padding: 12px; border: 1px solid #293441; border-radius: 10px; background: #0e1319; }
.setting-control > label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 750; }
.setting-control small { display: block; margin-top: 7px; color: #8b98a8; font-size: .72rem; }
.setting-inputs { display: grid; grid-template-columns: minmax(90px, 1fr) auto auto; gap: 7px; }
.setting-inputs input { min-width: 0; width: 100%; }
.grip-inputs { grid-template-columns: 82px minmax(75px, 1fr) auto auto; }
.neutral { color: #8fd8b0; }
.unsupported { margin-top: 16px; }
.command-result { margin-top: 8px; color: #b9c3cf; font-family: ui-monospace, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.empty { grid-column: 1 / -1; padding: 48px; text-align: center; color: #8b98a8; border: 1px dashed #394554; border-radius: 14px; }
@media (max-width: 650px) {
  header, .summary { align-items: flex-start; flex-direction: column; }
  dl { grid-template-columns: 1fr; }
  .actions { grid-template-columns: repeat(2, 1fr); }
  .setting-inputs, .grip-inputs { grid-template-columns: 1fr 1fr; }
}
