body.factory-document-page .sidebar,body.factory-document-page .topbar{display:none!important}
body.factory-document-page .app-shell{display:block;height:100dvh}
body.factory-document-page .workspace{height:100%;overflow:hidden}
body.factory-document-page #main{padding:0;margin:0;max-width:none;height:100%;overflow:hidden}
.factory-document-route,.fw-dialog{
  --fw-ink:#202e45;--fw-muted:#526783;--fw-line:#dce5f0;--fw-tint:#f7faff;--fw-blue:#3468c2;
  color:var(--fw-ink);
}
.factory-document-route{display:flex;flex-direction:column;background:#ecf1f8;min-width:0;font-size:14px}
.factory-document-route :is(h1,h2,h3,h4,p),.fw-dialog :is(h2,h3,p){margin:0;color:inherit}
.factory-document-route svg,.fw-dialog svg{flex:none;vertical-align:middle}
.factory-document-route :is(button,textarea,input,select),.fw-dialog :is(button,textarea,input){font:inherit}
.factory-document-route :is(button,textarea,input,select,a):focus-visible,.fw-dialog :is(button,textarea,input):focus-visible{outline:2px solid #5389d7;outline-offset:2px}
.factory-document-route button,.fw-dialog button{cursor:pointer}
.factory-document-route button:disabled,.fw-dialog button:disabled{opacity:.45;cursor:default}
.fw-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:33px;min-height:33px;padding:4px 9px;border:1px solid var(--fw-line);border-radius:7px;background:#fff;color:#34557d;font-weight:680!important;font-size:12px!important;text-decoration:none;white-space:nowrap;line-height:1.2}
.fw-button:hover:not(:disabled){background:#eef5ff;border-color:#bed1ed}
.fw-button.fw-flat{background:transparent;border-color:transparent;padding-inline:5px}
.fw-button.fw-primary{background:#3468c2;color:#fff;border-color:#2e5cb1}
.fw-button.fw-primary:hover:not(:disabled){background:#2b58a7;color:#fff}
.fw-button.fw-danger{background:#fbefed;color:#a53b38;border-color:#ecd4d0}
.fw-head{flex:none;background:#fff;border-bottom:1px solid #cfdced;z-index:6}
.fw-context,.fw-commandbar{display:flex;align-items:center;gap:9px;min-width:0;padding-inline:14px}
.fw-context{height:57px;border-bottom:1px solid #e7edf5}
.fw-context small{display:block;color:#4f6c94;font-size:10px;font-weight:800;letter-spacing:.07em}
.fw-context>div:nth-child(2){min-width:0}
.factory-document-route .fw-context h1{display:flex;align-items:center;gap:6px;font-size:20px;line-height:1.2;white-space:nowrap}
.fw-context h1>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.fw-context .panel-subject-symbol{width:25px;height:25px;background:#eaf2ff;color:#3165b5;display:grid;place-items:center;border-radius:6px}
.fw-head-end{margin-left:auto;display:flex;align-items:center;gap:6px;min-width:0}
.fw-executor{font-size:12px;color:var(--fw-muted)}
.fw-head-end .fw-primary{flex:none}
.fw-context select{width:auto;min-height:32px;border:1px solid #d5e4fa;background:#edf4ff;color:#265bad;border-radius:7px;font-size:12px;padding:3px 7px;font-weight:720}
.fw-commandbar{height:42px;background:#f8fbff;gap:4px}
.fw-menus{display:flex;gap:3px;margin-right:5px;padding-right:6px;border-right:1px solid var(--fw-line)}
.fw-compact-menu{display:none}
.fw-problem{display:flex;flex:none;justify-content:space-between;align-items:center;gap:7px;padding:4px 12px;background:#fff0d9;color:#765722;font-size:12px}
.fw-operation{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 14px;background:#eaf3ff;border-top:1px solid #cedff6}
.fw-operation[data-status="UNKNOWN"],.fw-operation[data-status="STALE"],.fw-operation[data-status="FAILED"]{background:#fff4e5;border-color:#efdfc4}
.fw-operation .panel-operation-status{flex:1;min-width:0;min-height:0;padding:2px 0;background:none;border:0;margin:0;box-shadow:none}
.fw-operation .panel-operation-status p{font-size:12px;line-height:1.25}
.fw-operation .panel-operation-status progress{height:6px}
.fw-operation-actions{display:flex;gap:4px;flex:none}
.fw-workbench{flex:1;min-height:0;display:grid;grid-template-columns:45px 220px minmax(0,1fr) 263px;position:relative;overflow:hidden}
.fw-rail{display:flex;align-items:center;gap:7px;flex-direction:column;padding:11px 4px;background:#f7faff;border-right:1px solid var(--fw-line)}
.fw-rail .fw-button{background:#e8f3f6;color:#3a6d85;border:1px solid #d9e9ed}
.fw-rail .fw-button:nth-child(2){background:#efeafb;color:#6846a5;border-color:#e9e0f9}
.fw-rail .fw-button:nth-child(3){background:#fbf0df;color:#8b631d;border-color:#f1e3cb}
.fw-rail .fw-button:nth-child(4){background:#edf2fa;color:#526b92;border-color:#dce6f3}
.fw-outline,.fw-properties{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f9fbff}
.fw-outline{border-right:1px solid #d3deee}
.fw-properties{border-left:1px solid #d3deee}
.fw-outline>header,.fw-properties>header{display:flex;align-items:center;justify-content:space-between;gap:5px;background:#fff;padding:5px 9px 5px 12px;border-bottom:1px solid var(--fw-line);min-height:42px}
.factory-document-route :is(.fw-outline,.fw-properties) h2{font-size:13px}
.fw-outline-list,.fw-properties-content{overflow:auto;min-height:0;scrollbar-width:thin}
.fw-outline-list{padding:7px 5px}
.fw-outline-list>small{display:block;margin:10px 5px 4px;color:#5a7397;font-size:11px;font-weight:800}
.fw-node{display:flex;align-items:center;gap:1px;min-height:33px;border-radius:7px;border:1px solid transparent;margin:1px 0}
.fw-node.is-selected{background:#e9f1ff;border-color:#c5d8f9;color:#255ba9}
.fw-node-label{display:flex;align-items:center;gap:6px;flex:1;min-width:0;border:0;color:#36577e;background:transparent;text-align:left;padding:5px 4px;font-size:12px!important;line-height:1.26}
.fw-node-label span{overflow-wrap:anywhere}
.fw-node-label svg{color:#4c77a8}
.fw-node [data-fw="fold"]{min-width:17px;padding:0;min-height:24px}
.fw-node [aria-expanded="false"] svg{transform:rotate(-90deg)}
.fw-branch{margin:0 0 3px 13px;padding-left:4px;border-left:1px solid var(--fw-line)}
.fw-grip{color:#6887ab;cursor:grab;opacity:.55;min-width:15px;text-align:center}
[data-drop]{position:relative}
:is(.fw-drop-before,.fw-drop-after)::after{content:"";position:absolute;z-index:5;inset-inline:0;border-top:4px solid #265bd4;box-shadow:0 0 0 2px #fff;pointer-events:none;border-radius:3px}
.fw-drop-before::after{top:-2px}
.fw-drop-after::after{bottom:-2px}
.fw-selection{position:sticky;top:0;z-index:4;display:flex;gap:4px;align-items:center;margin:0 0 6px;padding:4px 6px;background:#f1f6ff;border:1px solid #d8e4f6;border-radius:7px;flex-wrap:wrap}
.fw-head>.fw-selection{position:static;margin:0;border:0;border-bottom:1px solid #d8e4f6;border-radius:0;background:#ebf3ff;padding-inline:12px}
.fw-head>.fw-selection [data-fw="selection-menu"]{background:#fff;border-color:#aec2e4;color:#254f98}
.fw-selection>span{margin-inline:3px;font-weight:650;font-size:12px}
.fw-selection-rectangle{position:fixed;z-index:15;pointer-events:none;border:2px solid #3469c5;background:#91b8f53b}
input.fw-selection-check{width:17px;height:17px;margin:0 3px 0 0;flex:0 0 17px;accent-color:#315fb7}
.fw-supp-block>p{white-space:pre-wrap;overflow-wrap:anywhere}
.fw-ai-targets{padding-inline-start:1.25em}
.fw-tool-window-head{border-bottom:1px solid var(--fw-line)}
.fw-tool-note-menu[open]>div{position:static;min-width:0;box-shadow:none}
.fw-tool-window .fw-tool-remark>header{flex-wrap:wrap}
.fw-review-select{display:flex;gap:7px;align-items:center}
.fw-inline-review{padding:9px;margin:7px 0;color:#6a4c21;background:#fff7e6;border:1px solid #ecd5a9;border-radius:7px;overflow-wrap:anywhere}
.fw-inline-review>p,.fw-inline-diff>p{margin:4px 0;white-space:pre-wrap}
.fw-inline-diff{margin:7px 0;padding:9px;border:1px solid #ddd0ef;border-radius:8px;background:#f5f0fb;color:#36264e}
.fw-inline-diff del{color:#9d3838;background:#fbe1e1}
.fw-inline-diff ins{color:#246046;background:#d6f2e2}
.fw-inline-diff .fw-inline-actions{display:flex;gap:5px;justify-content:flex-end;flex-wrap:wrap}
.fw-active-offer{margin:3px 0;padding:10px 12px;border-color:#d9caef}
.fw-active-offer .fw-inline-actions{align-items:center;border-top:1px solid #ddd0ef;padding-top:6px}
.fw-active-offer .fw-inline-actions>strong{margin-inline-end:auto;display:inline-flex;align-items:center;gap:4px}
.fw-button.fw-remark-badge{color:#8a3d23;background:#fff0dc;border:1px solid #ebc89d;font-weight:650;min-height:23px;padding:2px 5px}
.fw-button.fw-chip[data-missing]{color:#8a3d23;background:#fff4e5;border:1px dashed #c9834f}
.fw-stage-progress{color:#945127;margin:0 0 9px;padding:8px 10px;border:1px solid #e7d9c9;border-radius:8px;background:#fffaf0}
.fw-stage-progress[data-level="empty"]{color:#a2443e;background:#fff5f3;border-color:#eac8c5}
.fw-stage-progress[data-level="done"]{color:#28795d;background:#f0faf5;border-color:#c6e5d6}
.fw-stage-progress>div{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.fw-stage-progress strong{font-size:17px;font-variant-numeric:tabular-nums}
.fw-stage-progress span{font-size:12px}
.fw-stage-progress-remarks{background:#fff0dc;border-radius:4px;color:#8a3d23;padding:1px 4px}
.fw-stage-progress progress{display:block;width:100%;height:6px;margin-top:6px;accent-color:currentColor}
.fw-remark-severity{display:inline-flex;align-items:center;gap:3px;padding:1px 4px;border-radius:4px;background:#fff0d7;color:#75511b;font-size:11px;line-height:1.4}
.fw-remark-severity[data-severity="blocking"]{background:#fce4df;color:#9d3838}
.fw-remark-severity[data-severity="suggestion"]{background:#e7effc;color:#315b93}
.fw-stage-link .fw-remark-severity{justify-self:start}
@media(max-width:520px){
  .fw-selection .fw-button{min-width:30px;min-height:33px;padding:4px}
  .fw-supp-block>header{flex-wrap:wrap}
  .fw-tool-window .fw-tool-window-foot{flex-wrap:wrap}
}
.fw-shade{display:none}
.fw-canvas{min-width:0;min-height:0;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;padding:20px clamp(12px,2.5vw,34px) 34px;background:radial-gradient(ellipse at 50% 0,#f4f8fd,#e8eef7)}
.fw-sheet{max-width:780px;margin:auto;background:#fff;border:1px solid var(--fw-line);border-radius:13px;padding:18px clamp(14px,3vw,36px) 26px;box-shadow:0 7px 28px #2848750d}
.fw-sheet-head{border-bottom:1px solid #e2ebf6;padding-bottom:8px;margin-bottom:5px}
.fw-sheet-head>small{font-size:11px;font-weight:750;color:#426da7;display:flex;align-items:center;gap:5px;margin-bottom:4px}
.factory-document-route .fw-sheet-head h2{font-size:clamp(20px,2.2vw,30px);line-height:1.16;letter-spacing:-.02em}
.fw-sheet-head>div{display:flex;align-items:center;justify-content:space-between;gap:4px 9px;flex-wrap:wrap;margin-top:4px;font-size:12px;color:var(--fw-muted)}
.fw-button.fw-title{font:inherit!important;letter-spacing:inherit;white-space:normal;color:#1d3150;background:none;border:0;padding:0;min-height:0;text-align:left;display:inline-flex;flex-direction:row-reverse;justify-content:flex-end}
.fw-title svg{color:#6582a7}
.fw-inline-title{min-width:70px;max-width:100%;flex:1;border:1px solid #a3c2f1;border-radius:6px;padding:4px 5px;background:#fff;color:var(--fw-ink)}
.fw-section,.fw-point{padding:7px 8px;border:1px solid transparent;border-radius:8px;scroll-margin-block:47px 9px}
.fw-section>header,.fw-point>header,.fw-group>header{display:flex;align-items:center;gap:5px;min-width:0}
.fw-group{border:1px solid #cbdcf0;border-radius:9px;background:#fafdff;scroll-margin-block:47px 9px}
.fw-group>header{padding:5px 7px;background:#eff5fc;border-bottom:1px solid #dbe6f5;border-radius:8px 8px 0 0;font-weight:760}
.fw-group.is-folded>header{border-bottom:0;border-radius:8px}
.fw-group.is-selected{border-color:#91b7ed}
.fw-group.is-selected>header,.fw-section.is-selected,.fw-point.is-selected{background:#f3f7ff;border-color:#bdd4f8}
.fw-group-points{padding:1px 7px 4px}
.fw-group-count{flex:none;padding:1px 5px;background:#e4edf9;border-radius:5px;color:#4c6a91;font-size:11px}
.fw-sheet [data-fw="fold"]{min-width:24px;min-height:28px;padding:2px}
.fw-sheet [data-fw="fold"][aria-expanded="false"] svg{transform:rotate(-90deg)}
.fw-sheet .is-folded>header .fw-label{flex:0 1 auto}
.fw-order-fields{display:grid;gap:9px;padding:8px 6px 2px}
.fw-order-identity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fw-order-fields :is(label,.fw-order-field){display:grid;gap:2px;color:#456282;font-size:12px;font-weight:650;min-width:0}
.fw-order-fields :is(input,textarea){width:100%;margin:0;padding:5px 7px;background:#fff;border:1px solid #d8e5f0;border-radius:6px;color:var(--fw-ink);font-size:14px;font-weight:400}
.fw-order-fields :is(.fw-composer,.fw-attachment,.fw-field-restore){margin-left:0}
.fw-field-restore{margin:3px 0 0 33px}
.fw-offer{display:flex;align-items:center;gap:6px;margin:4px 0;padding:3px 6px;background:#f1ebfb;border:1px solid #e6dbf6;border-radius:7px;color:#644396;font-size:12px}
.fw-offer strong{flex:1}
.fw-offer .fw-button{min-height:26px;color:inherit}
.fw-label{background:none;border:0;padding:2px 0;color:#263c60;min-width:0;text-align:left;font-weight:740!important;overflow-wrap:anywhere}
.fw-mark{width:29px;height:29px;display:grid;place-items:center;flex:none;border-radius:7px;background:#eaf2ff;color:#3c6ba9}
.fw-mark.fw-violet{background:#f0ebfa;color:#7051ad}
.fw-number{display:grid;place-items:center;background:#e7effb;color:#3e68a1;min-width:21px;height:21px;border-radius:5px;font-size:11px;font-weight:780}
.fw-block-actions{margin-left:auto;display:flex;gap:0;flex:none;visibility:hidden}
:is(.fw-group,.fw-point,.fw-section).is-selected>header .fw-block-actions,:is(.fw-group,.fw-point,.fw-section)>header:is(:hover,:focus-within) .fw-block-actions{visibility:visible}
.fw-block-actions .fw-button,.fw-point>header .fw-flat{min-width:25px;min-height:28px;padding:3px}
.fw-block-actions [data-fw="delete"]{color:#a0464e}
.fw-group-add{margin-left:auto}
.fw-optional>header{font-size:11px;color:#487482;font-weight:720}
.fw-optional>header .fw-button{margin-left:auto;min-height:25px}
.fw-optional>header [data-fw="fold"]{margin-left:0}
.fw-gap,.fw-part-restore{display:flex;justify-content:center;align-items:center;min-height:15px}
.fw-gap .fw-button{min-height:18px;min-width:23px;padding:0;background:#f5f9ff;border-color:#dbe7f6;color:#527eb7}
.fw-part-restore{border:1px dashed #d3e2f4;border-radius:6px;margin:4px 0}
.fw-artifacts,.fw-count,.fw-attachment{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.fw-artifacts{margin:4px 0 1px 34px}
.fw-count{border-left:1px solid #ded7ed;padding-left:4px;color:#614790;font-size:11px;font-weight:780}
.fw-count .fw-button{min-height:24px;min-width:23px;color:#644c9f}
.fw-button.fw-chip{min-height:25px;padding:3px 6px;background:#f0ebfb;border-color:#e7ddf7;color:#604498;font-size:11px!important}
.fw-point:not(.is-selected):not(:hover):not(:focus-within) .fw-count{display:none}
.fw-button.fw-check-pill{margin:3px 0 0 34px;background:#faedd6;color:#875a21;min-height:24px;font-size:11px!important}
.fw-text{display:block;width:calc(100% - 33px);margin:3px 0 0 33px;min-height:29px;max-height:24em;field-sizing:content;resize:none;padding:4px 4px 3px 0;border:1px solid transparent;border-radius:5px;background:transparent;color:#344966;line-height:1.56}
.fw-optional .fw-text{margin-left:18px;width:calc(100% - 18px)}
.fw-text:focus{background:#fff;border-color:#a7c7f5}
.fw-composer{display:none;max-width:max-content;margin:4px 0 0 33px;padding:1px;gap:1px;background:#fff;border:1px solid var(--fw-line);border-radius:6px;box-shadow:0 2px 6px #25437412}
.fw-composer.is-open{display:flex}
.fw-composer .fw-button{width:28px;min-width:28px;min-height:29px;padding:3px}
.fw-composer [data-fw="generate-block"]{background:#f2eafb;color:#6840ae}
.fw-composer [data-fw="clear"]{color:#9b4d53}
.fw-attachment{color:#365a84;margin:3px 0 0 34px;background:#eef4fe;border-radius:6px;padding:3px 5px;font-size:12px}
.fw-attachment small{margin-left:auto;color:var(--fw-muted)}
.fw-closing{margin-left:18px;display:grid;justify-items:start;gap:5px}
.fw-closing textarea{width:100%;field-sizing:content;min-height:29px;padding:4px 6px;border:1px solid var(--fw-line);border-radius:6px;resize:none;font-size:13px;color:#344966;background:#fff}
.fw-question-list{width:100%;display:grid;gap:4px;padding-left:6px;border-left:2px solid #dfd2f5}
.fw-question-list>div{display:grid;grid-template-columns:auto minmax(0,1fr) 30px;gap:4px;align-items:start}
.fw-question-list>div>span{font-size:12px;color:#566e90;padding-top:5px}
.fw-properties-content{padding:12px;font-size:12px}
.fw-property-kind,.fw-properties h4{display:flex;align-items:center;gap:6px}
.factory-document-route .fw-properties h3{font-size:18px;margin:5px 0 8px}
.fw-properties dl{margin:0 0 7px}
.fw-properties dl>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:5px;margin:3px 0}
.fw-properties dt,.fw-muted{color:var(--fw-muted)}
.fw-properties dd{margin:0;font-weight:690}
.fw-properties section{border-top:1px solid var(--fw-line);padding:8px 0}
.fw-properties h4 small{margin-left:auto}
.fw-properties ul{margin:4px 0;padding-left:17px}
.fw-amber{color:#8d6024!important}
.fw-status{flex:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:7px;min-height:34px;padding:4px 10px max(4px,env(safe-area-inset-bottom));background:#f9fcff;border-top:1px solid #d2deee;font-size:12px;color:#516b8c}
.fw-status-label>span{display:flex;align-items:center;gap:6px}
.fw-status-label>span>svg{color:#28795d}
.fw-status-label.is-dirty svg{color:#9a6a24}
.fw-status-context{text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fw-popup{position:fixed;z-index:25;background:#fff;border:1px solid #d4dfec;border-radius:9px;padding:4px;box-shadow:0 9px 26px #243d6340;min-width:188px;max-height:min(58dvh,400px);overflow:auto}
.fw-popup .fw-button{display:flex;width:100%;justify-content:flex-start;background:none;border:0}
.workbench-menu-group + .workbench-menu-group{border-top:1px solid #d4dfec;margin-top:4px;padding-top:4px}
.workbench-menu-group>b{display:block;padding:3px 9px;color:#546984;font-size:.75rem}
.fw-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.fw-dialog{min-width:0;width:min(490px,calc(100vw - 20px));max-width:100%;border-radius:12px}
.fw-dialog.fw-wide{width:min(730px,calc(100vw - 20px))}
.fw-dialog .catalog-master-middle{min-height:0}
.fw-dialog .catalog-master-dock{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.fw-fields{display:grid;gap:8px;font-size:13px;color:#456282;font-weight:650}
.fw-fields label{display:grid;gap:3px;margin:0}
.fw-fields :is(input,textarea){width:100%;min-height:35px;padding:5px 6px;border:1px solid #ccdcee;border-radius:7px;background:#fff;color:#263958}
.fw-check{display:flex;align-items:center;gap:8px;margin:3px 0 6px;padding:6px;background:#f5f9ff;border-radius:6px}
.fw-check input{width:16px;flex:none}
.fw-check small{display:block}
.fw-comparison{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:5px 0}
.fw-comparison>div,.fw-deliverable{padding:8px 9px;background:#f6f8fc;border:1px solid var(--fw-line);border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:#354e72}
.fw-comparison>div+div{background:#edf8f1;border-color:#d6ebdf}
.fw-remark{background:#fffaf0;border:1px solid #f0e0c3;border-radius:8px;padding:7px;margin:4px 0}
.fw-remark header,.fw-remark div{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.fw-remark header small{margin-left:auto;color:#806329}
.fw-remark p{margin:5px 0}
.fw-dialog .fw-offer-picker{position:static;max-height:none;width:100%;padding:0;border:none;box-shadow:none}
.fw-dialog .fw-offer-picker .workspace-composer-option-head{display:none}
.fw-issued{width:min(680px,100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;margin:12px auto;background:white;border:1px solid var(--fw-line);border-radius:12px;padding:14px}
.fw-issued header{display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--fw-line);padding-bottom:8px;margin-bottom:8px}
.factory-document-route .fw-issued h1{font-size:20px}
.fw-issued header a{margin-left:auto}
.fw-issued header button{min-width:28px}
@media(max-width:420px){.fw-issued header{flex-wrap:wrap}.fw-issued header h1{flex:1 1 70%}.fw-issued header a{margin-left:0}}
.fw-issued p{color:#286f59;margin:5px 0}
@media(min-width:901px){
  .fw-outline>header [data-fw="outline"]{display:none}
  .fw-closed-outline .fw-workbench{grid-template-columns:45px minmax(0,1fr) 263px}
  .fw-closed-properties .fw-workbench{grid-template-columns:45px 220px minmax(0,1fr)}
  .fw-closed-outline.fw-closed-properties .fw-workbench{grid-template-columns:45px minmax(0,1fr)}
  .fw-closed-outline .fw-outline,.fw-closed-properties .fw-properties{display:none}
}
@media(max-width:900px){
  .fw-workbench,.fw-closed-outline .fw-workbench,.fw-closed-properties .fw-workbench{grid-template-columns:42px minmax(0,1fr)}
  .fw-outline,.fw-properties{display:none}
  [data-pane="outline"] .fw-outline,[data-pane="properties"] .fw-properties{display:flex;position:absolute;z-index:5;inset:0 auto 0 0;width:min(290px,calc(100% - 34px));box-shadow:3px 0 18px #213e652e}
  [data-pane="properties"] .fw-properties{inset:0 0 0 auto}
  [data-pane="outline"] .fw-shade,[data-pane="properties"] .fw-shade{display:block;position:absolute;inset:0;z-index:4;border:0;background:#30476636}
}
@media(max-width:660px){
  .fw-context,.fw-commandbar{padding-inline:7px;gap:4px}
  .fw-context{height:51px}
  .factory-document-route .fw-context h1{font-size:16px}
  .fw-context .panel-subject-symbol{width:21px;height:21px}
  .fw-context select{max-width:98px;padding-inline:4px}
  .fw-operation{padding-inline:7px}
  .fw-operation:has(.fw-operation-actions>:nth-child(3)){display:grid;grid-template-columns:minmax(0,1fr);gap:3px}
  .fw-operation-actions{flex-wrap:wrap}
  .fw-commandbar{height:41px}
  .fw-executor,.fw-rail,.fw-menus{display:none}
  .fw-compact-menu{display:inline}
  .fw-workbench,.fw-closed-outline .fw-workbench,.fw-closed-properties .fw-workbench{grid-template-columns:minmax(0,1fr)}
  .fw-canvas{padding:7px 6px 16px}
  .fw-sheet{padding:11px 8px 16px;border-radius:9px}
  .fw-sheet-head>small,.fw-grip,.fw-block-actions :is([data-fw="move-up"],[data-fw="move-down"]),.fw-status-context{display:none}
  .fw-status{grid-template-columns:minmax(0,1fr) auto;gap:4px;padding-inline:6px;font-size:11px}
  .fw-section,.fw-point{padding:5px}
  .fw-group-points{padding-inline:3px}
  .fw-artifacts,.fw-composer,.fw-attachment,.fw-closing,.fw-button.fw-check-pill{margin-left:0}
  .fw-field-restore{margin-left:0}
  .fw-text,.fw-optional .fw-text{width:100%;margin-left:0}
  .fw-composer .fw-button{width:26px;min-width:26px;min-height:32px;padding:2px}
  .fw-comparison{grid-template-columns:1fr}
}
@media(max-width:435px){
  .fw-head-end .fw-primary span{display:none}
  .fw-head-end .fw-primary{width:34px;padding-inline:3px}
  .fw-group>header .fw-block-actions .fw-button:not([data-fw="menu"]){display:none}
}
@media(max-width:360px){
  .fw-point .fw-block-actions [data-fw="delete"],.fw-group-add span{display:none}
  .fw-context .panel-subject-symbol{display:none}
  .fw-order-fields{padding-inline:0}
  .fw-button.fw-group-add{min-width:29px}
}
@media (min-width:661px) and (max-width:900px){
  .factory-document-route[data-pane="outline"] .fw-workbench{grid-template-columns:42px 176px minmax(0,1fr)}
  .factory-document-route[data-pane="outline"] .fw-outline{position:relative;inset:auto;width:auto;box-shadow:none;z-index:auto}
  .factory-document-route[data-pane="outline"] .fw-shade{display:none}
}
.fw-properties dl>div{grid-template-columns:101px minmax(0,1fr);gap:8px}
.fw-properties dt{overflow-wrap:anywhere}
.fw-group:not(.is-selected)>header:not(:hover):not(:focus-within) .fw-block-actions{display:none}
.fw-dialog.catalog-master-dialog{height:fit-content;max-height:calc(100dvh - 20px);inset:0;margin:auto;border-radius:12px}
.fw-dialog.catalog-master-dialog .catalog-master{height:auto;max-height:calc(100dvh - 22px)}
.fw-dialog.catalog-master-dialog .catalog-master-middle{flex:0 1 auto}
.fw-dialog.catalog-master-dialog .catalog-master-panel{padding:10px}
.fw-dialog .catalog-master-dock .fw-button{font-size:12px!important;padding-inline:7px;min-height:32px}
@media(max-width:360px){
  .fw-sheet-channel{display:none}
  .fw-dialog.catalog-master-dialog{width:calc(100vw - 16px)}
}

.factory-configuration-document {
  display: grid;
  gap: 8px;
  min-width: 0;
}
@media (min-width: 801px) {
  .catalog-master-dialog.catalog-master-short:is(.factory-configuration-editor-dialog, .factory-revision-dialog) {
    width: min(54rem, calc(100vw - 1.5rem));
  }
}
.factory-configuration-document :is(details, .workspace-document-disclosure-content, [data-config-symbols], [data-symbol-rows]) {
  min-width: 0;
}
.factory-configuration-document label:not(.is-checkbox) {
  display: grid;
  gap: 6px;
}
.factory-configuration-document :is(input, select, textarea) {
  max-width: 100%;
}
.factory-configuration-document :is(select, input[type="number"]) {
  width: fit-content;
}
.factory-configuration-document .is-checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  min-height: 30px;
}
.factory-configuration-document .is-checkbox input {
  flex: 0 0 auto;
  margin: 0;
}
.factory-configuration-actions, .production-profile-context-inputs {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.factory-configuration-actions {
  margin-block: 8px;
}
.factory-configuration-symbol-core {
  display:grid;
  grid-template-columns: minmax(0,3fr) minmax(0,2fr);
  align-items:end;
  gap:.6rem;
}
.factory-material-author, .factory-revision-columns, .production-profile-context-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.factory-material-author label, .factory-revision-selectors label, .production-profile-context-inputs label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.factory-revision-selectors label, .production-profile-context-inputs label {
  margin: 0;
}
.factory-material-author textarea, .factory-revision-selectors select, .production-profile-context-inputs select {
  width: 100%;
  box-sizing: border-box;
}
.factory-material-author h2, .factory-revision-view :is(h3, h4), .production-profile-context-result h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.factory-material-preview, .factory-revision-view, .production-profile-context-sample {
  border: 1px solid #d5e1f0;
  border-radius: 9px;
  padding: 12px;
  background: #f5f8fc;
}
.factory-material-preview :is(pre, [data-material-preview], [data-material-preview-issues]), .factory-revision-text, .production-profile-context-result pre,
.production-profile-change :is(ins, del), .production-profile-context-row dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.factory-revision-view h4 {
  margin-top: 16px;
}
.factory-material-preview [data-material-preview] { margin-top:.55rem; }
.factory-material-preview [data-material-preview-issues]:empty { display:none; }
.factory-material-author { grid-template-columns:1fr; gap:.5rem; }
.factory-material-author .factory-material-preview { min-height:0; }
.factory-material-preview summary { cursor:pointer; font-weight:650; }
.factory-material-preview summary svg { vertical-align:middle; }
.factory-material-preview summary small { margin-inline-start:.35rem; font-weight:400; }
.production-profile-context-inputs {
  padding-bottom: 12px;
}
.production-profile-context-inputs select {
  max-width: min(100%, 19rem);
}
.production-profile-context-result dl {
  margin: 0;
}
.production-profile-context-row {
  display: grid;
  grid-template-columns: minmax(105px, 2fr) minmax(0, 3fr);
  gap: 8px;
  align-items: start;
  padding: 7px 0;
  border-bottom: 1px solid #dce5f2;
}
.production-profile-context-row small {
  display: block;
  opacity: .8;
}
.production-profile-context-row ul {
  margin: 0;
  padding-left: 16px;
}
.production-profile-context-row li + li {
  margin-top: 5px;
}
@media (max-width: 380px) {
  [data-profile-document] .catalog-editor-fields,
  .production-profile-context-row { grid-template-columns: minmax(0, 1fr); }
  .production-profile-context-row { gap: 4px; }
}
.production-profile-context-materials {
  grid-column: 1 / -1;
}
.production-profile-change {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px 12px;
  padding: 10px 0;
  border-bottom: 1px solid #dce5f2;
}
.production-profile-change h4 { grid-column: 1 / -1; margin: 0; }
.production-profile-change div { min-width: 0; }
.production-profile-advanced { margin-block-start: .55rem; }
.production-profile-advanced summary { cursor: pointer; }
.production-profile-advanced[open] > summary { margin-block-end: .35rem; }
.production-model-notice { color: var(--text-muted, #52677f); overflow-wrap: anywhere; }
.production-profile-change span { display: block; margin-bottom: 3px; }
.factory-revision-view ins, .production-profile-change ins { color: #1e5a41; background: #e0f1e7; text-decoration: none; }
.factory-revision-view del, .production-profile-change del { color: #85383c; background: #fbe9e8; }
.factory-revision-navigation, .factory-revision-navigation > div {
  display:flex; align-items:center; gap:.45rem; flex-wrap:wrap;
}
.factory-revision-navigation { justify-content:space-between; margin:.35rem 0 .65rem; }
.factory-revision-navigation label { display:flex; align-items:center; gap:.4rem; margin:0; }
.factory-revision-navigation button { min-inline-size:2.25rem; }
.factory-revision-line {
  display:grid; grid-template-columns:minmax(2.25rem,auto) minmax(0,1fr); gap:.4rem; min-width:0;
}
.factory-revision-line-number { color:#566e83; font-variant-numeric:tabular-nums; user-select:none; }
.factory-revision-view [data-revision-current] { outline:2px solid #3979b8; outline-offset:1px; border-radius:3px; }
@media (max-width: 640px) {
  .production-profile-folders-link > span { display: none; }
  .factory-material-author, .factory-revision-columns, .production-profile-context-result, .factory-configuration-symbol-core {
    grid-template-columns: minmax(0, 1fr);
  }
  .production-profile-context-inputs label {
    flex: 1 1 9rem;
  }
}

/* Tools attached to the order stay outside the document and share one window. */
.fw-heading{flex:1 1 0;min-width:0}
.fw-context .fw-head-end{flex:none;margin-left:0}
.fw-heading small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fw-heading .fw-heading-compact{display:none}
.fw-heading .fw-header-title{min-width:0;max-width:100%;white-space:nowrap}
.fw-heading .fw-header-title span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.fw-heading .fw-inline-title{font-size:16px;min-width:0;width:100%}
.fw-document-navigation{display:flex;gap:4px}
.fw-tool-band{padding:5px 12px 6px;background:#f7faff;border-top:1px solid #e1e8f2}
.fw-tool-band>div{display:flex;align-items:stretch;gap:12px;margin:auto;max-width:1180px}
.fw-tool-band .fw-tool-strip{flex:1;margin:0;max-width:none}
.fw-tool-hint{display:flex;align-items:center;gap:7px;border:1px solid #eed8ae;border-radius:8px;background:#fff7e7;color:#79500f;padding:4px 8px;text-align:left;white-space:nowrap}
.fw-tool-hint strong,.fw-tool-hint small{display:block;font-size:11px;line-height:1.18}
.fw-tool-hint small{font-size:10px;margin-top:2px;color:#79643d}
.fw-tool-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-width:0;margin:auto;max-width:1180px;overflow:hidden;border:1px solid var(--fw-line);border-radius:8px;background:#fff}
.fw-tool-strip .fw-tool{display:grid;grid-template-columns:auto minmax(0,1fr);align-content:center;align-items:center;column-gap:9px;min-width:0;min-height:43px;margin:0;padding:4px 8px;text-align:left;border:0;border-radius:0;background:#fff;color:var(--fw-ink);cursor:pointer}
.fw-tool+.fw-tool{border-inline-start:1px solid #e7edf5}
.fw-tool-strip .fw-tool:hover,.fw-tool-strip .fw-tool[aria-current="true"]{background:#edf4fd}
.fw-tool-strip .fw-tool[aria-current="true"]{box-shadow:inset 0 -2px #4575c5}
.fw-tool-strip .fw-tool:focus-visible{outline-offset:-2px}
.fw-tool strong{font-size:13px;line-height:1.18;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fw-tool small{grid-column:2;min-width:0;font-size:11px;line-height:1.22;color:var(--fw-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fw-tool-icon{position:relative;display:grid;place-items:center;width:30px;height:30px;border-radius:7px;color:var(--fw-tool-hue);background:var(--fw-tool-tint);flex:none}
.fw-tool .fw-tool-icon{grid-row:span 2}
.fw-tool-data{--fw-tool-hue:#335e98;--fw-tool-tint:#eaf2ff}
.fw-tool-materials{--fw-tool-hue:#684a9a;--fw-tool-tint:#f0ebfa}
.fw-tool-artifacts{--fw-tool-hue:#5e4cab;--fw-tool-tint:#efedfc}
.fw-tool-generation{--fw-tool-hue:#7a4387;--fw-tool-tint:#f7edfa}
.fw-tool-review{--fw-tool-hue:#26705e;--fw-tool-tint:#e9f5ef}
.fw-tool-state{position:absolute;inset:-3px -5px auto auto;display:none;place-items:center;min-width:15px;height:15px;padding-inline:2px;border:1px solid #fff;border-radius:10px;font-size:9px;font-weight:750;line-height:1}
.fw-tool[data-tone="done"] .fw-tool-state{display:grid;background:#e9f7f0;color:#226b52}
.fw-tool[data-tone="attention"] .fw-tool-state{display:grid;background:#fff2d8;color:#89540c}
.fw-tool[data-tone="queued"] .fw-tool-state,.fw-tool[data-tone="paused"] .fw-tool-state,.fw-tool[data-tone="stopping"] .fw-tool-state{display:grid;background:#edf3fd;color:#365a94}
.fw-tool[data-tone="busy"] .fw-tool-state{display:grid;width:13px;height:13px;border:2px solid #b7c8e9;border-top-color:#3468c2;animation:fw-tool-rotation 850ms linear infinite}
@keyframes fw-tool-rotation{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.fw-tool[data-tone="busy"] .fw-tool-state{animation:none}}
.fw-tool-window{color:var(--fw-ink);border:1px solid #c9d9ee;border-radius:13px;padding:0;width:min(790px,calc(100vw - 40px));max-width:none;max-height:min(820px,calc(100dvh - 42px));margin:auto;overflow:hidden;background:#fff;box-shadow:0 20px 60px #172d5061}
.fw-tool-window[open]{display:flex;flex-direction:column}
.fw-tool-window::backdrop{background:#1c2f4d5c}
.fw-tool-window.is-maximized{width:calc(100vw - 18px);height:calc(100dvh - 18px);max-height:calc(100dvh - 18px)}
.fw-tool-window-head{display:flex;align-items:center;gap:10px;padding:12px 16px 9px;flex:none}
.fw-tool-window-head>.fw-tool-icon{width:38px;height:38px}
.fw-tool-window-head small{color:var(--fw-muted);font-size:11px;display:block;margin-bottom:2px}
.fw-tool-window-head h2{font-size:20px;line-height:1.2}
.fw-tool-window-actions{display:flex;gap:5px;margin-left:auto}
.fw-tool-strip-dialog{flex:none;margin:0 16px 4px;max-width:none}
.fw-tool-strip-dialog .fw-tool{min-height:41px}
.fw-tool-strip-dialog .fw-tool small{display:none}
.fw-tool-strip-dialog .fw-tool-icon{grid-row:auto}
.fw-tool-window-body{padding:10px 16px 13px;overflow:auto;min-height:0;overscroll-behavior:contain}
.fw-tool-window.is-maximized .fw-tool-window-body{flex:1}
.fw-tool-notice{display:flex;align-items:center;gap:9px;margin-bottom:11px;padding:9px 10px;border:1px solid var(--fw-line);border-radius:8px;color:#26466d;background:#f1f6ff;min-width:0}
.fw-tool-notice>div,.fw-tool-row>div{flex:1;min-width:0;overflow-wrap:anywhere}
.fw-tool-notice strong,.fw-tool-notice small,.fw-tool-row strong,.fw-tool-row small,.fw-tool-scopes strong,.fw-tool-scopes small{display:block;line-height:1.27}
.fw-tool-notice small,.fw-tool-row small,.fw-tool-scopes small,.fw-tool-window-foot>span{color:var(--fw-muted);font-size:12px;margin-top:3px}
.fw-tool-warning{background:#fff8eb;border-color:#efdcb7;color:#76511d}
.fw-tool-violet{background:#f6f2fc;border-color:#e6daf7;color:#5f448c}
.fw-tool-notice progress{width:96px;max-width:32%;height:8px;accent-color:#7b66ba}
.fw-tool-window .fw-order-fields{padding:0;gap:9px}
.fw-tool-field{display:block;margin:8px 0;color:#456282;font-size:13px;font-weight:660}
.fw-tool-field textarea,.fw-tool-field select{display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:4px;padding:7px 9px;border:1px solid #cdd9eb;border-radius:7px;background:#fff;color:var(--fw-ink);font-size:14px;font-weight:400}
.fw-tool-field textarea{resize:vertical}
.fw-tool-window .fw-order-identity input,.fw-tool-window .fw-order-field textarea{padding:7px 9px}
.fw-tool-window .fw-order-field textarea{min-height:48px;resize:vertical}
.fw-tool-window [data-text="data:execution"]{min-height:82px}
.fw-tool-window .fw-composer{flex-wrap:wrap}
.fw-tool-window .fw-composer .fw-button{width:32px;min-width:30px;min-height:31px;margin-top:2px}
.fw-tool-models{display:flex;flex-wrap:wrap;gap:8px 22px;margin:8px 0;padding:5px 0}
.fw-tool-models>div{display:flex;gap:6px;align-items:baseline}
.fw-tool-models dt{font-size:12px;color:var(--fw-muted)}
.fw-tool-models dd{margin:0;font-size:13px}
.fw-tool-list{border:1px solid var(--fw-line);border-radius:8px;overflow:hidden}
.fw-tool-row{display:flex;align-items:center;gap:8px;padding:8px 9px}
.fw-tool-row+.fw-tool-row{border-top:1px solid #e7edf5}
.fw-tool-row-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:6px;background:#eef3fd;color:#456399;flex:none}
.fw-tool-badge{display:inline-flex;align-items:center;margin-top:3px;padding:2px 5px;border-radius:5px;background:#ecf2fb;color:#385782;font-size:11px;line-height:1.25}
.fw-tool-bindings{padding:8px 10px;border-top:1px solid #e7edf5;font-size:13px}
.fw-tool-bindings summary{cursor:pointer}
.fw-tool-bindings code{display:inline-block;margin:3px 4px 0 0;white-space:normal;word-break:break-word;color:#3d658c}
.fw-tool-filter{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:7px 0}
.fw-tool-filter .fw-button{min-height:34px;max-width:100%}
.fw-tool-ai{margin-top:16px;padding:10px;border:1px solid var(--fw-line);border-radius:9px}
.fw-tool-ai h3{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:14px}
.fw-tool-filter-end{margin-left:auto}
.fw-tool-filter .fw-button[aria-pressed="true"]{background:#eaf2ff;color:#264f96;border-color:#d1e0fa}
.fw-tool-artifact-group{margin:8px 0}
.fw-tool-artifact-group h3{padding:6px 9px;background:#f3f7fc;color:#425d82;font-size:12px}
.fw-tool-artifact-row>label,.fw-tool-scopes label{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.fw-tool-window input:is([type="checkbox"],[type="radio"]){width:17px;min-width:17px;height:17px;flex:0 0 17px;margin:0;padding:0;accent-color:#3b64b2}
.fw-tool-artifact-row:has(input:checked){background:#f5f8ff}
.fw-tool-window .fw-tool-scopes{margin:0;padding:0;border:0;min-width:0}
.fw-tool-scopes legend{font-size:13px;font-weight:660;margin-bottom:4px;padding:0}
.fw-tool-scopes label{border:1px solid var(--fw-line);border-radius:7px;padding:7px 8px;margin-bottom:5px}
.fw-tool-scopes label:has(input:checked){background:#f0f5ff;border-color:#cdddfa}
.fw-tool-scopes label:has(input:disabled){opacity:.6}
.fw-tool-remark{border:1px solid var(--fw-line);border-radius:8px;padding:8px 9px;margin-bottom:7px}
.fw-tool-remark header{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:4px}
.fw-tool-note-menu{position:relative;margin-left:auto}
.fw-tool-note-menu summary{display:grid;place-items:center;list-style:none;width:29px;height:29px;border-radius:6px;cursor:pointer;color:#34557d;background:#f4f8fd}
.fw-tool-note-menu summary::-webkit-details-marker{display:none}
.fw-tool-note-menu>div{position:absolute;right:0;top:calc(100% + 3px);display:grid;gap:3px;padding:5px;background:#fff;border:1px solid var(--fw-line);border-radius:7px;box-shadow:0 6px 14px #28487528;z-index:2}
.fw-tool-note-menu>div>.fw-button{justify-content:flex-start}
.fw-tool-remark p,.fw-tool-remark blockquote{overflow-wrap:anywhere}
.fw-tool-remark blockquote{margin:4px 0;padding:3px 8px;border-inline-start:2px solid #bdcde6;color:var(--fw-muted)}
.fw-tool-secondary{margin-bottom:0}
.fw-tool-window-foot{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex:none;padding:8px 16px;border-top:1px solid var(--fw-line);background:#f8faff}
.fw-tool-window-foot>span{margin:0 auto 0 0}
.fw-tool-window-foot .fw-button{max-width:100%}
.fw-preview-issue{display:flex;gap:7px;align-items:center;justify-content:space-between;margin-bottom:6px!important;padding:6px 8px;background:#fff8eb;color:#76511d;border-radius:7px}
.fw-preview-issue button{flex:none}
@media(max-width:860px){.fw-tool-band .fw-tool-hint{display:none}.fw-tool-strip .fw-tool[data-recommended]{background:#fffaf0}}
@media(max-width:660px){
  .fw-heading .fw-heading-full{display:none}
  .fw-heading .fw-heading-compact{display:block}
  .fw-tool-band{padding:4px 5px}
  .fw-tool-strip{grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}
  .fw-tool-strip .fw-tool{grid-template-columns:minmax(0,1fr);justify-items:center;gap:3px;padding:3px 0;min-height:43px;text-align:center}
  .fw-tool .fw-tool-icon{grid-row:auto;width:23px;height:22px;border-radius:5px}
  .fw-tool .fw-tool-icon>svg{width:15px;height:15px}
  .fw-tool .fw-tool-state{right:-6px;min-width:12px;height:12px;font-size:8px;padding-inline:1px}
  .fw-tool .fw-tool-state svg{width:10px;height:10px}
  .fw-tool strong{max-width:100%;font-size:11px}
  .fw-tool small{display:none}
  .fw-tool-window,.fw-tool-window.is-maximized{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding-bottom:env(safe-area-inset-bottom)}
  .fw-tool-window-head{padding:7px 8px 6px;gap:7px}
  .fw-tool-window-head h2{font-size:18px}
  .fw-tool-window-head>.fw-tool-icon{width:33px;height:33px}
  .fw-tool-window-actions [data-fw="tool-maximize"]{display:none}
  .fw-tool-strip-dialog{margin:0 7px 4px}
  .fw-tool-window-body{flex:1;padding:8px 8px 12px}
  .fw-tool-window-foot{padding:7px 8px}
  .fw-tool-foot-artifacts{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.93fr) minmax(0,1.05fr)}
  .fw-tool-foot-artifacts>span{grid-column:1/-1}
  .fw-tool-foot-artifacts .fw-button{gap:3px;min-width:0;padding-inline:4px}
  .fw-tool-foot-artifacts .fw-button svg{width:13px}
  .fw-tool-notice:has([data-fw="data"]){display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 7px}
  .fw-tool-notice [data-fw="data"]{grid-column:2;justify-self:start}
  .fw-tool-window .fw-operation-actions .fw-button{white-space:normal}
  .fw-tool-notice progress{width:65px}
}
@media(max-width:345px){.fw-tool strong{font-size:10px;letter-spacing:-.015em}.fw-tool-foot-artifacts .fw-button{font-size:10px!important}}

/* Production summary uses the same document blocks as the queue and read-only order. */
.factory-modern-summary,.factory-order-view .management-document-body{padding:clamp(8px,1.25vw,18px)}
.factory-modern-summary .workspace-entity-summary{max-width:none}
.factory-summary-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-block:8px 2px}
.factory-summary-actions :is(a,button){display:inline-flex;align-items:center;gap:5px;width:auto;max-width:100%;font-size:.8rem;min-height:33px;padding:5px 8px;line-height:1.25;white-space:normal}
.factory-order-comment,.factory-order-positions p{white-space:pre-wrap;overflow-wrap:anywhere}
.factory-order-positions{margin:.25rem 0;padding-inline-start:1.35rem}
.factory-order-positions li+li{margin-top:.4rem}
.fw-section.fw-optional{border:1px solid #d0e5e9;background:#f3fbfb;border-radius:9px}
.fw-section.fw-optional[data-part=ending]{border-color:#dfd7f1;background:#faf7fe}
.fw-optional[data-part=ending]>header{color:#64488d}
.fw-order-field[data-internal=comment],.fw-order-field[data-internal=note]{padding:8px;border:1px solid #dfd7f1;background:#faf7fe;border-radius:8px}
.fw-order-field[data-internal=note]{border-color:#d0e5e9;background:#f3fbfb}
.fw-tool-window .fw-tool-nav{scrollbar-width:thin}

@media(min-width:901px){
#main.factory-document-route.fw-windowed{max-width:min(1440px,calc(100vw - 54px));height:calc(100dvh - 48px);margin:24px auto;border:1px solid #cfdced;border-radius:12px;box-shadow:0 12px 36px #23375726;overflow:hidden}
}

@media(max-width:355px){
  .fw-tool-strip{grid-template-columns:minmax(0,.87fr) minmax(0,1.16fr) minmax(0,1.18fr) minmax(0,.79fr) minmax(0,1fr)}
  .fw-tool-strip .fw-tool strong{font-size:10px}
}
.fw-order-internal{padding:8px 10px;border:1px solid #e7d9b3;border-radius:8px;background:#fffbef}
.fw-order-internal>span{color:#755527}

.factory-modern-summary .factory-quick-summary.workspace-entity-summary,.factory-order-view .factory-quick-summary.workspace-entity-summary{background:#fff;border-color:#d3deed}
.factory-quick-summary .workspace-entity-summary-heading strong{font-size:1rem;color:#203553}
.factory-quick-summary .workspace-entity-summary-body{padding-top:.25rem}
.factory-summary-context{margin:.1rem 0 .55rem;color:#546987;font-size:.82rem}
.factory-summary-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 .55rem}
.factory-summary-facts>div{min-width:0;padding:6px 8px;background:#f0f5fc;border:1px solid #e4edf8;border-radius:7px}
.factory-summary-facts dt{font-size:.72rem;color:#506a8b}
.factory-summary-facts dd{margin:2px 0 0;font-weight:650;color:#253954;overflow-wrap:anywhere}
.factory-summary-facts dt{display:flex;align-items:center;gap:5px}
.factory-summary-occupied{display:flex;align-items:center;gap:10px;min-width:0;margin-block:0 10px;padding:8px 10px;background:#fff2da;border:1px solid #efd2a2;border-left:3px solid #ba751a;border-radius:8px;color:#774b15}
.factory-summary-occupied>svg{flex:none}
.factory-summary-occupied>div{display:grid;flex:1;min-width:0;gap:1px}
.factory-summary-occupied :is(strong,span){overflow-wrap:break-word}
.factory-summary-occupied>a{flex:none}
.factory-order-note{margin:0;padding:9px 11px;border-inline-start:3px solid #8268b7;border-radius:6px;background:#f2edfb;color:#473563;white-space:pre-wrap;overflow-wrap:break-word}
.fw-tool-material-scope{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:end;margin:0 0 10px}
.fw-tool-material-scope .fw-tool-project-field{margin:0}
.fw-tool-material-nav{display:flex;align-items:center;gap:3px;min-width:0}
.fw-tool-material-nav .fw-button{padding:4px;min-width:28px}
.fw-tool-material-nav>span{font-size:12px;white-space:nowrap;color:#506785}
.fw-tool-model-card{display:flex;min-width:0;gap:8px;align-items:center;padding:3px 6px 3px 0}
.fw-tool-model-card .fw-tool-models{flex:1;min-width:0}
.fw-tool-model-card dd,.fw-tool-excerpt{overflow-wrap:break-word}
.fw-tool-excerpt{padding-top:4px;color:var(--fw-muted)}
.fw-tool-row.fw-tool-artifact-row{display:grid;grid-template-columns:minmax(0,1fr) auto}
.fw-tool-row-actions{display:flex;gap:4px}
.fw-tool-row.fw-tool-artifact-row>.fw-artifacts{grid-column:1/-1;min-width:0;margin:0;padding-block:2px 0}
.fw-tool-artifact-row .fw-artifacts .fw-chip{max-width:100%;min-width:0}
.fw-order-fields :is(label,.fw-order-field)>span{display:flex;align-items:center;gap:7px;margin-bottom:4px}
.fw-order-fields :is(label,.fw-order-field)>span>.fw-mark{width:23px;height:23px;flex:none}
.fw-order-fields .fw-order-field:not(.fw-order-internal){padding:7px 9px;border:1px solid #e3ebf7;border-radius:8px;background:#f7faff}
.fw-material-origin{display:inline-block;margin:0 0 8px;padding:4px 7px;border-radius:5px;background:#edf1fb;color:#3e5381;font-size:.8rem}
.fw-material-tokens{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:0 0 8px}
.fw-material-tokens .fw-button{max-width:100%;white-space:normal}
.fw-material-insert{display:flex;gap:4px;flex-wrap:wrap;align-items:center;margin-top:6px}
.fw-material-insert .fw-button{min-height:31px}
.fw-operation-info{display:flex;gap:10px;align-items:flex-start;margin-bottom:8px;color:#815125}
.fw-operation-info>svg{flex:none}
.fw-operation-info>div{display:grid;gap:5px;min-width:0}
.fw-operation-info code{overflow-wrap:break-word}
.fw-offer.is-stale{color:#7c561c;background:#fff4df;border-color:#eadac0}
.fw-tool-row .fw-offer{margin:5px 0 0;flex-wrap:wrap}
@media(max-width:460px){.fw-tool-material-scope{grid-template-columns:minmax(0,1fr)}.fw-tool-material-nav{justify-content:flex-end}.factory-summary-occupied{flex-wrap:wrap}.fw-tool-artifact-row .fw-artifacts{padding-bottom:1px}}
@media(max-width:400px){.fw-tool-strip-dialog .fw-tool strong{font-size:10px}}
.factory-modern-summary{overflow:auto}
.factory-queue-workspace #factory-selected-order{display:flex;flex:1;height:100%}
.factory-queue-workspace .factory-modern-summary{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column;padding:0;overflow:hidden}
.factory-queue-workspace .factory-modern-summary .workspace-entity-summary{margin:0}
.factory-queue-workspace .factory-modern-summary .record-workspace-body .workspace-entity-summary[open][data-record-kind]{display:block;position:static;height:auto;min-height:0}
.factory-queue-workspace .factory-modern-summary .workspace-entity-summary>summary{min-height:max-content;margin-bottom:.4rem}
.factory-queue-workspace .factory-modern-summary .workspace-entity-summary-heading{display:flex;align-items:center}
.factory-queue-workspace .factory-modern-summary .record-workspace-body .workspace-entity-summary[open][data-record-kind]>.workspace-entity-summary-body{
  display:block;position:static;max-height:none;padding:0;overflow:visible!important}
.factory-queue-workspace .record-workspace-heading{flex-wrap:nowrap}
.factory-queue-workspace .record-workspace-body{max-height:none}
.factory-queue-workspace .record-workspace-body[data-factory-queue-summary]{background:transparent;border:0;padding:0}
.factory-queue-workspace .factory-queue-comment{display:flex;gap:.25rem;align-items:start;margin-top:.13rem;color:#665286}
.factory-queue-comment svg{flex:none}
.factory-queue-comment span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
.factory-queue-workspace .factory-queue-all{padding-block:.4rem}
.factory-queue-workspace .workspace-client-queue-list:has(> .factory-queue-all){flex:1;overflow-anchor:none}
.factory-queue-workspace .factory-bulk-menu{z-index:26}
@media(min-width:760px){
  .workspace-conversation-mode .record-workspace.factory-queue-workspace>.workspace-client-layout{display:grid}
  .factory-queue-workspace .factory-queue-column{min-height:0}
}
@media(min-width:760px) and (max-width:1050px){
  .factory-workspace-mode #main .factory-queue-workspace:not(.is-legacy-detail) .factory-queue-column{display:flex}
  .workspace-conversation-mode #main .factory-queue-workspace.is-legacy-detail.is-detail>.workspace-client-layout{grid-template-columns:minmax(0,1fr)}
}
@media(min-width:760px) and (max-width:850px){
  .factory-queue-workspace .record-workspace-menu{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;padding:0;border:1px solid #d0e2f7;border-radius:7px;background:#edf4fd;color:#2f63a1}
}
.factory-summary-actions .management-primary{background:#325cb2;color:#fff;border:1px solid #325cb2;border-radius:7px;font-weight:650;padding-inline:10px}
.factory-summary-actions .workspace-secondary{color:#32558b;border:1px solid #cfdef1;border-radius:7px}

/* The order editor uses one command bar and its own scroll surface. */
body.factory-document-page .app-shell{display:grid}
body.factory-document-page .sidebar,body.factory-document-page .topbar{display:revert!important;pointer-events:none}
body.factory-document-page .app-shell::after{content:"";position:fixed;inset:0;z-index:80;background:#20395266}
body.factory-document-page #main.factory-document-route:is(.fw-windowed,.fw-maximized){
  position:fixed;z-index:81;inset:0;margin:auto;width:100%;height:100dvh;max-width:none;overflow:hidden
}
body.factory-document-page #main.factory-document-route.fw-windowed{
  width:min(1440px,calc(100vw - 48px));height:calc(100dvh - 40px);border:1px solid #cfdced;border-radius:12px;box-shadow:0 18px 54px #23375745
}
.fw-windowed .fw-commandbar,.fw-maximized .fw-commandbar{height:44px}
.fw-commandbar .fw-tool-strip{width:auto;max-width:100%;min-width:0;overflow:auto;scrollbar-width:none;margin:0;background:none;border:0;gap:4px;flex:0 1 auto}
.fw-commandbar .fw-tool{padding:2px 6px;min-height:31px;border:1px solid var(--fw-line);border-radius:6px;flex:none;display:flex}
.fw-commandbar .fw-tool small{display:none}
.fw-commandbar .fw-tool-icon{width:22px;height:22px}
.fw-view-switch{display:inline-flex;align-items:center;padding:1px;gap:1px;border:1px solid var(--fw-line);border-radius:7px}
.fw-view-switch [aria-pressed=true]{background:#dceaff;color:#22569c}
.fw-document-state{color:#794b1b;background:#fcf0dc;border-radius:6px;padding:4px 7px;font-weight:700;font-size:12px;line-height:1.2;text-wrap:balance;text-align:center}
.fw-workbench{grid-template-columns:220px minmax(0,1fr) 263px}
.fw-closed-outline .fw-workbench{grid-template-columns:minmax(0,1fr) 263px}
.fw-closed-properties .fw-workbench{grid-template-columns:220px minmax(0,1fr)}
.fw-closed-outline.fw-closed-properties .fw-workbench,.factory-document-route .fw-workbench.is-view-only{grid-template-columns:minmax(0,1fr)}
.fw-order-context{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px}
.fw-order-context details{position:relative;color:#304666}
.fw-order-context summary{cursor:pointer;background:#eaf2ff;border:1px solid #d5e4f7;border-radius:6px;padding:6px 8px;list-style:none;font-size:12px;font-weight:700}
.fw-order-context .fw-order-note summary{background:#fff0d2;border-color:#f3d39e;color:#704b15}
.fw-order-context .fw-order-comment summary{background:#f1eafb;border-color:#e5d9f3;color:#574481}
.fw-order-context details p{padding:8px;background:#f7faff;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere}
.fw-composition>header{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.fw-composition>header h2{margin-right:auto;font-size:20px}
.fw-composition-line{display:flex;align-items:center;gap:8px;border:1px solid var(--fw-line);border-radius:7px;margin:4px 0;min-height:40px;padding-inline:6px}
.fw-composition-line.is-nested{margin-inline-start:18px}
.fw-composition-line.is-selected{background:#e9f1ff;border-color:#a8c5ee}
.fw-composition-line>button[data-select]{display:flex;min-width:0;align-items:center;gap:6px;flex:1;padding:5px 0;border:0;background:none;color:inherit;text-align:left;overflow-wrap:break-word}
.fw-composition-symbols{max-width:39%;font-size:11px;color:#654f91;overflow-wrap:break-word}
.fw-composition-summary{margin:0 0 10px;color:var(--fw-muted);font-size:12px}
.fw-composition-issue{display:inline-flex;flex-wrap:wrap;gap:2px;color:#875a16}
.fw-client-preview h2{font-size:21px;margin-bottom:12px}
.fw-client-preview .fw-preview-contact{margin-bottom:10px}
.fw-ai-targets{padding-inline-start:24px}
@media(max-width:1100px){
  .fw-commandbar .fw-tool strong{display:none}
}
@media(max-width:900px){
  .factory-document-route .fw-workbench{grid-template-columns:minmax(0,1fr)}
  .factory-document-route[data-pane="outline"] .fw-workbench{grid-template-columns:176px minmax(0,1fr)}
}
@media(max-width:660px){
  body.factory-document-page #main.factory-document-route.fw-windowed{width:100%;height:100dvh;border:0;border-radius:0}
  .factory-document-route[data-pane="outline"] .fw-workbench{grid-template-columns:minmax(0,1fr)}
  .fw-context,.fw-commandbar{padding-inline:6px;gap:3px}
  .fw-context .fw-button,.fw-commandbar .fw-button{min-width:26px;padding-inline:4px}
  .fw-context .fw-head-end{gap:2px}
  .fw-context select{width:90px;max-width:90px;padding-inline:3px;font-size:11px}
  .fw-context .fw-primary span{max-width:82px;white-space:normal}
  .fw-context [data-fw=window-size]{display:none}
  .fw-context .fw-document-state{max-width:89px;font-size:10px}
  .fw-commandbar .fw-head-end{gap:2px}
  .fw-commandbar .fw-tool{padding-inline:4px}
  .fw-composition-line{gap:4px}
}
.fw-supplement-dialog .catalog-master-middle { overflow: hidden; padding: 0; min-height: 0; }
.fw-supplement-dialog .catalog-master-panel { padding: 0; border: 0; min-height: 0; }
.fw-supplement-dialog.fw-wide { width: min(580px, calc(100vw - 24px)); }
.fw-supplement-form { display: flex; flex-direction: column; min-height: 0; height: min(560px, calc(100dvh - 94px)); }
.fw-supp-tabs, .fw-supp-actions, .fw-supp-footer, .fw-supp-footer > div {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
}
.fw-supp-tabs { padding: 8px 12px; border-bottom: 1px solid var(--fw-line); }
.fw-supp-tabs [aria-pressed="true"] { background: #ecf3ff; border-color: #b8cdee; color: #244f91; }
.fw-supp-scroll {
  display: grid; flex: 1; align-content: start; gap: 9px; overflow: auto;
  overscroll-behavior: contain; padding: 10px 12px; min-height: 0;
}
.fw-supp-quick { display: flex; gap: 8px; }
.fw-supp-quick label { width: 126px; }
.fw-supplement-form label {
  display: grid; gap: 3px; min-width: 0;
  font-size: 12px; font-weight: 650; color: var(--fw-ink);
}
.fw-supplement-form :is(input:not([type=checkbox]), select, textarea) {
  box-sizing: border-box; border: 1px solid #cbd9ec; border-radius: 6px;
  padding: 6px 8px; min-width: 0; min-height: 34px; width: 100%; margin: 0;
  background: white; color: var(--fw-ink); font-size: 13px; font-weight: 400;
}
.fw-supplement-form textarea { resize: vertical; }
.fw-supplement-form [aria-invalid="true"] { border-color: #cc684f; }
.fw-supp-settings, .fw-supp-template, .fw-supp-preview, .fw-supp-rows { display: grid; gap: 8px; min-width: 0; }
.fw-supp-preview, .fw-supp-rows { border: 1px solid var(--fw-line); border-radius: 8px; padding: 8px; }
.fw-supplement-form :is(.fw-supp-preview, .fw-supp-rows) > header {
  display: flex; gap: 6px; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.fw-supplement-form h3 { font-size: 14px; }
.fw-supplement-form small { color: var(--fw-muted); font-size: 12px; }
.fw-supp-rendered {
  display: grid; gap: 7px; padding: 9px; border-radius: 6px; background: #f5f0fb;
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px;
}
.fw-supp-rendered .fw-supp-empty { color: var(--fw-muted); }
.fw-supp-rendered .fw-supp-output { display: grid; gap: 5px; list-style: none; padding: 0; margin: 0; }
.fw-supp-questions li { display: flex; align-items: baseline; gap: 7px; }
.fw-supp-questions li > b { flex: 0 0 3.5ch; white-space: nowrap; text-align: end; color: #624881; }
.fw-supp-offers li { display: flex; align-items: flex-start; gap: 7px; }
.fw-supp-offers li > div { display: grid; gap: 2px; min-width: 0; }
.fw-supp-offers img {
  flex: none; width: 44px; height: 36px; object-fit: cover;
  border-radius: 5px; border: 1px solid var(--fw-line); background: #fff;
}
.fw-supp-offer-details { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
.fw-supp-offer-details b { color: #24604b; }
.fw-supp-offer-details del { color: var(--fw-muted); }
.fw-supp-offer-details a { white-space: nowrap; }
.fw-supp-offer-details :is(b, del) { white-space: nowrap; }
.fw-supp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fw-supp-settings fieldset {
  display: flex; flex-wrap: wrap; gap: 5px 10px; min-inline-size: 0; margin: 0; padding: 5px 8px 8px;
  border: 1px solid var(--fw-line); border-radius: 6px;
}
.fw-supp-settings fieldset label { display: flex; align-items: center; gap: 4px; min-height: 28px; }
.fw-supp-settings fieldset input { width: 15px; height: 15px; margin: 0; }
.fw-supp-edit-row {
  display: grid; grid-template-columns: minmax(16px, auto) minmax(0, 1fr) auto;
  gap: 5px; align-items: start;
}
.fw-supp-edit-row > span { padding-block-start: 7px; color: var(--fw-muted); font-size: 12px; text-align: center; }
.fw-supp-edit-row > div { display: flex; gap: 4px; }
.fw-supp-edit-row textarea { field-sizing: content; min-height: 3rem; max-height: 9rem; }
.fw-supp-progress {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 6px 12px; background: #eef5ff; border-bottom: 1px solid var(--fw-line);
}
.fw-supp-progress .panel-operation-status { padding: 2px 0; min-width: 0; }
.fw-supp-progress .panel-operation-status p { font-size: 12px; line-height: 1.35; }
.fw-supp-progress progress { height: 6px; }
.fw-supp-messages p { padding: 4px 12px; font-size: 12px; }
.fw-supp-messages [role="alert"] { color: #9b372a; background: #fff4f1; }
.fw-supp-messages [role="status"] { color: var(--fw-muted); }
.fw-supp-messages p:empty { padding: 0; }
.fw-supp-footer { border-top: 1px solid var(--fw-line); background: #f8fbff; padding: 7px 12px; }
.fw-supp-footer > div { margin-inline-start: auto; }
.fw-supp-block { margin-block: 8px; background: #f9f4fc; border-color: #e4d6f0; }
.fw-supp-block p { white-space: pre-wrap; padding: 7px 10px; }
.fw-legacy-supp ol { margin-block: 5px; padding-inline-start: 24px; }
@media (max-width: 660px) {
  .fw-supp-quick label { flex: 1; width: auto; }
  .fw-supp-tabs, .fw-supp-scroll, .fw-supp-footer, .fw-supp-progress { padding-inline: 8px; }
  .fw-supplement-form .fw-button { min-height: 36px; padding-inline: 6px; }
  .fw-supplement-form :is(input:not([type=checkbox]), select, textarea) { font-size: 16px; }
}
@media (max-width: 420px) {
  .fw-supp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fw-supplement-form :is(.fw-supp-tabs, .fw-supp-footer, .fw-supp-progress) .fw-button {
    min-width: 0; padding-inline: 4px; font-size: 12px!important;
  }
  .fw-supp-tabs .fw-button { justify-content: center; }
  .fw-supp-tabs .fw-button svg { display: none; }
}
@media (max-width: 360px) {
  .fw-supplement-dialog.fw-wide { width: calc(100vw - 16px); }
  .fw-supp-footer [data-fw="supp-suggest"] svg, .fw-supp-footer [data-fw="supp-apply"] svg { display: none; }
}
.fw-status .fw-tool-strip{display:flex;justify-self:end;margin:0;overflow:hidden}
.fw-status .fw-tool-strip .fw-tool{min-height:34px;min-width:84px}
@media(max-width:760px){
  .fw-status{grid-template-columns:minmax(0,1fr) auto;padding-inline:7px}
  .fw-status-context{display:none}
  .fw-status .fw-tool-strip .fw-tool{min-width:0;padding-inline:5px;justify-items:center;gap:3px}
  .fw-status .fw-tool-strip .fw-tool small{display:none}
}
.fw-heading{flex:1}
.fw-context .fw-title{min-width:0}
.fw-context .fw-title>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:660px){
  .fw-context .fw-primary{width:auto;min-width:44px;max-width:112px;padding-inline:5px}
  .fw-context .fw-primary>span{display:inline;font-size:11px;max-width:83px;text-align:center;overflow-wrap:normal}
  .fw-context .fw-primary svg{width:13px}
  .fw-context .fw-heading .fw-title svg{display:none}
}
@media(max-width:420px){
  .fw-context{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);height:auto;min-height:57px;padding-block:4px}
  .fw-context>.fw-heading{padding-inline-end:30px}
  .fw-context>.fw-head-end{grid-column:2;justify-content:flex-end;gap:5px}
  .fw-context>.fw-head-end>[data-fw=window-close]{position:absolute;inset-block-start:5px;inset-inline-end:6px}
  .fw-context .fw-primary>span{max-width:none;white-space:nowrap}
  .fw-context .fw-primary{max-width:none}
  :is(.fw-point,.fw-section)>header .fw-block-actions [data-fw]:not([data-fw=menu]){display:none}
}
@media(max-width:360px){
  .fw-commandbar .fw-head-end>[data-fw=properties]{display:none}
  .fw-status .fw-tool-strip .fw-tool{padding-inline:4px;min-width:27px}
  :is(.fw-point,.fw-section):not(.is-selected)>header:not(:focus-within) .fw-block-actions{display:none}
  :is(.fw-point,.fw-section).is-selected>header .fw-block-actions [data-fw]:not([data-fw=menu]){display:none}
}

.fw-stage-window.fw-tool-window {
  width:min(546px,calc(100vw - 24px));
  height:fit-content;
  min-height:0;
  max-height:min(570px,calc(100dvh - 40px));
  border:1px solid #c9d9ee;
  border-radius:13px;
  padding:0;
}
.fw-stage-window .fw-tool-window-head,
.fw-stage-window .fw-tool-window-foot{padding:10px 13px}
.fw-stage-window .fw-tool-foot-review{flex-wrap:wrap}
.fw-tool-foot-review .fw-button{flex:0 1 auto;white-space:normal}
.fw-stage-window .fw-tool-window-body{flex:0 1 auto;padding:10px 13px 12px}
.fw-stage-window .fw-tool-notice{flex-wrap:wrap}
.fw-stage-selection{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--fw-muted);font-size:12px}
.fw-stage-list{margin-block:8px 0;border:1px solid var(--fw-line);border-radius:8px;min-width:0}
.fw-stage-list>h3{padding:7px 10px;background:#f3f7fd;font-size:12px;overflow-wrap:anywhere}
.fw-stage-row{display:flex;align-items:center;gap:4px;padding-inline:6px;border-top:1px solid var(--fw-line);min-width:0}
.fw-stage-row:first-child{border-top:0}
.fw-stage-link{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1;min-width:0;padding:6px 7px;
  background:none;border:0;border-radius:6px;color:var(--fw-ink);text-align:left;font-size:13px!important;min-height:44px}
.fw-stage-link:hover{background:#edf4ff}
.fw-stage-link span{min-width:0;overflow-wrap:anywhere}
.fw-stage-link small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--fw-muted);font-size:12px}
.fw-stage-link svg{color:var(--fw-blue)}
.fw-stage-nav{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:6px;max-width:780px;
  margin:0 auto 8px;padding:4px 6px;border:1px solid #c9d9ee;border-radius:8px;background:#f7faff;box-shadow:0 3px 10px #2848751a}
.fw-stage-steps{display:flex;align-items:center;justify-content:center;gap:3px;flex:1;font-size:12px;font-weight:700;min-width:0}
.fw-stage-steps output{white-space:nowrap}
.fw-stage-nav+.fw-sheet .fw-selection{top:46px}
.fw-inline-review.is-current{border-color:#b87c25}
.fw-inline-review blockquote{margin:5px 0;padding-inline-start:8px;border-inline-start:2px solid #e4c58e}
.fw-inline-review .fw-inline-actions,.fw-inline-more[open]>div{display:flex;gap:5px;flex-wrap:wrap;align-items:center}
.fw-inline-more{max-width:100%}
.fw-inline-more>summary{list-style:none;padding:7px;cursor:pointer;border-radius:6px;background:#fff}
.fw-inline-more[open]{flex:1 1 100%}
.fw-inline-more[open]>div{padding-top:4px}
.fw-canvas:has(.fw-stage-nav) :is(.fw-point,.fw-section,.fw-group,[data-inline-note]){scroll-margin-top:96px}
.fw-gap[data-drop-gap]{position:relative}
.fw-drop-gap::after{content:"";position:absolute;inset-inline:0;top:50%;height:4px;transform:translateY(-50%);z-index:5;
  border-radius:4px;background:#265bd4;box-shadow:0 0 0 2px #fff;pointer-events:none}
@media(max-width:520px){
  .fw-stage-window.fw-tool-window{max-height:min(68dvh,550px)}
  .fw-stage-window .fw-tool-window-head,.fw-stage-window .fw-tool-window-foot,.fw-stage-window .fw-tool-window-body{padding:8px}
  .fw-stage-window .fw-tool-window-foot{justify-content:flex-start}
  .fw-stage-window .fw-tool-window-foot .fw-primary{margin-inline-start:auto}
}
