/* Response history is a quiet shortcut, not a full-width stage banner. */
body .run-banner,
body .run-banner[data-state="idle"],
body .run-banner[data-state="complete"] {
  box-sizing: border-box;
  width: min(18rem, calc(100vw - 2rem));
  min-width: 0;
  min-height: 1.65rem;
  padding: 0.28rem 0.48rem;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  gap: 0.36rem;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(106, 205, 195, 0.56);
  background: linear-gradient(90deg, rgba(3, 17, 16, 0.8), rgba(3, 11, 11, 0.62) 70%, transparent);
  box-shadow: none;
  opacity: 0.62;
  backdrop-filter: blur(0.22rem);
  clip-path: none;
  transition: width 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease, background 180ms ease;
}

body .run-banner::after {
  width: 2.5rem;
  opacity: 0.16;
  animation-duration: 6.8s;
}

body .run-banner .run-indicator {
  width: 0.36rem;
  height: 0.36rem;
  border-width: 1px;
  opacity: 0.74;
}

body .run-banner .run-copy strong {
  color: rgba(123, 199, 191, 0.62);
  font-size: 0.46rem;
  letter-spacing: 0.04em;
}

body .run-banner .run-copy strong::after {
  margin-left: 0.34rem;
  opacity: 0.62;
}

body .run-banner .run-copy span {
  max-width: 12rem;
  color: rgba(220, 226, 219, 0.68);
  font-size: 0.58rem;
  font-weight: 580;
}

body .run-banner[data-state="idle"] time,
body .run-banner[data-state="complete"] time {
  display: none;
}

body .run-banner[data-history-role="empty"] {
  width: min(8rem, calc(100vw - 2rem));
}

body .run-banner[data-history-role="empty"] .run-copy span {
  display: none;
}

body .run-banner[data-state="sending"],
body .run-banner[data-state="waiting"],
body .run-banner[data-state="thinking"],
body .run-banner[data-state="streaming"],
body .run-banner[data-state="error"],
body .run-banner[data-state="stopped"] {
  width: min(23rem, calc(100vw - 2rem));
  min-height: 1.9rem;
  opacity: 0.9;
}

body .run-banner:hover,
body .run-banner:focus-visible,
body .run-banner.is-log-open {
  border: 0;
  border-left: 1px solid rgba(139, 232, 222, 0.82);
  background: linear-gradient(90deg, rgba(4, 25, 23, 0.88), rgba(5, 15, 14, 0.74) 72%, transparent);
  box-shadow: none;
  opacity: 0.92;
}

@media (max-width: 780px) {
  body .run-banner,
  body .run-banner[data-state="idle"],
  body .run-banner[data-state="complete"] {
    width: min(17rem, calc(100vw - 1.1rem));
  }

  body .run-banner[data-state="sending"],
  body .run-banner[data-state="waiting"],
  body .run-banner[data-state="thinking"],
  body .run-banner[data-state="streaming"],
  body .run-banner[data-state="error"],
  body .run-banner[data-state="stopped"] {
    width: calc(100vw - 1.1rem);
  }
}

/* The cartographic clock occupies one restrained telemetry line below the sector label. */
body .location-map .location-chronometer {
  top: 1.95rem;
  right: 0.42rem;
  bottom: auto;
  left: auto;
  width: max-content;
  max-width: calc(100% - 0.84rem);
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.42rem;
  padding: 0.3rem 0.42rem 0.32rem;
  overflow: hidden;
  border: 1px solid rgba(99, 151, 145, 0.2);
  border-left: 1px solid rgba(102, 190, 181, 0.52);
  background: linear-gradient(90deg, rgba(2, 10, 10, 0.72), rgba(3, 8, 8, 0.88) 72%, rgba(23, 7, 10, 0.76));
  box-shadow: 0 0.35rem 0.7rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(0.16rem);
  clip-path: none;
}

body .location-map .location-chronometer::before,
body .location-map .location-chronometer::after {
  content: none;
  display: none;
}

body .game-status-hud .location-map .location-chronometer > span {
  flex: 0 0 auto;
  color: rgba(125, 190, 182, 0.48);
  font: 750 0.28rem/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

body .location-map .location-chronometer .imperial-clock {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1;
  white-space: nowrap;
}

body .location-map .location-chronometer .imperial-clock b,
body .location-map .location-chronometer .imperial-clock small,
body .location-map .location-chronometer .imperial-clock strong {
  display: block;
  margin: 0;
  overflow: visible;
  color: rgba(192, 211, 204, 0.7);
  font: 720 0.48rem/1 "Cascadia Code", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-shadow: none;
  white-space: nowrap;
}

body .location-map .location-chronometer .imperial-clock small,
body .location-map .location-chronometer .imperial-clock strong {
  margin-left: 0.42rem;
  padding-left: 0.42rem;
  border-left: 1px solid rgba(102, 174, 166, 0.16);
}

body .location-map .location-chronometer .imperial-clock strong {
  color: rgba(155, 216, 208, 0.76);
  font-size: 0.5rem;
  font-weight: 760;
}

body .location-map .location-chronometer .imperial-clock[data-counting="true"] b,
body .location-map .location-chronometer .imperial-clock[data-counting="true"] small,
body .location-map .location-chronometer .imperial-clock[data-counting="true"] strong {
  color: rgba(177, 233, 225, 0.9);
  text-shadow: 0 0 0.34rem rgba(103, 201, 191, 0.24);
}

@media (max-width: 780px) {
  body .location-map .location-map-sector {
    display: none;
  }

  body .location-map .location-chronometer {
    top: 0.22rem;
    right: 0.24rem;
    max-width: calc(100% - 0.48rem);
    padding: 0.24rem 0.32rem 0.26rem;
  }

  body .game-status-hud .location-map .location-chronometer > span {
    display: none;
  }

  body .location-map .location-chronometer .imperial-clock b,
  body .location-map .location-chronometer .imperial-clock small,
  body .location-map .location-chronometer .imperial-clock strong {
    font-size: 0.42rem;
  }
}
