:root {
  color-scheme: light;
  --ink: #18312a;
  --muted: #66756e;
  --green: #176448;
  --green-dark: #104d37;
  --gold: #c49a45;
  --paper: #fffefa;
  --line: #e1e8e1;
  font-family: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #f2f5ef; }
.page { width: min(760px, 100% - 32px); margin: 0 auto; padding: 52px 0 28px; }
.hero { text-align: center; margin-bottom: 28px; }
.seal { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; border: 1px solid #dfc88e; border-radius: 50%; color: var(--gold); font-size: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.2; }
.intro { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.search-card { padding: clamp(22px, 5vw, 36px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 12px 32px #173c2810; }
h2 { margin: 0 0 22px; font-size: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 650; }
.search-row { display: flex; gap: 10px; }
input { min-width: 0; flex: 1; padding: 13px 14px; border: 1px solid #bdcbc0; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
input:focus { outline: 3px solid #17644830; border-color: var(--green); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 18px; border: 0; border-radius: 9px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green-dark); border: 1px solid #b7c9bb; background: #fff; }
.button-secondary:hover { background: #f0f6f1; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.status { margin-top: 22px; padding: 13px 14px; border-radius: 8px; color: var(--muted); background: #f5f7f3; }
.status:empty { display: none; }
.results { display: grid; gap: 12px; margin-top: 12px; }
.result { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; }
.result-name { margin: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
footer { padding: 22px 8px 0; color: var(--muted); text-align: center; font-size: 13px; }
@media (max-width: 560px) {
  .page { width: min(100% - 24px, 760px); padding-top: 34px; }
  .search-row { flex-direction: column; }
  .search-row .button { width: 100%; }
  .result { align-items: stretch; flex-direction: column; }
  .result-actions .button { flex: 1; }
}
@media print {
  body { background: #fff; }
  .page { width: 100%; padding: 0; }
  .hero { margin-bottom: 18px; }
  .seal, form, footer { display: none !important; }
  .search-card { padding: 0; border: 0; box-shadow: none; }
  .result { break-inside: avoid; }
  .result-actions { display: none !important; }
}
