@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
    font-family: 'SF Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/sfmono/SFMonoRegular.otf') format('opentype');
}

@font-face {
    font-family: 'SF Mono';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/sfmono/SFMonoRegularItalic.otf') format('opentype');
}

@font-face {
    font-family: 'SF Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/sfmono/SFMonoMedium.otf') format('opentype');
}

@font-face {
    font-family: 'SF Mono';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/sfmono/SFMonoMediumItalic.otf') format('opentype');
}

@font-face {
    font-family: 'SF Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/sfmono/SFMonoSemibold.otf') format('opentype');
}

@font-face {
    font-family: 'SF Mono';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/sfmono/SFMonoSemiboldItalic.otf') format('opentype');
}

@font-face {
    font-family: 'SF Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/sfmono/SFMonoBold.otf') format('opentype');
}

@font-face {
    font-family: 'SF Mono';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/sfmono/SFMonoBoldItalic.otf') format('opentype');
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url('../fonts/MaterialSymbolsOutlined.woff2') format('woff2');
}

:root {
    --top: #19253c;
    --top-2: #202d47;
    --accent: #10b981;
    --blue: #3366ff;
    --blue-dark: #2952cc;
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --soft-blue: #eef5ff;
    --text: #242a3a;
    --headline: #172033;
    --muted: #6b7280;
    --lighter: #8a93a7;
    --line: #e4e9f2;
    --line-dark: #d6deea;
    --good: #0f9f6e;
    --good-bg: #e9fbf5;
    --warn: #c58b13;
    --warn-bg: #fff8e5;
    --bad: #d14343;
    --bad-bg: #fff0f0;
    --shadow: 0 1px 2px rgba(20, 33, 61, .08), 0 8px 24px rgba(20, 33, 61, .04);
    --radius: 6px;
    --top-height: 56px;
    --sub-height: 48px;
    --side-width: 248px;
}

* { box-sizing: border-box; }
html { font-size: 14px; }
body {
    margin: 0;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.45;
}
body, input, select, textarea, button { font-size: 14px; }
code, pre { font-family: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
a { color: inherit; }

.brand-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.brand-copy strong {
    color: #0b1220;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    white-space: nowrap;
}

.brand-copy span {
    color: #6b7280;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-mark {
    width: var(--chart-bar-width, 40px);
    height: 40px;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
    box-shadow: var(--shadow-xs);
    margin-right: 5px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.top-left, .top-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #fff;
    min-width: 202px;
}
.brand-symbol {
    width: 31px;
    height: 31px;
    border-radius: 7px;
    background: #2f66ff;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .04em;
}
.brand-wordmark { font-weight: 750; font-size: 16px; letter-spacing: -.01em; }
.top-separator { width: 1px; height: 24px; background: rgba(255,255,255,.18); display: inline-block; }
.icon-square {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    color: #dbeafe;
    background: rgba(255,255,255,.08);
    font-weight: 800;
    cursor: default;
}
.top-right a {
    color: #d6deea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 7px;
    border-radius: 8px;
}
.top-right a:hover { background: rgba(255,255,255,.08); color: #fff; }
.org-pill { background: rgba(255,255,255,.05); }
.building-icon { color: #9fb5d8; font-size: 15px; }
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #da6969;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
}

.sub-nav {
    position: fixed;
    z-index: 95;
    top: var(--top-height);
    left: 0;
    right: 0;
    height: var(--sub-height);
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding-left: 15px;
    color: var(--text);
}

.mobile-menu-toggle,
.mobile-menu-close,
.sidebar-backdrop,
.sidebar-mobile-header {
    display: none;
}
.mobile-menu-toggle,
.mobile-menu-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--headline);
    cursor: pointer;
}
.mobile-menu-toggle:focus-visible,
.mobile-menu-close:focus-visible {
    outline: 3px solid rgba(51, 102, 255, .24);
    outline-offset: 2px;
}
.plan-label {
    margin-left: 8px;
    font-weight: 500;
    font-size: 13px;
    color: #4b5563;
    text-transform: capitalize;
}
.upgrade-btn {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 14px;
    border-radius: 6px;
    margin-left: 14px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 750;
    font-size: 13px;
}
.usage-widget {
    margin-left: auto;
    height: 100%;
    padding: 0 22px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7fbff;
    border-left: 1px solid var(--line);
}
.usage-donut {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #e6eef8;
    border-top-color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--good);
}
.usage-widget b { display: block; font-size: 13px; line-height: 1.1; color: var(--headline); }
.usage-widget span:not(.usage-donut):not(.usage-donut span) { display: block; font-size: 11px; color: var(--lighter); margin-top: 2px; }

.sidebar {
    position: fixed;
    z-index: 90;
    top: calc(var(--top-height) + var(--sub-height));
    bottom: 0;
    left: 0;
    width: var(--side-width);
    background: #fff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    box-shadow: 1px 0 0 rgba(20, 33, 61, .02);
}
.sidebar-scroll { overflow: auto; padding: 12px 0 8px; }
.sidebar-section { margin: 0; padding: 0 10px 10px; list-style: none; border-bottom: 1px solid #f0f3f8; }
.sidebar-section + .sidebar-section { padding-top: 12px; }
.sidebar-title {
    padding: 0 10px 6px;
    color: #9aa3b6;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #3f4658;
    text-decoration: none;
    font-weight: 650;
    font-size: 13px;
    position: relative;
}
.sidebar-link:hover { background: #f4f8ff; color: #1f3d99; }
.sidebar-link.active { background: #eef5ff; color: #1f3d99; }
.sidebar-link.disabled { color: #9aa3b6; cursor: default; }
.nav-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
    font-size: 11px;
    color: #667085;
    font-weight: 800;
}
.sidebar-link.active .nav-icon { background: #dbe8ff; color: #1f3d99; }
.soon {
    margin-left: auto;
    font-size: 10px;
    color: #8490a5;
    background: #f3f6fa;
    border-radius: 999px;
    padding: 2px 6px;
}
.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-weight: 650;
    font-size: 13px;
}

.page-container {
    margin-left: var(--side-width);
    padding-top: calc(var(--top-height) + var(--sub-height));
    min-height: 100vh;
}
.body-container {
    width: min(1240px, calc(100vw - var(--side-width) - 36px));
    margin: 0 auto;
    padding: 20px 18px 42px;
}
.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 2px; font-size: 22px; line-height: 1.2; font-weight: 650; color: var(--headline); letter-spacing: -.01em; }
h2 { margin-bottom: 4px; font-size: 15px; line-height: 1.35; font-weight: 650; color: var(--headline); }
h3 { margin-bottom: 5px; font-size: 13px; color: var(--headline); }
p { color: var(--muted); margin-bottom: 10px; }
.page-subtitle { color: var(--muted); font-size: 13px; }
.page-actions, .hero-actions, .top-actions { display: flex; gap: 8px; align-items: center; }

.button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
    width: fit-content;
}
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary { background: #fff; color: #465065; border-color: var(--line-dark); }
.button.secondary:hover { background: #f8fbff; color: #1f3d99; }
.button.small { padding: 5px 8px; font-size: 12px; }
.button.large { padding: 8px 14px; }
.text-link { color: var(--blue); text-decoration: none; font-weight: 700; font-size: 12px; }
.text-link:hover { text-decoration: underline; }

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 14px;
}
.range-picker {
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 11px;
    color: #4b5563;
    font-weight: 650;
    font-size: 12px;
}
.range-picker:before { content: "▣"; color: var(--blue); font-size: 12px; }

.panel, .soft-card, .stat-card, .hero-card, .domain-hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.panel { padding: 16px; margin-bottom: 14px; }
.soft-card { padding: 18px; min-height: 184px; }
.hero-card {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}
.hero-card h2 { font-size: 17px; margin-bottom: 4px; }
.hero-card p { margin-bottom: 0; }
.eyebrow {
    color: var(--lighter);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 3px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.stat-card { padding: 15px 16px; }
.stat-value { font-size: 27px; font-weight: 750; color: var(--headline); letter-spacing: -.04em; line-height: 1.1; }
.stat-label { font-weight: 700; margin-top: 3px; color: #3f4658; }
.stat-hint { color: var(--muted); font-size: 12px; margin-top: 3px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .8fr);
    gap: 18px;
    align-items: start;
}
.wide-card { grid-column: span 1; }
.card-header, .panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.card-header h2, .panel-heading h2 { margin-bottom: 0; }
.panel-heading p { margin-top: 3px; margin-bottom: 0; }
.panel-heading.big { margin-bottom: 14px; }
.policy-meter { display: grid; gap: 12px; }
.meter-row { display: grid; grid-template-columns: 88px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; color: #465065; }
.meter-row > span:first-child { text-transform: capitalize; font-weight: 650; }
.meter-row b { text-align: right; color: var(--headline); }
.meter-track { height: 9px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.meter-track span { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.state-list { display: grid; gap: 10px; }
.state-list > div { display: grid; grid-template-columns: 12px 36px 1fr; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f3f8; }
.state-list > div:last-child { border-bottom: 0; }
.state-list b { color: var(--headline); font-size: 20px; line-height: 1; }
.state-list span:last-child { color: #4b5563; font-weight: 650; }
.state-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.state-dot.good { background: var(--good); }
.state-dot.warn { background: #f59e0b; }
.state-dot.neutral { background: #94a3b8; }
.placeholder-chart {
    min-height: 230px;
    border: 1px solid #eef2f7;
    background: linear-gradient(#fff, #fbfdff);
    border-radius: 6px;
    padding: 18px;
    display: grid;
    align-content: center;
    gap: 18px;
}
.chart-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; height: 120px; }
.chart-bars span { display: block; border-radius: 6px 6px 0 0; background: #dbe8ff; }
.chart-bars span:nth-child(1) { height: 34%; }
.chart-bars span:nth-child(2) { height: 52%; }
.chart-bars span:nth-child(3) { height: 40%; }
.chart-bars span:nth-child(4) { height: 68%; }
.chart-bars span:nth-child(5) { height: 44%; }
.chart-bars span:nth-child(6) { height: 78%; }
.chart-bars span:nth-child(7) { height: 56%; }
.chart-empty, .empty-compact { color: var(--lighter); text-align: center; font-weight: 650; }
.source-table { display: grid; }
.source-table > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f3f8; }
.source-table > div:last-child { border-bottom: 0; }
.source-table span { color: #465065; }
.source-table b { color: var(--lighter); font-size: 12px; }

.badge, .pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.35;
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge.good, .badge.pass, .pill-pass { color: var(--good); background: var(--good-bg); border-color: #b7ecd8; }
.badge.warn, .badge.missing, .badge.optional, .pill-warn { color: var(--warn); background: var(--warn-bg); border-color: #f8e5a8; }
.badge.fail, .badge.error, .pill-fail { color: var(--bad); background: var(--bad-bg); border-color: #ffd0d0; }
.badge.required { color: #1f3d99; background: #edf4ff; border-color: #caddff; }
.pill-neutral { color: var(--muted); background: #f1f5f9; border-color: var(--line); }
.small { font-size: 12px; }
.muted { color: var(--muted); }

.record-list { display: grid; gap: 8px; }
.record-list div { display: grid; gap: 4px; }
.record-list.compact code,
.path-card code {
    display: block;
    padding: 8px 9px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow-wrap: anywhere;
    font-size: 12px;
}
.step-list { margin: 0; padding-left: 18px; color: var(--muted); }
.step-list li { margin: 5px 0; }
.step-list.mini li { margin: 4px 0; }

.wizard-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
    gap: 16px;
    align-items: start;
}
.onboarding-card { padding: 18px; }
.onboard-form, .form-grid { display: grid; gap: 11px; }
.policy-readonly-fieldset .form-grid.two { margin-top: 15px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: grid; gap: 5px; font-weight: 650; color: #334155; }
label span { font-size: 12px; color: #475569; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    padding: 7px 9px;
    font: inherit;
    color: var(--text);
    background: #fff;
    min-height: 34px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #9bb8ff;
    box-shadow: 0 0 0 3px rgba(51, 102, 255, .12);
}

.domain-table {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.domain-row {
    display: grid;
    grid-template-columns: 1.7fr .65fr .65fr .72fr auto;
    gap: 10px;
    align-items: center;
    padding: 4px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.domain-row:last-child { border-bottom: 0; }
.domain-row:hover:not(.header) { background: #fbfdff; }
.domain-row.header {
    background: #f9fbfe;
    font-size: 11px;
    font-weight: 800;
    color: #8490a5;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.domain-row small { display: block; color: var(--muted); margin-top: 1px; word-break: break-word; font-size: 12px; }
.reports-table .domain-row { grid-template-columns: .7fr 1fr .35fr 2.2fr; }
.policy-chip {
    background: #f4f7fb;
    color: #465065;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    width: fit-content;
    border: 1px solid var(--line);
}
.empty-state {
    padding: 22px;
    text-align: center;
    color: var(--muted);
    background: #fbfdff;
    border: 1px dashed var(--line-dark);
    border-radius: 6px;
}

.domain-hero {
    padding: 15px 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.domain-hero h2 { font-size: 20px; margin-bottom: 3px; }
.domain-hero p { margin-bottom: 0; }
.hero-status { display: flex; align-items: center; gap: 10px; }
.score-ring {
    min-width: 82px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #fff;
    padding: 0 10px;
}
.score-ring b { font-size: 14px; line-height: 1; }
.score-ring span { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

.tabs { display: grid; gap: 0; }
.tab-buttons {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.tab-button {
    text-decoration: none;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #697386;
    padding: 9px 12px 8px;
    font-weight: 750;
    cursor: pointer;
}
.tab-button:hover { color: var(--headline); }
.tab-button.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.record-cards { display: grid; gap: 12px; }
.record-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: #fff;
}
.record-top { display: flex; gap: 8px; align-items: center; margin-bottom: 9px; color: var(--muted); font-weight: 650; }
.record-grid { display: grid; grid-template-columns: 90px minmax(150px, .7fr) minmax(280px, 1.8fr); gap: 8px; align-items: stretch; }
.record-grid label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.record-grid code {
    display: block;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 8px 9px;
    border-radius: 6px;
    min-height: 34px;
    overflow-wrap: anywhere;
    font-size: 12px;
}
.copy-button {
    margin-top: 6px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    padding: 5px 9px;
    background: #fff;
    color: #465065;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}
.copy-button:hover { background: #f8fbff; }

.check-list { display: grid; gap: 9px; }
.check-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}
.check-row.pass { border-color: #b7ecd8; }
.check-row.warn, .check-row.missing { border-color: #f8e5a8; }
.check-row.fail { border-color: #ffd0d0; }
.check-row small { display: block; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.check-observed { display: grid; justify-items: start; gap: 6px; }
.check-observed code {
    padding: 6px 8px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 100%;
    overflow-wrap: anywhere;
    font-size: 12px;
}
.check-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--muted); margin-right: 7px; }
.check-row.pass .check-dot { background: var(--good); }
.check-row.warn .check-dot, .check-row.missing .check-dot { background: var(--warn); }
.check-row.fail .check-dot { background: var(--bad); }

.policy-form fieldset {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 13px;
    margin: 0 0 11px;
    background: #fff;
}
.policy-form legend { font-weight: 800; color: #334155; padding: 0 6px; font-size: 12px; }
.policy-preview {
    background: #172033;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 6px;
    overflow: auto;
    white-space: pre-wrap;
    font-size: 12px;
}
.panel-grid { display: grid; gap: 14px; }
.panel-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.caution-panel { background: #fffaf0; border-color: #f8e5a8; }
.path-card { display: grid; gap: 5px; margin-bottom: 10px; }
.timeline { display: grid; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 12px 1fr; gap: 9px; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 6px; }
.timeline-item small { display: block; color: var(--muted); margin: 2px 0; }
.timeline-item pre { background: #f8fafc; border: 1px solid var(--line); border-radius: 6px; padding: 8px; white-space: pre-wrap; font-size: 12px; }
.flash { margin-bottom: 12px; padding: 10px 12px; border-radius: 6px; font-weight: 700; }
.flash.success { color: var(--good); background: var(--good-bg); border: 1px solid #b7ecd8; }
.flash.error { color: var(--bad); background: var(--bad-bg); border: 1px solid #ffd0d0; }
.inline-form { margin: 0; }
.narrow-panel { max-width: 420px; }
.error-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.boot-error { max-width: 720px; width: 100%; }

@media (max-width: 1120px) {
    :root { --side-width: 220px; }
    .stats-grid, .panel-grid.two, .wizard-layout, .dashboard-grid { grid-template-columns: 1fr; }
    .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .top-right a:not(.org-pill) { display: none; }
}
@media (max-width: 820px) {
    :root { --side-width: 0px; }
    .sub-nav {
        padding: 0 10px;
        gap: 8px;
    }
    .mobile-menu-toggle {
        display: inline-grid;
        width: 40px;
        height: 40px;
        place-items: center;
        flex: 0 0 40px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
    }
    .mobile-menu-toggle .material-symbols-outlined,
    .mobile-menu-close .material-symbols-outlined {
        font-size: 24px;
    }
    .sidebar {
        display: flex;
        top: 0;
        width: min(86vw, 300px);
        height: 100vh;
        height: 100dvh;
        z-index: 130;
        transform: translateX(-102%);
        transition: transform .2s ease;
        box-shadow: 12px 0 32px rgba(15, 23, 42, .18);
        will-change: transform;
    }
    .sidebar.is-open {
        transform: translateX(0);
    }
    .sidebar-mobile-header {
        display: flex;
        min-height: var(--sub-height);
        padding: 0 10px 0 18px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--line);
        color: var(--headline);
        font-weight: 800;
    }
    .mobile-menu-close {
        display: inline-grid;
        width: 40px;
        height: 40px;
        place-items: center;
        border-radius: 8px;
    }
    .mobile-menu-close:hover {
        background: var(--soft-blue);
    }
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 120;
        border: 0;
        padding: 0;
        background: rgba(15, 23, 42, .46);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
    }
    .sidebar-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.mobile-menu-open {
        overflow: hidden;
    }
    .page-container { margin-left: 0; width: 100%; }
    .body-container { width: 100%; padding: 16px; }
    .brand-wordmark, .plan-label, .usage-widget div, .org-pill { display: none; }
    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        margin-right: 0;
    }
    .brand-copy strong { font-size: .94rem; }
    .brand-copy span { font-size: .62rem; }
    .usage-widget {
        margin-left: auto;
        padding: 0 6px 0 10px;
        border-left: 0;
        background: transparent;
    }
    .usage-donut { width: 32px; height: 32px; }
    .top-left { gap: 8px; }
    .page-title-row, .hero-card, .domain-hero, .panel-heading, .card-header { flex-direction: column; align-items: flex-start; }
    .stats-grid, .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
    .domain-row, .reports-table .domain-row { grid-template-columns: 1fr; }
    .domain-row.header { display: none; }
    .record-grid, .check-row { grid-template-columns: 1fr; }
}

.operator-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.context-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
}
.context-card.accent {
    border-color: #b7ecd8;
    background: linear-gradient(180deg, #ffffff 0%, #f2fff9 100%);
}
.context-card b {
    color: var(--headline);
    font-size: 15px;
}
.context-card small {
    color: var(--muted);
    line-height: 1.4;
}
.context-label {
    color: var(--lighter);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.info-panel {
    background: #f8fbff;
    border-color: #dbeafe;
}

@media (max-width: 1120px) {
    .operator-context { grid-template-columns: 1fr; }
}

.inline-code {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-strong);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    overflow-x: auto;
}

.small-table .domain-row {
    grid-template-columns: minmax(160px, 1fr) minmax(130px, 1fr) minmax(60px, .5fr) minmax(60px, .5fr) minmax(60px, .5fr);
}

.domain-row.two-col {
    grid-template-columns: minmax(240px, 1fr) minmax(240px, 1.5fr);
}

.badge.bad {
    color: var(--bad);
    background: var(--bad-bg);
    border-color: #ffd0d0;
}

.domain-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

/* Policy console refinements */
.policy-console-form {
    padding-bottom: 0;
}
.policy-heading {
    margin-bottom: 14px;
}
.policy-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    margin-bottom: 14px;
}
.policy-section h3 {
    font-size: 16px;
    margin: 0 0 3px;
    color: var(--headline);
}
.policy-section h4 {
    font-size: 14px;
    margin: 0 0 4px;
    color: var(--headline);
}
.policy-section p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}
.section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.status-text {
    white-space: nowrap;
    font-size: 12px;
    color: var(--muted);
}
.status-text b { color: var(--good); }
.policy-choice-grid {
    background: #f6f7fb;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.policy-choice-card {
    position: relative;
    min-height: 132px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    padding: 18px 18px 16px;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    cursor: pointer;
    gap: 7px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.policy-choice-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.policy-choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.policy-choice-card.selected {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(51, 102, 255, .12);
}
.choice-check {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #c9d1e4;
    color: #fff;
    font-weight: 900;
    font-size: 12px;
}
.policy-choice-card.selected .choice-check { background: var(--good); }
.choice-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    margin-top: 2px;
}
.choice-icon::before {
    content: '';
    width: 34px;
    height: 34px;
    display: block;
    background: currentColor;
    opacity: .95;
    clip-path: polygon(50% 0%, 84% 13%, 84% 49%, 50% 100%, 16% 49%, 16% 13%);
}
.choice-icon.lock::before {
    clip-path: polygon(28% 43%, 28% 35%, 28% 22%, 35% 9%, 50% 5%, 65% 9%, 72% 22%, 72% 43%, 82% 43%, 82% 92%, 18% 92%, 18% 43%);
}
.policy-choice-card.danger .choice-icon { color: #dc4747; }
.policy-choice-card.warning .choice-icon { color: #ffab24; }
.policy-choice-card.success .choice-icon { color: #50c0a0; }
.policy-choice-card.neutral .choice-icon { color: #a6adbb; }
.policy-choice-card b {
    font-size: 16px;
    color: #3d4455;
}
.policy-choice-card small {
    color: #516079;
    line-height: 1.35;
    max-width: 420px;
}
.settings-block {
    padding-top: 14px;
    margin-top: 15px;
    display: grid;
    gap: 12px;
}
.split-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.switch-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    white-space: nowrap;
}
.switch-row input, .checkbox-list input { width: auto; min-height: 0; }
.switch-row span { font-size: 12px; font-weight: 800; color: var(--headline); }
.checkbox-list {
    display: grid;
    gap: 9px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}
.checkbox-list label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #45546d;
    font-weight: 650;
}
.checkbox-list label span { font-size: 12px; line-height: 1.4; color: #45546d; }
label small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: 11px;
    line-height: 1.4;
}
.wide-input { max-width: 720px; }
.mx-detected {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: 6px;
    background: var(--good-bg);
    color: #1b7058;
    border: 1px solid #b7ecd8;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.mx-detected.warn {
    background: var(--warn-bg);
    color: var(--warn);
    border-color: #f8e5a8;
}
.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -14px -14px;
    padding: 10px 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: rgba(255,255,255,.95);
    border-top: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    backdrop-filter: blur(6px);
}
@media (max-width: 1120px) {
    .policy-choice-grid { grid-template-columns: 1fr; }
    .section-title-row, .split-title { flex-direction: column; align-items: flex-start; }
    .status-text { white-space: normal; }
}

.muted-small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 8px;
}
.policy-choice-card input:focus-visible + .choice-check {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.policy-choice-card.selected.danger {
    border-color: #dc4747;
    box-shadow: 0 0 0 2px rgba(220, 71, 71, .12);
}
.policy-choice-card.selected.warning {
    border-color: #ffab24;
    box-shadow: 0 0 0 2px rgba(255, 171, 36, .18);
}
.policy-choice-card.selected.success {
    border-color: #3366ff;
    box-shadow: 0 0 0 2px rgba(51, 102, 255, .14);
}

/* MTA-STS certificate hosting */
.mta-hosting-panel { margin-top: 16px; }
.certbot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.certbot-instructions { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.certbot-instructions h3 { margin: 0 0 6px; font-size: 15px; color: var(--headline); }
.command-list { display: grid; gap: 10px; margin-top: 12px; }
.command-list div { display: grid; gap: 5px; }
.command-list b { color: var(--headline); font-size: 13px; }
.command-list code { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; color: #172554; overflow-x: auto; white-space: nowrap; }
.command-block { display: block; width: 100%; max-width: 100%; box-sizing: border-box; margin: 12px 0 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: #0f172a; color: #e2e8f0; overflow-x: auto; overflow-y: hidden; white-space: pre; font-size: 12px; line-height: 1.55; }
.command-block code { display: block; min-width: 100%; width: max-content; color: inherit; font-family: var(--mono); white-space: pre; }
.hosting-note { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
@media (max-width: 980px) { .certbot-grid { grid-template-columns: 1fr; } }

/* Managed Domains portfolio table */
.managed-domains-panel .panel-heading p { max-width: 720px; }
.managed-domain-table .managed-domain-row,
.managed-domain-table .domain-row.header {
    grid-template-columns: minmax(220px, 1.55fr) minmax(92px, .55fr) minmax(78px, .42fr) minmax(150px, .88fr) minmax(150px, .86fr) minmax(150px, .86fr) minmax(120px, .65fr) minmax(110px, .58fr);
    gap: 0;
}
.managed-domain-table .domain-row {
    padding: 0;
}
.managed-domain-table .domain-row > span {
    min-height: 58px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--line);
}
.managed-domain-table .domain-row > span:last-child { border-right: 0; }
.managed-domain-table .domain-row.header > span {
    min-height: 40px;
    align-items: center;
}
.domain-cell {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center;
    gap: 3px;
}
.domain-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.domain-name-link {
    color: var(--blue);
    text-decoration: none;
}
.domain-name-link:hover { text-decoration: underline; }
.domain-warning {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #d9484d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}
.policy-inline {
    gap: 6px;
    color: var(--headline);
    font-weight: 650;
}
.shield-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border: 1.5px solid var(--good);
    border-radius: 6px;
    color: var(--good);
    font-size: 14px;
    line-height: 1;
}
.numeric-cell {
    justify-content: flex-end;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 15px;
    color: var(--headline);
}
.rate-cell {
    display: grid;
    gap: 8px;
    width: 100%;
}
.rate-number {
    font-size: 12px;
    color: var(--headline);
    font-variant-numeric: tabular-nums;
}
.rate-track {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: #e8ebf2;
    overflow: hidden;
    width: 100%;
}
.rate-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--good);
}
.rate-cell.warn .rate-track span { background: var(--warn); }
.rate-cell.bad .rate-track span { background: var(--bad); }
.rate-cell.empty .rate-track span { background: transparent; }
.table-status {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    color: var(--headline);
    min-width: 0;
}
.table-status b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.2;
}
.table-status small {
    color: var(--muted);
    font-size: 11px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.table-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c5ccdc;
}
.table-status.good .status-dot { background: var(--good); }
.table-status.warn .status-dot { background: var(--warn); }
.table-status.bad .status-dot { background: var(--bad); }
.table-status.neutral .status-dot { background: #c5ccdc; }

@media (max-width: 1180px) {
    .managed-domain-table .managed-domain-row,
    .managed-domain-table .domain-row.header {
        grid-template-columns: minmax(220px, 1.4fr) minmax(90px, .6fr) minmax(72px, .45fr) minmax(132px, .75fr) minmax(132px, .75fr) minmax(132px, .75fr) minmax(110px, .62fr) minmax(100px, .55fr);
    }
    .managed-domain-table { overflow-x: auto; }
    .managed-domain-table .domain-row { min-width: 1120px; }
}


/* Material Symbols integration */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.domain-warning {
    color: var(--bad);
    gap: 3px;
}
.domain-warning-icon {
    font-size: 19px;
    color: var(--bad);
    vertical-align: middle;
}

.policy-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--headline);
    font-weight: 650;
}
.policy-inline-icon {
    font-size: 23px;
}
.policy-inline.success .policy-inline-icon { color: var(--good); }
.policy-inline.warning .policy-inline-icon { color: #d69612; }
.policy-inline.danger .policy-inline-icon { color: var(--bad); }

.choice-check.material-symbols-outlined {
    background: transparent;
    color: #bac3d4;
    font-size: 21px;
    width: 22px;
    height: 22px;
    font-weight: normal;
}
.policy-choice-card.selected .choice-check.material-symbols-outlined {
    background: transparent;
    color: var(--good);
}
.choice-icon.material-symbols-outlined {
    width: 46px;
    height: 46px;
    margin-top: 0;
    font-size: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}
.choice-icon.material-symbols-outlined::before {
    content: none !important;
    display: none !important;
}
.choice-icon.lock.material-symbols-outlined::before {
    content: none !important;
    display: none !important;
}
.policy-choice-card.danger .choice-icon.material-symbols-outlined { color: var(--bad); }
.policy-choice-card.warning .choice-icon.material-symbols-outlined { color: #ffab24; }
.policy-choice-card.success .choice-icon.material-symbols-outlined { color: var(--good); }
.policy-choice-card.neutral .choice-icon.material-symbols-outlined { color: #a6adbb; }



/* Icon-only Managed Domains columns. */
.icon-only-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.table-symbol.material-symbols-outlined {
    font-size: 25px;
    line-height: 1;
    cursor: help;
}
.table-symbol.success { color: var(--good); }
.table-symbol.warning { color: #d69612; }
.table-symbol.danger { color: var(--bad); }
.table-symbol.neutral { color: #a6adbb; }

/* Layout containment for long operational command blocks. */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.page-container,
.body-container,
.panel,
.tab-panel,
.mta-hosting-panel,
.certbot-instructions,
.certbot-grid,
.certbot-grid > *,
.path-card,
.section-title-row,
.section-title-row > div {
    min-width: 0;
    max-width: 100%;
}
.certbot-instructions p,
.panel-heading p,
.muted-small {
    overflow-wrap: anywhere;
}
.command-block {
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}
.command-block code {
    display: block;
    width: max-content;
    min-width: 100%;
    max-width: none;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
}

/* 2026-07-09: keep form actions in normal document flow so later policy panels render cleanly. */
.policy-console-form .sticky-actions {
    position: static;
    z-index: auto;
    margin: 18px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}
.tab-panel > .mta-hosting-panel {
    margin-top: 14px;
    clear: both;
}

/* 2026-07-09: add breathing room between the policy form actions and the MTA-STS hosting panel. */
.policy-console-form .sticky-actions {
    margin: 20px 0 18px;
    padding: 16px 0 0;
}
.tab-panel > .mta-hosting-panel {
    margin-top: 18px;
}

/* 2026-07-09: top shell simplification and full-width content. */
:root { --top-height: 0px; }
.sub-nav { top: 0; }
.sidebar { top: var(--sub-height); }
.page-container { padding-top: var(--sub-height); margin-left: var(--side-width); width: calc(100% - var(--side-width)); }
.body-container { width: 100%; max-width: none; margin: 0; padding: 20px 18px 42px; }

/* 2026-07-09: dashboard layout focused on volume and report summaries. */
.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(320px, .95fr);
    gap: 18px;
    align-items: stretch;
}
.dashboard-main-card,
.dashboard-side-card,
.dashboard-table-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 18px;
    min-width: 0;
}
.dashboard-main-card { min-height: 510px; }
.dashboard-side-card { min-height: 510px; display: flex; flex-direction: column; }
.dashboard-card-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.dashboard-card-title-row h2,
.dashboard-side-card h2,
.dashboard-table-card h2 {
    font-size: 16px;
    margin: 0;
    color: var(--headline);
}
.chart-toggle {
    display: inline-flex;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    overflow: hidden;
    color: #8aa0c0;
    background: #fff;
}
.chart-toggle span {
    font-family: 'Material Symbols Outlined';
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 30px;
    font-size: 19px;
    border-left: 1px solid var(--line-dark);
}
.chart-toggle span:first-child { border-left: 0; }
.chart-toggle .active { color: var(--blue); background: #f5f8ff; }
.dashboard-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0 10px;
}
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: #8993ad;
    font-weight: 650;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-dot.compliant, .seg.compliant { background: #70c9aa; }
.legend-dot.non-compliant, .seg.non-compliant { background: #f2b642; }
.legend-dot.threat, .seg.threat { background: #dc6b78; }
.legend-dot.forwarded, .seg.forwarded { background: #c4cad9; }
.volume-label { margin-left: auto; font-size: 15px; color: #4b5563; white-space: nowrap; }
.volume-label b { margin-left: 12px; color: var(--headline); font-weight: 800; }
.stacked-chart {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 310px;
    margin-top: 4px;
}
.y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 10px 34px 0;
    color: #70809d;
    font-size: 12px;
    text-align: right;
}
.chart-plot {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--chart-days, 7), minmax(0, 1fr));
    gap: var(--chart-gap, 16px);
    align-items: end;
    min-height: 280px;
    padding: 10px 0 0;
    border-left: 1px solid var(--line);
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 55px, #edf1f7 56px);
}
.stacked-day {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 28px;
    align-items: end;
    justify-items: center;
}
.stacked-bar {
    width: var(--chart-bar-width, 40px);
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: flex-start;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}
.stacked-bar .seg { width: 100%; display: block; min-height: 0; }
.x-label { align-self: end; color: #70809d; font-size: 12px; white-space: nowrap; }
.x-label.is-hidden { visibility: hidden; }
.chart-waiting {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #8993ad;
    font-weight: 700;
    pointer-events: none;
}
.dashboard-date-range-form {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}
.dashboard-date-range-form label {
    display: grid;
    gap: 5px;
    min-width: 145px;
    margin: 0;
}
.dashboard-date-range-form label > span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}
.dashboard-date-range-form input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    padding: 0 10px;
    outline: 0;
    background: #fff;
    color: var(--headline);
    font-weight: 650;
}
.dashboard-side-card,
.dashboard-table-card { overflow: hidden; }
.dashboard-mini-table {
    margin-top: 14px;
    border-top: 1px solid var(--line);
}
.mini-table-head,
.mini-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #eef2f7;
}
.mini-table-head { color: var(--headline); font-size: 14px; }
.mini-table-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b5563; }
.mini-table-row b { color: var(--headline); font-variant-numeric: tabular-nums; }
.mini-table-empty {
    min-height: 110px;
    display: grid;
    place-items: center;
    color: #8993ad;
    font-weight: 700;
    text-align: center;
}
.dashboard-side-card .dashboard-mini-table .mini-table-row span {
    direction: rtl; text-align: left;
}
.go-link {
    margin-top: auto;
    align-self: flex-end;
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}
.geo-attribution { margin-top: 14px; color: #9aa3b6; font-size: 11px; }

/* 2026-07-09: flat Managed Domains page. */
.managed-domains-flat { min-width: 0; width: 100%; }
.flat-managed-domain-table {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    overflow-x: auto;
}
.flat-managed-domain-table .domain-row {
    background: #fff;
}
.flat-managed-domain-table .domain-row.header {
    background: #f5f7fb;
}

@media (max-width: 980px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-main-card, .dashboard-side-card { min-height: auto; }
}
@media (max-width: 760px) {
    .dashboard-card-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .dashboard-date-range-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
        width: 100%;
        margin-left: 0;
    }
    .dashboard-date-range-form label {
        min-width: 0;
        width: 100%;
    }
}
@media (max-width: 560px) {
    .dashboard-date-range-form { grid-template-columns: 1fr; }
    .dashboard-date-range-form .button { width: 100%; }
}

/* Report Intake unified table */
.report-intake-heading {
    align-items: flex-end;
    gap: 16px;
}
.report-intake-heading > div:first-child {
    min-width: 260px;
    flex: 1 1 auto;
}
.table-controls {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    min-width: min(760px, 100%);
}
.table-search-label {
    display: grid;
    gap: 5px;
    min-width: 440px;
    flex: 1 1 440px;
    margin: 0;
}
.table-search-label.small-control {
    min-width: 180px;
    flex: 0 0 180px;
}
.table-search-label span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}
.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}
.data-table th,
.data-table td {
    padding: 4px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.data-table th {
    background: #f8fafc;
    color: #59647a;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 24px;
}
.data-table th.sortable::after {
    content: 'unfold_more';
    font-family: 'Material Symbols Outlined';
    font-size: 16px;
    line-height: 1;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #a2abc0;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.data-table th.sortable[data-sort-direction="asc"]::after { content: 'keyboard_arrow_up'; color: var(--blue); }
.data-table th.sortable[data-sort-direction="desc"]::after { content: 'keyboard_arrow_down'; color: var(--blue); }
.data-table tbody tr:hover { background: #fbfdff; }
.data-table td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.data-table td code {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}
.report-intake-table {
    min-width: 1050px;
}
.report-intake-table th:nth-child(6),
.report-intake-table td:nth-child(6) { text-align: right; }
.table-empty-state {
    margin-top: 10px;
    padding: 18px;
    text-align: center;
    border: 1px dashed var(--line-dark);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--muted);
    font-weight: 700;
}
@media (max-width: 980px) {
    .report-intake-heading { align-items: flex-start; }
    .table-controls { justify-content: flex-start; min-width: 0; width: 100%; }
    .table-search-label,
    .table-search-label.small-control { min-width: 0; width: 100%; }
}

/* Material Symbols for left sidebar navigation. */
.nav-icon.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 18px;
    font-weight: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: #63718c;
}
.sidebar-link:hover .nav-icon.material-symbols-outlined {
    color: #2456ff;
}
.sidebar-link.active .nav-icon.material-symbols-outlined {
    color: #2456ff;
}
.sidebar-link.disabled .nav-icon.material-symbols-outlined {
    color: #a7b0c2;
}
.sidebar-footer .nav-icon.material-symbols-outlined {
    color: var(--good);
}

/* Compliance Report */
.compliance-report-heading {
    align-items: flex-end;
    gap: 18px;
}
.compliance-report-heading > div:first-child {
    min-width: 260px;
    flex: 1 1 auto;
}
.compliance-filter-form {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.compliance-filter-form label {
    display: grid;
    gap: 5px;
    margin: 0;
    min-width: 150px;
}
.compliance-filter-form label:nth-of-type(3) { min-width: 230px; }
.compliance-filter-form span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}
.compliance-filter-form input,
.compliance-filter-form select,
.table-search-label input,
.table-search-label select {
    height: 36px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    background: #fff;
    color: var(--headline);
    padding: 0 10px;
    font-weight: 650;
    outline: 0;
}
.compliance-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}
.compliance-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px 11px;
    border-bottom: 3px solid transparent;
    color: #445066;
    text-decoration: none;
    font-weight: 700;
}
.compliance-tab.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}
.compliance-tab b {
    min-width: 22px;
    height: 18px;
    border-radius: 4px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 0 5px;
}
.compliance-tab b.good { background: var(--good); }
.compliance-tab b.warn { background: #f2b642; }
.compliance-tab b.bad { background: var(--bad); }
.compliance-tab b.neutral { background: #aab2c3; }
.compliance-category-info {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin: 0 0 11px 2px;
    color: #8b97ad;
    font-size: 18px;
    line-height: 1;
    border-radius: 999px;
    vertical-align: middle;
}
.compliance-category-info:hover,
.compliance-category-info:focus-visible {
    color: var(--blue);
    background: rgba(47, 100, 255, .08);
}
.compliance-report-table {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.compliance-head,
.compliance-summary-row {
    display: grid;
    grid-template-columns: minmax(360px, 1.65fr) 120px minmax(210px, 1fr) minmax(210px, 1fr);
    gap: 0;
    min-width: 980px;
    align-items: center;
}
.compliance-head {
    background: #f5f7fb;
    color: #59647a;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}
.compliance-head span,
.compliance-summary-row > span {
    padding: 11px 13px;
    border-right: 1px solid var(--line);
    min-width: 0;
}
.compliance-head span:last-child,
.compliance-summary-row > span:last-child { border-right: 0; }
.compliance-summary-row.domain {
    background: #fff;
    font-weight: 750;
    color: var(--headline);
    border-bottom: 1px solid var(--line);
}
.compliance-source-group {
    border-bottom: 1px solid var(--line);
    margin: 0;
}
.compliance-source-group:last-child { border-bottom: 0; }
.compliance-source-group summary {
    list-style: none;
    cursor: pointer;
}
.compliance-source-group summary::-webkit-details-marker { display: none; }
.compliance-summary-row.source {
    background: #f7f9fd;
    color: #334155;
    font-weight: 700;
}
.summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.summary-label .material-symbols-outlined {
    font-size: 18px;
    color: var(--blue);
    flex: 0 0 auto;
}
.compliance-source-group:not([open]) .summary-label .summary-chevron { transform: rotate(-90deg); }
.summary-volume {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.rate-mini {
    display: grid;
    gap: 5px;
    min-width: 130px;
}
.rate-mini b {
    color: #445066;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.rate-mini > span {
    display: block;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8edf5;
}
.rate-mini i {
    display: block;
    height: 100%;
    background: #59c49c;
    border-radius: 999px;
}
.rate-mini.empty { color: var(--muted); font-weight: 650; }
.compliance-detail-scroll {
    border-top: 1px solid var(--line);
}
.compliance-detail-table {
    min-width: 1320px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.compliance-detail-table th,
.compliance-detail-table td {
    font-size: 12px;
    vertical-align: middle;
}
.compliance-detail-table th { background: #fbfcff; }
.compliance-detail-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.source-ip-cell {
    display: grid;
    line-height: normal;
}
.source-ip-cell b {
    color: var(--headline);
    font-weight: 700;
}
.source-ip-cell span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}
.source-ip-cell span img {
    margin-bottom: 2px;
}
.result-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #445066;
}
.result-dot i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    background: #aab2c3;
}
.result-dot.pass i { background: var(--good); }
.result-dot.fail i { background: var(--bad); }
.auth-result {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.auth-result.pass { color: var(--good); }
.auth-result.fail { color: var(--bad); }
.auth-result small { color: var(--muted); }
.selector-pill {
    display: inline-flex;
    margin-left: 4px;
    padding: 2px 5px;
    border-radius: 4px;
    background: #f1f5fb;
    color: #64748b;
    font-size: 11px;
    font-family: 'SF Mono', ui-monospace, monospace;
}
.reporter-cell {
    display: grid;
    gap: 3px;
}
.reporter-cell b {
    color: #445066;
    font-weight: 700;
}
.reporter-cell small {
    display: block;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.compliance-empty {
    margin-top: 12px;
}
@media (max-width: 980px) {
    .compliance-report-heading { align-items: flex-start; }
    .compliance-filter-form { justify-content: flex-start; width: 100%; }
    .compliance-filter-form label,
    .compliance-filter-form label:nth-of-type(3) { min-width: 0; width: 100%; }
}

/* 2026-07-10: dashboard compliance refinements. */
.dashboard-side-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.top-volume-filter select {
    min-width: 170px;
    height: 38px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    padding: 0 10px;
    background: #fff;
    color: var(--headline);
    font-weight: 650;
}
.country-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.country-flag {
    width: 22px;
    height: 12px;
    object-fit: cover;
    flex: 0 0 auto;
}
.domain-favicon {
    width: 16px;
    height: 16px;
}
.domain-favicon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 16px;
    line-height: 16px;
}

/* 2026-07-11: Failure Reports and TLS Reports. */
.report-page-panel { margin-bottom: 16px; }
.report-filter-form label:nth-of-type(3) { min-width: 240px; }
.report-chart-legend-row { padding-top: 4px; }
.report-bar-chart { min-height: 280px; }
.report-bar-chart .chart-plot { min-height: 245px; }
.report-summary-grid { margin-bottom: 16px; }
.compact-empty { min-height: 130px; }
.report-bar-list { display: grid; gap: 12px; padding-top: 10px; }
.report-bar-row { display: grid; gap: 6px; }
.report-bar-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #445066; font-weight: 650; }
.report-bar-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-bar-label b { color: var(--headline); font-variant-numeric: tabular-nums; }
.report-hbar { height: 8px; border-radius: 999px; overflow: hidden; background: #e8edf5; }
.report-hbar i { display: block; height: 100%; border-radius: 999px; background: #5d85ff; }
.failure-report-table { min-width: 1420px; }
.failure-report-table th:nth-child(2),
.failure-report-table td:nth-child(2) { min-width: 260px; }
.failure-report-table th:nth-child(5),
.failure-report-table td:nth-child(5),
.failure-report-table th:nth-child(6),
.failure-report-table td:nth-child(6) { min-width: 190px; }
.failure-report-table td.num,
.tls-detail-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.url-list { display: grid; gap: 4px; }
.url-list a { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); text-decoration: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-list .material-symbols-outlined { font-size: 14px; }
.legend-dot.failure { background: var(--bad); }
.tls-policy-list { border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; background: #fff; }
.tls-policy-head,
.tls-policy-row { display: grid; grid-template-columns: minmax(260px, 1.4fr) minmax(160px, .8fr) minmax(140px, .7fr) minmax(140px, .7fr) minmax(140px, .7fr); min-width: 980px; align-items: center; }
.tls-policy-head { background: #f5f7fb; color: #59647a; font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.tls-policy-head span,
.tls-policy-row span { padding: 4px; border-right: 1px solid var(--line); min-width: 0; }
.tls-policy-head span:last-child,
.tls-policy-row span:last-child { border-right: 0; }
.tls-policy-card { border-bottom: 1px solid var(--line); }
.tls-policy-card:last-child { border-bottom: 0; }
.tls-policy-card summary { list-style: none; cursor: pointer; }
.tls-policy-card summary::-webkit-details-marker { display: none; }
.tls-policy-row { background: #fff; color: var(--headline); font-weight: 720; }
.tls-policy-row .material-symbols-outlined { color: var(--blue); font-size: 18px; vertical-align: middle; margin-right: 6px; }
.tls-policy-card:not([open]) .tls-policy-row .material-symbols-outlined { transform: rotate(-90deg); }
.tls-detail-scroll { border-top: 1px solid var(--line); }
.tls-detail-table { min-width: 1320px; border: 0; border-radius: 0; box-shadow: none; }
.tls-detail-table th { background: #fbfcff; }
.tls-detail-table th,
.tls-detail-table td { font-size: 12px; vertical-align: middle; }
@media (max-width: 980px) {
    .report-filter-form { justify-content: flex-start; width: 100%; }
    .report-filter-form label,
    .report-filter-form label:nth-of-type(3) { min-width: 0; width: 100%; }
}

/* Compliance report evidence drawer */
.compliance-evidence-trigger {
    cursor: pointer;
    transition: background .12s ease, box-shadow .12s ease;
}
.compliance-evidence-trigger:hover {
    background: #f8fbff;
    outline: none;
}
.compliance-evidence-trigger.is-open:hover,
.compliance-evidence-trigger.is-open {
    background: #eef5ff;
    box-shadow: inset 3px 0 0 var(--blue);
}
.compliance-evidence-templates { display: none !important; }
.compliance-evidence-backdrop {
    position: fixed;
    z-index: 80;
    background: rgba(15, 23, 42, .24);
    opacity: 0;
    transition: opacity .18s ease;
}
.compliance-evidence-backdrop.is-open { opacity: 1; }
.compliance-evidence-panel {
    position: fixed;
    top: calc(var(--top-height, 0px) + var(--sub-height, 48px));
    right: 0;
    z-index: 90;
    width: min(640px, calc(100vw - 42px));
    height: calc(100vh - (var(--top-height, 0px) + var(--sub-height, 48px)));
    background: #f8fbff;
    border-left: 1px solid #d8e2f0;
    box-shadow: -18px 0 42px rgba(15, 23, 42, .18);
    transform: translateX(100%);
    transition: transform .2s ease;
    display: flex;
    flex-direction: column;
}
.compliance-evidence-panel.is-open { transform: translateX(0); }
.evidence-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 15px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}
.evidence-panel-header h3 {
    margin: 0 0 5px;
    color: var(--headline);
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.evidence-panel-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.evidence-panel-close {
    border: 1px solid var(--line);
    background: #ffffff;
    color: #526078;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}
.evidence-panel-close:hover,
.evidence-panel-close:focus {
    color: var(--blue);
    border-color: #c7d2fe;
    outline: none;
}
.evidence-panel-close .material-symbols-outlined { font-size: 21px; }
.evidence-panel-body {
    overflow: auto;
    padding: 16px 18px 22px;
}
.compliance-evidence-drawer {
    display: grid;
    gap: 14px;
}
.evidence-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #ffffff;
}
.evidence-callout .material-symbols-outlined {
    color: var(--blue);
    font-size: 21px;
    margin-top: 1px;
}
.evidence-callout b {
    display: block;
    color: var(--headline);
    font-size: 13px;
    margin-bottom: 3px;
}
.evidence-callout small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.evidence-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.evidence-grid section {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px;
}
.evidence-grid h4 {
    margin: 0 0 9px;
    color: var(--headline);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.evidence-facts {
    margin: 0;
    display: grid;
    gap: 8px;
}
.evidence-facts div {
    display: grid;
    gap: 2px;
}
.evidence-facts dt {
    color: var(--lighter);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.evidence-facts dd {
    margin: 0;
    color: #334155;
    font-size: 12px;
    overflow-wrap: anywhere;
}
@media (max-width: 760px) {
    .compliance-evidence-panel {
        width: 100vw;
    }
    .evidence-panel-header {
        padding: 15px 16px 13px;
    }
    .evidence-panel-body {
        padding: 14px 14px 20px;
    }
}

/* 2026-07-11: compact SVG arc gauges for row summary metrics. */
.metric-arc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    min-width: 78px;
    height: 48px;
    vertical-align: middle;
}
.metric-arc svg {
    display: block;
    width: 78px;
    height: 48px;
    overflow: visible;
}
.metric-arc path {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
}
.metric-arc-track { stroke: #e5eaf2; }
.metric-arc-fill { stroke: var(--good); }
.metric-arc.single.warn .metric-arc-fill { stroke: var(--warn); }
.metric-arc.single.bad .metric-arc-fill { stroke: var(--bad); }
.metric-arc.single.empty .metric-arc-track { stroke: #edf1f7; }
.metric-arc text {
    font-family: var(--font);
    font-size: 16px;
    font-weight: normal;
    fill: var(--headline);
    font-variant-numeric: tabular-nums;
}
.metric-arc.single.empty text { fill: var(--muted); font-size: 14px; }
.metric-arc-segment.compliant { stroke: var(--good); }
.metric-arc-segment.non_compliant { stroke: var(--warn); }
.metric-arc-segment.threat_unknown { stroke: var(--bad); }
.metric-arc-segment.forwarded { stroke: #b9c1d1; }

.managed-domain-table .domain-row > span:has(.metric-arc),
.compliance-summary-row > span:has(.metric-arc) {
    justify-content: center;
}

/* 2026-07-11: metric arc column sizing. */
.managed-domain-table .managed-domain-row,
.managed-domain-table .domain-row.header {
    grid-template-columns: minmax(220px, 1.55fr) minmax(86px, .5fr) minmax(76px, .38fr) minmax(118px, .62fr) minmax(118px, .62fr) minmax(118px, .62fr) minmax(104px, .52fr) minmax(96px, .48fr);
}
.compliance-head,
.compliance-summary-row {
    grid-template-columns: minmax(360px, 1.65fr) 110px minmax(118px, .58fr) minmax(118px, .58fr) minmax(118px, .58fr);
    min-width: 1060px;
}

/* 2026-07-11: Compliance Explorer domain drill-down, branded tooltips, and arc refinements. */
.compliance-domain-group {
    border-bottom: 1px solid var(--line);
    margin: 0;
}
.compliance-domain-group:last-child { border-bottom: 0; }
.compliance-domain-group > summary {
    list-style: none;
    cursor: pointer;
}
.compliance-domain-group > summary::-webkit-details-marker { display: none; }
.compliance-domain-group.single-domain {
    border-bottom: 0;
}
.summary-label .summary-chevron {
    transition: transform .14s ease;
}
.compliance-domain-group:not([open]) > summary .summary-chevron,
.compliance-source-group:not([open]) > summary .summary-chevron {
    transform: rotate(-90deg);
}
.compliance-source-group:not([open]) .summary-label .material-symbols-outlined:not(.summary-chevron) {
    transform: none;
}
[data-tooltip] {
    outline: none;
}
.metric-arc[data-tooltip],
.table-symbol[data-tooltip],
.domain-warning[data-tooltip],
.country-flag[data-tooltip],
.stacked-day[data-tooltip],
.report-bar-row[data-tooltip],
.table-status[data-tooltip],
.usage-widget[data-tooltip],
.compliance-category-info[data-tooltip] {
    cursor: help;
}
[data-tooltip]:focus-visible {
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(47, 100, 255, .18);
}
.country-flag[data-tooltip]:focus-visible {
    border-radius: 2px;
}
.dmarc-tooltip {
    position: fixed;
    z-index: 260;
    max-width: 320px;
    padding: 10px 12px;
    border: 1px solid rgba(219, 232, 255, .18);
    border-radius: 10px;
    background: linear-gradient(180deg, #111c34 0%, #0f172a 100%);
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .28);
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-line;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease;
}
.dmarc-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.dmarc-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: #0f172a;
    transform: translateX(-50%) rotate(45deg);
}
.dmarc-tooltip.below::after {
    top: -5px;
    bottom: auto;
}

/* 2026-07-16: Compliance source IP blacklist enrichment. */
.source-ip-cell .blacklist-row {
    margin-top: 2px;
    gap: 0;
}
.blacklist-link {
    color: var(--bad);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.source-ip-cell .blacklist-link > span {
    color: inherit;
}
.blacklist-link-icon {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
}
.blacklist-link:hover,
.blacklist-link:focus-visible {
    color: var(--bad);
    text-decoration: underline;
}
.blacklist-link[data-tooltip] {
    cursor: help;
}

/* TLS-RPT policy detail states */
.tls-policy-detail-summary {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}
.tls-policy-detail-summary.success {
    background: var(--good-bg);
}
.tls-policy-detail-summary.warning {
    background: var(--warn-bg);
}
.tls-policy-detail-summary > .material-symbols-outlined {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 22px;
}
.tls-policy-detail-summary.success > .material-symbols-outlined {
    color: var(--good);
}
.tls-policy-detail-summary.warning > .material-symbols-outlined {
    color: var(--warn);
}
.tls-policy-detail-summary div {
    display: grid;
    gap: 3px;
}
.tls-policy-detail-summary b {
    color: var(--headline);
}
.tls-policy-detail-summary small {
    color: var(--muted);
    line-height: 1.45;
}
.tls-policy-detail-heading {
    padding: 12px 18px 10px;
    border-top: 1px solid var(--line);
    background: #fbfcff;
}
.tls-policy-detail-heading h3 {
    margin: 0 0 3px;
    font-size: 14px;
}
.tls-policy-detail-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

/* 2026-07-18: Dashboard country-volume world heatmap. */
.dashboard-country-map-card {
    min-height: 0;
}
.dashboard-map-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.dashboard-map-heading h2 {
    margin: 0;
    color: var(--headline);
    font-size: 16px;
}
.dashboard-map-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.country-map-shell {
    position: relative;
    margin-top: 12px;
}
.country-map-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 504;
    display: grid;
    place-items: center;
    overflow: visible;
    border-radius: 6px;
    background: #fbfcfe;
}
.country-map-loading,
.country-map-error {
    color: #8993ad;
    font-weight: 700;
    text-align: center;
    padding: 24px;
}
.country-map-svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.country-map-svg path.country-map-country {
    fill: #eef2f8;
    stroke: #ffffff;
    stroke-width: .8;
    vector-effect: non-scaling-stroke;
    cursor: default;
    transition: fill .14s ease, stroke .14s ease, filter .14s ease;
}
.country-map-svg path.country-map-country.heat-0 { fill: #eef2f8; }
.country-map-svg path.country-map-country.heat-1,
.country-map-legend .heat-1 { fill: #dbe5ff; background: #dbe5ff; }
.country-map-svg path.country-map-country.heat-2,
.country-map-legend .heat-2 { fill: #bdcefb; background: #bdcefb; }
.country-map-svg path.country-map-country.heat-3,
.country-map-legend .heat-3 { fill: #91acf5; background: #91acf5; }
.country-map-svg path.country-map-country.heat-4,
.country-map-legend .heat-4 { fill: #6488ef; background: #6488ef; }
.country-map-svg path.country-map-country.heat-5,
.country-map-legend .heat-5 { fill: #3567e8; background: #3567e8; }
.country-map-svg path.country-map-country:hover,
.country-map-svg path.country-map-country:focus-visible,
.country-map-svg path.country-map-country.is-ranking-active {
    stroke: #173f9f;
    stroke-width: 1.5;
    filter: brightness(.96);
    outline: none;
}
.country-map-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    margin-top: 8px;
    color: #6f7c95;
    font-size: 11px;
}
.country-map-legend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.country-map-legend i {
    width: 19px;
    height: 9px;
    display: inline-block;
    border-radius: 2px;
}
.country-map-unknown b {
    color: var(--headline);
}
.country-map-ranking {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.country-map-rank-item {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid #e7ecf4;
    border-radius: 6px;
    appearance: none;
    background: #fbfcff;
    color: #4b5563;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.country-map-rank-item:hover,
.country-map-rank-item:focus-visible,
.country-map-rank-item.is-active {
    border-color: #9ab5fa;
    background: #f2f6ff;
    box-shadow: 0 0 0 3px rgba(47, 100, 255, .12);
    outline: none;
}
.country-map-rank-item > small {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #edf2ff;
    color: var(--blue);
    font-weight: 800;
}
.country-map-rank-item .country-flag {
    width: 24px;
    height: 14px;
    border-radius: 2px;
}
.country-map-rank-name {
    min-width: 0;
    overflow: hidden;
    color: #4b5563;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.country-map-rank-item b {
    justify-self: end;
    color: var(--headline);
    font-variant-numeric: tabular-nums;
}
.country-map-attribution {
    margin-top: 10px;
    color: #9aa3b6;
    font-size: 10px;
}
.country-map-attribution a {
    color: inherit;
}
.country-map-empty {
    min-height: 54px;
}

@media (max-width: 1200px) {
    .country-map-ranking {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dashboard-country-map-card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .dashboard-map-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .dashboard-map-heading .volume-label {
        margin-left: 0;
    }
    .country-map-ranking {
        grid-template-columns: 1fr;
    }
    .country-map-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* 2026-07-18: Dedicated Geolocation Report. */
.geolocation-report-panel {
    display: grid;
    gap: 0;
}
.geolocation-report-heading h2 {
    margin: 0;
}
.geolocation-report-heading p {
    margin: 5px 0 0;
    color: var(--muted);
}
.geolocation-map-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
}
.geolocation-map-heading h3 {
    margin: 0;
    color: var(--headline);
    font-size: 16px;
}
.geolocation-top-locations {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.geolocation-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}
.geolocation-section-heading h3 {
    margin: 0;
    color: var(--headline);
    font-size: 15px;
}
.geolocation-section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.geolocation-location-table {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
}
.geolocation-location-row {
    min-width: 760px;
    width: 100%;
    display: grid;
    grid-template-columns: 64px minmax(280px, 1fr) 110px 110px 110px;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    appearance: none;
    background: #fff;
    color: #435069;
    font: inherit;
    text-align: left;
}
.geolocation-location-row:last-child {
    border-bottom: 0;
}
.geolocation-location-row.header {
    background: #f5f7fb;
    color: #59647a;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.geolocation-location-row > span {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-right: 1px solid var(--line);
}
.geolocation-location-row > span:last-child {
    border-right: 0;
}
.geolocation-location-row.is-map-linked {
    cursor: pointer;
    transition: background .14s ease, box-shadow .14s ease;
}
.geolocation-location-row.is-map-linked:hover,
.geolocation-location-row.is-map-linked:focus-visible,
.geolocation-location-row.is-map-linked.is-active {
    background: #f3f7ff;
    box-shadow: inset 3px 0 0 var(--blue);
    outline: none;
}
.geolocation-location-rank {
    justify-content: center;
    color: var(--blue);
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}
.geolocation-location-name {
    gap: 10px;
}
.geolocation-location-name .country-flag {
    width: 28px;
    height: 17px;
    flex: 0 0 auto;
    border-radius: 2px;
}
.geolocation-location-name > .material-symbols-outlined {
    color: #9aa3b6;
}
.geolocation-location-name > span {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.geolocation-location-name b {
    color: var(--headline);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.geolocation-location-name small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    white-space: normal;
}
.geolocation-location-row .num {
    justify-content: flex-end;
    color: var(--headline);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
    .geolocation-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .geolocation-tabs .compliance-tab {
        flex: 0 0 auto;
    }
    .geolocation-map-card {
        padding: 12px;
    }
}

@media (max-width: 640px) {
    .geolocation-map-heading {
        flex-direction: column;
    }
    .geolocation-map-heading .volume-label {
        margin-left: 0;
    }
}
.country-map-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}
.country-map-footer .country-map-attribution {
    margin-top: 0;
}
@media (max-width: 640px) {
    .country-map-footer {
        align-items: flex-start;
        flex-direction: column-reverse;
    }
}

/* 2026-07-18: Geolocation multi-classification number map. */
.geolocation-report-panel,
.geolocation-map-card,
.geolocation-number-map,
.geolocation-number-map .country-map-stage {
    min-width: 0;
    max-width: 100%;
}
.geolocation-map-card {
    overflow: hidden;
}
.geolocation-toggle {
    opacity: .62;
    transition: opacity .14s ease, color .14s ease, border-color .14s ease, background .14s ease;
}
.geolocation-toggle:hover,
.geolocation-toggle:focus-visible {
    opacity: 1;
}
.geolocation-toggle.active {
    opacity: 1;
    background: #fff;
}
.geolocation-toggle.bucket-compliant.active {
    color: var(--good);
    border-bottom-color: var(--good);
}
.geolocation-toggle.bucket-non_compliant.active {
    color: var(--warn);
    border-bottom-color: var(--warn);
}
.geolocation-toggle.bucket-threat_unknown.active {
    color: var(--bad);
    border-bottom-color: var(--bad);
}
.geolocation-toggle.bucket-forwarded.active {
    color: #7b8497;
    border-bottom-color: #9aa3b6;
}
.country-map-svg-markers path.category-map-country {
    fill: #f4f6fa;
    stroke: #cfd6e3;
    stroke-width: .7;
}
.country-map-svg-markers path.category-map-country:hover,
.country-map-svg-markers path.category-map-country:focus-visible,
.country-map-svg-markers path.category-map-country.is-ranking-active,
.country-map-svg-markers path.category-map-country.is-marker-active {
    fill: #e8eefb;
    stroke: #315bc7;
    stroke-width: 1.4;
    filter: none;
}
.country-map-marker-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.country-map-number-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    max-width: 58px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    outline: none;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, .28));
}
.country-map-number-marker:hover,
.country-map-number-marker:focus-visible,
.country-map-number-marker.is-active,
.country-map-number-marker.is-ranking-active {
    z-index: 5;
    transform: translate(-50%, -50%) scale(1.08);
}
.country-map-number-marker:focus-visible {
    border-radius: 5px;
    box-shadow: 0 0 0 3px rgba(51, 102, 255, .24);
}
.country-map-number-badge {
    min-width: 18px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    padding: 0 4px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 5px;
    color: #fff;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.country-map-number-badge.bucket-compliant { background: var(--good); }
.country-map-number-badge.bucket-non_compliant { background: #d8a01d; }
.country-map-number-badge.bucket-threat_unknown { background: var(--bad); }
.country-map-number-badge.bucket-forwarded { background: #929bad; }
.geolocation-map-meta:empty {
    display: none;
}
.geolocation-top-box-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    margin-top: 18px;
}
.geolocation-top-box {
    min-width: 0;
    min-height: 228px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-top-width: 3px;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.geolocation-top-box.bucket-compliant { border-top-color: var(--good); }
.geolocation-top-box.bucket-non_compliant { border-top-color: var(--warn); }
.geolocation-top-box.bucket-threat_unknown { border-top-color: var(--bad); }
.geolocation-top-box.bucket-forwarded { border-top-color: #929bad; }
.geolocation-top-box-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    background: #f8faff;
}
.geolocation-top-box-heading h3 {
    margin: 0;
    color: var(--headline);
    font-size: 13px;
}
.geolocation-top-box-heading > b {
    min-width: 24px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 5px;
    color: #fff;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.bucket-compliant .geolocation-top-box-heading > b { background: var(--good); }
.bucket-non_compliant .geolocation-top-box-heading > b { background: var(--warn); }
.bucket-threat_unknown .geolocation-top-box-heading > b { background: var(--bad); }
.bucket-forwarded .geolocation-top-box-heading > b { background: #929bad; }
.geolocation-top-box-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.geolocation-top-box-list li + li {
    border-top: 1px solid #edf1f6;
}
.geolocation-top-box-row {
    width: 100%;
    min-width: 0;
    min-height: 37px;
    display: grid;
    grid-template-columns: 18px 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 0;
    appearance: none;
    background: #fff;
    color: #4b5563;
    font: inherit;
    text-align: left;
}
button.geolocation-top-box-row {
    cursor: pointer;
}
button.geolocation-top-box-row:hover,
button.geolocation-top-box-row:focus-visible,
button.geolocation-top-box-row.is-active {
    background: #f2f6ff;
    box-shadow: inset 3px 0 0 var(--blue);
    outline: none;
}
.geolocation-top-box-row > small:first-child {
    color: #8a94a8;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}
.geolocation-top-box-row .country-flag {
    width: 24px;
    height: 14px;
    border-radius: 2px;
}
.geolocation-top-box-row > .material-symbols-outlined {
    color: #9aa3b6;
    font-size: 18px;
}
.geolocation-top-box-country {
    min-width: 0;
    overflow: hidden;
    color: var(--headline);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.geolocation-top-box-value {
    display: grid;
    justify-items: end;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.geolocation-top-box-value b {
    color: var(--headline);
    font-size: 11px;
}
.geolocation-top-box-value small {
    color: var(--muted);
    font-size: 9px;
}
.geolocation-top-box-empty {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1180px) {
    .geolocation-top-box-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .geolocation-report-panel {
        padding: 12px;
    }
    .geolocation-filter-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .geolocation-filter-form label,
    .geolocation-filter-form label:nth-of-type(3) {
        width: auto;
        min-width: 0;
    }
    .geolocation-filter-form label:nth-of-type(3),
    .geolocation-filter-form .button {
        grid-column: 1 / -1;
    }
    .geolocation-filter-form .button {
        width: 100%;
    }
    .geolocation-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding-bottom: 10px;
        overflow: visible;
    }
    .geolocation-tabs .compliance-tab {
        min-width: 0;
        justify-content: space-between;
        padding: 9px 10px;
        border: 1px solid var(--line);
        border-bottom-width: 3px;
        border-radius: 7px;
        background: #f7f9fd;
    }
    .geolocation-tabs .compliance-category-info {
        position: absolute;
        right: 18px;
        margin-top: -34px;
    }
    .geolocation-map-card {
        padding: 10px;
    }
    .geolocation-number-map {
        margin-inline: -2px;
    }
    .country-map-number-marker {
        max-width: 48px;
        gap: 1px;
    }
    .country-map-number-badge {
        min-width: 16px;
        height: 15px;
        padding: 0 3px;
        font-size: 8px;
    }
}

@media (max-width: 640px) {
    .geolocation-report-panel {
        padding: 10px;
        border-radius: 0;
    }
    .geolocation-filter-form {
        grid-template-columns: 1fr;
    }
    .geolocation-filter-form label:nth-of-type(3),
    .geolocation-filter-form .button {
        grid-column: auto;
    }
    .geolocation-tabs {
        grid-template-columns: 1fr;
    }
    .geolocation-tabs .compliance-category-info {
        position: static;
        justify-self: end;
        margin: 0;
    }
    .geolocation-map-heading {
        gap: 8px;
    }
    .geolocation-map-heading h3 {
        font-size: 14px;
    }
    .geolocation-map-heading p {
        font-size: 11px;
    }
    .country-map-stage {
        border-radius: 4px;
    }
    .country-map-number-marker {
        max-width: 42px;
    }
    .country-map-number-badge {
        min-width: 14px;
        height: 14px;
        padding: 0 2px;
        border-radius: 4px;
        font-size: 7px;
    }
    .geolocation-top-box-grid {
        grid-template-columns: 1fr;
    }
    .geolocation-top-box {
        min-height: 0;
    }
}

/* 2026-07-19: authentication, account context, sessions, and administration. */
.sub-nav-account-tools {
    margin-left: auto;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.account-context-form {
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
}
.account-context-form label,
.account-context-label {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.account-context-form label > span,
.account-context-label > span {
    color: var(--lighter);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.account-context-form select {
    width: min(230px, 24vw);
    min-width: 150px;
    height: 34px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--line-dark);
    border-radius: 7px;
    background-color: #fff;
    color: var(--headline);
    font-weight: 700;
}
.account-context-label {
    max-width: 260px;
    padding: 0 10px;
}
.account-context-label b {
    min-width: 0;
    overflow: hidden;
    color: var(--headline);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-menu {
    position: relative;
    height: 100%;
}
.user-menu > summary {
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 8px;
    border-left: 1px solid var(--line);
    color: var(--headline);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover,
.user-menu[open] > summary { background: #f6f8fc; }
.user-menu > summary:focus-visible {
    outline: 3px solid rgba(51, 102, 255, .24);
    outline-offset: -3px;
}
.user-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .03em;
}
.user-menu-copy {
    min-width: 0;
    max-width: 190px;
    display: grid;
    line-height: 1.15;
}
.user-menu-copy b,
.user-menu-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-menu-copy b { font-size: 11px; }
.user-menu-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.user-menu > summary > .material-symbols-outlined { color: var(--lighter); font-size: 18px; }
.user-menu-popover {
    position: absolute;
    z-index: 180;
    top: calc(100% + 7px);
    right: 8px;
    width: 220px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .18);
}
.user-menu-popover a,
.user-menu-popover button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #374151;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.user-menu-popover a:hover,
.user-menu-popover button:hover,
.user-menu-popover a:focus-visible,
.user-menu-popover button:focus-visible {
    background: var(--soft-blue);
    color: var(--blue-dark);
    outline: none;
}
.user-menu-popover .material-symbols-outlined { font-size: 18px; }
.user-menu-popover form { margin: 0; border-top: 1px solid var(--line); padding-top: 5px; margin-top: 5px; }

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 12%, rgba(51, 102, 255, .12), transparent 34%),
        linear-gradient(145deg, #eef3fb 0%, #f8fafc 58%, #eef7f4 100%);
}
.auth-shell {
    width: min(920px, 100%);
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(360px, 1.2fr);
    overflow: hidden;
    border: 1px solid rgba(214, 222, 234, .9);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
}
.auth-brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 42px;
    background: linear-gradient(155deg, #17233a 0%, #243552 100%);
    color: #fff;
    text-align: center;
}
.auth-brand-panel img {
    width: 128px;
    height: 128px;
    border: 5px solid rgba(255, 255, 255, .13);
    border-radius: 32px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .25);
}
.auth-brand-panel div { display: grid; gap: 5px; }
.auth-brand-panel strong { font-size: 21px; }
.auth-brand-panel span { color: #b8c6dd; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
}
.auth-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 24px;
}
.auth-card-heading > .material-symbols-outlined {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 10px;
    background: var(--soft-blue);
    color: var(--blue);
    font-size: 24px;
}
.auth-card-heading h1 { margin: 0; color: var(--headline); font-size: 24px; }
.auth-card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 6px; }
.auth-form label > span { color: #465167; font-size: 11px; font-weight: 800; }
.auth-form label > small { color: var(--muted); font-size: 10px; }
.auth-form input {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 1px solid var(--line-dark);
    border-radius: 7px;
    padding: 0 12px;
    background: #fff;
}
.auth-form input:focus { border-color: var(--blue); outline: 3px solid rgba(51, 102, 255, .12); }
.auth-form .button { min-height: 42px; justify-content: center; }
.password-panel { max-width: 620px; }
.auth-profile-grid { align-items: start; }
.session-list { display: grid; }
.session-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.session-row:first-child { border-top: 0; }
.session-row > .material-symbols-outlined {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f1f4f9;
    color: var(--muted);
}
.session-row.current > .material-symbols-outlined { background: var(--good-bg); color: var(--good); }
.session-row > div { min-width: 0; display: grid; gap: 2px; }
.session-row small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.session-agent { color: var(--lighter) !important; }

.admin-create-panel { margin-bottom: 14px; }
.inline-admin-form,
.admin-user-form,
.inline-account-assignment,
.admin-user-actions {
    display: flex;
    align-items: end;
    gap: 10px;
}
.inline-admin-form { flex-wrap: wrap; }
.inline-admin-form label,
.admin-user-form label { min-width: 0; display: grid; gap: 5px; }
.inline-admin-form label { flex: 1 1 260px; }
.inline-admin-form label > span,
.admin-user-form label > span { color: #526077; font-size: 10px; font-weight: 800; }
.inline-admin-form input,
.admin-user-form input,
.admin-user-form select,
.inline-account-assignment select {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    background: #fff;
    padding: 0 10px;
}
.admin-user-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}
.admin-user-form .button { min-height: 38px; justify-content: center; }
.account-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.account-admin-card { min-width: 0; }
.account-admin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
}
.account-admin-stats span {
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10px;
}
.account-admin-stats b { color: var(--headline); font-size: 18px; }
.inline-account-assignment { align-items: center; }
.inline-account-assignment select { min-width: 170px; }
.admin-users-table td > small,
.admin-users-table td > b { display: block; }
.admin-users-table td > small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.admin-user-actions { align-items: center; flex-wrap: wrap; }
.admin-user-actions form { margin: 0; }
.onboard-account-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #cfe0ff;
    border-radius: 7px;
    background: var(--soft-blue);
}
.onboard-account-context span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.onboard-account-context b { color: var(--blue-dark); }
.domain-name-stack { min-width: 0; display: grid; gap: 2px; }
.domain-name-stack small { color: var(--muted); font-size: 9px; }
.read-only-notice { color: #675111; background: var(--warn-bg); border: 1px solid #f1d88f; }
.policy-readonly-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.policy-console-form.is-read-only .policy-readonly-fieldset:disabled { opacity: .84; }
.policy-console-form.is-read-only .sticky-actions { display: none; }
.policy-console-form.is-read-only input,
.policy-console-form.is-read-only select,
.policy-console-form.is-read-only textarea,
.policy-console-form.is-read-only .policy-choice-card { cursor: default; }

@media (max-width: 1120px) {
    .account-admin-grid { grid-template-columns: 1fr; }
    .admin-user-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .sub-nav-account-tools { gap: 4px; }
    .account-context-form label > span,
    .account-context-label > span,
    .user-menu-copy,
    .user-menu > summary > .material-symbols-outlined { display: none; }
    .account-context-form select {
        width: min(36vw, 160px);
        min-width: 105px;
        height: 34px;
        padding-left: 8px;
        font-size: 11px;
    }
    .account-context-label { max-width: 150px; padding: 0 5px; }
    .account-context-label b { font-size: 10px; }
    .user-menu > summary { padding: 0 6px; border-left: 0; }
    .user-menu-popover { right: 4px; }
    .auth-profile-grid { grid-template-columns: 1fr !important; }
    .admin-user-form { grid-template-columns: 1fr 1fr; }
    .inline-account-assignment { min-width: 230px; }
}

@media (max-width: 640px) {
    .sub-nav .brand-copy { display: none; }
    .auth-body { padding: 12px; }
    .auth-shell { min-height: 0; grid-template-columns: 1fr; }
    .auth-brand-panel { flex-direction: row; justify-content: flex-start; padding: 18px 22px; text-align: left; }
    .auth-brand-panel img { width: 56px; height: 56px; border-width: 2px; border-radius: 15px; }
    .auth-brand-panel strong { font-size: 16px; }
    .auth-brand-panel span { font-size: 9px; }
    .auth-card { padding: 30px 24px 34px; }
    .auth-card-heading h1 { font-size: 21px; }
    .session-row { grid-template-columns: 32px minmax(0, 1fr); }
    .session-row form { grid-column: 2; justify-self: start; }
    .admin-user-form { grid-template-columns: 1fr; }
    .inline-admin-form .button,
    .admin-user-form .button { width: 100%; }
    .account-admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-domain-table,
    .admin-users-table { min-width: 760px; }
}

@media (max-width: 380px) {
    .sub-nav .brand-mark { display: none; }
    .account-context-form select { width: 112px; }
    .auth-card { padding-inline: 18px; }
}

/* 2026-07-21: streamlined Policy tab with three independent save panels. */
.policy-box-list {
    display: grid;
    gap: 16px;
}
.policy-section-form {
    margin: 0;
}
.policy-box-heading {
    margin-bottom: 16px;
}
.policy-section-form .settings-block h3,
.mta-policy-preview-block h3 {
    margin: 0 0 4px;
    color: var(--headline);
    font-size: 14px;
}
.policy-section-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 14px;
}
.policy-section-form.is-read-only .policy-readonly-fieldset:disabled {
    opacity: .84;
}
.policy-section-form.is-read-only input,
.policy-section-form.is-read-only select,
.policy-section-form.is-read-only textarea,
.policy-section-form.is-read-only .policy-choice-card {
    cursor: default;
}
[data-spf-custom-value] {
    margin-top: 14px;
}
[data-spf-custom-value][hidden],
[data-spf-qualifier][hidden] {
    display: none !important;
}
.failure-recipient-row {
    margin-bottom: 14px;
}
.mta-policy-preview-card {
    min-width: 0;
}
.mta-policy-preview-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.4;
}
.mta-policy-preview-card .policy-preview {
    margin: 10px 0 0;
    max-height: none;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.mta-admin-setup-panel {
    margin-top: 18px;
}
.mta-admin-setup-panel > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}
@media (max-width: 680px) {
    .policy-section-actions .button {
        width: 100%;
    }
}

/* 2026-07-23: compact Policy help tooltips and DNS validation hosting layout. */
.policy-heading-line,
.policy-subheading-line,
.policy-field-label,
.policy-choice-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.policy-heading-line,
.policy-subheading-line {
    flex-wrap: wrap;
}
.policy-heading-line h2,
.policy-subheading-line h3 {
    margin: 0;
}
.policy-field-label {
    width: fit-content;
    max-width: 100%;
}
.policy-choice-label {
    justify-content: center;
}
.policy-help-icon.material-symbols-outlined,
.switch-row .policy-help-icon.material-symbols-outlined,
.policy-choice-label .policy-help-icon.material-symbols-outlined {
    color: var(--blue);
    cursor: help;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: normal;
    line-height: 1;
}
.policy-help-icon:hover,
.policy-help-icon:focus-visible {
    color: #214fd4;
}
.policy-choice-card {
    min-height: 132px;
}
[data-failure-options][hidden] {
    display: none !important;
}
.mta-hosting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mta-policy-preview-code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
@media (max-width: 980px) {
    .mta-hosting-grid {
        grid-template-columns: 1fr;
    }
}
