/* MOTIVE24 living pixel office · adapted from MIT Pixel Agent Office rendering */
.pixel-office-view{border:1px solid #dfdbe8;border-radius:17px;background:#faf9fd;overflow:hidden;box-shadow:0 16px 44px rgba(49,38,91,.09)}
.pixel-office-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 20px;background:#312956;color:#f9f8ff;font-size:12px;font-weight:850;letter-spacing:.75px}
.pixel-office-topline span:last-child{font-size:11px;font-weight:650;color:#d6d1f2}
.pixel-live-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#66d3a3;box-shadow:0 0 0 3px #56c98b29}
.pixel-office-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;background:#f1eee8;scrollbar-color:#aaa5bf #f5f2ec;scrollbar-width:thin}
.pixel-office-layer{position:relative;width:100%;aspect-ratio:480/304;min-height:0;overflow:hidden}
#pixel-office-canvas{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;image-rendering:crisp-edges;cursor:crosshair}
.pixel-office-bubbles{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.pixel-speech{position:absolute;min-width:105px;max-width:192px;padding:8px 10px 9px;background:#fffefa;border:2px solid #a5a0be;border-radius:9px;box-shadow:3px 4px 0 #5b52453d;transform:translate(-50%,-100%);display:grid;gap:3px;font-size:11px;line-height:1.35;color:#3e4a3e;z-index:3;overflow-wrap:anywhere}
.pixel-speech:after{content:"";position:absolute;bottom:-8px;left:calc(50% - 6px);width:10px;height:10px;transform:rotate(45deg);background:#fffefa;border-right:2px solid #a5a0be;border-bottom:2px solid #a5a0be}
.pixel-speech strong{font-size:10px;font-weight:900;color:#51489a;letter-spacing:.2px}
.pixel-speech.active{background:#f3fff0;border-color:#5f55a5}
.pixel-speech.active:after{background:#f3fff0;border-color:#5f55a5}
.pixel-speech.recent{background:#fff6f1;border-color:#ba9884}
.pixel-speech.recent:after{background:#fff6f1;border-color:#ba9884}
.pixel-speech.edge-left{transform:translate(-13%,-100%)}
.pixel-speech.edge-right{transform:translate(-84%,-100%)}
.pixel-office-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 18px;background:#fdfcff;border-top:1px solid #e8e4ed}
.pixel-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.pixel-legend>span{display:flex;align-items:center;gap:6px;color:#67627e;font-size:11px;font-weight:600}
.pixel-status{display:block;width:8px;height:8px;border-radius:50%;background:#a7b5aa}
.pixel-status.working{background:#2aa374}
.pixel-status.waiting{background:#9ca6a0}
.pixel-status.paused{background:#dc996f}
.pixel-quick-actions{display:flex;gap:6px;flex-wrap:wrap}
.pixel-quick-actions button{min-height:38px;border:1px solid #dad6ed;background:#f6f4ff;border-radius:9px;color:#4e4689;padding:9px 13px;font-size:12px;font-weight:740;margin:0}
.pixel-quick-actions button:hover{background:#eae7ff;border-color:#bfb9e9}
.pixel-office-caption{padding:10px 19px 15px!important;color:#77718c!important;background:#fdfcff;font-size:12px!important;line-height:1.7!important;margin:0!important}
.pixel-office-caption strong{font-weight:800;color:#4c428e}
@media(max-width:780px){
.pixel-office-view{border-radius:14px}
.pixel-office-topline{padding:11px 13px;font-size:11px;flex-wrap:wrap}
.pixel-office-topline span:last-child{font-size:10px}
.pixel-office-layer{width:max(100%,560px);min-width:560px;height:auto}
.pixel-office-scroll{min-height:355px}
.pixel-speech{max-width:140px;min-width:88px;padding:7px 8px;font-size:10px}
.pixel-speech strong{font-size:9px}
.pixel-office-footer{padding:12px;gap:9px}
.pixel-legend{gap:9px}
.pixel-legend>span{font-size:10px}
.pixel-quick-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.pixel-quick-actions button{min-height:43px;padding:8px 5px;font-size:11px}
.pixel-office-caption{padding:12px 13px!important;font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.pixel-speech{transition:none!important}}
/* Compact continuous labels, with visibly different styling for role previews. */
.pixel-office-bubbles .pixel-speech{min-width:96px;max-width:145px;padding:6px 8px 7px;gap:2px;background:#fffdfb;border:1px solid #beb7d2;border-radius:8px;box-shadow:2px 3px 0 #72628524;font-size:12px;line-height:1.25;color:#302d53;text-align:left}
.pixel-office-bubbles .pixel-speech strong{font-size:9px;letter-spacing:.1px;font-weight:850;color:#77728f;white-space:nowrap}
.pixel-office-bubbles .pixel-speech span{font-weight:820;font-size:11px;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pixel-office-bubbles .pixel-speech:after{width:8px;height:8px;bottom:-5px;left:calc(50% - 4px);background:#fffdfb;border-right:1px solid #beb7d2;border-bottom:1px solid #beb7d2}
.pixel-office-bubbles .pixel-speech.preview{border-color:#d6d1e3;background:#fdfcff}
.pixel-office-bubbles .pixel-speech.preview:after{border-color:#d6d1e3;background:#fdfcff}
.pixel-office-bubbles .pixel-speech.active{border-color:#4cb996;background:#edfff6;box-shadow:2px 3px 0 #3cae7d24}
.pixel-office-bubbles .pixel-speech.active strong{color:#187b5b}
.pixel-office-bubbles .pixel-speech.active:after{border-color:#4cb996;background:#edfff6}
@media(max-width:780px){.pixel-office-bubbles .pixel-speech{min-width:89px;max-width:124px;padding:5px 7px}.pixel-office-bubbles .pixel-speech strong{font-size:8px}.pixel-office-bubbles .pixel-speech span{font-size:10px}}

.pipeline-panel{padding:20px;color:#26372f;background:#faf9f5;border-top:1px solid #d9ded5;font-size:14px;line-height:1.6}.pipeline-panel h3{font-size:18px}.pipeline-run{border-top:1px solid #d9ded5;padding:12px 0}.pipeline-run summary{cursor:pointer;min-height:44px;padding:8px 0;font-weight:700;overflow-wrap:anywhere}.pipeline-run summary:focus-visible{outline:3px solid #36644d}.pipeline-steps{padding-left:24px}.pipeline-steps li{padding:8px 0}.pipeline-steps span,.pipeline-steps small{display:block;color:#46564d}.pipeline-error{color:#9a3325!important}.pipeline-steps pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.pipeline-run p{overflow-wrap:anywhere}

.pipeline-run pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:480px;overflow:auto}
