/* V2 : transcript en direct, onglets interactifs */

/* Onglets — même placement que la maquette avec un padding uniforme */
.tabs { position: relative; gap: 23.313px; }
.tab,
.tab.is-active {
  padding: 11.657px 5.828px;
  border-bottom: 0;
  color: #c5c5c5;
  transition: color 160ms;
}
.tab svg { display: block; flex-shrink: 0; }
.tab .mono { transition: color 160ms; }
.tab:hover .mono { color: var(--ink); }
.tab.is-active { color: var(--accent); }
.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2.914px;
  background: var(--accent);
  transition: left 280ms cubic-bezier(.3, .7, .2, 1), width 280ms cubic-bezier(.3, .7, .2, 1);
}

/* Vues : même hauteur que la zone transcript */
.view {
  height: 242.396px;
  padding: 0 23.313px 46.626px;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  font-size: 17.485px;
  letter-spacing: -0.5245px;
  line-height: 23.313px;
  color: var(--ink);
}
.view[hidden] { display: none; }

/* Transcript : ancré en bas, fondu sous les onglets */
.transcript {
  flex-direction: column;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 72px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 72px);
}
.lines { flex: none; will-change: transform; }
.line p { line-height: 23.313px; color: var(--ink); transition: color 400ms; }
.line.is-done p { color: rgba(26, 26, 26, .7); }
.line .time { transition: color 400ms; }
.line.is-done .time { color: rgba(138, 138, 138, 0); }
.line p span { transition: color 200ms; }

/* Note */
.note { padding-top: 23.313px; }
.note-body { display: flex; flex-direction: column; gap: 11.657px; outline: none; }

/* Summary */
.summary { display: flex; flex-direction: column; gap: 23.313px; padding-top: 23.313px; }
.summary ul { display: flex; flex-direction: column; gap: 11.657px; padding-left: 20px; }
.summary li::marker { color: var(--accent); }

/* Contrôles : pause désactivée à l'arrêt, Stop devient Record */
.pause:disabled { opacity: .4; cursor: default; }
.stop { overflow: hidden; white-space: nowrap; transition: background-color 280ms, border-color 280ms; }
.stop-label { transition: color 280ms; }
[data-state="stopped"] .stop { background: var(--surface); border-color: var(--line); }
[data-state="stopped"] .stop-label { color: var(--ink); }
[data-state="stopped"] .elapsed-time { color: var(--ink); }

/* Copy / Export : léger assombrissement au survol */
.btn { transition: background-color 160ms, border-color 160ms; }
.btn .mono { transition: color 160ms; }
.btn img { transition: filter 160ms; }
.btn:hover { background: var(--shell); border-color: #e0e0e0; }
.btn:hover .mono { color: var(--ink); }
.btn:hover img { filter: brightness(.7); }
