/* Basemap choices live in the Map tab; appearance follows the account controls. */
.dt-map-appearance-controls {
  display: none;
}
body.dt-map-shell .dt-map-appearance-controls {
  display: flex !important;
  align-items: center;
  gap: 6px;
  order: 3;
}
.dt-map-theme-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #fff;
  color: #33485e;
  box-shadow: 0 2px 8px #142b4933;
  cursor: pointer;
}
.dt-map-theme-button:hover {
  background: #eef7fc;
}
.dt-map-theme-button.is-active {
  background: #e9f5ff;
  color: #1686e6;
  border-color: #8fc6ef;
}
.dt-map-theme-button:focus-visible {
  outline: 2px solid #2388f8;
  outline-offset: 3px;
}
body.dt-map-shell .dt-map-theme-button svg {
  width: 20px;
  height: 20px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.dt-map-shell .dt-map-choices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 18px;
  min-height: 26px;
}
body.dt-map-shell .dropdown-panel[data-layer-tab]:not([data-layer-tab="Map"]) .dt-map-choices {
  display: none !important;
}
body.dt-map-shell .dropdown-panel[data-layer-tab] .el-checkbox-group {
  align-items: center;
  gap: 0 18px;
}
body.dt-map-shell .dropdown-panel[data-layer-tab] .el-checkbox {
  margin-right: 0;
}
body.dark-water-theme .dt-map-theme-button {
  background: #18364f;
  color: #d5eafb;
  border-color: #315b7d;
}
body.dark-water-theme .dt-map-theme-button.is-active {
  background: #244c6b;
  color: #8ed2ff;
  border-color: #5cadde;
}
/* Apply one palette to both sides of the border; operational overlays keep their colours. */
body.dark-water-theme .water-map-basemap,
body.dark-water-theme .outside-osm-basemap {
  filter: invert(0.84) sepia(0.55) saturate(2.7) hue-rotate(170deg) brightness(1.04) contrast(1.18);
}

body.dark-water-theme .ol-viewport {
  background: #14283b;
}

.dark-water-toggle[aria-pressed="true"] {
  background: #203c56 !important;
  border-color: #3989b9 !important;
  color: #fff !important;
}

/* The map's Dark choice also themes the dashboard. Keep all rules behind it. */
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) {
  --dt-ink: #f2f8ff;
  --dt-muted: #b2cce7;
  --dt-blue: #22a9ff;
  --dt-green: #86f45a;
  --dt-line: rgba(78, 146, 193, .46);
  --dt-glass: rgba(8, 31, 56, .73);
  --dt-inner: rgba(25, 66, 104, .54);
  --el-text-color-primary: #f2f8ff;
  --el-text-color-regular: #c5daf0;
  --el-text-color-secondary: #a9c6e3;
  --el-border-color: #315b7d;
  --el-fill-color-blank: #143450;
  --el-bg-color: #102c48;
  --el-color-primary: #22a9ff;
  color: var(--dt-ink);
}

body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .navbar,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .tags-view-container {
  background: #0b2742 !important;
  color: #e7f5ff !important;
  border-color: #295677 !important;
  box-shadow: 0 3px 16px rgba(0, 12, 31, .28) !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .navbar *,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .tags-view-container .tags-view-item:not(.active) {
  color: #c7e0f5 !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .tags-view-container .tags-view-item.active {
  color: #fff !important;
  background: #116bb1 !important;
  border-color: #2aa6ed !important;
}

/* Translucent navy panels and a brighter cyan edge mirror the reference. */
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .info-panel[data-v-ffe131f0] > .section-header,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .info-panel[data-v-ffe131f0] > .panel {
  background: linear-gradient(145deg, rgba(17, 55, 91, .8), rgba(6, 28, 53, .8)) !important;
  border-color: rgba(82, 184, 244, .7) !important;
  box-shadow: 0 16px 42px rgba(0, 10, 30, .48), 0 0 24px rgba(20, 156, 245, .17), inset 0 1px rgba(159, 221, 255, .24), inset 0 0 30px rgba(38, 132, 211, .08) !important;
  backdrop-filter: none;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .info-panel[data-v-ffe131f0] > .section-header {
  background: linear-gradient(180deg, rgba(28, 72, 110, .8), rgba(16, 51, 84, .72)) !important;
  box-shadow: inset 0 1px rgba(178, 229, 255, .3), 0 0 18px rgba(26, 156, 241, .12) !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .info-panel[data-v-ffe131f0] > .section-header .title,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .section-header,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .section-header .title {
  color: var(--dt-ink) !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .info-panel[data-v-ffe131f0] > .section-header svg,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .info-panel[data-v-ffe131f0] > .section-header i,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .weather-card .stat-icon .wi {
  color: var(--dt-blue) !important;
  filter: drop-shadow(0 0 6px rgba(39, 174, 255, .52));
}

body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .weather-card .location[data-v-fd3c2de9],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .weather-card .temp-sub[data-v-fd3c2de9],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .weather-card .stat-sub[data-v-fd3c2de9],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .weather-card .stat-label[data-v-fd3c2de9],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .card-head[data-v-ad8e9fc2],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .card-head[data-v-ad8e9fc2] .loc-name,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .level-unit[data-v-ad8e9fc2],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .discharge-unit[data-v-ad8e9fc2],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .lock-card .card-head[data-v-ee24aa7e],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .lock-card .row-label[data-v-ee24aa7e] {
  color: var(--dt-muted) !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .weather-card .temp-main[data-v-fd3c2de9],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .weather-card .stat-main[data-v-fd3c2de9],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .level-value[data-v-ad8e9fc2],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .discharge-value[data-v-ad8e9fc2],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .info-lock-card .title[data-v-ee24aa7e],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .lock-card .value[data-v-ee24aa7e] {
  color: #f7fbff !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .weather-card .stat[data-v-fd3c2de9],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .city-card[data-v-ad8e9fc2],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .lock-card[data-v-ee24aa7e] {
  background: linear-gradient(145deg, rgba(39, 94, 138, .8), rgba(11, 41, 75, .8)) !important;
  border: 1px solid rgba(91, 180, 237, .47) !important;
  box-shadow: inset 0 1px rgba(190, 233, 255, .24), inset 0 0 17px rgba(64, 166, 240, .08), 0 5px 16px rgba(0, 13, 36, .23), 0 0 11px rgba(31, 156, 244, .09) !important;
  backdrop-filter: none;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .weather-card .stat[data-v-fd3c2de9]:hover,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .city-card[data-v-ad8e9fc2]:hover,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .lock-card[data-v-ee24aa7e]:hover {
  border-color: rgba(124, 208, 255, .68) !important;
  box-shadow: inset 0 1px rgba(204, 240, 255, .35), 0 0 18px rgba(37, 166, 255, .2), 0 7px 18px rgba(0, 13, 36, .28) !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .weather-chart[data-v-fd3c2de9],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .lobith-chart-container[data-v-ad8e9fc2],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .chart-wrap[data-v-ee24aa7e] {
  background: rgba(7, 31, 57, .26) !important;
  border: 1px solid rgba(87, 164, 216, .27) !important;
}

body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-vessel-root,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-logistic-root,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-notice-root,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.bottom .el-card,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.bottom > div {
  color: var(--dt-ink) !important;
  background: var(--dt-glass) !important;
  border: 1px solid rgba(82, 184, 244, .64) !important;
  box-shadow: 0 14px 36px rgba(0, 10, 30, .4), 0 0 22px rgba(20, 156, 245, .14), inset 0 1px rgba(159, 221, 255, .2) !important;
  backdrop-filter: none;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .record-card,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .notice-card,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .vessel-card,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .gauge-card {
  color: #d4e8f9 !important;
  background: var(--dt-inner) !important;
  border-color: rgba(91, 180, 237, .42) !important;
  box-shadow: inset 0 1px rgba(190, 233, 255, .19), 0 4px 16px rgba(0, 13, 36, .22), 0 0 10px rgba(31, 156, 244, .07) !important;
  backdrop-filter: none;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .v-name,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .notice-title,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .place,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.bottom .info-content .value {
  color: #f2f8ff !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .notice-summary,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .notice-centre,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.bottom .info-content .label {
  color: #b2cce7 !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .time-main { color: var(--dt-blue) !important; }
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right[data-v-1ce38f36] { scrollbar-color: #3977a4 transparent; }
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .v-title,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .v-meta .k,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .gauge-title,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .date-small,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .cargo-small,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .empty-hint,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .summary-sep,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .notice-chevron,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .notice-type-meaning { color: #a9c6e3 !important; }
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .v-meta .row,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .v-meta .v,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .arrow,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .notice-expanded { color: #d1e7f8 !important; }
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .notice-expanded { border-color: #315b7d !important; }
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .raw-block,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .map-card { background: #12334f !important; color: #d1e7f8 !important; }

body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .map-card .btn-group .el-button,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.bottom .el-input__wrapper,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .el-select__wrapper,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .el-input__wrapper {
  color: #dceefe !important;
  background: #153a5b !important;
  border-color: #3d779f !important;
  box-shadow: 0 0 0 1px rgba(72, 145, 194, .55) inset !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .layer-switcher-wrapper .el-tabs__item { color: #b2cce7 !important; }
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .layer-switcher-wrapper .el-tabs__item.is-active { color: var(--dt-blue) !important; }
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .el-popper,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .el-select-dropdown { background: #143450 !important; color: #d7eafa !important; border-color: #315b7d !important; }
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .el-table {
  --el-table-bg-color: #102f4b;
  --el-table-tr-bg-color: #102f4b;
  --el-table-header-bg-color: #183e5f;
  --el-table-border-color: #315b7d;
  --el-table-row-hover-bg-color: #1c4c71;
  --el-table-text-color: #d3e8f9;
  --el-table-header-text-color: #edf7ff;
}

body.dark-water-theme .info-panel[data-v-53e610ab] {
  color: #eaf6ff !important;
  background: linear-gradient(145deg, rgba(17, 55, 91, .8), rgba(6, 28, 53, .8)) !important;
  border-color: rgba(82, 184, 244, .72) !important;
  box-shadow: 0 18px 48px rgba(0, 12, 31, .48), 0 0 25px rgba(20, 156, 245, .17), inset 0 1px rgba(159, 221, 255, .25) !important;
  backdrop-filter: none !important;
}
body.dark-water-theme .info-panel[data-v-53e610ab] .resize-handle {
  background: linear-gradient(90deg, #22618b, #3b9dd1, #22618b) !important;
}
body.dark-water-theme .info-panel[data-v-53e610ab] .el-button-group {
  background: #102f4c !important;
  border-color: #32698f !important;
}
body.dark-water-theme .info-panel[data-v-53e610ab] .el-button-group .el-button { color: #c4def2 !important; }
body.dark-water-theme .info-panel[data-v-53e610ab] .el-button-group .el-button--primary {
  color: white !important;
  background: #167fce !important;
}

/* Keep each right rail heading inside the same visual card as its content. */
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .section-header {
  box-sizing: border-box;
  width: 100%;
  min-height: 30px;
  margin: 0 !important;
  padding: 8px 12px 4px !important;
  background: var(--dt-glass) !important;
  border: 1px solid rgba(255, 255, 255, .95) !important;
  border-bottom: 0 !important;
  border-radius: 18px 18px 0 0;
  backdrop-filter: none;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .section-header .title {
  display: inline-block;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .info-vessel-root,
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .info-notice-root {
  box-sizing: border-box;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 10px 8px !important;
  background: var(--dt-glass) !important;
  border: 1px solid rgba(255, 255, 255, .95) !important;
  border-top: 0 !important;
  border-radius: 0 0 18px 18px !important;
  box-shadow: 0 12px 30px rgba(30, 91, 155, .16) !important;
  backdrop-filter: none;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .logistic-panel {
  box-sizing: border-box;
  width: 100%;
  margin: 7px 0 !important;
  padding: 8px 10px 9px !important;
  background: var(--dt-glass) !important;
  border: 1px solid rgba(255, 255, 255, .95) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(30, 91, 155, .16) !important;
  backdrop-filter: none;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .logistic-panel > .section-header {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 22px;
  margin: 0 0 5px !important;
  padding: 0 !important;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .logistic-panel > .section-header .title {
  margin: 0 !important;
  padding: 0 !important;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .logistic-panel > .info-logistic-root {
  box-sizing: border-box;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .logistic-panel + .section-header {
  margin-top: 0 !important;
}

body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .section-header,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .info-vessel-root,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .info-notice-root,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .logistic-panel {
  border-color: rgba(82, 184, 244, .66) !important;
  box-shadow: 0 14px 36px rgba(0, 10, 30, .42), 0 0 22px rgba(20, 156, 245, .14), inset 0 1px rgba(159, 221, 255, .22) !important;
  backdrop-filter: none;
}

/* Fit the full right rail above the status bar; scroll within each feature. */
body:has(.info-panel[data-v-ffe131f0]) .overlay.right.overlay[data-v-1ce38f36] {
  box-sizing: border-box;
  height: calc(100vh - 240px) !important;
  padding-bottom: 8px;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right[data-v-1ce38f36] .info-panel-c {
  height: 100% !important;
  min-height: 0;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .section-header {
  flex: 0 0 30px;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .info-vessel-root {
  flex: 0 1 183px;
  min-height: 95px;
  overflow-y: auto;
  overflow-x: hidden;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .logistic-panel {
  display: flex;
  flex: 1 1 190px;
  flex-direction: column;
  min-height: 95px;
  overflow: hidden;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .logistic-panel > .section-header {
  flex: 0 0 auto;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .logistic-panel > .info-logistic-root {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: auto !important;
  min-height: 0;
  overflow: hidden;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .record-list {
  flex: 1 1 auto;
  height: auto !important;
  min-height: 0;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .info-notice-root {
  display: flex;
  flex: 1 1 220px;
  flex-direction: column;
  min-height: 95px;
  overflow: hidden;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-notice-root > div {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
body:has(.info-panel[data-v-ffe131f0]) .overlay.right .notice-list {
  flex: 1 1 auto;
  height: auto !important;
  max-height: none !important;
  min-height: 0;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

/* One glass system across the navigation, map controls, both rails and status bar. */
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) {
  --dt-shell-glass: linear-gradient(145deg, rgba(17, 55, 91, .8), rgba(6, 28, 53, .8));
  --dt-card-glass: linear-gradient(145deg, rgba(39, 94, 138, .8), rgba(11, 41, 75, .8));
  --dt-glass-edge: rgba(82, 184, 244, .68);
  --dt-card-edge: rgba(91, 180, 237, .47);
  --dt-shell-glow: 0 16px 42px rgba(0, 10, 30, .48), 0 0 24px rgba(20, 156, 245, .17), inset 0 1px rgba(159, 221, 255, .24);
  --dt-card-glow: inset 0 1px rgba(190, 233, 255, .24), inset 0 0 17px rgba(64, 166, 240, .08), 0 5px 16px rgba(0, 13, 36, .23), 0 0 11px rgba(31, 156, 244, .09);
}

body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .info-panel[data-v-ffe131f0] > .section-header,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .info-panel[data-v-ffe131f0] > .panel,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .section-header,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .info-vessel-root,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .info-notice-root,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .info-panel-c > .el-card__body > .logistic-panel,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.bottom .el-card,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.bottom > div {
  background: var(--dt-shell-glass) !important;
  border-color: var(--dt-glass-edge) !important;
  box-shadow: var(--dt-shell-glow) !important;
  backdrop-filter: none !important;
}

body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .weather-card .stat[data-v-fd3c2de9],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .city-card[data-v-ad8e9fc2],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .lock-card[data-v-ee24aa7e],
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .record-card,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .notice-card,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .vessel-card,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .gauge-card {
  background: var(--dt-card-glass) !important;
  border-color: var(--dt-card-edge) !important;
  box-shadow: var(--dt-card-glow) !important;
  backdrop-filter: none !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .record-card:hover,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .notice-card:hover,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .vessel-card:hover,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .gauge-card:hover {
  border-color: rgba(124, 208, 255, .68) !important;
  box-shadow: inset 0 1px rgba(204, 240, 255, .35), 0 0 18px rgba(37, 166, 255, .2), 0 7px 18px rgba(0, 13, 36, .28) !important;
}

body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .sidebar-container {
  background: linear-gradient(180deg, rgba(11, 43, 76, .96), rgba(9, 35, 66, .91)) !important;
  border-right: 1px solid rgba(82, 184, 244, .42);
  box-shadow: 3px 0 24px rgba(0, 10, 30, .4), inset -1px 0 rgba(159, 221, 255, .13) !important;
  backdrop-filter: none;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .sidebar-container .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(32, 141, 221, .4), rgba(19, 91, 159, .24)) !important;
  box-shadow: inset 3px 0 #65c6ff, 0 0 15px rgba(29, 164, 255, .16) !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .navbar,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .tags-view-container {
  background: linear-gradient(180deg, rgba(14, 46, 77, .95), rgba(7, 31, 56, .9)) !important;
  border-color: rgba(82, 184, 244, .4) !important;
  box-shadow: 0 6px 18px rgba(0, 10, 30, .3), inset 0 1px rgba(159, 221, 255, .12) !important;
  backdrop-filter: none;
}
/* Close the five-pixel gap that exposes the light page background above the map. */
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .app-main .dashboard {
  top: 0 !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .tags-view-container {
  border-bottom: 0 !important;
  box-shadow: inset 0 1px rgba(159, 221, 255, .12) !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .tags-view-container .tags-view-item {
  color: #c7e0f5 !important;
  background: var(--dt-card-glass) !important;
  border-color: var(--dt-card-edge) !important;
  box-shadow: inset 0 1px rgba(190, 233, 255, .14) !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .tags-view-container .tags-view-item.active {
  background: linear-gradient(145deg, rgba(39, 145, 217, .62), rgba(16, 83, 152, .53)) !important;
  border-color: rgba(124, 208, 255, .78) !important;
  box-shadow: inset 0 1px rgba(204, 240, 255, .24), 0 0 14px rgba(37, 166, 255, .2) !important;
}

body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .layer-switcher-wrapper[data-v-1ce38f36] .el-card.is-always-shadow.layer-switcher .el-card__header,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .layer-switcher-wrapper .dropdown-panel[data-v-1ce38f36] {
  background: var(--dt-shell-glass) !important;
  border: 1px solid var(--dt-glass-edge) !important;
  box-shadow: var(--dt-shell-glow) !important;
  backdrop-filter: none !important;
  color: #e7f5ff !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .layer-switcher-wrapper[data-v-1ce38f36] .el-card.is-always-shadow.layer-switcher .el-tabs__item {
  background: var(--dt-card-glass) !important;
  color: #bad7ed !important;
  border: 1px solid var(--dt-card-edge) !important;
  box-shadow: inset 0 1px rgba(190, 233, 255, .18), 0 0 10px rgba(31, 156, 244, .08) !important;
  backdrop-filter: none;
}
/* Element Plus adds a pale frame around the entire tab row; each tab already has its own edge. */
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .layer-switcher-wrapper .el-tabs__nav,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .layer-switcher-wrapper .el-tabs__header {
  border: 0 !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .layer-switcher-wrapper[data-v-1ce38f36] .el-card.is-always-shadow.layer-switcher .el-tabs__item.is-active {
  color: #f2faff !important;
  border-color: rgba(124, 208, 255, .8) !important;
  box-shadow: inset 0 -2px #36b7ff, 0 0 15px rgba(37, 166, 255, .22) !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .layer-switcher-wrapper .dropdown-panel .el-checkbox__label {
  color: #d4e9fa !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .map-card .btn-group .el-button,
body.dark-water-theme .ol-control button {
  background: var(--dt-card-glass, rgba(18, 57, 91, .7)) !important;
  color: #e7f5ff !important;
  border: 1px solid var(--dt-card-edge, rgba(91, 180, 237, .47)) !important;
  box-shadow: var(--dt-card-glow, 0 0 12px rgba(31, 156, 244, .16)) !important;
  backdrop-filter: none;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .map-card .btn-group .dark-water-toggle[aria-pressed="true"] {
  background: linear-gradient(145deg, rgba(39, 145, 217, .68), rgba(16, 83, 152, .58)) !important;
  border-color: rgba(124, 208, 255, .82) !important;
  box-shadow: inset 0 1px rgba(204, 240, 255, .3), 0 0 17px rgba(37, 166, 255, .24) !important;
}

body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.bottom .el-input__wrapper,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .el-select__wrapper,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .el-input__wrapper,
body.dark-water-theme .info-panel[data-v-53e610ab] .el-button-group {
  background: var(--dt-card-glass, rgba(18, 57, 91, .7)) !important;
  border-color: var(--dt-card-edge, rgba(91, 180, 237, .47)) !important;
  box-shadow: inset 0 1px rgba(190, 233, 255, .18), 0 0 10px rgba(31, 156, 244, .08) !important;
  backdrop-filter: none;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .info-panel[data-v-53e610ab] {
  background: var(--dt-shell-glass) !important;
  border-color: var(--dt-glass-edge) !important;
  box-shadow: var(--dt-shell-glow) !important;
  backdrop-filter: none !important;
}
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .el-popper,
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .el-select-dropdown {
  background: var(--dt-shell-glass) !important;
  border-color: var(--dt-glass-edge) !important;
  box-shadow: var(--dt-shell-glow) !important;
  backdrop-filter: none;
}

/* Match the vessel preview basemap to the main dark water map. */
body.dark-water-theme:has(.info-panel[data-v-ffe131f0]) .overlay.right .map-card .ol-layer canvas {
  filter: grayscale(1) sepia(1) saturate(4) hue-rotate(160deg) brightness(.35) contrast(1.2);
}

/* Performance: no backdrop blur anywhere. Panels re-blurred every map frame made panning/zooming laggy.
   This also overrides the blurs baked into the app's own bundle CSS (light and dark themes). */
*, *::before, *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
/* Official waterway reference layers share the existing compact Map controls. */
.dt-fairway-loading { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: currentColor; opacity: .65; animation: dt-fairway-pulse 1s ease-in-out infinite alternate; }
.dt-crew-services { text-align: left; }
.layer-switcher-wrapper .el-tabs__nav { display: flex; width: 100% !important; }
body.dt-map-shell .map .layer-switcher-wrapper .el-card.layer-switcher .el-tabs__item { flex: 1 1 auto; min-width: max-content; padding: 0 6px !important; font-size: 12px !important; }
.layer-switcher-wrapper .el-tabs__item[id="tab-Crew Services"] { flex: 1.5 1 auto; }
@media (max-width: 620px) { body.dt-map-shell .map .layer-switcher-wrapper .el-card.layer-switcher .el-tabs__item { font-size: 11px !important; padding: 0 3px !important; } }
.dt-crew-service-options { display: flex; flex-wrap: wrap; gap: 3px 18px; }
.dt-crew-service-options .el-checkbox { margin-right: 0 !important; }
.dt-crew-service-options .el-checkbox__label { display: inline-flex; align-items: center; gap: 4px; }
.dt-crew-service-caption { margin-top: 3px; font: 10px/1.4 system-ui,sans-serif; color: #627b8c; }
body.dark-water-theme .dt-crew-service-caption { color: #a9c1d3; }
.dt-fairway-hint { display: inline-block; margin-left: 4px; color: #a76c15; font-weight: 700; }
@keyframes dt-fairway-pulse { to { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .dt-fairway-loading { animation: none; } }
.dt-fairway-attribution { position: absolute; top: 84px; right: 12px; z-index: 10; padding: 2px 4px; background: #ffffffe0; font: 10px Arial,sans-serif; color: #555; }
.dt-fairway-attribution[hidden] { display: none; }
.dt-fairway-attribution a { color: inherit; text-decoration: none; }
.dt-fairway-card { box-sizing: border-box; padding: 12px 14px; max-height: min(32dvh, 310px); overflow: auto; color: #294458; font: 12px/1.45 system-ui,sans-serif; text-align: left; }
.map-info-detail:has(> .dt-fairway-card) { display: flex; overflow: hidden; }
.map-info-detail > .dt-fairway-card { flex: 1; min-height: 0; }
body.dt-navigation-map .info-panel:has(.dt-fairway-card) { bottom: calc(var(--vs-height, 62px) + 20px) !important; }
body.dt-dashboard-map .info-panel:has(.dt-fairway-card) { bottom: 64px !important; }
.dt-fairway-card article + article { border-top: 1px solid #b7ced8; margin-top: 14px; padding-top: 10px; }
.dt-fairway-card h3 { margin: 0 0 3px; font-size: 14px; color: inherit; overflow-wrap: anywhere; }
.dt-fairway-kind { color: #647d8e; font-size: 11px; }
.dt-fairway-card dl { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1fr); gap: 5px 12px; margin: 12px 0; }
.dt-fairway-card dt { color: #647d8e; }
.dt-fairway-card dd { margin: 0; overflow-wrap: anywhere; }
.dt-fairway-note, .dt-fairway-source { margin: 10px 0 0; font-size: 11px; color: #647d8e; }
.dt-fairway-source a { color: #1687b4; }
body.dark-water-theme .dt-fairway-card { color: #dcebf5; }
body.dark-water-theme .dt-fairway-kind, body.dark-water-theme .dt-fairway-card dt, body.dark-water-theme .dt-fairway-note, body.dark-water-theme .dt-fairway-source { color: #a9c1d3; }
body.dark-water-theme .dt-fairway-source a { color: #7bc9ec; }
body.dark-water-theme .dt-fairway-attribution { color: #cee3ef; background: #163044e8; }
body.dark-water-theme .dt-fairway-hint { color: #efbb67; }
