body {
  font-family: 'Georgia', serif;
  background-color: #f9f7f1;
  color: #333;
  margin: 0;
  padding: 0;
}

header {
  background-color: #8b1e3f;
  color: #e6c229;
  padding: 0.4rem 1rem;
  text-align: center;
  position: relative;
  border-width: 4px;
  border-style: solid;
  border-image: repeating-linear-gradient(
    107deg,
    #c4909c 0px,
    #b88090 1px,
    #d4aab4 2.5px,
    #a09098 4px,
    #c8a0a8 5.5px,
    #504048 6px,
    #b88898 7.5px,
    #e0c4c8 9px,
    #9a8890 10.5px,
    #c4909c 12px
  ) 4;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 150, 150, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.18);
}

header img {
  max-height: 55px;
  width: auto;
}

.subtitle {
  font-style: italic;
  color: #f9f7f1;
}

nav a {
  margin: 0 1rem;
  color: #f9f7f1;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.user-menu-container {
  display: inline-block;
  position: relative;
}

.user-menu-button {
  background-color: transparent;
  color: #f9f7f1;
  border: 1px solid #f9f7f1;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.user-menu-button:hover {
  background-color: rgba(249, 247, 241, 0.1);
  text-decoration: none;
}

.user-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  background-color: #8b1e3f;
  border: 1px solid #f9f7f1;
  border-radius: 4px;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  top: 100%;
  margin-top: 0.5rem;
}

.user-menu-dropdown a {
  display: block;
  color: #f9f7f1;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 247, 241, 0.1);
  transition: background-color 0.2s;
}

.user-menu-dropdown a:last-child {
  border-bottom: none;
}

.user-menu-dropdown a:hover {
  background-color: rgba(249, 247, 241, 0.15);
  text-decoration: none;
}

main {
  padding: 2rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #e6c229;
  color: #333;
  margin-top: 2rem;
}

.welcome {
  text-align: center;
}

.blessing {
  font-style: italic;
  color: #8b1e3f;
}

.image-container {
  text-align: center;
  margin-top: 1rem;
}

.vox-image {
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ask-section {
  max-width: 700px;
  margin: auto;
  padding: 2rem;
  text-align: center;
}

#user-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Georgia', serif;
  box-sizing: border-box;
  background-color: #fffdf8;
  color: #333;
  resize: vertical;
}

.ask-section button,
.chat-box button,
button {
  padding: 0.7rem 2rem;
  background-color: #8b1e3f;
  color: #f9f7f1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Georgia', serif;
}

.ask-section button:hover,
.chat-box button:hover,
button:hover {
  background-color: #a3264a;
}

.response {
  margin-top: 2rem;
  background-color: #fff8e7;
  border-left: 4px solid #e6c229;
  padding: 1rem;
  border-radius: 6px;
}

.placeholder {
  font-style: italic;
  color: #666;
}

.vox-thumbnail {
  text-align: center;
  margin-bottom: 1rem;
}

.vox-thumbnail img {
  max-width: 120px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.vox-intro {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 960px;
  padding: 1rem;
  flex-wrap: wrap;
}

.vox-portrait {
  max-width: 200px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.vox-bio {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
}

.teaching-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vox-play-btn {
  background: none;
  border: 1px solid #c9a84c;
  color: #c9a84c;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  opacity: 0.8;
  transition: opacity 0.2s, background 0.2s;
  vertical-align: middle;
  white-space: nowrap;
}

.vox-play-btn:hover {
  opacity: 1;
  background: rgba(201, 168, 76, 0.12);
}

/* Vox teaching video modal */
.vox-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.vox-video-modal.open {
  display: flex;
}

.vox-video-modal-inner {
  position: relative;
  background: #12121e;
  border: 1px solid #c9a84c;
  border-radius: 8px;
  padding: 1.25rem;
  max-width: 500px;
  width: 92%;
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
}

.vox-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.7rem;
  background: none;
  border: none;
  color: #c9a84c;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.vox-modal-close:hover {
  opacity: 1;
}

#voxModalVideo {
  width: 100%;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #900000;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
}

.cta-button:hover {
  background-color: #b00000;
}

.user-status {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.85;
  color: #f9f7f1;
}

#chat-box {
  background: #fffaf0;
  border: 1px solid #d8c9a7;
  border-radius: 12px;
  padding: 1rem;
  height: 400px;
  overflow-y: auto;
  font-family: 'Georgia', serif;
  text-align: left;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-top: 1rem;
}

.user-message,
.assistant-message {
  display: flex;
  margin-bottom: 12px;
}

.user-message {
  justify-content: flex-end;
}

.assistant-message {
  justify-content: flex-start;
}

.message-bubble {
  border-radius: 12px;
  padding: 10px 14px;
  max-width: 85%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.user-message .message-bubble {
  background: #f3dfe6;
  border-left: 4px solid #8b1e3f;
}

.assistant-message .message-bubble {
  background: #fff8e7;
  border-left: 4px solid #e6c229;
}

.message-name {
  font-size: 0.9rem;
  font-weight: bold;
  color: #8b1e3f;
  margin-bottom: 4px;
}

.message-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  white-space: pre-wrap;
}

.message {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  max-width: 80%;
}

.message.initiate {
  background-color: #e0eaff;
  align-self: flex-start;
}

.message.vox {
  background-color: #fdf0dc;
  align-self: flex-end;
}

.message.loading span::after {
  content: " ⏳";
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.day-group {
  margin-bottom: 0.5rem;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.day-header::before,
.day-header::after {
  content: "";
  flex: 1;
  border-top: 1px solid #d8c9a7;
}

.day-header span {
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
  white-space: nowrap;
}

.delete-day-btn {
  padding: 0.15rem 0.5rem !important;
  font-size: 0.72rem !important;
  background-color: transparent !important;
  color: #c0392b !important;
  border: 1px solid #c0392b !important;
  border-radius: 4px !important;
  opacity: 0.5;
  white-space: nowrap;
}

.delete-day-btn:hover {
  opacity: 1 !important;
  background-color: #c0392b !important;
  color: white !important;
}

.message-bubble {
  position: relative;
}

.delete-msg-btn {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  padding: 0 5px !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  background-color: transparent !important;
  color: #c0392b !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  border-radius: 3px;
}

.message-bubble:hover .delete-msg-btn {
  opacity: 0.6;
}

.delete-msg-btn:hover {
  opacity: 1 !important;
  background-color: #c0392b !important;
  color: white !important;
}

audio#pageAudio {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  z-index: 1000;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

audio#pageAudio:hover,
audio#pageAudio:focus-within {
  opacity: 1;
}

#voxAudioControls {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  z-index: 10;
}

#voxAudioControls:hover {
  opacity: 1;
}

#voxAudioControls.needs-interaction {
  opacity: 1;
  animation: voxPulse 1.5s ease-in-out infinite;
}

@keyframes voxPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

#voxAudioControls button {
  background: transparent !important;
  color: #f9f7f1 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.15rem 0.4rem !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  cursor: pointer;
}

#voxAudioControls button:hover {
  color: #e6c229 !important;
  background: transparent !important;
}

#voxVolume {
  width: 70px;
  cursor: pointer;
  accent-color: #e6c229;
}

@media (max-width: 768px) {
  nav a {
    display: inline-block;
    margin: 0.35rem 0.5rem;
  }

  main {
    padding: 1rem;
  }

  .ask-section {
    padding: 1rem;
  }

  .vox-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vox-bio {
    text-align: left;
  }

  .message-bubble {
    max-width: 95%;
  }

  #chat-box {
    height: 350px;
  }
}

/* ── Chat page full-height layout ── */

body.chat-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding-bottom: 0;
}

body.chat-page footer {
  display: none;
}

.chat-main-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 0;
}

.chat-layout {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ── Sidebar ── */

.chat-sidebar {
  width: 220px;
  min-width: 220px;
  background: #2a0e1c;
  color: #f9f7f1;
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease, min-width 0.25s ease;
  overflow: hidden;
  border-right: 1px solid #4a1e30;
  flex-shrink: 0;
}

.chat-sidebar.collapsed {
  width: 0;
  min-width: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: #1f0d14;
  font-size: 0.82rem;
  font-weight: bold;
  color: #e6c229;
  white-space: nowrap;
  flex-shrink: 0;
}

.sidebar-icon-btn {
  background: transparent !important;
  color: #f9f7f1 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.1rem 0.4rem !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  cursor: pointer;
}

.sidebar-icon-btn:hover {
  color: #e6c229 !important;
  background: transparent !important;
}

.sidebar-days {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.4rem 0;
}

.sidebar-day-entry {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s;
  gap: 0.25rem;
}

.sidebar-day-entry:hover {
  background: #3d1524;
}

.sidebar-day-entry.active {
  background: #4a1e30;
  border-left-color: #e6c229;
}

.sidebar-day-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sidebar-day-label {
  display: block;
  font-size: 0.82rem;
  color: #f9f7f1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-day-count {
  display: block;
  font-size: 0.7rem;
  color: #999;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-top: 1px;
}

.sidebar-delete-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #e6c229 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.1rem 0.3rem !important;
  font-size: 1rem !important;
  border-radius: 3px !important;
  opacity: 0.5;
  transition: opacity 0.15s;
  cursor: pointer;
  flex-shrink: 0;
}

.sidebar-day-entry:hover .sidebar-delete-btn {
  opacity: 0.8;
}

.sidebar-delete-btn:hover {
  opacity: 1 !important;
}

/* ── Chat area ── */

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: #8b1e3f;
  color: #f9f7f1;
  flex-shrink: 0;
}

.chat-current-date {
  flex: 1;
  font-size: 0.88rem;
  font-style: italic;
  color: #f9e07a;
}

body.chat-page #chat-box {
  flex: 1;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  padding: 1rem;
  overflow-y: auto;
  background: #fffaf0;
}

.chat-empty {
  text-align: center;
  color: #bbb;
  font-style: italic;
  margin-top: 3rem;
  font-size: 0.95rem;
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  background: #f5f0e8;
  border-top: 1px solid #d8c9a7;
  flex-shrink: 0;
  align-items: flex-end;
}

.chat-input-area #user-input {
  flex: 1;
  margin-bottom: 0;
  resize: none;
}

.chat-input-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
  align-self: flex-end;
}

#newConvoBtnInline {
  background-color: transparent !important;
  color: #8b1e3f !important;
  border: 1px solid #8b1e3f !important;
  font-size: 0.82rem !important;
  padding: 0.4rem 0.8rem !important;
}

#newConvoBtnInline:hover {
  background-color: #8b1e3f !important;
  color: #f9f7f1 !important;
}

.mic-btn {
  background: none;
  border: 1px solid #4a1e30;
  color: #8b1e3f;
  border-radius: 22px;
  width: auto;
  height: 44px;
  padding: 0 0.75rem;
  gap: 0.35rem;
  font-size: 0.88rem;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-btn:hover:not(:disabled) {
  border-color: #c9a84c;
}

.mic-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mic-btn.listening {
  border-color: #e6c229;
  background: rgba(230, 194, 41, 0.12);
  animation: mic-pulse 1s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 194, 41, 0); }
  50%       { box-shadow: 0 0 0 8px rgba(230, 194, 41, 0.2); }
}

.continue-banner {
  text-align: center;
  padding: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid #d8c9a7;
}

.today-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.today-separator::before,
.today-separator::after {
  content: '';
  flex: 1;
  border-top: 1px solid #d8c9a7;
}

.today-separator span {
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .chat-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 100;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.4);
  }

  body.chat-page #chat-box {
    height: auto;
  }

  /* Compact header on chat page so the input area is visible */
  body.chat-page header img {
    display: none;
  }

  body.chat-page header h1 {
    font-size: 1.1rem;
    margin: 0.2rem 0;
  }

  body.chat-page header p.subtitle {
    display: none;
  }

  /* Audio controls: static at bottom of navbar on mobile */
  #voxAudioControls {
    position: static;
    transform: none;
    justify-content: center;
    opacity: 0.6;
    padding: 0.4rem 0 0;
    width: 100%;
  }

  #voxAudioControls:hover {
    opacity: 1;
  }

  body.ritual-page header img {
    display: none;
  }

  body.ritual-page header p.subtitle {
    display: none;
  }

  /* Larger touch targets on mobile */
  .chat-input-buttons button {
    min-height: 44px;
    font-size: 0.95rem;
  }

  #sidebarBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99;
  }

  #sidebarBackdrop.visible {
    display: block;
  }
}

/* ── Rituals page ── */

.rituals-hero {
  text-align: center;
  padding: 2rem 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.rituals-intro {
  color: #555;
  font-style: italic;
  line-height: 1.7;
  margin: 0.5rem 0 0;
}

.rituals-section {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.rituals-section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.rite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.rite-card {
  background: #fffdf8;
  border: 1px solid #d8c9a7;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.rite-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.rite-icon {
  font-size: 1.6rem;
  color: #8b1e3f;
  line-height: 1;
}

.rite-card h3 {
  margin: 0;
  color: #8b1e3f;
  font-size: 1.05rem;
}

.rite-card p {
  margin: 0;
  font-size: 0.93rem;
  color: #555;
  line-height: 1.5;
  flex: 1;
}

.rite-btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.45rem 1rem;
  background-color: #8b1e3f;
  color: #f9f7f1;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: 'Georgia', serif;
  transition: background-color 0.2s;
}

.rite-btn:hover {
  background-color: #a3264a;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.practice-card {
  background: #fff8e7;
  border: 1px solid #e6c229;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.practice-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.practice-card.practice-selected {
  border-color: #8b1e3f;
  box-shadow: 0 0 0 2px #8b1e3f;
}

.practice-reflect-row {
  text-align: center;
  margin-top: 1.5rem;
}

.practice-reflect-btn {
  font-size: 1rem;
  padding: 0.65rem 2rem;
}

.practice-reflect-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.practice-label {
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b1e3f;
}

.practice-prompt {
  margin: 0;
  font-style: italic;
  color: #444;
  line-height: 1.6;
  font-size: 0.97rem;
  flex: 1;
}

/* ── Ritual session page ── */

body.ritual-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.ritual-page footer {
  display: none;
}

.ritual-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ritual-session-header {
  background: #1f0d14;
  color: #f9f7f1;
  padding: 0.75rem 1.25rem;
  flex-shrink: 0;
  border-bottom: 1px solid #4a1e30;
}

.ritual-back {
  font-size: 0.8rem;
  color: #e6c229;
  text-decoration: none;
  opacity: 0.7;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.ritual-back:hover {
  opacity: 1;
}

.ritual-session-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ritual-session-icon {
  font-size: 1.3rem;
  color: #e6c229;
}

.ritual-session-title {
  margin: 0;
  font-size: 1.1rem;
  color: #f9f7f1;
}

.ritual-session-desc {
  margin: 0.3rem 0 0;
  font-size: 0.83rem;
  color: #bbb;
  font-style: italic;
}

.ritual-chat-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ritual-chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #fffaf0;
  font-family: 'Georgia', serif;
}

.ritual-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #f5f0e8;
  border-top: 1px solid #d8c9a7;
  flex-shrink: 0;
  align-items: flex-end;
}

.ritual-input-area textarea {
  flex: 1;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Georgia', serif;
  box-sizing: border-box;
  background-color: #fffdf8;
  color: #333;
  resize: none;
  margin-bottom: 0;
}

.ritual-input-area button {
  flex-shrink: 0;
  align-self: flex-end;
}

/* ── Journey return banner (fixed bottom bar on task destination pages) ── */

.journey-return-banner {
  background: #1f0d14;
  color: #f9f7f1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #4a1e30;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* On scrollable pages the banner is fixed to the bottom */
.journey-return-banner.journey-return-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.journey-return-banner p {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  color: #bbb;
}

.journey-return-banner a {
  background-color: #e6c229;
  color: #1f0d14;
  padding: 0.4rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.journey-return-banner a:hover {
  background-color: #f0d240;
}

/* ── Journey hub (begin-your-journey.html) ── */

.journey-hero {
  text-align: center;
  padding: 2rem 2rem 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.journey-intro {
  color: #555;
  font-style: italic;
  line-height: 1.7;
  margin: 0.5rem 0 0;
}

.journey-stages {
  max-width: 680px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.journey-stage-card {
  width: 100%;
  background: #fffdf8;
  border: 1px solid #d8c9a7;
  border-radius: 12px;
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.journey-stage-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.journey-stage-card.journey-locked {
  opacity: 0.55;
  pointer-events: none;
}

.journey-stage-card.journey-done {
  border-color: #e6a800;
  background: linear-gradient(180deg, #fffdf0 0%, #fff6cc 60%, #ffe89a 100%);
  overflow: visible;
  position: relative;
  /* Two animations at a prime-ratio of durations — combined period ~3.91s,
     so the overlap pattern never quite repeats on a human-perceptible cycle */
  animation: fireGlow1 1.7s linear infinite, fireGlow2 2.3s linear infinite;
}

@keyframes fireGlow1 {
  0%   { box-shadow: 0 0  9px rgba(255,130,0,.80), 0 0 24px rgba(255,70,0,.52), 0 0 50px rgba(200,35,0,.22); border-color: #ff8800; }
  6%   { box-shadow: 0 0 22px rgba(255,210,0,1.00), 0 0 52px rgba(255,130,0,.85), 0 0 95px rgba(230,60,0,.40); border-color: #ffcc00; }
  11%  { box-shadow: 0 0  4px rgba(255, 60,0,.55), 0 0 11px rgba(220,30,0,.38), 0 0 28px rgba(170,20,0,.15); border-color: #ff5500; }
  19%  { box-shadow: 0 0 16px rgba(255,170,0,.92), 0 0 40px rgba(255,95,0,.72), 0 0 78px rgba(220,50,0,.35); border-color: #ffaa00; }
  27%  { box-shadow: 0 0  5px rgba(255, 80,0,.60), 0 0 14px rgba(240,45,0,.42), 0 0 32px rgba(180,22,0,.18); border-color: #ff6600; }
  33%  { box-shadow: 0 0 26px rgba(255,220,0,1.00), 0 0 58px rgba(255,140,0,.90), 0 0 105px rgba(240,65,0,.44); border-color: #ffe000; }
  41%  { box-shadow: 0 0  7px rgba(255, 95,0,.68), 0 0 18px rgba(255,52,0,.48), 0 0 40px rgba(190,28,0,.20); border-color: #ff7700; }
  48%  { box-shadow: 0 0 13px rgba(255,150,0,.88), 0 0 34px rgba(255,85,0,.66), 0 0 65px rgba(215,48,0,.30); border-color: #ff9900; }
  55%  { box-shadow: 0 0  3px rgba(255, 55,0,.50), 0 0  9px rgba(210,25,0,.34), 0 0 22px rgba(160,18,0,.13); border-color: #ff4400; }
  62%  { box-shadow: 0 0 20px rgba(255,195,0,.97), 0 0 48px rgba(255,115,0,.80), 0 0 90px rgba(228,58,0,.40); border-color: #ffbb00; }
  70%  { box-shadow: 0 0  6px rgba(255, 88,0,.65), 0 0 16px rgba(245,50,0,.46), 0 0 36px rgba(185,25,0,.19); border-color: #ff6600; }
  78%  { box-shadow: 0 0 18px rgba(255,180,0,.94), 0 0 44px rgba(255,105,0,.76), 0 0 83px rgba(224,55,0,.38); border-color: #ffb000; }
  86%  { box-shadow: 0 0  4px rgba(255, 65,0,.52), 0 0 12px rgba(225,32,0,.36), 0 0 26px rgba(172,20,0,.14); border-color: #ff5800; }
  93%  { box-shadow: 0 0 11px rgba(255,140,0,.84), 0 0 28px rgba(255,78,0,.60), 0 0 56px rgba(205,40,0,.26); border-color: #ff9000; }
  100% { box-shadow: 0 0  9px rgba(255,130,0,.80), 0 0 24px rgba(255,70,0,.52), 0 0 50px rgba(200,35,0,.22); border-color: #ff8800; }
}

@keyframes fireGlow2 {
  0%   { box-shadow: 0 0 12px rgba(255,150,0,.86), 0 0 30px rgba(255,82,0,.58), 0 0 60px rgba(208,42,0,.26); border-color: #ff9500; }
  9%   { box-shadow: 0 0  4px rgba(255, 58,0,.52), 0 0 10px rgba(218,28,0,.36), 0 0 24px rgba(164,19,0,.14); border-color: #ff4800; }
  17%  { box-shadow: 0 0 24px rgba(255,215,0,1.00), 0 0 55px rgba(255,135,0,.88), 0 0 100px rgba(235,62,0,.42); border-color: #ffd500; }
  24%  { box-shadow: 0 0  7px rgba(255, 92,0,.66), 0 0 17px rgba(248,50,0,.46), 0 0 38px rgba(188,26,0,.19); border-color: #ff7200; }
  34%  { box-shadow: 0 0 15px rgba(255,162,0,.91), 0 0 38px rgba(255,90,0,.70), 0 0 72px rgba(218,50,0,.32); border-color: #ffa400; }
  42%  { box-shadow: 0 0  3px rgba(255, 52,0,.48), 0 0  8px rgba(208,23,0,.32), 0 0 20px rgba(156,16,0,.12); border-color: #ff4200; }
  51%  { box-shadow: 0 0 21px rgba(255,200,0,.98), 0 0 50px rgba(255,122,0,.83), 0 0 93px rgba(232,60,0,.41); border-color: #ffc800; }
  59%  { box-shadow: 0 0  8px rgba(255, 98,0,.70), 0 0 20px rgba(252,55,0,.50), 0 0 42px rgba(192,28,0,.21); border-color: #ff7800; }
  67%  { box-shadow: 0 0  5px rgba(255, 70,0,.58), 0 0 13px rgba(230,34,0,.40), 0 0 30px rgba(176,21,0,.16); border-color: #ff5c00; }
  76%  { box-shadow: 0 0 19px rgba(255,188,0,.95), 0 0 46px rgba(255,110,0,.78), 0 0 86px rgba(226,57,0,.39); border-color: #ffb600; }
  84%  { box-shadow: 0 0  6px rgba(255, 85,0,.63), 0 0 15px rgba(243,47,0,.44), 0 0 34px rgba(182,23,0,.18); border-color: #ff6a00; }
  92%  { box-shadow: 0 0 10px rgba(255,138,0,.82), 0 0 26px rgba(255,75,0,.56), 0 0 52px rgba(202,38,0,.24); border-color: #ff8d00; }
  100% { box-shadow: 0 0 12px rgba(255,150,0,.86), 0 0 30px rgba(255,82,0,.58), 0 0 60px rgba(208,42,0,.26); border-color: #ff9500; }
}

/* JS-injected flame container */
.card-fire-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

/* Individual flame tongues — sized/positioned by JS via inline style */
.card-fire-wrap span {
  position: absolute;
  bottom: -6px;
  border-radius: 50% 50% 30% 30% / 60% 60% 35% 35%;
  transform-origin: bottom center;
  filter: blur(var(--blur, 3px));
  animation: flameTongue var(--dur, 1s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  background: radial-gradient(
    ellipse at 50% 90%,
    rgba(255, 230, 80, 1)   0%,
    rgba(255, 160, 0,  0.9) 20%,
    rgba(255, 80,  0,  0.7) 45%,
    rgba(200, 30,  0,  0.4) 65%,
    transparent 82%
  );
}

@keyframes flameTongue {
  0% {
    transform: scaleX(1)    scaleY(0.6)  rotate(var(--tilt, 0deg));
    opacity: 0.65;
  }
  50% {
    transform: scaleX(0.72) scaleY(1.18) rotate(calc(var(--tilt, 0deg) * -1.3));
    opacity: 1;
  }
  100% {
    transform: scaleX(1.18) scaleY(0.78) rotate(calc(var(--tilt, 0deg) * 0.7));
    opacity: 0.6;
  }
}

.journey-stage-number {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid #8b1e3f;
  color: #8b1e3f;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

.journey-done .journey-stage-number {
  background-color: #8b1e3f;
  color: #f9f7f1;
}

.journey-stage-body {
  flex: 1;
}

.journey-stage-body h3 {
  margin: 0 0 0.4rem;
  color: #8b1e3f;
  font-size: 1.05rem;
}

.journey-stage-body p {
  margin: 0 0 0.75rem;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.6;
}

.journey-stage-status {
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  font-style: italic;
}

/* ── Wax seal ───────────────────────────────────────────────────────────────
   Structure:
     element bg  = raised outer rim (strong 3-D gradient, blob border-radius)
     ::before    = inner flat stamp surface with debossed inset shadow
     ::after     = asymmetric wax drip below
     spans       = embossed ✦ + COMPLETE, hard shadows, bright for legibility
   ───────────────────────────────────────────────────────────────────────── */
.journey-stage-complete {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;

  /* Very uneven — each corner pair is quite different to break the circle read */
  border-radius: 64% 36% 44% 56% / 52% 40% 60% 48%;

  /* Outer rim only — inner flat area is handled by ::before */
  background: radial-gradient(circle at 34% 26%,
    #e8607e 0%,
    #c43258 8%,
    #8b1e3f 26%,
    #601228 50%,
    #380614 74%,
    #1a0208 100%
  );

  transform: rotate(-9deg);
  z-index: 3;

  box-shadow:
    inset 0  5px  8px rgba(255, 150, 170, 0.28),
    inset 0 -7px 13px rgba(0, 0, 0, 0.65),
    inset 4px 0   7px rgba(0, 0, 0, 0.30),
    0  5px 14px rgba(60, 4, 18, 0.68),
    0  2px  5px rgba(0, 0, 0, 0.55),
    0 10px 28px rgba(40, 2, 12, 0.32);
}

/* Inner flat stamp surface — where the signet face pressed down.
   Debossed: the stamp slightly sank in, so the rim casts a shadow
   inward around the edge of this recessed circle. */
.journey-stage-complete::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%,
    #9c2245 0%,
    #7b1534 50%,
    #5d0e29 100%
  );
  /* Shadow cast inward from the raised rim — top-left heaviest (light source) */
  box-shadow:
    inset  3px  4px  7px rgba(0, 0, 0, 0.60),
    inset -1px -2px  4px rgba(180, 60, 80, 0.18);
  pointer-events: none;
  z-index: 1;
}

/* Asymmetric wax drip below — gradient matches the rim so it reads as
   the same wax pooling downward rather than a separate element */
.journey-stage-complete::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-44%);
  width: 16px;
  height: 13px;
  /* Dark at top (blends into seal's dark base), slight warmth toward the
     rounded belly of the drip where it would catch a little light */
  background: radial-gradient(ellipse at 42% 65%,
    #7b1535 0%,
    #5c0d28 45%,
    #380614 75%,
    #1a0208 100%
  );
  border-radius: 36% 40% 60% 56% / 26% 28% 74% 70%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.48);
  z-index: 0;
}

/* Embossed ✦ — hard 1px shadow, no blur, bright colour for legibility */
.seal-symbol {
  font-size: 1.28rem;
  line-height: 1;
  display: block;
  position: relative;
  z-index: 2;
  color: rgba(248, 210, 218, 0.97);
  text-shadow:
    -1px -1px 0 rgba(255, 240, 244, 0.55),
     1px  2px 0 rgba(0, 0, 0, 0.92);
}

/* Embossed COMPLETE — single hard shadow only; highlight omitted at this size
   because two near-white copies at 1px offset create visible doubling */
.seal-word {
  font-size: 0.44rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.1rem;
  position: relative;
  z-index: 2;
  color: rgba(248, 215, 222, 0.97);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.92);
}

/* Give done cards enough right padding so the seal doesn't overlap the button */
.journey-stage-card.journey-done {
  padding-right: 5.4rem;
}

.journey-stage-progress {
  color: #7a6a30;
}

.journey-stage-locked-label {
  color: #aaa;
}

.journey-connector {
  width: 2px;
  height: 2rem;
  background: linear-gradient(to bottom, #d8c9a7, #d8c9a7);
  margin: 0.25rem 0;
  opacity: 0.6;
}

/* ── Journey invocation page ── */

.journey-complete-banner {
  background: #1f0d14;
  color: #f9f7f1;
  text-align: center;
  padding: 0.75rem 1.25rem;
  flex-shrink: 0;
  border-top: 1px solid #4a1e30;
}

.journey-complete-banner p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-style: italic;
  color: #bbb;
}

.journey-complete-banner button {
  background-color: #e6c229;
  color: #1f0d14;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.journey-complete-banner button:hover {
  background-color: #f0d240;
}

/* ── Journey assessment page ── */

.assessment-wrap {
  max-width: 680px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.assessment-progress-bar-wrap {
  height: 5px;
  background: #e8dfc8;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.assessment-progress-bar {
  height: 100%;
  background: #8b1e3f;
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.assessment-progress-label {
  font-size: 0.8rem;
  color: #999;
  margin: 0 0 1.25rem;
  font-style: italic;
}

.assessment-card {
  background: #fffdf8;
  border: 1px solid #d8c9a7;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.assessment-question {
  font-size: 1.1rem;
  color: #8b1e3f;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  font-style: italic;
}

#assessment-answer {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.97rem;
  font-family: 'Georgia', serif;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fffff8;
  color: #333;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

#assessment-answer:focus {
  outline: none;
  border-color: #8b1e3f;
}

.assessment-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.assessment-actions button {
  background-color: #8b1e3f;
  color: #f9f7f1;
  border: none;
  padding: 0.55rem 1.75rem;
  border-radius: 6px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.assessment-actions button:hover {
  background-color: #a3264a;
}

.assessment-reply-card {
  text-align: center;
}

.assessment-reply-text {
  text-align: left;
  font-style: italic;
  color: #333;
  line-height: 1.8;
  font-size: 1rem;
  margin: 1rem 0;
  white-space: pre-wrap;
}

/* ── Journey path page ── */

.journey-path-progress-wrap {
  max-width: 680px;
  margin: 1.5rem auto 0.5rem;
  padding: 0 1.5rem;
}

.journey-path-progress-bar {
  height: 6px;
  background: #8b1e3f;
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

.journey-path-progress-label {
  font-size: 0.82rem;
  color: #999;
  margin: 0.4rem 0 0;
  font-style: italic;
}

.journey-task-list {
  max-width: 680px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journey-task-card {
  background: #fffdf8;
  border: 1px solid #d8c9a7;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: border-color 0.2s;
}

.journey-task-card.journey-task-done {
  border-color: #8b1e3f;
  background: #fff8f9;
}

.journey-task-check {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: #c0a860;
  margin-top: 0.1rem;
  line-height: 1;
}

.journey-task-done .journey-task-check {
  color: #8b1e3f;
}

.journey-task-body {
  flex: 1;
}

.journey-task-label {
  margin: 0 0 0.3rem;
  color: #333;
  font-size: 1rem;
}

.journey-task-done .journey-task-label {
  color: #8b1e3f;
  position: relative;
  /* Shrink to text width so the ::before is sized against the text,
     not the full card column */
  width: fit-content;
}

.journey-task-done .journey-task-label::before {
  content: '';
  position: absolute;
  top: 50%;
  /* JS sets --ql and --qr per label (random overhang); fallback ensures
     the line always at least covers the text */
  left:  var(--ql, -4px);
  right: var(--qr, -4px);
  height: 14px;
  transform: translateY(-52%);
  background-image: var(--quill-svg, none);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: quillGlow 2.4s ease-in-out infinite;
}

@keyframes quillGlow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(180, 110, 0, 0.75)) brightness(0.88) saturate(0.85);
    opacity: 0.86;
  }
  50% {
    filter: drop-shadow(0 0 7px rgba(255, 230, 60, 1)) brightness(1.42) saturate(1.7);
    opacity: 1;
  }
}

.journey-task-desc {
  margin: 0 0 0.6rem;
  color: #666;
  font-size: 0.88rem;
  line-height: 1.5;
}

.journey-task-done .journey-task-desc {
  color: #aaa;
}

.task-complete-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #8b1e3f;
  color: #f9f0f3;
  margin-bottom: 0.4rem;
}

.journey-task-link {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
}

.journey-path-complete {
  max-width: 680px;
  margin: 1rem auto 2rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fffdf8;
  border: 1px solid #8b1e3f;
  border-radius: 12px;
}

.journey-path-complete h3 {
  color: #8b1e3f;
  margin: 0.5rem 0 0.4rem;
}

.journey-path-complete .blessing {
  font-size: 1rem;
  line-height: 1.7;
}

/* Ask the Voice — prominent header CTA */
.ask-voice-cta {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.4rem 1.2rem;
  background: #e6c229;
  color: #3a0a0a;
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(230, 194, 41, 0.45);
  transition: background 0.2s, box-shadow 0.2s;
}

.ask-voice-cta:hover {
  background: #f5d444;
  box-shadow: 0 0 14px rgba(230, 194, 41, 0.7);
  text-decoration: none;
}

/* ── VOX Avatar Panel ───────────────────────────────────────────── */

.vox-session {
  display: flex;
  flex: 1;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.75rem;
}

.avatar-panel {
  width: 28.5%;
  flex-shrink: 0;
  position: relative;
  background: #0e0e1a;
  border: 1px solid #2a1a4e;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-idle {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.avatar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

/* Once WebRTC stream connects, always show the D-ID stream (idle or speaking) */
.avatar-panel.did-connected .avatar-video {
  display: block;
}

.avatar-panel.did-connected .avatar-idle {
  display: none;
}

.live-badge {
  display: none;
  position: absolute;
  top: 8px;
  right: 10px;
  color: #9b6fd0;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-shadow: 0 0 6px #6b3fa0;
}

.avatar-panel.speaking .live-badge {
  display: block;
}

.loading-label {
  display: none;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #666;
  font-size: 11px;
  font-style: italic;
  white-space: nowrap;
}

.avatar-panel.loading .loading-label {
  display: block;
}

.avatar-panel.loading {
  animation: avatar-pulse 1.5s ease-in-out infinite;
}

@keyframes avatar-pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50%       { box-shadow: 0 0 14px 2px #6b3fa055; }
}

.chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

/* Override chat-box height when inside chat-content */
.chat-content #chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #fffaf0;
}

/* Mobile: stack avatar above chat */
@media (max-width: 768px) {
  .vox-session {
    flex-direction: column;
    padding: 0.4rem;
    gap: 0.4rem;
  }
  .avatar-panel {
    width: 100%;
    height: 42vh;
    min-height: 260px;
    max-height: 360px;
    flex-shrink: 0;
  }
}
