:root { color-scheme: light dark; --bg: #f6f7f9; --card: #fff; --text: #16181d; --muted: #5d6470; --line: #dfe3ea;
  --primary: #1d4ed8; --ok: #166534; --warn: #92400e; --err: #b42318; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1115; --card: #181b21; --text: #eceef2; --muted: #a3abb8; --line: #2c313b; --primary: #6b9bff;
    --ok: #6ee7a0; --warn: #fbbf62; --err: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  touch-action: manipulation; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.brand { font-weight: 700; font-size: 20px; margin-bottom: 16px; }
h1 { font-size: 18px; margin: 24px 0 8px; }
h2 { font-size: 16px; margin: 0 0 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.card h1 { margin-top: 0; }
.scroll { overflow-x: auto; }
.small { color: var(--muted); font-size: 14px; margin: 4px 0; overflow-wrap: anywhere; }
.ok { color: var(--ok); font-size: 14px; font-weight: 500; }
.warn { color: var(--warn); font-size: 14px; font-weight: 500; }
.err { color: var(--err); }
code { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  font-size: 14px; overflow-wrap: anywhere; user-select: all; }
label { display: block; margin: 12px 0; font-size: 14px; color: var(--muted); }
input[type=email], input[type=password] { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font-size: 16px;
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
button { min-height: 44px; padding: 8px 16px; font-size: 15px; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
button.primary { color: #fff; background: #1d4ed8; border-color: #1d4ed8; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }
.inline { display: inline-block; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }
a { color: var(--primary); }
