@charset "UTF-8";
:root{color-scheme:light;--bg:#f5f7f4;--paper:#fff;--ink:#192f2b;--muted:#6c7d76;--line:#dfe6df;--green:#224e3f;--lime:#d5ed94;--soft:#edf2e9;--red:#ad5250;--amber:#996e2a;--edge:20px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font-family:"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:var(--bg);color:var(--ink)}body{overflow:hidden}button,input,select{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default;opacity:.4}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #75a45c}a{color:var(--green)}svg{width:22px;height:22px;display:block;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button{border:0;background:none}button,input,select{border-radius:0}button[hidden],[hidden]{display:none!important}.app-shell{--edge:max(20px,env(safe-area-inset-left,0px));width:100%;max-width:540px;height:100vh;height:100dvh;margin:auto;display:flex;flex-direction:column;padding:max(14px,var(--safe-top)) var(--edge) 0;background:var(--bg);overflow:hidden}.app-header{display:flex;align-items:center;justify-content:space-between;min-height:56px;flex-shrink:0;padding-bottom:12px}.icon-button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;flex-shrink:0}.icon-button:hover{background:var(--soft)}.icon-button.active{background:#f1f6d8;color:var(--green)}.icon-button.active svg{fill:var(--lime)}.screen{min-height:0;flex:1;overflow:auto;overscroll-behavior-y:contain;scrollbar-width:thin;padding:0 0 16px}.study-screen{display:flex;flex-direction:column;gap:14px}.goal-track{margin-top:12px;background:#e1e8df;height:4px;overflow:hidden;border-radius:10px}.goal-fill{height:100%;background:var(--green);border-radius:10px;transition:width .25s}.card{position:relative;flex:1;min-height:290px;display:flex;flex-direction:column;background:var(--paper);border:1px solid #e2e8df;border-radius:25px;padding:20px 21px 18px;box-shadow:0 5px 22px #263e2910;animation:enter .2s ease-out}.card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.topic-chip{font-size:12px;letter-spacing:.3px;background:var(--soft);padding:6px 9px;border-radius:7px;color:var(--green);line-height:1.5;max-width:calc(100% - 48px)}.card .icon-button{width:38px;height:38px}.word-area{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px 0 20px;gap:12px}.word{font-family:Georgia,"Times New Roman",serif;letter-spacing:-1.5px;line-height:1.12;font-size:clamp(36px,10vw,61px);font-weight:400;margin:0;width:100%;overflow-wrap:anywhere;text-wrap:balance}.word.long{font-size:clamp(30px,8vw,45px)}.word.zh{font-family:inherit;font-size:clamp(25px,7vw,36px);line-height:1.5;letter-spacing:0}.pronunciation-row{display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:14px}.pronunciation-row .icon-button{border:1px solid var(--line);width:35px;height:35px}.answer{margin-top:6px;border-top:1px solid var(--line);padding-top:17px;animation:enter .2s ease-out}.answer .meaning{font-size:20px;font-weight:550;line-height:1.65;margin:0 0 12px}.answer .focus{margin:0;font-size:14px;color:#5e7167;line-height:1.85}.answer .lemma{color:var(--muted);font-size:14px;margin:8px 0}.word-source{display:flex;gap:5px;flex-wrap:wrap;font-size:12px;color:#7c8981;padding-top:12px}.source-pill{padding:4px 7px;border-radius:5px;background:#f6f8f5;line-height:1.4}.study-actions{flex-shrink:0}.primary{border-radius:16px;background:var(--green);color:#fff;min-height:56px;padding:15px 20px;font-size:16px;font-weight:550;width:100%;display:flex;align-items:center;justify-content:center;gap:10px}.primary:hover{background:#183e31}.rating-buttons{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:9px}.rating{min-height:65px;border:1px solid var(--line);border-radius:15px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:16px}.rating small{font-size:12px;color:var(--muted)}.rating.again{color:var(--red)}.rating.hard{color:var(--amber)}.rating.good{background:var(--green);color:white;border-color:var(--green)}.rating.good small{color:#dce8df}.action-sub{height:32px;margin-top:5px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.text-button{font-size:13px;color:var(--muted);min-height:32px;padding:4px 7px;display:flex;gap:5px;align-items:center}.text-button svg{width:15px;height:15px}.bottom-nav{position:relative;flex-shrink:0;display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0 calc(-1 * var(--edge));padding:8px var(--edge) max(9px,var(--safe-bottom));background:var(--bg);border-top:1px solid var(--line)}.nav-button{min-height:58px;display:flex;flex-direction:column;gap:5px;justify-content:center;align-items:center;font-size:13px;color:#7f8b83;border-radius:15px}.nav-button.selected{color:var(--green);font-weight:600}.nav-icon{padding:4px 14px;border-radius:20px}.selected .nav-icon{background:var(--lime)}.nav-icon svg{width:21px;height:21px}.view-heading{display:flex;justify-content:space-between;align-items:center;padding:15px 0 17px;gap:10px}.view-heading h2{font-size:27px;margin:0;font-weight:600;letter-spacing:-.5px}.view-heading .count{color:var(--muted);font-size:14px}.search{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:14px;padding:0 13px;height:48px}.search svg{width:19px;height:19px;color:var(--muted)}.search input{border:none;background:none;min-width:0;width:100%;height:100%;font-size:16px;color:var(--ink);outline:none}.chips{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:17px -20px 12px;padding:0 20px 3px}.chips::-webkit-scrollbar{display:none}.chip{font-size:14px;padding:8px 12px;border:1px solid var(--line);border-radius:20px;white-space:nowrap;background:white;min-height:39px}.chip.selected{background:var(--green);color:#fff;border-color:var(--green)}.library-tools{display:flex;align-items:center;justify-content:space-between;margin:4px 0 9px;font-size:13px;color:var(--muted)}.small-primary{padding:10px 14px;font-size:14px;border-radius:11px;background:var(--green);color:white;min-height:42px}.word-list{display:flex;flex-direction:column}.word-row{display:flex;align-items:center;gap:10px;padding:16px 2px;border-bottom:1px solid var(--line);text-align:left;width:100%}.word-row .row-main{flex:1;min-width:0}.row-term{font-family:Georgia,"Times New Roman",serif;font-size:24px;letter-spacing:-.4px;overflow-wrap:anywhere}.row-meaning{color:var(--muted);font-size:14px;margin-top:6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.row-pos{font-family:inherit;font-size:12px;font-style:normal;color:var(--muted);margin-left:7px}.row-tag{font-size:12px;padding:5px 7px;background:var(--soft);border-radius:6px;color:var(--green);white-space:nowrap}.row-fav svg{fill:var(--lime);color:var(--green);width:18px;height:18px}.load-more{min-height:50px;width:100%;font-size:14px;color:var(--green);margin-top:8px}.review-hero{background:var(--green);color:#fff;padding:24px;border-radius:23px;margin:4px 0 18px}.review-hero .eyebrow{color:#c5d3c7;font-size:14px}.review-number{font-family:Georgia,serif;font-size:67px;line-height:1.1;margin:14px 0 19px}.review-number span{font-size:16px;font-family:inherit;margin-left:8px;color:#d5dfd6}.review-hero .primary{background:var(--lime);color:var(--green);min-height:48px;border-radius:13px}.review-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:21px}.review-stat{padding:14px 5px;text-align:center;background:#fff;border-radius:16px;border:1px solid var(--line)}.review-stat strong{display:block;font-size:25px;font-weight:550;margin-bottom:6px;font-variant-numeric:tabular-nums}.review-stat span{font-size:13px;color:var(--muted)}.review-option{display:flex;justify-content:space-between;align-items:center;padding:20px 3px;border-bottom:1px solid var(--line);width:100%;text-align:left;font-size:16px}.review-option .left{display:flex;align-items:center;gap:12px}.review-option .bubble{width:41px;height:41px;border-radius:13px;display:grid;place-items:center;background:var(--soft);color:var(--green)}.review-option .badge{font-size:14px;color:var(--muted)}.week{display:flex;justify-content:space-between;margin:13px 0 20px;gap:8px}.week-day{flex:1;text-align:center;font-size:12px;color:var(--muted)}.week-dot{margin:8px auto 0;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e7ece3;font-size:12px;color:var(--muted)}.week-dot.done{background:var(--lime);color:var(--green)}.section-label{font-size:14px;font-weight:550;margin:22px 0 12px}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:330px;gap:17px;padding:26px}.empty-mark{width:76px;height:76px;border-radius:50%;background:var(--soft);display:grid;place-items:center;color:var(--green)}.empty-mark svg{width:31px;height:31px}.empty h2{font-size:24px;font-weight:550;margin:0}.empty p{font-size:14px;line-height:1.7;color:var(--muted);margin:0}.empty .primary{margin-top:8px}.completion{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 12px;gap:17px}.completion h2{font-size:30px;margin:3px 0}.completion .result-count{font:68px Georgia,serif;line-height:1.1}.completion .summary-row{display:flex;gap:28px;margin:10px 0 17px}.completion .summary-row span{font-size:13px;color:var(--muted)}.completion .summary-row strong{font-size:23px;display:block;margin-bottom:5px;color:var(--ink)}dialog{border:none;margin:auto;width:min(100% - 24px,490px);max-height:calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom));padding:0;border-radius:24px;background:var(--bg);color:var(--ink);box-shadow:0 18px 90px #10251e33;overscroll-behavior:contain}dialog::backdrop{background:#0e221a66;backdrop-filter:blur(4px)}.dialog-inner{padding:22px}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-heading h2{font-size:23px;margin:0;font-weight:600}.dialog-heading .icon-button{width:36px;height:36px}.form-row{margin:18px 0}.form-row label{font-size:14px;display:block;color:var(--muted);margin-bottom:9px}select,.number-input{appearance:none;-webkit-appearance:none;width:100%;height:49px;padding:0 38px 0 13px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:16px}select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235b7165' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 15px center;background-repeat:no-repeat}.segmented{display:flex;gap:4px;padding:4px;background:#e6ece2;border-radius:12px}.segmented button{flex:1;border-radius:9px;padding:10px 8px;font-size:14px}.segmented button.selected{background:white;box-shadow:0 1px 5px #193e2210}.dialog-footer{margin-top:24px;display:flex;gap:10px}.secondary{width:100%;padding:14px;min-height:50px;border:1px solid var(--line);background:#fff;border-radius:13px;font-size:15px}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);font-size:15px}.settings-row select{width:145px;flex-shrink:0}.settings-row input{width:90px;flex-shrink:0}.setting-action{width:100%;text-align:left;min-height:52px;padding:14px 0;border-bottom:1px solid var(--line);font-size:15px;display:flex;align-items:center;gap:12px}.setting-note{font-size:13px;line-height:1.8;color:var(--muted);margin:16px 0 3px}.danger{color:var(--red)}.detail-word{font:45px/1.15 Georgia,serif;overflow-wrap:anywhere;margin:12px 0}.detail-meaning{font-size:21px;line-height:1.7;margin:16px 0}.detail-focus{font-size:15px;line-height:1.8;color:var(--muted)}.detail-meta{font-size:13px;line-height:1.8;color:var(--muted);margin:17px 0}.source-section{border-bottom:1px solid var(--line);padding:14px 0}.source-section h3{font-size:16px;margin:0 0 10px}.source-links{display:flex;flex-wrap:wrap;gap:10px;font-size:14px}.source-notes{font-size:13px;line-height:1.7;color:var(--muted)}#toast{position:fixed;left:50%;bottom:calc(100px + var(--safe-bottom));transform:translate(-50%,12px);background:#193d32;color:#fff;padding:11px 17px;max-width:calc(100% - 40px);width:max-content;border-radius:12px;font-size:14px;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:10}#toast.visible{opacity:1;transform:translate(-50%,0)}.loading{font-size:28px;font-weight:600;display:grid;place-items:center;flex:1}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.muted{color:var(--muted)}
@keyframes enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:700px){body{background:#e7ede7}.app-shell{height:calc(100dvh - 40px);max-height:1000px;margin-top:20px;border-radius:30px;border:1px solid #d4ddd2;box-shadow:0 18px 70px #243e2612}.word{font-size:62px}.word.long{font-size:45px}}
@media(max-height:730px){.app-header{min-height:47px;padding-bottom:5px}.study-screen{gap:8px}.goal-track{margin-top:8px}.card{min-height:245px;padding:13px 17px}.word-area{padding:16px 0;gap:8px}.word{font-size:43px}.word.long{font-size:33px}.word-source{padding-top:7px}.answer{padding-top:12px}.answer .meaning{font-size:18px;margin-bottom:8px}.rating{min-height:57px}.primary{min-height:50px}.action-sub{height:24px;margin-top:2px}.nav-button{min-height:47px}.bottom-nav{padding-top:5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(display-mode:standalone),(display-mode:fullscreen){body::before{content:"";position:fixed;inset:0 0 auto;height:var(--safe-top);background:var(--green);z-index:4;pointer-events:none}}
.screen{overflow-x:hidden}.study-screen{overflow:hidden}.study-screen .card{min-height:0;overflow-y:auto;overscroll-behavior:contain}.card-top,.answer,.word-source{flex-shrink:0}.card .word-area{flex-shrink:0;min-height:150px}
.chips{margin:17px 0 12px;padding:0 0 3px}
.screen:not(.study-screen) .view-heading{padding:7px 0 13px;min-height:40px}.screen:not(.study-screen) .view-heading h2{font-size:22px}.view-heading .count{font-size:13px}.search{height:40px;border-radius:11px;padding:0 11px}.search svg{width:17px;height:17px}.chips{gap:6px;margin:11px 0 7px;padding-bottom:1px}.chip{font-size:13px;min-height:34px;padding:6px 11px}.library-tools{margin:0 0 4px}.small-primary{font-size:13px;min-height:36px;padding:8px 12px;border-radius:9px}.library-tools .text-button{font-size:13px;min-height:36px;padding:5px 2px}.word-row{gap:8px;padding:10px 1px;min-height:55px}.row-term{font-size:20px;letter-spacing:-.2px}.row-pos{font-size:12px;margin-left:5px}.row-meaning{font-size:14px;margin-top:3px;line-height:1.4}.row-tag{font-size:12px;padding:4px 6px;border-radius:5px}.word-row .row-fav svg{width:16px;height:16px}.load-more{min-height:42px;font-size:13px}.review-hero{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:16px;row-gap:4px;padding:15px 17px;border-radius:16px;margin:0 0 11px}.review-hero .eyebrow{grid-column:1;grid-row:1;font-size:13px}.review-number{grid-column:1;grid-row:2;font-size:40px;margin:0;line-height:1.1}.review-number span{font-size:13px;margin-left:5px}.review-hero .primary{grid-column:2;grid-row:1/3;width:auto;padding:10px 14px;min-height:40px;font-size:14px;border-radius:10px}.review-stats{gap:7px;margin-bottom:13px}.review-stat{padding:10px 3px;border-radius:12px}.review-stat strong{font-size:21px;margin-bottom:4px}.review-stat span{font-size:12px}.section-label{font-size:13px;margin:14px 0 8px}.week{margin:7px 0 12px;gap:6px}.week-day{font-size:12px}.week-dot{height:25px;width:25px;margin-top:5px}.week-dot svg{width:17px;height:17px}.review-option{font-size:15px;padding:11px 2px;min-height:54px}.review-option .left{gap:10px}.review-option .bubble{width:32px;height:32px;border-radius:10px}.review-option .bubble svg{width:18px;height:18px}.review-option .badge{font-size:13px}
.app-header{min-height:48px;gap:17px;padding-bottom:8px}.top-progress{flex:1;min-width:0}.today-label{font-size:13px;color:var(--muted);line-height:1.5}.today-label strong{font-size:19px;font-weight:600;color:var(--ink);margin-left:7px;font-variant-numeric:tabular-nums}.top-progress .goal-track{margin-top:7px;height:3px}.app-header .icon-button{width:39px;height:39px}.study-screen{gap:9px}.card{border-radius:21px;padding:14px 17px}.word{font-size:clamp(34px,10vw,47px)}.word.long{font-size:clamp(29px,8vw,38px)}.card .word-area{min-height:170px;padding:18px 0}.card:has(.answer) .word-area{flex:0 0 auto;min-height:0;padding:9px 0 14px;gap:6px}.card:has(.answer) .word{font-size:35px}.card:has(.answer) .word.long{font-size:30px}.answer{margin:0;padding-top:11px}.answer .meaning{font-size:18px;line-height:1.65;margin-bottom:8px}.answer .focus{font-size:14px;line-height:1.7}.example{border-top:1px solid var(--line);margin-top:13px;padding-top:10px}.example-label{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;line-height:1}.example-label .icon-button{width:30px;height:30px}.example-label svg{width:18px;height:18px}.example-en{font-family:Georgia,"Times New Roman",serif;font-size:18px;line-height:1.65;margin:6px 0 8px}.example-en mark{color:inherit;background:#e9f3c8;border-radius:3px;padding:1px 2px}.example-zh{font-size:14px;color:var(--muted);line-height:1.75;margin:0}.reveal-row{display:flex;gap:9px}.reveal-row .primary{flex:1}.known-shortcut{width:76px;background:var(--lime);border-color:var(--lime);font-weight:600;color:var(--green)}.rating-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.rating.known{background:var(--lime);border-color:var(--lime);color:var(--green)}.rating.known small{color:var(--green)}.rating-grid .rating{padding:12px 3px;font-size:15px;border-radius:13px}.rating-grid small{font-size:12px;white-space:nowrap}.familiar-tag{background:var(--lime);font-weight:600}.bottom-nav .nav-button{min-height:50px}.study-actions{padding-top:0}.dialog-footer{align-items:stretch}.dialog-footer .secondary{padding-inline:8px}
@media(max-height:730px){.card:has(.answer) .word-area{flex:0 0 auto;min-height:0;padding:9px 0 12px;gap:5px}.card:has(.answer) .word{font-size:34px}.card:has(.answer) .word.long{font-size:28px}.card:has(.answer) .word-source{padding-top:10px}.card .word-area{min-height:140px}}
