/* Shared signed-in user menu, independent of Bootstrap's dropdown JavaScript. */
.account-menu {
  --account-ink: var(--portal-ink, #16384b);
  --account-muted: var(--portal-muted, #536b87);
  --account-surface: var(--portal-surface, #fff);
  --account-line: var(--portal-line, #d5e4ee);
  position: relative;
  flex: none;
  order: 10;
  color: var(--account-ink);
  font: inherit;
}
.account-menu[open] { z-index: 1060; }
.account-menu .account-menu-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  max-width: 240px;
  padding: 5px 10px;
  margin: 0;
  border: 1px solid var(--account-line);
  border-radius: 9px;
  background: var(--account-surface);
  color: var(--account-ink);
  cursor: pointer;
  list-style: none;
  font: inherit;
}
.account-menu-trigger::-webkit-details-marker { display: none; }
.account-menu-trigger::marker { content: ''; }
.account-menu svg { display: block; width: 20px; height: 20px; flex: none; }
.account-menu-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: none; }
.account-menu-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-chevron { margin-left: auto; }
.account-menu-chevron svg { width: 15px; height: 15px; transition: transform .15s; }
.account-menu[open] .account-menu-chevron svg { transform: rotate(180deg); }
.account-menu .account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--account-line);
  border-radius: 12px;
  background: var(--account-surface);
  color: var(--account-ink);
  box-shadow: 0 16px 40px #08283c26;
  text-align: left;
}
.account-menu-identity { display: grid; gap: 3px; padding: 9px 12px 13px; border-bottom: 1px solid var(--account-line); margin-bottom: 5px; overflow-wrap: anywhere; }
.account-menu-identity span { color: var(--account-muted); font-size: 13px; }
.account-menu-identity strong { font-size: 16px; font-weight: 600; }
.account-menu .account-menu-panel a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 6px; color: var(--account-ink) !important; text-decoration: none; font-size: 16px; }
.account-menu .account-menu-panel a:hover { background: var(--portal-soft, #edf7ff); }
.account-menu .account-menu-panel .account-menu-logout { color: var(--portal-accent, #b50b26) !important; }
.account-menu :is(summary, a):focus-visible { outline: 3px solid var(--portal-accent, #b50b26); outline-offset: 2px; }
.instructor-dashboard .action-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.dade-account-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dade-account-header > a { color: #16384b; font-weight: 600; text-decoration: none; }
@media (max-width: 1100px) {
  .portal-masthead-actions .account-menu-name { display: none; }
}
@media (max-width: 767px) {
  .account-menu .account-menu-trigger { max-width: 150px; gap: 5px; padding: 5px 7px; }
  .portal-masthead-actions:has(.account-menu) { gap: 10px; }
}
@media (max-width: 480px) {
  .account-menu .account-menu-trigger { max-width: 76px; }
  .account-menu-name { display: none; }
}
@media (prefers-reduced-motion: reduce) { .account-menu-chevron svg { transition: none; } }
