:root {
  --bg: #0e151b;
  --bg-2: #111d25;
  --card: rgba(20, 33, 42, 0.88);
  --card-2: rgba(28, 45, 55, 0.92);
  --line: rgba(255,255,255,0.11);
  --text: #f4f1ea;
  --muted: #aab7b8;
  --green: #a7d129;
  --green-2: #759915;
  --orange: #d88432;
  --red: #d85f4f;
  --shadow: 0 24px 90px rgba(0,0,0,0.42);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(167,209,41,0.14), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(216,132,50,0.14), transparent 22rem),
    linear-gradient(160deg, #081016 0%, var(--bg) 45%, #060b0f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.gate-card {
  width: min(560px, 100%);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(20,33,42,0.92), rgba(11,18,24,0.92)), url('assets/hero.jpg') center / cover;
  box-shadow: var(--shadow);
}
.brandline, .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), #d6f264);
  color: #11180c;
  font-size: 13px;
  font-weight: 950;
}
.gate h1, .hero-copy h1 {
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  line-height: .92;
  letter-spacing: -0.065em;
  margin: 22px 0 16px;
}
.gate p, .lead, .section-head p { color: var(--muted); line-height: 1.65; }
.access-form label, .plan-form label, legend {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 780;
}
.input-row { display: flex; gap: 10px; }
input, select, textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(167,209,41,0.72);
  box-shadow: 0 0 0 4px rgba(167,209,41,0.1);
}
button, .primary-link, .secondary-link {
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.input-row button, .primary-btn, .primary-link {
  background: linear-gradient(135deg, var(--green), #d7f16c);
  color: #10160d;
  text-decoration: none;
}
.secondary-btn, .secondary-link {
  background: rgba(216,132,50,0.16);
  color: var(--text);
  border: 1px solid rgba(216,132,50,0.45);
  text-decoration: none;
}
.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line);
}
.ghost.danger { color: #ffb1aa; border-color: rgba(216,95,79,0.45); }
.small-btn { padding: 9px 12px; border-radius: 12px; font-size: .9rem; }
.small, .muted { color: var(--muted); }
.error { color: #ffb1aa; font-weight: 800; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 52px);
  background: rgba(8, 16, 22, .76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.top-actions { display: flex; gap: 10px; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero-app {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(42px, 8vw, 96px) 0;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 950;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.live-card {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  padding: 24px;
  display: grid;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(to bottom, rgba(7,11,15,0.08), rgba(7,11,15,0.78) 52%, rgba(7,11,15,0.96)),
    url('assets/hero.jpg') center / cover;
}
.live-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  pointer-events: none;
}
.live-card > * { position: relative; z-index: 1; }
.live-top { display: flex; justify-content: space-between; color: var(--muted); font-weight: 800; }
.live-top strong { color: var(--green); letter-spacing: .12em; }
.score-ring {
  margin: 76px 0 18px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) 74%, rgba(255,255,255,0.11) 0);
  box-shadow: 0 0 50px rgba(167,209,41,0.24);
}
.score-ring span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0d151a;
  font-size: 2rem;
  font-weight: 950;
}
.live-card h2 { font-size: clamp(1.75rem, 4vw, 2.8rem); line-height: 1; margin: 0 0 10px; letter-spacing: -.04em; }
.live-card p { color: var(--muted); line-height: 1.5; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-row span, .reason {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: .82rem;
  font-weight: 850;
}
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(216,132,50,0.34);
  background: rgba(216,132,50,0.09);
  border-radius: 20px;
  color: var(--muted);
}
.notice strong { color: var(--orange); }

.planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  padding: 38px 0;
}
.plan-form, .helper-panel, .result-section, .history-section {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0,0,0,0.18);
}
.plan-form { padding: clamp(18px, 3vw, 30px); }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.045em; }
.compact p { margin-bottom: 0; }
fieldset { margin: 28px 0 24px; padding: 0; border: 0; }
legend { margin-bottom: 12px; }
.species-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.species-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  background: var(--card-2);
}
.species-card input { position: absolute; opacity: 0; pointer-events: none; }
.species-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); }
.species-card span {
  position: absolute;
  inset: auto 10px 10px 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.55);
  font-weight: 950;
}
.species-card.active { border-color: rgba(167,209,41,0.82); box-shadow: 0 0 0 4px rgba(167,209,41,0.1); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wide-label { margin-top: 16px; }
.form-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.helper-panel { overflow: hidden; align-self: start; }
.helper-panel img { width: 100%; height: 220px; object-fit: cover; }
.helper-panel h3, .helper-panel ul { padding-inline: 22px; }
.helper-panel ul { padding-bottom: 20px; color: var(--muted); line-height: 1.5; }

.result-section, .history-section { padding: clamp(18px, 3vw, 30px); margin: 36px 0; }
.result-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.result-hero h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 3.4rem); letter-spacing: -.05em; }
.result-hero p { margin: 0; color: var(--muted); line-height: 1.6; }
.result-score {
  flex: 0 0 auto;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at center, #111d25 54%, transparent 55%), conic-gradient(var(--green) 70%, rgba(255,255,255,0.1) 0);
  border: 1px solid var(--line);
}
.result-score span { display: block; font-size: 2.25rem; font-weight: 950; line-height: 1; }
.result-score small { color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.reason-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.reason.positive { border-color: rgba(167,209,41,0.3); color: #d7f16c; }
.reason.negative { border-color: rgba(216,95,79,0.32); color: #ffb1aa; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.045);
}
.result-card.accent { background: linear-gradient(135deg, rgba(167,209,41,0.12), rgba(255,255,255,0.045)); }
.result-card.full { margin-top: 16px; }
.result-card h3 { margin: 0 0 12px; font-size: 1.1rem; }
ol { margin: 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.6; }
p { line-height: 1.6; }
.muted-card { color: var(--muted); }
.timeline li { margin-bottom: 6px; }
.history-list { display: grid; gap: 10px; margin-top: 16px; }
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
}
.history-item span { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; }
.empty { color: var(--muted); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 50;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f4f1ea;
  color: #0e151b;
  font-weight: 900;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero-app, .planner-grid { grid-template-columns: 1fr; }
  .hero-app { min-height: auto; padding-top: 34px; }
  .live-card { min-height: 460px; }
  .helper-panel { order: -1; }
}

@media (max-width: 640px) {
  main { width: min(100% - 22px, 1180px); }
  .app-header { padding: 10px 12px; }
  .logo span:last-child { display: none; }
  .top-actions { gap: 6px; }
  .small-btn { font-size: .78rem; padding: 8px 9px; }
  .gate h1, .hero-copy h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); line-height: .9; }
  .input-row { flex-direction: column; }
  .hero-buttons, .form-actions, .result-actions { flex-direction: column; }
  .hero-buttons a, .form-actions button, .result-actions button { width: 100%; text-align: center; }
  .species-cards { grid-template-columns: 1fr; }
  .species-card { min-height: 110px; }
  .form-grid, .result-grid { grid-template-columns: 1fr; }
  .result-hero { align-items: flex-start; flex-direction: column; }
  .result-score { width: 112px; height: 112px; }
  .notice { flex-direction: column; }
  .history-item { align-items: stretch; flex-direction: column; }
  .history-item button { width: 100%; }
}

@media print {
  body { background: white; color: #111; }
  .app-header, .hero-app, .notice, .plan-form, .helper-panel, .history-section, .result-actions, .toast { display: none !important; }
  main { width: 100%; }
  .result-section { display: block !important; box-shadow: none; border: 0; color: #111; background: white; }
  .result-card, .result-card.accent { border: 1px solid #bbb; background: white; color: #111; }
  p, ol { color: #111; }
}

/* V2 · Köder & Rigs 1x1 */
.top-link { text-decoration: none; display: inline-grid; place-items: center; }
.guide-result-card { background: linear-gradient(135deg, rgba(216,132,50,.09), rgba(255,255,255,.045)); }
.plan-guide-links { display: grid; gap: 8px; margin-top: 12px; }
.guide-link-btn {
  width: 100%; display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center;
  padding: 8px; text-align: left; color: var(--text); background: rgba(255,255,255,.055);
  border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
}
.guide-link-btn:hover { border-color: rgba(167,209,41,.5); background: rgba(167,209,41,.08); }
.guide-link-btn img { width: 54px; height: 42px; object-fit: cover; border-radius: 10px; }
.guide-link-btn span { font-weight: 900; }

.guide-section {
  margin: 42px 0; padding: clamp(18px,3vw,30px); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: 0 16px 50px rgba(0,0,0,.18); scroll-margin-top: 90px;
}
.guide-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.guide-hero img { width: 100%; min-height: 220px; max-height: 290px; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); }
.guide-controls { display: grid; grid-template-columns: 1fr 260px; gap: 14px; margin: 26px 0 14px; }
.guide-controls label { display: grid; gap: 8px; font-weight: 800; }
.guide-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-chip { padding: 9px 13px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.filter-chip.active, .filter-chip:hover { color: #10160d; background: var(--green); border-color: var(--green); }
.guide-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.guide-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.04); }
.guide-card-button { width: 100%; height: 100%; padding: 0; display: block; color: inherit; background: transparent; border: 0; text-align: left; white-space: normal; }
.guide-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--line); }
.guide-card-body { padding: 14px; }
.guide-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .73rem; font-weight: 850; }
.guide-category { color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.guide-card h3 { margin: 10px 0 6px; font-size: 1.12rem; }
.guide-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.guide-more { display: inline-block; margin-top: 12px; color: var(--text); font-weight: 900; font-size: .88rem; }
.guide-card:hover { transform: translateY(-2px); border-color: rgba(167,209,41,.46); transition: .18s ease; }
.guide-note, .guide-empty { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }

.guide-dialog {
  width: min(920px, calc(100% - 26px)); max-height: min(92vh, 900px); padding: 0; overflow: auto;
  color: var(--text); background: #0d171e; border: 1px solid rgba(255,255,255,.14); border-radius: 28px;
  box-shadow: 0 34px 110px rgba(0,0,0,.7);
}
.guide-dialog::backdrop { background: rgba(3,7,10,.82); backdrop-filter: blur(8px); }
.guide-close { position: sticky; top: 12px; float: right; z-index: 4; margin: 12px 12px -56px 0; width: 42px; height: 42px; padding: 0; border-radius: 50%; color: var(--text); background: rgba(5,10,14,.82); border: 1px solid var(--line); font-size: 1.7rem; line-height: 1; }
.guide-dialog-image { width: 100%; aspect-ratio: 16/6; object-fit: cover; border-bottom: 1px solid var(--line); }
.guide-dialog-content { padding: clamp(18px,4vw,34px); }
.guide-dialog h2 { margin: 0; font-size: clamp(2rem,5vw,3.5rem); letter-spacing: -.05em; }
.guide-dialog-subtitle { color: var(--green); font-weight: 800; margin: 8px 0 0; }
.guide-intro { color: var(--muted); font-size: 1.02rem; }
.guide-fish-tags { margin: 14px 0; }
.guide-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.guide-detail-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.045); }
.guide-detail-card h3 { margin: 0 0 10px; }
.guide-detail-card ul { margin: 0; padding-left: 1.15rem; color: var(--muted); line-height: 1.55; }
.guide-detail-card p { color: var(--muted); margin: 0; }
.warning-card { border-color: rgba(216,132,50,.34); background: rgba(216,132,50,.07); }
.compare-card { grid-column: 1 / -1; border-color: rgba(167,209,41,.28); background: rgba(167,209,41,.055); }
.size-table { display: grid; gap: 8px; }
.size-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.size-row:last-child { border-bottom: 0; padding-bottom: 0; }
.size-row strong { color: var(--green); }
.size-row span { color: var(--muted); }

@media (max-width: 1000px) {
  .guide-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .guide-hero, .guide-controls, .guide-detail-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide-hero img { min-height: 170px; max-height: 220px; }
  .compare-card { grid-column: auto; }
  .top-link { display: none; }
}
@media (max-width: 520px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card-button { display: grid; grid-template-columns: 132px 1fr; }
  .guide-card img { height: 100%; min-height: 132px; aspect-ratio: auto; border-right: 1px solid var(--line); border-bottom: 0; }
  .guide-dialog-image { aspect-ratio: 16/8; }
}

@media print {
  .guide-section, .guide-dialog { display: none !important; }
}

/* V2.1 photo guide */
.guide-card img, .guide-link-btn img { background:#081117; }
.guide-dialog-image { object-fit: contain; background:#081117; }

.field-hint { display:block; margin-top:.38rem; font-size:.78rem; line-height:1.35; color:var(--muted, #9ba8a8); font-weight:500; }

/* V2.4 · Tourenplanung & Wetter */
.tour-planner {
  margin: 26px 0 8px;
  padding: 20px;
  border: 1px solid rgba(167,209,41,.22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(167,209,41,.075), rgba(255,255,255,.025));
}
.tour-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.tour-head h3 { margin: 0 0 6px; font-size: 1.3rem; }
.tour-head p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.5; max-width: 720px; }
.auto-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(167,209,41,.3);
  color: #d7f16c;
  background: rgba(167,209,41,.08);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
}
.tour-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr .8fr .8fr;
  gap: 12px;
  align-items: start;
}
.location-field { position: relative; }
.location-input-wrap { display: flex; gap: 8px; }
.location-input-wrap input { min-width: 0; }
.location-results {
  position: absolute;
  z-index: 15;
  top: calc(100% - 18px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111d25;
  box-shadow: 0 18px 50px rgba(0,0,0,.42);
}
.location-result {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 11px 13px;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  white-space: normal;
}
.location-result:last-child { border-bottom: 0; }
.location-result:hover, .location-result:focus { background: rgba(167,209,41,.1); }
.location-result span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.weather-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.weather-actions .field-hint { margin: 0; }
.weather-actions button:disabled { opacity: .65; cursor: wait; }
.weather-preview {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(4,10,14,.35);
}
.weather-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.weather-preview-head strong { display: block; }
.weather-preview-head span:not(.weather-auto-label) { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; }
.weather-auto-label {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #d7f16c;
  background: rgba(167,209,41,.1);
  border: 1px solid rgba(167,209,41,.23);
  font-size: .7rem;
  font-weight: 900;
}
.weather-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.weather-metrics > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 7px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
}
.weather-metrics > div > span { grid-row: 1 / 3; font-size: 1.2rem; }
.weather-metrics strong { font-size: .88rem; }
.weather-metrics small { color: var(--muted); font-size: .7rem; }
.weather-derived-hint { margin: 12px 0 0; color: #dbe6e5; font-size: .85rem; }
.weather-source { margin: 7px 0 0; color: var(--muted); font-size: .72rem; }
.weather-result-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(58,121,148,.13), rgba(255,255,255,.04));
  border-color: rgba(89,154,180,.28);
}
.weather-result-card p { margin-bottom: 6px; }

@media (max-width: 880px) {
  .tour-grid { grid-template-columns: 1fr 1fr; }
  .location-field { grid-column: 1 / -1; }
  .weather-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .tour-planner { padding: 15px; }
  .tour-head { display: block; }
  .auto-badge { display: inline-block; margin-top: 10px; }
  .tour-grid { grid-template-columns: 1fr; }
  .location-field { grid-column: auto; }
  .location-input-wrap { align-items: stretch; }
  .location-input-wrap button { padding-inline: 12px; }
  .weather-actions { align-items: stretch; flex-direction: column; }
  .weather-actions button { width: 100%; }
  .weather-preview-head { display: block; }
  .weather-auto-label { display: inline-block; margin-top: 8px; }
  .weather-metrics { grid-template-columns: 1fr 1fr; }
}

/* V2.5: readable weather recommendation */
.live-card { min-width: 0; }
.water-windows { padding-left: 1.1rem; font-weight: 650; line-height: 1.6; }
.live-card details { font-size: .85rem; line-height: 1.5; }
.live-card summary { cursor: pointer; }
.live-card details ul { padding-left: 1.1rem; }
#waterCardContext { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.plan-form, .helper-panel, fieldset, .form-grid > *, .tour-grid > * { min-width: 0; }
@media (max-width: 900px) { .planner-grid { grid-template-columns: minmax(0, 1fr); } }

/* V2.5.1: live advice beside the form, within reach on mobile. */
.hero-app { grid-template-columns: minmax(0, 1fr); min-height: auto; }
.hero-copy { max-width: 850px; }
.planner-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); align-items: start; }
.advice-sidebar { position: sticky; top: 90px; min-width: 0; max-height: calc(100dvh - 110px); overflow-y: auto; border-radius: 22px; }
.advice-sidebar .live-card { min-height: 0; padding: 24px; }
.advice-sidebar h2 { font-size: 1.65rem; overflow-wrap: anywhere; }
.advice-status { margin: 0 0 10px; color: var(--muted); font-size: .85rem; }
.advice-updated { animation: advice-highlight 1.2s ease-out; }
@keyframes advice-highlight { from { box-shadow: inset 0 0 0 3px #a7d129; } to { box-shadow: inset 0 0 0 0 transparent; } }
.mobile-advice-button { display: none; }
#mobileAdviceDialog { width: min(100% - 24px, 520px); max-height: calc(100dvh - 32px); padding: 12px; border: 1px solid var(--line); border-radius: 24px; background: #101a1d; color: #fff; }
#mobileAdviceDialog::backdrop { background: #000a; }
#closeAdviceDialog { position: sticky; top: 0; z-index: 1; width: 100%; margin-bottom: 12px; background: #172626; }
#mobileAdviceContent .live-card { min-height: 0; padding: 22px; }
#mobileAdviceContent h2 { font-size: 1.65rem; }
@media (max-width: 900px) {
  .planner-grid { grid-template-columns: minmax(0, 1fr); }
  .advice-sidebar { position: static; order: -1; max-height: none; overflow: visible; }
  .mobile-advice-button { display: flex; flex-direction: column; gap: 5px; position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; right: 12px; z-index: 30; padding: 12px 16px; border: 1px solid #a7d129; border-radius: 16px; color: #fff; background: #172626; box-shadow: 0 8px 30px #0008; text-align: left; }
  #mobileAdviceSummary { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
  .mobile-advice-button strong { color: #c1e84b; }
  .plan-form { padding-bottom: 120px; }
  body:has(#mobileAdviceDialog[open]) { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .advice-updated { animation: none; } }
@media print { .advice-sidebar, .mobile-advice-button, #mobileAdviceDialog { display: none !important; } }

/* V2.5.2: one score engine for live and detailed planning. */
.live-condition-score { margin: 16px 0; padding: 14px; border: 1px solid #ffffff38; border-radius: 16px; background: #0c181ce8; }
.live-score-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.live-score-heading strong { font-size: 2rem; white-space: nowrap; color: #c1e84b; }
.live-score-heading small { font-size: .8rem; color: #c4cfd0; }
.live-score-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; }
.live-condition-score p.small { font-size: .75rem; line-height: 1.45; margin: 8px 0; }
#liveScoreDelta[data-direction="up"] { color: #c1e84b; }
#liveScoreDelta[data-direction="down"] { color: #ffc58a; }
.live-condition-score details { font-size: .8rem; }

/* V2.5.3: spot suggestions alongside the live tactic. */
.live-structures { margin: 18px 0; padding-top: 16px; border-top: 1px solid #ffffff30; }
.live-structures h3 { margin: 0 0 8px; font-size: 1.05rem; }
.live-structures ul { padding-left: 1.1rem; margin: 10px 0; font-size: .88rem; line-height: 1.55; }
.live-structures li + li { margin-top: 10px; }
.live-structures p.small { margin: 8px 0; font-size: .75rem; line-height: 1.45; }
#liveStructuresSafety { color: #ffc58a; }
/* V2.6: guided planning, fewer competing surfaces. */
.guided-planning { background: #0e171a; }
.flow-header { padding: 30px 0 0; scroll-margin-top: 80px; }
.flow-header h1 { font-size: clamp(1.7rem,4vw,2.4rem); margin: 8px 0; letter-spacing: -.035em; }
.flow-header > p { color: var(--muted); line-height: 1.5; }
.flow-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 24px; }
.flow-steps button { padding: 14px 10px; border: 1px solid #ffffff26; border-radius: 12px; background: #162328; color: #c1ccce; font-weight: 700; }
.flow-steps button[aria-current=step] { background: #c0e749; color: #15200b; border-color: #c0e749; }
.flow-steps button:disabled { opacity: .55; cursor: default; }
#flowProgress { font-size: .85rem; margin-bottom: 0; }
.guided-planning .planner-grid { padding-top: 18px; }
#flowStep1 h2, #flowStep2 h2 { margin: 0; font-size: 1.5rem; }
#flowStep1 > p, #flowStep2 > p { color: var(--muted); line-height: 1.5; }
.guided-planning .species-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
.guided-planning .species-card { min-height: 54px; background: #17262c; overflow: visible; }
.guided-planning .species-card img { display: none; }
.guided-planning .species-card span { position: static; display: block; background: none; padding: 16px 10px; text-align: center; font-weight: 700; }
.guided-planning .species-card:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.guided-planning .species-card.active { background: #283c23; box-shadow: none; }
.guided-planning .tour-head, .guided-planning .auto-badge { display: none; }
.guided-planning .tour-planner { border: 0; background: none; padding: 0; box-shadow: none; }
.guided-planning .tour-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.guided-planning .location-field { grid-column: 1 / -1; }
.guided-planning .plan-form { background: #142126; box-shadow: none; }
.guided-planning .live-card { background: #142126; box-shadow: none; border: 1px solid #ffffff20; min-height: 0; }
.guided-planning .live-card::before, .guided-planning .live-card::after { display: none; }
.guided-planning .advice-sidebar { max-height: calc(100dvh - 115px); }
.guided-planning .advice-sidebar .tag-row, .guided-planning .advice-sidebar .live-structures, .guided-planning .advice-sidebar details, .guided-planning .advice-sidebar #liveScoreBasis, .guided-planning .advice-sidebar .live-condition-score p { display: none; }
.guided-planning .advice-sidebar #sampleTitle { font-size: 1.15rem; }
.guided-planning .advice-sidebar #sampleText { font-size: .9rem; line-height: 1.6; }
.guided-planning .advice-sidebar .live-condition-score { padding: 12px; }
#flowMore, .compact-weather, #flowPlanDetails, .flow-library { border: 1px solid #ffffff26; border-radius: 12px; margin: 18px 0; padding: 16px; }
#flowMore summary, .compact-weather summary, #flowPlanDetails summary, .flow-library > summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
#flowMore .form-grid { margin-top: 18px; }
#flowPlanDetails > summary { margin-bottom: 10px; }
.flow-library > section { margin-top: 20px; }
.guided-planning #result { margin-top: 20px; background: #142126; scroll-margin-top: 85px; }
#flowRecommendation h2 { font-size: 1.8rem; margin: 8px 0; }
#flowTripContext { color: var(--muted); line-height: 1.6; }
.flow-result-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.flow-result-grid article { padding: 18px; border: 1px solid #ffffff26; border-radius: 16px; }
.flow-result-grid h3 { color: #c0e749; margin: 0 0 12px; }
.flow-result-grid ul { padding-left: 18px; margin-bottom: 0; }
.flow-result-grid li + li { margin-top: 12px; }
.flow-result-grid p, .flow-result-grid li { font-size: .95rem; line-height: 1.6; }
.flow-result-score { display: flex; gap: 14px; flex-wrap: wrap; padding: 20px 0; }
.flow-result-score span { font-size: .85rem; color: var(--muted); }
#flowRecommendation > details { font-size: .9rem; line-height: 1.6; }
#flowEdit { margin: 20px 0 4px; }
.flow-risk { background: #422e19; border: 1px solid #dfae6c; padding: 16px; border-radius: 12px; line-height: 1.6; }
#flowScoreBar, .guided-planning #mobileAdviceButton { display: none !important; }
@media (max-width:900px) {
  .guided-planning .advice-sidebar { display: none; }
  .guided-planning .plan-form { padding: 20px; }
  .guided-planning main { padding-bottom: 80px; }
  #flowScoreBar:not([hidden]) { display: block !important; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); color: #d4e1d0; background: #1a2b25; border-top: 1px solid #678c3c; font-size: .8rem; }
  .flow-result-grid { grid-template-columns: minmax(0,1fr); }
  .flow-header { padding-top: 20px; }
  .flow-steps button { font-size: .8rem; padding: 12px 4px; }
  .guided-planning .form-actions { flex-direction: row; }
  .guided-planning .form-actions button { width: auto; flex: 1 1 auto; }
  .guided-planning #resetForm { flex-basis: 100%; font-size: .8rem; }
  .guided-planning #result { padding: 18px; }
}
@media (max-width:480px) {
 .guided-planning .tour-grid { grid-template-columns: minmax(0,1fr); }
 .guided-planning .plan-form { padding: 16px; }
 .flow-header > p:not(.eyebrow):not(#flowProgress) { font-size: .9rem; }
}
@media print {
 .flow-header, #flowEdit, #flowScoreBar, .flow-library { display: none !important; }
 #flowRecommendation { color: #111; }
 .flow-result-grid { display: block; }
}
.guided-planning .flow-date-field { grid-column: 1 / -1; }
.guided-planning .advice-sidebar { border-radius: 0; }
.guided-planning .advice-sidebar #liveScoreBasis { display: block; font-size: .72rem; line-height: 1.45; }
@media (max-width:480px) { .guided-planning .tour-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
/* V2.6.1: visual cues and a complete, browsable structure selection. */
.trip-inspiration { display: grid; grid-template-columns: minmax(180px, .7fr) 1fr; align-items: center; gap: 20px; margin: 20px 0; background: #1a2b28; border-radius: 16px; overflow: hidden; }
.trip-inspiration img { display: block; width: 100%; height: 170px; object-fit: cover; }
.trip-inspiration figcaption { padding: 18px; line-height: 1.6; font-size: 1rem; }
.flow-result-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.flow-result-grid .all-structures { grid-column: 1 / -1; order: 3; }
#flowStructureIntro { color: var(--muted); font-size: .88rem; }
#flowStructures.structure-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; list-style: none; padding: 0; }
#flowStructures.structure-options li { margin: 0; padding: 0; min-width: 0; }
.structure-options details { border: 1px solid #ffffff25; border-radius: 10px; padding: 12px; }
.structure-options summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
.structure-options p { margin: 12px 0 0; color: #c3d0cf; }
.lure-inspiration { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px; border: 1px solid #ffffff30; border-radius: 12px; background: #1a2b28; color: white; text-align: left; cursor: pointer; }
.lure-inspiration img { width: 100px; height: 84px; border-radius: 8px; object-fit: cover; }
.lure-inspiration strong, .lure-inspiration small { display: block; }
.lure-inspiration small { margin-top: 8px; color: #c0e749; line-height: 1.5; }
@media(max-width:900px) {
 .flow-result-grid { grid-template-columns: minmax(0,1fr); }
 .trip-inspiration { grid-template-columns: minmax(0,1fr); gap: 0; }
 .trip-inspiration img { height: 135px; }
 .trip-inspiration figcaption { padding: 14px; font-size: .88rem; }
 #flowStructures.structure-options { grid-template-columns: minmax(0,1fr); }
}
/* V2.6.2: one recommendation, each piece of information in one place. */
.plan-overview { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; align-items: center; gap: 20px; padding-bottom: 16px; }
.plan-overview > img { width: 120px; height: 100px; object-fit: cover; border-radius: 12px; }
.plan-overview #flowTripContext { margin: 8px 0; font-size: .9rem; }
.plan-overview #flowEdit { margin: 0; }
.plan-overview #flowScore { color: #c0e749; }
.score-disclaimer { font-size: .75rem; color: var(--muted); margin: 6px 0 0; }
.unified-section { padding: 24px 0; border-top: 1px solid #ffffff25; }
.unified-section h3 { margin: 0 0 12px; font-size: 1.2rem; color: #c0e749; }
.unified-section p { line-height: 1.6; }
.section-help, #flowStructureIntro { color: var(--muted); font-size: .88rem; }
.result-explanation { margin: 12px 0; padding: 14px 16px; border: 1px solid #ffffff25; border-radius: 12px; font-size: .88rem; line-height: 1.6; }
.result-explanation > summary { cursor: pointer; font-weight: 650; }
.result-explanation[open] > summary { margin-bottom: 14px; }
#lureGallerySlot .plan-guide-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
#lureGallerySlot .guide-link-btn { display: flex; flex-direction: column; width: 100%; align-items: stretch; padding: 0; overflow: hidden; border-radius: 12px; text-align: left; }
#lureGallerySlot .guide-link-btn img { width: 100%; height: 125px; object-fit: cover; }
#lureGallerySlot .guide-link-btn span { padding: 12px; line-height: 1.4; }
#lureTextSlot ol { padding-left: 22px; }
#lureTextSlot li+li { margin-top: 10px; }
#scoreReasonsSlot .reason-strip { margin: 0; }
#weatherSlot .result-card { padding: 0; background: none; border: 0; margin-top: 18px; }
#flowRecommendation #flowNotes { padding-left: 20px; }
@media(max-width:900px) {
 .plan-overview { grid-template-columns: 76px minmax(0,1fr); gap: 12px; }
 .plan-overview > img { width: 76px; height: 85px; }
 .plan-overview #flowEdit { grid-column: 1 / -1; justify-self: start; }
 #flowRecommendation h2 { font-size: 1.4rem; }
 #lureGallerySlot .plan-guide-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 #lureGallerySlot .guide-link-btn img { height: 100px; }
 #lureGallerySlot .guide-link-btn span { padding: 10px; font-size: .85rem; }
 .unified-section { padding: 20px 0; }
}
@media print { .plan-overview { grid-template-columns: 90px 1fr; } .result-explanation { break-inside: auto; } }
