.map-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px}.map-sidebar{background:#fff;border:1px solid #d8ddce;border-radius:8px;padding:14px;min-width:0}.map-sidebar input{width:100%;box-sizing:border-box;margin-top:8px;padding:10px}.map-sidebar #state-list{height:65vh;overflow:auto}.state-row{display:flex;align-items:center;border-bottom:1px solid #e5e7df;gap:8px}.state-row button{flex:1;border:0;background:transparent;color:#203d30;text-align:left;padding:10px;cursor:pointer;min-width:0}.state-row small{display:block;color:#6b7563;overflow-wrap:anywhere}.state-row a{font-size:.8rem;padding:10px;white-space:nowrap}.state-row.active{background:#fff0bc;border-left:4px solid #a98445}.map-panel{min-width:0}.map-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.map-toolbar button{background:#203d30;color:white;border:0;border-radius:5px;padding:10px 15px;cursor:pointer}.map-toolbar label{font-size:.9rem}.map-frame{background:#b5cfd4;border:1px solid #91a8a7;border-radius:8px;overflow:hidden}.map-frame svg{display:block;width:100%;height:65vh;touch-action:none;cursor:grab}.map-frame svg:active{cursor:grabbing}#selection{min-height:1.5em}button:focus-visible,a:focus-visible{outline:3px solid #a98445;outline-offset:2px}@media(max-width:760px){.map-layout{grid-template-columns:1fr}.map-sidebar #state-list{height:180px}.map-frame svg{height:55vh;min-height:300px}.map-sidebar{order:0}.map-panel{order:1}}

.map-toolbar select{max-width:100%;padding:9px;border:1px solid #b7c0af;border-radius:5px;background:#fff;color:#203d30}.map-legend{font-size:.9rem;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.resource-scale{display:inline-block;width:150px;height:14px;background:linear-gradient(to right,#e2f1e4,#0f5a41);border:1px solid #9aaca0}.zero-swatch{display:inline-block;width:14px;height:14px;background:#e1e1d8;border:1px solid #9aaca0}.owner-swatch{display:inline-block;width:10px;height:10px;border:1px solid #758071;margin-right:3px}.state-row .state-mode-value{color:#344b38;font-size:.83rem;margin-top:5px}.ownership-warning{color:#854000}

#country-filter-control{margin-top:14px}#country-filter{width:100%;box-sizing:border-box;padding:8px;margin-top:5px}#zero-resource-control{margin-top:12px;font-size:.9rem}#zero-resource-control:not([hidden]){display:flex;align-items:center;gap:6px}#show-zero-resources{width:auto;margin-right:5px}#country-labels text{fill:#172e26;stroke:#fff9e7;stroke-width:3px;paint-order:stroke;stroke-linejoin:round;font-weight:700;text-anchor:middle;dominant-baseline:central;letter-spacing:.02em}

.map-layout input[type="checkbox"]{width:14px;min-width:14px;height:14px;flex:0 0 14px;margin:0;padding:0}.map-toolbar label:has(input[type="checkbox"]){display:inline-flex;align-items:center;gap:6px}
