/*
 V01-NAT-UI-06-05-02
 Training / Replay Mode Visual Distinction
 Visual-only successor layer.

 Contract:
 - severity and mode are independent axes
 - TRAINING does not override severity color
 - REPLAY does not override severity color
 - LIVE has no mode banner
 - MAP FIRST remains primary
*/

#ui06ModeBanner {
  box-sizing: border-box;
  display: none;
  width: calc(100% - 20px);
  min-height: 44px;
  max-height: 56px;
  margin: 8px 10px 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-left-width: 5px;
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
  font: inherit;
  line-height: 1.2;
}

html[data-ui06-mode="TRAINING"] #ui06ModeBanner {
  display: flex;
  background: #eaf4ff;
  border-color: #3b82f6;
  color: #123d66;
}

html[data-ui06-mode="REPLAY"] #ui06ModeBanner {
  display: flex;
  background: #edf1f4;
  border-color: #5b6b79;
  color: #253746;
}

#ui06ModeBanner .ui06-mode-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

#ui06ModeBanner .ui06-mode-detail {
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.92;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-ui06-mode="TRAINING"] #ui06ModeBanner::before {
  content: "訓";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

html[data-ui06-mode="REPLAY"] #ui06ModeBanner::before {
  content: "再";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #475569;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 380px) {
  #ui06ModeBanner {
    gap: 7px;
    padding-left: 8px;
    padding-right: 8px;
  }

  #ui06ModeBanner .ui06-mode-detail {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ui06ModeBanner,
  #ui06ModeBanner * {
    transition: none !important;
    animation: none !important;
  }
}
/*
 V01-NAT-UI-06-05-04-R1 MODE BANNER EMPHASIS

 Human-perceptibility repair only.
 - severity colors remain untouched
 - TRAINING stays BLUE-family
 - REPLAY stays SLATE-family
 - compact 44–56px mode banner retained
 - no functional/runtime behavior change
*/

html[data-ui06-mode="TRAINING"] #ui06ModeBanner {
  background: #dcecff;
  border-color: #2563eb;
  border-width: 2px;
  border-left-width: 6px;
  color: #0f365d;
  box-shadow:
    0 2px 10px rgba(37, 99, 235, 0.24),
    inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

html[data-ui06-mode="REPLAY"] #ui06ModeBanner {
  background: #e2e8f0;
  border-color: #475569;
  border-width: 2px;
  border-left-width: 6px;
  color: #1f3344;
  box-shadow:
    0 2px 10px rgba(71, 85, 105, 0.22),
    inset 0 0 0 1px rgba(71, 85, 105, 0.10);
}

#ui06ModeBanner .ui06-mode-label {
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

html[data-ui06-mode="TRAINING"]
#ui06ModeBanner .ui06-mode-label {
  background: #2563eb;
  color: #ffffff;
}

html[data-ui06-mode="REPLAY"]
#ui06ModeBanner .ui06-mode-label {
  background: #475569;
  color: #ffffff;
}

#ui06ModeBanner .ui06-mode-detail {
  font-size: 12px;
  font-weight: 800;
  opacity: 1;
}

html[data-ui06-mode="TRAINING"]
#ui06ModeBanner::before {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

html[data-ui06-mode="REPLAY"]
#ui06ModeBanner::before {
  box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.18);
}

@media (max-width: 380px) {
  #ui06ModeBanner .ui06-mode-label {
    padding: 3px 7px;
  }

  #ui06ModeBanner .ui06-mode-detail {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ui06ModeBanner,
  #ui06ModeBanner * {
    transition: none !important;
    animation: none !important;
  }
}