.wh-map{background:#111a24;border:1px solid #2c3a49;border-radius:22px;padding:18px;color:#e8edf3}.wh-map-top,.wh-map-tools,.wh-map-bottom,.wh-map-savebar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.wh-map-top h3{font-size:24px;margin:6px 0 16px;letter-spacing:-.7px}.wh-map-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wh-map button,.wh-map select{min-height:36px}.wh-map select{max-width:230px;background:#1c2835;color:#edf4fa;border:1px solid #405064;border-radius:10px;padding:8px}.wh-map-tools{padding:12px 0;border-top:1px solid #2c3a49}.wh-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px}.wh-map-main{min-width:0}.wh-map-viewport{height:clamp(350px,55vh,650px);overflow:auto;border:1px solid #354457;border-radius:14px;background:#0c131c;padding:12px;overscroll-behavior:contain}.wh-map-board{position:relative;min-width:280px;background:#182330;border-radius:4px;isolation:isolate;overflow:hidden}.wh-map-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.wh-map-grid{position:absolute;inset:0;background-image:linear-gradient(to right,#8cabc52b 1px,transparent 1px),linear-gradient(to bottom,#8cabc52b 1px,transparent 1px);background-size:var(--map-col) var(--map-row);pointer-events:none}.wh-map-grid[hidden]{display:none}.wh-map-items{position:absolute;inset:0;pointer-events:none}.wh-map .wh-map-item{position:absolute;pointer-events:auto;touch-action:none;min-height:0;min-width:0;padding:3px;border:1.5px solid var(--area-color,#66c9d0);background:color-mix(in srgb,var(--area-color,#66c9d0) 35%,#14202c);border-radius:5px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:clamp(8px,.8vw,12px);font-weight:700;cursor:grab;overflow:hidden;box-shadow:0 2px 5px #0004}.wh-map-item>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;pointer-events:none}.wh-map-item i{position:absolute;right:3px;top:1px;font-size:10px;font-style:normal}.wh-map .wh-map-item.is-selected{outline:2px solid #fff;outline-offset:-1px;box-shadow:0 0 0 3px #9bdfff42}.wh-map .wh-map-item.is-invalid{background:#a82b45;border-color:#ff677f}.wh-map .wh-map-item.aisle{background:repeating-linear-gradient(135deg,#93a9c012 0 5px,#93a9c02a 5px 10px);border:1px dashed #acbdcb;color:#e2ebf2}.wh-map .wh-map-item.obstacle{background:repeating-linear-gradient(135deg,#4c3a3a 0 5px,#2b2227 5px 10px);border-color:#d19191}.wh-map-resize{position:absolute;right:0;bottom:0;width:14px;height:14px;background:linear-gradient(135deg,transparent 50%,#fff 50%);cursor:nwse-resize}.wh-map .area-finished{--area-color:#44c6b3}.wh-map .area-raw{--area-color:#d8b267}.wh-map .area-packing{--area-color:#a794ec}.wh-map .area-supplies{--area-color:#72b5ef}.wh-map .area-receiving{--area-color:#f5a87b}.wh-map .area-quarantine{--area-color:#e589a2}.wh-map-inspector{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-width:0!important;background:#182330!important;border:1px solid #304153!important;border-radius:14px;padding:16px!important;display:block!important;overflow:auto;max-height:740px}.wh-map-inspector h3{font-size:18px;margin:10px 0}.wh-map-inspector p,.wh-map-inspector small{color:#b7c5d2;line-height:1.5}.wh-map-inspector .wh-field{margin-bottom:10px}.wh-map-inspector input,.wh-map-inspector select{width:100%;max-width:none;box-sizing:border-box}.wh-map-coordinates{display:grid;grid-template-columns:1fr 1fr;gap:8px}.wh-map-coordinates label{font-size:11px}.wh-map-legend{display:grid;gap:12px;margin:24px 0}.wh-map-legend>span{display:flex;align-items:center;gap:10px;font-size:12px}.wh-map-legend i{width:10px;height:10px;border-radius:3px;background:var(--area-color)}.wh-map-watermark{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;color:#8ca4ba;font-size:13px;letter-spacing:2px;padding:20px;pointer-events:none}.wh-map-watermark small{font-size:11px;letter-spacing:0;max-width:210px;line-height:1.5}.wh-map-bottom{margin:10px 0;font-size:11px;color:#b3c3d0}.wh-map-note{font-size:11px;color:#93a9bd;line-height:1.5;margin:8px 0}.wh-map-savebar{border-top:1px solid #2c3a49;padding-top:12px;margin-top:12px;font-size:12px}.wh-map-savebar small{color:#a7b9ca}.wh-map [data-map-status].is-error{color:#ffabb6}.wh-map-empty{min-height:340px;border:1px dashed #486078;border-radius:16px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px;background:radial-gradient(ellipse at top,#24425177,transparent 70%)}.wh-map-empty>div{font-size:58px;color:#74cabd}.wh-map-empty h3{margin:10px 0}.wh-map-empty p{max-width:420px;color:#aebfd0;line-height:1.6}.wh-map-empty small{color:#92a8bb;margin-top:18px}.wh-map-stock{border-top:1px solid #35475a;margin-top:18px;padding-top:8px}.wh-map-stock h4{font-size:13px}.wh-map-stock [data-map-stock]{min-height:110px}.wh-map .wh-map-lot{display:flex;flex-direction:column;gap:4px;text-align:left;background:#10202b;border:1px solid #344c60;border-radius:10px;width:100%;padding:10px;margin:8px 0;color:#edf4fa}.wh-map-lot span{font-size:11px;overflow-wrap:anywhere}.wh-map-lot small{font-size:10px}.wh-map-initial{min-height:570px}.wh-map-item-form .textbtn{font-size:11px}.wh-map-item:focus-visible{outline:3px solid white}.wh-map button:disabled{opacity:.45}.wh-map-layout>*{min-width:0}@media(max-width:1000px){.wh-map-layout{grid-template-columns:minmax(0,1fr) 220px}.wh-map{padding:12px}.wh-map-tools button{font-size:11px}}@media(max-width:720px){.wh-map-layout{grid-template-columns:1fr}.wh-map-inspector{max-height:none}.wh-map-viewport{height:420px}.wh-map-item{font-size:10px!important}.wh-map-top h3{font-size:21px}.wh-map-actions{gap:5px}.wh-map-coordinates{grid-template-columns:repeat(4,1fr)}}

.wh-workspace .wh-search-row[hidden]{display:none}

.wh-map-plan-reference:empty{display:none}.wh-map-plan-reference{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin-bottom:10px;background:#203445;border-radius:10px;font-size:12px}.wh-map-plan-reference p{margin:0;color:#d5e4ef;max-width:700px}.wh-map-plan-reference a{color:#99e2d4;white-space:nowrap}.wh-map-board{margin:0 auto}.wh-map-zones{position:absolute;inset:0;pointer-events:none}.wh-map-reference-zone{position:absolute;border:1px dashed var(--area-color,#d8e3eb);background:color-mix(in srgb,var(--area-color,#91a5ba) 9%,transparent);display:flex;align-items:flex-start;justify-content:center;padding:2px}.wh-map-reference-zone>span{color:#fff;background:#102536d9;padding:2px 4px;border-radius:4px;font-size:9px;text-align:center;line-height:1.3;overflow-wrap:anywhere;max-width:100%}.wh-map-reference-zone.is-excluded{background:repeating-linear-gradient(135deg,#7e3544bb 0 6px,#382633cc 6px 12px);border:1px solid #d67f8a;align-items:center}.wh-map-reference-zone.is-excluded>span{background:#321d29e8;color:#fff0f3}.wh-map [data-map-upload][hidden]{display:none}@media(max-width:720px){.wh-map-plan-reference{display:block}.wh-map-plan-reference a{display:inline-block;margin-top:8px}}

.wh-map-viewport{touch-action:pan-x pan-y}.wh-map-reference-zone.is-access{background:#12394de6;border:1px solid #9acddd;align-items:center;z-index:2}.wh-map-reference-zone.is-access>span{font-size:8px;background:transparent;padding:1px;writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;overflow:hidden}

.wh-map-viewport{padding:0;cursor:grab}.wh-map-viewport.is-panning{cursor:grabbing;user-select:none}.wh-map-stage{box-sizing:border-box;position:relative}.wh-map-stage .wh-map-board{margin:0}

.wh-map-proposal-badge{background:#296150;color:#c9f7df;border-radius:20px;padding:6px 12px;white-space:nowrap;font-size:11px;font-weight:600}.wh-map-plan-reference:has(.wh-map-proposal-badge){border:1px solid #3b665b;background:linear-gradient(115deg,#173b36,#1b2b3a)}
/* Centimeter editor: gradients avoid creating millions of grid elements. */
.wh-map-board.is-cm .wh-map-grid{background-image:linear-gradient(to right,#8cabc524 .3px,transparent .3px),linear-gradient(to bottom,#8cabc524 .3px,transparent .3px),linear-gradient(to right,#9ac5de50 1px,transparent 1px),linear-gradient(to bottom,#9ac5de50 1px,transparent 1px);background-size:var(--map-col) var(--map-row),var(--map-col) var(--map-row),var(--map-ten-col) var(--map-ten-row),var(--map-ten-col) var(--map-ten-row)}
.wh-map .wh-map-item.shape{border-radius:1px;box-shadow:none;align-items:flex-start;padding:8px;font-weight:500}.wh-map-item.shape>span:first-child{white-space:normal;overflow-wrap:anywhere}.wh-map .wh-map-item.is-selected{overflow:visible}.wh-map .wh-map-item.is-selected>span:first-child{overflow:hidden}.wh-map-handle{position:absolute;width:10px;height:10px;background:#edf7ff;border:1px solid #163147;border-radius:2px;z-index:5;touch-action:none}.handle-n{top:0;left:calc(50% - 5px);cursor:ns-resize}.handle-s{bottom:0;left:calc(50% - 5px);cursor:ns-resize}.handle-e{right:0;top:calc(50% - 5px);cursor:ew-resize}.handle-w{left:0;top:calc(50% - 5px);cursor:ew-resize}.handle-ne{top:0;right:0;cursor:nesw-resize}.handle-nw{top:0;left:0;cursor:nwse-resize}.handle-se{bottom:0;right:0;cursor:nwse-resize}.handle-sw{bottom:0;left:0;cursor:nesw-resize}.wh-map .is-locked{cursor:pointer;border-style:dashed}.wh-map-lock{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:12px}.wh-map-lock input{width:auto!important}.wh-map-inspector input[type=color]{height:34px;padding:3px;border:1px solid #405064;background:#172330;border-radius:8px}.wh-map-object-list{max-height:220px;overflow:auto;display:grid;gap:4px;margin-top:12px}.wh-map-object-list button{display:flex;gap:8px;text-align:left;align-items:center;background:#14202d;color:#dbe8f2;border:1px solid #34485a;border-radius:7px;padding:6px 8px;font-size:11px}.wh-map-object-list i{width:10px;height:10px;flex:none;border-radius:2px}.wh-map-object-list button[aria-pressed=true]{border-color:#8ddbc9}.wh-map-object-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.wh-map-watermark[hidden]{display:none}
.wh-map-editor{padding:12px;border-radius:16px}.wh-map-editor .wh-map-top{margin-bottom:10px}.wh-map-floor-tabs{display:flex;padding:3px;background:#0b131d;border:1px solid #2b3b4b;border-radius:11px;gap:3px}.wh-map-floor-tabs button{border:0;border-radius:8px;background:transparent;color:#92a8bc;padding:7px 16px;font-size:13px}.wh-map-floor-tabs button[aria-pressed=true]{background:#2c4354;color:#f1f7fc}.wh-map-editor .wh-map-tools{padding:8px 0}.wh-map-editor .wh-map-viewport{height:clamp(420px,65vh,850px)}.wh-map-editor [data-map-status]{font-size:11px;color:#9db2c5}.wh-map-editor .wh-map-item.is-selected{outline:1px solid #c4e6ff99;outline-offset:1px;box-shadow:0 0 0 2px #b2dfff12;overflow:hidden}.wh-map-editor .wh-map-item:hover{filter:brightness(1.08)}.wh-map-editor .wh-map-inspector{padding:12px!important}.wh-map-editor .wh-map-inspector:empty{display:none!important}.wh-map-context{position:fixed;z-index:10000;min-width:180px;padding:5px;border:1px solid #50677a;background:#182636f5;backdrop-filter:blur(16px);border-radius:10px;box-shadow:0 12px 35px #0007}.wh-map-context button{display:block;width:100%;border:0;background:transparent;color:#e1edf6;text-align:left;padding:8px 12px;border-radius:6px;font-size:12px}.wh-map-context button:hover,.wh-map-context button:focus-visible{background:#36526a;outline:none}.wh-map-context [data-context=delete]{color:#f5a19f}.wh-map-guides{position:absolute;inset:0;pointer-events:none;z-index:10}.wh-map-guides i{position:absolute;background:#8be3d5;box-shadow:0 0 5px #8be3d560}.wh-map-guides .guide-x{top:0;bottom:0;width:1px}.wh-map-guides .guide-y{left:0;right:0;height:1px}.wh-map-editor .wh-map-inspector h4{font-size:11px;color:#91a9bd;margin:12px 0 4px}.wh-map-editor .wh-map-object-list{margin-top:5px}.wh-map-editor .wh-map-inspector .eyebrow{display:none}.wh-map-editor .wh-map-item-form .wh-field{font-size:11px}
/* Fixed geometry: selection, hover and pressing never alter the rectangle's box. */
.wh-map-editor .wh-map-viewport,.wh-map-editor .wh-map-stage,.wh-map-editor .wh-map-board{background:#090c10}
.wh-map-editor .wh-map-board{box-sizing:content-box;padding:0;border:0;min-height:0;max-width:none;max-height:none}
.wh-map-editor .wh-map-board.is-cm .wh-map-grid{background-image:linear-gradient(to right,#85858540 .3px,transparent .3px),linear-gradient(to bottom,#85858540 .3px,transparent .3px);background-size:var(--map-cell) var(--map-cell);background-position:0 0}
.wh-map.wh-map-editor .wh-map-item,.wh-map.wh-map-editor .wh-map-item:hover,.wh-map.wh-map-editor .wh-map-item:focus,.wh-map.wh-map-editor .wh-map-item:active,.wh-map.wh-map-editor .wh-map-item.is-selected{box-sizing:border-box!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;transform:none!important;scale:none!important;translate:none!important;animation:none!important;filter:none!important;outline:none!important;background:#0c1015!important;box-shadow:inset 0 0 0 1px var(--item-color,var(--area-color,#66c9d0));transition:box-shadow .12s ease;overflow:hidden}
.wh-map.wh-map-editor .wh-map-item:hover{box-shadow:inset 0 0 0 2px var(--item-color,var(--area-color,#66c9d0)),inset 0 0 14px color-mix(in srgb,var(--item-color,var(--area-color,#66c9d0)) 12%,transparent)}
.wh-map.wh-map-editor .wh-map-item.is-selected,.wh-map.wh-map-editor .wh-map-item:focus-visible{box-shadow:inset 0 0 0 2px var(--item-color,var(--area-color,#66c9d0)),inset 0 0 0 3px #ffffff25}
.wh-map.wh-map-editor .wh-map-item.is-invalid{box-shadow:inset 0 0 0 2px #ff677f}
.wh-map.wh-map-editor .wh-map-item>span:first-child{position:absolute;inset:6px;max-width:none;white-space:normal;overflow:hidden;text-align:left;overflow-wrap:anywhere;line-height:1.3;pointer-events:none}
.wh-map-editor .wh-map-item-form fieldset{border:0;margin:0;padding:0;min-width:0}.wh-map-editor .wh-map-item-form fieldset:disabled{opacity:.55}
.wh-map-editor [data-map-lock]{min-width:62px}.wh-map-context button:disabled{opacity:.35;pointer-events:none}
/* Compact drawing workspace. Geometry remains square and unchanged by corner rounding. */
.wh-map.wh-map-editor{padding:6px;border-radius:12px}.wh-map-editor .wh-map-top{margin:0 0 4px;gap:6px}.wh-map-editor .wh-map-tools{padding:4px 0 6px;gap:5px;border-top:0}.wh-map-editor .wh-map-actions{gap:4px}.wh-map-editor .wh-map-floor-tabs{padding:2px;gap:2px}.wh-map-editor .wh-map-floor-tabs button{padding:4px 10px;font-size:11px}.wh-map-editor button{min-height:28px}.wh-workspace .wh-map-editor .secondary,.wh-workspace .wh-map-editor .primary,.wh-map-editor .textbtn{padding:5px 8px;font-size:11px;border-radius:7px}.wh-map-editor .wh-map-layout{grid-template-columns:minmax(0,1fr) 216px;gap:6px}.wh-map-editor .wh-map-viewport{height:clamp(460px,calc(100dvh - 215px),1100px);border-radius:10px}.wh-map-editor .wh-map-inspector{padding:8px!important;border-radius:10px;max-height:calc(100dvh - 215px)}.wh-map-editor .wh-field{margin-bottom:5px}.wh-map-editor .wh-field input,.wh-map-editor .wh-field select{padding:5px 6px;min-height:28px;font-size:11px}.wh-map-editor .wh-map-coordinates{gap:5px}.wh-map-editor .wh-map-object-list{max-height:180px;gap:3px}.wh-map-editor .wh-map-object-list button{padding:4px 6px;font-size:10px}.wh-map-editor .wh-map-lock{margin:5px 0}.wh-map-editor .wh-map-item-form .wh-map-actions{gap:4px}.wh-map-editor .wh-map-stock{margin-top:8px;padding-top:4px}.wh-map-editor.is-panel-hidden .wh-map-layout{grid-template-columns:minmax(0,1fr)}.wh-map-editor.is-panel-hidden .wh-map-inspector{display:none!important}
.wh-map-editor .wh-map-board{border-radius:7px}.wh-map-editor .wh-map-grid{border-radius:inherit;opacity:var(--grid-opacity,1)}
.wh-map.wh-map-editor .wh-map-item,.wh-map.wh-map-editor .wh-map-item:hover,.wh-map.wh-map-editor .wh-map-item:focus,.wh-map.wh-map-editor .wh-map-item:active,.wh-map.wh-map-editor .wh-map-item.is-selected{border-radius:4px!important}
.wh-map-guides i{background:#a4d0c7;opacity:.45;box-shadow:none}.wh-map-guides .guide-x{width:.5px}.wh-map-guides .guide-y{height:.5px}
.wh-map-editor [data-map-create][aria-pressed=true]{background:#2b5c53!important;color:#d4f7ed;border:1px solid #6bb9a8}.wh-map-board.is-drawing,.wh-map-board.is-drawing *{cursor:crosshair!important;touch-action:none}.wh-map-draft{position:absolute;z-index:20;pointer-events:none;border-radius:4px;box-shadow:inset 0 0 0 1px #83d8c5;background:#83d8c514;color:#c5f2e8;display:flex;align-items:center;justify-content:center;font-size:11px;white-space:nowrap;overflow:hidden;box-sizing:border-box}
.wh-map-context{position:fixed;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;transform:none;margin:0}
@media(max-width:720px){.wh-map-editor .wh-map-layout{grid-template-columns:minmax(0,1fr)}.wh-map-editor .wh-map-inspector{max-height:290px}.wh-map-editor .wh-map-viewport{height:clamp(360px,calc(100dvh - 240px),800px)}.wh-map-editor .wh-map-tools{gap:4px}.wh-map-editor .wh-map-coordinates{grid-template-columns:repeat(4,minmax(0,1fr))}}
.wh-map-dimensions{position:absolute;bottom:4px;right:5px;left:5px;max-width:calc(100% - 10px);text-align:right;color:#b5c1ca;opacity:.38;font-size:8px;font-weight:400;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:clip;pointer-events:none;font-variant-numeric:tabular-nums;user-select:none}.wh-map-item:hover .wh-map-dimensions,.wh-map-item.is-selected .wh-map-dimensions{opacity:.62}.wh-map.wh-map-editor .wh-map-item>span:first-child{bottom:17px}
/* Rotation changes orientation only; hover and selection preserve the stored angle. */
.wh-map.wh-map-editor .wh-map-items .wh-map-item{transform:rotate(var(--item-rotation,0deg))!important;transform-origin:center center}
.wh-map-editor .wh-map-rotation{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px;align-items:end;margin:4px 0 8px}
.wh-map-editor .wh-map-rotation .wh-field{margin:0}
.wh-map-editor .wh-map-rotation button{padding:5px!important;min-width:34px;min-height:28px;white-space:nowrap}
.wh-map-editor .wh-map-viewport.has-rotation-cursor,.wh-map-editor .wh-map-viewport.has-rotation-cursor *,.wh-map-editor .wh-map-viewport.is-rotating,.wh-map-editor .wh-map-viewport.is-rotating *{cursor:url('/map-rotate-cursor.svg') 14 14,crosshair!important}
.wh-map-editor .wh-map-viewport.is-rotating{touch-action:none;user-select:none}
.wh-map-rotation-readout{position:fixed;z-index:10001;pointer-events:none;min-width:42px;padding:5px 7px;border:1px solid #596c40;border-radius:5px;background:#1a2116;color:#e4efcd;font:11px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;text-align:center;box-shadow:0 3px 10px #0005}
.wh-map-rotation-readout[hidden]{display:none}.wh-map-rotation-readout.is-invalid{color:#ffd4d4;border-color:#aa4d58}

/* Per-object type sizing leaves the rectangle and its measurement label untouched. */
.wh-map.wh-map-editor .wh-map-item{font-size:var(--item-font-size,clamp(8px,.8vw,12px))!important}
.wh-map-text-size{display:grid;grid-template-columns:minmax(0,1fr) 28px 28px 36px;align-items:end;gap:3px;margin-bottom:5px}
.wh-map-editor .wh-map-text-size .wh-field{min-width:0;margin:0}
.wh-map-editor .wh-map-text-size .textbtn{padding:4px 2px;font-size:10px}
.wh-map-context{box-sizing:border-box;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.wh-map-context button{min-height:28px;padding:6px 10px;font-size:11px;line-height:1.3}
.wh-map-context button:disabled{opacity:.35;cursor:default}
.wh-map-context button:disabled:hover{background:transparent}
.wh-menu-divider{height:1px;margin:4px 5px;background:#81916d30}
@media(max-width:720px){.wh-map.wh-map-editor .wh-map-item{font-size:var(--item-font-size,10px)!important}}
/* Background saves reserve their own compact space and never cover the plan. */
.wh-map-sync{display:inline-flex;align-items:center;gap:6px;min-width:133px;font-size:10px;line-height:18px;color:#9eae8c;white-space:nowrap}
.wh-map-sync:before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:currentColor}
.wh-map-sync[data-state=pending],.wh-map-sync[data-state=saving]{color:#d0d891}
.wh-map-sync[data-state=pending]:before,.wh-map-sync[data-state=saving]:before{animation:wh-map-saving 1s ease-in-out infinite}
.wh-map-sync[data-state=retrying],.wh-map-sync[data-state=conflict],.wh-map-sync[data-state=error]{color:#e3b18e}
.wh-map [data-map-retry][hidden],.wh-map [data-map-status]:empty{display:none}
@keyframes wh-map-saving{50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){.wh-map-sync:before{animation:none!important}}

/* Marquee and group selection never alter object geometry or layer order. */
.wh-map-editor .wh-map-marquee{position:absolute;z-index:30;pointer-events:none;border:1px solid #98d8ea;border-radius:3px;background:#74b9da18;box-sizing:border-box}
.wh-map-editor .wh-map-marquee[hidden]{display:none}
.wh-map-editor .wh-map-board.is-selection-tool{touch-action:none;cursor:crosshair}
.wh-map-editor .wh-map-viewport.is-hand-tool,.wh-map-editor .wh-map-viewport.is-hand-tool *,.wh-map-editor .wh-map-viewport.is-space-pan,.wh-map-editor .wh-map-viewport.is-space-pan *{cursor:grab!important}
.wh-map-editor .wh-map-viewport.is-hand-tool .wh-map-board,.wh-map-editor .wh-map-viewport.is-hand-tool .wh-map-item{touch-action:pan-x pan-y}
.wh-map-editor [data-map-select][aria-pressed=true],.wh-map-editor [data-map-hand][aria-pressed=true]{background:#2d3c46;color:#deeff7}
.wh-map-selection-count{font-size:10px;color:#b0c9d8;white-space:nowrap}
.wh-map-selection-count:empty{display:none}
.wh-map-group{padding:6px 2px;color:#e0e8ee}.wh-map-group strong{font-size:12px;display:block;margin-bottom:10px}.wh-map-group .wh-map-actions{gap:6px}
.wh-map-group [data-group-delete]{color:#f2a5a5}

.wh-map .wh-field[hidden],.wh-dialog .wh-field[hidden]{display:none!important}

/* Labels share the object's coordinate system; no fixed-pixel insets at any zoom. */
.wh-map.wh-map-editor .wh-map-item>.wh-map-label{position:absolute;inset:0;width:100%;height:100%;display:block;max-width:none;pointer-events:none;overflow:visible;font-family:system-ui,sans-serif;font-weight:700;fill:currentColor}
.wh-map-label text{stroke:none;letter-spacing:normal}
.wh-map-label .wh-map-label-dimensions{fill:#b5c1ca;opacity:.38}
.wh-map-label .wh-map-label-link{opacity:.6}
.wh-map-item:hover .wh-map-label-dimensions,.wh-map-item.is-selected .wh-map-label-dimensions{opacity:.62}
.wh-map-label .wh-map-label-description{opacity:.75}
.wh-map-pallet-counts{display:flex;gap:7px;align-items:center;flex-wrap:wrap;min-height:24px;margin:0 0 5px;font-size:11px;color:#b0c9d8}
.wh-map-pallet-counts b{font-weight:500;margin-right:4px}.wh-map-pallet-counts span{display:inline-flex;gap:7px;align-items:center;padding:3px 7px;border:1px solid #36434d;border-radius:7px;color:var(--pallet-color)}.wh-map-pallet-counts strong{color:#eaf0f5}
.wh-map-text-size .wh-map-fit-text{grid-column:1/-1;text-align:center;border:1px solid #425665;border-radius:7px;margin-top:3px!important}
.wh-map-text-size .wh-map-fit-text[aria-pressed=true]{background:#24433e;color:#b9efda}
