.station-popup {
  width: min(960px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  border: 1px solid #b9cab9;
  border-radius: 13px;
  padding: 0;
  background: #fafbf7;
  color: #193834;
  box-shadow: 0 24px 100px #102d2759;
}
.station-popup[open] {
  display: flex;
  flex-direction: column;
}
.station-popup::backdrop {
  background: #133b327a;
  backdrop-filter: blur(3px);
}
.station-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 28px 19px;
  background: linear-gradient(120deg, #eaf1e4, #fafbf7);
  border-bottom: 1px solid #dbe4d6;
  flex: none;
}
.station-popup-eyebrow {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.6px;
  color: #47634e;
}
.station-popup h2 {
  font:
    400 29px/1.2 Georgia,
    serif;
  letter-spacing: -0.6px;
  margin: 10px 0 8px;
  overflow-wrap: anywhere;
}
.station-popup-source {
  font-size: 11px;
  line-height: 1.5;
  color: #5e7162;
  margin: 0;
  overflow-wrap: anywhere;
}
.station-popup-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid #c6d5c2;
  border-radius: 50%;
  background: #fffefa;
  color: #355846;
  font-size: 25px;
  line-height: 1;
}
.station-popup-close:hover {
  background: #e5eedf;
}
.station-popup-body {
  padding: 18px 28px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.station-popup-scroll {
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
  padding-right: 5px;
  margin-top: 8px;
  scrollbar-color: #b7cbb0 #f4f7ee;
  scrollbar-width: thin;
}
.station-popup [hidden] {
  display: none !important;
}
.station-popup-overview {
  padding: 4px 0 18px;
  border-bottom: 1px solid #dce5d7;
  margin-bottom: 16px;
}
.station-popup-overview h3 {
  font:
    400 24px/1.3 Georgia,
    serif;
  margin: 8px 0;
}
.station-popup-availability-latest {
  font-size: 13px;
  color: #285c47;
  margin: 8px 0;
}
.station-popup-overview .station-popup-note {
  font-size: 11px;
  max-width: 70em;
}
.station-popup-inventory {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.station-popup-inventory > h3,
.station-popup-inventory > p {
  grid-column: 1/-1;
  margin: 0 0 5px;
}
.station-popup-inventory > h3 {
  font:
    400 23px/1.3 Georgia,
    serif;
}
.station-popup-availability {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 5px;
  background: #f1f5eb;
  border: 1px solid #d4dfcc;
  border-radius: 7px;
  padding: 12px;
  color: #25493b;
  font: inherit;
  min-width: 0;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.station-popup-availability:hover {
  background: #e7efde;
  border-color: #9bb78d;
}
.station-popup-availability-name {
  font-size: 12px;
  font-weight: 600;
}
.station-popup-availability strong {
  font-size: 18px;
  font-weight: 500;
}
.station-popup-availability small {
  font-size: 10px;
  line-height: 1.5;
  color: #64765c;
}
.station-popup-single {
  font-size: 12px;
  line-height: 1.6;
  color: #57714f;
  margin: 14px 0;
  border-left: 3px solid #98b38a;
  padding: 8px 12px;
  background: #f3f6ef;
}
.station-popup-toolbar > [aria-pressed='true'] {
  background: #285c47;
  color: #fffefa;
}
.station-popup-toolbar {
  padding-bottom: 12px;
  border-bottom: 1px solid #dce5d7;
}
.station-popup-layout {
  display: flex;
  align-items: center;
  gap: 7px;
}
.station-popup-layout select {
  width: auto;
  font-size: 11px;
  height: 32px;
}
.station-popup-cursor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 0;
  border-bottom: 1px solid #dce5d7;
  font-size: 11px;
  color: #456a50;
}
.station-popup-cursor-bar output {
  flex: 1 1 220px;
}
.station-popup-cursor-bar button {
  font-size: 10px;
  padding: 5px 8px;
}
.station-popup-cursor-bar [aria-pressed='true'] {
  background: #285c47;
  color: #fffefa;
}
.station-popup-cursor-line {
  stroke: #b36c2c;
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
  pointer-events: none;
}
.station-popup-cursor-reading {
  min-height: 30px;
  font-size: 11px;
  line-height: 1.5;
  color: #684520;
  padding: 6px 8px;
  background: #fcf3e6;
  border-left: 2px solid #b36c2c;
  overflow-wrap: anywhere;
}
.station-popup-chart svg:focus-visible {
  outline: 2px solid #b36c2c;
  outline-offset: 3px;
}
@media (min-width: 800px) {
  .station-popup[data-layout='columns'] {
    width: min(1200px, calc(100vw - 48px));
  }
  .station-popup[data-layout='columns'] .station-popup-strips,
  .station-popup[data-layout='columns'] .station-context-groups,
  .station-popup[data-layout='columns'] .station-level-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }
  .station-popup[data-layout='columns'] .station-level-comparison {
    grid-column: 1/-1;
  }
  .station-popup[data-layout='columns'] .station-level-comparison > h3,
  .station-popup[data-layout='columns'] .station-level-comparison > .station-popup-note {
    grid-column: 1/-1;
    margin: 0;
  }
  .station-popup[data-layout='columns']
    .station-level-comparison
    .station-context-group
    + .station-context-group {
    border-top: 0;
    padding-top: 0;
  }
  .station-popup[data-layout='columns'] .station-popup-strip-heading {
    min-height: 85px;
  }
  .station-popup[data-layout='columns'] .station-context-group {
    min-width: 0;
  }
}
@media (max-width: 540px) {
  .station-popup-inventory {
    grid-template-columns: 1fr;
  }
  .station-popup-overview h3 {
    font-size: 21px;
  }
}
.station-popup-toolbar {
  display: flex;
  align-items: center;
  gap: 9px 12px;
  flex-wrap: wrap;
}
.station-popup-toolbar {
  flex: none;
}
.station-popup-slider {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) 64px;
  align-items: center;
  gap: 10px;
  min-width: 230px;
  flex: 1;
}
.station-popup-slider > label {
  font-size: 10px;
  font-weight: 650;
  color: #536d58;
}
.station-popup-slider > output {
  font-size: 11px;
  color: #385e49;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.station-popup-slider input[type='range'] {
  width: 100%;
  height: 22px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: #397b59;
  cursor: pointer;
}
.station-popup-slider input[type='range']:focus-visible {
  outline: 3px solid #cf8b32;
  outline-offset: 3px;
}
.station-popup-toolbar > label,
.station-popup-chooser > label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #536d58;
}
.station-popup-toolbar select {
  width: auto;
  max-width: 100%;
  height: 33px;
  font-size: 11px;
}
.station-popup-range {
  font-size: 10px;
  color: #647663;
  flex: 1;
}
.station-popup-button {
  border: 1px solid #bdcfb7;
  border-radius: 5px;
  background: #fffef9;
  color: #285c47;
  padding: 7px 10px;
  font:
    500 11px/1.4 Inter,
    'Segoe UI',
    sans-serif;
}
.station-popup-button:hover {
  background: #eaf1e4;
}
.station-popup-button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.station-popup-status {
  font-size: 12px;
  line-height: 1.65;
  padding: 11px 13px;
  margin: 15px 0;
  background: #edf3e7;
  border: 1px solid #dce7d5;
  border-radius: 6px;
}
.station-popup-status[data-error='true'],
.station-popup-note[data-error='true'] {
  color: #874c28;
  background: #fff1dd;
}
.station-popup-note,
.station-popup-time-basis {
  font-size: 10px;
  line-height: 1.6;
  color: #62745f;
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.station-popup-snapshot {
  margin: 14px 0 18px;
  border-bottom: 1px solid #dce5d7;
  padding-bottom: 12px;
}
.station-popup summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  color: #456a50;
  line-height: 1.5;
}
.station-popup-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
}
.station-popup-snapshot-reading {
  border-left: 2px solid #adc29e;
  padding-left: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.station-popup-snapshot-reading > span,
.station-popup-snapshot-reading > small,
.station-popup-snapshot-reading > a {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: #62755f;
}
.station-popup-snapshot-reading > strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  margin: 4px 0;
  color: #284f3d;
}
.station-popup-strips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.station-popup-strip {
  background: #fffefb;
  border: 1px solid #dce5d6;
  border-radius: 8px;
  padding: 14px 16px 11px;
  min-width: 0;
}
.station-popup-strip-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.station-popup-strip h3 {
  font:
    500 17px/1.3 Georgia,
    serif;
  margin: 0 0 3px;
  overflow-wrap: anywhere;
}
.station-popup-metric-context {
  font-size: 10px;
  line-height: 1.5;
  color: #62745f;
  margin: 0;
  overflow-wrap: anywhere;
}
.station-popup-latest {
  text-align: right;
  max-width: 47%;
  min-width: 135px;
}
.station-popup-latest strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.35px;
  overflow-wrap: anywhere;
}
.station-popup-latest span {
  display: block;
  font-size: 9px;
  line-height: 1.5;
  color: #73816a;
  margin-top: 3px;
}
.station-popup-chart {
  position: relative;
  margin-top: 8px;
}
.station-popup-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 116px;
  overflow: visible;
}
.station-popup-axis {
  font:
    10px Inter,
    'Segoe UI',
    sans-serif;
  fill: #74806d;
}
.station-popup-grid {
  stroke: #e4eadf;
  stroke-width: 1;
}
.station-popup-trace {
  fill: none;
  stroke: #36775e;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.station-popup-points {
  fill: #28775d;
  fill-opacity: 0.78;
}
.station-popup-flagged {
  fill: #fffefb;
  stroke: #856d3e;
  stroke-width: 1.25;
}
.station-popup-bounds {
  fill: #b8792b;
  fill-opacity: 0.9;
}
.station-popup-unloaded {
  fill: #edf0e9;
  fill-opacity: 0.9;
}
.station-popup-tooltip {
  position: absolute;
  left: 65px;
  top: 0;
  max-width: calc(100% - 80px);
  padding: 7px 9px;
  border-radius: 4px;
  background: #193834f2;
  color: #fffef7;
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-line;
  pointer-events: none;
  overflow-wrap: anywhere;
  z-index: 1;
}
.station-popup-empty {
  font:
    400 12px/1.6 Inter,
    'Segoe UI',
    sans-serif;
  color: #798570;
  margin: 0;
  padding: 20px 0 18px;
}
.station-popup-time-basis {
  font-size: 9px;
  margin: 4px 0 9px;
}
.station-popup-strip-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.station-popup-strip-actions .station-popup-button {
  font-size: 10px;
  padding: 5px 8px;
}
.station-popup-records {
  padding-top: 5px;
}
.station-popup-records summary {
  font-size: 10px;
  font-weight: 500;
}
.station-popup-table {
  max-height: 260px;
  overflow: auto;
}
.station-popup-table table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  font-size: 10px;
  text-align: left;
  line-height: 1.5;
  margin-top: 6px;
}
.station-popup-table th {
  font-weight: 650;
  background: #eef3e7;
  padding: 7px;
  position: sticky;
  top: 0;
}
.station-popup-table td {
  vertical-align: top;
  border-bottom: 1px solid #e4eadd;
  padding: 7px;
  overflow-wrap: anywhere;
}
.station-popup-table th:nth-child(1) {
  width: 23%;
}
.station-popup-table th:nth-child(2) {
  width: 29%;
}
.station-popup-chooser {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  align-items: center;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid #dce5d7;
}
.station-popup-chooser label {
  grid-column: 1/-1;
}
.station-popup-chooser select {
  height: 35px;
  font-size: 11px;
  min-width: 0;
}
.station-popup-legend {
  font-size: 10px;
  line-height: 1.7;
  color: #6c7c66;
  margin: 17px 0 0;
  max-width: 78em;
}
.station-popup button:focus-visible,
.station-popup select:focus-visible,
.station-popup summary:focus-visible,
.station-popup a:focus-visible {
  outline: 3px solid #cf8b32;
  outline-offset: 3px;
}
.station-context {
  margin-top: 24px;
  padding-top: 19px;
  border-top: 2px solid #c5d5bd;
}
.station-context-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.station-context-heading h3 {
  font:
    400 23px/1.3 Georgia,
    serif;
  flex: 1;
  margin: 0;
}
.station-context-heading label {
  font-size: 10px;
  color: #62745f;
}
.station-context-heading select {
  width: auto;
  height: 32px;
  font-size: 11px;
}
.station-context-coverage {
  margin: 10px 0;
}
.station-context-group {
  margin: 18px 0;
}
.station-context-group > h4 {
  font-size: 12px;
  letter-spacing: 0.2px;
  margin: 0 0 9px;
}
.station-context-group > select {
  height: 35px;
  font-size: 11px;
  max-width: 100%;
  text-overflow: ellipsis;
}
.station-context-chart {
  margin-top: 8px;
}
.station-context-heading {
  flex-wrap: wrap;
}
.station-context-heading h3 {
  min-width: 220px;
}
.station-context-restore {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.station-context-restore label {
  grid-column: 1/-1;
  font-size: 11px;
  color: #536d58;
}
.station-context-restore select {
  min-width: 0;
  font-size: 11px;
}
.station-context-scope {
  display: flex;
  align-items: center;
  gap: 8px;
}
.station-context-river-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 14px 0;
}
.station-context-river-controls[hidden] {
  display: none;
}
.station-context-river-controls .station-popup-slider {
  flex: 1 1 300px;
  min-width: 0;
  grid-template-columns: 76px minmax(70px, 1fr) 48px;
}
.station-context-river-controls input {
  min-width: 70px;
}
.station-level-comparison {
  margin-top: 18px;
  padding: 14px 12px 0;
  background: #edf3ed;
  border: 1px solid #c5d5bd;
  border-radius: 8px;
  min-width: 0;
}
.station-level-comparison > h3 {
  font:
    400 21px/1.3 Georgia,
    serif;
  margin: 0 0 8px;
}
.station-level-comparison .station-context-group {
  margin: 14px 0;
}
.station-level-comparison .station-context-group + .station-context-group {
  border-top: 1px solid #c5d5bd;
  padding-top: 14px;
}
@media (max-width: 680px) {
  .station-popup {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 10px;
  }
  .station-popup-header {
    padding: 18px;
  }
  .station-popup h2 {
    font-size: 25px;
  }
  .station-popup-body {
    padding: 15px 16px 20px;
  }
  .station-popup-toolbar {
    gap: 9px;
  }
  .station-popup-range {
    flex-basis: 100%;
    order: 3;
  }
  .station-popup-toolbar > .station-popup-button {
    margin-left: auto;
  }
  .station-popup-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .station-popup-strip {
    padding: 12px;
  }
  .station-popup-chart svg {
    min-height: 100px;
  }
  .station-popup-latest {
    min-width: 110px;
  }
  .station-popup-latest strong {
    font-size: 16px;
  }
  .station-popup-strip h3 {
    font-size: 16px;
  }
  .station-popup-tooltip {
    left: 8px;
    max-width: calc(100% - 16px);
  }
}
@media (max-width: 410px) {
  .station-popup-header {
    padding: 16px 14px;
  }
  .station-popup-body {
    padding: 13px 12px 18px;
  }
  .station-popup-eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .station-popup-strip-heading {
    flex-wrap: wrap;
  }
  .station-popup-latest {
    text-align: left;
    max-width: none;
    width: 100%;
  }
  .station-popup-latest strong {
    display: inline;
  }
  .station-popup-latest span {
    display: inline;
    margin-left: 8px;
  }
  .station-popup-toolbar > .station-popup-button {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .station-popup {
    scroll-behavior: auto;
  }
}

.station-popup-bucket-gap {
  fill: #b8996820;
  stroke: #a9916b66;
  stroke-width: 0.5;
}
