.gsj-navigation-overlay { position:fixed; inset:18px; z-index:1050; background:#fff; border:1px solid #d6ddeb; border-radius:18px; box-shadow:0 20px 90px #17203355; overflow:hidden; }
.gsj-navigation { display:flex; flex-direction:column; height:100%; color:#172033; background:#f8fafc; font:14px/1.5 system-ui,sans-serif; }
.gsj-navigation-header { display:flex; align-items:center; justify-content:space-between; padding:18px 24px; background:white; border-bottom:1px solid #d6ddeb; }
.gsj-navigation h2 { margin:0; font-size:21px; font-weight:700; }
.gsj-navigation h3 { font-size:16px; }
.gsj-navigation p { margin:4px 0 0; color:#526175; }
.gsj-navigation button { min-height:34px; border:1px solid #cbd5e1; border-radius:6px; padding:6px 12px; background:white; color:#234535; font-weight:600; cursor:pointer; }
.gsj-navigation button:hover { background:#eaf5ef; }
.gsj-navigation button:disabled { opacity:.55; cursor:wait; }
.gsj-navigation :focus-visible { outline:3px solid #247a53; outline-offset:2px; }
.gsj-navigation [hidden] { display:none !important; }
.gsj-navigation-toolbar,.gsj-navigation-editor-tools { display:flex; flex-wrap:wrap; align-items:end; gap:8px; padding:12px 20px; border-bottom:1px solid #d6ddeb; }
.gsj-navigation-tabs { display:flex; flex:1; overflow:auto; gap:8px; }
.gsj-navigation-tabs [aria-selected=true],.gsj-navigation [data-nav-save] { background:#17653d; color:white; border-color:#17653d; }
.gsj-navigation-status { padding:0 20px; min-height:24px; color:#9b2c27; }
.gsj-navigation-body { display:flex; flex:1; min-height:0; }
.gsj-navigation-viewport { overflow:auto; flex:1; min-width:0; padding:16px; }
.gsj-navigation-canvas { position:relative; min-width:100%; width:1200px; height:750px; overflow:hidden; contain:layout paint; isolation:isolate; border:1px solid #dce4ec; border-radius:12px; background:#fff; background-image:radial-gradient(#dce4ec 1px,transparent 1px); background-size:20px 20px; }
.gsj-navigation-canvas .hBplus-BoxShape { position:absolute; display:flex; align-items:center; justify-content:center; min-width:100px; min-height:70px; width:180px; height:100px; background:#fff; border:1px solid #b8cbd0; border-radius:12px; padding:12px; color:#172033; cursor:pointer; box-sizing:border-box; box-shadow:0 3px 12px #17203312; }
.gsj-navigation-canvas .hBplus-BoxCon { display:flex; flex-direction:column; align-items:center; gap:8px; }
.gsj-navigation-canvas .hBplus-BoxImg img { width:40px; height:40px; object-fit:contain; }
.gsj-navigation-canvas label { white-space:normal; overflow-wrap:anywhere; }
.gsj-navigation-canvas .ui-resizable-handle { display:none; }
.gsj-navigation-properties { width:280px; flex:0 0 280px; padding:18px; overflow:auto; background:#fff; border-left:1px solid #d6ddeb; }
.gsj-navigation label { display:flex; flex-direction:column; gap:4px; font-size:12px; font-weight:600; }
.gsj-navigation-properties label { margin:10px 0; }
.gsj-navigation input,.gsj-navigation select { width:100%; min-width:0; min-height:34px; border:1px solid #cbd5e1; border-radius:6px; background:white; padding:5px 8px; color:#172033; }
.gsj-navigation-dimensions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.gsj-navigation-canvas .gsj-nav-selected { outline:3px solid #247a53; outline-offset:3px; }
.gsj-navigation-canvas .gsj-nav-resize { position:absolute; right:0; bottom:0; width:16px; height:16px; background:#247a53; cursor:nwse-resize; border-radius:4px; touch-action:none; }
.gsj-navigation[data-editing=true] .hBplus-BoxShape,.gsj-navigation[data-editing=true] .gsj-nav-object { touch-action:none; cursor:move; }
.gsj-navigation-actions { max-width:440px; border:1px solid #cbd5e1; border-radius:14px; padding:24px; }
.gsj-navigation-actions::backdrop { background:#17203355; }
.gsj-navigation-actions div { display:grid; gap:8px; margin:16px 0; }
.gsj-navigation-return { position:fixed; right:20px; bottom:20px; z-index:1000; border:1px solid #17653d; border-radius:8px; background:#fff; color:#17653d; padding:10px 16px; box-shadow:0 4px 16px #17203322; }
@media(max-width:767px) { .gsj-navigation-overlay{inset:4px;} .gsj-navigation-header{padding:12px;} .gsj-navigation-body{flex-direction:column;} .gsj-navigation-properties{width:auto;flex:0 0 220px;border-left:0;border-top:1px solid #d6ddeb;} .gsj-navigation-toolbar,.gsj-navigation-editor-tools{padding:8px;} .gsj-navigation-viewport{min-height:180px;} }
/* Legacy canvas shapes retain their saved geometry without importing editor globals. */
.gsj-navigation-canvas .hBplus-TextBox { position:absolute; display:flex; align-items:center; justify-content:center; }
.gsj-navigation-canvas .hBplus-HLine { position:absolute; width:100px; height:3px; background:#444; }
.gsj-navigation-canvas .hBplus-VLine { position:absolute; width:3px; height:100px; background:#444; }
.gsj-navigation-canvas .hBplus-Diamond { position:absolute; width:80px; height:80px; }
.gsj-navigation-canvas .class-condition { width:100%; height:100%; border:1px solid #64748b; background:#fff; }.gsj-navigation-canvas .hBplus-HLine::before,.gsj-navigation-canvas .hBplus-HLine::after,.gsj-navigation-canvas .hBplus-VLine::before,.gsj-navigation-canvas .hBplus-VLine::after { content:""; position:absolute; border:6px solid transparent; }
.gsj-navigation-canvas .hBplus-HLine::before { display:var(--displaybefore,none); left:-10px; top:-4px; border-right-color:#444; }
.gsj-navigation-canvas .hBplus-HLine::after { display:var(--displayafter,none); right:-10px; top:-4px; border-left-color:#444; }
.gsj-navigation-canvas .hBplus-VLine::before { display:var(--displaybefore,none); top:-10px; left:-4px; border-bottom-color:#444; }
.gsj-navigation-canvas .hBplus-VLine::after { display:var(--displayafter,none); bottom:-10px; left:-4px; border-top-color:#444; }
.gsj-navigation-field { display:flex; flex-direction:column; gap:4px; margin:10px 0; font-size:12px; font-weight:600; }

/* LYR visual skin. Preserve saved geometry so connectors retain their endpoints. */
.gsj-navigation { color:#101c50; background:#f5f9ff; font-family:Arial,sans-serif; }
.gsj-navigation-overlay { border:7px solid #e4edfa; border-radius:14px; background:#f5f9ff; }
.gsj-navigation-header { padding:12px 20px; background:#f5f9ff; border-bottom:0; }
.gsj-navigation h2 { font-size:16px; color:#172c57; }
.gsj-navigation-header p { font-size:12px; color:#667ba4; }
.gsj-navigation-status:empty { display:none; }
.gsj-navigation-toolbar { align-items:center; margin:0 16px 8px; padding:8px 12px; border:1px solid #e8efff; border-radius:14px; background:#f6f9ff; box-shadow:0 5px 17px rgb(29 61 112 / 6%); }
.gsj-navigation button { color:#101c50; border-color:#e0e8f7; }
.gsj-navigation button:hover { background:#eaf2ff; color:#006aff; }
.gsj-navigation :focus-visible { outline-color:#006aff; }
.gsj-navigation-tabs { gap:8px; }
.gsj-navigation-tabs button { flex:1 0 auto; display:flex; align-items:center; justify-content:center; gap:16px; min-height:56px; padding:10px 20px; background:transparent; border:0; border-bottom:3px solid transparent; border-radius:12px; text-transform:capitalize; font-size:13px; }
.gsj-navigation-tabs [aria-selected=true] { background:#deebff; color:#006aff; border-bottom-color:#087aff; }
.gsj-navigation [data-nav-save] { background:#006aff; border-color:#006aff; color:white; }
.gsj-navigation-viewport { background:#f5f9ff; padding:24px; }
.gsj-navigation-canvas { border:0; border-radius:0; background:radial-gradient(ellipse at center,#fff 15%,#f4f8ff 100%); }
.gsj-navigation-canvas::before,.gsj-navigation-canvas::after { content:''; position:absolute; width:240px; height:150px; background:repeating-conic-gradient(#dce8fb80 0% 25%,transparent 0% 50%) 0 / 72px 60px; transform:skew(-32deg) rotate(-12deg); z-index:-1; pointer-events:none; }
.gsj-navigation-canvas::before { top:20px; right:30px; }
.gsj-navigation-canvas::after { bottom:20px; left:30px; }
.gsj-navigation-canvas .hBplus-BoxShape { --nav-color:#006aff; --nav-tint:#edf3ff; width:195px; height:110px; min-width:100px; min-height:70px; padding:14px 12px!important; background:#ffffffed!important; border:1px solid #e9eff9!important; border-left:4px solid var(--nav-color)!important; border-radius:12px!important; box-shadow:0 5px 17px rgb(29 61 112 / 8%); color:#101c50!important; text-align:left; transition:box-shadow .2s; }
.gsj-navigation-canvas .hBplus-BoxShape[data-nav-tone=red] { --nav-color:#ff1336; --nav-tint:#fff0f3; }
.gsj-navigation-canvas .hBplus-BoxShape[data-nav-tone=orange] { --nav-color:#ffa000; --nav-tint:#fff6e9; }
.gsj-navigation-canvas .hBplus-BoxShape[data-nav-tone=purple] { --nav-color:#7525ff; --nav-tint:#f3edff; }
.gsj-navigation-canvas .hBplus-BoxShape:hover { box-shadow:0 6px 20px rgb(29 61 112 / 16%); }
.gsj-navigation-canvas .hBplus-BoxShape > :not(.gsj-nav-skin):not(.gsj-nav-resize) { display:none!important; }
.gsj-nav-skin { display:flex; align-items:center; gap:10px; width:100%; height:100%; pointer-events:none; }
.gsj-nav-icon-tile { display:flex; align-items:center; justify-content:center; width:42px; height:52px; flex:0 0 42px; border-radius:14px; color:var(--nav-color); background:var(--nav-tint); }
.gsj-nav-glyph { display:inline-block; flex-shrink:0; width:26px; height:26px; background:currentColor; mask:var(--nav-icon) center / contain no-repeat; -webkit-mask:var(--nav-icon) center / contain no-repeat; }
.gsj-nav-card-copy { display:flex; flex-direction:column; min-width:0; gap:6px; }
.gsj-nav-card-copy strong { color:#101c50; font:600 11px/1.4 Arial,sans-serif; overflow-wrap:anywhere; }
.gsj-nav-card-copy > span { color:#647ba7; font:10px/1.5 Arial,sans-serif; }
.gsj-navigation-canvas .hBplus-BoxShape[data-nav-marker] { border:0!important; border-radius:24px!important; color:white!important; background:linear-gradient(120deg,#08ad34,#008a29)!important; }
.gsj-navigation-canvas .hBplus-BoxShape[data-nav-marker=end] { background:linear-gradient(120deg,#d82235,#b91c2a)!important; }
.gsj-navigation-canvas .hBplus-BoxShape[data-nav-marker] > :not(.gsj-nav-resize) { display:flex!important; }
.gsj-navigation-canvas .hBplus-BoxShape[data-nav-marker] img { display:none!important; }
.gsj-navigation-canvas .gsj-nav-selected { outline-color:#006aff; }
.gsj-navigation-canvas .gsj-nav-resize { background:#006aff; }
.gsj-navigation-return { color:#006aff; border-color:#d8e5fa; }
@media(max-width:767px) { .gsj-navigation-toolbar{margin:0 6px 6px; padding:6px;} .gsj-navigation-tabs{flex-basis:100%;} .gsj-navigation-tabs button{min-height:48px; padding:8px 14px; gap:10px;} .gsj-navigation-viewport{padding:12px;} .gsj-navigation-overlay{border-width:3px;} }
@media(prefers-reduced-motion:reduce) { .gsj-navigation-canvas .hBplus-BoxShape { transition:none; } }
.gsj-nav-icon-bank2 { --nav-icon:url("../images/navigation-skin/bank2.svg"); }
.gsj-nav-icon-box-arrow-left { --nav-icon:url("../images/navigation-skin/box-arrow-left.svg"); }
.gsj-nav-icon-box-seam-fill { --nav-icon:url("../images/navigation-skin/box-seam-fill.svg"); }
.gsj-nav-icon-calculator { --nav-icon:url("../images/navigation-skin/calculator.svg"); }
.gsj-nav-icon-cart3 { --nav-icon:url("../images/navigation-skin/cart3.svg"); }
.gsj-nav-icon-cash-coin { --nav-icon:url("../images/navigation-skin/cash-coin.svg"); }
.gsj-nav-icon-cash-stack { --nav-icon:url("../images/navigation-skin/cash-stack.svg"); }
.gsj-nav-icon-clipboard2-check-fill { --nav-icon:url("../images/navigation-skin/clipboard2-check-fill.svg"); }
.gsj-nav-icon-file-earmark-check-fill { --nav-icon:url("../images/navigation-skin/file-earmark-check-fill.svg"); }
.gsj-nav-icon-file-earmark-text-fill { --nav-icon:url("../images/navigation-skin/file-earmark-text-fill.svg"); }
.gsj-nav-icon-fuel-pump-fill { --nav-icon:url("../images/navigation-skin/fuel-pump-fill.svg"); }
.gsj-nav-icon-gear { --nav-icon:url("../images/navigation-skin/gear.svg"); }
.gsj-nav-icon-journal-text { --nav-icon:url("../images/navigation-skin/journal-text.svg"); }
.gsj-nav-icon-percent { --nav-icon:url("../images/navigation-skin/percent.svg"); }
.gsj-nav-icon-receipt { --nav-icon:url("../images/navigation-skin/receipt.svg"); }
.gsj-nav-icon-shield-check { --nav-icon:url("../images/navigation-skin/shield-check.svg"); }
.gsj-nav-icon-tags-fill { --nav-icon:url("../images/navigation-skin/tags-fill.svg"); }
.gsj-nav-icon-truck { --nav-icon:url("../images/navigation-skin/truck.svg"); }
.gsj-nav-icon-wallet2 { --nav-icon:url("../images/navigation-skin/wallet2.svg"); }
