/* Match the established teal business map; the visual catalogue is the primary discovery surface. */
.pw-nav{position:relative;z-index:7;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--border)}
.pw-tabs{display:flex;gap:4px;overflow:auto;max-width:100%;scrollbar-width:thin}
.pw-tabs button{white-space:nowrap;flex:none;border-radius:6px;padding:9px 14px;background:transparent;border:1px solid transparent;color:var(--muted)}
.pw-tabs button[aria-selected=true]{color:var(--accent);background:var(--surface);border-color:var(--accent)}
.pw-nav>[role=status]{font-size:12px;color:var(--muted);margin-left:auto;max-width:480px}
.pw-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;position:relative;z-index:7;padding:10px 0}
.pw-toolbar>strong{margin-right:auto}.pw-toolbar button{padding:7px 12px;min-height:36px}
.business-scene.pw-active .scene-workspace,.business-scene.pw-active>.scene-footer,.business-scene.pw-active .scene-top-actions,.business-scene.pw-active .scene-breadcrumb{visibility:hidden;pointer-events:none}
.business-scene.pw-active>.scene-heading .scene-top-actions{display:none}
.pw-stage{position:absolute;inset:180px 0 28px;overflow:hidden;touch-action:none;outline-offset:-3px;background:radial-gradient(circle at 1px 1px,var(--border) 1px,transparent 0) 0 0/32px 32px}
.pw-world{position:absolute;width:4400px;height:4400px;transform-origin:0 0}
.pw-edges{position:absolute;pointer-events:none;overflow:visible}.pw-edges line{stroke:var(--accent);stroke-width:1.5;opacity:.55}
.pw-node{position:absolute;width:280px;transform:translate(-50%,-50%);color:var(--text)}
.pw-node-face{display:flex;flex-direction:column;align-items:stretch;text-align:left;width:100%;padding:14px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;gap:7px;overflow:hidden}
.pw-node-face:focus-visible,.pw-node-face:hover{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:3px}.pw-node-face small{color:var(--muted);font-size:12px;display:block;font-weight:400}
.pw-node-face strong{font-size:22px;display:block;font-variant-numeric:tabular-nums}.pw-node-face .pw-title{font-size:16px;line-height:1.35}.pw-node-face>.pw-title{margin-bottom:4px}
.pw-node-face>span>strong{font-size:28px}.pw-node-face>div{border-top:1px solid var(--border);padding-top:7px}.pw-node-face table{width:100%;font-size:12px}.pw-node-face th{text-align:left}
.pw-drag{position:absolute;right:6px;top:-26px;width:34px;height:30px;padding:0;cursor:grab;touch-action:none;z-index:1;background:var(--surface);color:var(--muted);border:1px solid var(--border);border-radius:5px}
.pw-building{width:190px;height:160px;object-fit:contain;align-self:center}.pw-symbol{font-size:34px;color:var(--accent);line-height:1.3;display:block}
.pw-values{display:flex;flex-direction:column;gap:5px}.pw-values .scene-receipt-row{display:flex;justify-content:space-between}.pw-values small{display:block}
.pw-node-face .scene-total{display:block;font-size:25px}.pw-node-face .scene-total small{display:inline;font-size:12px}
.pw-mini-bars{width:100%;height:48px}.pw-mini-bars rect,.pw-bar-row rect{fill:var(--accent)}.pw-bar-row{padding:5px 0}.pw-bar-row>span{font-size:12px;color:var(--muted)}.pw-bar-row>strong{font-size:18px}.pw-bar-row svg{height:6px;width:100%}
.pw-orbit{position:absolute;z-index:12;pointer-events:none}.pw-orbit svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.pw-orbit line{stroke:var(--accent);stroke-width:1.5}.pw-orbit button{position:absolute;transform:translate(-50%,-50%);width:122px;min-height:38px;padding:5px 8px;background:var(--surface);border:1px solid var(--accent);border-radius:9px;color:var(--text);font-size:13px;line-height:1.15;pointer-events:auto}
.pw-empty{max-width:440px;margin:40px auto;padding:24px;text-align:center;color:var(--muted)}.pw-empty>span{font-size:50px;color:var(--accent)}.pw-empty h3{color:var(--text)}.pw-empty p{line-height:1.6}
.pw-catalog{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin:20px 0}.pw-catalog-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;padding:16px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px}.pw-catalog-card:hover,.pw-catalog-card:focus-visible{border-color:var(--accent)}.pw-catalog-card img{width:100%;height:115px;object-fit:contain}.pw-catalog-card small{color:var(--muted);line-height:1.4}.pw-catalog-card strong{font-size:16px}
.pw-filters,.pw-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.pw-filters [aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
.pw-templates{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.pw-templates label{display:flex;align-items:center;gap:8px;padding:14px;border:1px solid var(--border);border-radius:9px;cursor:pointer}.pw-templates label:has(input:checked){border-color:var(--accent);background:var(--surface)}.pw-templates span{font-size:24px;color:var(--accent)}
.scene-report-content form>label,.scene-report-content>label{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.scene-report-content input:not([type=radio]),.scene-report-content select{max-width:100%;min-height:40px;padding:8px 12px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:7px}.scene-report-content input[type=radio]{accent-color:var(--accent)}.scene-report-content fieldset{border:0;padding:0}
@media(max-width:700px){.pw-nav{gap:6px}.pw-nav>[role=status]{margin-left:0;flex-basis:100%}.pw-nav button,.pw-toolbar button{min-height:44px}.pw-toolbar>strong{flex-basis:100%}.pw-toolbar{gap:4px}.pw-toolbar button{font-size:12px;padding:5px 9px}.pw-orbit.pw-orbit-mobile{position:absolute!important;left:8px!important;right:8px!important;top:auto!important;bottom:8px!important;width:auto!important;height:auto!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:var(--surface);border:1px solid var(--accent);padding:10px;border-radius:12px;pointer-events:auto}.pw-orbit-mobile svg{display:none}.pw-orbit.pw-orbit-mobile button{position:static;transform:none;width:auto;min-height:44px}.pw-empty{margin:0 auto;padding:16px}.pw-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pw-catalog-card{padding:10px}.pw-catalog-card img{height:90px}}

.business-scene .pw-drag{width:34px;height:30px;min-height:30px;padding:0}
.business-scene .pw-node-face{padding:14px;text-align:left;line-height:1.4}
.business-scene .pw-orbit button{width:122px;min-height:38px;padding:5px 8px;font-size:13px;line-height:1.15;border-color:var(--accent)}

.business-scene.pw-enabled[data-scene-view="network"]>.scene-heading{position:relative;inset:auto;padding:14px 26px 6px;pointer-events:auto}
.business-scene.pw-enabled .pw-nav,.business-scene.pw-enabled .pw-toolbar{margin:0 26px}
@media(max-width:700px){.business-scene.pw-enabled[data-scene-view="network"]>.scene-heading{padding:10px 12px 4px}.business-scene.pw-enabled .pw-nav,.business-scene.pw-enabled .pw-toolbar{margin:0 12px}}

@media(max-width:700px){.pw-stage{overflow-y:auto;touch-action:pan-y}.pw-world{position:relative;width:100%;height:auto;min-height:100%;transform:none!important;display:flex;flex-direction:column;gap:30px;padding:20px 24px 180px;box-sizing:border-box}.pw-node{position:relative;left:auto!important;top:auto!important;transform:none;width:100%}.pw-drag{display:none}.pw-orbit.pw-orbit-mobile{position:fixed!important;bottom:10px!important;z-index:30}.pw-edges{height:100%}.pw-toolbar [data-zoom],.pw-toolbar [data-pw-zoom-value]{display:none}}

/* Compact workspace chrome shares the heading; no extra rows above the canvas. */
.business-scene.pw-enabled[data-scene-view="network"]>.scene-heading{display:grid;grid-template-columns:minmax(120px,1fr) auto;align-items:center;gap:4px 12px;padding:10px 20px 6px}
.business-scene.pw-enabled[data-scene-view="network"]>.scene-heading>div:first-child{min-width:0}
.business-scene.pw-enabled[data-scene-view="network"]>.scene-heading>.scene-top-actions{grid-column:2;grid-row:2;justify-content:flex-end;width:auto}
.business-scene.pw-enabled .pw-nav{grid-column:2;grid-row:1;display:flex;justify-content:flex-end;align-items:center;gap:5px;margin:0;padding:0;border:0;flex-wrap:nowrap;min-width:0}
.business-scene .pw-nav button,.business-scene .pw-nav select{height:34px;min-height:34px;padding:5px 9px;font-size:13px;border-radius:8px;line-height:1.2;margin:0}
.business-scene .pw-nav select{width:190px;max-width:32vw;min-width:0;text-overflow:ellipsis;background:var(--surface);color:var(--text);border:1px solid var(--border)}
.business-scene .pw-nav [data-pw-new],.business-scene .pw-nav [data-pw-menu]{width:34px;padding:0;font-size:21px;flex:none}
.business-scene .pw-nav [data-add]{white-space:nowrap}
.pw-nav>[role=status]{flex:none;margin:0;width:16px;color:var(--accent);font-size:12px}
.pw-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pw-nav>.pw-status-problem{position:absolute;right:0;top:calc(100% + 6px);width:min(360px,85vw);max-width:none;padding:10px;background:var(--surface);border:1px solid var(--warning);border-radius:8px;color:var(--text);z-index:30;line-height:1.5}
.business-scene.pw-active>.scene-heading .scene-brand,.business-scene.pw-active>.scene-heading .scene-period{display:none}
.business-scene.pw-active[data-scene-view="network"]>.scene-heading h2{font-size:20px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pw-control-menu{display:grid;grid-template-columns:1fr;gap:8px;max-width:480px;margin:0 auto}.pw-control-menu>button{text-align:left}.pw-menu-zoom{display:flex;align-items:center;justify-content:center;gap:16px}.pw-menu-zoom button{width:44px;min-height:44px}
@media(max-width:700px){.business-scene.pw-enabled[data-scene-view="network"]>.scene-heading{grid-template-columns:minmax(0,1fr);gap:6px;padding:8px 12px 4px}.business-scene.pw-enabled .pw-nav{grid-column:1;grid-row:2;justify-self:end;width:auto;max-width:100%;gap:4px}.business-scene.pw-enabled[data-scene-view="network"]>.scene-heading>.scene-top-actions{grid-column:1;grid-row:3}.business-scene .pw-nav button,.business-scene .pw-nav select{height:40px;min-height:40px}.business-scene .pw-nav select{width:155px;max-width:42vw}.business-scene .pw-nav [data-pw-new],.business-scene .pw-nav [data-pw-menu]{width:40px}.pw-nav>[role=status]{flex-basis:auto;width:12px}.business-scene.pw-active[data-scene-view="network"]>.scene-heading h2{font-size:17px}.business-scene .pw-menu-zoom{display:none}}

.business-scene .pw-nav [data-pw-new]{width:auto;padding:5px 9px;font-size:13px;white-space:nowrap}
.pw-dock{position:absolute;left:16px;bottom:10px;z-index:10;display:flex;align-items:center;gap:5px;max-width:calc(100% - 180px);padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:9px}
.pw-dock .pw-tabs{min-width:0;gap:3px}.business-scene .pw-dock button{min-height:30px;height:30px;padding:4px 9px;font-size:12px;border-radius:6px;line-height:1.2}
.pw-dock [data-pw-tab]{max-width:150px;overflow:hidden;text-overflow:ellipsis}.business-scene .pw-dock [data-pw-delete]{flex:none;width:30px;padding:5px;display:grid;place-items:center;background:transparent;color:var(--muted);border:0}.pw-dock [data-pw-delete]:disabled{opacity:.3;cursor:default}.pw-dock [data-pw-delete]:not(:disabled):hover{color:var(--danger,var(--warning))}
.business-scene.pw-active .pw-stage{bottom:56px}.business-scene.pw-enabled[data-scene-view="network"] .scene-map-caption{bottom:88px}
@media(max-width:700px){.pw-dock{left:8px;bottom:8px;max-width:calc(100% - 128px)}.business-scene .pw-dock button{min-height:36px;height:36px}.pw-dock [data-pw-tab]{max-width:120px}.business-scene .pw-dock [data-pw-delete]{width:36px}.business-scene.pw-active .pw-stage{bottom:62px}.business-scene .pw-nav [data-pw-new]{width:auto}}

.pw-rename{display:flex;align-items:flex-end;gap:12px}.pw-rename>label{flex:1;min-width:0;margin:0!important}.pw-rename>button{margin-bottom:0}
.pw-block-list,.pw-area-list{display:grid;gap:6px;margin:12px 0}.pw-block-row{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:8px}.pw-block-row>label{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.pw-block-row>span{flex:1;min-width:0}.pw-block-row input[type=checkbox]{min-height:0;width:18px;height:18px;flex:none}.pw-block-row button{flex:none;min-width:34px;min-height:34px;padding:3px 8px}
.pw-editor-section{margin-top:18px;border-top:1px solid var(--border);padding-top:12px}.pw-editor-section>summary{cursor:pointer;font-weight:600;padding:4px 0}.pw-nav [data-pw-editor]{white-space:nowrap}
@media(max-width:700px){.pw-rename{align-items:stretch;flex-direction:column}.pw-block-row button{min-width:40px;min-height:40px}}

.business-scene.pw-enabled[data-scene-view="network"] .scene-top-actions [data-widget-settings],.business-scene.pw-enabled[data-scene-view="network"] .scene-top-actions [data-widget-add-open]{display:none}
/* The bottom switcher floats over the canvas instead of reserving a full-width strip. */
.business-scene.pw-active .pw-stage{bottom:0}
@media(max-width:700px){.business-scene.pw-enabled[data-scene-view="network"]>.scene-heading{grid-template-columns:minmax(0,1fr) auto;gap:6px}.business-scene.pw-enabled .pw-nav{grid-column:2;grid-row:1}.business-scene.pw-enabled[data-scene-view="network"]>.scene-heading>.scene-top-actions{grid-column:1/-1;grid-row:2}}

/* Map controls are available in the single workspace settings modal. */
.business-scene.pw-enabled[data-scene-view="network"]>.scene-heading .scene-graph-tools{display:none}
.business-scene .pw-nav [data-pw-settings]{white-space:nowrap}
.pw-area-view .pw-actions{align-items:center}
@media(max-width:700px){.business-scene .pw-area-view .pw-menu-zoom{display:flex}}

/* Workspace tabs: the creation button stays visible outside the scroll strip. */
.pw-dock .pw-tabs{align-items:stretch;padding:2px}
.pw-tab-item{position:relative;display:flex;align-items:stretch;flex:none;border:1px solid var(--border);border-radius:7px;max-width:230px}
.pw-tab-item:has([aria-selected=true]){border-color:var(--accent)}
.business-scene .pw-dock .pw-tab-item :is([data-pw-tab],[data-owner-tab]){border:0;max-width:180px;min-width:0;height:38px;min-height:38px;padding-right:34px}
.business-scene .pw-dock :is([data-pw-tab="main"],[data-owner-tab]){padding-right:9px}
.business-scene .pw-dock .pw-tab-grip{flex:none;width:28px;height:38px;min-height:38px;padding:0;cursor:grab;color:var(--muted);border:0}
.business-scene .pw-dock [data-pw-delete]{position:absolute;right:0;top:0;width:32px;height:38px;min-height:38px;font-size:18px}
.business-scene .pw-dock [data-pw-add]{flex:none;width:38px;height:38px;min-height:38px;padding:0;color:var(--accent);font-size:24px}
.pw-dock button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.pw-tab-item[data-drop=before]{box-shadow:-3px 0 var(--accent)}
.pw-tab-item[data-drop=after]{box-shadow:3px 0 var(--accent)}
.pw-reordering .pw-tab-grip{cursor:grabbing}
.pw-order-list .pw-block-row>span{overflow-wrap:anywhere}
.pw-order-list button{min-height:44px;min-width:44px}
@media(max-width:700px){
 .business-scene.pw-enabled[data-scene-view="network"] .scene-map-caption{inset:auto}
 .business-scene .pw-dock .pw-tab-item :is([data-pw-tab],[data-owner-tab]){min-height:44px;height:44px;padding-right:44px;max-width:172px}
 .business-scene .pw-dock :is([data-pw-tab="main"],[data-owner-tab]){padding-right:9px}
 .business-scene .pw-dock .pw-tab-grip,.business-scene .pw-dock [data-pw-delete],.business-scene .pw-dock [data-pw-add]{width:44px;min-height:44px;height:44px}
}

/* Action labels are centred independently of scene/grid defaults. */
.business-scene .pw-dock button{display:grid;place-items:center;text-align:center;margin:0;align-self:center}
.business-scene .pw-dock .pw-tab-item :is([data-pw-tab="main"],[data-owner-tab]){padding-inline:14px}
.business-scene .pw-dock .pw-tab-item [data-pw-tab]:not([data-pw-tab="main"]){padding-inline:9px;margin-right:32px}
.business-scene .pw-dock [data-pw-tab]{display:block;align-content:center}
.business-scene .pw-dock .pw-tab-item{align-items:center}
@media(max-width:700px){.business-scene .pw-dock [data-pw-tab]:not([data-pw-tab="main"]){margin-right:44px;max-width:128px}}

/* Maximize the existing workspace without remounting its cards or forms. */
.business-scene.pw-enabled[data-scene-view]>.scene-heading{padding-right:62px}
.business-scene .pw-maximize{position:absolute;right:8px;top:8px;z-index:30;width:42px;height:42px;min-height:42px;padding:9px;display:grid;place-items:center;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--muted);cursor:pointer}
.pw-maximize svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.pw-maximize:hover{color:var(--accent);border-color:var(--accent)}.pw-maximize:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.business-scene.pw-maximized{position:fixed!important;inset:0!important;z-index:60;width:100%!important;height:100dvh!important;min-height:0!important;max-height:none!important;max-width:none!important;box-sizing:border-box;margin:0!important;padding:12px;background:var(--bg,#071315);border-radius:0;overflow:hidden}
.business-scene.pw-maximized>.scene-heading{padding-right:56px}.business-scene.pw-maximized .pw-maximize{top:12px;right:12px}
@media(max-width:700px){.business-scene.pw-maximized{padding:8px}.business-scene.pw-maximized .pw-maximize{top:8px;right:8px}}
