/* THRS V8: Header account alignment and visible announcement megaphone.
   Visual-only: existing navigation and sign-out handlers are unchanged. */
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > a[aria-label="Announcements"] {
  display:inline-flex!important;
  position:relative!important;
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  box-sizing:border-box;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(145deg,#1b4469,#0f2e4d)!important;
  border:1px solid rgba(243,202,119,.64)!important;
  border-radius:12px!important;
  color:#ffdb90!important;
  box-shadow:inset 0 1px 0 rgba(255,252,224,.10),0 7px 18px rgba(0,9,25,.24)!important;
  opacity:1!important;
  overflow:visible!important;
}
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > a[aria-label="Announcements"] .thrs-modern-icon-wrap,
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > a[aria-label="Announcements"] svg {
  color:#ffdc92!important;
  stroke:#ffdc92!important;
  visibility:visible!important;
  opacity:1!important;
  filter:drop-shadow(0 1px 4px rgba(239,183,78,.23));
}
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > a[aria-label="Announcements"] svg {
  width:25px;height:25px;stroke-width:2.35!important;
}
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > a[aria-label="Announcements"]:hover {
  background:linear-gradient(145deg,#265479,#16395c)!important;
  border-color:#ffe0a1!important;
}
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > a[aria-label="Announcements"] > span:not(.thrs-modern-icon-wrap) {
  top:-5px!important;right:-5px!important;
  color:#fff!important;background:#d84c59!important;
  border:2px solid #0c2440!important;z-index:2;
}
/* Keep user identity + avatar + Logout as a single aligned account action area. */
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls {
  align-items:center!important;column-gap:9px!important;
}
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > .header-user-meta {
  min-height:40px;
  margin-inline-start:6px;padding-inline-start:13px;
  border-inline-start:1px solid rgba(184,213,241,.25);
  display:flex;flex-direction:column;justify-content:center;
  gap:2px;
  white-space:nowrap;
}
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .header-user-meta .thrs-header-user-name {
  color:#f4f8ff!important;font-size:13px!important;font-weight:750!important;
}
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .header-user-meta .thrs-header-user-role {
  color:#c5d9ec!important;font-size:11px!important;
}
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > .thrs-user-avatar {
  flex:0 0 42px; width:42px; height:42px;
  border-radius:12px!important;
  border:1px solid rgba(237,193,116,.56)!important;
  color:#f8fbff!important;
  background:linear-gradient(145deg,#234b71,#112d51)!important;
  box-shadow:inset 0 1px 0 rgba(255,249,224,.1),0 7px 18px rgba(0,8,26,.21)!important;
}
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > button.thrs-logout-btn {
  display:inline-flex!important;
  align-self:center!important;
  flex:0 0 auto;
  align-items:center!important;justify-content:center!important;
  min-height:42px!important;height:42px!important;
  margin-inline-start:2px;
  padding-inline:15px!important;
  border:1px solid rgba(244,198,116,.67)!important;
  border-radius:12px!important;
  color:#ffe6bc!important;
  background:linear-gradient(145deg,#204565,#102e48)!important;
  box-shadow:inset 0 1px 0 rgba(255,241,211,.12),0 7px 17px rgba(0,8,25,.19)!important;
  font-size:12.5px!important;font-weight:780!important;
  line-height:1.2;white-space:nowrap!important;
}
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > button.thrs-logout-btn:hover {
  color:#fff4da!important;
  border-color:#ffe0a4!important;
  background:linear-gradient(145deg,#2c5677,#1a3956)!important;
}
:is(html[data-theme="dark"], .dark, body.dark-mode) .thrs-shell > header.thrs-header :is(a[aria-label="Announcements"],button.thrs-logout-btn):focus-visible {
  outline:2px solid #ffdb99!important;outline-offset:3px;
}
@media (min-width:761px) and (max-width:1100px) {
 :is(html[data-theme="dark"],.dark,body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls {column-gap:6px!important;}
 :is(html[data-theme="dark"],.dark,body.dark-mode) .thrs-shell > header.thrs-header .header-user-meta {padding-inline-start:8px;margin-inline-start:2px;}
 :is(html[data-theme="dark"],.dark,body.dark-mode) .thrs-shell > header.thrs-header button.thrs-logout-btn {padding-inline:11px!important;}
}
@media (max-width:760px) {
 :is(html[data-theme="dark"],.dark,body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls {column-gap:5px!important;}
 :is(html[data-theme="dark"],.dark,body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > a[aria-label="Announcements"] {flex-basis:40px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;}
 :is(html[data-theme="dark"],.dark,body.dark-mode) .thrs-shell > header.thrs-header button.thrs-logout-btn {display:none!important;}
}
:is(html[data-theme="light"],body.light-mode) .thrs-shell > header.thrs-header a[aria-label="Announcements"] svg {
  color:#193e66!important;stroke:#193e66!important;opacity:1!important;
}
@media (prefers-reduced-motion:reduce) {
  .thrs-shell > header.thrs-header :is(a[aria-label="Announcements"],button.thrs-logout-btn) {animation:none!important;transition:none!important;transform:none!important;}
}

/* Preserve the existing compact header policy: the account logout action is desktop-only. */
@media (max-width:1024px) {
  :is(html[data-theme="dark"],.dark,body.dark-mode) .thrs-shell > header.thrs-header .thrs-header-controls > button.thrs-logout-btn { display:none!important; }
}
