/* Zielone Zielone — a quiet workspace with one primary action. */
:root{--primary:#177657;--primary-hover:#105d44;--primary-light:#e8f4ed;--accent:#4a9475;--bg-main:#edf2ee;--border-color:#dce5df;--text-main:#203c30;--text-muted:#718278;--radius-sm:9px;--radius-md:13px;--shadow-sm:0 2px 8px #243d2d08;--shadow-md:0 8px 24px #243d2d0d}
body{font-family:'Segoe UI',sans-serif}button,input,select{font-family:inherit}button:focus-visible,summary:focus-visible{outline:3px solid #8bc4aa;outline-offset:2px}
header{height:auto;min-height:76px;flex-shrink:0;padding:14px 22px;gap:22px;box-shadow:none;border-bottom:1px solid var(--border-color)}
.logo-container{flex-shrink:0;gap:11px}.logo-icon{width:38px;height:42px;background:#177657;border-radius:13px 13px 13px 3px}.logo-text{display:block;font-size:17px;letter-spacing:-.6px}.logo-badge{display:block;background:none;margin:3px 0 0;padding:0;font-size:8px;font-weight:600;letter-spacing:1.8px;color:#7b8c81}
.project-title-container{min-width:100px;flex:1;max-width:320px;border:0;background:#f3f6f3;padding:10px 12px}.project-title-input{width:100%;min-width:0;font-size:12px;font-weight:500}
.header-actions{gap:7px;flex-shrink:0}.header-actions .btn{height:36px;padding:8px 11px;white-space:nowrap;font-size:11px;font-weight:600;box-shadow:none}
#btn-undo{background:transparent!important;border-color:transparent!important;color:#5e7367!important}#btn-open-bom{background:white;color:#315c46;border-color:#d7e4db}#btn-auto-sprinklers{background:#177657;border:1px solid #177657;color:white;padding-inline:16px}
.studio-menu{position:relative}.studio-menu summary{list-style:none;cursor:pointer;border:1px solid #dce5df;border-radius:9px;padding:9px 11px;font-size:11px;font-weight:600;display:flex;gap:12px;background:white}.studio-menu summary::-webkit-details-marker{display:none}.studio-menu-panel{position:absolute;right:0;top:43px;z-index:100;background:white;padding:9px;box-shadow:0 12px 40px #203c3026;border:1px solid #dce5df;border-radius:13px;width:210px;display:flex;flex-direction:column;gap:6px}.studio-menu-panel .btn{justify-content:flex-start;text-align:left;width:100%}.studio-menu-panel select{width:100%!important;border-color:#dce5df!important}
#stepper-container{padding:10px 22px;justify-content:flex-start;gap:14px;background:#f9fbf8;flex-shrink:0;border-bottom:1px solid #dce5df}.step-pill{border:0;background:transparent;padding:5px 8px;font-size:11px;font-weight:500;gap:8px;border-radius:7px}.step-pill.active{border:0;background:#e6f1e9;color:#176343}.step-num{width:21px;height:21px;background:#e3eae4;color:#6c8273;font-size:10px}.step-pill.active .step-num{background:#177657;color:white}
#main-content{min-height:0;height:auto}#toolbar{width:210px;min-width:210px;padding:18px 13px;gap:22px;background:#fcfdfb}#sidebar{width:300px;min-width:300px;padding:16px 13px;background:#f5f8f4;border-left:1px solid #dce5df;gap:15px}.tool-section-title{font-size:9px;letter-spacing:1.2px;font-weight:650;color:#728679;margin-bottom:10px}.tool-grid{gap:5px}.tool-btn{border:1px solid transparent;background:transparent;border-radius:9px;min-height:51px;font-size:10px;font-weight:500;color:#45604f;padding:8px 3px;gap:6px}.tool-btn svg{width:18px;height:18px;stroke-width:1.7}.tool-btn:hover{background:#eef5ef;border-color:#dbe8df}.tool-btn.active{border-color:#b9d9c4;background:#e9f3ec;color:#176343}.tool-btn-full{min-height:38px;padding:9px 8px;gap:8px}
.summary-card-left{background:#eaf2e9;color:#315d41;box-shadow:none;padding:13px;border:1px solid #dae7d8}.summary-card-title{font-size:9px;letter-spacing:1px;opacity:1}.summary-metric-item{background:transparent!important;padding:6px 1px!important}.summary-metric-val{font-size:15px!important;white-space:nowrap}.summary-metric-lbl{font-size:8px!important;opacity:.75}
#canvas-container{background:#fafcf9}.canvas-mode-badge{background:#fffffff0;border:1px solid #dce5df;box-shadow:0 3px 15px #203c3008;border-radius:9px;font-size:10px}.mode-dot{background:#459570}.canvas-controls{bottom:36px;left:16px;padding:6px;gap:5px;border:1px solid #dce5df;border-radius:11px;box-shadow:0 4px 18px #203c3010;max-width:calc(100% - 32px);flex-wrap:wrap}.canvas-controls .btn{font-size:10px;padding:6px 8px;background:white;color:#466551;white-space:nowrap}.canvas-controls .btn[aria-pressed=true]{background:#e8f3eb;border-color:#a9ceb5}.canvas-controls .btn:disabled{opacity:.4}.canvas-controls .btn-icon{width:27px;height:27px}.studio-canvas-hint{position:absolute;bottom:12px;left:18px;right:12px;font-size:9px;color:#85948a;pointer-events:none}.zoom-text{font-size:10px;min-width:38px}#calibration-status:empty{display:none}#calibration-status{padding:6px 8px}
#coverage-summary{bottom:89px!important;font-size:10px!important;padding:8px 11px!important;border-color:#dce5df!important;color:#466551}#heatmap-switch{accent-color:#177657}
.panel,.sidebar-section,.prop-panel,#zones-master-card{border-radius:13px!important;border-color:#dce5df!important;box-shadow:none!important;background:white}.zone-header{flex-wrap:wrap;gap:8px;padding:12px!important;background:#fff!important;border-radius:10px!important}.zone-header-left{width:100%;flex:1 1 100%;min-width:0}.zone-header-title{font-size:12px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;color:#284c38}.zone-header-meta{font-size:10px!important;line-height:1.6;color:#839084}.zone-header-actions{padding-left:20px;gap:5px}.zone-btn-action{background:#f3f7f4!important;border-color:#dce5df!important;color:#52725c!important;font-size:10px!important;padding:4px 8px!important}.zone-btn-action.active{background:#d9efdf!important;color:#176343!important}.zone-bar{height:3px!important;background:#edf2ed!important;margin-top:8px}.zone-fill{border-radius:3px}.zone-row{padding:9px!important;border-color:#e8ede8!important}.zone-row select{font-size:10px!important}#btn-rebalance-zones{background:#eff6f0;border-color:#c8dece;color:#225f3d;font-size:11px;font-weight:650;min-height:34px}#zone-flow-budget{font-size:10px!important;color:#78887b!important;line-height:1.5}
.form-input,.form-select{border-color:#dce5df;background:#fbfdfb;font-weight:500}.form-input:focus,.form-select:focus{border-color:#87b89a;box-shadow:0 0 0 3px #17765710}input[type=range]{accent-color:#318363}#statusbar{background:#f9fbf8;border-color:#dce5df;color:#7f9083;font-size:10px;padding-inline:18px}
dialog{color:#284c38;font-size:13px}dialog::backdrop{background:#12291e60;backdrop-filter:blur(3px)}dialog p{margin:12px 0;line-height:1.6}.modal-card{border-radius:20px;box-shadow:0 24px 80px #12301f26}.modal-backdrop{background:#12291e60;backdrop-filter:blur(3px)}#modal-start-wizard .modal-card{border:1px solid #dce5df}
@media(max-width:1100px){header{padding:10px 14px;gap:10px}.header-actions{gap:5px}.header-actions .btn{padding-inline:8px}.project-title-container{max-width:180px}#toolbar{width:176px;min-width:176px}#sidebar{width:264px;min-width:264px}.logo-text{font-size:14px}.logo-badge{font-size:7px;letter-spacing:1px}#stepper-container{gap:4px;padding-inline:10px}}
@media(max-width:850px){header{flex-wrap:wrap}.project-title-container{max-width:none}.header-actions{width:100%;justify-content:flex-end}.header-actions .btn{font-size:10px}#toolbar{width:145px;min-width:145px;padding:12px 8px}#sidebar{width:240px;min-width:240px}.canvas-controls{bottom:44px}.studio-canvas-hint{font-size:8px}.summary-metrics-row{flex-wrap:wrap}.tool-btn{font-size:9px}.step-pill{font-size:10px;flex-shrink:0}#stepper-container>div:not(.step-pill){display:none}}

#toolbar{overflow-x:hidden}.summary-metrics-row{display:grid;grid-template-columns:1fr;gap:3px}.summary-metric-item{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;min-width:0}.summary-metric-val{font-size:14px!important}.summary-metric-lbl{font-size:8px!important;text-align:right}.summary-card-left{padding:12px}#btn-ai-advisor{display:none}

.auto-family-label{font-size:11px;color:#456655;margin-top:6px}.auto-family-select{width:100%;padding:8px 4px;border:1px solid #ceddd3;border-radius:8px;font-size:10px;background:white;color:#244339}.zone-visibility-label{display:flex;gap:4px;align-items:center;font-size:11px;cursor:pointer;color:#244339}.zone-visibility-label input{accent-color:#177657}.zone-header-actions{flex-wrap:wrap}#btn-ai-advisor{display:none!important}

.plan-appearance{padding:12px;background:#fff;border:1px solid #dce5df;border-radius:12px;margin:8px 0}
.plan-appearance summary{font-size:12px;font-weight:700;cursor:pointer;color:#244d3c}
.plan-appearance label{display:flex;justify-content:space-between;font-size:11px;margin-top:13px;color:#527062}
.plan-appearance select{width:100%;margin-top:6px;padding:7px;border:1px solid #dce5df;border-radius:7px;font-size:11px;background:#f8faf7}
.plan-appearance input{width:100%;accent-color:#247657;margin-top:7px}
.plan-appearance p{font-size:10px;line-height:1.5;color:#718678;margin-bottom:0}
#toolbar{width:225px;min-width:225px}.tool-btn{border-radius:10px!important;font-weight:500!important}
#modal-start-wizard .modal-header{background:linear-gradient(135deg,#245b45,#43866b)!important}
.canvas-mode-badge{max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-title-container{max-width:250px}.header-actions .btn{padding-left:10px;padding-right:10px}

/* Friendly illustrated garden desk. */
body{background:#f8f5e9;color:#284e42}
header{background:#fffdf4;border-bottom:2px solid #dde8cf}
#stepper-container{background:#edf5df}
#toolbar,#sidebar{background:#faf9f0}
.tool-btn{background:#fffdf6;border:1px solid #dce5cb!important;border-radius:14px!important;box-shadow:0 2px 0 #dbe4ce}
.tool-btn:hover{background:#edf6df;transform:translateY(-1px)}
.tool-btn.active{background:#e2f2cf!important;border-color:#74a878!important}
.tool-btn svg{width:26px;height:26px}
.btn{border-radius:12px!important}
.btn-primary{background:#398261!important;box-shadow:0 3px 0 #286147}
.summary-card-left{background:#eaf3d9;border-radius:18px}
#sidebar .panel,#zones-master-card{border-radius:18px;box-shadow:0 3px 0 #e5ebda}
.plan-appearance{background:#fffdf7;border-radius:16px}
.studio-canvas-hint{font-size:8px}

.panel-handle{position:absolute;top:50%;transform:translateY(-50%);z-index:25;width:25px;height:56px;border:1px solid #bdd0b1;background:#fffef3;color:#305e46;font-size:25px;cursor:pointer;box-shadow:0 2px 6px #284f4220}
.panel-handle-left{left:0;border-radius:0 12px 12px 0}.panel-handle-right{right:0;border-radius:12px 0 0 12px}
body.left-panel-hidden #toolbar,body.right-panel-hidden #sidebar{display:none!important}
.panel-handle:hover{background:#dff0ce}

#btn-open-bom{color:white!important}
/* Production layout: readable controls and usable canvas on smaller screens. */
.studio-canvas-hint{font-size:10px;line-height:1.4;background:#ffffffed;border:1px solid #e0e8df;border-radius:8px;padding:5px 8px;max-width:calc(100% - 24px);left:12px;bottom:8px;pointer-events:none}
.canvas-controls{max-width:calc(100% - 64px);flex-wrap:wrap;justify-content:center;bottom:46px}
.modal-content{max-height:90dvh;overflow:auto}.modal-backdrop{padding:16px}
#pipe-routing-status{font-size:12px;line-height:1.55;white-space:pre-line}
#main-canvas{touch-action:none}button,summary,input,select{scroll-margin:15px}
#statusbar{font-size:11px}.tool-btn{min-height:44px}.auto-family-select{font-size:11px}
@media(max-width:760px){
 header{padding:8px 10px;gap:8px;min-height:64px}.logo-container{gap:6px}.logo-text{font-size:13px}.logo-icon{width:30px;height:34px}.project-title-container{padding:6px;max-width:180px}
 .header-actions{overflow-x:auto;justify-content:flex-start;padding-bottom:3px}.header-actions .btn{font-size:10px;padding:6px 8px;min-height:34px}
 #main-content{position:relative}#toolbar,#sidebar{position:absolute;top:0;bottom:0;z-index:35;width:235px;min-width:235px;box-shadow:0 12px 32px #173d3330}#toolbar{left:0}#sidebar{right:0}
 .panel-handle{z-index:40;top:40%;height:48px;width:25px}body:not(.left-panel-hidden) .panel-handle-left{left:235px}body:not(.right-panel-hidden) .panel-handle-right{right:235px}
 .studio-canvas-hint{font-size:9px}.canvas-controls{gap:3px;padding:5px}.canvas-controls .btn{padding:5px;font-size:10px}.canvas-mode-badge{display:none}
 #stepper-container{padding:6px;gap:4px}.step-pill{padding:4px;font-size:9px}.step-num{width:18px;height:18px}
}
@media print{header,#toolbar,#sidebar,#stepper-container,#statusbar,.panel-handle,.canvas-controls,.studio-canvas-hint{display:none!important}body,#app{height:auto!important;overflow:visible!important}.modal-backdrop.active{position:static!important;display:block!important;background:white!important}.modal-backdrop.active .modal-content{max-height:none!important;max-width:none!important;overflow:visible!important;box-shadow:none!important}.modal-footer button,.modal-close{display:none!important}}
/* Calm workflow: tools appear in the relevant stage, with manual controls retained. */
[hidden]{display:none!important}
.workflow{display:flex;gap:8px;padding:10px 22px;background:#fff;border-bottom:1px solid #dfe8df;flex-shrink:0}
.workflow button{flex:1;border:0;background:#f1f5ee;color:#52685b;padding:11px 8px;border-radius:12px;cursor:pointer;font:600 13px inherit}
.workflow button span{display:inline-grid;place-items:center;border-radius:50%;width:24px;height:24px;margin-right:8px;background:#e2eadf}
.workflow button.active{background:#176246;color:white}.workflow button.active span{background:#ffffff25}
.report-settings{display:grid;gap:12px}.report-settings h3{font-size:19px;margin:6px 0}.report-settings p{font-size:12px;line-height:1.6;color:#5c7061;margin:0}
.report-settings label{font-size:12px;font-weight:700}.report-settings select,.report-settings textarea{width:100%;box-sizing:border-box;border:1px solid #cddbcf;border-radius:9px;padding:10px;background:white;color:#234b38;font:inherit}
.report-settings .included-sensor{background:#e7f4e8;padding:10px;border-radius:10px;color:#236039}
#toolbar{background:#fafcf8!important}#sidebar{background:#fafcf8!important}.tool-section-title{letter-spacing:0!important;text-transform:none!important}.tool-btn{box-shadow:none!important;border-color:#e0e8df!important}.summary-card-left{display:none}
@media(max-width:760px){.workflow{padding:6px;gap:4px}.workflow button{font-size:10px;padding:7px 3px}.workflow button span{display:none}}

.section-visibility-menu{display:flex;flex-wrap:wrap;gap:8px;padding:12px;margin:0 0 14px;border:1px solid #d5e3d9;border-radius:12px;background:#f5faf6}.section-visibility-menu legend{font-size:12px;font-weight:700;color:#24533b;padding:0 5px}.section-visibility-menu label{display:flex;align-items:center;gap:6px;padding:7px 9px;background:white;border:1px solid #dce5df;border-radius:8px;cursor:pointer;font-size:12px}.section-visibility-menu input{width:17px;height:17px;accent-color:#177657}.section-color-dot{width:9px;height:9px;border-radius:50%}
