
:root{
 --navy:#071a35;--navy2:#10294a;--ink:#10213c;--muted:#65758d;--aqua:#40edc8;--aqua2:#cbfff2;
 --blue:#3973f7;--pale:#f5f8fc;--line:#dfe7f0;--white:#fff;--radius:22px;
 --shadow:0 12px 42px rgba(17,48,93,.065);
 color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--pale)}
body{margin:0;color:var(--ink);background:var(--pale);min-height:100dvh}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
a{color:inherit;text-decoration:none}
input,select,textarea{accent-color:var(--blue)}
:focus-visible{outline:3px solid #2cbcd5;outline-offset:3px}
[hidden]{display:none!important}
.shell-width{width:min(1200px,calc(100% - 48px));margin-inline:auto}
.skip-link{position:absolute;top:-100px;left:14px;background:#fff;padding:12px;z-index:99}
.skip-link:focus{top:10px}
.site-header{height:84px;background:var(--navy);color:#fff;position:relative;z-index:10}
.nav-wrap{height:100%;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:inline-flex;align-items:center;gap:12px;flex-shrink:0}
.brand-symbol{display:grid;place-items:center;width:41px;height:41px;background:var(--aqua);border-radius:13px;transform:rotate(-7deg)}
.brand-symbol img{width:26px;height:26px;transform:rotate(7deg)}
.brand-type{display:flex;flex-direction:column;line-height:1.05;gap:5px;white-space:nowrap}
.brand-type strong{font:700 15px "Trebuchet MS",system-ui,sans-serif;letter-spacing:.06em}
.brand-type small{font-size:10px;color:#9bf8df;letter-spacing:.3em;font-weight:800}
.nav-links{display:flex;align-items:center;gap:5px;flex:1;justify-content:center}
.nav-links a{border-radius:10px;font-size:13px;color:#b1c4da;font-weight:750;padding:13px 15px;transition:background .15s,color .15s;white-space:nowrap}
.nav-links a:hover,.nav-links a.active{color:#fff;background:#ffffff1b}
.nav-right{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.btn,.chip-button{border:0;border-radius:12px;padding:13px 19px;font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:transform .15s,background .15s,border-color .15s}
.btn:hover:not(:disabled){transform:translateY(-1px)}
.btn-top{background:var(--aqua);color:#062339}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover:not(:disabled){background:#225ee6}
.btn-dark{background:var(--navy);color:#fff}
.btn-dark:hover:not(:disabled){background:#19395e}
.btn-ghost{background:#fff;color:var(--navy);border:1px solid #d8e2ee}
.btn-ghost:hover:not(:disabled){background:#f0f5fc}
.btn-soft{background:#e5f0fc;color:#205995}
.btn-danger{background:#fff1f1;color:#b22c3d;border:1px solid #fac9cb}
.btn-danger:hover{background:#ffe1e3}
.btn-large{font-size:15px;padding:16px 23px;border-radius:14px}
.btn-block{width:100%}
.btn-small{padding:9px 13px;border-radius:9px;font-size:12px}
.btn-icon{padding:9px;min-width:38px}
.account-button{display:flex;align-items:center;gap:8px;color:#fff;border:1px solid #355071;background:#142b4b;padding:8px 12px 8px 8px;border-radius:12px;font-size:12px;font-weight:700;max-width:235px}
.account-button:hover{background:#233e62}
.avatar{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:10px;background:var(--aqua);color:#092744;font:800 13px "Trebuchet MS",system-ui,sans-serif}
.account-button .account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-role{display:block;color:#9fb4ce;font-size:10px}
.page{padding:40px 0 82px;min-height:calc(100dvh - 165px)}
.page-heading{margin-bottom:32px;display:flex;align-items:flex-end;justify-content:space-between;gap:25px}
.kicker{display:inline-flex;align-items:center;gap:7px;color:#2178ae;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.kicker .pin{width:7px;height:7px;background:#2fd3ad;border-radius:50%;box-shadow:0 0 0 4px #dcfdf5}
h1,h2,h3,h4,p{margin-top:0}
h1,h2,h3,h4{font-family:"Trebuchet MS",system-ui,sans-serif;letter-spacing:-.045em}
h1{font-size:clamp(34px,4.6vw,58px);line-height:1.07;margin:13px 0 14px}
h2{font-size:clamp(26px,3vw,39px);margin:10px 0 13px;line-height:1.15}
h3{font-size:21px;line-height:1.2;margin:0 0 12px}
p{line-height:1.65}
.muted{color:var(--muted)}
.small-text{font-size:13px;color:var(--muted)}
.body-intro{font-size:17px;color:#63768e;max-width:650px}
.hero{background:linear-gradient(114deg,#071b3a 0%,#122b55 55%,#144a61 100%);color:#fff;overflow:hidden;position:relative;border-bottom:1px solid #173a5c}
.hero::before{content:"";position:absolute;width:590px;height:590px;right:-140px;top:-180px;border:1px solid #9ef1db28;border-radius:50%;box-shadow:0 0 0 84px #73dcce0b,0 0 0 170px #8be7eb0a}
.hero::after{content:"";position:absolute;background:radial-gradient(circle,#2cffc21d 0,transparent 65%);width:630px;height:630px;top:-160px;right:40px;pointer-events:none}
.hero .shell-width{min-height:540px;display:grid;grid-template-columns:1.12fr .88fr;align-items:center;gap:60px;position:relative;z-index:1;padding-top:50px;padding-bottom:62px}
.hero-copy{max-width:650px}
.hero .kicker{color:#68efcc}
.hero h1{font-size:clamp(50px,5.8vw,77px);line-height:1.03;letter-spacing:-.065em;margin:22px 0 25px}
.hero h1 em{font-style:normal;color:var(--aqua)}
.hero p{max-width:490px;font-size:16px;color:#bad0e3;line-height:1.85;margin-bottom:30px}
.hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hero .btn-secondary{background:#ffffff16;border:1px solid #83c8de45;color:#fff}
.hero .btn-secondary:hover{background:#ffffff2b}
.hero-caption{font-size:12px;color:#8fb2cf;margin-top:24px}
.hero-visual{display:grid;place-items:center;min-height:400px;position:relative}
.hero-visual .orbit{position:absolute;width:min(94%,420px);aspect-ratio:1;border:1px dashed #9fe5dc5c;border-radius:50%;transform:rotate(-18deg)}
.visual-card{width:min(350px,96%);padding:24px;border-radius:22px;background:#ffffff;color:#17375d;box-shadow:0 22px 70px #030e235e;transform:rotate(5deg);position:relative;z-index:1}
.visual-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:35px}
.visual-badge{font-size:11px;color:#35638a;background:#e9f5ff;padding:7px 11px;border-radius:20px;font-weight:800}
.visual-card .prompt-label{font-size:11px;color:#6f859e;font-weight:800;letter-spacing:.11em}
.visual-card .prompt-answer{font:700 clamp(27px,3.3vw,43px) "Trebuchet MS",system-ui,sans-serif;margin:7px 0 24px}
.visual-input{border:2px solid #d6ecf4;border-radius:12px;padding:15px 18px;background:#f5fbfe;color:#1b5c7a;font-size:20px;font-weight:800}
.visual-score{display:flex;align-items:center;gap:9px;margin-top:25px;color:#176c54;font-size:13px;font-weight:850}
.visual-score span{display:grid;place-items:center;background:#d1fbec;border-radius:50%;width:29px;height:29px}
.float-tag{position:absolute;z-index:2;background:#fff;color:#164163;padding:13px 18px;border-radius:15px;box-shadow:0 14px 35px #0313294a;font-size:13px;font-weight:850;transform:rotate(-9deg)}
.float-tag.a{top:12%;right:-2%}.float-tag.b{bottom:8%;left:-5%;transform:rotate(8deg)}
.hero-metrics{display:flex;gap:28px;margin-top:39px;flex-wrap:wrap}
.hero-metrics strong{font:700 25px "Trebuchet MS",system-ui,sans-serif;display:block;color:#fff}
.hero-metrics span{font-size:11px;color:#91abc9}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 24px}
.section-heading h2{margin-bottom:0}
.section-block{padding:72px 0}
.section-pale{background:#edf4fb}
.language-grid,.feature-grid,.stats-grid,.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.language-tile{position:relative;background:#fff;display:flex;align-items:center;gap:17px;border:1px solid var(--line);border-radius:18px;padding:23px;box-shadow:var(--shadow);transition:transform .16s,border .16s,box-shadow .16s;text-align:left;width:100%}
.language-tile:hover,.activity-card:hover,.feature-card:hover{transform:translateY(-3px);border-color:#afd1fa;box-shadow:0 15px 40px #264d8620}
.language-icon{width:53px;height:53px;border-radius:16px;background:#e8f6f7;color:#136977;display:grid;place-items:center;font:800 17px "Trebuchet MS",system-ui,sans-serif;flex-shrink:0}
.language-tile:nth-child(3n+2) .language-icon{background:#edf0ff;color:#5146b7}
.language-tile:nth-child(3n+3) .language-icon{background:#fff1de;color:#aa6118}
.language-tile strong{display:block;font-size:17px;letter-spacing:-.02em}
.language-tile small{font-size:12px;color:#71829b;display:block;margin-top:4px}
.tile-arrow{margin-left:auto;color:#7a96b5}
.feature-card{background:#fff;padding:29px;border-radius:20px;border:1px solid var(--line);transition:transform .16s,box-shadow .16s}
.feature-icon{width:49px;height:49px;border-radius:14px;display:grid;place-items:center;background:#e4f7f2;color:#16846d;font:700 24px "Trebuchet MS",system-ui,sans-serif;margin-bottom:24px}
.feature-card p{color:#6c7d96;font-size:14px;margin-bottom:0}
.activity-card{display:flex;flex-direction:column;background:white;border:1px solid #dfe8f3;box-shadow:var(--shadow);border-radius:18px;padding:22px;transition:transform .15s,border .15s,box-shadow .15s;min-height:235px}
.card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:23px}
.tag{font-size:11px;font-weight:900;padding:6px 10px;border-radius:7px;background:#e8efff;color:#3b59a0;white-space:nowrap}
.tag.verbs{background:#e8edff;color:#3f54be}
.tag.vocabulary{background:#e2f9f0;color:#127e64}
.tag.grammar{background:#fff3df;color:#9f6826}
.tag.listening{background:#f3e9ff;color:#8242a9}
.card-level{font-size:11px;color:#788aa1}
.activity-card h3{font-size:18px;margin:0 0 9px;min-height:43px}
.activity-card p{font-size:12px;color:#72839a;flex:1}
.activity-card .card-footer{border-top:1px solid #edf1f8;margin-top:17px;padding-top:16px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#536e90;font-weight:800}
.activity-card .card-footer span:last-child{color:#3368ca;font-weight:900}
.catalog-filter{background:#fff;border:1px solid #e1e9f4;padding:20px;border-radius:19px;margin:30px 0;display:grid;grid-template-columns:2fr 1fr 1fr;gap:13px;align-items:end;box-shadow:var(--shadow)}
.field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#324563;font-weight:850}
.field input,.field select,.field textarea{width:100%;border:1px solid #d6e2ef;border-radius:11px;background:#fff;outline:none;font-size:14px;padding:13px 14px;color:#183654;min-height:47px}
.field textarea{min-height:118px;resize:vertical;line-height:1.55}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#4583eb;box-shadow:0 0 0 3px #4583eb22}
.field .hint{color:#71849a;font-weight:500;font-size:11px}
.field input[type=checkbox]{width:17px;min-height:0;height:17px}
.form-stack{display:grid;gap:17px}
.form-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.empty-state{text-align:center;padding:55px 25px;background:#fff;border:1px dashed #d2dfeb;border-radius:22px}
.empty-state .empty-icon{font-size:40px;margin-bottom:11px}
.empty-state h3{font-size:22px}
.empty-state p{color:#74849b;max-width:480px;margin:0 auto 19px}
.result-count{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#7a8aa0;font-size:12px;margin:15px 0}
.auth-shell{display:grid;grid-template-columns:1.05fr .95fr;gap:0;max-width:970px;margin:15px auto;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 25px 70px #173e7315;border:1px solid #e1e9f3;min-height:540px}
.auth-side{background:linear-gradient(150deg,#081d3c,#164675);padding:47px;color:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}
.auth-side::after{content:"学";position:absolute;bottom:-98px;right:-44px;font:700 360px "Trebuchet MS",system-ui,sans-serif;opacity:.06;pointer-events:none}
.auth-side h2{color:#fff;font-size:39px;margin-top:38px}
.auth-side p{color:#c1d0e5;max-width:350px}
.auth-side .auth-mark{font:700 14px "Trebuchet MS",system-ui,sans-serif;color:#7aefca}
.auth-list{display:grid;gap:14px;position:relative;z-index:1}
.auth-list span{display:flex;gap:9px;align-items:center;font-size:13px;color:#d6e4ef}
.auth-side .tick{color:var(--aqua);font-size:19px}
.auth-main{padding:44px 43px}
.auth-main h2{font-size:32px}
.auth-main p{color:#74849a;font-size:13px}
.auth-switch{display:grid;grid-template-columns:repeat(2,1fr);background:#edf3f9;border-radius:12px;padding:5px;margin:25px 0}
.auth-switch button{border:0;background:transparent;color:#69809b;border-radius:9px;padding:12px;font-weight:850;font-size:13px}
.auth-switch button.active{background:#fff;color:var(--navy);box-shadow:0 3px 8px #1b3f6b13}
.check-row{display:flex;align-items:center;gap:10px;font-size:12px;color:#506987;font-weight:650}
.check-row input{width:17px;height:17px;accent-color:var(--blue)}
.auth-footnote{font-size:11px;color:#8795a9;line-height:1.65;margin-top:17px}
.text-link{background:none;border:0;padding:0;color:#275fb7;text-decoration:underline;text-underline-offset:3px;font:inherit;font-weight:800}
.section-card{background:#fff;border:1px solid #dce6f1;border-radius:20px;box-shadow:var(--shadow);padding:27px;margin-bottom:20px}
.section-card header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}
.section-card header h3{margin:0}
.section-card header p{margin:3px 0 0;color:#7a8aa0;font-size:12px}
.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin:18px 0 28px}
.stat-card{background:#fff;border:1px solid #dce6f1;border-radius:17px;padding:23px;min-height:122px}
.stat-card .number{font:700 35px "Trebuchet MS",system-ui,sans-serif;display:block;color:var(--navy);margin:5px 0}
.stat-card small{font-size:12px;font-weight:800;color:#71839b}
.dash-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:20px;align-items:start}
.assignment-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #edf1f7}
.assignment-row:last-child{border-bottom:0}
.assignment-row .row-icon{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:12px;background:#eef3fc;color:#375ca5;font-weight:850}
.assignment-row .row-info{flex:1;min-width:0}
.assignment-row strong{display:block;font-size:14px;margin-bottom:4px}
.assignment-row small{color:#71839b;font-size:11px}
.status-label{font-weight:850;font-size:11px;color:#1d7b65;background:#e0fbf0;padding:6px 9px;border-radius:8px}
.status-label.pending{color:#a0631d;background:#fff4e2}
.pills{display:flex;flex-wrap:wrap;gap:10px}
.pill{border:1px solid #dbe5ee;background:#fff;color:#506d8d;border-radius:999px;padding:9px 14px;font-weight:750;font-size:12px;cursor:pointer}
.pill.active,.pill:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
.practice-shell{max-width:920px;margin:auto}
.practice-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:24px}
.back-link{display:inline-flex;align-items:center;gap:8px;color:#58738f;font-size:12px;font-weight:850}
.practice-modes{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0 25px}
.mode-button{background:#fff;border:1px solid #d7e4ef;border-radius:11px;padding:10px 13px;font-size:12px;color:#607991;font-weight:800}
.mode-button.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.exercise-panel{background:#fff;border:1px solid #e0e9f3;box-shadow:0 19px 70px #1c4a8117;border-radius:25px;overflow:hidden}
.exercise-top{background:#f9fbfe;border-bottom:1px solid #e4edf5;padding:22px 32px;display:flex;justify-content:space-between;gap:10px;align-items:center}
.exercise-top small{font-size:12px;color:#6c829a;font-weight:800}
.exercise-top strong{font:700 17px "Trebuchet MS",system-ui,sans-serif;color:#2a5079}
.progress-bar{height:6px;background:#ecf1f7}
.progress-bar>span{display:block;background:linear-gradient(90deg,#2ad1af,#2b8ef0);height:100%;width:0%;transition:width .25s}
.exercise-body{padding:clamp(28px,5vw,64px) clamp(24px,5vw,62px) 44px;text-align:center;min-height:360px}
.exercise-label{font-size:12px;color:#7088a4;letter-spacing:.12em;font-weight:900;text-transform:uppercase}
.exercise-question{font:700 clamp(29px,4.6vw,48px)/1.25 "Trebuchet MS",system-ui,sans-serif;letter-spacing:-.04em;color:var(--navy);margin:20px 0 33px;overflow-wrap:anywhere}
.exercise-input{width:min(100%,490px);border:2px solid #cad9eb;border-radius:15px;padding:18px 23px;text-align:center;font:600 22px "Trebuchet MS",system-ui,sans-serif;color:#153a63;outline:none;background:#fafdff}
.exercise-input:focus{border-color:#3973f7;box-shadow:0 0 0 5px #3973f716}
.exercise-feedback{margin:17px auto 8px;padding:12px 16px;border-radius:12px;max-width:540px;line-height:1.5;font-size:13px;text-align:center;font-weight:700}
.exercise-feedback.good{background:#e0fbef;color:#176a50}
.exercise-feedback.bad{background:#fff0ec;color:#b54332}
.exercise-footer{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:24px}
.question-help{font-size:12px;color:#8a9cb3;margin-top:15px}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:650px;margin:0 auto}
.choice-grid button{min-height:62px;padding:13px 16px;text-align:center;font-weight:800;font-size:15px;background:#f8fbff;border:1px solid #d9e6f0;border-radius:13px;color:#234866;transition:background .1s}
.choice-grid button:hover:not(:disabled){background:#e5f1ff}
.choice-grid button.correct{border-color:#39cb9d;background:#dffbed;color:#156f52}
.choice-grid button.wrong{border-color:#ed9288;background:#ffebe8;color:#a43e2e}
.flashcard{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:235px;border:2px dashed #cbdff0;background:#f5faff;border-radius:19px;max-width:640px;margin:0 auto;padding:28px;cursor:pointer;transition:transform .18s}
.flashcard:hover{transform:scale(1.01)}
.flashcard .flash-label{font-size:11px;letter-spacing:.12em;color:#6695ae;margin-bottom:16px;font-weight:850}
.flashcard strong{font:700 clamp(25px,4.2vw,42px)/1.2 "Trebuchet MS",system-ui,sans-serif;color:#1c4066}
.match-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:680px;margin:auto}
.match-tile{border:1px solid #c9dbea;min-height:78px;padding:11px;border-radius:12px;background:#f9fcff;color:#21435f;font-size:13px;font-weight:850;overflow-wrap:anywhere}
.match-tile.selected{background:#dfeaff;border-color:#356ce0}
.match-tile.matched{opacity:.25;pointer-events:none;border-color:#98e7c9;background:#e1f9ee}
.summary-hero{background:linear-gradient(120deg,#092244,#184e75);color:#fff;border-radius:20px;padding:43px;text-align:center;margin-bottom:25px}
.summary-hero .big-score{font:700 76px "Trebuchet MS",system-ui,sans-serif;color:#57f2c9;letter-spacing:-.08em}
.summary-hero p{color:#bfd2e5}
.summary-hero h2{color:#fff;margin-bottom:10px}
.review-item{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #e7eef6}
.review-item small{color:#71839a;font-size:12px}
.review-item strong{display:block;font-size:14px}
.review-item .correct{color:#0f8c64}
.review-item .incorrect{color:#bf4f3d}
.admin-list,.gradebook{overflow:auto;border:1px solid #e3eaf2;border-radius:13px}
.data-table{width:100%;border-collapse:collapse;min-width:500px;font-size:13px;text-align:left}
.data-table th{font-size:10px;letter-spacing:.1em;text-transform:uppercase;background:#f4f8fd;color:#69809c;font-weight:900}
.data-table td,.data-table th{padding:14px 16px;border-bottom:1px solid #e6edf4}
.data-table tr:last-child td{border-bottom:0}
.data-table td strong{font-weight:850}
.data-table .score{font-weight:900;color:#147c68}
.data-table .score.low{color:#b7643f}
.data-table button{font-size:11px}
.teacher-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.teacher-create textarea{min-height:175px;font-family:ui-monospace,monospace;font-size:12px}
.teacher-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}
.teacher-toolbar h1{margin-bottom:2px}
.info-strip{background:#eaf5ff;border:1px solid #cce3f8;color:#34617c;padding:14px 17px;border-radius:12px;font-size:12px;line-height:1.6;margin:16px 0}
.info-strip.warning{background:#fff7e9;border-color:#fae3bc;color:#915c26}
.info-strip.success{background:#e9fff6;border-color:#b9efd9;color:#167352}
.class-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px 27px;border-radius:20px;background:#0b2a50;color:#fff;margin-bottom:22px}
.class-hero h1{margin:7px 0;font-size:33px}
.class-hero small{color:#acc9e6}
.class-code{font:700 28px "Trebuchet MS",system-ui,sans-serif;color:#62efd2;letter-spacing:.17em}
.class-code-label{font-size:10px;color:#a6bdd0;letter-spacing:.12em;font-weight:850}
.admin-summary{padding:20px;background:#071e40;color:#fff;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.admin-summary strong{font:700 34px "Trebuchet MS",system-ui,sans-serif}
.admin-summary p{margin:5px 0 0;color:#c4d2e0;font-size:13px}
.site-footer{background:#061b39;color:#a5b7ce;padding:29px 0}
.footer-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px}
.footer-wrap strong{font:700 15px "Trebuchet MS",system-ui,sans-serif;color:white;display:block}
.footer-wrap span{display:block;margin-top:5px}
.toast{position:fixed;bottom:25px;right:25px;z-index:99;max-width:min(420px,calc(100vw - 30px));background:#112c4e;color:#fff;padding:15px 20px;border-radius:14px;box-shadow:0 15px 42px #1d2d4750;font-size:13px;font-weight:700}
.toast.bad{background:#ad3441}.toast.good{background:#126c51}
.loading-page{min-height:390px;display:grid;place-content:center;justify-items:center;gap:15px;color:#54718f}
.loading-orbit{width:30px;height:30px;border-radius:50%;border:4px solid #d2e5f7;border-top-color:#3973f7;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.inline-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.divider{height:1px;background:#e7eef5;margin:20px 0}
.sr-only{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0,0,0,0)}
.nobr{white-space:nowrap}
@media(max-width:1100px){
 .nav-wrap{gap:15px}.nav-links a{padding:12px 9px}
 .hero .shell-width{gap:25px}.float-tag{display:none}
 .card-grid,.language-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:830px){
 .site-header{height:auto;min-height:78px}
 .nav-wrap{flex-wrap:wrap;padding-block:14px;gap:12px}
 .nav-links{order:3;width:100%;justify-content:stretch;overflow-x:auto;flex:0 0 100%}
 .nav-links a{padding:10px 12px;white-space:nowrap}
 .hero .shell-width{grid-template-columns:1fr;gap:20px;padding-top:70px}
 .hero h1{max-width:780px}.hero-visual{min-height:300px}.hero-visual .visual-card{transform:none;width:320px}
 .auth-shell{grid-template-columns:1fr}.auth-side{padding:30px;min-height:180px}.auth-side h2{font-size:28px;margin:12px 0}.auth-list{display:none}
 .auth-main{padding:32px}
 .dash-layout,.teacher-grid{grid-template-columns:1fr}
 .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:630px){
 .shell-width{width:min(100% - 28px,1200px)}
 .site-header{min-height:70px}
 .brand-symbol{height:36px;width:36px}
 .brand-type strong{font-size:12px}.brand-type small{font-size:8px}
 .account-name{max-width:92px}
 .nav-right .btn-top{padding:10px 14px}
 .hero .shell-width{padding-top:45px;padding-bottom:52px}
 .hero h1{font-size:clamp(44px,10vw,63px)}
 .hero-visual{min-height:245px}
 .visual-card{padding:19px}.visual-top{margin-bottom:15px}.visual-card .prompt-answer{margin-bottom:14px}
 .hero-metrics{margin-top:25px}
 .section-block{padding:52px 0}
 .language-grid,.feature-grid,.card-grid{grid-template-columns:1fr}
 .language-tile{padding:17px}
 .catalog-filter{grid-template-columns:1fr;padding:16px}
 .page{padding:28px 0 60px}
 .page-heading{align-items:flex-start;flex-direction:column}
 .form-two,.choice-grid{grid-template-columns:1fr}
 .auth-main{padding:25px 20px}.auth-side{padding:25px}
 .exercise-top{padding:18px 20px}.exercise-body{padding:33px 19px}
 .exercise-question{margin:19px 0 27px}
 .exercise-input{font-size:19px;padding:17px}
 .exercise-footer{flex-wrap:wrap}
 .match-grid{grid-template-columns:repeat(2,1fr)}
 .match-tile{min-height:90px}
 .section-card{padding:19px}
 .class-hero{align-items:start;flex-direction:column}
 .footer-wrap{align-items:start;flex-direction:column}
 .stats-grid{gap:10px}
 .stat-card{padding:16px}
 .stat-card .number{font-size:27px}
 .teacher-toolbar{align-items:start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* Focused student/staff sign-in: the emailed code appears in a modal. */
.auth-page{display:grid;align-content:center;min-height:calc(100dvh - 90px)}
.auth-shell.auth-compact{display:block;width:min(100%,510px);max-width:510px;min-height:0;margin:20px auto}
.auth-compact .auth-main{padding:40px}
.auth-compact .auth-main h2{margin:11px 0 27px;font-size:34px}
.auth-compact .auth-switch{margin:0 0 27px}
.auth-compact .form-stack{gap:20px}
.staff-access-link{margin:22px 0 0;text-align:center;font-size:12px}
.staff-code-dialog{width:min(445px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid #d6e5f4;border-radius:23px;background:#fff;color:#10213c;box-shadow:0 30px 100px rgba(2,19,43,.28);overflow:auto}
.staff-code-dialog::backdrop{background:rgba(5,21,44,.68);backdrop-filter:blur(3px)}
.staff-code-wrap{padding:38px;position:relative}
.staff-code-wrap h2{font-size:29px;margin:14px 0 9px}
.staff-code-wrap>p{color:#65758d;font-size:13px;line-height:1.6;margin:0 0 27px}
.staff-code-wrap>p strong{color:#213d64;overflow-wrap:anywhere}
.staff-code-icon{display:grid;place-items:center;width:50px;height:50px;background:#dffaf0;border-radius:15px;color:#116e60;font-size:26px}
.staff-code-close{position:absolute;top:16px;right:17px;background:#f2f6fb;border:1px solid #e2eaf4;width:37px;height:37px;border-radius:10px;color:#45617f;font-size:24px;line-height:1}
.staff-code-close:hover{background:#e6edf7}
.staff-code-wrap .field input{text-align:center;font-size:26px;letter-spacing:.25em;font-weight:800;min-height:61px;font-variant-numeric:tabular-nums}
.staff-code-error{background:#fff0ef;border:1px solid #ffd7d2;border-radius:10px;padding:11px 13px;color:#b13531;font-size:12px;font-weight:700;margin:0}
.staff-code-error[hidden]{display:none}
.staff-code-links{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:23px;font-size:12px}
body:has(.auth-page) .site-footer{display:none}
@media(max-width:630px){
 .auth-page{min-height:calc(100dvh - 160px);padding-block:24px}
 .auth-compact .auth-main{padding:30px 21px}
 .auth-compact .auth-main h2{font-size:30px}
 .staff-code-wrap{padding:29px 23px}
}


.teacher-command{position:relative;background:#fff;padding:22px 24px;border:1px solid #dce7f3;border-radius:19px;margin:0 0 25px;box-shadow:var(--shadow);z-index:4}
.teacher-command>label{display:block;font-size:12px;font-weight:850;color:#294666;margin-bottom:11px}
.teacher-command>input{width:100%;height:51px;padding:13px 16px;border:1px solid #ccdbec;border-radius:12px;background:#f9fcff;color:var(--ink);outline:0;font-size:14px}
.teacher-command>input:focus{border-color:#3c7cf5;box-shadow:0 0 0 3px #3c7cf519}
.teacher-command-results{display:grid;gap:4px;position:absolute;top:calc(100% - 7px);left:24px;right:24px;padding:9px;background:#fff;border:1px solid #dce7f3;border-radius:0 0 16px 16px;box-shadow:0 20px 32px #0a315226;z-index:5;max-height:350px;overflow:auto}
.teacher-command-option{display:grid;grid-template-columns:1fr auto;gap:3px 12px;border:0;border-radius:9px;background:transparent;text-align:left;padding:12px;align-items:center;color:#244360}
.teacher-command-option:hover,.teacher-command-option:focus-visible{background:#ebf5ff}
.teacher-command-option strong{font-size:13px;grid-column:1}
.teacher-command-option small{font-size:11px;color:#6a829d;grid-column:1}
.teacher-command-option span{grid-column:2;grid-row:1 / span 2;color:#2860c1}
.teacher-command-empty{margin:8px 10px;color:#69809c;font-size:13px}
@media(max-width:630px){.teacher-command{padding:16px}.teacher-command-results{left:16px;right:16px}}


/* Short, high-contrast actions instead of another wall of navigation. */
.teacher-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:-11px 0 27px}
.teacher-shortcut{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7e4f2;background:#fff;color:#28527e;font-family:inherit;font-size:12px;font-weight:750;line-height:1.2;padding:12px 15px;border-radius:999px;cursor:pointer;min-height:40px;transition:background .15s,border-color .15s,transform .15s}
.teacher-shortcut:hover,.teacher-shortcut:focus-visible{border-color:#6fa5ef;background:#eaf4ff;transform:translateY(-1px)}
.teacher-shortcut:active{transform:translateY(0)}
#students,#gradebook,#new-class,#create-set,#class-list,#create-assignment{scroll-margin-top:95px}
.roster-search-label{margin:17px 0 11px;display:grid;gap:8px;font-size:12px;font-weight:750;color:#47617f}
.roster-search-label input{min-height:45px;padding:10px 13px;border:1px solid #d4e1ef;border-radius:10px;background:#fbfdff;font:inherit}
.roster-search-label input:focus-visible{outline:3px solid #a8c9ff;outline-offset:0}
.assignment-row[hidden],#roster-no-matches[hidden],.account-finder[hidden]{display:none!important}
.account-finder{border:1px solid #d7e4f2;background:#fff;padding:17px 19px;border-radius:16px;margin:0 0 21px}
.account-finder label{display:block;font-size:12px;font-weight:800;color:#365d83;margin:0 0 9px}
.account-finder input{display:block;width:100%;height:47px;padding:11px 14px;border:1px solid #d3e2f1;border-radius:11px;background:#fafdff;color:#18385b;font-family:inherit;font-size:14px;font-weight:500}
.account-finder input:focus-visible{outline:3px solid #b3d0ff;outline-offset:0}
@media(max-width:600px){.teacher-shortcuts{gap:7px}.teacher-shortcut{padding:11px 12px}.account-finder{padding:15px}}
@media(prefers-reduced-motion:reduce){.teacher-shortcut{transition:none}}


.set-builder-actions{display:flex;flex-wrap:wrap;gap:9px;margin:-9px 0 20px}
.set-builder-actions .btn{width:auto;min-height:38px;padding:10px 14px;font-size:12px}
.set-invalid{color:#b55332!important;font-weight:750}
@media(max-width:540px){.set-builder-actions{gap:6px}}

.teacher-command-results[hidden],#sent-state[hidden]{display:none!important}

/* Speaking practice and controlled email-domain exceptions */
.speaking-controls{display:flex;align-items:flex-start;flex-wrap:wrap;gap:14px;margin:16px 0}
.speaking-controls .question-help{flex:1 1 230px;margin:0;line-height:1.5}
.data-pin-panel{margin:14px 0;padding:16px;border:1px solid #b4d2ef;border-radius:14px;background:#f2f8ff;color:#163756}
.data-pin-panel p{margin:0 0 10px;line-height:1.5}
.data-pin-panel .field{margin-bottom:12px}
.data-pin-panel #data-pin-feedback{font-size:13px;font-weight:750}

/* Three-method set creator: cards, bilingual paste and reviewed smart import */
.gl-maker-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.gl-maker-method{border:1px solid #cad9e9;border-radius:15px;background:#fff;color:#1e4163;padding:19px;text-align:left;display:flex;flex-direction:column;gap:7px;min-height:105px}
.gl-maker-method strong{font-size:15px}
.gl-maker-method small{font-size:12px;line-height:1.5;color:#68829a}
.gl-maker-method.active{border:2px solid #3284e9;background:#edf6ff;box-shadow:0 5px 18px #173f751a}
.gl-make-pane{padding:14px 0 8px}
.gl-make-pane[hidden],.gl-review[hidden]{display:none}
.gl-maker-title{display:flex;justify-content:space-between;align-items:center;gap:14px}
.gl-manual-pair{display:grid;grid-template-columns:32px 1fr 1fr auto;gap:12px;align-items:end;background:#f7faff;border:1px solid #e3edf7;border-radius:12px;padding:14px;margin:10px 0}
.gl-manual-pair .field{min-width:0;margin:0}
.gl-manual-pair .field input{min-width:0}
.gl-index{align-self:center;font-weight:850;color:#69839b;text-align:center}
.gl-maker .section-card{margin-bottom:22px}
.gl-review-row{padding:18px 0;border-bottom:1px solid #dbe6f3}
.gl-review-row .form-two{margin:10px 0}
.gl-maker-warning{font-size:13px;font-weight:650;color:#955012;margin:8px 0}
.gl-maker-suggestion{padding:12px 15px;background:#f2f7ff;border:1px solid #d2e2f5;border-radius:11px;margin:10px 0}
.gl-maker-suggestion strong{display:block;margin-bottom:8px}
.gl-maker-suggestion p{margin:0 0 8px}
.gl-review-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
@media(max-width:740px){
 .gl-maker-methods{grid-template-columns:1fr}
 .gl-maker-method{min-height:0;padding:13px}
 .gl-manual-pair{grid-template-columns:28px 1fr auto}
 .gl-manual-pair .field{grid-column:2}
 .gl-manual-pair [data-remove]{grid-column:3;grid-row:1}
}
