/* dmarcboard customer app. Tokens: tokens.css. Corporate, calm, data first; status = icon + text, never colour alone. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; margin: 0; color: var(--navy-900); }
h1 { font-size: 26px; font-weight: 700; }
h2, .h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
code, .mono { font-family: var(--mono); font-size: 13.5px; }
.mono-soft { font-family: var(--mono); font-size: 12.5px; color: var(--muted-fg); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted-fg); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle-fg); margin-bottom: 4px; }
.stack > * + * { margin-top: 14px; }
.stack-sm > * + * { margin-top: 6px; }
.stack-lg > * + * { margin-top: 24px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- icons */
.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.i-sm { width: 16px; height: 16px; vertical-align: -3px; }
.i-xs { width: 13px; height: 13px; vertical-align: -2px; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted-ic { color: var(--subtle-fg); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--card); color: var(--fg); font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: #f3f5fa; border-color: #b8c0d2; color: var(--fg); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(67,56,202,.25); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-50); color: var(--brand-hover); border-color: var(--brand-hover); }
.btn-danger { background: var(--fail); border-color: var(--fail); color: #fff; }
.btn-danger:hover { background: #991b1b; border-color: #991b1b; color: #fff; }
.btn-ghost-danger { border-color: transparent; background: transparent; color: var(--fail); }
.btn-ghost-danger:hover { background: var(--fail-bg); border-color: var(--fail-bd); color: var(--fail); }
.btn-sm { min-height: 32px; padding: 5px 10px; font-size: 13px; gap: 6px; border-radius: 7px; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--subtle-fg) transparent var(--subtle-fg) transparent; animation: spin .8s linear infinite; }
.btn-primary.is-busy::after, .btn-danger.is-busy::after { border-color: #fff transparent #fff transparent; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--muted-fg); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--neutral-bg); color: var(--fg); }
.icon-btn-dark { color: rgba(255,255,255,.75); }
.icon-btn-dark:hover { background: rgba(255,255,255,.1); color: #fff; }
.icon-btn-xs { width: 28px; height: 28px; border-radius: 6px; }
.link-strong { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.link-strong:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .switch-label { font-weight: 600; font-size: 14px; color: var(--navy-900); }
.input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: #fff; color: var(--fg); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: #8a93a6; }
.input:hover { border-color: #aab3c6; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.input[readonly] { background: var(--neutral-bg); color: var(--muted-fg); }
.input[aria-invalid="true"] { border-color: var(--fail); }
.input-lg { min-height: 48px; font-size: 16px; }
.input-sm { min-height: 36px; padding: 6px 10px; font-size: 14px; }
select.input { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5567' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
input[type="search"].input { padding-left: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7486' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 10px center / 16px; }
.help { font-size: 13px; color: var(--muted-fg); }
.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--fail); font-weight: 500; }
.field-error .i { margin-top: 2px; }
.form-grid { display: grid; gap: 18px; max-width: 560px; margin-top: 16px; }
.form-actions { display: flex; gap: 10px; }
.switch-list > * + * { border-top: 1px solid var(--border); }
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 14px 0; }
.switch-row:first-child { padding-top: 6px; }
.switch-text { min-width: 0; }
.switch-text .muted { margin-top: 2px; }
.switch { appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 2px 0 0; border-radius: 999px; background: #cbd2e0; cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11,20,48,.25); transition: transform .2s var(--ease); }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .6; cursor: wait; }
.switch:focus-visible { box-shadow: var(--focus); border-radius: 999px; }

/* ---------------------------------------------------------------- pills, notices, meters */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; line-height: 20px; white-space: nowrap; border: 1px solid transparent; }
.pill-pass { color: var(--pass); background: var(--pass-bg); border-color: var(--pass-bd); }
.pill-warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-bd); }
.pill-fail { color: var(--fail); background: var(--fail-bg); border-color: var(--fail-bd); }
.pill-info { color: var(--info); background: var(--info-bg); border-color: var(--info-bd); }
.pill-neutral { color: var(--neutral); background: var(--neutral-bg); border-color: #e2e8f0; }
.pill-brand { color: var(--brand); background: var(--brand-50); border-color: var(--brand-100); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid; font-size: 14px; }
.notice > .i { margin-top: 2px; }
.notice-body { min-width: 0; flex: 1; }
.notice-body > * + * { margin-top: 4px; }
.notice-body strong { display: block; color: inherit; }
.notice-body p { color: var(--fg); }
.notice-pass { background: var(--pass-bg); border-color: var(--pass-bd); color: var(--pass); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn); }
.notice-fail { background: var(--fail-bg); border-color: var(--fail-bd); color: var(--fail); }
.notice-info { background: var(--info-bg); border-color: var(--info-bd); color: var(--info); }
.notice-neutral { background: var(--neutral-bg); border-color: var(--border); color: var(--neutral); }
.notice code { display: block; margin-top: 6px; color: var(--fg); }
.meter { display: block; height: 6px; border-radius: 99px; background: #e8ebf3; overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .5s var(--ease); }
.meter-fill.high { background: #d97706; }
.meter-fill.over { background: var(--chart-fail); }
.meter-pass { background: var(--teal); }
.meter-warn { background: #d97706; }
.meter-fail { background: var(--chart-fail); }
.meter-neutral { background: #94a3b8; }
.meter-dark { background: rgba(255,255,255,.14); }
.rate-pass { color: var(--pass); }
.rate-warn { color: var(--warn); }
.rate-fail { color: var(--fail); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-pass { background: #2dd4bf; box-shadow: 0 0 0 3px rgba(45,212,191,.18); }
.dot-warn { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.18); }
.dot-fail { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.2); }
.dot-info { background: #93c5fd; box-shadow: 0 0 0 3px rgba(147,197,253,.18); }
.dot-neutral { background: #94a3b8; }

/* ---------------------------------------------------------------- boot + shell */
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.boot-inner { display: grid; justify-items: center; gap: 18px; }
.boot-inner .logo-mark { width: 48px; height: 48px; }
.boot-bar { display: block; width: 120px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--brand), transparent) #e0e4ee; background-size: 60px 100%; background-repeat: no-repeat; animation: bootbar 1.1s ease-in-out infinite; }
@keyframes bootbar { from { background-position: -60px 0; } to { background-position: 120px 0; } }
.noscript { max-width: 520px; margin: 40px auto; padding: 16px; text-align: center; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--brand); color: #fff; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--navy-900) 268px, var(--bg) 268px); }
.topbar, .scrim { display: none; }
.main { min-width: 0; outline: none; }
.content { max-width: 1280px; margin: 0 auto; padding: 32px 40px 72px; }
.fade-in { animation: fadein .3s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.brand .logo-mark { width: 30px; height: 30px; flex: none; }
.brand-word b { color: var(--brand-300); font-weight: 700; }

.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; background: var(--navy-900); color: rgba(255,255,255,.78);
  display: flex; flex-direction: column; gap: 16px; padding: 20px 14px 14px; border-right: 1px solid var(--navy-800); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.brand-side { padding: 2px 8px 4px; }
.ws-wrap { position: relative; }
.ws { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #fff; text-align: left; }
.ws-btn { cursor: pointer; }
.ws-btn:hover { background: rgba(255,255,255,.09); }
.ws-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex: none; background: linear-gradient(135deg, #4f46e5, #0d9488); color: #fff; font-weight: 700; font-size: 13px; }
.ws-avatar-sm { width: 28px; height: 28px; font-size: 12px; border-radius: 7px; }
.ws-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ws-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-plan { font-size: 12px; color: rgba(255,255,255,.6); }
.ws-chev { color: rgba(255,255,255,.6); }
.menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; padding: 6px; background: #fff; color: var(--fg); border-radius: 12px; box-shadow: var(--sh-lg); border: 1px solid var(--border); }
.open > .menu { display: block; animation: fadein .15s var(--ease); }
.menu-label { padding: 6px 8px 4px; font-size: 12px; font-weight: 600; color: var(--subtle-fg); text-transform: uppercase; letter-spacing: .05em; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--neutral-bg); }
.menu-item.current { color: var(--brand); }
.menu-item-text { display: flex; flex-direction: column; min-width: 0; flex: 1; font-weight: 600; font-size: 14px; }
.menu-item-text .muted { font-weight: 400; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 8px 10px; border-radius: 8px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; font-size: 14.5px; position: relative; }
.nav-link .i { color: rgba(255,255,255,.55); }
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link.active { background: rgba(165,180,252,.14); color: #fff; }
.nav-link.active .i { color: var(--brand-300); }
.nav-link.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-300); }
.nav-section { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 4px; padding: 0 4px 0 10px; }
.nav-heading { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.nav-domains { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.nav-domain { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: rgba(255,255,255,.8); position: relative; min-height: 44px; }
.nav-domain .dot { margin: 0 4px; }
.nav-domain:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-domain.active { background: rgba(165,180,252,.14); color: #fff; }
.nav-domain.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-300); }
.nav-domain-text { display: flex; flex-direction: column; min-width: 0; }
.nav-domain-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-domain-state { font-size: 12px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-empty { padding: 4px 10px; font-size: 13px; color: rgba(255,255,255,.5); }
.nav-sep { height: 1px; background: rgba(255,255,255,.08); margin: 12px 6px; }
.sidebar-foot { display: flex; flex-direction: column; gap: 10px; }
.usage { display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); text-decoration: none; color: rgba(255,255,255,.75); font-size: 12.5px; }
.usage:hover { background: rgba(255,255,255,.08); color: #fff; }
.usage-row { display: flex; justify-content: space-between; gap: 8px; }
.usage-num { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.usage .meter-fill { background: var(--teal-300); }
.usage .meter-fill.high { background: #fbbf24; }
.usage .meter-fill.over { background: #f87171; }
.usage-over { display: flex; align-items: center; gap: 6px; color: #fcd34d; font-weight: 600; }
.user { display: flex; align-items: center; gap: 10px; padding: 8px 4px 2px 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--navy-700); color: #fff; font-size: 12.5px; font-weight: 700; }
.avatar-light { background: var(--brand-100); color: var(--brand-hover); }
.user-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.user-name { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 12px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .topbar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 30; height: 58px; padding: 0 12px 0 6px; background: var(--navy-900); color: #fff; box-shadow: 0 1px 0 var(--navy-800); }
  .topbar .brand { font-size: 18px; }
  .topbar .logo-mark { width: 28px; height: 28px; }
  .topbar-ws { margin-left: auto; max-width: 42%; font-size: 13px; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sidebar { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; height: 100%; width: min(304px, 86vw); transform: translateX(-102%); visibility: hidden;
    transition: transform .26s var(--ease), visibility 0s linear .26s; box-shadow: var(--sh-lg); }
  .nav-open .sidebar { transform: none; visibility: visible; transition: transform .26s var(--ease); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(7,11,31,.55); opacity: 0; pointer-events: none; transition: opacity .26s; }
  .nav-open .scrim { opacity: 1; pointer-events: auto; }
  .content { padding: 22px 16px 56px; }
}

/* ---------------------------------------------------------------- page structure */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head-text { min-width: 0; }
.page-head-text .muted { margin-top: 4px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-sm); }
.card-pad { padding: 22px 24px; }
.card-pad > h2 + * { margin-top: 6px; }
.card-pad > * + * { margin-top: 14px; }
.card-pad > h2 + p { margin-top: 6px; }
.card-pad > h2 + .form-grid, .card-pad > h2 + .switch-list, .card-pad > h2 + .kv, .card-pad > h2 + .roles { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head-flush { padding: 0 0 4px; border-bottom: 0; }
.card-head-wrap { align-items: flex-start; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.grid-advisor { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input { width: 240px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 14px 0 0; font-size: 14px; }
.kv dt { color: var(--muted-fg); }
.kv dd { margin: 0; min-width: 0; }

/* KPIs */
.kpis { display: grid; gap: 16px; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-sm); min-width: 0; position: relative; overflow: hidden; }
.kpi-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted-fg); }
.kpi-label .i { color: var(--subtle-fg); }
.kpi-value { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; color: var(--navy-900); font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.kpi-sub { font-size: 12.5px; color: var(--subtle-fg); line-height: 1.4; }
.kpi::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.kpi-pass .kpi-value { color: var(--pass); } .kpi-pass::after { background: var(--teal); }
.kpi-warn .kpi-value { color: var(--warn); } .kpi-warn::after { background: #d97706; }
.kpi-fail .kpi-value { color: var(--fail); } .kpi-fail::after { background: var(--chart-fail); }

/* domain cards */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.dcard { position: relative; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, border-color .2s, transform .2s; }
.dcard:hover { box-shadow: var(--sh); border-color: #cfd5e3; }
.dcard:focus-within { box-shadow: var(--sh), var(--focus); }
.dcard-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dcard-name { font-size: 17px; font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.dcard-name a { color: var(--navy-900); text-decoration: none; }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.stretched:focus-visible { box-shadow: none; }
.dcard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-label { display: block; font-size: 12.5px; color: var(--muted-fg); }
.stat-value { display: block; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.stat-value.rate-pass { color: var(--pass); } .stat-value.rate-warn { color: var(--warn); } .stat-value.rate-fail { color: var(--fail); }
.dcard-nodata { min-height: 6px; }
.dcard-meta { margin: 0; padding-top: 12px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 13.5px; }
.dcard-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dcard-meta dt { color: var(--muted-fg); }
.dcard-meta dd { margin: 0; text-align: right; }
.dcard-add { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 220px; border: 1.5px dashed var(--border-strong); border-radius: var(--r); background: transparent; color: var(--muted-fg); cursor: pointer; padding: 20px; transition: border-color .2s, background .2s, color .2s; }
.dcard-add:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.dcard-add-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-50); color: var(--brand); margin-bottom: 4px; }
.dcard-add-title { font-weight: 650; font-size: 15px; color: var(--navy-900); }

/* empty states */
.empty { padding: 48px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .muted { max-width: 560px; }
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-50); color: var(--brand); margin-bottom: 4px; }
.empty-icon .i { width: 28px; height: 28px; }
.empty-icon-fail { background: var(--fail-bg); color: var(--fail); }
.empty-home { padding: 56px 32px 48px; }
.empty-home h2 { font-size: 24px; }
.empty-lead { font-size: 16px; }
.steps { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; width: 100%; max-width: 920px; }
.step { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r); background: #fbfcfe; }
.step-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.step h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.step h3 .i { color: var(--teal); }

/* skeletons */
.skel { border-radius: 8px; background: linear-gradient(90deg, #eceff5 25%, #f6f7fb 50%, #eceff5 75%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
.skel-row { height: 18px; margin: 14px 0; }
.skel-row:nth-child(odd) { width: 92%; } .skel-row:nth-child(3n) { width: 70%; }
.skel-card { height: 230px; border-radius: var(--r); }
.loading { padding: 8px 4px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll { max-height: 60vh; overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { position: sticky; top: 0; z-index: 1; background: #f8f9fc; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--subtle-fg); padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child > td { border-bottom: 0; }
.table tbody tr:hover > td { background: #fafbfd; }
.table > tbody > tr > th { text-align: left; font-weight: 500; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--fg); background: transparent; position: static; padding: 8px 16px; border-bottom: 1px solid var(--border); }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .col-act { text-align: right; width: 1%; white-space: nowrap; }
.table-sm td { padding: 8px 12px; font-size: 13.5px; }
.table-sm th { padding: 8px 12px; }
.share { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.share .meter { width: 56px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.you { font-size: 11.5px; font-weight: 600; color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 0 7px; }
.seats { display: flex; align-items: center; gap: 10px; }
.seats .meter { width: 120px; }
.show-sm-only { display: none; }

/* sources */
.table-sources td { padding-top: 10px; padding-bottom: 10px; }
.expander { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px 0; text-align: left; cursor: pointer; min-height: 40px; color: inherit; width: 100%; }
.expander .chev { color: var(--subtle-fg); transition: transform .2s var(--ease); flex: none; }
.expander[aria-expanded="true"] .chev { transform: rotate(90deg); color: var(--brand); }
.src-name { display: flex; flex-direction: column; min-width: 0; }
.src-title { font-weight: 600; color: var(--navy-900); }
.expander:hover .src-title { color: var(--brand); }
.src-sub { font-size: 12.5px; color: var(--subtle-fg); }
.src-row.open > td { background: #fafbfd; border-bottom-color: transparent; }
.src-detail > td { background: #fafbfd; padding: 4px 24px 22px 50px !important; }
.src-detail-inner { display: flex; flex-direction: column; gap: 16px; max-width: 1060px; }
.src-detail .table-wrap { border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.src-detail .table th { background: #f8f9fc; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.facts dt { font-size: 12px; font-weight: 600; color: var(--subtle-fg); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-size: 13px; color: var(--fg); }
.table-ips td:first-child { white-space: nowrap; }
.table-ips td:first-child .show-sm-only { white-space: normal; }
.table-records .mono-soft { white-space: nowrap; }
.table-tls td.nw { white-space: nowrap; }
.src-pill-sm { display: none; margin-top: 4px; }
.authres-list { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.authres { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-family: var(--mono); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.authres-pass { color: var(--pass); background: var(--pass-bg); }
.authres-fail { color: var(--fail); background: var(--fail-bg); }
.table-records td { vertical-align: top; }
.attn-list { list-style: none; margin: 0; padding: 0; }
.attn { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--border); }
.attn:last-child { border-bottom: 0; }
.attn-main { display: flex; flex-direction: column; min-width: 0; }
.attn-name { font-weight: 600; overflow-wrap: anywhere; }
.attn-ok { display: flex; align-items: center; gap: 10px; color: var(--pass); }
.attn-ok p { color: var(--fg); }
.tls-type { display: flex; flex-direction: column; gap: 2px; }

/* ---------------------------------------------------------------- domain page */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--subtle-fg); margin-bottom: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--muted-fg); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.dhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dhead-main { min-width: 0; }
.dhead-name { font-size: 28px; }
.dhead-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: #eceff5; border-radius: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--muted-fg); font-weight: 600; font-size: 13.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.seg:hover { color: var(--navy-900); }
.seg[aria-current="true"], .seg[aria-checked="true"] { background: #fff; color: var(--navy-900); box-shadow: 0 1px 3px rgba(11,20,48,.12); }
.seg-locked { color: #9aa3b5; cursor: not-allowed; }
.seg-locked:hover { color: #9aa3b5; }
.seg-count { font-size: 12px; font-weight: 600; color: var(--subtle-fg); background: rgba(11,20,48,.06); border-radius: 999px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.seg[aria-checked="true"] .seg-count { background: var(--brand-50); color: var(--brand); }
.seg-badge { font-size: 11px; font-weight: 700; color: var(--teal); background: var(--teal-50); border-radius: 999px; padding: 1px 7px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted-fg); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; min-height: 44px; }
.tab .i { color: var(--subtle-fg); }
.tab:hover { color: var(--navy-900); border-bottom-color: var(--border-strong); }
.tab[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.tab[aria-current="page"] .i { color: var(--brand); }
.tab-panel > * + * { margin-top: 24px; }

/* advisor */
.advisor { border-top: 3px solid var(--info); }
.advisor-pass { border-top-color: var(--teal); }
.advisor-warn { border-top-color: #d97706; }
.advisor-head { display: flex; gap: 14px; align-items: flex-start; }
.advisor-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; }
.advisor-icon .i { width: 22px; height: 22px; }
.ic-pass { background: var(--pass-bg); color: var(--pass); }
.ic-warn { background: var(--warn-bg); color: var(--warn); }
.ic-fail { background: var(--fail-bg); color: var(--fail); }
.ic-info { background: var(--info-bg); color: var(--info); }
.ic-neutral { background: var(--neutral-bg); color: var(--neutral); }
.ptrack { list-style: none; margin: 18px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.ptrack::before { content: ''; position: absolute; left: 16.6%; right: 16.6%; top: 13px; height: 2px; background: var(--border); }
.ptrack-step { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 12.5px; color: var(--subtle-fg); font-family: var(--mono); }
.ptrack-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--border-strong); font-family: var(--font); font-weight: 700; font-size: 12px; color: var(--subtle-fg); z-index: 1; }
.ptrack-step.done .ptrack-dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.ptrack-step.current .ptrack-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.ptrack-step.current { color: var(--brand); font-weight: 600; }
.record-box { border: 1px solid var(--border); border-radius: 10px; background: #f8f9fc; overflow: hidden; }
.record-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px 10px 14px; }
.record-row + .record-row { border-top: 1px solid var(--border); }
.record-k { font-size: 12px; font-weight: 600; color: var(--subtle-fg); text-transform: uppercase; letter-spacing: .04em; }
.record-row code { color: var(--navy-900); font-size: 13.5px; line-height: 1.5; }
.code-block { display: block; padding: 10px 12px; background: #f8f9fc; border: 1px solid var(--border); border-radius: 8px; }
.howto { margin: 4px 0 0; padding-left: 20px; color: var(--muted-fg); }
.howto li + li { margin-top: 4px; }
.setup-status-row { display: flex; gap: 16px; align-items: flex-start; }
.setup-status-text { flex: 1; min-width: 0; }
.setup-status-text > * + * { margin-top: 4px; }
.setup-status-text h2 { font-size: 19px; }

/* chart */
.chart { position: relative; margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 10px; padding: 0; font-size: 13px; color: var(--muted-fg); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; flex: none; }
.swatch.c-pass { background: var(--chart-pass); }
.swatch.c-fail { background: var(--chart-fail); }
.chart-plot { width: 100%; min-height: 190px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart-svg .axis { stroke: #cbd5e1; stroke-width: 1; }
.chart-svg .tick { fill: #64748b; font-size: 11.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-svg .bar.c-pass { fill: var(--chart-pass); }
.chart-svg .bar.c-fail { fill: var(--chart-fail); }
.chart-svg .bar-hit { fill: transparent; cursor: crosshair; }
.chart-svg .bar-g { transition: opacity .15s; }
.chart-svg:hover .bar-g { opacity: .55; }
.chart-svg .bar-g.on { opacity: 1; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 9px 12px; background: var(--navy-900); color: #fff; border-radius: 9px; box-shadow: var(--sh); font-size: 12.5px; opacity: 0; transition: opacity .12s; }
.chart-tip.show { opacity: 1; }
.chart-tip strong { font-size: 12.5px; margin-bottom: 2px; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 6px; }
.chart-tip .muted { color: rgba(255,255,255,.7); }
.chart-table { margin-top: 10px; }
.chart-table summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--brand); padding: 4px 0; width: fit-content; }
.chart-table .table-wrap { margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; max-height: 320px; }

/* upload */
.dropzone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 30px 20px; border: 1.5px dashed var(--border-strong); border-radius: var(--r); background: #fbfcfe; transition: border-color .15s, background .15s; }
.dropzone.over { border-color: var(--brand); background: var(--brand-50); }
.dropzone-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.dropzone .btn { margin-top: 6px; }
.upload-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.upload-list:empty { display: none; }
.upload-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.upload-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.upload-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted-fg); font-size: 13px; }
.upload-errors { width: 100%; margin: 0; padding-left: 22px; color: var(--fail); }

/* team / roles / settings */
.invite-form { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-top: 16px; }
.field-grow { flex: 1 1 260px; }
.invite-form .field:not(.field-grow) { flex: 0 0 170px; }
.field-btn { padding-top: 27px; }
.roles { margin: 10px 0 0; display: grid; gap: 12px; }
.role-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.role-row dd { margin: 0; font-size: 14px; }
.settings { max-width: 820px; }
.danger-zone { border-color: var(--fail-bd); }
.danger-zone h2 { color: var(--fail); }

/* billing */
.plan-current-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-name { font-size: 26px; }
.plan-price { font-size: 16px; font-weight: 600; color: var(--muted-fg); margin-top: 4px !important; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.checklist li { display: flex; gap: 9px; align-items: flex-start; }
.checklist .i { color: var(--teal); margin-top: 3px; }
.usage-block + .usage-block { margin-top: 18px; }
.usage-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 7px; }
.usage-line .num { font-weight: 600; font-variant-numeric: tabular-nums; }
.usage-block .meter { height: 8px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.plan-popular { border: 2px solid var(--brand); box-shadow: var(--sh); }
.plan-is-current { background: #fbfcfe; }
.plan-flag { position: absolute; top: -12px; left: 22px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; }
.plan-title { font-size: 17px; }
.plan-amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-big { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; color: var(--navy-900); }
.plan-sub { min-height: 20px; }
.plan .checklist { margin: 6px 0 8px; flex: 1; }
.plan-action { margin-top: auto; min-height: 40px; display: flex; align-items: center; }

/* ---------------------------------------------------------------- dialogs, toasts */
.dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-lg); color: var(--fg); overflow: hidden; }
.dialog[open] { display: flex; flex-direction: column; animation: dlgin .22s var(--ease); }
.dialog-wide { width: min(1100px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(7,11,31,.55); }
@keyframes dlgin { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 24px; border-bottom: 1px solid var(--border); }
.dialog-title { font-size: 18px; overflow-wrap: anywhere; }
.dialog-body { padding: 20px 24px 24px; overflow: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px !important; }
.toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 10px; background: var(--navy-900); color: #fff; box-shadow: var(--sh-lg); font-size: 14px; font-weight: 500; animation: toastin .25s var(--ease); transition: opacity .3s, transform .3s; }
.toast.out { opacity: 0; transform: translateY(6px); }
.toast-pass .i { color: var(--teal-300); }
.toast-fail { background: #7f1d1d; }
.toast-fail .i, .toast-warn .i { color: #fecaca; }
.toast-info .i { color: #93c5fd; }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- auth (sign-in, action pages) */
.auth { min-height: 100vh; background: radial-gradient(1200px 600px at 50% -10%, #1e2a5a 0%, var(--navy-900) 55%, var(--navy-950) 100%); color: #fff; }
.auth-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; gap: 28px; }
.brand-auth { font-size: 22px; }
.brand-auth .logo-mark { width: 36px; height: 36px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; color: var(--fg); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 36px 36px 30px; display: flex; flex-direction: column; gap: 16px; }
.auth-title { font-size: 24px; }
.auth-title:focus { box-shadow: none; }
.auth-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.auth-icon .i { width: 26px; height: 26px; }
.auth-icon-warn { background: var(--warn-bg); color: var(--warn); }
.auth-fine { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--subtle-fg); border-top: 1px solid var(--border); padding-top: 14px; }
.auth-fine .i { margin-top: 2px; }
.auth-tips { margin: 0; padding-left: 18px; color: var(--muted-fg); font-size: 14px; }
.auth-tips li + li { margin-top: 4px; }
.auth-back a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; }
.auth-back a:hover { color: #fff; text-decoration: underline; }
.act-form { margin: 4px 0 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1279px) {
  .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
}
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .hide-md { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 23px; }
  .dhead-name { font-size: 23px; }
  .page-head { margin-bottom: 18px; align-items: flex-start; }
  .page-actions, .page-actions .btn { width: 100%; }
  .kpis { gap: 10px; }
  .kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 13px 14px; }
  .kpi-value { font-size: 21px; }
  .dgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card-pad { padding: 18px 16px; }
  .card-head { padding: 14px 16px; }
  .table th:first-child, .table td:first-child { padding-left: 16px; }
  .table th:last-child, .table td:last-child { padding-right: 16px; }
  .table td, .table th { padding-left: 10px; padding-right: 10px; }
  .hide-sm { display: none; }
  .show-sm-only { display: block; }
  .src-pill-sm { display: block; }
  .src-detail > td { padding: 4px 12px 16px !important; }
  .src-detail-inner { width: calc(100vw - 58px); }
  .toolbar, .toolbar .segmented, .toolbar .input { width: 100%; }
  .segmented { display: flex; }
  .segmented .seg { flex: 1 1 auto; justify-content: center; padding: 5px 8px; }
  .range { width: 100%; }
  .record-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .record-k { grid-column: 1 / -1; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .invite-form .field:not(.field-grow) { flex: 1 1 140px; }
  .field-btn { padding-top: 0; flex: 1 1 100%; }
  .field-btn .btn { width: 100%; }
  .role-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .setup-status-row { flex-wrap: wrap; }
  .setup-status-act { width: 100%; }
  .setup-status-act .btn { width: 100%; }
  .auth-card { padding: 28px 22px 24px; }
  .empty, .empty-home { padding: 36px 18px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .seats .meter { width: 70px; }
  .dialog-body { padding: 16px; }
  .dialog-head { padding: 12px 10px 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
