.site-announcement {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  min-height: 36px;
  line-height: 1.2;
  padding-inline: clamp(10px, 3vw, 32px);
  border-bottom: 1px solid var(--line, var(--site-line));
  background: var(--surface-tint, var(--site-surface));
  color: var(--text, var(--site-ink));
  font-size: calc(12px * var(--desktop-font-scale, 1));
}
.site-announcement[hidden] { display: none; }
.topbar .site-announcement { min-width: 0; flex: 1 1 360px; height: 36px; padding-inline: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.announcement-restore { flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-tint); color: var(--brand-strong); font: inherit; font-size: calc(10px * var(--desktop-font-scale, 1)); font-weight: 700; cursor: pointer; }
.announcement-restore[hidden] { display: none; }
.site-announcement-label { font-weight: 750; white-space: nowrap; }
.site-announcement-lane { height: 100%; min-width: 0; flex: 1; overflow: hidden; container-type: inline-size; }
.site-announcement-track { display: flex; align-items: center; height: 100%; width: max-content; animation: announcement-scroll 30s linear infinite; }
.site-announcement-track ul {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  min-width: 100cqw;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-announcement-track li {
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: 15px;
  line-height: 1.2;
  white-space: nowrap;
}
.site-announcement-track li > * {
  display: inline;
  margin: 0;
  padding: 0;
  line-height: inherit;
}
.site-announcement-track li img {
  display: inline-block;
  max-height: 22px;
  width: auto;
  vertical-align: middle;
}
.site-announcement-label,
.site-announcement button { line-height: 1; }
.site-announcement button { flex: none; padding: 3px 6px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.site-announcement-lane:hover .site-announcement-track { animation-play-state: paused; }
@keyframes announcement-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .site-announcement .site-announcement-track { animation: none; }
  .site-announcement .site-announcement-track [aria-hidden] { display: none; }
  .site-announcement .site-announcement-lane { overflow-x: auto; scrollbar-width: thin; }
}
@media (max-width: 760px) {
  html[data-announcements-open="true"] { --mobile-announcement-offset: 50px; }
  .topbar { overflow: visible; }
  .topbar .site-announcement {
    position: fixed;
    z-index: 29;
    top: var(--topbar-height);
    right: 0;
    left: 0;
    height: 50px;
    min-height: 50px;
    gap: 8px;
    padding: 0 10px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: var(--surface-strong);
    box-shadow: 0 7px 20px rgba(24, 18, 12, .12);
    font-size: calc(13px * var(--desktop-font-scale, 1));
  }
  .site-announcement-track li { padding-inline: 11px; }
  .site-announcement .site-announcement-track {
    animation: announcement-scroll 26s linear infinite !important;
    will-change: transform;
  }
  .announcement-restore { min-height: 30px; padding: 0 7px; font-size: calc(9px * var(--desktop-font-scale, 1)); }
  html[data-announcements-open="true"] .workspace-layout {
    inset: calc(var(--topbar-height) + var(--mobile-announcement-offset)) 0 0;
    max-height: calc(100dvh - var(--topbar-height) - var(--mobile-announcement-offset));
    padding-top: 0;
  }
  html[data-announcements-open="true"] .main-content {
    height: calc(100dvh - var(--topbar-height) - var(--mobile-announcement-offset));
    max-height: calc(100dvh - var(--topbar-height) - var(--mobile-announcement-offset));
  }
  html[data-announcements-open="true"] .sidebar,
  html[data-announcements-open="true"] .resource-panel,
  html[data-announcements-open="true"] .mobile-overlay {
    top: calc(var(--topbar-height) + var(--mobile-announcement-offset));
  }
  html[data-announcements-open="true"] .member-settings-panel,
  html[data-announcements-open="true"] .notification-panel {
    top: calc(var(--topbar-height) + var(--mobile-announcement-offset) + 8px);
  }
}
