/* Карточка ответа по точке. Короткая часть: статус, крупная строка, сводка
   зон с цветным кружком и счётчиком, главное действие, «скопировать» и
   «поделиться», строка «что проверено». Остальное под «Подробнее» (решение
   Семёна 16.11.2026, «2A»). Разметку собирает site/js/verdict-view.js.
   На широком экране карточка плавает слева (#answer-card), на телефоне это
   нижний лист (#mobile-result, mobile-sheets.css). */
#answer-card {
  position: absolute;
  z-index: 1050;
  top: calc(124px + env(safe-area-inset-top));
  left: 12px;
  display: flex;
  width: 380px;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 124px - 30px - env(safe-area-inset-top));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
}
#answer-card[hidden] { display: none; }
#answer-card .verdict-output { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
#answer-card .v-status { padding-right: 52px; }
#answer-close {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgb(255 255 255 / 70%);
}
#answer-close svg { width: 17px; height: 17px; }
#mobile-result { display: none; }

.verdict-output { font-size: 13px; }

/* Цветной блок ответа: метка и крупная строка на одной заливке статуса. */
.v-status,
.v-lead { background: var(--tint-strong); color: var(--ink-soft); }
.v-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px 0;
}
.v-status::before {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.risk-mark { font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.v-lead { padding: 5px 16px 14px; }
.v-head { color: var(--ink); font-size: 18px; font-weight: 760; letter-spacing: -.01em; line-height: 1.25; }
.v-blocked :is(.v-status, .v-lead) { background: var(--status-danger-bg); color: var(--status-danger-ink); }
.v-permission :is(.v-status, .v-lead) { background: var(--status-warn-bg); color: var(--status-warn-ink); }
.v-caution :is(.v-status, .v-lead) { background: var(--status-check-bg); color: var(--status-check-ink); }
.v-outside :is(.v-status, .v-lead) { background: var(--status-none-bg); color: var(--status-none-ink); }
/* Неполная проверка требует внимания (источник не ответил), ожидание нет. */
.v-incomplete :is(.v-status, .v-lead) { background: var(--status-check-bg); color: var(--status-check-ink); }
.v-pending :is(.v-status, .v-lead) { background: var(--status-none-bg); color: var(--status-none-ink); }

.v-body { padding: 14px 16px 12px; }
.v-text { color: var(--ink-soft); line-height: 1.45; }
.v-radius-note { margin-top: 8px; color: var(--muted); font-size: 12px; }

/* Зоны одним блоком: шапка со счётчиком и радиусом, строка на тип зоны с
   цветным кружком, по нажатию раскрываются зоны этого типа. */
.v-zones { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); }
.v-zones-head { padding: 9px 12px 8px; background: var(--tint); cursor: pointer; list-style: none; }
.v-zones-head::-webkit-details-marker { display: none; }
.v-zones[open] > .v-zones-head { border-bottom: 1px solid var(--line); }
.v-zones-title { display: flex; align-items: center; gap: 10px; }
.v-zones-title::after {
  width: 7px;
  height: 7px;
  flex: none;
  margin: -3px 3px 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: rotate(45deg);
}
.v-zones[open] > .v-zones-head .v-zones-title::after { margin-top: 4px; transform: rotate(225deg); }
.v-zones-dots { display: inline-flex; gap: 7px; }
.v-zones-dots .v-dot { width: 10px; height: 10px; box-shadow: none; }
.v-zones[open] > .v-zones-head .v-zones-dots { display: none; }
.v-zones-heading {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.v-zones-head .v-radius-note { margin-top: 1px; font-size: 11.5px; }
.v-zone-group + .v-zone-group { border-top: 1px solid var(--line); }
.v-zone-chip {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 620;
  list-style: none;
}
.v-zone-chip::-webkit-details-marker { display: none; }
@media (hover: hover) { .v-zone-chip:hover { background: var(--tint); } }
.v-zone-chip::after {
  width: 7px;
  height: 7px;
  flex: none;
  margin: -3px 3px 0 2px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: rotate(45deg);
}
.v-zone-group[open] > .v-zone-chip::after { margin-top: 4px; transform: rotate(225deg); }
.v-zone-chip-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-zone-chip-count {
  min-width: 24px;
  flex: none;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--tint-strong);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 780;
  text-align: center;
}
.v-dot {
  /* Значение подставляется инлайном из цвета слоя; здесь только запасной вариант. */
  --layer-color: var(--ink-soft);
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--layer-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--layer-color) 20%, transparent);
}
.v-zone-list { padding: 0 12px 4px 34px; }
.v-zone { padding: 2px 0 10px; }
.v-zone + .v-zone { padding-top: 10px; border-top: 1px solid var(--line); }
.v-zone-name { font-size: 13px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.v-zone-distance { margin-top: 3px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
/* Мелкая подпись над значением: нижняя и верхняя граница зоны. */
.v-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 7px; }
.v-fact { display: grid; min-width: 0; align-content: start; gap: 1px; }
.v-fact-label { color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: .03em; }
.v-fact-value { color: var(--ink); font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.v-validity { margin-top: 6px; color: var(--warn); font-size: 12px; font-weight: 650; }
.v-alt { margin-top: 6px; color: var(--muted); font-size: 11.5px; line-height: 1.4; overflow-wrap: anywhere; }
/* «Куда обращаться» в раскрытом типе зоны (шаг 4, функция C, contact-view.js). */
.v-contact { margin: 0 0 8px; padding: 9px 10px 10px; border-radius: 8px; background: var(--tint); }
.v-contact-title { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.v-contact-entry + .v-contact-entry { margin-top: 8px; padding-top: 2px; border-top: 1px solid var(--line); }
.v-contact .v-facts { margin-top: 6px; }
.v-fact-wide { grid-column: 1 / -1; }
.v-contact-original { display: block; color: var(--muted); font-size: 11.5px; }
.v-contact-phone { display: block; }
.v-contact a { color: var(--brand); font-weight: 650; text-decoration: none; }
.v-contact a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) { .v-contact a:hover { text-decoration: underline; } }
.v-contact-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; }
.v-contact-links a { font-weight: 600; }

.v-actions { display: grid; gap: 8px; margin-top: 14px; }
.official-check {
  display: block;
  min-height: 44px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--action-bg);
  color: var(--action-ink);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.official-check:hover { background: var(--action-bg-hover); color: var(--action-ink); }
.official-check-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--brand); }
.official-check-secondary:hover { border-color: var(--brand); background: var(--accent-bg-soft); color: var(--brand-hover); }

/* «Скопировать» и «Поделиться» лёгкими текстовыми кнопками: главное действие
   на карточке одно. */
.v-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; }
.copy-answer,
.share-point {
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 680;
}
.copy-answer:hover,
.share-point:hover { background: var(--accent-bg-soft); }

/* Служебный низ карточки на своей заливке: что проверено и «Подробнее». */
.v-foot { padding: 11px 16px 4px; border-top: 1px solid var(--line); background: var(--tint); }
.v-checked {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  color: var(--ink-soft);
  font-size: 12px;
  list-style: none;
}
.v-checked-item { display: inline-flex; align-items: center; gap: 5px; }
.v-checked-mark {
  display: grid;
  width: 15px;
  height: 15px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--muted);
  color: var(--surface);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
}
.is-ok > .v-checked-mark { background: var(--marker-ok); }
.is-ok > .v-checked-mark::before { content: "✓" / ""; }
.is-part > .v-checked-mark { background: var(--marker-part); }
.is-part > .v-checked-mark::before { content: "!" / ""; }
.is-wait > .v-checked-mark::before { content: "…" / ""; }
.is-miss > .v-checked-mark { background: var(--marker-miss); }
.is-miss > .v-checked-mark::before { content: "✕" / ""; }
.v-checked-note { color: var(--muted); }
.is-miss > .v-checked-label,
.is-miss > .v-checked-note { color: var(--status-danger-ink); font-weight: 700; }

.v-more { margin-top: 9px; border-top: 1px solid var(--line); }
.v-more-summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  list-style: none;
}
.v-more-summary::-webkit-details-marker { display: none; }
.v-more-summary::after {
  width: 7px;
  height: 7px;
  flex: none;
  margin: -4px 4px 0 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}
.v-more[open] > .v-more-summary::after { margin-top: 4px; transform: rotate(225deg); }
/* Под «Подробнее» три отдельных блока: радиус, точка, источники. */
.v-more-body { display: grid; gap: 10px; padding-bottom: 10px; }
.v-more-body > * { min-width: 0; margin-top: 0; }
.v-more-body > :is(.v-radius, .v-place, .v-sources) {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.v-place { display: grid; gap: 9px; }
.v-sources { display: grid; gap: 8px; }
.v-sources .v-actions { margin-top: 0; }

.v-point {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-top: 11px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--tint);
}
.v-place .v-point { margin-top: 0; }
.v-terrain { display: grid; gap: 3px; }
.v-terrain-note { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.v-coordinates { color: var(--ink-soft); font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; }

.v-maps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; }
.v-maps-label { color: var(--muted); font-weight: 650; }
.v-maps-list { display: flex; flex-wrap: wrap; gap: 6px; }
.v-map-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 650;
  text-decoration: none;
}
.v-map-link:hover { border-color: var(--brand); color: var(--brand); }
/* Панорама NAVER: кнопка с контуром, рядом строка о передаче точки (pano-view.js). */
.v-pano { display: grid; justify-items: start; gap: 4px; }
.v-pano-open {
  min-height: 32px;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.v-pano-open:hover { border-color: var(--brand); color: var(--brand); }
.v-pano-note { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.v-report { justify-self: start; color: var(--muted); font-size: 12px; text-decoration: underline; }
.v-report:hover { color: var(--brand-hover); }

.v-coverage { border-top: 0; }
.v-coverage-summary {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 1px 6px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
  list-style: none;
}
.v-coverage-summary::-webkit-details-marker { display: none; }
.v-coverage-summary::after {
  width: 7px;
  height: 7px;
  flex: none;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: rotate(45deg);
}
.v-coverage[open] > .v-coverage-summary::after { transform: rotate(225deg); }
.v-coverage-badge {
  flex: none;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--status-check-bg);
  color: var(--status-check-ink);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
/* Бейдж отражает фактическое состояние источников. Отказ NOTAM или наследия не
   должен выглядеть так же, как штатная неполнота покрытия. */
.v-coverage-base > .v-coverage-summary .v-coverage-badge {
  background: var(--status-ok-bg);
  color: var(--status-ok-ink);
}
.v-coverage-loading > .v-coverage-summary .v-coverage-badge {
  background: var(--tint-strong);
  color: var(--muted);
}
.v-coverage-degraded > .v-coverage-summary .v-coverage-badge {
  background: var(--status-danger-bg);
  color: var(--status-danger-ink);
}
.v-coverage-rows { display: grid; gap: 7px; padding: 3px 0 2px; }
.cov-row { display: flex; gap: 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.cov-marker { width: 10px; height: 10px; flex: none; margin-top: 4px; border-radius: 50%; }
.cov-ok .cov-marker { background: var(--marker-ok); }
.cov-part .cov-marker { border: 2px solid var(--marker-part); background: linear-gradient(90deg, var(--marker-part) 50%, transparent 50%); }
.cov-miss .cov-marker { border: 2px solid var(--marker-miss); }

/* Радиус проверки: выбор «Точка · 100 · 250 · 500 м». Радиогруппа, выбранный
   пункт с галочкой, а не только цветом. */
.v-radius-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.v-radius-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.v-radius-option {
  min-height: 34px;
  padding: 6px 4px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
}
.v-radius-option:hover { background: var(--tint); }
.v-radius-option[aria-checked="true"] { background: var(--brand); color: var(--action-ink); font-weight: 760; }
.v-radius-option[aria-checked="true"]::before { content: "✓ " / ""; }
.v-radius-option:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* Строка о приложении внизу карточки (site/js/app-promo.js). */
.v-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -16px;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.v-promo::after {
  width: 7px;
  height: 7px;
  flex: none;
  margin-left: auto;
  transform: rotate(-45deg);
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
}
.v-promo img { flex: none; border-radius: 7px; }
.v-promo-text { display: grid; min-width: 0; gap: 1px; font-size: 12px; line-height: 1.35; }
.v-promo-text b { font-size: 12.5px; font-weight: 720; }
.v-promo-text span { color: var(--muted); }
.v-promo:hover b { color: var(--brand); }
