:root {
  color-scheme: light;
  --bg: #F7F7F8;
  --panel: #FFFFFF;
  --ink: #111111;
  --muted: #5F6368;
  --line: #D9DCE1;
  --line-strong: #AEB4BD;
  --accent: #002FA7;
  font-family:
    "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: min(980px, calc(100% - 32px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 16px 0;
}

.interview-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.interview-panel {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
}

.topbar,
.section-heading,
.topic-row,
.action-row,
.stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.4rem, 0.9rem + 2.4vw, 3.3rem);
  line-height: 1;
}

h2 {
  font-size: 1rem;
}

.progress-summary {
  display: grid;
  flex-shrink: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 180ms ease;
}

.setup-panel,
.voice-stage {
  margin: 16px;
}

.setup-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.setup-actions {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
}

.setup-panel h2 {
  max-width: 18ch;
  font-size: clamp(1.6rem, 0.8rem + 3.8vw, 4.5rem);
  line-height: 1;
}

.setup-panel p {
  max-width: 72ch;
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.basic-info-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 620px);
}

.basic-info-form label {
  display: grid;
  gap: 7px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.basic-info-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
}

.basic-info-form input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.voice-consent-panel {
  max-width: 760px;
  padding: 18px;
  background: #F7F7F8;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
}

.voice-consent-panel p {
  color: var(--ink);
}

.calibration-text {
  margin: 0;
  padding: 18px;
  color: var(--ink);
  background: #F7F7F8;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  font-size: 1.05rem;
  line-height: 1.5;
}

.calibration-panel {
  display: grid;
  gap: 10px;
}

.calibration-meter {
  height: 16px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--line);
}

.calibration-level {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 80ms linear;
}

.calibration-panel p {
  color: var(--muted);
  font-size: 0.95rem;
}

.voice-stage {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  background:
    linear-gradient(#D9DCE1 1px, transparent 1px),
    linear-gradient(90deg, #D9DCE1 1px, transparent 1px),
    #FFFFFF;
  background-size: 64px 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stage-meta {
  align-items: flex-start;
}

.topic-badge,
.timer {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.topic-badge {
  color: var(--accent);
  text-transform: capitalize;
}

.interviewer-zone {
  display: grid;
  align-content: stretch;
  justify-items: center;
  grid-template-rows: 1fr auto;
  gap: 12px;
  min-width: 0;
  text-align: left;
}

.avatar-transcript-shell {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 26px;
  width: min(100%, 760px);
  align-self: center;
}

.avatar-transcript-shell[data-transcript-open="true"] {
  grid-template-columns: minmax(116px, 0.34fr) minmax(320px, 1fr);
  justify-items: stretch;
}

.interviewer-avatar {
  position: relative;
  display: grid;
  place-items: center;
  /* Shrinks with the window height so the stage fits without scrolling. */
  width: clamp(92px, min(34vw, calc(100vh - 586px)), 205px);
  aspect-ratio: 1;
  color: var(--accent);
  background: #FFFFFF;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transition:
    opacity 160ms linear,
    transform 120ms linear,
    background 160ms linear,
    color 160ms linear;
}

.avatar-transcript-shell[data-transcript-open="true"] .interviewer-avatar {
  width: clamp(84px, min(20vw, 18vh), 136px);
  justify-self: center;
}

.avatar-state-label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  z-index: 2;
  min-width: 54px;
  padding: 4px 10px;
  color: var(--accent);
  background: #FFFFFF;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: clamp(0.72rem, 1.2vw, 0.92rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
}

.interviewer-sprite {
  position: relative;
  width: 42%;
  aspect-ratio: 0.72;
}

.sprite-head,
.sprite-body,
.sprite-line {
  position: absolute;
  display: block;
  border: 2px solid currentColor;
}

.sprite-head {
  top: 0;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  background: #FFFFFF;
  border-radius: 50%;
  transform: translateX(-50%);
}

.sprite-head::before,
.sprite-head::after {
  position: absolute;
  top: 42%;
  width: 5px;
  aspect-ratio: 1;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.sprite-head::before {
  left: 30%;
}

.sprite-head::after {
  right: 30%;
}

.sprite-body {
  right: 16%;
  bottom: 0;
  left: 16%;
  height: 62%;
  background: #FFFFFF;
  border-radius: 8px;
}

.sprite-line {
  top: 64%;
  width: 28%;
  height: 2px;
  background: currentColor;
  border: 0;
}

.sprite-line-left {
  left: 0;
  transform: rotate(24deg);
}

.sprite-line-right {
  right: 0;
  transform: rotate(-24deg);
}

.avatar-transcript-shell[data-transcript-open="true"] .interviewer-sprite {
  width: 34%;
}

.avatar-transcript-shell[data-transcript-open="true"] .sprite-head,
.avatar-transcript-shell[data-transcript-open="true"] .sprite-body {
  border-width: 1.5px;
}

.avatar-transcript-shell[data-transcript-open="true"] .sprite-head::before,
.avatar-transcript-shell[data-transcript-open="true"] .sprite-head::after {
  width: 2.5px;
}

.avatar-transcript-shell[data-transcript-open="true"] .sprite-line {
  top: 62%;
  width: 20%;
  height: 1.5px;
}

.avatar-transcript-shell[data-transcript-open="true"] .sprite-line-left {
  left: 6%;
}

.avatar-transcript-shell[data-transcript-open="true"] .sprite-line-right {
  right: 6%;
}

.transcript-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
}

.transcript-toggle:hover,
.transcript-toggle[aria-expanded="true"] {
  color: #FFFFFF;
  background: var(--accent);
  border-color: var(--accent);
}

.transcript-toggle-icon {
  display: grid;
  gap: 3px;
  width: 18px;
}

.transcript-toggle-icon span {
  display: block;
  height: 2px;
  background: currentColor;
}

.avatar-transcript-shell[data-transcript-open="true"] .transcript-toggle {
  grid-column: 1;
  justify-self: center;
  margin-top: 18px;
}

.participant-transcript-panel {
  display: grid;
  gap: 10px;
  width: 100%;
  max-height: min(38vh, 300px);
  min-height: 0;
  padding: 12px;
  background: #F7F7F8;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.avatar-transcript-shell[data-transcript-open="true"] .participant-transcript-panel {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.interviewer-avatar[data-state="interviewer_speaking"],
.interviewer-avatar[data-audio="playing"] {
  color: #FFFFFF;
  background: var(--accent);
  animation: pulseRing 880ms ease-in-out infinite;
}

.interviewer-avatar[data-state="interviewer_speaking"] .interviewer-sprite,
.interviewer-avatar[data-audio="playing"] .interviewer-sprite {
  animation: interviewerNod 880ms ease-in-out infinite;
}

.interviewer-avatar[data-state="participant_turn"],
.interviewer-avatar[data-state="recording"],
.interviewer-avatar[data-state="silence_wait"] {
  color: var(--accent);
  background: #FFFFFF;
}

.interviewer-avatar[data-state="recording"] {
  transform: scale(1.02);
}

.interviewer-avatar[data-state="silence_wait"] {
  opacity: 0.55;
}

.interviewer-avatar[data-state="generating"],
.interviewer-avatar[data-audio="loading"] {
  color: #FFFFFF;
  background: var(--accent);
  animation: loadingPulse 720ms linear infinite;
}

.interviewer-avatar[data-audio="error"] {
  color: var(--ink);
  background: #FFFFFF;
  border-color: var(--ink);
}

.interviewer-avatar[data-state="complete"] {
  color: #FFFFFF;
  background: var(--ink);
  border-color: var(--ink);
}

.speaker-copy {
  display: grid;
  justify-items: start;
  gap: 8px;
  width: min(760px, 100%);
  max-width: 100%;
  padding: 0 6px;
}

.prompt-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.current-prompt {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.5rem, 0.9rem + 2.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.voice-status,
.path-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.loading-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18px;
}

.loading-indicator span {
  display: block;
  width: 26px;
  height: 6px;
  background: var(--accent);
  animation: loadingBars 720ms ease-in-out infinite;
}

.loading-indicator span:nth-child(2) {
  animation-delay: 120ms;
}

.loading-indicator span:nth-child(3) {
  animation-delay: 240ms;
}

.debug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.debug-actions button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.interviewer-audio-control {
  width: min(420px, 100%);
  margin-top: 4px;
}

.download-transcript-button {
  margin-top: 4px;
  min-height: 46px;
}

.path-zone {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.path-line {
  position: relative;
  height: 86px;
  border-top: 1px solid var(--line-strong);
}

.path-progress {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 240ms ease;
}

.participant-avatar {
  position: absolute;
  top: 18px;
  left: 0%;
  display: grid;
  justify-items: center;
  align-items: start;
  width: 58px;
  height: 68px;
  color: #FFFFFF;
  transform: none;
  transition:
    left 240ms ease,
    transform 120ms linear,
    opacity 120ms linear;
}

.participant-sprite {
  position: relative;
  width: 34px;
  height: 46px;
  color: var(--accent);
}

.participant-head,
.participant-body,
.participant-leg {
  position: absolute;
  display: block;
  border: 2px solid currentColor;
}

.participant-head {
  top: 0;
  left: 50%;
  width: 18px;
  aspect-ratio: 1;
  background: #FFFFFF;
  border-radius: 50%;
  transform: translateX(-50%);
}

.participant-body {
  top: 17px;
  left: 50%;
  width: 22px;
  height: 20px;
  background: #FFFFFF;
  border-radius: 8px 8px 4px 4px;
  transform: translateX(-50%);
}

.participant-leg {
  top: 36px;
  width: 2px;
  height: 12px;
  background: currentColor;
  border: 0;
  transform-origin: top center;
}

.participant-leg-left {
  left: 13px;
}

.participant-leg-right {
  right: 13px;
}

.participant-label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.participant-avatar[data-state="recording"] {
  transform: scale(1.08);
}

.participant-avatar.is-walking .participant-sprite {
  animation: participantWalkBody 240ms steps(2, end) infinite;
}

.participant-avatar.is-walking .participant-leg-left {
  animation: participantWalkLeft 240ms steps(2, end) infinite;
}

.participant-avatar.is-walking .participant-leg-right {
  animation: participantWalkRight 240ms steps(2, end) infinite;
}

.participant-avatar[data-state="silence_wait"] {
  opacity: 0.58;
}

.goal-post {
  position: absolute;
  top: 8px;
  right: 0;
  width: 42px;
  height: 56px;
  border-left: 2px solid var(--ink);
}

.goal-post::before,
.goal-post::after,
.goal-post span {
  position: absolute;
  content: "";
  background: var(--ink);
}

.goal-post::before {
  top: 0;
  left: 0;
  width: 34px;
  height: 2px;
}

.goal-post::after {
  top: 0;
  left: 32px;
  width: 2px;
  height: 20px;
}

.goal-post span {
  left: -5px;
  bottom: 0;
  width: 12px;
  height: 2px;
}

button {
  min-height: 42px;
  padding: 0 16px;
  color: #FFFFFF;
  font-weight: 900;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: var(--accent);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button.secondary {
  color: var(--ink);
  background: #E8EAED;
}

button.secondary:hover {
  background: #DADCE0;
}

button.text-button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line);
}

.transcript {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: min(50vh, 560px);
  margin-top: 12px;
  padding-right: 8px;
  overflow-y: auto;
}

.participant-transcript {
  height: min(26vh, 210px);
  margin-top: 0;
}

.empty-state {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
}

.turn {
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.turn strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.turn.participant strong {
  color: var(--ink);
}

.turn p {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
}

.reflection-list {
  display: grid;
  gap: 8px;
  max-height: 22vh;
  margin: 12px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.reflection-list li {
  padding: 10px 12px;
  color: var(--ink);
  background: #F7F7F8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.testing-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.testing-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.testing-actions {
  display: grid;
  gap: 10px;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 47, 167, 0.22);
  }
  70% {
    box-shadow: 0 0 0 28px rgba(0, 47, 167, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 47, 167, 0);
  }
}

@keyframes loadingPulse {
  0% {
    opacity: 0.52;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.52;
  }
}

@keyframes loadingBars {
  0%,
  100% {
    opacity: 0.28;
    transform: scaleX(0.72);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes interviewerNod {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes participantWalkBody {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes participantWalkLeft {
  0%,
  100% {
    transform: rotate(18deg);
  }
  50% {
    transform: rotate(-18deg);
  }
}

@keyframes participantWalkRight {
  0%,
  100% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(18deg);
  }
}

/* Realtime interview agent additions */
.typed-response-form {
  display: grid;
  gap: 8px;
  width: 100%;
}

.typed-response-form label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.typed-response-form textarea {
  width: 100%;
  min-height: 120px;
  max-height: 40vh;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  resize: vertical;
}

.typed-response-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.typed-response-form button {
  justify-self: start;
}

/* Typed questions: the question is shown as readable text above the answer box. */
.app-shell[data-typed="true"] .avatar-transcript-shell {
  display: none;
}

.app-shell[data-typed="true"] .interviewer-zone {
  grid-template-rows: auto;
  align-content: start;
}

.app-shell[data-typed="true"] .speaker-copy {
  gap: 10px;
  padding-top: 4px;
}

.app-shell[data-typed="true"] .current-prompt {
  max-width: none;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Scenarios: the situation stays on screen as readable text while the
   participant answers. */
.app-shell[data-scenario="true"] .current-prompt {
  max-width: none;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 46px;
  padding: 0 16px;
  color: #FFFFFF;
  font-weight: 900;
  text-decoration: none;
  background: var(--accent);
  border-radius: 8px;
}

.link-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.merge-panel {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
}

.merge-panel .voice-status[data-error="true"] {
  color: #B3261E;
  font-weight: 700;
}

.merge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.merge-actions button {
  min-height: 46px;
}

/* Responsive layout ------------------------------------------------------
   The page scrolls when the content does not fit the window, so nothing is
   cut off on phones, split-screen windows or short windows. */

/* Tablets and split-screen windows */
@media (max-width: 760px) {
  .app-shell {
    gap: 10px;
    width: calc(100% - 20px);
    padding: 10px 0;
  }

  .interview-panel {
    min-height: calc(100vh - 20px);
    min-height: calc(100dvh - 20px);
  }

  .topbar {
    align-items: flex-start;
    padding: 12px 14px 10px;
  }

  .progress-summary {
    gap: 2px;
    font-size: 0.82rem;
  }

  .setup-panel,
  .voice-stage {
    margin: 10px;
  }

  .setup-panel {
    gap: 12px;
    padding: 16px;
  }

  .voice-stage {
    padding: 12px;
    background-size: 48px 48px;
  }

  .calibration-text,
  .voice-consent-panel {
    padding: 14px;
  }

  .avatar-transcript-shell {
    gap: 22px;
  }

  .avatar-transcript-shell[data-transcript-open="true"] {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .avatar-transcript-shell[data-transcript-open="true"] .transcript-toggle {
    margin-top: 0;
  }

  .avatar-transcript-shell[data-transcript-open="true"] .participant-transcript-panel {
    grid-row: auto;
    grid-column: 1;
  }

  .participant-transcript-panel {
    max-height: none;
  }

  .participant-transcript {
    height: auto;
    max-height: 32vh;
  }
}

/* Phones */
@media (max-width: 520px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .progress-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    text-align: left;
  }

  .basic-info-form {
    grid-template-columns: 1fr;
  }

  .action-row.setup-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .action-row button,
  .debug-actions button,
  .download-transcript-button,
  .typed-response-form button,
  .link-button,
  .merge-actions button {
    width: 100%;
    min-height: 46px;
  }

  .speaker-copy {
    padding: 0;
  }

  .calibration-text {
    font-size: 1rem;
  }

  .path-line {
    height: 80px;
  }

  .participant-avatar {
    top: 10px;
  }

  .path-status {
    font-size: 0.86rem;
  }
}

/* Short windows, such as a phone held sideways */
@media (max-height: 620px) {
  .topbar {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .eyebrow {
    margin-bottom: 2px;
  }

  h1 {
    font-size: clamp(1.25rem, 0.8rem + 1.6vw, 1.9rem);
  }

  .setup-panel h2 {
    font-size: clamp(1.4rem, 0.9rem + 2vw, 2.2rem);
  }

  .current-prompt {
    font-size: clamp(1.3rem, 0.9rem + 1.6vw, 2rem);
  }

  .avatar-transcript-shell {
    gap: 20px;
    padding-top: 2px;
  }

  .path-zone {
    gap: 6px;
    padding-top: 4px;
  }

  .path-line {
    height: 76px;
  }

  .participant-avatar {
    top: 6px;
  }

  .goal-post {
    top: 4px;
  }
}

/* Short and wide, such as a phone held sideways: avatar beside the text */
@media (max-height: 620px) and (min-width: 700px) {
  .interviewer-zone {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 28px;
  }

  .avatar-transcript-shell {
    width: auto;
    padding-left: 12px;
  }

  .speaker-copy {
    width: 100%;
  }

  .interviewer-zone:has(.avatar-transcript-shell[data-transcript-open="true"]) {
    grid-template-columns: minmax(0, 1fr);
  }

  .avatar-transcript-shell[data-transcript-open="true"] {
    width: min(100%, 760px);
    padding-left: 0;
  }

  .app-shell[data-typed="true"] .interviewer-zone {
    grid-template-columns: minmax(0, 1fr);
  }
}
