/* minmax(0, 1fr): длинная строка кода или адреса не должна растягивать страницу, она прокручивается внутри своего блока */
.result { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.result > * { min-width: 0; }

/* итог: тонкая строка со статусом */
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; }
.banner .ico { width: 22px; height: 22px; }
.banner strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.banner small { color: var(--muted); font-size: 12.5px; word-break: break-all; }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.error { background: var(--error-soft); color: var(--error); }
.banner.info { background: var(--info-soft); color: var(--info); }

/* блоки без рамок: маленькая серая подпись и содержимое */
.card { padding: 14px 2px 4px; }
.card h2 { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; letter-spacing: .01em; }
.card > .muted { margin: 0 0 8px; }

.facts { display: grid; grid-template-columns: minmax(110px, 180px) 1fr; gap: 4px 14px; font-size: 15px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.facts .chips { display: flex; flex-wrap: wrap; gap: 5px; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 8px; } }

.chip { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--hover); font-size: 13.5px; }

.checks { display: grid; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 9px 2px; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.check .ico { width: 18px; height: 18px; margin-top: 3px; }
.check.ok .ico { color: var(--ok); }
.check.warn .ico { color: var(--warn); }
.check.error .ico { color: var(--error); }
.check.info .ico { color: var(--info); }
.check b { font-weight: 500; }
.check p { color: var(--muted); font-size: 14px; margin-top: 1px; overflow-wrap: anywhere; }
.check .fix { color: var(--text); background: var(--soft); border-radius: 8px; padding: 6px 10px; margin-top: 5px; font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.how { color: var(--muted); font-size: 14px; }
.how summary { cursor: pointer; color: var(--muted); }
.how p { margin-top: 6px; }

.loading { display: flex; align-items: center; gap: 12px; padding: 16px 2px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.err { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px; border-radius: 10px; background: var(--error-soft); }
.err .ico { color: var(--error); width: 20px; height: 20px; margin-top: 1px; }

/* общая проверка: раскрывающиеся разделы */
.secs { margin-top: 10px; display: grid; }
.sec { border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; }
.sec > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 2px; cursor: pointer; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary > .ico:first-child { width: 20px; height: 20px; }
.sec.ok > summary > .ico:first-child { color: var(--ok); }
.sec.warn > summary > .ico:first-child { color: var(--warn); }
.sec.error > summary > .ico:first-child { color: var(--error); }
.sec.skip > summary > .ico:first-child { color: var(--info); }
.sec-main { flex: 1; min-width: 0; display: grid; }
.sec-main b { font-weight: 500; }
.sec-main small { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.sec[open] .sec-chev { transform: rotate(180deg); }
.sec-body { padding: 0 2px 12px 30px; }
.sec-open { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--text); font-size: 14px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.sec-open .arrow { width: 14px; height: 14px; transform: rotate(180deg); }
[dir="rtl"] .sec-open .arrow { transform: rotate(0); }
[dir="rtl"] .sec-body { padding: 0 30px 12px 2px; }
.sec-speed { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px; border-radius: 10px; background: var(--soft); color: var(--text); }
.sec-speed:hover { text-decoration: none; background: var(--hover); }
.sec-speed > .ico:first-child { width: 20px; height: 20px; }
.sec-speed > span:not(.ico) { flex: 1; display: grid; }
.sec-speed small { color: var(--muted); }
.sec-speed .arrow { width: 14px; height: 14px; transform: rotate(180deg); color: var(--muted); }
[dir="rtl"] .sec-speed .arrow { transform: rotate(0); }
