:root { color-scheme: light dark; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; width: 410px; max-width: 100vw; background: Canvas; color: CanvasText; font-size: 13px; }
main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid color-mix(in srgb, CanvasText 18%, transparent); }
h1 { margin: 0; font-size: 15px; line-height: 1.3; }
h2 { margin: 0 0 10px; font-size: 13px; }
section { padding: 14px 16px; border-bottom: 1px solid color-mix(in srgb, CanvasText 14%, transparent); }
.section-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.eyebrow { margin: 0 0 5px; font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.auto-resume-state { font-size: 11px; text-align: right; }
.intro, .muted, .worker-row p, .empty, .hierarchy { color: color-mix(in srgb, CanvasText 70%, transparent); }
.intro { margin: 0 0 12px; line-height: 1.45; }
.connection { padding: 3px 8px; border: 1px solid color-mix(in srgb, CanvasText 20%, transparent); border-radius: 999px; font-size: 11px; font-weight: 700; }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.counts div { display: flex; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid color-mix(in srgb, CanvasText 14%, transparent); border-radius: 8px; }
.counts dt, .counts dd { margin: 0; }
.counts dd { font-weight: 750; }
.worker-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; max-height: 250px; overflow: auto; }
.worker-row { padding: 9px 10px; border: 1px solid color-mix(in srgb, CanvasText 14%, transparent); border-radius: 9px; }
.worker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.worker-names { display: grid; min-width: 0; gap: 1px; }
.worker-heading strong { min-width: 0; overflow-wrap: anywhere; }
.hierarchy { margin: 0; font-size: 11px; overflow-wrap: anywhere; }
.status-label { flex: none; font-weight: 700; }
.worker-row p { margin: 4px 0 0; font-size: 11px; overflow-wrap: anywhere; }
.policy-line { color: color-mix(in srgb, CanvasText 72%, transparent); }
.row-actions { display: flex; justify-content: flex-end; margin-top: 7px; }
.row-actions button { min-height: 30px; padding-inline: 10px; }
.current-status { margin: 6px 0 2px; font-weight: 700; }
.muted { margin: 2px 0; font-size: 11px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
button { min-height: 34px; font: inherit; }
.secondary { border: 1px solid color-mix(in srgb, CanvasText 24%, transparent); border-radius: 7px; background: Canvas; color: CanvasText; cursor: pointer; }
.secondary:hover:not(:disabled), .link-button:hover { background: color-mix(in srgb, CanvasText 8%, Canvas); }
.secondary:disabled { opacity: .52; cursor: not-allowed; }
.destructive { border-color: #b91c1c; color: #b91c1c; }
button:focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
.action-status { min-height: 18px; margin: 0; padding: 8px 16px 0; font-size: 11px; }
footer { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px 14px; }
.link-button { border: 0; background: transparent; color: LinkText; cursor: pointer; text-decoration: underline; }
.empty { margin: 0; }
@media (max-width: 430px) { body { width: 100vw; } .counts, .actions { grid-template-columns: 1fr; } .section-heading-row { align-items: flex-start; } }
