:root {
  color-scheme: light dark;
  font: 14px/1.5 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: light-dark(#1b1b1b, #f5f5f5);
  --shell: light-dark(#f3f3f3, #202020);
  --frame: light-dark(#f9f9f9, #272727);
  --card: light-dark(#fff, #2c2c2c);
  --card-subtle: light-dark(#f6f8fb, #323232);
  --border: light-dark(#e4e4e4, #414141);
  --muted: light-dark(#5f6368, #b5b5b5);
  --accent: light-dark(#0067c0, #60cdff);
  --accent-hover: light-dark(#005da6, #56bbea);
  --accent-ink: light-dark(#fff, #0d2330);
  --selection: light-dark(#e8f1fb, #363e44);
  --pressed: light-dark(#ededed, #3a3a3a);
  --success: light-dark(#0e713a, #8ceab0);
  --success-bg: light-dark(#e6f7ee, #1a3d2b);
  --danger: light-dark(#a52a21, #ff9b91);
  --danger-bg: light-dark(#fcebea, #471d20);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--shell); }
button, input { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 34px; padding: 5px 13px; border: 1px solid var(--border);
  border-radius: 5px; background: var(--card); cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { background: var(--pressed); text-decoration: none; }
button:disabled { cursor: default; opacity: .55; }
.primary { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.primary:hover { background: var(--accent-hover); }
.danger { color: var(--danger); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
label { display: grid; gap: 6px; font-weight: 600; }
input {
  width: 100%; min-width: 0; min-height: 36px; padding: 6px 10px;
  border: 1px solid var(--border); border-bottom-color: var(--muted);
  border-radius: 5px; background: var(--card); font-weight: 400;
}
input:focus { border-bottom: 2px solid var(--accent); outline: none; padding-bottom: 5px; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, dl, dd { margin: 0; }
.brand { display: flex; align-items: center; gap: 9px; color: inherit; font-weight: 600; }
.brand img { display: block; width: 25px; height: 25px; border-radius: 5px; }
.form-stack { display: grid; gap: 16px; }
.message { overflow-wrap: anywhere; color: var(--muted); }
.message:empty { display: none; }
.message[data-error] { color: var(--danger); }
.muted, .empty { color: var(--muted); }
