/* 3.44: stable dashboard geometry and idle work reduction. */
body.maple-interface .topbar .brand .brand-mascot{width:60px;height:60px;aspect-ratio:1;flex:0 0 60px}
body.maple-interface .topbar #settingsBtn{display:grid!important;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:8px}
body.maple-interface .topbar #settingsBtn svg{display:block;width:26px;height:26px;min-width:26px;aspect-ratio:1;flex:none;max-width:none}
body.maple-interface .topbar .maple-sprite:not(.brand-mascot){aspect-ratio:1;width:32px;height:32px;flex:0 0 32px}
#craftingTool img.craft-icon{object-fit:contain;flex-shrink:0;align-self:center}
#craftingTool .atlas-step-recipe>img.craft-icon,#craftingTool .station-badge-content>img.craft-icon{width:32px;height:auto;max-width:36px;max-height:36px;aspect-ratio:auto;object-fit:contain}
#craftingTool .workshop-station-heading>img.craft-icon{width:40px;height:auto;max-height:44px;aspect-ratio:auto;object-fit:contain}
body[data-tool=crafting] .atlas-layout{height:clamp(570px,calc(100dvh - 350px),780px);align-items:stretch}
.atlas-layout>.atlas-controls{height:100%;min-height:0;display:flex;flex-direction:column;gap:14px;overflow:auto;scrollbar-width:thin}
.atlas-layout>.atlas-controls>.atlas-panel{margin:0;flex:none}
.atlas-layout>.atlas-controls>.atlas-journey-panel{flex:1;min-height:245px}
.atlas-layout>.atlas-workspace{display:flex;flex-direction:column;gap:14px;height:100%;min-height:0;min-width:0}
.atlas-layout .workshop-goal-banner,.atlas-layout .atlas-metrics{margin:0;flex:none}
#craftGoalPanel{height:100%;max-height:none;position:relative;top:auto;margin:0;min-height:0}
#craftGoalPanel #craftGoalList{flex:1;min-height:0;max-height:none}
#craftingTool .atlas-material-overview{padding:0;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#craftingTool .atlas-material-overview>.atlas-section-head{margin:0;flex:none;padding:9px 14px;min-height:49px;height:auto}
#craftingTool .atlas-material-overview>.atlas-section-head h2{font-size:19px}
#craftMainMaterialsBody{padding:12px 15px 16px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;min-height:0;flex:1}
#craftMainMaterialsBody #craftMaterialPreview,#craftMainMaterialsBody #craftCollectedMaterialCards{margin:0!important;width:100%;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;min-width:0}
#craftMainMaterialsBody .atlas-material-card{height:auto;min-height:148px;width:auto;max-width:none;min-width:0;padding:12px 8px}
#craftMainMaterialsBody .atlas-material-card h3{font-size:12px;line-height:1.35;min-height:34px;margin:0 0 5px}
#craftMainMaterialsBody .atlas-material-card>.craft-icon{width:35px;height:35px;object-fit:contain;margin:5px auto}
#craftMainMaterialsBody .atlas-material-quantity{font-size:22px;line-height:1.25}
#craftMainMaterialsBody .atlas-material-stock,#craftMainMaterialsBody .atlas-material-label{font-size:11px;line-height:1.35}
#craftMainMaterialsBody .atlas-material-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:7px 0 12px;margin:0}
#craftMainMaterialsBody .atlas-material-totals>span{padding:0;border:0;display:flex;flex-direction:column;font-size:11px}
#craftMainMaterialsBody .atlas-material-totals>span::before{display:none!important}
#craftMainMaterialsBody .atlas-material-totals b{font-size:23px;line-height:1.3}
#craftMainMaterialsBody .atlas-material-totals>small{grid-column:1/-1;font-size:10px}
#craftMainMaterialsBody .atlas-collection-progress{margin:5px 0 4px;padding:10px}
#craftMainMaterialsBody .atlas-guide-lock{margin-top:14px}
#craftMainMaterialsBody .atlas-material-explanation{display:none}
#craftMainMaterialsBody .atlas-prerequisites:empty{display:none}
#craftPlanStatus{display:block;min-height:14px;font-size:11px;line-height:1.3;color:#f5d58e}
#craftRoute[aria-busy=true]{opacity:.5}
/* Sharing is a deliberate modal action; controls are not duplicated or regenerated. */
.workshop-sharing{position:fixed;inset:0;margin:auto;width:min(680px,94vw);max-height:86dvh;padding:0;overflow:auto;border:1px solid #d7ba78;border-radius:13px;background:#202d41;color:#f2f5ff;box-shadow:0 20px 80px #0009}
.workshop-sharing[open]{display:block}
.workshop-sharing::backdrop{background:#080e1cbf}
.workshop-sharing>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 20px;border-bottom:1px solid #8c9eb84d}
.workshop-sharing>header h2{font-size:20px;margin:0}
.workshop-sharing>.atlas-share{padding:20px;margin:0;border:0;background:none;box-shadow:none}
.workshop-sharing .atlas-share .atlas-section-head{margin:0 0 14px;padding:0;height:auto;justify-content:flex-end}
.workshop-sharing .atlas-share .atlas-section-head h2{display:none}
/* Completion is a translucent-content badge with a full-strength raster stamp. */
.workshop-station>details>summary{cursor:pointer;list-style:none;position:relative;margin-bottom:0}
.workshop-station>details>summary::-webkit-details-marker{display:none}
.workshop-station>details>summary::after{content:'';width:9px;height:9px;border-right:2px solid #ddc48a;border-bottom:2px solid #ddc48a;transform:rotate(45deg);margin:0 4px 4px 12px;flex:none}
.workshop-station>details[open]>summary::after{transform:rotate(225deg);margin-bottom:-4px}
.workshop-station-content{padding-top:8px}
.workshop-station.is-complete .workshop-station-heading h2{text-decoration:line-through;color:#a5b6ba}
.workshop-station.is-complete .workshop-station-heading>.craft-icon{filter:grayscale(1);opacity:.45}
.workshop-station-totals>.workshop-station-output{display:flex;align-items:center;position:relative;min-height:49px;gap:6px;overflow:visible}
.station-badge-content{display:flex;gap:8px;align-items:center}
.workshop-station-output.is-done{background:#101c29;border-color:#527a59;padding-right:45px}
.workshop-station-output.is-done>.station-badge-content{opacity:.42;filter:grayscale(1);text-decoration:line-through}
.completion-stamp{display:block;width:43px;height:43px;min-width:43px;aspect-ratio:1;background:url('../../assets/interface/crafting-complete-stamp.png') center/contain no-repeat;filter:none!important;opacity:1!important;pointer-events:none;flex:none}
.workshop-station-output>.completion-stamp{position:absolute;right:1px;top:50%;transform:translateY(-50%)}
.workshop-station-heading>.completion-stamp{width:45px;height:45px}
/* Browser work for offscreen tab rows is deferred; no calculations run on a tab click. */
.atlas-results{min-height:64dvh}
.atlas-results [role=tabpanel]{contain:layout style;min-width:0}
.atlas-recipe{content-visibility:auto;contain-intrinsic-size:auto 100px}
.atlas-price{content-visibility:auto;contain-intrinsic-size:auto 68px}
.atlas-material{content-visibility:auto;contain-intrinsic-size:auto 180px}
.workshop-task{content-visibility:auto;contain-intrinsic-size:auto 96px}
@media(max-width:1100px){body[data-tool=crafting] .atlas-layout{height:auto;align-items:start}.atlas-layout>.atlas-controls{height:auto}.atlas-layout>.atlas-workspace{height:640px}#craftGoalPanel{height:560px}.atlas-layout>.atlas-controls>.atlas-journey-panel{min-height:0}}
@media(max-width:700px){body.maple-interface .topbar .brand .brand-mascot{width:46px;height:46px;flex-basis:46px}.atlas-layout>.atlas-workspace{height:680px}#craftGoalPanel{height:510px}.workshop-sharing>.atlas-share{padding:16px}.workshop-station-output.is-done{padding-right:42px}}
