:root{--blue:#5446d9;--navy:#282641;--ink:#29283d;--muted:#78768b;--line:#e7e5ee;--bg:#f5f4f8;--radius:28px}body{background:radial-gradient(ellipse at 10% 0,#ebe8f8 0,transparent 40%),var(--bg)}.site-header{max-width:1240px;height:94px}.brand-mark{background:var(--navy);border-radius:14px;box-shadow:0 4px 10px #28264115}.brand-en{letter-spacing:2.5px}.edition{background:#fff9;border-radius:100px;padding:5px 12px}.header-note{font-size:12px;letter-spacing:1px}main{max-width:1200px;padding-top:22px}h1{font-size:35px;letter-spacing:-1.2px;font-weight:750}.page-heading{margin-bottom:28px;align-items:flex-end}.page-heading .eyebrow{font-size:10px;letter-spacing:2px;color:var(--blue)}.page-heading p{margin-top:10px}.date-label{display:flex;align-items:center;gap:8px;padding:9px 15px;background:white;border:1px solid var(--line);border-radius:100px;white-space:nowrap}.date-label svg{width:16px;height:16px;fill:none;stroke:var(--blue);stroke-width:1.6}.panel{border-color:#ffffff;border-radius:28px;box-shadow:0 5px 22px #30254b04}.bento-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}.bento-grid>*{min-width:0}.study-hero{grid-column:span 8;min-height:325px;background:#5446d9;padding:32px 34px;border:0;box-shadow:0 12px 30px #5446d91a}.hero-copy{position:relative;z-index:1;max-width:66%}.study-hero .eyebrow{font-size:10px;letter-spacing:2px;display:flex;align-items:center;gap:8px;color:#e1dcff}.live-dot{width:6px;height:6px;border-radius:50%;background:#d9f29a;box-shadow:0 0 0 4px #d9f29a18}.study-hero h2{font-size:38px;line-height:1.35;letter-spacing:-1px;margin-top:14px}.study-hero h2>span{color:#ddf7a2}.study-hero p{margin-top:14px;color:#e1dcff}.hero-meta{gap:7px;margin-top:16px;flex-wrap:wrap}.hero-meta span{font-size:11px;background:#ffffff0b;border-color:#ffffff25;border-radius:100px;padding:4px 10px}.hero-meta svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.7;vertical-align:-2px}.hero-bottom{position:relative;z-index:2;margin-top:25px}.btn{border-radius:14px;transition:transform .2s,box-shadow .2s,background .2s}.btn-white{color:#302866}.btn-white span{margin-left:12px;font-size:20px}.btn:hover{transform:translateY(-2px);box-shadow:0 6px 15px #28264112}.hero-bottom small{font-size:11px;color:#e1dcff}.card-art{position:absolute;width:215px;height:230px;right:27px;top:43px;pointer-events:none}.art-card{position:absolute;width:146px;height:184px;border-radius:18px;box-shadow:0 12px 25px #21126b20}.art-back{background:#b1a4f2;right:0;top:6px;transform:rotate(19deg);font-family:Georgia,serif;font-size:50px;display:grid;place-items:center;color:#5141a4}.art-front{background:#e3f4b4;left:20px;top:30px;transform:rotate(-12deg);padding:21px;color:#363c28;display:flex;flex-direction:column}.art-front>span{font-size:8px;letter-spacing:1.6px}.art-front strong{font-size:38px;letter-spacing:-2px;font-family:Georgia,serif;font-weight:500;margin-top:23px}.art-front small{font-size:9px;margin-top:3px}.art-front i{position:absolute;right:18px;bottom:14px;font-size:35px;font-style:normal}.art-spark{position:absolute;left:-3px;top:-5px;color:#edb9d1;font-size:44px}.progress-panel{grid-column:span 4;padding:28px;background:#fff}.progress-panel .eyebrow{font-size:9px;letter-spacing:1.6px}.progress-panel h3{font-size:17px}.tile-symbol{color:#8c85b8;font-size:26px}.ring-wrap{gap:20px;margin:22px 0}.ring{width:116px;height:116px;background:conic-gradient(var(--blue) calc(var(--value)*1%),#efedf6 0)}.ring-inner{width:96px;height:96px}.ring strong{font-size:31px}.ring strong small{font-size:15px}.stats-pair{flex-direction:column;gap:16px}.stats-pair strong{font-size:24px}.stats-pair strong small{font-size:12px;font-weight:400;color:var(--muted)}.stats-pair span{font-size:11px}.progress-caption{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:10px}.progress-caption strong{color:var(--ink);font-weight:500}.progress-track{height:7px;background:#eeecf5}.quick{grid-column:span 6;position:relative;border:0;border-radius:25px;padding:25px 27px;gap:18px;min-height:130px;overflow:hidden;transition:transform .2s,box-shadow .2s}.quick:hover{transform:translateY(-3px);box-shadow:0 8px 20px #2826410b}.review-tile{background:var(--review-bg)}.weak-tile{background:var(--weak-bg)}.quick-icon{background:#ffffff70;color:var(--review-ink);width:46px;height:46px;border-radius:15px;flex-shrink:0}.weak-tile .quick-icon{color:var(--weak-ink)}.quick-copy{display:block}.quick-copy>span{display:block;font-size:11px;color:#62704e;margin-top:5px}.weak-tile .quick-copy>span{color:#8b655c}.quick-copy .eyebrow{font-size:8px;letter-spacing:1.4px;margin:0 0 6px;color:inherit;opacity:.75}.quick strong{font-size:17px}.quick>b{font-size:48px;color:var(--review-ink);margin-right:22px;line-height:1;font-weight:500;letter-spacing:-2px}.weak-tile>b{color:var(--weak-ink)}.tile-arrow{position:absolute;right:20px;top:18px;font-size:19px;opacity:.6}.daily-word{grid-column:span 6;padding:28px 30px;background:#fffdf8}.daily-word .eyebrow{font-size:9px;letter-spacing:1.6px;margin:0;color:#95866b}.word-tag{font-size:10px;background:#f1eadc;color:#847354;padding:4px 10px;border-radius:100px}.daily-title{display:flex;align-items:center;justify-content:space-between;margin-top:20px}.daily-word .word-heading{font-size:46px;letter-spacing:-1.5px;line-height:1.1}.word-heading>span{color:#b99656}.daily-word .word-phonetic{font-size:12px;margin-top:8px}.daily-word .sound{background:#f1eadc;color:#847354;width:44px;height:44px}.daily-meaning{font-size:13px;margin-top:17px;color:#6a6255}.daily-word .sentence{margin-top:20px;background:#f3eee4;border:0;border-radius:15px;padding:14px 17px}.daily-word .sentence p:first-child{font-size:15px;margin:0}.daily-word .sentence p:last-child{font-size:11px;margin:6px 0 0}.daily-word mark{background:#e4d4aa;color:#66532a;padding:1px 4px}.daily-word .text-button{display:flex;justify-content:space-between;width:100%;font-size:12px;color:#847354;margin-top:18px}.path-panel{grid-column:span 6;background:#ebe7f7;padding:28px 30px;display:flex;flex-direction:column}.path-panel .eyebrow{font-size:9px;letter-spacing:1.5px;color:#89809f}.path-panel h2{font-size:22px;letter-spacing:-.5px}.path-flower{font-size:48px;line-height:1;color:#9482c6}.path-intro{font-size:12px;color:#7d7294}.path{gap:8px;margin-top:20px}.path-item{background:#ffffff75;border-radius:14px;padding:15px 3px;position:relative}.path-item span{font-size:10px;color:#9b8eaf;margin-bottom:9px}.path-item strong{display:block;font-size:14px;font-weight:600;color:#55436f}.path-item small{display:block;font-size:7px;letter-spacing:.3px;margin-top:7px;color:#7d7294}.path-note{font-size:12px;line-height:1.9;color:#7d7294;margin-top:20px}.path-link{margin-top:auto;padding-top:16px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#68518c}.bottom-nav{width:438px;border-radius:22px;box-shadow:0 8px 35px #30254b14;background:#ffffffed;padding:8px;gap:6px;bottom:22px}.nav-item{min-height:46px;border-radius:15px;font-size:13px}.nav-item.active{background:var(--navy);color:#fff}.nav-item svg{width:18px;height:18px}.book-banner{background:#ebe7f7;border:0;border-radius:28px;padding:32px}.book-cover{background:var(--blue);border-left-color:#9382e5;transform:rotate(-6deg);box-shadow:5px 7px 0 #d5cdec}.word-list{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:none;border:0;overflow:visible;border-radius:0}.word-row{background:white;border:1px solid white;border-radius:22px;padding:23px;transition:transform .2s,background .2s}.word-row:last-child{border:1px solid white}.word-row:hover{transform:translateY(-2px);background:#eeebfa}.word-list>.empty{grid-column:1/-1}.word-number{align-self:flex-start;background:#f1eef8;border-radius:8px;padding:3px 6px;color:#9c91b7}.word-row-body strong{font-size:26px}.practice-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.practice-card{grid-column:span 2;min-height:235px;padding:27px}.practice-card:first-child{grid-column:span 4;background:var(--blue);color:white}.practice-card:first-child p,.practice-card:first-child .small,.practice-card:first-child .mode-number,.practice-card:first-child .practice-cta{color:#e3dcff}.practice-card:nth-child(2){background:#e6edcf}.practice-card:nth-child(3){background:#f5e3db}.practice-card:nth-child(4){background:#fff8e6}.practice-card:nth-child(5){background:#ebe7f7}.practice-card h2{font-size:22px}.practice-cta{display:flex;justify-content:space-between}.practice-cta:after{content:'↗';font-size:20px}.practice-tip{grid-column:1/-1;background:var(--navy);color:#fff;border-radius:25px;padding:25px 28px}.practice-tip p,.practice-tip .eyebrow{color:#bab6d2}.profile-banner{background:var(--navy);padding:25px 28px;border-radius:25px;color:white}.profile-banner p,.local-label{color:#c9c5da}.avatar{background:#c5b8eb;color:#3a305a}.metric:nth-child(1){background:#e6edcf}.metric:nth-child(2){background:#ebe7f7}.metric:nth-child(3){background:#f5e3db}.metric{padding:25px 28px}.metric strong{font-size:40px}.learning-card{box-shadow:0 12px 45px #30254b08;border-top:1px solid #e9e6ef}.step-tabs .current{background:#e6e0f7}.pill{border-radius:100px;padding:4px 9px}.sound:hover{transform:scale(1.07)}
@media(min-width:701px) and (max-width:1000px){.card-art{transform:scale(.8);transform-origin:right center;right:15px}.hero-copy{max-width:75%}.study-hero h2{font-size:33px}.progress-panel{padding:24px 20px}.ring-wrap{gap:12px}.ring{width:94px;height:94px}.ring-inner{width:78px;height:78px}.quick{padding:23px 20px;gap:12px}.quick strong{font-size:15px}.quick>b{font-size:38px;margin-right:12px}.quick-icon{width:38px;height:38px}.path-panel,.daily-word{padding:25px}}
@media(max-width:700px){.site-header{height:78px;padding:0 20px}main{padding:15px 18px 112px}h1{font-size:27px}.page-heading{align-items:flex-start;gap:12px}.page-heading p{font-size:12px;max-width:220px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.date-label{padding:7px 9px;font-size:10px;margin-top:22px;gap:4px}.date-label svg{width:13px;height:13px}.bento-grid{gap:13px;grid-template-columns:repeat(2,minmax(0,1fr))}.study-hero{grid-column:1/-1;min-height:330px;padding:26px}.study-hero h2{font-size:34px}.hero-copy{max-width:100%}.hero-copy p{font-size:12px}.hero-meta{max-width:240px;gap:5px}.hero-meta span{font-size:10px;padding:3px 7px}.card-art{width:165px;right:7px;top:26px;transform:scale(.67);transform-origin:right top}.art-front{left:0}.study-hero h2{position:relative;z-index:2}.hero-bottom{flex-wrap:wrap;gap:10px}.hero-bottom small{font-size:10px}.hero-bottom .btn{font-size:13px;min-height:46px;padding:10px 17px}.progress-panel{grid-column:1/-1;padding:24px;min-height:230px}.ring-wrap{justify-content:space-between;margin:16px 0}.ring{width:93px;height:93px}.ring-inner{width:77px;height:77px}.ring strong{font-size:28px}.stats-pair{flex-direction:row;gap:24px;margin-right:6px}.quick{grid-column:span 1;min-height:185px;padding:20px 17px;flex-direction:column;align-items:flex-start;gap:12px}.quick-icon{width:34px;height:34px;border-radius:11px}.quick-copy .eyebrow{font-size:7px;letter-spacing:.8px}.quick strong{font-size:14px;line-height:1.5}.quick-copy>span{font-size:10px}.quick>b{position:absolute;right:0;top:21px;font-size:33px;margin-right:18px}.tile-arrow{right:15px;top:auto;bottom:13px;font-size:16px}.daily-word,.path-panel{grid-column:1/-1;padding:25px}.daily-word .word-heading{font-size:43px}.path-panel{min-height:290px}.path{gap:7px}.path-item{padding:13px 2px}.path-item strong{font-size:13px}.path-item small{font-size:6px}.bottom-nav{bottom:0;width:100%;border-radius:22px 22px 0 0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));gap:5px}.nav-item.active{background:var(--navy)}.nav-item{min-height:50px;font-size:11px;gap:4px}.word-list{grid-template-columns:1fr;gap:10px}.word-row{padding:20px}.book-banner{padding:25px 22px}.practice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.practice-card{grid-column:span 1;padding:20px;min-height:215px}.practice-card:first-child{grid-column:1/-1;min-height:210px}.practice-card h2{font-size:18px}.practice-tip{padding:23px}.profile-banner{padding:22px 20px;gap:12px}.local-label{font-size:10px}.profile-banner h2{font-size:17px}.profile-banner p{font-size:11px}.metric{padding:20px 13px}.metric strong{font-size:30px}.metric span{font-size:11px}.panel-top{flex-wrap:wrap}.modal{border-radius:25px}}
@media(max-width:380px){.date-label{font-size:9px;padding:6px}.page-heading h1{font-size:24px}.card-art{opacity:.65;right:0;transform:scale(.57)}.study-hero{padding:24px}.stats-pair{gap:16px}.quick{padding:18px 14px}.quick strong{font-size:13px}.quick-copy>span{font-size:9px}.hero-meta{max-width:220px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.unit-picker{display:flex;gap:14px;flex-wrap:wrap;padding:17px 22px;background:#ffffffa6;border:1px solid white;border-radius:20px;margin-bottom:22px}.unit-picker label{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.unit-picker select{max-width:270px;min-height:38px;font-size:13px;border-radius:11px;padding:7px 12px;background:#f6f4fb}.unit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}.unit-tile{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:white;border:1px solid transparent;border-radius:22px;padding:21px;gap:5px;transition:transform .2s,border-color .2s}.unit-tile.active{background:#ebe7f7;border-color:#a99cdb}.unit-tile:hover{transform:translateY(-2px)}.unit-tile .eyebrow{color:var(--blue);font-size:10px;margin:0}.unit-tile strong{font-size:18px}.unit-tile>span:not(.eyebrow){font-size:11px;color:var(--muted)}.unit-tile small{font-size:11px;color:var(--muted);margin-top:8px}.unit-tile .progress-track{width:100%;height:4px;margin-top:7px}.source-note{font-size:11px;line-height:1.9;margin-top:23px}.source-note a{color:var(--blue)}.word-row-body{min-width:0}.word-row-body strong{overflow-wrap:anywhere}.word-detail .word-heading,.flash-word{overflow-wrap:anywhere}.word-detail .eyebrow{font-size:10px}.hero-copy p{max-width:390px}.study-hero .hero-meta{max-width:390px}.progress-panel .stats-pair strong small{font-size:10px}.word-phonetic:empty{display:none}.book-banner>div:last-child{min-width:0}.book-banner h2{overflow-wrap:anywhere}.book-cover{flex-shrink:0}
@media(max-width:700px){.unit-picker{padding:15px;gap:10px;margin-bottom:18px}.unit-picker label{width:100%;justify-content:space-between}.unit-picker select{width:calc(100% - 42px);max-width:none;font-size:12px}.unit-grid{grid-template-columns:1fr 1fr;gap:10px}.unit-tile{padding:17px 14px;border-radius:18px}.unit-tile strong{font-size:16px}.unit-tile>span:not(.eyebrow){font-size:10px;overflow-wrap:anywhere}.unit-tile small{font-size:10px}.book-banner h2{font-size:22px}.word-row{gap:10px}.word-row-body strong{font-size:23px}.word-row-body>span{font-size:11px}.word-row .pill{font-size:9px;padding:4px 7px}.hero-copy p{max-width:240px;font-size:11px}.hero-meta{max-width:250px}.progress-panel .stats-pair{gap:16px}.progress-panel .stats-pair strong{font-size:22px}.source-note{font-size:10px}}

.practice-card:disabled{opacity:1;cursor:default}
.practice-card:disabled:hover{transform:none;box-shadow:0 5px 22px #30254b04;border-color:#fff}
.practice-card:disabled .practice-cta{color:var(--muted)}
.practice-card:disabled .practice-cta:after{content:none}

/* A single, full-width daily word tile balances the simplified home grid. */
.bento-grid>.daily-word{grid-column:1/-1}
@media(min-width:701px){.bento-grid>.daily-word{display:grid;grid-template-columns:1fr 1.1fr;column-gap:36px}.bento-grid>.daily-word>.panel-top{grid-column:1/-1}.bento-grid>.daily-word>.daily-title{grid-column:1;grid-row:2}.bento-grid>.daily-word>.daily-meaning{grid-column:1;grid-row:3;margin:12px 0 0}.bento-grid>.daily-word>.sentence{grid-column:2;grid-row:2 / 4;align-self:center;margin-top:20px}.bento-grid>.daily-word>.text-button{grid-column:1/-1}}

.progress-note{font-size:10px;line-height:1.7;color:var(--muted);margin:10px 0 0}.progress-panel .ring strong{font-size:28px}

/* Today focuses on the ready unit; vocabulary progress belongs to Mine. */
.bento-grid>.study-hero{grid-column:1/-1;min-height:340px}.study-hero .hero-copy{max-width:calc(100% - 280px)}.hero-unit-label{font-size:14px;color:#ddd5ff;margin-top:24px;margin-bottom:12px}.study-hero h2{font-size:44px;line-height:1.25;overflow-wrap:anywhere}.study-hero .hero-unit-en{font-size:17px;color:#e1dbff;max-width:none;margin-top:10px}.mine-progress{margin:22px 0;padding:28px;min-height:0}.mine-progress .ring-wrap{justify-content:flex-start;gap:32px}.mine-progress .stats-pair{flex-direction:row;gap:40px}.mine-progress .progress-caption{margin-top:18px}
@media(max-width:700px){.bento-grid>.study-hero{min-height:340px}.study-hero .hero-copy{max-width:100%;position:relative;z-index:1}.study-hero .card-art{opacity:.25;right:0}.hero-unit-label{font-size:12px;margin-top:23px}.study-hero h2{font-size:32px;max-width:100%}.study-hero .hero-unit-en{font-size:14px;max-width:100%}.mine-progress{padding:24px}.mine-progress .ring-wrap{gap:20px;justify-content:space-between}.mine-progress .stats-pair{gap:16px}}
.mastered-skip{display:flex;align-items:center;justify-content:center;gap:7px;margin:18px auto 0;padding:9px 15px;border:1px solid #c9dbc9;border-radius:100px;color:#3c7356;background:#f0f7ed;font-size:13px;transition:background .2s,transform .2s}.mastered-skip:hover{background:#e1efdc;transform:translateY(-1px)}.mastered-skip svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}.completion{position:relative}.completion-mark{position:relative;animation:success-pop .65s cubic-bezier(.2,1.5,.5,1) both;width:82px;height:82px}.completion-mark svg{stroke-dasharray:40;stroke-dashoffset:40;animation:success-check .45s .3s ease forwards}.completion>h1{animation:success-rise .6s .12s both}.completion-celebration{position:absolute;top:41px;left:50%;pointer-events:none}.completion-celebration i{position:absolute;width:7px;height:12px;border-radius:2px;background:#9783e1;animation:success-confetti 1.15s calc(var(--i)*.018s) ease-out both}.completion-celebration i:nth-child(3n){background:#b6ce7c}.completion-celebration i:nth-child(3n + 1){background:#e8b18a}.next-group-hint{font-size:13px;margin:0 0 3px}.completion-actions .btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
@keyframes success-pop{from{opacity:0;transform:scale(.35)}to{opacity:1;transform:scale(1)}}@keyframes success-check{to{stroke-dashoffset:0}}@keyframes success-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes success-confetti{0%{opacity:0;transform:rotate(var(--angle)) translateY(0) scale(.3)}20%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(-1 * var(--distance))) rotate(150deg) scale(.8)}}
@media(prefers-reduced-motion:reduce){.completion-mark,.completion-mark svg,.completion>h1,.completion-celebration i{animation:none}.completion-mark svg{stroke-dashoffset:0}.completion-celebration{display:none}.mastered-skip{transition:none}}

.completion-next{max-width:400px;margin:24px auto 0}.completion-next .btn{width:100%;margin-top:9px}.completion-next:empty{display:none}

.mastered-skip{width:100%;border-radius:12px;min-height:44px;font-weight:600;font-size:14px;background:#e8f4e1;border-color:#abc698;color:#2f603c}

/* Refined learning card with a quiet mastery action in the footer. */
.learning-card{border:1px solid #e9e6ef;background:linear-gradient(150deg,#fff 65%,#fcfbfe);box-shadow:0 18px 48px #30254b09,0 2px 8px #30254b03;padding:30px;border-radius:28px}.learning-card .card-eyebrow>span:first-child{font-size:10px;letter-spacing:2.4px;color:#9994ab}.learning-card .card-face{padding:42px 0 30px}.learning-card .flash-word{font-size:52px;letter-spacing:-1.1px;color:#302c42}.learning-card .card-hint{color:#938da2;font-size:13px}.learning-card>.btn{min-height:52px;border-radius:16px}.learning-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #eeebf3;padding-top:16px;margin-top:22px}.learning-footer>span{font-size:12px;color:#aaa3b6}.learning-footer .mastered-skip{width:auto;min-height:36px;margin:0;padding:7px 12px;gap:7px;border:0;border-radius:10px;background:transparent;color:#77698f;font-weight:500;font-size:13px}.learning-footer .mastered-skip:hover{background:#f2eef8;color:#59467c;transform:none}.learning-footer .mastered-skip svg{width:15px;height:15px;stroke-width:1.7}.learning-footer .mastered-skip>span{font-size:16px;margin-left:4px}
@media(max-width:700px){.learning-card{padding:24px 22px;border-radius:24px}.learning-card .card-face{padding:32px 0 25px}.learning-card .flash-word{font-size:43px}.learning-footer{margin-top:20px;padding-top:13px;gap:10px}.learning-footer>span{font-size:11px}}

/* The home learning card keeps its original soft purple every day. */
.study-hero{--hero-bg:#e3dff7;--hero-ink:#403560;--hero-muted:#75698e;--hero-back:#b7a9df;--hero-front:#edf2cf;--hero-accent:#8270b5}
.bento-grid>.study-hero{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px 32px;background:var(--hero-bg);color:var(--hero-ink);box-shadow:0 12px 32px #30254b08;padding:34px;align-items:center}
.study-hero .hero-copy{max-width:none;min-width:0;grid-column:1;grid-row:1}
.study-hero .eyebrow,.study-hero p,.study-hero .hero-unit-label,.study-hero .hero-unit-en,.study-hero .hero-bottom small{color:var(--hero-muted)}
.study-hero .live-dot{background:var(--hero-accent);box-shadow:0 0 0 4px #ffffff60}
.study-hero .hero-meta{max-width:none}.study-hero .hero-meta span{background:#ffffff40;border-color:#ffffff80}
.study-hero .hero-bottom{grid-column:1/-1;margin-top:0;flex-wrap:wrap}
.study-hero .btn-white{color:var(--hero-ink);background:#fffc}
.study-hero .card-art{position:relative;grid-column:2;grid-row:1;width:230px;height:240px;right:auto;top:auto;justify-self:center;transform:none;opacity:1}
.study-hero .art-back{background:var(--hero-back);color:var(--hero-ink);right:14px;top:18px;transform:rotate(13deg)}
.study-hero .art-front{background:var(--hero-front);left:18px;top:38px;transform:rotate(-9deg);color:var(--hero-ink)}
.study-hero .art-spark{color:var(--hero-accent);left:0;top:4px}
@media(max-width:700px){.bento-grid>.study-hero{grid-template-columns:minmax(0,1fr);padding:26px;gap:18px;min-height:0}.study-hero .hero-copy{grid-column:1;grid-row:auto}.study-hero .card-art{grid-column:1;grid-row:auto;height:240px;margin:-22px 0;transform:scale(.78);transform-origin:center;opacity:1}.study-hero .hero-bottom{grid-column:1;gap:12px}.study-hero .hero-bottom small{width:100%}.study-hero .hero-unit-label{margin-top:18px}}

.study-shell .study-track{margin-bottom:24px}

/* A compact, text-only start card on every screen. */
.bento-grid>.study-hero{grid-template-columns:minmax(0,1fr);min-height:0;gap:26px;padding:32px 34px}
.study-hero .hero-copy,.study-hero .hero-bottom{grid-column:1;grid-row:auto}
.study-hero .hero-unit-label{margin-top:18px}
@media(max-width:700px){.bento-grid>.study-hero{padding:25px 24px;gap:24px}.study-hero .hero-unit-label{margin-top:16px}.study-hero h2{font-size:30px}.study-hero .hero-unit-en{font-size:13px}.study-hero .hero-meta{margin-top:14px}.study-hero .hero-bottom{gap:10px}.study-hero .hero-bottom .btn{width:100%;justify-content:space-between}.study-hero .hero-bottom small{width:100%;line-height:1.6}}

/* Dialogs share the app's ink, lavender, cream and sage palette. */
.modal-backdrop{background:#28264145;backdrop-filter:blur(8px);padding:24px}
.modal.panel{background:#fcfbfe;border:1px solid #ffffffc9;border-radius:28px;padding:32px;box-shadow:0 24px 80px #28264125;max-width:520px;color:var(--ink)}
.modal h2{font-size:24px;letter-spacing:-.6px;line-height:1.4;padding-right:40px}
.modal>p{color:var(--muted);font-size:14px;line-height:1.9;margin-top:16px}
.modal .modal-close{top:20px;right:20px;width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:#eeebf5;color:#80758f}
.modal .modal-close:hover{background:#e4deef;color:#4a3b60}.modal-close svg{width:17px;height:17px}
.modal-actions{gap:10px;margin-top:26px}.modal .btn{border-radius:15px;min-height:48px;font-size:14px;box-shadow:none}.modal .btn:hover{transform:none}
.modal .btn-outline{background:#efecf6;border:1px solid #e7e1ef;color:#695b7f}
.modal .btn-secondary{background:#eee8f7;color:#6b548d}
.modal .btn-danger{background:#f3e1df;color:#9b5b56;border:1px solid #ecd3d0}
.modal .btn-danger:hover{background:#ecd4d0}.modal .btn-primary{background:var(--navy);color:#fff}.modal .btn-primary:hover{background:#403951}
.word-detail .eyebrow{color:#9688a6;font-size:10px;letter-spacing:1.5px;padding-right:40px}
.word-detail>.word-heading{font-size:40px;letter-spacing:-.8px;margin-top:18px}
.word-detail .detail-phonetic{gap:12px;margin:10px 0 18px}.word-detail .sound{background:#eee8f6;color:#806b9a;width:36px;height:36px}
.word-detail .detail-meaning{background:#e8edde;border:1px solid #e0e7d5;border-radius:18px;padding:16px 18px;color:#56644c;font-size:14px;line-height:1.8;margin-top:0}
.word-detail .detail-section{border:1px solid #e9e3ef;background:#f1edf7;border-radius:18px;padding:18px;margin-top:14px}
.word-detail .detail-section h3{color:#8a789b;font-size:11px;letter-spacing:.5px;margin-bottom:12px}
.word-detail .detail-section p{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.word-detail .detail-section .small{font-size:11px;color:#9687a4;line-height:1.8;display:block;margin-top:7px}
.word-detail .collocations{gap:7px}.word-detail .collocations span{background:#ffffffb3;color:#6f5e83;border:1px solid #e6dfed;border-radius:10px;padding:5px 10px;font-size:12px}
.word-detail .detail-section:has(.sentence){background:#f6f0e5;border-color:#eee5d7}
.word-detail .detail-section:has(.sentence) h3{color:#9b896a}
.word-detail .detail-section .sentence{border:0;padding:0;margin-top:0;background:none}
.word-detail .detail-section .sentence p:first-child{font-family:Georgia,serif;font-size:18px;color:#61553f;line-height:1.7}
.word-detail .detail-section .sentence p:last-child{color:#988871;font-size:12px;margin-top:8px}
.word-detail .detail-section:has(.sentence) .small{color:#9e8e74}.word-detail .detail-section a{text-decoration:underline;text-decoration-color:#b8aa9370;text-underline-offset:3px}
.word-detail>.btn{margin-top:20px}#toast{background:var(--navy);border:1px solid #ffffff20;border-radius:16px;box-shadow:0 8px 30px #28264118}
@media(max-width:700px){.modal-backdrop{padding:12px;align-items:flex-end}.modal.panel{padding:26px 22px calc(24px + env(safe-area-inset-bottom));border-radius:26px;max-height:calc(100dvh - 24px);border:1px solid #ffffffc9}.modal .modal-close{top:16px;right:16px}.modal h2{font-size:22px}.word-detail>.word-heading{font-size:35px}.word-detail .detail-section{padding:16px;border-radius:16px}.modal-actions{gap:9px}.modal-actions .btn{width:100%}}

/* Keep study cards quiet; color is reserved for actions and answer feedback. */
.learning-card .btn-primary{background:#79678f;color:#fff}
.learning-card .btn-primary:hover{background:#6c587f}
.learning-card .sound{background:#f2eef7;color:#8a759f}
.learning-card .btn-outline{background:#fff;border-color:#e7e1ed;color:#82758e}
.learning-card .choice>span{background:#f3f1f6;color:#958c9f}
.learning-card .choice:hover:not(:disabled){border-color:#c8bad6;background:#faf8fc}
.learning-card input{border-color:#e1dce7;background:#fcfbfe}
.learning-card .sentence-blank{color:#8a759f}
.study-shell .study-track i{background:#b4a2c8}

/* A clear learning action against the soft Bento surfaces. */
:root{--learning-action:#6650a4;--learning-action-hover:#57438e}
.btn-primary,.learning-card .btn-primary,.study-hero .btn-white{background:var(--learning-action);color:#fff}
.btn-primary:hover,.learning-card .btn-primary:hover,.study-hero .btn-white:hover{background:var(--learning-action-hover)}

/* A quiet start action on the soft purple learning card. */
.study-hero .btn-white{background:#ffffffa3;color:#514959;border:1px solid #ffffffc9;box-shadow:0 2px 6px #4f416507}
.study-hero .btn-white span{color:#82758f}
.study-hero .btn-white:hover{background:#ffffffeb;border-color:#fff;box-shadow:0 4px 12px #4f41650a;transform:translateY(-1px)}
.study-hero .btn-white:focus-visible{outline:2px solid #9c8ab5;outline-offset:4px}

/* Clear medium blue for study actions; supporting controls stay neutral. */
.learning-card .btn-primary{background:#2b73d6;color:#fff}
.learning-card .btn-primary:hover{background:#2467c2}
.learning-card .sound{background:#f3f2f5;color:#817b88}
.learning-card .btn-outline{background:#fff;border-color:#e4e1e7;color:#817b88}
.learning-card .choice>span{background:#f3f2f5;color:#928b99}
.learning-card .choice:hover:not(:disabled){border-color:#c9c4ce;background:#faf9fb}
.learning-card input{border-color:#e4e1e7;background:#fcfbfd}
.learning-card .sentence-blank{color:#746c7e}
.learning-footer .mastered-skip{color:#817b88}
.learning-footer .mastered-skip:hover{color:#5e5668;background:#f3f2f5}
.study-shell .study-track i{background:#aaa3b3}

.unit-back{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#8a7b9b;margin-bottom:20px}.unit-back:hover{color:var(--ink)}
.textbook-picker{justify-content:space-between}.textbook-picker select{max-width:none;min-width:160px}.textbook-picker>span{font-size:12px}
.unit-tile-top{display:flex;justify-content:space-between;align-items:center;width:100%;color:#a79bb7}.unit-tile-top .eyebrow{margin:0}.unit-tile-top>span:last-child{font-size:18px}
.unit-batch-picker{justify-content:space-between;margin-bottom:20px}.unit-batch-picker>span{font-size:12px}
@media(max-width:700px){.textbook-picker>span,.unit-batch-picker>span{font-size:11px}.unit-back{margin-bottom:17px;font-size:12px}.unit-batch-picker{margin-bottom:16px}}

.unit-study-controls{display:flex;align-items:center;gap:18px}.unit-study-controls>.btn{margin-left:auto;background:#38343f;color:#fff}.unit-study-controls>.btn:hover{background:#292630}.unit-study-controls .small{font-size:12px}
@media(max-width:700px){.unit-study-controls{gap:14px}.unit-study-controls>.btn{width:100%;margin-left:0;min-height:44px}.unit-study-controls>.small{font-size:11px}.unit-study-controls label{flex:1;min-width:160px}}

.textbook-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 12px}
.textbook-stage-tabs{display:flex;gap:12px;margin-bottom:22px}
.textbook-stage-tab{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 20px;border:1px solid #e3dbea;border-radius:14px;background:#fff;color:#80718f;font:inherit;font-size:15px;font-weight:650;cursor:pointer}
.textbook-stage-tab span{font-size:11px;font-weight:400;opacity:.8}
.textbook-stage-tab.active{background:#eee7f7;border-color:#bba6d1;color:#665179}
.textbook-stage-tab:hover{border-color:#bba6d1}
.textbook-stage-tab:focus-visible{outline:2px solid #9475b5;outline-offset:3px}
.textbook-source-note{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin:28px 0 0;font-size:11px;line-height:1.8;color:#8b7c98}
.textbook-source-note a{color:#77608e;text-underline-offset:3px}
@media(max-width:700px){.textbook-stage-tabs{gap:10px;margin-bottom:16px}.textbook-stage-tab{flex:1;justify-content:center;gap:7px;padding:10px 8px;font-size:14px}.textbook-stage-tab span{font-size:9px}.textbook-source-note{margin-top:20px;font-size:10px}}
.textbook-tab{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 18px;border:1px solid #e7e1ee;border-radius:14px;background:#ffffffb3;color:#8a7b9b;font-size:13px;font-weight:500;transition:background .2s,color .2s}
.textbook-tab:hover{background:#eee8f6;color:#665575}.textbook-tab.active{background:var(--navy);border-color:var(--navy);color:#fff}
.textbook-hint{font-size:12px;margin:0 0 22px;color:#958b9f}
.unit-book-banner{margin-bottom:20px;min-height:220px}.unit-book-banner h1{font-size:32px;line-height:1.35}.unit-book-banner .unit-book-en{font-family:Georgia,serif;color:#81758f;font-size:18px;margin:10px 0 8px}.unit-book-banner .small{font-size:12px}
@media(max-width:700px){.textbook-tabs{gap:8px}.textbook-tab{min-height:40px;padding:9px 13px;font-size:12px;border-radius:12px}.textbook-hint{font-size:11px;margin-bottom:18px}.unit-book-banner{padding:25px 22px;gap:20px;min-height:190px;margin-bottom:16px}.unit-book-banner h1{font-size:25px}.unit-book-banner .eyebrow{font-size:10px;letter-spacing:.7px}.unit-book-banner .unit-book-en{font-size:15px;line-height:1.5;margin:7px 0}.unit-book-banner .small{font-size:10px;line-height:1.7;display:block}.unit-book-banner .book-cover{min-width:80px;width:80px;height:120px;padding:13px 10px}.unit-book-banner .book-cover strong{font-size:24px}.unit-book-banner .book-cover span{font-size:8px}}

.unit-book-banner .book-cover strong{white-space:nowrap}.unit-book-banner .book-cover span{overflow-wrap:anywhere}
@media(max-width:700px){.unit-book-banner .book-cover{min-width:89px;width:89px;height:133px;padding:13px 10px}}

.filter-summary{font-size:12px;color:#968a9f}
.word-filters{display:flex;align-items:center;gap:24px;overflow-x:auto;scrollbar-width:none;margin:0 0 24px;padding:0;border:0;border-bottom:1px solid #e4dfea;background:none;overscroll-behavior-x:contain}
.word-filters::-webkit-scrollbar{display:none}
.word-filter{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:8px;min-height:47px;padding:0 2px 13px;border:0;border-radius:0;background:none;color:#958b9f;white-space:nowrap;transition:color .18s}
.filter-label{font-size:13px;line-height:1.5;font-weight:400}
.filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:20px;padding:1px 5px;border-radius:6px;background:#ece9f0;color:#a396ad;font-size:10px;font-weight:500;line-height:1.5;font-variant-numeric:tabular-nums}
.word-filter:hover{background:none;color:#62536e}
.word-filter.active{background:none;color:#51415f;box-shadow:none}
.word-filter.active .filter-label{font-weight:600}
.word-filter.active .filter-count{background:#e6def0;color:#79618f}
.word-filter.active::after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:3px 3px 0 0;background:#9580b0}
.word-filter:focus-visible{outline:2px solid #aa97c0;outline-offset:-2px;border-radius:5px}
@media(max-width:700px){.word-filters{gap:19px;margin-bottom:20px}.word-filter{min-height:44px;gap:6px;padding-bottom:12px}.filter-label{font-size:12px}.filter-count{min-width:19px;min-height:18px;padding:1px 4px;font-size:9px}.filter-summary{font-size:11px}}


.brand-mark{font-family:inherit;font-size:24px}.avatar{font-family:inherit;font-size:25px}
@media(max-width:700px){.brand-mark{font-size:21px}}

/* A quiet bilingual quote and calendar, aligned with the Bento cards. */
.site-header,.site-header:has(~ main .study-shell){max-width:1200px;height:auto;min-height:100px;padding:26px 32px 8px;gap:28px;align-items:center;justify-content:space-between}
.header-quote{min-width:0}.header-quote p{margin:0}
.header-quote .quote-en{font-family:Georgia,"Times New Roman",serif;font-size:24px;font-weight:400;line-height:1.35;letter-spacing:-.4px;color:#46404d}
.header-quote .quote-zh{margin-top:7px;font-size:12px;line-height:1.6;letter-spacing:1px;color:#8b8195}
.header-date{flex-shrink:0;padding-left:24px;border-left:1px solid #e4dfe9;text-align:right}
.header-date time{display:flex;flex-direction:column;gap:6px}
.date-main{font-size:20px;line-height:1.25;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.5px;color:#56505e}
.date-detail{font-size:11px;line-height:1.5;letter-spacing:.6px;color:#958b9e}
@media(max-width:700px){
.site-header,.site-header:has(~ main .study-shell){min-height:100px;padding:23px 18px 8px;gap:16px}
.header-quote .quote-en{font-size:19px;line-height:1.35;letter-spacing:-.3px}
.header-quote .quote-zh{margin-top:6px;font-size:10px;letter-spacing:.3px}
.header-date{padding-left:15px}.header-date time{gap:5px}.date-main{font-size:17px}.date-detail{font-size:10px;letter-spacing:.1px}
}

/* The learning view starts directly with word progress and the flashcard. */
.site-header:has(~ main[data-page="study"]){display:none}
main[data-page="study"]{padding-top:32px;padding-bottom:32px}
@media(max-width:700px){main[data-page="study"]{padding-top:20px;padding-bottom:24px}}

/* A stable content viewport with all study actions in a separate bottom dock. */
main[data-page="study"]{padding-bottom:calc(212px + env(safe-area-inset-bottom))}
.study-shell{height:calc(100dvh - 244px - env(safe-area-inset-bottom));min-height:200px;display:grid;grid-template-rows:44px 5px minmax(0,1fr);gap:18px}
.study-top .icon-button{width:44px;height:44px;flex-shrink:0}
.study-shell .study-track{margin:0;height:5px}
.study-shell .learning-card{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dfdbe6 transparent}
.study-actions{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:20;width:calc(100% - 36px);max-width:610px;height:calc(84px + env(safe-area-inset-bottom));padding:16px 24px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;border:1px solid #e7e2ed;border-radius:24px;background:#f8f7fbee;backdrop-filter:blur(14px);box-shadow:0 -6px 24px #30254b05}
.study-actions-main{height:52px;flex-shrink:0;display:flex;align-items:stretch}
.study-actions-main>.btn,.study-actions-main .rating-buttons{width:100%;margin:0}
.study-actions .btn{transform:none;line-height:1.4}
.study-actions .rating-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.study-actions .rating-buttons>.btn{min-width:0;height:52px;min-height:52px;padding:10px 8px}
.study-actions .btn-primary{background:#e3dff7;color:#564477;border:1px solid #d4caec;box-shadow:0 2px 6px #65508008}
.study-actions .btn-primary:hover:not(:disabled){background:#d8cff0;border-color:#c5b6e3;box-shadow:0 4px 12px #65508010}
.study-actions .btn-primary:active:not(:disabled){background:#cfc2e9;border-color:#bba7dc;box-shadow:0 1px 4px #65508008}
.study-actions .btn-primary:focus-visible{outline:3px solid #9b83c4;outline-offset:4px}
.study-actions .btn:disabled{background:#e9e5ef;color:#aaa0b8;opacity:1;transform:none;box-shadow:none}
.study-actions .btn-primary:disabled{background:#f0edf6;color:#a89cb9;border-color:#e5deef}
.study-actions .btn-outline{background:#fff;border-color:#e4e1e7;color:#817b88}
.learning-card .card-eyebrow{gap:8px;min-height:44px}
.learning-card .card-eyebrow>.pill{margin-right:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.learning-card .mastered-skip{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-height:44px;margin:0 0 0 auto;padding:8px 10px;border:1px solid #b6cdeb;border-radius:10px;background:#edf4ff;color:#38618e;font-size:12px;font-weight:600;line-height:1.4;gap:5px;white-space:nowrap;box-shadow:0 2px 4px #38618e0c;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.learning-card .mastered-skip:hover{background:#e0edfc;border-color:#8eafda;color:#2f537d;transform:none;box-shadow:0 3px 6px #38618e14}
.learning-card .mastered-skip svg{width:14px;height:14px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8}
.study-save-error{position:absolute;bottom:100%;left:0;right:0;margin:0;padding:7px 14px;background:#fff2f3;color:#ae5767;font-size:12px;text-align:center;border-radius:12px}
.learning-card .choice{cursor:pointer;position:relative}
.learning-card .choice-input{position:absolute;width:1px;height:1px;min-height:0;padding:0;opacity:0;clip-path:inset(50%)}
.learning-card .choice .choice-text{display:block;flex:1;width:auto;height:auto;background:transparent;color:inherit;border-radius:0;font-size:15px}
.learning-card .choice.selected{border-color:#a4bde0;background:#f5f9ff}
.learning-card .choice:focus-within{outline:2px solid #9fbbe1;outline-offset:3px}
.learning-card .choice:has(input:disabled){cursor:default;pointer-events:none}
@media(max-width:700px){
main[data-page="study"]{padding-top:14px;padding-bottom:calc(94px + env(safe-area-inset-bottom))}
.study-shell{height:calc(100dvh - 108px - env(safe-area-inset-bottom));min-height:0;grid-template-rows:44px 4px minmax(0,1fr);gap:12px}
.study-shell .study-track{height:4px}
.study-top{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;font-size:12px}
.study-top>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.study-top>.small{white-space:nowrap;font-size:11px;font-variant-numeric:tabular-nums}
.study-actions{bottom:0;width:100%;max-width:none;height:calc(76px + env(safe-area-inset-bottom));padding:12px 17px calc(12px + env(safe-area-inset-bottom));border-bottom:0;border-radius:24px 24px 0 0}
.study-actions .rating-buttons{gap:8px}.study-actions .rating-buttons>.btn{font-size:14px}
.learning-card .choice .choice-text{font-size:14px}
}

/* Choice labels need their own icon sizing after replacing answer buttons. */
.learning-card .choice .choice-text{min-width:0;overflow-wrap:anywhere}
.learning-card .choice svg{width:20px;height:20px;flex:0 0 20px;margin-left:auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Pronunciation sits beside the phonetic transcription, below the centered word. */
.study-word-heading{min-width:0;text-align:center}
.study-word-heading h1,.study-word-heading h2{min-width:0;overflow-wrap:anywhere}
.study-phonetic-row{display:flex;align-items:center;justify-content:center;gap:10px;min-height:30px;margin-top:8px}
.study-phonetic-row .word-phonetic{margin:0}
.learning-card .study-word-audio{width:44px;height:44px;flex:0 0 44px;margin:0;background:#f3f2f5;color:#817b88;display:grid;place-items:center}
.learning-card .study-word-audio:hover{background:#eae7ef;transform:none}
.learning-card .study-word-audio svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.feedback-word{margin-bottom:4px}
.feedback-context .study-phonetic-row{justify-content:flex-start;margin:4px 0 6px}
.feedback-context .study-word-audio{background:transparent}
.revealed-answer .study-word-heading .word-heading{font-size:34px;font-weight:500}

/* Mobile cards use readable type with less space between each learning step. */
@media(max-width:700px){
.study-shell .learning-card{padding:18px 20px}
.learning-card .card-face{padding:22px 0 12px}
.learning-card .card-eyebrow>span:first-child{font-size:10px;letter-spacing:1.4px;color:#82758f}
.learning-card .flash-word{font-size:clamp(32px,8.5vw,40px);line-height:1.25;letter-spacing:-.6px}
.learning-card .recall-meaning{font-size:clamp(18px,5.2vw,23px);line-height:1.6;margin:10px 0;overflow-wrap:anywhere}
.learning-card .study-phonetic-row{gap:8px;margin-top:6px}
.learning-card .word-phonetic{font-size:13px;color:#766b81;overflow-wrap:anywhere}
.learning-card .card-hint{font-size:13px;line-height:1.7;margin:18px 0 4px;color:#776c85}
.learning-card .revealed-answer{margin-top:18px;padding-top:18px}
.learning-card .revealed-answer h2{font-size:18px;line-height:1.65;font-weight:600}
.learning-card .revealed-answer>span{display:block;font-size:12px;line-height:1.7;margin-top:8px}
.learning-card .revealed-answer .word-heading{font-size:clamp(28px,7.5vw,34px);line-height:1.3}
.learning-card .choices{gap:8px;margin-top:18px}
.learning-card .choice{gap:10px;padding:11px 12px}
.learning-card .choice .choice-text{line-height:1.6}
.learning-card .fill-sentence{font-size:clamp(19px,5vw,22px);line-height:1.65;overflow-wrap:anywhere}
.learning-card .card-hint.sentence-translation{margin-top:16px;font-size:13px;line-height:1.75}
.learning-card .sentence-meaning{font-size:12px;line-height:1.7}
.learning-card .input-label{font-size:12px;line-height:1.65;margin:18px 0 6px}
.learning-card #answer-input{font-size:16px;min-height:48px;padding:11px 13px}
.learning-card .input-error:empty{display:none}
.learning-card .feedback{padding:14px 15px;margin-top:8px}
.learning-card .feedback-context p{font-size:14px;line-height:1.75}
}

/* Textbook, practice, and profile views start directly with their content. */
.site-header:has(~ main[data-page="books"]),.site-header:has(~ main[data-page="unit"]),.site-header:has(~ main[data-page="practice"]),.site-header:has(~ main[data-page="mine"]){display:none}
main[data-page="books"],main[data-page="unit"],main[data-page="practice"],main[data-page="mine"]{padding-top:32px}
.textbook-book-banner{min-height:200px;margin-bottom:24px;gap:32px}
.textbook-book-banner .textbook-summary{margin:12px 0 0;font-size:13px;color:#81758f;line-height:1.7}
.textbook-summary span{padding:0 7px;color:#b4a9c3}
@media(max-width:700px){
main[data-page="books"],main[data-page="unit"],main[data-page="practice"],main[data-page="mine"]{padding-top:22px}
.textbook-book-banner{min-height:180px;margin-bottom:22px;gap:23px;padding:24px}
.textbook-book-banner h1{font-size:27px;letter-spacing:-.7px}
.textbook-book-banner .eyebrow{font-size:9px;letter-spacing:.4px;line-height:1.8}
.textbook-book-banner .textbook-summary{font-size:11px;margin-top:9px}
.textbook-summary span{padding:0 3px}
}


/* Keep the unit's learning action inside its textbook information card. */
.unit-detail-banner{display:grid;grid-template-columns:112px minmax(0,1fr);gap:22px 27px}
.unit-detail-banner .unit-book-copy{min-width:0}
.unit-book-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;border-top:1px solid #d8d1e580}
.unit-book-actions>.small{color:#81758f;font-size:12px}
.unit-book-actions>.btn{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:44px;padding:11px 20px;background:#38343f;color:#fff;border:0;border-radius:14px}
.unit-book-actions>.btn:hover{background:#292630}
.unit-book-actions>.btn span{font-size:17px;line-height:1}
@media(max-width:700px){
.unit-detail-banner{grid-template-columns:89px minmax(0,1fr);gap:20px; padding:25px 22px 20px}
.unit-book-actions{gap:12px;padding-top:16px}
.unit-book-actions>.small{font-size:11px;white-space:nowrap}
.unit-book-actions>.btn{min-height:44px;padding:10px 16px;font-size:12px;gap:14px;flex-shrink:0}
}

/* Textbook and home feature cards share one lavender palette and soft action style. */
:root{--feature-card-bg:#e3dff7;--feature-card-ink:#403560;--feature-card-muted:#75698e}
.study-hero{--hero-bg:var(--feature-card-bg);--hero-ink:var(--feature-card-ink);--hero-muted:var(--feature-card-muted)}
.unit-book-banner{background:var(--feature-card-bg);border:0;color:var(--feature-card-ink);box-shadow:0 12px 32px #30254b08}
.unit-book-banner .book-cover{transform:rotate(-4deg);box-shadow:5px 7px 0 #cfc5ea,0 8px 16px #35225918}
.unit-book-banner h1{color:var(--feature-card-ink)}
.unit-book-banner .eyebrow,.unit-book-banner .unit-book-en,.unit-book-banner .small,.textbook-book-banner .textbook-summary{color:var(--feature-card-muted)}
.unit-book-actions{border-top-color:#ffffff70}
.unit-book-actions>.btn{background:#ffffffa3;color:#514959;border:1px solid #ffffffc9;box-shadow:0 2px 6px #4f416507}
.unit-book-actions>.btn span{color:#82758f}
.unit-book-actions>.btn:hover{background:#ffffffeb;border-color:#fff;box-shadow:0 4px 12px #4f41650a;transform:translateY(-1px)}
.unit-book-actions>.btn:focus-visible{outline:2px solid #9c8ab5;outline-offset:4px}

/* Center list numbering and use a quiet directional cue for word details. */
.word-row .word-number{display:inline-flex;align-self:center;align-items:center;justify-content:center;flex-shrink:0;min-width:28px;min-height:26px;font-variant-numeric:tabular-nums}
.word-row .row-more{display:flex;align-self:center;align-items:center;justify-content:center;flex:0 0 18px;margin-left:0;color:#a397b0}
.word-row .row-more svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* An editorial textbook header: clear title, quiet book, and compact metrics. */
.textbook-book-banner{display:grid;grid-template-columns:minmax(0,1fr) 108px;align-items:center;gap:32px;padding:30px 34px;min-height:210px;overflow:hidden}
.textbook-header-copy{min-width:0}
.textbook-kicker{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:var(--feature-card-muted);font-size:11px;line-height:1.5;letter-spacing:.5px}
.textbook-edition{padding:2px 7px;border:1px solid #ffffff80;border-radius:6px;color:#9281a7;font-size:9px;letter-spacing:1px}
.textbook-book-banner h1{font-size:36px;font-weight:650;line-height:1.25;letter-spacing:-1px;margin:14px 0 0}
.textbook-header-stats{display:flex;align-items:center;gap:24px;margin-top:22px;color:var(--feature-card-muted)}
.textbook-header-stats>div{display:flex;align-items:baseline;gap:7px;min-width:0}
.textbook-header-stats>div+div{padding-left:24px;border-left:1px solid #bdb0d14d}
.textbook-header-stats strong{font-size:24px;line-height:1;font-weight:500;letter-spacing:-.6px;font-variant-numeric:tabular-nums;color:#5d4d7c}
.textbook-header-stats span{font-size:11px;line-height:1.5}




@media(max-width:700px){
.textbook-book-banner{grid-template-columns:minmax(0,1fr) 76px;gap:17px;padding:25px 23px;min-height:185px;margin-bottom:22px}
.textbook-kicker{font-size:9px;letter-spacing:.1px;gap:6px}.textbook-edition{font-size:8px;padding:1px 5px}
.textbook-book-banner h1{font-size:27px;letter-spacing:-.8px;margin-top:12px}
.textbook-header-stats{margin-top:19px;gap:12px}.textbook-header-stats>div{gap:5px}.textbook-header-stats>div+div{padding-left:12px}
.textbook-header-stats strong{font-size:20px}.textbook-header-stats span{font-size:9px}


}
@media(max-width:360px){.textbook-book-banner{gap:12px;padding:23px 20px;grid-template-columns:minmax(0,1fr) 62px}.textbook-book-banner h1{font-size:24px}.textbook-header-stats{gap:8px}.textbook-header-stats>div+div{padding-left:8px}.textbook-header-stats>div{gap:4px}.textbook-header-stats strong{font-size:18px}.textbook-header-stats span{font-size:8px}}

/* A shared lavender palette for textbook information and controls. */
:is(main,.unit-book-banner)[data-book]{--book-bg:#e3dff7;--book-ink:#403560;--book-muted:#75698e;--book-shape:#b7a3d3;--book-accent:#927ab3;--feature-card-bg:var(--book-bg);--feature-card-ink:var(--book-ink);--feature-card-muted:var(--book-muted)}
.textbook-book-banner{position:relative;isolation:isolate;grid-template-columns:minmax(0,1fr);gap:0}
.textbook-header-copy{position:relative;z-index:1}
.textbook-edition{color:var(--book-muted)}
.textbook-header-stats strong{color:var(--book-ink)}
.textbook-header-stats>div+div{border-left-color:var(--book-shape)}
@media(max-width:700px){.textbook-book-banner{grid-template-columns:minmax(0,1fr);gap:0}}
@media(max-width:360px){.textbook-book-banner{grid-template-columns:minmax(0,1fr);gap:0}}

/* Keep textbook navigation and learning details in the same purple style. */
main[data-page="books"] .textbook-tab.active{background:var(--book-ink);border-color:var(--book-ink);color:#fff}
main[data-page="books"] .textbook-tab:not(.active):hover{background:var(--book-bg);color:var(--book-ink);border-color:var(--book-shape)}
main[data-page="books"] .textbook-tab:focus-visible{outline:2px solid var(--book-accent);outline-offset:3px}
main[data-page="books"] .unit-tile.active{background:var(--book-bg);border-color:var(--book-shape)}
main[data-page="books"] .unit-tile:hover{border-color:var(--book-shape)}
main[data-page="books"] .unit-tile .eyebrow,main[data-page="books"] .unit-tile.active strong{color:var(--book-ink)}
main[data-page="books"] .unit-tile .progress-track{background:#ffffff80}
main[data-page="books"] .unit-tile .progress-track i{background:var(--book-accent)}
main[data-page="unit"] .unit-back{color:var(--book-muted)}
main[data-page="unit"] .unit-back:hover{color:var(--book-ink)}
main[data-page="unit"] .book-cover{background:#5446d9;border-left-color:#9382e5;box-shadow:5px 7px 0 #d5cdec,0 8px 16px #35225918}
main[data-page="unit"] .unit-book-actions>.btn,main[data-page="unit"] .unit-book-actions>.btn span{color:var(--book-ink)}
main[data-page="unit"] .unit-book-actions>.btn:focus-visible{outline-color:var(--book-accent)}
main[data-page="unit"] .word-filter.active,main[data-page="unit"] .word-filter:hover{color:var(--book-ink)}
main[data-page="unit"] .word-filter.active .filter-count{background:var(--book-bg);color:var(--book-ink)}
main[data-page="unit"] .word-filter.active::after{background:var(--book-accent)}
main[data-page="unit"] .word-filter:focus-visible{outline-color:var(--book-accent)}
main[data-page="unit"] .word-row .word-number{background:var(--book-bg);color:var(--book-muted)}
main[data-page="unit"] .word-row .row-more{color:var(--book-muted)}
main[data-page="unit"] .word-row:hover{background:var(--book-bg)}
main[data-page="unit"] .source-note a{color:var(--book-ink)}

/* The textbook overview header sits directly on the page canvas. */
main[data-page="books"] .textbook-book-banner{background:none;border:0;border-radius:0;box-shadow:none;padding:10px 0 22px;min-height:190px}
@media(max-width:700px){
main[data-page="books"] .textbook-book-banner{padding:8px 0 22px;min-height:160px;margin-bottom:16px}
}

/* Sentence clues align with the answer field; the blank stands out in context. */
.learning-card .sentence-translation{margin-top:24px;text-align:left;line-height:1.8}
.learning-card .sentence-meaning{text-align:left;line-height:1.7}
.learning-card .sentence-blank{display:inline-block;padding:2px 10px 4px;margin:0 3px;background:#eee9ff;border-bottom:3px solid #8b74dd;border-radius:8px;color:#5840ac;white-space:nowrap;line-height:1.4;vertical-align:baseline;font-weight:700}
.learning-card .sentence-initial{color:#51349c;font-size:1.12em;font-weight:800}

/* Review reminders share the due queue, independently of notification permission. */
.nav-icon{position:relative;display:grid;place-items:center;flex-shrink:0}
.review-nav-dot{position:absolute;right:-4px;top:-3px;width:9px;height:9px;border-radius:50%;background:#e94c5b;border:2px solid #fff;box-shadow:0 0 0 1px #e94c5b1a}
.review-nav-dot[hidden]{display:none}
.reminder-panel{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:24px 0 0;padding:24px 28px}
.reminder-copy{min-width:0}
.reminder-copy h2{display:flex;align-items:center;gap:9px;font-size:18px;margin:0 0 8px}
.reminder-copy p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.reminder-status-dot{width:7px;height:7px;border-radius:50%;background:#e94c5b;flex-shrink:0}
.reminder-panel .btn{flex-shrink:0;min-height:44px}
.reminder-copy .reminder-error{color:#9b4a44;margin-top:6px}
@media(max-width:700px){.reminder-panel{align-items:stretch;flex-direction:column;gap:16px;padding:22px}.reminder-panel .btn{width:100%;white-space:normal}.reminder-copy h2{font-size:17px}}
.learning-card .sentence-gap{color:#9179cf;letter-spacing:1px}
@media(max-width:700px){.learning-card .sentence-blank{padding:2px 8px 3px;margin:0 2px}.learning-card .sentence-translation{margin-top:20px}}

/* A compact, quiet empty state for unit vocabulary filters. */
.word-empty{grid-column:1/-1;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:20px;padding:32px;border:1px solid #eae6ef;border-radius:24px;background:#fff;box-shadow:0 6px 24px #40356004;text-align:left}
.word-empty-icon{display:flex;align-items:center;justify-content:center;width:48px;height:54px;border-radius:16px;background:#f4f1fa;color:#a190bd}
.word-empty-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.word-empty-copy h3{margin:0;color:#51485f;font-size:16px;font-weight:600;line-height:1.6;letter-spacing:.1px}
.word-empty-copy p{margin:6px 0 0;color:#9a91a5;font-size:12px;line-height:1.8}
.word-empty-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 13px;border:1px solid #e6dfee;border-radius:12px;background:#fcfbfe;color:#75618e;font:inherit;font-size:12px;font-weight:500;white-space:nowrap;cursor:pointer;transition:background .18s,border-color .18s}
.word-empty-action>span{display:flex}.word-empty-action svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.word-empty-action:hover{background:#f1edf8;border-color:#cfc1df}.word-empty-action:focus-visible{outline:2px solid #927ab3;outline-offset:4px}
@media(max-width:700px){.word-empty{grid-template-columns:40px minmax(0,1fr);gap:0 15px;padding:25px 22px;border-radius:22px}.word-empty-icon{width:40px;height:46px;align-self:start;border-radius:13px}.word-empty-icon svg{width:25px;height:25px}.word-empty-copy h3{font-size:14px}.word-empty-copy p{font-size:11px;margin-top:5px}.word-empty-action{grid-column:2;justify-self:start;margin-top:16px;min-height:34px;padding:6px 10px;font-size:11px;border-radius:10px}}


/* Practice cards use readable text tones matched to each colored surface. */
main[data-page="practice"] .practice-card{--practice-bg:#ebe7f7;--practice-ink:#4c396d;--practice-muted:#706080;--practice-accent:#604583;background:var(--practice-bg);color:var(--practice-ink);border-color:transparent}
main[data-page="practice"] .practice-card[data-mode="flash"]{--practice-bg:#dfeaf8;--practice-ink:#284563;--practice-muted:#506780;--practice-accent:#315b87}
main[data-page="practice"] .practice-card[data-mode="recall"]{--practice-bg:#e6edcf;--practice-ink:#344329;--practice-muted:#526043;--practice-accent:#3f542d}
main[data-page="practice"] .practice-card[data-mode="choice"]{--practice-bg:#f5e3db;--practice-ink:#643f35;--practice-muted:#7a5146;--practice-accent:#754434}
main[data-page="practice"] .practice-card[data-mode="spell"]{--practice-bg:#fff8e6;--practice-ink:#685022;--practice-muted:#7e6335;--practice-accent:#7a5522}
main[data-page="practice"] .practice-card h2{color:var(--practice-ink);font-weight:700}
main[data-page="practice"] .practice-card p,main[data-page="practice"] .practice-card .small{color:var(--practice-muted)}
main[data-page="practice"] .practice-card .mode-number{color:var(--practice-accent)}
main[data-page="practice"] .practice-card .practice-cta{color:var(--practice-accent);font-weight:650}
main[data-page="practice"] .practice-card:disabled .practice-cta{color:var(--practice-muted);font-weight:500}
main[data-page="practice"] .practice-weak{background:#f5dfe8;border-color:transparent;color:#70364c}
main[data-page="practice"] .practice-weak h3{color:#70364c;font-weight:700}
main[data-page="practice"] .practice-weak p{color:#835668}
main[data-page="practice"] .practice-weak .btn{background:#fff8fb;color:#70364c;border:1px solid #e3b6c8}
main[data-page="practice"] .practice-weak .btn:hover{background:#ffffff}
main[data-page="practice"] .practice-weak .btn:disabled{opacity:1;background:#f4e6eb;color:#795a6a;border-color:#e4c6d2}

/* A quiet vocabulary overview with clear counts and small semantic accents. */
.vocabulary-states{padding:28px}
.vocabulary-states-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.vocabulary-states-heading h2{margin:0;font-size:18px;font-weight:600;color:#40384e}
.vocabulary-states-heading>span{font-size:11px;color:#9a91a5;font-variant-numeric:tabular-nums}
.vocabulary-state-bar{display:flex;gap:3px;height:6px;overflow:hidden;border-radius:8px;margin:24px 0;background:#eeebf2}
.vocabulary-state-color{background:#d3ccdf}
[data-status="REVIEW"] .vocabulary-state-color,.vocabulary-state-color[data-status="REVIEW"]{background:#b9a2d9}
[data-status="MASTERED"] .vocabulary-state-color,.vocabulary-state-color[data-status="MASTERED"]{background:#94baa7}
[data-status="WEAK"] .vocabulary-state-color,.vocabulary-state-color[data-status="WEAK"]{background:#d6a993}
.vocabulary-state-bar>i{flex-basis:0;min-width:2px;border-radius:3px}
.vocabulary-state-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.vocabulary-state-item{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;padding:18px;background:#f8f7fb;border:1px solid transparent;border-radius:17px;text-align:left;font:inherit;cursor:pointer;transition:background .18s,border-color .18s}
.vocabulary-state-label{display:flex;align-items:center;gap:7px;color:#756b82;font-size:12px;font-weight:500}
.vocabulary-state-label>i{width:6px;height:6px;flex-shrink:0;border-radius:50%}
.vocabulary-state-arrow{display:flex;margin-left:auto;color:#b5acbf}
.vocabulary-state-arrow svg,.vocabulary-state-guide summary svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.vocabulary-state-value{display:flex;align-items:baseline;gap:6px;margin-top:16px;color:#a197ae;font-size:10px}
.vocabulary-state-value strong{font-size:29px;line-height:1.2;font-weight:550;letter-spacing:-.8px;color:#4c425d;font-variant-numeric:tabular-nums}
.vocabulary-state-share{margin-top:9px;font-size:10px;line-height:1.6;color:#a197ae}
.vocabulary-state-item:hover{background:#f0ecf7;border-color:#dfd6ed}
.vocabulary-state-item:focus-visible{outline:2px solid #927ab3;outline-offset:3px}
.vocabulary-state-guide{margin-top:23px;border-top:1px solid #eeebf2;font-size:11px;color:#968bA3}
.vocabulary-state-guide summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0 0;cursor:pointer;list-style:none}
.vocabulary-state-guide summary::-webkit-details-marker{display:none}
.vocabulary-state-guide summary>span{display:flex;color:#a99cb9;transform:rotate(90deg);transition:transform .18s}
.vocabulary-state-guide[open] summary>span{transform:rotate(-90deg)}
.vocabulary-state-guide>div{padding-top:12px}.vocabulary-state-guide p{margin:7px 0;line-height:1.9;color:#92889f}.vocabulary-state-guide p strong{font-weight:500;color:#695d7a;margin-right:8px}.vocabulary-state-guide .vocabulary-state-note{margin-top:12px;font-size:10px;color:#aca2b6}
@media(max-width:700px){.vocabulary-states{padding:23px 20px}.vocabulary-states-heading h2{font-size:16px}.vocabulary-states-heading>span{font-size:10px}.vocabulary-state-bar{margin:20px 0}.vocabulary-state-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.vocabulary-state-item{padding:16px;border-radius:15px}.vocabulary-state-label{font-size:11px}.vocabulary-state-value{margin-top:14px}.vocabulary-state-value strong{font-size:27px}.vocabulary-state-share{font-size:9px;margin-top:7px}.vocabulary-state-guide{margin-top:20px}}
@media(prefers-reduced-motion:reduce){.vocabulary-state-item,.vocabulary-state-guide summary>span{transition:none}}


/* A concise practice heading pairs the purpose with the learned-word count. */
main[data-page="practice"] .practice-heading{align-items:center;gap:20px;margin-bottom:26px}
main[data-page="practice"] .practice-heading h1{color:var(--ink)}
main[data-page="practice"] .practice-heading p{max-width:none;margin-top:8px;color:var(--muted);font-size:14px;line-height:1.7}
main[data-page="practice"] .practice-word-count{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;padding:9px 14px;border:1px solid var(--line);border-radius:14px;background:#eee8f6;color:var(--muted);font-size:12px;white-space:nowrap}
main[data-page="practice"] .practice-word-count strong{font-size:18px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
@media(max-width:700px){main[data-page="practice"] .practice-heading{align-items:flex-start;flex-wrap:wrap;gap:14px;margin-bottom:22px}main[data-page="practice"] .practice-heading p{font-size:12px}main[data-page="practice"] .practice-word-count{padding:7px 11px;font-size:11px}main[data-page="practice"] .practice-word-count strong{font-size:16px}}
.account-banner{gap:18px;flex-wrap:wrap}.account-identity{flex:1;min-width:0}.account-identity h2{overflow-wrap:anywhere}.account-banner .avatar{flex-shrink:0}.account-entry{border:1px solid #ffffff38;background:#ffffff15;color:#f7f4ff;border-radius:13px;padding:11px 15px;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}.account-entry:hover{background:#ffffff25}.account-entry span{margin-left:12px}.account-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 4px 22px;color:#82768f;font-size:12px}.account-summary>div{display:flex;align-items:center;gap:8px}.account-status-dot{width:6px;height:6px;border-radius:50%;background:#9989bd;flex-shrink:0}.account-summary .text-button{font-size:12px}.account-summary [hidden]{display:none}#account-sync[data-status="offline"],#account-sync[data-status="expired"],#account-sync[data-status="conflict"]{color:#a66f3f}.account-loading{padding:42px;text-align:center;color:var(--muted)}
.account-modal .eyebrow{font-size:9px;margin-bottom:10px;color:#9585b2}.account-modal .account-intro{font-size:13px;color:var(--muted);line-height:1.8;margin:12px 0 22px}.account-tabs{display:flex;gap:4px;background:#ede9f4;border-radius:13px;padding:4px;margin-bottom:22px}.account-tabs button{flex:1;border:0;border-radius:10px;background:none;color:#8d7f9d;padding:11px;font:inherit;font-size:13px;cursor:pointer}.account-tabs button.active{background:white;color:#655082;box-shadow:0 2px 6px #37214b08}.account-modal form{display:grid;gap:16px}.account-modal label{display:grid;gap:8px;font-size:12px;color:#6b5d7b}.account-modal input:not([type="checkbox"]){width:100%;min-height:46px;padding:12px 14px;background:#fff;border:1px solid #e4deed;border-radius:12px;color:var(--ink);font:inherit;font-size:14px;outline:none}.account-modal input:focus{border-color:#aa96cc;box-shadow:0 0 0 3px #aa96cc18}.account-modal input::placeholder{color:#b3a9be;font-size:12px}.account-modal .account-checkbox{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;margin:2px 0 4px}.account-checkbox input{accent-color:#8a70b9;width:16px;height:16px;margin:2px 0;flex-shrink:0}.account-checkbox small{display:block;color:#a094ac;font-size:10px;margin-top:3px}.account-modal .btn:disabled{opacity:.55;cursor:wait}.account-modal .account-footnote{color:#a094ac;font-size:11px;line-height:1.8;margin:17px 0 0}.account-modal .account-error{color:#b65d60;font-size:12px;line-height:1.7;margin:13px 0 0;min-height:0}.account-error:empty{display:none}.account-management{margin-top:22px;border-top:1px solid #ebe5f0}.account-row{width:100%;display:flex;justify-content:space-between;align-items:center;border:0;border-bottom:1px solid #ebe5f0;background:none;padding:17px 2px;color:#79678e;font:inherit;font-size:13px;cursor:pointer}.account-row:hover{color:#4d365f}.account-logout{color:#a27578}.account-conflict{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}.account-conflict>div{background:#efebf6;border-radius:15px;padding:17px}.account-conflict strong{display:block;font-size:14px}.account-conflict span{display:block;font-size:11px;line-height:1.8;color:var(--muted);margin-top:8px}.account-conflict-actions{display:grid;gap:10px}.account-modal button:focus-visible,.account-entry:focus-visible{outline:2px solid #aa96cc;outline-offset:3px}
@media(max-width:700px){.account-banner{gap:12px}.account-banner .avatar{width:42px;height:42px;font-size:19px}.account-entry{font-size:11px;padding:9px 11px}.account-entry span{margin-left:6px}.account-summary{font-size:11px;padding-bottom:18px}.account-modal.panel{overflow:auto}.account-modal form{gap:13px}.account-modal .account-intro{margin-bottom:18px}.account-tabs{margin-bottom:18px}.account-conflict{grid-template-columns:1fr}}

/* Recognition ratings share the home review/weak-word palette. */
:root{--review-bg:#e6edcf;--review-ink:#516239;--weak-bg:#f5e3db;--weak-ink:#9b6455}
.study-actions .rating-buttons>[data-value="unknown"]{background:var(--weak-bg);color:var(--weak-ink);border:1px solid #e6cbbc;box-shadow:none}
.study-actions .rating-buttons>[data-value="unknown"]:hover{background:#efdad0;border-color:#dbb9a7}
.study-actions .rating-buttons>[data-value="unknown"]:active{background:#e9cfc2}
.study-actions .rating-buttons>[data-value="unknown"]:focus-visible{outline-color:#bd8f78}
.study-actions .rating-buttons>[data-value="known"]{background:var(--review-bg);color:var(--review-ink);border:1px solid #cad5a9;box-shadow:none}
.study-actions .rating-buttons>[data-value="known"]:hover{background:#dce6bc;border-color:#b8c68e;color:var(--review-ink);box-shadow:none}
.study-actions .rating-buttons>[data-value="known"]:active{background:#d2deac;border-color:#afbe83}
.study-actions .rating-buttons>[data-value="known"]:focus-visible{outline-color:#839d51}

/* Uncertain recall stays white with a clearer neutral border. */
.study-actions .rating-buttons>[data-value="fuzzy"]{background:#fff;color:#817b88;border:1px solid #c5becf;box-shadow:none}
.study-actions .rating-buttons>[data-value="fuzzy"]:hover{background:#fff;border-color:#a99eb8}
.study-actions .rating-buttons>[data-value="fuzzy"]:active{background:#f8f7fa;border-color:#968aa7}
.study-actions .rating-buttons>[data-value="fuzzy"]:focus-visible{outline-color:#a99eb8}

/* Desktop uses a compact horizontal dock; phones use a touch tab bar. */
.bottom-nav{position:fixed;width:480px;bottom:24px;padding:7px;gap:5px;border:1px solid #e5e0ed;border-radius:22px;background:#ffffffed;box-shadow:0 10px 32px #30254b12,0 2px 6px #30254b05}
.bottom-nav .nav-item{flex:1 1 0;min-width:0;min-height:48px;flex-direction:row;gap:9px;padding:10px 14px;border-radius:16px;color:#8a8295;font-size:14px;line-height:1.4;font-weight:500;transition:background .18s,color .18s}
.bottom-nav .nav-item svg{flex:0 0 19px;width:19px;height:19px}
.bottom-nav .nav-item.active{background:#302a43;color:#fff;font-weight:650;box-shadow:0 3px 9px #30254b18}
.bottom-nav .nav-item:focus-visible{outline:2px solid #a48cbe;outline-offset:2px}
main:not([data-page="study"]){padding-bottom:132px}
@media(min-width:701px) and (max-width:960px){
.bottom-nav{left:24px;transform:none;width:440px}
}
@media(hover:hover){
.bottom-nav .nav-item:not(.active):hover{background:#f2eef8;color:#655277}
}
@media(max-width:700px){
.bottom-nav{left:0;right:0;transform:none;width:100%;max-width:none;bottom:0;padding:8px 6px calc(8px + env(safe-area-inset-bottom));gap:2px;border-bottom:0;border-radius:24px 24px 0 0;background:#fffffff2;box-shadow:0 -4px 24px #30254b0d}
.bottom-nav .nav-item{min-height:58px;flex-direction:column;gap:4px;padding:4px 2px;border-radius:18px;font-size:12px;color:#918998}
.bottom-nav .nav-item svg{flex:0 0 30px;width:44px;height:30px;padding:5px 12px;border-radius:12px}
.bottom-nav .nav-item.active{background:transparent;color:#604a7c;font-weight:700;box-shadow:none}
.bottom-nav .nav-item.active svg{background:#eae2f5;color:#70548e}
main:not([data-page="study"]){padding-bottom:calc(108px + env(safe-area-inset-bottom))}
.unit-book-actions{flex-wrap:wrap}
.unit-book-actions>.btn{margin-left:auto}
}
@media(hover:none){
.btn:hover,.quick:hover,.unit-tile:hover,.word-row:hover{transform:none}
}

/* Mastery stays available as a compact shortcut in the card header. */
.learning-card .mastered-skip:active{background:#cfdef3;border-color:#749bcf;color:#284a73;box-shadow:inset 0 1px 3px #38618e18}
.learning-card .mastered-skip:focus-visible{outline:2px solid #749bcf;outline-offset:3px}

/* Keep mobile card gestures vertical; taps should not zoom or shift cards. */
.weak-reminder-entry .btn{margin:14px 10px 0 0}
@media(max-width:700px){
main .panel,main .quick,main .unit-tile,main .word-row,.study-actions,.bottom-nav{touch-action:pan-y}
.study-shell .learning-card{overflow-x:hidden;overscroll-behavior:none}
main .quick:hover,main .quick:active,main .unit-tile:hover,main .unit-tile:active,main .word-row:hover,main .word-row:active,main .practice-card:hover,main .practice-card:active,main .btn:hover,main .btn:active,.study-actions .btn:hover,.study-actions .btn:active,main .sound:hover,main .sound:active{transform:none}
}

/* A lavender progress surface separates the overview from the white state card. */
.mine-progress{background:linear-gradient(125deg,#eee8fa 0%,#e5dcf3 100%);border-color:#ded2ed;box-shadow:0 8px 26px #8060990a}
.mine-progress h3,.mine-progress .ring strong,.mine-progress .stats-pair strong,.mine-progress .progress-caption strong{color:#513d6c}
.mine-progress .eyebrow{color:#836797}
.mine-progress .tile-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#ffffff66;color:#9478ad}
.mine-progress .ring{background:conic-gradient(#8c6abb calc(var(--value)*1%),#d7cbe9 0)}
.mine-progress .ring-inner{background:#fbf9ff}
.mine-progress .ring span,.mine-progress .stats-pair span,.mine-progress .stats-pair strong small,.mine-progress .progress-caption,.mine-progress .progress-note{color:#79658c}
.mine-progress .progress-track{background:#d7cbe9}
.mine-progress .progress-track i{background:#8c6abb}

/* Match browser chrome, overscroll canvas and mobile safe areas to the page. */
:root{--browser-surface:#f5f4f8;color-scheme:light}
html{min-height:100%;background:var(--browser-surface)}
body{min-height:100dvh}
@media(max-width:700px){
body{padding-top:env(safe-area-inset-top);background:var(--browser-surface)}
.bottom-nav,.study-actions{background:var(--browser-surface);border-color:#e9e5ef;box-shadow:0 -6px 22px #382c4c06}
.bottom-nav{padding-left:max(6px,env(safe-area-inset-left));padding-right:max(6px,env(safe-area-inset-right))}
.study-actions{padding-left:max(17px,env(safe-area-inset-left));padding-right:max(17px,env(safe-area-inset-right))}
.study-shell{height:calc(100dvh - 108px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
}

/* Press feedback changes light and shade, without shifting mobile cards. */
#app button:not(:disabled):active,#overlay button:not(:disabled):active,.bottom-nav .nav-item:active{filter:brightness(.97);box-shadow:inset 0 1px 4px #4a365f18}
.learning-card .choice:active{background:#efebf5;box-shadow:inset 0 1px 4px #4a365f12}
.haptics-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:18px;padding:24px 28px}
.haptics-panel h2{font-size:17px}.haptics-panel p{font-size:13px;line-height:1.7;margin:8px 0 0}
.haptics-switch{display:flex;align-items:center;gap:10px;min-height:44px;flex-shrink:0;padding:6px 4px;font-size:12px;color:#756681;white-space:nowrap}
.haptics-switch-track{display:flex;align-items:center;width:42px;height:26px;padding:3px;border-radius:20px;background:#ded8e7}
.haptics-switch-track i{width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 3px #30254b15}
.haptics-switch[aria-checked="true"] .haptics-switch-track{background:#9a85bd;justify-content:flex-end}
.haptics-switch:disabled{opacity:1;color:#918498}.haptics-switch:focus-visible{outline:2px solid #9a85bd;outline-offset:3px}
@media(max-width:700px){.haptics-panel{padding:22px;gap:16px;align-items:flex-start}.haptics-panel>div{min-width:0}.haptics-panel p{font-size:12px}.haptics-switch{flex-direction:column;gap:5px;padding:0;min-width:52px}}
/* Vocabulary expansion stays in the detail sheet; study controls keep their space. */
.learning-entry{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;background:#f1edf7;border:1px solid #e2d9ed;border-radius:16px;padding:14px 16px;margin:12px 0 4px;color:#67517f;min-height:60px;cursor:pointer}
.learning-entry strong{display:block;font-size:14px;font-weight:650;line-height:1.5}.learning-entry small{display:block;font-size:12px;color:#82738f;margin-top:3px;line-height:1.5}.learning-entry svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7}.learning-entry:hover{background:#eae3f3;transform:none}.learning-entry:active{background:#e4dced;box-shadow:inset 0 1px 4px #49315f15}.learning-entry:focus-visible{outline:2px solid #9b83bd;outline-offset:3px}

/* A stable reading sheet: fixed word header, three sections, one scrolling body. */
.modal.word-detail.panel{display:flex;flex-direction:column;width:100%;max-width:700px;height:min(760px,88dvh);max-height:calc(100dvh - 48px);overflow:hidden;padding:0;border:1px solid #ece7f2;border-radius:24px;background:#fcfbfe;box-shadow:0 24px 80px #28264124}
.word-detail .word-detail-header{position:relative;flex:0 0 auto;padding:25px 30px 12px;background:#fcfbfe}
.word-detail-header .eyebrow{font-size:10px;letter-spacing:.6px;color:#978aA5;padding-right:44px}
.word-detail-header .word-heading{font-size:34px;line-height:1.2;letter-spacing:-.6px;margin:9px 0 0;padding-right:46px;overflow-wrap:anywhere}
.word-detail .word-detail-header .modal-close{width:44px;height:44px;top:18px;right:18px;border-radius:50%;background:#f1edf6;color:#80728f;cursor:pointer}
.word-detail .detail-phonetic{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:38px;margin:6px 0 0}
.word-detail .detail-phonetic .word-phonetic{font-size:13px;color:#8a7e96}
.word-detail .detail-phonetic .sound{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;background:transparent;color:#9078ad;border-radius:50%}
.word-detail .detail-phonetic .sound:hover{background:#eee8f6}
.word-detail .detail-phonetic .pill{margin-left:auto;font-size:9px;background:#f1eef5;color:#968aA2;padding:4px 8px}
.learning-tabs{display:flex;flex:0 0 auto;gap:22px;padding:0 30px;border-bottom:1px solid #e9e3ef;background:#fcfbfe}
.learning-tab{display:flex;position:relative;align-items:center;justify-content:center;gap:7px;flex:1;min-height:49px;border:0;border-radius:0;background:transparent;color:#97899f;font-size:13px;cursor:pointer;padding:8px 4px}
.learning-tab[aria-selected="true"]{color:#624781;font-weight:650}
.learning-tab[aria-selected="true"]:after{content:'';position:absolute;bottom:-1px;left:12%;right:12%;height:2px;border-radius:2px;background:#967ab4}
.learning-tab>span{font-size:10px;line-height:1;color:#a196ae;font-weight:400}
.learning-tab:focus-visible{outline:2px solid #aa93c4;outline-offset:-4px;border-radius:8px}
.word-detail-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ded5e8 transparent;padding:26px 30px 30px}
.word-learning,.learning-panel{min-width:0}.word-detail .learning-panel[hidden]{display:none!important}.learning-panel:focus-visible{outline:2px solid #b09ac7;outline-offset:8px;border-radius:4px}
.learning-panel>.learning-section+.learning-section{margin-top:25px;padding-top:23px;border-top:1px solid #eee9f2}
.learning-section{margin:0;min-width:0}.learning-section h3{margin:0 0 13px;font-size:13px;line-height:1.5;letter-spacing:0;font-weight:650;color:#6f5b81}
.word-detail .learning-definition p{font-size:15px;line-height:1.9;color:#43354e;margin:0;overflow-wrap:anywhere}
.learning-tip{padding:0;border:0;border-radius:0;background:transparent}
.word-detail .learning-tip p{font-size:14px;line-height:1.95;color:#6d6278;margin:0;overflow-wrap:anywhere}
.learning-caption{color:#93869f;font-size:12px;line-height:1.7;margin:-5px 0 14px}
.learning-relations{display:flex;flex-direction:column;gap:0}
.learning-relation{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:start;gap:15px;min-width:0;padding:12px 0;background:none;border:0;border-radius:0}
.learning-relation+.learning-relation{border-top:1px solid #eee9f2}
.learning-relation h4{font-size:12px;font-weight:500;color:#8a7a98;line-height:1.8;margin:0}
.learning-opposite h4{color:#a38378}
.learning-tags{display:flex;flex-wrap:wrap;gap:8px 18px;min-width:0}
.learning-tags>span{display:block;max-width:100%;padding:0;border:0;border-radius:0;background:none;font-size:14px;line-height:1.8;color:#5d4d6d;overflow-wrap:anywhere}
.learning-senses{display:grid;gap:0}
.learning-sense{border:0;border-bottom:1px solid #eee9f2;background:none;border-radius:0;overflow:hidden}
.learning-sense:last-child{border-bottom:0}
.learning-sense summary{display:flex;align-items:flex-start;gap:10px;list-style:none;padding:14px 0;color:#66586f;font-size:13px;line-height:1.75;cursor:pointer}
.learning-sense summary::-webkit-details-marker{display:none}
.learning-sense summary>span[lang]{flex:1;min-width:0;overflow-wrap:anywhere}
.learning-pos{padding:2px 6px;background:#eee8f5;border-radius:4px;color:#9884aa;flex-shrink:0;font-size:10px;line-height:1.8}
.learning-chevron{flex-shrink:0;color:#b2a5bd;transition:rotate .15s}
.learning-sense[open] .learning-chevron{rotate:180deg}
.learning-sense-body{padding:0 0 12px 0}
.learning-sense-body .learning-relation{padding:10px 0}.learning-sense-body .learning-caption{margin:0 0 4px}
.learning-sense summary:focus-visible{outline:2px solid #b09ac7;outline-offset:-2px;border-radius:6px}
.learning-collocations{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:0}
.learning-collocations li{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:baseline;gap:8px 24px;padding:16px 0;border:0;border-bottom:1px solid #eee9f2;border-radius:0;background:none;overflow-wrap:anywhere}
.learning-collocations li:first-child{padding-top:3px}.learning-collocations li:last-child{border-bottom:0;padding-bottom:0}
.learning-collocations strong{font-size:16px;line-height:1.75;color:#574365;font-weight:500}
.learning-collocations span{font-size:13px;line-height:1.85;color:#93839f}
.learning-dictionary li{grid-template-columns:1fr;gap:4px}
.learning-dictionary span{font-size:13px;line-height:1.8;color:#92859e}
.learning-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.learning-section-heading h3{margin:0}.learning-section-heading>span{color:#a295ad;font-size:11px;white-space:nowrap}
.learning-examples ol{list-style:none;margin:0;padding:0;display:grid;gap:0}
.learning-examples li{display:grid;grid-template-columns:24px minmax(0,1fr) 40px;align-items:start;column-gap:14px;padding:24px 0;border:0;border-bottom:1px solid #eee9f2;border-radius:0;background:none;min-width:0;overflow-wrap:anywhere}
.learning-examples li:first-child{padding-top:0}.learning-examples li:last-child{border-bottom:0;padding-bottom:0}
.learning-example-index{font-family:Georgia,serif;font-size:13px;line-height:1.8;color:#b3a5bf;padding-top:4px}
.learning-example-copy{min-width:0;padding-top:1px}
.word-detail .learning-example-en{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:20px;line-height:1.75;color:#473450;margin:0;overflow-wrap:anywhere}
.word-detail .learning-example-zh{font-size:13px;line-height:1.9;color:#8d7d99;margin:9px 0 0}
.word-detail .learning-example-sense{font-size:11px;line-height:1.7;color:#a091ab;margin:9px 0 0}
.learning-example-source{display:block;font-size:10px;line-height:1.6;color:#b0a2bc;margin-top:10px}
.learning-example-source a{color:#a195ae;text-decoration-color:#d7ccdf;text-underline-offset:3px}
.learning-example-audio{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;background:#f0ebf6;color:#9580ab;cursor:pointer}
.learning-example-audio svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.learning-example-audio:hover{background:#e8e0f1;transform:none}
.learning-example-audio:focus-visible{outline:2px solid #aa93c4;outline-offset:2px}
.word-detail .learning-source-note{font-size:11px;line-height:1.8;color:#a497af;margin:27px 0 0;padding-top:18px;border-top:1px solid #eee9f2}
.learning-source-note a{color:#917cA3;text-underline-offset:3px;white-space:nowrap}
.word-detail-footer{position:static;flex:0 0 auto;padding:13px 30px max(15px,env(safe-area-inset-bottom));border-top:1px solid #e9e3ef;background:#fcfbfe}
.word-detail .word-detail-footer .btn{margin:0;width:100%;min-height:44px;border-radius:12px;background:#eee7f6;border:0;color:#71528d;font-size:13px;font-weight:550}
.word-detail .word-detail-footer .btn:hover{background:#e6dbf1;transform:none}
@media(max-width:700px){
.modal.word-detail.panel{height:calc(100dvh - 24px - env(safe-area-inset-top));max-height:calc(100dvh - 24px - env(safe-area-inset-top));border-radius:24px 24px 18px 18px}
.word-detail .word-detail-header{padding:22px 21px 9px}.word-detail-header .word-heading{font-size:29px;margin-top:8px;line-height:1.25}.word-detail-header .eyebrow{font-size:9px;letter-spacing:.2px}
.word-detail .word-detail-header .modal-close{top:14px;right:13px;width:40px;height:40px}.word-detail .detail-phonetic{gap:8px;min-height:34px;margin-top:4px}.word-detail .detail-phonetic .sound{width:36px;height:36px;flex-basis:36px}
.learning-tabs{padding:0 21px;gap:16px}.learning-tab{font-size:13px;min-height:46px}.learning-tab[aria-selected="true"]:after{left:6%;right:6%}
.word-detail-body{padding:23px 21px 26px}.learning-panel>.learning-section+.learning-section{margin-top:22px;padding-top:20px}.learning-section h3{font-size:12px;margin-bottom:12px}
.word-detail .learning-definition p{font-size:14px;line-height:1.9}.word-detail .learning-tip p{font-size:13px;line-height:1.95}.learning-caption{font-size:11px}
.learning-relation{grid-template-columns:54px minmax(0,1fr);gap:12px;padding:10px 0}.learning-relation h4{font-size:11px}.learning-tags{gap:7px 14px}.learning-tags>span{font-size:13px;line-height:1.85}
.learning-sense summary{font-size:12px;gap:8px}.learning-pos{font-size:9px}
.learning-collocations li{grid-template-columns:1fr;gap:4px;padding:16px 0}.learning-collocations strong{font-size:16px}.learning-collocations span{font-size:12px;line-height:1.8}
.learning-examples li{grid-template-columns:19px minmax(0,1fr) 36px;column-gap:10px;padding:23px 0}.learning-example-index{font-size:12px;padding-top:3px}.word-detail .learning-example-en{font-size:18px;line-height:1.75}.word-detail .learning-example-zh{font-size:12px;line-height:1.9;margin-top:8px}.learning-example-source{font-size:10px;margin-top:8px}.learning-example-audio{width:36px;height:36px}
.word-detail-footer{padding:12px 21px max(12px,env(safe-area-inset-bottom))}.word-detail .word-detail-footer .btn{min-height:42px;font-size:12px}.word-detail .learning-source-note{font-size:10px}
}
/* Gentle colour bands keep the reading sections distinct. */
.word-detail{--detail-accent:#74588e;--detail-tint:#f0eaf7;--detail-line:#ddd0eb}
.word-detail:has(#learning-tab-phrases[aria-selected="true"]){--detail-accent:#5a704d;--detail-tint:#edf3e8;--detail-line:#d8e3d1}
.word-detail:has(#learning-tab-examples[aria-selected="true"]){--detail-accent:#8c6e49;--detail-tint:#faf0e0;--detail-line:#ecddc6}
.word-detail .learning-tab{border-radius:9px 9px 0 0}
.word-detail #learning-tab-usage{color:#80658f}
.word-detail #learning-tab-phrases{color:#617653}
.word-detail #learning-tab-examples{color:#8c6e49}
.word-detail .learning-tab[aria-selected="true"]{background:var(--detail-tint);color:var(--detail-accent)}
.word-detail .learning-tab[aria-selected="true"]:after{left:0;right:0;background:var(--detail-accent)}
.word-detail .learning-tab[aria-selected="true"]>span{color:var(--detail-accent)}
.word-detail .learning-section h3{display:flex;align-items:center;gap:9px;color:var(--detail-accent)}
.word-detail .learning-section h3:before{content:'';width:3px;height:12px;border-radius:2px;background:var(--detail-accent);flex:0 0 3px;opacity:.65}
.word-detail .learning-definition{background:#f3eef9;margin-left:-12px;margin-right:-12px;padding:15px 12px;border-radius:11px}
.word-detail .learning-tip h3{color:#617653}
.word-detail .learning-tip h3:before{background:#8d9c75}
.word-detail .learning-panel>.learning-tip{border-top-color:#e0e7d8}
.word-detail .learning-relation h4{color:#617653}
.word-detail .learning-opposite h4{color:#936b57}
.word-detail .learning-opposite{border-top-color:#eee0d9}
.word-detail .learning-relation:not(.learning-opposite) .learning-tags>span{color:#627358}
.word-detail .learning-opposite .learning-tags>span{color:#936b57}
.word-detail .learning-collocations{background:#f0f5ed;border-radius:11px;margin:0 -12px;padding:0 12px}
.word-detail .learning-collocations li{border-bottom-color:#dfe8d9}
.word-detail .learning-collocations li:first-child{padding-top:14px}
.word-detail .learning-collocations li:last-child{padding-bottom:14px}
.word-detail .learning-collocations strong{color:#586e4f}
.word-detail .learning-collocations span{color:#617157}
.word-detail .learning-examples ol{background:#fbf5eb;border-radius:11px;margin:0 -12px;padding:0 12px}
.word-detail .learning-examples li{border-bottom-color:#eee0cc}
.word-detail .learning-examples li:first-child{padding-top:16px}
.word-detail .learning-examples li:last-child{padding-bottom:16px}
.word-detail .learning-example-index{color:#b69a75}
.word-detail .learning-example-en{color:#61503b}
.word-detail .learning-example-zh{color:#806d56}
.word-detail .learning-example-source,.word-detail .learning-example-source a{color:#806d56}
.word-detail .learning-example-audio{background:#f2e6d3;color:#a18156}
.word-detail .learning-example-audio:hover{background:#ead8bb}
.word-detail .word-detail-footer{border-top-color:var(--detail-line)}
.word-detail .word-detail-footer .btn{background:var(--detail-tint);color:var(--detail-accent)}
.word-detail .word-detail-footer .btn:hover{background:var(--detail-tint);filter:brightness(.98)}
/* Dictionary definitions: quiet part-of-speech labels and aligned Chinese text. */
:root{--definition-font:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif}
.meaning-lines{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:6px;min-width:0;font-family:var(--definition-font);font-weight:400;font-style:normal;letter-spacing:.018em;line-height:1.9;text-align:left;overflow-wrap:anywhere}
.meaning-row{display:grid;grid-column:1/-1;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;column-gap:6px;min-width:0}
.meaning-row+.meaning-row{margin-top:7px}
.meaning-row--plain{grid-template-columns:minmax(0,1fr)}
.meaning-pos{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:400;font-size:.85em;letter-spacing:0;color:#8e789f;text-decoration:none;border:0;white-space:nowrap;line-height:inherit}
.meaning-text{min-width:0;font-weight:400;line-height:inherit;overflow-wrap:anywhere}
.learning-card .revealed-answer h2:has(.meaning-lines){font-family:var(--definition-font);font-size:18px;font-weight:400;line-height:1.9;letter-spacing:.018em;text-align:left}
.learning-card .recall-meaning{font-family:var(--definition-font);font-size:20px;font-weight:400;line-height:1.9;letter-spacing:.018em;text-align:left}
.learning-card .choice .meaning-lines{font-size:14px;line-height:1.8;letter-spacing:.01em}
.learning-card .choice .meaning-row+.meaning-row{margin-top:4px}
.learning-card .choice.correct .meaning-pos,.learning-card .choice.incorrect .meaning-pos{color:inherit;opacity:.75}
.learning-card .feedback .meaning-lines{font-size:14px;line-height:1.85}
.learning-card .feedback .meaning-row+.meaning-row{margin-top:5px}
.learning-card .sentence-meaning .meaning-lines{margin-top:7px;font-size:13px}
.daily-meaning .meaning-lines{font-size:14px;line-height:1.85}
.word-row-body .meaning-lines{font-size:13px;line-height:1.8;margin-top:7px}

.word-row-body .meaning-row+.meaning-row{margin-top:4px}
.word-detail .learning-definition .meaning-lines{font-size:15px;line-height:1.95;letter-spacing:.025em}
.word-detail .learning-definition .meaning-row+.meaning-row{margin-top:9px}
@media(max-width:700px){
.learning-card .revealed-answer h2:has(.meaning-lines){font-size:16px;line-height:1.95}
.learning-card .recall-meaning{font-size:18px;line-height:1.95;letter-spacing:.02em}


.meaning-row+.meaning-row{margin-top:8px}
.learning-card .choice .meaning-lines{font-size:13px;line-height:1.85}

.learning-card .feedback .meaning-lines{font-size:13px;line-height:1.9}
.word-detail .learning-definition .meaning-lines{font-size:14px;line-height:1.95}
.word-row-body .meaning-lines{font-size:12px;line-height:1.85}
}
@supports (grid-template-columns:subgrid){.meaning-lines>.meaning-row{grid-template-columns:subgrid}}
.meaning-lines>.meaning-row.meaning-row--plain{grid-template-columns:minmax(0,1fr)}
.learning-card .choice{align-items:flex-start;text-align:left;justify-content:flex-start}
.learning-card .choice .choice-letter{flex:0 0 27px}
.learning-card .choice .choice-text{align-self:flex-start;text-align:left;place-items:normal}
.learning-card .choice .meaning-lines{width:100%;justify-self:stretch}
.learning-card .choice svg{align-self:flex-start;margin-top:3px}
/* Keep task instructions distinct from translations and dictionary notes. */
.learning-card .answer-instruction{display:flex;align-items:baseline;gap:9px;margin:18px 0 10px;padding:11px 12px;border-left:3px solid #9c85bc;border-radius:4px 10px 10px 4px;background:#f2edf8;color:#56426e;text-align:left;font-size:14px;line-height:1.75;letter-spacing:.015em}
.answer-instruction .instruction-kicker{flex:none;white-space:nowrap;font-size:10px;letter-spacing:.05em;font-weight:600;color:#7e6698}
.answer-instruction .instruction-copy{min-width:0;font-weight:550}
.answer-instruction strong{font-weight:700}
.answer-instruction .instruction-emphasis{color:#8a5933;font-weight:700;white-space:nowrap}
.learning-card .input-label.answer-instruction{margin-top:22px;margin-bottom:10px;cursor:text}
@media(max-width:700px){.learning-card .answer-instruction{font-size:13px;gap:8px;padding:10px 11px;line-height:1.75}.answer-instruction .instruction-kicker{font-size:10px}}

.site-header:has(~ main[data-page="missing"]){display:none}
