:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07111f;
  color: #eef6ff;
  --blue: #2389ef;
  --mint: #50e3a4;
  --red: #ff6b6b;
  --line: rgba(170, 205, 240, 0.18);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0, #123b68 0, transparent 34rem), #07111f; }
main { width: min(760px, 100%); margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 18px max(40px, env(safe-area-inset-bottom)); }
header { padding: 24px 4px 34px; }
.mark { color: var(--mint); font-size: 12px; font-weight: 900; letter-spacing: .22em; }
h1 { margin: 12px 0; font-size: clamp(42px, 11vw, 74px); line-height: .94; letter-spacing: -.055em; }
h1 span { color: #83bff8; }
header p { max-width: 520px; color: #a9bdd2; font-size: 17px; line-height: 1.6; }
.card { margin: 14px 0; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: rgba(10, 26, 44, .88); box-shadow: 0 20px 60px rgba(0,0,0,.18); backdrop-filter: blur(16px); }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.card-title span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #14395d; color: #83bff8; font-size: 11px; font-weight: 900; }
h2 { margin: 0; font-size: 17px; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
dl div:first-child { border-top: 0; }
dt { color: #8ca4bc; }
dd { margin: 0; text-align: right; font-weight: 750; }
.good { color: var(--mint); }
.bad { color: var(--red); }
.notice { margin: 14px 0; padding: 18px 20px; border-left: 4px solid #ffcb6b; border-radius: 10px 18px 18px 10px; background: #2c261a; color: #ffe3aa; }
.notice p { margin: 8px 0 0; line-height: 1.55; }
label { display: block; margin: 14px 0; color: #a9bdd2; font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #06101c; color: #eef6ff; font: inherit; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.button-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
button { min-height: 46px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--blue); color: white; font: inherit; font-weight: 850; cursor: pointer; }
button.secondary { background: #21364c; }
button.accent { background: var(--mint); color: #062319; }
button.danger { background: #52282d; color: #ffb7bd; }
button:disabled { opacity: .42; cursor: not-allowed; }
.hint { margin: 14px 0 0; color: #8199b1; font-size: 12px; line-height: 1.5; }
.device-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.device-toolbar p { margin: 0; color: #a9bdd2; }
.device-toolbar button { width: auto; }
.device-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.device-list li { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #06101c; }
.device-list strong { color: #eef6ff; }
.device-list span { color: #8199b1; font-size: 12px; line-height: 1.5; }
.device-list .device-empty { color: #8199b1; text-align: center; }
.console { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #030a12; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.console-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--mint); font-size: 11px; letter-spacing: .16em; }
.console-head button { min-height: auto; padding: 5px 8px; background: transparent; color: #71879d; font-size: 10px; }
.console ol { max-height: 240px; margin: 0; padding: 12px 12px 12px 42px; overflow: auto; color: #9db2c8; font-size: 12px; line-height: 1.65; }
@media (max-width: 420px) { .button-grid { grid-template-columns: 1fr; } .card { padding: 17px; } }
