:root{--ink:#243a31;--green:#214c3e;--paper:#f7f7f2;--muted:#7b847c;--line:#e3e7dd;--accent:#e8edce;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:9px;padding:11px 17px;color:var(--ink)}button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a2b78a;outline-offset:3px}.primary{background:var(--green);color:#fff;border-color:var(--green)}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;border-right:1px solid var(--line);background:#fbfcf8;padding:36px 24px;display:flex;flex-direction:column;z-index:3}.brand{text-decoration:none;display:flex;align-items:center;gap:13px;color:var(--green);font-size:18px;line-height:1.35;letter-spacing:-.5px}.brand b{font-weight:600}.logo{display:grid;place-items:center;background:var(--green);color:var(--accent);width:43px;height:49px;border-radius:6px 12px 12px 6px;font-size:29px}.small-label{font-size:10px;letter-spacing:2px;color:#92998f;margin:48px 12px 17px;text-transform:uppercase}nav{display:grid;gap:7px}nav button{display:flex;align-items:center;gap:12px;text-align:left;width:100%;background:none;border:0;color:#788479;padding:14px 13px}nav button.active{background:#eaf0e3;color:var(--green);font-weight:600}nav .nav-icon{font-size:20px;width:24px}nav .nav-count{margin-left:auto;font-size:11px;border-radius:6px;background:#fff8;padding:3px 6px}.side-bottom{margin-top:auto;display:grid;gap:16px}.offline{font-size:12px;color:var(--muted);display:flex;gap:9px;align-items:center;padding:0 10px}.dot{width:7px;height:7px;border-radius:100%;background:#6f9574}.plain{background:none;border:none;text-align:left}.side-bottom select{background:none;border:1px solid var(--line);border-radius:8px;padding:9px}.page{margin-left:238px}header{height:96px;border-bottom:1px solid var(--line);padding:0 6%;display:flex;align-items:center;justify-content:space-between;gap:15px}.breadcrumb{font-size:10px;letter-spacing:1.8px;color:#798578;display:flex;gap:16px}.breadcrumb span:last-child{letter-spacing:0;color:var(--ink);font-size:12px}main{max-width:1280px;margin:0 auto;padding:46px 6% 24px}.intro{display:flex;align-items:center;justify-content:space-between;min-height:197px;gap:25px}.eyebrow{font-size:10px;letter-spacing:2px;color:#799078;font-weight:600;text-transform:uppercase}h1{font-family:Georgia,"Microsoft YaHei",serif;font-size:clamp(30px,4vw,47px);font-weight:500;letter-spacing:-1.5px;margin:18px 0 12px}.intro p{color:var(--muted);font-size:14px;line-height:1.8;margin:0;max-width:520px}.book-art{position:relative;width:186px;height:166px;margin-right:15px;transform:rotate(-8deg)}.book-cover{position:absolute;inset:0 22px 8px 10px;background:var(--green);color:#e6edcf;border-radius:3px 13px 13px 3px;padding:25px 25px;border-left:7px solid #173b31;font-family:Georgia,serif;font-size:17px;line-height:1.35;letter-spacing:1.7px;box-shadow:10px 15px 30px #214c3e16}.book-cover span{display:block;font:6px sans-serif;letter-spacing:1px;margin-top:18px}.book-page{position:absolute;inset:3px 13px 0 15px;border-radius:7px 15px 15px 7px;background:repeating-linear-gradient(#eeeedd 0 2px,#fff 3px 4px);border:1px solid #e1e4d6}.leaf{position:absolute;bottom:0;right:-3px;font-size:65px;color:#b6bf82;transform:rotate(35deg)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:32px 0 43px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;position:relative}.stat-label{font-size:12px;color:var(--muted)}.stat-num{font:32px Georgia,serif;margin-top:12px}.stat-icon{position:absolute;right:20px;top:22px;color:#90a180;font-size:20px}.stat:last-child{background:#edf0df}.workspace-head{display:flex;justify-content:space-between;align-items:center;gap:20px}h2{font-size:21px;font-weight:500;margin:0 0 7px}.muted{color:var(--muted);font-size:12px;line-height:1.8}.search-wrap{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);padding:0 12px;border-radius:9px;min-width:260px}.search-wrap span{font-size:24px;color:#788b7a}.search-wrap input{border:0;padding:12px 0;background:none;width:100%;outline:none}.filters{display:flex;gap:10px;align-items:center;margin:22px 0}.filters select{border:1px solid var(--line);background:#fff;border-radius:7px;padding:9px 12px;font-size:12px;max-width:180px}.hint{margin-left:auto;font-size:11px;color:#949c91}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;text-align:left;cursor:pointer;transition:transform .15s,box-shadow .15s;min-width:0;display:flex;flex-direction:column;min-height:225px}.card:hover{transform:translateY(-2px);box-shadow:0 8px 25px #223b3108}.card-top{display:flex;justify-content:space-between;gap:8px;margin-bottom:17px}.badge{display:inline-block;font-size:10px;letter-spacing:.5px;background:#edf1e4;border-radius:5px;padding:5px 8px;color:#658252}.badge.word{background:#fff2d9;color:#a47d33}.badge.sentence{background:#e7eef8;color:#64809d}.badge.verse{background:#f1e9f6;color:#8b709b}.card-language{font-size:10px;color:#8b9489}.card h3{font-family:Georgia,"Microsoft YaHei",serif;font-size:23px;font-weight:500;line-height:1.4;margin:0 0 11px;overflow-wrap:anywhere;white-space:pre-wrap}.card .excerpt{color:#7b847e;font-size:13px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #eff1eb;padding-top:14px;margin-top:auto;font-size:10px;color:#9aA293}.tags{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.tag{font-size:10px;color:#7b8b75}.card-date{white-space:nowrap}.reference{color:#8c7095;font-size:12px;margin-bottom:14px}#empty{text-align:center;border:1px dashed #d9e0d0;border-radius:13px;padding:52px 20px;background:#fff7}#empty h3{font:26px Georgia,serif}#empty p{color:var(--muted);line-height:1.8}#empty .empty-icon{font-size:42px;color:#8c9d76}footer{display:flex;justify-content:center;gap:12px;margin-top:48px;font-size:9px;letter-spacing:1px;color:#a3aba0}dialog{border:1px solid var(--line);border-radius:18px;width:min(620px,94vw);padding:29px;color:var(--ink);max-height:90dvh;overflow:auto;box-shadow:0 30px 100px #132c3233}dialog::backdrop{background:#1c302950;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:23px}.dialog-head h2{margin:9px 0 0}.icon-button{border:0;background:none;font-size:27px;padding:2px 9px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{display:grid;gap:7px;margin-bottom:16px;font-size:12px;color:#6c7c6c}label input,label textarea,label select{width:100%;padding:11px;border:1px solid #dce3d5;border-radius:8px;background:#fcfdf9;color:var(--ink)}textarea{resize:vertical;line-height:1.7}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.danger{color:#b26657;margin-right:auto}.prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;margin-top:18px}.notes{border-top:1px solid var(--line);padding-top:18px;color:#788577}.settings-section{border-top:1px solid var(--line);padding:18px 0}.settings-section h3{font-size:15px;font-weight:600}.settings-section p{font-size:13px;color:#7d887c;line-height:1.8}.settings-section button{margin:4px 4px 4px 0;font-size:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);transition:transform .2s;background:var(--green);color:#fff;padding:14px 23px;border-radius:10px;z-index:20;font-size:13px;max-width:90vw}#toast.show{transform:translateX(-50%) translateY(0)}.review-card{background:white;border:1px solid var(--line);border-radius:15px;padding:40px;max-width:680px;margin:20px auto;text-align:center}.review-card h3{font:30px Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere}.review-answer{white-space:pre-wrap;line-height:1.8;border-top:1px solid var(--line);padding:20px}.review-progress{color:var(--muted);font-size:12px;margin-bottom:25px}.review-actions{display:flex;justify-content:center;gap:12px;margin-top:23px}.review-actions button{flex:1}.confirm-box{padding:15px;background:#fff4e9;border-radius:8px;margin:15px 0;color:#935e35}[hidden]{display:none!important}
@media(min-width:1450px){main{padding-top:60px}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.sidebar{width:195px;padding:27px 15px}.page{margin-left:195px}.stats{gap:9px}.stat{padding:17px}.stat-icon{display:none}.cards{grid-template-columns:1fr}.book-art{width:155px;height:151px;margin-right:0}.search-wrap{min-width:200px}.hint{display:none}}@media(max-width:640px){.sidebar{position:fixed;inset:auto 0 0;width:auto;height:76px;padding:0;background:#fbfcf8f5;border-right:0;border-top:1px solid var(--line)}.brand,.small-label,.side-bottom{display:none}nav{display:flex;justify-content:space-around;height:100%;gap:0;padding:4px}nav button{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:5px 2px;width:16%;font-size:9px;border-radius:8px}nav .nav-icon{font-size:19px}nav .nav-count{display:none}.page{margin:0 0 85px}header{height:73px;padding:0 6%}.breadcrumb{font-size:8px;gap:8px;letter-spacing:.8px}.breadcrumb span:last-child{font-size:10px}header .primary{font-size:12px;padding:10px}main{padding-top:30px}.intro{min-height:153px;gap:6px}.intro p{font-size:12px;max-width:235px}h1{font-size:33px}.book-art{width:108px;height:121px}.book-cover{padding:21px 12px;font-size:11px;border-left-width:5px;inset:0 12px 8px 0}.book-cover span{font-size:4px;margin-top:12px;letter-spacing:0}.book-page{inset:3px 5px 0 5px}.leaf{font-size:45px}.stats{grid-template-columns:repeat(2,1fr);margin:25px 0 30px;gap:10px}.stat{padding:15px}.stat-num{font-size:26px;margin-top:7px}.stat-icon{display:block;top:18px;font-size:17px}.stat-label{font-size:11px}.workspace-head{flex-wrap:wrap;gap:16px}.search-wrap{width:100%}.cards{gap:12px}.card{padding:21px;min-height:210px}.filters{margin:15px 0}.filters select{max-width:48%;flex:1}.dialog-actions{flex-wrap:wrap}dialog{padding:23px}.form-row{gap:10px}.review-card{padding:25px 17px}.review-actions{gap:7px}.review-actions button{padding:10px;font-size:12px}footer{margin-top:30px;font-size:8px}}

.mobile-settings{display:none}#settings>#uiLang{padding:7px;border:1px solid var(--line);border-radius:7px;margin-bottom:12px;background:white}@media(max-width:640px){.mobile-settings{display:block;margin-left:auto;padding:9px;font-size:19px}.breadcrumb span:last-child{display:none}}

.word-category{display:flex;gap:24px;margin:10px 0 18px}.word-category label{display:flex;align-items:center;gap:8px;margin:0}.word-category input{width:18px;height:18px;accent-color:#214c3e}
/* Compact book header and calendar inside the existing collection. */
main{padding-top:14px}.intro{min-height:0;height:78px;justify-content:flex-end;margin-bottom:14px}.intro>div:first-child{display:none}.book-art{width:90px;height:73px;margin:0 12px 0 0}.book-cover{padding:13px 9px;font-size:9px;letter-spacing:.6px;border-left-width:4px;inset:0 11px 3px 0}.book-page{inset:2px 6px 0 4px}.leaf{font-size:29px}.stats{margin:12px 0 20px;gap:10px}.stat{text-align:left;padding:13px 16px}.stat-num{font-size:25px;margin-top:6px}.workspace-head{flex-wrap:wrap}.layout-toggle{display:flex;gap:3px;margin-left:auto}.layout-toggle button{padding:8px 12px;font-size:12px}.layout-toggle button[aria-pressed=true]{background:var(--green);color:white}.calendar-toolbar{display:flex;align-items:center;gap:10px;padding:12px 0}.calendar-toolbar strong{flex:1;text-align:center}.calendar-toolbar button{padding:7px 12px}.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-week{text-align:center;color:var(--muted);font-size:11px;margin-bottom:8px}.calendar-day{padding:8px 4px;min-height:64px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:13px}.calendar-day small{font-size:10px;color:#68835c}.calendar-day.selected{border:2px solid var(--green);background:#edf2e5}.calendar-day.outside{opacity:.4}.event-dot{color:#a57840!important}.agenda-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px}.agenda-head h3{margin-right:auto;font-size:15px}.agenda-head button{font-size:12px;padding:8px}.agenda-item{width:100%;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;margin:8px 0;overflow-wrap:anywhere}.agenda-item span,.agenda-item small{font-size:11px;color:var(--muted)}.agenda-item.completed b{text-decoration:line-through;color:var(--muted)}.reminder-banner{width:100%;text-align:left;background:#fff2d9;margin:0 0 12px}.event-complete{display:flex;align-items:center}.event-complete input{width:20px}#languageSummary{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#languageSummary button{font-size:12px}#eventEditor input[type=datetime-local]{min-width:0}footer{margin-top:22px}@media(min-width:1450px){main{padding-top:14px}}@media(max-width:640px){header{height:59px;padding:0 4%}main{padding:8px 4% 18px}.intro{height:51px;margin-bottom:7px}.book-art{width:66px;height:49px;margin-right:5px}.book-cover{font-size:6px;padding:8px 5px;inset:0 8px 2px 0;border-left-width:3px}.book-page{inset:1px 4px 0 3px}.leaf{font-size:20px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:6px 0 13px}.stat{padding:9px 6px}.stat-label{font-size:9px}.stat-num{font-size:21px}.workspace-head{gap:8px}h2{font-size:18px}.search-wrap{padding:0 8px}.search-wrap input{padding:9px 0}.filters{margin:10px 0;gap:5px;flex-wrap:wrap}.filters select{padding:7px 5px}.card{min-height:155px;padding:15px}.card-top{margin-bottom:10px}.card h3{font-size:20px}.calendar-grid{gap:3px}.calendar-day{min-height:50px;padding:5px 1px}.calendar-day small{font-size:9px}.calendar-toolbar{gap:4px}.calendar-toolbar strong{font-size:14px}.calendar-toolbar button{padding:6px 9px}.agenda-head{gap:5px}.agenda-head button{font-size:11px;padding:7px}#empty{padding:25px 14px}#empty h3{font-size:21px}.calendar-agenda{padding-bottom:8px}dialog{max-height:88dvh;padding:19px}.dialog-head{margin-bottom:16px}.sidebar{height:68px}.page{margin-bottom:76px}}
