.topbar-right {
  gap: 12px;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  max-width: 180px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid #e7e3f0;
  border-radius: 5px;
  background: #faf9fd;
  color: #8b819f;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-access="admin"] .access-badge {
  background: #f1edf9;
  border-color: #dcd2ef;
  color: #7c659e;
}

.access-button {
  padding: 7px 10px;
  font-size: 10px;
}

.access-message {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -7px 0 22px;
  padding: 14px 16px;
  border: 1px solid #e4dfef;
  border-radius: 7px;
  background: #f2eff8;
  color: #9a8aaf;
}

.access-message > [data-icon] {
  flex: 0 0 auto;
  color: #9882b5;
}

.access-message strong {
  color: #88739e;
  font-size: 10px;
  font-weight: 550;
}

.access-message p {
  margin: 5px 0 0;
  color: #8a8397;
  font-size: 10px;
  line-height: 1.7;
}

.access-message > .button {
  margin-left: auto;
}

.viewer-prompt {
  display: grid;
  justify-items: start;
  align-content: center;
  min-height: 190px;
  padding: 25px 22px;
}

.viewer-prompt > strong {
  color: #777185;
  font-size: 12px;
  font-weight: 550;
}

.viewer-prompt p {
  max-width: 440px;
  margin: 9px 0 18px;
  color: #8b8597;
  font-size: 11px;
  line-height: 1.8;
}

.viewer-allocation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  padding: 22px;
}

.viewer-allocation > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.viewer-allocation [data-icon] {
  padding: 9px;
  background: #f6f2fb;
  border-radius: 7px;
  color: #a08bc0;
}

.viewer-allocation p {
  margin: 7px 0 0;
  color: #8c8598;
  font-size: 10px;
  line-height: 1.8;
}

#runtime-settings strong {
  overflow-wrap: anywhere;
}

.collector-warning-details:not(:empty) {
  margin: 0 24px 24px;
  padding: 15px 17px;
  border: 1px solid #eee0c6;
  border-radius: 6px;
  background: #fffbf4;
  color: #9a855e;
  font-size: 10px;
  line-height: 1.9;
}

.collector-warning-details strong {
  font-size: 11px;
  font-weight: 550;
}

.collector-warning-details ul {
  margin: 7px 0 0;
  padding-left: 17px;
}

#auth-dialog {
  position: fixed;
  width: min(410px, calc(100vw - 32px));
  padding: 30px;
}

#auth-dialog .auth-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #9489a0;
}

#auth-dialog .auth-close:hover {
  background: #f3eff8;
}

#auth-dialog label {
  margin: 19px 0 7px;
  color: #797184;
  font-size: 11px;
}

#auth-dialog input {
  margin: 0;
  color: #696074;
}

#auth-dialog .auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

#auth-dialog .auth-actions .button {
  flex: 1;
  width: auto;
}

#auth-dialog .auth-error {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid #edd8d8;
  border-radius: 5px;
  background: #fff6f6;
  color: #a57575;
  font-size: 10px;
  line-height: 1.8;
}

@media (max-width: 1100px) {
  .topbar-right .live-pill {
    display: none;
  }
}

@media (max-width: 600px) {
  .topbar .breadcrumb {
    display: none;
  }

  .topbar-right {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .access-badge {
    max-width: 100px;
    padding: 5px 6px;
    font-size: 8px;
  }

  .access-button {
    padding: 7px 8px;
    font-size: 9px;
  }

  .access-message {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 13px;
  }

  .access-message > div {
    flex: 1 1 calc(100% - 36px);
  }

  .access-message > .button {
    margin: 2px 0 0 30px;
  }

  .viewer-allocation {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .viewer-allocation > .button {
    margin-left: 50px;
  }
}
