:root {
  --navy-950: #0a1724;
  --navy-900: #10263a;
  --navy-800: #17364f;
  --blue-700: #1f638f;
  --blue-600: #287cad;
  --blue-100: #e8f3f9;
  --canvas: #f4f7f9;
  --surface: #ffffff;
  --line: #dce5eb;
  --text: #172633;
  --muted: #627483;
  --high: #b42318;
  --high-bg: #ffebe8;
  --medium: #a15c00;
  --medium-bg: #fff2d6;
  --low: #315f86;
  --low-bg: #e8f2fa;
  --clear: #18794e;
  --clear-bg: #e7f6ee;
  --shadow: 0 1px 2px rgb(15 35 50 / 5%), 0 12px 32px rgb(15 35 50 / 5%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 99;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  color: white;
  background: var(--navy-950);
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 max(1.25rem, calc((100vw - 1420px) / 2));
  color: white;
  background: var(--navy-950);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: white;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #8fd3f4;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
}
.brand strong { display: block; font-size: 1.12rem; letter-spacing: -.01em; }
.brand small { display: block; margin-top: -2px; color: #a9bbc8; font-size: .74rem; }
.topbar__right { display: flex; align-items: center; gap: 1rem; }
.topbar__settings {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #c8d6df;
  text-decoration: none;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
}
.topbar__settings:hover { color: white; background: rgb(255 255 255 / 12%); }
.topbar__settings--button { border: 1px solid rgb(255 255 255 / 10%); cursor: pointer; }
.logout-form { margin: 0; }
.topbar__status { display: flex; align-items: center; gap: .55rem; color: #c8d6df; font-size: .86rem; }
.status-dot { width: 9px; height: 9px; background: #56c596; border-radius: 50%; box-shadow: 0 0 0 4px rgb(86 197 150 / 10%); }
.status-dot--active { background: #f7bb4d; box-shadow: 0 0 0 4px rgb(247 187 77 / 14%); animation: pulse 1.7s infinite; }

.shell { width: min(1420px, calc(100% - 2.5rem)); margin: 0 auto; padding: 2.4rem 0 4rem; }
.footer { padding: 1.4rem; color: var(--muted); font-size: .78rem; text-align: center; border-top: 1px solid var(--line); }

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.page-heading--stacked {
  display: block;
  margin-bottom: 1.75rem;
}
.page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.15rem;
}
.page-heading--detail { align-items: center; }
.page-heading h1, .form-shell h1 { margin: .1rem 0 .35rem; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.035em; }
.page-heading p, .form-shell > p { max-width: 760px; margin: 0; color: var(--muted); }
.eyebrow { color: var(--blue-700) !important; font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.heading-actions, .form-actions, .actions { display: flex; align-items: center; gap: .75rem; }
.page-actions .heading-actions { justify-content: flex-end; flex-wrap: nowrap; width: 100%; }
.heading-actions form, .actions form { margin: 0; }

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .52rem;
  padding: .65rem 1rem;
  color: white;
  background: var(--blue-700);
  border: 1px solid var(--blue-700);
  border-radius: .65rem;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.button:hover { background: #174d70; border-color: #174d70; }
.button:active { transform: translateY(1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #7fc5eb; outline-offset: 2px; }
.button--secondary { color: var(--navy-900); background: var(--surface); border-color: #b9c9d4; }
.button--secondary:hover, .button--ghost:hover { color: var(--navy-950); background: var(--blue-100); border-color: #91b5ca; }
.button--ghost { color: var(--blue-700); background: transparent; border-color: #b9c9d4; }
.button--compact { min-height: 34px; padding: .35rem .65rem; font-size: .82rem; }
.button--icon { min-width: 36px; min-height: 36px; padding: .45rem; }
.button--danger { color: white; background: var(--high); border-color: var(--high); }
.button--danger:hover { background: #8e1b12; border-color: #8e1b12; }
.button--warning { color: #4c2d00; background: var(--medium-bg); border-color: #dfa33d; }
.button--warning:hover { color: #332000; background: #ffe4ad; border-color: #c88418; }

.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.brand__mark .icon { width: 24px; height: 24px; }

.cards {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.card {
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .9rem;
  box-shadow: var(--shadow);
}
.card strong { display: block; font-size: 2.15rem; line-height: 1; letter-spacing: -.035em; }
.card span { margin-top: .45rem; color: var(--muted); font-size: .84rem; }
.card .card__label { margin: 0 0 .6rem; color: inherit; font-weight: 750; }
.card--sites { flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; color: var(--navy-900); background: linear-gradient(135deg, white, #eef6fa); }
.card--sites .card__icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0; color: var(--blue-700); background: white; border: 1px solid var(--line); border-radius: 14px; }
.card--sites .icon { width: 25px; height: 25px; }
.card--high { color: var(--high); border-top: 4px solid var(--high); }
.card--medium { color: var(--medium); border-top: 4px solid #df8d1b; }
.card--low { color: var(--low); border-top: 4px solid var(--low); }

.production-check { margin-bottom: 1.3rem; }
.production-check__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: .65rem;
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  list-style: none;
}
.production-check__list li {
  display: flex;
  align-items: start;
  gap: .65rem;
  padding: .75rem;
  background: #f8fafb;
  border: 1px solid #dce5eb;
  border-radius: .7rem;
}
.production-check__list strong {
  flex: 0 0 auto;
  min-width: 54px;
  padding: .12rem .35rem;
  text-align: center;
  font-size: .68rem;
  border-radius: 999px;
}
.production-check__list .is-ok strong { color: var(--clear); background: var(--clear-bg); }
.production-check__list .is-warning strong { color: var(--medium); background: var(--medium-bg); }
.production-check__list span { color: var(--muted); font-size: .78rem; }
.import-export { margin-bottom: 1.3rem; }
.import-form { display: grid; gap: .75rem; padding: 1rem 1.25rem 1.25rem; }
.import-form label { display: grid; gap: .4rem; color: #415460; font-size: .78rem; font-weight: 750; }
.import-form textarea { width: 100%; min-height: 130px; padding: .75rem; color: var(--text); background: #fbfcfd; border: 1px solid #cdd9e0; border-radius: .65rem; resize: vertical; }
.import-form .button { justify-self: start; }

.cards--plugins { grid-template-columns: repeat(4, 1fr); }
.plugin-catalog-panel { margin-bottom: 1.3rem; }
.plugin-catalog-panel code { display: inline-block; margin-top: .25rem; color: var(--blue-700); background: #edf5f9; }
.plugin-sites { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.plugin-sites li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 220px; }
.plugin-sites a { color: var(--navy-900); font-weight: 700; text-decoration: none; }
.plugin-sites a:hover { color: var(--blue-700); text-decoration: underline; }
.plugin-sites span { flex: 0 0 auto; color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.plugin-form-panel { margin-top: 1.3rem; }
.plugin-form { display: grid; gap: .9rem; padding: 1rem 1.25rem 1.25rem; }
.plugin-form label { display: grid; gap: .38rem; color: #415460; font-size: .8rem; font-weight: 750; }
.plugin-form input,
.plugin-form select,
.plugin-form textarea {
  width: 100%;
  min-height: 44px;
  padding: .65rem .75rem;
  color: var(--text);
  background: #fbfcfd;
  border: 1px solid #c8d5dd;
  border-radius: .55rem;
}
.plugin-form textarea { min-height: 88px; resize: vertical; }
.plugin-form .button { justify-self: start; }

.cards--newsflash { grid-template-columns: 1.3fr repeat(3, 1fr); }
.newsflash-panel { margin-top: 1.3rem; }
.newsflash-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .85rem 1.25rem;
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .42rem .7rem;
  color: var(--blue-700);
  background: var(--surface);
  border: 1px solid #c8d5dd;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.filter-chip span {
  min-width: 1.35rem;
  padding: .05rem .38rem;
  color: var(--muted);
  text-align: center;
  background: #edf3f6;
  border-radius: 999px;
  font-size: .72rem;
}
.filter-chip--active {
  color: white;
  background: var(--blue-700);
  border-color: var(--blue-700);
}
.filter-chip--active span { color: var(--blue-700); background: white; }
.newsflash-list { display: grid; gap: .9rem; padding: 1rem 1.25rem 1.25rem; }
.newsflash-item {
  padding: 1.15rem 1.2rem;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: .75rem;
}
.newsflash-item--high { border-left-color: var(--high); }
.newsflash-item--medium { border-left-color: #df8d1b; }
.newsflash-item--low { border-left-color: var(--low); }
.newsflash-item h3 { margin: .8rem 0; font-size: 1.05rem; letter-spacing: -.01em; }
.newsflash-item dl { display: grid; gap: .72rem; margin: 0; }
.newsflash-item dl div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: .8rem; }
.newsflash-item dt { color: #516471; font-size: .76rem; font-weight: 750; }
.newsflash-item dd { min-width: 0; margin: 0; font-size: .88rem; overflow-wrap: anywhere; }
.newsflash-item code { color: var(--blue-700); background: #edf5f9; }
.newsflash-delete-form { display: flex; justify-content: flex-end; margin-top: .95rem; }
.newsflash-sites { max-width: 520px; }

.panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .9rem;
  box-shadow: var(--shadow);
}
.panel__header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.panel h2, .section-heading h2 { margin: 0; font-size: 1.08rem; letter-spacing: -.01em; }
.panel__header p, .section-heading p { margin: .15rem 0 0; color: var(--muted); font-size: .82rem; }
.panel--compact { padding: 1.2rem; }
.panel--compact h2 { margin-bottom: .75rem; }
.panel--compact h3 { margin: 1.25rem 0 .45rem; font-size: .84rem; }
.panel--compact p { color: var(--muted); font-size: .88rem; }

.login-shell {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
}
.login-card { width: min(460px, 100%); }
.login-card h1 { margin: .1rem 0 .5rem; font-size: 2rem; letter-spacing: -.035em; }
.login-card p { color: var(--muted); }

.search input {
  width: min(320px, 38vw);
  min-height: 40px;
  padding: .55rem .75rem;
  background: #f8fafb;
  border: 1px solid #cdd9e0;
  border-radius: .55rem;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .82rem 1rem; text-align: left; border-bottom: 1px solid #e7edf1; vertical-align: middle; }
th { color: #526572; background: #f7fafb; font-size: .72rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
tbody tr:hover { background: #fbfdfe; }
tbody tr:last-child td { border-bottom: 0; }
.site-link { display: block; color: var(--navy-900); font-weight: 700; text-decoration: none; }
.site-link:hover { color: var(--blue-700); text-decoration: underline; }
.muted { display: block; color: var(--muted); font-size: .76rem; }
.number { text-align: center; font-variant-numeric: tabular-nums; }
.priority-number { font-weight: 750; }
.priority-number--high { color: var(--high); }
.priority-number--medium { color: var(--medium); }
.priority-number--low { color: var(--low); }
.score { color: var(--navy-900); font-weight: 800; font-variant-numeric: tabular-nums; }
.score small { color: var(--muted); font-size: .66rem; font-weight: 500; }
.plugin-risk-detail {
  display: block;
  max-width: 260px;
  margin-top: .28rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}
time { color: #4d606d; font-size: .82rem; white-space: nowrap; }

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .25rem .52rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
  text-transform: uppercase;
}
.badge--high { color: var(--high); background: var(--high-bg); }
.badge--medium { color: var(--medium); background: var(--medium-bg); }
.badge--low { color: var(--low); background: var(--low-bg); }
.badge--clear { color: var(--clear); background: var(--clear-bg); }
.badge--neutral { color: #596b77; background: #edf1f4; }
.badge--new { color: #6d3cc3; background: #f1eaff; }
.scope-badge {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  width: fit-content;
  padding: .23rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.scope-badge__icon {
  display: inline-grid;
  place-items: center;
  min-width: 1.1em;
  font-weight: 900;
}
.scope-badge--wordpress { color: #176a89; background: #e5f5fb; }
.scope-badge--server { color: #7a4a00; background: #fff1d6; }
.scope-badge--content { color: #5e4179; background: #f2ebfa; }
.scope-badge--ops { color: #2f5c48; background: #e7f5ee; }
.scope-badge--mixed { color: #596b77; background: #edf1f4; }

.breadcrumb { margin-bottom: 1.2rem; }
.breadcrumb a { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue-700); font-size: .88rem; font-weight: 700; text-decoration: none; }
.external-link { color: var(--blue-700); font-size: .88rem; overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.section-heading { margin-bottom: 1rem; }
.findings { display: grid; gap: .85rem; }
.finding {
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: .75rem;
  box-shadow: var(--shadow);
}
.finding--high { border-left-color: var(--high); }
.finding--medium { border-left-color: #df8d1b; }
.finding--low { border-left-color: var(--low); }
.finding__top { display: flex; align-items: center; gap: .5rem; }
.finding .due { margin-left: auto; color: var(--muted); font-size: .75rem; }
.finding h3 { margin: .8rem 0; font-size: 1.05rem; }
.finding dl { display: grid; gap: .72rem; margin: 0; }
.finding dl div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: .8rem; }
.finding dt { color: #516471; font-size: .76rem; font-weight: 750; }
.finding dd { margin: 0; font-size: .88rem; }
.best-practice {
  display: grid;
  gap: .55rem;
  padding: .75rem .85rem;
  background: #f7fafc;
  border: 1px solid #dce7ed;
  border-radius: .6rem;
}
.best-practice strong { color: #243f50; font-size: .88rem; }
.best-practice ol { display: grid; gap: .35rem; margin: 0; padding-left: 1.15rem; }
.best-practice pre {
  margin: .1rem 0 0;
  padding: .65rem .75rem;
  overflow-x: auto;
  background: #edf3f6;
  border-radius: .45rem;
}
.best-practice pre code { padding: 0; background: transparent; white-space: pre-wrap; }
code { padding: .12rem .28rem; color: #243f50; background: #edf3f6; border-radius: .25rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; overflow-wrap: anywhere; }
.sidebar { display: grid; gap: 1rem; }
.facts { display: grid; gap: .62rem; margin: 0; }
.facts--spaced { margin-bottom: 1rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px solid #e8edf0; }
.facts dt { color: var(--muted); font-size: .78rem; }
.facts dd { margin: 0; font-size: .8rem; font-weight: 700; text-align: right; }
.mail-derived { display: grid; gap: .55rem; margin: .95rem 0 1rem; padding: .8rem; background: #f4f8fa; border: 1px solid #d7e5ec; border-radius: .75rem; }
.mail-derived__eyebrow { margin: 0; color: var(--blue-700); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mail-derived .facts { gap: .45rem; }
.mail-derived .facts div { padding-bottom: .38rem; }
.mail-derived__message { margin: .1rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; overflow-wrap: anywhere; }
.inventory-list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.inventory-list li { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .78rem; }
.danger-zone { border-color: #f2c4bf; }
.danger-zone__actions { display: grid; justify-items: start; gap: .75rem; margin-top: .9rem; }
.danger-zone__actions form { margin: 0; }
.history { margin-top: 1.25rem; }
.controls-form { display: grid; gap: .8rem; }
.controls-form label { display: grid; gap: .3rem; color: #415460; font-size: .76rem; font-weight: 750; }
.controls-form input, .controls-form select, .controls-form textarea {
  width: 100%;
  min-height: 40px;
  padding: .55rem .65rem;
  color: var(--text);
  background: #fbfcfd;
  border: 1px solid #c8d5dd;
  border-radius: .5rem;
}
.controls-form textarea { min-height: 74px; resize: vertical; }
.controls-form .checkbox { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: .5rem; }
.controls-form .checkbox input { width: 18px; min-height: 18px; }
.extended-scan-form { display: grid; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.extended-scan-form .checkbox { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .55rem; color: #536775; font-size: .78rem; line-height: 1.45; }
.extended-scan-form .checkbox input { width: 18px; height: 18px; margin-top: .1rem; }
.extended-scan-form .button { width: 100%; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

.empty-state { padding: 3rem 1rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; }
.empty-state__icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto .8rem; color: var(--clear); background: var(--clear-bg); border-radius: 50%; }
.empty-state__icon .icon { width: 25px; height: 25px; }
.empty-state h3 { margin: 0; }
.empty-state p { margin: .35rem 0 0; color: var(--muted); }

.form-shell { width: min(680px, 100%); margin: 0 auto; }
.form-card { display: grid; gap: 1.1rem; margin-top: 1.5rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--shadow); }
.form-card label { display: grid; gap: .38rem; color: #415460; font-size: .8rem; font-weight: 750; }
.form-card input { width: 100%; min-height: 44px; padding: .65rem .75rem; color: var(--text); background: #fbfcfd; border: 1px solid #c8d5dd; border-radius: .55rem; }
.form-card fieldset { display: grid; gap: 1rem; margin: 0; padding: 0 0 1rem; border: 0; border-bottom: 1px solid var(--line); }
.form-card fieldset:last-of-type { border-bottom: 0; }
.form-card legend { margin-bottom: .25rem; color: var(--navy-900); font-size: 1rem; font-weight: 850; }
.form-hint { margin: -.5rem 0 0; color: var(--muted); font-size: .78rem; }
.form-card .checkbox { display: flex; align-items: center; gap: .55rem; }
.form-card .checkbox input { width: 18px; min-height: 18px; }
.form-card .checkbox--inline { align-content: center; padding-top: 1.5rem; }
.form-actions { justify-content: flex-end; padding-top: .3rem; }
.notice { margin: 1rem 0; padding: .8rem 1rem; border-radius: .55rem; }
.notice--error { color: var(--high); background: var(--high-bg); border: 1px solid #f3c1bc; }
.notice--success { color: var(--clear); background: var(--clear-bg); border: 1px solid #b8e4ce; }
.diagnostics-card { margin-top: 1.25rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--shadow); }
.diagnostics-card h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.diagnostics-card p { margin: 0 0 1rem; color: var(--muted); }
.mail-import-runs { display: grid; gap: .85rem; }
.mail-import-run { display: grid; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fbfdfe; }
.mail-import-run header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.mail-import-run header strong { display: block; color: var(--navy-900); font-size: .98rem; line-height: 1.3; }
.mail-import-run__label { display: block; margin-bottom: .15rem; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.mail-import-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin: 0; }
.mail-import-stats span { display: grid; gap: .18rem; padding: .65rem; color: var(--muted); background: var(--surface); border: 1px solid #e7edf1; border-radius: .6rem; font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.mail-import-stats strong { color: var(--navy-900); font-size: 1.2rem; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; }
.mail-import-message { margin: 0 !important; color: var(--text) !important; line-height: 1.45; overflow-wrap: anywhere; }
.mail-import-status { display: inline-flex; align-items: center; min-height: 1.6rem; padding: .2rem .55rem; border-radius: 999px; color: var(--muted); background: #eef3f6; font-size: .74rem; font-weight: 850; text-transform: uppercase; }
.mail-import-status--ok,
.mail-import-status--processed,
.mail-import-status--accepted { color: var(--clear); background: var(--clear-bg); }
.mail-import-status--error,
.mail-import-status--rejected { color: var(--high); background: var(--high-bg); }
.mail-import-status--skipped { color: #9a5a00; background: #fff4dd; }
.webhook-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.webhook-facts div { display: grid; gap: .18rem; padding: .65rem; background: var(--surface); border: 1px solid #e7edf1; border-radius: .6rem; }
.webhook-facts span { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.webhook-facts strong { color: var(--navy-900); font-size: .95rem; overflow-wrap: anywhere; }
.webhook-values { display: grid; gap: .45rem; margin: 0; }
.webhook-values div { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: .65rem; }
.webhook-values dt { color: var(--muted); font-size: .78rem; font-weight: 800; }
.webhook-values dd { margin: 0; overflow-wrap: anywhere; }
.webhook-payload { max-height: 260px; margin: .7rem 0 0; padding: .75rem; overflow: auto; background: #edf3f6; border-radius: .6rem; }
.webhook-payload code { padding: 0; background: transparent; white-space: pre-wrap; }
.mail-import-details { margin-top: .55rem; }
.mail-import-details summary { cursor: pointer; color: var(--blue-700); font-weight: 800; }
.mail-import-details ul { display: grid; gap: .45rem; margin: .55rem 0 0; padding: 0; list-style: none; }
.mail-import-details li { display: grid; gap: .2rem; padding: .55rem; background: #f7fafc; border: 1px solid var(--line); border-radius: .55rem; }
.mail-import-details small { color: var(--muted); overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes pulse { 50% { opacity: .45; } }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--plugins { grid-template-columns: repeat(2, 1fr); }
  .cards--newsflash { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar { min-height: 68px; padding: 0 1rem; }
  .brand small { display: none; }
  .shell { width: min(100% - 1.25rem, 1420px); padding-top: 1.4rem; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 1rem; }
  .page-actions { justify-content: stretch; }
  .heading-actions { align-items: stretch; flex-direction: column-reverse; }
  .page-actions .heading-actions { flex-wrap: nowrap; }
  .heading-actions .button, .heading-actions form, .heading-actions form .button { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .cards--plugins { grid-template-columns: 1fr; }
  .cards--newsflash { grid-template-columns: 1fr; }
  .card { min-height: 112px; }
  .panel__header { align-items: stretch; flex-direction: column; }
  .search input { width: 100%; }
  th, td { padding: .72rem .75rem; }
  .finding dl div { grid-template-columns: 1fr; gap: .15rem; }
  .newsflash-item dl div { grid-template-columns: 1fr; gap: .15rem; }
  .finding .due { width: 100%; margin: .35rem 0 0; }
  .finding__top { flex-wrap: wrap; }
  .sidebar { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .mail-import-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mail-import-run header { align-items: flex-start; }
  .webhook-facts { grid-template-columns: 1fr; }
  .webhook-values div { grid-template-columns: 1fr; gap: .12rem; }
  .plugin-sites li { min-width: 0; align-items: flex-start; flex-direction: column; gap: .1rem; }
  .plugin-form .button { width: 100%; }
}
