/* Local Inter 4.1, SIL OFL 1.1. See fonts/Inter-LICENSE.txt. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}

:root {
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --type-body: 14px;
  --type-label: 13px;
  --type-small: 12px;
  --muted: #596a82;
}

body {
  font-size: var(--type-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  font-kerning: normal;
}

button, input, select, textarea { font-family: var(--font); }
strong { font-weight: 600; }
h1, .page-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.7px; line-height: 1.25; }
h2, .panel-header h2 { font-size: 17px; font-weight: 650; line-height: 1.4; }
h3 { font-size: 17px; line-height: 1.45; }
small { font-size: var(--type-small); }
code, .mono, .raw-preview, .raw-box, .evidence-box {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}

/* Navigation and persistent scope remain readable alongside dense telemetry. */
.nav-link { font-size: 14px; font-weight: 500; line-height: 1.5; padding: 11px 12px; }
.nav-label, .tenant-switcher label, .eyebrow, .section-kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1px;
}
.brand { padding-inline: 5px; gap: 9px; }
.scope-select { font-size: 13px; min-height: 40px; }
.workspace-name, .profile-info strong { font-size: 13px; font-weight: 600; }
.workspace small, .profile-info small, .scope-caption,
.tenant-switcher .scope-caption, .system-status, .system-status small,
.breadcrumb, .context-status, .scope-chip, .context-bar .scope-chip,
.demo-badge, .topbar-right .demo-badge, .nav-tag { font-size: 11px; }
.tenant-switcher .scope-caption { line-height: 1.6; }
.global-search input { font-size: 12px; height: 38px; }
.keyhint { font-size: 11px; top: 9px; }
.page-head p { font-size: 14px; line-height: 1.65; margin-top: 8px; }
.settings-intro, .summary-strip, .settings-row { font-size: 13px; line-height: 1.7; }
.settings-intro[style] { font-size: 13px !important; }
.summary-strip .muted { font-size: 12px; }

/* Consistent table rhythm: primary data 14px, supporting data 12px. */
table { font-size: 14px; line-height: 1.55; }
th, .table-events th {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .2px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.table-sub { font-size: 12px; line-height: 1.55; color: #60718a; margin-top: 5px; }
.rule-name strong { font-size: 14px; font-weight: 600; color: #293b57; line-height: 1.55; }
.rule-description { font-size: 14px; line-height: 1.65; color: #4e6079; }
.rules-catalog .rule-name { min-width: 245px; }
.rules-catalog .rule-description { min-width: 210px; max-width: 300px; }
.rules-catalog td { padding-top: 17px; padding-bottom: 17px; }
.rules-catalog .pill { white-space: normal; max-width: 190px; line-height: 1.5; }
.severity-badge, .pill, .technique { font-size: 12px; line-height: 1.5; }
.rule-fingerprint { font-size: 11px; letter-spacing: 0; color: #65738b; }
.rule-execution-error { font-size: 12px; }
.source-info strong, .source-count { font-size: 13px; }
.source-info p { font-size: 12px; line-height: 1.6; }
.source-icon { font-size: 12px; }
.raw-preview { font-size: 12px; }
.toolbar-count, .pagination, .panel-header p, .panel-link,
.panel-bottom-note, .footer { font-size: 12px; }
.panel-header p { line-height: 1.6; }
.filter-search input { font-size: 13px; min-height: 40px; }
.filter-select, .time-select { font-size: 13px; height: 40px; }
.btn, .tab { font-size: 13px; font-weight: 550; }
.btn { min-height: 40px; }
.btn-small { font-size: 12px; min-height: 34px; }
.kpi-title, .state-card span { font-size: 12px; }
.kpi-value { font-size: 32px; font-weight: 650; font-variant-numeric: tabular-nums; }
.kpi-footer { font-size: 12px; max-width: none; }
.chart-stats, .chart-stats strong { font-size: 13px; }
.metric-chart, .metric-severity, .metric-queue {
  --metric-blue: #356395;
  --metric-teal: #197164;
  --metric-amber: #945a21;
  --metric-violet: #75569a;
  --metric-red: #a33a52;
  --metric-slate: #5c6d83;
  min-width: 0;
  margin: 0;
  padding: 10px 20px 18px;
}
.metric-chart-caption { color: var(--text); font-size: 12px; font-weight: 650; }
.metric-chart-body {
  --plot-height: 190px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: var(--plot-height) auto;
  gap: 9px 12px;
  margin-top: 16px;
}
.metric-chart--compact .metric-chart-body { --plot-height: 135px; }
.metric-chart-scale { position: relative; min-width: 2ch; color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
.metric-chart-scale span { position: relative; display: block; top: var(--chart-position); transform: translateY(-50%); height: 0; line-height: 0; text-align: right; }
.metric-chart-plot {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(var(--chart-columns), minmax(0, 1fr));
  gap: clamp(1px, .43vw, 8px);
  min-width: 0;
  border-bottom: 1px solid var(--line);
}
.metric-chart-gridline { position: absolute; z-index: -1; inset: var(--chart-position) 0 auto; border-top: 1px solid var(--line); }
.metric-chart-column { display: flex; align-items: center; flex-direction: column-reverse; min-width: 0; min-height: 0; }
.metric-chart-column > i { flex: none; width: min(86%, 42px); height: var(--chart-size); }
.metric-chart-column > i:last-child { border-radius: 2px 2px 0 0; }
.metric-chart-column > i + i { border-bottom: 1px solid var(--panel, #fff); }
.metric-chart-column:hover > i { filter: brightness(1.15); }
.metric-chart-dates {
  display: grid;
  grid-column: 2;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  text-align: center;
}
.metric-chart-dates span:first-child:not(:only-child) { text-align: start; }
.metric-chart-dates span:last-child:not(:only-child) { text-align: end; }
.metric-chart-legend { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--text); font-size: 12px; }
.metric-chart-legend li { display: flex; align-items: center; gap: 7px; }
.metric-swatch, .metric-ring-segment { --metric-color: var(--metric-blue); }
.metric-swatch.storage, .metric-ring-segment.low { --metric-color: var(--metric-teal); }
.metric-swatch.correlated, .metric-ring-segment.high { --metric-color: var(--metric-amber); }
.metric-ring-segment.medium, .metric-swatch.medium { --metric-color: var(--metric-violet); }
.metric-swatch.high_confidence, .metric-swatch.critical, .metric-ring-segment.critical { --metric-color: var(--metric-red); }
.metric-ring-segment.info, .metric-swatch.info { --metric-color: var(--metric-slate); }
.metric-swatch.high { --metric-color: var(--metric-amber); }
.metric-swatch.low { --metric-color: var(--metric-teal); }
.metric-swatch { background: var(--metric-color); }
.metric-chart-legend i, .metric-severity-table i { display: inline-block; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 2px; }
.metric-chart-links { display: flex; justify-content: end; margin: 9px 0 3px; }
.metric-chart-zero { color: var(--text); font-size: 12px; margin: 11px 0 0; }
.metric-chart-data { margin-top: 6px; }
.metric-chart-data summary { width: fit-content; color: var(--accent); cursor: pointer; padding: 7px 3px; font-size: 12px; }
.metric-chart-data summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.metric-chart-data .table-scroll { margin-top: 5px; }
.metric-chart-data th[scope="row"], .metric-chart-data td { font-variant-numeric: tabular-nums; }
.metric-chart-data th[scope="row"] { text-align: start; font-weight: 550; }
.metric-chart-data td, .metric-chart-data th[scope="col"]:not(:first-child) { text-align: end; }
.metric-chart-data td { white-space: nowrap; }
.metric-chart-dialog { width: min(920px, calc(100% - 24px)); max-width: none; }
.metric-chart-dialog .metric-chart { padding: 6px 0 2px; }
.metric-chart-dialog .metric-chart .metric-chart-body { --plot-height: clamp(155px, 33vh, 320px); }
.metric-severity { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.metric-ring-wrap { position: relative; flex: 0 1 115px; min-width: 0; }
.metric-ring { width: 100%; display: block; }
.metric-ring-track, .metric-ring-segment { fill: none; stroke-width: 14; }
.metric-ring-track { stroke: var(--line); }
.metric-ring-segment { stroke: var(--metric-color); }
.metric-ring-wrap > div { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1px; }
.metric-ring-wrap strong { color: var(--text); font-size: clamp(15px, 2vw, 23px); font-variant-numeric: tabular-nums; }
.metric-ring-wrap span { color: var(--text); font-size: 11px; }
.metric-severity-table { width: 100%; min-width: 0; max-width: 100%; flex: 1 1 245px; table-layout: fixed; }
.metric-severity .metric-severity-table :is(th, td) {
  padding: 6px 5px;
  text-align: end;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
}
.metric-severity .metric-severity-table th:first-child { width: 52%; text-align: start; }
.metric-severity-table th[scope="row"] { font-weight: 550; }
.metric-severity-table i { margin-inline-end: 5px; }
.metric-severity-table small { margin-inline-start: 4px; color: var(--text); white-space: nowrap; }
.metric-queue { --queue-label: minmax(110px, 145px); --queue-value: minmax(5ch, max-content); }
.metric-queue-scale, .metric-queue li { display: grid; grid-template-columns: var(--queue-label) minmax(0, 1fr) var(--queue-value); gap: 12px; align-items: center; }
.metric-queue-scale { position: relative; color: var(--text); font-size: 12px; margin: 12px 0 6px; }
.metric-queue-scale span { grid-column: 2; grid-row: 1; }
.metric-queue-scale span:last-child { justify-self: end; }
.metric-queue ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.metric-queue li { color: var(--text); font-size: 12px; }
.metric-queue li strong { text-align: end; font-variant-numeric: tabular-nums; }
.metric-queue-track { height: 11px; border-radius: 3px; background: var(--line); overflow: hidden; }
.metric-queue-track i { display: block; width: var(--chart-size); height: 100%; }
.monitoring-queue { margin-bottom: 18px; }
@media (max-width: 600px) {
  .metric-chart, .metric-severity, .metric-queue { padding-inline: 14px; }
  .metric-chart-body { --plot-height: 150px; column-gap: 8px; }
  .metric-chart--compact .metric-chart-body { --plot-height: 115px; }
  .metric-chart-plot { gap: 1px; }
  .metric-severity { gap: 9px; }
  .metric-ring-wrap { flex-basis: 95px; }
  .metric-severity-table th, .metric-severity-table td { padding-inline: 3px; }
  .metric-queue { --queue-label: minmax(88px, 110px); }
  .metric-queue-scale, .metric-queue li { gap: 7px; }
}
.state-card strong { font-size: 23px; font-variant-numeric: tabular-nums; }
.project-card p, .monitoring-deploy-grid p { font-size: 14px; line-height: 1.7; }
.project-meta>div, .monitoring-worker-list span:first-child { font-size: 12px; }
.project-meta strong { font-size: 14px; }
.empty strong { font-size: 16px; }
.empty p, .error-state p, .loading { font-size: 14px; }

/* Forms use the same family and scale as the operational views. */
.field, .field>span, .rule-editor .field>span, .rule-predicate .field>span {
  font-size: 13px;
  font-weight: 550;
}
.field input, .field select, .field textarea,
.rule-editor .field input, .rule-editor .field select, .rule-editor .field textarea,
.rule-predicate .field input, .rule-predicate .field select {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  min-height: 42px;
}
.field small, .rule-editor .field small, .form-error, .toast,
.rule-hint, .rule-section-heading p, .rule-condition-group .rule-hint,
.rule-scope-note, .rule-definition-meta, .rule-feedback, .rule-warnings,
.rule-preview-metrics span, .rule-history-item>div>span,
.rule-history-item details { font-size: 12px; line-height: 1.7; }
.dialog-header h2, .rule-editor .dialog-header h2 { font-size: 22px; font-weight: 650; }
.dialog-header p, .rule-editor .dialog-header p { font-size: 12px; line-height: 1.6; }
.detail-heading { font-size: 12px; font-weight: 650; letter-spacing: .5px; }
.attribute-table, .attribute-table th, .attribute-table td { font-size: 13px; line-height: 1.6; }
.rule-editor-tab { font-size: 13px; font-weight: 600; }
.rule-section-heading h3 { font-size: 18px; }
.rule-section-heading h4, .rule-subheading { font-size: 14px; font-weight: 600; }
.rule-check, .rule-mode-picker .rule-check, .rule-case { font-size: 12px; line-height: 1.55; }
.rule-predicate { grid-template-columns: minmax(120px,1.1fr) minmax(125px,.95fr) minmax(140px,1.3fr) 142px auto; }
.rule-editor .field textarea.mono { font-family: var(--font-mono); font-size: 12px; line-height: 1.8; }
.rule-feedback strong, .rule-history-item>div>strong { font-size: 14px; font-weight: 600; }
.rule-preview-metrics strong { font-size: 26px; }
.scenario-option strong { font-size: 14px; }
.scenario-option small { font-size: 12px; line-height: 1.7; }
.login-feature, .login-page .login-feature { font-size: 14px; }
.login-note, .login-page .login-note { font-size: 12px !important; line-height: 1.8; }

@media (max-width: 1000px) {
  .rule-predicate { grid-template-columns: 1fr 1fr 1.2fr; }
}
@media (max-width: 650px) {
  h1, .page-head h1 { font-size: 26px; }
  .dialog-header h2, .rule-editor .dialog-header h2 { font-size: 20px; }
  .field input, .field select, .field textarea,
  .rule-editor .field input, .rule-editor .field select, .rule-editor .field textarea,
  .rule-predicate .field input, .rule-predicate .field select { font-size: 16px; }
  .rule-predicate { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .rule-group-toolbar>.btn { font-size: 12px; }
  .rule-editor-tab { padding: 13px 11px; }
  .dialog-footer .btn { min-height: 44px; }
}

.asset-overview { margin-bottom: 20px; }
.asset-toolbar { flex-wrap: wrap; }
.asset-toolbar .filter-search { flex: 1 1 260px; }
.asset-toolbar .filter-select { max-width: 100%; }
.asset-table { min-width: 1050px; font-size: 13px; }
.asset-table thead th { padding: 10px 14px; color: #465678; }
.asset-table tbody th, .asset-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.asset-table tbody th { background: inherit; font-size: inherit; letter-spacing: normal; white-space: normal; min-width: 160px; }
.asset-table td:nth-child(3) { min-width: 145px; }
.asset-table tbody tr:nth-child(even) { background: #f8f9fd; }
.asset-table tbody tr:hover, .asset-table tbody tr:focus-within { background: #eff2fb; }
.asset-sort, .asset-name {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}
.asset-sort { display: inline-flex; align-items: center; gap: 7px; }
.asset-sort span { font-size: 12px; color: #6a758d; }
.asset-table th[aria-sort="ascending"] .asset-sort, .asset-table th[aria-sort="descending"] .asset-sort { color: var(--accent); }
.asset-name { color: var(--accent); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.asset-name:hover { text-decoration: underline; }
.asset-project { display: block; margin-top: 2px; }
.asset-method { font-size: 11px; font-weight: 650; letter-spacing: .4px; }
.asset-event-state {
  --asset-state-ink: #52617b;
  --asset-state-bg: #f1f3f8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--asset-state-ink);
  background: var(--asset-state-bg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.asset-event-state.normal { --asset-state-ink: #176346; --asset-state-bg: #eaf6ef; }
.asset-event-state.warning { --asset-state-ink: #80580e; --asset-state-bg: #fff4db; }
.asset-event-state.critical { --asset-state-ink: #a7293f; --asset-state-bg: #fdeef0; }
.asset-event-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.asset-detail-status { margin-bottom: 12px; }
.asset-details { margin: 0; }
.asset-details > div { display: grid; grid-template-columns: minmax(120px, 1fr) 1.5fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.asset-details dt { color: var(--muted); }
.asset-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .asset-toolbar .filter-select { flex: 1 1 155px; min-width: 0; }
  .asset-toolbar .toolbar-count { flex-basis: 100%; margin: 0; }
}

.learning-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 20px;
}
.learning-status h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.learning-status p { margin: 5px 0 0; }
.learning-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.learning-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  padding: 9px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.learning-tab:hover { background: #f1f3fa; color: var(--accent); }
.learning-tab.active { background: #eeeffa; border-color: #d8dcf0; color: var(--accent); }
.learning-table { min-width: 570px; }
.learning-table tbody th { font-size: inherit; letter-spacing: normal; white-space: normal; }
.learning-table tbody th .table-sub { display: block; }
.learning-table td { overflow-wrap: anywhere; }
.learning-list { display: grid; }
.learning-list-entry { display: grid; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.learning-list-entry h3, .learning-list-entry h4, .learning-list-entry p { margin: 0; overflow-wrap: anywhere; }
.learning-list-entry h3, .learning-list-entry h4 { font-size: 14px; line-height: 1.4; }
.learning-entry-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: start; justify-content: space-between; }
.learning-entry-head > div { min-width: 0; }
.learning-entry-head > div p { margin-top: 4px; }
.learning-evidence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px,100%),1fr));
  gap: 8px;
  margin: 0;
}
.learning-evidence > div { padding: 7px 9px; background: #f5f6fb; border-radius: 5px; min-width: 0; }
.learning-evidence dt { font-size: 12px; color: var(--muted); }
.learning-evidence dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.learning-intel-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; }
.learning-intel-grid > .panel { min-width: 0; }
.learning-form, .learning-intel-result { padding: 16px 20px; }
.learning-intel-result { border-top: 1px solid var(--line); }
.learning-intel-result h3 { margin: 0 0 10px; font-size: 15px; overflow-wrap: anywhere; }
.learning-intel-result .learning-list-entry { padding-right: 0; padding-left: 0; }
.learning-form-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.learning-form-grid .field, .learning-form-grid input, .learning-form-grid select { min-width: 0; }
.learning-feeds { margin: 0; padding: 0; list-style: none; }
.learning-feeds li { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); }
.learning-feeds li p { margin: 4px 0 0; overflow-wrap: anywhere; }
.learning-error { color: #a7293f; }
.learning-dialog { display: grid; gap: 16px; }
.learning-dialog > p { margin: 0; overflow-wrap: anywhere; }
.learning-simulation { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.learning-simulation h3 { margin: 0; font-size: 15px; }
.learning-simulate-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.learning-simulate-actions .field { margin: 0; }
.learning-preview { display: grid; gap: 8px; }
.learning-preview > p { margin: 0; }
@media (max-width: 900px) {
  .learning-intel-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 650px) {
  .learning-tabs { gap: 4px; }
  .learning-tab { padding: 7px 9px; }
  .learning-form-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .learning-status, .learning-list-entry, .learning-form, .learning-intel-result { padding-right: 14px; padding-left: 14px; }
}

.vector-controls, .vector-hypotheses, .vector-timeline, .vector-matches { margin-bottom: 18px; }
.vector-controls { padding: 16px 20px; }
.vector-controls h2 { margin: 0 0 8px; }
.vector-control-row, .vector-host-form { display: flex; align-items: end; gap: 12px; }
.vector-control-row { justify-content: space-between; flex-wrap: wrap; }
.vector-host-form { margin-top: 14px; }
.vector-control-row .field, .vector-host-form .field { margin: 0; }
.vector-host-form .field { flex: 1 1 240px; max-width: 420px; }
.vector-period { min-width: 170px; }
.vector-segments { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid #dce3f1; border-radius: 9px; background: #f4f6fb; }
.vector-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #4f5f7d;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}
.vector-segment .icon { width: 15px; height: 15px; }
.vector-segment:hover, .vector-segment[aria-pressed=true] { background: #fff; color: var(--accent); border-color: #d3dbee; }
.vector-segment[aria-pressed=true] { box-shadow: 0 1px 3px #24325212; }
.vector-control-note, .vector-coverage { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; font-size: 13px; color: #53627d; }
.vector-control-note { margin: 13px 0 0; }
.vector-control-note .icon, .vector-coverage .icon { width: 15px; height: 15px; color: var(--accent); }
.vector-control-note strong, .vector-coverage strong { overflow-wrap: anywhere; }
.vector-coverage { margin: 0 0 14px; }
.vector-coverage.warning, .vector-coverage.warning .icon { color: #85520e; }
.vector-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.vector-stat, .vector-assessment {
  --vector-tone: #3f4e80;
  --vector-bg: #edf0fa;
}
.vector-stat.watch, .vector-assessment.watch { --vector-tone: #345d91; --vector-bg: #e9f1fc; }
.vector-stat.correlated, .vector-assessment.correlated { --vector-tone: #85520e; --vector-bg: #fff2d9; }
.vector-stat.high_confidence, .vector-assessment.high_confidence { --vector-tone: #962847; --vector-bg: #fcecf1; }
.vector-stat { display: flex; justify-content: space-between; gap: 8px; padding: 12px 15px; border-radius: 9px; }
.vector-stat div > span { color: #4f5f7d; font-size: 12px; font-weight: 550; }
.vector-stat strong { display: block; margin-top: 3px; font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.vector-stat-symbol, .vector-assessment { display: inline-flex; align-items: center; color: var(--vector-tone); background: var(--vector-bg); }
.vector-stat-symbol { flex: 0 0 30px; justify-content: center; height: 30px; border-radius: 8px; }
.vector-stat-symbol .icon { width: 17px; height: 17px; }
.vector-timeline { overflow: hidden; }
.vector-card-list { display: grid; gap: 10px; padding: 0 18px 18px; }
.vector-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; border: 1px solid #dce4f0; border-radius: 9px; padding: 14px 16px; }
.vector-card h3 { margin: 7px 0 4px; font-size: 16px; font-weight: 650; line-height: 1.42; overflow-wrap: anywhere; }
.vector-card-meta, .vector-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.vector-card-meta > span:last-child { font-size: 12px; color: #52627f; }
.vector-assessment { padding: 4px 8px; gap: 5px; border-radius: 6px; font-size: 12px; font-weight: 650; }
.vector-assessment .icon, .vector-location .icon { width: 14px; height: 14px; }
.vector-location, .vector-card-side p { margin: 0; color: #52627f; font-size: 12px; overflow-wrap: anywhere; }
.vector-location .icon { vertical-align: text-bottom; }
.vector-stage-flow { display: flex; flex-wrap: wrap; margin: 10px 0 0; padding: 0; list-style: none; gap: 5px; }
.vector-stage-flow li { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dce4f0; border-radius: 5px; padding: 3px 7px; color: #475976; background: #f6f8fc; font-size: 12px; overflow-wrap: anywhere; }
.vector-card-side { display: grid; align-content: center; justify-items: end; gap: 5px; text-align: right; }
.vector-card-side strong { display: block; color: var(--accent); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vector-card-side strong small { font-size: 11px; font-weight: 500; }
.vector-card-side span { color: #576987; font-size: 11px; }
.vector-card-side > .btn { margin-top: 3px; }
.vector-matches ul { padding: 0 20px 6px; margin: 0; list-style: none; }
.vector-matches li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.vector-matches li > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.vector-matches code { overflow-wrap: anywhere; }
.vector-matches li span, .vector-matches li p { color: #4f607e; font-size: 12px; margin: 0; }
.vector-detail { display: grid; gap: 17px; }
.vector-detail-meta + .vector-detail-section { margin-top: 2px; }
.vector-subjects { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(170px,100%),1fr)); gap: 7px; margin: 0; }
.vector-subjects > div { min-width: 0; border-radius: 6px; padding: 8px 10px; background: #f1f4fb; }
.vector-subjects dt { font-size: 12px; color: #596882; }
.vector-subjects dd { margin: 2px 0 0; overflow-wrap: anywhere; font-weight: 600; }
.vector-detail-section { padding-top: 12px; border-top: 1px solid var(--line); }
.vector-detail-section h3 { margin: 0 0 7px; font-size: 15px; font-weight: 650; }
.vector-detail-section p { margin: 5px 0 8px; overflow-wrap: anywhere; }
.vector-detail-section > ul { margin: 0; padding-inline-start: 19px; }
.vector-detail-section > ul li { margin: 5px 0; overflow-wrap: anywhere; }
.vector-evidence-flow { margin: 0; padding: 0; list-style: none; }
.vector-evidence-flow > li { display: grid; grid-template-columns: 17px minmax(0,1fr); gap: 10px; position: relative; padding: 7px 0 12px; }
.vector-evidence-flow > li:not(:last-child)::before { content: ''; position: absolute; left: 7px; top: 16px; bottom: -10px; border-left: 2px solid #d7e0f0; }
.vector-evidence-dot { position: relative; width: 12px; height: 12px; border: 2px solid #7183b6; border-radius: 100%; background: #f5f7ff; left: 2px; top: 4px; }
.vector-evidence-stage { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; }
.vector-evidence-stage-head, .vector-evidence-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.vector-evidence-stage-head { justify-content: space-between; }
.vector-evidence-stage-head h4 { margin: 0; font-size: 14px; }
.vector-evidence-stage-head span, .vector-evidence-stage summary { font-size: 12px; color: #526683; }
.vector-evidence-stage details { margin-top: 7px; }
.vector-evidence-stage summary { cursor: pointer; }
.vector-evidence-stage details ul { margin: 5px 0 0; padding-inline-start: 17px; overflow-wrap: anywhere; }
.vector-evidence-stage details button { font-size: 12px; }

.locale-picker { display: inline-flex; align-items: center; flex-shrink: 0; gap: 4px; color: #405374; }
.locale-picker .locale-icon { display: inline-flex; align-items: center; }
.locale-picker .icon { width: 15px; height: 15px; }
.locale-picker select { max-width: 102px; min-height: 32px; padding: 4px 5px; border: 1px solid #d3ddee; border-radius: 6px; color: inherit; background: #fff; font: inherit; font-size: 12px; }
.locale-picker select:focus-visible { outline: 2px solid #4459a1; outline-offset: 2px; }
.login-locale { display: flex; justify-content: flex-end; margin-bottom: 12px; }
@media (max-width: 430px) { .topbar .locale-icon { display: none; } }

.integrations-view, .integration-details { display: grid; gap: 16px; }
.integrations-view .rule-feedback, .integration-details .rule-feedback { margin: 0; }
.integrations-view .table-scroll code, .integration-endpoint { overflow-wrap: anywhere; }
.integrations-view td:nth-child(2) { min-width: 110px; max-width: 265px; }
.integration-topics, .integration-topic-options, .integration-clear { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.integration-topics-field { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; }
.integration-topics-field legend { font-weight: 600; padding-inline: 4px; }
.integration-topic-options { gap: 6px 14px; }
.integration-topic-options label { display: inline-flex; align-items: center; gap: 5px; }
.integration-details .detail-meta { margin: 0; }
.integration-details h3, .integration-details p { margin-bottom: 6px; }
.integration-protocol { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 5px 10px; margin: 8px 0 0; }
.integration-protocol dt { font-weight: 600; }
.integration-protocol dd { margin: 0; overflow-wrap: anywhere; }
.integration-hint { margin: 12px 0 0; }
#integration-secret .field { margin-bottom: 10px; }

.capacity-view { display: grid; gap: 16px; }
.capacity-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px 18px; padding: 16px 18px; }
.capacity-controls .field { margin: 0; min-width: 145px; }
.capacity-controls small { padding-bottom: 5px; margin-left: auto; color: var(--muted); }
.capacity-view .panel-header { flex-wrap: wrap; gap: 7px 16px; }
.capacity-view .panel-header small { color: var(--muted); overflow-wrap: anywhere; }
.capacity-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(175px,100%),1fr)); gap: 12px; padding: 0 18px 18px; }
.capacity-stats .kpi { min-width: 0; min-height: 114px; }
.capacity-stats .kpi-title { display: flex; justify-content: space-between; align-items: start; gap: 7px; }
.capacity-stats .kpi-symbol { position: static; flex: none; }
.capacity-stats .kpi-value { font-size: clamp(20px,2vw,28px); overflow-wrap: anywhere; }
.capacity-stats .kpi-footer { max-width: none; align-items: start; }
.capacity-view table { min-width: 510px; }
.capacity-view table th[scope="row"] { background: transparent; color: var(--text); font-size: inherit; font-weight: 550; letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
.capacity-view .panel-bottom-note { align-items: start; }
.capacity-view .panel-bottom-note .icon { flex: none; }
.capacity-note { display: flex; align-items: start; gap: 8px; color: var(--muted); font-size: 13px; }
.capacity-note .icon { flex: none; color: var(--accent); }
@media (max-width: 580px) {
  .capacity-controls { padding-inline: 12px; }
  .capacity-controls small { flex-basis: 100%; margin: 0; padding: 0; }
  .capacity-stats { padding-inline: 12px; gap: 8px; }
  .capacity-stats .kpi { min-height: 90px; }
}

@media (max-width: 1000px) {
  .vector-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .vector-controls, .vector-card { padding: 12px; }
  .vector-card-list { padding: 0 12px 12px; }
  .vector-card { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .vector-card-side { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; text-align: left; }
  .vector-stat { padding: 9px 10px; }
  .vector-host-form { flex-wrap: wrap; }
  .vector-host-form .field { flex-basis: 100%; }
  .vector-segment { padding-inline: 7px; }
  .vector-timeline .panel-header h2, .vector-hypotheses .panel-header h2 { font-size: 14px; }
}

.auth-flow { display: grid; gap: 24px; }
.auth-intro { display: grid; gap: 9px; }
.login-page .auth-intro h1 { margin: 0; font-size: clamp(28px, 3vw, 42px); font-weight: 720; line-height: 1.15; letter-spacing: -.035em; }
.auth-intro p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-flow .field { margin-bottom: 18px; }
.auth-flow .field > label, .auth-flow .field > span, .auth-field-heading label { color: #d6e1f6; font-size: 14px; font-weight: 600; }
.auth-field-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.auth-notice { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #395279; border-radius: 9px; background: #182946; color: #d5e3fb; font-size: 13px; line-height: 1.55; }
.auth-verified-account { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 18px; padding: 10px 13px; border: 1px solid #3a4d74; border-radius: 9px; color: #d6e1f6; background: #15223e; font-size: 13px; }
.auth-verified-account .icon { color: #73d8d0; }
.auth-verified-account bdi { display: block; color: var(--muted); overflow-wrap: anywhere; }
.auth-recovery-notice .auth-link:not([hidden]) { display: inline-block; margin-top: 6px; text-align: start; }
.auth-help { display: grid; gap: 13px; color: var(--muted); }
.auth-help p { margin: 0; }
.auth-password-wrap { position: relative; }
.login-page .auth-password-wrap input, #password-form .auth-password-wrap input { padding-inline-end: 107px; }
.auth-password-toggle { position: absolute; inset-block-start: 50%; inset-inline-end: 7px; transform: translateY(-50%); display: flex; align-items: center; gap: 5px; padding: 0 9px; min-height: 34px; border: 1px solid #dce2f0; border-radius: 6px; background: #fff; color: #394579; font-size: 12px; font-weight: 600; }
.auth-password-toggle .icon { width: 15px; height: 15px; }
.auth-password-toggle:hover, .auth-password-toggle:focus-visible { border-color: #5764a2; }
.login-page .auth-password-toggle { min-height: 36px; border-color: #405782; background: #0f1a32; color: #c6d9ff; }
.login-page .auth-password-toggle:hover, .login-page .auth-password-toggle:focus-visible { border-color: var(--accent); color: #eef4ff; }
.auth-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; }
.auth-login-meta { margin: 0 0 16px; }
.auth-security-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.auth-security-note .icon { color: #73d8d0; width: 16px; height: 16px; }
.auth-link { cursor: pointer; color: #c4daff; border: 0; padding: 4px 0; background: transparent; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-link:hover { color: #f2f6ff; }
.auth-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.auth-activation-entry { margin-top: 15px; text-align: center; }
.auth-setup-actions { margin-top: 24px; }
.login-page .field .auth-otp, #password-form .auth-otp { font-size: 16px; letter-spacing: .13em; font-variant-numeric: tabular-nums; }
.auth-enrollment { display: grid; gap: 8px; padding: 12px; margin-bottom: 14px; border: 1px solid #3a4d74; border-radius: 12px; background: #14213c; }
.auth-enrollment-qr { display: grid; justify-items: center; margin-bottom: 4px; }
.auth-enrollment-qr img { display: block; max-width: 100%; height: auto; border: 1px solid #d4def1; background: #fff; image-rendering: pixelated; }
.auth-manual-key > summary { width: fit-content; }
.auth-manual-key[open] > summary { margin-bottom: 8px; }
.auth-enrollment code { display: block; padding: 9px; border: 1px solid #395279; border-radius: 5px; background: #0d192f; color: #d4e4ff; font-size: 14px; letter-spacing: .035em; user-select: all; overflow-wrap: anywhere; }
.auth-enrollment .auth-links { justify-content: start; margin-top: 8px; }
.login-locale [data-login-badge]:empty { display: none; }
.identity-page { display: grid; gap: 16px; }
.identity-directory td { vertical-align: middle; }
.identity-directory td:nth-child(2) { max-width: 235px; overflow-wrap: anywhere; }
.identity-directory .inline-actions { gap: 6px; }
.access-table td { vertical-align: middle; }
.access-table td:nth-child(2) { min-width: 130px; max-width: 240px; overflow-wrap: anywhere; }
.access-table .inline-actions { gap: 6px; }
.access-profiles td:last-child { min-width: 180px; white-space: normal; }
.management-actions { min-inline-size: 196px; }
.profiles-management-table th[scope="row"] { min-inline-size: 210px; }
.profiles-management-table th[scope="row"] .table-sub { font-weight: 400; }
.profile-permissions { margin: 0; padding-inline-start: 16px; min-inline-size: 145px; }
.confirmation-value { color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
.access-profile-tags { display: flex; flex-wrap: wrap; gap: 5px; min-width: 145px; }
.access-profile-tags .pill { white-space: normal; }
.project-role-profiles { display: grid; justify-items: start; gap: 5px; }
.project-role-profiles > .pill { white-space: normal; overflow-wrap: anywhere; }
.access-raci { min-width: 870px; }
.access-raci th[scope="row"] { min-width: 180px; white-space: normal; }
.access-raci td { width: 19%; white-space: normal; vertical-align: top; }
.access-raci ul { margin: 0; padding-left: 16px; }
.access-raci li + li { margin-top: 4px; }
.operational-role-fields { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; }
.operational-role-fields legend { padding: 0 6px; font-weight: 700; }
.operational-role-fields p { margin: 0 0 8px; }
.operational-role-fields label { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; cursor: pointer; }
.operational-role-fields input { width: auto; }
.identity-delivery code { user-select: all; overflow-wrap: anywhere; }
.identity-status { white-space: nowrap; }

@media (max-width: 480px) {
  .access-tabs { flex-wrap: wrap; gap: 0 14px; }
  .auth-flow { gap: 16px; }
  .auth-links { gap: 8px 13px; }
  .auth-link { padding-block: 7px; }
}

/* The signed-in workspace and its dialogs share the same readable type scale. */
.shell,
body:has(.shell) #dialog {
  --text: #1e2e49;
  --muted: #475974;
  --console-secondary: 13px;
  --console-focus: #4355a4;
  --console-control-border: #8292ad;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.shell .page-head h1 { font-size: clamp(26px, 2.2vw, 34px); line-height: 1.22; overflow-wrap: anywhere; }
.shell :is(.page-head, .panel-header) > div { min-width: 0; }
.shell :is(.page-head p, .project-card p, .monitoring-deploy-grid p) { font-size: 15px; color: var(--muted); }
.shell :is(.panel-header h2, .project-card h2, .settings-card h2) { font-size: 19px; font-weight: 680; line-height: 1.35; overflow-wrap: anywhere; }
.shell :is(.learning-list-entry h3, .learning-list-entry h4, .vector-card h3) { font-size: 16px; font-weight: 650; }
.shell :is(.panel-header p, .panel-link, .panel-bottom-note, .project-meta > div, .source-info p, .source-count,
  .monitoring-worker-list span:first-child, .table-sub, .toolbar-count, .pagination, .footer,
  .panel-header > .muted, .vector-card-meta > span:last-child, .vector-location, .vector-card-side p,
  .vector-stage-flow li, .vector-card-side span, .vector-matches li span, .vector-matches li p) {
  font-size: var(--console-secondary);
  line-height: 1.55;
  color: var(--muted);
}
.shell :is(.footer, .panel-bottom-note, .panel-header > .muted, .settings-intro) { overflow-wrap: anywhere; }
.shell :is(.summary-strip, .settings-intro, .settings-row, .tenant-summary) { font-size: 15px; line-height: 1.6; }
.shell .settings-intro { color: var(--muted); }
.shell .settings-row > span { min-width: 0; overflow-wrap: anywhere; }
.shell :is(.kpi-title, .kpi-footer, .state-card span) { font-size: var(--console-secondary); color: var(--muted); }
.shell :is(.kpi-value, .state-card strong) { color: var(--text); overflow-wrap: anywhere; }
.shell :is(.kpi-value, .state-card strong).red { color: #a12b45; }
.shell :is(.kpi-value, .state-card strong).accent { color: var(--accent); }
.shell :is(.kpi-title, .kpi-footer, .panel-header p) { overflow-wrap: anywhere; }
.shell .kpi-footer { flex-wrap: wrap; }
.shell .state-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shell .state-card > div { min-width: 0; }
.shell .source-info { min-width: 0; overflow-wrap: anywhere; }
.shell .source-info strong, .shell .project-meta strong { font-size: 15px; }
.shell :is(.empty p, .error-state p, .loading) { font-size: 15px; }

.shell .nav-group { margin-bottom: 20px; }
.shell .nav-link { min-height: 42px; padding: 9px 10px; gap: 9px; font-size: 14px; line-height: 1.4; color: #394d6a; overflow-wrap: anywhere; }
.shell .nav-link.active { color: var(--accent); font-weight: 650; }
.shell .nav-link .icon { width: 18px; height: 18px; stroke-width: 1.9; }
.shell :is(.nav-label, .tenant-switcher label, .section-kicker) { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.shell .nav-label { margin-inline: 10px; }
.shell .profile-info strong { font-size: 14px; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.shell :is(.profile-info small, .workspace small, .scope-caption, .system-status, .system-status small,
  .breadcrumb, .context-status, .scope-chip, .demo-badge, .topbar-right .demo-badge, .nav-tag, .locale-picker) {
  font-size: var(--console-secondary);
}
.shell :is(.breadcrumb, .scope-caption, .context-status, .workspace small, .profile-info small) { color: var(--muted); }
.shell .nav-tag { flex: none; white-space: nowrap; line-height: 1.3; font-variant-numeric: tabular-nums; }
.shell .sidebar-foot { align-items: flex-start; padding-inline: 4px; }
.shell .sidebar-foot .avatar { flex: none; }
.shell .topbar { height: auto; min-height: 68px; padding-block: 8px; }
.shell .topbar-right { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.shell .global-search input { width: clamp(185px, 19vw, 275px); height: 42px; padding-inline: 36px 29px; font-size: 14px; }
.shell :is(.global-search, .filter-search) > .icon { inset-block-start: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.shell .keyhint { inset-block-start: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; }
.shell .context-bar .scope-chip { font-size: var(--console-secondary); }
.shell .context-status { min-width: 0; flex-shrink: 1; }
.shell .context-status > span:last-child { overflow-wrap: anywhere; }
.shell :is(.scope-chip, .panel-link, .panel-bottom-note) .icon { width: 16px; height: 16px; stroke-width: 1.85; }
.shell .panel-bottom-note { align-items: flex-start; }

.shell table { font-size: 15px; line-height: 1.55; }
.shell :is(thead th, .table-events thead th) { font-size: 13px; font-weight: 650; letter-spacing: .02em; color: #415371; }
.shell th[scope="row"] { font-size: 14px; color: #314563; }
.shell td { color: #354863; }
.shell td.muted { color: var(--muted); }
.shell td.red { color: #a12b45; }
.shell td.accent { color: var(--accent); }
.shell .table-title { color: #233956; font-weight: 600; }
.shell .table-sub.red { color: #a12b45; }
.shell .table-scroll { max-inline-size: 100%; overscroll-behavior-inline: contain; scrollbar-color: #8292ad #edf2f9; }
.shell .table-scroll > table:not(.asset-table, .access-raci):has(thead tr > :nth-child(4)) { min-inline-size: 580px; }
.shell .table-scroll > table:is(.table-events, .rules-catalog) { min-inline-size: 890px; }
.shell .table-scroll :is(.table-title, .table-sub, .truncate, .rule-name strong, .rule-fingerprint, .access-profile-tags .pill) { overflow-wrap: anywhere; }
.shell .table-scroll .truncate { white-space: normal; overflow: visible; }
.shell :is(.raw-preview, .rule-fingerprint, .asset-method) { font-size: 13px; color: var(--muted); }
.shell .raw-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
.shell .asset-name { font-size: 15px; }
.shell .rule-description { font-size: 14px; color: var(--muted); }
.shell .rule-lifecycle.deprecated { color: #4d607d; }
.shell .table-scroll tr[tabindex]:focus-visible { outline-offset: -2px; background: #edf2ff; }
.shell .inline-actions, .shell .pagination-controls, body:has(.shell) #dialog .inline-actions { flex-wrap: wrap; gap: 6px; }

:is(.shell, body:has(.shell) :where(#dialog)) :is(.btn, .tab, .learning-tab, .vector-segment),
.shell .locale-picker select {
  min-height: 42px;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}
:is(.shell, body:has(.shell) :where(#dialog)) .btn-small { min-height: 36px; font-size: 13px; }
:is(.shell, body:has(.shell) :where(#dialog)) .btn .icon { width: 16px; height: 16px; stroke-width: 1.9; }
:is(.shell, body:has(.shell) :where(#dialog)) .icon-btn { width: 40px; height: 40px; flex-shrink: 0; }
:is(.shell, body:has(.shell) :where(#dialog)) .icon-btn .icon { width: 19px; height: 19px; stroke-width: 1.9; }
:is(.shell, body:has(.shell) :where(#dialog)) :is(.pill, .technique, small, code, .mono) { font-size: var(--console-secondary); }
:is(.shell, body:has(.shell) :where(#dialog)) :is(.field > span, .field > label) { font-size: 14px; font-weight: 600; color: #344967; }
:is(.shell, body:has(.shell) :where(#dialog)) :is(.field, .field > *, .settings-intro > div) { min-inline-size: 0; }
:is(.shell, body:has(.shell) :where(#dialog)) :is(.field input:not([type="checkbox"], [type="radio"]), .field select, .field textarea,
  .scope-select, .filter-select, .filter-search input, .time-select) {
  min-height: 42px;
  max-inline-size: 100%;
  border-color: var(--console-control-border);
  color: var(--text);
  font-size: 15px;
}
:is(.shell, body:has(.shell) :where(#dialog)) :is(input, textarea)::placeholder { color: #596d87; opacity: 1; }
:is(.shell, body:has(.shell) :where(#dialog)) :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--console-focus);
  outline-offset: 3px;
}
:is(.shell, body:has(.shell) :where(#dialog)) button:disabled { opacity: .65; }
.shell .filter-search input { padding-inline-start: 34px; }
.shell .tabs .tab { white-space: nowrap; }
.shell .tabs { padding-inline: 3px; }
.shell .tabs .tab:focus-visible { outline-offset: -2px; }

body:has(.shell) #dialog { max-inline-size: 100%; }
body:has(.shell) #dialog #dialog-content { min-inline-size: 0; max-inline-size: 100%; }
body:has(.shell) #dialog .integration-details { grid-template-columns: minmax(0, 1fr); }
body:has(.shell) #dialog .integration-details > * { min-inline-size: 0; }
body:has(.shell) #dialog .dialog-header > div { min-inline-size: 0; }
body:has(.shell) #dialog .dialog-header h2 { font-size: clamp(21px, 2.15vw, 25px); line-height: 1.3; overflow-wrap: anywhere; }
body:has(.shell) #dialog .dialog-header p { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
body:has(.shell) #dialog .dialog-body :is(.field small, .field-hint, .form-error, .rule-hint, .rule-section-heading p,
  .rule-scope-note, .rule-editor-tab, .rule-definition-meta, .rule-feedback, .rule-warnings, .rule-check, .rule-case,
  .rule-preview-metrics span, .rule-history-item > div > span, .rule-history-item details, .detail-heading,
  .learning-evidence dt, .key-reveal p, .scenario-option small) { font-size: 13px; line-height: 1.55; }
body:has(.shell) #dialog :is(.rule-hint, .rule-scope-note, .rule-section-heading p, .rule-definition-meta, .rule-preview-metrics span, .detail-heading) {
  color: var(--muted);
}
body:has(.shell) #dialog .dialog-body :is(.settings-intro, .learning-evidence dd, .scenario-option strong) { font-size: 15px; overflow-wrap: anywhere; }
body:has(.shell) #dialog :is(.raw-box, .evidence-box, .field textarea.mono) { font-size: 13px; line-height: 1.7; }
body:has(.shell) #dialog :is(.raw-box, .evidence-box) { color: #354967; }
body:has(.shell) #dialog :is(.attribute-table th, .attribute-table td) { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
body:has(.shell) #dialog .attribute-table th { color: var(--muted); }
body:has(.shell) #dialog .rule-editor-tab { min-height: 44px; }
body:has(.shell) #dialog .rule-editor-tab:focus-visible { outline-offset: -3px; }
body:has(.shell) #dialog .operational-role-fields { min-inline-size: 0; }
body:has(.shell) #dialog .operational-role-fields label { padding-block: 7px; }
body:has(.shell) #dialog .operational-role-fields input { flex: none; }
body:has(.shell) .toast { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .shell .state-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shell, body:has(.shell) #dialog { font-size: 15px; }
  .shell .nav-link { min-height: 44px; }
  .shell .topbar { min-height: 60px; padding-block: 6px; }
  .shell .breadcrumb > svg.icon, .shell .breadcrumb > span:nth-of-type(2) { display: none; }
  .shell .topbar-right .demo-badge { white-space: normal; max-width: 16ch; line-height: 1.25; }
  .shell .icon-btn, body:has(.shell) #dialog .icon-btn { width: 44px; height: 44px; }
  .shell .context-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
  }
  .shell .context-bar .scope-chip { padding: 5px 8px; }
  .shell .context-bar .scope-chip > span { min-inline-size: 0; }
  .shell .head-actions { gap: 8px; }
  .shell .panel-header { row-gap: 8px; }
  .shell .kpi-footer { max-width: none; }
  .shell .settings-row { gap: 14px; }
  :is(.shell, body:has(.shell) :where(#dialog)) :is(.field input:not([type="checkbox"], [type="radio"]), .field select,
    .field textarea, .scope-select, .filter-select, .filter-search input, .time-select) { font-size: 16px; }
  :is(.shell, body:has(.shell) :where(#dialog)) .btn:not(.btn-small) { min-height: 44px; }
  body:has(.shell) #dialog .dialog-footer { gap: 8px; }
}

@media (max-width: 430px) {
  .shell .topbar-right .locale-picker select { max-width: 90px; }
  .shell .topbar-right .demo-badge { max-width: 14ch; }
  .shell .context-status { align-self: start; }
  .shell .context-bar .scope-chip { align-items: flex-start; }
  .shell .context-bar .scope-chip .icon { margin-top: 2px; }
  body:has(.shell) #dialog .dialog-footer { padding-inline: 17px; }
  body:has(.shell) #dialog .rule-group-toolbar { flex-wrap: wrap; }
  body:has(.shell) #dialog .rule-group-toolbar .field { width: 100%; max-width: none; }
}
