.trip-panel--live {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
  min-height: calc(100vh - 160px);
}

.trip-live-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: min(48vh, 420px);
  background: #e8eef5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border, #e5e2dc);
}

.trip-nav-map {
  width: 100%;
  height: 100%;
  min-height: min(48vh, 420px);
  background: #e8eef5;
}

.trip-nav-map .delivery-map-frame {
  width: 100%;
  height: 100%;
  min-height: min(48vh, 420px);
  border: 0;
}

.trip-guidance-float {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  pointer-events: none;
}

.trip-guidance-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border, #e5e2dc);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.12);
}

.trip-turn-glyph {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--mist, #f3f1ed);
  font-size: 1.2rem;
  color: var(--ink, #1c1917);
}

.trip-guidance-copy {
  min-width: 0;
  flex: 1;
}

.trip-guidance-eyebrow {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b6560);
}

.trip-nav-instruction {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text, #1c1917);
}

.trip-guidance-meta {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--muted, #6b6560);
}

.trip-sheet {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--panel, #fff);
  border: 1px solid var(--border, #e5e2dc);
  box-shadow: var(--shadow, 0 8px 24px rgba(28, 25, 23, 0.06));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trip-nav-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trip-start-nav-btn,
.trip-stop-nav-btn,
.trip-voice-toggle,
.trip-repeat-voice-btn,
.trip-maps-btn {
  flex: 1;
  min-width: 88px;
}

.trip-nav-status {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--muted, #6b6560);
}

.trip-nav-error {
  padding: 16px;
  color: var(--danger, #b42318);
  font-size: 0.92rem;
  line-height: 1.45;
}

.trip-nav-error ul {
  margin: 8px 0;
  padding-left: 18px;
}

.trip-nav-error code {
  font-family: Consolas, monospace;
  font-size: 0.88rem;
}

body.driver-trip-active .topbar {
  margin-bottom: 10px;
}

body.driver-trip-active #trip-view {
  margin: 0;
}

@media (max-width: 768px) {
  .trip-panel--live {
    min-height: calc(100dvh - var(--tab-height, 64px) - 120px);
  }

  .trip-live-stage,
  .trip-nav-map,
  .trip-nav-map .delivery-map-frame {
    min-height: 42vh;
  }

  .trip-nav-instruction {
    font-size: 0.98rem;
  }
}
