:root {
  color-scheme: light;
  --mobile-ink: #173d36;
  --mobile-muted: #708b85;
  --mobile-accent: #2f9d88;
  --mobile-accent-dark: #197963;
  --mobile-panel: rgba(255, 255, 255, 0.82);
}

html.conversation-app,
html.conversation-app body.mobile-voice-call {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #f5faf8;
}

body.mobile-voice-call {
  margin: 0;
  color: var(--mobile-ink);
  -webkit-tap-highlight-color: transparent;
}

body.mobile-voice-call .stage {
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 4%, rgba(157, 229, 213, 0.42), transparent 33%),
    radial-gradient(circle at 92% 90%, rgba(197, 222, 250, 0.4), transparent 38%),
    linear-gradient(160deg, #f4fbf8 0%, #f7fafc 56%, #eef8f6 100%);
}

body.mobile-voice-call .topbar {
  display: none !important;
}

body.mobile-voice-call .mobile-call-header {
  position: relative;
  z-index: 70;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 4px;
  padding: 8px 14px 4px;
}

body.mobile-voice-call .mobile-call-back,
body.mobile-voice-call .mobile-main-menu-trigger {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 22px;
  color: var(--mobile-ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(30, 110, 95, 0.08);
  backdrop-filter: blur(14px);
}

body.mobile-voice-call .mobile-call-back {
  width: 44px;
  font: 300 34px/1 system-ui, sans-serif;
  padding-bottom: 4px;
}

body.mobile-voice-call .mobile-main-menu-trigger {
  justify-self: end;
  width: 44px;
  box-sizing: border-box;
  padding: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
}

body.mobile-voice-call .mobile-call-heading {
  min-width: 0;
  text-align: center;
  display: grid;
  gap: 1px;
}

body.mobile-voice-call .mobile-call-heading strong {
  overflow: hidden;
  color: #12372f;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mobile-voice-call .mobile-call-heading span {
  overflow: hidden;
  color: var(--mobile-muted);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mobile-voice-call .conversation-cockpit,
html.conversation-app body.mobile-voice-call .call-view {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

body.mobile-voice-call .conversation-cockpit {
  display: block;
  overflow: hidden;
}

html.conversation-app body.mobile-voice-call .call-view {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: transparent !important;
}

body.mobile-voice-call .call-view::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(88vw, 410px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 212, 195, 0.18), rgba(129, 212, 195, 0.045) 60%, transparent 72%);
  transform: translateY(-2%);
  pointer-events: none;
}

body.mobile-voice-call .cam-wrap,
body.mobile-voice-call .avatar-wrap,
body.mobile-voice-call .dance-stage,
body.mobile-voice-call .scene-intro,
body.mobile-voice-call .scene-chip,
body.mobile-voice-call .diagnostic-progress,
body.mobile-voice-call .lesson-progress {
  display: none !important;
}

body.mobile-voice-call .mobile-audio-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  padding: 0 28px 92px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.mobile-voice-call .mobile-call-mode {
  margin-bottom: 24px;
  color: #4d8579;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

body.mobile-voice-call .mobile-voice-orb {
  --mobile-wave-level: 0;
  appearance: none;
  position: relative;
  width: clamp(158px, 45vw, 194px);
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.92), transparent 23%),
    linear-gradient(145deg, rgba(112, 203, 183, 0.92), rgba(58, 155, 137, 0.9));
  box-shadow:
    0 28px 68px rgba(43, 137, 120, 0.23),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: transform 180ms ease, box-shadow 240ms ease, filter 240ms ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}

body.mobile-voice-call .mobile-voice-orb:active:not(:disabled) {
  transform: scale(0.97);
}

body.mobile-voice-call .mobile-voice-orb:focus-visible {
  outline: 3px solid rgba(26, 121, 99, 0.42);
  outline-offset: 8px;
}

body.mobile-voice-call .mobile-voice-orb:disabled {
  cursor: wait;
}

body.mobile-voice-call .mobile-voice-orb[data-holding-end="true"] {
  box-shadow:
    0 28px 68px rgba(43, 137, 120, 0.23),
    0 0 0 7px rgba(184, 74, 74, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

body.mobile-voice-call .mobile-voice-orb[data-action="loading"],
body.mobile-voice-call .mobile-voice-orb[data-action="retry"] {
  animation: mobile-thinking 1.7s ease-in-out infinite;
}

body.mobile-voice-call .mobile-voice-orb[data-action="retry"] {
  filter: saturate(0.62);
}

body.mobile-voice-call .mobile-voice-orb::before,
body.mobile-voice-call .mobile-voice-orb::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(65, 166, 147, 0.18);
  border-radius: inherit;
  opacity: calc(0.34 + var(--mobile-wave-level) * 0.58);
  transform: scale(calc(1 + var(--mobile-wave-level) * 0.06));
  transition: transform 80ms linear, opacity 120ms linear;
}

body.mobile-voice-call .mobile-voice-orb::after {
  inset: -26px;
  opacity: calc(0.14 + var(--mobile-wave-level) * 0.28);
}

body.mobile-voice-call .mobile-voice-orb[data-holding-end="true"]::after {
  border: 3px solid rgba(177, 72, 72, 0.58);
  opacity: 1;
  animation: mobile-end-hold 1.2s linear both;
}

body.mobile-voice-call .mobile-wave-bars {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

body.mobile-voice-call .mobile-wave-bars i {
  width: 4px;
  height: var(--mobile-bar, 18px);
  max-height: 66px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 6px rgba(17, 91, 78, 0.18);
  transition: height 70ms linear, opacity 180ms ease;
}

body.mobile-voice-call .mobile-wave-bars i:nth-child(1),
body.mobile-voice-call .mobile-wave-bars i:nth-child(9) { --mobile-bar: 16px; opacity: 0.72; }
body.mobile-voice-call .mobile-wave-bars i:nth-child(2),
body.mobile-voice-call .mobile-wave-bars i:nth-child(8) { --mobile-bar: 26px; opacity: 0.8; }
body.mobile-voice-call .mobile-wave-bars i:nth-child(3),
body.mobile-voice-call .mobile-wave-bars i:nth-child(7) { --mobile-bar: 38px; opacity: 0.9; }
body.mobile-voice-call .mobile-wave-bars i:nth-child(4),
body.mobile-voice-call .mobile-wave-bars i:nth-child(6) { --mobile-bar: 50px; }
body.mobile-voice-call .mobile-wave-bars i:nth-child(5) { --mobile-bar: 60px; }

body.mobile-voice-call .mobile-voice-name {
  margin-top: 30px;
  max-width: 100%;
  overflow: hidden;
  color: #143b33;
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mobile-voice-call .mobile-voice-prompt {
  margin-top: 8px;
  color: var(--mobile-muted);
  font-size: 13px;
}

body.mobile-voice-call .mobile-voice-orb[data-holding-end="true"] + .mobile-voice-name + .mobile-voice-prompt {
  color: #8c6060;
}

body.mobile-voice-call[data-conversation-state="listening"] .mobile-voice-orb {
  transform: scale(calc(1 + var(--mobile-wave-level) * 0.035));
  box-shadow: 0 30px 76px rgba(43, 137, 120, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.82);
}

body.mobile-voice-call[data-conversation-state="thinking"] .mobile-voice-orb {
  filter: saturate(0.82);
  animation: mobile-thinking 1.7s ease-in-out infinite;
}

body.mobile-voice-call[data-conversation-state="speaking"] .mobile-voice-orb {
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.92), transparent 23%),
    linear-gradient(145deg, #76a9e7, #4b7fca);
  box-shadow: 0 30px 76px rgba(71, 121, 193, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.82);
}

body.mobile-voice-call.conversation-paused .mobile-voice-orb {
  filter: grayscale(0.7);
  opacity: 0.72;
}

@keyframes mobile-thinking {
  0%, 100% { transform: scale(0.99); }
  50% { transform: scale(1.025); }
}

@keyframes mobile-end-hold {
  from { transform: scale(0.88); opacity: 0.18; }
  to { transform: scale(1); opacity: 1; }
}

body.mobile-voice-call .conversation-presence {
  position: absolute;
  z-index: 12;
  left: 18px;
  right: 18px;
  bottom: 22px;
  width: auto;
  transform: none;
  min-height: 40px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  color: #315c53;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
  backdrop-filter: blur(14px);
  transition: bottom 180ms ease;
}

body.mobile-voice-call .conversation-presence i {
  flex: 0 0 auto;
}

body.mobile-voice-call .call-view:has(.live-caption:not(.hidden)) .conversation-presence {
  bottom: 128px;
}

body.mobile-voice-call .live-caption {
  z-index: 16;
  left: 14px !important;
  right: 14px !important;
  bottom: 16px !important;
  width: auto !important;
  max-width: none !important;
  height: 144px;
  min-height: 144px;
  max-height: 144px;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  color: #153b34;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 15px 38px rgba(28, 82, 72, 0.13);
  backdrop-filter: blur(18px);
}

body.mobile-voice-call .live-caption-speaker {
  color: var(--mobile-accent-dark);
}

body.mobile-voice-call .live-caption-copy {
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

html.conversation-app body.mobile-voice-call .live-caption-text {
  height: 5.8em;
  max-height: 5.8em;
  color: #173d36;
  font-size: 16px;
  line-height: 1.45;
}

body.mobile-voice-call .live-caption-controls {
  display: none !important;
}

/* The public adaptive voice surface keeps the orb as its only conversation
   control. A single overflow button holds every secondary destination. */
body.mobile-voice-call.conversation-adaptive .stage {
  grid-template-rows: 58px minmax(0, 1fr);
}

body.mobile-voice-call.conversation-adaptive .mobile-call-header {
  grid-template-columns: minmax(0, 1fr);
  padding-inline: 18px;
}

body.mobile-voice-call.conversation-adaptive .mobile-main-menu-trigger {
  position: absolute;
  right: 14px;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  transform: translateY(-50%);
}

body.mobile-voice-call.conversation-adaptive.conversation-active .mobile-main-menu-trigger,
body.mobile-voice-call.conversation-adaptive.after-talk-open .mobile-main-menu-trigger {
  display: none !important;
}

body.mobile-voice-call.conversation-adaptive .mobile-call-back,
body.mobile-voice-call.conversation-adaptive .mobile-call-mode,
body.mobile-voice-call.conversation-adaptive .conversation-presence,
body.mobile-voice-call.conversation-adaptive .continuation-actions,
body.mobile-voice-call.conversation-adaptive .controls {
  display: none !important;
}

body.mobile-voice-call.conversation-adaptive .mobile-audio-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  padding-bottom: 30px;
  transform: translate(-50%, -50%);
}

body.mobile-voice-call.conversation-adaptive .mobile-voice-orb {
  width: clamp(184px, 52vw, 224px);
}

body.mobile-voice-call .controls {
  position: relative;
  z-index: 80;
  min-height: 86px;
  margin: 0;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: rgba(249, 252, 251, 0.86);
  box-shadow: 0 -10px 30px rgba(31, 89, 78, 0.055);
  backdrop-filter: blur(22px);
}

body.mobile-voice-call .session-progress {
  min-height: 0;
  margin: 0;
}

body.mobile-voice-call .director-status,
body.mobile-voice-call .hint,
body.mobile-voice-call .human-online-btn,
body.mobile-voice-call .finish-speaking-btn,
body.mobile-voice-call .fullscreen-btn {
  display: none !important;
}

body.mobile-voice-call .conversation-timer {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 14px;
  color: #4d746c;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

body.mobile-voice-call .session-alert {
  position: fixed;
  z-index: 240;
  top: calc(env(safe-area-inset-top) + 72px);
  left: 14px;
  right: 14px;
  bottom: auto;
  width: auto;
  margin: 0;
  padding: 9px 11px;
  align-items: center;
  flex-direction: row;
  text-align: left;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(92, 61, 42, 0.16);
}

body.mobile-voice-call .session-alert button {
  width: auto;
  min-width: 92px;
}

body.mobile-voice-call .mobile-mode-confirm {
  box-sizing: border-box;
  width: calc(100% - 20px);
  max-width: 430px;
  margin: auto auto calc(10px + env(safe-area-inset-bottom));
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  color: var(--mobile-ink);
  background: transparent;
}

body.mobile-voice-call .mobile-mode-confirm::backdrop {
  background: rgba(18, 48, 42, 0.28);
  backdrop-filter: blur(3px);
}

body.mobile-voice-call .mobile-mode-confirm-card {
  padding: 20px;
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(252, 254, 253, 0.98);
  box-shadow: 0 24px 70px rgba(20, 69, 61, 0.24);
}

body.mobile-voice-call .mobile-mode-confirm-card > span {
  color: #67837c;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

body.mobile-voice-call .mobile-mode-confirm-card > strong {
  color: #173d36;
  font-size: 20px;
}

body.mobile-voice-call .mobile-mode-confirm-card > p {
  margin: 0 0 5px;
  color: #607a74;
  font-size: 14px;
  line-height: 1.55;
}

body.mobile-voice-call .mobile-mode-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

body.mobile-voice-call .mobile-mode-confirm-actions button {
  min-height: 48px;
  border: 1px solid rgba(31, 100, 87, 0.14);
  border-radius: 15px;
  color: #4c6d66;
  background: #f1f6f4;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

body.mobile-voice-call .mobile-mode-confirm-actions button:active { transform: scale(0.98); }

body.mobile-voice-call .mobile-mode-confirm-actions button.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--mobile-accent), var(--mobile-accent-dark));
}

body.mobile-voice-call .session-actions,
body.mobile-voice-call .session-primary-actions {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

body.mobile-voice-call .session-primary-actions {
  width: auto;
  flex: 1;
}

body.mobile-voice-call .mic-btn,
body.mobile-voice-call .stop-btn {
  display: none !important;
}

body.mobile-voice-call .pause-btn {
  min-width: 112px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 27px;
  font-size: 14px;
  font-weight: 800;
}

body.mobile-voice-call .pause-btn {
  color: var(--mobile-accent-dark);
  border: 1px solid rgba(37, 139, 119, 0.2);
  background: #edf8f5;
}

body.mobile-voice-call .after-talk-btn {
  min-height: 52px;
  border-radius: 26px;
}

body.mobile-voice-call .session-more {
  position: relative;
  flex: 0 0 auto;
}

body.mobile-voice-call .session-more > summary {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 100, 87, 0.12);
  border-radius: 50%;
  color: transparent;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0;
}

body.mobile-voice-call .session-more > summary::after {
  content: "•••";
  color: #53766f;
  font-size: 16px;
  letter-spacing: 2px;
  transform: translateY(-2px);
}

body.mobile-voice-call .session-more-popover {
  position: fixed;
  z-index: 200;
  left: 10px;
  right: 10px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  width: auto;
  max-height: min(62dvh, 500px);
  overflow-y: auto;
  padding: 12px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(252, 254, 253, 0.96);
  box-shadow: 0 24px 70px rgba(20, 69, 61, 0.2);
  backdrop-filter: blur(24px);
}

body.mobile-voice-call .session-more:not([open]) .session-more-popover {
  display: none;
}

body.mobile-voice-call .session-more[open] .session-more-popover {
  display: grid;
}

body.mobile-voice-call .session-more-popover > button,
body.mobile-voice-call .session-more-popover > a,
body.mobile-voice-call .session-language-mode-field {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  border-radius: 14px;
}

body.mobile-voice-call .mobile-mode-switch {
  display: none !important;
  gap: 8px;
  padding: 5px 3px 10px;
  border-bottom: 1px solid rgba(38, 101, 89, 0.1);
}

body.mobile-voice-call .mobile-mode-switch-label {
  padding: 0 5px;
  color: #658079;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.mobile-voice-call .mobile-mode-switch > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

body.mobile-voice-call .mobile-mode-switch a {
  min-width: 0;
  min-height: 44px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 111, 96, 0.11);
  border-radius: 13px;
  color: #3f6960;
  text-align: center;
  text-decoration: none;
  background: #f2f7f5;
  font-size: 13px;
  font-weight: 750;
}

body.mobile-voice-call .mobile-mode-switch a[aria-current="page"] {
  border-color: rgba(34, 137, 116, 0.3);
  color: #126e5c;
  background: #e3f5f0;
  box-shadow: inset 0 0 0 1px rgba(34, 137, 116, 0.08);
}

body.mobile-voice-call .mobile-mode-switch small {
  padding: 0 5px;
  color: #81938f;
  font-size: 11px;
}

body.mobile-voice-call.conversation-adaptive .setup-footer-status,
body.mobile-voice-call.conversation-adaptive #user-gender-state {
  display: none !important;
}

body.mobile-voice-call .mobile-desktop-link {
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: #4f6e68;
  text-decoration: none;
  background: #f2f7f5;
  font-size: 14px;
  font-weight: 700;
}

body.mobile-voice-call .continuation-actions {
  position: fixed;
  z-index: 180;
  left: 12px;
  right: 12px;
  bottom: calc(90px + env(safe-area-inset-bottom));
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 60px rgba(20, 69, 61, 0.2);
}

body.mobile-voice-call .learning-coach-card:not(.hidden) {
  position: fixed;
  z-index: 190;
  left: 10px;
  right: 10px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  max-height: 58dvh;
  overflow-y: auto;
  border-radius: 22px;
  box-shadow: 0 22px 68px rgba(20, 69, 61, 0.22);
}

body.mobile-voice-call dialog {
  max-width: 100vw;
}

body.mobile-voice-call .setup-dialog,
body.mobile-voice-call .tool-drawer,
body.mobile-voice-call .report-drawer {
  margin: auto 0 0;
  width: 100%;
  max-height: 91dvh;
  border-radius: 24px 24px 0 0;
}

/* 自适应英语聊天结束后先给出即时文字稿，诊断只在用户明确选择后生成。
   文字稿和后续诊断都嵌在当前页面，录音上传不会被导航打断。 */
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] {
  inset: 0;
  width: 100vw;
  min-width: 0;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border-radius: 0;
  background: #f5faf8;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .tool-drawer-shell {
  height: 100dvh;
  border: 0;
  box-shadow: none;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .tool-drawer-head {
  position: relative;
  min-height: calc(54px + env(safe-area-inset-top));
  box-sizing: border-box;
  justify-content: center;
  padding: max(7px, env(safe-area-inset-top)) 78px 7px;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .tool-drawer-head > div:first-child {
  text-align: center;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .tool-drawer-head h2 {
  font-size: 17px;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .tool-drawer-head-actions > button {
  width: auto;
  min-width: 58px;
  height: 40px;
  padding: 0 12px;
  border-radius: 20px;
  color: #176f66;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .tool-drawer-head-actions {
  position: absolute;
  z-index: 2;
  top: max(7px, env(safe-area-inset-top));
  right: 12px;
  left: 12px;
  justify-content: space-between;
  pointer-events: none;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .tool-drawer-head-actions > button {
  pointer-events: auto;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #after-talk-close {
  border-color: transparent;
  background: transparent;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #after-talk-account {
  border-color: rgba(35, 116, 98, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-history {
  display: none !important;
}

.after-talk-account-menu {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 520px);
  max-width: 100%;
  max-height: min(82dvh, 720px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px 26px 0 0;
  color: #173d36;
  background: #f7fbf9;
  box-shadow: 0 -24px 70px rgba(20, 69, 61, 0.24);
}

.after-talk-account-menu::backdrop {
  background: rgba(12, 35, 31, 0.28);
  backdrop-filter: blur(3px);
}

.after-talk-account-shell {
  max-height: min(82dvh, 720px);
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  overflow-y: auto;
}

.after-talk-account-shell > header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px 20px;
  border-bottom: 1px solid rgba(35, 116, 98, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

.after-talk-account-shell > header span {
  color: #388b78;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.after-talk-account-shell > header h2 { margin: 2px 0 0; font-size: 20px; }

#after-talk-account-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(35, 116, 98, 0.12);
  border-radius: 50%;
  color: #58766f;
  background: #f4faf7;
  font-size: 22px;
}

.after-talk-account-links {
  display: grid;
  margin: 14px;
  overflow: hidden;
  border: 1px solid rgba(35, 116, 98, 0.1);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.92);
}

.after-talk-account-links > a {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  color: #20483f;
  text-decoration: none;
}

.after-talk-account-links > a + a { border-top: 1px solid rgba(35, 116, 98, 0.09); }
.after-talk-account-links span { display: grid; gap: 3px; }
.after-talk-account-links small { color: #738983; font-size: 11px; font-weight: 500; }
.after-talk-account-links b { color: #79a398; font-size: 20px; font-weight: 500; }

@media (min-width: 760px) {
  .after-talk-account-menu {
    inset: 0;
    border-radius: 26px;
  }
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-resize-handle,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #after-talk-session-picker,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #review-audio-section,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-secondary,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-chat,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #review-vocabulary-section,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #after-talk-feedback,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #after-talk-share,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-note,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-menu,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #review-report-section > header {
  display: none !important;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-workspace,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-content {
  height: 100%;
  padding: 0;
  overflow: hidden;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-workspace {
  display: block;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .adaptive-review-summary {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 14px 18px 13px;
  border-bottom: 1px solid rgba(35, 116, 98, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(25, 83, 72, 0.05);
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .adaptive-review-summary > span {
  color: #27806e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .adaptive-review-summary > strong {
  color: #173f36;
  font-size: 16px;
  line-height: 1.35;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .adaptive-review-summary > p {
  margin: 0;
  color: #6b807a;
  font-size: 12px;
  line-height: 1.5;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #adaptive-review-credits {
  width: fit-content;
  margin-top: 4px;
  color: #187565;
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #review-conversation-section {
  grid-row: 2;
  min-height: 0;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #review-conversation-section > header {
  align-items: center;
  padding: 10px 16px 9px;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #review-conversation-section .after-talk-transcript-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #review-conversation-section .after-talk-transcript-actions small {
  max-width: none;
  white-space: nowrap;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #after-talk-sequence-toggle {
  display: none;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #after-talk-bilingual-toggle {
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-sequence {
  height: 100%;
  max-height: none;
  padding: 5px 16px 12px;
  overflow-y: auto;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #after-talk-report-choice {
  grid-row: 3;
  display: block !important;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(35, 116, 98, 0.14);
  background: rgba(247, 252, 250, 0.96);
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #after-talk-report-choice .after-talk-card {
  width: 100%;
  min-height: 64px;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"][data-report-state="loading"] #after-talk-report,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"][data-report-state="generating"] #after-talk-report {
  opacity: 1;
  cursor: progress;
  background: linear-gradient(120deg, rgba(229, 246, 240, 0.98), rgba(247, 252, 250, 0.98));
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"][data-report-state="ready"] .adaptive-review-summary {
  background: linear-gradient(120deg, rgba(226, 249, 240, 0.98), rgba(246, 252, 250, 0.98));
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #after-talk-report-skip {
  display: none !important;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] #review-report-section {
  grid-row: 2 / 4;
  display: block !important;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"]:not([data-review-view="report"]) #review-report-section {
  display: none !important;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"][data-review-view="report"] #review-conversation-section,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"][data-review-view="report"] #after-talk-report-choice {
  display: none !important;
}

body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-report-host,
body.mobile-voice-call.conversation-adaptive .after-talk-drawer[data-review-scope="adaptive"] .after-talk-report-host .report-frame-wrap {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

/* Desktop Web keeps the same one-orb interaction, with a calmer reading width
   instead of stretching the phone layout and four-line captions edge to edge. */
@media (min-width: 760px) and (min-height: 620px) {
  body.mobile-voice-call.conversation-adaptive .stage {
    grid-template-rows: 78px minmax(0, 1fr);
  }

  body.mobile-voice-call.conversation-adaptive .mobile-call-header {
    padding-top: 20px;
  }

  body.mobile-voice-call .mobile-call-heading strong {
    font-size: 20px;
  }

  body.mobile-voice-call .mobile-call-heading span {
    margin-top: 3px;
    font-size: 13px;
  }

  body.mobile-voice-call .call-view::before {
    width: min(48vw, 540px);
  }

  body.mobile-voice-call.conversation-adaptive .mobile-audio-stage {
    width: min(100%, 760px);
    padding-bottom: 78px;
  }

  body.mobile-voice-call.conversation-adaptive .mobile-voice-orb {
    width: 300px;
  }

  body.mobile-voice-call .mobile-voice-name {
    margin-top: 36px;
    font-size: 32px;
  }

  body.mobile-voice-call .mobile-voice-prompt {
    margin-top: 10px;
    font-size: 14px;
  }

  body.mobile-voice-call .live-caption {
    left: 50% !important;
    right: auto !important;
    bottom: 28px !important;
    width: min(760px, calc(100vw - 48px)) !important;
    max-width: 760px !important;
    height: 156px;
    min-height: 156px;
    max-height: 156px;
    padding: 16px 20px;
    transform: translateX(-50%);
  }

  html.conversation-app body.mobile-voice-call .live-caption-text {
    height: 6em;
    max-height: 6em;
    font-size: 18px;
    line-height: 1.5;
  }
}

@media (max-height: 670px) {
  body.mobile-voice-call .stage { grid-template-rows: 56px minmax(0, 1fr) auto; }
  body.mobile-voice-call .mobile-call-header { padding-top: 4px; }
  body.mobile-voice-call .mobile-audio-stage { padding-bottom: 68px; }
  body.mobile-voice-call .mobile-call-mode { margin-bottom: 14px; }
  body.mobile-voice-call .mobile-voice-orb { width: 136px; }
  body.mobile-voice-call .mobile-voice-name { margin-top: 20px; font-size: 21px; }
  body.mobile-voice-call .live-caption {
    height: 132px;
    min-height: 132px;
    max-height: 132px;
    padding: 10px 13px;
  }
  html.conversation-app body.mobile-voice-call .live-caption-text { font-size: 15px; line-height: 1.4; height: 5.6em; max-height: 5.6em; }
}

@media (orientation: landscape) and (max-height: 520px) {
  body.mobile-voice-call .stage { grid-template-rows: 50px minmax(0, 1fr) 70px; }
  body.mobile-voice-call .mobile-call-header { padding: 3px 14px; }
  body.mobile-voice-call .mobile-call-back,
  body.mobile-voice-call .mobile-main-menu-trigger { min-height: 40px; }
  body.mobile-voice-call .mobile-audio-stage { padding: 0 22px 42px; }
  body.mobile-voice-call .mobile-call-mode,
  body.mobile-voice-call .mobile-voice-prompt { display: none; }
  body.mobile-voice-call .mobile-voice-orb { width: 116px; }
  body.mobile-voice-call .mobile-voice-name { margin-top: 13px; font-size: 19px; }
  body.mobile-voice-call .conversation-presence { min-height: 34px; bottom: 6px; }
  body.mobile-voice-call .live-caption {
    bottom: 5px !important;
    height: 104px;
    min-height: 104px;
    max-height: 104px;
    padding: 7px 11px;
    border-radius: 16px;
  }
  body.mobile-voice-call .live-caption-speaker { padding-block: 1px; font-size: 10px; }
  html.conversation-app body.mobile-voice-call .live-caption-text { height: 5.2em; max-height: 5.2em; font-size: 13px; line-height: 1.3; }
  body.mobile-voice-call .call-view:has(.live-caption:not(.hidden)) .mobile-audio-stage {
    justify-content: flex-start;
    padding-top: 8px;
  }
  body.mobile-voice-call .call-view:has(.live-caption:not(.hidden)) .mobile-voice-orb { width: 96px; }
  body.mobile-voice-call .call-view:has(.live-caption:not(.hidden)) .mobile-voice-name { display: none; }
  body.mobile-voice-call .controls { min-height: 70px; padding-top: 4px; padding-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  body.mobile-voice-call .mobile-voice-orb,
  body.mobile-voice-call .mobile-voice-orb::before,
  body.mobile-voice-call .mobile-voice-orb::after,
  body.mobile-voice-call .mobile-wave-bars i {
    animation: none !important;
    transition: none !important;
  }
}
