/* OWNER-VISUAL-RECONCILE-080: production-test corrections and scalable Human-Agent status. */

/* The legacy per-Agent strip/panel is replaced by one scalable header control. */
.dios-presence-bar,#dios-presence-panel{display:none!important}

/* Human-Agent/System Activity trigger lives with the top header actions. */
.dios-human-agent-trigger{position:relative}
.dios-human-agent-trigger svg{width:20px;height:20px}
.dios-human-agent-trigger::after{content:"";position:absolute;right:4px;top:4px;width:6px;height:6px;border-radius:50%;background:#7d8d98;box-shadow:0 0 0 2px var(--surface,#fff)}
.dios-human-agent-trigger[data-activity-state=active]::after{background:#4ccfae}
.dios-human-agent-trigger[data-activity-state=attention]::after{background:#e9b24c}
.dios-human-agent-trigger[data-activity-state=unavailable]::after{background:#98a7b0}

.dios-human-agent-layer{position:absolute;right:16px;top:58px;width:min(660px,calc(100vw - 32px));max-height:min(680px,calc(100dvh - 86px));overflow:auto;z-index:95;border:1px solid var(--border);border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 22px 70px #1018202e;padding:16px}
.dios-human-agent-layer[hidden]{display:none}
.dios-human-agent-layer>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.dios-human-agent-layer h2{font-size:18px;letter-spacing:-.35px;margin:0 0 4px}
.dios-human-agent-layer header p{margin:0;color:var(--muted);font-size:10px}
.dios-human-agent-close{border:0;background:transparent;color:var(--muted);font-size:20px;line-height:1;border-radius:8px;min-width:34px;min-height:34px}
.dios-human-agent-close:hover,.dios-human-agent-close:focus-visible{background:#edf3f5;color:var(--ink)}
.dios-human-agent-counts{display:flex;gap:7px;flex-wrap:wrap;padding:12px 0}
.dios-human-agent-counts span{border:1px solid var(--border);border-radius:999px;padding:5px 8px;font-size:9px;font-weight:700;color:#51646f;background:#f7fafb}
.dios-human-agent-list{display:grid;gap:8px}
.dios-human-agent-row{display:grid;grid-template-columns:minmax(145px,.9fr) minmax(160px,1.35fr) minmax(110px,.7fr);gap:12px;align-items:center;border:1px solid var(--border);border-radius:11px;padding:11px 12px;background:#fff}
.dios-human-agent-identity{display:flex;align-items:center;gap:9px;min-width:0}
.dios-human-agent-identity>svg{width:22px;height:22px;flex:0 0 auto;color:#176d63}
.dios-human-agent-name{min-width:0}
.dios-human-agent-name strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dios-human-agent-state{display:flex;align-items:center;gap:5px;font-size:9px;color:var(--muted);margin-top:2px}
.dios-human-agent-dot{width:7px;height:7px;border-radius:50%;background:#98a7b0}
.dios-human-agent-row[data-state=working] .dios-human-agent-dot,.dios-human-agent-row[data-state=completed] .dios-human-agent-dot{background:#4ccfae}
.dios-human-agent-row[data-state=waiting] .dios-human-agent-dot{background:#e9b24c}
.dios-human-agent-row[data-state=needs_owner] .dios-human-agent-dot{background:#ef9b66}
.dios-human-agent-task{min-width:0}
.dios-human-agent-task strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dios-human-agent-task small{display:block;color:var(--muted);font-size:9px;line-height:1.4;margin-top:3px;overflow-wrap:anywhere}
.dios-human-agent-meta{font-size:9px;color:var(--muted);line-height:1.55}
.dios-human-agent-meta strong{color:var(--ink);font-weight:650}
.dios-human-agent-room{display:inline-flex;align-items:center;gap:4px;margin-top:3px;color:var(--accent);text-decoration:none;font-size:9px}
.dios-human-agent-room:hover{text-decoration:underline}
.dios-human-agent-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--border);margin-top:12px;padding-top:12px;font-size:9px;color:var(--muted)}
.dios-human-agent-footer a{color:var(--accent);font-weight:700;text-decoration:none}
.dios-human-agent-footer a:hover{text-decoration:underline}
.dios-human-agent-loading{padding:22px 4px;color:var(--muted);font-size:11px}

/* Light Appearance: Briefcase should not contain a forced dark island. */
html:not([data-dios-theme=dark]) .lab-hero{background-color:#f6faf9;background-image:linear-gradient(145deg,#eef8f5,#f8fbfb 62%,#fff);color:var(--ink);border:1px solid #d6e5e1;box-shadow:none}
html:not([data-dios-theme=dark]) .lab-hero .eyebrow{color:#08786d}
html:not([data-dios-theme=dark]) .lab-hero p{color:#5d707b}
html:not([data-dios-theme=dark]) .lab-hero .badge.warn{background:#fff5dc;color:#725319;border-color:#e7d19d}

/* Dark Appearance: errors/warnings and ordinary controls must not fall back to light fills. */
html[data-dios-theme=dark] .dios-ops-layout .alert{background:#3b3020;color:#f0d39a;border-color:#6e5936}
html[data-dios-theme=dark] .dios-ops-layout .alert.error{background:#402727;color:#ffb4ab;border-color:#704342}
html[data-dios-theme=dark] .dios-ops-layout :is(.button.secondary,.icon-button,.dios-back-button){background:#21323e;color:#dbe7ec;border-color:#49606f}
html[data-dios-theme=dark] .dios-ops-layout :is(.button.secondary,.icon-button,.dios-back-button):hover{background:#29404d;color:#f1f7f9}
html[data-dios-theme=dark] .dios-human-agent-layer{background:#18252f;color:var(--ink);border-color:#405562;box-shadow:0 24px 70px #0008}
html[data-dios-theme=dark] .dios-human-agent-layer>header,html[data-dios-theme=dark] .dios-human-agent-footer{border-color:#354653}
html[data-dios-theme=dark] .dios-human-agent-counts span{background:#21323e;color:#c9d7de;border-color:#405861}
html[data-dios-theme=dark] .dios-human-agent-row{background:#1b2a35;border-color:#405861}
html[data-dios-theme=dark] .dios-human-agent-close:hover,html[data-dios-theme=dark] .dios-human-agent-close:focus-visible{background:#29404d;color:#f1f7f9}

/* Inline nav icons inherit the current Appearance; no external <img> dependency. */
.dios-secondary-icon-svg{display:grid;place-items:center}
.dios-secondary-icon-svg svg{width:20px;height:20px}
html[data-dios-theme=dark] .dios-secondary-icon-svg{color:#91eee0}

@media(max-width:720px){
 .dios-human-agent-layer{position:fixed;left:8px;right:8px;top:72px;width:auto;max-height:calc(100dvh - 82px)}
 .dios-human-agent-row{grid-template-columns:1fr}
 .dios-human-agent-meta{border-top:1px solid var(--border);padding-top:7px}
}


/* QUICK-AGENT-STATUS-086 — active-first, symbol-heavy Owner status. */
.dios-quick-agent-status{width:min(610px,calc(100vw - 32px))}
.dios-quick-agent-status>header p{max-width:440px}
.dios-human-agent-counts .active{border-color:#9bd9ca;color:#176d63;background:#eef9f6}
.dios-human-agent-counts .attention{border-color:#edc77d;color:#75551b;background:#fff8e8}
.dios-quick-agent-active-list{display:grid;gap:8px}
.dios-quick-agent-empty{font-size:10px;color:var(--muted);padding:10px 2px;margin:0}
.dios-quick-agent-active{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--border);border-radius:11px;padding:10px 11px;background:#fff}
.dios-quick-agent-person{display:flex;align-items:center;gap:8px;min-width:0}
.dios-quick-agent-person>svg{width:22px;height:22px;flex:0 0 auto;color:#176d63}
.dios-quick-agent-person>div{min-width:0}
.dios-quick-agent-person strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dios-quick-agent-person span{display:flex;align-items:center;gap:5px;font-size:9px;color:var(--muted);margin-top:2px}
.dios-quick-agent-signals{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;min-width:0}
.dios-quick-agent-chip{display:inline-flex;align-items:center;gap:5px;max-width:145px;min-height:30px;padding:5px 7px;border:1px solid var(--border);border-radius:8px;background:#f8fbfb;color:#40545e;text-decoration:none;font-size:9px;font-weight:650}
.dios-quick-agent-chip svg{width:15px;height:15px;flex:0 0 auto;color:#08786d}
.dios-quick-agent-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.dios-quick-agent-chip:hover,a.dios-quick-agent-chip:focus-visible{background:#eef8f5;border-color:#9ecfc8;color:#176d63}
.dios-quick-agent-passive{margin-top:9px;border-top:1px solid var(--border);padding-top:8px}
.dios-quick-agent-passive>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:5px 2px;font-size:9px;font-weight:700;color:#536772}
.dios-quick-agent-passive>summary::-webkit-details-marker{display:none}
.dios-quick-agent-passive>summary small{font-weight:500;color:var(--muted)}
.dios-quick-agent-passive-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:6px}
.dios-quick-agent-compact{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border);border-radius:9px;padding:8px 9px;background:#fff}
.dios-quick-agent-compact .dios-quick-agent-person>svg{width:18px;height:18px}
.dios-quick-agent-compact .dios-quick-agent-person strong{font-size:10px}
.dios-quick-agent-compact-actions{display:flex;align-items:center;gap:4px;position:relative}
.dios-quick-agent-compact-actions>a,.dios-quick-agent-reason>summary{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:#6d7f89;cursor:pointer}
.dios-quick-agent-compact-actions>a:hover,.dios-quick-agent-compact-actions>a:focus-visible,.dios-quick-agent-reason>summary:hover,.dios-quick-agent-reason>summary:focus-visible{background:#eef5f5;color:#08786d}
.dios-quick-agent-compact-actions svg{width:15px;height:15px}
.dios-quick-agent-reason{position:relative}
.dios-quick-agent-reason>summary{list-style:none}
.dios-quick-agent-reason>summary::-webkit-details-marker{display:none}
.dios-quick-agent-reason>p{position:absolute;right:0;top:32px;z-index:3;width:230px;margin:0;padding:9px 10px;border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 10px 28px #10182024;color:#536772;font-size:9px;line-height:1.5}
.dios-quick-agent-active[data-state=waiting] .dios-human-agent-dot{background:#e9b24c}
.dios-quick-agent-active[data-state=needs_owner] .dios-human-agent-dot{background:#ef9b66}
.dios-quick-agent-active[data-state=working] .dios-human-agent-dot{background:#4ccfae}
.dios-quick-agent-compact[data-state=completed] .dios-human-agent-dot{background:#4ccfae}
.dios-quick-agent-compact[data-state=idle] .dios-human-agent-dot{background:#98a7b0}
.dios-quick-agent-compact[data-state=unavailable] .dios-human-agent-dot{background:#c3a463}
html[data-dios-theme=dark] .dios-human-agent-counts .active{background:#183b35;color:#9ee8d8;border-color:#3d7168}
html[data-dios-theme=dark] .dios-human-agent-counts .attention{background:#3b3020;color:#f0d39a;border-color:#6e5936}
html[data-dios-theme=dark] .dios-quick-agent-active,html[data-dios-theme=dark] .dios-quick-agent-compact{background:#1b2a35;border-color:#405861}
html[data-dios-theme=dark] .dios-quick-agent-chip{background:#21323e;border-color:#405861;color:#c9d7de}
html[data-dios-theme=dark] .dios-quick-agent-chip svg{color:#91eee0}
html[data-dios-theme=dark] a.dios-quick-agent-chip:hover,html[data-dios-theme=dark] a.dios-quick-agent-chip:focus-visible{background:#29404d;color:#f1f7f9}
html[data-dios-theme=dark] .dios-quick-agent-passive{border-color:#354653}
html[data-dios-theme=dark] .dios-quick-agent-compact-actions>a:hover,html[data-dios-theme=dark] .dios-quick-agent-compact-actions>a:focus-visible,html[data-dios-theme=dark] .dios-quick-agent-reason>summary:hover,html[data-dios-theme=dark] .dios-quick-agent-reason>summary:focus-visible{background:#29404d;color:#91eee0}
html[data-dios-theme=dark] .dios-quick-agent-reason>p{background:#21323e;border-color:#405861;color:#c9d7de;box-shadow:0 12px 30px #0008}
@media(max-width:720px){
 .dios-quick-agent-active{align-items:flex-start;flex-direction:column}
 .dios-quick-agent-signals{justify-content:flex-start;width:100%}
 .dios-quick-agent-chip{max-width:calc(50% - 4px);flex:1 1 46%}
 .dios-quick-agent-passive-list{grid-template-columns:minmax(0,1fr)}
 .dios-quick-agent-reason>p{position:fixed;left:18px;right:18px;top:auto;bottom:18px;width:auto}
}


/* QUICK-AGENT-STATUS-088 final controls: private room, runtime mark, Task Info. */
.dios-quick-agent-signals,.dios-quick-agent-compact-actions{align-items:center}
.dios-quick-agent-icon,.dios-quick-task-info>summary{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--border);border-radius:8px;background:#f8fbfb;color:#607582;cursor:pointer;padding:0;list-style:none}
.dios-quick-agent-icon svg,.dios-quick-task-info>summary svg{width:15px;height:15px}
.dios-quick-agent-icon:hover,.dios-quick-agent-icon:focus-visible,.dios-quick-task-info>summary:hover,.dios-quick-task-info>summary:focus-visible{background:#eef8f5;color:#08786d;border-color:#9ecfc8}
.dios-quick-task-info{position:relative}
.dios-quick-task-info>summary::-webkit-details-marker{display:none}
.dios-quick-task-info>div{position:absolute;right:0;top:34px;z-index:4;width:280px;padding:10px 11px;border:1px solid var(--border);border-radius:9px;background:#fff;box-shadow:0 12px 30px #10182024}
.dios-quick-task-copy{display:grid;gap:4px}
.dios-quick-task-copy strong{font-size:10px;color:var(--ink)}
.dios-quick-task-copy span,.dios-quick-task-copy small{font-size:9px;line-height:1.5;color:var(--muted)}
.dios-quick-runtime-logo{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--border);border-radius:8px;background:#f8fbfb;color:#40545e;font-size:8px;font-weight:800;letter-spacing:-.2px}
.dios-quick-runtime-logo img{width:18px;height:18px;object-fit:contain}
.dios-quick-agent-active,.dios-quick-agent-compact{flex-wrap:wrap}
.dios-quick-human-activity{flex-basis:100%;margin:0;font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:750px){.dios-human-agent-layer.dios-quick-agent-status{left:72px;right:8px;width:auto;max-width:calc(100vw - 80px);box-sizing:border-box;padding:10px}.dios-quick-agent-compact-actions,.dios-quick-agent-signals{flex-wrap:wrap}.dios-quick-agent-person{min-width:0}}
.dios-quick-runtime-logo .provider-dark{display:none}
html[data-dios-theme=dark] .dios-quick-runtime-logo .provider-light{display:none}
html[data-dios-theme=dark] .dios-quick-runtime-logo .provider-dark{display:block}
.dios-quick-runtime-logo.provider-text-fallback{font-size:7px;overflow:hidden;overflow-wrap:anywhere;text-align:center;line-height:1.1}
.dios-quick-agent-compact-actions .dios-quick-agent-icon,.dios-quick-agent-compact-actions .dios-quick-runtime-logo,.dios-quick-agent-compact-actions .dios-quick-task-info>summary,.dios-quick-agent-compact-actions .dios-quick-agent-reason>summary{width:28px;height:28px}
.dios-quick-agent-reason>summary{border:1px solid transparent}
html[data-dios-theme=dark] .dios-quick-agent-icon,html[data-dios-theme=dark] .dios-quick-task-info>summary,html[data-dios-theme=dark] .dios-quick-runtime-logo{background:#21323e;color:#c9d7de;border-color:#405861}
html[data-dios-theme=dark] .dios-quick-agent-icon:hover,html[data-dios-theme=dark] .dios-quick-agent-icon:focus-visible,html[data-dios-theme=dark] .dios-quick-task-info>summary:hover,html[data-dios-theme=dark] .dios-quick-task-info>summary:focus-visible{background:#29404d;color:#91eee0;border-color:#487473}
html[data-dios-theme=dark] .dios-quick-task-info>div{background:#21323e;border-color:#405861;box-shadow:0 12px 30px #0008}
@media(max-width:720px){.dios-quick-task-info>div{position:fixed;left:18px;right:18px;top:auto;bottom:18px;width:auto}}
