.tool-page{min-height:100vh;background:linear-gradient(180deg,#f2fcf9 0,#fff 54%);color:var(--ink)}
.tool-page button{font-family:inherit}.tool-header{border-bottom:1px solid rgba(36,48,74,.07)}
.test-shell{width:min(1080px,calc(100% - 56px));margin:0 auto;min-height:calc(100vh - 85px);display:grid;align-items:center;padding:56px 0 90px}
.test-state{width:100%}.hidden{display:none!important}
.intro-state{display:grid;grid-template-columns:1.12fr .88fr;gap:80px;align-items:center}.intro-copy{max-width:660px}.section-label{margin:0;color:var(--teal);font-size:13px;font-weight:850;letter-spacing:.14em}.intro-copy h1{margin:14px 0 25px;font-size:clamp(48px,5.6vw,72px);line-height:1.12;letter-spacing:-.065em}.intro-description{margin:0;max-width:620px;color:var(--muted);font-size:17px;line-height:1.85}.intro-actions,.result-actions{display:flex;align-items:center;gap:16px;margin-top:34px}
.grade-field{display:grid;gap:8px;margin-top:26px;max-width:460px}.grade-field>span{font-size:13px;font-weight:850;color:var(--ink)}.grade-field select{width:100%;height:52px;border:1px solid #d6e1df;border-radius:14px;padding:0 15px;background:#fff;color:var(--ink);font:750 15px/1 inherit;outline:none}.grade-field select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(40,187,165,.14)}.grade-field small{color:var(--muted);font-size:11px;line-height:1.6}
.primary-action,.quiet-action{min-height:52px;border-radius:14px;padding:0 22px;border:0;font-size:15px;font-weight:850;cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s}.primary-action{display:inline-flex;align-items:center;justify-content:center;gap:18px;background:var(--red);color:#fff;box-shadow:0 8px 0 #f1c6bb,0 16px 28px rgba(255,90,80,.16)}.primary-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.primary-action:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 0 #f1c6bb,0 19px 32px rgba(255,90,80,.2)}.primary-action:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.quiet-action{background:#fff;color:var(--ink);border:1px solid #dce2e5}.quiet-action:hover{border-color:#aeb9bd;background:#f9fbfb}
.pool-summary{background:#fff;border:1px solid #dfeae7;border-radius:28px;padding:32px;box-shadow:0 24px 70px rgba(36,48,74,.09)}.pool-total{display:flex;align-items:end;gap:12px;padding-bottom:24px;border-bottom:1px solid #e9eeed}.pool-total strong{font-size:56px;line-height:.9;letter-spacing:-.06em;color:var(--teal)}.pool-total span{font-size:14px;font-weight:750;color:var(--muted)}.pool-summary dl{margin:22px 0;display:grid;gap:12px}.pool-summary dl div{display:flex;justify-content:space-between}.pool-summary dt{color:var(--muted);font-size:13px}.pool-summary dd{margin:0;font-weight:850}.excluded-groups{display:flex;flex-wrap:wrap;gap:7px}.excluded-groups span{padding:7px 10px;border-radius:9px;background:#f1f7f5;color:#55716d;font-size:11px;font-weight:750}.pool-summary>p{margin:18px 0 0;color:#7a858d;font-size:11px;line-height:1.65}
.word-bank-button{height:42px;border:0;border-radius:999px;padding:0 14px;background:var(--teal);color:#fff;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 5px 14px rgba(40,187,165,.2);transition:.18s}.word-bank-button:hover{background:#20a994;transform:translateY(-1px)}.word-bank-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.word-bank-button b{min-width:22px;height:22px;padding:0 6px;border-radius:20px;display:grid;place-items:center;background:#fff;color:#168a78;font-size:11px}
.question-state{max-width:790px;margin:0 auto}.test-progress{margin-bottom:22px}.test-progress>div:first-child{display:flex;justify-content:space-between;margin-bottom:10px;color:#68758a;font-size:12px;font-weight:750}.progress-track{height:7px;border-radius:20px;background:#dfece8;overflow:hidden}.progress-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--teal),#7dd6c4);border-radius:inherit;transition:width .35s ease}
.question-card{background:#fff;border:1px solid #dfe8e6;border-radius:30px;padding:48px 58px 42px;box-shadow:0 25px 75px rgba(36,48,74,.1)}.question-card>p{text-align:center;margin:0;color:var(--muted);font-size:13px;font-weight:700}.question-card h1{text-align:center;margin:18px 0 38px;font:900 clamp(46px,7vw,68px)/1.1 ui-rounded,"Arial Rounded MT Bold",sans-serif;letter-spacing:-.035em;color:#087a70}.meaning-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.meaning-option,.unknown-option{border:1.5px solid #dfe5e6;background:#fff;color:var(--ink);cursor:pointer;transition:border-color .15s,background .15s,transform .15s}.meaning-option{min-height:64px;border-radius:15px;padding:12px 16px;font-size:16px;font-weight:750}.meaning-option:hover,.meaning-option:focus-visible{border-color:var(--teal);background:#effaf7;transform:translateY(-1px)}.meaning-option:disabled,.unknown-option:disabled{cursor:default;opacity:.7;transform:none}.meaning-option.selected{border-color:var(--teal);background:#e6f8f3}.unknown-option{width:100%;min-height:64px;margin-top:13px;border-style:dashed;border-radius:15px;display:flex;align-items:center;justify-content:space-between;padding:11px 18px;text-align:left}.unknown-option span{font-size:14px;font-weight:800}.unknown-option small{color:#899399;font-size:11px}.unknown-option:hover,.unknown-option:focus-visible,.unknown-option.selected{border-color:var(--red);background:#fff4f1}.restart-link{display:block;margin:22px auto 0;border:0;background:none;color:#8a949c;text-decoration:underline;text-underline-offset:4px;font-size:12px;cursor:pointer}
.result-state{max-width:720px;margin:0 auto;text-align:center}.result-mark{width:70px;height:70px;margin:0 auto 24px;border-radius:22px;display:grid;place-items:center;background:var(--teal);color:#fff;box-shadow:0 9px 0 #c4ebe3}.result-mark svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.result-state h1{font-size:48px;letter-spacing:-.05em;margin:0 0 18px}.result-state>p{max-width:640px;margin:0 auto;color:var(--muted);line-height:1.8}.result-numbers{margin:38px 0 0;display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid #dfe8e6}.result-numbers div{padding:24px 8px}.result-numbers div+div{border-left:1px solid #dfe8e6}.result-numbers strong{display:block;font-size:34px}.result-numbers span{color:var(--muted);font-size:12px}.result-actions{justify-content:center}
.result-state>.result-cumulative{margin-top:18px;font-size:13px}.result-cumulative strong{color:var(--teal)}
.loading-state,.error-state{text-align:center;color:var(--muted);font-size:14px}.error-state{color:var(--red)}
.word-bank-dialog{position:fixed;inset:0 0 0 auto;width:min(440px,100vw);height:100dvh;max-height:none;margin:0;border:0;padding:0;background:#fff;color:var(--ink);box-shadow:-20px 0 70px rgba(22,38,57,.18);transform:translateX(100%);transition:transform .24s ease;overflow:hidden}.word-bank-dialog[open]{display:grid;grid-template-rows:auto 1fr auto;transform:translateX(0)}.word-bank-dialog::backdrop{background:rgba(24,39,55,.3);backdrop-filter:blur(2px)}.drawer-head{padding:27px 25px 20px;display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid #e8edec}.drawer-head h2{margin:0 0 5px;font-size:26px}.drawer-head p{margin:0;color:var(--muted);font-size:12px}.drawer-head p strong{color:var(--teal)}.icon-button{width:38px;height:38px;border:0;border-radius:12px;background:#f1f5f4;color:#62706f;display:grid;place-items:center;cursor:pointer}.icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.drawer-body{overflow:auto;padding:12px 25px}.empty-bank{height:100%;min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted)}.empty-bank>span{width:50px;height:50px;border-radius:17px;background:#e5f8f2;color:var(--teal);display:grid;place-items:center;font-size:23px;font-weight:900;margin-bottom:16px}.empty-bank strong{color:var(--ink);font-size:16px}.empty-bank p{max-width:270px;font-size:12px;line-height:1.7}.word-bank-list{list-style:none;margin:0;padding:0}.word-bank-list li{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid #edf0f0}.word-number{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#f1f7f5;color:#6b7e79;font-size:11px;font-weight:800}.word-copy{min-width:0}.word-copy strong{display:block;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.word-copy span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.word-reason{display:inline-flex!important;color:#a65e56!important;font-size:10px!important;margin-left:7px!important}.remove-word{width:31px;height:31px;border:0;border-radius:10px;background:transparent;color:#97a0a4;cursor:pointer;font-size:19px}.remove-word:hover{background:#fff1ee;color:var(--red)}.drawer-actions{padding:18px 25px 24px;border-top:1px solid #e8edec;display:grid;gap:9px}.copy-button,.clear-bank-button{height:48px;border-radius:13px;font-size:13px;font-weight:800;cursor:pointer}.copy-button{border:0;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;gap:9px}.copy-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.clear-bank-button{border:1px solid #e1e6e6;background:#fff;color:#7b858b}.copy-button:disabled,.clear-bank-button:disabled{opacity:.45;cursor:not-allowed}.toast{position:fixed;left:50%;bottom:26px;z-index:50;transform:translate(-50%,20px);padding:11px 18px;border-radius:12px;background:#24304a;color:#fff;font-size:12px;font-weight:750;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:900px){.intro-state{grid-template-columns:1fr;gap:42px}.intro-copy{text-align:center;margin:auto}.intro-description{margin:auto}.grade-field{margin-inline:auto;text-align:left}.intro-actions{justify-content:center}.pool-summary{max-width:620px;margin:auto;width:100%}.test-shell{align-items:start;padding-top:65px}.question-state{max-width:700px}}
@media(max-width:600px){.tool-header{width:calc(100% - 24px)}.tool-header .home-brand>span:last-child{display:none}.word-bank-button{padding:0 11px}.word-bank-button>span{display:none}.test-shell{width:calc(100% - 28px);padding:34px 0 65px;min-height:calc(100vh - 73px)}.intro-state{gap:30px}.intro-copy h1{font-size:42px;margin-top:10px}.intro-description{font-size:15px}.intro-actions{flex-direction:column;align-items:stretch}.primary-action,.quiet-action{width:100%}.pool-summary{padding:25px;border-radius:22px}.pool-total strong{font-size:48px}.question-card{padding:34px 18px 25px;border-radius:23px}.question-card h1{font-size:46px;margin:15px 0 28px;overflow-wrap:anywhere}.meaning-options{grid-template-columns:1fr;gap:9px}.meaning-option{min-height:55px;font-size:15px}.unknown-option{align-items:flex-start;flex-direction:column;gap:3px}.result-state h1{font-size:38px}.result-numbers strong{font-size:28px}.result-actions{flex-direction:column}.word-bank-dialog{width:100vw}.drawer-body{padding-inline:19px}.drawer-head,.drawer-actions{padding-inline:19px}}
@media(prefers-reduced-motion:reduce){.word-bank-dialog,.toast,.progress-track i{transition:none}}
