/* =============================================
   RING SVG — compartido entre player y loading
   ============================================= */
.player-ring-svg {
  display: block;
  overflow: visible;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--night-fg);
  stroke-opacity: 0.12;
  stroke-width: 1.2;
}

.ring-progress {
  fill: none;
  stroke: var(--night-fg);
  stroke-width: 1.2;
  stroke-linecap: round;
  transition: stroke-dashoffset 500ms linear;
}

.ring-breath-dot {
  fill: url(#ring-dot-gradient);
  transition: r 120ms ease-in-out;
}

/* Gradiente del dot central */
svg defs { display: none; }

/* =============================================
   PLAYER SCREEN (dark)
   ============================================= */

/* Background atmosférico — 3 capas (council 17-may v199):
   1. Gradient radial sutil (centro más cálido → bordes profundos)
   2. Aura lenta que respira 12s (sincronía con respiración natural)
   3. Partículas mínimas tipo polvo de estrellas (drift 38-60s)
   El fondo sólido --night se mantiene en .screen.dark-screen como base. */
.player-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(60, 30, 18, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.45) 0%, transparent 60%);
}

/* NO añadir position:relative a #screen-player — .screen ya es position:fixed
   (base.css) y fixed sirve igual de contenedor de posicionamiento para
   .player-bg (absolute). position:relative colapsa la pantalla a la altura de
   su contenido: reproduciendo (~590px) deja ~262px de fondo --canvas visible
   bajo el player. Bug v199 (17-may), cazado en el barrido integral A1 21-may. */

/* Aura: círculo grande detrás del anillo, opacity baja, breathe 12s. */
.player-bg-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  margin-top: -300px;
  margin-left: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 228, 209, 0.06) 0%, rgba(243, 228, 209, 0.02) 45%, transparent 70%);
  opacity: 0.75;
  animation: player-bg-breathe 12s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes player-bg-breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50%      { transform: scale(1.08); opacity: 0.85; }
}

/* Partículas: SVG full-screen con 8 motas drift lento. */
.player-bg-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.player-bg-dust {
  fill: rgba(243, 228, 209, 0.45);
  animation: player-bg-dust-drift linear infinite;
  will-change: transform, opacity;
}

@keyframes player-bg-dust-drift {
  0%   { transform: translate(0, 0)        scale(0.85); opacity: 0; }
  10%  {                                                opacity: 0.7; }
  50%  { transform: translate(-3px, -4px)  scale(1.0); opacity: 0.9; }
  90%  {                                                opacity: 0.5; }
  100% { transform: translate(2px, -8px)   scale(0.85); opacity: 0; }
}

/* Accesibilidad: usuarios que prefieren reducir movimiento ven background
   sereno SIN animación (gradient sigue, aura/partículas estáticas). */
@media (prefers-reduced-motion: reduce) {
  .player-bg-aura      { animation: none; opacity: 0.65; }
  .player-bg-particles { opacity: 0.35; }
  .player-bg-dust      { animation: none; }
}

.player-inner {
  display: flex;
  flex-direction: column;
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 36px);
  /* min-height (no height fijo): con .screen position:fixed el player llena el
     viewport durante la reproducción, y crece + scrollea internamente en la
     pantalla post-sesión cuando el contenido supera el alto del viewport. */
  min-height: 100%;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Card multi-input post-sesión — discreta, dark theme, sobre las cards plan */
.end-multi-input-card {
  background: rgba(243, 228, 209, 0.06);
  border: 1px solid rgba(243, 228, 209, 0.15);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 auto 16px;
  max-width: 360px;
  text-align: left;
}
.end-multi-input-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 228, 209, 0.55);
  margin: 0 0 6px;
}
.end-multi-input-text {
  font-family: var(--font-text);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--night-fg);
  margin: 0 0 10px;
  opacity: 0.92;
}
.end-multi-input-cta {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  color: var(--night);
  background: var(--night-fg);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
}
.end-multi-input-cta:hover,
.end-multi-input-cta:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
  outline: none;
}

/* Header */
.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.player-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--night-fg);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.player-btn-icon:hover { opacity: 1; }

.player-eyebrow {
  color: var(--night-fg);
  opacity: 0.5;
}

/* Ring container */
.player-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  margin-bottom: 28px;
}

/* Obs 07 (18-may council GO) — Player desktop fix.
   Mobile: 240px (default original). Tablets/desktop sube progresivo hasta
   360px max. Aura crece en proporción para mantener el balance visual y
   evitar "tres clicks de vacío" en viewports anchos. */
.player-ring-svg-main {
  width: 240px;
  height: 240px;
}
@media (min-width: 768px) {
  .player-ring-svg-main { width: 300px; height: 300px; }
  .player-bg-aura       { width: 800px; height: 800px; margin-top: -400px; margin-left: -400px; }
  .player-info          { max-width: 420px; margin-bottom: 32px; }
  .player-title         { font-size: 30px; }
}
@media (min-width: 1024px) {
  .player-ring-svg-main { width: 340px; height: 340px; }
  .player-bg-aura       { width: 950px; height: 950px; margin-top: -475px; margin-left: -475px; }
  .player-info          { max-width: 480px; }
  .player-title         { font-size: 34px; }
}
@media (min-width: 1280px) {
  .player-ring-svg-main { width: 360px; height: 360px; }
  .player-bg-aura       { width: 1080px; height: 1080px; margin-top: -540px; margin-left: -540px; }
}

/* Session info */
.player-info {
  text-align: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.player-technique-eyebrow {
  color: var(--night-fg);
  opacity: 0.5;
  margin-bottom: 12px;
}

.player-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: var(--night-fg);
  letter-spacing: -0.022em;
  line-height: 1.2;
}

.player-title-btn {
  background: none;
  border: none;
  /* Tap target ≥44px — antes 31×19 imposible de pegar */
  padding: 12px 14px;
  margin: -4px -14px;
  min-height: 44px;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
}

.player-title-btn:hover .player-title-icon {
  opacity: 0.85;
}

.player-title-icon {
  color: var(--night-fg);
  opacity: 0.4;
  flex-shrink: 0;
  transition: opacity 0.18s ease;
  align-self: center;
}

/* Modal frase original */
.quote-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.quote-modal-overlay.active {
  display: flex;
  animation: quoteFadeIn 0.22s ease-out;
}

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

.quote-modal-card {
  background: var(--bg, #ece4d6);
  color: var(--ink, #3a2e26);
  border-radius: 16px;
  padding: 32px 24px 28px;
  max-width: 380px;
  width: 100%;
  position: relative;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.quote-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink, #3a2e26);
  opacity: 0.55;
  transition: opacity 0.18s ease;
  border-radius: 50%;
}

.quote-modal-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
}

.quote-modal-eyebrow {
  margin-bottom: 14px;
  text-align: center;
  opacity: 0.65;
}

.quote-modal-text {
  font-family: var(--font-display, 'Fraunces', serif);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: -0.012em;
  color: var(--ink, #3a2e26);
  margin: 0;
}

/* Progress bar */
.progress-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-shrink: 0;
}

.time-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--night-fg);
  opacity: 0.55;
  letter-spacing: 0.3px;
  min-width: 35px;
}
.time-remain { text-align: right; }

.progress-track {
  flex: 1;
  /* 9-may-2026 (auditoría P0): antes height:3px era el área táctil real →
     imposible de manipular en touch (WCAG 2.5.5 pide 44x44). Mantenemos look
     de 3px pero con padding vertical 20px + background-clip content-box el
     hitbox real pasa a 44px. Click anywhere cerca de la línea seekea bien. */
  height: 3px;
  padding: 20px 0;
  margin: -20px 0;
  box-sizing: content-box;
  background: rgba(232,236,233,0.15);
  background-clip: content-box;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.progress-fill {
  position: absolute;
  left: 0;
  /* alinear con la barra visual de 3px central (padding 20px arriba/abajo
     del progress-track, así que la línea visible está en y=20-23). */
  top: 20px; height: 3px;
  background: var(--night-fg);
  border-radius: 2px;
  transition: width 0.5s linear;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-shrink: 0;
}

.player-btn-skip {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--night-fg);
  opacity: 0.7;
  /* Apple HIG ≥44px touch target — antes 38×38 daba pifia constante */
  min-width: 48px;
  min-height: 48px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  transition: opacity 0.2s, background 0.2s;
}
.player-btn-skip:hover { opacity: 1; }

.player-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 38px;
  background: var(--night-fg);
  color: var(--night);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.1s;
}
.player-play-btn:hover { opacity: 0.9; }
.player-play-btn:active { transform: scale(0.975); }

/* Hidden legacy element */
.time-countdown { display: none; }

/* =============================================
   END STATES
   ============================================= */

/* End save — usuario con cuenta (light bg) */
.end-save-card {
  width: 100%;
  max-width: 360px;
  margin: 20px auto 0;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.end-save-eyebrow { margin-bottom: 4px; color: var(--night-fg); opacity: 0.55; }
.end-save-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--night-fg);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.end-feedback-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* Override chips for dark bg */
.end-save-card .s-chip {
  border-color: rgba(232,236,233,0.3);
  color: var(--night-fg);
  background: transparent;
}
.end-save-card .s-chip.active {
  background: var(--night-fg);
  color: var(--night);
  border-color: var(--night-fg);
}
.end-link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
  text-align: center;
}
.end-save-slots-info {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--night-fg);
  opacity: 0.5;
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.3px;
}
.end-link-btn-dark {
  color: var(--night-fg);
  opacity: 0.6;
}

/* =============================================
   POST-SESSION CONVERSION CARD (guest + free)
   ============================================= */
.post-session-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 8px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.post-session-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--night-fg);
  opacity: 0.5;
  margin-bottom: 18px;
}
.post-session-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--night-fg);
  letter-spacing: -0.022em;
  line-height: 1.18;
  margin: 0 0 16px;
}
.post-session-headline em {
  font-style: italic;
  font-weight: 300;
}
.post-session-sub {
  font-size: 14.5px;
  color: var(--night-fg);
  opacity: 0.72;
  line-height: 1.55;
  margin: 0 0 12px;
}
.post-session-sub:last-of-type { margin-bottom: 24px; }

.post-session-config {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 0 8px;
  border-top: 1px solid rgba(242,237,228,0.08);
  border-bottom: 1px solid rgba(242,237,228,0.08);
  margin-bottom: 22px;
}
.post-session-config-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.post-session-config-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--night-fg);
  opacity: 0.45;
  margin: 0;
}
.post-session-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  width: 100%;
}
.post-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242,237,228,0.14);
  background: transparent;
  color: var(--night-fg);
  opacity: 0.55;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1;
  transition: opacity 0.2s;
}
.post-session-pill--used {
  opacity: 1;
  border-color: rgba(201,169,110,0.55);
  background: rgba(201,169,110,0.10);
  box-shadow: 0 0 0 2px rgba(201,169,110,0.08);
  color: var(--night-fg);
}
.post-session-pill-check {
  display: inline-flex;
  width: 11px;
  height: 11px;
  color: var(--accent);
  flex-shrink: 0;
}

.post-session-pre-price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--night-fg);
  opacity: 0.92;
  line-height: 1.4;
  margin: 4px 0 18px;
  text-align: center;
}
.post-session-pre-price em {
  font-style: italic;
  color: var(--accent);
  opacity: 1;
}

.post-session-cta-primary {
  width: 100%;
  margin-bottom: 8px;
}
.post-session-price-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--night-fg);
  opacity: 0.55;
  letter-spacing: 0.2px;
  margin: 0 0 14px;
}
.post-session-secondary-link {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--night-fg);
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 4px;
}
.post-session-secondary-link:hover { opacity: 1; }

.end-message {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: var(--night-fg);
  text-align: center;
  line-height: 1.3;
  margin-top: 12px;
}

/* =============================================
   END ACCOUNT SCREEN (light bg)
   ============================================= */
#screen-end-account {
  background: var(--canvas);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.end-account-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 24px calc(env(safe-area-inset-bottom, 0px) + 40px);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.end-account-top-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.end-account-ring-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  opacity: 0.75;
}

.end-account-eyebrow {
  text-align: center;
  margin-bottom: 10px;
  color: var(--muted);
}

.end-account-display {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
  margin-bottom: 24px;
}
.end-account-display em { font-style: italic; font-weight: 300; }

.end-account-session-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.end-account-session-card .s-eyebrow { margin-bottom: 6px; }
.end-account-session-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.end-account-session-meta {
  font-size: 13px;
  color: var(--muted);
}

.end-account-save-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.end-account-save-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.end-account-save-title em { font-style: italic; font-weight: 300; }
.end-account-save-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.end-account-save-actions {
  display: flex;
  gap: 10px;
}
.end-account-yes-btn {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  border: none;
  color: var(--canvas);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.end-account-yes-btn:hover { opacity: 0.85; }
.end-account-no-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--faint);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.end-account-no-btn:hover { border-color: var(--ink); }

.end-account-saved-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  padding: 12px 0;
  margin-bottom: 8px;
}

.end-account-repeat-btn {
  background: transparent;
  border: 1px solid var(--faint);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px auto 16px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.end-account-repeat-btn:hover {
  background: var(--surface);
  border-color: var(--ink);
}
.end-account-repeat-btn:active {
  transform: scale(0.98);
}

.end-account-feel-eyebrow {
  margin-top: 8px;
  margin-bottom: 10px;
  color: rgba(243, 228, 209, 0.9);
}

.end-account-feel-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* A5 (18-may council GO toast + plan B medición) — el rating ya no compite
   con "guardar" en la pantalla. Toast inferior post-save/discard. 4s visible
   por default; si user toca chip, queda hasta que tap el ✕ o se completa
   dimension. Plan B: si % respuesta cae <40% en 30d, revertir a inline. */
.end-rating-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: -300px;
  z-index: 60;
  max-width: 480px;
  margin: 0 auto;
  background: var(--ink, #2A1C14);
  color: var(--canvas, #EEE4D7);
  border-radius: 18px;
  padding: 18px 20px 16px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: bottom 0.42s cubic-bezier(0.32, 0.72, 0.34, 1), opacity 0.42s ease;
}
.end-rating-toast.is-visible {
  bottom: max(20px, env(safe-area-inset-bottom, 0px) + 20px);
  opacity: 1;
  pointer-events: auto;
}
.end-rating-toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(243, 228, 209, 0.55);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.end-rating-toast-close:hover { color: rgba(243, 228, 209, 0.9); }
.end-rating-toast .end-account-feel-chips .s-chip {
  background: transparent;
  border: 1px solid rgba(243, 228, 209, 0.25);
  color: var(--canvas, #EEE4D7);
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  padding: 8px 12px;
}
.end-rating-toast .end-account-feel-chips .s-chip:hover { border-color: rgba(243, 228, 209, 0.55); }
.end-rating-toast .end-account-feel-chips .s-chip.active {
  background: var(--canvas, #EEE4D7);
  color: var(--ink, #2A1C14);
  border-color: var(--canvas, #EEE4D7);
}
.end-rating-toast .end-rating-dim-chips .s-chip {
  background: transparent;
  border: 1px solid rgba(243, 228, 209, 0.2);
  color: rgba(243, 228, 209, 0.85);
  font-size: 11.5px;
}
.end-rating-toast .end-rating-dim-chips .s-chip.active {
  background: rgba(243, 228, 209, 0.18);
  color: var(--canvas, #EEE4D7);
  border-color: rgba(243, 228, 209, 0.55);
}
.end-rating-toast .end-rating-saved {
  color: rgba(243, 228, 209, 0.7);
  font-size: 12.5px;
  margin: 6px 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .end-rating-toast { transition: opacity 0.2s ease; }
}

/* Rating dimensions: aparecen solo si rating != 'helped'. Detectan qué falló. */
.end-rating-dimensions {
  margin-top: 4px;
  margin-bottom: 16px;
  animation: rating-fade-in 0.4s ease both;
}

.end-rating-dimensions-eyebrow {
  margin-top: 8px;
  margin-bottom: 10px;
  opacity: 0.85;
}

.end-rating-dim-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Confirmación silenciosa cuando el rating se guarda */
.end-rating-saved {
  font-family: var(--font-text);
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 24px;
  font-style: italic;
  opacity: 0.85;
  animation: rating-fade-in 0.4s ease both;
}

@keyframes rating-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 0.85; transform: translateY(0); }
}

.end-account-footer {
  margin-top: auto;
}
