.maintenance-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1.25rem;
  background: #fff1f1;
  border-bottom: 1px solid #ff8389;
  color: #750e13;
  font-size: 0.9rem;
}
.maintenance-banner[hidden] { display: none !important; }
.maintenance-banner strong { font-weight: 600; }
/* ML Control — Model Runway */
.ml-page {
  --ml-ink: #0b1f33;
  --ml-muted: #5a6a7a;
  --ml-line: #d5dde6;
  --ml-live: #0f6e56;
  --ml-cand: #0f62fe;
  --ml-paper: #f7f9fb;
  --ml-face: #ffffff;
}
.ml-runway {
  position: relative;
  overflow: hidden;
  margin: 0 0 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--ml-paper);
  border: 1px solid var(--ml-line);
  color: var(--ml-ink);
}
.ml-runway-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 12% -10%, rgba(15, 110, 86, 0.10), transparent 55%),
    radial-gradient(80% 60% at 100% 0%, rgba(15, 98, 254, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3f7 0%, var(--ml-paper) 42%, #ffffff 100%);
}
.ml-runway.is-ready .ml-runway-atmosphere {
  background:
    radial-gradient(90% 70% at 20% -10%, rgba(15, 110, 86, 0.16), transparent 55%),
    linear-gradient(180deg, #e8f6ef 0%, var(--ml-paper) 45%, #ffffff 100%);
}
.ml-runway.is-soak .ml-runway-atmosphere {
  background:
    radial-gradient(90% 70% at 80% -10%, rgba(15, 98, 254, 0.12), transparent 55%),
    linear-gradient(180deg, #eef3fb 0%, var(--ml-paper) 45%, #ffffff 100%);
}
.ml-runway-top,
.ml-track,
.ml-dual,
.ml-runway-gate,
.ml-runway-actions { position: relative; z-index: 1; }
.ml-runway-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.35rem;
}
.ml-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ml-muted);
}
.ml-runway-identity h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ml-ink);
}
.ml-runway-next {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ml-ink);
}
.ml-runway-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.ml-track {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.ml-track::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0.55rem;
  height: 2px;
  background: var(--ml-line);
  z-index: 0;
}
.ml-track-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
}
.ml-track-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #a8b3bf;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.ml-track-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ml-muted);
  letter-spacing: 0.02em;
}
.ml-track-step.is-done .ml-track-dot {
  background: var(--ml-live);
  border-color: var(--ml-live);
}
.ml-track-step.is-current .ml-track-dot {
  background: var(--ml-cand);
  border-color: var(--ml-cand);
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.18);
  animation: ml-pulse 1.8s ease-in-out infinite;
}
.ml-track-step.is-current .ml-track-label { color: var(--ml-ink); }
.ml-track-step.is-live .ml-track-dot {
  background: var(--ml-live);
  border-color: var(--ml-live);
}
.ml-track-step.is-live .ml-track-label { color: var(--ml-live); }
@keyframes ml-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(15, 98, 254, 0.06); }
}
.ml-retrain-progress {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--ml-line);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.ml-retrain-progress[hidden] { display: none !important; }
.ml-retrain-progress.is-done {
  border-color: #a7f0ba;
  background: linear-gradient(180deg, #defbe6 0%, #fff 100%);
}
.ml-retrain-progress.is-failed {
  border-color: #ffb3b8;
  background: linear-gradient(180deg, #fff1f1 0%, #fff 100%);
}
.ml-retrain-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.ml-retrain-progress-head strong {
  font-size: 0.875rem;
  color: var(--ml-ink);
}
.ml-retrain-progress-head span {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ml-cand);
  font-weight: 600;
}
.ml-retrain-progress.is-done .ml-retrain-progress-head span { color: var(--ml-live); }
.ml-retrain-progress.is-failed .ml-retrain-progress-head span { color: #a2191f; }
.ml-retrain-progress-meter {
  height: 0.5rem;
  background: #e8edf2;
  overflow: hidden;
  position: relative;
}
.ml-retrain-progress-meter > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0f62fe 0%, #4589ff 100%);
  transition: width 0.35s ease;
}
.ml-retrain-progress.is-done .ml-retrain-progress-meter > span {
  background: linear-gradient(90deg, #198038 0%, #42be65 100%);
}
.ml-retrain-progress.is-failed .ml-retrain-progress-meter > span {
  background: linear-gradient(90deg, #a2191f 0%, #fa4d56 100%);
}
.ml-retrain-progress.is-running .ml-retrain-progress-meter > span {
  animation: ml-retrain-shimmer 1.6s ease-in-out infinite;
}
@keyframes ml-retrain-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}
.ml-retrain-progress-detail {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: var(--ml-muted);
  line-height: 1.35;
}
.ml-dual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}
.ml-face {
  min-width: 0;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--ml-face);
  border: 1px solid var(--ml-line);
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.ml-face.is-live { border-top: 3px solid var(--ml-live); }
.ml-face.is-cand { border-top: 3px solid var(--ml-cand); }
.ml-face-role {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ml-muted);
}
.ml-face-version {
  margin: 0.15rem 0 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ml-ink);
}
.ml-face-run {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ml-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ml-face-auc {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ml-line);
}
.ml-face-auc span { font-size: 0.75rem; color: var(--ml-muted); }
.ml-face-auc strong {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 500;
}
.ml-face-metas { margin: 0.5rem 0 0; display: grid; gap: 0.3rem; }
.ml-face-meta {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.8125rem;
}
.ml-face-meta dt { margin: 0; color: var(--ml-muted); }
.ml-face-meta dd { margin: 0; }
.ml-face-empty { margin: 0.5rem 0 0; font-size: 1rem; font-weight: 600; }
.ml-bridge {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.4rem;
  min-width: 5.5rem;
  padding: 0.5rem 0.25rem;
}
.ml-bridge-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ml-muted);
}
.ml-bridge-meter {
  display: block;
  width: 3.5rem;
  height: 0.35rem;
  background: #dde3ea;
  overflow: hidden;
}
.ml-bridge-meter > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ml-live), var(--ml-cand));
  transition: width 0.45s ease;
}
.ml-bridge-pct {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  color: var(--ml-muted);
  text-align: center;
  max-width: 6.5rem;
  line-height: 1.3;
}
.ml-runway-gate { margin-top: 0.25rem; }
.ml-runway .ml-promote-gate {
  border: 0;
  border-top: 1px solid var(--ml-line);
  background: transparent;
  padding: 1rem 0 0;
}
.ml-runway .ml-promote-gate.is-ready,
.ml-runway .ml-promote-gate.is-blocked {
  border-color: transparent;
  border-top-color: var(--ml-line);
}
.ml-runway .ml-gate-head strong {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.ml-runway .ml-gate-meter {
  height: 0.45rem;
  background: #dde3ea;
}
.ml-runway-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ml-line);
}
.ml-runway-note {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--ml-muted);
}
.ml-drawer {
  margin: 0 0 0.65rem;
  background: #fff;
  border: 1px solid var(--ml-line);
}
.ml-drawer > summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ml-drawer > summary::-webkit-details-marker { display: none; }
.ml-drawer > summary::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.35rem;
  border-right: 2px solid #69788a;
  border-bottom: 2px solid #69788a;
  transform: rotate(-45deg);
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.ml-drawer[open] > summary::before { transform: rotate(45deg); }
.ml-drawer > summary span { display: grid; gap: 0.15rem; }
.ml-drawer > summary strong { font-size: 0.9375rem; color: var(--ml-ink); }
.ml-drawer > summary .helper { margin: 0; }
.ml-drawer-body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--ml-line);
}
.ml-diag-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0.75rem;
  font-size: 0.9375rem;
}
.ml-danger-zone {
  border-color: #ffb3b8;
  background: #fff9f9;
}
.ml-danger-zone > summary strong { color: #a2191f; }
@media (max-width: 52rem) {
  .ml-dual { grid-template-columns: 1fr; }
  .ml-bridge {
    grid-template-columns: auto 1fr auto;
    min-width: 0;
    width: 100%;
    padding: 0.25rem 0;
  }
  .ml-bridge-meter { width: 100%; }
  .ml-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 0; }
  .ml-track::before { display: none; }
}
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--cds-background, #f4f4f4);
  color: var(--cds-text-primary, #161616);
}
* { box-sizing: border-box; }
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

select,
.cds--select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 2.5rem;
  padding: 0 2.5rem 0 1rem;
  margin: 0;
  color: var(--cds-text-primary, #161616);
  background-color: var(--cds-field, #f4f4f4);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='%23161616' d='M8 11 3 6l.7-.7L8 9.6l4.3-4.3.7.7z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  border: 0;
  border-bottom: 1px solid var(--cds-border-strong-01, #8d8d8d);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  line-height: 1.25;
}
select::-ms-expand { display: none; }
select:hover,
.cds--select-input:hover {
  background-color: var(--cds-field-hover, #e8e8e8);
}
select:focus,
.cds--select-input:focus {
  outline: 2px solid var(--cds-focus, #0f62fe);
  outline-offset: -2px;
}
select:disabled,
.cds--select-input:disabled {
  cursor: not-allowed;
  color: var(--cds-text-disabled, #c6c6c6);
  border-bottom-color: var(--cds-border-disabled, #c6c6c6);
  background-color: var(--cds-field, #f4f4f4);
  opacity: 1;
}
select option,
.cds--select-input option {
  background: var(--cds-layer-01, #fff);
  color: var(--cds-text-primary, #161616);
}
.cds--select, .gzr-select { position: relative; display: block; width: 100%; max-width: 100%; max-inline-size: none; }
.cds--select-input__wrapper { position: relative; display: block; width: 100%; }
.cds--select-input__wrapper .cds--select__arrow {
  position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; z-index: 1; fill: currentColor; color: var(--cds-icon-primary, #161616);
}
.cds--select-input__wrapper select,
.cds--select-input__wrapper .cds--select-input { background-image: none; }
.gzr-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  pointer-events: none !important;
  background: none !important;
}
.gzr-select-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
  margin: 0;
  padding: 0 2.5rem 0 1rem;
  color: var(--cds-text-primary, #161616);
  background: var(--cds-field, #f4f4f4);
  border: 0;
  border-bottom: 1px solid var(--cds-border-strong-01, #8d8d8d);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  line-height: 1.25;
  font: inherit;
}
.gzr-select-trigger:hover { background: var(--cds-field-hover, #e8e8e8); }
.gzr-select-trigger:focus, .gzr-select-trigger.is-open {
  outline: 2px solid var(--cds-focus, #0f62fe);
  outline-offset: -2px;
}
.gzr-select-trigger:disabled {
  cursor: not-allowed;
  color: var(--cds-text-disabled, #c6c6c6);
  border-bottom-color: var(--cds-border-disabled, #c6c6c6);
}
.gzr-select-value {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gzr-select-logo {
  width: 1.375rem;
  height: 1.375rem;
  flex: 0 0 1.375rem;
  object-fit: contain;
}
.gzr-select-value.is-placeholder { color: var(--cds-text-secondary, #525252); }
.gzr-select-trigger .cds--select__arrow { position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%); }
.gzr-select-trigger.is-open .cds--select__arrow { transform: translateY(-50%) rotate(180deg); }
.gzr-select-menu {
  position: fixed;
  z-index: 9600;
  overflow: auto;
  background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 0;
}
.gzr-select-menu[hidden] { display: none !important; }
.gzr-select-group-label {
  padding: 0.625rem 1rem 0.375rem;
  color: var(--cds-text-secondary, #525252);
  background: var(--cds-layer-02, #f4f4f4);
  border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gzr-select-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 0;
  background: transparent;
  color: var(--cds-text-primary, #161616);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.gzr-select-option .gzr-select-logo { width: 1.5rem; height: 1.5rem; flex-basis: 1.5rem; }
.gzr-select[data-modern-select="1"] .gzr-select-trigger {
  min-height: 3rem;
  padding: 0.625rem 2.75rem 0.625rem 1rem;
  background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #8d8d8d);
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.gzr-select[data-modern-select="1"] .gzr-select-trigger:hover,
.gzr-select[data-modern-select="1"] .gzr-select-trigger.is-open {
  background: var(--cds-layer-hover-01, #f4f4f4);
  border-color: var(--cds-border-interactive, #0f62fe);
}
#pipelineSourceSelect-menu {
  min-width: min(36rem, calc(100vw - 2rem)) !important;
  border-radius: 0.375rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
}
#pipelineSourceSelect-menu .gzr-select-option {
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  line-height: 1.45;
}
.gzr-select-option:hover, .gzr-select-option.is-active {
  background: var(--cds-layer-hover-01, #e8e8e8);
}
.gzr-select-option.is-selected {
  background: var(--cds-layer-selected-01, #e0e0e0);
  font-weight: 600;
}
.gzr-select-option.is-selected.is-active, .gzr-select-option.is-selected:hover {
  background: var(--cds-layer-selected-hover-01, #d1d1d1);
}
.gzr-select-option:disabled {
  color: var(--cds-text-disabled, #c6c6c6);
  cursor: not-allowed;
}

.login-shell { min-height: 100vh; width: 100%; }
.login-card {
  width: 100%; min-height: 100vh; display: grid;
  grid-template-columns: minmax(680px, 1.08fr) minmax(440px, 0.92fr);
  background: var(--cds-layer-01, #fff);
}
.login-hero {
  padding: 3rem 3.5rem;
  background: var(--cds-background-inverse, #161616);
  color: var(--cds-text-inverse, #f4f4f4);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  border-right: 1px solid var(--cds-border-inverse, #393939);
}
.login-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--cds-layer-accent-01, #393939); color: var(--cds-text-inverse);
}
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin: 1.5rem 0 1.25rem; }
.brand-mark { width: 280px; height: 84px; object-fit: contain; filter: brightness(0) invert(1); }
.brand-text b { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }
.brand-text span { color: var(--cds-text-secondary, #c6c6c6); font-size: 0.875rem; }
.login-hero h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; font-weight: 600; max-width: 18ch; }
.login-hero p { margin: 0.75rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--cds-text-secondary, #c6c6c6); max-width: 54ch; }
.hero-grid { display: grid; gap: 0.75rem; max-width: 56ch; }
.hero-chip {
  padding: 0.875rem 1rem; font-size: 0.875rem; line-height: 1.5;
  background: var(--cds-layer-accent-01, #393939);
  border-left: 3px solid var(--cds-border-interactive, #0f62fe);
}
.hero-chip strong { color: #fff; margin-right: 0.375rem; }
.login-form-wrap { padding: 2.75rem; display: flex; align-items: center; justify-content: center; background: var(--cds-background, #f4f4f4); }
.login-panel {
  width: min(440px, 100%); background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0); padding: 2rem;
}
.login-form-wrap h2 { margin: 0; font-size: 2rem; font-weight: 600; }
.login-form-wrap p { margin: 0.5rem 0 0; color: var(--cds-text-secondary, #525252); font-size: 0.875rem; }
.login-fields { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.login-action { width: 100%; margin-top: 0.5rem; max-inline-size: 100%; }
.error-banner {
  display: none; margin-top: 1rem; padding: 0.75rem 1rem;
  background: var(--cds-support-error-inverse, #fff1f1);
  color: var(--cds-support-error, #da1e28);
  border-left: 3px solid var(--cds-support-error, #da1e28);
  font-size: 0.875rem;
}
.login-footer {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  font-size: 0.75rem; color: var(--cds-text-secondary, #525252);
  display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
}
.login-security-notice {
  margin-top: 1rem; padding: 0.75rem 1rem; font-size: 0.8125rem; line-height: 1.5;
  border-left: 3px solid var(--cds-support-warning, #f1c21b);
  background: #fff8e1; color: #161616;
}
.login-shell--aml .login-hero--aml {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(8, 99, 117, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(15, 98, 254, 0.18), transparent 50%),
    #0b1f24;
  border-right-color: #1a3a42;
}
.login-shell--aml .login-kicker--aml {
  background: rgba(8, 99, 117, 0.55);
  color: #dff4f8;
  letter-spacing: 0.1em;
}
.login-shell--aml .hero-chip {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: #33b1cc;
}
.login-shell--aml .login-form-wrap--aml {
  background:
    linear-gradient(160deg, #eef6f8 0%, #f4f4f4 45%, #e8eef2 100%);
}
.login-shell--aml .login-panel {
  border-top: 3px solid #086375;
}
.aml-login-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #086375;
  background: #d6f0f5;
}
.aml-login-cc-link { margin: 1rem 0 0; }
.login-shell--aml .brand-text span { color: #a8c5cc; }
.login-shell--aml .login-hero--aml h1 { max-width: 20ch; }
.login-shell--aml .login-hero--aml code {
  font-size: 0.8em;
  color: #9ee1ef;
}

.boot-screen {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: var(--cds-background, #f4f4f4);
}
.boot-card { text-align: center; padding: 2rem; }
.boot-logo { width: 220px; height: auto; margin: 0 auto 1rem; display: block; }
.boot-card p { margin: 0; color: var(--cds-text-secondary, #525252); font-size: 0.875rem; }
body.booting .boot-screen { display: flex; }
body.booting #loginShell,
body.booting #appShell { display: none !important; }
body:not(.booting) .boot-screen { display: none; }
body.auth-app #loginShell { display: none !important; }
body.auth-login #appShell { display: none !important; }

.app-shell {
  display: none;
  min-height: 100vh;
  --gzr-topbar-h: 4rem;
}
.app-shell.is-open { display: block; }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  height: var(--gzr-topbar-h); min-height: var(--gzr-topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; background: #161616;
  border-bottom: 1px solid #393939;
  color: #f4f4f4;
  box-sizing: border-box;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.topbar-brand { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.topbar-brand img {
  width: auto; height: 2rem; max-width: 6.5rem; display: block;
  object-fit: contain; object-position: left center;
  filter: brightness(0) invert(1);
}
.topbar-brand-text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.topbar-brand strong { display: block; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.topbar-brand span { display: block; font-size: 0.75rem; color: var(--cds-text-secondary, #c6c6c6); }
.health-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dot-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.625rem;
  background: var(--cds-layer-accent-01, #393939); font-size: 0.75rem; color: var(--cds-text-secondary, #c6c6c6);
}
.topbar-actions {
  display: flex; align-items: stretch; align-self: stretch;
  height: 100%; flex-shrink: 0; margin-right: -1rem;
}
.topbar-toolbar { display: flex; align-items: stretch; height: 100%; }
.topbar-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 100%; padding: 0 1rem; margin: 0;
  border: 0; border-radius: 0; background: transparent;
  color: #f4f4f4; font-size: 0.875rem; font-weight: 400;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  min-block-size: 0; max-inline-size: none;
}
.topbar-btn:hover { background: #353535; }
.topbar-btn:focus-visible {
  outline: 2px solid #fff; outline-offset: -2px;
}
.topbar-kbd {
  font-family: inherit; font-size: 0.6875rem; font-weight: 500;
  color: #c6c6c6; border: 1px solid #525252; border-radius: 0;
  padding: 0.05rem 0.35rem; line-height: 1.2;
}
.topbar-events { position: relative; display: flex; align-items: stretch; height: 100%; }
.topbar-events-btn { position: relative; gap: 0.4rem; }
.topbar-events-btn.has-events { color: #fff; }
.topbar-events.is-open .topbar-events-btn { background: #353535; }
.topbar-events-badge {
  min-width: 1.125rem; height: 1.125rem; padding: 0 0.3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 1rem; background: #0f62fe; color: #fff;
  font-size: 0.6875rem; font-weight: 600; line-height: 1;
}
.topbar-events-badge.is-critical { background: #da1e28; }
.topbar-events-menu {
  position: absolute; top: 100%; right: 0; z-index: 40;
  width: 26rem; max-width: calc(100vw - 1.5rem);
  background: #161616; border: 1px solid #393939; border-top: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  padding: 0.35rem 0;
}
.topbar-events-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.5rem 1rem 0.35rem;
  font-size: 0.75rem; color: #c6c6c6; letter-spacing: 0.02em;
}
.topbar-events-readall {
  border: 0; background: transparent; color: #78a9ff;
  font-size: 0.75rem; cursor: pointer; font-family: inherit; padding: 0;
  white-space: nowrap;
}
.topbar-events-readall:hover { text-decoration: underline; }
.topbar-events-list { max-height: 22rem; overflow: auto; }
.topbar-events-empty { padding: 1rem; color: #c6c6c6; font-size: 0.8125rem; }
.topbar-event {
  display: flex; align-items: stretch; gap: 0; width: 100%;
}
.topbar-event-main {
  display: flex; align-items: flex-start; gap: 0.75rem; flex: 1; min-width: 0;
  padding: 0.7rem 0.5rem 0.7rem 1rem; margin: 0; border: 0; border-radius: 0;
  background: transparent; color: #f4f4f4; text-align: left;
  cursor: pointer; font-family: inherit;
}
.topbar-event-main:hover, .topbar-event:hover { background: #353535; }
.topbar-event .status-tag { flex-shrink: 0; margin-top: 0.15rem; }
.topbar-event-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.topbar-event-body strong { font-size: 0.8125rem; font-weight: 600; }
.topbar-event-body span { font-size: 0.75rem; color: #c6c6c6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-event-read {
  flex-shrink: 0; align-self: center;
  margin: 0 0.75rem 0 0; padding: 0.25rem 0.6rem;
  border: 1px solid #525252; background: transparent; color: #f4f4f4;
  font-size: 0.75rem; cursor: pointer; font-family: inherit;
}
.topbar-event-read:hover { background: #0f62fe; border-color: #0f62fe; }
.topbar-events-foot { border-top: 1px solid #393939; margin-top: 0.25rem; }
.topbar-events-foot button {
  display: block; width: 100%; padding: 0.7rem 1rem; margin: 0;
  border: 0; background: transparent; color: #78a9ff;
  text-align: left; cursor: pointer; font-family: inherit; font-size: 0.8125rem;
}
.topbar-events-foot button:hover { background: #353535; }
.health-strip { cursor: pointer; }
.topbar-user { position: relative; display: flex; align-items: stretch; height: 100%; }
.topbar-user-btn {
  display: flex; align-items: center; gap: 0.625rem;
  height: 100%; padding: 0 1rem 0 0.75rem; margin: 0;
  border: 0; border-radius: 0; background: transparent;
  color: #f4f4f4; cursor: pointer; font-family: inherit;
}
.topbar-user-btn:hover,
.topbar-user.is-open .topbar-user-btn { background: #353535; }
.topbar-user-btn:focus-visible {
  outline: 2px solid #fff; outline-offset: -2px;
}
.topbar-avatar {
  width: 2rem; height: 2rem; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%; background: #0f62fe; color: #fff;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.topbar-user-meta {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.05rem; min-width: 0; text-align: left;
}
.topbar-user-meta strong {
  display: block; font-size: 0.8125rem; font-weight: 600;
  line-height: 1.2; white-space: nowrap; max-width: 10rem;
  overflow: hidden; text-overflow: ellipsis;
}
.topbar-user-meta span {
  display: block; font-size: 0.6875rem; color: #c6c6c6;
  line-height: 1.2; text-transform: capitalize;
}
.topbar-user-chevron { width: 1rem; height: 1rem; color: #c6c6c6; flex-shrink: 0; }
.topbar-user.is-open .topbar-user-chevron { transform: rotate(180deg); }
.topbar-user-menu {
  position: absolute; right: 0; top: 100%;
  min-width: 12.5rem; padding: 0.25rem 0;
  background: #262626; border: 1px solid #393939;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  z-index: 9000;
}
.topbar-user-menu button {
  display: block; width: 100%; text-align: left;
  padding: 0.625rem 1rem; margin: 0; border: 0; border-radius: 0;
  background: transparent; color: #f4f4f4;
  font-size: 0.875rem; cursor: pointer; font-family: inherit;
}
.topbar-user-menu button:hover { background: #353535; }
.topbar-user-menu button:focus-visible {
  outline: 2px solid #fff; outline-offset: -2px;
}
.topbar-user-menu button.is-muted { color: #c6c6c6; }
.topbar-user-sep { height: 1px; background: #393939; margin: 0.25rem 0; }

.workspace {
  display: grid; grid-template-columns: 16rem minmax(0, 1fr);
  min-height: calc(100vh - var(--gzr-topbar-h));
  padding-top: var(--gzr-topbar-h);
}
.sidebar {
  background: var(--cds-layer-01, #fff);
  border-right: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  padding: 1rem 0;
  overflow-y: auto;
  position: sticky; top: var(--gzr-topbar-h);
  height: calc(100vh - var(--gzr-topbar-h));
  align-self: start;
}
.sidebar h3 {
  margin: 0 1rem 0.75rem; font-size: 0.75rem; font-weight: 600;
  color: var(--cds-text-secondary, #525252); text-transform: uppercase; letter-spacing: 0.08em;
}
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-group { margin-bottom: 0.875rem; }
.nav-group-label {
  margin: 0 1rem 0.35rem; padding: 0;
  font-size: 0.6875rem; font-weight: 600;
  color: var(--cds-text-secondary, #525252);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.nav-item {
  width: 100%; border: 0; background: transparent; text-align: left;
  padding: 0.6875rem 1rem; display: flex; align-items: center; gap: 0.5rem;
  color: var(--cds-text-secondary, #525252);
  cursor: pointer; font-size: 0.875rem; border-left: 3px solid transparent;
}
.nav-item .svc-logo { opacity: 0.95; }
.nav-item:hover { background: var(--cds-layer-hover-01, #e8e8e8); color: var(--cds-text-primary, #161616); }
.nav-item.active {
  background: var(--cds-layer-selected-01, #e0e0e0);
  color: var(--cds-text-primary, #161616); font-weight: 600;
  border-left-color: var(--cds-border-interactive, #0f62fe);
}
.sidebar-foot {
  margin: 1rem; padding: 1rem; background: var(--cds-layer-02, #f4f4f4);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  font-size: 0.75rem; color: var(--cds-text-secondary, #525252); line-height: 1.5;
}

.content { min-width: 0; padding: 1.5rem; background: var(--cds-background, #f4f4f4); overflow-x: auto; }
.page-intro {
  padding: 1rem 1.25rem; background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0); margin-bottom: 1rem;
}
.page-intro h1 { margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.page-intro p { margin: 0; color: var(--cds-text-secondary, #525252); font-size: 0.875rem; line-height: 1.5; }
.svc-logo { width: 1.125rem; height: 1.125rem; object-fit: contain; flex-shrink: 0; }
.svc-logo-lg { width: 1.5rem; height: 1.5rem; object-fit: contain; flex-shrink: 0; }
.svc-logo-tile {
  width: 1.75rem; height: 1.75rem; padding: 0.15rem; object-fit: contain; flex-shrink: 0;
  background: var(--cds-layer-01, #fff); border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.svc-logo-row { display: flex; gap: 0.375rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem; }
.status-name-row { display: flex; align-items: flex-start; gap: 0.625rem; }
.status-name-row .svc-logo { margin-top: 0.15rem; }
.helper {
  font-size: 0.8125rem; line-height: 1.55; color: var(--cds-text-secondary, #525252);
  white-space: pre-wrap; font-family: 'IBM Plex Mono', monospace;
}
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex-shrink: 0; }
.dot.healthy { background: var(--cds-support-success, #24a148); }
.dot.degraded { background: var(--cds-support-warning, #f1c21b); }
.dot.down { background: var(--cds-support-error, #da1e28); }
.hero {
  padding: 1.5rem; background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0); margin-bottom: 1rem;
}
.hero h1 { margin: 0 0 0.5rem; font-size: 1.75rem; font-weight: 600; }
.hero p { margin: 0; color: var(--cds-text-secondary, #525252); line-height: 1.6; max-width: 72ch; font-size: 0.875rem; }

.stats-grid, .card-grid, .split-grid { display: grid; gap: 1rem; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1rem 0; }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-grid { grid-template-columns: 1.25fr 0.9fr; align-items: start; }

.metric-card {
  padding: 1rem 1.25rem; background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.metric-label { font-size: 0.75rem; color: var(--cds-text-secondary, #525252); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.metric-value { font-size: 2rem; font-weight: 600; line-height: 1.2; }
.metric-sub { margin-top: 0.375rem; font-size: 0.75rem; color: var(--cds-text-secondary, #525252); }

.panel { background: var(--cds-layer-01, #fff); border: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.panel-head {
  padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.panel-head h2 { margin: 0; font-size: 1.125rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.panel-head p { margin: 0.25rem 0 0; color: var(--cds-text-secondary, #525252); font-size: 0.75rem; }
.panel-body { padding: 0 1.25rem 1.25rem; }

.cds--data-table-container { overflow-x: auto; margin-top: 0.5rem; }
table.cds--data-table { width: 100%; }
.cds--data-table th { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.cds--data-table td { font-size: 0.875rem; vertical-align: middle; }
.datasource-actions { position: relative; display: inline-block; }
.datasource-actions > summary {
  display: inline-flex; align-items: center; list-style: none; cursor: pointer;
}
.datasource-actions > summary::-webkit-details-marker { display: none; }
.datasource-actions-menu {
  position: absolute; right: 0; top: calc(100% + 0.25rem); z-index: 20;
  display: grid; min-width: 9rem; padding: 0.25rem;
  background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.16);
}
.datasource-actions-menu .cds--btn {
  width: 100%; justify-content: flex-start; text-align: left; white-space: nowrap;
}
.cdc-action-select {
  width: 10.5rem;
  min-height: 2rem;
  padding-left: 0.75rem;
  font-size: 0.8125rem;
}
.datasource-action-select { width: 11rem; }
.page-loading {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.75rem;
  color: var(--cds-text-secondary, #525252);
  background: var(--cds-layer-02, #f4f4f4);
  border-left: 3px solid var(--cds-interactive, #0f62fe);
  font-size: 0.8125rem;
}
.page-loading[hidden] { display: none !important; }
.page-loading .llm-spinner { flex: 0 0 auto; }
.table-loading {
  padding: 1.25rem !important;
  color: var(--cds-text-secondary, #525252);
  text-align: center;
}
.schema-editor-modal { width: min(860px, 100%); }
.schema-editor-definition {
  min-height: 22rem;
  margin-top: 0.375rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  resize: vertical;
}
.cdc-cluster-summary { margin-bottom: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cdc-scaling-panel {
  display: grid; gap: 0.75rem; margin-bottom: 1rem; padding: 1rem;
  background: var(--cds-layer-02, #f4f4f4);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.cdc-scaling-panel p { margin: 0.25rem 0 0; color: var(--cds-text-secondary, #525252); font-size: 0.8125rem; line-height: 1.5; }
.cdc-scaling-fields { display: flex; align-items: end; gap: 0.75rem; flex-wrap: wrap; }
.cdc-scaling-fields .cds--label { min-width: 9rem; }
.cdc-scaling-fields .cds--text-input { margin-top: 0.375rem; }
.cdc-operations { margin-bottom: 1rem; }
.cdc-operations-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.5rem; }
.cdc-operations-list { border: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.cdc-operation-row { display: grid; grid-template-columns: 8rem 10rem 1fr auto; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0); font-size: 0.8125rem; }
.cdc-operation-row:last-child { border-bottom: 0; }
.cdc-tune-modal { width: min(860px, 100%); }
.cdc-tune-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.cdc-tune-field { min-width: 0; }
.cdc-tune-field .cds--select-input, .cdc-tune-field .cds--text-input { display: block; margin-top: 0.375rem; width: 100%; }
.cdc-tune-field .helper { display: block; margin-top: 0.375rem; line-height: 1.4; }
.cdc-tune-warning { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.cdc-backfill-modal { width: min(760px, 100%); }
.cdc-backfill-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; margin: 1rem 0; padding: 0.75rem; background: var(--cds-layer-02, #f4f4f4); }
.cdc-backfill-options { margin-top: 1rem; }
.cdc-backfill-confirm { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 1rem; line-height: 1.4; }
.cdc-backfill-cutover { margin-top: 1rem; padding: 1rem; border-left: 3px solid var(--cds-support-warning, #f1c21b); background: var(--cds-layer-02, #f4f4f4); }
.cdc-backfill-cutover h3 { margin: 0 0 0.5rem; font-size: 0.9375rem; }
.cdc-backfill-cutover .cds--text-input { margin: 0.75rem 0; }

.mono { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; }
.detail {
  margin-top: 1rem; background: var(--cds-layer-accent-01, #393939);
  color: var(--cds-text-inverse, #f4f4f4); padding: 1rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
  overflow: auto; max-height: 420px; white-space: pre-wrap;
}
.section { display: none; }
.section.active { display: block; }
.empty { padding: 1.5rem; text-align: center; color: var(--cds-text-secondary, #525252); font-size: 0.875rem; }

.link-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-card {
  padding: 1rem; background: var(--cds-layer-02, #f4f4f4);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  transition: background 0.11s;
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.link-card:hover { background: var(--cds-layer-hover-01, #e8e8e8); }
.link-card strong { display: block; margin-bottom: 0.25rem; font-size: 0.875rem; }
.link-card span { color: var(--cds-text-secondary, #525252); font-size: 0.75rem; }
.link-card .svc-logo-lg { margin-top: 0.1rem; }

.snackbar {
  position: fixed; left: 50%; bottom: 1.5rem;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  background: var(--cds-background-inverse, #393939); color: var(--cds-text-inverse, #fff);
  padding: 0.875rem 1.25rem; z-index: 9000; font-size: 0.875rem;
  border-left: 3px solid var(--cds-border-interactive, #0f62fe);
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  max-width: min(92vw, 520px);
}
.snackbar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1; visibility: visible; pointer-events: auto;
}
.snackbar:empty { display: none; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(22, 22, 22, 0.55); z-index: 8500;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  isolation: isolate;
}
.modal-backdrop.hidden,
.modal-backdrop[hidden] { display: none !important; }
.modal {
  background: var(--cds-layer-01, #fff);
  color: var(--cds-text-primary, #161616);
  width: min(40rem, 100%);
  max-height: min(95vh, 90rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}
.modal--confirm {
  width: min(44rem, 100%);
  max-height: min(95vh, 90rem);
}
.modal--confirm .modal-body {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.modal--confirm #confirmNoteWrap:not(.hidden) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.modal--confirm #confirmNoteWrap .cds--form-item {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
}
.kafka-browse-modal { width: min(980px, 100%); }
.kafka-browse-table { max-height: min(48vh, 28rem); overflow: auto; background: var(--cds-layer-01, #fff); }
.kafka-browse-table .cds--data-table th {
  position: sticky; top: 0; z-index: 1; background: var(--cds-layer-01, #fff);
}
.kafka-browse-table td { vertical-align: top; }
.kafka-preview {
  display: inline-block; max-width: 28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--cds-text-secondary, #525252);
  vertical-align: bottom;
}
.modal-backdrop.llm-narrative-modal { z-index: 8700; }
.llm-modal {
  width: min(48rem, calc(100vw - 2rem));
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.llm-modal .modal-head {
  padding: 1.25rem 1.5rem 1rem;
}
.llm-modal .modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.llm-modal .modal-foot,
.llm-modal-foot {
  padding: 0.875rem 1.5rem;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.llm-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.llm-feedback-actions[hidden] { display: none !important; }
.llm-model-chip {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--cds-text-secondary, #525252);
  background: var(--cds-layer-02, #f4f4f4);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.llm-model-chip[hidden] { display: none !important; }
.llm-loading {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  min-height: 6rem;
}
.llm-loading[hidden] { display: none !important; }
.llm-spinner {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  border: 2px solid var(--cds-border-subtle-01, #c6c6c6);
  border-top-color: var(--cds-link-primary, #0f62fe);
  border-radius: 50%;
  animation: llm-spin 0.75s linear infinite;
}
@keyframes llm-spin { to { transform: rotate(360deg); } }
.llm-loading-copy { display: grid; gap: 0.35rem; }
.llm-loading-kicker { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--cds-text-primary, #161616); }
.llm-loading-hint { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--cds-text-secondary, #525252); }
.llm-narrative-body {
  margin: 0;
  max-height: min(62vh, 36rem);
  overflow: auto;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--cds-text-primary, #161616);
}
.llm-narrative-body h3 {
  margin: 1.15rem 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cds-text-secondary, #525252);
}
.llm-narrative-body h3:first-child { margin-top: 0; }
.llm-narrative-body p {
  margin: 0 0 0.7rem;
  font-size: 0.875rem;
  line-height: 1.55;
}
.llm-narrative-body p:last-child,
.llm-narrative-body ul:last-child { margin-bottom: 0; }
.llm-narrative-body ul {
  margin: 0 0 0.7rem;
  padding-left: 1.15rem;
}
.llm-narrative-body li {
  margin: 0.2rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}
.llm-pack-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(135deg, #f4f9ff 0%, #f6f2ff 100%);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.llm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid var(--cds-border-subtle-01, #c6c6c6);
  background: #fff;
  color: var(--cds-text-primary, #161616);
}
.llm-pill--ok { border-color: #a7f0ba; background: #defbe6; color: #0e6027; }
.llm-pill--warn { border-color: #f1c21b; background: #fcf4d6; color: #684e00; }
.llm-pill--bad { border-color: #ffb3b8; background: #fff1f1; color: #a2191f; }
.llm-pill--mute { color: var(--cds-text-secondary, #525252); font-weight: 500; }
.llm-evidence-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}
.llm-ev-chip {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  background: var(--cds-layer-02, #f4f4f4);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  color: var(--cds-text-primary, #161616);
}
.llm-checks {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
}
.llm-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: start;
  padding: 0.4rem 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fff;
}
.llm-check-mark {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
}
.llm-check--pass .llm-check-mark { color: #0e6027; }
.llm-check--fail .llm-check-mark { color: #a2191f; }
.llm-section-block {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--cds-link-primary, #0f62fe);
  background: var(--cds-layer-01, #f4f4f4);
}
.llm-section-block h4 {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cds-text-secondary, #525252);
}
.llm-section-block p { margin: 0; font-size: 0.875rem; line-height: 1.5; }
.llm-appendix {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
}
.llm-appendix th,
.llm-appendix td {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  text-align: left;
  vertical-align: top;
}
.llm-appendix th {
  background: var(--cds-layer-02, #f4f4f4);
  font-weight: 600;
  font-size: 0.75rem;
}
.llm-appendix code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
}
.llm-disclaimer {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--cds-text-secondary, #525252);
  background: var(--cds-layer-02, #f4f4f4);
  border: 1px dashed var(--cds-border-subtle-01, #c6c6c6);
}
#llmNarrativeBody[hidden] { display: none !important; }
.modal-head { padding: 1.25rem 1.5rem 1rem; border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.modal-head h2 { margin: 0 0 0.25rem; font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.modal-head p { margin: 0; color: var(--cds-text-secondary, #525252); font-size: 0.875rem; }
.modal-body { padding: 1rem 1.5rem; overflow: auto; min-height: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 0.75rem; padding: 0.875rem 1.5rem; border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0); }

.two-col, .three-col { display: grid; gap: 1rem; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.table-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.75rem 0; }
.table-controls .search-wide { min-width: 200px; flex: 1 1 240px; max-width: 100%; }
.table-controls select,
.table-controls .cds--select-input,
.table-controls .cds--select,
.table-controls .gzr-select { width: auto; min-width: 10.5rem; max-width: 100%; flex: 0 1 auto; }
.table-controls .cds--select select,
.table-controls .cds--select .cds--select-input,
.table-controls .gzr-select .gzr-select-trigger { width: 100%; min-width: 0; }
.panel-head { flex-wrap: wrap; }
.panel-head .toolbar { justify-content: flex-end; }
.trino-workspace-body { display: grid; gap: 1rem; }
.trino-section { display: grid; gap: 0.5rem; }
.trino-section--editor { margin-top: 0.25rem; }
.trino-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 1rem; }
.trino-section-label {
  margin: 0; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cds-text-secondary, #525252);
}
.trino-builder-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trino-field { display: grid; gap: 0.35rem; min-width: 0; }
.trino-field > span { font-size: 0.75rem; font-weight: 600; color: var(--cds-text-secondary, #525252); }
.trino-workspace-panel .trino-source-select {
  background-color: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  border-bottom: 1px solid var(--cds-border-strong-01, #8d8d8d);
  color: var(--cds-text-primary, #161616);
  min-height: 2.5rem;
  opacity: 1;
  visibility: visible;
  position: static;
  width: 100%;
  height: auto;
}
.trino-workspace-panel .trino-source-select option {
  color: var(--cds-text-primary, #161616);
}
.trino-columns {
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0); max-height: 170px;
  overflow: auto; padding: 0.5rem; background: var(--cds-layer-01, #fff);
  display: grid; gap: 0.375rem;
}
.trino-columns label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.trino-editor {
  height: 280px; border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  overflow: hidden; background: var(--cds-layer-01, #fff);
}
.trino-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.trino-result-panel { margin-top: 1rem; }
@media (max-width: 900px) {
  .trino-builder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .trino-builder-grid { grid-template-columns: 1fr; }
}
.trino-run-status {
  display: flex; align-items: flex-start; gap: 0.875rem;
  margin-bottom: 0.75rem; padding: 0.875rem 1rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
}
.trino-run-status[hidden] { display: none !important; }
.trino-result-body { overflow: auto; min-height: 8rem; }
.trino-loading {
  display: flex; align-items: flex-start; gap: 0.875rem;
  padding: 1.5rem 0.25rem; min-height: 7rem;
}
.trino-loading[hidden] { display: none !important; }
.trino-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.8125rem;
  color: var(--cds-text-secondary, #525252);
}
.trino-table-wrap { overflow: auto; max-height: min(62vh, 36rem); }

.minio-explorer {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr);
  min-height: 34rem; border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #fff);
}
.minio-sidebar {
  border-right: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  display: flex; flex-direction: column; min-height: 0; background: var(--cds-layer-02, #f4f4f4);
}
.minio-sidebar-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.875rem 1rem; border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.minio-sidebar-head h3 { margin: 0; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 0.4rem; }
.minio-sidebar-search { padding: 0.75rem 1rem 0; }
.minio-bucket-list {
  list-style: none; margin: 0; padding: 0.5rem; overflow-y: auto; flex: 1;
}
.minio-bucket-item {
  width: 100%; text-align: left; border: none; background: transparent; cursor: pointer;
  padding: 0.625rem 0.75rem; border-radius: 0; font: inherit; font-size: 0.875rem;
  display: block; color: var(--cds-text-primary, #161616);
}
.minio-bucket-item:hover { background: var(--cds-layer-hover-01, #e8e8e8); }
.minio-bucket-item.is-active {
  background: var(--cds-layer-selected-01, #e0e0e0); font-weight: 600;
  border-left: 3px solid var(--cds-border-interactive, #0f62fe);
}
.minio-bucket-meta { display: block; margin-top: 0.15rem; font-size: 0.6875rem; color: var(--cds-text-secondary, #525252); }
.minio-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.minio-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #fff);
}
.minio-toolbar .cds--btn--sm { min-block-size: 2rem; }
.minio-pathbar {
  padding: 0.625rem 1rem; border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  font-size: 0.8125rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem;
  background: var(--cds-layer-02, #f4f4f4); min-height: 2.5rem;
}
.minio-crumb {
  color: var(--cds-link-primary, #0f62fe); cursor: pointer; border: none; background: none;
  padding: 0; font: inherit; font-size: inherit;
}
.minio-crumb:hover { text-decoration: underline; }
.minio-crumb.is-current { color: var(--cds-text-primary, #161616); cursor: default; font-weight: 600; }
.minio-crumb-sep { color: var(--cds-text-secondary, #525252); user-select: none; }
.minio-files-wrap { flex: 1; overflow: auto; padding: 0; }
.minio-files-table { width: 100%; border-collapse: collapse; }
.minio-files-table th {
  position: sticky; top: 0; z-index: 1; background: var(--cds-layer-01, #fff);
  text-align: left; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 0.625rem 1rem; border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.minio-files-table td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--cds-border-subtle-01, #e8e8e8); font-size: 0.875rem; vertical-align: middle; }
.minio-files-table tr:hover td { background: var(--cds-layer-hover-01, #f4f4f4); }
.minio-entry-btn {
  border: none; background: none; padding: 0; font: inherit; text-align: left; width: 100%;
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: default;
}
.minio-entry-btn.is-folder { color: var(--cds-link-primary, #0f62fe); cursor: pointer; }
.minio-entry-btn.is-folder:hover { text-decoration: underline; }
.minio-entry-kind {
  display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  background: var(--cds-layer-02, #f4f4f4); color: var(--cds-text-secondary, #525252); flex-shrink: 0;
}
.minio-entry-kind.is-folder { background: #d0e2ff; color: #0043ce; }
.minio-row-actions { display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; }
.minio-action {
  border: none; background: none; padding: 0; font: inherit; color: var(--cds-link-primary, #0f62fe);
  cursor: pointer; white-space: nowrap; font-size: 0.8125rem;
}
.minio-action:hover { text-decoration: underline; }
.minio-action.is-danger { color: var(--cds-support-error, #da1e28); }
.minio-empty {
  padding: 2.5rem 1rem; text-align: center; color: var(--cds-text-secondary, #525252); font-size: 0.875rem;
}
.minio-footer { padding: 0.5rem 1rem; border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.minio-upload-input { display: none; }

.aml-intro { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.aml-intel-line { margin: -0.25rem 0 0.85rem; }
.aml-bulk { display: flex; gap: 0.25rem; margin: 0 0 0.65rem; }
.aml-form { display: grid; gap: 0.75rem; max-width: 52rem; }
.aml-form .cds--form-item { margin: 0; }
#amlJurisModal .modal { width: min(44rem, 100%); }
#amlJurisModal .aml-ms-combo { max-width: none; }
#amlJurisNotes {
  display: block;
  width: 100%;
  min-height: 7rem;
  resize: vertical;
  box-sizing: border-box;
}
#amlPolNotes.aml-pol-notes,
#amlPolicyForm .aml-pol-notes {
  display: block;
  width: 100% !important;
  min-height: 16rem !important;
  height: 16rem !important;
  max-height: none !important;
  padding: 0.75rem 1rem;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}
.aml-ms { display: grid; gap: 0.5rem; }
.aml-ms-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; min-height: 1.75rem; align-items: center; }
.aml-ms-chip {
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.aml-ms-combo { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; position: relative; }
.aml-ms-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 30;
  background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 16rem;
  overflow: auto;
}
.aml-ms-suggest-item {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}
.aml-ms-suggest-item em { font-style: normal; color: var(--cds-text-secondary, #525252); font-size: 0.75rem; }
.aml-ms-suggest-item:hover,
.aml-ms-suggest-item.is-active { background: var(--cds-layer-hover-01, #edf5ff); }
.aml-ms-suggest-item.is-custom strong { color: var(--cds-link-primary, #0f62fe); }
.aml-ms-guide { font-size: 0.8125rem; }
.aml-ms-guide summary { cursor: pointer; color: var(--cds-link-primary, #0f62fe); }
.aml-ms-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.6rem;
  max-height: 12rem;
  overflow: auto;
  padding-right: 0.25rem;
}
.aml-ms-opt { display: flex; gap: 0.55rem; align-items: flex-start; }
.aml-ms-opt span { display: grid; gap: 0.1rem; }
.aml-ms-opt em { font-style: normal; color: var(--cds-text-secondary, #525252); font-size: 0.75rem; }
.aml-wl-head, .aml-wl-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.4fr) minmax(8rem, 1fr) minmax(8rem, 0.9fr) auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.aml-wl-head { font-size: 0.75rem; font-weight: 600; color: var(--cds-text-secondary, #525252); }
.aml-watchlist { width: 100%; min-height: 18rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem; }
.aml-layer-tabs { display: flex; gap: 0; margin: 0 0 1rem; border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.aml-layer-tab {
  border: 0; background: transparent; cursor: pointer; color: inherit;
  padding: 0.55rem 0.85rem; font-size: 0.8125rem;
  border-bottom: 2px solid transparent;
}
.aml-layer-tab.is-active { border-bottom-color: var(--cds-interactive, #0f62fe); font-weight: 600; }
.aml-policy-checks { display: grid; gap: 0.35rem; }
.aml-policy-mults {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.5rem;
}
.aml-table-wrap { overflow: auto; }
.aml-table .col-check { width: 2rem; }
.aml-table .col-actions { width: 2.5rem; text-align: right; }
.aml-rule-cond {
  display: block; margin-top: 0.2rem; color: var(--cds-text-secondary, #525252);
  font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 36rem;
}
.aml-kebab {
  border: 0; background: transparent; cursor: pointer; font-size: 1.15rem;
  line-height: 1; padding: 0.15rem 0.4rem; color: var(--cds-text-secondary, #525252);
}
.aml-kebab:hover { background: var(--cds-layer-hover-01, #e8e8e8); }
.aml-pop {
  position: fixed; z-index: 9200; min-width: 11rem;
  background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: grid; padding: 0.25rem 0;
}
.aml-pop[hidden] { display: none !important; }
.aml-pop button {
  border: 0; background: transparent; text-align: left; padding: 0.45rem 0.85rem;
  cursor: pointer; font-size: 0.8125rem; width: 100%;
}
.aml-pop button:hover { background: var(--cds-layer-hover-01, #e8e8e8); }
.aml-pop button.is-danger { color: var(--cds-support-error, #da1e28); }
.aml-tipping-off {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--cds-support-warning, #f1c21b);
  background: var(--cds-layer-02, #fff8e1);
  font-size: 0.8125rem;
}
.aml-sim-modal {
  width: min(72rem, 100%);
  max-height: 90vh;
}
.aml-sim-modal .modal-body {
  overflow: auto;
  min-height: 12rem;
  max-height: calc(90vh - 9rem);
}
.aml-sim-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.aml-sim-summary .metric-card { margin: 0; }
.aml-rule-modal {
  width: min(76rem, 96vw);
  max-height: 94vh;
}
.aml-rule-modal .modal-body { overflow: auto; max-height: calc(94vh - 8.5rem); }
.aml-rule-modal .modal-foot { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.aml-modal-foot-spacer { flex: 1; }
.aml-rule-step { display: none !important; }
.aml-rule-step.is-active { display: grid !important; gap: 0.75rem; }
.aml-rule-modal select[hidden] { display: none !important; }
.aml-rule-modal .aml-pick-row,
.aml-rule-modal .aml-pick-grid,
.aml-rule-modal .aml-metric-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.aml-rule-modal .aml-pick-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aml-rule-modal .aml-pick-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aml-rule-modal .aml-pick-row--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aml-rule-modal .aml-pick {
  min-width: 0;
  min-height: 0;
  padding: 0.5rem 0.6rem;
}
.aml-rule-modal .aml-pick em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aml-rule-modal .aml-ms-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 10rem;
}
.aml-cond-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8rem;
  gap: 0.75rem;
  align-items: end;
}
.aml-form .aml-ms-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 56rem) {
  .aml-rule-modal .aml-pick-row,
  .aml-rule-modal .aml-pick-grid,
  .aml-rule-modal .aml-metric-grid,
  .aml-rule-modal .aml-pick-row--4,
  .aml-rule-modal .aml-pick-row--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.aml-wizard-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  padding: 0;
}
.aml-wizard-steps li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-bottom: 2px solid var(--cds-border-subtle-01, #e0e0e0);
  color: var(--cds-text-secondary, #525252);
  font-size: 0.8125rem;
  cursor: pointer;
}
.aml-wizard-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--cds-layer-02, #f4f4f4);
  font-weight: 600;
  font-size: 0.75rem;
}
.aml-wizard-steps li.is-done { border-bottom-color: var(--cds-support-success, #198038); color: var(--cds-text-primary, #161616); }
.aml-wizard-steps li.is-done span { background: var(--cds-support-success, #198038); color: #fff; }
.aml-wizard-steps li.is-active { border-bottom-color: var(--cds-interactive, #0f62fe); color: var(--cds-text-primary, #161616); font-weight: 600; }
.aml-wizard-steps li.is-active span { background: var(--cds-interactive, #0f62fe); color: #fff; }
.aml-wizard-steps li.is-locked { cursor: default; opacity: 0.55; }
.aml-pick-row, .aml-pick-grid { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.aml-join-bar { display: grid; gap: 0.45rem; }
.aml-pick-row, .aml-pick-grid, .aml-metric-grid { display: grid; gap: 0.5rem; }
.aml-pick-row { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.aml-pick-grid, .aml-metric-grid { grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); }
.aml-pick {
  text-align: left;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #fff);
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  min-height: 3.25rem;
}
.aml-pick strong { font-size: 0.875rem; }
.aml-pick em { font-style: normal; color: var(--cds-text-secondary, #525252); font-size: 0.75rem; line-height: 1.35; }
.aml-pick.is-active {
  border-color: var(--cds-interactive, #0f62fe);
  box-shadow: inset 0 0 0 1px var(--cds-interactive, #0f62fe);
  background: var(--cds-layer-hover-01, #edf5ff);
}
.aml-pick--sm { min-height: 0; padding: 0.45rem 0.65rem; }
.aml-cond-card {
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #fff);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.75rem;
}
.aml-cond-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.aml-cond-params {
  display: grid;
  grid-template-columns: minmax(16rem, 1.2fr) minmax(10rem, 0.6fr) minmax(16rem, 1fr);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 60rem) {
  .aml-cond-params { grid-template-columns: 1fr; }
}
.aml-rule-enabled { display: flex; align-items: flex-end; padding-bottom: 0.35rem; }
.aml-match-field { max-width: 16rem; }
.aml-rule-guide {
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: var(--cds-layer-02, #f4f4f4);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  display: grid;
  gap: 0.5rem;
  font-size: 0.8125rem;
}
.aml-guide-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.aml-guide-head p { margin: 0.35rem 0 0; color: var(--cds-text-secondary, #525252); }
.aml-guide-details { font-size: 0.8125rem; }
.aml-guide-details summary { cursor: pointer; color: var(--cds-link-primary, #0f62fe); }
.aml-guide-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.aml-guide-cases span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.aml-guide-cases ul { margin: 0; padding-left: 1.1rem; }
.aml-guide-cases li { margin: 0.2rem 0; }
.aml-guide-tip {
  margin: 0;
  padding: 0.45rem 0.55rem;
  background: var(--cds-layer-01, #fff);
  border-left: 3px solid var(--cds-support-info, #0f62fe);
}
.aml-metric-hint { margin: 0.25rem 0 0; }
.aml-cond-row { align-items: start; }
@media (max-width: 48rem) {
  .aml-guide-cases { grid-template-columns: 1fr; }
}
.aml-rule-modal #amlRuleDesc {
  min-height: 4.5rem;
  width: 100%;
  resize: vertical;
}
.aml-builder-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin: 0; }
.aml-builder { display: grid; gap: 0.85rem; }
.aml-cond-group {
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
  padding: 0.85rem 1rem;
  display: grid; gap: 0.75rem;
}
.aml-cond-group-head { display: flex; gap: 0.75rem; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; }
.aml-cond-children { display: grid; gap: 0.75rem; padding-left: 0.75rem; border-left: 3px solid var(--cds-interactive, #0f62fe); }
#sec-aml .aml-table { min-width: 72rem; table-layout: fixed; width: 100%; }
#sec-aml .aml-table th,
#sec-aml .aml-table td { vertical-align: middle; padding: 0.625rem 0.75rem; }
#sec-aml .aml-table th:first-child,
#sec-aml .aml-table td:first-child { width: 2.25rem; }
#sec-aml .aml-table .col-rule { width: 14%; }
#sec-aml .aml-table .col-type { width: 8%; }
#sec-aml .aml-table .col-condition { width: 22%; white-space: normal; word-break: break-word; }
#sec-aml .aml-table .col-severity { width: 8%; }
#sec-aml .aml-table .col-action { width: 11%; white-space: normal; word-break: break-word; }
#sec-aml .aml-table .col-hits { width: 5%; text-align: right; }
#sec-aml .aml-table .col-status { width: 8%; }
#sec-aml .aml-table .col-actions { width: 12rem; white-space: nowrap; }
#sec-aml .aml-table .col-actions .cdc-action-select { width: 10.5rem; }
.aml-tag {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; padding: 0.2rem 0.6rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; border-radius: 999px; line-height: 1.2;
}
.aml-tag--low { background: #e0e0e0; color: #161616; }
.aml-tag--medium { background: #d0e2ff; color: #0043ce; }
.aml-tag--high { background: #e8daff; color: #6929c4; }
.aml-tag--critical { background: #ffd7d9; color: #a2191f; }
.aml-tag--enabled { background: #defbe6; color: #0e6027; }
.aml-tag--disabled { background: #e0e0e0; color: #525252; }
.aml-row-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.65rem;
}
.aml-action {
  border: none; background: none; padding: 0; font: inherit;
  color: var(--cds-link-primary, #0f62fe); cursor: pointer; white-space: nowrap;
  font-size: 0.8125rem; line-height: 1.4;
}
.aml-action:hover { text-decoration: underline; }
.aml-action.is-danger { color: var(--cds-support-error, #da1e28); }
#amlModal.is-readonly .aml-builder-head .toolbar,
#amlModal.is-readonly .aml-cond-row > button,
#amlModal.is-readonly .aml-cond-group-head .toolbar { display: none; }
.aml-rule-name { display: block; font-weight: 600; line-height: 1.35; }
.aml-rule-id { display: block; margin-top: 0.15rem; color: var(--cds-text-secondary, #525252); font-size: 0.75rem; }

.status-tag {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; padding: 0.2rem 0.6rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: lowercase; border-radius: 999px; line-height: 1.2;
}
.status-tag--healthy { background: #defbe6; color: #0e6027; }
.status-tag--degraded, .status-tag--paused { background: #d0e2ff; color: #0043ce; }
.status-tag--down { background: #ffd7d9; color: #a2191f; }
.status-tag--gray { background: #e0e0e0; color: #525252; }
.status-tag--purple { background: #e8daff; color: #6929c4; }

.idc-tabs {
  display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 1rem;
  border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.idc-tab {
  border: 0; background: transparent; cursor: pointer; color: inherit;
  padding: 0.7rem 1rem; font-size: 0.875rem;
  border-bottom: 2px solid transparent;
}
.idc-tab.is-active { border-bottom-color: var(--cds-interactive, #0f62fe); font-weight: 600; }
.idc-pane { display: none; }
.idc-pane.is-active { display: block; }
.idc-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.75rem; }
.idc-card {
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
  padding: 0.9rem 1rem; display: grid; gap: 0.45rem;
}
.idc-card-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.idc-card-head code { font-size: 0.75rem; color: var(--cds-text-secondary, #525252); }
.idc-card p { margin: 0; font-size: 0.75rem; color: var(--cds-text-secondary, #525252); }
.idc-card .cds--btn { justify-self: start; }
.idp-map-head {
  display: flex; justify-content: space-between; gap: 0.75rem;
  align-items: flex-end; margin: 1rem 0 0.75rem;
}
.idp-map-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 0.5rem; align-items: end; margin-bottom: 0.5rem;
}
.idp-map-row .cds--form-item { margin-bottom: 0; }
.idp-redirect-row { display: flex; gap: 0.5rem; align-items: flex-end; }
.idp-redirect-row .cds--text-input { flex: 1; }
.alert-mix {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.75fr);
  margin: 0 0 1rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #fff);
}
.alert-mix-group { padding: 0.85rem 1.15rem 1rem; min-width: 0; }
.alert-mix-group + .alert-mix-group { border-left: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.alert-mix-kicker {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--cds-text-secondary, #525252);
}
.alert-mix-hint { margin: 0.15rem 0 0.65rem; font-size: 0.75rem; color: var(--cds-text-secondary, #525252); }
.alert-mix-stack {
  display: flex; height: 0.5rem; overflow: hidden; background: var(--cds-layer-02, #e0e0e0); margin-bottom: 0.7rem;
}
.alert-mix-seg {
  border: 0; padding: 0; min-width: 0.35rem; cursor: pointer; height: 100%;
}
.alert-mix-seg:hover, .alert-mix-seg.is-active { outline: 2px solid var(--cds-text-primary, #161616); outline-offset: 1px; z-index: 1; }
.alert-mix-legend { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.alert-mix-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
  color: inherit; font: inherit; font-size: 0.75rem;
  padding: 0.3rem 0.55rem; cursor: pointer;
}
.alert-mix-chip strong { font-size: 0.8125rem; }
.alert-mix-chip:hover, .alert-mix-chip.is-active {
  border-color: var(--cds-border-interactive, #0f62fe);
  background: #edf5ff;
}
.alert-mix-chip.is-empty { opacity: 0.45; }
.alert-mix-dot { width: 0.5rem; height: 0.5rem; flex: 0 0 0.5rem; }
.runbook-group-title {
  margin: 1.25rem 0 0.65rem; font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--cds-text-secondary, #525252);
}
.runbook-group-title:first-of-type { margin-top: 0.25rem; }
.runbook-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem;
}
.runbook-card {
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
  padding: 0.9rem 1rem; display: grid; gap: 0.5rem;
}
.runbook-card .cds--form-item { margin-bottom: 0; }
.runbook-card-head { display: flex; align-items: center; justify-content: space-between; }
.runbook-view + .runbook-view {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.runbook-view h3 { margin: 0.2rem 0 0; font-size: 1rem; }
.runbook-view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.runbook-steps { margin: 0.65rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.runbook-steps li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.4rem; font-size: 0.875rem; line-height: 1.45; }
.runbook-steps li span { color: var(--cds-text-secondary, #525252); font-weight: 600; }
.flink-job-modal { width: min(72rem, 96vw); max-height: 94vh; }
.flink-job-modal .modal-body { overflow: auto; max-height: calc(94vh - 9rem); }
.flink-inspect-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.flink-job-controls { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.flink-ex {
  white-space: pre-wrap;
  font-size: 0.75rem;
  max-height: 14rem;
  overflow: auto;
  background: var(--cds-layer-02, #f4f4f4);
  padding: 0.75rem;
}
.flink-table-wrap { overflow-x: auto; }
.flink-jobs-table { min-width: 56rem; table-layout: fixed; width: 100%; }
.flink-jobs-table .col-check { width: 2.25rem; }
.flink-jobs-table th:nth-child(2),
.flink-jobs-table td:nth-child(2) { width: 32%; }
.flink-jobs-table th:nth-child(7),
.flink-jobs-table td:nth-child(7) { width: 12rem; }
.flink-job-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-weight: 600; }
.flink-actions { white-space: nowrap; }
.flink-actions .cdc-action-select { width: 11rem; }
.alert-pager-nav { display: flex; align-items: center; gap: 0.5rem; }
.metric-card.is-button {
  width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit;
  background: var(--cds-layer-01, #fff);
}
.metric-card.is-button.is-active {
  border-color: var(--cds-interactive, #0f62fe);
  box-shadow: inset 0 -2px 0 var(--cds-interactive, #0f62fe);
}

.status-toolbar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin: 0 0 1rem; padding: 0.75rem 1rem;
  background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.status-meta { font-size: 0.8125rem; color: var(--cds-text-secondary, #525252); margin-left: auto; }
.status-groups { display: grid; gap: 1rem; }
.status-group-panel .panel-head { align-items: center; }
.status-table .status-name { font-weight: 600; font-size: 0.875rem; }
.status-table .status-desc { font-size: 0.75rem; color: var(--cds-text-secondary, #525252); margin-top: 0.15rem; }
.status-table .status-detail { font-size: 0.8125rem; color: var(--cds-text-secondary, #525252); max-width: 28rem; word-break: break-word; }
.status-table td:last-child {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.status-table td:last-child .alert-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
}

.glossary-toolbar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin: 0 0 1rem; padding: 0.75rem 1rem;
  background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.glossary-toolbar .search-wide { flex: 1; min-width: 14rem; }
.glossary-meta { font-size: 0.8125rem; color: var(--cds-text-secondary, #525252); margin-left: auto; }
.glossary-groups { display: grid; gap: 1rem; }
.glossary-table td:first-child { width: 9rem; vertical-align: top; }
.glossary-term {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.875rem; font-weight: 600;
  color: var(--cds-text-primary, #161616);
}
.glossary-expansion { font-size: 0.75rem; color: var(--cds-text-secondary, #525252); margin-top: 0.15rem; }
.glossary-definition { font-size: 0.875rem; line-height: 1.55; }
.glossary-link { margin-top: 0.35rem; }

.docs-layout { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.docs-toc { position: sticky; top: calc(var(--gzr-topbar-h) + 1rem); }
.docs-toc-list { display: grid; gap: 0.15rem; }
.docs-toc-group { margin: 0.65rem 0 0.25rem; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cds-text-secondary, #525252); }
.docs-toc-item {
  width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer;
  padding: 0.5rem 0.625rem; font: inherit; font-size: 0.8125rem; color: var(--cds-text-primary, #161616);
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.docs-toc-item:hover { background: var(--cds-layer-hover-01, #e8e8e8); }
.docs-toc-item.is-active { background: var(--cds-layer-selected-01, #e0e0e0); font-weight: 600; border-left: 3px solid var(--cds-border-interactive, #0f62fe); }
.docs-article-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.docs-article-title h2 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.docs-body { display: grid; gap: 0.75rem; margin-top: 1rem; }
.docs-body p { margin: 0; font-size: 0.875rem; line-height: 1.65; color: var(--cds-text-primary, #161616); }
.docs-h { margin: 1.25rem 0 0.35rem; font-size: 0.875rem; font-weight: 600; }
.docs-body .docs-h:first-child { margin-top: 0; }
.docs-steps { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.docs-steps li { margin: 0.35rem 0; font-size: 0.875rem; line-height: 1.55; }
.docs-diagram {
  margin: 0 0 1.25rem; padding: 1rem;
  background: var(--cds-layer-02, #f4f4f4);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.docs-diagram figcaption { display: grid; gap: 0.2rem; margin-bottom: 0.75rem; }
.docs-diagram figcaption strong { font-size: 0.875rem; }
.docs-diagram figcaption span { font-size: 0.75rem; color: var(--cds-text-secondary, #525252); line-height: 1.45; }
.docs-diagram .mermaid,
.docs-diagram .docs-mermaid { margin: 0; background: #fff; padding: 0.75rem; overflow-x: auto; }
.docs-diagram .docs-mermaid svg { max-width: 100%; display: block; }
.docs-diagram .docs-mermaid-fallback {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  white-space: pre-wrap;
  margin: 0;
  background: #fff;
  padding: 0.75rem;
}
.docs-callout {
  margin: 1rem 0 0; padding: 0.875rem 1rem;
  border-left: 3px solid var(--cds-border-interactive, #0f62fe);
  background: #edf5ff;
}
.docs-callout strong { display: block; font-size: 0.8125rem; margin-bottom: 0.25rem; }
.docs-callout p { margin: 0; font-size: 0.8125rem; line-height: 1.55; }
.docs-callout--warn { border-left-color: var(--cds-support-warning, #f1c21b); background: #fff8e1; }
.docs-related { margin-top: 1.25rem; }
.docs-related-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.docs-related-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0); background: var(--cds-layer-02, #f4f4f4);
  padding: 0.4rem 0.7rem; font: inherit; font-size: 0.8125rem; cursor: pointer;
}
.docs-related-item:hover { background: var(--cds-layer-hover-01, #e8e8e8); }

.dap-hero {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 1.25rem; align-items: start; margin-bottom: 1rem;
  padding: 1.25rem; background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.dap-kicker {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--cds-text-secondary, #525252); margin-bottom: 0.5rem;
}
.dap-url-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.dap-url-row code {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.9375rem; font-weight: 600;
  padding: 0.35rem 0.6rem; background: var(--cds-layer-02, #f4f4f4);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.dap-hero-copy { margin: 0.75rem 0 0; font-size: 0.8125rem; line-height: 1.55; color: var(--cds-text-secondary, #525252); }
.dap-format-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dap-chip {
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0); background: var(--cds-layer-02, #f4f4f4);
  padding: 0.5rem 0.7rem; text-align: left; cursor: pointer; font: inherit;
  min-width: 9.5rem;
}
.dap-chip:hover, .dap-chip.is-active { border-color: var(--cds-border-interactive, #0f62fe); background: #edf5ff; }
.dap-chip strong { display: block; font-size: 0.8125rem; }
.dap-chip span { display: block; font-size: 0.6875rem; color: var(--cds-text-secondary, #525252); margin-top: 0.15rem; }
.dap-secret {
  margin: 0 0 1rem; padding: 1rem 1.25rem;
  border-left: 3px solid var(--cds-support-warning, #f1c21b); background: #fff8e1;
}
.dap-secret strong { display: block; margin-bottom: 0.35rem; }
.dap-secret .mono { word-break: break-all; font-size: 0.875rem; margin: 0.5rem 0; }
.dap-tabs {
  display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 0;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0); border-bottom: 0;
  background: var(--cds-layer-01, #fff);
}
.dap-tab {
  border: 0; border-bottom: 3px solid transparent; background: transparent;
  padding: 0.75rem 1.1rem; cursor: pointer; font: inherit; font-size: 0.875rem;
  color: var(--cds-text-secondary, #525252);
}
.dap-tab:hover { background: var(--cds-layer-hover-01, #e8e8e8); color: var(--cds-text-primary, #161616); }
.dap-tab.is-active {
  color: var(--cds-text-primary, #161616); font-weight: 600;
  border-bottom-color: var(--cds-border-interactive, #0f62fe);
}
.dap-pane { display: none; border: 1px solid var(--cds-border-subtle-01, #e0e0e0); border-top: 0; }
.dap-pane.is-active { display: block; }
.dap-pane > .panel { border: 0; }
.dap-toolbar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin: 0.75rem 0 0.25rem; }
.dap-toolbar .search-wide { flex: 1; min-width: 12rem; }
.dap-toolbar .cds--select, .dap-toolbar select { min-width: 10.5rem; flex: 0 1 auto; }
.dap-token-row.is-active {
  box-shadow: inset 3px 0 0 var(--cds-support-success, #198038);
  background: #f3f9f4;
}
.dap-token-row.is-active .status-name { font-weight: 600; color: var(--cds-text-primary, #161616); }
.dap-token-row.is-inactive {
  background: var(--cds-layer-02, #f4f4f4);
  color: var(--cds-text-disabled, #a8a8a8);
}
.dap-token-row.is-inactive td { color: var(--cds-text-disabled, #a8a8a8); }
.dap-token-row.is-inactive .status-name,
.dap-token-row.is-inactive .status-desc { color: var(--cds-text-disabled, #a8a8a8); }
.dap-token-row.is-inactive .lf-grant-values,
.dap-token-row.is-inactive .status-tag { opacity: 0.7; }
.cds--data-table tbody tr.dap-token-row.is-inactive:hover { background: var(--cds-layer-02, #f4f4f4); }
.cds--data-table tbody tr.dap-token-row.is-active:hover { background: #e7f4ea; }
.dap-play { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); min-height: 28rem; }
.dap-play-list { border: 0; border-right: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.dap-play-list .panel-body { padding: 0 0 0.5rem; }
.dap-play-main { border: 0; min-width: 0; }
.dap-fn-item {
  width: 100%; border: 0; border-left: 3px solid transparent; background: transparent;
  text-align: left; padding: 0.7rem 0.75rem; cursor: pointer; font: inherit;
  display: grid; gap: 0.15rem;
}
.dap-fn-item:hover { background: var(--cds-layer-hover-01, #e8e8e8); }
.dap-fn-item.is-active { background: var(--cds-layer-selected-01, #e0e0e0); border-left-color: var(--cds-border-interactive, #0f62fe); }
.dap-fn-item strong { font-size: 0.8125rem; }
.dap-fn-item span { font-size: 0.6875rem; color: var(--cds-text-secondary, #525252); }
.dap-play-form { display: grid; gap: 0.25rem; }
.dap-params { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1rem; }
.dap-play-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 1rem; }
.dap-result { margin: 0 0 1rem; }
.dap-result-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; align-items: center; }
.dap-result-table { overflow-x: auto; }
.dap-result-table table { width: 100%; font-size: 0.75rem; }
.dap-result-table td, .dap-result-table th { white-space: nowrap; }
.dap-fn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.75rem; padding: 1rem; background: var(--cds-layer-01, #fff); }
.dap-fn-card {
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0); background: var(--cds-layer-02, #f4f4f4);
  padding: 1rem; text-align: left; cursor: pointer; font: inherit; display: grid; gap: 0.35rem;
}
.dap-fn-card:hover { background: var(--cds-layer-hover-01, #e8e8e8); }
.dap-fn-card h3 { margin: 0; font-size: 0.9375rem; }
.dap-fn-card p { margin: 0; font-size: 0.75rem; line-height: 1.45; color: var(--cds-text-secondary, #525252); }
.dap-settings { display: grid; gap: 1.5rem; }
.dap-settings-live { display: flex; align-items: center; gap: 0.5rem; }
.dap-settings-section h3 { margin: 0 0 0.35rem; font-size: 0.875rem; }
.dap-settings-section .helper { margin: 0 0 0.75rem; }
.dap-settings-section .checkbox-row { margin: 0.35rem 0; }
.dap-protection-mode { display: flex; align-items: center; }
.dap-protection-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem 1rem; margin-top: 1rem; }
.dap-protection-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.dap-protection-preview { margin: 0 0 1rem; }
.dap-protection-preview-head { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
.dap-protection-preview-head span { color: var(--cds-text-secondary, #525252); font-size: 0.75rem; }
.dap-protection-preview pre { max-height: 18rem; overflow: auto; margin: 0; }
.dap-settings-actions { display: flex; gap: 0.5rem; }
.dap-validate-sql {
  width: 100%; min-height: 8rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem; line-height: 1.45;
}
.dap-validate-result { margin-top: 0.75rem; }
.dap-validate-banner {
  padding: 0.6rem 0.75rem; font-size: 0.8125rem; font-weight: 600;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.dap-validate-banner.is-ok { background: #defbe6; border-color: #a7f0ba; color: #0e6027; }
.dap-validate-banner.is-fail { background: #fff1f1; border-color: #ffd7d9; color: #a2191f; }
.dap-validate-checks { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.dap-validate-checks li { display: flex; gap: 0.75rem; font-size: 0.8125rem; }
.dap-validate-checks li strong { min-width: 9rem; }
.dap-validate-checks li.is-ok strong { color: #0e6027; }
.dap-validate-checks li.is-fail strong { color: #a2191f; }
.dap-modal-section {
  margin: 0.5rem 0 0.75rem; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--cds-text-secondary, #525252);
}

.at-rule {
  margin: 0 0 1rem; padding: 0.75rem 1rem;
  background: var(--cds-layer-02, #f4f4f4);
  border-left: 3px solid var(--cds-interactive, #0f62fe);
  font-size: 0.8125rem; line-height: 1.45; color: var(--cds-text-secondary, #525252);
}
.at-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  margin-bottom: 1.25rem;
}
.at-step {
  display: grid; gap: 0.15rem; padding: 0.85rem 1rem; text-align: left;
  background: var(--cds-layer-01, #fff); border: 0;
  border-right: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  cursor: pointer; color: inherit;
}
.at-step:last-child { border-right: 0; }
.at-step span {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--cds-text-secondary, #525252);
}
.at-step strong { font-size: 0.875rem; }
.at-step.is-active {
  background: #edf5ff;
  box-shadow: inset 0 -2px 0 var(--cds-interactive, #0f62fe);
}
.at-pane { display: none; }
.at-pane.is-active { display: grid; gap: 0.85rem; }
.at-key-list { display: grid; gap: 0.75rem; }
.at-key-row {
  display: grid; gap: 0.75rem; padding: 0.9rem 1rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
}
@media (min-width: 880px) {
  .at-key-row { grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); align-items: start; }
}
.at-key-meta strong { display: block; font-size: 0.9375rem; }
.at-key-meta code { font-size: 0.75rem; color: var(--cds-text-secondary, #525252); }
.at-key-meta p { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--cds-text-secondary, #525252); }
.at-key-values { display: grid; gap: 0.5rem; }
.at-pills { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.at-pill {
  display: inline-block; padding: 0.1rem 0.4rem; border-radius: 0.25rem;
  background: #edf5ff; color: #0043ce; font-size: 0.6875rem; font-weight: 600;
}
.at-add-key, .at-add-value, .at-check-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.at-add-key .cds--text-input, .at-add-value .cds--text-input,
.at-check-row select, .at-check-row .cds--select-input, .at-check-row .cds--select { min-width: 10rem; flex: 1; }
.at-split {
  display: grid; gap: 1rem;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 960px) { .at-split { grid-template-columns: 1fr; } }
.at-ds-nav {
  display: grid; gap: 0.35rem; max-height: 32rem; overflow: auto;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #fff); padding: 0.35rem;
}
.at-ds-item {
  display: grid; gap: 0.2rem; width: 100%; text-align: left; cursor: pointer;
  padding: 0.7rem 0.75rem; border: 0; background: transparent; color: inherit;
}
.at-ds-item.is-selected { background: #edf5ff; }
.at-ds-edit {
  display: grid; gap: 0.75rem; padding: 1rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
}
.at-ds-edit-head h3 { margin: 0; font-size: 1rem; }
.at-ds-edit .cds--btn { justify-self: start; }
.lf-grant-list, .lf-grant-key { display: grid; gap: 0.65rem; }
.lf-grant-label { font-size: 0.75rem; font-weight: 600; color: var(--cds-text-secondary, #525252); }
.lf-grant-values { display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; }
.lf-grant-values .checkbox-row { margin: 0; }
.checkbox-row.is-disabled { opacity: 0.45; }
.at-check-result { margin-top: 0.25rem; display: grid; gap: 0.4rem; }
.at-check-result p { margin: 0; font-size: 0.8125rem; color: var(--cds-text-secondary, #525252); }

.saved-views-panel { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.saved-views-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.saved-views-actions .cds--btn { flex: 1; min-width: 0; }
.save-view-preview {
  margin-top: 0.75rem; padding: 0.75rem 1rem; font-size: 0.8125rem; line-height: 1.5;
  background: var(--cds-layer-02, #f4f4f4); border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  color: var(--cds-text-secondary, #525252);
}

.ml-layout { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1320px) {
  .ml-layout { grid-template-columns: minmax(0, 1fr) minmax(24rem, 30rem); align-items: start; }
}
#sec-ml .ml-services-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
#sec-ml .ml-services-table th,
#sec-ml .ml-services-table td { vertical-align: middle; padding: 0.75rem 1rem; }
#sec-ml .ml-services-table th {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--cds-layer-02, #f4f4f4);
}
#sec-ml .ml-services-table .col-service { width: 22%; }
#sec-ml .ml-services-table .col-status { width: 16%; }
#sec-ml .ml-services-table .col-http { width: 12%; text-align: right; }
#sec-ml .ml-services-table .col-details {
  width: 50%; white-space: normal; word-break: break-word;
  font-size: 0.75rem; line-height: 1.45; color: var(--cds-text-secondary, #525252);
}
.ml-control-panel .panel-body {
  display: grid; gap: 1.25rem;
  padding: 1.25rem;
}
.ml-control-form { display: grid; gap: 0.875rem; }
.checkbox-row {
  display: flex; align-items: flex-start; gap: 0.75rem; margin: 0;
}
.checkbox-row .cds--checkbox {
  flex: 0 0 1.125rem; width: 1.125rem; height: 1.125rem; margin: 0.125rem 0 0;
}
.checkbox-row .cds--checkbox-label {
  flex: 1 1 auto; margin: 0; line-height: 1.45; font-size: 0.875rem;
}
.ml-control-panel .cds--form-item { margin-bottom: 0; }
.ml-control-panel .cds--label {
  display: block; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 600;
}
.ml-control-panel select,
.ml-control-panel .cds--select-input {
  width: 100%; max-width: 100%; min-height: 2.5rem;
}
.ml-control-actions {
  display: grid;
  gap: 0.625rem;
  width: 100%;
}
.ml-control-actions .cds--btn {
  display: inline-flex;
  width: 100%;
  max-width: 100%;
  max-inline-size: none;
  min-inline-size: 0;
  justify-content: center;
}
.ml-drift-panel { margin-top: 1rem; }
.ml-drift-card {
  display: grid;
  gap: 0.875rem;
  padding: 1rem;
  background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.ml-drift-card.is-warning { border-color: var(--cds-support-warning, #f1c21b); }
.ml-drift-card.is-critical { border-color: var(--cds-support-error, #da1e28); }
.ml-drift-card.is-advisory {
  border-color: var(--cds-support-warning, #f1c21b);
  background: color-mix(in srgb, var(--cds-support-warning, #f1c21b) 8%, var(--cds-layer-01, #fff));
}
.ml-adv {
  font-style: normal;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cds-text-secondary, #525252);
  margin-left: 0.35rem;
}
.ml-drift-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.ml-drift-head h2 { margin: 0; font-size: 1rem; }
.ml-drift-head p { margin: 0.25rem 0 0; color: var(--cds-text-secondary, #525252); font-size: 0.75rem; }
.ml-drift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.ml-drift-metric {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.625rem;
  background: var(--cds-layer-02, #f4f4f4);
}
.ml-drift-metric span,
.ml-drift-metric small { color: var(--cds-text-secondary, #525252); font-size: 0.6875rem; }
.ml-drift-metric strong { font-size: 1.1rem; font-weight: 600; }
.ml-drift-windows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--cds-text-secondary, #525252);
  font-size: 0.6875rem;
}
.ml-drift-action {
  padding: 0.625rem 0.75rem;
  background: var(--cds-layer-02, #f4f4f4);
  font-size: 0.75rem;
  line-height: 1.45;
}
.ml-drift-fan {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem 0.95rem;
  background: #fff;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.ml-drift-fan.is-empty { opacity: 0.85; }
.ml-drift-fan .ml-chart-head h3 { margin: 0; font-size: 0.875rem; }
.ml-drift-fan .ml-chart-head p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--cds-text-secondary, #525252);
}
.ml-drift-fan-stage {
  overflow-x: auto;
  margin: 0 -0.15rem;
}
.ml-drift-fan-svg {
  display: block;
  width: 100%;
  min-width: 46rem;
  height: auto;
  background:
    radial-gradient(120% 80% at 12% 50%, rgba(15, 98, 254, 0.035), transparent 55%),
    linear-gradient(180deg, #fbfcfe 0%, #fff 55%);
}
.ml-drift-fan-curve {
  fill: none;
  stroke-width: 1.05;
  opacity: 0.28;
}
.ml-drift-fan-curve.is-up { stroke: #da1e28; }
.ml-drift-fan-curve.is-down { stroke: #0f62fe; }
.ml-drift-fan-dens.is-up { fill: rgba(218, 30, 40, 0.22); }
.ml-drift-fan-dens.is-down { fill: rgba(15, 98, 254, 0.22); }
.ml-drift-fan-axis {
  stroke: #161616;
  stroke-width: 1.5;
}
.ml-drift-fan-baseline {
  stroke: #8d8d8d;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.ml-drift-fan-baseline-label,
.ml-drift-fan-axis-label,
.ml-drift-fan-origin-label,
.ml-drift-fan-origin-sub,
.ml-drift-fan-pct-sub,
.ml-drift-fan-callout-sub,
.ml-drift-fan-count-label {
  fill: #697077;
  font-size: 11px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}
.ml-drift-fan-origin {
  fill: #161616;
  stroke: #fff;
  stroke-width: 2;
}
.ml-drift-fan-origin-label {
  fill: #161616;
  font-size: 12px;
  font-weight: 600;
}
.ml-drift-fan-pct {
  font-size: 28px;
  font-weight: 700;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}
.ml-drift-fan-pct.is-up { fill: #a2191f; }
.ml-drift-fan-pct.is-down { fill: #0043ce; }
.ml-drift-fan-pct-sub { font-size: 11px; }
.ml-drift-fan-callout {
  font-size: 12px;
  font-weight: 600;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}
.ml-drift-fan-callout.is-up { fill: #a2191f; }
.ml-drift-fan-callout.is-down { fill: #0043ce; }
.ml-drift-fan-callout-line {
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.ml-drift-fan-callout-line.is-up { stroke: #a2191f; }
.ml-drift-fan-callout-line.is-down { stroke: #0f62fe; }
.ml-drift-fan-count-label { font-size: 11px; }
@media (max-width: 720px) {
  .ml-drift-fan-svg { min-width: 36rem; }
}
.ml-drift-mount {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem 1rem;
  background: #070f22;
  border: 1px solid #15233f;
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ml-drift-mount.is-empty {
  opacity: 0.9;
  background: #fff;
  border-color: var(--cds-border-subtle-01, #e0e0e0);
  color: inherit;
  box-shadow: none;
}
.ml-drift-mount .ml-chart-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #f8fafc;
  letter-spacing: -0.01em;
}
.ml-drift-mount .ml-chart-head p {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  max-width: 40rem;
}
.ml-drift-mount-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  align-items: flex-start;
}
.ml-drift-mount-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(5.5rem, auto));
  gap: 0.45rem;
}
.ml-drift-mount-kpi {
  min-width: 5.8rem;
  padding: 0.45rem 0.6rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  gap: 0.12rem;
}
.ml-drift-mount-kpi span {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 600;
}
.ml-drift-mount-kpi strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.ml-drift-mount-kpi small {
  font-size: 0.6875rem;
  color: #64748b;
}
.ml-drift-mount-kpi.is-live {
  border-color: rgba(255, 159, 28, 0.45);
  background: linear-gradient(180deg, rgba(255, 159, 28, 0.12), rgba(15, 23, 42, 0.9));
}
.ml-drift-mount-kpi.is-shadow {
  border-color: rgba(217, 70, 239, 0.45);
  background: linear-gradient(180deg, rgba(217, 70, 239, 0.12), rgba(15, 23, 42, 0.9));
}
.ml-drift-mount-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}
.ml-drift-mount-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ml-drift-mount-toggle {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.ml-drift-mount-toggle:hover {
  border-color: rgba(226, 232, 240, 0.4);
  color: #f8fafc;
}
.ml-drift-mount-toggle.is-on {
  border-color: rgba(248, 250, 252, 0.35);
  background: rgba(30, 41, 59, 0.95);
  color: #f8fafc;
}
.ml-drift-mount-swatch {
  width: 0.9rem;
  height: 0.55rem;
  display: inline-block;
}
.ml-drift-mount-swatch.is-live {
  background: linear-gradient(90deg, #fff3bf, #ff9f1c 40%, #ff4d6d 75%, #c9184a);
  box-shadow: 0 0 10px rgba(255, 159, 28, 0.55);
}
.ml-drift-mount-swatch.is-shadow {
  background: linear-gradient(90deg, #f0abfc, #d946ef 40%, #7c3aed 75%, #4c1d95);
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.5);
}
.ml-drift-mount-readout {
  font-size: 0.75rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  min-height: 1.1rem;
}
.ml-drift-mount-readout strong { color: #f8fafc; font-weight: 600; }
.ml-drift-mount-stage {
  position: relative;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: radial-gradient(90% 70% at 18% 10%, rgba(255, 77, 109, 0.08), transparent 45%),
    radial-gradient(80% 60% at 88% 0%, rgba(217, 70, 239, 0.10), transparent 50%),
    #061028;
}
.ml-drift-mount-tip {
  position: absolute;
  z-index: 4;
  min-width: 11.5rem;
  max-width: 15rem;
  padding: 0.55rem 0.65rem;
  background: rgba(2, 6, 23, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.18);
  color: #e2e8f0;
  font-size: 0.72rem;
  line-height: 1.35;
  display: grid;
  gap: 0.22rem;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.ml-drift-mount-tip strong { color: #f8fafc; font-size: 0.78rem; }
.ml-drift-mount-tip .is-live { color: #ffb703; }
.ml-drift-mount-tip .is-shadow { color: #e879f9; }
.ml-drift-mount-tip .helper { color: #94a3b8; }
.ml-drift-mount-svg {
  display: block;
  width: 100%;
  min-width: 40rem;
  height: auto;
}
.ml-drift-mount-bg { fill: #061028; }
.ml-drift-mount-frame {
  fill: transparent;
  stroke: rgba(226, 232, 240, 0.12);
  stroke-width: 1;
}
.ml-drift-mount-band.is-a { fill: rgba(255, 255, 255, 0.035); }
.ml-drift-mount-band.is-b { fill: rgba(255, 255, 255, 0.012); }
.ml-drift-mount-htick {
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.ml-drift-mount-ylabel,
.ml-drift-mount-xlabel,
.ml-drift-mount-slabel {
  fill: rgba(226, 232, 240, 0.72);
  font-size: 11px;
  font-weight: 600;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  letter-spacing: 0.04em;
}
.ml-drift-mount-slabel {
  fill: rgba(148, 163, 184, 0.78);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ml-drift-mount-area {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.ml-drift-mount-area.is-off,
.ml-drift-mount-ridge.is-off { opacity: 0; pointer-events: none; }
.ml-drift-mount-ridge {
  fill: none;
  stroke-width: 2.1;
  stroke-linejoin: miter;
  stroke-linecap: square;
  transition: opacity 0.2s ease;
}
.ml-drift-mount-ridge.is-live { stroke: #ffe566; }
.ml-drift-mount-ridge.is-shadow { stroke: #f5d0fe; }
.ml-drift-mount-scrub {
  stroke: rgba(248, 250, 252, 0.85);
  stroke-width: 1.25;
  stroke-dasharray: 3 4;
  pointer-events: none;
}
.ml-drift-mount-hit {
  fill: transparent;
  cursor: crosshair;
}
.ml-drift-mount-vline {
  stroke: rgba(226, 232, 240, 0.16);
  stroke-width: 1;
  transition: stroke 0.15s ease, stroke-width 0.15s ease;
}
.ml-drift-mount-dot {
  opacity: 0;
  transition: opacity 0.15s ease, r 0.15s ease;
  pointer-events: none;
}
.ml-drift-mount-dot.is-live {
  fill: #ffdd57;
  stroke: #fff7cc;
  stroke-width: 1.2;
}
.ml-drift-mount-dot.is-shadow {
  fill: #e879f9;
  stroke: #f5d0fe;
  stroke-width: 1.2;
}
.ml-drift-mount-bin.is-dim { opacity: 0.28; }
.ml-drift-mount-bin.is-hover .ml-drift-mount-vline,
.ml-drift-mount-bin.is-selected .ml-drift-mount-vline {
  stroke: rgba(248, 250, 252, 0.9);
  stroke-width: 1.5;
}
.ml-drift-mount-bin.is-hover .ml-drift-mount-dot,
.ml-drift-mount-bin.is-selected .ml-drift-mount-dot {
  opacity: 1;
}
.ml-drift-mount-bins.hide-live .ml-drift-mount-dot.is-live { display: none; }
.ml-drift-mount-bins.hide-shadow .ml-drift-mount-dot.is-shadow { display: none; }
.ml-drift-mount .helper {
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
}
@media (max-width: 720px) {
  .ml-drift-mount-svg { min-width: 34rem; }
  .ml-drift-mount-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
}
.ml-drift-table-wrap { max-height: 15rem; overflow: auto; }
.ml-drift-table-wrap th,
.ml-drift-table-wrap td { padding: 0.5rem 0.625rem; font-size: 0.75rem; }
@media (max-width: 720px) {
  .ml-drift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ml-control-ml-fields { display: grid; gap: 0.875rem; }
.ml-control-ml-fields.is-disabled { opacity: 0.55; }
.ml-status-board {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}
.ml-status-board > .ml-auc h3,
.ml-status-board > .ml-chart h3,
.ml-status-board > .ml-tips h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.ml-board-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 1100px) {
  .ml-board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ml-board-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--cds-layer-01, #fff);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.ml-board-card h3 {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--cds-layer-02, #f4f4f4);
  border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.ml-facts {
  flex: 1;
  display: grid;
  grid-template-rows: repeat(8, minmax(3rem, 1fr));
  margin: 0;
}
.ml-fact {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.ml-fact:last-child { border-bottom: 0; }
.ml-fact dt {
  margin: 0;
  color: var(--cds-text-secondary, #525252);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.ml-fact dd {
  margin: 0;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--cds-text-primary, #161616);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ml-fact-sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: var(--cds-text-secondary, #525252);
  font-weight: 400;
}
.ml-chart-head h3 { margin: 0; font-size: 0.875rem; }
.ml-chart-head p { margin: 0.15rem 0 0.65rem; font-size: 0.75rem; color: var(--cds-text-secondary, #525252); }
.ml-auc {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem 1rem;
  border: 1px solid var(--ml-line, #d5dde6);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(15, 98, 254, 0.06), transparent 55%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
}
.ml-auc-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.ml-auc-kpi {
  display: grid;
  gap: 0.12rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ml-line, #d5dde6);
  background: rgba(255, 255, 255, 0.88);
  min-width: 0;
}
.ml-auc-kpi span {
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ml-muted, #5a6a7a);
}
.ml-auc-kpi strong {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ml-ink, #0b1f33);
  line-height: 1.2;
}
.ml-auc-kpi small {
  font-size: 0.6875rem;
  color: var(--ml-muted, #5a6a7a);
}
.ml-auc-kpi.is-ok strong { color: var(--ml-live, #0f6e56); }
.ml-auc-kpi.is-miss strong { color: #a2191f; }
.ml-auc-kpi.is-trend-up strong { color: var(--ml-live, #0f6e56); }
.ml-auc-kpi.is-trend-down strong { color: #a2191f; }
.ml-auc-stage {
  position: relative;
}
.ml-auc-svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--ml-line, #d5dde6);
  background:
    linear-gradient(180deg, rgba(247, 249, 251, 0.95) 0%, #ffffff 70%);
}
.ml-auc-grid {
  stroke: rgba(11, 31, 51, 0.08);
  stroke-width: 1;
}
.ml-auc-grid.is-gate {
  stroke: #8a6900;
  stroke-dasharray: 4 5;
  stroke-width: 1.25;
}
.ml-auc-area { fill: url(#mlAucFill); }
.ml-auc-line {
  stroke: #0f62fe;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 0 rgba(15, 98, 254, 0.15));
}
.ml-auc-y,
.ml-auc-x,
.ml-auc-gate-label {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  fill: #5a6a7a;
}
.ml-auc-y, .ml-auc-x { font-size: 11px; }
.ml-auc-y.is-gate { fill: #8a6900; font-weight: 600; }
.ml-auc-gate-label {
  font-size: 10px;
  font-weight: 600;
  fill: #8a6900;
}
.ml-auc-point {
  cursor: pointer;
  outline: none;
  transition: opacity 0.12s ease;
}
.ml-auc-point.is-dim { opacity: 0.28; }
.ml-auc-halo {
  fill: transparent;
  pointer-events: all;
}
.ml-auc-dot {
  stroke: #fff;
  stroke-width: 1.75;
  transition: r 0.12s ease;
}
.ml-auc-point.is-ok .ml-auc-dot { fill: #198038; }
.ml-auc-point.is-miss .ml-auc-dot { fill: #a2191f; }
.ml-auc-point.is-prod .ml-auc-dot {
  stroke: var(--ml-live, #0f6e56);
  stroke-width: 2.5;
}
.ml-auc-point.is-staging .ml-auc-dot {
  stroke: var(--ml-cand, #0f62fe);
  stroke-width: 2.5;
}
.ml-auc-point.is-active .ml-auc-dot,
.ml-auc-point.is-latest .ml-auc-dot {
  filter: drop-shadow(0 0 0.35rem rgba(15, 98, 254, 0.35));
}
.ml-auc-point.is-active .ml-auc-halo {
  fill: rgba(15, 98, 254, 0.12);
}
.ml-auc-tip {
  position: absolute;
  z-index: 3;
  min-width: 10rem;
  max-width: 14rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--ml-line, #d5dde6);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.12);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ml-ink, #0b1f33);
  pointer-events: none;
}
.ml-auc-readout {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--ml-muted, #5a6a7a);
  font-variant-numeric: tabular-nums;
}
.ml-auc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-size: 0.75rem;
  color: var(--cds-text-secondary, #525252);
}
.ml-swatch.is-ok { background: #198038; }
.ml-swatch.is-miss { background: #a2191f; }
.ml-swatch.is-prod {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--ml-live, #0f6e56);
}
.ml-swatch.is-staging {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--ml-cand, #0f62fe);
}
.ml-auc-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-height: 11rem;
  overflow: auto;
}
.ml-auc-rail-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(4.5rem, 1fr) 3.5rem 3.75rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  border-bottom-color: var(--ml-line, #d5dde6);
  font-size: 0.75rem;
}
.ml-auc-rail-ver { color: var(--ml-muted, #5a6a7a); }
.ml-auc-rail-item strong {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}
.ml-auc-rail-item.is-ok strong { color: #198038; }
.ml-auc-rail-item.is-miss strong { color: #a2191f; }
.ml-auc-rail-delta {
  justify-self: end;
  color: var(--ml-muted, #5a6a7a);
}
.ml-auc-role {
  display: inline-flex;
  width: fit-content;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--ml-line, #d5dde6);
  font-size: 0.6875rem;
  color: var(--ml-muted, #5a6a7a);
}
.ml-auc-role.is-prod {
  border-color: rgba(15, 110, 86, 0.35);
  color: var(--ml-live, #0f6e56);
  background: rgba(15, 110, 86, 0.06);
}
.ml-auc-role.is-staging {
  border-color: rgba(15, 98, 254, 0.35);
  color: var(--ml-cand, #0f62fe);
  background: rgba(15, 98, 254, 0.06);
}
@media (max-width: 720px) {
  .ml-auc-kpis { grid-template-columns: 1fr; }
  .ml-auc-rail-item {
    grid-template-columns: 2.75rem minmax(3.5rem, 1fr) 3.25rem 3.25rem;
  }
}
.ml-hist-stage { position: relative; }
.ml-hist {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: end;
  min-height: 9rem;
}
.ml-hist-col {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 0.1rem;
  cursor: pointer;
  color: inherit;
  min-width: 0;
  opacity: 1;
  transition: opacity 0.12s ease;
}
.ml-hist-col.is-dim { opacity: 0.38; }
.ml-hist-col.is-hover,
.ml-hist-col.is-selected { opacity: 1; }
.ml-hist-col.is-selected {
  outline: 2px solid #0f62fe;
  outline-offset: 1px;
}
.ml-hist-col:focus-visible { outline: 2px solid #0f62fe; outline-offset: 1px; }
.ml-hist-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 7.5rem;
  width: 100%;
  padding-top: 0.25rem;
}
.ml-hist-bar {
  flex: 1;
  min-height: 2px;
  background: #525252;
  pointer-events: none;
}
.ml-hist-bar.is-live { background: #0f62fe; }
.ml-hist-bar.is-shadow { background: #8d8d8d; }
.ml-hist-bar.is-off { display: none; }
.ml-hist-col span { font-size: 0.6875rem; color: var(--cds-text-secondary, #525252); }
.ml-hist-tip {
  position: absolute;
  z-index: 3;
  min-width: 11.5rem;
  max-width: 14rem;
  padding: 0.55rem 0.7rem;
  background: #161616;
  color: #f4f4f4;
  font-size: 0.75rem;
  line-height: 1.4;
  pointer-events: none;
  display: grid;
  gap: 0.15rem;
}
.ml-hist-tip[hidden] { display: none; }
.ml-hist-tip .helper { color: #c6c6c6; margin: 0.2rem 0 0; }
.ml-hist-readout {
  margin-top: 0.45rem;
  min-height: 1.1rem;
  font-size: 0.75rem;
  color: var(--cds-text-secondary, #525252);
}
.ml-hist-legend {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem;
  margin-top: 0.5rem; font-size: 0.75rem;
}
.ml-legend-btn {
  appearance: none; border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fff; padding: 0.35rem 0.6rem; cursor: pointer;
  font: inherit; color: inherit;
}
.ml-legend-btn.is-on { border-color: #0f62fe; background: #edf5ff; }
.ml-legend-btn:not(.is-on) { opacity: 0.55; }
.ml-swatch {
  display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.35rem;
  vertical-align: -0.1rem; background: #525252;
}
.ml-swatch.is-live { background: #0f62fe; }
.ml-swatch.is-shadow { background: #8d8d8d; }
.ml-tier-bar {
  display: flex; width: 100%; height: 1.75rem; overflow: hidden;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  font-size: 0.6875rem; line-height: 1.75rem; color: #fff; text-align: center;
}
.ml-tier-seg {
  appearance: none; border: 0; margin: 0; padding: 0;
  height: 100%; cursor: pointer; color: inherit; font: inherit;
}
.ml-tier-seg:hover { filter: brightness(1.08); }
.ml-tier-seg.is-critical { background: #da1e28; }
.ml-tier-seg.is-high { background: #ff832b; color: #161616; }
.ml-tier-seg.is-medium { background: #f1c21b; color: #161616; }
.ml-tier-seg.is-low { background: #198038; }
.ml-promote-gate {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #fff);
  font-size: 0.8125rem;
}
.ml-promote-gate.is-ready { border-color: #198038; }
.ml-promote-gate.is-blocked { border-color: #f1c21b; }
.ml-promote-gate.is-wait { border-color: #0f62fe; }
.ml-gate-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.ml-gate-head strong { font-size: 0.9375rem; }
.ml-gate-count {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cds-text-secondary, #525252);
}
.ml-gate-meter {
  height: 0.375rem;
  background: #e0e0e0;
  overflow: hidden;
}
.ml-gate-meter-fill { height: 100%; background: #0f62fe; }
.ml-promote-gate.is-ready .ml-gate-meter-fill { background: #198038; }
.ml-promote-gate.is-blocked .ml-gate-meter-fill { background: #8a6900; }
.ml-promote-gate.is-wait .ml-gate-meter-fill { background: #0f62fe; }
.ml-gate-remaining,
.ml-gate-passed {
  display: grid;
  gap: 0.5rem;
}
.ml-gate-remaining h4,
.ml-gate-passed h4 {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cds-text-secondary, #525252);
}
.ml-gate-issue {
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid #a2191f;
  background: #fff1f1;
}
.ml-gate-issue.is-wait {
  border-left-color: #0f62fe;
  background: rgba(15, 98, 254, 0.06);
}
.ml-gate-issue.is-fail {
  border-left-color: #a2191f;
  background: #fff1f1;
}
.ml-gate-issue header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.ml-gate-issue p { margin: 0; color: var(--cds-text-secondary, #525252); }
.ml-gate-mark {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a2191f;
}
.ml-gate-issue.is-wait .ml-gate-mark { color: #0f62fe; }
.ml-gate-mini {
  display: block;
  height: 0.25rem;
  background: #e0e0e0;
  overflow: hidden;
}
.ml-gate-mini span {
  display: block;
  height: 100%;
  background: #a2191f;
}
.ml-gate-passed ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ml-gate-passed li {
  padding: 0.2rem 0.5rem;
  background: #defbe6;
  color: #0e6027;
  font-size: 0.6875rem;
}
.ml-gate-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--cds-text-secondary, #525252);
}
.ml-tips ul {
  margin: 0; padding-left: 1.15rem;
  display: grid; gap: 0.4rem;
  font-size: 0.8125rem; line-height: 1.45;
}
.ml-mode-banner {
  display: grid; gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
  font-size: 0.8125rem;
}
.ml-mode-banner.is-fallback {
  border-color: #f1c21b;
  background: #fdf6dd;
}
.ml-mode-banner strong { font-size: 0.8125rem; }
.ml-mode-reason { color: var(--cds-text-secondary, #525252); }
.alert-score { font-size: 0.75rem; line-height: 1.35; }
.alert-score .status-desc { margin-top: 0.15rem; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.aml-rule-groups { display: grid; gap: 1rem; }
.aml-rule-head { cursor: pointer; user-select: none; }
.aml-rule-group.is-collapsed .panel-body { display: none; }
#amlDenied[hidden], #amlPortalRoot[hidden], #amlLiveBanner[hidden], #amlRecentStrip[hidden], #amlDetailBody[hidden], #amlDetailEmpty[hidden], #amlInvestigateView[hidden], #amlGuideView[hidden] { display: none !important; }
#confirmNoteWrap.hidden { display: none !important; }
#confirmNote,
#confirmNote.cds--text-area,
textarea#confirmNote.confirm-note-field {
  display: block;
  width: 100% !important;
  min-height: 70rem !important;
  height: 70rem !important;
  max-height: none !important;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.45;
}

.aml-guide-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 2rem;
  color: var(--cds-text-primary, #161616);
}
.aml-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(14rem, 0.9fr);
  gap: 1.25rem;
  align-items: stretch;
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.aml-guide-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cds-text-secondary, #525252);
}
.aml-guide-hero h1 {
  margin: 0 0 0.65rem;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 600;
}
.aml-guide-lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--cds-text-secondary, #525252);
  max-width: 48rem;
}
.aml-guide-hero-aside {
  padding: 1rem 1.1rem;
  background: #edf5ff;
  border-left: 3px solid #0f62fe;
}
.aml-guide-aside-label {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #0043ce;
}
.aml-guide-aside-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cds-text-secondary, #525252);
}
.aml-guide-section {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.aml-guide-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  margin: 0 0 1rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.aml-guide-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.aml-guide-section-head p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--cds-text-secondary, #525252);
}
.aml-guide-destinations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.aml-guide-dest {
  display: grid;
  gap: 0.45rem;
  text-align: left;
  padding: 1rem 1.1rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #f8f8f8;
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-height: 10.5rem;
}
.aml-guide-dest:hover {
  border-color: #0f62fe;
  background: #edf5ff;
}
.aml-guide-dest--primary {
  background: #edf5ff;
  border-color: #a6c8ff;
  box-shadow: inset 3px 0 0 #0f62fe;
}
.aml-guide-dest-kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cds-text-secondary, #525252);
}
.aml-guide-dest strong {
  font-size: 1.05rem;
  font-weight: 600;
}
.aml-guide-dest p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--cds-text-secondary, #525252);
}
.aml-guide-dest-go {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f62fe;
}
.aml-guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
.aml-guide-steps > li {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: 0.9rem 0.85rem;
  background: #f4f4f4;
  border-top: 3px solid #0f62fe;
  min-height: 9.5rem;
}
.aml-guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: #0f62fe;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.aml-guide-steps h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.aml-guide-steps p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--cds-text-secondary, #525252);
}
.aml-guide-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.aml-guide-tools article {
  padding: 0.9rem 1rem;
  background: #f8f8f8;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.aml-guide-tools h3 {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.aml-guide-tools p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--cds-text-secondary, #525252);
}
.aml-guide-section--foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.aml-guide-section--foot h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.aml-guide-section--foot p {
  margin: 0;
  max-width: 40rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cds-text-secondary, #525252);
}
@media (max-width: 1100px) {
  .aml-guide-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aml-guide-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .aml-guide-hero,
  .aml-guide-destinations,
  .aml-guide-steps,
  .aml-guide-tools {
    grid-template-columns: 1fr;
  }
  .aml-guide-steps > li { min-height: 0; }
  .aml-guide-dest { min-height: 0; }
}

.aml-page-intro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.aml-intro-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.aml-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.aml-stat {
  text-align: left;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fff;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  min-height: 4.5rem;
}
.aml-stat:hover { border-color: #0f62fe; }
.aml-stat.is-active { border-color: #0f62fe; box-shadow: inset 0 0 0 1px #0f62fe; }
.aml-stat-label { display: block; font-size: 0.6875rem; font-weight: 600; color: var(--cds-text-secondary, #525252); text-transform: uppercase; letter-spacing: 0.02em; }
.aml-stat-value { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 0.15rem 0; }
.aml-stat-hint { display: block; font-size: 0.6875rem; color: var(--cds-text-secondary, #525252); }

.aml-recent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}
.aml-recent-label { font-size: 0.75rem; font-weight: 600; color: var(--cds-text-secondary, #525252); margin-right: 0.25rem; }
.aml-recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fff;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.aml-recent-chip.is-active { border-color: #0f62fe; background: #edf5ff; }
.aml-recent-clear { margin-left: 0.15rem; }

.aml-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.35rem;
}
.aml-toolbar .aml-search {
  flex: 1 1 16rem;
  min-width: 12rem;
  max-width: 28rem;
}
.aml-toolbar .cds--select,
.aml-toolbar .gzr-select {
  width: auto;
  min-width: 9.5rem;
  max-width: 14rem;
  flex: 0 1 auto;
}
.aml-toolbar .cds--select-input__wrapper,
.aml-toolbar .gzr-select-trigger {
  width: 100%;
  min-width: 0;
}
.aml-toolbar .cds--select-input {
  min-width: 9.5rem;
  width: auto;
}
.aml-toolbar .cds--btn {
  flex: 0 0 auto;
}
.aml-filter-summary { font-size: 0.75rem; color: var(--cds-text-secondary, #525252); margin: 0 0 0.75rem; }

/*
  List height is user-resizable via the bottom drag handle.
  Default height; JS may set inline height with !important on each pane.
*/
body.auth-app {
  --aml-work-h: 28rem;
}

.aml-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1.2fr);
  gap: 0;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fff;
  align-items: start;
}
.aml-list-pane {
  border-right: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 12rem;
  height: var(--aml-work-h, 28rem);
  max-height: none;
  overflow: hidden;
  background: #f8f8f8;
  position: relative;
  padding-bottom: 12px;
  box-sizing: border-box;
}
.aml-list-resize {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  z-index: 5;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  background:
    linear-gradient(#6f6f6f, #6f6f6f) center 5px / 2.75rem 2px no-repeat,
    rgba(0, 0, 0, 0.06);
}
.aml-list-resize:hover,
body.aml-resizing .aml-list-resize {
  background:
    linear-gradient(#0f62fe, #0f62fe) center 5px / 2.75rem 2px no-repeat,
    #edf5ff;
}
body.aml-resizing {
  cursor: ns-resize !important;
  user-select: none !important;
}
body.aml-resizing iframe,
body.aml-resizing .aml-case-list {
  pointer-events: none !important;
}
.aml-resize-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  cursor: ns-resize;
  touch-action: none;
  background: transparent;
}
.aml-list-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fff;
  flex: 0 0 auto;
}
.aml-case-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.aml-case-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fff;
  padding: 0.85rem 1rem;
  cursor: pointer;
}
.aml-case-row:hover { background: #f4f4f4; }
.aml-case-row.is-selected {
  background: #edf5ff;
  box-shadow: inset 3px 0 0 #0f62fe;
}
.aml-case-top { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-bottom: 0.35rem; }
.aml-case-time { margin-left: auto; font-size: 0.75rem; color: var(--cds-text-secondary, #525252); }
.aml-case-cif { font-size: 0.9375rem; font-weight: 600; }
.aml-case-rule { font-size: 0.75rem; color: var(--cds-text-secondary, #525252); margin-top: 0.15rem; }
.aml-case-meta {
  display: grid;
  gap: 0.35rem;
  text-align: right;
  min-width: 4.5rem;
  font-size: 0.8125rem;
}
.aml-meta-k { display: block; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; color: var(--cds-text-secondary, #525252); letter-spacing: 0.03em; }
.aml-empty, .aml-detail-empty { padding: 2rem 1.25rem; color: var(--cds-text-secondary, #525252); }
.aml-detail-empty h2 { margin: 0 0 0.5rem; color: var(--cds-text-primary, #161616); }
.aml-list-pane .alert-pager {
  padding: 0.5rem 1rem;
  background: #fff;
  border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  flex: 0 0 auto;
}

.aml-detail-pane {
  min-width: 0;
  min-height: 100%;
  background: #fff;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.aml-detail-empty,
.aml-detail-body {
  flex: 1 1 auto;
  overflow: visible;
}
.aml-detail-body { padding: 1rem 1.25rem 1.5rem; }
.aml-detail-head { margin-bottom: 1rem; }
.aml-detail-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin: 0.5rem 0; }
.aml-detail-head h2 { margin: 0.25rem 0; font-size: 1.35rem; }
.aml-detail-title { margin: 0.25rem 0; color: var(--cds-text-secondary, #525252); }
.aml-detail-id { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--cds-text-secondary, #525252); }
.aml-back-btn { margin-left: -0.5rem; }
.aml-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  background: #f4f4f4;
}
.aml-fact-grid > div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  align-content: start;
}
.aml-fact-grid strong {
  font-size: 0.9375rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.aml-fact-grid .mono, .aml-fact-grid span:not(.aml-meta-k) { font-size: 0.75rem; color: var(--cds-text-secondary, #525252); }
.aml-note { margin: 0 0 1rem; padding: 0.75rem; border-left: 3px solid #0f62fe; background: #edf5ff; }
.aml-note p { margin: 0.35rem 0 0; }
.aml-detail-actions {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fafafa;
}
.aml-action-group {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  align-items: center;
}
.aml-action-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cds-text-secondary, #525252);
}
.aml-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.aml-detail-actions .cds--btn {
  margin: 0;
  min-height: 2rem;
  height: 2rem;
  padding-inline: 0.75rem;
  align-items: center;
}
.aml-detail-actions .cds--btn--ghost {
  border: 1px solid transparent;
}
.aml-detail-actions .cds--btn--ghost:hover {
  border-color: var(--cds-border-subtle-01, #e0e0e0);
}
.aml-detail-foot { margin: 0; }

.aml-notes {
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fafafa;
}
.aml-notes-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.aml-notes-head h3 { margin: 0; font-size: 0.9375rem; }
.aml-notes-list { display: grid; gap: 0.5rem; margin-bottom: 0.85rem; max-height: 16rem; overflow: auto; }
.aml-note-card {
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.aml-note-card.is-mine { border-left: 3px solid #007d79; }
.aml-note-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--cds-text-secondary, #525252);
  margin-bottom: 0.35rem;
}
.aml-note-card p { margin: 0; white-space: pre-wrap; font-size: 0.875rem; }
.aml-note-compose { display: grid; gap: 0.5rem; }
.aml-note-compose .cds--text-area { width: 100%; resize: vertical; min-height: 4.5rem; }
#dsNotes.ds-notes-field {
  min-height: 10rem;
  height: 10rem;
  width: 100%;
  resize: vertical;
  box-sizing: border-box;
}
.ds-explore-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.ds-explore-panel {
  margin-top: 0.65rem;
  padding: 0.65rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #f4f4f4);
}
.ds-explore-list {
  max-height: 14rem;
  overflow: auto;
  margin: 0.5rem 0;
  display: grid;
  gap: 0.15rem;
}
.ds-explore-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  padding: 0.15rem 0.2rem;
}
.ds-explore-item .mono { font-size: 0.75rem; }
.ds-explore-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.aml-note-compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.aml-note-compose-actions .cds--select-input { min-width: 11rem; width: auto; }

.aml-flags {
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fff;
}
.aml-flag-current {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid #8a3ffc;
  background: #f6f2ff;
}
.aml-flag-current p { margin: 0.35rem 0; font-size: 0.875rem; }
.aml-flag-compose { display: grid; gap: 0.5rem; }
.aml-flag-compose-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.aml-flag-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border: 1px solid transparent;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aml-flag-chip--later { background: #e5f6ff; color: #0043ce; border-color: #a6c8ff; }
.aml-flag-chip--need_info { background: #fff2e8; color: #8a3800; border-color: #ffb784; }
.aml-flag-chip--waiting_ops { background: #f6f2ff; color: #6929c4; border-color: #d4bbff; }
.aml-flag-chip--peer_review { background: #defbe6; color: #0e6027; border-color: #a7f0ba; }
.aml-flag-chip--other { background: #e0e0e0; color: #161616; border-color: #c6c6c6; }

.aml-assign {
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fafafa;
}
.aml-assign .aml-notes-head { margin-bottom: 0.65rem; }
.aml-assign-compose {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.aml-assign-compose .cds--select-input {
  min-width: 14rem;
  flex: 1 1 14rem;
}

.aml-rule-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.aml-rule-card {
  text-align: left;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: #fff;
  padding: 0.9rem;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
}
.aml-rule-card:hover { border-color: #0f62fe; }
.aml-rule-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.aml-rule-count { font-size: 0.75rem; color: var(--cds-text-secondary, #525252); }
.aml-rule-card-stats { display: flex; flex-wrap: wrap; gap: 0.65rem; font-size: 0.75rem; color: var(--cds-text-secondary, #525252); margin-top: 0.25rem; }

.aml-view-hint {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f4f4f4;
  border-left: 3px solid #0f62fe;
  font-size: 0.8125rem;
  color: var(--cds-text-secondary, #525252);
}
.aml-view-hint strong { color: var(--cds-text-primary, #161616); }
.aml-by-rule-workspace {
  grid-template-columns: minmax(200px, 0.85fr) minmax(240px, 1fr) minmax(280px, 1.15fr);
}
.aml-rule-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: 1fr;
}
.aml-rule-picker .aml-rule-card { width: 100%; }
.aml-rule-card.is-active {
  border-color: #0f62fe;
  background: #edf5ff;
  box-shadow: inset 3px 0 0 #0f62fe;
}

@media (max-width: 1100px) {
  .aml-by-rule-workspace { grid-template-columns: 1fr; }
  .aml-rule-picker-pane {
    border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
    height: auto;
    max-height: 14rem;
    position: static;
  }
}
@media (max-width: 960px) {
  .aml-workspace { grid-template-columns: 1fr; min-height: 0; }
  .aml-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
    height: auto;
    max-height: 22rem;
    position: static;
  }
  .aml-list-resize { display: none; }
  .aml-detail-pane { min-height: 0; }
}

.cds--form-item { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.375rem; font-size: 0.75rem; font-weight: 600; }

@media (max-width: 1100px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; }
  .dap-hero, .dap-play { grid-template-columns: 1fr; }
  .dap-play-list { border-right: 0; border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
}
.login-oidc { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.login-oidc .helper { margin: 0 0 0.75rem; }
.aml-path-sla { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.85rem; }
.aml-path-sla span {
  font-size: 0.75rem; font-weight: 600;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
}
.aml-path-track {
  list-style: none; margin: 0 0 0.85rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem;
}
.aml-path-track li {
  margin: 0; padding: 0.75rem 0.85rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #fff);
  display: grid; align-content: start; gap: 0.2rem;
}
.aml-path-n {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cds-text-secondary, #525252);
}
.aml-path-track strong { font-size: 0.875rem; }
.aml-path-track li > span:last-child { color: var(--cds-text-secondary, #525252); font-size: 0.8125rem; }
.aml-path-engines { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0 0 1.25rem; }
.aml-path-engine {
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
  padding: 0.9rem 1rem;
  display: grid; gap: 0.4rem; align-content: start;
}
.aml-path-kicker {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--cds-text-secondary, #525252);
}
.aml-path-engine p { margin: 0; font-size: 0.8125rem; color: var(--cds-text-secondary, #525252); }
.aml-path-engine .cds--btn, .idc-card .cds--btn { justify-self: start; }
@media (max-width: 980px) {
  .aml-path-track, .aml-path-engines { grid-template-columns: 1fr; }
}
.rel-flow { margin: 0 0 1.25rem; padding: 0; list-style: none; counter-reset: rel-step; display: grid; gap: 0.75rem; }
.rel-flow li {
  counter-increment: rel-step;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #f4f4f4);
}
.rel-flow li::before {
  content: counter(rel-step);
  width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cds-button-primary, #0f62fe);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.rel-flow li strong { display: block; font-size: 0.875rem; }
.rel-flow li span { display: block; color: var(--cds-text-secondary, #525252); font-size: 0.8125rem; margin-top: 0.2rem; }
.rel-policy { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--cds-text-secondary, #525252); }
.rel-policy li { margin: 0.35rem 0; }
.rel-metric {
  display: inline-flex; align-items: stretch; width: 100%; max-width: 13.75rem;
}
.rel-metric .cds--text-input {
  min-width: 3.75rem; width: 4.25rem; flex: 0 0 4.25rem;
}
.rel-metric .cds--select,
.rel-metric .gzr-select { flex: 1 1 auto; min-width: 0; }
.rel-metric-suffix {
  display: inline-flex; align-items: center; padding: 0 0.75rem;
  background: var(--cds-field, #f4f4f4);
  border-bottom: 1px solid var(--cds-border-strong-01, #8d8d8d);
  color: var(--cds-text-secondary, #525252);
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
}
.rel-actual .status-tag { margin-bottom: 0.2rem; }
.rel-actual .status-name { font-size: 0.875rem; }

@media (max-width: 980px) {
  .workspace, .split-grid, .minio-explorer, .aml-layout, .ml-layout, .alert-mix { grid-template-columns: 1fr; }
  .alert-mix-group + .alert-mix-group { border-left: 0; border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid, .link-grid, .three-col, .two-col, .hero-grid { grid-template-columns: 1fr; }
  .login-card { grid-template-columns: 1fr; }
  .login-hero { border-right: 0; border-bottom: 1px solid var(--cds-border-inverse, #393939); }
  .idp-map-row { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .topbar { height: auto; min-height: var(--gzr-topbar-h); flex-direction: column; align-items: stretch; padding: 0.75rem; gap: 0.75rem; }
  .topbar-actions { margin-right: 0; height: 2.75rem; }
  .topbar-kbd { display: none; }
  .topbar-user-meta { display: none; }
  .workspace { grid-template-columns: 1fr; padding-top: 0; }
  .sidebar { position: static; height: auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .runbook-grid { grid-template-columns: 1fr; }
}

.pipeline-wizard { border: 1px solid var(--cds-border-subtle-01, #e0e0e0); background: var(--cds-layer-01, #fff); }
.pipeline-steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.pipeline-steps li {
  display: flex; align-items: center; gap: 0.55rem; min-width: 0; padding: 0.85rem 0.75rem;
  border-bottom: 3px solid transparent; color: var(--cds-text-secondary, #525252);
}
.pipeline-steps li span {
  display: grid; place-items: center; flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem;
  border-radius: 50%; background: var(--cds-layer-02, #f4f4f4); font-size: 0.75rem; font-weight: 600;
}
.pipeline-steps li strong, .pipeline-steps li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-steps li strong { font-size: 0.8125rem; }
.pipeline-steps li small { margin-top: 0.15rem; font-size: 0.6875rem; }
.pipeline-steps li.is-active { border-bottom-color: var(--cds-interactive, #0f62fe); color: var(--cds-text-primary, #161616); }
.pipeline-steps li.is-active span, .pipeline-steps li.is-done span { background: var(--cds-interactive, #0f62fe); color: #fff; }
.pipeline-steps li.is-done { border-bottom-color: var(--cds-support-success, #198038); }
.pipeline-step { display: none; padding: 1.5rem; min-height: 23rem; }
.pipeline-step.is-active { display: block; }
.pipeline-step-copy { max-width: 50rem; margin-bottom: 1.25rem; }
.pipeline-step-copy h3 { margin: 0 0 0.35rem; }
.pipeline-step-copy p { color: var(--cds-text-secondary, #525252); margin: 0; line-height: 1.5; }
.pipeline-description-field {
  display: block;
  width: 100%;
  min-height: 10rem;
  height: 10rem;
  box-sizing: border-box;
  resize: vertical;
}
.pipeline-hint {
  margin-top: 1rem; padding: 0.75rem 1rem; border-left: 3px solid var(--cds-interactive, #0f62fe);
  background: #edf5ff; color: var(--cds-text-secondary, #525252); font-size: 0.8125rem; line-height: 1.45;
}
.pipeline-cdc-guide {
  margin-top: 1rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #fff);
}
.pipeline-cdc-guide > summary,
.pipeline-guide-sql > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  font-weight: 600;
}
.pipeline-cdc-guide > summary:hover,
.pipeline-guide-sql > summary:hover { background: var(--cds-layer-hover-01, #e8e8e8); }
.pipeline-guide-kicker {
  color: var(--cds-text-secondary, #525252);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#pipelineCdcGuide { padding: 0 1rem 1rem; }
.pipeline-guide-intro,
.pipeline-guide-table {
  margin: 0 0 0.875rem;
  color: var(--cds-text-secondary, #525252);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.pipeline-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.pipeline-guide-grid h4 { margin: 0 0 0.375rem; font-size: 0.8125rem; }
.pipeline-guide-grid ul {
  margin: 0;
  padding-left: 1.125rem;
  color: var(--cds-text-secondary, #525252);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.pipeline-guide-grid li + li { margin-top: 0.375rem; }
.pipeline-guide-sql { border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.pipeline-guide-sql > summary { padding: 0.75rem 0; font-size: 0.8125rem; }
.pipeline-guide-sql pre {
  margin: 0;
  padding: 0.875rem;
  overflow: auto;
  background: var(--cds-layer-02, #f4f4f4);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  color: var(--cds-text-primary, #161616);
  font: 0.75rem/1.55 'IBM Plex Mono', monospace;
  white-space: pre-wrap;
}
.pipeline-guide-sql .helper { margin: 0.5rem 0 0; }
.pipeline-check-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0; }
.pipeline-check { font-size: 0.8125rem; font-weight: 600; }
.pipeline-check.ok { color: var(--cds-support-success, #198038); }
.pipeline-check.fail { color: var(--cds-support-error, #da1e28); }
.pipeline-check.running { color: var(--cds-interactive, #0f62fe); }
.pipeline-check.pending { color: var(--cds-text-secondary, #525252); }
.pipeline-objects {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.5rem;
  max-height: 13rem; overflow: auto; margin: 0.75rem 0 1.25rem; padding: 0.75rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0); background: var(--cds-layer-02, #f4f4f4);
}
.pipeline-object { display: flex; align-items: center; gap: 0.5rem; min-width: 0; padding: 0.45rem; font-size: 0.8125rem; }
.pipeline-object span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipeline-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--cds-border-subtle-01, #e0e0e0); margin-bottom: 1rem; }
.pipeline-review div { padding: 0.75rem 1rem; border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.pipeline-review div:nth-child(odd) { border-right: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.pipeline-review span, .pipeline-review strong { display: block; }
.pipeline-review span { color: var(--cds-text-secondary, #525252); font-size: 0.75rem; margin-bottom: 0.25rem; }
.pipeline-review strong { font-size: 0.875rem; overflow-wrap: anywhere; }
.pipeline-validation { display: grid; gap: 0.5rem; }
.pipeline-validation-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.pipeline-validation-row p { margin: 0.2rem 0 0; color: var(--cds-text-secondary, #525252); font-size: 0.8125rem; }
.pipeline-wizard-foot { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.pipeline-wizard-foot .helper { flex: 1; }
.pipeline-list-head { display: flex; align-items: baseline; gap: 0.75rem; margin: 2rem 0 0.75rem; }
.pipeline-list-head h3 { margin: 0; }

@media (max-width: 780px) {
  .cdc-cluster-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdc-operation-row { grid-template-columns: 1fr 1fr; }
  .cdc-tune-grid { grid-template-columns: 1fr; }
  .cdc-backfill-tables { grid-template-columns: 1fr; }
  .pipeline-steps { grid-template-columns: 1fr; }
  .pipeline-steps li { padding: 0.55rem 0.75rem; border-bottom: 0; border-left: 3px solid transparent; }
  .pipeline-steps li.is-active { border-left-color: var(--cds-interactive, #0f62fe); }
  .pipeline-step { padding: 1rem; }
  .pipeline-review { grid-template-columns: 1fr; }
  .pipeline-review div:nth-child(odd) { border-right: 0; }
  .pipeline-wizard-foot { padding: 1rem; }
  .pipeline-guide-grid { grid-template-columns: 1fr; }
}

/* Platform Data Status — human-readable report */
.ds-report { display: grid; gap: 1.25rem; }
.ds-findings, .ds-sections { display: grid; gap: 0.75rem; }
.ds-section-title { margin: 0.25rem 0 0; font-size: 1rem; }
.ds-empty { margin: 0.5rem 0 0; }
.ds-finding { margin: 0; }
.ds-finding .panel-body { display: grid; gap: 1rem; }
.ds-lead { margin: 0 0 0.75rem; font-size: 0.9375rem; line-height: 1.45; }
.ds-subhead { margin: 1rem 0 0.5rem; font-size: 0.875rem; }
.ds-remediation h3 { margin: 0 0 0.5rem; font-size: 0.875rem; }
.ds-remediation ol { margin: 0; padding-left: 1.25rem; }
.ds-remediation li { margin: 0.35rem 0; line-height: 1.45; }
.ds-list { margin: 0; padding-left: 1.25rem; }
.ds-list li { margin: 0.25rem 0; }
.ds-kv { margin: 0; display: grid; gap: 0.35rem; }
.ds-kv-row {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--cds-border-subtle-01, #e0e0e0);
}
.ds-kv-row:last-child { border-bottom: 0; }
.ds-kv dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--cds-text-secondary, #525252);
}
.ds-kv dd { margin: 0; font-size: 0.875rem; }
.ds-table-wrap { margin: 0; }
.ds-row-bad { background: #fff1f1; }
.ds-num-bad { color: #a2191f; font-weight: 600; }
.ds-tech { margin-top: 0.75rem; }
.ds-tech summary {
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--cds-text-secondary, #525252);
  user-select: none;
}
.ds-tech-pre {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  max-height: 14rem;
  overflow: auto;
  white-space: pre-wrap;
  background: var(--cds-layer-02, #f4f4f4);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  font-size: 0.75rem;
}
.ds-section { margin: 0; }
.ds-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
}
.ds-section-summary::-webkit-details-marker { display: none; }
.ds-section-summary strong { font-size: 0.9375rem; }
.ds-section--problem { border-color: #ffd7d9; }
.ds-section .panel-body { border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0); }
.metric-card .metric-value .status-tag { font-size: 0.75rem; text-transform: uppercase; }

.ds-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.ds-model-card {
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-02, #f4f4f4);
  padding: 0.85rem 1rem;
}
.ds-model-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.ds-model-card h4 { margin: 0; font-size: 0.875rem; }
.ds-progress {
  margin: 0 0 0.85rem;
  display: grid;
  gap: 0.4rem;
}
.ds-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.ds-progress-head strong { font-size: 0.8125rem; }
.ds-progress-head span {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cds-text-secondary, #525252);
}
.ds-progress-meter {
  height: 0.5rem;
  background: #e0e0e0;
  overflow: hidden;
}
.ds-progress-fill {
  height: 100%;
  background: #0f62fe;
  transition: width 0.25s ease;
}
.ds-progress.is-ready .ds-progress-fill { background: #198038; }
.ds-progress.is-blocked .ds-progress-fill { background: #8a6900; }
.ds-progress-mini {
  display: block;
  margin-top: 0.45rem;
  height: 0.25rem;
  background: #e0e0e0;
  overflow: hidden;
}
.ds-progress-mini > span {
  display: block;
  height: 100%;
  background: #0f62fe;
}
.ds-check-ok .ds-progress-mini > span { background: #198038; }
.ds-check-wait .ds-progress-mini > span { background: #8a6900; }
.ds-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.ds-check-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  background: var(--cds-layer-01, #fff);
}
.ds-check-list li strong { display: block; font-size: 0.875rem; }
.ds-check-list .helper { margin: 0.2rem 0 0; }
.ds-check-wait { border-color: #d0e2ff; }
.ds-check-ok { border-color: #a7f0ba; }

@media (max-width: 40rem) {
  .ds-kv-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .ds-section-summary { align-items: flex-start; flex-direction: column; }
}


/* === GZR Cloud SaaS overlays (Command Center base above) === */
body.cloud-saas { min-height: 100vh; }
body.cloud-saas.auth-login #cloudAppShell { display: none !important; }
body.cloud-saas.auth-app #cloudLoginShell { display: none !important; }
body.cloud-saas.auth-app #cloudPublicHome { display: none !important; }
body.cloud-saas.auth-login #cloudPublicHome { display: none !important; }
body.cloud-saas.auth-public #cloudAppShell,
body.cloud-saas.auth-public #cloudLoginShell { display: none !important; }
/* CC shell defaults to display:none until .is-open — force visible when authenticated */
body.cloud-saas.auth-app #cloudAppShell.app-shell.is-open {
  display: block !important;
}
body.cloud-saas.auth-login #cloudLoginShell {
  display: block !important;
}
body.cloud-saas.auth-public #cloudPublicHome {
  display: block !important;
}

.cloud-saas .app-shell { --gzr-topbar-h: 4rem; }
.cloud-saas .workspace { grid-template-columns: 15rem minmax(0, 1fr); }
.cloud-saas .content { padding: 1.5rem 1.75rem 3rem; }
.cloud-saas .nav-item { text-align: left; width: 100%; }
.cloud-saas .error-banner:empty,
.cloud-saas .ok-banner:empty { display: none; }
.cloud-saas .error-banner {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  background: #fff1f1;
  border-left: 3px solid var(--cds-support-error, #da1e28);
  color: var(--cds-text-primary, #161616);
  font-size: 0.875rem;
}
.cloud-saas .ok-banner {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  background: #defbe6;
  border-left: 3px solid var(--cds-support-success, #24a148);
  color: var(--cds-text-primary, #161616);
  font-size: 0.875rem;
}
.cloud-saas .chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0 0; }
.cloud-saas .status-tag { text-transform: uppercase; letter-spacing: 0.04em; }
.cloud-saas .panel + .panel { margin-top: 1rem; }
.cloud-saas .form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.cloud-saas .cds--form-item { margin-bottom: 0; }
.cloud-saas pre.code-block {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  background: var(--cds-layer-02, #f4f4f4);
  border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  max-height: 22rem;
}
.cloud-saas .muted { color: var(--cds-text-secondary, #525252); font-size: 0.875rem; }
.cloud-saas .login-toggle {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--cds-text-secondary, #525252);
}
.cloud-saas .login-toggle a { color: var(--cds-link-primary, #0f62fe); }
