/* v152 — make guest mode and local training profiles visibly different. */

.account-guest-notice {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  padding: 13px 14px;
  border: 1px solid #d8e4fb;
  border-radius: 15px;
  background: linear-gradient(135deg, #f5f8ff, #f8f6ff);
}

.account-guest-notice[hidden],
.account-guest-migration-option[hidden],
#accountLogoutBtn[hidden] {
  display: none !important;
}

.account-guest-notice > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #397cf6, #8145ef);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.account-guest-notice strong,
.account-guest-notice p {
  display: block;
  margin: 0;
}

.account-guest-notice strong {
  color: #17233b;
  font-size: 13px;
}

.account-guest-notice p {
  margin-top: 4px;
  color: #60708a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
}

#accountRoleInput[readonly] {
  cursor: default;
  border-color: #dfe6f2;
  background: #f4f7fb;
  color: #35445d;
  font-weight: 800;
}

.account-guest-migration-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 13px 0;
  padding: 13px 14px;
  border: 1px solid #cfe7dc;
  border-radius: 14px;
  background: #f3fbf7;
  cursor: pointer;
}

.account-guest-migration-option input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #2875eb;
}

.account-guest-migration-option strong,
.account-guest-migration-option small {
  display: block;
}

.account-guest-migration-option strong {
  color: #174b36;
  font-size: 12px;
}

.account-guest-migration-option small {
  margin-top: 4px;
  color: #5e756a;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}

.account-saved-profiles {
  margin: 13px 0;
  padding: 13px;
  border: 1px solid #dfe6f0;
  border-radius: 15px;
  background: #fbfcfe;
}

.account-saved-profiles[hidden] {
  display: none !important;
}

.account-saved-profiles > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.account-saved-profiles > header strong {
  color: #25334a;
  font-size: 12px;
}

.account-saved-profiles > header small {
  color: #7a879b;
  font-size: 9px;
  font-weight: 650;
}

#accountSavedProfileList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-saved-profile {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  background: #fff;
  color: #27354c;
  text-align: left;
  cursor: pointer;
}

.account-saved-profile:hover:not(:disabled) {
  border-color: #9dbcf6;
  background: #f6f9ff;
}

.account-saved-profile.is-active {
  border-color: #b9d0fb;
  background: #f1f6ff;
}

.account-saved-profile > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5edff, #ede6ff);
  color: #315fc4;
  font-size: 13px;
  font-weight: 900;
}

.account-saved-profile div {
  min-width: 0;
}

.account-saved-profile strong,
.account-saved-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-saved-profile strong {
  font-size: 11px;
}

.account-saved-profile small {
  margin-top: 3px;
  color: #78869a;
  font-size: 9px;
}

.account-saved-profile em {
  color: #3871df;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

body[data-account-state="guest"] .sidebar-account-card {
  border-color: rgba(73, 112, 184, 0.2) !important;
  background: linear-gradient(135deg, rgba(246, 249, 255, 0.96), rgba(248, 246, 255, 0.96)) !important;
}

body[data-account-state="guest"] .sidebar-account-copy small {
  color: #65789b !important;
}

.onboarding-direction-grid.is-single-direction {
  grid-template-columns: minmax(0, 1fr) !important;
}

.onboarding-direction-grid.is-single-direction [data-onboarding-role] {
  min-height: 88px;
}

html[data-theme="dark"] .account-guest-notice {
  border-color: rgba(113, 148, 214, 0.3);
  background: linear-gradient(135deg, rgba(31, 43, 67, 0.96), rgba(43, 36, 70, 0.94));
}

html[data-theme="dark"] .account-guest-notice strong {
  color: #edf3ff;
}

html[data-theme="dark"] .account-guest-notice p {
  color: #aab9d1;
}

html[data-theme="dark"] #accountRoleInput[readonly] {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(34, 43, 60, 0.92);
  color: #d7dfed;
}

html[data-theme="dark"] .account-guest-migration-option {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(16, 94, 65, 0.2);
}

html[data-theme="dark"] .account-guest-migration-option strong {
  color: #b9f2d5;
}

html[data-theme="dark"] .account-guest-migration-option small {
  color: #9fc9b5;
}

html[data-theme="dark"] .account-saved-profiles,
html[data-theme="dark"] .account-saved-profile {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(28, 36, 51, 0.94);
}

html[data-theme="dark"] .account-saved-profiles > header strong,
html[data-theme="dark"] .account-saved-profile strong {
  color: #e4ebf7;
}

html[data-theme="dark"] .account-saved-profiles > header small,
html[data-theme="dark"] .account-saved-profile small {
  color: #9aa9bf;
}

@media (max-width: 720px) {
  .account-guest-notice,
  .account-guest-migration-option {
    margin-block: 11px;
  }

  #accountSavedProfileList {
    grid-template-columns: 1fr;
  }
}
