.water-dashboard {
  --water-ink: #293e35;
  --water-muted: #617064;
  --water-blue: #397763;
  width: min(1120px, calc(100vw - 32px));
  max-width: 1120px;
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid #fff;
  border-radius: 26px;
  background: #f7f3ea;
  color: var(--water-ink);
  box-shadow: 0 28px 90px #273f3444;
  overflow: auto;
  font-size: 14px;
  line-height: 1.5;
}
.water-dashboard::backdrop {
  background: #21382e88;
  backdrop-filter: blur(7px);
}
.water-dashboard button,
.water-dashboard select {
  font: inherit;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #d9dfd1;
  background: white;
  color: var(--water-ink);
  padding: 10px 14px;
  cursor: pointer;
}
.water-dashboard button:hover {
  background: #e8efdf;
}
.water-dashboard button:focus-visible,
.water-dashboard select:focus-visible,
.water-dashboard input:focus-visible,
.water-dashboard summary:focus-visible {
  outline: 3px solid #397763;
  outline-offset: 3px;
}
.water-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.water-dashboard h2 {
  font-size: 28px;
  line-height: 1.3;
  margin: 6px 0 12px;
}
.water-dashboard h3 {
  font-size: 20px;
  margin: 6px 0;
}
.water-dashboard h3 small {
  font-size: 13px;
  font-weight: 500;
  color: var(--water-muted);
}
.water-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--water-muted);
}
.water-close {
  flex: 0 0 44px;
  font-size: 24px !important;
  line-height: 1;
}
.water-source-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--water-muted);
  font-size: 12px;
  flex-wrap: wrap;
}
.water-source-badge span {
  background: #e8eadc;
  border-radius: 20px;
  padding: 4px 10px;
}
.water-rivers {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.water-rivers button[aria-pressed="true"],
.water-months button[aria-pressed="true"] {
  background: #397763;
  color: #fff;
  border-color: #397763;
}
.water-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
}
.water-main {
  background: #fff;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid #e1e4d7;
  min-width: 0;
}
.water-chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.water-chart-heading label {
  font-size: 12px;
  color: var(--water-muted);
}
.water-chart-heading select {
  display: block;
  margin-top: 4px;
  max-width: 100%;
}
.water-chart {
  margin: 20px -10px 6px;
}
.water-chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.water-chart text {
  font: 12px system-ui;
  fill: #617064;
}
.water-timeline {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.water-timeline label {
  flex: 1;
  min-width: 120px;
  font-weight: 650;
}
.water-timeline input {
  display: block;
  width: 100%;
  height: 32px;
  accent-color: #397763;
}
.water-timeline > span {
  font-size: 11px;
  color: #835b00;
}
.water-months {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 18px;
}
.water-months button {
  padding: 7px 2px;
  font-size: 11px;
}
.water-months strong,
.water-months span {
  display: block;
}
.water-months strong {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.water-reading {
  padding: 22px;
  border-radius: 20px;
  background: #e9eedf;
  min-width: 0;
}
.water-value {
  font-size: 46px;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-top: 10px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.water-value small {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--water-muted);
}
.water-delta {
  font-size: 12px;
  color: var(--water-muted);
}
.water-status {
  color: var(--status);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
}
.water-status i {
  background: var(--status);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.water-reading > p {
  font-size: 13px;
}
.water-reading dl {
  margin: 20px 0;
}
.water-reading dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d4dcc9;
  padding: 9px 0;
  font-size: 12px;
}
.water-reading dt {
  color: var(--water-muted);
}
.water-reading dd {
  margin: 0;
  text-align: right;
}
.water-caution {
  font-size: 11px !important;
  color: var(--water-muted);
}
.water-table {
  margin-top: 18px;
  padding: 15px 20px;
  background: white;
  border-radius: 16px;
}
.water-table summary {
  cursor: pointer;
  min-height: 28px;
  font-weight: 650;
}
.water-table-scroll {
  overflow: auto;
}
.water-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.water-table th,
.water-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #e1e4d7;
}
.water-table caption {
  text-align: left;
  padding: 12px 0;
  color: var(--water-muted);
}
.water-dashboard a {
  color: #326652;
}
.water-table p {
  font-size: 12px;
  color: var(--water-muted);
}
.water-official {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 0;
}
.water-official p {
  font-size: 12px;
  color: var(--water-muted);
  margin: 4px 0;
}
.water-official button {
  flex-shrink: 0;
}
.water-station-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  border: 1px solid #c9dfeb !important;
  background: #f7fcffed !important;
  color: #175473 !important;
  font-size: 11px !important;
  padding: 9px 12px !important;
  border-radius: 14px !important;
  pointer-events: auto;
  box-shadow: 0 4px 14px #17344d20;
  white-space: nowrap;
  min-height: 40px;
}
@media (max-width: 760px) {
  .water-dashboard {
    padding: 18px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }
  .water-layout {
    grid-template-columns: 1fr;
  }
  .water-dashboard h2 {
    font-size: 23px;
  }
  .water-main,
  .water-reading {
    padding: 16px;
  }
  .water-rivers {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .water-rivers button {
    padding: 9px;
  }
  .water-official {
    align-items: stretch;
    flex-direction: column;
  }
  .water-value {
    font-size: 38px;
  }
  .water-chart-heading select {
    font-size: 16px;
  }
  .water-months {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.water-official-panel {
  margin-top: 20px;
  background: white;
  border: 1px solid #d9dfd1;
  border-radius: 20px;
  padding: 22px;
}
.water-official-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.water-official-heading select {
  display: block;
  max-width: 100%;
  margin-top: 5px;
}
.water-official-meta {
  font-size: 13px;
  color: #617064;
  line-height: 1.8;
}
.water-official-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.water-official-cards > div {
  padding: 14px;
  border-radius: 12px;
  background: #eef1e5;
  overflow-wrap: anywhere;
}
.water-official-cards span {
  display: block;
  font-size: 12px;
  color: #617064;
}
.water-official-cards strong {
  display: block;
  font-size: 22px;
}
.water-official-cards small {
  font-size: 11px;
  font-weight: 400;
}
.water-official-chart {
  width: 100%;
  max-height: 300px;
}
.water-official-chart text {
  font: 12px system-ui;
  fill: #617064;
}
@media (max-width: 500px) {
  .water-official-panel {
    padding: 14px;
  }
  .water-official-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .water-official-cards strong {
    font-size: 18px;
  }
}

/* River field-notebook palette: warm paper, jade water and leaf accents. */
.water-dashboard {
  font-family:
    system-ui,
    -apple-system,
    "Noto Sans TC",
    sans-serif;
  background:
    radial-gradient(ellipse at 100% 0, #dfe9d3 0, transparent 48%), #f7f3ea;
  border: 1px solid #fffdf5;
  box-shadow:
    0 24px 90px #243b3655,
    inset 0 1px #fff;
}
.water-dashboard h2,
.water-dashboard h3 {
  font-family: inherit;
  letter-spacing: -0.035em;
}
.water-dashboard h2 {
  font-weight: 750;
}
.water-eyebrow {
  color: #5b7864;
}
.water-heading {
  border-bottom: 1px solid #dce0cf;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.water-main,
.water-table,
.water-official-panel {
  background: #fffdf7;
  border-color: #e1e4d7;
  box-shadow: 0 5px 18px #3d573b06;
}
.water-reading {
  background: linear-gradient(145deg, #e3ecd8, #f1efdc);
  border: 1px solid #d9e2cb;
  box-shadow: inset 0 1px #fff9;
}
.water-value {
  color: #315e4c;
}
.water-delta {
  display: inline-block;
  background: #fffaf0b8;
  border-radius: 9px;
  padding: 7px 10px;
}
.water-status {
  background: #fffdf7b8;
  padding: 10px;
  border-radius: 10px;
}
.water-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.water-chart-toolbar > span {
  font-size: 11px;
  color: #617064;
  display: flex;
  align-items: center;
  gap: 6px;
}
.water-chart-switch {
  display: flex;
  background: #eaf0e1;
  padding: 4px;
  border-radius: 13px;
  gap: 4px;
}
.water-chart-switch button {
  min-height: 36px;
  padding: 6px 12px;
  border-color: transparent;
  background: transparent;
  font-size: 12px;
}
.water-chart-switch button[aria-pressed="true"] {
  background: #fffdf7;
  color: #326652;
  box-shadow: 0 2px 5px #3b533514;
}
.water-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #9bc3ac;
  display: inline-block;
}
.water-legend-dot.selected {
  background: #397763;
  margin-left: 8px;
}
.water-chart {
  margin-top: 14px;
}
.water-chart text,
.water-official-chart text {
  fill: #63705f;
}
.water-chart .water-bar-value {
  fill: #365944;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.water-chart-point {
  cursor: pointer;
  outline: none;
}
.water-chart-point:hover rect:not([fill="transparent"]),
.water-chart-point:focus rect:not([fill="transparent"]) {
  stroke: #365e48;
  stroke-width: 2;
}
.water-chart-point:focus > rect:first-of-type {
  stroke: #365e48;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.water-chart-point:hover circle,
.water-chart-point:focus circle {
  stroke-width: 4;
}
.water-months button {
  background: #f6f5ec;
  border-color: #e3e6d8;
}
.water-months button[aria-pressed="true"] {
  background: #397763;
}
.water-rivers button {
  background: #fffdf5;
  border-color: #dce1d2;
}
.water-official-cards > div {
  border: 1px solid #dfe5d5;
  border-top: 3px solid #84ac8f;
  background: #f0f3e8;
}
.water-official-cards > div:nth-child(3n + 2) {
  border-top-color: #bbab76;
}
.water-official-cards strong {
  color: #355b48;
  font-variant-numeric: tabular-nums;
}
.water-dashboard input {
  accent-color: #397763;
}
.water-timeline button {
  background: #e8efdf;
  color: #326652;
  border-color: #cddbc1;
}
.water-official > button {
  background: #397763;
  color: #fff;
  border-color: #397763;
}
.water-source-badge span {
  border: 1px solid #d6dcc8;
}
.water-dashboard .water-close {
  background: #fffdf7;
}
@media (max-width: 760px) {
  .water-chart-toolbar {
    gap: 8px;
  }
  .water-chart-switch {
    flex: 1;
  }
  .water-chart-switch button {
    flex: 1;
    min-height: 44px;
  }
  .water-chart-toolbar > span {
    width: 100%;
  }
  .water-heading {
    gap: 10px;
  }
  .water-dashboard h2 {
    font-size: 22px;
  }
}
