.toast-stack{z-index:100;pointer-events:none;flex-direction:column;gap:8px;display:flex;position:fixed;bottom:20px;right:20px}.toast{background:var(--text);min-width:220px;max-width:360px;color:var(--white);border-radius:10px;padding:10px 14px;font-size:14px;animation:.2s ease-out toast-in;box-shadow:0 8px 24px #1e164033}.toast.error{background:#b42318}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}.confirm-dialog{max-width:440px}.confirm-dialog p{color:var(--text-muted);line-height:1.5}.rl-scene{--s:20px;width:calc(var(--s) * 1.9);height:calc(var(--s) * 1.9);perspective:none;flex:none;justify-content:center;align-items:center;display:inline-flex}.rl-cube{width:var(--s);height:var(--s);transform-style:preserve-3d;transition:transform 1.4s cubic-bezier(.45,0,.35,1);position:relative;transform:rotate3d(1,1,0,0)rotateX(-35.26deg)rotateY(-45deg)}.rl-spin:hover .rl-cube,.rl-spin:focus-visible .rl-cube{transform:rotate3d(1,1,0,360deg)rotateX(-35.26deg)rotateY(-45deg)}.rl-face{--w:max(1px, calc(var(--s) * .035));inset:calc(var(--w) / -2);box-sizing:border-box;border:var(--w) solid currentColor;border-radius:calc(var(--w) * .6);background:var(--rl-bg);backface-visibility:hidden;position:absolute}.rl-front,.rl-back{background:repeating-linear-gradient(-45deg, currentColor 0 max(.6px, calc(var(--s) * .014)), transparent 0 max(2.6px, calc(var(--s) * .07))), var(--rl-bg)}.rl-front{transform:translateZ(calc(var(--s) / 2))}.rl-right{transform:rotateY(90deg) translateZ(calc(var(--s) / 2))}.rl-back{transform:rotateY(180deg) translateZ(calc(var(--s) / 2))}.rl-left{transform:rotateY(-90deg) translateZ(calc(var(--s) / 2))}.rl-top{transform:rotateX(90deg) translateZ(calc(var(--s) / 2))}.rl-bottom{transform:rotateX(-90deg) translateZ(calc(var(--s) / 2))}.rl-light{--rl-bg:var(--nav);color:var(--white)}.rl-violet{--rl-bg:var(--white);color:var(--primary)}@media (prefers-reduced-motion:reduce){.rl-cube{transition:none}}.account-menu{position:relative}.account-avatar{width:34px;height:34px;color:var(--primary);background:#e3e6f3;border:0;border-radius:50%;place-items:center;padding:0;font-size:12px;font-weight:700;display:grid;overflow:hidden}.account-avatar img{object-fit:cover;width:100%;height:100%}.account-dropdown{border:1px solid var(--border);border-radius:var(--radius);background:var(--white);min-width:220px;color:var(--text);padding:16px;position:absolute;top:44px;right:0;box-shadow:0 8px 24px #1e16401f}.account-name{margin:0;font-weight:600}.account-email{color:var(--text-muted);margin:4px 0 12px;font-size:14px}.account-dropdown button{border:1px solid var(--border);background:var(--white);border-radius:8px;width:100%;padding:8px}.account-dropdown button:hover{background:var(--background)}.tab-slider{background:var(--white);pointer-events:none;border-radius:10px 10px 0 0;transition:transform .4s cubic-bezier(.4,0,.2,1),width .4s cubic-bezier(.4,0,.2,1);position:absolute;top:0;bottom:0;left:0}.tab-slider:before,.tab-slider:after{content:"";width:var(--curve,12px);height:var(--curve,12px);position:absolute;bottom:0}.tab-slider:before{left:calc(var(--curve,12px) * -1);background:radial-gradient(circle at 0 0, transparent calc(var(--curve,12px) - .5px), var(--white) var(--curve,12px))}.tab-slider:after{right:calc(var(--curve,12px) * -1);background:radial-gradient(circle at 100% 0, transparent calc(var(--curve,12px) - .5px), var(--white) var(--curve,12px))}@media (prefers-reduced-motion:reduce){.tab-slider{transition:none}}.app-header{z-index:10;position:sticky;top:0}.app-nav{background:var(--nav);height:56px;color:var(--white);align-items:flex-end;gap:4px;padding:0 28px;display:flex;position:relative}.app-nav-strip{border-bottom:1px solid var(--border);background:var(--white);height:8px}.app-logo{letter-spacing:-.01em;align-items:center;gap:8px;height:44px;margin-right:20px;font-size:18px;font-weight:700;text-decoration:none;display:flex}.app-tabs{gap:4px;display:flex;position:relative}.app-tab{height:44px;color:var(--white);border-radius:10px 10px 0 0;align-items:center;gap:7px;padding:0 16px;font-size:14px;font-weight:600;text-decoration:none;transition:color .25s;display:flex;position:relative}.app-tab:hover{background:#ffffff1f}.app-tab.active{background:var(--white);color:var(--primary);font-weight:700}.app-tab.active:before,.app-tab.active:after{content:"";pointer-events:none;width:12px;height:12px;position:absolute;bottom:0}.app-tab.active:before{background:radial-gradient(circle at 0 0, transparent 11.5px, var(--white) 12px);left:-12px}.app-tab.active:after{background:radial-gradient(circle at 100% 0, transparent 11.5px, var(--white) 12px);right:-12px}.app-actions{align-self:center;align-items:center;gap:10px;margin-left:auto;display:flex}.create-menu{position:relative}.create-test-button{background:var(--yellow);height:32px;color:var(--text);border:0;border-radius:8px;align-items:center;gap:8px;padding:0 12px;font-size:13px;font-weight:700;display:flex}.create-caret{font-size:10px}.create-dropdown{z-index:30;border:1px solid var(--border);background:var(--white);border-radius:10px;width:220px;padding:6px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 10px 30px #1a153029}.create-dropdown a{color:var(--text);border-radius:6px;padding:10px 12px;font-size:14px;font-weight:600;text-decoration:none;display:block}.create-dropdown a:hover{background:var(--primary-soft)}.menu-button{width:40px;height:40px;color:var(--white);background:#ffffff26;border:none;border-radius:10px;align-self:center;font-size:20px;display:none}@media (width<=860px){.app-nav{align-items:center;gap:12px;padding:0 12px}.menu-button{display:block}.app-logo{flex:1}.app-tabs{background:var(--nav);flex-direction:column;gap:0;padding:8px;display:none;position:absolute;top:56px;left:0;right:0;box-shadow:0 8px 20px #1e164040}.app-tabs.open{display:flex}.app-tab{border-radius:10px}.app-tab.active:before,.app-tab.active:after{display:none}.create-test-button{padding:6px 12px;font-size:14px}}@media (width>=861px){.app-tab{z-index:1}.app-tab.active,.app-tab.active:hover{background:0 0}.app-tab.active:before,.app-tab.active:after{display:none}}@media (width<=860px){.nav-slider{display:none}}.app-logo .rl-scene{position:relative;top:-4px}.wall-viewport{perspective:4200px;position:absolute;inset:0;overflow:hidden}.wall-plane{gap:10px;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotateX(46deg)rotate(22deg)scale(.85)}.wall-column{flex-direction:column;gap:10px;display:flex}.wall-column.offset{margin-top:-150px}.wall-card{color:#fff;background:#1b2350;border-radius:6px;width:230px;height:306px;position:relative;overflow:hidden;box-shadow:0 16px 28px #00000073}.wall-photo{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.wall-photo svg{width:100%;height:100%;display:block}.wall-card:after{content:"";pointer-events:none;background:linear-gradient(#00000073 0%,#0000 22% 55%,#000000bf 100%);position:absolute;inset:0}.wall-card-top{z-index:1;letter-spacing:.08em;justify-content:space-between;align-items:center;font-size:10px;font-weight:800;display:flex;position:absolute;top:10px;left:12px;right:12px}.wall-part{letter-spacing:0;border-radius:4px;padding:2px 7px}.wall-part.reading{background:#283593}.wall-part.listening{background:#c2410c}.wall-title{z-index:1;text-shadow:0 1px 8px #0006;margin:0;font-family:"Source Serif 4",Georgia,serif;font-size:21px;font-weight:600;line-height:1.15;position:absolute;bottom:12px;left:12px;right:12px}.wall-fade{pointer-events:none;background:linear-gradient(90deg,#0000 82%,#0b1028 100%),linear-gradient(#0f0b2499 0%,#0000 10% 90%,#0f0b2499 100%);position:absolute;inset:0}.landing{min-height:100vh;color:var(--white);background:radial-gradient(circle at 20% 30%,#1d2766 0%,#0b1028 55%);grid-template-columns:1fr 1fr;display:grid;position:relative;overflow:hidden}.landing-wall{min-height:100vh;position:relative}.landing-panel{z-index:1;flex-direction:column;justify-content:center;width:100%;max-width:546px;margin:0 auto;padding:48px 40px;display:flex;position:relative}.login-brand{letter-spacing:-.02em;align-items:center;gap:18px;margin-bottom:36px;font-size:64px;font-weight:700;display:flex}.login-brand-cube{display:inline-flex}.landing .rl-light{--rl-bg:#0b1028}.landing-panel h1{white-space:nowrap;letter-spacing:-.03em;margin:0 0 12px;font-size:38px;line-height:1.1}.landing-lead{color:#d0d6f0;margin:0 0 18px;font-size:16px;line-height:1.6}.login-card{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--white);background:#ffffff14;border:1px solid #ffffff38;border-radius:16px;padding:32px;box-shadow:0 20px 50px #00000059}.login-eyebrow{letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--yellow)!important;margin:0 0 4px!important;font-size:12px!important}.login-card h2{margin:0 0 6px;font-size:24px}.login-card>p{color:#d0d6f0;margin:0;font-size:14px;line-height:1.55}.login-google-button{justify-content:flex-start;width:100%;min-height:44px;margin-top:18px;display:flex}.login-connecting{border:1px solid var(--border);height:44px;color:var(--text);background:#f1f3f9;border-radius:8px;justify-content:center;align-items:center;gap:10px;margin-top:18px;font-size:14px;font-weight:600;display:flex}.login-spinner{border:2px solid #cfd4ea;border-top-color:var(--primary);border-radius:50%;width:16px;height:16px;animation:.8s linear infinite login-spin}@keyframes login-spin{to{transform:rotate(360deg)}}.login-note{border-radius:8px;align-items:flex-start;gap:8px;margin:14px 0 0;padding:10px 12px;font-size:13px;line-height:1.45;display:flex}.login-note.warning{color:#6b4e00;background:#fff6dc}.login-note.error{color:#9b1c1c;background:#fdecee;align-items:center}.login-note.error span:nth-child(2){flex:1}.login-note button{background:var(--white);color:#9b1c1c;font:inherit;border:1px solid #f1b8b8;border-radius:6px;padding:5px 10px;font-weight:600}.login-terms{color:#b3bad8!important;margin:14px 0 0!important;font-size:12px!important}@media (width<=900px){.landing{grid-template-columns:1fr}.landing-wall{min-height:300px}.landing-panel{min-width:0;max-width:none;padding:0 20px 40px}.login-card{padding:22px 20px}.landing-panel h1{white-space:normal;font-size:30px}.login-brand{font-size:44px}}@media (prefers-reduced-motion:reduce){.login-spinner{animation:none}}.activity-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:20px;margin-bottom:28px;display:grid}.home-page .activity-row section{margin-bottom:0}.activity-hint{color:var(--text-muted);margin:2px 0 0;font-size:12px}.activity-legend{color:var(--text-muted);align-items:center;gap:6px;font-size:13px;display:flex}.activity-legend i{background:var(--primary);border-radius:50%;width:10px;height:10px}.activity-body{padding:16px 20px 20px}.activity-month{justify-content:space-between;align-items:center;margin-bottom:8px;font-size:17px;display:flex}.activity-arrow{border:1px solid var(--border);background:var(--white);border-radius:8px;width:34px;height:34px;font-size:18px;line-height:1}.activity-grid{table-layout:fixed;border-collapse:separate;border-spacing:0 4px;text-align:center;width:100%}.activity-grid thead th{color:var(--text-muted);padding:6px 0;font-size:12px;font-weight:500}.activity-grid tbody th{width:56px;color:var(--text-muted);text-align:left;padding-left:6px;font-size:12px;font-weight:500}.activity-grid tr.selected-week th,.activity-grid tr.selected-week td{background:#f1f3f9}.activity-grid tr.selected-week th{border-radius:10px 0 0 10px}.activity-grid tr.selected-week td:last-child{border-radius:0 10px 10px 0}.activity-day{width:38px;height:38px;color:var(--text);font:inherit;background:0 0;border:2px solid #0000;border-radius:50%;font-size:14px}.activity-day.filled,.activity-day.level-3{background:var(--primary);color:var(--white);font-weight:700}.activity-day.level-1{background:#dde2f7}.activity-day.level-2{color:var(--white);background:#8e9bdd}.activity-day.today{border-color:var(--text)}.activity-day.future{color:#b3b7c8}.activity-summary{border-top:1px solid var(--border);color:var(--text-muted);flex-wrap:wrap;gap:4px 16px;margin:12px 0;padding-top:12px;font-size:13px;display:flex}.activity-summary strong{color:var(--text)}.segmented.activity-modes{display:flex}.activity-modes .segmented-tab{flex:1}.week-table{border-collapse:collapse;width:100%;font-size:14px}.week-table th{text-align:center;background:#f5f6fb;padding:12px 16px;font-weight:700}.week-table td{border-top:1px solid var(--border);text-align:center;padding:12px 16px}.week-table th:first-child,.week-table td:first-child{text-align:left}.week-table td.has-reading{background:#e6e9f8}.week-table td.has-listening{background:#fdeee0}.week-table tr.today td:first-child{font-weight:700}.week-table tr.future td{color:#b3b7c8}.week-table tfoot td{border-top:2px solid var(--text);font-weight:700}@media (width<=900px){.activity-row{grid-template-columns:minmax(0,1fr)}}@media (width<=480px){.activity-body{padding:12px}.activity-day{width:30px;height:30px;font-size:13px}.activity-grid tbody th{width:44px}.week-table th,.week-table td{padding:10px 8px;font-size:13px}}.skeleton{border-radius:var(--radius);background:linear-gradient(90deg,#e9ebf4 25%,#f5f6fa 50%,#e9ebf4 75%) 0 0/200% 100%;animation:1.2s linear infinite skeleton-shimmer}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-rows{flex-direction:column;gap:10px;display:flex}.skeleton-row{height:64px}.skeleton-cards{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;display:grid}.skeleton-card{height:150px}@media (prefers-reduced-motion:reduce){.skeleton{animation:none}}.leaderboard{margin-bottom:28px;overflow:hidden}.leaderboard-title{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.leaderboard-class{background:var(--primary-soft);color:var(--primary);font:inherit;border:0;border-radius:999px;padding:4px 10px;font-size:13px;font-weight:600}.leaderboard-week{color:var(--text-muted);font-size:13px}.leaderboard-pad{margin:0;padding:16px 20px}.leaderboard-table{border-collapse:collapse;width:100%;font-size:14px}.leaderboard-table th{color:var(--text-muted);letter-spacing:.04em;text-transform:uppercase;text-align:center;background:#f5f6fb;padding:12px 20px;font-size:12px;font-weight:600}.leaderboard-table td{border-top:1px solid var(--border);text-align:center;padding:12px 20px}.leaderboard-table th:nth-child(-n+2),.leaderboard-table td:nth-child(-n+2){text-align:left}.leaderboard-table th:last-child,.leaderboard-table td:last-child{text-align:right}.leaderboard-table tr.me td{background:#f5f6fb;font-weight:600}.rank-badge{border:1px solid var(--border);background:var(--white);border-radius:50%;place-items:center;width:28px;height:28px;font-size:13px;font-weight:700;display:inline-grid}.rank-change{margin-left:10px;font-size:11px}.rank-change.up{color:#2e7d32}.rank-change.down{color:#c62828}.rank-change.same{color:#b3b7c8}.leaderboard-student{align-items:center;gap:10px;display:inline-flex}.leaderboard-student small{color:var(--text-muted);font-weight:400}.leaderboard-avatar{width:28px;height:28px;color:var(--primary);background:#e3e6f3;border-radius:50%;place-items:center;font-size:10px;font-weight:700;display:inline-grid}.leaderboard-band{color:var(--primary);font-weight:700}@media (width<=600px){.leaderboard-table th,.leaderboard-table td{padding:10px 8px}.leaderboard-table th:nth-child(4),.leaderboard-table td:nth-child(4){display:none}}.empty-state{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:40px 16px;display:flex}.empty-state h2{margin:8px 0 0;font-size:18px}.empty-state-text{max-width:420px;color:var(--text-muted);line-height:1.5}.empty-state-text a{color:var(--primary);font-weight:600}.home-page section{margin-bottom:28px}.home-page h2{margin:0 0 12px;font-size:18px}.home-goals-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.home-goals-header h2{margin:0}.home-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;display:grid}.home-row>section{flex-direction:column;display:flex}.home-row>section>:last-child{flex:1}.home-top{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px;margin-bottom:28px;display:grid}.home-page .home-top section{margin-bottom:0}.home-panel{border:1px solid var(--border);background:var(--white);border-radius:14px}.home-panel-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;min-height:34px;padding:16px 20px;display:flex}.home-page .home-panel-header h2{margin:0}.home-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:16px 20px 0;display:grid}.home-card{--tone:var(--reading);background:linear-gradient(135deg,#e3e7f8,#f6f7fd);border-radius:12px;padding:14px 16px}.home-card.listening{--tone:#c2410c;background:linear-gradient(135deg,#fbe3d6,#fdf5f0)}.home-card.overall{--tone:#2e7d32;background:linear-gradient(135deg,#dcefdc,#f3f9f3)}.home-card p{margin:0}.home-card-label{align-items:center;gap:8px;font-weight:700;display:flex}.home-card-letter{background:var(--tone);width:22px;height:22px;color:var(--white);border-radius:6px;place-items:center;font-size:12px;display:inline-grid}.home-card-numbers{gap:24px;margin:10px 0 14px;display:flex}.home-card-numbers small{color:var(--text-muted);font-size:12px;display:block}.home-card-numbers strong{font-size:30px;line-height:1.1}.home-card-numbers .home-card-goal{color:var(--tone)}.home-card-note{font-size:13px;font-weight:600}.home-card-bar{background:#fffc;border-radius:999px;height:6px;margin-top:8px;overflow:hidden}.home-card-bar span{border-radius:inherit;background:var(--tone);height:100%;display:block}.home-hint{color:var(--text-muted);margin:10px 20px 16px;font-size:13px}.home-exam{grid-template-columns:1fr 1fr;gap:14px;padding:16px 20px 0;display:grid}.home-exam-box{border:1px solid var(--border);background:var(--white);color:var(--text);font:inherit;text-align:left;border-radius:12px;flex-direction:column;gap:6px;padding:16px;display:flex;position:relative}button.home-exam-box{cursor:pointer}button.home-exam-box:hover{border-color:var(--primary)}.home-exam-box.soft{background:var(--primary-soft);border-color:#0000}.home-exam-box small{color:var(--text-muted);font-size:12px}.home-exam-box strong{font-size:22px}.home-exam-edit{color:var(--text-muted);position:absolute;bottom:14px;right:12px}@media (width<=900px){.home-row,.home-top{grid-template-columns:minmax(0,1fr)}}@media (width<=600px){.home-cards{grid-template-columns:minmax(0,1fr)}}.home-list{border:1px solid var(--border);border-radius:var(--radius);background:var(--white);margin:0;padding:0;list-style:none}.home-list li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.home-list li:last-child{border-bottom:none}.home-list small{color:var(--text-muted)}.home-list a:not(.primary-button){color:var(--primary);font-weight:600}.band-chart{border:1px solid var(--border);border-radius:var(--radius);background:var(--white);flex-direction:column;justify-content:center;margin:0;padding:16px;display:flex}.band-chart svg{width:100%;height:auto;display:block}.band-grid{stroke:var(--border)}.band-axis{fill:var(--text-muted);font-size:11px}.band-legend{color:var(--text-muted);gap:16px;margin-top:8px;font-size:13px;display:flex}.band-legend i{vertical-align:middle;border-radius:50%;width:10px;height:10px;display:inline-block}.test-card{--tone:var(--primary);border:1px solid var(--border);background:var(--white);border-radius:12px;flex-direction:column;display:flex}.test-card.listening{--tone:#c2410c}.test-card-cover{height:150px;color:var(--tone);background:#e6e9f8 50%/cover no-repeat;border-radius:12px 12px 0 0;place-items:center;display:grid;position:relative}.test-card.listening .test-card-cover{background-color:#fdebd9}.test-card-skill-mark{font-size:20px;font-weight:700}.cover-chip{color:var(--white);background:#111836b8;border-radius:12px 0 8px;padding:5px 10px;font-size:12px;font-weight:700;position:absolute;top:0;left:0}.draft-chip{background:var(--white);color:var(--text);border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600;position:absolute;top:8px;right:8px}.kind-tag{background:var(--tone);color:var(--white);border-radius:0 10px 0 0;padding:5px 12px;font-size:13px;font-weight:700;position:absolute;bottom:0;left:0}.band-stamp{width:34px;color:var(--white);text-align:center;clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 7px),0 100%);background:linear-gradient(90deg,#c73b2c,#8e271c);padding:12px 0 14px;font-size:13px;font-weight:700;position:absolute;top:-6px;right:14px}.test-card-body{flex-direction:column;flex:1;padding:14px 16px 16px;display:flex}.test-card-body h3{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 8px;font-size:16px;line-height:1.35;display:-webkit-box;overflow:hidden}.test-card-types{color:var(--text-muted);flex:1;margin:0 0 14px;padding:0;font-size:13px;line-height:1.7;list-style:none}.test-card-types li:before{content:"• "}.test-card-types li.muted:before{content:""}.test-card-actions{align-items:center;gap:8px;display:flex}.test-card-actions .primary-button{flex:1;justify-content:center}.card-menu{position:relative}.card-menu-button{border:1px solid var(--border);background:var(--white);border-radius:8px;width:38px;height:38px;font-size:18px;line-height:1}.card-menu-list{z-index:20;border:1px solid var(--border);background:var(--white);border-radius:10px;flex-direction:column;width:160px;padding:6px;display:flex;position:absolute;bottom:calc(100% + 6px);right:0;box-shadow:0 10px 30px #141a3329}.card-menu-list a,.card-menu-list button{color:var(--text);font:inherit;text-align:left;background:0 0;border:0;border-radius:6px;padding:9px 10px;font-size:14px;text-decoration:none}.card-menu-list a:hover,.card-menu-list button:hover{background:#f5f6fb}.card-menu-list .danger{color:#b42318}.mode-choice,.mode-sections{gap:8px;margin:0 0 16px;display:grid}.mode-sections{border:1px solid var(--border);border-radius:10px;padding:12px}.mode-time{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.mode-time select{border:1px solid var(--border);font:inherit;border-radius:8px;padding:6px 10px}.mode-unfinished{background:#fff6dc;border-radius:10px;justify-content:space-between;align-items:center;margin-bottom:12px;padding:10px 12px;display:flex}.mode-unfinished p{margin:0}.mode-error{color:#9b1c1c}.mode-warning{color:#9a3412;background:#fff4e5;border-radius:8px;margin:0 0 12px;padding:8px 12px;font-size:14px}.library-message{color:var(--text-muted)}.library-message.error{color:#9b1c1c}.primary-button.danger{background:#b42318}.library-page{grid-template-columns:260px minmax(0,1fr);align-items:start;gap:28px;display:grid}.page.library-page{max-width:none;padding-left:28px;padding-right:28px}.library-menu{flex-direction:column;gap:12px;max-height:calc(100vh - 97px);display:flex;position:sticky;top:81px;overflow-y:auto}.menu-group{--tone:var(--primary);--tint:var(--primary-soft);border:1px solid var(--border);background:var(--white);border-radius:14px;overflow:hidden}.menu-group.listening{--tone:#c2410c;--tint:#fdeee0}.menu-group.open{border-color:var(--tone)}.menu-group-head{width:100%;color:var(--text);font:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:10px;padding:14px 16px;font-size:16px;font-weight:700;display:flex}.menu-group.open .menu-group-head{background:var(--tint);color:var(--tone)}.menu-caret{margin-left:auto;font-size:12px}.menu-items{flex-direction:column;padding:6px 0 10px;display:flex}.menu-item{color:var(--text);font:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:10px;padding:10px 16px;font-size:15px;display:flex}.menu-item:hover{background:#f5f6fb}.menu-item.active{color:var(--tone);font-weight:700}.menu-dot{box-sizing:border-box;background:var(--white);border:2px solid #c5cad8;border-radius:50%;flex:none;width:16px;height:16px}.menu-item.active .menu-dot{border-color:var(--tone);background:radial-gradient(circle, var(--tone) 0 3.5px, var(--white) 4px)}.menu-select{color:var(--text-muted);align-items:center;gap:8px;padding:6px 16px 6px 42px;font-size:14px;display:flex}.menu-select select{border:1px solid var(--border);background:var(--white);min-width:0;font:inherit;border-radius:6px;flex:1;padding:4px 6px;font-size:13px}.menu-create{color:var(--primary);text-align:center;border:1px dashed #c3c8e2;border-radius:14px;padding:12px 16px;font-weight:700;text-decoration:none}.library-topbar{background:#eceef5;border-radius:12px 12px 0 0;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;padding:8px 8px 0;display:flex}.library-done-tabs{display:flex;position:relative}.done-slider{--curve:10px;box-shadow:inset 0 3px 0 var(--primary)}.done-tab{z-index:1;color:var(--text-muted);font:inherit;background:0 0;border:0;border-radius:10px 10px 0 0;padding:12px 18px;font-size:15px;font-weight:600;transition:color .25s;position:relative}.done-tab.active{color:var(--primary)}.library-search{border:1px solid var(--border);background:var(--white);width:min(420px,100%);color:var(--text-muted);border-radius:999px;align-items:center;gap:8px;margin-bottom:8px;padding:5px 5px 5px 14px;display:flex}.library-search input{min-width:0;font:inherit;border:0;outline:0;flex:1;font-size:15px}.library-search button{background:var(--primary-soft);color:var(--primary);font:inherit;border:0;border-radius:999px;padding:7px 16px;font-size:14px;font-weight:700}.library-history-link{color:var(--primary);align-items:center;gap:8px;margin:16px 0;font-size:16px;font-weight:600;display:inline-flex}.library-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;display:grid}@media (width<=900px){.library-page{grid-template-columns:minmax(0,1fr)}.page.library-page{padding-left:16px;padding-right:16px}.library-menu{max-height:none;position:static}}.new-test-form{gap:16px;max-width:520px;display:grid}.editor-button{border:1px solid var(--border);background:var(--white);color:var(--text);font:inherit;border-radius:8px;padding:8px 14px;font-size:14px;font-weight:600}.editor-button.primary{border-color:var(--primary);background:var(--primary);color:var(--white)}.editor-button.small{padding:5px 10px;font-size:13px}.editor-button:disabled{opacity:.55;cursor:not-allowed}.editor-shell .link-button,.new-test-form .link-button{color:var(--primary);background:0 0;border:none;padding:0;font-size:13px;font-weight:600}.editor-shell .link-button.danger{color:#b42318}.editor-field{gap:6px;margin:0 0 14px;font-size:13px;font-weight:600;display:grid}.editor-field small{color:var(--text-muted);font-weight:400}.editor-field input[type=text],.editor-field textarea{border:1px solid var(--border);background:var(--white);width:100%;font:inherit;border-radius:8px;padding:9px 11px;font-size:14px;font-weight:400}.editor-field textarea:focus,.editor-field input[type=text]:focus{outline:2px solid var(--primary-soft);border-color:var(--primary)}fieldset.editor-field{border:1px solid var(--border);border-radius:10px;padding:12px}.choice-row label{margin-right:20px;font-weight:400}.editor-error{color:#b42318;margin-left:8px;font-size:13px}.editor-shell{background:var(--background);flex-direction:column;height:100vh;display:flex}.editor-topbar{border-bottom:1px solid var(--border);background:var(--white);align-items:center;gap:14px;padding:10px 24px;display:flex}.editor-close{border:1px solid var(--border);width:40px;height:40px;color:var(--text);border-radius:50%;flex:none;place-items:center;text-decoration:none;display:grid}.editor-close:hover{border-color:var(--primary);color:var(--primary)}.editor-thumb{width:72px;height:48px;color:var(--text-muted);background:#f1f3f9 50%/cover no-repeat;border:1px dashed #c3c8e2;border-radius:8px;flex:none;place-items:center;font-size:11px;display:grid}.editor-name{flex:1;min-width:0}.editor-title{width:100%;font:inherit;background:0 0;border:none;border-bottom:2px solid #0000;padding:2px 0;font-size:17px;font-weight:700}.editor-title:focus{border-bottom-color:var(--primary);outline:none}.editor-meta{color:var(--text-muted);align-items:center;gap:8px;margin:2px 0 0;font-size:12px;display:flex}.status-chip{background:var(--primary-soft);color:var(--primary);border-radius:999px;padding:1px 8px;font-size:12px;font-weight:600}.status-chip.published{color:#2e7d32;background:#e2f2de}.editor-header-actions{align-items:center;gap:10px;display:flex}.missing-pill{color:#8a5a00;font:inherit;background:#fff4d6;border:1px solid #f0c75e;border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600}.editor-settings{border-bottom:1px solid var(--border);background:var(--white);color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:12px 28px;padding:10px 24px;font-size:13px;display:flex}.setting{align-items:center;gap:8px;display:flex}.setting-chip{background:var(--primary-soft);color:var(--primary);border-radius:8px;padding:5px 12px;font-weight:600}.setting input[type=number]{border:1px solid var(--border);width:64px;font:inherit;border-radius:6px;padding:5px 8px}.editor-message{color:var(--text);background:#e6e9f8;border-radius:8px;margin:0 0 0 auto;padding:6px 12px}.editor-message.error{color:#9b1c1c;background:#fde8e8}.editor-body{flex:1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:0;display:grid}.passage-pane{border-right:1px solid var(--border);background:var(--white);flex-direction:column;min-height:0;display:flex}.passage-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 20px;display:flex}.passage-tabs{gap:6px;display:flex}.passage-tab{border:1px solid var(--border);background:var(--white);color:var(--text-muted);font:inherit;border-radius:8px;padding:6px 12px;font-size:13px;font-weight:600}.passage-tab.active{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}.passage-scroll{flex:1;padding:20px 32px 40px;overflow-y:auto}.passage-edit textarea{font-family:"Source Serif 4",Georgia,serif;font-size:15px;line-height:1.6}.evidence-banner{color:#6b4e00;background:#fff8db;border:1px solid #f3dc8f;border-radius:10px;margin-bottom:20px;padding:12px 16px;font-size:13px}.evidence-banner p{margin:0}.evidence-banner-action{border-top:1px dashed #e8cf78;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;padding-top:10px;display:flex}.evidence-banner-action span{font-style:italic}.passage-audio{width:100%;margin-bottom:16px}.passage-empty{border:1px dashed var(--border);color:var(--text-muted);text-align:center;border-radius:10px;padding:24px}.passage-view{font-family:"Source Serif 4",Georgia,serif;font-size:16px;line-height:1.85}.passage-view h2{text-align:center;margin:0 0 18px;font-family:Be Vietnam Pro,system-ui,sans-serif;font-size:22px}.passage-paragraph{grid-template-columns:28px 1fr;margin-bottom:16px;display:grid}.passage-paragraph p{grid-column:2;margin:0}.paragraph-label{color:var(--text-muted);font-family:Be Vietnam Pro,system-ui,sans-serif;font-weight:700}.evidence-mark{border-bottom:2px dotted #7d89c9}.evidence-mark.active{background:#fff1b8;border-bottom-style:solid;border-bottom-color:#e0a800}.questions-pane{min-height:0;padding:20px 24px 40px;overflow-y:auto}.group-editor{border:1px solid var(--border);background:var(--white);border-radius:14px;margin-bottom:20px;padding:18px 20px}.group-editor-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.group-editor-header h3{margin:0;font-size:16px}.group-type{border:1px solid var(--border);border-radius:8px;padding:6px 12px;font-size:13px;font-weight:600}.group-editor-footer{justify-content:space-between;align-items:center;margin-top:12px;display:flex}.question-list{flex-direction:column;gap:8px;display:flex}.question-editor{border:1px solid var(--border);background:var(--white);border-radius:10px}.question-editor.open{border:2px solid var(--primary)}.question-row{width:100%;color:var(--text);font:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:10px;padding:10px 14px;font-size:14px;display:flex}.question-number{border:1px solid var(--border);width:28px;height:28px;color:var(--primary);border-radius:50%;flex:none;place-items:center;font-size:13px;font-weight:700;display:grid}.question-row-prompt{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.row-chip{border-radius:999px;flex:none;padding:2px 8px;font-size:12px;font-weight:600}.row-chip.answer{color:#1e6b2a;background:#e4f3e4}.row-chip.missing{color:#b42318;background:#fdecea}.row-chip.evidence{color:#8a5a00;background:#fff1c2}.question-body{padding:4px 16px 14px 52px}.question-body-footer{justify-content:flex-end;display:flex}.answer-pills{flex-wrap:wrap;gap:8px;display:flex}.answer-pill{border:1px solid var(--border);background:var(--white);font:inherit;border-radius:999px;padding:7px 16px;font-size:13px;font-weight:600}.answer-pill.selected{color:#1e6b2a;background:#e4f3e4;border-color:#2e9d4a}.options-editor{font-weight:400}.option-row{align-items:center;gap:8px;margin-bottom:6px;display:flex}.option-row input[type=text]{border:1px solid var(--border);font:inherit;border-radius:6px;flex:1;padding:6px 8px}.audio-row{align-items:center;gap:12px;font-weight:400;display:flex}.add-group-row{gap:8px;margin:8px 0 20px;display:flex}.add-group-row select{border:1px solid var(--border);background:var(--white);font:inherit;border-radius:8px;padding:8px 10px}.evidence-attached{align-items:flex-start;gap:10px;display:flex}.evidence-quote{white-space:pre-wrap;background:#fffbea;border-left:4px solid #f5c400;border-radius:6px;flex:1;margin:0;padding:8px 12px;font-size:13px;font-weight:400}.evidence-quote.broken{color:#b42318;background:#fdecea;border-left-color:#b42318}.evidence-empty{color:var(--text-muted);margin:0;font-size:13px;font-weight:400}@media (width<=900px){.editor-shell{height:auto}.editor-topbar{flex-wrap:wrap}.editor-body{grid-template-columns:1fr}.passage-pane{border-right:0;border-bottom:1px solid var(--border)}.passage-scroll{max-height:60vh}}.classes-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;display:flex}.classes-actions{gap:8px;display:flex}.classes-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:8px;display:flex}.classes-search{border:1px solid var(--border);background:var(--white);width:260px;max-width:100%;font:inherit;border-radius:10px;padding:10px 14px;font-size:14px}.classes-section h2{margin:24px 0 12px;font-size:17px}.classes-section h2 span{color:var(--text-muted);font-weight:500}.classes-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;display:grid}.class-card{border:1px solid var(--border);background:var(--white);border-radius:14px;flex-direction:column;display:flex;overflow:hidden}.class-card-head{color:var(--white);padding:18px 18px 22px}.class-card-chip{background:#ffffff38;border-radius:999px;padding:2px 9px;font-size:11px;font-weight:700;display:inline-block}.class-card-head h3{margin:10px 0 4px;font-size:18px}.class-card-head p{opacity:.9;margin:0;font-size:13px}.class-card-body{flex-direction:column;flex:1;gap:14px;padding:16px 18px 18px;display:flex}.class-stats{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.class-stats div{background:#f1f3f9;border-radius:10px;flex-direction:column;align-items:center;padding:10px 6px;display:flex}.class-stats div.highlight{color:#c2410c;background:#fdf1e8}.class-stats strong{font-size:18px}.class-stats small{color:var(--text-muted);font-size:12px}.class-code-row{color:var(--text-muted);align-items:center;gap:8px;font-size:13px;display:flex}.class-code-row code{background:var(--primary-soft);color:var(--primary);letter-spacing:.12em;border-radius:6px;padding:3px 8px;font-weight:700}.class-copy-button{border:1px solid var(--border);background:var(--white);color:var(--primary);font:inherit;border-radius:6px;padding:4px 10px;font-size:12px;font-weight:600}.class-enter{color:var(--primary);margin-top:auto;font-size:14px;font-weight:700;text-decoration:none}.class-enter:hover{text-decoration:underline}.class-teacher{color:var(--text-muted);align-items:center;gap:8px;margin:0;font-size:13px;display:flex}.class-teacher strong{color:var(--text)}.class-teacher-avatar{width:26px;height:26px;color:var(--primary);background:#e3e6f3;border-radius:50%;place-items:center;font-size:10px;font-weight:700;display:inline-grid}.class-due{border-radius:10px;flex-direction:column;gap:2px;padding:10px 12px;font-size:13px;display:flex}.class-due.soon{background:#fff6dc}.class-due.soon strong{color:#8a5a00}.class-due.urgent{background:#fdecee}.class-due.urgent strong{color:#b42318}.class-due.done{background:#e4f3e4}.class-due.done strong{color:#1e6b2a}.class-progress-label{color:var(--text-muted);justify-content:space-between;margin-bottom:-8px;font-size:12px;display:flex}.class-progress-label strong{color:var(--text)}.class-progress{background:#e8eaf4;border-radius:999px;height:6px;overflow:hidden}.class-progress span{border-radius:inherit;background:var(--primary);height:100%;display:block}.class-form{flex-direction:column;gap:14px;display:flex}.class-form label{flex-direction:column;gap:6px;font-size:14px;font-weight:600;display:flex}.class-form input,.class-form textarea{border:1px solid var(--border);font:inherit;border-radius:8px;padding:8px 10px;font-weight:400}.class-code-input{letter-spacing:.3em;text-align:center;font-size:20px!important}.class-colors{border:none;gap:10px;margin:0;padding:0;display:flex}.class-colors legend{margin-bottom:6px;font-size:14px;font-weight:600}.color-swatch{border:3px solid #0000;border-radius:50%;width:32px;height:32px}.color-swatch.selected{border-color:var(--text)}.form-error{color:#9b1c1c;margin:0}.classes-header .page-heading{margin-bottom:0}.class-back{color:var(--primary);margin-bottom:14px;font-size:14px;font-weight:600;text-decoration:none;display:inline-block}.class-hero{color:var(--white);border-radius:16px;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px;padding:24px 28px;display:flex}.class-hero-chip{background:#ffffff38;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700;display:inline-block}.class-hero h1{margin:8px 0 4px;font-size:28px}.class-hero p{opacity:.9;margin:0}.class-hero-meta{font-size:14px}.class-hero-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.class-code{align-items:center;gap:10px;display:flex}.class-code-label{opacity:.85;font-size:13px}.class-code strong{letter-spacing:.15em;background:#fff3;border-radius:8px;padding:4px 10px;font-size:16px}.class-hero-button{background:var(--white);color:var(--primary);font:inherit;border:0;border-radius:10px;padding:10px 16px;font-weight:700}.class-hero-outline{color:var(--white);font:inherit;background:0 0;border:1px solid #fff9;border-radius:10px;padding:9px 14px;font-weight:600}.class-hero-outline.small{padding:5px 10px;font-size:13px}.underline-tabs{border-bottom:1px solid var(--border);gap:4px;margin-bottom:20px;display:flex;overflow-x:auto}.underline-tab{color:var(--text-muted);font:inherit;white-space:nowrap;background:0 0;border:0;border-bottom:3px solid #0000;padding:10px 16px;font-size:15px;font-weight:600}.underline-tab.active{border-bottom-color:var(--primary);color:var(--primary)}.assignment-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.assignment-card{border:1px solid var(--border);background:var(--white);border-radius:12px;align-items:center;gap:24px;padding:16px 20px;display:flex}.assignment-main{flex:1;min-width:0}.assignment-main h3{margin:6px 0 2px;font-size:16px}.assignment-main p{color:var(--text-muted);margin:0;font-size:13px}.assignment-chips{flex-wrap:wrap;gap:6px;display:flex}.assignment-progress{width:220px}.assignment-progress-label{color:var(--text-muted);justify-content:space-between;margin-bottom:6px;font-size:13px;display:flex}.assignment-progress-label strong{color:var(--text)}.assignment-bar{background:#e8eaf4;border-radius:999px;height:6px;overflow:hidden}.assignment-bar span{border-radius:inherit;background:var(--primary);height:100%;display:block}.assignment-average{flex-direction:column;align-items:center;width:90px;display:flex}.assignment-average strong{font-size:20px}.assignment-average small{color:var(--text-muted);font-size:12px}.assignment-actions{flex-direction:column;align-items:flex-end;gap:4px;display:flex}.link-button{color:var(--primary);font:inherit;background:0 0;border:0;padding:0;font-size:14px;font-weight:700}.link-button.muted{color:var(--text-muted);font-size:12px;font-weight:500}@media (width<=760px){.assignment-card{flex-wrap:wrap;gap:12px}.assignment-main,.assignment-progress{flex-basis:100%;width:100%}}.class-library-toolbar{justify-content:flex-end;margin-bottom:12px;display:flex}.class-test-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.class-test-row{border:1px solid var(--border);border-radius:var(--radius);background:var(--white);align-items:center;gap:14px;padding:12px 16px;display:flex}.class-test-row h3{margin:0;font-size:16px}.class-test-row p{color:var(--text-muted);margin:2px 0 0;font-size:13px}.class-test-info{flex:1}.skill-dot{border-radius:50%;width:10px;height:10px}.skill-dot.reading{background:var(--reading)}.skill-dot.listening{background:var(--listening)}.class-test-band{color:var(--primary);font-weight:700}.pick-list{flex-direction:column;gap:8px;max-height:320px;margin-bottom:16px;display:flex;overflow-y:auto}.pick-list label{align-items:center;gap:8px;display:flex}.gradebook-scroll{border:1px solid var(--border);border-radius:var(--radius);background:var(--white);overflow-x:auto}.gradebook{border-collapse:collapse;width:100%;font-size:14px}.gradebook th,.gradebook td{border-bottom:1px solid var(--border);text-align:center;white-space:nowrap;padding:10px 12px}.gradebook th:first-child,.gradebook td:first-child{background:var(--white);text-align:left;position:sticky;left:0}.gradebook a{color:var(--primary);font-weight:600}.gradebook .empty-cell{color:var(--text-muted)}.member-list{margin:0;padding:0;list-style:none}.member-row{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:10px 0;display:flex}.member-row img,.member-avatar{object-fit:cover;border-radius:50%;width:36px;height:36px}.member-avatar{background:var(--primary);color:var(--white);place-items:center;font-weight:700;display:grid}.member-info{flex:1}.member-info p{color:var(--text-muted);margin:0;font-size:13px}.role-chip{background:var(--background);border-radius:999px;padding:2px 10px;font-size:12px}.assignment-group-title{color:var(--text-muted);margin:20px 0 10px;font-size:15px}.assignment-count{color:var(--primary);font-weight:600}.assignment-status{background:var(--background);border-radius:999px;padding:2px 10px;font-size:12px;font-weight:600}.assignment-status.submitted{color:#2f7a3b;background:#e6f4ea}.assignment-status.late{color:#c2410c;background:#fff4e5}.assignment-status.missed{color:#b42318;background:#fdecea}.checkbox-label{align-items:center;flex-direction:row!important;font-weight:400!important}.class-form select{border:1px solid var(--border);font:inherit;border-radius:8px;padding:8px 10px;font-weight:400}.vocab-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.vocab-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;display:grid}.vocab-card{--set-color:var(--primary);border:1px solid var(--border);background:var(--white);color:var(--text);border-radius:14px;flex-direction:column;text-decoration:none;display:flex;overflow:hidden}.vocab-card:hover{border-color:var(--set-color)}.vocab-cover{background:var(--set-color) center / cover no-repeat;height:96px}.vocab-card-body{flex-direction:column;flex:1;padding:14px 18px 16px;display:flex}.vocab-card-body h3{margin:0 0 6px;font-size:17px}.vocab-card-body p{color:var(--text-muted);flex:1;margin:0 0 12px;font-size:13px;line-height:1.5}.vocab-count{color:var(--set-color);align-self:flex-end;font-size:13px;font-weight:700}.vocab-add-card{min-height:200px;color:var(--primary);font:inherit;background:0 0;border:1px dashed #c3c8e2;border-radius:14px;font-weight:700}.vocab-add-card:hover{background:var(--primary-soft)}.vocab-cover-field{align-items:center;gap:12px;font-size:14px;font-weight:600;display:flex}.vocab-cover-field img{object-fit:cover;border-radius:6px;width:64px;height:40px}.vocab-set-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.vocab-search{border:1px solid var(--border);background:var(--white);width:240px;font:inherit;border-radius:8px;padding:9px 12px;font-size:14px}.danger-text{color:#b42318!important}.vocab-table-wrap{border:1px solid var(--border);background:var(--white);border-radius:12px;overflow-x:auto}.vocab-table{border-collapse:collapse;width:100%;font-size:14px}.vocab-table th{text-align:left;background:#f5f6fb;padding:12px 18px;font-size:13px}.vocab-table td{border-top:1px solid var(--border);padding:12px 18px}.vocab-table tbody tr{cursor:pointer}.vocab-table tbody tr:hover,.vocab-table tbody tr.selected{background:#f1f3f9}.vocab-note{color:var(--text-muted)}.type-tag{color:var(--text-muted);background:#e8eaf4;border-radius:4px;margin-left:6px;padding:1px 6px;font-size:11px;font-weight:600}.drawer-backdrop{z-index:40;background:#1a153059;position:fixed;inset:0}.drawer{background:var(--white);flex-direction:column;width:min(460px,100%);animation:.22s ease-out drawer-in;display:flex;position:absolute;top:0;bottom:0;right:0;box-shadow:-12px 0 40px #1a153033}@keyframes drawer-in{0%{opacity:0;transform:translate(40px)}}.word-form{flex-direction:column;flex:1;min-height:0;display:flex}.drawer-header{border-bottom:1px solid var(--border);align-items:center;gap:14px;padding:18px 22px;display:flex}.drawer-header h2{margin:0;font-size:18px}.drawer-close{background:0 0;border:0;font-size:18px}.drawer-body{flex:1;padding:22px;overflow-y:auto}.drawer-footer{border-top:1px solid var(--border);justify-content:space-between;padding:14px 22px;display:flex}.word-title{align-items:center;gap:10px;display:flex}.word-title h3{margin:0;font-size:30px}.type-chip{background:var(--primary-soft);color:var(--primary);border-radius:6px;padding:2px 8px;font-size:12px;font-weight:700}.word-meaning{color:var(--text-muted);margin:4px 0 18px;font-size:18px}.word-block{background:#f1f3f9;border-radius:10px;margin-bottom:14px;padding:12px 16px}.word-block small{color:var(--text-muted);letter-spacing:.05em;text-transform:uppercase;font-size:11px;font-weight:700}.word-block p{margin:4px 0 0}.word-block.example p{font-style:italic}@media (prefers-reduced-motion:reduce){.drawer{animation:none}}.history-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px;display:grid}.history-stat{background:var(--white);border-radius:12px;flex-direction:column;gap:2px;padding:14px 16px;display:flex}.history-stat.reading{background:#e6e9f8}.history-stat.listening{background:#fdeee0}.history-stat small{color:var(--text-muted);font-size:13px}.history-stat strong{font-size:26px;line-height:1.2}.history-stat.reading strong{color:var(--primary)}.history-stat.listening strong{color:#c2410c}.history-stat span{color:var(--text-muted);font-size:12px}.history-unfinished h2,.history-group h2{margin:0 0 10px;font-size:16px}.history-unfinished{margin-bottom:20px}.unfinished-card{background:#fff8e1;border:1px solid #f3dc8f;border-radius:12px;align-items:center;gap:16px;margin-bottom:8px;padding:14px 18px;display:flex}.unfinished-info{flex-direction:column;flex:1;display:flex}.unfinished-info span{color:#6b4e00;font-size:13px}.history-filters{border:1px solid var(--border);background:var(--white);border-radius:12px;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px;padding:12px 14px;display:flex}.history-filters select{border:1px solid var(--border);background:var(--white);font:inherit;border-radius:8px;padding:8px 12px}.history-search{border:1px solid var(--border);min-width:180px;max-width:260px;font:inherit;border-radius:8px;flex:1;margin-left:auto;padding:9px 12px}.history-group{margin-bottom:24px}.history-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:0;padding:0;list-style:none;display:grid}.history-card{--tone:var(--primary);--tint:#e3e7f8;border:1px solid var(--border);background:var(--white);border-radius:12px;overflow:hidden}.history-card.listening{--tone:#c2410c;--tint:#fbe6d9}.history-cover{background:var(--tint) center / cover no-repeat;height:112px;color:var(--tone);place-items:center;display:grid;position:relative}.source-chip{background:var(--white);max-width:70%;color:var(--text);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:600;position:absolute;top:10px;left:10px;overflow:hidden}.source-chip.class{background:var(--yellow)}.band-ribbon{color:var(--white);clip-path:polygon(0 0,100% 0,100% 100%,50% 78%,0 100%);background:#b42318;padding:8px 7px 12px;font-size:13px;font-weight:700;position:absolute;top:-4px;right:14px}.mode-tag{background:var(--tone);color:var(--white);border-radius:0 6px 0 0;padding:4px 10px;font-size:12px;font-weight:700;position:absolute;bottom:0;left:0}.history-card-body{padding:12px 14px 14px}.history-card-body h3{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:16px;overflow:hidden}.history-card-body p{color:var(--text-muted);margin:4px 0 12px;font-size:13px}.history-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.history-actions>*{text-align:center;justify-content:center}.history-more{margin:20px auto 0;display:block}@media (width<=900px){.history-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}.split-pane{min-height:0;display:grid}.split-pane-part{min-width:0;min-height:0;overflow:auto}.split-pane-part>*{height:100%}.split-pane-bar{background:var(--border);touch-action:none;position:relative}.split-pane.columns>.split-pane-bar{cursor:col-resize}.split-pane.rows>.split-pane-bar{cursor:row-resize}.split-pane-bar:after{content:"";background:var(--text-muted);border-radius:2px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.split-pane.columns>.split-pane-bar:after{width:2px;height:32px}.split-pane.rows>.split-pane-bar:after{width:32px;height:2px}.split-pane-bar:hover,.split-pane-bar:focus-visible{background:var(--primary);outline:none}@media (width<=900px){.split-pane{flex-direction:column;display:flex}.split-pane-part{flex:1}.split-pane-bar{display:none}}.attempt-page{background:var(--white);flex-direction:column;height:100vh;display:flex}.attempt-header{background:var(--primary);color:var(--white);align-items:center;gap:16px;padding:10px 24px;display:flex}.attempt-header h1{flex:1;margin:0;font-size:18px}.attempt-clock{font-variant-numeric:tabular-nums;background:#ffffff26;border-radius:8px;padding:4px 12px;font-size:18px;font-weight:700}.attempt-clock.warning{background:var(--yellow);color:var(--text)}.submit-button{background:var(--yellow);border:none;border-radius:999px;padding:8px 16px;font-weight:600}.attempt-error{color:#9b1c1c;margin:8px 24px}.section-tabs{border-bottom:1px solid var(--border);gap:4px;padding:8px 24px 0;display:flex}.section-tab{color:var(--text-muted);background:0 0;border:none;border-radius:8px 8px 0 0;padding:8px 16px}.section-tab.active{background:var(--background);color:var(--primary);font-weight:600}.attempt-reading{flex:1;min-height:0;display:flex}.attempt-reading>.split-pane{flex:1}.attempt-passage,.attempt-questions{padding:20px 24px;overflow-y:auto}.attempt-passage{border-right:1px solid var(--border);line-height:1.7}.attempt-listening{flex:1;grid-template-rows:auto 1fr;min-height:0;display:grid}.attempt-audio{width:calc(100% - 48px);margin:16px 24px 0}.question-group{margin-bottom:28px}.question-instruction{font-weight:600}.question{margin-bottom:16px}.question-prompt{margin:0 0 8px}.question-number{min-width:26px;height:26px;color:var(--primary);background:#e6e9f8;border-radius:6px;place-items:center;margin-right:6px;font-size:13px;font-weight:700;display:inline-grid}.answer-options{gap:6px;padding-left:32px;display:grid}.answer-text{border:1px solid var(--border);font:inherit;border-radius:8px;margin-left:32px;padding:6px 10px}.question-navigator{border-top:1px solid var(--border);flex-wrap:wrap;gap:6px;padding:10px 24px;display:flex}.navigator-dot{border:1px solid var(--border);background:var(--white);border-radius:8px;width:32px;height:32px;font-size:13px}.navigator-dot.answered{border-color:var(--primary);background:var(--primary);color:var(--white)}@media (width<=800px){.attempt-passage{border-right:none;border-bottom:1px solid var(--border)}}.audio-player{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.audio-player .attempt-audio{flex:1;min-width:260px}.audio-speeds{gap:4px;display:flex}.speed-button{border:1px solid var(--border);background:var(--white);cursor:pointer;border-radius:999px;padding:4px 10px;font-size:13px}.speed-button.active{border-color:var(--primary);background:var(--primary);color:var(--white)}.review-chip{background:var(--yellow);border-radius:999px;padding:4px 10px;font-size:13px;font-weight:600}.review-summary{border:1px solid var(--border);border-radius:var(--radius);background:var(--white);margin:12px 24px;padding:12px 16px}.review-summary summary{cursor:pointer;font-size:16px}.review-summary ul{color:var(--text-muted);margin:8px 0 0;padding-left:20px;font-size:14px}.review-band{background:var(--primary);color:var(--white);border-radius:999px;margin-left:12px;padding:2px 10px;font-weight:700}.marked-text{white-space:pre-wrap;line-height:1.7}.marked-text mark{background:#fde68a;border-radius:3px;padding:0 2px}.review-transcript{background:var(--white);padding:12px 24px;overflow-y:auto}.review-transcript h3{margin:0 0 8px;font-size:15px}.review-question{border-left:4px solid var(--border);cursor:pointer;border-radius:8px;padding:10px 12px}.review-question.correct{border-left-color:#2f7a3b}.review-question.wrong{border-left-color:#b42318}.review-question.selected{background:#eef1ff}.review-line{margin:4px 0;font-size:14px}.review-status{min-width:64px;color:var(--white);text-align:center;border-radius:999px;margin-right:8px;padding:1px 8px;font-size:12px;font-weight:700;display:inline-block}.review-status.correct{background:#2f7a3b}.review-status.wrong{background:#b42318}.review-status.blank{background:var(--text-muted)}.review-explanation{background:var(--white);border-radius:8px;margin-top:8px;padding:10px 12px;font-size:14px}.review-explanation ol{margin:0;padding-left:20px}.review-muted,.review-hint{color:var(--text-muted);font-size:13px}.review-hint{margin:0 24px 8px}.navigator-dot.review-correct{color:var(--white);background:#2f7a3b;border-color:#2f7a3b}.navigator-dot.review-wrong{color:var(--white);background:#b42318;border-color:#b42318}.ai-feedback{border-radius:var(--radius);background:#f5f7ff;border:1px solid #d3dafa;margin:0 24px 12px;padding:12px 16px;font-size:14px}.ai-feedback h2{margin:0 0 6px;font-size:16px}.ai-feedback p{margin:4px 0}.ai-feedback ul{margin:6px 0;padding-left:20px}.ai-feedback-note{color:var(--text-muted);font-size:12px}.logo-flight{z-index:100;pointer-events:none;position:fixed;inset:0}.logo-flight-backdrop{opacity:0;background:radial-gradient(circle,#1d2766 0%,#0b1028 70%);position:absolute;inset:0}.logo-flight-cube{transform-origin:50%;position:absolute;top:0;left:0}.logo-flight .rl-light{--rl-bg:#111836}.logo-flight .rl-cube{animation:rl-spin-steady var(--spin-ms) linear infinite}@keyframes rl-spin-steady{0%{transform:rotate3d(1,1,0,0)rotateX(-35.26deg)rotateY(-45deg)}to{transform:rotate3d(1,1,0,360deg)rotateX(-35.26deg)rotateY(-45deg)}}.logo-flying .login-brand .rl-scene,.logo-flying .app-logo .rl-scene{visibility:hidden}:root{--primary:#283593;--primary-dark:#1a237e;--primary-soft:#e8eaf6;--nav:#111836;--yellow:#ffc531;--reading:#283593;--listening:#c2410c;--overall:#2f7a3b;--text:#141a33;--text-muted:#4d5470;--border:#d9dcec;--background:#f5f6fb;--white:#fff;--radius:12px;color:var(--text);background:var(--background);font-family:Be Vietnam Pro,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{margin:0}a{color:inherit}button{font:inherit;cursor:pointer}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.page{max-width:1200px;margin:0 auto;padding:32px 24px}.primary-button,.secondary-button{border-radius:8px;padding:8px 14px;font-size:14px;font-weight:600;text-decoration:none}.primary-button{background:var(--primary);color:var(--white);border:none}.primary-button:disabled{opacity:.5;cursor:not-allowed}.secondary-button{border:1px solid var(--border);background:var(--white);color:var(--text)}.dialog-backdrop{z-index:50;background:#1e164073;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.dialog{background:var(--white);border-radius:16px;width:min(460px,100%);padding:24px}.dialog h2{margin:0 0 16px;font-size:20px}.dialog-actions{justify-content:flex-end;gap:8px;display:flex}.page-heading{margin-bottom:20px}.page-heading h1{margin:0;font-size:26px;font-weight:700}.page-subtitle{color:var(--text-muted);margin:4px 0 0;font-size:14px}.segmented{background:#e8eaf4;border-radius:10px;gap:4px;padding:4px;display:inline-flex}.segmented-tab{color:var(--text-muted);font:inherit;background:0 0;border:0;border-radius:8px;padding:8px 14px;font-size:14px;font-weight:600}.segmented-tab.active{background:var(--white);color:var(--primary);box-shadow:0 1px 3px #1a15301a}.segmented-count{color:var(--text-muted);margin-left:4px;font-size:12px;font-weight:500}.chip{color:var(--text-muted);background:#eef0f6;border-radius:6px;padding:2px 8px;font-size:12px;font-weight:600}.chip.reading{background:var(--primary-soft);color:var(--primary)}.chip.listening{color:#c2410c;background:#fdeee4}.chip.open{color:#1e6b2a;background:#e4f3e4}
