/* Static shared textures; no full-screen blur passes or perpetual effects. */
body[data-page=forge]{--workshop-bg:url('../../art/ui/cubing-workshop.webp');--enamel:#d5b7df;--accent:#dfc1ea;--green:#dfc1ea;--workshop-ink:#2b203b;--workshop-pane:#332b44e8;--workshop-lit:#59405c;--workshop-shadow:#160f25;--workshop-cream:#eee0d5}
body[data-page=shop]{--workshop-bg:url('../../art/ui/crafting-workshop.webp');--enamel:#b3d8b2;--accent:#c0dfb7;--green:#c0dfb7;--workshop-ink:#152d2c;--workshop-pane:#1a3e3ce8;--workshop-lit:#3f6154;--workshop-shadow:#092624;--workshop-cream:#e9e5c6}
body:is([data-page=forge],[data-page=shop]) #app{background-image:var(--workshop-bg);background-position:50% 30%;background-size:cover}
body:is([data-page=forge],[data-page=shop]) #app::before{background:linear-gradient(180deg,#0b101d36,#10111d7a 40%,#10111dbf)}
body:is([data-page=forge],[data-page=shop]) .topbar,body:is([data-page=forge],[data-page=shop]) #navigation{background:var(--workshop-pane)}
body:is([data-page=forge],[data-page=shop]) main>.page-heading{text-shadow:0 2px 7px #0009}
.workshop-vista{position:relative;flex:none;height:clamp(78px,16dvh,132px);overflow:hidden;border-radius:6px 24px 6px 6px;box-shadow:0 5px 0 #0b102450,0 10px 22px #090d224d;background-image:linear-gradient(0deg,#10121fc9,transparent 65%),var(--workshop-bg);background-size:cover;background-position:50% 29%;border-top:1px solid #fff2}
.workshop-plaque{position:absolute;left:12px;bottom:10px;font-size:11px;letter-spacing:.05em;color:var(--workshop-cream);text-shadow:0 2px 6px #000;pointer-events:none}
body[data-page=forge] .forge-selected{background:linear-gradient(120deg,#3a2848cf,#24203888);border:0;border-radius:6px 23px 6px 6px;box-shadow:0 7px 18px #100c2c65}
body[data-page=forge] .forge-work{background:linear-gradient(135deg,#4e3d52ed,#2b263ced);box-shadow:0 5px 0 #211729,0 12px 20px #100d2580;border:0}
body[data-page=forge] main .forge-execute{background:#211a30ed;color:#e9dbed;border-radius:4px 15px 4px 4px;padding:11px;box-shadow:0 3px #160d26,0 7px 12px #100b2266}
body[data-page=forge] main .forge-execute .cost-row small{color:#c4afce}
body[data-page=forge] main .forge-execute button.primary:not(:disabled){background:linear-gradient(135deg,#d6bfdf,#ab8ebd);color:#2f203b;border:0;box-shadow:0 3px #312041,0 6px 12px #160c2766}
body[data-page=forge] .flow-tabs{background:#211b3299}
body[data-page=forge] .flow-tabs button.active{background:linear-gradient(125deg,#eee0dd,#c4a9cf);color:#382c43;box-shadow:0 3px #25172e,0 5px 10px #160d2366}
body:is([data-page=forge],[data-page=shop]) main button.primary,body[data-page=shop] .stack-list .flow-row button[data-action=craft]{background:linear-gradient(135deg,var(--workshop-cream),var(--enamel));color:var(--workshop-ink);box-shadow:0 3px 0 var(--workshop-shadow),0 6px 12px #050b1755;border:0}
body[data-page=shop] .stack-list>.flow-row{background:linear-gradient(120deg,#34594eef,#173d3cec);border-top:1px solid #d9e7c529;box-shadow:0 4px 0 #082b2a88,0 7px 14px #06231e66;padding:12px 10px;margin-bottom:9px;border-radius:5px 20px 5px 5px}
body[data-page=shop] .supply-medal{background:#9ec6ab22;color:#d1e6b9;box-shadow:inset 0 0 0 1px #b7d3a73a,0 4px #0d302b66;border-radius:7px 16px 7px 7px}
body[data-page=shop] .flow-row small{color:#bad3c5}
.hall-facilities .hall-facility{min-height:100px;isolation:isolate;overflow:hidden;background-size:cover;background-repeat:no-repeat;border:0;box-shadow:0 5px 0 #10232c,0 12px 22px #051b245c}
.hall-facilities .facility-forge{background-image:linear-gradient(90deg,#29203bf5,#2f2041b3 55%,#2b193130),url('../../art/ui/cubing-workshop.webp');background-position:50% 30%}
.hall-facilities .facility-shop{background-image:linear-gradient(90deg,#163933f5,#183c32aa 55%,#193f3420),url('../../art/ui/crafting-workshop.webp');background-position:50% 34%}
.hall-facilities .hall-facility .facility-copy{position:relative;z-index:1;text-shadow:0 2px 6px #000a}.hall-facilities .hall-facility .facility-copy strong{color:#f3eee0}.hall-facilities .facility-forge .facility-copy small{color:#d5b9db}.hall-facilities .facility-shop .facility-copy small{color:#bad7b3}
.hall-facilities .facility-forge .facility-medal{background:linear-gradient(135deg,#6b4c6c,#392d4b);color:#eccee9;box-shadow:0 4px #221831,0 7px 12px #160e2955}.hall-facilities .facility-shop .facility-medal{background:linear-gradient(135deg,#62846b,#284b43);color:#e4e6c5;box-shadow:0 4px #0e302c,0 7px 12px #0b292355}
@media(max-height:700px){.workshop-vista{height:76px}.hall-facilities .hall-facility{min-height:86px}body[data-page=forge] .forge-execute{padding:7px}}

/* The workbench starts below the NPC. Compact selection leaves room for the
   scrollable settings and the fixed cost/action row, including at 320 x 640. */
main[data-page=forge]:has(.forge-work)>.page-heading{display:none}
body[data-page=forge] .forge-selected{padding:7px 9px;gap:12px}
body[data-page=forge] .forge-selected .forge-selected-card{--slot-edge:60px;--slot-row:64px;grid-template-columns:64px;grid-auto-rows:64px;gap:0;padding:0}
body[data-page=forge] .forge-selected .inventory-card{padding:0;gap:0}
body[data-page=forge] .forge-selected .inventory-art{height:61px;aspect-ratio:auto;flex:1}
body[data-page=forge] .forge-selected .inventory-card>strong,body[data-page=forge] .forge-selected .inventory-card>small{display:none}
body[data-page=forge] .forge-selected>div:last-child{min-width:0;gap:4px;flex:1}
.forge-item-name{font-size:13px;line-height:17px;color:#f0e2df;overflow-wrap:anywhere}
body[data-page=forge] .forge-selected small{font-size:9px}
body[data-page=forge] .forge-selected .button-row{display:flex;gap:6px;margin:0;width:100%}
body[data-page=forge] .forge-selected .button-row button{min-height:29px;font-size:10px;padding:4px 8px;flex:1}
body[data-page=forge] .forge-execute .cost-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:9px;margin:0}
body[data-page=forge] .forge-execute .cost-row>span{flex:1;min-width:0;font-size:11px;line-height:1.6}
body[data-page=forge] .forge-execute .cost-row small{font-size:10px}
body[data-page=forge] .forge-execute .cost-row>button{flex:none;width:auto;min-width:76px;min-height:38px;padding:7px 12px;font-size:12px}
body[data-page=forge] .forge-execute:has(>.condition){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 9px}
body[data-page=forge] .forge-execute:has(>.condition)>.cost-row{grid-column:1/-1}
body[data-page=forge] .forge-execute>.condition{margin:0;font-size:10px;line-height:1.3}
body[data-page=forge] .forge-execute>button{min-height:27px;font-size:10px;padding:3px 9px}
@media(max-height:700px){main[data-page=forge]:has(.forge-work){gap:7px}body[data-page=forge] .forge-selected{padding:5px 7px;gap:9px}main[data-page=forge] .forge-work{gap:6px;padding:9px}}
@media(max-height:700px){main[data-page=forge] .forge-settings h2{font-size:16px;margin:2px 0 6px}main[data-page=forge] .forge-settings p{font-size:11px;line-height:1.4;margin:6px 0}main[data-page=forge] .forge-settings .term{min-height:0}}
