/* Only the new villager panel and resource explanation; no global HUD overrides. */
.s409-village{padding:12px;border:1px solid #bda46b44;border-radius:12px;background:#101f29cc;display:grid;gap:10px;color:#f3e6ce}
.s409-village header{display:flex;align-items:center;justify-content:space-between;gap:8px}.s409-village h3{font-size:16px;margin:0}.s409-village header>strong{font-size:12px;color:#d7c493}
.s409-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(60px,1fr));gap:6px}.s409-counts>span{display:grid;gap:2px;text-align:center;background:#07131a77;border-radius:8px;padding:8px 4px}.s409-counts b{font-size:16px;font-variant-numeric:tabular-nums}.s409-counts small{font-size:11px;color:#c4cdd0}
.s409-village .s409-primary,.s409-village article button,.s409-village select{min-height:44px;border:1px solid #b69b6555;border-radius:8px;background:#28494b;color:#fff1d8;padding:8px 12px;font:600 13px system-ui}
.s409-village button:disabled{opacity:.55}.s409-village :is(button,select,summary):focus-visible,.s409-resource-flow summary:focus-visible{outline:2px solid #9edce0;outline-offset:2px}
.s409-village summary,.s409-resource-flow summary{cursor:pointer;min-height:44px;padding:12px 3px;font:600 12px/20px system-ui}.s409-village details{border-top:1px solid #c4ad7433}.s409-village p,.s409-resource-flow p{font-size:12px;line-height:1.5;margin:4px 0 8px;color:#c9d2d3}.s409-village .s409-help{font-size:11px;color:#bdc9c9;margin:0}
.s409-workplaces{display:grid;gap:6px}.s409-workplaces article{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px;background:#07131a66;border-radius:8px}.s409-workplaces article>div{min-width:0;display:grid;gap:3px}.s409-workplaces strong{font-size:12px}.s409-workplaces small{font-size:11px;color:#c1cdce}.s409-workplaces button{flex-shrink:0}.s409-village label{display:flex;align-items:center;justify-content:space-between;font-size:12px}
.s409-resource-flow{margin:6px 0;padding:0 10px;border:1px solid #c4ad7433;border-radius:9px;background:#101f2966;color:#d8e2df}
