body.auth-pending,
body.auth-required {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

body.auth-pending .app,
body.auth-required .app {
  visibility: hidden;
}

body.auth-pending .auth-gate {
  visibility: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(239, 244, 198, .9), rgba(255, 255, 255, .96)),
    #f7f9ed;
}

body.authenticated .auth-gate {
  display: none;
}

.auth-panel {
  width: min(100%, 420px);
  padding: 30px;
  background: #fff;
  border: 1px solid #dce2bd;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(39, 48, 18, .14);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #9fc500;
  color: #fff;
  font-weight: 800;
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand strong {
  color: #172033;
  font-size: 17px;
}

.auth-brand div > span {
  margin-top: 2px;
  color: #718096;
  font-size: 12px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form.is-hidden {
  display: none;
}

.auth-form h1 {
  margin: 0;
  color: #172033;
  font-size: 25px;
  letter-spacing: 0;
}

.auth-form p {
  margin: 6px 0 14px;
  color: #718096;
  font-size: 13px;
}
.auth-form .auth-password-hint{margin:-3px 0 2px;color:#697386;font-size:10px;line-height:1.45}

.auth-form label {
  margin-top: 4px;
  color: #3f4a58;
  font-size: 12px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 44px;
}

.auth-form button {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
}

.auth-error {
  min-height: 18px;
  color: #b42318;
  font-size: 12px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px 4px 2px;
  border-top: 1px solid var(--line);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #edf2d4;
  color: #667400;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-user-copy {
  min-width: 0;
  flex: 1;
}

.sidebar-user-copy strong,
.sidebar-user-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy strong {
  color: #273043;
  font-size: 12px;
}

.sidebar-user-copy small {
  margin-top: 2px;
  color: #7b8698;
  font-size: 10px;
}

.sidebar-logout {
  width: 30px;
  height: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #697386;
  box-shadow: none;
  font-size: 18px;
}

.sidebar-logout:hover {
  background: #f1f4e3;
  transform: none;
}

body.sidebar-collapsed .sidebar-user-copy,
body.sidebar-collapsed .sidebar-logout {
  display: none;
}

body.sidebar-collapsed .sidebar-user {
  justify-content: center;
  padding-inline: 0;
}

body.role-viewer [data-recommendation-status],
body.role-viewer .recommendation-action-buttons {
  display: none;
}
