/* Tentenwerk Tentplanner v2 */
.tw-planner{--tw-navy:#142d4e;--tw-blue:#245b91;--tw-ink:#17263b;--tw-muted:#7c8999;--tw-line:#e4e9ef;--tw-bg:#f4f6f9;position:relative;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--tw-ink);background:#fff;border:1px solid #dfe5ec;border-radius:14px;overflow:hidden;box-shadow:0 14px 40px #152b4610;min-width:0;font-size:14px}
.tw-planner *{box-sizing:border-box}.tw-planner button,.tw-planner input,.tw-planner select{font:inherit}.tw-planner button{cursor:pointer}.tw-topbar{min-height:76px;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--tw-line);background:#fff}.tw-brand{display:flex;align-items:center;gap:11px;flex-shrink:0}.tw-brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:var(--tw-navy);color:white;font-weight:800;font-size:21px;letter-spacing:-1px}.tw-brand strong{display:block;font-size:16px;letter-spacing:-.3px}.tw-brand small{display:block;margin-top:4px;color:#8592a3;font-size:9px;font-weight:800;letter-spacing:1.4px}.tw-project-name{flex:1;max-width:210px}.tw-project-name label{display:block;color:#98a4b1;font-size:8px;letter-spacing:1px;font-weight:800}.tw-planner .tw-project-input{margin-top:4px;padding:6px 8px;min-height:31px;font-weight:650;font-size:12px;border-color:transparent;background:#f7f9fb}.tw-top-actions{display:flex;align-items:center;gap:7px}.tw-btn{border:1px solid transparent;border-radius:7px;padding:10px 13px;font-weight:650;font-size:12px!important;transition:.15s;white-space:nowrap}.tw-btn-primary{background:var(--tw-navy);color:#fff}.tw-btn-primary:hover{background:#214a76}.tw-btn-quiet,.tw-btn-outline{background:#fff;border-color:var(--tw-line);color:#44556a}.tw-btn-danger{background:#fff;color:#b44747;border-color:#f0dada}.tw-btn-outline:hover,.tw-btn-quiet:hover{background:#f6f8fb}.tw-main-tabs{display:flex;gap:4px;padding:0 20px;border-bottom:1px solid var(--tw-line);background:#fbfcfd}.tw-tab{padding:13px 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:#7c8999;font-size:11px;font-weight:700}.tw-tab.active{color:var(--tw-navy);border-bottom-color:#285d8f}.tw-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:590px}.tw-sidebar{border-right:1px solid var(--tw-line);background:#fff;display:flex;flex-direction:column}.tw-panel-section{padding:19px 16px;border-bottom:1px solid var(--tw-line)}.tw-section-head{display:flex;align-items:center;gap:9px;margin-bottom:10px}.tw-section-head>span{font-size:10px;color:#9aa7b6;font-weight:800;letter-spacing:.5px}.tw-section-head h3{font-size:13px;margin:0;font-weight:750;letter-spacing:-.2px}.tw-muted{color:#8491a1;font-size:11px;line-height:1.55;margin:0 0 12px}.tw-tool-group-label{font-size:9px;letter-spacing:1px;font-weight:800;color:#9aa6b4;margin:12px 0 8px}.tw-space-top{margin-top:16px}.tw-tent-presets{display:grid;gap:6px}.tw-preset{width:100%;display:flex;align-items:center;text-align:left;gap:9px;padding:8px;border:1px solid #e8edf2;border-radius:7px;background:#fff;color:var(--tw-ink);transition:.15s}.tw-preset:hover{border-color:#9db7d0;background:#f8fbff}.tw-preset-icon{width:32px;height:30px;display:grid;place-items:center;background:#eef3f8;color:var(--tw-blue);border-radius:5px;font-size:21px}.tw-preset b{display:block;font-size:11px;font-weight:750}.tw-preset small{display:block;margin-top:2px;color:#8a97a6;font-size:10px}.tw-preset em{margin-left:auto;font-size:18px;color:#8b9aaa;font-style:normal;font-weight:300}.tw-object-presets{display:grid;grid-template-columns:1fr 1fr;gap:6px}.tw-object-btn{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:65px;padding:9px;border:1px solid #e6ebf0;border-radius:7px;background:#fff;color:#34475c;font-size:11px;font-weight:700}.tw-object-btn>span{font-size:18px;color:#2d6799}.tw-object-btn small{font-size:9px;font-weight:500;color:#8996a5}.tw-object-btn:hover{border-color:#a8bed2;background:#f8fbff}.tw-properties{flex:1}.tw-empty-selection{font-size:11px;color:#8b97a6;line-height:1.6;padding:11px 0}.tw-property-fields label,.tw-modal-card label,.tw-map-controls label{display:block;color:#627286;font-size:11px;font-weight:650;margin:11px 0}.tw-planner input,.tw-planner select{display:block;width:100%;margin-top:6px;border:1px solid #dce3ea;background:#fff;border-radius:6px;padding:9px 10px;color:#25364a;font-size:12px;outline:none;min-height:36px}.tw-planner input:focus,.tw-planner select:focus{border-color:#6795c0;box-shadow:0 0 0 3px #2b64941a}.tw-field-row{display:flex;gap:8px}.tw-field-row>*{min-width:0;flex:1}.tw-field-row .tw-btn{align-self:end;padding:9px 6px}.tw-sidebar-foot{padding:13px 16px;color:#8491a1;font-size:10px;line-height:1.6;background:#fafbfd}.tw-key{display:inline-block;color:#486783;background:#eaf0f6;font-size:9px;font-weight:800;letter-spacing:.8px;border-radius:3px;padding:2px 5px;margin-right:5px}.tw-canvas-area{min-width:0;background:#f6f8fb;display:flex;flex-direction:column}.tw-canvas-toolbar{min-height:64px;background:#fff;border-bottom:1px solid var(--tw-line);display:flex;align-items:center;justify-content:space-between;padding:10px 16px;gap:10px}.tw-canvas-toolbar strong{display:block;font-size:13px}.tw-subtitle{display:block;color:#8996a5;font-size:10px;margin-top:4px}.tw-canvas-tools{display:flex;align-items:center;gap:4px}.tw-tool{width:29px;height:29px;border:1px solid #e1e7ed;border-radius:6px;background:#fff;color:#53657a;font-size:15px;display:grid;place-items:center;padding:0}.tw-tool:hover,.tw-tool.active{background:#edf3f8;color:var(--tw-navy);border-color:#cbd8e5}.tw-zoom{min-width:35px;text-align:center;font-size:10px;color:#718196;font-weight:700}.tw-tool-divider{height:20px;border-left:1px solid #e4e9ef;margin:0 3px}.tw-canvas-wrap{position:relative;padding:12px;flex:1;min-height:400px}.tw-canvas{display:block;width:100%;height:100%;min-height:400px;background:#fbfcfe;border:1px solid #e0e6ed;border-radius:7px;touch-action:none;outline:none}.tw-canvas-hint{position:absolute;bottom:21px;left:22px;background:#fff;border:1px solid #e4e9ef;border-radius:5px;padding:7px 10px;font-size:10px;color:#8794a3;box-shadow:0 3px 12px #182c4410;pointer-events:none}.tw-canvas-footer{padding:13px 16px;background:#fff;border-top:1px solid var(--tw-line);display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.tw-legend{display:flex;gap:12px;flex-wrap:wrap;color:#7d8b9b;font-size:10px}.tw-legend span{display:flex;align-items:center;gap:6px}.tw-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}.tw-legend-tent{background:#d8e5f1;border:1px solid #47739e}.tw-legend-object{background:#f2e7d7;border:1px solid #a88b60}.tw-legend-grid{border:1px solid #cbd3dc;background:repeating-linear-gradient(0deg,#fff,#fff 3px,#dfe5eb 4px)}.tw-metrics{display:flex;gap:18px}.tw-metrics span{display:block}.tw-metrics small{display:block;color:#9aa5b2;font-size:8px;font-weight:800;letter-spacing:.7px;margin-bottom:4px}.tw-metrics b{font-size:12px;color:#243950;font-weight:750}.tw-tab-panel{padding:24px;min-height:450px;background:#f7f9fb}.tw-tab-panel[hidden],.tw-workspace[hidden]{display:none}.tw-panel-intro h3{margin:0;font-size:19px;letter-spacing:-.4px}.tw-panel-intro p{margin:6px 0 20px;color:#8390a0;font-size:12px}.tw-map-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:16px;background:#fff;border:1px solid var(--tw-line);border-radius:10px}.tw-map-controls label{flex:1;min-width:220px;margin:0}.tw-map-disclaimer,.tw-storage-note{font-size:11px;line-height:1.6;color:#8390a0;margin:12px 0}.tw-map-container{position:relative;min-height:330px;border:1px solid #dce4ec;border-radius:10px;overflow:hidden;background:#edf2f5}.tw-map-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#6d7e90}.tw-map-placeholder span{font-size:34px;color:#537da4}.tw-map-placeholder b{font-size:13px}.tw-map-placeholder small{font-size:10px}.tw-map-container iframe{width:100%;height:380px;border:0;display:block}.tw-project-actions{display:flex;gap:9px;flex-wrap:wrap;padding:16px;background:white;border:1px solid var(--tw-line);border-radius:10px}.tw-saved-projects{margin-top:24px}.tw-saved-projects h4{font-size:13px;margin:0 0 10px}.tw-project-list{display:grid;gap:8px}.tw-project-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--tw-line);background:#fff;border-radius:8px}.tw-project-row strong{font-size:12px}.tw-project-row small{display:block;color:#8996a5;font-size:10px;margin-top:4px}.tw-project-row .tw-btn{padding:7px 10px}.tw-modal{position:absolute;z-index:20;inset:0;background:#0d203b80;display:grid;place-items:center;padding:18px;border-radius:14px}.tw-modal[hidden]{display:none}.tw-modal-card{background:white;width:min(100%,390px);border-radius:12px;padding:22px;box-shadow:0 24px 80px #06152b40}.tw-modal-head{display:flex;justify-content:space-between;align-items:flex-start}.tw-modal-head h3{margin:0;font-size:17px}.tw-modal-head p{margin:6px 0 10px;color:#8a97a6;font-size:11px}.tw-modal-close{border:0;background:#f1f4f7;border-radius:6px;width:29px;height:29px;font-size:20px;color:#53657a}.tw-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.tw-toast{position:sticky;bottom:12px;left:50%;width:max-content;max-width:90%;transform:translateY(100px);opacity:0;transition:.2s;background:#152e4d;color:white;padding:10px 14px;border-radius:7px;font-size:12px;z-index:30;margin:-44px auto 10px;pointer-events:none}.tw-toast.show{transform:translateY(0);opacity:1}
@media(max-width:950px){.tw-topbar{flex-wrap:wrap}.tw-project-name{order:3;max-width:none;flex-basis:100%}.tw-workspace{grid-template-columns:240px minmax(0,1fr)}.tw-top-actions{margin-left:auto}}
@media(max-width:680px){.tw-workspace{grid-template-columns:1fr}.tw-sidebar{border-right:0;border-bottom:1px solid var(--tw-line)}.tw-panel-section{padding:14px}.tw-tent-presets{grid-template-columns:1fr 1fr}.tw-preset{padding:7px;gap:6px}.tw-preset-icon{width:28px}.tw-preset em{display:none}.tw-properties{padding:14px}.tw-sidebar-foot{display:none}.tw-topbar{padding:12px}.tw-top-actions{gap:5px}.tw-top-actions .tw-btn{padding:8px}.tw-main-tabs{padding:0 10px}.tw-tab{padding:12px 8px}.tw-canvas-toolbar{align-items:flex-start;flex-direction:column}.tw-canvas-wrap{padding:8px;min-height:330px}.tw-canvas{min-height:330px}.tw-canvas-hint{left:14px;bottom:16px;font-size:9px}.tw-canvas-footer{padding:12px}.tw-metrics{width:100%;justify-content:space-between;gap:8px}.tw-legend{width:100%}.tw-tab-panel{padding:14px}.tw-map-controls{align-items:stretch}.tw-map-controls .tw-btn{width:100%}}
@media print{body *{visibility:hidden!important}.tw-planner,.tw-planner *{visibility:visible!important}.tw-planner{position:absolute;left:0;top:0;width:100%;box-shadow:none;border:0}.tw-topbar,.tw-main-tabs,.tw-sidebar,.tw-canvas-toolbar,.tw-canvas-hint,.tw-tab-panel,.tw-toast{display:none!important}.tw-workspace{display:block!important}.tw-canvas-area{background:white}.tw-canvas-wrap{padding:0}.tw-canvas{border:0;min-height:0;height:75vh}.tw-canvas-footer{border-top:1px solid #ccc}}

/* v2.1 map and custom shape additions */
.tw-v2 .tw-map-container{min-height:380px;position:relative}
.tw-v2 .tw-leaflet-map{height:420px;width:100%;min-height:380px;z-index:1}
.tw-v2 .tw-leaflet-map[hidden]{display:none}
.tw-v2 .tw-map-placeholder[hidden]{display:none}
.tw-v2 .leaflet-container{font:12px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tw-v2 .tw-map-controls .tw-btn{height:36px}
@media(max-width:680px){.tw-v2 .tw-leaflet-map{height:340px;min-height:340px}}

/* v2.2 map drawing and satellite controls */
.tw-v2 .tw-map-drawbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:12px 0;padding:13px 15px;background:#fff;border:1px solid #e3e9ef;border-radius:9px}
.tw-v2 .tw-map-drawbar label{display:block;min-width:210px;max-width:320px;flex:0 0 280px;margin:0;color:#627286;font-size:11px;font-weight:650}
.tw-v2 .tw-map-help{flex:1;min-width:200px;font-size:11px;line-height:1.5;color:#7c8999}
.tw-v2 .tw-map-mode-active{background:#e8f2fb!important;border-color:#8db1d0!important;color:#163d63!important}
.tw-v2 .tw-map-container{overflow:hidden}
.tw-v2 .tw-leaflet-map{height:560px;min-height:420px}
.tw-v2 .tw-map-object-label{background:transparent;border:0;white-space:nowrap;text-align:center;pointer-events:none}
.tw-v2 .tw-map-object-label span{display:block;font-size:10px;font-weight:800;color:#173450;text-shadow:0 1px 2px white,1px 0 2px white,-1px 0 2px white}
.tw-v2 .tw-map-object-label small{display:block;font-size:9px;color:#173450;text-shadow:0 1px 2px white,1px 0 2px white,-1px 0 2px white}
.tw-v2 .leaflet-tooltip{font-size:11px}
@media(max-width:680px){.tw-v2 .tw-map-drawbar label{max-width:none;flex-basis:100%}.tw-v2 .tw-leaflet-map{height:420px;min-height:350px}}

/* v2.3 interactieve kaartgrepen */
.tw-v2 .tw-map-drag-handle,.tw-v2 .tw-map-rotate-handle{background:transparent;border:0;text-align:center}
.tw-v2 .tw-map-drag-handle span,.tw-v2 .tw-map-rotate-handle span{display:grid;place-items:center;width:27px;height:27px;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 6px #0d203b55;font-size:17px;font-weight:800;line-height:1;cursor:move}
.tw-v2 .tw-map-drag-handle span{background:#173f67;color:#fff}
.tw-v2 .tw-map-rotate-handle span{background:#fff;color:#173f67;font-size:20px}
.tw-v2 .leaflet-marker-icon.tw-map-drag-handle,.tw-v2 .leaflet-marker-icon.tw-map-rotate-handle{cursor:move}

/* v2.6 tekenverbeteringen */
.tw-v2 .tw-canvas [data-resize]{pointer-events:all;filter:drop-shadow(0 1px 2px #17345055)}
.tw-v2 .tw-canvas [data-resize]:hover{fill:#d9edff;stroke:#174c7a;stroke-width:2.5}
.tw-v2 .tw-canvas{user-select:none;-webkit-user-select:none}

/* v2.7 professionele werkruimte */
.tw-v2{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#203247;background:#f4f7fa;border:1px solid #dbe3eb;border-radius:16px;box-shadow:0 18px 55px rgba(22,45,72,.12);overflow:hidden;font-size:13px;line-height:1.45}
.tw-v2 .tw-topbar{background:linear-gradient(115deg,#102b47 0%,#1a4268 72%,#23567b 100%);color:#fff;padding:18px 22px;gap:18px}
.tw-v2 .tw-brand-mark{background:#fff;color:#173b5e;border-radius:10px;box-shadow:0 4px 12px #061a2b35;font-weight:900}
.tw-v2 .tw-brand strong{color:#fff;font-size:16px;letter-spacing:-.25px}
.tw-v2 .tw-brand small{color:#b8ccdf;letter-spacing:1.2px}
.tw-v2 .tw-project-name label{color:#b8ccdf}
.tw-v2 .tw-project-name input{background:#ffffff12;color:#fff;border-color:#ffffff35}
.tw-v2 .tw-project-name input:focus{border-color:#d7e9fa;box-shadow:0 0 0 3px #ffffff20}
.tw-v2 .tw-btn{border-radius:7px;font-weight:700;transition:background .15s ease,border-color .15s ease,transform .15s ease;min-height:35px}
.tw-v2 .tw-btn:active,.tw-v2 .tw-tool:active{transform:translateY(1px)}
.tw-v2 .tw-btn-primary{background:#e6a943;border-color:#e6a943;color:#172f48}
.tw-v2 .tw-btn-primary:hover{background:#f1bb5d;border-color:#f1bb5d}
.tw-v2 .tw-btn-quiet{background:#ffffff12;border-color:#ffffff30;color:#fff}
.tw-v2 .tw-btn-quiet:hover{background:#ffffff22}
.tw-v2 .tw-main-tabs{background:#fff;border-bottom:1px solid #dfe6ed;padding:0 20px;gap:5px}
.tw-v2 .tw-tab{font-size:12px;font-weight:750;color:#6d7f91;border-bottom-width:3px;padding:14px 17px}
.tw-v2 .tw-tab.active{color:#173f65;border-bottom-color:#e6a943}
.tw-v2 .tw-workspace{background:#f5f8fb;gap:0}
.tw-v2 .tw-sidebar{background:#fff;border-right:1px solid #dfe6ed}
.tw-v2 .tw-panel-section{padding:20px 17px;border-bottom:1px solid #e8edf2}
.tw-v2 .tw-section-head span{background:#eaf1f7;color:#3b668b;border-radius:6px;min-width:28px;height:25px;display:grid;place-items:center}
.tw-v2 .tw-section-head h3{font-size:13px;letter-spacing:-.1px;color:#20384f}
.tw-v2 .tw-tool-group-label{color:#8b9aaa;font-size:9px;letter-spacing:1.1px}
.tw-v2 .tw-preset,.tw-v2 .tw-object-btn{border-radius:8px;border-color:#e2e8ef;background:#fff;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.tw-v2 .tw-preset:hover,.tw-v2 .tw-object-btn:hover{border-color:#8eafcb;background:#f5f9fd;box-shadow:0 3px 10px #163e5d0b}
.tw-v2 .tw-preset b,.tw-v2 .tw-object-btn{color:#29435d}
.tw-v2 input,.tw-v2 select{border:1px solid #d7e0e8;border-radius:7px;min-height:36px;color:#253e55;background:#fff}
.tw-v2 input:focus,.tw-v2 select:focus,.tw-v2 textarea:focus{outline:none;border-color:#4d83b0;box-shadow:0 0 0 3px #4d83b01a}
.tw-v2 .tw-canvas-area{background:#f5f8fb;min-width:0}
.tw-v2 .tw-canvas-toolbar{background:#fff;border-bottom:1px solid #dfe6ed;padding:15px 18px}
.tw-v2 .tw-canvas-toolbar strong{font-size:13px;color:#20384f}
.tw-v2 .tw-subtitle{color:#8795a4}
.tw-v2 .tw-tool{border:1px solid #dce4ec;border-radius:6px;background:#fff;color:#516b83;width:31px;height:31px}
.tw-v2 .tw-tool:hover,.tw-v2 .tw-tool.active{background:#eaf2f9;border-color:#b6ccdf;color:#214d72}
.tw-v2 .tw-canvas-wrap{padding:14px;min-height:470px}
.tw-v2 .tw-canvas{background:#fff;border-color:#d9e2eb;border-radius:9px;box-shadow:inset 0 0 0 1px #ffffff}
.tw-v2 .tw-canvas-hint{border-radius:7px;color:#6e7e8e;font-size:10px;box-shadow:0 4px 14px #203b5610}
.tw-v2 .tw-canvas-footer{border-top-color:#e1e7ee;padding:14px 18px}
.tw-v2 .tw-metrics span{padding:7px 10px;border:1px solid #e2e8ef;border-radius:7px;background:#fff;min-width:75px}
.tw-v2 .tw-metrics small{font-size:8px;letter-spacing:.8px}
.tw-v2 .tw-metrics b{font-size:13px}
.tw-v2 .tw-tab-panel{background:#f5f8fb}
.tw-v2 .tw-panel-intro h3{color:#20384f;font-size:21px}
.tw-v2 .tw-panel-intro p{font-size:12px;color:#74869a}
.tw-v2 .tw-map-controls,.tw-v2 .tw-map-drawbar,.tw-v2 .tw-project-actions{border-radius:10px;box-shadow:0 4px 14px #17345006}
.tw-v2 .tw-project-row{border-radius:9px;box-shadow:0 2px 8px #17345005}
.tw-v2 .tw-toast{background:#173b5d;border-radius:8px;box-shadow:0 8px 26px #17345030}
.tw-v2 button:focus-visible,.tw-v2 [tabindex]:focus-visible{outline:3px solid #e6a943;outline-offset:2px}
@media(max-width:680px){.tw-v2{border-radius:10px}.tw-v2 .tw-topbar{gap:12px}.tw-v2 .tw-canvas-wrap{min-height:350px}.tw-v2 .tw-metrics span{flex:1;min-width:0;padding:7px 6px}.tw-v2 .tw-tab{font-size:11px}}

/* v2.9: satellite image behind the scale drawing */
.tw-v2 .tw-canvas-wrap.tw-has-map-bg{padding:14px;overflow:hidden}
.tw-v2 .tw-plan-map-bg{position:absolute;inset:14px;z-index:0;border:1px solid #d9e2eb;border-radius:9px;overflow:hidden;background:#e6ebef}
.tw-v2 .tw-plan-map-bg[hidden]{display:none}
.tw-v2 .tw-plan-map-bg .leaflet-container{width:100%;height:100%;min-height:400px;background:#e6ebef}
.tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-canvas{position:absolute;z-index:1;left:14px;top:14px;width:calc(100% - 28px);height:calc(100% - 28px);min-height:0;border:0;border-radius:9px;background:transparent;box-shadow:none}
.tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-canvas-bg{fill:transparent}
.tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-canvas-hint{z-index:2;background:rgba(255,255,255,.92)}
.tw-v2 input[type=color]{padding:3px;min-height:40px;cursor:pointer}
@media(max-width:680px){.tw-v2 .tw-plan-map-bg{inset:8px}.tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-canvas{left:8px;top:8px;width:calc(100% - 16px);height:calc(100% - 16px)}}

/* v3.2: position satellite background before locking it for drawing */
.tw-v2 .tw-canvas-wrap.tw-map-positioning .tw-plan-map-bg{z-index:4;cursor:grab}
.tw-v2 .tw-canvas-wrap.tw-map-positioning .tw-plan-map-bg:active{cursor:grabbing}
.tw-v2 .tw-canvas-wrap.tw-map-positioning .tw-canvas{pointer-events:none;opacity:.14}
.tw-v2 .tw-canvas-wrap.tw-map-positioning .tw-canvas-hint{display:none}
.tw-v2 .tw-canvas-tools [data-action="plan-map-position"],.tw-v2 .tw-canvas-tools [data-action="plan-map-lock"]{width:auto;height:31px;padding:0 9px;font-size:10px!important}

/* v4.0 professional branding, project records and export panels */
.tw-v2 .tw-brand-mark{background:var(--tw-brand-color,#1d4e70)}
.tw-v2 .tw-btn-primary{background:var(--tw-brand-color,#1d4e70);border-color:var(--tw-brand-color,#1d4e70)}
.tw-v2 .tw-btn-primary:hover{filter:brightness(.92)}
.tw-v2 .tw-brand-logo{display:block;max-width:160px;max-height:48px;width:auto;height:auto;object-fit:contain}
.tw-v2 .tw-project-metadata,.tw-v2 .tw-cloud-projects{background:#fff;border:1px solid #e0e7ee;border-radius:12px;padding:20px;margin:18px 0;box-shadow:0 3px 14px #17345006}
.tw-v2 .tw-project-metadata h4,.tw-v2 .tw-cloud-projects h4{margin:0 0 14px;color:#20384f;font-size:15px}
.tw-v2 .tw-project-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}
.tw-v2 .tw-project-metadata label{display:block;color:#536a80;font-size:11px;font-weight:700;letter-spacing:.2px}
.tw-v2 .tw-project-metadata input,.tw-v2 .tw-project-metadata textarea{display:block;width:100%;margin-top:6px;padding:9px 11px;font:inherit;font-size:13px;box-sizing:border-box}
.tw-v2 .tw-project-metadata textarea{resize:vertical;min-height:76px}
.tw-v2 .tw-cloud-projects .tw-btn{margin-bottom:12px}
.tw-v2 .tw-storage-note{color:#718295;font-size:12px;line-height:1.55}
.tw-v2 .tw-project-row>div:last-child{display:flex;gap:7px;flex-wrap:wrap}
@media(max-width:680px){.tw-v2 .tw-project-meta-grid{grid-template-columns:1fr}.tw-v2 .tw-brand-logo{max-width:100px;max-height:38px}}
@media print{
 .tw-v2 .tw-topbar{border-bottom:2px solid var(--tw-brand-color,#1d4e70)!important}
 .tw-v2 .tw-brand-mark{background:var(--tw-brand-color,#1d4e70)!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .tw-v2 .tw-canvas{break-inside:avoid}
}
.tw-v2 .tw-print-header,.tw-v2 .tw-print-materials{display:none}
@media print{
 .tw-v2 .tw-print-header,.tw-v2 .tw-print-materials{display:block!important;visibility:visible!important;margin:0 0 18px;padding:0 0 12px;border-bottom:1px solid #cbd5df}
 .tw-v2 .tw-print-brand{display:flex;align-items:center;gap:16px;margin-bottom:10px}
 .tw-v2 .tw-print-brand img{max-width:140px;max-height:58px;object-fit:contain}
 .tw-v2 .tw-print-brand h1{font-size:20px;margin:0 0 3px;color:var(--tw-brand-color,#1d4e70)}
 .tw-v2 .tw-print-brand p,.tw-v2 .tw-print-brand small{margin:0;font-size:10px;color:#526273}
 .tw-v2 .tw-print-header h2{font-size:17px;margin:8px 0}
 .tw-v2 .tw-print-project-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:10px}
 .tw-v2 .tw-print-header>p{font-size:10px;white-space:pre-wrap}
 .tw-v2 .tw-print-materials{page-break-before:always;border:0;margin-top:10px}
 .tw-v2 .tw-print-materials h2{font-size:16px}
 .tw-v2 .tw-print-materials table{width:100%;border-collapse:collapse;font-size:10px}
 .tw-v2 .tw-print-materials th,.tw-v2 .tw-print-materials td{border:1px solid #cbd5df;padding:6px;text-align:left}
 .tw-v2 .tw-print-materials th{background:#eef2f6!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .tw-v2 .tw-print-footnote{font-size:9px;color:#526273}
}

/* Respect hidden state for palette buttons even when component styles set display:flex. */
.tw-v2 .tw-preset[hidden],.tw-v2 .tw-object-btn[hidden]{display:none!important}

/* v4.1.3: make the satellite layer completely non-interactive while drawing.
   Only the explicit positioning mode may receive pointer/touch input. */
.tw-v2 .tw-canvas-wrap.tw-has-map-bg:not(.tw-map-positioning) .tw-plan-map-bg{pointer-events:none!important}
.tw-v2 .tw-canvas-wrap.tw-map-positioning .tw-plan-map-bg{pointer-events:auto!important}
.tw-v2 .tw-canvas-wrap:not(.tw-map-positioning) .tw-plan-map-bg .leaflet-control-zoom{display:none!important}
.tw-v2 .tw-canvas-wrap.tw-map-positioning .tw-canvas{pointer-events:none!important}

/* v4.2.0: compact dropdown-based part selection */
.tw-v2 .tw-palette-dropdown{display:grid;gap:9px;margin:12px 0 18px;padding:12px;background:#f7f9fb;border:1px solid #dfe6ed;border-radius:9px}
.tw-v2 .tw-palette-dropdown label,.tw-v2 .tw-map-drawbar label{display:grid;gap:6px;min-width:0;max-width:none;flex:1;margin:0;color:#627286;font-size:11px;font-weight:700}
.tw-v2 .tw-palette-select,.tw-v2 .tw-map-object-kind{display:block;width:100%;min-width:0;max-width:100%;padding:10px 32px 10px 11px;border:1px solid #cfd9e3;border-radius:7px;background:#fff;color:#20384f;font:inherit;font-size:12px;line-height:1.4}
.tw-v2 .tw-palette-dropdown .tw-btn{width:100%;justify-content:center}
.tw-v2 .tw-tent-presets,.tw-v2 .tw-object-presets,.tw-v2 .tw-tool-group-label{display:none!important}
.tw-v2 .tw-map-drawbar{align-items:center}
.tw-v2 .tw-map-drawbar .tw-map-help{min-width:240px}
@media(max-width:680px){.tw-v2 .tw-map-drawbar{align-items:stretch}.tw-v2 .tw-map-drawbar .tw-map-help{min-width:0}}

/* v4.2.0: compact dropdown-based part selection */
.tw-v2 .tw-palette-dropdown{display:grid;gap:9px;margin:12px 0 18px;padding:12px;background:#f7f9fb;border:1px solid #dfe6ed;border-radius:9px}
.tw-v2 .tw-palette-dropdown label,.tw-v2 .tw-map-drawbar label{display:grid;gap:6px;min-width:0;max-width:none;flex:1;margin:0;color:#627286;font-size:11px;font-weight:700}
.tw-v2 .tw-palette-select,.tw-v2 .tw-map-object-kind{display:block;width:100%;min-width:0;max-width:100%;padding:10px 32px 10px 11px;border:1px solid #cfd9e3;border-radius:7px;background:#fff;color:#20384f;font:inherit;font-size:12px;line-height:1.4}
.tw-v2 .tw-palette-dropdown .tw-btn{width:100%;justify-content:center}
.tw-v2 .tw-tent-presets,.tw-v2 .tw-object-presets,.tw-v2 .tw-tool-group-label{display:none!important}
.tw-v2 .tw-map-drawbar{align-items:center}
.tw-v2 .tw-map-drawbar .tw-map-help{min-width:240px}
@media(max-width:680px){.tw-v2 .tw-map-drawbar{align-items:stretch}.tw-v2 .tw-map-drawbar .tw-map-help{min-width:0}}

/* v4.2.4: top-level rotation controls and polished image export */
.tw-v2 .tw-canvas-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.tw-v2 .tw-canvas-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tw-v2 .tw-rotate-control{min-height:31px;height:31px;padding:0 10px;font-size:11px;font-weight:700;white-space:nowrap}
.tw-v2 .tw-rotate-control:disabled{opacity:.42;cursor:not-allowed}
.tw-v2 [data-action="export-png"]{white-space:nowrap}
@media(max-width:900px){.tw-v2 .tw-canvas-toolbar{align-items:flex-start}.tw-v2 .tw-canvas-tools{width:100%}}
@media print{.tw-v2 .tw-rotate-control{display:none!important}}

/* v4.3.0 watermark unlock and customer account controls */
.tw-v2 .tw-watermark-controls{margin-top:22px;padding:16px;background:#fff;border:1px solid var(--tw-line);border-radius:10px}
.tw-v2 .tw-watermark-controls h4{margin:0 0 6px;font-size:13px}
.tw-v2 .tw-watermark-unlock-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.tw-v2 .tw-watermark-unlock-row label{display:block;min-width:220px;flex:1;margin:0;font-size:11px;font-weight:700;color:#617286}
.tw-v2 .tw-watermark-unlock-row input{display:block;width:100%;margin-top:5px;padding:10px;border:1px solid #d7e0e8;border-radius:6px;font:inherit}
.tw-v2 .tw-watermark-status{font-size:11px;color:#536b7f;align-self:center}
@media(max-width:680px){.tw-v2 .tw-watermark-unlock-row label,.tw-v2 .tw-watermark-unlock-row .tw-btn{width:100%;min-width:0}}


/* v4.3.2: visible front-end account controls */
.tw-v2 .tw-auth-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto}
.tw-v2 .tw-auth-user{display:inline-block;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d8e6f2;font-size:11px;font-weight:700}
.tw-v2 .tw-btn-auth{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#ffffff18;border:1px solid #ffffff55;color:#fff;min-height:35px}
.tw-v2 .tw-btn-auth:hover{background:#ffffff2b;color:#fff}
@media(max-width:1100px){.tw-v2 .tw-topbar{flex-wrap:wrap}.tw-v2 .tw-top-actions{flex-wrap:wrap}.tw-v2 .tw-auth-actions{margin-left:auto}}
@media(max-width:680px){.tw-v2 .tw-auth-user{max-width:100px}.tw-v2 .tw-topbar{padding:13px}.tw-v2 .tw-top-actions{width:100%;justify-content:flex-start}.tw-v2 .tw-auth-actions{margin-left:0}}

/* v4.3.5: keep the satellite layer covering the entire drawing surface after layout changes */
.tw-v2 .tw-canvas-wrap.tw-has-map-bg{position:relative;isolation:isolate;background:#e6ebef;}
.tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-plan-map-bg{position:absolute;inset:14px;overflow:hidden;background:#e6ebef;}
.tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-plan-map-bg .leaflet-container{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;background:#e6ebef!important;}
.tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-plan-map-bg .leaflet-pane,
.tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-plan-map-bg .leaflet-map-pane,
.tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-plan-map-bg .leaflet-tile-pane{background:#e6ebef;}
@media(max-width:680px){.tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-plan-map-bg{inset:8px;}}


/* v4.3.6: keep the drawing/map viewport stable when the properties panel expands. */
.tw-v2 .tw-workspace{height:680px;min-height:680px;align-items:stretch;}
.tw-v2 .tw-sidebar{height:680px;min-height:0;overflow-y:auto;overscroll-behavior:contain;}
.tw-v2 .tw-canvas-area{height:680px;min-height:0;min-width:0;overflow:hidden;}
.tw-v2 .tw-canvas-wrap{height:calc(680px - 64px - 70px);min-height:0;flex:1 1 auto;overflow:hidden;}
.tw-v2 .tw-canvas{height:100%;min-height:0;}
.tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-plan-map-bg .leaflet-container{height:100%!important;min-height:0!important;}
@media(max-width:680px){
 .tw-v2 .tw-workspace{height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);}
 .tw-v2 .tw-sidebar{height:auto;max-height:420px;min-height:0;overflow-y:auto;}
 .tw-v2 .tw-canvas-area{height:560px;min-height:560px;}
 .tw-v2 .tw-canvas-wrap{height:calc(560px - 100px - 70px);min-height:0;flex:1 1 auto;}
 .tw-v2 .tw-canvas-wrap.tw-has-map-bg .tw-canvas{height:calc(100% - 16px);min-height:0;}
}

/* Professional workflow additions v4.5.0 */
.tw-v2 .tw-canvas-tools [data-action="check-layout"]{white-space:nowrap;font-size:10px;padding:8px 10px}
.tw-v2 .tw-object-btn:focus-visible,.tw-v2 .tw-tool:focus-visible,.tw-v2 .tw-btn:focus-visible{outline:2px solid #2d6799;outline-offset:2px}
.tw-v2 .tw-canvas{user-select:none;-webkit-user-select:none}
@media(max-width:900px){.tw-v2 .tw-canvas-tools [data-action="check-layout"]{font-size:9px;padding:7px}}
/* Optional scale calibration controls */
.tw-scale-calibration{margin:14px 0;padding:16px;background:#fff;border:1px solid var(--tw-line,#dce4ec);border-radius:10px}
.tw-scale-calibration h4{margin:0 0 6px;font-size:13px;color:var(--tw-ink,#243950)}
.tw-scale-calibration>p{font-size:11px;line-height:1.55;color:#7c8999;margin:6px 0 12px}
.tw-calibration-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.tw-calibration-controls label{display:block;min-width:190px;flex:1;color:#627286;font-size:11px;font-weight:650}
.tw-calibration-controls input{display:block;width:100%;margin-top:6px;border:1px solid #dce3ea;border-radius:6px;padding:9px 10px;min-height:36px}
.tw-calibration-controls button:disabled{opacity:.45;cursor:not-allowed}
.tw-scale-calibration .tw-calibration-status{margin:10px 0 0;padding:8px 10px;border-radius:6px;background:#f4f7fa;color:#51657a}

/* v4.5.8: clear planning and safety disclaimer, also visible when the planner remains on a public page */
.tw-planner .tw-planner-disclaimer{margin:12px 0 0;padding:12px 16px;border:1px solid #ead8ae;border-left:4px solid #b8872e;border-radius:7px;background:#fffaf0;color:#5f4b25;font-size:11px;line-height:1.55}
.tw-planner .tw-planner-disclaimer strong{display:block;margin:0 0 4px;font-size:11px;letter-spacing:.2px}
.tw-planner .tw-planner-disclaimer p{margin:0}
.tw-planner .tw-print-footnote{font-size:9px;line-height:1.45;color:#526273}
@media print{.tw-planner .tw-planner-disclaimer{break-inside:avoid}}
/* v4.5.9: preserve administrator-entered line breaks in the printed disclaimer. */
.tw-planner .tw-print-footnote{white-space:pre-line}

/* 5.0 – 3D visualizer */









@media(max-width:680px){}
