.system-announcement-strip {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 1rem;
  padding: .55rem .65rem .55rem .85rem;
  box-sizing: border-box;
  border: 1px solid #8fc7cc;
  border-left: 4px solid #087f88;
  border-radius: .55rem;
  background: #eefafa;
  color: #153f43;
}
.monitoring-app .system-announcement-strip {
  border-color: #a9c7df;
  border-left-color: #356f9f;
  background: #f1f7fc;
  color: #173a57;
}
.system-announcement-viewport { min-width: 0; overflow: hidden; }
.system-announcement-item { min-width: 0; overflow: hidden; }
.system-announcement-moving-content {
  width: max-content;
  max-width: none;
  white-space: nowrap;
  animation-duration: var(--system-announcement-speed, 24s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
}
.system-announcement-item[data-direction="RTL"] .system-announcement-moving-content {
  animation-name: system-announcement-right-to-left;
}
.system-announcement-item[data-direction="LTR"] .system-announcement-moving-content {
  animation-name: system-announcement-left-to-right;
}

.has-system-attribution {
  --system-attribution-height: 3.5rem;
  --system-attribution-gap: .75rem;
}
.system-attribution-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 24;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: .4rem max(.8rem, env(safe-area-inset-right)) calc(.4rem + env(safe-area-inset-bottom)) max(.8rem, env(safe-area-inset-left));
  box-sizing: border-box;
  border-top: 1px solid rgb(112 142 139 / .3);
  background: rgb(250 253 253 / .96);
  box-shadow: 0 -3px 14px rgb(20 38 40 / .07);
  color: #667875;
  font-size: .72rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  transition: left 160ms ease;
  backdrop-filter: blur(8px);
}
.app-shell .system-attribution-footer { left: 220px; }
.provider-desktop-shell.provider-sidebar-collapsed .app-shell .system-attribution-footer { left: 72px; }
.monitoring-shell .system-attribution-footer { left: 240px; }
.monitoring-app.monitoring-sidebar-collapsed .monitoring-shell .system-attribution-footer { left: 76px; }
.monitoring-app.monitoring-sidebar-hovered .monitoring-shell .system-attribution-footer { left: 240px; }
.system-attribution-footer span,
.system-attribution-footer a { font-weight: 700; }
.system-attribution-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.system-attribution-footer a:hover { color: #045f6c; }
.system-attribution-footer a:focus-visible { outline: 2px solid #087f88; outline-offset: 2px; }
.system-attribution-footer small { display: block; max-width: 60ch; margin: .2rem auto 0; color: inherit; font-size: inherit; }

body.has-system-attribution .main,
body.has-system-attribution .monitoring-main {
  padding-bottom: calc(var(--system-attribution-height) + var(--system-attribution-gap));
}
body.has-system-attribution .workflow-actions { bottom: var(--system-attribution-height); }
body.has-system-attribution .wateja-floating-navigation {
  bottom: max(
    calc(20px + var(--system-attribution-height)),
    calc(env(safe-area-inset-bottom) + var(--system-attribution-height))
  );
}

.auth-page > .system-attribution-footer {
  width: auto;
  margin: 0;
}
.auth-page.has-system-attribution {
  padding-bottom: calc(20px + var(--system-attribution-height));
}
body.has-system-attribution #content {
  padding-bottom: calc(var(--system-attribution-height) + var(--system-attribution-gap));
}

@keyframes system-announcement-right-to-left {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}
@keyframes system-announcement-left-to-right {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (max-width: 1120px) {
  .monitoring-shell .system-attribution-footer { left: 220px; }
  .monitoring-app.monitoring-sidebar-collapsed .monitoring-shell .system-attribution-footer { left: 76px; }
}

@media (max-width: 880px) {
  .monitoring-shell .system-attribution-footer,
  .monitoring-app.monitoring-sidebar-hovered .monitoring-shell .system-attribution-footer { left: 76px; }
}

@media (max-width: 760px) {
  .system-announcement-strip {
    padding: .55rem .65rem;
  }
  .app-shell .system-attribution-footer { left: 0; }
  .has-system-attribution.has-mobile-bottom-navigation .system-attribution-footer {
    bottom: calc(72px + env(safe-area-inset-bottom));
    padding-bottom: .4rem;
  }
  .has-system-attribution.has-mobile-bottom-navigation .main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom) + var(--system-attribution-height) + var(--system-attribution-gap));
  }
  .has-system-attribution.has-mobile-bottom-navigation .workflow-actions {
    bottom: calc(72px + env(safe-area-inset-bottom) + var(--system-attribution-height));
  }
  body.has-system-attribution:has(input:focus, select:focus, textarea:focus, [contenteditable="true"]:focus) .system-attribution-footer {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 900px) {
  .auth-page.has-system-attribution {
    padding-bottom: calc(16px + var(--system-attribution-height));
  }
}

@media (max-width: 380px) {
  .auth-page.has-system-attribution {
    padding-bottom: calc(12px + var(--system-attribution-height));
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-announcement-viewport,
  .system-announcement-item { overflow: visible; }
  .system-announcement-moving-content {
    width: auto;
    white-space: normal;
    animation: none !important;
    transform: none !important;
  }
}
