.telemetry-escalation-workbench {
  --tew-ink: #e9f4f7;
  --tew-muted: #b7cbd2;
  --tew-line: rgba(143, 193, 210, 0.3);
  --tew-aqua: #65dec6;
  --tew-blue: #8dcaff;
  --tew-amber: #f3c084;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(14px, 2.2vw, 22px);
  border: 1px solid rgba(101, 222, 198, 0.38);
  border-radius: 13px;
  color: var(--tew-ink);
  background: radial-gradient(circle at 98% 0, rgba(101, 222, 198, 0.12), transparent 37%), #0d1b28;
}
.telemetry-escalation-workbench * { box-sizing: border-box; min-width: 0; }
.telemetry-escalation-workbench [hidden] { display: none !important; }
.telemetry-escalation-workbench :is(button, select):focus-visible { outline: 3px solid #e1fff8; outline-offset: 3px; }
.telemetry-escalation-workbench :is(p, li, dd) { overflow-wrap: anywhere; }
.telemetry-escalation-workbench button,
.telemetry-escalation-workbench select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--tew-line);
  border-radius: 8px;
  color: var(--tew-ink);
  background: #173241;
  font: inherit;
  font-size: 0.79rem;
  line-height: 1.35;
}
.telemetry-escalation-workbench button { font-weight: 730; text-align: left; cursor: pointer; }
.telemetry-escalation-workbench button:hover:not(:disabled) { border-color: var(--tew-aqua); background: #214653; }
.telemetry-escalation-workbench button:disabled { opacity: 0.55; cursor: not-allowed; }
.telemetry-escalation-workbench button[aria-pressed="true"] {
  border-color: var(--tew-aqua);
  color: #e6fff8;
  background: #1d5150;
  box-shadow: inset 0 0 0 1px rgba(101, 222, 198, 0.35);
}
.telemetry-escalation-workbench .tew-primary:not(:disabled) { border-color: var(--tew-aqua); color: #082727; background: var(--tew-aqua); }
.telemetry-escalation-workbench .tew-primary:hover:not(:disabled) { background: #8becd8; }
.tew-header { display: grid; gap: 7px; }
.tew-header h3 { margin: 0; font-size: clamp(1.12rem, 2vw, 1.45rem); line-height: 1.2; }
.tew-header p { max-width: 90ch; margin: 0; color: #cbdde3; font-size: 0.82rem; line-height: 1.55; }
.tew-eyebrow { color: var(--tew-aqua); font-size: 0.67rem; font-weight: 850; letter-spacing: 0.13em; }
.tew-panel {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(143, 193, 210, 0.22);
  border-radius: 10px;
  background: rgba(4, 15, 25, 0.54);
}
.tew-panel h4 { margin: 0; color: #f1fcfb; font-size: 0.94rem; }
.tew-note { margin: 0; color: var(--tew-muted); font-size: 0.76rem; line-height: 1.5; }
.tew-role-panel { border-color: rgba(141, 202, 255, 0.38); background: rgba(35, 78, 107, 0.2); }
.tew-button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tew-button-row > button { flex: 0 1 auto; }
.tew-source-list {
  display: grid;
  grid-template-columns: minmax(105px, 150px) minmax(0, 1fr);
  margin: 0;
  border: 1px solid rgba(141, 202, 255, 0.23);
  border-radius: 8px;
  overflow: hidden;
}
.tew-source-list dt,
.tew-source-list dd { margin: 0; padding: 8px 10px; border-bottom: 1px solid rgba(141, 202, 255, 0.14); font-size: 0.74rem; line-height: 1.4; }
.tew-source-list dt { color: #a9d5e9; background: rgba(141, 202, 255, 0.08); font-weight: 780; }
.tew-source-list dd { color: #e1eff2; }
.tew-source-list :is(dt, dd):nth-last-child(-n + 2) { border-bottom: 0; }
.tew-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.telemetry-escalation-workbench .tew-fact { display: grid; align-content: start; gap: 4px; min-height: 72px; }
.tew-fact-detail { display: block; color: #b5cdd3; font-size: 0.69rem; font-weight: 450; line-height: 1.4; }
.telemetry-escalation-workbench .tew-fact-unsupported { border-color: rgba(243, 192, 132, 0.42); }
.tew-fact-unsupported .tew-fact-detail { color: #f0c9a7; }
.tew-recipient,
.tew-state-line,
.tew-report-status,
.tew-change-card { margin: 0; font-size: 0.78rem; line-height: 1.48; }
.tew-recipient { color: #b9e1ee; font-weight: 700; }
.tew-state-line { padding: 9px 11px; border-left: 3px solid var(--tew-blue); color: #dcecf0; background: rgba(141, 202, 255, 0.08); }
.tew-message { display: grid; gap: 7px; padding: 11px 12px; border: 1px solid rgba(101, 222, 198, 0.29); border-radius: 8px; background: #102b35; }
.tew-message > strong { color: #aef2e3; font-size: 0.76rem; }
.tew-message-list { display: grid; gap: 5px; margin: 0; padding-left: 20px; color: #dae9ec; font-size: 0.75rem; line-height: 1.45; }
.tew-follow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.tew-bedside-panel { border-color: rgba(141, 202, 255, 0.35); }
.tew-report-choices { display: grid; grid-template-columns: 1fr; }
.tew-report-status { padding: 10px 11px; border: 1px solid rgba(141, 202, 255, 0.26); border-radius: 8px; color: #d6e9f1; background: rgba(141, 202, 255, 0.07); }
.tew-change-card { padding: 10px 11px; border-left: 3px solid var(--tew-amber); color: #f9e3c9; background: rgba(243, 192, 132, 0.08); }
.tew-backup-panel { border-color: rgba(243, 192, 132, 0.29); }
.tew-owner-field { display: grid; gap: 6px; max-width: 420px; }
.tew-owner-field strong { color: #c9e6ec; font-size: 0.76rem; }
.tew-owner-field select { width: 100%; }
.tew-map-panel { border-color: rgba(101, 222, 198, 0.35); }
.tew-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: tew-step; }
.tew-map-node { position: relative; display: grid; align-content: start; gap: 7px; min-height: 103px; padding: 11px 12px 11px 35px; border: 1px solid var(--tew-line); border-radius: 9px; background: #142632; counter-increment: tew-step; }
.tew-map-node::before { content: counter(tew-step); position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #0b2431; background: #b9d8e1; font-size: 0.66rem; font-weight: 850; }
.tew-map-node strong { color: #eaf7f7; font-size: 0.75rem; line-height: 1.35; }
.tew-map-node p { margin: 0; color: #c1d5d9; font-size: 0.71rem; line-height: 1.45; }
.tew-map-node[data-status="observed"],
.tew-map-node[data-status="confirmed"] { border-color: rgba(101, 222, 198, 0.65); background: rgba(31, 89, 80, 0.34); }
.tew-map-node[data-status="observed"]::before,
.tew-map-node[data-status="confirmed"]::before { background: var(--tew-aqua); }
.tew-map-node[data-status="sent"] { border-color: rgba(141, 202, 255, 0.58); background: rgba(37, 81, 111, 0.35); }
.tew-map-node[data-status="sent"]::before { background: var(--tew-blue); }
.tew-map-node[data-status="gap"] { border-color: rgba(243, 192, 132, 0.68); background: rgba(107, 67, 40, 0.3); }
.tew-map-node[data-status="gap"]::before { background: var(--tew-amber); }
.tew-text-trace { margin: 0; padding: 10px 12px; border-radius: 8px; color: #d5e4e9; background: rgba(141, 202, 255, 0.08); font-size: 0.73rem; line-height: 1.55; }
.tew-debrief-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tew-debrief-body { display: grid; gap: 10px; }
.tew-debrief-summary { margin: 0; color: #e5f0f1; font-size: 0.79rem; line-height: 1.45; }
.tew-debrief-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tew-debrief-list li { display: grid; gap: 4px; padding: 9px 11px; border-left: 3px solid var(--tew-amber); border-radius: 0 7px 7px 0; background: rgba(243, 192, 132, 0.08); }
.tew-debrief-list li strong { color: #ffe6c9; font-size: 0.76rem; line-height: 1.45; }
.tew-debrief-list li span { color: #d5e2e4; font-size: 0.73rem; line-height: 1.45; }
.tew-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tew-live { flex: 1 1 260px; margin: 0; color: #a9d8d7; font-size: 0.71rem; line-height: 1.4; }
.tew-safety { margin: 0; padding: 11px 12px; border-left: 3px solid var(--tew-amber); color: #d6e1e1; background: rgba(243, 192, 132, 0.07); font-size: 0.72rem; line-height: 1.48; }

@media (max-width: 720px) {
  .tew-follow-grid { grid-template-columns: 1fr; }
  .tew-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .telemetry-escalation-workbench { padding: 12px; gap: 12px; }
  .tew-panel { padding: 11px; }
  .tew-source-list { grid-template-columns: 1fr; }
  .tew-source-list dt { border-bottom: 0; padding-bottom: 2px; }
  .tew-source-list dd { padding-top: 2px; }
  .tew-fact-grid,
  .tew-map { grid-template-columns: 1fr; }
  .tew-map-node { min-height: 0; }
  .tew-button-row > button,
  .tew-panel > button,
  .tew-footer > button { width: 100%; flex-basis: 100%; }
  .tew-debrief-head > button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .telemetry-escalation-workbench * { scroll-behavior: auto; }
}
