#sveg-ensemble {
    box-sizing: border-box; width: 100%; margin: 0 0 18px;
    background: rgba(35,60,70,.45); border: 1px solid rgba(160,210,225,.28); border-radius: 14px;
}
#sveg-ensemble > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; list-style: none; cursor: pointer; font-size: 16px;
    font-weight: 600; color: #e4edf0;
}
#sveg-ensemble > summary::-webkit-details-marker { display: none; }
#sveg-ensemble > summary::after { content: "▸"; font-size: 14px; color: #a7bfc9; }
#sveg-ensemble[open] > summary::after { content: "▾"; }
#sveg-ensemble :focus-visible { outline: 2px solid #a7cbd9; outline-offset: 3px; }
#sveg-ensemble .ensemble-content { padding: 0 18px 12px; min-width: 0; text-align: left; }
#sveg-ensemble .ensemble-note, #sveg-ensemble .ensemble-sources { color: #bfd0d9; font-size: .87rem; line-height: 1.55; }
#sveg-ensemble a { color: inherit; }
#ensemble-horizon {
    font: inherit; color: #e4edf0; background: #18313d; border: 1px solid #607988;
    padding: 7px 8px; border-radius: 7px; margin: 0 0 0 6px; max-width: 100%;
}
#sveg-ensemble .ensemble-sources {
    list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px;
}
#sveg-ensemble .ensemble-key { display: inline-block; width: 19px; margin-right: 6px; vertical-align: middle; border-top: 2px solid; }
#sveg-ensemble .ensemble-smhi { border-top-style: dashed; }
#sveg-ensemble .ensemble-met { border-top-style: dashed; }
#sveg-ensemble .ensemble-openmeteo { border-top-style: dotted; }
#sveg-ensemble .ensemble-mean { border-top-width: 4px; }
#ensemble-chart { display: block; width: 100%; height: clamp(180px, 32vw, 280px); }
#ensemble-chart[hidden], #ensemble-table[hidden] { display: none; }
#ensemble-table { overflow: auto; max-height: 370px; margin-top: 12px; }
#ensemble-table table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
#ensemble-table th, #ensemble-table td { padding: 7px 6px; border-bottom: 1px solid #546d7a; text-align: right; }
#ensemble-table th:first-child, #ensemble-table td:first-child { text-align: left; }
#ensemble-table thead th { position: sticky; top: 0; background: #18313d; }
@media (max-width: 650px) {
    #sveg-ensemble .ensemble-content { padding-inline: 10px; }
    #ensemble-table th, #ensemble-table td { padding: 6px 4px; }
}
