/* RMAC web console. Apple-style utility with a light technical edge; see design/DESIGN.md. Dark only. */
:root {
  --bg: #0E1013;
  --surface: #16191E;
  --surface-2: #1E2228;
  --surface-3: #272C33;
  --hairline: rgba(255,255,255,.08);
  --hairline-strong: rgba(255,255,255,.14);
  --text: #F2F4F7;
  --text-2: #A1A8B3;
  --text-3: #6E7682;
  --accent: #32D27A;
  --accent-hover: #3EE087;
  --accent-ink: #06210F;
  --accent-soft: rgba(50,210,122,.14);
  --amber: #FFB340;
  --red: #FF5F57;
  --red-soft: rgba(255,95,87,.12);
  --ring: 0 0 0 3px rgba(50,210,122,.35);
  --shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 13px/1.5 var(--ui); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-soft); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Logo */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px var(--hairline); }
a.brand { color: var(--text); text-decoration: none !important; }
.brand.big { flex-direction: column; gap: 12px; font-size: 20px; }
.brand.big img { width: 56px; height: 56px; border-radius: 13px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface-2); color: var(--text); cursor: pointer;
  font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none !important;
  transition: background .14s ease-out, border-color .14s ease-out, transform .12s ease-out, opacity .14s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.danger.solid { background: var(--red); border-color: transparent; color: #fff; }
.btn.danger.solid:hover { background: #ff7069; }
.btn.small { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.wide { width: 100%; height: 40px; font-size: 14px; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn.primary:disabled:hover { background: var(--accent); }
.btn.icon { width: 28px; padding: 0; }

/* Inputs */
.input, select.input {
  width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--hairline-strong); border-radius: 10px;
  background: var(--surface-2); outline: none; font-size: 13px; transition: border-color .14s, box-shadow .14s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.input.mono { font-family: var(--mono); letter-spacing: .02em; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-2); }
label .input { color: var(--text); font-weight: 400; }
.error { padding: 9px 12px; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 12.5px; }

/* Sign-in */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(900px 500px at 50% -10%, rgba(50,210,122,.07), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.auth-card .brand.big { margin-bottom: 10px; }
.auth-card h1 { margin: 0 0 4px; font-size: 13px; text-align: center; font-weight: 400; color: var(--text-2); }
.auth-card h1.auth-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); }
.auth-lede { margin: -6px 0 4px; text-align: center; color: var(--text-2); overflow-wrap: anywhere; }
.auth-lede strong { color: var(--text); font-weight: 500; }
.forgot-link { align-self: flex-end; margin: -8px 0 -2px; font-size: 12px; font-weight: 500; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 4px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }

/* Shell */
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { padding: 20px 12px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--hairline); }
.sidebar .brand { padding: 0 8px; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a { padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none !important; transition: background .12s, color .12s; }
nav a:hover { color: var(--text); background: var(--surface-2); }
nav a.active { color: var(--text); background: var(--surface-3); }
/* Admin section of the menu: a line, then a small heading */
.nav-sep { margin: 12px 4px 4px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.nav-sep span { padding: 0 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.nav-sep.hidden { display: none; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 8px; }
.me { font-size: 12px; color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere; }
.me strong { display: block; color: var(--text); font-weight: 500; }
.sidebar-foot .btn.ghost { margin-left: -10px; }
.content { padding: 28px 36px 56px; min-width: 0; max-width: 1280px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.org-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 20px; border-radius: 12px; background: rgba(255,179,64,.1); color: var(--amber); font-size: 13px; }
.org-banner strong { color: var(--text); font-weight: 600; }
.org-banner .btn { margin-left: auto; }

/* Billing banner: unpaid sign-up, failed payment, ended subscription */
.bill-banner { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 10px 10px 14px; margin-bottom: 20px; border-radius: 12px; background: rgba(255,179,64,.1); color: var(--text-2); font-size: 13px; }
.bill-banner strong { color: var(--text); font-weight: 500; }
.bill-banner.danger { background: var(--red-soft); }
.bill-banner.info { background: var(--surface); border: 1px solid var(--hairline); padding: 12px 14px; }
.bill-banner-text { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bill-banner-actions { display: flex; gap: 8px; margin-left: auto; }
.bill-banner-actions:empty { display: none; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: spin 2.4s linear infinite !important; } }

@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .quick label { min-width: 0; flex-basis: 100%; }
  .quick .btn { width: 100%; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 12px 8px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--hairline); }
  nav { flex-direction: row; overflow-x: auto; order: 3; width: 100%; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { white-space: nowrap; }
  .nav-sep { margin: 0 4px; padding: 0 0 0 10px; border-top: 0; border-left: 1px solid var(--hairline); display: flex; align-items: center; }
  .sidebar-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; padding: 0; }
  .me { display: none; }
  .content { padding: 18px 16px 40px; }
  .page-head h1 { font-size: 20px; }
}

/* Cards and tables */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; }
.card-pad { padding: 18px 20px; }
.card h2 { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px 8px; white-space: nowrap; }
td { padding: 12px 16px; font-variant-numeric: tabular-nums; border-top: 1px solid var(--hairline); vertical-align: middle; font-size: 13px; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn + .btn { margin-left: 6px; }
td.mono { white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.empty { padding: 40px 20px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty p { margin: 0; }
.empty p strong { font-weight: 500; color: var(--text); }
.table-foot { padding: 12px 16px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--hairline); }

/* Status */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); margin-right: 10px; vertical-align: 1px; opacity: .6; }
.dot.on { background: var(--accent); opacity: 1; box-shadow: 0 0 8px rgba(50,210,122,.6); }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--surface-3); color: var(--text-2); vertical-align: 1px; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: rgba(255,179,64,.14); color: var(--amber); }
.badge.danger { background: var(--red-soft); color: var(--red); }
.dev-name { font-weight: 600; white-space: nowrap; }
.dev-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; white-space: nowrap; }

/* Signed-in devices (Security) */
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 18px 20px 10px; }
.card-head h2 { margin: 0 0 4px; }
.card-head p { margin: 0; font-size: 13px; }
.dev-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dev-text { min-width: 0; }
.dev-icon { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--hairline); color: var(--text-2); }
.dev-icon svg { width: 18px; height: 18px; }
.signins .dev-name { font-weight: 500; }
.signins .badge { margin-left: 6px; }
.user-cell { white-space: nowrap; }
.table-foot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline-strong); }
.table-foot a:hover { color: var(--text); }

/* Platform overview tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px 18px; }
.stat .n { font: 600 28px/1.1 var(--ui); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--text-2); font-size: 12.5px; margin-top: 4px; }

.quick { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.quick label { flex: 1; min-width: 150px; }
.code { font: 500 22px var(--mono); letter-spacing: .08em; color: var(--text); padding: 10px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--hairline); display: inline-block; user-select: all; }
.steps { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); }
.dl-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.fine { font-size: 12px; color: var(--text-3); }

/* Billing card (Settings) */
.bill-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bill-sub { color: var(--text-2); margin-top: 2px; }

/* Plans (platform admin) */
.billing-status { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.billing-status p { margin: 0; }
.bs-title { display: flex; align-items: center; font-size: 13px; font-weight: 500; gap: 0; }
.bs-title .badge { margin-left: 10px; }
.billing-status.off .bs-title { color: var(--text); }
.bs-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--text-2); font-size: 12.5px; padding-left: 18px; }
.bs-warn { color: var(--amber); }
.billing-status.off p { padding-left: 18px; }
.bs-connect { display: flex; gap: 8px; padding-left: 18px; margin-top: 4px; max-width: 560px; }
.bs-connect .input { flex: 1; min-width: 0; }
.billing-status .fine { padding-left: 18px; line-height: 1.5; max-width: 760px; }
.billing-status .fine a { color: var(--accent); }
.bs-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-left: 18px; margin-top: 6px; }
.bs-switch { justify-content: flex-start; gap: 10px; }
.bs-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.imp-list { display: flex; flex-direction: column; max-height: min(420px, 55vh); overflow: auto; margin: 4px -4px; }
.imp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--hairline); }
.imp-row:first-child { border-top: 0; }
.imp-main { min-width: 0; }
.imp-main .small { font-size: 12.5px; margin-top: 2px; }
.imp-act { flex: none; }
.plans-table tr.archived td { color: var(--text-3); }
.plans-table tr.archived .dev-name { font-weight: 500; }
.modal-note { margin: -2px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.45; }

/* Limits: form rows (label left, number right), usage figures, the Usage card */
.field-h { margin: 6px 0 -4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
label.inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 400; color: var(--text); }
label.inline .input { flex: none; width: 120px; text-align: right; }
.usage .of { color: var(--text-3); }
.usage { font-variant-numeric: tabular-nums; }
.usage.full .n { color: var(--amber); }
.usage-row { display: flex; align-items: center; gap: 10px; font-size: 13px; min-height: 24px; }
.usage-row > .muted { flex: 1; min-width: 0; }
.usage-row .meter { margin-right: 0; width: 56px; }
.usage-n { min-width: 64px; text-align: right; white-space: nowrap; }
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.head-note { font-size: 12.5px; color: var(--text-2); max-width: 360px; text-align: right; }
@media (max-width: 760px) { .head-actions { justify-content: flex-start; } .head-note { text-align: left; } }

/* Row overflow menu */
.more { position: relative; display: inline-block; margin-left: 6px; }
.more > .btn { width: 30px; padding: 0; font-size: 16px; line-height: 1; letter-spacing: .05em; }
.menu { position: fixed; min-width: 170px; padding: 6px; border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow); z-index: 15; display: flex; flex-direction: column; text-align: left; }
.menu button { all: unset; box-sizing: border-box; padding: 7px 10px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--text); }
.menu button:hover, .menu button:focus-visible { background: var(--surface-3); }
.menu button.danger { color: var(--red); }
.menu hr { border: 0; height: 1px; background: var(--hairline); margin: 4px 2px; }

/* Modal + toast */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 20; padding: 16px; animation: fade .16s ease-out; }
.modal { width: 100%; max-width: 420px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 14px; animation: pop .18s ease-out; }
.modal h3 { margin: 0; font-size: 17px; font-weight: 600; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.98); } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 16px; border-radius: 12px; background: var(--surface-3); box-shadow: var(--shadow); color: var(--text); z-index: 30; font-size: 13px; animation: pop .18s ease-out; }

/* Computer health */
.nowrap { white-space: nowrap; }
td:has(> .meter) { white-space: nowrap; }
.meter { display: inline-block; width: 40px; height: 4px; border-radius: 2px; background: var(--surface-3); vertical-align: middle; margin-right: 8px; position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--accent); }
.meter.warn i { background: var(--amber); }
.meter.crit i { background: var(--red); }
.meter-n { font: 12.5px var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }

/* Phones: each computer (and each plan) becomes a card instead of a wide table row */
@media (max-width: 760px) {
  :is(table.devices, table.plans-table, table.signins) thead { display: none; }
  :is(table.devices, table.plans-table, table.signins) tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 16px; border-top: 1px solid var(--hairline); }
  :is(table.devices, table.plans-table, table.signins) tbody tr:first-child { border-top: 0; }
  :is(table.devices, table.plans-table, table.signins) td { padding: 0; border: 0; background: none !important; }
  :is(table.devices, table.plans-table, table.signins) td:first-child { flex: 1 1 60%; min-width: 0; }
  :is(table.devices, table.plans-table, table.signins) td.actions { order: -1; margin-left: auto; flex: none; }
  :is(table.devices, table.plans-table, table.signins) td:first-child { order: -2; }
  :is(table.devices, table.plans-table, table.signins) td[data-label] { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
  :is(table.devices, table.plans-table, table.signins) td[data-label]::before { content: attr(data-label); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
  :is(table.devices, table.plans-table, table.signins) td[data-label] .dev-sub { margin-top: 0; }
  table.signins td:first-child { flex: 1 1 calc(100% - 110px); }
  table.signins .badge { white-space: nowrap; margin-left: 0; }
  table.signins .dev-name { white-space: normal; }
  table.signins td[data-label="User"] { flex: 1 1 100%; }
  table.signins td[data-label]::before { font-family: var(--ui); }
}
.legal-links { margin: 6px 0 0; font-size: 12px; } .legal-links a { color: var(--text-3); }

/* Messages (contact form) */
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 600; }
.page-note { margin: -6px 0 16px; font-size: 13px; }
.page-note a { color: var(--accent); }
.msg-list { display: flex; flex-direction: column; }
.msg + .msg { border-top: 1px solid var(--hairline); }
.msg-head { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; }
.msg-head:hover { background: var(--surface-2); }
.msg-head:focus-visible { box-shadow: inset var(--ring); }
.msg-dot { width: 8px; height: 8px; border-radius: 50%; }
.msg.unread .msg-dot { background: var(--accent); }
.msg.unread .dev-name { font-weight: 600; }
.msg-from { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.msg-when { font-size: 12px; white-space: nowrap; }
.msg-body { padding: 0 18px 16px 40px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; color: var(--text); }
.msg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
@media (max-width: 640px) { .msg-head { grid-template-columns: 10px minmax(0, 1fr) auto; } .msg-head .badge { display: none; } .msg-body { padding-left: 18px; } }

/* Settings: email notifications */
.pref-list { display: flex; flex-direction: column; margin-top: 2px; }
.pref-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; cursor: pointer; }
.pref-row + .pref-row { border-top: 1px solid var(--hairline); }
.pref-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pref-name { font-size: 13.5px; font-weight: 500; color: var(--text); }
.pref-text .muted { font-size: 12.5px; font-weight: 400; }
.pref-row .switch { flex: none; }

/* Toggle switch (same as the viewer's) */
.switch {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); position: relative;
  box-shadow: inset 0 0 0 1px var(--hairline); transition: background-color .16s ease;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.4); transition: transform .16s ease;
}
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(16px); }
.switch:disabled { opacity: .4; cursor: default; }
.switch:focus-visible { outline: none; box-shadow: var(--ring); }

/* Emailed sign-in code */
.code-input { height: 48px; font-family: var(--mono); font-size: 24px; letter-spacing: .35em; text-align: center; }
.auth-card .remember { font-size: 13px; color: var(--text-2); }
.code-links { font-size: 13px; }

/* Pager under long tables */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--hairline); font-size: 12.5px; }
.pager-btns { display: flex; gap: 8px; }

/* Live monitor (platform admin) */
.mon-updated { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.dot.pulse { animation: mon-pulse 2s ease-in-out infinite; }
@keyframes mon-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot.pulse { animation: none; } }
.mon-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.mon-tile { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); min-width: 0; }
.mon-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.mon-value { margin-top: 6px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-sub { margin-top: 2px; font-size: 12px; color: var(--text-3); }
.mon-charts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.spark { display: block; width: 100%; height: 56px; margin-top: 10px; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-fill { fill: rgba(50, 210, 122, .1); }
.mon-lists { margin-top: 12px; }
.mon-lists .small { font-size: 12px; margin-top: 1px; }
.dot.busy { background: var(--amber); }
.mon-server { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
@media (max-width: 1100px) { .mon-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mon-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mon-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mon-charts { grid-template-columns: 1fr; } }

/* Click a computer's name to rename it */
button.dev-name.rename { all: unset; cursor: pointer; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; }
button.dev-name.rename svg { width: 13px; height: 13px; fill: none; stroke: var(--text-3); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; transition: opacity .12s; }
tr:hover button.dev-name.rename svg, button.dev-name.rename:focus-visible svg { opacity: 1; }
button.dev-name.rename:focus-visible { box-shadow: var(--ring); }
