:root { color-scheme: light; --bg:#f3f6fb; --card:#fff; --text:#182238; --muted:#718096; --accent:#3478f6; --border:#e7ecf3; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,-apple-system,sans-serif; background:var(--bg); color:var(--text); }
header { background:linear-gradient(125deg,#1748a3,#418cf4); color:#fff; padding:calc(30px + env(safe-area-inset-top, 0px)) 20px 55px; }
.container { max-width:1150px; margin:auto; padding:0 18px; }
h1 { margin:0 0 8px; font-size:clamp(27px,4vw,38px); }
header p { margin:0; opacity:.85; }
.search { display:flex; gap:10px; margin-top:24px; align-items:flex-start; }
.location-field { flex:1; min-width:0; position:relative; }
input,button { font:inherit; padding:12px 15px; border-radius:10px; }
input { width:100%; border:1px solid var(--border); background:#fff; color:var(--text); }
button { cursor:pointer; border:0; background:var(--accent); color:#fff; font-weight:650; white-space:nowrap; }
header button { background:#fff; color:#1748a3; }
button:focus-visible,input:focus-visible { outline:3px solid #f59e0b; outline-offset:2px; }
.location-field input { padding-right:42px; }
.clear-btn { position:absolute; right:7px; top:23px; transform:translateY(-50%); width:30px; height:30px; padding:0; border-radius:50%; background:transparent; color:#6b7686; font-size:22px; font-weight:400; line-height:1; display:grid; place-items:center; }
.clear-btn:hover { background:#e8eef8; color:#1f2a3d; }
input:placeholder-shown + .clear-btn { display:none; }
.suggestions { position:absolute; top:calc(100% + 5px); left:0; right:0; z-index:20; background:#fff; color:var(--text); border:1px solid var(--border); border-radius:12px; box-shadow:0 12px 28px #10234424; overflow:hidden; display:none; max-height:300px; overflow-y:auto; }
.suggestions.open { display:block; }
.suggestion { width:100%; display:block; text-align:left; white-space:normal; border-radius:0; background:#fff; color:var(--text); padding:11px 14px; font-weight:500; border-bottom:1px solid #eef1f6; }
.suggestion:last-child { border-bottom:0; }
.suggestion:hover,.suggestion:focus { background:#edf4ff; }
.suggestion small { display:block; color:var(--muted); font-weight:400; margin-top:2px; }
.model-row { margin-top:12px; display:flex; align-items:center; gap:9px; flex-wrap:wrap; font-size:13px; color:#eaf1ff; }
.model-row select { font:inherit; padding:8px 12px; border-radius:10px; border:1px solid var(--border); background:#fff; color:var(--text); max-width:100%; }
.model-row select:focus-visible { outline:3px solid #f59e0b; outline-offset:2px; }
.location-note { margin-top:7px; font-size:12px; color:#eaf1ff; }
main { margin-top:-28px; padding-bottom:35px; }
.card { background:var(--card); border:1px solid var(--border); border-radius:17px; padding:21px; margin-bottom:18px; box-shadow:0 5px 20px #20395a08; }
.summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.metric { background:#f7f9fd; padding:15px; border-radius:12px; }
.metric .label { color:var(--muted); font-size:13px; }
.metric .value { font-size:clamp(20px,3vw,29px); font-weight:750; margin-top:7px; }
.section-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
h2 { font-size:19px; margin:0; }
.muted { color:var(--muted); font-size:13px; }
.chart-wrap { position:relative; height:300px; width:100%; overflow:hidden; }
.y-axis-svg { position:absolute; left:0; top:0; pointer-events:none; z-index:3; }
.plot-scroll { position:absolute; top:0; bottom:30px; overflow:hidden; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.plot-scroll.scrolls { overflow-x:auto; }
.plot-scroll::-webkit-scrollbar { display:none; }
.plot-scroll svg { display:block; }
.chart-legend { position:absolute; left:0; right:0; bottom:3px; display:flex; justify-content:center; gap:20px; font-size:12px; color:#444; }
.chart-legend .lg { display:inline-block; width:22px; height:0; border-top:3px solid #3478f6; vertical-align:middle; margin-right:6px; }
.chart-legend .lg.dash { border-top:2px dashed #f59e0b; }
.table-wrap { overflow:auto; max-height:min(70vh,580px); -webkit-overflow-scrolling:touch; }
table thead th { position:sticky; top:0; z-index:3; box-shadow:0 1px 0 var(--border); }
table thead th:first-child, table tbody td:first-child { position:sticky; left:0; z-index:2; background:#fff; box-shadow:1px 0 0 var(--border); }
table thead th:first-child { z-index:4; background:#f8faff; box-shadow:1px 0 0 var(--border), 0 1px 0 var(--border); }
table tbody tr.current-hour td:first-child { background:#edf4ff; }
table tbody tr:hover td:first-child { background:#f5f8ff; }
table { border-collapse:collapse; width:100%; white-space:nowrap; font-size:14px; }
th,td { text-align:left; padding:13px 12px; border-bottom:1px solid var(--border); }
th { color:var(--muted); font-weight:600; font-size:12px; background:#f8faff; }
tbody tr.current-hour { background:#edf4ff; }
tbody tr:hover { background:#f5f8ff; }
.weather-icon { font-size:21px; }
.outlook { margin-top:6px; border-top:1px solid var(--border); }
.outlook-toggle { width:100%; display:flex; justify-content:space-between; align-items:center; background:transparent; color:var(--accent); padding:12px 0 8px; font-size:14px; border-radius:0; }
.outlook-toggle .chev { transition:transform .2s; }
.outlook-toggle[aria-expanded="true"] .chev { transform:rotate(180deg); }
.outlook-days { display:flex; gap:8px; overflow-x:auto; padding:4px 0 6px; scrollbar-width:none; }
.outlook-days::-webkit-scrollbar { display:none; }
.day { flex:1 0 78px; text-align:center; border:1px solid var(--border); border-radius:12px; padding:10px 6px; background:#f8faff; }
.day .dn { font-size:13px; font-weight:650; }
.day .di { font-size:26px; line-height:1.4; }
.day .dt { font-size:15px; font-weight:650; }
.day .dt span { color:var(--muted); font-weight:500; }
.day .dr { font-size:12px; color:var(--muted); margin-top:3px; }
.outlook-msg { font-size:13px; color:var(--muted); padding:6px 0; }
.status:empty { display:none; }
.status { margin:14px 0; font-size:14px; color:var(--muted); }
.error { color:#ffd7d2; }
footer { color:var(--muted); font-size:12px; text-align:center; padding:10px 15px calc(28px + env(safe-area-inset-bottom, 0px)); }
footer a { color:inherit; }
@media(max-width:650px) {
  .summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .container { padding:0 12px; }
  main.container { padding:0; }
  .card { padding:12px 0; border-radius:0; border-left:0; border-right:0; }
  .card .section-head, .card .summary, .card .chart-hint, .card .outlook { padding-left:12px; padding-right:12px; }
  .card .outlook { margin-left:12px; margin-right:12px; padding-left:0; padding-right:0; }
  .chart-wrap { height:250px; }
  .chart-hint { display:block; }
  header { padding-top:calc(24px + env(safe-area-inset-top, 0px)); }
  .search { flex-wrap:wrap; gap:8px; margin-top:18px; }
  .location-field { flex-basis:100%; }
  .search > button { flex:1 1 0; min-width:0; padding:11px 6px; font-size:15px; }
}
@media(max-width:350px) {
  .search > button { flex:1 1 100%; }
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: Inter, Arial, sans-serif;
}
.brand-title {
  margin: 0;
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.brand-tagline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #eff2f4;
}
.brand-separator {
  color: #acb1b4;
  font-weight: 700;
}
.brand-credit {
  color: #eaedef;
  font-size: 9px;
  font-style: italic;
}    
.metric .value.value-sm { font-size:18px; }
.chart-tip { position:absolute; display:none; z-index:6; pointer-events:none; background:#fff; color:#2b3445; border:1px solid #dfe5ef; border-radius:8px; padding:6px 10px; font:12px/1.55 system-ui,sans-serif; white-space:nowrap; box-shadow:0 4px 14px rgba(30,50,90,.18) }
