/* Réplica: pulido de diseño. Menú más liviano, barra de arriba neutra, chat más legible y menos ruido. */

/* Menú: un solo "Pronto" por sección y módulos legibles aunque todavía no funcionen. */
.panel-sec .rm-sec-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: var(--hover-suave);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.02em;
  text-transform: none;
  vertical-align: 1px;
  color: var(--panel-muted);
}
.rm-scroll .panel-sec {
  padding: 18px 10px 6px;
}
.rm-scroll .panel-link:disabled {
  opacity: 0.92;
}
.rm-scroll .panel-link:disabled svg {
  opacity: 0.7;
}
.panel-link.rm-grupo {
  opacity: 0.92;
}
.rm-grupo .rm-flecha {
  margin-left: auto;
}
.rm-chats {
  border-left-color: var(--hover-suave);
}
#registro {
  transition: opacity 0.3s;
}
#registro[data-reposo] {
  display: none;
}
@media (min-width: 821px) {
  body:not(.panel-abierto) .rm-sec-tag {
    display: none;
  }
}

/* Barra de arriba: todo neutro y del mismo alto; el color queda solo en el puntito de estado. */
.barra {
  gap: 8px;
}
.barra #estado[data-reposo] {
  opacity: 0;
}
.rm-idioma {
  height: 32px;
  align-items: center;
  border-color: var(--borde-fuerte);
}
.rm-idioma button {
  padding: 4px 9px;
}

#modo-pill-wrap {
  height: 32px;
  padding: 0 4px 0 11px;
  border-color: var(--borde-fuerte);
  background: var(--hover-suave);
  color: var(--panel-texto);
  transition: background 0.15s, border-color 0.15s;
}
#modo-pill-wrap:hover,
#modo-pill-wrap.abierta {
  background: var(--hover);
  border-color: rgba(120, 160, 255, 0.32);
}
#modo-pill-wrap select {
  font-weight: 550;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
:where(#modo-pill-wrap).es-voz .cerebro-pill-dot {
  background: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16), 0 0 8px rgba(45, 212, 191, 0.55);
}
:where(#modo-pill-wrap).es-texto .cerebro-pill-dot {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

/* Día / noche: un solo icono redondo (luna de noche, sol de día). */
#tema {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border-color: var(--borde-fuerte);
  background: transparent;
}
#tema:hover {
  background: var(--hover);
}
#tema .btn-tema-knob {
  display: none;
}
#tema .btn-tema-pista {
  position: static;
  padding: 0;
  justify-content: center;
  color: var(--panel-texto);
}
#tema .btn-tema-pista svg {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}
html:not(.tema-dia) #tema .btn-tema-pista svg:first-child,
html.tema-dia #tema .btn-tema-pista svg:last-child {
  display: none;
}

/* Dormir: botón de apagado discreto que solo se pone rojo al pasar el mouse. */
#dormir {
  position: relative;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  gap: 0;
  border-color: var(--borde-fuerte);
  background: transparent;
  color: var(--muted);
}
#dormir > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#dormir:hover,
#dormir:focus-visible {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(185, 28, 28, 0.32);
  color: #fecaca;
}
html.tema-dia #dormir:hover,
html.tema-dia #dormir:focus-visible {
  background: rgba(254, 202, 202, 0.6);
  color: #b91c1c;
}

/* Chat: letra más grande y con aire entre líneas. */
#mensajes {
  gap: 18px;
}
.msg .cuerpo {
  font-size: 16px;
}
.msg.assistant .cuerpo {
  line-height: 1.7;
}
.msg.user .cuerpo {
  padding: 10px 16px;
  line-height: 1.5;
}

/* Un solo "Nueva conversación" (el del panel de chats): fuera el botón flotante de abajo. */
#chip-nueva {
  display: none;
}
#chips-chat:not(:has(#voz-volver:not([hidden]))) {
  padding: 0 0 6px;
}

/* Iconos de cada respuesta: a la vista en la última; en las anteriores, al pasar el mouse. */
@media (hover: hover) {
  .msg.assistant .msg-acciones {
    opacity: 0;
    transition: opacity 0.18s;
  }
  .msg.assistant:hover .msg-acciones,
  .msg.assistant .msg-acciones:focus-within,
  .msg.assistant .msg-acciones.leyendo,
  .msg.assistant .msg-acciones.pausada,
  #mensajes > .msg.assistant:last-child .msg-acciones {
    opacity: 0.85;
  }
}

@media (max-width: 820px) {
  .msg .cuerpo {
    font-size: 15px;
  }
  .msg.assistant .cuerpo {
    line-height: 1.6;
  }
}
