/* Проверка ответа сервера: форма, итог, цепочка редиректов, заголовки, сравнение роботов. */
.hc-form { display: flex; flex-direction: column; gap: var(--s-sm); }
.hc-url-row { display: flex; gap: 10px; }
.hc-url { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 1rem; }
@media (max-width: 479px) { .hc-url-row { flex-direction: column; } .hc-url-row .btn { width: 100%; } }
.tool-status.hc-error { color: #f87171; }

.hc-result { display: flex; flex-direction: column; gap: var(--s-sm); min-width: 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.hc-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .hc-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hc-stat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hc-stat-v { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 900; line-height: 1.15; }
.hc-stat-l { font-size: .82rem; color: var(--text-muted); }
.hc-c-ok .hc-stat-v, .hc-code-badge.hc-c-ok { color: var(--green); }
.hc-c-redir .hc-stat-v, .hc-code-badge.hc-c-redir { color: var(--amber); }
.hc-c-err .hc-stat-v, .hc-code-badge.hc-c-err { color: #f87171; }

.hc-warn { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.hc-warn li { padding: 7px 10px 7px 30px; border-radius: var(--r-sm); position: relative; color: var(--text-read); overflow-wrap: anywhere; }
.hc-warn li::before { position: absolute; left: 10px; font-weight: 800; }
.hc-w-err { background: rgba(239,68,68,.1); } .hc-w-err::before { content: "✕"; color: #f87171; }
.hc-w-warn { background: rgba(245,158,11,.08); } .hc-w-warn::before { content: "!"; color: var(--amber); }
.hc-w-tip { background: var(--cyan-soft); } .hc-w-tip::before { content: "i"; color: var(--cyan); }
.hc-allgood { color: var(--green); font-weight: 600; }

.hc-h { font-size: 1.05rem; margin-top: var(--s-xs); }
.hc-chain { list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: hop; }
.hc-hop { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hc-hop-top { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.hc-code-badge { font-family: var(--font-mono); font-weight: 900; font-size: 1.1rem; flex: none; }
.hc-hop-url { font-family: var(--font-mono); font-size: .9rem; overflow-wrap: anywhere; min-width: 0; color: var(--text); }
.hc-hop-meta { font-size: .84rem; color: var(--text-muted); }
.hc-hop-loc { font-family: var(--font-mono); font-size: .85rem; color: var(--amber); overflow-wrap: anywhere; }
.hc-hop-err { color: #f87171; font-size: .92rem; }

.hc-headers summary { cursor: pointer; font-size: .88rem; color: var(--cyan); min-height: 32px; display: flex; align-items: center; }
.hc-table-wrap { overflow-x: auto; max-width: 100%; }
.hc-result table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.hc-result th, .hc-result td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.hc-result tbody tr:last-child th, .hc-result tbody tr:last-child td { border-bottom: 0; }
.hc-headers th { font-family: var(--font-mono); font-weight: 600; color: var(--text-muted); white-space: nowrap; width: 1%; }
.hc-headers td { font-family: var(--font-mono); overflow-wrap: anywhere; word-break: break-word; color: var(--text-read); }
.hc-headers tr.is-imp th { color: var(--cyan); }
.hc-seo th, .hc-cmp tbody th { color: var(--text-muted); font-weight: 600; white-space: nowrap; width: 1%; }
.hc-seo td, .hc-cmp td { overflow-wrap: anywhere; color: var(--text-read); }
.hc-cmp thead th { color: var(--text); font-weight: 700; }
.hc-cmp tr.is-diff td { color: var(--amber); }
.hc-cmp-note { font-size: .88rem; color: var(--text-muted); margin-top: 6px; }
.hc-cmp-note.is-diff { color: var(--amber); }

.hc-code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; max-height: 480px; overflow: auto;
  font-family: var(--font-mono); font-size: .8rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-read); }

/* ---------- v2: вкладки, вывод по поисковикам, факты, зеркала, массовая проверка ---------- */
.hc-tabs { display: flex; gap: 6px; margin-bottom: 4px; }
.hc-tabs button { flex: 0 1 auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-weight: 700; font-size: .9rem; color: var(--text-muted); }
.hc-tabs button[aria-selected="true"] { background: var(--cyan-soft); color: var(--cyan); border-color: var(--cyan); }
#hc-one, #hc-bulk { display: flex; flex-direction: column; gap: var(--s-sm); min-width: 0; }
#hc-one[hidden], #hc-bulk[hidden] { display: none; }

.hc-verdict { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .hc-verdict { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hc-v { border-radius: var(--r-md); padding: 12px 14px; border: 1px solid var(--line); font-size: .9rem; color: var(--text-read); min-width: 0; }
.hc-v ul { margin: 6px 0 0 1.1em; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.hc-v-head { font-size: 1rem; }
.hc-v-why { color: var(--text-muted); margin-top: 4px; }
.hc-v-ok { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.4); } .hc-v-ok .hc-v-head { color: var(--green); }
.hc-v-warn { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.4); } .hc-v-warn .hc-v-head { color: var(--amber); }
.hc-v-no { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.4); } .hc-v-no .hc-v-head { color: #f87171; }
.hc-v-head b { color: var(--text); }

.hc-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--text-muted); }
.hc-facts li span::after { content: ": "; }
.hc-facts b { color: var(--text-read); font-weight: 600; }
.hc-facts li.is-good b { color: var(--green); } .hc-facts li.is-bad b { color: var(--amber); }

.hc-mirrors { display: flex; flex-direction: column; gap: 10px; }
.hc-mirrors[hidden] { display: none; }
.hc-m-main { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.hc-mtable td { font-size: .85rem; overflow-wrap: anywhere; }
.hc-mtable td:first-child { font-family: var(--font-mono); }
.hc-mtable td:nth-child(2) { font-family: var(--font-mono); white-space: nowrap; }
.hc-m-main td:last-child, .hc-m-redirect td:last-child { color: var(--green); }
.hc-m-chain td:last-child, .hc-m-other td:last-child { color: var(--amber); }
.hc-m-duplicate td:last-child, .hc-m-error td:last-child { color: #f87171; }
.hc-m-missing td:last-child { color: var(--text-muted); }

.hc-bulk-go { display: flex; align-items: flex-end; }
.hc-bulk-out { display: flex; flex-direction: column; gap: 10px; }
.hc-bulk-out[hidden] { display: none; }
.hc-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-filter button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: .85rem; color: var(--text-muted); }
.hc-filter button[aria-pressed="true"] { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-soft); }
.hc-bulk-table { font-size: .85rem; }
.hc-bulk-table th { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.hc-bulk-table td { color: var(--text-read); vertical-align: top; }
.hc-bulk-table .hc-b-url { font-family: var(--font-mono); overflow-wrap: anywhere; min-width: 160px; }
.hc-bulk-table td.hc-c-ok { color: var(--green); font-weight: 700; } .hc-bulk-table td.hc-c-redir { color: var(--amber); font-weight: 700; } .hc-bulk-table td.hc-c-err { color: #f87171; font-weight: 700; }

/* UI v2 */
.hc-result h2.hc-h { font-size: 1.05rem; margin-top: var(--s-xs); }
.hc-next { align-items: center; }
.hc-next .tool-quiet-btn { background: none; border-color: transparent; box-shadow: none; color: var(--text-read); }
.hc-next .tool-quiet-btn:hover { background: var(--cyan-soft); color: var(--cyan); transform: none; }
/* редирект — не «ошибка индексации», а подсказка проверить конечный адрес */
.hc-v-moved { background: var(--cyan-soft); border-color: var(--line-strong); } .hc-v-moved .hc-v-head { color: var(--cyan); }
.hc-v .hc-v-act { margin-top: 8px; color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
@media (max-width: 767px) { .hc-tabs button { min-height: 44px; } .hc-v .hc-v-act { min-height: 44px; } }

/* мост в услугу при найденных проблемах */
.hc-help { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 14px 0; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.hc-help p { margin: 0; color: var(--text-muted); max-width: 60ch; }

/* сравнение двух User-Agent на телефоне: параметр сверху, два значения под ним с подписью — слова не рвутся */
@media (max-width: 520px) {
  .hc-cmp thead { display: none; }
  .hc-cmp, .hc-cmp tbody, .hc-cmp tr, .hc-cmp th, .hc-cmp td { display: block; width: auto; }
  .hc-cmp tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .hc-cmp tbody th { white-space: normal; width: auto; padding: 0 0 4px; border: 0; }
  .hc-cmp td { padding: 2px 0; border: 0; overflow-wrap: break-word; }
  .hc-cmp td::before { content: attr(data-label) ": "; color: var(--text-muted); font-size: .85em; }
}
