.app-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-height: 44px;
  padding: 6px 12px;
  border-bottom: 1px solid #d8e1d7;
  background: #fff;
  color: #294b38;
}
.app-header .brand {
  color: #176546;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.app-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-header nav a {
  padding: 5px 9px;
  border-radius: 5px;
  color: #55715f;
  font:
    500 12px/1.3 system-ui,
    sans-serif;
  white-space: nowrap;
  text-decoration: none;
}
.app-header nav a:hover {
  background: #f0f6ec;
}
.app-header nav a[aria-current="page"] {
  background: #e2f0e4;
  color: #176546;
  font-weight: 650;
}
.app-header nav a:focus-visible {
  outline: 2px solid #80ae8a;
  outline-offset: 2px;
}
.app-header #stats,
.app-header #connection {
  margin-left: auto;
  width: auto;
  font-size: 11px;
  color: #69806e;
}
#notice.app-toast,
#library-notice.app-toast {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: max-content;
  max-width: min(560px, calc(100% - 24px));
  max-height: 25dvh;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid #9bbb9d;
  border-radius: 8px;
  background: #e7f4e9;
  color: #205335;
  box-shadow: 0 5px 22px #16371f24;
  overflow: auto;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.5;
}
#notice.app-toast.error,
#library-notice.app-toast.error {
  background: #fff0e8;
  color: #8c392b;
  border-color: #d6aa98;
}
.app-toast .toast-message {
  min-width: 0;
  flex: 1;
}
.app-toast .toast-dismiss {
  flex: 0 0 auto;
  padding: 0 3px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font:
    20px/1.1 system-ui,
    sans-serif;
}
.app-toast .toast-dismiss:hover {
  background: #0000000b;
}
.labeling-page #notice.app-toast {
  position: absolute;
  top: 12px;
}
@media (max-width: 600px) {
  .app-header {
    gap: 4px 8px;
  }
  .app-header nav a {
    padding: 5px 6px;
  }
  .app-header #stats {
    display: none;
  }
}
