/*
 * Mi Cuenta · identidad de cada sección (Fase 4B).
 * Una sola cabecera por sección, con el color de la sección (--account-tone de account-navigation.css), su dato real
 * más importante y la acción principal. El ícono de la sección vive sólo en el menú y en la barra «Estás en»: la
 * cabecera lleva un dibujo de línea propio. En el Resumen, «Tu consultorio preparado» y las tarjetas de cada hito.
 * Todo queda acotado a #accountView: sin variables en :root ni estados sueltos.
 */

/* ---- Cabecera única ---- */
#accountView .account-section-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 22px; align-items: end; overflow: hidden; margin: 0 0 18px; padding: 24px 26px; border-radius: 20px; color: #fff; background: linear-gradient(115deg, color-mix(in srgb, var(--account-tone-ink) 76%, #0b1430), var(--account-tone)); box-shadow: 0 14px 30px color-mix(in srgb, var(--account-tone) 22%, transparent); animation: account-hero-in .3s ease; }
#accountView .account-inline-panel > article > .account-section-hero { margin: 18px 18px 6px; }
#accountView .account-section-hero__art { position: absolute; top: 8%; right: 2%; width: auto; height: 84%; aspect-ratio: 320 / 200; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .15; pointer-events: none; }
#accountView .account-section-hero > :not(.account-section-hero__art) { position: relative; z-index: 1; }
#accountView .account-section-hero__text { min-width: 0; }
#accountView .account-section-hero__kicker { display: block; color: rgba(255, 255, 255, .84); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
#accountView .account-section-hero h2 { margin: 3px 0 0; color: #fff; font-size: clamp(21px, 2vw, 26px) !important; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: break-word; }
#accountView .account-section-hero__signal { margin-top: 12px; }
#accountView .account-section-hero__signal > strong { display: block; color: #fff; font-size: clamp(20px, 2.1vw, 27px) !important; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: break-word; }
#accountView .account-section-hero__signal > p { max-width: 640px; margin: 5px 0 0; color: rgba(255, 255, 255, .9); font-size: 14px !important; line-height: 1.45; }
#accountView .account-section-hero__signal > p[hidden], #accountView .account-section-hero__visual[hidden], #accountView .account-section-hero [data-account-hero-action][hidden] { display: none; }

/* Dibujo de estado: lugares, días y canales, siempre con datos reales */
#accountView .account-section-hero__visual { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
#accountView .account-section-hero__visual.is-seats i { display: grid; width: 32px; height: 32px; place-items: center; border: 1.5px dashed rgba(255, 255, 255, .62); border-radius: 10px; color: #fff; }
#accountView .account-section-hero__visual.is-seats i.is-on { border: 0; color: var(--account-tone-ink); background: #fff; }
#accountView .account-section-hero__visual.is-seats .app-icon { width: 16px; height: 16px; }
#accountView .account-section-hero__visual.is-week i { min-width: 44px; padding: 6px 7px; border: 1.5px dashed rgba(255, 255, 255, .58); border-radius: 10px; color: rgba(255, 255, 255, .88); font-size: 12.5px; font-style: normal; font-weight: 850; text-align: center; }
#accountView .account-section-hero__visual.is-week i.is-on { border: 1.5px solid #fff; color: var(--account-tone-ink); background: #fff; }
#accountView .account-section-hero__visual.is-channels span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 850; }
#accountView .account-section-hero__visual.is-channels span.is-on { border-color: #fff; color: var(--account-tone-ink); background: #fff; }
#accountView .account-section-hero__visual.is-channels .app-icon { width: 16px; height: 16px; }

/* Acción principal en blanco; secundaria transparente. El botón de tutoriales conserva su estilo canónico. */
#accountView .account-section-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; align-self: end; }
#accountView .account-section-hero__actions:empty { display: none; }
#accountView .account-section-hero [data-account-hero-action], #accountView .account-readiness__next button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border: 0; border-radius: 14px; color: var(--account-tone-ink); background: #fff; font: inherit; font-size: 14px !important; font-weight: 850; white-space: nowrap; box-shadow: 0 8px 18px rgba(7, 17, 40, .18); cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
#accountView .account-section-hero [data-account-hero-action]:hover:not(:disabled), #accountView .account-readiness__next button:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(7, 17, 40, .22); }
#accountView .account-section-hero [data-account-hero-action]:disabled { cursor: not-allowed; opacity: .6; box-shadow: none; }
#accountView .account-section-hero [data-account-hero-action] .app-icon, #accountView .account-readiness__next button .app-icon { width: 17px; height: 17px; }
#accountView .account-section-hero .account-section-hero__secondary { display: inline-flex; min-height: 46px; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 14px; color: #fff; background: rgba(255, 255, 255, .12); font: inherit; font-size: 14px !important; font-weight: 850; cursor: pointer; }
#accountView .account-section-hero .account-section-hero__secondary .app-icon { width: 17px; height: 17px; }
/* Botón de tutoriales: mismo tamaño, forma e ícono que en Fichas y Agenda; el borde y el ícono acompañan el color de la sección en reposo, al pasar el mouse, al enfocar y al pulsar. */
#accountView .account-section-hero .tutorial-access-button { align-self: start; border-color: color-mix(in srgb, var(--account-tone) 45%, #fff); color: var(--account-tone-ink); background: #fff; }
#accountView .account-section-hero .tutorial-access-button:hover, #accountView .account-section-hero .tutorial-access-button:focus-visible { border-color: var(--account-tone-ink); color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 12%, #fff); box-shadow: 0 8px 18px color-mix(in srgb, var(--account-tone-ink) 38%, transparent); }
#accountView .account-section-hero .tutorial-access-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#accountView .account-section-hero .tutorial-access-button:active { border-color: var(--account-tone-ink); color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 22%, #fff); box-shadow: 0 3px 8px color-mix(in srgb, var(--account-tone-ink) 30%, transparent); }
#accountView .account-section-hero[data-account-hero="agenda-online"] .account-section-hero__actions { align-self: start; }

/* ---- Lo que la cabecera reemplaza dentro de cada sección ---- */
#accountView #accountRemindersDialog .account-reminders-balance-heading,
#accountView #accountDataImportExistingPatients { display: none !important; }

/* Recordatorios: cada canal con su color. WhatsApp sigue en verde; el correo, en azul */
#accountView #accountRemindersDialog .account-reminder-channel.is-email .account-reminder-master > input:checked + .account-reminder-switch { background: #2278ff; }
#accountView #accountRemindersDialog .account-reminder-channel.is-email .account-reminder-master > input:focus-visible + .account-reminder-switch { outline-color: rgba(34, 120, 255, .3); }
#accountView #accountRemindersDialog .account-reminder-channel.is-email .account-reminder-options label:has(input:checked:not(:disabled)) { border-color: #a9c8f5; background: #f2f7ff; box-shadow: 0 0 0 2px rgba(34, 120, 255, .06); }

/* Recordatorios: el saldo total está en la cabecera; acá queda el desglose a todo el ancho, sin hueco ni fondo crema */
#accountView #accountRemindersDialog .account-reminders-balance { display: block; padding: 14px; }
#accountView #accountRemindersDialog .account-reminders-balance dl { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
#accountView #accountRemindersDialog .account-reminders-balance dl div { border-color: color-mix(in srgb, var(--account-tone) 22%, #fff); background: color-mix(in srgb, var(--account-tone) 5%, #fff); }
/* «Comprar mensajes» vuelve debajo del desglose (decisión del 20/10/2026, como «Sumar profesional»): sólo para quien
   administra los pagos y con el color de la sección, no el azul del correo. */
#accountView #accountRemindersDialog #accountMessagePacks { display: grid; width: 100%; margin-top: 12px; border-color: transparent; background: linear-gradient(100deg, var(--account-tone-ink), var(--account-tone)); box-shadow: 0 10px 20px color-mix(in srgb, var(--account-tone) 30%, transparent); }
#accountView #accountRemindersDialog #accountMessagePacks[hidden] { display: none; }
#accountView #accountRemindersDialog #accountMessagePacks:hover:not(:disabled), #accountView #accountRemindersDialog #accountMessagePacks:focus-visible:not(:disabled) { box-shadow: 0 13px 24px color-mix(in srgb, var(--account-tone) 36%, transparent); }
#accountView #accountRemindersDialog #accountMessagePacks:focus-visible { outline: 3px solid color-mix(in srgb, var(--account-tone) 45%, #fff); outline-offset: 2px; }

/* Consultorio: los tres objetivos quedan como fichas claras debajo de la cabecera (sin una segunda franja oscura) */
#accountView .account-settings-journey { border: 1px solid color-mix(in srgb, var(--account-tone) 20%, #fff); color: #24334b; background: color-mix(in srgb, var(--account-tone) 5%, #fff); box-shadow: none; }
#accountView .account-settings-journey::after { content: none; }
#accountView .account-settings-journey > header > span { color: var(--account-tone); background: color-mix(in srgb, var(--account-tone) 13%, #fff); box-shadow: none; }
#accountView .account-settings-journey > header p { color: var(--account-tone-ink); }
#accountView .account-settings-journey > header h3 { color: #24334b; }
#accountView .account-settings-journey > header small { color: #5b6580; }
#accountView .account-settings-journey > header > strong { border-color: color-mix(in srgb, var(--account-tone) 30%, #fff); color: var(--account-tone-ink); background: #fff; }
#accountView .account-settings-progress { background: color-mix(in srgb, var(--account-tone) 12%, #fff); box-shadow: none; }
#accountView .account-settings-progress > i { background: var(--account-tone); box-shadow: none; }
#accountView .account-settings-goals > article { border-color: color-mix(in srgb, var(--account-tone) 22%, #fff); background: #fff; backdrop-filter: none; }
#accountView .account-settings-goals > article > span { color: var(--account-tone); background: color-mix(in srgb, var(--account-tone) 11%, #fff); }
#accountView .account-settings-goals b { color: #24334b; }
#accountView .account-settings-goals small { color: #5b6580; }
#accountView .account-settings-goals em { color: #6b7690; }
#accountView .account-settings-goals > article.is-complete { border-color: var(--account-tone); box-shadow: 0 8px 18px color-mix(in srgb, var(--account-tone) 16%, transparent); }

/* Importar: el recorrido de tres pasos queda claro, con el color de la sección */
#accountView .account-data-import__intro { border: 1px solid color-mix(in srgb, var(--account-tone) 22%, #fff); color: #24334b; background: color-mix(in srgb, var(--account-tone) 5%, #fff); }
#accountView .account-data-import__intro p { color: var(--account-tone-ink); }
#accountView .account-data-import__intro div > span { color: #5b6580; }
#accountView .account-data-import__intro li { color: #6b7690; }
#accountView .account-data-import__intro li:not(:last-child)::after { background: color-mix(in srgb, var(--account-tone) 30%, #fff); }
#accountView .account-data-import__intro li b { border-color: color-mix(in srgb, var(--account-tone) 35%, #fff); color: var(--account-tone-ink); background: #fff; }
#accountView .account-data-import__intro li.is-current, #accountView .account-data-import__intro li.is-complete { color: var(--account-tone-ink); }
#accountView .account-data-import__intro li.is-current b { border-color: var(--account-tone-ink); color: #fff; background: var(--account-tone-ink); }
#accountView .account-data-import__intro li.is-complete b { border-color: var(--account-tone); color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 14%, #fff); }

/* Códigos QR: dos tarjetas por fila sólo cuando cada una tiene lugar real; el estado no se monta sobre el título */
#accountView #accountQrDialog .account-qr-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 680px), 1fr)); }
#accountView #accountQrDialog .account-qr-card > header { grid-template-columns: 54px minmax(0, 1fr); }
#accountView #accountQrDialog .account-qr-card > header > em { grid-column: 2; justify-self: start; }
#accountView #accountQrDialog .account-qr-card > header h3 { overflow-wrap: normal; word-break: normal; }
#accountView #accountQrDialog .account-qr-assignment { flex-wrap: wrap; overflow-wrap: normal; word-break: normal; }
#accountView #accountQrDialog .account-qr-actions { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
#accountView #accountQrDialog .account-qr-actions > button { white-space: nowrap; }

/* ---- El interior de cada sección acompaña el color de su cabecera (revisión del usuario, 12/10/2026) ---- */

/* Agenda online: berenjena en pasos, siguiente paso, botones y opciones; publicada (verde), pausada y con problemas conservan su color de estado */
#accountView #accountOnlineBookingDialog { --aob-todo: var(--account-tone); --aob-todo-ink: var(--account-tone-ink); --aob-todo-soft: color-mix(in srgb, var(--account-tone) 8%, #fff); --aob-check: var(--account-tone); --aob-check-ink: var(--account-tone-ink); --aob-check-soft: color-mix(in srgb, var(--account-tone) 10%, #fff); }
#accountView #accountOnlineBookingDialog .aob-status > header, #accountView #accountOnlineBookingDialog .aob-status[data-tone="ready"] > header { background: linear-gradient(135deg, var(--account-tone-ink), var(--account-tone)); }
#accountView #accountOnlineBookingDialog .aob-btn--primary:not(:disabled) { background: linear-gradient(135deg, var(--account-tone-ink), var(--account-tone)); box-shadow: 0 8px 18px color-mix(in srgb, var(--account-tone) 28%, transparent); }
#accountView #accountOnlineBookingDialog .aob-chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--account-tone-ink), var(--account-tone)); }
#accountView #accountOnlineBookingDialog .aob-check input, #accountView #accountOnlineBookingDialog .aob-radio input { accent-color: var(--account-tone); }
#accountView #accountOnlineBookingDialog .aob-soon .app-icon { stroke: var(--account-tone); }

/* Alertas: el panel y las opciones siguen al rosa frambuesa en su variante oscura, sin teñir todo */
#accountView #accountPwaNotificationsDialog .pwa-notification-settings { border-color: color-mix(in srgb, var(--account-tone) 22%, #fff); background: #fff; box-shadow: 0 16px 34px color-mix(in srgb, var(--account-tone) 10%, transparent); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__form fieldset label > .pwa-notification-option-content { border-color: color-mix(in srgb, var(--account-tone) 22%, #fff); color: #5b6580; background: #fff; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__form fieldset label.is-selected > .pwa-notification-option-content { border-color: color-mix(in srgb, var(--account-tone) 55%, #fff); color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 6%, #fff); box-shadow: none; }
#accountView #accountPwaNotificationsDialog .pwa-notification-option-state.is-selected { border-color: var(--account-tone-ink) !important; }
#accountView #accountPwaNotificationsDialog .pwa-notification-option-state.is-selected i { background: var(--account-tone-ink); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__master > input:checked + span { background: linear-gradient(90deg, var(--account-tone-ink), var(--account-tone)); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__quiet { border-color: color-mix(in srgb, var(--account-tone) 22%, #fff); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__quiet-copy > span { color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 10%, #fff); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__quiet-switch > input:checked + span { background: linear-gradient(90deg, var(--account-tone-ink), var(--account-tone)); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__priority:not(.is-high) { color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 9%, #fff); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__health > div { background: #f4f6fa; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__health dd { color: var(--account-tone-ink); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__devices { border-color: color-mix(in srgb, var(--account-tone) 20%, #fff); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__permission, #accountView #accountPwaNotificationsDialog .pwa-notification-settings__test { color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 9%, #fff); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__save { background: linear-gradient(100deg, var(--account-tone-ink), var(--account-tone)); box-shadow: 0 8px 18px color-mix(in srgb, var(--account-tone) 24%, transparent); }
/* El aviso de muestra se rotula como ejemplo, para que nadie crea que tiene algo pendiente */
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__example { display: flex; align-items: center; gap: 8px; margin: 0 0 -8px; color: #5b6580; font-size: 12px; font-weight: 850; letter-spacing: .08em; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__example span { padding: 3px 8px; border-radius: 999px; color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 10%, #fff); letter-spacing: .04em; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__preview { pointer-events: none; }

/* Importar: menta en los pasos, el área para soltar el archivo y los botones */
#accountView #accountDataImportDialog .account-data-import__steps > button.is-active { border-color: color-mix(in srgb, var(--account-tone) 55%, #fff); color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 8%, #fff); box-shadow: 0 8px 20px color-mix(in srgb, var(--account-tone) 12%, transparent); }
#accountView #accountDataImportDialog .account-data-import__steps > button.is-active > span, #accountView #accountDataImportDialog .account-data-import__dropzone > span, #accountView #accountDataImportDialog .account-data-import__agenda-gate > span { color: #fff; background: linear-gradient(145deg, var(--account-tone), var(--account-tone-ink)); }
#accountView #accountDataImportDialog .account-data-import__panel > header p { color: var(--account-tone-ink); }
#accountView #accountDataImportDialog .account-data-import__dropzone { border-color: color-mix(in srgb, var(--account-tone) 45%, #fff); }
#accountView #accountDataImportDialog .account-data-import__dropzone.is-dragging { border-color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 8%, #fff); }
#accountView #accountDataImportDialog .account-data-import__agenda-gate { border-color: color-mix(in srgb, var(--account-tone) 25%, #fff); background: color-mix(in srgb, var(--account-tone) 6%, #fff); }
#accountView #accountDataImportDialog .account-data-import__agenda-gate > button { border-color: color-mix(in srgb, var(--account-tone) 45%, #fff); color: var(--account-tone-ink); }
#accountView #accountDataImportDialog #analyzePatientImport, #accountView #accountDataImportDialog #analyzeAgendaImport, #accountView #accountDataImportDialog #previewPatientImport, #accountView #accountDataImportDialog #previewAgendaImport, #accountView #accountDataImportDialog #commitPatientImport, #accountView #accountDataImportDialog #commitAgendaImport { background: linear-gradient(135deg, var(--account-tone-ink), color-mix(in srgb, var(--account-tone-ink) 70%, var(--account-tone))); box-shadow: 0 8px 18px color-mix(in srgb, var(--account-tone) 20%, transparent); }
#accountView #accountDataImportDialog .account-data-import__configuration { border-color: color-mix(in srgb, var(--account-tone) 20%, #fff); background: color-mix(in srgb, var(--account-tone) 4%, #fff); }

/* Backup: grafito en el contenido del archivo, su etiqueta y los avisos */
#accountView #patientExportDialog .patient-export-included { border-color: color-mix(in srgb, var(--account-tone) 18%, #fff); }
#accountView #patientExportDialog .patient-export-included header p { color: var(--account-tone); }
#accountView #patientExportDialog .patient-export-included header b { color: #fff; background: var(--account-tone); }
#accountView #patientExportDialog .patient-export-included > div span::before { background: var(--account-tone); }
#accountView #patientExportDialog .patient-export-security { border-color: color-mix(in srgb, var(--account-tone) 18%, #fff); color: var(--account-tone); background: color-mix(in srgb, var(--account-tone) 4%, #fff); }
#accountView #patientExportDialog .patient-export-status { color: var(--account-tone); }

/* Profesionales: las tarjetas comparten filas, así los datos quedan a la misma altura y los botones abajo */
#accountView #professionalList > article { grid-row: span 5; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
#accountView #professionalList > article > footer { align-self: end; }
#accountView #professionalDialog .professional-directory > header p, #accountView #professionalList article > header em, #accountView #professionalList dt { font-size: 12px !important; }
/* Nombre y correo completos: se parten en renglones antes que cortarse */
#accountView #professionalList article > header strong, #accountView #professionalList article > header small { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
/* «Sumar profesional» junto al título de la lista: la cabecera de color informa y la acción vive en el contenido (17/10/2026).
   Si no entra en la fila del título baja y ocupa el ancho que queda, como «Nuevo horario» en Disponibilidad. */
#accountView #professionalDialog .professional-directory > header { flex-wrap: wrap; align-items: center; gap: 12px 14px; }
#accountView #professionalDialog .professional-directory > header > div { flex: 999 1 260px; min-width: 0; }
#accountView #professionalDialog #addProfessional { display: inline-flex; min-height: 50px; flex: 1 0 auto; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(100deg, var(--account-tone-ink), var(--account-tone)); box-shadow: 0 10px 20px color-mix(in srgb, var(--account-tone) 30%, transparent); font: inherit; font-size: 14px !important; font-weight: 900; letter-spacing: .03em; white-space: nowrap; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
#accountView #professionalDialog #addProfessional[hidden] { display: none; }
#accountView #professionalDialog #addProfessional:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 13px 24px color-mix(in srgb, var(--account-tone) 36%, transparent); }
#accountView #professionalDialog #addProfessional:focus-visible { outline: 3px solid color-mix(in srgb, var(--account-tone) 45%, #fff); outline-offset: 2px; }
#accountView #professionalDialog #addProfessional:disabled { color: #8d95a4; background: #e1e5ec; box-shadow: none; cursor: not-allowed; }
#accountView #professionalDialog #addProfessional .app-icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { #accountView #professionalDialog #addProfessional { transition: none; } }

/* ---- Resumen: «Tu consultorio preparado» ---- */
#accountView .account-panel-welcome > .account-readiness { margin: 0; align-items: center; }
#accountView .account-readiness__bar { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 10px 8px; margin: 2px 0 0; padding: 0; list-style: none; }
#accountView .account-readiness__bar li { display: grid; min-width: 0; gap: 5px; color: rgba(255, 255, 255, .82); font-size: 12px; font-weight: 850; }
#accountView .account-readiness__bar li::before { height: 8px; border-radius: 99px; content: ""; background: rgba(255, 255, 255, .24); }
#accountView .account-readiness__bar li.is-done { color: #fff; }
#accountView .account-readiness__bar li.is-done::before { background: #fff; }
#accountView .account-readiness__bar li span { overflow-wrap: break-word; }
#accountView .account-readiness__bar li small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#accountView .account-readiness__next { display: grid; gap: 4px; max-width: 340px; padding: 15px 17px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 17px; background: rgba(255, 255, 255, .13); }
#accountView .account-readiness__next[hidden] { display: none; }
#accountView .account-readiness__next small { color: rgba(255, 255, 255, .82); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
#accountView .account-readiness__next strong { color: #fff; font-size: 17px; line-height: 1.25; }
#accountView .account-readiness__next p { margin: 0 0 8px; color: rgba(255, 255, 255, .9); font-size: 13.5px; line-height: 1.4; }
#accountView .account-readiness__next button { justify-self: start; }

/* Usuario: iniciales en un círculo, como las fotos de los pacientes; el nivel conserva su emblema */
#accountView .account-profile-card .account-profile-mark { border-radius: 50%; }
#accountView #professionalList article > header > span { border-radius: 50%; }
#accountView .account-profile-mark b { color: #4338ca; font-size: 25px !important; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
#accountView .account-profile-tier { display: inline-flex; align-items: center; gap: 7px; }
#accountView .account-profile-tier .account-profile-tier__icon { width: 20px; height: 20px; color: #c7d2fe; }
#accountView .account-profile-tier.is-premium-plan .account-profile-tier__icon { color: #fbbf24; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }

/* Plan: la corona amarilla de PREMIUM acompaña al título de la cabecera */
#accountView .account-section-hero__title-row { display: flex; align-items: center; gap: 12px; margin-top: 3px; }
#accountView .account-section-hero__title-row h2 { margin: 0; }
#accountView .account-section-hero__tier { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 13px; color: #fff; background: rgba(255, 255, 255, .16); }
#accountView .account-section-hero__tier[hidden] { display: none; }
#accountView .account-section-hero__tier .app-icon { width: 23px; height: 23px; }
#accountView .account-section-hero__tier.is-premium .app-icon { color: #fbbf24; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }

/* ---- Tarjetas de los hitos: marco con el color de su sección; el contenido interno es el de siempre ---- */
#accountView .account-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#accountView .account-summary-grid > article.account-quick-card { position: relative; grid-column: span 1; border: 1.5px solid color-mix(in srgb, var(--account-tone) 22%, #fff); color: #24334b; background: color-mix(in srgb, var(--account-tone) 5%, #fff); box-shadow: 0 10px 24px color-mix(in srgb, var(--account-tone) 9%, transparent); }
#accountView .account-summary-grid > article.account-quick-card[hidden] { display: none; }
#accountView .account-summary-grid > article.account-quick-card::before { background: var(--account-tone); }
#accountView .account-summary-grid > article.account-quick-card::after { content: none; }
#accountView .account-summary-grid > article.account-quick-card > span { position: static; color: #fff; background: var(--account-tone); box-shadow: 0 8px 18px color-mix(in srgb, var(--account-tone) 26%, transparent); }
#accountView .account-summary-grid > article.account-quick-card small { color: var(--account-tone-ink); }
#accountView .account-summary-grid > article.account-quick-card strong { color: #24334b; }
#accountView .account-summary-grid > article.account-quick-card p { color: #5b6580; }
#accountView .account-summary-grid > article.account-quick-card > div > button { color: var(--account-tone-ink); }
#accountView .account-summary-grid > article.account-quick-card > div > button .app-icon { background: var(--account-tone); }
#accountView .account-summary-grid > article.account-quick-card > div > button:hover { color: var(--account-tone-ink); }
#accountView .account-summary-grid > article.account-quick-card:hover { border-color: color-mix(in srgb, var(--account-tone) 45%, #fff); }

/* Pendiente: borde punteado del color de la sección, nunca crema ni ocre */
#accountView .account-summary-grid > article.account-quick-card[data-readiness="pending"],
#accountView .account-summary-grid > article.account-quick-card[data-readiness="waiting"] { border-style: dashed; border-color: color-mix(in srgb, var(--account-tone) 48%, #fff); background: #fff; box-shadow: none; }
#accountView .account-summary-grid > article.account-quick-card[data-readiness="pending"] > span,
#accountView .account-summary-grid > article.account-quick-card[data-readiness="waiting"] > span { color: var(--account-tone); background: color-mix(in srgb, var(--account-tone) 12%, #fff); box-shadow: none; }
#accountView .account-summary-grid > article.account-quick-card[data-readiness="pending"] em::before,
#accountView .account-summary-grid > article.account-quick-card[data-readiness="waiting"] em::before { background: #9aa4b8; box-shadow: 0 0 0 4px rgba(154, 164, 184, .16); }
#accountView .account-summary-grid > article.account-quick-card:not([data-readiness="done"]) .account-signature-seal > span { display: none; }
#accountView .account-summary-grid > article.account-quick-card.is-next { border-style: solid; border-color: var(--account-tone); box-shadow: 0 12px 26px color-mix(in srgb, var(--account-tone) 20%, transparent); }

#accountView .account-readiness-badge { z-index: 1; display: inline-flex; order: -1; grid-column: 1 / -1; align-items: center; justify-self: end; gap: 5px; margin: -6px -4px -8px 0; padding: 5px 11px; border-radius: 999px; color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 14%, #fff); font-size: 12.5px; font-weight: 850; line-height: 1.2; white-space: nowrap; }
#accountView .account-readiness-badge .app-icon { width: 15px; height: 15px; }
#accountView [data-readiness="pending"] .account-readiness-badge, #accountView [data-readiness="waiting"] .account-readiness-badge { color: #4b556e; background: #eef1f6; }

/* Canales de Recordatorios: si la tarjeta es angosta se apilan, para que «WhatsApp» y «Correo» se lean completos */
#accountView .account-summary-grid .account-channel-board { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }

/* Backup: mismo lenguaje que el contador de precios */
#accountView .account-backup-board { display: flex; align-items: baseline; gap: 12px; justify-self: start; padding: 0; border: 0; background: none; box-shadow: none; }
#accountView .account-backup-board > span { display: inline; min-width: 0; height: auto; padding: 0; border-radius: 0; color: var(--account-tone-ink); background: none; font-size: 40px; font-weight: 900; line-height: 1; }
#accountView .account-backup-board b { display: block; color: #24334b; font-size: 13px; font-weight: 900; letter-spacing: .06em; }
#accountView .account-backup-board small { display: block; padding: 0; color: #5b6580; font-size: 13px; letter-spacing: 0; }
#accountView .account-quick-card.is-backup > div { grid-template-columns: minmax(0, 1fr); }
#accountView .account-backup-board { max-width: 100%; box-sizing: border-box; }
#accountView .account-backup-board { flex-wrap: wrap; }
#accountView .account-backup-board > :not(span) { min-width: min-content; }

/* Fechas del plan: franja tranquila después de los hitos */
#accountView .account-summary-grid > article.account-plan-insight { grid-column: 1 / -1; border: 1px solid color-mix(in srgb, var(--account-tone) 20%, #fff); color: #24334b; background: color-mix(in srgb, var(--account-tone) 5%, #fff); box-shadow: none; }
#accountView .account-summary-grid > article.account-plan-insight::after { content: none; }
#accountView .account-summary-grid > article.account-plan-insight > span { color: #fff; background: var(--account-tone); box-shadow: none; }
#accountView .account-summary-grid > article.account-plan-insight small { color: var(--account-tone-ink); }
#accountView .account-summary-grid > article.account-plan-insight strong { color: #24334b; }
#accountView .account-plan-insight > dl > div { border-color: color-mix(in srgb, var(--account-tone) 18%, #fff); background: #fff; }
#accountView .account-plan-insight dt { color: #6b7690; }
#accountView .account-plan-insight dd { color: #24334b; }
#accountView .account-summary-grid > .pwa-install-account-prompt { grid-column: 1 / -1; }

@keyframes account-hero-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #accountView .account-section-hero { animation: none; }
}

/* Teléfono y tablet: la barra «Estás en» ya muestra ícono y nombre; la cabecera no los repite */
@media (max-width: 980px) {
  #accountView .account-section-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  #accountView .account-inline-panel > article > .account-section-hero { margin: 12px 12px 4px; }
  #accountView .account-section-hero__actions { justify-content: stretch; }
  #accountView .account-section-hero__actions > button:not(.tutorial-access-button) { flex: 1 1 auto; }
  #accountView .account-section-hero[data-account-hero="agenda-online"] { grid-template-columns: minmax(0, 1fr) auto; }
  #accountView .account-readiness__next { max-width: none; }
}

@media (max-width: 680px) {
  #accountView .account-summary-grid { grid-template-columns: minmax(0, 1fr); }
  #accountView .account-summary-grid > article.account-quick-card { grid-column: auto; }
}

@media (max-width: 560px) {
  #accountView .account-section-hero:not(.account-readiness) .account-section-hero__kicker { display: none; }
  #accountView .account-section-hero__art { right: -20%; opacity: .1; }
  #accountView .account-section-hero__signal > strong { font-size: 21px !important; }
}

@media print {
  #accountView .account-section-hero { color: #000; background: none; box-shadow: none; }
}

/* Recordatorios: aviso del saldo junto al interruptor de WhatsApp. Se compra con el único «Comprar mensajes», debajo del saldo (T5). */
#accountView #accountRemindersDialog .account-reminder-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #b9e3cf; border-radius: 14px; background: #effaf4; }
#accountView #accountRemindersDialog .account-reminder-buy[hidden] { display: none; }
#accountView #accountRemindersDialog .account-reminder-buy > .app-icon { width: 28px; height: 28px; color: #0c8a52; }
#accountView #accountRemindersDialog .account-reminder-buy p { display: grid; flex: 999 1 150px; min-width: 0; gap: 2px; margin: 0; }
#accountView #accountRemindersDialog .account-reminder-buy strong { color: #14513a; font-size: 14px; }
#accountView #accountRemindersDialog .account-reminder-buy p span { color: #3f6455; font-size: 13px; line-height: 1.4; }
#accountView #accountRemindersDialog .account-reminder-buy.is-pulsing { animation: account-reminder-buy-pulse .9s ease-out; }
@keyframes account-reminder-buy-pulse { 0% { box-shadow: 0 0 0 0 rgba(19, 181, 101, .55); } 100% { box-shadow: 0 0 0 16px rgba(19, 181, 101, 0); } }
@media (prefers-reduced-motion: reduce) { #accountView #accountRemindersDialog .account-reminder-buy.is-pulsing { animation: none; } }
#accountView #accountRemindersDialog .is-whatsapp.is-unavailable .account-reminder-master { cursor: pointer; }
#accountView #accountRemindersDialog .account-reminder-channel-note:empty { display: none; }

/* Canales: correo en azul y WhatsApp en verde, en cualquier marca o aviso */
#accountView .account-readiness-badge[data-channel="email"] { color: #1c5fc2; background: #e6f0ff; }
#accountView .account-readiness-badge[data-channel="whatsapp"] { color: #0b7a47; background: #e2f7ec; }

/* Recordatorios: el saldo se lee de un vistazo */
#accountView #accountRemindersDialog .account-reminders-balance dt { color: #4b5a6d; font-size: 14px !important; }
#accountView #accountRemindersDialog .account-reminders-balance dd { color: var(--account-tone-ink); font-size: 28px !important; font-weight: 900; line-height: 1.1; }
#accountView #accountRemindersDialog .account-reminders-balance dd#accountReminderNextExpiry { font-size: 18px !important; line-height: 1.5; }
#accountView #accountRemindersDialog .account-reminder-buy { margin-bottom: 4px; }

/* Alertas: el permiso de este dispositivo va arriba, antes de configurar nada */
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--account-tone) 35%, #fff); border-radius: 16px; background: color-mix(in srgb, var(--account-tone) 7%, #fff); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device > .app-icon { width: 30px; height: 30px; color: var(--account-tone-ink); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device > p { margin: 0; color: #2f3b52; font-size: 15px; font-weight: 700; line-height: 1.45; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device > p.is-error { color: #a63150; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 13px; font: inherit; font-size: 13px; font-weight: 900; letter-spacing: .02em; cursor: pointer; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device-actions button .app-icon { width: 18px; height: 18px; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device-actions .pwa-notification-settings__permission { color: #fff; background: linear-gradient(100deg, var(--account-tone-ink), var(--account-tone)); box-shadow: 0 8px 18px color-mix(in srgb, var(--account-tone) 28%, transparent); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device-actions .pwa-notification-settings__test { color: var(--account-tone-ink); background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--account-tone) 40%, #fff); }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device-actions button:disabled { color: #8f98a8; background: #eef0f4; box-shadow: none; cursor: not-allowed; }
@media (max-width: 760px) { #accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device { grid-template-columns: auto minmax(0, 1fr); } #accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device-actions { grid-column: 1 / -1; justify-content: stretch; } #accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device-actions button { flex: 1 1 100%; } }

/* Horarios: la franja resume la semana y la acción queda a la vista, del mismo color de la sección */
#accountView .account-availability-toolbar { grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 16px 22px; padding: 18px 22px; border-color: color-mix(in srgb, var(--account-tone) 25%, #fff); background: color-mix(in srgb, var(--account-tone) 6%, #fff); }
#accountView .account-availability-toolbar dl { gap: 12px; overflow: visible; border: 0; background: none; }
#accountView .account-availability-toolbar dl div { align-content: center; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--account-tone) 22%, #fff); border-radius: 14px; background: #fff; }
#accountView .account-availability-toolbar dt { color: #4b5a6d; font-size: 12px; }
#accountView .account-availability-toolbar dd { color: var(--account-tone-ink); font-size: 28px !important; line-height: 1.1; }
#accountView .account-availability-toolbar > button { min-height: 54px; padding: 0 24px; border-radius: 14px; background: linear-gradient(100deg, var(--account-tone-ink), var(--account-tone)); box-shadow: 0 10px 20px color-mix(in srgb, var(--account-tone) 30%, transparent); font-size: 14px; letter-spacing: .03em; }
#accountView .account-availability-toolbar > button .app-icon { width: 18px; height: 18px; }
#accountView .account-availability-toolbar > button:disabled { background: #e1e5ec; box-shadow: none; }
@media (max-width: 1100px) { #accountView .account-availability-toolbar { grid-template-columns: 1fr; } #accountView .account-availability-toolbar > button { justify-self: stretch; } }

/* Cambiar contraseña: el botón queda sobre el borde derecho de la tarjeta */
#accountView .account-settings-security > summary { grid-template-columns: 46px minmax(0, 1fr) max-content; justify-content: stretch; }
#accountView .account-settings-security > summary > b { justify-self: end; }
@media (max-width: 760px) { #accountView .account-settings-security > summary { grid-template-columns: 46px minmax(0, 1fr); } #accountView .account-settings-security > summary > b { grid-column: 1 / -1; justify-self: stretch; justify-content: center; } }

/* Backup: el número de pacientes es el dato principal */
#accountView .account-quick-card.is-backup .account-backup-board { align-items: center; gap: 14px; }
#accountView .account-quick-card.is-backup #accountBackupPatients { font-size: 48px !important; font-weight: 900; line-height: 1; letter-spacing: -.02em; color: var(--account-tone-ink); }

#accountView #accountRemindersDialog .account-reminder-crown[hidden] { display: none; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__health dd { font-size: 28px !important; line-height: 1; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__health dt { color: #4b5a6d; font-size: 14px !important; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__health > div { padding: 14px 16px; }

/* Alertas: superficies neutras; el color de la sección queda para botones y estados */
#accountView #accountPwaNotificationsDialog .pwa-notification-settings { background: #fff; box-shadow: none; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device { background: #f7f8fb; border-color: #e1e5ee; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__devices { padding: 12px 14px; gap: 8px; background: #fff; border-color: #e1e5ee; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__devices > header strong { font-size: 15px; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__devices > header small { color: #4b5a6d; font-size: 13px; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__devices > header > span { color: #0b6b5e; background: #e3f6f1; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__device { padding: 8px 10px; background: #fff; border-color: #e1e5ee; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__device-mark { width: 36px; height: 36px; color: #3b4a63; background: #eef1f6; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__device-copy strong { color: #1f2b40; font-size: 14px; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__device-copy strong span { color: #3a4a80; background: #e8ecfa; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__device-copy small { margin-top: 1px; color: #3d4b60; font-size: 13px; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__footnote { margin: 0; color: #5b6580; font-size: 13px; line-height: 1.45; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__health > div { background: #f4f6fa; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__health dd { color: #1f2b40; }

/* Alertas: con el permiso ya concedido, el botón pasa a ser la acción secundaria de apagar */
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device-actions .pwa-notification-settings__permission.is-turn-off { color: #3b4a63; background: #fff; box-shadow: inset 0 0 0 1.5px #c9d0dd; }
#accountView #accountPwaNotificationsDialog .pwa-notification-settings__this-device-actions .pwa-notification-settings__permission.is-turn-off:hover { color: #a63150; box-shadow: inset 0 0 0 1.5px #e3a9bb; }

/* Horarios: las tres cifras de la franja quedan alineadas, con su rótulo en una sola línea */
#accountView .account-availability-toolbar dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#accountView .account-availability-toolbar dt { font-size: 13px !important; letter-spacing: 0; text-transform: none; white-space: nowrap; }
#accountView .account-availability-toolbar dl div { padding: 10px 8px; }
#accountView .account-availability-editor { overflow: hidden; }

/* Horarios: todo el diálogo en la gama del color de la sección. El panel de alta se distingue por ser más luminoso, no por cambiar de color */
#accountView #accountAvailabilityDialog .account-availability-editor { border-color: color-mix(in srgb, var(--account-tone) 30%, #fff); box-shadow: 0 11px 25px color-mix(in srgb, var(--account-tone) 14%, transparent); }
#accountView #accountAvailabilityDialog .account-availability-editor > header { background: linear-gradient(110deg, var(--account-tone), color-mix(in srgb, var(--account-tone) 55%, #3fd9c5)); }
#accountView #accountAvailabilityDialog #accountAvailabilityDayFields input:checked + span { border-color: var(--account-tone-ink); background: var(--account-tone-ink); box-shadow: 0 5px 12px color-mix(in srgb, var(--account-tone) 28%, transparent); }
#accountView #accountAvailabilityDialog #addAvailabilityRange { color: var(--account-tone-ink); }
#accountView #accountAvailabilityDialog #accountAvailabilityForm > footer button:last-child { border-color: var(--account-tone-ink); background: linear-gradient(100deg, var(--account-tone-ink), var(--account-tone)); }
#accountView #accountAvailabilityDialog .account-availability-time-grid input:focus,
#accountView #accountAvailabilityDialog .account-availability-toolbar select:focus { border-color: var(--account-tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--account-tone) 18%, transparent); }
#accountView #accountAvailabilityDialog .account-availability-week > header p,
#accountView #accountAvailabilityDialog .account-availability-toolbar > label > span { color: var(--account-tone-ink); }
#accountView #accountAvailabilityDialog > article > footer small .app-icon { color: var(--account-tone-ink); }
#accountView #accountAvailabilityDialog #accountAvailabilityForm > aside { border-color: color-mix(in srgb, var(--account-tone) 25%, #fff); color: var(--account-tone-ink); background: color-mix(in srgb, var(--account-tone) 6%, #fff); }
