:root {
  --bg: #121418;
  --bg-2: #181b20;
  --panel: #1d2127;
  --panel-2: #252a31;
  --line: #2d333b;
  --text: #ecebe6;
  --muted: #9aa0a8;
  --accent: #f2a541;
  --accent-ink: #1b1408;
  --danger: #ef6f6c;
  --ok: #7bc99a;
  --warn: #e9b45c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f3ef;
    --bg-2: #ecebe6;
    --panel: #ffffff;
    --panel-2: #f1efea;
    --line: #dedbd4;
    --text: #1d1f23;
    --muted: #6b6f76;
    --accent: #c97a12;
    --accent-ink: #fff;
    --danger: #c9423f;
    --ok: #2f8a55;
    --warn: #9a6512;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 15px; font-weight: 650; margin-bottom: 8px; }
p { margin: 0; }
.page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent), var(--bg);
}
.card {
  width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 4px; }
.brand:hover { text-decoration: none; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
.strong { font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; }
.row > input { flex: 1; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
input {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; min-width: 0; font-weight: 400;
}
input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); border-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-weight: 600; text-decoration: none;
}
.btn:hover:not(:disabled) { border-color: var(--muted); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--danger); background: transparent; border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.key { font-size: 15px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.error { color: var(--danger); font-size: 14px; }
.ok { color: var(--ok); font-size: 14px; }
.gis { display: flex; justify-content: center; min-height: 44px; }
section { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); }
.chip.ok { color: var(--ok); }
.chip.warn { color: var(--warn); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); }
@media (max-width: 420px) { .card { padding: 22px 18px; border-radius: 16px; } }
