:root {
  color-scheme: dark;
  --bg: #111319;
  --deep: #13161e;
  --panel: #1a1e29;
  --raised: #232938;
  --line: #303747;
  --text: #eaedf4;
  --muted: #a8b2c5;
  --blue: #a7bbff;
  --mint: #8ed6b7;
  --amber: #edbd82;
  --red: #f2a2ae;
  --focus: #c4d0ff;
  --radius: 8px;
  font: 15px/1.45 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: 1.22rem; line-height: 1.25; font-weight: 650; }
button, input, select { font: inherit; color: inherit; }
button, input, select { border: 1px solid var(--line); border-radius: var(--radius); background: var(--deep); }
button { min-height: 36px; padding: 6px 10px; cursor: pointer; }
button:hover { background: var(--raised); }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: var(--blue); color: #121a34; border-color: transparent; font-weight: 700; }
button.primary:hover { background: var(--focus); }
input, select { padding: 6px 8px; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.companion { padding: clamp(12px, 2vw, 20px); }
.companion-header, .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.companion-header { justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.companion-header > div { min-width: 0; }
.detail { margin-top: 4px; color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.notice { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--panel); margin-bottom: 12px; overflow-wrap: anywhere; }
.notice[data-tone="error"] { color: var(--red); }
.notice[data-tone="success"] { color: var(--mint); }
.auth-panel { max-width: 42rem; margin: 0 auto; padding: clamp(16px, 4vw, 32px); display: grid; gap: 12px; }
.auth-panel p { color: var(--muted); }
