/* Shared map symbols double as the layer key inside the compact drawer. */
#xp-sheet .ml-surfaces {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 4px; background: none; border: 0; padding: 0; box-shadow: none;
}
.ml-surfaces label {
  min-height: 42px; border-radius: 9px; background: #f0f2e9;
  display: flex; gap: 5px; align-items: center; justify-content: center;
  font-size: .84rem; color: #374c3d; border: 1px solid #dce1d4; cursor: pointer;
}
.ml-surfaces label:has(:checked) { color: #fff; background: #295440; border-color: #295440; }
.ml-surfaces input, .ml-vectors input { accent-color: #315b44; margin: 0; flex: 0 0 auto; }
.ml-surfaces input:checked { accent-color: #497457; }
.ml-vectors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 10px; margin-top: 9px; }
#xp-sheet #layer-panel .ml-vectors label {
  display: flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 4px 0; font-size: .85rem; line-height: 1.2; cursor: pointer;
}
.ml-vectors i { width: 15px; height: 0; flex: 0 0 15px; border-top: 2px solid; }
.ml-limit { color: #a95644; } .ml-water { color: #009dde; } .ml-road { color: #c98c38; }
.ml-vectors .ml-front { border-top: 2px dashed #ae852e; }
.ml-vectors :is(.ml-app,.ml-reserve,.ml-flat) { height: 9px; border: 1px solid; border-radius: 2px; }
.ml-app { color: #58989a; background: #d6eae6; } .ml-reserve { color: #836c91; background: #e5dce8; }
.ml-flat { color: #38816c; background: #a3cbb7; } .ml-contour { color: #ae852e; }
.ml-index-label { display: grid; place-items: center; border-radius: 4px; background: #fff5dce0;
  color: #513f22; font: 600 11px/1 var(--xp-ui); pointer-events: none; }
.ml-contour-note,.ml-message { color:#526252; line-height:1.45; font-size:.82rem; margin:8px 0 0; }
#layer-panel:not(:has([data-layer="curva"]:checked)) .ml-contour-note { display:none; }
.ml-opacity { display:grid; grid-template-columns:auto minmax(50px,1fr) 40px; align-items:center; gap:10px; }
#xp-sheet #layer-panel .ml-opacity label { min-height:38px; border:0; font-size:.82rem; }
.ml-opacity input { width:100%; accent-color:#385c43; }
.ml-opacity output { text-align:right; font-size:.8rem; }
.ml-slope-key { display:grid; grid-template-columns:repeat(5,1fr); gap:3px; }
.ml-slope-key span { font-size:.72rem; border-top:5px solid #a9d18e; }
.ml-slope-key span:nth-child(2) { border-color:#d6e9b2; }
.ml-slope-key span:nth-child(3) { border-color:#fff1b8; }
.ml-slope-key span:nth-child(4) { border-color:#f2d3ab; }
.ml-slope-key span:nth-child(5) { border-color:#d9b5a6; }
body[data-map-roads="off"] .xp-access-key span:first-child,
body[data-map-fronts="off"] .xp-access-key span:nth-child(2),
body[data-map-roads="off"][data-map-fronts="off"] .xp-access-key { display: none; }
@media (max-width:380px) {
  #xp-sheet #layer-panel .ml-vectors label { gap:4px; font-size:.8rem; }
  .ml-surfaces label { gap:3px; font-size:.78rem; }
}
