/* Routerr — Dispatch Console (v0.4)
   Layout: Queue | Center (Gantt over Map) | Agent Panel
   Current vs Proposed state toggle with cyan review mode */

body { height: 100vh; overflow: hidden; }

/* ══════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════ */
.dispatch-console {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 340px;
  grid-template-rows: 48px minmax(0, 1fr) 48px;
  height: 100vh;
  gap: 1px;
  background: var(--border);
}

/* Gantt (top) + Map (bottom) with draggable divider */
.dc-center-stack {
  display: grid;
  grid-template-rows: var(--dc-timeline-fr, 55fr) 6px var(--dc-map-fr, 45fr);
  min-height: 0;
  min-width: 0;
  background: var(--border);
}

.dc-center-stack .dc-timeline {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.dc-center-stack #timeline-container {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.dc-stack-divider {
  grid-row: 2;
  cursor: row-resize;
  background: var(--border);
  position: relative;
  z-index: 12;
  touch-action: none;
}
.dc-stack-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--text-muted);
  opacity: 0.45;
  transition: opacity 0.15s var(--ease), background 0.15s var(--ease);
}
.dc-stack-divider:hover::after,
body.dc-stack-resizing .dc-stack-divider::after {
  opacity: 1;
  background: var(--accent);
}
body.dc-stack-resizing {
  cursor: row-resize !important;
  user-select: none;
}
body.dc-stack-resizing * {
  cursor: row-resize !important;
}

.dc-center-stack .dc-map {
  grid-row: 3;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dc-header {
  grid-column: 1 / -1;
  background: var(--surface);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}
.dc-header h1 { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.dc-header h1 span { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-dim); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.user-badge { background: var(--border); padding: 4px 12px; border-radius: 4px; color: var(--text); font-size: 13px; }
.demo-btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 4px 10px; color: var(--text-dim); font-size: 11px; cursor: pointer; font-family: inherit; font-weight: 600; }
.demo-btn:hover { border-color: var(--accent); color: var(--text); }

.dc-queue { background: var(--surface); overflow-y: auto; min-height: 0; padding: 14px 12px; }
.dc-timeline { background: var(--surface); min-height: 0; position: relative; }
.dc-map { background: var(--bg); position: relative; min-height: 0; }
.dc-agent {
  background: var(--surface);
  overflow-y: auto;
  min-height: 0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}

.dispatch-console.agent-closed {
  grid-template-columns: 240px minmax(0, 1fr);
}
.dispatch-console.agent-closed .dc-agent {
  display: none;
}

.dc-agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.dc-agent-title { margin-bottom: 0 !important; flex: 1; min-width: 0; }
.dc-agent-close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dc-agent-close:hover {
  border-color: var(--accent);
  color: var(--text);
}

.dc-agent-reopen {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 180;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 12px 8px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.25);
  align-items: center;
  gap: 6px;
}
.dc-agent-reopen:hover {
  color: var(--text);
  border-color: var(--accent);
}
.dc-agent-reopen:not([hidden]) {
  display: inline-flex;
}
.dc-agent-reopen-label { letter-spacing: 0.06em; }
.dc-agent-reopen-chevron {
  writing-mode: horizontal-tb;
  font-size: 16px;
  line-height: 1;
}

.dc-agent #agent-empty,
.dc-agent #agent-content {
  flex: 1;
  min-height: 0;
}

/* Panel header bar for Gantt — normal flow, appears above the hint strip */
.dc-panel-header {
  padding: 7px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Map panel title — absolute overlay so Leaflet container height is untouched */
.map-panel-header {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 600;
  padding: 7px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}

.dc-impact {
  grid-column: 1 / -1;
  background: var(--surface);
  display: flex; align-items: center; padding: 0 20px; gap: 24px;
}

/* Panel titles */
.panel-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.panel-title .count { background: var(--accent); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 8px; font-weight: 700; }

/* Shared inline dots */
.clin-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.count-pill { background: var(--accent); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 8px; font-weight: 700; }

/* ══════════════════════════════════════
   REVIEW MODE INDICATOR
   ══════════════════════════════════════ */
.review-bar {
  display: none;
  height: 32px;
  background: rgba(6, 182, 212, 0.10);
  border-bottom: 2px solid var(--cyan);
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--cyan);
  gap: 8px;
}
.review-bar.active { display: flex; }
.review-bar-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.review-bar-exit { background: none; border: 1px solid var(--cyan); border-radius: 4px; padding: 2px 10px; color: var(--cyan); font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.review-bar-exit:hover { background: rgba(6, 182, 212, 0.15); }

.dc-timeline.review-mode { border-bottom: 2px solid rgba(6, 182, 212, 0.3); }
.dc-map.review-mode { box-shadow: inset 0 2px 0 rgba(6, 182, 212, 0.3); }

/* ══════════════════════════════════════
   TIMELINE / GANTT
   ══════════════════════════════════════ */
.timeline-container {
  padding: 8px 12px;
  min-width: max(100%, calc(120px + var(--timeline-track-min, 1040px)));
  width: max-content;
  box-sizing: border-box;
}
.timeline-axis,
.timeline-row {
  width: calc(120px + var(--timeline-track-min, 1040px));
  min-width: calc(120px + var(--timeline-track-min, 1040px));
}
.timeline-axis-track,
.timeline-track {
  flex: 0 0 var(--timeline-track-min, 1040px);
  width: var(--timeline-track-min, 1040px);
  min-width: var(--timeline-track-min, 1040px);
}
.timeline-axis {
  display: flex; align-items: flex-end;
  border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 4px;
}
.timeline-axis-spacer { width: 120px; flex-shrink: 0; }
.timeline-axis-track { flex: 1; position: relative; height: 14px; }
.timeline-hour { position: absolute; bottom: 0; font-size: 10px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.timeline-row { display: flex; align-items: center; height: 52px; border-bottom: 1px solid var(--border); transition: opacity .15s var(--ease); }
.timeline-row.active-row { height: 78px; }
.timeline-row.tech-dimmed { opacity: 0.28; }
.timeline-row.tech-focused { background: rgba(59,130,246,0.04); }

.timeline-label {
  width: 120px; flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding-right: 8px; font-size: 12px; position: sticky; left: 0; background: var(--surface); z-index: 4;
}
.tech-label-clickable { cursor: pointer; transition: background .15s var(--ease); border-right: 2px solid transparent; }
.tech-label-clickable:hover { background: var(--surface-2); }
.timeline-row.tech-focused .timeline-label { border-right-color: var(--accent); background: var(--surface-2); }

/* Filter-active banner (Issue #2) — floats above the map when a tech is focused */
.tech-filter-chip {
  position: absolute; bottom: 10px; left: 10px; z-index: 1000;
  display: flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.95);
  color: #fff; border: 1px solid rgba(59,130,246,0.6);
  padding: 6px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.tech-filter-chip.hidden { display: none; }
.tech-filter-chip button {
  background: rgba(255,255,255,0.2);
  border: none; border-radius: 50%;
  width: 18px; height: 18px;
  color: #fff; font-size: 12px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.tech-filter-chip button:hover { background: rgba(255,255,255,0.35); }
.tl-tech-name { font-weight: 600; font-size: 12px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tl-tech-meta { font-size: 10px; color: var(--text-muted); }

/* v0.7: tech status icons in Gantt row labels */
.tech-status-icon  { font-size: 12px; flex-shrink: 0; line-height: 1; }
.tech-status-working { color: #27ae60; }   /* green — same family as cc-badge-green */
.tech-status-eqdown  { color: #e08c00; }   /* amber — matches ti-alert-triangle */

/* v0.7: "Full" capacity pill — distinct from constraint-check badges */
.tech-full-pill {
  display: inline-flex; align-items: center;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(239,68,68,0.15); color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3); border-radius: 3px;
  padding: 1px 5px; flex-shrink: 0; line-height: 1.4;
}

/* Dispatcher-specific hover cue for the clickable tech badge in the timeline. */
.tech-label-clickable:hover .tech-badge { border-color: var(--accent); }
.tech-label-clickable:hover .tech-badge-initial { border-color: var(--accent); color: var(--accent); }

/* Instruction strip above the Gantt */
.timeline-hint {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 10.5px; color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}
.timeline-hint svg { opacity: 0.6; }

/* Preview legend — visible only while a recommendation is under review */
.timeline-preview-legend {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 12px;
  font-size: 10px; color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}
.tl-legend-swatch {
  display: inline-block; width: 22px; height: 10px; border-radius: 2px; flex-shrink: 0;
}
.tl-legend-swatch-existing {
  background: #5b6471;
}
.tl-legend-swatch-move {
  border: 1.5px dashed #94a3b8;
  background: rgba(148,163,184,0.10);
  box-sizing: border-box;
}
.tl-legend-swatch-proposed {
  border: 1.5px dashed var(--cyan);
  background: rgba(6,182,212,0.12);
  box-sizing: border-box;
}
/* v0.7 S3 status legend swatches */
.tl-legend-swatch-visit { background: #5b6471; }
.tl-legend-swatch-tat { background: #5b6471; border-left: 3px solid #ef4444; box-sizing: border-box; }
.tl-legend-swatch-overtime { background: rgba(148,163,184,0.18); border: 1.5px dashed rgba(148,163,184,0.65); box-sizing: border-box; }
.tl-legend-swatch-tomorrow { background: rgba(6,182,212,0.12); border: 1.5px dashed var(--cyan); box-sizing: border-box; }

/* v0.7 S3: right-edge "→ Mon" anchor for a visit deferred to the next day.
   No in-track destination block (it lands tomorrow); the arc points here. */
.timeline-tomorrow-anchor {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(6,182,212,0.14); border: 1.5px dashed var(--cyan);
  border-radius: 4px; padding: 2px 6px;
  font-size: 9px; font-weight: 700; color: var(--cyan);
  white-space: nowrap; z-index: 3; pointer-events: auto;
}

/* v0.7 S3: Beat 3/4 Tomorrow preview strip (temporary, collapsible). */
.tomorrow-strip {
  margin: 10px 12px 4px; padding: 8px 0 4px;
  border: 1px solid rgba(6,182,212,0.35); border-radius: 8px;
  background: rgba(6,182,212,0.04);
  animation: proposedEntry 0.25s ease-out;
}
.tomorrow-strip-header {
  display: flex; align-items: center; gap: 10px; padding: 2px 12px 8px;
}
.tomorrow-strip-title { font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.tomorrow-strip-badge {
  font-size: 10px; font-weight: 700; color: var(--cyan);
  background: rgba(6,182,212,0.12); border: 1px solid rgba(6,182,212,0.3);
  border-radius: 10px; padding: 1px 8px;
}
.tomorrow-strip-hide {
  margin-left: auto; font-size: 11px; font-family: inherit; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-dim); padding: 3px 10px;
}
.tomorrow-strip-hide:hover { border-color: var(--accent); color: var(--text); }
/* Existing Monday visit — muted slate; moved-from-today — cyan highlight. */
.timeline-block.tomorrow-existing { background: #5b6471 !important; opacity: 0.5; color: #cbd5e1; }
.timeline-block.tomorrow-moved {
  background: rgba(6,182,212,0.18) !important; border: 1.5px solid var(--cyan);
  color: #e0f7ff; box-sizing: border-box;
}
.tomorrow-moved-icon { position: absolute; top: 2px; right: 4px; font-size: 10px; font-weight: 800; color: var(--cyan); }
.tomorrow-strip-caption { font-size: 11px; color: var(--text-muted); padding: 6px 12px 2px; font-style: italic; }
.tomorrow-strip-legend { padding: 2px 12px 4px; }

.timeline-track { flex: 1; position: relative; height: 100%; }

.timeline-shift-bg {
  position: absolute; top: 4px; bottom: 4px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--border); opacity: 0.4;
}

/* v0.7 S3 (cross-scenario): shift-end line + gray overtime band.
   Gray = "after hours" (deliberately NOT red — red is reserved for TaT risk). */
.timeline-shift-end {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: rgba(255,255,255,0.55); z-index: 4; pointer-events: none;
}
.timeline-overtime-bg {
  position: absolute; top: 0; bottom: 0;
  background: rgba(148,163,184,0.10); z-index: 0; pointer-events: none;
}
.timeline-shift-end-label {
  position: absolute; bottom: 0; transform: translateX(-50%);
  font-size: 9px; color: var(--text-muted); letter-spacing: 0.02em;
  white-space: nowrap; opacity: 0.8;
}
/* Visit blocks that fall in the overtime zone read with a dashed border. */
.timeline-block-overtime { border: 1.5px dashed rgba(148,163,184,0.65); }

/* v0.7 S3: time-sensitive visits — persistent red left accent + clock-alert mark.
   Mirrors the equipment-down accent; never cleared by any beat transition.
   border-left (not box-shadow) so it coexists with the inline overdue ring. */
.timeline-block-time-sensitive { border-left: 3px solid #ef4444; box-sizing: border-box; }
.tbl-tat-icon {
  position: absolute; top: 2px; right: 3px; color: #ef4444;
  line-height: 0; pointer-events: none; opacity: 0.95;
}

.timeline-block {
  position: absolute; top: 10px; bottom: 10px; border-radius: 4px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px;
  padding: 3px 6px;
  font-size: 9px; font-weight: 600; white-space: nowrap; overflow: hidden;
  z-index: 2; transition: opacity .2s;
}
.timeline-block-committed {
  opacity: 0.7;
  color: #fff;
}
.timeline-block-inprogress {
  opacity: 0.9;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
}
.timeline-block-completed {
  opacity: 0.55;
  color: #fff;
}
.timeline-block-proposed {
  border: 2px dashed var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  animation: proposedPulse 2s ease-in-out infinite, proposedEntry 0.25s ease-out;
  z-index: 3;
}
@keyframes proposedPulse { 0%,100%{background:rgba(6,182,212,0.12)} 50%{background:rgba(6,182,212,0.22)} }
/* v0.6: fires on each tab switch since renderTimeline rebuilds innerHTML */
@keyframes proposedEntry { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }
/* Existing visit shifted to a new time — gray dashed, distinct from teal new-visit blocks */
.timeline-block-proposed-move {
  border: 1.5px dashed #94a3b8;
  background: rgba(148,163,184,0.10);
  color: #cbd5e1;
  z-index: 3;
}

.timeline-block-draggable { touch-action: none; }
.timeline-block-draggable:active { cursor: grabbing !important; }
.timeline-dnd-active .timeline-block-draggable { cursor: grabbing; }
.timeline-dnd-source { opacity: 0.35; }
.timeline-dnd-ghost {
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  border: 2px solid var(--cyan);
}
.timeline-dnd-ghost.timeline-dnd-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.35), 0 8px 24px rgba(0,0,0,0.45);
}
.timeline-row.timeline-dnd-target .timeline-track {
  outline: 2px solid rgba(6,182,212,0.45);
  outline-offset: -2px;
  border-radius: 4px;
}
.timeline-row.timeline-dnd-target-invalid .timeline-track {
  outline: 2px solid rgba(239,68,68,0.35);
  outline-offset: -2px;
  border-radius: 4px;
}

.timeline-feasible-slot {
  position: absolute;
  top: 10px;
  bottom: 10px;
  border-radius: 4px;
  z-index: 1;
  pointer-events: none;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.12);
}
.timeline-block-dnd-selected {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  z-index: 5 !important;
}
.tl-legend-swatch-feasible {
  background: rgba(34, 197, 94, 0.35);
  border: 1px solid rgba(34, 197, 94, 0.65);
}
.timeline-slot-legend .timeline-slot-clear {
  margin-left: auto;
  font-size: 11px;
  padding: 0 4px;
}
.timeline-slot-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tbl-time { line-height: 1.2; }
.tbl-init { line-height: 1.2; opacity: 0.8; }

/* Phase 3: small badge inside an InProgress block when it started late. */
.tbl-late-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.30);
  border-radius: 3px;
  padding: 1px 4px;
  line-height: 1.2;
  pointer-events: none;
}

/* Phase 3: faint outline at a visit's original scheduled slot when actual_start
   shifted the live block (Rosa 1:00 → 1:15). */
.timeline-block-ghost {
  position: absolute;
  top: 14px;
  bottom: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 4px;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

/* Phase 3: inline action popover anchored to a clicked committed block. */
.block-popover {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  z-index: 9998;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}
.block-popover-head {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 2px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.block-popover-btn {
  width: 100%;
  font-size: 12px;
  padding: 6px 10px;
  justify-content: center;
}

.timeline-gridline {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.10);
  z-index: 1; pointer-events: none;
}

.timeline-now-line {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--accent); z-index: 5; opacity: 0.7;
}
.timeline-now-label {
  position: absolute; top: -14px; left: -10px;
  font-size: 9px; color: var(--accent); font-weight: 700;
}

/* ══════════════════════════════════════
   MAP
   ══════════════════════════════════════ */
#map { width: 100%; flex: 1; min-height: 0; }
.leaflet-container { background: #0d1117 !important; }
.map-legend { position: absolute; top: 10px; right: 10px; z-index: 1000; background: rgba(19,24,32,0.94); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 12px; }

/* AI recommendation banner (Issue #4) — makes the agent's proposal unmistakable on the map. */
.map-rec-banner {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  max-width: 380px;
  background: linear-gradient(135deg, rgba(6,182,212,0.95), rgba(8,145,178,0.95));
  border: 1px solid rgba(6,182,212,0.6);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 24px rgba(6,182,212,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  animation: recBannerIn .25s var(--ease);
  pointer-events: none;
}
.map-rec-banner-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; opacity: 0.85; margin-bottom: 4px;
}
.map-rec-banner-body { font-weight: 600; font-size: 13px; }
.map-rec-banner-detail { margin-top: 4px; font-size: 11px; opacity: 0.85; font-weight: 400; }
@keyframes recBannerIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Tech label pill anchored below proposed marker on the map */
.prop-tech-label {
  background: rgba(6,182,212,0.95);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.4);
}
.prop-tech-label.dimmed { opacity: 0.25; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@keyframes markerPulse { 0%{transform:scale(1);opacity:0.5} 100%{transform:scale(2.2);opacity:0} }

/* ══════════════════════════════════════
   QUEUE
   ══════════════════════════════════════ */
.queue-item { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.2s, background 0.2s; display: flex; align-items: flex-start; gap: 10px; }
.queue-item:hover { border-color: var(--accent); }
.queue-item.active { border-color: var(--accent); background: rgba(59,130,246,0.04); }
.queue-item.new-arrival { animation: queuePulse 1.5s ease-out; }
@keyframes queuePulse { 0%{border-color:var(--red);background:rgba(239,68,68,0.12);transform:scale(1.01)} 50%{border-color:var(--red)} 100%{border-color:var(--border);background:var(--bg);transform:scale(1)} }
.qi-header { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.qi-patient { font-size: 13px; font-weight: 600; }
.qi-meta { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; margin-top: 2px; flex-wrap: wrap; }
.qi-due { font-size: 11px; margin-top: 3px; font-weight: 600; }
.qi-due-crit { color: var(--red); }
.qi-due-warn { color: var(--orange); }
.qi-readiness { font-size: 11px; margin-left: auto; }

/* ── Phase 2: 4-row card layout ── */
.bulk-rec-btn { width: 100%; padding: 8px 12px; margin-bottom: 10px; background: var(--accent); border: none; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.bulk-rec-btn:hover { background: #2563eb; }

.qi-checkbox-col { padding-top: 2px; flex-shrink: 0; }
.qi-checkbox { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.qi-body { flex: 1; min-width: 0; }

.qi-row1 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.qi-row2 { font-size: 11px; color: var(--text-dim); margin-bottom: 2px; }
.qi-urgency { font-weight: 700; color: var(--text-dim); }
.qi-urgency-stat { color: var(--red); }
.qi-urgency-cascade { color: #3b82f6; }
.queue-item-cascade .qi-checkbox { cursor: not-allowed; opacity: 0.35; }
.qi-row3 { font-size: 11px; color: var(--text-dim); margin-bottom: 5px; }
.qi-row4 { margin-bottom: 4px; }
.qi-skipped-label { font-size: 11px; color: var(--text-muted); font-style: italic; }
.qi-row5 { font-size: 11px; }

.btn-link { background: none; border: none; color: var(--accent); font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 0; text-decoration: underline; }
.btn-link:hover { color: var(--text); }

.queue-empty { font-size: 13px; color: var(--text-dim); text-align: center; padding: 32px 16px; }

/* Package card */
.queue-item.package-card {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding: 12px 12px;
}
.package-summary { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.package-urgency { display: flex; gap: 8px; font-size: 11px; margin-top: 3px; }

/* ══════════════════════════════════════
   AGENT PANEL
   ══════════════════════════════════════ */
.agent-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-dim); text-align: center; gap: 8px; }
.agent-empty .icon { font-size: 28px; opacity: 0.3; }
.agent-section { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.agent-section:last-of-type { border-bottom: none; }
.agent-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.agent-order-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.agent-order-id { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }

.readiness-ok { color: var(--green); font-weight: 700; font-size: 13px; }
.readiness-fail { color: var(--orange); font-weight: 700; font-size: 13px; }
.readiness-issue { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--text-dim); margin: 4px 0; padding: 4px 0; }
.readiness-issue::before { content: '\25A1'; color: var(--orange); flex-shrink: 0; }

.urgency-display { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.urgency-reason { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.urgency-target { font-size: 12px; font-weight: 600; margin-top: 2px; }

.rec-action { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 10px; }
.rec-tech-card { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.rec-tech-card.primary { border-color: var(--accent); background: rgba(59,130,246,0.04); }
.rec-tech-info { flex: 1; min-width: 0; }
.rec-tech-name { font-size: 13px; font-weight: 600; }
.rec-tech-meta { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.rec-tech-eta { font-size: 13px; color: var(--cyan); font-weight: 600; white-space: nowrap; }

.rec-reasoning { list-style: none; padding: 0; margin: 6px 0; }
.rec-reasoning li { font-size: 12px; color: var(--text-dim); padding: 2px 0; display: flex; gap: 6px; }
.rec-reasoning li::before { content: '\2022'; color: var(--accent); flex-shrink: 0; }

.rec-risks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.risk-tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-dim); border: 1px solid var(--border); }
.risk-tag.risk-high { border-color: rgba(239,68,68,0.3); color: var(--red); background: var(--red-dim); }
.risk-tag.risk-moderate { border-color: rgba(249,115,22,0.3); color: var(--orange); background: var(--orange-dim); }

.backup-label { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; cursor: pointer; }
.backup-label:hover { color: var(--text); }
.backup-list { display: none; }
.backup-list.visible { display: block; }
.backup-card { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: border-color .15s; }
.backup-card:hover { border-color: var(--accent); }

.agent-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--surface); padding: 12px 0; border-top: 1px solid var(--border); z-index: 5; }
.btn-approve { background: var(--green); border-color: var(--green); color: #fff; }
.btn-approve:hover { background: #16a34a; }
.btn-change { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-change:hover { border-color: var(--accent); }
.btn-override-action { background: transparent; border-color: var(--border); color: var(--text-dim); }
.btn-override-action:hover { border-color: var(--text-dim); color: var(--text); }
.btn-resolve { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-resolve:hover { background: #ea580c; }

.confidence-bar { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--text-dim); margin-top: 6px; }
.confidence-dot { width: 6px; height: 6px; border-radius: 50%; }
.confidence-high { background: var(--green); }
.confidence-medium { background: var(--yellow); }
.confidence-low { background: var(--red); }

/* Package agent panel */
.pkg-order-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 4px; cursor: pointer; transition: border-color .15s; font-size: 12px; }
.pkg-order-row:hover { border-color: var(--accent); }
.pkg-order-row.flagged { border-left: 3px solid var(--orange); }
.pkg-breadcrumb { font-size: 11px; color: var(--cyan); margin-bottom: 8px; cursor: pointer; }
.pkg-breadcrumb:hover { text-decoration: underline; }
.pkg-nav { display: flex; gap: 8px; margin-bottom: 8px; }
.pkg-nav button { font-size: 11px; }

/* ══════════════════════════════════════
   IMPACT BAR
   ══════════════════════════════════════ */
.impact-bar-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.impact-stats { display: flex; align-items: center; gap: 28px; }
.impact-stat { display: flex; align-items: center; gap: 6px; }
.impact-stat-value { font-size: 20px; font-weight: 800; color: var(--text); }
.impact-stat-label { font-size: 11px; color: var(--text-dim); }
.auto-log { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.auto-log-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ══════════════════════════════════════
   STAT ALERT
   ══════════════════════════════════════ */
.stat-alert { position: fixed; top: 0; left: 0; right: 0; background: linear-gradient(90deg, rgba(239,68,68,0.95), rgba(239,68,68,0.85)); color: #fff; padding: 10px 24px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; z-index: 10000; transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); box-shadow: 0 4px 24px rgba(239,68,68,0.4); }
.stat-alert.visible { transform: translateY(0); }
.stat-alert-dismiss { margin-left: auto; background: rgba(255,255,255,0.2); border: none; color: #fff; padding: 5px 14px; border-radius: 4px; font-family: inherit; font-size: 12px; cursor: pointer; font-weight: 600; }

/* ══════════════════════════════════════
   OVERRIDE MODAL
   ══════════════════════════════════════ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 10000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.modal-overlay.visible { display: flex; }
.override-modal { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px; width: 460px; max-width: 90vw; box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.override-modal h3 { font-size: 16px; margin-bottom: 4px; }
.override-modal .subtitle { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.tech-option { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; margin-bottom: 6px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: border-color 0.15s; }
.tech-option:hover { border-color: var(--accent); }
.tech-option.selected { border-color: var(--accent); background: rgba(59,130,246,0.06); }
.tech-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tech-info { flex: 1; }
.tech-name { font-size: 13px; font-weight: 600; }
.tech-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.reason-section { margin-top: 16px; }
.reason-section label { font-size: 12px; font-weight: 600; color: var(--text-dim); display: block; margin-bottom: 6px; }
.reason-option { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; cursor: pointer; color: var(--text-dim); }
.reason-option:hover { color: var(--text); }
.reason-option input[type="radio"] { accent-color: var(--accent); }
.reason-notes { width: 100%; margin-top: 10px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 13px; resize: vertical; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }

/* ══════════════════════════════════════
   CHANGE LOG
   ══════════════════════════════════════ */
.changelog-toggle { position: fixed; bottom: 56px; right: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--text-dim); cursor: pointer; z-index: 999; display: flex; align-items: center; gap: 6px; transition: all .15s; }
.changelog-toggle:hover { border-color: var(--accent); color: var(--text); }
.changelog-badge { background: var(--accent); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 8px; font-weight: 700; min-width: 18px; text-align: center; }
.changelog-drawer { position: fixed; bottom: 56px; right: 16px; width: 360px; max-height: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 1000; display: flex; flex-direction: column; }
.changelog-drawer.hidden { display: none; }
.changelog-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.changelog-close { background: none; border: none; color: var(--text-dim); font-size: 18px; cursor: pointer; }
.changelog-close:hover { color: var(--text); }
.changelog-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.changelog-entry { padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: 12px; }
.changelog-entry:last-child { border-bottom: none; }
.changelog-entry-time { color: var(--text-dim); font-size: 11px; }
.changelog-entry-action { color: var(--text); margin-top: 2px; }
.changelog-entry-items { color: var(--text-dim); font-size: 11px; margin-top: 1px; }

/* ══════════════════════════════════════
   PHASE 3: SINGLE-ORDER AGENT DRAWER
   ══════════════════════════════════════ */
.agent-order-subtitle { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.agent-countdown {
  font-size: 13px; font-weight: 600; color: var(--cyan);
  background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.2);
  border-radius: 6px; padding: 8px 12px; margin-bottom: 14px; text-align: center;
}
.agent-countdown-expired {
  color: var(--orange);
  background: rgba(249,115,22,0.08); border-color: rgba(249,115,22,0.25);
  font-size: 12px; font-weight: 400; line-height: 1.5;
}

/* v0.6: 3-option tab strip */
.agent-rec-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.agent-rec-tab {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 8px 7px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.agent-rec-tab:hover { border-color: var(--accent); }
.agent-rec-tab.active {
  border-color: var(--accent);
  background: rgba(59,130,246,0.06);
}
.art-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.art-tech {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.art-dots { display: flex; gap: 3px; align-items: center; }

/* v0.6: highlighted assignee block below tab strip */
.agent-assignee-block {
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.22);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* kept for backward-compat (edit form header still uses this class) */
.agent-assign-headline { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; }

.agent-timing-grid { display: flex; flex-direction: column; gap: 6px; }
.timing-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.timing-label { color: var(--text-dim); }
.timing-value { font-weight: 600; color: var(--text); }
.sla-on-track { color: var(--green); }
.sla-at-risk   { color: var(--orange); }
.sla-overdue   { color: var(--red); }

.btn-secondary { background: var(--surface-2); border-color: var(--border); color: var(--text-dim); }
.btn-secondary:hover { border-color: var(--accent); color: var(--text); }

.edit-field { margin-bottom: 12px; }
.edit-label { display: block; font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.edit-select {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text); font-family: inherit; font-size: 13px;
  padding: 6px 10px; box-sizing: border-box;
}
.edit-select:focus { outline: none; border-color: var(--accent); }
.edit-textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text); font-family: inherit; font-size: 13px;
  padding: 6px 10px; resize: vertical; box-sizing: border-box;
}
.edit-textarea:focus { outline: none; border-color: var(--accent); }

/* ══════════════════════════════════════
   PHASE 4: BULK RECOMMENDATION DRAWER
   ══════════════════════════════════════ */
.bulk-assignments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 4px;
}
.bulk-assignments-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 4px 6px;
  border-bottom: 1px solid var(--border);
}
.bulk-assignments-table td {
  padding: 6px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
  line-height: 1.4;
}
.bulk-assignments-table td:first-child {
  color: var(--text);
  font-weight: 500;
}
.bulk-assignments-table tr:last-child td {
  border-bottom: none;
}

/* ══════════════════════════════════════
   CONSTRAINT CHECK (single + bulk)
   Status colors (#27ae60, #e08c00, #c0392b) are hardcoded per design spec —
   they differ from the theme --green/--yellow/--red tokens.
   --surface-2 (#1a2236) is used for row backgrounds (no --surface-raised token).
   ══════════════════════════════════════ */
.cc-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-left: 2.5px solid transparent;
  border-radius: 0 4px 4px 0;
  background: var(--surface-2);
  margin-bottom: 4px;
}
.cc-row-body    { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cc-label       { font-size: 13px; font-weight: 600; color: var(--text); }
.cc-detail      { font-size: 12px; color: var(--text-dim); }
.cc-status-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.cc-dots { display: flex; gap: 4px; align-items: center; }
.cc-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.cc-badge        { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.cc-badge-green  { background: rgba(39,174,96,.15);  color: #27ae60; }
.cc-badge-yellow { background: rgba(224,140,0,.15);  color: #e08c00; }
.cc-badge-red    { background: rgba(192,57,43,.15);  color: #c0392b; }

.bulk-assignment-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; cursor: pointer; border-radius: 4px;
  transition: background 0.15s;
}
.bulk-assignment-row:hover { background: rgba(255,255,255,0.05); }
.ba-info    { flex: 1; font-size: 13px; color: var(--text); }
.ba-chevron { font-size: 14px; color: var(--text-dim); flex-shrink: 0; transition: transform 0.15s; }
.ba-chevron.expanded { transform: rotate(90deg); }

.cc-inline .cc-row { background: transparent; }
.cc-inline { padding: 4px 10px 8px; }

.cc-divider {
  font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 8px 0 4px; border-top: 1px solid rgba(255,255,255,0.07);
  margin: 6px 0 2px;
}

/* ══════════════════════════════════════
   PHASE 6: MOVED-VISIT NOTICE (PRD §14)
   ══════════════════════════════════════ */
.agent-moved-notice {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.moved-visits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 4px;
}
.moved-visits-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 4px 6px;
  border-bottom: 1px solid var(--border);
}
.moved-visits-table td {
  padding: 6px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
  line-height: 1.4;
}
.moved-visits-table td:first-child {
  color: var(--text);
  font-weight: 500;
}
.moved-visits-table tr:last-child td {
  border-bottom: none;
}
/* v0.7 S3: next-day deferral tag in the bulk Schedule-impact table */
.av-defer-tag {
  display: inline-block; font-size: 9px; font-weight: 700;
  color: var(--cyan); background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.3); border-radius: 3px;
  padding: 0 4px; margin-left: 4px; vertical-align: middle;
}

/* ══════════════════════════════════════
   RESPONSIVE: <1600px slide-over agent
   ══════════════════════════════════════ */
@media (max-width: 1400px) {
  .dispatch-console,
  .dispatch-console.agent-closed {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .dc-agent {
    position: fixed;
    right: 0; top: 49px; bottom: 49px;
    width: 360px;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    border-left: 1px solid var(--border);
  }
  .dc-agent.open { transform: translateX(0); }
}
