.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 68px;
  background: white;
  border-bottom: 1px solid #e1e6ef;
  box-shadow: 0 3px 12px rgb(20 34 59 / 5%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 12px 28px;
}
.topbar-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.work-type-switcher {
  min-width: 0;
  max-width: calc(100vw - 112px);
}
.work-type-switcher > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  white-space: nowrap;
}
.work-type-switcher [data-work-type-name] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-type-switcher .work-type-chevron {
  flex-shrink: 0;
}
.release-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 6px 10px;
  border: 1px solid #e1e8f4;
  border-radius: 8px;
  background: #f5f8fe;
  color: #526681;
  font-size: 12px;
}
.release-info strong {
  color: #244a8e;
}
.release-info span {
  white-space: nowrap;
}
.topbar .account {
  max-width: 100%;
}
.topbar .account span {
  overflow-wrap: anywhere;
}
.topbar .account {
  flex-wrap: wrap;
}
.server-status-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  color: #65738b;
  background: #f5f7fb;
  font-size: 12px;
  min-height: 44px;
  max-width: 100%;
}
.server-status-link small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.topbar-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}
@media (max-width: 599px) {
  .topbar-status {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar-status .server-status-link {
    font-size: 11px;
  }
  .topbar-status #site-status-tab {
    grid-column: 1 / -1;
  }
}
.system-status-alert {
  flex-basis: 100%;
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  background: #fff4db;
  color: #885513;
}
.system-status-alert[hidden] {
  display: none;
}
.system-status-alert.critical {
  color: #a63032;
  background: #fce9e9;
}
@media (max-height: 400px) {
  .topbar {
    padding: 8px 16px;
    gap: 8px 16px;
  }
  .system-status-alert {
    display: none;
  }
}
@media (max-width: 599px) and (max-height: 400px) {
  .topbar-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .topbar-status #site-status-tab {
    grid-column: auto;
  }
  .topbar-status .server-status-link > span:last-child {
    min-width: 0;
  }
  .topbar-status [data-server-status-label],
  .topbar-status [data-cloudflare-status-label],
  .topbar-status [data-site-status-label] {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
  }
}
.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: currentColor;
}
.server-status-link.online {
  color: #06734c;
  background: #e0f5eb;
  border-color: #bee7d4;
}
.server-status-link.degraded,
.server-status-link.stale,
.server-status-link.unavailable {
  color: #885513;
  background: #fff4db;
  border-color: #f1d69d;
}
.server-status-link.unreachable {
  color: #a63032;
  background: #fce9e9;
  border-color: #f2c4c5;
}
.brand {
  font-size: 22px;
  font-weight: 750;
  color: #1e40af;
}
.phase {
  font-size: 12px;
  background: #edf3ff;
  color: #2453aa;
  padding: 7px 12px;
  border-radius: 7px;
}
.shell {
  display: grid;
  grid-template-columns: 200px 210px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}
.main-sidebar {
  background: #14223b;
  color: #bdc9dc;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.7px;
  padding: 0 10px;
}
.main-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #263b60;
  color: white;
  border-radius: 7px;
  padding: 12px;
}
.nav-note {
  font-size: 12px;
  line-height: 1.8;
  padding: 0 10px;
}
.plane-note {
  margin-top: auto;
  padding: 16px 10px;
  font-size: 13px;
  line-height: 1.8;
}
.plane-note small {
  color: #8197b8;
}
.sub-sidebar {
  background: white;
  border-right: 1px solid #e1e6ef;
  padding: 26px 20px;
}
.sub-sidebar h2 {
  margin: 4px 0 24px;
}
.sub-sidebar a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #65738b;
  font-size: 13px;
  margin: 20px 0;
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  pointer-events: none;
}
.sub-sidebar .nav-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  margin-top: 1px;
}
.nav-label {
  min-width: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.sub-sidebar p {
  font-size: 12px;
  color: #65738b;
  margin-top: 36px;
}
main {
  padding: 36px;
  min-width: 0;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .sub-sidebar {
    display: none;
  }
  main {
    padding: 24px;
  }
}
@media (max-width: 640px) {
  .shell {
    display: block;
  }
  .main-sidebar {
    display: none;
  }
  .topbar {
    padding: 12px 16px;
    gap: 10px;
  }
  .topbar-identity {
    gap: 8px 12px;
  }
  .release-info {
    font-size: 11px;
  }
  .topbar .account {
    margin-left: auto;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 19px;
  }
  .phase {
    font-size: 10px;
  }
  main {
    padding: 20px;
  }
}
