:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  --ink: #eef2f7;
  --muted: #aeb9c9;
  --faint: #aeb9c9;
  --surface: #151d29;
  --line: #303b4b;
  --blue: #93b6ff;
  --green: #83dfb0;
  --red: #ff9eaa;
  --amber: #f3ce8b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #0e141d; color: var(--ink); font-size: 1rem; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
a { color: var(--blue); text-underline-offset: .2em; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 650; }
h2 { font-size: 1.25rem; line-height: 1.35; font-weight: 650; }
h3, h4 { font-size: 1rem; font-weight: 600; }
p + p { margin-top: .65rem; }
strong { font-weight: 650; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .875rem; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .35rem; }
.muted, .privacy-note, .updated-label, .small-copy { color: var(--muted); }
.small-copy, .privacy-note, .updated-label { font-size: .875rem; }
.eyebrow { color: var(--muted); font-size: .875rem; margin-bottom: .4rem; }
.topbar, main, footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 80px; border-bottom: 1px solid var(--line); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #315ea8; color: white; font-weight: 700; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: .8125rem; }
.transport { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .875rem; }
.signal, .device-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--muted); }
.signal-online, .device-dot.online { background: var(--green); }
.signal-error, .device-dot.offline { background: var(--red); }
main { min-height: calc(100vh - 160px); }
.screen { padding-block: 32px 48px; }
.dashboard { display: grid; gap: 20px; }
.dashboard-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard-heading p.muted { margin-top: 8px; }
.heading-actions, .provider-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-nav { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dashboard-nav a { color: var(--muted); padding: 8px 12px; border-radius: 6px; text-decoration: none; font-size: .9375rem; }
.dashboard-nav a:hover, .dashboard-nav a:focus-visible { background: var(--surface); color: var(--ink); }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.summary-card { display: flex; gap: 12px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.summary-icon { color: var(--blue); font-size: 1.25rem; }
.summary-card p, .summary-card small { display: block; color: var(--muted); font-size: .8125rem; }
.summary-card strong { display: block; margin-block: 2px; font-size: 1rem; }
.summary-card div { min-width: 0; overflow-wrap: anywhere; }
.status-online { color: var(--green); }
.devices-section { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: 24px; }
.devices-section > h2 + p, .section-heading + p { margin-top: 8px; }
.devices-section > .muted { max-width: 80ch; }
.device-list, .task-list { display: grid; gap: 0; margin-top: 16px; }
.device-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 20px; padding-block: 18px; border-top: 1px solid var(--line); }
.device-card > * { min-width: 0; overflow-wrap: anywhere; }
.device-card strong { font-size: 1rem; }
.computer-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, .8fr); }
.device-identity { display: flex; align-items: center; gap: 12px; }
.device-name { font-weight: 600; overflow-wrap: anywhere; }
.device-state { display: block; color: var(--muted); font-size: .875rem; margin-top: 3px; }
.device-evidence p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.device-evidence strong { color: var(--ink); }
.wake-info, .wake-message { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.wake-info { margin-top: 10px !important; }
.wake-message { margin: 0; }
.device-actions { display: grid; gap: 10px; align-items: start; }
.device-actions > .button { width: 100%; }
.wol-setup { border: 1px solid var(--line); border-radius: 7px; padding: 0 10px 8px; }
.wol-setup form { margin-top: 0; }
.wol-setup label { margin-top: 10px; font-size: .8125rem; }
.wol-setup .button { width: 100%; margin-top: 10px; }
.capabilities { display: flex; flex-wrap: wrap; gap: 6px; }
.capability { color: var(--muted); background: #202c3c; border-radius: 4px; padding: 3px 7px; font-size: .8125rem; }
.status-badge { display: inline-block; width: fit-content; padding: 4px 9px; border-radius: 5px; color: var(--muted); background: #253040; font-size: .875rem; white-space: normal; }
p.status-badge { margin-top: 6px; }
.status-badge.success { color: #a3efc7; background: #1a382e; }
.security-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.security-row .muted { margin-top: 3px; font-size: .875rem; }
.security-row > :last-child { flex-shrink: 0; }
.security-row:last-child { border-bottom: 0; }
#connections-section > p.muted { margin-top: 16px; font-size: .875rem; }
#recovery-status { color: var(--muted); font-size: .875rem; }
details { color: var(--muted); font-size: .9375rem; }
summary { color: var(--ink); font-size: .9375rem; font-weight: 600; padding-block: 8px; }
details[open] > summary { margin-bottom: 12px; }
details > p { margin-block: 8px; }
details.devices-section { padding: 16px 24px; }
details.devices-section > summary { font-size: 1rem; }
.add-assistant { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
.connector-address { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; background: #0e141d; border-radius: 8px; }
.connector-address code { overflow-wrap: anywhere; flex: 1 1 200px; }
.setup-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.setup-step h3 { margin-bottom: 16px; }
.step-number { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; background: #25344a; border-radius: 50%; font-size: .875rem; }
.download-list { display: grid; gap: 8px; }
.download-button { text-align: left; }
.setup-step .small-copy { margin-top: 10px; }
#pairing-form { margin: 0; }
#pairing-form label { margin-top: 0; }
#pairing-button { margin-top: 12px; }
.setup-section > details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.activity-section { display: grid; gap: 12px; scroll-margin-top: 24px; }
.activity-section h2 { margin: 4px 0; }
.task-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; border-top: 1px solid var(--line); }
.task-card > div { min-width: 0; flex: 1 1 240px; }
.task-card p { overflow-wrap: anywhere; }
.task-state { color: var(--muted); font-size: .875rem; }
.task-detail { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
#task-result { max-height: 400px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #0e141d; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
#task-events, #audit-events { overflow-wrap: anywhere; }
.empty-state { padding: 24px 0; color: var(--muted); }
.empty-state > span { display: none; }
.empty-state h3 { color: var(--ink); margin-bottom: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #202b3b; font-size: .9375rem; line-height: 1.4; font-weight: 600; text-decoration: none; }
.button:hover:not(:disabled) { background: #2b3a50; }
.button.primary { background: #3464b3; border-color: #4879c9; color: white; }
.button.primary:hover:not(:disabled) { background: #3f73c5; }
.button.quiet { background: transparent; color: var(--muted); }
.full-width { width: 100%; margin-top: 12px; }
form { margin-top: 20px; }
label { display: block; font-size: .9375rem; font-weight: 500; margin: 16px 0 6px; }
input[type="text"], input[type="password"], input[type="number"] { width: 100%; height: 44px; border: 1px solid #4b586b; border-radius: 7px; padding-inline: 12px; background: #0e141d; color: var(--ink); }
input::placeholder { color: #9aa8bd; }
.form-message, .dashboard-message { color: var(--red); font-size: .875rem; margin-top: 12px; }
.form-message:empty, .dashboard-message:empty, #audit-message:empty { display: none; }
.centre-screen { display: grid; place-items: center; min-height: 70vh; }
.panel { width: min(100%, 480px); padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.panel h1, .panel h2 { font-size: 1.5rem; margin-bottom: 12px; }
.panel > p { color: var(--muted); }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; min-height: 70vh; }
.intro-card h1 { font-size: 2.5rem; line-height: 1.15; max-width: 400px; margin-bottom: 20px; }
.intro-card > p { color: var(--muted); }
.boundary-note { display: flex; gap: 12px; margin-top: 28px; color: var(--muted); font-size: .9375rem; }
.boundary-note strong { color: var(--ink); }
.social-login { margin-block: 20px; }
.social-login .provider-buttons { display: grid; }
.social-login > p { font-size: .875rem; margin-top: 12px; }
.privacy-note { margin-top: 20px; }
.mfa-panel { width: min(100%, 660px); }
.enrollment { display: grid; grid-template-columns: 180px 1fr; gap: 24px; margin-block: 24px; }
.qr-frame { padding: 8px; background: white; border-radius: 8px; align-self: start; }
.qr-frame img { display: block; width: 100%; }
.manual-key { display: block; overflow-wrap: anywhere; margin-block: 12px; }
.recovery-panel { width: min(100%, 560px); }
.recovery-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block: 20px; }
.recovery-list code { text-align: center; padding: 8px; background: #0e141d; border-radius: 4px; }
.confirmation { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; }
.confirmation input { width: 18px; height: 18px; flex-shrink: 0; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 16px; }
.large-status { color: var(--red); font-size: 2rem; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: .875rem; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px; background: white; color: black; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.noscript { padding: 20px; color: white; background: #652b38; }
.content-page { display: grid; gap: 20px; max-width: 900px; }
.content-page > header { padding-top: 12px; }
.content-page > header p { color: var(--muted); max-width: 72ch; margin-top: 10px; }
.content-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.content-card h2 { margin-bottom: 10px; }
.content-card h3 { margin-top: 20px; }
.content-card pre { overflow: auto; padding: 14px; background: #0e141d; border: 1px solid var(--line); border-radius: 7px; white-space: pre-wrap; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.access-list { list-style: none; padding: 0; margin: 14px 0 0; }
.access-list li { padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.access-list small { display: block; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
  .auth-layout { grid-template-columns: 1fr; gap: 28px; }
  .intro-card h1 { font-size: 2rem; max-width: none; }
  .boundary-note { display: none; }
  .auth-panel { width: 100%; }
  .device-card { grid-template-columns: 1fr 1fr; }
  .device-card > :last-child { grid-column: 1 / -1; }
  .summary-card { padding: 12px; }
  .summary-icon { display: none; }
}
@media (max-width: 560px) {
  .topbar, main, footer { width: calc(100% - 32px); }
  .topbar { min-height: 68px; }
  .brand small { display: none; }
  .transport { font-size: .8125rem; }
  .screen { padding-block: 24px; }
  h1 { font-size: 1.75rem; }
  .dashboard-heading { flex-direction: column; align-items: stretch; }
  .heading-actions .button { flex: 1; }
  .dashboard-nav a { padding: 8px; font-size: .875rem; }
  .summary-grid { grid-template-columns: 1fr; gap: 8px; }
  .summary-card { padding: 12px 16px; }
  .summary-icon { display: block; }
  .devices-section, details.devices-section { padding: 16px; }
  .setup-actions, .device-card, .enrollment { grid-template-columns: 1fr; }
  .device-card { gap: 12px; }
  .security-row { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .qr-frame { max-width: 180px; }
  .panel { padding: 20px; }
  .recovery-list { grid-template-columns: 1fr; }
  .button { min-height: 44px; }
  .access-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
