/* =============================================================================
   Acceso del segundo tutor · pantallas del equipo (v1.60.0) · segundo-tutor.js
   Tarjeta «Tutores», hoja «Situación», avisos rojos y pestañas de Mensajes. Mismos colores que ficha-panel.css.
   ============================================================================= */
.st-rojo { background: #fdeceb; color: #b3261e; }

/* Tarjeta «Tutores»: una fila por tutor (nombre · relación, pastillas, botones y el interruptor de citas) */
.st-tutor { display: grid; gap: 8px; padding: 2px 0; }
.st-tutor + .st-tutor { border-top: 1px solid #f1eee8; padding-top: 12px; margin-top: 4px; }
.st-tutor-cab { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.st-tutor-cab small { display: block; color: #66625f; font-size: 11px; }
.st-pastillas { display: flex; flex-wrap: wrap; gap: 5px; }
.st-pastillas .fp-pil { white-space: normal; text-align: left; }
.st-botones { display: flex; flex-wrap: wrap; gap: 6px; }
.st-btn { font-weight: 800; font-size: 12.5px; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid #e8e4de; background: #fff; color: #2b2b2b; cursor: pointer; white-space: nowrap; }
.st-btn:hover { background: #f6f2ea; }
.st-btn.fuerte { background: #bd5518; color: #fff; border-color: transparent; }
.st-btn.fuerte:hover { background: #a54913; }
.st-btn[aria-disabled="true"] { opacity: .55; }
.st-btn:focus-visible, .st-pestana:focus-visible { outline: 3px solid #e7aa2d; outline-offset: 2px; }

/* «Puede pedir y cambiar citas» */
.st-palanca { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: #2b2b2b; cursor: pointer; font-size: 12.5px; }
.st-palanca input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-riel { width: 38px; height: 22px; border-radius: 99px; background: #d9d4cc; position: relative; flex: none; transition: background .15s; }
.st-riel::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.st-palanca input:checked + .st-riel { background: #2f7a4f; }
.st-palanca input:checked + .st-riel::after { transform: translateX(16px); }
.st-palanca input:focus-visible + .st-riel { outline: 3px solid #e7aa2d; outline-offset: 2px; }

/* Avisos rojos arriba de la ficha (en todas las pestañas) */
.st-avisos { display: grid; gap: 8px; margin-bottom: 4px; }
.st-aviso { border-radius: 14px; border-top: 0; }
.st-avisos .fv-aviso b { font-size: 14px; }

/* La línea roja de cada cita (agenda y sesión) */
.st-cita-aviso { margin-top: 6px; display: inline-flex; gap: 6px; align-items: baseline; background: #fdeceb; color: #8f1d17; border-left: 3px solid #b3261e; border-radius: 8px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; }
.st-cita-aviso > span { color: #b3261e; font-weight: 900; }

/* La hoja «Situación de …»: abajo en el móvil, centrada en tablet y ordenador */
.st-capa { position: fixed; inset: 0; background: rgba(15, 23, 42, .42); z-index: 95; display: flex; align-items: flex-end; justify-content: center; }
.st-capa[hidden] { display: none; }
.st-panel { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 18px 18px 22px; display: grid; gap: 12px; font-size: 13px; color: #2b2b2b; box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
@media (min-width: 640px) { .st-capa { align-items: center; padding: 16px; } .st-panel { border-radius: 22px; } }
.st-panel-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.st-panel-cab h3 { font-family: 'Fredoka', 'Nunito', sans-serif; font-size: 19px; font-weight: 700; margin: 0; }
.st-cerrar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f6f2ea; font-size: 22px; line-height: 1; cursor: pointer; color: #66625f; }
.st-texto { color: #4b4743; margin: 0; }
.st-opciones { display: grid; gap: 8px; }
.st-opcion { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; border: 1.5px solid #e8e4de; border-radius: 14px; padding: 11px 12px; cursor: pointer; min-height: 44px; }
.st-opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-opcion b { display: block; font-size: 13.5px; }
.st-opcion small { display: block; color: #66625f; font-size: 12px; margin-top: 2px; }
.st-punto { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9c2b7; margin-top: 2px; }
.st-opcion.elegida { border-color: #bd5518; background: #fff8f0; }
.st-opcion.elegida .st-punto { border-color: #bd5518; background: radial-gradient(circle, #bd5518 0 45%, #fff 50%); }
.st-opcion:has(input:focus-visible) { outline: 3px solid #e7aa2d; outline-offset: 2px; }
.st-nota-doc { background: #f6f2ea; border-radius: 12px; padding: 9px 12px; color: #4b4743; font-size: 12px; margin: 0; }
.st-campo { display: grid; gap: 5px; }
.st-campo label { font-weight: 800; font-size: 12.5px; }
.st-campo select, .st-campo textarea { width: 100%; border: 1px solid #e8e4de; border-radius: 12px; padding: 10px 12px; font-size: 16px; background: #fffdf9; color: #2b2b2b; }
.st-subir { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: #bd5518; cursor: pointer; justify-self: start; }
.st-subir input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-subir:focus-within { outline: 3px solid #e7aa2d; outline-offset: 2px; border-radius: 8px; }
.st-suave { color: #66625f; font-weight: 400; font-size: 12px; }
.st-confirmar { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; background: #fdeceb; border-radius: 12px; padding: 10px 12px; color: #8f1d17; font-weight: 700; cursor: pointer; }
.st-confirmar input { width: 18px; height: 18px; margin-top: 2px; accent-color: #b3261e; }
.st-error { background: #fdeceb; color: #8f1d17; border-radius: 10px; padding: 8px 12px; margin: 0; font-weight: 700; }
.st-error[hidden] { display: none; }
.st-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

/* Ficha › Mensajes: una pestaña por conversación */
.st-pestanas { display: flex; gap: 6px; padding: 8px 12px 0; background: #fffaf2; border-bottom: 1px solid #e8e4de; overflow-x: auto; }
.st-pestana { min-height: 40px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 800; font-size: 13px; color: #66625f; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.st-pestana[aria-selected="true"] { color: #2b2b2b; border-bottom-color: #bd5518; }
.st-n { background: #bd5518; color: #fff; border-radius: 99px; font-size: 10.5px; padding: 1px 7px; }
