:root{--ink:#10142b;--panel:#1a2042;--panel-2:#232a55;--line:#2f376b;--text:#f4f5ff;--muted:#9aa2d6;--lime:#c6ff3d;--gold:#ffd23f;--coral:#ff6b6b;--sky:#6cc8ff;--radius:20px;--gutter:20px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--ink);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font:400 17px/1.5 Noto Sans Thai,Sukhumvit Set,Leelawadee UI,Thonburi,system-ui,sans-serif}button{font:inherit;color:inherit;text-align:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;margin:0;padding:0}ul{margin:0;padding:0;list-style:none}p,h1,h2{margin:0}a{color:var(--lime)}:focus-visible{outline:3px solid var(--lime);outline-offset:3px}#root{flex-direction:column;max-width:480px;height:100dvh;margin:0 auto;display:flex}.screen{flex-direction:column;flex:1;min-height:0;display:flex}.page{overscroll-behavior:contain;min-height:0;padding:calc(16px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 28px max(var(--gutter), env(safe-area-inset-left));flex-direction:column;flex:1;gap:16px;display:flex;overflow-y:auto}.page>*{flex-shrink:0}.actions{padding:10px max(var(--gutter), env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));background:var(--ink);border-top:1px solid var(--line);gap:10px;display:flex}.eyebrow{color:var(--muted);font-size:.85em;font-weight:700}.title{font-size:2.2em;font-weight:800;line-height:1.15}.instruction,.quiet{color:var(--muted)}.problem{color:var(--coral);font-weight:600}.btn{background:var(--lime);min-height:52px;color:var(--ink);text-align:center;border-radius:16px;flex:1;padding:0 20px;font-weight:800}.btn:disabled{opacity:.4}.btn:active{transform:scale(.98)}.btn--quiet{background:var(--panel);color:var(--text);flex:none}.field-label{color:var(--muted);flex-direction:column;gap:8px;font-weight:600;display:flex}.field{border:2px solid var(--line);background:var(--panel);min-height:52px;color:var(--text);font:inherit;border-radius:14px;padding:0 16px}.field:focus{border-color:var(--lime);outline:none}.field--pin{letter-spacing:.4em;text-align:center;font-size:1.6em}.sync{background:var(--panel);color:var(--muted);border-radius:999px;align-self:flex-start;padding:4px 12px;font-size:.8em}.sync--offline,.sync--refused,.sync--broken{color:var(--gold);background:#ffd23f24}.hero{background:linear-gradient(150deg,#34409a 0%,#1b2257 45%,#12163a 100%);border-radius:28px;padding:24px 22px 22px;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #c6ff3d38,0 18px 40px -18px #000000b3}.hero:before{content:"";pointer-events:none;background:radial-gradient(circle,#c6ff3d47,#0000 68%);border-radius:50%;width:220px;height:220px;position:absolute;top:-70px;right:-60px}.hero>*{position:relative}.hero-label{color:var(--gold);font-weight:800}.hero-count{font-variant-numeric:tabular-nums;align-items:baseline;gap:6px;margin:2px 0 16px;display:flex}.hero-done{color:var(--lime);letter-spacing:-.03em;text-shadow:0 0 28px #c6ff3d73;font-size:5.8em;font-weight:900;line-height:1}.hero-of{color:var(--muted);font-size:2.6em;font-weight:300}.hero-target{font-size:2.6em;font-weight:800}.hero-unit{color:var(--muted);margin-left:4px;font-weight:600}.hero-note{color:#c3c8ee;margin-top:16px;font-size:.9em}.pips{flex-wrap:wrap;gap:6px;display:flex}.pip{background:var(--panel-2);border-radius:999px;flex:1;min-width:18px;max-width:64px;height:12px}.pip--done{background:var(--lime);box-shadow:0 0 12px #c6ff3d8c}.exams{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}@media (width<=340px){.exams{grid-template-columns:1fr}}.card{border-radius:var(--radius);background:var(--panel);padding:18px;box-shadow:inset 0 0 0 1px #2f376b99}.exam{border-top:4px solid var(--gold)}.exam-head{flex-direction:column;gap:2px;display:flex}.exam-name{font-size:1.05em;font-weight:800}.countdown{color:var(--gold);background:#ffd23f24;border-radius:999px;align-self:flex-start;margin-top:4px;padding:2px 10px;font-size:.8em;font-weight:800}.exam-minimum{flex-direction:column;margin:10px 0 6px;display:flex}.big{font-variant-numeric:tabular-nums;font-size:3.2em;font-weight:900;line-height:1}.exam-minimum-label{color:var(--muted);font-size:.8em;font-weight:600}.exam-pace{border-top:1px dashed var(--line);color:var(--muted);padding-top:8px;font-size:.8em}.card-title{align-items:center;gap:8px;margin-bottom:10px;font-size:1.1em;font-weight:800;display:flex}.badge{background:var(--coral);min-width:28px;color:var(--ink);text-align:center;border-radius:999px;padding:1px 9px;font-size:.8em;font-weight:900}.rows{flex-direction:column;gap:8px;display:flex}.row{background:var(--panel-2);border-left:4px solid var(--lime);border-radius:12px;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:10px 14px;display:flex}.row-name{font-weight:700}.row-meta{color:var(--muted);text-align:right;font-size:.85em}.answered{border-top:1px solid var(--line);color:var(--sky);margin-top:14px;padding-top:12px;font-weight:700}.tabs{background:var(--panel);border-radius:20px;flex:1;gap:6px;padding:4px;display:flex}.tab{min-height:48px;color:var(--muted);text-align:center;border-radius:16px;flex:1;font-weight:800}.tab[aria-current=page]{background:var(--lime);color:var(--ink)}.exam-group{flex-direction:column;gap:10px;display:flex}.group-title{color:var(--gold);font-size:.95em;font-weight:800}.subjects{flex-direction:column;gap:10px;display:flex}.subject{border-radius:var(--radius);background:var(--panel);grid-template-columns:1fr auto;gap:6px 12px;width:100%;min-height:72px;padding:16px 18px;display:grid}.subject-name{font-size:1.2em;font-weight:800}.subject:active{background:var(--panel-2)}.subject-count{color:var(--lime);font-variant-numeric:tabular-nums;align-self:center;font-size:.85em;font-weight:800}.meter{grid-column:1/-1;gap:3px;height:10px;display:flex}.meter-cell{background:var(--panel-2);border-radius:3px;flex:1}.meter-cell--in-progress{background:var(--sky)}.meter-cell--done{background:var(--lime)}.meter-cell--reopened{background:var(--coral)}.back{min-width:44px;min-height:44px;color:var(--muted);align-self:flex-start;align-items:center;gap:6px;padding-right:12px;font-weight:700;display:inline-flex}.subject-summary{color:var(--lime);font-size:1.15em;font-weight:800}.subtopics{flex-direction:column;gap:10px;display:flex}.subtopic{background:var(--panel);border-left:5px solid var(--panel-2);border-radius:16px;padding:14px 16px}.subtopic--in-progress{border-left-color:var(--sky)}.subtopic--done{border-left-color:var(--lime)}.subtopic--reopened{border-left-color:var(--coral)}.subtopic-head{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.subtopic-name{font-weight:800}.subtopic-area{color:var(--muted);font-size:.8em}.subtopic-facts{flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:.85em;display:flex}.status{background:var(--panel-2);color:var(--muted);border-radius:999px;flex:none;padding:2px 10px;font-size:.75em;font-weight:800}.status--in-progress{color:var(--sky)}.status--done{background:var(--lime);color:var(--ink)}.status--reopened{background:var(--coral);color:var(--ink)}section[aria-label=ถึงรอบทวน]{box-shadow:inset 0 0 0 1px #ff6b6b66}section[aria-label=ถึงรอบทวน] .row{border-left-color:var(--coral)}@media (prefers-reduced-motion:no-preference){.page>*{animation:.32s ease-out both rise}.pip--done{animation:.42s ease-out both pop}@keyframes rise{0%{opacity:0;transform:translateY(8px)}}@keyframes pop{0%{opacity:.4;transform:scaleY(.4)}}}.chart{border-top:4px solid var(--lime);flex-direction:column;gap:10px;display:flex}.chart-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.chart-title{font-size:1.1em;font-weight:800}.chart-sub{color:var(--muted);text-align:right;font-size:.8em;font-weight:600}.chart-figure{font-variant-numeric:tabular-nums;align-items:baseline;gap:8px;display:flex}.chart-big{color:var(--lime);letter-spacing:-.03em;text-shadow:0 0 24px #c6ff3d66;font-size:3.6em;font-weight:900;line-height:1}.chart-big--gold{color:var(--gold);text-shadow:0 0 24px #ffd23f66}.chart-of{color:var(--muted);font-size:1em;font-weight:600}.chart-svg{width:100%;height:auto;display:block;overflow:visible}.chart-base{stroke:var(--line);stroke-width:1.5px}.chart-need{fill:none;stroke:var(--muted);stroke-width:2px;stroke-dasharray:5 5;stroke-linecap:round;stroke-linejoin:round}.chart-deadline{stroke:var(--gold);stroke-width:1px;stroke-dasharray:2 4;opacity:.7}.chart-done{fill:none;stroke:var(--lime);stroke-width:3.5px;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px #c6ff3dcc)}.chart-now{fill:var(--lime);stroke:var(--ink);stroke-width:2px;filter:drop-shadow(0 0 6px #c6ff3de6)}.chart-ticks text{fill:var(--muted);font-size:10px;font-weight:600}.chart-note{color:var(--muted);font-size:.8em}.chart-target{stroke:var(--gold);stroke-width:1.5px;stroke-dasharray:6 4}.chart-target-label{fill:var(--gold);font-size:10px;font-weight:800}.chart-total{fill:none;stroke:var(--sky);stroke-width:3px;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px #6cc8ffb3)}.chart-dot{fill:var(--sky);stroke:var(--ink);stroke-width:2px}.chart-dot--partial{fill:var(--ink);stroke:var(--sky)}.chip{white-space:nowrap;border-radius:999px;flex:none;padding:3px 12px;font-size:.8em;font-weight:800}.chip--ahead{color:var(--lime);background:#c6ff3d29}.chip--behind{background:var(--coral);color:var(--ink);box-shadow:0 0 14px #ff6b6b73}.spark-rows,.score-rows{flex-direction:column;gap:6px;display:flex}.spark-row{grid-template-columns:minmax(0,5.5em) minmax(0,1fr) 3.6em;align-items:center;gap:12px;min-height:44px;display:grid}.spark-name,.score-name{overflow-wrap:anywhere;font-size:.9em;font-weight:700}.spark{width:100%;height:36px;display:block;overflow:visible}.spark--empty{border-bottom:2px dashed var(--line);height:18px}.spark-mid{stroke:var(--line);stroke-width:1px;stroke-dasharray:3 3}.spark-line{fill:none;stroke:var(--lime);stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.spark-dot{fill:var(--lime)}.spark-value{font-variant-numeric:tabular-nums;flex-direction:column;align-items:flex-end;line-height:1.15;display:flex}.spark-value strong{color:var(--lime);font-weight:900}.spark-value small{color:var(--muted);font-size:.7em}.score-rows{border-top:1px dashed var(--line);margin-top:4px;padding-top:12px}.score-row{grid-template-columns:minmax(0,5.5em) minmax(0,1fr) 4.4em;align-items:center;gap:12px;min-height:40px;display:grid}.score-bar{width:100%;height:10px;display:block}.score-track{fill:var(--panel-2)}.score-fill{fill:var(--sky)}.score-value{text-align:right;font-variant-numeric:tabular-nums;font-size:.85em;font-weight:800}.link-row{background:var(--panel-2);min-height:48px;color:var(--lime);border-radius:14px;justify-content:space-between;align-items:center;padding:0 16px;font-weight:800;display:flex}.link-row:active{transform:scale(.98)}.baseline-count{color:var(--lime);font-variant-numeric:tabular-nums;margin-left:auto;font-size:.8em;font-weight:800}.baseline-rows{margin-top:12px}.baseline-row{border-left-color:var(--line)}.baseline-row--done{border-left-color:var(--lime)}.baseline-paper{color:var(--muted);font-size:.8em;font-weight:400;display:block}.baseline-score{color:var(--lime);font-size:1.3em;font-weight:900;display:block}.baseline-row .row-meta small{display:block}.lookup{flex-direction:column;gap:12px;display:flex}.question{flex-direction:column;gap:14px;display:flex}.question-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:.8em;display:flex}.source{background:var(--panel-2);color:var(--text);border-radius:999px;padding:2px 10px;font-weight:800}.source--real{background:var(--lime);color:var(--ink)}.source--recalled{color:var(--gold);background:#ffd23f29}.source--claude-made{color:var(--sky);background:#6cc8ff29}.passage{background:var(--panel-2);border-left:4px solid var(--sky);border-radius:12px;flex-direction:column;gap:10px;padding:12px 14px;display:flex}.passage-text,.stem{white-space:pre-wrap;overflow-wrap:anywhere}.passage-text{color:#d6daf5;font-size:.95em}.stem{font-size:1.1em;font-weight:600;line-height:1.6}.figure{margin:0}.figure img{background:#fff;border-radius:12px;max-width:100%;height:auto;margin:0 auto;padding:8px;display:block}.choices{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.choice{background:var(--panel-2);overflow-wrap:anywhere;border-radius:12px;align-items:flex-start;gap:12px;min-height:44px;padding:10px 14px;display:flex}.choice-letter{background:var(--ink);width:28px;height:28px;color:var(--lime);border-radius:50%;flex:none;place-items:center;font-size:.9em;font-weight:900;display:grid}@media (prefers-reduced-motion:no-preference){.chart-done,.chart-total{stroke-dasharray:1;stroke-dashoffset:0;animation:.9s ease-out both draw}.chart-now,.chart-dot{transform-box:fill-box;transform-origin:50%;animation:.3s ease-out .8s both pop-in}.score-fill{transform-box:fill-box;transform-origin:0;animation:.7s ease-out both grow}@keyframes draw{0%{stroke-dashoffset:1px}}@keyframes pop-in{0%{opacity:0;transform:scale(.3)}}@keyframes grow{0%{transform:scaleX(0)}}}.score-history{color:var(--muted);font-variant-numeric:tabular-nums;grid-column:1/-1;font-size:.75em}
