.agent-queue-view { color: #0a0a0a; margin: 24px 0; }
.queue-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.queue-heading h2 { font-size: 28px; margin: 8px 0; }
.queue-heading p { max-width: 65ch; line-height: 1.6; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.queue-actions button, .queue-task button { border: 1px solid #0a0a0a; background: #fff; padding: 10px 12px; cursor: pointer; font: inherit; }
.queue-actions button:disabled, .queue-task button:disabled { opacity: .5; cursor: wait; }
.queue-notice { border-left: 3px solid #777; background: #f5f5f5; padding: 12px; line-height: 1.5; }
.queue-notice.is-error { border-color: #c8102e; }
.queue-agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: start; gap: 12px; margin: 20px 0 28px; }
.queue-agent { border: 1px solid #e0e0e0; padding: 16px; min-width: 0; background: #fff; }
.queue-agent h3 { margin: 0; }
.queue-agent > p { color: #555; font-size: 13px; line-height: 1.5; }
.queue-state { display: inline-block; font-size: 12px; padding: 3px 7px; background: #f0f0f0; border: 1px solid #ddd; white-space: nowrap; }
.queue-connection { border-top: 1px solid #e0e0e0; padding-top: 10px; }
.queue-links { display: flex; flex-wrap: wrap; gap: 7px 12px; margin: 10px 0; }
.queue-links a { color: #a50d25; font-size: 13px; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.queue-report { border-top: 1px solid #e0e0e0; margin-top: 12px; padding-top: 12px; }
.queue-report small { display: block; margin-top: 5px; color: #666; }
.agent-queue-view dl { margin: 12px 0; }
.agent-queue-view dt { font-weight: 700; font-size: 12px; color: #555; margin-top: 10px; }
.agent-queue-view dd { margin: 4px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.queue-toolbar { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.queue-toolbar label { display: grid; gap: 5px; font-size: 13px; }
.queue-toolbar select { background: #fff; color: #0a0a0a; border: 1px solid #ccc; padding: 8px 10px; }
.queue-toolbar > span { color: #666; font-size: 13px; padding-bottom: 8px; }
.queue-task { background: #fff; border: 1px solid #ddd; margin: 10px 0; }
.queue-task > summary { cursor: pointer; padding: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.queue-task > summary::before { content: "+"; font-size: 18px; }
.queue-task[open] > summary::before { content: "−"; }
.queue-task > summary strong { flex: 1; min-width: 180px; }
.queue-task-key { font-family: monospace; font-size: 13px; color: #a50d25; }
.queue-task-meta { margin: 0; padding: 0 16px 12px; color: #555; font-size: 13px; }
.queue-task-details { padding: 0 16px 20px; }
.queue-task-details h4 { margin: 20px 0 8px; }
.queue-task-details pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; background: #f7f7f7; padding: 14px; font-family: inherit; font-size: 14px; line-height: 1.6; border: 1px solid #e5e5e5; max-height: 450px; overflow-y: auto; }
.queue-task-details .muted { color: #666; font-size: 13px; line-height: 1.5; }
.queue-handoff { border-left: 2px solid #c8102e; padding-left: 12px; }
@media (max-width: 700px) { .queue-heading { display: block; } .queue-actions { margin: 12px 0; } .queue-agent-grid { grid-template-columns: 1fr; } .queue-task > summary { gap: 8px; } }
/* Preserve the existing team header without pushing the mobile queue offscreen. */
@media (max-width: 700px) {
  body > header { flex-wrap: wrap; gap: 12px; }
  #workspace > .team .chief { flex-wrap: wrap; }
  #workspace > .team .avatar { flex-shrink: 0; }
  #workspace > .team .chief-actions { flex-basis: 100%; }
}
