
.climate-app{max-width:1600px;margin:auto;padding:24px;color:var(--ink,#172126);font:14px/1.5 Arial,Helvetica,sans-serif}
.climate-app *{box-sizing:border-box}.climate-app [hidden]{display:none!important}
.climate-app h2{font-size:25px;letter-spacing:-.7px;margin:0}.climate-app h3{font-size:17px;margin:0 0 12px}.climate-app h4{font-size:14px;margin:0 0 8px}
.climate-app p{margin:8px 0}.climate-app button,.climate-app input,.climate-app select{font:inherit;border:1px solid var(--line);border-radius:5px;padding:8px 11px;background:var(--panel);color:var(--ink)}
.climate-app button{cursor:pointer}.climate-app button:hover{border-color:var(--accent);background:#eef8fa}.climate-app button:focus-visible,.climate-app input:focus-visible,.climate-app select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.climate-app button.active{background:var(--accent);color:white;border-color:var(--accent)}
.climate-app label{display:grid;gap:4px;font-size:12px;color:var(--muted);font-weight:600}.climate-app .ce-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:16px 0}
.ce-eyebrow{text-transform:uppercase;letter-spacing:1.7px;font-size:10px;font-weight:bold;color:var(--accent)}
.ce-muted{color:var(--muted)}.ce-small{font-size:12px}.ce-panel{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:20px;margin-bottom:16px}
.ce-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.ce-card{border:1px solid var(--line);border-radius:7px;padding:14px;background:var(--panel)}.ce-value{font-size:27px;font-weight:600;letter-spacing:-.8px;color:var(--accent-strong)}
.ce-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,.7fr);gap:16px}.ce-map{width:100%;height:auto;max-height:460px;background:#e7eff1;border-radius:7px}
.ce-map .ce-boundary{fill:#f8fbfc;stroke:#9cb4be;stroke-width:1.2}.ce-map circle{stroke:white;stroke-width:1.1;cursor:pointer}.ce-map circle:hover,.ce-map circle:focus{stroke:#122b37;stroke-width:3;outline:none}
.ce-stations{max-height:350px;overflow:auto;display:grid;gap:4px}.ce-stations button{text-align:left;display:flex;justify-content:space-between;gap:12px}
.ce-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}.ce-tabs{display:flex;gap:5px;overflow-x:auto;padding:0 0 14px;margin:10px 0}.ce-tabs button{white-space:nowrap;font-size:12px;text-transform:uppercase;letter-spacing:.5px}
.ce-warning{background:#fff3db;color:#775019;padding:6px 10px;border-radius:5px;font-size:12px}.ce-badge{display:inline-block;padding:2px 6px;border-radius:4px;background:#fff3db;color:#775019;font-size:11px}
.ce-table-wrap{overflow:auto;max-width:100%;max-height:550px}.ce-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.ce-table th{background:#eef4f6;position:sticky;top:0;z-index:1;font-weight:600;color:#45616d}.ce-table td,.ce-table th{border-bottom:1px solid #e0e8eb;padding:9px;white-space:nowrap;vertical-align:top}.ce-table tr:hover td{background:#f2f9fa}
.ce-chart{width:100%;height:auto;display:block;min-height:170px}.ce-chart text{fill:#59717b;font:11px Arial}.ce-chart .ce-axis{stroke:#d8e3e7;stroke-width:1}.ce-legend{display:flex;gap:16px;font-size:12px;flex-wrap:wrap;margin:8px 0}.ce-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}
.ce-chart-panel{overflow:hidden}.ce-chart-panel details{margin-top:10px}.ce-error{border-left:4px solid #b33f1d;background:#fff4ee;padding:16px}.ce-help{font-size:12px;color:#526b76;border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.ce-help summary{cursor:pointer;font-weight:bold}.ce-help dl{display:grid;grid-template-columns:150px 1fr;gap:8px}.ce-help dt{font-weight:bold}.ce-help dd{margin:0}.ce-status{min-height:20px;color:var(--muted)}
.ce-modal{position:fixed;inset:0;background:#172126a6;z-index:10000;padding:4vh 4vw;display:flex;justify-content:center;align-items:center}.ce-modal-content{background:var(--panel);border-radius:10px;max-width:1200px;width:100%;max-height:90vh;overflow:auto;padding:22px}.ce-modal-close{float:right}
.ce-range{display:flex;align-items:center;gap:10px}.ce-range input[type=range]{min-width:180px;flex:1}.ce-colorbar{display:inline-block;width:120px;height:9px;background:linear-gradient(90deg,#346caa,#45a7b4,#e9c253,#ca5745);vertical-align:middle}
@media(max-width:760px){.climate-app{padding:12px}.ce-layout{grid-template-columns:1fr}.ce-panel{padding:14px}.ce-stations{max-height:180px}.ce-value{font-size:24px}.climate-app .ce-controls{gap:8px}.ce-heading{flex-wrap:wrap}.ce-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ce-help dl{grid-template-columns:1fr}.ce-chart{min-height:130px}.ce-modal{padding:12px}.ce-modal-content{padding:12px}.climate-app h2{font-size:22px}}

.ce-daily-svg{width:100%;height:auto;display:block;touch-action:pan-y;outline-offset:3px}.ce-daily-svg:focus{outline:2px solid var(--accent)}.ce-day-inspect{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding:12px;background:#edf4f8;font-size:12px;border-radius:5px;min-height:65px}.ce-daily-panel .ce-checkbox{display:flex;align-items:center;gap:8px}.ce-daily-panel .ce-checkbox input{width:16px;height:16px}.ce-chart-feedback{font-size:12px;color:var(--accent)}.ce-daily-panel .ce-heading button{font-size:12px;margin-bottom:5px}
@media(max-width:760px){.ce-year-main{overflow-x:auto}.ce-daily-svg{min-width:650px}.ce-day-inspect{gap:6px 12px}}

main.layout[hidden],#climateExplorer[hidden],body.auth-loading #climateExplorer,body.auth-locked #climateExplorer{display:none!important}

/* Keep station tabs in place when loading or switching to a shorter section. */
#ce-content{min-height:100vh}

.ce-chart-actions{display:flex;gap:6px;flex-wrap:wrap}.ce-chart-actions button{font-size:12px}.ce-chart-panel>.ce-heading{gap:12px;flex-wrap:wrap}.ce-export-status:not(:empty){margin:8px 0;color:var(--accent)}
