#public-layers-control { position: relative; align-self: flex-end; color: #f1f5f9; }
.public-map-controls.public-layers-open { z-index: 25; }
#public-layers-control[hidden], #public-layers-panel[hidden] { display: none !important; }
#public-layers-control button { font: inherit; cursor: pointer; color: inherit; }
#public-layers-button { min-height: 44px; padding: 10px 17px; border: 1px solid #475569; border-radius: 10px; background: rgba(17,24,39,.96); font-size: 14px; font-weight: 700; box-shadow: 0 4px 16px #0003; }
#public-layers-button[aria-expanded="true"] { border-color: #60a5fa; background: #1e3a5f; }
#public-layers-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 24px)); max-height: min(60dvh, 520px); display: flex; flex-direction: column; padding: 14px; border: 1px solid #475569; border-radius: 14px; background: #111827; box-shadow: 0 12px 40px #0006; z-index: 40; }
.public-layers-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.public-layers-heading h2 { margin: 0; font-size: 17px; }
.public-layers-heading button { min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: #1e293b; font-size: 24px; }
.public-layers-hint, .public-layers-summary { margin: 8px 0; font-size: 12px; line-height: 1.4; color: #cbd5e1; }
.public-layers-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 10px; }
.public-layers-actions button { min-height: 40px; padding: 7px 10px; border: 1px solid #475569; border-radius: 8px; background: #1e293b; font-size: 12px; }
.public-layers-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.public-layer-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 4px; border-bottom: 1px solid #ffffff12; cursor: pointer; }
.public-layer-row input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: #60a5fa; cursor: pointer; }
.public-layer-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; }
.public-layer-count { color: #94a3b8; font-size: 11px; }
#public-layers-control :focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; }
.v21-presentation #public-layers-control { display: none !important; }
@media (max-width: 600px) {
    #public-layers-panel { top: auto; bottom: calc(100% + 8px); max-height: min(55dvh, 440px); }
}
@media (max-height: 600px) {
    #public-layers-panel { position: fixed; top: 12px; bottom: 12px; right: 12px; max-height: none; }
}
