:root {
    color-scheme: dark;
    --ink: #f7f2df;
    --muted: #b9ad8a;
    --line: #3b3322;
    --soft: #15120d;
    --brand: #d8aa35;
    --brand-dark: #f0c75c;
    --ok: #0f766e;
    --warn: #b45309;
    --bad: #b91c1c;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #0b0906;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header, .site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: #0f0c08;
}
.site-footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}
.brand {
    font-weight: 800;
    font-size: 22px;
    color: var(--brand);
}
.brand-version { color: #ffe17a; font-weight: 700; }
nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 36px 0 56px; }
.hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: center;
    gap: 40px;
}
.hero h1, .page-title h1, .narrow h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    margin: 0 0 18px;
}
.hero p, .page-title p, .narrow p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.eyebrow { text-transform: uppercase; letter-spacing: 0; font-size: 13px; font-weight: 700; color: var(--brand); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--brand);
    border-radius: 6px;
    background: var(--brand);
    color: #151008;
    font-weight: 700;
    cursor: pointer;
}
.button.small { min-height: 34px; padding: 7px 11px; font-size: 14px; }
.button.ghost { background: transparent; color: var(--brand-dark); }
.status-panel, .cards article, .table-section, .record-layout aside {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    background: #11100c;
}
.status-panel dl { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.status-panel dt { color: var(--muted); }
.status-panel dd { margin: 0; font-weight: 700; }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
}
.status-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
}
.nameserver-status.online .status-icon { background: rgba(15, 118, 110, .18); color: #5eead4; }
.nameserver-status.partial .status-icon { background: rgba(180, 83, 9, .18); color: #fbbf24; }
.nameserver-status.offline .status-icon { background: rgba(185, 28, 28, .18); color: #fca5a5; }
.band { border-top: 1px solid var(--line); padding-top: 34px; }
.feature-grid, .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid article { background: var(--soft); border-radius: 8px; padding: 20px; }
.narrow { width: min(520px, 100%); margin: 34px auto; }
.form { display: grid; gap: 15px; margin-top: 22px; }
label { display: grid; gap: 7px; font-weight: 700; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    background: #0b0906;
    color: var(--ink);
}
textarea { resize: vertical; }
.notice { padding: 13px 15px; border-radius: 6px; margin-bottom: 18px; background: var(--soft); }
.notice.success { border-left: 4px solid var(--ok); }
.notice.warn { border-left: 4px solid var(--warn); }
.notice.error { border-left: 4px solid var(--bad); }
.page-title { margin-bottom: 24px; }
.metric { font-size: 34px; font-weight: 800; margin: 8px 0; }
.metric.good { color: var(--ok); }
.metric.bad { color: var(--bad); }
.bad-text { color: var(--bad); font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0; }
pre { white-space: pre-wrap; margin: 0; font-family: Consolas, monospace; }
.record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.link-button {
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    padding: 0;
    cursor: pointer;
    font: inherit;
}
.status-row { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters a { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; }
.filters a.active-filter { background: var(--brand); color: #151008; font-weight: 700; }
.lang-form select { min-height: 30px; padding: 4px 7px; }
@media (max-width: 820px) {
    .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
    .hero, .feature-grid, .cards, .record-layout { grid-template-columns: 1fr; }
    table { display: block; overflow-x: auto; }
}
