.alpha38-narration {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.alpha38-narration *,
.alpha38-narration *::before,
.alpha38-narration *::after {
  box-sizing: border-box;
}

.a38-lecture-card,
.a38-slide-card {
  border: 1px solid rgba(128,128,128,.22);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255,255,255,.035);
}

.a38-narration h3,
.alpha38-narration h3 {
  margin: 0 0 12px 0;
}

.a38-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.a38-provider {
  font-size: 12px;
  opacity: .7;
}

.a38-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.a38-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid rgba(128,128,128,.25);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.a38-badge b {
  font-size: 14px;
}

.a38-badge.ready {
  border-color: rgba(40,170,90,.45);
}

.a38-badge.outdated {
  border-color: rgba(230,165,40,.55);
}

.a38-badge.failed {
  border-color: rgba(210,70,70,.55);
}

.a38-badge.generating {
  border-color: rgba(60,130,220,.55);
}

.a38-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.a38-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.a38-field > span {
  opacity: .76;
}

.a38-text {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(128,128,128,.35);
  font: inherit;
}

.a38-language,
.a38-voice,
.a38-speed {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  padding: 6px 8px;
}

.a38-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.alpha38-narration button {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(80,120,210,.48);
  cursor: pointer;
}

.alpha38-narration button:disabled {
  opacity: .45;
  cursor: default;
}

.a38-secondary {
  border-color: rgba(128,128,128,.4)
    !important;
}

.a38-danger {
  border-color: rgba(210,70,70,.55)
    !important;
}

.a38-progress-wrap {
  margin-top: 14px;
}

.a38-progress-text {
  margin-bottom: 5px;
  font-size: 13px;
}

.a38-progress {
  width: 100%;
  height: 12px;
}

.a38-slide-status,
.a38-lecture-status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  opacity: .8;
}

.a38-audio {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 800px) {
  .a38-grid {
    grid-template-columns: 1fr;
  }
}


/* alpha4.2-dev2: exact SpeechPlan preview */
.a42-auto-voice {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: .72;
}

.a42-speech-preview {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(80, 160, 220, .25);
  border-radius: 10px;
  background: rgba(30, 100, 160, .045);
}

.a42-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.a42-preview-hint {
  margin-top: 3px;
  font-size: 12px;
  opacity: .68;
}

.a42-preview-status {
  min-width: 20px;
  text-align: right;
  font-size: 12px;
  opacity: .65;
}

.a42-preview-segments {
  display: grid;
  gap: 8px;
}

.a42-segment {
  padding: 9px 10px;
  border: 1px solid rgba(128,128,128,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
}

.a42-segment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 5px;
  font-size: 11px;
  opacity: .78;
}

.a42-language-chip {
  display: inline-flex;
  align-items: center;
  min-width: 27px;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(128,128,128,.35);
  font-weight: 700;
}

.a42-language-chip.ru {
  border-color: rgba(80,170,220,.55);
}

.a42-language-chip.en {
  border-color: rgba(210,150,70,.55);
}

.a42-segment-number {
  margin-left: auto;
  opacity: .6;
}

.a42-spoken-text {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.a42-preview-empty {
  padding: 8px 2px;
  font-size: 13px;
  opacity: .65;
}
