:root{--paper:#f4f5f7;--surface:#fffefa;--ink:#252e40;--muted:#626b7c;--line:#d9dde5;--accent:#3e527e;--soft:#e7ecf6;--error:#a34440;font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:var(--accent);text-underline-offset:4px}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}main:focus{outline:none}
.topbar{max-width:1360px;margin:auto;padding:20px 32px;display:flex;gap:24px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-weight:700;letter-spacing:-.025em;text-decoration:none;color:var(--ink);white-space:nowrap}.brand:before{content:"";display:inline-block;background:var(--accent);width:6px;height:18px;margin-right:10px;border-radius:2px;vertical-align:-3px}nav{display:flex;align-items:center;gap:24px}nav a{text-decoration:none}nav a[aria-current]{font-weight:600;border-bottom:2px solid var(--accent)}nav form{margin:0}
main{max-width:1240px;margin:0 auto;padding:28px 32px 48px;min-height:calc(100dvh - 150px)}h1{font-size:2rem;line-height:1.3;letter-spacing:-.035em;margin:8px 0 12px}h2{font-size:1.15rem;margin:0 0 18px;letter-spacing:-.02em}p{line-height:1.7;margin:10px 0 20px}strong{font-weight:600}.muted,.help{color:var(--muted)}.help{font-size:.85rem;line-height:1.7;margin:8px 0 0}.help ul{padding-left:20px}.eyebrow{color:var(--muted);font-size:.8rem;letter-spacing:.06em}
.auth-layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,7vw,100px);align-items:start;max-width:1040px;margin:32px auto}.auth-note{padding-top:28px}.auth-note h1{font-size:clamp(2rem,3.2vw,3rem);font-weight:600;line-height:1.45}.auth-note p{max-width:30ch;color:var(--muted)}.quiet-note{border-left:2px solid var(--line);padding-left:16px;max-width:36ch;margin-top:64px;font-size:.85rem;line-height:1.8;color:var(--muted)}.form-panel,.panel{background:var(--surface);border-radius:14px;padding:28px}.form-panel h2{font-size:1.6rem}.stack{display:grid;gap:18px}.field label{display:block;font-weight:600;font-size:.88rem;margin-bottom:8px}input{max-width:100%;width:100%;min-height:44px;border:1px solid #c5cbd7;border-radius:7px;background:var(--surface);padding:10px 12px;color:var(--ink)}.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border:1px solid var(--accent);border-radius:7px;background:var(--accent);color:white;text-decoration:none;font-weight:600;font-size:.9rem;transition:background .15s,transform .15s}.button:hover{background:#32456e}.button:active{transform:translateY(1px)}.button.secondary{color:var(--accent);background:transparent;border-color:#c5cbd7}.button.secondary:hover{background:var(--soft)}.button.danger{background:var(--error);border-color:var(--error)}.text-button{padding:8px 0;background:none;color:var(--accent);border:0;font-size:.9rem}.text-button:hover{text-decoration:underline}.form-links{display:flex;justify-content:space-between;gap:14px;font-size:.85rem;margin-top:24px}.errors{color:var(--error);font-size:.9rem;line-height:1.6}.errors ul{list-style:none;padding:0;margin:8px 0}.notice{background:var(--soft);padding:12px 16px;border-radius:8px;margin-bottom:20px;line-height:1.6}.codes{display:grid;gap:10px;margin:24px 0;overflow-wrap:anywhere}.codes code{padding:10px;background:var(--paper);font-size:.95rem;user-select:all}.qr{width:216px;height:216px;max-width:100%;background:white;padding:8px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 24px}.page-heading p{margin-bottom:0}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.wide{grid-column:1/-1}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0}.setting-row .help{margin-bottom:0}.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}.section-heading h2{margin:0}.badge{display:inline-block;background:var(--soft);color:var(--accent);padding:4px 8px;border-radius:4px;font-size:.75rem;white-space:nowrap}.badge.disabled{color:var(--error);background:#f6eae8}.subdued{background:#ebedf2}.subdued p{margin-bottom:0}.summary-strip{display:flex;gap:clamp(24px,6vw,88px);padding:0 0 24px;margin-bottom:24px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.summary-strip span{display:block;font-size:.8rem;color:var(--muted)}.summary-strip strong{display:block;font-size:2rem;margin-top:6px}.summary-strip .small-value{font-size:1.2rem;margin-top:14px}.search{display:flex;gap:10px}.search .button{white-space:nowrap}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}th{font-weight:500;color:var(--muted);font-size:.8rem;padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 14px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}td small{display:block;color:var(--muted);margin-top:6px}td a{white-space:nowrap}.pagination{justify-content:center;gap:24px;font-size:.85rem;padding-top:20px}.invite-section{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:36px}.narrow{max-width:680px}.action-row{display:flex;flex-wrap:wrap;gap:12px}.text-link{display:inline-block;margin-bottom:16px;text-decoration:none}.empty{text-align:center;color:var(--muted);padding:40px}footer{max-width:1240px;padding:24px 32px;margin:auto;color:var(--muted);font-size:.75rem;display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line)}.sr-only,.skip{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{width:auto;height:auto;clip-path:none;z-index:10;background:var(--surface);padding:12px}
@media(max-width:720px){.topbar{padding:16px 20px;align-items:flex-start;flex-direction:column;gap:14px}nav{gap:18px;flex-wrap:wrap;font-size:.85rem}main{padding:24px 20px 36px}.auth-layout{grid-template-columns:1fr;margin:0;gap:24px}.auth-note{padding:0}.auth-note h1{font-size:1.8rem}.auth-note h1 br{display:none}.auth-note p,.quiet-note{display:none}.auth-note .text-link{margin:0}.form-panel,.panel{padding:22px}.account-grid,.invite-section{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading h1{font-size:1.7rem}.section-heading{flex-wrap:wrap}.section-heading .search{width:100%}.setting-row{gap:12px}.summary-strip{gap:28px}.invite-section{gap:24px}footer{padding:20px;flex-direction:column}.form-links{flex-wrap:wrap}td,th{padding:12px 8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.setting-row>div{min-width:0}.setting-row>a,.setting-row>form{flex-shrink:0;white-space:nowrap}.setting-row>a{display:inline-flex;align-items:center;min-height:44px}
input[type=checkbox]{width:22px;min-height:22px;height:22px;accent-color:var(--accent)}.summary-strip{flex-wrap:wrap}.summary-strip strong small{font-size:1rem;color:var(--muted)}.summary-strip>div>small{display:block;color:var(--muted);font-size:.8rem;margin-top:6px}

/* Match the learning workspace's UI hierarchy without changing form behavior. */
body{font-size:15px;line-height:1.6}
h1,.page-heading h1,.form-panel h2{font-size:24px;line-height:1.4;font-weight:600;letter-spacing:0}
h2{font-size:18px;line-height:1.5;margin-bottom:16px;letter-spacing:0}
.panel,.form-panel{padding:24px}
.account-grid{gap:24px}
.stack{gap:16px}
.field label{font-size:14px;line-height:1.5;font-weight:500;margin-bottom:8px}
.button{min-height:44px;font-size:14px;line-height:1.5;padding:10px 16px}
.text-button{font-size:14px;line-height:1.5}
input{font-size:16px;line-height:1.5}
.help,.eyebrow,.quiet-note,.form-links,.badge,.summary-strip span,.summary-strip>div>small,th,footer,.pagination{font-size:13px;line-height:1.6;letter-spacing:0}
.errors,table{font-size:14px;line-height:1.6}
.setting-row{gap:16px;padding-block:16px}
.section-heading{gap:16px;margin-bottom:16px}
.context-label>h2{margin:0}
.page-heading{gap:16px;margin-bottom:24px}
.search{gap:8px;align-items:stretch}
.setting-row>div,.page-heading>div{min-width:0}
.page-heading h1{overflow-wrap:anywhere}
@media(max-width:720px){.panel,.form-panel{padding:20px}.account-grid{gap:16px}.page-heading{flex-wrap:wrap}.section-heading{gap:12px}}
.account-center .email-address { overflow-wrap: anywhere; }
