/* Studio 0.4.5: a bright two-dimensional planning desk. This presentation layer
   deliberately leaves original controls, canvas geometry and modal behavior intact. */
body.studio-shell{
  --shell-ink:#163149;--shell-muted:#6b7d8d;--shell-blue:#078fe0;--shell-green:#069764;
  --shell-line:#dfe7ed;--shell-surface:#f4f7fa;--primary:#079667;--primary-hover:#047b54;
  --text-main:#163149;--text-muted:#6b7d8d;--border-color:#dfe7ed;--wb-line:#e3eaf0;
  --wb-green:#079667;--bg-main:#f4f7fa;color:var(--shell-ink);background:#f4f7fa;
  font-family:'Segoe UI',Arial,sans-serif;
}
.studio-shell #app{height:calc(100dvh - 48px);min-height:0;min-width:0}
.studio-shell :is(button,summary,a,input,select,textarea):focus-visible{outline:3px solid #71bce9;outline-offset:2px}
.studio-shell button{touch-action:manipulation}
.studio-shell .btn{border-radius:7px!important;font-weight:600;transition:background .14s,border-color .14s,box-shadow .14s}
.studio-shell .btn:hover{background:#edf6fc!important;color:#126e9e!important;border-color:#abd6ec!important}
.studio-shell header{
  height:59px;min-height:59px;padding:9px 19px;gap:20px;flex-wrap:nowrap;
  background:#fff!important;border-bottom:1px solid var(--shell-line);box-shadow:none;
  position:relative;z-index:60;
}
.studio-shell .studio-shell-brand{gap:9px;flex-shrink:0}
.studio-shell .logo-icon{width:34px;height:37px;border:0;background:linear-gradient(145deg,#11b5d6,#058f63);box-shadow:none;border-radius:11px 11px 11px 4px}
.studio-shell .logo-text{color:#14364d!important;font-size:17px;letter-spacing:-.55px;font-weight:700;line-height:1.25}
.studio-shell .logo-badge{color:#719091!important;letter-spacing:1.25px;font-size:8px;line-height:1.5;margin-top:3px}
.studio-shell .project-title-container{border:1px solid #e2e9ef!important;background:#f6f8fb;border-radius:7px;padding:8px 11px;max-width:420px;min-width:110px;flex:1;box-shadow:none}
.studio-shell .project-title-input{color:#284658!important;font-size:13px;font-weight:500;background:transparent}
.studio-shell .project-title-container svg{color:#8ba0b0}
.studio-shell .header-actions{gap:7px;flex-shrink:0;width:auto}
.studio-shell .header-actions #workbench-export-pdf,.studio-shell .header-actions #btn-open-bom{display:none}
.studio-shell .header-actions .btn{height:34px;min-height:34px;padding:7px 11px;color:#476278!important;background:white!important;border:1px solid #dce5ec!important;font-size:11px!important;white-space:nowrap}
.studio-shell .header-actions .btn:hover{color:#0879b8!important;background:#eef7fd!important;border-color:#b9dcee!important}
.studio-shell .header-actions #btn-compare-families{color:#fff!important;background:#079764!important;border-color:#079764!important;box-shadow:0 2px 5px #087c6415!important;padding-inline:14px}
.studio-shell .header-actions #btn-compare-families:hover{background:#078359!important;border-color:#078359!important;color:white!important}
.studio-shell #workbench-tools-menu[aria-expanded=true]{background:#eaf5fc!important;color:#086d9c!important;border-color:#bcdff2!important}
.studio-shell .workspace-menu{padding:2px 17px;min-height:37px;background:#fbfcfe;border-color:#dfe7ed;z-index:90;gap:2px}
.studio-shell .workspace-menu summary{font-size:12px;color:#466176;border-radius:5px;padding:7px 9px}
.studio-shell .workspace-menu summary:hover,.studio-shell .workspace-menu details[open]>summary{background:#eaf5fc;color:#087ab8}
.studio-shell .workspace-dropdown,.studio-shell .workspace-search-results{border-color:#d7e5ed;box-shadow:0 12px 30px #173e5721;border-radius:8px}
.studio-shell .workspace-dropdown button,.studio-shell .workspace-search-results button{color:#29485d;border-radius:5px}
.studio-shell .workspace-dropdown button:hover,.studio-shell .workspace-search-results button:hover{background:#edf6fc}
.studio-shell .workspace-search input{background:white;border-color:#dbe5ed;border-radius:6px;color:#39566b}

/* The ribbon exposes common operations without replacing the full tool menu. */
.studio-shell .studio-ribbon{
  display:flex;align-items:stretch;gap:0;flex:0 0 auto;min-height:82px;padding:8px 12px;
  background:linear-gradient(#fff,#fbfcfe);border-bottom:1px solid #dce5ed;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;
  scrollbar-color:#c9dce8 transparent;position:relative;z-index:30;
}
.studio-shell .studio-ribbon-group{display:flex;align-items:stretch;gap:4px;padding:0 12px;border-right:1px solid #e4ebf1;flex:none}
.studio-shell .studio-ribbon-group:first-child{padding-left:0}
.studio-shell .studio-ribbon-group:last-child{border-right:0}
.studio-shell .studio-ribbon-action{
  appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  min-width:66px;min-height:64px;padding:8px 10px;border:1px solid transparent;border-radius:7px;
  background:transparent;color:#29475c;font:500 11px/1.25 'Segoe UI',Arial,sans-serif;cursor:pointer;
  white-space:nowrap;flex:none;transition:background .14s,border-color .14s,color .14s;
}
.studio-shell .studio-ribbon-action:hover{background:#eef7fd;border-color:#c9e3f3;color:#087cbd}
.studio-shell .studio-ribbon-action:active{background:#e2f1fb}
.studio-shell .studio-ribbon-action:disabled{opacity:.45;cursor:not-allowed}
.studio-shell .studio-ribbon-action .studio-shell-icon{width:25px;height:25px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.studio-shell .studio-ribbon-action[data-action="new"]{background:#087fcc;color:white;border-color:#087fcc;min-width:88px}
.studio-shell .studio-ribbon-action[data-action="new"]:hover{background:#0872b6;border-color:#0872b6;color:white}
.studio-shell .studio-ribbon-action:is([data-action="save"],[data-action="sprinkler"],[data-action="drip"]) .studio-shell-icon{color:#049266}
.studio-shell .studio-ribbon-action:is([data-action="open"],[data-action="background"],[data-action="pipe"],[data-action="scale"]) .studio-shell-icon{color:#078dd3}
.studio-shell .studio-ribbon-action:is([data-action="pdf"],[data-action="materials"]) .studio-shell-icon{color:#546d91}
.studio-shell .studio-ribbon-action.active,.studio-shell .studio-ribbon-action[aria-pressed="true"]{background:#e5f4fd;border-color:#81c5ee;color:#076eaa;box-shadow:inset 0 0 0 1px #87caee20}
.studio-shell .studio-ribbon-label{display:block;max-width:100px;white-space:nowrap}

/* A compact vertical project menu gives the canvas the full remaining height. */
.studio-shell #main-content{padding:8px;gap:8px;flex:1;min-height:0;min-width:0;background:#f1f5f8;position:relative}
.studio-shell #toolbar,.studio-shell #sidebar{
  border:1px solid #dce5ec!important;border-radius:9px;padding:0 12px 16px!important;gap:14px;
  background:#fff!important;box-shadow:0 1px 4px #244c6504;scrollbar-color:#cfdae2 transparent;
  overscroll-behavior:contain;min-height:0;
}
.studio-shell #toolbar{width:246px;min-width:246px}
.studio-shell #sidebar{width:300px;min-width:300px}
.studio-shell .studio-shell-nav-heading{font-size:11px;font-weight:700;letter-spacing:.1px;color:#2d4b5f;padding:12px 1px 0;margin-bottom:-3px;flex:none}
.studio-shell .workflow.studio-shell-navigation{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-height:0;padding:0 0 8px;background:transparent;border-bottom:1px solid #e4ebf0;flex:none}
.studio-shell .workflow .studio-shell-stage{
  flex:none;display:flex;align-items:center;gap:11px;text-align:left;min-width:0;width:100%;
  min-height:44px;padding:8px 10px;background:#fbfcfe;border:1px solid #e3eaf0;border-radius:8px;
  color:#486274;box-shadow:none!important;position:relative;white-space:normal;transition:background .14s,border-color .14s;
}
.studio-shell .workflow .studio-shell-stage:hover{background:#f1f8fd;border-color:#b7d8ec;color:#126f9e}
.studio-shell .workflow .studio-shell-stage.active{min-height:52px;background:linear-gradient(115deg,#e8f5fe,#f4faff);border:1px solid #71bbeb;color:#096d9e;box-shadow:inset 3px 0 #0c91dc!important}
.studio-shell .workflow .studio-shell-stage>.studio-shell-icon{width:24px;height:24px;flex:none;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round;color:#3c6b80}
.studio-shell .workflow .studio-shell-stage.active>.studio-shell-icon{color:#068ed1}
.studio-shell .workflow .studio-shell-stage>.studio-shell-stage-copy{display:block;width:auto;height:auto;flex:1;min-width:0;margin:0;padding:0;background:none!important;border-radius:0;color:inherit}
.studio-shell .workflow .studio-shell-stage-copy strong{display:block;font-size:12px;font-weight:650;line-height:1.35;color:#28495f}
.studio-shell .workflow .studio-shell-stage-copy small{display:none!important;font-size:10px!important;line-height:1.35;color:#7c909f!important;font-weight:400;margin-top:3px!important}
.studio-shell .workflow .studio-shell-stage.active .studio-shell-stage-copy small{display:block!important}
.studio-shell .workflow .studio-shell-stage.active .studio-shell-stage-copy strong{color:#0d6290}
.studio-shell .workflow .studio-shell-stage>.studio-shell-step-number{display:grid;place-items:center;margin:0;width:17px;height:17px;flex:none;border-radius:5px;background:#edf2f6;color:#93a3af;font-size:9px;font-weight:600}
.studio-shell .workflow .studio-shell-stage.active>.studio-shell-step-number{background:#0c91d3;color:#fff}
.studio-shell .workbench-panel-heading{padding:2px 0 11px;border-color:#e5ecf2}
.studio-shell .workbench-panel-heading h2{font-size:14px;letter-spacing:-.2px;color:#29475c;font-weight:650}
.studio-shell .workbench-panel-heading p{font-size:11px;line-height:1.5;color:#8193a0;margin-top:5px}
.studio-shell .tool-section-title{font-size:9px!important;letter-spacing:.6px!important;color:#8294a2!important;margin-bottom:8px}
.studio-shell .tool-grid{gap:6px}
.studio-shell .tool-btn{min-height:60px;border-radius:7px!important;padding:8px 4px;gap:5px;font-size:11px!important;font-weight:500!important;color:#3e6074!important;background:#fbfcfe!important;border:1px solid #e3ebf1!important;transform:none!important;box-shadow:none!important}
.studio-shell .tool-btn:hover{background:#eef7fc!important;border-color:#b7d7e9!important;color:#087bb1!important;transform:none!important;box-shadow:none!important}
.studio-shell .tool-btn svg{width:25px;height:25px;padding:4px;background:#ecf5f9;border-radius:6px;stroke-width:1.5}
.studio-shell .tool-btn svg.workbench-tool-art{width:35px;height:35px;padding:0;background:none;border-radius:0}
.studio-shell .tool-btn.active,.studio-shell .tool-btn.workbench-active-tool{background:#e7f5fd!important;border-color:#8ac5e7!important;color:#0676aa!important;box-shadow:inset 0 0 0 1px #9ed4ef30!important}
.studio-shell .tool-btn.workbench-active-tool:not(.tool-btn-full):not(.workbench-common-tools .tool-btn):after{background:#148ac4;width:13px;height:13px;right:4px;top:4px;font-size:8px}
.studio-shell .tool-btn-full{min-height:39px;padding:8px!important;gap:8px;font-size:11px!important}
.studio-shell .tool-btn-full svg{width:21px;height:21px;padding:3px;border-radius:5px}
.studio-shell .workbench-common-tools .tool-btn{min-height:36px;font-size:10px!important;border-radius:6px!important;gap:5px;padding:6px 3px}
.studio-shell .workbench-common-tools .tool-btn svg{width:15px;height:15px;padding:0;background:none}
.studio-shell .workbench-import-button{padding:11px 10px;gap:9px;border-radius:8px;background:#f3faff;border:1px dashed #b8dbea;color:#36728c}
.studio-shell .workbench-import-button:hover{background:#eaf6fd;border-color:#7abedc}
.studio-shell .workbench-import-button strong{font-size:12px;color:#25637f}
.studio-shell .workbench-import-button>.workbench-icon{width:25px;height:25px}
.studio-shell .workbench-import-button small{color:#7d9aaa!important}
.studio-shell .workbench-next-step{border-color:#d8e7ec;background:#f3f9fa;color:#4f7280;border-radius:8px;gap:7px}
.studio-shell .workbench-next-step:before{color:#6c939c}
.studio-shell .workbench-guidance summary{color:#375e70;padding:10px}
.studio-shell .workbench-guidance summary .workbench-step-symbol{background:#e0f1f2;color:#1b8d88;border-radius:7px;width:28px;height:30px;flex-basis:28px}
.studio-shell .workbench-next-step>button{border-color:#c1ddd9;background:white;color:#287165;border-radius:6px;min-height:34px;font-size:11px}
.studio-shell .workbench-next-step>button:hover{background:#e5f5ef}
.studio-shell .workbench-manual-controls{background:#f8fbfd;border-color:#e0e8ef;border-radius:8px}
.studio-shell .workbench-manual-controls>summary{padding:11px 10px;color:#486a7f}
.studio-shell .workbench-manual-controls>summary strong{font-size:11px}
.studio-shell .workbench-manual-controls>summary small{color:#8a9ba7!important;font-size:10px}
.studio-shell .workbench-manual-content{padding-inline:9px;gap:10px}
.studio-shell .workbench-manual-content .tool-btn{min-height:58px;font-size:10px!important}
.studio-shell :is(.form-input,.form-select,.auto-family-select,.report-settings select,.report-settings textarea,#toolbar select){border-color:#d5e1e9;background:#fff;color:#35566b;border-radius:6px;font-size:12px;min-height:34px;padding:7px 8px}
.studio-shell :is(#toolbar,#sidebar) small{color:#7b909f}
.studio-shell .plan-appearance{border-color:#e0e8ee!important;border-radius:7px!important;padding:9px 10px}

/* Canvas: stay quiet around the garden. The real metre grid is drawn by canvas. */
.studio-shell #canvas-container{border:1px solid #dbe4eb;border-radius:7px;background-color:#fbfcfd!important;background-image:none!important;box-shadow:inset 0 0 0 1px #ffffff60;min-width:0}
.studio-shell .canvas-mode-badge{top:11px;left:12px;background:#fffffff0;color:#58778b;border-color:#dce7ef;border-radius:6px;padding:6px 9px;box-shadow:0 2px 7px #2e5a7310;font-size:10px}
.studio-shell .heatmap-toggle-container{top:11px;right:12px;padding:6px 9px;gap:9px;border-radius:6px;border-color:#dfe8ee;box-shadow:0 2px 7px #2e5a7310;background:#fffffff0}
.studio-shell .heatmap-toggle-container>span{color:#54758a!important;font-size:11px!important}
.studio-shell .canvas-controls{bottom:64px;gap:4px;padding:5px;border:1px solid #dce7ee;border-radius:8px;background:#fffffff5;box-shadow:0 4px 16px #234e6715;max-width:calc(100% - 56px)}
.studio-shell .canvas-controls .btn{font-size:10px!important;min-height:30px;padding:6px 8px;background:#f4f8fb;color:#4b6b80;border:1px solid transparent;border-radius:5px!important;gap:5px}
.studio-shell .canvas-controls .btn-icon{width:30px;height:30px}
.studio-shell .canvas-controls #workbench-focus{background:#e7f3fb;color:#237baf}
.studio-shell .canvas-controls #workbench-snap{background:#fff;color:#77909f;border-color:#e0e8ed}
.studio-shell .canvas-controls #workbench-snap[aria-pressed="true"]{background:#e9f6ef;border-color:#c8e6d8;color:#228468}
.studio-shell .zoom-text{min-width:35px;font-size:11px;color:#43647a}
.studio-shell .studio-canvas-hint{left:12px;right:12px;bottom:10px;padding:7px 10px;border:1px solid #e1e9ef;border-radius:7px;background:#fffffff0;color:#81929e;font-size:9px;line-height:1.45;box-shadow:none;gap:3px 7px}
.studio-shell .studio-canvas-hint strong{color:#476d82;font-size:10px}
.studio-shell .studio-canvas-hint[data-drawing="true"]{border-color:#b9d9ee;background:#f5fbfff5}
.studio-shell .workbench-scale{left:13px;bottom:115px;padding:6px 8px;border-color:#e0e8ef;border-radius:6px;box-shadow:none;color:#55788e;background:#ffffffe8;gap:7px}
.studio-shell .workbench-scale-line{border-color:#55788e}
.studio-shell .workbench-scale-label{font-size:9px}
.studio-shell .panel-handle{width:24px;height:47px;color:#66899d;border-color:#ccdde8;box-shadow:0 2px 6px #2957720d;background:#fff}
.studio-shell #statusbar{height:23px;min-height:23px;background:#f1f5f8;border-top:1px solid #e3eaf0;color:#7d92a0;font-size:10px;padding-inline:13px}

/* Inspector and product library. */
.studio-shell #workbench-inspector-heading{padding:14px 74px 10px 0;min-height:66px}
.studio-shell #workbench-inspector-heading .workbench-plan-art{right:0;top:13px;width:69px;opacity:.82}
.studio-shell #workbench-inspector-heading .workbench-plan-art svg{height:38px;width:92px;transform:translateX(-12px)}
.studio-shell .workbench-inspector-tabs{display:flex;gap:3px;padding:3px;background:#f0f5f9;border-radius:7px;margin-top:-3px;border:1px solid #e8eef3}
.studio-shell .workbench-inspector-tabs button{flex:1;min-width:0;border-radius:5px;padding:8px 3px;font-size:10px;color:#7890a0}
.studio-shell .workbench-inspector-tabs button[aria-selected="true"]{background:white;color:#0c7fb7;box-shadow:0 1px 4px #1e5f8010}
.studio-shell .studio-library{min-width:0}
.studio-shell .studio-library-heading h3{margin:0;color:#2d526a;font-size:13px;font-weight:650;line-height:1.45}
.studio-shell .studio-library-heading p{margin:6px 0 12px;color:#8195a3;font-size:10px;line-height:1.55}
.studio-shell .studio-library-search{display:block;margin:0 0 12px;font-size:10px;color:#7391a4}
.studio-shell .studio-library-search>span{display:block;margin-bottom:5px}
.studio-shell .studio-library-search input{width:100%;min-width:0;height:33px;padding:7px 10px;border:1px solid #dce6ee;border-radius:6px;background:#f9fbfd;color:#355c75;font:11px 'Segoe UI',Arial,sans-serif;box-sizing:border-box}
.studio-shell .studio-library-search input::placeholder{color:#9aabb7}
.studio-shell .studio-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.studio-shell .studio-product-card{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-width:0;min-height:119px;padding:8px 5px 10px;border:1px solid #e1e9ef;border-radius:7px;background:linear-gradient(#fff,#fbfdfe);color:#345b73;cursor:pointer;font:11px 'Segoe UI',Arial,sans-serif;transition:background .14s,border-color .14s,box-shadow .14s}
.studio-shell .studio-product-card:hover{background:#f2f9fe;border-color:#a8d4ef;box-shadow:0 3px 9px #3e77950a}
.studio-shell .studio-product-card.active,.studio-shell .studio-product-card[aria-pressed="true"]{background:#edf8ff;border-color:#5fb5e8;box-shadow:inset 0 0 0 1px #94d3f72c}
.studio-shell .studio-product-art{display:block;width:87px;height:67px;max-width:100%;flex:none;margin:0 0 3px}
.studio-shell .studio-product-name{font-size:11px;font-weight:650;line-height:1.4;color:#32556c;text-align:center}
.studio-shell .studio-product-spec{font-size:9px;line-height:1.5;margin-top:3px;color:#8a9eab;text-align:center}
.studio-shell .studio-product-state{position:absolute;right:4px;top:4px;padding:2px 4px;border-radius:4px;background:#1689c7;color:white;font-size:8px;line-height:1.3;font-weight:600}
.studio-shell .studio-product-card[hidden],.studio-shell .studio-product-state[hidden],.studio-shell #studio-library-empty[hidden]{display:none!important}
.studio-shell .studio-library-help{color:#98a8b3;font-size:9px;line-height:1.6;margin:12px 1px 0}
.studio-shell #studio-library-empty{padding:17px 10px;border:1px dashed #d8e6ef;border-radius:7px;color:#7894a7;font-size:11px;line-height:1.6;text-align:center;background:#f8fbfd}
.studio-shell .workbench-section-title,.studio-shell .panel-title{color:#2d526a!important;font-size:13px!important;letter-spacing:-.1px;border-color:#e4ecf2}
.studio-shell .workbench-metrics{gap:7px}
.studio-shell .workbench-metric{gap:6px;padding:12px 10px;border-radius:8px;border:1px solid #e1eaf0;background:#f7fafc}
.studio-shell .workbench-metric dt{font-size:10px;color:#8295a1}
.studio-shell .workbench-metric dd{font-size:23px;letter-spacing:-.6px;color:#325d77}
.studio-shell .workbench-metric:first-child{background:#e8f6ef;border-color:#d3ecdf}
.studio-shell .workbench-metric:first-child dt{color:#61947d}.studio-shell .workbench-metric:first-child dd{color:#158763}
.studio-shell .workbench-metric:nth-child(2){background:#eaf5fc;border-color:#d5eaf7}
.studio-shell .workbench-metric:nth-child(2) dt{color:#6c99b3}.studio-shell .workbench-metric:nth-child(2) dd{color:#1487c2}
.studio-shell .workbench-source-summary{background:#f7fafc;border-color:#e2ebf1;border-radius:7px;color:#6b889b;font-size:11px;padding:10px;margin-top:10px}
.studio-shell .workbench-overview-note{color:#7d929f;font-size:11px;line-height:1.6;margin:13px 0}
.studio-shell .workbench-overview-actions{gap:7px}
.studio-shell .workbench-overview-actions .btn{border-color:#d7e4ed;color:#39718e;background:white;border-radius:7px!important;font-size:11px!important;min-height:37px}
.studio-shell .metric-box{background:#f5f9fc;border-color:#e1eaf0;border-radius:7px;padding:10px 7px}
.studio-shell .metric-value{color:#2b7398;font-size:18px}.studio-shell .metric-label{color:#7b96a6;font-size:10px}
.studio-shell #prop-panel-empty{background:#f7fafc;border-color:#d7e6ef;border-radius:8px;color:#7893a4!important;font-size:12px!important;padding:20px 13px!important}
.studio-shell #prop-panel-empty>.workbench-icon{color:#419ac5;width:31px;height:31px}
.studio-shell .zone-header{border-color:#deE8ef!important;border-radius:7px!important;padding:10px!important}
.studio-shell .zone-header-title{color:#355a71;font-size:12px!important}
.studio-shell .zone-header-meta{color:#8398a6!important;font-size:10px!important}
.studio-shell .zone-row{font-size:11px;padding:9px!important}.studio-shell .zone-row select{font-size:11px!important}
.studio-shell .section-visibility-menu{background:#f6f9fc;border-radius:7px;padding:9px}
.studio-shell .cloud-bar{height:48px;min-height:48px;padding:6px 16px;background:#fff;border-top:1px solid #dfe8ef;box-shadow:none;color:#497389;z-index:80}
.studio-shell .cloud-bar a{color:#2e6c8b;font-size:11px;gap:6px}
.studio-shell .cloud-bar span{color:#7991a0;font-size:10px}
.studio-shell .cloud-bar button{border-color:#d9e5ed;border-radius:6px;background:#fff;color:#476d83;font-size:11px;padding:8px 11px}
.studio-shell .cloud-bar button:last-child{background:#079564;border-color:#079564;color:white;box-shadow:0 2px 5px #0c795514}
.studio-shell .cloud-bar button:last-child:hover{background:#078159}
.studio-shell .cloud-dialog{color:#244b63;border-color:#dce8ef;border-radius:15px;box-shadow:0 24px 80px #153d542a}
.studio-shell .cloud-dialog h2{color:#214861}.studio-shell .cloud-dialog::backdrop{background:#173f5559}
.studio-shell .cloud-dialog button{border-radius:7px}.studio-shell .cloud-dialog input,.studio-shell .cloud-dialog select{border-color:#d3e1ea;color:#365b72}
.studio-shell .modal-backdrop{z-index:5000!important}
.studio-shell .price-input{border:1px solid #b9d6e6;border-radius:6px;background:#f5fbff;color:#204e68;padding:8px 10px;font-variant-numeric:tabular-nums;min-width:100px}
.studio-shell .price-input[aria-invalid="true"]{border:2px solid #bc4343;background:#fff4f2;color:#8c2424}
.studio-shell #bom-price-status{font-size:12px;line-height:1.5;color:#397363}
.studio-shell #bom-price-status[data-error="true"]{color:#a23030;font-weight:600}
.studio-shell #modal-start-wizard .modal-header{background:linear-gradient(115deg,#126f74,#0a9769)!important}

@media(min-width:1500px){.studio-shell .studio-ribbon-action{min-width:75px}.studio-shell .studio-ribbon-group{padding-inline:16px}.studio-shell #main-content{padding:10px;gap:10px}}
@media(max-width:1250px){
  .studio-shell header{padding-inline:13px;gap:12px}.studio-shell .logo-text{font-size:15px}.studio-shell .project-title-container{max-width:300px}
  .studio-shell .header-actions{gap:5px}.studio-shell .header-actions .btn{font-size:10px!important;padding-inline:8px}
  .studio-shell .studio-ribbon{padding:7px 10px;min-height:76px}.studio-shell .studio-ribbon-group{padding-inline:8px;gap:2px}
  .studio-shell .studio-ribbon-action{min-width:61px;min-height:61px;padding-inline:8px;font-size:10px}.studio-shell .studio-ribbon-action[data-action="new"]{min-width:78px}
  .studio-shell #toolbar{width:226px;min-width:226px}.studio-shell #sidebar{width:278px;min-width:278px}
  .studio-shell .workflow .studio-shell-stage{padding:8px;gap:9px;min-height:44px}.studio-shell .workflow .studio-shell-stage>.studio-shell-icon{width:24px;height:24px}
}
@media(max-width:1050px){
  .studio-shell header{height:55px;min-height:55px;gap:9px;padding:8px 11px}.studio-shell .logo-text{font-size:13px}.studio-shell .logo-badge{display:none}.studio-shell .logo-icon{width:29px;height:32px}
  .studio-shell .header-actions #btn-undo{display:none}.studio-shell .header-actions .btn{padding-inline:7px}.studio-shell .header-actions #btn-compare-families{padding-inline:10px}
  .studio-shell .project-title-container{max-width:none;min-width:105px;padding:7px 8px}.studio-shell .project-title-input{font-size:11px}
  .studio-shell #main-content{gap:6px;padding:6px}.studio-shell #toolbar{width:205px;min-width:205px}.studio-shell #sidebar{width:252px;min-width:252px}
  .studio-shell #toolbar,.studio-shell #sidebar{padding-inline:10px!important;gap:12px;border-radius:7px}
  .studio-shell .workflow .studio-shell-stage{min-height:44px;gap:8px;padding:8px}.studio-shell .workflow .studio-shell-stage-copy strong{font-size:11px}.studio-shell .workflow .studio-shell-stage-copy small{font-size:9px!important}
  .studio-shell .workflow .studio-shell-stage>.studio-shell-step-number{display:none}
  .studio-shell .canvas-mode-badge{display:none}.studio-shell .canvas-controls{bottom:77px;gap:3px;max-width:calc(100% - 52px)}
  .studio-shell .canvas-controls .btn{padding:5px 6px;font-size:9px!important;min-height:28px}.studio-shell .canvas-controls .btn-icon{width:28px;height:28px}
  .studio-shell .workbench-scale{bottom:139px;left:10px}.studio-shell .studio-canvas-hint{font-size:8px;padding:6px 8px;left:10px;right:10px}.studio-shell .studio-canvas-hint strong{font-size:9px}
  .studio-shell .workbench-metric dd{font-size:21px}.studio-shell .heatmap-toggle-container{right:10px;top:10px;padding:5px 8px}.studio-shell .heatmap-toggle-container>span{font-size:10px!important}
}
@media(max-width:900px){.studio-shell .studio-ribbon-group{padding-inline:7px}.studio-shell .studio-ribbon{scrollbar-width:thin}.studio-shell .header-actions{gap:4px}.studio-shell .studio-ribbon-action{min-width:60px}.studio-shell .cloud-bar{gap:7px;padding-inline:11px}.studio-shell .cloud-bar span{max-width:32%}.studio-shell .cloud-bar button{padding:7px 8px;font-size:10px}}
@media(max-width:760px){
  .studio-shell #app{height:calc(100dvh - 72px)}
  .studio-shell header{height:auto;min-height:51px;flex-wrap:wrap;padding:8px 10px;gap:7px 9px}
  .studio-shell .project-title-container{flex:1;max-width:none;min-width:120px}.studio-shell .header-actions{width:100%;justify-content:flex-end;gap:5px}
  .studio-shell .header-actions .btn{font-size:10px!important;min-height:30px;height:30px}.studio-shell .header-actions #btn-undo{display:inline-flex}
  .studio-shell .studio-ribbon{min-height:69px;padding:5px 8px}.studio-shell .studio-ribbon-group{padding-inline:7px}.studio-shell .studio-ribbon-action{min-height:55px;min-width:57px;gap:5px;padding:6px 7px;font-size:9px}.studio-shell .studio-ribbon-action .studio-shell-icon{width:22px;height:22px}.studio-shell .studio-ribbon-action[data-action="new"]{min-width:72px}
  .studio-shell .workspace-menu{padding-inline:7px;min-height:32px}.studio-shell .workspace-menu summary{font-size:10px;padding:6px}
  .studio-shell #main-content{padding:5px;gap:0}.studio-shell #toolbar,.studio-shell #sidebar{position:absolute;top:5px;bottom:5px;z-index:35;width:min(280px,calc(100vw - 66px));min-width:0;box-shadow:0 8px 28px #244b6530;border-radius:8px;padding-inline:12px!important}
  .studio-shell #toolbar{left:5px}.studio-shell #sidebar{right:5px}
  .studio-shell:not(.left-panel-hidden) .panel-handle-left{left:min(285px,calc(100vw - 61px))}.studio-shell:not(.right-panel-hidden) .panel-handle-right{right:min(285px,calc(100vw - 61px))}
  .studio-shell .panel-handle{z-index:40;top:40%}
  .studio-shell .workflow.studio-shell-navigation{gap:5px;padding:0 0 8px;min-height:0}
  .studio-shell .workflow .studio-shell-stage{flex:none;min-height:44px;width:100%;padding:8px 10px;gap:10px;white-space:normal;text-align:left}
  .studio-shell .workflow .studio-shell-stage>.studio-shell-stage-copy{display:block;width:auto;height:auto}
  .studio-shell .workflow .studio-shell-stage-copy strong{font-size:12px}.studio-shell .workflow .studio-shell-stage-copy small{font-size:10px!important}
  .studio-shell .workflow .studio-shell-stage>.studio-shell-step-number{display:grid}
  .studio-shell .cloud-bar{height:72px;min-height:72px;flex-wrap:wrap;gap:5px 8px;padding:6px 10px}
  .studio-shell .cloud-bar span{max-width:none;flex:1;min-width:50%;font-size:9px}.studio-shell .cloud-bar a{font-size:10px}.studio-shell .cloud-bar button{font-size:10px;padding:6px 8px}.studio-shell .cloud-bar button:last-child{min-width:78px;margin-left:auto}
  .studio-shell .canvas-controls{bottom:73px;max-width:calc(100% - 52px);gap:3px;padding:4px}.studio-shell .studio-canvas-hint{bottom:8px;font-size:8px}.studio-shell .workbench-scale{bottom:137px}
  .studio-shell #statusbar{font-size:9px;min-height:21px;height:21px;padding-inline:9px}
}
@media(prefers-reduced-motion:reduce){.studio-shell *{transition:none!important;scroll-behavior:auto!important}}
@media print{.studio-shell .studio-ribbon,.studio-shell .studio-shell-nav-heading,.studio-shell .studio-shell-navigation{display:none!important}}
/* One visible four-stage guide. Moving between stages never changes the plan. */
.studio-shell #toolbar{gap:10px}
.studio-shell #workbench-tools-heading{padding:3px 0 7px}
.studio-shell #workbench-tools-heading h2{font-size:12px;line-height:1.4}
.studio-shell #workbench-tools-heading p{display:none}
.studio-shell .studio-stage-navigation{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;margin:-2px 0 3px;padding:0;flex:none}
.studio-shell .studio-stage-navigation button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:33px;padding:7px 9px;background:#fff;border:1px solid #d7e3ea;border-radius:7px;color:#375e70;font:600 11px 'Segoe UI',sans-serif;cursor:pointer;white-space:nowrap}
.studio-shell .studio-stage-navigation button:hover:not(:disabled){background:#eef7fb;border-color:#a9cde0}
.studio-shell #studio-stage-previous::before{content:'‹';font-size:19px;font-weight:400;line-height:12px}
.studio-shell #studio-stage-next::after{content:'›';font-size:19px;font-weight:400;line-height:12px}
.studio-shell #studio-stage-next:not(:disabled){background:#e9f5fb;border-color:#c4dfed;color:#1376a1}
.studio-shell .studio-stage-navigation button:disabled{opacity:.4;cursor:default}
.studio-shell .studio-ribbon-group[hidden],.studio-shell #workbench-manual-controls[hidden],.studio-shell .workbench-import-card[hidden],.studio-shell #btn-compare-families[hidden],.studio-shell #workbench-export-pdf[hidden]{display:none!important}
.studio-shell .workbench-guidance-heading{display:grid;gap:3px;padding:9px 10px 0}
.studio-shell .workbench-guidance-heading small{font-size:8px!important;letter-spacing:.8px;color:#6b8c99;font-weight:700;margin:0!important}
.studio-shell .workbench-guidance-heading strong{font-size:12px;line-height:1.35;color:#214c60}
.studio-shell .workbench-guidance-hint{display:block;padding:5px 10px 8px;font-size:10px;line-height:1.45;color:#527383}
.studio-shell .workbench-next-step[data-state=warning]{background:#fff8e8;border-color:#efddb3}
.studio-shell .workbench-next-step>.workbench-next-action{display:block!important;width:calc(100% - 20px);margin:0 10px 9px;padding:7px 8px;min-height:32px;font-size:11px;line-height:1.35;background:#087cbd;color:#fff;border-color:#087cbd}
.studio-shell .workbench-next-step>.workbench-next-action:hover{background:#066ba3;color:#fff}
.studio-shell .workbench-next-step>.workbench-next-action:disabled{opacity:.45;cursor:default}
.studio-shell #studio-ribbon #btn-undo{display:flex;background:#f2f8fc!important;border-color:#d7e7f1!important;color:#315f7a!important}
.studio-shell #studio-ribbon #btn-undo:not(:disabled){opacity:1}
.studio-shell #studio-ribbon #btn-undo:hover:not(:disabled){background:#e8f4fc!important;border-color:#add4eb!important;color:#0c79ae!important}
.studio-shell .workbench-inspector-tabs button[hidden],.studio-shell .tool-btn[hidden]{display:none!important}

.studio-shell .header-actions #lang-select{display:block;width:112px!important;height:34px;min-height:34px;padding:5px 8px;border:1px solid #dce5ec!important;border-radius:7px;background:#fff;color:#284658;font-size:11px;}
