/* Master-global Slots ao Vivo — visual extension v310.
   Uses existing snapshots only; no selectors outside this panel. */
#workers-live-workers .wlv310-dashboard {
  --wlv-crm:#48ccff;
  --wlv-calc:#aa8bff;
  --wlv-link:#42e8ac;
  --wlv-batch:#ffbf68;
  --wlv-updates:#f58cb5;
  --wlv-other:#89b6d9;
  display:grid;
  gap:17px;
  min-width:0;
  color:#e8f6ff;
}
#workers-live-workers .wlv310-overview-title {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:4px 2px;
}
#workers-live-workers .wlv310-eyebrow {
  display:flex;
  align-items:center;
  gap:7px;
  color:#87c8f0;
  font-size:9px;
  font-weight:850;
  letter-spacing:.13em;
}
#workers-live-workers .wlv310-eyebrow i {
  order:0;
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#4af4ca;
  box-shadow:0 0 10px #4af4caaa;
}
#workers-live-workers .wlv310-overview-title h3 {
  margin:6px 0 0;
  color:#f2fbff;
  font-size:17px;
  line-height:1.2;
  font-weight:820;
}
#workers-live-workers .wlv310-overview-counts {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}
#workers-live-workers .wlv310-overview-counts span {
  padding:7px 9px;
  border:1px solid #4a8fb84d;
  border-radius:10px;
  background:#153450;
  color:#afd0eb;
  font-size:10px;
}
#workers-live-workers .wlv310-overview-counts b {color:#eaffff;font-size:13px}
#workers-live-workers .wlv310-summary {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(128px,1fr));
  gap:9px;
}
#workers-live-workers .wlv310-metric,
#workers-live-workers .wlv310-lane {
  --wlv-tone:var(--wlv-other);
  min-width:0;
  border:1px solid color-mix(in srgb,var(--wlv-tone) 47%,#253d53);
  background:radial-gradient(ellipse at 5% 0%,color-mix(in srgb,var(--wlv-tone) 20%,transparent),transparent 75%),linear-gradient(155deg,#193853,#0d263e);
  box-shadow:inset 0 1px 0 #ffffff12,0 4px 15px #030d1a3a;
}
#workers-live-workers .is-crm {--wlv-tone:var(--wlv-crm)}
#workers-live-workers .is-calc {--wlv-tone:var(--wlv-calc)}
#workers-live-workers .is-link {--wlv-tone:var(--wlv-link)}
#workers-live-workers .is-batch {--wlv-tone:var(--wlv-batch)}
#workers-live-workers .is-updates {--wlv-tone:var(--wlv-updates)}
#workers-live-workers .is-other {--wlv-tone:var(--wlv-other)}
#workers-live-workers .wlv310-metric {
  display:flex;
  flex-direction:column;
  gap:5px;
  border-radius:14px;
  padding:12px 11px 13px;
  min-height:103px;
}
#workers-live-workers .wlv310-metric-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:5px;
}
#workers-live-workers .wlv310-metric-icon,
#workers-live-workers .wlv310-lane-glyph {
  display:grid;
  place-items:center;
  width:30px;height:30px;
  border:1px solid color-mix(in srgb,var(--wlv-tone) 65%,transparent);
  border-radius:10px;
  background:color-mix(in srgb,var(--wlv-tone) 16%,#102b43);
  color:var(--wlv-tone);
  font-size:20px;
  font-weight:800;
  text-shadow:0 0 11px color-mix(in srgb,var(--wlv-tone) 46%,transparent);
}
#workers-live-workers .wlv310-metric-top strong {
  font-size:22px;
  line-height:1;
  color:var(--wlv-tone);
  text-shadow:0 0 13px color-mix(in srgb,var(--wlv-tone) 38%,transparent);
  font-variant-numeric:tabular-nums;
}
#workers-live-workers .wlv310-metric-name {
  color:#f1faff;
  font-size:11px;
  font-weight:850;
  line-height:1.3;
}
#workers-live-workers .wlv310-metric small {
  color:#9cbed4;
  font-size:9px;
  line-height:1.35;
}
#workers-live-workers .wlv310-subhead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:5px;
  border-bottom:1px solid #37678870;
  padding:0 1px 8px;
}
#workers-live-workers .wlv310-subhead strong {font-size:12px;color:#e6f6ff;font-weight:850}
#workers-live-workers .wlv310-subhead small {font-size:9px;color:#91adc6}
#workers-live-workers .wlv310-lanes {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,278px),1fr));
  gap:11px;
}
#workers-live-workers .wlv310-lane {
  border-radius:15px;
  padding:10px;
  align-self:start;
}
#workers-live-workers .wlv310-lane-head {
  display:flex;align-items:center;gap:9px;
  padding:3px 1px 10px;
  border-bottom:1px solid color-mix(in srgb,var(--wlv-tone) 29%,transparent);
  margin-bottom:10px;
}
#workers-live-workers .wlv310-lane-head > div {display:grid;gap:3px;min-width:0;flex:1}
#workers-live-workers .wlv310-lane-head strong {font-size:12px;color:#f1faff}
#workers-live-workers .wlv310-lane-head small {font-size:9px;color:#9cc0d8}
#workers-live-workers .wlv310-lane-count {
  min-width:25px;
  padding:5px;
  text-align:center;
  background:color-mix(in srgb,var(--wlv-tone) 18%,#10243c);
  border:1px solid color-mix(in srgb,var(--wlv-tone) 48%,transparent);
  border-radius:8px;
  color:var(--wlv-tone);
  font-weight:850;
  font-size:12px;
}
#workers-live-workers .wlv310-lane-content {display:grid;gap:8px}
#workers-live-workers .wlv310-task {
  min-width:0;
  padding:11px;
  display:grid;
  gap:7px;
  border:1px solid color-mix(in srgb,var(--wlv-tone) 24%,#39516d);
  border-left:3px solid var(--wlv-tone);
  border-radius:11px;
  background:linear-gradient(145deg,#0e243c,#102c46);
}
#workers-live-workers .wlv310-task.is-preempting {opacity:.72}
#workers-live-workers .wlv310-task-head {
  display:flex;
  align-items:start;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px;
}
#workers-live-workers .wlv310-task-head strong {
  color:#f5fcff;
  font-size:11px;
  overflow-wrap:anywhere;
}
#workers-live-workers .wlv310-capacity {
  padding:3px 6px;
  border-radius:7px;
  border:1px solid #5ee8b452;
  background:#0f53483b;
  color:#8dffd4;
  font-size:9px;
  font-weight:780;
}
#workers-live-workers .wlv310-task-action {
  color:var(--wlv-tone);
  font-size:12px;
  font-weight:820;
  line-height:1.4;
}
#workers-live-workers .wlv310-task-meta {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
}
#workers-live-workers .wlv310-task-meta span {
  color:#c0d8eb;
  border:1px solid #4e769258;
  background:#21445c61;
  border-radius:6px;
  padding:3px 5px;
  font-size:8px;
  font-weight:800;
}
#workers-live-workers .wlv310-task-meta .wlv310-task-priority {color:#d8c9ff}
#workers-live-workers .wlv310-task-people {
  display:grid;
  gap:4px;
  padding:8px 9px;
  border-radius:8px;
  background:#081d32b0;
}
#workers-live-workers .wlv310-task-people span {
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:5px;
  color:#cce8fa;
  font-size:10px;
  overflow-wrap:anywhere;
}
#workers-live-workers .wlv310-task-people b {font-size:9px;color:#83b0ca}
#workers-live-workers .wlv310-resources {display:grid;gap:11px}
#workers-live-workers .wlv310-resource-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,193px),1fr));
  gap:8px;
}
#workers-live-workers .wlv310-resource {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:9px;
  border-radius:10px;
  background:linear-gradient(110deg,#113b42,#122e45);
  border:1px solid #2e957d85;
}
#workers-live-workers .wlv310-resource.is-sync {background:#34304770;border-color:#a28beb75}
#workers-live-workers .wlv310-resource.is-offline {background:#41293563;border-color:#e67f9880}
#workers-live-workers .wlv310-resource-dot {
  width:8px;height:8px;
  border-radius:50%;
  background:#48e6ae;box-shadow:0 0 9px #42f1b899;flex:0 0 8px;
}
#workers-live-workers .wlv310-resource.is-sync .wlv310-resource-dot {background:#be9aff}
#workers-live-workers .wlv310-resource.is-offline .wlv310-resource-dot {background:#ff879d}
#workers-live-workers .wlv310-resource-copy {display:grid;min-width:0;gap:3px;flex:1}
#workers-live-workers .wlv310-resource-copy strong {
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-size:10px;color:#f0fbff;
}
#workers-live-workers .wlv310-resource-copy small {color:#a6c9d8;font-size:9px}
#workers-live-workers .wlv310-resource-capacity {color:#b4d4eb;font-size:10px;font-variant-numeric:tabular-nums}
#workers-live-workers .wlv310-original {
  border:1px solid #385c7891;
  border-radius:12px;
  padding:0 12px;
  background:#10294082;
}
#workers-live-workers .wlv310-original summary {
  padding:13px 0;
  cursor:pointer;
  font-size:11px;
  font-weight:850;
  color:#c7e8ff;
}
#workers-live-workers .wlv310-original summary span {
  display:inline;
  margin-left:6px;
  color:#85a6bd;
  font-size:9px;
  font-weight:550;
}
#workers-live-workers .wlv310-original-list {display:grid;gap:9px;padding:0 0 12px}
#workers-live-workers .wlv310-no-tasks {
  color:#9bbdd3;
  padding:14px;
  border:1px dashed #37678a;
  border-radius:10px;
  font-size:11px;
  grid-column:1/-1;
}
/* Light appearance inherits Prospecta's own theme flag. */
html[data-app-theme="light"] #workers-live-workers .wlv310-dashboard {color:#1e405b}
html[data-app-theme="light"] #workers-live-workers .wlv310-overview-title h3,
html[data-app-theme="light"] #workers-live-workers .wlv310-subhead strong,
html[data-app-theme="light"] #workers-live-workers .wlv310-metric-name,
html[data-app-theme="light"] #workers-live-workers .wlv310-lane-head strong,
html[data-app-theme="light"] #workers-live-workers .wlv310-task-head strong {color:#183d58}
html[data-app-theme="light"] #workers-live-workers .wlv310-metric,
html[data-app-theme="light"] #workers-live-workers .wlv310-lane {
  border-color:color-mix(in srgb,var(--wlv-tone) 58%,#a9c8df);
  background:linear-gradient(145deg,#fff,#eff7ff);
  box-shadow:0 3px 10px #38618819;
}
html[data-app-theme="light"] #workers-live-workers .wlv310-metric small,
html[data-app-theme="light"] #workers-live-workers .wlv310-lane-head small,
html[data-app-theme="light"] #workers-live-workers .wlv310-subhead small {color:#57758d}
html[data-app-theme="light"] #workers-live-workers .wlv310-metric-top strong,
html[data-app-theme="light"] #workers-live-workers .wlv310-task-action {filter:brightness(.70)}
html[data-app-theme="light"] #workers-live-workers .wlv310-task {
  border-color:#bdd3e3;border-left-color:var(--wlv-tone);
  background:linear-gradient(140deg,#fff,#eaf4fc);
}
html[data-app-theme="light"] #workers-live-workers .wlv310-task-people {background:#e3f1fa}
html[data-app-theme="light"] #workers-live-workers .wlv310-task-people span {color:#254d64}
html[data-app-theme="light"] #workers-live-workers .wlv310-task-people b {color:#55778b}
html[data-app-theme="light"] #workers-live-workers .wlv310-resource {
  background:#f1fcf9;border-color:#a5d9c3;
}
html[data-app-theme="light"] #workers-live-workers .wlv310-resource.is-sync {background:#f5f0ff}
html[data-app-theme="light"] #workers-live-workers .wlv310-resource.is-offline {background:#fff0f2}
html[data-app-theme="light"] #workers-live-workers .wlv310-resource-copy strong,
html[data-app-theme="light"] #workers-live-workers .wlv310-original summary {color:#194660}
html[data-app-theme="light"] #workers-live-workers .wlv310-resource-copy small,
html[data-app-theme="light"] #workers-live-workers .wlv310-resource-capacity,
html[data-app-theme="light"] #workers-live-workers .wlv310-original summary span {color:#577a90}
html[data-app-theme="light"] #workers-live-workers .wlv310-original {
  background:#f4f9ff;border-color:#bdd5e6;
}
html[data-app-theme="light"] #workers-live-workers .wlv310-overview-counts span {
  background:#e3f4ff;border-color:#c3dbe9;color:#49677c;
}
html[data-app-theme="light"] #workers-live-workers .wlv310-overview-counts b {color:#1c516d}
html[data-app-theme="light"] #workers-live-workers .wlv310-no-tasks {color:#47728e}
@media(max-width:1250px) {
  #workers-live-workers .wlv310-summary {grid-template-columns:repeat(auto-fit,minmax(119px,1fr))}
}
@media(max-width:720px) {
  #workers-live-workers .wlv310-summary {grid-template-columns:repeat(2,minmax(0,1fr))}
  #workers-live-workers .wlv310-lanes {grid-template-columns:1fr}
  #workers-live-workers .wlv310-overview-counts {width:100%}
  #workers-live-workers .wlv310-original summary span {display:block;margin:3px 0 0}
}
@media(max-width:410px) {
  #workers-live-workers .wlv310-summary {grid-template-columns:1fr 1fr}
  #workers-live-workers .wlv310-metric {padding:9px;min-height:95px}
}
@media(prefers-reduced-motion:reduce) {
  #workers-live-workers .wlv310-eyebrow i {box-shadow:none}
}

/* Compact operations console. Scoped to the Global Workers screen. */
#section-workers .workers-stats { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
#section-workers .workers-stats article { border-radius: 16px; padding: 18px 20px; background: linear-gradient(135deg,#112d42,#0b1e30); box-shadow: inset 0 1px 0 #ffffff08; }
#section-workers .workers-stats strong { font-variant-numeric: tabular-nums; }
#section-workers .workers-free-stat { border-color: #2bcda16b; }
#section-workers .workers-free-stat strong { color: #67e8bc; }
#section-workers .workers-live-console { background: radial-gradient(ellipse at top right,#123b5040,transparent 65%),#0b2032; border-color:#325c73; }
#section-workers .workers-live-flow { margin-top:12px; }
#section-workers .workers-live-flow > * { min-height:0; }
#section-workers .workers-live-grid { grid-template-columns:minmax(0,1.3fr) minmax(350px,1fr); gap:16px; align-items:start; }
#section-workers .workers-live-board { background:#0b1d2ed9; padding:16px; }
#section-workers .workers-live-events { max-height:850px; gap:12px; overscroll-behavior:contain; }
#section-workers .workers-live-event { padding:16px; border-radius:14px; align-items:start; border-left:3px solid #5a7890; background:linear-gradient(120deg,#143047,#102437); }
#section-workers .workers-live-event.is-succeeded { border-left-color:#48ddb2; }
#section-workers .workers-live-event.is-failed { border-left-color:#ff7e91; background:linear-gradient(120deg,#362338,#162638); }
#section-workers .workers-live-event > i { margin-top:6px; }
#section-workers .workers-live-event-main { display:grid; gap:10px; }
#section-workers .workers-live-event-main strong, #section-workers .workers-live-event-main small { white-space:normal; overflow-wrap:anywhere; }
#section-workers .workers-live-event-main strong { font-size:12px; line-height:1.5; }
#section-workers .workers-live-event-main small { font-size:11px; line-height:1.5; }
#section-workers .workers-event-requester { font-weight:750; color:#eafaff; font-size:15px; overflow-wrap:anywhere; }
#section-workers .workers-event-outcome { margin:0; padding:11px 12px; border:1px solid #ffffff0e; border-radius:9px; background:#07152380; color:#cfe5ee; font-size:12px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
#section-workers .is-failed .workers-event-outcome { color:#ffccd5; }
#section-workers .workers-live-event-status { font-size:10px; color:#9db7c8; }
#section-workers .workers-list-head { flex-wrap:wrap; gap:14px; }
#section-workers .workers-list-head > div:first-child { margin-right:auto; }
#workers-live-workers .wlv310-lanes { grid-template-columns:repeat(2,minmax(0,1fr)); }
#workers-live-workers .wlv310-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
#workers-live-workers .wlv310-task-people .wlv310-requester { display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
#workers-live-workers .wlv310-requester b { font-size:8px; letter-spacing:.1em; color:#80b7cc; }
#workers-live-workers .wlv310-requester strong { color:#f0fbff; font-size:15px; line-height:1.4; overflow-wrap:anywhere; }
#workers-live-workers .wlv310-task-people { border-left:2px solid #4dd7ff; padding:10px 12px; }
@media(max-width:1100px) {
 #section-workers .workers-live-grid { grid-template-columns:minmax(0,1fr); }
 #section-workers .workers-live-events { max-height:600px; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
 #section-workers .workers-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #section-workers .workers-live-events, #workers-live-workers .wlv310-lanes { grid-template-columns:minmax(0,1fr); }
 #workers-live-workers .wlv310-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #section-workers .workers-live-board { padding:12px; }
}

#section-workers .workers-command-actions { display:flex; align-items:center; gap:10px; }
#section-workers #workers-new { background:linear-gradient(110deg,#35a7fc,#88eaff); color:#051c2b; border:1px solid #8ceaff; border-radius:11px; min-height:40px; padding:0 16px; }
html[data-app-theme="light"] #section-workers .workers-stats article,
html[data-app-theme="light"] #section-workers .workers-live-console,
html[data-app-theme="light"] #section-workers .workers-live-board { background:#f0f7fc; color:#173a52; }
html[data-app-theme="light"] #section-workers .workers-live-event { background:#e4eff7; }
html[data-app-theme="light"] #section-workers .workers-event-requester,
html[data-app-theme="light"] #section-workers .workers-event-outcome { color:#173a52; }
html[data-app-theme="light"] #section-workers .workers-event-outcome { background:#ffffff; }
html[data-app-theme="light"] #section-workers .is-failed .workers-event-outcome { color:#952d46; }
html[data-app-theme="light"] #workers-live-workers .wlv310-requester strong { color:#173a52; }

#workers-live-workers .is-reserved { --wlv-tone:#e3b4ff; border-color:#bd8fe866; }
#workers-live-workers .is-reserved .wlv310-metric-icon,
#workers-live-workers .is-reserved .wlv310-lane-glyph { color:#e3b4ff; }
#section-workers #workers-live-events.wlv310-history { display:block; max-height:none; overflow:visible; }
#section-workers .wlv310-history-tabs { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
#section-workers .wlv310-history-tabs button { display:flex; align-items:center; justify-content:space-between; gap:10px; text-align:left; padding:13px; border:1px solid #345b72; border-radius:12px; background:#122b3f; color:#bad5e6; cursor:pointer; font:inherit; font-size:12px; }
#section-workers .wlv310-history-tabs button[aria-pressed="true"] { background:#17415a; color:#e9fbff; border-color:#55d5ff; box-shadow:inset 0 0 0 1px #55d5ff33; }
#section-workers .wlv310-history-tabs button:focus-visible { outline:2px solid #8deaff; outline-offset:3px; }
#section-workers .wlv310-history-tabs strong { font-size:20px; }
#section-workers .wlv310-history-list { display:grid; gap:12px; max-height:850px; overflow:auto; padding-right:3px; overscroll-behavior:contain; }
#section-workers .wlv310-event-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
#section-workers .wlv310-duration { margin-left:auto; font-size:10px; color:#9db7c8; }
#section-workers .wlv310-duration strong { margin-left:6px; font-size:12px; color:#d7f3ff; font-variant-numeric:tabular-nums; }
html[data-app-theme="light"] #section-workers .wlv310-history-tabs button { background:#e4eff7; color:#173a52; }
html[data-app-theme="light"] #section-workers .wlv310-history-tabs button[aria-pressed="true"] { background:#cde8f7; border-color:#1778a3; }
html[data-app-theme="light"] #section-workers .wlv310-duration strong { color:#173a52; }

#section-workers .wlv310-history-list .workers-live-event { display:flex; }
#section-workers .wlv310-history-list .workers-live-event-main { flex:1; min-width:0; }
#section-workers .wlv310-event-footer { width:100%; }
#section-workers .wlv310-history-list .workers-live-event-main { grid-template-columns:minmax(0,1fr); width:100%; }
