/**
 * FIEZEL · features/interactive-chat/interactive-chat.css
 * Premium Apple Journal & Emil Kowalski Tactile Conversational Interface.
 *
 * Design Pillars:
 * 1. Warm Daylight Travertine Palette: #FDFAF3 backdrop, #FFFFFF ceramic surfaces,
 *    #1B1418 obsidian ink (>16:1 contrast ratio for pristine legibility).
 * 2. Emil Kowalski Tactile Physics: Organic springs (cubic-bezier(0.34, 1.56, 0.64, 1)),
 *    clay micro-capsule action buttons with haptic press depression.
 * 3. Compact Mitra Header: Breathing status aura, clean A1/A2 micro-capsule badge,
 *    and magnetic Call Mode CTA button with emerald tactile bounce.
 * 4. Apple Journal Scenario Card & Checkpoint Goals: Tactile task tracking with
 *    satisfying spring completion checks.
 * 5. Furigana Typography: High-clarity ruby positioning with soft mauve accent,
 *    preventing line collision or crowding.
 * 6. Mobile Safe Viewport Lock: Eliminates double scrollbars and pins bottom dock.
 *
 * Strict Compliance: Weight 800 max on Plus Jakarta Sans (zero faux bold 900).
 */

@import url('./fiezel-voice-orb.css');

:root {
  --fzc-bg: #FDFAF3;
  --fzc-surface: #FFFFFF;
  --fzc-surface-alt: #F8F4EC;
  --fzc-surface-hover: #F2ECE0;
  --fzc-border: #EAE3D6;
  --fzc-border-light: #F2EDE4;
  --fzc-border-strong: #DDD3C4;
  --fzc-ink: #1B1418;
  --fzc-ink-muted: #66595F;
  --fzc-ink-subtle: #96898E;
  --fzc-primary: #1B1418;
  --fzc-primary-text: #FDFAF3;
  --fzc-accent-coral: #E04858;
  --fzc-accent-emerald: #10B981;
  --fzc-accent-emerald-dark: #059669;
  --fzc-accent-amber: #D97706;
  --fzc-accent-blue: #2563EB;
  --fzc-user-bubble: #1B1418;
  --fzc-user-text: #FDFAF3;
  --fzc-assistant-bubble: #FFFFFF;
  --fzc-assistant-border: #EAE3D6;
  --fzc-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fzc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Topbar & Bottom Navigation in Chat View: Clean Single-Header Experience ── */
body.fz-view-chat main.app > .topbar,
body.fz-view-chat .topbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

html body.fz-view-chat nav.bottomnav,
html body.fz-view-chat .bottomnav,
html body.fz-view-chat .nav-scrim,
html body.fz-view-chat #fiezelPawFab,
html body.fz-view-chat .fz-paw-fab {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
}

/* ── Viewport & Root Lock in Chat View: Eliminates page double scroll & jammed gestures ── */
html.fz-view-chat,
body.fz-view-chat {
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior-y: none !important;
}

body.fz-view-chat {
  position: relative !important;
  width: 100% !important;
  min-height: 100% !important;
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ── App Shell Sizing in Chat view: Zero App Shell Chrome ── */
html body.fz-view-chat main.app.app,
html body.fz-lux.fz-view-chat main.app.app,
html body.fz-view-chat main.app,
body.fz-view-chat main.app {
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  flex: 1 1 0px !important;
  min-height: 0 !important;
}

body.fz-view-chat #app {
  height: 100% !important;
  flex: 1 1 0px !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
}

/* Collapse non-visual background elements that cause body scroll leak */
body.fz-view-chat #liveStatus {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  bottom: 0 !important;
}

body.fz-view-chat #fiezelDiagOpen,
body.fz-view-chat #fiezelDiagHost {
  display: none !important;
}

/* ── Reset Global Button Styles inside Chat & Call Overlay ── */
.fzc-container button,
.fzc-call-container button,
#fzcCallOverlay button {
  min-height: unset;
  font: inherit;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* ── Main Chat Shell & Viewport Container ── */
#app > div.fzc-container,
#app > .fzc-container,
.fzc-container {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0px !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  scroll-padding-bottom: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
  background: var(--fzc-bg) !important;
  overflow: hidden !important;
}

#app > #fzcContainer.fzc-mitra-kaiwa-studio-host,
#fzcContainer.fzc-mitra-kaiwa-studio-host {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  padding: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  z-index: 9990 !important;
  overflow: hidden !important;
}

#fzMitraKaiwaStudioFrame {
  width: 100% !important;
  height: 100% !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* ── Sticky Header: Compact Mitra Profile & Actions ── */
.fzc-header {
  flex-shrink: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 8px 16px;
  background: rgba(253, 250, 243, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(234, 227, 214, 0.85);
  z-index: 25;
}

@media (min-width: 768px) {
  .fzc-header {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-left: 24px;
    padding-right: 24px;
  }
}

.fzc-partner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  min-width: 0;
  width: 100%;
}

.fzc-partner-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

/* ── Avatar Mitra: Travertine (#FDFAF3) with Breathing Emerald Ring ── */
.fzc-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FDFAF3;
  background-image: linear-gradient(135deg, #FFFFFF 0%, #FDFAF3 65%, #F4ECE0 100%);
  border: 1.5px solid rgba(234, 227, 214, 0.95);
  box-shadow:
    0 2px 8px rgba(27, 20, 24, 0.06),
    0 1px 2px rgba(27, 20, 24, 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(220, 210, 196, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--fzc-spring);
  user-select: none;
}

.fzc-avatar-wrap:hover {
  transform: scale(1.04);
}

/* Breathing Emerald (#10B981) Ring */
.fzc-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -3.5px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  animation: fzcAvatarBreath 3s infinite ease-in-out;
  pointer-events: none;
}

@keyframes fzcAvatarBreath {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.4;
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    border-color: rgba(16, 185, 129, 0.85);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
  }
}

/* Online Live Status Pulse */
.fzc-online-pulse {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  background: #10B981;
  border: 2px solid #FDFAF3;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 0 6px rgba(16, 185, 129, 0.45);
  z-index: 2;
}

/* Avatar SVG Sensei/Coach Glyph */
.fzc-avatar-wrap svg,
.fzc-avatar-wrap .fzc-icon {
  width: 22px;
  height: 22px;
  color: #1B1418;
  display: block;
  z-index: 1;
}

.fzc-avatar-wrap .fzc-i-fill {
  fill: rgba(27, 20, 24, 0.08);
}

.fzc-avatar-wrap .fzc-i-line {
  stroke: #1B1418;
  stroke-width: 1.75;
}

/* ── Partner Typography & Level Badge (Zero Overlap Invariant) ── */
.fzc-partner-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fzc-partner-info h2 {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--fzc-ink);
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  min-width: 0;
  overflow: hidden;
}

.fzc-partner-name {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: inline-block !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  font-size: inherit !important;
}

.fzc-badge-level {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.60rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #F1EBE0;
  border: 1px solid #E2D7C8;
  color: #4C3F44;
  box-shadow: 0 1px 2px rgba(27, 20, 24, 0.02);
  flex-shrink: 0;
  white-space: nowrap;
}

.fzc-partner-info p,
.fzc-partner-sub {
  font-size: 0.72rem;
  color: var(--fzc-ink-muted);
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Header Actions (Call Mode CTA & Reset) ── */
.fzc-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Tactile Emerald (#10B981) Call Mode CTA Button ── */
.fzc-btn-call {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  background: #10B981 !important;
  background-image: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif) !important;
  font-weight: 800 !important;
  font-size: 0.73rem !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  border: none !important;
  box-shadow:
    0 2px 8px rgba(16, 185, 129, 0.32),
    0 1px 2px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
  cursor: pointer !important;
  transition: transform 0.16s var(--fzc-spring), box-shadow 0.16s ease, background-color 0.16s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.fzc-btn-call:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.48) !important;
}

.fzc-btn-call:active {
  transform: scale(0.96) !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.28) !important;
}

.fzc-call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.fzc-call-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  display: block;
}

.fzc-btn-call:hover .fzc-call-icon {
  transform: rotate(-10deg) scale(1.1);
}

.fzc-call-text {
  display: inline-block;
  line-height: 1;
}

/* ── In-Chat Back Button: Apple HIG >=44x44px Tactile Clay Icon Button ── */
.fzc-btn-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  background-image: linear-gradient(135deg, #FFFFFF 0%, #FAF6EE 100%) !important;
  border: 1.5px solid rgba(226, 218, 206, 0.95) !important;
  color: var(--fzc-ink, #1B1418) !important;
  box-shadow:
    0 2px 6px rgba(27, 20, 24, 0.05),
    0 1px 2px rgba(27, 20, 24, 0.03),
    inset 0 1px 0 #FFFFFF,
    inset 0 -1px 2px rgba(220, 210, 196, 0.3) !important;
  cursor: pointer !important;
  transition: transform 0.16s var(--fzc-spring), background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.16s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  font-size: 0.82rem !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  user-select: none !important;
}

.fzc-btn-back:hover {
  background: #FAF7F0 !important;
  border-color: rgba(210, 200, 186, 1) !important;
  color: #000000 !important;
  transform: translateY(-1px) scale(1.04) !important;
  box-shadow:
    0 4px 10px rgba(27, 20, 24, 0.08),
    0 1px 3px rgba(27, 20, 24, 0.04),
    inset 0 1px 0 #FFFFFF !important;
}

.fzc-btn-back:active {
  transform: scale(0.92) !important;
  background: #F3ECE0 !important;
  border-color: rgba(195, 185, 170, 1) !important;
  box-shadow:
    0 1px 2px rgba(27, 20, 24, 0.08),
    inset 0 1px 2px rgba(27, 20, 24, 0.08) !important;
}

.fzc-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.18s var(--fzc-spring);
}

.fzc-back-icon svg,
.fzc-btn-back svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  display: block;
}

.fzc-btn-back:hover .fzc-back-icon {
  transform: translateX(-2px);
}

/* ── Reset & Speaker Buttons: Apple HIG 44px Tactile Circular Icons ── */
.fzc-btn-reset,
.fzc-btn-speaker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(226, 218, 206, 0.9) !important;
  color: var(--fzc-ink-muted) !important;
  box-shadow: 0 1px 3px rgba(27, 20, 24, 0.04), inset 0 1px 0 #FFF !important;
  cursor: pointer !important;
  transition: transform 0.16s var(--fzc-spring), background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  font-size: 0.82rem !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.fzc-btn-speaker {
  color: var(--fzc-accent-emerald, #00C853) !important;
}

.fzc-btn-speaker.is-muted {
  color: var(--fzc-ink-muted, #8C7B83) !important;
  background: #FAF7F0 !important;
}

.fzc-btn-speaker:hover {
  background: #FAF7F0 !important;
  transform: translateY(-1px) scale(1.04) !important;
}

.fzc-btn-speaker:active {
  transform: scale(0.92) !important;
}

.fzc-btn-reset:hover {
  background: #FAF7F0 !important;
  color: var(--fzc-ink) !important;
  border-color: #D2C5B5 !important;
  transform: translateY(-1px) rotate(-30deg) !important;
}

.fzc-btn-reset:active {
  transform: scale(0.92) !important;
}

.fzc-reset-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  line-height: 1;
}

.fzc-reset-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Scenario Carousel Pills Rail (Tactile Modern Clay) ── */
.fzc-scenarios-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 6px 24px 8px 16px;
  margin: 0 -16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

@media (min-width: 768px) {
  .fzc-scenarios-rail {
    padding-left: 24px;
    padding-right: 32px;
    margin: 0 -24px;
  }
}

.fzc-scenarios-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.fzc-scenarios-rail::after {
  content: '';
  display: block;
  min-width: 16px;
  flex-shrink: 0;
}

/* Clay Modern Scenario Pill */
.fzc-scenario-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(226, 218, 206, 0.9) !important;
  color: var(--fzc-ink) !important;
  box-shadow:
    0 2px 6px rgba(27, 20, 24, 0.04),
    0 1px 2px rgba(27, 20, 24, 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(226, 218, 206, 0.35) !important;
  cursor: pointer !important;
  transition:
    transform 0.16s var(--fzc-spring),
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease !important;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
}

.fzc-scenario-chip:hover {
  background: #FAF7F0 !important;
  border-color: #D2C5B5 !important;
  transform: translateY(-1px);
  box-shadow:
    0 4px 10px rgba(27, 20, 24, 0.07),
    0 1px 3px rgba(27, 20, 24, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 1) !important;
}

.fzc-scenario-chip:active {
  transform: scale(0.96) !important;
  box-shadow:
    0 1px 2px rgba(27, 20, 24, 0.04),
    inset 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* Active Badge: Deep Dark Obsidian (#1B1418) Clay */
.fzc-scenario-chip.is-active {
  background: #1B1418 !important;
  color: #FDFAF3 !important;
  border: 1px solid #1B1418 !important;
  font-weight: 800 !important;
  box-shadow:
    0 3px 10px rgba(27, 20, 24, 0.28),
    0 1px 3px rgba(27, 20, 24, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px 2px rgba(0, 0, 0, 0.3) !important;
}

.fzc-scenario-chip.is-active:hover {
  background: #2D2328 !important;
  border-color: #2D2328 !important;
  transform: translateY(-1px);
  box-shadow:
    0 5px 14px rgba(27, 20, 24, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.22) !important;
}

.fzc-scenario-chip.is-active:active {
  transform: scale(0.96) !important;
}

.fzc-scenario-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  line-height: 1;
}

.fzc-scenario-chip-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobile Narrow Safeguard (covers standard phones <=430px) */
@media (max-width: 430px) {
  .fzc-header {
    padding-left: 10px;
    padding-right: 10px;
  }
  .fzc-partner-bar {
    gap: 8px;
  }
  .fzc-partner-meta {
    gap: 8px;
    min-width: 0;
  }
  .fzc-avatar-wrap {
    width: 38px;
    height: 38px;
  }
  .fzc-avatar-wrap svg,
  .fzc-avatar-wrap .fzc-icon {
    width: 18px;
    height: 18px;
  }
  .fzc-partner-info {
    min-width: 0;
  }
  .fzc-partner-info h2 {
    font-size: 0.84rem;
    gap: 4px;
    flex-wrap: nowrap;
  }
  .fzc-badge-level {
    padding: 1px 5px;
    font-size: 0.58rem;
  }
  .fzc-header-actions {
    gap: 5px;
  }
  .fzc-btn-call {
    padding: 5px 8px !important;
    font-size: 0.68rem !important;
    gap: 4px !important;
  }
  .fzc-btn-reset,
  .fzc-btn-speaker,
  .fzc-btn-back {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    position: relative !important;
  }
  .fzc-btn-reset::after,
  .fzc-btn-speaker::after,
  .fzc-btn-back::after {
    content: '';
    position: absolute;
    inset: -3px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* ── Feed & Messages Stream (The ONE AND ONLY Scrollable Element) ── */
.fzc-feed {
  flex: 1 1 0px !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 14px 16px 36px 16px;
  scroll-padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 20, 24, 0.15) transparent;
}

.fzc-msg-row,
.fzc-msg-box,
.fzc-bubble,
.fzc-scenario-card,
.fzc-reveal-box,
.fzc-shadow-box,
.fzc-japanese-text {
  touch-action: pan-y !important;
}

.fzc-feed::-webkit-scrollbar {
  width: 5px;
}

.fzc-feed::-webkit-scrollbar-track {
  background: transparent;
}

.fzc-feed::-webkit-scrollbar-thumb {
  background: rgba(27, 20, 24, 0.15);
  border-radius: 999px;
}

.fzc-feed::-webkit-scrollbar-thumb:hover {
  background: rgba(27, 20, 24, 0.28);
}

@media (max-height: 680px) {
  .fzc-feed {
    padding-top: 10px;
    padding-bottom: 38px;
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .fzc-feed {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 40px;
  }
}

/* ── Scenario Card & Goal Checkpoints (Apple Journal Card Style) ── */
.fzc-scenario-card {
  background: #FFFFFF;
  border: 1px solid rgba(234, 227, 214, 0.95);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(27, 20, 24, 0.03), 0 1px 2px rgba(27, 20, 24, 0.02);
  margin-bottom: 4px;
}

.fzc-scenario-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--fzc-ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.fzc-scenario-card-desc {
  font-size: 0.80rem;
  color: var(--fzc-ink-muted);
  line-height: 1.5;
  margin: 0;
}

.fzc-goals-container {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(226, 218, 205, 0.8);
}

.fzc-goals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--fzc-ink-muted);
  letter-spacing: 0.02em;
}

.fzc-goal-bonus-tag {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-weight: 800;
}

.fzc-goals-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fzc-goal-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  color: var(--fzc-ink-muted);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.fzc-goal-item.is-done {
  color: #065F46;
  font-weight: 700;
}

.fzc-goal-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #D5C8B8;
  font-size: 11px;
  font-weight: 800;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.2s var(--fzc-spring);
  background: #FFFFFF;
}

.fzc-goal-item.is-done .fzc-goal-check {
  background: var(--fzc-accent-emerald);
  border-color: var(--fzc-accent-emerald);
  color: #FFFFFF;
  transform: scale(1.05);
}

/* ── Message Rows & Bubbles ── */
.fzc-msg-row {
  display: flex;
  width: 100%;
  animation: fzcMsgFadeIn 0.24s var(--fzc-ease-out);
}

@keyframes fzcMsgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fzc-msg-row.is-assistant {
  justify-content: flex-start;
}

.fzc-msg-row.is-user {
  justify-content: flex-end;
}

.fzc-msg-box {
  max-width: 86%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fzc-msg-row.is-assistant:has(.fzc-suggestions-row) .fzc-msg-box,
.fzc-msg-box:has(.fzc-suggestions-row),
.fzc-msg-box.has-suggestions {
  max-width: 100% !important;
  width: 100% !important;
}

@media (min-width: 640px) {
  .fzc-msg-box {
    max-width: 76%;
  }
  .fzc-msg-row.is-assistant:has(.fzc-suggestions-row) .fzc-msg-box,
  .fzc-msg-box:has(.fzc-suggestions-row),
  .fzc-msg-box.has-suggestions {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ── High-Contrast Message Bubbles (>16:1) with Organic Corner Tails ── */
.fzc-bubble {
  padding: 13px 17px;
  line-height: 1.6;
  font-size: 0.93rem;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  position: relative;
  word-break: break-word;
  letter-spacing: -0.01em;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Assistant Bubble: Pristine White Ceramic on Daylight Travertine (#FFFFFF on #FDFAF3, >17:1 contrast) */
.fzc-msg-row.is-assistant .fzc-bubble {
  background: #FFFFFF;
  border: 1px solid rgba(234, 227, 214, 0.95);
  color: var(--fzc-ink);
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* User Bubble: Obsidian Ink with Right Tail (#1B1418 with #FDFAF3 text, >17:1 contrast) */
.fzc-msg-row.is-user .fzc-bubble {
  background: var(--fzc-user-bubble);
  color: var(--fzc-user-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 3px 12px rgba(27, 20, 24, 0.12);
}

/* ── Furigana Display & Japanese Typography ── */
.fzc-japanese-text {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  line-height: 1.85;
  text-align: left;
  letter-spacing: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

.fzc-japanese-text .fzc-message-text {
  display: inline;
  letter-spacing: 0;
  text-align: left;
}

.fzc-japanese-text ruby {
  ruby-align: center !important;
  ruby-position: over !important;
  -webkit-ruby-position: before !important;
}

.fzc-japanese-text rt {
  font-size: 0.64em !important;
  line-height: 1 !important;
  color: #55484E !important; /* Kontras 8.45:1 (WCAG AAA) */
  font-weight: 700 !important;
  padding-bottom: 2px !important;
  letter-spacing: 0.02em !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  display: ruby-text !important;
  text-align: center !important;
}

body.fz-ja-no-furigana .fzc-japanese-text rt {
  display: none;
}

.fzc-romaji {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  color: #574A50; /* Kontras 8.12:1 (WCAG AAA) */
  font-weight: 500;
  margin-top: 6px;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.01em;
  word-break: break-word;
}

body.fz-ja-no-romaji .fzc-romaji {
  display: none;
}

/* ── Translation & Grammar Accordion Callout ── */
.fzc-reveal-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(253, 250, 243, 0.85);
  border: 1px solid rgba(234, 227, 214, 0.85);
  border-radius: 12px;
  font-size: 0.80rem;
  color: var(--fzc-ink-muted);
  line-height: 1.5;
  animation: fzcSlideDown 0.2s var(--fzc-ease-out);
}

.fzc-reveal-box.is-hidden {
  display: none;
}

.fzc-trans-text strong {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
  color: var(--fzc-ink);
}

.fzc-grammar-note {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #FEF9ED;
  border: 1px solid #F6E2B7;
  color: #7B4E03;
  font-size: 0.76rem;
  line-height: 1.45;
}

.fzc-grammar-note strong {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
}

/* ── Clay Micro-Capsule Action Toolbar (Tactile Emil Kowalski Physics) ── */
.fzc-actions-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 0;
  flex-wrap: wrap;
}

.fzc-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 14px !important;
  min-height: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(226, 218, 205, 0.95) !important;
  box-shadow: 0 1px 3px rgba(27, 20, 24, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: #4A3E44 !important;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease, box-shadow 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s ease, color 0.15s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  user-select: none !important;
}

.fzc-action-btn .fzc-btn-icon-wrap svg,
.fzc-action-btn .fzc-icon,
.fzc-action-btn .fzc-pill-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fzc-action-btn:hover {
  transform: translateY(-2px) scale(1.03) !important;
  background: #FAF6EE !important;
  border-color: #D2C5B5 !important;
  color: var(--fzc-ink) !important;
  box-shadow: 0 4px 10px rgba(27, 20, 24, 0.08), inset 0 1px 0 #FFFFFF !important;
}

.fzc-action-btn:hover .fzc-btn-icon-wrap svg,
.fzc-action-btn:hover .fzc-icon,
.fzc-action-btn:hover .fzc-pill-svg {
  transform: scale(1.12);
}

.fzc-action-btn:active {
  transform: translateY(1px) scale(0.95) !important;
  box-shadow: 0 1px 2px rgba(27, 20, 24, 0.04), inset 0 1px 2px rgba(27, 20, 24, 0.06) !important;
}

.fzc-action-btn.is-playing {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #065F46 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.fzc-action-btn.is-playing .fzc-btn-icon-wrap svg,
.fzc-action-btn.is-playing .fzc-icon,
.fzc-action-btn.is-playing .fzc-pill-svg {
  stroke: #059669;
  animation: fzcAudioPulse 1.1s infinite alternate ease-in-out;
}

@keyframes fzcAudioPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.18); }
}

.fzc-action-btn.is-playing.is-pulsing {
  transform: scale(1.06) !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out !important;
}

.fzc-avatar-wrap.is-speaking .fzc-online-pulse {
  background: #10B981 !important;
  transform: scale(1.5) !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.45) !important;
  animation: fzcAvatarPulse 0.45s infinite alternate ease-in-out !important;
}

@keyframes fzcAvatarPulse {
  0% { transform: scale(1.1); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3); }
  100% { transform: scale(1.6); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.0); }
}

.fzc-action-btn.is-shadowing {
  background: #FFF7ED !important;
  border-color: #FDBA74 !important;
  color: #9A3412 !important;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  animation: fzcClayPulse 1.2s infinite alternate ease-in-out;
}

.fzc-action-btn.is-shadowing .fzc-pill-svg {
  stroke: #C2410C;
}

@keyframes fzcClayPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.22); }
  100% { transform: scale(1.04); box-shadow: 0 0 0 5px rgba(234, 88, 12, 0); }
}

/* ── Shadowing Speech Feedback Card (Tactile Clay with Word-by-Word Breakdown) ── */
.fzc-shadow-box {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 218, 205, 0.95);
  box-shadow: 0 2px 8px rgba(27, 20, 24, 0.04), inset 0 1px 0 #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fzcSlideDown 0.22s var(--fzc-ease-out);
}

.fzc-shadow-box.is-perfect,
.fzc-shadow-box:not(.is-retry):not(.is-listening) {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border-color: #A7F3D0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08), inset 0 1px 0 #FFFFFF;
}

.fzc-shadow-box.is-listening {
  background: #FFF7ED;
  border-color: #FDBA74;
}

.fzc-shadow-box.is-retry {
  background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 100%);
  border-color: #FDE68A;
}

.fzc-shadow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.80rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
}

.fzc-shadow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #065F46;
}

.fzc-shadow-box.is-listening .fzc-shadow-badge {
  color: #C2410C;
}

.fzc-shadow-box.is-retry .fzc-shadow-badge {
  color: #92400E;
}

.fzc-shadow-xp {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--fzc-accent-emerald);
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.3);
}

/* ── Word-by-Word Evaluation Breakdown ── */
.fzc-shadow-compare {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed rgba(226, 218, 205, 0.85);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fzc-shadow-compare-label {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--fzc-ink-muted);
  letter-spacing: 0.02em;
}

.fzc-shadow-tokens-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-end;
}

.fzc-token {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.25;
  position: relative;
  transition: transform 0.15s ease, background-color 0.15s ease;
  user-select: none;
}

/* Kata tepat berwarna zamrud #10B981 */
.fzc-token.is-correct {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #10B981;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.06);
}

.fzc-token.is-correct .fzc-token-check {
  font-size: 0.65rem;
  color: #059669;
  font-weight: 800;
  margin-top: 1px;
}

/* Kata meleset diberi panduan kana/IPA */
.fzc-token.is-missed {
  background: #FFFBEB;
  border: 1px dashed #FCD34D;
  color: #B45309;
  font-weight: 700;
}

.fzc-token-guide {
  font-size: 0.64rem;
  color: #D97706;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 2px;
  padding: 0 2px;
  border-bottom: 1px dotted rgba(217, 119, 6, 0.6);
}

.fzc-shadow-heard {
  font-size: 0.75rem;
  color: var(--fzc-ink-muted);
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.4;
  margin-top: 2px;
}

.fzc-shadow-heard-lbl {
  font-weight: 700;
  color: var(--fzc-ink-muted);
}

.fzc-shadow-heard-val {
  font-style: italic;
  color: var(--fzc-ink);
}

/* ── Live Soundwave Visualizer Bars ── */
.fzc-wave-bars {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
  margin-left: 4px;
}

.fzc-wave-bars span {
  display: block;
  width: 2.5px;
  height: 100%;
  border-radius: 999px;
  background: #E65100;
  animation: fzcWaveAnim 0.8s infinite ease-in-out;
}

.fzc-wave-bars span:nth-child(2) { animation-delay: 0.15s; }
.fzc-wave-bars span:nth-child(3) { animation-delay: 0.3s; }
.fzc-wave-bars span:nth-child(4) { animation-delay: 0.45s; }

@keyframes fzcWaveAnim {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ── Real-time Kinetic Audio Equalizer in Shadowing Box ── */
.fzc-shadow-box.is-listening {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFDF8 100%) !important;
  border-color: #FDBA74 !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.08), 0 0 0 1px rgba(251, 146, 60, 0.25) !important;
}

.fzc-shadow-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #EA580C;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.5);
  animation: fzcShadowDotPulse 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

@keyframes fzcShadowDotPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.fzc-shadow-live-eq {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 8px;
  background: rgba(255, 237, 213, 0.6);
  border-radius: 999px;
}

.fzc-eq-bar {
  display: block;
  width: 3.5px;
  min-height: 4px;
  max-height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #F97316 0%, #EA580C 100%);
  transition: height 0.06s ease-out;
  will-change: height;
}

.fzc-shadow-box.is-speaking-detected .fzc-eq-bar {
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
}

.fzc-shadow-live-status {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fzc-shadow-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9A3412;
  background: #FFEDD5;
  border: 1px solid #FED7AA;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
  transition: all 0.2s ease;
}

.fzc-shadow-status-pill.is-detecting {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.fzc-shadow-live-transcript {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--fzc-ink);
  min-height: 18px;
  line-height: 1.4;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px dashed rgba(251, 146, 60, 0.4);
}

/* ── Suggestion Chips (Swipeable Horizontal Rail) ── */
.fzc-suggestions-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 16px 12px 4px;
  margin-top: 8px;
  margin-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  width: 100%;
  box-sizing: border-box;
}

.fzc-suggestions-row::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.fzc-suggestions-row::after {
  content: '';
  display: block;
  min-width: 16px;
  flex-shrink: 0;
}

.fzc-suggestion-chip {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  padding: 10px 16px !important;
  min-height: unset !important;
  min-width: 160px !important;
  max-width: 300px !important;
  border-radius: 14px !important;
  background: #FFFFFF !important;
  border: 1px solid var(--fzc-border) !important;
  text-align: left !important;
  flex-shrink: 0 !important;
  scroll-snap-align: start !important;
  cursor: pointer !important;
  box-shadow: 0 1px 4px rgba(27, 20, 24, 0.04), inset 0 1px 0 #FFF !important;
  transition: transform 0.16s var(--fzc-spring), background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
  white-space: normal !important;
  -webkit-tap-highlight-color: transparent !important;
}

.fzc-suggestion-chip:hover {
  background: #FAF6EE !important;
  border-color: #D2C5B5 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(27, 20, 24, 0.08) !important;
}

.fzc-suggestion-chip:active {
  transform: scale(0.97) !important;
}

.fzc-suggestion-chip strong {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--fzc-ink);
  display: block;
  line-height: 1.3;
}

.fzc-suggestion-chip span {
  font-size: 0.72rem;
  color: var(--fzc-ink-muted);
  display: block;
  line-height: 1.25;
}

/* ── User Misconception Hint Callout ── */
.fzc-user-hint {
  background: #FFF4F2;
  border: 1px solid #FFCDD2;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.76rem;
  color: #C62828;
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.45;
  animation: fzcSlideDown 0.2s ease-out;
}

.fzc-user-hint strong {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
}

/* ── Typing Indicator ── */
.fzc-typing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--fzc-surface);
  border: 1px solid var(--fzc-border);
  border-radius: 18px 18px 18px 4px;
  width: fit-content;
  color: var(--fzc-ink-muted);
  font-size: 0.76rem;
  box-shadow: 0 2px 8px rgba(27, 20, 24, 0.03);
}

.fzc-dot-pulse {
  display: inline-flex;
  gap: 4px;
}

.fzc-dot-pulse span {
  width: 5px;
  height: 5px;
  background: var(--fzc-ink-subtle);
  border-radius: 50%;
  animation: fzcDotBounce 1.4s infinite ease-in-out both;
}

.fzc-dot-pulse span:nth-child(1) { animation-delay: -0.32s; }
.fzc-dot-pulse span:nth-child(2) { animation-delay: -0.16s; }

@keyframes fzcDotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* ── Bottom Input Dock (Clay Surface & Pinned to Flex Bottom) ── */
.fzc-dock {
  flex-shrink: 0 !important;
  margin-top: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 16px 14px 16px !important;
  padding: 8px 16px calc(14px + constant(safe-area-inset-bottom, 0px)) 16px !important;
  padding: 8px 16px calc(14px + env(safe-area-inset-bottom, 0px)) 16px !important;
  background: rgba(253, 250, 243, 0.94) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-top: 1px solid rgba(234, 227, 214, 0.9) !important;
  position: relative !important;
  bottom: 0 !important;
  z-index: 50 !important;
}

@media (min-width: 768px) {
  .fzc-dock {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Input Bar Clay Melengkung: Multi-line Auto-Grow */
.fzc-dock-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #E2D9CC;
  border-radius: 24px;
  padding: 4px 6px 4px 10px;
  box-shadow: 0 2px 10px rgba(27, 20, 24, 0.04), inset 0 1px 0 #FFFFFF;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 52px;
  box-sizing: border-box;
}

.fzc-dock-form:focus-within {
  border-color: var(--fzc-ink);
  box-shadow: 0 0 0 3px rgba(27, 20, 24, 0.08), 0 4px 16px rgba(27, 20, 24, 0.06), inset 0 1px 0 #FFFFFF;
}

.fzc-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 10px 8px !important;
  font-size: 1rem !important; /* 16px: Eliminates iOS Safari Hardware Auto-Zoom */
  line-height: 1.4 !important;
  color: var(--fzc-ink) !important;
  min-height: 24px !important;
  max-height: 120px !important;
  min-width: 0 !important;
  outline: none !important;
  font-family: inherit;
  letter-spacing: -0.01em;
  resize: none !important;
  overflow-y: hidden;
  box-sizing: border-box !important;
  touch-action: manipulation !important;
  field-sizing: content;
}

.fzc-input::placeholder {
  color: var(--fzc-ink-subtle);
  font-size: 0.90rem;
}

.fzc-btn-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease, box-shadow 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation !important;
}

.fzc-btn-speaker-dock {
  background: transparent !important;
  color: var(--fzc-accent-emerald, #00C853) !important;
}

.fzc-btn-speaker-dock.is-muted {
  color: var(--fzc-ink-muted, #8C7B83) !important;
}

.fzc-btn-speaker-dock:hover {
  background: #FAF7F0 !important;
}

.fzc-btn-speaker-dock:active {
  transform: scale(0.92) !important;
}

/* Tombol Mic Taktil (Clay Round Button with Tactile Bounce) */
.fzc-btn-mic {
  background: #F4EFE6 !important;
  border: 1px solid #DDD3C4 !important;
  color: #4A3E44 !important;
  box-shadow: 0 1px 3px rgba(27, 20, 24, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.fzc-btn-mic:hover {
  background: #ECE5D8 !important;
  border-color: #CFC2B0 !important;
  color: var(--fzc-ink) !important;
  transform: scale(1.07) translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(27, 20, 24, 0.08), inset 0 1px 0 #FFFFFF !important;
}

.fzc-btn-mic:active {
  transform: scale(0.92) translateY(1px) !important;
  box-shadow: 0 1px 2px rgba(27, 20, 24, 0.04), inset 0 1px 2px rgba(27, 20, 24, 0.08) !important;
}

.fzc-btn-mic.is-listening {
  background: #EF4444 !important;
  border-color: #DC2626 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25), 0 4px 12px rgba(239, 68, 68, 0.4) !important;
  animation: fzcMicPulse 1.2s infinite alternate ease-in-out !important;
}

@keyframes fzcMicPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  100% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Tombol Kirim Bulat Obsidian yang Presisi */
.fzc-btn-send {
  background: #1B1418 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #FDFAF3 !important;
  box-shadow: 0 2px 8px rgba(27, 20, 24, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.fzc-btn-send:hover {
  background: #2D2328 !important;
  transform: scale(1.07) translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(27, 20, 24, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.fzc-btn-send:hover .fzc-send-svg {
  transform: translate(1px, -1px);
}

.fzc-btn-send:active {
  transform: scale(0.92) translateY(1px) !important;
  box-shadow: 0 1px 4px rgba(27, 20, 24, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.fzc-mic-svg,
.fzc-send-svg {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Animation Helpers ── */
@keyframes fzcSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════════
   SEAMLESS FLIP TRANSITION & FULL-SCREEN VOICE CALL SCREEN
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Voice Stage Seamless Flip Engine ── */

.fzc-call-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #34D399;
}

.fzc-call-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
  animation: fzcDotGlow 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes fzcDotGlow {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ── Seamless 3D Flip Engine ── */
.fzc-container {
  perspective: 1600px;
  -webkit-perspective: 1600px;
}

.fzc-flip-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 0px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.fzc-container.is-call-active .fzc-flip-stage {
  transform: rotateY(180deg);
}

.fzc-panel-chat,
.fzc-panel-call {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.fzc-panel-chat {
  transform: rotateY(0deg);
  z-index: 2;
}

.fzc-container.is-call-active .fzc-panel-chat {
  pointer-events: none;
  user-select: none;
}

.fzc-panel-call {
  transform: rotateY(180deg);
  z-index: 1;
  background: radial-gradient(circle at 50% 25%, #FFFDF8 0%, #F6ECE0 55%, #EBE0D0 100%);
  color: var(--fzc-ink);
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

.fzc-container.is-call-active .fzc-panel-call {
  z-index: 3;
  pointer-events: auto;
}

/* ── Full-Screen Call Screen Inner Layout ── */
.fzc-call-screen-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  box-sizing: border-box;
  position: relative;
  background-image: radial-gradient(circle at 50% 35%, rgba(245, 158, 11, 0.08) 0%, rgba(224, 72, 88, 0.05) 50%, transparent 75%);
}

/* ── Top Bar ── */
.fzc-call-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  flex-shrink: 0;
  padding: 4px 0;
}

.fzc-call-scenario-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 218, 205, 0.8);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--fzc-ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fzc-call-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(27, 20, 24, 0.05);
  border: 1px solid rgba(27, 20, 24, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--fzc-ink);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

.fzc-call-hd-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  color: #065F46;
}

/* ── Call Persona Selector (Frosted Dark Titanium & Compact Width) ── */
.fzc-call-persona-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  flex: 0 0 auto;
  margin-left: auto;
}

.fzc-call-persona-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 8px !important;
  border-radius: 999px;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(253, 250, 243, 0.72) !important;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.70rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.fzc-call-persona-btn:hover {
  color: #FDFAF3 !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.fzc-call-persona-btn.is-active {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FDFAF3 !important;
  font-weight: 800;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
  transform: none;
}

.fzc-call-persona-btn:active {
  transform: scale(0.96);
}

.fzc-persona-icon {
  font-size: 0.82rem;
  line-height: 1;
  display: inline-flex;
}

.fzc-persona-name {
  white-space: nowrap;
}

/* ── Partner Persona Info in Topbar ── */
.fzc-call-partner-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
  max-width: 140px;
  margin-top: 0;
  text-align: left;
}

.fzc-call-partner-meta-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fzc-call-partner-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FDFAF3 !important;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fzc-call-timer {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(253, 250, 243, 0.65);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.fzc-call-avatar-outer {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF5EB 0%, #FFE8D6 100%);
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(27, 20, 24, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 8px;
}

.fzc-call-avatar-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  animation: fzcCallAvatarPulse 2.4s infinite ease-in-out;
}

@keyframes fzcCallAvatarPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.14); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.fzc-call-partner-name,
.fzc-call-overlay .fzc-call-partner-name {
  font-size: 0.90rem !important;
  font-weight: 800 !important;
  color: #FDFAF3 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

.fzc-call-status-text {
  font-size: 0.82rem;
  color: var(--fzc-ink-muted);
  margin: 0;
  transition: all 0.2s ease;
  min-height: 18px;
}

/* ── Centered Voice Orb Visualizer ── */
.fzc-call-orb-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 0px;
  min-height: 180px;
  max-height: 280px;
}

.fzc-call-orb-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fzc-call-orb-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(224, 72, 88, 0.15) 50%, transparent 70%);
  filter: blur(20px);
  transition: all 0.4s ease;
}

.fzc-call-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fzc-call-ring.ring-1 {
  width: 140px;
  height: 140px;
  border: 1.5px solid rgba(224, 72, 88, 0.2);
}

.fzc-call-ring.ring-2 {
  width: 180px;
  height: 180px;
  border: 1.5px solid rgba(245, 158, 11, 0.16);
}

.fzc-call-ring.ring-3 {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.fzc-call-orb-sphere {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFE2B8 0%, #F68B6E 40%, #883B61 80%, #351C2C 100%);
  box-shadow:
    0 8px 28px rgba(224, 72, 88, 0.35),
    0 2px 10px rgba(27, 20, 24, 0.2),
    inset -4px -4px 12px rgba(0, 0, 0, 0.35),
    inset 4px 4px 12px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  z-index: 2;
}

.fzc-call-orb-specular {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 28px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 80%);
  transform: rotate(-30deg);
}

.fzc-call-eq {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  height: 24px;
  z-index: 3;
}

.fzc-call-eq span {
  display: block;
  width: 3.5px;
  height: 8px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  transition: height 0.15s ease;
}

/* Orb Dynamic States */
.fzc-call-orb-wrap.is-state-connecting .fzc-call-orb-sphere {
  animation: fzcOrbBreath 2s infinite ease-in-out;
}

.fzc-call-orb-wrap.is-state-listening .fzc-call-orb-sphere {
  transform: scale(1.05);
  box-shadow:
    0 8px 32px rgba(16, 185, 129, 0.4),
    0 0 50px rgba(52, 211, 153, 0.25),
    inset -4px -4px 12px rgba(0, 0, 0, 0.3),
    inset 4px 4px 12px rgba(255, 255, 255, 0.6);
}
.fzc-call-orb-wrap.is-state-listening .ring-1 {
  border-color: rgba(16, 185, 129, 0.35);
  animation: fzcRingWave 1.6s infinite ease-out;
}
.fzc-call-orb-wrap.is-state-listening .ring-2 {
  border-color: rgba(52, 211, 153, 0.25);
  animation: fzcRingWave 1.6s infinite ease-out 0.4s;
}
.fzc-call-orb-wrap.is-state-listening .fzc-call-eq span:nth-child(1) { animation: fzcEqAnim 0.7s infinite alternate 0.1s; }
.fzc-call-orb-wrap.is-state-listening .fzc-call-eq span:nth-child(2) { animation: fzcEqAnim 0.7s infinite alternate 0.25s; }
.fzc-call-orb-wrap.is-state-listening .fzc-call-eq span:nth-child(3) { animation: fzcEqAnim 0.7s infinite alternate 0.4s; }
.fzc-call-orb-wrap.is-state-listening .fzc-call-eq span:nth-child(4) { animation: fzcEqAnim 0.7s infinite alternate 0.2s; }
.fzc-call-orb-wrap.is-state-listening .fzc-call-eq span:nth-child(5) { animation: fzcEqAnim 0.7s infinite alternate 0.35s; }

.fzc-call-orb-wrap.is-state-thinking .fzc-call-orb-sphere {
  animation: fzcOrbSpinShimmer 2.2s infinite ease-in-out;
  box-shadow:
    0 8px 32px rgba(245, 158, 11, 0.4),
    0 0 40px rgba(59, 130, 246, 0.3);
}

.fzc-call-orb-wrap.is-state-speaking .fzc-call-orb-sphere {
  animation: fzcOrbSpeechThrob 0.9s infinite alternate ease-in-out;
}
.fzc-call-orb-wrap.is-state-speaking .ring-1 {
  animation: fzcSpeechRing 1.1s infinite ease-out;
}
.fzc-call-orb-wrap.is-state-speaking .ring-2 {
  animation: fzcSpeechRing 1.1s infinite ease-out 0.3s;
}
.fzc-call-orb-wrap.is-state-speaking .fzc-call-eq span:nth-child(1) { animation: fzcEqVoice 0.45s infinite alternate 0.05s; }
.fzc-call-orb-wrap.is-state-speaking .fzc-call-eq span:nth-child(2) { animation: fzcEqVoice 0.45s infinite alternate 0.2s; }
.fzc-call-orb-wrap.is-state-speaking .fzc-call-eq span:nth-child(3) { animation: fzcEqVoice 0.45s infinite alternate 0.35s; }
.fzc-call-orb-wrap.is-state-speaking .fzc-call-eq span:nth-child(4) { animation: fzcEqVoice 0.45s infinite alternate 0.15s; }
.fzc-call-orb-wrap.is-state-speaking .fzc-call-eq span:nth-child(5) { animation: fzcEqVoice 0.45s infinite alternate 0.28s; }

.fzc-call-orb-wrap.is-state-muted .fzc-call-orb-sphere {
  filter: grayscale(0.5) opacity(0.8);
  box-shadow: 0 4px 16px rgba(27, 20, 24, 0.15);
}

@keyframes fzcOrbBreath {
  0%, 100% { transform: scale(0.96); }
  50% { transform: scale(1.03); }
}

@keyframes fzcRingWave {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.22); opacity: 0; }
}

@keyframes fzcSpeechRing {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes fzcOrbSpeechThrob {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.08); }
}

@keyframes fzcOrbSpinShimmer {
  0%, 100% { filter: hue-rotate(0deg); transform: scale(0.98); }
  50% { filter: hue-rotate(60deg); transform: scale(1.04); }
}

@keyframes fzcEqAnim {
  0% { height: 4px; }
  100% { height: 16px; }
}

@keyframes fzcEqVoice {
  0% { height: 6px; }
  100% { height: 22px; }
}

/* ── Floating Subtitle Transcript Card ── */
.fzc-call-transcript-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(230, 222, 210, 0.9);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 4px 16px rgba(27, 20, 24, 0.05);
  text-align: center;
  margin: 6px 0 10px 0;
  transition: all 0.25s ease;
}

.fzc-call-transcript-role {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--fzc-accent-coral);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}

.fzc-call-transcript-text {
  font-size: 0.86rem;
  color: var(--fzc-ink);
  line-height: 1.4;
  font-weight: 600;
  max-height: 72px;
  overflow-y: auto;
}

.fzc-call-quick-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  width: 100%;
  max-width: 440px;
  padding: 4px 16px 12px 16px;
  margin: 0 auto;
  box-sizing: border-box;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}

.fzc-call-quick-chips::-webkit-scrollbar {
  display: none;
}

.fzc-call-quick-chips::after {
  content: '';
  display: block;
  min-width: 12px;
  flex-shrink: 0;
}

.fzc-call-quick-chip {
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(220, 210, 196, 0.8) !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: var(--fzc-ink-muted) !important;
  white-space: nowrap !important;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.fzc-call-quick-chip:hover {
  background: #FFFFFF !important;
  color: var(--fzc-ink) !important;
  border-color: #B8A898 !important;
}

.fzc-call-quick-chip:active {
  transform: scale(0.96);
}

/* ── Ergonomic Call Controls Dock ── */
.fzc-call-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  flex-shrink: 0;
  padding: 10px 0 max(38px, env(safe-area-inset-bottom, 38px));
  margin-bottom: 0;
  z-index: 10;
  position: relative;
}

.fzc-call-ctrl-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: unset !important;
  min-width: unset !important;
  -webkit-tap-highlight-color: transparent !important;
  transform: none !important;
}

.fzc-call-ctrl-btn:hover,
.fzc-call-ctrl-btn:active,
.fzc-call-ctrl-btn:focus,
.fzc-call-ctrl-btn:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.fzc-call-ctrl-btn::before,
.fzc-call-ctrl-btn::after {
  display: none !important;
  content: none !important;
}

.fzc-call-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #FDFAF3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fzc-call-ctrl-btn:hover .fzc-call-btn-circle {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.fzc-call-ctrl-btn:active .fzc-call-btn-circle {
  transform: scale(0.94);
}

.fzc-call-btn-circle.is-end-btn {
  width: 66px;
  height: 66px;
  background: #E04858;
  border-color: #D33647;
  color: #FFFFFF;
  box-shadow: 0 6px 24px rgba(224, 72, 88, 0.5);
}

.fzc-call-ctrl-btn:hover .fzc-call-btn-circle.is-end-btn {
  background: #D33647;
  box-shadow: 0 8px 28px rgba(224, 72, 88, 0.6);
}

.fzc-call-ctrl-btn.is-muted .fzc-call-btn-circle {
  background: rgba(239, 68, 68, 0.25);
  border-color: #EF4444;
  color: #F87171;
}

.fzc-call-btn-lbl {
  font-size: 0.76rem;
  font-weight: 700;
  color: #FDFAF3;
  opacity: 0.88;
  line-height: 1;
}

/* ── Bespoke Tactile SVG Iconography ── */
.fzc-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
}

.fzc-icon .fzc-i-fill {
  fill: currentColor;
  opacity: 0.16;
}

.fzc-icon .fzc-i-line {
  stroke: currentColor;
}

.fzc-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.fzc-btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

.fzc-avatar-svg {
  width: 28px;
  height: 28px;
  color: var(--fzc-accent-coral, #E04858);
}

/* ── Fullscreen Call Overlay Modal: Deep Space Titanium & Cybernetic Obsidian ── */
.fzc-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(135% 100% at 50% 20%, #0F131D 0%, #07090F 55%, #020306 100%) !important;
  color: #FDFAF3;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  padding-top: max(16px, env(safe-area-inset-top, 16px)) !important;
  padding-left: max(12px, env(safe-area-inset-left, 12px)) !important;
  padding-right: max(12px, env(safe-area-inset-right, 12px)) !important;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 24px)) !important;
  box-sizing: border-box;
  animation: fzcFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fzc-call-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
}

/* ── Sci-Fi Kinetic Fiezel Topographic Telemetry Background ── */
.fzc-call-cyber-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.fzc-cyber-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 45%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 25%, transparent 75%);
  opacity: 0.85;
  pointer-events: none;
}

.fzc-radar-sweep {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 440px;
  height: 440px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 229, 255, 0.07) 50deg, transparent 55deg);
  animation: fzcRadarRotate 15s linear infinite;
  pointer-events: none;
  mask-image: radial-gradient(circle, black 35%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 35%, transparent 70%);
}

@keyframes fzcRadarRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.fzc-cyber-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.88;
  overflow: visible;
}

.fzc-cyber-topo path {
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.fzc-cyber-topo .topo-gold {
  stroke: rgba(255, 217, 79, 0.42) !important;
  stroke-width: 1.35 !important;
  stroke-dasharray: 8 6;
  animation: fzcTopoFlow 25s linear infinite;
  filter: drop-shadow(0 0 5px rgba(255, 217, 79, 0.35));
}

.fzc-cyber-topo .topo-emerald {
  stroke: rgba(16, 185, 129, 0.45) !important;
  stroke-width: 1.4 !important;
  stroke-dasharray: 9 7;
  animation: fzcTopoFlow 30s linear infinite reverse;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.35));
}

.fzc-cyber-topo .topo-cyan {
  stroke: rgba(0, 229, 255, 0.38) !important;
  stroke-width: 1.25 !important;
  stroke-dasharray: 7 6;
  animation: fzcTopoFlow 35s linear infinite;
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.28));
}

.fzc-cyber-topo .topo-whisper {
  stroke: rgba(255, 255, 255, 0.10) !important;
  stroke-width: 0.9 !important;
  stroke-dasharray: 4 5;
  animation: fzcTopoFlow 48s linear infinite reverse;
}

@keyframes fzcTopoFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 800; }
}

.fzc-call-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 440px;
  height: 100%;
  position: relative;
  box-sizing: border-box;
}

.fzc-call-container .fzc-call-stage::before,
.fzc-call-container .fzc-call-stage::after,
.fzc-call-stage::before,
.fzc-call-stage::after {
  display: none !important;
  content: none !important;
}

.fzc-call-container .fzc-call-stage,
.fzc-call-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 0px;
  position: relative !important;
  inset: auto !important;
  background: transparent !important;
  z-index: 1 !important;
  overflow: visible !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.fzc-voice-orb-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ── Gyroscopic Orbital Rings & Coordinate Telemetry ── */
.fzc-gyro-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  box-sizing: border-box;
}

.fzc-gyro-outer {
  width: 248px;
  height: 248px;
  border: 1px dashed rgba(0, 229, 255, 0.25);
  animation: fzcGyroClockwise 32s linear infinite;
}

.fzc-gyro-mid {
  width: 198px;
  height: 198px;
  border: 1px dotted rgba(255, 217, 79, 0.32);
  animation: fzcGyroCounter 24s linear infinite;
}

.fzc-gyro-inner {
  width: 156px;
  height: 156px;
  border: 1.2px solid rgba(16, 185, 129, 0.28);
  animation: fzcGyroClockwise 18s linear infinite;
}

@keyframes fzcGyroClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fzcGyroCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.fzc-voice-halo {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.35) 0%, rgba(16, 185, 129, 0.25) 45%, rgba(255, 217, 79, 0.15) 70%, transparent 80%);
  filter: blur(24px);
  opacity: 0.75;
  pointer-events: none;
  transition: all 0.35s ease;
}

.fzc-voice-orb {
  position: relative;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #E0F2FE 0%, #38BDF8 25%, #059669 65%, #022C22 100%);
  box-shadow:
    0 0 35px rgba(0, 229, 255, 0.45),
    0 0 70px rgba(16, 185, 129, 0.35),
    inset 0 2px 8px rgba(255, 255, 255, 0.85),
    inset 0 -6px 16px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.fzc-voice-orb.is-connecting {
  animation: fzcOrbBreath 2s infinite ease-in-out;
}

.fzc-voice-orb.is-listening {
  background: radial-gradient(circle at 35% 32%, #ECFDF5 0%, #34D399 28%, #059669 65%, #064E3B 100%);
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.6), 0 0 80px rgba(0, 229, 255, 0.35), inset 0 2px 8px rgba(255, 255, 255, 0.85);
  animation: fzcOrbBreath 1.8s infinite ease-in-out;
}

.fzc-voice-orb.is-thinking {
  background: radial-gradient(circle at 35% 32%, #FFFBEB 0%, #FBBF24 30%, #D97706 70%, #78350F 100%);
  animation: fzcOrbSpinShimmer 2.2s infinite ease-in-out;
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.6), 0 0 80px rgba(255, 217, 79, 0.35);
}

.fzc-voice-orb.is-speaking {
  background: radial-gradient(circle at 35% 32%, #FFF1F2 0%, #FB7185 30%, #E11D48 70%, #881337 100%);
  box-shadow: 0 0 50px rgba(224, 72, 88, 0.65), 0 0 90px rgba(251, 113, 133, 0.4), inset 0 2px 8px rgba(255, 255, 255, 0.9);
  animation: fzcOrbSpeechThrob 0.9s infinite alternate ease-in-out;
}

.fzc-voice-ring-outer {
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 229, 255, 0.22);
  pointer-events: none;
}

.fzc-voice-ring-inner {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 217, 79, 0.32);
  pointer-events: none;
}

/* ── Real-Time Kinetic Soundwave Waveform Equalizer ── */
.fzc-voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  margin-top: 14px;
  pointer-events: none;
}

.fzc-wave-bar {
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.65);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  transform: scaleY(0.25);
  transform-origin: center center;
  transition: transform 0.08s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.fzc-voice-wave.is-connecting .fzc-wave-bar {
  background: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
  animation: fzcWavePulse 1.4s infinite ease-in-out;
}

.fzc-voice-wave.is-listening .fzc-wave-bar {
  background: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
}

.fzc-voice-wave.is-thinking .fzc-wave-bar {
  background: #F59E0B;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.55);
  animation: fzcWaveFlow 1.1s infinite ease-in-out;
}

.fzc-voice-wave.is-speaking .fzc-wave-bar {
  background: #E04858;
  box-shadow: 0 0 14px rgba(224, 72, 88, 0.6);
}

.fzc-voice-wave.is-muted .fzc-wave-bar {
  background: rgba(224, 72, 88, 0.35);
  transform: scaleY(0.15) !important;
  box-shadow: none;
}

.fzc-wave-bar.bar-1 { animation-delay: 0.00s; }
.fzc-wave-bar.bar-2 { animation-delay: 0.15s; }
.fzc-wave-bar.bar-3 { animation-delay: 0.30s; }
.fzc-wave-bar.bar-4 { animation-delay: 0.15s; }
.fzc-wave-bar.bar-5 { animation-delay: 0.00s; }

@keyframes fzcWavePulse {
  0%, 100% { transform: scaleY(0.25); opacity: 0.6; }
  50% { transform: scaleY(0.75); opacity: 1; }
}

@keyframes fzcWaveFlow {
  0%, 100% { transform: scaleY(0.3); opacity: 0.7; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

.fzc-call-status-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FDFAF3;
  margin-top: 16px;
  letter-spacing: 0.2px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-block;
  text-align: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fzc-call-status-label.is-listening {
  border-color: rgba(52, 211, 153, 0.65) !important;
  background: rgba(16, 185, 129, 0.16) !important;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.25) !important;
  color: #A7F3D0 !important;
}

.fzc-call-status-label.is-thinking {
  border-color: rgba(251, 146, 60, 0.65) !important;
  background: rgba(245, 158, 11, 0.16) !important;
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.25) !important;
  color: #FED7AA !important;
}

.fzc-call-status-label.is-speaking {
  border-color: rgba(251, 113, 133, 0.65) !important;
  background: rgba(224, 72, 88, 0.16) !important;
  box-shadow: 0 0 16px rgba(251, 113, 133, 0.25) !important;
  color: #FECDD3 !important;
}

.fzc-call-interrupt-hint {
  font-size: 0.72rem;
  color: rgba(253, 250, 243, 0.6);
  margin-top: 4px;
}

.fzc-call-subtitle-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 12px 18px;
  text-align: center;
  margin: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.fzc-call-sub-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #FDFAF3;
  line-height: 1.4;
}

.fzc-call-sub-trans {
  font-size: 0.78rem;
  color: #FCD34D;
  margin-top: 4px;
}

.fzc-call-btn-mini {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
  color: #FDFAF3 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  flex-shrink: 0;
  box-sizing: border-box;
}
.fzc-call-btn-mini:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  transform: scale(1.05);
}

/* ── Bespoke Tactile SVG Iconography System Integration ── */
.fzc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
}

.fzc-icon .fzc-i-fill {
  fill: currentColor;
  opacity: 0.16;
}

.fzc-icon.is-filled .fzc-i-fill {
  opacity: 0.35;
}

.fzc-icon .fzc-i-line {
  fill: none;
  stroke: currentColor;
}

.fzc-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.15em;
  margin-right: 4px;
}

.fzc-act-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.fzc-chip-icon,
.fzc-scenario-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.fzc-card-head-icon,
.fzc-scenario-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  line-height: 1;
}

.fzc-avatar-wrap .fzc-icon,
.fzc-avatar-wrap .fzc-avatar-svg {
  width: 24px;
  height: 24px;
  color: #B91C1C;
}

.fzc-call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fzc-btn-reset .fzc-icon,
.fzc-btn-reset .fzc-reset-icon .fzc-icon {
  color: var(--fzc-ink-muted);
  transition: transform 0.25s var(--fzc-spring);
}

.fzc-btn-reset:hover .fzc-icon,
.fzc-btn-reset:hover .fzc-reset-icon .fzc-icon {
  color: var(--fzc-ink);
  transform: rotate(-45deg);
}

.fzc-btn-mic .fzc-icon {
  color: inherit;
}

.fzc-btn-send .fzc-icon {
  color: inherit;
  transform: translateX(1px);
}

/* ── Microphone Permission Guide Modal ── */
.fzc-mic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fzcMicModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fzcMicModalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.fzc-mic-modal-card {
  width: 100%;
  max-width: 400px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 26px 22px 22px 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(226, 218, 206, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.fzc-mic-modal-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 2px solid #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B45309;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.fzc-mic-modal-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.fzc-mic-modal-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #1B1418;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.fzc-mic-modal-desc {
  font-size: 0.85rem;
  color: #574B51;
  line-height: 1.55;
  margin: 0 0 16px 0;
}

.fzc-mic-modal-help {
  font-size: 0.74rem;
  color: #786C72;
  background: #FDF9F3;
  border: 1px solid #EAE3D6;
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.45;
  margin-bottom: 18px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.fzc-mic-modal-help strong {
  color: #1B1418;
}

.fzc-mic-modal-help-ios {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.fzc-ios-help-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.45;
}

.fzc-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0284C7;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.fzc-ios-substeps {
  margin-top: 4px;
  padding-left: 2px;
  font-size: 0.72rem;
  color: #64748B;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fzc-ios-substeps p {
  margin: 0;
}

.fzc-mic-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.fzc-mic-modal-btn-allow {
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.fzc-mic-modal-btn-allow:active {
  transform: scale(0.98);
}

.fzc-mic-modal-btn-dismiss {
  width: 100%;
  padding: 10px 18px;
  border-radius: 14px;
  background: transparent;
  color: #786C72;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.fzc-mic-modal-btn-dismiss:hover {
  color: #1B1418;
}

/* ── Ngobrol AI: saklar Koreksi & Suara (audit 17 Okt 2026) ── */
.fzc-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 6px;
}

.fzc-mode-toggle {
  /* !important mengikuti konvensi berkas ini (.fzc-btn-reset): gaya tombol global aplikasi
     menggelembungkan tombol tanpa itu (terukur: saklar memenuhi satu baris penuh). */
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid var(--fzc-border) !important;
  background: var(--fzc-surface) !important;
  color: var(--fzc-ink-muted) !important;
  box-shadow: none !important;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.fzc-mode-toggle:focus-visible,
.fzc-nudge button:focus-visible {
  outline: 2px solid var(--fzc-accent-blue);
  outline-offset: 2px;
}

.fzc-mode-toggle.is-on {
  border-color: var(--fzc-accent-emerald) !important;
  color: var(--fzc-accent-emerald-dark) !important;
  background: #ECFDF5 !important;
}

.fzc-mode-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.fzc-mode-icon svg { width: 100%; height: 100%; display: block; }

.fzc-mode-switch {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--fzc-border-strong);
  transition: background-color 0.16s ease;
  flex-shrink: 0;
}

.fzc-mode-switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.18s var(--fzc-ease-out);
}

.fzc-mode-toggle.is-on .fzc-mode-switch { background: var(--fzc-accent-emerald); }
.fzc-mode-toggle.is-on .fzc-mode-switch span { transform: translateX(14px); }

/* ── Chat Persona Switch (In Mode Bar) ── */
.fzc-chat-persona-switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 3px 4px !important;
  height: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  border-radius: 999px !important;
  border: 1px solid var(--fzc-border) !important;
  background: var(--fzc-surface) !important;
  box-shadow: none !important;
  margin-left: auto;
}

.fzc-chat-persona-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 11px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 999px !important;
  border: none !important;
  background: transparent !important;
  color: var(--fzc-ink-muted) !important;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation !important;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.fzc-chat-persona-btn:hover {
  color: var(--fzc-ink) !important;
  background: var(--fzc-surface-alt) !important;
}

.fzc-chat-persona-btn.is-active {
  background: var(--fzc-ink) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(27, 20, 24, 0.14) !important;
}

.fzc-chat-persona-btn:active {
  transform: scale(0.95) !important;
}

@media (max-width: 480px) {
  .fzc-chat-persona-switch {
    margin-left: 0;
  }
}

/* ── Kartu koreksi lembut: kuning muda, bukan merah — ini bantuan, bukan hukuman ── */
.fzc-correction {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #F5E1B8;
  background: #FFFBF0;
  color: var(--fzc-ink);
  font-size: 0.8rem;
  line-height: 1.5;
  animation: fzcSlideDown 0.2s ease-out;
}

.fzc-correction.is-tip { border-color: var(--fzc-border); background: var(--fzc-surface-alt); }

.fzc-correction-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 800;
  font-size: 0.74rem;
  color: var(--fzc-accent-amber);
}

.fzc-correction.is-tip .fzc-correction-head { color: var(--fzc-ink-muted); }

.fzc-correction-text { margin-top: 2px; font-weight: 600; }

.fzc-fix-mark {
  background: #FDE68A;
  color: inherit;
  border-radius: 4px;
  padding: 0 3px;
  font-weight: 700;
}

.fzc-del-mark {
  background: #FEE2E2;
  color: #B91C1C;
  text-decoration: line-through;
  border-radius: 4px;
  padding: 0 3px;
  margin: 0 1px;
  font-weight: 600;
}

.fzc-correction-note { margin-top: 2px; color: var(--fzc-ink-muted); font-size: 0.76rem; }

.fzc-correction-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fzc-accent-emerald-dark);
}

/* ── Mode Hemat Banner Dimatikan Total (User Directive: Zero Mode Hemat) ── */
.fzc-source-note {
  display: none !important;
}

.fzc-source-note-quota {
  display: flex !important;
}

/* ── Smart Scroll Anchoring: Floating "Pesan Baru ↓" Indicator ── */
.fzc-scroll-bottom-pill,
.fzc-floating-new-msg {
  position: absolute;
  bottom: calc(var(--fzc-dock-h, 78px) + 12px);
  bottom: calc(var(--fzc-dock-h, calc(78px + env(safe-area-inset-bottom, 0px))) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--fzc-ink, #1B1418);
  color: var(--fzc-primary-text, #FDFAF3);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.80rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 4px 16px rgba(27, 20, 24, 0.22),
    0 1px 3px rgba(27, 20, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 60 !important;
  touch-action: manipulation !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s;
  animation: fzcFloatIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fzc-floating-new-msg:hover {
  transform: translateX(-50%) translateY(-2px);
  background: #2D2228;
}

.fzc-floating-new-msg:active {
  transform: translateX(-50%) translateY(1px) scale(0.96);
}

.fzc-floating-new-msg.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transform: translateX(-50%) translateY(14px) scale(0.92) !important;
}

.fzc-floating-new-msg .fzc-pill-badge {
  background: var(--fzc-accent-emerald, #10B981);
  color: #FFFFFF;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 2px;
}

@keyframes fzcFloatIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* ── 300ms Delay Elimination on All Interactive Elements ── */
.fzc-scenario-chip,
.fzc-suggestion-chip,
.fzc-btn-call,
.fzc-nudge button {
  touch-action: manipulation !important;
}

/* ── Ajakan menyalakan koreksi ── */
.fzc-nudge-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(27, 20, 24, 0.38);
  animation: fzcFadeIn 0.18s ease-out;
}

.fzc-nudge {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border-radius: 20px;
  background: var(--fzc-surface);
  color: var(--fzc-ink);
  box-shadow: 0 18px 48px rgba(27, 20, 24, 0.22);
  text-align: center;
}

@media (min-width: 600px) {
  .fzc-nudge-backdrop { align-items: center; }
}

.fzc-nudge-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FFFBF0;
  color: var(--fzc-accent-amber);
}

.fzc-nudge-icon svg { width: 22px; height: 22px; }

.fzc-nudge h3 {
  margin: 10px 0 6px;
  color: var(--fzc-ink);
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.02rem;
  font-weight: 800;
}

.fzc-nudge p { margin: 0 0 16px; color: var(--fzc-ink-muted); font-size: 0.84rem; line-height: 1.5; }

.fzc-nudge-actions { display: flex; gap: 8px; }

.fzc-nudge-actions button {
  flex: 1 1 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.fzc-nudge-actions .fzc-nudge-later {
  border: 1px solid var(--fzc-border) !important;
  background: transparent !important;
  color: var(--fzc-ink-muted) !important;
}

.fzc-nudge-actions .fzc-nudge-on {
  border: none !important;
  background: var(--fzc-primary) !important;
  color: var(--fzc-primary-text) !important;
}

/* ── Quota Exhausted Source Note & Modal ── */
.fzc-source-note-quota {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  background: #FEF9EE !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  color: #92400E !important;
}

.fzc-btn-quota-info {
  background: #FDE68A !important;
  border: 1px solid rgba(217, 119, 6, 0.4) !important;
  color: #78350F !important;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  min-height: 28px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: transform 0.16s ease, background 0.16s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.fzc-btn-quota-info:hover {
  background: #FCD34D !important;
  transform: translateY(-1px) !important;
}

.fzc-btn-quota-info:active {
  transform: scale(0.95) !important;
}

.fzc-quota-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(27, 20, 24, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fzcFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fzc-quota-modal-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(226, 218, 206, 0.85);
  box-shadow: 0 24px 48px -12px rgba(27, 20, 24, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fzcCardPop 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fzc-quota-modal-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #D97706;
  margin-bottom: 8px;
}

.fzc-quota-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #B45309;
}

.fzc-quota-modal-title {
  margin: 8px 0 10px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #1B1418;
  line-height: 1.3;
}

.fzc-quota-modal-desc {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 0.90rem;
  line-height: 1.55;
  color: #4B434D;
}

.fzc-quota-modal-help {
  width: 100%;
  background: #FEF9EE;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 22px;
  text-align: left;
}

.fzc-quota-modal-help p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #78350F;
  font-weight: 600;
}

.fzc-quota-modal-btn-confirm {
  width: 100% !important;
  min-height: 48px !important;
  background: #1B1418 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(27, 20, 24, 0.18) !important;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.fzc-quota-modal-btn-confirm:hover {
  background: #2D2228 !important;
  transform: translateY(-1px) scale(1.02) !important;
}

.fzc-quota-modal-btn-confirm:active {
  transform: scale(0.97) !important;
}

@keyframes fzcCardPop {
  0% { transform: scale(0.92) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fzc-correction, .fzc-nudge-backdrop, .fzc-quota-modal-overlay, .fzc-quota-modal-card { animation: none; }
  .fzc-mode-switch span, .fzc-mode-switch { transition: none; }
}

@keyframes fzcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   TACTILE CLAY DARK THEME & SCENE NIGHT (WCAG AAA VERIFIED)
   Applies when body.theme-dark or body.scene-night is active
   ══════════════════════════════════════════════════════════════════════════ */

body.theme-dark,
body.scene-night {
  --fzc-bg: #130E12;
  --fzc-surface: #1E171D;
  --fzc-surface-alt: #251D24;
  --fzc-surface-hover: #2C222B;
  --fzc-border: rgba(234, 227, 214, 0.12);
  --fzc-border-light: rgba(234, 227, 214, 0.08);
  --fzc-border-strong: rgba(234, 227, 214, 0.20);
  --fzc-ink: #FDFAF3;
  --fzc-ink-muted: #C5B8BF;
  --fzc-ink-subtle: #8F8188;
  --fzc-primary: #FDFAF3;
  --fzc-primary-text: #1B1418;
  --fzc-accent-coral: #FB7185;
  --fzc-accent-emerald: #10B981;
  --fzc-accent-emerald-dark: #34D399;
  --fzc-accent-amber: #FBBF24;
  --fzc-accent-blue: #60A5FA;
  --fzc-user-bubble: #2C2129;
  --fzc-user-text: #FDFAF3;
  --fzc-assistant-bubble: #1E171D;
  --fzc-assistant-border: rgba(234, 227, 214, 0.12);
}

/* 1. Main Viewport Container & Shell */
body.theme-dark .fzc-container,
body.scene-night .fzc-container,
.theme-dark .fzc-container,
.scene-night .fzc-container {
  background: #130E12 !important;
  color: #FDFAF3 !important;
}

/* 2. Header & Mitra Partner Profile */
body.theme-dark .fzc-header,
body.scene-night .fzc-header {
  background: rgba(19, 14, 18, 0.90) !important;
  border-bottom: 1px solid rgba(234, 227, 214, 0.10) !important;
}

body.theme-dark .fzc-avatar-wrap,
body.scene-night .fzc-avatar-wrap {
  background: #1E171D !important;
  background-image: linear-gradient(135deg, #2A1F27 0%, #1E171D 65%, #161015 100%) !important;
  border: 1.5px solid rgba(234, 227, 214, 0.18) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5) !important;
}

body.theme-dark .fzc-avatar-wrap svg,
body.scene-night .fzc-avatar-wrap svg,
body.theme-dark .fzc-avatar-wrap .fzc-icon,
body.scene-night .fzc-avatar-wrap .fzc-icon {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-avatar-wrap .fzc-i-fill,
body.scene-night .fzc-avatar-wrap .fzc-i-fill {
  fill: rgba(253, 250, 243, 0.12) !important;
}

body.theme-dark .fzc-avatar-wrap .fzc-i-line,
body.scene-night .fzc-avatar-wrap .fzc-i-line {
  stroke: #FDFAF3 !important;
}

body.theme-dark .fzc-online-pulse,
body.scene-night .fzc-online-pulse {
  border-color: #130E12 !important;
}

body.theme-dark .fzc-partner-info h2,
body.scene-night .fzc-partner-info h2 {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-partner-sub,
body.scene-night .fzc-partner-sub {
  color: #C5B8BF !important;
}

body.theme-dark .fzc-badge-level,
body.scene-night .fzc-badge-level {
  background: #2A1F26 !important;
  border: 1px solid rgba(234, 227, 214, 0.16) !important;
  color: #EBDDE3 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

/* Header Buttons */
body.theme-dark .fzc-btn-reset,
body.scene-night .fzc-btn-reset,
body.theme-dark .fzc-btn-speaker,
body.scene-night .fzc-btn-speaker {
  background: #231A21 !important;
  border: 1px solid rgba(234, 227, 214, 0.14) !important;
  color: #C5B8BF !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

body.theme-dark .fzc-btn-reset:hover,
body.scene-night .fzc-btn-reset:hover {
  background: #2D222A !important;
  border-color: rgba(234, 227, 214, 0.28) !important;
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-btn-speaker:not(.is-muted),
body.scene-night .fzc-btn-speaker:not(.is-muted) {
  color: #34D399 !important;
}

body.theme-dark .fzc-btn-speaker.is-muted,
body.scene-night .fzc-btn-speaker.is-muted {
  color: #8F8188 !important;
  background: #1E171D !important;
}

/* 3. Mode Toggle Switch Bar */
body.theme-dark .fzc-mode-toggle,
body.scene-night .fzc-mode-toggle {
  background: #20181F !important;
  border: 1px solid rgba(234, 227, 214, 0.12) !important;
  color: #C5B8BF !important;
}

body.theme-dark .fzc-mode-toggle.is-on,
body.scene-night .fzc-mode-toggle.is-on {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #34D399 !important;
}

body.theme-dark .fzc-mode-switch,
body.scene-night .fzc-mode-switch {
  background: #3A2E36 !important;
}

body.theme-dark .fzc-mode-switch span,
body.scene-night .fzc-mode-switch span {
  background: #FDFAF3 !important;
}

body.theme-dark .fzc-mode-toggle.is-on .fzc-mode-switch,
body.scene-night .fzc-mode-toggle.is-on .fzc-mode-switch {
  background: #10B981 !important;
}

/* 4. Scenario Rail & Modern Clay Chips */
body.theme-dark .fzc-scenario-chip,
body.scene-night .fzc-scenario-chip {
  background: #20181F !important;
  border: 1px solid rgba(234, 227, 214, 0.12) !important;
  color: #E2D7DD !important;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 2px rgba(0, 0, 0, 0.35) !important;
}

body.theme-dark .fzc-scenario-chip:hover,
body.scene-night .fzc-scenario-chip:hover {
  background: #2A1F28 !important;
  border-color: rgba(234, 227, 214, 0.22) !important;
  color: #FDFAF3 !important;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

body.theme-dark .fzc-scenario-chip.is-active,
body.scene-night .fzc-scenario-chip.is-active {
  background: #FDFAF3 !important;
  color: #1B1418 !important;
  border: 1px solid rgba(255, 255, 255, 0.70) !important;
  font-weight: 800 !important;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(253, 250, 243, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.75),
    inset 0 -1px 2px rgba(0, 0, 0, 0.15) !important;
}

body.theme-dark .fzc-scenario-chip.is-active:hover,
body.scene-night .fzc-scenario-chip.is-active:hover {
  background: #FFFFFF !important;
  color: #120E11 !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
}

/* 5. Scenario Card & Checkpoints */
body.theme-dark .fzc-scenario-card,
body.scene-night .fzc-scenario-card {
  background: #1B141A !important;
  border: 1px solid rgba(234, 227, 214, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

body.theme-dark .fzc-scenario-card-head,
body.scene-night .fzc-scenario-card-head {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-scenario-card-desc,
body.scene-night .fzc-scenario-card-desc {
  color: #C5B8BF !important;
}

body.theme-dark .fzc-goals-container,
body.scene-night .fzc-goals-container {
  border-top-color: rgba(234, 227, 214, 0.14) !important;
}

body.theme-dark .fzc-goals-header,
body.scene-night .fzc-goals-header {
  color: #C5B8BF !important;
}

body.theme-dark .fzc-goal-item,
body.scene-night .fzc-goal-item {
  color: #C5B8BF !important;
}

body.theme-dark .fzc-goal-item.is-done,
body.scene-night .fzc-goal-item.is-done {
  color: #34D399 !important;
}

body.theme-dark .fzc-goal-check,
body.scene-night .fzc-goal-check {
  background: #231A21 !important;
  border: 1.5px solid rgba(234, 227, 214, 0.22) !important;
}

body.theme-dark .fzc-goal-item.is-done .fzc-goal-check,
body.scene-night .fzc-goal-item.is-done .fzc-goal-check {
  background: #10B981 !important;
  border-color: #10B981 !important;
  color: #FFFFFF !important;
}

body.theme-dark .fzc-goal-bonus-tag,
body.scene-night .fzc-goal-bonus-tag {
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #FBBF24 !important;
}

/* 6. Message Bubbles: High Contrast & Tactile Clay Surfaces */
body.theme-dark .fzc-msg-row.is-assistant .fzc-bubble,
body.scene-night .fzc-msg-row.is-assistant .fzc-bubble {
  background: #1E171D !important;
  border: 1px solid rgba(234, 227, 214, 0.12) !important;
  color: #FDFAF3 !important;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .fzc-msg-row.is-user .fzc-bubble,
body.scene-night .fzc-msg-row.is-user .fzc-bubble {
  background: #2C2129 !important;
  border: 1px solid rgba(234, 227, 214, 0.18) !important;
  color: #FDFAF3 !important;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

/* 7. Japanese Typography: High-Clarity Furigana & Romaji (WCAG AAA) */
body.theme-dark .fzc-japanese-text rt,
body.scene-night .fzc-japanese-text rt {
  color: #E2D7DD !important; /* Kontras 12.18:1 (WCAG AAA) */
}

body.theme-dark .fzc-romaji,
body.scene-night .fzc-romaji {
  color: #CFC4CB !important; /* Kontras 10.65:1 (WCAG AAA) */
}

body.theme-dark .fzc-reveal-box,
body.scene-night .fzc-reveal-box {
  background: rgba(0, 0, 0, 0.32) !important;
  border: 1px solid rgba(234, 227, 214, 0.10) !important;
  color: #C5B8BF !important;
}

body.theme-dark .fzc-trans-text strong,
body.scene-night .fzc-trans-text strong {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-grammar-note,
body.scene-night .fzc-grammar-note {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  color: #FDE68A !important;
}

body.theme-dark .fzc-grammar-note strong,
body.scene-night .fzc-grammar-note strong {
  color: #FEF3C7 !important;
}

/* 8. Micro-Capsule Action Toolbar */
body.theme-dark .fzc-action-btn,
body.scene-night .fzc-action-btn {
  background: #231A21 !important;
  border: 1px solid rgba(234, 227, 214, 0.14) !important;
  color: #E2D7DD !important;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .fzc-action-btn:hover,
body.scene-night .fzc-action-btn:hover {
  background: #2D222A !important;
  border-color: rgba(234, 227, 214, 0.25) !important;
  color: #FDFAF3 !important;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

body.theme-dark .fzc-action-btn.is-playing,
body.scene-night .fzc-action-btn.is-playing {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #34D399 !important;
  box-shadow:
    0 0 0 2px rgba(16, 185, 129, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

body.theme-dark .fzc-action-btn.is-shadowing,
body.scene-night .fzc-action-btn.is-shadowing {
  background: rgba(234, 88, 12, 0.18) !important;
  border-color: rgba(249, 115, 22, 0.45) !important;
  color: #FB923C !important;
  box-shadow:
    0 0 0 2px rgba(234, 88, 12, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* 9. Shadowing Feedback Card */
body.theme-dark .fzc-shadow-box,
body.scene-night .fzc-shadow-box {
  background: linear-gradient(135deg, #18221D 0%, #1A181C 100%) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .fzc-shadow-badge,
body.scene-night .fzc-shadow-badge {
  color: #34D399 !important;
}

body.theme-dark .fzc-shadow-box.is-listening,
body.scene-night .fzc-shadow-box.is-listening {
  background: linear-gradient(135deg, #261A16 0%, #1A181C 100%) !important;
  border-color: rgba(249, 115, 22, 0.40) !important;
}

body.theme-dark .fzc-shadow-box.is-listening .fzc-shadow-badge,
body.scene-night .fzc-shadow-box.is-listening .fzc-shadow-badge {
  color: #FB923C !important;
}

body.theme-dark .fzc-shadow-box.is-retry,
body.scene-night .fzc-shadow-box.is-retry {
  background: linear-gradient(135deg, #262016 0%, #1A181C 100%) !important;
  border-color: rgba(245, 158, 11, 0.40) !important;
}

body.theme-dark .fzc-shadow-box.is-retry .fzc-shadow-badge,
body.scene-night .fzc-shadow-box.is-retry .fzc-shadow-badge {
  color: #FBBF24 !important;
}

body.theme-dark .fzc-shadow-compare,
body.scene-night .fzc-shadow-compare {
  border-top-color: rgba(234, 227, 214, 0.12) !important;
}

body.theme-dark .fzc-shadow-compare-label,
body.scene-night .fzc-shadow-compare-label {
  color: #C5B8BF !important;
}

body.theme-dark .fzc-token.is-correct,
body.scene-night .fzc-token.is-correct {
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid rgba(16, 185, 129, 0.40) !important;
  color: #34D399 !important;
}

body.theme-dark .fzc-token.is-correct .fzc-token-check,
body.scene-night .fzc-token.is-correct .fzc-token-check {
  color: #34D399 !important;
}

body.theme-dark .fzc-token.is-missed,
body.scene-night .fzc-token.is-missed {
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px dashed rgba(245, 158, 11, 0.45) !important;
  color: #FCD34D !important;
}

body.theme-dark .fzc-shadow-heard,
body.scene-night .fzc-shadow-heard {
  color: #C5B8BF !important;
}

body.theme-dark .fzc-shadow-heard-val,
body.scene-night .fzc-shadow-heard-val {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-shadow-live-transcript,
body.scene-night .fzc-shadow-live-transcript {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(249, 115, 22, 0.35) !important;
  color: #FDFAF3 !important;
}

/* 10. Suggestions Carousel Rail */
body.theme-dark .fzc-suggestion-chip,
body.scene-night .fzc-suggestion-chip {
  background: #1F171E !important;
  border: 1px solid rgba(234, 227, 214, 0.12) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .fzc-suggestion-chip:hover,
body.scene-night .fzc-suggestion-chip:hover {
  background: #281F26 !important;
  border-color: rgba(234, 227, 214, 0.24) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

body.theme-dark .fzc-suggestion-chip strong,
body.scene-night .fzc-suggestion-chip strong {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-suggestion-chip span,
body.scene-night .fzc-suggestion-chip span {
  color: #C5B8BF !important;
}

/* 11. Typing Indicator */
body.theme-dark .fzc-typing-row,
body.scene-night .fzc-typing-row {
  background: #1E171D !important;
  border: 1px solid rgba(234, 227, 214, 0.12) !important;
  color: #C5B8BF !important;
}

body.theme-dark .fzc-dot-pulse span,
body.scene-night .fzc-dot-pulse span {
  background: #C5B8BF !important;
}

/* 12. Soft Correction Card */
body.theme-dark .fzc-correction,
body.scene-night .fzc-correction {
  background: #251E16 !important;
  border-color: rgba(245, 158, 11, 0.30) !important;
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-correction.is-tip,
body.scene-night .fzc-correction.is-tip {
  background: #1F171E !important;
  border-color: rgba(234, 227, 214, 0.14) !important;
}

body.theme-dark .fzc-fix-mark,
body.scene-night .fzc-fix-mark {
  background: rgba(245, 158, 11, 0.30) !important;
  color: #FEF3C7 !important;
}

body.theme-dark .fzc-del-mark,
body.scene-night .fzc-del-mark {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #FCA5A5 !important;
}

body.theme-dark .fzc-correction-note,
body.scene-night .fzc-correction-note {
  color: #C5B8BF !important;
}

body.theme-dark .fzc-correction-ok,
body.scene-night .fzc-correction-ok {
  color: #34D399 !important;
}

/* 13. Floating New Message Indicator */
body.theme-dark .fzc-floating-new-msg,
body.scene-night .fzc-floating-new-msg {
  background: #2C2129 !important;
  color: #FDFAF3 !important;
  border: 1px solid rgba(234, 227, 214, 0.20) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body.theme-dark .fzc-floating-new-msg:hover,
body.scene-night .fzc-floating-new-msg:hover {
  background: #362932 !important;
}

/* 14. Bottom Input Dock & Clay Form */
body.theme-dark .fzc-dock,
body.scene-night .fzc-dock {
  background: rgba(19, 14, 18, 0.94) !important;
  border-top: 1px solid rgba(234, 227, 214, 0.10) !important;
}

body.theme-dark .fzc-dock-form,
body.scene-night .fzc-dock-form {
  background: #1C151B !important;
  border: 1.5px solid rgba(234, 227, 214, 0.16) !important;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .fzc-dock-form:focus-within,
body.scene-night .fzc-dock-form:focus-within {
  border-color: #FDFAF3 !important;
  box-shadow:
    0 0 0 3px rgba(253, 250, 243, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body.theme-dark .fzc-input,
body.scene-night .fzc-input {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-input::placeholder,
body.scene-night .fzc-input::placeholder {
  color: #8F8188 !important;
}

body.theme-dark .fzc-btn-mic,
body.scene-night .fzc-btn-mic {
  background: #281F26 !important;
  border: 1px solid rgba(234, 227, 214, 0.16) !important;
  color: #E2D7DD !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .fzc-btn-mic:hover,
body.scene-night .fzc-btn-mic:hover {
  background: #322630 !important;
  border-color: rgba(234, 227, 214, 0.25) !important;
  color: #FDFAF3 !important;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

body.theme-dark .fzc-btn-mic.is-listening,
body.scene-night .fzc-btn-mic.is-listening {
  background: #EF4444 !important;
  border-color: #DC2626 !important;
  color: #FFFFFF !important;
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.30),
    0 4px 14px rgba(239, 68, 68, 0.50) !important;
}

body.theme-dark .fzc-btn-send,
body.scene-night .fzc-btn-send {
  background: #FDFAF3 !important;
  color: #1B1418 !important;
  border: 1px solid rgba(255, 255, 255, 0.70) !important;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

body.theme-dark .fzc-btn-send:hover,
body.scene-night .fzc-btn-send:hover {
  background: #FFFFFF !important;
  color: #120E11 !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  box-shadow:
    0 4px 14px rgba(255, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

/* 15. Flip Screen Fullscreen Voice Call Stage */
body.theme-dark .fzc-panel-call,
body.scene-night .fzc-panel-call {
  background: radial-gradient(circle at 50% 25%, #1F171E 0%, #161115 55%, #0F0B0E 100%) !important;
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-call-scenario-tag,
body.scene-night .fzc-call-scenario-tag {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-call-timer-pill,
body.scene-night .fzc-call-timer-pill {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-call-partner-name,
body.scene-night .fzc-call-partner-name {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-call-status-text,
body.scene-night .fzc-call-status-text {
  color: #C5B8BF !important;
}

body.theme-dark .fzc-call-transcript-card,
body.scene-night .fzc-call-transcript-card {
  background: rgba(25, 18, 24, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.40) !important;
}

body.theme-dark .fzc-call-transcript-text,
body.scene-night .fzc-call-transcript-text {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-call-quick-chip,
body.scene-night .fzc-call-quick-chip {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #E2D7DD !important;
}

body.theme-dark .fzc-call-quick-chip:hover,
body.scene-night .fzc-call-quick-chip:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #FDFAF3 !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
}

/* 16. Modals (Microphone Guide & Quota Exhausted) */
body.theme-dark .fzc-mic-modal-card,
body.scene-night .fzc-mic-modal-card,
body.theme-dark .fzc-quota-modal-card,
body.scene-night .fzc-quota-modal-card,
body.theme-dark .fzc-nudge,
body.scene-night .fzc-nudge {
  background: #1E171D !important;
  border: 1px solid rgba(234, 227, 214, 0.16) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-mic-modal-title,
body.scene-night .fzc-mic-modal-title,
body.theme-dark .fzc-quota-modal-title,
body.scene-night .fzc-quota-modal-title,
body.theme-dark .fzc-nudge h3,
body.scene-night .fzc-nudge h3 {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-mic-modal-desc,
body.scene-night .fzc-mic-modal-desc,
body.theme-dark .fzc-quota-modal-desc,
body.scene-night .fzc-quota-modal-desc,
body.theme-dark .fzc-nudge p,
body.scene-night .fzc-nudge p {
  color: #C5B8BF !important;
}

body.theme-dark .fzc-mic-modal-help,
body.scene-night .fzc-mic-modal-help,
body.theme-dark .fzc-quota-modal-help,
body.scene-night .fzc-quota-modal-help {
  background: #140F13 !important;
  border: 1px solid rgba(234, 227, 214, 0.12) !important;
  color: #C5B8BF !important;
}

body.theme-dark .fzc-mic-modal-help strong,
body.scene-night .fzc-mic-modal-help strong {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-quota-modal-help p,
body.scene-night .fzc-quota-modal-help p {
  color: #FCD34D !important;
}

body.theme-dark .fzc-mic-modal-help-ios,
body.scene-night .fzc-mic-modal-help-ios {
  background: #140F13 !important;
  border-color: rgba(234, 227, 214, 0.12) !important;
}

body.theme-dark .fzc-ios-help-step,
body.scene-night .fzc-ios-help-step {
  color: #C5B8BF !important;
}

body.theme-dark .fzc-ios-substeps,
body.scene-night .fzc-ios-substeps {
  color: #A999A1 !important;
}

body.theme-dark .fzc-mic-modal-btn-dismiss,
body.scene-night .fzc-mic-modal-btn-dismiss {
  color: #C5B8BF !important;
}

body.theme-dark .fzc-mic-modal-btn-dismiss:hover,
body.scene-night .fzc-mic-modal-btn-dismiss:hover {
  color: #FDFAF3 !important;
}

body.theme-dark .fzc-quota-modal-btn-confirm,
body.scene-night .fzc-quota-modal-btn-confirm {
  background: #FDFAF3 !important;
  color: #1B1418 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

body.theme-dark .fzc-quota-modal-btn-confirm:hover,
body.scene-night .fzc-quota-modal-btn-confirm:hover {
  background: #FFFFFF !important;
}

body.theme-dark .fzc-nudge-actions .fzc-nudge-later,
body.scene-night .fzc-nudge-actions .fzc-nudge-later {
  border: 1px solid rgba(234, 227, 214, 0.18) !important;
  color: #C5B8BF !important;
}

body.theme-dark .fzc-nudge-actions .fzc-nudge-on,
body.scene-night .fzc-nudge-actions .fzc-nudge-on {
  background: #FDFAF3 !important;
  color: #1B1418 !important;
}

/* ==========================================================================
   KAWAN BICARA MOBILE RESPONSIVE POLISH & ZERO-COLLISION TOPBAR
   ========================================================================== */
@media (max-width: 375px) {
  .fzc-btn-call .fzc-call-text {
    display: none !important;
  }
  .fzc-btn-call {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
  .fzc-call-icon {
    width: 18px !important;
    height: 18px !important;
  }
}

@media (max-width: 480px) {
  .fzc-mode-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding: 2px 0 4px !important;
  }
  .fzc-mode-bar::-webkit-scrollbar { display: none !important; }
  .fzc-mode-toggle {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }
  .fzc-chat-persona-switch {
    height: 34px !important;
    min-height: 34px !important;
    padding: 2px 3px !important;
  }
  .fzc-chat-persona-btn {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 8px !important;
    font-size: 0.70rem !important;
  }
}

.fzc-call-topbar {
  gap: 6px !important;
  box-sizing: border-box !important;
}

.fzc-call-partner-info {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  max-width: 120px !important;
  gap: 6px !important;
}

@media (max-width: 390px) {
  .fzc-call-persona-switch {
    gap: 2px !important;
    padding: 2px !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }
  .fzc-call-persona-btn {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 6px !important;
    font-size: 0.68rem !important;
    gap: 3px !important;
  }
}

@media (max-width: 360px) {
  .fzc-call-persona-btn .fzc-persona-name {
    display: none !important;
  }
  .fzc-call-persona-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  .fzc-call-btn-mini {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
}

@media (max-width: 430px) {
  .fzc-actions-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    max-width: 100% !important;
    padding-bottom: 2px !important;
    gap: 5px !important;
  }
  .fzc-actions-bar::-webkit-scrollbar {
    display: none !important;
  }
  .fzc-action-btn {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 11px !important;
    font-size: 0.74rem !important;
    flex-shrink: 0 !important;
  }
}

/* ── AI Studio Port: Voice Call Scenario, Prereq Drawer, & Pedagogical Feedback Cards ── */
.fzc-call-scenario-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  gap: 2px;
}

.fzc-call-scenario-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fzc-call-scenario-badge.is-practice {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #6EE7B7;
}

.fzc-call-scenario-badge.is-exam {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #FCD34D;
}

.fzc-call-scenario-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(253, 250, 243, 0.85);
  text-align: center;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Prerequisite Warmup Drawer / Modal */
.fzc-call-prereq-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fzcFadeIn 0.25s ease-out;
}

.fzc-call-prereq-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 18px;
  color: #FDFAF3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fzc-call-prereq-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #FCD34D;
}

.fzc-call-prereq-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.fzc-call-prereq-desc {
  font-size: 0.80rem;
  color: rgba(253, 250, 243, 0.72);
  line-height: 1.4;
}

.fzc-call-prereq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.fzc-call-prereq-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}

.fzc-call-prereq-term {
  font-size: 0.88rem;
  font-weight: 800;
  color: #38BDF8;
}

.fzc-call-prereq-meaning {
  font-size: 0.76rem;
  color: rgba(253, 250, 243, 0.85);
  margin-top: 2px;
}

.fzc-call-prereq-ex {
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(253, 250, 243, 0.55);
  margin-top: 2px;
}

.fzc-call-prereq-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FDFAF3;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fzc-call-prereq-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Pedagogical Feedback Card */
.fzc-call-diag-card {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.4;
  animation: fzcSlideUp 0.22s ease-out;
}

.fzc-call-diag-card.is-error {
  background: rgba(225, 29, 72, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.4);
  color: #FECDD3;
}

.fzc-call-diag-card.is-success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #A7F3D0;
}

.fzc-call-diag-tag {
  font-weight: 800;
  font-size: 0.74rem;
  margin-bottom: 4px;
}

.fzc-call-diag-card.is-error .fzc-call-diag-tag {
  color: #FDA4AF;
}

.fzc-call-diag-card.is-success .fzc-call-diag-tag {
  color: #6EE7B7;
}

.fzc-call-diag-input {
  color: rgba(253, 250, 243, 0.9);
  margin-bottom: 3px;
}

.fzc-call-diag-why {
  color: #FFE4E6;
  margin-bottom: 3px;
}

.fzc-call-diag-fix {
  color: #FDE047;
  font-weight: 700;
}

/* Sample Utterance Chips */
.fzc-call-sample-wrap {
  width: 100%;
  max-width: 440px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fzc-call-sample-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}

.fzc-call-sample-label {
  font-size: 0.70rem;
  color: rgba(253, 250, 243, 0.75);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.fzc-call-studio-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #00E5FF;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fzc-call-studio-link:hover {
  background: rgba(0, 229, 255, 0.25);
  transform: translateY(-1px);
}

.fzc-call-sample-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.fzc-call-sample-chip {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(27, 20, 24, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FDFAF3;
  font-size: 0.75rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
  width: 100%;
}

.fzc-call-sample-chip:hover {
  background: rgba(27, 20, 24, 0.85);
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.4);
}

.fzc-call-sample-chip.intent-accurate {
  border-left: 3px solid #34D399;
}

.fzc-call-sample-chip.intent-misconception {
  border-left: 3px solid #FB923C;
}

.fzc-call-sample-chip.intent-incomplete {
  border-left: 3px solid #F43F5E;
}

.fzc-call-sample-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.fzc-call-sample-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #FDFAF3;
}

.fzc-call-sample-badge.intent-accurate {
  background: rgba(52, 211, 153, 0.2);
  color: #34D399;
}

.fzc-call-sample-badge.intent-misconception {
  background: rgba(251, 146, 60, 0.2);
  color: #FB923C;
}

.fzc-call-sample-badge.intent-incomplete {
  background: rgba(244, 63, 94, 0.2);
  color: #F43F5E;
}

.fzc-call-sample-title {
  font-size: 0.65rem;
  color: rgba(253, 250, 243, 0.6);
  font-weight: 600;
}

.fzc-call-sample-text {
  font-weight: 700;
  color: #FDFAF3;
  line-height: 1.35;
  font-size: 0.78rem;
}

.fzc-call-sample-pron {
  font-size: 0.70rem;
  color: #FBBF24;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(251, 191, 36, 0.1);
  border: 1px dashed rgba(251, 191, 36, 0.3);
  padding: 3px 6px;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.fzc-call-sample-meaning {
  font-size: 0.68rem;
  color: rgba(253, 250, 243, 0.72);
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.fzc-call-sample-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.fzc-call-sample-btn-action {
  font-size: 0.62rem;
  color: #00E5FF;
  font-weight: 700;
}

.fzc-call-exam-pure-note {
  font-size: 0.72rem;
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 6px;
  text-align: center;
}
