:root {
    --ink: #16243a;
    --muted: #718096;
    --muted-2: #94a0b1;
    --line: #e7ebf1;
    --paper: #ffffff;
    --canvas: #f5f7fa;
    --navy: #13233a;
    --navy-2: #1b304d;
    --blue: #4b78f2;
    --blue-dark: #345fda;
    --mint: #78e2c3;
    --green: #13805e;
    --green-bg: #e9f8f1;
    --amber: #a76a09;
    --amber-bg: #fff5df;
    --red: #bb3f51;
    --red-bg: #fff0f1;
    --shadow: 0 14px 34px rgba(24, 43, 69, .07);
    --radius: 16px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: 252px;
    padding: 27px 18px 20px;
    color: #d9e4f1;
    background: var(--navy);
    box-shadow: 8px 0 28px rgba(17, 31, 50, .08);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
}
.brand-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.2; }
.brand-copy strong { color: #fff; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: -.03em; }
.brand-copy small { margin-top: 5px; color: #8fa2ba; font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.nav-caption { margin: 48px 10px 12px; color: #7890ad; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.main-nav { display: grid; gap: 6px; }
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #aebdd0;
    font-size: 13px;
    font-weight: 600;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.is-active { color: #fff; border-color: rgba(120,226,195,.13); background: rgba(120,226,195,.11); }
.nav-link.is-active::before { position: absolute; top: 10px; bottom: 10px; left: -19px; width: 3px; border-radius: 0 4px 4px 0; background: var(--mint); content: ''; }
.nav-icon { display: grid; place-items: center; width: 23px; height: 23px; color: #9db1c9; font-size: 19px; line-height: 1; }
.nav-link.is-active .nav-icon { color: var(--mint); }
.sidebar-spacer { flex: 1; min-height: 40px; }
.sidebar-note { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border: 1px solid rgba(218,231,244,.1); border-radius: 12px; background: rgba(255,255,255,.035); }
.note-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(120,226,195,.1); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { color: #eaf1f8; font-size: 11px; font-weight: 700; }
.sidebar-note small { margin-top: 2px; color: #8fa2ba; font-size: 10px; }
.sidebar-bottom { margin: 18px 4px 0; color: #637a96; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.sidebar-bottom span { padding: 0 3px; color: #94abc5; }

.main-column { display: flex; flex: 1; min-width: 0; flex-direction: column; margin-left: 252px; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 42px;
    border-bottom: 1px solid #e9edf3;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px);
}
.topbar-context { display: flex; align-items: center; gap: 11px; min-width: 0; }
.topbar-kicker { color: #8b98a9; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.topbar-divider { color: #c4ccd7; }
.topbar-page { overflow: hidden; color: #34445b; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.user-avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #dfe8ff; border-radius: 50%; color: #355fd3; background: #edf2ff; font-size: 12px; font-weight: 700; }
.user-email { max-width: 230px; overflow: hidden; color: #56647a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.logout-link { display: grid; place-items: center; width: 31px; height: 31px; margin-left: 3px; border: 1px solid var(--line); border-radius: 9px; color: #617087; font-size: 16px; transition: .18s ease; }
.logout-link:hover { color: var(--red); border-color: #f3c9cd; background: var(--red-bg); }
.page-content { width: min(100%, 1440px); flex: 1; margin: 0 auto; padding: 36px 42px 48px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 42px 20px; color: #9aa5b3; font-size: 10px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.list-toolbar { flex-wrap: wrap; }
.eyebrow { display: block; margin-bottom: 7px; color: #6c82a0; font-size: 9px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Manrope', 'Segoe UI', sans-serif; letter-spacing: -.04em; }
h1 { margin-bottom: 8px; color: var(--ink); font-size: clamp(25px, 3vw, 34px); font-weight: 800; line-height: 1.15; }
h2 { margin-bottom: 5px; font-size: 18px; font-weight: 750; }
h3 { margin-bottom: 0; font-size: 14px; font-weight: 750; }
.page-subtitle { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }

.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 6px 14px rgba(75,120,242,.18); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 8px 18px rgba(75,120,242,.24); }
.button-secondary { color: #43536c; border-color: #dfe5ed; background: #fff; }
.button-secondary:hover { border-color: #c8d3e0; background: #f9fbfd; }
.button-danger { color: var(--red); border-color: #f3d4d7; background: #fff; }
.button-danger:hover { background: var(--red-bg); }
.button-quiet { min-height: 34px; padding: 0 11px; color: #52627a; border-color: var(--line); background: #fff; font-size: 11px; }
.button-icon { font-size: 17px; font-weight: 400; }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { position: relative; overflow: hidden; min-height: 133px; padding: 20px; border: 1px solid #e9edf2; border-radius: var(--radius); background: var(--paper); box-shadow: 0 4px 12px rgba(29,49,73,.025); }
.stat-card::after { position: absolute; right: -25px; bottom: -38px; width: 104px; height: 104px; border-radius: 50%; background: var(--stat-tint, #eff3ff); content: ''; opacity: .8; }
.stat-card.tone-blue { --stat-tint: #edf2ff; }
.stat-card.tone-green { --stat-tint: #e7f8f2; }
.stat-card.tone-amber { --stat-tint: #fff4df; }
.stat-card.tone-navy { --stat-tint: #edf0f5; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #6d7c91; font-size: 11px; font-weight: 600; }
.stat-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #5275d7; background: #edf2ff; font-size: 15px; }
.tone-green .stat-icon { color: #168367; background: #e5f7f0; }
.tone-amber .stat-icon { color: #aa730f; background: #fff3dd; }
.tone-navy .stat-icon { color: #445c79; background: #eef2f7; }
.stat-value { position: relative; z-index: 1; margin-top: 14px; font-family: 'Manrope', sans-serif; font-size: 29px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.stat-note { position: relative; z-index: 1; margin-top: 7px; color: #97a2b1; font-size: 10px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .8fr); gap: 18px; align-items: start; }
.panel { overflow: hidden; border: 1px solid #e8edf3; border-radius: var(--radius); background: var(--paper); box-shadow: 0 4px 14px rgba(29,49,73,.025); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #eef1f5; }
.panel-title { display: flex; flex-direction: column; gap: 2px; }
.panel-title p { margin: 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 20px 22px; }
.panel-link { color: var(--blue); font-size: 11px; font-weight: 700; }
.panel-link:hover { color: var(--blue-dark); }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 12px 17px; color: #8a96a6; background: #fbfcfd; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 17px; border-top: 1px solid #eef1f5; color: #4d5c71; font-size: 12px; vertical-align: middle; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: #fafcff; }
.table-primary { display: block; color: #24344b; font-size: 12px; font-weight: 700; }
.table-secondary { display: block; margin-top: 2px; color: #94a0af; font-size: 10px; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.text-right { text-align: right !important; }
.text-muted { color: var(--muted) !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
.badge-active { color: var(--green); background: var(--green-bg); }
.badge-inactive { color: #778397; background: #eff2f5; }
.badge-warning { color: var(--amber); background: var(--amber-bg); }
.badge-danger { color: var(--red); background: var(--red-bg); }
.badge-neutral { color: #58708d; background: #edf2f7; }
.renewal-on { color: var(--green); font-size: 11px; font-weight: 600; }
.renewal-off { color: #929eac; font-size: 11px; }

.empty-state { display: grid; justify-items: center; padding: 42px 22px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 15px; border-radius: 16px; color: #5579dd; background: #eef3ff; font-size: 23px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { max-width: 360px; margin-bottom: 17px; color: var(--muted); font-size: 12px; }

.search-form { display: flex; align-items: center; gap: 8px; }
.search-field { position: relative; min-width: min(270px, 38vw); }
.search-field input { width: 100%; min-height: 39px; padding: 0 12px 0 36px; border: 1px solid #e3e8ef; border-radius: 9px; outline: none; color: var(--ink); background: #fff; font-size: 12px; transition: border-color .15s, box-shadow .15s; }
.search-field input:focus { border-color: #9cb2f6; box-shadow: 0 0 0 3px rgba(75,120,242,.1); }
.search-symbol { position: absolute; top: 50%; left: 12px; color: #94a0af; font-size: 14px; transform: translateY(-50%); pointer-events: none; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.form-card { padding: 25px; }
.form-card h2 { margin-bottom: 5px; }
.form-intro { margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; }
.form-row { min-width: 0; }
.form-row-wide { grid-column: 1 / -1; }
form label, .form-label { display: block; margin-bottom: 7px; color: #44536a; font-size: 11px; font-weight: 700; }
input:not([type=checkbox]):not([type=hidden]), select, textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    outline: none;
    color: #27364d;
    background-color: #fff;
    font-size: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 104px; resize: vertical; }
input:not([type=checkbox]):not([type=hidden]):focus, select:focus, textarea:focus { border-color: #9cb2f6; box-shadow: 0 0 0 3px rgba(75,120,242,.1); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); vertical-align: middle; }
.form-check { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 12px; border: 1px solid #e3e8ef; border-radius: 8px; background: #fbfcfe; }
.form-check label { margin: 0; cursor: pointer; }
.form-hint { display: block; margin-top: 5px; color: #909bab; font-size: 10px; }
.form-text { display: block; margin-top: 5px; color: #909bab; font-size: 10px; }
.invalid-feedback, .form-error-message { display: block; margin-top: 5px; color: var(--red); font-size: 10px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 23px; padding-top: 19px; border-top: 1px solid #edf0f4; }
.form-errors { margin: 7px 0 0; color: var(--red); font-size: 11px; }
.form-aside { padding: 20px; border: 1px solid #e4eaf0; border-radius: var(--radius); background: #f9fbfd; }
.form-aside h3 { margin-bottom: 9px; }
.form-aside p { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; padding: 25px 27px; border: 1px solid #e8edf3; border-radius: var(--radius); background: linear-gradient(115deg, #fff 0%, #fff 66%, #f0f5ff 100%); box-shadow: 0 5px 18px rgba(29,49,73,.035); }
.detail-name { display: flex; align-items: center; gap: 15px; }
.domain-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #4169dc; background: #edf2ff; font-size: 20px; }
.detail-name h1 { margin-bottom: 5px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.detail-card { padding: 17px 19px; border: 1px solid #e8edf3; border-radius: 13px; background: #fff; }
.detail-card-label { color: #8b97a7; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-card-value { margin-top: 8px; color: #27374e; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 750; }
.section-stack { display: grid; gap: 17px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading small { color: var(--muted); font-size: 10px; }
.dns-record-panel .section-heading small { font-size: 12px; }
.section-heading .heading-copy { display: flex; flex-direction: column; gap: 2px; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.info-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eef1f5; }
.info-item:nth-last-child(-n+2) { border-bottom: 0; }
.info-label { color: #8995a5; font-size: 10px; }
.info-value { color: #35445b; font-size: 11px; font-weight: 600; text-align: right; }

.record-list { display: grid; }
.record-row { display: grid; grid-template-columns: 62px minmax(95px, .75fr) minmax(130px, 1.4fr) 65px 52px auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.record-row-compact { grid-template-columns: minmax(0, 1fr) auto; }
.record-row:last-child { border-bottom: 0; }
.record-type { display: inline-flex; min-width: 47px; justify-content: center; padding: 5px 7px; border-radius: 6px; color: #476ac7; background: #edf2ff; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 700; }
.record-name, .record-content { overflow: hidden; color: #425269; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.record-ttl { color: #8390a1; font-size: 10px; }
.record-priority { color: #8390a1; font-size: 10px; }
.record-actions { display: flex; justify-content: flex-end; gap: 8px; }
.record-actions form, .standalone-delete-form form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.record-actions a { color: var(--blue); font-size: 10px; font-weight: 700; }
.dns-record-panel .record-row { padding: 14px 0; }
.dns-record-panel .record-type { min-width: 50px; font-size: 12px; }
.dns-record-panel .record-name, .dns-record-panel .record-content,
.dns-record-panel .record-ttl, .dns-record-panel .record-priority { font-size: 12px; }
.dns-record-panel .record-actions a, .dns-record-panel .record-actions .link-button { font-size: 12px; }
.contact-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-card { padding: 15px; border: 1px solid #edf0f4; border-radius: 11px; background: #fcfdfe; }
.contact-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.contact-card strong { display: block; color: #33435a; font-size: 12px; }
.contact-card p { margin: 7px 0 0; color: #788599; font-size: 10px; }
.contact-name { margin-top: 9px; }
.contact-card-top .record-actions { flex-direction: row; flex-wrap: wrap; }
.quick-links { display: grid; gap: 4px; padding-top: 8px; padding-bottom: 8px; }
.quick-link { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.quick-link:last-child { border-bottom: 0; }
.quick-link:hover strong { color: var(--blue); }
.quick-link-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #4d70d3; background: #edf2ff; font-size: 17px; }
.quick-link-mint { color: #168367; background: #e8f8f2; }
.quick-link strong, .quick-link small { display: block; }
.quick-link strong { color: #33435a; font-size: 11px; }
.quick-link small { margin-top: 2px; color: #8e9aaa; font-size: 9px; }
.quick-arrow { margin-left: auto; color: #9aa6b5; font-size: 15px; }
.compact-empty-state { padding: 26px 22px; }
.compact-empty-state .empty-icon { width: 42px; height: 42px; margin-bottom: 10px; font-size: 18px; }
.compact-empty-state p { margin-bottom: 14px; }
.detail-footer-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.delete-hint { color: #8b96a5; font-size: 10px; }
.credential-present { color: var(--green); font-size: 11px; font-weight: 700; }
.credential-status { margin-top: 13px; }
.form-aside code { padding: 2px 4px; border-radius: 4px; color: #42536a; background: #edf1f6; font-size: 10px; overflow-wrap: anywhere; }
.registrar-symbol { color: #18816a; background: #e8f8f2; }
.registrar-detail-grid { grid-template-columns: minmax(0, 1.4fr) minmax(250px, .7fr); }
.info-list-single { grid-template-columns: 1fr; }
.info-list-single .info-item:nth-last-child(-n+2) { border-bottom: 1px solid #eef1f5; }
.info-list-single .info-item:last-child { border-bottom: 0; }
.link-button { padding: 0; border: 0; cursor: pointer; color: var(--red); background: transparent; font-size: 10px; font-weight: 700; }
.link-button:hover { text-decoration: underline; }
.standalone-delete-form { display: flex; justify-content: flex-end; margin-top: 16px; }

.flash { margin-bottom: 18px; padding: 12px 15px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; }
.flash-success { color: #167457; border-color: #cbeee0; background: #effaf5; }
.flash-error, .flash-danger { color: #a83345; border-color: #f3d2d6; background: #fff3f4; }
.flash-warning { color: #8a6417; border-color: #f1e2bb; background: #fff9e9; }
.flash-info { color: #345eab; border-color: #d6e3fb; background: #f1f6ff; }

.auth-body { min-height: 100vh; background: #f4f7fb; }
.auth-shell { position: relative; display: grid; min-height: 100vh; grid-template-columns: minmax(280px, .88fr) minmax(360px, 1.12fr); background: #fff; }
.auth-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-height: 100vh; padding: 38px clamp(30px, 6vw, 90px); color: #fff; background: radial-gradient(circle at 85% 16%, rgba(120,226,195,.18), transparent 26%), linear-gradient(145deg, #102038, #192e4b 68%, #1c3c57); }
.auth-brand::after { position: absolute; right: -145px; bottom: -188px; width: 440px; height: 440px; border: 1px solid rgba(153,222,211,.18); border-radius: 50%; box-shadow: 0 0 0 48px rgba(153,222,211,.035), 0 0 0 98px rgba(153,222,211,.025); content: ''; }
.brand-light { position: relative; z-index: 1; width: fit-content; }
.auth-pitch { position: relative; z-index: 1; max-width: 460px; margin: auto 0; padding: 70px 0; }
.auth-pitch .eyebrow { color: var(--mint); }
.auth-pitch h1 { max-width: 420px; margin: 12px 0 16px; color: #fff; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; }
.auth-pitch p { max-width: 390px; color: #b4c3d5; font-size: 14px; line-height: 1.8; }
.auth-pitch-list { display: grid; gap: 10px; margin-top: 28px; color: #d2dfed; font-size: 11px; }
.auth-pitch-list span::before { margin-right: 9px; color: var(--mint); content: '✓'; }
.auth-side-foot { position: relative; z-index: 1; color: #8ea4bd; font-size: 10px; }
.auth-main { display: grid; align-content: center; justify-items: center; padding: 42px 25px; }
.auth-main > .flash { width: min(100%, 430px); }
.login-card { width: min(100%, 430px); padding: clamp(25px, 4vw, 42px); border: 1px solid #e7ecf2; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(26,47,74,.09); }
.login-card h2 { margin-bottom: 7px; font-size: 23px; }
.login-card > p { margin-bottom: 27px; color: var(--muted); font-size: 12px; }
.login-card .form-row { margin-bottom: 16px; }
.login-card input { min-height: 46px !important; }
.login-card .button { width: 100%; min-height: 45px; margin-top: 8px; }
.login-help { display: flex; align-items: center; gap: 7px; margin-top: 21px; color: #8996a7; font-size: 10px; }
.login-help::before { content: '◈'; color: #6a88d9; font-size: 14px; }
.auth-footer { display: none; }

@media (max-width: 1100px) {
    .sidebar { width: 220px; }
    .main-column { margin-left: 220px; }
    .topbar { padding: 0 28px; }
    .page-content { padding: 30px 28px 40px; }
    .page-footer { padding-right: 28px; padding-left: 28px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-layout { grid-template-columns: minmax(0, 1fr) 230px; }
}

@media (max-width: 760px) {
    .app-shell { display: block; }
    .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: auto; padding: 12px 16px 10px; }
    .brand { gap: 9px; }
    .brand-logo { width: 36px; height: 36px; flex-basis: 36px; }
    .brand-copy strong { font-size: 12px; }
    .brand-copy small { font-size: 8px; }
    .nav-caption, .sidebar-spacer, .sidebar-note, .sidebar-bottom { display: none; }
    .main-nav { display: flex; gap: 5px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
    .main-nav::-webkit-scrollbar { display: none; }
    .nav-link { min-height: 36px; flex: 0 0 auto; gap: 7px; padding: 0 10px; font-size: 11px; }
    .nav-link.is-active::before { top: auto; right: 10px; bottom: -10px; left: 10px; width: auto; height: 2px; border-radius: 3px 3px 0 0; }
    .nav-icon { width: 17px; height: 19px; font-size: 16px; }
    .main-column { margin-left: 0; }
    .topbar { position: relative; min-height: 54px; padding: 0 17px; }
    .topbar-kicker { font-size: 8px; }
    .user-email { max-width: 120px; font-size: 10px; }
    .page-content { padding: 25px 16px 34px; }
    .page-footer { padding: 13px 17px 18px; font-size: 9px; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; }
    .content-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-layout { grid-template-columns: 1fr; }
    .form-aside { order: -1; }
    .panel-header { padding: 17px; }
    .panel-body { padding: 16px; }
    .list-toolbar { align-items: stretch; flex-direction: column; }
    .list-toolbar .search-form { width: 100%; }
    .record-row { grid-template-columns: 50px minmax(60px, .7fr) minmax(85px, 1fr) 44px auto; gap: 7px; }
    .record-row-compact { grid-template-columns: minmax(0, 1fr) auto; }
    .record-ttl { display: none; }
    .record-priority { display: none; }
    .contact-card-grid { grid-template-columns: 1fr; }
    .registrar-detail-grid { grid-template-columns: 1fr; }
    .auth-shell { display: block; min-height: 100vh; background: #f4f7fb; }
    .auth-brand { min-height: 210px; padding: 22px 22px 10px; }
    .auth-pitch { padding: 31px 0 35px; }
    .auth-pitch h1 { max-width: 380px; margin: 8px 0 8px; font-size: 30px; }
    .auth-pitch p { margin-bottom: 0; font-size: 12px; }
    .auth-pitch-list, .auth-side-foot { display: none; }
    .auth-main { position: relative; z-index: 2; margin-top: -8px; padding: 0 16px 36px; }
    .login-card { padding: 25px; }
}

@media (max-width: 520px) {
    .stats-grid { gap: 9px; }
    .stat-card { min-height: 118px; padding: 15px; }
    .stat-value { margin-top: 11px; font-size: 25px; }
    .stat-top { align-items: flex-start; font-size: 10px; }
    .stat-icon { width: 26px; height: 26px; }
    .search-form { width: 100%; }
    .search-field { min-width: 0; flex: 1; }
    .page-heading .search-form { margin-top: 5px; }
    .form-card { padding: 19px 16px; }
    .form-grid { grid-template-columns: 1fr; gap: 13px; }
    .form-row-wide { grid-column: auto; }
    .detail-hero { padding: 18px; flex-direction: column; }
    .detail-name { align-items: flex-start; }
    .detail-grid { gap: 9px; }
    .detail-card { padding: 13px; }
    .detail-card-value { font-size: 14px; }
    .info-list { grid-template-columns: 1fr; }
    .info-item:nth-last-child(-n+2) { border-bottom: 1px solid #eef1f5; }
    .info-item:last-child { border-bottom: 0; }
    .record-row { grid-template-columns: 46px minmax(50px, .65fr) minmax(70px, 1fr) auto; }
    .dns-record-panel .record-row { grid-template-columns: 50px minmax(50px, .65fr) minmax(70px, 1fr) auto; }
    .record-actions { flex-direction: column; gap: 4px; }
    .user-email { display: none; }
    .topbar { gap: 7px; }
}
