@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --ink: #13221b;
  --muted: #68756f;
  --paper: #f4f4ed;
  --card: #fbfbf7;
  --line: rgba(21, 52, 38, 0.12);
  --forest: #0b2a1d;
  --forest-2: #143f2d;
  --green: #49d17d;
  --lime: #c7f36b;
  --gold: #f5c75e;
  --orange: #ed844f;
  --red: #dc5e55;
  --blue: #76b7f1;
  --shadow: 0 18px 45px rgba(15, 40, 29, 0.09);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(174, 224, 153, 0.18), transparent 22rem),
    linear-gradient(180deg, #f7f7f0 0%, var(--paper) 58%, #efefe6 100%);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, select { font: inherit; }
button { color: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; width: 100%; height: 100%; }
.hidden { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.page-glow { position: fixed; z-index: -1; filter: blur(2px); border-radius: 50%; pointer-events: none; }
.page-glow-one { width: 320px; height: 320px; top: 34%; left: -210px; background: rgba(73, 209, 125, 0.11); }
.page-glow-two { width: 380px; height: 380px; bottom: -220px; right: -200px; background: rgba(118, 183, 241, 0.10); }

.topbar {
  width: var(--shell);
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--lime);
  background: var(--forest);
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 7px 18px rgba(11, 42, 29, 0.18);
}
.brand > span:last-child { display: grid; }
.brand strong {
  font: 800 17px/1 "Manrope", sans-serif;
  letter-spacing: -0.03em;
}
.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.source-control {
  min-width: 206px;
  height: 52px;
  padding: 6px 11px 6px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 15px;
}
.source-control label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.source-control select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.icon-button {
  width: 52px;
  height: 52px;
  padding: 15px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 15px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.icon-button:hover { transform: translateY(-2px); background: #fff; }
.install-app-button { color: var(--forest); border-color: rgba(20,63,45,.2); background: var(--lime); }
.install-app-button:hover { background: #d9ff8a; }
.icon-button.is-spinning svg { animation: spin .8s linear infinite; }

.club-picker { padding-top: 24px; padding-bottom: 17px; }
.section-kicker-row, .section-heading, .panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.eyebrow {
  margin: 0 0 7px;
  color: #50715f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.updated-at { margin: 0 2px 8px; color: var(--muted); font-size: 12px; }
.club-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.club-tab {
  min-height: 62px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: #52615a;
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}
.club-tab:hover { transform: translateY(-2px); border-color: rgba(20, 63, 45, .22); background: #fff; }
.club-tab[aria-selected="true"] {
  color: white;
  border-color: transparent;
  background: var(--forest);
  box-shadow: 0 10px 26px rgba(11, 42, 29, 0.18);
}
.club-tab-score {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--forest);
  background: #e9ede4;
  font: 800 14px "Manrope", sans-serif;
}
.club-tab[aria-selected="true"] .club-tab-score { color: var(--forest); background: var(--lime); }
.club-tab-text { min-width: 0; display: grid; gap: 2px; }
.club-tab-text strong { overflow: hidden; font-size: 13px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.club-tab-text small { color: inherit; opacity: .67; font-size: 10px; }

.hero {
  position: relative;
  min-height: 326px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: white;
  background:
    radial-gradient(circle at 77% 15%, rgba(199, 243, 107, .13), transparent 18rem),
    radial-gradient(circle at 4% 110%, rgba(73, 209, 125, .14), transparent 22rem),
    linear-gradient(135deg, #0b2a1d 0%, #103725 55%, #0a2a1c 100%);
  box-shadow: 0 30px 65px rgba(11, 42, 29, .18);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -52% 24%;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
  transform: rotate(-4deg);
  box-shadow: 0 -32px 80px rgba(255,255,255,.025);
}
.hero-content {
  position: relative;
  z-index: 1;
  min-height: 326px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: minmax(270px, 1.1fr) 260px minmax(260px, .85fr);
  align-items: center;
  gap: 42px;
}
.hero-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero-location-row { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.68); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(73,209,125,.10); }
.hero-overline { margin: 28px 0 2px; color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 800 clamp(34px, 4.2vw, 54px)/1.02 "Manrope", sans-serif; letter-spacing: -.05em; }
.hero-verdict { margin: 10px 0 25px; color: rgba(255,255,255,.76); font-size: 16px; }
.best-window {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  border-radius: 14px;
}
.best-window-icon { width: 32px; height: 32px; padding: 6px; color: var(--lime); border-radius: 10px; background: rgba(199,243,107,.1); }
.best-window div { display: grid; }
.best-window small { color: rgba(255,255,255,.55); font-size: 10px; }
.best-window strong { font: 700 14px "Manrope", sans-serif; }

.score-stage { display: grid; justify-items: center; }
.score-ring {
  --score-progress: 0deg;
  --score-color: var(--lime);
  width: 176px;
  height: 176px;
  padding: 9px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--score-color) var(--score-progress), rgba(255,255,255,.09) 0);
  box-shadow: 0 0 42px rgba(199,243,107,.08);
  transition: background .5s ease;
}
.score-ring-inner { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; border-radius: 50%; background: #0d3021; }
.score-number { font: 800 58px/.9 "Manrope", sans-serif; letter-spacing: -.07em; }
.score-of { margin-top: 8px; color: rgba(255,255,255,.45); font-size: 11px; font-weight: 700; }
.score-caption { margin-top: 12px; display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.68); font-size: 12px; }
.info-button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}
.consensus-pill { margin-top: 12px; display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: var(--forest); background: var(--lime); }
.consensus-pill span { font: 800 13px "Manrope", sans-serif; }
.consensus-pill small { font-size: 10px; font-weight: 700; }

.safety-card {
  min-height: 196px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(8px);
}
.safety-heading { display: flex; align-items: center; gap: 12px; }
.safety-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--forest); background: var(--green); font-weight: 900; }
.safety-heading div { display: grid; gap: 3px; }
.safety-heading small { color: rgba(255,255,255,.46); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.safety-heading strong { font: 700 14px/1.2 "Manrope", sans-serif; }
.safety-card > p { margin: 16px 0; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.55; }
.confidence-row { margin-top: auto; padding-top: 13px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.5); font-size: 10px; }
.confidence-row strong { color: white; }
.safety-card.warning .safety-symbol { background: var(--gold); }
.safety-card.danger .safety-symbol { color: white; background: var(--red); }

.loading-state, .error-state {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: left;
}
.loading-state div, .error-state > div:nth-child(2) { display: grid; gap: 4px; }
.loading-state strong, .error-state strong { font: 700 17px "Manrope", sans-serif; }
.loading-state span:last-child, .error-state p { margin: 0; color: rgba(255,255,255,.57); font-size: 12px; }
.loader { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
.error-state { flex-wrap: wrap; }
.error-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--red); font-weight: 900; }
.button { padding: 10px 15px; border: 0; border-radius: 12px; font-weight: 700; cursor: pointer; }
.button-light { color: var(--forest); background: white; }

.metrics { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric-card {
  min-height: 108px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.7);
  box-shadow: 0 8px 28px rgba(18, 48, 34, .035);
}
.metric-icon { flex: 0 0 auto; width: 42px; height: 42px; padding: 9px; border-radius: 13px; }
.rain-icon { color: #317ec2; background: #e7f3ff; }
.wind-icon { color: #50715f; background: #e9efe9; }
.history-icon { color: #8e681d; background: #fff3d9; }
.ground-icon { color: #4b6f35; background: #edf3df; }
.light-icon { color: #9a6715; background: #fff2bd; }
.metric-card.is-warning { border-color: rgba(206,142,24,.36); background: rgba(255,248,221,.72); }
.metric-card.is-danger { border-color: rgba(220,94,85,.4); background: rgba(255,235,231,.76); }
.metric-card.is-danger .light-icon { color: #9d312b; background: #ffd8d1; }
#metric-light-card .metric-copy strong { white-space: normal; line-height: 1.15; }
.metric-copy { min-width: 0; display: grid; }
.metric-copy > span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.metric-copy strong { margin-top: 4px; overflow: hidden; font: 800 17px "Manrope", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.metric-copy small { margin-top: 1px; color: #829089; font-size: 10px; }

.forecast-section { padding-top: 55px; }
.section-heading h2, .panel-heading h2 { margin: 0; font: 800 clamp(23px, 2.4vw, 31px)/1.15 "Manrope", sans-serif; letter-spacing: -.035em; }
.legend { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-great { background: var(--green); }
.legend-good { background: var(--gold); }
.legend-risk { background: var(--red); }
.day-strip { margin-top: 20px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.day-card {
  min-width: 0;
  min-height: 182px;
  padding: 17px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: var(--ink);
  background: rgba(255,255,255,.66);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.day-card:hover { transform: translateY(-3px); background: white; box-shadow: var(--shadow); }
.day-card[aria-selected="true"] { color: white; border-color: transparent; background: var(--forest); box-shadow: 0 16px 36px rgba(11, 42, 29, .17); }
.day-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.day-name { display: grid; }
.day-name strong { font-size: 13px; }
.day-name small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.day-card[aria-selected="true"] .day-name small { color: rgba(255,255,255,.5); }
.day-score { font: 800 22px/1 "Manrope", sans-serif; color: var(--score-tone, var(--green)); letter-spacing: -.05em; }
.day-score small { font-size: 9px; letter-spacing: 0; opacity: .65; }
.weather-glyph { height: 40px; margin: 16px 0 9px; display: flex; align-items: center; color: var(--weather-color, #4d725e); font-size: 27px; line-height: 1; }
.day-window { font-size: 10px; font-weight: 800; }
.day-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 9px; }
.day-card[aria-selected="true"] .day-meta { color: rgba(255,255,255,.6); }
.day-alert { margin-top: 7px; padding: 4px 6px; border-radius: 7px; color: #6e230e; background: #ffe0d2; font-size: 8px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.day-alert.watch { color: #72500f; background: #fff0c9; }

.details-grid { padding-top: 36px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr); gap: 14px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.74); box-shadow: 0 10px 38px rgba(15,40,29,.045); }
.panel-heading { align-items: flex-start; }
.panel-heading h2 { font-size: 23px; }
.hourly-legend { display: flex; gap: 12px; color: var(--muted); font-size: 9px; }
.hourly-legend span { display: flex; align-items: center; gap: 5px; }
.bar-key { width: 8px; height: 8px; border-radius: 2px; }
.bar-key.rain { background: var(--blue); }
.bar-key.wind { background: #8bb27d; }
.hourly-chart {
  min-height: 225px;
  margin-top: 24px;
  padding: 12px 2px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 10px;
  overflow: hidden;
}
.hour-column { min-width: 0; display: grid; grid-template-rows: 22px 140px 20px 18px; align-items: end; justify-items: center; }
.hour-temp { color: var(--ink); font-size: 9px; font-weight: 800; }
.hour-bars { position: relative; z-index: 1; box-sizing: border-box; width: 100%; height: 132px; padding-top: 18px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--line); }
.hour-bar { width: min(10px, 32%); min-height: 3px; max-height: 100%; border-radius: 4px 4px 1px 1px; transition: height .35s ease; }
.hour-bar.rain { background: linear-gradient(180deg, #89c9ff, #3d8fce); }
.hour-bar.wind { background: linear-gradient(180deg, #b8d8a4, #6f9a62); }
.hour-temp, .hour-time, .hour-values { position: relative; z-index: 2; }
.hour-time { margin-top: 8px; color: var(--muted); font-size: 9px; }
.hour-risk { width: 5px; height: 5px; margin-top: 4px; border-radius: 50%; background: transparent; }
.hour-risk.on { background: var(--red); box-shadow: 0 0 0 3px rgba(220,94,85,.12); }
.hour-column.is-best { padding: 4px 2px; border-radius: 8px; background: rgba(199,243,107,.12); }
.reason-list { margin-top: 19px; padding-top: 17px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.reason-chip { padding: 7px 10px; border-radius: 999px; color: #43544c; background: #edf1e9; font-size: 10px; font-weight: 700; }
.reason-chip.good { color: #1f643e; background: #e0f5e8; }
.reason-chip.warn { color: #7c5310; background: #fff0cc; }
.reason-chip.bad { color: #8b312a; background: #fce0dd; }

.confidence-badge { padding: 7px 10px; border-radius: 999px; color: #29553f; background: #e2f1e6; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.confidence-badge.medium { color: #755315; background: #fff0cd; }
.confidence-badge.low { color: #85352f; background: #f9dfdc; }
.source-list { max-height: 510px; margin-top: 24px; padding-right: 4px; display: grid; gap: 9px; overflow-y: auto; scrollbar-color: #bac6bc transparent; }
.source-row { padding: 13px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(247,248,241,.65); }
.source-main { display: grid; gap: 3px; }
.source-name { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; }
.source-name i { width: 7px; height: 7px; border-radius: 50%; background: var(--model-color); }
.source-main small { color: var(--muted); font-size: 9px; }
.source-score { display: grid; justify-items: end; }
.source-score strong { font: 800 20px "Manrope", sans-serif; color: var(--score-tone); }
.source-score small { color: var(--muted); font-size: 8px; }
.source-note { margin: 17px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.method { padding-top: 14px; padding-bottom: 55px; }
.method details { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.55); }
.method summary { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font: 700 13px "Manrope", sans-serif; }
.method summary::-webkit-details-marker { display: none; }
.method summary > span:first-child { display: grid; }
.method summary small { color: var(--muted); font: 800 9px "DM Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.details-plus { font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.method details[open] .details-plus { transform: rotate(45deg); }
.method-content { padding: 0 22px 19px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; color: var(--muted); font-size: 11px; }
.method-content p { margin: 0; }

.footer { padding: 30px 0 45px; display: flex; justify-content: space-between; gap: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer strong { color: var(--ink); font: 800 14px "Manrope", sans-serif; }
.footer p { max-width: 540px; margin: 5px 0 0; }
.attribution { text-align: right; }
.attribution a { text-underline-offset: 2px; }

.score-dialog, .install-dialog {
  width: min(540px, calc(100% - 32px));
  padding: 31px;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: #fafaf5;
  box-shadow: 0 30px 100px rgba(0,0,0,.28);
}
.score-dialog::backdrop, .install-dialog::backdrop { background: rgba(4, 20, 13, .67); backdrop-filter: blur(5px); }
.score-dialog h2, .install-dialog h2 { margin: 0 0 18px; font: 800 26px "Manrope", sans-serif; letter-spacing: -.03em; }
.score-dialog > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.install-steps { display: grid; gap: 8px; }
.install-steps p { margin: 0; padding: 13px; display: grid; gap: 3px; border-radius: 13px; background: #edf1e9; }
.install-steps strong { color: var(--forest); font: 800 12px "Manrope", sans-serif; }
.install-steps span, .install-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.install-note { margin: 16px 0 0; }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #e8ece4; cursor: pointer; font-size: 20px; }
.formula-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.formula-list span { padding: 12px 7px; display: grid; justify-items: center; gap: 3px; border-radius: 12px; background: #edf1e9; color: var(--muted); font-size: 8px; text-align: center; }
.formula-list strong { color: var(--forest); font: 800 15px "Manrope", sans-serif; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .hero-content { grid-template-columns: 1fr 210px; }
  .safety-card { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px 28px; }
  .safety-card > p { margin: 0; }
  .confidence-row { grid-column: 1 / -1; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .day-strip { grid-template-columns: repeat(7, minmax(116px, 1fr)); overflow-x: auto; padding-bottom: 7px; }
  .details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 28px, 620px); }
  .topbar { min-height: 76px; }
  .brand-mark { width: 40px; height: 40px; }
  .source-control { min-width: 0; width: 151px; height: 45px; padding-left: 10px; grid-template-columns: 1fr; gap: 0; }
  .source-control label { display: none; }
  .source-control select { font-size: 11px; }
  .icon-button { width: 45px; height: 45px; padding: 13px; }
  .club-picker { padding-top: 18px; }
  .section-kicker-row { align-items: center; }
  .updated-at { font-size: 9px; }
  .club-tabs { display: flex; overflow-x: auto; padding: 1px 1px 8px; scrollbar-width: none; }
  .club-tabs::-webkit-scrollbar { display: none; }
  .club-tab { min-width: 148px; min-height: 56px; padding: 9px 12px; }
  .club-tab-score { width: 34px; height: 34px; }
  .hero { min-height: 0; }
  .hero-content { min-height: 0; padding: 31px 25px 25px; grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { align-items: flex-start; }
  .hero-overline { margin-top: 22px; }
  .hero h1 { font-size: 39px; }
  .hero-verdict { margin-bottom: 19px; }
  .score-stage { position: absolute; top: 33px; right: 24px; }
  .score-ring { width: 105px; height: 105px; padding: 6px; }
  .score-number { font-size: 35px; }
  .score-of { margin-top: 4px; font-size: 8px; }
  .score-caption { display: none; }
  .consensus-pill { margin-top: 7px; padding: 5px 8px; }
  .consensus-pill span { font-size: 10px; }
  .consensus-pill small { font-size: 8px; }
  .safety-card { grid-column: auto; display: flex; padding: 18px; }
  .safety-card > p { margin: 13px 0; }
  .confidence-row { grid-column: auto; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 100px; padding: 14px; gap: 10px; }
  .metric-icon { width: 36px; height: 36px; padding: 8px; }
  .metric-copy strong { font-size: 14px; }
  .forecast-section { padding-top: 42px; }
  .section-heading { align-items: flex-start; }
  .legend { display: none; }
  .section-heading h2 { font-size: 25px; }
  .day-strip { grid-template-columns: repeat(7, 118px); margin-right: -14px; padding-right: 14px; }
  .day-card { min-height: 170px; }
  .details-grid { padding-top: 24px; }
  .panel { padding: 22px 18px; }
  .panel-heading h2 { font-size: 20px; }
  .hourly-chart { grid-template-columns: repeat(13, 38px); }
  .method-content { grid-template-columns: 1fr; gap: 12px; }
  .footer { flex-direction: column; gap: 16px; padding-bottom: 30px; }
  .attribution { text-align: left; }
  .formula-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 460px) {
  .brand small { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .top-actions { gap: 6px; }
  .source-control { width: 130px; }
  .hero-copy { padding-top: 90px; }
  .score-stage { left: 24px; right: auto; top: 28px; display: flex; align-items: center; gap: 10px; }
  .score-ring { width: 82px; height: 82px; }
  .score-number { font-size: 29px; }
  .consensus-pill { display: grid; margin: 0; border-radius: 12px; }
  .hero-overline { margin-top: 15px; }
  .hero h1 { font-size: 35px; }
  .metrics { grid-template-columns: 1fr; }
  .metric-card { min-height: 82px; }
  .section-kicker-row { align-items: flex-end; }
  .updated-at { max-width: 130px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.club-picker-actions { display: flex; align-items: center; gap: 12px; }
.club-picker-actions .updated-at { margin: 0; }
.browse-courses-button {
  min-height: 36px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--forest);
  background: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.browse-courses-button span { font-size: 17px; font-weight: 500; line-height: .8; }
.browse-courses-button:hover { transform: translateY(-1px); border-color: rgba(20,63,45,.28); background: white; }
.club-tabs {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  overflow-x: auto;
  padding: 1px 1px 8px;
  scrollbar-width: thin;
}
.adjust-window-link {
  margin-left: 5px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  color: var(--forest);
  background: var(--lime);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.window-planner {
  margin-top: 21px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  border: 1px solid rgba(20,63,45,.13);
  border-radius: 17px;
  background: linear-gradient(135deg, #eef5e9, #f7f8f2);
}
.planner-copy { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 1px 9px; }
.planner-copy small { grid-column: 1 / -1; color: #50715f; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.planner-copy strong { font: 800 22px/1.2 "Manrope", sans-serif; letter-spacing: -.04em; }
.planner-copy span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.window-mode { padding: 3px; display: flex; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.75); }
.window-mode button {
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.window-mode button[aria-pressed="true"] { color: white; background: var(--forest); box-shadow: 0 5px 12px rgba(11,42,29,.14); }
.slider-wrap { grid-column: 1 / -1; display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; font-weight: 700; }
.slider-wrap input { width: 100%; height: 6px; accent-color: var(--forest); cursor: pointer; }
.slider-wrap.is-best { opacity: .48; }

.chart-legend { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.legend-card { padding: 9px 10px; display: grid; grid-template-columns: 27px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; border-radius: 12px; background: #f1f3ed; }
.legend-card i { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; font-style: normal; font-size: 12px; font-weight: 900; }
.legend-card b { font-size: 10px; line-height: 1.1; }
.legend-card small { color: var(--muted); font-size: 8px; line-height: 1.15; }
.legend-card.rain i { color: #2672ad; background: #ddecfa; }
.legend-card.wind i { color: #47723c; background: #e1eedc; }
.legend-card.lightning i { color: #9b6318; background: #fff0cd; }
.hourly-chart { min-height: 258px; }
.hour-column { grid-template-rows: 22px 128px 20px 42px; }
.hour-bars { height: 120px; }
.hour-values { width: 100%; margin-top: 5px; display: grid; gap: 2px; font-size: 7px; text-align: center; }
.hour-values .rain-value { color: #2c7cb9; font-weight: 800; }
.hour-values .wind-value { color: #557a4c; font-weight: 800; }
.hour-risk-label { color: var(--red); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.hour-risk-label.watch { color: #8a6117; }
.hour-column.is-best::before { content: none; }

.course-dialog {
  width: min(820px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 30px;
  overflow: auto;
  border: 0;
  border-radius: 25px;
  color: var(--ink);
  background: #fafaf5;
  box-shadow: 0 30px 100px rgba(0,0,0,.30);
}
.course-dialog::backdrop { background: rgba(4,20,13,.68); backdrop-filter: blur(5px); }
.course-dialog h2 { margin: 0 0 4px; font: 800 28px/1.1 "Manrope", sans-serif; letter-spacing: -.04em; }
.course-count { margin: 0 0 17px; color: var(--muted); font-size: 10px; }
.course-search-wrap { height: 48px; display: grid; grid-template-columns: 27px 1fr; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: white; }
.course-search-wrap > span { color: var(--muted); text-align: center; font-size: 20px; transform: rotate(-20deg); }
.course-search-wrap input { height: 100%; min-width: 0; padding: 0 14px 0 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.course-search-wrap input::placeholder { color: #929d97; }
.course-filters { margin: 12px 0 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.course-filters button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.course-filters button[aria-pressed="true"] { color: white; border-color: var(--forest); background: var(--forest); }
.course-directory { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.course-option-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; }
.course-option-row .course-option { width: 100%; }
.favorite-toggle {
  width: 40px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #9ba59f;
  background: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 17px;
  transition: .18s ease;
}
.favorite-toggle:hover { color: #b57b16; border-color: #e7c878; background: #fff8df; }
.favorite-toggle[aria-pressed="true"] { color: #b57b16; border-color: #e7c878; background: #fff1b8; }
.directory-section-title { grid-column: 1 / -1; margin: 13px 2px 1px; color: #50715f; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.course-option {
  min-height: 68px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.7);
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.course-option:hover { transform: translateY(-1px); border-color: rgba(20,63,45,.28); background: white; }
.course-option[aria-current="true"] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.course-option-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--forest); background: #e7efdf; font-weight: 900; }
.course-option-text { min-width: 0; display: grid; gap: 2px; }
.course-option-text strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.course-option-text small { color: var(--muted); font-size: 9px; }
.course-option-region { padding: 4px 6px; border-radius: 6px; color: #52705f; background: #edf1e9; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.course-option.new .course-option-region { color: #765012; background: #fff0c8; }
.directory-empty { grid-column: 1 / -1; padding: 35px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.course-directory-note { margin: 16px 0 0; color: var(--muted); font-size: 9px; text-align: center; }

@media (max-width: 1150px) and (min-width: 761px) {
  .club-tabs { grid-auto-columns: minmax(160px, 1fr); }
}

@media (max-width: 760px) {
  .club-picker-actions { flex-direction: column-reverse; align-items: flex-end; gap: 4px; }
  .browse-courses-button { min-height: 32px; }
  .best-window { flex-wrap: wrap; }
  .window-planner { grid-template-columns: 1fr; }
  .window-mode { justify-self: stretch; }
  .window-mode button { flex: 1; }
  .slider-wrap { grid-column: auto; }
  .chart-legend { grid-template-columns: 1fr; }
  .legend-card { grid-template-columns: 31px 1fr; }
  .source-list { max-height: none; padding-right: 0; overflow: visible; }
  .course-dialog { padding: 24px 17px; }
  .course-dialog h2 { font-size: 24px; }
  .course-directory { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .club-picker-actions .updated-at { display: none; }
  .browse-courses-button { padding-inline: 9px; }
  .planner-copy { grid-template-columns: 1fr; }
  .planner-copy span { white-space: normal; }
}

.day-best-match { margin-top: 6px; color: #315f45; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.day-card[aria-selected="true"] .day-best-match { color: var(--lime); }

.source-main, .source-score { min-width: 0; }
.source-score { max-width: 108px; text-align: right; }
.source-main small, .source-score small { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .topbar { gap: 10px; }
  .hero { min-height: 220px; }
  .day-strip { width: 100%; max-width: 100%; margin-right: 0; padding-right: 0; scrollbar-width: none; }
  .day-strip::-webkit-scrollbar { display: none; }
  .hero-content {
    padding: 24px 20px 22px;
    grid-template-areas:
      "score"
      "copy"
      "safety";
    gap: 20px;
  }
  .hero-copy { grid-area: copy; padding-top: 0; }
  .score-stage {
    position: static;
    grid-area: score;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
  }
  .safety-card { grid-area: safety; }
  .consensus-pill { margin: 0; }
  .chart-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legend-card { grid-template-columns: 27px minmax(0, 1fr); padding: 8px; column-gap: 6px; }
  .hourly-chart { min-height: 238px; margin-top: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .hour-column { grid-template-rows: 22px 116px 20px 42px; }
  .hour-bars { height: 108px; }
  .source-row { grid-template-columns: minmax(0, 1fr) minmax(70px, 82px); padding: 10px; gap: 8px; }
  .source-score { max-width: 82px; }
}

@media (max-width: 460px) {
  .brand > span:last-child { display: none; }
  .brand { flex: 0 0 auto; }
  .topbar { gap: 8px; }
  .top-actions { min-width: 0; flex: 1; justify-content: flex-end; }
  .source-control { width: min(150px, calc(100vw - 205px)); }
  .hero-content { padding: 21px 17px; }
  .hero-copy { padding-top: 0; }
  .score-stage { left: auto; right: auto; top: auto; }
  .chart-legend { gap: 4px; }
  .legend-card { grid-template-columns: 24px minmax(0, 1fr); padding: 6px; column-gap: 5px; }
  .legend-card i { width: 24px; height: 24px; }
  .legend-card b { font-size: 8px; }
  .legend-card small { display: none; }
  .source-panel .panel-heading { display: grid; justify-items: start; gap: 8px; }
  .source-panel .confidence-badge { justify-self: start; }
}


/* Experience upgrade: planning, sharing, onboarding and accessibility */
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #7cae38;
  outline-offset: 3px;
}
.hero button:focus-visible,
.hero a:focus-visible { outline-color: var(--lime); }

.info-button {
  position: relative;
  width: 44px;
  height: 44px;
  margin: -11px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  font-size: 0;
}
.info-button::before {
  content: "?";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: rgba(255,255,255,.82);
  font-size: 11px;
}
.dialog-close { width: 44px; height: 44px; }
.browse-courses-button,
.course-filters button,
.window-mode button,
.adjust-window-link { min-height: 44px; }
.course-filters button { padding-inline: 14px; }
.favorite-toggle { width: 44px; min-width: 44px; }
.course-option-row { grid-template-columns: minmax(0, 1fr) 44px; }

.saved-plan {
  margin-bottom: 14px;
  min-height: 76px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(20,63,45,.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232,244,225,.96), rgba(255,255,255,.76));
  box-shadow: 0 12px 34px rgba(15,40,29,.06);
}
.saved-plan-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--lime);
  background: var(--forest);
}
.saved-plan-copy { min-width: 0; display: grid; gap: 1px; }
.saved-plan-copy .eyebrow { margin: 0 0 1px; font-size: 9px; }
.saved-plan-copy strong { overflow: hidden; font: 800 14px/1.25 "Manrope", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.saved-plan-copy small { overflow: hidden; color: #5f6d66; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.saved-plan-actions { display: flex; align-items: center; gap: 7px; }
.saved-plan-actions button,
#saved-plan-open,
#saved-plan-remove {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--forest);
  background: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
#saved-plan-open { padding: 0 15px; background: var(--forest); color: white; }
#saved-plan-remove { width: 44px; padding: 11px; }

.hero-action-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; }
.hero-action-row .best-window { min-height: 52px; }
.hero-action-button {
  min-height: 52px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.065);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.hero-action-button:hover { transform: translateY(-1px); color: white; background: rgba(255,255,255,.11); }
.hero-action-button svg { width: 17px; height: 17px; color: var(--lime); }
.hero-action-button[aria-pressed="true"],
.hero-action-button.is-saved { color: var(--forest); background: var(--lime); }
.hero-action-button[aria-pressed="true"] svg,
.hero-action-button.is-saved svg { color: var(--forest); }
.adjust-window-link { padding: 8px 11px; font-size: 10px; }

.round-length {
  padding: 4px;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eff2eb;
}
.round-length > span {
  padding: 0 8px;
  color: #596960;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.round-length button {
  min-height: 44px;
  padding: 6px 11px;
  display: grid;
  align-content: center;
  gap: 1px;
  border: 0;
  border-radius: 10px;
  color: #56645d;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.round-length button small { color: inherit; font-size: 8px; font-weight: 700; opacity: .7; }
.round-length button[aria-pressed="true"] { color: white; background: var(--forest); box-shadow: 0 6px 14px rgba(11,42,29,.15); }

.source-disclosure { margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(247,248,241,.68); overflow: hidden; }
.source-disclosure summary {
  min-height: 50px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  color: var(--forest);
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
}
.source-disclosure summary::-webkit-details-marker { display: none; }
.source-disclosure summary strong { padding: 5px 8px; border-radius: 999px; color: #4d6256; background: #e4ebe1; font-size: 9px; }
.source-disclosure summary::after { content: "+"; font-size: 18px; font-weight: 500; transition: transform .2s ease; }
.source-disclosure[open] summary::after { transform: rotate(45deg); }
.source-disclosure .source-list { max-height: 430px; margin-top: 0; padding: 0 9px 9px; }
.source-main small,
.source-score small { font-size: 10px; line-height: 1.35; }
.source-note { color: #5e6c65; font-size: 11px; }

.onboarding-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 38px;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(199,243,107,.24), transparent 15rem),
    #fafaf5;
  box-shadow: 0 34px 110px rgba(0,0,0,.34);
}
.onboarding-dialog::backdrop { background: rgba(4,20,13,.72); backdrop-filter: blur(8px); }
.onboarding-dialog h2 { max-width: 590px; margin: 0; font: 800 clamp(30px, 5vw, 44px)/1.05 "Manrope", sans-serif; letter-spacing: -.055em; }
.onboarding-lead { max-width: 560px; margin: 12px 0 25px; color: #596860; font-size: 15px; }
.onboarding-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.onboarding-step {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.78);
}
.onboarding-step > span:first-child,
.onboarding-step-number {
  width: 31px;
  height: 31px;
  margin-bottom: 13px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--forest);
  background: var(--lime);
  font: 900 12px "Manrope", sans-serif;
}
.onboarding-step strong { display: block; margin: 0 0 6px; font: 800 14px/1.25 "Manrope", sans-serif; }
.onboarding-step p { margin: 0; color: #65736c; font-size: 11px; line-height: 1.5; }
.onboarding-actions { margin-top: 22px; display: flex; align-items: center; gap: 9px; }
.onboarding-actions button {
  min-height: 48px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--forest);
  background: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
#onboarding-choose-course { color: white; border-color: var(--forest); background: var(--forest); box-shadow: 0 9px 22px rgba(11,42,29,.16); }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  max-width: calc(100% - 28px);
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: white;
  background: rgba(11,42,29,.95);
  box-shadow: 0 14px 42px rgba(8,29,20,.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .22s ease, transform .22s ease;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.toast.show,
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.footer-guide-button {
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--forest);
  background: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.metric-copy small { color: #65736c; }
.course-search-wrap input::placeholder { color: #6e7c75; }
.favorite-toggle { color: #68766f; }
.day-card:not([aria-selected="true"]) .day-score,
.source-score strong {
  color: color-mix(in srgb, var(--score-tone, #3a9b60) 46%, #0b2a1d);
}
.day-meta,
.hour-temp,
.hour-time { font-size: 10px; }
.hour-values { font-size: 10px; line-height: 1.25; }
.hour-risk-label { font-size: 9px; }
.legend-card small { font-size: 9px; }
.day-alert,
.day-best-match { font-size: 9px; }
.course-option-region { font-size: 9px; }
.course-directory-note { font-size: 10px; }

.score-dialog,
.install-dialog,
.course-dialog { max-height: min(760px, calc(100dvh - 32px)); overflow: auto; }

/* Golf-and-weather motion is brief, ambient, and never hides data. */
.brand-mark svg { transform-origin: 35% 75%; animation: flag-arrive .62s cubic-bezier(.2,.8,.2,1) both; }
.brand:hover .brand-mark svg { animation: flag-wave .55s ease-in-out both; }
.hero { animation: hero-arrive .58s cubic-bezier(.2,.75,.25,1) both; }
.hero::before {
  content: "";
  position: absolute;
  inset: -35% -12% auto 52%;
  width: 400px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,243,107,.11), transparent 67%);
  pointer-events: none;
  animation: weather-drift 8s ease-in-out infinite alternate;
}
.score-ring { animation: score-reveal .78s .12s cubic-bezier(.16,.8,.25,1) both; }
.status-dot { animation: status-breathe 2.6s ease-out 3; }
.metric-card,
.day-card { animation: card-arrive .45s cubic-bezier(.2,.75,.25,1) both; }
.metric-card:nth-child(2), .day-card:nth-child(2) { animation-delay: .04s; }
.metric-card:nth-child(3), .day-card:nth-child(3) { animation-delay: .08s; }
.metric-card:nth-child(4), .day-card:nth-child(4) { animation-delay: .12s; }
.day-card:nth-child(5) { animation-delay: .16s; }
.day-card:nth-child(6) { animation-delay: .20s; }
.day-card:nth-child(7) { animation-delay: .24s; }

@keyframes flag-arrive {
  from { opacity: 0; transform: rotate(-7deg) translateY(3px); }
  to { opacity: 1; transform: rotate(0) translateY(0); }
}
@keyframes flag-wave {
  0%, 100% { transform: rotate(0); }
  35% { transform: rotate(-4deg); }
  70% { transform: rotate(3deg); }
}
@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(8px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes weather-drift {
  from { transform: translate3d(-10px,-4px,0) scale(.96); opacity: .68; }
  to { transform: translate3d(14px,7px,0) scale(1.05); opacity: 1; }
}
@keyframes score-reveal {
  from { opacity: 0; transform: scale(.88) rotate(-6deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes status-breathe {
  0%, 100% { box-shadow: 0 0 0 5px rgba(73,209,125,.10); }
  50% { box-shadow: 0 0 0 9px rgba(73,209,125,.03); }
}
@keyframes card-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    margin: 0;
    padding: 0 14px;
    border-bottom: 1px solid rgba(21,52,38,.08);
    background: rgba(247,247,240,.88);
    backdrop-filter: blur(18px) saturate(1.25);
  }
  .club-tabs {
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent 100%);
  }
  .club-tabs::-webkit-scrollbar { display: none; }
  .club-tab { scroll-snap-align: start; }
  .browse-courses-button { min-height: 44px; }
  .updated-at { display: block; max-width: 150px; font-size: 10px; line-height: 1.3; text-align: right; }

  .saved-plan { grid-template-columns: 42px minmax(0, 1fr); padding: 12px; }
  .saved-plan-icon { width: 42px; height: 42px; }
  .saved-plan-actions { grid-column: 1 / -1; }
  .saved-plan-actions button, #saved-plan-open { flex: 1; }

  .hero-action-row { width: 100%; }
  .hero-action-row .best-window { width: 100%; }
  .hero-action-button { flex: 1 1 calc(50% - 4px); }
  .adjust-window-link { margin-left: auto; }

  .safety-card.safe {
    min-height: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }
  .safety-card.safe > p { display: none; }
  .safety-card.safe .confidence-row { margin: 0; padding: 0; border: 0; align-items: center; }
  .safety-card.safe .confidence-row span { display: none; }
  .safety-card.safe .confidence-row strong { padding: 7px 9px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 10px; white-space: nowrap; }

  .hourly-panel .panel-heading { align-items: flex-start; }
  .round-length { grid-template-columns: auto auto; }
  .round-length > span { grid-column: 1 / -1; padding-top: 3px; text-align: center; }
  .window-mode button { min-height: 44px; font-size: 10px; }
  .source-disclosure .source-list { max-height: none; overflow: visible; }

  .onboarding-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 29px 20px 22px; border-radius: 24px; }
  .onboarding-dialog h2 { padding-right: 18px; font-size: 32px; }
  .onboarding-lead { margin-bottom: 18px; font-size: 13px; }
  .onboarding-steps { grid-template-columns: 1fr; }
  .onboarding-step { padding: 14px; display: grid; grid-template-columns: 34px 1fr; column-gap: 11px; }
  .onboarding-step > span:first-child,
  .onboarding-step-number { grid-row: 1 / 3; margin: 0; }
  .onboarding-step strong { align-self: end; }
  .onboarding-actions { align-items: stretch; flex-direction: column; }
  .onboarding-actions button { width: 100%; }

  .day-strip { scroll-snap-type: x mandatory; }
  .day-card { scroll-snap-align: start; }
}

@media (max-width: 460px) {
  .club-picker-actions .updated-at { display: block; max-width: 126px; }
  .section-kicker-row { gap: 10px; }
  .hourly-panel .panel-heading { display: grid; gap: 14px; }
  .round-length { width: 100%; grid-template-columns: 1fr 1fr; }
  .round-length button { width: 100%; }
  .saved-plan-copy strong { font-size: 13px; }
  .hero-action-button span { font-size: 9px; }
  .toast { width: max-content; border-radius: 16px; }
}

.hero-action-row {
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-action-row .best-window { grid-column: 1 / -1; width: 100%; }
.hero-action-button { width: 100%; }

@media (max-width: 460px) {
  .hourly-panel .panel-heading { width: 100%; grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .round-length { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark svg,
  .hero,
  .hero::before,
  .score-ring,
  .status-dot,
  .metric-card,
  .day-card {
    animation: none !important;
  }
}

/* Quiet premium pass: one clear decision, fewer competing surfaces. */
.topbar { min-height: 78px; }
.club-picker { padding-top: 17px; padding-bottom: 12px; }
.club-tab {
  min-height: 56px;
  padding: 9px 13px;
  border-radius: 14px;
}
.club-tab-score { width: 35px; height: 35px; border-radius: 10px; }
.club-tab[aria-selected="true"] { box-shadow: 0 5px 16px rgba(11,42,29,.12); }

.saved-plan {
  min-height: 52px;
  margin-bottom: 10px;
  padding: 4px 8px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.58);
  box-shadow: none;
}
.saved-plan-icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; }
.saved-plan-copy .eyebrow { display: none; }
.saved-plan-copy strong { font-size: 12px; }
.saved-plan-copy small { font-size: 10px; }
.saved-plan-actions { display: flex; align-items: center; gap: 5px; }
.saved-plan-actions button,
#saved-plan-open,
#saved-plan-remove { min-height: 44px; border-radius: 10px; }
#saved-plan-open { padding-inline: 12px; }
#saved-plan-remove { width: 44px; padding: 11px; }

.hero { min-height: 294px; border-radius: 24px; box-shadow: 0 18px 42px rgba(11,42,29,.13); }
.hero::before { animation: none; opacity: .72; }
.hero-content {
  min-height: 294px;
  padding: 32px 38px;
  grid-template-columns: minmax(310px, 1.15fr) 180px minmax(240px, .8fr);
  gap: 28px;
}
.hero-overline { margin-top: 18px; }
.hero h1 { font-size: clamp(34px, 3.8vw, 49px); }
.hero-verdict { margin: 8px 0 18px; font-size: 15px; }
.hero-action-row {
  width: min(100%, 440px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
}
.hero-action-row .best-window {
  min-width: 0;
  min-height: 48px;
  width: auto;
  flex: 1 1 auto;
  padding: 7px 8px;
  gap: 8px;
}
.best-window-icon { width: 30px; height: 30px; flex: 0 0 30px; }
.best-window div { min-width: 0; }
.best-window small,
.best-window strong { white-space: nowrap; }
.adjust-window-link { margin-left: auto; flex: 0 0 auto; padding: 7px 9px; }
.hero-action-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  padding: 14px;
  border-radius: 14px;
}
.hero-action-button svg {
  width: 19px;
  height: 19px;
  min-width: 19px;
  min-height: 19px;
  max-width: 19px;
  max-height: 19px;
}
.hero-action-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.score-ring { width: 148px; height: 148px; padding: 8px; }
.score-number { font-size: 48px; }
.score-caption { margin-top: 9px; }
.consensus-pill { margin-top: 9px; }
.safety-card { min-height: 176px; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.045); }
.safety-card > p { margin: 13px 0; }

.metrics { margin-top: 12px; gap: 8px; }
.metric-card {
  min-height: 92px;
  padding: 15px;
  gap: 11px;
  border-radius: 14px;
  background: rgba(255,255,255,.52);
  box-shadow: none;
  animation: none;
}
.metric-icon { width: 36px; height: 36px; padding: 8px; border-radius: 11px; }
.metric-copy strong { font-size: 16px; }
.forecast-section { padding-top: 46px; }
.day-card { animation: none; }
.panel { box-shadow: none; }
.round-length { border-radius: 12px; background: rgba(239,242,235,.8); }
.round-length > span { padding-inline: 6px; }
.round-length button { min-height: 40px; padding: 5px 9px; border-radius: 9px; }

.onboarding-dialog {
  width: min(590px, calc(100% - 32px));
  max-height: min(660px, calc(100dvh - 32px));
  padding: 28px;
  border-radius: 22px;
}
.onboarding-dialog h2 { max-width: 500px; font-size: clamp(29px, 4vw, 36px); }
.onboarding-lead { margin: 9px 0 17px; font-size: 14px; }
.onboarding-steps { grid-template-columns: 1fr; gap: 0; }
.onboarding-step {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.onboarding-step:first-child { border-top: 1px solid var(--line); }
.onboarding-step > span:first-child,
.onboarding-step-number { grid-row: 1 / 3; margin: 0; }
.onboarding-step strong { align-self: end; margin-bottom: 2px; }
.onboarding-actions { margin-top: 17px; }

@media (max-width: 1050px) and (min-width: 761px) {
  .hero-content { grid-template-columns: minmax(320px, 1fr) 170px; }
  .safety-card { grid-column: 1 / -1; min-height: 0; padding: 16px 18px; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 24px, 620px); }
  .topbar { min-height: 68px; padding-inline: 12px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .source-control { width: 150px; height: 42px; border-radius: 12px; }
  .source-control label { display: none; }
  .icon-button { width: 42px; height: 42px; padding: 12px; border-radius: 12px; }

  .club-picker { padding-top: 14px; padding-bottom: 8px; }
  .section-kicker-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 10px;
  }
  .section-kicker-row > .eyebrow { grid-column: 1; grid-row: 1; margin: 0; }
  .club-picker-actions { display: contents; }
  .browse-courses-button { grid-column: 2; grid-row: 1; min-height: 38px; }
  .updated-at { grid-column: 1 / -1; grid-row: 2; max-width: none; margin: 0; text-align: left; }
  .club-tab { min-width: 142px; min-height: 52px; padding: 8px 10px; }

  .saved-plan {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding: 4px 8px;
  }
  .saved-plan-icon { width: 32px; height: 32px; }
  .saved-plan-actions { grid-column: auto; }
  .saved-plan-actions button,
  #saved-plan-open { flex: 0 0 auto; }

  .hero { min-height: 0; border-radius: 21px; }
  .hero-content {
    min-height: 0;
    padding: 24px 20px 20px;
    grid-template-areas:
      "copy"
      "score"
      "safety";
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .hero-copy { grid-area: copy; }
  .hero-overline { margin-top: 14px; }
  .hero h1 { font-size: clamp(32px, 10vw, 40px); }
  .hero-verdict { margin: 7px 0 15px; font-size: 14px; }
  .hero-action-row { width: 100%; max-width: none; }
  .hero-action-row .best-window { width: auto; min-height: 44px; flex-wrap: nowrap; }
  .best-window-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .best-window small { font-size: 9px; }
  .best-window strong { font-size: 13px; }
  .adjust-window-link { padding: 6px 8px; }
  .hero-action-button { width: 44px; height: 44px; min-height: 44px; flex-basis: 44px; padding: 12px; }
  .score-stage { grid-area: score; gap: 10px; }
  .score-ring { width: 92px; height: 92px; padding: 6px; }
  .score-number { font-size: 31px; }
  .score-of { margin-top: 3px; font-size: 9px; }
  .score-caption { margin: 0; font-size: 11px; }
  .consensus-pill { margin: 0; padding: 6px 9px; }
  .safety-card { grid-area: safety; }

  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .metric-card { min-height: 78px; padding: 11px; gap: 9px; }
  .metric-icon { width: 32px; height: 32px; padding: 7px; }
  .metric-copy > span { font-size: 9px; }
  .metric-copy strong { font-size: 14px; }
  .metric-copy small { font-size: 9px; }
  .forecast-section { padding-top: 38px; }

  .hourly-panel .panel-heading { display: flex; align-items: flex-start; gap: 10px; }
  .round-length { width: auto; grid-template-columns: auto auto; flex: 0 0 auto; }
  .round-length > span { display: none; }
  .round-length button { width: auto; min-height: 40px; padding: 5px 8px; }
  .hourly-chart { min-height: 218px; }
  .hour-column { grid-template-rows: 21px 104px 20px 43px; }
  .hour-bars { height: 98px; }
  .hour-values { font-size: 8px; }

  .onboarding-dialog { width: calc(100% - 20px); padding: 23px 19px 19px; }
  .onboarding-dialog h2 { font-size: 29px; }
  .onboarding-actions { flex-direction: row; }
  .onboarding-actions button { width: auto; }
}

@media (max-width: 460px) {
  .top-actions { gap: 5px; }
  .source-control { width: min(158px, calc(100vw - 166px)); }
  .source-control select { font-size: 12px; }
  .saved-plan-copy small { display: none; }
  .saved-plan-copy strong { font-size: 11px; }
  #saved-plan-open { padding-inline: 9px; }
  .hero-content { padding: 22px 17px 18px; }
  .best-window { min-width: 0; }
  .best-window small { display: none; }
  .best-window strong { overflow: hidden; text-overflow: ellipsis; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 76px; }
  .hourly-panel .panel-heading { width: 100%; display: flex; justify-content: space-between; }
  .round-length { justify-self: auto; }
  .onboarding-actions { align-items: stretch; flex-direction: column; }
  .onboarding-actions button { width: 100%; }
}
