/* Brass fittings, stained timber, and tools laid out at a physical workbench. */
.mg-nav{gap:0;padding:0 28px;background:linear-gradient(#243b3b,#101d24);box-shadow:0 -4px 18px #0004;border-top:1px solid #c6a46999}.mg-nav button{min-width:0;flex:1;max-width:190px;position:relative;gap:10px;border-top:2px solid transparent;color:#9faaa0}.mg-nav button b{display:flex}.mg-nav svg{width:27px;height:27px}.mg-nav button.is-active{background:radial-gradient(ellipse at top,#d6b87530,transparent 80%);color:#ffe4a6;border-color:#e7c77e}.mg-nav button.is-active:after{content:"";position:absolute;left:50%;top:6px;width:4px;height:4px;background:#f4d995;transform:translateX(-50%) rotate(45deg)}
.workshop{height:100%;display:grid;grid-template-rows:60px minmax(0,1fr) 58px;gap:14px}.workshop-heading{display:flex;align-items:center;justify-content:space-between;padding:0 0 0 5px}.workshop-heading small,.bench-label{font:10px Arial,sans-serif;letter-spacing:.12em;color:#bba979}.workshop-heading h2{font-size:28px;margin-top:4px}.bench-tabs{display:flex;border:1px solid #9b8050;border-radius:8px;background:#102329;padding:4px;gap:4px}.bench-tabs button{display:flex;align-items:center;gap:9px;padding:6px 16px;font-size:13px;border-radius:4px;color:#acae97}.bench-tabs button[aria-pressed=true]{background:linear-gradient(#dbc184,#b38c4f);color:#332820;box-shadow:0 2px 5px #0006}.bench-tabs svg{width:25px;height:29px}.workshop-body{min-height:0;display:grid;grid-template-columns:215px minmax(0,1fr) 245px;gap:22px}.recipe-shelf{display:flex;flex-direction:column;gap:12px;min-height:0;padding:18px 12px;background:linear-gradient(90deg,#1b2b2de6,#2a3d3ccc);border:1px solid #a38a4c55;border-radius:9px;box-shadow:inset 0 0 0 4px #0c1e2322}.recipe-shelf>.bench-label{padding:0 6px}.recipe-shelf>button{position:relative;display:grid;grid-template-columns:54px 1fr;grid-template-rows:1fr 1fr;align-items:center;column-gap:9px;min-height:86px;border:1px solid #83755077;border-radius:7px;text-align:left;padding:8px;background:linear-gradient(120deg,#223a3c,#172a30);box-shadow:0 4px 0 #102024}.recipe-shelf>button[aria-pressed=true]{border-color:#f0ca79;background:linear-gradient(110deg,#655b39,#273a35);box-shadow:0 4px 0 #102024,inset 3px 0 #d6b46d}.recipe-shelf>button>svg{grid-row:1/3;width:50px;height:50px}.recipe-shelf>button>span{font-size:12px;line-height:1.3;color:#eddfb9;align-self:end}.recipe-shelf>button>b{font-size:13px;color:#d5b97b;align-self:start;padding-top:5px}.shelf-foot{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:8px;color:#d2be8f}.shelf-foot>.potion-icon{width:26px;height:26px}.shelf-foot small{font-size:10px;color:#9da98e}.shelf-foot button{font-size:11px;color:#d2be8f;padding:10px 0}
.crafting-table{min-height:0;position:relative;display:grid;grid-template-rows:minmax(0,1fr) 92px 24px;isolation:isolate;border-radius:14px 14px 7px 7px;background:radial-gradient(ellipse at 50% 30%,#b7ab5b2b,transparent 60%),linear-gradient(#102b2e88,#24373255 52%,#563c26 53%,#39291f 100%);box-shadow:inset 0 0 0 1px #a6935c66,0 8px 15px #0004;overflow:hidden}.crafting-table:before{content:"";position:absolute;inset:53% 0 0;background:repeating-linear-gradient(1deg,transparent 0 42px,#a67b4722 43px,#160e0a66 45px,transparent 48px);z-index:-1}.bench-halo{position:absolute;top:9%;left:20%;width:60%;height:60%;border:1px solid #b7a26133;border-radius:50%;box-shadow:0 0 0 13px #b7a26108,0 0 0 15px #b7a26122;z-index:-1}.bench-halo:after{content:"✧";position:absolute;color:#bfa65c77;font:140px Georgia;inset:10%;display:grid;place-items:center}.bench-art{width:100%;height:100%;min-height:0;align-self:end;filter:drop-shadow(0 8px 10px #0005)}.forge-table{background:radial-gradient(ellipse at 50% 25%,#df784a2a,transparent 62%),linear-gradient(#14262d88,#26343c55 52%,#563c26 53%,#39291f 100%)}.ingredient-tray{display:flex;align-items:center;justify-content:center;gap:20px;padding:0 10px;z-index:1}.ingredient{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:82px;height:78px;background:radial-gradient(ellipse,#d6bc7a33,#21180f77);border:1px solid #aa875255;border-radius:50% 50% 8px 8px;box-shadow:0 4px 6px #0004}.ingredient .material-icon{width:46px;height:46px;filter:drop-shadow(0 3px 1px #0004)}.ingredient>span{font-size:12px;color:#b5a589}.ingredient b{color:#e0dbb1}.ingredient.missing b{color:#ef9e7f}.ingredient.enough:after{content:"✓";position:absolute;right:3px;top:3px;color:#bbd28f;font-size:11px}.table-edge{background:linear-gradient(#9a713d,#634628 25%,#3c2b20);border-top:2px solid #b68a4e88;box-shadow:0 -3px 4px #0003}.craft-result{display:flex;flex-direction:column;align-items:center;text-align:center;min-height:0;gap:10px;padding:18px 10px 0}.result-plinth{position:relative;flex:1;min-height:65px;width:100%;display:grid;place-items:center;background:radial-gradient(ellipse,#dab86628,transparent 68%)}.result-plinth:after{content:"";position:absolute;bottom:8%;width:75%;height:20%;border:1px solid #d2b47566;border-radius:50%;background:#7a74542b;box-shadow:0 5px 0 #172a2c;z-index:0}.result-plinth>svg{position:relative;z-index:1;width:105px;height:130px;max-height:100%;filter:drop-shadow(0 9px 8px #0006)}.result-plinth>i{position:absolute;right:15%;top:12%;color:#e8dca8;font-size:20px;font-style:normal}.craft-result h3{font-size:23px;margin:0;color:#f2ddb1}.craft-benefit{font:700 27px Georgia;color:#d5be7a}.craft-benefit>span{font:18px Arial;color:#a1b09d}.craft-result>small:not(.bench-label){font-size:11px;color:#aaba9e}.craft-confirm{width:100%;min-height:55px;display:flex;align-items:center;justify-content:center;gap:12px;border:2px solid #f0d28d;border-radius:10px;background:linear-gradient(#e9c67d,#b88841);box-shadow:0 5px #5d4022,inset 0 2px #fff0b2;color:#30251b;font-size:18px;font-weight:700}.craft-confirm svg{width:27px;height:32px}.craft-confirm:enabled:hover{filter:brightness(1.12)}.craft-confirm:active:enabled{transform:translateY(3px);box-shadow:0 2px #5d4022}.craft-confirm:disabled{filter:saturate(.35)}.craft-hint,.find-materials{font-size:10px;color:#c6b283;min-height:22px;padding:5px}.workshop-stock{display:flex;justify-content:center;align-items:center;gap:25px;padding:6px 20px;border-top:1px solid #bb9b5b66;background:linear-gradient(90deg,transparent,#152b31cc,transparent)}.workshop-stock>span{display:flex;gap:7px;align-items:center;font-size:15px;color:#d5c08b}.workshop-stock svg{width:35px;height:35px}.workshop-stock .stock-divider{height:26px;border-left:1px solid #9c895866}.craft-success .result-plinth>svg{animation:crafted .7s ease-out}.craft-success .bench-art{animation:hammer-hit .35s ease-out}.craft-success .result-plinth>i{animation:crafted .8s ease-out}@keyframes crafted{0%{transform:scale(.6) translateY(15px);filter:brightness(3) drop-shadow(0 0 20px #ffe39b)}55%{transform:scale(1.14) translateY(-10px)}100%{transform:scale(1)}}@keyframes hammer-hit{30%{transform:translateY(5px) rotate(-2deg)}60%{transform:translateY(-2px)}}
/* More visual hierarchy on notices, smaller stamps, and a bound journal. */
.guild-collection-count{font:12px Georgia;color:#c2ad80;padding:5px 16px;border-bottom:1px solid #b49a6066}.guild-board{position:relative;background:repeating-linear-gradient(2deg,#513b28 0 60px,#33261b 61px 64px,#443322 65px 125px);border-color:#715032;box-shadow:inset 0 0 0 3px #372619,inset 0 0 35px #0008,0 5px 0 #261e18,0 0 0 2px #ab8955}.guild-board:before,.guild-board:after{content:"✦";position:absolute;color:#c2a16a;top:-14px;font-size:18px;text-shadow:0 2px #302219}.guild-board:before{left:-12px}.guild-board:after{right:-12px}.guild-notice{background:radial-gradient(ellipse at 80% 10%,#fff5d7aa,transparent),linear-gradient(110deg,#ddc08c,#f6e5b8 45%,#e5cb99);box-shadow:2px 6px 7px #0008,inset 0 0 12px #ae783329;border:0;padding:10px 16px;grid-template-columns:100px 1fr}.guild-notice>img{filter:sepia(.2) drop-shadow(0 4px 3px #6b422344);transform:scale(1.08)}.guild-notice>strong{font-size:18px}.guild-notice>small{font-size:8px;letter-spacing:.12em}.guild-notice>span:not(.notice-pin){color:#78603e;font-size:9px}.new-stamp{font-size:8px;border-width:1px;opacity:.8}.journal-book{border-width:10px 15px 14px 10px;box-shadow:0 8px 0 #30241c,0 13px 20px #0007,inset 0 -3px #bfa780,inset 0 -5px #e0c79d;background:linear-gradient(90deg,#e1cea8,#f8eaca 47%,#b7a17e 49.5%,#60462f 50%,#c9b38b 50.6%,#f8eaca 54%,#e6d5b0)}.journal-book .guild-notice{box-shadow:none;background:transparent}.guild-empty{font:18px Georgia}
.combat-potions{position:relative;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #bd9b5b;border-radius:9px;background:#17343c;flex-shrink:0;margin-left:auto}.combat-potions>svg{width:31px;height:31px}.combat-potions>b{position:absolute;bottom:0;right:3px;font:11px Arial;color:#ffe2a0}.combat-potions:disabled{opacity:.4}.potion-dialog{max-width:540px}.potion-limit{font-size:12px!important}.potion-choices{display:grid;grid-template-columns:1fr 1fr;gap:20px}.potion-choices>article{display:flex;flex-direction:column;align-items:center;gap:8px}.potion-choices>article>.potion-icon{height:72px;width:72px}.potion-choices>article>div{display:grid;gap:8px;width:100%}.potion-choices button{display:flex;align-items:center;gap:8px;padding:8px;background:#28484a;border:1px solid #b59b65;border-radius:8px;color:#f5dfb0;text-align:left}.potion-choices button img{width:34px;height:40px;object-fit:cover;object-position:top}.potion-choices button small{display:block;font-size:10px}.potion-choices button:disabled{opacity:.35}
@media(max-width:1000px) and (orientation:landscape){.mg-nav{padding:0 12px}.mg-nav button{min-width:0;max-width:none;padding:5px 8px;gap:7px;font-size:10px}.mg-nav svg{width:22px;height:22px}.workshop{grid-template-rows:40px minmax(0,1fr) 35px;gap:7px}.workshop-heading{padding-right:0}.workshop-heading h2{font-size:20px;margin-top:1px}.workshop-heading small,.bench-label{font-size:7px}.bench-tabs{padding:2px}.bench-tabs button{font-size:10px;padding:3px 9px;gap:5px}.bench-tabs svg{width:19px;height:21px}.workshop-body{grid-template-columns:155px minmax(0,1fr) 175px;gap:12px}.recipe-shelf{padding:8px;gap:7px}.recipe-shelf>button{min-height:53px;padding:4px;grid-template-columns:35px 1fr;column-gap:6px}.recipe-shelf>button>svg{width:32px;height:32px}.recipe-shelf>button>span{font-size:9px}.recipe-shelf>button>b{font-size:10px;padding-top:2px}.shelf-foot{gap:4px}.shelf-foot button,.shelf-foot small{font-size:8px}.shelf-foot>.potion-icon{width:20px;height:20px}.crafting-table{grid-template-rows:minmax(0,1fr) 57px 15px}.ingredient-tray{gap:12px}.ingredient{width:51px;height:51px}.ingredient .material-icon{width:29px;height:29px}.ingredient>span{font-size:9px}.craft-result{padding:7px 0 0;gap:4px}.result-plinth{min-height:32px}.result-plinth>svg{width:53px;height:65px}.result-plinth>i{font-size:12px}.craft-result h3{font-size:16px}.craft-benefit{font-size:20px}.craft-result>small:not(.bench-label){font-size:8px}.craft-confirm{min-height:34px;font-size:13px;gap:6px;border-radius:7px}.craft-confirm svg{width:19px;height:23px}.craft-hint,.find-materials{font-size:8px;min-height:15px;padding:2px}.workshop-stock{padding:2px 8px;gap:19px}.workshop-stock>span{font-size:11px;gap:4px}.workshop-stock svg{width:26px;height:26px}.workshop-stock .stock-divider{height:19px}.guild-notice{grid-template-columns:58px 1fr;padding:5px 9px}.guild-notice>strong{font-size:12px}.guild-notice>small{font-size:6px}.guild-notice>span:not(.notice-pin){font-size:7px}.guild-collection-count{font-size:10px}.journal-book{border-width:5px 8px 8px 5px}.combat-potions{width:36px;height:35px}.combat-potions>svg{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){.craft-success *{animation:none!important}}
.recipe-shelf>button{flex:1;min-height:0;max-height:86px}.recipe-shelf>button>svg{max-height:100%;min-height:0}.recipe-shelf>.bench-label,.shelf-foot{flex-shrink:0}.recipe-shelf>button>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:1000px) and (orientation:landscape){.recipe-shelf>button{max-height:58px}.potion-dialog .dialog-body{padding:18px 25px}.potion-dialog h2{font-size:24px;margin:0 0 6px}.potion-dialog .potion-limit{margin:0 0 6px}.potion-choices>article>.potion-icon{height:46px;width:46px}.potion-choices>article{gap:4px}.potion-choices button{padding:4px 8px}.potion-choices button img{height:30px;width:26px}}
.recipe-shelf>button>span{grid-row:1/3;align-self:center;padding-right:17px}.recipe-shelf>button>b{position:absolute;right:8px;bottom:5px;font-size:11px;padding:0}.recipe-shelf>button>svg{grid-row:1/3}
@media(max-width:1000px) and (orientation:landscape){.recipe-shelf>button>b{font-size:9px;right:5px;bottom:3px}.recipe-shelf>button>span{padding-right:12px}}

/* Workbench feedback: every ingredient and next action reads without color alone. */
.bench-tabs button{position:relative;min-height:48px;border:1px solid transparent}
.bench-tabs button:hover{color:#f6dfa9;background:#2a4449}
.bench-tabs button[aria-pressed=true]{border-color:#e8c57e;box-shadow:0 3px 0 #674b28,inset 0 1px #fff3c7}
.recipe-shelf{box-shadow:inset 0 1px #dfc98a30,0 8px 20px #0002}
.recipe-shelf>button{position:relative;transition:transform .16s,border-color .16s,background .16s,filter .16s}
.recipe-shelf>button:hover{transform:translateX(3px);border-color:#d5b46f;filter:brightness(1.06)}
.recipe-shelf>button[aria-pressed=true]{box-shadow:inset 4px 0 #f0ce80,0 4px 12px #0003}
.recipe-shelf>button[aria-pressed=true]:after{content:"";position:absolute;right:8px;top:8px;width:9px;height:5px;border-left:2px solid #f5d488;border-bottom:2px solid #f5d488;transform:rotate(-45deg)}
.crafting-table{box-shadow:inset 0 1px #dfc78a55,0 8px 24px #0004}
.ingredient{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;width:126px;height:70px;padding:8px 9px 8px 6px;border-radius:13px;background:linear-gradient(145deg,#463522dd,#221a14ee);overflow:visible;text-align:left}
.ingredient .material-icon{width:39px;height:42px}
.ingredient-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.ingredient-copy>strong{overflow:hidden;color:#ead7aa;font:700 10px/1.15 Arial,"Helvetica Neue",sans-serif;text-overflow:ellipsis;white-space:nowrap}
.ingredient-copy>span{display:flex;align-items:baseline;gap:3px;color:#a99a7f;font:10px/1 Arial,"Helvetica Neue",sans-serif;white-space:nowrap}
.ingredient-copy b{color:#ece1bc;font-size:15px;font-variant-numeric:tabular-nums}
.ingredient-copy i{font-style:normal}
.ingredient.missing .ingredient-copy b{color:#ef9e7f}
.ingredient.missing{filter:saturate(.72)}
.craft-result{position:relative;padding-inline:14px;border-left:1px solid #ad935c55;background:linear-gradient(180deg,#142b33a8,transparent 78%)}
.craft-result:before{content:"";position:absolute;left:12px;right:12px;top:0;height:1px;background:linear-gradient(90deg,transparent,#e3c170,transparent)}
.result-plinth{box-sizing:border-box;overflow:hidden;padding:6px 0 18px;filter:drop-shadow(0 8px 8px #0004)}
.result-plinth>svg{height:100%;max-height:118px}
.plinth-spark{position:absolute!important;right:17%;top:18%;width:18px!important;height:18px!important;background:#f6dc91;clip-path:polygon(50% 0,61% 38%,100% 50%,61% 62%,50% 100%,39% 62%,0 50%,39% 38%);filter:drop-shadow(0 0 6px #ffe6a0)}
.craft-benefit{font-variant-numeric:tabular-nums}
.craft-confirm{min-height:52px;transition:transform .16s,filter .16s,box-shadow .16s}
.craft-confirm:enabled:hover{transform:translateY(-2px);filter:brightness(1.08);box-shadow:0 7px 0 #65451e,0 12px 22px #0005}
.craft-confirm:enabled:active{transform:translateY(3px);box-shadow:0 2px 0 #65451e}
.craft-confirm:focus-visible,.find-materials:focus-visible{outline:3px solid #ffe3a0;outline-offset:3px}
.find-materials{min-height:42px;width:100%;padding:8px 12px;border:1px solid #a88c55;border-radius:7px;background:#1c343c;color:#f0d69a;font-weight:700;box-shadow:0 3px 0 #0a171c}
.find-materials:hover{background:#2c4b50;border-color:#dfbb72}
.workshop-stock{font-variant-numeric:tabular-nums}
.workshop-stock>span:not(.stock-divider){padding:3px 6px;transition:background .16s,color .16s}
.workshop-stock>span:not(.stock-divider):hover{background:#d9bb7020;color:#f5d99c}
.workshop-stock .stock-item>span:not(.pixel-sprite){display:flex;min-width:54px;flex-direction:column;gap:1px}
.workshop-stock .stock-item small{overflow:hidden;max-width:78px;color:#a9b6a3;font:8px/1.1 Arial,"Helvetica Neue",sans-serif;text-overflow:ellipsis;white-space:nowrap}
.workshop-stock .stock-item b{font-size:12px;font-variant-numeric:tabular-nums}

@media(max-width:1000px) and (orientation:landscape){
 .bench-tabs button{min-height:34px}
 .recipe-shelf>button[aria-pressed=true]:after{right:5px;top:5px;width:7px;height:4px}
 .ingredient{grid-template-columns:28px minmax(0,1fr);width:94px;height:47px;padding:4px 6px 4px 3px}
 .ingredient .material-icon{width:27px;height:29px}
 .ingredient-copy{gap:2px}
 .ingredient-copy>strong{font-size:7px}
 .ingredient-copy>span{font-size:7px}
 .ingredient-copy b{font-size:10px}
 .craft-result{padding-inline:7px}
 .result-plinth{padding:2px 0 8px}
 .result-plinth>svg{max-height:58px}
 .craft-confirm{min-height:36px}
 .find-materials{min-height:28px;padding:3px 7px}
 .plinth-spark{width:12px!important;height:12px!important}
 .workshop-stock .stock-item>span:not(.pixel-sprite){min-width:37px}
 .workshop-stock .stock-item small{max-width:48px;font-size:6px}
 .workshop-stock .stock-item b{font-size:9px}
}

/* Generated workbench sprites and square pixel controls. */
.bench-tabs,.bench-tabs button,.recipe-shelf,.recipe-shelf>button,.crafting-table,.ingredient,.craft-confirm,.find-materials,.combat-potions,.potion-choices button{border-radius:0}
.bench-tabs,.recipe-shelf,.recipe-shelf>button,.craft-result,.workshop-stock{background:#10252d}
.bench-tabs button[aria-pressed=true],.recipe-shelf>button[aria-pressed=true],.craft-confirm{background:#c69b50}
.bench-tabs .potion-icon,.bench-tabs .ui-pixel-icon{width:29px;height:29px}
.recipe-shelf>button>.potion-icon,.recipe-shelf>button>.mg-gear-icon{grid-row:1/3;width:50px;height:50px;max-height:100%;min-height:0}
.bench-art{object-fit:contain;image-rendering:pixelated;filter:drop-shadow(6px 8px 0 #05090c)}
.bench-halo,.bench-halo:after{display:none}
.crafting-table{background:#1b3034}
.crafting-table:before{background:#513b27}
.table-edge{background:#5d422b}
.result-plinth{background:none;filter:none}
.result-plinth:after{height:8px;border-radius:0;background:#624a2d;box-shadow:0 4px 0 #071014}
.result-plinth>.potion-icon,.result-plinth>.mg-gear-icon{position:relative;z-index:1;width:105px;height:118px;max-height:118px;filter:drop-shadow(5px 7px 0 #05090c)}
.craft-success .result-plinth>.pixel-sprite{animation:crafted .7s steps(5,end)}
.craft-confirm .potion-icon,.craft-confirm .ui-pixel-icon,.craft-confirm .mg-gear-icon{width:28px;height:28px}
.combat-potions>.potion-icon{width:31px;height:31px}
.plinth-spark{display:none}
.workshop-stock .material-icon,.workshop-stock .potion-icon{width:35px;height:35px}
@media(max-width:1000px) and (orientation:landscape){.bench-tabs .potion-icon,.bench-tabs .ui-pixel-icon{width:21px;height:21px}.recipe-shelf>button>.potion-icon,.recipe-shelf>button>.mg-gear-icon{width:32px;height:32px}.result-plinth>.potion-icon,.result-plinth>.mg-gear-icon{width:53px;height:58px;max-height:58px}.craft-confirm .potion-icon,.craft-confirm .ui-pixel-icon,.craft-confirm .mg-gear-icon{width:20px;height:20px}.combat-potions>.potion-icon{width:24px;height:24px}.workshop-stock .material-icon,.workshop-stock .potion-icon{width:26px;height:26px}}

/* Keep square atlas cells intact inside the available result space. */
.craft-result{padding-bottom:12px}
.craft-result>*:not(.result-plinth){flex-shrink:0}
.result-plinth{container-type:size;min-height:40px;padding:0;overflow:visible}
.result-plinth>.potion-icon,.result-plinth>.mg-gear-icon{width:min(105px,calc(100cqh - 12px),90cqw);height:auto;aspect-ratio:1;max-height:none;filter:drop-shadow(3px 4px 0 #05090c)}
@media(max-width:1000px) and (orientation:landscape){
 .craft-result{padding-bottom:6px}
 .result-plinth{min-height:24px}
 .result-plinth>.potion-icon,.result-plinth>.mg-gear-icon{width:min(58px,calc(100cqh - 6px),90cqw)}
}
@media(max-width:1000px) and (orientation:landscape){
 .craft-result{gap:2px;padding-top:5px}
 .craft-result .craft-confirm{min-height:28px}
 .craft-result .find-materials{min-height:24px;padding:3px}
}

/* Profession equipment shares the workshop shell, atlas icons and square frames. */
.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;min-height:0}
.tool-card{display:flex;flex-direction:column;min-width:0;min-height:0;padding:16px;background:var(--pixel-surface);color:var(--pixel-text);gap:12px}
.tool-card-heading{display:flex;align-items:center;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--pixel-frame)}
.tool-emblem{display:grid;place-items:center;width:56px;height:56px;background:var(--pixel-surface-raised);flex-shrink:0}
.tool-emblem .material-icon{width:44px;height:44px}
.tool-card-heading h3{font-size:23px;margin-top:4px}
.tool-level{margin-left:auto;color:var(--pixel-frame-selected);font-size:13px;white-space:nowrap}
.tool-card-scroll{min-height:0;overflow-y:auto;flex:1;padding:2px 4px 5px 0;scrollbar-color:var(--pixel-frame) var(--pixel-surface)}
.tool-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px}
.tool-stats>div{display:grid;grid-template-columns:1fr auto;gap:4px;padding:10px;background:var(--pixel-surface-raised)}
.tool-stats dt{font-size:12px;color:var(--pixel-text)}
.tool-stats dd{margin:0;color:var(--pixel-frame-selected);font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.tool-stats small{grid-column:1/-1;color:var(--pixel-text-muted);font-size:10px}
.tool-note,.tool-condition p,.tool-forge p{font-size:12px;line-height:1.4;color:var(--pixel-text-muted)}
.tool-condition,.tool-forge{display:grid;gap:8px;margin-top:12px}
.tool-forge>small{font-size:10px;color:var(--pixel-text-muted);line-height:1.4}
.tool-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:10px;border-top:1px solid var(--pixel-frame)}
.tool-card-actions .craft-confirm{font-size:14px;min-height:42px;gap:6px}
.tool-card-actions small{grid-column:1/-1;font-size:10px;color:var(--pixel-text-muted)}
.tool-card .find-materials{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px}
.tool-card .find-materials .ui-pixel-icon{width:20px;height:20px}
.tool-ledger{justify-content:flex-start;gap:24px}
.tool-ledger .ui-pixel-icon{width:28px;height:28px}
.tool-ledger>span>span{display:flex;flex-direction:column;gap:2px}
.tool-ledger small{font-size:8px;letter-spacing:.1em;color:var(--pixel-text-muted)}
.tool-ledger b{font-size:15px;color:var(--pixel-frame-selected)}
.tool-ledger p{font-size:11px;line-height:1.4;color:var(--pixel-text-muted)}
@media(max-width:1000px) and (orientation:landscape){
 .tool-grid{gap:12px}.tool-card{padding:8px;gap:6px}.tool-card-heading{gap:8px;padding-bottom:5px}
 .tool-emblem{width:34px;height:34px}.tool-emblem .material-icon{width:28px;height:28px}
 .tool-card-heading h3{font-size:16px;margin-top:2px}.tool-level{font-size:10px}
 .tool-stats{gap:6px;margin-bottom:6px}.tool-stats>div{padding:5px;gap:2px}
 .tool-stats dt{font-size:9px}.tool-stats dd{font-size:12px}.tool-stats small{font-size:8px}
 .tool-note,.tool-condition p,.tool-forge p{font-size:10px}.tool-forge>small{font-size:9px}
 .tool-condition,.tool-forge{gap:5px;margin-top:7px}.tool-card .find-materials{font-size:10px}
 .tool-card-actions{padding-top:6px;gap:6px}.tool-card-actions .craft-confirm{font-size:10px;min-height:30px}
 .tool-card-actions small{font-size:8px}.tool-ledger{gap:12px}.tool-ledger p{font-size:8px}.tool-ledger b{font-size:11px}
}
.workshop-stock.tool-ledger{display:flex}
.tool-state{display:block;margin-top:4px;color:var(--pixel-frame-selected);font-size:11px}
.tool-scroll-hint{font-size:10px;color:var(--pixel-text-muted)}
.tool-card-heading,.tool-card-actions,.tool-scroll-hint{flex-shrink:0}
.tool-card-scroll:focus-visible{outline:2px solid var(--pixel-frame-selected);outline-offset:1px}
@media(max-width:1000px) and (orientation:landscape){.tool-state,.tool-scroll-hint{font-size:8px}.tool-state{margin-top:2px}}
@media(max-width:1000px) and (orientation:landscape){
 .tool-card{padding:6px;gap:3px}
 .tool-card-heading{padding-bottom:3px;gap:6px}
 .tool-card-heading .bench-label{display:none}
 .tool-card-heading h3{font-size:14px;margin-top:0}
 .tool-emblem{width:28px;height:28px}.tool-emblem .material-icon{width:24px;height:24px}
 .tool-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 .tool-stats>div{grid-template-columns:1fr;padding:4px}
 .tool-stats dd{grid-row:2}.tool-stats small{font-size:7px;line-height:1.2}
 .tool-stats dt{font-size:8px}.tool-card-actions{padding-top:3px;gap:4px}
}
@media(min-width:1001px){
 .tool-stats{gap:8px;margin-bottom:8px}
 .tool-stats>div{padding:6px 8px;gap:2px}
 .tool-stats dt{font-size:11px}.tool-stats dd{font-size:15px}.tool-stats small{font-size:9px}
}
