.order-workspace{display:grid;grid-template-columns:minmax(155px,205px) minmax(0,1fr);gap:12px;align-items:start}
.order-workspace-bar,.order-workspace-bar nav,.order-workspace-bar [data-actions],.analytics-toolbar nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.order-workspace-bar{padding:8px 12px;margin-bottom:12px}
.order-workspace-bar [data-actions]{margin-left:auto}
.order-workspace-nav,.order-folder-tree{padding:8px}
.order-workspace-nav button,.order-folder-tree [data-folder]{display:block;width:100%;text-align:left;border-color:transparent}
.order-workspace-nav button[aria-current=true],.order-folder-tree button[aria-current=true],.analytics-toolbar button[aria-current=true],.order-portfolio-files button[aria-pressed=true]{background:var(--blueSoft);color:var(--blue)}
.order-workspace-body,.order-document-content,.order-document-preview{min-width:0}
.order-workspace-body>[hidden]{display:none!important}
.order-local-search{min-width:160px;flex:1;margin:0}
.order-local-search input{margin:0}
.order-search-matches{display:flex;gap:8px;flex-wrap:wrap}
.order-discussion-frame{display:block;width:100%;height:calc(100dvh - 180px);min-height:340px;border:1px solid var(--line);border-radius:8px;background:white}
.order-discussion-embed .chat-list,.order-discussion-embed .mobile-chat-back{display:none!important}
.order-discussion-embed .chat-layout{grid-template-columns:minmax(0,1fr)!important}
.order-documents{display:grid;grid-template-columns:minmax(125px,170px) minmax(170px,1fr) minmax(240px,1.4fr);align-items:start;gap:10px;padding:10px}
.order-document-tools{gap:6px;align-items:center}
.order-document-tools input[type=search],.order-document-tools select{flex:1;min-width:120px;width:auto;margin:0}
.order-document-preview iframe{width:100%;height:60dvh;min-height:300px;border:1px solid var(--line);border-radius:6px}
.order-document-preview h2{overflow-wrap:anywhere}
.order-portfolio-files{display:grid;gap:4px;max-height:62dvh;overflow:auto}
.order-portfolio-tiles{grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr))}
.order-portfolio-files article{display:flex;align-items:center;min-width:0;border-bottom:1px solid var(--line);gap:4px}
.order-portfolio-files button{flex:1;min-width:0;text-align:left;border-color:transparent;overflow-wrap:anywhere}
.order-portfolio-files strong,.order-portfolio-files small,.order-event small{display:block}
.order-event{display:grid;grid-template-columns:minmax(115px,170px) 1fr;padding:8px 0;border-bottom:1px solid var(--line)}
.order-event p{margin:4px 0}
.specification-operations{margin:8px 0;max-height:250px;overflow:auto}
.specification-operations label{margin:3px 0}
.specification-description{grid-column:1/-1}
.analytics-toolbar{padding:8px 12px;margin-bottom:12px}
.analytics-toolbar form{align-items:end}
.analytics-toolbar p{margin:4px 0}
.analytics-metrics,.analytics-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:10px;margin-bottom:12px}
.analytics-metric{text-align:left;display:grid;gap:4px;align-content:start;min-width:0;white-space:normal}
.analytics-metric strong{font-size:25px;color:var(--blue)}
.analytics-metric small{color:var(--muted)}
.analytics-chart{max-height:460px;overflow:auto}
.analytics-chart button{display:grid;width:100%;grid-template-columns:minmax(0,1fr) minmax(40px,1fr) auto;gap:6px;align-items:center;text-align:left;white-space:normal}
.analytics-chart button progress{width:100%;margin:0}
@media(max-width:1100px){.order-documents{grid-template-columns:minmax(140px,1fr) minmax(0,2fr)}.order-document-preview{grid-column:1/-1}}
@media(max-width:800px){
 .order-workspace,.order-documents{grid-template-columns:minmax(0,1fr)}
 .order-workspace-nav{display:flex;gap:4px;overflow-x:auto}
 .order-workspace-nav button{width:auto;white-space:nowrap}
 .order-workspace-bar [data-actions]{margin-left:0}
 .order-document-preview iframe{height:55dvh}
 .order-document-preview{scroll-margin-top:70px}
}
.analytics-toolbar{position:sticky;top:var(--analytics-top,58px);z-index:3;display:flex;align-items:center;gap:8px;overflow-x:auto;padding:5px 8px}
.analytics-toolbar nav,.analytics-toolbar form{flex:none;flex-wrap:nowrap;align-items:center;gap:4px}
.analytics-toolbar form label{display:flex;align-items:center;gap:4px;margin:0}
.analytics-toolbar button,.analytics-toolbar input{margin:0;min-height:30px;padding:4px 7px;white-space:nowrap}
.analytics-toolbar p{margin:0;white-space:nowrap;font-size:11px}
.initial-article{min-width:0;margin:0;padding:0;border:0}
.initial-article .row{flex-wrap:nowrap}
.initial-article select{width:auto}
.initial-article input{min-width:0;flex:1}
.initial-passport{margin:12px 0}
#initialOrderForm:has(#favoriteRail){padding-right:24px}
#initialOrderForm .manual-order-header{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));align-items:end}
.order-workspace{display:block}
.order-action-dialog{width:min(1100px,calc(100% - 24px));max-width:none;max-height:94dvh;overflow:auto}
.order-action-dialog>.row{margin-bottom:10px}
.order-inline-actions{flex-wrap:wrap;gap:6px}
.order-form-actions,.order-portfolio-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.order-form-actions{justify-content:flex-start;padding:8px;margin-bottom:10px;overflow-x:auto}
.order-portfolio-actions{grid-column:1/-1;justify-content:flex-start;overflow-x:auto}
.order-form-actions button,.order-portfolio-actions :is(button,a){display:inline-flex;align-items:center;flex:none;min-height:34px;height:34px;box-sizing:border-box;padding:4px 10px;margin:0;white-space:nowrap}
.order-prototype-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;padding:14px 16px}
.order-prototype-hero nav,.order-hero-info{grid-column:1/-1}
.order-prototype-hero .order-local-search{min-width:0}
.order-hero-info h1{margin:0;font-size:clamp(19px,2vw,27px);overflow-wrap:anywhere}
.order-hero-info p{margin:4px 0 0;color:var(--muted)}
.order-prototype-stats,.order-prototype-grid{display:grid;gap:10px;margin-bottom:10px}
.order-prototype-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.order-prototype-stats section{display:grid;gap:4px;padding:10px 13px}
.order-prototype-stats span{font-size:12px;color:var(--muted)}
.order-prototype-stats strong{font-size:20px;color:var(--blue)}
.order-prototype-stats .order-completed-stat{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.order-prototype-stats .order-completed-stat span{grid-column:1/-1}
.order-prototype-stats .order-completed-stat button{grid-column:2;grid-row:2;min-height:28px;padding:3px 8px;margin:0}
.order-prototype-grid{grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start}
.order-prototype-grid section{min-width:0}
.order-prototype-progress progress{width:100%}
.order-prototype-composition{width:100%;box-sizing:border-box}
.order-prototype-composition .manual-detail-project{min-width:0}
.order-prototype-composition .manual-detail-nodes{display:flex;grid-template-columns:none;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;padding:2px 2px 7px;scrollbar-width:thin}
.order-prototype-composition .manual-detail-nodes>article{flex:0 0 clamp(210px,22vw,285px);scroll-snap-align:start;box-sizing:border-box}
.order-structure-carousel-controls{display:flex;gap:4px;margin-left:auto}
.order-structure-carousel-controls button{min-width:30px;min-height:28px;padding:2px 7px;margin:0}
.order-prototype-overview>.manual-section,.order-prototype-lower>.order-mailing-recipients{height:100%;min-height:0;margin:0;box-sizing:border-box}
.order-prototype-lower{grid-template-columns:minmax(0,1fr) minmax(260px,1fr)}
.order-prototype-events{margin:0}
.order-prototype-overview,.order-prototype-lower{align-items:stretch}
.order-prototype-overview>.card,.order-prototype-lower>.card,.order-prototype-composition{padding:12px 14px;margin:0}
.order-prototype-composition{margin-bottom:10px}
.order-prototype-overview>.manual-section,.order-prototype-lower>.order-mailing-recipients{height:auto!important}
.order-prototype-overview>.manual-section>.card-head{display:block;border:0;padding:0;margin:0}
.order-prototype-overview>.manual-section h2,.order-prototype-lower h2,.order-prototype-composition h2{font-size:17px;margin:0}
.order-prototype-overview>.manual-section h2{display:flex;align-items:center;min-height:35px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.order-prototype-overview .order-inline-actions{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:8px 0 4px}
.order-prototype-overview .order-inline-actions button{flex:none;white-space:nowrap;margin:0}
.order-prototype-composition .manual-detail-project{padding:8px 0 0}
.order-prototype-composition .manual-detail-project>.row{justify-content:flex-start;gap:8px 14px;flex-wrap:wrap;margin-bottom:8px}
.order-prototype-composition .manual-detail-project h3{font-size:14px;margin:0;overflow-wrap:anywhere}
.order-prototype-composition .manual-detail-project>.row>button{margin-inline-start:auto}
.order-prototype-composition .manual-detail-nodes>article{flex-basis:clamp(240px,26%,360px);min-width:0;padding:10px;overflow-wrap:anywhere}
.order-prototype-composition .manual-detail-nodes>article>.product-node-name{text-align:start;margin:2px 0 5px}
.order-prototype-composition .manual-detail-nodes>article>p{margin:4px 0}
.order-prototype-composition .manual-detail-nodes button{min-height:30px;padding:4px 8px}
.order-prototype-lower>.order-mailing-recipients{display:flex;flex-direction:column;overflow:hidden}
.order-prototype-lower>.order-mailing-recipients>h2,.order-prototype-lower .order-prototype-events>.card-head{min-height:38px;box-sizing:content-box;padding-bottom:8px;border-bottom:1px solid var(--line);margin:0 0 8px}
.order-prototype-lower>.order-mailing-recipients>h2{display:flex;align-items:center;gap:6px}
.order-prototype-lower .order-recipient-list{flex:1 1 0;contain:size;min-height:96px;overflow-y:auto}
@media(max-width:1050px){
 .order-prototype-overview,.order-prototype-lower{grid-template-columns:minmax(0,1fr)}
 .order-prototype-lower .order-recipient-list{flex:auto;contain:none;min-height:0;max-height:165px}
}
.order-prototype-overview{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
.order-prototype-overview .order-inline-actions{padding-bottom:10px;scrollbar-width:thin}
.order-prototype-overview .order-inline-actions::-webkit-scrollbar{height:5px}
.order-prototype-composition .manual-detail-nodes>article.order-child-work{display:none}
.order-prototype-composition .manual-detail-nodes>article>button{margin:4px 4px 0 0}
.manual-requirements{display:block;margin-top:10px}
.manual-requirements textarea{display:block;width:100%;box-sizing:border-box;min-height:76px;resize:vertical}
dialog.order-node-work-dialog{width:min(1050px,calc(100vw - 24px));max-width:none;max-height:min(80dvh,780px);padding:0;overflow:hidden}
.order-node-work-dialog header{padding:10px 14px;border-bottom:1px solid var(--line)}
.order-node-work-dialog header h2{margin:0;font-size:17px}
.order-node-work-track{display:flex;gap:12px;padding:14px;overflow:auto;max-height:calc(80dvh - 65px)}
.order-node-work-track>article{flex:0 0 min(280px,75vw);border:1px solid var(--line);border-radius:8px;padding:12px;box-sizing:border-box}
.order-node-work-track>details{flex:1;min-width:min(350px,75vw)}
.order-search-panel.order-portfolio-filters{display:flex;align-items:end;flex-wrap:nowrap;overflow-x:auto}
.order-search-panel.order-portfolio-filters>label{flex:0 0 145px;min-width:0}
.order-search-panel.order-portfolio-filters>label:first-child{flex-basis:220px}
.order-search-panel.order-portfolio-filters .order-portfolio-actions{display:flex;flex:none;align-items:end;gap:6px;overflow:visible}
@media(max-width:1050px){.order-prototype-overview{grid-template-columns:minmax(0,1fr)}}
.heading #manualBack{display:none}
.order-drafts-dialog{width:min(720px,calc(100vw - 24px));max-height:80dvh}
.order-drafts-list{display:grid;gap:6px;max-height:65dvh;overflow:auto}
.order-drafts-list button{text-align:left}
.order-drafts-list small{display:block;color:var(--muted)}
.order-node-work-dialog[open]{display:flex;flex-direction:column;height:min(78dvh,720px)}
.order-node-work-dialog header{flex:none}
.order-node-work-track{flex:1;min-height:0;max-height:none;align-items:stretch;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.order-node-work-track>article{height:max-content;min-width:0}
.order-node-work-track>article>strong,.order-node-work-track>article>.product-node-name,.order-node-work-track>article>.order-article,.order-node-work-track>article>small{display:block;margin-bottom:5px}
.order-node-work-track>article>p{margin:6px 0}
.order-node-work-track>article .order-work-parent{color:var(--muted)}
.order-node-work-track>article.order-child-work{margin:0}
.order-node-work-track>article .order-add-node-work{display:block;width:100%;margin:10px 0 6px}
.order-node-work-track>article [data-node-claim],.order-node-work-track>article [data-node-delegate],.order-node-work-track>article [data-node-performers]{display:inline-flex;align-items:center;min-height:30px;margin:3px 4px 3px 0;padding:4px 8px}
.order-node-work-track>article [data-node-performers]{white-space:nowrap}
.order-node-work-track>article .work-node-assignments{margin:7px 0;padding:7px 0;border-block:1px solid var(--line)}
.order-node-work-track>article .work-node-assignments .row{display:flex;flex-wrap:wrap;gap:4px}
.order-node-work-track>article>button:last-child{margin-top:6px}
.order-node-work-track>article.order-node-main-copy{background:#f7faff}
@media(max-width:650px){.order-node-work-track{gap:8px;padding:10px}.order-node-work-track>article{flex-basis:min(260px,78vw)}}
dialog.order-chat-drawer{inset:0 0 0 auto;margin:0;width:min(550px,100%);max-width:none;height:100dvh;max-height:none;box-sizing:border-box;padding:0;border-radius:12px 0 0 12px;overflow:hidden}
dialog.order-chat-drawer[open]{display:flex;flex-direction:column;animation:order-chat-enter .2s ease-out}
.order-chat-drawer header{padding:8px 12px;border-bottom:1px solid var(--line);flex:none}
.order-chat-drawer h2{margin:0;font-size:16px}
.order-chat-body{flex:1;min-height:0}
.order-chat-body iframe[hidden]{display:none!important}
.order-chat-body .order-discussion-frame{height:100%;min-height:0;border:0;border-radius:0}
@keyframes order-chat-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){dialog.order-chat-drawer[open]{animation:none}}
@media(max-width:850px){.order-prototype-grid,.order-prototype-hero{grid-template-columns:minmax(0,1fr)}.order-prototype-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.order-workspace,.order-workspace-body{overflow:visible}
.order-prototype-hero{position:sticky;top:var(--order-toolbar-offset,58px);z-index:5;display:flex;justify-content:flex-end;flex-wrap:wrap;padding:6px 10px;background:var(--surface,#fff)}
.order-prototype-hero .order-hero-info{margin-right:auto;font-weight:600}
.order-prototype-hero .order-local-search{flex:0 1 190px}
.order-documents-and-recipients{grid-template-columns:minmax(0,1fr) minmax(260px,1fr)}
.order-documents-and-recipients .order-mailing-recipients{height:auto!important;min-height:170px}
.order-chat-drawer header{padding:4px 8px;gap:5px}
dialog.order-chat-drawer{width:min(470px,100%)}
.order-chat-topics{display:flex;flex:none;align-items:center;min-width:0;overflow-x:auto;white-space:nowrap}
.order-chat-topics span{padding:4px 8px}
.order-chat-unread,[data-topic-unread]{background:#ba283f;color:#fff;border-radius:20px;padding:1px 5px;margin-left:4px}
.order-chat-unread[hidden],[data-topic-unread][hidden]{display:none}
.order-action-dialog:not(.order-portfolio-dialog) :is([data-window-size],.order-window-edge){display:none}
dialog.order-portfolio-dialog[open]{position:fixed;inset:12px auto auto 12px;margin:0;width:calc(100% - 24px);height:calc(100dvh - 24px);max-height:none;box-sizing:border-box;padding:0;display:flex;flex-direction:column;overflow:hidden}
dialog.order-portfolio-dialog[data-expanded=true]{inset:0;width:100%;height:100dvh;border-radius:0}
.order-portfolio-dialog .order-window-header{flex:none;margin:0;padding:9px 14px;border-bottom:1px solid var(--line);cursor:move;touch-action:none}
.order-portfolio-dialog .order-window-header h2{margin:0;margin-right:auto}
.order-portfolio-dialog .order-workspace-result{flex:1;min-height:0;overflow:auto}
.order-portfolio-dialog .order-document-tools,.order-portfolio-dialog .order-folder-heading{position:sticky;top:0;z-index:2;background:var(--surface,#fff);padding:5px 0}
.order-portfolio-dialog .order-documents{height:100%;box-sizing:border-box}
.order-portfolio-dialog .order-document-content,.order-portfolio-dialog .order-folder-tree{min-height:0;max-height:100%;overflow:auto}
.order-portfolio-dialog button,.order-portfolio-dialog select{min-height:32px;border-radius:6px}
.order-folder-heading{justify-content:space-between}
.order-folder-tree [data-folder-edit=delete]{color:#aa2137;border-color:#eab6bf}
.order-window-edge{position:absolute;z-index:8;touch-action:none}
.order-window-edge:is(.edge-e,.edge-w){top:8px;bottom:8px;width:7px;cursor:ew-resize}
.order-window-edge:is(.edge-n,.edge-s){left:8px;right:8px;height:7px;cursor:ns-resize}
.edge-e{right:0}.edge-w{left:0}.edge-n{top:0}.edge-s{bottom:0}
@media(max-width:850px){.order-documents-and-recipients{grid-template-columns:minmax(0,1fr)}.order-prototype-hero .order-local-search{flex-basis:145px}}
.order-chat-drawer header>button{margin:0;min-height:30px;padding:3px 7px;font-size:12px;flex:none}
.order-chat-drawer header>button[hidden]{display:none}
[data-delete-topic]{color:#aa2137}
.order-chat-drawer header{flex-wrap:nowrap}
.order-chat-body{position:relative}
.order-chat-loading{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.order-folder-toolbar{position:sticky;top:0;z-index:2;background:var(--surface,#fff);padding-bottom:4px}
.order-prototype-hero .order-local-search{margin-left:auto}.order-prototype-hero [data-actions]{margin-left:0}
dialog.order-chat-drawer{width:min(940px,100%)}
.order-chat-drawer header[hidden]{display:none}
.order-chat-controls{display:flex;align-items:center;gap:4px;flex:none}
.order-chat-controls>button{margin:0;min-height:30px;padding:3px 7px}
.order-chat-controls>button[hidden]{display:none}
.order-chat-controls [data-delete-topic]{color:#aa2137}
.order-discussion-embed #chatPanelBody{display:flex!important;flex-direction:column;min-height:0;height:100%}
.order-discussion-embed #chatStream{flex:1;min-height:0}
.order-discussion-embed #chatForm{flex:none}
.order-discussion-embed .chat-header{position:relative;display:flex!important;align-items:center;gap:6px;padding:6px 8px;min-height:0;flex:none;flex-wrap:wrap}
.order-discussion-embed .chat-header>.chat-avatar,.order-discussion-embed .chat-header>div:has(>h2){display:none}
.order-discussion-embed .order-chat-controls{margin-left:auto}
.order-discussion-embed .chat-header .chat-dialog-tools{width:auto;flex:0 0 auto;margin:0}
.order-discussion-embed .order-chat-topics{flex:none;display:flex;overflow-x:auto;border-bottom:1px solid var(--line);padding:2px 8px;background:#fff}
.order-discussion-embed .chat-composer textarea{min-height:88px!important;max-height:min(34dvh,270px)!important;overflow-y:auto;box-sizing:border-box}
.order-discussion-embed .order-chat-search-toggle{display:inline-grid!important;place-items:center;min-width:30px;min-height:30px;padding:2px 6px}
.order-discussion-embed .chat-dialog-tools:not(.mobile-tools-search-open) .chat-dialog-search{display:none!important}
.order-discussion-embed .chat-dialog-tools.mobile-tools-search-open .chat-dialog-search{display:flex!important;position:absolute;top:100%;left:8px;right:8px;z-index:40;gap:4px;width:auto;max-width:none;margin:0;padding:5px;background:#fff;border:1px solid var(--line);border-radius:7px}
.order-discussion-embed .chat-dialog-search input{min-width:0;flex:1;margin:0}
.order-discussion-embed .order-search-close{flex:none;margin:0;padding:2px 8px}

.messenger-order-topics{padding:2px 8px;border-bottom:1px solid var(--line)}

#chatPanelBody:has(>.messenger-order-topics)>.chat-header{display:flex;flex-wrap:wrap;align-items:center;min-height:0;padding:5px 8px;gap:6px}
#chatPanelBody:has(>.messenger-order-topics)>.chat-header>.chat-avatar{display:none}
#chatPanelBody:has(>.messenger-order-topics)>.chat-header>div:has(>h2){min-width:0}
#chatPanelBody:has(>.messenger-order-topics)>.chat-header h2{margin:0;font-size:15px}

#chatPanelBody>.order-discussion-header>.order-discussion-title{display:block;flex:1 1 12rem;min-width:0;text-align:left}
.order-discussion-title h2{margin:0;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-discussion-members{position:relative;flex:none}
.order-discussion-members>button{margin:0;min-width:30px;padding:3px 7px}
.order-discussion-members>ul{display:none;position:absolute;top:100%;right:0;z-index:45;margin:0;padding:6px 10px;list-style:none;width:max-content;max-width:min(240px,70vw);max-height:220px;overflow:auto;background:var(--surface,#fff);border:1px solid var(--line);border-radius:7px;box-shadow:0 4px 12px #0002}
.order-discussion-members:hover>ul,.order-discussion-members:focus-within>ul{display:block}
.order-discussion-members li{padding:3px 0;overflow-wrap:anywhere}

.order-chat-topics [data-topic-action]{min-width:25px;font-size:15px}
.order-chat-topics [data-topic-color=blue]{--topic-color:#3267a9}
.order-chat-topics [data-topic-color=green]{--topic-color:#237443}
.order-chat-topics [data-topic-color=orange]{--topic-color:#995000}
.order-chat-topics [data-topic-color=purple]{--topic-color:#73469d}
.order-chat-topics [data-topic-color=red]{--topic-color:#a32239}
.order-chat-topics [data-topic-color]{box-shadow:inset 0 -2px var(--topic-color,transparent);color:var(--topic-color,var(--muted))}
.order-topic-editor form{display:grid;gap:10px}
.order-chat-open-order{white-space:nowrap}
@media(min-width:651px){.order-discussion-embed #chatPanelBody>.order-discussion-header{flex-wrap:nowrap}.order-discussion-embed .chat-header-format{flex:0 0 auto}}


dialog.order-chat-drawer{width:min(1180px,100%)}
.order-discussion-embed .order-discussion-header{gap:4px}
.order-discussion-embed .order-discussion-header .order-chat-search-toggle{height:36px;min-height:36px}
.order-discussion-embed .order-discussion-title{position:relative}
.order-chat-title-text{display:inline-block;max-width:none}
.order-chat-title-overflow .order-chat-title-text{animation:order-chat-title-scroll var(--order-chat-title-duration,8s) ease-in-out infinite alternate}
.order-discussion-embed .order-discussion-title:hover::after{content:attr(data-full-title);position:absolute;inset:100% auto auto 0;z-index:55;width:max-content;max-width:min(65vw,560px);padding:8px 10px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:6px;font-size:16px;font-weight:600;overflow-wrap:anywhere;box-shadow:0 4px 12px #0002}
@keyframes order-chat-title-scroll{0%,15%{transform:translateX(0)}85%,100%{transform:translateX(var(--order-chat-title-travel))}}
@media(prefers-reduced-motion:reduce){.order-chat-title-overflow .order-chat-title-text{animation:none}}
#chatForm.chat-composer{position:relative}
#chatForm .chat-typing-suggestion{position:absolute;inset:auto auto calc(100% + 4px) 12px;z-index:5;max-width:calc(100% - 24px);min-height:0;margin:0;padding:4px 7px;border:1px solid var(--line);border-radius:6px;background:var(--surface,#fff);color:var(--muted);font-size:12px;text-align:left;white-space:normal;box-shadow:0 2px 8px #0001}
.chat-typing-suggestion kbd{padding:1px 4px;border:1px solid var(--line);border-radius:4px}


html:has(.order-chat-drawer[open]),body:has(.order-chat-drawer[open]),
html:has(body.order-discussion-embed),body.order-discussion-embed{overflow:hidden;overscroll-behavior:none}
.order-discussion-embed #chatStream,.order-discussion-embed .chat-composer textarea,
.order-discussion-embed .order-chat-topics,.order-discussion-embed .order-discussion-members>ul{overscroll-behavior:contain}


html:has(.order-action-dialog[open]),body:has(.order-action-dialog[open]){overflow:hidden;overscroll-behavior:none}
.order-action-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.order-action-dialog>.order-window-header{flex:none;background:var(--surface,#fff)}
.order-action-dialog>.order-workspace-result{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.order-event-filters,.order-route-table thead{position:sticky;top:0;z-index:1;background:var(--surface,#fff)}
.order-route-table{width:100%;border-collapse:separate;border-spacing:0}
.order-route-table :is(th,td){padding:8px;text-align:left;border-bottom:1px solid var(--line)}
.order-route-table :is(th,td):nth-child(2){text-align:right}
.order-route-table small{display:block;color:var(--muted)}
.order-route-node{background:var(--blueSoft)}
.order-inline-actions,.order-document-tools,.order-folder-heading{align-items:center;flex-wrap:wrap;gap:6px}
.order-portfolio-dialog :is(.order-window-header,.order-document-tools,.order-folder-toolbar,.order-portfolio-actions) :is(button,select,a.button){min-height:34px;margin:0;box-sizing:border-box}
.order-portfolio-dialog :is(.order-document-content,.order-folder-tree,.order-portfolio-files){overscroll-behavior:contain}
.order-portfolio-dialog .order-documents{height:auto;min-height:100%}
#manualHistory[hidden]{display:none!important}


.order-document-tools :is(input[type=search],select,button){height:34px;min-height:34px;margin:0;box-sizing:border-box;border:1px solid var(--line);border-radius:6px;background-color:var(--surface,#fff);color:inherit}
.order-document-tools input[type=search]{flex:1 1 130px;min-width:0;width:auto}
.order-folder-menu{position:fixed;right:auto;bottom:auto;margin:0;width:180px;padding:4px;border:1px solid var(--line);border-radius:7px;background:var(--surface,#fff);box-shadow:0 4px 16px #0002}
.order-folder-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;margin:0}
.order-folder-menu button:hover,.order-folder-menu button:focus-visible{background:var(--blueSoft)}
.order-folder-menu [data-menu-action=delete]{color:#ab2038}


.order-portfolio-files button.order-file-actions{flex:none;min-width:34px;min-height:32px;text-align:center;border-color:var(--line)}

.order-portfolio-dialog .order-documents{min-height:100%;height:100%;align-items:stretch}
.order-document-preview{display:flex;flex-direction:column;min-width:0;min-height:0}
.order-portfolio-dialog .order-document-preview iframe{flex:1;min-height:0;height:auto}
.order-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.order-preview-head h2{margin:0;overflow-wrap:anywhere}
.order-preview-head a{flex:none}
.order-document-preview>p{margin:3px 0}
.order-folder-tree{display:flex;flex-direction:column}
.order-folder-footer{margin-top:auto;padding-top:8px}
.order-folder-footer button{width:100%}
.order-document-content{display:flex;flex-direction:column}
.order-document-content [data-file-list]{flex:1;min-height:0}
.order-files-empty{grid-column:1/-1;align-self:center;justify-self:center;text-align:center;padding:24px}
.order-files-empty small{margin-top:5px;color:var(--muted)}
.order-portfolio-files article{position:relative}
.order-file-check{position:absolute;top:2px;left:3px;color:#237443;pointer-events:none}
.order-file-marked>button[data-file]{padding-left:22px}
.order-document-tools .toolbar-search{flex:1 1 140px;min-width:0}
.order-document-tools .toolbar-search{margin:0;align-self:center}
.order-document-tools .toolbar-search input{width:100%;display:block}
.order-document-tools :is(button,select){flex:0 0 auto;white-space:nowrap;padding:4px 9px}
.order-document-tools input[type=file][hidden]{display:none!important}
@media(max-width:1100px){.order-portfolio-dialog .order-documents{height:auto}.order-portfolio-dialog .order-document-preview iframe{min-height:60dvh}}


.order-portfolio-files{align-content:start;grid-auto-rows:max-content}
.order-portfolio-files:has(.order-files-empty){align-content:center}
.order-download-button{display:inline-flex;align-items:center;min-height:34px;padding:4px 10px;border:1px solid var(--line);border-radius:6px;text-decoration:none;background:var(--surface,#fff);box-sizing:border-box;white-space:nowrap}
.order-portfolio-history .order-route-table :is(td,th):nth-child(2){text-align:left}


.order-document-tools [data-folder-controls]{display:contents}
.order-document-tools [data-folder-controls]>.row{flex:none;flex-wrap:nowrap;gap:4px}
.order-document-tools:has([data-folder-controls]>*){flex-wrap:nowrap;overflow-x:auto}
.order-document-tools:has([data-folder-controls]>*) .toolbar-search{min-width:130px}


dialog.order-portfolio-history[open]{width:min(1100px,calc(100% - 24px));height:min(720px,calc(100dvh - 32px));box-sizing:border-box}
.order-portfolio-history .order-route-table{min-width:580px;table-layout:fixed}
.order-portfolio-history .order-route-table th:nth-child(1){width:19%}
.order-portfolio-history .order-route-table th:nth-child(2){width:20%}
.order-portfolio-history .order-route-table th:nth-child(3){width:24%}
.order-portfolio-history .order-route-table td{overflow-wrap:anywhere}


.order-action-dialog .order-event-filters{display:flex;flex-wrap:wrap;align-items:end;gap:5px 8px;padding:6px 8px;margin:0 0 6px}
.order-event-filters label{display:grid;gap:2px;margin:0;font-size:11px;line-height:1.25}
.order-event-filters label:first-child{flex:1 1 130px;min-width:0}
.order-event-filters :is(input,select,button){box-sizing:border-box;height:32px;min-height:32px;margin:0;padding-block:3px}
.order-event-filters :is(input,select){width:100%;min-width:0}
.order-event-filters select{max-width:220px}


.order-inline-actions>button{min-height:34px;margin:0;padding:4px 9px;white-space:nowrap}

