.workflow-next{padding:12px 16px;margin:12px 0;overflow-wrap:anywhere}
.workflow-next[hidden]{display:none!important}
.workflow-next h3{font-size:16px;margin:0 0 6px}
.workflow-next p{font-size:14px;line-height:1.4;margin:0 0 8px}
.workflow-next p:empty{display:none}
.workflow-next .action-row{gap:6px;flex-wrap:wrap}
.workflow-next button{white-space:normal;font-size:13px;padding:8px 10px}
.workflow-next summary{font-size:14px;font-weight:600;cursor:pointer;padding:2px 0}
.workflow-next details[open] summary{margin-bottom:10px}
.workflow-next summary::after{content:' · Показать';font-size:12px;font-weight:400;color:var(--muted)}
.workflow-next details[open] summary::after{content:' · Скрыть'}
.secretary-beta-active #page-assistant.active-page{display:flex;flex-direction:column;height:calc(100dvh - 78px);min-height:0}
.secretary-beta-active #workflowAssistantNext{flex:none;margin:0 0 8px;padding:9px 14px;max-height:240px;overflow:auto}
.secretary-beta-active .beta-layout{flex:1;min-height:0;height:auto}
.secretary-beta-active .beta-heading{flex-wrap:wrap;gap:6px 10px;padding:9px 14px}
.secretary-beta-active .beta-heading h2{margin-right:auto}
.secretary-beta-active .beta-composer{padding:7px 12px;max-height:38%}
.secretary-beta-active .beta-composer #chatInput{height:48px;min-height:44px;max-height:160px;resize:vertical}
.secretary-beta-active .beta-input-box{padding:5px 10px}
.secretary-beta-active .beta-web{margin-bottom:5px}
.secretary-beta-active .beta-web-toggle{margin:2px 0}
.secretary-beta-active .beta-composer p{margin:4px 0;line-height:1.3}
.secretary-beta-active .beta-composer .small-note{padding:5px}
.secretary-beta-active .beta-layout.workflow-reading{grid-template-columns:minmax(0,1fr)}
.workflow-reading>.beta-chats,.workflow-reading .beta-composer{display:none}
.secretary-beta-active .workflow-reading #chat{min-height:220px}
@media(max-width:600px){
 .workflow-next{padding:10px}.workflow-next h3{font-size:15px}.workflow-next p{font-size:13px}
 .secretary-beta-active #page-assistant.active-page{height:auto;min-height:calc(100dvh - 78px)}
 .secretary-beta-active .beta-layout{flex:none;height:auto}
 .secretary-beta-active .beta-chats{max-height:150px}
 .secretary-beta-active .beta-conversation{height:calc(100dvh - 150px);min-height:520px}
 .secretary-beta-active .beta-layout.workflow-reading .beta-conversation{height:calc(100dvh - 150px)}
 .secretary-beta-active #workflowAssistantNext{max-height:240px}
 .secretary-beta-active .beta-heading{padding:8px}
 .secretary-beta-active .beta-composer{max-height:36%}
}
