#teacherMenuPanel button#accountSecurityBtn {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .65rem;
  border-radius: 12px;
  background: #f0f5fb;
  color: #11274f;
  text-align: start;
}
.session-shield {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: #deedff;
  color: #2458a2;
}
.session-shield svg { width: 1.2rem; }
.session-next { margin-inline-start: auto; color: #516582; font-size: 1.35rem; }
[dir="rtl"] .session-next { transform: scaleX(-1); }

.session-dialog {
  width: min(100% - 2rem, 32rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid #d6e0ee;
  border-radius: 18px;
  background: #fff;
  color: #102441;
  box-shadow: 0 22px 70px #0b254133;
}
.session-dialog::backdrop { background: #0d1c3c6e; }
.session-dialog [hidden] { display: none !important; }
.session-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #dfe7f1;
}
.session-heading h2 { margin: 0; font-size: 1.35rem; }
.session-dialog :is(p, h2) { line-height: 1.5; }
.session-dialog p { margin-block: 0 .9rem; }
.session-dialog button {
  min-height: 44px;
  padding: .6rem .85rem;
  border: 1px solid #c9d5e6;
  border-radius: 10px;
  background: #fff;
  color: #102441;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.session-dialog button:disabled { cursor: default; opacity: .55; }
.session-dialog .session-close { padding: 0; width: 44px; border: 0; font-size: 1.45rem; }
.session-card {
  padding: 1rem;
  border: 1px solid #d5e4f8;
  border-radius: 14px;
  background: #eef5fd;
}
.session-dialog > .session-card { margin: 1.25rem; }
.session-card button { width: 100%; }
.session-dialog .session-danger-soft { color: #a01b27; background: #fee8e9; border-color: #fac6c9; }
.session-dialog .session-danger { color: #fff; background: #b81f2f; border-color: #b81f2f; }
.session-dialog form { padding: 1.25rem; }
.session-dialog label { display: grid; gap: .35rem; font-weight: 700; }
.session-dialog input {
  min-width: 0;
  width: 100%;
  padding: .65rem .85rem;
  font: inherit;
  border: 1px solid #b6c5da;
  border-radius: 10px;
  background: #fff;
  color: #102441;
}
#accountSecurityGoogle, #accountSecurityMicrosoft, #accountMicrosoftConnect { display: flex; justify-content: center; align-items: center; gap: .65rem; }
#accountSecurityGoogle:not([hidden]) + #accountSecurityMicrosoft:not([hidden]) { margin-top: .6rem; }
#accountSecurityMicrosoft img, #accountMicrosoftConnect img { width: 18px; height: 18px; flex: none; }
.session-provider {
  margin-block: 0 1.1rem;
  padding-block: 0 1.1rem;
  border-block-end: 1px solid #dfe7f1;
}
.session-provider h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.session-provider p { color: #45607e; font-size: .92rem; }
.session-provider #accountMicrosoftConnect { width: 100%; }
#accountMicrosoftStatus { padding: .55rem .7rem; border-radius: 10px; background: #e6f6ee; color: #135f3b; }
#accountMicrosoftStatus[data-error="true"] { background: #fee8e9; color: #a01b27; }
.session-or { text-align: center; padding-block: .65rem; color: #546378; }
.session-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.session-dialog .session-status {
  margin: .8rem 0 0;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: #eef5fd;
}
.session-dialog .session-status[data-error="true"] { background: #fee8e9; color: #a01b27; }
.session-dialog[data-stage="result"] { text-align: center; }
.session-dialog[data-stage="result"]::backdrop { background: #e7f3fc; }
.session-dialog[data-stage="result"] .session-heading {
  padding: 4.9rem 1.25rem 0;
  display: block;
  border: 0;
}
.session-dialog[data-stage="result"] .session-close { display: none; }
.session-result { padding: .65rem 1.25rem 1.35rem; }
.session-result-icon {
  position: absolute;
  inset: 1.15rem auto auto 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d0f1e1;
  color: #137648;
  font-size: 1.45rem;
}
.session-result button { width: 100%; background: #ffbd38; border-color: #f8ad18; }

@media (max-width:760px) {
  .session-dialog:not([data-stage="result"]) {
    width: 100%;
    max-width: none;
    max-height: 90dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .session-actions { flex-direction: column-reverse; }
  .session-dialog input { font-size: max(16px, 1em); }
}

#accountSecurity [data-session-stage="overview"] {
  background: #fff;
  border: 0;
  padding: 0;
}
#accountDevicesTitle { margin: 0 0 .5rem; font-size: 1.1rem; }
#accountDevices {
  list-style: none;
  margin: 0;
  padding: 0;
  max-block-size: min(40dvh, 24rem);
  overflow: auto;
}
#accountDevices li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .8rem 0;
  border-block-end: 1px solid #dfe7f1;
}
#accountDevices li::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4669' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='13' rx='2'/%3E%3Cpath d='M2 22h20'/%3E%3C/svg%3E") center / contain no-repeat;
}
#accountDevices li[data-mobile="true"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4669' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}
#accountDevices li :is(small, strong) { display: block; overflow-wrap: anywhere; }
#accountDevices :is(small, li > span), #accountDevicesStatus { color: #45607e; font-size: .87rem; }
#accountDevicesStatus { margin-block: .6rem 1rem; }
#accountDevicesRetry { margin-block-end: .8rem; }
.session-device-confirm { padding: 1.25rem; }
#accountDeviceError { color: #a01b27; }
