.economy-hud{position:absolute;z-index:30;top:20px;right:24px;display:flex;gap:10px;pointer-events:auto;font-family:Georgia,serif}
.resource-pill{min-width:150px;display:grid;gap:4px;text-align:left;padding:11px 18px;background:linear-gradient(#faf4dd,#dfd4ac);color:#344b35;border:2px solid #8e7650;border-radius:10px;box-shadow:0 3px 0 #55483055,0 5px 18px #243b2926;cursor:pointer}
.resource-pill span{font-size:10px;font-weight:bold;letter-spacing:1px}.resource-pill strong{font-size:21px}.resource-pill:hover{background:#fff9e3}.resource-pill.depleted span{color:#9c5228}
.resource-dialog{width:min(540px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px;border:5px solid #92764d;border-radius:18px;background:linear-gradient(130deg,#fff8df,#ece2c3);color:#344b35;font-family:Georgia,serif;box-shadow:0 22px 80px #122f2866;pointer-events:auto}
.resource-dialog::backdrop{background:#15342988;backdrop-filter:blur(5px)}.resource-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.resource-heading h1{font-size:27px;margin:0}.resource-close{border:0;background:#435c43;color:#fff5d4;width:34px;height:34px;border-radius:50%;font-size:24px;cursor:pointer}.resource-total{font-size:40px;margin:23px 0;font-weight:bold;color:#49683e}.resource-metrics{display:grid;grid-template-columns:1fr auto;gap:14px;font-size:15px;border-block:1px solid #9d976555;padding:20px 0}.resource-metrics dd{margin:0;font-weight:bold;text-align:right;max-width:260px}.resource-copy{font-size:14px;line-height:1.6;color:#61674e}.resource-dialog h2{font-size:19px;margin:24px 0 12px}.energy-packs{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.energy-pack{padding:15px 6px;display:grid;gap:8px;border:1px solid #445f3c;border-radius:8px;color:#fff9dd;background:#4c6c43;cursor:pointer;font-family:inherit}.energy-pack strong{font-size:20px}.energy-pack span{font-size:12px}.energy-pack:hover{background:#3a5633}.energy-pack:disabled{opacity:.5;cursor:not-allowed}.resource-note{display:block;font-size:12px;line-height:1.5;margin-top:15px;color:#697057}.resource-link{color:#3d633e;font-weight:bold;display:inline-block;margin:8px 0}.first-pc-card{position:absolute;left:50%;bottom:110px;transform:translateX(-50%);pointer-events:auto;white-space:nowrap;padding:16px 24px;border-radius:12px;border:2px solid #b69b65;background:#fff3c9;color:#365638;font:700 19px Georgia,serif;box-shadow:0 4px 22px #23433144;text-decoration:none}
.resource-pill:focus-visible,.energy-pack:focus-visible,.resource-close:focus-visible{outline:3px solid #b58327;outline-offset:3px}
@media(max-width:700px){.economy-hud{top:12px;right:12px;gap:6px}.resource-pill{padding:8px 10px;min-width:110px}.resource-pill strong{font-size:17px}.resource-pill span{font-size:8px}.resource-dialog{padding:19px}.resource-heading h1{font-size:24px}.resource-metrics{font-size:13px}.resource-metrics dd{max-width:170px}.resource-total{font-size:34px}.first-pc-card{font-size:16px;bottom:95px}.workshop-ui .return-world{top:78px}.resource-pill{border-radius:8px}}

/* Resource balances replace the duplicated top stat plaques; build stats stay in the drawer/inspector. */
.workshop-ui[data-mode=build] .bench-quick-stats{display:none}
.resource-alert{padding:10px 12px;background:#e3dfbf;border-radius:7px;font-size:14px;line-height:1.4}
@media(max-width:620px){.workshop-ui[data-mode=build] .bench-title{max-width:130px;font-size:17px;gap:4px;left:12px;top:13px;padding:8px}.workshop-ui[data-mode=build] .bench-title .bench-icon{display:none}.workshop-ui[data-mode=build] .return-world{top:117px}.workshop-ui[data-mode=build] .bench-views{top:76px}}
