/* Portal sign-in: signed-in user in the top bar, and the full-page sign-in screens. */
.sso-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  color: var(--ink, #172b35);
  font-weight: 600;
}
.sso-signout {
  padding: 4px 10px;
  font-size: 13px;
}
.sso-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--paper, #f5f7f8);
}
.sso-card {
  max-width: 520px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line, #e3e9ec);
  border-radius: 14px;
  padding: 28px;
}
.sso-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--ink, #172b35);
}
.sso-card p {
  margin: 0 0 18px;
  color: var(--muted, #6a7b84);
  line-height: 1.5;
}
.sso-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
html[data-theme="dark"] .sso-card {
  background: #192934;
}

/* On-prem reachability (connectivity.js) */
.onprem-pill {
  margin-left: 8px;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
  white-space: nowrap;
}
.onprem-pill.ok { background: #e7f2ef; color: #267c68; }
.onprem-pill.bad { background: #fbe9e7; color: #b3261e; }
.onprem-pill.warn { background: #fdf3e2; color: #8a5a00; }
.onprem-banner {
  margin: 16px 24px 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #f1c3bd;
  background: #fdf1ef;
  color: #7a1d16;
  line-height: 1.5;
}
html[data-theme="dark"] .onprem-pill.ok { background: #20463f; color: #9ce2c3; }
html[data-theme="dark"] .onprem-pill.bad,
html[data-theme="dark"] .onprem-banner { background: #4a2420; color: #ffb4ab; border-color: #7a3a33; }

/* Keep the right side of the top bar on one line now that it carries more items. */
.topbar > div {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.topbar > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .topbar > span { display: none; }
}
