.user-session-indicator {
  display: none
}
.theme-switcher {
  cursor: pointer;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s var(--bounce),background-color .3s;
  position: relative;
  overflow: hidden
}
.theme-switcher:hover {
  transform: rotate(180deg) scale(1.2);
  background-color: rgba(255,255,255,.1)
}
body.light-mode .theme-switcher:hover {
  background-color: rgba(0,0,0,.1)
}
.print-button {
  cursor: pointer;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: 0 0;
  box-shadow: none;
  transition: transform .25s var(--smooth),background-color .25s var(--smooth),box-shadow .25s var(--smooth)
}
.print-button:hover {
  transform: scale(1.12);
  background-color: rgba(255,255,255,.1)
}
body.light-mode .print-button {
  background: 0 0;
  box-shadow: none
}
body.light-mode .print-button:hover {
  background-color: rgba(0,0,0,.1)
}
.print-button img {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform .25s var(--smooth),filter .25s var(--smooth)
}
.print-button:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, .28))
}
.theme-switcher svg {
  width: 24px;
  height: 24px;
  transition: opacity .35s ease,transform .45s var(--bounce),fill .3s;
  position: absolute;
  inset: 8px
}
#moon-icon {
  opacity: 1;
  transform: translateY(-3px) scale(1) rotate(0)
}
#sun-icon {
  opacity: 0;
  transform: scale(.6) rotate(-90deg)
}
body.light-mode #moon-icon {
  opacity: 0;
  transform: translateY(-3px) scale(.6) rotate(90deg)
}
body.light-mode #sun-icon {
  opacity: 1;
  transform: scale(1) rotate(0)
}
#moon-icon path {
  fill: var(--text-color-dark)
}
#sun-icon path {
  fill: var(--text-color-light)
}
.title-container {
  position: relative;
  z-index: 3
}
body.edit-mode-enabled .title-container {
  padding-right: 40px;
  padding-bottom: 30px
}
.main-title {
  text-align: center;
  padding: 20px 20px 30px;
  font-size: 2.5em;
  font-weight: 900;
  letter-spacing: 1px;
  animation: 1s ease-out fadeIn;
  border-radius: 10px
}
.main-title.editing {
  background-color: rgba(255,255,255,.1);
  box-shadow: 0 0 15px rgba(241,196,15,.3);
  outline: 0
}
#edit-title-btn {
  position: absolute;
  bottom: 20px;
  right: 0;
  color: var(--text-color-dark);
  opacity: .7;
  background: 0 0;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease-in-out
}
#edit-title-btn:hover {
  opacity: 1;
  background-color: rgba(255,255,255,.1)
}
body.light-mode #edit-title-btn {
  color: var(--text-color-light)
}
body.light-mode #edit-title-btn:hover {
  background-color: rgba(0,0,0,.1)
}
@media (max-width:768px) {
  .user-session-tooltip {
    right: -8px;
    min-width: 160px
  }
}
.tabs-container {
  margin: -50px 50px 0;
  position: relative;
  scroll-behavior: smooth;
  z-index: 3
}
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333
}
body.light-mode .tabs {
  border-bottom-color: #ddd
}
#reading .title-container {
  margin-bottom: 20px;
  padding-bottom: 10px
}
body.light-mode #reading .title-container {
  border-bottom-color: #ddd
}
#reading .article-part {
  margin-bottom: 20px
}
.tab-button {
  background: 0 0;
  color: #888;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 700;
  border-bottom: 4px solid transparent;
  transition: all .3s var(--smooth);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  letter-spacing: .5px
}
.tab-button:hover {
  color: var(--text-color-dark);
  background-color: rgba(255,255,255,.05);
  transform: translateY(-2px)
}
body.light-mode .tab-button:hover {
  color: var(--text-color-light);
  background-color: rgba(0,0,0,.05)
}
.tab-button.active {
  color: var(--text-color-dark);
  border-bottom-color: var(--primary-color)
}
body.light-mode .tab-button.active {
  color: var(--text-color-light)
}
.content-container {
  background-color: var(--container-bg-dark);
  margin: 30px 50px;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-dark);
  min-height: 400px;
  transition: background-color .3s,box-shadow .3s;
  position: relative;
  overflow: hidden
}
body.light-mode .content-container {
  background-color: var(--container-bg-light);
  box-shadow: var(--shadow-light)
}
.page-top {
  background: linear-gradient(to bottom,#1a1a1a,#141414);
  padding: 20px 0 60px;
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box
}
.page-top.has-banner,
.page-top.no-banner {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-bottom: none;
  background-color: var(--background-color-dark)
}
.page-top.has-banner::before,
.page-top.no-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,.7);
  z-index: 1;
  transition: background-color .5s var(--smooth)
}
body.light-mode .page-top.has-banner::before,
body.light-mode .page-top.no-banner::before {
  background-color: rgba(255,255,255,.5)
}
.page-top.has-banner::after,
.page-top.no-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top,var(--background-color-dark),transparent);
  z-index: 2
}
.header,
.main-title {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto
}
body.light-mode .page-top:not(.has-banner) {
  background: linear-gradient(to bottom,#fff,#f5f5f1)
}
body.light-mode .page-top.has-banner::after,
body.light-mode .page-top.no-banner::after {
  background: linear-gradient(to top,var(--background-color-light),transparent)
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px
}
.logo {
  font-size: 2.8em;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform .4s var(--bounce),text-shadow .3s;
  display: inline-block
}
.logo:hover {
  transform: scale(1.1) rotate(-2deg);
  text-shadow: 0 0 20px var(--primary-color)
}
.logo .esl {
  color: var(--primary-color)
}
.logo.logo--localized {
  font-size: clamp(1.7em,4vw,2.3em);
  letter-spacing: 1px
}
@media (max-width:600px) {
  .logo.logo--localized {
    font-size: 1.15em;
    letter-spacing: .5px
  }
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 200
}
.user-session-indicator {
  position: relative;
  z-index: 250;
  display: flex
}
.user-session-button {
  cursor: pointer;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--text-color-dark);
  background: 0 0;
  box-shadow: none;
  overflow: hidden;
  transition: transform .25s var(--smooth),background-color .25s var(--smooth),box-shadow .25s var(--smooth)
}
.user-session-button:hover,
.user-session-button[aria-expanded=true] {
  transform: scale(1.12);
  background-color: rgba(255,255,255,.1)
}
body.light-mode .user-session-button {
  color: var(--text-color-light);
  background: 0 0;
  box-shadow: none
}
body.light-mode .user-session-button:hover,
body.light-mode .user-session-button[aria-expanded=true] {
  background-color: rgba(0,0,0,.1)
}
.user-session-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor
}
.user-session-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-color-dark);
  background: rgba(18,18,18,.96);
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
  z-index: 2147483647;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.96);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .22s var(--smooth),transform .22s var(--smooth),visibility .22s var(--smooth)
}
.user-session-tooltip.is-login-tooltip {
  width: min(320px,calc(100vw - 32px));
  min-width: 280px
}
.user-session-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: rgba(18,18,18,.96);
  transform: rotate(45deg);
  border-radius: 2px
}
.user-session-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto
}
body.light-mode .user-session-tooltip {
  color: var(--text-color-light);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 40px rgba(20,20,20,.14)
}
body.light-mode .user-session-tooltip::before {
  background: rgba(255,255,255,.96)
}
.user-session-tooltip-status {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #38d46a;
  margin-bottom: 4px
}
.user-session-tooltip-name {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word
}
.user-session-tooltip-name.is-condensed {
  font-size: .88rem
}
.user-session-tooltip-name.is-compact {
  font-size: .8rem
}
.user-session-tooltip-meta {
  margin-top: 2px;
  font-size: .78rem;
  opacity: .78;
  line-height: 1.4
}
.user-session-auth-message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .78rem;
  line-height: 1.45
}
.user-session-auth-message[hidden] {
  display: none
}
.user-session-auth-message a {
  color: inherit;
  font-weight: 700
}
.user-session-auth-message.is-error {
  color: #ffd4d4;
  background: rgba(185,28,28,.24);
  border: 1px solid rgba(248,113,113,.35)
}
.user-session-auth-message.is-success {
  color: #d6ffe2;
  background: rgba(22,163,74,.2);
  border: 1px solid rgba(74,222,128,.3)
}
.user-session-auth-message.is-info {
  color: #e4eefc;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(96,165,250,.28)
}
body.light-mode .user-session-auth-message.is-error {
  color: #7f1d1d;
  background: rgba(254,226,226,.92);
  border: 1px solid rgba(248,113,113,.44)
}
body.light-mode .user-session-auth-message.is-success {
  color: #166534;
  background: rgba(220,252,231,.95);
  border: 1px solid rgba(74,222,128,.38)
}
body.light-mode .user-session-auth-message.is-info {
  color: #1d4ed8;
  background: rgba(219,234,254,.95);
  border: 1px solid rgba(96,165,250,.36)
}
.user-session-login-form,
.user-session-logout-form {
  margin: 0
}
.user-session-login-form {
  display: grid;
  gap: 10px;
  margin-top: 14px
}
.user-session-field {
  display: grid;
  gap: 6px
}
.user-session-field span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .82
}
.user-session-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 10px 12px;
  color: inherit;
  background: rgba(255,255,255,.06);
  box-sizing: border-box
}
.user-session-field input:focus {
  outline: 0;
  border-color: rgba(248,113,113,.8);
  box-shadow: 0 0 0 3px rgba(248,113,113,.14)
}
.user-session-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  opacity: .86
}
.user-session-checkbox input {
  margin: 0;
  accent-color: var(--primary-color)
}
.user-session-submit {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg,#ef4444,#b91c1c);
  transition: transform .2s var(--smooth),box-shadow .2s var(--smooth),filter .2s var(--smooth)
}
.user-session-submit:focus-visible,
.user-session-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(185,28,28,.28);
  filter: brightness(1.04)
}
.user-session-submit.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none
}
.user-session-submit.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: .7s linear infinite user-session-spin
}
.user-session-inline-links {
  margin-top: 10px;
  display: grid;
  gap: 8px
}
.user-session-inline-links a {
  font-size: .78rem;
  color: inherit;
  opacity: .86;
  text-decoration: none
}
.user-session-inline-links a:focus-visible,
.user-session-inline-links a:hover {
  opacity: 1;
  text-decoration: underline
}
.user-session-text-button {
  padding: 0;
  border: none;
  background: 0 0;
  color: inherit;
  font: inherit;
  font-size: .78rem;
  text-align: left;
  opacity: .9;
  cursor: pointer
}
.user-session-text-button:focus-visible,
.user-session-text-button:hover {
  opacity: 1;
  text-decoration: underline
}
.user-session-verification-form {
  display: grid;
  gap: 10px;
  margin-top: 14px
}
.user-session-verification-meta {
  font-size: .78rem;
  line-height: 1.45;
  opacity: .82
}
.user-session-secondary-button {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 10px 12px;
  color: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255,255,255,.06);
  transition: transform .2s var(--smooth),border-color .2s var(--smooth),background-color .2s var(--smooth)
}
.user-session-secondary-button:focus-visible,
.user-session-secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(248,113,113,.48);
  background: rgba(255,255,255,.1)
}
.user-session-secondary-button.is-loading,
.user-session-secondary-button:disabled {
  cursor: default
}
.user-session-secondary-button.is-loading {
  position: relative;
  color: transparent
}
.user-session-secondary-button.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  animation: .7s linear infinite user-session-spin
}
.user-session-resend-note {
  min-height: 1.2em;
  font-size: .74rem;
  line-height: 1.4;
  opacity: .72
}
.user-session-password-checklist {
  display: grid;
  gap: 6px;
  margin-top: -2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.05)
}
.user-session-password-checklist div {
  position: relative;
  padding-left: 18px;
  font-size: .74rem;
  line-height: 1.35;
  opacity: .72
}
.user-session-password-checklist div::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 999px;
  background: rgba(255,255,255,.18)
}
.user-session-password-checklist div.is-valid {
  opacity: 1;
  color: #d6ffe2
}
.user-session-password-checklist div.is-valid::before {
  background: #38d46a;
  box-shadow: 0 0 0 3px rgba(56,212,106,.18)
}
.user-session-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity .28s var(--smooth),visibility .28s var(--smooth)
}
.user-session-auth-modal.is-visible {
  opacity: 1;
  visibility: visible
}
.user-session-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .28s
}
.user-session-auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(460px,calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  color: var(--text-color-dark);
  background: radial-gradient(circle at top right,rgba(229,9,20,.24),transparent 34%),linear-gradient(180deg,rgba(24,24,24,.98),rgba(14,14,14,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(26px) scale(.96);
  transition: opacity .28s var(--smooth),transform .32s var(--bounce);
  will-change: opacity,transform
}
.user-session-auth-modal.is-visible .user-session-auth-modal__backdrop {
  opacity: 1
}
.user-session-auth-modal.is-visible .user-session-auth-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1)
}
.user-session-auth-modal__header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  padding: 14px 14px 0;
  background: linear-gradient(180deg,rgba(14,14,14,.98),rgba(14,14,14,.92) 70%,rgba(14,14,14,0))
}
.user-session-auth-modal__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding: 0 24px 24px
}
.user-session-auth-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255,255,255,.08)
}
.user-session-auth-modal__close:focus-visible,
.user-session-auth-modal__close:hover {
  background: rgba(255,255,255,.14)
}
.user-session-auth-modal__panel {
  display: none
}
.user-session-auth-modal__panel.is-active {
  display: block
}
.user-session-auth-modal__footer {
  position: sticky;
  bottom: -24px;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  padding-bottom: 4px;
  background: linear-gradient(180deg,rgba(14,14,14,0),rgba(14,14,14,.92) 18%,rgba(14,14,14,.98))
}
.user-session-auth-modal__eyebrow {
  margin-bottom: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ff8a8a
}
.user-session-auth-modal__title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1
}
.user-session-auth-modal__copy {
  margin: 10px 0 0;
  font-size: .92rem;
  line-height: 1.5;
  opacity: .82
}
.user-session-reset-form,
.user-session-signup-form {
  display: grid;
  gap: 10px;
  margin-top: 18px
}
.user-session-social {
  margin-top: 12px
}
.user-session-social-buttons {
  display: grid;
  gap: 10px
}
.user-session-social-divider {
  position: relative;
  margin-bottom: 12px;
  text-align: center
}
.user-session-social-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,.12)
}
.user-session-social-divider span {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
  background: rgba(18,18,18,.96)
}
.user-session-apple-button,
.user-session-google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: #f8fafc;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.05));
  box-sizing: border-box;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: transform .2s var(--smooth),background-color .2s var(--smooth),border-color .2s var(--smooth),box-shadow .2s var(--smooth)
}
.user-session-apple-button {
  color: #fff;
  border-color: rgba(255,255,255,.16);
  background: #050505
}
.user-session-apple-button:focus-visible,
.user-session-apple-button:hover,
.user-session-google-button:focus-visible,
.user-session-google-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 14px 28px rgba(0,0,0,.22)
}
.user-session-apple-button:focus-visible,
.user-session-apple-button:hover {
  background: #161616
}
.user-session-apple-icon,
.user-session-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08)
}
.user-session-apple-icon {
  color: #fff;
  background: transparent;
  box-shadow: none
}
.user-session-apple-icon svg,
.user-session-google-icon svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  min-height: 18px;
  max-height: 18px;
  display: block
}
.user-session-apple-icon svg {
  fill: currentColor
}
.user-session-tooltip-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.12)
}
.user-session-tooltip-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg,#d43c3c,#b91c1c);
  box-sizing: border-box;
  transition: transform .2s var(--smooth),box-shadow .2s var(--smooth),filter .2s var(--smooth)
}
.user-session-tooltip-logout:focus-visible,
.user-session-tooltip-logout:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(185,28,28,.28);
  filter: brightness(1.04)
}
.user-session-tooltip-logout.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none
}
.user-session-tooltip-logout.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: .7s linear infinite user-session-spin
}
body.light-mode .user-session-tooltip-actions {
  border-top-color: rgba(15,23,42,.12)
}
body.light-mode .user-session-field input {
  border-color: rgba(15,23,42,.12);
  background: rgba(15,23,42,.04)
}
body.light-mode .user-session-field input:focus {
  border-color: rgba(220,38,38,.75);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1)
}
body.light-mode .user-session-social-divider::before {
  background: rgba(15,23,42,.12)
}
body.light-mode .user-session-social-divider span {
  background: rgba(255,255,255,.96)
}
body.light-mode .user-session-google-button {
  color: #0f172a;
  border-color: rgba(15,23,42,.12);
  background: linear-gradient(180deg,rgba(255,255,255,.95),rgba(248,250,252,.95));
  box-shadow: 0 10px 24px rgba(15,23,42,.08)
}
body.light-mode .user-session-google-button:focus-visible,
body.light-mode .user-session-google-button:hover {
  background: linear-gradient(180deg,#fff,#f1f5f9);
  border-color: rgba(15,23,42,.18);
  box-shadow: 0 14px 28px rgba(15,23,42,.12)
}
body.light-mode .user-session-apple-button {
  color: #fff;
  border-color: rgba(15,23,42,.9);
  background: #050505;
  box-shadow: 0 10px 24px rgba(15,23,42,.12)
}
body.light-mode .user-session-apple-button:focus-visible,
body.light-mode .user-session-apple-button:hover {
  background: #161616;
  border-color: rgba(15,23,42,1);
  box-shadow: 0 14px 28px rgba(15,23,42,.16)
}
body.light-mode .user-session-secondary-button {
  border-color: rgba(15,23,42,.12);
  background: rgba(15,23,42,.04)
}
body.light-mode .user-session-secondary-button:focus-visible,
body.light-mode .user-session-secondary-button:hover {
  border-color: rgba(220,38,38,.34);
  background: rgba(15,23,42,.07)
}
body.light-mode .user-session-password-checklist {
  background: rgba(15,23,42,.04)
}
body.light-mode .user-session-password-checklist div::before {
  background: rgba(15,23,42,.14)
}
body.light-mode .user-session-password-checklist div.is-valid {
  color: #166534
}
body.light-mode .user-session-auth-modal__dialog {
  color: var(--text-color-light);
  background: radial-gradient(circle at top right,rgba(229,9,20,.12),transparent 32%),linear-gradient(180deg,rgba(255,255,255,.98),rgba(245,245,241,.98));
  box-shadow: 0 28px 72px rgba(15,23,42,.16)
}
body.light-mode .user-session-auth-modal__header {
  background: linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.92) 70%,rgba(255,255,255,0))
}
body.light-mode .user-session-auth-modal__close {
  background: rgba(15,23,42,.06)
}
body.light-mode .user-session-auth-modal__close:focus-visible,
body.light-mode .user-session-auth-modal__close:hover {
  background: rgba(15,23,42,.1)
}
body.light-mode .user-session-auth-modal__footer {
  background: linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.92) 18%,rgba(255,255,255,.98))
}
@keyframes user-session-spin {
  from {
    transform: rotate(0)
  }
  to {
    transform: rotate(360deg)
  }
}
.account-modal[hidden] {
  display: none
}
.account-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--smooth)
}
.account-modal.is-open {
  opacity: 1;
  pointer-events: auto
}
.account-modal.is-closing {
  opacity: 0;
  pointer-events: none
}
.account-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(8px);
  cursor: default
}
.account-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(440px,100%);
  padding: 26px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: #161616;
  box-shadow: 0 24px 70px rgba(0,0,0,.52);
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transition: opacity .26s var(--smooth),transform .26s var(--smooth)
}
.account-modal.is-open .account-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1)
}
.account-modal.is-closing .account-modal-dialog {
  opacity: 0;
  transform: translateY(10px) scale(.98)
}
body.light-mode .account-modal-dialog {
  border-color: #d7e2f2;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24,39,75,.18)
}
.account-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1
}
body.light-mode .account-modal-close {
  border-color: #d7e2f2;
  color: #172033;
  background: #f8fafc
}
.account-modal-eyebrow {
  margin: 0 0 8px;
  color: var(--primary-color);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase
}
.account-modal-dialog h3 {
  margin: 0 34px 10px 0;
  font-size: 1.45rem;
  line-height: 1.15
}
.account-modal-dialog p {
  color: #b9c1cf;
  line-height: 1.45
}
body.light-mode .account-modal-dialog p {
  color: #58677d
}
body.account-daily-level-open {
  overflow: hidden
}
.account-daily-level-modal {
  box-sizing: border-box;
  width: min(440px,calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  color: #fff;
  background: #1b1b1d;
  box-shadow: 0 24px 70px rgba(0,0,0,.52)
}
.account-daily-level-modal::backdrop {
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(8px)
}
.account-daily-level-modal h3 {
  margin: 0 36px 12px 0;
  font-size: 1.5rem
}
.account-daily-level-modal p {
  color: #b9c1cf;
  line-height: 1.45;
  overflow-wrap: anywhere
}
.account-daily-level-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin-top: 22px
}
.account-daily-level-grid a {
  display: grid;
  min-height: 64px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  color: inherit;
  background: rgba(255,255,255,.04);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none
}
.account-daily-level-grid a[href]:hover,
.account-daily-level-grid a[href]:focus-visible {
  border-color: #e50914;
  outline: 2px solid #e50914;
  outline-offset: 2px;
  background: rgba(229,9,20,.16)
}
.account-daily-level-grid a[aria-disabled="true"] {
  opacity: .4;
  cursor: not-allowed
}
.account-daily-level-unavailable {
  margin-bottom: 0;
  font-size: .85rem
}
body.light-mode .account-daily-level-modal {
  color: #172033;
  background: #fff;
  border-color: #d7e2f2
}
body.light-mode .account-daily-level-modal p {
  color: #58677d
}
body.light-mode .account-daily-level-grid a {
  border-color: #d7e2f2
}
.account-avatar-picker-dialog {
  width: min(560px,100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto
}
.account-avatar-picker-panel {
  margin-top: 18px
}
.account-avatar-picker-status {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: #b9c1cf;
  font-weight: 800
}
.account-avatar-picker-status[hidden] {
  display: none
}
body.light-mode .account-avatar-picker-status {
  color: #58677d
}
.account-avatar-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(72px,1fr));
  gap: 12px
}
.account-avatar-icon-option {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  padding: 11px;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform .2s var(--smooth),border-color .2s var(--smooth),background-color .2s var(--smooth),box-shadow .2s var(--smooth)
}
.account-avatar-icon-option:hover,
.account-avatar-icon-option:focus-visible {
  border-color: rgba(229,9,20,.62);
  transform: translateY(-2px);
  outline: 0
}
.account-avatar-icon-option:active {
  transform: scale(.97)
}
.account-avatar-icon-option.is-selected {
  border-color: var(--primary-color);
  background: rgba(229,9,20,.16);
  box-shadow: 0 0 0 3px rgba(229,9,20,.16)
}
.account-avatar-icon-option:disabled {
  cursor: not-allowed;
  opacity: .7
}
.account-avatar-icon-option img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain
}
.account-avatar-icon-option.is-local-avatar img {
  filter: brightness(0) invert(1)
}
.account-avatar-icon-option.is-saving::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.34);
  border-top-color: #fff;
  animation: .7s linear infinite user-session-spin
}
body.light-mode .account-avatar-icon-option {
  border-color: #d7e2f2;
  color: #172033;
  background: #f8fafc
}
body.light-mode .account-avatar-icon-option.is-selected {
  border-color: var(--primary-color);
  background: #fff1f2;
  box-shadow: 0 0 0 3px rgba(229,9,20,.12)
}
body.light-mode .account-avatar-icon-option.is-local-avatar img {
  filter: none
}
.account-avatar-upload-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1)
}
body.light-mode .account-avatar-upload-form {
  border-top-color: #d7e2f2
}
.account-avatar-upload-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 750
}
.account-avatar-upload-form input::file-selector-button {
  min-height: 38px;
  margin-right: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg,#e50914,#8b121a);
  cursor: pointer;
  font: inherit;
  font-weight: 850
}
.account-avatar-upload-form input::-webkit-file-upload-button {
  min-height: 38px;
  margin-right: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg,#e50914,#8b121a);
  cursor: pointer;
  font: inherit;
  font-weight: 850
}
body.light-mode .account-avatar-upload-form input {
  border-color: #d7e2f2;
  color: #172033;
  background: #f8fafc
}
.account-avatar-upload-form button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg,#e50914,#8b121a);
  cursor: pointer;
  font: inherit;
  font-weight: 850
}
.account-modal-message {
  min-height: 20px;
  margin: 12px 0 0;
  font-weight: 800
}
.account-modal-message.is-success {
  color: #86efac
}
.account-modal-message.is-error {
  color: #fca5a5
}
.account-device-modal-dialog {
  width: min(500px,100%)
}
.account-device-modal-link {
  min-height: 46px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  transition: background-color .2s var(--smooth),transform .2s var(--smooth)
}
.account-device-modal-link:focus-visible,
.account-device-modal-link:hover {
  color: #fff;
  background: var(--primary-hover);
  transform: translateY(-1px);
  outline: 0
}
.account-teacher-connect-dialog {
  width: min(460px,100%);
  overflow: hidden
}
.account-teacher-connect-form {
  display: grid;
  gap: 12px;
  margin-top: 18px
}
.account-teacher-connect-form label {
  color: var(--text-color-dark);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase
}
.account-teacher-connect-form input {
  width: 100%;
  min-height: 64px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 2px solid rgba(229,9,20,.42);
  border-radius: 10px;
  color: var(--primary-color);
  background: rgba(255,255,255,.06);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase
}
.account-teacher-connect-form input::placeholder {
  color: rgba(229,9,20,.56);
  opacity: 1
}
.account-teacher-connect-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(229,9,20,.18);
  outline: 0
}
.account-teacher-connect-form button {
  min-height: 46px;
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  color: #fff;
  background: var(--primary-color);
  cursor: pointer;
  font: inherit;
  font-weight: 900
}
.account-teacher-connect-form button:disabled {
  cursor: wait;
  opacity: .72
}
.account-teacher-connect-message {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 800
}
.account-teacher-connect-message.is-error,
.account-teacher-connect-message.is-success {
  padding: 10px 12px
}
.account-teacher-connect-message.is-error {
  color: #fecaca;
  background: rgba(127,29,29,.38);
  border-color: rgba(248,113,113,.42)
}
.account-teacher-connect-message.is-success {
  color: #bbf7d0;
  background: rgba(20,83,45,.38);
  border-color: rgba(74,222,128,.42)
}
body.light-mode .account-teacher-connect-form label {
  color: var(--text-color-light)
}
body.light-mode .account-teacher-connect-form input {
  background: #f8fafc
}
body.light-mode .account-teacher-connect-message.is-error {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fca5a5
}
body.light-mode .account-teacher-connect-message.is-success {
  color: #065f46;
  background: #d1fae5;
  border-color: #6ee7b7
}
.account-vocab-modal-dialog {
  width: min(560px,100%)
}
.account-vocab-form {
  margin-top: 18px
}
.account-vocab-form .form-group {
  margin-bottom: 16px
}
.account-vocab-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-color-dark);
  font-size: .9rem;
  font-weight: 700
}
.account-vocab-form .form-group input,
.account-vocab-form .form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  color: var(--text-color-dark);
  background-color: #111;
  font: inherit
}
.account-vocab-form .form-group textarea {
  min-height: 84px;
  resize: vertical
}
body.light-mode .account-vocab-form .form-group label {
  color: var(--text-color-light)
}
body.light-mode .account-vocab-form .form-group input,
body.light-mode .account-vocab-form .form-group textarea {
  border-color: #d7e2f2;
  color: var(--text-color-light);
  background-color: #f8fafc
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px
}
.btn-cancel,
.btn-delete-confirm,
.btn-save {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 700
}
.btn-cancel {
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text-color-dark);
  background-color: #111
}
.btn-save {
  border: 0;
  color: #fff;
  background-color: var(--primary-color)
}
.btn-delete-confirm {
  border: 0;
  color: #fff;
  background-color: #dc2626
}
.btn-cancel:focus-visible,
.btn-cancel:hover,
.btn-delete-confirm:focus-visible,
.btn-delete-confirm:hover,
.btn-save:focus-visible,
.btn-save:hover {
  filter: brightness(1.08);
  outline: 0
}
.btn-cancel:disabled,
.btn-delete-confirm:disabled,
.btn-save:disabled {
  cursor: wait;
  opacity: .76
}
body.light-mode .btn-cancel {
  border-color: #d7e2f2;
  color: var(--text-color-light);
  background-color: #f8fafc
}
.egh-modal-warning-text {
  margin: 16px 0 0;
  color: #fca5a5;
  font-weight: 700;
  line-height: 1.45
}
body.light-mode .egh-modal-warning-text {
  color: #b91c1c
}
.account-teacher-modal-list {
  display: grid;
  gap: 10px;
  margin-top: 18px
}
.account-teacher-modal-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.04)
}
body.light-mode .account-teacher-modal-list div {
  border-color: #d7e2f2;
  background: #f8fafc
}
.account-teacher-modal-list span {
  color: #9ca3af;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase
}
.account-teacher-modal-list strong {
  overflow-wrap: anywhere
}
.account-teacher-modal-list .is-blurred {
  filter: blur(5px);
  user-select: none
}
.account-teacher-modal-list .teacher-email-value {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  margin: 0;
  padding: 0;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
  cursor: default
}
.account-teacher-modal-list .teacher-email-value--default {
  font-size: 1rem
}
.account-teacher-modal-list .teacher-email-value--small {
  font-size: .92rem
}
.account-teacher-modal-list .teacher-email-value--tiny {
  font-size: .82rem
}
.account-teacher-modal-list .teacher-email-value.is-revealed {
  animation: teacher-email-reveal 240ms ease both
}
.account-teacher-modal-list .teacher-email-value.is-hidden {
  filter: blur(6px);
  user-select: none;
  cursor: pointer;
  animation-name: teacher-email-hidden-reveal
}
@keyframes teacher-email-reveal {
  from { opacity: 0; transform: translateY(3px) }
  to { opacity: 1; transform: translateY(0) }
}
@keyframes teacher-email-hidden-reveal {
  from { opacity: 0; filter: blur(10px); transform: translateY(3px) }
  to { opacity: 1; filter: blur(6px); transform: translateY(0) }
}
.account-modal-note {
  margin-bottom: 0;
  font-size: .88rem
}
.account-disconnect-teacher-button {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid rgba(248,113,113,.42);
  border-radius: 999px;
  color: #fecaca;
  background: rgba(127,29,29,.24);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-transform: uppercase;
  transition: background-color .2s var(--smooth),border-color .2s var(--smooth),color .2s var(--smooth),transform .2s var(--smooth)
}
.account-disconnect-teacher-button:focus-visible,
.account-disconnect-teacher-button:hover {
  border-color: rgba(248,113,113,.7);
  color: #fff;
  background: rgba(220,38,38,.34);
  transform: translateY(-1px);
  outline: 0
}
.account-disconnect-teacher-button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none
}
body.light-mode .account-disconnect-teacher-button {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fee2e2
}
body.light-mode .account-disconnect-teacher-button:focus-visible,
body.light-mode .account-disconnect-teacher-button:hover {
  color: #fff;
  border-color: #dc2626;
  background: #dc2626
}
.account-connect-teacher-button {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid rgba(229,9,20,.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(229,9,20,.16);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-transform: uppercase;
  transition: background-color .2s var(--smooth),border-color .2s var(--smooth),transform .2s var(--smooth)
}
.account-connect-teacher-button:focus-visible,
.account-connect-teacher-button:hover {
  border-color: rgba(229,9,20,.7);
  background: rgba(229,9,20,.28);
  transform: translateY(-1px);
  outline: 0
}
body.light-mode .account-connect-teacher-button {
  color: var(--primary-color);
  background: rgba(229,9,20,.08)
}
.account-workspace-menu {
  display: grid;
  gap: 10px;
  margin-top: 22px
}
.account-workspace-menu button {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #d6dde8;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
  font-weight: 850;
  text-align: left;
  transition: background-color .2s var(--smooth),border-color .2s var(--smooth),transform .2s var(--smooth)
}
.account-workspace-menu button.is-active,
.account-workspace-menu button:focus-visible,
.account-workspace-menu button:hover {
  border-color: rgba(229,9,20,.58);
  background: rgba(229,9,20,.16);
  transform: translateX(2px);
  outline: 0
}
.account-workspace-menu strong {
  min-width: 34px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary-color);
  font-size: .82rem
}
.account-menu-label {
  padding: 4px 2px;
  color: var(--text-muted, #94a3b8);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase
}
body.light-mode .account-workspace-menu button {
  border-color: #c8ddf5;
  color: #172033;
  background: rgba(255,255,255,.74)
}
body.light-mode .account-workspace-menu button.is-active,
body.light-mode .account-workspace-menu button:focus-visible,
body.light-mode .account-workspace-menu button:hover {
  border-color: rgba(229,9,20,.42);
  background: rgba(229,9,20,.09)
}
.account-teacher-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--account-line, #334155)
}
.account-teacher-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer
}
.account-teacher-tabs button.is-active {
  border-bottom-color: var(--primary-color);
  color: #ff6870
}
body.light-mode .account-teacher-tabs button.is-active { color: #b91c1c }
.account-teacher-tabs strong {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(148,163,184,.15);
  font-size: .78rem
}
.account-teacher-tabs button:focus-visible,
.account-daily-filters select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px
}
.account-daily-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px
}
.account-daily-filters label { font-size: .88rem; font-weight: 700 }
.account-daily-filters select {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--account-line, #334155);
  border-radius: 8px;
  color: inherit;
  background: var(--account-surface, #172033);
  font: inherit
}
.account-workspace-main {
  min-width: 0;
  padding: 46px 58px 34px;
  transform: translateY(var(--account-parallax-y,0));
  transition: transform 80ms linear;
  background: radial-gradient(circle at 100% 0,rgba(229,9,20,.13),transparent 24%),#111
}
body.light-mode .account-workspace-main {
  background: radial-gradient(circle at 100% 0,rgba(229,9,20,.08),transparent 26%),#f8fafc
}
.account-workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px
}
.account-workspace-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05
}
.account-workspace-header p {
  margin: 10px 0 0;
  color: #a7b0c0;
  font-size: 1.05rem
}
body.light-mode .account-workspace-header p {
  color: #58677d
}
.account-content-section {
  margin-top: 26px;
  transform-origin: center top
}
.account-content-section[hidden] {
  display: none
}
.account-content-section.is-animating-in,
.account-exercise-filter-panel.is-animating-in {
  animation: .28s cubic-bezier(.22,1,.36,1) both account-panel-fly-in
}
.account-content-section.is-animating-out,
.account-exercise-filter-panel.is-animating-out {
  animation: .24s cubic-bezier(.4,0,.2,1) both account-panel-fly-out
}
.account-content-section.is-animating-in [data-exercise-card],
.account-content-section.is-animating-in [data-vocab-card],
.account-exercise-filter-panel.is-animating-in [data-exercise-card],
.account-exercise-filter-panel.is-animating-in [data-vocab-card] {
  animation: .42s cubic-bezier(.22,1,.36,1) both account-card-fly-in;
  animation-delay: calc(var(--account-item-index, 0) * 42ms)
}
.account-content-section.is-animating-out [data-exercise-card],
.account-content-section.is-animating-out [data-vocab-card],
.account-exercise-filter-panel.is-animating-out [data-exercise-card],
.account-exercise-filter-panel.is-animating-out [data-vocab-card] {
  animation: .22s cubic-bezier(.4,0,.2,1) both account-card-fly-out;
  animation-delay: calc(var(--account-item-index, 0) * 16ms)
}
@keyframes account-panel-fly-in {
  from {
    opacity: 0;
    transform: translateY(16px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}
@keyframes account-panel-fly-out {
  from {
    opacity: 1;
    transform: translateY(0)
  }
  to {
    opacity: 0;
    transform: translateY(-12px)
  }
}
@keyframes account-card-fly-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.96)
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}
@keyframes account-card-fly-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
  to {
    opacity: 0;
    transform: translateY(-18px) scale(.98)
  }
}
.account-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px
}
.account-section-heading h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.15
}
.account-section-heading p,
.account-section-heading span {
  margin: 4px 0 0;
  color: #94a3b8;
  font-weight: 800
}
.account-completed-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 18px
}
.account-completed-type-filter button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15,23,42,.68);
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s var(--smooth),background-color .18s var(--smooth),border-color .18s var(--smooth),color .18s var(--smooth)
}
.account-completed-type-filter button:hover,
.account-completed-type-filter button:focus-visible {
  border-color: rgba(229,9,20,.52);
  color: #fff;
  background: rgba(229,9,20,.18);
  outline: 0;
  transform: translateY(-1px)
}
.account-completed-type-filter button.is-active {
  border-color: rgba(229,9,20,.72);
  color: #fff;
  background: #e50914
}
body.light-mode .account-completed-type-filter button {
  border-color: #c8ddf5;
  color: #273142;
  background: rgba(255,255,255,.82)
}
body.light-mode .account-completed-type-filter button:hover,
body.light-mode .account-completed-type-filter button:focus-visible {
  border-color: rgba(229,9,20,.44);
  background: rgba(229,9,20,.1)
}
body.light-mode .account-completed-type-filter button.is-active {
  border-color: rgba(229,9,20,.72);
  color: #fff;
  background: #e50914
}
.account-exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,210px),292px));
  gap: 18px;
  padding: 0;
  justify-content: start
}
.account-reading-card {
  min-height: 350px;
  width: 100%;
  max-width: 292px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  text-decoration: none;
  background-color: #1f2937;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 28px rgba(0,0,0,.24);
  isolation: isolate;
  border: 0;
  transform-origin: center bottom
}
.account-reading-card,
.account-reading-card:focus-visible,
.account-reading-card:hover,
.account-reading-card:visited {
  color: #fff
}
.account-reading-card.is-hidden-batch,
.account-reading-card.is-hidden-type {
  display: none
}
.account-reading-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top,rgba(0,0,0,.88),rgba(0,0,0,.46) 48%,rgba(0,0,0,.1))
}
.account-reading-card-tags {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px
}
.account-reading-card-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  color: #fff;
  background: #e50914;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  gap: 7px
}
.account-reading-card-tags span:last-child {
  padding: 0 13px;
  color: #fff;
  background: #e50914
}
.account-reading-card.is-premium {
  border-color: rgba(245,158,11,.32)
}
.account-reading-card.is-premium .account-reading-card-tags span {
  background: linear-gradient(135deg,#b87907,#d89b11);
  box-shadow: 0 10px 24px rgba(184,121,7,.28)
}
.account-reading-card.is-premium .account-reading-card-action {
  background: linear-gradient(135deg,#b87907,#f4c20d);
  box-shadow: 0 12px 26px rgba(184,121,7,.34)
}
.account-reading-card.is-premium:focus-visible .account-reading-card-action,
.account-reading-card.is-premium:hover .account-reading-card-action {
  background: linear-gradient(135deg,#a76504,#eab308)
}
.account-reading-tag-icon {
  flex: 0 0 auto
}
.account-reading-card-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px;
  display: grid;
  gap: 12px
}
.account-reading-source {
  margin-bottom: 8px;
  color: rgba(255,255,255,.76);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase
}
.account-reading-card h4 {
  margin: 0;
  color: #fff!important;
  font-size: clamp(1.06rem, 1.2vw, 1.34rem);
  line-height: 1.14;
  text-shadow: 0 2px 12px rgba(0,0,0,.35)
}
.account-reading-card p {
  margin: 0 0 12px;
  color: #fff;
  font-weight: 700
}
.account-reading-card small {
  display: block;
  color: rgba(255,255,255,.84)!important;
  font-size: .76rem;
  font-weight: 750
}
.account-reading-date {
  display: inline-flex!important;
  align-items: center;
  gap: 7px
}
.account-reading-date svg {
  flex: 0 0 auto;
  opacity: .86
}
.account-reading-new-badge {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg,#b87907,#d89b11);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase
}
.account-reading-progress {
  display: flex;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.24)
}
.account-reading-card-action {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: #e50914;
  font-size: .86rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(229,9,20,.3);
  transition: background-color .2s var(--smooth),transform .2s var(--smooth)
}
.account-reading-card-action svg {
  flex: 0 0 auto
}
.account-reading-card:focus-visible .account-reading-card-action,
.account-reading-card:hover .account-reading-card-action {
  background: var(--primary-hover);
  transform: translateY(-1px)
}
.account-reading-card.is-app-locked {
  cursor: pointer;
  filter: saturate(.82);
  user-select: none
}
.account-reading-card.is-app-locked .account-reading-card-action,
.account-reading-card.is-app-locked:focus-visible .account-reading-card-action,
.account-reading-card.is-app-locked:hover .account-reading-card-action {
  color: #d7dde8;
  background: rgba(30,41,59,.94);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
  transform: none
}
.account-daily-gated-preview {
  position: relative;
  max-height: 738px;
  overflow: hidden;
  padding-bottom: 0
}
.account-daily-gated-preview .account-exercise-grid {
  filter: saturate(.9);
  transform: translateY(0)
}
.account-daily-app-gate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  min-height: 370px;
  margin: 0;
  padding: 170px 24px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  background: linear-gradient(to bottom,rgba(17,17,17,0),rgba(17,17,17,.78) 34%,#111 66%);
  box-sizing: border-box
}
.account-daily-app-gate-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border: 1px solid rgba(245,158,11,.52);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fde68a;
  background: linear-gradient(145deg,rgba(161,98,7,.88),rgba(234,179,8,.42));
  box-shadow: 0 16px 34px rgba(0,0,0,.28)
}
.account-daily-app-gate .account-daily-app-gate-eyebrow {
  margin: 0 0 8px;
  color: #facc15;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase
}
.account-daily-app-gate h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem,2.6vw,2.25rem);
  line-height: 1.1
}
.account-daily-app-gate > p:not(.account-daily-app-gate-eyebrow) {
  max-width: 590px;
  margin: 12px 0 20px;
  color: #b9c3d1;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55
}
.account-daily-app-gate-actions {
  width: min(100%,280px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px
}
.account-daily-app-gate-actions > a,
.account-daily-app-gate-actions > button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1f2937;
  background: linear-gradient(135deg,#facc15,#eab308);
  box-shadow: 0 14px 30px rgba(202,138,4,.3);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  transition: transform .2s var(--smooth),box-shadow .2s var(--smooth),filter .2s var(--smooth)
}
.account-daily-app-gate-actions > a:hover,
.account-daily-app-gate-actions > a:focus-visible,
.account-daily-app-gate-actions > button:hover,
.account-daily-app-gate-actions > button:focus-visible {
  color: #111827;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(202,138,4,.38);
  outline: 0
}
.account-daily-app-gate-actions .is-teacher-action:hover,
.account-daily-app-gate-actions .is-teacher-action:focus-visible {
  color: #fff;
  box-shadow: 0 18px 34px rgba(229,9,20,.34)
}
body.light-mode .account-daily-app-gate {
  background: linear-gradient(to bottom,rgba(248,250,252,0),rgba(248,250,252,.92) 34%,#f8fafc 66%)
}
body.light-mode .account-daily-app-gate h3 {
  color: #172033
}
body.light-mode .account-daily-app-gate > p:not(.account-daily-app-gate-eyebrow) {
  color: #58677d
}
@media (max-width:640px) {
  .account-daily-app-gate {
    min-height: 300px;
    padding: 145px 10px 24px
  }
}
.account-reading-progress span {
  min-width: 0;
  height: 100%
}
.account-reading-progress .is-correct {
  background: #10b981
}
.account-reading-progress .is-incorrect {
  background: #ef4444
}
.account-reading-progress .is-missing {
  background: rgba(255,255,255,.24)
}
body.light-mode .account-reading-card h4,
body.light-mode .account-reading-card small {
  color: #fff!important
}
@media (prefers-reduced-motion:reduce) {
  .account-content-section.is-animating-in,
  .account-content-section.is-animating-in [data-exercise-card],
  .account-content-section.is-animating-in [data-vocab-card],
  .account-content-section.is-animating-out,
  .account-content-section.is-animating-out [data-exercise-card],
  .account-content-section.is-animating-out [data-vocab-card],
  .account-exercise-filter-panel.is-animating-in,
  .account-exercise-filter-panel.is-animating-in [data-exercise-card],
  .account-exercise-filter-panel.is-animating-in [data-vocab-card],
  .account-exercise-filter-panel.is-animating-out,
  .account-exercise-filter-panel.is-animating-out [data-exercise-card],
  .account-exercise-filter-panel.is-animating-out [data-vocab-card] {
    animation: none
  }
  .account-modal,
  .account-modal-dialog {
    transition: none
  }
}
.account-exercise-group {
  margin-top: 26px
}
.account-exercise-group:first-of-type {
  margin-top: 0
}
.account-exercise-group h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .03em;
  text-transform: uppercase
}
body.light-mode .account-exercise-group h4 {
  color: var(--text-color-light)
}
.account-infinite-spinner {
  min-height: 48px;
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #cfd8e6;
  font-weight: 850
}
.account-infinite-spinner[hidden] {
  display: none
}
.account-infinite-spinner span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: var(--primary-color);
  animation: .72s linear infinite account-spinner
}
.account-infinite-spinner strong {
  font-size: .9rem
}
.account-infinite-sentinel {
  width: 100%;
  height: 2px
}
@keyframes account-spinner {
  to {
    transform: rotate(360deg)
  }
}
.account-vocabulary-section {
  padding-bottom: 12px
}
.account-vocabulary-view {
  --accent-primary: var(--primary-color);
  --accent-primary-hover: var(--primary-hover);
  --bg-primary: #111111;
  --bg-secondary: rgba(255, 255, 255, 0.055);
  --border-color: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --text-primary: var(--text-color-dark);
  --text-secondary: #aeb7c5;
  gap: 16px
}
body.light-mode .account-vocabulary-view {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --border-color: #d7e2f2;
  --card-shadow: 0 10px 24px rgba(24, 39, 75, 0.08);
  --text-primary: var(--text-color-light);
  --text-secondary: #58677d
}
.account-vocab-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px
}
.account-vocab-heading-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(229,9,20,.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(229,9,20,.16);
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 850;
  text-transform: uppercase;
  transition: background-color .2s var(--smooth),border-color .2s var(--smooth),transform .2s var(--smooth)
}
.account-vocab-heading-actions .flashcards-btn {
  width: 54px;
  min-width: 54px;
  padding: 0;
  border-color: var(--primary-color);
  border-radius: 8px;
  background: var(--primary-color)
}
.account-vocab-heading-actions .flashcards-btn[hidden] {
  display: none !important
}
.account-vocab-heading-actions .flashcards-btn svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round
}
.account-vocab-heading-actions button:focus-visible,
.account-vocab-heading-actions button:hover {
  border-color: rgba(229,9,20,.7);
  background: rgba(229,9,20,.3);
  transform: translateY(-1px);
  outline: 0
}
.account-vocab-heading-actions button:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none
}
body.light-mode .account-vocab-heading-actions button {
  color: var(--primary-color);
  background: rgba(229,9,20,.08)
}
body.light-mode .account-vocab-heading-actions .flashcards-btn {
  color: #fff;
  background: var(--primary-color)
}
.account-vocabulary-view .vocab-controls-stack {
  display: grid;
  gap: 0;
  margin-bottom: 16px
}
.account-vocabulary-view .vocab-sort-controls {
  display: flex;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: nowrap;
  overflow: hidden;
  transition: max-height 360ms cubic-bezier(.22, 1, .36, 1),opacity 260ms,transform 360ms cubic-bezier(.22, 1, .36, 1),margin 360ms,padding 360ms,border-color 260ms
}
.account-vocabulary-view .vocab-sort-controls.is-visible {
  max-height: 96px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto
}
.account-vocabulary-view .vocab-sort-controls button {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: .2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-width: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent!important
}
.account-vocabulary-view .vocab-sort-controls button.is-active {
  background-color: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary)
}
.account-vocabulary-view .sort-arrow {
  transition: transform .3s
}
.account-vocabulary-view .sort-arrow.is-desc {
  transform: rotate(180deg)
}
.account-vocabulary-view .vocab-grid-container {
  --account-vocab-columns: 1;
  display: grid;
  grid-template-columns: repeat(var(--account-vocab-columns),minmax(0,1fr));
  gap: 16px;
  position: relative
}
.account-vocabulary-view .account-vocab-column {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0
}
.account-vocabulary-view .vocab-item-card {
  display: block;
  width: 100%;
  margin: 0;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  overflow: hidden;
  transition: background-color .3s ease-in-out,border-left-color .3s ease-in-out,box-shadow .3s ease-in-out,opacity .3s ease-in-out,transform 1s;
  -webkit-tap-highlight-color: transparent;
  border-left: 5px solid transparent
}
.account-vocabulary-view .vocab-item-card:focus-visible {
  outline: rgba(229,9,20,.26) solid 3px;
  outline-offset: 3px
}
.account-vocabulary-view .vocab-item-card.familiarity--new {
  border-left-color: #ef4444
}
.account-vocabulary-view .vocab-item-card.familiarity--learning {
  border-left-color: #f59e0b
}
.account-vocabulary-view .vocab-item-card.familiarity--known {
  border-left-color: #22c55e
}
.account-vocabulary-view .vocab-card-header {
  padding: 16px;
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px
}
.account-vocabulary-view .vocab-card-header-main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--text-primary);
  overflow-wrap: anywhere
}
.account-vocabulary-view .word-type {
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: .875rem
}
.account-vocabulary-view .vocab-card-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.25, .8, .25, 1)
}
.account-vocabulary-view .vocab-item-card.is-expanded .vocab-card-body {
  grid-template-rows: 1fr
}
.account-vocabulary-view .vocab-card-content {
  overflow: hidden;
  padding: 0 16px;
  opacity: 0;
  transition: opacity .5s cubic-bezier(.25, .8, .25, 1)
}
.account-vocabulary-view .vocab-item-card.is-expanded .vocab-card-content {
  padding-bottom: 16px;
  opacity: 1
}
.account-vocabulary-view .vocab-card-body p {
  margin: 0 0 8px;
  font-size: .875rem;
  color: var(--text-secondary)
}
.account-vocabulary-view .vocab-card-body p:last-child {
  margin-bottom: 0
}
.account-vocabulary-view .vocab-card-body strong {
  color: var(--text-primary)
}
.account-vocabulary-view .vocab-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color)
}
.account-vocabulary-view .vocab-action-btn {
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  background: 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s
}
.account-vocabulary-view .vocab-action-btn:focus-visible,
.account-vocabulary-view .vocab-action-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--bg-primary);
  outline: 0
}
.account-vocabulary-view .vocab-action-btn:disabled {
  cursor: wait;
  opacity: .76
}
.account-vocabulary-view .vocab-action-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px
}
.account-vocabulary-view .vocab-action-btn .egh-spinner,
.account-vocabulary-view .vocab-action-btn.loading .egh-spinner {
  animation: .8s linear infinite account-spinner
}
.account-vocabulary-view .vocab-action-btn.is-success {
  color: #22c55e;
  border-color: #22c55e
}
.account-vocabulary-view .vocab-action-btn.playing {
  color: #22c55e;
  border-color: #22c55e
}
.account-vocabulary-view .vocab-action-btn.error {
  color: #ef4444;
  border-color: #ef4444
}
.account-vocabulary-view .btn-delete:focus-visible,
.account-vocabulary-view .btn-delete:hover,
.account-vocabulary-view .btn-thumbs-down:focus-visible,
.account-vocabulary-view .btn-thumbs-down:hover {
  color: #ef4444;
  border-color: #ef4444
}
.account-vocabulary-view .btn-thumbs-up:focus-visible,
.account-vocabulary-view .btn-thumbs-up:hover {
  color: #22c55e;
  border-color: #22c55e
}
.account-vocab-date {
  display: none
}
.account-flashcards-dialog {
  width: min(920px,calc(100vw - 36px));
  max-height: min(820px,calc(100vh - 36px));
  overflow: auto
}
.study-match-prompt {
  margin: 8px 0 18px;
  color: #cbd5e1;
  font-weight: 800;
  text-align: center
}
body.light-mode .study-match-prompt {
  color: #58677d
}
.study-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 18px
}
.study-flashcard-container {
  height: 260px;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .42s ease var(--card-delay),transform .52s cubic-bezier(.18, .9, .22, 1.08) var(--card-delay);
  will-change: transform,opacity
}
.study-flashcard-container.is-visible {
  opacity: 1;
  transform: translateY(0)
}
.study-flashcard {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background-color: transparent;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  perspective: 1000px
}
.study-flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .82s cubic-bezier(.34, 1.56, .64, 1),box-shadow .3s;
  transform-style: preserve-3d;
  transform-origin: center center;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  border-radius: 15px;
  will-change: transform
}
.study-flashcard.is-flipped .study-flashcard-inner {
  transform: rotateY(180deg)
}
.study-flashcard.is-active .study-flashcard-inner {
  box-shadow: 0 18px 34px rgba(229,9,20,.24)
}
.study-flashcard-back,
.study-flashcard-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 15px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 16px;
  transform-style: preserve-3d
}
.study-flashcard-front {
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: #fff;
  position: relative;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,.28)
}
.study-flashcard-front h3 {
  margin: 0;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1.18
}
.study-flashcard-back {
  background: #9f1018;
  border: 2px solid #8b121a;
  color: #fff;
  transform: rotateY(180deg);
  box-shadow: inset 0 0 20px rgba(0,0,0,.12)
}
.study-flashcard-back p {
  width: 100%;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.38
}
.study-flashcard-translation {
  margin-top: 12px;
  color: rgba(255,255,255,.9);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.32
}
.account-flashcards-controls {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-top: 20px
}
.account-flashcard-score-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform .2s var(--smooth),filter .2s var(--smooth),opacity .2s var(--smooth)
}
.account-flashcard-score-button.is-down {
  background: #dc2626
}
.account-flashcard-score-button.is-up {
  background: #16a34a
}
.account-flashcard-score-button:focus-visible,
.account-flashcard-score-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  outline: 0
}
.account-flashcard-score-button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none
}
.account-flashcards-loader {
  grid-column: 1/-1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #cbd5e1;
  font-weight: 900
}
.account-flashcards-loader .egh-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.24);
  border-top-color: var(--primary-color);
  border-radius: 999px;
  animation: .8s linear infinite account-spinner
}
.account-empty-state {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed rgba(148,163,184,.36);
  border-radius: 8px;
  color: #94a3b8;
  font-weight: 800;
  text-align: center
}
.account-home-panel {
  width: min(560px,100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: var(--container-bg-dark);
  box-shadow: var(--shadow-dark);
  box-sizing: border-box
}
body.light-mode .account-home-panel {
  border-color: rgba(0,0,0,.08);
  background: var(--container-bg-light);
  box-shadow: var(--shadow-light)
}
.account-home-eyebrow {
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}
.account-home-panel h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.15
}
.account-home-panel p {
  margin: 10px 0 22px;
  color: #b9b9b9;
  line-height: 1.5
}
body.light-mode .account-home-panel p {
  color: #555
}
.account-home-login-form {
  margin-top: 18px
}
@media (min-width:700px) {
  .account-vocabulary-view .vocab-grid-container {
    --account-vocab-columns: 2
  }
}
@media (min-width:1180px) {
  .account-vocabulary-view .vocab-grid-container {
    --account-vocab-columns: 3
  }
}
@media (min-width:1500px) {
  .account-vocabulary-view .vocab-grid-container {
    --account-vocab-columns: 4
  }
}
@media (max-width:1100px) {
  .account-home {
    width: min(100% - 36px,900px)
  }
  .account-workspace {
    grid-template-columns: 1fr
  }
  .account-sidebar {
    position: static;
    transform: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 8px 8px 0 0
  }
  .account-workspace-main {
    transform: none
  }
}
@media (max-width:768px) {
  .index-account-screen .title-container {
    margin-top: 46px;
    padding: 0 24px
  }
  .account-home {
    width: calc(100% - 24px);
    margin-top: -44px
  }
  .account-sidebar,
  .account-workspace-main {
    padding: 24px
  }
  .account-exercise-grid {
    grid-template-columns: 1fr
  }
  .account-section-heading {
    align-items: flex-start;
    flex-direction: column
  }
  .account-vocabulary-view .vocab-sort-controls {
    overflow-x: auto
  }
}
.page-navigation {
  display: flex;
  justify-content: space-between;
  padding: 20px 50px;
  margin: 0 auto;
  max-width: 1100px
}
.page-navigation button {
  background: 0 0;
  border: none;
  color: var(--text-color-dark);
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: color .2s
}
body.light-mode .page-navigation button {
  color: var(--text-color-light)
}
.page-navigation button:hover,
body.light-mode .page-navigation button:hover:not(:disabled) {
  color: var(--primary-color)
}
.footer {
  text-align: center;
  padding: 20px 50px;
  margin: 20px auto 0;
  max-width: 1100px;
  color: #888;
  font-size: .9em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px
}
body.light-mode .footer {
  color: #555
}
.footer .version {
  margin-top: 5px;
  font-size: .8em;
  color: #777
}
.footer img {
  height: 1em;
  width: auto;
  vertical-align: middle
}
.footer a {
  color: #8a2be2;
  text-decoration: none;
  font-weight: 700;
  transition: color .2s
}
body.light-mode .footer a {
  color: #6a0dad
}
.footer a:hover {
  color: var(--primary-color)
}
.tab-header h2 {
  display: flex;
  align-items: center;
  justify-content: space-between
}
.account-mobile-app-banner {
  display: none;
  grid-template-columns: 40px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--account-line, #334155);
  border-radius: 14px;
  background: var(--account-surface, #172033);
  color: inherit;
  box-sizing: border-box;
  width: 100%;
  min-width: 0
}
.account-mobile-app-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 11px;
  color: #ff6870;
  background: rgba(229,9,20,.1)
}
.account-mobile-app-copy {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0
}
.account-mobile-app-copy strong { font-size: .85rem; letter-spacing: .04em }
.account-mobile-app-copy span { font-size: .75rem; line-height: 1.4; opacity: .7 }
.account-mobile-app-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(229,9,20,.3);
  border-radius: 8px;
  color: #ff8990;
  background: rgba(229,9,20,.08);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  text-align: center
}
body.light-mode .account-mobile-app-banner a,
body.light-mode .account-mobile-app-icon { color: #b91c1c }
.account-mobile-app-banner a svg { flex-shrink: 0 }
.account-mobile-app-banner a:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px }
@media (max-width:380px) {
  .account-mobile-app-banner { grid-template-columns: 32px minmax(0,1fr); gap: 8px; padding: 10px }
  .account-mobile-app-icon { flex-basis: 32px; height: 36px }
  .account-mobile-app-banner a { grid-column: 1 / -1 }
  .account-teacher-tabs button { padding-inline: 8px; flex: 1 }
}
@media (max-width:768px) {
  .account-mobile-app-banner {
    display: grid
  }
}
button.account-identity-btn {
  background: 0 0;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  outline: 0
}
button.account-identity-btn:hover {
  text-decoration: underline
}
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px
}
.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-color-dark,#fff)
}
body.light-mode .form-group label {
  color: var(--text-color-light,#172033)
}
.form-group input,
.form-group select {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  color: var(--text-color-dark,#fff);
  background-color: #111;
  font-family: inherit;
  font-size: 16px
}
body.light-mode .form-group input,
body.light-mode .form-group select {
  border-color: #d7e2f2;
  color: var(--text-color-light,#172033);
  background-color: #f8fafc
}

/* --- STUDENT ACCOUNT SIDEBAR RESTORE --- */
body.index-account-screen .account-home {
  width: min(1480px,calc(100vw - 48px));
  margin: -30px auto 72px;
  color: var(--text-color-dark,#f8fafc)
}
body.light-mode.index-account-screen .account-home {
  color: var(--text-color-light,#172033)
}
body.index-account-screen .account-workspace {
  display: grid;
  grid-template-columns: minmax(270px,320px) minmax(0,1fr);
  gap: 34px;
  align-items: start
}
body.index-account-screen .account-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  z-index: 8;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025)),#1b1b1d;
  box-shadow: 0 26px 70px rgba(0,0,0,.34);
  transform: translateY(var(--account-sidebar-y,0));
  transition: transform 80ms linear
}
body.index-account-screen .account-sidebar::-webkit-scrollbar {
  width: 8px
}
body.index-account-screen .account-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,255,255,.16)
}
body.light-mode.index-account-screen .account-sidebar {
  border-color: #d7e2f2;
  background: linear-gradient(180deg,rgba(255,255,255,.98),rgba(245,248,252,.96));
  box-shadow: 0 24px 62px rgba(24,39,75,.14)
}
body.index-account-screen .account-profile-card {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr) 78px;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.1)
}
body.light-mode.index-account-screen .account-profile-card {
  border-bottom-color: #d7e2f2
}
body.index-account-screen .account-avatar {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #aeb8c7;
  background: radial-gradient(circle at 35% 25%,rgba(255,255,255,.15),transparent 38%),#24272d;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.26);
  transition: border-color .2s var(--smooth),transform .2s var(--smooth),box-shadow .2s var(--smooth)
}
body.index-account-screen .account-avatar:focus-visible,
body.index-account-screen .account-avatar:hover {
  border-color: rgba(229,9,20,.7);
  transform: translateY(-1px);
  outline: 0
}
body.index-account-screen .account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover
}
body.index-account-screen .account-avatar.is-default-avatar-icon {
  border-color: rgba(229,9,20,.5);
  background: #e50914
}
body.index-account-screen .account-avatar img.account-avatar-default-icon {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .94
}
body.index-account-screen .account-avatar svg {
  width: 56%;
  height: 56%;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round
}
body.light-mode.index-account-screen .account-avatar {
  border-color: #c8d7eb;
  color: #708096;
  background: #eef3fa;
  box-shadow: 0 10px 24px rgba(24,39,75,.12)
}
body.light-mode.index-account-screen .account-avatar.is-default-avatar-icon {
  border-color: rgba(229,9,20,.36);
  background: #e50914
}
body.index-account-screen .account-identity {
  min-width: 0
}
body.index-account-screen .account-identity h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0
}
body.index-account-screen .account-identity h2 button {
  max-width: 100%;
  overflow-wrap: anywhere
}
body.index-account-screen .account-identity p {
  margin: 0;
  color: #a7b0c0;
  font-size: .84rem;
  line-height: 1.35;
  overflow-wrap: anywhere
}
body.light-mode.index-account-screen .account-identity h2 {
  color: #172033
}
body.light-mode.index-account-screen .account-identity p {
  color: #58677d
}
body.index-account-screen .account-profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0
}
body.index-account-screen .account-profile-pills span,
body.index-account-screen .account-profile-pills button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: inherit;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
  background: #394252;
  box-shadow: none
}
body.index-account-screen .account-profile-pills button {
  cursor: pointer
}
body.index-account-screen .account-profile-pills .is-level {
  background: linear-gradient(135deg,#e50914,#ff3340)
}
body.index-account-screen .account-profile-pills .is-language {
  background: linear-gradient(135deg,#1d6fe8,#2aa7ff)
}
body.index-account-screen .account-profile-pills .is-device {
  background: linear-gradient(135deg,#344154,#1d2430)
}
body.index-account-screen .account-profile-pills .is-free {
  color: #1f2937;
  background: linear-gradient(135deg,#e5e7eb,#f8fafc)
}
body.index-account-screen .account-profile-pills .is-premium {
  color: #fff;
  background: linear-gradient(110deg,#a86a00 0%,#d49300 30%,#ffcf28 50%,#b97800 72%,#f6b800 100%);
  background-size: 220% 100%;
  text-shadow: 0 1px 2px rgba(92,54,0,.34);
  animation: account-sidebar-gold-shimmer 3.2s linear infinite
}
@keyframes account-sidebar-gold-shimmer {
  0% { background-position: 0% 50% }
  100% { background-position: 220% 50% }
}
body.index-account-screen .account-profile-card .leaderboard-launch-btn {
  --account-leaderboard-accent: var(--primary-color,#e50914);
  --account-leaderboard-border: rgba(229,9,20,.44);
  --account-leaderboard-surface: rgba(229,9,20,.08);
  width: 78px;
  min-width: 78px;
  min-height: 58px;
  height: auto;
  flex: 0 0 78px;
  padding: 7px 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 2px solid var(--account-leaderboard-border);
  border-radius: 16px;
  background: var(--account-leaderboard-surface);
  color: var(--account-leaderboard-accent);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(229,9,20,.12);
  letter-spacing: 0;
  text-transform: none;
  justify-self: end;
  transition: transform .2s var(--smooth),border-color .2s var(--smooth),background .2s var(--smooth),box-shadow .2s var(--smooth)
}
body.index-account-screen .account-profile-card .leaderboard-launch-btn--account .leaderboard-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  overflow: visible
}
body.index-account-screen .account-profile-card .leaderboard-launch-btn--account .leaderboard-launch-rank {
  min-height: 0;
  min-width: 0;
  padding: 0;
  display: block;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none
}
body.index-account-screen .account-profile-card .leaderboard-launch-btn:hover,
body.index-account-screen .account-profile-card .leaderboard-launch-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--account-leaderboard-accent);
  background: rgba(229,9,20,.14);
  box-shadow: 0 12px 28px rgba(229,9,20,.18);
  outline: 0
}
body.index-account-screen .account-profile-card .leaderboard-launch-btn:active {
  transform: translateY(0) scale(.97)
}
body.index-account-screen .account-profile-card .leaderboard-launch-btn:focus-visible {
  outline: 3px solid rgba(229,9,20,.3);
  outline-offset: 3px
}
body.index-account-screen .leaderboard-icon {
  overflow: visible
}
body.index-account-screen .leaderboard-icon-bar {
  fill: rgba(229,9,20,.24);
  stroke: currentColor;
  stroke-width: 2
}
body.index-account-screen .leaderboard-icon-arrow,
body.index-account-screen .leaderboard-icon-arrow-head {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round
}
body.index-account-screen .leaderboard-icon-star {
  fill: #f7c948;
  stroke: #9a7500;
  stroke-width: 1.2
}
body.light-mode.index-account-screen .account-profile-card .leaderboard-launch-btn {
  --account-leaderboard-border: rgba(229,9,20,.34);
  --account-leaderboard-surface: #fff5f6;
  box-shadow: 0 8px 20px rgba(24,39,75,.09)
}
body.light-mode.index-account-screen .account-profile-card .leaderboard-launch-btn--account .leaderboard-launch-rank {
  color: #172033
}
body.light-mode.index-account-screen .account-profile-card .leaderboard-launch-btn:hover,
body.light-mode.index-account-screen .account-profile-card .leaderboard-launch-btn:focus-visible {
  background: #ffe7ea;
  box-shadow: 0 12px 28px rgba(229,9,20,.13)
}
body.index-account-screen .account-detail-list {
  margin: 16px 0 0;
  display: grid;
  gap: 10px
}
body.index-account-screen .account-detail-list div {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: rgba(255,255,255,.045)
}
body.index-account-screen .account-detail-list dt {
  margin: 0 0 6px;
  color: #a7b0c0;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase
}
body.index-account-screen .account-detail-list dd {
  margin: 0
}
body.index-account-screen .account-teacher-link {
  width: 100%;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-align: left;
  overflow-wrap: anywhere
}
body.light-mode.index-account-screen .account-detail-list div {
  border-color: #d7e2f2;
  background: #f8fafc
}
body.light-mode.index-account-screen .account-detail-list dt {
  color: #66758b
}
body.light-mode.index-account-screen .account-teacher-link {
  color: #172033
}
body.index-account-screen .account-sidebar .account-connect-teacher-button {
  margin-top: 16px;
  font-size: .82rem
}
body.index-account-screen .account-sidebar .account-workspace-menu {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1)
}
body.light-mode.index-account-screen .account-sidebar .account-workspace-menu {
  border-top-color: #d7e2f2
}
body.index-account-screen .account-sidebar .account-workspace-menu button {
  font-size: .94rem;
  letter-spacing: 0
}
body.index-account-screen .account-sidebar .account-workspace-menu strong {
  min-width: 30px;
  min-height: 26px;
  font-size: .76rem
}
@media (max-width:1100px) {
  body.index-account-screen .account-home {
    width: min(100% - 32px,1180px)
  }
  body.index-account-screen .account-workspace {
    grid-template-columns: minmax(250px,286px) minmax(0,1fr);
    gap: 22px
  }
}
@media (max-width:860px) {
  body.index-account-screen .account-workspace {
    grid-template-columns: 1fr
  }
  body.index-account-screen .account-sidebar {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    transform: none !important
  }
}

/* --- STUDENT ACCOUNT FINAL WIDTH OVERRIDE --- */
body.index-account-screen .main-wrapper {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: clamp(18px,2.4vw,46px);
  padding-right: clamp(18px,2.4vw,46px);
  box-sizing: border-box
}
body.index-account-screen .account-home {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0
}
body.index-account-screen .account-workspace {
  grid-template-columns: 310px minmax(0,1fr);
  gap: clamp(22px,2vw,34px);
  width: 100%
}
body.index-account-screen .account-workspace-main {
  width: 100%;
  max-width: none;
  padding-left: clamp(28px,3vw,58px);
  padding-right: clamp(28px,3vw,58px);
  overflow: visible
}
body.index-account-screen .account-exercise-grid {
  grid-template-columns: repeat(auto-fill,minmax(230px,292px));
  gap: 18px;
  max-width: none
}
@media (min-width:1600px) {
  body.index-account-screen .account-exercise-grid {
    grid-template-columns: repeat(4,minmax(230px,292px))
  }
}
@media (min-width:1900px) {
  body.index-account-screen .account-exercise-grid {
    grid-template-columns: repeat(5,minmax(220px,292px))
  }
}
@media (max-width:1180px) {
  body.index-account-screen .main-wrapper {
    padding-left: 18px;
    padding-right: 18px
  }
  body.index-account-screen .account-workspace {
    grid-template-columns: 286px minmax(0,1fr)
  }
  body.index-account-screen .account-workspace-main {
    padding-left: 24px;
    padding-right: 24px
  }
}
@media (max-width:860px) {
  body.index-account-screen .account-workspace {
    grid-template-columns: 1fr
  }
  body.index-account-screen .account-exercise-grid {
    grid-template-columns: repeat(auto-fill,minmax(min(100%,230px),1fr))
  }
}

/* --- STUDENT ACCOUNT SUBTLE PROFILE PILLS --- */
body.index-account-screen .account-profile-pills {
  gap: 7px;
  margin-top: 14px
}
body.index-account-screen .account-profile-pills span,
body.index-account-screen .account-profile-pills button {
  min-height: 25px;
  padding: 6px 9px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .045em;
  line-height: 1;
  box-shadow: none;
  gap: 5px
}
body.index-account-screen .account-profile-pills .is-level {
  color: #fecaca;
  border-color: rgba(248,113,113,.28);
  background: rgba(127,29,29,.34)
}
body.index-account-screen .account-profile-pills .is-language {
  color: #bfdbfe;
  border-color: rgba(96,165,250,.28);
  background: rgba(30,64,175,.26)
}
body.index-account-screen .account-profile-pills .is-free {
  color: #d7dde8;
  border-color: rgba(148,163,184,.22);
  background: rgba(71,85,105,.22)
}
body.index-account-screen .account-profile-pills .is-premium {
  color: #fde68a;
  border-color: rgba(245,158,11,.36);
  background: linear-gradient(110deg,rgba(120,74,0,.58),rgba(180,119,9,.5),rgba(245,158,11,.38),rgba(120,74,0,.58));
  background-size: 220% 100%
}
body.index-account-screen .account-profile-pills .is-device {
  color: #cbd5e1;
  border-color: rgba(148,163,184,.22);
  background: rgba(30,41,59,.34)
}
body.index-account-screen .account-profile-pills .is-device-android {
  color: #bbf7d0;
  border-color: rgba(34,197,94,.28);
  background: rgba(20,83,45,.32)
}
body.index-account-screen .account-profile-pills .is-device-ios {
  color: #e0e7ff;
  border-color: rgba(129,140,248,.28);
  background: rgba(67,56,202,.26)
}
body.index-account-screen .account-profile-pills .is-device-web {
  color: #bae6fd;
  border-color: rgba(14,165,233,.25);
  background: rgba(12,74,110,.25)
}
body.index-account-screen .account-profile-pills button:hover,
body.index-account-screen .account-profile-pills button:focus-visible {
  transform: translateY(-1px);
  filter: none;
  box-shadow: 0 8px 18px rgba(15,23,42,.16);
  outline: 0
}
body.index-account-screen .account-profile-pills .is-level:hover,
body.index-account-screen .account-profile-pills .is-level:focus-visible {
  color: #fff;
  border-color: rgba(248,113,113,.52);
  background: rgba(185,28,28,.58)
}
body.index-account-screen .account-profile-pills .is-free:hover,
body.index-account-screen .account-profile-pills .is-free:focus-visible {
  color: #fff;
  border-color: rgba(148,163,184,.42);
  background: rgba(71,85,105,.38)
}
body.index-account-screen .account-profile-pills .is-device:hover,
body.index-account-screen .account-profile-pills .is-device:focus-visible {
  border-color: rgba(148,163,184,.45);
  background: rgba(30,41,59,.52)
}
body.index-account-screen .account-profile-pills .is-device-android:hover,
body.index-account-screen .account-profile-pills .is-device-android:focus-visible {
  color: #dcfce7;
  border-color: rgba(34,197,94,.5);
  background: rgba(20,83,45,.5)
}
body.index-account-screen .account-profile-pills .is-device-ios:hover,
body.index-account-screen .account-profile-pills .is-device-ios:focus-visible {
  color: #eef2ff;
  border-color: rgba(129,140,248,.5);
  background: rgba(67,56,202,.42)
}
body.index-account-screen .account-profile-pills .is-device-web:hover,
body.index-account-screen .account-profile-pills .is-device-web:focus-visible {
  color: #e0f2fe;
  border-color: rgba(14,165,233,.48);
  background: rgba(12,74,110,.42)
}
body.index-account-screen .account-device-pill-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round
}
body.light-mode.index-account-screen .account-profile-pills .is-level {
  color: #991b1b;
  border-color: #fecaca;
  background: #fee2e2
}
body.light-mode.index-account-screen .account-profile-pills .is-language {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #dbeafe
}
body.light-mode.index-account-screen .account-profile-pills .is-free {
  color: #475569;
  border-color: #e2e8f0;
  background: #f1f5f9
}
body.light-mode.index-account-screen .account-profile-pills .is-device-android {
  color: #166534;
  border-color: #bbf7d0;
  background: #dcfce7
}
body.light-mode.index-account-screen .account-profile-pills .is-device-ios {
  color: #4338ca;
  border-color: #c7d2fe;
  background: #eef2ff
}
body.light-mode.index-account-screen .account-profile-pills .is-device-web {
  color: #0369a1;
  border-color: #bae6fd;
  background: #e0f2fe
}

/* --- STUDENT ACCOUNT SIDEBAR WIDTH TUNE --- */
body.index-account-screen .account-workspace {
  grid-template-columns: 340px minmax(0,1fr)
}
@media (max-width:1180px) {
  body.index-account-screen .account-workspace {
    grid-template-columns: 315px minmax(0,1fr)
  }
}
@media (max-width:860px) {
  body.index-account-screen .account-workspace {
    grid-template-columns: 1fr
  }
}

/* --- STUDENT ACCOUNT LOGGED OUT PANEL POSITION --- */
body.index-account-screen .account-login-panel {
  margin-top: clamp(32px, 5vh, 72px);
  border-radius: 18px;
  overflow: hidden
}
@media (max-width:768px) {
  body.index-account-screen .account-login-panel {
    margin-top: 28px
  }
}

/* --- PREMIUM SHEEN FROM LEARNER APP --- */
body.index-account-screen {
  --account-premium-gold-gradient: linear-gradient(135deg,#a16207,#eab308)
}
body.index-account-screen .account-reading-card.is-premium {
  border-color: rgba(234,179,8,.6);
  box-shadow: 0 18px 30px rgba(146,100,10,.18), 0 0 0 1px rgba(234,179,8,.2)
}
body.index-account-screen .account-reading-card.is-premium .account-reading-card-tags span,
body.index-account-screen .account-reading-card.is-premium .account-reading-card-action,
body.index-account-screen .account-reading-card.is-premium .account-reading-new-badge,
body.index-account-screen .account-profile-pills .is-premium {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--account-premium-gold-gradient);
  background-size: auto;
  animation: none;
  border-color: rgba(234,179,8,.55);
  box-shadow: 0 10px 24px rgba(234,179,8,.3)
}
body.index-account-screen .account-reading-card.is-premium .account-reading-card-tags span,
body.index-account-screen .account-reading-card.is-premium .account-reading-card-action,
body.index-account-screen .account-reading-card.is-premium .account-reading-new-badge {
  color: #fff
}
body.index-account-screen .account-profile-pills .is-premium {
  color: #1f2937;
  text-shadow: none
}
body.index-account-screen .account-reading-card.is-premium .account-reading-card-tags span::after,
body.index-account-screen .account-reading-card.is-premium .account-reading-card-action::after,
body.index-account-screen .account-reading-card.is-premium .account-reading-new-badge::after,
body.index-account-screen .account-profile-pills .is-premium::after {
  content: '';
  position: absolute;
  top: -140%;
  left: -50%;
  width: 36%;
  height: 280%;
  background: linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.52) 50%,rgba(255,255,255,0) 100%);
  transform: skewX(-22deg) translateX(-220%);
  animation: account-premium-sheen-sweep 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2
}
@keyframes account-premium-sheen-sweep {
  0% { transform: skewX(-22deg) translateX(-220%) }
  58% { transform: skewX(-22deg) translateX(-220%) }
  100% { transform: skewX(-22deg) translateX(560%) }
}
@media (prefers-reduced-motion: reduce) {
  body.index-account-screen .account-reading-card.is-premium .account-reading-card-tags span::after,
  body.index-account-screen .account-reading-card.is-premium .account-reading-card-action::after,
  body.index-account-screen .account-reading-card.is-premium .account-reading-new-badge::after,
  body.index-account-screen .account-profile-pills .is-premium::after {
    animation: none;
    opacity: 0
  }
}

/* --- HEADER ACCOUNT POPOVER DETAILS --- */
.user-session-tooltip-actions {
  display: grid;
  gap: 8px
}
.user-session-tooltip-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  background: #e50914;
  box-sizing: border-box;
  transition: transform .2s var(--smooth),box-shadow .2s var(--smooth),filter .2s var(--smooth)
}
.user-session-tooltip-account-link:focus-visible,
.user-session-tooltip-account-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(229,9,20,.28);
  filter: brightness(1.04);
  outline: 0
}
.user-session-tooltip-account-link.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none
}
.user-session-tooltip-account-link.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: .7s linear infinite user-session-spin
}
.user-session-tooltip-meta {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}
body.light-mode .user-session-tooltip-account-link {
  color: #fff
}

/* --- STUDENT ACCOUNT VOCAB CARD WIDTH TUNE --- */
body.index-account-screen .account-vocabulary-view .vocab-grid-container {
  --account-vocab-columns: 3
}
body.index-account-screen .account-vocabulary-view .account-vocab-column,
body.index-account-screen .account-vocabulary-view .vocab-item-card {
  min-width: 0
}
body.index-account-screen .account-vocabulary-view .vocab-card-header-main {
  overflow-wrap: break-word
}
@media (min-width:1800px) {
  body.index-account-screen .account-vocabulary-view .vocab-grid-container {
    --account-vocab-columns: 4
  }
}
@media (max-width:1250px) {
  body.index-account-screen .account-vocabulary-view .vocab-grid-container {
    --account-vocab-columns: 2
  }
}
@media (max-width:760px) {
  body.index-account-screen .account-vocabulary-view .vocab-grid-container {
    --account-vocab-columns: 1
  }
}

/* --- STUDENT ACCOUNT FULL WIDTH UTILIZATION --- */
body.index-account-screen .main-wrapper {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: clamp(18px,2.4vw,46px);
  padding-right: clamp(18px,2.4vw,46px);
  box-sizing: border-box
}
body.index-account-screen .account-home {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0
}
body.index-account-screen .account-workspace {
  grid-template-columns: 310px minmax(0,1fr);
  gap: clamp(22px,2vw,34px);
  width: 100%
}
body.index-account-screen .account-workspace-main {
  width: 100%;
  max-width: none;
  padding-left: clamp(28px,3vw,58px);
  padding-right: clamp(28px,3vw,58px);
  overflow: visible
}
body.index-account-screen .account-exercise-grid {
  grid-template-columns: repeat(auto-fill,minmax(230px,292px));
  gap: 18px;
  max-width: none
}
@media (min-width:1600px) {
  body.index-account-screen .account-exercise-grid {
    grid-template-columns: repeat(4,minmax(230px,292px))
  }
}
@media (min-width:1900px) {
  body.index-account-screen .account-exercise-grid {
    grid-template-columns: repeat(5,minmax(220px,292px))
  }
}
@media (max-width:1180px) {
  body.index-account-screen .main-wrapper {
    padding-left: 18px;
    padding-right: 18px
  }
  body.index-account-screen .account-workspace {
    grid-template-columns: 286px minmax(0,1fr)
  }
  body.index-account-screen .account-workspace-main {
    padding-left: 24px;
    padding-right: 24px
  }
}
@media (max-width:860px) {
  body.index-account-screen .account-workspace {
    grid-template-columns: 1fr
  }
  body.index-account-screen .account-exercise-grid {
    grid-template-columns: repeat(auto-fill,minmax(min(100%,230px),1fr))
  }
}
@media (prefers-reduced-motion:reduce) {
  body.index-account-screen .account-profile-pills .is-premium {
    animation: none
  }
}

/* --- STUDENT ACCOUNT LEFT ALIGN FIX --- */
body.index-account-screen {
  overflow-x: hidden
}
body.index-account-screen .account-home {
  width: auto;
  max-width: none;
  margin: -30px clamp(16px,2vw,32px) 72px;
  box-sizing: border-box
}
body.index-account-screen .account-workspace {
  width: 100%;
  grid-template-columns: minmax(340px,400px) minmax(0,1fr);
  gap: clamp(26px,2.8vw,48px)
}
body.index-account-screen .account-workspace-main {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding-left: clamp(24px,2.6vw,48px);
  padding-right: clamp(24px,2.6vw,48px)
}
body.index-account-screen .account-content-section,
body.index-account-screen .account-exercise-filter-panel,
body.index-account-screen .account-section-heading {
  min-width: 0;
  max-width: 100%
}
body.index-account-screen .account-section-heading > span {
  flex: 0 1 auto;
  min-width: 0;
  text-align: right
}
body.index-account-screen .account-exercise-grid {
  max-width: 100%;
  grid-template-columns: repeat(3,minmax(0,292px));
  justify-content: start
}
@media (max-width:1280px) {
  body.index-account-screen .account-workspace {
    grid-template-columns: minmax(300px,340px) minmax(0,1fr);
    gap: 24px
  }
  body.index-account-screen .account-exercise-grid {
    grid-template-columns: repeat(2,minmax(0,292px))
  }
}
@media (max-width:860px) {
  body.index-account-screen .account-home {
    margin-left: 14px;
    margin-right: 14px
  }
  body.index-account-screen .account-workspace {
    grid-template-columns: 1fr
  }
  body.index-account-screen .account-exercise-grid {
    grid-template-columns: repeat(auto-fill,minmax(min(100%,230px),1fr))
  }
}

/* --- STUDENT ACCOUNT COMPACT PILLS --- */
body.index-account-screen .account-profile-pills {
  gap: 6px;
  margin-top: 14px
}
body.index-account-screen .account-profile-pills span,
body.index-account-screen .account-profile-pills button {
  min-height: 24px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(15,23,42,.08);
  transition: transform .18s var(--smooth),filter .18s var(--smooth),background-color .18s var(--smooth),border-color .18s var(--smooth),box-shadow .18s var(--smooth)
}
body.index-account-screen .account-profile-pills .is-level {
  color: #fff;
  background: linear-gradient(135deg,#e50914,#ff3b46)
}
body.index-account-screen .account-profile-pills .is-language {
  color: #fff;
  background: linear-gradient(135deg,#1769e8,#20a4f3)
}
body.index-account-screen .account-profile-pills .is-free {
  color: #273142;
  background: linear-gradient(135deg,#f4f6f9,#e3e8ef)
}
body.index-account-screen .account-profile-pills .is-device {
  color: #fff;
  background: linear-gradient(135deg,#273142,#111827)
}
body.index-account-screen .account-profile-pills .is-premium {
  color: #fff;
  background: linear-gradient(110deg,#a86a00 0%,#d49300 30%,#ffcf28 50%,#b97800 72%,#f6b800 100%);
  background-size: 220% 100%
}
body.index-account-screen .account-profile-pills button:hover,
body.index-account-screen .account-profile-pills button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 9px 18px rgba(15,23,42,.16);
  outline: 0
}
body.index-account-screen .account-profile-pills .is-level:hover,
body.index-account-screen .account-profile-pills .is-level:focus-visible {
  border-color: rgba(255,255,255,.34);
  background: linear-gradient(135deg,#ff1f2c,#ff5962)
}
body.index-account-screen .account-profile-pills .is-free:hover,
body.index-account-screen .account-profile-pills .is-free:focus-visible {
  color: #e50914;
  border-color: rgba(229,9,20,.34);
  background: #fff
}
body.index-account-screen .account-profile-pills .is-device:hover,
body.index-account-screen .account-profile-pills .is-device:focus-visible {
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(135deg,#3b4657,#1f2937)
}
body.index-account-screen .account-profile-pills .is-premium:hover,
body.index-account-screen .account-profile-pills .is-premium:focus-visible {
  filter: brightness(1.1) saturate(1.08)
}
body.light-mode.index-account-screen .account-profile-pills span,
body.light-mode.index-account-screen .account-profile-pills button {
  box-shadow: 0 6px 14px rgba(24,39,75,.08)
}

/* --- STUDENT ACCOUNT SIDEBAR GRID TRIAL --- */
body.index-account-screen {
  --account-line: rgba(255,255,255,.12);
  --account-surface: #1b1b1d;
  --account-shadow: 0 24px 70px rgba(0,0,0,.34)
}
body.light-mode.index-account-screen {
  --account-line: #d7e2f2;
  --account-surface: #fff;
  --account-shadow: 0 24px 62px rgba(24,39,75,.14)
}
body.index-account-screen .account-workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: start
}
body.index-account-screen .account-sidebar {
  position: sticky;
  top: 18px;
  transform: translateY(var(--account-sidebar-y, 0));
  border: 1px solid var(--account-line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), var(--account-surface);
  box-shadow: var(--account-shadow);
  transition: transform 0.2s ease-out;
  z-index: 10
}
body.light-mode.index-account-screen .account-sidebar {
  background: linear-gradient(180deg, #ffffff, #f7f9fc)
}
@media (max-width:860px) {
  body.index-account-screen .account-workspace {
    grid-template-columns: 1fr
  }
  body.index-account-screen .account-sidebar {
    position: relative;
    top: auto;
    transform: none !important
  }
}

/* --- STUDENT ACCOUNT MENU BORDER STABILITY --- */
body.index-account-screen .account-sidebar .account-workspace-menu button,
body.index-account-screen .account-sidebar .account-exercise-submenu button {
  box-sizing: border-box;
  transform: none
}
body.index-account-screen .account-sidebar .account-workspace-menu button.is-active,
body.index-account-screen .account-sidebar .account-workspace-menu button:focus-visible,
body.index-account-screen .account-sidebar .account-workspace-menu button:hover,
body.index-account-screen .account-sidebar .account-exercise-submenu button.is-active,
body.index-account-screen .account-sidebar .account-exercise-submenu button:focus-visible,
body.index-account-screen .account-sidebar .account-exercise-submenu button:hover {
  transform: none
}
body.index-account-screen .account-sidebar .account-workspace-menu,
body.index-account-screen .account-sidebar .account-exercise-submenu {
  overflow: visible
}

/* --- STUDENT ACCOUNT SURFACE AND HOVER POLISH --- */
body.index-account-screen .account-workspace-main {
  border: 1px solid var(--account-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), var(--account-surface);
  box-shadow: var(--account-shadow)
}
body.light-mode.index-account-screen .account-workspace-main {
  background: linear-gradient(180deg, #ffffff, #f7f9fc)
}
body.index-account-screen .account-reading-card {
  transition: transform .22s var(--smooth), box-shadow .22s var(--smooth), filter .22s var(--smooth)
}
body.index-account-screen .account-reading-card:hover,
body.index-account-screen .account-reading-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(0,0,0,.32);
  filter: brightness(1.03);
  outline: 0
}
body.index-account-screen .account-profile-pills .account-device-pill {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  aspect-ratio: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center
}
body.index-account-screen .account-profile-pills .account-device-pill span {
  display: none
}
body.index-account-screen .account-profile-pills .account-device-pill-icon {
  width: 17px;
  height: 17px
}

/* --- STUDENT ACCOUNT IDENTITY TEXT FIT --- */
body.index-account-screen .account-profile-card,
body.index-account-screen .account-identity,
body.index-account-screen .account-identity h2,
body.index-account-screen .account-identity p {
  min-width: 0
}
body.index-account-screen .account-identity h2 {
  white-space: nowrap
}
body.index-account-screen .account-identity h2 button {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1.18
}
body.index-account-screen .account-identity p {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal
}

/* --- STUDENT SETTINGS MODAL --- */
body.index-account-screen .account-language-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0
}
body.index-account-screen .header {
  z-index: 10
}
body.index-account-screen .account-language-toggle {
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 0;
  transition: opacity .2s var(--smooth),transform .2s var(--smooth)
}
body.index-account-screen .account-language-toggle:hover,
body.index-account-screen .account-language-toggle:focus-visible,
body.index-account-screen .account-language-menu.is-open .account-language-toggle {
  background: transparent;
  opacity: .86;
  transform: scale(1.04);
  outline: 0
}
body.index-account-screen .account-language-flag {
  width: 27px;
  height: 18px;
  display: block;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22)
}
body.index-account-screen .account-language-options[hidden] {
  display: none
}
body.index-account-screen .account-language-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: max-content;
  min-width: 52px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  display: grid;
  gap: 3px;
  background: rgba(20,20,22,.98);
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
  z-index: 320
}
body.index-account-screen .account-language-options [data-account-ui-language] {
  position: relative;
  width: 100%;
  min-height: 34px;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8edf6;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: none
}
body.index-account-screen .account-language-options [data-account-ui-language] img {
  width: 27px;
  height: 18px;
  display: block;
  border-radius: 3px;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18)
}
body.index-account-screen .account-language-options [data-account-ui-language]:hover,
body.index-account-screen .account-language-options [data-account-ui-language]:focus-visible,
body.index-account-screen .account-language-options [data-account-ui-language].is-selected {
  color: #fff;
  background: rgba(42,167,255,.16);
  outline: 0
}
body.light-mode.index-account-screen .account-language-toggle {
  background: transparent
}
body.light-mode.index-account-screen .account-language-toggle:hover,
body.light-mode.index-account-screen .account-language-toggle:focus-visible,
body.light-mode.index-account-screen .account-language-menu.is-open .account-language-toggle {
  background: transparent
}
body.light-mode.index-account-screen .account-language-options {
  border-color: #d7e2f2;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 44px rgba(24,39,75,.18)
}
body.light-mode.index-account-screen .account-language-options [data-account-ui-language] {
  color: #334155
}
body.light-mode.index-account-screen .account-language-options [data-account-ui-language]:hover,
body.light-mode.index-account-screen .account-language-options [data-account-ui-language]:focus-visible,
body.light-mode.index-account-screen .account-language-options [data-account-ui-language].is-selected {
  color: #1769e8;
  background: #eef6ff
}
body.index-account-screen .account-profile-actions {
  width: 78px;
  display: grid;
  gap: 7px;
  justify-self: end
}
body.index-account-screen .account-profile-actions .leaderboard-launch-btn {
  justify-self: stretch
}
body.index-account-screen .account-settings-button {
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #e8edf6;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font: inherit;
  font-size: .67rem;
  font-weight: 850;
  line-height: 1;
  transition: color .2s var(--smooth),background .2s var(--smooth),border-color .2s var(--smooth),transform .2s var(--smooth)
}
body.index-account-screen .account-settings-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s var(--smooth)
}
body.index-account-screen .account-settings-button:hover,
body.index-account-screen .account-settings-button:focus-visible {
  color: #fff;
  border-color: rgba(42,167,255,.56);
  background: rgba(42,167,255,.14);
  transform: translateY(-1px);
  outline: 0
}
body.index-account-screen .account-settings-button:hover svg,
body.index-account-screen .account-settings-button:focus-visible svg {
  transform: rotate(90deg)
}
body.light-mode.index-account-screen .account-settings-button {
  color: #334155;
  border-color: #d7e2f2;
  background: #f8fafc
}
body.light-mode.index-account-screen .account-settings-button:hover,
body.light-mode.index-account-screen .account-settings-button:focus-visible {
  color: #1769e8;
  border-color: rgba(23,105,232,.34);
  background: #eef6ff
}
body.index-account-screen .account-settings-dialog {
  width: min(520px,100%);
  border-radius: 20px;
  padding: 28px
}
body.index-account-screen .account-modal-dialog {
  max-height: min(620px,calc(100dvh - 72px));
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable
}
body.index-account-screen .account-settings-dialog h3 {
  color: var(--primary-color,#e50914)
}
body.index-account-screen .account-settings-intro {
  margin: 0 38px 20px 0
}
body.index-account-screen .account-settings-form {
  display: grid;
  gap: 16px
}
body.index-account-screen .account-settings-section {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  background: rgba(255,255,255,.035)
}
body.light-mode.index-account-screen .account-settings-section {
  border-color: #dbe5f1;
  background: #f8fafc
}
body.index-account-screen .account-settings-section h4 {
  margin: 0 0 16px;
  padding-bottom: 9px;
  border-bottom: 2px solid rgba(229,9,20,.2);
  color: var(--primary-color,#e50914);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase
}
body.light-mode.index-account-screen .account-settings-section h4 {
  color: var(--primary-color,#e50914);
  border-bottom-color: rgba(229,9,20,.16)
}
body.index-account-screen .account-settings-section .form-group:last-child {
  margin-bottom: 0
}
body.index-account-screen .account-settings-section select {
  width: 100%;
  min-height: 46px;
  padding: 11px 42px 11px 13px;
  border-radius: 12px;
  appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,#92a0b5 50%),linear-gradient(135deg,#92a0b5 50%,transparent 50%);
  background-position: calc(100% - 18px) 20px,calc(100% - 12px) 20px;
  background-size: 6px 6px,6px 6px;
  background-repeat: no-repeat
}
body.index-account-screen .account-settings-section select:focus-visible {
  border-color: #2aa7ff;
  box-shadow: 0 0 0 3px rgba(42,167,255,.16);
  outline: 0
}
body.index-account-screen .account-settings-toggle-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}
body.index-account-screen .account-settings-toggle-row > span {
  min-width: 0;
  display: grid;
  gap: 4px
}
body.index-account-screen .account-settings-toggle-row strong {
  color: #fff;
  font-size: .93rem
}
body.light-mode.index-account-screen .account-settings-toggle-row strong {
  color: #172033
}
body.index-account-screen .account-settings-toggle-row small {
  color: #99a5b8;
  font-size: .76rem;
  line-height: 1.35
}
body.light-mode.index-account-screen .account-settings-toggle-row small {
  color: #66758a
}
body.index-account-screen .account-settings-switch {
  position: relative;
  width: 50px;
  height: 28px;
  flex: 0 0 50px;
  display: inline-block
}
body.index-account-screen .account-settings-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0
}
body.index-account-screen .account-settings-switch > span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #4b5563;
  cursor: pointer;
  transition: background .25s ease,box-shadow .25s ease
}
body.index-account-screen .account-settings-switch > span::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
  transition: transform .25s var(--smooth)
}
body.index-account-screen .account-settings-switch input:checked + span {
  background: var(--primary-color,#e50914)
}
body.index-account-screen .account-settings-switch input:checked + span::before {
  transform: translateX(22px)
}
body.index-account-screen .account-settings-switch input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(229,9,20,.26)
}
body.index-account-screen .account-settings-switch.is-disabled {
  opacity: .48
}
body.index-account-screen .account-settings-switch.is-disabled > span {
  cursor: not-allowed
}
body.index-account-screen .account-settings-form.is-saving .account-settings-section {
  opacity: .68
}
body.index-account-screen .account-settings-form .account-modal-message {
  min-height: 20px;
  margin: 0
}
@media (max-width:560px) {
  body.index-account-screen .account-settings-dialog {
    padding: 24px 18px;
    border-radius: 18px
  }
  body.index-account-screen .account-modal-dialog {
    max-height: calc(100dvh - 48px)
  }
  body.index-account-screen .account-settings-section {
    padding: 15px
  }
}
@media (prefers-reduced-motion:reduce) {
  body.index-account-screen .account-settings-button svg,
  body.index-account-screen .account-settings-switch > span,
  body.index-account-screen .account-settings-switch > span::before {
    transition: none
  }
}

/* --- STUDENT ACCOUNT SINGLE RIGHT HEADING --- */
body.index-account-screen .account-workspace-header {
  margin-bottom: 14px
}
body.index-account-screen .account-workspace-header p {
  display: none
}
body.index-account-screen .account-content-section {
  margin-top: 0
}
body.index-account-screen .account-section-heading {
  margin-bottom: 14px;
  align-items: end
}
body.index-account-screen .account-section-heading > div {
  min-width: 0
}
body.index-account-screen .account-section-heading h3 {
  display: none
}
body.index-account-screen .account-section-heading p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35
}

/* --- STUDENT ACCOUNT SIDEBAR PAGE SCROLL --- */
body.index-account-screen .account-sidebar {
  max-height: none;
  overflow: visible
}
body.index-account-screen .account-sidebar::-webkit-scrollbar {
  display: none
}

/* --- STUDENT ACCOUNT SIDEBAR ALIGNMENT TUNE --- */
body.index-account-screen .account-workspace {
  grid-template-columns: minmax(330px, 350px) minmax(0, 1fr);
  gap: clamp(16px, 1.4vw, 24px)
}
body.index-account-screen .account-sidebar {
  top: 0;
  transform: none !important
}
@media (max-width:1280px) {
  body.index-account-screen .account-workspace {
    grid-template-columns: minmax(310px, 330px) minmax(0, 1fr);
    gap: 18px
  }
}
@media (max-width:860px) {
  body.index-account-screen .account-workspace {
    grid-template-columns: 1fr
  }
}

/* --- STUDENT ACCOUNT BALANCED EXERCISE ROWS --- */
body.index-account-screen .account-exercise-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
  justify-items: center;
  justify-content: center;
  gap: 18px;
  padding-left: clamp(10px,1.4vw,24px);
  padding-right: clamp(10px,1.4vw,24px);
  box-sizing: border-box
}
body.index-account-screen .account-reading-card.is-app-locked:hover,
body.index-account-screen .account-reading-card.is-app-locked:focus-visible {
  transform: none;
  filter: saturate(.82);
  box-shadow: 0 18px 28px rgba(0,0,0,.24)
}
@media (max-width:860px) {
  body.index-account-screen .account-exercise-grid {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),292px));
    justify-content: center
  }
}
@media (max-width:560px) {
  body.index-account-screen .account-exercise-grid {
    grid-template-columns: minmax(0,292px)
  }
}
