@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&family=Noto+Serif+JP:wght@500;600;700&display=swap');
:root{--paper:#f4f6fa;--white:#fff;--ink:#203353;--muted:#69768b;--line:#dce2ed;--blue:#345ec0;--blue-light:#eaf0fd;--green:#19795d;--green-bg:#eef8f3;--red:#ac384c;--red-bg:#fff0f1;--font:'Noto Sans KR','Noto Sans JP',sans-serif;--serif:'Noto Serif JP','Yu Mincho',serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #6d8dde;outline-offset:4px}::selection{background:#dce6fd}button{touch-action:manipulation}button, input{min-height:44px}h1,h2,h3,p{margin:0}.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.text-button,.icon-button{border:0;background:transparent}.text-button{font-weight:600;color:var(--blue);padding:8px 2px}.icon-button{font-size:26px;width:44px;padding:0}.primary,.secondary{border-radius:9px;font-weight:700;padding:13px 22px;min-height:48px;border:1px solid transparent}.primary{background:var(--blue);color:white}.primary:hover{background:#284eac}.secondary{background:white;border-color:var(--line)}.secondary:hover{background:#edf1f8}.full{width:100%}.topbar{height:82px;max-width:1180px;margin:0 auto;padding:0 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{border:0;background:transparent;display:flex;align-items:center;gap:12px;padding:0}.brand-icon{width:29px;height:33px;display:grid;place-items:center;background:var(--ink);color:white;border-radius:3px 6px 6px 3px;border-left:4px solid #7588a8;font-family:var(--serif);font-size:19px}.brand-name{font-size:21px;font-weight:800;letter-spacing:-1px}.brand-sub{margin-left:5px;color:var(--muted);font-size:12px;font-weight:400;letter-spacing:0}.top-actions{display:flex;align-items:center;gap:20px}.save-indicator{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.save-indicator:before{content:'';height:6px;width:6px;border-radius:50%;background:var(--green)}.save-indicator.failed:before{background:var(--red)}.home{max-width:1100px;margin:0 auto;padding:58px 0 30px}.intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:36px;gap:32px}.intro h1{font-size:34px;letter-spacing:-1.8px;line-height:1.4;font-weight:700}.intro p{margin-top:12px;line-height:1.9;color:var(--muted)}.intro .primary{white-space:nowrap;min-width:182px}.source-banner{background:#eaf0fb;border:1px solid #d7e1f5;display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-radius:8px;margin-bottom:36px;gap:16px}.source-banner strong{font-size:13px;font-weight:700;display:block;margin-bottom:4px}.source-banner p{font-size:12px;color:#566882;line-height:1.6}.source-banner button{white-space:nowrap;font-size:12px}.library-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:16px}.library-head h2{font-size:16px;font-weight:700}.library-head select{font:inherit;border:1px solid var(--line);border-radius:7px;padding:8px 30px 8px 12px;max-width:220px;background:white;color:var(--ink);min-height:42px}.library-meta{font-size:12px;color:var(--muted);margin-top:6px}.shelf{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}.book-card{text-align:left;position:relative;background:transparent;border:0;display:block;padding:0;width:100%;min-width:0}.book-cover{position:relative;height:252px;border-radius:3px 10px 10px 3px;background:#dce6f8;overflow:hidden;padding:28px 24px 24px 40px;box-shadow:inset 6px 0 0 rgba(32,51,83,.1),inset 8px 0 0 rgba(255,255,255,.28),2px 4px 0 #e3e7ee,2px 6px 0 #d5dce8,0 14px 25px -15px #7a8da9;transition:transform .16s ease}.book-card:hover .book-cover{transform:translateY(-4px)}.book-card.locked .book-cover{filter:saturate(.3);opacity:.78}.book-card:nth-child(3n+2) .book-cover{background:#dee9e5}.book-card:nth-child(3n) .book-cover{background:#e6e1ee}.cover-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:500}.cover-index{font-size:23px;font-weight:600;font-family:var(--serif);color:#46618c}.cover-type{border:1px solid #a9bad6;border-radius:3px;padding:3px 7px}.cover-kanji{font-family:var(--serif);font-size:53px;line-height:1.5;margin:18px 0 0;letter-spacing:8px;font-weight:600}.cover-name{margin-top:6px;font-size:14px;font-weight:700}.cover-bottom{display:flex;justify-content:space-between;align-items:flex-end;position:absolute;bottom:22px;left:40px;right:24px}.cover-bottom span:first-child{font-size:11px;color:#526784}.cover-seal{font-family:var(--serif);font-size:15px;border:1px solid currentColor;padding:2px 5px;color:#637d9c}.book-meta{padding:20px 1px 0}.book-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.book-title-row strong{font-size:14px}.book-title-row span{color:var(--blue);font-size:12px}.book-sub{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.6}.progress-track{height:4px;background:#e1e6ee;border-radius:3px;overflow:hidden;margin:13px 0 10px}.progress-track>span{display:block;height:100%;background:var(--blue);transition:width .2s}.book-progress{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.book-progress b{color:var(--ink);font-weight:600}.library-footer{display:flex;gap:36px;justify-content:space-between;border-top:1px solid var(--line);margin-top:44px;padding-top:22px;color:var(--muted);font-size:12px;line-height:1.8}.library-footer strong{display:block;color:var(--ink);font-weight:500;margin-bottom:3px}.home-bottom{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:38px;font-size:11px;color:var(--muted)}.home-bottom button{font-size:11px;font-weight:400;margin-left:16px;min-height:36px}.quiz-shell{max-width:672px;margin:0 auto;padding:26px 0 16px}.quiz-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.back-button{border:0;background:transparent;padding:4px 4px 4px 0;display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.back-button span{font-size:22px}.section-name{font-size:12px;font-weight:600}.quiz-progress{margin:0 0 17px}.quiz-progress-labels{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:10px}.quiz-progress-labels strong{font-weight:700}.quiz-progress .progress-track{margin:0;height:4px}.study-card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 9px 28px -22px #597394}.question-area{min-height:210px;padding:25px 32px 17px;position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}.question-top{display:flex;width:100%;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}.mode-label{background:var(--blue-light);color:var(--blue);font-weight:600;padding:5px 10px;border-radius:4px}.mode-label.meaning{background:#eaf3ef;color:#33715d}.question-instruction{font-size:13px;font-weight:500;margin-top:19px;color:#64718a}.word{font-family:var(--serif);font-size:44px;line-height:1.45;letter-spacing:2px;margin-top:6px;max-width:100%;overflow-wrap:anywhere}.question-translation{height:27px;margin-top:7px;font-size:13px;color:var(--muted);line-height:1.7}.question-translation[aria-hidden=true]{visibility:hidden}.choices-area{border-top:1px solid #edf0f5;padding:22px 28px 21px}.choices{display:grid;gap:10px}.choice{width:100%;min-height:55px;padding:13px 18px;background:#fff;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:15px;text-align:left;position:relative;transition:background .1s,border-color .1s;line-height:1.5}.choice:not(:disabled):hover{background:#f4f7fd;border-color:#8ea9dc}.choice-number{font-size:11px;border:1px solid #e0e5ef;border-radius:4px;min-width:24px;height:24px;display:grid;place-items:center;color:#7e8aa0}.choice-label{font-family:'Noto Sans JP',var(--font);font-size:17px;flex:1;overflow-wrap:anywhere}.meaning-choices .choice-label{font-family:var(--font);font-size:15px}.choice-state{font-size:11px;font-weight:700;display:flex;gap:5px;align-items:center;min-width:38px;justify-content:flex-end}.choice.correct{border-color:#5b9c82;background:var(--green-bg);color:#17654c}.choice.incorrect{border-color:#d27d89;background:var(--red-bg);color:var(--red)}.choice.correct .choice-number{border-color:#a9d3c1;color:var(--green)}.choice.incorrect .choice-number{border-color:#e6abb4;color:var(--red)}.choice:disabled:not(.correct):not(.incorrect){color:#8490a2;background:#fafbfd}.answer-message{min-height:42px;padding-top:13px;font-size:12px;line-height:1.7;color:var(--muted)}.answer-message.good{color:var(--green)}.answer-message.bad{color:var(--red)}.quiz-controls{display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:12px}.auto-toggle{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);cursor:pointer;min-height:44px}.auto-toggle input{appearance:none;width:30px;height:18px;min-height:18px;margin:0;border-radius:20px;background:#c9d2e1;cursor:pointer;position:relative;transition:background .15s}.auto-toggle input:before{content:'';height:12px;width:12px;background:white;border-radius:50%;position:absolute;top:3px;left:3px;transition:transform .15s}.auto-toggle input:checked{background:var(--blue)}.auto-toggle input:checked:before{transform:translateX(12px)}.next-button{min-width:160px}.next-button:disabled{background:#dce3ef;color:#7b8ba7}.key-hint{font-size:11px;color:var(--muted);text-align:center;margin-top:15px;line-height:1.9}.key-hint kbd{font:inherit;border:1px solid #d7deea;border-bottom-width:2px;border-radius:3px;padding:1px 4px;background:white;margin:0 2px}.batch-footer{display:flex;justify-content:space-between;align-items:center;padding:17px 1px 0;font-size:11px;color:var(--muted)}.batch-dots{display:flex;gap:7px;align-items:center}.batch-dot{width:7px;height:7px;border-radius:50%;background:#dbe2ef}.batch-dot.current{box-shadow:0 0 0 3px #e2e9fa;background:var(--blue)}.batch-dot.good{background:var(--green)}.batch-dot.bad{background:var(--red)}.batch-count{margin-left:6px}.quiz-detail{display:flex;gap:16px}.complete{max-width:640px;margin:55px auto;padding:42px 38px;background:white;border:1px solid var(--line);border-radius:14px;text-align:center}.complete-stamp{font-family:var(--serif);height:74px;width:74px;margin:0 auto 24px;display:grid;place-items:center;border:2px solid var(--green);border-radius:50%;color:var(--green);font-size:31px}.complete h1{font-size:25px;letter-spacing:-1px}.complete>p{line-height:1.8;color:var(--muted);margin-top:12px}.complete-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:28px 0}.complete-stat{background:#f2f6fc;border-radius:8px;padding:18px}.complete-stat strong{display:block;font-size:24px;margin-top:5px}.complete-stat span{font-size:12px;color:var(--muted)}.complete .primary{margin-bottom:9px}.complete .secondary{margin-bottom:10px}.complete-note{font-size:11px!important}.notice{font-size:12px;color:var(--muted);padding:15px 0;text-align:center}.batch-notice{background:#edf3fd;color:#4c6694;font-size:11px;border-radius:4px;padding:3px 7px}.import-note{font-size:11px;line-height:1.9;color:var(--muted);margin-top:16px}dialog{border:1px solid var(--line);border-radius:14px;padding:30px;width:min(560px,calc(100% - 32px));color:var(--ink);box-shadow:0 24px 80px #23365330}dialog::backdrop{background:#23365360;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.dialog-head h2{font-size:21px}dialog p.muted{font-size:12px;line-height:1.9;margin-bottom:20px}dialog label:not(.text-button){font-size:12px;font-weight:600;display:block;margin-bottom:8px}dialog input:not([type=file]),dialog textarea{width:100%;border:1px solid var(--line);border-radius:7px;background:#fafbfd;padding:12px;color:var(--ink);margin-bottom:18px}dialog textarea{resize:vertical;line-height:1.8;min-height:130px}dialog input::placeholder,dialog textarea::placeholder{color:#8d99ad}.file-row{display:flex;align-items:center;gap:15px;font-size:12px}.file-row .text-button{cursor:pointer}.error-text{font-size:12px;min-height:27px;color:var(--red);line-height:1.8;margin:8px 0}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,12px);background:var(--ink);color:white;padding:12px 20px;border-radius:8px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;max-width:90vw;width:max-content;z-index:20}#toast.visible{opacity:1;transform:translate(-50%,0)}.warn-line{color:var(--red)}
@media(min-width:1200px){.home{padding-left:0;padding-right:0}.shelf{grid-template-columns:repeat(3,1fr)}.book-cover{height:270px}}
@media(max-width:1180px){.home{padding-left:40px;padding-right:40px}}
@media(max-width:780px){.topbar{height:68px;padding:0 22px}.brand-sub{display:none}.top-actions{gap:14px}.save-indicator{font-size:10px}.top-actions .text-button{font-size:12px}.home{padding:35px 22px 25px}.intro{align-items:flex-start;flex-direction:column;gap:22px;margin-bottom:28px}.intro h1{font-size:29px}.intro p{font-size:12px;line-height:1.9;margin-top:9px}.intro .primary{min-width:0;width:100%}.source-banner{padding:13px 15px;margin-bottom:28px;align-items:flex-start}.source-banner p{font-size:11px}.source-banner .text-button{padding-top:0;min-height:32px}.shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}.book-cover{height:235px;padding:22px 17px 22px 28px}.cover-index{font-size:20px}.cover-kanji{font-size:40px;letter-spacing:4px;margin-top:19px}.cover-name{font-size:12px}.cover-bottom{left:28px;right:17px;bottom:20px}.cover-type{font-size:10px}.book-title-row strong{font-size:12px}.book-title-row span{font-size:11px}.book-sub{font-size:10px}.book-progress{font-size:10px}.library-head select{max-width:165px;font-size:12px}.library-head h2{font-size:14px}.library-footer{gap:22px;font-size:11px;flex-direction:column;margin-top:34px;padding-top:20px}.home-bottom{flex-direction:column;align-items:flex-start;gap:6px;margin-top:24px}.home-bottom button{margin:0 16px 0 0}.quiz-shell{padding:18px 20px 18px;max-width:600px}.quiz-top{margin-bottom:13px}.question-area{min-height:190px;padding:20px 22px 12px}.word{font-size:40px}.question-instruction{margin-top:16px}.choices-area{padding:18px 20px 14px}.choice{min-height:54px;padding:12px 14px;gap:12px}.choice-label{font-size:16px}.quiz-controls{margin-top:16px}.complete{margin:30px 20px;padding:32px 24px}.key-hint{font-size:10px;margin-top:12px}.batch-footer{font-size:10px}.quiz-detail{gap:10px}.brand-name{font-size:20px}}
@media(max-width:390px){.home{padding-left:16px;padding-right:16px}.book-cover{height:222px;padding-left:24px;padding-right:12px}.cover-kanji{font-size:34px;letter-spacing:3px}.cover-bottom{left:24px;right:12px}.cover-bottom span:first-child{font-size:10px}.cover-seal{font-size:12px}.book-title-row{gap:4px}.book-title-row strong{font-size:11px}.quiz-shell{padding:12px 14px}.question-area{min-height:175px;padding-top:16px}.word{font-size:36px}.choices-area{padding:15px 15px 10px}.choices{gap:8px}.choice{min-height:50px;padding:10px 12px}.choice-label{font-size:15px}.next-button{min-width:138px}.question-instruction{margin-top:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.shelf-pages{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:32px;font-size:12px;color:var(--muted)}.shelf-pages button{font-size:12px;min-height:42px;padding:9px 18px}.shelf-pages button:disabled{opacity:.4}.source-description{font-size:12px;line-height:1.9;color:var(--muted);margin:0 0 16px}.source-link{display:block;text-align:center;text-decoration:none;margin-top:24px}.word.korean-word{font-family:var(--font);font-size:26px;letter-spacing:-.7px;line-height:1.5}.word.long-word{font-size:30px;letter-spacing:0}.word.korean-word.long-word{font-size:23px}.choice-label.long-choice{font-size:13px;line-height:1.6}.word{min-height:64px;display:grid;align-items:center}.question-area{min-height:226px}.question-translation{height:38px;font-size:12px;line-height:1.6}.topbar:has(+.quiz-shell){height:66px}@media(max-width:780px){.question-area{min-height:210px}.word.korean-word{font-size:24px}.word.korean-word.long-word{font-size:21px}.word.long-word{font-size:27px}.choice-label.long-choice{font-size:12px}.source-banner .text-button{max-width:92px;white-space:normal;line-height:1.7}.shelf-pages{gap:18px}.shelf-pages button{padding:9px 14px}.topbar:has(+.quiz-shell){height:58px}}@media(max-width:390px){.question-area{min-height:204px}.word{min-height:60px}.word.korean-word.long-word{font-size:20px}.word.long-word{font-size:25px}}
html,body,#app{overflow-anchor:none}
[hidden]{display:none!important}

.level-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:0 0 30px;overflow-x:auto}.level-tab{border:0;background:transparent;padding:12px 24px;font-weight:600;white-space:nowrap;color:var(--muted);border-bottom:2px solid transparent}.level-tab.selected{color:var(--blue);border-bottom-color:var(--blue)}.account-button{border:1px solid var(--line);background:#fff;border-radius:7px;padding:8px 14px;font-size:12px;font-weight:600;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-button:hover{border-color:#99aed6}.settings-button{background:none;border:0;font-size:23px;width:44px;color:var(--muted)}.custom-picker{display:flex;align-items:center;gap:15px}.empty-library{padding:64px 20px 80px;text-align:center;background:#fff;border:1px dashed var(--line);border-radius:10px}.empty-library h3{font-size:16px;margin:20px 0}.empty-book{display:inline-grid;place-items:center;background:#e4ebf8;color:#526b95;width:65px;height:80px;font-family:var(--serif);font-size:32px;border-radius:3px 7px 7px 3px;border-left:5px solid #c9d5ea}dialog label.setting-row{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px;font-weight:500;margin:0}dialog input.setting-checkbox{width:20px;height:20px;min-height:20px;margin:0;accent-color:var(--blue);padding:0}.settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:25px 0 12px}.legal-links{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:25px 0 14px}.app-version{text-align:center;color:var(--muted);font-size:11px}.account-name{font-size:21px;font-weight:600;margin-top:22px}.account-email{font-size:13px;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}.account-help{color:var(--muted);font-size:13px;margin:24px 0;line-height:1.8}.account-logout{display:block;margin:16px auto 0}.delete-account{display:block;margin:22px auto 0;color:var(--muted);font-size:11px;font-weight:400}.delete-notice{font-size:13px;color:var(--muted);line-height:1.9;margin:16px 0 25px}.danger{background:var(--red)}.danger:hover{background:#8e2c3e}#google-button{display:flex;justify-content:center;margin:24px 0}.legal-page{max-width:720px;margin:45px auto;padding:20px 25px 80px;line-height:1.95}.legal-page h1{font-size:27px;margin:30px 0 15px}.legal-page h2{font-size:17px;margin:30px 0 10px}.legal-page p{color:var(--muted);font-size:14px}.auth-page{max-width:420px;margin:12vh auto;padding:30px;text-align:center}.auth-page h1{font-size:25px;margin:20px 0}.auth-page p{color:var(--muted);line-height:1.9}.auth-page .primary{display:block;margin-top:25px;text-decoration:none}body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.top-actions{gap:14px}.brand-name{font-size:22px}.quiz-shell .study-card{overflow-anchor:none}.question-translation{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.answer-message{min-height:54px}
@media(max-width:780px){.level-tab{padding:12px 18px}.top-actions{gap:6px}.account-button{font-size:11px;padding:7px 10px;max-width:106px}.brand-name{font-size:18px;letter-spacing:-.7px}.brand{gap:8px}.brand-icon{width:26px;height:30px;font-size:17px}.save-indicator{font-size:9px;gap:4px}.topbar{padding:0 18px}.settings-button{font-size:20px;width:36px;min-width:36px}.custom-picker{gap:8px}.custom-picker select{max-width:150px}.level-tabs{margin-bottom:24px;gap:0}.question-translation{height:38px}.quiz-shell{padding-bottom:25px}.key-hint{display:none}.legal-page{margin:15px auto}.topbar:has(+.quiz-shell) .brand-sub{display:none}}
@media(max-width:440px){.save-indicator{display:none}.level-tab{flex:1;padding:12px 10px}.intro h1{font-size:28px}.top-actions{gap:4px}.brand-name{font-size:18px}.topbar{padding:0 16px}.custom-picker select{max-width:132px}.question-area{min-height:210px}.word{font-size:37px}.choice-label.long-choice{font-size:12px}}
@media(max-width:780px) and (max-height:760px){.topbar:has(+.quiz-shell){height:50px}.quiz-shell{padding:8px 14px}.quiz-top{height:22px;min-height:22px;margin-bottom:8px;justify-content:flex-end}.quiz-top .back-button{display:none}.section-name{font-size:10px}.quiz-progress{margin-bottom:12px}.quiz-progress-labels{font-size:11px;margin-bottom:6px;line-height:16px}.quiz-progress .progress-track{height:3px}.question-area{height:168px;min-height:168px;padding:10px 18px 8px}.question-top{font-size:10px}.mode-label{padding:3px 8px}.question-instruction{margin-top:8px;font-size:12px;line-height:1.4}.word{font-size:34px;min-height:50px;line-height:1.35;margin-top:4px}.word.long-word{font-size:25px}.word.korean-word{font-size:23px}.word.korean-word.long-word{font-size:20px}.question-translation{height:34px;margin-top:4px;font-size:11px;line-height:1.5;flex-shrink:0}.choices-area{padding:12px 14px 8px}.choices{gap:7px}.choice{min-height:44px;padding:8px 10px;gap:10px}.choice-label{font-size:15px;line-height:1.4}.meaning-choices .choice-label{font-size:13px}.choice-label.long-choice,.meaning-choices .choice-label.long-choice{font-size:11px}.choice-state{font-size:10px;min-width:34px}.choice-number{width:22px;min-width:22px;height:22px}.answer-message{height:42px;min-height:42px;padding-top:8px;font-size:11px;line-height:1.5}.quiz-controls{margin-top:10px}.quiz-controls .primary{min-height:44px;padding:10px 14px;font-size:13px}.batch-footer{padding-top:10px;line-height:16px}.auto-toggle{font-size:11px}.key-hint{display:none}}
@media(max-width:780px) and (max-height:600px){.topbar:has(+.quiz-shell){height:48px}.quiz-top{display:none}.question-area{height:146px;min-height:146px;padding:6px 16px}.question-top{font-size:10px}.mode-label{padding:2px 7px}.question-instruction{font-size:11px;margin-top:6px}.word{font-size:30px;min-height:44px;margin-top:2px}.word.korean-word{font-size:21px}.word.long-word{font-size:24px}.word.korean-word.long-word{font-size:18px}.question-translation{height:30px;margin-top:2px;line-height:15px}.choices-area{padding:8px 12px 6px}.choices{gap:6px}.answer-message{height:32px;min-height:32px;padding-top:4px;line-height:14px;font-size:10px}.quiz-controls{margin-top:8px}.batch-footer{padding-top:6px;line-height:14px}}
.library-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;margin-bottom:24px}.shelf-title{min-width:0}.library-head .library-meta{grid-column:1/-1;margin:0;line-height:1.7}.deck-title-picker{display:flex;align-items:center;gap:8px;max-width:100%;position:relative;width:fit-content}.library-head .deck-title-picker select{appearance:none;min-height:44px;max-width:100%;border:0;border-radius:0;background:transparent;font:inherit;font-weight:700;color:var(--ink);padding:4px 28px 4px 0;text-overflow:ellipsis;cursor:pointer}.deck-title-picker>span{pointer-events:none;position:absolute;right:3px;color:var(--muted);font-size:18px}.add-deck{display:flex;align-items:center;justify-content:center;gap:5px;min-width:64px;min-height:44px;white-space:nowrap;border:1px solid var(--line);border-radius:8px;background:white;font-size:12px;font-weight:600;color:var(--blue);padding:6px 12px}.add-deck>span{font-size:20px;font-weight:400}.add-deck:hover{border-color:#99aed6;background:var(--blue-light)}
.google-native-button{display:flex;justify-content:center;align-items:center;gap:12px;background:#fff;color:#1f1f1f;border-color:#747775;font-weight:500}.google-native-button:hover{background:#f2f5fa}#google-button:has(.google-native-button){flex-direction:column;gap:8px}.review-login{font-size:10px;color:var(--muted);font-weight:400;align-self:center}
#import-dialog{padding:0;width:min(620px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:hidden}.deck-form{display:flex;flex-direction:column;max-height:calc(100dvh - 30px)}.deck-form .dialog-head{margin:0;padding:16px 22px 8px;flex-shrink:0}.deck-form .dialog-head h2{font-size:20px}.editor-scroll{padding:8px 22px 18px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.deck-form #deck-title{margin-bottom:16px;font-size:16px}.editor-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:#eaf0f7;border-radius:9px;padding:4px;margin-bottom:18px}.editor-tabs button{border:0;background:transparent;border-radius:6px;font-size:13px;font-weight:600;color:var(--muted);padding:8px 4px;white-space:nowrap}.editor-tabs button[aria-selected=true]{background:#fff;color:var(--blue);box-shadow:0 1px 4px #20335312}.word-row{display:grid;grid-template-columns:1fr 1fr 40px;gap:8px 10px;border-bottom:1px solid var(--line);padding:0 0 14px;margin-bottom:14px}.word-row label{min-width:0;margin:0!important}.word-row label>span{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.word-row .meaning-field{grid-column:1/3}.word-row input{margin:0!important;font-size:16px!important;padding:9px 10px!important;min-height:44px;line-height:1.5}.word-row .remove-word{grid-column:3;grid-row:1/3;align-self:center;color:var(--muted);width:40px;min-width:40px;min-height:44px;font-size:23px}.add-word{font-size:13px}.bulk-import{margin-top:18px;font-size:12px;color:var(--muted)}.bulk-import summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.bulk-import textarea{font-size:16px;min-height:110px}.bulk-import .file-row{flex-wrap:wrap;justify-content:space-between}.editor-footer{border-top:1px solid var(--line);padding:10px 22px 16px;flex-shrink:0;background:white}.editor-footer .error-text{min-height:0;margin:0 0 6px}.editor-footer .error-text:empty{display:none}.editor-submit{display:flex;align-items:center;justify-content:space-between;gap:10px}.editor-submit>span{font-size:11px;color:var(--muted)}.editor-submit .primary{padding:11px 16px;white-space:nowrap;font-size:13px}.catalog-word{display:flex!important;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f5;font-weight:400!important;margin:0!important;cursor:pointer;min-height:70px}.catalog-word>input{width:20px!important;min-width:20px;height:20px;min-height:20px;margin:0!important;padding:0!important;accent-color:var(--blue)}.catalog-word>span{flex:1;min-width:0;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:baseline}.catalog-word strong{font-size:17px;font-weight:600;overflow-wrap:anywhere}.catalog-word>span>span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.catalog-word>span>span:last-child{grid-column:1/-1;color:var(--ink)}.catalog-word small{max-width:72px;text-align:right;font-size:10px;color:var(--muted);overflow-wrap:anywhere}.deck-form input[type=search]{font-size:16px;margin-bottom:4px}.weak-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}.weak-heading button{font-size:12px;white-space:nowrap}.weak-heading button:disabled{opacity:.5}.editor-empty{color:var(--muted);font-size:13px;line-height:1.8;text-align:center;padding:28px 12px}.selected-words{border-top:1px solid var(--line);margin-top:16px;padding-top:14px;font-size:11px;color:var(--muted)}.selected-words>div{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.selected-words button{border:0;background:var(--blue-light);color:var(--blue);border-radius:6px;font-size:12px;padding:5px 10px;min-height:36px}
body.quiz-mode{height:100dvh;height:var(--app-height,100dvh);overflow:hidden}body.quiz-mode #app{height:100%;display:grid;grid-template-rows:52px minmax(0,1fr)}body.quiz-mode .topbar{height:52px;width:100%;padding:0 18px}body.quiz-mode .quiz-shell{width:100%;max-width:672px;height:100%;min-height:0;padding:8px 18px 10px;display:grid;grid-template-rows:36px 34px minmax(0,1fr) 54px 26px;gap:8px}body.quiz-mode .quiz-top{display:flex;height:auto;min-height:0;margin:0;justify-content:space-between}body.quiz-mode .quiz-top .back-button{display:flex;min-height:36px}body.quiz-mode .section-name{font-size:11px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.quiz-mode .quiz-progress{margin:0}body.quiz-mode .quiz-progress-labels{font-size:11px;line-height:17px;margin-bottom:6px}body.quiz-mode .study-card{height:100%;min-height:0;display:grid;grid-template-rows:minmax(132px,1fr) auto;overflow:auto}body.quiz-mode .question-area{height:auto;min-height:0;padding:14px 22px 8px;justify-content:center}body.quiz-mode .question-top{position:absolute;top:12px;left:18px;right:18px;width:auto;font-size:10px}body.quiz-mode .question-instruction{margin-top:24px;font-size:12px;line-height:1.45}body.quiz-mode .word{font-size:clamp(30px,6vh,50px);min-height:44px;line-height:1.35;margin-top:4px}body.quiz-mode .word.long-word{font-size:27px}body.quiz-mode .word.korean-word{font-size:24px}body.quiz-mode .word.korean-word.long-word{font-size:20px}body.quiz-mode .question-translation{height:34px;min-height:34px;font-size:12px;line-height:17px;margin-top:5px;flex-shrink:0}body.quiz-mode .choices-area{padding:14px 18px 10px}body.quiz-mode .choices{gap:8px}body.quiz-mode .choice{min-height:48px;padding:9px 12px;gap:10px}body.quiz-mode .choice-label{font-size:16px;line-height:1.45}body.quiz-mode .meaning-choices .choice-label{font-size:14px}body.quiz-mode .choice-label.long-choice{font-size:12px}body.quiz-mode .choice-state{min-width:36px;font-size:10px}body.quiz-mode .answer-message{height:36px;min-height:36px;padding-top:8px;font-size:11px;line-height:1.45;overflow:auto}body.quiz-mode .quiz-controls{margin:0}body.quiz-mode .quiz-controls .primary{min-height:44px;padding:10px 16px;font-size:13px}body.quiz-mode .batch-footer{padding:0 1px;font-size:10px;line-height:16px}body.quiz-mode .key-hint{display:none}body.quiz-mode .mode-label{padding:4px 9px}
@media(max-width:440px){.library-head{gap:2px 10px}.library-head h2{font-size:15px}.library-meta{font-size:11px}.add-deck{min-width:62px;padding:6px 10px}.deck-form .dialog-head{padding-left:18px;padding-right:14px}.editor-scroll{padding-left:18px;padding-right:18px}.editor-footer{padding-left:18px;padding-right:18px}.intro{gap:18px}.intro h1{font-size:27px}.book-progress{flex-wrap:wrap;gap:4px}.level-tabs{margin-bottom:18px}.quiz-mode .brand-name{font-size:17px}}
@media(max-height:650px){body.quiz-mode #app{grid-template-rows:46px minmax(0,1fr)}body.quiz-mode .topbar{height:46px}body.quiz-mode .quiz-shell{grid-template-rows:28px 30px minmax(0,1fr) 44px 20px;gap:6px;padding:4px 14px 8px}body.quiz-mode .quiz-top .back-button{min-height:28px;font-size:11px}body.quiz-mode .question-area{padding:8px 14px 3px}body.quiz-mode .question-top{top:6px;left:12px;right:12px}body.quiz-mode .mode-label{padding:2px 6px}body.quiz-mode .question-instruction{font-size:11px;margin-top:20px}body.quiz-mode .word{font-size:30px;min-height:38px}body.quiz-mode .word.long-word{font-size:24px}body.quiz-mode .word.korean-word{font-size:21px}body.quiz-mode .word.korean-word.long-word{font-size:18px}body.quiz-mode .question-translation{font-size:11px;height:30px;min-height:30px;line-height:15px;margin-top:2px}body.quiz-mode .study-card{grid-template-rows:minmax(118px,1fr) auto}body.quiz-mode .choices-area{padding:8px 12px 5px}body.quiz-mode .choices{gap:6px}body.quiz-mode .choice{min-height:44px;padding:7px 10px}body.quiz-mode .choice-label{font-size:14px}body.quiz-mode .meaning-choices .choice-label{font-size:13px}body.quiz-mode .choice-label.long-choice{font-size:11px}body.quiz-mode .answer-message{height:30px;min-height:30px;font-size:10px;padding-top:5px;line-height:13px}}
@media(max-height:460px) and (orientation:landscape){body.quiz-mode .quiz-shell{max-width:900px;grid-template-rows:24px minmax(0,1fr) 44px 20px;column-gap:10px}body.quiz-mode .quiz-progress{display:none}body.quiz-mode .study-card{grid-template-columns:1fr 1fr;grid-template-rows:1fr}body.quiz-mode .choices-area{border-top:0;border-left:1px solid var(--line);overflow:auto}body.quiz-mode .question-area{align-self:stretch}.deck-form{max-height:calc(100dvh - 16px)}}

.home{padding-top:38px}.intro{margin-bottom:28px}.intro h1{font-size:30px}.intro .resume-button{white-space:normal;min-width:0;max-width:420px;flex:0 1 320px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:16px 20px}.resume-target{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;font-size:12px;font-weight:400;line-height:1.5;opacity:.88;overflow-wrap:anywhere}.resume-target>span{white-space:nowrap}.resume-button strong{font-size:17px;font-weight:700;line-height:1.5}.review-progress{margin-top:6px;color:var(--blue);font-size:11px}.editor-summary{min-width:0;display:flex;flex-direction:column;gap:3px}.editor-draft-status{font-size:11px;color:var(--muted);line-height:1.5}.past-mistakes{margin-top:20px}.past-mistakes summary{font-size:12px;color:var(--muted);cursor:pointer;min-height:44px;display:flex;align-items:center;gap:6px}.past-mistakes summary:before{content:'+';font-size:16px}.past-mistakes[open] summary:before{content:'−'}.past-mistakes summary:focus-visible{outline:3px solid #6d8dde;outline-offset:3px}
@media(max-width:780px){.home{padding-top:28px}.intro{gap:20px}.intro h1{font-size:25px}.intro .resume-button{max-width:none;flex:auto;width:100%;padding:13px 17px}.intro p{margin-top:8px}.resume-button strong{font-size:16px}}
@media(max-width:374px){.home{padding-top:23px}.intro h1{font-size:23px}.resume-target{font-size:11px}.editor-submit .primary{padding-left:14px;padding-right:14px}}

.library-head .deck-title-picker{width:100%}.library-head .deck-title-picker select{width:100%;min-width:0}
