:root{--ink:#102862;--muted:#7088b6;--line:#edf2ff;--blue:#003bdf;--word-size:28px;--meaning-size:14px;--ipa-size:14px;--pos-size:12px;--form-size:12px;--state-size:14px}*{box-sizing:border-box}body{margin:0;min-height:100vh;color:var(--ink);font-family:Arial,"Microsoft YaHei",sans-serif;background:radial-gradient(ellipse at 37% -5%,#dce3ff80 0,transparent 35%),linear-gradient(120deg,#f1f5ff,#eff6ff 55%,#f5f7ff);font-size:14px}body:before{content:"";position:absolute;top:-180px;left:24%;height:260px;width:290px;border-radius:65px;transform:rotate(-40deg);background:linear-gradient(45deg,#cbd1ff55,#dce8ff88);pointer-events:none}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button,input,select{font-family:inherit}button,a,input,select,summary{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #8f9fff;outline-offset:3px}.topbar{position:relative;display:flex;align-items:center;justify-content:space-between;padding:14px 3% 12px;gap:20px}.brand{font-size:34px;font-weight:700;letter-spacing:1px;color:#051d61}.subtitle{margin:7px 0 0;color:#6982b2;font-size:14px}.summary{display:flex;gap:14px}.stat{display:flex;align-items:center;gap:12px;min-width:145px;padding:14px 16px;border-radius:17px;background:linear-gradient(140deg,#ffffffd9,#f8faff99);box-shadow:0 6px 20px #9eb7f214}.stat>.icon{width:40px;height:40px;padding:8px;color:#426dff;background:#e8efff;border-radius:9px;filter:drop-shadow(0 3px 3px #749cff33)}.stat.green>.icon{color:#8cdb00;background:#effcde}.stat.purple>.icon{color:#9275ff;background:#eeeaff}.stat b{font-size:21px;display:block;color:#071f65}.stat small{display:block;margin-top:3px;color:#6c85b4;font-size:13px}.workspace{display:grid;grid-template-columns:258px minmax(0,1fr);gap:12px;margin:0 28px 20px}.sidebar{background:linear-gradient(120deg,#ffffffdf,#f1f7ff8c);border-radius:22px;padding:24px 12px;min-height:calc(100vh - 120px);position:relative}.sidebar nav{position:sticky;top:20px}.nav-item{display:flex;align-items:center;gap:15px;width:100%;height:56px;padding:0 20px;margin-bottom:1px;background:none;border:0;border-radius:16px;color:#102b70;text-align:left;font-size:18px;white-space:nowrap}.nav-item b{margin-left:auto;background:white;padding:4px 8px;border-radius:16px;font-size:13px}.nav-item.active{background:linear-gradient(120deg,#dce5ff,#cdd9ffbb);box-shadow:0 3px 12px #9aaef42b;color:#003cff}.motivation{position:sticky;top:calc(100vh - 310px);margin-top:235px;border-radius:21px;height:230px;padding:20px;background:linear-gradient(140deg,#e4f0ff,#e5efff 50%,#dce9ff);overflow:hidden;color:#0034be;box-shadow:0 4px 12px #abc9ff22}.motivation strong{font-size:18px;line-height:1.5}.book-art{position:absolute;bottom:10px;left:72px;width:130px;height:130px;transform:rotate(14deg)}.book-art i{position:absolute;inset:0;border-radius:12px;background:linear-gradient(135deg,#c7d1ff,#7d9afa);box-shadow:inset 5px 0 5px #fff6,4px 5px 8px #99aaf077;border:2px solid #bbccff}.book-art i:first-child{transform:translate(30px,-14px);background:#e2bdff}.book-art i:nth-child(2){transform:translate(15px,-7px);background:#edc8ff}.book-art i:last-child{display:flex;align-items:center;justify-content:center;font-size:46px;color:#f2f5ff;font-style:normal;font-weight:bold}main{min-width:0}.library{background:linear-gradient(120deg,#ffffffed,#f9fbffe8);border-radius:22px;padding:22px 20px 0;box-shadow:0 8px 35px #b6c9ff0d}.toolbar{display:flex;align-items:center;gap:35px;padding:2px 12px 18px;border-bottom:1px solid #eaf0ff}.search{height:47px;display:flex;align-items:center;gap:20px;flex:1;min-width:150px;background:linear-gradient(90deg,#f1f5ff,#edf2ff);border:1px solid #e7edff;border-radius:14px;padding:0 16px;color:#003aff}.search .icon{width:21px;height:21px}.search input{width:100%;height:43px;border:0;background:none;outline:none;color:var(--ink);font-size:14px;min-width:0}.search input::placeholder{color:#8198c0}.filter{display:flex;align-items:center;gap:10px;white-space:nowrap;color:#142f70;font-size:13px;font-weight:600;padding:4px 5px 4px 12px;border-radius:17px;box-shadow:0 3px 7px #bacbf64f}.filter .icon{color:#003bea;width:20px;height:20px}select{color:#153376;background:#fff;border:1px solid #edf1ff;border-radius:14px;padding:10px 12px;box-shadow:0 3px 7px #c6d1ef5c;font-size:14px}.filter select{width:145px}.filter:last-child select{width:132px}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 12px 10px;flex-wrap:wrap}.list-heading>div{display:flex;align-items:center;gap:10px}h2{margin:0;font-size:21px;font-weight:600}#resultCount{font-size:14px;color:#607eae}.view-options{flex-wrap:wrap;color:#6a84b3}.font-settings,.page-size,.hide{display:flex;align-items:center;gap:8px;font-size:14px;white-space:nowrap}.font-settings button{border:0;background:transparent;color:#5e7daa;font-size:15px;border-radius:10px;padding:9px 10px}.font-settings button[aria-pressed=true]{color:#073cdb;background:#e8edff;box-shadow:inset 0 1px 4px #bbcbff8a,0 2px 6px #c7d4ff6b}.page-size select{padding:8px 10px;font-size:14px}.hide{font-size:13px}input[type=checkbox]{width:19px;height:19px;margin:0;accent-color:#516ff3;cursor:pointer}table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0 7px}th{font-size:13px;font-weight:400;text-align:left;padding:12px 22px;background:#f0f5ffb3;color:#7b96c3}th:first-child{width:22%;border-radius:15px 0 0 15px}th:last-child{width:16%;border-radius:0 15px 15px 0}td{background:linear-gradient(110deg,#fff,#ffffffef);vertical-align:top;padding:12px 20px;box-shadow:0 4px 12px #b8c9f50d}td:first-child{border-radius:17px 0 0 17px;position:relative;padding-right:55px}td:last-child{border-radius:0 17px 17px 0;vertical-align:middle}.word{font-size:var(--word-size);font-weight:600;color:#0034be;line-height:1.15;overflow-wrap:anywhere}.phonetic{font-size:var(--ipa-size);color:#7996c4;margin-top:5px;line-height:1.35;overflow-wrap:anywhere}.speak{position:absolute;right:30px;top:22px;width:36px;height:36px;border:1px solid #e4ecff;border-radius:50%;background:linear-gradient(140deg,#f0f5ff,#e7eeff);color:#0043ee;box-shadow:0 3px 5px #b4c8fc44;font-size:17px;padding:0 0 0 3px}.meaning-layout{display:flex;gap:16px}.pos-badges{display:flex;flex-direction:column;gap:3px;align-items:center;min-width:66px;flex-shrink:0;padding-top:1px}.pos-badge{font-size:13px;line-height:1.2;min-width:65px;text-align:center;padding:7px 10px;border-radius:13px;color:#123477;background:#e7f2ff}.pos-n{background:#e6e1ff}.pos-v{background:#ecfbdc}.pos-adj{background:#fff0d9}.pos-adv{background:#edf1ff}.pos-prep{background:#e8e0ff}.pos-conj{background:#fbe0fc}.pos-pron{background:#dff7f4}.pos-det{background:#ffe9ee}.pos-art{background:#e3f2ff}.pos-aux{background:#ecefff}.pos-num{background:#fff4cf}.pos-inf{background:#e7eeff}.pos-interj{background:#ffe8df}.meaning-body{min-width:0;flex:1}.meaning{white-space:pre-line;font-size:var(--meaning-size);line-height:1.45;color:#15346e}.pos{font-size:var(--pos-size);color:#8299bd;margin-top:2px;line-height:1.4}details{font-size:var(--form-size);margin-top:2px;color:#879ec2;line-height:1.5}summary{cursor:pointer}details p{white-space:pre-line;margin:5px 0 0;color:#617fab;overflow-wrap:anywhere}.bookmark-word{padding:0;background:none;border:0;color:#738fbd;font-size:inherit;margin-left:12px}.bookmark-word[aria-pressed=true]{color:#7255dc}.learn-check{display:inline-flex;align-items:center;gap:9px;font-size:var(--state-size);white-space:nowrap;color:#385785;min-height:30px;cursor:pointer}.covered .meaning{display:none}.pagination{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;padding:18px 0;color:#647fae;font-size:13px}.pagination button,.primary{border:1px solid #e1e9ff;border-radius:10px;background:#fff;color:#244993;padding:9px 15px;box-shadow:0 2px 6px #bed0ff22}.page-jump{display:flex;align-items:center;gap:8px}.page-jump input{width:65px;padding:8px;border:1px solid #dbe5fb;border-radius:9px;text-align:center;color:#183b8b}footer{padding:15px 5px;color:#7e95bc;font-size:12px}footer>div{display:flex;justify-content:flex-end;gap:20px}footer button,.import{padding:0;border:0;background:none;color:inherit;font-size:12px;cursor:pointer}#message:empty{display:none}#empty{text-align:center;padding:35px;color:#7c91b8}dialog{border:1px solid #e0e8ff;border-radius:22px;max-width:460px;width:calc(100% - 32px);padding:30px;color:#193570;box-shadow:0 20px 70px #647aaf33;line-height:1.8;background:#fbfcff}dialog::backdrop{background:#253d7044;backdrop-filter:blur(4px)}dialog p{color:#7286ad}.close-dialog{position:absolute;right:15px;top:8px;border:0;background:none;font-size:28px;color:#7c90b6}dialog input{width:90px;border:1px solid #d9e2fb;padding:8px;border-radius:8px;color:#143b87}.document{max-width:850px;margin:auto;padding:25px;line-height:1.9}.document h1{font-size:28px}.document h2{margin-top:25px}.document a{color:#3155c4;text-decoration:underline}body[data-font-size=standard]{--word-size:30px;--meaning-size:16px;--ipa-size:15px;--pos-size:14px;--form-size:14px;--state-size:15px}body[data-font-size=large]{--word-size:33px;--meaning-size:18px;--ipa-size:17px;--pos-size:16px;--form-size:16px;--state-size:17px}body[data-font-size=extra]{--word-size:36px;--meaning-size:21px;--ipa-size:19px;--pos-size:18px;--form-size:18px;--state-size:19px}
@media(min-width:1600px){.workspace{grid-template-columns:258px minmax(0,1fr);gap:12px}.library{padding:22px 20px 0}.toolbar{gap:40px}td{padding-top:12px;padding-bottom:12px}}
@media(max-width:1250px){.workspace{grid-template-columns:205px minmax(0,1fr);margin:0 18px 18px}.nav-item{padding:0 12px;font-size:16px;gap:10px}.toolbar{gap:12px;flex-wrap:wrap}.search{flex-basis:100%}.filter{flex:1}.filter select{flex:1;width:auto}.motivation{padding:15px}.motivation strong{font-size:16px}.book-art{left:45px}.stat{min-width:120px}.stat .icon{width:34px;height:34px}.speak{right:14px}.pos-badges{min-width:52px}.pos-badge{min-width:52px;padding:6px}.meaning-layout{gap:10px}}
@media(max-width:850px){.workspace{grid-template-columns:1fr;margin:0 12px 15px}.sidebar{padding:6px;min-height:0;border-radius:16px}.sidebar nav{position:static;display:flex;overflow-x:auto;gap:3px}.nav-item{width:auto;min-width:max-content;font-size:13px;height:43px;gap:6px;padding:0 12px}.nav-item .icon{width:18px;height:18px}.nav-item b{font-size:11px;padding:2px 5px}.motivation{display:none}.topbar{padding:12px 18px}.brand{font-size:28px}.subtitle{font-size:11px}.summary{gap:6px}.stat{min-width:90px;padding:9px;gap:6px;border-radius:12px}.stat .icon{width:28px;height:28px;padding:5px}.stat b{font-size:17px}.stat small{font-size:10px}.library{padding:15px 10px 0}.toolbar{padding:0 4px 12px;gap:10px}.list-heading{padding:12px 6px 5px}h2{font-size:18px}th:first-child{width:24%}th:last-child{width:18%}th{padding:10px}td{padding:10px}.speak{position:static;margin-left:8px;width:28px;height:28px;font-size:13px;vertical-align:middle}td:first-child{padding-right:10px}.word{font-size:calc(var(--word-size) - 3px)}.pos-badges{min-width:45px}.pos-badge{min-width:45px;font-size:12px;padding:5px 6px}.view-options{gap:8px}.font-settings button{padding:7px}.page-size,.font-settings{font-size:12px}.hide{font-size:12px}select{font-size:12px}}
@media(max-width:560px){.topbar{align-items:flex-start;flex-wrap:wrap;gap:10px}.summary{width:100%}.stat{flex:1}.stat b{font-size:18px}.subtitle{margin-top:4px}.workspace{margin:0 8px 12px;gap:8px}.filter{font-size:11px;gap:5px;padding-left:6px}.filter .icon{width:16px;height:16px}.filter select{font-size:11px;padding:9px 4px;min-width:0}.search{height:42px}.search input{font-size:13px}.list-heading>div{flex-wrap:wrap}.view-options{justify-content:flex-start}table,tbody,tr,td{display:block;width:100%}thead{display:none}table{border-spacing:0}tr{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:8px 0;background:white;border-radius:16px;padding:12px;gap:9px;box-shadow:0 3px 12px #c4d1f519}td,td:first-child,td:last-child{padding:0;background:none;border-radius:0;box-shadow:none;min-width:0}td:first-child{grid-column:1;grid-row:1}td:nth-child(2){grid-column:1/-1;grid-row:2}td:last-child{grid-column:2;grid-row:1;align-self:center}.phonetic{font-size:var(--ipa-size);margin-top:4px}.meaning-layout{gap:10px}.pos-badges{min-width:48px}.learn-check{font-size:13px;gap:6px}.learn-check input{width:17px;height:17px}.pagination{gap:10px;padding:12px 0}.page-jump{flex-basis:100%;justify-content:center}.pagination button{padding:7px 10px}.font-settings{gap:2px}.font-settings button{padding:6px 8px}.page-size select{font-size:12px;padding:6px}.nav-item{padding:0 10px}.nav-item b{display:none}footer>div{gap:16px;justify-content:center}}

.pos-badge{font-size:max(12px,var(--pos-size))}

/* Pair each POS badge with its own definition row. */
.meaning-layout{display:block}.sense-row{display:grid;grid-template-columns:66px minmax(0,1fr);gap:16px;align-items:stretch;margin-bottom:3px}.sense-row:last-child{margin-bottom:0}.sense-row>.pos-badge{box-sizing:border-box;display:flex;align-items:center;justify-content:center;align-self:stretch;min-width:0;min-height:calc(var(--meaning-size)*1.45);padding:0 8px;font-size:var(--meaning-size);line-height:1.45;border-radius:12px}.sense-row>.meaning{min-width:0;line-height:1.45}.meaning-body>.pos,.meaning-body>details{margin-left:82px}
@media(max-width:1250px){.sense-row{grid-template-columns:52px minmax(0,1fr);gap:10px}.meaning-body>.pos,.meaning-body>details{margin-left:62px}}
@media(max-width:560px){.sense-row{grid-template-columns:48px minmax(0,1fr);gap:10px}.meaning-body>.pos,.meaning-body>details{margin-left:58px}}

/* Styled menus for all vocabulary filters. Native selects remain the data source. */
.custom-select{position:relative;min-width:0}.custom-select>select[hidden]{display:none!important}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:40px;padding:10px 13px;border:1px solid #e3eaff;border-radius:14px;background:linear-gradient(135deg,#fff,#fbfcff);box-shadow:0 3px 8px #b5c8f52e;color:#163b91;font-size:14px;text-align:left;white-space:nowrap;transition:border-color .15s,box-shadow .15s}.select-trigger:hover{border-color:#bdccff;background:#fafbff}.select-trigger.open,.select-trigger:focus-visible{border-color:#9aaeff;box-shadow:0 0 0 3px #e7ebff,0 4px 12px #bccaff33;outline:none}.select-value{overflow:hidden;text-overflow:ellipsis}.select-arrow{flex-shrink:0;width:7px;height:7px;border-right:1.8px solid #4563b2;border-bottom:1.8px solid #4563b2;transform:rotate(45deg);margin:-4px 2px 0 4px;transition:transform .15s}.open .select-arrow{transform:rotate(225deg);margin-top:3px}.filter .custom-select{width:145px}.filter:last-child .custom-select{width:132px}.page-size .custom-select{width:82px}.page-size .select-trigger{min-height:35px;padding:8px 10px;font-size:13px;border-radius:12px}.select-menu{position:fixed;z-index:1000;overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid #dfe6ff;border-radius:15px;background:#fffffffa;box-shadow:0 12px 32px #526da926,0 2px 6px #8097d51a;backdrop-filter:blur(16px);scrollbar-width:thin;scrollbar-color:#cbd6f6 transparent}.select-menu[hidden]{display:none}.select-menu::-webkit-scrollbar{width:6px}.select-menu::-webkit-scrollbar-thumb{background:#cbd6f6;border-radius:8px}.select-option{position:relative;display:block;width:100%;padding:10px 30px 10px 12px;border:0;border-radius:9px;background:none;color:#35518c;font-size:13px;line-height:1.45;text-align:left;font-weight:400;white-space:normal;outline:none}.select-option:hover,.select-option.focused{background:#f0f3ff}.select-option[aria-selected=true]{background:linear-gradient(100deg,#e6edff,#f0eaff);color:#264aca;font-weight:600}.select-option[aria-selected=true]:after{content:'✓';position:absolute;right:11px;top:10px;color:#6074df}.select-option:focus-visible{outline:2px solid #c2ceff;outline-offset:-2px}
@media(max-width:1250px){.filter .custom-select,.filter:last-child .custom-select{flex:1;width:auto}}@media(max-width:560px){.select-trigger{font-size:12px;padding:9px 8px;gap:6px;min-height:36px}.page-size .custom-select{width:76px}.page-size .select-trigger{min-height:32px;font-size:12px}.select-option{padding-top:10px;padding-bottom:10px}.filter .custom-select{min-width:0}.select-menu{border-radius:13px}}

.settings-actions{display:flex;flex-direction:column;gap:10px;margin-top:20px}.settings-actions>button,.settings-actions>.import,.settings-actions>a{display:block;width:100%;box-sizing:border-box;padding:11px 14px;border:1px solid #e0e7ff;border-radius:12px;background:linear-gradient(120deg,#fff,#f3f6ff);color:#36599e;font-family:inherit;font-size:14px;text-align:left;cursor:pointer;line-height:1.5}.settings-actions>button:hover,.settings-actions>.import:hover,.settings-actions>a:hover{background:#edf1ff;border-color:#c8d4ff}footer:has(#message:empty){display:none}

/* Pronunciation icon follows the word in normal text flow. */
.word .speak{position:static;inset:auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin:0 0 0 7px;padding:3px;vertical-align:middle;border:0;border-radius:7px;background:transparent;box-shadow:none;color:#3567ed;line-height:1;flex-shrink:0}.word .speak:hover{background:#eaf0ff;color:#123ee0}.word .speak svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.table-wrap td:first-child{padding-right:16px}@media(max-width:560px){.table-wrap td:first-child{padding-right:0}.word .speak{margin-left:5px}}

/* Explicit expand/collapse icon for word forms. */
.meaning-body>details>summary{display:inline-flex;align-items:center;gap:6px;list-style:none;cursor:pointer;vertical-align:middle;line-height:1.5}.meaning-body>details>summary::-webkit-details-marker{display:none}.meaning-body>details>summary::marker{content:''}.meaning-body>details>summary:before{content:'+';display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:16px;height:16px;flex:0 0 16px;border:1px solid #d6dfff;border-radius:5px;background:#f0f3ff;color:#7286cf;font:14px/1 Arial,sans-serif}.meaning-body>details[open]>summary:before{content:'−';background:#e8edff;color:#526ec6}.meaning-body>details>summary:hover{color:#526fc7}.meaning-body>details>summary:hover:before{border-color:#aebff4;background:#e8eeff}

.audio-chooser{max-width:480px;width:calc(100% - 40px);border:1px solid #dce4ff;border-radius:20px;padding:24px;color:#12346e;background:#f8faff}.audio-chooser::backdrop{background:#172d6344}.audio-chooser button{display:block;width:100%;margin:10px 0;text-align:left;padding:12px;border:1px solid #dce4ff;border-radius:12px;background:white;color:#12346e}.audio-chooser p{line-height:1.6}
/* Unified learning navigation and review workspace. */
[hidden]{display:none!important}.sidebar{display:flex;flex-direction:column;min-height:650px}.sidebar>nav{display:flex;flex-direction:column;gap:8px}.sidebar .settings-nav{margin-top:auto}.learning-panel{padding:26px;background:#ffffffc9;border:1px solid #edf1ff;border-radius:24px;min-height:600px}.learning-panel h1{font-size:24px;margin:0 0 8px}.muted{color:#7184ad;font-size:13px;line-height:1.7}.learning-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:24px 0}.learning-metric{padding:18px;background:linear-gradient(120deg,#edf3ff,#f5f0ff);border:1px solid #e6ecff;border-radius:16px}.learning-metric strong{display:block;font-size:28px;color:#1c43b1;margin-bottom:5px}.learning-metric span{color:#647aa9;font-size:13px}.learning-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.learning-tabs button,.learning-panel button,.setting-line button{border:1px solid #e0e7ff;background:white;color:#244a9a;border-radius:11px;padding:10px 15px;font:inherit;cursor:pointer}.learning-tabs button[aria-pressed=true]{background:#e9eaff;color:#394ee0;border-color:#d9dcff}.learning-panel .primary{background:#365cea;color:white;border-color:#365cea}.learning-panel button:focus-visible{outline:3px solid #9db7ff;outline-offset:3px}.review-card{max-width:730px;margin:24px auto;padding:32px;background:white;border:1px solid #e4eaff;border-radius:22px;text-align:center;box-shadow:0 12px 30px #869de514}.review-word{font-size:42px;margin:24px 0 12px}.review-card .phonetic{margin:16px 0 24px}.review-answer{padding:20px 0;border-top:1px solid #edf1ff;margin-top:24px;text-align:left}.review-answer .sense-row{margin-bottom:10px}.review-feedback{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:20px 0}.review-list{margin-top:18px}.review-list-row{display:flex;align-items:center;gap:18px;justify-content:space-between;background:white;border:1px solid #edf1ff;border-radius:13px;padding:13px 18px;margin-bottom:8px}.review-list-row>div:first-child{flex:1}.review-list-row small{display:block;margin-top:4px}.learning-panel .text-button{background:transparent;border-color:transparent;font-size:13px;color:#7589b4}.learning-empty{padding:44px 20px;text-align:center;color:#778bb5;line-height:1.9}.start-review{margin-bottom:10px}.review-explanation{margin-top:24px;color:#7a8db4;font-size:13px;line-height:1.8}.progress-card{padding:22px;border:1px solid #e6ecff;border-radius:18px;background:white}.progress-card progress{display:block;width:100%;height:12px;accent-color:#5573ec;margin:20px 0}.setting-line{display:flex;align-items:center;gap:10px;margin:18px 0;flex-wrap:wrap;font-size:14px}.setting-line input[type=number]{width:85px;padding:8px;border:1px solid #dce4ff;border-radius:8px}.review-hint{margin:5px 0;font-size:11px;color:#7e8fb0}.learning-panel .sense-row{grid-template-columns:65px minmax(0,1fr)}
@media(max-width:800px){.sidebar{min-height:0}.sidebar .settings-nav{margin-top:0}.learning-panel{padding:18px;min-height:400px}.review-card{padding:22px 14px}.review-word{font-size:34px}.learning-metrics{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.learning-metric{padding:12px}.learning-metric strong{font-size:23px}.review-list-row{gap:8px;padding:12px}.review-feedback{flex-direction:column}}

/* Keep artwork near the original sidebar position, independent of page height. */
.sidebar>.motivation{position:sticky;top:calc(100vh - 310px);flex-shrink:0;margin-top:235px;width:100%}
.header-settings{display:inline-flex;align-items:center;justify-content:center;gap:8px;align-self:center;padding:11px 14px;border:1px solid #dfe7ff;border-radius:13px;background:#ffffffc9;color:#3254a5;font-size:14px;white-space:nowrap;box-shadow:0 3px 10px #b7c9f229}.header-settings:hover{background:#edf2ff}.header-settings .icon{width:21px;height:21px}
@media(max-width:800px){.sidebar>.motivation{position:relative;top:auto;margin-top:24px}.header-settings{padding:9px 11px}}

/* Settings belongs to the upper-right of the main content card. */
.main-content{position:relative}.main-content>.header-settings{position:absolute;z-index:5;top:20px;right:24px}.main-content>.library{padding-top:78px}.main-content>.learning-panel{padding-top:26px}.main-content>.learning-panel>h1,.main-content>.learning-panel>h1+.muted{padding-right:110px}
@media(max-width:800px){.main-content>.header-settings{top:16px;right:18px}.main-content>.library{padding-top:70px}.main-content>.learning-panel>h1{padding-right:95px}.main-content>.learning-panel>h1+.muted{padding-right:95px}}

/* Only the learning-progress page has a settings action. */
.main-content>.library{padding-top:22px}@media(max-width:800px){.main-content>.library{padding-top:22px}}
/* Learning progress dashboard: pastel cards, goal ring and seven-day comparison. */
.stats-view{background:linear-gradient(130deg,#fbfdffed,#f8fbffed);min-height:0;padding:26px 22px 22px}.stats-view>h1{font-size:27px;font-weight:700;letter-spacing:.3px;margin-bottom:4px}.stats-view>h1+.muted{font-size:12px;margin-top:0;margin-bottom:18px}.stats-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:12px 0 20px}.stats-metric{position:relative;isolation:isolate;overflow:hidden;border-radius:16px;padding:16px 20px 17px;min-height:132px;display:flex;flex-direction:column;align-items:flex-start}.stats-metric.blue{background:linear-gradient(115deg,#edf4ff,#edf3ff);--accent:#4e76ff;--decor:#cfddff}.stats-metric.green{background:linear-gradient(115deg,#f4fce9,#f5fce8);--accent:#55bc38;--decor:#e0f7ae}.stats-metric.pink{background:linear-gradient(115deg,#fff0fc,#feeffa);--accent:#ef75cc;--decor:#fbc7ef}.stats-metric.violet{background:linear-gradient(115deg,#f3f0ff,#f5f2ff);--accent:#8b7ced;--decor:#d9d2ff}.stats-icon{display:grid;place-items:center;width:35px;height:35px;margin-bottom:9px;border-radius:50%;background:color-mix(in srgb,var(--accent) 12%,white);color:var(--accent)}.stats-icon svg{width:21px;height:21px}.stats-metric>strong{font-size:27px;line-height:1.25;color:#16337b;position:relative;z-index:1}.stats-metric>.metric-label{font-size:12px;color:#7b8eb7;margin-top:3px;position:relative;z-index:1}.stats-decoration{position:absolute;right:-4px;bottom:4px;width:88px;height:88px;color:var(--decor);transform:rotate(13deg);z-index:0;opacity:.78}.stats-decoration svg{width:100%;height:100%;stroke-width:1.6;fill:currentColor}.stats-metric.green .stats-decoration svg,.stats-metric.pink .stats-decoration svg{fill:none;stroke-width:2.8}.stats-metric.green .stats-decoration{transform:rotate(-9deg);right:8px}.stats-goal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;background:linear-gradient(115deg,#fff,#fcfdff);border:1px solid #edf1ff;border-radius:17px;padding:22px 24px;gap:20px;margin-bottom:20px;box-shadow:0 6px 22px #cbd9f413}.goal-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.stats-view h3{font-size:17px;font-weight:600;margin:0 0 14px}.goal-heading .goal-percentage{align-self:flex-end;font-size:19px;color:#5c79ff;margin-bottom:3px}.goal-track{height:15px;border-radius:20px;background:#edf0f6;overflow:hidden}.goal-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#8e9aff,#6684ff);box-shadow:0 3px 8px #8a9aff44;transition:width .3s}.goal-caption{font-size:11px;color:#8b9ab9;margin:9px 0 15px}.stats-view .goal-main .primary{padding:10px 17px;border:0;border-radius:11px;font-size:12px;box-shadow:0 4px 9px #6c89f133;background:linear-gradient(110deg,#4f6fff,#365aec)}.goal-circle{position:relative;width:100%;height:132px;border-left:1px solid #eef1fa;display:grid;place-items:center;padding-left:18px}.goal-ring{width:128px;height:128px}.goal-ring svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}.goal-ring circle{fill:none;stroke-width:13}.ring-track{stroke:#edf0f6}.ring-fill{stroke:#7b91ff;stroke-linecap:round}.ring-label{position:absolute;inset:0 0 0 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.ring-label strong{color:#1c3980;font-size:22px}.ring-label small{color:#8c9dbd;font-size:11px}.goal-encouragement{border-left:1px solid #f0f3fa;padding-left:18px;color:#899bc0}.encouragement-art{height:73px;position:relative;max-width:125px;margin:auto}.note-illustration{position:absolute;width:54px;height:62px;top:3px;left:12px;color:#dbe7ff;transform:rotate(-13deg);filter:drop-shadow(2px 4px 3px #dce7fc55)}.note-illustration svg{width:100%;height:100%;fill:#f0f6ff;stroke:#e0eaff;stroke-width:2}.little-flower{position:absolute;top:4px;right:17px;font-size:29px;color:#e4faaa}.little-star{position:absolute;right:0;bottom:6px;color:#eef3ff;font-size:28px}.goal-encouragement p{font-size:11px;line-height:1.8;white-space:pre-line;margin:7px 0 0;text-align:center}.stats-week{padding:20px 22px;border:1px solid #edf1ff;border-radius:17px;background:white}.week-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:9px}.week-header h3{margin:0}.week-legend{display:flex;gap:20px;color:#8093ba;font-size:10px}.week-legend span{display:inline-flex;align-items:center;gap:7px}.week-legend span:before{content:'';width:8px;height:8px;border-radius:50%;background:#6382ff}.week-legend .legend-review:before{background:#ee91da}.week-row{display:grid;grid-template-columns:94px 56px 86px 86px minmax(90px,1fr);align-items:center;gap:9px;min-height:32px;padding:5px 8px;border-radius:7px;font-size:11px;color:#7086b1}.week-row:nth-child(odd){background:#f5f8ff}.week-date{font-variant-numeric:tabular-nums;color:#607daf}.week-new-text b{color:#6c82e9;font-weight:500}.week-review-text b{color:#d88eca;font-weight:500}.week-bars{padding-left:15px;display:flex;flex-direction:column;gap:3px}.week-bar-row{display:flex;align-items:center;gap:9px;height:6px}.week-track{height:6px;flex:1;background:#eef1f7;border-radius:7px;overflow:hidden}.week-fill{height:100%;border-radius:7px}.week-fill.new{background:linear-gradient(90deg,#aab7ff,#859cff)}.week-fill.review{background:linear-gradient(90deg,#f7c8ef,#ecb0e5)}.week-bar-value{width:20px;text-align:right;font-size:9px;color:#7f91b8;font-variant-numeric:tabular-nums}
@media(min-width:1500px){.stats-metric{min-height:145px}.stats-goal{grid-template-columns:repeat(2,minmax(0,1fr))}.week-row{grid-template-columns:110px 70px 115px 115px minmax(100px,1fr)}}
@media(max-width:1100px){.stats-goal{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.goal-encouragement{display:none}.stats-metric{padding:14px;min-height:120px}.stats-decoration{width:65px;height:65px;opacity:.6}.stats-metric>strong{font-size:24px}.week-row{grid-template-columns:86px 40px 68px 68px minmax(75px,1fr);gap:5px}.week-bars{padding-left:2px}.stats-metrics{gap:10px}}
@media(max-width:650px){.stats-view{padding:18px 14px}.stats-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px}.stats-metric{min-height:126px}.stats-goal{padding:18px 14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.goal-circle{height:104px;padding-left:8px}.goal-ring{width:100px;height:100px}.ring-label{left:8px}.ring-label strong{font-size:19px}.stats-view h3{font-size:15px}.goal-heading .goal-percentage{font-size:16px}.goal-caption{line-height:1.6}.stats-week{padding:16px 10px}.week-header{align-items:flex-start}.week-legend{gap:9px;font-size:9px}.week-row{grid-template-columns:76px 30px 1fr 1fr;gap:5px;padding:7px 6px;font-size:10px}.week-bars{grid-column:1/-1;padding:2px 0 2px 81px}.stats-view>h1{font-size:23px}.stats-view .goal-main .primary{padding:9px 10px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.goal-fill{transition:none}}
/* Overall goal is independent of today's goal. */
.ring-label{gap:2px}.ring-label small{font-size:10px}.ring-label .total-goal-count{font-size:9px;color:#7089b9}.week-legend .legend-target:before{background:#e5e8ef}.week-track{position:relative}.week-track.has-target{background:transparent;overflow:visible}.week-target{position:absolute;inset:0 auto 0 0;border-radius:7px;background:#e5e8ef}.week-track .week-fill{position:relative;z-index:1}.week-fill.new{background:linear-gradient(90deg,#a59bff,#8278f5)}.week-target-note{font-size:10px;color:#8899ba;line-height:1.7;margin:13px 0 0}.week-legend .legend-new:before{background:#9083fa}@media(max-width:650px){.week-legend{gap:7px;flex-wrap:wrap;justify-content:flex-end}}
/* Quiet, focused recall cards. */
.learning-panel.review-focus{min-height:620px;background:linear-gradient(135deg,#fcfdff,#f7f9ff);padding:22px 26px}.focus-review-top{display:flex;justify-content:space-between;align-items:center}.focus-review-count{font-size:13px;color:#8a9bbd;font-variant-numeric:tabular-nums;padding-right:12px}.learning-panel .focus-review-top .text-button{padding:8px 10px}.focus-review-card{max-width:760px;min-height:440px;margin:18px auto 32px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;background:transparent;box-shadow:none;padding:32px 25px}.focus-word-line{display:flex;align-items:center;justify-content:center;gap:12px;max-width:100%}.focus-word-line .review-word{margin:0;font-size:46px;overflow-wrap:anywhere;line-height:1.25}.learning-panel .focus-word-line .speak{position:static;inset:auto;display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;padding:5px;border:0;background:transparent;border-radius:10px;box-shadow:none;color:#5578ec}.focus-word-line .speak svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.focus-word-line .speak:hover{background:#eaf0ff}.focus-review-card .phonetic{margin:14px 0 38px;font-size:17px}.learning-panel .reveal-review{min-width:160px;padding:13px 25px;border-radius:13px}.focus-review-card .review-answer{width:100%;max-width:570px;border-top:0;padding:0;margin:0 0 20px;font-size:var(--meaning-size);line-height:1.7}.focus-review-card .review-answer .sense-row{gap:12px;align-items:start}.focus-review-card .review-feedback{width:100%;margin:18px 0 0;gap:12px}.focus-review-card .review-feedback button{flex:1;max-width:170px;padding:13px 16px;border-radius:13px}.focus-review-card .review-feedback button:first-child{color:#bc677d;background:#fff3f6;border-color:#f9e2e8}.focus-review-card .review-feedback button:nth-child(2){color:#8f78b0;background:#f5f1ff;border-color:#e9e0fb}.review-finished{min-height:480px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}.review-finished-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#e8eeff;color:#6281eb;font-size:32px}.review-finished h2{font-size:23px}.review-finished p{margin:0 0 14px}
@media(max-width:650px){.learning-panel.review-focus{min-height:65vh;padding:14px}.focus-review-card{padding:25px 8px;margin-top:30px;min-height:380px}.focus-word-line .review-word{font-size:37px}.focus-review-card .review-feedback{position:sticky;bottom:12px;flex-direction:row;padding:10px 0;background:#f8faffee;backdrop-filter:blur(8px);gap:7px}.focus-review-card .review-feedback button{font-size:13px;padding:13px 8px}.focus-review-card .review-answer{font-size:var(--meaning-size)}}
/* Recall the English spelling from the visible Chinese meaning. */
.spelling-card{background:linear-gradient(135deg,#fff,#fcfdff);border:1px solid #e8edff;box-shadow:0 10px 35px #9db3ed12;border-radius:24px;min-height:420px;padding:45px 30px;max-width:800px;margin-top:35px}.spelling-boxes{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px;width:100%;margin:6px 0 36px}.letter-box{display:block;width:44px;height:54px;min-width:0;flex:0 0 44px;text-align:center;border:1.5px solid #dce4fb;border-radius:11px;background:#f8faff;color:#26499e;font-size:27px;font-weight:600;padding:0;caret-color:#6683f3;box-shadow:0 2px 5px #8ba8ec0a;transition:border-color .15s,background .15s}.letter-box:focus{outline:none;border-color:#8399ff;background:white;box-shadow:0 0 0 3px #e9edff}.letter-box.letter-wrong{border-color:#e8a0b1;background:#fff4f6}.letter-box.letter-correct{border-color:#c3dccc;background:#f2fbf5;color:#3f8d65}.spelling-separator{color:#a0afd0;font-size:25px;padding:0 2px}.spelling-card .spelling-meaning{margin:0;max-width:570px;padding:0;border:0}.spelling-meaning .sense-row{margin:9px 0}.spelling-feedback{min-height:23px;margin:20px 0 8px;color:#bd6c82;font-size:13px;line-height:1.7}.spelling-feedback.spelling-success{color:#6b8fa4}.spelling-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:14px;margin-top:9px}.spelling-actions .primary{min-width:150px;padding:12px 22px;border-radius:12px}.spelling-pronunciation{display:flex;align-items:center;gap:10px;margin-top:20px}.spelling-card .spelling-pronunciation .phonetic{margin:0;font-size:14px}.spelling-pronunciation .audio-review{border:0;background:none;padding:6px}
@media(max-width:650px){.spelling-card{padding:32px 15px;min-height:390px;margin-top:22px}.spelling-boxes{gap:6px;margin-bottom:27px}.letter-box{width:34px;flex-basis:34px;height:45px;font-size:23px;border-radius:8px}.spelling-separator{font-size:20px}.spelling-actions{width:100%;gap:10px}.spelling-actions .primary{min-width:145px}}
/* Compact spelling card matching the reference. */
.spelling-card{position:relative;justify-content:flex-start;min-height:355px;max-width:800px;padding:25px 30px 32px;margin:4px auto 30px;background:linear-gradient(125deg,#fff,#fcfdff)}.spelling-card-header{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:28px}.spelling-card-header h2{font-size:18px;font-weight:700;color:#183674}.spelling-card-header .focus-review-count{font-size:12px;padding:0;color:#8194c3}.spelling-boxes{margin:0 0 22px;gap:9px}.letter-box{width:64px;flex-basis:64px;height:65px;border-radius:12px;font-size:34px;background:#fcfdff;border-width:1px}.letter-box:focus{border-color:#8a9cff;box-shadow:0 0 0 2px #e0e6ff}.spelling-card .spelling-pronunciation{margin:0 0 21px;gap:9px}.spelling-card .spelling-pronunciation .phonetic{font-size:13px;margin:0}.learning-panel .spelling-pronunciation .audio-review{display:grid;place-items:center;width:29px;height:29px;padding:6px;border:0;border-radius:50%;background:#edf2ff;color:#4674f7}.spelling-pronunciation .audio-review svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.spelling-card .spelling-meaning{width:auto;min-width:210px;max-width:570px;font-size:16px;line-height:1.6;margin:0 auto}.spelling-card .spelling-meaning .sense-row{grid-template-columns:51px minmax(0,1fr);gap:10px;margin:5px 0}.spelling-meaning .pos-badge{min-width:51px;padding:3px 8px;font-size:12px}.spelling-feedback{min-height:18px;font-size:12px;margin:13px 0 6px}.spelling-actions{gap:12px;margin-top:7px}.learning-panel .spelling-actions button{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;width:120px;min-width:120px;height:39px;padding:0 12px;border-radius:10px;font-size:13px;line-height:1}.learning-panel .spelling-actions .text-button{background:#f5f7ff;color:#8092ba;border:1px solid #e9eeff}.learning-panel .spelling-actions .text-button:hover{background:#edf1ff}.learning-panel .spelling-actions .primary{background:linear-gradient(110deg,#416bff,#3157f5)}
@media(max-width:650px){.spelling-card{padding:22px 18px 28px;min-height:340px;margin-top:4px}.spelling-card-header{margin-bottom:24px}.spelling-card-header h2{font-size:17px}.letter-box{width:46px;flex-basis:46px;height:54px;font-size:29px}.spelling-boxes{gap:7px}.spelling-card .spelling-meaning{min-width:0;width:100%}.learning-panel .spelling-actions button{width:112px;min-width:112px;height:38px}}
/* Remove the extra shell around the two filter groups. */
.toolbar>.filter{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;gap:10px}
/* Lighter strokes for the calendar and memory-card decorations. */
.stats-metric.green .stats-decoration svg,.stats-metric.pink .stats-decoration svg{stroke-width:1.5}
/* Use consistent outline treatment for all four decorative icons. */
.stats-metric .stats-decoration svg{fill:none;stroke-width:1.5}
.practice-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:20px 0;padding:18px;background:#f6f8ff;border:1px solid #e8edff;border-radius:15px}.practice-tools strong{font-size:16px}.practice-tools p{margin:6px 0 0}.practice-tools-actions{display:flex;gap:10px;flex-shrink:0}.memory-stage-heading{font-size:15px;margin:25px 0 8px;color:#506ba6}@media(max-width:650px){.practice-tools{align-items:flex-start;flex-direction:column}.practice-tools-actions{width:100%}.practice-tools-actions button{flex:1}}
/* Memory dashboard inspired by the supplied pastel reference. */
.learning-panel.review-dashboard{position:relative;isolation:isolate;overflow:hidden;padding:32px 28px 28px;min-height:620px;background:radial-gradient(ellipse at 96% 0,#edf2ffb0,transparent 40%),linear-gradient(130deg,#ffffffee,#f8fbffee);border-color:#fff;border-radius:24px}.review-dashboard>h1{position:relative;z-index:1;font-size:40px;line-height:1.2;font-weight:750;color:#102361;letter-spacing:1px;margin:0 0 10px;padding-left:23px}.review-dashboard>h1:before{content:'';position:absolute;left:0;top:6px;bottom:3px;width:13px;background:linear-gradient(#e9f2ff,#dceaff);border-radius:12px}.review-dashboard>h1+.muted{position:relative;z-index:1;margin:0 0 26px;padding-left:23px;padding-right:230px;font-size:16px;color:#7c90b9}.review-dashboard .learning-metrics{position:relative;z-index:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 25px}.review-metric{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:19px;padding:22px;min-height:110px;border-radius:16px;box-shadow:none}.review-metric.blue{background:linear-gradient(120deg,#f3f7ff,#edf4ff);border-color:#e1eaff;--metric-accent:#367eea;--metric-circle:#d8e8ff;--metric-decor:#d8e6ff}.review-metric.green{background:linear-gradient(120deg,#f3fcf7,#effbf7);border-color:#e0f3e9;--metric-accent:#4dc18d;--metric-circle:#d5f6e5;--metric-decor:#c9efe2}.review-metric.pink{background:linear-gradient(120deg,#fff6fd,#fbf3fb);border-color:#f6e4f6;--metric-accent:#e65bb3;--metric-circle:#fbdcf5;--metric-decor:#efdeef}.review-metric-icon{display:grid;place-items:center;width:57px;height:57px;flex:0 0 57px;border-radius:50%;background:var(--metric-circle);color:var(--metric-accent)}.review-metric-icon svg{width:33px;height:33px;stroke-width:2}.review-metric-body{position:relative;z-index:1}.review-metric-body strong{font-size:34px;line-height:1.15;font-weight:700;color:#102361;margin:0 0 5px}.review-metric-body span{font-size:15px;color:#506a9a;white-space:nowrap}.review-metric-art{position:absolute;right:-5px;bottom:0;z-index:-1;color:var(--metric-decor)}.review-metric.blue .review-metric-art{width:105px;height:58px;background:var(--metric-decor);border-radius:100% 0 0 0;opacity:.65}.review-metric.green .review-metric-art{right:17px;bottom:10px;display:flex;align-items:flex-end;gap:9px;opacity:.65}.review-metric-art i{display:block;width:16px;height:27px;background:var(--metric-decor);border-radius:12px}.review-metric-art i:nth-child(2){height:41px}.review-metric-art i:nth-child(3){height:57px}.review-metric.pink .review-metric-art{right:14px;bottom:-13px;transform:rotate(-18deg);opacity:.5}.review-metric.pink .review-metric-art svg{width:88px;height:88px;fill:currentColor;stroke:none}.review-dashboard .learning-tabs{position:relative;z-index:1;gap:10px;margin:0 0 24px}.review-dashboard .learning-tabs button{min-width:98px;padding:10px 18px;font-size:15px;border:1px solid #dde6ff;border-radius:12px;box-shadow:0 2px 5px #c2ceeb0a;color:#3a548b}.review-dashboard .learning-tabs button[aria-pressed=true]{background:linear-gradient(110deg,#e7e7ff,#e3e2ff);border-color:#d2ceff;color:#373bd6;font-weight:600;box-shadow:inset 0 1px 5px #c5c7ff33}.review-dashboard .memory-stage-heading{position:relative;margin:26px 0 13px;padding-left:23px;font-size:19px;font-weight:650;color:#162d68}.review-dashboard .memory-stage-heading:before{content:'';position:absolute;left:0;top:3px;bottom:3px;width:9px;border-radius:8px;background:linear-gradient(#a99dff,#c7bdff)}.review-dashboard .review-list{margin-top:10px}.review-dashboard .review-list-row{padding:12px 21px;border-radius:15px;border:1px solid #e7edff;background:linear-gradient(105deg,#fff,#ffffffec);box-shadow:0 4px 16px #bdcff414;margin-bottom:9px;min-height:69px}.review-dashboard .review-list-row strong{font-size:18px;font-weight:650;color:#13275f}.review-dashboard .review-list-row small{font-size:12px;margin-top:2px;color:#8a9ec1}.review-row-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}.review-row-actions svg{display:block;width:21px;height:21px}.learning-panel .review-row-actions .audio-review{display:grid;place-items:center;background:linear-gradient(#edf4ff,#e8f1ff);border:1px solid #e0edff;border-radius:14px;color:#2874e5;width:49px;height:37px;padding:7px 12px}.review-action-divider{width:1px;height:22px;background:#dce4f5}.learning-panel .review-row-actions .text-button{display:inline-flex;flex-direction:row-reverse;align-items:center;gap:7px;border:0;border-radius:15px;background:#f1f4f9;color:#5b6f95;font-size:13px;padding:9px 13px}.review-row-actions .text-button svg{width:18px;height:18px}.review-hero-art{position:absolute;right:30px;top:7px;width:245px;height:155px;pointer-events:none;z-index:0}.review-hero-art:before{content:'';position:absolute;inset:25px -25px -12px -35px;background:linear-gradient(100deg,#e9e2ff88,#e8f4ff55);border-radius:80px 80px 15px 25px;transform:rotate(17deg)}.hero-card{position:absolute;display:block;width:85px;height:119px;right:63px;top:6px;border-radius:13px;transform:rotate(18deg);box-shadow:inset 2px 1px 3px #fff9,3px 4px 8px #b8c8f338;border:1px solid #fff}.hero-card.mint{right:4px;top:27px;background:linear-gradient(130deg,#bdeee5,#c4efeb);transform:rotate(23deg)}.hero-card.lavender{right:28px;top:31px;background:linear-gradient(120deg,#c9c1ff,#d8d0ff);transform:rotate(21deg)}.hero-card.front{background:linear-gradient(135deg,#fff,#f6faff);display:flex;align-items:center;flex-direction:column;padding:17px 12px}.hero-card b{font-size:33px;font-weight:700;color:#a6bfff;font-style:normal;line-height:1.3}.hero-card.front span{display:block;height:7px;width:45px;background:#e5eeff;border-radius:10px;margin-top:13px}.hero-card.front span:last-child{width:27px;margin-top:8px;align-self:flex-start;margin-left:6px}.hero-spark{position:absolute;width:6px;height:21px;border-radius:8px;background:#a9eadd;left:36px;top:17px;transform:rotate(-20deg)}.hero-spark.two{left:19px;top:35px;transform:rotate(-49deg);height:18px}.hero-spark.three{left:auto;right:0;top:93px;background:#f4b4df;transform:rotate(48deg);height:19px}
@media(max-width:1100px){.review-dashboard .learning-metrics{gap:11px}.review-metric{padding:17px 14px;gap:12px}.review-metric-icon{width:45px;height:45px;flex-basis:45px}.review-metric-icon svg{width:27px;height:27px}.review-metric-body strong{font-size:29px}.review-metric-body span{font-size:13px}.review-hero-art{transform:scale(.85);transform-origin:top right}.review-dashboard>h1{font-size:34px}.review-dashboard>h1+.muted{font-size:14px}}
@media(max-width:650px){.learning-panel.review-dashboard{padding:24px 15px}.review-dashboard>h1{font-size:29px;padding-left:18px}.review-dashboard>h1:before{width:9px}.review-dashboard>h1+.muted{padding-left:18px;padding-right:50px;font-size:12px;margin-bottom:22px}.review-hero-art{right:-6px;top:6px;transform:scale(.55);opacity:.6}.review-dashboard .learning-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.review-metric{padding:12px 8px;display:block;min-height:111px}.review-metric-icon{width:30px;height:30px;margin-bottom:7px}.review-metric-icon svg{width:19px;height:19px}.review-metric-body strong{font-size:24px}.review-metric-body span{font-size:10px}.review-metric-art{opacity:.4!important}.review-dashboard .learning-tabs{gap:7px}.review-dashboard .learning-tabs button{min-width:0;flex:1;padding:10px;font-size:13px}.review-dashboard .memory-stage-heading{font-size:16px}.review-dashboard .review-list-row{padding:11px 13px;gap:8px}.review-dashboard .review-list-row strong{font-size:17px}.review-dashboard .review-list-row small{font-size:11px}.review-row-actions{gap:8px}.learning-panel .review-row-actions .audio-review{width:36px;height:34px;padding:7px}.review-action-divider{height:18px}.learning-panel .review-row-actions .text-button{padding:8px 10px;font-size:12px;gap:4px}}
/* Match the learning-progress typography hierarchy. */
.review-dashboard>h1{font-size:27px;font-weight:700;letter-spacing:.3px;margin-bottom:4px}.review-dashboard>h1:before{width:9px;top:4px;bottom:2px}.review-dashboard>h1+.muted{font-size:12px;line-height:1.7;margin-top:0;margin-bottom:18px}.review-metric-body strong{font-size:27px;font-weight:700;line-height:1.25}.review-metric-body span{font-size:12px}.review-dashboard .learning-tabs button{font-size:14px;font-weight:400}.review-dashboard .learning-tabs button[aria-pressed=true]{font-weight:600}.review-dashboard .memory-stage-heading{font-size:17px;font-weight:600}.review-dashboard .review-list-row strong{font-size:16px;font-weight:600}.review-dashboard .review-list-row small{font-size:12px}.learning-panel .review-row-actions .text-button{font-size:12px}
@media(max-width:1100px){.review-dashboard>h1{font-size:27px}.review-dashboard>h1+.muted{font-size:12px}.review-metric-body strong{font-size:24px}.review-metric-body span{font-size:12px}}
@media(max-width:650px){.review-dashboard>h1{font-size:23px}.review-dashboard>h1+.muted{font-size:12px}.review-metric-body strong{font-size:23px}.review-metric-body span{font-size:10px}.review-dashboard .learning-tabs button{font-size:13px}.review-dashboard .memory-stage-heading{font-size:15px}.review-dashboard .review-list-row strong{font-size:15px}.review-dashboard .review-list-row small{font-size:11px}}
/* Match the review heading's vertical accent and text alignment. */
.stats-view>h1{position:relative;padding-left:23px}.stats-view>h1:before{content:'';position:absolute;left:0;top:4px;bottom:2px;width:9px;border-radius:12px;background:linear-gradient(#e9f2ff,#dceaff)}.stats-view>h1+.muted{padding-left:23px}@media(max-width:650px){.stats-view>h1,.stats-view>h1+.muted{padding-left:18px}}
/* Softer outlined book decoration on the review total card. */
.review-metric.pink .review-metric-art{right:16px;bottom:5px;transform:rotate(-10deg);opacity:.65;color:#e9c9e7}.review-metric.pink .review-metric-art svg{width:76px;height:76px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
/* Soft two-page silhouette, matching the supplied reference. */
.review-metric.pink .review-metric-art{right:17px;bottom:-10px;width:83px;height:75px;transform:rotate(-17deg);opacity:.7;color:#eed9ed}.review-metric.pink .review-metric-art>span{display:none}.review-metric.pink .review-metric-art:before,.review-metric.pink .review-metric-art:after{content:'';position:absolute;bottom:0;width:38px;height:66px;background:linear-gradient(160deg,#ecd9ee,#f3e5f3);border-radius:17px 17px 2px 2px}.review-metric.pink .review-metric-art:before{left:1px;transform:skewY(9deg);transform-origin:bottom right}.review-metric.pink .review-metric-art:after{right:1px;height:72px;transform:skewY(-9deg);transform-origin:bottom left}
/* Lower the sidebar illustration slightly, keeping a comfortable bottom gap. */
.sidebar>.motivation{top:calc(100vh - 270px);margin-top:275px}@media(max-width:800px){.sidebar>.motivation{top:auto;margin-top:24px}}
/* Sidebar artwork is positioned by the available space, not a fixed offset. */
.sidebar{position:relative}.sidebar>.motivation{position:absolute;top:auto;bottom:12px;left:12px;width:calc(100% - 24px);margin:0;flex-shrink:0}@media(max-width:800px){.sidebar>.motivation{display:none}}

/* Artwork bottom edge aligns exactly with the sidebar bottom edge. */
.sidebar>.motivation{bottom:0}
/* Keep the daily-goal block within the left half of the goal card. */
@media(min-width:1101px){.stats-goal{grid-template-columns:repeat(2,minmax(0,1fr))}.goal-main{min-width:0}.goal-main .goal-track{width:100%}}
@media(min-width:651px) and (max-width:1100px){.stats-goal{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
/* Reserve the left area for dates/counts; align weekly bars in the right section. */
@media(min-width:651px){.week-row{grid-template-columns:minmax(76px,1fr) minmax(30px,.6fr) minmax(60px,.9fr) minmax(60px,.9fr) minmax(0,2.6fr) minmax(0,3.6fr)}.week-bars{grid-column:6;padding-left:0}}
/* Sidebar encouragement card based on the supplied illustrated reference. */
.sidebar>.motivation{height:230px;padding:20px 17px;border-radius:20px;background:radial-gradient(ellipse at 15% 12%,#f1f7ff,transparent 65%),linear-gradient(135deg,#e8f2ff,#e0edff);box-shadow:0 6px 18px #a5c0ed19;color:#2452d9;overflow:hidden}.motivation strong{position:relative;z-index:2;display:block;font-size:16px;line-height:1.5;font-weight:700;letter-spacing:.2px}.motivation-caption{position:relative;z-index:2;margin:7px 0 0;font-size:11px;line-height:1.7;color:#8397bf}.motivation-flower{position:absolute;right:15px;top:28px;font-size:34px;line-height:1;color:#ebffa7;transform:rotate(12deg)}.motivation-leaf{position:absolute;right:13px;top:85px;width:26px;height:17px;border-radius:90% 5% 90% 5%;background:#d4e6ff;transform:rotate(-17deg);opacity:.8}.motivation-sprig{position:absolute;left:15px;bottom:14px;width:39px;height:60px;border-left:2px solid #d5e6ff;transform:rotate(12deg)}.motivation-sprig i{position:absolute;width:17px;height:27px;border-radius:90% 5% 90% 5%;background:#d3e4fc;opacity:.9}.motivation-sprig i:nth-child(1){left:0;top:-6px;transform:rotate(-10deg)}.motivation-sprig i:nth-child(2){left:-16px;top:14px;transform:rotate(-75deg)}.motivation-sprig i:nth-child(3){left:2px;top:24px;transform:rotate(13deg)}.motivation-sprig i:nth-child(4){left:-14px;top:37px;transform:rotate(-79deg);width:13px;height:20px}.motivation .book-art{left:auto;right:31px;bottom:11px;width:105px;height:105px;transform:rotate(14deg)}.motivation .book-art i{border-radius:11px;border:2px solid #c6d7ff;box-shadow:inset 5px 0 6px #ffffff66,4px 6px 9px #849de648}.motivation .book-art i:first-child{transform:translate(23px,-9px);background:linear-gradient(130deg,#e1c5ff,#eacbff)}.motivation .book-art i:nth-child(2){transform:translate(12px,-4px);background:linear-gradient(130deg,#e8d8ff,#e7c6ff)}.motivation .book-art i:last-child{background:linear-gradient(135deg,#c4d1ff,#8fa8fa);font-size:36px;color:#f8faff}
/* More breathing room between the encouragement copy and the illustration. */
.sidebar>.motivation{height:280px;padding-top:15px}.motivation-caption{margin-top:6px}.motivation .book-art{bottom:13px}.motivation-flower{top:24px}.motivation-leaf{top:112px}
/* Balance card height while preserving space for the caption. */
.sidebar>.motivation{height:255px}.motivation .book-art{width:98px;height:98px;bottom:10px}
/* Compact review metrics with explicitly colored icon strokes. */
.review-metric{min-height:92px;padding:15px 20px}.review-metric-icon{width:46px;height:46px;flex-basis:46px}.review-metric-icon svg{width:27px;height:27px;stroke:var(--metric-accent);stroke-width:1.8}.review-metric-icon span{display:grid;place-items:center}.review-metric-body strong{font-size:25px}.review-metric.blue .review-metric-icon{color:#397de9}.review-metric.green .review-metric-icon{color:#36b985}.review-metric.pink .review-metric-icon{color:#dd5eb0}.review-metric.green .review-metric-icon svg{fill:#ffffff50}.review-metric.blue .review-metric-icon svg,.review-metric.pink .review-metric-icon svg{fill:#ffffff40}
@media(max-width:1100px){.review-metric{min-height:88px;padding:14px;gap:12px}.review-metric-icon{width:40px;height:40px;flex-basis:40px}.review-metric-icon svg{width:25px;height:25px}}
@media(max-width:650px){.review-metric{min-height:98px;padding:10px 8px}.review-metric-icon{width:27px;height:27px;margin-bottom:5px}.review-metric-icon svg{width:18px;height:18px}.review-metric-body strong{font-size:22px}}
.account-loading .workspace{visibility:hidden}#appLoading{position:fixed;inset:45% 20px auto;text-align:center;color:#6b83b5;z-index:20}.account-entry{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:108px}.account-entry>button{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border:1px solid #dce5ff;border-radius:13px;background:#ffffffd9;color:#3557a6;max-width:210px;font-size:13px}.account-entry>button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-entry svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}.account-entry small{font-size:10px;color:#8396bd;min-height:12px}.auth-dialog{max-height:calc(100vh - 40px);overflow:auto}.auth-dialog form{display:flex;flex-direction:column;gap:14px;margin-top:20px}.auth-dialog form>label{display:block;font-size:13px;color:#526d9d}.auth-dialog form input{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:10px 12px;border:1px solid #dce5fb;border-radius:10px;background:white;font-size:14px}.auth-dialog .remember-login{display:flex;align-items:center;gap:8px}.auth-dialog .remember-login input{width:17px;height:17px;margin:0}.auth-dialog .primary{background:#3e61ed;color:white;border-color:#3e61ed;padding:11px 16px}.auth-dialog .account-link{border:0;background:none;color:#4e6cba;font-size:13px;display:block;margin:18px auto 0}.auth-dialog .account-error{font-size:12px;line-height:1.6;color:#b4607c;margin:3px 0;min-height:18px}.auth-dialog .auth-note{font-size:11px;color:#91a1bf;line-height:1.8;margin-top:18px}.account-migration-actions{display:flex;gap:10px;margin-top:22px}.account-migration-actions button{flex:1;border:1px solid #dce5fb;border-radius:10px;background:white;padding:10px;color:#5272ab}.auth-dialog .logout-account{width:100%;padding:10px;border:1px solid #f0dce4;color:#b16a83;background:#fff5f8;border-radius:10px;margin-top:12px}.auth-dialog h3{font-size:15px;margin-top:23px}.auth-dialog button:disabled{opacity:.5}.auth-dialog input:focus{outline:2px solid #c6d4ff;outline-offset:1px}
@media(max-width:800px){.summary{flex-wrap:wrap;justify-content:flex-end;gap:8px}.account-entry{min-width:92px}.account-entry>button{padding:8px 10px;max-width:150px;font-size:12px}}@media(max-width:560px){.account-entry{min-width:100%;align-items:flex-end}.auth-dialog{padding:25px}}
/* Circular account entry with a soft blue-violet gradient. */
.account-entry{min-width:52px}.account-entry>#accountButton{width:46px;height:46px;min-width:46px;max-width:46px;padding:0;border-radius:50%;border:1px solid #e0e5ff;background:radial-gradient(circle at 30% 20%,#ffffffef,transparent 60%),linear-gradient(135deg,#e3eeff,#e7e2ff);box-shadow:inset 0 2px 3px #ffffffd9,inset 0 -2px 4px #b8c5f42b,0 4px 10px #9eb4eb26;color:#5874d4;transition:box-shadow .15s,background .15s}.account-entry>#accountButton:hover{background:radial-gradient(circle at 30% 20%,#fff,transparent 60%),linear-gradient(135deg,#dae8ff,#ded6ff);box-shadow:inset 0 2px 3px #ffffffd9,0 5px 14px #91a6e43d}.account-entry>#accountButton svg{width:22px;height:22px;stroke-width:1.6}.account-entry>#accountButton>#accountLabel{display:none}.account-entry small:empty{display:none}@media(max-width:800px){.account-entry{min-width:48px}.account-entry>#accountButton{width:42px;height:42px;min-width:42px;max-width:42px}}@media(max-width:560px){.account-entry{min-width:48px;align-items:center}}
/* Avoid stale backdrop-filter tiles during native dialog dismissal. */
dialog:not([open]){display:none!important}.auth-dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(37,61,112,.27)}
/* Keep every modal backdrop free of blur-compositing artifacts. */
dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(37,61,112,.27)}
.account-admin-link{display:block;padding:11px 13px;border:1px solid #dce5ff;border-radius:10px;background:#f0f4ff;color:#506db5;font-size:13px}
/* Stable scroll gutter and a light blue-violet scrollbar. */
html{overflow-y:scroll;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#bdc9ed #f1f5ff}*{scrollbar-width:thin;scrollbar-color:#bdc9ed #f1f5ff}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f5ff;border-radius:10px}::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#c8d7f7,#babfec);border:2px solid #f1f5ff;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#a5b8e8}::-webkit-scrollbar-corner{background:#f1f5ff}

/* Draw dimming on the dialog surface so closing removes both in one paint.
   Avoid a separately painted native backdrop tile in embedded Chromium. */
html body dialog::backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;animation:none;transition:none}
html body dialog[open]{box-shadow:0 20px 70px #647aaf33,0 0 0 100vmax rgba(37,61,112,.27);animation:none;transition:none}
html body dialog:not([open]){display:none!important;box-shadow:none}

/* Page-owned modals: no native top layer or backdrop surface. */
.modal-layer{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:20px 16px;background:rgba(37,61,112,.27);overflow:auto;overscroll-behavior:contain}
.modal-layer[hidden]{display:none!important}
html body .modal-layer>dialog.page-modal[open]{position:relative;inset:auto;display:block;margin:auto;flex:0 1 460px;width:100%;max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 20px 70px #647aaf33;animation:none;transition:none}
html body .modal-layer>dialog.admin-preview[open]{flex-basis:1000px;max-width:1000px}

.brand{display:inline-flex;align-items:center}.brand-logo{display:block;width:auto;height:45px;object-fit:contain}.admin-brand{display:inline-flex;align-items:center;gap:12px}.admin-brand .brand-logo{height:44px}.admin-brand small{white-space:nowrap}@media(max-width:700px){.brand-logo,.admin-brand .brand-logo{height:36px}}

.audio-chooser button.audio-choice{display:flex;align-items:center;gap:10px;text-align:left}.audio-choice svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:#4c72ef}.audio-choice span{min-width:0;overflow-wrap:anywhere}

/* Compact main brand proportions. */
.brand-logo{height:37px}.admin-brand .brand-logo{height:36px}@media(max-width:700px){.brand-logo,.admin-brand .brand-logo{height:30px}}

.account-entry>#accountButton{position:relative;overflow:visible}.premium-crown{position:absolute;top:-13px;right:-9px;width:30px;height:25px;object-fit:contain;pointer-events:none}.premium-crown[hidden]{display:none}

.premium-crown{width:22px;height:18px;top:-8px;right:-5px}

.account-entry>#accountButton>.default-avatar{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;pointer-events:none}

.account-entry #syncStatus{font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#617cae;font-weight:500}.account-entry #syncStatus.premium-username{font-weight:700;background:linear-gradient(105deg,#3189ed 0%,#8161df 52%,#bf65cb 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}

/* Header statistics without enclosing cards. */
.summary>.stat{background:transparent;border:0;box-shadow:none;border-radius:0}

.account-entry>#accountButton.premium-avatar{border:2px solid transparent;background:linear-gradient(#f5f7ff,#f5f7ff) padding-box,linear-gradient(135deg,#6bd3ff 0%,#748cff 45%,#c57df1 78%,#efade1 100%) border-box;box-shadow:0 3px 12px #8e9ce52b}

/* Account profile and password controls. */
#authDialog,#accountDialog{background:linear-gradient(135deg,#fff,#f8faff);padding:26px 25px 22px}
#accountDialog>h2{font-size:23px;color:#122e70;margin:0 0 17px}
.account-profile{display:flex;align-items:center;gap:17px;margin:0 0 17px}
.account-profile-avatar{position:relative;width:66px;height:66px;flex-shrink:0;border-radius:50%;background:linear-gradient(135deg,#e2edff,#ece6ff);padding:2px}
.account-profile-avatar>img:first-child{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.account-profile-avatar>.profile-crown{position:absolute;width:24px;height:20px;right:-3px;top:-5px;object-fit:contain}
.account-profile-copy{min-width:0}.account-profile-copy p{margin:0;font-size:13px;line-height:1.9;color:#7b90b8}
.account-profile-copy strong{font-size:16px;color:#15336f;overflow-wrap:anywhere}
.account-profile-copy .account-membership{font-size:12px;margin-top:2px}
#accountName.premium-account-name{font-weight:700;background:linear-gradient(105deg,#3189ed,#8161df 52%,#bf65cb);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
#accountDialog .account-admin-link{position:relative;display:flex;align-items:center;gap:12px;border:0;background:linear-gradient(110deg,#edf3ff,#e8eeff);border-radius:12px;padding:10px 15px;color:#3b67fb;box-shadow:0 4px 12px #809fea12;margin-bottom:24px;font-size:14px}
#accountDialog .account-admin-link:before{content:'⚙';display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#dae5ff;color:#4b72f5;font-size:19px}
#accountDialog .account-admin-link:after{content:'›';margin-left:auto;font-size:24px;line-height:1}
#accountDialog h3{font-size:16px;margin:20px 0 14px;color:#183776}
#accountDialog form{margin-top:0;gap:15px}
#accountDialog form>label{font-size:13px;color:#7a8eb2}
#accountDialog form input{height:41px;margin-top:5px;padding:10px 13px 10px 42px;border-color:#dfe7ff;background:#ffffffd9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2390a3ca' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") no-repeat 13px center;background-size:18px;box-shadow:0 2px 7px #8ba5de08}
#accountDialog form input::placeholder{color:#9aabca;font-size:13px}
#accountDialog #savePassword{height:43px;margin-top:4px;border-radius:10px;background:linear-gradient(110deg,#6789ff,#3766ff);border-color:#7290ff;box-shadow:0 5px 12px #5377ec21;font-size:14px}
#accountDialog .logout-account{height:42px;margin-top:24px;background:linear-gradient(110deg,#fff4f6,#fff0f4);border-color:#ffd5df;color:#ef657e;font-size:14px}
#accountDialog #accountError:empty{display:none}#accountDialog #accountError{margin:9px 0}
#accountDialog #passwordForm{margin-bottom:13px}
/* Learning status checkboxes match the soft blue interface. */
.learn-check input[type=checkbox]{appearance:none;-webkit-appearance:none;width:19px;height:19px;flex-shrink:0;border:1px solid #bed3f5;border-radius:4px;background:#fbfdff;display:inline-grid;place-content:center;cursor:pointer}
.learn-check input[type=checkbox]:hover{border-color:#8eafe8;background:#f0f6ff}
.learn-check input[type=checkbox]:checked{background:#5879f2;border-color:#5879f2}
.learn-check input[type=checkbox]:checked:before{content:'';width:9px;height:5px;border-left:2px solid white;border-bottom:2px solid white;transform:translateY(-1px) rotate(-45deg)}
.learn-check input[type=checkbox]:focus-visible{outline:2px solid #a8c7ff;outline-offset:3px}
@media(forced-colors:active){.learn-check input[type=checkbox]{appearance:auto}}

.view-options .meaning-toggle{border:0;background:transparent;box-shadow:none;padding:6px 2px;color:#6a84b3;font-size:13px;cursor:pointer;white-space:nowrap}.view-options .meaning-toggle:hover{color:#3465df}.view-options .meaning-toggle[aria-pressed=true]{color:#4166d5}

.meaning-body details>.bookmark-word{margin-left:0;text-align:left}.meaning-body details>.bookmark-word+.bookmark-word{margin-left:12px}

.meaning-body>.pos{text-align:left;padding-left:0;text-indent:0}

.library .sense-row{grid-template-columns:100px minmax(0,1fr)}.library .sense-row>.pos-badge{white-space:nowrap;font-size:var(--pos-size);padding:2px 8px}.library .meaning-body>details{margin-left:116px}@media(max-width:1250px){.library .sense-row{grid-template-columns:94px minmax(0,1fr)}.library .meaning-body>details{margin-left:104px}}@media(max-width:560px){.library .sense-row{grid-template-columns:90px minmax(0,1fr)}.library .meaning-body>details{margin-left:100px}}

.library .chinese-pos{display:none}body.show-chinese-pos .library .chinese-pos{display:inline;white-space:pre}.library .sense-row{grid-template-columns:66px minmax(0,1fr)}.library .meaning-body>details{margin-left:82px}body.show-chinese-pos .library .sense-row{grid-template-columns:100px minmax(0,1fr)}body.show-chinese-pos .library .meaning-body>details{margin-left:116px}@media(max-width:1250px){.library .sense-row{grid-template-columns:52px minmax(0,1fr)}.library .meaning-body>details{margin-left:62px}body.show-chinese-pos .library .sense-row{grid-template-columns:94px minmax(0,1fr)}body.show-chinese-pos .library .meaning-body>details{margin-left:104px}}@media(max-width:560px){.library .sense-row{grid-template-columns:48px minmax(0,1fr)}.library .meaning-body>details{margin-left:58px}body.show-chinese-pos .library .sense-row{grid-template-columns:90px minmax(0,1fr)}body.show-chinese-pos .library .meaning-body>details{margin-left:100px}}

/* Separate expanded word forms from learning actions. */
.meaning-body>details>p:not(.review-hint){margin-bottom:13px}

.sidebar .nav-item[data-view="review"]>.icon,.sidebar .nav-item[data-view="stats"]>.icon{width:23px;height:23px;stroke-width:1.6;fill:none;filter:none}

.goal-ring .ring-track{stroke:#e6f4ed}.goal-ring .ring-fill{stroke:#49bf91}.goal-ring .ring-label strong{color:#24966d}

.sidebar .nav-item>.icon{width:24px;height:24px;min-width:24px;flex:0 0 24px;stroke-width:1.6;fill:none;filter:none}.sidebar .nav-item[data-view="review"]>.icon,.sidebar .nav-item[data-view="stats"]>.icon{width:24px;height:24px}

/* Opaque side panels: no viewport dimming, blur or scroll-lock repaint. */
html body .modal-layer{inset:16px 16px 16px auto;width:min(480px,calc(100vw - 32px));height:auto;padding:0;display:flex;align-items:flex-start;justify-content:flex-end;background:none;overflow:visible;pointer-events:none;backdrop-filter:none;-webkit-backdrop-filter:none;animation:none;transition:none}
html body .modal-layer.panel-wide{width:min(1000px,calc(100vw - 32px))}
html body .modal-layer>dialog.page-modal[open]{flex:0 1 100%;width:100%;max-width:none;max-height:calc(100dvh - 32px);margin:0;pointer-events:auto;background:#fbfcff;border:1px solid #dce6fb;border-radius:20px;box-shadow:0 6px 24px #25426e20;animation:none;transition:none}
html body .modal-layer>#accountDialog[open]{background:#fbfcff}
@media(max-width:560px){html body .modal-layer{inset:8px 8px 8px auto;width:calc(100vw - 16px)}html body .modal-layer>dialog.page-modal[open]{max-height:calc(100dvh - 16px);border-radius:16px}}

/* Compact horizontal account entry. */
.summary>.account-entry{display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0}
.account-entry-copy{display:flex;flex-direction:column;align-items:flex-start;gap:3px;max-width:150px}
.account-entry .account-entry-copy>#syncStatus{display:block;font-size:13px;line-height:1.4;cursor:pointer}
.header-membership{font-size:11px;line-height:1.4;color:#8a9abc;white-space:nowrap;cursor:pointer}
.account-entry>.account-menu-arrow{border:0;background:none;box-shadow:none;padding:4px 2px;color:#7a91b9;font-size:16px;cursor:pointer}
@media(max-width:560px){.summary>.account-entry{gap:7px;align-items:center}.account-entry-copy{max-width:100px}}

.account-entry>.account-menu-arrow{display:grid;place-items:center;width:24px;height:28px;padding:0;border-radius:8px}.account-menu-arrow svg{width:15px;height:15px;fill:none;stroke:#8295b8;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.account-entry>.account-menu-arrow:hover{background:#e8efff}.account-menu-arrow:hover svg{stroke:#4a70ce}

.account-entry .account-entry-copy>#syncStatus{font-size:15px}

html body .modal-layer.account-card-layer{width:min(420px,calc(100vw - 24px))}
html body .modal-layer.account-dropdown-layer{bottom:auto;width:min(420px,calc(100vw - 24px))}html body .modal-layer.account-dropdown-layer>dialog.page-modal[open]{max-height:var(--account-panel-height,calc(100dvh - 100px));border-radius:18px}
/* Consistent settings rhythm without large default paragraph margins. */
#settingsDialog{padding:24px;line-height:1.65}
#settingsDialog>h2{margin:0 0 12px;font-size:22px}
#settingsDialog>p{margin:14px 0;font-size:13px;line-height:1.8}
#settingsDialog>h2+p{margin:0 0 16px}
#settingsDialog>.setting-line{margin:12px 0;gap:9px;min-height:40px;font-size:13px}
#settingsDialog>.setting-line input[type=number]{padding:7px 9px;height:35px}
#settingsDialog>.setting-line button{padding:8px 14px;min-height:38px}
#settingsDialog>.setting-line:has(input[type=checkbox]){margin:16px 0;min-height:25px}
#settingsDialog>.settings-actions{margin-top:18px;gap:9px}
#settingsDialog>.settings-actions>*{padding:10px 13px;font-size:13px}

.focus-review-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.learning-panel .practice-fullscreen{display:flex;align-items:center;gap:7px;background:#f5f8ff;border:1px solid #e0e8fc;border-radius:10px;padding:7px 11px;color:#6d86b7;font-size:13px}
.practice-fullscreen:before{content:'';width:15px;height:15px;background:linear-gradient(currentColor,currentColor) top left/5px 1.5px no-repeat,linear-gradient(currentColor,currentColor) top left/1.5px 5px no-repeat,linear-gradient(currentColor,currentColor) top right/5px 1.5px no-repeat,linear-gradient(currentColor,currentColor) top right/1.5px 5px no-repeat,linear-gradient(currentColor,currentColor) bottom left/5px 1.5px no-repeat,linear-gradient(currentColor,currentColor) bottom left/1.5px 5px no-repeat,linear-gradient(currentColor,currentColor) bottom right/5px 1.5px no-repeat,linear-gradient(currentColor,currentColor) bottom right/1.5px 5px no-repeat}
#learningPanel:fullscreen{overflow:auto;width:100%;height:100%;border:0;border-radius:0;padding:28px;background:#f8faff}
#learningPanel:fullscreen .spelling-card{margin-top:24px}
/* Center the practice card within the available review area. */
#learningPanel.review-focus{display:flex;flex-direction:column}
#learningPanel.review-focus>.focus-review-top{flex:0 0 auto;width:100%}
#learningPanel.review-focus>.spelling-card{flex:0 0 auto;width:100%;margin: auto;transform:translateY(-10px)}
#learningPanel.review-focus:fullscreen>.spelling-card{margin:auto}
@media(max-height:650px){#learningPanel.review-focus>.spelling-card{margin:18px auto;transform:none}}

.learning-panel .memory-stage-toggle{display:inline-flex;align-items:center;gap:12px;border:0;background:transparent;box-shadow:none;padding:0;color:inherit;font:inherit;text-align:left}.memory-stage-toggle:after{content:"";width:7px;height:7px;border-right:1.5px solid #8999c4;border-bottom:1.5px solid #8999c4;transform:rotate(45deg) translateY(-2px);margin-left:2px}.memory-stage-toggle[aria-expanded=false]:after{transform:rotate(-45deg)}.memory-stage-items>.review-list{margin-top:0}

.letter-box:focus,.letter-box:focus-visible{outline:none;border-color:#738cff;box-shadow:none;filter:none}

/* Fixed practice layout: pronunciation and feedback always have reserved rows. */
#learningPanel .spelling-card{display:grid;grid-template-rows:26px 76px 32px minmax(0,1fr) 20px 39px;gap:12px;height:420px;min-height:420px;max-height:420px;padding:26px 30px;align-items:center;justify-content:stretch}
#learningPanel .spelling-card-header{margin:0;align-self:start}
#learningPanel .spelling-boxes{margin:0;min-height:0;max-height:76px;overflow:auto;align-content:center}
#learningPanel .spelling-card .spelling-pronunciation{margin:0;height:32px;min-height:32px;justify-content:center}
.pronunciation-reserved{visibility:hidden;pointer-events:none}
#learningPanel .spelling-card .spelling-meaning{margin:0 auto;min-height:0;max-height:100%;overflow:auto;align-self:center;padding:0 4px}
#learningPanel .spelling-feedback{height:20px;min-height:20px;margin:0;line-height:20px}
#learningPanel .spelling-actions{margin:0;align-self:end}
@media(max-width:650px){#learningPanel .spelling-card{padding:22px 18px;height:420px;min-height:420px;max-height:420px;gap:10px}}
/* Compact spacing while keeping identical card geometry before/after reveal. */
#learningPanel .spelling-card{height:360px;min-height:360px;max-height:360px;grid-template-rows:26px 72px 30px minmax(0,1fr) 20px 39px;gap:8px;padding:24px 30px}
@media(max-width:650px){#learningPanel .spelling-card{height:360px;min-height:360px;max-height:360px;padding:20px 18px;gap:8px}}
/* Center the complete POS/meaning block rather than a minimum-width shell. */
#learningPanel .spelling-card .spelling-meaning{width:max-content;min-width:0;max-width:min(570px,100%);justify-self:center;margin:0;box-sizing:border-box;text-align:left}
#learningPanel .spelling-card .spelling-meaning .sense-row{grid-template-columns:51px minmax(0,1fr);text-align:left}

/* Tighten pronunciation-to-meaning spacing without changing card height. */
#learningPanel .spelling-card .spelling-meaning{align-self:start}.spelling-card .spelling-meaning .sense-row:first-child{margin-top:0}
#learningPanel .spelling-card .letter-box{width:72px;flex-basis:72px;height:73px;font-size:38px;border-radius:13px}
@media(max-width:650px){#learningPanel .spelling-card .letter-box{width:52px;flex-basis:52px;height:61px;font-size:32px}}

/* Reserve both letter rows; never scroll or clip the spelling grid. */
#learningPanel .spelling-card.spelling-two-lines{height:450px;min-height:450px;max-height:450px;grid-template-rows:26px 158px 30px minmax(0,1fr) 20px 39px}
#learningPanel .spelling-two-lines .spelling-boxes{display:grid;grid-template-columns:repeat(var(--letter-columns),minmax(0,72px));justify-content:center;align-content:center;gap:10px 9px;max-height:none;height:158px;overflow:visible;width:100%}
#learningPanel .spelling-two-lines .letter-box{width:100%;min-width:0}
@media(max-width:650px){#learningPanel .spelling-card.spelling-mobile-two-lines{height:440px;min-height:440px;max-height:440px;grid-template-rows:26px 134px 30px minmax(0,1fr) 20px 39px}#learningPanel .spelling-mobile-two-lines .spelling-boxes{display:grid;grid-template-columns:repeat(var(--letter-columns),minmax(0,52px));justify-content:center;align-content:center;gap:10px 6px;height:134px;max-height:none;overflow:visible;width:100%}#learningPanel .spelling-mobile-two-lines .letter-box{width:100%;min-width:0;font-size:clamp(20px,5vw,32px)}}

.learning-panel .word-spelling-button{font-size:13px;padding:8px 13px;border-radius:12px;background:#eef3ff;border:1px solid #e2eaff;color:#4b72d6;white-space:nowrap}.learning-panel .word-spelling-button:hover{background:#e3ecff}@media(max-width:560px){.review-list-row{gap:10px}.review-row-actions{gap:6px}.learning-panel .word-spelling-button{padding:7px 9px}}
/* Spelling challenge */
.game-panel{min-height:650px}.game-hero{position:relative;margin:25px 0;padding:32px;border:1px solid #e0e9ff;border-radius:22px;background:linear-gradient(125deg,#f0f6ff,#f5f0ff);line-height:1.8}.game-eyebrow{font-size:12px;letter-spacing:1.5px;color:#8a82cc}.game-hero h2{font-size:25px;margin:10px 0;color:#193574}.game-hero button{margin:14px 10px 0 0}.game-secondary{background:#fff!important;border:1px solid #dce5fa!important;color:#6581b0!important}.game-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.game-card{max-width:800px;margin:0 auto;padding:30px;border:1px solid #e0e9ff;background:#fff;border-radius:23px;text-align:center;box-shadow:0 10px 30px #829bd710}.game-status{display:flex;justify-content:space-between;align-items:center;color:#8195bc;font-size:13px}.game-clock{font-size:25px;font-variant-numeric:tabular-nums;color:#536ee6}.game-card progress{display:block;width:100%;height:6px;margin:19px 0 35px;border:0;accent-color:#7d84ef}.game-card progress::-webkit-progress-bar{background:#edf1fb;border-radius:10px}.game-card progress::-webkit-progress-value{background:linear-gradient(90deg,#7f9aff,#a585e9);border-radius:10px}.game-meaning{font-size:18px;line-height:1.8;white-space:pre-line;color:#21427e}.game-input{display:block;max-width:450px;width:100%;height:65px;margin:24px auto 0;padding:10px 20px;border:1.5px solid #d6e1fa;border-radius:13px;background:#fbfcff;color:#2e56a6;font-size:28px;text-align:center;letter-spacing:3px}.game-input:focus{outline:none;border-color:#7d95ec}.game-input::placeholder{font-size:15px;letter-spacing:0;color:#acb9d1}.game-feedback{min-height:24px;color:#c17b91;font-size:13px}.game-card>button{min-width:170px}.game-leaderboard{margin-top:28px}.game-leaderboard>h2{font-size:20px}.game-rank-row{display:flex;align-items:center;gap:18px;border:1px solid #e6edfb;border-radius:13px;padding:15px 20px;margin-top:10px;background:#fff}.game-rank{min-width:28px;color:#8798c0;font-weight:700}.game-rank-row:nth-of-type(-n+3) .game-rank{color:#9471dc}.game-rank-detail{margin-left:auto;color:#8899b7;font-size:12px}.game-rank-score{font-variant-numeric:tabular-nums;color:#6276d4}.game-premium{color:#9873d7}.game-result{display:block;font-size:44px;color:#6c77da;font-variant-numeric:tabular-nums}.game-error{color:#b87890}.game-empty{padding:25px;text-align:center;color:#8e9dbd}@media(max-width:650px){.game-card{padding:22px 15px}.game-hero{padding:24px}.game-meaning{font-size:16px}.game-rank-row{gap:10px;padding:13px}.game-rank-detail{display:none}}

.game-letter-grid{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px;margin:22px auto 10px;max-width:690px;min-height:68px}
.game-letter{width:56px;height:64px;flex:0 0 56px;min-width:0;padding:0;border:1px solid #d9e3fc;border-radius:12px;background:#fbfcff;color:#335994;font:600 32px Arial,sans-serif;text-align:center;caret-color:#617ce3;box-sizing:border-box}
.game-letter:focus{outline:none;border-color:#7a93f1;box-shadow:none;background:white}
.game-letter.game-letter-wrong{border-color:#e1a3b8;background:#fff9fb}
.game-letter-separator{font-size:22px;color:#a0acc8}
.game-input-help{font-size:12px;color:#98a7c1;margin:10px 0 0}.game-restart-note{font-size:13px;color:#ae7a99}
.game-card .game-meaning{max-height:175px;overflow:auto}.game-card .game-feedback{min-height:23px;margin:12px 0}
@media(max-width:650px){.game-letter-grid{gap:7px;max-width:100%}.game-letter{width:44px;height:53px;flex-basis:44px;border-radius:10px;font-size:28px}}

#learningPanel.game-panel:fullscreen{display:flex;flex-direction:column;background:#f8faff;padding:28px 36px;min-height:100dvh}
#learningPanel.game-panel:fullscreen>.game-top{flex:0 0 auto;width:100%}
#learningPanel.game-panel:fullscreen>.game-card{width:min(800px,100%);margin:auto;flex:0 0 auto}
.game-top>h1{margin:0}
@media(max-width:650px){#learningPanel.game-panel:fullscreen{padding:20px 14px}}
/* Challenge layout: calm lobby, centered task, and readable live scoring. */
.game-home-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,.85fr);gap:24px;margin-top:24px;align-items:start}
.game-home-layout>.game-hero{margin:0;min-height:350px;padding:30px}
.game-home-layout>.game-leaderboard{margin:0;padding:23px;border:1px solid #e5ecfb;background:#ffffffb8;border-radius:22px;max-height:650px;overflow:auto}
.game-rules{list-style:none;padding:0;margin:22px 0;color:#6982ad;font-size:13px;line-height:1.8}.game-rules li{margin:12px 0;padding-left:17px;position:relative}.game-rules li:before{content:'';width:5px;height:5px;border-radius:50%;background:#aab4ef;position:absolute;left:0;top:9px}
.game-resume{font-size:16px;font-weight:600;color:#576fbd}.game-restart-confirm{margin-top:18px;padding:15px;border:1px solid #e4daf0;border-radius:13px;background:#fbf7ff}.game-restart-confirm p{margin:0;font-size:13px}
.game-card{width:min(860px,100%);padding:24px 30px 26px;box-sizing:border-box}
.game-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;text-align:left}
.game-live-stat{padding:12px 14px;border:1px solid #e9eef9;border-radius:13px;background:#f8faff;min-width:0}.game-live-stat small{display:block;font-size:11px;color:#8396b8;white-space:nowrap}.game-live-stat strong{display:block;margin-top:4px;font-size:21px;font-variant-numeric:tabular-nums;color:#385a9b;white-space:nowrap}.game-live-stat:nth-child(4){background:#f4f1ff;border-color:#e8e1ff}.game-live-stat .game-live-score{color:#8367ce}.game-live-stat .game-live-penalty{color:#aa7e9e}
.game-card progress{height:5px;margin:18px 0 22px}
.game-card .game-letter-grid{min-height:140px;align-content:center;margin:0 auto 18px;gap:10px 9px}
.game-clue{min-height:100px;max-height:160px;overflow:auto;margin:0 auto 12px;padding:0 8px;display:flex;flex-direction:column;justify-content:flex-start}.game-clue .game-meaning{font-size:16px;line-height:1.8;max-height:none;overflow:visible}.game-clue-hint{font-size:12px;color:#8d9fbe;margin:8px 0 0}
.game-card .game-input-help{margin:0;font-size:11px}.game-card .game-feedback{min-height:36px;line-height:1.7;margin:10px 0;color:#b37d96;font-size:12px}
.game-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.game-actions button{min-height:41px;min-width:155px}.learning-panel .game-skip{color:#899bbd;background:transparent;border-color:#e4eafb;font-size:12px}.game-skip:hover{background:#f6f8fd}
.game-rank-row{display:grid;grid-template-columns:23px minmax(0,1fr) auto;gap:4px 12px;padding:12px 13px}.game-rank-row>strong:not(.game-rank-score){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-rank-detail{grid-column:2/-1;grid-row:2;margin:0;font-size:11px;display:block}.game-rank-score{grid-column:3;grid-row:1}.game-rank-row>.game-rank{grid-row:1/3;align-self:center;min-width:0}
.game-complete{max-width:800px;width:100%;box-sizing:border-box;margin:30px auto;text-align:center}
@media(max-width:1050px){.game-home-layout{grid-template-columns:1fr}.game-home-layout>.game-leaderboard{max-height:520px}}
@media(max-width:650px){.game-card{padding:18px 13px}.game-status{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.game-live-stat{padding:9px 12px}.game-live-stat strong{font-size:19px}.game-card .game-letter-grid{min-height:124px;gap:8px 6px}.game-clue{min-height:95px}.game-actions{gap:8px}.game-actions button{min-width:0;flex:1}.game-home-layout>.game-hero,.game-home-layout>.game-leaderboard{padding:22px}.game-card .game-feedback{min-height:40px}}
/* Shared sidebar image advertising, using the existing fixed artwork footprint. */
.sidebar>.motivation.has-sidebar-ads{padding:0;background:#edf3ff;overflow:hidden}
.sidebar-ad-carousel,.sidebar-ad-frame,.sidebar-ad-slide{position:relative;width:100%;height:100%}
.sidebar-ad-slide{display:block;position:absolute;inset:0}.sidebar-ad-slide[hidden]{display:none!important}
.sidebar-ad-slide img{display:block;width:100%;height:100%;border:0}
.sidebar-ad-carousel button{appearance:none;cursor:pointer;font-family:inherit;box-sizing:border-box}
.sidebar-ad-dots{position:absolute;bottom:12px;left:30px;right:30px;display:flex;justify-content:center;gap:5px;pointer-events:none}
.sidebar-ad-dot{border:0;width:7px;height:7px;border-radius:50%;padding:0;background:#ffffffa1;box-shadow:0 1px 4px #172b5e40;pointer-events:auto}
.sidebar-ad-dot[aria-pressed=true]{width:18px;border-radius:6px;background:#fff}
.sidebar-ad-arrow{position:absolute;top:calc(50% - 16px);display:grid;place-items:center;width:26px;height:32px;border:1px solid #ffffff80;border-radius:9px;background:#263c6c40;color:white;font-size:23px;line-height:1;opacity:0}
.sidebar-ad-previous{left:8px}.sidebar-ad-next{right:8px}
.sidebar-ad-carousel:hover .sidebar-ad-arrow,.sidebar-ad-carousel:focus-within .sidebar-ad-arrow{opacity:1}
.sidebar-ad-pause{position:absolute;right:8px;bottom:7px;border:1px solid #ffffff80;border-radius:7px;background:#263c6c40;color:white;font-size:10px;width:23px;height:22px;padding:0}
@media(hover:none){.sidebar-ad-arrow{opacity:1}}
/* Illustrated challenge lobby, sharing the study-progress typography. */
.game-lobby-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:20px;align-items:start}
.game-lobby-main,.game-lobby-side{min-width:0}.game-lobby-side{display:flex;flex-direction:column;gap:16px}
.game-home-heading{margin:0 0 4px;min-height:38px;gap:12px}.game-home-heading>h1{position:relative;padding-left:23px;font-size:27px;font-weight:700;letter-spacing:.3px;margin:0;color:#102862;line-height:1.4}.game-home-heading>h1:before{content:'';position:absolute;left:0;top:4px;bottom:2px;width:9px;border-radius:12px;background:linear-gradient(#e9f2ff,#dceaff)}
.game-home-subtitle{font-size:12px;line-height:1.7;padding-left:23px;margin:0 0 18px;color:#7088b6}
.challenge-hero{margin:0;min-height:352px;border:1px solid #e1eaff;border-radius:21px;background:radial-gradient(ellipse at 90% 12%,#cce5ff99,transparent 48%),linear-gradient(125deg,#f2f7ff,#e9f2ff 62%,#e2edff);box-shadow:inset 0 1px 0 #fff;overflow:hidden;padding:30px 26px;isolation:isolate}
.challenge-copy{position:relative;z-index:2;width:64%;min-width:0}
.challenge-hero .challenge-headline{margin:0 0 25px;color:#102862;font-size:27px;font-weight:700;line-height:1.5;letter-spacing:.2px}.challenge-headline>span{display:block;white-space:nowrap}.challenge-headline em{font-size:36px;font-style:normal;color:#3685fa}
.challenge-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 22px}.challenge-feature .game-lobby-icon{display:block;width:29px;height:29px;padding:6px;box-sizing:content-box;background:#e3eeff;border-radius:13px;margin-bottom:8px}.challenge-feature:nth-child(2) .game-lobby-icon{background:#eae4ff}.challenge-feature:nth-child(3) .game-lobby-icon{background:#ddf5ee}.challenge-feature strong{display:block;font-size:13px;font-weight:600;color:#28477b;white-space:nowrap}.challenge-feature small{display:block;font-size:10px;line-height:1.6;margin-top:3px;color:#8b9fc1}
.learning-panel .challenge-start{min-width:155px;border:0;border-radius:24px;padding:10px 22px;background:linear-gradient(105deg,#4175ff,#53a3ff);box-shadow:0 5px 12px #5486ed26;color:#fff;font-size:13px;margin:0 8px 0 0}
.challenge-hero .game-secondary{font-size:11px;padding:7px 11px;border-radius:15px;margin:12px 0 0}.challenge-hero .game-resume{font-size:12px;line-height:1.6;margin:12px 0 0;color:#6c86b6}.challenge-rules{margin-top:13px;color:#8a9cbb;font-size:11px}.challenge-rules summary{display:inline-block;list-style:none;cursor:pointer}.challenge-rules p{margin:8px 0 0;font-size:11px;line-height:1.8}.challenge-rules[open]{max-width:330px}.challenge-hero .game-restart-confirm{font-size:12px;margin-top:14px}.challenge-hero .game-restart-confirm p{font-size:12px;line-height:1.6}
.challenge-art{position:absolute;right:-1%;bottom:19px;width:42%;height:270px;z-index:1;pointer-events:none}
.challenge-word-card{position:absolute;bottom:25px;right:12%;width:155px;height:183px;border-radius:20px;background:linear-gradient(140deg,#fff 25%,#f4f6ff);transform:rotate(11deg);border:1px solid #fff;box-shadow:0 15px 25px #8ca9f333,4px 5px 0 #c5d4ff66;text-align:center;display:flex;align-items:center;flex-direction:column;padding:20px 0}
.challenge-word-card strong{font-size:65px;line-height:1.15;color:#78a7ff;font-family:Arial,sans-serif;font-weight:700}.challenge-word-card>span{font-size:16px;color:#b1c3f2;margin-top:3px}.word-card-line{display:block;width:102px;height:8px;border-radius:8px;background:#e0e7ff;margin-top:15px}.word-card-line.short{width:72px;margin-top:9px;align-self:flex-start;margin-left:26px}
.challenge-card-back{position:absolute;bottom:43px;right:6%;width:155px;height:183px;background:linear-gradient(150deg,#d9d5ff,#b9d0ff);border:1px solid #ecedff;border-radius:20px;transform:rotate(22deg);opacity:.6}
.challenge-orbit{position:absolute;inset:24px 2% 25px 0;border:1.5px dashed #a3c5ff;border-radius:50%;transform:rotate(-27deg);opacity:.75}
.challenge-leaf{position:absolute;width:43px;height:105px;background:linear-gradient(140deg,#99d9ee99,#69c3d477);border-radius:90% 0 90% 0;bottom:25px}.leaf-left{left:2%;transform:rotate(-40deg)}.leaf-right{right:0;bottom:125px;transform:rotate(12deg);background:linear-gradient(#9bdde1aa,#98dcca66)}
.challenge-pencil{position:absolute;bottom:1px;right:9%;width:25px;height:150px;background:linear-gradient(90deg,#f7bf62 0 20%,#ffe0a3 20% 55%,#ffc867 55% 85%,#f3b655 85%);border-radius:9px 9px 2px 2px;transform:rotate(32deg);box-shadow:3px 5px 8px #8da4cc22}
.challenge-pencil:before{content:'';position:absolute;top:0;left:0;right:0;height:22px;border-radius:9px 9px 0 0;background:linear-gradient(90deg,#f5a5bb,#ffd2df);border-bottom:9px solid #a9d4d1}.challenge-pencil:after{content:'';position:absolute;bottom:-25px;left:0;width:25px;height:28px;background:linear-gradient(155deg,#f1d6b4 65%,#7b7994 65%);clip-path:polygon(0 0,100% 0,50% 100%)}
.challenge-spark{position:absolute;width:16px;height:16px;border-radius:6px;background:linear-gradient(145deg,#d2d2ff,#b3b5ff);transform:rotate(35deg)}.spark-one{right:19%;top:10px}.spark-two{left:17%;top:21px;width:18px;height:18px;border-radius:50%;background:linear-gradient(#bddeff,#86bcff)}
.challenge-board,.challenge-stats{background:linear-gradient(120deg,#fff,#fcfdff);border:1px solid #e6edfc;border-radius:18px;padding:18px 16px;margin:0;box-shadow:0 5px 20px #b8cced0c}
.challenge-section-heading{display:flex;align-items:center;gap:9px;margin-bottom:12px}.challenge-section-heading>.game-lobby-icon{width:27px;height:27px;border-radius:50%;padding:5px;box-sizing:content-box;background:#f3f0ff}.challenge-board .challenge-section-heading>.game-lobby-icon{background:#fff7e6}.challenge-section-heading>h2{font-size:15px;font-weight:600;color:#193570;margin:0;white-space:nowrap}.learning-panel .challenge-board-more{border:0;background:transparent;box-shadow:none;font-size:10px;color:#8c9fbf;padding:3px 0 3px 5px;margin-left:auto;white-space:nowrap}.challenge-board-more:after{content:'›';font-size:15px;margin-left:4px}
.challenge-board-list{overflow:visible}.challenge-board .challenge-board-row{display:grid;grid-template-columns:37px 30px minmax(0,1fr) auto;gap:9px;align-items:center;padding:8px 0;margin:0;border:0;border-bottom:1px solid #f0f3fa;border-radius:0;background:transparent}.challenge-board-row:last-child{border-bottom:0}.challenge-board-row .game-rank{grid-row:auto;justify-self:center;min-width:0;width:21px;height:24px;display:grid;place-items:center;border-radius:8px;background:#f0f4ff;color:#8198bd;font-size:11px}/* Original award artwork is displayed as three sprite windows. The independent
   scales give the embedded numerals the same visual height (about 12px). */
.challenge-board-row .game-rank.rank-medal{width:30px;height:40px;border-radius:0;clip-path:none;background-image:url('/rank-medals.png?v=20261028');background-repeat:no-repeat;background-color:transparent;color:transparent;overflow:hidden}
.challenge-board-row .game-rank.rank-1{background-size:92.672px 69.504px;background-position:-4.72px -14px}
.challenge-board-row .game-rank.rank-2{background-size:104.256px 78.192px;background-position:-40.928px -19.2px}
.challenge-board-row .game-rank.rank-3{background-size:107.728px 80.8px;background-position:-74.48px -19.92px}
.challenge-rank-avatar{width:29px;height:29px;object-fit:cover;border-radius:50%;background:#eff4ff}.challenge-board-row>strong:not(.game-rank-score){font-size:12px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.challenge-board-row .game-rank-score{grid-column:4;grid-row:1;font-size:12px;font-weight:600;color:#38537e}
.challenge-personal-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:15px}.challenge-personal-metrics>div{min-width:0;display:flex;align-items:center;flex-direction:column;gap:5px;border-right:1px solid #ecf1fb}.challenge-personal-metrics>div:last-child{border:0}.challenge-personal-metrics .game-lobby-icon{width:20px;height:20px}.challenge-personal-metrics strong{font-size:20px;line-height:1.25;color:#234583;font-variant-numeric:tabular-nums;white-space:nowrap}.challenge-personal-metrics small{font-size:10px;color:#8fa0bd;white-space:nowrap}
.challenge-banner{position:relative;isolation:isolate;overflow:hidden;margin-top:20px;min-height:94px;padding:20px 24px;background:linear-gradient(110deg,#f7fbff,#eef7ff);border:1px solid #e7effa;border-radius:18px;display:flex;flex-direction:column;justify-content:center;gap:6px}.challenge-banner>strong{position:relative;z-index:2;font-size:14px;font-weight:600;color:#294778}.challenge-banner>span{position:relative;z-index:2;font-size:11px;color:#8a9dbb}.challenge-scenery{position:absolute;inset:0 0 0 45%;z-index:1;pointer-events:none;opacity:.85}.scenery-sun{position:absolute;width:55px;height:55px;right:14%;top:14px;border-radius:50%;background:linear-gradient(#ffe6a4,#ffdf9a)}.scenery-hill{position:absolute;width:85%;height:100px;bottom:-70px;border-radius:50%;background:#bdddd8;transform:rotate(-7deg)}.hill-back{bottom:-45px;left:4%;background:#cae3f2;transform:rotate(9deg)}.hill-front{left:21%;bottom:-47px;background:#c1e1d5}.scenery-tree{position:absolute;width:10px;height:28px;border-radius:90% 10% 90% 10%;background:#8bcbbf;bottom:15px}.tree-one{right:38%;transform:rotate(-17deg)}.tree-two{right:12%;height:23px;bottom:10px}.tree-three{left:30%;height:19px;bottom:22px}
@media(max-width:1180px){.game-lobby-layout{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.challenge-hero{padding:25px 20px}.challenge-hero .challenge-headline{font-size:24px}.challenge-headline em{font-size:31px}.challenge-copy{width:69%}.challenge-art{opacity:.85;right:-7%;width:45%;transform:scale(.87);transform-origin:right bottom}.challenge-features{gap:8px}.challenge-feature small{font-size:10px}.challenge-personal-metrics strong{font-size:18px}}
@media(max-width:1000px){.game-lobby-layout{grid-template-columns:1fr}.game-lobby-side{display:grid;grid-template-columns:1fr 1fr;align-items:start}.challenge-copy{width:60%}.challenge-art{right:2%;width:40%;opacity:1;transform:none}.challenge-hero{min-height:325px}.challenge-banner{margin-top:16px}}
@media(max-width:650px){.game-home-heading>h1{font-size:23px;padding-left:18px}.game-home-subtitle{padding-left:18px}.game-lobby-side{grid-template-columns:1fr}.challenge-hero{padding:24px 18px;min-height:350px}.challenge-copy{width:76%}.challenge-hero .challenge-headline{font-size:24px}.challenge-art{width:43%;right:-15%;bottom:0;opacity:.55;transform:scale(.8);transform-origin:right bottom}.challenge-features{gap:9px;max-width:310px}.challenge-feature .game-lobby-icon{width:23px;height:23px;padding:5px}.challenge-feature strong{font-size:12px}.challenge-feature small{font-size:10px}.challenge-section-heading>h2{font-size:15px}.challenge-personal-metrics strong{font-size:22px}.challenge-banner{padding:18px;min-height:95px}.challenge-banner>strong{font-size:13px}.challenge-scenery{left:60%;opacity:.5}}

.challenge-board .challenge-board-row .game-rank.rank-medal{color:transparent}
/* Illustrated challenge task card. */
#learningPanel .game-card{width:min(1120px,100%);max-width:1120px;position:relative;isolation:isolate;padding:0;border:1px solid #e4ebff;border-radius:25px;overflow:hidden;background:linear-gradient(135deg,#fff,#fbfdff 55%,#f7f9ff);box-shadow:0 10px 35px #a4b9e814}
.game-card .game-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;padding:24px;background:linear-gradient(#fdfdff,#f8fbff)}
.game-card .game-live-stat{position:relative;display:flex;align-items:center;gap:13px;min-height:108px;padding:16px 15px;border:1px solid #e7edff;border-radius:17px;background:#f5f8ff;text-align:left}
.game-card .game-live-stat>.game-lobby-icon{width:43px;height:43px;flex:0 0 43px;box-sizing:content-box;padding:9px;background:linear-gradient(#f9fbff,#e0eaff);border-radius:50%}
.game-card .game-stat-copy{min-width:0}.game-card .game-live-stat small{font-size:13px;font-weight:600;color:#7b8fb7;line-height:1.5}.game-card .game-live-stat strong{font-size:25px;line-height:1.35;margin-top:5px;color:#143b88}
.game-card .game-live-stat:nth-child(1){padding-bottom:23px}.game-card .game-live-stat:nth-child(2){background:#f5fbfe;border-color:#e6f1fb}.game-card .game-live-stat:nth-child(2)>.game-lobby-icon{background:#dff7fa}.game-card .game-live-stat:nth-child(3){background:#fff7fa;border-color:#f9e6ef}.game-card .game-live-stat:nth-child(3)>.game-lobby-icon{background:#ffeaf1}.game-card .game-live-stat .game-live-penalty{color:#e9759c}.game-card .game-live-stat:nth-child(4){background:#f8f4ff;border-color:#ece4ff}.game-card .game-live-stat:nth-child(4)>.game-lobby-icon{background:#fff}.game-card .game-live-stat .game-live-score{color:#855ce3}
.game-card .game-live-stat progress{position:absolute;left:16px;bottom:10px;width:calc(100% - 32px);height:5px;margin:0;max-height:5px}
.game-task{position:relative;isolation:isolate;min-height:430px;padding:22px 28px 52px;display:flex;flex-direction:column;align-items:center}
.game-hintbar{position:relative;z-index:2;display:flex;justify-content:flex-end;align-self:stretch;min-height:35px;margin-bottom:4px}
.learning-panel .game-hint-button{display:flex;align-items:center;gap:8px;padding:7px 15px;border:1px solid #e0e9ff;border-radius:23px;background:#fff;color:#4d75df;font-size:13px;box-shadow:0 3px 12px #95ace910}.game-hint-button>.game-lobby-icon{width:21px;height:21px}.game-hint-button[aria-expanded=true]{background:#f1f6ff}
.game-task>.game-clue{position:relative;z-index:2;max-width:700px;max-height:200px;width:100%;min-height:125px;margin:0 auto 16px;padding:0 12px;overflow:auto;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:10px}
.game-task-pos{display:inline-block;padding:3px 15px;border-radius:20px;background:linear-gradient(#f2f5ff,#eaf0ff);font-size:16px;line-height:1.5;font-weight:600;color:#5279f3}
.game-task .game-meaning{font-size:34px;line-height:1.5;font-weight:600;color:#122b67;white-space:normal;overflow-wrap:anywhere;max-width:100%;max-height:none}.game-task .game-clue-hint{font-size:13px;color:#91a2c4;line-height:1.6;margin:0;font-weight:400}
.game-extra-clue{position:relative;z-index:2;max-width:650px;width:100%;box-sizing:border-box;padding:12px 16px;border:1px solid #e7edff;border-radius:13px;background:#f5f8ff;color:#6884b2;font-size:13px;line-height:1.8;white-space:pre-line;max-height:150px;overflow:auto;margin-bottom:12px}
.game-card .game-task>.game-letter-grid{position:relative;z-index:2;max-width:870px;width:100%;min-height:78px;margin:13px auto 8px;gap:9px;align-content:center}
.game-task .game-letter{width:62px;height:70px;flex-basis:62px;border-radius:13px;border-color:#dae3ff;background:linear-gradient(#fff,#fbfcff);font-size:33px;line-height:1;color:#365c9c}.game-task .game-letter:focus{border:1.5px solid #5d7eff;box-shadow:none;outline:none}.game-task .game-letter-wrong{border-color:#e4a2b7;background:#fff8fb}
.game-task>.game-input-help{position:relative;z-index:2;font-size:10px;color:#a4b0c9;margin:0;text-align:center}.game-card .game-task>.game-feedback{position:relative;z-index:2;min-height:25px;margin:8px 0;font-size:12px;line-height:1.8;text-align:center;max-width:650px}
.game-task>.game-actions{position:relative;z-index:2;display:flex;justify-content:center;gap:14px;margin-top:7px;width:100%}.game-task .game-actions>button{min-height:43px;min-width:165px;border-radius:24px;font-size:13px;padding:10px 22px}.game-task .game-actions>.primary{border:0;background:linear-gradient(110deg,#3f75ff,#315dff);box-shadow:0 6px 18px #5e87f32b}.game-task .game-actions>.game-skip{background:#ffffffd9;border:1px solid #dce5ff;color:#8c9ebf;font-size:12px}
.game-task-decoration{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;border-radius:0 0 25px 25px;opacity:.8}
.task-wave{position:absolute;bottom:-110px;left:-15%;width:100%;height:180px;border-radius:50%;background:linear-gradient(#e6edff,#d6e4ff);transform:rotate(7deg)}.task-wave-back{left:35%;bottom:-84px;transform:rotate(-13deg);background:linear-gradient(#edf0ff,#e1e8ff)}.task-wave-front{left:-10%;bottom:-145px;width:130%;height:210px;transform:rotate(2deg);background:linear-gradient(#e2eaffaa,#d5e4ff)}
.task-left-art{position:absolute;bottom:18px;left:-22px;width:180px;height:230px;transform:rotate(-7deg)}.task-stack-book{position:absolute;bottom:0;left:0;width:156px;height:48px;border-radius:8px 13px 13px 8px;background:linear-gradient(90deg,#83a5f1 12%,#b5b9fa 13%);box-shadow:0 6px 12px #a7b5dd20;border:1px solid #b2c5f7;transform:skewY(-5deg)}.task-stack-book:after{content:'';position:absolute;left:22px;right:8px;top:7px;bottom:7px;border-radius:2px 9px 9px 2px;background:repeating-linear-gradient(#fffdf7 0 4px,#eae8e2 4px 5px)}.task-book-1{bottom:47px;left:8px;background:linear-gradient(90deg,#a19bf3 12%,#c4c5ff 13%);width:166px}.task-book-2{bottom:94px;left:-9px;background:linear-gradient(90deg,#8db0ff 12%,#b8d1ff 13%);width:160px}
.task-leaf{position:absolute;bottom:143px;left:28px;width:27px;height:89px;border-radius:90% 0 90% 0;background:linear-gradient(135deg,#d6f0ff,#a8d8ef);transform:rotate(24deg)}.task-left-leaf-1{left:70px;height:72px;background:linear-gradient(#cce8c3,#aad9c1);transform:rotate(38deg)}.task-left-leaf-2{left:4px;height:110px;transform:rotate(-15deg)}
.task-right-art{position:absolute;right:-12px;bottom:11px;width:180px;height:210px;transform:rotate(8deg)}.task-right-art .task-leaf{bottom:126px;left:auto;right:27px;height:80px;background:linear-gradient(#b3e4d9,#8bd4c5);transform:rotate(-28deg)}.task-right-art .task-right-leaf-1{right:2px;transform:rotate(16deg);height:75px}.task-right-art .task-right-leaf-2{right:58px;transform:rotate(-42deg);height:58px}
.task-notebook{position:absolute;right:18px;bottom:0;width:120px;height:155px;box-sizing:border-box;border:1px solid #dce1ff;border-right:6px solid #b6c3f9;border-bottom:6px solid #c9d3fb;border-radius:10px;background:repeating-linear-gradient(#fcfcff 0 21px,#e9eaff 21px 23px);transform:rotate(17deg);box-shadow:0 7px 18px #98a5df22;display:flex;justify-content:space-evenly;padding:0 12px}.task-notebook>i{position:relative;top:-6px;width:6px;height:14px;border:2px solid #9ba9dd;border-bottom:0;border-radius:6px}
.task-pencil{position:absolute;right:25px;bottom:0;width:13px;height:124px;border-radius:5px 5px 0 0;background:linear-gradient(90deg,#688bec,#a8beff 55%,#5275d3 55%);transform:rotate(32deg);box-shadow:1px 3px 4px #6c7eb022}.task-pencil:after{content:'';position:absolute;left:0;bottom:-16px;width:13px;height:18px;clip-path:polygon(0 0,100% 0,50% 100%);background:linear-gradient(#f5d3c7 65%,#828ba7 65%)}
#learningPanel.game-panel:fullscreen>.game-card{width:min(1120px,100%)}
@media(max-width:1250px){.game-card .game-status{gap:10px;padding:18px}.game-card .game-live-stat{gap:9px;padding:13px 11px;min-height:94px}.game-card .game-live-stat>.game-lobby-icon{width:32px;height:32px;flex-basis:32px;padding:7px}.game-card .game-live-stat small{font-size:12px}.game-card .game-live-stat strong{font-size:21px}.task-left-art{transform:scale(.8) rotate(-7deg);transform-origin:left bottom}.task-right-art{transform:scale(.8) rotate(8deg);transform-origin:right bottom}}
@media(max-width:900px){.game-card .game-live-stat>.game-lobby-icon{width:25px;height:25px;flex-basis:25px;padding:6px}.game-card .game-live-stat{gap:8px;min-height:86px}.game-card .game-live-stat small{font-size:11px}.game-card .game-live-stat strong{font-size:18px}.game-task .game-meaning{font-size:29px}.game-task{padding:17px 20px 35px}.game-task-decoration{opacity:.5}.game-task .game-letter{width:53px;flex-basis:53px;height:62px;font-size:30px}}
@media(max-width:650px){.game-card .game-status{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px;gap:9px}.game-card .game-live-stat{min-height:83px;padding:11px;gap:11px}.game-card .game-live-stat>.game-lobby-icon{width:28px;height:28px;flex-basis:28px;padding:6px}.game-card .game-live-stat small{font-size:11px}.game-card .game-live-stat strong{font-size:20px}.game-task{padding:14px 13px 30px;min-height:410px}.game-hintbar{min-height:32px}.game-task>.game-clue{min-height:110px;margin-bottom:8px;gap:8px}.game-task .game-meaning{font-size:27px}.game-task .game-clue-hint{font-size:12px}.game-task-pos{font-size:14px}.game-card .game-task>.game-letter-grid{gap:7px;min-height:67px;margin-top:9px}.game-task .game-letter{width:43px;height:54px;flex-basis:43px;font-size:28px;border-radius:10px}.game-task .game-actions{gap:9px}.game-task .game-actions>button{min-width:0;flex:1;font-size:12px;padding:10px 12px}.game-task .game-actions>.game-skip{font-size:10px}.game-task .game-actions>.primary:after{display:none}.task-left-art,.task-right-art{opacity:.45;transform:scale(.55);transform-origin:bottom}.task-left-art{left:-60px}.task-right-art{right:-60px}.game-task-decoration{opacity:.5}.learning-panel .game-hint-button{font-size:12px;padding:6px 12px}}

.game-card{container-type:inline-size;container-name:gameTask}
.game-card .game-task>.game-letter-grid.game-task-long{display:grid;grid-template-columns:repeat(var(--task-columns),minmax(0,62px));justify-content:center;align-items:center}
.game-task .game-task-long .game-letter{width:100%;min-width:0}
@container gameTask (max-width:740px){.game-card .game-status{grid-template-columns:repeat(2,minmax(0,1fr))}.game-card .game-live-stat{min-height:83px}.game-task-decoration{opacity:.45}.game-card .game-task>.game-letter-grid.game-task-mobile-long{display:grid;grid-template-columns:repeat(var(--task-columns),minmax(0,53px));justify-content:center}.game-task .game-task-mobile-long .game-letter{width:100%;min-width:0}}
@media(max-width:650px){.game-card .game-task>.game-letter-grid.game-task-mobile-long{display:grid;grid-template-columns:repeat(var(--task-columns),minmax(0,43px));justify-content:center}.game-task .game-task-mobile-long .game-letter{width:100%;min-width:0}}
@container gameTask (max-width:380px){.game-card .game-live-stat{gap:7px;padding:9px 8px}.game-card .game-live-stat>.game-lobby-icon{width:20px;height:20px;flex-basis:20px;padding:5px}.game-card .game-live-stat strong{font-size:17px}.game-card .game-live-stat small{font-size:10px}.game-task .game-meaning{font-size:24px}}
/* Compact challenge statistics so spelling remains the primary focus. */
.game-card .game-status{padding:14px 20px;gap:12px}
.game-card .game-live-stat{min-height:72px;padding:10px 13px;gap:11px;border-radius:14px}
.game-card .game-live-stat:nth-child(1){padding-bottom:16px}
.game-card .game-live-stat>.game-lobby-icon{width:29px;height:29px;flex-basis:29px;padding:7px}
.game-card .game-live-stat small{font-size:11px;font-weight:500}
.game-card .game-live-stat strong{font-size:22px;line-height:1.25;margin-top:3px}
.game-card .game-live-stat progress{height:4px;bottom:7px;left:13px;width:calc(100% - 26px)}
@media(max-width:900px){.game-card .game-status{padding:12px 14px;gap:10px}.game-card .game-live-stat{min-height:66px;padding:9px 11px;gap:9px}.game-card .game-live-stat>.game-lobby-icon{width:24px;height:24px;flex-basis:24px;padding:6px}.game-card .game-live-stat strong{font-size:20px}}
@media(max-width:650px){.game-card .game-status{padding:11px;gap:8px}.game-card .game-live-stat{min-height:63px;padding:8px 10px;gap:9px}.game-card .game-live-stat:nth-child(1){padding-bottom:14px}.game-card .game-live-stat>.game-lobby-icon{width:22px;height:22px;flex-basis:22px;padding:5px}.game-card .game-live-stat strong{font-size:19px}}
@container gameTask (max-width:740px){.game-card .game-live-stat{min-height:65px}}
@container gameTask (max-width:380px){.game-card .game-live-stat{min-height:61px;gap:6px;padding:8px}.game-card .game-live-stat>.game-lobby-icon{width:19px;height:19px;flex-basis:19px;padding:4px}.game-card .game-live-stat strong{font-size:17px}.game-card .game-live-stat small{font-size:10px}}

.game-task .game-clue-hint{display:flex;align-items:center;justify-content:center;gap:9px}

.game-task>.game-clue{max-height:none;overflow:visible;margin-top:14px}.game-all-meanings{max-width:100%;text-align:left;display:flex;flex-direction:column;gap:10px}.game-sense-row{display:flex;align-items:baseline;gap:12px}.game-sense-row>.game-task-pos{flex-shrink:0;min-width:28px;text-align:center}.game-sense-text{font-size:16px;line-height:1.65;color:#17346e;overflow-wrap:anywhere;white-space:pre-line}.game-task>.game-letter-grid{margin-top:20px}@media(max-width:650px){.game-sense-text{font-size:16px}.game-sense-row{gap:9px}}

.game-sense-row>.game-task-pos{font-size:14px}

.game-card .game-task>.game-letter-grid,.game-task>.game-clue{top:24px}@media(max-width:650px){.game-card .game-task>.game-letter-grid,.game-task>.game-clue{top:16px}}

.spelling-card>.spelling-boxes,.spelling-card>.spelling-pronunciation,.spelling-card>.spelling-meaning{position:relative;top:24px}

.game-practice-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;margin:20px 0;border:1px solid #e1eaff;border-radius:20px;background:linear-gradient(110deg,#f4f9ff,#f2fbf7)}.game-practice-entry h2{font-size:20px;margin:0 0 10px;color:#17346e}.game-practice-entry p{font-size:13px;margin:7px 0}.game-practice-total{color:#4d7cb3}.game-practice-controls{display:flex;align-items:flex-end;gap:16px}.game-practice-controls label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#607ca7}.game-practice-controls select{min-width:180px;max-width:100%;padding:10px;border:1px solid #dce6ff;border-radius:11px;background:white;color:#31558a;font:inherit}@media(max-width:700px){.game-practice-entry{align-items:stretch;flex-direction:column}.game-practice-controls{flex-wrap:wrap}}

.game-card .game-status.game-practice-status{grid-template-columns:repeat(2,minmax(0,1fr))}.game-practice-status>.game-live-stat[hidden]{display:none!important}

.game-skip-pronunciation{position:relative;top:24px;z-index:2;display:flex;align-items:center;justify-content:center;gap:9px;height:32px;min-height:32px}.game-skip-pronunciation .phonetic{font-size:13px;color:#8099c1}.game-task>.game-skip-pronunciation+.game-clue{margin-top:5px}@media(max-width:650px){.game-skip-pronunciation{top:16px}}

.game-skip-pronunciation .audio-review svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}

.learning-panel .game-skip-pronunciation .audio-review,.learning-panel .game-skip-pronunciation .audio-review:hover,.learning-panel .game-skip-pronunciation .audio-review:active{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;min-width:26px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#547dff;line-height:1;flex-shrink:0}.game-skip-pronunciation .phonetic{display:inline-flex;align-items:center;margin:0;line-height:26px}.game-skip-pronunciation .audio-review svg{display:block;flex-shrink:0}

.challenge-personal-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:12px;margin-bottom:4px;background:#edf4ff}.challenge-personal-icon.completed{background:#eaf9f3}.challenge-personal-icon.accuracy{background:#f3edff}.challenge-personal-metrics .challenge-personal-icon>.game-lobby-icon{width:21px;height:21px;margin:0;display:block}
/* Daily composition: new words and review events share a single segmented bar. */
.stats-week-composition .week-row{grid-template-columns:102px 42px 114px 114px minmax(120px,1fr);gap:12px;padding:8px 10px;min-height:44px;border-radius:0;border-bottom:1px solid #edf2fc;background:transparent}
.stats-week-composition .week-row:last-child{border-bottom:0}
.stats-week-composition .week-new-text,.stats-week-composition .week-review-text{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:4px 10px;border-radius:15px;white-space:nowrap;color:#587096}
.stats-week-composition{--week-new:#678efa;--week-review:#b9e03d}.stats-week-composition .week-new-text{background:#edf2ff}.stats-week-composition .week-review-text{background:#f3f9df}
.stats-week-composition .week-new-text b{color:#245bff}.stats-week-composition .week-review-text b{color:#18bf80}.stats-week-composition .legend-new:before{background:var(--week-new)}.stats-week-composition .legend-review:before{background:var(--week-review)}
.week-composition-bar{display:grid;grid-template-columns:repeat(40,minmax(0,1fr));gap:4px;align-items:center;min-width:0;margin-left:12px;padding:2px 0}
.week-block{display:block;min-width:0;aspect-ratio:1;border-radius:4px;box-shadow:inset 0 0 0 1px #ffffff50;background:#e3e9f2}.week-block.new{background:var(--week-new)}.week-block.review{background:var(--week-review)}.week-block.mixed{background:linear-gradient(90deg,var(--week-new) 0 var(--new-share),var(--week-review) var(--new-share) 100%)}
@media(max-width:1100px){.stats-week-composition .week-row{grid-template-columns:86px 34px 108px 108px minmax(100px,1fr);gap:8px}.week-composition-bar{margin-left:6px}}
@media(max-width:800px){.stats-week-composition .week-row{grid-template-columns:90px 36px minmax(90px,1fr) minmax(90px,1fr);gap:8px;padding:10px 6px}.stats-week-composition .week-composition-bar{grid-column:1/-1;margin:3px 0 0}.stats-week-composition .week-new-text,.stats-week-composition .week-review-text{padding:4px 8px}}
@media(min-width:801px) and (max-width:1100px){.stats-week-composition .week-row{grid-template-columns:86px 34px minmax(108px,1fr) minmax(108px,1fr)}.stats-week-composition .week-composition-bar{grid-column:1/-1;margin:3px 0 0}}
@media(max-width:650px){.week-composition-bar{grid-template-columns:repeat(20,minmax(0,1fr))}}

/* Align the three learning page headings against the same panel inset. */
.learning-panel.review-dashboard,.learning-panel.stats-view,.learning-panel.game-panel:not(:fullscreen){padding-top:26px;padding-inline:26px}
@media(max-width:650px){.learning-panel.review-dashboard,.learning-panel.stats-view,.learning-panel.game-panel:not(:fullscreen){padding-top:18px;padding-inline:18px}}

/* Compact reading controls; font-size selection is indicated by text color. */
.view-options{gap:8px}
.view-options .font-settings{gap:3px}
.view-options .font-settings button{padding:7px;border:0;background:transparent;box-shadow:none}
.view-options .font-settings button[aria-pressed=true]{color:#245be8;background:transparent;box-shadow:none}
.view-options .page-size{gap:6px}
.view-options .page-size .custom-select{width:80px}
.view-options .page-size .select-trigger{padding:7px 9px;border-radius:10px}
.view-options .meaning-toggle{padding:6px 2px}

/* Equal halves, with the divider exactly at the goal card midpoint. */
.stats-view .stats-goal{position:relative;grid-template-columns:repeat(2,minmax(0,1fr))}
.stats-view .stats-goal:before{content:'';position:absolute;left:50%;top:22px;bottom:22px;width:1px;background:#eef1fa;pointer-events:none}
.stats-view .stats-goal>.goal-main{min-width:0}
.stats-view .stats-goal>.goal-circle{border-left:0;min-width:0}
@media(max-width:650px){.stats-view .stats-goal:before{top:18px;bottom:18px}}
.challenge-banner>strong,.challenge-banner>span{white-space:pre-wrap;overflow-wrap:anywhere}

/* Mobile viewport containment: shrink actual layout tracks before clipping decoration. */
@media(max-width:800px){
 html{width:100%;max-width:100%;overflow-x:clip}
 body:not(.admin-page){width:100%;max-width:100%;overflow-x:clip}
 body:not(.admin-page):before{width:65vw;height:180px;left:18%;top:-110px}
 .topbar{width:100%;padding:12px;align-items:center;flex-wrap:nowrap;gap:12px}
 .topbar>div:first-child{min-width:0;flex:0 1 auto}
 .topbar .brand{max-width:100%}
 .topbar .brand-logo{height:30px;width:auto;max-width:100%}
 .topbar .summary{width:auto;min-width:0;max-width:calc(100% - 90px);flex:0 1 auto;flex-wrap:nowrap;margin-left:auto}
 .topbar .summary>.account-entry{min-width:0;max-width:100%;align-items:center;flex-wrap:nowrap}
 .topbar .account-entry-copy{min-width:0;max-width:100px}
 .topbar .account-entry .account-entry-copy>#syncStatus{max-width:100%}
 .workspace{width:100%;max-width:100%;grid-template-columns:minmax(0,1fr);margin:0;padding:0 8px 12px}
 .workspace>*,.workspace>main,.library,.learning-panel{min-width:0;max-width:100%}
 .library .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 0 12px}
 .library .toolbar .search{grid-column:1/-1;width:100%;min-width:0;gap:10px;padding:0 12px}
 .library .toolbar .search input{min-width:0;max-width:100%;width:100%;flex:1}
 .library .toolbar .filter{min-width:0;width:100%;max-width:100%;padding:0;gap:6px;box-shadow:none}
 .library .toolbar .filter .custom-select{min-width:0;width:100%;max-width:100%;flex:1 1 100%}
 .library .toolbar .filter .select-trigger{width:100%;min-width:0;gap:6px;padding:8px 10px}
 .library .toolbar .filter .select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .library .list-heading,.library .list-heading>div,.library .view-options{min-width:0;max-width:100%}
 .library .list-heading>div,.library .view-options{flex-wrap:wrap}
 .library .word,.library .phonetic,.library .meaning,.library details{overflow-wrap:anywhere;min-width:0}
 .game-lobby-layout,.game-lobby-main,.game-lobby-side,.game-practice-controls{min-width:0;max-width:100%}
 .game-practice-controls label{min-width:0;max-width:100%;flex:1 1 150px}
 .game-practice-controls .custom-select{min-width:0;width:100%;max-width:100%}
 .stats-week-composition .week-row{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
 .stats-week-composition .week-day{text-align:right}
 .stats-week-composition .week-new-text,.stats-week-composition .week-review-text{min-width:0;padding-inline:6px}
 .goal-ring-copy{min-width:0;max-width:100%}
 .goal-ring-copy .total-goal-count{white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:650px){
 .library .table-wrap{max-width:100%;overflow:visible}
 .library table,.library tbody,.library tr,.library td{display:block;width:100%;min-width:0;max-width:100%}
 .library thead{display:none}
 .library table{border-spacing:0}
 .library tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:8px 0;padding:12px;border-radius:16px;background:#fff;box-shadow:0 3px 12px #c4d1f519}
 .library td,.library td:first-child,.library td:last-child{width:auto;min-width:0;padding:0;background:none;border-radius:0;box-shadow:none}
 .library td:first-child{grid-column:1;grid-row:1}
 .library td:nth-child(2){grid-column:1/-1;grid-row:2}
 .library td:last-child{grid-column:2;grid-row:1;align-self:center}
}
.select-menu>.select-group-divider{height:0;margin:7px 10px;border-top:1px dashed #dce5f3;pointer-events:none}

/* Site-owner urgent notices: one complete message rolls upward at a time. */
.site-notices{display:flex;align-items:center;gap:9px;flex:1;min-width:0;max-width:none;margin:0;padding:6px 10px;border:0;border-radius:13px;background:#ffffff24}
.site-notices[hidden],.site-notices [hidden]{display:none!important}
.notice-bell{position:relative;display:flex;flex:0 0 24px;color:#4e8cf5}.notice-bell svg{width:24px;height:24px}
.site-notices .notice-content{display:block;min-width:0;flex:1;margin:0;padding:0 2px;color:#526f9c}
.notice-viewport{display:block;height:28px;overflow:hidden;min-width:0}
.notice-track{position:relative;display:block;will-change:transform}
.notice-row{display:block;height:28px;line-height:28px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:851px){.topbar{display:grid;grid-template-columns:258px minmax(0,1fr) auto;column-gap:12px;padding-left:28px;padding-right:28px}.topbar>.summary{grid-column:3}.topbar>.site-notices{grid-column:2;grid-row:1}.topbar>div:first-child{grid-column:1;grid-row:1}}
@media(min-width:851px) and (max-width:1250px){.topbar{grid-template-columns:205px minmax(0,1fr) auto;padding-left:18px;padding-right:18px}}
@media(max-width:850px){.topbar{display:grid;grid-template-columns:minmax(70px,1fr) auto}.topbar>div:first-child{grid-column:1;grid-row:1}.topbar .summary{grid-column:2;grid-row:1;max-width:100%;width:auto}.topbar .site-notices{grid-column:1/-1;grid-row:2;width:100%;max-width:100%;margin:0}.site-notices{padding:4px 8px}}




/* Transparent hit area lets clicks outside a popup cancel it without reaching the page. */
html body .modal-layer::before{content:"";position:fixed;inset:0;pointer-events:auto;z-index:-1}

.account-avatar-editor{margin:0 0 16px}.account-avatar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.account-avatar-actions button{padding:7px 12px;border:1px solid #dbe5ff;border-radius:10px;background:#fff;color:#4267b4;cursor:pointer}.account-avatar-actions button.primary{background:#4563ff;color:white;border-color:#4563ff}.account-avatar-actions button:disabled{opacity:.55;cursor:default}.account-avatar-editor #avatarStatus{margin:6px 0 0;overflow-wrap:anywhere;color:#587096}.account-avatar-editor [hidden]{display:none!important}
#accountDialog #newUsername{background-image:none;padding-left:13px}
.challenge-board-scope{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}.challenge-board-scope select{max-width:100%;padding:6px 10px;border:1px solid #dce6ff;border-radius:10px;background:white;color:inherit;font:inherit}
.registration-captcha-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:8px}.registration-captcha-controls img{max-width:100%;border-radius:10px}.registration-captcha-controls input{flex:1 1 100%;min-width:0}

.registration-captcha-controls button{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border:1px solid #dce5fb;border-radius:10px;background:#f4f7ff;color:#355fba;font:inherit;cursor:pointer;transition:background .16s,border-color .16s}
.registration-captcha-controls button:hover{background:#eaf0ff;border-color:#c3d2ff}
.registration-captcha-controls button:focus-visible{outline:2px solid #a8bfff;outline-offset:2px}

/* Honor membership has a blue/lime border and no added crown badge. */
.account-entry>#accountButton.honor-member-avatar{border:2px solid transparent;background:linear-gradient(#f5f7ff,#f5f7ff) padding-box,linear-gradient(135deg,#3465ff 0%,#4288f5 35%,#b4df30 100%) border-box;box-shadow:0 3px 12px #7baacb2b}
#accountProfileAvatar.honor-member-avatar{box-sizing:border-box;border:2px solid transparent;background:linear-gradient(#f5f7ff,#f5f7ff) padding-box,linear-gradient(135deg,#3465ff,#b4df30) border-box}
.account-entry .premium-crown,.account-profile-avatar .profile-crown{display:none!important}

.account-edit-section{margin-top:16px;border-top:1px solid #e7edfa;padding-top:14px}
.account-edit-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;color:#193574;font-size:var(--font-subheading);font-weight:600;line-height:1.5;padding:4px 0}
.account-edit-section>summary::-webkit-details-marker{display:none}
.account-edit-section>summary::after{content:'';width:8px;height:8px;flex:0 0 8px;border-right:2px solid #819bd2;border-bottom:2px solid #819bd2;transform:rotate(45deg);margin-right:5px}
.account-edit-section[open]>summary::after{transform:rotate(225deg)}
.account-edit-section>summary:focus-visible{outline:2px solid #a8bfff;outline-offset:4px;border-radius:4px}
.account-edit-section[open]>summary{margin-bottom:12px}

/* Leave breathing room between the daily target and the total-goal divider. */
@media(min-width:651px){.stats-goal>.goal-main{width:75%;min-width:0}.stats-goal>.goal-main .goal-track{width:100%}}

/* Five learning metrics, including the account's consecutive learning days. */
.stats-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
.stats-metric.orange{background:linear-gradient(115deg,#fff7e8,#fff2e3);--accent:#ef9b2e;--decor:#ffe0ac}
@media(min-width:651px) and (max-width:1000px){.stats-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.stats-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-metric.orange{grid-column:1/-1}}

.account-avatar-editor #avatarStatus:empty{display:none}

.sidebar .nav-item>.icon.nav-artwork{fill:currentColor;stroke:none;color:inherit;transform-origin:center}

.sidebar .nav-item>.icon.nav-artwork>path{fill:currentColor;stroke:none}

.sidebar .nav-item[data-view="all"]>.icon.nav-artwork{transform:translateX(3px) scale(1.28)}
.sidebar .nav-item[data-view="stats"]>.icon.nav-artwork{transform:scale(.84)}

/* Title artwork uses the supplied images without their surrounding whitespace. */
.challenge-section-heading>.challenge-heading-art{display:block;flex:0 0 30px;width:30px;height:30px;background-repeat:no-repeat}
.challenge-section-heading>.challenge-heading-art.trophy{flex-basis:34px;width:34px;height:34px;background-image:url('/challenge-trophy.png?v=20261028');background-size:54.324px 37.512px;background-position:-10.35px -1.89px}
.challenge-heading-art.analytics{background-image:url('/challenge-analytics.png?v=20261028');background-size:40.128px 40.128px;background-position:-5.28px -5.28px}

.challenge-board-list>.challenge-board-row:nth-child(5):has(+.challenge-board-rotation){border-bottom:1px solid #f0f3fa}
.challenge-board-rotation{height:46px;overflow:hidden}
.challenge-board-track{will-change:transform}
.challenge-board .challenge-board-track>.challenge-board-row{height:46px;box-sizing:border-box;border-bottom:0}

.review-pagination{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:18px 0}
.review-page-jump,.review-page-jump label{display:flex;align-items:center;gap:8px}
.review-page-jump input{width:72px;padding:8px;border:1px solid #dce6ff;border-radius:9px;background:#fff;color:var(--ink);font:inherit}
.review-pagination button:disabled{opacity:.45;cursor:default}
@media(max-width:650px){.review-pagination{gap:8px}.review-pagination>.muted{order:-1;width:100%;text-align:center}}
