:root { --blue: #294f92; --blue-deep: #203f78; --blue-tint: #edf3fc; --blue-focus: #5a82c4; }
:root { font-family: Inter, system-ui, sans-serif; color: #183452; background: #f4f7fb; line-height: 1.5; }
* { box-sizing: border-box; } [hidden] { display: none !important; }
body { margin: 0; } header { padding: 22px 6vw; background: var(--blue); color: white; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
header > span { font-size: 11px; letter-spacing: 2px; } .brand { font-weight: 800; font-size: 23px; text-decoration: none; color: white; } .brand span { color: #c9d8f2; }
main { max-width: 940px; margin: 48px auto; padding: 0 24px; } h1 { font-size: clamp(28px,4vw,42px); line-height: 1.15; letter-spacing: -1px; margin: 12px 0; } h2 { margin: 6px 0; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 2px; color: #53749d; } .hint { color: #58718a; font-size: 13px; }
#auth { max-width: 520px; margin: 64px auto; } form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; } #auth-form { display: block; margin: 30px 0 20px; }
label { display: block; font-size: 14px; font-weight: 600; flex: 1; } input { display: block; width: 100%; margin: 8px 0 14px; padding: 12px; border: 1px solid #b8c9db; border-radius: 7px; background: white; font: inherit; } input[type=file] { margin-bottom: 0; }
button { border: 1px solid var(--blue); padding: 12px 18px; border-radius: 7px; background: var(--blue); color: white; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
button.secondary { background: transparent; color: var(--blue); } button.danger { color: #9c3434; background: white; border-color: #b95555; } button:disabled { cursor: default; opacity: .5; } button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-focus); outline-offset: 3px; }
.heading, .subscription { display: flex; justify-content: space-between; align-items: center; gap: 30px; } .subscription { padding: 30px; margin-top: 30px; background: white; border: 1px solid #d3dfed; border-radius: 14px; } #days { font-size: 56px; font-weight: 700; line-height: 1; } .files, details { margin-top: 36px; padding-top: 26px; border-top: 1px solid #cbd7e5; } summary { cursor: pointer; }
#message:not(:empty) { padding: 14px 18px; background: #e5edf8; border-radius: 8px; margin-bottom: 22px; } #message.error { background: #fce8e5; color: #8d302a; }
ul { list-style: none; padding: 0; } li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid #dbe4ed; } li span { flex: 1; overflow-wrap: anywhere; min-width: 160px; }
@media (max-width: 640px) { .heading, .subscription { align-items: start; flex-direction: column; } header > span { display: none; } main { margin-top: 26px; } .subscription { padding: 22px; width: 100%; } }

:root { font-family: Arial, Helvetica, sans-serif; background: #f7f7f7; color: #172b38; }
header { background: var(--blue); }
button { background: var(--blue); border-color: var(--blue); }
button.secondary { color: var(--blue); }
.auth-modes { display: flex; gap: 6px; margin-top: 24px; padding: 4px; border-radius: 8px; background: #e4e9ef; }
.auth-modes button { flex: 1; background: transparent; color: #365568; border-color: transparent; }
.auth-modes button[aria-pressed="true"] { background: #fff; color: var(--blue); border-color: #a6b7c2; }
#auth { margin-top: 28px; }
#auth-form { margin-top: 20px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; width: 100%; }
#signup-preferences { padding: 20px 0 8px; margin-top: 22px; border-top: 1px solid #cbd7e5; }
legend { font-size: 17px; font-weight: 600; padding: 0 8px 0 0; }
textarea { display: block; width: 100%; min-height: 120px; resize: vertical; margin: 8px 0; padding: 12px; border: 1px solid #b8c9db; border-radius: 7px; background: #fff; font: inherit; color: inherit; line-height: 1.5; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue-focus); outline-offset: 2px; }
.optional { font-weight: 400; color: #5a6b75; font-size: 12px; }
#signup-exams, #profile-exams { max-width: 220px; }
#signup-exams-hint { margin-top: -5px; margin-bottom: 22px; }
.study-preferences { margin-top: 26px; padding: 26px; background: #fff; border: 1px solid #c2cbd6; border-radius: 10px; }
.study-preferences h2 { font-size: 22px; }
#study-preferences-form { display: block; }
#preferences-status { font-size: 13px; color: var(--blue-deep); }
#preferences-status:empty { display: none; }
@media (max-width: 640px) { .study-preferences { padding: 18px; } }

.connected-providers { margin-top: 36px; }
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; border: 1px solid #c2cbd6; border-radius: 14px; padding: 28px; color: inherit; box-shadow: 0 16px 64px #172b3833; }
dialog::backdrop { background: #172b3870; }
#onboarding-form { display: block; }
#signup-preferences { border: 0; padding: 0; margin-top: 24px; }
#onboarding-message { color: #8d302a; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (max-width: 640px) { dialog { padding: 20px; } }

.profile-nav { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.profile-nav a { padding: 10px 14px; border: 1px solid #a5bdcb; border-radius: 7px; color: var(--blue); background: #fff; font-weight: 600; text-decoration: none; }
.profile-nav a:hover { background: var(--blue-tint); }
.billing-section { margin-top: 26px; padding: 26px; border: 1px solid #c2cbd6; border-radius: 10px; background: #fff; scroll-margin-top: 20px; }
.billing-section .subscription { margin-top: 12px; padding: 0; border: 0; border-radius: 0; }
.billing-section h3 { font-size: 18px; }
.billing-section details { margin-top: 20px; padding-top: 18px; }
#preferences-title { scroll-margin-top: 20px; }
#profile-email { overflow-wrap: anywhere; }
#logout { flex-shrink: 0; min-width: 110px; }
@media (max-width: 640px) { .billing-section { padding: 18px; } .heading { flex-direction: row; gap: 16px; } .heading h1 { font-size: 28px; } }

.verification-notice { margin: 22px 0; padding: 20px; border: 1px solid #d6b674; border-radius: 10px; background: #fff8e9; }
.account-action { max-width: 560px; margin: 48px auto; }
#reset-password-form, #recovery-form, #monthly-form { display: block; }
#recovery-settings { margin: 12px 0 24px; padding: 14px 0; }
.checkbox-label { font-weight: normal; margin: 14px 0; }
.checkbox-label input { display: inline-block; width: auto; margin: 0 8px 0 0; }
#monthly-options { margin-top: 22px; border-top: 1px solid #d3dfed; padding-top: 16px; }
#support-contact { margin-top: 32px; }

.summary-usage { margin-block: 1.5rem; padding: 1rem; border: 1px solid var(--border, #cbd5e1); border-radius: 10px; }
.summary-usage p { line-height: 1.6; }
/* Sign in / create account share one fixed card so toggling never shifts layout. */
#auth { max-width: 480px; margin: 48px auto; padding: 36px 36px 28px; background: #fff; border: 1px solid #d3dfed; border-radius: 14px; box-shadow: 0 8px 32px #203f7814; }
#auth h1 { min-height: 1.15em; white-space: nowrap; font-size: clamp(26px, 3.4vw, 34px); }
#auth-intro { margin: 0; min-height: 1.5em; color: #58718a; }
#auth-form { display: flex; flex-direction: column; align-items: stretch; min-height: 396px; margin: 24px 0 0; }
#auth-form label { flex: none; width: 100%; text-align: left; }
#auth-form .hint { margin: -6px 0 14px; text-align: left; }
#auth-form button[type=submit] { margin-top: auto; width: 100%; }
#auth details { margin-top: 22px; padding-top: 18px; }
@media (max-width: 640px) { #auth { margin: 20px auto; padding: 24px 20px; } #auth h1 { white-space: normal; } }
#social-auth { display: flex; gap: 12px; margin-top: 16px; } #social-auth button { flex: 1; }

#summary-usage-meters { display: grid; gap: .75rem; }
#summary-usage-meters label { display: grid; grid-template-columns: 6rem 1fr; align-items: center; }
#summary-usage-meters meter { width: 100%; height: 1.25rem; }
.summary-warning { padding: .8rem 1rem; border-radius: 6px; background: #eef4fa; }
.summary-warning.exhausted { background: #fff2cf; border: 1px solid #b78519; color: #634700; }

#referral-form input { margin-bottom: 0; }
#referral-form label { min-width: 0; }
@media (max-width: 640px) {
  #referral-form { flex-direction: column; align-items: stretch; }
  #referral-form label { flex: none; }
}

.workspace-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 14px; }
.workspace-nav a { color: white; text-decoration: none; padding: 12px 0; }
.workspace-nav a[aria-current] { border-bottom: 2px solid white; font-weight: 700; }
.workspace-nav [aria-disabled] { opacity: .65; }
.workspace-card { margin-top: 24px; padding: 26px; border: 1px solid #c2cbd6; border-radius: 12px; background: white; }
.workspace-card h2 { font-size: 24px; }
.workspace-views { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.workspace-views > a { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--blue-tint); border-radius: 8px; text-decoration: none; color: var(--blue-deep); }
.workspace-views > a:hover { outline: 1px solid var(--blue); }
.workspace-views span { font-size: 14px; }
@media (max-width: 640px) { .workspace-nav { gap: 14px; font-size: 13px; } .profile-header { flex-wrap: wrap; gap: 8px 16px; } .workspace-views { grid-template-columns: 1fr; } .workspace-card { padding: 18px; } }
