/* Dev Hub sign-in, settings and people screens (signin.js). Tokens: the design
   spec, as in control.css. Dark is the default; the light theme follows the
   control room's toggle (localStorage hub-theme). No inline styles anywhere. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/vendor/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/vendor/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/vendor/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/vendor/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #0b121c; --surface: #111b27; --surface-2: #172435; --inset: #070c13;
  --border: #22324a; --border-strong: #2f4563;
  --text: #eef2f7; --text-2: #b3bfcb; --text-3: #909ca7;
  --primary: #205cfa; --primary-hover: #0541e0; --link: #8fb0ff; --focus: #8fb0ff;
  --ok-bg: #15281c; --ok-fg: #9fd0a9; --ok-bd: #2b4a33;
  --risk-bg: #3a1d16; --risk-fg: #f2a493; --risk-bd: #6e3326;
  --ask-bg: #33260f; --ask-fg: #f0c27a; --ask-bd: #6b4f1e;
  --idle-bg: #1b2533; --idle-fg: #b3bfcb;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Sora", "IBM Plex Sans", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f7fa; --surface: #ffffff; --surface-2: #eef2f7; --inset: #0b121c;
  --border: #dde3ea; --border-strong: #c9d2dc;
  --text: #102336; --text-2: #4a5560; --text-3: #5f6b77;
  --link: #0541e0; --focus: #205cfa;
  --ok-bg: #e7f0e9; --ok-fg: #3f5f46; --ok-bd: #c9dccd;
  --risk-bg: #fbe9e5; --risk-fg: #a8432d; --risk-bd: #e6b8ad;
  --ask-bg: #fdf0d9; --ask-fg: #7a4d0f; --ask-bd: #f0d3a3;
  --idle-bg: #eef1f5; --idle-fg: #4a5560;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); }
a { color: var(--link); }
a:hover { color: var(--text); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.mark-light { display: none; }
:root[data-theme="light"] .mark-dark { display: none; }
:root[data-theme="light"] .mark-light { display: block; }

.si-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.si-col { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.si-page.wide { align-items: flex-start; }
.si-page.wide .si-col { max-width: 1040px; align-items: stretch; }
.si-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.si-page.wide .si-head { flex-direction: row; justify-content: space-between; text-align: left; flex-wrap: wrap; }
.si-logo { height: 48px; width: auto; }
.si-page.wide .si-logo { height: 28px; }
.si-head h1 { margin: 0; font: 600 32px/1.2 var(--display); letter-spacing: -.02em; }
.si-page.wide .si-head h1 { font-size: 24px; }
.si-sub { margin: 0; font-size: 16px; color: var(--text-2); }
.si-card { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.si-section { display: flex; flex-direction: column; gap: 12px; }
.si-section + .si-section { border-top: 1px solid var(--border); padding-top: 16px; }
.si-h { font-weight: 600; font-size: 16px; margin: 0; }
.si-muted { margin: 0; font-size: 13px; color: var(--text-2); }
.si-meta { font-size: 12px; color: var(--text-3); }
.si-foot { font-size: 13px; color: var(--text-3); display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.si-btn { height: 40px; width: 100%; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); text-decoration: none; }
.si-btn.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.si-btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.si-btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.si-btn.danger { background: transparent; border-color: var(--risk-bd); color: var(--risk-fg); }
.si-btn.sm { height: 32px; width: auto; font-size: 13px; }
.si-btn:disabled { opacity: .55; cursor: not-allowed; }
.si-link { border: 0; background: transparent; padding: 0; color: var(--link); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: underline; align-self: center; }
.si-or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.si-field { display: flex; flex-direction: column; gap: 6px; }
.si-field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.si-input, .si-select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 14px; }
.si-input.code { font-family: var(--mono); letter-spacing: .2em; font-size: 18px; }
.si-alert { display: flex; gap: 10px; padding: 12px; border-radius: 10px; font-size: 13px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.si-alert.error { background: var(--risk-bg); border-color: var(--risk-bd); color: var(--risk-fg); }
.si-alert.success { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok-fg); }
.si-alert.warn { background: var(--ask-bg); border-color: var(--ask-bd); color: var(--ask-fg); }
.si-mono { font-family: var(--mono); font-size: 13px; background: var(--inset); color: #eef2f7; border-radius: 10px; padding: 12px; overflow-wrap: anywhere; white-space: pre-wrap; margin: 0; }
.si-qr { width: 180px; height: 180px; background: #fff; border-radius: 10px; padding: 8px; align-self: center; image-rendering: pixelated; }
.si-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.si-row .grow { flex: 1 1 160px; min-width: 0; }
.si-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--idle-bg); color: var(--idle-fg); }
.si-chip.ok { background: var(--ok-bg); color: var(--ok-fg); }
.si-chip.risk { background: var(--risk-bg); color: var(--risk-fg); }
.si-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.si-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.si-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 8px; border-bottom: 1px solid var(--border); }
.si-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.si-table td.mono { font-family: var(--mono); }
.si-scroll { overflow-x: auto; }
.si-spin { width: 48px; height: 48px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); align-self: center; }
@media (max-width: 640px) { .si-table thead { display: none; } .si-table td { display: block; border: 0; padding: 4px 0; } .si-table tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; } }
