.ipy-world {
    color-scheme: dark;
    color: #fff;
    background: #151d2b;
    border: 1px solid #718198;
    border-radius: 14px;
    padding: clamp(.7rem, 2vw, 1.25rem);
    font: 1rem/1.5 system-ui, sans-serif;
}
.ipy-world *, .ipy-world *::before, .ipy-world *::after { box-sizing: border-box; }
.ipy-world [hidden] { display: none !important; }
.ipy-world h2, .ipy-world h3, .ipy-world h4 { color: #fff; line-height: 1.25; margin: .6rem 0; }
.ipy-world h2 { font-size: clamp(1.55rem, 4vw, 2.15rem); margin: 0 0 1rem; }
.ipy-world h3 { font-size: 1.35rem; }
.ipy-world h4 { font-size: 1.1rem; }
.ipy-world p { margin: .45rem 0; color: inherit; }
.ipy-world a { color: #aee9ff; text-decoration: underline; }
.ipy-world button, .ipy-world input {
    font: inherit;
    min-height: 44px;
    max-width: 100%;
    border: 1px solid #96abc4;
    border-radius: 6px;
    margin: 0;
}
.ipy-world button {
    cursor: pointer;
    background: #25394f;
    color: white;
    padding: .38rem .7rem;
    text-align: start;
    overflow-wrap: anywhere;
    text-transform: none;
}
.ipy-world button:hover { background: #385573; }
.ipy-world button[aria-pressed="true"], .ipy-world-search button {
    background: #aee9ff;
    color: #0b2738;
    border-color: #aee9ff;
    font-weight: 700;
}
.ipy-world button:disabled { opacity: .7; cursor: default; }
.ipy-world :focus-visible { outline: 3px solid #ffe271; outline-offset: 2px; }
.ipy-world input { background: #0e1723; color: #fff; width: 100%; padding: .45rem .65rem; }
.ipy-world input::placeholder { color: #b6c4d6; }
.ipy-world-toolbar, .ipy-world-actions, .ipy-world-search div { display: flex; flex-wrap: wrap; gap: .55rem; }
.ipy-world-search { margin: .95rem 0 .45rem; }
.ipy-world-search label { display: block; font-weight: 650; margin-bottom: .3rem; }
.ipy-world-search input { flex: 1 1 14rem; }
.ipy-world-status { color: #c8e8f5; min-height: 1.45em; }
.ipy-world-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(15rem, 2fr); gap: 1rem; align-items: start; }
.ipy-world-layout > * { min-width: 0; }
.ipy-world-map {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: clamp(310px, 60vh, 580px);
    border: 1px solid #86a8bc;
    border-radius: 8px;
    background: #bce9ff;
    color: #17202b;
}
.ipy-world-map .ol-zoom { z-index: 4; }
.ipy-world-map .ol-zoom button {
    min-width: 44px; min-height: 44px;
    padding: 0; text-align: center; background: #192b3c; color: #fff;
}
.ipy-world-map .ipy-world-overlay { position: absolute; inset: 0; pointer-events: none; }
.ipy-world-map .ipy-world-pin {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid #fff; box-shadow: 0 0 0 2px #171d23;
    background: #b61736;
}
.ipy-world-note, .ipy-world-muted { font-size: .9rem; color: #d0dbe7 !important; }
.ipy-world [data-card], .ipy-world [data-nearby], .ipy-world [data-results] {
    background: #202b3d;
    border: 1px solid #607895;
    border-radius: 8px;
    padding: .75rem;
    margin: 0 0 .75rem;
}
.ipy-world ul, .ipy-world ol { padding-inline-start: 1.4rem; margin: .35rem 0 .7rem; }
.ipy-world li { margin: .35rem 0; }
.ipy-world li button { width: 100%; }
.ipy-world li small { display: block; color: #d6e3f1; }
.ipy-world dl { margin: .7rem 0; }
.ipy-world dt { font-weight: 700; }
.ipy-world dd { margin: 0 0 .55rem; }
.ipy-world details { margin: .6rem 0; }
.ipy-world summary { cursor: pointer; min-height: 44px; padding: .55rem .1rem; }
@media (max-width: 790px) { .ipy-world-layout { grid-template-columns: 1fr; } }
.ipy-world-map .ipy-world-overlay { z-index: 1; }
.ipy-world-map .ol-overlaycontainer { z-index: 2 !important; }
.ipy-world-map .ol-overlaycontainer-stopevent { z-index: 3 !important; }
.ipy-world-map .ipy-world-pan {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    grid-template-columns: repeat(3, 44px);
    grid-template-rows: repeat(3, 44px);
    gap: 2px;
    pointer-events: auto;
}
.ipy-world-map .ipy-world-pan button {
    width: 44px;
    min-height: 44px;
    padding: 0;
    text-align: center;
    background: #101923;
    color: #fff;
    font-size: 1.3rem;
}
.ipy-world-map .ipy-world-pan button:hover { background: #385573; }
.ipy-world-pan [data-direction="up"] { grid-area: 1 / 2; }
.ipy-world-pan [data-direction="left"] { grid-area: 2 / 1; }
.ipy-world-pan [data-direction="right"] { grid-area: 2 / 3; }
.ipy-world-pan [data-direction="down"] { grid-area: 3 / 2; }

.ipy-world-label-size {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: .5rem;
}
.ipy-world-label-size select {
    font: inherit;
    color: #fff;
    background: #25394f;
    border: 1px solid #96abc4;
    border-radius: 6px;
    min-height: 44px;
    padding: .35rem .55rem;
}
