.wto-account-page main {
  width: calc(100% - 2rem);
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.wto-account-page .wto-learning-intro { max-width: 680px; margin: 0 auto 2.25rem; text-align: center; }
.wto-account-page .wto-learning-intro h1 { margin: .35rem 0 .7rem; }
.wto-account-page .wto-learning-intro p:last-child { margin: 0; color: var(--wto-muted); }
.wto-account-notice { max-width: 680px; margin: -1rem auto 1.5rem; padding: .8rem 1rem; border: 1px solid var(--wto-accent); border-radius: .7rem; color: var(--wto-text); background: color-mix(in srgb, var(--wto-accent) 12%, transparent); text-align: center; }
.wto-account-error { border-color: #cf5c5c; background: color-mix(in srgb, #cf5c5c 12%, transparent); }

.wto-account-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.wto-account-forms form, .wto-account-results { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid color-mix(in srgb, var(--wto-muted) 55%, transparent); border-radius: 1rem; background: color-mix(in srgb, var(--wto-bg) 84%, #000); }
.wto-account-forms h2, .wto-account-results h2 { margin: 0 0 1.2rem; font-size: 1.35rem; color: var(--wto-text); }
.wto-account-forms label { display: grid; gap: .4rem; margin: 0 0 1rem; color: var(--wto-muted); font-size: .9rem; }
.wto-account-forms label small { color: var(--wto-muted); }
.wto-account-forms input { width: 100%; min-height: 2.7rem; box-sizing: border-box; padding: .55rem .7rem; border: 1px solid color-mix(in srgb, var(--wto-muted) 65%, transparent); border-radius: .55rem; color: var(--wto-text); background: color-mix(in srgb, var(--wto-bg) 76%, #000); font: inherit; }
.wto-account-forms button, .wto-account-logout button { min-height: 2.7rem; padding: .55rem 1rem; border: 0; border-radius: .55rem; color: var(--wto-bg); background: var(--wto-accent); font: inherit; font-weight: 700; cursor: pointer; }
.wto-account-forms a { display: inline-block; margin-top: 1rem; color: var(--wto-accent); }
.wto-account-forms form button + a { margin-left: 1.25rem; }
.wto-account-recovery { grid-template-columns: minmax(0, 480px); justify-content: center; }
.wto-account-oauth { margin: 1.5rem 0 0; text-align: center; color: var(--wto-muted); font-size: .9rem; }
.wto-account-social { margin: 1.1rem 0 0; text-align: center; }
.wto-account-social a { display: inline-flex; align-items: center; min-height: 2.7rem; padding: 0 1.15rem; border: 1px solid color-mix(in srgb, var(--wto-muted) 60%, transparent); border-radius: .55rem; color: var(--wto-text); background: color-mix(in srgb, var(--wto-bg) 80%, #000); font-weight: 700; text-decoration: none; }
.wto-account-social a:hover { border-color: var(--wto-accent); color: var(--wto-accent); }
.wto-google-login { display: flex; align-items: center; justify-content: center; gap: .65rem; width: min(100%, 350px); box-sizing: border-box; height: 3.4rem; padding: 0; margin: .15rem auto 1.35rem; border: 1px solid #d6dbe3; border-radius: .7rem; color: #30343a !important; background: #fff; box-shadow: 0 4px 12px #00000012; font-size: 0; font-weight: 700; letter-spacing: 0; line-height: 1; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.wto-google-login:hover { border-color: #9db7d5; background: #fff; box-shadow: 0 7px 18px #0000001c; color: #202124 !important; transform: translateY(-1px); }
.wto-google-login span { display: flex; align-items: center; justify-content: center; height: 1.45rem; background: conic-gradient(from -42deg, #4285f4 0 25%, #34a853 0 46%, #fbbc05 0 69%, #ea4335 0 86%, #4285f4 0); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: Arial, sans-serif; font-size: 1.45rem; font-weight: 800; line-height: 1; }
.wto-google-login::after { content: 'Continue with Google'; font-size: 1rem; line-height: 1; }
.wto-social-divider { display: flex; align-items: center; gap: .75rem; width: min(100%, 390px); margin: 0 auto 1.25rem; color: var(--wto-muted); font-size: .74rem; letter-spacing: .03em; }
.wto-social-divider::before, .wto-social-divider::after { flex: 1; height: 1px; background: color-mix(in srgb, var(--wto-muted) 42%, transparent); content: ''; }
.wto-facebook-login { display: flex; align-items: center; justify-content: center; gap: .65rem; width: min(100%, 350px); height: 3.15rem; box-sizing: border-box; margin: -.55rem auto 1rem; border-radius: .7rem; background: #1877f2; box-shadow: 0 4px 12px #1877f240; color: #fff !important; font-size: 1rem; font-weight: 700; line-height: 1; text-decoration: none; transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
.wto-facebook-login:hover { background: #166fe5; box-shadow: 0 7px 18px #1877f255; color: #fff !important; transform: translateY(-1px); }
.wto-facebook-login span { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; color: #1877f2; font-family: Arial, sans-serif; font-size: 1.15rem; font-weight: 900; line-height: 1.25rem; }
.wto-facebook-login b { font-size: 1rem; line-height: 1; }
.wto-google-login, .wto-facebook-login { display: flex !important; align-items: center !important; justify-content: center !important; }
.wto-google-login::after { content: none !important; }
.wto-google-login .wto-social-icon, .wto-facebook-login .wto-social-icon { position: static !important; display: inline-flex !important; flex: 0 0 auto !important; align-items: center !important; justify-content: center !important; margin: 0 !important; padding: 0 !important; transform: none !important; }
.wto-google-login .wto-social-label, .wto-facebook-login .wto-social-label { display: inline-block !important; flex: 0 0 auto !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; font-family: inherit !important; font-size: 1rem !important; font-weight: 700; line-height: 1 !important; }
.wto-google-login .wto-social-label { color: #30343a !important; }
.wto-facebook-login .wto-social-label { color: #fff !important; }
.wto-google-login .wto-google-icon { height: 1.45rem; background: conic-gradient(from -42deg, #4285f4 0 25%, #34a853 0 46%, #fbbc05 0 69%, #ea4335 0 86%, #4285f4 0); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: Arial, sans-serif; font-size: 1.45rem; font-weight: 800; }
.wto-facebook-login .wto-facebook-icon { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; color: #1877f2; font-family: Arial, sans-serif; font-size: 1.15rem; font-weight: 900; line-height: 1.25rem !important; }

.wto-account-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1.1rem; }
.wto-account-summary div { padding: 1.1rem; border: 1px solid color-mix(in srgb, var(--wto-muted) 55%, transparent); border-radius: .8rem; background: color-mix(in srgb, var(--wto-bg) 84%, #000); }
.wto-account-summary span { display: block; color: var(--wto-muted); font-size: .83rem; }
.wto-account-summary strong { display: block; margin-top: .35rem; color: var(--wto-accent); font-size: 1.65rem; }
.wto-account-result-list { display: grid; gap: .65rem; }
.wto-account-result-list div { display: grid; grid-template-columns: 130px 1fr auto; gap: .8rem; align-items: center; padding: .85rem 0; border-top: 1px solid color-mix(in srgb, var(--wto-muted) 40%, transparent); }
.wto-account-result-list strong { color: var(--wto-accent); }
.wto-account-result-list span, .wto-account-result-list small { color: var(--wto-muted); }
.wto-account-logout { margin-top: 1.2rem; text-align: center; }
.wto-account-logout button { color: var(--wto-text); background: transparent; border: 1px solid var(--wto-muted); }
.wto-account-profile-settings { display: grid; grid-template-columns: 1fr auto; gap: .8rem 1.1rem; align-items: end; margin-top: 1.1rem; padding: 1.1rem 1.25rem; border: 1px solid color-mix(in srgb, var(--wto-muted) 55%, transparent); border-radius: .8rem; background: color-mix(in srgb, var(--wto-bg) 84%, #000); }
.wto-account-profile-settings h2, .wto-account-profile-settings p { grid-column: 1 / -1; margin: 0; }
.wto-account-profile-settings h2 { font-size: 1.08rem; color: var(--wto-text); }
.wto-account-profile-settings p { color: var(--wto-muted); font-size: .88rem; }
.wto-account-profile-settings label { display: grid; gap: .35rem; color: var(--wto-muted); font-size: .88rem; }
.wto-account-profile-settings select { min-height: 2.55rem; padding: .45rem 2rem .45rem .65rem; border: 1px solid color-mix(in srgb, var(--wto-muted) 65%, transparent); border-radius: .55rem; color: var(--wto-text); background: color-mix(in srgb, var(--wto-bg) 76%, #000); font: inherit; }
.wto-account-profile-settings button { min-height: 2.55rem; padding: .5rem .9rem; border: 0; border-radius: .55rem; color: var(--wto-bg); background: var(--wto-accent); font: inherit; font-weight: 700; cursor: pointer; }
.wto-account-public-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.1rem 0 0; padding: .8rem 1rem; border: 1px solid color-mix(in srgb, var(--wto-accent) 55%, transparent); border-radius: .7rem; background: color-mix(in srgb, var(--wto-accent) 9%, transparent); color: var(--wto-muted); }
.wto-account-public-link a, .wto-profile-home-link { color: var(--wto-accent); font-weight: 700; text-decoration: none; }
.wto-public-profile-card { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 auto 1.1rem; padding: 1.25rem; border: 1px solid color-mix(in srgb, var(--wto-muted) 55%, transparent); border-radius: .9rem; background: color-mix(in srgb, var(--wto-bg) 84%, #000); text-align: left; }
.wto-public-profile-card h2, .wto-public-profile-card p { margin: 0; }
.wto-public-profile-card p { margin-top: .25rem; color: var(--wto-muted); }
.wto-profile-avatar { display: grid; width: 3.4rem; height: 3.4rem; place-items: center; border-radius: 50%; color: var(--wto-bg); background: var(--wto-accent); font-size: 1.45rem; font-weight: 800; }
.wto-profile-unavailable { padding-top: 2rem; }
.wto-profile-home-link { display: inline-block; margin-top: 1rem; }

@media (max-width: 700px) {
  .wto-account-forms, .wto-account-summary { grid-template-columns: 1fr; }
  .wto-account-profile-settings { grid-template-columns: 1fr; }
  .wto-account-public-link { align-items: flex-start; flex-direction: column; }
  .wto-account-result-list div { grid-template-columns: 1fr; gap: .25rem; }
}
