/* FORVUM — Ferramenta de transcrição */

.topbar-right { display: flex; align-items: center; gap: 18px; }
.tool-name { font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 640px) { .tool-name { display: none; } }

/* Indicador de etapas */
.steps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 18px clamp(16px,4vw,40px) 4px; }
.step {
  font-family: var(--font-display); font-size: .82rem; letter-spacing: .08em; font-weight: 600;
  color: var(--ink-3); padding: 8px 16px; border-radius: 999px; border: 1px solid transparent;
}
.step.active { color: var(--ink); background: var(--marble-0); border-color: var(--gold-soft); box-shadow: var(--shadow-sm); }
.step.done { color: var(--gold); }

main.container { padding-top: 22px; padding-bottom: 60px; }
.panel { animation: rise .4s var(--ease); }
.panel-head { margin-bottom: 22px; }
.panel-head .overline { display: block; margin-bottom: 6px; }

/* ---------- Passo 1 ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: clamp(40px, 7vw, 72px) 24px; margin: 8px 0;
  background: var(--marble-0); border: 2px dashed var(--gold-soft); border-radius: var(--radius-lg);
  cursor: pointer; text-align: center; transition: all .2s var(--ease);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--gold); background: #fffdf7; box-shadow: var(--shadow-sm); }
.dropzone .emblem { margin-bottom: 4px; }
.dropzone-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.dropzone-or { color: var(--ink-3); font-style: italic; }

.jobs-wrap { margin-top: 30px; }
.jobs-wrap .meander { margin-bottom: 24px; }
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--target); padding: 16px 22px; width: 100%; text-align: left;
  background: var(--marble-0); border: 1px solid var(--marble-2); border-radius: var(--radius);
  cursor: pointer; transition: all .2s var(--ease); font-family: var(--font-body);
}
.job-card:hover { border-color: var(--gold); transform: translateX(3px); }
.job-card .job-name { font-weight: 600; color: var(--ink); word-break: break-word; }
.job-badge { font-family: var(--font-display); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.badge-done { background: rgba(44,74,82,.10); color: var(--aegean); border: 1px solid rgba(44,74,82,.25); }
.badge-processing, .badge-queued { background: rgba(154,118,52,.12); color: var(--gold); border: 1px solid var(--gold-soft); }
.badge-error { background: rgba(110,42,34,.10); color: var(--porphyry); border: 1px solid rgba(110,42,34,.3); }

/* ---------- Passo 2 ---------- */
.progress-big { position: relative; height: 42px; background: var(--marble-2); border-radius: 999px; overflow: hidden; margin: 20px 0; border: 1px solid var(--gold-soft); }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .5s var(--ease); }
.progress-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.proc-message { text-align: center; color: var(--ink-2); font-style: italic; font-size: 1.1em; }

/* ---------- Passo 3 — Pessoas ---------- */
.speakers-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.speaker-card {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px 16px; align-items: center;
  padding: 16px 18px; background: var(--marble-0); border: 1px solid var(--marble-2); border-radius: var(--radius); border-left: 5px solid var(--gold);
}
.speaker-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); }
.speaker-voice { font-family: var(--font-display); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.name-input { width: 100%; }
.speaker-card .role-chips { grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px; padding: 0 16px; font-family: var(--font-body); font-size: .96em; font-weight: 600;
  background: var(--marble); color: var(--ink-2); border: 1px solid var(--gold-soft); border-radius: 999px; cursor: pointer; transition: all .15s;
}
.chip:hover { background: var(--gold); color: var(--marble-0); border-color: var(--gold); }
.remove-person { background: transparent; border: none; color: var(--ink-3); font-size: 1.4rem; cursor: pointer; min-width: 44px; min-height: 44px; border-radius: 8px; }
.remove-person:hover { color: var(--porphyry); background: rgba(110,42,34,.08); }
.add-person { margin-bottom: 8px; }

/* ---------- Passo 4 — Revisar ---------- */
.review { display: grid; grid-template-columns: minmax(330px, 40%) 1fr; gap: 26px; align-items: start; }
@media (max-width: 920px) { .review { grid-template-columns: 1fr; } }
.review-video { position: sticky; top: 96px; }
#video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16/9; box-shadow: var(--shadow-sm); }
.video-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.btn-control { min-height: 58px; padding: 0 18px; }
.btn-play { min-width: 80px; font-size: 1.3em; }
.speed { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .92em; }
.speed select { min-height: 46px; padding: 0 10px; }
.follow-toggle { display: flex; align-items: center; gap: 10px; margin-top: 14px; cursor: pointer; color: var(--ink-2); }
.follow-toggle input { width: 24px; height: 24px; accent-color: var(--gold); }
.save-state { margin-top: 10px; color: var(--aegean); font-weight: 600; font-style: italic; height: 1.4em; transition: opacity .3s; }
.save-state.saving { color: var(--gold); }

/* Painel de pessoas (legenda / pincel) */
.people-panel { margin-top: 18px; padding: 18px; }
.people-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.people-panel-head h3 { margin: 0; }
.brush-hint { font-size: .82rem; color: var(--ink-3); font-style: italic; }
.people-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--marble); border: 1.5px solid var(--marble-2); border-radius: 999px; cursor: pointer;
  font-weight: 600; color: var(--ink); transition: all .15s;
}
.legend-chip:hover { border-color: var(--gold); }
.legend-chip .dot { width: 14px; height: 14px; border-radius: 50%; }
.legend-chip .count { color: var(--ink-3); font-size: .85em; }
.legend-chip.armed { background: var(--ink); color: var(--marble-0); border-color: var(--ink); box-shadow: var(--shadow-gold); }
.legend-chip.armed .count { color: var(--gold-soft); }
.shortcuts { margin: 14px 0 0; font-size: .82rem; color: var(--ink-3); line-height: 1.6; }
.shortcuts b { color: var(--gold); font-family: var(--font-display); }

/* Transcrição */
.transcript { display: flex; flex-direction: column; gap: 4px; }
.transcript.brushing { cursor: crosshair; }
.transcript.brushing .turn:hover { box-shadow: inset 0 0 0 2px var(--gold); }
.turn {
  display: grid; grid-template-columns: 1fr; gap: 4px; padding: 12px 14px 12px 16px;
  border-radius: var(--radius); border: 1.5px solid transparent; border-left: 5px solid var(--gold); cursor: pointer; transition: background .15s;
}
.turn:hover { background: var(--marble-0); }
.turn.active { background: #fffdf6; border-color: var(--gold-soft); box-shadow: var(--shadow-sm); }
.turn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.turn-time { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: .85em; }
.turn-person {
  min-height: 38px; font-family: var(--font-display); font-weight: 600; font-size: .9em; letter-spacing: .03em;
  padding: 0 10px; border-radius: 8px; background: var(--marble-0); border: 1.5px solid var(--gold-soft); color: var(--ink);
}
.turn-actions { margin-left: auto; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.turn:hover .turn-actions, .turn:focus-within .turn-actions { opacity: 1; }
.turn-action { min-width: 38px; min-height: 38px; border: 1px solid var(--marble-2); background: var(--marble-0); border-radius: 8px; cursor: pointer; font-size: 1rem; color: var(--ink-2); }
.turn-action:hover { border-color: var(--gold); color: var(--ink); }
@media (max-width: 920px) { .turn-actions { opacity: 1; } }
.turn-text { font-size: 1.06em; line-height: 1.6; padding: 4px 2px; border-radius: 6px; outline: none; }
.turn-text:focus { background: var(--marble-0); box-shadow: inset 0 0 0 2px var(--gold-soft); }

/* ---------- Passo 5 ---------- */
.export-buttons { display: flex; flex-direction: column; gap: 14px; max-width: 440px; margin: 18px 0; }
.nav-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
