:root { --panel: rgba(255,255,255,.94); --ink: #1c2630; --muted: #5d6b78; --line: #e0e6ea; --brand: #0b6fb8; --soft: #f1f4f6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
@media (prefers-color-scheme: dark) { :root { --panel: rgba(23,31,38,.94); --ink: #e8edf1; --muted: #98a6b2; --line: #2a343d; --brand: #4aa3e0; --soft: #1e2830; } }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #0e1419; color: var(--ink); }
#map { position: absolute; inset: 0; }

.panel, .info, .legend, .readout, .toast { background: var(--panel); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.panel { position: absolute; top: 12px; left: 12px; z-index: 10; width: 300px; max-height: calc(100% - 24px); overflow-y: auto; padding: 12px 14px; }
.panel.collapsed { width: auto; padding: 6px; }
.panel.collapsed #panelBody { display: none; }
.toggle { float: right; border: 0; background: var(--soft); color: var(--ink); border-radius: 8px; width: 32px; height: 32px; font-size: 1rem; cursor: pointer; }
h1 { font-size: 1.02rem; line-height: 1.25; margin: 0 0 3px; padding-right: 36px; }
.tag { background: var(--brand); color: #fff; border-radius: 6px; padding: 1px 7px; font-size: .72rem; vertical-align: middle; }
.sub { margin: 0 0 8px; color: var(--muted); font-size: .76rem; }
.group { padding: 9px 0; border-top: 1px solid var(--line); }
h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 7px; }
h2 .src { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.btn { border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 8px; padding: 6px 10px; font-size: .8rem; cursor: pointer; }
.btn:hover { border-color: var(--brand); }
.btn[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.seg button { flex: 1; padding: 6px 0; border: 0; border-right: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: .82rem; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 700; }
.slider { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.slider input { flex: 1; min-width: 0; }
.opt { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: .85rem; cursor: pointer; }
.opt small { color: var(--muted); }
.hint { font-size: .72rem; color: var(--muted); margin: 6px 0 0; }

.info { position: absolute; right: 12px; bottom: 74px; z-index: 10; width: 330px; max-height: 46%; overflow-y: auto; padding: 12px 14px; font-size: .84rem; }
.info h3 { margin: 0 0 2px; font-size: 1.05rem; }
.info .muted, .muted { color: var(--muted); font-size: .78rem; }
.info .x { float: right; border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.grid div { background: var(--soft); border-radius: 8px; padding: 6px 8px; }
.grid b { display: block; font-size: .95rem; }
.grid span { font-size: .68rem; color: var(--muted); }
.bar { display: flex; height: 18px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(0,0,0,.2); margin: 2px 0 6px; }
.bar i { display: block; height: 100%; }
.bl { font-size: .72rem; color: var(--muted); }

.readout { position: absolute; right: 12px; bottom: 34px; z-index: 10; padding: 5px 10px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.legend { position: absolute; right: 12px; top: 12px; z-index: 10; padding: 8px 12px; font-size: .78rem; max-width: 250px; }
.legend summary { cursor: pointer; font-weight: 700; }
.legend ul { list-style: none; margin: 6px 0 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 7px; padding: 1px 0; }
.legend .inline { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.sw { width: 15px; height: 11px; border-radius: 2px; border: 1px solid rgba(0,0,0,.3); flex: none; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); flex: none; }
.toast { position: absolute; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 20; padding: 8px 14px; font-size: .84rem; }
.maplibregl-popup-content { font-size: .82rem; line-height: 1.35; padding: 9px 12px; }
.maplibregl-popup-content b { display: block; }

@media (max-width: 760px) {
  .panel { width: calc(100% - 24px); max-height: 48%; }
  .info { width: calc(100% - 24px); max-height: 38%; }
  .legend { top: auto; bottom: 56px; right: 12px; max-width: 170px; font-size: .72rem; }
  .readout { display: none; }
}


ul.inline .lt{display:block!important;flex-basis:100%;font-size:.74rem;line-height:1.35;margin-bottom:2px}ul.inline small{color:var(--muted)}
