.app-shell .announcement-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e0e3e8;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px #10182805;
  transition: color .15s, background .15s, border-color .15s;
}
.app-shell .announcement-trigger svg { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; }
.app-shell .announcement-trigger:hover { border-color: #a6d2fa; background: #eff8ff; color: #0875de; }
.app-shell .announcement-trigger:focus-visible { outline: 2px solid #0875de; outline-offset: 3px; }
.app-shell .announcement-trigger:disabled { cursor: wait; opacity: .6; }
@media (max-width: 820px) {
  .app-shell .announcement-trigger { width: 36px; height: 36px; padding: 0; }
  .app-shell .announcement-trigger > span { display: none; }
}
#app-shell > .console-announcements, #public-announcements {
  position: sticky;
  top: 0;
  z-index: 34;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left));
  border: 0;
  border-bottom: 1px solid #dbe2fb;
  border-radius: 0;
  background: #eef2ff;
  color: #273457;
  box-shadow: none;
}
.app-shell .sidebar, .app-shell .topbar { top: var(--console-announcement-height, 0px); }
.app-shell .console-main { min-height: calc(100vh - var(--console-announcement-height, 0px)); }
.app-shell .global-settings-nav { top: calc(72px + var(--console-announcement-height, 0px)); }
.app-shell .user-settings-sidebar { top: calc(92px + var(--console-announcement-height, 0px)); }
html:has(#console-announcements:not([hidden])) { scroll-padding-top: var(--console-announcement-height, 0px); }
#public-announcements { position: relative; z-index: auto; font-family: inherit; }
.announcement-banner-content {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
}
/* Keep the homepage header in the document flow while the notice is above it. */
body:has(> #public-announcements:not([hidden])) > .home-header { position: sticky; }
body:has(> #public-announcements:not([hidden])) .home-hero { padding-top: 0; }
.console-announcements[hidden], .console-announcements [hidden], .announcement-dialog [hidden] { display: none !important; }
.announcement-dialog-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #c3defd;
  border-radius: 10px;
  background: #e7f2ff;
  color: #0875de;
}
.announcement-dialog-icon svg { width: 21px; height: 21px; }
#app-shell .announcement-banner-icon, #public-announcements .announcement-banner-icon { display: grid; flex: 0 0 22px; width: 22px; place-items: center; border: 0; background: transparent; color: #485cc2; }
.announcement-banner-icon svg { width: 17px; height: 17px; }
.announcement-banner-copy { display: flex; flex: 0 1 auto; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; max-width: 100%; }
.announcement-banner-title { color: #253471; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.announcement-banner-summary { display: -webkit-box; margin: 0; overflow: hidden; color: #49567b; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.console-announcements[data-persistent] .announcement-banner-summary { display: block; max-height: 20vh; overflow-y: auto; }
.announcement-banner-link { display: inline-flex; align-items: center; min-height: 29px; max-width: 100%; padding: 4px 9px; border: 1px solid #c9d2fa; border-radius: 6px; background: #fff; color: #354cb0; font-size: 12px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; text-decoration: none; }
.announcement-banner-link:hover { border-color: #9bacee; background: #e5ebff; color: #263b92; text-decoration: underline; text-underline-offset: 3px; }
.announcement-banner-link:focus-visible { outline: 2px solid #485cc2; outline-offset: 2px; }
.announcement-banner-actions, .announcement-dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.announcement-banner-actions { gap: 4px; min-width: 0; }
.announcement-navigation { display: flex; align-items: center; gap: 4px; }
.announcement-counter { min-width: 54px; color: #52647b; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.announcement-icon-button, .announcement-text-button, .announcement-acknowledge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #2266a7;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.announcement-icon-button { flex: 0 0 32px; width: 32px; min-height: 32px; padding: 6px; color: #5b6b80; }
.announcement-icon-button svg { display: block; width: 18px; height: 18px; }
.announcement-icon-button:hover, .announcement-text-button:hover { border-color: #c7dcef; background: #e8f1fc; }
.announcement-acknowledge { border-color: #0875de; background: #0875de; color: #fff; }
.announcement-acknowledge:hover { border-color: #0667c5; background: #0667c5; box-shadow: 0 2px 6px #0875de24; }
.announcement-icon-button:focus-visible, .announcement-text-button:focus-visible, .announcement-acknowledge:focus-visible { outline: 2px solid #0875de; outline-offset: 3px; }
.announcement-icon-button:disabled, .announcement-acknowledge:disabled { cursor: default; opacity: .45; box-shadow: none; }
.announcement-error { margin: 6px 0 0; color: #bd3e3d; font-size: 12px; line-height: 1.6; }
.console-announcements .announcement-error { flex-basis: 100%; margin: 0; }
.console-announcements .announcement-text-button, .console-announcements .announcement-acknowledge, .console-announcements .announcement-icon-button { min-height: 29px; padding: 4px 7px; color: #384a84; }
.console-announcements .announcement-acknowledge { border-color: transparent; background: transparent; }
.console-announcements .announcement-acknowledge:hover { border-color: #c9d2fa; background: #e3e9ff; box-shadow: none; }
.announcement-dialog {
  width: min(700px, calc(100vw - 40px));
  max-width: none;
  height: min(660px, calc(100dvh - 64px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e0e8;
  border-radius: 15px;
  background: #fff;
  color: #152238;
  box-shadow: 0 25px 90px #0f172a38;
}
.announcement-dialog[open] { display: flex; flex-direction: column; }
.announcement-dialog::backdrop { background: #0f172a66; backdrop-filter: blur(3px); }
.announcement-dialog-heading { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; padding: 21px 24px 18px; border-bottom: 1px solid #e6ebf1; }
.announcement-dialog-icon { flex: 0 0 38px; width: 38px; height: 38px; }
.announcement-dialog-heading-copy { flex: 1; min-width: 0; }
.announcement-eyebrow { margin: 0 0 5px; color: #6b7a90; font-size: 11px; }
.announcement-dialog-heading h2 { margin: 0; color: #122136; font-size: 18px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.announcement-dialog-heading h2:focus { outline: none; }
.announcement-dialog-content { flex: 1 1 auto; min-height: 100px; background: #fff; }
.announcement-content-frame { display: block; width: 100%; height: 100%; min-height: 180px; border: 0; background: #fff; }
.announcement-dialog-content > .announcement-content-frame { min-height: 0; }
.announcement-dialog-footer { flex: 0 0 auto; padding: 14px 24px 20px; border-top: 1px solid #e6ebf1; background: #fbfcfe; }
.announcement-frequency { margin: 0 0 11px; color: #7a8799; font-size: 11px; line-height: 1.6; }
.announcement-dialog-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.announcement-dialog-footer > .announcement-error { margin: 0 0 11px; }
@media (max-width: 820px) {
  html:has(#console-announcements:not([hidden])) { scroll-padding-top: calc(64px + var(--console-announcement-height, 0px)); }
  .app-shell .sidebar { height: calc(100dvh - var(--console-announcement-height, 0px)); }
  .app-shell .global-settings-nav { top: calc(66px + var(--console-announcement-height, 0px)); }
  #app-shell > .console-announcements, #public-announcements { gap: 4px; padding: 7px max(6px, env(safe-area-inset-right)) 7px max(6px, env(safe-area-inset-left)); }
  .announcement-banner-content { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 4px 6px; }
  #app-shell .announcement-banner-icon, #public-announcements .announcement-banner-icon { align-self: start; width: 20px; height: 20px; }
  .announcement-banner-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .announcement-banner-content > .announcement-counter { grid-row: 1; grid-column: 3; min-width: 0; align-self: start; line-height: 20px; }
  .announcement-banner-link, .console-announcements .announcement-text-button, .console-announcements .announcement-acknowledge, .console-announcements .announcement-icon-button { min-height: 34px; }
}
@media (max-width: 520px) {
  .announcement-dialog { width: calc(100vw - 20px); height: min(700px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .announcement-dialog-heading { align-items: flex-start; gap: 10px; padding: 17px 16px 15px; }
  .announcement-dialog-icon { flex-basis: 32px; width: 32px; height: 32px; }
  .announcement-dialog-heading h2 { font-size: 16px; }
  .announcement-dialog-footer { padding: 13px 16px 16px; }
  .announcement-dialog-footer-row { flex-wrap: wrap; }
  .announcement-dialog-actions { margin-left: auto; }
  .announcement-text-button, .announcement-acknowledge { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell .announcement-trigger, .announcement-icon-button, .announcement-text-button, .announcement-acknowledge { transition: none; }
}
.announcement-dialog { border-color:#e5e7eb; border-radius:16px; color:#171717; box-shadow:0 24px 70px -20px rgba(15,23,42,.3); }
.announcement-dialog::backdrop { background:rgba(15,23,42,.28); backdrop-filter:blur(4px); }
.announcement-dialog-heading { padding:20px 24px 18px; border-bottom-color:#ededed; }
.announcement-dialog-icon { border:1px solid #e5e7eb; border-radius:10px; background:#fafafa; color:#525252; }
.announcement-eyebrow { color:#8a8a8a; }
.announcement-dialog-heading h2 { color:#171717; }
.announcement-dialog-footer { padding:14px 24px 18px; border-top-color:#ededed; background:#fff; }
.announcement-frequency { color:#737373; }
.announcement-icon-button:focus-visible,.announcement-text-button:focus-visible,.announcement-acknowledge:focus-visible { outline-color:#525252; }
@media(max-width:520px) { .announcement-dialog { border-radius:14px; } }
