#agentUnifiedPanel{position:fixed;inset:82px 16px 32px auto;width:min(1180px,calc(100vw - 80px));z-index:120;background:var(--panel,#24282a);color:var(--text);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 70px #0007;display:flex;flex-direction:column;overflow:hidden;font-size:13px}
#agentUnifiedPanel[hidden],#agentUnifiedPanel [hidden]{display:none!important}
#agentUnifiedPanel button,#agentUnifiedPanel select,#agentUnifiedPanel textarea,#agentUnifiedPanel input{font-size:12px;min-width:0;max-width:100%}
#agentUnifiedPanel button{padding:6px 9px;white-space:normal;line-height:1.5}
.au-header,.au-taskbar{display:flex;align-items:center;gap:8px;padding:9px 14px;border-bottom:1px solid var(--line);flex:none;flex-wrap:wrap}
.au-header{justify-content:space-between}.au-header strong{font-size:16px}.au-header p{margin:3px 0 0;font-size:12px;color:var(--muted)}
.au-taskbar label{display:flex;align-items:center;gap:6px;flex:1;min-width:190px}.au-taskbar select{flex:1;width:180px}.au-taskbar span{color:var(--accent)}
.au-main{display:grid;grid-template-columns:minmax(240px,33%) minmax(0,1fr);min-height:0;flex:1;overflow:hidden}
.au-chat{display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--line)}
#auTimeline{overflow:auto;padding:12px;flex:1;min-height:80px;overscroll-behavior:contain}
.au-message{padding:9px 11px;margin-bottom:9px;border:1px solid var(--line);border-radius:9px;overflow-wrap:anywhere}.au-message strong{font-size:12px;color:var(--accent)}.au-message p{font-size:12px;line-height:1.7;white-space:pre-wrap;margin:5px 0}.au-user{background:var(--accent-dark,#303a40)}
#auModelSettings{padding:8px 10px;border-top:1px solid var(--line);max-height:35vh;overflow:auto;flex:none}#auModelSettings summary{cursor:pointer;color:var(--accent);font-size:12px}#auModelSettings label{font-size:12px}#auParameterHost .aw-fields{grid-template-columns:repeat(2,minmax(0,1fr));margin:9px 0}#auParameterHost select,#auParameterHost input{width:100%;padding:6px}
.au-detail{min-width:0;min-height:0;display:flex;flex-direction:column}.au-tabs{display:flex;gap:5px;flex-wrap:wrap;padding:8px;border-bottom:1px solid var(--line);flex:none}.au-tabs .active{border-color:var(--accent);color:var(--accent)}
.au-local-tools{display:flex;gap:7px;align-items:center;padding:7px 10px;border-bottom:1px solid var(--line);flex-wrap:wrap}.au-local-tools label{display:flex;gap:6px;align-items:center;flex:1;min-width:130px;font-size:12px}.au-local-tools select{flex:1;width:120px}.au-management{margin-top:20px;border-top:1px solid var(--line);padding-top:10px}.au-management summary{cursor:pointer;font-size:12px}
#auReviewHost,#auCheckHost{overflow:auto;padding:10px;min-height:0;flex:1;overscroll-behavior:contain}#auCheckHost h3{font-size:15px}.au-note{font-size:11px;line-height:1.6;color:var(--muted)}
.au-issue{border-left:3px solid var(--accent);padding:8px;line-height:1.6}.au-issue.error{border-color:#d97070}.au-issue button{margin-left:7px}
.au-footer{border-top:1px solid var(--line);padding:8px 12px;flex:none;max-height:42%;overflow:auto}.au-footer p{font-size:11px;line-height:1.5;margin:3px 0;color:var(--muted)}.au-footer label{display:block;font-size:12px;margin:7px 0 4px}.au-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.au-compose{display:flex;gap:8px}.au-compose textarea{resize:vertical;flex:1;min-height:55px;max-height:130px;line-height:1.6}.au-compose button{flex:none;max-width:100px}
/* Existing review forms become detail views in this workspace, preserving their handlers. */
#agentUnifiedPanel #agentWorkflowDialog{position:static;inset:auto;display:block;width:100%;max-width:none;height:auto;max-height:none;margin:0;border:0;box-shadow:none;padding:0;background:transparent;color:inherit}
#agentUnifiedPanel .aw-header,#agentUnifiedPanel .aw-input,#agentUnifiedPanel .aw-footer{display:none!important}#agentUnifiedPanel .aw-body{display:block;padding:0;overflow:visible;max-height:none}#agentUnifiedPanel #awReview{overflow:visible;max-height:none;padding:0}#agentUnifiedPanel #awPreview{width:100%;height:auto;max-height:300px;object-fit:contain}#agentUnifiedPanel #awStatus{font-size:12px;color:var(--accent);white-space:pre-wrap}
#agentUnifiedPanel #canvasConversationPanel{position:static;inset:auto;display:block;width:100%;max-width:none;height:auto;max-height:none;border:0;box-shadow:none;padding:0;background:transparent}
#agentUnifiedPanel .cc-header,#agentUnifiedPanel .cc-context,#agentUnifiedPanel .cc-footer label,#agentUnifiedPanel .cc-footer details,#agentUnifiedPanel .cc-footer .cc-row{display:none!important}
#agentUnifiedPanel .cc-history{overflow:visible;max-height:none;flex:none;padding:0}#agentUnifiedPanel:not(.au-all-history) .cc-turn:not(:last-child){display:none}#agentUnifiedPanel .cc-footer{padding:4px;border:0}#agentUnifiedPanel .cc-review{padding:0}#agentUnifiedPanel .cc-previews{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:950px){#agentUnifiedPanel{inset:70px 8px 28px;width:calc(100vw - 16px)}.au-main{grid-template-columns:minmax(210px,35%) minmax(0,1fr)}.au-taskbar{padding:6px 10px}.au-footer{max-height:43%}}
@media(max-width:650px){.au-main{display:flex;flex-direction:column}.au-chat{max-height:34%;flex:none;min-height:95px;border-right:0;border-bottom:1px solid var(--line)}.au-detail{flex:1;min-height:120px}#auModelSettings{max-height:130px}.au-header p{font-size:11px}.au-taskbar button{font-size:11px}#agentUnifiedPanel .cc-previews{grid-template-columns:1fr}.au-footer{max-height:44%}}
@media(max-height:700px){#agentUnifiedPanel{top:50px;bottom:20px}.au-header{padding:6px 10px}.au-header p{display:none}.au-taskbar{padding:5px 8px}.au-footer{padding:5px 10px}.au-footer p{max-height:34px;overflow:auto}.au-compose textarea{min-height:42px}.au-footer .au-actions{gap:3px}}
