.qe-body {
  margin: 0;
  font-family: var(--qe-font-family-sans);
  font-size: var(--qe-text-body-sm-size);
  line-height: var(--qe-text-body-sm-line);
  color: var(--qe-color-text-primary);
  background: var(--qe-color-background-primary);
  -webkit-font-smoothing: antialiased;
}
.qe-num { font-variant-numeric: var(--qe-font-numeric); }
.qe-muted { color: var(--qe-color-text-secondary); }

.qe-header {
  height: var(--qe-size-header);
  background: var(--qe-color-background-inverse);
  color: var(--qe-color-text-inverse);
  display: flex;
  align-items: center;
  gap: var(--qe-space-xl);
  padding: 0 var(--qe-space-xl);
}
.qe-header--light {
  background: var(--qe-color-background-primary);
  color: var(--qe-color-text-primary);
  border-bottom: 1px solid var(--qe-color-border-default);
}
.qe-header__brand { display: flex; align-items: center; gap: var(--qe-space-sm); font-size: 20px; font-weight: var(--qe-font-weight-medium); }
.qe-header__nav { display: flex; gap: var(--qe-space-xl); margin-left: auto; margin-right: auto; }
.qe-header__nav a { color: inherit; opacity: 0.85; text-decoration: none; font-size: var(--qe-text-body-md-size); }
.qe-header__nav a[aria-current] { opacity: 1; box-shadow: inset 0 -2px 0 var(--qe-color-brand-quantearth); padding-bottom: 4px; }

.qe-sidebar {
  width: var(--qe-size-sidebar);
  background: var(--qe-color-background-subtle);
  border-right: 1px solid var(--qe-color-border-default);
  padding: var(--qe-space-md);
  display: flex;
  flex-direction: column;
  gap: var(--qe-space-lg);
}
.qe-sidebar__group { display: grid; gap: 2px; }
.qe-sidebar__label { font-size: var(--qe-text-overline-size); line-height: var(--qe-text-overline-line); letter-spacing: var(--qe-text-overline-tracking); text-transform: uppercase; color: var(--qe-color-text-tertiary); padding: 0 var(--qe-space-sm) var(--qe-space-xs); }
.qe-sidebar__item { height: var(--qe-size-nav-item); display: flex; align-items: center; gap: var(--qe-space-sm); padding: 0 var(--qe-space-sm); border-radius: var(--qe-radius-sm); color: var(--qe-color-text-primary); text-decoration: none; font-weight: var(--qe-font-weight-medium); }
.qe-sidebar__item:hover { background: var(--qe-color-background-hover); }
.qe-sidebar__item[aria-current] { background: var(--qe-color-background-selected); color: var(--qe-color-brand-resilience); }

.qe-crumbs { display: flex; align-items: center; gap: var(--qe-space-sm); font-size: var(--qe-text-body-sm-size); }
.qe-crumbs a { color: var(--qe-color-text-link); text-decoration: none; }
.qe-crumbs span[aria-hidden] { color: var(--qe-color-text-tertiary); }

.qe-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--qe-space-lg); padding-bottom: var(--qe-space-lg); border-bottom: 1px solid var(--qe-color-border-default); }
.qe-page-head__eyebrow { font-size: var(--qe-text-overline-size); line-height: var(--qe-text-overline-line); letter-spacing: var(--qe-text-overline-tracking); text-transform: uppercase; color: var(--qe-color-text-secondary); margin: 0 0 var(--qe-space-xs); }
.qe-page-head h1 { margin: 0; font-size: var(--qe-text-h3-size); line-height: var(--qe-text-h3-line); font-weight: var(--qe-text-h3-weight); }
.qe-page-head p { margin: var(--qe-space-xs) 0 0; color: var(--qe-color-text-secondary); font-size: var(--qe-text-body-md-size); line-height: var(--qe-text-body-md-line); }
.qe-page-head__actions { display: flex; gap: var(--qe-space-sm); }

.qe-tabs { display: flex; border-bottom: 1px solid var(--qe-color-border-default); }
.qe-tab { height: var(--qe-size-tab); padding: 0 var(--qe-space-lg); display: flex; align-items: center; color: var(--qe-color-text-secondary); text-decoration: none; position: relative; font-size: var(--qe-text-label-md-size); background: none; border: 0; cursor: pointer; font-family: inherit; }
.qe-tab:hover { color: var(--qe-color-brand-resilience); background: var(--qe-color-purple-tint-50); font-weight: var(--qe-font-weight-medium); }
.qe-tab[aria-selected="true"] { color: var(--qe-color-brand-resilience); font-weight: var(--qe-font-weight-semibold); }
.qe-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--qe-color-brand-resilience); }
.qe-tab:disabled { opacity: var(--qe-opacity-disabled); pointer-events: none; }

.qe-btn { height: var(--qe-size-control-md); padding: 0 var(--qe-space-lg); border-radius: var(--qe-radius-md); border: 0; cursor: pointer; font-family: inherit; font-size: var(--qe-text-label-md-size); font-weight: var(--qe-text-label-md-weight); display: inline-flex; align-items: center; gap: var(--qe-space-sm); white-space: nowrap; }
.qe-btn--sm { height: var(--qe-size-control-sm); padding: 0 12px; font-size: var(--qe-text-label-sm-size); }
.qe-btn--lg { height: var(--qe-size-control-lg); padding: 0 var(--qe-space-lg); font-size: var(--qe-text-label-lg-size); }
.qe-btn--primary { background: var(--qe-color-brand-quantearth); color: var(--qe-color-text-inverse); }
.qe-btn--primary:hover { background: var(--qe-color-orange-hover); }
.qe-btn--primary:active { background: var(--qe-color-orange-pressed); }
.qe-btn--secondary { background: var(--qe-color-background-primary); color: var(--qe-color-brand-resilience); box-shadow: inset 0 0 0 var(--qe-border-width-default) var(--qe-color-brand-resilience); }
.qe-btn--secondary:hover { background: var(--qe-color-purple-tint-50); }
.qe-btn--secondary:active { background: var(--qe-color-purple-tint-100); color: var(--qe-color-purple-pressed); box-shadow: inset 0 0 0 var(--qe-border-width-default) var(--qe-color-purple-pressed); }
.qe-btn--tertiary { background: none; color: var(--qe-color-brand-resilience); padding: 0; height: auto; }
.qe-btn--tertiary:hover { text-decoration: underline; }
.qe-btn--ghost { background: var(--qe-color-background-primary); color: var(--qe-color-text-primary); box-shadow: inset 0 0 0 1px var(--qe-color-border-default); }
.qe-btn--ghost:hover { background: var(--qe-color-background-hover); }
.qe-btn--danger { background: var(--qe-color-status-alert); color: var(--qe-color-text-inverse); }
.qe-btn:focus-visible { outline: var(--qe-border-width-focus) solid var(--qe-color-border-focus); outline-offset: 2px; }
.qe-btn:disabled { opacity: var(--qe-opacity-disabled); pointer-events: none; }

.qe-field { display: grid; gap: 6px; }
.qe-field__label { font-size: var(--qe-text-label-sm-size); line-height: var(--qe-text-label-sm-line); font-weight: var(--qe-text-label-sm-weight); }
.qe-field__help { font-size: var(--qe-text-caption-size); line-height: var(--qe-text-caption-line); color: var(--qe-color-text-secondary); }
.qe-field--error .qe-field__help { color: var(--qe-color-status-alert); }
.qe-input { height: var(--qe-size-input); padding: 0 14px; border-radius: var(--qe-radius-sm); border: var(--qe-border-width-default) solid var(--qe-color-border-default); background: var(--qe-color-background-primary); font: inherit; color: var(--qe-color-text-primary); width: 100%; box-sizing: border-box; }
.qe-input::placeholder { color: var(--qe-color-text-secondary); }
.qe-input:focus { outline: 0; border: var(--qe-border-width-focus) solid var(--qe-color-border-focus); }
.qe-field--error .qe-input { border-color: var(--qe-color-border-error); }
.qe-input:disabled, .qe-input:read-only { background: var(--qe-color-background-subtle); border-width: 1px; color: var(--qe-color-text-secondary); }
.qe-input:disabled { opacity: 0.5; }
.qe-input--sm { height: var(--qe-size-control-md); }
textarea.qe-input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
select.qe-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23727272' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.qe-check { display: inline-flex; align-items: center; gap: var(--qe-space-sm); cursor: pointer; }
.qe-check input { appearance: none; width: var(--qe-size-checkbox); height: var(--qe-size-checkbox); margin: 0; border-radius: var(--qe-radius-sm); border: var(--qe-border-width-default) solid var(--qe-color-neutral-grey-300); background: var(--qe-color-background-primary); display: grid; place-items: center; }
.qe-check input:checked, .qe-check input:indeterminate { background: var(--qe-color-brand-resilience); border-color: var(--qe-color-brand-resilience); }
.qe-check input:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--qe-color-text-inverse); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.qe-check input:indeterminate::after { content: ""; width: 10px; height: 2px; background: var(--qe-color-text-inverse); }
.qe-check input:focus-visible { outline: var(--qe-border-width-focus) solid var(--qe-color-border-focus); outline-offset: 2px; }
.qe-check input:disabled { background: var(--qe-color-neutral-grey-300); opacity: var(--qe-opacity-disabled); }
.qe-toggle { appearance: none; width: var(--qe-size-toggle-width); height: var(--qe-size-toggle-height); margin: 0; border-radius: var(--qe-radius-full); background: var(--qe-color-neutral-grey-300); position: relative; cursor: pointer; }
.qe-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: var(--qe-radius-full); background: var(--qe-color-background-primary); transition: left 120ms; }
.qe-toggle:checked { background: var(--qe-color-brand-resilience); }
.qe-toggle:checked::after { left: 22px; }
.qe-toggle:disabled { opacity: var(--qe-opacity-disabled); }

.qe-seg { display: inline-flex; background: var(--qe-color-background-subtle); border-radius: var(--qe-radius-md); padding: 2px; gap: 2px; }
.qe-seg button { height: var(--qe-size-control-sm); padding: 0 var(--qe-space-md); border: 0; background: none; border-radius: var(--qe-radius-sm); font: inherit; font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-medium); color: var(--qe-color-text-secondary); cursor: pointer; }
.qe-seg button[aria-pressed="true"] { background: var(--qe-color-background-primary); color: var(--qe-color-text-primary); box-shadow: var(--qe-shadow-card); }

.qe-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--qe-space-sm); }
.qe-filterbar .qe-input { width: auto; min-width: 180px; height: var(--qe-size-control-md); }
.qe-filterbar__spacer { flex: 1; }
.qe-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 12px; border-radius: var(--qe-radius-full); border: 1px solid var(--qe-color-border-default); background: var(--qe-color-background-primary); font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-medium); color: var(--qe-color-text-primary); cursor: pointer; font-family: inherit; }
.qe-chip:hover { background: var(--qe-color-background-hover); }
.qe-chip[aria-pressed="true"] { background: var(--qe-color-purple-tint-50); border-color: var(--qe-color-brand-resilience); color: var(--qe-color-brand-resilience); }
.qe-chip__x { opacity: 0.6; font-size: 14px; line-height: 1; }

.qe-badge { display: inline-flex; align-items: center; height: var(--qe-size-badge); padding: 0 10px; border-radius: var(--qe-radius-full); font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-medium); line-height: 1; color: var(--qe-color-text-inverse); background: var(--qe-color-neutral-grey-500); white-space: nowrap; }
.qe-badge--quantearth { background: var(--qe-color-brand-quantearth); }
.qe-badge--resilience { background: var(--qe-color-brand-resilience); }
.qe-badge--agentic { background: var(--qe-color-brand-agentic); }
.qe-badge--supplier-intelligence { background: var(--qe-color-brand-supplier-intelligence); }
.qe-badge--hotspotting { background: var(--qe-color-brand-hotspotting); }
.qe-badge--compliance { background: var(--qe-color-brand-compliance); }
.qe-badge--connect { background: var(--qe-color-brand-connect); color: var(--qe-color-text-primary); }
.qe-badge--enterprise { background: var(--qe-color-neutral-black); }
.qe-tag { display: inline-flex; align-items: center; height: var(--qe-size-badge); padding: 0 10px; border-radius: var(--qe-radius-full); font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-medium); line-height: 1; white-space: nowrap; background: var(--qe-color-status-neutral-tint); color: var(--qe-color-text-secondary); }
.qe-tag--beta { background: var(--qe-color-purple-tint-50); color: var(--qe-color-brand-resilience); }
.qe-tag--live { background: var(--qe-color-teal-tint-50); color: var(--qe-color-brand-agentic); }
.qe-tag--new { background: var(--qe-color-brand-tint-quantearth); color: var(--qe-color-brand-quantearth); }
.qe-tag--square { border-radius: var(--qe-radius-sm); text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--qe-text-overline-size); }
.qe-status { display: inline-flex; align-items: center; gap: 6px; height: var(--qe-size-badge); padding: 0 10px; border-radius: var(--qe-radius-sm); border: 1px solid var(--qe-color-border-default); font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-medium); white-space: nowrap; --tone: var(--qe-color-status-neutral); }
.qe-status::before { content: ""; width: var(--qe-size-status-dot); height: var(--qe-size-status-dot); border-radius: var(--qe-radius-full); background: var(--tone); }
.qe-status--active { --tone: var(--qe-color-status-success); }
.qe-status--warning { --tone: var(--qe-color-status-warning); }
.qe-status--critical { --tone: var(--qe-color-status-alert); }
.qe-status--processing { --tone: var(--qe-color-brand-resilience); }
.qe-status--pulse::before { box-shadow: 0 0 0 0 var(--tone); animation: qe-pulse 1.6s infinite; }
@keyframes qe-pulse { 70% { box-shadow: 0 0 0 6px transparent; } }

.qe-sev { display: inline-flex; align-items: center; gap: 6px; height: var(--qe-size-badge); padding: 0 10px; border-radius: var(--qe-radius-sm); font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-medium); white-space: nowrap; background: var(--tint); color: var(--tone); }
.qe-sev::before { content: ""; width: var(--qe-size-status-dot); height: var(--qe-size-status-dot); border-radius: var(--qe-radius-full); background: var(--tone); }
.qe-sev--1, .qe-sev[data-level="1"] { --tone: var(--qe-color-severity-1); --tint: var(--qe-color-severity-1-tint); }
.qe-sev--2, .qe-sev[data-level="2"] { --tone: var(--qe-color-severity-2); --tint: var(--qe-color-severity-2-tint); }
.qe-sev--3, .qe-sev[data-level="3"] { --tone: var(--qe-color-severity-3); --tint: var(--qe-color-severity-3-tint); }
.qe-sev--4, .qe-sev[data-level="4"] { --tone: var(--qe-color-severity-4); --tint: var(--qe-color-severity-4-tint); }
.qe-sev--5, .qe-sev[data-level="5"] { --tone: var(--qe-color-severity-5); --tint: var(--qe-color-severity-5-tint); }
.qe-sev-scale { display: inline-flex; gap: 3px; }
.qe-sev-scale i { width: 8px; height: 8px; border-radius: 2px; background: var(--qe-color-neutral-light-grey); }
.qe-sev-scale[data-level="1"] i:nth-child(-n+5) { background: var(--qe-color-severity-1); }
.qe-sev-scale[data-level="2"] i:nth-child(-n+4) { background: var(--qe-color-severity-2); }
.qe-sev-scale[data-level="3"] i:nth-child(-n+3) { background: var(--qe-color-severity-3); }
.qe-sev-scale[data-level="4"] i:nth-child(-n+2) { background: var(--qe-color-severity-4); }
.qe-sev-scale[data-level="5"] i:nth-child(-n+1) { background: var(--qe-color-severity-5); }
.qe-sev-mix { display: flex; height: 12px; border-radius: var(--qe-radius-full); overflow: hidden; background: var(--qe-color-neutral-light-grey); }
.qe-sev-mix i { display: block; height: 100%; }
.qe-sev-mix i:nth-child(1) { background: var(--qe-color-severity-1); }
.qe-sev-mix i:nth-child(2) { background: var(--qe-color-severity-2); }
.qe-sev-mix i:nth-child(3) { background: var(--qe-color-severity-3); }
.qe-sev-mix i:nth-child(4) { background: var(--qe-color-severity-4); }
.qe-sev-mix i:nth-child(5) { background: var(--qe-color-severity-5); }
.qe-sev-count { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--qe-radius-full); color: var(--qe-color-text-inverse); font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-semibold); background: var(--qe-color-severity-5); }
.qe-sev-count[data-level="1"] { background: var(--qe-color-severity-1); }
.qe-sev-count[data-level="2"] { background: var(--qe-color-severity-2); }
.qe-sev-count[data-level="3"] { background: var(--qe-color-severity-3); }
.qe-sev-count[data-level="4"] { background: var(--qe-color-severity-4); }

.qe-progress { height: var(--qe-size-progress); border-radius: var(--qe-radius-full); background: var(--qe-color-neutral-light-grey); overflow: hidden; }
.qe-progress i { display: block; height: 100%; background: var(--qe-color-brand-resilience); border-radius: inherit; }
.qe-progress--teal i { background: var(--qe-color-brand-agentic); }
.qe-progress--orange i { background: var(--qe-color-brand-quantearth); }
.qe-progress__row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-medium); }
.qe-progress__row span:last-child { color: var(--qe-color-text-secondary); font-weight: var(--qe-font-weight-regular); }

.qe-banner { display: flex; align-items: center; gap: var(--qe-space-sm); padding: 10px var(--qe-space-md); border-radius: var(--qe-radius-md); border: 1px solid var(--tone); background: var(--tint); color: var(--tone); font-size: var(--qe-text-body-sm-size); --tone: var(--qe-color-status-info); --tint: var(--qe-color-status-info-tint); }
.qe-banner--success { --tone: var(--qe-color-status-success); --tint: var(--qe-color-status-success-tint); }
.qe-banner--warning { --tone: var(--qe-color-status-warning); --tint: var(--qe-color-status-warning-tint); color: var(--qe-color-text-primary); }
.qe-banner--error { --tone: var(--qe-color-status-alert); --tint: var(--qe-color-status-alert-tint); }
.qe-banner svg { flex: none; width: var(--qe-size-icon-md); height: var(--qe-size-icon-md); }
.qe-toast { display: flex; align-items: center; justify-content: space-between; gap: var(--qe-space-sm); max-width: 680px; padding: 12px var(--qe-space-md); border-radius: var(--qe-radius-md); border: 1px solid var(--tone); background: var(--qe-color-background-primary); box-shadow: var(--qe-shadow-card); font-size: 13px; font-weight: var(--qe-font-weight-medium); --tone: var(--qe-color-status-success); --tint: var(--qe-color-status-success-tint); }
.qe-toast--warning { --tone: var(--qe-color-status-warning); --tint: var(--qe-color-status-warning-tint); }
.qe-toast--error { --tone: var(--qe-color-status-alert); --tint: var(--qe-color-status-alert-tint); }
.qe-toast__icon { width: 28px; height: 28px; border-radius: var(--qe-radius-full); background: var(--tint); color: var(--tone); display: grid; place-items: center; flex: none; }
.qe-toast__body { display: flex; align-items: center; gap: 12px; }
.qe-toast__close { margin-left: auto; opacity: 0.6; cursor: pointer; background: none; border: 0; font-size: 16px; line-height: 1; }

.qe-card { background: var(--qe-color-background-primary); border-radius: var(--qe-radius-md); padding: var(--qe-space-lg); box-shadow: var(--qe-shadow-card); border: 1px solid var(--qe-color-border-default); }
.qe-card--subtle { background: var(--qe-color-background-subtle); border: 0; }
.qe-card--agent { border-top: var(--qe-border-width-accent-bar) solid var(--accent); display: grid; gap: var(--qe-space-sm); }
.qe-card--agent h3 { margin: 0; font-size: var(--qe-text-h4-size); line-height: var(--qe-text-h4-line); font-weight: var(--qe-font-weight-regular); }
.qe-card--agent .qe-card__sub { color: var(--accent); font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-medium); }
.qe-card--agent p { margin: 0; color: var(--qe-color-text-secondary); }
.qe-card--agent a { color: var(--accent); font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-semibold); text-decoration: none; }
.qe-card--feature { display: grid; gap: var(--qe-space-sm); }
.qe-card--feature .qe-card__icon { width: 36px; height: 36px; border-radius: var(--qe-radius-full); background: var(--qe-color-purple-tint-50); color: var(--qe-color-brand-resilience); display: grid; place-items: center; }
.qe-card--feature h3 { margin: 0; font-size: var(--qe-text-label-lg-size); font-weight: var(--qe-font-weight-semibold); }
.qe-card--feature p { margin: 0; color: var(--qe-color-text-secondary); }
.qe-metric { display: grid; gap: var(--qe-space-xs); padding: var(--qe-space-lg); border-left: 1px solid var(--qe-color-border-default); }
.qe-metric:first-child { border-left: 0; }
.qe-metric__value { font-size: var(--qe-text-h2-size); line-height: var(--qe-text-h2-line); font-weight: var(--qe-font-weight-light); color: var(--accent, var(--qe-color-brand-resilience)); font-variant-numeric: var(--qe-font-numeric); }
.qe-metric__label { color: var(--qe-color-text-secondary); font-size: var(--qe-text-body-sm-size); }
.qe-stat { background: var(--qe-color-background-primary); border: 1px solid var(--qe-color-border-default); border-radius: var(--qe-radius-md); padding: var(--qe-space-md) var(--qe-space-lg); display: grid; gap: 2px; }
.qe-stat__label { font-size: var(--qe-text-caption-size); color: var(--qe-color-text-secondary); }
.qe-stat__value { font-size: 28px; line-height: 36px; font-weight: var(--qe-font-weight-semibold); font-variant-numeric: var(--qe-font-numeric); }
.qe-stat__trend { font-size: var(--qe-text-caption-size); color: var(--qe-color-text-secondary); display: flex; gap: 6px; align-items: center; }
.qe-stat__trend b { font-weight: var(--qe-font-weight-semibold); color: var(--qe-color-status-success); }
.qe-stat__trend b.down { color: var(--qe-color-status-alert); }

.qe-table { width: 100%; border-collapse: collapse; font-size: var(--qe-text-body-sm-size); background: var(--qe-color-background-primary); border: 1px solid var(--qe-color-border-default); border-radius: var(--qe-radius-md); overflow: hidden; }
.qe-table-wrap { border: 1px solid var(--qe-color-border-default); border-radius: var(--qe-radius-md); overflow: auto; }
.qe-table-wrap .qe-table { border: 0; }
.qe-table th { text-align: left; height: var(--qe-size-table-row); padding: 0 var(--qe-space-md); background: var(--qe-color-background-subtle); color: var(--qe-color-text-secondary); font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-medium); border-bottom: 1px solid var(--qe-color-border-default); position: sticky; top: 0; white-space: nowrap; }
.qe-table td { height: var(--qe-size-table-row); padding: 0 var(--qe-space-md); border-bottom: 1px solid var(--qe-color-border-default); vertical-align: middle; }
.qe-table tbody tr:nth-child(even) td { background: var(--qe-color-background-subtle); }
.qe-table tbody tr:hover td { background: var(--qe-color-purple-tint-50); }
.qe-table tbody tr[aria-selected="true"] td { background: var(--qe-color-background-selected); box-shadow: inset 2px 0 0 var(--qe-color-brand-resilience); }
.qe-table tbody tr:last-child td { border-bottom: 0; }
.qe-table td.qe-num, .qe-table th.qe-num { text-align: right; }
.qe-table .qe-table__primary { font-weight: var(--qe-font-weight-medium); }
.qe-table .qe-table__sub { display: block; color: var(--qe-color-text-secondary); font-size: var(--qe-text-caption-size); }
.qe-table--dense th, .qe-table--dense td { height: 36px; padding: 0 12px; font-size: 13px; }
.qe-score { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--qe-font-weight-semibold); font-variant-numeric: var(--qe-font-numeric); color: var(--tone); }
.qe-score::after { content: ""; width: var(--qe-size-status-dot); height: var(--qe-size-status-dot); border-radius: var(--qe-radius-full); background: var(--tone); }
.qe-link { color: var(--qe-color-text-link); text-decoration: none; font-weight: var(--qe-font-weight-medium); }
.qe-link:hover { text-decoration: underline; }
.qe-pager { display: flex; align-items: center; gap: var(--qe-space-sm); }
.qe-pager__pages { display: flex; gap: 6px; }
.qe-pager button { width: var(--qe-size-pager-item); height: var(--qe-size-pager-item); border-radius: var(--qe-radius-sm); border: 1px solid var(--qe-color-border-default); background: var(--qe-color-background-primary); font: inherit; font-size: var(--qe-text-label-sm-size); cursor: pointer; display: grid; place-items: center; }
.qe-pager button:hover { background: var(--qe-color-background-hover); }
.qe-pager button[aria-current] { background: var(--qe-color-brand-resilience); border-color: var(--qe-color-brand-resilience); color: var(--qe-color-text-inverse); font-weight: var(--qe-font-weight-semibold); }
.qe-pager__info { margin-left: var(--qe-space-md); color: var(--qe-color-text-secondary); font-size: var(--qe-text-body-sm-size); }
.qe-pager select.qe-input { width: auto; height: var(--qe-size-pager-item); padding: 0 32px 0 10px; font-size: var(--qe-text-label-sm-size); }

.qe-split { display: grid; grid-template-columns: minmax(280px, 2fr) 3fr; border: 1px solid var(--qe-color-border-default); border-radius: var(--qe-radius-md); overflow: hidden; background: var(--qe-color-background-primary); }
.qe-list { margin: 0; padding: 0; list-style: none; border-right: 1px solid var(--qe-color-border-default); }
.qe-list__item { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--qe-space-md); align-items: center; min-height: var(--qe-size-list-row); padding: 10px var(--qe-space-md); border-bottom: 1px solid var(--qe-color-border-default); cursor: pointer; }
.qe-list__item:hover { background: var(--qe-color-background-hover); }
.qe-list__item[aria-selected="true"] { background: var(--qe-color-background-selected); box-shadow: inset 2px 0 0 var(--qe-color-brand-resilience); }
.qe-list__title { font-weight: var(--qe-font-weight-medium); }
.qe-list__meta { grid-column: 1; color: var(--qe-color-text-secondary); font-size: var(--qe-text-caption-size); }
.qe-list__aside { grid-column: 2; grid-row: 1 / span 2; }
.qe-detail { padding: var(--qe-space-lg); display: grid; gap: var(--qe-space-md); align-content: start; }
.qe-kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px var(--qe-space-md); font-size: var(--qe-text-body-sm-size); }
.qe-kv dt { color: var(--qe-color-text-secondary); margin: 0; }
.qe-kv dd { margin: 0; }

.qe-accordion { border-top: 1px solid var(--qe-color-border-default); }
.qe-accordion details { border-bottom: 1px solid var(--qe-color-border-default); }
.qe-accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: var(--qe-space-md) 0; font-size: var(--qe-text-label-lg-size); font-weight: var(--qe-font-weight-medium); }
.qe-accordion summary::-webkit-details-marker { display: none; }
.qe-accordion summary::after { content: "+"; color: var(--qe-color-text-tertiary); font-size: 20px; font-weight: var(--qe-font-weight-light); }
.qe-accordion details[open] summary::after { content: "−"; }
.qe-accordion details[open] summary { color: var(--qe-color-brand-resilience); }
.qe-accordion p { margin: 0 0 var(--qe-space-md); color: var(--qe-color-text-secondary); max-width: 64ch; }

.qe-avatar { display: inline-grid; place-items: center; width: var(--qe-size-avatar-md); height: var(--qe-size-avatar-md); border-radius: var(--qe-radius-full); background: var(--qe-color-purple-tint-100); color: var(--qe-color-purple-pressed); font-size: var(--qe-text-label-sm-size); font-weight: var(--qe-font-weight-semibold); overflow: hidden; }
.qe-avatar--sm { width: var(--qe-size-avatar-sm); height: var(--qe-size-avatar-sm); font-size: 10px; }
.qe-avatar--lg { width: var(--qe-size-avatar-lg); height: var(--qe-size-avatar-lg); font-size: var(--qe-text-label-md-size); }
.qe-avatar-group { display: inline-flex; }
.qe-avatar-group .qe-avatar { box-shadow: 0 0 0 2px var(--qe-color-background-primary); margin-left: -8px; }
.qe-avatar-group .qe-avatar:first-child { margin-left: 0; }
.qe-user { display: flex; align-items: center; gap: 10px; }
.qe-user__name { font-weight: var(--qe-font-weight-medium); }
.qe-user__meta { display: block; color: var(--qe-color-text-secondary); font-size: var(--qe-text-caption-size); }

.qe-empty { border: 1px dashed var(--qe-color-border-default); border-radius: var(--qe-radius-md); padding: var(--qe-space-2xl) var(--qe-space-lg); text-align: center; display: grid; gap: var(--qe-space-sm); justify-items: center; }
.qe-empty h3 { margin: 0; font-size: var(--qe-text-h5-size); font-weight: var(--qe-font-weight-semibold); }
.qe-empty p { margin: 0; color: var(--qe-color-text-secondary); max-width: 40ch; }
.qe-empty__icon { width: 40px; height: 40px; border-radius: var(--qe-radius-full); background: var(--qe-color-background-subtle); color: var(--qe-color-text-tertiary); display: grid; place-items: center; }
.qe-skeleton { display: block; border-radius: var(--qe-radius-sm); background: linear-gradient(90deg, var(--qe-color-background-subtle) 25%, var(--qe-color-neutral-light-grey) 50%, var(--qe-color-background-subtle) 75%); background-size: 200% 100%; animation: qe-shimmer 1.4s infinite; height: 14px; }
@keyframes qe-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.qe-spinner { width: 20px; height: 20px; border-radius: var(--qe-radius-full); border: 2px solid var(--qe-color-neutral-light-grey); border-top-color: var(--qe-color-brand-resilience); animation: qe-spin 0.8s linear infinite; }
@keyframes qe-spin { to { transform: rotate(360deg); } }
.qe-error { border: 1px solid var(--qe-color-status-alert); background: var(--qe-color-status-alert-tint); border-radius: var(--qe-radius-md); padding: var(--qe-space-md); display: grid; gap: var(--qe-space-xs); }
.qe-error h3 { margin: 0; font-size: var(--qe-text-label-md-size); font-weight: var(--qe-font-weight-semibold); color: var(--qe-color-status-alert); }
.qe-error p { margin: 0; color: var(--qe-color-text-primary); }
.qe-error code { font-family: inherit; color: var(--qe-color-text-secondary); font-size: var(--qe-text-caption-size); }

.qe-tooltip { display: inline-block; background: var(--qe-color-background-inverse); color: var(--qe-color-text-inverse); font-size: var(--qe-text-caption-size); line-height: var(--qe-text-caption-line); padding: var(--qe-space-xs) var(--qe-space-sm); border-radius: var(--qe-radius-sm); position: relative; }
.qe-tooltip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--qe-color-background-inverse); }
.qe-scrim { background: var(--qe-color-scrim); display: grid; place-items: center; padding: var(--qe-space-xl); border-radius: var(--qe-radius-lg); }
.qe-modal { width: 440px; max-width: 100%; background: var(--qe-color-background-primary); border-radius: var(--qe-radius-lg); padding: var(--qe-space-lg); box-shadow: var(--qe-shadow-modal); display: grid; gap: 20px; }
.qe-modal__head { display: flex; justify-content: space-between; align-items: center; font-size: var(--qe-text-h5-size); font-weight: var(--qe-font-weight-semibold); }
.qe-modal__body { color: var(--qe-color-text-secondary); margin: 0; }
.qe-modal__note { background: var(--qe-color-status-warning-tint); border-radius: 6px; padding: 10px; font-size: var(--qe-text-overline-size); display: flex; gap: var(--qe-space-sm); align-items: center; }
.qe-modal__actions { display: flex; justify-content: flex-end; gap: 12px; }

.qe-dark { background: var(--qe-color-dark-surface); color: var(--qe-color-dark-text); border-radius: var(--qe-radius-lg); padding: var(--qe-space-lg); }
.qe-dark .qe-muted { color: var(--qe-color-dark-text-secondary); }
.qe-dark__panel { background: var(--qe-color-dark-panel); border-radius: var(--qe-radius-md); padding: var(--qe-space-lg); }
.qe-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--qe-space-md); }
.qe-step { background: var(--qe-color-dark-panel); border-radius: var(--qe-radius-md); padding: var(--qe-space-lg); display: grid; gap: var(--qe-space-sm); }
.qe-step__n { font-size: var(--qe-text-h3-size); line-height: 1; font-weight: var(--qe-font-weight-light); color: var(--qe-color-dark-accent); }
.qe-step h3 { margin: 0; font-size: var(--qe-text-h5-size); font-weight: var(--qe-font-weight-regular); }
.qe-step p { margin: 0; color: var(--qe-color-dark-text-secondary); font-size: var(--qe-text-body-sm-size); }

.qe-chart { display: grid; gap: var(--qe-space-sm); }
.qe-chart__title { font-size: var(--qe-text-label-md-size); font-weight: var(--qe-font-weight-medium); margin: 0; }
.qe-chart__sub { font-size: var(--qe-text-caption-size); color: var(--qe-color-text-secondary); margin: 0; }
.qe-chart svg { width: 100%; height: auto; display: block; font-family: inherit; }
.qe-chart text { font-size: 11px; fill: var(--qe-color-chart-axis-text); }
.qe-chart .qe-chart__grid { stroke: var(--qe-color-chart-grid); stroke-width: 1; }
.qe-chart .qe-chart__value { font-size: 11px; font-weight: 600; fill: var(--qe-color-text-primary); }
.qe-chart .qe-chart__label-end { font-weight: 500; fill: var(--qe-color-text-primary); }
.qe-legend { display: flex; flex-wrap: wrap; gap: var(--qe-space-md); font-size: var(--qe-text-caption-size); color: var(--qe-color-text-secondary); }
.qe-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--swatch); }
.qe-dark .qe-chart text { fill: var(--qe-color-dark-text-secondary); }
.qe-dark .qe-chart .qe-chart__grid { stroke: var(--qe-color-dark-grid); }
.qe-dark .qe-chart .qe-chart__value, .qe-dark .qe-chart .qe-chart__label-end { fill: var(--qe-color-dark-text); }
.qe-dark .qe-legend { color: var(--qe-color-dark-text-secondary); }
.qe-dark .qe-stat { background: var(--qe-color-dark-panel); border-color: var(--qe-color-dark-border); color: var(--qe-color-dark-text); }
.qe-dark .qe-stat__label { color: var(--qe-color-dark-text-secondary); }
.qe-ring { display: grid; justify-items: center; gap: var(--qe-space-xs); font-size: var(--qe-text-caption-size); color: var(--qe-color-text-secondary); }
.qe-ring svg { width: 96px; height: 96px; }
.qe-ring__track { fill: none; stroke: var(--qe-color-neutral-light-grey); stroke-width: var(--qe-chart-ring-stroke); }
.qe-ring__arc { fill: none; stroke: var(--accent, var(--qe-color-brand-resilience)); stroke-width: var(--qe-chart-ring-stroke); stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 50% 50%; }
.qe-ring__value { font-size: 18px; font-weight: 600; fill: var(--qe-color-text-primary); text-anchor: middle; dominant-baseline: central; }
.qe-dark .qe-ring__track { stroke: var(--qe-color-dark-border); }
.qe-dark .qe-ring__value { fill: var(--qe-color-dark-text); }
.qe-dark .qe-ring { color: var(--qe-color-dark-text-secondary); }
