.miner-workbench{--bench-ink:#694b2e;color:var(--bench-ink);display:grid;grid-template-columns:minmax(0,1.45fr) minmax(220px,.8fr);gap:24px;align-items:center;padding:6px 0}
.bench-stage{position:relative;min-width:0;align-self:stretch;display:grid;place-items:center}
.bench-scene{position:relative;width:100%;aspect-ratio:5/6;max-height:530px;overflow:hidden;isolation:isolate;border-radius:24px;background:radial-gradient(ellipse at 48% 78%,#d2aa6538,transparent 67%)}
.bench-camera{position:absolute;inset:0;transform-origin:0 0;will-change:transform}
.bench-miner{position:absolute;inset:0 20% 0 0;pointer-events:none}
.bench-art{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.bench-held-tool,.bench-flask,.bench-amulet{filter:drop-shadow(0 4px 3px #392a242d)}
.bench-spots{position:absolute;inset:0;pointer-events:none}
.bench-spot{position:absolute;transform:translate(-50%,-50%);display:grid;place-content:center;min-width:48px;min-height:48px;padding:0;border:0;background:none!important;touch-action:manipulation;pointer-events:auto;cursor:pointer}
.bench-spot i{width:12px;height:12px;border:2px solid #fff2cd;border-radius:50%;background:#b78845;box-shadow:0 0 0 6px #d8b46d40,0 2px 8px #38220e40;transition:box-shadow .2s}
.bench-spot span{position:absolute;left:50%;top:46px;transform:translate(-50%,3px);border-radius:8px;padding:5px 8px;font:14px/1.1 Quarry,Impact,sans-serif;color:#f9efd4;background:#634c32f0;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}
.bench-spot:hover span,.bench-spot:focus-visible span{opacity:1;transform:translate(-50%,0)}
.bench-spot:hover i{box-shadow:0 0 0 9px #d8b46d70}
.bench-spot:focus-visible{outline:2px solid #af783a;outline-offset:0;border-radius:50%}
.bench-spot[hidden],.miner-workbench [hidden]{display:none!important}
.bench-react{position:absolute;inset:0 20% 0 0;background:none!important;border:0;cursor:pointer;clip-path:polygon(20% 0,85% 0,98% 50%,98% 100%,2% 100%,2% 50%);touch-action:manipulation}
.bench-react:focus-visible{outline:2px solid #b78948;outline-offset:-5px;border-radius:25%}
.bench-back{position:absolute;left:8px;top:8px;z-index:3;min-height:40px;border:1px solid #c6ad7e9c;border-radius:22px;padding:8px 15px;background:#f6edd8ec;color:#785734;font:16px Quarry,Impact,sans-serif;cursor:pointer}
.bench-back:hover{background:#ead5b3}
.bench-preview-badge{position:absolute;bottom:6px;right:12px;font:12px 'Trebuchet MS',sans-serif;color:#795c37;pointer-events:none}
.bench-controls{min-width:0;padding:8px 0}
.bench-overview h3{font:40px/1.05 Quarry,Impact,sans-serif;margin:0 0 12px}
.bench-overview p,.bench-choice p{font:15px/1.45 'Trebuchet MS',sans-serif;color:#856b4b;margin:0 0 12px}
.bench-choice h4{font:32px/1.07 Quarry,Impact,sans-serif;margin:6px 0 8px;text-wrap:balance}
.bench-level{font:13px/1.4 'Trebuchet MS',sans-serif;color:#9c7f58}
.bench-level:empty,.bench-choice p:empty{display:none}
.bench-benefit{display:inline-block;margin:1px 0 14px;padding:7px 11px;border-radius:10px;background:#ded7ab80;color:#5c622f;font:15px/1.3 'Trebuchet MS',sans-serif;font-weight:600}
.wearable-bonus{display:inline-flex;align-items:center;gap:8px;color:#6b713d;vertical-align:middle}.wearable-bonus svg{width:25px;height:25px;flex:none}.wearable-bonus b{font:23px/1 Quarry,Impact,sans-serif;font-weight:400}.wearable-bonus[data-perk=power]{color:#a55433}.wearable-bonus[data-perk=rhythm]{color:#78658e}.bench-item{position:relative}.bench-item .wearable-bonus-mini{position:absolute;right:2px;bottom:2px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#f6ebd2;box-shadow:0 1px 2px #4f38262b;pointer-events:none}.bench-item .wearable-bonus-mini svg{width:17px;height:17px}.bench-benefit:has(.wearable-bonus){background:#ede1bf;padding:8px 13px}
.miner-workbench[data-selected=tattoos] .bench-item{background:#e8d2ae88}.miner-workbench[data-selected=tattoos] .bench-item>svg{height:54px;width:54px;filter:none}.miner-workbench[data-selected=tattoos] .bench-item[aria-pressed=true]{background:#dec195}.bench-tattoo{pointer-events:none}
.bench-buy{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;min-height:58px;width:100%;padding:12px 16px;border:1px solid #aa8149;border-bottom:3px solid #896538;border-radius:15px;background:#dfbd7e;color:#513a21;cursor:pointer}
.bench-buy strong{font:25px/1 Quarry,Impact,sans-serif}
.bench-buy small{font:13px 'Trebuchet MS',sans-serif}
.bench-buy:disabled{opacity:.55;cursor:default}
.bench-buy:active:not(:disabled){transform:translateY(1px)}
.bench-compare{display:block;min-height:40px;width:100%;color:#795631;font:16px Quarry,Impact,sans-serif;border:1px solid #c6ad7e80;border-radius:12px;background:#eadbb930;margin:8px 0;cursor:pointer}
.bench-compare[aria-pressed=true]{background:#e2c999}
.bench-result{font:13px 'Trebuchet MS',sans-serif;color:#98613a;min-height:16px;margin:8px 0 0}
.bench-options{display:flex;overflow-x:auto;gap:7px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#b59d75 transparent;padding:4px 0 8px;margin:8px 0 12px}
.bench-item{flex:0 0 66px;min-width:0;display:grid;place-items:center;border:1px solid transparent;border-radius:13px;background:#eadbbc65;padding:5px;color:#755331;min-height:76px;scroll-snap-align:start;cursor:pointer}
.bench-item img,.bench-item>svg{width:54px;height:64px;object-fit:contain;filter:drop-shadow(0 2px 2px #52311925)}
.bench-item[aria-pressed=true]{border-color:#a87938;background:#ead0a0}
.bench-footwear{pointer-events:none;filter:drop-shadow(0 3px 2px #46322024)}.miner-workbench[data-selected=footwear] .bench-item{flex-basis:80px;min-height:78px}.miner-workbench[data-selected=footwear] .bench-item img{width:70px;height:64px}.wearable-bonus[data-perk=energy]{color:#a67b2e}
.bench-flask-upgrade{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px;border:1px solid #d1ba8d;border-radius:16px;background:#e9dcbf;padding:12px;margin:7px 0 12px}.flask-capacity{display:flex;align-items:baseline;gap:7px;color:#805a2f}.flask-capacity>svg{width:24px;height:26px;align-self:center;color:#b18337}.flask-capacity b{font:35px/1 Quarry,Impact,sans-serif;font-weight:400}.flask-capacity small{font:19px/1.1 Quarry,Impact,sans-serif;color:#9c8158}.flask-quality{grid-column:1;display:grid;gap:5px;color:#9c8158}.flask-quality>span{font:11px/1.3 'Trebuchet MS',sans-serif}.flask-quality>div{display:flex;gap:3px}.flask-quality i{width:10px;height:4px;border-radius:3px;background:#d0bf9f}.flask-quality i[data-filled=true]{background:#aa8345}.flask-level-up{grid-column:2;grid-row:1/3;display:grid;justify-items:center;align-content:center;gap:7px;min-width:102px;min-height:74px;padding:9px 12px;border:1px solid #af884a;border-bottom-width:3px;border-radius:12px;background:#ddbd7f;color:#674923;cursor:pointer}.flask-level-up strong{display:flex;align-items:center;gap:3px}.flask-level-up strong b{font:28px/1 Quarry,Impact,sans-serif;font-weight:400}.flask-level-up strong svg{width:21px;height:23px}.flask-level-up small{display:flex;align-items:center;gap:5px;font:13px/1 'Trebuchet MS',sans-serif}.flask-level-up small svg{width:18px;height:18px}.flask-level-up:disabled{opacity:.5;cursor:default}.flask-level-up:active:not(:disabled){translate:0 1px}.flask-level-up:focus-visible{outline:2px solid #825726;outline-offset:3px}
@media(max-width:650px){.bench-flask-upgrade{padding:10px;gap:7px 10px}.flask-capacity b{font-size:31px}.flask-capacity small{font-size:18px}.flask-level-up{min-height:68px;min-width:95px}.miner-workbench[data-selected=footwear] .bench-item{flex-basis:68px;min-height:68px}.miner-workbench[data-selected=footwear] .bench-item img{width:57px;height:56px}}
.bench-item:active{background:#dcc190}.bench-item:focus-visible,.bench-modes button:focus-visible,.bench-buy:focus-visible,.bench-compare:focus-visible{outline:2px solid #825726;outline-offset:3px}
.bench-bare{display:grid;place-content:center;height:64px;font:16px Quarry,Impact,sans-serif;color:#94764f}
.bench-modes{display:flex;gap:3px;padding:3px;border:1px solid #d1bc94;border-radius:12px;margin:0 0 16px}
.bench-modes button{flex:1;min-height:38px;border:0;background:transparent;border-radius:8px;font:16px Quarry,Impact,sans-serif;color:#8a6e46;cursor:pointer}
.bench-modes button[aria-pressed=true]{background:#e3c99b;color:#604321}
.bench-family{width:100%;min-height:36px;border:1px solid #c6ad7e;border-radius:8px;background:#f1e5cb;color:#795631;font:15px 'Trebuchet MS',sans-serif;padding:5px 8px}
.workshop-dialog #panel-build>.upgrade[hidden],.workshop-dialog #panel-build>.starter-item[hidden],.workshop-dialog #next-objective{display:none!important}
.quarry-page .era-stamp{display:flex;align-items:center;gap:12px}
.quarry-page .mine-top{padding-block:11px}.quarry-page .era-stamp #era-number{display:block!important;font:30px/1 Quarry,Impact,sans-serif;color:var(--accent)}.quarry-page .era-stamp small{display:none}.quarry-page .era-stamp h2{font:21px/1.1 Quarry,Impact,sans-serif!important}.quarry-page .resource-line #balance{font-size:36px!important}.quarry-page .age-trail{border:0;background:linear-gradient(100deg,#e7d7b5aa,transparent);min-height:48px;box-shadow:none}.quarry-page .age-trail .trail-icon{width:32px;height:32px}.quarry-page .age-trail .trail-copy strong{font-size:20px}
@media(min-width:1000px){.workshop-dialog{width:min(1000px,calc(100% - 48px));max-width:none}.quarry-page .page{max-width:1680px;padding-inline:24px}}
@media(min-width:651px){.bench-scene{height:min(510px,calc(100svh - 300px));min-height:310px;width:auto;max-width:100%}}
@media(max-width:650px){.workshop-dialog{max-height:calc(100svh - 16px)}.miner-workbench{grid-template-columns:minmax(0,1fr);gap:6px;padding:0}.bench-scene{height:clamp(260px,calc(100svh - 430px),390px);width:auto;max-width:100%}.miner-workbench[data-selected=all] .bench-scene{height:clamp(300px,calc(100svh - 300px),480px)}.bench-stage{width:100%}.bench-controls{padding:0}.bench-overview{text-align:center}.bench-overview h3{font-size:27px;margin:4px 0}.bench-overview p{font-size:13px;margin:6px 0}.bench-choice h4{font-size:27px;margin:3px 0 7px}.bench-choice p{font-size:13px;margin:6px 0 8px}.bench-level{font-size:12px}.bench-options{margin:5px 0 9px}.bench-item{flex-basis:58px;min-height:65px;border-radius:10px}.bench-item img,.bench-item>svg,.bench-bare{height:56px;width:48px}.bench-modes{margin-bottom:8px}.bench-buy{min-height:53px}.bench-result{margin:5px 0 0}.bench-back{font-size:14px;left:0;top:4px}}
@media(prefers-reduced-motion:reduce){.bench-spot i,.bench-spot span{transition:none}.bench-camera{will-change:auto}}
.bench-item[data-locked=true]{opacity:.46}.bench-item[data-locked=true][aria-pressed=true]{opacity:.8}.bench-options:has(.bench-item:nth-child(12)){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-height:230px;overflow:auto;scroll-snap-type:none;padding:4px}.bench-options:has(.bench-item:nth-child(12)) .bench-item{min-height:70px}.bench-options:has(.bench-item:nth-child(12)) .bench-item img{width:100%;max-width:75px;height:64px}.bench-hat{filter:drop-shadow(0 3px 2px #392a2420)}
@media(max-width:650px){.bench-options:has(.bench-item:nth-child(12)){grid-template-columns:repeat(5,minmax(0,1fr));max-height:145px}.bench-options:has(.bench-item:nth-child(12)) .bench-item{min-height:58px}.bench-options:has(.bench-item:nth-child(12)) .bench-item img{height:53px}}

.miner-workbench[data-selected=outfits] .bench-item{flex-basis:88px;min-height:122px}.miner-workbench[data-selected=outfits] .bench-item img{width:76px;height:112px}.outfit-preview>img{height:100%;width:100%;object-fit:contain}.outfit-card[data-locked=true]{opacity:.55}
@media(max-width:650px){.miner-workbench[data-selected=outfits] .bench-item{flex-basis:68px;min-height:98px}.miner-workbench[data-selected=outfits] .bench-item img{width:60px;height:90px}}
.miner-workbench[data-selected=outfits] .bench-options:has(.bench-item:nth-child(12)){grid-template-columns:repeat(4,minmax(0,1fr));max-height:286px;overscroll-behavior:contain}
.miner-workbench[data-selected=outfits] .bench-options:has(.bench-item:nth-child(12)) .bench-item{min-height:112px}
.miner-workbench[data-selected=outfits] .bench-options:has(.bench-item:nth-child(12)) .bench-item img{width:100%;max-width:76px;height:108px}
@media(max-width:650px){.miner-workbench[data-selected=outfits] .bench-options:has(.bench-item:nth-child(12)){max-height:204px}.miner-workbench[data-selected=outfits] .bench-options:has(.bench-item:nth-child(12)) .bench-item{min-height:92px}.miner-workbench[data-selected=outfits] .bench-options:has(.bench-item:nth-child(12)) .bench-item img{height:84px}}

.quarry-page #sound{width:auto;min-width:76px;min-height:48px;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;padding:5px 9px;color:#8b6737}.quarry-page #sound .radio-mark{display:block;width:28px;height:28px;position:relative;transform:none;opacity:1}.quarry-page #sound .radio-mark::after,.quarry-page #sound .radio-mark::before{display:none}.music-note-icon{display:block;width:100%;height:100%;overflow:visible}.quarry-page #sound b{display:block!important;font:12px/1.2 'Trebuchet MS',sans-serif;white-space:nowrap;text-transform:none;letter-spacing:0}.quarry-page #sound[aria-pressed=true]{color:#a95c29;background:#ecd5a3}.quarry-page #sound[aria-pressed=true] .music-muted-line{display:none}

.rock-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:12px 0}.rock-shelf[hidden]{display:none!important}.rock-shelf article{min-width:0;text-align:center;padding:12px 8px;border:1px solid #cbb58a;border-radius:18px;background:#e9d9b666}.rock-shelf img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 5px 3px #72583522)}.rock-shelf h3{font:25px/1.1 Quarry,Impact,sans-serif;min-height:2.2em;margin:12px 0;color:#684c2f}.rock-shelf button{min-height:44px;border:1px solid #b69a63;border-radius:10px;background:#e4c891;color:#5f472b;font:17px Quarry,Impact,sans-serif;padding:8px 12px;width:100%;cursor:pointer}.rock-shelf button:disabled{opacity:.55;cursor:default}@media(max-width:500px){.rock-shelf{gap:7px}.rock-shelf article{padding:9px 5px}.rock-shelf h3{font-size:21px}.rock-shelf button{font-size:14px;padding:6px 3px}}

@media(max-width:650px){.miner-workbench:not([data-selected="all"]) .bench-scene{height:clamp(220px,calc(100svh - 500px),320px)}}

/* One readable damage comparison; the purchase below remains the only action. */
.mastery-choice{margin-top:16px;padding-top:14px;border-top:1px solid #d4c09b}.mastery-choice[hidden]{display:none}.mastery-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mastery-cards button{position:relative;min-width:0;border:1px solid #d1bd95;border-radius:14px;padding:6px;background:#efe3c8;color:#765534;cursor:pointer}.mastery-cards button[aria-pressed=true]{border-color:#a46f30;background:#e7cc92;box-shadow:inset 0 0 0 1px #a46f30}.mastery-cards img{display:block;width:100%;max-width:96px;height:auto;aspect-ratio:1;object-fit:contain;margin:auto}.mastery-cards small{display:block;font:17px/1.2 Quarry,Impact,sans-serif;margin:3px 0}.mastery-cards button[data-locked=true] img{filter:grayscale(.65);opacity:.48}.mastery-cards button:disabled{cursor:default}.mastery-check{position:absolute;right:4px;top:5px;display:none;width:20px;height:20px;border-radius:50%;background:#f5ead1;color:#6e743c}.mastery-check svg{width:16px;height:16px;margin:2px}.mastery-cards button[aria-pressed=true] .mastery-check{display:block}.mastery-hint{font:14px/1.4 'Trebuchet MS',sans-serif;color:#846b48;margin:9px 0 0;text-align:center}.mastery-hint[hidden]{display:none}
.bench-impact{display:flex;align-items:center;flex-wrap:wrap;gap:8px 11px;max-width:100%;margin:5px 0 14px;padding:12px;border:1px solid #d2bd94;border-radius:13px;background:#eadbb966;color:#704d2b}
.bench-impact[hidden]{display:none}.bench-impact-icon{display:flex;flex:none;color:#a45e36}.bench-impact-icon svg{width:27px;height:27px}.bench-impact[data-perk=rhythm] .bench-impact-icon{color:#806a91}
.bench-impact-values{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:8px;min-width:0;font:29px/1.1 Quarry,Impact,sans-serif;font-variant-numeric:tabular-nums}.bench-impact-values b{font-weight:400;overflow-wrap:anywhere}.bench-impact-before{color:#978164}.bench-impact-values i{color:#aa8d62;font:20px/1 'Trebuchet MS',sans-serif}.bench-impact-after{color:#5b6936}.bench-impact-gain{margin-left:auto;padding:5px 7px;background:#cfd0a557;border-radius:7px;color:#67753c;font:14px/1.1 'Trebuchet MS',sans-serif;font-weight:700;white-space:nowrap}
.bench-impact[data-complete=true] .bench-impact-before{color:#5b6936}.bench-impact[data-complete=true] .bench-impact-after,.bench-impact[data-complete=true] .bench-impact-values i,.bench-impact[data-complete=true] .bench-impact-gain{display:none}
.bench-result:has(svg){display:flex;align-items:center;justify-content:center;gap:6px;color:#65733d;font-variant-numeric:tabular-nums}.bench-result>svg{width:17px;height:17px;flex:none}
@media(max-width:650px){.bench-impact{padding:9px 11px;margin:5px 0 10px;gap:7px 9px}.bench-impact-values{font-size:27px}.bench-impact-icon svg{width:24px;height:24px}.bench-impact-gain{font-size:12px}}
