:root {
  --fo-corridor-accent: #66c6d8;
  --fo-corridor-accent-soft: rgba(102, 198, 216, 0.14);
  --fo-corridor-good: #63c68a;
  --fo-corridor-watch: #e0ad55;
  --fo-corridor-stop: #ec6a69;
  --fo-corridor-info: #7890a4;
}

.weatherCorridorLauncher[hidden],
#weatherCorridorWorkspace[hidden] {
  display: none !important;
}

.weatherCorridorLauncher {
  gap: 10px;
  border-color: rgba(102, 198, 216, 0.22);
  background: linear-gradient(180deg, rgba(14, 30, 45, 0.98), rgba(8, 18, 29, 0.995));
}

.weatherCorridorLauncherCopy {
  display: grid;
  gap: 6px;
}

#weatherCorridorOpenBtn {
  width: 100%;
  min-height: 38px;
  border-color: rgba(102, 198, 216, 0.32);
  background: rgba(102, 198, 216, 0.11);
  color: #dff8fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#weatherCorridorOpenBtn:hover {
  border-color: rgba(102, 198, 216, 0.5);
  background: rgba(102, 198, 216, 0.17);
}

#sidebar .panelSection[data-panel="weather"].weatherCorridorMode .weatherHeroStats,
#sidebar .panelSection[data-panel="weather"].weatherCorridorMode .weatherWorkspacePrimary,
#sidebar .panelSection[data-panel="weather"].weatherCorridorMode .weatherWorkspaceUtilities {
  display: none !important;
}

#sidebar .panelSection[data-panel="weather"].weatherCorridorMode .weatherShell {
  grid-template-rows: 1fr;
  padding-top: 12px;
}

#sidebar .panelSection[data-panel="weather"].weatherCorridorMode .weatherWorkspace {
  min-height: 100%;
}

#weatherCorridorWorkspace {
  --corridor-rule: rgba(114, 143, 168, 0.2);
  --corridor-surface: rgba(9, 18, 30, 0.96);
  --corridor-surface-strong: rgba(6, 13, 23, 0.98);
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  gap: 0;
  width: 100%;
  min-height: calc(100vh - var(--auth-topbar-height, 64px) - 104px);
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--corridor-rule);
  border-radius: 10px;
  background: var(--corridor-surface-strong);
  box-shadow: 0 22px 60px rgba(0, 4, 10, 0.26);
  animation: weatherCorridorEnter 220ms cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

.weatherCorridorHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  padding: 11px 14px 10px 16px;
  border-bottom: 1px solid var(--corridor-rule);
  background: rgba(11, 22, 36, 0.96);
}

.weatherCorridorHeaderLead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.weatherCorridorBackBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 34px;
  padding-inline: 10px 12px;
  white-space: nowrap;
}

.weatherCorridorBackBtn span[aria-hidden="true"] {
  font-size: 15px;
  line-height: 1;
}

.weatherCorridorHeaderCopy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.weatherCorridorKicker {
  color: var(--fo-corridor-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.weatherCorridorHeader h3 {
  margin: 0;
  color: #f3f8fb;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 680;
  letter-spacing: -0.025em;
}

.weatherCorridorHeaderMeta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px 8px;
  flex-wrap: wrap;
  color: #8da5b9;
  font-size: 11px;
}

.weatherCorridorHeaderRouteIdentity {
  display: inline-flex;
  align-items: baseline;
  flex: 1 1 280px;
  min-width: 180px;
  max-width: 100%;
  gap: 4px;
}

.weatherCorridorHeaderVehicle,
.weatherCorridorHeaderPointCount {
  flex: 0 0 auto;
  white-space: nowrap;
}

.weatherCorridorHeaderMission {
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.weatherCorridorHeaderMissionHead {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weatherCorridorHeaderMissionTail {
  flex: 0 0 auto;
  white-space: nowrap;
}

.weatherCorridorHeaderSourceIdentity {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 5px;
  flex-wrap: wrap;
}

.weatherCorridorHeaderSourcePill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(126, 151, 173, 0.25);
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.56);
  color: #91a9bb;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.weatherCorridorHeaderSourcePill[data-source="waycast"] {
  border-color: rgba(102, 198, 216, 0.28);
  color: #9bd3dd;
}

.weatherCorridorHeaderSourcePill[data-state="excluded"] {
  border-style: dashed;
  color: var(--fo-corridor-watch);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.weatherCorridorHeaderActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.weatherCorridorStatePill,
.weatherCorridorSourceChip,
.weatherCorridorTonePill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--corridor-rule);
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.64);
  color: #9cb1c2;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weatherCorridorStatePill::before,
.weatherCorridorSourceChip::before,
.weatherCorridorTonePill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.85;
}

.weatherCorridorStatePill[data-state="loading"] {
  color: var(--fo-corridor-accent);
}

.weatherCorridorStatePill[data-state="ready"],
.weatherCorridorTonePill[data-tone="good"] {
  color: var(--fo-corridor-good);
}

.weatherCorridorStatePill[data-state="partial"],
.weatherCorridorStatePill[data-state="invalidated"],
.weatherCorridorTonePill[data-tone="watch"] {
  color: var(--fo-corridor-watch);
}

.weatherCorridorStatePill[data-state="failed"],
.weatherCorridorTonePill[data-tone="stop"] {
  color: var(--fo-corridor-stop);
}

.weatherCorridorTonePill[data-tone="info"] {
  color: var(--fo-corridor-info);
}

#weatherCorridorRecomputeBtn {
  min-height: 36px;
  padding: 8px 13px;
  border-color: rgba(102, 198, 216, 0.32);
  background: rgba(102, 198, 216, 0.14);
  color: #dff8fd;
  font-size: 11px;
}

#weatherCorridorBackBtn {
  min-height: 36px;
  padding: 8px 12px;
  border-color: rgba(126, 151, 173, 0.26);
  background: rgba(5, 12, 21, 0.62);
  color: #b8cad7;
  font-size: 11px;
}

#weatherCorridorBackBtn:hover {
  border-color: rgba(126, 151, 173, 0.44);
  color: #eef7fb;
}

#weatherCorridorRecomputeBtn:hover {
  background: rgba(102, 198, 216, 0.22);
}

.weatherCorridorCanvas {
  display: grid;
  grid-template-columns: minmax(236px, 0.72fr) minmax(520px, 2.1fr) minmax(252px, 0.82fr);
  min-height: 0;
}

.weatherCorridorControls,
.weatherCorridorInspector {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--corridor-surface);
}

.weatherCorridorControls {
  border-right: 1px solid var(--corridor-rule);
}

.weatherCorridorInspector {
  border-left: 1px solid var(--corridor-rule);
}

.weatherCorridorSheetControls {
  display: none;
}

.weatherCorridorRailScroll {
  display: grid;
  gap: 0;
  min-height: 0;
  padding-bottom: 18px;
  overflow: auto;
}

.weatherCorridorRailSection {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  border-bottom: 1px solid var(--corridor-rule);
}

.weatherCorridorRailHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #d7e5ec;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.weatherCorridorRailHeading span {
  color: #6f899e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.weatherCorridorField {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.weatherCorridorField > span,
.weatherCorridorField legend {
  padding: 0;
  color: #8099ae;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weatherCorridorField select,
.weatherCorridorField input {
  min-height: 37px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(112, 139, 164, 0.26);
  border-radius: 5px;
  outline: none;
  background: rgba(3, 10, 18, 0.78);
  color: #e4eef3;
  font-size: 11px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.weatherCorridorField input[type="datetime-local"] {
  color-scheme: dark;
}

.weatherCorridorField select:focus,
.weatherCorridorField input:focus {
  border-color: rgba(102, 198, 216, 0.64);
  box-shadow: 0 0 0 2px rgba(102, 198, 216, 0.1);
}

.weatherCorridorFieldset {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.weatherCorridorChoiceRow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.weatherCorridorChoiceRow.widths {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.weatherCorridorChoiceRow button {
  min-height: 32px;
  padding: 6px 7px;
  border: 1px solid rgba(112, 139, 164, 0.2);
  border-radius: 5px;
  background: rgba(4, 11, 19, 0.68);
  color: #849caf;
  box-shadow: none;
  font-size: 10px;
}

.weatherCorridorChoiceRow button:hover,
.weatherCorridorChoiceRow button.active {
  border-color: rgba(102, 198, 216, 0.36);
  background: rgba(102, 198, 216, 0.13);
  color: #d9f5fb;
}

.weatherCorridorRouteMeta,
.weatherCorridorInlineStatus,
.weatherCorridorCaveat {
  color: #849db1;
  font-size: 10px;
  line-height: 1.45;
}

.weatherCorridorRouteMeta strong,
.weatherCorridorInlineStatus strong,
.weatherCorridorCaveat strong {
  color: #d9e7ed;
}

.weatherCorridorUpload {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

#weatherCorridorUploadInput {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#weatherCorridorUploadBtn {
  min-height: 34px;
  border-color: rgba(102, 198, 216, 0.24);
  background: rgba(102, 198, 216, 0.075);
  color: #b9dce4;
  font-size: 10px;
}

.weatherCorridorInlineStatus {
  position: relative;
  min-height: 42px;
  padding: 10px 11px 10px 14px;
  overflow: hidden;
  border: 1px solid rgba(112, 139, 164, 0.19);
  border-radius: 5px;
  background: rgba(3, 10, 18, 0.58);
}

.weatherCorridorInlineStatus::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--fo-corridor-info);
  content: "";
}

.weatherCorridorInlineStatus[data-state="loading"]::before {
  background: var(--fo-corridor-accent);
}

.weatherCorridorInlineStatus[data-state="ready"]::before {
  background: var(--fo-corridor-good);
}

.weatherCorridorInlineStatus[data-state="partial"],
.weatherCorridorInlineStatus[data-state="invalidated"] {
  color: #c9ad79;
}

.weatherCorridorInlineStatus[data-state="partial"]::before,
.weatherCorridorInlineStatus[data-state="invalidated"]::before {
  background: var(--fo-corridor-watch);
}

.weatherCorridorInlineStatus[data-state="failed"] {
  color: #e0a1a0;
}

.weatherCorridorInlineStatus[data-state="failed"]::before {
  background: var(--fo-corridor-stop);
}

.weatherCorridorCaveat {
  padding: 10px 11px;
  border-left: 2px solid rgba(224, 173, 85, 0.54);
  background: rgba(224, 173, 85, 0.055);
}

.weatherCorridorPlot {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 0;
  background: #050b13;
}

.weatherCorridorMapFrame {
  position: relative;
  min-height: clamp(350px, 47vh, 560px);
  overflow: hidden;
  border-bottom: 1px solid var(--corridor-rule);
  background: #07101a;
}

#weatherCorridorMap {
  position: absolute;
  inset: 0;
}

#weatherCorridorMap .maplibregl-canvas {
  outline: none;
}

#weatherCorridorMap .maplibregl-ctrl-attrib {
  opacity: 0.52;
}

.weatherCorridorMapScrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.44), transparent 26%, transparent 68%, rgba(4, 10, 18, 0.72));
}

.weatherCorridorMapTopline {
  position: absolute;
  top: 11px;
  right: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.weatherCorridorMapTitle {
  display: grid;
  gap: 2px;
  max-width: 62%;
  padding: 8px 10px;
  border: 1px solid rgba(125, 153, 176, 0.2);
  border-radius: 5px;
  background: rgba(4, 11, 19, 0.82);
  backdrop-filter: blur(10px);
}

.weatherCorridorMapTitle strong {
  overflow: hidden;
  color: #edf6f9;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weatherCorridorMapTitle span {
  color: #8ca4b7;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.weatherCorridorMapStats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.weatherCorridorMapStat {
  display: grid;
  min-width: 64px;
  gap: 1px;
  padding: 7px 8px;
  border: 1px solid rgba(125, 153, 176, 0.18);
  border-radius: 5px;
  background: rgba(4, 11, 19, 0.82);
  backdrop-filter: blur(10px);
  text-align: right;
}

.weatherCorridorMapStat span {
  color: #6f8ba1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.weatherCorridorMapStat strong {
  color: #e8f2f5;
  font-size: 11px;
}

.weatherCorridorMapLegend {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 6px 8px;
  border: 1px solid rgba(125, 153, 176, 0.18);
  border-radius: 5px;
  background: rgba(4, 11, 19, 0.82);
  color: #8ba2b4;
  font-size: 8px;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.weatherCorridorMapLegend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.weatherCorridorMapLegend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--fo-corridor-info);
}

.weatherCorridorMapLegend i.good { background: var(--fo-corridor-good); }
.weatherCorridorMapLegend i.watch { background: var(--fo-corridor-watch); }
.weatherCorridorMapLegend i.stop { background: var(--fo-corridor-stop); }
.weatherCorridorMapLegend i.nodata {
  background: repeating-linear-gradient(135deg, #718596 0 2px, transparent 2px 4px);
}

.weatherCorridorMapLegend em {
  color: #668096;
  font-style: normal;
  white-space: nowrap;
}

.weatherCorridorMapMarker {
  display: grid;
  min-width: 38px;
  gap: 0;
  padding: 3px 5px;
  border: 1px solid rgba(222, 235, 241, 0.34);
  border-radius: 4px;
  background: rgba(4, 11, 19, 0.9);
  box-shadow: 0 4px 14px rgba(0, 4, 9, 0.42);
  color: var(--fo-corridor-info);
  line-height: 1;
  text-align: center;
}

.weatherCorridorMapMarker[data-tone="good"] { color: var(--fo-corridor-good); }
.weatherCorridorMapMarker[data-tone="watch"] { color: var(--fo-corridor-watch); }
.weatherCorridorMapMarker[data-tone="stop"] { color: var(--fo-corridor-stop); }

.weatherCorridorMapMarker strong { font-size: 9px; }
.weatherCorridorMapMarker span { color: #b6c7d1; font-size: 7px; }
.weatherCorridorMapMarker.active {
  border-color: currentColor;
  transform: translateY(-2px);
}

.weatherCorridorMapEmpty {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: min(82%, 420px);
  gap: 5px;
  padding: 18px;
  transform: translate(-50%, -50%);
  color: #839bad;
  text-align: center;
  pointer-events: none;
}

.weatherCorridorMapEmpty strong {
  color: #dae7ec;
  font-size: 15px;
}

.weatherCorridorMapEmpty[hidden] {
  display: none;
}

.weatherCorridorProgress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: 2px;
  overflow: hidden;
  background: rgba(102, 198, 216, 0.08);
  opacity: 0;
  transition: opacity 120ms ease;
}

#weatherCorridorWorkspace[data-state="loading"] .weatherCorridorProgress {
  opacity: 1;
}

.weatherCorridorProgress::after {
  display: block;
  width: 32%;
  height: 100%;
  background: var(--fo-corridor-accent);
  box-shadow: 0 0 16px rgba(102, 198, 216, 0.7);
  content: "";
  animation: weatherCorridorScan 1.2s ease-in-out infinite;
}

.weatherCorridorResultSurface {
  min-width: 0;
  transition: opacity 160ms ease, filter 160ms ease;
}

#weatherCorridorWorkspace[data-state="invalidated"] .weatherCorridorResultSurface,
#weatherCorridorWorkspace[data-state="failed"][data-has-result="true"] .weatherCorridorResultSurface {
  opacity: 0.46;
  filter: saturate(0.66);
}

.weatherCorridorSegmentRibbon {
  display: flex;
  gap: 3px;
  min-height: 46px;
  padding: 8px 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--corridor-rule);
  background: rgba(7, 15, 25, 0.98);
}

.weatherCorridorSegmentButton {
  position: relative;
  display: grid;
  min-width: 74px;
  min-height: 30px;
  padding: 5px 8px 5px 11px;
  border: 1px solid rgba(113, 141, 165, 0.17);
  border-radius: 4px;
  background: rgba(12, 23, 36, 0.88);
  box-shadow: none;
  color: #8ea5b7;
  text-align: left;
}

.weatherCorridorSegmentButton::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--segment-color, var(--fo-corridor-info));
  content: "";
}

.weatherCorridorSegmentButton:hover,
.weatherCorridorSegmentButton.active {
  border-color: color-mix(in srgb, var(--segment-color, var(--fo-corridor-info)) 52%, transparent);
  background: rgba(18, 32, 48, 0.98);
  color: #edf5f8;
}

.weatherCorridorSegmentButton strong {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weatherCorridorSegmentButton span {
  font-size: 9px;
}

.weatherCorridorTableSection {
  min-width: 0;
  padding: 12px 12px 18px;
  background: rgba(7, 15, 25, 0.98);
}

.weatherCorridorTableHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.weatherCorridorTableHeader strong {
  color: #dce8ed;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weatherCorridorTableHeader span {
  color: #70899e;
  font-size: 9px;
}

.weatherCorridorTableScroller {
  max-height: 300px;
  overflow: auto;
  border-top: 1px solid var(--corridor-rule);
  border-bottom: 1px solid var(--corridor-rule);
}

.weatherCorridorTable {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  color: #cbd9e1;
  font-size: 10px;
}

.weatherCorridorTable th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 7px;
  border-bottom: 1px solid rgba(116, 145, 168, 0.24);
  background: #091420;
  color: #708ba1;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.weatherCorridorTable td {
  padding: 8px 7px;
  border-bottom: 1px solid rgba(111, 140, 163, 0.1);
  vertical-align: top;
}

.weatherCorridorTable tr {
  cursor: pointer;
  transition: background 120ms ease;
}

.weatherCorridorTable tbody tr:hover,
.weatherCorridorTable tbody tr.active {
  background: rgba(102, 198, 216, 0.07);
}

.weatherCorridorTableSegment {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.weatherCorridorTableSegment::before {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--segment-color, var(--fo-corridor-info));
  content: "";
}

.weatherCorridorValue {
  display: grid;
  gap: 1px;
  white-space: nowrap;
}

.weatherCorridorValue strong {
  color: #e1ebef;
  font-size: 10px;
  font-weight: 720;
}

.weatherCorridorValue span {
  color: #6f889c;
  font-size: 8px;
}

.weatherCorridorValue span.waycast {
  color: #82bdc9;
}

.weatherCorridorValue span i {
  display: inline-flex;
  margin-right: 3px;
  padding: 1px 3px;
  border: 1px solid rgba(119, 149, 171, 0.2);
  border-radius: 3px;
  color: #8fa7b9;
  font-size: 7px;
  font-style: normal;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.weatherCorridorValue span.waycast i {
  border-color: rgba(102, 198, 216, 0.3);
  color: #92d3df;
}

.weatherCorridorWorstTiles {
  display: grid;
  gap: 7px;
}

.weatherCorridorWorstGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.weatherCorridorWorstTile {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(111, 140, 163, 0.16);
  border-left: 2px solid var(--fo-corridor-info);
  border-radius: 5px;
  background: rgba(3, 10, 18, 0.52);
  box-shadow: none;
  color: #dbe7ec;
  text-align: left;
}

.weatherCorridorWorstTile[data-tone="good"] { border-left-color: var(--fo-corridor-good); }
.weatherCorridorWorstTile[data-tone="watch"] { border-left-color: var(--fo-corridor-watch); }
.weatherCorridorWorstTile[data-tone="stop"] { border-left-color: var(--fo-corridor-stop); }
.weatherCorridorWorstTile:hover { background: rgba(17, 31, 46, 0.8); }
.weatherCorridorWorstTile span {
  overflow: hidden;
  color: #718ca1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.weatherCorridorWorstTile strong { font-size: 10px; }
.weatherCorridorWorstTile small { color: #6f899e; font-size: 8px; }

.weatherCorridorNoDataFamilies {
  display: grid;
  gap: 2px;
  color: #6f899d;
  font-size: 9px;
}
.weatherCorridorNoDataFamilies strong { color: #93a9ba; font-size: 9px; }

.weatherCorridorFirstHazard,
.weatherCorridorCompareToggle {
  align-self: start;
  min-height: 34px;
  border-color: rgba(224, 173, 85, 0.28);
  background: rgba(224, 173, 85, 0.07);
  box-shadow: none;
  color: #e7c88f;
  font-size: 9px;
  text-align: left;
}

.weatherCorridorCompareToggle {
  border-color: rgba(102, 198, 216, 0.26);
  background: rgba(102, 198, 216, 0.06);
  color: #9bd3dd;
}

.weatherCorridorFirstHazard[hidden],
.weatherCorridorCompareToggle[hidden] { display: none !important; }

.weatherCorridorCompleteness {
  color: #7892a6;
  font-size: 9px;
  line-height: 1.45;
}

.weatherCorridorDepartureScan {
  display: grid;
  gap: 7px;
  color: #738da1;
  font-size: 9px;
}

.weatherCorridorDepartureChoices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.weatherCorridorDepartureChoices button {
  display: grid;
  min-width: 0;
  gap: 2px;
  min-height: 50px;
  padding: 6px;
  border: 1px solid rgba(111, 140, 163, 0.16);
  border-bottom: 2px solid var(--fo-corridor-info);
  border-radius: 5px;
  background: rgba(3, 10, 18, 0.52);
  box-shadow: none;
  color: #d9e6eb;
  text-align: left;
}
.weatherCorridorDepartureChoices button[data-tone="good"] { border-bottom-color: var(--fo-corridor-good); }
.weatherCorridorDepartureChoices button[data-tone="watch"] { border-bottom-color: var(--fo-corridor-watch); }
.weatherCorridorDepartureChoices button[data-tone="stop"] { border-bottom-color: var(--fo-corridor-stop); }
.weatherCorridorDepartureChoices span,
.weatherCorridorDepartureChoices small { color: #748da0; font-size: 8px; }
.weatherCorridorDepartureChoices strong { font-size: 9px; }

.weatherCorridorInspectorEmpty {
  display: grid;
  gap: 6px;
  padding: 20px 14px;
  color: #7890a4;
  font-size: 11px;
  line-height: 1.45;
}

.weatherCorridorInspectorEmpty strong {
  color: #d8e5ea;
}

.weatherCorridorInspectorTitle {
  display: grid;
  gap: 3px;
}

.weatherCorridorInspectorTitle strong {
  color: #edf5f8;
  font-size: 15px;
}

.weatherCorridorInspectorTitle span {
  color: #7d96a9;
  font-size: 10px;
}

.weatherCorridorConditionList,
.weatherCorridorProvenanceList,
.weatherCorridorAdvisoryList {
  display: grid;
  gap: 0;
}

.weatherCorridorConditionRow,
.weatherCorridorProvenanceRow,
.weatherCorridorAdvisoryRow {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(111, 140, 163, 0.12);
}

.weatherCorridorConditionHead,
.weatherCorridorProvenanceHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.weatherCorridorConditionHead strong,
.weatherCorridorProvenanceHead strong,
.weatherCorridorAdvisoryRow strong {
  color: #cfdce3;
  font-size: 10px;
}

.weatherCorridorConditionHead span,
.weatherCorridorProvenanceHead span,
.weatherCorridorAdvisoryRow span {
  color: #7892a6;
  font-size: 9px;
}

.weatherCorridorConditionSources {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.weatherCorridorConditionSources.hasWaycast {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weatherCorridorConditionSource {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 6px 7px;
  border: 1px solid rgba(111, 140, 163, 0.14);
  border-radius: 4px;
  background: rgba(3, 10, 18, 0.48);
}

.weatherCorridorConditionSource small {
  color: #6c869a;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weatherCorridorConditionSource b {
  overflow: hidden;
  color: #dce8ed;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weatherCorridorConditionSource.waycast b {
  color: #9bd3dd;
}

.weatherCorridorConditionSource.empty {
  opacity: 0.48;
}

.weatherCorridorSourceStrip {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 5px;
  flex-wrap: wrap;
}

.weatherCorridorSourceChip[data-state="active"] {
  color: var(--fo-corridor-good);
}

.weatherCorridorSourceChip[data-state="fallback"],
.weatherCorridorSourceChip[data-state="stale"] {
  color: var(--fo-corridor-watch);
}

.weatherCorridorSourceChip[data-state="excluded"] {
  border-style: dashed;
  color: var(--fo-corridor-watch);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.weatherCorridorSourceChip[data-state="failed"] {
  color: var(--fo-corridor-stop);
}

.weatherCorridorFooter {
  padding: 10px 14px;
  border-top: 1px solid var(--corridor-rule);
  background: rgba(5, 12, 21, 0.98);
  color: #70899e;
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
}

@keyframes weatherCorridorEnter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes weatherCorridorScan {
  from { transform: translateX(-110%); }
  to { transform: translateX(420%); }
}

@media (max-width: 1320px) {
  .weatherCorridorHeader {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }

  .weatherCorridorHeaderActions {
    justify-content: flex-start;
  }

  .weatherCorridorCanvas {
    grid-template-columns: minmax(220px, 0.7fr) minmax(480px, 2fr);
  }

  .weatherCorridorInspector {
    grid-column: 1 / -1;
    border-top: 1px solid var(--corridor-rule);
    border-left: 0;
  }

  .weatherCorridorInspector .weatherCorridorRailScroll {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .weatherCorridorInspector .weatherCorridorRailSection {
    border-right: 1px solid var(--corridor-rule);
  }

  .weatherCorridorTable {
    min-width: 820px;
  }

  .weatherCorridorTable th:nth-child(10),
  .weatherCorridorTable td:nth-child(10) {
    display: none;
  }
}

@media (max-width: 940px) {
  .weatherCorridorHeaderActions,
  #weatherCorridorRecomputeBtn {
    width: 100%;
  }

  .weatherCorridorHeaderActions {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .weatherCorridorStatePill {
    justify-self: start;
    width: auto;
  }

  .weatherCorridorCanvas {
    grid-template-columns: 1fr;
  }

  .weatherCorridorControls,
  .weatherCorridorInspector {
    border: 0;
    border-bottom: 1px solid var(--corridor-rule);
  }

  .weatherCorridorControls .weatherCorridorRailScroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weatherCorridorInspector .weatherCorridorRailScroll {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .weatherCorridorControls .weatherCorridorRailSection {
    border-right: 1px solid var(--corridor-rule);
  }

  .weatherCorridorPlot {
    grid-row: 1;
  }

  .weatherCorridorControls {
    grid-row: 2;
  }

  .weatherCorridorInspector {
    grid-row: 3;
    position: sticky;
    bottom: 0;
    z-index: 32;
    max-height: 50vh;
    overflow: hidden;
    border-top: 1px solid rgba(102, 198, 216, 0.3);
    box-shadow: 0 -18px 50px rgba(0, 4, 10, 0.48);
    transition: max-height 180ms ease;
  }

  #weatherCorridorWorkspace[data-sheet-detent="peek"] .weatherCorridorInspector { max-height: 150px; }
  #weatherCorridorWorkspace[data-sheet-detent="half"] .weatherCorridorInspector { max-height: 50vh; }
  #weatherCorridorWorkspace[data-sheet-detent="full"] .weatherCorridorInspector { max-height: 82vh; }

  .weatherCorridorSheetControls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--corridor-rule);
    background: rgba(8, 17, 28, 0.99);
  }

  .weatherCorridorSheetControls strong {
    color: #dce9ee;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .weatherCorridorSheetControls > div { display: flex; gap: 4px; }
  .weatherCorridorSheetControls button {
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid rgba(112, 139, 164, 0.22);
    border-radius: 5px;
    background: rgba(3, 10, 18, 0.72);
    box-shadow: none;
    color: #829caf;
    font-size: 9px;
  }
  .weatherCorridorSheetControls button[aria-pressed="true"] {
    border-color: rgba(102, 198, 216, 0.42);
    color: #d8f4fa;
  }

  .weatherCorridorChoiceRow button,
  .weatherCorridorField select,
  .weatherCorridorField input,
  .weatherCorridorSegmentButton {
    min-height: 40px;
  }

  .weatherCorridorMapFrame {
    min-height: 390px;
  }

  .weatherCorridorTable {
    min-width: 700px;
  }
}

@media (max-width: 640px) {
  .weatherCorridorHeaderLead {
    align-items: flex-start;
    flex-direction: column;
  }

  .weatherCorridorHeaderMeta {
    display: none;
  }

  .weatherCorridorControls .weatherCorridorRailScroll,
  .weatherCorridorInspector .weatherCorridorRailScroll {
    grid-template-columns: 1fr;
  }

  .weatherCorridorMapTopline {
    align-items: stretch;
    flex-direction: column;
  }

  .weatherCorridorMapTitle {
    max-width: none;
  }

  .weatherCorridorMapStats {
    justify-content: flex-start;
  }

  .weatherCorridorMapStat {
    text-align: left;
  }

  .weatherCorridorMapLegend {
    right: 8px;
    bottom: 8px;
    left: 8px;
    gap: 6px;
    overflow: hidden;
  }

  .weatherCorridorMapLegend em {
    display: none;
  }

  .weatherCorridorTable {
    min-width: 560px;
  }

  .weatherCorridorTable th:nth-child(6),
  .weatherCorridorTable td:nth-child(6),
  .weatherCorridorTable th:nth-child(9),
  .weatherCorridorTable td:nth-child(9) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #weatherCorridorWorkspace,
  .weatherCorridorProgress::after,
  .weatherCorridorResultSurface {
    animation: none !important;
    transition: none !important;
  }
}
