@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&family=Oswald:wght@600;700&display=swap');
:root{--ink:#171914;--paper:#d8d1ba;--paper2:#e7dfc8;--field:#555b4e;--dark:#252921;--red:#88463d;--green:#526a50;--gold:#96834e;--line:#77796a}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#252821;color:var(--ink);font-family:"IBM Plex Mono",monospace}button{font:700 10px "IBM Plex Mono";letter-spacing:.08em;color:var(--ink);background:#beb8a5;border:1px solid #20231d;padding:12px 15px;box-shadow:2px 2px #1f211c;cursor:pointer}button:hover{filter:brightness(1.08);transform:translate(1px,1px);box-shadow:1px 1px #1f211c}button:focus-visible{outline:3px solid #d5bc70;outline-offset:2px}.hidden{display:none!important}#app{width:min(1440px,100vw);height:100vh;margin:auto;border-inline:2px solid #151713;background:var(--paper);position:relative}.mast{height:42px;background:#22251f;color:#b6b6a5;display:flex;align-items:center;justify-content:space-between;padding:0 22px;font-size:9px;letter-spacing:.14em}.mast span:nth-child(2){color:#74786a}.screen{height:calc(100vh - 42px)}.menu{display:grid;grid-template-columns:62% 38%;background:linear-gradient(110deg,var(--paper2) 0 62%,#929486 62%)}.menu-copy{display:flex;flex-direction:column;justify-content:center;padding:7% 11%}.eyebrow{font-size:9px;letter-spacing:.16em;font-weight:700;color:#5b5e52;margin:0}.menu h1,.panel-screen h2,.overlay h2{font:700 clamp(64px,9vw,118px)/.82 Oswald,sans-serif;margin:19px 0 27px;text-transform:uppercase}.menu h1 i{font-style:normal;color:var(--red)}.menu-copy>p:not(.eyebrow){max-width:570px;font-size:12px;line-height:1.8}.menu-actions{display:flex;gap:10px;margin:24px 0}.heavy{background:var(--dark);color:#ded8c2;min-width:220px}.menu-copy small{font-size:8px;letter-spacing:.1em;color:#626457}.menu-diagram{position:relative;align-self:center;width:min(32vw,420px);aspect-ratio:1;border:1px solid #5d6055;background:repeating-linear-gradient(0deg,transparent 0 29px,rgba(30,32,28,.11) 30px),repeating-linear-gradient(90deg,transparent 0 29px,rgba(30,32,28,.11) 30px)}.ring{position:absolute;border:1px solid #66695e;border-radius:50%;inset:18%}.r2{inset:34%}.player-mark{position:absolute;inset:46%;background:var(--dark);transform:rotate(45deg)}.menu-diagram i{position:absolute;width:12px;height:12px;border:2px solid var(--red);border-radius:50%}.menu-diagram i:nth-of-type(1){left:14%;top:23%}.menu-diagram i:nth-of-type(2){right:17%;top:30%}.menu-diagram i:nth-of-type(3){left:25%;bottom:17%}.menu-diagram i:nth-of-type(4){right:22%;bottom:24%}.menu-diagram span{position:absolute;right:12px;bottom:10px;font:700 11px Oswald;color:#5d2f2b}.panel-screen{display:grid;place-items:center;background:#696d5e;padding:40px}.paper{width:min(900px,100%);background:var(--paper2);padding:55px 65px;box-shadow:8px 10px rgba(20,22,18,.36)}.paper h2{font-size:60px}.manual-grid{display:grid;grid-template-columns:1fr 1fr;border-top:2px solid}.manual-grid>div{padding:20px;border-right:1px solid;border-bottom:1px solid}.manual-grid p{font-size:10px;line-height:1.7}.game{background:var(--field)}.hud{height:74px;background:#292d25;color:#d8d3c0;display:grid;grid-template-columns:1.2fr .8fr .65fr .8fr 1fr auto;gap:1px;padding:8px 14px}.hud>div{padding:5px 14px;border-right:1px solid #585c50}.hud small{display:block;color:#898d7e;font-size:7px;letter-spacing:.13em}.hud b{font:700 22px Oswald}.hud i{display:block;width:100%;height:5px;background:#555a4f;margin-top:4px}.hud em{display:block;height:100%;width:100%;background:#87956f}.hud .credits b{color:#d4c27d}.hud button{align-self:center}.hud kbd,.shop-shell kbd{font:inherit;border:1px solid #5f6257;padding:2px 4px;margin-left:6px}.arena-wrap{height:calc(100% - 104px);margin:0 14px;position:relative;background:#4c5247;overflow:hidden;border:1px solid #20231d}canvas{width:100%;height:100%;display:block;touch-action:none}.corner{position:absolute;width:24px;height:24px;border-color:#c9c3ad;pointer-events:none}.c1{left:8px;top:8px;border-left:2px solid;border-top:2px solid}.c2{right:8px;top:8px;border-right:2px solid;border-top:2px solid}.c3{left:8px;bottom:8px;border-left:2px solid;border-bottom:2px solid}.c4{right:8px;bottom:8px;border-right:2px solid;border-bottom:2px solid}.statusbar{height:30px;background:#292d25;color:#aeb1a0;display:flex;justify-content:space-between;align-items:center;padding:0 20px;font-size:7px;letter-spacing:.11em}.wave-notice{position:absolute;left:50%;top:18%;transform:translateX(-50%);background:var(--paper2);border:3px double var(--ink);padding:12px 24px;font:700 18px Oswald;letter-spacing:.08em}.overlay{position:absolute;inset:42px 0 0;background:rgba(24,27,22,.86);z-index:10;display:grid;place-items:center}.shop-shell{width:calc(100% - 38px);height:calc(100% - 32px);background:var(--paper);border:2px solid #171914;box-shadow:10px 12px #151713;display:grid;grid-template-rows:auto auto auto 1fr;overflow:hidden}.shop-shell>header{display:flex;align-items:center;gap:25px;padding:17px 22px;background:#282c24;color:#d4d0bd}.shop-shell h2{font-size:28px;margin:4px 0}.shop-money{margin-left:auto}.shop-money small{display:block;font-size:7px;color:#8b8e80}.shop-money b{font:700 28px Oswald;color:#d8c47d}.shop-shell>nav{display:flex;background:#4e5448;padding:8px 12px 0;gap:5px;overflow-x:auto}.branch-tab{box-shadow:none;border-bottom:0;min-width:145px;background:#a9a692}.branch-tab.active{background:var(--paper);transform:none}.branch-tab small{display:block;font-size:6px;margin-top:4px;color:#5a5c52}.shop-tools{display:grid;grid-template-columns:250px 1fr auto;align-items:center;gap:25px;border-bottom:1px solid var(--line);padding:12px 22px}.shop-tools b{font:700 20px Oswald}.shop-tools span,.shop-tools p{font-size:8px}.shop-tools div>span{display:block}.legend{display:flex;gap:13px}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:10px;height:10px;border:1px solid;background:#b6b09e}.legend i.owned{background:var(--green)}.legend i.ready{background:#d7c780}.tree-viewport{overflow:auto;background:repeating-linear-gradient(0deg,transparent 0 39px,rgba(32,34,28,.08) 40px),repeating-linear-gradient(90deg,transparent 0 39px,rgba(32,34,28,.08) 40px),#bcb6a3}.tree{position:relative;min-width:1180px;padding:24px 40px 50px;display:grid;grid-template-columns:repeat(5,210px);gap:14px 25px}.node{position:relative;min-height:104px;text-align:left;box-shadow:3px 3px #4b4e43;background:#9c9a8a;color:#55584f;padding:12px;border:1px solid #4d5046}.node:before{content:"";position:absolute;right:100%;top:50%;width:26px;border-top:1px solid #65685d}.node:nth-child(5n+1):before{display:none}.node.ready{background:#d9cca1;color:var(--ink)}.node.owned{background:#687b60;color:#f0ead5}.node:hover.ready{filter:brightness(1.06)}.node:disabled{cursor:not-allowed}.node b,.node span,.node small{display:block}.node b{font:700 15px Oswald;letter-spacing:.04em}.node span{font-size:7px;line-height:1.45;margin:5px 0}.node small{font-size:8px}.node .cost{position:absolute;right:9px;bottom:8px}.pause-card{width:min(560px,90%);background:var(--paper2);padding:55px 65px;box-shadow:9px 11px #171914;display:flex;flex-direction:column;gap:10px}.pause-card h2{font-size:75px;margin:18px 0}.failure h2{color:var(--red)}.final-stats{display:grid;grid-template-columns:repeat(3,1fr);border-block:2px solid;margin-bottom:20px}.final-stats span{font-size:7px;padding:12px}.final-stats b{display:block;font:700 24px Oswald}.touch #touchShop{display:block}#touchShop{display:none;position:absolute;right:25px;bottom:44px;border-radius:50%;width:50px;height:50px;font-size:24px}.hit{animation:hit .15s}@keyframes hit{50%{filter:sepia(1) saturate(3)}}
@media(max-width:800px){.mast span{display:none}.menu{grid-template-columns:1fr}.menu-diagram{display:none}.menu-copy{padding:9%}.menu h1{font-size:70px}.hud{grid-template-columns:1.4fr 1fr 1fr}.hud>div:nth-child(3),.hud>div:nth-child(4){display:none}.hud button{display:none}.shop-shell{width:100%;height:100%;border:0}.shop-shell>header{padding:10px}.shop-shell h2{font-size:19px}.shop-shell header .eyebrow,.shop-tools p,.legend{display:none}.shop-tools{grid-template-columns:1fr;padding:9px 13px}.branch-tab{min-width:110px}.tree{min-width:960px;grid-template-columns:repeat(5,170px);padding:18px;gap:12px 20px}.node{min-height:95px}.paper{padding:30px}.manual-grid{grid-template-columns:1fr}.panel-screen{padding:15px}.menu-actions{flex-direction:column}.statusbar span:nth-child(2){display:none}}

/* Exploratory circuit-map upgrade network */
.tree{position:relative;display:block;padding:0;width:4950px;min-width:4950px;height:1040px;background:radial-gradient(circle at 70px 510px,rgba(222,210,157,.3),transparent 240px)}.tree-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.tree-lines path{fill:none;stroke:#77786b;stroke-width:2}.tree-lines path.live{stroke:#d3bd72;stroke-width:3}.tree-lines path.done{stroke:#607557;stroke-width:4}.tree .node{position:absolute;width:158px;height:72px;min-height:0;text-align:left;box-shadow:3px 3px #4b4e43;background:#929184;color:#50534b;padding:8px 9px;border:1px solid #4d5046;transition:filter .12s,transform .12s}.tree .node:before{display:none}.tree .node.ready{background:#d9cca1;color:var(--ink);animation:nodepulse 1.8s infinite}.tree .node.owned{background:#687b60;color:#f0ead5}.tree .node.major{height:86px;width:174px;border:3px double #272a23;box-shadow:5px 5px #484b41}.tree .node.major b{font-size:16px}.tree .node.major:after{content:"WEAPON SYSTEM";position:absolute;right:7px;top:5px;font-size:5px;letter-spacing:.12em}.tree .node:hover.ready{filter:brightness(1.08);transform:translate(1px,1px)}.tree .node b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree .node span{font-size:6px;line-height:1.3;margin:3px 0;max-width:135px}.tree .node small{font-size:6px}.tree .node .cost{right:7px;bottom:5px;font-size:7px}@keyframes nodepulse{50%{box-shadow:3px 3px #4b4e43,0 0 0 3px rgba(221,199,128,.2)}}

/* Constellation skill atlas */
.tree-viewport{position:relative;overflow:hidden;cursor:grab;user-select:none;background:radial-gradient(circle at 50% 50%,rgba(201,193,159,.1),transparent 50%),repeating-linear-gradient(0deg,transparent 0 59px,rgba(32,34,28,.07) 60px),repeating-linear-gradient(90deg,transparent 0 59px,rgba(32,34,28,.07) 60px),#3c4038}.tree-viewport.dragging{cursor:grabbing}.tree{position:absolute;left:0;top:0;width:5900px;min-width:5900px;height:3650px;transform-origin:0 0;background:radial-gradient(circle at 50% 50%,rgba(220,205,145,.07),transparent 62%)}.tree-lines path{stroke:#777b6c;stroke-width:2;opacity:.55}.tree-lines path.live{stroke:#d7c477;stroke-width:3;opacity:.9}.tree-lines path.done{stroke:#829777;stroke-width:4;opacity:1}.tree .node{width:42px;height:42px;border-radius:50%;padding:0;display:grid;place-items:center;background:#5f6257;color:#bbb9a8;border:2px solid #272a24;box-shadow:2px 2px 0 #242720;overflow:visible}.tree .node b{font:700 18px Oswald;overflow:visible}.tree .node span,.tree .node>small:first-child{display:none}.tree .node .cost{right:-7px;bottom:-5px;min-width:20px;padding:2px 3px;background:#242720;color:#d8d2bd;border:1px solid #6f7266;border-radius:8px;text-align:center;font-size:7px}.tree .node.ready{background:#d8c982;color:#22251f;border-color:#eee2aa}.tree .node.owned{background:#6d8765;color:#f2ecd5;border-color:#b5c8aa}.tree .node.major{width:92px;height:92px;border-radius:50%;border:5px double #d1c084;background:#30352d;box-shadow:0 0 0 7px #51564b,0 0 0 9px #252821,5px 7px 0 rgba(20,22,18,.55)}.tree .node.major b{font-size:36px}.tree .node.major:after{content:attr(data-label);position:absolute;top:103px;left:50%;right:auto;transform:translateX(-50%);width:150px;text-align:center;color:#d8d2bd;font:700 13px Oswald;letter-spacing:.06em;text-shadow:1px 1px #222}.tree .node.major .cost{right:0;bottom:0}.discipline-core{position:absolute;width:170px;height:170px;border-radius:50%;display:grid;place-items:center;text-align:center;background:#222720;border:8px double var(--core);box-shadow:0 0 0 13px rgba(20,23,19,.62),0 0 0 15px var(--core),0 12px 35px #171914;color:#e3dcc4;z-index:2}.discipline-core b{display:block;font:700 58px Oswald;color:var(--core)}.discipline-core span{display:block;font:700 16px Oswald;letter-spacing:.1em}.discipline-core small{display:block;font-size:7px;color:#aaa998;margin-top:3px}.orbit-ring{position:absolute;border:1px solid rgba(200,196,174,.18);border-radius:50%;pointer-events:none}.map-controls{position:absolute;right:17px;bottom:17px;display:flex;align-items:center;background:#242821;border:1px solid #111;color:#d8d2bd;box-shadow:3px 3px #171914;z-index:5}.map-controls button{width:38px;height:36px;padding:0;box-shadow:none;background:#a9a794;font-size:18px}.map-controls span{font:700 9px "IBM Plex Mono";width:50px;text-align:center}.map-help{position:absolute;left:16px;bottom:16px;background:#242821;color:#aeb1a0;padding:8px 11px;font-size:7px;letter-spacing:.1em;z-index:5}.node-tooltip{position:absolute;z-index:8;width:270px;padding:14px;background:#e0d8c0;color:#171914;border:2px solid #20231d;box-shadow:5px 6px #161814;pointer-events:none}.node-tooltip .tip-head{display:flex;justify-content:space-between;gap:10px;border-bottom:2px solid;padding-bottom:7px;margin-bottom:8px}.node-tooltip b{font:700 18px Oswald}.node-tooltip em{font-style:normal;font:700 24px Oswald;color:#6f7d59}.node-tooltip p{font-size:8px;line-height:1.55;margin:6px 0}.node-tooltip small{font-size:7px;color:#686a5e}.node-tooltip .tip-cost{display:block;margin-top:8px;padding-top:7px;border-top:1px solid;font-weight:700}.tree .node:hover{z-index:4}

/* Atlas sizing override */
.tree{width:7600px;min-width:7600px;height:4700px}
.tree{width:9600px;min-width:9600px;height:6200px}
.tree{width:15000px;min-width:15000px;height:9800px}
.tree{width:17000px;min-width:17000px;height:11000px}
.shop-shell{grid-template-rows:auto auto auto auto 1fr}.shop-shell>#subTabs{display:flex;background:#343930;padding:8px 12px;gap:7px;border-top:1px solid #686b5f;border-bottom:1px solid #20231d;overflow-x:auto}.sub-tab{flex:0 0 auto;min-width:150px;padding:9px 12px;background:#777a6c;color:#e2dcc8;box-shadow:none;border-color:#20231d;text-align:left;font-size:12px}.sub-tab b{font:700 16px Oswald;display:block}.sub-tab small{font-size:10px;color:#d1cbb8;display:block;margin-top:3px}.sub-tab.active{background:#d3c9a9;color:#1d201a;outline:2px solid #9c844d;outline-offset:-2px}.sub-tab.active small{color:#4c5046}.branch-tab small{font-size:10px!important}.tree .node .cost{font-size:12px;min-width:29px;padding:3px 5px}.tree .node b{font-size:22px}.tree .node.major:after{font-size:18px;width:190px}.discipline-core small{font-size:12px}.map-help{font-size:11px;padding:10px 13px}.map-controls span{font-size:11px}.node-tooltip{width:350px}.node-tooltip p{font-size:13px}.node-tooltip small{font-size:11px}.node-tooltip .tip-cost{font-size:12px}
.shop-shell>#subTabs{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));overflow:hidden;gap:6px}.sub-tab{min-width:0;width:100%;padding:8px 6px;overflow:hidden}.sub-tab b,.sub-tab small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sub-tab b{font-size:clamp(11px,1vw,15px)}.sub-tab small{font-size:clamp(9px,.72vw,11px)}
@media(max-width:900px){.shop-shell>#subTabs{grid-template-columns:repeat(5,minmax(0,1fr));padding:6px;gap:4px}.sub-tab{padding:6px 4px}.sub-tab b{font-size:11px}.sub-tab small{font-size:9px}}
canvas{cursor:crosshair}

/* Readability pass */
button{font-size:12px;line-height:1.25}.mast{font-size:11px}.eyebrow{font-size:11px}.menu-copy>p:not(.eyebrow){font-size:15px;line-height:1.75}.menu-copy small{font-size:10px;line-height:1.6}.manual-grid b{font-size:13px}.manual-grid p{font-size:12px;line-height:1.65}.hud small{font-size:9px;color:#b7baa9}.hud b{font-size:25px}.statusbar{font-size:9px;color:#d0d2c1}.shop-money small{font-size:9px}.branch-tab{font-size:12px}.branch-tab small{font-size:8px;line-height:1.4}.shop-tools b{font-size:23px}.shop-tools span,.shop-tools p{font-size:10px;line-height:1.5}.legend span{font-size:9px}.map-help{font-size:9px}.discipline-core small{font-size:9px}.tree .node .cost{font-size:9px;min-width:24px}.tree .node.major:after{font-size:15px}.node-tooltip{width:310px;padding:17px}.node-tooltip b{font-size:21px}.node-tooltip p{font-size:11px;line-height:1.6}.node-tooltip small{font-size:9px;line-height:1.5}.node-tooltip .tip-cost{font-size:10px}.final-stats span{font-size:9px}.wave-notice{font-size:21px}

.chassis-select{margin:18px 0 4px}.chassis-select>span{display:block;font-size:10px;font-weight:700;letter-spacing:.12em;margin-bottom:8px}.chassis-select>div{display:flex;gap:7px}.chassis{width:45px;height:42px;min-width:0;padding:0;font:700 20px Oswald;box-shadow:2px 2px #393c34}.chassis.active{background:#33382f;color:#e8e0c8;outline:3px solid #8b493f;outline-offset:2px}.chassis-select>b{display:block;margin-top:9px;font-size:10px;color:#606357}.defense-hud{padding-top:2px!important}.defense-hud b{line-height:1}.defense-hud .shield-label{margin-top:5px;color:#9eb9bd}.hud .shield-track{margin-top:2px;background:#465055}.hud .shield-track em{background:#8fb9c2}.hud .shield-track.off{opacity:.28}

/* Final atlas readability floor */
.branch-tab small{font-size:10px!important}.tree .node .cost{font-size:12px!important;min-width:29px!important;padding:3px 5px!important}.tree .node b{font-size:22px}.tree .node.major:after{font-size:18px!important;width:190px!important}.discipline-core small{font-size:12px!important}.map-help{font-size:11px!important;padding:10px 13px!important}.map-controls span{font-size:11px!important}.node-tooltip{width:350px!important}.node-tooltip p{font-size:13px!important}.node-tooltip small{font-size:11px!important}.node-tooltip .tip-cost{font-size:12px!important}

/* Clear purchasing and live build telemetry */
.hud{grid-template-columns:1.25fr .68fr .58fr .72fr .82fr auto auto}.hud>button{padding:10px 12px}.tree .node .cost{right:-15px!important;bottom:-12px!important;min-width:48px!important;padding:5px 7px!important;background:#171a16!important;color:#f2df91!important;border:2px solid #d1bd71!important;border-radius:4px!important;font:700 13px Oswald!important;box-shadow:2px 2px #111}.tree .node.owned .cost{min-width:30px!important;color:#e9eedc!important;border-color:#9db18f!important}.node-tooltip{left:auto!important;right:18px!important;top:18px!important;width:min(430px,calc(100% - 36px))!important;padding:20px!important;background:#eee5ca!important;border:3px double #20231d!important;box-shadow:7px 8px rgba(14,16,13,.72)!important}.node-tooltip .tip-head{align-items:center}.node-tooltip .tip-head b{font-size:25px!important}.node-tooltip .tip-head em{white-space:nowrap}.node-tooltip p{font-size:14px!important;line-height:1.65!important}.node-tooltip .tip-cost{margin-top:13px!important;padding:12px!important;background:#252921;color:#f1dda0;border:0!important;font:700 19px Oswald!important;letter-spacing:.05em}.shop-shell>header #shopStatsBtn{margin-left:0}
.stats-shell{width:calc(100% - 46px);height:calc(100% - 38px);background:var(--paper);border:2px solid #171914;box-shadow:10px 12px #151713;display:grid;grid-template-rows:auto auto 1fr;overflow:hidden}.stats-shell>header{display:flex;align-items:center;gap:20px;padding:18px 24px;background:#282c24;color:#d4d0bd}.stats-shell h2{font-size:30px;margin:4px 0}.stats-shell>header button{margin-left:auto}.stats-summary{display:grid;grid-template-columns:repeat(3,1fr);background:#4c5247;color:#ded8c2;border-bottom:2px solid #252921}.stats-summary>div{padding:13px 22px;border-right:1px solid #74786a}.stats-summary small{display:block;font-size:9px;color:#b7baa9}.stats-summary b{font:700 25px Oswald;color:#e0cc83}.stats-content{display:grid;grid-template-columns:minmax(320px,.78fr) 1.5fr;gap:0;min-height:0}.stats-content>section{padding:20px;overflow:auto}.stats-content>section+section{border-left:2px solid #77796a;background:#c8c1ab}.stats-content h3{font:700 22px Oswald;margin:0 0 12px}.stats-help{font-size:11px;line-height:1.55;margin:0 0 14px}.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.stat-row{display:flex;justify-content:space-between;gap:8px;padding:8px 9px;background:#e9e1c9;border:1px solid #9a998b;font-size:10px}.stat-row b{font:700 13px Oswald}.synergy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.synergy-card{padding:11px 12px;background:#a8a698;color:#575a51;border:1px solid #77796a}.synergy-card.active{background:#4e654d;color:#f0ead5;border-color:#263424}.synergy-card header{display:flex;justify-content:space-between;gap:8px}.synergy-card b{font:700 15px Oswald}.synergy-card em{font-style:normal;font-size:9px;color:#7a3c35}.synergy-card.active em{color:#e5d07e}.synergy-card p{font-size:9px;line-height:1.45;margin:6px 0}.synergy-card small{font-size:8px;display:block}
@media(max-width:900px){.stats-shell{width:100%;height:100%;border:0}.stats-content{grid-template-columns:1fr}.stats-content>section+section{border-left:0;border-top:2px solid}.stats-content>section{min-height:0}.synergy-grid{grid-template-columns:1fr}.stats-summary>div{padding:9px}.stats-summary b{font-size:18px}.hud{grid-template-columns:1.4fr 1fr 1fr}.node-tooltip{right:8px!important;top:8px!important;width:calc(100% - 16px)!important}}

/* Compact telemetry, shop module tab, and themed overflow */
*{scrollbar-width:thin;scrollbar-color:#938354 #292d25}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-track{background:#292d25;border-left:1px solid #171914}*::-webkit-scrollbar-thumb{background:#938354;border:2px solid #292d25;border-radius:0}*::-webkit-scrollbar-thumb:hover{background:#c0aa65}*::-webkit-scrollbar-corner{background:#292d25}
.shop-shell{grid-template-rows:auto auto auto auto auto 1fr}.shop-view-tabs{display:grid!important;grid-template-columns:1fr 1fr;padding:0!important;gap:0!important;overflow:hidden!important;background:#20231d!important}.shop-view-tabs button{box-shadow:none;border:0;border-right:1px solid #20231d;background:#777a6c;color:#e2dcc8;padding:10px}.shop-view-tabs button.active{background:#d8d1ba;color:#171914;box-shadow:inset 0 -4px #96834e}.shop-view-tabs span{margin-left:8px;color:#574d31}.module-panel{grid-row:3/-1;min-height:0;overflow:auto;padding:20px 24px;background:#c8c1ab}.module-panel>header{display:flex;align-items:end;justify-content:space-between;border-bottom:2px solid #77796a;padding-bottom:10px}.module-panel h3{font:700 30px Oswald;margin:2px 0}.module-panel>header>b{font:700 20px Oswald;color:#526a50}.module-panel>p{font-size:11px;line-height:1.55}.module-panel .synergy-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stats-shell{width:min(1180px,calc(100% - 46px));height:auto;max-height:calc(100% - 38px)}.stats-shell h2{font-size:27px}.stats-shell>header{padding:13px 20px}.stats-summary>div{padding:9px 18px}.stats-summary b{font-size:21px}.stats-content{display:block;min-height:0}.stats-content>section{padding:14px 18px;overflow:hidden}.stats-content h3{font-size:18px;margin-bottom:9px}.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.stat-row{padding:6px 7px;font-size:9px;min-height:32px;align-items:center}.stat-row b{font-size:12px;white-space:nowrap}
@media(max-width:1100px){.module-panel .synergy-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-content>section{overflow:auto}}
@media(max-width:700px){.module-panel .synergy-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-shell{height:100%;max-height:none;width:100%}.stats-content>section{overflow:auto}.shop-view-tabs button{font-size:10px;padding:8px 4px}}

/* Keep prices outside node symbols */
.tree .node .cost{top:50px!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%);z-index:3}.tree .node.major .cost{top:76px!important}.tree .node.major:after{top:112px!important}

/* Readable subsection directory: two rows instead of truncated labels */
.shop-shell>#subTabs{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;padding:7px 10px!important}.sub-tab{min-height:62px!important;padding:8px 10px!important;display:flex!important;flex-direction:column;justify-content:center}.sub-tab b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:14px!important;line-height:1.22;min-height:34px}.sub-tab small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:10px!important;line-height:1.2;margin-top:3px}
@media(max-width:900px){.shop-shell>#subTabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sub-tab{min-height:54px!important}.sub-tab b{font-size:12px!important;min-height:29px}.sub-tab small{font-size:9px!important}}
