:root {
  --bg: #070b0d;
  --surface: #0d1316;
  --surface-raised: #121a1e;
  --text: #f3f7f7;
  --muted: #93a2a6;
  --border: rgba(145, 255, 230, 0.14);
  --cyan: #34e2c4;
  --cyan-soft: rgba(52, 226, 196, 0.12);
  --danger: #ff8f96;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -10%, rgba(52,226,196,.08), transparent 35rem), var(--bg); color: var(--text); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1040px) / 2));
  background: rgba(7,11,13,.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.02em; }
.brand-mark { color: var(--cyan); font-size: 22px; }
.user-button { min-width: 36px; min-height: 36px; }

.shell { width: min(1040px, calc(100% - 36px)); margin: 0 auto; padding: 72px 0 96px; }
.hero { max-width: 700px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 10px; color: var(--cyan); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(40px, 7vw, 68px); line-height: .98; letter-spacing: -.055em; margin-bottom: 20px; }
h2 { font-size: 21px; letter-spacing: -.025em; margin-bottom: 8px; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 660px; }

.dashboard { display: grid; gap: 18px; }
.panel { border: 1px solid var(--border); background: linear-gradient(180deg, rgba(18,26,30,.96), rgba(13,19,22,.96)); border-radius: 22px; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.panel p { color: var(--muted); line-height: 1.6; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin-bottom: 0; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; }
.facts > div { border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.025); border-radius: 14px; padding: 14px; min-width: 0; }
.facts dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 7px; }
.facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }

.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 10px 17px; min-height: 40px; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 650; transition: opacity .15s ease, transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .42; transform: none; }
.button.primary { background: var(--cyan); color: #03110e; box-shadow: 0 8px 28px rgba(52,226,196,.16); }
.button.quiet { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid rgba(255,255,255,.08); }
.button.danger { color: var(--danger); background: rgba(255,143,150,.08); border: 1px solid rgba(255,143,150,.14); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.badge { display: inline-flex; align-items: center; border: 1px solid var(--border); background: var(--cyan-soft); color: var(--cyan); border-radius: 999px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.status { display: none; border-radius: 14px; margin-bottom: 18px; padding: 13px 15px; font-size: 14px; line-height: 1.5; border: 1px solid var(--border); background: var(--cyan-soft); color: var(--text); }
.status.visible { display: block; }
.status.error { border-color: rgba(255,143,150,.28); background: rgba(255,143,150,.08); color: #ffd7da; }

.release-details { margin-top: 20px; display: grid; gap: 9px; color: var(--muted); font-size: 14px; }
.release-details strong { color: var(--text); font-weight: 600; }
.fine-print { font-size: 12px; margin: 18px 0 0 !important; }

.device-list { margin-top: 20px; display: grid; gap: 10px; }
.device { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 14px; }
.device-main { min-width: 0; }
.device-name { font-weight: 650; margin-bottom: 4px; overflow-wrap: anywhere; }
.device-meta { color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); padding: 16px 0; font-size: 14px; }

.hidden { display: none !important; }

footer { width: min(1040px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0 44px; display: flex; gap: 22px; border-top: 1px solid var(--border); }
footer a { color: var(--muted); text-decoration: none; font-size: 13px; }
footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .shell { padding-top: 48px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .panel { padding: 20px; border-radius: 18px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .device { align-items: flex-start; flex-direction: column; }
}
