/*
 * 单词小岛统一视觉规范 v1
 * 最后加载的表现层。页面沿用相同文字、间距、色彩与组件规范。
 * 学习状态、奖励、语音和账号逻辑由原功能模块负责。
 */
:root,:root[data-theme]{
 --text-primary:#242e3e;--text-secondary:#566275;--text-caption:#687487;
 --surface:#fff;--surface-subtle:#f8f9fc;--page-bg:#f5f7fa;--stroke:#e2e7ee;
 --ui-ink:var(--text-primary);--ui-muted:var(--text-caption);--ui-bg:var(--page-bg);
 --ui-wash:var(--surface-subtle);--ui-border:var(--stroke);
 --ink:var(--text-primary);--muted:var(--text-caption);--line:var(--stroke);
 --font-ui:'Segoe UI','Microsoft YaHei UI','Microsoft YaHei','PingFang SC',sans-serif;
 --font-word:'Segoe UI',Arial,'Microsoft YaHei UI',sans-serif;
 --font-xs:12px;--font-sm:14px;--font-body:16px;--font-title:20px;--font-page:28px;
 --weight-normal:400;--weight-medium:600;--weight-heading:700;
 --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;
 --radius-control:12px;--radius-card:20px;--shadow-card:0 3px 16px #23364d05;
}
html{scroll-padding-bottom:120px}body{background:var(--page-bg);font-family:var(--font-ui);font-size:var(--font-body);line-height:1.65;color:var(--text-primary);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:var(--font-ui);letter-spacing:0}button{font-weight:var(--weight-medium);line-height:1.5;transition:background .15s,border-color .15s,box-shadow .15s}button:disabled{opacity:.5}
h1,h2,h3,h4,p{letter-spacing:0}h1,h2,h3,h4{color:var(--text-primary);font-weight:var(--weight-heading);line-height:1.4}b,strong{font-weight:var(--weight-medium)}small{font-size:var(--font-sm);line-height:1.6}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2b66b5;outline-offset:3px}
.ui-icon{width:22px;height:22px;display:block;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.layout,.parent-mode{background:var(--page-bg);grid-template-columns:216px minmax(0,1fr)}
.sidebar{width:216px;padding:28px 16px 20px;background:var(--surface);border-right:1px solid var(--stroke)}
.brand{padding:0 10px 32px;gap:10px}.brand-mark{width:38px;height:40px;font-size:25px;border-radius:13px;background:var(--ui-primary);color:#483817;box-shadow:none;transform:none}.brand b{font-size:20px;font-weight:700;letter-spacing:.5px;color:var(--text-primary)}.brand small{font-size:9px;letter-spacing:1.8px;color:var(--text-caption);margin-top:3px}
.nav{gap:8px}.nav button{min-height:52px;border:1px solid transparent;border-radius:12px;padding:12px 16px;gap:12px;font-size:15px;font-weight:600;color:var(--text-secondary);text-align:left;background:transparent;box-shadow:none}
.nav span,.nav button:not(.active) span{width:24px;height:26px;border-radius:0;background:transparent!important}.nav button.active{background:var(--ui-soft);border-color:transparent;color:var(--ui-strong);box-shadow:none}.nav button.active span{background:transparent}.nav button:not(.active):hover{background:var(--surface-subtle);border-color:transparent}
.mini-note{padding:16px;background:var(--surface-subtle);border:1px solid var(--stroke);border-radius:14px;font-size:13px;font-weight:400;line-height:1.8;color:var(--text-secondary);margin:24px 0 12px}.mini-note::after{display:none}
.parent-link{font-size:14px;display:flex;align-items:center;gap:8px;color:var(--text-secondary);padding:8px 12px;min-height:44px}.parent-link .ui-icon{width:18px;height:18px}.sidebar-bottom .inline-note{font-size:12px;color:var(--text-caption);padding-left:12px!important}
.main{min-width:0;width:100%;max-width:1440px;padding:28px 36px 32px;margin:0 auto}.topbar{display:flex;flex-wrap:nowrap;align-items:center;gap:16px;min-height:44px;margin-bottom:32px}.crumb{font-size:13px;line-height:1.5;letter-spacing:0;color:var(--text-caption)}.top-right{gap:8px;flex-shrink:0;margin-left:auto}.top-right .avatar{display:none}
.badge,.account-switch,.top-right [data-route=wallet]{min-height:40px;padding:8px 12px;border:1px solid var(--stroke);border-radius:12px;background:var(--surface);color:var(--text-secondary);font-size:13px;font-weight:600;box-shadow:none;line-height:1.5}.top-right [data-route=wallet]{background:var(--ui-soft);border-color:transparent;color:var(--ui-strong);font-variant-numeric:tabular-nums}.account-switch{max-width:175px}.theme-shortcut{gap:7px}.theme-dot{border:1px solid #0002;width:15px;height:15px}
.hello,.pagehead{margin-bottom:24px}.hello{align-items:center;gap:20px}.hello h1,.pagehead h1,.map-heading h1,.book-header h1,.journey-intro h1{font-size:var(--font-page);font-weight:700;line-height:1.4;color:var(--text-primary);margin:0 0 8px}.hello h1 .wave{font-size:25px;margin-left:6px;transform:none}.hello p,.pagehead p{font-size:15px;line-height:1.7;color:var(--text-secondary);margin:0;max-width:760px}.date-pill{padding:0;border:0;border-radius:0;background:transparent;font-size:13px;color:var(--text-caption)}
.eyebrow,.map-kicker{font-size:12px;letter-spacing:.6px;color:var(--text-caption);font-weight:600}.pagehead>.eyebrow,.hello .eyebrow,.book-header .eyebrow,.map-kicker{display:none}
.dashboard{grid-template-columns:minmax(0,1fr) 272px;gap:24px}.dashboard>section,.aside{min-width:0}
.hero{min-height:284px;padding:28px 32px;background:linear-gradient(110deg,var(--ui-soft),#fffdf7);border:1px solid var(--stroke);border-radius:var(--radius-card);box-shadow:none;overflow:hidden}.hero::after{display:none}.hero-copy{max-width:65%}.hero-tag{padding:0;background:none;border-radius:0;color:var(--ui-strong);font-size:13px;font-weight:600;letter-spacing:0;gap:7px;align-items:center}.hero-tag .ui-icon{width:17px;height:17px}
.hero h2{font-size:30px;line-height:1.4;letter-spacing:0;font-weight:700;margin:12px 0;color:var(--text-primary)}.hero h2 em{color:var(--text-primary);font-weight:700}.hero p{font-size:14px;color:var(--text-secondary);line-height:1.75;margin:0 0 20px;max-width:340px}.hero-art{width:38%;right:12px;bottom:5px;opacity:1}.hero-art img{filter:none}
.btn,.hero .btn,.btn.orange,.parent-mode .btn{min-height:46px;border:1px solid transparent;border-radius:var(--radius-control);padding:11px 18px;font-size:15px;font-weight:600;line-height:1.5;background:var(--ui-primary);color:var(--text-primary);box-shadow:none;text-decoration:none;gap:8px;white-space:normal;overflow-wrap:anywhere}
.btn:hover,.hero .btn:hover{background:var(--ui-glow);border-color:transparent;box-shadow:none}.btn:active{box-shadow:none;transform:translateY(1px)}.btn.white{background:var(--surface);border:1px solid var(--stroke);color:var(--text-secondary);box-shadow:none}.btn.light{background:var(--ui-soft);color:var(--ui-strong);border-color:transparent;box-shadow:none}.btn.white:hover{background:var(--surface-subtle);border-color:#cad2de}.btn.light:hover{background:var(--ui-glow)}.btn.danger{background:#fff1f0;border:1px solid #f5d4d0;color:#b13d35;box-shadow:none}.btn.small,.parent-mode .btn.small{font-size:14px;min-height:42px;padding:9px 14px}
.stats{gap:16px;margin:20px 0 28px}.stat{padding:20px;border:1px solid var(--stroke);border-radius:16px;box-shadow:none;gap:14px;background:var(--surface)}.stat-icon,.stat:nth-child(2) .stat-icon,.stat:nth-child(3) .stat-icon{width:38px;height:38px;border-radius:12px;background:var(--surface-subtle)!important;color:var(--text-secondary);font-size:22px;flex-shrink:0}.stat-icon .ui-icon{width:22px;height:22px}.stat strong{font-size:28px;line-height:1.2;color:var(--text-primary);font-weight:700;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.stat-total{font-size:15px;color:var(--text-caption);font-weight:400}.stat small{font-size:13px;line-height:1.5;color:var(--text-caption);margin-top:6px}
.section-head{align-items:center;gap:16px;margin-bottom:16px}.section-head h2,.parent-mode .section-head h2{font-size:20px;font-weight:700;color:var(--text-primary);letter-spacing:0;margin:0}.section-head small,.task-heading p{font-size:13px;font-weight:400;line-height:1.6;color:var(--text-caption)}.task-heading{align-items:flex-end}.task-heading h2{margin-bottom:4px}.task-heading p{margin:0}
.task-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.task{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:12px;min-height:120px;padding:18px 20px;border:1px solid var(--stroke);border-radius:16px;background:var(--surface);box-shadow:none;color:var(--text-primary);overflow:visible}.task-review{grid-column:1/-1;min-height:100px}.task:hover{transform:none;background:var(--surface);border-color:var(--ui-primary);box-shadow:0 0 0 1px var(--ui-primary)}.task:active{transform:translateY(1px)}.task-icon{width:44px;height:44px;font-size:24px;border-radius:13px;color:var(--task);background:var(--task-soft)}.task-icon .ui-icon{width:24px;height:24px}.task-copy{padding:10px 0;min-width:0}.task-title{font-size:17px;font-weight:600;line-height:1.5;margin:0 0 4px}.task-description{font-size:13px;font-weight:400;line-height:1.65;color:var(--text-caption);padding-right:10px}
.task .points,.task .complete-tag{font-size:12px;font-weight:600;line-height:1.5;background:var(--surface-subtle);color:var(--text-secondary);border-radius:7px;padding:3px 7px;top:10px;right:12px}.task .complete-tag{background:#edf7f1;color:#23704c}.task-arrow{font-size:18px;color:#a2aab8;bottom:10px;right:14px}.task.is-done{border-color:#d8e9df}
.card,.chapter-card,.game-choice,.book-word-card{border:1px solid var(--stroke);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:24px;background:var(--surface)}.card-label{font-size:14px;font-weight:600;color:var(--text-secondary);letter-spacing:0;margin-bottom:16px}.reward-card{background:var(--surface);border:1px solid var(--stroke);text-align:center;padding:24px}.reward-card .card-label{color:var(--text-secondary)}.reward-card h3{font-size:20px;font-weight:600;color:var(--text-primary);line-height:1.4;margin:0 0 10px}.reward-card .muted{font-size:13px;color:var(--text-caption);line-height:1.75;margin:0 0 20px}.reward-card{margin-top:20px;text-align:left}.reward-card .row{flex-wrap:wrap;gap:4px}.reward-card .row small{font-size:12px;color:var(--text-caption)}.reward-card .badge-link{font-size:13px;font-weight:600;color:var(--ui-strong)}
.fragment{width:38px;min-width:38px;height:38px;font-size:23px;border:1px dashed #d3dbe5;background:var(--surface-subtle);color:#a0aaba;border-radius:10px}.fragment.on{border:1px solid var(--ui-primary);background:var(--ui-soft);color:var(--ui-strong);box-shadow:none}.fragments{gap:8px;margin:20px 0}.tip{background:transparent;border:0;border-radius:0;padding:0 4px;color:var(--text-caption);font-size:13px;font-weight:400;line-height:1.9;margin-top:20px}
.muted{font-size:14px;color:var(--text-secondary);line-height:1.75}.inline-note{font-size:13px;color:var(--text-caption);line-height:1.75}.banner,.accent-panel{font-size:14px;color:var(--text-secondary);line-height:1.8;background:var(--surface-subtle);border:1px solid var(--stroke);border-radius:14px;padding:16px 20px;margin-bottom:24px}.status,.parent-pill{background:var(--surface-subtle);border:1px solid var(--stroke);color:var(--text-secondary);font-size:12px;font-weight:400;border-radius:8px;padding:4px 8px;line-height:1.5}.empty{font-size:15px;color:var(--text-caption);line-height:1.8}.back,.badge-link{font-size:14px;font-weight:600;color:var(--text-secondary);line-height:1.5;min-height:44px}.back{margin:0}.footer{font-size:12px;color:var(--text-caption);line-height:1.75;margin-top:32px;padding-top:20px;border-top:1px solid var(--stroke)}
/* Lists and tabs */
.tabs,.book-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px;padding:4px;border-radius:14px;background:#eaf0f5;border:0;width:fit-content;max-width:100%}.tabs button,.book-tabs button{border:0;border-radius:10px;background:transparent;color:var(--text-secondary);font-size:15px;font-weight:600;line-height:1.5;padding:10px 18px;min-height:44px;box-shadow:none;flex:initial}.tabs button.active,.book-tabs button[aria-pressed=true]{background:var(--surface);color:var(--text-primary);box-shadow:0 1px 5px #1f334515;border:0}.book-tabs span{background:var(--surface-subtle);border-radius:6px;padding:1px 6px;font-size:12px;min-width:22px;margin-left:5px;color:var(--text-caption)}
.grid3{gap:20px}.shop-card .item-icon{height:108px;border:0;border-radius:14px;background:var(--ui-soft);font-size:43px}.shop-card h3{font-size:18px;font-weight:600;line-height:1.5;margin:18px 0 8px;color:var(--text-primary)}.shop-card p{font-size:14px;line-height:1.7;color:var(--text-caption);min-height:48px}.shop-card .row{align-items:center;gap:12px}.shop-card .row>strong{color:var(--text-primary)!important;font-size:16px;font-weight:600;white-space:nowrap}.shop-card .btn{flex-shrink:0}.two-col{gap:24px}.ledger-row{padding:18px 0;gap:16px;border-color:var(--stroke);font-size:15px;line-height:1.7}.ledger-row p{font-size:15px;font-weight:400;line-height:1.7;margin:0 0 6px}.ledger-row small{font-size:13px;color:var(--text-caption)}.ledger-row>strong{font-variant-numeric:tabular-nums;font-weight:600}.positive{color:#24764e}.negative{color:#b4483b}
/* Word map: white paper, clear columns, one accent for selection. */
.vocab-map{color:var(--text-primary);max-width:1160px;padding-bottom:100px}.map-header{background:var(--ui-soft);border:1px solid var(--stroke);border-radius:20px 20px 0 0;padding:28px 28px 0}.map-header:after{display:none}.map-heading{align-items:center;gap:24px}.map-heading h1{font-size:28px}.map-heading p{font-size:14px;color:var(--text-secondary);line-height:1.7}.map-selectors{gap:12px;max-width:360px;flex-shrink:0}.map-selectors label{font-size:12px;font-weight:400;color:var(--text-caption);gap:5px}.map-selectors select{font-size:14px;font-weight:400;color:var(--text-primary);background:#ffffffb8;border:1px solid #d8dee5;border-radius:10px;min-height:40px;padding:8px 28px 8px 12px;max-width:245px}
.map-chapters{display:flex;flex-wrap:wrap;overflow:visible;gap:4px 8px;padding:20px 0 12px}.map-chapters button{font-size:16px;font-weight:600;line-height:1.5;min-height:44px;padding:10px 16px;border-radius:10px;color:var(--text-secondary);background:transparent;white-space:normal}.map-chapters button[aria-pressed=true]{background:var(--surface);color:var(--text-primary);box-shadow:0 1px 4px #1f334510}.map-chapters button[aria-pressed=true]:after{display:none}.map-chapters button:hover{background:#ffffff80}
.map-sheet{background:var(--surface);border:1px solid var(--stroke);border-top:0;border-radius:0 0 20px 20px;box-shadow:none;padding:0 28px 24px}.map-sheet-head{padding:24px 0 20px;border-color:var(--stroke);gap:16px}.map-sheet-head h2{font-size:20px;font-weight:700;color:var(--text-primary)}.map-count{font-size:15px;font-weight:400;color:var(--text-caption);margin-left:4px}.map-sheet-head p{font-size:13px;color:var(--text-caption);line-height:1.6}.map-toolbar{gap:16px;padding:20px 0}.map-masks{gap:4px;background:var(--surface-subtle);border-radius:11px;padding:4px}.map-masks button{font-size:14px;font-weight:600;min-height:40px;padding:8px 14px;border-radius:8px;background:transparent;color:var(--text-caption);box-shadow:none}.map-masks button[aria-pressed=true]{background:var(--surface);color:var(--text-primary);box-shadow:0 1px 5px #23364d12}.map-filters{gap:8px}.map-filters select{font-size:14px;color:var(--text-secondary);background:var(--surface);border:1px solid var(--stroke);border-radius:10px;min-height:42px;padding:8px 26px 8px 12px;max-width:145px}
.map-word-list{gap:12px}.map-word-entry .map-word-row{padding:24px 62px 24px 24px;min-height:124px;border:1px solid var(--stroke);border-radius:16px;background:var(--surface);box-shadow:none;transform:none}.map-word-entry:not(:first-child) .map-word-row:not(.is-selected):not(.is-playing){border-color:var(--stroke)}.map-word-entry:first-child .map-word-row{border-color:var(--stroke)}.map-word-entry .map-word-row:hover{border-color:var(--ui-primary);box-shadow:0 0 0 1px var(--ui-primary);transform:none}.map-word-entry .map-word-row.is-selected{border-color:var(--ui-primary);box-shadow:0 0 0 1px var(--ui-primary);background:var(--surface)}.map-word-entry .map-word-row.is-playing{border-color:var(--ui-primary);background:var(--ui-wash);box-shadow:none}
.map-word-en{padding-right:24px;border-right:1px solid var(--stroke);gap:8px}.map-word-en strong{font-family:var(--font-word);font-size:26px;font-weight:600;line-height:1.25;color:var(--text-primary)}.map-word-en .textbook-ipa,.map-word-en .reference-ipa{font-size:16px;font-weight:400;line-height:1.5;letter-spacing:0;color:var(--text-secondary)}.map-word-en .reference-ipa b,.map-word-en .textbook-ipa b{font-family:var(--font-ui);font-size:11px;font-weight:400;color:var(--text-caption);margin-right:6px}.map-word-zh{font-size:18px;font-weight:400;line-height:1.7;padding:6px 0 6px 24px;color:var(--text-primary)}.map-word-number{font-size:11px;font-weight:400;line-height:1;background:transparent;color:var(--text-caption);padding:0;top:14px;right:20px;border-radius:0}.map-word-state{color:#27754e;font-size:12px;font-weight:400}.map-word-entry .map-star{top:34px;right:12px;min-width:38px;min-height:38px;background:transparent;border:1px solid transparent;box-shadow:none}.map-word-row .map-word-arrow{font-size:19px;color:var(--text-caption);bottom:12px;right:22px}.map-hidden{font-size:14px;font-weight:400;color:var(--text-caption);letter-spacing:0}
.map-actionbar{left:252px;right:36px;bottom:20px;padding:12px;border:1px solid var(--stroke);border-radius:16px;background:#fffffff5;box-shadow:0 6px 25px #23364d12;gap:12px}.map-actionbar button{font-size:16px;font-weight:600;line-height:1.5;min-height:48px;padding:11px 20px;border:1px solid var(--stroke);border-radius:11px;background:var(--surface);color:var(--text-secondary);box-shadow:none}.map-actionbar .map-primary{background:var(--ui-primary);border-color:var(--ui-primary);color:var(--text-primary);box-shadow:none;flex:1.5}.map-playback,.map-bottom-note{font-size:13px;color:var(--text-caption);line-height:1.7;text-align:left;margin-top:18px}.map-ipa-info{color:var(--text-secondary);text-underline-offset:3px;min-height:36px}
/* Five-step learning */
.word-focus-page,.journey-page{max-width:1100px;background:transparent;border-radius:0;padding:0;box-shadow:none}.word-focus-top,.journey-top{display:flex;align-items:center;gap:16px;margin:0 0 16px}.word-focus-top small,.journey-top small{font-size:13px;font-weight:400;color:var(--text-caption)}.word-focus-top .back,.journey-top .back{font-size:14px;color:var(--text-secondary)}
.chapter-word-nav{border:1px solid var(--stroke);background:var(--surface);border-radius:16px;padding:16px 20px;margin:0 0 20px}.chapter-word-heading{font-size:14px;line-height:1.5;color:var(--text-primary);gap:16px;margin-bottom:12px}.chapter-word-heading b{font-weight:600}.chapter-word-heading small{font-size:12px;font-weight:400;color:var(--text-caption);margin-left:8px}.chapter-word-heading label{font-size:13px;gap:8px;color:var(--text-caption)}.chapter-word-heading select{min-height:40px;max-width:220px;width:200px;border:1px solid var(--stroke);border-radius:10px;padding:7px 24px 7px 10px;font-size:14px;color:var(--text-primary);background:var(--surface-subtle)}.chapter-word-strip{gap:8px;grid-template-columns:26px repeat(5,minmax(0,1fr)) 26px}.chapter-word-strip button{font-family:var(--font-word);font-size:15px;font-weight:600;color:var(--text-secondary);border-radius:10px;line-height:1.5;min-height:44px;padding:8px;overflow-wrap:anywhere}.chapter-word-strip .word-strip-item{font-size:15px}.chapter-word-strip .word-strip-item.current{background:var(--ui-soft);color:var(--ui-strong);box-shadow:none}.chapter-word-strip .word-strip-item:hover{background:var(--surface-subtle)}.chapter-word-strip .word-strip-arrow{font-size:25px;color:var(--text-caption)}
.journey-steps{padding:22px 28px 26px;margin:0 0 20px;border:1px solid var(--stroke);background:var(--surface);border-radius:16px;gap:0}.journey-steps:before{top:45px;left:11%;right:11%;height:2px;background:var(--stroke)}.journey-steps li,.journey-steps li.current,.journey-steps li.done{width:48px;height:48px;border:1px solid var(--stroke);font-size:21px;font-weight:600;line-height:1;background:var(--surface);color:var(--text-caption);box-shadow:none}.journey-steps li.current{border:2px solid var(--ui-primary);background:var(--ui-primary);color:var(--text-primary);outline:3px solid var(--ui-soft);outline-offset:3px}.journey-steps li.done{background:var(--ui-soft);border-color:var(--ui-primary);color:var(--ui-strong)}.journey-steps li.current.done{outline:3px solid var(--ui-soft);outline-offset:3px}.journey-steps li>span{width:18px;height:18px;border:2px solid #fff;background:var(--surface-subtle);font-size:10px;color:var(--text-caption);bottom:-5px;right:-5px}.journey-steps li.done>span{background:#27754e;color:white}.journey-step-button b{font-weight:600}
.word-focus-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px}.word-focus-card,.journey-card{background:var(--surface);border:1px solid var(--stroke);border-radius:20px;box-shadow:var(--shadow-card);padding:28px 32px 32px;min-height:0}.word-focus-card{align-items:center}.word-focus-card .book-study-tools{order:-1;align-self:stretch}.word-focus-progress{font-size:13px;font-weight:400;line-height:1.5;color:var(--text-caption);order:0}
.word-focus-card h1,.journey-word,.journey-success-word{font-family:var(--font-word);font-size:clamp(40px,4.5vw,60px);font-weight:700;line-height:1.2;color:var(--text-primary);letter-spacing:-.5px;overflow-wrap:anywhere;margin:24px 0 16px}.word-focus-card .textbook-ipa,.word-focus-card .reference-ipa,.journey-card .textbook-ipa{font-family:var(--font-word);font-size:20px;font-weight:400;color:var(--text-secondary);line-height:1.6;margin:0 0 8px}.word-focus-card .textbook-ipa b,.journey-card .textbook-ipa b{font-family:var(--font-ui);font-size:12px;font-weight:400;color:var(--text-caption);margin-right:6px}.word-focus-meaning,.journey-meaning{font-size:22px;font-weight:400;line-height:1.7;color:var(--text-primary);margin:12px 0 24px}.word-focus-art,.journey-art{background:var(--surface-subtle);border-radius:16px;height:160px;max-width:300px;width:100%;margin:12px auto 24px;padding:16px}.word-focus-art .word-lineart{height:125px;max-height:125px}.journey-art .word-lineart{height:120px}.word-focus-card .word-sounds{margin-top:4px}.word-focus-card .speech-playback,.journey-card .speech-playback{font-size:13px;color:var(--text-caption);line-height:1.7;min-height:0;margin:12px 0}.word-focus-card .speech-playback:empty{display:none}.word-recognize{font-size:16px!important;margin-top:20px;min-height:48px}.word-focus-card>.inline-note{font-size:13px;max-width:420px;margin:16px 0 0;color:var(--text-caption);line-height:1.75}.word-focus-nav{margin:24px 0;gap:12px}.word-focus-nav button{min-height:46px;min-width:125px;font-size:15px}
.journey-card{padding:28px 40px 32px;text-align:center}.journey-step-label{font-size:13px;font-weight:600;color:var(--ui-strong);letter-spacing:0}.journey-card h2{font-size:22px;line-height:1.45;font-weight:700;color:var(--text-primary);margin:10px 0}.journey-card .journey-instruction{font-size:15px;font-weight:400;color:var(--text-secondary);line-height:1.75;margin:0 0 24px}.journey-note,.journey-count,.journey-summary{font-size:13px;font-weight:400;color:var(--text-caption);line-height:1.8}.journey-card .journey-feedback{font-size:15px;font-weight:600;line-height:1.7;margin:20px 0 12px}.journey-feedback.error{color:#b34736}.journey-feedback:not(.error){color:#27754e}.journey-next,.journey-write-form .btn{min-height:48px;min-width:220px;border-radius:12px;font-size:16px!important}.journey-options{gap:16px;margin:28px auto 20px}.journey-options button{font-size:18px;font-weight:600;line-height:1.6;padding:18px 16px;min-height:72px;background:var(--surface);border:1px solid var(--stroke);border-radius:14px;color:var(--text-primary);box-shadow:none}.journey-options button:hover{border-color:var(--ui-primary);background:var(--ui-soft)}.journey-options button.correct{background:#edf8f1;color:#27754e;border:1px solid #90cba5;box-shadow:none}
.journey-letter{font-family:var(--font-word);font-weight:700;font-size:30px;min-width:58px;min-height:64px;border-radius:13px;padding:10px 14px;box-shadow:0 3px 0 #2198c6}.journey-letter.vowel,.journey-chunk.chunk-alt{box-shadow:0 3px 0 #da7732}.journey-letter.picked{box-shadow:0 3px 0 #76bf9b}.journey-chunk{min-width:100px;min-height:72px;font-size:34px;padding:12px 20px}.journey-split,.journey-pool{gap:12px;margin:28px auto}.journey-slot{font-family:var(--font-word);font-size:28px;font-weight:600;min-width:48px;min-height:62px;border:1px solid var(--ui-primary);border-radius:12px;box-shadow:none}.journey-slot.empty{border:1px solid #dce1e8;background:#f3f5f8}.journey-slots{gap:8px;margin:20px 0;padding:12px 0}.split-reveal-slot{background:var(--surface-subtle);border:1px dashed #c7d0db;border-radius:14px;min-height:84px}.split-reveal-slot b{font-family:var(--font-word);font-weight:600;font-size:30px;color:var(--text-caption)}.split-reveal-slot.filled{background:#edf7fc;border:1px solid #91cfe8}.split-reveal-slot small,.split-vowel-summary{font-size:13px;color:var(--text-caption)}.split-complete-word{font-weight:700;font-size:48px;margin-top:28px}.whole-word-icon{font-size:64px}.journey-tools{gap:12px;margin-top:24px}
.journey-write-input{font-family:var(--font-word);font-size:28px;line-height:1.5;min-height:68px;border:1px solid #bcc8d8;border-radius:12px;background:var(--surface);padding:14px 18px;color:var(--text-primary)}.journey-write-input:focus{border:1px solid #2b66b5;outline:3px solid #dfeafb}.journey-write-form{margin:24px auto 8px;gap:16px}.journey-intro{margin:0 0 24px}.journey-intro p{font-size:15px;line-height:1.7;color:var(--text-secondary)}.journey-success-reward{font-size:20px;font-weight:600;line-height:1.6;background:var(--ui-soft);color:var(--ui-strong);border:0;border-radius:14px;padding:20px;margin:24px 0}.journey-success-icon{font-size:52px;margin:8px 0}.book-progress-message{font-size:16px;font-weight:400;background:#edf8f1;color:#286c48;border-radius:14px;padding:16px 20px;line-height:1.75}
/* Textbook sentences */
.word-focus-context>.word-sentences{background:var(--surface);border:1px solid var(--stroke);border-radius:20px;padding:24px}.sentence-heading{font-size:15px;font-weight:600;color:var(--text-secondary);line-height:1.5;margin-bottom:16px}.sentence-english,.word-focus-context .sentence-english{font-family:var(--font-word);font-size:21px;font-weight:600;line-height:1.65;letter-spacing:0;color:var(--text-primary);margin:8px 0}.sentence-chinese{font-size:15px;font-weight:400;color:var(--text-secondary);line-height:1.7;margin:10px 0 16px}.sentence-chinese span{font-size:12px;color:var(--text-caption)}.sentence-source{font-size:12px;font-weight:400;line-height:1.7;color:var(--text-caption);margin:12px 0}.sentence-tip,.sentence-empty{font-size:13px;line-height:1.8;color:var(--text-caption)}.sentence-play{font-size:14px;min-height:44px}.more-sentences summary{color:var(--text-secondary);font-size:14px;font-weight:600;padding:12px 0}.more-sentences .sentence-item{border-top:1px solid var(--stroke);padding-top:16px}.sentence-target{font-weight:600;padding:1px 3px}.word-focus-nudge{background:var(--surface-subtle);border:1px solid var(--stroke);border-radius:16px;padding:20px;color:var(--text-caption);font-size:14px;line-height:1.9;margin-top:20px}.word-focus-nudge b{font-size:15px;font-weight:600;color:var(--text-secondary)}
/* Wrong words and favorites */
.book-header{background:var(--ui-soft);border:1px solid var(--stroke);border-radius:20px;padding:28px 32px;gap:24px}.book-header h1{font-size:28px;margin:0 0 8px}.book-header h1>span{display:none}.book-header p{font-size:15px;line-height:1.75;color:var(--text-secondary);margin:0}.book-header-art{font-size:56px;line-height:1;transform:none}.book-tabs{margin:24px 0 20px}.book-rule{background:var(--surface);border:1px solid var(--stroke);border-radius:16px;padding:20px 24px;color:var(--text-secondary);font-size:14px;line-height:1.8}.book-rule b{font-size:16px;font-weight:600;color:var(--text-primary)}.book-rule p{margin:8px 0}.book-rule small{font-size:13px;color:var(--text-caption)}.book-list{gap:20px;margin-top:24px}.book-word-card{padding:24px}.book-word-top{gap:12px}.book-chapter{font-size:12px;color:var(--text-caption);background:var(--surface-subtle);padding:5px 9px;border-radius:7px}.book-word-card h2{font-family:var(--font-word);font-size:28px;font-weight:600;line-height:1.3;color:var(--text-primary);margin:16px 0 10px}.book-word-card .textbook-ipa{font-size:17px;color:var(--text-secondary);margin:0}.book-word-card .textbook-ipa b{font-size:12px;font-weight:400;color:var(--text-caption);margin-right:5px}.book-meaning{font-size:18px;font-weight:400;line-height:1.7;color:var(--text-primary);margin:16px 0}.book-star{border:1px solid var(--stroke);border-radius:10px;background:var(--surface);color:var(--text-caption);font-size:13px;font-weight:600;min-height:40px;min-width:40px;padding:6px 10px;gap:5px}.book-star span{font-size:24px;font-weight:400}.book-star.saved{background:var(--ui-soft);color:var(--ui-strong);border-color:transparent}.book-study-tools{margin-bottom:8px}.book-streak{gap:8px}.book-streak span{width:28px;height:28px;font-size:12px;border:1px dashed #c9d2dd;color:var(--text-caption);background:var(--surface)}.book-streak span.done{background:#eaf6ee;border:1px solid #81bb96;color:#27754e}.book-streak b{font-size:13px;font-weight:400;color:var(--text-secondary);margin-left:4px}.book-card-note{font-size:13px;font-weight:400;line-height:1.7;color:var(--text-caption);margin:12px 0}.book-card-actions{margin-top:20px;gap:12px}.book-home-link{border:1px solid var(--stroke);border-radius:16px;background:var(--surface);color:var(--text-primary);font-size:17px;font-weight:600;padding:20px;margin-top:16px;line-height:1.5;display:flex;align-items:center;gap:12px;text-align:left;flex-wrap:wrap}.book-home-link .ui-icon{color:var(--ui-strong)}.book-home-link>span{font-size:13px;font-weight:400;color:var(--text-caption);margin:0 0 0 auto;line-height:1.6}.book-empty{background:var(--surface);border:1px solid var(--stroke);border-radius:20px;padding:40px 24px;margin-top:24px}.book-empty>div{font-size:48px}.book-empty h2{font-size:22px;font-weight:600;color:var(--text-primary);margin:16px 0 10px}.book-empty p{font-size:15px;color:var(--text-secondary);line-height:1.75}
/* Games, exercises and pets: colorful illustrations, quieter typography. */
.games-intro{background:var(--ui-soft);border:1px solid var(--stroke);border-radius:20px;padding:24px;gap:20px;margin-bottom:24px}.games-intro-icon{font-size:42px}.games-intro h2{font-size:20px;font-weight:600;color:var(--text-primary);margin:0 0 8px}.games-intro p{font-size:14px;line-height:1.8;color:var(--text-secondary)}.game-chapter-select{gap:12px;margin-bottom:24px}.game-chapter-select label{font-size:14px;font-weight:600}.game-chapter-select select{font-size:15px;min-height:44px;border:1px solid var(--stroke);border-radius:10px;padding:10px 14px;color:var(--text-primary)}.games-grid{gap:20px}.game-choice{border-top:1px solid var(--stroke);padding:24px;box-shadow:var(--shadow-card)}.game-choice-icon{width:56px;height:56px;font-size:32px;border-radius:16px;margin-bottom:20px}.game-choice h2{font-size:20px;font-weight:600;color:var(--text-primary);margin:0 0 8px}.game-choice p{font-size:14px;line-height:1.75;color:var(--text-secondary);margin:0 0 20px}.game-choice .game-round-note{font-size:13px;font-weight:400;color:var(--text-caption)}.game-choice .btn{font-size:14px;min-height:44px;margin-top:4px}.game-reward-note,.game-result-note,.game-tiny-note{font-size:14px;line-height:1.8;color:var(--text-secondary)}.game-panel-head h1{font-size:24px;font-weight:700;line-height:1.4;color:var(--text-primary)}.game-panel-head p{font-size:13px;color:var(--text-caption)}.game-play-card h2,.study-box h2{font-size:24px;font-weight:600;color:var(--text-primary);line-height:1.5}.game-instruction{font-size:15px;line-height:1.75;color:var(--text-secondary)}.game-meaning{font-size:22px;font-weight:600;color:var(--text-primary)}.game-play-card{padding:28px}.game-word-picture,.study-box .big-emoji{background:var(--surface-subtle);border:0;border-radius:16px}.game-result-points{font-size:28px;font-weight:700;background:var(--ui-soft);color:var(--text-primary);border:0;border-radius:16px}.game-result-points small{font-size:14px;color:var(--text-secondary)}.game-round-summary span{font-size:14px;color:var(--text-secondary);background:var(--surface-subtle);border-radius:10px}
.study-box{padding:32px;border-radius:20px;box-shadow:var(--shadow-card)}.accent-row strong{font-size:14px;font-weight:600;color:var(--text-secondary)}.accent-panel .inline-note{font-size:13px;color:var(--text-caption);line-height:1.8}.option{font-family:var(--font-word);font-size:21px;font-weight:600;min-height:68px;background:var(--surface);color:var(--text-primary);border:1px solid var(--stroke);border-radius:14px;line-height:1.6;box-shadow:none}.option:hover{border-color:var(--ui-primary);background:var(--ui-soft)}.feedback{font-size:15px;font-weight:400;line-height:1.75;min-height:28px}.hint{font-size:14px;font-weight:400;line-height:1.8;background:var(--surface-subtle);border:1px solid var(--stroke);border-radius:12px;color:var(--text-secondary)}.spell-input{font-family:var(--font-word);font-size:28px;letter-spacing:1px;min-height:64px;border:1px solid #c3ccd9;background:var(--surface);color:var(--text-primary);border-radius:12px}.pair-card{font-weight:600;border-width:1px;border-radius:14px;box-shadow:none}.pair-column.right .pair-card{font-weight:400;border-width:1px}.memory-card{border-width:1px;font-weight:600;border-radius:14px;box-shadow:0 3px 0 #7050b3}.masked-word{font-family:var(--font-word);font-size:32px;font-weight:600;background:var(--surface-subtle);color:var(--text-primary)}.game-play-card .answer-letters{font-family:var(--font-word);font-size:28px;border:1px dashed #c3cfdf;border-radius:14px;color:var(--text-primary)}.score{color:var(--text-primary);font-weight:700}
/* Parent controls: readable forms and restrained hierarchy. */
.parent-mode .main{font-size:14px}.parent-mode .pagehead h1{font-size:28px}.parent-mode .card{padding:24px;border:1px solid var(--stroke);border-radius:20px;box-shadow:none}.parent-mode .main h2{font-size:20px!important;font-weight:600;line-height:1.5;color:var(--text-primary)}.parent-mode .main h3{font-size:17px!important;font-weight:600;color:var(--text-primary);line-height:1.5}.parent-mode .main h4{font-size:15px;font-weight:600;line-height:1.6;color:var(--text-primary)}.parent-mode .muted,.parent-mode .banner{font-size:14px;line-height:1.8;color:var(--text-secondary)}.parent-mode .inline-note{font-size:13px;color:var(--text-caption);line-height:1.8}.parent-mode .btn{font-size:14px;min-height:44px;box-shadow:none}.account-manager,.grade-manager,.chapter-library,.appearance-settings{margin-bottom:24px}.appearance-settings{margin-top:0}.appearance-settings .section-head{margin-bottom:12px}.appearance-settings p{margin:0 0 12px}
.field{margin:20px 0}.field label,.checkbox,.scope-fieldset legend,.scope-radio,.scope-chapter,.chapter-grade-row{font-size:14px;font-weight:400;line-height:1.6;color:var(--text-secondary)}.field label{margin-bottom:8px;font-weight:600}.field input,.field select,.field textarea{font-size:15px;font-weight:400;min-height:44px;padding:10px 12px;background:var(--surface);border:1px solid #ccd4df;border-radius:10px;color:var(--text-primary)}.field textarea{line-height:1.8}.field input:focus,.field select:focus{border-color:#5c83b8}.checkbox{display:flex;gap:8px;align-items:center}.checkbox input{min-height:0;width:18px;height:18px;accent-color:var(--ui-strong)}.scope-chapter input,.grade-checks input,.scope-radio input{width:17px;height:17px;accent-color:var(--ui-strong)}.grade-checks label{font-size:14px;background:var(--surface-subtle);border:1px solid var(--stroke);padding:8px 12px;border-radius:9px;color:var(--text-secondary);gap:8px}.grade-tags>span{font-size:13px;font-weight:400;color:var(--text-secondary);background:var(--surface-subtle);border:1px solid var(--stroke);padding:5px 10px;border-radius:7px}
.managed-account,.parent-mode .managed-chapter{background:var(--surface);border:1px solid var(--stroke);border-radius:14px;padding:18px}.managed-account.selected{background:var(--ui-soft);border-color:var(--ui-primary)}.managed-account p{font-size:13px!important;line-height:1.8;color:var(--text-caption)}.managed-account .actions,.managed-chapter .actions{gap:8px;margin-top:12px}.managed-chapter .btn{font-size:13px;min-height:40px;padding:8px 12px}.managed-chapter p{font-size:13px!important;line-height:1.8;margin:8px 0}.chapter-grade-row{gap:8px;margin:12px 0}.chapter-grade-row select{font-size:14px;border:1px solid #ccd4df;border-radius:9px;padding:8px 10px;min-height:40px;max-width:200px;color:var(--text-primary);background:var(--surface)}.scope-group h4{font-size:14px;margin:12px 0;color:var(--text-secondary)}.scope-chapter{padding:12px 0;border-color:var(--stroke)}.scope-chapter small{font-size:12px;line-height:1.6;color:var(--text-caption);margin-top:4px}.scope-radio{gap:8px;margin:12px 0;align-items:flex-start}.scope-chapters{border:1px solid var(--stroke);border-radius:12px;padding:8px 16px;margin:16px 0}.account-columns{gap:24px}.account-choice{border-top:1px solid var(--stroke);text-align:center}.account-choice:nth-child(3n+2),.account-choice:nth-child(3n+3){border-top:1px solid var(--stroke)}.account-choice h2{font-size:22px;font-weight:600;color:var(--text-primary)}.account-avatar{width:64px;height:64px;font-size:34px;border:0;border-radius:20px;background:var(--ui-soft);margin-bottom:16px}
.vocabulary-workflow,.parent-mode .vocabulary-workflow{background:var(--surface-subtle);border:1px solid var(--stroke);border-radius:14px;padding:18px 20px;font-size:14px;color:var(--text-secondary);line-height:1.8}.vocabulary-workflow strong{font-weight:600;color:var(--text-primary)}.vocabulary-workflow p{font-size:14px;line-height:1.8}.word-preview-table{border-color:var(--stroke)}.word-preview-table th,.word-preview-table td{font-size:14px;line-height:1.7;padding:12px 14px;border-color:var(--stroke)}.word-preview-table th{font-weight:600;color:var(--text-secondary);background:var(--surface-subtle)}
/* Dialogs and appearance settings */
dialog{padding:28px;border:1px solid var(--stroke);border-radius:20px;width:min(480px,92vw);color:var(--text-primary);box-shadow:0 16px 80px #192d4a2e}dialog::backdrop{background:#1d2b4359;backdrop-filter:blur(3px)}dialog h2{font-size:22px;font-weight:700;line-height:1.5;color:var(--text-primary);margin:0 0 16px}dialog p{font-size:15px;font-weight:400;color:var(--text-secondary);line-height:1.8}.theme-options{gap:12px;margin:24px 0}.theme-option{font-size:14px;min-height:76px;border:1px solid var(--stroke);border-radius:12px;padding:14px;gap:12px;box-shadow:none}.theme-option[aria-pressed=true]{background:var(--ui-soft);border:1px solid var(--ui-primary);box-shadow:0 0 0 1px var(--ui-primary)}.theme-option b{font-size:14px;font-weight:600;color:var(--text-primary)}.theme-option small{font-size:12px;font-weight:400;color:var(--text-caption);line-height:1.6;margin-top:4px}.theme-swatch{width:32px;height:32px;border-radius:10px;font-size:18px}.theme-current-name{font-weight:600}.theme-dialog-note{font-size:13px!important;color:var(--text-caption)}#toast{font-size:14px;line-height:1.7;background:#27374a;color:white;border-radius:12px;padding:12px 20px;box-shadow:0 4px 20px #1c2e4524}
/* Responsive behavior preserves the same hierarchy instead of rescaling each page independently. */
@media(min-width:1450px){.main{padding:32px 44px}.dashboard{grid-template-columns:minmax(0,1fr) 288px;gap:24px}.hero{min-height:300px;padding:32px}.hero h2{font-size:34px}.hero-art{width:38%;right:12px}.map-actionbar{left:260px;right:44px}}
@media(max-width:1200px){.main{padding:24px}.layout{grid-template-columns:192px minmax(0,1fr)}.sidebar{width:192px;padding:24px 12px}.brand{padding-left:8px;padding-right:8px}.brand b{font-size:18px}.brand-mark{width:34px;height:36px}.nav button{font-size:14px;padding:12px;gap:10px}.topbar{gap:12px}.crumb{font-size:12px}.badge{padding:8px 10px;font-size:12px}.dashboard{grid-template-columns:minmax(0,1fr) 248px;gap:20px}.hero{padding:24px;min-height:270px}.hero h2{font-size:28px}.hero-art{width:38%;right:4px}.stat{padding:16px;gap:10px}.stat-icon{width:32px;height:32px}.stat strong{font-size:26px}.stat small{font-size:12px}.task{padding:18px 16px;gap:10px;min-height:124px}.task-title{font-size:16px}.task-description{font-size:12px}.reward-card{padding:20px}.map-actionbar{left:216px;right:24px}.map-heading{align-items:flex-start;flex-direction:column;gap:20px}.map-selectors{max-width:100%;justify-content:flex-start}}
@media(max-width:1050px) and (min-width:801px){.dashboard{grid-template-columns:1fr}.aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.reward-card{margin:0}.tip{grid-column:1/-1;margin:0}.hero-copy{max-width:65%}.hero-art{width:260px;right:24px}.hero h2{font-size:30px}.crumb{display:none}.top-right{margin-left:auto}.word-focus-grid{grid-template-columns:1fr}.word-focus-card{width:100%;max-width:none}.games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){
 .layout{display:block}.sidebar{width:100%;position:sticky;top:0;inset:auto;padding:12px 20px;border:0;border-bottom:1px solid var(--stroke);flex-direction:row;align-items:center;background:var(--surface);gap:0}.brand{padding:0;gap:9px}.brand b{font-size:18px}.brand small{font-size:8px;display:block}.brand-mark{width:32px;height:34px;border-radius:11px;font-size:22px}.sidebar-bottom{display:none}.main{padding:24px 20px 116px}.nav,.kids-mode .nav{position:fixed;top:auto;left:0;right:0;bottom:0;display:flex;justify-content:space-around;gap:4px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--stroke);box-shadow:0 -3px 14px #23364d05;z-index:30;width:100%}.nav button,.kids-mode .nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;gap:4px;min-height:54px;max-width:150px;min-width:0;line-height:1.4;font-size:12px;font-weight:600;padding:6px 2px;border-radius:10px;border:0;white-space:nowrap}.nav span,.kids-mode .nav span{width:23px;height:24px;background:transparent!important;border-radius:0}.nav .ui-icon{width:23px;height:23px}.nav button.active{background:var(--ui-soft);color:var(--ui-strong);border:0;box-shadow:none}.topbar{margin-bottom:24px;min-height:42px;gap:0;flex-wrap:nowrap}.crumb{display:none}.top-right{display:flex;gap:8px;width:100%;justify-content:flex-end;flex-wrap:nowrap}.badge{min-height:42px;font-size:13px;padding:9px 12px}.top-right .account-switch{max-width:220px;margin-right:auto}.dashboard{grid-template-columns:minmax(0,1fr) 232px;gap:20px}.hero{min-height:260px;padding:24px}.hero-copy{max-width:70%}.hero h2{font-size:28px}.hero-art{width:44%;right:-15px}.task-list{grid-template-columns:1fr}.task-review{grid-column:auto;min-height:100px}.task{min-height:104px;grid-template-columns:44px minmax(0,1fr)}.task-title{font-size:17px}.task-description{font-size:13px}.stats{gap:12px}.stat-icon{display:none}.hero .btn{font-size:15px;padding:11px 16px}.word-focus-grid{grid-template-columns:1fr}.word-focus-card{max-width:none}.chapter-word-nav{padding:16px;margin-bottom:16px}.chapter-word-heading select{font-size:13px;max-width:200px;min-height:40px}.map-actionbar{left:20px;right:20px;bottom:calc(86px + env(safe-area-inset-bottom));max-width:none;padding:10px}.vocab-map{padding-bottom:112px}.journey-page,.word-focus-page{padding:0;border-radius:0}.journey-card{padding:28px}.journey-steps{padding:20px 24px 24px}.journey-steps:before{top:44px}.games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{gap:20px}.book-header{padding:24px}.book-header h1{font-size:26px}.book-header-art{font-size:48px}.book-rule{padding:20px}.parent-mode .main{padding-bottom:116px}.parent-mode .card{padding:24px}.theme-option{min-height:80px}.footer{gap:8px}
}
@media(max-width:620px){
 :root{--font-page:25px}.main,.kids-mode[data-page=chapters] .main,.kids-mode[data-page=chapter] .main{padding:20px 16px 112px}.sidebar,.kids-mode[data-page=chapters] .sidebar,.kids-mode[data-page=chapter] .sidebar{padding:10px 16px;border-bottom:1px solid var(--stroke)}.brand b,.kids-mode[data-page=chapters] .brand b,.kids-mode[data-page=chapter] .brand b{font-size:17px}.brand small,.kids-mode[data-page=chapters] .brand small,.kids-mode[data-page=chapter] .brand small{font-size:8px}.brand-mark,.kids-mode[data-page=chapters] .brand-mark,.kids-mode[data-page=chapter] .brand-mark{width:30px;height:32px}.topbar,.kids-mode[data-page=chapters] .topbar,.kids-mode[data-page=chapter] .topbar{margin-bottom:24px}.top-right{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:6px}.top-right .badge{padding:9px 10px;font-size:12px;min-height:42px;border-radius:10px;white-space:nowrap}.top-right .account-switch{max-width:100%;margin-right:0;display:block;font-size:12px}.theme-shortcut .theme-shortcut-label{display:none}.theme-shortcut{min-width:42px;justify-content:center}.theme-dot{width:15px;height:15px}.top-right [data-action=parent]{font-size:12px}
 .hello{margin-bottom:20px}.hello h1,.pagehead h1{font-size:25px;line-height:1.4;margin-bottom:8px}.hello h1 .wave{font-size:21px;margin-left:4px}.hello p,.pagehead p{font-size:14px;line-height:1.75}.date-pill{display:none}.pagehead{margin-bottom:24px}.dashboard{display:flex;flex-direction:column;gap:24px}.hero{min-height:256px;padding:24px 22px;border-radius:18px}.hero-copy{max-width:72%}.hero-tag{font-size:12px}.hero h2{font-size:27px;line-height:1.4;margin:12px 0}.hero p{font-size:13px;line-height:1.75;max-width:210px;margin-bottom:20px}.hero-art{width:44%;right:-12px;bottom:10px;opacity:.95}.hero .btn{font-size:14px;padding:11px 14px;min-height:44px}.stats{gap:10px;margin:16px 0 24px}.stat{padding:16px 12px;border-radius:14px}.stat strong{font-size:25px;line-height:1.2}.stat small{font-size:11px;line-height:1.5;margin-top:6px}.stat-total{font-size:12px}.section-head h2{font-size:20px}.section-head small{font-size:12px}.task-heading{align-items:flex-end;gap:12px}.task-heading p{font-size:12px}.task-list{gap:12px}.task{padding:18px 16px;grid-template-columns:44px minmax(0,1fr);gap:12px;min-height:108px}.task-icon{width:44px;height:44px;border-radius:12px}.task-title{font-size:17px;line-height:1.5;margin-bottom:4px}.task-description{font-size:13px;line-height:1.65}.task .points,.task .complete-tag{font-size:11px;right:12px;top:9px}.task-arrow{font-size:18px}.book-home-link{font-size:16px;padding:18px 16px;gap:9px}.book-home-link>span{font-size:12px;margin-left:31px}.aside{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.reward-card{padding:22px;border-radius:18px}.reward-card{margin-top:0}.reward-card h3{font-size:20px}.reward-card .muted{font-size:14px}.tip{display:none}.card{padding:20px;border-radius:18px}.grid3{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-card{padding:16px}.shop-card .item-icon{height:90px;border-radius:12px;font-size:35px}.shop-card h3{font-size:16px;margin:16px 0 8px}.shop-card p{font-size:13px;line-height:1.75;min-height:66px}.shop-card .row{display:flex;flex-direction:column;align-items:stretch;gap:12px}.shop-card .row>strong{font-size:15px}.shop-card .btn{font-size:13px;min-height:44px;padding:10px 8px}.tabs{gap:4px;padding:4px;width:100%;margin-bottom:20px}.tabs button{font-size:13px;padding:10px 11px;min-height:44px}.two-col{grid-template-columns:minmax(0,1fr);gap:20px}.ledger-row{font-size:14px;gap:12px;align-items:center}.ledger-row p{font-size:14px}.ledger-row small{font-size:12px}.ledger-row .btn{font-size:13px;padding:9px 12px}.footer{font-size:12px;display:flex;flex-direction:column;margin-top:28px;padding-top:16px;gap:4px}
 .map-header{padding:24px 18px 0;border-radius:18px 18px 0 0}.map-heading{gap:20px}.map-heading h1{font-size:25px;line-height:1.4;margin:0 0 8px}.map-heading p{font-size:13px;line-height:1.75}.map-selectors{gap:10px;width:100%;max-width:100%;display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)}.map-selectors label{font-size:12px;max-width:100%;gap:6px;min-width:0}.map-selectors select,.map-selectors label:first-child select,.map-selectors label:last-child select{width:100%;max-width:100%;min-height:42px;font-size:13px;padding:9px 23px 9px 10px}.map-chapters{padding:16px 0 12px;gap:4px}.map-chapters button{font-size:14px;min-height:42px;line-height:1.5;padding:9px 12px;border-radius:8px}.map-sheet{padding:0 16px 20px;border-radius:0 0 18px 18px}.map-sheet-head{display:block;padding:20px 0 16px}.map-sheet-head h2{font-size:20px;line-height:1.4}.map-sheet-head p{font-size:12px;margin:8px 0 0}.map-count{font-size:14px}.map-toolbar{gap:12px;padding:16px 0;align-items:flex-start}.map-masks{gap:2px;padding:3px}.map-masks button{font-size:13px;padding:9px 12px;min-height:38px}.map-filters{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.map-filters select{font-size:13px;min-height:40px;width:100%;max-width:none;padding:8px 23px 8px 12px}.map-word-list{gap:12px}.map-word-entry .map-word-row{padding:24px 44px 24px 16px;min-height:128px;border-radius:14px;grid-template-columns:minmax(0,1fr) minmax(0,.95fr)}.map-word-en{padding-right:14px;gap:10px}.map-word-en strong{font-size:24px;font-weight:600;line-height:1.25}.map-word-en .textbook-ipa,.map-word-en .reference-ipa{font-size:15px;line-height:1.5;letter-spacing:0}.map-word-en .reference-ipa b{font-size:11px;display:block;margin:0 0 3px}.map-word-zh{font-size:16px;line-height:1.7;padding:8px 0 8px 16px}.map-word-number{top:12px;right:16px;font-size:10px}.map-word-entry .map-star{right:5px;top:33px;min-width:36px;min-height:36px;padding:4px;border-radius:9px}.map-word-entry .map-star span{font-size:23px}.map-word-row .map-word-arrow{bottom:12px;right:16px;font-size:17px}.map-word-state{font-size:11px}.map-hidden{font-size:13px}.map-playback,.map-bottom-note{font-size:12px;line-height:1.75;margin-top:16px}.map-actionbar{left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));padding:9px;gap:9px;border-radius:14px}.map-actionbar button{font-size:15px;min-height:46px;padding:10px 12px;border-radius:10px}.vocab-map{padding-bottom:110px}
 .kids-mode[data-page=study] .sidebar,.kids-mode[data-page=word] .sidebar{height:0;padding:0;border:0}.kids-mode[data-page=study] .brand,.kids-mode[data-page=word] .brand{display:none}.kids-mode[data-page=study] .main,.kids-mode[data-page=word] .main{padding:16px 16px 112px}.kids-mode[data-page=study] .topbar,.kids-mode[data-page=word] .topbar{margin-bottom:20px}.journey-page,.word-focus-page{padding:0;background:transparent;border-radius:0}.journey-top,.word-focus-top{gap:12px;margin-bottom:16px}.journey-top small{display:none}.word-focus-top small{font-size:12px;font-weight:400;line-height:1.5}.journey-top .back,.word-focus-top .back{font-size:13px;min-height:40px}.chapter-word-nav{padding:16px 12px;margin:0 0 16px;border-radius:14px}.chapter-word-heading{font-size:13px;gap:10px;margin-bottom:12px}.chapter-word-heading label{font-size:12px;gap:6px}.chapter-word-heading small{display:none}.chapter-word-heading select{width:160px;max-width:160px;min-height:40px;font-size:12px;border-radius:9px;padding:8px 22px 8px 9px}.chapter-word-strip{grid-template-columns:18px repeat(5,minmax(0,1fr)) 18px;gap:4px}.chapter-word-strip button,.chapter-word-strip .word-strip-item{font-size:12px;line-height:1.4;padding:7px 2px;min-height:44px;border-radius:8px}.chapter-word-strip .word-strip-arrow{font-size:23px}.journey-steps{padding:18px 8px 22px;margin:0 0 16px;border-radius:14px}.journey-steps:before{top:40px;left:10%;right:10%;height:2px}.journey-steps li,.journey-steps li.current,.journey-steps li.done{width:42px;height:42px;min-height:0;font-size:20px;line-height:1;display:grid}.journey-steps li>span{width:17px;height:17px;font-size:9px;right:-4px;bottom:-4px}.journey-steps li.current,.journey-steps li.current.done{outline-width:2px;outline-offset:3px}.journey-card,.word-focus-card{padding:20px 18px 24px;border-radius:18px;min-height:0}.word-focus-progress{font-size:12px}.word-focus-card h1,.journey-word,.journey-success-word{font-size:clamp(36px,11vw,48px);line-height:1.25;margin:20px 0 16px;font-weight:700}.word-focus-card .reference-ipa,.word-focus-card .textbook-ipa,.journey-card .textbook-ipa{font-size:18px;line-height:1.6}.word-focus-card .textbook-ipa b,.journey-card .textbook-ipa b{font-size:11px}.word-focus-meaning,.journey-meaning{font-size:20px;line-height:1.7;font-weight:400;margin:12px 0 20px}.word-focus-art,.journey-art{max-width:260px;height:140px;padding:16px;margin:12px auto 20px;border-radius:14px}.word-focus-art .word-lineart,.journey-art .word-lineart{height:108px;max-height:108px}.word-focus-card .word-recognize{font-size:15px!important;min-height:48px;margin-top:20px}.word-focus-card>.inline-note{font-size:12px;line-height:1.8;margin-top:16px}.word-focus-context>.word-sentences{padding:20px;border-radius:18px}.word-focus-context .sentence-english{font-size:20px}.sentence-heading{font-size:14px}.sentence-chinese{font-size:14px}.sentence-source,.sentence-tip{font-size:12px}.word-focus-nudge{font-size:13px;padding:18px;border-radius:14px;margin-top:16px}.word-focus-nudge b{font-size:14px}.word-focus-nav{margin:20px 0;gap:12px}.word-focus-nav button{font-size:14px;min-height:44px;min-width:0;flex:1}.journey-step-label{font-size:12px;line-height:1.5}.journey-card h2{font-size:21px;line-height:1.45;margin:10px 0}.journey-card .journey-instruction{font-size:14px;line-height:1.75;margin-bottom:20px}.journey-options{gap:12px;margin:24px auto 16px}.journey-options button{font-size:16px;line-height:1.7;min-height:72px;border-radius:12px;padding:14px 12px}.journey-next,.journey-write-form .btn{width:100%;min-width:0;min-height:48px;border-radius:12px;font-size:15px!important}.journey-split,.journey-pool{gap:10px;margin:24px auto}.journey-letter{min-width:45px;min-height:54px;font-size:27px;padding:8px 10px;border-radius:12px}.journey-pool .journey-letter{min-width:45px;padding:8px 10px}.journey-chunk{min-width:88px;min-height:64px;font-size:29px;padding:10px 16px}.journey-slots{gap:5px;margin:20px 0;padding:8px 0;min-height:70px}.journey-slot{width:32px;flex-basis:32px;min-width:32px;min-height:52px;font-size:24px;padding:7px 2px;border-radius:9px}.journey-separator.space{width:10px;min-width:6px;margin:0}.split-reveal-slot{min-width:80px;min-height:80px;padding:10px 12px;border-radius:13px}.split-reveal-slot b{font-size:28px}.split-reveal-slot small{font-size:12px}.split-complete-word{font-size:38px}.split-vowel-summary{font-size:12px}.whole-word-icon{font-size:56px;margin:20px 0}.journey-tools{gap:10px;margin-top:20px}.journey-tools .btn{font-size:13px;padding:10px 12px;min-height:44px}.journey-write-input{font-size:25px;min-height:64px;border-width:1px;padding:13px 12px;border-radius:12px}.journey-note,.journey-count{font-size:12px;line-height:1.8}.journey-card .journey-feedback{font-size:14px;line-height:1.75;margin:20px 0 12px}.journey-card .speech-playback{font-size:12px}.journey-intro{margin:0 0 20px}.journey-intro h1{font-size:24px}.journey-intro p{display:block;font-size:14px;line-height:1.75}.journey-success-reward{font-size:18px;padding:18px;border-radius:14px}.journey-summary{font-size:14px}.book-progress-message{font-size:14px;padding:16px;line-height:1.8}
 .book-header{padding:24px 20px;border-radius:18px;gap:20px}.book-header h1{font-size:25px;line-height:1.4;margin:0 0 8px}.book-header p{font-size:14px;line-height:1.75}.book-header-art{font-size:42px}.book-tabs{width:100%;margin:20px 0 16px;gap:4px;padding:4px;border-radius:12px}.book-tabs button{flex:1;font-size:15px;padding:10px 12px;min-height:44px;border-radius:9px}.book-tabs span{font-size:11px;min-width:20px}.book-rule{padding:18px;border-radius:14px;font-size:14px;line-height:1.8}.book-rule b{font-size:16px}.book-rule small{font-size:12px;line-height:1.8}.book-list{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:20px}.book-word-card{padding:20px;border-radius:18px}.book-word-card h2{font-size:27px;font-weight:600;line-height:1.3;margin:16px 0 10px}.book-word-card .textbook-ipa{font-size:17px}.book-meaning{font-size:18px;line-height:1.7;margin:16px 0}.book-streak b{font-size:12px}.book-card-note{font-size:12px}.book-card-actions{margin-top:20px}.book-star{font-size:12px;min-height:40px;min-width:40px;padding:6px 9px}.book-star span{font-size:23px}.book-empty{padding:32px 20px;border-radius:18px}.book-empty h2{font-size:21px;line-height:1.5}.book-empty p{font-size:14px;line-height:1.8}
 .games-intro{padding:20px;gap:14px;border-radius:18px;align-items:flex-start}.games-intro-icon{font-size:34px}.games-intro h2{font-size:19px;line-height:1.5}.games-intro p{font-size:13px;line-height:1.75}.game-chapter-select label{font-size:14px;margin-bottom:8px}.game-chapter-select select{font-size:14px;min-height:44px;width:100%;min-width:0}.games-grid{grid-template-columns:minmax(0,1fr);gap:16px}.game-choice{display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:16px;padding:20px;border-radius:18px}.game-choice-icon{grid-row:1/4;width:56px;height:56px;font-size:31px;margin:0;border-radius:14px}.game-choice h2{font-size:19px;line-height:1.5;margin:0 0 6px}.game-choice p{font-size:14px;line-height:1.75;margin:0 0 8px}.game-choice .game-round-note{font-size:12px;margin:0 0 16px}.game-choice .btn,.game-choice .unavailable{grid-column:1/-1;font-size:14px;min-height:44px;padding:10px 14px;margin-top:4px}.game-reward-note,.game-result-note,.game-tiny-note{font-size:13px;line-height:1.8}.game-panel-head h1{font-size:22px}.game-panel-head p{font-size:12px}.game-panel-icon{font-size:30px}.game-play-card,.study-box{padding:24px 18px;border-radius:18px}.game-play-card h2,.study-box h2{font-size:21px;line-height:1.5}.game-instruction{font-size:14px;line-height:1.75}.game-meaning{font-size:20px;font-weight:600;line-height:1.7}.game-play-card .answer-letters{font-size:25px}.game-actions{gap:10px}.game-actions .btn{font-size:14px;min-height:44px;padding:10px 14px}.game-listen-options .option,.option{font-size:19px;min-height:64px;padding:16px 12px}.feedback,.game-play-card .feedback{font-size:14px;line-height:1.75}.hint{font-size:13px;line-height:1.8;padding:14px}.accent-panel{padding:16px;margin-bottom:20px}.accent-row strong{font-size:14px}.accent-panel .inline-note{font-size:12px;line-height:1.8}.spell-input{font-size:25px;min-height:60px;letter-spacing:1px;padding:14px}.pair-card{font-size:17px;border-width:1px}.pair-column.right .pair-card{font-size:14px;border-width:1px;line-height:1.65}.memory-card.face-up,.memory-card.matched{font-size:17px;line-height:1.6}.masked-word{font-size:28px}.game-result-points{font-size:26px}.game-result-points small{font-size:13px}.game-round-summary span{font-size:13px}
 .parent-mode .main{padding:20px 16px 112px}.parent-mode .card{padding:20px;border-radius:18px}.parent-mode .pagehead h1{font-size:25px}.parent-mode .main h2{font-size:19px!important;line-height:1.5}.parent-mode .main h3{font-size:17px!important}.parent-mode .section-head{flex-wrap:wrap;gap:10px;align-items:flex-start}.parent-mode .section-head h2{font-size:19px}.parent-mode .section-head small{font-size:12px}.parent-mode .banner{font-size:13px;line-height:1.8;padding:16px}.parent-mode .muted{font-size:14px;line-height:1.8}.parent-mode .inline-note{font-size:12px;line-height:1.8}.parent-mode .btn{font-size:14px;min-height:44px;padding:10px 14px}.field label,.checkbox,.scope-fieldset legend,.scope-radio,.scope-chapter,.chapter-grade-row{font-size:14px;line-height:1.7}.field input,.field select,.field textarea{font-size:16px;min-height:44px;padding:10px 12px}.inline-form{align-items:stretch;flex-direction:column;gap:12px}.inline-form .field{flex:initial!important}.inline-form .btn{align-self:flex-start;min-height:44px}.account-columns{gap:24px}.managed-account,.parent-mode .managed-chapter{padding:16px;border-radius:12px}.managed-account .actions,.managed-chapter .actions{gap:8px}.parent-mode .managed-chapter .btn{font-size:13px;min-height:40px;padding:8px 12px}.chapter-grade-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.chapter-grade-row select{max-width:none;min-width:100px;font-size:14px}.scope-chapters{padding:8px 12px}.scope-chapter small{font-size:12px}.account-choice{padding:24px 16px}.account-choice h2{font-size:20px}.grade-checks{gap:8px}.grade-checks label{font-size:13px;padding:8px 10px}.grade-tags>span{font-size:12px}.vocabulary-workflow,.parent-mode .vocabulary-workflow{padding:16px;font-size:13px;line-height:1.8}.vocabulary-workflow p{font-size:13px;line-height:1.8}.parent-mode .chapter-library{padding:20px}.appearance-settings .section-head{gap:12px;flex-wrap:wrap}.appearance-settings .btn{min-width:0}.word-preview-table th,.word-preview-table td{font-size:13px;padding:10px 12px}
 dialog{padding:24px 20px;border-radius:18px;width:min(460px,92vw)}dialog h2{font-size:21px;line-height:1.5;margin-bottom:16px}dialog p{font-size:14px;line-height:1.8}.theme-options{gap:10px;margin:20px 0}.theme-option{padding:12px;gap:10px;min-height:84px;border-radius:12px}.theme-option b{font-size:13px}.theme-option small{font-size:11px;line-height:1.6}.theme-swatch{width:28px;height:30px;border-radius:9px}.theme-dialog-note{font-size:12px!important}.map-practice-actions{gap:12px}.map-practice-actions button{font-size:14px;min-height:48px}#toast{bottom:calc(86px + env(safe-area-inset-bottom));font-size:13px;padding:12px 16px;border-radius:10px}
}
@media(max-width:360px){.main,.kids-mode[data-page=study] .main,.kids-mode[data-page=word] .main{padding-left:12px;padding-right:12px}.top-right .badge{font-size:11px;padding:9px 8px}.hero{padding:22px 18px}.hero-copy{max-width:74%}.hero h2{font-size:25px}.hero-art{width:43%;right:-14px}.hero .btn{font-size:13px;padding:10px 12px}.journey-steps{padding-left:4px;padding-right:4px}.journey-steps li,.journey-steps li.current,.journey-steps li.done{width:38px;height:38px;font-size:19px}.journey-steps:before{top:37px}.chapter-word-heading select{width:143px;max-width:143px}.chapter-word-strip .word-strip-item{font-size:11px}.journey-slot{width:29px;min-width:29px;flex-basis:29px}.theme-option{display:block}.theme-swatch{margin-bottom:8px}.book-tabs button{font-size:14px;padding:10px 8px}.map-word-en strong{font-size:22px}}
/* Keep the entire circle clickable; the label is not the hit target. */
.journey-steps .journey-step-button{position:absolute;inset:-2px;width:calc(100% + 4px);height:calc(100% + 4px);min-height:44px;min-width:44px}
.parent-mode .eyebrow{display:none}
.book-rule-summary{display:block;margin-top:6px;font-size:14px;line-height:1.7;color:var(--text-secondary)}
.book-rule-details{margin-top:6px}.book-rule-details summary,.content-help>summary{font-size:13px;line-height:1.6;min-height:40px;display:list-item;cursor:pointer;padding:10px 0;color:var(--text-caption);font-weight:400}
.book-rule-details[open] summary,.content-help[open]>summary{color:var(--text-secondary)}
.content-help{background:var(--surface-subtle);border:1px solid var(--stroke);border-radius:12px;padding:4px 16px;margin:20px 0}
.content-help>summary{font-size:14px;min-height:44px;padding:11px 0}.content-help .vocabulary-workflow{border:0;background:transparent;padding:8px 0;margin:0}.content-help .banner{margin:16px 0;background:var(--surface)}
.word-focus-card,.journey-card{position:relative}
.word-focus-card .book-study-tools,.journey-card .book-study-tools{position:absolute;right:24px;top:20px;margin:0;align-self:auto}
.word-focus-card .word-focus-progress{align-self:stretch;text-align:left;min-height:40px;line-height:40px;padding-right:90px}
.journey-card .journey-step-label{display:block;text-align:left;min-height:40px;line-height:40px;max-width:calc(100% - 100px)}
.word-focus-art{height:140px;margin:8px auto 20px}.word-focus-art .word-lineart{height:110px;max-height:110px}
.journey-puzzle-icon{display:none}
@media(max-width:620px){
 .journey-steps li,.journey-steps li.current,.journey-steps li.done{width:44px;height:44px}
 .journey-steps:before{top:41px}
 .word-focus-card .book-study-tools,.journey-card .book-study-tools{top:16px;right:18px}
 .word-focus-card .word-focus-progress{font-size:11px;line-height:1.6;display:flex;align-items:center;min-height:40px;padding-right:80px}
 .journey-card .journey-step-label{font-size:12px;min-height:40px;line-height:40px;max-width:calc(100% - 85px)}
 .word-focus-art{height:130px;margin:8px auto 20px}.word-focus-art .word-lineart{height:100px;max-height:100px}
 .journey-card .journey-meaning{margin-top:12px;margin-bottom:16px}.journey-write-form{margin-top:20px}
 .kids-mode[data-page=study] .topbar{margin-bottom:16px}.journey-page>.journey-top{margin-bottom:12px}
 .journey-page>.chapter-word-nav{padding-top:12px;padding-bottom:12px}.journey-page .chapter-word-heading{margin-bottom:8px}
 .journey-page>.journey-steps{padding-top:16px;padding-bottom:20px}.journey-page>.journey-steps:before{top:39px}
 .journey-page>.journey-card{padding-top:16px}.journey-card .journey-instruction{margin-bottom:12px}
 .journey-card .journey-meaning{margin-top:8px;margin-bottom:12px}
}
@media(max-width:360px){.journey-steps li,.journey-steps li.current,.journey-steps li.done{width:42px;height:42px}.journey-steps:before{top:40px}}
/* 儿童色彩：鲜亮的大色块与清楚正文并存，继续沿用同一套文字和间距。 */
.kids-mode{
 --kids-canvas:#fff8e7;--kids-hero-start:#ffcc35;--kids-hero-end:#ffe98c;--kids-edge:#f1ce80;
 --text-secondary:#46556c;--text-caption:#586579;
 background:var(--kids-canvas);
}
:root[data-theme=sky] .kids-mode{--kids-canvas:#edf8ff;--kids-hero-start:#7fc9ff;--kids-hero-end:#c3e8ff;--kids-edge:#9ed5f7}
:root[data-theme=mint] .kids-mode{--kids-canvas:#eefbf3;--kids-hero-start:#7cd8a9;--kids-hero-end:#c5efd5;--kids-edge:#9edcbb}
:root[data-theme=lavender] .kids-mode{--kids-canvas:#f7f0ff;--kids-hero-start:#bea0f5;--kids-hero-end:#e0ccff;--kids-edge:#cbb2f2}
:root[data-theme=coral] .kids-mode{--kids-canvas:#fff3ed;--kids-hero-start:#ffa17d;--kids-hero-end:#ffd6b9;--kids-edge:#f4b89c}
.kids-mode .sidebar{background:#fffdf7;border-color:var(--kids-edge)}
.kids-mode .brand-mark{box-shadow:0 2px 0 var(--ui-shadow)}
.kids-mode .mini-note{background:var(--ui-soft);border-color:var(--kids-edge);color:var(--text-secondary)}
.kids-mode .nav button.active{background:var(--ui-primary);border-color:transparent;color:var(--text-primary)}
.kids-mode .nav button[data-route=home]:not(.active) .ui-icon{color:#b87914}
.kids-mode .nav button[data-route=chapters]:not(.active) .ui-icon{color:#3184c4}
.kids-mode .nav button[data-route=notebook]:not(.active) .ui-icon{color:#8a5ac2}
.kids-mode .nav button[data-route=pet]:not(.active) .ui-icon{color:#d67c2a}
.kids-mode .nav button[data-route=rewards]:not(.active) .ui-icon{color:#c55c84}
.kids-mode .top-right [data-route=wallet]{background:var(--ui-glow);color:var(--text-primary)}
.kids-mode .hero,.kids-mode .map-header,.kids-mode .book-header{
 background:linear-gradient(115deg,var(--kids-hero-start),var(--kids-hero-end));border-color:var(--kids-edge);
}
.kids-mode .hero::after{display:block;position:absolute;inset:-85px -35px auto auto;width:245px;height:245px;border-radius:50%;background:#ffffff42;opacity:1;z-index:-1;content:''}
.kids-mode .hero-tag{background:#ffffffad;border:1px solid #ffffff75;border-radius:9px;padding:5px 10px;color:var(--text-primary)}
.kids-mode .hero p,.kids-mode .map-heading p,.kids-mode .book-header p{color:#344358}
.kids-mode .hero h2 em{color:#7d4800}
:root:not([data-theme=sunshine]) .kids-mode .hero h2 em{color:var(--text-primary)}
.kids-mode .hero-art img{filter:saturate(1.1)}
.kids-mode .btn:not(.white):not(.light):not(.danger){box-shadow:0 2px 0 var(--ui-shadow)}
.kids-mode .hero .btn{background:#fff;border-color:#fff;color:var(--text-primary);box-shadow:0 2px 0 #00000015}
.kids-mode .hero .btn:hover{background:#fff9e9;border-color:#fff9e9}
.kids-mode .btn.white{background:#fffdf6;border-color:var(--kids-edge)}
.kids-mode .stat{border-color:#f0d18b;background:#fff2c9}
.kids-mode .stat:nth-child(2){border-color:#b7dfca;background:#e8f7ee}
.kids-mode .stat:nth-child(3){border-color:#b8d9f0;background:#e8f4ff}
.kids-mode .stat-icon{background:#ffe083!important;color:#8b5a12}
.kids-mode .stat:nth-child(2) .stat-icon{background:#b9e9ce!important;color:#256746}
.kids-mode .stat:nth-child(3) .stat-icon{background:#bedfff!important;color:#28628c}
.kids-mode .task{--kids-task-bg:#e8f5ff;--kids-task-edge:#9ccff0;--kids-task-icon:#bee4ff;--kids-task-ink:#225e8c;background:var(--kids-task-bg);border-color:var(--kids-task-edge)}
.kids-mode .task-read{--kids-task-bg:#ffedf3;--kids-task-edge:#f2b6cc;--kids-task-icon:#ffc8dd;--kids-task-ink:#954569}
.kids-mode .task-spell{--kids-task-bg:#fff3d5;--kids-task-edge:#f0ce83;--kids-task-icon:#ffe09a;--kids-task-ink:#885b13}
.kids-mode .task-game{--kids-task-bg:#f2eaff;--kids-task-edge:#cbb0ed;--kids-task-icon:#ddc5ff;--kids-task-ink:#734c9e}
.kids-mode .task-review{--kids-task-bg:#e6f7ec;--kids-task-edge:#a5d8b8;--kids-task-icon:#bce9cc;--kids-task-ink:#286e49}
.kids-mode .task:hover{background:var(--kids-task-bg);border-color:var(--kids-task-ink);box-shadow:0 0 0 1px var(--kids-task-edge)}
.kids-mode .task-icon{background:var(--kids-task-icon);color:var(--kids-task-ink)}
.kids-mode .task .points{background:#ffffffbd;color:var(--kids-task-ink)}
.kids-mode .task-arrow{color:var(--kids-task-ink)}
.kids-mode .task.is-done{border-color:#85c8a0}
.kids-mode .reward-card{background:#f1e9ff;border-color:#d2bcee}
.kids-mode .reward-card .card-label,.kids-mode .reward-card .badge-link{color:#704c99}
.kids-mode .fragment{background:#fffdfd;border-color:#c5b2df;color:#857096}
.kids-mode .fragment.on{background:#ffda57;border-color:#e4b635;color:#78510b}
.kids-mode .book-home-link{background:#fff0dc;border-color:#efce9e}
.kids-mode .book-home-link>.ui-icon{color:#c17720}
.kids-mode .tip{background:#edf8ef;border:1px solid #bbdfc7;border-radius:14px;padding:14px 16px}
.kids-mode .map-selectors select{background:#fffdf5;border-color:#ffffffad}
.kids-mode .map-chapters button{color:#3e4b5f}
.kids-mode .map-chapters button[aria-pressed=true]{background:#fff;box-shadow:0 2px 0 #00000012}
.kids-mode .map-sheet{border-color:var(--kids-edge)}
.kids-mode .map-word-entry .map-word-row.is-selected{background:var(--ui-soft)}
.kids-mode .map-word-number{background:var(--ui-soft);color:var(--ui-strong);border-radius:6px;padding:4px 6px;top:8px;right:12px}
.kids-mode .map-masks button[aria-pressed=true]{background:var(--ui-primary);color:var(--text-primary);box-shadow:none}
.kids-mode .map-actionbar{border-color:var(--kids-edge);background:#fffdf6f5}
.kids-mode .map-actionbar .map-primary{box-shadow:0 2px 0 var(--ui-shadow)}
.kids-mode .chapter-word-nav{background:linear-gradient(100deg,var(--ui-soft),#fffdf5);border-color:var(--kids-edge)}
.kids-mode .chapter-word-strip .word-strip-item.current{background:var(--ui-primary);color:var(--text-primary)}
.kids-mode .journey-steps{background:var(--ui-soft);border-color:var(--kids-edge)}
.kids-mode .journey-steps:before{background:var(--kids-edge)}
.kids-mode .journey-steps li,.kids-mode .journey-steps li.done{border-color:var(--kids-edge);background:#fff}
.kids-mode .journey-steps li.done{background:#dff3e6;color:#286c49;border-color:#abd3b9}
.kids-mode .journey-steps li.current,.kids-mode .journey-steps li.current.done{background:var(--ui-primary);border-color:var(--ui-primary);color:var(--text-primary)}
.kids-mode .word-focus-card,.kids-mode .journey-card{border-color:var(--kids-edge);border-top:4px solid var(--ui-primary)}
.kids-mode .word-focus-art,.kids-mode .journey-art{background:#edf7ff}
.kids-mode .word-focus-context>.word-sentences{background:#fff6dc;border-color:#ecd39a}
.kids-mode .word-focus-nudge{background:#eaf6ff;border-color:#bcd9ec}
.kids-mode .book-rule{background:#edf8f0;border-color:#bfdfca}
.kids-mode .book-tabs{background:var(--ui-soft);border:1px solid var(--kids-edge)}
.kids-mode .book-tabs button[aria-pressed=true]{background:var(--ui-primary);color:var(--text-primary);box-shadow:none}
.kids-mode .book-word-card{border-color:#b7d8ee;border-top:4px solid #75bfee}
.kids-mode .book-word-card:nth-child(even){border-color:#d0bcea;border-top-color:#b69bde}
.kids-mode .book-star.saved{background:#ffe4a0;color:#7b520d}
.kids-mode .games-intro{background:linear-gradient(110deg,var(--ui-glow),var(--ui-soft));border-color:var(--kids-edge)}
.kids-mode .game-choice{background:var(--game-light);border-color:color-mix(in srgb,var(--game),white 68%);border-top:4px solid var(--game)}
.kids-mode .game-choice-icon{background:#ffffffc9}
.kids-mode .shop-card .item-icon{background:#ffe4a2;border-color:#efd18c}
.kids-mode .shop-card:nth-child(3n+2) .item-icon{background:#ffcfe0}
.kids-mode .shop-card:nth-child(3n+3) .item-icon{background:#bee9d5}
.kids-mode .banner{background:var(--ui-soft);border-color:var(--kids-edge)}
.kids-mode .account-avatar{background:#ffe2a0}
@media(max-width:800px){.kids-mode .nav{background:#fffdf8;border-color:var(--kids-edge)}.kids-mode .nav button.active{background:var(--ui-primary);color:var(--text-primary)}}
@media(max-width:620px){.kids-mode .hero-tag{padding:4px 8px}.kids-mode .game-choice{border-top-width:4px}.kids-mode .map-word-number{right:10px;top:8px;padding:3px 5px;font-size:10px}.kids-mode .map-word-entry .map-star{top:35px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
/* 整词卡也需要实际选择；听音、放卡、继续操作分行展示。 */
.journey-whole{display:grid;justify-items:center;min-width:0}.journey-whole .journey-instruction{margin-bottom:8px}.journey-whole .journey-meaning{margin:8px 0 20px}.whole-audio{display:flex;flex-direction:column;align-items:center;width:100%;gap:8px}.journey-whole .whole-audio .speech-playback{margin:0;max-width:100%;overflow-wrap:anywhere}.whole-audio .speech-playback:empty{display:none}.whole-reveal{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#fff9e5;border:2px dashed #e6bb48;border-radius:18px;min-height:116px;width:min(100%,420px);margin:24px 0 0;padding:18px 20px}.whole-reveal b{font-family:var(--font-word);font-size:clamp(30px,5vw,44px);font-weight:700;line-height:1.2;color:#87641d;overflow-wrap:anywhere;max-width:100%}.whole-reveal span{font-size:13px;line-height:1.6;color:var(--text-secondary)}.whole-reveal.filled{background:#e4f5fc;border-style:solid;border-color:#8acfea}.whole-reveal.filled b{color:#196b8d}.whole-word-pool{display:flex;justify-content:center;width:100%;margin:24px 0 12px}.whole-word-card{max-width:100%;min-height:72px;white-space:normal;overflow-wrap:anywhere;line-height:1.3;padding:14px 28px}.journey-whole .journey-count{margin:8px 0 0}.journey-complete-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:540px;margin:28px auto 12px}.journey-complete-nav .btn{min-width:0;min-height:48px;justify-content:center;font-size:15px;line-height:1.5;padding:12px 10px}.journey-complete-nav .btn:disabled{opacity:.5;cursor:default}.journey-finish-link{display:block;min-height:44px;padding:10px 16px;margin:12px auto 0;font-size:14px}.journey-card>.journey-next{display:flex;justify-content:center;width:fit-content;max-width:100%;margin:16px auto 0}
@media(max-width:620px){.whole-reveal{min-height:104px;padding:16px;margin-top:20px;border-radius:15px}.whole-reveal b{font-size:clamp(28px,8vw,38px)}.whole-word-card{min-width:100px;min-height:68px;padding:12px 20px;font-size:30px}.whole-word-pool{margin-top:20px}.journey-complete-nav{gap:10px;margin-top:24px}.journey-complete-nav .btn{font-size:14px;padding:12px 6px}.journey-card>.journey-next{width:100%}}
/* 词义插画与 be 家族说明。练习的答案遮盖仍由学习流程控制。 */
.word-focus-art:has(.word-illustration-figure),.journey-art:has(.word-illustration-figure),.word-focus-art:has(.number-illustration),.journey-art:has(.number-illustration),.word-focus-art:has(.color-illustration),.journey-art:has(.color-illustration){display:block;height:auto;max-width:340px;min-height:0;padding:0;background:#fffaf1;overflow:hidden;border:1px solid #f4e5ca;border-radius:20px}.word-illustration-figure{margin:0;width:100%}.word-focus-art .word-lineart.word-illustration,.journey-art .word-lineart.word-illustration{display:block;width:100%;height:280px;max-height:none;object-fit:contain;background:#fffdf7}.word-illustration-figure figcaption{font:400 12px/1.6 var(--font-ui);padding:8px 12px;color:var(--text-caption);background:#fff8e7;text-align:center}.word-family-forms{font:600 20px/1.5 var(--font-word);color:#7b4ca6;letter-spacing:1px;margin:0 0 16px;order:2}.word-focus-card:has(.word-family-forms) h1{margin-bottom:4px}.word-usage{border:1px solid #f0d79b;border-radius:20px;background:#fffdf8;padding:24px;margin:0 0 20px;text-align:left;min-width:0}.be-family-tag{display:inline-block;background:#fff0bd;color:#805317;font-size:12px;font-weight:600;padding:5px 10px;border-radius:8px}.word-usage h2{font-size:21px;font-weight:700;line-height:1.5;margin:12px 0;color:var(--text-primary)}.word-usage header>p{font-size:14px;line-height:1.8;color:var(--text-secondary);margin:0 0 18px}.be-rule-list{display:grid;gap:12px}.be-rule{border:1px solid #c4e2f2;background:#eff9ff;border-radius:14px;padding:16px}.be-rule-is{background:#fff5e9;border-color:#f2d3af}.be-rule-are{background:#f5efff;border-color:#dcd0f2}.be-rule-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.be-rule-top>strong{font:700 29px/1.2 var(--font-word);color:#26779e}.be-rule-is .be-rule-top>strong{color:#a85e27}.be-rule-are .be-rule-top>strong{color:#7351a1}.be-rule .btn{font-size:12px;min-height:40px;white-space:nowrap;padding:9px 12px}.be-rule-person{font-size:14px;font-weight:600;line-height:1.7;color:var(--text-primary);margin:12px 0 8px}.be-rule-example{font:600 17px/1.7 var(--font-word);color:var(--text-primary);margin:0 0 4px;overflow-wrap:anywhere}.be-rule-translation{font-size:13px;line-height:1.7;color:var(--text-secondary);margin:0}.be-remember,.be-base-rule,.be-meaning-note{font-size:14px;line-height:1.85;padding:16px;border-radius:14px;margin:16px 0 0;background:#fff3c9;color:var(--text-primary)}.be-remember>strong{font-size:15px;font-weight:600}.be-remember p{margin:8px 0 0}.be-base-rule{background:#f0f8f2}.be-meaning-note{background:#f5f4fb}.be-base-rule h3,.be-meaning-note h3{font-size:15px;font-weight:600;line-height:1.6;margin:0 0 8px}.be-base-rule p,.be-meaning-note p{margin:0 0 12px}.be-example-note,.be-source{font-size:12px;color:var(--text-caption);line-height:1.8;margin:16px 0 0}.be-source summary{cursor:pointer;min-height:40px;display:flex;align-items:center}.be-source p{margin:4px 0}.be-source a{color:#2b6caa}.number-illustration{display:grid;grid-template-columns:100px 1fr;align-items:center;padding:16px;gap:12px;min-height:230px}.number-picture img{width:100%;height:110px;object-fit:contain;border-radius:14px;display:block}.number-value{font:700 76px/1 var(--font-word);color:#2385b1;text-align:center}.number-stars{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.number-stars i{font:normal 26px/1.4 var(--font-ui);color:#bd7b09;background:#ffe8a6;border-radius:9px;text-align:center}.color-illustration{position:relative;min-height:250px;padding:16px;display:grid;align-items:center;justify-items:center;gap:12px}.color-illustration img{width:100%;height:100px;object-fit:cover;border-radius:14px}.color-illustration-swatch{display:block;width:110px;height:110px;background:var(--word-color);border:5px solid #fff;border-radius:28px;outline:1px solid #d9dfe8;box-shadow:0 3px 0 #e6d6b8}
@media(max-width:800px){.word-focus-context>.word-usage{margin-top:20px}.word-usage{padding:20px;border-radius:18px}.word-usage h2{font-size:20px}.word-focus-art .word-lineart.word-illustration,.journey-art .word-lineart.word-illustration{height:250px}.word-focus-art:has(.word-illustration-figure),.journey-art:has(.word-illustration-figure){max-width:300px}.word-family-forms{font-size:18px}.be-rule-top>strong{font-size:27px}.number-illustration{min-height:210px;grid-template-columns:90px 1fr}.number-value{font-size:68px}.color-illustration{min-height:230px}}
.be-rule .btn{min-height:44px}.be-form-ipa{margin-top:10px}.be-form-ipa .reference-ipa,.be-form-ipa .textbook-ipa{font-size:16px;line-height:1.6;margin:0}.be-form-ipa .reference-ipa b,.be-form-ipa .textbook-ipa b{font-size:11px;font-weight:400;color:var(--text-caption)}
.chapter-word-strip .word-strip-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-word-picture .word-illustration-figure,.smart-picture .word-illustration-figure{display:grid;place-items:center;height:100%;width:100%}
.game-word-picture figcaption,.smart-picture figcaption,.big-emoji figcaption{display:none}
.big-emoji .word-illustration-figure{display:grid;place-items:center}
.game-word-picture .number-illustration,.smart-picture .number-illustration{grid-template-columns:28px 1fr;gap:3px;padding:4px;min-height:0;width:100%;height:100%}
.game-word-picture .number-picture img,.smart-picture .number-picture img{width:28px;height:28px;border-radius:5px}
.game-word-picture .number-value,.smart-picture .number-value{font-size:28px}
.game-word-picture .number-stars,.smart-picture .number-stars{gap:2px}
.game-word-picture .number-stars i,.smart-picture .number-stars i{font-size:9px;border-radius:3px}
.game-word-picture .color-illustration,.smart-picture .color-illustration{min-height:0;width:100%;height:100%;padding:4px;gap:3px}
.game-word-picture .color-illustration img,.smart-picture .color-illustration img{width:100%;height:24px;border-radius:5px}
.game-word-picture .color-illustration-swatch,.smart-picture .color-illustration-swatch{width:32px;height:32px;border-width:2px;border-radius:9px}
.big-emoji .number-illustration,.big-emoji .color-illustration{max-width:240px;margin:auto}

/* 新增教材的媒体收录状态，避免将词库入库误当作全媒体齐备。 */
.curriculum-status{display:flex;flex-direction:column;gap:6px;margin:0 0 20px;padding:16px 18px;border:1px solid #f2cf77;border-radius:16px;background:#fff7dc;color:#664813;font-size:14px;line-height:1.6}.curriculum-status strong{font-size:15px;font-weight:600}.curriculum-status span{font-weight:400}
.month-illustration{position:relative;display:grid;place-items:center;width:100%;min-height:220px;padding:18px;background:#fff9e8;border-radius:20px;overflow:hidden}.month-illustration>img{width:190px;height:190px;object-fit:contain;opacity:.38}.month-badge{position:absolute;display:grid;place-items:center;gap:4px;min-width:126px;padding:14px 20px;border:2px solid #f4c54a;border-radius:18px;background:#fffdf7;box-shadow:0 4px 0 #ecd394}.month-badge>b{font:700 54px/1.1 var(--font-word);color:#a75a08}.month-badge>strong{font:600 21px/1.5 var(--font-ui);color:#624418}.game-word-picture .month-illustration,.smart-picture .month-illustration{min-height:0;height:100%;padding:3px}.game-word-picture .month-illustration>img,.smart-picture .month-illustration>img{width:75px;height:70px}.game-word-picture .month-badge,.smart-picture .month-badge{min-width:50px;padding:3px 8px;gap:1px;border-radius:8px}.game-word-picture .month-badge>b,.smart-picture .month-badge>b{font-size:24px}.game-word-picture .month-badge>strong,.smart-picture .month-badge>strong{font-size:11px}
/* 三下的数量、星期、分数与时钟用准确图示辅助，不让生成图承担精确文字。 */
.number-illustration-large{grid-template-columns:1fr;gap:14px}.number-illustration-large .number-value{font-size:64px}.number-illustration-large .number-stars{grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}.number-illustration-large .number-stars i{font-size:17px;line-height:1.6;border-radius:5px}
.calendar-illustration{display:grid;justify-items:center;gap:14px;padding:20px;background:#fffaf0}.calendar-illustration>img{width:150px;height:110px;object-fit:contain}.calendar-illustration>b{font:700 28px/1.5 var(--font-ui);color:#735125}.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;width:100%}.calendar-days i{font:600 15px/2.4 var(--font-ui);text-align:center;border-radius:8px;background:#e9f5fc;color:#275675}.calendar-days .selected{background:#ffcc32;box-shadow:inset 0 0 0 2px #c17e08;color:#493313}
.fraction-illustration,.time-illustration{display:grid;justify-items:center;gap:18px;padding:24px;background:#fffaf0}.fraction-illustration>span{width:150px;height:150px;border-radius:50%;background:linear-gradient(90deg,#ffcc32 50%,#e7eff6 50%);border:3px solid #b97d12}.fraction-illustration>b{font:700 48px/1.2 var(--font-word);color:#287ca2}.time-face{position:relative;width:180px;height:180px;border-radius:50%;border:8px solid #ffcc32;background:#fff;box-shadow:0 3px 0 #e6b859}.time-face i{position:absolute;bottom:50%;left:calc(50% - 3px);width:6px;transform-origin:bottom center;transform:rotate(var(--hand-angle));background:#26617e;border-radius:5px}.time-hour{height:45px}.time-minute{height:65px}.time-face:after{content:'';position:absolute;width:14px;height:14px;background:#eb9523;border-radius:50%;left:calc(50% - 7px);top:calc(50% - 7px)}.time-face>b{position:absolute;font:600 18px/1 var(--font-word);color:#2a3c4f}.time-face>b:nth-of-type(1){top:8px;left:calc(50% - 10px)}.time-face>b:nth-of-type(2){right:10px;top:calc(50% - 9px)}.time-face>b:nth-of-type(3){bottom:8px;left:calc(50% - 5px)}.time-face>b:nth-of-type(4){left:10px;top:calc(50% - 9px)}.time-illustration>strong{font-size:20px;font-weight:600;color:#735125}
.word-focus-art:has(.calendar-illustration),.journey-art:has(.calendar-illustration),.word-focus-art:has(.fraction-illustration),.journey-art:has(.fraction-illustration),.word-focus-art:has(.time-illustration),.journey-art:has(.time-illustration){display:block;height:auto;max-width:340px;min-height:0;padding:0;border:1px solid #f4e5ca;border-radius:20px;overflow:hidden}
.game-word-picture .calendar-illustration,.smart-picture .calendar-illustration{padding:4px;gap:3px}.game-word-picture .calendar-illustration>img,.smart-picture .calendar-illustration>img{width:40px;height:28px}.game-word-picture .calendar-illustration>b,.smart-picture .calendar-illustration>b{font-size:13px}.game-word-picture .calendar-days,.smart-picture .calendar-days{gap:1px}.game-word-picture .calendar-days i,.smart-picture .calendar-days i{font-size:8px;border-radius:3px}.game-word-picture .time-face,.smart-picture .time-face{transform:scale(.45);transform-origin:top center;margin-bottom:-99px}.game-word-picture .time-illustration,.smart-picture .time-illustration{padding:4px;gap:4px}.game-word-picture .time-illustration>strong,.smart-picture .time-illustration>strong{font-size:11px}.game-word-picture .fraction-illustration,.smart-picture .fraction-illustration{padding:4px;gap:3px}.game-word-picture .fraction-illustration>span,.smart-picture .fraction-illustration>span{width:48px;height:48px}.game-word-picture .fraction-illustration>b,.smart-picture .fraction-illustration>b{font-size:22px}

/* One current chapter shared by map, home tasks and games. */
.course-current-label{display:grid;gap:6px;min-width:180px;padding:14px 18px;border-radius:18px;background:rgba(255,255,255,.62);color:var(--text,#263238)}
.course-current-label span,.course-current-label small{font-size:13px;font-weight:400;line-height:1.5}
.course-current-label b{font-size:20px;font-weight:700;line-height:1.4}

.exam-spotlight{color:#fff;background:linear-gradient(120deg,#6940c6,#5434ad);border:1px solid #5330aa;border-radius:20px;padding:22px 24px;position:relative;z-index:1;box-sizing:border-box}
.exam-feature{display:grid;grid-template-columns:minmax(250px,1.05fr) minmax(280px,1fr) minmax(220px,.9fr);align-items:center;gap:22px;margin:0 0 24px}
.exam-prize{display:flex;align-items:center;gap:14px;min-width:0}
.exam-prize-icon{display:grid;place-items:center;flex-shrink:0;width:54px;height:58px;border-radius:16px;background:#ffdb59;color:#573416;transform:rotate(-5deg)}
.exam-prize-icon .ui-icon{width:30px;height:30px}
.exam-spotlight .exam-eyebrow{font-size:13px;line-height:1.6;font-weight:600;color:#eee6ff}
.exam-spotlight h2{color:#fff;font-size:24px;line-height:1.4;font-weight:700;margin:5px 0 7px;letter-spacing:0}
.exam-spotlight p{color:#efeaff;font-size:13px;line-height:1.7;margin:0}
.exam-preparation{display:grid;grid-template-columns:1fr;gap:8px;padding:0;margin:0;list-style:none}
.exam-preparation li{display:flex;align-items:center;gap:9px;color:#f8f5ff;font-size:13px;line-height:1.5;padding:7px 10px;border-radius:10px;background:#ffffff12;border:1px solid #ffffff25}
.exam-step-mark{font-size:18px;line-height:1;flex-shrink:0}.exam-preparation li.done .exam-step-mark{color:#ffe67f}
.exam-preparation li>span:last-child{display:flex;justify-content:space-between;flex:1;gap:12px}.exam-preparation b{font-weight:600;white-space:nowrap}
.exam-cta{display:grid;gap:8px;min-width:0}
.kids-mode .exam-spotlight .exam-main-button{width:100%;min-height:48px;background:#ffda50;color:#402520;border:1px solid #ffdf73;font-size:16px;font-weight:700;border-radius:12px;box-shadow:none;padding:12px 16px}
.kids-mode .exam-spotlight .exam-main-button:hover{background:#ffe476}.kids-mode .exam-spotlight .exam-main-button:disabled{opacity:.75;color:#463950;background:#e9dcff;border-color:#d6c2ff}
.exam-cta>small{display:block;color:#e9dfff;font-size:12px;line-height:1.7;text-align:center}
.exam-fragment-total{font-size:12px;color:#eee5ff;line-height:1.8;text-align:center}.exam-fragment-total b{font-weight:700;color:#ffe986}
.exam-fragment-total button{display:block;margin:3px auto 0;padding:5px 8px;background:transparent;border:0;color:#fff;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:4px;min-height:30px}
.exam-compact{width:320px;flex-shrink:0;padding:18px 20px;display:grid;gap:12px;border-radius:16px}
.exam-compact h2{font-size:21px}.exam-compact .exam-prize-icon{width:42px;height:46px;border-radius:12px}.exam-compact .exam-prize-icon .ui-icon{width:25px;height:25px}
.kids-mode .map-actionbar .map-exam-shortcut{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;background:#643cc2;color:#fff;border-color:#5631ae;flex:1.1}
.map-exam-shortcut small{font-size:11px;line-height:1.3;color:#ffe88c;font-weight:600}
@media(max-width:1200px){.exam-feature{grid-template-columns:minmax(0,1fr) minmax(220px,.8fr);gap:18px}.exam-feature .exam-prize{grid-column:1}.exam-feature .exam-preparation{grid-column:1;grid-row:2;grid-template-columns:1fr}.exam-feature .exam-cta{grid-column:2;grid-row:1 / 3}}
@media(max-width:1000px){.map-heading .exam-compact{width:100%;grid-template-columns:minmax(0,1fr) minmax(200px,.8fr);align-items:center}.exam-compact .exam-cta{gap:5px}}
@media(max-width:620px){.exam-spotlight{padding:18px 16px;border-radius:16px}.exam-feature{grid-template-columns:1fr;gap:16px;margin-bottom:20px}.exam-feature .exam-prize,.exam-feature .exam-preparation,.exam-feature .exam-cta{grid-column:1;grid-row:auto}.exam-spotlight h2{font-size:22px}.exam-prize{gap:12px}.exam-prize-icon{width:47px;height:52px}.exam-preparation{gap:6px}.exam-preparation li{font-size:13px;padding:8px 10px}.map-heading .exam-compact{grid-template-columns:1fr;gap:10px}.exam-compact h2{font-size:20px}.exam-compact .exam-prize-icon{width:40px;height:44px}.exam-compact .exam-cta>small{font-size:11px}.kids-mode .map-actionbar button{padding:8px 5px;font-size:14px;min-height:54px}.kids-mode .map-actionbar .map-primary{flex:1.15}.map-exam-shortcut small{font-size:10px}}

@media(max-width:620px){.exam-feature .exam-preparation{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.exam-feature .exam-preparation li{flex-direction:column;align-items:flex-start;padding:9px 7px;gap:7px;min-width:0}.exam-feature .exam-preparation li>span:last-child{display:grid;gap:4px;font-size:11px;line-height:1.5}.exam-feature .exam-preparation b{font-size:12px}}

.kids-mode .map-heading .exam-spotlight p{color:#efeaff}
.exam-compact{padding:16px 18px;gap:10px}.exam-compact .exam-cta>small{display:none}
.exam-fragment-total button{min-height:44px}

.practice-resume-note{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:0 0 18px;border:1px solid #c4e0f7;border-radius:12px;background:#eaf6ff;color:#254d71;font-size:14px;line-height:1.6}
.practice-resume-note b{font-weight:600;white-space:nowrap}.practice-resume-note span{text-align:right;font-size:13px}
.listen-answer-summary{margin:18px 0 10px;padding:14px 18px;border:1px solid #b7dfc9;border-radius:12px;background:#effaf4;text-align:left}
.listen-answer-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 12px;line-height:1.6}
.listen-answer-tick{color:#16704c;font-weight:700}
.kids-mode .study-box .listen-answer-word{font-family:Arial,sans-serif;font-size:22px;font-weight:700;color:var(--ink);overflow-wrap:break-word}
.listen-answer-summary .textbook-ipa{font-size:17px;line-height:1.6;margin:4px 0 0;overflow-wrap:anywhere}
.listen-answer-summary .textbook-ipa b{font-size:12px;font-weight:600}
.kids-mode .study-box .listen-answer-meaning{color:var(--ink);font-size:18px;line-height:1.6;overflow-wrap:break-word}
.kids-mode .study-box .option.listen-option-correct:disabled{opacity:1;border-color:#2b9165;background:#e1f5e9;color:#145e42}
.option.listen-option-correct::after{content:' ✓';font-weight:700}
/* Parent workspace: one task area at a time. */
.parent-mode{background:#f4f6fa;color:#263246}
.parent-mode .main{max-width:none;min-width:0;padding:24px 32px 20px;background:#f4f6fa}
.parent-mode .sidebar{background:#fff;border-right:1px solid #e3e8ef;box-shadow:none}
.parent-mode .nav button{min-height:46px;font-size:14px;gap:11px;margin-bottom:5px;border-radius:10px;padding:11px 14px;box-shadow:none;font-weight:500}
.parent-mode .nav button.active{background:#edf2ff;border:1px solid #d9e3ff;color:#2851a3;box-shadow:none;font-weight:600}
.parent-mode .nav button>span:first-child{width:22px;height:22px;min-width:22px;background:transparent;padding:0}
.parent-mode .nav button>span:nth-child(2){flex:1;display:block;width:auto;height:auto;min-width:0;padding:0;background:transparent;text-align:left;font-size:14px;font-weight:inherit;line-height:1.4;white-space:normal}
.parent-nav-count{border-radius:6px;background:#fff0db;color:#8a5108;padding:1px 6px;font-size:11px}
.parent-mode .parent-link{font-size:14px;min-height:44px;color:#47566c}
.parent-side-note{font-size:12px;line-height:1.9;color:#7a8597;margin:0 12px 14px}
.parent-mode .topbar{min-height:46px;margin-bottom:24px}
.parent-top-note{font-size:12px;color:#738096}
.parent-mode .footer{margin-top:28px;padding-top:16px;font-size:12px}
.parent-workspace{max-width:1200px;margin:0 auto;min-width:0}
.parent-page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.parent-page-header h1{font-size:28px;font-weight:700;line-height:1.35;color:#253247;margin:4px 0 8px}
.parent-page-header p{color:#69758a;font-size:14px;margin:0;line-height:1.7}
.parent-page-header .parent-kicker{font-size:12px;letter-spacing:.05em;color:#78869a;font-weight:500}
.parent-child-picker{display:grid;gap:7px;min-width:190px;max-width:260px;font-size:12px;color:#69758a}
.parent-child-picker select{width:100%;min-height:44px;background:#fff;border:1px solid #d9e0ea;border-radius:10px;color:#263246;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.parent-content{min-width:0}
.parent-content .card{padding:22px;border:1px solid #e1e6ee;border-radius:14px;box-shadow:0 2px 7px #1c335205;margin:0 0 18px;background:#fff}
.parent-content h2{font-size:18px;font-weight:600;line-height:1.5;margin:0 0 14px;color:#253247}
.parent-content h3{font-size:17px;font-weight:600;line-height:1.6;margin:12px 0;color:#253247}
.parent-content .section-head h2,.parent-content .section-head h3{margin:0}
.parent-content .muted{font-size:14px;line-height:1.75;color:#69758a}
.parent-content .btn{min-height:42px;font-size:14px;border-radius:9px;padding:10px 16px;box-shadow:none;font-weight:600;background:#4268bd;border-color:#4268bd;color:#fff}
.parent-content .btn.white{background:#fff;color:#46556c;border-color:#d8e0eb}
.parent-content .btn.light{background:#eef3ff;color:#34599f;border-color:#dfe7fa}
.parent-content .btn.danger{background:#fff3f1;border-color:#f1ccc6;color:#a84131}
.parent-content .btn:disabled{opacity:.45}
.parent-content .btn.small{min-height:36px;font-size:12px;padding:7px 11px}
.parent-content input,.parent-content select{font-size:14px;min-height:42px;border-radius:9px;border-color:#d9e0ea;background:#fff;color:#263246;max-width:100%;box-sizing:border-box}
.parent-content input[type=checkbox],.parent-content input[type=radio]{min-height:initial;accent-color:#4268bd}
.parent-content label{color:#526178}
.parent-content .status{font-size:11px;color:#68778f;background:#f3f6fa;border-color:#e2e8f0}
.parent-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.parent-metrics article{display:grid;gap:11px;background:#fff;border:1px solid #e1e6ee;border-radius:13px;padding:20px}
.parent-metrics article>span{font-size:13px;color:#738096}
.parent-metrics article>strong{font-size:30px;color:#253247;font-weight:700;line-height:1.15}
.parent-metrics article:nth-child(3){background:#fffaf0;border-color:#f0e0ba}
.parent-overview-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:18px}
.parent-current-course h3{overflow-wrap:anywhere;font-size:20px}
.parent-current-course .bar{height:8px;margin:18px 0 22px;background:#eaf0fb}
.parent-current-course .bar i{background:#6686cb}
.parent-todo-number{font-size:19px;font-weight:600;color:#3f4e65;margin:22px 0 12px}
.parent-shortcuts>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.parent-shortcuts button{display:grid;position:relative;gap:7px;text-align:left;border:1px solid #e5eaf2;border-radius:10px;background:#f9fbff;padding:15px 26px 15px 14px;min-height:86px;color:#344760}
.parent-shortcuts strong{font-size:14px;font-weight:600}
.parent-shortcuts span{font-size:12px;color:#78859a;line-height:1.5}
.parent-shortcuts b{position:absolute;right:12px;top:16px;font-size:16px;font-weight:400}
.parent-local-note{font-size:12px;color:#8a95a6;line-height:1.8;margin:2px 0 0}
.parent-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.parent-account-create .inline-form{align-items:flex-end;max-width:560px}
.parent-account-create .field{margin:0;flex:1}
.parent-account-grid .managed-account{margin:0;min-width:0}
.parent-account-grid .managed-account.selected{border-color:#b9caec;background:#fbfcff}
.parent-account-grid .managed-account h2{overflow-wrap:anywhere}
.parent-plan .scope-chapters{max-height:none;overflow:visible;border:0;padding:0;margin-bottom:20px}
.parent-plan .scope-group{border:1px solid #e3e8ef;border-radius:10px;padding:14px;margin-top:12px}
.parent-plan .scope-group h4{margin:0 0 12px;font-size:14px}
.parent-plan .scope-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.parent-plan .scope-group>h4{grid-column:1/-1}
.parent-plan .scope-chapter{margin:0;min-height:50px;padding:9px;border-radius:8px;background:#f8faff;border:1px solid #e7ecf5;font-size:13px}
.parent-plan .scope-fieldset{margin:18px 0}
.parent-savebar{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#ffffffed;border-top:1px solid #e2e7ef;padding:14px 0 4px;z-index:2;backdrop-filter:blur(6px)}
.parent-savebar>span{font-size:12px;color:#7c889b}
.parent-plan .scope-chapter span{overflow-wrap:anywhere;min-width:0}
.parent-plan .scope-chapter small{font-size:11px;color:#7b8799}
.parent-subtabs{display:flex;gap:5px;flex-wrap:wrap;padding:5px;background:#e9edf4;border:1px solid #e0e6ef;border-radius:10px;width:max-content;max-width:100%;margin-bottom:18px}
.parent-subtabs button{background:transparent;border:0;border-radius:7px;padding:9px 18px;font-size:14px;color:#65758d;min-height:38px;font-weight:500}
.parent-subtabs button.active{background:#fff;color:#34599f;box-shadow:0 1px 4px #26374c12;font-weight:600}
.parent-catalog-filters{display:grid;grid-template-columns:minmax(160px,1.4fr) minmax(160px,1.4fr) minmax(110px,.8fr) minmax(110px,.8fr) auto auto;gap:10px;align-items:end;margin:20px 0}
.parent-catalog-filters label{display:grid;gap:6px;font-size:12px;min-width:0}
.parent-catalog-filters input,.parent-catalog-filters select{width:100%;min-width:0}
.parent-content .managed-chapters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-height:none;overflow:visible;padding:0;border:0}
.parent-content .managed-chapter{min-width:0;padding:16px;border-radius:11px;background:#fff;border:1px solid #e3e8ef}
.parent-content .managed-chapter>.row{align-items:flex-start;gap:8px}
.parent-content .managed-chapter h4{font-size:14px;line-height:1.65;margin:0;overflow-wrap:anywhere;color:#35465f}
.parent-content .managed-chapter .muted{font-size:12px;margin:10px 0 12px}
.parent-content .managed-chapter .actions{gap:7px;margin-top:13px}
.parent-content .chapter-grade-row{display:grid;grid-template-columns:auto minmax(70px,1fr) auto;gap:8px;align-items:center}
.parent-content .chapter-grade-row label{font-size:12px}
.parent-content .chapter-grade-row select{min-width:0;width:100%;min-height:36px;font-size:12px}
.parent-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid #e7ebf2}
.parent-pagination>span{font-size:12px;color:#78859a}
.parent-pagination>div{display:flex;gap:8px}
.parent-inline-label{display:flex;align-items:center;gap:9px;font-size:12px}
.parent-inline-label select{min-width:125px}
.parent-content .content-help{font-size:13px;line-height:1.8;margin-top:18px}
.parent-content .grade-manager{margin-top:0}
.parent-content #settings-form{max-width:650px}
.parent-content #rewards-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 20px}
.parent-content #rewards-form>.inline-note,.parent-content #rewards-form>button{grid-column:1/-1}
.parent-content #rewards-form>.field{margin:0}
.parent-content #rewards-form>.row{margin:0;align-items:center;gap:12px}
.parent-content .parent-danger{margin-top:18px;border-color:#ebd2cd}
.parent-danger summary{font-size:14px;font-weight:600;color:#a64a3a;cursor:pointer}
.parent-danger p{font-size:13px;line-height:1.8;color:#7c655f}
.parent-content .activity-page>.back,.parent-content .activity-header .eyebrow,.parent-content .activity-header h1,.parent-content .activity-header p{display:none}
.parent-content .activity-header{justify-content:flex-end;margin:0 0 14px}
.parent-content .activity-notice{font-size:12px;line-height:1.7}
.parent-content .activity-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media(max-width:760px){.parent-mode .nav button>span:nth-child(2){font-size:12px}}
@media(max-width:1250px){.parent-catalog-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.parent-catalog-filters label:first-child,.parent-catalog-filters label:nth-child(2){grid-column:span 2}.parent-shortcuts>div{grid-template-columns:repeat(2,minmax(0,1fr))}.parent-content .chapter-grade-row{grid-template-columns:auto minmax(60px,1fr)}.parent-content .chapter-grade-row button{grid-column:2;justify-self:start}}
@media(max-width:1000px){.parent-mode .main{padding:20px}.parent-overview-grid{grid-template-columns:1fr}.parent-metrics{gap:10px}.parent-metrics article{padding:16px}.parent-content .managed-chapters{grid-template-columns:1fr}.parent-content .chapter-grade-row{grid-template-columns:auto minmax(70px,1fr) auto}.parent-content .chapter-grade-row button{grid-column:auto}.parent-content .activity-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.layout.parent-mode{display:block;padding-bottom:0}.parent-mode .sidebar{position:static;display:block;width:auto;max-width:none;height:auto;padding:14px 16px;border:0;border-bottom:1px solid #e1e6ee;overflow:visible}.parent-mode .sidebar .brand{margin:0 0 14px}.parent-mode .sidebar .brand-mark{width:34px;height:34px}.parent-mode .sidebar .brand b{font-size:17px}.parent-mode .sidebar .brand small{font-size:10px}.parent-mode .sidebar .nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;position:static;background:transparent;border:0;box-shadow:none;padding:0;width:auto}.parent-mode .nav button{display:flex;flex-direction:column;justify-content:center;padding:8px 3px;gap:4px;font-size:12px;min-height:59px;margin:0;border:1px solid transparent}.parent-mode .nav button>span:nth-child(2){text-align:center;flex:initial}.parent-mode .nav button>span:first-child{width:19px;height:19px;min-width:19px}.parent-nav-count{display:none}.parent-mode .sidebar-bottom{display:none}.parent-mode .main{margin:0;padding:16px;min-height:0}.parent-mode .topbar{margin-bottom:18px;gap:10px;min-height:38px}.parent-top-note{display:none}.parent-mode .crumb{font-size:11px}.parent-mode .top-right{gap:0}.parent-mode .top-right .badge{font-size:11px;min-height:36px;padding:7px 11px}.parent-page-header{align-items:flex-start;gap:16px;flex-direction:column;margin-bottom:20px}.parent-page-header h1{font-size:25px}.parent-page-header p{font-size:13px}.parent-child-picker{width:100%;max-width:none;min-width:0;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}.parent-child-picker select{min-height:40px;font-size:13px}.parent-content .card{padding:17px;margin-bottom:14px}.parent-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.parent-metrics article{padding:16px}.parent-metrics article>strong{font-size:26px}.parent-overview-grid{gap:0}.parent-account-grid{grid-template-columns:1fr;gap:14px}.parent-current-course h3{font-size:18px}.parent-shortcuts>div{gap:9px}.parent-shortcuts button{padding:13px 20px 13px 12px}.parent-shortcuts strong{font-size:13px}.parent-shortcuts span{font-size:11px}.parent-shortcuts b{right:7px}.parent-content .section-head{gap:10px;flex-wrap:wrap}.parent-content h2{font-size:17px}.parent-catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.parent-catalog-filters label:first-child,.parent-catalog-filters label:nth-child(2){grid-column:1/-1}.parent-catalog-filters .btn{width:100%}.parent-content .managed-chapter{padding:14px}.parent-content .chapter-grade-row{grid-template-columns:auto minmax(50px,1fr) auto;gap:6px}.parent-content .chapter-grade-row .btn.small{font-size:11px;padding:7px}.parent-content .managed-chapters{gap:12px}.parent-plan .scope-group{grid-template-columns:1fr;padding:10px}.parent-content #rewards-form{display:block}.parent-content #rewards-form>.field{margin:20px 0 12px}.parent-content #rewards-form>.row{margin-bottom:22px}.parent-subtabs{width:100%;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;box-sizing:border-box}.parent-subtabs button{padding:8px 6px;font-size:13px}.parent-pagination{align-items:flex-start;flex-direction:column}.parent-pagination>div{align-self:flex-end}.parent-content .activity-filters{grid-template-columns:1fr 1fr}.parent-content .activity-filters label{min-width:0}.parent-content .activity-filters input,.parent-content .activity-filters select{width:100%;min-width:0}.parent-content .activity-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.practice-resume-note{align-items:flex-start;flex-direction:column;gap:3px;padding:11px 13px}.practice-resume-note span{text-align:left}}

/* Verified textbook source notes and vocabulary without an exact illustration. */
.word-sounds .audio-source-note{display:block;flex-basis:100%;max-width:520px;margin:8px auto 0;font-size:12px;line-height:1.6;color:var(--muted,#64748b);font-weight:400;text-align:center}.word-art-pending{display:flex;min-height:150px;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-radius:24px;background:#fff8df;color:#916311}.word-art-pending>span{font-size:44px;font-weight:700;letter-spacing:6px}.word-art-pending>small{font-size:13px;font-weight:500}.curriculum-status summary{cursor:pointer;font-weight:600}.curriculum-status[open] summary{margin-bottom:10px}

/* A chapter assessment now has one preparation requirement. */
.exam-preparation{grid-template-columns:1fr}
.exam-cta [data-action="exam-list"]{white-space:normal;text-align:center}

.exam-feature .exam-preparation{grid-template-columns:1fr}

/* Four task cards share the same grid cell size. */
.kids-mode .task-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.kids-mode .task-review{grid-column:auto;min-height:0}
@media(max-width:480px){.kids-mode .task-list{gap:10px}.kids-mode .task{padding:16px 12px;grid-template-columns:36px minmax(0,1fr);column-gap:9px}.kids-mode .task-title{font-size:15px}.kids-mode .task-description{font-size:12px}.kids-mode .task-icon{width:36px;height:40px}}

.reward-config-card{min-width:0;margin:20px 0;padding:20px;border:1px solid var(--stroke,#dce4ee);border-radius:14px}
.reward-config-card>legend{padding:0 8px;font-size:17px;font-weight:600}
.reward-config-values{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.reward-config-values>label{display:grid;gap:7px}
.reward-config-values input[type=number]{width:150px}
.reward-audience{min-width:0;margin:0 0 16px;padding:16px;border:1px solid var(--stroke,#dce4ee);border-radius:10px}
.reward-audience>legend{font-weight:600;padding:0 6px}
.reward-audience>label{display:grid;gap:8px;max-width:360px}
.reward-students{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.reward-students>label{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--stroke,#dce4ee);border-radius:9px}
.reward-students input{width:18px;height:18px}
@media(max-width:600px){.reward-config-card{padding:14px}.reward-config-values{gap:12px}.reward-audience{padding:12px}.reward-students>label{flex:1 1 120px}}

/* Custom gifts share one currency-labelled catalog; cat expenses remain separate. */
.reward-currency{display:inline-flex;align-items:center;width:fit-content;padding:5px 10px;border-radius:8px;font-size:12px;font-weight:600;line-height:1.5;margin-bottom:12px}
.reward-currency.points{background:#fff1c7;color:#8a5b08}
.reward-currency.fragments-label{background:#eee6ff;color:#6740a6}
.reward-add-actions{margin:0;gap:8px}
@media(max-width:760px){.reward-add-actions{width:100%;flex-wrap:wrap}.reward-add-actions .btn{flex:1}}

.mastery-badge{display:inline-flex;align-items:center;align-self:flex-start;border-radius:7px;padding:4px 9px;font-size:12px;font-weight:600;line-height:1.5;width:fit-content}.mastery-0{background:#ffebe7;color:#b53723}.mastery-1{background:#eef2f8;color:#526480}.mastery-2{background:#e6f2ff;color:#2165ad}.mastery-3{background:#dcf5e9;color:#16734a}.mastery-new{background:#f2f3f5;color:#718096}.mastery-counts{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.mastery-counts span{padding:12px;background:#f4f7fc;border-radius:10px}.mastery-counts b{margin-left:5px}

.journey-mastery{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}.journey-mastery .mastery-badge{margin:0}.journey-mastery>span{font-size:13px;color:var(--muted)}

/* Mastery progress uses two balanced panels and one shared footer. */
.kids-mode .mastery-spotlight{padding:22px 24px;border-radius:20px;background:linear-gradient(120deg,#6845c5,#5033a5);border:1px solid #6341b4;box-shadow:0 6px 18px #5737a615}
.kids-mode .mastery-spotlight.exam-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.95fr);gap:20px 28px;align-items:center}
.mastery-main,.mastery-side{min-width:0}
.mastery-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.mastery-heading>div{flex:1;min-width:0}
.mastery-prize-icon{display:grid;place-items:center;flex:none;width:46px;height:48px;border-radius:14px;background:#ffdc59;color:#53371c}
.mastery-prize-icon .ui-icon{width:28px;height:28px}
.mastery-eyebrow{display:block;font-size:12px;line-height:1.5;color:#e9dfff;letter-spacing:.5px}
.kids-mode .mastery-heading h2{font-size:22px;line-height:1.35;margin:3px 0 0;color:#fff;font-weight:700;overflow-wrap:anywhere}
.mastery-award{flex:none;border:1px solid #ffe58966;background:#ffdb5020;color:#ffe689;border-radius:20px;padding:6px 10px;font-size:12px;font-weight:600;white-space:nowrap}
.mastery-progress-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:#fff;font-size:14px;line-height:1.6;margin-bottom:10px}
.mastery-progress-heading>span>strong{font-size:22px;font-weight:700;margin-left:4px}
.mastery-progress-total{color:#e3d8fb;font-size:13px}
.mastery-progress-track{position:relative;height:10px;border-radius:6px;background:#2a176a65;overflow:hidden}
.mastery-progress-track>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffcc32,#ffe78b)}
.mastery-progress-track>span{position:absolute;top:0;bottom:0;width:2px;background:#ffffff9c;transform:translateX(-2px)}
.kids-mode .mastery-spotlight .mastery-progress-caption{margin:9px 0 0;font-size:12px;line-height:1.6;color:#e7ddfa}
.mastery-conditions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mastery-condition{display:grid;gap:5px;min-width:0;background:#ffffff10;border:1px solid #ffffff27;border-radius:12px;padding:12px 14px}
.mastery-condition>span{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#e9e0fb;gap:8px}
.mastery-condition>span>b{font-size:16px;font-weight:500;color:#dacbfa}
.mastery-condition>strong{font-size:24px;line-height:1.25;font-weight:700;color:#fff}
.mastery-condition strong small{font-size:12px;color:#e9e0fb;font-weight:400}
.mastery-condition>small{font-size:11px;line-height:1.5;color:#e3d9f7}
.mastery-condition.is-ready{border-color:#b9f1d969;background:#b9f1d914}
.mastery-condition.is-ready>span>b{color:#b9f1d9}
.mastery-actions{display:flex;align-items:center;gap:14px;margin-top:12px}
.kids-mode .mastery-spotlight .exam-main-button{width:auto;flex:1;min-height:42px;font-size:14px;padding:9px 12px;border-radius:10px}
.mastery-text-button{background:transparent;border:0;box-shadow:none;color:#f0e8ff;font-size:12px;font-weight:500;line-height:1.6;padding:7px 0;white-space:nowrap;min-height:36px;cursor:pointer}
.mastery-text-button:hover{color:#ffe78b;text-decoration:underline;text-underline-offset:4px}
.mastery-fragment-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #ffffff26;padding-top:12px;font-size:12px;color:#e9dffc}
.mastery-fragment-footer b{color:#ffe78b;font-weight:600}
.mastery-footer-divider{margin:0 10px;color:#bcabe4}
.kids-mode .map-heading .mastery-spotlight.exam-compact{display:grid;grid-template-columns:1fr;width:350px;gap:14px;padding:18px;border-radius:16px}
.exam-compact .mastery-heading{gap:10px;margin-bottom:12px}
.kids-mode .exam-compact .mastery-heading h2{font-size:19px}
.exam-compact .mastery-prize-icon{width:38px;height:40px;border-radius:11px}
.exam-compact .mastery-prize-icon .ui-icon{width:24px;height:24px}
.exam-compact .mastery-award{font-size:11px;padding:5px 8px}
.exam-compact .mastery-condition{padding:9px 11px;gap:3px}
.exam-compact .mastery-condition>strong{font-size:21px}
.exam-compact .mastery-actions{gap:10px;margin-top:10px}
@media(max-width:1050px){.kids-mode .mastery-spotlight.exam-feature{gap:18px;grid-template-columns:minmax(0,1fr) minmax(270px,.95fr)}.mastery-heading{gap:10px}.mastery-award{font-size:11px;padding:5px 8px}.kids-mode .mastery-heading h2{font-size:20px}.mastery-condition{padding:11px}.mastery-actions{gap:10px}.kids-mode .map-heading .mastery-spotlight.exam-compact{width:100%}}
@media(max-width:760px){.kids-mode .mastery-spotlight.exam-feature{grid-template-columns:1fr;padding:20px;gap:16px}.mastery-heading{margin-bottom:14px}.mastery-condition>strong{font-size:23px}.mastery-fragment-footer{padding-top:10px}.mastery-fragment-footer .mastery-text-button{min-height:32px}}
@media(max-width:420px){.kids-mode .mastery-spotlight,.kids-mode .mastery-spotlight.exam-feature{padding:17px 15px}.mastery-award{font-size:10px;padding:5px 7px}.mastery-prize-icon{width:38px;height:40px}.kids-mode .mastery-heading h2{font-size:19px}.mastery-condition{padding:10px}.mastery-actions{gap:10px}.mastery-text-button{font-size:11px}.mastery-fragment-footer{font-size:11px}.mastery-footer-divider{margin:0 5px}}

.kids-mode .map-header>.mastery-spotlight{width:100%;margin:20px 0 18px}.kids-mode .map-actionbar>[data-action="map-practice"]{background:#dcecff;border:1px solid #87b9f1;color:#205b9c;font-weight:600}.kids-mode .map-actionbar>[data-action="map-practice"]:hover{background:#c9e1ff;border-color:#5498e1}.kids-mode .map-actionbar>[data-action="map-practice"]:focus-visible{outline:3px solid #2569bb;outline-offset:3px}

.kids-mode .mastery-simple.exam-feature{grid-template-columns:minmax(0,1fr) minmax(190px,.6fr);gap:16px 28px;padding:18px 22px}
.mastery-simple .mastery-heading{margin-bottom:12px}
.kids-mode .mastery-simple .mastery-heading h2{font-size:20px}
.mastery-simple .mastery-prize-icon{width:40px;height:42px;border-radius:12px}
.mastery-simple .mastery-progress-heading{margin-bottom:8px;font-size:13px}
.mastery-simple .mastery-progress-heading>span>strong{font-size:20px}
.mastery-simple .mastery-progress-track{height:8px}
.mastery-brief{min-width:0;display:grid;gap:8px;align-content:center}
.kids-mode .mastery-simple .mastery-brief>p{font-size:12px;line-height:1.6;margin:0;color:#ece2ff}
.kids-mode .mastery-simple .mastery-brief .exam-main-button{width:100%;flex:none;min-height:40px}
.mastery-brief-links{display:flex;justify-content:space-between;gap:16px}
.mastery-brief-links .mastery-text-button{padding:2px 0;min-height:24px;font-size:11px}
@media(max-width:760px){.kids-mode .mastery-simple.exam-feature{grid-template-columns:1fr;padding:17px;gap:12px}.mastery-brief{grid-template-columns:minmax(0,1fr) auto;align-items:center}.mastery-brief>p{grid-column:1/-1}.mastery-brief-links{display:grid;gap:2px}.kids-mode .mastery-simple .mastery-brief .exam-main-button{min-width:145px}}

/* 家长查看每位孩子的积分与碎片 */
.parent-account-assets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.parent-account-assets div{min-width:0;padding:10px;border-radius:10px;background:#f2f6fc}.parent-account-assets dt{font-size:12px;line-height:1.4;color:#586982}.parent-account-assets dd{margin:5px 0 0;font-size:19px;font-weight:700;color:#253247;overflow-wrap:anywhere}.parent-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:700px){.parent-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 首页错词提醒：不依赖颜色区分，也适配窄屏。 */
.kids-mode .review-reminder{width:100%;display:flex;align-items:center;gap:12px;text-align:left;margin:16px 0;padding:15px 18px;border:1px solid #e9a846;border-radius:16px;background:#fff2d5;color:#704000;cursor:pointer}.review-reminder>span:first-child{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:#ffd76d;font-size:20px}.review-reminder>span:nth-child(2){display:grid;gap:3px;min-width:0}.review-reminder strong{font-size:16px;line-height:1.4}.review-reminder small{font-size:13px;color:#785c30;line-height:1.4}.review-reminder>b{margin-left:auto;font-size:20px}.kids-mode .task-review.review-needs-attention{border-color:#e2a64c;box-shadow:inset 0 0 0 1px #e2a64c}.review-count{display:inline-block;margin:0 0 5px;padding:3px 8px;border-radius:7px;background:#ffdb83;color:#704000;font-size:12px;font-weight:700;line-height:1.35}@media(max-width:480px){.kids-mode .review-reminder{padding:12px 14px}.review-reminder strong{font-size:15px}.review-reminder small{font-size:12px}.review-count{font-size:11px}}

/* 家长章节词库：窄屏避免表格挤压，逐词配置。 */
dialog:has(.parent-word-list){width:min(920px,94vw);max-width:94vw;max-height:90vh}.parent-word-list{display:grid;gap:12px;max-height:60vh;overflow:auto;padding:4px 4px 10px 0}.parent-word-editor{border:1px solid #dfe6ef;border-radius:14px;padding:16px;background:#fbfcfe;min-width:0}.parent-word-editor header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.parent-word-editor header>strong{font-size:20px;color:#243950}.parent-word-editor header>span{color:#607287}.parent-sentence-form{display:grid;gap:10px;min-width:0}.parent-sentence-form>label,.parent-sentence-controls label{display:grid;gap:5px;font-size:13px;color:#52647c;min-width:0}.parent-sentence-form select,.parent-sentence-form input[type=file]{width:100%;min-width:0;max-width:100%;padding:9px;border:1px solid #ccd8e6;border-radius:9px;background:white;color:#253850}.parent-sentence-current{margin:0!important;padding:10px 12px;background:#f1f6fc;border-radius:10px;overflow-wrap:anywhere}.parent-sentence-current small{color:#63758d}.parent-sentence-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.parent-sentence-controls label{flex:1;min-width:180px}.parent-sentence-form>.btn{justify-self:start}.parent-sentence-result{font-size:13px;color:#99502d;overflow-wrap:anywhere}.parent-sentence-form .inline-note{margin:0}.parent-sentence-form label.checkbox{display:flex;align-items:center;gap:8px}@media(max-width:600px){dialog:has(.parent-word-list){width:94vw;padding:18px 14px}.parent-word-list{max-height:60vh}.parent-word-editor{padding:12px}.parent-sentence-controls label{flex-basis:100%}}

.parent-word-filter{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:12px 0}.parent-word-filter label{display:grid;gap:5px;flex:1;min-width:140px;font-size:13px;color:#52647c}.parent-word-filter input,.parent-word-filter select,.parent-sentence-form textarea{width:100%;min-width:0;padding:9px;border:1px solid #ccd8e6;border-radius:9px;background:white;color:#253850;font:inherit}.parent-sentence-form textarea{resize:vertical;line-height:1.5}.parent-word-count{font-size:12px;color:#627185}.parent-word-editor[hidden]{display:none}

.database-backup-section{margin-bottom:18px}.database-import-status{overflow-wrap:anywhere}.database-import-status.is-error{color:#b42318}

/* Spelling practice: keep the result, feedback and next action comfortably apart. */
.kids-mode .spell-practice-box .spell-answer-summary{margin:24px 0 0}
.kids-mode .spell-practice-box .spell-answer-summary .btn{margin-top:12px}
.kids-mode .spell-practice-box > .feedback{margin:18px 0;min-height:0;line-height:1.7}
.kids-mode .spell-practice-box > .feedback:empty{display:none}
.kids-mode .spell-practice-box > .hint{margin-top:24px}
/* Keep the encouragement panel clear of the next button in all practice modes. */
.kids-mode .study-box > [data-action="next-question"] + .hint{margin-top:24px}
/* Keep touch scrolling cheap and all spelling fields clear of the keyboard. */
@media(max-width:1100px),(pointer:coarse){
 button,a,input,select,summary{touch-action:manipulation}
 .map-actionbar,.parent-savebar,dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
 .map-actionbar,.parent-savebar{background:#fff}
 #journey-write,#memory-answer,#answer-form .spell-input{scroll-margin-block:20px}
 body:has(#journey-write:focus,#memory-answer:focus,#answer-form .spell-input:focus) .kids-mode .nav{display:none}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
.daily-count-settings{gap:16px}.daily-count-settings>.field{min-width:0}@media(max-width:600px){.daily-count-settings{flex-direction:column;align-items:stretch}}
@media(max-width:800px){
 .kids-mode .spell-practice-box #answer-form{scroll-margin:16px 0}
 .kids-mode .spell-practice-box .spell-input{font-size:max(16px, 1.15rem)}
 body:has(#answer-form .spell-input:focus) .kids-mode .nav{display:none}
}

.map-review-count{font-size:12px;line-height:1.5;color:var(--text-secondary);overflow-wrap:anywhere}

.journey-card > .word-sentences + .journey-read-hear{margin-top:20px}
