/* Presentation layout: overview, observation map, supporting information. */
.dashboard+.settings{margin-top:20px}
.settings-body>.tools-bar{width:100%;margin:0;padding-bottom:18px;border-bottom:1px solid var(--border)}
:root{--bg:#f3f6fa;--navy:#172b46;--navy-soft:#4b6079;--muted:#65768c;--border:#dce4ed}
body{font-size:14px;line-height:1.5;font-variant-numeric:tabular-nums}
.page{max-width:1520px;padding:28px 32px 24px}
.top-bar{border-radius:0;background:transparent;padding:0 0 22px;border-bottom:2px solid #172b46;margin-bottom:22px;gap:16px}
.brand-badge{height:44px;width:5px;background:var(--risk)}
.brand-title{font-size:27px;color:var(--navy);letter-spacing:-1px}
.brand-sub{color:var(--muted);font-size:12px;margin-top:5px}
.brand{flex:1;min-width:280px}.mode-toggle{background:#e5ebf2;border-radius:6px}.mode-btn{color:#52647c;padding:8px 16px}.mode-btn:hover{color:#172b46}
.update-time{width:100%;color:var(--muted);background:transparent;padding:0 0 0 17px;font-size:12px;font-weight:500}
.road-menu{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;border-radius:8px;padding:18px 22px;margin-bottom:14px;box-shadow:none}
.section-label{font-size:12px;color:var(--muted)}.road-buttons{margin:0;gap:8px;flex:1}.road-btn{border-radius:6px;font-size:13px;padding:12px 15px}.road-btn.active{box-shadow:inset 0 -2px 0 var(--accent)}
.road-menu>label{font-size:12px;font-weight:700;white-space:nowrap}#observationDate{padding:9px 12px;background:#fff;color:var(--navy)}
.archive-note{width:100%;border-top:1px solid #edf1f5;padding-top:10px;font-size:11px;color:var(--muted)}
.tools-bar{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0 2px;margin-bottom:20px;align-items:center;gap:22px}.tool-group.grow{gap:8px}.tool-label{font-size:11px}.tool-row{gap:12px}.time-slider{height:6px}.export-btn{padding:10px 18px}
.dashboard{grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:stretch}.card{padding:20px;border-radius:8px;box-shadow:none}.right-card{grid-column:1;grid-row:1;min-height:560px}.left-card{grid-column:2;grid-row:1;min-width:0}.card-head{margin-bottom:16px}.card-head h2{font-size:15px;letter-spacing:-.4px}.head-bar{height:14px;width:3px;background:var(--risk)}.head-meta{font-size:11px;font-weight:400}.left-card>.head-meta{margin:0 0 18px;padding-bottom:16px;border-bottom:1px solid var(--border);line-height:1.6}.summary-metrics{margin:0}.summary-metrics>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid #edf1f5}.summary-metrics dt{color:var(--muted);font-size:12px}.summary-metrics dd{margin:0;font-size:21px;font-weight:700;white-space:nowrap}.card-head.sub{margin-top:26px}
.status-table td{padding:12px 7px!important;border-color:#e5ebf2!important}.status-label{font-size:11px}.status-dot{height:8px;width:8px;margin:12px auto}.status-text{font-size:12px}.status-sub{font-size:11px;overflow-wrap:anywhere}.method-note{margin-top:24px;font-size:11px;color:var(--muted);line-height:1.8}.method-note strong{color:var(--navy-soft);font-size:12px}.method-note p{margin:8px 0}
#mapWrap{min-height:470px;border-radius:6px}#map{height:100%;min-height:470px}.map-legend{border-radius:6px;padding:12px 14px;min-width:180px;box-shadow:0 2px 8px #172b4614}.legend-bar{height:7px}.legend-scale{font-size:10px}.leaflet-control-layers{padding:7px!important}.leaflet-popup-content{line-height:1.7!important;margin:18px!important}.popup-title{font-size:14px;border-bottom:1px solid var(--border);padding-bottom:10px;margin-bottom:10px}.popup-row{font-size:12px}.popup-section{font-size:12px;font-weight:700;margin-top:12px;padding-top:10px;border-top:1px solid var(--border)}.popup-note{font-size:10px;color:var(--muted);margin:5px 0 8px}.popup-sat{height:130px;border-radius:5px}.popup-sat .leaflet-control-attribution{display:block;font-size:8px}
.settings{margin-top:16px;border:1px solid var(--border);border-radius:8px;background:#fff}.settings summary{padding:15px 20px;cursor:pointer;font-size:12px;font-weight:700}.settings summary span{font-size:11px;color:var(--muted);font-weight:400;margin-left:16px}.settings-body{border-top:1px solid var(--border);padding:20px;display:flex;gap:20px;flex-wrap:wrap}.settings .file-bar{width:100%;border:0;border-top:1px solid var(--border);border-radius:0;padding:18px 0 0;margin:0;box-shadow:none}.page-footer{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;padding-top:20px}.file-status{color:var(--navy-soft)}button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
@media(min-width:1600px){#mapWrap,#map{min-height:540px}}
@media(max-width:1000px){.page{padding:20px}.dashboard{grid-template-columns:minmax(0,1fr) 260px}.metric{padding:18px}.brand-title{font-size:24px}}
@media(max-width:760px){.page{padding:16px 12px}.dashboard{grid-template-columns:1fr}.right-card{grid-column:1;grid-row:1}.left-card{grid-column:1;grid-row:2}.road-buttons{flex-basis:100%;flex-direction:column}.road-btn{text-align:left}.brand-title{font-size:22px}.update-time{padding:0}.card{padding:15px}.settings summary span{display:block;margin:5px 0 0}.head-meta{max-width:48%;text-align:right}.left-card>.head-meta{max-width:100%;text-align:left}.page-footer{gap:15px}#mapWrap,#map{min-height:420px}}
@media print{.settings,.tools-bar,.mode-toggle{display:none!important}.page{padding:0}.dashboard{break-inside:avoid;grid-template-columns:1fr 260px}.page-footer{padding-top:10px}}

/* 위험/주의 2단계 판정을 위한 보강 스타일 */
.map-legend .legend-row+.legend-row{margin-top:3px}

/* 관측 구간 온도 추이 차트 */
.trend-card{margin:0 0 20px}
.trend-chart-wrap{width:100%}
.trend-legend{display:flex;gap:16px;margin-bottom:8px}
.trend-legend-chip{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);font-weight:600}
.trend-legend-chip i{width:9px;height:9px;border-radius:2px;display:inline-block}
.trend-plot-wrap{position:relative}
.trend-svg{width:100%;height:190px;display:block;cursor:crosshair}
.trend-axis-label{font-size:10px;fill:var(--muted)}
.trend-th-label{font-size:10px;font-weight:700}
.trend-empty{padding:30px 0;text-align:center;color:var(--muted);font-size:12px}
.trend-tooltip{position:absolute;pointer-events:none;background:var(--card,#fff);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 20px rgba(23,43,70,.12);padding:9px 11px;min-width:140px;z-index:5;font-size:11.5px}
.trend-tooltip-time{font-weight:700;color:var(--navy);margin-bottom:5px;font-size:11px}
.trend-tooltip-row{display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--muted);padding:1px 0}
.trend-tooltip-row b{color:var(--navy);font-weight:700}
.trend-tooltip-hint{margin-top:6px;padding-top:6px;border-top:1px solid var(--border);font-size:10px;color:var(--accent)}
@media(max-width:760px){.trend-svg{height:150px}.trend-legend{gap:10px;flex-wrap:wrap}}
@media print{.trend-card{break-inside:avoid}.trend-tooltip{display:none!important}}
