/* v1.5: workshop layout owns its sizing instead of accumulating dialog overrides. */
html[data-world="craft"] #builder {display:none!important}
.village-entry{padding:24px;background:#f8f5e9;border:1px solid #d5dfcf;border-radius:20px;color:#315449}
.village-entry h2{font-size:24px;line-height:1.2}.village-entry p{line-height:1.5}.village-entry button{width:100%;min-height:48px}
html[data-world="craft"] .craft-dialog{box-sizing:border-box;width:min(96vw,760px);height:auto;max-height:94dvh;padding:18px;border:1px solid #ffffffb0;border-radius:24px;background:#faf8ee;overflow:auto;box-shadow:0 24px 90px #173d4960;font-size:15px;text-align:left}
html[data-world="craft"] .craft-head{position:static;padding:0;background:none;min-height:36px}
html[data-world="craft"] .craft-dialog h2{font-size:22px;line-height:1.2;margin:8px 0;color:#244e48}
html[data-world="craft"] .craft-dialog p{line-height:1.4;margin:8px 0;font-size:14px}
html[data-world="craft"] .craft-view{background:#e7eddf;border:1px solid #d5dfce;padding:6px;border-radius:19px;margin-top:10px}
html[data-world="craft"] .craft-dialog #craftScene{display:block;width:100%;height:min(36dvh,310px);max-height:none;touch-action:manipulation;user-select:none}
html[data-world="craft"] .craft-hud{padding:8px;gap:6px;font-size:13px;align-items:center}
.craft-hud progress{width:100%;height:7px;accent-color:#2c8069}
html[data-world="craft"] .craft-help{min-height:0;color:#57716a;font-weight:500}
html[data-world="craft"] .craft-live-progress{min-height:20px;font-size:13px;color:#286a58;margin:6px 0}
html[data-world="craft"] .craft-dialog #craftAction{background:linear-gradient(#398b72,#256950);color:#fffdf2;border:1px solid #22634e;box-shadow:0 3px 0 #194c3d;min-height:48px;font-size:16px;margin-top:6px}
html[data-world="craft"] .craft-dialog #craftCancel{min-height:40px;font-size:14px;background:transparent;margin-top:6px}
html[data-world="craft"] .craft-toggle-projects{width:100%;min-height:44px;font-size:14px;text-align:left;background:#e7eee1;border:1px solid #c1d5be;border-radius:12px;padding:10px}
html[data-world="craft"] .craft-picks{margin:8px 0;gap:8px}
html[data-world="craft"] .craft-pick{min-height:48px;padding:10px;border-radius:13px}
html[data-world="craft"] .craft-pick b{font-size:14px}
html[data-world="craft"] .craft-pick small{font-size:12px}
html[data-world="craft"] .craft-dialog[data-state="building"] #craftDesc,html[data-world="craft"] .craft-dialog[data-state="complete"] #craftDesc{display:none}
html[data-world="craft"] .craft-dialog[data-state="complete"] #craftLiveProgress{display:none}
html[data-world="craft"] .craft-miniature{overflow:visible;filter:drop-shadow(0 5px 3px #284d4420)}
button:focus-visible{outline:3px solid #c88c32;outline-offset:3px}
@media(max-width:700px){
 html[data-world="craft"] .craft-dialog{padding:12px;border-radius:20px;max-height:96dvh}
 html[data-world="craft"] .craft-dialog h2{font-size:18px}
 html[data-world="craft"] .craft-dialog #craftScene{height:clamp(150px,30dvh,270px)}
 html[data-world="craft"] .craft-dialog[data-state="select"] #craftScene{height:19dvh}
 html[data-world="craft"] .craft-dialog p{font-size:12px}
 html[data-world="craft"] .craft-head .eyebrow{font-size:10px}
 html[data-world="craft"] .craft-pick small{display:none}
 html[data-world="craft"] .village-entry{display:none}
}
@media(max-height:500px){html[data-world="craft"] .craft-dialog #craftScene{height:130px}html[data-world="craft"] .craft-help{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
html[data-world="craft"] dialog.craft-dialog[open]{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;width:min(96vw,700px)!important;max-width:700px!important;max-height:94dvh!important;overflow:hidden!important}
.craft-content{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.craft-footer{background:#faf8ee;padding-top:4px;border-top:1px solid #dfe5d5}
html[data-world="craft"] .craft-dialog[data-state="select"] #craftScene{height:150px}
html[data-world="craft"] .craft-dialog .craft-footer #craftCancel{min-height:32px;padding:6px}
@media(max-height:500px){html[data-world="craft"] dialog.craft-dialog[open]{width:96vw!important;max-width:900px!important;grid-template-columns:1fr 200px;grid-template-rows:auto minmax(0,1fr);height:94dvh}.craft-head{grid-column:1/-1}.craft-footer{align-self:end}.craft-content{grid-column:1}.craft-dialog .craft-view{margin:0}.craft-dialog #craftHeading{font-size:16px}}
/* Quiet terrain, clear parcel states, generous building silhouettes. */
.map-world .neighbourhood>.plots>.plot.locked{background:#b7c8aa!important;border:1px solid #91aa8d!important;box-shadow:inset 0 0 22px #dce7c140!important}
.map-world .neighbourhood>.plots>.plot:not(.locked){background:linear-gradient(145deg,#d8e5bd,#b4cea5)!important;border:1px solid #8fac82!important}
.map-world .neighbourhood>.plots>.plot.occupied{background:linear-gradient(145deg,#e0e8c4,#b7cfa6)!important}
.map-world .neighbourhood>.plots>.plot.focused{outline:3px solid #edbd59!important}
.map-world .neighbourhood>.plots>.plot svg{max-height:98px!important;height:98px!important}
.map-world .neighbourhood>.plots>.plot .plot-type{color:#244b40;background:#f8f4e6de!important;border-radius:6px;font-size:10px!important}
.map-world .neighbourhood>.plots>.plot .plot-name{font-size:9px!important;color:#385e4e}
.map-world .neighbourhood>.plots>.plot.locked .empty-lot{opacity:.6}
@media(min-width:701px){.app>header{padding-block:10px;margin-bottom:4px}.resource-bar{margin-block:7px}.cockpit-side{border:1px solid #d8e1cf;border-radius:22px}.city.card{border-radius:22px}.village-entry{margin:10px 0}.craft-economy .craft-title strong{font-size:20px}}
/* Keep the collection hit target still; movement made clicks unreliable. */
.map-world .plots .plot .collect-coin{animation:none!important;min-height:28px;min-width:40px;display:grid;place-items:center;right:3px!important;top:3px!important}
.craft-desktop-shortcut{display:none!important}
