:root{color-scheme:light;--blue:#173fc7;--navy:#12204b;--ink:#172348;--muted:#54617b;--line:#d9e0ed;--pale:#f0f4ff;--yellow:#ffda65;--green:#14613c;--red:#a22634;font-family:Arial,"Leelawadee UI","Noto Sans Thai",sans-serif;font-size:16px;line-height:1.6;background:#f8faff;color:var(--ink)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,label.file-label{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d28b00;outline-offset:3px}a{color:var(--blue)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.topbar{min-height:100px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px max(24px,calc((100vw - 1192px)/2));border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;font-size:25px;font-weight:700;line-height:1.25}.brand-mark{display:grid;place-items:center;background:var(--blue);color:white;width:50px;height:50px;border-radius:13px;font-size:35px;letter-spacing:-2px}.brand-sub{display:block;font-size:12px;letter-spacing:1.6px;margin-top:5px}.topbar nav{display:flex;gap:8px}.nav-button{background:none;border:0;border-radius:10px;padding:11px 21px;font-weight:700}.nav-button span,.text-button span,.primary span,.secondary span{font-size:14px;font-weight:400;display:block}.nav-button.active{color:var(--blue);background:var(--pale)}.text-button{background:none;border:0;color:var(--muted);padding:8px 12px}.primary,.secondary{border-radius:10px;padding:11px 22px;font-weight:700;border:1px solid transparent;line-height:1.4}.primary{background:var(--blue);color:#fff;box-shadow:0 3px 0 #0d2991}.primary:hover{background:#1034ac}.secondary{background:white;color:var(--blue);border-color:var(--line)}.secondary:hover{background:var(--pale)}main{max-width:1240px;margin:auto;padding:34px 24px 0}.intro{background:var(--blue);border-radius:20px;padding:31px 38px;display:flex;align-items:center;justify-content:space-between;gap:24px;color:white;position:relative;overflow:hidden}.eyebrow{font-size:13px;letter-spacing:1.6px;margin:0 0 9px;opacity:.9}h1{font-size:40px;line-height:1.35;margin:0 0 9px;letter-spacing:-.5px}h1 span{color:var(--yellow);margin-left:10px;white-space:nowrap}.intro-text{margin:0;font-size:17px}.intro-text span{margin-left:10px;color:#e0e7ff}.intro .primary{background:var(--yellow);color:var(--navy);box-shadow:0 3px 0 #ddaf30;min-width:155px}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:23px 0 38px;background:white;border:1px solid var(--line);border-radius:14px}.stats>div{padding:17px 27px;border-right:1px solid var(--line);display:flex;align-items:center;gap:15px}.stats>div:last-child{border:0}.stats span{font-size:30px;line-height:1.3;font-weight:700;font-variant-numeric:tabular-nums;color:var(--blue)}.stats p{margin:0;font-size:15px;line-height:1.45}.stats small{display:block;font-size:13px;color:var(--muted)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:19px}h2{font-size:23px;margin:0;line-height:1.5}h2 span{font-size:16px;color:var(--muted);font-weight:400;margin-left:9px}.muted{color:var(--muted);font-size:14px}.filters{display:grid;grid-template-columns:minmax(200px,1fr) 240px 250px;gap:16px;align-items:end}.filters label:not(.search-field),.practice-settings label{font-size:14px;font-weight:700;display:block}.filters label>span,.practice-settings label>span{color:var(--muted);font-weight:400;margin-left:5px}select{width:100%;padding:12px 35px 12px 13px;background:white;border:1px solid var(--line);border-radius:9px;font-size:15px;margin-top:6px;color:var(--ink);min-height:49px}.search-field{display:flex;align-items:center;background:white;border:1px solid var(--line);border-radius:9px;padding:0 15px;min-height:50px}.search-field svg{width:22px;height:22px;fill:none;stroke:var(--muted);stroke-width:1.7;flex-shrink:0}.search-field input{width:100%;border:0;outline:none;padding:12px;color:var(--ink);background:transparent;min-width:0}.tip{font-size:14px;color:var(--muted);margin:17px 0}.tip>span:first-child{display:inline-grid;place-items:center;border-radius:50%;width:25px;height:25px;background:#e4eaff;color:var(--blue);font-weight:bold;margin-right:6px}.tip>span:last-child{margin-left:7px}.table-wrap{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}table{border-collapse:collapse;width:100%;table-layout:fixed}th{text-align:left;background:#edf2ff;color:var(--muted);font-size:14px;padding:14px 24px;font-weight:600}th small{display:block;font-weight:400;font-size:12px}th:nth-child(1){width:33%}th:nth-child(2){width:27%}th:nth-child(3){width:33%}th:nth-child(4){width:7%}td{padding:18px 24px;border-top:1px solid #e7ebf3;vertical-align:middle;overflow-wrap:anywhere}.word-audio{display:inline-flex;align-items:center;gap:9px;background:none;border:0;padding:0;color:var(--ink);text-align:left;font-size:18px;font-weight:700}.word-audio:hover{color:var(--blue)}.speaker{display:grid;place-items:center;color:var(--blue);background:var(--pale);height:32px;width:32px;border-radius:50%;flex-shrink:0}.speaker svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8}.word-meta{display:flex;align-items:center;gap:9px;margin:5px 0 0 41px;color:var(--muted);font-size:13px;flex-wrap:wrap}.level-chip{background:var(--pale);color:#294aa1;border-radius:5px;padding:1px 6px;font-size:12px;font-weight:700}.ipa{font-family:"Segoe UI",Arial,sans-serif;letter-spacing:.3px;font-size:14px}.word-note{display:block;font-size:13px;color:var(--muted);margin-top:3px;line-height:1.55}.details-button{border:1px solid var(--line);border-radius:50%;width:29px;height:29px;background:white;color:var(--muted);font-family:Georgia,serif;font-size:17px;line-height:1}.pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:20px 0 30px;font-size:14px;color:var(--muted)}.empty{text-align:center;padding:40px}.quiz-layout{display:grid;grid-template-columns:290px 1fr;gap:24px;align-items:start}.practice-settings{background:#eef2fc;border:1px solid var(--line);border-radius:14px;padding:24px}.practice-settings h3{font-size:20px;margin:0}.practice-settings h3 span{display:block;font-size:14px;font-weight:400;color:var(--muted)}.practice-settings p{font-size:15px}.practice-settings label{margin:20px 0}.practice-settings .secondary{width:100%}.session-count{font-weight:700;color:var(--blue);margin-bottom:5px}progress{width:100%;height:9px;accent-color:var(--blue)}.quiz-card{padding:35px 40px;border:1px solid var(--line);border-radius:18px;background:white;min-height:440px;text-align:center}.quiz-category{font-size:14px;color:var(--muted);margin:0}.quiz-card h3{font-size:40px;margin:25px 0 8px;line-height:1.4}.quiz-card .word-audio{font-size:inherit;justify-content:center}.quiz-card .speaker{width:40px;height:40px}.quiz-ipa{color:var(--muted);font-size:16px}.quiz-sense{margin:16px 0 26px;color:var(--muted);font-size:15px}.quiz-choices{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:26px}.quiz-choice{background:white;color:var(--ink);border:1.5px solid var(--line);border-radius:11px;padding:18px;font-size:18px;line-height:1.5;min-height:72px;overflow-wrap:anywhere}.quiz-choice:hover:not(:disabled){background:var(--pale);border-color:var(--blue)}.quiz-choice.correct{background:#e6f6ed;border-color:var(--green);color:var(--green);opacity:1}.quiz-choice.wrong{background:#fff0f2;border-color:var(--red);color:var(--red);opacity:1}.feedback{font-size:17px;margin:22px 0 12px}.feedback.correct{color:var(--green)}.feedback.wrong{color:var(--red)}.quiz-next{margin-top:10px}.quiz-complete{padding:40px 0}.quiz-complete h3{font-size:32px;color:var(--blue)}footer{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;margin-top:25px;padding:18px 0 25px;font-size:14px;color:var(--muted)}footer p span{margin-left:10px}dialog{border:1px solid var(--line);border-radius:18px;max-width:min(640px,calc(100vw - 28px));max-height:calc(100vh - 40px);width:640px;padding:28px;color:var(--ink);box-shadow:0 16px 80px #12204b33;overflow-y:auto}dialog::backdrop{background:#12204b88}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px}.dialog-head h2 span{display:block;margin:0}.close-dialog{background:var(--pale);border:0;border-radius:50%;height:36px;width:36px;font-size:25px;color:var(--muted);flex-shrink:0}dialog p{font-size:16px;overflow-wrap:anywhere}.detail-word{font-size:30px;margin:8px 0}.detail-translations{background:var(--pale);padding:16px;border-radius:10px}.detail-translations p{margin:6px 0}.detail-forms{color:var(--muted);font-size:15px}.backup-actions{display:flex;gap:14px;flex-wrap:wrap}.file-label{display:inline-block;cursor:pointer}.file-label input{position:absolute;opacity:0;width:1px;height:1px}.notice{color:#864000;font-size:14px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;max-width:calc(100vw - 32px);width:max-content;padding:13px 20px;border-radius:10px;box-shadow:0 6px 25px #12204b33;z-index:10;font-size:15px}
@media(max-width:1000px){.topbar{padding:17px 24px}.stats>div{padding:16px;gap:10px}.filters{grid-template-columns:minmax(150px,1fr) 195px 205px}.quiz-layout{grid-template-columns:240px 1fr}.quiz-card{padding:28px 22px}h1{font-size:34px}.intro{padding:28px}td,th{padding-left:18px;padding-right:18px}}
@media(max-width:720px){.topbar{padding:14px 16px;gap:12px;flex-wrap:wrap}.brand{font-size:21px}.brand-mark{width:42px;height:42px;font-size:29px}.brand-sub{font-size:10px}.topbar nav{order:3;width:100%;gap:6px}.nav-button{width:50%;padding:8px}.text-button{font-size:14px}main{padding:20px 16px 0}.intro{padding:22px;align-items:start;gap:18px;flex-direction:column;border-radius:16px}h1{font-size:29px}h1 span{display:block;margin:3px 0 0}.intro-text span{display:block;margin:3px 0 0;font-size:15px}.intro .primary{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px}.stats{grid-template-columns:1fr 1fr;margin:18px 0 28px}.stats>div{padding:12px 16px}.stats>div:nth-child(2){border-right:0}.stats>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.stats span{font-size:25px}.stats p{font-size:14px}h2{font-size:21px}h2 span{display:block;margin:0;font-size:14px}.section-heading{align-items:start}.filters{grid-template-columns:1fr 1fr;gap:10px}.search-field{grid-column:1/-1}.filters select{font-size:14px;padding-left:10px}.tip>span:last-child{display:block;margin:3px 0 0 31px}.table-wrap{border:0;background:transparent;overflow:visible}table,tbody,tr,td{display:block}thead{display:none}tr{display:grid;grid-template-columns:1fr 38px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:10px;padding:16px}td{padding:0;border:0}td:nth-child(1){grid-column:1;grid-row:1}td:nth-child(2){grid-column:1/-1;grid-row:3;color:var(--muted);font-size:15px;margin:5px 0 0 41px}td:nth-child(3){grid-column:1/-1;grid-row:2;margin:11px 0 0 41px;font-size:18px}td:nth-child(4){grid-column:2;grid-row:1;justify-self:end}.word-audio{font-size:19px}.pagination .secondary{padding:9px 12px}.pagination{font-size:13px}.quiz-layout{grid-template-columns:1fr;gap:17px}.practice-settings{padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.practice-settings h3,.practice-settings>p:not(.session-count),.practice-settings progress{grid-column:1/-1}.practice-settings h3 span{display:inline;margin-left:5px}.practice-settings p{margin:0}.practice-settings>p.muted{font-size:13px}.practice-settings label{margin:0;font-size:13px}.practice-settings .secondary{font-size:14px;padding:8px}.session-count{align-self:center;text-align:right}.quiz-card{padding:24px 18px;min-height:400px}.quiz-card h3{font-size:30px;margin-top:20px}.quiz-choices{gap:10px}.quiz-choice{padding:14px 10px;font-size:17px}dialog{padding:21px}footer{align-items:center;font-size:13px}footer p span{display:block;margin:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:720px){.intro{flex-direction:row;align-items:center;padding:19px;gap:12px}.intro .eyebrow{font-size:11px;letter-spacing:.9px}.intro h1{font-size:24px;margin:0}.intro h1 span{font-size:23px}.intro-text{display:none}.intro .primary{width:115px;min-width:115px;flex-direction:column;gap:2px;padding:11px 6px}.stats{margin:16px 0 22px}.stats>div{padding:10px 13px}.topbar{min-height:0}.section-heading{margin-bottom:15px}}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:30px 18px}.login-screen[hidden],#learning-app[hidden]{display:none}.login-card{width:min(100%,480px);background:#fff;border:1px solid #e0e6f3;border-radius:24px;padding:36px;box-shadow:0 12px 50px #173fc70d}.login-card h1{font-size:1.8rem;color:#152347;line-height:1.4}.login-card h1 span{display:block;font-size:1.1rem;font-weight:500;color:#5a6580;margin-top:8px}.login-card p{line-height:1.7}.login-card form{display:grid;gap:12px;margin:24px 0}.login-card label{font-weight:600}.login-card input{width:100%;padding:14px 16px;border:1px solid #dce2ed;border-radius:12px;font:inherit}.login-card .primary{justify-content:center}.learner-bar{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:.9rem}.sync-status{font-size:.8rem;color:#647087;margin:0 0 20px}.sync-status button{font-size:.8rem}.learner-bar strong{color:#173fc7}.login-card .notice:empty{display:none}#old-progress{padding:16px;border-radius:14px;margin:12px 0 20px}#old-progress p{margin-top:0}@media(max-width:600px){.login-card{padding:28px 24px}.learner-bar{align-items:flex-start}.learner-bar>span{padding-top:6px}.learner-bar button{flex-shrink:0}.sync-status{line-height:1.6}}
.study-bonus{background:#fffaf0;border:1px solid #e9d18a;border-radius:18px;padding:24px 28px;margin:0 0 24px}.study-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.study-heading h2{font-size:21px}.study-heading strong{display:block;font-size:28px;color:#705211;font-variant-numeric:tabular-nums}.study-heading .primary{background:#705211;box-shadow:0 3px 0 #4b3608;min-width:140px}.study-goals{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:16px}.study-goals p{margin:0 0 6px;font-size:14px;line-height:1.45}.study-goals p span,.study-status span,.study-notice span,.study-bottom p span,.bonus-explanation span{display:block;color:var(--muted);font-size:13px}.study-goals progress{accent-color:#977219}.study-status{margin:10px 0 0;color:#705211;font-size:14px;line-height:1.45}.study-notice{margin:10px 0 0;font-size:13px}.study-bottom{border-top:1px solid #e9d18a;margin-top:16px;padding-top:12px;display:flex;align-items:center;gap:18px;justify-content:space-between}.study-bottom p{margin:0;font-size:13px;line-height:1.5}.study-bottom button{flex-shrink:0}.bonus-table-wrap{overflow-x:auto}.bonus-table{font-size:13px;table-layout:auto}.bonus-table th,.bonus-table td{padding:10px 8px;width:auto!important}.bonus-table th span{display:block;font-size:11px}.bonus-history{padding-left:20px}.bonus-history strong{color:#705211}.bonus-explanation span{font-size:14px}#bonus-dialog{width:800px;max-width:calc(100vw - 28px)}@media(max-width:720px){.study-bonus{padding:18px 16px}.study-heading{align-items:start;gap:10px}.study-heading h2{font-size:20px}.study-heading strong{font-size:23px}.study-heading .primary{min-width:105px;padding:10px}.study-goals{grid-template-columns:1fr;gap:12px;margin-top:14px}.study-goals progress{height:8px}.study-bottom{display:block}.study-bottom button{padding:10px 0}.study-bottom p span{font-size:12px}.bonus-table,.bonus-table thead,.bonus-table tbody{display:table}.bonus-table thead{display:table-header-group}.bonus-table tbody{display:table-row-group}.bonus-table tr{display:table-row;background:none;border:0}.bonus-table td,.bonus-table th{display:table-cell;border-top:1px solid var(--line);margin:0!important}.bonus-table td{font-size:13px!important}}
