:root {
  --primary: #1368e8;
  --primary-dark: #0b4fc2;
  --primary-soft: #eaf3ff;
  --cyan: #22b8cf;
  --bg: #eef4fb;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --surface-soft: #f6f9fd;
  --text: #132238;
  --muted: #697b91;
  --border: #dfe8f3;
  --good: #16875c;
  --good-soft: #e5f7ef;
  --fair: #b86908;
  --fair-soft: #fff3da;
  --poor: #c63c46;
  --poor-soft: #ffeaec;
  --shadow: 0 18px 50px rgba(32, 69, 111, 0.09);
  --shadow-sm: 0 8px 24px rgba(32, 69, 111, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 5%, rgba(35, 150, 255, 0.13), transparent 28rem),
    radial-gradient(circle at 95% 35%, rgba(34, 184, 207, 0.09), transparent 25rem),
    var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  overflow-x: hidden;
}

button, input { font: inherit; }
button { touch-action: manipulation; }

.container { max-width: 1120px; }
.d-none { display: none !important; }

.page-progress {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.page-progress span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #fff, #9fe9ff, #fff);
  box-shadow: 0 0 12px rgba(255,255,255,.75);
  animation: progress-run 1.15s ease-in-out infinite;
}

.page-progress.active { opacity: 1; }

.app-header {
  position: sticky;
  z-index: 100;
  top: 0;
  padding-top: var(--safe-top);
  color: #fff;
  background: linear-gradient(120deg, rgba(8, 70, 174, .96), rgba(19, 104, 232, .94) 52%, rgba(20, 147, 190, .92));
  box-shadow: 0 10px 35px rgba(7, 56, 137, .18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 20px rgba(6, 45, 113, .2);
}
.logo-mark {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 5px 9px rgba(0, 35, 92, .18));
}
.brand-name { display: block; font-size: 1.05rem; font-weight: 760; letter-spacing: -.02em; line-height: 1.15; }
.brand-subtitle { display: block; margin-top: 3px; color: rgba(255,255,255,.72); font-size: .71rem; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 9px; }
.manual-link-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: .82rem;
  font-weight: 750;
}
.manual-link-btn:hover,
.manual-link-btn:focus { color: #fff; background: rgba(255,255,255,.2); }
.manual-link-btn svg { width: 17px; height: 17px; }
.lang-toggle {
  padding: 3px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(255,255,255,.1);
}
.lang-toggle .btn {
  min-width: 38px;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 9px !important;
  color: rgba(255,255,255,.72);
  font-size: .74rem;
  font-weight: 750;
}
.lang-toggle .btn.active { color: var(--primary-dark); background: #fff; box-shadow: 0 3px 10px rgba(3, 41, 98, .18); }
.install-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.14);
  font-size: .84rem;
  font-weight: 700;
}
.install-btn:hover { color: #fff; background: rgba(255,255,255,.22); }
.install-btn svg { width: 17px; height: 17px; }

.app-main { padding-top: 22px; padding-bottom: calc(24px + var(--safe-bottom)); }

.card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card-body { padding: 22px; }

.search-card { position: relative; z-index: 20; overflow: visible; margin-bottom: 18px; }
.search-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  background: linear-gradient(var(--primary), var(--cyan));
}
.search-card .card-body { display: grid; gap: 17px; }
.eyebrow, .section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.search-copy h1 { margin: 0; font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 780; letter-spacing: -.035em; line-height: 1.15; }
.search-copy p { margin: 7px 0 0; color: var(--muted); font-size: .91rem; }
.search-box { position: relative; }
.search-input-group {
  min-height: 54px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  box-shadow: 0 5px 15px rgba(30, 70, 115, .04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.search-input-group:focus-within { border-color: rgba(19,104,232,.65); box-shadow: 0 0 0 4px rgba(19,104,232,.11); transform: translateY(-1px); }
.search-input-group .input-group-text,
.search-input-group .form-control { border: 0; background: transparent; }
.search-input-group .input-group-text { padding-left: 16px; padding-right: 7px; color: var(--muted); }
.search-input-group .input-group-text svg { width: 19px; height: 19px; }
.search-input-group .form-control { min-width: 0; padding: 12px 8px; color: var(--text); box-shadow: none; }
.search-input-group .form-control::placeholder { color: #8c9caf; }
.search-submit {
  min-width: 116px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 5px;
  border: 0;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 7px 17px rgba(19,104,232,.22);
  font-weight: 700;
}
.search-submit:hover, .search-submit:focus { background: linear-gradient(135deg, #2177ef, #0845ae); }
.search-submit:disabled { opacity: .72; }
.search-submit svg { width: 17px; height: 17px; }
.search-submit.is-loading svg { animation: spin 900ms linear infinite; }

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(330px, 52vh);
  display: none;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-solid);
  overscroll-behavior: contain;
}
.search-dropdown.show { display: block; animation: dropdown-in 170ms ease-out; }
.search-dropdown .list-group-item { min-height: 50px; display: flex; align-items: center; gap: 11px; border-color: var(--border); color: var(--text); background: transparent; }
.search-dropdown .list-group-item svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--primary); }
.search-dropdown .list-group-item:hover { background: var(--primary-soft); }
.search-result-sub { display: block; color: var(--muted); font-size: .75rem; }

.quick-row { min-width: 0; display: flex; align-items: center; gap: 8px; }
.quick-locations { min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 3px 2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.quick-locations::-webkit-scrollbar, .daily-scroll::-webkit-scrollbar, .hourly-scroll::-webkit-scrollbar { display: none; }
.chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #40536b;
  background: var(--surface-solid);
  box-shadow: 0 3px 10px rgba(30,70,115,.04);
  font-size: .8rem;
  font-weight: 650;
  scroll-snap-align: start;
  transition: 150ms ease;
}
.chip:hover { border-color: rgba(19,104,232,.45); color: var(--primary); transform: translateY(-1px); }
.chip.active { border-color: var(--primary); color: #fff; background: var(--primary); box-shadow: 0 6px 15px rgba(19,104,232,.22); }
.chip-location { color: var(--primary); background: var(--primary-soft); border-color: #cfe2ff; }
.chip svg { width: 15px; height: 15px; }

body.manual-open { overflow: hidden; }
.manual-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 17, 31, .48);
  opacity: 0;
  transition: opacity 180ms ease;
  backdrop-filter: blur(4px);
}
.manual-overlay.open { opacity: 1; }
.manual-drawer {
  position: fixed;
  inset: 0;
  z-index: 1210;
  pointer-events: none;
}
.manual-drawer.open { pointer-events: auto; }
.manual-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  overflow-y: auto;
  border-left: 1px solid rgba(19,104,232,.14);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 196, 87, .16), transparent 16rem),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,251,255,.98));
  box-shadow: -24px 0 58px rgba(12, 31, 54, .24);
  transform: translateX(104%);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
}
.manual-drawer.open .manual-drawer-panel { transform: translateX(0); }
.manual-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.manual-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-solid);
  box-shadow: 0 6px 14px rgba(30,70,115,.07);
}
.manual-close:hover,
.manual-close:focus { border-color: rgba(19,104,232,.42); color: var(--primary); }
.manual-close svg { width: 18px; height: 18px; }
.manual-count {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 10px;
  border: 1px solid #d6eadf;
  border-radius: 999px;
  color: #107555;
  background: #eef9f3;
  font-size: .66rem;
  font-weight: 800;
  white-space: nowrap;
}
.manual-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}
.manual-search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
}
.manual-search svg {
  width: 17px;
  height: 17px;
  margin-left: 14px;
  color: var(--primary);
}
.manual-search .form-control {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: .84rem;
  box-shadow: none;
}
.manual-search:focus-within {
  border-color: rgba(19,104,232,.55);
  box-shadow: 0 0 0 4px rgba(19,104,232,.1);
}
.manual-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 4px;
  scrollbar-width: none;
}
.manual-tabs::-webkit-scrollbar { display: none; }
.manual-tab {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #496078;
  background: var(--surface-solid);
  font-size: .72rem;
  font-weight: 760;
}
.manual-tab.active {
  border-color: rgba(19,104,232,.55);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #16875c);
}
.manual-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.manual-item {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.64);
}
.manual-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: var(--primary-soft);
}
.manual-icon svg { width: 18px; height: 18px; }
.manual-copy { min-width: 0; }
.manual-copy strong {
  display: block;
  color: var(--text);
  font-size: .85rem;
  font-weight: 820;
  line-height: 1.25;
}
.manual-copy p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}
.manual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.manual-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #315d50;
  background: #eef9f3;
  font-size: .6rem;
  font-weight: 760;
}
.manual-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 15px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: .78rem;
}

.install-hint, .weather-alert {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #f1d7a1;
  border-radius: var(--radius-lg);
  color: #79540f;
  background: #fff8e9;
  box-shadow: var(--shadow-sm);
  font-size: .86rem;
}
.hint-icon, .alert-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: rgba(255,255,255,.65); }
.hint-icon svg, .alert-icon svg { width: 18px; height: 18px; }
.hint-close { width: 38px; height: 38px; display: grid; place-items: center; margin-left: auto; border: 0; border-radius: 10px; color: currentColor; background: transparent; }
.hint-close svg { width: 18px; height: 18px; }
.weather-alert { border-color: #f5c8cc; color: #8c2630; background: var(--poor-soft); }
.weather-alert #weatherErrorText { flex: 1; }
.weather-alert .btn { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; border: 1px solid rgba(140,38,48,.16); border-radius: 10px; color: #8c2630; background: rgba(255,255,255,.55); font-weight: 700; }
.weather-alert .btn svg { width: 15px; height: 15px; }

.skeleton-layout { display: grid; gap: 18px; }
.skeleton { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: #dfe8f3; box-shadow: var(--shadow-sm); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.35s infinite; }
.skeleton-hero { height: 350px; }
.skeleton-strip { height: 160px; }
.skeleton-panel { height: 310px; }

.weather-content { animation: content-in 420ms cubic-bezier(.22,.8,.24,1); }
.weather-content.is-refreshing { opacity: .72; transition: opacity 180ms ease; }
.weather-card { overflow: hidden; }
.weather-card .card-body { padding: 22px; }

.fishing-advisor-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 135, 92, .14) !important;
  background:
    radial-gradient(circle at 95% 0, rgba(32, 190, 145, .12), transparent 18rem),
    var(--surface);
}
.fishing-advisor-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(#17a673, #16a2b8); }
.fishing-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.data-status { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 6px 9px; border: 1px solid #cdece0; border-radius: 999px; color: var(--good); background: var(--good-soft); font-size: .66rem; font-weight: 750; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(22,135,92,.12); animation: status-pulse 2s ease-out infinite; }
.data-status.cached { border-color: #ead5ab; color: var(--fair); background: var(--fair-soft); }
.data-status.cached .status-dot { animation: none; }
.fishing-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.profile-field { min-width: 0; display: block; }
.species-profile-field { grid-column: 1 / -1; }
.profile-field > span { display: flex; align-items: center; gap: 6px; margin: 0 0 6px 2px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.profile-field > span svg { width: 14px; height: 14px; color: var(--primary); }
.profile-field .form-select { min-height: 44px; border-color: var(--border); border-radius: 12px; color: var(--text); background-color: var(--surface-soft); font-size: .79rem; font-weight: 700; box-shadow: none; }
.profile-field .form-select:focus { border-color: rgba(19,104,232,.6); box-shadow: 0 0 0 3px rgba(19,104,232,.1); }
.profile-species-search { min-height: 44px; border-radius: 12px; }
.profile-species-search .form-control { font-size: .79rem; font-weight: 700; }
.profile-species-results {
  position: relative;
  z-index: 20;
  max-height: 260px;
}
.terrain-hint { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 20px; padding: 9px 11px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); background: var(--surface-soft); font-size: .68rem; line-height: 1.45; }
.terrain-hint svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: var(--primary); }
.terrain-hint.marine { border-color: #ead5ab; color: var(--fair); background: var(--fair-soft); }
.trip-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.trip-item { min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.trip-item span, .trip-item small { display: block; overflow: hidden; color: var(--muted); font-size: .66rem; white-space: nowrap; text-overflow: ellipsis; }
.trip-item strong { display: block; overflow: hidden; margin-top: 3px; color: var(--text); font-size: .86rem; font-weight: 790; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.trip-item small { margin-top: 3px; font-size: .63rem; }
.fishing-overview { display: flex; align-items: center; gap: 18px; }
.fishing-score {
  --score-color: var(--good);
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--score-color) calc(var(--score) * 1%), var(--border) 0);
  box-shadow: 0 10px 25px rgba(20, 100, 80, .12);
  transition: --score 500ms ease;
}
.fishing-score::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--border); }
.fishing-score > div { position: relative; display: flex; align-items: baseline; }
.fishing-score strong { font-size: 2rem; font-weight: 820; letter-spacing: -.06em; }
.fishing-score span { margin-left: 2px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.fishing-score.score-excellent { --score-color: #119b64; }
.fishing-score.score-good { --score-color: #30a56d; }
.fishing-score.score-fair { --score-color: #d28a18; }
.fishing-score.score-poor { --score-color: #cf4b54; }
.fishing-verdict { min-width: 0; }
.fishing-rating { display: inline-flex; margin-bottom: 6px; color: var(--good); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fishing-verdict h3 { margin: 0; font-size: clamp(1.15rem, 4vw, 1.5rem); font-weight: 780; letter-spacing: -.035em; }
.fishing-verdict p { margin: 7px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.fishing-factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.fishing-factor { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.factor-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.factor-icon svg { width: 16px; height: 16px; }
.factor-copy { min-width: 0; display: flex; flex-direction: column; }
.factor-label { color: var(--muted); font-size: .66rem; }
.factor-value { overflow: hidden; font-size: .78rem; font-weight: 760; white-space: nowrap; text-overflow: ellipsis; }
.factor-state { margin-left: auto; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.factor-state.good { background: var(--good); box-shadow: 0 0 0 4px rgba(22,135,92,.1); }
.factor-state.fair { background: #d28a18; box-shadow: 0 0 0 4px rgba(210,138,24,.1); }
.factor-state.poor { background: var(--poor); box-shadow: 0 0 0 4px rgba(198,60,70,.1); }
.fishing-warning { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 11px 13px; border: 1px solid #f0c5c9; border-radius: 13px; color: var(--poor); background: var(--poor-soft); font-size: .78rem; font-weight: 650; line-height: 1.45; }
.fishing-warning svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.fishing-windows-wrap { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--border); }
.windows-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.windows-title > span { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 780; }
.windows-title svg { width: 16px; height: 16px; color: var(--primary); }
.windows-title small { color: var(--muted); font-size: .65rem; }
.fishing-windows { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 5px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fishing-windows::-webkit-scrollbar { display: none; }
.fishing-window { min-width: 142px; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 11px 12px; border: 1px solid #cfe9df; border-radius: 14px; background: var(--good-soft); scroll-snap-align: start; }
.window-rank { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #fff; background: var(--good); font-size: .7rem; font-weight: 800; }
.window-copy { display: flex; flex-direction: column; }
.window-time { color: var(--text); font-size: .8rem; font-weight: 790; }
.window-score { color: var(--good); font-size: .65rem; font-weight: 700; }
.fishing-disclaimer { margin: 12px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.45; }

.angler-intel-grid { display: grid; gap: 18px; }
.fish-intel-card, .marine-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(28, 124, 110, .12) !important;
}
.fish-intel-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,252,249,.94)),
    var(--surface);
}
.fish-intel-card::before,
.marine-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(#1ba87f, #1b8bd6);
}
.fish-intel-card .card-body,
.marine-card .card-body { position: relative; z-index: 1; }
.intel-badge,
.marine-status {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 10px;
  border: 1px solid #caeadf;
  border-radius: 999px;
  color: #107555;
  background: #e9f8f1;
  font-size: .66rem;
  font-weight: 800;
  white-space: nowrap;
}
.fish-search-label {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
}
.fish-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}
.fish-search-box svg {
  width: 17px;
  height: 17px;
  margin-left: 13px;
  color: var(--primary);
}
.fish-search-box .form-control {
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: .82rem;
}
.fish-search-box:focus-within {
  border-color: rgba(25, 132, 112, .56);
  box-shadow: 0 0 0 4px rgba(25,132,112,.1);
}
.fish-results {
  display: none;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.fish-results.show { display: block; animation: dropdown-in 170ms ease-out; }
.fish-result {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  text-align: left;
}
.fish-result.muted {
  display: block;
  grid-template-columns: none;
  color: var(--muted);
  font-size: .76rem;
}
.fish-result:last-child { border-bottom: 0; }
.fish-result:hover { background: rgba(27,168,127,.08); }
.fish-result.has-local { background: linear-gradient(90deg, rgba(27,168,127,.08), transparent 78%); }
.fish-result.api-only { background: linear-gradient(90deg, rgba(47,127,240,.07), transparent 78%); }
.fish-result-thumb {
  width: 58px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-soft);
}
.fish-result-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.fish-result-thumb svg { width: 17px; height: 17px; }
.fish-result-content {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.fish-result-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.fish-result strong {
  min-width: 0;
  color: var(--text);
  font-size: .83rem;
  line-height: 1.25;
}
.fish-result-meta {
  color: var(--muted);
  font-size: .7rem;
  font-style: italic;
  line-height: 1.35;
}
.fish-result-sources,
.fish-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.fish-result-sources {
  justify-content: flex-end;
  flex: 0 0 auto;
  max-width: 48%;
}
.source-pill,
.fish-result-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid #d6eadf;
  border-radius: 999px;
  color: #107555;
  background: #eef9f3;
  font-size: .58rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.fish-result-tags span {
  color: #426176;
  background: var(--surface-soft);
  border-color: var(--border);
}
.fish-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.fish-portrait {
  width: 122px;
  min-height: 98px;
  display: grid;
  align-self: stretch;
  flex: 0 0 122px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}
.fish-portrait img {
  width: 100%;
  height: 100%;
  min-height: 98px;
  display: block;
  object-fit: cover;
}
.fish-portrait > span {
  align-self: end;
  margin-top: -28px;
  padding: 5px 7px;
  color: rgba(255,255,255,.92);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.62));
  font-size: .56rem;
  font-weight: 700;
  line-height: 1.25;
  pointer-events: none;
}
.fish-portrait-placeholder {
  min-height: 98px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 12px;
  color: var(--muted);
  text-align: center;
  font-size: .64rem;
  font-weight: 760;
}
.fish-portrait-placeholder svg { width: 24px; height: 24px; color: var(--primary); }
.fish-title-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.025em;
}
.fish-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-style: italic;
}
.fish-metrics {
  min-width: 82px;
  padding: 9px 10px;
  border: 1px solid #d6eadf;
  border-radius: 14px;
  background: #eef9f3;
  text-align: right;
}
.fish-metrics span {
  display: block;
  color: #107555;
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
}
.fish-metrics small { color: #4c826d; font-size: .62rem; font-weight: 750; }
.fish-badges,
.diet-tags,
.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.fish-badges { margin-top: 11px; }
.fish-badges span,
.diet-tags span,
.source-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #426176;
  background: var(--surface-soft);
  font-size: .66rem;
  font-weight: 750;
}
.behavior-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.behavior-item {
  min-width: 0;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}
.behavior-item > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 760;
}
.behavior-item svg { width: 14px; height: 14px; color: #158b70; }
.behavior-item strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: .78rem;
  font-weight: 720;
  line-height: 1.42;
}
.diet-wrap { margin-top: 13px; }
.mini-label {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.water-clarity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #d9eadf;
  border-radius: 14px;
  background: #f2faf5;
}
.water-clarity-row label {
  color: #315d50;
  font-size: .76rem;
  font-weight: 800;
}
.water-clarity-row .form-select {
  max-width: 138px;
  min-height: 38px;
  border-color: #bddfce;
  border-radius: 11px;
  background-color: #fff;
  color: var(--text);
  font-size: .76rem;
  font-weight: 760;
  box-shadow: none;
}
.lure-block {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.lure-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.lure-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: .83rem;
  font-weight: 820;
}
.lure-heading svg { width: 16px; height: 16px; color: #158b70; }
.lure-heading small { max-width: 220px; color: var(--muted); font-size: .64rem; text-align: right; line-height: 1.35; }
.lure-list { display: grid; gap: 9px; }
.lure-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #d6eadf;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(238,249,243,.92), rgba(255,255,255,.86));
}
.lure-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #16875c, #1b8bd6);
  font-size: .7rem;
  font-weight: 850;
}
.lure-copy { min-width: 0; }
.lure-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lure-topline strong {
  overflow: hidden;
  color: var(--text);
  font-size: .87rem;
  font-weight: 830;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lure-topline span { color: #107555; font-size: .7rem; font-weight: 850; }
.lure-copy p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
}
.lure-meta,
.lure-colors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.lure-meta span {
  padding: 4px 7px;
  border-radius: 8px;
  color: #345a71;
  background: rgba(27,139,214,.09);
  font-size: .64rem;
  font-weight: 760;
}
.lure-colors { margin-top: 7px; }
.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.65);
  font-size: .62rem;
  font-weight: 740;
}
.color-chip span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 50%;
  background: var(--chip-color);
}
.lure-copy small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.35;
}
.source-strip { margin-top: 12px; }
.source-strip span {
  max-width: 100%;
  color: #6d5b18;
  background: #fff8df;
  border-color: #eadb9b;
  line-height: 1.25;
  white-space: normal;
}

.marine-card {
  background:
    radial-gradient(circle at 92% 7%, rgba(55, 171, 214, .18), transparent 16rem),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(242,248,255,.94));
}
.marine-status { color: #0b6890; border-color: #c8e7f4; background: #e8f7fc; }
.marine-unavailable {
  min-height: 118px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px dashed #cbdbe9;
  border-radius: 16px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: .78rem;
  line-height: 1.5;
}
.marine-unavailable svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--primary); margin-top: 2px; }
.tide-visual {
  display: flex;
  align-items: center;
  gap: 17px;
}
.tide-orb {
  --tide-position: 50;
  position: relative;
  width: 126px;
  height: 126px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(27,139,214,.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255,255,255,.82), transparent 2.4rem),
    linear-gradient(#eaf8ff, #cdefff);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.5), 0 16px 38px rgba(27,139,214,.18);
}
.tide-water {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: 0;
  height: calc(var(--tide-position) * 1%);
  background: linear-gradient(180deg, rgba(26,169,208,.78), rgba(8,91,170,.92));
  transition: height 500ms ease;
}
.tide-water::before,
.tide-water::after {
  content: "";
  position: absolute;
  left: -8%;
  top: -13px;
  width: 116%;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  animation: tide-wave 3.8s ease-in-out infinite;
}
.tide-water::after {
  top: -8px;
  opacity: .5;
  animation-duration: 5s;
  animation-direction: reverse;
}
.tide-shine {
  position: absolute;
  inset: 16px 22px auto auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
}
.tide-copy { min-width: 0; }
.tide-copy strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 2rem;
  font-weight: 830;
  letter-spacing: -.045em;
}
.tide-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.tide-copy small {
  display: block;
  margin-top: 7px;
  color: #0b6890;
  font-size: .68rem;
  font-weight: 760;
}
.tide-curve {
  min-height: 282px;
  display: block;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}
.tide-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.tide-chart-head span {
  color: var(--text);
  font-size: .76rem;
  font-weight: 820;
}
.tide-chart-head small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 760;
}
.tide-chart-svg {
  width: 100%;
  height: 218px;
  display: block;
  overflow: visible;
}
.tide-day-band { fill: rgba(230, 220, 151, .34); }
.tide-grid-line { stroke: rgba(95, 119, 141, .26); stroke-width: 1; }
.tide-area { fill: rgba(45, 136, 201, .13); }
.tide-line {
  fill: none;
  stroke: #315c9a;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tide-now-line {
  stroke: rgba(22, 121, 199, .5);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}
.tide-y-label,
.tide-x-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 680;
}
.tide-x-label { fill: var(--text); }
.tide-datum-help {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.42;
}
.tide-turns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.tide-turn-group {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(27,139,214,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
}
.tide-turn-group span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 780;
}
.tide-turn-group strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: .74rem;
  font-weight: 820;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.marine-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.marine-stat {
  min-width: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.6);
}
.marine-stat > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #0b6890;
  background: #e8f7fc;
}
.marine-stat svg { width: 16px; height: 16px; }
.marine-stat div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.marine-stat small { overflow: hidden; color: var(--muted); font-size: .65rem; white-space: nowrap; text-overflow: ellipsis; }
.marine-stat strong { overflow: hidden; color: var(--text); font-size: .8rem; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.marine-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.45;
}

.current-card {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 88% 5%, rgba(255,255,255,.26), transparent 17rem),
    linear-gradient(135deg, #0757c7 0%, #1679ee 55%, #24a7c7 100%);
  box-shadow: 0 22px 60px rgba(12, 87, 196, .24);
}
.current-card::after { content: ""; position: absolute; right: -70px; bottom: -100px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.035), 0 0 0 78px rgba(255,255,255,.025); pointer-events: none; }
.current-card .card-body { position: relative; z-index: 1; }
.current-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.location-name { display: flex; align-items: center; gap: 7px; font-size: 1.14rem; font-weight: 760; letter-spacing: -.02em; }
.location-name svg { width: 18px; height: 18px; }
.current-updated { margin-top: 5px; color: rgba(255,255,255,.68); font-size: .78rem; }
.location-meta { max-width: min(560px, 70vw); overflow: hidden; margin-top: 4px; color: rgba(255,255,255,.68); font-size: .71rem; white-space: nowrap; text-overflow: ellipsis; }
.weather-icon-wrap { width: 76px; height: 76px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.24); }
.weather-icon-wrap.compact { width: 64px; height: 64px; border-color: var(--border); background: var(--surface-soft); }
.current-icon { font-size: 2.75rem; line-height: 1; filter: drop-shadow(0 7px 10px rgba(20,50,90,.2)); }
.compact .current-icon { font-size: 2.25rem; }
.current-summary { display: flex; align-items: flex-end; gap: 17px; margin: 12px 0 24px; }
.current-temp { font-size: clamp(3.4rem, 12vw, 5.7rem); font-weight: 790; line-height: .96; letter-spacing: -.075em; }
.condition-copy { min-width: 0; padding-bottom: 5px; }
.current-label { margin-bottom: 8px; font-size: 1rem; font-weight: 650; }
.condition-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; font-size: .73rem; font-weight: 750; }
.current-card .condition-badge { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.15); }
.badge-good { color: var(--good); background: var(--good-soft); }
.badge-fair { color: var(--fair); background: var(--fair-soft); }
.badge-poor { color: var(--poor); background: var(--poor-soft); }

.current-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat {
  min-width: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
}
.current-card .stat { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.1); }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: var(--primary); background: var(--primary-soft); }
.current-card .stat-icon { color: #fff; background: rgba(255,255,255,.13); }
.stat-icon svg { width: 17px; height: 17px; }
.stat-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stat-label { overflow: hidden; color: var(--muted); font-size: .69rem; white-space: nowrap; text-overflow: ellipsis; }
.current-card .stat-label { color: rgba(255,255,255,.64); }
.stat-value { min-width: 0; overflow: hidden; font-size: .84rem; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.wind-stat .stat-copy { flex: 1; }
.wind-stat { grid-column: 1 / -1; }
.wind-compass { position: relative; width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 50%; color: rgba(255,255,255,.7); font-size: .55rem; font-weight: 800; }
.day-grid .wind-compass { color: var(--primary); }
.wind-arrow { position: absolute; left: 50%; top: 50%; color: currentColor; font-size: 1rem; line-height: 1; transform-origin: 50% 50%; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-title { margin: 0; font-size: 1.08rem; font-weight: 760; letter-spacing: -.025em; }
.scroll-controls { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.scroll-hint {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #7f92a8;
  background: var(--surface-soft);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.scroll-hint:hover:not(:disabled) { color: var(--primary); border-color: rgba(19,104,232,.45); background: var(--primary-soft); transform: translateY(-1px); }
.scroll-hint:disabled { color: #b7c3d1; border-color: var(--border); background: var(--surface-soft); cursor: not-allowed; opacity: .58; }
.scroll-hint:focus-visible { outline: 3px solid rgba(19,104,232,.22); outline-offset: 2px; }
.scroll-hint svg { width: 19px; height: 19px; }
.daily-scroll, .hourly-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 7px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.daily-item, .hourly-item { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 16px; text-align: center; background: var(--surface-soft); scroll-snap-align: start; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.daily-item { width: 104px; min-height: 126px; padding: 13px 8px; cursor: pointer; }
.daily-item:hover { transform: translateY(-2px); border-color: rgba(19,104,232,.45); }
.daily-item:focus-visible { outline: 3px solid rgba(19,104,232,.22); outline-offset: 2px; }
.daily-item.active { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); box-shadow: 0 7px 18px rgba(19,104,232,.1); }
.daily-item .day { font-size: .76rem; font-weight: 750; }
.daily-item .icon { margin: 8px 0; font-size: 1.65rem; }
.daily-item .temps { font-size: .78rem; }
.daily-item .max { font-weight: 780; }
.daily-item .min { color: var(--muted); }
.daily-item .rain { margin-top: 5px; color: var(--primary); font-size: .68rem; }

.forecast-detail-grid { display: grid; gap: 0; }
.day-detail-label { margin-top: 4px; color: var(--muted); font-size: .88rem; }
.day-detail-temp { margin: 16px 0 9px; font-size: 2.25rem; font-weight: 780; letter-spacing: -.045em; }
.day-detail-card .condition-badge { margin-bottom: 17px; }
.day-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

.hourly-item { width: 86px; min-height: 154px; padding: 12px 7px; }
.hourly-item.now { border-color: var(--primary); background: var(--primary-soft); }
.hourly-item .time { color: var(--muted); font-size: .7rem; font-weight: 650; }
.hourly-item .icon { margin: 8px 0 5px; font-size: 1.5rem; }
.hourly-item .temp { font-size: 1rem; font-weight: 780; }
.hourly-item .precip, .hourly-item .hour-wind { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 5px; color: var(--primary); font-size: .66rem; }
.hourly-item .hour-wind { color: var(--muted); }
.hourly-item svg { width: 11px; height: 11px; }

.app-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 13px 8px 5px; color: var(--muted); font-size: .72rem; text-align: center; }
.app-footer span { display: inline-flex; align-items: center; gap: 4px; }
.app-footer svg { width: 13px; height: 13px; }
.app-footer a { color: var(--primary); font-weight: 700; text-decoration: none; }
.footer-dot { color: #a8b5c3; }

.network-status { position: fixed; z-index: 1000; left: 50%; bottom: calc(15px + var(--safe-bottom)); max-width: calc(100% - 28px); display: flex; align-items: center; gap: 8px; padding: 11px 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #fff; background: rgba(20,31,47,.94); box-shadow: 0 12px 35px rgba(0,0,0,.24); font-size: .78rem; transform: translateX(-50%); backdrop-filter: blur(12px); }
.network-status svg { width: 16px; height: 16px; flex: 0 0 auto; }

@keyframes progress-run { 0% { transform: translateX(-120%); } 100% { transform: translateX(390%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes content-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes value-pop { 0% { opacity: .35; transform: translateY(7px); } 100% { opacity: 1; transform: none; } }
@keyframes status-pulse { 0%, 40% { box-shadow: 0 0 0 0 rgba(22,135,92,.22); } 100% { box-shadow: 0 0 0 7px rgba(22,135,92,0); } }
@keyframes tide-wave { 0%, 100% { transform: translateX(-4%) scaleX(1.03); } 50% { transform: translateX(4%) scaleX(.98); } }
.value-pop { animation: value-pop 360ms ease-out; }

@media (min-width: 768px) {
  .app-main { padding-top: 30px; }
  .card-body, .weather-card .card-body { padding: 28px; }
  .search-card .card-body { grid-template-columns: minmax(260px, .72fr) minmax(420px, 1.28fr); align-items: center; column-gap: 32px; }
  .quick-row { grid-column: 1 / -1; }
  .current-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .fishing-advisor-card .card-body { padding: 28px; }
  .fishing-profile { max-width: 520px; }
  .fishing-overview { max-width: 520px; }
  .fishing-factors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .angler-intel-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: start; }
  .angler-intel-grid > .card { margin-bottom: 0 !important; }
  .current-card .wind-stat { grid-column: auto; }
  .forecast-detail-grid { grid-template-columns: minmax(320px, .76fr) minmax(0, 1.24fr); gap: 18px; }
  .forecast-detail-grid > .card { margin-bottom: 0 !important; }
  .day-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .skeleton-layout { grid-template-columns: 1fr 1fr; }
  .skeleton-hero, .skeleton-strip { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
  .app-header-inner { min-height: 67px; padding-left: 14px; padding-right: 14px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 12px; font-size: 1.25rem; }
  .logo-mark { width: 31px; height: 31px; }
  .brand-subtitle { display: none; }
  .brand-name { font-size: .96rem; }
  .manual-link-btn span { display: none; }
  .manual-link-btn { width: 40px; min-height: 40px; justify-content: center; padding: 7px; }
  .install-btn span { display: none; }
  .install-btn { width: 40px; min-height: 40px; justify-content: center; padding: 7px; }
  .lang-toggle .btn { min-width: 34px; min-height: 32px; }
  .app-main { padding-left: 12px; padding-right: 12px; padding-top: 14px; }
  .card { border-radius: 20px; }
  .card-body, .weather-card .card-body { padding: 18px; }
  .search-card::before { border-radius: 20px 0 0 20px; }
  .search-copy h1 { font-size: 1.28rem; }
  .search-copy p { font-size: .83rem; }
  .search-input-group { min-height: 52px; }
  .search-input-group .input-group-text { display: none; }
  .search-input-group .form-control { padding-left: 14px; font-size: 16px; }
  .search-submit { min-width: 48px; width: 48px; padding: 0; }
  .search-submit #searchBtnText { display: none; }
  .quick-row { align-items: stretch; }
  .chip-location { min-width: 42px; padding: 8px 11px; }
  .chip-location span { display: none; }
  .manual-drawer-panel { width: min(420px, calc(100vw - 18px)); padding: 18px; }
  .manual-toolbar { grid-template-columns: 1fr; }
  .manual-tabs { padding-bottom: 2px; }
  .manual-item { min-height: 104px; }
  .install-hint, .weather-alert { align-items: flex-start; }
  .weather-alert { flex-wrap: wrap; }
  .weather-alert #weatherErrorText { min-width: calc(100% - 52px); padding-top: 8px; }
  .weather-alert .btn { margin-left: 48px; }
  .current-summary { align-items: center; margin-top: 15px; }
  .fishing-heading { margin-bottom: 17px; }
  .profile-field .form-select { font-size: .75rem; }
  .trip-overview { grid-template-columns: 1fr; gap: 8px; }
  .trip-item { min-height: 62px; }
  .data-status { padding: 5px 8px; }
  .fishing-overview { gap: 14px; }
  .fishing-score { width: 96px; height: 96px; }
  .fishing-score strong { font-size: 1.75rem; }
  .fishing-factors { margin-top: 17px; }
  .angler-intel-grid { gap: 14px; }
  .behavior-grid, .marine-stats, .tide-turns { grid-template-columns: 1fr; }
  .fish-result { grid-template-columns: 52px minmax(0, 1fr); gap: 9px; }
  .fish-result-thumb { width: 52px; height: 48px; }
  .fish-result-top { flex-direction: column; gap: 6px; }
  .fish-result-sources { justify-content: flex-start; max-width: none; }
  .fish-title-row { align-items: stretch; flex-direction: column; }
  .fish-portrait { width: 100%; min-height: 150px; flex-basis: auto; }
  .fish-portrait img { min-height: 150px; }
  .fish-metrics { width: 100%; text-align: left; }
  .water-clarity-row { align-items: stretch; flex-direction: column; }
  .water-clarity-row .form-select { max-width: none; }
  .lure-heading { align-items: flex-start; flex-direction: column; }
  .lure-heading small { max-width: none; text-align: left; }
  .tide-visual { align-items: flex-start; flex-direction: column; }
  .tide-orb { width: 112px; height: 112px; }
  .tide-copy strong { font-size: 1.65rem; }
  .tide-curve { min-height: 300px; padding: 10px; }
  .tide-chart-svg { height: 206px; }
  .windows-title { align-items: flex-start; }
  .windows-title small { max-width: 110px; text-align: right; }
  .current-temp { font-size: 3.7rem; }
  .location-meta { max-width: calc(100vw - 130px); }
  .weather-icon-wrap { width: 64px; height: 64px; border-radius: 20px; }
  .current-icon { font-size: 2.3rem; }
  .current-grid { gap: 8px; }
  .stat { min-height: 67px; gap: 8px; padding: 10px; }
  .stat-icon { width: 32px; height: 32px; }
  .stat-value { font-size: .78rem; }
  .wind-compass { width: 33px; height: 33px; }
  .daily-item { width: 96px; }
  .skeleton-hero { height: 330px; }
  .skeleton-strip { height: 150px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09111d;
    --surface: rgba(17, 29, 46, .94);
    --surface-solid: #111d2e;
    --surface-soft: #152338;
    --text: #eef5ff;
    --muted: #91a3b9;
    --border: #263850;
    --primary-soft: #162f50;
    --shadow: 0 18px 50px rgba(0,0,0,.24);
    --shadow-sm: 0 8px 24px rgba(0,0,0,.2);
  }
  body { background: radial-gradient(circle at 5% 5%, rgba(17,93,190,.2), transparent 30rem), var(--bg); }
  .search-input-group .form-control { color: var(--text); }
  .search-input-group .form-control::placeholder { color: #70849b; }
  .chip { color: #c8d6e6; }
  .chip-location { color: #72aef9; }
  .skeleton { background: #17263b; }
  .weather-icon-wrap.compact { border-color: var(--border); background: var(--surface-soft); }
  .install-hint { border-color: #5b4922; color: #f4cf82; background: #2c261a; }
  .weather-alert { border-color: #613038; color: #f3abb2; background: #321e25; }
  .badge-good { color: #77d7af; background: #173a30; }
  .badge-fair { color: #f3c76e; background: #3b311c; }
  .badge-poor { color: #f3a0a8; background: #3c2228; }
  .data-status { border-color: #275b4c; color: #77d7af; background: #173a30; }
  .trip-item { border-color: var(--border); background: var(--surface-soft); }
  .fishing-window { border-color: #275b4c; background: #173a30; }
  .window-time { color: var(--text); }
  .window-score { color: #77d7af; }
  .manual-drawer-panel { border-left-color: var(--border); background: linear-gradient(135deg, rgba(17,29,46,.98), rgba(15,37,47,.98)); }
  .manual-overlay { background: rgba(3, 8, 18, .64); }
  .manual-close { border-color: var(--border); color: var(--text); background: var(--surface-soft); }
  .manual-count, .manual-tags span { border-color: #275b4c; color: #77d7af; background: #173a30; }
  .manual-search, .manual-item, .manual-empty { border-color: var(--border); background: var(--surface-soft); }
  .manual-search .form-control { color: var(--text); }
  .manual-tab { color: #c8d6e6; background: var(--surface-soft); }
  .manual-tab.active { color: #fff; }
  .fish-intel-card { background: linear-gradient(135deg, rgba(17,29,46,.96), rgba(16,37,43,.94)); }
  .marine-card { background: linear-gradient(145deg, rgba(17,29,46,.96), rgba(15,35,54,.94)); }
  .intel-badge, .fish-metrics, .water-clarity-row { border-color: #275b4c; color: #77d7af; background: #173a30; }
  .fish-metrics span, .fish-metrics small, .water-clarity-row label { color: #77d7af; }
  .fish-search-box, .fish-results, .behavior-item, .tide-curve { border-color: var(--border); background: var(--surface-soft); }
  .tide-day-band { fill: rgba(221, 201, 125, .16); }
  .tide-grid-line { stroke: rgba(207, 222, 238, .16); }
  .tide-area { fill: rgba(91, 171, 239, .14); }
  .tide-line { stroke: #8fc3ff; }
  .tide-y-label, .tide-x-label { fill: var(--muted); }
  .tide-turn-group { border-color: var(--border); background: rgba(255,255,255,.04); }
  .fish-search-box .form-control, .water-clarity-row .form-select { color: var(--text); background-color: var(--surface-soft); }
  .fish-result:hover { background: rgba(46,185,137,.12); }
  .fish-result.has-local { background: linear-gradient(90deg, rgba(46,185,137,.1), transparent 78%); }
  .fish-result.api-only { background: linear-gradient(90deg, rgba(79,160,219,.1), transparent 78%); }
  .fish-result-thumb, .fish-portrait { border-color: var(--border); background: #122033; }
  .source-pill { border-color: #275b4c; color: #77d7af; background: #173a30; }
  .fish-result-tags span { color: #b8d7f0; background: rgba(79,160,219,.14); }
  .lure-card { border-color: #275b4c; background: linear-gradient(135deg, #173a30, #13263a); }
  .lure-meta span { color: #b8d7f0; background: rgba(79,160,219,.14); }
  .color-chip { background: rgba(255,255,255,.07); }
  .source-strip span { color: #f2cf75; background: #3b311c; border-color: #604f25; }
  .marine-status, .marine-stat > span { color: #8fe1f5; border-color: #25596a; background: #123747; }
  .marine-stat { border-color: var(--border); background: rgba(255,255,255,.04); }
  .marine-unavailable { border-color: var(--border); background: var(--surface-soft); }
  .tide-orb { border-color: #25596a; background: linear-gradient(#16354a, #0e2738); }
}

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