/* Alberta Bite — mobile-first styles. Phone screens first, desktop second.
   Dark app theme: deep navy background, dark slate panels, orange accent. */
@font-face { font-family: "Manrope"; src: url('/assets/fonts/manrope-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url('/assets/fonts/manrope-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url('/assets/fonts/manrope-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url('/assets/fonts/manrope-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
:root {
  --ink: #f2f7f9;
  --muted: #9db8c4;
  --water: #f58220;
  --water2: #ffa04d;
  --accent: #f58220;
  --accent-ink: #221304;
  --pine: #2fbf71;
  --bg: #0a2233;
  --shadow: 0 8px 28px rgba(0, 0, 0, .35);
  --card: #10293c;
  --card2: #16334a;
  --line: #1e3d52;
  --open: #1d9e5f;
  --closed: #d63a2e;
  --field: #0d2a3f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 19px;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
a { color: var(--water2); }
img, svg { max-width: 100%; }

/* Header / nav — big tap targets */
.site-header {
  background: rgba(7, 26, 40, .97);
  color: #fff;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .45);
  border-bottom: 1px solid var(--line);
}
.brand {
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 9px;
}
.brand span { color: var(--accent); }
.brand-icon {
  width: 36px; height: 36px; border-radius: 10px; display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: #dbe9ef; text-decoration: none; padding: 12px 12px; min-height: 48px;
  display: inline-flex; align-items: center; border-radius: 8px; font-weight: 600;
}
.site-nav a:active, .site-nav a:hover { background: rgba(245, 130, 32, .18); color: #fff; }

main { max-width: 1080px; margin: 0 auto; padding: 16px; }
.hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 40px 22px 18px;
  margin: 4px 0 22px;
  background: #071a29 url('/assets/hero-lake.jpg') center 64% / cover no-repeat;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  border: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 40, .42), rgba(7, 26, 40, .90));
}
.hero > * { position: relative; }
.hero h1 { font-size: 2.15rem; line-height: 1.12; margin: 0 0 8px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero p { color: #cfe0e8; margin: 0 0 6px; max-width: 58ch; }
.hero .search-row { margin: 16px 0 10px; }
.hero #lake-search {
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(7, 26, 40, .82); color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
}
.hero #lake-search::placeholder { color: #9db8c4; }
.hero .filters button { background: rgba(7, 26, 40, .78); border-color: rgba(255,255,255,.35); color: #eaf3f7; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero .filters button.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.hero-credit { font-size: .7rem; color: rgba(255,255,255,.72); margin: 14px 0 2px; }
.hero .search-row { position: relative; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: #0d2a40; border: 1px solid rgba(255,255,255,.28); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.55); overflow: hidden; text-align: left;
}
.search-results .search-hit {
  display: block; padding: 13px 16px; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.09); font-size: 1.05rem;
}
.search-results .search-hit:last-of-type { border-bottom: none; }
.search-results .search-hit span { color: #9db8c4; font-size: .92rem; margin-left: 6px; }
.search-results .search-hit:hover, .search-results .search-hit:active { background: rgba(245,130,32,.22); }
.search-results .search-none { margin: 0; padding: 12px 16px; color: #9db8c4; font-size: .95rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 10px 0 4px; color: #fff; }
h2 { font-size: 1.45rem; margin: 26px 0 10px; color: #fff; }
h4 { margin: 14px 0 6px; font-size: 1rem; }
section { margin-bottom: 8px; }
.near { color: var(--muted); margin: 2px 0 10px; }

/* Badges & status */
.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; color: #fff;
  font-weight: 700; font-size: .9rem; vertical-align: middle;
}
.badge.open { background: var(--open); }
.badge.closed { background: var(--closed); }
.status-detail { color: var(--muted); margin-left: 8px; font-size: .95rem; }
.reopen-note { color: var(--accent); font-weight: 800; font-size: 1.02rem; }
.depth-note { color: var(--accent); font-weight: 800; }
.depth-line.depth-map-note { color: var(--accent); font-weight: 700; }
.depth-line.depth-map-note a { color: var(--accent); text-decoration: underline; }
.depth-line.depth-map-note .depth-credit { color: #9db8c4; font-weight: 400; }
.status-line { font-size: 1.05rem; margin: 8px 0; }

/* Search & filters */
.search-row { margin: 14px 0 8px; }
#lake-search {
  width: 100%; padding: 14px 20px; font-size: 1.05rem; border: 2px solid var(--line);
  border-radius: 999px; min-height: 54px; background: var(--field); color: var(--ink);
}
#lake-search::placeholder { color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.filters button {
  padding: 12px 16px; min-height: 48px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.filters button.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* Cards & best bets */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card-near { color: var(--muted); margin: 0 0 8px; font-size: .95rem; }
.card-status { margin: 0 0 6px; }
.card-bite { margin: 0 0 10px; }
.card-bite strong { color: var(--accent); }
.card-link { font-weight: 700; display: inline-block; padding: 8px 0; min-height: 40px; }
.bets { list-style: none; counter-reset: bet; margin: 10px 0; padding: 0; }
.bets li { counter-increment: bet; margin: 0 0 10px; }
.bets a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; min-height: 56px; text-decoration: none; color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow);
}
.bets a::before {
  content: counter(bet); background: var(--accent); color: var(--accent-ink); font-weight: 800;
  border-radius: 50%; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.bets-name { flex: 1; }
.bets-score { color: var(--accent); font-weight: 800; white-space: nowrap; }

/* Lake page blocks */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin: 16px 0;
  box-shadow: var(--shadow);
}
.tablewrap { overflow-x: auto; }
table.rules { width: 100%; border-collapse: collapse; font-size: 1.05rem; table-layout: fixed; }
table.rules th:first-child, table.rules td:first-child { width: 38%; }
table.rules .limit { white-space: normal; font-size: 1.3rem; }
table.rules td:first-child { font-weight: 600; }
table.rules .fineprint { font-size: .95rem; font-weight: 400; }
table.rules th, table.rules td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rules th { background: var(--card2); color: #fff; }
.limit { font-weight: 800; color: var(--accent); }
.stretch { color: var(--muted); margin: 2px 0 8px; }
.fish-thumb {
  display: inline-block; padding: 0; margin: 0 8px 4px 0; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card2); cursor: pointer; vertical-align: middle; line-height: 0;
}
.fish-thumb img { width: 64px; height: 44px; object-fit: cover; border-radius: 7px; }
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(4, 16, 25, .94);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 860px; width: 100%; text-align: center; }
.lightbox figure img { max-width: 100%; max-height: 76vh; border-radius: 12px; background: #fff; }
.lightbox figcaption { color: #eaf3f7; margin-top: 12px; font-size: 1rem; }
.lightbox figcaption .lb-credit { display: block; color: #9fb8c4; font-size: .8rem; margin-top: 4px; }
.lightbox-close {
  position: absolute; top: 10px; right: 14px; width: 48px; height: 48px; border: none;
  border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.7rem; cursor: pointer;
}

/* Bite panel: score ring + hourly activity chart */
.bite-head { display: flex; align-items: center; gap: 16px; }
.bite-ring { position: relative; width: 104px; height: 104px; flex: 0 0 auto; }
.bite-ring svg { display: block; transform: rotate(-90deg); }
.bite-ring .ring-track { stroke: var(--line); }
.bite-score {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1;
}
.bite-rating { font-size: 1.25rem; font-weight: 700; color: #fff; }
.bite-meta { color: var(--muted); margin: 6px 0 0; }
.bite-chart {
  display: flex; align-items: flex-end; gap: 2px; height: 84px; margin: 10px 0 2px;
  border-bottom: 1px solid var(--line); padding-top: 6px;
}
.bite-chart .bar {
  flex: 1 1 0; min-width: 0; background: #2e5a75; border-radius: 3px 3px 0 0; min-height: 3px;
}
.bite-chart .bar.best { background: var(--accent); }
.bite-chart .bar.now { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75); }
.bite-hours { display: flex; margin: 4px 0 2px; }
.bite-hours span { flex: 1 1 0; min-width: 0; text-align: center; color: var(--muted); font-size: .62rem; }
.windows, .reasons { margin: 6px 0; padding-left: 20px; }
.windows li, .reasons li { margin: 4px 0; }
.disclaimer {
  background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  font-size: .82rem; font-weight: 400; color: var(--muted); line-height: 1.45;
}
.fineprint { color: var(--muted); font-size: .88rem; }
ul.notes { padding-left: 20px; }

/* Map page (Leaflet) — dark basemap + dark chrome overrides.
   style.css loads before leaflet.css, so map overrides are scoped to
   #lake-map to win on specificity. */
#lake-map {
  height: 68vh; min-height: 340px; max-height: 640px;
  border: 1px solid var(--line); border-radius: 14px; margin: 12px 0 8px;
  background: #0d2a3f; z-index: 0;
}
#lake-map .leaflet-bar a {
  background: var(--card); color: var(--ink); border-bottom-color: var(--line);
}
#lake-map .leaflet-bar a:hover, #lake-map .leaflet-bar a:focus { background: var(--card2); }
#lake-map .leaflet-bar { border-color: var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.5); }
#lake-map .leaflet-control-layers {
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,.5); border-radius: 10px;
}
#lake-map .leaflet-control-layers-toggle { filter: invert(1) brightness(1.6); }
#lake-map .leaflet-control-attribution {
  background: rgba(7, 26, 40, .82); color: #7d99a8; font-size: .62rem;
}
#lake-map .leaflet-control-attribution a { color: #9db8c4; }
#lake-map .leaflet-popup-content-wrapper {
  background: var(--card); color: var(--ink); border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
}
#lake-map .leaflet-popup-tip { background: var(--card); }
#lake-map .leaflet-popup-close-button { color: var(--muted); }
#lake-map .leaflet-popup-content a { color: var(--water2); }
#lake-map .marker-cluster-small, #lake-map .marker-cluster-medium, #lake-map .marker-cluster-large {
  background-color: rgba(245, 130, 32, .25);
}
#lake-map .marker-cluster-small div, #lake-map .marker-cluster-medium div, #lake-map .marker-cluster-large div {
  background-color: rgba(245, 130, 32, .88); color: #221304; font-family: "Manrope", sans-serif; font-weight: 800;
}
.leaflet-popup-content { font-size: 1rem; line-height: 1.45; }
.leaflet-popup-content .status-detail { display: block; margin: 2px 0 0; }
.map-popup-link { display: inline-block; padding: 10px 0 4px; min-height: 40px; font-weight: 700; }
.map-lake-list { padding-left: 20px; }
.map-lake-list li { margin: 6px 0; }
.stocked-line {
  background: rgba(47, 191, 113, .13); border: 1px solid rgba(47, 191, 113, .45); border-radius: 10px; padding: 10px 14px;
}

/* App-style floating bottom tab bar (glass pill) */
body { padding-bottom: 96px; }
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 900;
  display: flex; justify-content: space-around; align-items: stretch;
  background: rgba(8, 30, 46, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  padding: 7px 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #9db8c4; text-decoration: none; font-size: .76rem; font-weight: 700;
  padding: 5px 2px; border-radius: 14px;
}
.tabbar a svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a:active { background: rgba(245, 130, 32, .22); color: #fff; }
@media (min-width: 900px) {
  .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: 560px; }
}
.map-lake-list a { font-weight: 600; }

/* Checker */
form.checker label { display: block; font-weight: 700; margin: 16px 0 6px; }
form.checker select, form.checker input[type="number"] {
  width: 100%; padding: 14px; font-size: 1.05rem; border: 2px solid var(--line);
  border-radius: 10px; min-height: 52px; background: var(--field); color: var(--ink);
}
.checkline { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-weight: 600; }
.checkline input { width: 26px; height: 26px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); }
button.cta {
  width: 100%; margin-top: 20px; padding: 16px; min-height: 56px; font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(120deg, #f58220, #ff9a3d); color: var(--accent-ink); border: 0; border-radius: 16px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(245, 130, 32, .35);
}
button.cta:active { background: var(--water2); }
.verdict { border-radius: 12px; padding: 16px; font-size: 1.15rem; font-weight: 700; margin: 18px 0 6px; }
.verdict.yes { background: rgba(47, 191, 113, .15); border: 1px solid #2fbf71; color: #d9f5e4; }
.verdict.no { background: rgba(224, 72, 60, .16); border: 1px solid #e0483c; color: #fbe3e0; }
.verdict.warn { background: rgba(245, 166, 35, .14); border: 1px solid #c9a227; color: #fdf3d7; }
.funline { background: rgba(245, 130, 32, .13); border: 1px solid var(--accent); border-radius: 12px; padding: 12px 16px; font-size: 1.1rem; margin: 10px 0 6px; }

.site-footer {
  background: #071a29;
  margin-top: 36px; padding: 18px 16px 26px;
  color: #8fa9b5; font-size: .78rem; line-height: 1.45;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 4px auto; max-width: 1080px; }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--water2); }

/* Desktop: two/three-column card grid, roomier type */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
  h1 { font-size: 2rem; }
  button.cta { width: auto; padding: 16px 34px; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* Dark map: invert the standard OSM tiles into a dark basemap (Leaflet
   adds this class to the tile images only, so markers/popups stay normal). */
.ab-dark-tiles { filter: invert(100%) hue-rotate(180deg) brightness(92%) contrast(88%); }

/* Finder bar (home hero) */
.finder-bar{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:center;margin-top:.9rem}
.finder-bar label{font-size:.95rem;font-weight:600;color:#dcebf2;display:flex;align-items:center;gap:.45rem}
.finder-bar select{background:rgba(10,34,51,.85);color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:10px;padding:.5rem .6rem;font:inherit;font-size:.95rem}
.finder-bar .open-toggle input{width:1.15rem;height:1.15rem;accent-color:var(--accent,#f58220)}

/* 7-day bite outlook */
.outlook{list-style:none;margin:.4rem 0;padding:0}
.outlook li{display:flex;align-items:center;gap:.6rem;padding:.28rem 0}
.outlook .o-day{flex:0 0 6.2rem;font-weight:600}
.outlook .o-bar{flex:1;background:rgba(255,255,255,.12);border-radius:6px;height:.65rem;overflow:hidden}
.outlook .o-bar span{display:block;height:100%;background:var(--accent,#f58220);border-radius:6px}
.outlook .o-score{flex:0 0 2rem;text-align:right;font-weight:700}
.outlook .o-closed{color:#e88;font-weight:600}

/* Favourites */
.fav-btn{background:#10293c;color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:.55rem 1.1rem;font:inherit;font-weight:700;cursor:pointer}
.fav-btn.on{color:#f58220;border-color:#f58220}
.profile-initial{display:inline-flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:50%;background:#10293c;border:1px solid rgba(255,255,255,.25);font-size:2.2rem;vertical-align:middle}
.danger-small{margin-top:2.4rem;padding-top:1rem;border-top:1px solid var(--line);color:var(--muted);font-size:.85rem}
.danger-small .danger-btn{background:none;border:none;color:var(--muted);font:inherit;font-size:.85rem;text-decoration:underline;cursor:pointer;padding:0}
.saved-row{display:flex;justify-content:space-between;align-items:center;gap:.8rem;background:#10293c;border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:.7rem 1rem;margin:.45rem 0;color:#fff;text-decoration:none}

/* Catch log */
#cl-form label{font-weight:600}
#cl-form select,#cl-form input{background:#0a2233;color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:10px;padding:.55rem .6rem;font:inherit;width:100%;max-width:420px}
.cl-save{background:#f58220;color:#fff;border:0;border-radius:999px;padding:.65rem 1.4rem;font:inherit;font-weight:800;cursor:pointer}
.cl-row{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem;background:#10293c;border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:.7rem 1rem;margin:.45rem 0}
.cl-meta{color:#9db8c4;font-size:.92rem}
.cl-del{background:none;border:0;color:#9db8c4;font-size:1.05rem;cursor:pointer;padding:.1rem .3rem}

/* Depth line + navigate buttons */
.depth-line{color:#9db8c4}
.nav-btns{display:flex;flex-wrap:wrap;gap:.5rem}
.nav-btn{background:#f58220;color:#fff;font-weight:700;text-decoration:none;border-radius:999px;padding:.55rem 1.05rem}
.nav-btn:last-child{background:#10293c;border:1px solid rgba(255,255,255,.3)}

/* Map controls: locate + personal spots */
.map-ctl{background:rgba(10,34,51,.92);border:1px solid rgba(255,255,255,.25);border-radius:12px;padding:.5rem;display:flex;flex-direction:column;gap:.45rem;max-width:210px}
.map-ctl button{background:#10293c;color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:.5rem .9rem;font:inherit;font-weight:700;cursor:pointer;text-align:left}
.map-ctl #ctl-hint{color:#ffd23c;font-size:.9rem;font-weight:600}
.spot-del{margin-top:.5rem;background:none;border:1px solid #e0483c;color:#e0483c;border-radius:8px;padding:.3rem .6rem;cursor:pointer;font:inherit}

/* Account pitch callout */
.account-pitch{background:#10293c;border:1px solid #f58220;border-radius:14px;padding:.85rem 1.05rem}

/* Derbies */
.derby-list{list-style:none;padding:0;display:grid;gap:.8rem}
.derby-row{background:#10293c;border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:.9rem 1.05rem}

/* Fish weight estimator + best-days calendar */
.fw-out { font-size: 1.7rem; font-weight: 800; color: var(--accent); margin: 10px 0 2px; }
.bd-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; }
.bd-btn { background: var(--card2); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: .95rem; cursor: pointer; }
.bd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bd-dow { text-align: center; color: var(--muted); font-size: .8rem; font-weight: 700; padding: 4px 0; }
.bd-cell { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 2px; text-align: center; min-height: 86px; }
.bd-cell.bd-empty { background: transparent; border: none; }
.bd-cell.bd-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bd-day { font-size: .8rem; color: var(--muted); font-weight: 700; }
.bd-score { font-size: 1.35rem; font-weight: 800; color: var(--accent); line-height: 1.15; }
.bd-label { font-size: .85rem; font-weight: 700; }
.bd-moon { font-size: .68rem; color: var(--muted); }
.outlook li{flex-wrap:wrap}
.outlook .o-wx{flex:0 0 100%;color:var(--muted);font-size:.82rem;padding-left:6.8rem;margin-top:-.15rem}

/* Mobile: top header slides away on scroll-down (JS toggles .header-hide);
   the fixed bottom tab bar always stays. Desktop keeps the slim header. */
@media (max-width: 899px) {
  .site-header { transition: transform .28s ease; will-change: transform; }
  body.header-hide .site-header { transform: translateY(-103%); }
}

/* Per-species bite bars */
.sp-bite { margin: .65rem 0; }
.sp-bite-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.sp-bite-head .sp-best { color: var(--accent); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.bite-chart.mini { height: 42px; margin-top: 4px; }

/* Top baits chips */
.bait-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.bait-chip {
  background: var(--card2); border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem .95rem; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35;
}
.bait-chip strong { color: var(--accent); }
.bait-chip:active { background: rgba(245, 130, 32, .18); }

/* Map bottom sheet (lake details) */
.lake-sheet {
  position: fixed; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 950;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6); padding: 16px 18px;
  max-height: 62vh; overflow-y: auto; animation: sheet-up .22s ease;
}
@keyframes sheet-up { from { transform: translateY(16px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) { .lake-sheet { right: auto; width: 430px; } }
.lake-sheet[hidden] { display: none; }
.sheet-close {
  position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.25rem; cursor: pointer;
}
.sheet-name { margin: 0 2.6rem 4px 0; font-size: 1.35rem; color: #fff; }
.sheet-status { margin: 4px 0; }
.sheet-depth { margin: 4px 0; }
.sheet-score { color: var(--accent); }
.sheet-tabs { display: flex; gap: .45rem; margin: .7rem 0 .4rem; }
.sheet-tabs button {
  flex: 1; background: var(--field); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: .55rem .4rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 48px;
}
.sheet-tabs button.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.sheet-panel p { margin: .45rem 0; }
.sheet-rules { margin: .3rem 0; padding-left: 20px; }
.sheet-rules li { margin: .25rem 0; }
.sheet-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }

/* First-open permission card (installed app only, home page) */
.cta-link {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 12px 24px; font-weight: 700; text-decoration: none;
}
.buddy-area {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  background: rgba(245,130,32,.18); color: var(--accent);
  border: 1px solid rgba(245,130,32,.45); border-radius: 999px;
  padding: 3px 12px; font-size: .85rem; font-weight: 700;
}
.buddy-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.buddy-actions button, .buddy-intro-form button { cursor: pointer; }
.buddy-intro-btn {
  background: var(--accent); color: var(--accent-ink); border: none;
  border-radius: 999px; padding: 10px 22px; font-size: 1rem; font-weight: 700;
}
.buddy-report-btn {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px; font-size: .95rem;
}
.buddy-intro-form { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.buddy-intro-form label { font-weight: 600; }
.buddy-intro-form input, .buddy-intro-form textarea,
#buddy-form input, #buddy-form select {
  width: 100%; box-sizing: border-box; margin-top: 6px;
}
#buddy-form .checkline { margin-top: 8px; font-weight: 400; }
#buddy-form .checkline input { width: 26px; margin-top: 2px; }
.update-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: #0d2a40; color: #fff;
  border-bottom: 3px solid var(--accent); font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.update-bar button {
  flex: 0 0 auto; background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 999px; padding: 10px 20px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
}
.perms-card {
  position: fixed; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 960;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 20px 18px 14px; animation: sheet-up .22s ease;
}
@media (min-width: 900px) { .perms-card { right: auto; width: 430px; } }
.perms-card h2 { margin: 0 0 6px; font-size: 1.45rem; color: #fff; }
.perms-card p { margin: 0 0 14px; font-size: 1.05rem; }
.perms-go {
  display: block; width: 100%; background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; padding: .8rem 1rem; font: inherit; font-weight: 800;
  cursor: pointer; min-height: 52px;
}
.perms-skip {
  display: block; width: 100%; background: none; color: var(--muted);
  border: 0; padding: .7rem 1rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 48px;
}
.perms-card .perms-fine { margin: 2px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* Catch log: personal-best badge + stats */
.cl-pb {
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  padding: .1rem .55rem; font-size: .8rem; font-weight: 800; white-space: nowrap;
}
.stats-h { margin: .95rem 0 .3rem; font-size: 1.05rem; color: #fff; }

/* Saved spots: type chip + add-spot form */
.spot-type {
  background: var(--card2); border: 1px solid var(--line); border-radius: 999px;
  padding: .05rem .55rem; font-size: .82rem; font-weight: 700;
}
.spot-form label { display: block; font-weight: 600; margin: .5rem 0; }
.spot-form input, .spot-form select {
  width: 100%; background: #0a2233; color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px; padding: .5rem .55rem; font: inherit; margin-top: .2rem;
}

/* Ice thickness reports */
.ice-latest { font-size: 1.15rem; }
.ice-latest strong { color: var(--accent); }
.ice-form { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.ice-form label, #lic-form label { font-weight: 600; }
.ice-form input, .ice-form select, #lic-form input, #lic-form select {
  background: #0a2233; color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px; padding: .55rem .6rem; font: inherit; width: 100%; max-width: 420px;
}
.ice-form .ice-amt { display: flex; gap: .5rem; max-width: 420px; }
.ice-form .ice-amt input { flex: 1; }
.ice-form .ice-amt select { width: auto; }

/* Push alert toggles */
.push-label { display: flex; align-items: center; gap: .6rem; font-weight: 700; cursor: pointer; }
.push-label input[type="checkbox"] { width: 26px; height: 26px; accent-color: var(--accent); }

/* Licence wallet card */
.lic-card {
  background: linear-gradient(150deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: 16px; padding: 16px 18px; margin: 12px 0; max-width: 520px;
}
.lic-card p { margin: .3rem 0; }
.lic-card-head {
  text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: #fff;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.lic-card-head span { color: var(--accent); font-size: .8rem; }
.lic-name { font-size: 1.3rem; font-weight: 800; color: #fff; }
.lic-photo { width: 100%; border-radius: 10px; margin: .5rem 0; }
.lic-count { font-size: 1.35rem; font-weight: 800; color: var(--accent); }
.lic-count.lic-expired { color: #e0483c; }
