.flow-tour-bar .tour-heading,
.flow-tour-bar .journey-steps,
.flow-tour-bar .tour-footer {
  display: none;
}
.bottom-dashboard .flow-tour-bar {
  padding: 14px 18px 12px;
  min-width: 0;
}
#world-flow-console {
  width: 100%;
  text-align: left;
}
.flow-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.flow-caption > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 650;
  color: #bcb0da;
}
.flow-caption i {
  width: 5px;
  height: 5px;
  background: #58d5b6;
  border-radius: 50%;
  box-shadow: 0 0 9px #41c7ad66;
}
.flow-caption button {
  background: #56308645;
  border: 1px solid #9e68df4a;
  color: #d4b5ff;
  padding: 3px 9px;
  border-radius: 4px;
  font:
    600 10px ui-monospace,
    monospace;
}
.flow-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.flow-stages button {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 3px 4px;
  align-items: center;
  text-align: left;
  background: transparent;
  color: #ccd8df;
  padding: 6px 7px;
  border: 1px solid #8097b119;
  border-radius: 6px;
  transition: background 0.2s;
}
.flow-stages button:hover {
  background: #6d28d922;
  border-color: #ac79e44a;
}
.flow-stages small {
  color: #9e83c4;
  font:
    9px ui-monospace,
    monospace;
}
.flow-stages span {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flow-stages b {
  grid-column: 2;
  font:
    600 20px ui-monospace,
    monospace;
  color: #edf1f8;
}
.flow-stages em {
  font-style: normal;
  position: absolute;
  right: -9px;
  top: 21px;
  color: #655b86;
  z-index: 1;
  font-size: 11px;
}
.flow-technologies {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #b3bfd51a;
}
.flow-technologies > span {
  font-size: 9px;
  color: #708493;
  margin-right: auto;
}
.flow-technologies button {
  background: transparent;
  color: #89a4af;
  font-size: 9px;
  padding: 5px 8px;
  border: 1px solid #61969524;
  border-radius: 4px;
  white-space: nowrap;
}
.flow-technologies button[aria-pressed='true'] {
  background: #1ba6a621;
  border-color: #3bc4b75c;
  color: #9ce9d8;
}
.flow-explanation {
  font-size: 10px !important;
  color: #96a9b4 !important;
  line-height: 1.45 !important;
  margin: 9px 0 0 !important;
  max-width: 100% !important;
  min-height: 15px;
}
#world-flow-console.is-paused .flow-caption i {
  background: #fbbf24;
  box-shadow: none;
}
.area-navigation {
  bottom: 225px;
}
.map-help {
  bottom: 273px;
}
#overview-panel > #start-tour {
  margin-top: 17px;
  min-height: 34px;
  font-size: 10px;
  width: 100%;
  justify-content: space-between;
}
.flow-operations-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 25px 0 16px;
}
.flow-operations-heading > div > span {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #29b9b3;
}
.flow-operations-heading h3 {
  font-size: 17px;
  margin: 7px 0 0;
  color: #e0e6f4;
  font-weight: 600;
}
.flow-operations-heading > strong {
  font:
    10px ui-monospace,
    monospace;
  color: #aa8fd0;
  white-space: nowrap;
}
.flow-operations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.flow-operations-grid article {
  background: linear-gradient(135deg, #101627, #0a121d);
  border: 1px solid #8e9db61c;
  border-radius: 9px;
  padding: 18px;
}
.flow-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.flow-card-heading h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 550;
  color: #d7e2e9;
}
.flow-card-heading > span {
  font-size: 10px;
  color: #82c9bc;
}
.flow-truck-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #9fabbd14;
}
.flow-truck-row > div:nth-child(2) {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.flow-truck-row strong {
  font-size: 11px;
  color: #d0d9e9;
}
.flow-truck-row strong small {
  font-size: 9px;
  font-weight: 400;
  color: #6d8597;
  padding-left: 5px;
}
.flow-truck-row span {
  font-size: 10px;
  color: #9a86c9;
}
.flow-truck-row span.truck-departing {
  color: #54d3b0;
}
.flow-truck-row span.truck-docking {
  color: #e8b650;
}
.flow-truck-row > b {
  font:
    12px ui-monospace,
    monospace;
  color: #9aafbe;
}
.flow-truck-icon {
  color: #a37be0;
  background: #6d28d91b;
  border: 1px solid #987bcb2c;
  padding: 10px;
  border-radius: 7px;
}
.manifest-slots {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.manifest-slots i {
  width: 17px;
  height: 19px;
  border: 1px solid #92a5bd37;
  border-radius: 3px;
  background: #142031;
}
.manifest-slots i.is-filled {
  background: #6d28d988;
  border-color: #b283ef88;
  box-shadow: inset 0 -4px #392850;
}
.flow-dispatch-card > p {
  font-size: 10px;
  color: #738895;
  line-height: 1.6;
  margin: 12px 0 0;
}
.flow-sensors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-bottom: 12px;
}
.flow-sensors > div {
  display: grid;
  gap: 6px;
}
.flow-sensors b {
  font:
    22px ui-monospace,
    monospace;
  color: #9be0d2;
}
.flow-sensors span {
  font-size: 9px;
  color: #869bad;
}
#flow-waits > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #9fabbd14;
  padding: 8px 0;
  font-size: 10px;
}
#flow-waits strong {
  font-weight: 500;
  color: #b2c0d4;
}
#flow-waits span {
  color: #c9af7b;
}
#flow-waits p {
  font-size: 10px;
  color: #83b5a5;
}
.flow-trace-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 12px;
}
.flow-trace-header > strong {
  font-size: 12px;
  color: #d4dfee;
}
.flow-trace-header > span {
  font-size: 10px;
  color: #8598a8;
}
.flow-trace-header label {
  margin-left: auto;
}
.flow-trace-header select {
  font:
    11px ui-monospace,
    monospace;
  background: #111a2a;
  border: 1px solid #a0a9d529;
  color: #bac9d8;
  border-radius: 5px;
  padding: 7px 10px;
  max-width: 150px;
}
#flow-trace {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #0c1421;
  border: 1px solid #8e9db61c;
  border-radius: 8px;
  padding: 17px 12px;
}
#flow-trace > div {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 5px 6px;
  color: #63788a;
  padding: 0 6px;
  border-right: 1px solid #8e9db61c;
}
#flow-trace > div:last-child {
  border: 0;
}
#flow-trace i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  align-self: center;
  width: 23px;
  height: 23px;
  font:
    10px ui-monospace,
    monospace;
  border: 1px solid #384259;
  border-radius: 50%;
}
#flow-trace span {
  font-size: 10px;
}
#flow-trace time {
  font:
    9px ui-monospace,
    monospace;
  color: #748697;
}
#flow-trace .is-complete {
  color: #ade4d8;
}
#flow-trace .is-complete i {
  background: #1ba6a61a;
  border-color: #1ba6a675;
  color: #53d2b5;
}
@media (max-width: 1150px) {
  .flow-stages button {
    grid-template-columns: 1fr;
    padding: 6px;
  }
  .flow-stages small {
    display: none;
  }
  .flow-stages b {
    grid-column: 1;
  }
  .flow-technologies > span {
    display: none;
  }
  .flow-technologies {
    justify-content: space-between;
  }
  .flow-technologies button {
    padding: 5px 6px;
  }
  .flow-operations-grid {
    grid-template-columns: 1fr;
  }
  .area-navigation {
    bottom: 235px;
  }
  .map-help {
    bottom: 281px;
  }
}
@media (max-width: 980px) {
  .area-navigation {
    bottom: 213px;
  }
  .map-help {
    display: none;
  }
  .bottom-dashboard .flow-tour-bar {
    padding: 12px;
  }
  .flow-explanation {
    min-height: 28px !important;
  }
  .flow-stages {
    gap: 5px;
  }
  .flow-caption > span {
    font-size: 8px;
  }
}
@media (max-width: 620px) {
  .bottom-dashboard .flow-tour-bar {
    padding: 11px 12px;
  }
  .flow-caption {
    margin-bottom: 6px;
  }
  .flow-caption > span {
    font-size: 7px;
    letter-spacing: 0.06em;
  }
  .flow-stages span {
    font-size: 8px;
  }
  .flow-stages b {
    font-size: 17px;
  }
  .flow-stages button {
    padding: 5px 4px;
  }
  .flow-stages em {
    right: -7px;
    top: 18px;
    font-size: 9px;
  }
  .flow-technologies {
    gap: 3px;
    margin-top: 8px;
    padding-top: 8px;
  }
  .flow-technologies button {
    font-size: 8px;
    padding: 5px 6px;
  }
  .flow-explanation {
    font-size: 9px !important;
    min-height: 27px !important;
  }
  .area-navigation {
    bottom: 202px !important;
    left: 12px !important;
    right: 12px !important;
    max-width: none;
  }
  .flow-operations-heading h3 {
    font-size: 14px;
  }
  .flow-operations-heading > strong {
    display: none;
  }
  .flow-operations-grid article {
    padding: 14px;
  }
  .flow-trace-header > span {
    display: none;
  }
  #flow-trace {
    padding: 12px 4px;
    gap: 0;
  }
  #flow-trace > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
    padding: 0 3px;
  }
  #flow-trace span {
    font-size: 8px;
  }
  .flow-truck-row {
    gap: 8px;
  }
  .manifest-slots {
    gap: 3px;
  }
  .manifest-slots i {
    width: 13px;
    height: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow-stages button {
    transition: none;
  }
}

.bottom-dashboard .flow-tour-bar {
  display: block;
  max-width: none;
}
.flow-explanation {
  display: none;
}
.has-layer-detail .flow-explanation {
  display: block;
}
.area-navigation {
  bottom: 187px;
}
.map-help {
  bottom: 235px;
}
body.warehouse-exploring .overview-panel {
  visibility: hidden;
  pointer-events: none;
}
body.warehouse-exploring .bottom-dashboard {
  grid-template-columns: minmax(0, 1fr) 280px;
}
body.warehouse-exploring .world-controls {
  right: 24px;
}
body.warehouse-exploring .area-navigation {
  max-width: calc(100% - 335px);
}
@media (min-width: 981px) {
  body.warehouse-exploring .flow-tour-bar {
    padding: 10px 14px;
  }
  body.warehouse-exploring .flow-caption {
    margin-bottom: 7px;
  }
  body.warehouse-exploring .flow-stages button {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    min-height: 34px;
    padding: 6px 7px;
  }
  body.warehouse-exploring .flow-stages b {
    grid-column: 3;
    font-size: 16px;
  }
  body.warehouse-exploring .flow-stages em {
    top: 11px;
  }
  body.warehouse-exploring .flow-technologies {
    margin-top: 7px;
    padding-top: 7px;
  }
  body.warehouse-exploring .activity-body {
    margin: 8px 0;
  }
  body.warehouse-exploring .activity-footer {
    padding-top: 7px;
  }
  body.warehouse-exploring .area-navigation {
    bottom: 158px;
  }
  body.warehouse-exploring .map-help {
    bottom: 204px;
  }
  body.warehouse-exploring:has(#world-flow-console.has-layer-detail) .area-navigation {
    bottom: 196px;
  }
  body.warehouse-exploring:has(#world-flow-console.has-layer-detail) .map-help {
    bottom: 242px;
  }
}
@media (max-width: 980px) {
  .area-navigation {
    top: 190px;
    bottom: auto;
  }
  body.warehouse-exploring .bottom-dashboard {
    grid-template-columns: 1fr;
  }
  body.warehouse-exploring .area-navigation {
    max-width: calc(100% - 80px);
  }
}
@media (max-width: 620px) {
  .area-navigation {
    top: 175px !important;
    bottom: auto !important;
    right: 65px !important;
  }
  .safety-notice {
    top: 218px;
  }
  .scene-tools {
    gap: 4px;
  }
  .scene-tools #warehouse-explore {
    font-size: 8px;
    height: 29px;
  }
  .has-layer-detail .flow-explanation {
    display: none;
  }
}

@media (max-width: 980px) {
  body.warehouse-exploring .overview-panel {
    display: none;
  }
  .warehouse-experience {
    display: flex;
    flex-direction: column;
  }
  .warehouse-experience > .bottom-dashboard {
    order: -1;
    margin-bottom: 14px;
  }
}

/* A compact, live fleet roster leaves the aisles visible in exploration mode. */
.fleet-console {
  display: none;
  position: absolute;
  z-index: 12;
  top: 184px;
  right: 24px;
  left: auto;
  width: 250px;
  padding: 14px;
  border: 1px solid #8975b448;
  border-radius: 14px;
  background: linear-gradient(145deg, #111525ed, #0b1920ed);
  box-shadow: 0 14px 38px #07091655;
  color: #e3e5ee;
  backdrop-filter: blur(14px);
}
.warehouse-exploring .fleet-console {
  display: block;
}
.fleet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fleet-heading span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #c6afed;
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 650;
}
.fleet-heading b {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.fleet-heading i,
.fleet-junctions i,
.junction-tag i,
.pair-tag i {
  width: 5px;
  height: 5px;
  background: #46cebd;
  border-radius: 50%;
  flex-shrink: 0;
}
.fleet-console > p {
  font-size: 10px;
  line-height: 1.5;
  color: #93a5b5;
  margin: 5px 0 12px;
}
.fleet-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.fleet-pairs button {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #ffffff04;
  border: 1px solid #66778d30;
  border-radius: 7px;
  color: #c6cdd9;
  cursor: pointer;
  text-align: left;
}
.fleet-pairs button:hover,
.fleet-pairs button[aria-pressed='true'] {
  border-color: #a482dc;
  background: #6d28d91f;
}
.fleet-pairs button > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.fleet-pairs strong {
  display: block;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.fleet-pairs small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
  color: #9eafbc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fleet-pairs em {
  font-style: normal;
  color: #7e8c9f;
  font-size: 11px;
}
.pair-glyph {
  display: flex;
  writing-mode: vertical-lr;
  color: #9b77d7;
  font-size: 13px;
  letter-spacing: 2px;
}
.fleet-pairs .is-working .pair-glyph {
  color: #4ccdbc;
}
.fleet-pairs .is-waiting .pair-glyph {
  color: #fbbf24;
}
.fleet-junctions {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}
.fleet-junctions span {
  flex: 1;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  padding: 7px 5px;
  border: 1px solid #50c8b936;
  border-radius: 5px;
  color: #94b8b5;
}
.fleet-junctions b {
  margin-left: auto;
  font-size: 9px;
}
.fleet-junctions .reserved {
  color: #ebcc80;
  border-color: #fbbf2445;
}
.fleet-junctions .reserved i,
.junction-tag.reserved i,
.pair-tag.is-waiting i {
  background: #fbbf24;
}
.fleet-console > button {
  width: 100%;
  background: transparent;
  color: #b7a1d8;
  border: 0;
  padding: 11px 0 0;
  font-size: 10px;
  cursor: pointer;
}
.fleet-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}
.junction-tag,
.pair-tag {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 5px 7px;
  border: 1px solid #5cb6a54d;
  border-radius: 5px;
  background: #122831e8;
  color: #afd9cf;
  font:
    9px/1.2 Inter,
    Arial,
    sans-serif;
  box-shadow: 0 3px 8px #0003;
}
.junction-tag {
  transform-origin: center;
}
.junction-tag.reserved {
  border-color: #e8b64d80;
  color: #f3d28c;
  background: #332a1ae8;
}
.pair-tag {
  cursor: pointer;
  pointer-events: auto;
  border-color: #a882df80;
  color: #e2d6fa;
  background: #34224ee8;
}
.pair-tag.is-waiting {
  border-color: #efbb48;
}
@media (max-width: 980px) {
  .fleet-console {
    top: 239px;
    right: auto;
    left: 14px;
    width: 194px;
    padding: 10px;
  }
  .fleet-heading span {
    font-size: 8px;
  }
  .fleet-console > p {
    font-size: 8px;
  }
  .fleet-pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fleet-pairs button {
    padding: 6px;
    gap: 5px;
  }
  .fleet-pairs strong {
    font-size: 10px;
  }
  .fleet-pairs small {
    max-width: 57px;
    font-size: 8px;
  }
  .fleet-pairs em {
    display: none;
  }
  .fleet-junctions {
    margin-top: 8px;
  }
  .pair-glyph {
    font-size: 10px;
  }
}
@media (max-width: 620px) {
  .fleet-console {
    top: auto;
    bottom: 18px;
    left: 12px;
    width: calc(100% - 82px);
    max-width: 350px;
  }
  .fleet-console > p {
    display: none;
  }
  .fleet-heading b {
    font-size: 16px;
  }
  .fleet-pairs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
  }
  .fleet-pairs button {
    justify-content: center;
    padding: 6px 2px;
  }
  .fleet-pairs button .pair-glyph,
  .fleet-pairs small {
    display: none;
  }
  .fleet-pairs button > span:nth-child(2) {
    flex: initial;
  }
  .fleet-junctions {
    width: 70%;
  }
  .fleet-console > button {
    position: absolute;
    right: 10px;
    bottom: 15px;
    width: auto;
    padding: 0;
    font-size: 9px;
  }
  .junction-tag {
    display: none;
  }
}
