:root {
  color-scheme: dark;
  --bg: #10151e;
  --panel: #1a2230;
  --panel-2: #202a39;
  --text: #f3f6fb;
  --muted: #97a4b7;
  --accent: #80aaff;
  --green: #52d6a0;
  --red: #ff7e86;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 10% 0%, #243149 0, var(--bg) 48rem); }
button { font: inherit; color: inherit; }
.shell { width: min(100%, 620px); margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: #111827; background: linear-gradient(145deg,#a8c4ff,#6c98f4); font-size: 29px; font-weight: 700; box-shadow: 0 8px 28px #597fc744; }
.eyebrow { margin: 0 0 3px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
h1 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.icon-button { margin-left: auto; width: 42px; height: 42px; border: 1px solid #ffffff12; border-radius: 14px; background: var(--panel); font-size: 23px; cursor: pointer; }
.intro { display: flex; align-items: center; gap: 9px; margin: 27px 2px 13px; color: var(--muted); font-size: 13px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px #52d6a077; }
.devices { display: grid; gap: 14px; }
.device-card { padding: 17px; border: 1px solid #ffffff0d; border-radius: 22px; background: linear-gradient(145deg,#202a39ee,#171e29f5); box-shadow: 0 12px 34px #00000018; }
.device-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.device-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #83aaff1c; font-size: 21px; }
.device-title { min-width: 0; flex: 1; }
.device-title h2 { overflow: hidden; margin: 0 0 4px; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.status::before { width: 6px; height: 6px; border-radius: 50%; background: #748093; content: ""; }
.status.online { color: var(--green); }.status.online::before { background: var(--green); box-shadow: 0 0 8px #52d6a077; }
.status.offline { color: #ff989f; }.status.offline::before { background: var(--red); }
.actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.action { min-height: 45px; padding: 10px 11px; border: 1px solid #ffffff0c; border-radius: 13px; background: var(--panel-2); text-align: left; font-size: 13px; font-weight: 650; cursor: pointer; transition: transform .15s, background .15s; }
.action:active { transform: scale(.98); }.action:disabled { opacity: .55; cursor: wait; }
.action.primary { border-color: #80aaff24; background: #80aaff1c; color: #b9d0ff; }
.action.danger { background: #ff7e8614; color: #ff9ba1; }
.action.app { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; }
.action.app::after { color: var(--muted); content: "↗"; }
.notice { min-height: 20px; margin: 13px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.notice.error { color: #ff9ba1; } footer { margin-top: 21px; color: #718096; text-align: center; font-size: 11px; }
@media (max-width: 360px) { .shell { padding-right: 14px; padding-left: 14px; }.device-card { padding: 14px; }.actions { gap: 7px; }.action { font-size: 12px; } }
