.pond-view {
  --pond-chart-width: 440px;
  min-width: 0;
  font-size: 13px;
}
.pond-date-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid #dce5eb; }
.pond-date-tab { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.pond-date-tab[aria-selected="true"] { background: #e1eff4; color: #174f68; border-color: #9ec3d3; }
.pond-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pond-eyebrow { margin: 0 0 5px; color: #518196; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.pond-title { margin: 0; font-size: 19px; color: #254d63; line-height: 1.4; }
.pond-source { font-size: 12px; white-space: nowrap; }
.pond-day-metadata { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 9px; color: #5a7483; font-size: 12px; }
.pond-intro { max-width: 890px; margin: 12px 0 5px; color: #486577; font-size: 12px; line-height: 1.65; }
.pond-availability { margin: 0 0 14px; color: #738693; font-size: 11px; line-height: 1.6; }
.pond-toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px solid #dce5eb; border-radius: 9px; background: #fff; }
.pond-toolbar > label { display: flex; flex-direction: column; gap: 6px; color: #456c80; font-size: 11px; min-width: 0; }
.pond-search-label { flex: 1 1 240px; max-width: 430px; }
.pond-toolbar input[type="search"] { width: 100%; font-size: 12px; }
.pond-toolbar select { min-height: 36px; }
.pond-column-picker { position: relative; font-size: 12px; align-self: flex-end; }
.pond-column-picker summary { padding: 9px 8px; border: 1px solid #d6e0e7; border-radius: 6px; }
.pond-column-options { position: absolute; z-index: 9; top: calc(100% + 6px); right: 0; width: 190px; display: grid; gap: 5px; border: 1px solid #d6e0e7; padding: 10px; background: #fff; border-radius: 8px; box-shadow: 0 4px 16px #17354d18; }
.pond-column-options label { display: flex; align-items: center; gap: 8px; padding: 3px; cursor: pointer; }
.pond-column-options input[type="checkbox"] { margin: 0; min-height: 0; width: 15px; height: 15px; accent-color: #1b607e; }
.pond-result-count { margin: 10px 2px 8px; font-size: 11px; color: #617b8a; }
.pond-table-scroll { max-height: 72vh; max-height: 72dvh; min-height: 200px; overflow: auto; overscroll-behavior: contain; border: 1px solid #d4e1e8; border-radius: 9px; background: #fff; }
.pond-table { table-layout: fixed; width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.pond-table th, .pond-table td { padding: 12px; border-bottom: 1px solid #dce5eb; border-right: 1px solid #e4ecf1; text-align: left; vertical-align: top; font-size: 12px; }
.pond-table thead th { position: sticky; top: 0; z-index: 3; padding: 10px 12px; background: #edf4f7; font-weight: 650; color: #315d73; border-bottom: 1px solid #c9dce5; white-space: nowrap; }
.pond-table thead .pond-column-identity { left: 0; z-index: 5; }
.pond-table .pond-identity { position: sticky; left: 0; z-index: 2; background: #fff; width: 170px; min-width: 170px; max-width: 170px; box-shadow: 2px 0 4px #17354d05; }
.pond-table .pond-column-identity { width: 170px; min-width: 170px; }
.pond-time { display: block; color: #254d63; font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 650; }
.pond-record-id { display: block; margin-top: 8px; font-size: 10px; line-height: 1.65; color: #6a8391; font-weight: 400; overflow-wrap: anywhere; }
.pond-table .pond-devices, .pond-column-devices { width: 140px; min-width: 140px; }
.pond-device { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; white-space: nowrap; font-size: 11px; }
.pond-device:last-child { margin-bottom: 0; }
.pond-device-label { color: #617b8a; }
.pond-device-state { display: inline-block; padding: 2px 5px; border-radius: 4px; background: #f1f4f6; color: #6b7d89; font-size: 10px; font-weight: 600; max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
.pond-device-on { background: #e5f4ed; color: #237456; }
.pond-device-off { background: #f1f4f6; color: #74858f; }
.pond-device-mixed { background: #fff2dd; color: #8b6727; }
.pond-device-details { font-size: 10px; line-height: 1.6; margin-top: 10px; }
.pond-device-details summary { font-size: 10px; }
.pond-device-details dl { display: block; margin: 8px 0 0; }
.pond-device-details dt { color: #617b8a; font-weight: 500; margin: 7px 0 2px; }
.pond-device-details dd { margin: 0; color: #456c80; overflow-wrap: anywhere; white-space: normal; }
.pond-table .pond-audio-cell, .pond-column-audio { width: 270px; min-width: 270px; }
.pond-audio { display: block; width: 245px; height: 40px; max-width: 100%; }
.pond-audio-info { margin: 7px 0; color: #738693; font-size: 10px; min-height: 13px; }
.pond-static-button { padding: 4px 9px; min-height: 29px; font-size: 11px; }
.pond-static-button[aria-pressed="true"] { color: #17627a; background: #edf8fa; border-color: #b9d7df; }
.pond-row-status { margin: 7px 0 0; max-width: 242px; color: #738693; font-size: 10px; line-height: 1.65; min-height: 32px; }
.pond-row-playing .pond-identity { background: #eff8fb; box-shadow: inset 3px 0 #1884ae; }
.pond-table .pond-chart-cell { width: calc(var(--pond-chart-width) + 24px); min-width: calc(var(--pond-chart-width) + 24px); padding-top: 10px; }
.pond-chart { position: relative; width: var(--pond-chart-width); overflow: hidden; background: #fff; }
.pond-chart-base, .pond-chart-signal { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; user-select: none; }
.pond-chart-signal { clip-path: none; }
.pond-zoom-button { min-height: 25px; font-size: 10px; padding: 3px 7px; margin-top: 5px; }
.pond-chart-missing { display: flex; align-items: center; justify-content: center; text-align: center; width: var(--pond-chart-width); min-height: 115px; padding: 15px; border: 1px dashed #dce5eb; border-radius: 5px; background: #fafcfd; font-size: 11px; line-height: 1.7; color: #8a9ca7; }
.pond-chart-error { color: #8b5f4f; background: #fff9f6; }
.pond-table .pond-click-count, .pond-column-count { min-width: 110px; width: 110px; color: #617b8a; font-variant-numeric: tabular-nums; }
.pond-hide-waveform .pond-column-waveform,
.pond-hide-stft .pond-column-stft,
.pond-hide-wavelet .pond-column-wavelet,
.pond-hide-comparison .pond-column-comparison { display: none; }
.pond-load-sentinel { height: 1px; width: 1px; }
.pond-load-more { margin: 14px; position: sticky; left: 14px; }
.pond-no-results, .pond-loading, .pond-error { padding: 28px 18px; color: #617b8a; font-size: 13px; line-height: 1.7; }
.pond-error { color: #8b3d26; }
.pond-zoom-dialog { width: min(1320px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); padding: 14px; border: 1px solid #c8dce6; border-radius: 10px; background: #fff; color: #223648; box-shadow: 0 12px 48px #102c4130; }
.pond-zoom-dialog::backdrop { background: #102c4180; }
.pond-zoom-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 10px; }
.pond-zoom-title { font-size: 13px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.pond-zoom-image { display: block; width: 100%; height: auto; }
.pond-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .pond-title { font-size: 17px; }
  .pond-toolbar { gap: 10px; }
  .pond-search-label { flex-basis: 100%; max-width: none; }
  .pond-table .pond-identity, .pond-table .pond-column-identity { width: 130px; min-width: 130px; max-width: 130px; }
  .pond-table-scroll { max-height: 68vh; max-height: 68dvh; }
  .pond-time { font-size: 14px; }
  .pond-record-id { font-size: 9px; }
  .pond-table th, .pond-table td { padding: 10px; }
  .pond-table .pond-chart-cell { width: calc(var(--pond-chart-width) + 20px); min-width: calc(var(--pond-chart-width) + 20px); }
  .pond-zoom-dialog { width: calc(100vw - 20px); padding: 10px; }
}

/* Pond metadata and source management share the existing authenticated workspace. */
.pond-day-metadata { display: block; margin: 12px 0; }
.pond-metadata-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid #cfe0e7; border-radius: 9px; background: #dce8ed; }
.pond-metadata-item { min-width: 0; padding: 12px 14px; background: #edf5f7; }
.pond-metadata-item dt { color: #5a7b8b; font-size: 10px; font-weight: 500; line-height: 1.5; margin: 0 0 5px; }
.pond-metadata-item dd { color: #245c70; font-size: 19px; font-weight: 650; line-height: 1.35; margin: 0; font-variant-numeric: tabular-nums; }
.pond-derived { display: block; margin-top: 3px; color: #738e9a; font-size: 9px; }
.pond-signal-info { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 9px; font-size: 11px; color: #6b8390; }
.pond-day-notes { margin: 9px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #456c80; font-size: 12px; line-height: 1.6; }
.pond-update-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 10px 13px; background: #edf6fb; border: 1px solid #c4dfed; border-radius: 8px; }
.pond-update-text { flex: 1 1 280px; margin: 0; color: #356980; font-size: 12px; line-height: 1.6; }
.pond-update-error { background: #fff5ef; border-color: #edcebf; }
.pond-update-error .pond-update-text { color: #8b4f36; }
.pond-source-manager, .pond-metadata-editor { padding: 12px 14px; background: #fff; border: 1px solid #dce5eb; border-radius: 9px; margin: 0 0 12px; font-size: 12px; }
.pond-source-manager > summary, .pond-metadata-editor > summary { font-size: 12px; font-weight: 600; }
.pond-source-form, .pond-metadata-form { margin-top: 15px; }
.pond-metadata-inputs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pond-metadata-inputs label, .pond-source-inputs label, .pond-notes-label { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #456c80; font-size: 11px; }
.pond-metadata-inputs input, .pond-source-inputs input, .pond-source-inputs select { width: 100%; min-height: 36px; font-size: 12px; }
.pond-notes-label { margin: 12px 0; }
.pond-notes-label textarea { width: 100%; min-height: 75px; padding: 8px 10px; border: 1px solid #bacdd7; border-radius: 6px; resize: vertical; color: #254d63; font: inherit; font-size: 12px; line-height: 1.6; }
.pond-checkbox-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #456c80; line-height: 1.6; }
.pond-checkbox-label input[type="checkbox"] { min-height: 0; width: 15px; height: 15px; margin: 0; accent-color: #1b607e; flex-shrink: 0; }
.pond-field-help { margin: 9px 0; color: #738693; font-size: 11px; line-height: 1.65; }
.pond-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pond-primary-button { background: #1b607e; color: #fff; border-color: #1b607e; }
.pond-primary-button:hover:not(:disabled) { background: #174f68; color: #fff; border-color: #174f68; }
.pond-form-message { color: #456c80; font-size: 11px; line-height: 1.6; margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pond-form-error { color: #a3482b; }
.pond-source-inputs { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(80px, .6fr); gap: 12px; margin-bottom: 12px; }
.pond-sheet-url-label { grid-column: 1; }
.pond-gids-label { grid-column: 1 / -1; }
.pond-source-list { margin-top: 16px; }
.pond-source-card { padding: 13px 0 0; border-top: 1px solid #e4edf1; margin-top: 13px; }
.pond-source-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pond-source-card-title a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
.pond-source-status { display: inline-block; padding: 3px 7px; border-radius: 5px; color: #617b8a; background: #f0f4f6; font-size: 10px; white-space: nowrap; }
.pond-source-status-ready, .pond-source-status-completed { color: #237456; background: #e5f4ed; }
.pond-source-status-error, .pond-source-status-failed { color: #a3482b; background: #fff2ed; }
.pond-source-status-syncing, .pond-source-status-queued { color: #17627a; background: #e8f4fa; }
.pond-source-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.pond-source-interval-label { display: flex; align-items: center; gap: 7px; color: #617b8a; font-size: 11px; }
.pond-source-interval { width: 68px; min-height: 32px; padding: 5px 7px; font-size: 11px; }
.pond-source-actions .pond-form-message { margin-top: 0; }
.pond-source-warnings { color: #8b6727; padding-left: 18px; font-size: 11px; line-height: 1.65; }
.pond-job-status { font-size: 11px; color: #456c80; line-height: 1.6; margin: 7px 0; }
.pond-tab-tasks { display: grid; gap: 8px; margin: 12px 0; }
.pond-tab-tasks-title { margin: 0; color: #395d70; font-size: 12px; font-weight: 650; }
.pond-tab-task { min-width: 0; padding: 9px 10px; border: 1px solid #e4edf1; border-radius: 8px; background: #fbfdfe; }
.pond-tab-task-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.pond-tab-task-heading strong { min-width: 0; overflow-wrap: anywhere; color: #2f4e5d; font-size: 11px; }
.pond-tab-task-date, .pond-tab-task-message { margin: 5px 0 0; color: #617b8a; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.pond-tab-task-failed { border-color: #f0d0c6; background: #fffaf8; }
.pond-tab-task-skipped { border-color: #e8e3d5; background: #fffdf8; }
.pond-tab-retry { margin-top: 6px; min-height: 30px; padding: 5px 9px; font-size: 11px; }
.pond-source-status-skipped { color: #8b6727; background: #fff7e7; }
.pond-source-status-waiting { color: #456c80; background: #edf4f7; }
@media (max-width: 1000px) {
  .pond-metadata-grid, .pond-metadata-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pond-metadata-grid, .pond-metadata-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pond-metadata-item { padding: 10px 12px; }
  .pond-metadata-item dd { font-size: 17px; }
  .pond-source-inputs { grid-template-columns: 1fr 1fr; }
  .pond-sheet-url-label { grid-column: 1 / -1; }
  .pond-source-manager, .pond-metadata-editor { padding: 11px; }
}
.pond-source-volume { color: #8b6727; background: #fffaee; border-left: 2px solid #e4c16f; padding: 8px 10px; margin: 10px 0; font-size: 11px; line-height: 1.65; }
.pond-source-status-running { color: #17627a; background: #e8f4fa; }
.pond-source-status-partial { color: #8b6727; background: #fff2dd; }
.pond-chart-time-label { display: flex; margin-top: 10px; }
.pond-sheet-preview { min-width: 0; }
.pond-preview-selection { color: #356980; font-size: 12px; line-height: 1.7; margin: 12px 0; }
.pond-preview-bulk { margin-bottom: 10px; }
.pond-tab-picker-title { color: #254d63; font-size: 12px; font-weight: 600; margin: 8px 0; }
.pond-tab-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 8px; }
.pond-tab-choice { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 10px; border: 1px solid #dce5eb; border-radius: 7px; background: #fbfdfe; cursor: pointer; }
.pond-tab-choice:hover { border-color: #8caebe; }
.pond-tab-choice:has(input:checked) { border-color: #1b607e; background: #eaf4f8; }
.pond-tab-choice:has(input:focus-visible) { outline: 2px solid #1b607e; outline-offset: 2px; }
.pond-tab-choice input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 1px 0 0; accent-color: #1b607e; flex-shrink: 0; }
.pond-tab-choice-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; line-height: 1.4; }
.pond-tab-choice-title { color: #254d63; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.pond-tab-choice-status { color: #617b8a; font-size: 10px; }
.pond-tab-choice-count { color: #738693; font-size: 10px; }
.pond-tab-choice[data-state="existing"] .pond-tab-choice-status { color: #237456; }
.pond-tab-choice[data-state="configure"] .pond-tab-choice-status { color: #9b5f20; }
.pond-tab-choice[data-state="excluded"] { opacity: .65; cursor: default; }
.pond-preview-warnings { margin: 10px 0; color: #8b6727; }
.pond-preview-warnings > summary { font-size: 11px; }
.pond-sheet-configurations { margin-top: 15px; }
.pond-preview-tab { min-width: 0; padding: 12px; border: 1px solid #dce5eb; border-radius: 7px; margin: 9px 0; background: #fbfdfe; }
.pond-preview-tab-label { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.pond-preview-tab-meta { display: block; margin: 8px 0 0; color: #738693; font-size: 11px; line-height: 1.6; }
.pond-preview-config { min-width: 0; }
.pond-preview-config > summary { color: #356980; font-size: 12px; padding: 4px 0; overflow-wrap: anywhere; }
.pond-tab-config-inputs, .pond-column-mappings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-top: 12px; }
.pond-tab-config-inputs label, .pond-column-mappings label { display: flex; flex-direction: column; min-width: 0; gap: 6px; color: #456c80; font-size: 11px; }
.pond-tab-config-inputs input, .pond-column-mappings select { width: 100%; min-width: 0; min-height: 34px; font-size: 11px; }
.pond-preview-table-scroll { overflow: auto; max-width: 100%; margin-top: 12px; border: 1px solid #dce5eb; border-radius: 5px; }
.pond-preview-table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: 11px; text-align: left; background: #fff; }
.pond-preview-table caption { padding: 9px; text-align: left; color: #617b8a; background: #f5f9fb; }
.pond-preview-table th, .pond-preview-table td { padding: 9px; vertical-align: top; border-top: 1px solid #e4edf1; border-right: 1px solid #e4edf1; line-height: 1.6; }
.pond-preview-table th { color: #456c80; font-weight: 600; background: #f3f8fa; white-space: nowrap; }
.pond-preview-table td { max-width: 170px; overflow-wrap: anywhere; }
.pond-preview-table a { color: #1b607e; }
@media (max-width: 700px) {
  .pond-tab-config-inputs, .pond-column-mappings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pond-tab-config-inputs label:last-child { grid-column: 1 / -1; }
  .pond-preview-tab { padding: 9px; }
}
