/* Module Agenti (local only for now): team states, proposals and decisions. Taken from astra/pracoviste without its shell overrides. */
.workspace-heading {display:grid;justify-content:space-between;align-items:start;gap:8px}
.workspace-heading h2 {font-size:22px;line-height:28px;letter-spacing:-.7px;font-weight:550}
.workspace-heading p {color:var(--text-muted);font-size:13px;line-height:20px;margin-top:6px;max-width:70ch}
.work-sync {font-size:11px;line-height:18px;color:var(--text-muted);display:inline-flex;gap:7px;align-items:center;flex:none;padding-top:5px}
.work-sync::before {content:"";width:6px;height:6px;border-radius:50%;background:var(--text-muted);flex:none}
.work-sync[data-status="ok"]::before {background:var(--ok)}
.work-sync[data-status="warn"] {color:var(--warn)}.work-sync[data-status="warn"]::before {background:var(--warn)}
.work-section__head {display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;margin-bottom:16px}
.work-section__head h3 {font-size:15px;line-height:22px;letter-spacing:-.2px;font-weight:600}
.work-section__head .btn {font-size:11px;white-space:nowrap;min-height:44px;padding:7px 12px}
.work-section {min-width:0}.work-update {font-size:11px;line-height:18px;color:var(--text-muted);margin-top:16px}
.work-empty {color:var(--text-muted);font-size:13px;line-height:22px;padding:24px 0;max-width:58ch}
.work-agent {appearance:none;text-align:left;display:flex;flex-direction:column;gap:9px;padding:18px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:6px;font:inherit;min-width:0;cursor:pointer}
.work-agent:hover {background:var(--surface-1);border-color:var(--text-muted)}
.work-agent[aria-pressed="true"] {border-color:var(--text-strong);background:var(--surface-2)}
.work-agent__heading {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.work-agent__heading strong {font-size:17px;line-height:22px;font-weight:550;letter-spacing:-.2px}
.work-agent__role {font-size:12px;line-height:18px;color:var(--text-muted)}
.work-agent__last {font-size:11px;line-height:17px;color:var(--text-muted);margin-top:auto}
.work-state {display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:17px;color:var(--text-muted)}
.work-state::before {content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
.work-state--info {color:var(--info)}.work-state--ok {color:var(--ok)}.work-state--warn {color:var(--warn)}.work-state--bad {color:var(--bad)}
.work-agent--compact {border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;padding:16px 14px;gap:8px}
.work-agent--compact:last-child {border-right:0}.work-agent--compact .work-agent__heading {display:grid;gap:8px}
.work-agent--compact .work-agent__heading strong {font-size:14px;line-height:20px}
.work-agent--compact .work-agent__role {font-size:11px;line-height:17px}
.work-team {display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.work-columns {display:grid;grid-template-columns:minmax(0,1fr);gap:28px;margin-top:8px}
.work-proposals {display:grid;align-content:start;gap:0}
.work-proposals--history {grid-template-columns:minmax(0,1fr);gap:0 28px}
.work-proposal {appearance:none;display:flex;flex-direction:column;gap:12px;background:transparent;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:-1px;color:var(--text);padding:20px 0;min-width:0;font:inherit;text-align:left;cursor:pointer}
.work-proposal:hover {background:var(--surface)}
.work-proposal>strong {font-size:16px;line-height:24px;font-weight:550;letter-spacing:-.2px;overflow-wrap:anywhere}
.work-proposal__meta {display:flex;justify-content:space-between;align-items:start;gap:8px;font-size:12px;line-height:20px;flex-wrap:wrap}
.work-proposal__meta .badge {font-size:10px;padding:1px 7px}
.work-proposal__foot {display:grid;gap:10px;color:var(--text-muted);font-size:11px;line-height:18px}
.work-proposal__action {color:var(--text-strong);font-size:12px;font-weight:500}
.work-activity li.feed-entry {grid-template-columns:6px minmax(0,1fr);gap:4px 12px}
.work-activity .f-time {grid-column:2;font-size:11px}.work-activity .f-body,.work-activity .f-source {grid-column:2;text-align:left}
.work-activity .f-text {font-size:13px;line-height:21px}.work-activity .f-meta {font-size:11px}
.work-drawer {position:fixed;inset:0 0 0 auto;margin:0;width:min(560px,100%);height:100dvh;max-height:100dvh;max-width:100%;padding:0;background:var(--surface);color:var(--text);border:0;border-left:1px solid var(--line-strong);overflow-y:auto}
.work-drawer::backdrop {background:rgba(0,0,0,.55)}
.work-drawer__head {display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line);font-size:12px;color:var(--text-muted)}
.work-drawer__content {display:grid;gap:22px;padding:24px 20px}
.work-drawer__content h2 {font-size:25px;line-height:34px;letter-spacing:-.6px;font-weight:550;overflow-wrap:anywhere}
.work-drawer__content h3 {font-size:14px;line-height:22px;margin-bottom:8px}
.work-drawer__content p {font-size:14px;line-height:23px}
.work-drawer__byline {display:flex;justify-content:space-between;gap:12px;font-size:13px;line-height:22px;flex-wrap:wrap}
.work-facts {display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px 16px;font-size:12px;line-height:20px;margin:0}
.work-facts dt {color:var(--text-muted)}.work-facts dd {margin:0;overflow-wrap:anywhere}
.work-action-explanation {padding:20px 0;border-block:1px solid var(--line)}
.work-params summary {font-size:13px;line-height:22px;cursor:pointer;padding:11px 0;min-height:44px;box-sizing:border-box}
.work-params pre {font:12px/20px var(--font-sans);white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0;background:var(--bg);padding:16px}
.work-drawer__actions {padding:22px 20px;border-top:1px solid var(--line);display:grid;gap:20px;background:var(--surface)}
.work-decision-error:not(:empty) {padding:0 26px 24px;font-size:13px;line-height:22px}
.work-decision-result {font-size:16px;line-height:24px}
@media(min-width:821px) {
 .workspace-heading {display:flex;gap:20px}.workspace-heading h2 {font-size:24px;line-height:30px}
 .work-columns {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .work-team {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.work-agent {padding:20px;gap:13px}
 .work-proposals--history {grid-template-columns:repeat(2,minmax(0,1fr))}
 .work-section__head .btn {min-height:34px}
 .work-drawer__head {padding:20px 26px}.work-drawer__content {padding:28px 26px;gap:26px}.work-drawer__actions {padding:24px 26px}
}
@container win (max-width:1200px) {
 .workspace-heading h2 {font-size:21px}.workspace-heading p {max-width:46ch}.work-sync {font-size:10px}
 .work-columns {gap:22px}.work-section__head {flex-wrap:wrap}
}
@container win (min-width:1201px) {
 .work-team {grid-template-columns:repeat(3,minmax(0,1fr))}.work-section__head {gap:16px}.work-section__head h3 {font-size:16px}
}
@media(prefers-reduced-motion:reduce) { .work-agent,.work-proposal {transition:none} }

/*
 * The robot of an agent from the front (js/shell/robot.js): the drawing of the TVs of the twin. It blinks; while the
 * agent works (the card is not idle) it floats.
 */
.robot {display:inline-block;flex:none;width:var(--robot-w,64px);aspect-ratio:200/220;filter:drop-shadow(0 6px 10px rgba(0,0,0,.35));line-height:0}
.robot svg {display:block;width:100%;height:100%;overflow:visible}
.robot .oci {transform-origin:100px 52px;animation:robot-blink 5s infinite}
@keyframes robot-blink {0%,93%,100% {transform:scaleY(1)} 95% {transform:scaleY(.1)}}
@keyframes robot-float {0%,100% {transform:translateY(0)} 50% {transform:translateY(-5px)}}
.work-agent {flex-direction:row;align-items:flex-start;gap:14px}
.work-agent__body {display:flex;flex-direction:column;gap:9px;min-width:0;flex:1;align-self:stretch}
.work-agent__face {flex:none;line-height:0}
.work-agent:not([data-state="idle"]) .robot,.sr-agent:not([data-state="idle"]) .robot {animation:robot-float 4s ease-in-out infinite}
.work-agent--compact {flex-direction:column;gap:8px}
.work-agent--compact .work-agent__body {gap:8px}
@media(prefers-reduced-motion:reduce) { .robot,.robot .oci {animation:none!important} }/* without proposals (the agents only read the log, 14. 11. 2026) the activity takes the whole width */
.work-section[hidden] {display:none}
.work-columns:has(> .work-section[hidden]) {grid-template-columns:minmax(0,1fr)}
