* { box-sizing: border-box; }
    html { overflow-x: hidden; }
    body { min-height: 100vh; margin: 0; padding: 16px; font-family: Arial, sans-serif; font-size: 14.5px; color: #17324d; background: linear-gradient(rgba(235,248,255,0.10), rgba(210,238,245,0.14)), url("assets/CalmFishingLake.png"); background-size: cover; background-position: center center; background-attachment: fixed; background-repeat: no-repeat; }
    body::before { content: none; }
    body::after { content: none; }
    button, input, select, textarea, .card, .snapshot-day-card, .plan-tile, .day-card, .window-card, .saved-spot-card, .fishing-log-card, .settings-card, .about-section { overflow-wrap: anywhere; }
    body.density-compact { font-size: 13.8px; }
    body.density-compact .snapshot-card, body.density-compact .planner-card, body.density-compact .day-card, body.density-compact .weekly-summary, body.density-compact .bait-section, body.density-compact .location-card, body.density-compact .panel-card { padding: 10px; margin-top: 12px; }
    body.density-compact .plan-tile, body.density-compact .summary-tile, body.density-compact .bait-card, body.density-compact .day-tile, body.density-compact .detail-tile, body.density-compact .window-card, body.density-compact .settings-card, body.density-compact .about-section, body.density-compact .saved-spot-card, body.density-compact .fishing-log-card, body.density-compact .log-form-section { padding: 7px; }
    body.density-compact .snapshot-day-card { padding: 17px 6px 8px; gap: 3px; }
    body.density-compact .section-title { margin-bottom: 7px; }
    .report-shell { max-width: 1250px; margin: 10px auto; padding: 10px; background: transparent; border: none; box-shadow: none; backdrop-filter: none; }
    .report-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 4px 2px 12px; }
    .eyebrow { margin: 0 0 5px; color: #0f766e; font-weight: 800; letter-spacing: 0; }
    .report-title { margin: 0; color: #123a5a; font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1; letter-spacing: 0; }
    .report-subtitle { max-width: 760px; margin: 6px 0 0; color: #4f7692; font-size: 0.95rem; line-height: 1.3; }
    .report-meta { flex: 0 0 auto; padding: 8px 11px; border-radius: 14px; background: linear-gradient(180deg, #ffffff, #eaf7ff); color: #24627f; font-weight: 800; box-shadow: 0 6px 14px rgba(31,85,120,0.07); text-align: right; }
    .report-meta span { color: #668399; font-size: 0.8rem; font-weight: 700; }
    .app-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,0.34); border: 1px solid rgba(255,255,255,0.36); box-shadow: 0 4px 12px rgba(31,85,120,0.07); backdrop-filter: blur(7px); width: fit-content; max-width: 100%; }
    .app-tab { border: 1px solid rgba(130,190,220,0.34); border-radius: 999px; padding: 7px 12px; background: rgba(255,255,255,0.76); color: #28516d; font: inherit; font-size: 0.84rem; font-weight: 900; cursor: pointer; box-shadow: 0 2px 7px rgba(31,85,120,0.05); }
    .app-tab:hover { background: rgba(234,248,255,0.96); }
    .app-tab.active { background: linear-gradient(135deg, #0891b2, #22c55e); border-color: rgba(255,255,255,0.52); color: white; box-shadow: 0 5px 12px rgba(8,145,178,0.16); }
    .app-panel[hidden] { display: none; }
    .page-shell { min-width: 0; }
    .panel-card { padding: 16px; margin-top: 14px; background: rgba(255,255,255,0.25); border-top: 3px solid rgba(14,116,144,0.34); }
    .page-glass-shell { background: rgba(255,255,255,0.24); border: 1px solid rgba(255,255,255,0.44); border-top: 3px solid rgba(14,116,144,0.38); border-radius: 17px; box-shadow: 0 8px 22px rgba(31,85,120,0.09); backdrop-filter: blur(9px); }
    .page-heading { display: grid; gap: 3px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(80,140,170,0.20); }
    .page-heading .section-title, .page-heading .panel-intro, .page-heading .data-source-note { margin: 0; }
    .page-heading .panel-intro { max-width: 780px; color: #28516d; line-height: 1.42; font-weight: 700; }
    .page-heading .data-source-note { max-width: 900px; }
    .panel-card p { max-width: 780px; margin: 8px 0 0; color: #28516d; line-height: 1.45; font-weight: 700; }
    .about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
    .about-section { padding: 11px; border-radius: 14px; background: rgba(255,255,255,0.82); border: 1px solid rgba(130,190,220,0.28); box-shadow: 0 4px 11px rgba(31,85,120,0.05); }
    .about-section h3 { margin: 0 0 6px; color: #14324a; font-size: 0.98rem; }
    .about-section p { margin: 0; color: #28516d; font-size: 0.88rem; line-height: 1.4; }
    .about-safety { grid-column: 1 / -1; background: rgba(255,248,219,0.86); border-color: rgba(251,191,36,0.35); }
    .species-list { display: flex; flex-wrap: wrap; gap: 6px; }
    .species-list span { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #eef8ff; border: 1px solid rgba(130,190,220,0.30); color: #28516d; font-size: 0.78rem; font-weight: 900; }
    .resource-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .resource-links a { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,0.84); border: 1px solid rgba(130,190,220,0.30); color: #0f5f86; font-weight: 900; text-decoration: none; }
    .resource-links a:hover { background: #eaf8ff; }
    .about-resources { grid-column: 1 / -1; }
    .resource-basic-links { gap: 6px; margin-top: 10px; }
    .resource-basic-links a { gap: 5px; padding: 6px 9px; font-size: 0.76rem; line-height: 1.25; }
    .resource-selector-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(80,140,170,0.22); }
    .resource-selector-panel h4 { margin: 0; color: #14324a; font-size: 0.92rem; line-height: 1.35; }
    .resource-selector-heading { max-width: 720px; }
    .resource-selector-help { margin: 5px 0 0 !important; color: #5b6f7d !important; font-size: 0.76rem !important; font-weight: 700; line-height: 1.5; }
    .resource-selector-content { display: grid; gap: 9px; min-width: 0; margin-top: 10px; }
    .resource-selector-control { display: grid; gap: 5px; width: min(100%, 560px); }
    .resource-grid { display: none !important; }
    .resource-selector-label { display: block; color: #557183; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
    .resource-selector { width: 100%; min-height: 46px; padding: 10px 34px 10px 12px; border: 1px solid rgba(80,140,170,0.34); border-radius: 10px; background: rgba(255,255,255,0.90); color: #153b56; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 3px 10px rgba(31,85,120,0.06); }
    .resource-selector:focus-visible { outline: 2px solid rgba(14,116,144,0.32); outline-offset: 2px; }
    .resource-selector-empty { max-width: 720px; margin: 0 !important; padding: 8px 10px; border-left: 3px solid rgba(14,116,144,0.36); border-radius: 7px; background: rgba(232,247,250,0.54); color: #6b8190 !important; font-size: 0.76rem !important; line-height: 1.45; }
    .selected-resource-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 720px; padding: 11px 12px; border: 1px solid rgba(130,190,220,0.24); border-left: 3px solid rgba(14,116,144,0.66); border-radius: 9px; background: rgba(255,255,255,0.68); }
    .selected-resource-card[hidden], .caribbean-resource-note[hidden], .resource-selector-empty[hidden] { display: none; }
    .selected-resource-card > div { display: grid; gap: 2px; min-width: 0; }
    .selected-resource-card strong { color: #14324a; font-size: 0.92rem; }
    .selected-resource-card span { color: #557183; font-size: 0.78rem; font-weight: 700; line-height: 1.3; }
    .selected-resource-card .small-action-button { flex: 0 0 auto; text-decoration: none; }
    .caribbean-resource-note { max-width: 720px; padding: 8px 10px; border-left: 3px solid rgba(14,116,144,0.34); border-radius: 7px; background: rgba(224,246,252,0.54); }
    .caribbean-resource-note p { margin: 0 0 5px !important; font-size: 0.76rem !important; }
    .caribbean-resource-note strong { display: block; margin-bottom: 4px; color: #14324a; font-size: 0.8rem; }
    .caribbean-resource-note a, .resource-directory-fallback a { color: #0f5f86; font-size: 0.76rem; font-weight: 800; text-decoration: none; }
    .caribbean-resource-note a:hover, .resource-directory-fallback a:hover { text-decoration: underline; }
    .resource-directory-fallback { display: flex; flex-wrap: wrap; gap: 4px 7px; align-items: center; margin-top: 1px; color: #6b8190; font-size: 0.7rem; font-weight: 700; }
    .resource-directory-fallback a { text-decoration: underline; text-decoration-color: rgba(15,95,134,0.3); text-underline-offset: 2px; }
    .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
    .settings-card { padding: 11px; border-radius: 14px; background: rgba(255,255,255,0.82); border: 1px solid rgba(130,190,220,0.28); box-shadow: 0 4px 11px rgba(31,85,120,0.05); }
    .settings-card h3 { margin: 0 0 8px; color: #14324a; font-size: 0.98rem; }
    .settings-card label { display: block; margin: 7px 0 4px; color: #5e7890; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
    .settings-card select { width: 100%; padding: 7px 9px; border-radius: 10px; border: 1px solid rgba(80,140,170,0.32); background: rgba(255,255,255,0.94); color: #153b56; font: inherit; font-weight: 800; }
    .settings-card p { margin: 6px 0 0; color: #426277; font-size: 0.82rem; line-height: 1.35; }
    .settings-wide { grid-column: span 2; }
    .species-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 5px; margin: 6px 0 8px; }
    .species-checkbox-grid label { display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 8px; border-radius: 11px; background: rgba(238,248,255,0.84); border: 1px solid rgba(130,190,220,0.25); color: #28516d; font-size: 0.8rem; text-transform: none; cursor: pointer; }
    .species-checkbox-grid input { margin: 0; }
    .settings-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
    .settings-actions-top { margin: 4px 0 12px; }
    main { padding: 0; }
    .section-title { margin: 0 0 10px; color: #14324a; font-size: 1.2rem; }
    .card { background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.35); border-radius: 17px; box-shadow: 0 6px 18px rgba(31,85,120,0.09); backdrop-filter: blur(6px); }
    .snapshot-card { padding: 14px; margin-bottom: 18px; background: rgba(255,255,255,0.25); overflow: visible; border-top: 3px solid rgba(14,116,144,0.38); }
    .snapshot-heading { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin-bottom: 10px; }
    .snapshot-heading p { margin: 2px 0 0; color: #5f7f98; font-size: 0.9rem; }
    .snapshot-strip { display: grid; grid-template-columns: repeat(7, minmax(105px, 1fr)); gap: 7px; min-width: 780px; }
    .snapshot-scroll { overflow-x: auto; overflow-y: visible; padding: 2px 2px 5px; -webkit-overflow-scrolling: touch; }
    .snapshot-day-card { position: relative; padding: 18px 7px 10px; border-radius: 14px; background: rgba(255,255,255,0.94); border: 1px solid rgba(130,190,220,0.34); box-shadow: 0 5px 12px rgba(31,85,120,0.07); text-align: center; display: grid; gap: 4px; align-content: start; }
    .snapshot-day-card.best-pick { border: 2px solid #f2b632; box-shadow: 0 7px 16px rgba(242,182,50,0.20); }
    .best-badge { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 999px; background: #f2b632; color: #422006; font-size: 0.66rem; font-weight: 900; text-transform: uppercase; box-shadow: 0 2px 8px rgba(242,182,50,0.30); }
    .snapshot-day { color: #123a5a; font-size: 1rem; font-weight: 900; }
    .snapshot-date { color: #668399; font-size: 0.78rem; font-weight: 800; }
    .snapshot-window { color: #0f5f86; font-size: 0.84rem; font-weight: 900; }
    .snapshot-target { min-height: 24px; color: #28516d; font-size: 0.76rem; font-weight: 800; line-height: 1.12; }
    .snapshot-weather { font-size: 1.6rem; line-height: 1; }
    .snapshot-score { font-size: 1.15rem; font-weight: 900; color: #123a5a; }
    .rating { display: inline-block; border-radius: 999px; padding: 4px 8px; font-weight: 900; font-size: 0.76rem; }
    .rating-excellent { background: #dff8e7; color: #166534; border: 1px solid #86efac; }
    .rating-good { background: #d9f5fb; color: #075985; border: 1px solid #67e8f9; }
    .rating-fair { background: #fff1c7; color: #92400e; border: 1px solid #fbbf24; }
    .rating-poor { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
    .safety-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #ecfeff; color: #155e75; font-size: 0.72rem; font-weight: 900; }
    .safety-badge.warning { background: #fff1c7; color: #92400e; }
    .bank-difficulty { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 900; }
    .bank-easy { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
    .bank-moderate { background: #fff1c7; color: #92400e; border: 1px solid #fbbf24; }
    .bank-tough { background: #ffedd5; color: #9a3412; border: 1px solid #fb923c; }
    .bank-unsafe { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
    .bank-reason { display: block; margin-top: 3px; color: #5e7890; font-size: 0.75rem; line-height: 1.2; font-weight: 700; }
    .species-grid { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
    .species-pill { display: inline-flex; gap: 3px; align-items: center; padding: 4px 7px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; border: 1px solid rgba(130,190,220,0.28); background: #eef8ff; color: #28516d; }
    .species-empty-note { display: inline-flex; padding: 5px 8px; border-radius: 10px; background: rgba(255,248,219,0.86); border: 1px solid rgba(251,191,36,0.38); color: #92400e; font-size: 0.76rem; font-weight: 800; }
    .species-excellent { background: #dcfce7; color: #166534; border-color: #86efac; }
    .species-good { background: #d9f5fb; color: #075985; border-color: #67e8f9; }
    .species-fair { background: #fff1c7; color: #92400e; border-color: #fbbf24; }
    .species-poor { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
    .best-hour-chip { display: block; margin-top: 4px; padding: 6px 8px; border-radius: 12px; background: rgba(234,248,255,0.92); border: 1px solid rgba(103,183,220,0.30); color: #153b56; font-weight: 800; line-height: 1.24; }
    .location-card { margin: 0 0 10px; padding: 8px 10px; background: rgba(255,255,255,0.68); border: 1px solid rgba(255,255,255,0.40); border-radius: 14px; box-shadow: 0 4px 12px rgba(31,85,120,0.07); backdrop-filter: blur(8px); font-size: 0.88rem; }
    .location-controls { display: grid; grid-template-columns: minmax(180px, 320px) auto; gap: 6px; align-items: end; }
    .location-button-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
    .current-location-button { white-space: nowrap; }
    .location-field { display: grid; gap: 3px; }
    .location-field label { color: #5e7890; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
    .location-field select, .location-field input, .location-field textarea { width: 100%; padding: 6px 8px; border-radius: 9px; border: 1px solid rgba(80,140,170,0.32); background: rgba(255,255,255,0.92); color: #153b56; font: inherit; font-weight: 700; }
    .location-field textarea { resize: vertical; min-height: 70px; line-height: 1.35; }
    .location-meta-grid { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
    .location-info-pill { display: inline-flex; gap: 4px; align-items: center; padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,0.78); border: 1px solid rgba(130,190,220,0.28); color: #28516d; font-size: 0.74rem; }
    .location-info-pill span { color: #5e7890; font-weight: 800; }
    .location-info-pill strong { color: #153b56; }
    .data-source-note { margin: 5px 0 0; color: #5e7890; font-size: 0.74rem; font-weight: 700; }
    .map-picker-panel { margin-top: 8px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.68); border: 1px solid rgba(130,190,220,0.30); box-shadow: 0 4px 12px rgba(31,85,120,0.06); }
    .shared-map-picker { margin: 0 0 10px; }
    .map-picker-panel[hidden] { display: none; }
    .map-picker-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
    .map-picker-header strong { color: #14324a; font-weight: 900; }
    .map-picker-header p { margin: 2px 0 0; color: #5e7890; font-size: 0.78rem; font-weight: 700; }
    .map-picker-placeholder { position: relative; display: grid; place-items: center; min-height: 92px; margin: 8px 0; border-radius: 13px; background: radial-gradient(circle at 50% 52%, rgba(255,255,255,0.95) 0 3px, transparent 4px), linear-gradient(90deg, rgba(15,95,134,0.12) 1px, transparent 1px), linear-gradient(rgba(15,95,134,0.12) 1px, transparent 1px), linear-gradient(135deg, rgba(234,248,255,0.88), rgba(217,244,247,0.82)); background-size: auto, 28px 28px, 28px 28px, auto; border: 1px dashed rgba(15,95,134,0.28); color: #0f5f86; text-align: center; font-weight: 900; overflow: hidden; }
    .map-picker-placeholder::before, .map-picker-placeholder::after { content: ''; position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); border-radius: 999px; pointer-events: none; }
    .map-picker-placeholder::before { width: 46px; height: 46px; border: 2px solid rgba(14,116,144,0.24); }
    .map-picker-placeholder::after { width: 10px; height: 10px; background: #ef4444; box-shadow: 0 3px 9px rgba(239,68,68,0.28); }
    .map-picker-placeholder small { display: block; margin-top: 3px; color: #5e7890; font-weight: 700; }
    .leaflet-map { min-height: 240px; margin: 8px 0; border-radius: 14px; border: 1px solid rgba(15,95,134,0.26); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 4px 12px rgba(31,85,120,0.08); background: #d9f4f7; }
    .map-fallback-message { margin: 6px 0; padding: 7px 9px; border-radius: 11px; background: #fff8db; color: #7c4a03; border: 1px solid #f7d878; font-size: 0.8rem; font-weight: 800; }
    .map-picker-fields { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 6px; }
    .map-picker-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
    .alerts-container { margin-top: 7px; display: grid; gap: 6px; }
    .alert-note, .alert-card { margin: 0; padding: 7px 9px; border-radius: 12px; background: rgba(234,248,255,0.84); border: 1px solid rgba(103,183,220,0.28); color: #28516d; font-size: 0.78rem; font-weight: 800; line-height: 1.3; }
    .alert-card { background: rgba(255,248,219,0.88); border-color: rgba(251,191,36,0.42); color: #7c4a03; }
    .alert-card strong { display: block; color: #92400e; font-size: 0.88rem; }
    .alert-card a { color: #0f5f86; font-weight: 900; }
    .saved-spot-form { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)) auto; gap: 8px; align-items: end; margin-top: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.70); border: 1px solid rgba(130,190,220,0.24); }
    .saved-spot-notes { grid-column: span 2; }
    .saved-spot-species { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 7px; border-radius: 12px; background: rgba(238,248,255,0.72); border: 1px solid rgba(130,190,220,0.24); }
    .saved-spot-species span { flex: 1 0 100%; color: #5e7890; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
    .saved-spot-species label { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,0.82); color: #28516d; font-size: 0.76rem; font-weight: 800; }
    .saved-spot-add { align-self: end; }
    .saved-spot-map-button { align-self: end; justify-self: start; }
    .saved-spots-list { display: grid; gap: 8px; margin-top: 10px; }
    .saved-spot-card { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.84); border: 1px solid rgba(130,190,220,0.28); box-shadow: 0 4px 11px rgba(31,85,120,0.05); }
    .saved-spot-card.favorite { border-color: rgba(242,182,50,0.64); box-shadow: 0 5px 13px rgba(242,182,50,0.13); }
    .saved-spot-card h3 { margin: 0 0 4px; color: #14324a; font-size: 1rem; }
    .saved-spot-card p { margin: 3px 0 0; color: #426277; font-size: 0.82rem; line-height: 1.3; }
    .saved-spot-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
    .small-action-button { border: 1px solid rgba(130,190,220,0.34); border-radius: 999px; padding: 6px 9px; background: rgba(255,255,255,0.88); color: #0f5f86; font: inherit; font-size: 0.78rem; font-weight: 900; cursor: pointer; }
    .small-action-button:hover { background: #eaf8ff; }
    .small-action-button.danger { color: #991b1b; border-color: rgba(252,165,165,0.70); background: rgba(254,226,226,0.86); }
    .empty-saved-spots { padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.72); border: 1px dashed rgba(130,190,220,0.42); color: #5e7890; font-weight: 800; }
    .fishing-log-form { display: grid; gap: 10px; margin-top: 10px; }
    .fishing-log-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 7px; margin-top: 10px; }
    .log-summary-item { padding: 8px 10px; border-radius: 13px; background: rgba(255,255,255,0.78); border: 1px solid rgba(130,190,220,0.25); box-shadow: 0 3px 9px rgba(31,85,120,0.045); }
    .log-summary-item span { display: block; color: #5e7890; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
    .log-summary-item strong { display: block; margin-top: 2px; color: #14324a; font-size: 1rem; font-weight: 900; }
    .log-edit-notice { padding: 8px 10px; border-radius: 13px; background: rgba(255,248,219,0.88); border: 1px solid rgba(251,191,36,0.38); color: #7c4a03; font-size: 0.82rem; font-weight: 900; }
    .log-form-section { padding: 11px; border-radius: 14px; background: rgba(255,255,255,0.72); border: 1px solid rgba(130,190,220,0.25); }
    .log-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
    .log-form-section h3 { margin: 0 0 8px; color: #14324a; font-size: 0.98rem; }
    .log-form-section h4 { margin: 0 0 7px; color: #426277; font-size: 0.8rem; }
    .log-section-head h3 { margin: 0; }
    .log-form-grid { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 8px; align-items: end; }
    .time-field input.log-field-invalid { border-color: #dc2626; background: #fff1f2; color: #991b1b; box-shadow: 0 0 0 2px rgba(220,38,38,0.16); }
    .time-field input.log-field-invalid::placeholder { color: #b91c1c; opacity: 0.78; }
    .log-time-validation { margin: 0; padding: 6px 8px; border-radius: 9px; background: #fff1f2; border: 1px solid rgba(220,38,38,0.32); color: #991b1b; font-size: 0.78rem; font-weight: 900; line-height: 1.3; }
    .log-wide { grid-column: span 2; }
    .log-notes { grid-column: 1 / -1; }
    .log-species-targets { margin: 0; padding: 0; border: 0; }
    .log-species-targets legend { margin-bottom: 4px; color: #28516d; font-size: 0.76rem; font-weight: 900; }
    .log-species-picker { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; width: 100%; margin-top: 0; }
    .log-target-button { flex: 0 1 auto; min-width: max-content; max-width: 100%; min-height: 32px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 0.76rem; line-height: 1.2; text-align: center; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
    .log-target-button strong { white-space: inherit; overflow-wrap: inherit; word-break: inherit; }
    .log-target-button.selected { background: #d9f5fb; color: #075985; border-color: #0891b2; box-shadow: inset 0 0 0 1px rgba(8,145,178,0.16); }
    .log-target-display { display: grid; gap: 4px; margin-top: 5px; color: #28516d; font-size: 0.84rem; font-weight: 800; }
    .log-card-species { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; margin-top: 0; }
    .log-card-species .species-pill { flex: 0 1 auto; min-width: max-content; max-width: 100%; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
    .log-target-empty { color: #6d8798; font-weight: 800; }
    .log-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
    .fishing-log-filters { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; padding: 9px; border-radius: 14px; background: rgba(255,255,255,0.58); border: 1px solid rgba(130,190,220,0.22); }
    .fishing-logs-list { display: grid; gap: 8px; margin-top: 10px; }
    .fishing-log-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; padding: 10px 10px 10px 15px; border-radius: 14px; background: rgba(255,255,255,0.84); border: 1px solid rgba(130,190,220,0.28); box-shadow: 0 4px 11px rgba(31,85,120,0.05); }
    .fishing-log-card::before { content: ""; position: absolute; left: 6px; top: 13px; bottom: 13px; width: 3px; border-radius: 999px; background: rgba(8,145,178,0.42); }
    .fishing-log-card h3 { margin: 0; color: #14324a; font-size: 1rem; }
    .fishing-log-card p { margin: 4px 0; color: #426277; font-size: 0.84rem; line-height: 1.35; }
    .fishing-log-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
    .log-result { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 0.72rem; font-weight: 900; border: 1px solid rgba(130,190,220,0.28); background: rgba(238,248,255,0.88); color: #28516d; }
    .log-result small { margin-left: 6px; padding-left: 6px; border-left: 1px solid currentColor; opacity: 0.78; font-size: 0.68rem; }
    .log-result.success { background: rgba(220,252,231,0.88); border-color: rgba(34,197,94,0.28); color: #166534; }
    .log-result.none { background: rgba(254,242,242,0.82); border-color: rgba(248,113,113,0.22); color: #7f1d1d; }
    .log-result.unknown { background: rgba(241,245,249,0.92); border-color: rgba(100,116,139,0.24); color: #475569; }
    .no-fish-log { border-left: 3px solid rgba(248,113,113,0.42); }
    .log-detail-strip { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
    .log-detail-strip span { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; background: rgba(238,248,255,0.80); border: 1px solid rgba(130,190,220,0.23); color: #28516d; font-size: 0.75rem; font-weight: 800; }
    .log-meta { color: #6d8798 !important; font-size: 0.74rem !important; font-weight: 800; }
    .log-danger-zone { margin-top: 12px; padding: 9px 11px; border-radius: 14px; border: 1px solid rgba(252,165,165,0.42); background: rgba(255,247,247,0.72); color: #7f1d1d; }
    .log-danger-zone summary { cursor: pointer; font-weight: 900; }
    .log-danger-zone p { margin: 6px 0 8px; font-size: 0.82rem; line-height: 1.4; }
    .custom-location-grid { display: none; margin-top: 6px; }
    .custom-location-grid.show { display: block; }
    .custom-mode-toggle { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,0.72); border: 1px solid rgba(130,190,220,0.26); }
    .custom-mode-toggle label { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px; color: #28516d; font-size: 0.76rem; font-weight: 800; cursor: pointer; }
    .custom-mode-toggle input { margin: 0; }
    .custom-mode-fields { display: none; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 6px; }
    .custom-mode-fields.show { display: grid; }
    .update-button { border: none; border-radius: 999px; padding: 5px 10px; min-height: 28px; line-height: 1.1; background: linear-gradient(135deg, #0891b2, #22c55e); color: white; font: inherit; font-size: 0.82rem; font-weight: 900; cursor: pointer; box-shadow: 0 3px 8px rgba(8,145,178,0.14); }
    .update-button:hover { filter: brightness(1.04); }
    .update-button:disabled, .small-action-button:disabled { opacity: 0.62; cursor: not-allowed; }
    .status-message { min-height: 14px; margin: 5px 0 0; color: #28516d; font-weight: 800; font-size: 0.76rem; }
    .status-message.error { color: #991b1b; }
    .planner-card, .best-worst-grid, .daily-forecast, .weekly-summary, .bait-section { margin-top: 18px; }
    .planner-card { position: relative; padding: 15px; background: linear-gradient(135deg, rgba(255,255,255,0.34), rgba(232,247,239,0.24)); border-top: 3px solid rgba(34,197,94,0.34); overflow: hidden; }
    .planner-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 18% 0%, rgba(255,255,255,0.42), transparent 34%), radial-gradient(circle at 88% 20%, rgba(34,197,94,0.18), transparent 28%); }
    .planner-card > * { position: relative; }
    .planner-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 8px; }
    .plan-tile, .summary-tile, .bait-card, .day-tile, .detail-tile { padding: 8px; border-radius: 12px; background: rgba(255,255,255,0.82); border: 1px solid rgba(130,190,220,0.24); box-shadow: 0 3px 9px rgba(31,85,120,0.045); }
    .plan-tile { background: linear-gradient(135deg, rgba(255,255,255,0.90), rgba(234,248,255,0.78)); }
    .planner-mini { margin-top: 6px; padding: 6px 8px; border-radius: 11px; background: rgba(234,248,255,0.88); border: 1px solid rgba(103,183,220,0.26); }
    .avoid-banner { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255,248,219,0.86); border: 1px solid rgba(251,191,36,0.42); color: #7c4a03; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-weight: 800; }
    .decision-badge { display: inline-block; margin-bottom: 6px; padding: 5px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 900; }
    .decision-go { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
    .decision-maybe, .decision-avoid { background: #fff1c7; color: #92400e; border: 1px solid #fbbf24; }
    .decision-skip { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
    .tile-label, .label { color: #5e7890; font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
    .tile-value, .value { color: #153b56; font-weight: 900; }
    .risk-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 12px; background: #fff8db; color: #7c4a03; border: 1px solid #f7d878; font-weight: 800; }
    .best-worst-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pick-card { padding: 14px; background: rgba(255,255,255,0.25); border-left: 5px solid #22c55e; }
    .pick-card.best { border-left-color: #f2b632; background: rgba(255,255,255,0.25); }
    .pick-card.worst { border-left-color: #fb7185; background: rgba(255,255,255,0.25); }
    .pick-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
    .pick-title { margin: 0; font-size: 1.08rem; color: #14324a; }
    .pick-weather { font-size: 1.8rem; }
    .pick-main { margin: 8px 0; color: #123a5a; font-size: 1.12rem; font-weight: 900; }
    .recommended-style { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(232,247,239,0.85); color: #166534; font-weight: 800; }
    .daily-forecast .section-title, .weekly-summary .section-title, .bait-section .section-title { margin-top: 0; }
    .daily-forecast { padding-top: 4px; }
    .daily-forecast > .section-title { padding: 0 2px 6px; border-bottom: 2px solid rgba(14,116,144,0.22); }
    .day-card { padding: 13px; margin-bottom: 16px; background: linear-gradient(135deg, rgba(255,255,255,0.27), rgba(234,248,255,0.18)); border-top: 3px solid rgba(103,183,220,0.32); box-shadow: 0 5px 15px rgba(31,85,120,0.075); }
    .day-card-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 7px; margin-bottom: 8px; border-bottom: 1px solid rgba(130,190,220,0.35); }
    .day-date { color: #14324a; font-size: 1.08rem; font-weight: 900; }
    .day-best-badge { padding: 5px 8px; border-radius: 999px; background: #e8f7ef; color: #166534; font-size: 0.82rem; font-weight: 900; white-space: nowrap; }
    .day-summary { display: grid; grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.75fr); gap: 8px; align-items: stretch; margin-bottom: 7px; }
    .clean-summary { grid-template-columns: minmax(220px, 0.82fr) minmax(280px, 1.65fr); }
    .day-hero { padding: 9px; border-radius: 13px; background: linear-gradient(135deg, rgba(232,247,239,0.88), rgba(255,255,255,0.78)); border: 1px solid rgba(34,197,94,0.20); box-shadow: inset 0 1px 0 rgba(255,255,255,0.54); }
    .hero-window { color: #0f5f86; font-size: 0.98rem; font-weight: 900; }
    .hero-target { margin: 5px 0; color: #123a5a; font-size: 1.08rem; font-weight: 900; }
    .day-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 6px; }
    .day-secondary-strip { display: contents; }
    .conditions-summary { display: block; color: #28516d; font-size: 0.8rem; line-height: 1.28; font-weight: 800; text-transform: none; }
    .moon-tile { display: flex; align-items: center; justify-content: center; min-height: 64px; }
    .moon-svg { width: 48px; height: 48px; filter: drop-shadow(0 6px 10px rgba(20,50,74,0.22)); }
    .why-note { margin: 0 0 7px; padding: 7px 9px; border-radius: 11px; background: #eef8ff; color: #28516d; font-weight: 800; }
    .windows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .compact-windows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 7px; }
    .window-card { padding: 10px; background: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(243,251,255,0.78) 100%); border-top: 3px solid #67b7dc; }
    .compact-window { padding: 8px; box-shadow: none; }
    .compact-window p { margin: 6px 0 0; }
    .compact-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 6px 0; }
    .compact-facts span { padding: 5px 6px; border-radius: 8px; background: #f2f9ff; color: #28516d; font-size: 0.76rem; }
    .details-toggle { margin-top: 7px; border: 1px solid rgba(130,190,220,0.34); border-radius: 999px; padding: 5px 10px; background: rgba(255,255,255,0.82); color: #0f5f86; font: inherit; font-size: 0.78rem; font-weight: 900; cursor: pointer; box-shadow: 0 2px 7px rgba(31,85,120,0.05); }
    .details-toggle:hover, .bait-toggle:hover { background: #eaf8ff; border-color: rgba(14,116,144,0.34); }
    .details-toggle:focus-visible, .bait-toggle:focus-visible, .species-group-option:focus-visible, .species-explainer summary:focus-visible { outline: 3px solid rgba(14,165,233,0.32); outline-offset: 2px; }
    .day-details { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(130,190,220,0.28); }
    .day-details[hidden] { display: none; }
    .window-card.morning { border-top-color: #7dd3fc; }
    .window-card.afternoon { border-top-color: #fbbf24; }
    .window-card h3 { margin: 0 0 7px; color: #0f5f86; font-size: 1rem; }
    .window-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; }
    .window-grid p { margin: 0; padding: 6px 8px; background: #f2f9ff; border-radius: 10px; border: 1px solid rgba(130,190,220,0.24); }
    .value.temperature, .value.score { font-size: 1.12rem; color: #0f5f86; font-weight: 900; }
    .score-bar { font-family: Consolas, monospace; letter-spacing: 1px; }
    .score-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; margin-top: 5px; min-width: 0; max-width: 100%; }
    .score-progress-track { min-width: 0; max-width: 100%; }
    .score-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #dcecf5; border: 1px solid rgba(130,190,220,0.38); }
    .score-progress-fill { display: block; height: 100%; border-radius: 999px; }
    .score-fill-excellent { background: linear-gradient(90deg, #22c55e, #86efac); }
    .score-fill-good { background: linear-gradient(90deg, #0891b2, #67e8f9); }
    .score-fill-fair { background: linear-gradient(90deg, #f59e0b, #facc15); }
    .score-fill-poor { background: linear-gradient(90deg, #ef4444, #fca5a5); }
    .score-progress-label { color: #123a5a; font-size: 0.8rem; font-weight: 900; white-space: nowrap; }
    .note { margin: 7px 0 0; line-height: 1.3; padding: 7px 8px; border-radius: 10px; background: #eef8ff; color: #28516d; }
    .weekly-grid, .bait-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
    .weekly-summary, .bait-section { padding: 14px; background: rgba(255,255,255,0.25); }
    .weekly-summary { border-top: 3px solid rgba(242,182,50,0.42); }
    .bait-section { border-top: 3px solid rgba(22,163,74,0.34); }
    .summary-number { display: block; margin-top: 3px; color: #123a5a; font-size: 1.35rem; font-weight: 900; }
    .collapsible-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .bait-toggle { border: 1px solid rgba(130,190,220,0.34); border-radius: 999px; padding: 6px 10px; background: rgba(255,255,255,0.86); color: #0f5f86; font: inherit; font-size: 0.8rem; font-weight: 900; cursor: pointer; box-shadow: 0 2px 7px rgba(31,85,120,0.05); }
    .bait-content[hidden] { display: none; }
    .bait-content { margin-top: 8px; }
    .bait-feature { display: grid; grid-template-columns: minmax(180px, 0.85fr) 2fr; gap: 8px; margin-bottom: 8px; }
    .bait-feature-main { padding: 9px; border-radius: 13px; background: linear-gradient(135deg, #e8f7ef, #ffffff); border: 1px solid rgba(34,197,94,0.26); }
    .bait-feature-main strong { display: block; margin-top: 3px; color: #123a5a; font-size: 1.05rem; }
    .species-explainer { max-width: 1000px; margin: 10px auto 0; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,0.62); border: 1px solid rgba(255,255,255,0.38); box-shadow: 0 4px 12px rgba(31,85,120,0.06); color: #426277; font-size: 0.8rem; line-height: 1.35; backdrop-filter: blur(6px); }
    .species-explainer summary { display: flex; align-items: center; gap: 7px; cursor: pointer; color: #14324a; font-weight: 900; list-style: none; border-radius: 10px; padding: 4px 2px; }
    .species-explainer summary::-webkit-details-marker { display: none; }
    .species-explainer summary::before { content: "▶"; display: inline-grid; place-items: center; width: 1.1em; color: #0f5f86; font-size: 0.78rem; transition: transform 0.18s ease; }
    .species-explainer[open] summary::before { content: "▼"; }
    .species-explainer summary:hover { color: #0f5f86; }
    .species-explainer ul { margin: 8px 0 0; padding-left: 18px; columns: 2; column-gap: 24px; }
    .species-explainer li { break-inside: avoid; margin: 4px 0; }
    .footer-disclaimer { max-width: 1000px; margin: 12px auto 0; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.38); box-shadow: 0 4px 12px rgba(31,85,120,0.07); color: #426277; font-size: 0.78rem; line-height: 1.38; text-align: center; backdrop-filter: blur(6px); }
    .app-sponsor-slot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; max-width: 1000px; margin: 14px auto 2px; padding: 10px 12px; border: 1px dashed rgba(80,140,170,0.38); border-radius: 14px; background: rgba(255,255,255,0.46); box-shadow: 0 4px 12px rgba(31,85,120,0.05); color: #426277; backdrop-filter: blur(7px); }
    .sponsor-label { display: inline-flex; align-items: center; justify-content: center; padding: 4px 7px; border-radius: 999px; background: rgba(238,248,255,0.82); border: 1px solid rgba(130,190,220,0.28); color: #557183; font-size: 0.66rem; font-weight: 900; text-transform: uppercase; }
    .sponsor-copy { min-width: 0; }
    .sponsor-copy strong { display: block; color: #28516d; font-size: 0.88rem; }
    .sponsor-copy p { margin: 2px 0 0; color: #5e7890; font-size: 0.76rem; font-weight: 700; line-height: 1.35; }
    .sponsor-note { color: #6b8190; font-size: 0.7rem; font-weight: 800; text-align: right; }
    body.theme-dark { color: #e8f3f8; background: linear-gradient(rgba(5,18,32,0.62), rgba(7,24,39,0.68)), url("assets/CalmFishingLake.png"); background-size: cover; background-position: center center; background-attachment: fixed; background-repeat: no-repeat; }
    body.theme-dark .card, body.theme-dark .panel-card, body.theme-dark .snapshot-card, body.theme-dark .planner-card, body.theme-dark .day-card, body.theme-dark .weekly-summary, body.theme-dark .bait-section, body.theme-dark .species-explainer, body.theme-dark .footer-disclaimer { background: rgba(15,35,55,0.72); border-color: rgba(255,255,255,0.14); color: #e8f3f8; box-shadow: 0 8px 22px rgba(2,10,18,0.18); }
    body.theme-dark .page-glass-shell { background: rgba(15,35,55,0.38); border-color: rgba(255,255,255,0.17); border-top-color: rgba(125,211,252,0.32); box-shadow: 0 8px 24px rgba(2,10,18,0.22); }
    body.theme-dark .page-heading { border-color: rgba(255,255,255,0.12); }
    body.theme-dark .page-heading .panel-intro { color: #d9edf5; }
    body.theme-dark .app-sponsor-slot { background: rgba(15,35,55,0.42); border-color: rgba(255,255,255,0.20); color: #b8c9d4; box-shadow: 0 5px 14px rgba(2,10,18,0.18); }
    body.theme-dark .sponsor-label { background: rgba(25,50,75,0.74); border-color: rgba(255,255,255,0.14); color: #b8c9d4; }
    body.theme-dark .sponsor-copy strong { color: #d9edf5; }
    body.theme-dark .sponsor-copy p, body.theme-dark .sponsor-note { color: #aebfca; }
    body.theme-dark .planner-card { background: linear-gradient(135deg, rgba(15,35,55,0.78), rgba(18,61,69,0.58)); }
    body.theme-dark .planner-card::before { background: radial-gradient(circle at 18% 0%, rgba(125,211,252,0.15), transparent 34%), radial-gradient(circle at 88% 20%, rgba(34,197,94,0.12), transparent 28%); }
    body.theme-dark .report-title, body.theme-dark .section-title, body.theme-dark .day-date, body.theme-dark .pick-title, body.theme-dark .saved-spot-card h3, body.theme-dark .fishing-log-card h3, body.theme-dark .log-form-section h3, body.theme-dark .settings-card h3, body.theme-dark .about-section h3, body.theme-dark .map-picker-header strong { color: #eef7fb; }
    body.theme-dark .eyebrow, body.theme-dark .report-subtitle, body.theme-dark .snapshot-heading p, body.theme-dark .panel-card p, body.theme-dark .data-source-note, body.theme-dark .tile-label, body.theme-dark .label, body.theme-dark .bank-reason, body.theme-dark .snapshot-date, body.theme-dark .settings-card p, body.theme-dark .about-section p, body.theme-dark .footer-disclaimer, body.theme-dark .map-picker-header p { color: #b8c9d4; }
    body.theme-dark .report-meta, body.theme-dark .location-card, body.theme-dark .plan-tile, body.theme-dark .summary-tile, body.theme-dark .bait-card, body.theme-dark .day-tile, body.theme-dark .detail-tile, body.theme-dark .about-section, body.theme-dark .saved-spot-card, body.theme-dark .fishing-log-card, body.theme-dark .log-form-section, body.theme-dark .settings-card, body.theme-dark .empty-saved-spots, body.theme-dark .window-card, body.theme-dark .day-hero, body.theme-dark .planner-mini, body.theme-dark .bait-feature-main, body.theme-dark .map-picker-panel { background: rgba(25,50,75,0.78); border-color: rgba(255,255,255,0.15); color: #e8f3f8; }
    body.theme-dark .day-card { background: linear-gradient(135deg, rgba(15,35,55,0.74), rgba(24,52,76,0.58)); }
    body.theme-dark .saved-spot-card.favorite { border-color: rgba(242,182,50,0.54); box-shadow: 0 5px 13px rgba(242,182,50,0.12); }
    body.theme-dark .app-nav { background: rgba(15,35,55,0.48); border-color: rgba(255,255,255,0.14); }
    body.theme-dark .app-tab, body.theme-dark .small-action-button, body.theme-dark .bait-toggle { background: rgba(25,50,75,0.78); border-color: rgba(255,255,255,0.16); color: #d9edf5; }
    body.theme-dark .app-tab.active, body.theme-dark .update-button { background: linear-gradient(135deg, #0e7490, #158f67); color: #f3fbff; }
    body.theme-dark .location-field select, body.theme-dark .location-field input, body.theme-dark .location-field textarea, body.theme-dark .settings-card select { background: rgba(18,39,59,0.92); border-color: rgba(255,255,255,0.16); color: #e8f3f8; }
    body.theme-dark .location-field input::placeholder, body.theme-dark textarea::placeholder { color: #9fb2bf; opacity: 1; }
    body.theme-dark .custom-mode-toggle, body.theme-dark .species-checkbox-grid label, body.theme-dark .location-info-pill, body.theme-dark .resource-links a, body.theme-dark .species-list span { background: rgba(25,50,75,0.74); border-color: rgba(255,255,255,0.14); color: #d9edf5; }
    body.theme-dark .resource-links a:hover, body.theme-dark .app-tab:hover, body.theme-dark .small-action-button:hover, body.theme-dark .bait-toggle:hover, body.theme-dark .details-toggle:hover { border-color: rgba(125,211,252,0.34); background: rgba(34,70,98,0.86); color: #eef7fb; }
    body.theme-dark .resource-selector-panel { border-color: rgba(255,255,255,0.14); }
    body.theme-dark .resource-selector-panel h4 { color: #eef7fb; }
    body.theme-dark .resource-selector-help, body.theme-dark .resource-selector-label, body.theme-dark .resource-selector-empty, body.theme-dark .resource-directory-fallback { color: #b8c9d4 !important; }
    body.theme-dark .resource-selector { background: rgba(18,39,59,0.92); border-color: rgba(255,255,255,0.16); color: #e8f3f8; }
    body.theme-dark .resource-selector-empty { background: rgba(22,55,67,0.48); border-left-color: rgba(125,211,252,0.48); }
    body.theme-dark .selected-resource-card { background: rgba(25,50,75,0.66); border-color: rgba(255,255,255,0.15); border-left-color: rgba(125,211,252,0.62); }
    body.theme-dark .selected-resource-card strong { color: #eef7fb; }
    body.theme-dark .selected-resource-card span { color: #b8c9d4; }
    body.theme-dark .caribbean-resource-note { background: rgba(22,73,96,0.42); border-left-color: rgba(125,211,252,0.42); }
    body.theme-dark .caribbean-resource-note strong { color: #eef7fb; }
    body.theme-dark .caribbean-resource-note a, body.theme-dark .resource-directory-fallback a { color: #7dd3fc; }
    body.theme-dark .tile-value, body.theme-dark .value, body.theme-dark .hero-target, body.theme-dark .snapshot-day, body.theme-dark .snapshot-score, body.theme-dark .score-progress-label, body.theme-dark .summary-number, body.theme-dark .pick-main, body.theme-dark .bait-feature-main strong, body.theme-dark .location-info-pill strong, body.theme-dark .day-best-badge, body.theme-dark .best-hour-chip, body.theme-dark .recommended-style strong { color: #eef7fb; }
    body.theme-dark .snapshot-day-card { background: rgba(25,50,75,0.82); border-color: rgba(255,255,255,0.16); color: #e8f3f8; }
    body.theme-dark .snapshot-target, body.theme-dark .conditions-summary, body.theme-dark .saved-spot-card p, body.theme-dark .species-explainer, body.theme-dark .species-explainer summary, body.theme-dark .species-explainer li, body.theme-dark .bait-card p, body.theme-dark .detail-tile p, body.theme-dark .window-card p, body.theme-dark .planner-mini { color: #d9edf5; }
    body.theme-dark .species-explainer summary::before { color: #7dd3fc; }
    body.theme-dark .species-explainer summary:hover { color: #eef7fb; }
    body.theme-dark .best-badge { background: #f2b632; color: #422006; box-shadow: 0 2px 9px rgba(242,182,50,0.40); }
    body.theme-dark .day-best-badge, body.theme-dark .recommended-style, body.theme-dark .best-hour-chip { background: rgba(22,101,52,0.42); border-color: rgba(134,239,172,0.20); }
    body.theme-dark .note, body.theme-dark .why-note, body.theme-dark .compact-facts span, body.theme-dark .window-grid p { background: rgba(30,58,82,0.78); border-color: rgba(255,255,255,0.13); color: #d9edf5; }
    body.theme-dark .details-toggle { background: rgba(25,50,75,0.78); border-color: rgba(255,255,255,0.16); color: #d9edf5; }
    body.theme-dark .map-picker-placeholder { background: linear-gradient(135deg, rgba(30,58,82,0.82), rgba(25,50,75,0.76)); border-color: rgba(125,211,252,0.26); color: #bae6fd; }
    body.theme-dark .leaflet-map { background: #1e3a52; border-color: rgba(125,211,252,0.24); }
    body.theme-dark .leaflet-tile { filter: brightness(0.72) saturate(0.82); }
    body.theme-dark .leaflet-control-attribution, body.theme-dark .leaflet-control-zoom a { background: rgba(18,39,59,0.92); color: #d9edf5; border-color: rgba(255,255,255,0.14); }
    body.theme-dark .map-picker-placeholder::before { border-color: rgba(125,211,252,0.28); }
    body.theme-dark .map-picker-placeholder small { color: #b8c9d4; }
    body.theme-dark .score-progress-track { background: rgba(195,225,238,0.16); border-color: rgba(255,255,255,0.14); }
    body.theme-dark .risk-note, body.theme-dark .avoid-banner, body.theme-dark .about-safety { background: rgba(125,91,25,0.30); border-color: rgba(251,191,36,0.30); color: #f5d98c; }
    body.theme-dark .alert-note, body.theme-dark .saved-spot-species { background: rgba(25,50,75,0.74); border-color: rgba(255,255,255,0.14); color: #d9edf5; }
    body.theme-dark .saved-spot-form { background: rgba(25,50,75,0.72); border-color: rgba(255,255,255,0.14); }
    body.theme-dark .alert-card, body.theme-dark .map-fallback-message { background: rgba(125,91,25,0.30); border-color: rgba(251,191,36,0.30); color: #f5d98c; }
    body.theme-dark .alert-card strong, body.theme-dark .alert-card a { color: #fde68a; }
    body.theme-dark .saved-spot-species label { background: rgba(30,58,82,0.78); border-color: rgba(255,255,255,0.13); color: #d9edf5; }
    body.theme-dark .status-message { color: #b8c9d4; }
    body.theme-dark .status-message.error, body.theme-dark .small-action-button.danger { color: #fecaca; border-color: rgba(248,113,113,0.32); }
    body.theme-dark .fishing-log-card p, body.theme-dark .log-meta { color: #b8c9d4 !important; }
    body.theme-dark .log-summary-item, body.theme-dark .fishing-log-filters { background: rgba(25,50,75,0.78); border-color: rgba(255,255,255,0.15); color: #e8f3f8; }
    body.theme-dark .log-summary-item span { color: #b8c9d4; }
    body.theme-dark .log-summary-item strong { color: #eef7fb; }
    body.theme-dark .log-edit-notice { background: rgba(125,91,25,0.30); border-color: rgba(251,191,36,0.30); color: #fde68a; }
    body.theme-dark .log-result { background: rgba(25,50,75,0.82); border-color: rgba(255,255,255,0.16); color: #d9edf5; }
    body.theme-dark .log-result.success { background: rgba(20,83,45,0.42); border-color: rgba(74,222,128,0.25); color: #bbf7d0; }
    body.theme-dark .log-result.none { background: rgba(127,29,29,0.32); border-color: rgba(248,113,113,0.25); color: #fecaca; }
    body.theme-dark .no-fish-log { border-left-color: rgba(248,113,113,0.42); }
    body.theme-dark .log-detail-strip span { background: rgba(30,58,82,0.78); border-color: rgba(255,255,255,0.13); color: #d9edf5; }
    body.theme-dark .log-form-section h4, body.theme-dark .log-species-targets legend, body.theme-dark .log-target-display { color: #b8c9d4; }
    body.theme-dark .time-field input.log-field-invalid { border-color: #f87171; background: rgba(127,29,29,0.42); color: #fee2e2; box-shadow: 0 0 0 2px rgba(248,113,113,0.20); }
    body.theme-dark .time-field input.log-field-invalid::placeholder { color: #fecaca; }
    body.theme-dark .log-time-validation { background: rgba(127,29,29,0.38); border-color: rgba(248,113,113,0.38); color: #fecaca; }
    body.theme-dark .log-target-button { background: rgba(30,58,82,0.78); border-color: rgba(255,255,255,0.13); color: #d9edf5; }
    body.theme-dark .log-target-button.selected { background: rgba(14,116,144,0.42); border-color: rgba(125,211,252,0.46); color: #eef7fb; }
    body.theme-dark .log-target-empty { color: #b8c9d4; }
    body.theme-dark .log-result.unknown { background: rgba(51,65,85,0.72); border-color: rgba(148,163,184,0.22); color: #dbe7ee; }
    body.theme-dark .log-danger-zone { background: rgba(69,26,35,0.62); border-color: rgba(248,113,113,0.28); color: #fecaca; }
    body.theme-dark a { color: #7dd3fc; }
    @media (max-width: 900px) { .report-header, .day-card-header, .pick-top { display: block; } .report-meta { display: inline-block; margin-top: 8px; text-align: left; } .best-worst-grid, .day-summary, .windows, .compact-windows, .bait-feature { grid-template-columns: 1fr; } .snapshot-strip { grid-template-columns: repeat(7, 118px); min-width: max-content; } }
    @media (max-width: 768px) { body { padding: 10px; background-attachment: scroll; background-position: center top; } .report-shell { margin: 0 auto; padding: 4px; } .report-header { padding: 3px 2px 10px; } .report-title { font-size: clamp(1.75rem, 8vw, 2.45rem); line-height: 1.05; } .report-subtitle { font-size: 0.92rem; } .section-title { font-size: 1.12rem; } .snapshot-card, .planner-card, .day-card, .weekly-summary, .bait-section { padding: 11px; border-radius: 16px; } .planner-grid, .weekly-grid, .bait-grid, .day-tiles, .custom-mode-fields, .about-grid, .saved-spot-form, .saved-spot-card, .fishing-log-card, .settings-grid, .map-picker-fields, .log-form-grid, .fishing-log-filters { grid-template-columns: 1fr; } .settings-wide, .saved-spot-notes, .log-wide, .log-notes { grid-column: auto; } .saved-spot-actions { justify-content: flex-start; } .location-controls { grid-template-columns: minmax(160px, 1fr) auto; } .location-button-group { justify-content: flex-start; } .best-worst-grid { gap: 8px; } .day-card { margin-bottom: 12px; } .day-date { font-size: 1rem; } .window-card, .pick-card { padding: 10px; } .app-sponsor-slot { grid-template-columns: auto minmax(0, 1fr); } .sponsor-note { grid-column: 2; text-align: left; } }
    @media (max-width: 480px) { body { padding: 7px; font-size: 14px; } .report-shell { padding: 2px; } .report-title { font-size: clamp(1.55rem, 9vw, 2rem); } .eyebrow { font-size: 0.82rem; } .report-meta { width: 100%; padding: 8px 9px; border-radius: 12px; } .app-nav { width: 100%; border-radius: 16px; overflow-x: auto; flex-wrap: nowrap; } .app-tab { flex: 0 0 auto; padding: 7px 10px; } .snapshot-card, .planner-card, .day-card, .weekly-summary, .bait-section, .location-card, .panel-card { padding: 9px; border-radius: 14px; } .page-heading { margin-bottom: 9px; padding-bottom: 8px; } .snapshot-strip { grid-template-columns: repeat(7, 108px); gap: 7px; } .snapshot-day-card { padding: 18px 7px 9px; border-radius: 14px; } .snapshot-weather { font-size: 1.55rem; } .location-controls { grid-template-columns: 1fr; } .location-button-group { gap: 5px; } .current-location-button { white-space: normal; } .plan-tile, .summary-tile, .bait-card, .day-tile, .detail-tile { padding: 8px; border-radius: 12px; } .window-grid, .compact-facts { grid-template-columns: 1fr; } .hero-target { font-size: 1rem; } .pick-main { font-size: 0.98rem; } .score-progress { grid-template-columns: 1fr; gap: 4px; } .score-progress-label { white-space: normal; } .moon-tile { min-height: 58px; } .species-explainer ul { columns: 1; } .resource-basic-links a { width: 100%; justify-content: space-between; border-radius: 10px; } .resource-selector-panel { padding-top: 12px; } .resource-selector { width: 100%; } .selected-resource-card { align-items: stretch; flex-direction: column; } .selected-resource-card .small-action-button { width: 100%; justify-content: center; } .app-sponsor-slot { grid-template-columns: 1fr; gap: 6px; padding: 9px 10px; text-align: center; } .sponsor-label { justify-self: center; } .sponsor-note { grid-column: auto; text-align: center; } }

    /* V4 repair pass: compact location controls, cleaner snapshot, readable details, and clearer density. */
    body.density-comfortable .snapshot-card,
    body.density-comfortable .planner-card,
    body.density-comfortable .day-card,
    body.density-comfortable .weekly-summary,
    body.density-comfortable .bait-section,
    body.density-comfortable .location-card,
    body.density-comfortable .panel-card { padding: 16px; margin-top: 18px; }
    body.density-comfortable .plan-tile,
    body.density-comfortable .summary-tile,
    body.density-comfortable .bait-card,
    body.density-comfortable .day-tile,
    body.density-comfortable .detail-tile,
    body.density-comfortable .window-card,
    body.density-comfortable .settings-card,
    body.density-comfortable .about-section,
    body.density-comfortable .saved-spot-card { padding: 11px; }
    body.density-comfortable .planner-grid,
    body.density-comfortable .compact-windows,
    body.density-comfortable .weekly-grid,
    body.density-comfortable .bait-grid,
    body.density-comfortable .settings-grid,
    body.density-comfortable .about-grid { gap: 12px; }
    body.density-compact .planner-card,
    body.density-compact .day-card,
    body.density-compact .weekly-summary,
    body.density-compact .bait-section,
    body.density-compact .location-card,
    body.density-compact .panel-card { padding: 9px; margin-top: 10px; }
    body.density-compact .planner-grid,
    body.density-compact .compact-windows,
    body.density-compact .weekly-grid,
    body.density-compact .bait-grid,
    body.density-compact .settings-grid,
    body.density-compact .about-grid,
    body.density-compact .expanded-detail-layout { gap: 6px; }

    .location-primary { display: flex; flex-wrap: wrap; gap: 7px; align-items: end; margin-top: 7px; }
    .zip-quick-field { width: min(150px, 100%); }
    .more-location-options { flex: 1 1 100%; padding: 7px 9px; border-radius: 12px; background: rgba(255,255,255,0.58); border: 1px solid rgba(130,190,220,0.24); }
    .more-location-options summary { cursor: pointer; color: #0f5f86; font-size: 0.8rem; font-weight: 900; }
    .more-location-options .location-controls { margin-top: 7px; grid-template-columns: minmax(190px, 320px) auto; }
    .button-confirm { animation: buttonConfirm 1.35s ease; }
    .button-error { animation: buttonError 1.35s ease; }
    @keyframes buttonConfirm { 0%, 100% { transform: translateY(0); } 18% { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(34,197,94,0.24), 0 7px 16px rgba(34,197,94,0.18); } }
    @keyframes buttonError { 0%, 100% { transform: translateY(0); } 18% { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(239,68,68,0.22), 0 7px 16px rgba(239,68,68,0.18); } }

    .alerts-heading { margin-top: 2px; color: #7c4a03; font-size: 0.76rem; font-weight: 900; text-transform: uppercase; }

    .snapshot-strip { grid-template-columns: repeat(7, minmax(116px, 1fr)); align-items: stretch; }
    .snapshot-day-card { padding: 8px; text-align: left; gap: 6px; overflow: visible; }
    .snapshot-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; min-height: 24px; }
    .snapshot-topline > div { display: grid; gap: 1px; }
    .snapshot-main { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
    .snapshot-main .rating { white-space: nowrap; }
    .snapshot-day { line-height: 1; }
    .snapshot-date { display: block; line-height: 1; }
    .snapshot-window { font-size: 0.8rem; }
    .snapshot-target { min-height: 0; }
    .best-badge { position: static; transform: none; flex: 0 0 auto; padding: 3px 7px; font-size: 0.62rem; }

    .weekly-summary-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
    .weekly-summary-head p { margin: 2px 0 0; color: #5e7890; font-size: 0.84rem; font-weight: 800; }
    .weekly-best-callout { display: grid; gap: 2px; min-width: 185px; padding: 8px 10px; border-radius: 13px; background: linear-gradient(135deg, rgba(255,248,219,0.88), rgba(255,255,255,0.74)); border: 1px solid rgba(242,182,50,0.34); color: #7c4a03; font-weight: 900; }
    .weekly-best-callout span { color: #92610e; font-size: 0.78rem; }
    .weekly-outlook-lead { margin: 0 0 8px; color: #153b56; font-size: 0.98rem; line-height: 1.42; font-weight: 850; }
    .weekly-outlook-list { display: grid; gap: 5px; padding: 9px 10px; border-radius: 13px; background: rgba(255,255,255,0.68); border: 1px solid rgba(130,190,220,0.24); color: #28516d; font-size: 0.86rem; line-height: 1.35; }
    .weekly-outlook-list strong { color: #123a5a; }
    .weekly-caution { margin-top: 2px; padding-top: 6px; border-top: 1px solid rgba(242,182,50,0.28); color: #7c4a03; }

    .expanded-detail-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .detail-group { padding: 10px; border-radius: 13px; background: rgba(255,255,255,0.72); border: 1px solid rgba(130,190,220,0.24); }
    .detail-group h3 { margin: 0 0 7px; color: #14324a; font-size: 0.92rem; }
    .detail-list { display: grid; gap: 6px; margin: 0; }
    .detail-list div { display: grid; grid-template-columns: minmax(112px, 0.62fr) 1fr; gap: 8px; align-items: start; padding: 5px 0; border-bottom: 1px solid rgba(130,190,220,0.18); }
    .detail-list div:last-child { border-bottom: none; }
    .detail-list dt { color: #5e7890; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
    .detail-list dd { margin: 0; color: #153b56; font-weight: 850; line-height: 1.3; }
    .compact-detail-list div { grid-template-columns: minmax(78px, 0.45fr) 1fr; }
    .timing-layout { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
    .guidance-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .guidance-window { box-shadow: none; }
    .guidance-header { display: flex; justify-content: space-between; gap: 7px; align-items: center; margin-bottom: 5px; }
    .species-outlook-group { grid-column: 1 / -1; }
    .species-rating-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 6px; margin-top: 4px; }
    .species-rating-list .species-pill { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 7px 9px; border-radius: 11px; font-size: 0.78rem; line-height: 1.15; white-space: normal; }
    .species-rating-list .species-pill strong { min-width: 0; overflow-wrap: normal; word-break: normal; }
    .species-rating-list .species-pill span { flex: 0 0 auto; font-weight: 900; }
    .target-note { display: block; margin-top: 3px; color: #5e7890; font-size: 0.76rem; font-weight: 800; line-height: 1.25; }
    .conditions-summary { display: inline-block; max-width: 100%; line-height: 1.35; }
    .compact-window p { line-height: 1.25; }

    body.theme-dark .more-location-options,
    body.theme-dark .detail-group { background: rgba(25,50,75,0.76); border-color: rgba(255,255,255,0.14); color: #e8f3f8; }
    body.theme-dark .more-location-options summary,
    body.theme-dark .detail-group h3,
    body.theme-dark .detail-list dd { color: #eef7fb; }
    body.theme-dark .detail-list dt,
    body.theme-dark .weekly-summary-head p { color: #b8c9d4; }
    body.theme-dark .detail-list div { border-bottom-color: rgba(255,255,255,0.11); }
    body.theme-dark .weekly-best-callout { background: rgba(125,91,25,0.30); border-color: rgba(251,191,36,0.30); color: #fde68a; }
    body.theme-dark .weekly-best-callout span,
    body.theme-dark .alerts-heading { color: #f5d98c; }
    body.theme-dark .weekly-outlook-lead { color: #e8f3f8; }
    body.theme-dark .weekly-outlook-list { background: rgba(25,50,75,0.68); border-color: rgba(255,255,255,0.14); color: #d9edf5; }
    body.theme-dark .weekly-outlook-list strong { color: #eef7fb; }
    body.theme-dark .weekly-caution { border-color: rgba(251,191,36,0.28); color: #fde68a; }
    body.theme-dark .species-rating-list .species-pill { color: inherit; }

    @media (max-width: 900px) {
      .weekly-summary-head, .timing-layout { grid-template-columns: 1fr; display: grid; }
      .expanded-detail-layout, .guidance-columns { grid-template-columns: 1fr; }
      .snapshot-strip { grid-template-columns: repeat(7, 132px); min-width: max-content; }
    }
    @media (max-width: 768px) {
      .location-primary { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
      .location-primary > .update-button, .location-primary > .location-field { width: 100%; }
      .more-location-options { grid-column: 1 / -1; }
      .more-location-options .location-controls { grid-template-columns: 1fr; }
      .weekly-best-callout { min-width: 0; }
      .detail-list div { grid-template-columns: 1fr; gap: 2px; }
    }
    @media (max-width: 480px) {
      .location-primary { grid-template-columns: 1fr; }
      .snapshot-strip { grid-template-columns: repeat(7, 128px); }
      .snapshot-day-card { padding: 8px; }
      .species-rating-list { grid-template-columns: 1fr; }
      .guidance-header { align-items: flex-start; flex-direction: column; }
    }

    /* Focused V4 cleanup: make Daily Forecast Conditions and Best Hour easier to scan. */
    .conditions-summary { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; line-height: 1.2; }
    .condition-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 5px 7px; border-radius: 10px; background: rgba(238,248,255,0.88); border: 1px solid rgba(130,190,220,0.24); color: #28516d; white-space: nowrap; }
    .condition-chip span { color: #5e7890; font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
    .condition-chip strong { color: #153b56; font-size: 0.8rem; font-weight: 900; }
    .best-hour-chip { display: grid; gap: 5px; margin-top: 4px; padding: 7px 8px; border-radius: 12px; background: rgba(234,248,255,0.92); border: 1px solid rgba(103,183,220,0.30); color: #153b56; font-weight: 800; line-height: 1.22; }
    .best-hour-time { color: #0f5f86; font-size: 1rem; font-weight: 950; }
    .best-hour-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: #28516d; }
    .best-hour-target { color: #153b56; font-size: 0.86rem; font-weight: 900; line-height: 1.22; overflow-wrap: anywhere; }
    body.theme-dark .condition-chip { background: rgba(30,58,82,0.78); border-color: rgba(255,255,255,0.13); color: #d9edf5; }
    body.theme-dark .condition-chip span { color: #b8c9d4; }
    body.theme-dark .condition-chip strong,
    body.theme-dark .best-hour-time,
    body.theme-dark .best-hour-target { color: #eef7fb; }
    body.theme-dark .best-hour-meta { color: #d9edf5; }

    @media (max-width: 480px) {
      .condition-chip { flex: 1 1 calc(50% - 5px); justify-content: space-between; }
      .best-hour-chip { gap: 4px; }
      .best-hour-time { font-size: 0.96rem; }
    }

    /* Forecast readability polish: calmer guidance, attractive species outlook, and lighter secondary blocks. */
    .day-summary .day-tile,
    .day-summary .detail-tile { box-shadow: none; border-color: rgba(130,190,220,0.18); background: rgba(255,255,255,0.70); }
    .guidance-columns { gap: 10px; }
    .guidance-window { padding: 8px 0 0; border: none; border-top: 2px solid rgba(103,183,220,0.32); border-radius: 0; background: transparent; box-shadow: none; }
    .guidance-window h3 { margin-bottom: 6px; }
    .guidance-window .score-progress { margin: 4px 0 8px; }
    .guidance-window .note { margin-top: 6px; padding: 6px 0 0; border-radius: 0; background: transparent; border-top: 1px solid rgba(130,190,220,0.18); }
    .guidance-window .compact-detail-list { gap: 3px; }
    .guidance-window .compact-detail-list div { grid-template-columns: minmax(84px, 0.36fr) 1fr; padding: 4px 0; }
    .species-rating-list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 7px; }
    .species-rating-list .species-pill { border-radius: 12px; background: rgba(255,255,255,0.72); border-left-width: 5px; border-top-color: rgba(130,190,220,0.20); border-right-color: rgba(130,190,220,0.20); border-bottom-color: rgba(130,190,220,0.20); box-shadow: none; }
    .species-rating-list .species-pill strong { color: #17324d; }
    .species-rating-list .species-pill span { padding: 3px 7px; border-radius: 999px; font-size: 0.72rem; }
    .species-rating-list .species-excellent { border-left-color: #22c55e; }
    .species-rating-list .species-good { border-left-color: #0891b2; }
    .species-rating-list .species-fair { border-left-color: #f59e0b; }
    .species-rating-list .species-poor { border-left-color: #ef4444; }
    .species-rating-list .species-excellent span { background: #dcfce7; color: #166534; }
    .species-rating-list .species-good span { background: #d9f5fb; color: #075985; }
    .species-rating-list .species-fair span { background: #fff1c7; color: #92400e; }
    .species-rating-list .species-poor span { background: #fee2e2; color: #991b1b; }
    .conditions-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); width: 100%; }
    .condition-chip { justify-content: space-between; min-width: 0; }
    .species-group-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .species-group-option { border: 1px solid rgba(130,190,220,0.30); border-radius: 999px; padding: 6px 9px; background: rgba(255,255,255,0.76); color: #0f5f86; font: inherit; font-size: 0.78rem; font-weight: 900; cursor: pointer; }
    .species-group-option.selected { background: linear-gradient(135deg, #0891b2, #22c55e); color: #fff; border-color: rgba(255,255,255,0.50); }
    .species-group-detail { margin-top: 9px; padding: 10px; border-radius: 13px; background: rgba(255,255,255,0.72); border: 1px solid rgba(130,190,220,0.22); }
    .species-group-detail-head { display: grid; gap: 2px; margin-bottom: 8px; }
    .species-group-detail-head strong { color: #14324a; font-size: 0.96rem; }
    .species-group-detail-head span { color: #5e7890; font-weight: 800; }
    .species-factor-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .species-factor-columns h4 { margin: 0 0 5px; color: #0f5f86; font-size: 0.82rem; text-transform: uppercase; }
    .species-factor-columns ul { margin: 0; padding-left: 18px; columns: 1; }
    .species-factor-columns li { margin: 3px 0; color: #28516d; font-weight: 750; }
    .species-explainer-intro { margin: 8px 0 0; color: #5e7890; font-weight: 800; }
    .species-behavior-note { margin: 0 0 8px; padding: 7px 9px; border-radius: 11px; background: rgba(234,248,255,0.72); color: #28516d; font-weight: 800; line-height: 1.35; }
    .species-notes { display: grid; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(130,190,220,0.20); }
    .species-notes p { margin: 0; color: #28516d; font-weight: 760; line-height: 1.35; }
    body.theme-dark .day-summary .day-tile,
    body.theme-dark .day-summary .detail-tile,
    body.theme-dark .species-group-detail { background: rgba(25,50,75,0.70); border-color: rgba(255,255,255,0.13); }
    body.theme-dark .guidance-window { border-top-color: rgba(125,211,252,0.26); }
    body.theme-dark .guidance-window .note { border-top-color: rgba(255,255,255,0.12); }
    body.theme-dark .species-rating-list .species-pill { background: rgba(25,50,75,0.74); border-color: rgba(255,255,255,0.12); }
    body.theme-dark .target-note { color: #b8c9d4; }
    body.theme-dark .species-rating-list .species-pill strong,
    body.theme-dark .species-group-detail-head strong { color: #eef7fb; }
    body.theme-dark .species-group-detail-head span,
    body.theme-dark .species-factor-columns li,
    body.theme-dark .species-notes p,
    body.theme-dark .species-behavior-note { color: #d9edf5; }
    body.theme-dark .species-behavior-note { background: rgba(30,58,82,0.72); border-color: rgba(255,255,255,0.12); }
    body.theme-dark .species-notes { border-top-color: rgba(255,255,255,0.12); }
    body.theme-dark .species-group-option { background: rgba(25,50,75,0.78); border-color: rgba(255,255,255,0.16); color: #d9edf5; }
    body.theme-dark .species-group-option.selected { background: linear-gradient(135deg, #0e7490, #158f67); color: #f3fbff; }
    body.theme-dark .species-factor-columns h4 { color: #7dd3fc; }
    @media (max-width: 640px) {
      .species-factor-columns { grid-template-columns: 1fr; gap: 8px; }
      .species-rating-list { grid-template-columns: 1fr; }
      .guidance-window .compact-detail-list div { grid-template-columns: 1fr; }
    }

    /* Mobile-only Daily Forecast summary fix: Best Window and Best Hour stay full-width,
       while the secondary summary tiles scroll inside each day card. */
    @media (max-width: 700px) {
      .day-summary.clean-summary {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 100%;
        overflow: hidden;
      }

      .day-hero,
      .day-tiles,
      .day-tiles > .detail-tile,
      .day-secondary-strip > .detail-tile {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
      }

      .day-tiles {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        overflow: visible;
      }

      .day-tiles > .detail-tile {
        width: 100%;
      }

      .day-secondary-strip {
        display: flex;
        gap: 8px;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1px 2px 6px;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
      }

      .day-secondary-strip > .detail-tile {
        flex: 0 0 min(78vw, 245px);
        scroll-snap-align: start;
      }

      .day-secondary-strip > .detail-tile:nth-child(2) {
        flex-basis: min(84vw, 285px);
      }

      .day-hero .score-progress,
      .best-hour-chip .score-progress,
      .day-secondary-strip .score-progress {
        width: 100%;
        max-width: 100%;
      }

      .day-hero .score-progress-label,
      .best-hour-chip .score-progress-label {
        white-space: normal;
        text-align: right;
      }

      .best-hour-target,
      .hero-target,
      .tile-value,
      .conditions-summary {
        overflow-wrap: anywhere;
      }
    }
