:root {
  color-scheme: light;
  --surface: #ffffff; --canvas: #faf9ff; --field: #f6f5fb; --ink: #17162a;
  --muted: #635e71; --quiet: #655f76; --line: #ecebf3; --accent: #5b4bd1;
  --accent-strong: #4a3cb8; --accent-bg: #eeebff; --brand-amber: #e8a24b; --teal: #2f7d55; --teal-bg: #e8f6ed;
  --warn: #a04c20; --warn-bg: #fff0e5; --red: #aa344b; --blue: #354fbb;
  --shadow: 0 12px 28px rgba(30,43,78,.055); --radius: 18px; --track: #e7eaf4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #1b192e; --canvas: #121121; --field: #161528; --ink: #eef2fd;
  --muted: #aebbd5; --quiet: #a6b5cf; --line: #352f49; --accent: #b0a1ff;
  --accent-strong: #5b4bd1; --accent-bg: #2c2553; --teal: #55d9b5; --teal-bg: #153932;
  --warn: #ffb584; --warn-bg: #492c26; --red: #ff92a2; --blue: #9eafff;
  --shadow: 0 12px 28px rgba(3,7,19,.24); --track: #2b3550;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 1rem; }
.account-page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: radial-gradient(ellipse at 50% 30%, var(--accent-bg), transparent 70%), var(--canvas);
}
.account-page main { max-width: 550px; }
.account-page .sign-in-main {
  align-self: stretch; display: grid; align-items: center; max-width: none; margin: 0;
  min-height: min(780px, 88svh); padding: clamp(40px, 7vw, 112px) clamp(24px, 7vw, 120px);
  color: #fff; background: #100c21 url("/sign-in-shield.webp") 60% center / cover no-repeat;
}
.sign-in-layout {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 510px);
  justify-content: space-between; gap: clamp(32px, 8vw, 120px); width: min(100%, 1320px); margin-inline: auto;
}
.account-page .sign-in-panel {
  align-self: center; width: 100%; padding: clamp(24px, 4vw, 42px);
  color: var(--ink); border-color: #e1ddef; box-shadow: 0 24px 72px rgba(6, 3, 20, .36);
}
.sign-in-panel .brand { margin-bottom: 10px; }
.sign-in-panel h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
.sign-in-panel .sign-in-notice {
  padding: 10px 12px; border-radius: 9px; color: var(--warn); background: var(--warn-bg);
}
.sign-in-panel .sign-in-signup {
  display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem;
}
.sign-in-signup a { color: var(--accent-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sign-in-story {
  align-self: end; justify-self: end; width: min(100%, 475px);
  margin-top: clamp(270px, 39svh, 430px); padding: 20px 24px;
  border: 1px solid #5c5077; border-radius: 12px; background: rgba(17, 12, 32, .88);
}
.sign-in-story h2 {
  margin: 0 0 8px; color: #fff; font-size: clamp(1.5rem, 2.65vw, 2.5rem);
  line-height: 1.08; letter-spacing: -.04em; font-weight: 750;
}
.sign-in-story p { margin: 0; color: #dfd8ec; }
:is(.sign-in-page, .public-account-page) .account-footer { background: #100c21; border-color: #352944; color: #d4cce2; }
:is(.sign-in-page, .public-account-page) .account-footer a { color: #d4cce2; }
:is(.sign-in-page, .public-account-page) .account-footer a:hover { color: #fff; }
@media (max-width: 760px) {
  .account-page .sign-in-main {
    background-position: 68% top; background-size: auto 390px;
    padding-top: clamp(96px, 25vw, 170px);
  }
  .sign-in-layout { grid-template-columns: minmax(0, 440px); justify-content: center; }
  .sign-in-story { display: none; }
}
.account-page .policy-main { max-width: 840px; }
.account-page .pricing-main { max-width: 1080px; }
.billing-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.billing-card, .billing-action { display: grid; gap: 10px; align-content: start; }
.billing-action { margin-top: 10px; justify-items: start; }
.billing-action label { display: grid; gap: 6px; }
.billing-price strong { font-size: 1.75rem; }
.account-page .account-card { display: grid; gap: 18px; padding: clamp(22px, 7vw, 44px); }
.account-card .brand { padding: 0; margin-bottom: 8px; }
.account-card p { color: var(--muted); overflow-wrap: anywhere; }
.account-card > .button { justify-self: start; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.embedded-sign-in-form { display: grid; gap: 8px; }
.embedded-sign-in-form label { font-weight: 690; }
.embedded-sign-in-form input, .embedded-sign-in-form .button { min-height: 44px; }
.embedded-sign-in-form .button { margin-top: 4px; }
.sign-in-panel .sign-in-continue { justify-self: stretch; min-height: 44px; }
.public-account-page { grid-template-rows: auto 1fr auto; background: var(--canvas); }
.public-account-page main { align-self: start; margin-block: 0; }
.public-account-header {
  color: #fff; background: linear-gradient(110deg, #100c21, #30224f);
  border-bottom: 1px solid #4e3f71;
}
.public-account-header-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 24px; max-width: 1080px; margin: auto; padding: 16px clamp(18px, 4vw, 44px);
}
.public-account-header .brand { padding: 0; }
.public-account-header .brand small { color: #d4cce2; }
.public-account-header .public-page-return { color: #fff; font-size: .9rem; font-weight: 690; }
.public-account-header .public-page-return:hover { text-decoration: underline; text-underline-offset: .2em; }
.account-card .brand > span:nth-child(2), .public-account-header .brand > span:nth-child(2) { display: block; }
.account-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.account-footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 12px 24px; max-width: 1080px; margin: auto; padding: 18px clamp(18px, 4vw, 44px);
}
.account-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .86rem; }
.account-footer a:hover { color: var(--accent); text-decoration: underline; }
.policy-card { display: grid; gap: 14px; padding: clamp(20px, 4vw, 36px); }
.policy-card h2 { margin-top: 8px; }
.policy-card a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.policy-card h1 { margin-bottom: 4px; }
.customer-page .customer-main { max-width: 1060px; }
.customer-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 17px clamp(18px, 5vw, 46px); background: var(--surface); border-bottom: 1px solid var(--line);
}
.customer-top-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.customer-top-actions > a { color: var(--accent); font-weight: 690; font-size: .88rem; }
.customer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.workspace-directory-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.workspace-directory-name { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; overflow-wrap: anywhere; min-width: 0; }
.workspace-directory-name:hover strong { text-decoration: underline; }
.customer-empty { display: grid; gap: 16px; margin-bottom: 16px; }
.customer-list + .customer-empty { margin-top: 16px; }
.customer-empty p { color: var(--muted); }
.customer-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.customer-form label { display: grid; gap: 5px; width: min(100%, 360px); font-weight: 670; }
.customer-form input {
  display: block; width: 100%; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; min-height: 38px;
}
.customer-dns-record { display: grid; gap: 12px; margin-block: 16px; }
.customer-dns-record dt { font-weight: 650; }
.customer-dns-record dd { margin: 5px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.customer-dns-record code { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 560px) {
  .customer-brand span { display: block; margin-top: 3px; }
}
@media (prefers-color-scheme: dark) {
  .account-page, .customer-page {
    color-scheme: dark;
    --surface: #1b192e; --canvas: #121121; --ink: #eef2fd; --muted: #aebbd5;
    --quiet: #a6b5cf; --line: #352f49; --accent: #b0a1ff; --accent-strong: #5b4bd1; --accent-bg: #2c2553; --field: #161528;
  }
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 10px; top: -80px; padding: 10px; background: var(--surface); z-index: 10; }
.skip:focus { top: 10px; }
.shell { display: grid; grid-template-columns: clamp(11.75rem, 17vw, 16rem) minmax(0, 1fr); min-height: 100vh; }
.body { min-inline-size: 0; }
.sidebar { position: sticky; top: 0; height: 100vh; align-self: start; display: flex; flex-direction: column; padding: 26px 16px 16px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; width: max-content; font-size: 1.55rem; line-height: 1; font-weight: 800; letter-spacing: -.065em; }
.brand small { display: block; margin-top: 6px; font-size: .62rem; color: var(--quiet); font-weight: 750; letter-spacing: .13em; }
.brand-trademark { color: var(--brand-amber); font-size: .57em; letter-spacing: 0; margin-left: 2px; }
.brand-mark { width: 35px; height: 38px; display: block; flex: none; }
.workspace, .profile { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 0; }
.workspace { margin: 34px 0 23px; background: var(--field); }
.workspace[aria-current="page"] { border-color: var(--accent); }
.workspace > span:nth-child(2), .profile > span:nth-child(2) { flex: 1; min-width: 0; }
.workspace strong, .profile strong { font-size: .86rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace small, .profile small { color: var(--muted); font-size: .74rem; display: block; margin-top: 3px; }
.workspace-mark, .avatar { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); font-weight: 780; font-size: .8rem; }
.avatar { border-radius: 50%; background: var(--teal-bg); color: var(--teal); }
.end { margin-left: auto; color: var(--quiet); }
.nav-label { margin: 0 10px 7px; color: var(--quiet); text-transform: uppercase; letter-spacing: .11em; font-size: .66rem; font-weight: 780; }
.nav-label.secondary { margin-top: 26px; }
.sidebar nav a { min-height: 42px; padding: 8px 10px; margin: 2px 0; border-radius: 9px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .89rem; font-weight: 620; }
.sidebar nav a > span { width: 19px; text-align: center; font-size: 1.12rem; line-height: 1; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { color: var(--accent); background: var(--accent-bg); }
.sidebar nav a small { margin-left: auto; background: var(--warn-bg); color: var(--warn); padding: 3px 7px; border-radius: 20px; }
.sidebar-foot { margin-top: auto; padding-top: 26px; }
.local-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); margin: 0 4px 14px; }
.local-pill i, .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.local-pill i { color: var(--teal); }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(18px,3.2vw,46px); border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumb { min-width: 0; color: var(--muted); font-size: .88rem; }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 9px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { min-width: 0; overflow-wrap: anywhere; }
.breadcrumb li + li::before { display: inline-block; content: "/" / ""; margin-inline-end: 9px; color: var(--muted); font-weight: 400; }
.breadcrumb a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }
.header-actions { display: flex; gap: 9px; align-items: center; }
.button, .icon-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); min-height: 38px; padding: 8px 13px; font-size: .88rem; font-weight: 690; white-space: nowrap; }
.button:hover, .icon-button:hover { border-color: var(--accent); }
.icon-button { min-width: 39px; padding: 6px; font-size: 1.11rem; }
.button.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: white; }
.button.primary:hover { filter: brightness(1.14); }
.button:disabled { opacity: .58; cursor: wait; }
.button.text { border-color: transparent; color: var(--accent); background: transparent; padding-inline: 3px; }
main { margin: auto; padding: 27px clamp(18px,3.2vw,46px) 45px; inline-size: 100%; max-width: 1580px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.52rem); letter-spacing: -.049em; line-height: 1.09; }
h2 { font-size: 1.17rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
p { line-height: 1.48; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 0 0 23px; }
.page-heading p { color: var(--muted); margin-top: 7px; }
.domain-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; min-height: 188px; isolation: isolate; overflow: hidden; padding: 24px 30px; border-radius: 19px; color: #f3f7ff; background: radial-gradient(ellipse at 91% 110%, #e8a24b29 0%, transparent 53%), linear-gradient(110deg,#231a54 0%,#3d2b86 58%,#4a3cb8 100%); box-shadow: 0 11px 25px #101b3f28; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3; background: repeating-linear-gradient(90deg,#94a7f432 0 1px,transparent 1px 28px), repeating-linear-gradient(0deg,#94a7f435 0 1px,transparent 1px 28px); mask-image: linear-gradient(90deg,transparent 18%,#000 95%); }
.hero h2 { font-size: clamp(1.65rem,3.3vw,2.35rem); line-height: 1.08; letter-spacing: -.05em; margin-top: 10px; }
.hero p { margin-top: 8px; color: #ccd7f3; font-size: .94rem; max-width: 400px; }
.hero .button {
  margin-top: 15px;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 16px;
  background: #f5f1ff;
  color: #312466;
  border-color: transparent;
  white-space: normal;
  text-align: center;
}
.hero .button:hover { background: #e8defe; }
.hero .button:focus-visible { outline-color: #f5f1ff; }
.signal-label { display: flex; align-items: center; gap: 8px; font-weight: 740; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: #83e9cf; }
.hero.alert .signal-label { color: #ffbf96; }
.radar { position: relative; width: clamp(152px,20vw,265px); height: 158px; align-self: center; display: grid; place-items: center; }
.radar::before { content: ""; position: absolute; top: 50%; left: 50%; width: 216px; height: 216px; transform: translate(-50%,-50%); border-radius: 50%; background: repeating-radial-gradient(circle at center,transparent 0 24px,#91cde44d 25px 26px,transparent 27px 28px), conic-gradient(from 28deg,transparent 15%,#e8a24b4a 40%,transparent 40%); mask-image: radial-gradient(circle at center,black 52%, transparent 73%); }
.hero-brand-mark { position: relative; display: block; width: 76px; height: 84px; filter: drop-shadow(0 9px 16px #17162a66); }
.radar-node { position: absolute; border-radius: 50%; width: 7px; height: 7px; color: var(--brand-amber); background: currentColor; box-shadow: 0 0 15px currentColor; }
.radar-node.first { top: 29px; left: 27%; }
.radar-node.second { bottom: 30px; right: 23%; color: #a894ff; }
.radar-node.third { top: 35px; right: 17%; width: 4px; height: 4px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 17px 0; }
.reporting-coverage { margin-top: 17px; }
.coverage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 10px; }
.coverage-stage { display: grid; grid-template-rows: auto auto auto 1fr; gap: 7px; padding: 14px; background: var(--field); border: 1px solid var(--line); border-radius: 10px; }
.coverage-stage:hover { border-color: var(--accent); }
.coverage-stage > span { color: var(--accent); font-weight: 720; }
.coverage-stage strong { font-size: 1.5rem; line-height: 1; }
.coverage-stage small, .coverage-stage p { color: var(--muted); font-size: .82rem; }
.coverage-stage progress, .sender-failures progress { width: 100%; height: 7px; border: 0; border-radius: 10px; accent-color: var(--accent); }
.coverage-stage.setup progress, .sender-failures progress { accent-color: var(--warn); }
.coverage-stage.receiving progress { accent-color: var(--teal); }
.metric, .card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); }
.metric { padding: 14px 16px; min-height: 110px; }
.metric-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .85rem; font-weight: 660; }
.metric-label span { color: var(--accent); font-size: 1rem; }
.metric strong { display: block; font-size: 1.8rem; letter-spacing: -.055em; margin: 4px 0 2px; }
.metric small, .subtle { color: var(--muted); font-size: .85rem; }
.analytics { display: grid; grid-template-columns: minmax(0,1.68fr) minmax(240px,1fr); gap: 16px; margin-bottom: 17px; }
.card { padding: 19px; min-width: 0; }
.card-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 13px; }
.card p.subtle, .section-intro { margin-top: 4px; }
.segment { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); background: var(--field); border-radius: 8px; padding: 2px; }
.segment button { border: 0; background: transparent; color: var(--muted); border-radius: 6px; padding: 5px 8px; font-size: .78rem; font-weight: 690; }
.segment button[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent); }
.chart { display: block; width: 100%; height: 188px; }
.legend, .split-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.legend { flex-wrap: wrap; gap: 8px 15px; margin-top: 5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .split-row i { width: 9px; height: 9px; border-radius: 3px; background: var(--series,#6951f4); flex: none; }
.legend .failed, .split-row .failed { --series: #eb8563; }
.split-row { margin: 9px 0 1px; }
.split-row strong { color: var(--ink); margin-left: auto; }
.donut-shell { display: grid; place-items: center; min-height: 143px; margin-bottom: 7px; }
.donut-shell > * { grid-area: 1 / 1; }
.donut { width: 146px; height: 146px; }
.donut-value { text-align: center; pointer-events: none; }
.donut-value strong { display: block; color: var(--ink); font-size: 1.54rem; letter-spacing: -.05em; }
.donut-value small { font-size: .76rem; color: var(--muted); }
.issue-strip, .domain-row, .report-row, .member-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.issue-strip strong, .domain-row strong, .report-row strong, .member-row strong { display: block; overflow-wrap: anywhere; }
.issue-strip small, .domain-row small, .report-row small, .member-row small { color: var(--muted); display: block; margin-top: 3px; font-size: .82rem; }
.issue-icon, .domain-icon { width: 35px; height: 35px; flex: none; border-radius: 10px; display: grid; place-content: center; background: var(--teal-bg); color: var(--teal); font-weight: 800; }
.issue-icon.warn { background: var(--warn-bg); color: var(--warn); }
.domain-icon { background: var(--accent-bg); color: var(--accent); }
.pill { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 20px; padding: 4px 8px; background: var(--accent-bg); color: var(--accent); font-size: .76rem; font-weight: 720; }
.pill.good { background: var(--teal-bg); color: var(--teal); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.stack { display: grid; gap: 16px; }
.two-col { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.empty { padding: 18px 0 6px; color: var(--muted); }
.report-empty { display: grid; justify-items: start; gap: 8px; padding-block: 10px; }
.report-empty p { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 12px; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 680; color: var(--ink); }
input,select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); padding: 9px 11px; font-size: .91rem; }
.form { display: grid; gap: 13px; }
.form .button { justify-self: start; }
.form-note { font-size: .88rem; color: var(--muted); }
.callout { background: var(--accent-bg); border-radius: 11px; padding: 13px; color: var(--ink); font-size: .94rem; }
.callout.warn { background: var(--warn-bg); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 680; }
.table-scroll { overflow-x: auto; }
pre { background: var(--field); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 12px; overflow-wrap: anywhere; white-space: pre-wrap; margin: 8px 0; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
details + details { margin-top: 8px; }
summary { cursor: pointer; font-weight: 710; }
details > p, details > .table-scroll { margin-top: 10px; }
.timeline { list-style: none; margin: 5px 0 2px; padding: 0 0 0 4px; }
.timeline li { position: relative; border-left: 2px solid var(--line); padding: 0 0 15px 15px; }
.timeline li:last-child { padding-bottom: 2px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline small { display: block; color: var(--muted); margin-top: 4px; }
dialog { width: min(600px, calc(100% - 28px)); max-height: 87vh; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 22px 85px #090b2750; }
dialog::backdrop { background: #080d2699; backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.toast { position: fixed; z-index: 9; bottom: 20px; right: 20px; max-width: min(460px,calc(100% - 40px)); color: white; background: #25214a; border: 1px solid #6b62ab; border-radius: 11px; padding: 12px 15px; box-shadow: 0 10px 22px #15133340; font-size: .92rem; }
.loading { color: var(--muted); }
@media (max-width: 1040px) { .sidebar { padding-inline: 11px; } .metric { padding: 12px; } }
.customer-settings { container-type: inline-size; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.settings-card { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.settings-card dl { margin: 0; }
.settings-card dl > div { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: baseline; gap: 12px; padding: 6px 0; }
.settings-card dt { font-size: .87rem; color: var(--muted); }
.settings-card dd { margin: 0; overflow-wrap: anywhere; text-align: end; font-size: .87rem; font-weight: 690; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.workspace-settings-actions { display: grid; gap: 10px; }
.workspace-danger { border-top: 1px solid var(--line); padding-top: 5px; }
.workspace-danger .button { justify-content: start; }
.workspace-danger .button:hover { text-decoration: underline; text-underline-offset: .18em; }
.button.danger { color: var(--red); }
@media (max-width: 810px) {
  .shell { grid-template-columns: 66px minmax(0,1fr); }
  .sidebar { padding: 18px 7px; }
  .brand { padding-inline: 6px; }
  .brand > span:nth-child(2), .workspace > span:nth-child(2), .workspace .end, .profile > span:nth-child(2), .profile .end, .nav-label, .local-pill, .sidebar nav a small { display: none; }
  .sidebar nav a { overflow: hidden; font-size: 0; justify-content: center; padding-inline: 0; gap: 0; }
  .sidebar nav a span { font-size: 1.24rem; }
  .workspace, .profile { justify-content: center; padding: 7px 0; }
}
@media (max-width: 610px) {
  .shell { display: block; }
  .sidebar { height: auto; position: relative; padding: 10px 13px; align-items: stretch; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand > span:nth-child(2) { display: block; }
  .sidebar nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .sidebar nav a { width: auto; min-height: 44px; padding: 5px 2px; gap: 3px; flex-direction: column; font-size: .76rem; line-height: 1.15; text-align: center; }
  .sidebar nav a span { font-size: .95rem; }
  .brand-mark { width: 27px; height: 30px; }
  .workspace, .sidebar-foot { display: none; }
  .topbar { min-height: 53px; padding-inline: 13px; flex-wrap: wrap; gap: 6px 10px; }
  .header-actions { gap: 4px; flex-wrap: wrap; }
  .button, .icon-button { min-height: 44px; padding: 5px 8px; font-size: .85rem; }
  .metrics, .two-col { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analytics, .two-col { grid-template-columns: minmax(0,1fr); }
  main { padding: 20px 13px 37px; }
  .hero { padding: 19px 16px; min-height: 165px; grid-template-columns: minmax(0,1fr) 65px; }
  .radar { width: 65px; height: 90px; }
  .radar::before { width: 116px; height: 116px; }
  .hero-brand-mark { width: 46px; height: 51px; }
  .radar-node { display: none; }
  .page-heading { align-items: start; flex-direction: column; }
  .domain-row, .report-row, .issue-strip { flex-wrap: wrap; }
}
.spaced, .archive { margin-top: 16px; }
.issue-strip[href]:hover, .domain-row[href]:hover, .report-row[href]:hover { color: var(--accent); }
.health-check, .setup-guide {
  container: onboarding / inline-size;
  inline-size: 100%;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
:is(.health-check, .setup-guide) :is(.stack, .guide-step, .guide-record, .provider-card) {
  grid-template-columns: minmax(0, 1fr);
}
:is(.health-check, .setup-guide) :is(.button, .pill) { white-space: normal; text-align: center; }
:is(.health-check, .setup-guide) :is(pre, .guide-form > div, .guide-heading > div, .guide-intro > div) {
  min-inline-size: 0;
  max-inline-size: 100%;
}
.health-header { align-items: start; }
.health-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.health-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 0 17px; }
.health-switch .button { min-height: 44px; padding-inline: 16px; border-color: var(--accent); color: var(--accent); }
.health-switch .button:hover { background: var(--accent-bg); }
.health-switch .button[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: white; }
.dns-result-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 24px; }
.dns-results-heading { align-items: center; margin-bottom: 0; }
.dns-print-report { display: none; }
.domain-report-controls, .domain-report-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.domain-report-controls { justify-content: space-between; margin-bottom: 16px; }
.domain-report-document, .domain-report-section, .domain-report-mechanisms { display: grid; gap: 12px; min-width: 0; }
.domain-report-print-heading { display: none; }
.domain-report-stats > div { display: grid; gap: 5px; flex: 1 1 120px; padding: 12px; background: var(--field); border: 1px solid var(--line); border-radius: 9px; }
.domain-report-stats strong { font-size: 1.3rem; overflow-wrap: anywhere; }
.domain-report-stats span, .sender-evidence-list small { color: var(--muted); font-size: .82rem; }
.domain-trend { margin: 0; }
.domain-trend svg { display: block; width: 100%; max-height: 240px; }
.domain-trend text { fill: var(--muted); font: 11px system-ui, sans-serif; }
.domain-trend line { stroke: var(--line); }
.domain-trend-aligned { fill: var(--accent); background: var(--accent); }
.domain-trend-failed { fill: var(--warn); background: var(--warn); }
.domain-trend figcaption { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.domain-trend figcaption i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; }
.sender-failures { display: flex; align-items: center; gap: 10px; }
.sender-failures progress { width: clamp(32px, 12vw, 9rem); }
.sender-evidence-list, .domain-report-alerts { margin: 0; padding-inline-start: 20px; }
.sender-evidence-list { display: grid; gap: 8px; }
.sender-evidence-list a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }
.sender-evidence-list small { display: block; }
.health-basic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: end; }
.health-basic .button { justify-self: start; }
#dns-record-lookup .health-basic > div { display: grid; gap: 9px; min-width: 0; }
.field-help { margin: 4px 0 7px; }
.health-options { background: var(--field); }
.health-options summary .subtle { display: block; margin: 4px 0 0; font-weight: 500; }
.health-extra { display: grid; grid-template-columns: minmax(0,1fr); gap: 15px; margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.health-extra > div { display: flex; flex-direction: column; }
.health-extra input { margin-top: auto; background: var(--surface); }
.health-form .button { min-height: 41px; }
.health-findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 15px; }
.health-finding { display: grid; grid-template-rows: auto 1fr auto; gap: 9px; }
.health-finding-body p { margin: .5rem 0 0; }
.health-finding-actions { display: grid; gap: 8px; }
.health-finding-actions > :is(.button, details) { min-height: 45px; padding: 10px 12px; }
.health-finding-actions > .button { justify-content: start; }
.health-findings .card-heading { margin: 0; }
.health-findings .card-heading h2 { font-size: 1rem; }
.health-records { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.health-records pre { min-height: 62px; }
.health-audit { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px 13px; }
.health-audit.warn .issue-icon { color: var(--warn); background: var(--warn-bg); }
.health-audit .end { grid-column: 2; margin-inline-start: 0; }
.provider-card { display: grid; gap: 12px; }
.provider-card .two-col { grid-template-columns: minmax(0,1fr); gap: 20px; }
.provider-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.provider-card code { overflow-wrap: anywhere; }
.health-findings pre { max-height: 170px; overflow: auto; margin-bottom: 0; }
.health-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dns-record-list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.dns-record-list li { min-width: 0; border-top: 1px solid var(--line); padding-top: 8px; }
.dns-record-list code { display: block; overflow-wrap: anywhere; white-space: pre-wrap; }
.guide-intro { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 20px; margin-bottom: 17px; background: var(--accent-bg); }
.guide-intro .issue-icon { background: var(--surface); color: var(--accent); }
.guide-intro p { margin-top: 5px; color: var(--muted); }
.guide-step { display: grid; gap: 13px; }
.guide-heading { display: flex; align-items: flex-start; gap: 11px; }
.guide-heading > span { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 10px; background: var(--accent-bg); color: var(--accent); font-weight: 750; }
.guide-heading h2 { scroll-margin-top: 18px; }
.guide-heading h2:focus { outline: none; }
.guide-heading p { margin-top: 4px; }
.guide-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 13px; }
.guide-form > div { display: flex; flex-direction: column; align-items: stretch; }
.guide-form input { margin-top: auto; }
.guide-form .health-nav { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.guide-provider { max-width: 245px; min-inline-size: 0; }
.guide-steps { margin: 2px 0 2px 5px; }
.guide-record { display: grid; gap: 9px; }
.guide-record .button { justify-self: start; }
.guide-actions { gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--accent-bg); }
.guide-actions .button.text { padding-inline: 10px; }
.guide-disclosures { display: grid; gap: 10px; margin-top: 5px; min-width: 0; }
.guide-disclosures > details + details { margin-top: 0; }
.guide-record-fields { margin: 8px 0 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); }
.guide-record-fields > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px 10px; padding: 9px 12px; }
.guide-record-fields > div + div { border-top: 1px solid var(--line); }
.guide-record-fields dt { color: var(--muted); font-weight: 680; font-size: .88rem; }
.guide-record-fields dd { grid-column: 1 / -1; margin: 0; min-width: 0; }
.guide-record-fields button { grid-column: 2; grid-row: 1; min-height: 44px; padding: 4px 8px; }
.guide-source { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
@container onboarding (max-width: 36rem) {
  :is(.health-check, .setup-guide) .card { padding: clamp(12px, 3.4cqi, 19px); }
  :is(.health-check, .setup-guide) .page-heading { flex-direction: column; align-items: start; }
  :is(.health-check, .setup-guide) :is(input, select) { font-size: 1rem; min-height: 44px; }
  .health-basic .button { justify-self: stretch; min-height: 44px; }
  .provider-card .card-heading > label { flex-basis: 100%; }
  .guide-provider { max-width: none; }
}
@container onboarding (min-width: 42rem) {
  .health-basic { grid-template-columns: minmax(0, 1fr) auto; }
  #dns-record-lookup .health-basic { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
  .health-options summary .subtle { display: inline; margin-left: 8px; }
  :is(.health-extra, .health-records, .dns-result-grid, .guide-form) { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guide-record-fields > div { grid-template-columns: minmax(75px, 100px) minmax(0,1fr) auto; }
  .guide-record-fields dd, .guide-record-fields button { grid-column: auto; grid-row: auto; }
  .guide-record-fields button { min-height: 34px; }
}
@container onboarding (min-width: 52rem) {
  .health-audit { grid-template-columns: auto minmax(0, 1fr) auto; }
  .health-audit .end { grid-column: auto; }
  .provider-card .two-col { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.sharing-card { margin-block: 1rem; }
.sharing-card article { padding-block: .9rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.sharing-card article h3 { margin-bottom: .25rem; }

.automatic-reporting { display: grid; gap: 16px; container-type: inline-size; }
.reporting-summary { display: grid; gap: 7px; }
.reporting-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; }
.reporting-heading .pill { white-space: normal; }
.reporting-summary p { color: var(--muted); }
.reporting-address-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px;
  padding: 12px 14px; background: var(--field); border: 1px solid var(--line); border-radius: 10px;
}
.reporting-address-panel strong { display: block; font-size: .86rem; margin-bottom: 4px; }
.reporting-address { display: block; overflow-wrap: anywhere; color: var(--muted); }
.reporting-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.reporting-evidence { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-inline-end: auto; }
.reporting-alerts { margin: 0; padding-inline-start: 20px; }
.reporting-dkim .customer-form { margin-top: 12px; }
.reporting-dkim .customer-form label { gap: 9px; }
@container (max-width: 30rem) {
  .reporting-address-panel { grid-template-columns: minmax(0, 1fr); }
  .reporting-address-panel .button { justify-self: start; }
}
.dmarc-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 12px 4px; }
.dmarc-comparison > div { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.dmarc-comparison pre { flex: 1; margin: 6px 0 8px; }
.dmarc-comparison .button { align-self: start; }
@media (max-width: 620px) {
  .dmarc-comparison { grid-template-columns: minmax(0, 1fr); }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.access-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.access-nav a { padding: .55rem .65rem; color: var(--muted); font-weight: 650; border-bottom: 2px solid transparent; }
.access-nav a:hover, .access-nav [aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.access-panel > .access-row + .access-row { border-top: 1px solid var(--line); }
.access-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding: .75rem 0; }
.access-row > div:first-child { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.access-row p { margin: .2rem 0 0; }
.access-row time { color: var(--muted); font-size: .82rem; }
.access-editor { max-width: 46rem; }
.access-editor .form { margin-top: 1rem; }
.access-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .7rem 1rem; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: .75rem; }
.access-choices legend { padding-inline: .35rem; font-weight: 650; }
.access-choices label { display: flex; align-items: center; gap: .45rem; overflow-wrap: anywhere; }
.access-choices input { width: auto; flex: none; accent-color: var(--accent); }

.dns-health-summary { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem 1.4rem; padding: .8rem 0 0; margin: .25rem 0 0; border-top: 1px solid var(--line); }
.dns-health-summary > div { display: flex; align-items: center; gap: .45rem; }
.dns-health-summary dt { font-size: .82rem; font-weight: 650; }
.dns-health-summary dd { margin: 0; }

.reporting-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.reporting-progress li { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-top: 3px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 650; overflow-wrap: anywhere; }
.reporting-progress li span { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; flex: none; border-radius: 50%; font-size: .73rem; background: var(--field); }
.reporting-progress [aria-current="step"] { border-color: var(--accent); color: var(--accent); }
.reporting-progress [aria-current="step"] span { background: var(--accent-bg); }
.reporting-progress .complete { border-color: var(--teal); color: var(--teal); }
.verification-status { display: grid; gap: .2rem; background: var(--field); padding: .85rem 1rem; margin-top: .75rem; border-radius: 9px; }
.verification-status p { margin: 0; color: var(--muted); }
.verification-status a { justify-self: start; color: var(--accent); }
.verification-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
.monitored-domains { container: domain-list / inline-size; list-style: none; padding: 0; margin: 0; }
.monitored-domain {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 14px;
  border-top: 1px solid var(--line);
  padding-block: 16px;
}
.monitored-domain-summary { container: domain-summary / inline-size; min-width: 0; overflow-wrap: anywhere; }
.monitored-domain > .domain-icon { position: relative; }
.monitored-domain-favicon { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; object-fit: contain; visibility: hidden; }
.monitored-domain > .has-favicon { color: transparent; }
.has-favicon .monitored-domain-favicon { visibility: visible; }
.monitored-domain-heading {
  display: grid;
  grid-template-columns: clamp(10rem, 35cqi, 13rem) minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 5px 10px;
  min-height: 35px;
}
.monitored-domain-name { min-width: 0; font-weight: 700; }
.monitored-domain-name:hover { color: var(--accent); text-decoration: underline; }
.monitored-domain-heading .pill { white-space: normal; }
.monitored-domain-summary p { font-size: .9rem; }
.monitored-domain-evidence { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 5px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.monitored-domain-action { place-self: center end; }
@container domain-summary (max-width: 23rem) {
  .monitored-domain-heading { grid-template-columns: minmax(0, 1fr); padding-block: 3px 5px; }
}
@container domain-list (max-width: 31rem) {
  .monitored-domain { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .monitored-domain-action { grid-column: 2; place-self: start; max-width: 100%; white-space: normal; text-align: center; }
}
@media (max-width: 520px) {
  .reporting-progress li { align-items: flex-start; flex-direction: column; padding: .5rem .15rem; }
}

@media print {
  @page dns-lookup { margin: 17mm; }
  @page domain-health { margin: 17mm; }
  body.print-dns-report { color: #19152c; background: #fff; }
  .print-dns-report :is(.skip, .sidebar, .topbar, .page-heading, .health-switch, dialog, .toast),
  .print-dns-report #dns-record-lookup > .card-heading,
  .print-dns-report #dns-record-lookup > .stack > :not(.dns-print-report) { display: none !important; }
  .print-dns-report :is(.shell, main, .health-check, #dns-record-lookup, #dns-record-lookup > .stack) {
    display: block; min-height: 0; width: 100%; max-width: none; padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .print-dns-report .dns-print-report { display: block; font-size: 10pt; page: dns-lookup; }
  .dns-print-report header { border-bottom: 3px solid #5140b9; padding-bottom: 12pt; margin-bottom: 15pt; }
  .dns-print-report .brand { padding: 0; color: #241a55; }
  .dns-print-report .brand > span { display: block; }
  .dns-print-report .brand small { display: block; color: #5140b9; }
  .dns-print-report h1 { font-size: 24pt; }
  .dns-print-report p { margin-top: 5pt; }
  .dns-print-report .dns-print-host { font-size: 14pt; font-weight: 700; }
  .dns-print-report table { margin-top: 14pt; font-size: 9pt; table-layout: fixed; }
  .dns-print-report th, .dns-print-report td { padding: 6pt 5pt; border-color: #ded8ee; overflow-wrap: anywhere; }
  .dns-print-report th { color: #372977; }
  .dns-print-report th:nth-child(1), .dns-print-report th:nth-child(4), .dns-print-report th:nth-child(5) { width: 10%; }
  .dns-print-report th:last-child { width: 34%; }
  .dns-print-report tr { break-inside: avoid; }
  body.print-domain-report { color-scheme: light; color: #19152c; background: #fff; }
  .print-domain-report :is(.skip, .sidebar, .topbar, .page-heading, .domain-report-controls, .domain-report-screen-only, dialog, .toast) { display: none !important; }
  .print-domain-report :is(.shell, main, .domain-health-report, .domain-report-document) { display: block; min-height: 0; padding: 0; max-width: none; }
  .print-domain-report .domain-report-document { page: domain-health; --muted: #514762; --line: #ddd8e7; --field: #f8f6fb; --accent: #4c3bb2; --warn: #a04c20; }
  .print-domain-report .domain-report-print-heading { display: block; border-bottom: 3px solid #5140b9; padding: 0 0 12pt; margin-bottom: 14pt; }
  .domain-report-print-heading .brand { padding: 0; color: #241a55; margin-bottom: 11pt; }
  .domain-report-print-heading .brand > span { display: block; }
  .domain-report-print-heading h1 { font-size: 25pt; }
  .domain-report-print-heading p { font-size: 13pt; margin-top: 4pt; }
  .print-domain-report .domain-report-section { background: #fff; border-radius: 0; border: 0; border-bottom: 1px solid #ddd8e7; box-shadow: none; padding: 0 0 11pt; margin: 0 0 11pt; }
  .print-domain-report :is(.domain-report-stats, .domain-trend, tr) { break-inside: avoid; }
  .print-domain-report h2, .print-domain-report h3 { break-after: avoid; }
  .print-domain-report .table-scroll { overflow: visible; }
  .print-domain-report .sender-failures progress { display: none; }
}
