.speech-episodes-screen { color: var(--text); }
.speech-episodes-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 32px 36px 26px; border-bottom: 1px solid var(--border); background: linear-gradient(130deg, var(--surface), var(--accent-soft)); }
.speech-episodes-header h1 { max-width: 800px; margin: 14px 0; font-size: clamp(26px, 3.2vw, 43px); line-height: 1.13; letter-spacing: -.035em; font-weight: 650; }
.speech-episodes-header p { max-width: 750px; margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.speech-episodes-header > .btn { flex-shrink: 0; }
.speech-episodes-content { display: grid; gap: 20px; max-width: 1180px; padding: 26px 36px 48px; margin: 0 auto; }
.speech-episodes-workflow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-2); }
.speech-episodes-tariff { display: grid; gap: 5px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 13px; }
.speech-episodes-tariff b { color: var(--text); }
.speech-episodes-tariff p { margin: 0; }
.speech-episodes-card { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.speech-episodes-card h2 { margin: 0 0 9px; font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.speech-episodes-card h3 { margin: 0 0 6px; font-size: 15px; }
.speech-episodes-card p { margin: 6px 0 14px; line-height: 1.6; }
.speech-episodes-card audio { display: block; width: 100%; margin-top: 16px; }
.speech-episodes-card progress { display: block; width: 100%; height: 8px; margin: 14px 0; accent-color: var(--accent); }
.speech-episodes-upload { display: grid; gap: 12px; margin: 18px 0; padding: 30px; border: 1px dashed var(--border-strong); border-radius: 9px; background: var(--surface-2); text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.speech-episodes-upload > b { font-size: 16px; }
.speech-episodes-upload > span { color: var(--text-2); font-size: 12px; max-width: 640px; justify-self: center; }
.speech-episodes-upload input { width: min(100%, 420px); justify-self: center; font-size: 12px; }
.speech-episodes-upload:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.speech-episodes-upload:has(input:disabled) { cursor: default; opacity: .65; }
.speech-episodes-actions { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.speech-episodes-actions > label { display: grid; gap: 6px; font-size: 12px; color: var(--text-2); }
.speech-episodes-actions .select { min-width: 170px; }
.speech-episodes-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.speech-episodes-section-head > div { min-width: 0; }
.speech-episodes-section-head p { max-width: 700px; overflow-wrap: anywhere; }
.speech-episodes-section-head > .btn { flex-shrink: 0; }
.speech-episodes-duration { display: grid; flex-shrink: 0; padding: 12px 16px; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: 22px; font-variant-numeric: tabular-nums; font-weight: 650; }
.speech-episodes-duration small { color: var(--text-2); font-size: 11px; font-weight: 400; }
.speech-episodes-list { list-style: none; padding: 0; margin: 12px 0; max-height: 440px; overflow: auto; }
.speech-episodes-list > li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.speech-episodes-list > li:last-child { border-bottom: 0; }
.speech-episodes-list label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.speech-episodes-list label > span { display: grid; gap: 3px; }
.speech-episodes-list small { color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.speech-episodes-list input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
.speech-episodes-list .mono { font-size: 12px; }
.speech-episodes-excluded { margin-top: 18px; padding: 16px 0; border-top: 1px solid var(--border); }
.speech-episodes-excluded summary { cursor: pointer; font-weight: 600; }
.speech-episodes-excluded > p { font-size: 12px; margin-top: 10px; }
.speech-episodes-custom { padding: 18px; margin: 14px 0; background: var(--surface-2); border-radius: 8px; }
.speech-episodes-custom p { font-size: 12px; }
.speech-episodes-custom .input { width: 150px; }
.speech-episodes-review-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.speech-episodes-review-footer p { margin: 3px 0; font-size: 12px; }
.speech-episodes-review-footer > .btn { flex-shrink: 0; }
.speech-episodes-error { padding: 12px 16px; background: var(--danger-soft); border-radius: 8px; color: var(--danger); overflow-wrap: anywhere; }
.speech-episodes-clock, .speech-episodes-clocks { color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.speech-episodes-clocks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 12px 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.speech-episodes-clocks b { color: var(--text); }
.speech-episodes-transcript { padding: 0; margin: 0; list-style: none; max-height: 640px; overflow: auto; }
.speech-episodes-transcript > li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.speech-episodes-transcript-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.speech-episodes-time-link { padding: 3px 0; background: none; color: var(--accent); font-family: var(--font-mono); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.speech-episodes-transcript > li > p { margin: 10px 0 0; white-space: pre-wrap; }
.speech-episodes-launcher { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.speech-episodes-launcher p { margin: 0 0 9px; font-size: 12px; color: var(--text-2); }
@media (max-width: 760px) {
  .speech-episodes-header { flex-direction: column; padding: 24px 18px; }
  .speech-episodes-content { padding: 20px 14px 36px; gap: 16px; }
  .speech-episodes-card { padding: 18px; }
  .speech-episodes-upload { padding: 20px 12px; }
  .speech-episodes-section-head, .speech-episodes-review-footer { flex-direction: column; }
  .speech-episodes-list > li { align-items: flex-start; flex-wrap: wrap; }
  .speech-episodes-custom { padding: 14px; }
  .speech-episodes-custom .input { width: 125px; }
}
