/* Scoped to Project OS / Building Intelligence. Native homepage/login untouched. */
#page-projects.pos-page>[data-pos-original]{display:none!important}
.pos-page{color:#e6e9ee!important}
.pos-root,#page-building{max-width:1440px;margin:0 auto;padding:12px 10px 48px;box-sizing:border-box}
.pos-root *,.pos-page .pos-panel *,.pos-modal *{box-sizing:border-box}
.pos-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:6px 0 26px}
.pos-head small{letter-spacing:.15em;font-size:11px;color:#90a4b8}.pos-head h1{font-size:30px;line-height:1.3;margin:8px 0 10px;font-weight:600;letter-spacing:-.04em}
.pos-head p{font-size:13px;color:#8594a3;margin:0;line-height:1.8}.pos-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pos-root button,.pos-page button,.pos-modal button,.pos-file-button{background:#151c24;color:#d9e0e8;border:1px solid #293544;border-radius:8px;min-height:36px;padding:8px 13px;font:inherit;font-size:12px;cursor:pointer;line-height:1.5}
.pos-root button:hover,.pos-page button:hover,.pos-modal button:hover{border-color:#546c86;background:#1b2733}
.pos-root button:focus-visible,.pos-page button:focus-visible,.pos-modal button:focus-visible{outline:2px solid #739bff;outline-offset:3px}
.pos-root button:disabled,.pos-page button:disabled,.pos-modal button:disabled{opacity:.45;cursor:default}
.pos-root .pos-primary,.pos-page .pos-primary,.pos-modal .pos-primary,.pos-file-button{background:#3c6cf1;border-color:#6087f8;color:white}
.pos-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}.pos-tabs{display:flex;gap:7px;flex:1;flex-wrap:wrap}
.pos-tabs [aria-pressed=true]{border-color:#5b81f8;background:#14213b;color:#f1f4ff}
.pos-root input,.pos-page input,.pos-page select,.pos-modal input,.pos-modal select,.pos-modal textarea{background:#0b121a;color:#e7edf5;border:1px solid #293646;border-radius:7px;padding:10px 12px;font:inherit;font-size:12px;max-width:100%}
.pos-root input:focus,.pos-page input:focus,.pos-page select:focus,.pos-modal input:focus,.pos-modal select:focus,.pos-modal textarea:focus{outline:1px solid #638cff}
.pos-projects{display:grid;gap:14px;max-width:1060px}.pos-project-card{display:grid;grid-template-columns:230px 1fr;gap:22px;background:#0f161e;border:1px solid #253341;border-radius:12px;padding:12px;min-width:0}
.pos-project-cover{position:relative;min-height:200px;background:linear-gradient(155deg,#18303d,#0b121a 75%);border:1px solid #263a49;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden}
.pos-project-cover svg{width:135px;height:110px;stroke:#5b819a;stroke-width:1;fill:none}.pos-project-cover span{font-size:10px;letter-spacing:.12em;color:#7894a8;margin-top:16px}
.pos-project-info{padding:8px 6px;min-width:0}.pos-project-info h2{font-size:20px;font-weight:600;margin:12px 0 5px;overflow-wrap:anywhere}
.pos-project-info p{font-size:12px;color:#8496a6;line-height:1.8;margin:4px 0}.pos-description{min-height:25px}
.pos-badge{display:inline-flex;gap:6px;border-radius:20px;font-size:11px;color:#a7b6c6;background:#1a2631;padding:4px 9px}
.pos-badge:before{content:'';width:6px;height:6px;align-self:center;background:currentColor;border-radius:50%}
.pos-badge[data-status=done],.pos-milestones [data-status=done]{color:#73dba7}.pos-badge[data-status=attention],.pos-milestones [data-status=failed]{color:#e6b472}
.pos-badge[data-status=active]{color:#8babff}.pos-card-foot{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:18px}.pos-card-foot small{color:#788fa1;font-size:11px}
.pos-progress-row{display:flex;gap:12px;align-items:center;margin:15px 0 8px;font-size:12px}.pos-progress{height:6px;border-radius:9px;background:#202d38;overflow:hidden;flex:1;min-width:80px}.pos-progress i{display:block;height:100%;background:#638fff;border-radius:9px}
.pos-pagination{display:flex;align-items:center;gap:15px;margin-top:20px;color:#8496a6;font-size:12px}
.pos-empty{padding:32px 18px;border:1px dashed #293849;border-radius:9px;color:#8396a7;line-height:1.8;font-size:13px;grid-column:1/-1}
.pos-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.pos-panel{background:#0e161e;border:1px solid #253443;padding:21px;border-radius:11px;margin-bottom:16px;min-width:0}
.pos-panel h2{font-size:17px;margin:0 0 17px;font-weight:550}.pos-panel p{font-size:12px;line-height:1.9;overflow-wrap:anywhere}.pos-panel-head{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:14px}.pos-panel-head h2{margin:0}
.pos-muted{color:#8596a7;font-size:12px;line-height:1.8}.pos-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #23313d;overflow-wrap:anywhere;font-size:12px}.pos-row small{display:block;color:#7f94a7;margin-top:5px;font-size:11px}.pos-row b{font-weight:500}.pos-row>div:last-child{display:flex;gap:6px;flex-wrap:wrap}
.pos-summary{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:20px;padding:22px;border:1px solid #283849;border-radius:10px}.pos-summary small,.pos-summary p{font-size:12px;color:#8296a9}.pos-summary h2{font-size:20px}
.pos-milestones>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #202e3a;font-size:12px}.pos-milestones b{font-weight:400;color:#8195a7}
.pos-project-select{display:flex;gap:12px;align-items:flex-end;margin:0 0 22px}.pos-project-select label{display:flex;flex-direction:column;gap:9px;font-size:12px;color:#8da1b3;flex:1}.pos-project-select select{max-width:500px}
.pos-stepper{display:flex;justify-content:space-between;list-style:none;margin:0 0 26px;padding:0;gap:16px}.pos-stepper li{display:flex;flex-direction:column;align-items:center;gap:10px;color:#95aabc;font-size:12px;flex:1;position:relative}.pos-stepper li:not(:last-child):after{content:'';height:1px;background:#2a4052;position:absolute;top:18px;left:calc(50% + 26px);width:calc(100% - 36px)}.pos-stepper span{width:36px;height:36px;border:1px solid #385570;border-radius:50%;display:grid;place-items:center;color:#b4c9da;background:#111f2b}
.pos-drop{border:1px dashed #34516b;border-radius:10px;padding:25px 12px;text-align:center;background:#0d1721;margin-bottom:16px}.pos-drop svg{width:58px;height:58px;fill:none;stroke:#6898fa;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.pos-drop h3{font-size:14px}.pos-drop p{color:#829bb0;font-size:12px}
.pos-file-button{display:inline-block;position:relative;overflow:hidden}.pos-file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.pos-drawing{padding:17px 0;border-bottom:1px solid #253443;font-size:13px;overflow-wrap:anywhere}.pos-upload-small{display:grid;gap:9px;font-size:12px;color:#9aafc1}
.pos-message{background:#192435;border:1px solid #365377;color:#b7cbe3;padding:12px 15px;border-radius:8px;font-size:12px;line-height:1.8}.pos-message[hidden]{display:none}
.pos-modal{background:#101820;color:#e3eaf2;border:1px solid #38506a;border-radius:12px;max-width:min(650px,94vw);width:650px;max-height:86vh;padding:24px;box-shadow:0 30px 100px #0009}.pos-modal::backdrop{background:#020609c9}.pos-modal h2{font-size:20px}.pos-modal p{font-size:12px;line-height:1.8;color:#99abba}.pos-modal label{display:grid;gap:8px;font-size:12px;margin:13px 0;color:#b4c3d1}.pos-modal textarea{min-height:74px}.pos-modal fieldset{border:1px solid #293b4d;border-radius:8px;margin:18px 0}.pos-modal legend{font-size:12px;color:#8fa6b9}.pos-modal .pos-checkbox{display:inline-flex;align-items:center;margin:9px 15px 9px 0}.pos-checkbox input{width:15px;height:15px}.pos-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pos-modal .pos-modal-error{color:#e7af98}
body[data-toaldo-building-context] #page-planstandard #toaldo-design-service-context{display:none!important}
@media(max-width:1050px){.pos-project-card{grid-template-columns:160px 1fr;gap:15px}.pos-columns{grid-template-columns:1fr}.pos-head{flex-wrap:wrap}.pos-stepper{gap:8px}.pos-stepper li{font-size:10px}}
@media(max-width:650px){.pos-project-card{grid-template-columns:1fr}.pos-project-cover{min-height:110px}.pos-project-cover svg{height:70px}.pos-project-cover span{margin:0}.pos-summary{grid-template-columns:1fr}.pos-head h1{font-size:25px}.pos-stepper li:after{display:none}.pos-stepper{flex-wrap:wrap}.pos-project-select{flex-wrap:wrap}.pos-row{align-items:flex-start}.pos-form-row{grid-template-columns:1fr}}
/* V5 visual system. All changes are scoped to these two workspaces. */
body.toaldo-project-ui-v5{--bi-bg:#080f15;--bi-card:#0c151d;--bi-line:#223441;--bi-text:#eff5fb;--bi-muted:#89a2b7;--bi-blue:#487aff}
body.toaldo-project-ui-v5 .content{min-width:0}
.pos-root,#page-building{max-width:1360px;padding:22px 10px 50px}
.pos-head{margin:0 0 28px;align-items:center}.pos-head small{text-transform:none;letter-spacing:.025em;font-size:13px;color:#a2bdd2}.pos-head h1{font-size:32px;letter-spacing:.02em;font-weight:650;margin:8px 0 8px;color:#f4f7fc}.pos-head p{color:#9ab2c7;font-size:13px}.pos-actions button{min-height:40px;padding:9px 17px}
.pos-root button,.pos-page button,.pos-file-button{border-color:#263e50;background:#0e1a24;border-radius:9px;transition:background .15s,border-color .15s}
.pos-root button svg,.pos-page button svg{width:16px;height:16px;vertical-align:middle;margin-left:7px}.pos-root .pos-primary,.pos-page .pos-primary,.pos-file-button{background:linear-gradient(120deg,#467dff,#3869f1);border-color:#5888ff;box-shadow:0 4px 16px #174ddd20;font-weight:600}
.pos-root .pos-primary:hover,.pos-page .pos-primary:hover,.pos-file-button:hover{background:#5186ff}
.pos-toolbar{margin-bottom:10px;gap:14px}.pos-tabs{gap:10px}.pos-tabs button{min-height:42px;padding:10px 14px;background:#0b151d;color:#9eb2c5}.pos-tabs [aria-pressed=true]{background:#142433;border-color:#5689ff;color:#eef5ff;box-shadow:inset 0 0 0 1px #5689ff20}.pos-count{margin-left:7px;padding:2px 5px;border-radius:5px;background:#1e3243;color:#bfcede;font-size:11px}
.pos-search-wrap{display:flex;align-items:center;gap:7px;border:1px solid #263b4b;border-radius:10px;padding:0 10px;background:#0a151e}.pos-search-wrap>svg{width:18px;height:18px;color:#a3c4dd}.pos-search-wrap #pos-search{border:0;background:transparent;width:205px;min-height:39px;padding-left:1px}.pos-search-wrap:focus-within{outline:1px solid #5689ff}
.pos-list-meta{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;color:#7792a8;font-size:11px}.pos-list-meta>div{display:flex;gap:7px}.pos-list-meta button{background:transparent;min-height:29px;padding:4px 9px;border-color:transparent;color:#92abc1}
.pos-projects{max-width:none;gap:16px}.pos-project-card{grid-template-columns:minmax(180px,26%) minmax(0,1fr);gap:22px;padding:12px;background:linear-gradient(110deg,#0e1922,#0a131a);border:1px solid #253947;border-radius:11px;min-height:231px;box-shadow:0 6px 20px #0000000c}.pos-project-cover{background:radial-gradient(ellipse at 50% 55%,#183b50,#0b1923 80%);min-height:210px;position:relative;color:#82a9c3;gap:0}.pos-project-cover .bi-wire{width:100%;height:auto;stroke:none;fill:none;color:#80a5bf}.pos-project-cover .pos-cover-kicker{position:absolute;top:13px;left:15px;margin:0;font-size:8px;letter-spacing:.14em;color:#63839c}.pos-project-cover>span:last-child{margin:0;font-size:11px;color:#86a9c3}
.pos-project-info{padding:4px 5px;display:flex;flex-direction:column}.pos-project-info h2{font-size:22px;margin:12px 0 4px}.pos-project-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.pos-project-top time{font-size:10px;color:#7390a8}.pos-project-info .pos-location{color:#9cb5ca}.pos-project-info .pos-description{margin:9px 0 4px;color:#7e9aae}.pos-badge{font-size:11px;padding:4px 9px}.pos-badge[data-status=active]{color:#6a9cff;background:#12243c}.pos-badge[data-status=done]{background:#102a23;color:#63d99a}.pos-progress-row{margin:12px 0;gap:12px}.pos-progress{height:7px;background:#1b2b39}.pos-progress i{background:linear-gradient(90deg,#4273f2,#6393ff)}.pos-project-card[data-status=done] .pos-progress i{background:#4bdd9a}.pos-card-foot{margin-top:auto;padding-top:3px}.pos-card-foot button{border-radius:20px;padding:7px 14px;min-height:33px;white-space:nowrap}.pos-goal-tags{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.pos-goal-tags>span{padding:3px 7px;border:1px solid #213541;border-radius:5px;font-size:10px;color:#84a3bb}.pos-goal-tags small{font-size:10px;margin-left:3px}.pos-panel{background:linear-gradient(130deg,#0c161e,#0a1219);border:1px solid #253946;border-radius:10px;padding:20px;margin-bottom:0}.pos-panel h2{color:#edf3f8;font-size:17px;font-weight:600}.bi-caption{font-size:11px;color:#7798b1;font-weight:400}.bi-overview-grid{display:grid;grid-template-columns:1fr 1.08fr;gap:16px;align-items:stretch}.bi-overview-grid .pos-panel{min-width:0}.bi-upload .pos-primary{display:block;width:100%}.bi-upload>.pos-muted{margin:10px 0 0;font-size:11px}.bi-files{display:flex;flex-direction:column}.bi-files>.pos-primary{margin-top:auto;width:100%}.bi-files .pos-panel-head button{font-size:11px;border-color:transparent;background:none;padding:4px;min-height:28px;color:#8ab1d0}
.bi-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));list-style:none;padding:0;margin:0 0 30px;gap:8px}.bi-steps li{position:relative;text-align:center;min-width:0}.bi-steps li:not(:last-child):after{content:'';position:absolute;top:20px;left:calc(50% + 25px);width:calc(100% - 42px);height:2px;background:#203847}.bi-steps li.is-done:after{background:#376e97}.bi-steps button{padding:0!important;border:0!important;background:none!important;display:flex;align-items:center;flex-direction:column;gap:9px;width:100%;box-shadow:none;color:#bdd1e1}.bi-steps .bi-step-dot{width:40px;height:40px;border:1px solid #2e4960;border-radius:50%;background:#0d1b26;display:grid;place-items:center;box-shadow:0 0 0 4px #0b1720;color:#bdcee0;font-size:14px}.bi-steps .bi-step-dot svg{width:19px;height:19px;margin:0}.bi-steps b{font-size:13px;font-weight:550}.bi-steps small{font-size:10px;color:#7391aa;line-height:1.5}.bi-steps .is-current .bi-step-dot{background:#3d75fa;border-color:#7c9cff;box-shadow:0 0 0 4px #4479ff1c;color:white}.bi-steps .is-current b{color:#edf5ff}.bi-steps .is-done .bi-step-dot{background:#10352e;border-color:#276756;color:#69e1ae}
#page-building .pos-project-select{margin:0 0 26px;align-items:center;padding:12px 15px;background:#0d1821;border:1px solid #213947;border-radius:9px}#page-building .pos-project-select label{flex-direction:row;align-items:center;gap:14px}#page-building .pos-project-select select{flex:1;min-width:100px;border-color:#233d51;background:#0a141c}.pos-drop{display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:220px;background:radial-gradient(ellipse at 50% 60%,#14253655,#0b151d);padding:24px 12px;border:1px dashed #355570;margin-bottom:14px}.pos-drop>svg{width:48px;height:48px;margin-bottom:8px;color:#6395ff;stroke:currentColor}.pos-drop h3{font-size:14px;margin:9px 0 3px}.pos-drop p{margin:5px 0 13px;font-size:11px}.pos-file-button{border-radius:24px;padding:9px 28px;min-height:37px}.pos-drop #pos-file-name{margin:11px 0 0;font-size:10px;max-width:100%;word-break:break-all}
.bi-file-list{display:flex;flex-direction:column;gap:0;flex:1;max-height:315px;overflow:auto;margin-bottom:14px}.bi-file-list .bi-file-row{width:100%;display:flex;align-items:center;gap:12px;padding:13px 10px;background:transparent;border:0;border-bottom:1px solid #213744;border-radius:0;text-align:left;color:#cfdfed}.bi-file-list .bi-file-row.is-selected{background:#122536;border-radius:8px;border-color:transparent}.bi-file-icon{width:35px;min-width:35px;height:44px;border:1px solid #294c72;border-radius:6px;display:grid;place-items:center;background:#122e50;color:#7daeff;position:relative}.bi-file-icon svg{width:20px!important;height:20px!important;margin:0!important}.bi-file-icon small{font-size:7px;font-weight:600;letter-spacing:.02em}.bi-file-name{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.bi-file-name b{font-size:12px;font-weight:500;overflow-wrap:anywhere}.bi-file-name small{font-size:10px;color:#7d9db7}.bi-file-state{color:#80a1bd;font-size:17px}.bi-file-state.is-done{color:#5bdca0}.bi-no-files{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:13px;color:#7291aa}.bi-no-files svg{width:35px;height:35px;color:#325573}.bi-no-files b{font-size:13px;font-weight:500}.bi-no-files span{font-size:11px;line-height:1.8}
.bi-capabilities>.pos-muted{margin-top:-5px}.bi-fact-row{display:flex;align-items:center;gap:12px;padding:13px 0;font-size:12px;border-bottom:1px solid #1c303e;color:#b3c8dc}.bi-fact-row:last-child{border:0}.bi-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#132638;border:1px solid #243c50;color:#afcce0}.bi-icon svg{width:18px;height:18px}.bi-fact-row>b{margin-left:auto;font-size:11px;font-weight:400;color:#7892a6}.bi-fact-row>b.is-known{color:#66d8ac}.bi-wire{color:#73a7d5;width:100%;max-height:170px}.bi-wire-wrap{position:relative;margin-top:-10px;text-align:center}.bi-wire-wrap>span,.bi-model-illustration>small{font-size:9px;color:#607e95;display:block;margin-top:-5px}.bi-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.bi-metrics>div{background:#0e1d28;border:1px solid #203846;border-radius:9px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}.bi-metrics span{font-size:10px;color:#88a6bf}.bi-metrics b{font-size:14px;color:#e4edf5;font-weight:550}.bi-metrics small{font-size:11px;font-weight:400;color:#9bb1c5}.bi-footnote{font-size:11px;color:#68859d;margin:18px 0;line-height:1.8}
body[data-toaldo-building-context] #toaldo-dxf-composer-page-v2.bi-workflow-v5{max-width:1360px;margin:0 auto;background:transparent;padding:22px 10px 45px;color:#e9f0f6}
.bi-workflow-v5 .bi-work-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #263b49}.bi-workflow-v5 .bi-work-tabs button{font-size:11px;padding:7px 10px;border:1px solid transparent;border-radius:7px;background:#0e1922;color:#91aec5}.bi-workflow-v5 .bi-work-tabs .is-current{color:#d9e9ff;background:#192d43;border-color:#375b7e}.bi-workflow-v5 .bi-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:16px;align-items:start}.bi-workflow-v5 .bi-editor-grid .pi-center,.bi-workflow-v5 .bi-editor-grid .pi-right{padding:18px;border:1px solid #263b49;border-radius:10px;background:#0c161e;min-width:0;max-height:none;overflow:visible}.bi-workflow-v5 .pi-plan-viewport{min-height:300px;height:430px;background:#081017}.bi-workflow-v5 .pi-panel-title{font-size:17px;color:#eaf1f8}.bi-workflow-v5 .pi-panel-sub{font-size:12px!important;line-height:1.8;color:#89a7be}.bi-workflow-v5 .pi-primary{background:#4079fb;border-color:#588bff;border-radius:8px;margin:5px 0;min-height:40px;width:100%;font-size:12px}.bi-workflow-v5 .pi-secondary{font-size:11px;background:#132536;color:#aec5db;border-color:#2d4960;border-radius:8px;margin:4px 0}.bi-workflow-v5 .pi-kv,.bi-workflow-v5 .pi-note,.bi-workflow-v5 .pi-check,.bi-workflow-v5 .pi-field label{font-size:12px;line-height:1.8}.bi-workflow-v5 .pi-note{background:#101e2a;border-color:#294152;color:#9eb8cd}.bi-workflow-v5 .pi-panel-sub,.bi-workflow-v5 .pi-stage-sub{max-width:100%;overflow-wrap:anywhere}.bi-workflow-v5 .bi-editor-facts{margin-top:16px}.bi-workflow-v5 .bi-model-illustration{text-align:center}.bi-workflow-v5 .bi-model-illustration svg{max-height:140px}.bi-workflow-v5 .bi-model-actions{display:flex;flex-direction:column}.bi-workflow-v5 .pi-stage-title{font-size:18px}.bi-workflow-v5 .pi-progress-track i{background:#5489ff}.bi-workflow-v5 .pi-role input{max-width:100%;min-width:0;background:#0a1620;color:#e5eef7;border:1px solid #2b4358;padding:8px;border-radius:6px}.bi-workflow-v5 .pos-head button{background:#101e2c;border:1px solid #2b4457;border-radius:9px;color:#c4d5e4;padding:9px 15px;font-size:12px}.bi-workflow-v5 .bi-steps button:focus-visible,.bi-workflow-v5 button:focus-visible{outline:2px solid #719fff;outline-offset:3px}.bi-workflow-v5 button:disabled{opacity:.45;cursor:default}.bi-workflow-v5 .pi-stage-sub{font-size:11px}
body[data-toaldo-building-context] #toaldo-design-service-context{display:none!important}
@media(min-width:1600px){.bi-overview-grid{gap:20px}.pos-project-card{grid-template-columns:290px 1fr;min-height:245px}.pos-project-info h2{font-size:24px}.pos-project-cover{min-height:220px}}
@media(max-width:1100px){.pos-project-card{grid-template-columns:180px 1fr;gap:16px}.pos-project-info h2{font-size:20px}.pos-toolbar{flex-wrap:wrap}.pos-search-wrap{flex:1}.pos-search-wrap #pos-search{width:100%}.bi-workflow-v5 .bi-editor-grid{grid-template-columns:minmax(0,1fr)}.bi-workflow-v5 .pi-plan-viewport{height:350px}.bi-steps small{font-size:9px}.bi-steps b{font-size:11px}}
@media(max-width:780px){.bi-overview-grid{grid-template-columns:1fr}.pos-project-card{grid-template-columns:130px 1fr;gap:12px;padding:10px}.pos-project-cover{min-height:200px}.pos-goal-tags>span{display:none}.pos-head{gap:14px;flex-wrap:wrap}.pos-head h1{font-size:27px}.pos-tabs{gap:6px}.pos-tabs button{padding:8px;font-size:11px}.pos-count{margin-left:3px}.pos-project-top time{font-size:9px}.pos-project-select{flex-wrap:wrap}.pos-project-select label{flex-basis:100%!important}.bi-steps{gap:4px}.bi-steps small{display:none}.bi-steps .bi-step-dot{width:32px;height:32px}.bi-steps li:not(:last-child):after{top:16px;left:calc(50% + 20px);width:calc(100% - 35px)}}
@media(max-width:520px){.pos-project-card{grid-template-columns:1fr}.pos-project-cover{min-height:125px}.pos-project-cover .bi-wire{height:90px}.pos-project-cover>span:last-child{margin-bottom:10px}.pos-project-info h2{font-size:20px}.pos-card-foot{gap:8px}.pos-head h1{font-size:25px}.pos-root,#page-building{padding:14px 0 35px}.bi-steps b{font-size:10px}.bi-workflow-v5 .bi-work-tabs{gap:4px}.bi-workflow-v5 .bi-work-tabs button{font-size:10px;padding:7px}.bi-workflow-v5 .bi-editor-grid .pi-center,.bi-workflow-v5 .bi-editor-grid .pi-right{padding:12px}}
body[data-toaldo-building-context] #toaldo-dxf-composer-page-v2.bi-workflow-v5 .bi-editor-grid .pi-right{max-height:none;overflow:visible;border:1px solid #263b49;border-radius:10px;background:#0c161e;padding:18px}
body[data-toaldo-building-context] #toaldo-dxf-composer-page-v2.bi-workflow-v5 .bi-editor-grid .pi-center{background:#0c161e;padding:18px;border:1px solid #263b49;border-radius:10px;min-width:0}
body[data-toaldo-building-context] #toaldo-dxf-composer-page-v2.bi-workflow-v5 .bi-editor-grid .pi-plan-viewport{min-height:300px;height:430px}
.bi-model-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:430px;gap:12px;background:radial-gradient(ellipse at center,#12304755,transparent);border:1px solid #213747;border-radius:10px;padding:25px}.bi-model-placeholder .bi-wire{max-height:210px;width:95%}.bi-model-placeholder b{font-size:17px;color:#c8dff1}.bi-model-placeholder span{font-size:12px;color:#92b0c7;line-height:1.8}.bi-model-placeholder small{font-size:10px;color:#607e96}
/* The workspace owns its title and project-creation control; keep account and credits visible. */
body.toaldo-project-ui-v5 #appView>.main>.topbar>div:first-child{display:none}
body.toaldo-project-ui-v5 #appView>.main>.topbar{justify-content:flex-end}
body.toaldo-project-ui-v5 #appView>.main>.topbar>.top-actions>button[onclick="newDraftModal()"]{display:none}
/* V6: prevent page overflow hiding workflow stages; scope to Building workspace. */
body.toaldo-project-ui-v5 #appView>.main{min-width:0}
body.toaldo-project-ui-v5 .content:has(#page-building.active){min-width:0;max-width:100%;overflow-x:hidden}
#page-building,#page-building *{box-sizing:border-box}
#page-building{width:100%;max-width:1360px;min-width:0}
#page-building .bi-steps{width:100%;min-width:0;grid-template-columns:repeat(5,minmax(0,1fr))}
#page-building .bi-overview-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr)}
#page-building .bi-files .bi-file-list{max-height:470px;min-height:240px}
#page-building .bi-intake-row{border:1px solid transparent;border-bottom-color:#203845;padding:7px 8px 10px;min-width:0}
#page-building .bi-intake-row.is-selected{background:#112536;border-color:#355a7d;border-radius:8px}
#page-building .bi-intake-select{display:flex;width:100%;align-items:center;gap:10px;border:0;padding:7px 0;background:transparent;text-align:left;color:#d2e2ee;min-width:0}
#page-building .bi-intake-status{font-size:10px;color:#8daac0;max-width:110px;line-height:1.6;text-align:right;flex-shrink:0}
#page-building .bi-intake-status.is-done{color:#65d6a1}
#page-building .bi-source-meta{display:grid;grid-template-columns:minmax(75px,1fr) minmax(90px,1.3fr) auto;gap:8px;align-items:end;padding-left:44px}
#page-building .bi-source-meta label{display:flex;flex-direction:column;gap:4px;font-size:10px;color:#8fa9bf;min-width:0}
#page-building .bi-source-meta input,#page-building .bi-source-meta select{padding:5px 7px;font-size:11px;height:30px;width:100%;min-width:0;border-radius:5px;background:#0a1620;color:#c6d8e7;border:1px solid #294253}
#page-building .bi-source-meta button{padding:5px;font-size:10px;height:30px;min-height:30px;background:transparent}
#page-building .bi-row-note{font-size:10px;line-height:1.7;color:#a2aec0;margin:7px 0 0 44px}
#page-building .bi-files-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:15px;border-top:1px solid #263b4b}
#page-building .bi-files-footer>span{font-size:10px;color:#819eb5;line-height:1.7}
#page-building .bi-files-footer .pos-primary{width:auto;white-space:nowrap;padding:10px 14px;flex-shrink:0}
#page-building .bi-batch-type{display:flex;gap:10px;align-items:center;font-size:12px;color:#95b0c7;margin:10px 0}
#page-building .bi-batch-type select{min-width:110px;padding:6px;background:#0b1822;color:#c4d8e7;border:1px solid #2a4355;border-radius:6px}
#page-building .bi-intake-notice{color:#a8c4da;font-size:12px;line-height:1.7;border-left:2px solid #447dff;padding-left:10px;min-height:40px;margin-bottom:0}
#page-building .bi-list-help{font-size:10px;color:#7d99af;margin:0 0 10px}
.bi-workflow-v5 .bi-source-switch{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 15px;background:#0d1c28;border:1px solid #284353;border-radius:8px;margin-bottom:16px}
.bi-workflow-v5 .bi-source-switch label{display:flex;gap:10px;align-items:center;min-width:0;max-width:100%;font-size:12px;color:#a2bed3}
.bi-workflow-v5 .bi-source-switch select{max-width:min(480px,70vw);min-width:0;padding:8px;border:1px solid #315267;border-radius:6px;background:#0b1822;color:#d1e1ee}
.bi-workflow-v5 .bi-source-switch>span{font-size:11px;color:#7d9ab1}
.bi-workflow-v5 .bi-reference-sheet{border:1px solid #263e51;border-radius:10px;min-height:380px;padding:40px 30px;display:grid;place-items:center;text-align:center;background:#0b1720}
.bi-workflow-v5 .bi-reference-sheet svg{width:55px;height:55px;color:#6c9bc0}
.bi-workflow-v5 .bi-reference-sheet h2{font-size:20px;overflow-wrap:anywhere;color:#d6e6f2}
.bi-workflow-v5 .bi-reference-sheet p{color:#91adc5;line-height:1.8;font-size:13px;max-width:620px}
.bi-workflow-v5 .bi-reference-sheet button{background:#356df3;border:1px solid #5383ff;border-radius:8px;color:white;padding:10px 18px;margin-top:12px}
@media(max-width:900px){#page-building .bi-overview-grid{grid-template-columns:minmax(0,1fr)}#page-building .bi-files .bi-file-list{max-height:420px}}
@media(max-width:520px){#page-building .bi-source-meta{padding-left:0}#page-building .bi-row-note{margin-left:0}#page-building .bi-files-footer{flex-wrap:wrap;justify-content:flex-end}#page-building .bi-intake-status{max-width:84px}}

/* V7 keeps the native WORKFLOW / VIEW / canvas / parameter layout. */
#toaldo-dxf-composer-page-v2.v7-native-workbench{max-width:none;width:100%;min-width:0;background:#0b1117;color:#e9f1f8}
#toaldo-dxf-composer-page-v2.v7-native-workbench .v7-work-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;border-bottom:1px solid #233443}
.v7-work-head small,.v7-work-head p,.v7-current-source span{color:#8da9be}
.v7-work-head h1{font-size:23px;margin:5px 0 6px}.v7-work-head p{font-size:12px;margin:0}
.v7-current-source{display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center;padding:12px 22px;font-size:12px;background:#0d1c27;border-bottom:1px solid #263c4d}
.v7-current-source b{overflow-wrap:anywhere}
#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-workspace{display:grid;grid-template-columns:174px minmax(260px,1fr) minmax(270px,320px);min-width:0;min-height:700px}
#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-left{display:block;min-width:0;background:#0d141b}
#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-center{min-width:0;padding:16px}
#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-right{min-width:0;padding:18px;border-left:1px solid #233443;overflow-wrap:anywhere}
#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-plan-viewport{height:min(70vh,780px);min-height:420px}
#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-plan-stage{width:100%;height:100%}
#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-nav.active{background:#152a3d;color:#f3f8ff;border-left:2px solid #4b83ff}
.v7-attached-source{display:flex;gap:12px;padding:14px;border:1px solid #335064;border-radius:9px;background:#102334;margin-bottom:12px}
.v7-attached-source b{display:block;font-size:12px;overflow-wrap:anywhere}.v7-attached-source span:not(.v7-file-type){display:block;color:#65dba9;font-size:11px;margin-top:6px}
.v7-file-type{align-self:flex-start;color:#81b8ff;font-size:11px;border:1px solid #325274;border-radius:5px;padding:8px}
.v7-source-status{font-size:12px;line-height:1.7;color:#8da9be;margin-bottom:14px}
.v7-pdf{width:100%;height:100%;position:absolute;inset:0;z-index:2}.v7-pdf~#pi-overlay{pointer-events:none}
@media(max-width:1220px){#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-workspace{grid-template-columns:144px minmax(200px,1fr) 260px}.v7-native-workbench .pi-canvas-tools{flex-wrap:wrap;gap:8px}}
@media(max-width:980px){#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-workspace{grid-template-columns:140px minmax(0,1fr)}#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-left{grid-row:span 2}#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-right{grid-column:2;min-width:0;border-top:1px solid #233443}#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-plan-viewport{min-height:360px;height:55vh}}
@media(max-width:620px){#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-workspace{display:block}#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-left{display:flex;flex-wrap:wrap;padding:10px;gap:5px}#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-nav,#toaldo-dxf-composer-page-v2.v7-native-workbench .pi-view{width:auto}.v7-native-workbench .pi-nav-head,.v7-native-workbench .pi-left-bottom{width:100%}.v7-work-head{flex-wrap:wrap}}

.v7-native-workbench #pi-overlay .v8-camera-handle{pointer-events:all;cursor:grab;stroke:#0b141e;stroke-width:2;touch-action:none}
.v7-native-workbench #pi-overlay .v8-camera-handle:focus{stroke:#fff;stroke-width:3}
.v7-native-workbench #pi-overlay .v8-pending-marker{pointer-events:all;cursor:pointer}
.v8-pending-marker circle{fill:#ffb657;stroke:#352518;stroke-width:1.5}
.v8-pending-marker text{fill:#131a24;font-weight:700;pointer-events:none}
.v7-native-workbench #pi-overlay{touch-action:none}
.bi-metrics small{font-size:11px;color:#8da4b6}
.v8-confirm-list{display:flex;gap:8px;flex-wrap:wrap;padding:14px;margin-top:12px;background:#101c27;border:1px solid #344b60;border-radius:8px}
.v8-confirm-list>b{width:100%;color:#ffbf74}
