/* Header: title (with an optional line under it), search right beside it, actions at the far end;
   the account is a round avatar that opens a menu. Loaded after styles.css and cameras-ui.css. */
main>header{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:12px 16px;margin-bottom:16px}
main>header>.hd-title{display:flex;flex-direction:column;gap:2px;min-width:0;flex:0 1 auto;margin-inline-end:8px}
main>header>.hd-title h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pageSub{font-size:13px;font-weight:500;color:#4d6478;white-space:nowrap}
#pageSub[hidden]{display:none}
main>header>.header-search{flex:0 1 400px;width:auto;min-width:180px;max-width:400px;height:44px;margin:0;border-radius:999px;padding:0 14px}
main>header>.header-actions{flex:0 0 auto;margin-inline-start:auto;flex-wrap:nowrap;justify-content:flex-end;gap:8px}
main>header .header-actions>#langBtn,main>header .header-actions>#notificationBell,main>header .sw-btn{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;display:inline-grid;place-items:center;background:#fff;border:1px solid #dce4ea}
main>header .header-actions>#langBtn{font-weight:700;font-size:13px}
main>header .hd-online{height:44px;padding:0 14px;font-size:13px}

/* account avatar */
.hd-user-btn.user-chip{height:48px;padding:0 4px 0 3px;gap:6px;border:0;border-radius:999px;background:transparent}
.hd-user-btn.user-chip:hover{border:0;background:transparent}
.hd-user-btn .hd-user-t{display:none}
.hd-user-btn .hd-avatar{width:42px;height:42px;font-size:14px;background:#10283d;color:#fff;box-shadow:0 0 0 3px #fff,0 0 0 4px #dce4ea}
.hd-user-btn:hover .hd-avatar,.hd-user-btn[aria-expanded=true] .hd-avatar{box-shadow:0 0 0 3px #fff,0 0 0 4px #7fb3c3}
.hd-user-btn .hd-caret{color:#4d6478}
.hd-user-btn:focus-visible{outline:2px solid var(--turq);outline-offset:2px}

/* account menu */
.hd-menu{min-width:290px;padding:8px;border-radius:18px;border:1px solid #e3eaee;box-shadow:0 24px 50px rgba(11,34,56,.16);top:calc(100% + 8px);gap:2px}
.hd-mhead{display:flex;align-items:center;gap:12px;padding:10px 10px 14px;margin:0 0 4px;border-bottom:1px solid #e8eef2}
.hd-avatar.hd-avatar-lg{width:46px;height:46px;font-size:15px;background:#10283d;color:#fff}
.hd-mt{display:flex;flex-direction:column;gap:2px;min-width:0}
.hd-mt b{font-size:15px;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.hd-mt small{font-size:12.5px;color:#4d6478}
.hd-menu button[role=menuitem]{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border-radius:12px;font-size:14px;font-weight:600;color:var(--navy)}
.hd-menu button[role=menuitem]>svg{flex:none;color:#4d6478}
.hd-menu button[role=menuitem]>span{display:flex;flex-direction:column;gap:1px;text-align:start}
.hd-menu button[role=menuitem] small{font-size:12px;font-weight:500;color:#4d6478}
.hd-menu button[role=menuitem][hidden]{display:none}
.hd-menu button.danger{margin-top:4px;color:#b4233a}
.hd-menu button.danger>svg{color:#b4233a}
.hd-menu button.danger::before{content:"";position:absolute;left:14px;right:14px;margin-top:-15px;height:1px;background:#e8eef2}
.hd-menu button.danger{position:relative}

@media(max-width:1180px){main>header>.header-search{flex:1 1 220px}}
@media(max-width:860px){
  main>header{flex-wrap:wrap}
  main>header>.header-search{order:3;flex:1 1 100%;max-width:none}
  main>header>.header-actions{width:auto}
}
