.portal-home .portal-globe-sidebar .globe-stage {
  background:
    radial-gradient(circle at 16% 19%, #c3e4ff70 .5px, transparent 1.2px),
    radial-gradient(circle at 85% 25%, #9dd8ff66 .5px, transparent 1.2px),
    radial-gradient(circle at 14% 64%, #c3e4ff65 .5px, transparent 1.2px),
    radial-gradient(circle at 91% 70%, #9dd8ff6b .6px, transparent 1.3px),
    radial-gradient(ellipse at 50% 46%, #193e58, #0b192d 62%, #070f1d 90%);
  border-color: #608db16b;
  box-shadow: inset 0 0 24px #02071090;
  touch-action: pan-y;
}
.portal-home .portal-globe-sidebar .globe-overlay {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  pointer-events: none;
}
.portal-home .portal-globe-sidebar .globe-overlay span {
  color: #d3e7f7;
  background: #081522eb;
  border-color: #799ebf54;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0;
}
.portal-home .portal-globe-sidebar .globe-weather {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
}
.globe-weather-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  flex-wrap: wrap;
  padding: 8px 9px;
  border-bottom: 1px solid var(--border);
}
.globe-weather-heading h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text-primary);
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.2;
}
.globe-weather-heading h3 i { color: var(--accent); }
.globe-weather-heading > span {
  color: var(--text-secondary);
  font-size: 10px;
}
.globe-weather-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.globe-weather-table :is(th, td) {
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  padding: 5px 5px 5px 7px;
  line-height: 1.2;
}
.globe-weather-table thead th {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
}
.globe-weather-table thead th small { display: inline; }
.globe-weather-table small,
.globe-weather-table time {
  display: block;
  color: var(--text-secondary);
  font: 500 10px/1.22 "JetBrains Mono", monospace;
}
.globe-weather-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.globe-weather-table tbody th { padding-left: 9px; }
.globe-weather-table tbody th strong,
.globe-weather-value {
  display: inline-block;
  margin-bottom: 2px;
  font: 700 12px/1.2 "JetBrains Mono", monospace;
}
.globe-weather-table th[data-ship="OD"] strong { color: #e68a66; }
.globe-weather-table th[data-ship="OF"] strong { color: #45cea3; }
.globe-weather-table th[data-ship="OX"] strong { color: #64c9f1; }
.globe-weather-table .weather-elevated th i {
  margin-left: 4px;
  color: var(--warning);
  font-size: 10px;
}
.globe-weather-table .globe-weather-missing { color: var(--text-secondary); }
.globe-weather-table .globe-weather-loading {
  padding: 9px;
  color: var(--text-secondary);
  font-size: 11px;
}
.globe-weather[data-mode="wind"] [data-weather="wind"],
.globe-weather[data-mode="waves"] [data-weather="waves"],
.globe-weather[data-mode="current"] [data-weather="current"] {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.globe-weather[data-mode="wind"] th[data-weather="wind"],
.globe-weather[data-mode="waves"] th[data-weather="waves"],
.globe-weather[data-mode="current"] th[data-weather="current"] {
  color: var(--accent);
}
.portal-home .globe-details .globe-source a { color: var(--accent); }

.portal-home .portal-globe-sidebar .globe-scale-labels {
  position: relative;
  display: block;
  height: 12px;
}
.portal-home .portal-globe-sidebar .globe-scale-labels span {
  position: absolute;
  top: 0;
  left: var(--scale-stop, 0);
  transform: translateX(-50%);
}
.portal-home .portal-globe-sidebar .globe-scale-labels span:first-child { transform: none; }
.portal-home .portal-globe-sidebar .globe-scale-labels span:last-child { transform: translateX(-100%); }
.portal-home .portal-globe-sidebar .globe-weather-table thead th {
  font-size: 10px !important;
  white-space: nowrap;
}
.portal-home .portal-globe-sidebar .globe-weather-table thead th small { font-size: 9px !important; }
@media (max-width: 390px) {
  .globe-weather-table :is(th, td) { padding-left: 5px; padding-right: 3px; }
}

html.environment-view .portal-home .portal-globe-sidebar .globe-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(275px, 325px);
}
html.environment-view .globe-info-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
}
html.environment-view .portal-home .portal-globe-sidebar .globe-weather {
  order: -1;
  flex: none;
  margin: 0 0 10px;
}
@media (max-width: 700px) {
  html.environment-view .portal-home .portal-globe-sidebar .globe-panel { overflow-y: auto; }
  html.environment-view .portal-home .portal-globe-sidebar .globe-workspace { display: block; flex: none; }
  html.environment-view .portal-home .portal-globe-sidebar .globe-stage { height: clamp(240px, 64vw, 420px); }
  html.environment-view .globe-info-column { overflow: visible; margin-top: 10px; }
}

:is([data-theme="paper"], [data-theme="harbor-light"], [data-theme="frost"]) .globe-weather-table th[data-ship="OD"] strong { color: #963c20; }
:is([data-theme="paper"], [data-theme="harbor-light"], [data-theme="frost"]) .globe-weather-table th[data-ship="OF"] strong { color: #146852; }
:is([data-theme="paper"], [data-theme="harbor-light"], [data-theme="frost"]) .globe-weather-table th[data-ship="OX"] strong { color: #145a88; }
:is([data-theme="paper"], [data-theme="harbor-light"], [data-theme="frost"]) .portal-globe-sidebar .globe-controls {
  background: var(--bg-input);
  border-color: var(--border);
}
:is([data-theme="paper"], [data-theme="harbor-light"], [data-theme="frost"]) .portal-globe-sidebar .globe-toggle {
  color: var(--text-secondary);
  background: transparent;
}
:is([data-theme="paper"], [data-theme="harbor-light"], [data-theme="frost"]) .portal-globe-sidebar .globe-toggle.active {
  color: #124e70;
  background: #d8eaf5;
  border-color: #558eab;
  box-shadow: none;
}
:is([data-theme="paper"], [data-theme="harbor-light"], [data-theme="frost"]) .portal-globe-sidebar .globe-toggle[data-globe-mode="waves"].active {
  color: #126153;
  background: #d9f1e8;
  border-color: #57a08f;
}
:is([data-theme="paper"], [data-theme="harbor-light"], [data-theme="frost"]) .portal-globe-sidebar .globe-toggle[data-globe-mode="current"].active {
  color: #573786;
  background: #ede4fb;
  border-color: #9879bf;
}

.globe-wind-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 0 0 6px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.35;
}
.globe-wind-guide[hidden],
.globe-wind-reading[hidden] { display: none; }

.globe-wind-reading {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 6;
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid #608db1;
  border-left: 3px solid #80d9ff;
  border-radius: 7px;
  color: #f2faff;
  background: #081522f5;
  pointer-events: none;
}
.globe-wind-reading > span,
.globe-wind-reading > small {
  color: #c8def0;
  font-size: 10px !important;
  line-height: 1.2;
}
.globe-wind-reading > strong {
  font: 700 16px/1.15 "JetBrains Mono", monospace !important;
}

.globe-wind-guide > strong {
  font-size: 10px !important;
  white-space: nowrap;
}
.globe-wind-band {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.globe-wind-band::before {
  content: "";
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--trail-color);
  box-shadow: 0 0 0 1px #10273c70;
}
