/* Shared tokens and components. Light theme: phones in a bright room. */
[hidden] { display: none !important; }
:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #141a21;
  --muted: #535d6b;
  --line: #dfe3e8;
  --field: #7c8693;
  --accent: #2457c5;
  --on-accent: #ffffff;
  --accent-soft: #e9f0fb;
  --accent-ink: #1b4596;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --ok: #146c43;
  --ok-soft: #e7f5ee;
  --warn-soft: #fff4d6;
  --warn-ink: #6b4a00;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 26, 33, .06), 0 2px 8px rgba(20, 26, 33, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { line-height: 1.25; margin: 0; }
a { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
}
.narrow { max-width: 420px; margin: 12vh auto 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

label, .label { display: block; font-weight: 600; margin: 18px 0 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: 15px; }
.req { color: var(--danger); font-weight: 700; }
.help { color: var(--muted); font-size: 15px; margin: -2px 0 8px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"],
input[type="search"], input[type="number"], input:not([type]), textarea, select {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--text); background: #fff;
  border: 1.5px solid var(--field); border-radius: 10px;
}
textarea { min-height: 112px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
.invalid input, .invalid textarea, input.invalid { border-color: var(--danger); }
.error { color: var(--danger); font-size: 15px; font-weight: 600; margin: 6px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; font: inherit; font-weight: 650;
  border-radius: 10px; border: 1.5px solid var(--field); background: #fff; color: var(--text);
  cursor: pointer; text-decoration: none; transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(.94); }
.btn.block { width: 100%; min-height: 54px; font-size: 18px; }
.btn.link { border: 0; background: none; color: var(--accent-ink); text-decoration: underline;
  min-height: 44px; padding: 8px 4px; font-weight: 600; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.danger { color: var(--danger); border-color: #e0a19c; }

.notice { border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 16px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn-ink); }
.notice.err { background: var(--danger-soft); color: var(--danger); }

body.login { padding: 16px; }
body.login h1 { font-size: 24px; margin-bottom: 4px; }
body.login .btn { width: 100%; margin-top: 18px; }
.center { text-align: center; margin-top: 16px; }
h2[tabindex="-1"]:focus { outline: none; }
