/* Copyright (c) 2026 Bayplot. All rights reserved. Proprietary and confidential. Unauthorised copying, modification or distribution is prohibited. */
/* Layout designer workspace: toolbar on top, steps + library on the left, plan in the centre, properties on the right */
.dz-main{padding-top:14px!important;max-width:none}
.dz-head{display:flex;gap:24px;align-items:flex-end;flex-wrap:wrap;padding:0 18px 10px}
.dz-head h1{margin:0;font-size:1.6rem}.dz-head .tk-kicker{margin:0!important}
.dz-lede{margin:0;color:var(--muted);font-size:14px;max-width:820px}
.dz-app{display:grid;grid-template-columns:400px minmax(0,1fr) 320px;grid-template-rows:auto auto minmax(560px,calc(100vh - 210px));border:1px solid var(--line);border-radius:8px;overflow:hidden;margin:0 18px;background:#fff}
.dz-toolbar{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:6px 8px;background:var(--navy);color:#fff}
.dz-toolbar .sep{width:1px;height:26px;background:rgba(255,255,255,.25);margin:0 4px}
.dz-tb{display:inline-flex;align-items:center;gap:5px;background:transparent;color:#fff;border:1px solid transparent;border-radius:5px;padding:5px 8px;font:inherit;font-size:13px;cursor:pointer}
.dz-tb svg{width:18px;height:18px}
.dz-tb:hover{background:rgba(255,255,255,.1)}.dz-tb[aria-pressed=true]{background:var(--gold);color:var(--navy);font-weight:600}
.dz-tb:disabled{opacity:.4;cursor:default}
.dz-toolbar label{font-size:12px;display:inline-flex;gap:4px;align-items:center;color:#dbe2ee}
.dz-toolbar select{font:inherit;font-size:12px;padding:2px 4px;border-radius:4px}
.dz-left,.dz-right{overflow:auto;min-height:0;background:var(--bg);font-size:13px}
.dz-left{border-right:1px solid var(--line)}.dz-right{border-left:1px solid var(--line);padding:10px 12px}
.dz-step{border-bottom:1px solid var(--line)}
.dz-step>summary{cursor:pointer;padding:10px 12px;font-weight:600;color:var(--navy);list-style:none;display:flex;gap:8px;align-items:center}
.dz-step>summary::-webkit-details-marker{display:none}
.dz-step>summary b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--navy);color:#fff;font-size:12px}
.dz-step[open]>summary b{background:var(--gold);color:var(--navy)}
.dz-body{padding:0 12px 12px}
.dz-body p{margin:6px 0}
.dz-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:6px 0}
.dz-row label,.dz-f label{display:flex;flex-direction:column;font-size:12px;color:var(--muted);gap:2px}
.dz-in{width:92px;font:inherit;font-size:13px;padding:4px 6px;border:1px solid #c9cfda;border-radius:4px}
.dz-in.w{width:100%}
.dz-btn{background:#fff;border:1px solid var(--navy);color:var(--navy);border-radius:4px;padding:5px 9px;font:inherit;font-size:12.5px;cursor:pointer}
.dz-btn.go{background:var(--gold);border-color:var(--gold);font-weight:600}
.dz-btn[aria-pressed=true]{background:var(--navy);color:#fff}
.dz-pal{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.dz-pal h4{grid-column:1/-1;margin:8px 0 0;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.dz-item{display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:6px 4px;font-size:11.5px;line-height:1.2;text-align:center;cursor:grab;color:var(--ink)}
.dz-item:hover,.dz-item[aria-pressed=true]{border-color:var(--gold);box-shadow:0 0 0 2px rgba(201,162,39,.35)}
.dz-item svg{width:34px;height:24px}
.dz-centre{display:flex;flex-direction:column;min-width:0;min-height:0}
.dz-stage{position:relative;flex:1;min-height:0;background:#fbfcfe}
#dzCanvas{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none;touch-action:none}
.dz-3d{position:absolute;inset:0;background:#eef2f8}
.dz-3d.is-building{background:transparent;pointer-events:none}
.dz3d-wait{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:5;margin:0;max-width:calc(100% - 24px);background:rgba(255,255,255,.94);border:1px solid #d5dbe5;border-radius:8px;padding:8px 14px;box-shadow:0 2px 8px rgba(11,37,69,.12);text-align:center}
.dz-typed{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);background:#fff;border:2px solid var(--gold);border-radius:6px;padding:8px 10px;box-shadow:0 6px 20px rgba(11,37,69,.2);font-size:13px;display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.dz-typed label{display:flex;flex-direction:column;font-size:11px;color:var(--muted)}
.dz-status{display:flex;gap:16px;flex-wrap:wrap;padding:4px 10px;font-size:12px;background:#fff;border-top:1px solid var(--line);color:var(--muted);font-variant-numeric:tabular-nums}
.dz-status b{color:var(--navy)}
.dz-right h3{margin:4px 0 8px;font-size:1rem}
.dz-kpis{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}
.dz-kpis div{background:#fff;border:1px solid var(--line);border-radius:6px;padding:6px 8px}
.dz-kpis b{display:block;font-size:1.05rem;color:var(--navy);font-variant-numeric:tabular-nums}.dz-kpis small{color:var(--muted);font-size:11px}
.dz-warn{list-style:none;margin:6px 0;padding:0;max-height:240px;overflow:auto}
.dz-warn li{padding:5px 8px;border-radius:4px;margin:0 0 4px;font-size:12px;cursor:pointer;background:#fff7e6;border-left:3px solid #f0a020}
.dz-warn li.bad{background:#fdecea;border-left-color:var(--bad)}
.dz-ok{color:var(--ok);font-size:12px}
.dz-var{width:100%;border-collapse:collapse;font-size:11.5px;margin:6px 0}
.dz-var th,.dz-var td{padding:3px 4px;border-bottom:1px solid var(--line);text-align:right}
.dz-var th:first-child,.dz-var td:first-child{text-align:left}
.dz-var tr.best td{background:#fbf3d9;font-weight:600}
.dz-clr{font-size:12px;margin:6px 0;display:grid;grid-template-columns:1fr 1fr;gap:2px 8px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:6px 8px}.dz-clr>b{grid-column:1/-1;color:var(--navy)}
.dz-sync{font-size:12px;padding:6px 8px;border-radius:4px;background:#e7f4ec;color:var(--ok);margin:6px 0}
.dz-sync.off{background:#eef0f4;color:var(--muted)}
#dzNote{margin:10px 18px}
@media (max-width:1100px){.dz-app{grid-template-columns:340px minmax(0,1fr);grid-template-rows:auto auto minmax(520px,70vh) auto}.dz-right{grid-column:1/-1;border-left:0;border-top:1px solid var(--line)}}
@media (max-width:720px){.dz-app{grid-template-columns:1fr;grid-template-rows:auto auto auto minmax(420px,60vh) auto;margin:0 8px}.dz-left{max-height:340px}}

/* editor parts */
.dz-app [hidden]{display:none!important}
.dz-tb-g{display:flex;gap:2px;align-items:center;padding-right:8px;margin-right:4px;border-right:1px solid rgba(255,255,255,.2)}.dz-tb-g:last-child{border:0}
.dz-tb.on{background:var(--gold);color:var(--navy);font-weight:600}
.dz-tbl{font-size:12px;color:#dbe2ee}
.dz-n{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:var(--navy);color:#fff;font-size:12px}
.dz-step[open]>summary .dz-n{background:var(--gold);color:var(--navy)}
.dz-help{color:var(--muted);font-size:12.5px;line-height:1.45}
.dz-f{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--muted);margin:4px 0}
.dz-f>span{line-height:1.25}
.dz-f input[type=file]{font-size:12px;max-width:100%}
.dz-f input[type=range]{width:110px}
.dz-in[readonly],.dz-in.ro{background:#f1f3f7;color:var(--muted)}
.dz-right .dz-in{width:120px}
.dz-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}.dz-fields .dz-in{width:100%}
.dz-pal{display:block;margin:8px 0}.dz-pal>b{display:block;margin:6px 0 4px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.dz-item{flex-direction:row;justify-content:flex-start;width:100%;margin:0 0 4px;text-align:left;font-size:12.5px;padding:6px 8px}
.dz-item.on{border-color:var(--gold);box-shadow:0 0 0 2px rgba(201,162,39,.45)}
.dz-sw{display:inline-block;width:16px;height:12px;border-radius:2px;border:1.5px solid;flex:none}
.dz-pallet{border-color:#1f4fa8;background:rgba(31,79,168,.2)}.dz-carton{border-color:#1e7b4f;background:rgba(30,123,79,.2)}.dz-long{border-color:#7a4b12;background:rgba(122,75,18,.2)}.dz-mezz{border-color:#7b2cbf;background:rgba(123,44,191,.15)}.dz-auto{border-color:#0B2545;background:rgba(11,37,69,.3)}.dz-flow{border-color:#b58900;background:rgba(201,162,39,.3)}.dz-work{border-color:#5b6475;background:rgba(91,100,117,.25)}
.dz-ul{background:#fff;border:1px solid var(--line);border-radius:6px;padding:6px 8px;margin:6px 0;font-size:12px}.dz-ul .ok{color:var(--ok)}.dz-ul .warn{color:#b26a00}
.dz-why{font-size:12px;background:#fbf3d9;border-left:3px solid var(--gold);padding:6px 8px;margin:6px 0}
.dz-var small{display:block;font-weight:400;color:var(--muted)}.dz-var tr.chosen td{outline:1px solid var(--gold)}
.dz-btn.sm{padding:2px 6px;font-size:11px}
.dz-file{display:inline-block}
a.dz-btn{text-decoration:none;display:inline-block;margin:4px 4px 0 0}
.dz-sync b{display:block;margin-bottom:2px}.dz-sync span{display:block;margin-bottom:6px}
.dz-ph{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 0 6px;color:var(--navy)}.dz-ph span{font-size:11px;color:var(--muted)}
.dz-src{font-size:11px;color:var(--muted);margin:4px 0}
.dz-ro{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;font-size:12px;margin:6px 0;background:#fff;border:1px solid var(--line);border-radius:6px;padding:6px 8px}.dz-ro dt{color:var(--muted)}.dz-ro dd{margin:0;font-weight:600;color:var(--navy);text-align:right;font-variant-numeric:tabular-nums}
.dz-array{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}
.dz-h3{margin:14px 0 6px;font-size:.95rem;color:var(--navy)}
.dz-kpis span{display:block;font-size:11px;color:var(--muted)}

/* modes: design / simulate / network */
.dz-tabs{grid-column:1/-1;display:flex;gap:2px;background:#071a33;padding:6px 8px 0}
.dz-tab{background:transparent;border:0;color:#c9d3e3;font:inherit;font-size:13.5px;font-weight:600;padding:8px 16px;border-radius:6px 6px 0 0;cursor:pointer}
.dz-tab[aria-selected=true]{background:var(--navy);color:var(--gold)}
#dzNet{position:absolute;inset:0;width:100%;height:100%;display:block;background:#f2f6fb;outline:none}
.dz-play{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);z-index:6;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:8px;padding:6px 10px;display:flex;gap:10px;align-items:center;font-size:12.5px;box-shadow:0 4px 14px rgba(11,37,69,.18);flex-wrap:wrap;max-width:calc(100% - 24px)}
.dz-play input[type=range]{width:220px;min-width:140px}
.sp-view{display:inline-flex;border:1px solid var(--navy);border-radius:4px;overflow:hidden}
.sp-view .dz-btn{border:0;border-radius:0;margin:0;min-width:44px}
.dz-play #spClock{font-variant-numeric:tabular-nums;color:var(--navy);white-space:nowrap}
.dz-legend{position:absolute;right:10px;top:10px;background:rgba(255,255,255,.95);border:1px solid var(--line);border-radius:6px;padding:6px 8px;font-size:11.5px;line-height:1.6}
.dz-legend i{display:inline-block;width:12px;height:12px;border-radius:2px;margin-right:5px;vertical-align:-2px}
.dz-ex{display:inline-block;font-size:10px;font-weight:700;color:#8a5a00;background:#fff3cd;border:1px solid #f0d58a;border-radius:3px;padding:0 4px;margin-left:4px;letter-spacing:.03em}
.dz-kt{width:100%;border-collapse:collapse;font-size:12px;margin:6px 0}.dz-kt tr.bad td{background:#fdecea;color:#8b1e1e}.dz-kt th,.dz-kt td{padding:3px 4px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}.dz-kt th:first-child,.dz-kt td:first-child{text-align:left}
.dz-kt .better{color:var(--ok);font-weight:600}.dz-kt .worse{color:var(--bad);font-weight:600}
.dz-sites{max-height:300px;overflow:auto}.dz-sites .dz-in{width:72px}.dz-sites select.dz-in{width:auto}
.dz-site{background:#fff;border:1px solid var(--line);border-radius:6px;padding:6px 8px;margin:0 0 6px}.dz-site.sel{border-color:var(--gold);box-shadow:0 0 0 2px rgba(201,162,39,.35)}
/* building areas */
.dz-areas{margin-top:10px;border-top:1px solid var(--line);padding-top:8px}
.dz-h4{font-size:13px;margin:6px 0 4px;color:#0B2545}
.dz-area,.dz-wall,.dz-addarea{border:1px solid var(--line);border-radius:8px;padding:6px 8px;margin:6px 0;background:#fff}
.dz-addarea{background:#fbf8ee;border-color:#e8dcae}
.dz-area-h{display:flex;gap:6px;align-items:center;margin-bottom:4px}.dz-area-h b{color:#0B2545;min-width:22px}.dz-area-h span{font-size:12px;color:#5b6475;flex:1}
.dz-area-h .dz-in{flex:1;min-width:0}
.dz-chk{display:flex;gap:6px;align-items:center;font-size:12px;margin:4px 0}
.dz-op{align-items:flex-end}
.dz-at tr.tot td{font-weight:700;border-top:2px solid var(--line)}
.dz-in[readonly]{background:#f2f4f8;color:#5b6475}

/* start-up message (index.html, boot.js); removed by app.js once the plan has painted */
.dz-boot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--muted, #5b6675); font-size: .95rem; background: #fff; z-index: 2; }
.dz-boot-err { color: #8a1c1c; }
.dz-cta { margin: 6px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dz-cta-note { color: var(--muted, #5b6675); font-size: .9rem; }
/* 3D view toolbar and legend */
.dz3d-bar{position:absolute;top:10px;left:10px;display:flex;flex-wrap:wrap;gap:6px;align-items:center;background:rgba(255,255,255,.92);border:1px solid #d5dbe5;border-radius:8px;padding:6px 8px;font-size:.82rem;color:#0B2545;box-shadow:0 2px 8px rgba(11,37,69,.12);max-width:calc(100% - 20px)}
.dz3d-bar label{display:flex;gap:4px;align-items:center}
.dz3d-bar select{font:inherit;padding:2px 4px;border:1px solid #c5cdd9;border-radius:5px}
.dz3d-legend{position:absolute;bottom:10px;left:10px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:rgba(255,255,255,.92);border:1px solid #d5dbe5;border-radius:8px;padding:5px 9px;font-size:.78rem;color:#1d2433;max-width:calc(100% - 20px)}
.dz3d-legend i{display:inline-block;width:11px;height:11px;border-radius:2px;margin-right:4px;vertical-align:-1px;border:1px solid rgba(0,0,0,.2)}
.dz3d-btn{font:inherit;font-weight:600;padding:4px 10px;border:1px solid #0B2545;border-radius:6px;background:#fff;color:#0B2545;cursor:pointer}
@media (max-width:720px){.dz3d-bar,.dz3d-legend{max-width:calc(100vw - 36px)}}   /* the stage can be wider than a phone: wrap Walls / Columns / Partitions inside the screen */
.dz3d-btn:hover,.dz3d-btn:focus-visible{background:#0B2545;color:#fff}
.dz3d-modes{display:flex;gap:0}
.dz3d-modes .dz3d-btn{border-radius:0}
.dz3d-modes .dz3d-btn:first-child{border-radius:6px 0 0 6px}
.dz3d-modes .dz3d-btn:last-child{border-radius:0 6px 6px 0;margin-left:-1px}
.dz3d-btn[aria-pressed="true"]{background:#0B2545;color:#fff}
/* data analysis + fit (steps 2–3) */
.dz-tiles{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0}
.dz-tile{background:#f4f6fa;border-radius:6px;padding:6px 8px;display:flex;flex-direction:column;gap:2px}
.dz-tile b{font-size:15px;color:var(--navy,#0B2545)}.dz-tile span{font-size:11px;color:var(--muted)}
.dz-big{width:100%;padding:10px 12px;font-size:14px;margin:6px 0}
.dz-alt{margin:8px 0;font-size:12px}.dz-alt summary,.dz-autobk summary,.dz-probs summary{cursor:pointer;font-weight:600}
.dz-kt td.down{color:var(--bad,#b3261e)}.dz-kt td.up{color:#1e7b34}
.dz-breaks{margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}.dz-bk-list{margin:6px 0;padding-left:16px;font-size:12px}.dz-bk-cur{font-size:12px;margin:6px 0}
.dz-suggest{font-size:12px;padding:8px;border-radius:4px;background:#fbf6ea;border:1px solid #C9A227;color:#0B2545;margin:6px 0}.dz-suggest b{display:block;margin-bottom:2px}.dz-suggest span{display:block;margin-bottom:6px}
.dz-safe{border-color:#b8860b;background:rgba(242,201,76,.55)}
.dz-sub{font-size:13px;color:#0B2545;margin:12px 0 4px}
.dz-tb.go{background:#C9A227;color:#0B2545;font-weight:600}
.dz-bestfit{border:1px solid #d6dce6;border-left:4px solid #C9A227;border-radius:6px;padding:8px 10px;margin:0 0 10px;background:#fffdf6}
.dz-bf-rep .ab-state{background:#eef5ee;border-left:4px solid #2e7d32;padding:6px 8px;margin:8px 0;font-size:12px}
.dz-bf-rep .ab-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:6px 0}
.dz-bf-rep .ab-tiles>div{background:#0B2545;color:#fff;border-radius:6px;padding:6px 8px;border-bottom:3px solid #C9A227;display:flex;flex-direction:column;gap:2px}
.dz-bf-rep .ab-tiles>div b{font-size:15px}.dz-bf-rep .ab-tiles>div span{font-size:11px;opacity:.85}.dz-bf-rep .ab-tiles>div.down{border-bottom-color:#e0645c}
.dz-bf-rep .ab-h{font-size:13px;color:#0B2545;margin:10px 0 4px}.dz-bf-rep .ab-kinds{list-style:none;padding:0;margin:0;font-size:12px}.dz-bf-rep .ab-kinds li.g{color:#0f766e}
.dz-bf-rep table{width:100%;border-collapse:collapse;font-size:11px}.dz-bf-rep td,.dz-bf-rep th{border-bottom:1px solid #e3e7ee;padding:3px 4px;text-align:left;vertical-align:top}.dz-bf-rep th{background:#0B2545;color:#fff}
.dz-bf-rep .ab-growth tr.ab-g td{background:#e6f4f2}.dz-bf-rep .ab-growth td:last-child{text-align:right}
.ab-sw.g{display:inline-block;width:14px;height:10px;margin-right:6px;background:rgba(15,118,110,.25);border:1.5px solid #0f766e;border-radius:2px;vertical-align:middle}
.ab-hs{list-style:none;padding:0;margin:4px 0}.ab-hs li,.dz-hs-checks li{padding:4px 6px;border-left:4px solid #c9a227;margin:3px 0;background:#fffaf0;font-size:12px;list-style:none}.ab-hs li.bad,.dz-hs-checks li.bad{border-color:#c0392b;background:#fdeeee}.ab-hs li.ok,.dz-hs-checks li.ok{border-color:#2e7d32;background:#eef5ee}
.dz-hs-checks{padding:0}.ab-ref{display:block;font-size:11px;color:#5b6475;font-style:italic}
.hs-help{margin:8px 0;font-size:12px}.hs-help summary{cursor:pointer;color:#0B2545;font-weight:600}.hs-refs{padding-left:16px}.hs-refs li{margin:4px 0}.hs-refs span{color:#33415c;font-size:11px}.hs-figs{width:100%;font-size:11px;border-collapse:collapse}.hs-figs td,.hs-figs th{border-bottom:1px solid #e3e7ee;padding:3px;text-align:left}
/* Best fit for operations side panel + compare (core/ops-fit-ui.js) */
.of-panel{font-size:12.5px;color:#1d2433;margin:6px 0 8px}
.of-sec{border:1px solid #d6dce6;border-radius:6px;background:#fff;margin:0 0 6px;padding:4px 8px}
.of-sec>summary{cursor:pointer;font-weight:700;color:#0B2545;padding:3px 0}
.of-help{font-size:11.5px;color:#4a5670;margin:3px 0 6px}
.of-scroll{overflow-x:auto}
.of-trucks{border-collapse:collapse;width:100%}.of-trucks th{font-size:11px;text-align:left;color:#4a5670;font-weight:600;padding:2px 4px}
.of-trucks td{padding:2px 4px;border-top:1px solid #eef1f6;vertical-align:middle}.of-trucks tr.on td{background:#fbf6ea}
.of-trucks select{max-width:150px;font-size:11.5px}.of-trucks .of-q{width:52px;font-size:12px}
.of-fig{font-size:11px;color:#33415c;white-space:nowrap}.of-src{color:#7a869d}
.of-rec{font-size:11.5px;background:#f4f7fb;border-left:3px solid #C9A227;padding:4px 6px;margin:6px 0 2px}
.of-syslist{display:flex;flex-direction:column;gap:3px}
.of-sys{display:block;padding:4px 6px;border:1px solid #e3e7ef;border-radius:5px;cursor:pointer}.of-sys.on{border-color:#C9A227;background:#fffaf0}
.of-sys small{display:block;color:#5b6475;font-size:11px;margin-left:20px}
.of-badge{display:inline-block;font-size:10.5px;padding:0 6px;border-radius:9px;margin-left:4px;vertical-align:1px}
.of-badge.ok{background:#e6f2e8;color:#1e6b33}.of-badge.warn{background:#fdecea;color:#a3271d}
.of-fld{display:flex;flex-direction:column;gap:1px;margin:4px 0}.of-fld span{font-weight:600;font-size:11.5px}.of-fld small{color:#6b7790;font-size:10.5px}
.of-fld input,.of-fld select{font-size:12px;max-width:100%}
.of-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:2px 10px}
.of-chk{display:flex;gap:6px;align-items:flex-start;font-size:11.5px;margin:4px 0}
.of-cmpl{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:2px 8px;margin:4px 0 6px}
.of-btn{background:#0B2545;color:#fff;border:0;border-radius:5px;padding:6px 12px;font-weight:600;cursor:pointer}.of-btn:disabled{opacity:.5;cursor:default}
.of-btn.go{background:#C9A227;color:#0B2545}
.of-modal{position:fixed;inset:0;background:rgba(11,37,69,.45);z-index:9000;display:flex;align-items:flex-start;justify-content:center;padding:24px;overflow:auto}
.of-modal-in{background:#fff;border-radius:8px;box-shadow:0 10px 40px rgba(0,0,0,.25);max-width:min(1400px,96vw);width:100%;padding:12px 16px;border-top:5px solid #C9A227}
.of-modal-h{display:flex;justify-content:space-between;align-items:center;gap:10px}.of-modal-h h3{margin:4px 0;color:#0B2545}
.of-cmp-wrap{overflow-x:auto}
.of-cmp{border-collapse:collapse;width:100%;font-size:12.5px}.of-cmp th,.of-cmp td{border-bottom:1px solid #e3e7ef;padding:6px 8px;text-align:left;vertical-align:top}
.of-cmp thead th{background:#0B2545;color:#fff;position:sticky;top:0}.of-cmp tbody th{color:#33415c;font-weight:600;width:170px}
.of-cmp td.of-best{background:#fbf3dc}.of-cmp small{color:#5b6475}
.of-ok{color:#1e6b33;font-weight:600}.of-bad{color:#a3271d;font-weight:600}.of-err{color:#a3271d}
.of-thumb{display:block;background:#f6f8fb;border:1px solid #d6dce6;border-radius:4px;max-width:100%;height:auto}
.ab-ops .ab-calc{background:#fffaf0;border-left:3px solid #C9A227;padding:6px 8px}
.ab-cols{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:14px;align-items:start}
.ab-cols>.ab-side{position:sticky;top:8px;max-height:calc(100vh - 16px);overflow:auto}
@media (max-width:900px){.ab-cols{grid-template-columns:1fr}.ab-cols>.ab-side{position:static;max-height:none}}
/* SKU size and weight estimates (step 2) */
.dz-est{margin:8px 0;font-size:12px}.dz-est summary{cursor:pointer;font-weight:600}
.dz-est .dz-kt td,.dz-est .dz-kt th{font-size:11px}
.est-m{color:#2e7d32}.est-n{color:#b00020;font-weight:600}.est-e{border-bottom:1px dotted currentColor;cursor:help}
.est-high{color:#0B2545}.est-med{color:#8a6d00}.est-low{color:#b35c00}
.dz-est-full .dz-kt{width:100%;font-size:12px}.dz-est-full .dz-kt td,.dz-est-full .dz-kt th{padding:4px 6px;vertical-align:top;text-align:left}
.dz-est-full .est-b{display:block;color:#555;font-size:11px;margin-top:2px}
.of-refit{margin:8px 0;padding:8px 10px;border-left:4px solid #C9A227;background:#fbf6e6;border-radius:4px;font-size:12.5px;color:#0B2545}.of-refit small{color:#4a5568}.of-refit .of-btn{margin-left:6px}.of-refit .of-bad{color:#a3271d}
.dz-mzreg{margin:8px 0;padding:8px;border:1px solid var(--line);border-left:3px solid #C9A227;border-radius:6px;background:#fafbfd}.dz-mzreg>b{color:#0B2545;font-size:13px}.dz-mzreg details{font-size:11.5px;color:var(--muted)}.dz-mzreg ul{margin:4px 0 0 16px;padding:0}
.dz-mzsup{margin:8px 0;padding:8px;border:1px solid var(--line);border-left:3px solid #0B2545;border-radius:6px;background:#fff;font-size:12px}.dz-mzsup>b{color:#0B2545}.dz-mzsup ul{margin:4px 0 0 16px;padding:0}.dz-mini{width:100%;border-collapse:collapse;font-size:11px;margin:4px 0}.dz-mini th,.dz-mini td{border-bottom:1px solid var(--line);padding:2px 3px;text-align:right}.dz-mini th:first-child,.dz-mini td:first-child{text-align:left}

/* left panel: product tabs down the side (tabs.js) */
.dz-left:has(.dz-tabwrap){overflow:hidden}
.dz-tabwrap{display:flex;align-items:stretch;height:100%;min-height:0}
.dz-ptabs{flex:none;width:96px;display:flex;flex-direction:column;gap:2px;padding:6px 4px;background:#fff;border-right:1px solid var(--line);overflow-y:auto;min-height:0}
.dz-ptab{display:flex;flex-direction:column;align-items:center;gap:2px;border:1px solid transparent;background:none;border-radius:6px;padding:6px 4px;font:inherit;font-size:11px;line-height:1.15;color:var(--navy);cursor:pointer;text-align:center}
.dz-ptab:hover{background:var(--bg)}
.dz-ptab.on{background:var(--navy);color:#fff}
.dz-ptab:focus-visible{outline:3px solid var(--gold);outline-offset:1px}
.dz-ptab-ab{display:inline-grid;place-items:center;min-width:26px;height:22px;border-radius:11px;background:var(--bg);color:var(--navy);font-weight:700;font-size:11px;padding:0 4px}
.dz-ptab.on .dz-ptab-ab{background:var(--gold);color:var(--navy)}
.dz-panes{flex:1;min-width:0;min-height:0;overflow-y:auto}
.dz-pane{padding:8px 12px 14px}.dz-pane p{margin:6px 0}
.dz-pane-h{margin:2px 0 8px;font-size:15px;color:var(--navy)}
.dz-olist{margin:4px 0;padding-left:18px}.dz-link{background:none;border:0;padding:0;color:var(--navy);text-decoration:underline;cursor:pointer;font:inherit}
.dz-stair{border:1px solid var(--line);border-radius:6px;margin:8px 0;padding:4px 8px 8px}.dz-stair legend{font-weight:600;color:var(--navy)}
.dz-pal-spec{width:100%;border-collapse:collapse;font-size:12px}.dz-pal-spec th{text-align:left;font-weight:600;vertical-align:top;padding:4px 6px 4px 0;width:42%}.dz-pal-spec td{padding:4px 0;border-bottom:1px solid var(--line)}.dz-pal-spec small{color:#5b6472}
.dz-pallet select.dz-in,.dz-pallet input.dz-in{width:100%;box-sizing:border-box}
.dz-pal-props{margin:8px 0;padding:8px;border:1px solid var(--line);border-radius:6px;background:#fff}
.dz-bf-sys select{font-weight:600;width:100%}
.dz-chk{display:flex;gap:8px;align-items:flex-start;flex-direction:row}.dz-chk input{margin-top:3px;flex:none}
.sl-delta{margin:8px 0;padding:8px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:12px}.sl-delta table{width:100%;border-collapse:collapse}.sl-delta th,.sl-delta td{text-align:left;padding:3px 4px;border-bottom:1px solid var(--line)}
@media (max-width:720px){.dz-left:has(.dz-tabwrap){overflow:auto}.dz-tabwrap{flex-direction:column;align-items:stretch;height:auto}.dz-panes{overflow:visible}.dz-ptabs{position:sticky;top:0;z-index:2;width:auto;flex-direction:row;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid var(--line);max-height:none}.dz-ptab{flex:none;min-width:72px}.dz-left{max-height:460px}}
/* opened from "Upload your data once" (from-data.js) */
.dz-fd{font-size:12px;padding:8px;border-radius:4px;background:#eef6f0;border:1px solid #2e7d4f;color:#0B2545;margin:6px 0}.dz-fd b{display:block;margin-bottom:2px}.dz-fd span{display:block;margin-bottom:6px}.dz-fd .dz-row{display:flex;flex-wrap:wrap;gap:6px}
.dz-fd-dlg{max-width:520px;border:1px solid #0B2545;border-radius:8px;padding:18px 20px;color:#0B2545}.dz-fd-dlg::backdrop{background:rgba(11,37,69,.45)}.dz-fd-dlg h2{font-size:17px;margin:0 0 8px}.dz-fd-dlg p{font-size:13px;margin:0 0 8px}
.dz-fd-opts{display:flex;flex-direction:column;gap:8px;margin:10px 0}.dz-fd-opts .dz-btn{text-align:left;white-space:normal;min-height:36px}
.dz-fd .dz-fd-full{color:#14532d}.dz-fd .dz-fd-asm{color:#7a5b00}.dz-fd .dz-fd-short{background:#fdecec;border:1px solid #b42318;border-radius:4px;padding:6px 8px;color:#7a1712}.dz-fd .dz-fd-short ul{margin:4px 0 0 18px;padding:0}
/* rack builder (Racking tab) */
.dz-rb{margin:0 0 12px;padding:10px;border:1px solid var(--line);border-left:3px solid #C9A227;border-radius:6px;background:#fffdf5}.dz-rb .dz-sub{margin-top:0}
.dz-rb-src{font-size:11px;color:#5b6472}.dz-rb-src a{color:#0B2545}.dz-rb .dz-chk{flex-direction:row;align-items:center;gap:6px}
.dz-rb-lv .dz-rb-h{width:84px;padding:2px 4px;text-align:right}.dz-rb-lv tr.dz-rb-bad td{background:#fdecea}
.dz-rb-notes{margin:6px 0 0 16px;padding:0;font-size:12px;color:#8a1c12}
.dz-rb .dz-row{flex-wrap:wrap}.dz-rb .dz-row>.dz-f{flex:1 1 120px;min-width:0}.dz-rb select.dz-in,.dz-rb input.dz-in{width:100%;max-width:100%;box-sizing:border-box}.dz-rb>.dz-f select.dz-in{width:100%}

/* ===== Full-page workspace (Scott, 20 Nov 2026: "Make the design page a full page with great movement and easy tabs") =====
   Slim site bar on top, then the designer fills the rest of the screen: product tabs down the left, plan in the middle,
   properties on the right. Both side panels fold away ([ and ] or the toolbar buttons); on tablets the properties panel
   floats over the plan instead of squeezing it. */
body.dz-full{height:100vh;overflow:hidden}
body.dz-full .tk-header{position:fixed!important;top:0;left:0;right:0;z-index:40}
body.dz-full .tk-header .tk-bar{min-height:44px;gap:10px;padding-top:0;padding-bottom:0;max-width:none}
body.dz-full .tk-header .tk-brand svg{width:24px;height:24px}
body.dz-full .tk-header .tk-name{font-size:15px}
body.dz-full .tk-header .tk-by{display:none}
body.dz-full .tk-header nav a.tk-top,body.dz-full .tk-header nav .tk-ddb{padding-top:4px;padding-bottom:4px;font-size:13px}
body.dz-full #tkData,body.dz-full #tkDataPanel,body.dz-full .tk-footer,body.dz-full #dzNote,body.dz-full .tk-dzbadge{display:none!important}
body.dz-full .dz-main{padding:0!important;margin:0;max-width:none}
.dz-hbar{display:flex;align-items:center;gap:8px;margin-left:8px;flex:1 1 auto;min-width:0}
.dz-hbar .dz-htitle{font-size:14px;margin:0;color:#fff;white-space:nowrap;font-weight:600;letter-spacing:.01em}
.dz-hbar .dz-btn{padding:3px 10px;font-size:12.5px}
.dz-hbar .dz-acct{display:flex;gap:6px;align-items:center;font-size:12px;color:#dbe2ee}
.dz-hbar .dz-acct a,.dz-hbar .dz-acct button{font-size:12px}
body.dz-full .dz-app{position:fixed;top:var(--dz-top,46px);left:0;right:0;bottom:0;margin:0;border:0;border-radius:0;
  --dz-lw:420px;--dz-rw:320px;grid-template-columns:var(--dz-lw) minmax(0,1fr) var(--dz-rw);grid-template-rows:auto auto minmax(0,1fr);transition:grid-template-columns .18s ease}
body.dz-full .dz-app.dz-noleft{--dz-lw:104px}
body.dz-full .dz-app.dz-noright{--dz-rw:0px}
body.dz-full .dz-app.dz-noleft .dz-panes{display:none}
body.dz-full .dz-app.dz-noright .dz-right{display:none}
body.dz-full .dz-left,body.dz-full .dz-right{min-height:0;height:100%}
body.dz-full .dz-centre{min-height:0}
body.dz-full .dz-toolbar{gap:3px;padding:4px 6px}
.dz-tb-end{margin-left:auto}
.dz-tb.dz-tg{border-color:rgba(255,255,255,.3)}
.dz-tb.dz-tg[aria-pressed=false]{background:rgba(201,162,39,.25)}
.dz-zoom{display:inline-flex;gap:1px;background:rgba(255,255,255,.08);border-radius:5px;margin:0 2px}
.dz-zoom .dz-tb{min-width:28px;justify-content:center}
/* big, clear product tabs with icons */
body.dz-full .dz-ptabs{width:104px;gap:3px;padding:6px 5px}
body.dz-full .dz-ptab{min-height:58px;justify-content:center;gap:4px;font-size:11.5px;font-weight:600;border-radius:8px;padding:7px 4px;transition:background .12s,color .12s}
.dz-ptab-ic{width:24px;height:24px;flex:none}
body.dz-full .dz-ptab-ab{display:none}
body.dz-full .dz-ptab:hover{background:#eef2f8}
body.dz-full .dz-ptab.on{background:var(--navy);color:#fff;box-shadow:inset 4px 0 0 var(--gold)}
body.dz-full .dz-ptab.on .dz-ptab-ic{color:var(--gold)}
body.dz-full .dz-panes{scroll-behavior:smooth}
body.dz-full .dz-pane-h{position:sticky;top:0;z-index:2;background:var(--bg);margin:0;padding:10px 12px 8px;border-bottom:1px solid var(--line)}
@media (max-width:1100px){
  body.dz-full .dz-app{--dz-lw:360px;grid-template-columns:var(--dz-lw) minmax(0,1fr)}
  body.dz-full .dz-centre{grid-column:2;grid-row:3}
  body.dz-full .dz-right{grid-column:2;grid-row:3;justify-self:end;width:min(320px,92%);z-index:6;box-shadow:-6px 0 18px rgba(11,37,69,.18);border-left:1px solid var(--line)}
  body.dz-full .dz-ptab{min-height:54px}
}
@media (max-width:720px){
  body.dz-full .dz-app{grid-template-columns:1fr;grid-template-rows:auto auto auto minmax(0,1fr)}
  body.dz-full .dz-left{grid-column:1;grid-row:3;height:auto;max-height:42vh}
  body.dz-full .dz-centre{grid-column:1;grid-row:4}
  body.dz-full .dz-right{grid-column:1;grid-row:4}
  body.dz-full .dz-app.dz-noleft .dz-left{max-height:none}
}
/* datum points & survey (Building tab) */
.dz-datums{margin:10px 0;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:#fff}
.dz-datums.dz-attn{border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,162,39,.3)}
.dz-next{background:#fff8e1;border-left:4px solid var(--gold);padding:6px 8px;margin:6px 0;font-size:12.5px}
.dz-dtt{width:100%;border-collapse:collapse;font-size:12px}
.dz-dtt th{text-align:left;color:var(--muted);font-weight:600;padding:2px}
.dz-dtt td{padding:3px 2px;vertical-align:top;border-top:1px solid #eef1f6}
.dz-dtt tr.on td{background:#fdf3f2}
.dz-dtt .dz-in{width:74px}.dz-dtt .dz-in.w{width:100%}
.dz-dtt small{display:block;color:var(--muted)}
.dz-bad{color:#c0392b;font-weight:600}.dz-ok{color:#1e7b4f}
.dz-chk{display:flex;gap:6px;align-items:center;font-size:12.5px;margin:6px 0}
/* rear anti-collapse mesh (rack builder) */
.dz-rb-mesh{border:1px solid #f0c9a8;border-radius:6px;margin:8px 0;padding:6px 8px;background:#fffaf5}
.dz-rb-mesh legend{font-weight:700;color:#a04000;font-size:12.5px;padding:0 4px}
.dz-rb-mesh.bad{border-color:#c0392b;background:#fdf3f2}
body.dz-full .dz-head{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dz-hbar{flex:0 1 auto}
.dz-hbar .dz-acct{color:#dbe2ee!important;overflow:hidden;white-space:nowrap;display:flex!important;gap:6px;align-items:center;min-width:0}
.dz-hbar .dz-acct[hidden]{display:none!important}
.dz-hbar .dz-acct-note{max-width:300px;overflow:hidden;text-overflow:ellipsis;display:inline-block}
.dz-hbar .dz-acct *{color:#dbe2ee!important;font-size:11.5px!important}
.dz-hbar .dz-acct a{color:var(--gold)!important}
.dz-hbar .dz-acct .dz-btn{color:#0B2545!important;background:#fff;border-color:#fff;padding:2px 8px}
@media (max-width:1500px){.dz-hbar .dz-acct-note{display:none!important}}
@media (max-width:1100px){.dz-hbar .dz-acct[data-state=out]{display:none!important}#dzAcSaveAs{display:none}}
body.dz-full .dz-toolbar .dz-tb{padding:4px 7px}

/* floor levels: tabs down the side of the plan */
.dz-levels{position:absolute;left:10px;top:50%;transform:translateY(-50%);z-index:6;display:flex;flex-direction:column;gap:4px;background:rgba(255,255,255,.94);border:1px solid #d5dbe6;border-radius:10px;padding:6px;box-shadow:0 4px 14px rgba(11,37,69,.14)}
.dz-levels[hidden]{display:none}
.dz-lv-h{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:#5b6475;text-align:center;font-weight:700;padding:2px 0 4px}
.dz-lv{display:flex;flex-direction:column;align-items:center;min-width:74px;padding:7px 8px;border:1px solid #d5dbe6;border-radius:8px;background:#fff;color:#0B2545;cursor:pointer;font:inherit;line-height:1.15}
.dz-lv b{font-size:13px}.dz-lv small{font-size:10.5px;color:#5b6475}
.dz-lv:hover{border-color:#0B2545}
.dz-lv.on{background:#0B2545;color:#fff;border-color:#0B2545;box-shadow:inset 4px 0 0 #C9A227}.dz-lv.on small{color:#dbe2ee}
.dz-lv-add{margin-top:4px;padding:5px 6px;border:1px dashed #7b2cbf;border-radius:8px;background:#faf5ff;color:#4b1c7a;font:600 11.5px Inter,system-ui;cursor:pointer}
@media (max-width:720px){.dz-levels{top:auto;bottom:56px;transform:none;flex-direction:row}.dz-lv{min-width:58px}}
/* drive-through bay, racking colours, equipment design spec */
.dz-dt { margin: 10px 0; padding: 8px 10px; border: 1px solid #d8dee8; border-left: 3px solid #C9A227; border-radius: 6px; background: #fbfcfe; }
.dz-dt summary { cursor: pointer; }
.dz-dt-sum { margin: 6px 0; font-weight: 700; }
.dz-dt-sum.ok { color: #0f7a4a; } .dz-dt-sum.bad { color: #c0392b; }
.dz-dt-lines, .dz-dt-prot, .dz-dt-flags, .dz-spec ul { margin: 4px 0 6px; padding-left: 18px; font-size: 12px; line-height: 1.45; }
.dz-dt-flags li { color: #c0392b; font-weight: 600; }
.dz-dt-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12px; margin: 4px 0; } .dz-dt-dl dt { color: #5b6475; } .dz-dt-dl dd { margin: 0; }
.dz-colours, .dz-spec { margin: 8px 0; padding: 6px 10px; border: 1px solid #d8dee8; border-radius: 6px; }
.dz-colours summary, .dz-spec summary { cursor: pointer; display: flex; align-items: center; gap: 6px; }
.dz-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.25); }
.dz-col-row { display: flex; gap: 4px; align-items: center; } .dz-col-row select { flex: 1; min-width: 0; }
.dz-col-pick { width: 32px; height: 28px; padding: 0; border: 1px solid #c5cdd9; border-radius: 4px; background: #fff; }
/* mezzanine drawing import (mezz-import-ui.js): a side sheet over the plan so the overlay stays visible while lining up */
.dz-mi{position:fixed;top:calc(var(--dz-top,46px) + 8px);right:8px;bottom:8px;width:min(560px,96vw);z-index:60;background:#fff;border:1px solid #c9cfda;border-radius:8px;box-shadow:0 8px 28px rgba(11,37,69,.18);overflow:auto}
.dz-mi-in{padding:12px 14px;font-size:13px}
.dz-mi-hd{display:flex;justify-content:space-between;align-items:center;gap:8px}.dz-mi-hd h3{margin:0;font-size:15px;color:var(--navy);word-break:break-all}
.dz-mi section{border-top:1px solid #e3e7ee;margin-top:10px;padding-top:8px}.dz-mi h4{margin:0 0 6px;font-size:13px;color:var(--navy)}
.dz-mi-sum{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:0}.dz-mi-sum dt{color:#5b6475}.dz-mi-sum dd{margin:0}
.dz-mi-layers{max-height:220px;overflow:auto;border:1px solid #e3e7ee;border-radius:4px}
.dz-mi table{border-collapse:collapse;width:100%;font-size:12px}.dz-mi th,.dz-mi td{padding:3px 5px;border-bottom:1px solid #eef1f5;text-align:left;vertical-align:middle}
.dz-mi .dz-in.w{min-width:120px}.dz-mi-decks .dz-in{width:80px}.dz-mi-decks .dz-in.w{width:140px}
.dz-mi-cur{border:1px solid #e3e7ee;border-radius:6px;padding:6px 8px;margin-top:6px}.dz-mi-cur small{display:block;color:#5b6475}

.dz-stair-in{margin:8px 0 0;padding:0 0 0 16px;font-size:12px;color:var(--muted)}
.dz-stair-in li{margin:4px 0}
.dz-link{background:none;border:0;padding:0;color:#0B2545;text-decoration:underline;cursor:pointer;font:inherit}
.dz-link:hover{color:#C9A227}

#nxLoads,#nxGrowth,#nxCmpTable{font-size:11px}
#nxLoads th,#nxLoads td{padding:3px 4px}
#nxLoads th:not(:first-child),#nxLoads td:not(:first-child){white-space:nowrap}
#nxUnmatched td:first-child{white-space:nowrap}

.nx-tornado{display:flex;align-items:center;gap:8px;font-size:11px;margin:3px 0}
.nx-tornado>span:first-child{flex:0 0 140px}
.nx-bar{flex:1;height:10px;background:#eef2f6;position:relative;display:flex;justify-content:center}
.nx-bar i{display:block;height:10px}
.nx-bar i.low{background:#3d5a80;margin-right:0;transform:translateX(-100%)}
.nx-bar i.high{background:#C9A227}

/* mezzanine per-side handrails and finish colours */
.dz-rails { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 8px 0 4px; }
.dz-rails th, .dz-rails td { padding: 4px 6px; text-align: left; vertical-align: middle; }
.dz-rails th { color: #4b5568; font-weight: 600; border-bottom: 1px solid #d8dee8; }
.dz-rails select { min-width: 7.5em; max-width: 11em; }
.dz-swatch-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.dz-swatch { width: 20px; height: 20px; border: 1px solid rgba(0,0,0,.28); border-radius: 3px; cursor: pointer; padding: 0; background: none; }
.dz-swatch:hover, .dz-swatch:focus { outline: 2px solid #0B2545; outline-offset: 1px; }
.dz-mz-cols .dz-f { min-width: 160px; }

/* Drawing pack dialog */
.dz-pack-box{max-width:720px;width:100%}
.dz-pack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px 12px;margin:8px 0}
.dz-pack-sheets{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;margin:6px 0 10px}
.dz-check{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:#1d2433;margin:4px 0}
.dz-check.is-off{color:#8a94a6}
.dz-check input{margin-top:2px}
.dz-muted{color:#8a94a6;font-weight:400}
#dzPackStatus{color:#0B2545;font-weight:600}

/* Door library on the Docks tab */
.dz-door-lib { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.dz-door-lib .dz-item { min-width: 11.5em; }


/* Network: Strategic optimiser | Tactical simulator switcher (tools/tactical/) */
.dz-netswitch { display: flex; border: 2px solid #0B2545; border-radius: 8px; overflow: hidden; margin: 0 0 10px; background: #fff; }
.dz-netsw { flex: 1; text-align: center; padding: 7px 8px; font-weight: 600; font-size: 13px; color: #0B2545; text-decoration: none; }
.dz-netsw.on { background: #0B2545; color: #fff; box-shadow: inset 0 -3px 0 #C9A227; }
a.dz-netsw:hover { background: #eef1f6; }
/* full built-site CAD import: analysis summary (Building panel + modal) */
.dz-site .dz-site-t,.dz-site-modal .dz-site-t{width:100%;border-collapse:collapse;margin:6px 0;font-size:12px}
.dz-site-t td{padding:5px 4px;border-bottom:1px solid #e3e8f0;vertical-align:top}
.dz-site-t td.dz-site-n{color:#3b4658}
.dz-site-c{display:flex;gap:6px;align-items:flex-start;font-weight:600;color:#0B2545;cursor:pointer}
.dz-site-c input{accent-color:#C9A227;margin-top:2px}
.dz-site-how{margin:6px 0;font-size:12px;color:#3b4658}.dz-site-how summary{cursor:pointer;font-weight:600;color:#0B2545}.dz-site-how ul{margin:4px 0 0 16px;padding:0}.dz-site-how code{background:#F7F9FC;border:1px solid #e3e8f0;border-radius:3px;padding:0 3px}
.dz-site-ref{align-items:center;flex-wrap:wrap}.dz-site-ref .dz-site-c{flex:1 1 100%}
.dz-site-modal{position:fixed;inset:0;z-index:1000;background:rgba(11,37,69,.42);display:flex;align-items:center;justify-content:center;padding:16px}
.dz-site-box{position:relative;background:#F7F9FC;border-top:4px solid #C9A227;border-radius:10px;box-shadow:0 18px 50px rgba(11,37,69,.35);max-width:640px;width:100%;max-height:88vh;overflow:auto;padding:16px 18px}
.dz-site-box h3{margin:0 0 6px;color:#0B2545;font-size:18px}
.dz-site-x{position:absolute;top:8px;right:10px;border:0;background:none;font-size:22px;line-height:1;color:#0B2545;cursor:pointer}
.dz-site-go{margin-top:10px;gap:8px}
/* full-site analysis: detected storage systems + the big gold build buttons */
.dz-sys{background:#fff;border:1px solid #e3e8f0;border-left:4px solid #C9A227;border-radius:6px;padding:8px 10px;margin:8px 0;font-size:12px;color:#0B2545}
.dz-sys .dz-sys-h{display:block;font-size:12.5px;margin:2px 0 4px;color:#0B2545}
.dz-sys ul{margin:0 0 6px 16px;padding:0}.dz-sys li{margin:2px 0;line-height:1.4}.dz-sys li b{color:#0B2545}
.dz-btn.dz-site-big{background:#C9A227;border-color:#C9A227;color:#0B2545;font-weight:700;padding:8px 14px;box-shadow:0 2px 6px rgba(201,162,39,.35)}
.dz-btn.dz-site-big:hover{filter:brightness(1.05)}
/* pedestrian walkway tool */
.dz-tb-walk{border-color:rgba(22,163,74,.7);box-shadow:inset 3px 0 0 #16A34A}
.dz-ww{gap:8px;flex-wrap:wrap}.dz-ww .dz-ww-w{width:74px;padding:2px 4px;font-size:12px}.dz-ww-hint{opacity:.8}
.dz-ww-card{border:1px solid #16A34A;border-left-width:4px;background:#F7F9FC;border-radius:6px;padding:8px 10px;margin:0 0 10px}.dz-ww-card>b{color:#0B2545}
.dz-f.dz-chk{display:flex;flex-direction:row;align-items:center;gap:6px}.dz-f.dz-chk input{width:auto;flex:none}
