/* Menú «Mi cuenta» de Mi aprendizaje. Los estilos del acceso viven en courses.css (cw-auth). */
.learning-account { position: relative; flex-shrink: 0; z-index: 20; }
.account-trigger { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px 0 6px; border: 0; border-radius: var(--y-r-pill); background: rgba(255, 255, 255, 0.1); color: inherit; font: 600 13px var(--y-font-sans); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background var(--y-dur-fast) ease, transform var(--y-dur-fast) ease; }
.account-trigger:active { transform: scale(0.97); }
.account-trigger .account-avatar { width: 34px; height: 34px; font-size: 12px; }
.account-chevron { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--y-dur-fast) ease; }
.is-open .account-chevron { transform: translateY(2px) rotate(-135deg); }
@media (hover: hover) and (pointer: fine) { .account-trigger:hover { background: rgba(255, 255, 255, 0.16); } }
.account-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--y-pillar-cursos); color: var(--y-cacao); font-size: 15px; font-weight: 700; flex-shrink: 0; }
.learning-account .account-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 330px; max-width: calc(100vw - 32px); padding: 22px; display: grid; gap: 0; border-radius: 26px; background: rgba(32, 26, 23, 0.97); color: var(--y-ink); box-shadow: var(--y-shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.14); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.97); transform-origin: top right; transition: opacity var(--y-dur-fast) ease, transform var(--y-dur-fast) var(--y-ease), visibility var(--y-dur-fast); pointer-events: none; }
.learning-account.is-open .account-panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.account-identity { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; }
.account-identity strong { display: block; font-size: 15px; line-height: 1.4; }
.account-identity div > span { display: block; color: rgba(247, 241, 234, 0.6); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.account-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; border: 0; border-top: 1px solid rgba(247, 241, 234, 0.12); background: none; color: rgba(247, 241, 234, 0.9); text-align: left; font: 500 14px/1.4 var(--y-font-sans); text-decoration: none; cursor: pointer; transition: color var(--y-dur-fast) ease, transform var(--y-dur-fast) ease; }
.account-row svg { width: 20px; height: 20px; flex: none; }
.account-row strong { display: block; font-weight: 500; }
.account-row small { display: block; font-size: 12px; color: rgba(247, 241, 234, 0.58); margin-top: 2px; }
.account-logout { color: #efb9b0; }
@media (hover: hover) and (pointer: fine) { .account-row:hover { color: var(--y-champagne-soft); transform: translateX(2px); } .account-logout:hover { color: #f6cfc8; } }
.account-instant .account-panel, .account-instant .account-chevron { transition: none; }
@media (max-width: 700px) { .learning-account .account-panel { left: 0; right: auto; transform-origin: top left; } }
@media (prefers-reduced-motion: reduce) {
  .account-trigger, .account-panel, .account-chevron, .account-row { transition: none !important; }
  .account-row:hover { transform: none; }
}
