/* Sodak skin - reports page */
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.gseg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gseg button { border: 0; background: transparent; color: var(--on-sky-muted); font-size: 13px; font-weight: 500; height: 28px; padding: 0 12px;
  border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, color .15s; }
.gseg button:hover { color: #fff; }
.gseg button.on { background: rgba(255,255,255,.92); color: #121316; }
.gbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 500;
  background: var(--glass); border: 1px solid var(--glass-edge); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .15s; }
.gbtn:hover { background: rgba(255,255,255,.22); }
.gbtn.off { opacity: .4; pointer-events: none; }
.stepper { display: inline-flex; gap: 6px; }
.stepper .icon-btn { width: 36px; height: 36px; border-radius: 12px; }

/* ---------- Picker ---------- */
.picker { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 28px; align-items: center; padding: 16px 20px; }
.pk-l { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.years { display: flex; gap: 6px; flex-wrap: wrap; }
.yr { height: 32px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all .15s; }
.yr:hover { color: var(--text); border-color: var(--border-strong); background: var(--track); }
.yr.on { background: var(--text); border-color: var(--text); color: var(--tile-solid); }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 6px; }
.mo { position: relative; height: 50px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0;
  font-size: 13px; font-weight: 500; transition: background .15s, border-color .15s; }
.mo small { font-size: 11px; font-weight: 400; color: var(--muted); display: flex; align-items: center; gap: 4px; height: 14px; }
.mo small i { width: 6px; height: 6px; border-radius: 50%; }
.mo:hover:not(:disabled) { background: var(--track); border-color: var(--border-strong); }
.mo:disabled { cursor: default; color: var(--faint); opacity: .45; border-style: dashed; }
.mo.year { background: var(--track); }
.mo.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px var(--accent); }
.mo.on small { color: rgba(255,255,255,.82); }
:root[data-theme="dark"] .mo.on { color: #0d1020; }
:root[data-theme="dark"] .mo.on small { color: rgba(13,16,32,.75); }

/* ---------- Stat tiles ---------- */
.stat { display: flex; flex-direction: column; min-height: 168px; padding: 18px; }
.stat .t-head { margin-bottom: 10px; }
.mv { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; white-space: nowrap; }
.mv small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 3px; }
.ms { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.tdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 2px; vertical-align: 1px; }
.split { display: flex; height: 6px; border-radius: 6px; overflow: hidden; gap: 2px; }
.split i { display: block; height: 100%; }
.split-l { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.split-l span { display: flex; align-items: center; gap: 6px; }
.split-l em { font-style: normal; width: 8px; height: 8px; border-radius: 2px; }

/* ---------- Chart ---------- */
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.lg-range { width: 8px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, #ef6a3c, #f2bd2c 50%, #4fa9f5); }
.lg-mean { width: 14px; height: 2px; border-radius: 2px; background: var(--text); position: relative; }
.lg-mean::after { content: ""; position: absolute; left: 4px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.lg-ext { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--faint); }
.lg-rain { width: 8px; height: 10px; border-radius: 2px 2px 0 0; background: var(--rain); }
#chart { height: 380px; margin: 4px -6px -8px -4px; }

/* ---------- Table ---------- */
.tbl-tile { padding-bottom: 8px; }
.tscroll { margin: 0 -20px; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.data th, .data td { padding: 0 10px; height: 38px; text-align: right; white-space: nowrap; }
.data th:first-child, .data td:first-child { text-align: left; padding-left: 20px; }
.data th:last-child, .data td:last-child { padding-right: 20px; }
.data thead th { position: sticky; top: var(--nav-h); z-index: 5; height: 36px; background: var(--tile-solid);
  font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  box-shadow: inset 0 -1px 0 var(--border-strong); }
.data thead tr.grp th { top: var(--nav-h); height: 30px; box-shadow: none; color: var(--faint); font-size: 10px; text-align: center; }
.data thead tr.grp th span { display: block; border-bottom: 1px solid var(--border); padding-bottom: 5px; margin: 0 -2px; }
.data thead tr.grp + tr th { top: calc(var(--nav-h) + 30px); }
.data thead th.l, .data td.l { text-align: left; }
.data tbody tr:nth-child(even) td { background: var(--zebra); }
.data tbody tr:hover td { background: var(--hover); }
.data tbody td { border-bottom: 1px solid transparent; }
.data td.day b { font-weight: 500; display: inline-block; min-width: 20px; }
.data td.day small { color: var(--faint); font-size: 12px; margin-left: 8px; }
.data td .tm { color: var(--faint); font-size: 11.5px; margin-left: 7px; font-family: var(--mono); letter-spacing: -.02em; }
.data td.z { color: var(--faint); }
.data td.rainy { color: var(--rain); font-weight: 500; }
.data td.dd-h { color: var(--text); }
.data .pill { display: inline-block; min-width: 46px; padding: 2px 7px; border-radius: 7px; text-align: center; font-weight: 500; }
.data .ext { display: inline-flex; align-items: center; gap: 6px; }
.data .ext::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.data td.flag { font-weight: 600; }
.data td.flag .ext::after { content: attr(data-tag); font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
  padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--text); order: -1; }
.data tr.empty td { color: var(--faint); }
.data tr.empty td.day b { color: var(--faint); }
.data tfoot td { height: 44px; font-weight: 600; border-top: 1px solid var(--border-strong); background: var(--track); }
.data tfoot td:first-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.data tfoot td small { font-weight: 400; color: var(--muted); font-size: 11.5px; margin-left: 5px; }
.c-range { width: 34%; }
.yearly .data th, .yearly .data td { padding: 0 8px; }
.yearly .data th:first-child, .yearly .data td:first-child { padding-left: 20px; }
.yearly .data th:last-child, .yearly .data td:last-child { padding-right: 20px; }
.yearly .data .ext::before { display: none; }
.rbar { position: relative; height: 6px; border-radius: 6px; background: var(--track); min-width: 120px; }
.rbar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.rbar b { position: absolute; top: -3px; width: 2px; height: 12px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 1.5px var(--tile-solid); transform: translateX(-1px); }
.tbl-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0 6px; font-size: 12px; color: var(--faint); }

/* ---------- Classic text ---------- */
.tile.classic { padding: 0; overflow: hidden; }
.file > span { white-space: nowrap; }
.classic-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.file { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; }
.file small { color: var(--faint); font-size: 11.5px; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--tile-solid); color: var(--text); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background .15s; }
.tbtn:hover { background: var(--track); }
.tbtns { display: flex; gap: 6px; }
pre.noaa { margin: 0; padding: 22px 24px 26px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--text);
  overflow-x: auto; tab-size: 8; font-variant-ligatures: none; background: color-mix(in srgb, var(--tile-solid) 55%, transparent); }

/* ---------- Placeholder ---------- */
.ph { display: grid; place-items: center; text-align: center; padding: 72px 24px; }
.ph-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 18px; }
.ph h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.ph p { margin: 8px auto 0; max-width: 460px; color: var(--muted); }
.ph code { white-space: nowrap; font-family: var(--mono); font-size: 12.5px; background: var(--track); padding: 1px 6px; border-radius: 5px; }
.ph .acts { display: flex; gap: 8px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.tbtn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .tbtn.pri { color: #0d1020; }

/* Notes strip */
.notes { display: flex; align-items: center; gap: 10px 22px; padding: 14px 20px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.notes > span { display: inline-flex; align-items: center; gap: 7px; }
.notes .off { white-space: nowrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--track); color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .picker { grid-template-columns: 1fr; }
  .pk-l { display: none; }
}
@media (max-width: 760px) {
  .page-head { align-items: stretch; padding: 26px 0 18px; gap: 16px; }
  .page-head h1 { font-size: 28px; }
  .head-actions { justify-content: flex-start; }
  .gseg { flex: 1; } .gseg button { flex: 1; justify-content: center; padding: 0 8px; }
  .gbtn { width: 36px; padding: 0; justify-content: center; flex: none; }
  .gbtn > span { display: none; }
  .head-actions { flex-wrap: nowrap; }
  .picker { padding: 14px; gap: 12px; }
  .years { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .yr { padding: 0; }
  .months { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .mo.year { grid-column: span 2; }
  .mo { height: 48px; }
  .stat { min-height: 150px; padding: 14px; }
  .mv { font-size: 25px; }
  .mv small { font-size: 12.5px; }
  .ms { font-size: 12px; }
  .kv { font-size: 12px; }
  .legend { gap: 8px 14px; }
  #chart { height: 320px; }
  .tscroll { margin: 0 -16px; overflow-x: auto; }
  .data { font-size: 13px; }
  .data th, .data td { padding: 0 5px; height: 44px; }
  .c-cdd { display: none; }
  .data th:first-child, .data td:first-child { padding-left: 16px; }
  .data th:last-child, .data td:last-child { padding-right: 16px; }
  .data thead th { position: static; }
  .data td .tm { display: block; margin: 0; font-size: 10.5px; line-height: 1.1; }
  .data td.day small { display: block; margin: 0; font-size: 10.5px; line-height: 1.1; }
  .data .pill { min-width: 0; padding: 2px 5px; }
  .data .ext::before { display: none; }
  .data td.flag .ext::after { display: none; }
  .c-range { display: none; }
  .yearly .data td:first-child, .yearly .data th:first-child { position: sticky; left: 0; z-index: 2; background: var(--tile-solid); box-shadow: inset -1px 0 0 var(--border); }
  .classic-head { padding: 12px 16px; flex-wrap: wrap; }
  pre.noaa { font-size: 11.5px; padding: 16px; }
  .file small { display: none; }
  .yearly .data tbody tr:nth-child(even) td:first-child { background: linear-gradient(var(--zebra), var(--zebra)), var(--tile-solid); }
  .yearly .data tbody tr:hover td:first-child { background: linear-gradient(var(--hover), var(--hover)), var(--tile-solid); }
  .yearly .data tfoot td:first-child { background: linear-gradient(var(--track), var(--track)), var(--tile-solid); }
  .ph { padding: 48px 16px; }
  .notes { padding: 14px 16px; }
}
