/* V36.7.13 — portrait header hierarchy and dedicated account navigation. */
.profile-modal-title-icon{width:23px;height:23px;flex:0 0 23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
#profile-nav-btn .nav-icon-svg{width:22px;height:22px;}
.user-pill.is-authenticated #btn-auth-trigger,
.user-pill.is-authenticated #btn-logout{display:none!important;}
.user-pill.is-authenticated .user-avatar{display:none!important;}

@media (max-width:600px) and (orientation:portrait){
  :root{--v36-header-height:126px;}
  .app-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:"brand user user" "menu theme notification"!important;
    align-items:center!important;
    column-gap:8px!important;
    row-gap:9px!important;
    padding:9px 12px 10px!important;
    min-height:116px!important;
  }
  .app-header .header-left,.app-header .brand-stack,.app-header .header-controls{display:contents!important;}
  .app-header .brand{grid-area:brand!important;min-width:0!important;max-width:100%!important;}
  .app-header #mobile-menu-toggle{grid-area:menu!important;justify-self:start!important;align-self:center!important;margin:0!important;padding:8px 12px!important;white-space:nowrap!important;}
  .app-header #theme-picker,.app-header #default-mode-switch{display:none!important;}
  .app-header .header-controls .user-pill{grid-area:user!important;justify-self:end!important;align-self:center!important;display:flex!important;max-width:min(52vw,230px)!important;min-width:0!important;flex-wrap:nowrap!important;gap:0!important;padding:8px 11px!important;border:1px solid var(--border-color)!important;border-radius:14px!important;background:rgba(12,18,35,.92)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;}
  .app-header .user-pill #user-name-display{display:block!important;max-width:min(42vw,190px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important;}
  .app-header .user-pill.is-guest #btn-auth-trigger{display:inline-flex!important;margin-left:8px!important;}
  .app-header .notification-center{grid-area:notification!important;justify-self:end!important;align-self:center!important;}
  .app-header #theme-gallery-toggle{grid-area:theme!important;justify-self:end!important;align-self:center!important;display:inline-flex!important;gap:6px!important;padding:8px 11px!important;min-height:38px!important;border:1px solid rgba(148,163,184,.42)!important;border-radius:12px!important;background:rgba(34,42,65,.94)!important;color:var(--text-main)!important;box-shadow:0 5px 14px rgba(0,0,0,.18)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;}
  .app-header #theme-gallery-toggle span{font-size:0!important;}
  .app-header #theme-gallery-toggle span::after{content:"Giao diện";font-size:13px!important;font-weight:700!important;}
  .app-header #theme-gallery-toggle .header-action-icon{width:17px!important;height:17px!important;}
  .app-header .notification-bell{width:38px!important;height:38px!important;min-width:38px!important;}
  .app-header .brand-title{font-size:16px!important;}
  .app-header .brand-sub{display:none!important;}
}

/* V36.7.1 — portrait guest header: show only the compact label "Khách". */
@media (max-width:600px) and (orientation:portrait){
  .app-header .user-pill.is-guest #btn-auth-trigger,
  .app-header .user-pill #btn-auth-trigger{display:none!important;}
  .app-header .user-pill.is-guest #user-name-display{max-width:72px!important;}
}
