:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --page: #f6f8fb;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #ecfdf5;
  --navy: #18364f;
  --gold: #c99a2e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, .08), transparent 32rem),
    var(--page);
}

button, input { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(920px, calc(100% - 28px));
  margin: 42px auto;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(24, 54, 79, .08);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .09);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-size: 24px;
  box-shadow: inset 0 -3px 0 var(--gold);
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -.035em;
}

.lead {
  max-width: 720px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.search-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: #fbfcfd;
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.autocomplete-host gmp-place-autocomplete {
  width: 100%;
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status {
  min-height: 24px;
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 14px;
}
.status.error { color: #b42318; }
.status.success { color: #067647; }

.result-card {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 30px);
  background: white;
}
.hidden { display: none; }

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.result-header h2 {
  margin: 0 0 7px;
  font-size: clamp(22px, 3vw, 30px);
}
.result-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.check {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.field-block {
  margin-top: 20px;
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
}

code {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.ghost-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  padding: 6px 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.secondary-button {
  border-radius: 12px;
  padding: 13px 17px;
  font-weight: 800;
  border: 1px solid transparent;
}
.primary-button {
  background: var(--navy);
  color: white;
}
.primary-button:hover { background: #102a40; }
.secondary-button {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.secondary-button:hover { background: #f8fafc; }

.qr-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 26px;
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
}
.qr-code {
  padding: 10px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
}
.qr-code img, .qr-code canvas { display: block; }
.qr-wrap h3 { margin: 0 0 6px; }
.qr-wrap p { margin: 0; color: var(--muted); line-height: 1.5; }

footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
  color: #98a2b3;
  font-size: 12px;
}

@media (max-width: 640px) {
  .shell { margin: 18px auto; }
  .card { border-radius: 18px; }
  .qr-wrap { grid-template-columns: 1fr; }
  .qr-code { width: max-content; }
  .actions > button { width: 100%; }
}