/* Member account navigation: desktop account menu and mobile bottom sheet. */
.account-menu { position: relative; margin-left: 4px; }
.account-menu--mobile { display: none; }
.mobile-platform-login { display: none; }
.account-menu-trigger { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0 4px 6px; border: 0; background: transparent; color: #1a3c35; font: inherit; font-size: 16px; font-weight: 500; line-height: 1; cursor: pointer; }
.account-menu-trigger:hover, .account-menu-trigger:focus-visible { color: #087b78; }
.account-menu-trigger:focus-visible, .account-dropdown :focus-visible, .mobile-more-sheet :focus-visible { outline: 3px solid rgba(8,123,120,.3); outline-offset: 2px; }
.account-menu-avatar { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; background: #087b78; color: #fff; font-size: 12px; font-weight: 750; }
.account-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-menu-name { display: inline-flex; align-items: center; line-height: 1.2; }
.account-menu-chevron { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: #58736b; transition: transform .16s ease; transform-origin: center; }
.account-menu-chevron svg { width: 16px; height: 16px; display: block; }
.account-menu-trigger[aria-expanded="true"] .account-menu-chevron { transform: rotate(180deg); }
.account-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: min(260px, calc(100vw - 32px)); padding: 7px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 16px 38px rgba(25,62,51,.16); }
.account-dropdown a, .account-dropdown button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 0; border-radius: 9px; background: transparent; color: #244840; font: inherit; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.account-dropdown a:hover, .account-dropdown button:hover { background: #edf7f4; color: #087b78; }
.account-menu-icon { width: 21px; height: 21px; display: inline-flex; flex: 0 0 21px; align-items: center; justify-content: center; color: #087b78; }
.account-menu-icon svg { width: 21px; height: 21px; display: block; }
.account-dropdown form { margin: 0; }
.account-dropdown-divider, .mobile-more-sheet-divider { height: 1px; margin: 6px 4px; background: #e0ebe7; }

.mobile-sheet-backdrop, .mobile-more-sheet { display: none; }

@media (min-width: 901px) {
  .cabinet-page[data-view="dashboard"] .cabinet-main { padding-top: 46px; padding-right: clamp(30px, 5.5vw, 84px); padding-left: clamp(30px, 5.5vw, 84px); }
  .cabinet-page[data-view="dashboard"] .student-header { margin-bottom: 38px; }
  .cabinet-page[data-view="dashboard"] .quick-actions-grid { gap: 22px; margin-bottom: 52px; }
  .cabinet-page[data-view="dashboard"] .quick-action-card { padding: 25px 26px; }
  .cabinet-page[data-view="dashboard"] .student-section { margin-top: 42px; margin-bottom: 42px; }
}

@media (min-width: 901px) and (max-width: 1150px) {
  .site-header-member .site-header-inner { gap: 16px; padding-right: 24px; padding-left: 24px; }
  .site-header-member .site-main-nav { gap: 16px; }
  .site-header-member .site-main-nav > a { font-size: 15px; }
  .account-menu-trigger { font-size: 15px; }
}

@media (max-width: 900px) {
  .site-header-member .site-header-inner { min-height: 64px; justify-content: space-between; flex-wrap: nowrap; padding: 10px 16px; }
  .site-header-member .site-main-nav, .site-header-member .site-header-logout { display: none; }
  .account-menu--desktop { display: none; }
  .account-menu--mobile { display: block; margin-left: auto; }
  .mobile-platform-login { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; min-height: 44px; text-decoration: none; }
  .site-header-member .site-brand { min-width: 0; }
  .site-header-member .site-brand img { width: 38px; height: 38px; }
  .site-header-member .site-brand-name { font-size: 15px; }
  .mobile-account-trigger { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
  .mobile-account-trigger .account-menu-avatar { width: 38px; height: 38px; }
  .mobile-account-trigger:focus-visible { outline: 3px solid rgba(8,123,120,.3); outline-offset: 2px; }
  .account-dropdown--mobile { top: calc(100% + 7px); right: 0; width: min(270px, calc(100vw - 24px)); }
  .cabinet-main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: grid; height: 66px; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); border-top: 0; background: rgba(255,255,255,.97); box-shadow: 0 -7px 22px rgba(25,62,51,.08); backdrop-filter: blur(12px); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { min-width: 0; min-height: 58px; padding: 5px 2px; color: #72827d; }
  .mobile-bottom-nav .mobile-nav-icon { position: relative; width: 22px; height: 22px; display: grid; place-items: center; }
  .mobile-nav-icon svg, .mobile-menu-icon svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav-badge { position: absolute; top: -5px; right: -9px; min-width: 15px; height: 15px; border-radius: 999px; background: #d14b4b; color: #fff; font-size: 9px; }
  .mobile-sheet-backdrop { position: fixed; inset: 0; z-index: 60; display: block; background: rgba(14,35,31,.42); }
  .mobile-more-sheet { position: fixed; right: 0; bottom: 0; left: 0; z-index: 61; display: block; max-height: min(78vh, 630px); overflow: auto; padding: 9px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -14px 42px rgba(14,35,31,.2); }
  .mobile-more-sheet-handle { width: 38px; height: 4px; margin: 0 auto 9px; border-radius: 999px; background: #c7d8d3; }
  .mobile-more-sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
  .mobile-more-sheet-header h2 { margin: 0; color: #142e29; font-size: 20px; }
  .mobile-more-sheet-header button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #edf7f4; color: #087b78; font-size: 25px; line-height: 1; cursor: pointer; }
  .mobile-more-sheet nav { display: flex; flex-direction: column; }
  .mobile-more-sheet a, .mobile-more-sheet nav > button, .mobile-more-sheet form button { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 13px; padding: 12px 8px; border: 0; border-radius: 10px; background: transparent; color: #244840; font: inherit; font-size: 16px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
  .mobile-more-sheet a:active, .mobile-more-sheet nav > button:active, .mobile-more-sheet form button:active { background: #edf7f4; color: #087b78; }
  .mobile-more-sheet .mobile-menu-icon { width: 24px; height: 24px; display: inline-flex; flex: 0 0 24px; align-items: center; justify-content: center; color: #087b78; }
  .mobile-more-sheet form { margin: 0; }
  body.mobile-sheet-open { overflow: hidden; overscroll-behavior: none; }
  .cabinet-page[data-view="dashboard"] .cabinet-main { padding-top: 30px; padding-right: 18px; padding-left: 18px; }
  .cabinet-page[data-view="dashboard"] .student-header { margin-bottom: 28px; }
  .cabinet-page[data-view="dashboard"] .student-header .avatar-link { display: none; }
  .cabinet-page[data-view="dashboard"] .quick-actions-grid { gap: 18px; margin-bottom: 40px; }
  .cabinet-page[data-view="dashboard"] .quick-action-card { padding: 22px; }
  .cabinet-page[data-view="dashboard"] .student-section { margin-top: 40px; margin-bottom: 40px; }
}

@media (max-width: 390px) {
  .mobile-bottom-nav a, .mobile-bottom-nav button { font-size: 8.5px; }
  .mobile-bottom-nav .mobile-nav-icon { width: 20px; height: 20px; }
  .mobile-bottom-nav .mobile-nav-icon svg { width: 20px; height: 20px; }
}
