:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #17352f;
  background: #f4f4ed;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #17684f;
  --green-dark: #123c35;
  --muted: #64746d;
  --line: #dce5dd;
  --paper: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-size: 18px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  height: 76px;
  padding: 0 max(24px, calc((100% - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-dark);
  color: var(--paper);
}

.brand {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.8px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 2px solid #8bc7a3;
  border-radius: 50% 50% 50% 8px;
  display: grid;
  place-items: center;
  color: #a7d6b7;
  font-size: 19px;
  font-weight: 700;
}

.brand-light {
  color: #a7d6b7;
  font-weight: 400;
}

.language-toggle {
  min-width: 54px;
  min-height: 44px;
  color: white;
  border: 1px solid #6b9785;
  border-radius: 12px;
  background: transparent;
  font-weight: 700;
}

main {
  width: min(100% - 40px, 960px);
  margin: 0 auto;
  padding: 46px 0 42px;
}

.intro {
  position: relative;
  min-height: 242px;
  margin-bottom: 22px;
  padding: 31px 33px;
  overflow: hidden;
  border-radius: 24px;
  color: white;
  background: linear-gradient(118deg, #123f43 0%, #1b625b 58%, #4f9180 100%);
  box-shadow: 0 12px 28px rgb(22 66 59 / 12%);
}

.intro .eyebrow,
.intro h1,
.intro-copy {
  position: relative;
  z-index: 1;
}

.intro .eyebrow {
  color: #b6deca;
}

.intro h1 {
  max-width: 620px;
  margin-top: 20px;
}

.hero-art {
  position: absolute;
  right: -7px;
  bottom: -3px;
  width: 48%;
  height: 100%;
  opacity: 0.53;
  pointer-events: none;
}

.hero-art svg {
  width: 100%;
  height: 100%;
}

.hero-sun {
  fill: #f3d9a0;
  opacity: 0.9;
}

.hero-city,
.hero-dom {
  fill: none;
  stroke: #d3eee0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-city {
  stroke-width: 3;
  opacity: 0.58;
}

.hero-dom {
  stroke-width: 3.2;
}

.hero-river {
  fill: none;
  stroke: #b7e5d5;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.75;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.intro-copy {
  max-width: 570px;
  margin-bottom: 0;
  color: #e2eee8;
  font-size: 19px;
}

.location-panel,
.bite-panel,
.condition-card,
.entries,
.entry-dialog form {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.location-panel {
  min-height: 98px;
  margin-bottom: 20px;
  padding: 16px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.location-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.field-label,
.condition-name {
  color: var(--muted);
  font-size: 15px;
}

.location-panel strong {
  font-size: 19px;
}

.location-status {
  color: var(--muted);
  font-size: 14px;
}

.location-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.location-button,
.city-select {
  min-height: 48px;
  border: 1px solid #cbd9ce;
  border-radius: 12px;
  background: #fbfcf8;
}

.location-button {
  padding: 9px 13px;
  color: var(--green-dark);
  font-weight: 700;
}

.location-button:hover {
  background: #edf5ee;
}

.location-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.city-select {
  width: 225px;
  padding: 8px 32px 8px 12px;
  color: var(--green-dark);
  font-size: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bite-panel {
  padding: 25px;
  border-color: #c8dfd1;
  background: linear-gradient(132deg, #eff7ee 0%, #edf7f4 100%);
  box-shadow: 0 8px 20px rgb(22 66 59 / 5%);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bite-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #dcefe1;
  font-size: 36px;
  font-weight: 700;
}

.activity-species-control {
  max-width: 440px;
  margin: 22px 0 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.activity-species-control label {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.activity-species-select {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #cbd9ce;
  border-radius: 12px;
  color: var(--green-dark);
  background: #fbfcf8;
}

.activity-score {
  margin: 4px 0 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 16px;
}

.activity-score strong {
  color: var(--green-dark);
  font-size: clamp(36px, 6vw, 46px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.activity-disclaimer {
  margin: 9px 0 0;
  color: #51685b;
  font-size: 14px;
}

.panel-note {
  max-width: 700px;
  margin-bottom: 0;
  color: #51685b;
}

.rules-summary-panel,
.rules-content-panel {
  margin-top: 20px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.rules-summary-panel {
  border-color: #d7e2cc;
  background: linear-gradient(132deg, #f7f8ee 0%, #fff 100%);
}

.rules-status-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #315d49;
  background: #e5efe3;
  font-size: 23px;
  font-weight: 800;
}

.rules-status-icon.is-restricted,
.rules-status.is-restricted {
  color: #8c2824;
}

.rules-status.is-restricted {
  display: block;
  margin-top: 16px;
}

.rules-status:not(.is-restricted) {
  display: block;
  margin-top: 16px;
  color: var(--green-dark);
}

.rules-details-link,
.rules-primary-link,
.rules-source-list a {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 3px;
}

.rules-details-link {
  display: inline-block;
  margin-top: 15px;
}

.rules-content-panel > .section-heading {
  margin-bottom: 17px;
}

.rules-intro {
  min-height: 210px;
}

.back-to-forecast {
  min-height: 48px;
  margin: 0 0 16px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c8d8cd;
  border-radius: 12px;
  color: var(--green-dark);
  background: white;
  box-shadow: 0 3px 10px rgb(22 66 59 / 6%);
  font-weight: 750;
  text-decoration: none;
}

.back-to-forecast:hover {
  background: #f0f6f1;
}

.rules-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.rules-table {
  width: 100%;
  min-width: 610px;
  border-collapse: collapse;
  background: white;
  font-size: 16px;
}

.rules-table th,
.rules-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.rules-table thead th {
  color: var(--green-dark);
  background: #f0f5ef;
  font-weight: 750;
}

.rules-table tbody th {
  font-weight: 700;
}

.rules-table tbody tr:last-child th,
.rules-table tbody tr:last-child td {
  border-bottom: 0;
}

.rules-table .selected-rule-row {
  background: #f4f8ef;
}

.rules-table .closed-rule-row {
  color: #852d27;
  background: #fff1ed;
}

.rules-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.zone-map-panel {
  min-width: 0;
  max-width: 100%;
  margin-top: 20px;
}

.zone-map-label {
  margin-bottom: 7px;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 750;
}

.zone-map-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.zone-map-option {
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #c8d8cd;
  border-radius: 10px;
  color: var(--green-dark);
  background: white;
  text-align: left;
}

.zone-map-option[aria-pressed="true"] {
  border-color: var(--green);
  background: #eef6ee;
  box-shadow: inset 0 0 0 1px var(--green);
}

.zone-map-option-title,
.zone-map-option-range {
  display: block;
  overflow-wrap: anywhere;
}

.zone-map-option-title {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.zone-map-option-range {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.zone-map-heading {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px 14px;
}

.zone-map-heading strong,
.zone-map-heading span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.zone-map-heading span {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.zone-map-heading span.is-restricted {
  color: #852d27;
}

.zone-map-controls {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.zone-map-controls button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #c8d8cd;
  border-radius: 9px;
  color: var(--green-dark);
  background: #f7faf6;
  font-weight: 750;
}

.zone-map-controls #zone-map-fullscreen-open {
  padding: 8px 12px;
}

.zone-map-controls button:disabled {
  cursor: default;
  opacity: 0.5;
}

.zone-map-controls a {
  margin-left: auto;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.zone-map-viewport {
  min-width: 0;
  max-width: 100%;
  max-height: min(68vh, 680px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef2ed;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.zone-map-viewport img {
  display: block;
  max-width: none;
  height: auto;
}

.zone-map-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: white;
  background: #10251f;
}

.zone-map-dialog::backdrop {
  background: #10251f;
}

.zone-map-dialog[open] {
  display: flex;
  flex-direction: column;
}

.zone-map-dialog-toolbar {
  flex: 0 0 auto;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #123c35;
}

.zone-map-dialog-toolbar > strong {
  min-width: 0;
  flex: 1 1 100%;
  overflow-wrap: anywhere;
}

.zone-map-dialog-actions {
  display: flex;
  gap: 8px;
}

.zone-map-dialog-actions button {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #6b9785;
  border-radius: 9px;
  color: white;
  background: transparent;
  font-weight: 750;
}

.zone-map-dialog-actions button:disabled {
  cursor: default;
  opacity: 0.5;
}

.zone-map-dialog-actions #zone-map-dialog-close {
  font-size: 24px;
}

.zone-map-dialog-hint {
  margin: 0;
  color: #d7e8df;
  font-size: 13px;
}

.zone-map-dialog-viewport {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  background: #263b35;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.zone-map-viewport.is-dragging,
.zone-map-dialog-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.zone-map-dialog-viewport img {
  display: block;
  max-width: none;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.rules-source-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.rules-primary-link {
  display: inline-block;
  margin-top: 4px;
}

.back-to-forecast:focus-visible,
.rules-details-link:focus-visible,
.rules-primary-link:focus-visible,
.rules-source-list a:focus-visible,
.zone-map-controls a:focus-visible,
.zone-map-controls button:focus-visible,
.zone-map-option:focus-visible,
.zone-map-dialog-actions button:focus-visible {
  outline: 3px solid #e6a83c;
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .rules-summary-panel,
  .rules-content-panel {
    padding: 18px;
  }

  .rules-source-list {
    display: grid;
  }

  .zone-map-controls a {
    width: 100%;
    margin-left: 0;
  }

  .zone-map-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .rules-table-scroll {
    overflow: visible;
    border: 0;
  }

  .rules-table {
    min-width: 0;
    display: block;
    background: transparent;
  }

  .rules-table thead {
    display: none;
  }

  .rules-table tbody {
    display: grid;
    gap: 12px;
  }

  .rules-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
  }

  .rules-table tbody th {
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    background: #f0f5ef;
    font-size: 18px;
  }

  .rules-table tbody td {
    min-width: 0;
    padding: 9px 13px;
    display: grid;
    gap: 2px;
    border: 0;
    overflow-wrap: anywhere;
    font-size: 16px;
  }

  .rules-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
  }
}

.conditions-status {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 15px;
}

.conditions-section,
.log-section {
  margin-top: 38px;
}

.conditions-section > .section-heading,
.log-heading {
  margin-bottom: 16px;
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.condition-card {
  min-height: 126px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-content: center;
  column-gap: 12px;
  box-shadow: 0 5px 16px rgb(22 66 59 / 4%);
}

.condition-icon {
  grid-row: span 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--green);
  background: #edf5ef;
  font-size: 24px;
  font-weight: 700;
}

.condition-name,
.condition-detail,
.condition-card strong {
  min-width: 0;
}

.condition-name,
.condition-detail {
  overflow-wrap: anywhere;
}

.condition-card strong {
  font-size: 16px;
  font-weight: 650;
}

.condition-detail {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.trend-heading {
  margin: 30px 0 10px;
}

.trend-heading h3 {
  margin: 0;
  font-size: 21px;
}

.level-history-card {
  min-height: 0;
  display: block;
  padding: 18px 20px 14px;
}

.chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chart-heading h4,
.forecast-card h4 {
  margin: 0;
  font-size: 17px;
}

.chart-heading span,
.chart-legend,
.chart-note {
  color: var(--muted);
  font-size: 14px;
}

.chart-legend {
  margin: 3px 0 0;
}

.chart-note {
  margin: 4px 0 0;
  line-height: 1.4;
}

.history-chart-scroll,
.forecast-chart-scroll {
  overflow: hidden;
}

.history-chart {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
  margin-top: 6px;
}

.forecast-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.forecast-card {
  min-width: 0;
  padding: 16px 17px 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 5px 16px rgb(22 66 59 / 4%);
}

.forecast-svg {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  margin-top: 2px;
}

.chart-grid-line {
  stroke: #e4eae5;
  stroke-width: 1;
}

.chart-label,
.chart-axis-label,
.chart-value,
.chart-extra {
  font-family: "Segoe UI", Arial, sans-serif;
}

.chart-label,
.chart-axis-label {
  fill: var(--muted);
  font-size: 12px;
}

.chart-value {
  fill: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.chart-extra {
  fill: var(--muted);
  font-size: 11px;
}

.chart-extreme-label {
  fill: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-linejoin: round;
  stroke-width: 3px;
}

.chart-extreme-point {
  fill: var(--green);
  stroke: var(--paper);
  stroke-width: 1.5;
}

.chart-temperature .chart-range,
.chart-temperature .chart-line,
.chart-temperature .chart-point,
.chart-clouds .chart-line,
.chart-clouds .chart-point,
.chart-pressure .chart-line,
.chart-pressure .chart-point {
  stroke: var(--green);
}

.chart-temperature .chart-point,
.chart-clouds .chart-point,
.chart-pressure .chart-point {
  fill: var(--green);
}

.chart-range {
  stroke-width: 4;
  stroke-linecap: round;
}

.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-point {
  stroke-width: 2;
}

.chart-grid-vertical {
  stroke-dasharray: 3 5;
}

.chart-precipitation .chart-bar {
  fill: #5793bb;
}

.chart-wind .chart-bar {
  fill: #82a98d;
}

.water-level-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.water-level-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.water-level-swatch {
  width: 20px;
  height: 0;
  border-top: 3px solid;
}

.water-level-swatch.history {
  border-color: #347e9f;
}

.water-level-swatch.forecast {
  border-color: var(--green);
}

.water-level-swatch.estimate {
  border-color: #c18a32;
  border-top-style: dashed;
}

.level-history-line,
.level-forecast-line,
.level-estimate-line {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.level-history-line {
  stroke: #347e9f;
}

.level-forecast-line {
  stroke: var(--green);
}

.level-estimate-line {
  stroke: #c18a32;
  stroke-dasharray: 8 6;
}

.level-now-marker {
  stroke: #687b72;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.level-point {
  fill: #347e9f;
}

.conditions-note,
.source-note {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 14px;
}

.source-note a {
  color: var(--green-dark);
  font-weight: 650;
  text-underline-offset: 3px;
}

.primary-button {
  min-height: 54px;
  padding: 12px 19px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--green);
  font-weight: 750;
  transition: background 120ms ease, transform 120ms ease;
}

.primary-button:hover {
  background: #10563f;
}

.primary-button:active {
  transform: translateY(1px);
}

.entries {
  padding: 4px 18px;
}

.entry-row {
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.entry-row:last-child {
  border-bottom: 0;
}

.entry-date {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

.entry-species {
  color: var(--muted);
  font-size: 15px;
}

.entry-score {
  min-width: 54px;
  padding: 6px 9px;
  border-radius: 11px;
  color: var(--green-dark);
  background: #e5f2e8;
  text-align: center;
  font-weight: 800;
}

.empty-note,
.privacy-note {
  color: var(--muted);
  font-size: 15px;
}

.empty-note {
  margin: 15px 2px 0;
}

.privacy-note {
  margin: 27px 0 0;
  text-align: center;
}

.entry-dialog {
  width: min(100% - 28px, 620px);
  max-height: min(90vh, 850px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: transparent;
}

.entry-dialog::backdrop {
  background: rgb(10 28 23 / 58%);
}

.entry-dialog form {
  padding: 26px;
}

.dialog-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.close-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--green-dark);
  background: white;
  font-size: 27px;
  line-height: 1;
}

.form-label,
.overall-fieldset legend,
.fish-fieldset legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}

.overall-fieldset,
.fish-fieldset {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.overall-rating-grid {
  max-width: 390px;
}

.rating-choice {
  min-width: 0;
  min-height: 58px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--green-dark);
  background: #f7faf7;
}

.rating-choice[aria-checked="true"] {
  border: 2px solid var(--green);
  background: #e8f4eb;
  box-shadow: 0 0 0 2px rgb(23 104 79 / 10%);
}

.rating-mark {
  width: calc(var(--mark-size) * 1.6);
  height: var(--mark-size);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.fish-mark svg {
  width: calc(var(--mark-size) * 1.6);
  height: var(--mark-size);
}

.fieldset-note {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.fish-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.fish-entry {
  min-width: 0;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.fish-name {
  min-width: 105px;
  flex: 0 0 105px;
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 650;
}

.species-rating-grid {
  min-width: 0;
  max-width: 310px;
  flex: 1;
  gap: 3px;
}

.species-rating-grid .rating-choice {
  min-height: 48px;
  padding: 2px;
  border-radius: 9px;
}

.text-input {
  width: 100%;
  min-height: 50px;
  margin-bottom: 15px;
  padding: 9px 12px;
  border: 1px solid #b8c8bd;
  border-radius: 11px;
}

.form-error {
  min-height: 0;
  margin: 0;
  color: #a02727;
  font-weight: 650;
}

.form-error:not(:empty) {
  margin: 0 0 12px;
}

.save-button {
  width: 100%;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #e6a83c;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .topbar {
    height: 66px;
    padding: 0 20px;
  }

  main {
    width: min(100% - 30px, 480px);
    padding-top: 30px;
  }

  .intro-copy {
    font-size: 17px;
    max-width: 76%;
  }

  .intro {
    min-height: 242px;
    padding: 25px 22px;
  }

  .intro h1 {
    max-width: 80%;
    margin-top: 13px;
    font-size: clamp(30px, 8vw, 38px);
  }

  .hero-art {
    right: -27px;
    width: 57%;
    opacity: 0.35;
  }

  .location-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    padding: 16px;
  }

  .location-controls {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .location-button,
  .city-select {
    width: 100%;
  }

  .bite-panel {
    padding: 20px;
  }

  h2 {
    font-size: 22px;
  }

  .activity-species-control {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .condition-grid {
    gap: 9px;
  }

  .condition-card {
    min-height: 132px;
    padding: 13px;
    grid-template-columns: 32px 1fr;
    column-gap: 8px;
  }

  .condition-icon {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }

  .condition-card strong {
    font-size: 15px;
  }

  .condition-detail {
    font-size: 12px;
  }

  .forecast-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .level-history-card {
    padding: 15px 13px 12px;
  }

  .forecast-card {
    padding: 14px 12px 9px;
  }

  .history-chart {
    min-width: 0;
  }

  #water-level-chart .chart-axis-label {
    font-size: 24px;
  }

  .log-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .log-heading .primary-button {
    width: 100%;
  }

  .entry-dialog form {
    padding: 21px 17px;
  }

  .fish-entry {
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    padding: 6px 9px;
  }

  .fish-name {
    min-width: 0;
    flex-basis: auto;
  }

  .species-rating-grid {
    max-width: none;
    flex: none;
    gap: 5px;
  }

  .species-rating-grid .rating-choice {
    min-height: 54px;
  }
}

@media (max-width: 380px) {
  .rating-mark,
  .fish-mark svg {
    width: calc(var(--mark-size) * 1.15);
  }
}
