/* Quantum-Era organism world: the organism panel, the decision lens and the chamber's in-world labels.
   Glass plates on deep plum (instrument §3.1/§3.2), Archivo for words, JetBrains Mono for every number (§3.3).
   Global tokens from the shell apply when present (--qe-*); every value has a fallback so the panels stand alone.
   Class names are this sheet's own (qe-op__*, qe-dl__*, qe-ch-*, qp-*) so the shell's qe.css never restyles them.
   Inside the shell's slots (.qe-slot) the panels fill their slot; standing alone they place themselves inside the
   insets --qe-hud-top and --qe-chrono-h (--qe-panel-gutter, --qe-panel-z). Targets ≥ 44 px, text ≥ 12 px, contrast
   ≥ 4.5:1. */

.qe-panel,
.qe-ch-label {
  --qp-void: var(--qe-void, #0e040c);
  --qp-bench: var(--qe-bench, #1b0718);
  --qp-chamber: var(--qe-chamber, #2a0e26);
  --qp-plum-mid: var(--qe-plum-mid, #4a2143);
  --qp-structure: var(--qe-structure, #35132f);
  --qp-line: var(--qe-line, #5b2b53);
  --qp-haze: var(--qe-haze, #6c3a8a);
  --qp-ivory: var(--qe-ivory, #f4f0e4);
  --qp-ivory-dim: var(--qe-ivory-dim, rgba(244, 240, 228, 0.66));
  --qp-ivory-faint: rgba(244, 240, 228, 0.1);
  --qp-lime: var(--qe-lime, #c8f542);
  --qp-gold: var(--qe-gold, #e2b45e);
  --qp-gold-deep: var(--qe-gold-deep, #b38b45);
  --qp-cyan: var(--qe-cyan, #39d3f2);
  --qp-rose: var(--qe-rose, #c9727e);
  --qp-beam: var(--qe-beam, #fff6d8);
  --qp-grey: #a59aa7;
  --qp-glass: rgba(27, 7, 24, 0.9);
  --qp-glass-raised: rgba(42, 14, 38, 0.92);
  --qp-ui: var(--qe-font-sans, 'Archivo', 'Helvetica Neue', Arial, sans-serif);
  --qp-data: var(--qe-font-mono, 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace);
  --qp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --qp-top: var(--qe-hud-top, 64px);
  --qp-bottom: var(--qe-chrono-h, 92px);
  --qp-gutter: var(--qe-panel-gutter, 24px);
}

/* ------------------------------------------------------------------------------------------ plates */
.qe-panel {
  position: fixed;
  z-index: var(--qe-panel-z, 30);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  color: var(--qp-ivory);
  font-family: var(--qp-ui);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.qe-panel[hidden] {
  display: none;
}
.qe-panel *,
.qe-panel *::before,
.qe-panel *::after {
  box-sizing: border-box;
}

.qe-op__inner,
.qe-dl__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  background: var(--qp-glass);
  border: 1px solid var(--qp-line);
  border-radius: 14px;
  box-shadow:
    0 28px 70px rgba(4, 0, 4, 0.55),
    inset 0 1px 0 rgba(244, 240, 228, 0.07);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  animation: qe-plate-in 260ms var(--qp-ease) both;
}
/* the instrument's 12 px corner marks */
.qe-op__inner::before,
.qe-dl__inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  pointer-events: none;
  background:
    linear-gradient(var(--qp-ivory-dim), var(--qp-ivory-dim)) left 10px top 0 / 12px 1px no-repeat,
    linear-gradient(var(--qp-ivory-dim), var(--qp-ivory-dim)) right 10px top 0 / 12px 1px no-repeat,
    linear-gradient(var(--qp-ivory-dim), var(--qp-ivory-dim)) left 10px bottom 0 / 12px 1px no-repeat,
    linear-gradient(var(--qp-ivory-dim), var(--qp-ivory-dim)) right 10px bottom 0 / 12px 1px no-repeat;
  opacity: 0.55;
}
@keyframes qe-plate-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
}
.qe-dl .qe-dl__inner {
  animation-name: qe-plate-in-left;
}
@keyframes qe-plate-in-left {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
}

/* ------------------------------------------------------------------------------------------ type */
.qp-label {
  margin: 0;
  font-family: var(--qp-ui);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qp-ivory-dim);
}
.qp-title {
  margin: 0;
  font-family: var(--qp-ui);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qp-ivory);
}
.qp-title:focus {
  outline: none;
}
.qp-note {
  margin: 0;
  font-size: 13px;
  color: var(--qp-ivory-dim);
}
.qp-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--qp-rose);
  border-radius: 10px;
  color: var(--qp-ivory);
  background: rgba(201, 114, 126, 0.12);
}
.qp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------------------------------ controls */
.qp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 1px solid var(--qp-line);
  border-radius: 10px;
  background: var(--qp-glass-raised);
  color: var(--qp-ivory);
  font-family: var(--qp-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.1;
  cursor: pointer;
  transition:
    border-color 160ms var(--qp-ease),
    background-color 160ms var(--qp-ease);
}
.qp-btn:hover {
  border-color: rgba(244, 240, 228, 0.45);
  background: rgba(74, 33, 67, 0.65);
}
.qp-btn--primary {
  border-color: rgba(200, 245, 66, 0.55);
  background: rgba(200, 245, 66, 0.1);
  color: var(--qp-lime);
}
.qp-btn--primary:hover {
  border-color: var(--qp-lime);
  background: rgba(200, 245, 66, 0.16);
}
.qp-btn:disabled {
  cursor: default;
  border-color: var(--qp-structure);
  background: transparent;
  color: var(--qp-ivory-dim);
}
.qp-btn--tiny {
  min-height: 30px;
  min-width: 0;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 8px;
}
/* small controls keep a 44 px hit area */
.qp-btn--tiny::after,
.qp-ref::after {
  content: '';
  position: absolute;
  inset: -7px -2px;
}
.qp-iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--qp-ivory-dim);
  font-family: var(--qp-ui);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.qp-iconbtn:hover {
  color: var(--qp-ivory);
  border-color: var(--qp-line);
}
.qe-panel :focus-visible {
  outline: 2px solid var(--qp-lime);
  outline-offset: 2px;
}

/* chips: a coloured mark beside an ivory word (colour is never alone) */
.qp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  border: 1px solid var(--qp-structure);
  border-radius: 999px;
  background: rgba(244, 240, 228, 0.04);
  color: var(--qp-ivory);
  font-family: var(--qp-ui);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  --qp-mark: var(--qp-ivory-dim);
}
.qp-chip::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--qp-mark);
}
.qp-chip--filled,
.qp-chip--closed {
  --qp-mark: var(--qp-lime);
}
.qp-chip--rejected {
  --qp-mark: var(--qp-rose);
}
.qp-chip--cancelled {
  --qp-mark: var(--qp-gold-deep);
}
.qp-chip--no-action {
  --qp-mark: var(--qp-grey);
}
.qp-chip--pending {
  --qp-mark: var(--qp-cyan);
}
.qp-chip--latent {
  border-style: dashed;
  color: var(--qp-ivory-dim);
  background: transparent;
}
.qp-chip--latent::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--qp-mark);
}

.qp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--qp-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--qp-void);
  background: var(--qp-ivory-dim);
}
.qp-pill--pass {
  background: var(--qp-lime);
}
.qp-pill--fail {
  background: var(--qp-rose);
}
.qp-pill--warn {
  background: var(--qp-gold);
}
.qp-pill--na {
  color: var(--qp-ivory);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--qp-line);
}

.qp-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--qp-activity, var(--qp-ivory-dim));
  box-shadow: 0 0 10px var(--qp-activity, transparent);
}
[data-activity='EVALUATING'] {
  --qp-activity: var(--qp-cyan);
}
[data-activity='WAITING'],
[data-activity='REDUCING'] {
  --qp-activity: var(--qp-gold);
}
[data-activity='PERMITTED'],
[data-activity='HOLDING'],
[data-activity='EXECUTING'] {
  --qp-activity: var(--qp-lime);
}
[data-activity='BLOCKED'] {
  --qp-activity: var(--qp-rose);
}
[data-activity='COMPLETED'] {
  --qp-activity: var(--qp-ivory);
}
[data-activity='OBSERVING'],
[data-activity='DATA_GAP'] {
  --qp-activity: #9b7b97;
}
.qp-dot--core {
  background: var(--qp-gold);
  box-shadow: 0 0 10px rgba(226, 180, 94, 0.5);
}

/* the eight-segment stage strip in rows */
.qp-strip {
  display: inline-grid;
  grid-template-columns: repeat(8, 9px);
  gap: 2px;
  align-items: center;
  --qp-lit: var(--qp-lime);
}
.qp-strip[data-outcome='rejected'] {
  --qp-lit: var(--qp-rose);
}
.qp-strip[data-outcome='cancelled'] {
  --qp-lit: var(--qp-gold-deep);
}
.qp-strip[data-outcome='no-action'] {
  --qp-lit: var(--qp-grey);
}
.qp-strip[data-outcome='pending'] {
  --qp-lit: var(--qp-cyan);
}
.qp-strip__seg {
  height: 5px;
  border-radius: 1px;
  background: var(--qp-plum-mid);
}
.qp-strip__seg[data-status='recorded'] {
  background: var(--qp-lit);
}
.qp-strip__seg[data-status='ahead'] {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(244, 240, 228, 0.45);
}
.qp-strip__seg[data-status='na'] {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--qp-structure);
}

/* key–value pairs */
.qp-kv {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.qp-kv__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.qp-kv__k {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qp-ivory-dim);
}
.qp-kv__v {
  margin: 0;
  font-family: var(--qp-data);
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--qp-ivory);
  overflow-wrap: anywhere;
}
.qp-kv--panel {
  grid-template-columns: 1fr;
  gap: 0;
}
.qp-kv--panel .qp-kv__row {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(91, 43, 83, 0.45);
}
.qp-kv--panel .qp-kv__row:last-child {
  border-bottom: 0;
}
.qp-kv--panel .qp-kv__v {
  text-align: right;
}

/* thin meters (evidence, score) */
.qp-meter {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--qp-plum-mid);
  --qp-fill: var(--qp-ivory);
}
.qp-meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 0 3px 3px 0;
  background: var(--qp-fill);
}
.qp-meter__mark {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 14px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--qp-beam);
  box-shadow: 0 0 0 2px var(--qp-bench);
}
.qp-meter--pass {
  --qp-fill: var(--qp-lime);
}
.qp-meter--fail {
  --qp-fill: var(--qp-rose);
}
.qp-meter--warn {
  --qp-fill: var(--qp-gold);
}
.qp-meter--info {
  --qp-fill: var(--qp-cyan);
}

/* ------------------------------------------------------------------------------------------ organism panel */
.qe-op {
  top: calc(var(--qp-top) + 4px);
  right: var(--qp-gutter);
  bottom: calc(var(--qp-bottom) + 12px);
  width: min(384px, calc(100vw - 2 * var(--qp-gutter)));
  pointer-events: none;
}
.qe-op__inner {
  pointer-events: auto;
}
.qe-op__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 14px 14px 20px;
  border-bottom: 1px solid var(--qp-structure);
}
.qe-op__titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qe-op__title {
  font-size: 22px;
}
.qe-op__identity {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--qp-ivory);
}
.qe-op__status {
  margin: 0;
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-op__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 20px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--qp-line) transparent;
}
.qe-op__section {
  padding: 14px 0;
  border-bottom: 1px solid var(--qp-structure);
}
.qe-op__section:last-child {
  border-bottom: 0;
}
.qe-op__section-title {
  margin-bottom: 10px;
}
.qe-op__state {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--qp-structure);
}
.qe-op__activity {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.qe-op__activity .qp-dot {
  align-self: center;
}
.qe-op__activity-word {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.qe-op__activity-detail {
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-op__cycle-now,
.qe-op__permit {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13px;
}
.qe-op__k {
  min-width: 92px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qp-ivory-dim);
}
.qe-op__v {
  color: var(--qp-ivory);
}
.qe-op__flat {
  margin: 0;
  color: var(--qp-ivory-dim);
}
.qe-op__attr {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.qe-op__attr-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.qe-op__attr-k {
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-op__attr-v {
  font-family: var(--qp-data);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qe-op__attr-cell--net .qe-op__attr-v {
  font-size: 14px;
  font-weight: 600;
}
.qe-op__stance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.qe-op__gauge {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 10px;
  border-left: 2px solid var(--qp-plum-mid);
}
.qe-op__gauge[data-state='meets'] {
  border-left-color: var(--qp-lime);
}
.qe-op__gauge[data-state='over'] {
  border-left-color: var(--qp-rose);
}
.qe-op__gauge[data-state='below'] {
  border-left-color: var(--qp-cyan);
}
.qe-op__gauge-k {
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-op__gauge-v {
  font-family: var(--qp-data);
  font-size: 15px;
  color: var(--qp-ivory);
}
.qe-op__gauge-d {
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-op__obs {
  margin: 12px 0 0;
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-op__rels {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qe-op__rel {
  display: grid;
  grid-template-columns: 9px auto 1fr;
  grid-template-areas:
    'dot name state'
    '. why why';
  align-items: center;
  gap: 2px 10px;
}
.qe-op__rel .qp-dot {
  grid-area: dot;
}
.qe-op__rel-name {
  grid-area: name;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.qe-op__rel-state {
  grid-area: state;
  font-size: 13px;
  color: var(--qp-ivory);
  text-align: right;
  font-family: var(--qp-data);
}
.qe-op__rel-why {
  grid-area: why;
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-op__memory-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.qe-op__counts {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--qp-ivory-dim);
}
.qe-op__count b {
  font-family: var(--qp-data);
  font-weight: 600;
  color: var(--qp-ivory);
}
.qe-op__key {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-op__key-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  --qp-mark: var(--qp-ivory-dim);
}
.qe-op__key-item::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--qp-mark);
}
.qe-op__key-item--filled {
  --qp-mark: var(--qp-lime);
}
.qe-op__key-item--rejected {
  --qp-mark: var(--qp-rose);
}
.qe-op__key-item--cancelled {
  --qp-mark: var(--qp-gold-deep);
}
.qe-op__key-item--no-action {
  --qp-mark: var(--qp-grey);
}
.qe-op__key-item--pending {
  --qp-mark: var(--qp-cyan);
}
.qe-op__key-item--ahead::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(244, 240, 228, 0.7);
}
.qe-op__key-item--band::before {
  width: 16px;
  height: 5px;
  border-radius: 3px;
  transform: none;
  background: linear-gradient(90deg, rgba(200, 245, 66, 0.25), rgba(200, 245, 66, 0.7), rgba(200, 245, 66, 0.25));
}
.qe-op__key-note {
  flex-basis: 100%;
}
.qe-op__ahead,
.qe-op__hint {
  margin: 0;
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-op__hint {
  margin-top: 8px;
}
.qe-op__cycles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qe-op__cycle {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  grid-template-areas:
    'time what chip'
    'time strip strip';
  align-items: center;
  gap: 4px 10px;
  min-height: 48px;
  padding: 7px 10px 7px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--qp-ivory);
  font-family: var(--qp-ui);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.qe-op__cycle:hover {
  background: rgba(244, 240, 228, 0.05);
  border-color: var(--qp-structure);
}
.qe-op__cycle[aria-current='true'] {
  background: rgba(255, 246, 216, 0.07);
  border-color: rgba(255, 246, 216, 0.35);
}
.qe-op__cycle[aria-current='true']::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 1px;
  background: var(--qp-beam);
}
.qe-op__cycle[data-born='false'] .qe-op__cycle-time,
.qe-op__cycle[data-born='false'] .qe-op__cycle-what {
  color: var(--qp-ivory-dim);
}
.qe-op__cycle-time {
  grid-area: time;
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory);
  font-variant-numeric: tabular-nums;
}
.qe-op__cycle-what {
  grid-area: what;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qe-op__cycle .qp-chip {
  grid-area: chip;
  justify-self: end;
}
.qe-op__cycle .qp-strip {
  grid-area: strip;
}
.qe-op__now {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qp-beam);
}
.qe-op__now::before,
.qe-op__now::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 216, 0.6), transparent);
}
.qe-op__none {
  font-size: 13px;
  color: var(--qp-ivory-dim);
}
.qe-op__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--qp-structure);
}

/* ------------------------------------------------------------------------------------------ decision lens */
.qe-dl {
  top: calc(var(--qp-top) + 4px);
  left: var(--qp-gutter);
  bottom: calc(var(--qp-bottom) + 12px);
  width: min(540px, max(380px, calc(100vw - 384px - 4 * var(--qp-gutter))));
  pointer-events: none;
  /* the stage strip follows the lens's own width (its slot in the shell, or its place here) */
  container: qe-dl / inline-size;
}
.qe-dl__inner {
  pointer-events: auto;
  height: 100%;
}
.qe-dl__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 14px 12px 22px;
}
.qe-dl__titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qe-dl__title {
  font-size: 22px;
}
.qe-dl__when {
  margin: 0;
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-dl__chips {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qe-dl__strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 22px 14px;
  border-bottom: 1px solid var(--qp-structure);
  --qp-lit: var(--qp-lime);
}
.qe-dl[data-outcome='rejected'] .qe-dl__strip {
  --qp-lit: var(--qp-rose);
}
.qe-dl[data-outcome='cancelled'] .qe-dl__strip {
  --qp-lit: var(--qp-gold-deep);
}
.qe-dl[data-outcome='no-action'] .qe-dl__strip {
  --qp-lit: var(--qp-grey);
}
.qe-dl[data-outcome='pending'] .qe-dl__strip {
  --qp-lit: var(--qp-cyan);
}
.qe-dl__tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    'n name'
    'fact fact';
  align-content: start;
  gap: 3px 6px;
  min-height: 60px;
  padding: 10px 9px 8px;
  border: 1px solid var(--qp-structure);
  border-radius: 9px;
  background: rgba(244, 240, 228, 0.02);
  color: var(--qp-ivory-dim);
  font-family: var(--qp-ui);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.qe-dl__tab::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: transparent;
}
.qe-dl__tab:hover {
  border-color: var(--qp-line);
  background: rgba(244, 240, 228, 0.05);
}
.qe-dl__tab[data-status='recorded'] {
  color: var(--qp-ivory);
  background: rgba(244, 240, 228, 0.045);
}
.qe-dl__tab[data-status='recorded']::before {
  background: var(--qp-lit);
  box-shadow: 0 0 14px var(--qp-lit);
}
.qe-dl__tab[data-status='ahead'] {
  border-style: dashed;
  border-color: rgba(244, 240, 228, 0.3);
}
.qe-dl__tab[data-status='na'] {
  background: repeating-linear-gradient(135deg, rgba(244, 240, 228, 0.035) 0 6px, transparent 6px 12px);
}
.qe-dl__tab[aria-selected='true'] {
  border-color: rgba(255, 246, 216, 0.75);
  background: rgba(255, 246, 216, 0.09);
  color: var(--qp-ivory);
}
.qe-dl__n {
  grid-area: n;
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-dl__name {
  grid-area: name;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qe-dl__fact {
  grid-area: fact;
  font-family: var(--qp-data);
  font-size: 12px;
  line-height: 1.3;
  color: inherit;
  overflow-wrap: anywhere;
}
.qe-dl__tab[data-status='recorded'] .qe-dl__fact {
  color: var(--qp-ivory);
}
.qe-dl__tab:not([data-status='recorded']) .qe-dl__fact {
  color: var(--qp-ivory-dim);
}
/* a lens narrower than 520 px (the rail on a narrow window, a phone's section): names in mixed case on up to two
   lines, facts in the sans face breaking only between words */
@container qe-dl (max-width: 400px) {
  /* the stage numbers give way so that a name has the tab's whole width (the order stays in the reading order and in
     each tab's accessible name) */
  .qe-dl .qe-dl__tab {
    grid-template-columns: 1fr;
    grid-template-areas:
      'name'
      'fact';
  }
  .qe-dl .qe-dl__n {
    display: none;
  }
  .qe-dl .qe-dl__name {
    letter-spacing: 0;
  }
  .qe-dl .qe-dl__actions {
    gap: 8px;
    padding: 10px 14px 12px;
  }
  .qe-dl .qe-dl__actions .qp-btn {
    padding: 0 10px;
    letter-spacing: 0.01em;
  }
}
@container qe-dl (max-width: 520px) {
  .qe-dl__strip {
    padding: 4px 16px 12px;
    gap: 5px;
  }
  .qe-dl__tab {
    min-height: 56px;
    padding: 8px 7px 7px;
  }
  .qe-dl__name {
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 13px;
    overflow: visible;
    white-space: normal;
  }
  .qe-dl__fact {
    font-family: var(--qp-ui);
    overflow-wrap: normal;
    word-break: keep-all;
  }
}
.qe-dl__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--qp-line) transparent;
}
.qe-dl__detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 22px 20px;
  transition: opacity 160ms var(--qp-ease);
}
.qe-dl__detail:focus-visible {
  outline-offset: -4px;
}
.qe-dl__detail--loading {
  opacity: 0.45;
}
.qe-dl__detail-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qe-dl__stage-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.qe-dl__meta {
  margin: 0;
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-dl__summary {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--qp-ivory);
}
.qe-dl__story {
  padding: 10px 14px;
  border-left: 2px solid var(--qp-line);
  background: rgba(244, 240, 228, 0.03);
  border-radius: 0 8px 8px 0;
}
.qe-dl__story p {
  margin: 0;
  font-family: var(--qp-data);
  font-size: 12px;
  line-height: 1.55;
  color: var(--qp-ivory);
}
.qe-dl__story p + p {
  margin-top: 6px;
}
.qe-dl__empty {
  margin: 0;
  font-size: 14px;
  color: var(--qp-ivory-dim);
}
.qe-dl__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qe-dl__block-title {
  color: var(--qp-ivory-dim);
}
.qe-dl__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 22px 16px;
  border-top: 1px solid var(--qp-structure);
}
.qe-dl__refcard {
  margin: 0 22px 18px;
  padding: 12px 14px;
  border: 1px solid var(--qp-line);
  border-radius: 10px;
  background: rgba(244, 240, 228, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.qe-dl__refcard[hidden] {
  display: none;
}
.qe-dl__refcard-title {
  margin: 0;
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-dl__refcard-summary {
  margin: 0;
  font-family: var(--qp-data);
  font-size: 13px;
}

/* gates */
.qp-gates {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qp-gate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    'pill label value'
    '. threshold reason'
    '. refs refs';
  align-items: baseline;
  gap: 3px 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(91, 43, 83, 0.5);
}
.qp-gate:last-child {
  border-bottom: 0;
}
.qp-gate .qp-pill {
  grid-area: pill;
}
.qp-gate__label {
  grid-area: label;
  font-size: 13px;
}
.qp-gate__value {
  grid-area: value;
  font-family: var(--qp-data);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.qp-gate__threshold {
  grid-area: threshold;
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qp-gate__reason {
  grid-area: reason;
  justify-self: end;
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qp-gate[data-status='FAIL'] .qp-gate__reason,
.qp-gate[data-status='MISSING'] .qp-gate__reason,
.qp-gate[data-status='STALE'] .qp-gate__reason {
  color: var(--qp-ivory);
  font-weight: 600;
}
.qp-gate[data-status='FAIL'] {
  background: linear-gradient(90deg, rgba(201, 114, 126, 0.1), transparent 70%);
}
.qp-gate__refs {
  grid-area: refs;
}

/* evidence */
.qp-score {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qp-score__line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.qp-score__value {
  font-family: var(--qp-data);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}
.qp-score__of {
  flex: 1;
  font-size: 13px;
  color: var(--qp-ivory-dim);
}
.qp-score__note {
  margin: 0;
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qp-components {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qp-component {
  display: grid;
  grid-template-columns: 104px minmax(60px, 1fr) 46px 44px auto;
  grid-template-areas:
    'name meter value weight pill'
    'detail detail detail detail detail';
  align-items: center;
  gap: 4px 10px;
}
.qp-component__name {
  grid-area: name;
  font-size: 13px;
}
.qp-component .qp-meter {
  grid-area: meter;
}
.qp-component__value {
  grid-area: value;
  font-family: var(--qp-data);
  font-size: 13px;
  text-align: right;
}
.qp-component__weight {
  grid-area: weight;
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qp-component .qp-pill {
  grid-area: pill;
}
.qp-component__detail {
  grid-area: detail;
  font-size: 12px;
  color: var(--qp-ivory-dim);
}

/* tables */
.qp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.qp-table th,
.qp-table td {
  padding: 6px 0;
  border-bottom: 1px solid rgba(91, 43, 83, 0.5);
  text-align: right;
  font-weight: 400;
}
.qp-table th[scope='row'],
.qp-table thead th:first-child {
  text-align: left;
}
.qp-table thead th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qp-ivory-dim);
}
.qp-table td {
  font-family: var(--qp-data);
  font-variant-numeric: tabular-nums;
}
.qp-reasons {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

/* references */
.qp-refrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.qp-refrow__k {
  flex: none;
  width: 56px;
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qp-refs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 6px;
}
.qp-ref {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--qp-line);
  border-radius: 7px;
  background: rgba(57, 211, 242, 0.06);
  color: var(--qp-ivory);
  font-family: var(--qp-data);
  font-size: 12px;
  cursor: pointer;
}
.qp-ref:hover {
  border-color: var(--qp-cyan);
}
.qp-ref--missing {
  border-style: dashed;
  background: transparent;
  color: var(--qp-ivory-dim);
}

/* disclosures: the kernel explanation, integrity */
.qp-disclosure {
  border-top: 1px solid var(--qp-structure);
  padding-top: 10px;
}
.qp-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qp-ivory-dim);
  cursor: pointer;
  list-style: none;
}
.qp-disclosure > summary::-webkit-details-marker {
  display: none;
}
.qp-disclosure > summary::before {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 160ms var(--qp-ease);
}
.qp-disclosure[open] > summary::before {
  transform: rotate(45deg);
}
.qp-disclosure > summary:hover {
  color: var(--qp-ivory);
}
.qp-explain {
  margin: 4px 0 0;
  padding-left: 22px;
  font-family: var(--qp-data);
  font-size: 12px;
  line-height: 1.55;
  color: var(--qp-ivory);
}
.qp-explain li + li {
  margin-top: 4px;
}
.qp-hash {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(91, 43, 83, 0.45);
}
.qp-hash__k {
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qp-hash__v {
  font-family: var(--qp-data);
  font-size: 12px;
}
.qp-integrity .qp-note {
  margin-top: 8px;
  font-family: var(--qp-data);
  font-size: 12px;
}

/* ------------------------------------------------------------------------------------------ in-world labels */
.qe-ch-label {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--qp-ui);
  font-size: 12px;
  line-height: 1.25;
  color: var(--qp-ivory);
  will-change: transform;
  transition: opacity 200ms linear;
}
.qe-ch-present {
  translate: 0 -50%;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 246, 216, 0.45);
  border-radius: 7px;
  background: rgba(27, 7, 24, 0.84);
}
.qe-ch-present__now {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--qp-beam);
}
.qe-ch-present__time {
  font-family: var(--qp-data);
  font-size: 13px;
}
.qe-ch-present__tick {
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-ch-dial {
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 3px 8px 4px;
  border-radius: 6px;
  background: rgba(14, 4, 12, 0.66);
}
.qe-ch-dial__name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qp-ivory-dim);
}
.qe-ch-dial__value {
  font-family: var(--qp-data);
  font-size: 13px;
  color: var(--qp-ivory);
}
.qe-ch-dial__detail {
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-ch-dial__detail:empty {
  display: none;
}
.qe-ch-dial--below {
  translate: -50% 0;
  align-items: center;
  padding: 2px 6px 3px;
  text-align: center;
}
.qe-ch-dial--below .qe-ch-dial__name {
  letter-spacing: 0.02em;
  text-transform: none;
}
.qe-ch-dial--below .qe-ch-dial__value {
  font-size: 12px;
}
.qe-ch-dial--below[data-state='neutral'] .qe-ch-dial__value,
.qe-ch-dial--below[data-state='none'] .qe-ch-dial__value {
  text-transform: lowercase;
}
/* the regime is a word, not a number: the sans face keeps the row of four readings apart on a phone */
.qe-ch-dial--below[data-gauge='regime'] .qe-ch-dial__value {
  font-family: var(--qp-ui);
  font-size: 13px;
}
.qe-ch-present__time:empty,
.qe-ch-present__tick:empty {
  display: none;
}
.qe-ch-day {
  translate: -100% -50%;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(14, 4, 12, 0.6);
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-ch-sat {
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(14, 4, 12, 0.72);
  text-align: center;
}
.qe-ch-sat[data-side='above'] {
  translate: -50% -100%;
}
.qe-ch-sat[data-side='right'] {
  translate: 0 -50%;
  align-items: flex-start;
  text-align: left;
}
.qe-ch-sat[data-side='left'] {
  translate: -100% -50%;
  align-items: flex-end;
  text-align: right;
}
.qe-ch-sat__name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.qe-ch-sat__detail {
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-ch-sat__detail:empty {
  display: none;
}
.qe-ch-node {
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  border: 1px solid var(--qp-line);
  border-radius: 8px;
  background: rgba(27, 7, 24, 0.9);
  box-shadow: 0 10px 30px rgba(4, 0, 4, 0.5);
}
.qe-ch-node--focus {
  border-color: rgba(255, 246, 216, 0.6);
}
.qe-ch-node__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.qe-ch-node__time {
  font-family: var(--qp-data);
  font-size: 12px;
  color: var(--qp-ivory-dim);
}
.qe-ch-node__outcome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  --qp-mark: var(--qp-ivory-dim);
}
.qe-ch-node__outcome::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--qp-mark);
}
.qp-outcome--filled,
.qp-outcome--closed {
  --qp-mark: var(--qp-lime);
}
.qp-outcome--rejected {
  --qp-mark: var(--qp-rose);
}
.qp-outcome--cancelled {
  --qp-mark: var(--qp-gold-deep);
}
.qp-outcome--no-action {
  --qp-mark: var(--qp-grey);
}
.qp-outcome--pending {
  --qp-mark: var(--qp-cyan);
}
.qe-ch-empty {
  translate: -50% -50%;
  padding: 6px 12px;
  border: 1px solid var(--qp-line);
  border-radius: 8px;
  background: rgba(27, 7, 24, 0.84);
  color: var(--qp-ivory-dim);
}

/* ------------------------------------------------------------------------------------------ phones */
/* portrait and landscape phones: the panels standing alone are bottom sheets; in the shell they are sections of a
   page that scrolls (the rules "in the shell's rail" below), so only their insides are made compact here */
@media (max-width: 820px), (orientation: landscape) and (max-height: 500px) {
  .qe-op {
    top: auto;
    left: 0;
    right: 0;
    bottom: var(--qp-bottom);
    width: auto;
    max-height: 41vh;
  }
  .qe-op__head {
    padding: 12px 10px 10px 16px;
  }
  .qe-op__title {
    font-size: 18px;
  }
  .qe-op__body {
    padding: 0 16px 6px;
  }
  .qe-op__actions {
    padding: 10px 16px 12px;
  }
  .qe-op__attr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qe-dl {
    top: var(--qp-top);
    left: 0;
    right: 0;
    bottom: var(--qp-bottom);
    width: auto;
    z-index: calc(var(--qe-panel-z, 30) + 1);
  }
  .qe-dl__head {
    padding: 14px 10px 10px 16px;
  }
  .qe-dl__strip {
    padding: 4px 16px 12px;
    gap: 5px;
  }
  .qe-dl__tab {
    min-height: 56px;
    padding: 8px 7px 7px;
  }
  .qe-dl__name {
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 13px;
    overflow: visible;
    white-space: normal;
  }
  .qe-dl__fact {
    font-family: var(--qp-ui);
    overflow-wrap: normal;
    word-break: keep-all;
  }
  .qe-dl__detail {
    padding: 16px;
  }
  .qe-dl__actions {
    padding: 10px 16px 12px;
  }
  .qe-dl__refcard {
    margin: 0 16px 16px;
  }
  .qp-component {
    grid-template-columns: 92px minmax(40px, 1fr) 42px auto;
    grid-template-areas:
      'name meter value pill'
      'detail detail detail detail';
  }
  .qp-component__weight {
    display: none;
  }
  .qp-hash {
    grid-template-columns: 1fr auto;
  }
  .qp-hash__k {
    grid-column: 1 / -1;
  }
  .qp-kv {
    gap: 8px 14px;
  }
}

/* ------------------------------------------------------------------------------------------ in the shell's rail */
/* In the shell each panel fills a slot that is a section of its rail (src/shell/layout.ts): there it takes the height
   of its content (the page scrolls; never the panel). In the wide rail its actions stay within reach at the foot of
   the screen while it is read; in the stacked page they come up under its head. */
.qe-slot > .qe-panel {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: none;
  z-index: auto;
}
.qe-slot > .qe-panel .qe-op__inner,
.qe-slot > .qe-panel .qe-dl__inner {
  height: auto;
  max-height: none;
  animation: none;
  /* nothing lies beneath a section: an even plate */
  background: rgb(24, 6, 21);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.qe-slot > .qe-panel .qe-op__body,
.qe-slot > .qe-panel .qe-dl__body {
  flex: none;
  overflow: visible;
}
.qe-slot > .qe-panel .qe-op__actions,
.qe-slot > .qe-panel .qe-dl__actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: rgb(24, 6, 21);
  border-radius: 0 0 14px 14px;
}
/* the stacked page: the actions come up under the head (the lens: under its stage strip) and stay in the flow, so a
   section whose head waits below the world shows its head, and nothing hangs over the Chronometer */
.qe-app[data-layout='stacked'] .qe-slot > .qe-panel .qe-op__head,
.qe-app[data-layout='stacked'] .qe-slot > .qe-panel .qe-dl__head {
  order: -3;
}
.qe-app[data-layout='stacked'] .qe-slot > .qe-panel .qe-dl__strip {
  order: -2;
}
.qe-app[data-layout='stacked'] .qe-slot > .qe-panel .qe-op__actions,
.qe-app[data-layout='stacked'] .qe-slot > .qe-panel .qe-dl__actions {
  order: -1;
  position: static;
  border-top: 0;
  border-bottom: 1px solid var(--qp-structure);
  border-radius: 0;
}

/* ------------------------------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  .qe-op__inner,
  .qe-dl__inner {
    animation: none;
  }
  .qe-panel *,
  .qe-ch-label {
    transition: none !important;
  }
}
.reduced-motion .qe-op__inner,
.reduced-motion .qe-dl__inner {
  animation: none;
}
.reduced-motion .qe-panel *,
.reduced-motion .qe-ch-label {
  transition: none !important;
}

@media (forced-colors: active) {
  .qe-op__inner,
  .qe-dl__inner {
    border: 1px solid CanvasText;
  }
  .qp-strip__seg[data-status='recorded'],
  .qp-meter__fill {
    background: Highlight;
  }
}
