/* DNS propagation checker. Needs /assets/css/modern-tool-cards.css (tokens + .cat-website accent). */
.dp, .dp *, .dp *::before, .dp *::after { box-sizing: border-box; }
.dp { display: grid; gap: 1.1rem; }
.dp-panel { background: var(--tc-bg); border: 1px solid var(--tc-border); border-radius: 20px; box-shadow: var(--tc-shadow); overflow: hidden; }
.dp-panel__head { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.25rem; background: var(--tc-surface); border-bottom: 1px solid var(--tc-border); }
.dp-panel__head h3 { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tc-muted); }
.dp-panel__head > i { color: var(--accent); font-size: 1.1rem; }
.dp-body { display: grid; gap: .9rem; padding: 1.25rem; }
.dp-label, .dp-seg legend { margin: 0; font-size: .8rem; font-weight: 700; color: var(--tc-muted); }
.dp-hint { margin: -.3rem 0 0; font-size: .78rem; font-style: italic; color: var(--tc-muted); }
.dp-row-input { display: flex; flex-wrap: wrap; gap: .6rem; }
.dp-input { flex: 1 1 16rem; min-width: 0; height: 3rem; padding: 0 1rem; font: inherit; font-size: .95rem; color: var(--tc-text); background: var(--tc-bg); border: 1px solid var(--tc-border); border-radius: 12px; }
.dp-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.dp-input.is-invalid { border-color: #dc2626; }
.dp-error { margin: 0; font-size: .88rem; font-weight: 600; color: #dc2626; }
.dp-error[hidden], .dp-summary[hidden], .dp-progress[hidden] { display: none; }

.dp-seg { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.dp-seg legend { width: 100%; padding: 0; margin-bottom: .1rem; float: none; }
.dp-seg label { position: relative; margin: 0; }
.dp-seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dp-seg span { display: inline-flex; align-items: center; justify-content: center; min-width: 4rem; height: 2.5rem; padding: 0 1rem; font-size: .88rem; font-weight: 700; color: var(--tc-text); background: var(--tc-bg); border: 1px solid var(--tc-border); border-radius: 10px; cursor: pointer; }
.dp-seg input:checked + span { color: #fff; background: var(--accent); border-color: var(--accent); }
.dp-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.dp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 3rem; padding: 0 1.4rem; font-size: .92rem; font-weight: 600; color: var(--tc-text); background: var(--tc-bg); border: 1px solid var(--tc-border); border-radius: 12px; cursor: pointer; }
.dp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dp-btn--primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.dp-btn--primary:hover:not(:disabled) { filter: brightness(1.08); }
.dp-btn:disabled { opacity: .75; cursor: default; }
.dp-btn.is-loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: dp-spin .7s linear infinite; }
@keyframes dp-spin { to { transform: rotate(360deg); } }

.dp-status { display: grid; gap: .6rem; }
.dp-status:empty { display: none; }
.dp-progress { width: 100%; height: .5rem; accent-color: var(--accent); }
.dp-summary { margin: 0; padding: .75rem 1rem; font-size: .92rem; font-weight: 600; border-radius: 12px; }
.dp-summary--good { color: #166534; background: rgba(22, 163, 74, .13); }
.dp-summary--mixed { color: #92400e; background: rgba(245, 158, 11, .15); }
.dp-summary--bad { color: #991b1b; background: rgba(220, 38, 38, .12); }

.dp-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.dp-row { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: .5rem 1rem; padding: .7rem 1rem; background: var(--tc-bg); border: 1px solid var(--tc-border); border-left-width: 4px; border-radius: 14px; }
.dp-flag { width: 2.5rem; height: 1.9rem; object-fit: cover; border-radius: 4px; border: 1px solid var(--tc-border); }
.dp-info { display: grid; min-width: 0; }
.dp-info strong { font-size: .9rem; overflow-wrap: anywhere; }
.dp-info span { font-size: .78rem; color: var(--tc-muted); overflow-wrap: anywhere; }
.dp-result { min-width: 0; text-align: right; font-size: .88rem; }
.dp-rec { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; overflow-wrap: anywhere; }
.dp-ms { font-size: .72rem; color: var(--tc-muted); }
.dp-idle, .dp-row--wait .dp-rec, .dp-row--busy .dp-rec { color: var(--tc-muted); font-family: inherit; }
.dp-row--busy { border-left-color: var(--accent); }
.dp-row--ok { border-left-color: #16a34a; }
.dp-row--empty { border-left-color: #94a3b8; }
.dp-row--empty .dp-rec { color: var(--tc-muted); font-family: inherit; }
.dp-row--fail { border-left-color: #dc2626; }
.dp-row--fail .dp-rec { color: #dc2626; font-family: inherit; }
.dp-row--minor { border-left-color: #f59e0b; background: rgba(245, 158, 11, .07); }
@media (max-width: 575px) {
  .dp-row { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .dp-result { grid-column: 1 / -1; text-align: left; padding-top: .45rem; border-top: 1px dashed var(--tc-border); }
}
.dp-note { margin: 0; display: flex; gap: .5rem; font-size: .84rem; color: var(--tc-muted); }
.dp-note i { color: var(--accent); margin-top: .15rem; }