:root {
  color-scheme: light dark;
  font: 1rem/1.5 system-ui, sans-serif;
  --background: #edf2f7;
  --panel: #fff;
  --text: #142135;
  --muted: #46566b;
  --border: #9aabbe;
  --input-border: #75869c;
  --action: #19599d;
  --error: #a12222;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101b2b;
    --panel: #18263a;
    --text: #f1f5fb;
    --muted: #bac8da;
    --border: #6c809b;
    --input-border: #879bb5;
    --action: #19599d;
    --error: #ffb4b4;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
}

header {
  min-height: 68px;
  padding: 12px clamp(16px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

header a { color: var(--text); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

main { padding: clamp(24px, 8vw, 90px) 16px 32px; }

section {
  max-width: 474px;
  margin-inline: auto;
  padding: clamp(20px, 5vw, 32px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
}

p { margin: 12px 0 20px; color: var(--muted); }
label { display: block; font-weight: 650; margin-bottom: 6px; }

input, button, .go {
  width: 100%;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

input { color: var(--text); background: var(--panel); border-color: var(--input-border); }

button, .go {
  display: block;
  margin-top: 12px;
  color: #fff;
  background: var(--action);
  border-color: var(--action);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:disabled { opacity: .7; cursor: progress; }
.go.secondary { color: var(--text); background: var(--panel); border-color: var(--border); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.found {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.found img { flex: none; width: 56px; height: 56px; object-fit: contain; }
.found strong { min-width: 0; overflow-wrap: anywhere; }
.error { color: var(--error); }
