@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --color-bg: #050a14;
    --color-bg-elevated: #0c1525;
    --color-surface: rgba(12, 21, 37, 0.82);
    --color-primary: #3b82f6;
    --color-primary-light: #60a5fa;
    --color-primary-dim: rgba(59, 130, 246, 0.14);
    --color-primary-glow: rgba(59, 130, 246, 0.45);
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-border: #1e3a5f;
    --color-accent: #818cf8;
    --color-danger: #f87171;
    --color-success: #34d399;
    --font-sans: 'Poppins', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --nav-height: 64px;
    --radius: 6px;
    --transition: 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    position: relative;
}

.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 65% 50% at 50% 45%, transparent 0%, rgba(5, 10, 20, 0.45) 60%, rgba(5, 10, 20, 0.85) 100%),
        radial-gradient(ellipse 90% 60% at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
}

.site-nav,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

a { color: var(--color-primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

/* ── Navigation ── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(5, 10, 20, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.site-nav__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-nav__brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-nav__brand span { color: var(--color-text-muted); font-weight: 400; }

.site-nav__toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-primary-light);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: var(--radius);
}

.site-nav__links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__links a {
    display: block;
    padding: 0.45rem 0.9rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.site-nav__links a:hover,
.site-nav__links a.active {
    color: #fff;
    background: var(--color-primary-dim);
}

/* ── Layout ── */
main {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 2.5rem) 1.25rem 3rem;
}

.page-header { margin-bottom: 2rem; }

.page-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.page-header .lead {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 400;
}

/* ── Cards ── */
.frame-card {
    position: relative;
    margin-bottom: 1.5rem;
}

.frame-card__lines,
.frame-card__angles {
    display: none;
}

.frame-card__body {
    position: relative;
    padding: 1.75rem;
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.frame-card__title {
    position: relative;
    z-index: 2;
    margin: 0 0 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary-light);
}

/* ── Data Grid ── */
.data-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0;
}

.data-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
    align-items: center;
}

.data-row:last-child { border-bottom: none; }

.data-row__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.data-row__value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    word-break: break-all;
}

.data-row__value.loading {
    color: var(--color-text-muted);
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite;
}

.data-row__value.error { color: var(--color-danger); font-style: normal; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Hero IP Display ── */
.hero-ip {
    text-align: center;
    padding: 2rem 1rem;
}

.hero-ip__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.hero-ip__address {
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 5vw, 2.4rem);
    font-weight: 600;
    color: var(--color-primary-light);
    text-shadow: 0 0 40px var(--color-primary-glow);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.hero-ip__meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.hero-ip__actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 2rem;
    min-width: 140px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(59, 130, 246, 0.5);
    background: transparent;
    color: var(--color-primary-light);
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
    background: var(--color-primary-dim);
    border-color: var(--color-primary-light);
    color: #fff;
    box-shadow: 0 0 20px var(--color-primary-glow);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--solid {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: transparent;
    color: #fff;
    min-width: 180px;
    padding: 0.85rem 2.5rem;
    font-size: 0.85rem;
}

.btn--solid:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 28px var(--color-primary-glow);
    transform: translateY(-2px);
}

.btn--sm {
    min-width: auto;
    padding: 0.55rem 1.25rem;
    font-size: 0.75rem;
}

.btn.copied {
    border-color: var(--color-success);
    color: var(--color-success);
    background: rgba(52, 211, 153, 0.1);
}

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-text);
    background: rgba(5, 10, 20, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-dim);
}

.form-control::placeholder { color: var(--color-text-muted); opacity: 0.6; }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2360a5fa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select option { background: var(--color-bg); }

.form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.form-row--dns {
    grid-template-columns: 2fr 1fr;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* ── Alerts ── */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.alert--danger {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--color-danger);
}

/* ── Tables ── */
.table-wrap {
    position: relative;
    z-index: 2;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary-light);
    background: rgba(59, 130, 246, 0.08);
    border-bottom: 1px solid rgba(59, 130, 246, 0.12);
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.06);
    word-break: break-all;
    vertical-align: top;
}

.data-table pre {
    margin: 0;
    font-size: 0.8rem;
    white-space: pre-wrap;
    color: var(--color-text-muted);
}

/* ── DNS Results Table ── */
.dns-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.dns-results-header .frame-card__title {
    margin-bottom: 0;
}

.dns-results-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.dns-table-wrap {
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: var(--radius);
    background: rgba(5, 10, 20, 0.4);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.4) rgba(5, 10, 20, 0.4);
}

.dns-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.dns-table-wrap::-webkit-scrollbar-track {
    background: rgba(5, 10, 20, 0.4);
    border-radius: 3px;
}

.dns-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 3px;
}

.dns-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.dns-table th,
.dns-table td {
    white-space: nowrap;
}

.dns-table th:nth-child(1),
.dns-table td:nth-child(1) { min-width: 72px; }

.dns-table th:nth-child(2),
.dns-table td:nth-child(2) { min-width: 150px; }

.dns-table th:nth-child(3),
.dns-table td:nth-child(3) { min-width: 64px; }

.dns-table th:nth-child(4),
.dns-table td:nth-child(4) { min-width: 60px; }

.dns-table th:nth-child(5),
.dns-table td:nth-child(5) { min-width: 320px; }

.dns-table tbody tr:nth-child(even) {
    background: rgba(59, 130, 246, 0.03);
}

.dns-table td {
    word-break: normal;
    overflow-wrap: normal;
}

.dns-table__host {
    font-weight: 500;
    color: var(--color-primary-light);
}

.dns-table__ttl,
.dns-table__class {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.dns-table__value {
    max-width: 480px;
}

.dns-type-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary-light);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.dns-type-badge--a { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.25); }
.dns-type-badge--aaaa { background: rgba(34, 211, 238, 0.12); color: #67e8f9; border-color: rgba(34, 211, 238, 0.25); }
.dns-type-badge--mx { background: rgba(251, 191, 36, 0.12); color: #fcd34d; border-color: rgba(251, 191, 36, 0.25); }
.dns-type-badge--txt { background: rgba(167, 139, 250, 0.12); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.25); }
.dns-type-badge--ns { background: rgba(96, 165, 250, 0.12); color: #93c5fd; border-color: rgba(96, 165, 250, 0.25); }
.dns-type-badge--cname { background: rgba(244, 114, 182, 0.12); color: #f9a8d4; border-color: rgba(244, 114, 182, 0.25); }
.dns-type-badge--soa { background: rgba(248, 113, 113, 0.12); color: #fca5a5; border-color: rgba(248, 113, 113, 0.25); }

.dns-value-text {
    color: var(--color-text);
    line-height: 1.5;
}

.dns-value-details {
    margin: 0;
}

.dns-value-details summary {
    cursor: pointer;
    color: var(--color-text);
    line-height: 1.5;
    list-style: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 460px;
    display: block;
}

.dns-value-details summary::-webkit-details-marker {
    display: none;
}

.dns-value-details summary::before {
    content: '▸ ';
    color: var(--color-primary-light);
    font-size: 0.75rem;
}

.dns-value-details[open] summary::before {
    content: '▾ ';
}

.dns-value-details summary:hover {
    color: var(--color-primary-light);
}

.dns-value-full {
    margin: 0.5rem 0 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    white-space: normal;
    word-break: break-word;
    max-width: 460px;
}

/* ── Prose (legal pages) ── */
.prose h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary-light);
}

.prose p, .prose li {
    color: var(--color-text-muted);
    line-height: 1.75;
}

.prose ul { padding-left: 1.25rem; }

.prose .text-muted {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* ── History ── */
.history-section {
    margin-top: 2rem;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.history-header__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-light);
}

.history-header__title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
    animation: history-pulse 2s ease-in-out infinite;
}

@keyframes history-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.history-count {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.history-clear {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.history-clear:hover {
    color: var(--color-danger);
    border-color: rgba(248, 113, 113, 0.4);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.history-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 21, 37, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.history-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.history-card__indicator {
    width: 4px;
    flex-shrink: 0;
    background: var(--color-success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.history-card--success .history-card__indicator {
    background: var(--color-success);
}

.history-card__body {
    flex: 1;
    padding: 0.85rem 0.75rem;
    min-width: 0;
}

.history-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.history-card__type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.history-card__type--dns {
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-primary-light);
    border-color: rgba(59, 130, 246, 0.25);
}

.history-card__time {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.history-card__query {
    margin: 0 0 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
}

.history-card__tag {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary-light);
    border: 1px solid rgba(59, 130, 246, 0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.history-card__tag--muted {
    background: rgba(148, 163, 184, 0.08);
    color: var(--color-text-muted);
    border-color: rgba(148, 163, 184, 0.12);
}

.history-card__actions {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(59, 130, 246, 0.08);
}

.history-card__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    font-size: 1rem;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.history-card__btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary-light);
}

.history-card__btn--danger:hover {
    background: rgba(248, 113, 113, 0.1);
    color: var(--color-danger);
}

.history-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-muted);
    border: 1px dashed rgba(59, 130, 246, 0.15);
    border-radius: var(--radius);
    background: rgba(5, 10, 20, 0.3);
}

.history-empty__icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.history-empty p {
    margin: 0;
    font-size: 0.85rem;
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    background: rgba(5, 10, 20, 0.75);
    padding: 2.5rem 1.25rem;
    margin-top: auto;
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
}

.site-footer__brand {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.site-footer h5 {
    margin: 0 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-light);
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li { margin-bottom: 0.4rem; }

.site-footer a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.site-footer a:hover { color: var(--color-primary-light); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .site-nav__toggle { display: block; }

    .site-nav__links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(5, 10, 20, 0.97);
        border-bottom: 1px solid rgba(59, 130, 246, 0.12);
        padding: 0.75rem;
    }

    .site-nav__links.open { display: flex; }

    .site-nav__links a { padding: 0.75rem 1rem; }

    .data-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .form-row,
    .form-row--dns {
        grid-template-columns: 1fr;
    }

    .btn--solid {
        width: 100%;
        min-width: unset;
    }

    .dns-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dns-table-wrap {
        margin: 0 -0.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .dns-table {
        font-size: 0.8rem;
    }

    .dns-table th,
    .dns-table td {
        padding: 0.6rem 0.75rem;
    }

    .dns-table th:nth-child(5),
    .dns-table td:nth-child(5) { min-width: 240px; }

    .dns-value-details summary,
    .dns-value-full {
        max-width: 220px;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
