:root{--ink:#0f2e52;--ink-2:#37618f;--muted:#6b8fb3;--primary:#1e63c8;--primary-deep:#14498f;--soft:#dcebf9;--soft-2:#eef6fd;--line:#d3e4f2;--ok:#2e8b62;--gold:#e8a93b;--sheet-max:46vh;color:var(--ink);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Noto Sans SC,Microsoft YaHei,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{overscroll-behavior-y:none;background:linear-gradient(#fbfdff 0%,#e8f1fa 100%) fixed}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0}.app{flex-direction:column;max-width:520px;min-height:100%;margin:0 auto;display:flex}.home{padding:28px 18px 40px}.home__title{color:var(--primary-deep);text-align:center;margin:0;font-size:27px;font-weight:700;line-height:1.35}.home__sub{text-align:center;color:var(--muted);margin:8px 0 0;font-size:14px}.home__badge{border:1px solid var(--line);width:max-content;color:var(--ink-2);background:#fff;border-radius:999px;margin:16px auto 26px;padding:7px 20px;font-size:14px;box-shadow:0 2px 10px #1e63c80f}.card{text-align:left;border:1px solid var(--line);background:#fff;border-radius:18px;align-items:center;gap:14px;width:100%;margin-bottom:14px;padding:16px;display:flex;box-shadow:0 4px 16px #1e63c812}.card__num{background:var(--primary);color:#fff;border-radius:50%;flex:none;place-items:center;width:30px;height:30px;font-size:15px;font-weight:600;display:grid}.card__body{flex:1;min-width:0}.card__title{font-size:16px;font-weight:600}.card__meta{color:var(--muted);margin-top:5px;font-size:13px}.card__bar{background:var(--soft);border-radius:3px;height:5px;margin-top:8px;overflow:hidden}.card__bar>i{background:var(--primary);border-radius:3px;height:100%;transition:width .3s;display:block}.card__chev{color:var(--muted);flex:none;font-size:18px}.home__note{border:1px dashed var(--line);color:var(--ink-2);background:#ffffffb3;border-radius:14px;margin-top:22px;padding:14px 16px;font-size:13px;line-height:1.7}.home__note b{color:var(--primary-deep)}.linkbtn{color:var(--muted);margin-top:10px;font-size:13px;text-decoration:underline}.lesson{flex-direction:column;height:100dvh;display:flex}.topbar{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);background:#fbfdffeb;flex:none;align-items:center;gap:10px;padding:12px 14px;display:flex}.topbar__back{color:var(--primary-deep);padding:4px 6px;font-size:20px}.topbar__title{color:var(--primary-deep);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:15px;font-weight:600;overflow:hidden}.topbar__count{color:var(--muted);font-size:13px}.hint{border:1px solid var(--line);color:var(--ink-2);background:#fff;border-radius:999px;flex:none;align-items:center;gap:8px;margin:10px 14px 0;padding:9px 14px;font-size:13px;display:flex}.hint__x{color:var(--muted);margin-left:auto}.scroller{-webkit-overflow-scrolling:touch;flex:1;padding:12px 14px 0;overflow-y:auto}.viewer{border:1px solid var(--line);background:#fff;border-radius:16px;width:100%;position:relative;overflow:hidden;box-shadow:0 4px 18px #1e63c814}.viewer__img{width:100%;height:auto;display:block}.hotspot{background:0 0;border:2px solid #0000;border-radius:12px;padding:0;transition:background .18s,border-color .18s,box-shadow .18s;position:absolute}.hotspot:focus-visible{outline:3px solid var(--primary);outline-offset:2px}.hotspot.is-active{border-color:var(--primary);background:#1e63c821;box-shadow:0 0 0 4px #1e63c829}.hotspot.is-hinting{animation:.9s ease-in-out 2 hotspot-hint}@keyframes hotspot-hint{0%,to{background:0 0;border-color:#0000}50%{background:#1e63c829;border-color:#1e63c88c}}.hotspot__tick{background:var(--ok);color:#fff;text-align:center;border-radius:50%;width:15px;height:15px;font-size:9px;line-height:15px;position:absolute;top:4px;right:4px}@media (prefers-reduced-motion:reduce){.hotspot.is-hinting{animation:none}}.sheet{max-height:var(--sheet-max);border-top:1px solid var(--line);padding:16px 18px calc(14px + env(safe-area-inset-bottom));background:#fff;border-radius:22px 22px 0 0;flex:none;animation:.22s ease-out sheet-in;overflow-y:auto;box-shadow:0 -8px 28px #0f2e5221}@keyframes sheet-in{0%{opacity:0;transform:translateY(18px)}}.sheet__head{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.sheet__word{letter-spacing:-.01em;font-size:30px;font-weight:700}.sheet__ph{color:var(--muted);font-size:15px}.sheet__status{background:var(--soft);color:var(--primary-deep);border-radius:999px;align-items:center;gap:6px;margin-left:auto;padding:6px 12px;font-size:12px;font-weight:600;display:inline-flex}.sheet__status.is-idle{background:var(--soft-2);color:var(--muted)}.sheet__meaning{color:var(--ink-2);margin-top:4px;font-size:19px}.sheet__ex{background:var(--soft-2);border:1px solid var(--line);border-radius:14px;margin-top:12px;padding:12px 14px}.sheet__exlabel{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:999px;margin-bottom:8px;padding:2px 10px;font-size:11px;display:inline-block}.sheet__exen{font-size:15px;line-height:1.55}.sheet__exen em{color:var(--primary);font-style:normal;font-weight:600}.sheet__exzh{color:var(--muted);margin-top:4px;font-size:14px}.wave{justify-content:center;align-items:center;gap:3px;height:18px;margin-top:10px;display:flex}.wave>i{background:var(--line);border-radius:2px;width:3px;height:4px}.wave.is-on>i{background:var(--primary);animation:.85s ease-in-out infinite wave}.wave>i:nth-child(2n){animation-delay:.12s}.wave>i:nth-child(3n){animation-delay:.26s}.wave>i:nth-child(5n){animation-delay:.38s}@keyframes wave{0%,to{height:4px}50%{height:16px}}@media (prefers-reduced-motion:reduce){.wave.is-on>i{height:10px;animation:none}}.sheet__bar{align-items:center;gap:8px;margin-top:14px;display:flex}.iconbtn{min-width:44px;min-height:44px;color:var(--muted);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:11px;display:inline-flex}.iconbtn>span:first-child{font-size:18px;line-height:1}.iconbtn:disabled{opacity:.32}.iconbtn.is-fav{color:var(--gold)}.sheet__idx{text-align:center;color:var(--muted);font-variant-numeric:tabular-nums;flex:1;font-size:13px}.next{background:var(--primary);color:#fff;border-radius:999px;align-items:center;gap:6px;min-height:44px;padding:0 18px;font-size:15px;font-weight:600;display:inline-flex;box-shadow:0 4px 14px #1e63c84d}.next:disabled{background:var(--line);color:#fff;box-shadow:none}.debug{border-top:1px solid var(--line);color:#cfe2f7;background:#0f2035;flex:none;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.debug__head{color:#cfe2f7;align-items:center;gap:8px;width:100%;padding:9px 14px;display:flex}.debug__dot{background:#e05c5c;border-radius:50%;width:8px;height:8px}.debug__dot.is-on{background:#4fc38a}.debug__list{max-height:30vh;margin:0;padding:0 14px 12px;list-style:none;overflow-y:auto}.debug__list li{word-break:break-word;border-top:1px solid #ffffff12;padding:3px 0;line-height:1.5}.debug__t{color:#7f9ab8;margin-right:6px}.lv-ok{color:#79dcac}.lv-warn{color:#f0c46a}.lv-error{color:#ff8f8f}.lv-info{color:#9fc0e0}.is-picking{position:relative}.is-picking .hotspot{pointer-events:none;background:#1e63c812;border-color:#1e63c859}.picker{touch-action:none;cursor:crosshair;position:absolute;inset:0}.picker__box{border:2px dashed var(--primary);background:#1e63c826;border-radius:8px;position:absolute}.picker__out{color:#cfe2f7;background:#0f2035;border-radius:14px;margin-top:12px;padding:12px 14px;font-size:12px}.picker__outhead{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.picker__outhead button{color:#9fc0e0;font-size:12px;text-decoration:underline}.picker__out pre{white-space:pre-wrap;word-break:break-all;margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.6}.sheet__status.is-failed{color:#b03535;background:#fdecec}.sheet__note{color:#8a6417;background:#fdf5e5;border:1px solid #f0dcb0;border-radius:10px;margin:8px 0 0;padding:8px 12px;font-size:12px}.topbar{padding-top:calc(12px + env(safe-area-inset-top))}.card:disabled{opacity:.5;cursor:default;box-shadow:none}
