:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #eef2f7;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 0.65rem 0.9rem; background: #235cff; color: white; font-weight: 650; transition: transform 80ms ease, filter 120ms ease, box-shadow 120ms ease; box-shadow: 0 1px 0 rgba(15, 23, 42, 0.16); }
button.secondary { background: #64748b; }
button.danger { background: #b42318; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.active { background: #102a63; }
button:hover:not(:disabled) { filter: brightness(0.95); }
/* Compact left-aligned action button for grid card/form layouts where the default stretched full-width button is visually too heavy (Security Status refresh, Session Binding save). */
button.inline-action { justify-self: start; align-self: start; width: auto; padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.button-link {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  background: #235cff;
  color: white;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.button-link:hover { filter: brightness(0.95); }
button:active:not(:disabled), .button-link:active { transform: translateY(1px) scale(0.99); filter: brightness(0.9); box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.28); }
button:focus-visible, .button-link:focus-visible { outline: 3px solid rgba(35, 92, 255, 0.32); outline-offset: 2px; }
button.button-working { filter: brightness(0.92); box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.32), 0 0 0 3px rgba(35, 92, 255, 0.18); transform: translateY(1px); }
.persistent-notice { scroll-margin-top: 1rem; }
.export-action-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.compact-export-action-row { gap: 0.35rem; }
.compact-export-action-row .button-link { padding: 0.45rem 0.65rem; font-size: 0.88rem; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-card { width: min(420px, 100%); background: white; padding: 1.6rem; border-radius: 18px; box-shadow: 0 16px 40px rgba(18, 36, 66, 0.12); display: grid; gap: 1rem; }
.login-card h1, .page-title h1, .card h2 { margin: 0; }
.login-card p, .page-title p, .muted { margin: 0.35rem 0 0; color: #64748b; }
.card { background: white; padding: 1.2rem; border-radius: 16px; box-shadow: 0 8px 24px rgba(18, 36, 66, 0.08); display: grid; gap: 1rem; }
.split-stack { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 0.95rem; }
label { display: grid; gap: 0.35rem; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #c9d3e4; border-radius: 10px; padding: 0.7rem; background: white; color: #172033; }
textarea { min-height: 7rem; }
.checkbox { display: flex; align-items: center; gap: 0.5rem; }
.checkbox input { width: auto; }
.error-box, .warning-box, .notice-box, .success-box { padding: 0.85rem 1rem; border-radius: 12px; font-weight: 650; }
.error-box { background: #fff1f0; color: #b42318; border: 1px solid #ffccc7; }
.warning-box { background: #fff7e6; color: #ad6800; border: 1px solid #ffd591; }
.notice-box, .success-box { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.2rem; background: #111827; color: white; }
.brand { display: flex; align-items: baseline; gap: 0.55rem; }
.brand span { color: #cbd5e1; font-size: 0.9rem; }
.identity { display: flex; align-items: center; gap: 0.7rem; }
.topbar button { background: #374151; }
.role-pill { border: 1px solid #475569; border-radius: 999px; padding: 0.25rem 0.55rem; color: #dbeafe; }
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.sidebar { padding: 1rem; background: white; border-right: 1px solid #dbe3ef; display: flex; flex-direction: column; gap: 0.5rem; }
.nav-category { display: flex; flex-direction: column; gap: 0.5rem; }
.nav-category button { width: 100%; }
.nav-category[data-category="dns-naming"] { --nav-category-color: #2563eb; }
.nav-category[data-category="http-web"] { --nav-category-color: #0f766e; }
.nav-category[data-category="api-openapi"] { --nav-category-color: #6d28d9; }
.nav-category[data-category="identity-authentication"] { --nav-category-color: #be185d; }
.nav-category[data-category="tls-certificates"] { --nav-category-color: #4d7c0f; }
.nav-category[data-category="mail"] { --nav-category-color: #0e7490; }
.nav-category[data-category="network-connectivity"] { --nav-category-color: #15803d; }
.nav-category[data-category="edge-proxy-waf"] { --nav-category-color: #b45309; }
.nav-category[data-category="utilities"] { --nav-category-color: #475569; }
.nav-category[data-category="account"] { --nav-category-color: #075985; }
.nav-category[data-category="administration"] { --nav-category-color: #b91c1c; }
.nav-category[data-category] .nav-section-title { color: var(--nav-category-color); }
.nav-category[data-category] button { background: var(--nav-category-color); }
.nav-category[data-category] button.active { background: #102a63; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.88), 0 1px 0 rgba(15, 23, 42, 0.16); }
.nav-section-title { margin: 0.8rem 0 0.15rem; color: #64748b; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.content { padding: 1rem; display: grid; gap: 1rem; align-content: start; }
.result { background: #0b1020; color: #d8e3ff; padding: 1rem; border-radius: 12px; overflow: auto; max-height: 540px; }
.command-output { background: #0b1020; color: #d8e3ff; padding: 1rem; border-radius: 12px; overflow: auto; white-space: pre-wrap; word-break: break-word; max-height: 460px; }
.command-output.warning { color: #ffe7ba; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; }
.metric { border: 1px solid #dbe3ef; border-radius: 14px; padding: 0.9rem; background: #f8fafc; display: grid; gap: 0.35rem; }
.metric span { color: #64748b; font-size: 0.85rem; font-weight: 700; }
.metric strong { font-size: 1rem; word-break: break-word; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; border-bottom: 1px solid #e2e8f0; padding: 0.72rem; vertical-align: top; }
th { color: #475569; font-size: 0.85rem; background: #f8fafc; }
td code { white-space: pre-wrap; word-break: break-word; }
/* v2.17.73 table row contrast/readability pass.
   WHY: Dense timing and evidence tables were hard to scan because every body row
   used the same white background. Keep semantic status colors intact while adding
   a low-specificity zebra stripe, stronger horizontal rules and a hover/read focus. */
:where(table tbody tr:nth-child(even)) {
  background: #f5f8fc;
}
:where(table tbody tr:hover) {
  background: #eef6ff;
}
:where(table tbody tr:last-child th, table tbody tr:last-child td) {
  border-bottom-color: #cbd5e1;
}
:where(th, td) {
  border-bottom-color: #cbd5e1;
}
:where(th) {
  background: #eef3f8;
  color: #334155;
  border-bottom-color: #cbd5e1;
}

.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.22rem 0.55rem; font-weight: 800; font-size: 0.82rem; }
.status.good { background: #bbf7d0; color: #166534; }
.status.warn { background: #fef0c7; color: #b54708; }
.status.bad { background: #fee4e2; color: #b42318; }

/* Findings severity summary badges shown above a tool's findings table. */
.findings-summary { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6rem; }
.findings-summary-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid transparent;
}
.findings-summary-badge.severity-critical { background: #fee4e2; color: #b42318; border-color: #fca5a5; }
.findings-summary-badge.severity-warning { background: #fef0c7; color: #b54708; border-color: #fcd34d; }
.findings-summary-badge.severity-review { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.findings-summary-badge.severity-info { background: #eef4fb; color: #1d4ed8; border-color: #bfdbfe; }
.findings-summary-badge.severity-ok { background: #dcfae6; color: #067647; border-color: #a7f3d0; }

/* Redesigned assessment finding cards: severity-accented, with a highlighted trigger value
   and a surfaced recommendation. Replaces the old triple-nested accordions. */
.finding-card-list { display: flex; flex-direction: column; gap: 12px; }
.finding-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 16px;
}
.finding-card-bad { border-left-color: #d92d20; }
.finding-card-warn { border-left-color: #f59e0b; }
.finding-card-info { border-left-color: #2563eb; }
.finding-card-good { border-left-color: #12b76a; }
.finding-card-neutral { border-left-color: #94a3b8; }
.finding-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.finding-card-title { font-weight: 600; font-size: 0.95rem; }
.finding-card-tool { margin-left: auto; font-size: 0.8rem; color: #64748b; }
.finding-card-trigger {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 6px; margin-bottom: 8px;
}
.finding-card-trigger .finding-trigger-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: 0.9rem; }
.finding-card-trigger .finding-trigger-label,
.finding-card-trigger .finding-trigger-suffix { font-size: 0.78rem; }
.finding-trigger-bad { background: #fee4e2; }
.finding-trigger-bad .finding-trigger-value, .finding-trigger-bad .finding-trigger-label, .finding-trigger-bad .finding-trigger-suffix { color: #b42318; }
.finding-trigger-warn { background: #fef0c7; }
.finding-trigger-warn .finding-trigger-value, .finding-trigger-warn .finding-trigger-label, .finding-trigger-warn .finding-trigger-suffix { color: #b54708; }
.finding-trigger-info { background: #eef4fb; }
.finding-trigger-info .finding-trigger-value, .finding-trigger-info .finding-trigger-label, .finding-trigger-info .finding-trigger-suffix { color: #1d4ed8; }
.finding-trigger-good { background: #dcfae6; }
.finding-trigger-good .finding-trigger-value, .finding-trigger-good .finding-trigger-label, .finding-trigger-good .finding-trigger-suffix { color: #067647; }
.finding-trigger-neutral { background: #f1f5f9; }
.finding-trigger-neutral .finding-trigger-value, .finding-trigger-neutral .finding-trigger-label, .finding-trigger-neutral .finding-trigger-suffix { color: #475569; }
.finding-card-summary { font-size: 0.88rem; color: #475569; margin: 0 0 8px; line-height: 1.55; }
.finding-card-reco {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.83rem; color: #334155; background: #f8fafc;
  padding: 8px 12px; border-radius: 6px; margin-bottom: 8px;
}
.finding-card-reco .finding-reco-icon { color: #2563eb; line-height: 1.4; }
.finding-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.76rem; }
.finding-card-evidence { margin-top: 8px; }
.finding-card-evidence > summary { cursor: pointer; font-size: 0.8rem; color: #2563eb; }
.finding-source-badge { font-size: 0.74rem; background: #eef4fb; color: #1d4ed8; padding: 2px 8px; border-radius: 10px; }
.finding-card-sources { margin-top: 6px; }
.finding-card-sources > summary { cursor: pointer; font-size: 0.8rem; color: #64748b; }
.finding-source-list { margin: 6px 0 0; padding-left: 18px; font-size: 0.8rem; color: #475569; }

/* DNS Resolver Compare view: grouped, collapsible answer comparison. */
.resolver-compare-groups { margin-top: 1rem; }
.resolver-compare-group {
  margin-top: 0.75rem;
  border: 1px solid #d7e1ef;
  border-radius: 0.7rem;
  background: #f8fbff;
  overflow: hidden;
}
.resolver-compare-group > summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #10203a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.resolver-compare-group[open] > summary { border-bottom: 1px solid #d7e1ef; }
.resolver-compare-agree > summary,
.resolver-compare-consensus > summary { background: #f0fdf4; }
.resolver-group-body { padding: 0.5rem 1rem 0.85rem; }
.resolver-value-list { margin: 0; padding-left: 1.1rem; }
.resolver-value-list li { margin: 0.15rem 0; }
.resolver-compare-raw { margin-top: 1rem; }

/* Value-by-resolver presence matrix: rows = answer values, columns = resolvers. */
.resolver-compare-matrix { margin-top: 0.75rem; }
.resolver-compare-matrix th,
.resolver-compare-matrix td { text-align: center; vertical-align: middle; }
.resolver-compare-matrix th:first-child,
.resolver-compare-matrix td:first-child { text-align: left; }
.resolver-matrix-col { white-space: nowrap; }
.resolver-matrix-name { display: block; font-weight: 600; }
.resolver-matrix-server { display: block; font-size: 0.75rem; color: #64748b; font-weight: 400; }
/* Rows where resolvers disagree (not every resolver has the value) are highlighted. */
.resolver-matrix-diff-row { background: #fef3f2; }
.resolver-matrix-cell { font-weight: 700; }
.resolver-cell-present { color: #067647; }
.resolver-cell-absent { color: #94a3b8; }
/* The important case: a consensus value this resolver is MISSING. */
.resolver-cell-missing { color: #b42318; background: #fee4e2; }
.resolver-diff-tag {
  margin-left: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #b54708;
}
.resolver-diff-tag-extra { color: #b54708; }

/* Multi-worker record-array comparison (DNSSEC answer/dnskey/rrsig records). */
.record-compare-cell { vertical-align: top; min-width: 220px; }
.record-compare-count { font-size: 0.75rem; margin-top: 0.2rem; }
.record-compare-list { display: flex; flex-direction: column; gap: 0.3rem; }
.record-compare-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  background: #ffffff;
  overflow: hidden;
}
.record-compare-item > summary {
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.record-compare-key { font-weight: 600; color: #10203a; word-break: break-word; }
.record-compare-differs { border-color: #f5c2c0; }
.record-compare-differs > summary { background: #fef3f2; }
.record-compare-extra { border-color: #fed7aa; }
.record-compare-extra > summary { background: #fff7ed; }
.record-compare-missing { border-style: dashed; opacity: 0.75; }
.record-compare-missing > summary { background: #f8fafc; }
.record-diff-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #b42318;
}
.record-diff-tag-extra { color: #b54708; }
.record-diff-tag-same { color: #94a3b8; font-weight: 500; }
.record-compare-same { font-size: 0.78rem; color: #94a3b8; padding: 2px 0; }
.record-compare-allsame { font-size: 0.8rem; }
.record-compare-identical-fields > details > summary,
.record-compare-hidden-same > summary { cursor: pointer; font-size: 0.78rem; color: #64748b; padding: 2px 0; }
.record-compare-hidden-same { margin-top: 4px; }
.worker-summary-section { margin: 0.5rem 0 1rem; }
.worker-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.worker-summary-card { min-width: 0; border: 0.5px solid var(--border, #e2e8f0); border-radius: 12px; padding: 14px 16px; background: var(--surface-2, #fff); }
.worker-summary-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.worker-summary-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.worker-summary-item { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 0.84rem; }
.worker-summary-label { min-width: 0; color: #64748b; line-height: 1.25; overflow-wrap: anywhere; }
.worker-summary-value { min-width: max-content; max-width: 100%; text-align: right; white-space: normal; overflow-wrap: anywhere; }
.record-compare-fields {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.6rem;
  border-top: 1px solid #eef2f7;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.record-compare-field-key { color: #64748b; font-weight: 600; }
.record-compare-field-val { word-break: break-all; }
.record-compare-field-diff .record-compare-field-val { background: #fee4e2; color: #b42318; }
.record-compare-field-diff .record-compare-field-key { color: #b42318; }
.status.info { background: #dbeafe; color: #1d4ed8; }
.status.neutral { background: #f1f5f9; color: #475569; }

/* WHY this exists alongside .status.good/.warn/.bad: those chips signal via BACKGROUND fill.
   This mirrors the JWT Validator tool's .status-icon pattern (glyph + foreground color),
   giving a second, independent signal - shape (check/x/triangle) plus text color rather than
   chip fill - so status remains legible even if background-color rendering is suppressed for
   any reason. Same color values as .jwt-validator-tool .status-icon for visual consistency,
   just unscoped so any tool (not only the JWT Validator) can use it. */
.protocol-status-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; font-weight: 900; margin-right: 0.35rem; }
.protocol-status-icon.valid { color: #16a34a; }
.protocol-status-icon.invalid { color: #dc2626; }
.protocol-status-icon.warning { color: #d97706; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.pill-list li { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; padding: 0.3rem 0.55rem; border-radius: 999px; font-weight: 700; }
.action-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
/* WHY: form submit buttons stretch to the grid width by default, which made
   "Upload and verify release" a full-width bar. .compact keeps a button at its
   natural size inside a form grid. */
.form-actions { display: flex; justify-content: flex-start; }
button.compact { width: auto; align-self: flex-start; padding: 0.4rem 0.9rem; font-size: 0.9rem; }
button.primary { background: #1d4ed8; color: #ffffff; }
.campaign-launch-row { margin: 1rem 0 0.5rem; }
.campaign-delete-row { margin-top: 0.75rem; }
.campaign-maintenance { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 0.75rem; }
.campaign-maintenance label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.campaign-maintenance select { width: auto; }
/* WHY: nginx tuning suggestions are actionable values, so they read as a
   distinct block rather than more advisory prose. */
.nginx-recommendations { margin: 0.75rem 0; }
.nginx-recommendation { margin-bottom: 1rem; }
.nginx-recommendation:last-child { margin-bottom: 0; }
.nginx-recommendation code { font-size: 0.85rem; }
.settings-action-row { margin-top: 1rem; margin-bottom: 1rem; gap: 0.8rem; align-items: center; }
.settings-test-row { margin-top: 0.9rem; gap: 0.8rem; align-items: center; }
.settings-test-row input { max-width: 360px; }
.button-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
details summary { cursor: pointer; font-weight: 800; margin: 0.5rem 0; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; overflow-x: auto; }
  .nav-section-title { display: none; }
  .topbar { align-items: flex-start; gap: 0.8rem; flex-direction: column; }
}

/* v0.1.10 alignment fixes */
.content {
  width: 100%;
  max-width: 100%;
}
.card {
  width: 100%;
}
.card > h2,
.card > h3,
.page-title h1,
.page-title p {
  margin-left: 0;
}
.summary-grid {
  align-items: stretch;
}
.metric {
  min-height: 4.8rem;
  align-content: start;
}
.table-wrap {
  width: 100%;
}
table {
  table-layout: fixed;
}
th,
td {
  line-height: 1.45;
}
.key-value-table th {
  width: 18rem;
  min-width: 18rem;
  text-align: left;
  vertical-align: top;
  font-weight: 800;
  color: #475569;
}
.key-value-table td {
  width: auto;
  vertical-align: top;
}
.key-value-table code,
.certificate-chain-table code,
.dnssec-record-table code,
.record-table code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.certificate-chain-table th:nth-child(1),
.certificate-chain-table td:nth-child(1) { width: 4rem; }
.certificate-chain-table th:nth-child(2),
.certificate-chain-table td:nth-child(2) { width: 8rem; }
.certificate-chain-table th:nth-child(5),
.certificate-chain-table td:nth-child(5) { width: 13rem; }
.certificate-chain-table th:nth-child(6),
.certificate-chain-table td:nth-child(6) { width: 24rem; }
.record-table th:nth-child(1),
.record-table td:nth-child(1) { width: 18rem; }
.record-table th:nth-child(2),
.record-table td:nth-child(2) { width: 7rem; }
.record-table th:nth-child(3),
.record-table td:nth-child(3) { width: 7rem; }
.record-table th:nth-child(4),
.record-table td:nth-child(4) { width: 9rem; }
.record-copy-table th.record-copy-heading,
.record-copy-table td.record-copy-cell {
  width: 8.5rem;
  min-width: 8.5rem;
  text-align: right;
  vertical-align: top;
}
.record-copy-cell {
  white-space: nowrap;
}
.record-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 7rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.2;
}
.dnssec-record-table th,
.dnssec-record-table td {
  vertical-align: top;
}
.command-output,
.result {
  width: 100%;
}
@media (max-width: 900px) {
  .key-value-table th {
    width: 11rem;
    min-width: 11rem;
  }
}

/* v0.1.25 mobile result rendering */
@media (max-width: 640px) {
  body { min-width: 0; }
  .topbar {
    padding: 0.75rem;
  }
  .identity {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .sidebar {
    padding: 0.75rem;
    gap: 0.45rem;
  }
  .sidebar button {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .content {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .card {
    padding: 0.9rem;
    border-radius: 14px;
  }
  .page-title h1,
  .card h2 {
    font-size: 1.35rem;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .metric {
    min-height: auto;
  }
  .table-wrap {
    overflow-x: visible;
  }
  table.responsive-table,
  table.responsive-table thead,
  table.responsive-table tbody,
  table.responsive-table tr,
  table.responsive-table th,
  table.responsive-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }
  table.responsive-table thead {
    display: none;
  }
  table.responsive-table tr {
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #ffffff;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 14px rgba(18, 36, 66, 0.06);
  }
  table.responsive-table td {
    border-bottom: 0;
    padding: 0.45rem 0;
    display: grid;
    grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
  }
  table.responsive-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 800;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }
  table.responsive-table td code,
  table.responsive-table td span,
  table.responsive-table td div,
  table.responsive-table td select {
    min-width: 0;
    max-width: 100%;
  }
  table.responsive-key-value,
  table.responsive-key-value tbody,
  table.responsive-key-value tr,
  table.responsive-key-value th,
  table.responsive-key-value td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }
  table.responsive-key-value tr {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.7rem;
    margin-bottom: 0.65rem;
  }
  table.responsive-key-value th {
    border-bottom: 0;
    padding: 0 0 0.4rem 0;
    background: transparent;
    color: #64748b;
    font-size: 0.82rem;
  }
  table.responsive-key-value td {
    border-bottom: 0;
    padding: 0;
  }
  .record-copy-table th.record-copy-heading,
  .record-copy-table td.record-copy-cell {
    width: auto;
    min-width: 0;
    text-align: left;
  }
  .record-copy-button {
    width: auto;
    min-width: 7rem;
  }
  .dnssec-record-table code,
  .record-table code,
  .certificate-chain-table code,
  .key-value-table code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .command-output,
  .result {
    max-height: none;
    font-size: 0.82rem;
    padding: 0.75rem;
  }
  .pill-list li {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.totp-setup-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.totp-qr { width: 220px; max-width: 100%; border: 1px solid #d4dce8; border-radius: 12px; background: #fff; padding: .5rem; }
.secret-value { display: block; overflow-wrap: anywhere; white-space: normal; padding: .75rem; border: 1px solid #d4dce8; border-radius: 10px; background: #f7f9fc; }
.settings-grid { display: grid; gap: 1rem; }
.checkbox.inline { display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 700px) { .totp-setup-box { grid-template-columns: 1fr; } }

/* v0.1.28 active-session management */
.metric-button {
  color: inherit;
  text-align: left;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}
.metric-button:hover {
  filter: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.metric-button span {
  color: #1d4ed8;
}
.metric-button strong {
  color: #172033;
}

/* v0.1.28 mobile history/table overflow fix */
@media (max-width: 640px) {
  table.responsive-table td {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  table.responsive-table td::before {
    min-width: 0;
  }
  table.responsive-table td > * {
    min-width: 0;
    max-width: 100%;
  }
  table.responsive-table td[data-label="Time"],
  table.responsive-table td[data-label="Created"],
  table.responsive-table td[data-label="Last Seen"],
  table.responsive-table td[data-label="Expires"] {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* v0.1.28 HTTP authentication options */
.form-section {
  border: 1px solid #d4dce8;
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  background: #f8fafc;
}
.form-section legend {
  padding: 0 0.35rem;
  font-weight: 700;
  color: #172033;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.sub-card {
  border: 1px solid #dbe3ef;
  border-radius: 0.9rem;
  padding: 1rem;
  background: #f8fafc;
  min-width: 0;
}

.sub-card h3 {
  margin-top: 0;
}

.sub-card .table-wrap {
  margin-top: 0.5rem;
}

/* WHY: the .muted intro paragraph only carries top margin, so the button row directly
   beneath it sat flush against the text. Match the 0.5rem inter-block spacing used
   between other sub-card elements (see .sub-card .table-wrap above) for visual consistency. */
.sub-card .muted + .action-row {
  margin-top: 0.5rem;
}

/* v0.1.58 Security Status layout fix */
.security-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  align-items: stretch;
}

.security-grid .sub-card {
  overflow: hidden;
}

.security-kv-list {
  display: grid;
  gap: 0;
  margin-top: 0.75rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
}

.security-kv-row {
  display: grid;
  grid-template-columns: minmax(9rem, 34%) minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid #dbe3ef;
  min-width: 0;
}

.security-kv-row:first-child {
  border-top: 0;
}

.security-kv-key {
  padding: 0.65rem 0.75rem;
  background: #f1f5f9;
  font-weight: 700;
  color: #52637a;
  overflow-wrap: break-word;
  min-width: 0;
}

.security-kv-value {
  padding: 0.65rem 0.75rem;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.security-code {
  display: inline-block;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.security-pill-list {
  margin: 0;
  padding: 0;
}

.security-pill-list li {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.security-kv-value .security-kv-list {
  margin-top: 0;
  border-radius: 0.5rem;
}

@media (min-width: 1600px) {
  .security-grid {
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  }
}

@media (max-width: 720px) {
  .security-kv-row {
    grid-template-columns: 1fr;
  }
  .security-kv-key {
    border-bottom: 1px solid #dbe3ef;
  }
}

/* v0.1.77 Security Status dependency layout */
.security-wide-card {
  grid-column: 1 / -1;
}

.dependency-lock-card {
  overflow: visible;
}

.dependency-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.dependency-panel .security-kv-row {
  grid-template-columns: minmax(11rem, 34%) minmax(0, 1fr);
}

@media (max-width: 1100px) {
  .dependency-layout {
    grid-template-columns: 1fr;
  }
}

.dependency-panel {
  min-width: 0;
  border: 1px solid #dbe3ef;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.9rem;
}

.dependency-panel-wide {
  grid-column: 1 / -1;
}

.dependency-panel h4 {
  margin: 0 0 0.75rem;
  color: #172033;
}

.dependency-version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.6rem;
}

.dependency-version-item {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.65rem;
  background: #f8fafc;
}

.dependency-version-item span {
  min-width: 0;
  font-weight: 700;
  color: #52637a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dependency-version-item code {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* v0.1.77 HTTP raw request/response collapsible panels */
.raw-http-panel {
  margin-top: 1rem;
  border: 1px solid #d7e1ef;
  border-radius: .7rem;
  background: #f8fbff;
  overflow: hidden;
}

.raw-http-panel > summary {
  cursor: pointer;
  padding: .85rem 1rem;
  font-weight: 700;
  color: #10203a;
  background: #eef4fb;
}

.raw-http-panel[open] > summary {
  border-bottom: 1px solid #d7e1ef;
}

.raw-http-message {
  margin: 0;
  border-radius: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Rendered (sandboxed) HTTP response body preview */
.rendered-http-preview-frame {
  display: block;
  height: 480px;
  margin: 0 1rem 1rem;
  width: calc(100% - 2rem);
  border: 1px solid #d7e1ef;
  border-radius: .5rem;
  background: #ffffff;
  resize: vertical;
  overflow: auto;
}

/* v0.1.77 TLS received certificate PEM panels */
.certificate-pem-panels {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.certificate-pem-panel summary {
  font-weight: 700;
}

.certificate-pem-summary {
  margin: 0.75rem 0;
}

.certificate-pem-panel .raw-http-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* v0.1.77 TLS raw ClientHello/ServerHello panels */
.tls-handshake-panels {
  margin-top: 1rem;
}


/* v0.1.77 TLS handshake diagnostic panels */
.tls-handshake-panels .raw-http-message {
  max-height: none;
  overflow: auto;
  white-space: pre;
}

.tls-handshake-panels .hello-summary {
  overflow-x: auto;
}

/* v0.1.82 Base64 tool */
.drop-zone {
  border: 2px dashed #c9d3e4;
  border-radius: 14px;
  min-height: 10rem;
  padding: 1.25rem;
  display: grid;
  place-items: center;
  gap: 0.5rem;
  text-align: center;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
}
.drop-zone strong {
  color: #172033;
}
.drop-zone:hover {
  border-color: #235cff;
  background: #eff6ff;
}
.hidden-file-input {
  display: none;
}
.sidebar a { color: #172033; text-decoration: none; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 0.65rem 0.9rem; font-weight: 650; }
.sidebar a.active, .sidebar a:hover { color: white; background: #102a63; }
.worker-checkbox-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.4rem; margin-top: 0.5rem; display: grid; }

html.auth-precheck-pending #root { visibility: hidden; }
.session-loading-page .login-card { min-height: 8rem; justify-content: center; }

/* Worker admin action colors: keep destructive, access and secret actions visually distinct. */
button.worker-access-action { background: #0f766e; color: #ffffff; }
button.worker-secret-action { background: #7c3aed; color: #ffffff; }
button.worker-access-action:hover:not(:disabled), button.worker-secret-action:hover:not(:disabled) { filter: brightness(0.95); }

/* Worker admin: structured checkbox controls for tools and edit dialog. */
.checkbox-fieldset {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0.9rem;
  background: #f8fafc;
}
.checkbox-fieldset legend {
  font-weight: 800;
  padding: 0 0.4rem;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.45rem 0.8rem;
}

/* Role editor: group container for an inheritable policy field plus its Override toggle. */
.role-field-group {
  border: 1px solid #dbe3ef;
  border-radius: 0.7rem;
  padding: 0.75rem 0.9rem;
  margin: 0;
}
.role-field-group > legend {
  font-weight: 600;
  padding: 0 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
/* Operational vs administrative action blocks; the admin block is visually divided. */
.role-action-block {
  margin-top: 0.5rem;
}
.role-action-block-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.role-action-block-admin {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #cbd5e1;
}
/* The per-field Override toggle reads as a small inline control on the field label/legend. */
.override-toggle {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}
/* Inherited (non-overridden) fields are shown but grayed out and non-interactive, so the
   admin can see the value the child receives from its parent without being able to edit it. */
.inherited-field,
.inherited-field input,
.inherited-field select {
  color: #94a3b8;
}
.inherited-field input:disabled,
.inherited-field select:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
}
/* Per-action override row: a small "ovr" toggle alongside the action grant checkbox. */
.role-action-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.action-override-toggle {
  flex: 0 0 auto;
  font-size: 0.7rem;
  color: #64748b;
}
.action-override-toggle .action-override-label {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.role-action-item.inherited-field .action-override-toggle {
  color: #94a3b8;
}
/* Inline text buttons used for bulk "Override all / Inherit all" action helpers. */
.link-button {
  background: none;
  border: none;
  padding: 0;
  color: #2563eb;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.link-button:hover {
  color: #1d4ed8;
}
.worker-tool-checkbox-grid .checkbox {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: start center;
  padding: 4rem 1rem;
  background: rgba(15, 23, 42, 0.55);
  overflow: auto;
}
.modal-card {
  width: min(980px, 100%);
  max-height: calc(100vh - 8rem);
  overflow: auto;
}

.source-ip-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.copy-source-ip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: auto;
  padding: 0.25rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.2;
}
.source-ip-card .summary-grid {
  margin-top: 0.75rem;
}
@media (max-width: 768px) {
  .copy-source-ip-button {
    display: none;
  }
}
.worker-credential-notice { display: grid; justify-items: start; gap: 0.5rem; }
.worker-credential-notice > button { display: block; margin-top: 0.25rem; }
.worker-credential-notice > pre { width: 100%; margin-top: 0.5rem; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }


/* v2.4.x run history search and detail view */
.history-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  align-items: end;
}
.history-filter-actions,
.table-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.table-action-row button,
.table-action-row .button-link {
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
}


/* v2.4.x run history detail visibility */
.history-run-detail-panel {
  scroll-margin-top: 1rem;
}

.selected-run-row td {
  background: rgba(120, 120, 120, 0.08);
}

/* v2.17.73 finding details stay anchored under the selected row.
   WHY: Findings lists can be long; opening details at the bottom forces scrolling away from
   the selected record and makes it hard to keep context. */
.findings-table .finding-inline-detail-row > td {
  padding: 0 0.75rem 1rem;
  background: #f8fbff;
  border-bottom: 1px solid #b6c6dc;
}
.findings-table .finding-inline-detail-row:hover > td {
  background: #f8fbff;
}
.finding-inline-detail-card {
  margin: 0.35rem 0 0.2rem;
  padding: 1rem;
  border: 1px solid #c9d7eb;
  border-left: 4px solid #235cff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 36, 66, 0.08);
  display: grid;
  gap: 1rem;
}
.finding-inline-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.finding-inline-detail-header .page-title {
  min-width: 0;
}
.finding-inline-detail-header button {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .findings-table .finding-inline-detail-row > td {
    padding: 0.75rem;
  }
  .finding-inline-detail-header {
    display: grid;
  }
}

/* v2.4.x stored run comparison from persisted parsed_result data */
.stored-worker-comparison {
  margin: 1rem 0 1.25rem;
}

.stored-comparison-section {
  margin-top: 1rem;
}

.stored-comparison-body {
  padding: 1rem;
}

.stored-comparison-table code {
  white-space: pre-wrap;
  word-break: break-word;
}

.stored-comparison-row-diff {
  background: rgba(245, 158, 11, 0.06);
}

/* Clearer scalar diff marking for the comparison table. */
.stored-comparison-value-cell { position: relative; vertical-align: top; }
.stored-comparison-different-cell {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: inset 3px 0 0 #f59e0b;
}
.stored-comparison-baseline-cell { box-shadow: inset 3px 0 0 #94a3b8; }
.stored-comparison-diff-tag {
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 700;
  color: #b45309;
}
/* Compact record field: expandable full value for nested arrays/objects. */
.record-compare-field-full { margin-top: 0.15rem; }
.record-compare-field-full > summary { cursor: pointer; font-size: 0.72rem; color: #2563eb; }
.record-compare-field-full > pre { margin: 0.25rem 0 0; max-height: 240px; overflow: auto; font-size: 0.72rem; }

/* Help center and status metrics */
.topbar-help-button {
  background: #235cff;
}
.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.68);
  padding: 1.5rem;
  display: grid;
  place-items: center;
}
.help-panel {
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  background: white;
  color: #172033;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
  display: grid;
  grid-template-rows: auto auto 1fr;
}
.help-header {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #dbe3ef;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.help-header h2 {
  margin: 0;
}
.help-search {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid #dbe3ef;
}
.help-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.help-nav {
  overflow: auto;
  padding: 1rem;
  border-right: 1px solid #dbe3ef;
  background: #f8fafc;
}
.help-nav button {
  width: 100%;
  margin-bottom: 0.45rem;
  text-align: left;
  background: #e2e8f0;
  color: #172033;
}
.help-nav button.active {
  background: #235cff;
  color: white;
}
.help-content {
  overflow: auto;
  padding: 1.2rem;
  line-height: 1.55;
}
.help-content h3 {
  margin-top: 0;
}
.help-content p {
  margin: 0 0 0.85rem;
}
.baseline-comparison-result .error-box,
.baseline-comparison-result .warning-box {
  margin-top: 0.75rem;
}
@media (max-width: 900px) {
  .help-overlay {
    padding: 0.5rem;
  }
  .help-layout {
    grid-template-columns: 1fr;
  }
  .help-nav {
    max-height: 14rem;
    border-right: 0;
    border-bottom: 1px solid #dbe3ef;
  }
  .help-header {
    flex-direction: column;
  }
}

.schedule-form {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--border-color, #d7dce2);
  border-radius: 0.75rem;
  background: var(--panel-background, rgba(255,255,255,0.03));
}
.schedule-form h3 { margin: 0; }
.json-textarea {
  width: 100%;
  min-height: 12rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.error-text { color: #b00020; }

/* Scheduled-run worker selector and autofill hardening */
.compact-section {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
}
.hint-box {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  padding: 0.75rem 0.9rem;
  font-weight: 650;
}
.worker-selection-grid {
  margin-top: 0.6rem;
}
.worker-selection-item {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.worker-selection-item code {
  font-size: 0.75rem;
}

/* Action feedback and runtime-settings layout */
.notice-anchor { scroll-margin-top: 1rem; }
.tool-result-scope { scroll-margin-top: 1rem; }

.field-hint { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* MTU range preset buttons for the PMTU tester. */
.mtu-preset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.35rem; }
.mtu-preset-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.mtu-preset-button {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #f8fafc;
  color: #10203a;
  cursor: pointer;
}
.mtu-preset-button:hover { background: #eef4fb; border-color: #94a3b8; }

/* Per-test/probe request-response evidence panels for proxy behavior & smuggling. */
.probe-evidence-panel { margin-top: 0.6rem; }
.probe-evidence-panel > summary { display: flex; align-items: center; gap: 0.5rem; }
.probe-evidence-flagged { border-color: #f5c2c0; }
.probe-evidence-flagged > summary { background: #fef3f2; }

/* WAF/CDN per-probe response details */
.waf-probe-detail {
  margin-top: 0.75rem;
}
.waf-probe-detail .table-action-row {
  margin: 0.75rem 0;
}
.compact-help {
  margin-top: -0.35rem;
}

/* v2.9.13 multi-worker IPv6 table layout fix */
table.responsive-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.source-ip-inline {
  min-width: 0;
  max-width: 100%;
}
.source-ip-inline .source-ip-value {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.http-worker-summary-table,
.smtp-worker-summary-table {
  min-width: 88rem;
}
.http-worker-summary-table th:nth-child(1),
.http-worker-summary-table td:nth-child(1) { width: 10rem; }
.http-worker-summary-table th:nth-child(2),
.http-worker-summary-table td:nth-child(2) { width: 15rem; }
.http-worker-summary-table th:nth-child(3),
.http-worker-summary-table td:nth-child(3) { width: 9rem; }
.http-worker-summary-table th:nth-child(4),
.http-worker-summary-table td:nth-child(4) { width: 8rem; }
.http-worker-summary-table th:nth-child(5),
.http-worker-summary-table td:nth-child(5) { width: 17rem; }
.http-worker-summary-table th:nth-child(6),
.http-worker-summary-table td:nth-child(6) { width: 8rem; }
.http-worker-summary-table th:nth-child(7),
.http-worker-summary-table td:nth-child(7) { width: 9rem; }
.http-worker-summary-table th:nth-child(8),
.http-worker-summary-table td:nth-child(8) { width: 17rem; }
.http-worker-summary-table th:nth-child(9),
.http-worker-summary-table td:nth-child(9) { width: 10rem; }
.smtp-worker-summary-table th:nth-child(1),
.smtp-worker-summary-table td:nth-child(1) { width: 10rem; }
.smtp-worker-summary-table th:nth-child(2),
.smtp-worker-summary-table td:nth-child(2) { width: 15rem; }
.smtp-worker-summary-table th:nth-child(4),
.smtp-worker-summary-table td:nth-child(4) { width: 17rem; }
.http-worker-summary-table td[data-label="Attempt"],
.http-worker-summary-table td[data-label="HTTP Status"],
.http-worker-summary-table td[data-label="Elapsed"],
.http-worker-summary-table td[data-label="HTTP Version"],
.smtp-worker-summary-table td[data-label="Attempt"],
.smtp-worker-summary-table td[data-label="Port"],
.smtp-worker-summary-table td[data-label="STARTTLS"],
.smtp-worker-summary-table td[data-label="Elapsed"] {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .http-worker-summary-table,
  .smtp-worker-summary-table {
    min-width: 0;
  }
}

/* v2.9.13 run-history datetime and evidence disclosure layout */
.history-filter-grid label {
  min-width: 0;
}
.history-datetime-filter {
  min-width: 17.5rem;
}
.history-datetime-filter input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.history-filter-grid .history-filter-actions {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  align-self: end;
  justify-content: flex-end;
}
.stored-run-per-result-evidence {
  margin-top: 1rem;
  border: 1px solid #d7e1ef;
  border-radius: 0.7rem;
  background: #f8fbff;
  overflow: hidden;
}
.stored-run-per-result-evidence > summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 800;
  color: #10203a;
  background: #eef4fb;
}
.stored-run-per-result-evidence[open] > summary {
  border-bottom: 1px solid #d7e1ef;
}
.stored-run-per-result-evidence > .split-stack {
  padding: 1rem;
}
@media (max-width: 900px) {
  .history-datetime-filter,
  .history-filter-grid .history-filter-actions {
    min-width: 0;
  }
  .history-filter-grid .history-filter-actions {
    justify-content: stretch;
  }
  .history-filter-grid .history-filter-actions > button,
  .history-filter-grid .history-filter-actions > .button-link {
    flex: 1 1 10rem;
  }
}

/* v2.9.20 worker progress table overflow guard */
.worker-progress-panel .table-wrap {
  overflow-x: auto;
}
.worker-progress-table {
  width: 100%;
  min-width: 62rem;
  table-layout: fixed;
}
.worker-progress-table th,
.worker-progress-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.worker-progress-table th:nth-child(1),
.worker-progress-table td:nth-child(1) {
  width: 13rem;
}
.worker-progress-table th:nth-child(2),
.worker-progress-table td:nth-child(2) {
  width: 10rem;
}
.worker-progress-table th:nth-child(3),
.worker-progress-table td:nth-child(3) {
  width: 19rem;
}
.worker-progress-table th:nth-child(4),
.worker-progress-table td:nth-child(4) {
  width: 24rem;
}
.worker-progress-table th:nth-child(5),
.worker-progress-table td:nth-child(5) {
  width: 18rem;
}
.worker-progress-breakable-cell {
  white-space: normal;
}
.worker-progress-panel details li {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 640px) {
  .worker-progress-table {
    min-width: 0;
  }
}

/* v2.9.20 JWT Decoder & Validator utility */
.jwt-validator-tool {
  display: grid;
  gap: 1rem;
  color: #0f172a;
}
.jwt-validator-tool .hero,
.jwt-validator-tool .panel,
.jwt-validator-tool .downloaded-keys-panel {
  border: 1px solid #d7e1ef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.06);
}
.jwt-validator-tool .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.7fr);
  gap: 1rem;
  padding: 1.25rem;
  background: #0f172a;
  color: #f8fafc;
}
.jwt-validator-tool .hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}
.jwt-validator-tool .hero p,
.jwt-validator-tool .status-card p {
  color: #cbd5e1;
}
.jwt-validator-tool .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .75rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: #cbd5e1;
  font-weight: 700;
}
.jwt-validator-tool .status-card {
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.08);
}
.jwt-validator-tool .status-header,
.jwt-validator-tool .label-with-icon,
.jwt-validator-tool .panel-title-row,
.jwt-validator-tool .downloaded-key-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}
.jwt-validator-tool .label-with-icon {
  justify-content: flex-start;
}
.jwt-validator-tool .status-icon {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  font-weight: 900;
}
.jwt-validator-tool .status-icon.valid { color: #16a34a; }
.jwt-validator-tool .status-icon.invalid { color: #dc2626; }
.jwt-validator-tool .status-icon.warning { color: #d97706; }
.jwt-validator-tool .status-icon.pending { color: #64748b; }
.jwt-validator-tool .mini-grid,
.jwt-validator-tool .downloaded-key-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .6rem;
  margin-top: .9rem;
}
.jwt-validator-tool .mini-grid div,
.jwt-validator-tool .downloaded-key-metadata div,
.jwt-validator-tool .claim-row {
  min-width: 0;
  padding: .75rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
}
.jwt-validator-tool .mini-grid span,
.jwt-validator-tool .downloaded-key-metadata span {
  display: block;
  color: #52637a;
  font-size: .85rem;
  font-weight: 700;
}
.jwt-validator-tool .mini-grid div strong,
.jwt-validator-tool .downloaded-key-metadata div strong {
  display: block;
  margin-top: .25rem;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  word-break: break-word;
}
.jwt-validator-tool .grid {
  display: grid;
  gap: 1rem;
}
.jwt-validator-tool .jwt-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
.jwt-validator-tool .jwt-decoded-stack {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.jwt-validator-tool .jwt-token-panel textarea {
  min-height: 31rem;
}
.jwt-validator-tool .key-source-grid {
  grid-template-columns: minmax(0, 1fr);
}
.jwt-validator-tool .bottom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.jwt-validator-tool .panel {
  min-width: 0;
  padding: 1rem;
}
.jwt-validator-tool label,
.jwt-validator-tool h2,
.jwt-validator-tool h3 {
  margin: 0 0 .6rem;
}
.jwt-validator-tool .help-text {
  margin: 0 0 .75rem;
  color: #52637a;
  line-height: 1.5;
}
.jwt-validator-tool textarea,
.jwt-validator-tool .url-input {
  width: 100%;
  border: 1px solid #c9d3e4;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .92rem;
  line-height: 1.5;
}
.jwt-validator-tool textarea {
  min-height: 12rem;
  resize: vertical;
  padding: .9rem;
}
.jwt-validator-tool .key-input {
  min-height: 9rem;
}
.jwt-validator-tool .url-input {
  padding: .7rem .8rem;
  margin-bottom: .75rem;
}
.jwt-validator-tool .validate-button,
.jwt-validator-tool .copy-feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.jwt-validator-tool .validate-button {
  width: 100%;
  margin-top: .75rem;
}
.jwt-validator-tool .secondary-action-button {
  background: #475569;
}
.jwt-validator-tool .key-method-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dbe3ef;
}
.jwt-validator-tool .fetch-box,
.jwt-validator-tool .inline-validation-result,
.jwt-validator-tool .error-box,
.jwt-validator-tool .empty-box {
  display: grid;
  gap: .35rem;
  margin-top: .75rem;
  padding: .75rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  overflow-wrap: anywhere;
}
.jwt-validator-tool .fetch-box.valid,
.jwt-validator-tool .inline-validation-result.valid {
  border-color: #86efac;
  background: #f0fdf4;
}
.jwt-validator-tool .fetch-box.invalid,
.jwt-validator-tool .inline-validation-result.invalid,
.jwt-validator-tool .error-box {
  border-color: #fecaca;
  background: #fef2f2;
}
.jwt-validator-tool .fetch-box.warning,
.jwt-validator-tool .inline-validation-result.warning {
  border-color: #fde68a;
  background: #fffbeb;
}
.jwt-validator-tool pre,
.jwt-validator-tool .downloaded-key-json {
  max-height: 28rem;
  margin: 0;
  padding: .85rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
  overflow: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.jwt-validator-tool .downloaded-keys-panel {
  padding: 1rem;
}
.jwt-validator-tool .downloaded-key-list,
.jwt-validator-tool .claim-list,
.jwt-validator-tool .discovery-attempt-list {
  display: grid;
  gap: .75rem;
}
.jwt-validator-tool details {
  min-width: 0;
}
.jwt-validator-tool .downloaded-key-details,
.jwt-validator-tool .discovery-candidates {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}
.jwt-validator-tool .downloaded-key-details > summary,
.jwt-validator-tool .discovery-candidates > summary {
  cursor: pointer;
  padding: .75rem;
  font-weight: 800;
}
.jwt-validator-tool .downloaded-key-details > :not(summary),
.jwt-validator-tool .discovery-candidates > :not(summary) {
  margin: .75rem;
}
.jwt-validator-tool .downloaded-key-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.jwt-validator-tool .validated-key-badge {
  display: inline-flex;
  margin-left: .5rem;
  padding: .15rem .4rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: .75rem;
}
.jwt-validator-tool .discovery-attempt {
  display: grid;
  gap: .25rem;
  padding: .65rem;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  overflow-wrap: anywhere;
}
.jwt-validator-tool .claim-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}
.jwt-validator-tool .claim-row span,
.jwt-validator-tool code,
.jwt-validator-tool em {
  overflow-wrap: anywhere;
}
.jwt-validator-tool .claim-ok { color: #15803d; }
.jwt-validator-tool .claim-bad { color: #b91c1c; }
.jwt-validator-tool .button-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgb(255 255 255 / .45);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: jwt-spin .8s linear infinite;
}
@keyframes jwt-spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) {
  .jwt-validator-tool .hero,
  .jwt-validator-tool .jwt-primary-grid,
  .jwt-validator-tool .bottom-grid {
    grid-template-columns: 1fr;
  }
}


/* v2.16.0: Site Assessment worker picker uses the same compact grid style as normal test worker selection. */
.full-row { grid-column: 1 / -1; }
.assessment-worker-selector { align-self: stretch; }
.assessment-worker-selector .worker-checkbox-grid { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }

/* v2.16.0: Assessment detail panels provide worker-oriented progress, results and findings. */
.assessment-highlight-grid,
.assessment-worker-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
}

.assessment-highlight-card {
  border: 1px solid var(--border-color, #d8e2f1);
  border-radius: 0.75rem;
  padding: 0.85rem;
  background: #f8fbff;
}

.assessment-highlight-title {
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.assessment-highlight-metrics,
.assessment-severity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
}

.assessment-highlight-metrics span {
  color: #4f6384;
  font-size: 0.9rem;
}

.assessment-run-panels,
.assessment-finding-groups {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.assessment-run-panel > summary,
.assessment-worker-result > summary,
.assessment-finding-worker > summary,
.assessment-finding-tool > summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.assessment-run-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.75rem;
}


/* v2.18.47: A compact per-source conclusion sits directly under every assessment tool. */
.assessment-conclusion-section {
  display: grid;
  gap: 0.55rem;
}

.assessment-conclusion-section > h4 {
  margin: 0;
}

.assessment-conclusion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.assessment-conclusion-card {
  --assessment-conclusion-accent: #64748b;
  border: 1px solid #d7e1ef;
  border-left: 5px solid var(--assessment-conclusion-accent);
  border-radius: 12px;
  padding: 0.8rem;
  background: #f8fafc;
  display: grid;
  gap: 0.7rem;
}

.assessment-conclusion-good { --assessment-conclusion-accent: #12b76a; background: #f0fdf4; }
.assessment-conclusion-warn { --assessment-conclusion-accent: #f59e0b; background: #fffbeb; }
.assessment-conclusion-bad { --assessment-conclusion-accent: #d92d20; background: #fff5f5; }
.assessment-conclusion-info { --assessment-conclusion-accent: #2563eb; background: #eff6ff; }

.assessment-conclusion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  font-weight: 800;
}

.assessment-conclusion-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.assessment-conclusion-item {
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgb(148 163 184 / 35%);
  border-radius: 10px;
  background: rgb(255 255 255 / 78%);
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.assessment-conclusion-label {
  color: #52637e;
  font-size: 0.78rem;
  font-weight: 750;
}

.assessment-conclusion-item .status {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.assessment-worker-result {
  margin: 0;
}

/* v2.18.47: Assessment disclosures use one clear left-side chevron; the whole summary remains clickable. */
.assessment-run-panel > summary,
.assessment-worker-result > summary {
  justify-content: flex-start;
}

.assessment-run-panel > summary code {
  margin-left: auto;
}

.assessment-run-panel > summary,
.assessment-worker-result > summary,
.assessment-data-panel > summary,
.assessment-data-panel > .raw-http-panel > summary {
  list-style: none;
}

.assessment-run-panel > summary::-webkit-details-marker,
.assessment-worker-result > summary::-webkit-details-marker,
.assessment-data-panel > summary::-webkit-details-marker,
.assessment-data-panel > .raw-http-panel > summary::-webkit-details-marker {
  display: none;
}

.assessment-run-panel > summary::before,
.assessment-worker-result > summary::before,
.assessment-data-panel > summary::before,
.assessment-data-panel > .raw-http-panel > summary::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 0.55rem;
  border-right: 2px solid #235cff;
  border-bottom: 2px solid #235cff;
  transform: rotate(-45deg);
  transition: transform 120ms ease;
}

.assessment-run-panel[open] > summary::before,
.assessment-worker-result[open] > summary::before,
.assessment-data-panel[open] > summary::before,
.assessment-data-panel > .raw-http-panel[open] > summary::before {
  transform: rotate(45deg);
}

.assessment-data-panel > summary,
.assessment-data-panel > .raw-http-panel > summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.assessment-worker-result > summary:hover,
.assessment-data-panel > summary:hover,
.assessment-data-panel > .raw-http-panel > summary:hover {
  background: #e5eef9;
}

.assessment-worker-result > summary:focus-visible,
.assessment-data-panel > summary:focus-visible,
.assessment-data-panel > .raw-http-panel > summary:focus-visible {
  outline: 3px solid rgb(35 92 255 / 28%);
  outline-offset: -3px;
}

.assessment-finding-tool {
  margin-top: 0.7rem;
}

/* v2.16.0: Assessment drill-down panels use full-width readable rows instead of cramped grid/table cells. */
.assessment-worker-result-list,
.assessment-finding-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.assessment-worker-result-grid {
  grid-template-columns: 1fr;
}

.assessment-worker-result,
.assessment-finding-item {
  width: 100%;
  min-width: 0;
  background: #ffffff;
}

.assessment-data-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0.8rem;
}

.assessment-data-panel .table-wrap,
.assessment-finding-item .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.assessment-data-panel .key-value-table,
.assessment-finding-item .key-value-table {
  table-layout: auto;
}

.assessment-data-panel .key-value-table th,
.assessment-finding-item .key-value-table th {
  width: 14rem;
  min-width: 14rem;
}

.assessment-finding-item > summary {
  display: grid;
  grid-template-columns: auto minmax(16rem, 1fr) minmax(12rem, 20rem) minmax(10rem, 18rem);
  gap: 0.75rem;
  align-items: start;
}

.assessment-finding-item > summary code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .assessment-finding-item > summary {
    grid-template-columns: 1fr;
  }
  .assessment-data-panel .key-value-table th,
  .assessment-finding-item .key-value-table th {
    width: auto;
    min-width: 0;
  }
}

/* Mail Transport Security multi-worker comparison */
.mail-transport-compare {
  margin-top: 1rem;
}

.mail-transport-summary-table td,
.mail-transport-difference-table td,
.mail-mx-detail-panel td {
  white-space: pre-wrap;
  vertical-align: top;
}

.comparison-value-group-list {
  margin: 0;
  padding-left: 1.1rem;
}

.comparison-value-group-list li + li {
  margin-top: 0.6rem;
}

.comparison-value-group-list code {
  display: inline-block;
  white-space: pre-wrap;
}

/* v2.17.38: TLS/DTLS Cipher Scan certificate chain visual - a horizontal flow of cards
   (leaf -> intermediate(s) -> root) connected by arrows, so the trust path is readable at a
   glance instead of only as a table of rows. */
.certificate-chain-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.4rem;
  margin: 0.6rem 0 1rem;
}
.certificate-chain-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #ffffff;
  min-width: 240px;
  max-width: 300px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.certificate-chain-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.certificate-chain-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.certificate-chain-role-badge.leaf { background: #dbeafe; color: #1d4ed8; }
.certificate-chain-role-badge.intermediate { background: #f1f5f9; color: #475569; }
.certificate-chain-role-badge.root { background: #fef3c7; color: #92400e; }
.certificate-chain-subject {
  font-weight: 800;
  font-size: 0.95rem;
  word-break: break-word;
  line-height: 1.3;
}
.certificate-chain-issuer {
  color: #64748b;
  font-size: 0.82rem;
  word-break: break-word;
  line-height: 1.3;
}
.certificate-chain-validity {
  font-size: 0.8rem;
  color: #64748b;
}
.certificate-chain-fingerprint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid #f1f5f9;
}
.certificate-chain-fingerprint code {
  font-size: 0.72rem;
  color: #94a3b8;
  word-break: break-all;
}
.certificate-chain-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  color: #94a3b8;
  font-size: 1.3rem;
  font-weight: 800;
}
.certificate-chain-note {
  margin-top: 0.2rem;
}
.certificate-chain-card-resolved {
  border-style: dashed;
  background: #fafafa;
}
.certificate-chain-resolved-note {
  font-size: 0.72rem;
  color: #92400e;
  font-style: italic;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .certificate-chain-visual {
    flex-direction: column;
  }
  .certificate-chain-card {
    max-width: 100%;
  }
  .certificate-chain-arrow {
    width: auto;
    transform: rotate(90deg);
    align-self: center;
  }
}

.recommended-next-checks .next-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.recommended-next-checks .pill-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.recommended-next-checks .pill-list li {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.85rem;
}

.dependency-health-card {
  margin-bottom: 1rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.recommended-next-checks .next-check-action-list li {
  display: flex;
  align-items: stretch;
}

.authentication-finding-action-cell .authentication-finding-http-link {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}

.recommended-next-checks .next-check-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.75rem;
  box-sizing: border-box;
  padding: 0.45rem 0.75rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  white-space: normal;
}

.recommended-next-checks .next-check-action:hover {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
  text-decoration: none;
}

.recommended-next-checks .next-check-action:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.authentication-finding-action-cell .authentication-finding-http-link:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* v2.17.73 dependency-health readability fix */
.dependency-health-card {
  overflow: hidden;
}
.dependency-health-sources {
  overflow-wrap: anywhere;
}
.dependency-health-component-groups {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}
.dependency-health-group {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0.75rem;
}
.dependency-health-group > summary {
  font-size: 1rem;
  font-weight: 900;
  color: #172033;
  margin: 0;
}
.dependency-health-component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: 0.8rem;
  margin-top: 0.75rem;
}
.dependency-health-component-card {
  border: 1px solid #dbe3ef;
  border-left: 5px solid #94a3b8;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.85rem;
  box-shadow: 0 4px 14px rgba(18, 36, 66, 0.05);
  min-width: 0;
}
.dependency-health-component-card.dependency-health-bad {
  border-left-color: #dc2626;
}
.dependency-health-component-card.dependency-health-warn {
  border-left-color: #d97706;
}
.dependency-health-component-card.dependency-health-good {
  border-left-color: #16a34a;
}
.dependency-health-component-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.dependency-health-component-header h4 {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.dependency-health-subtitle {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}
.dependency-health-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.dependency-health-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.55rem;
  margin: 0.65rem 0;
}
.dependency-health-facts div {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem;
  background: #f8fafc;
  min-width: 0;
}
.dependency-health-facts dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.15rem;
}
.dependency-health-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.dependency-health-facts code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dependency-health-reason {
  margin-top: 0.55rem;
  color: #334155;
  overflow-wrap: anywhere;
}
.dependency-health-details {
  margin-top: 0.65rem;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
}
.dependency-health-details summary {
  margin: 0;
}
.dependency-health-details ul {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
}
.dependency-vulnerability-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}
.dependency-vulnerability-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.55rem;
  background: #ffffff;
  overflow-wrap: anywhere;
}
.dependency-vulnerability-item small {
  display: block;
  margin-top: 0.25rem;
  color: #64748b;
}
@media (max-width: 640px) {
  .dependency-health-component-grid {
    grid-template-columns: 1fr;
  }
  .dependency-health-component-card {
    padding: 0.75rem;
  }
  .dependency-health-badges {
    justify-content: flex-start;
  }
}

/* v2.17.73 dependency-remediation export actions */
.dependency-health-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}
.button-link.secondary-link {
  background: #64748b;
}
@media (max-width: 760px) {
  .dependency-health-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

/* v2.17.73: Auth Surface findings get a per-row HTTP handoff action at the right edge. */
.authentication-surface-findings-table th:last-child,
.authentication-surface-findings-table td:last-child {
  width: 11rem;
  text-align: right;
  white-space: nowrap;
}
.authentication-finding-http-link {
  box-shadow: none;
}
.authentication-finding-http-link:hover:not(:disabled) {
  filter: none;
}
@media (max-width: 760px) {
  .authentication-surface-findings-table th:last-child,
  .authentication-surface-findings-table td:last-child {
    width: auto;
    text-align: left;
    white-space: normal;
  }
}

/* v2.18.43 recommended-next-check action alignment */
.recommended-next-checks .next-check-action-with-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}
.recommended-next-checks .next-check-target-select {
  width: 100%;
  max-width: none;
  min-height: 2.25rem;
  box-sizing: border-box;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
}

/* v2.17.73: Human-readable RPKI/BGP worker comparison.
   WHY: raw RIPEstat arrays are too large for the generic diff table; the RPKI view
   now separates routing signals from resolver/geography context. */
.rpki-bgp-compare .summary-grid { margin-bottom: 1rem; }
.rpki-bgp-summary-table td,
.rpki-bgp-origin-detail-table td { vertical-align: top; }
.compact-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.82rem;
  line-height: 1.35;
  background: transparent;
  border: 0;
  padding: 0;
}

/* In-app user notification service */
.toolbox-user-notification-overlay,
.toolbox-admin-message-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.toolbox-user-notification-modal,
.toolbox-admin-message-modal {
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--card-bg, #fff);
  color: var(--text-color, #111827);
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 1rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
}

.toolbox-admin-message-modal {
  width: min(980px, 100%);
}

.toolbox-user-notification-modal header,
.toolbox-user-notification-modal footer,
.toolbox-admin-message-modal > header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.toolbox-user-notification-severity {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-text, #6b7280);
}

.toolbox-user-notification-modal.warning {
  border-color: #b45309;
}

.toolbox-user-notification-modal.critical {
  border-color: #b91c1c;
}

.toolbox-user-notification-body {
  margin: 1rem 0;
  white-space: normal;
  line-height: 1.5;
}

.toolbox-admin-message-form textarea {
  resize: vertical;
}

.toolbox-admin-message-targets {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.toolbox-admin-message-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.4rem 0.75rem;
  max-height: 13rem;
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 0.75rem;
}

.toolbox-admin-message-status {
  margin-top: 0.75rem;
  font-weight: 600;
}

.toolbox-admin-message-history {
  margin-top: 0.75rem;
}

/* v2.18.13: aligned in-app message target picker.
   WHY: global form label grid styling placed radio/checkbox controls above the
   target names; these overrides keep controls left-aligned and target text in a
   predictable card layout. */
.toolbox-admin-message-target-option,
.toolbox-admin-message-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.35;
}

.toolbox-admin-message-target-option {
  align-items: center;
  padding: 0.35rem 0;
}

.toolbox-admin-message-target-option input[type="radio"],
.toolbox-admin-message-checkbox-item input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
}

.toolbox-admin-message-checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem;
}

.toolbox-admin-message-checkbox-item {
  min-height: 3.25rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.7rem;
  background: #f8fafc;
}

.toolbox-admin-message-target-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.toolbox-admin-message-target-text strong,
.toolbox-admin-message-target-text span,
.toolbox-admin-message-target-text code {
  overflow-wrap: anywhere;
}

.toolbox-admin-message-target-text code {
  width: fit-content;
  max-width: 100%;
  padding: 0.08rem 0.35rem;
  border-radius: 0.35rem;
  background: #eef3f8;
  color: #334155;
  font-size: 0.82rem;
}


/* v2.18.13: keep CT SAN/wildcard names readable inside entry rows. */
.compact-list {
  margin: 0;
  padding-left: 1.1rem;
}
.compact-list li {
  margin: 0.15rem 0;
}
.ct-name-list code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* v2.18.13: GeoIP map panel with recognizable offline world map. */
.geoip-map-panel {
  overflow: visible;
}
.geoip-offline-map,
.geoip-tile-map {
  position: relative;
  border: 1px solid var(--border, #d0d7de);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(120, 160, 200, 0.22), rgba(120, 160, 200, 0.08));
  min-height: 260px;
  margin-top: 0.75rem;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.geoip-offline-map.is-dragging,
.geoip-tile-map.is-dragging {
  cursor: grabbing;
}
.geoip-offline-map {
  min-height: 320px;
  aspect-ratio: 2 / 1;
}
.geoip-offline-map-content {
  position: relative;
  min-width: 100%;
  min-height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.geoip-tile-map-content {
  position: absolute;
  left: 0;
  top: 0;
  width: 768px;
  height: 768px;
  transform-origin: 0 0;
  will-change: transform;
}
.geoip-map-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.geoip-map-zoom-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: min(28rem, 100%);
}
.geoip-map-zoom-label input[type="range"] {
  min-width: 12rem;
  flex: 1 1 12rem;
}
.geoip-map-zoom-button,
.geoip-map-reset-button {
  min-width: 2.5rem;
}
.geoip-map-mouse-help {
  font-size: 0.82rem;
}
.geoip-offline-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.geoip-map-ocean {
  fill: rgba(120, 160, 200, 0.16);
}
.geoip-map-land {
  fill: rgba(80, 120, 80, 0.34);
  stroke: rgba(45, 85, 55, 0.46);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}
.geoip-map-grid-line {
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
.geoip-map-equator,
.geoip-map-prime {
  position: absolute;
  background: rgba(0, 0, 0, 0.16);
  pointer-events: none;
}
.geoip-map-equator { left: 0; right: 0; top: 50%; height: 1px; }
.geoip-map-prime { top: 0; bottom: 0; left: 50%; width: 1px; }
.geoip-map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--card-bg, #fff);
  color: var(--accent, #2563eb);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  z-index: 6;
}
.geoip-map-marker span {
  position: absolute;
  left: 1rem;
  top: -0.4rem;
  max-width: 18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #d0d7de);
  font-size: 0.75rem;
}
.geoip-tile-map {
  width: 768px;
  max-width: 100%;
  height: 512px;
  min-height: 512px;
}
.geoip-tile-map img {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  -webkit-user-drag: none;
}
.geoip-tile-marker span {
  max-width: 14rem;
}
.geoip-map-attribution {
  font-size: 0.82rem;
}
.form-section-heading {
  grid-column: 1 / -1;
  margin: 0.75rem 0 0;
}

/* v2.18.24: Align the extracted JWT feature with the standard Toolbox visual system. */
.jwt-validator-tool {
  gap: 0.95rem;
  color: #172033;
}
.jwt-validator-tool .hero {
  grid-template-columns: 1fr;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #172033;
  box-shadow: none;
}
.jwt-validator-tool .hero h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}
.jwt-validator-tool .hero p,
.jwt-validator-tool .status-card p {
  color: #64748b;
}
.jwt-validator-tool .eyebrow {
  margin: 0 0 0.35rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.jwt-validator-tool .status-card,
.jwt-validator-tool .panel,
.jwt-validator-tool .downloaded-keys-panel {
  border: 1px solid #dbe3ef;
  border-radius: 0.9rem;
  background: #f8fafc;
  box-shadow: none;
}
.jwt-validator-tool .status-card {
  margin-top: 0.95rem;
  padding: 1rem;
}
.jwt-validator-tool .input-grid {
  grid-template-columns: 1fr;
}
.jwt-validator-tool .panel {
  padding: 1rem;
}
.jwt-validator-tool textarea,
.jwt-validator-tool .url-input {
  border-radius: 10px;
  color: #172033;
}
.jwt-validator-tool .validate-button,
.jwt-validator-tool .copy-feedback-button {
  width: auto;
  margin-top: 0.75rem;
  border-radius: 10px;
  background: #235cff;
}
.jwt-validator-tool .secondary-action-button {
  background: #64748b;
}
.jwt-validator-tool .validate-signature-button {
  justify-self: start;
}
.jwt-validator-tool .key-method-block {
  padding: 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.9rem;
  background: #ffffff;
}
.jwt-validator-tool .key-method-block + .key-method-block {
  margin-top: 0.75rem;
}
.jwt-validator-tool pre,
.jwt-validator-tool .downloaded-key-json {
  border-radius: 10px;
  background: #111827;
}

.jwt-validator-tool .jwt-key-action-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.jwt-validator-tool .jwt-key-action-row .validate-button {
  margin: 0;
}

/* v2.18.24: Human-readable visual grouping of decoded JWT claims. */
.jwt-validator-tool .jwt-claims-overview {
  padding: 1rem;
}
.jwt-validator-tool .jwt-claims-overview .panel-title-row {
  align-items: flex-start;
}
.jwt-validator-tool .jwt-claims-overview .panel-title-row h2 {
  margin-bottom: .25rem;
}
.jwt-validator-tool .jwt-claim-count {
  flex: 0 0 auto;
  padding: .35rem .65rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .82rem;
  font-weight: 800;
}
.jwt-validator-tool .jwt-claim-groups {
  display: grid;
  gap: 1rem;
}
.jwt-validator-tool .jwt-claim-group {
  min-width: 0;
  padding-top: .85rem;
  border-top: 1px solid #dbe3ef;
}
.jwt-validator-tool .jwt-claim-group:first-child {
  padding-top: 0;
  border-top: 0;
}
.jwt-validator-tool .jwt-claim-group h3 {
  color: #334155;
  font-size: .95rem;
}
.jwt-validator-tool .jwt-claim-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .75rem;
}
.jwt-validator-tool .jwt-claim-card {
  display: grid;
  align-content: start;
  gap: .65rem;
  min-width: 0;
  padding: .85rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
}
.jwt-validator-tool .jwt-claim-card header > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .65rem;
}
.jwt-validator-tool .jwt-claim-card header strong {
  color: #0f172a;
  font-size: 1rem;
}
.jwt-validator-tool .jwt-claim-card header code {
  flex: 0 0 auto;
  padding: .12rem .35rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #475569;
  font-size: .75rem;
}
.jwt-validator-tool .jwt-claim-card > p {
  margin: 0;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.4;
}
.jwt-validator-tool .jwt-claim-scalar,
.jwt-validator-tool .jwt-claim-empty-value {
  color: #0f172a;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.jwt-validator-tool .jwt-claim-empty-value {
  color: #64748b;
  font-style: italic;
  font-weight: 600;
}
.jwt-validator-tool .jwt-claim-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.jwt-validator-tool .jwt-claim-chip {
  max-width: 100%;
  padding: .28rem .5rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: .8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.jwt-validator-tool .jwt-claim-time {
  display: grid;
  gap: .25rem;
}
.jwt-validator-tool .jwt-claim-time strong {
  color: #0f172a;
}
.jwt-validator-tool .jwt-claim-time code,
.jwt-validator-tool .jwt-claim-time span {
  color: #52637a;
  font-size: .78rem;
}
.jwt-validator-tool .jwt-claim-object {
  max-height: 12rem;
  font-size: .78rem;
}
.jwt-validator-tool .jwt-claim-boolean {
  width: fit-content;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
}
.jwt-validator-tool .jwt-claim-boolean.is-true {
  background: #dcfce7;
  color: #166534;
}
.jwt-validator-tool .jwt-claim-boolean.is-false {
  background: #fee2e2;
  color: #991b1b;
}
@media (max-width: 640px) {
  .jwt-validator-tool .jwt-claims-overview .panel-title-row,
  .jwt-validator-tool .jwt-claim-card header > div {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v2.18.24: Improve JWT claim hierarchy and provide per-claim copy actions. */
.jwt-validator-tool .jwt-claim-card {
  grid-template-rows: auto auto 1fr;
}
.jwt-validator-tool .jwt-claim-heading {
  display: grid;
  gap: .2rem;
}
.jwt-validator-tool .jwt-claim-label {
  color: #334155;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.jwt-validator-tool .jwt-claim-name {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: .72rem;
  font-weight: 400;
}
.jwt-validator-tool .jwt-claim-value-block {
  display: grid;
  gap: .3rem;
  min-width: 0;
  padding-top: .55rem;
  border-top: 1px solid #e2e8f0;
}
.jwt-validator-tool .jwt-claim-value-label {
  color: #64748b;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.jwt-validator-tool .jwt-claim-scalar,
.jwt-validator-tool .jwt-claim-empty-value,
.jwt-validator-tool .jwt-claim-list-values {
  color: #0f172a;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.jwt-validator-tool .jwt-claim-list-values {
  display: grid;
  gap: .25rem;
}
.jwt-validator-tool .jwt-claim-list-values > div + div {
  padding-top: .25rem;
  border-top: 1px dashed #e2e8f0;
}
.jwt-validator-tool .jwt-claim-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .65rem;
  margin-top: auto;
}
.jwt-validator-tool .jwt-claim-card-footer > p {
  margin: 0;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.4;
}
.jwt-validator-tool .jwt-claim-copy-button {
  min-height: 1.8rem;
  padding: .28rem .48rem;
  font-size: .72rem;
  white-space: nowrap;
}
.jwt-validator-tool .jwt-claim-copy-button svg {
  width: .8rem;
  height: .8rem;
}
@media (max-width: 640px) {
  .jwt-validator-tool .jwt-claim-card-footer {
    grid-template-columns: 1fr;
  }
  .jwt-validator-tool .jwt-claim-copy-button {
    justify-self: end;
  }
}


/* v2.18.25: Color-coded JWT validation status and prominent auto-discovery action. */
.jwt-validator-tool .status-card {
  position: relative;
  border-width: 1px;
  border-style: solid;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.jwt-validator-tool .status-card.valid {
  border-color: #4ade80;
  background: #f0fdf4;
}
.jwt-validator-tool .status-card.invalid {
  border-color: #f87171;
  background: #fef2f2;
}
.jwt-validator-tool .status-card.warning {
  border-color: #fbbf24;
  background: #fffbeb;
}
.jwt-validator-tool .status-card.valid > strong,
.jwt-validator-tool .status-card.valid .status-icon {
  color: #15803d;
}
.jwt-validator-tool .status-card.invalid > strong,
.jwt-validator-tool .status-card.invalid .status-icon {
  color: #b91c1c;
}
.jwt-validator-tool .status-card.warning > strong,
.jwt-validator-tool .status-card.warning .status-icon {
  color: #b45309;
}
.jwt-validator-tool .status-card.valid p,
.jwt-validator-tool .status-card.invalid p,
.jwt-validator-tool .status-card.warning p {
  color: #334155;
}
.jwt-validator-tool .status-card > strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.jwt-validator-tool .auto-discover-button {
  background: #235cff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgb(35 92 255 / 0.24);
}
.jwt-validator-tool .auto-discover-button:hover:not(:disabled) {
  background: #1749d1;
  box-shadow: 0 4px 12px rgb(35 92 255 / 0.32);
}
.jwt-validator-tool .auto-discover-button:focus-visible {
  outline: 3px solid rgb(35 92 255 / 0.28);
  outline-offset: 2px;
}
.jwt-validator-tool .auto-discover-button:disabled {
  background: #94a3b8;
  color: #f8fafc;
  box-shadow: none;
}


/* SAML metadata certificate cards keep long certificate evidence readable and copyable. */
.saml-certificate-grid { display: grid; gap: 14px; }
.saml-certificate-card { min-width: 0; }
.saml-certificate-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.saml-certificate-card-header > div { min-width: 0; overflow-wrap: anywhere; }
.saml-certificate-snippet { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-muted, #f8fafc); overflow-wrap: anywhere; }
@media (max-width: 720px) { .saml-certificate-card-header { flex-direction: column; } }

/* Phase 4 observability administration page. */
.observability-toolbar { align-items: end; flex-wrap: wrap; }
.observability-toolbar label { min-width: 180px; }
.observability-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.observability-summary-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.observability-worker-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.observability-worker-grid .worker-summary-card { min-width: 0; }
.observability-worker-grid .worker-summary-rows { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(90px, auto); gap: 8px 12px; align-items: center; }
.observability-worker-grid .worker-summary-rows strong { text-align: right; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .observability-panel-grid { grid-template-columns: 1fr; } }

.observability-indicator-list { display: grid; gap: 10px; }
.observability-indicator { border: 1px solid var(--border); border-left-width: 5px; border-radius: 10px; padding: 12px 14px; background: var(--surface-subtle); line-height: 1.45; }
.observability-indicator.good { border-left-color: #16803a; background: #effcf3; }
.observability-indicator.warn { border-left-color: #b46900; background: #fff8e8; }
.observability-indicator.bad { border-left-color: #c72b2b; background: #fff1f1; }
.observability-event-toolbar { align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.observability-event-toolbar label { min-width: 240px; }


/* nginx throttling observability: compact proportional event timeline. */
.nginx-throttling-panel .observability-indicator { margin: 1rem 0; }
.nginx-throttle-timeline {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow-x: auto;
}
.nginx-throttle-timeline-column {
  display: grid;
  grid-template-rows: 110px auto;
  align-items: end;
  justify-items: center;
  min-width: 24px;
  height: 130px;
}
.nginx-throttle-timeline-bar {
  display: block;
  width: 16px;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: currentColor;
}
.nginx-throttle-timeline-column small { font-variant-numeric: tabular-nums; }

/* WHY: the HTTP isolation buffer is a single numeric setting that saves on
   blur, so it reads as a compact inline field rather than a full form. */
.http-timeout-settings { margin-bottom: 1rem; }
.inline-field { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.9rem; font-weight: 650; }
.inline-field input[type="number"] { width: 5rem; }

.worker-select-all-footer-row td {
  padding: 0.75rem 1rem;
}

.worker-select-all-footer-row .checkbox {
  margin: 0;
}

/* v3.3.66: Both input-side and result-side HTTP diagnostics use the
   standard Raw Request / Raw Response disclosure heading. The native marker,
   left-aligned text and edge-to-edge neutral header make diagnostics visually
   consistent with every other collapsible evidence topic. */
details.http-diagnostics-settings {
  display: block;
  padding: 0;
  border: 1px solid #d7e1ef;
  border-radius: 0.7rem;
  background: #f8fbff;
  overflow: hidden;
}
details.http-diagnostics-settings > summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: #10203a;
  background: #eef4fb;
  text-align: left;
}
details.http-diagnostics-settings[open] > summary {
  margin-bottom: 0;
  border-bottom: 1px solid #d7e1ef;
}
details.http-diagnostics-settings > .form-grid {
  padding: 1rem;
}
details.http-diagnostics-settings > .form-grid > :first-child {
  margin-top: 0;
}
details.http-diagnostics-settings > .form-grid > :last-child {
  margin-bottom: 0;
}

/* WHY: HttpDiagnosticsPanel also carries sub-card for historical layout
   compatibility. Neutralize that padding so its summary occupies the same
   edge-to-edge header strip as Raw Request. Keep the diagnostic body padded. */
details.http-diagnostics-panel {
  padding: 0;
  border: 1px solid #d7e1ef;
  border-radius: 0.7rem;
  background: #f8fbff;
  overflow: hidden;
}
details.http-diagnostics-panel > summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: #10203a;
  background: #eef4fb;
  text-align: left;
}
details.http-diagnostics-panel[open] > summary {
  margin-bottom: 0;
  border-bottom: 1px solid #d7e1ef;
}
details.http-diagnostics-panel > .summary-grid,
details.http-diagnostics-panel > .kv-table,
details.http-diagnostics-panel > .table-wrap,
details.http-diagnostics-panel > h4,
details.http-diagnostics-panel > .raw-http-panel {
  margin-left: 1rem;
  margin-right: 1rem;
}
details.http-diagnostics-panel > .summary-grid {
  margin-top: 1rem;
}
details.http-diagnostics-panel > :last-child {
  margin-bottom: 1rem;
}
