.dns-workbench {
    overflow: hidden;
}

.dns-workbench-content {
    display: block;
}

.dns-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin: 24px 28px 0;
    padding: 22px;
    border: 2px solid var(--ink);
    background: #fffefa;
}

.dns-intro strong {
    display: block;
    margin-bottom: 8px;
    font: 900 .82rem/1.2 "Arial Black", Arial, sans-serif;
    letter-spacing: .025em;
}

.dns-intro p {
    max-width: 900px;
    margin: 0;
    color: #4c4840;
    font: 400 .96rem/1.5 Georgia, "Times New Roman", serif;
}

.dns-badge {
    flex: 0 0 auto;
    border: 2px solid var(--ink);
    background: var(--yellow);
    padding: 9px 11px;
    box-shadow: 3px 3px 0 var(--ink);
    font: 900 .62rem/1 "Courier New", monospace;
    letter-spacing: .05em;
    white-space: nowrap;
}

.dns-form {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr) auto;
    align-items: end;
    gap: 18px;
    padding: 24px 28px 0;
}

.dns-form .tool-field {
    margin: 0;
}

.dns-form input,
.dns-form select {
    min-height: 56px;
}

.dns-actions {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dns-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 28px 0;
}

.dns-examples > span {
    font: 900 .64rem/1 "Courier New", monospace;
    letter-spacing: .06em;
}

.dns-examples button {
    appearance: none;
    border: 1px solid var(--ink);
    background: var(--paper);
    padding: 7px 9px;
    cursor: pointer;
    font: 700 .68rem/1 "Courier New", monospace;
}

.dns-examples button:hover,
.dns-examples button:focus-visible {
    background: var(--yellow);
}

.dns-status {
    margin: 20px 28px 0;
}

.dns-results {
    margin: 28px;
    padding-top: 24px;
    border-top: 4px solid var(--ink);
    scroll-margin-top: 24px;
}

.dns-result-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.dns-result-heading > div:first-child > span {
    display: block;
    margin-bottom: 4px;
    font: 900 .62rem/1 "Courier New", monospace;
    letter-spacing: .08em;
}

.dns-result-heading h2 {
    margin: 0;
    font: 900 clamp(1.5rem, 3vw, 2.35rem)/1.05 "Arial Black", Arial, sans-serif;
    overflow-wrap: anywhere;
}

.dns-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.dns-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.dns-summary-grid article {
    min-width: 0;
    border: 2px solid var(--ink);
    background: var(--white);
    padding: 16px;
    box-shadow: 4px 4px 0 var(--ink);
}

.dns-summary-grid article > span,
.dns-summary-grid article > small {
    display: block;
    font: 900 .58rem/1.25 "Courier New", monospace;
    letter-spacing: .06em;
}

.dns-summary-grid article > strong {
    display: block;
    margin: 7px 0 5px;
    font: 900 .88rem/1.2 "Arial Black", Arial, sans-serif;
    overflow-wrap: anywhere;
}

.dns-summary-grid article > small {
    color: #625e55;
}

.dns-section + .dns-section {
    margin-top: 28px;
}

.dns-section-note {
    margin: 12px 0 16px;
    max-width: 980px;
    color: #575249;
    font: 400 .9rem/1.5 Georgia, "Times New Roman", serif;
}

.dns-record-groups {
    display: grid;
    gap: 18px;
    margin-top: 14px;
}

.dns-record-group {
    border: 2px solid var(--ink);
    background: var(--white);
}

.dns-record-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-bottom: 2px solid var(--ink);
    background: var(--paper);
}

.dns-record-header > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dns-record-header strong {
    font: 900 .95rem/1 "Arial Black", Arial, sans-serif;
}

.dns-record-header span,
.dns-record-header b {
    font: 900 .6rem/1 "Courier New", monospace;
    letter-spacing: .05em;
}

.dns-record-header b {
    flex: 0 0 auto;
    border: 1px solid var(--ink);
    background: var(--yellow);
    padding: 5px 7px;
}

.dns-table-scroll {
    overflow-x: auto;
}

.dns-record-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .82rem;
}

.dns-record-table th,
.dns-record-table td {
    padding: 11px 12px;
    border-right: 1px solid #bdb8ad;
    border-bottom: 1px solid #d9d4ca;
    text-align: left;
    vertical-align: top;
}

.dns-record-table th:last-child,
.dns-record-table td:last-child {
    border-right: 0;
}

.dns-record-table tbody tr:last-child td {
    border-bottom: 0;
}

.dns-record-table th {
    background: #f1ede4;
    font: 900 .57rem/1.1 "Courier New", monospace;
    letter-spacing: .06em;
}

.dns-record-table td {
    font-family: "Courier New", monospace;
    overflow-wrap: anywhere;
}

.dns-record-table th:nth-child(1),
.dns-record-table td:nth-child(1) {
    width: 8%;
}

.dns-record-table th:nth-child(2),
.dns-record-table td:nth-child(2) {
    width: 21%;
}

.dns-record-table th:nth-child(3),
.dns-record-table td:nth-child(3) {
    width: 35%;
}

.dns-record-table th:nth-child(4),
.dns-record-table td:nth-child(4) {
    width: 13%;
}

.dns-record-table th:nth-child(5),
.dns-record-table td:nth-child(5) {
    width: 23%;
}

.dns-record-type {
    font-weight: 900;
}

.dns-record-value {
    font-weight: 700;
}

.dns-record-extra {
    color: #5f5a50;
}

.dns-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.dns-check-card {
    border: 2px solid var(--ink);
    background: var(--white);
    padding: 15px;
    box-shadow: 3px 3px 0 var(--ink);
}

.dns-check-card[data-status="good"] {
    border-left-width: 7px;
}

.dns-check-card[data-status="warning"] {
    border-left-width: 7px;
}

.dns-check-card[data-status="bad"] {
    border-left-width: 7px;
}

.dns-check-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dns-check-top > strong {
    font: 900 .8rem/1.2 "Arial Black", Arial, sans-serif;
}

.dns-check-status {
    flex: 0 0 auto;
    border: 1px solid var(--ink);
    padding: 4px 6px;
    background: var(--paper);
    font: 900 .56rem/1 "Courier New", monospace;
    letter-spacing: .04em;
}

.dns-check-status[data-status="good"] {
    background: var(--green);
}

.dns-check-status[data-status="warning"] {
    background: var(--yellow);
}

.dns-check-status[data-status="bad"] {
    background: #f3a18d;
}

.dns-check-value {
    display: block;
    margin: 10px 0 6px;
    font: 900 .83rem/1.2 "Courier New", monospace;
    overflow-wrap: anywhere;
}

.dns-check-card p {
    margin: 0;
    color: #5d584f;
    font: 400 .88rem/1.45 Georgia, "Times New Roman", serif;
}

.dns-empty-state {
    padding: 18px;
    border: 2px dashed var(--ink);
    background: var(--paper);
}

.dns-empty-state strong,
.dns-empty-state span {
    display: block;
}

.dns-empty-state strong {
    margin-bottom: 5px;
    font: 900 .78rem/1.2 "Arial Black", Arial, sans-serif;
}

.dns-empty-state span {
    color: #5d584f;
    font: 400 .9rem/1.4 Georgia, "Times New Roman", serif;
}

@media (max-width: 1050px) {
    .dns-form {
        grid-template-columns: minmax(0, 1fr) minmax(230px, .55fr);
    }

    .dns-actions {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .dns-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dns-intro {
        display: block;
        margin: 18px 18px 0;
        padding: 18px;
    }

    .dns-badge {
        display: inline-block;
        margin-top: 14px;
    }

    .dns-form {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 18px 0;
    }

    .dns-actions {
        grid-column: auto;
        flex-wrap: wrap;
    }

    .dns-examples,
    .dns-status {
        margin-left: 18px;
        margin-right: 18px;
    }

    .dns-results {
        margin: 24px 18px 18px;
    }

    .dns-result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dns-result-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .dns-summary-grid,
    .dns-check-grid {
        grid-template-columns: 1fr;
    }

    .dns-record-table {
        min-width: 820px;
    }
}
