/* Phase 113: Podcast Control Room redesign */

/* Override phase117's opacity:0 flash-prevention when pod113 is active */
body[data-active-view="podcast-app"] #podcast-app:has(.pod113-shell) {
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: opacity 0.18s ease !important;
}

body[data-active-view="podcast-app"] #podcast-app {
  background:
    radial-gradient(circle at 8% 0%, rgba(250, 204, 21, .18), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(14, 165, 233, .16), transparent 30%),
    linear-gradient(180deg, #fbf5ea 0%, #efe2cf 100%) !important;
  overflow-x: hidden !important;
}

body[data-active-view="podcast-app"] #podcast-app > :not(.pod113-shell) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

#podcast-app .pod113-shell {
  --pod-ink: #21140d;
  --pod-muted: #765a44;
  --pod-card: rgba(255, 252, 244, .94);
  --pod-line: rgba(92, 62, 31, .16);
  --pod-blue: #1f6fff;
  --pod-cyan: #00b7d8;
  --pod-gold: #ffba4a;
  --pod-coral: #ff6a4a;
  --pod-green: #12a070;
  --pod-night: #111827;
  display: block !important;
  min-height: 100%;
  padding: clamp(14px, 2vw, 24px) clamp(12px, 2vw, 24px) 130px;
  color: var(--pod-ink);
  font-family: ui-sans-serif, "Aptos", "Segoe UI", sans-serif;
}

#podcast-app .pod113-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 8%, rgba(0, 183, 216, .28), transparent 28%),
    radial-gradient(circle at 14% 18%, rgba(255, 186, 74, .28), transparent 34%),
    linear-gradient(135deg, #101827 0%, #1d2535 44%, #2d1d16 100%);
  box-shadow: 0 28px 80px rgba(28, 21, 13, .26);
}

#podcast-app .pod113-hero > * {
  position: relative;
  z-index: 1;
}

#podcast-app .pod113-hero::after {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: min(420px, 45%);
  height: 185px;
  pointer-events: none;
  opacity: .42;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(0,183,216,.7) 6% 7%, transparent 7% 14%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 2px, transparent 2px 16px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 2px, transparent 2px 16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  transform: rotate(-2deg);
}

#podcast-app .pod113-eyebrow,
#podcast-app .pod110-eyebrow {
  margin: 0 0 8px;
  color: #9a6a1e;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#podcast-app .pod113-hero .pod113-eyebrow {
  color: #ffcf70;
}

#podcast-app .pod113-hero h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2rem, 4.6vw, 4.1rem);
  line-height: .9;
  letter-spacing: -.055em;
  color: #fff8ec;
  text-shadow: 0 18px 44px rgba(0,0,0,.28);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

#podcast-app .pod113-subline {
  max-width: 86ch;
  margin: 12px 0 0;
  color: rgba(255, 248, 236, .78);
  font-size: .98rem;
  line-height: 1.55;
}

#podcast-app .pod113-actions,
#podcast-app .pod113-tabs,
#podcast-app .pod113-inline,
#podcast-app .pod113-check-grid,
#podcast-app .pod113-tool-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

#podcast-app .pod113-actions {
  justify-content: flex-end;
  align-self: end;
  max-width: 360px;
}

#podcast-app .pod113-btn,
#podcast-app .pod110-btn {
  appearance: none;
  min-height: 42px;
  border: 1px solid rgba(78, 52, 27, .16);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255,255,255,.82);
  color: #29170b;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(77, 47, 18, .08);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

#podcast-app .pod113-btn:hover,
#podcast-app .pod110-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(77, 47, 18, .13);
}

#podcast-app .pod113-hero .pod113-btn {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.1);
  color: #fff8ec;
  backdrop-filter: blur(12px);
}

#podcast-app .pod113-btn.primary,
#podcast-app .pod110-btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #1268f3, #10b7d8);
}

#podcast-app .pod113-btn.gold {
  color: #2b1705;
  border-color: rgba(190, 122, 19, .3);
  background: linear-gradient(135deg, #ffe19a, #ffb84d);
}

#podcast-app .pod113-command {
  display: grid;
  /* Narrow fixed sidebars, centre gets all the room — matches user preference
     for the wider workbench layout. Caps out at 220px on large viewports. */
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(180px, 220px);
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}

#podcast-app .pod113-card {
  min-width: 0;
  border: 1px solid var(--pod-line);
  border-radius: 28px;
  background: var(--pod-card);
  box-shadow: 0 18px 44px rgba(61, 38, 16, .09), inset 0 1px 0 rgba(255,255,255,.74);
}

#podcast-app .pod113-card.pad {
  padding: 16px;
}

#podcast-app .pod113-card h2,
#podcast-app .pod113-card h3,
#podcast-app .pod113-card h4 {
  margin: 0;
  color: var(--pod-ink);
}

#podcast-app .pod113-card-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

#podcast-app .pod113-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  max-width: 790px;
}

#podcast-app .pod113-stat {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff8ec;
  backdrop-filter: blur(14px);
}

#podcast-app .pod113-stat strong {
  display: block;
  margin: 4px 0 3px;
  font-size: 1.55rem;
  line-height: 1;
}

#podcast-app .pod113-stat small {
  color: #ffcf70;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#podcast-app .pod113-stat span,
#podcast-app .pod113-note,
#podcast-app .pod113-muted {
  color: var(--pod-muted);
}

#podcast-app .pod113-hero .pod113-stat span {
  color: rgba(255,248,236,.72);
}

#podcast-app .pod113-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 9px;
  margin: 14px 0 0;
  border-radius: 25px;
  border: 1px solid rgba(20, 24, 36, .16);
  background: rgba(18, 24, 38, .9);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(41, 31, 18, .17);
}

#podcast-app .pod113-tab {
  border-radius: 18px;
  padding: 10px 12px;
  min-height: 42px;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: rgba(255, 248, 236, .82);
  box-shadow: none;
}

#podcast-app .pod113-tab.active {
  color: #101827;
  background: linear-gradient(135deg, #ffe08a, #ffba4a);
}

#podcast-app .pod113-stack {
  display: grid;
  gap: 14px;
}

#podcast-app .pod113-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#podcast-app .pod113-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#podcast-app .pod113-field.wide {
  grid-column: 1 / -1;
}

#podcast-app .pod113-field span {
  color: #79542d;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#podcast-app .pod113-field input,
#podcast-app .pod113-field select,
#podcast-app .pod113-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(87, 60, 31, .16);
  border-radius: 15px;
  padding: 10px 12px;
  background: rgba(255, 253, 247, .92);
  color: var(--pod-ink);
  font: inherit;
}

#podcast-app .pod113-field textarea {
  resize: vertical;
}

#podcast-app .pod113-pipeline {
  display: grid;
  gap: 10px;
}

#podcast-app .pod113-episode {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(92, 62, 31, .13);
  border-radius: 20px;
  background: rgba(255,255,255,.7);
  cursor: pointer;
}

#podcast-app .pod113-episode.active {
  border-color: rgba(18,104,243,.55);
  background: linear-gradient(135deg, rgba(239,246,255,.98), rgba(255,255,255,.82));
  box-shadow: inset 4px 0 0 var(--pod-blue);
}

#podcast-app .pod113-episode-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-weight: 950;
}

#podcast-app .pod113-chip,
#podcast-app .pod110-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 25px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .72rem;
  font-weight: 950;
}

#podcast-app .pod113-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(72, 48, 26, .11);
}

#podcast-app .pod113-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pod-gold), var(--pod-blue), var(--pod-cyan));
}

#podcast-app .pod113-workbench {
  display: grid;
  gap: 14px;
}

#podcast-app .pod113-lane {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2vw, 26px);
  background:
    radial-gradient(circle at 90% 0%, rgba(31,111,255,.12), transparent 30%),
    rgba(255, 252, 244, .95);
}

#podcast-app .pod113-lane::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--pod-gold), var(--pod-cyan), var(--pod-blue), var(--pod-coral));
}

#podcast-app .pod113-lane-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

#podcast-app .pod113-lane-hero p {
  margin: 7px 0 0;
  color: var(--pod-muted);
  line-height: 1.5;
}

#podcast-app .pod113-lane-strip {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  border: 1px solid rgba(92, 62, 31, .12);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
}

#podcast-app .pod113-lane-strip button {
  appearance: none;
  border: 0;
  border-radius: 13px;
  padding: 8px 10px;
  background: transparent;
  color: #61432d;
  font: inherit;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
}

#podcast-app .pod113-lane-strip button.active {
  color: #fff;
  background: #111827;
}

#podcast-app .pod113-segments,
#podcast-app .pod113-guests,
#podcast-app .pod113-release,
#podcast-app .pod113-mini-grid {
  display: grid;
  gap: 10px;
}

#podcast-app .pod113-bento-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#podcast-app .pod113-segment,
#podcast-app .pod113-guest,
#podcast-app .pod113-release-row,
#podcast-app .pod113-mini {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(92, 62, 31, .12);
  border-radius: 18px;
  background: rgba(255,255,255,.64);
}

#podcast-app .pod113-mini strong {
  display: block;
  margin-bottom: 5px;
  color: #28180e;
}

#podcast-app .pod113-mini span {
  display: block;
  color: var(--pod-muted);
  line-height: 1.4;
}

/* Lane-strip is removed from JS — hide any residual rendered instance */
#podcast-app .pod113-lane-strip { display: none !important; }

/* Section heading label inside strategy form */
#podcast-app .pod113-form-section-head {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b6e52;
  padding: 10px 0 4px;
  border-bottom: 1px solid rgba(92,62,31,.12);
  margin-bottom: 2px;
}

#podcast-app .pod113-segment {
  display: grid;
  grid-template-columns: 150px minmax(150px, 1fr) 88px minmax(160px, 1.1fr) auto;
  gap: 9px;
  align-items: center;
}

#podcast-app .pod113-guest {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(140px, 1fr) 130px minmax(140px, 1fr) auto;
  gap: 9px;
  align-items: center;
}

#podcast-app .pod113-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(90, 60, 30, .12);
  background: rgba(255,255,255,.7);
  color: #3b281b;
  font-weight: 850;
}

#podcast-app .pod113-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--pod-blue);
}

#podcast-app .pod113-tool-grid {
  align-items: stretch;
}

#podcast-app .pod113-tool {
  flex: 1 1 120px;
  justify-content: center;
}

#podcast-app .pod110-integration {
  display: inline-flex;
}

#podcast-app .pod113-alert {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,239,198,.88), rgba(255,255,255,.72));
  border: 1px solid rgba(200, 121, 25, .18);
  color: #60421e;
  line-height: 1.45;
}

#podcast-app .pod113-pulse {
  position: relative;
  overflow: hidden;
  color: #fff8ec;
  background:
    radial-gradient(circle at 80% 18%, rgba(0,183,216,.22), transparent 32%),
    linear-gradient(145deg, #111827, #241713);
  border-color: rgba(255,255,255,.12);
}

#podcast-app .pod113-pulse .pod113-eyebrow,
#podcast-app .pod113-pulse .pod113-note,
#podcast-app .pod113-pulse h2 {
  color: #fff8ec;
}

#podcast-app .pod113-pulse .pod113-note {
  color: rgba(255,248,236,.72);
}

#podcast-app .pod113-orb {
  width: 132px;
  height: 132px;
  margin: 14px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, #111827 0 50%, transparent 51%),
    conic-gradient(from -90deg, #00b7d8 0 var(--ready), rgba(255,255,255,.14) var(--ready) 100%);
  box-shadow: 0 0 42px rgba(0,183,216,.22);
}

#podcast-app .pod113-wave {
  position: absolute;
  right: clamp(18px, 3vw, 40px);
  bottom: 22px;
  display: flex;
  gap: 7px;
  align-items: end;
  height: 64px;
  opacity: .75;
  pointer-events: none;
}

#podcast-app .pod113-wave span {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcf70, #00b7d8);
  animation: pod113Wave 1.5s ease-in-out infinite;
}

#podcast-app .pod113-wave span:nth-child(1) { height: 22px; animation-delay: -.1s; }
#podcast-app .pod113-wave span:nth-child(2) { height: 42px; animation-delay: -.25s; }
#podcast-app .pod113-wave span:nth-child(3) { height: 30px; animation-delay: -.4s; }
#podcast-app .pod113-wave span:nth-child(4) { height: 58px; animation-delay: -.55s; }
#podcast-app .pod113-wave span:nth-child(5) { height: 34px; animation-delay: -.7s; }
#podcast-app .pod113-wave span:nth-child(6) { height: 50px; animation-delay: -.85s; }
#podcast-app .pod113-wave span:nth-child(7) { height: 26px; animation-delay: -1s; }
#podcast-app .pod113-wave span:nth-child(8) { height: 44px; animation-delay: -1.15s; }

@keyframes pod113Wave {
  0%, 100% { transform: scaleY(.72); opacity: .55; }
  50% { transform: scaleY(1.12); opacity: 1; }
}

#podcast-app .pod113-right .pod113-card {
  padding: 15px;
}

#podcast-app .pod113-release-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

#podcast-app .pod113-release-row.done {
  border-color: rgba(20, 128, 94, .25);
  background: rgba(236, 253, 245, .72);
}

/* ── Episode Pulse — waveform visual ──────────────────────────────────── */
#podcast-app .pod113-pulse-card { overflow: visible; }

#podcast-app .pod113-pulse-track {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 88px;
  padding: 10px 0 0;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(92,62,31,.1);
}

#podcast-app .pod113-pulse-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  cursor: default;
  transition: opacity .15s;
}
#podcast-app .pod113-pulse-block:hover { opacity: .85; }

#podcast-app .pod113-pulse-wave {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  flex: 1;
  padding: 0 3px;
  overflow: hidden;
}

#podcast-app .pod113-wave-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-width: 2px;
}

#podcast-app .pod113-pulse-svg {
  flex: 1; display: block; width: 100%; min-height: 0; overflow: visible; pointer-events: none;
}

#podcast-app .pod113-pulse-block {
  display: flex;
  flex-direction: column;
}

#podcast-app .pod113-pulse-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 3px 5px;
  gap: 1px;
}

#podcast-app .pod113-pulse-type {
  font-size: .6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#podcast-app .pod113-pulse-dur {
  font-size: .58rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  white-space: nowrap;
}

/* Compact segment edit rows below waveform */
#podcast-app .pod113-segments-compact { gap: 6px; margin-top: 10px; }

#podcast-app .pod113-segment-row {
  display: grid;
  grid-template-columns: 10px 130px minmax(100px,1fr) 68px minmax(80px,1fr) 28px;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(92,62,31,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.6);
}

#podcast-app .pod113-seg-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

#podcast-app .pod113-seg-del {
  padding: 0 !important;
  width: 24px;
  height: 24px;
  font-size: .7rem;
  background: transparent;
  border: 1px solid rgba(220,38,38,.3);
  color: #dc2626;
  border-radius: 6px;
}

/* Guest link block */
#podcast-app .pod113-guest-link-block {
  padding: 12px;
  border: 1px solid rgba(92,62,31,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  margin: 8px 0;
}

#podcast-app .pod113-form-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #8b6e52;
  margin-bottom: 5px;
  display: block;
}

#podcast-app .pod113-guest-linked-card {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 12px;
  background: rgba(239,246,255,.7);
}

#podcast-app .pod113-guest-linked-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

#podcast-app .pod113-avatar.small {
  width: 28px;
  height: 28px;
  font-size: .75rem;
}

#podcast-app .pod113-guest-detail {
  font-size: .78rem;
  color: #374151;
  line-height: 1.4;
  margin-top: 3px;
}

/* Ensure aria-hidden legacy elements are visually hidden */
#podcast-app > [aria-hidden="true"] {
  display: none !important;
}

#podcast-app .pod113-empty {
  padding: 28px;
  text-align: center;
  color: var(--pod-muted);
}

@media (max-width: 1100px) {
  /* At narrower viewports collapse right sidebar into a row below */
  #podcast-app .pod113-command {
    grid-template-columns: minmax(180px, 200px) minmax(0, 1fr);
  }

  #podcast-app .pod113-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* ── Segment total runtime ───────────────────────────────────────────── */
#podcast-app .pod113-seg-total {
  font-size: .76rem; color: var(--pod-muted, #6b7280); padding: 8px 16px;
  border-top: 1px solid rgba(0,0,0,.06); text-align: right;
}
#podcast-app .pod113-seg-total strong { color: var(--pod-ink, #1a1a2e); }

/* ── Episode card actions (Clone button) ─────────────────────────────── */
#podcast-app .pod113-ep-actions {
  display: flex;
  gap: 6px;
}
#podcast-app .pod113-ep-action {
  padding: 3px 10px; border: 1px solid rgba(0,0,0,.12); border-radius: 7px;
  background: none; font-size: .7rem; cursor: pointer; font-family: inherit;
  color: #6b7280; transition: background .12s;
}
#podcast-app .pod113-ep-action:hover { background: rgba(0,0,0,.05); }

/* ── Guest research quick links ──────────────────────────────────────── */
#podcast-app .pod113-guest-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
#podcast-app .pod113-guest-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; font-size: .85rem;
  background: rgba(0,0,0,.05); text-decoration: none;
  transition: background .12s; border: 1px solid rgba(0,0,0,.08);
}
#podcast-app .pod113-guest-link:hover { background: rgba(0,0,0,.1); }

/* ── QC checklist badge on episode card ──────────────────────────────── */
#podcast-app .pod113-qc-badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  background: rgba(107,114,128,.1); border: 1px solid rgba(107,114,128,.2);
  border-radius: 99px; font-size: .62rem; font-weight: 700; color: #6b7280;
  white-space: nowrap;
}
#podcast-app .pod113-qc-badge.done {
  background: rgba(5,150,105,.1); border-color: rgba(5,150,105,.2); color: #059669;
}

@media (max-width: 900px) {
  #podcast-app .pod113-shell {
    padding: 12px 10px 118px;
  }

  #podcast-app .pod113-hero,
  #podcast-app .pod113-command,
  #podcast-app .pod113-lane-hero {
    grid-template-columns: 1fr;
  }

  #podcast-app .pod113-stats,
  #podcast-app .pod113-right,
  #podcast-app .pod113-form,
  #podcast-app .pod113-bento-row {
    grid-template-columns: 1fr;
  }

  #podcast-app .pod113-segment,
  #podcast-app .pod113-guest {
    grid-template-columns: 1fr;
  }

  #podcast-app .pod113-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  #podcast-app .pod113-tab {
    white-space: nowrap;
    scroll-snap-align: start;
  }

  #podcast-app .pod113-wave,
  #podcast-app .pod113-hero::after {
    display: none;
  }
}

@media (max-width: 680px) {
  /* Pulse waveform — allow horizontal scroll rather than clipping on phones */
  #podcast-app .pod113-pulse-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Compact segment edit rows — collapse to vertical stack */
  #podcast-app .pod113-segment-row {
    grid-template-columns: 10px 1fr 1fr;
    grid-template-rows: auto auto;
  }

  /* QC badge — ensure it wraps gracefully inside episode card title row */
  #podcast-app .pod113-episode-title {
    flex-wrap: wrap;
  }
}
