:root {
  color-scheme: light dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
  margin: 0;
  background: #0b1020;
  color: #eef2ff;
}
main {
  max-width: 760px;
  margin: 64px auto;
  padding: 0 24px;
}
.card {
  border: 1px solid #27324a;
  border-radius: 16px;
  padding: 24px;
  background: #11182b;
  margin-bottom: 16px;
}
h1, h2 { margin-top: 0; }
label { display: block; margin: 16px 0 6px; font-weight: 600; }
input, button {
  box-sizing: border-box;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #394765;
  padding: 12px 14px;
  font: inherit;
}
input { background: #0b1020; color: #eef2ff; }
button {
  margin-top: 16px;
  cursor: pointer;
  background: #eef2ff;
  color: #111827;
  font-weight: 700;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button.secondary { background: transparent; color: #eef2ff; }
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #080c17;
  padding: 14px;
  border-radius: 10px;
}
.muted { color: #9aa7c0; }
.ok { color: #7ee787; }
.error { color: #ff7b72; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
code { overflow-wrap: anywhere; }

textarea, select {
  box-sizing: border-box;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #394765;
  padding: 12px 14px;
  font: inherit;
  background: #0b1020;
  color: #eef2ff;
}
textarea { resize: vertical; }
.policy-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
}
.checks input[type="checkbox"] {
  width: auto;
}
.section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #27324a;
}
.inline-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.small {
  font-size: 0.9rem;
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
  margin-bottom: 20px;
}
.lead {
  font-size: 1.2rem;
  line-height: 1.6;
}
.availability-note {
  display: grid;
  gap: 5px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid #2c4773;
  border-radius: 12px;
  background: #152645;
}
.availability-note span { color: #c1cfe8; }
.badge {
  display: inline-block;
  margin: 0 0 18px;
  border: 1px solid #52658f;
  border-radius: 999px;
  padding: 6px 10px;
  color: #c6d4f5;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.button-link {
  display: block;
  box-sizing: border-box;
  margin-top: 16px;
  border: 1px solid #eef2ff;
  border-radius: 10px;
  padding: 12px 14px;
  background: #eef2ff;
  color: #111827;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.button-link.secondary {
  border-color: #394765;
  background: transparent;
  color: #eef2ff;
}

/* Shared account, confirmation and device console surfaces. */
[hidden] { display: none !important; }
body { line-height: 1.55; }
a { color: #b3cbff; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.16; letter-spacing: -0.035em; }
h2 { font-size: 1.4rem; line-height: 1.3; }
h3 { font-size: 1.12rem; }
h4 { margin: 0 0 8px; }
.site-header { max-width: 960px; margin: 0 auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #27324a; }
.brand { color: #eef2ff; font-size: 1.05rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand span { font-size: .65rem; font-weight: 700; letter-spacing: .1em; margin-left: 10px; padding: 3px 5px; border: 1px solid #52658f; border-radius: 5px; vertical-align: middle; }
nav { display: flex; gap: 22px; font-size: .93rem; }
nav a { text-decoration: none; }
nav a:hover { color: white; }
main { margin-top: 44px; }
.console-layout { max-width: 920px; }
.page-intro { margin-bottom: 28px; }
.page-intro h1 { margin-bottom: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .73rem; font-weight: 750; color: #8caff5; margin: 0 0 10px; }
.account-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 12px 16px; background: #11182b; border: 1px solid #27324a; border-radius: 12px; }
button.text-button { width: auto; margin: 0; border: 0; padding: 4px 0; background: none; color: #b3cbff; font-size: .85rem; }
.account-frame { display: block; width: 100%; height: 640px; border: 0; border-radius: 12px; }
summary { font-weight: 650; cursor: pointer; padding: 4px 0; }
summary::marker { color: #8caff5; }
details[open] > summary { margin-bottom: 20px; }
.device-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.device-summary h2 { margin-bottom: 6px; overflow-wrap: anywhere; }
.device-summary p { margin-bottom: 0; }
.status-pill { white-space: nowrap; border: 1px solid #394765; border-radius: 100px; padding: 3px 10px; font-size: .79rem; }
.status-pill.ok { background: #103329; border-color: #205641; }
.status-pill.error { background: #3a2028; border-color: #764047; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 22px 0; }
dt { color: #9aa7c0; font-size: .79rem; margin-bottom: 4px; }
dd { margin: 0; font-size: .93rem; overflow-wrap: anywhere; }
.permission-summary { margin-top: 24px; background: #152645; border: 1px solid #2c4773; padding: 18px; border-radius: 12px; }
.permission-summary p { margin-bottom: 0; font-size: .94rem; color: #c1cfe8; }
.connection-card { border: 1px solid #27324a; border-radius: 12px; padding: 20px; margin: 14px 0; background: #0d1425; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.compact { width: auto; margin: 0; padding: 9px 14px; font-size: .86rem; }
button.danger { color: #ffaaa3; border-color: #7b4446; background: #301c25; }
button:hover:not(:disabled), .button-link:hover { filter: brightness(1.13); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #86aefa; outline-offset: 3px; }
label .muted { font-size: .84rem; font-weight: 400; }
input[type="datetime-local"] { color-scheme: dark; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { text-align: left; border-bottom: 1px solid #27324a; padding: 12px 10px; overflow-wrap: anywhere; }
th { color: #9aa7c0; font-size: .77rem; }
.empty-state { padding: 32px; }
.steps { margin: 32px 0; }
.steps > div { display: flex; gap: 16px; margin: 26px 0; }
.steps h2 { font-size: 1.1rem; margin: 0 0 6px; }
.steps p { margin-top: 0; }
.steps > div > div { flex: 1; min-width: 0; }
.step-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; height: 28px; border: 1px solid #52658f; border-radius: 50%; color: #b3cbff; font-size: .8rem; font-weight: 700; }
footer { max-width: 920px; margin: 32px auto; padding: 0 24px; color: #8492ad; font-size: .8rem; text-align: center; }
@media (max-width: 600px) {
  main { padding: 0 16px; margin-top: 28px; }
  .card { padding: 20px; }
  .site-header { padding: 20px 16px; }
  .brand { font-size: .9rem; }
  nav { gap: 12px; font-size: .8rem; }
  .row { flex-direction: column; gap: 0; }
  .policy-grid, .inline-grid { grid-template-columns: 1fr; }
  .account-frame { height: 700px; }
  .toolbar { align-items: flex-start; }
  .device-summary { flex-wrap: wrap; }
}
