:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
  --bg: #12151C;
  --surface: #1A1F2B;
  --surface-2: #1A1F2B;
  --neutral-bg: #1A1F2B;
  --sidebar: #1A1F2B;
  --topbar-bg: #12151C;
  --line: #262E3F;
  --line-strong: #262E3F;
  --text: #FFFFFF;
  --text-2: rgb(255 255 255 / 88%);
  --muted: rgb(255 255 255 / 68%);
  --accent: #38BDF8;
  --accent-hover: #38BDF8;
  --brand-accent: #38BDF8;
  --accent-soft: #1A1F2B;
  --on-accent: #12151C;
  --focus: #38BDF8;
  --focus-ring: rgb(56 189 248 / 35%);
  --critical: #F59E0B;
  --critical-bg: #1A1F2B;
  --telemetry: #38BDF8;
  --success: #38BDF8;
  --success-bg: #1A1F2B;
  --success-border: #262E3F;
  --success-dot: #38BDF8;
  --danger: #F59E0B;
  --danger-bg: #1A1F2B;
  --danger-border: #F59E0B;
  --danger-fill: #F59E0B;
  --danger-fill-hover: #D97706;
  --on-danger: #12151C;
  --on-badge: #12151C;
  --high: #F59E0B;
  --high-bg: #1A1F2B;
  --warning: #F59E0B;
  --warning-bg: #1A1F2B;
  --warning-border: #F59E0B;
  --medium: #38BDF8;
  --medium-bg: #1A1F2B;
  --low: #FFFFFF;
  --low-bg: #1A1F2B;
  --indicative: #FFFFFF;
  --indicative-bg: #1A1F2B;
  --code-bg: #1A1F2B;
  --code-text: #FFFFFF;
  --navy: var(--text);
  --blue: var(--accent);
  --blue-dark: var(--accent);
  --panel: var(--surface);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.startup-screen { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 14px; background: var(--bg); color: var(--muted); font-size: 13px; }
.startup-screen img { width: 72px; height: 72px; object-fit: contain; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 18% 15%, var(--accent-soft) 0, transparent 34%), var(--bg); }
.login-card { width: min(100%, 430px); padding: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px #12151C12; }
.brand { display: block; width: fit-content; max-width: 100%; }
.brand-logo { display: block; width: 224px; max-width: 100%; height: auto; border-radius: 6px; }
.sidebar .brand-logo { width: 170px; }
.agent-download-box .brand-logo { margin: 0 0 20px; }
.brand-login { margin-bottom: 34px; }
.eyebrow, .sidebar-caption { margin: 0 0 10px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: var(--text); font-size: clamp(26px, 3vw, 32px); line-height: 1.2; letter-spacing: -.04em; }
h2 { margin-bottom: 4px; font-size: 17px; letter-spacing: -.02em; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-card > .muted { margin-bottom: 28px; }
.login-form { display: grid; gap: 9px; }
.login-form label, .filter-label { color: var(--text-2); font-size: 12px; font-weight: 650; }
.login-form input, .search-box input, select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; outline: none; background: var(--surface); color: var(--text); }
.login-form input { margin-bottom: 8px; }
input:focus, select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.button { min-height: 36px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 650; transition: background .15s, border .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--blue); color: var(--on-accent); }
.button-primary:hover { background: var(--blue-dark); }
.button-wide { min-height: 44px; margin-top: 7px; }
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.button-secondary:hover, .button-quiet:hover { border-color: var(--line-strong); background: var(--surface-2); }
.button-quiet { min-height: 32px; padding: 0 10px; border-color: transparent; color: var(--text-2); }
.text-button { padding: 4px 0; border: 0; background: none; color: var(--blue); font-size: 12px; font-weight: 650; }
.form-error { margin: 4px 0 0; color: var(--danger-fill); font-size: 12px; }
.login-footnote { margin: 26px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 22px 14px 16px; overflow-x: hidden; overflow-y: auto; border-right: 1px solid var(--line); background: var(--sidebar); }
.sidebar .brand { margin: 0 0 26px 5px; }
.sidebar-caption { margin: 0 0 12px 10px; font-size: 9px; }
.navigation { display: grid; gap: 2px; }
.nav-section-label { margin: 18px 0 6px 11px; }
.nav-item { display: flex; min-height: 38px; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); text-align: left; font-size: 13px; font-weight: 550; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--focus); color: var(--accent); font-weight: 680; }
.nav-icon { width: 18px; color: var(--muted); font-size: 17px; text-align: center; }
.nav-item.active .nav-icon { color: var(--brand-accent); }
.sidebar-bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 13px 10px 3px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--telemetry); box-shadow: 0 0 0 3px var(--focus-ring); }
.main-column { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; min-height: 62px; justify-content: space-between; align-items: center; padding: 0 34px; border-bottom: 1px solid var(--line); background: var(--topbar-bg); backdrop-filter: blur(12px); }
.breadcrumb, .account-area { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--text); font-weight: 650; }
#organization-label { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-name { max-width: 170px; overflow: hidden; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }
.page-content { width: min(100%, 1440px); margin: 0 auto; padding: 34px; }
.page-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 24px; }
.page-heading > div:first-child { flex: 1 1 360px; min-width: 0; }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.heading-actions .button { min-height: 32px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
.page-notice { flex-basis: 100%; margin: 0; line-height: 1.5; }
.button-quiet { border-color: transparent; background: transparent; color: var(--text-2); }
.button-quiet:hover { color: var(--text); background: var(--surface); }
.button-danger-quiet { border-color: var(--line-strong); background: var(--surface); color: var(--danger); }
.button-danger-quiet:hover { border-color: var(--danger); }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading .muted { margin-bottom: 0; }
.report-hint { margin-top: 4px; font-size: 11px; }
.heading-actions .button:disabled { cursor: not-allowed; opacity: .55; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 2px 8px #12151C05; }
.metric-card { min-height: 137px; display: flex; flex-direction: column; align-items: flex-start; padding: 19px; }
.metric-card-emphasis { background: var(--surface-2); }
.metric-label { min-height: 30px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.metric-value { margin: 1px 0 4px; color: var(--text); font-size: 29px; font-weight: 730; letter-spacing: -.05em; }
.metric-hint { color: var(--muted); font-size: 10px; }
.severity-critical { color: var(--critical); }
.severity-high { color: var(--high); }
.severity-medium { color: var(--medium); }
.panel { overflow: hidden; }
.panel-heading { display: flex; min-height: 80px; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.panel-heading .muted { margin: 0; font-size: 11px; }
.toolbar { display: flex; flex-wrap: wrap; min-height: 68px; align-items: flex-end; gap: 10px 13px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.search-box { position: relative; display: flex; min-width: min(100%, 310px); align-items: center; color: var(--muted); }
.search-box > span:not(.sr-only) { position: absolute; left: 11px; font-size: 20px; line-height: 1; }
.search-box input { min-height: 38px; padding-left: 35px; border-color: var(--line); font-size: 12px; }
.filter-label { display: grid; min-width: 135px; gap: 5px; color: var(--muted); font-size: 10px; }
.filter-label select { min-height: 36px; padding: 0 30px 0 10px; color: var(--text); font-size: 12px; }
.filter-label input { min-height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 12px; }
.result-count { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.toolbar-clear { align-self: flex-end; }
.toolbar-chips { align-self: center; }
/* Wide lists scroll sideways on narrow screens instead of breaking every cell. */
.remediation-panel td:nth-child(4), #findings-body .table-link { white-space: nowrap; }
table[data-sort-scope="assets"], table[data-sort-scope="scans"], table[data-sort-scope="findings"], table[data-sort-scope="remediation"], table[data-sort-scope="tenants"] { min-width: 820px; }
th[aria-sort] .sort-header:hover, th[aria-sort] .sort-header:focus-visible { color: var(--text); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 15px; background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { max-width: 340px; padding: 13px 15px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 11px; vertical-align: middle; }
tbody tr:hover { background: var(--surface-2); }
td strong { color: var(--text); font-weight: 650; }
.cell-subtext { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.finding-occurrences { margin-top: 6px; font-size: 10px; color: var(--muted); }
.finding-occurrences summary { cursor: pointer; color: var(--text-2); }
.finding-occurrences ul { margin: 6px 0 0; padding-left: 16px; }
.finding-occurrences li { overflow-wrap: anywhere; margin-top: 2px; }
.status-pill, .severity-pill, .os-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-completed { background: var(--success-bg); color: var(--success); }
.status-failed { background: var(--danger-bg); color: var(--danger); }
.status-online { background: var(--accent-soft); color: var(--telemetry); }
.status-other { background: var(--surface); color: var(--text); }
.first-collection-notice { display: flex; align-items: center; gap: 8px; margin-top: 0; line-height: 1.5; }
.first-collection-spinner { display: inline-block; width: 14px; height: 14px; flex: 0 0 auto; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: first-collection-spin .8s linear infinite; vertical-align: -2px; }
.first-collection-spinner-small { width: 10px; height: 10px; margin-right: 5px; border-width: 1.5px; }
@keyframes first-collection-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .first-collection-spinner { animation-duration: 2s; } }
.sensor-status-pending { background: var(--medium-bg); color: var(--medium); }
#network-sensors-demo-note { margin-bottom: 16px; }
.sensor-metrics .metric-card { min-height: 0; padding: 15px 18px; gap: 5px; }
.sensor-metrics .metric-label { min-height: 0; }
.sensor-metrics .metric-value { margin: 0; }
#view-network-sensors .panel-heading { min-height: 56px; padding-block: 12px; }
.sensor-toolbar .result-count { align-self: center; }
.sensor-table th:last-child#network-sensors-actions { text-align: right; }
.sensor-table .sensor-identity { width: 25%; }
.sensor-table td { font-size: 12px; }
.sensor-table summary { cursor: pointer; overflow-wrap: anywhere; }
.sensor-identity summary { color: var(--text); font-weight: 650; }
.sensor-contact { color: var(--muted); }
.sensor-scopes { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.sensor-scopes li { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.sensor-scopes code { border-radius: 5px; padding: 2px 5px; background: var(--accent-soft); overflow-wrap: anywhere; }
.sensor-scopes li span { color: var(--muted); font-size: 10px; }
.sensor-scope-details[open] .sensor-scopes { margin-top: 6px; }
.sensor-row-actions > div, .sensor-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sensor-row-actions .button { min-height: 30px; padding: 0 9px; font-size: 11px; white-space: nowrap; }
.sensor-dialog-body { display: grid; gap: 12px; padding: 18px 22px 22px; }
.sensor-dialog-body p { margin: 0; }
.sensor-dialog-body label { display: grid; gap: 5px; }
.sensor-dialog-body textarea { width: 100%; min-height: 78px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: 12px ui-monospace, Consolas, monospace; resize: vertical; }
.sensor-dialog-body .sensor-consent { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-weight: 500; }
.sensor-dialog-body .sensor-consent input { flex: none; width: auto; min-height: 0; margin: 3px 0 0; }
#network-sensor-secret { width: 100%; font-family: ui-monospace, Consolas, monospace; }
@media (max-width: 760px) {
  .sensor-metrics.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sensor-metrics .metric-card { padding: 10px 12px; }
  .sensor-metrics .metric-value { font-size: 24px; }
  .sensor-table, .sensor-table tbody, .sensor-table tr, .sensor-table td { display: block; width: 100%; max-width: none; }
  .sensor-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sensor-table tr { padding: 12px 14px; border-top: 1px solid var(--line); }
  .sensor-table td { padding: 5px 0; border: 0; }
  .sensor-table .sensor-identity { width: 100%; }
  .sensor-table td[data-label] { display: grid; grid-template-columns: minmax(80px, 36%) minmax(0, 1fr); align-items: start; gap: 8px; }
  .sensor-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 10px; }
  .sensor-table .status-pill { justify-self: start; }
  .sensor-row-actions > div { justify-content: flex-start; }
  .sensor-row-actions:has(> div:empty) { display: none; }
}
.severity-CRITICAL { background: var(--critical-bg); color: var(--critical); }
.severity-HIGH { background: var(--high-bg); color: var(--high); }
.severity-MEDIUM { background: var(--medium-bg); color: var(--medium); }
.severity-LOW { background: var(--low-bg); color: var(--low); }
.severity-UNKNOWN { background: var(--surface); color: var(--text); }
.os-pill { background: var(--accent-soft); color: var(--text-2); font-weight: 600; }
.table-link { padding: 4px 0; border: 0; background: none; color: var(--blue); font-size: 11px; font-weight: 650; text-align: left; }
.asset-open-link { font-size: 11px; }
.asset-open-link:hover { text-decoration: underline; }
.asset-facts-panel { margin-bottom: 18px; }
.asset-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.asset-facts > div { min-width: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.asset-facts dt { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.asset-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 12px; font-weight: 600; }
.asset-vulnerability-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 18px; }
.asset-vulnerability-metrics .metric-card { min-height: 112px; padding: 14px 16px; }
.asset-vulnerability-metrics .metric-label { min-height: 0; overflow-wrap: anywhere; }
.asset-vulnerability-metrics .metric-value { margin-top: 6px; background: transparent; }
#asset-installed-count { display: block; margin-top: 8px; color: var(--text-2); font-size: 12px; }
.severity-fixed { color: var(--success); }
.history-panel { margin-bottom: 22px; }
.history-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.history-stats > div { display: flex; flex-direction: column; align-items: flex-start; padding: 16px 19px; }
.history-stats > div + div { border-left: 1px solid var(--line); }
.history-rule { margin: 0; padding: 10px 19px 14px; border-top: 1px solid var(--line); font-size: 11px; }
.asset-detail-panel { margin-bottom: 18px; }
.agent-status-note { margin: 0 0 10px; font-size: 10px; }
.table-notes { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.table-notes p { margin: 0; font-size: 11px; }
.empty-state { padding: 34px 20px; color: var(--muted); font-size: 12px; text-align: center; }
.pagination { display: flex; min-height: 58px; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination > div { display: flex; gap: 5px; }
.pagination button:disabled { cursor: default; opacity: .42; }
.scan-batch-summary { margin-bottom: 18px; padding: 16px 18px; }
.scan-batch-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.scan-batch-heading h2 { margin: 0 0 4px; font-size: 14px; }
.scan-batch-bar { display: flex; height: 6px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: var(--surface); }
.scan-batch-bar span { display: block; height: 100%; }
#scan-batch-completed { background: var(--success); }
#scan-batch-failed { background: var(--danger); }
.request-indicator { display: block; margin-top: 4px; font-size: 10px; text-align: left; }
.request-indicator.request-failed { color: var(--danger); }
.request-indicator.request-pending { color: var(--text-2); }
.notice { margin: -8px 0 18px; padding: 11px 13px; border: 1px solid var(--warning-border); border-radius: 8px; background: var(--warning-bg); color: var(--warning); font-size: 11px; }
.enrollment-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr); align-items: start; gap: 18px; }
.enrollment-form-panel { overflow: hidden; }
.enrollment-form { display: grid; gap: 9px; padding: 0 20px 22px; color: var(--text-2); font-size: 12px; }
.enrollment-form input, .enrollment-form select { min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); }
.enrollment-form input:focus, .enrollment-form select:focus { border-color: var(--focus); outline: 3px solid var(--focus-ring); }
.field-hint { margin: -4px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.enrollment-form .button { justify-self: start; margin-top: 3px; }
.enrollment-info { display: grid; gap: 14px; }
.info-panel { padding: 20px; }
.info-panel .eyebrow { margin: 0 0 8px; }
.info-panel h2, .install-steps h3 { margin: 0 0 10px; color: var(--text); font-size: 16px; }
.info-panel p, .info-panel li, .install-steps p { color: var(--text-2); font-size: 11px; line-height: 1.6; }
.info-panel ul { display: grid; gap: 6px; margin: 12px 0 0; padding-left: 18px; }
.enrollment-warning { margin: 0; line-height: 1.6; }
.enrollment-result { margin-top: 18px; padding-bottom: 16px; }
.enrollment-result .panel-heading { align-items: center; }
.enrollment-result .panel-heading .eyebrow { margin: 0 0 6px; }
.enrollment-result .panel-heading h2 { margin: 0 0 4px; color: var(--text); font-size: 17px; }
.enrollment-result .panel-heading .muted { margin: 0; font-size: 10px; }
.enrollment-download-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.package-status { margin: 0 18px; color: var(--text-2); font-size: 11px; line-height: 1.6; }
.package-status.error { color: var(--danger); }
.install-steps { margin: 16px 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.install-steps pre { overflow-x: auto; padding: 13px 15px; border-radius: 8px; background: var(--code-bg); color: var(--code-text); font-size: 11px; line-height: 1.65; }
.install-steps code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.install-steps p { margin: 8px 0; }
.install-list { display: grid; gap: 6px; margin: 8px 0; padding-left: 20px; color: var(--text-2); font-size: 11px; line-height: 1.6; }
.install-list code { overflow-wrap: anywhere; }
.download-code-label { display: block; margin: 12px 0 5px; color: var(--text-2); font-size: 10px; font-weight: 650; }
.download-code-row { display: flex; align-items: center; gap: 8px; }
.download-code-row input { width: min(520px, 100%); min-height: 36px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.enrollment-form button:disabled, .enrollment-result button:disabled { cursor: wait; opacity: .6; }
.global-status { position: fixed; right: 24px; bottom: 20px; z-index: 10; max-width: min(400px, calc(100vw - 36px)); padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); box-shadow: 0 8px 24px #12151C1A; color: var(--text-2); font-size: 12px; }
.global-status.error { border-color: var(--danger-border); color: var(--danger); }
.finding-dialog { width: min(560px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px #12151C35; }
.finding-dialog::backdrop { background: #12151C82; backdrop-filter: blur(2px); }
.finding-state-form { display: grid; gap: 9px; margin: 0 20px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.finding-state-form label { color: var(--text-2); font-size: 12px; font-weight: 650; }
.finding-state-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; resize: vertical; font: inherit; }
.finding-state-form .button { justify-self: start; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.dialog-heading .eyebrow { margin: 0 0 7px; }
.dialog-heading h2 { margin: 0; color: var(--text); font-size: 21px; }
.finding-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; padding: 20px 22px; }
.finding-details dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.finding-details dd { margin: 0; color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.detail-wide { grid-column: 1 / -1; }
.detail-note { margin: 0; padding: 13px 22px 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.55; }
/* Threat intelligence (ADR 0027): compact tiles; details and settings in a side drawer. */
.intel-status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; margin-bottom: 20px; }
.intel-tile { display: grid; gap: 11px; align-content: start; min-height: 150px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.intel-tile:hover { border-color: var(--line-strong); box-shadow: 0 6px 20px #12151C14; transform: translateY(-1px); }
.intel-tile:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.intel-tile-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.intel-badge { flex: none; display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.intel-tile-name { display: grid; gap: 2px; min-width: 0; flex: 1; }
.intel-tile-name strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.intel-tile-name span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.intel-tile-alert { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--danger-bg); color: var(--danger); font-size: 11px; font-weight: 800; }
.intel-tile-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.intel-tile-stats { display: grid; gap: 5px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.intel-tile-stats > div { display: flex; justify-content: space-between; gap: 10px; }
.intel-tile-stats dt { color: var(--muted); font-size: 10px; }
.intel-tile-stats dd { margin: 0; overflow: hidden; color: var(--text); font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.intel-tile-add { place-content: center; justify-items: center; gap: 6px; border-style: dashed; background: var(--surface-2); color: var(--text-2); }
.intel-tile-add strong { font-size: 12px; }
.intel-add-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 18px; font-weight: 700; }
.intel-drawer { width: min(640px, 100vw); height: 100vh; max-height: 100vh; margin: 0 0 0 auto; border-width: 0 0 0 1px; border-radius: 0; flex-direction: column; }
.intel-drawer[open] { display: flex; }
.intel-dialog-description { margin: 6px 0 0; font-size: 11px; }
.intel-drawer-body, .intel-add-form { flex: 1; overflow-y: auto; padding: 4px 22px 18px; }
.intel-add-form { display: flex; flex-direction: column; padding-bottom: 0; }
.intel-section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.intel-section:last-child { border-bottom: 0; }
.intel-section h3 { margin: 0 0 10px; color: var(--text); font-size: 13px; }
.intel-section .field-hint { margin: -4px 0 12px; }
.intel-detail-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.intel-detail-stats dt { margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.intel-detail-stats dd { margin: 0; color: var(--text); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.intel-detail-wide { grid-column: 1 / -1; }
.intel-detail-error { margin: 12px 0 0; padding: 9px 11px; border: 1px solid var(--danger-border); border-radius: 8px; background: var(--danger-bg); color: var(--danger); font-size: 11px; }
.intel-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.intel-field { display: grid; gap: 5px; align-content: start; color: var(--text-2); font-size: 11px; font-weight: 650; }
.intel-field-wide { grid-column: 1 / -1; }
.intel-field input, .intel-field select { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 500; }
.intel-field textarea { width: 100%; min-height: 76px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; }
.intel-switch { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--text); font-size: 12px; font-weight: 650; cursor: pointer; }
.intel-switch input { width: 16px; height: 16px; accent-color: var(--accent); }
.intel-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.intel-preset { min-height: 32px; padding: 0 12px; border-color: var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 11px; }
.intel-preset:hover { background: var(--surface-2); }
.intel-preset[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.intel-next-preview { margin: 12px 0 0; padding: 9px 11px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 11px; }
.intel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.intel-credential-state { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.intel-dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
.intel-add-form .intel-dialog-footer { justify-content: flex-end; margin: auto -22px 0; position: sticky; bottom: 0; }
.intel-official-link { color: var(--blue); font-size: 11px; font-weight: 600; text-decoration: none; }
.intel-official-link:hover { text-decoration: underline; }
.intel-preview { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); font-size: 11px; }
.intel-preview ul { margin: 6px 0 0; padding-left: 18px; }
.intel-add-hint { margin: 12px 0; }
.release-withdrawn-toggle { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.release-withdrawn-toggle[hidden] { display: none; }
.release-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.release-tab { min-height: 40px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-2); font-size: 11px; font-weight: 650; white-space: nowrap; }
.release-tab.active { border-bottom-color: var(--blue); color: var(--blue); }
.release-sections { display: grid; gap: 17px; }
.release-platform-section h2 { margin: 0 0 9px; color: var(--text); font-size: 15px; }
.release-platform-empty { margin: 0; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 9px; background: var(--surface); }
.release-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 12px; padding: 21px 23px; }
.direct-release-download { margin-top: 16px; padding-bottom: 18px; }
.direct-release-download .panel-heading { margin-bottom: 8px; }
.download-command-label { margin: 14px 0 5px; color: var(--text-2); font-size: 11px; }
.release-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text); font-size: 15px; }
.release-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; }
.release-details > div { min-width: 0; display: grid; gap: 3px; }
.release-details span { color: var(--muted); font-size: 11px; }
.release-details strong { overflow-wrap: anywhere; color: var(--text); font-size: 12px; font-weight: 600; }
.release-notes { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.6; }
.release-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
.release-actions .button { min-height: 37px; padding: 0 14px; font-size: 11px; white-space: normal; }
.release-card .release-note { margin: 0; padding: 10px 13px; }
.release-integrity { color: var(--text-2); font-size: 11px; }
.release-integrity summary, .release-shell-download summary { cursor: pointer; }
.release-integrity code { display: block; margin-top: 9px; overflow-wrap: anywhere; color: var(--text); user-select: all; }
.release-link-content { padding: 0 20px 2px; font-size: 12px; line-height: 1.6; }
.direct-release-download:not([hidden]) { margin-bottom: 20px; border-color: var(--line-strong); }
.release-shell-download { margin-top: 18px; }
.release-shell-download .download-code-label { display: block; margin-top: 14px; }
.release-note { margin-top: 14px; }
.release-publisher { margin-top: 24px; }
.release-publisher > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 20px; cursor: pointer; font-size: 14px; font-weight: 650; color: var(--text); }
.release-publisher > summary::before { content: "+"; margin-right: 4px; font-size: 18px; }
.release-publisher[open] > summary::before { content: "−"; }
.release-publisher > summary > span:first-child { flex: 1; }
.release-publisher-hint { margin: 0 20px 18px; color: var(--text-2); font-size: 12px; }
.release-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; padding: 0 20px 19px; }
.release-form label { display: grid; gap: 5px; color: var(--text-2); font-size: 10px; font-weight: 650; }
.release-form input:not([type="file"]):not([type="checkbox"]), .release-form select, .release-form textarea { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.release-form input[type="file"] { max-width: 100%; padding: 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text-2); font-size: 10px; }
.release-file-label, .release-notes-label, .release-limit { grid-column: 1 / -1; }
.release-recommended-label { display: flex !important; grid-auto-flow: column; justify-content: start; align-items: center; min-height: 38px; }
.release-recommended-label input { accent-color: var(--blue); width: 16px; height: 16px; min-height: 16px; padding: 0; flex: none; }
.release-form-footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.release-form .release-recommended-label { display: flex; gap: 8px; font-weight: 500; }
.agent-download-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.agent-download-box { width: min(100%, 600px); padding: 32px; }
.agent-download-box h1 { margin: 12px 0; font-size: 25px; color: var(--text); }
.agent-download-box p { font-size: 14px; line-height: 1.65; color: var(--text-2); }
.agent-download-box #download-status { min-height: 45px; margin-top: 20px; }
.package-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0 20px; font-size: 14px; color: var(--text); }
.package-details dt { font-weight: 600; color: var(--text-2); }
.package-details dd { margin: 0; overflow-wrap: anywhere; }
.package-details code { font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.release-form .button { justify-self: start; }
.release-limit { margin: -3px 0 0; }
.admin-panel { margin-bottom: 18px; }
.admin-form { display: grid; gap: 9px; padding: 18px 21px 21px; color: var(--text-2); font-size: 12px; }
.admin-form label { color: var(--text-2); font-size: 12px; font-weight: 650; }
.admin-form input:not([type="file"]), .admin-form select, .inline-select, .secret-panel input { min-height: 39px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); }
.admin-form input[type="file"] { max-width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
.admin-form .field-hint { margin: 0; }
.tenant-login-field { display: grid; gap: 5px; }
.admin-form .button { justify-self: start; margin-top: 4px; }
.admin-form button:disabled { cursor: wait; opacity: .6; }
.form-grid { grid-template-columns: minmax(100px, .35fr) minmax(180px, 1fr); align-items: center; }
.form-grid .button { grid-column: 2; }
.form-grid .checkbox-row { display: flex; grid-column: 1 / -1; align-items: flex-start; gap: 10px; }
.form-grid .checkbox-row input { width: auto; margin-top: 3px; }
.form-wide { grid-column: 1 / -1; }
.secret-panel { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--success-border); border-radius: 9px; background: var(--success-bg); color: var(--success); font-size: 11px; overflow-wrap: anywhere; }
.secret-panel code { display: block; padding: 10px; border-radius: 7px; background: var(--success-bg); color: var(--success); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; user-select: all; }
.secret-panel input { width: 100%; font-size: 11px; }
.secret-panel .button { margin-top: 0; }
.table-action { margin: 2px 9px 2px 0; padding: 4px 0; border: 0; background: none; color: var(--blue); font-size: 10px; font-weight: 650; white-space: nowrap; }
.table-action-danger { color: var(--danger); }
.table-action:disabled { opacity: .5; }
.inline-select { width: auto; min-width: 130px; min-height: 32px; padding: 0 7px; font-size: 11px; }
.audit-details { max-width: 280px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.organization-card { margin-bottom: 18px; }
.organization-card .panel-heading { min-height: 95px; }
.organization-card .eyebrow { margin: 0 0 6px; }
.organization-card h2 { margin-bottom: 4px; color: var(--text); font-size: 20px; }
.organization-card .muted { font-size: 11px; }
.remediation-boundary { margin-bottom: 18px; border-color: var(--warning-border); background: var(--warning-bg); color: var(--warning); }
.remediation-panel { margin-bottom: 20px; }
.remediation-toolbar { flex-wrap: wrap; gap: 12px; }
.remediation-toolbar .search-box { min-width: 260px; }
.remediation-toolbar .filter-label { min-width: 250px; }
.consolidated-toolbar .search-box { min-width: 250px; }
#asset-consolidated-body details summary { cursor: pointer; color: var(--text-strong); font-weight: 650; }
#asset-consolidated-body details ul { max-height: 220px; overflow: auto; margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
#asset-consolidated-body details li { margin: 4px 0; }
.remediation-reason-row td { padding-top: 0; padding-left: 52px; border-top: 0; color: var(--muted); font-size: 10px; }
.remediation-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.remediation-actions > span { margin-right: auto; color: var(--muted); font-size: 12px; }
.remediation-panel input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); }
.remediation-panel .table-action { margin-right: 5px; }
.role-badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text-2); font-size: 10px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .app-shell { grid-template-columns: 214px minmax(0, 1fr); }
  .nav-item { gap: 9px; padding: 0 9px; font-size: 12px; }
  .nav-sub { padding-left: 16px; font-size: 11px; }
  .topbar { padding: 0 24px; }
  .page-content { padding: 27px 24px; }
  .metric-grid, .asset-vulnerability-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-stats { grid-template-columns: 1fr; }
  .history-stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .asset-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enrollment-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 6; width: 100%; height: auto; padding: 10px 12px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin: 0 0 9px 3px; font-size: 17px; }
  .sidebar .brand-logo { width: 120px; }
  .sidebar-caption, .sidebar-bottom { display: none; }
  .navigation { display: flex; gap: 3px; overflow-x: auto; }
  .nav-item { min-height: 36px; flex: 0 0 auto; gap: 6px; padding: 0 9px; font-size: 10px; }
  .nav-icon { width: 14px; font-size: 14px; }
  .topbar { position: static; min-height: 50px; padding: 0 15px; }
  .breadcrumb, .account-area { gap: 7px; font-size: 10px; }
  .user-name { display: none; }
  #organization-label { max-width: 130px; }
  .account-area .button { white-space: nowrap; }
  .topbar { gap: 10px; }
  .page-content { padding: 24px 14px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .page-heading .button { min-height: 31px; padding: 0 8px; font-size: 10px; white-space: nowrap; }
  .metric-grid { gap: 9px; }
  .asset-facts > div { padding: 12px; }
  .metric-card { min-height: 119px; padding: 13px; }
  .metric-label { min-height: 28px; font-size: 9px; }
  .metric-value { font-size: 25px; }
  .toolbar, .findings-toolbar { flex-wrap: wrap; align-items: stretch; padding: 12px; }
  .search-box { min-width: 100%; }
  .filter-label { min-width: calc(50% - 7px); flex: 1; }
  .result-count { margin: 0; }
  .panel-heading { padding: 15px; }
  td, th { padding: 11px 12px; }
  .login-card { padding: 30px 24px; }
  .enrollment-result .panel-heading { align-items: flex-start; flex-direction: column; }
  .enrollment-download-actions { width: 100%; flex-direction: column; }
  .release-card { grid-template-columns: 1fr; gap: 10px; }
  .release-actions { justify-content: flex-start; flex-wrap: wrap; }
  .release-form { grid-template-columns: 1fr; padding: 0 15px 15px; }
  .release-file-label, .release-notes-label, .release-limit { grid-column: 1; }
  .intel-field-grid, .intel-detail-stats { grid-template-columns: 1fr; }
  .intel-drawer-body, .intel-add-form { padding: 4px 16px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .button, .form-wide { grid-column: 1; }
  .admin-form { padding: 15px; }
  .table-action { display: inline-block; }
  .nav-section-label { display: none; }
  .remediation-toolbar .search-box, .remediation-toolbar .filter-label { min-width: 100%; }
  .remediation-actions { justify-content: flex-start; }
  .remediation-actions > span { width: 100%; }
}
.metadata-section { margin: 4px 0 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.metadata-section summary { cursor: pointer; color: var(--text); font-weight: 650; }
.metadata-section[open] summary { margin-bottom: 10px; }
.metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.metadata-grid label { display: grid; gap: 5px; color: var(--text-2); font-size: 12px; font-weight: 650; }
.metadata-grid .field-hint { margin: 0; font-weight: 400; }
.metadata-grid input, .metadata-grid select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.metadata-grid input:focus, .metadata-grid select:focus { border-color: var(--focus); outline: 3px solid var(--focus-ring); }
.metadata-grid [aria-invalid="true"] { border-color: var(--danger-border); background: var(--danger-bg); }
.metadata-wide { grid-column: 1 / -1; }
.metadata-dialog { width: min(720px, calc(100vw - 28px)); }
.metadata-form { display: grid; gap: 12px; padding: 18px 22px 22px; }
.metadata-actions { display: flex; gap: 8px; }
.metadata-form button:disabled { cursor: wait; opacity: .6; }
.tag-pill { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--text-2); font-size: 10px; font-weight: 600; }
.asset-toolbar { flex-wrap: wrap; }
@media (max-width: 720px) {
  .metadata-grid { grid-template-columns: 1fr; }
}

.terms-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 55vh; overflow: auto; font: inherit; }
#terms-dialog { max-width: 850px; width: 90vw; }
.terms-footer { padding: 20px; text-align: center; }
#asset-treatments { padding: 20px; }
#terms-accept-form, #terms-publish-form, #recipient-login, #recipient-accept { display: grid; gap: 14px; margin: 18px 0; }
#terms-accept-form label, #terms-publish-form label, #recipient-login label, #recipient-accept label { display: block; }
#terms-accept-form input[type="checkbox"], #terms-publish-form input[type="checkbox"], #recipient-accept input[type="checkbox"] { width: auto; margin-right: 8px; }
#terms-publish-form textarea, #terms-publish-form input:not([type="checkbox"]), #recipient-login input { width: 100%; }
#terms-dialog { padding: 24px; }
#recipient-terms { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
#download-package:disabled { opacity: .5; cursor: not-allowed; }

/* Asset page views (issue #86) and programs table (issue #85). */
.asset-tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.asset-tab { min-height: 40px; padding: 0 18px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--text-2); font-size: 13px; font-weight: 650; }
.asset-tab[aria-selected="true"] { border-bottom-color: var(--blue); color: var(--navy); }
.asset-tab:focus-visible, .asset-tab-panel:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.asset-result-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.asset-result-tab { flex: 1 1 180px; min-width: 150px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line-strong); border-bottom: 3px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.asset-result-tab:hover:not([aria-selected="true"]) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.asset-result-tab[aria-selected="true"] { border-color: var(--accent); border-bottom: 4px solid var(--on-accent); background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 8px var(--focus-ring); font-weight: 800; }
.asset-result-tab:focus-visible, .asset-result-panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.result-page-size { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: var(--muted); white-space: nowrap; }
.result-page-size select { min-width: 66px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); }
@media (max-width: 900px) {
  .asset-result-tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-color: var(--accent) var(--surface); scrollbar-width: thin; }
  .asset-result-tab { flex: 0 0 190px; min-width: 0; min-height: 52px; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .asset-result-tab { transition: none; }
}
.asset-summary-panel { margin-bottom: 18px; padding: 0 0 4px; }
.asset-summary-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.asset-summary-facts > div { min-width: 0; padding: 14px 18px; }
.asset-summary-facts dt { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.asset-summary-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 12px; font-weight: 600; }
.asset-summary-facts dd .muted { display: block; margin-top: 6px; font-size: 10px; font-weight: 400; }
.asset-summary-statement { margin: 0 18px 14px; padding: 10px 12px; border: 1px solid var(--warning-border); border-radius: 8px; background: var(--warning-bg); color: var(--warning); font-size: 11px; }
.indicative-pill { background: var(--indicative-bg); color: var(--indicative); }
.program-detail-row td { max-width: none; background: var(--surface-2); }
.program-detail h3 { margin: 10px 0 4px; font-size: 12px; }
.program-detail ul { margin: 0 0 8px; padding-left: 18px; }
.program-detail li { margin-bottom: 4px; overflow-wrap: anywhere; }
.program-detail p { margin: 0 0 6px; }
#asset-software-body details p { margin: 6px 0; max-width: 420px; white-space: normal; }
@media (max-width: 1050px) {
  .asset-summary-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .asset-summary-facts { grid-template-columns: 1fr; }
  .asset-tab { flex: 1; padding: 0 10px; }
}

/* #111 */
.button-danger { background: var(--danger-fill); color: var(--on-danger); }
.button-danger:hover:not(:disabled) { background: var(--danger-fill-hover); }
.button-danger:disabled { cursor: not-allowed; opacity: .55; }
.asset-select-cell { width: 36px; }
.asset-delete-form { display: grid; gap: 12px; padding: 18px 22px 22px; }
.asset-delete-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 650; color: var(--text); }
.asset-delete-form input, .asset-delete-form textarea { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.asset-delete-form textarea { resize: vertical; }
.asset-delete-summary { margin: 0; font-size: 13px; }
.asset-delete-list { max-height: 160px; margin: 0; padding-left: 18px; overflow: auto; font-size: 12px; color: var(--text); }
.asset-delete-list:empty { display: none; }

/* Generic installers and new computers (ADR 0019). */
.nav-badge { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--warning); color: var(--on-badge); font-size: 10px; font-weight: 700; text-align: center; }
.nav-sub { padding-left: 20px; gap: 8px; font-size: 12px; }
.nav-item { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-sub .nav-icon { width: 14px; font-size: 14px; }
.installer-lead { margin: 0 0 8px; color: var(--text); font-size: 13px; line-height: 1.5; }
.installer-facts { display: grid; gap: 4px; margin: 0 0 14px; padding-left: 18px; color: var(--text-2); font-size: 12px; line-height: 1.5; }
.installer-steps-title { margin: 14px 0 4px; color: var(--text); font-size: 12px; }
.installer-script { margin: 6px 0 8px; padding: 10px 12px; overflow-x: auto; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.enrollment-keys-panel { margin-top: 18px; }
.enrollment-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.enrollment-match { font-size: 11px; line-height: 1.4; }
.enrollment-history { margin-top: 18px; }
.enrollment-history summary { cursor: pointer; font-weight: 650; }
.link-button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; }

/* Asset vulnerabilities table: toolbar, sortable headers and fix guidance. */
.vuln-panel .panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.segmented-option { min-height: 30px; padding: 0 14px; border: 0; background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 650; cursor: pointer; }
.segmented-option.active { background: var(--blue); color: var(--on-accent); }
.vuln-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 12px; }
.vuln-toolbar input[type=search] { flex: 1 1 260px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 12px; }
.vuln-toolbar select { min-height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 12px; }
#view-asset-detail .vuln-toolbar { padding: 12px 18px; }
#view-asset-detail .vuln-toolbar select { width: auto; max-width: 100%; }
@media (width > 720px) and (width <= 1100px) {
  .asset-vulnerability-metrics.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.vuln-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.chip { min-height: 28px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 11px; font-weight: 650; cursor: pointer; }
.chip.active { border-color: var(--blue); color: var(--accent); background: var(--surface); }
.sort-header { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
.sort-header::after { content: " ↕"; opacity: .35; }
.sort-header.active[data-order=asc]::after { content: " ↑"; opacity: 1; }
.sort-header.active[data-order=desc]::after { content: " ↓"; opacity: 1; }
.vuln-table td { vertical-align: top; }
.vuln-scope, .vuln-location { max-width: 340px; overflow-wrap: anywhere; white-space: pre-line; font-size: 11px; }
.vuln-scope { max-width: 220px; }
.vuln-fix-toggle { min-height: 28px; padding: 0 12px; font-size: 11px; }
.vuln-fix-toggle.active { border-color: var(--blue); }
.vuln-guidance-row td { background: var(--surface); }
.vuln-guidance { display: grid; gap: 12px; padding: 6px 4px; }
.vuln-guidance dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 12px; }
.vuln-guidance dt { color: var(--text-2); font-weight: 650; }
.vuln-guidance dd { margin: 0; overflow-wrap: anywhere; }
.vuln-guidance ol, .vuln-paths { margin: 0; padding-left: 18px; }
.vuln-links { display: flex; flex-wrap: wrap; gap: 12px; }
.vuln-guidance > .button { justify-self: start; }
@media (max-width: 760px) { .vuln-guidance dl { grid-template-columns: 1fr; } }
.vuln-deploy { display: grid; gap: 8px; justify-items: start; }
.vuln-deploy-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 760px; }
.vuln-deploy-form p { flex-basis: 100%; margin: 0; font-size: 12px; }
.vuln-deploy-form input { min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text); }
/* Deploy update follow-up (ADR 0024): status pill with spinner, steps with time. */
.status-warning { background: var(--warning-bg); color: var(--warning); }
.deploy-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.deploy-status .status-pill { gap: 6px; }
.deploy-status-reason { color: var(--danger); font-size: 11px; }
.spinner { width: 9px; height: 9px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.deploy-row-status { display: flex; margin-top: 6px; }
.deploy-current { display: grid; gap: 6px; justify-items: start; }
.deploy-current .field-hint { margin: 0; }
.deploy-timeline { display: grid; gap: 4px; margin: 0; padding: 0 0 0 16px; font-size: 11px; color: var(--text-2); }
.deploy-timeline li { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.deploy-timeline li.pending { color: var(--muted); font-style: italic; }
.deploy-timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.deploy-activity { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.deploy-activity-item { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.deploy-activity-item.open { border-color: var(--line-strong); background: var(--surface); }
.deploy-activity-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.deploy-activity-item .field-hint { margin: 0; }
.deploy-list-indicator { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.deploy-agent-outdated { margin: 0; }
.vuln-switches { display: flex; flex-wrap: wrap; gap: 8px; }
.vuln-cve-list { width: 100%; border-collapse: collapse; font-size: 11px; }
.vuln-cve-list th { text-align: left; color: var(--text-2); font-weight: 650; padding: 4px 8px 4px 0; }
.vuln-cve-list td { padding: 4px 8px 4px 0; border-top: 1px solid var(--line); }
.vuln-fix-dialog { width: min(1040px, calc(100vw - 28px)); max-width: 1040px; max-height: min(88vh, 900px); overflow: auto; }
.vuln-fix-heading { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.vuln-fix-heading .eyebrow { margin: 0 0 6px; }
.vuln-fix-package { margin: 5px 0 0; color: var(--text-2); font-size: 13px; }
.vuln-fix-close { min-width: 36px; min-height: 36px; padding: 0; font-size: 23px; }
.vuln-fix-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 22px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.vuln-fix-summary > div { display: grid; align-content: start; gap: 6px; min-width: 0; padding-right: 10px; border-right: 1px solid var(--line); }
.vuln-fix-summary > div:last-child { border-right: 0; }
.vuln-fix-summary span, .vuln-version-card span { color: var(--text-2); font-size: 11px; }
.vuln-fix-summary strong { overflow-wrap: anywhere; font-size: 12px; }
.vuln-version-comparison { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 14px; margin: 20px 22px; }
.vuln-version-card { display: grid; justify-items: center; gap: 8px; min-height: 108px; align-content: center; padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); text-align: center; }
.vuln-version-card.fixed { border-color: var(--focus); background: var(--surface); }
.vuln-version-card strong { overflow-wrap: anywhere; font-size: clamp(20px, 4vw, 31px); }
.vuln-version-arrow { color: var(--text-2); font-size: 29px; text-align: center; }
.vuln-fix-section { margin: 0 22px; padding: 14px 0; border-top: 1px solid var(--line); }
.vuln-fix-section h3, .vuln-fix-explanations h3 { margin: 0 0 10px; font-size: 15px; }
.vuln-cve-scroll { overflow-x: auto; }
.vuln-fixed-cves .vuln-cve-list { min-width: 650px; }
.vuln-fixed-cves .vuln-cve-list th, .vuln-fixed-cves .vuln-cve-list td { padding: 9px 10px; }
.vuln-fix-actions { margin: 0 22px; padding: 14px 0; border-top: 1px solid var(--line); }
.vuln-link-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; text-decoration: none; }
.vuln-fix-explanations { display: grid; gap: 13px; margin: 0 22px; padding: 14px 0 20px; border-top: 1px solid var(--line); line-height: 1.6; }
.vuln-fix-explanations p, .vuln-fix-explanations ol { margin: 0; font-size: 12px; }
.vuln-fix-explanations ol { padding-left: 20px; }
.vuln-fix-treatment-note { padding-top: 10px; border-top: 1px solid var(--line); color: var(--text-2); }
@media (max-width: 760px) {
  .vuln-fix-dialog { max-height: 94vh; }
  .vuln-fix-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vuln-fix-summary > div:nth-child(even) { border-right: 0; }
  .vuln-version-comparison { grid-template-columns: 1fr; }
  .vuln-version-arrow { transform: rotate(90deg); }
}

/* ADR 0025: agent update command, wrapped so nothing overlaps or scrolls sideways. */
.update-panel { display: grid; gap: 12px; margin-bottom: 18px; }
.update-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.update-panel-heading h2 { margin: 0; }
.update-panel p { margin: 0; line-height: 1.6; }
.command-box { display: grid; gap: 10px; justify-items: start; }
.command-box pre { width: 100%; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.link-button { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }
.permanent-link { display: grid; gap: 8px; }
.permanent-link h3 { margin: 0; font-size: 13px; }
.permanent-link-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#asset-software-updates-agent { margin: 0 0 12px; }
