#minimap{width:115px;height:85px;touch-action:none}
#atlas {position:fixed;inset:auto;margin:0;width:min(480px,calc(100vw - 12px));height:min(310px,84vh);
  max-width:100vw;max-height:100vh;box-sizing:border-box;padding:2px;overflow:hidden;
  border:1px solid #bd9a60;border-radius:3px;background:#44362a;color:#f0e2c5}
#atlas[open]{display:flex;flex-direction:column}
#atlas header {display:flex;align-items:center;flex:0 0 34px;gap:0;color:#f0e2c5;touch-action:none}
#atlas header strong{flex:1;text-align:left;padding:0 7px;font:16px Georgia,serif}
#atlas header button{color:inherit;font:12px Georgia,serif;border:0;background:none;padding:0 7px;height:34px}
#atlas canvas {display:block;flex:1 1 0;min-width:0;min-height:0;width:100%;touch-action:none}
.atlas-flag-editor{padding:16px;width:min(296px,92vw);border:1px solid #a38454;color:#352a1f;background:#e8ddc2}
.atlas-flag-editor strong,.atlas-flag-editor input{display:block;width:100%;box-sizing:border-box;margin:0 0 8px}
.map-swatches,.atlas-flag-editor footer{display:flex;gap:2px}.map-swatches button{flex:1;min-height:32px;border:2px solid #403328}
.atlas-flag-editor footer{justify-content:flex-end;margin-top:10px}.atlas-flag-editor footer button{color:#382c21;background:#efe2c7;border:1px solid #967b53;padding:5px 9px}
