@font-face {
    font-family: 'Manrope';
    src: url('/fonts/manrope/Manrope-Variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --brand-blue: #359ec6;
    --action-blue: #14769a;
    --action-hover: #105c79;
    --ink: #27292c;
    --muted: #626b73;
    --canvas: #f4f6f8;
    --surface: #fff;
    --line: #dfe5e9;
    --soft-blue: #edf7fb;
    --radius: 12px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 450 15px/1.65 'Manrope', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}
header {
    background: var(--surface);
    border-top: 4px solid var(--brand-blue);
    border-bottom: 1px solid var(--line);
    min-height: 104px;
    padding: 18px max(24px, calc((100vw - 1160px) / 2));
    display: flex;
    align-items: center;
    gap: 40px;
}
.brand { color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-wordmark { display: block; font-size: 30px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.1; }
.brand-wordmark span { color: var(--brand-blue); }
.brand small { display: block; margin-top: 5px; color: var(--action-blue); font-size: 10px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; }
.brand-logo { display: block; width: 250px; max-width: 100%; height: auto; max-height: 80px; object-fit: contain; }
nav { display: flex; gap: 8px; }
a { color: var(--action-blue); text-underline-offset: 4px; }
a:hover { color: var(--action-hover); }
nav a { padding: 9px 15px; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 700; }
nav a:hover, nav a[aria-current='page'] { color: var(--action-blue); background: var(--soft-blue); }
.user { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 13px; }
main { max-width: 1160px; margin: 44px auto; padding: 0 24px; min-height: 68vh; }
h1 { font-size: clamp(29px, 4vw, 38px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.2; margin: 12px 0 24px; overflow-wrap: anywhere; }
h2 { font-size: 19px; font-weight: 750; letter-spacing: -.4px; margin: 0 0 18px; }
p { margin: 12px 0; }
.eyebrow { font-size: 11px; letter-spacing: 2px; font-weight: 800; color: var(--action-blue); }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; box-shadow: 0 3px 14px #202a3404; }
.auth { max-width: 460px; margin: 64px auto; padding: 36px; border-top: 3px solid var(--brand-blue); box-shadow: 0 14px 40px #202a3409; }
.narrow { max-width: 650px; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid > .card { min-width: 0; }
.table-wrap { overflow-x: auto; padding: 0; }
table { border-collapse: collapse; width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
th, td { padding: 17px 22px; border-bottom: 1px solid #e8edf0; }
th { font-size: 11px; font-weight: 750; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; background: #fafbfd; white-space: nowrap; }
td a { font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbfd; }
.empty { text-align: center; padding: 50px 24px; color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 700; margin: 18px 0; }
input, select, textarea { display: block; width: 100%; min-height: 46px; padding: 11px 14px; margin-top: 7px; border: 1px solid #bdc7d0; border-radius: 7px; font: 500 15px/1.5 'Manrope', system-ui, sans-serif; color: var(--ink); background: var(--surface); }
input:hover, select:hover, textarea:hover { border-color: #889aa7; }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 3px solid #359ec63d; outline-offset: 1px; border-color: var(--action-blue); }
button, .button { display: inline-block; background: var(--action-blue); color: #fff; border: 1px solid transparent; padding: 11px 20px; min-height: 44px; border-radius: 7px; font: 750 13px/1.6 'Manrope', system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
button:hover, .button:hover { background: var(--action-hover); color: #fff; }
.secondary { background: var(--soft-blue); color: var(--action-blue); border-color: #cce2ec; }
.secondary:hover { background: #daedf6; color: var(--action-hover); }
.link { background: none; color: var(--action-blue); padding: 6px 0; min-height: auto; text-decoration: underline; }
.link:hover { background: none; color: var(--action-hover); }
.auth button { width: 100%; margin-top: 8px; }
.notice, .errors { padding: 18px 22px; border-radius: 9px; margin-bottom: 24px; }
.notice { background: var(--soft-blue); border-left: 3px solid var(--brand-blue); color: #185574; }
.errors { background: #fff1ef; border-left: 3px solid #b74036; color: #922c29; }
.badge { background: #eef1f4; border: 1px solid #dfe5e9; border-radius: 20px; padding: 5px 12px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.row { display: flex; gap: 15px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #e8edf0; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.count { font-size: 14px; color: var(--muted); }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 30px; border-top: 1px solid var(--line); }
svg { max-width: 24px; }
nav[role='navigation'] { display: block; margin: 20px 0; }
@media (max-width: 720px) {
    header { flex-wrap: wrap; padding: 16px 20px; gap: 16px; }
    .brand-logo { width: 210px; }
    .user { width: 100%; margin: 0; justify-content: space-between; }
    nav { flex-wrap: wrap; }
    nav a { padding: 8px 10px; }
    main { padding: 0 16px; margin-top: 28px; }
    .grid { grid-template-columns: 1fr; gap: 0; }
    .heading { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
    .card { padding: 20px; }
    .table-wrap { padding: 0; }
    .auth { margin: 30px auto; padding: 28px 24px; }
    dl { grid-template-columns: 1fr; gap: 6px; }
    dd { margin-bottom: 12px; }
    .row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

.domain-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.domain-toolbar label { margin: 0; }
.domain-toolbar .search-field { flex: 1 1 280px; }
.domain-toolbar > a, .domain-toolbar > .count { padding-bottom: 10px; }
input[type='checkbox'] { display: inline-block; width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; vertical-align: middle; accent-color: var(--action-blue); cursor: pointer; }
.domain-toolbar .checkbox-label { display: flex; align-items: center; gap: 9px; min-height: 46px; }

@media (min-width: 721px) and (max-width: 1100px) {
    header { flex-wrap: wrap; gap: 16px; }
}
summary { cursor: pointer; font-weight: 700; }

.field-hint { font-size: 13px; margin-top: -8px; }
