:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #17201c;
  --muted: #5f6c66;
  --line: #d9e1dc;
  --bg: #f5f7f4;
  --panel: #ffffff;
  --green: #0f7a43;
  --green-bg: #e5f5eb;
  --red: #b42318;
  --red-bg: #fde8e6;
  --yellow: #9a6700;
  --yellow-bg: #fff5cf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.app {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 18px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.05;
}

h2 {
  font-size: 18px;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--green);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.panel,
.result,
.help {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(23, 32, 28, 0.06);
}

.lead {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

button,
.mapLink {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  margin-top: 6px;
  background: var(--green);
  color: #fff;
}

.secondary {
  margin-top: 14px;
  background: #edf1ee;
  color: var(--ink);
}

.mapLink {
  margin-top: 16px;
  background: var(--ink);
  color: #fff;
}

.result {
  margin-top: 0;
  text-align: center;
}

.statusIcon {
  display: flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.statusLabel {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.result h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.result p {
  color: var(--muted);
  line-height: 1.45;
}

.distance {
  margin-bottom: 0;
  font-weight: 700;
}

.authorized {
  background: var(--green-bg);
  border-color: rgba(15, 122, 67, 0.25);
}

.authorized .statusIcon {
  background: var(--green);
}

.authorized .statusLabel {
  color: var(--green);
}

.notAuthorized {
  background: var(--red-bg);
  border-color: rgba(180, 35, 24, 0.25);
}

.notAuthorized .statusIcon {
  background: var(--red);
}

.notAuthorized .statusLabel {
  color: var(--red);
}

.unknown {
  background: var(--yellow-bg);
  border-color: rgba(154, 103, 0, 0.25);
}

.unknown .statusIcon {
  background: var(--yellow);
}

.unknown .statusLabel {
  color: var(--yellow);
}

.help {
  margin-top: 14px;
}

.help h2 {
  margin-bottom: 12px;
}

.legendRow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.35;
}

.dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 3px;
  border-radius: 50%;
}

.green {
  background: var(--green);
}

.red {
  background: var(--red);
}

.yellow {
  background: var(--yellow);
}

.hidden {
  display: none;
}

@media (min-width: 560px) {
  .app {
    padding: 28px;
  }

  h1 {
    font-size: 38px;
  }
}
