.lp{max-width:1680px;margin:auto}.lp-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:16px}.lp-metric{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-top:3px solid var(--muted);border-radius:13px;padding:18px;background:var(--panel);color:var(--text);text-align:left;cursor:pointer}.lp-metric strong{font-size:28px}.lp-metric.lp-alarm{border-top-color:#cd3d50}.lp-metric.lp-warning,.lp-metric.lp-near{border-top-color:#b77b13}.lp-metric.selected{outline:2px solid var(--accent)}.lp-source-status{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:var(--panel);border:1px solid var(--line);padding:13px 16px;border-radius:10px;color:var(--muted);font-size:12px}.lp-source-status small{margin-left:auto}.lp-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:18px 0}.lp-filters .field{flex:1;min-width:150px;margin:0}.lp-filters .field:first-child{flex:1.5}.lp-filters input,.lp-filters select{height:42px}.lp-display{display:flex;gap:5px}.lp-note{font-size:12px;line-height:1.7;color:var(--muted);margin:12px 0}.lp-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.lp-table-mode{grid-template-columns:1fr;margin-top:20px}.lp-stations{display:grid;gap:10px;max-height:760px;overflow:auto;padding:3px;overscroll-behavior:contain}.lp-station{display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-align:left;width:100%;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);cursor:pointer}.lp-station.selected{border-color:var(--accent);box-shadow:inset 4px 0 var(--accent);background:var(--accent-soft)}.lp-station:hover{border-color:var(--accent)}.lp-station-title{display:flex;align-items:center;gap:8px;width:100%}.lp-station-title strong{flex:1}.lp-station-title small{color:var(--muted)}.lp-river,.lp-time,.lp-trend{font-size:12px;color:var(--muted);line-height:1.5}.lp-measure{font-size:27px;font-weight:650;font-variant-numeric:tabular-nums}.lp-measure small{font-size:13px;font-weight:400}.lp-detail{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--panel);overflow:hidden;scroll-margin-top:16px}.lp-detail-head{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:24px;background:linear-gradient(120deg,var(--accent-soft),var(--panel));border-bottom:1px solid var(--line)}.lp-detail-head h2{font-size:24px;margin:8px 0}.lp-detail-head h2 small{font-size:12px;color:var(--muted)}.lp-detail-head p{margin:0;color:var(--muted);font-size:13px}.lp-current{display:flex;flex-direction:column;gap:7px;text-align:right}.lp-current strong{font-size:30px}.lp-current strong small{font-size:15px}.lp-current span,.lp-current>small{font-size:12px;color:var(--muted)}.lp-detail-body{padding:22px}.lp-periods{display:flex;gap:7px;margin-bottom:18px}.lp-plot{margin:8px -8px;touch-action:pan-y}.lp-plot svg{width:100%;height:auto;min-height:200px;display:block;overflow:visible}.lp-plot text{font:12px system-ui;fill:var(--muted)}.lp-gridline{stroke:var(--line);stroke-width:1}.lp-line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round}.lp-point{fill:var(--accent)}.lp-plot-stale .lp-line{stroke:var(--muted)}.lp-threshold{stroke-width:1.5;stroke-dasharray:7 5}.lp-threshold.lp-alarm{stroke:#cc3b51}.lp-threshold.lp-warning{stroke:#b27a16}.lp-legend{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px}.lp-legend span:before{content:'';display:inline-block;width:15px;height:3px;background:var(--muted);vertical-align:middle;margin-right:5px}.lp-legend-water:before{background:var(--accent)!important}.lp-legend-warning:before{background:#b27a16!important}.lp-legend-alarm:before{background:#cc3b51!important}.lp-probe{display:flex;flex-direction:column;gap:10px;margin-top:22px;color:var(--muted);font-size:12px}.lp-probe input{width:100%;accent-color:var(--accent);height:25px}.lp-readout{display:block;padding:12px 15px;border-radius:8px;background:var(--bg);font-size:13px;font-variant-numeric:tabular-nums}.lp-history-status{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:16px}.lp-history-status strong{color:var(--text)}.lp-callout{padding:12px;border-left:3px solid #b27a16;background:var(--bg);line-height:1.6;font-size:13px}.lp-warning{color:var(--text)}.lp-empty{padding:36px;text-align:center;color:var(--muted);line-height:1.7}.lp-data{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.lp-data summary{cursor:pointer;font-weight:600;font-size:13px}.lp-data-table{max-height:360px;overflow:auto}.lp-pagination{display:flex;gap:10px;align-items:center;justify-content:flex-end;font-size:12px;margin-top:12px}.lp-station-table{overflow:auto}.lp button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.lp .tag{white-space:normal}
@media(max-width:1150px){.lp-layout{grid-template-columns:250px minmax(0,1fr)}.lp-table-mode{grid-template-columns:1fr}.lp-detail-head{padding:18px}.lp-detail-body{padding:16px}}
@media(max-width:900px){.lp-layout{display:flex;flex-direction:column}.lp-stations{width:100%;max-height:360px;grid-template-columns:repeat(2,minmax(0,1fr))}.lp-detail{width:100%}.lp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.lp-filters input,.lp-filters select{font-size:16px}.lp-current{text-align:left}.lp-source-status small{margin:0}.lp-plot svg{min-height:150px}.lp-plot text{font-size:19px}.lp-metric{padding:13px;font-size:12px}.lp-filters .field{min-width:140px}.lp-station{padding:13px}.lp-station-title{flex-wrap:wrap}.lp-station-title strong{min-width:80px}.lp-station-title svg{display:none}.lp-periods .btn{flex:1;padding:10px 5px}.lp-detail-head h2{font-size:21px}}

.lp-metric.lp-all{border-top-color:var(--accent)}
@media(max-width:900px){.lp-metric.lp-all{grid-column:1/-1}}
