:root {
  --text: #1c1c1c;
  --muted: #666;
  --line: #e2e2e2;
  --head: #f6f6f6;
  --dry: #9a5b00;
  --humid: #0b6b62;
  --sun: #b23c00;
  --wind: #1f4f99;
  --pol: #6a3d8f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 24px 16px 40px;
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
header, .how, .filters, .table-wrap, footer { max-width: 1240px; margin-left: auto; margin-right: auto; }
h1 { font-size: 22px; margin: 0 0 4px; }
.lead { margin: 0 0 6px; color: var(--muted); }
.status { margin: 0 0 14px; font-size: 13px; }
.how { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.how summary { cursor: pointer; font-weight: 600; }
.how ul { margin: 8px 0 2px; padding-left: 18px; }
.how li { margin-bottom: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin-bottom: 10px; }
.filters label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.filters label.check { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--text); padding-bottom: 6px; }
select, input[type=search] { font: inherit; padding: 6px 8px; border: 1px solid #c8c8c8; border-radius: 5px; background: #fff; min-width: 170px; }
.count { margin-left: auto; font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th { position: sticky; top: 0; background: var(--head); text-align: left; font-size: 12px; font-weight: 600; color: #444; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th.num, td.num { text-align: right; }
tr.place { cursor: pointer; }
tr.place:hover td { background: #fafafa; }
tr.place:focus-visible td { outline: 2px solid #1f4f99; outline-offset: -2px; }
.city { font-weight: 600; }
.sub { display: block; font-size: 12px; color: var(--muted); }
.v { font-variant-numeric: tabular-nums; }
.level { font-weight: 600; font-size: 12px; }
.level.dry { color: var(--dry); }
.level.humid { color: var(--humid); }
.level.sun { color: var(--sun); }
.level.wind { color: var(--wind); }
.level.pol { color: var(--pol); }
.flag { display: block; font-size: 12px; color: var(--text); }
.flag::before { content: "▲ "; font-size: 9px; color: var(--muted); }
.flag.down::before { content: "▼ "; }
.none { color: #aaa; }
tr.detail td { background: #fbfbfb; padding: 12px 14px 16px; }
.detail h3 { font-size: 13px; margin: 0 0 6px; }
.detail table { min-width: 0; width: auto; margin-bottom: 8px; }
.detail th, .detail td { position: static; padding: 4px 8px; font-size: 12px; text-align: right; background: none; }
.detail th:first-child, .detail td:first-child { text-align: left; }
.detail .note { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
footer { margin-top: 16px; font-size: 12px; color: var(--muted); }
footer table { min-width: 0; width: auto; margin-top: 6px; }
footer th, footer td { position: static; padding: 3px 10px 3px 0; font-size: 12px; background: none; border: none; }

.top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.signout { font: inherit; font-size: 13px; padding: 5px 10px; border: 1px solid #c8c8c8; border-radius: 5px; background: #fff; cursor: pointer; }
body.auth-needed .page { visibility: hidden; }
.auth-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px 16px; background: #fff; overflow: auto; }
.auth-card { width: 100%; max-width: 380px; padding: 28px 24px; border: 1px solid var(--line); border-radius: 8px; }
.auth-brand { text-align: center; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wordmark { font-size: 24px; font-weight: 700; margin-top: 4px; }
.auth-sub { margin: 10px 0 0; text-align: center; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 5px; margin-top: 16px; }
.field input { font: inherit; padding: 9px 10px; border: 1px solid #c8c8c8; border-radius: 5px; }
.btn-primary { display: block; width: 100%; margin-top: 20px; padding: 10px; border: 0; border-radius: 5px; background: #1c1c1c; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.btn-primary:disabled { opacity: 0.55; cursor: default; }
.auth-msg { min-height: 1.2em; margin: 12px 0 0; text-align: center; font-size: 13px; color: #a3261a; }

.explain, .table-h { max-width: 1240px; margin-left: auto; margin-right: auto; }
.explain { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 16px; margin-bottom: 22px; }
.explain h2, .table-h { font-size: 17px; margin: 0 0 8px; }
.table-h { margin-bottom: 10px; }
.explain h3 { font-size: 15px; margin: 18px 0 8px; }
.explain p { margin: 0 0 8px; }
.explain .small { font-size: 12px; color: var(--muted); }
.crit { width: 100%; min-width: 0; border-collapse: collapse; margin: 6px 0 8px; }
.crit th { position: static; background: none; border-bottom: 1px solid #999; }
.crit td { border-bottom: 1px solid var(--line); }
.try { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
.try label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.quick { font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.quick button { font: inherit; font-size: 13px; margin: 2px 2px 0 0; padding: 4px 8px; border: 1px solid #c8c8c8; border-radius: 5px; background: #fff; cursor: pointer; }
.ex-out { margin-top: 12px; padding: 12px 14px; background: #f7f7f7; border-radius: 6px; }
.ex-out ul { margin: 6px 0 10px; padding-left: 18px; }
.ex-out li { margin-bottom: 3px; }
.ex-out p { margin: 0 0 6px; }
