:root {
  color-scheme: light;
  --ink: #102f3b;
  --ink-soft: #294a56;
  --muted: #647782;
  --paper: #fffefa;
  --surface: #ffffff;
  --mist: #edf6f8;
  --lake: #07566a;
  --lake-dark: #063c54;
  --pine: #18703c;
  --pine-soft: #edf8ef;
  --sky: #dceff7;
  --sun: #f28a27;
  --sun-soft: #fff4e4;
  --warning: #b95308;
  --warning-soft: #fff7df;
  --danger: #a33e35;
  --line: #dce6e8;
  --line-strong: #c7d5d9;
  --shadow: 0 10px 28px rgba(8, 45, 59, 0.08);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --tap: 48px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }

.hidden { display: none !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;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--lake-dark);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--mist);
}
.login-card {
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--lake-dark); font-weight: 900; }
.login-brand img { width: 44px; height: 44px; border-radius: 12px; }
.login-card h1 { margin: 8px 0 10px; font-size: clamp(2rem, 10vw, 2.8rem); line-height: 1; letter-spacing: -0.045em; }
.login-card p { margin: 0; color: var(--muted); }
.adult-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
.adult-option { min-width: 0; min-height: 56px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; color: var(--ink); font-weight: 850; cursor: pointer; }
.adult-option.active { border-color: var(--lake); background: var(--lake); color: #fff; }
.pin-label { display: block; margin: 14px 0 6px; font-weight: 850; }
.pin { width: 100%; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; color: var(--ink); font-size: 1.3rem; letter-spacing: .18em; text-align: center; }
.login-button { width: 100%; min-height: 52px; margin-top: 12px; border: 1px solid var(--lake); border-radius: 13px; background: var(--lake); color: #fff; font-weight: 900; cursor: pointer; }
.message { min-height: 24px; margin-top: 10px; color: var(--danger); font-weight: 750; }
.setup { margin-top: 12px; padding: 12px; border: 1px solid #ebcc91; border-radius: 12px; background: var(--warning-soft); color: #6d4b20; }

:focus-visible {
  outline: 3px solid #1c78c0;
  outline-offset: 3px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: calc(82px + env(safe-area-inset-top));
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(255, 254, 250, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.app-brand > div { min-width: 0; overflow: hidden; }
.app-brand img { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; }
.brand-short { display: none; }
.app-brand h1 {
  margin: 0;
  font-size: clamp(1.08rem, 4.8vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-brand p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.operator-summary { display: inline-flex; align-items: center; gap: 4px; }

.topbar-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.compact-countdown { display: none; text-align: right; }
.compact-countdown strong, .compact-countdown span { display: block; }
.compact-countdown span { color: var(--muted); font-size: 0.72rem; }

.icon-button {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--mist);
  color: var(--lake-dark);
  cursor: pointer;
  font-size: 1.35rem;
}
.icon-button:hover { background: #e2f0f2; }
.icon-button:disabled { opacity: 0.55; cursor: wait; }

.app-main { width: 100%; min-width: 0; }
.app-content { min-width: 0; }
.app-view {
  width: min(100%, 820px);
  min-width: 0;
  margin: 0 auto;
  padding: 0 16px calc(104px + env(safe-area-inset-bottom));
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50vh;
  padding: 32px;
  color: var(--muted);
  font-weight: 750;
}
.loading-state i { font-size: 1.5rem; animation: spin 1s linear infinite; }

.weather-hero {
  margin: 0 -16px;
  padding: 22px 16px 20px;
  background: #eaf5fa;
  border-bottom: 1px solid #d4e7ee;
}
.weather-primary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.weather-icon { color: #2b83b8; font-size: clamp(3.4rem, 18vw, 5rem); }
.weather-value {
  color: #053d5d;
  font-size: clamp(3.8rem, 20vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.075em;
}
.weather-copy { min-width: 0; padding-left: 4px; }
.weather-copy h3 {
  margin: 0 0 6px;
  font-size: clamp(1rem, 4.6vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.weather-copy > div { color: #416273; font-size: 0.86rem; }
.weather-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(25, 91, 120, 0.14);
  color: #476573;
  font-size: 0.82rem;
}
.weather-trust-row > span, .status-ok { display: inline-flex; align-items: center; gap: 6px; }
.status-ok { color: var(--pine); font-weight: 800; }
.status-stale { display: inline-flex; align-items: center; gap: 6px; color: var(--warning); font-weight: 850; }
.stale-weather-refresh {
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--warning);
  font-weight: 850;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.nowcast-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #c7e1ec;
  border-radius: 999px;
  color: #315c76;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}
.nowcast-row i { flex: 0 0 auto; margin-top: 2px; font-size: 1rem; }
.weather-alert {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #e6b96f;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: #70430f;
}

.alert-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 8px 10px 13px;
  border: 1px solid #b9dbe5;
  border-radius: var(--radius);
  background: #f1f9fb;
  color: var(--lake-dark);
}
.alert-prompt > i { font-size: 1.35rem; color: var(--lake); }
.alert-prompt > button { min-height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.alert-prompt > button:not(.alert-prompt-dismiss) { display: grid; align-content: center; min-width: 0; padding: 4px 0; text-align: left; }
.alert-prompt span { color: var(--muted); font-size: 0.76rem; }
.alert-prompt-dismiss { display: grid; place-items: center; width: 44px; padding: 0; border-radius: 12px !important; font-size: 1.1rem; }

.decision-section, .coming-up, #planSuggestionSection, .content-section { padding-top: 28px; }
.view-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 14px;
}
.view-section-head.compact { align-items: flex-start; }
.view-section-head h2, .view-section-head h3, .view-header h2 {
  margin: 0;
  color: var(--lake-dark);
  letter-spacing: -0.035em;
}
.view-section-head h2, .view-header h2 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
.view-section-head h3 { font-size: 1.3rem; }
.eyebrow {
  margin-bottom: 3px;
  color: var(--pine);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow.warning { color: var(--warning); }
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 7px 0 7px 10px;
  border: 0;
  background: transparent;
  color: #0867a4;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.recommendation-grid { display: grid; gap: 10px; min-width: 0; }
.recommendation {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.recommendation.featured {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 18px 16px;
  border-color: #55a56b;
  background: #f4faf2;
}
.recommendation-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--mist);
  color: #2388bf;
  font-size: 1.85rem;
}
.recommendation.featured .recommendation-icon { width: 58px; height: 58px; background: #e6f5e8; color: var(--pine); }
.recommendation-body { min-width: 0; }
.recommendation-label {
  display: inline-block;
  margin-bottom: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #256235;
  background: #ddefdf;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.recommendation h3 { margin: 0; color: var(--lake-dark); font-size: 1.05rem; line-height: 1.2; }
.recommendation.featured h3 { color: #155b2b; font-size: 1.35rem; }
.recommendation p { margin: 4px 0 0; color: var(--muted); font-size: 0.84rem; }
.recommendation .tiny { margin-top: 7px; color: #586d76; font-size: 0.75rem; }
.recommendation-action {
  grid-column: 1 / -1;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--pine);
  border-radius: 13px;
  background: var(--pine);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.more-recommendations { border: 0; }
.more-recommendations summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 12px;
  color: var(--lake);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}
.more-recommendations summary::-webkit-details-marker { display: none; }
.recommendation-more { display: grid; gap: 10px; padding-top: 4px; }
.empty-state {
  padding: 24px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.coming-up-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.coming-up-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 84px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.coming-up-row:last-child { border-bottom: 0; }
.coming-icon { align-self: stretch; display: grid; place-items: center; color: #fff; font-size: 1.45rem; }
.coming-icon.navy { background: var(--lake-dark); }
.coming-icon.green { background: var(--pine); }
.coming-up-row > span:nth-child(2) { display: grid; min-width: 0; padding: 12px 0; }
.coming-up-row small, .briefing-row small { color: var(--muted); font-size: 0.76rem; }
.coming-up-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; }
.coming-up-row strong + span { color: #1268a1; font-size: 0.8rem; font-weight: 750; }
.row-caret { margin-right: 12px; color: var(--muted); }
.briefing-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f6f8f8;
  color: var(--ink-soft);
}
.briefing-row > span { display: grid; min-width: 0; }
.briefing-row strong { font-size: 0.84rem; font-weight: 750; }

#planSuggestionSection { padding-top: 14px; }
.plan-suggestion-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 8px;
  padding: 0 2px;
}
.plan-suggestion-section-head > i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 1.1rem;
}
.plan-suggestion-section-head > div { min-width: 0; }
.plan-suggestion-section-head .eyebrow { margin-bottom: 1px; font-size: 0.64rem; }
.plan-suggestion-section-head h2 { margin: 0; color: var(--lake-dark); font-size: 1.02rem; letter-spacing: -0.02em; }
.plan-suggestion-list { display: grid; gap: 8px; }
.hub-kicker { color: var(--warning); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.plan-suggestion {
  padding: 12px;
  border: 1px solid #f2c66f;
  border-radius: var(--radius);
  background: var(--warning-soft);
}
.plan-suggestion h3 { margin: 3px 0; color: #713902; font-size: 1rem; }
.plan-suggestion p { margin: 6px 0 0; color: #6f5b42; font-size: 0.78rem; line-height: 1.42; }
.plan-suggestion-swap { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 7px 0; font-size: 0.82rem; font-weight: 850; }
.plan-suggestion-reason { margin-top: 5px; }
.plan-suggestion-reason summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  color: #7b4d16;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}
.plan-suggestion-reason summary::marker { content: ""; }
.plan-suggestion-reason summary::-webkit-details-marker { display: none; }
.plan-suggestion-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.plan-suggestion-actions .btn { min-height: 42px; padding-block: 8px; }

.safety-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  margin-top: 18px;
  padding: 10px 4px;
  color: #0c5e94;
  text-decoration: none;
}
.safety-link > i:first-child { font-size: 1.45rem; }
.safety-link > span { display: grid; }
.safety-link small { color: var(--muted); font-size: 0.74rem; }

.view-header { padding: 24px 0 8px; }
.view-header h2 { margin: 0; }
.view-header p { max-width: 60ch; margin: 6px 0 0; color: var(--muted); }
.plan-view-header { padding-bottom: 0; }
.plan-view-header p { margin-top: 4px; font-size: 0.88rem; }
.plan-view-header + .vote-plan { margin-top: 12px; }

.voting-for {
  min-width: 0;
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid #cfe0e3;
  border-radius: var(--radius);
  background: var(--mist);
}
.voting-for legend { padding: 0 6px; color: var(--lake-dark); font-size: 0.82rem; font-weight: 900; }
.member-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.member-chip {
  min-width: 0;
  min-height: var(--tap);
  padding: 8px 10px;
  border: 1px solid #b8ced3;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.member-chip.active { border-color: var(--lake); background: var(--lake); color: #fff; box-shadow: inset 0 0 0 1px var(--lake); }
.member-chip small { display: block; color: inherit; font-size: 0.68rem; font-weight: 650; opacity: 0.78; }

.content-section { min-width: 0; }
.content-section > p { margin: 0 0 14px; color: var(--muted); }
.source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f2f5;
  color: #3c6574;
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}
.source-note { margin-top: 10px; color: var(--muted); font-size: 0.76rem; }
.park-event-list, .activity-list { display: grid; gap: 10px; min-width: 0; }
.park-event {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.park-event.is-now { border-color: #efba55; background: #fff9eb; }
.park-event-time { color: var(--lake); font-size: 0.78rem; font-weight: 900; }
.park-event-title { font-size: 1rem; font-weight: 850; }
.park-event-detail, .activity-detail { margin-top: 2px; color: var(--muted); font-size: 0.78rem; }
.fixed-time-note { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--lake); font-size: 0.68rem; font-weight: 800; }
.park-feed-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.park-feed-actions > :first-child { grid-column: 1 / -1; }

.hub-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.hub-tab {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.hub-tab[aria-pressed="true"] { border-color: var(--lake); background: var(--lake); color: #fff; }
.activity-row {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.activity-title { font-size: 1rem; font-weight: 850; }
.vote-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.vote-btn {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 54px;
  padding: 6px 2px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
}
.vote-btn i { font-size: 1.15rem; }
.vote-btn span { font-size: 0.75rem; font-weight: 750; line-height: 1.1; }
.vote-btn.active { border-color: var(--pine); background: #eaf6ec; color: #155d2c; box-shadow: inset 0 0 0 1px var(--pine); }
.vote-summary { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.mini-vote { padding: 3px 7px; border-radius: 999px; background: #f0f4f4; color: #4c646d; font-size: 0.7rem; }
.vote-context { margin-bottom: 6px; color: var(--muted); font-size: 0.74rem; }
.vote-context strong { color: var(--ink); }
.activity-plan-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.activity-plan-summary { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.activity-plan-summary span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--muted); font-size: 0.68rem; font-weight: 750; }
.activity-plan-open, .activity-plan-edit, .activity-plan-remove, .schedule-edit {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--mist);
  color: var(--lake);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}
.activity-plan-open { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 9px; white-space: nowrap; }
.activity-plan-open:focus-visible, .activity-plan-edit:focus-visible, .activity-plan-remove:focus-visible, .schedule-edit:focus-visible { outline: 3px solid rgba(20, 122, 164, .28); outline-offset: 2px; }

.vote-plan { min-width: 0; margin-top: 18px; }
.vote-plan-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}
.live-status { display: inline-flex; align-items: center; gap: 7px; color: var(--pine); font-weight: 900; }
.live-status > span { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 4px var(--pine-soft); }
.vote-plan-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 0 12px;
}
.vote-plan-heading > div { min-width: 0; }
.vote-plan-heading h3 { margin: 0; color: var(--lake-dark); font-size: 1.35rem; letter-spacing: -0.025em; }
.vote-plan-heading p { margin: 3px 0 0; color: var(--muted); font-size: 0.78rem; }
.vote-plan-heading .text-button { flex: 0 0 auto; }
.vote-plan-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef4f5;
}
.vote-plan-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}
.vote-plan-tab[aria-pressed="true"] { background: #fff; color: var(--lake-dark); box-shadow: 0 2px 8px rgba(8, 45, 59, 0.09); }
.vote-plan-tab i { font-size: 1.05rem; }
.vote-plan-board { min-width: 0; margin-top: 12px; }
.vote-plan-list, .people-plan-list { display: grid; gap: 10px; min-width: 0; }
.vote-plan-card, .person-plan-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 5px 16px rgba(8, 45, 59, 0.045);
}
.vote-plan-card-head { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.vote-plan-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--mist);
  color: var(--lake);
  font-size: 0.82rem;
  font-weight: 950;
}
.vote-plan-card:first-child .vote-plan-rank { background: var(--sun-soft); color: #9b4b0a; }
.vote-plan-card-title { min-width: 0; }
.vote-plan-card-title h4 { margin: 2px 0 0; color: var(--ink); font-size: 1rem; letter-spacing: -0.012em; }
.vote-plan-card-title p { margin: 2px 0 0; color: var(--muted); font-size: 0.74rem; }
.vote-plan-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.plan-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 999px; background: #f0f4f4; color: var(--ink-soft); font-size: 0.64rem; font-weight: 900; }
.plan-badge.is-leading { background: var(--sun-soft); color: #93470b; }
.plan-badge.is-everyone { background: var(--pine-soft); color: #146433; }
.plan-badge.is-split { background: var(--warning-soft); color: #85551d; }
.plan-badge.is-conflict { background: #fff0ed; color: var(--danger); }
.vote-plan-times { display: flex; flex-wrap: wrap; gap: 5px; margin: 11px 0 9px 44px; }
.vote-plan-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 27px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--lake-dark);
  font-size: 0.7rem;
  font-weight: 850;
}
.vote-plan-time i { flex: 0 0 auto; }
.vote-plan-time.is-unplanned { border: 1px dashed var(--line-strong); background: transparent; color: var(--muted); }
.vote-plan-time-more { align-self: center; color: var(--muted); font-size: 0.68rem; font-weight: 800; }
.vote-plan-people { display: flex; flex-wrap: wrap; gap: 5px; margin-left: 44px; }
.vote-plan-conflict { display: flex; gap: 5px; margin: -2px 0 9px 44px; color: var(--danger); font-size: 0.7rem; font-weight: 750; }
.vote-plan-time-action { width: calc(100% - 44px); margin: 11px 0 0 44px; }
.vote-plan-fixed { display: flex; align-items: center; gap: 5px; margin: 10px 0 0 44px; color: var(--muted); font-size: 0.68rem; font-weight: 750; }
.vote-person-chip { display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 7px; border: 1px solid var(--line); border-radius: 9px; background: #f6f8f8; color: var(--muted); font-size: 0.68rem; }
.vote-person-chip strong { color: var(--ink); font-weight: 850; }
.vote-person-chip span { white-space: nowrap; }
.vote-person-chip.is-positive { border-color: #cde5d3; background: var(--pine-soft); color: #176437; }
.vote-person-chip.is-negative { background: #faf4f3; color: var(--danger); }
.person-plan-card { padding: 0; overflow: hidden; }
.person-plan-card.is-current { border-color: #aacbd4; }
.person-plan-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 12px 14px; background: #f7faf9; }
.person-plan-card > header > div { min-width: 0; }
.person-plan-card h4 { margin: 0; font-size: 1rem; }
.person-plan-card header span { display: block; color: var(--muted); font-size: 0.68rem; }
.person-plan-card header > strong { flex: 0 0 auto; color: var(--pine); font-size: 0.72rem; }
.person-pick-list { display: grid; }
.person-pick { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 11px 14px; border-top: 1px solid var(--line); }
.person-pick > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--mist); color: var(--lake); font-size: 1.05rem; }
.person-pick > div { min-width: 0; }
.person-pick > div > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; }
.person-pick > div > span { display: block; min-width: 0; margin-top: 3px; }
.person-pick .vote-plan-time { min-height: 0; padding: 0; background: transparent; color: var(--muted); font-size: 0.66rem; }
.person-vote-label { padding: 3px 6px; border-radius: 999px; background: #f0f4f4; color: var(--muted); font-size: 0.64rem; font-weight: 850; white-space: nowrap; }
.person-pick.is-positive .person-vote-label { background: var(--pine-soft); color: #176437; }
.person-pick.is-negative .person-vote-label { background: #faf4f3; color: var(--danger); }
.person-plan-empty { padding: 16px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.vote-plan-empty { display: grid; place-items: center; gap: 5px; padding: 28px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
.vote-plan-empty > i { color: var(--lake); font-size: 1.8rem; }
.vote-plan-empty strong { color: var(--ink); }
.vote-plan-empty .btn { margin-top: 8px; }
.optional-schedule { margin-top: 22px; scroll-margin-top: 92px; }
.optional-schedule-body > p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.optional-schedule .day-select { margin-bottom: 4px; }

.day-select { display: grid; gap: 5px; margin: 16px 0; color: var(--lake-dark); font-size: 0.78rem; font-weight: 850; }
.day-select select, .memory-form select, .memory-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.schedule-days { min-width: 0; }
.schedule-day { padding: 8px 0 0; }
.schedule-day > h3 { margin: 0 0 8px; font-size: 1.2rem; }
.schedule-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.schedule-time { color: var(--lake); font-size: 0.82rem; font-weight: 900; }
.schedule-title { font-weight: 850; }
.schedule-note { margin-top: 2px; color: var(--muted); font-size: 0.74rem; }
.schedule-actions { display: grid; gap: 4px; justify-items: stretch; }
.schedule-edit { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; padding: 4px 6px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fff;
  color: var(--lake);
  cursor: pointer;
}
.schedule-lock { width: 74px; padding: 4px 7px; grid-template-columns: auto 1fr; gap: 4px; font-size: 0.7rem; font-weight: 800; }
.revision-list { display: grid; gap: 8px; padding-top: 12px; }
.revision { padding: 10px 12px; border-left: 4px solid var(--sun); background: var(--sun-soft); border-radius: 0 10px 10px 0; }

.trip-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.trip-shortcuts a {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 68px;
  padding: 7px 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--lake-dark);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 800;
}
.trip-shortcuts i { font-size: 1.45rem; color: var(--lake); }
.campground-map-link { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #eef4e9; }
.campground-map-link img { width: 100%; height: auto; }
.map-callout { display: grid; gap: 2px; margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: var(--mist); color: var(--lake-dark); }
.map-callout span { color: var(--muted); font-size: 0.76rem; }

.fun-grid { display: grid; gap: 10px; }
.hub-card, .card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.hub-card h3, .card h3 { margin: 0 0 6px; }
.hub-card p, .card p { margin: 0; color: var(--muted); }
.fun-grid .btn, .fun-grid .note { margin-top: 12px; }
.scavenger-grid { display: grid; gap: 7px; margin-top: 10px; }
.scavenger-item { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 10px; border-radius: 10px; background: #f4f8f7; font-weight: 750; }
.memory-form { display: grid; gap: 10px; margin-top: 10px; }
.memory-form label { display: grid; gap: 5px; color: var(--ink-soft); font-size: 0.78rem; font-weight: 800; }
.memory-list { display: grid; gap: 7px; margin-top: 12px; }
.memory { padding: 9px 11px; border-radius: 10px; background: var(--sun-soft); }

.wrap { width: 100%; min-width: 0; margin: 0; }
[data-view="trip"] > section { padding: 30px 0 0; scroll-margin-top: 92px; }
.section-head { display: grid; gap: 4px; margin-bottom: 14px; }
.section-head h2 { margin: 0; color: var(--lake-dark); font-size: 1.45rem; letter-spacing: -0.03em; }
.section-head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.span4, .span5, .span6, .span7, .span8, .span12 { grid-column: 1 / -1; }
.metric { color: var(--lake); font-size: 1.55rem; font-weight: 900; line-height: 1; }
.label { margin-top: 5px; color: var(--muted); font-size: 0.78rem; }
.alert { border-color: #edd49e; background: #fff8e9; }
.good { border-color: #c9e2d5; background: #eff8f4; }
.beach { background: #eef8fa; }
.timeline { display: grid; gap: 10px; }
.day { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.day .date { color: var(--lake); font-weight: 900; }
.day h3 { margin: 0; }
.day p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { padding: 4px 8px; border-radius: 999px; background: #edf4f2; color: var(--pine); font-size: 0.72rem; font-weight: 800; }
.chip.orange { background: #fff0df; color: #8c4a18; }
.chip.blue { background: #eaf4f7; color: #225d6c; }
.checklist { columns: 1; }
.checkgroup { break-inside: avoid; margin: 0 0 10px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.checkgroup h3 { margin: 0 0 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pine); flex: 0 0 auto; }
.quicklinks { display: grid; gap: 8px; }
.ql { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; font-weight: 850; }
.ql span { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.ql > i { color: var(--lake); font-size: 1.1rem; }
.note { padding: 12px 14px; border-left: 4px solid var(--sun); border-radius: 0 12px 12px 0; background: #fff7ea; color: #63492d; }
.spaced-sm { margin-top: 10px !important; }
.spaced { margin-top: 14px !important; }
.source-list { display: grid; gap: 10px; }
.source-list a { min-height: 44px; color: var(--lake); font-weight: 800; text-underline-offset: 3px; }
.trip-footer { display: grid; gap: 4px; margin-top: 34px; padding: 24px 0 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }

.guide-details { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.guide-details summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 10px 14px; color: var(--lake-dark); font-weight: 850; cursor: pointer; list-style: none; }
.guide-details summary::-webkit-details-marker { display: none; }
.guide-details summary span { display: inline-flex; align-items: center; gap: 8px; }
.guide-details[open] summary > i { transform: rotate(180deg); }
.guide-details > :not(summary) { margin: 0 14px 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--tap);
  padding: 10px 14px;
  border: 1px solid var(--lake);
  border-radius: 13px;
  background: var(--lake);
  color: #fff;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--lake-dark); }
.btn.secondary { border-color: var(--line-strong); background: #fff; color: var(--lake-dark); }
.btn.sun { border-color: #ec8123; background: var(--sun); color: #3c230d; }
.btn.danger { border-color: #e2beba; background: #fff; color: var(--danger); }
.btn:disabled { opacity: 0.55; cursor: wait; }

.app-nav {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 24px rgba(13, 47, 59, 0.07);
  backdrop-filter: blur(16px);
}
.app-nav-button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 54px;
  padding: 4px 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #50616b;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}
.app-nav-button i { font-size: 1.45rem; }
.app-nav-button.active { color: var(--pine); }
.app-nav-button.active i { font-family: "Phosphor-Fill" !important; }

.settings-dialog {
  width: min(620px, 100%);
  max-width: none;
  max-height: min(90vh, 820px);
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 -16px 60px rgba(5, 42, 55, 0.22);
}
.settings-dialog::backdrop { background: rgba(4, 30, 40, 0.46); backdrop-filter: blur(2px); }
.dialog-sheet { max-height: min(90vh, 820px); overflow-y: auto; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }
.dialog-header { position: sticky; top: -18px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -18px -16px 0; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.dialog-header h2 { margin: 0; font-size: 1.6rem; }
.activity-plan-intro { margin: 16px 0 0; color: var(--muted); }
.activity-plan-existing { display: grid; gap: 8px; margin-top: 15px; }
.activity-plan-existing-title { color: var(--lake-dark); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.activity-plan-existing-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; }
.activity-plan-existing-row strong, .activity-plan-existing-row span { display: block; }
.activity-plan-existing-row strong { font-size: 0.84rem; }
.activity-plan-existing-row > div > span { margin-top: 2px; color: var(--muted); font-size: 0.7rem; }
.activity-plan-row-actions { display: flex; gap: 5px; }
.activity-plan-edit, .activity-plan-remove { padding: 6px 9px; }
.activity-plan-remove { background: #fff2ef; color: var(--danger); }
.locked-plan-label { display: inline-flex !important; align-items: center; gap: 4px; color: var(--lake); font-size: 0.7rem; font-weight: 850; }
.activity-plan-empty { padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 0.78rem; }
.activity-plan-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.activity-plan-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 10px; }
.activity-plan-fields label { display: grid; gap: 5px; color: var(--lake-dark); font-size: 0.76rem; font-weight: 850; }
.activity-plan-fields label span { color: var(--muted); font-weight: 650; }
.activity-plan-fields select, .activity-plan-fields input { width: 100%; min-width: 0; min-height: var(--tap); padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; }
.accuracy-note { display: flex; align-items: flex-start; gap: 7px; padding: 10px 11px; border-radius: 11px; background: var(--mist); color: var(--muted); font-size: 0.74rem; }
.accuracy-note i { flex: 0 0 auto; margin-top: 2px; color: var(--lake); }
.accuracy-note strong { color: var(--ink); }
.activity-plan-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.settings-section { padding-top: 18px; }
.notification-panel { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--mist); }
.notification-panel > div:first-child { display: grid; gap: 3px; }
.notification-panel span { color: var(--muted); font-size: 0.8rem; }
.notification-actions, .settings-actions { display: grid; gap: 8px; }
.notification-actions { grid-template-columns: 1fr 1fr; }
.notification-actions > :only-child { grid-column: 1 / -1; }
.notification-actions > #enableNotifications:not(.hidden) { grid-column: 1 / -1; }
.install-help { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: var(--warning-soft); color: #65451f; font-weight: 700; }
.notification-preferences { display: grid; gap: 8px; margin-top: 12px; }
.notification-preferences > label { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 0.86rem; font-weight: 750; }
.notification-preferences input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--pine); }
.quiet-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; margin: 5px 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.quiet-hours legend { padding: 0 5px; color: var(--muted); font-size: 0.76rem; font-weight: 850; }
.quiet-hours label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 0.72rem; }
.quiet-hours input { width: 100%; min-width: 0; min-height: 44px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink); }
.weather-guide-grid { display: grid; gap: 8px; }
.weather-guide-grid > div { display: flex; align-items: flex-start; gap: 10px; }
.weather-guide-grid > div > i { flex: 0 0 auto; margin-top: 3px; color: var(--lake); font-size: 1.2rem; }
.weather-guide-grid span { color: var(--muted); font-size: 0.82rem; }
.weather-guide-grid strong { color: var(--ink); }
.settings-actions { grid-template-columns: 1fr 1fr; margin-top: 18px; }
.settings-actions .danger { grid-column: 1 / -1; }

.toast {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 16px;
  max-width: 480px;
  margin: auto;
  padding: 12px 15px;
  border-radius: 14px;
  background: #102f3b;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.24);
  font-weight: 750;
  text-align: center;
}
.toast.has-action { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; }
.toast-action { min-height: 44px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 10px; background: transparent; color: #fff; font-weight: 900; cursor: pointer; }

.load-error { display: grid; justify-items: center; gap: 10px; max-width: 440px; text-align: center; }
.load-error span { color: var(--muted); font-weight: 500; }
.is-spinning i { animation: spin 1s linear infinite; }

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

@media (min-width: 560px) {
  .app-topbar { padding-inline: 24px; }
  .app-view { padding-inline: 24px; }
  .weather-hero { margin-inline: -24px; padding-inline: 24px; }
  .compact-countdown { display: block; }
  .member-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hub-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .park-feed-actions { display: flex; flex-wrap: wrap; }
  .park-feed-actions > :first-child { grid-column: auto; }
  .activity-row { grid-template-columns: minmax(180px, 1fr) minmax(290px, 1.35fr); align-items: center; }
  .fun-grid { grid-template-columns: 1fr 1fr; }
  .fun-grid .span12 { grid-column: 1 / -1; }
  .checklist { columns: 2; column-gap: 12px; }
  .quicklinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-dialog { margin: auto; border-radius: 24px; }
}

@media (min-width: 380px) {
  .recommendation.featured { grid-template-columns: auto minmax(0, 1fr) auto; }
  .recommendation-action { grid-column: auto; }
}

@media (min-width: 900px) {
  body { background: #f5f8f7; }
  .app-topbar { margin-left: 104px; padding-inline: 30px; }
  .app-main { margin-left: 104px; width: calc(100% - 104px); }
  .app-view { width: min(940px, 100%); padding: 0 30px 60px; }
  .weather-hero { margin: 24px 0 0; padding: 24px; border: 1px solid #d4e7ee; border-radius: 24px; }
  .app-nav { top: 0; right: auto; width: 104px; grid-template-columns: 1fr; grid-template-rows: repeat(4, 78px); align-content: center; padding: 16px 10px; border-top: 0; border-right: 1px solid var(--line); box-shadow: 8px 0 24px rgba(13,47,59,.05); }
  .app-nav-button { min-height: 68px; }
  .toast { left: 120px; bottom: 22px; }
  .grid .span4 { grid-column: span 4; }
  .grid .span5 { grid-column: span 5; }
  .grid .span6 { grid-column: span 6; }
  .grid .span7 { grid-column: span 7; }
  .grid .span8 { grid-column: span 8; }
  .grid .span12 { grid-column: span 12; }
  .day { grid-template-columns: 120px 1fr; gap: 18px; }
  .quicklinks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .voting-for {
    position: sticky;
    top: calc(81px + env(safe-area-inset-top));
    z-index: 35;
    margin: 10px -16px 0;
    padding: 10px 16px 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(237, 246, 248, 0.96);
    box-shadow: 0 7px 18px rgba(8, 45, 59, 0.08);
    backdrop-filter: blur(14px);
  }
  .voting-for legend { padding-inline: 0; font-size: 0.74rem; }
  .member-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .member-chip { min-height: 44px; padding: 6px 4px; font-size: 0.8rem; }
  .member-chip small { font-size: 0.62rem; }
}

@media (max-width: 359px) {
  .app-topbar { gap: 6px; padding-inline: 10px; }
  #refreshWeather { display: none; }
  .app-brand { gap: 7px; }
  .app-brand img { width: 34px; height: 34px; }
  .app-brand h1 { max-width: none; font-size: 1rem; }
  .brand-long { display: none; }
  .brand-short { display: inline; }
  .app-brand p { display: none; }
  .topbar-actions { gap: 3px; }
  .icon-button { width: 44px; height: 44px; }
  .vote-plan-heading h3 { font-size: 1.18rem; }
  .vote-plan-heading .text-button { font-size: 0.75rem; }
  .weather-primary { grid-template-columns: auto auto minmax(0, 1fr); gap: 6px; }
  .weather-icon { font-size: 3rem; }
  .weather-value { font-size: 3.6rem; }
  .weather-copy h3 { font-size: 0.94rem; }
  .recommendation { gap: 8px; padding: 12px 10px; }
  .recommendation-icon { width: 44px; height: 44px; }
  .vote-btn span { font-size: 0.75rem; }
  .schedule-item { grid-template-columns: 52px minmax(0, 1fr) 70px; gap: 7px; }
  .schedule-lock { width: 70px; }
  .activity-plan-strip { grid-template-columns: 1fr; }
  .activity-plan-open { width: 100%; }
  .activity-plan-fields { grid-template-columns: 1fr; }
}

@media (min-width: 360px) and (max-width: 420px) {
  .app-brand h1 { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .app-topbar, .app-nav, .settings-dialog, .toast, .skip-link, button, .notification-panel { display: none !important; }
  body { background: #fff; }
  .app-main { margin: 0; width: 100%; }
  .app-view { display: block !important; width: 100%; padding: 0; }
  .weather-hero { margin: 0; border: 1px solid #ddd; }
  .hub-card, .card, .day { break-inside: avoid; }
}
