/* Generated from native surfaces; npm run sync. Web composition: experience-web.css */
.compact-home{padding-top:7px}.stage-switch{display:flex;gap:4px;margin-bottom:12px;padding:2.5px;background:var(--surface);border-radius:9px}.stage-option{flex:1;min-height:44px;display:flex;gap:6px;align-items:center;justify-content:center;font-size:var(--type-body,16px);color:var(--muted);border-radius:6.5px}.stage-option.active{background:var(--soft-blue);color:var(--blue)}.stage-size{font-size:var(--type-helper,14px);font-variant-numeric:tabular-nums}.daily-feature{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;background:var(--gold);color:var(--ink);padding:16px;border-radius:13px;text-align:left}.feature-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.feature-title{font-size:22px;font-weight:500;line-height:1.25}.feature-meta{font-size:var(--type-meta,13px);color:var(--gold-ink);margin-top:6px}.feature-start{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:7px 12px;background:var(--blue);color:var(--surface);border-radius:9px;font-size:var(--type-helper,14px);margin-top:13px}.feature-start .chevron{height:6px;width:6px;border-width:1px}.daily-mini{display:grid;grid-auto-rows:1fr;width:96px;height:96px;flex:none;overflow:hidden;background:var(--surface);border:1px solid #91a4c1;border-radius:6px}.daily-mini>span{display:flex;align-items:center;justify-content:center;border-right:1px solid #dde4ef;border-bottom:1px solid #dde4ef;color:var(--blue);font-weight:500;line-height:1}.daily-mini .split-r{border-right-color:#91a4c1}.daily-mini .split-b{border-bottom-color:#91a4c1}.daily-finished .feature-start{background:var(--mint);color:var(--mint-ink)}.learn-teaser{display:flex;align-items:center;gap:10px;width:100%;padding:11.5px 4px;margin:5px 0 6px;text-align:left}.learn-mark{display:grid;grid-template-columns:repeat(2,1fr);gap:2.5px;width:26px;height:26px;flex:none;transform:rotate(-6deg);color:var(--mint-ink)}.learn-mark div{border:1px solid currentColor;border-radius:2px}.learn-mark div:first-child{background:var(--mint-ink)}.learn-copy{flex:1;font-size:var(--type-body,16px)}.learn-meta{font-size:var(--type-meta,13px);color:var(--muted);margin-top:1px}.learn-teaser>.chevron{color:var(--mint-ink)}.practice{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:13px}.practice-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:9px}.practice-title{font-size:var(--type-body,16px);font-weight:500}.size-switch{display:flex;background:var(--bg);padding:2px;border-radius:7px}.size-item{font-size:var(--type-helper,14px);color:var(--muted);min-height:44px;padding:4px 6px;display:flex;align-items:center;border-radius:5px}.size-item.active{background:var(--surface);color:var(--ink)}.variant-tabs{display:flex;gap:2px;margin:0 0 11px}.variant{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:70px;min-width:0;flex:1;border:1px solid transparent;border-radius:8.5px;font-size:var(--type-helper,14px);color:var(--muted)}.variant.active{background:var(--soft-blue);color:var(--blue);border-color:#b8cdeb}.variant-mini{width:29px;height:29px;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid currentColor;border-radius:2px;gap:1px;background:#c7d0dd;overflow:hidden}.variant-mini i{background:var(--surface);font-size:7.5px;color:var(--blue);display:flex;align-items:center;justify-content:center}.variant-mini.diagonal div:nth-child(4n + 1){background:#e5e0f4}.variant-mini.irregular div:nth-child(2),.variant-mini.irregular div:nth-child(4),.variant-mini.irregular div:nth-child(5){background:#d9eee5}.variant-mini.killer div:nth-child(1),.variant-mini.killer div:nth-child(2),.variant-mini.killer div:nth-child(5){border:1px dashed #a78c55;background:#fff8e8}.variant-mini.calcudoku div:nth-child(1),.variant-mini.calcudoku div:nth-child(2),.variant-mini.calcudoku div:nth-child(5){background:#fff0d6;border:1px solid #9a7d4c}.diffs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.diffs.single{grid-template-columns:1fr}.diffs .diff{width:100%;min-width:0;min-height:46px;display:flex;align-items:center;gap:9px;border-radius:9px;padding:9px 10px;text-align:left;font-size:var(--type-body,16px)}.diff span{flex:1;white-space:nowrap}.diff.easy{background:var(--mint);color:var(--mint-ink)}.diff.standard{background:var(--soft-blue);color:var(--blue)}.diff.advanced{background:var(--gold);color:var(--gold-ink)}.diff.challenge{background:#eee8f7;color:#70558c}.diff .chevron{width:6px;height:6px;border-width:1px}.level-mark{display:grid;grid-template-columns:repeat(2,1fr);gap:2px;width:17px;height:17px;flex:none;transform:rotate(-6deg)}.level-mark i{border:1px solid currentColor;border-radius:1.5px}.level-mark .lit{background:currentColor}.resume-strip{display:flex;align-items:center;gap:9px;width:100%;min-height:52px;border:1px solid var(--line);border-radius:10.5px;background:var(--surface);padding:7px 10px;margin-top:11px;text-align:left}.resume-thumb{display:grid;width:36px;height:36px;flex:none;gap:1px;border:1px solid #bdcbe0;background:#dce5f2;border-radius:3.5px;overflow:hidden}.resume-thumb div{background:var(--surface)}.resume-thumb .given{background:#b8c7dc}.resume-thumb .filled{background:#6c9dd9}.resume-info{flex:1;min-width:0}.resume-label{font-size:var(--type-helper,14px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resume-meta{font-size:var(--type-meta,13px);color:var(--muted);margin-top:1.5px;white-space:nowrap}.resume-start{display:flex;align-items:center;gap:7px;color:var(--blue);font-size:var(--type-helper,14px)}.choice-pressed{transform:scale(.985)}[data-theme=dark] .diff.challenge{background:#39364f;color:var(--ink)}
/* WeChat's button:not([size=mini]) width must not override these controls. */
.page.compact-home .daily-feature,.page.compact-home .learn-teaser,.page.compact-home .resume-strip{width:100%;max-width:100%;margin-left:0;margin-right:0;font-weight:400}.page.compact-home .stage-option,.page.compact-home .variant{width:0;min-width:0;flex:1;font-weight:400}.page.compact-home .size-item{width:auto;min-width:0;flex:none;font-weight:400}.page.compact-home .practice-title{flex:none;white-space:nowrap}

.practice .type-choice{margin:6px 0 9px;min-height:44px;padding:0 2px;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink)}
.type-choice>span{font-size:var(--type-body,16px)}.type-choice .more-count{color:var(--blue)}

.stage-option { min-width: 0; flex-wrap: wrap; gap: 2px 6px; padding: 8px 4px; line-height: 1.4; }
.resume-meta { white-space: normal; }
.resume-start { flex-shrink: 0; }

.learn-page{padding-top:8px}.lesson-heading{display:flex;align-items:center;justify-content:space-between;font-size:var(--type-heading,20px);font-weight:500;margin-bottom:11px}.learning-count{font-size:var(--type-meta,13px);font-weight:400;color:var(--muted)}.learning-steps{display:flex;gap:5px;margin-bottom:11px}.learning-steps>span{flex:1;display:flex;align-items:center;justify-content:center;border-bottom:2px solid var(--line);color:var(--muted);font-size:var(--type-helper,14px);padding:5px 0}.learning-steps .current{color:var(--blue);border-color:var(--blue)}.learning-steps .passed{border-color:#69ae92;color:var(--mint-ink)}.learning-workspace{background:var(--surface);border-radius:13px;padding:12px 14px 14px}.learning-message{text-align:center;min-height:34px;display:flex;align-items:center;justify-content:center;font-size:var(--type-body,16px);line-height:1.5;color:var(--ink);margin-bottom:7px}.learning-message.retry{color:#8a5029}.learning-board{width:220px;height:220px;max-width:100%;display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:1fr;border:2px solid #7288a7;border-radius:7px;overflow:hidden;margin:0 auto;background:var(--surface)}.learning-cell{position:relative;display:flex;align-items:center;justify-content:center;border-right:1px solid #d8e1ef;border-bottom:1px solid #d8e1ef;font-size:22.5px;line-height:1;color:var(--ink)}.learning-cell:nth-child(4n){border-right:0}.learning-cell:nth-last-child(-n+4){border-bottom:0}.learning-cell.split-r{border-right:2px solid #7288a7}.learning-cell.split-b{border-bottom:2px solid #7288a7}.learning-cell.lit{background:var(--soft-blue)}.learning-cell.target{background:#d9e8ff;color:#3569b5;box-shadow:inset 0 0 0 2px #3569b5}.learning-cell.diagonal{background:#eee8f7}.learning-question{color:#3569b5}.learning-notes{display:grid;grid-template-columns:repeat(2,1fr);width:100%;height:100%;padding:6px;font-size:12px}.learning-notes span{display:flex;align-items:center;justify-content:center}.learning-choices{display:flex;gap:9px;justify-content:center;margin:12px 0}.learning-choice{flex:1;max-width:50px;min-height:48px;border:1px solid #b9ccea;background:var(--surface);border-radius:8px;font-size:var(--type-title,18px);display:flex;align-items:center;justify-content:center;color:var(--blue)}.learning-choice[disabled]{opacity:1;color:var(--muted);background:var(--bg);border-color:var(--line)}.learning-choice.active{background:var(--soft-blue);border-color:var(--blue)}.learning-choice.wrong{background:#fff0e5;border-color:#c28a60;color:#8a5029}.lesson-action{width:100%;min-height:48px;background:var(--blue);color:var(--surface);border-radius:9px;font-size:var(--type-body,16px);display:flex;justify-content:center;align-items:center;gap:10px}.lesson-action .chevron{width:6px;height:6px;border-width:1px}.lesson-action img{width:17px;height:17px}.complete-action{background:var(--mint);color:var(--mint-ink)}.lesson-complete .learning-message{color:var(--mint-ink)}.learning-library{margin-top:17px}.library-title{font-size:var(--type-body,16px);font-weight:500;margin-bottom:9px}.lesson-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.lesson-pick{display:flex;align-items:center;gap:6px;min-height:52px;text-align:left;background:var(--mint);color:var(--mint-ink);border:1px solid transparent;border-radius:9px;padding:7.5px 8px;font-size:var(--type-helper,14px)}.lesson-pick.blue{background:var(--soft-blue);color:var(--blue)}.lesson-pick.gold{background:var(--gold);color:var(--gold-ink)}.lesson-pick.purple{background:#eee8f7;color:#70558c}.lesson-pick.selected{border-color:currentColor}.lesson-pick>span{flex:1}.lesson-pick>.chevron{width:4.5px;height:4.5px;border-width:1px}.lesson-pick>img{width:14px;height:14px}.skill-squares{width:14px;height:14px;display:grid;grid-template-columns:repeat(2,1fr);gap:1.5px;flex:none}.skill-squares>i{border:1px solid currentColor;border-radius:1px}.skill-squares>i:first-child{background:currentColor}.course-toggle{display:flex;width:100%;align-items:center;gap:9px;min-height:52px;margin-top:12px;font-size:var(--type-helper,14px);text-align:left}.course-toggle span{margin-left:auto;color:var(--muted);font-size:var(--type-helper,14px)}.course-grid{display:flex;flex-direction:column;gap:7px}.course-chapter{display:flex;align-items:center;justify-content:space-between;background:var(--surface);padding:9px;border-radius:9px;font-size:var(--type-helper,14px)}.course-nodes{display:flex;gap:3px}.course-nodes .level{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:var(--type-helper,14px);color:var(--blue);background:var(--soft-blue);border-radius:6px}.course-nodes .locked{background:var(--bg);color:var(--muted)}.course-nodes .done{background:var(--blue);color:var(--surface)}.learning-sum{position:absolute;top:3px;left:3px;font-size:10px;color:var(--gold-ink)}.learning-cage{position:absolute;pointer-events:none;border-color:#a58d62;border-style:dashed;border-width:0;z-index:1}.learning-cage.top{top:3px;left:3px;right:3px;border-top-width:1px}.learning-cage.bottom{bottom:3px;left:3px;right:3px;border-bottom-width:1px}.learning-cage.left{left:3px;top:3px;bottom:3px;border-left-width:1px}.learning-cage.right{right:3px;top:3px;bottom:3px;border-right-width:1px}.arithmetic-board .learning-cage{border-style:solid}[data-theme=dark] .learning-cell.target{background:#3b5083;color:var(--ink)}[data-theme=dark] .learning-cell.diagonal,[data-theme=dark] .lesson-pick.purple{background:#39364f;color:var(--ink)}[data-theme=dark] .learning-message.retry{color:var(--gold-ink)}

.revealed .learning-cell.target .learning-value{animation:lesson-number-in 220ms ease-out}@keyframes lesson-number-in{from{transform:translateY(2px) scale(.92)}to{transform:none}}.reduce-motion .learning-value{animation:none}@media(prefers-reduced-motion:reduce){.revealed .learning-value{animation:none}}

[data-theme=dark] .learning-question{color:var(--ink)}
.page.learn-page .lesson-action{width:100%;max-width:100%;margin:0;font-weight:400}.page.learn-page .learning-choice{width:0;min-width:0;flex:1;font-weight:400}.page.learn-page .learning-choice[disabled]{opacity:1;color:var(--muted)}.page.learn-page .lesson-pick{width:100%;min-width:0;font-weight:400}.page.learn-page .course-toggle{width:100%;font-weight:400}

.lesson-tools{display:flex;justify-content:space-between;gap:8px;margin-top:4px}.page.learn-page .lesson-tools button{width:auto;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;padding:4px 5px;color:var(--blue);font-size:var(--type-helper,14px);font-weight:400}.lesson-tools img{width:15px;height:15px}
/* Learning starts with rules, then a separate lesson screen. */
.page.learning-catalog .intro-entry{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:var(--gold);color:var(--gold-ink);border-radius:12px;padding:14px;min-height:146px}.intro-entry-copy{display:flex;flex-direction:column;gap:6px;min-width:0}.intro-entry-title{font-size:21px;font-weight:500}.intro-entry-rule{font-size:var(--type-helper,14px)}.intro-entry-action{display:flex;align-items:center;gap:6px;font-size:var(--type-helper,14px);margin-top:4px}.intro-entry-action .chevron{width:6px;height:6px}.intro-entry-board{display:grid;grid-template-columns:repeat(4,1fr);width:98px;height:98px;flex-shrink:0;border:1px solid var(--gold-ink);border-radius:6px;overflow:hidden}.intro-entry-board span{display:flex;align-items:center;justify-content:center;font-size:var(--type-helper,14px);background:var(--surface);color:var(--ink);border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.intro-entry-board span:nth-child(2n){border-right-color:var(--gold-ink)}.intro-entry-board span:nth-child(n+5):nth-child(-n+8){border-bottom-color:var(--gold-ink)}.intro-entry-board .target{background:var(--soft-blue);color:var(--blue)}.page.learning-catalog .lesson-resume{display:flex;align-items:center;gap:7px;width:100%;min-height:52px;margin-top:7px;text-align:left;font-size:var(--type-helper,14px)}.lesson-resume img{width:15px;height:15px}.lesson-resume .resume-phase{margin-left:auto;color:var(--muted);font-size:var(--type-helper,14px)}.lesson-resume .chevron{width:6px;height:6px}.catalog-heading{display:flex;align-items:center;justify-content:space-between;margin:17px 0 11px;font-size:var(--type-title,18px);font-weight:500}.catalog-section+.catalog-section{margin-top:14px}.catalog-section-title{font-size:var(--type-helper,14px);font-weight:500;margin-bottom:8px}.page.learning-catalog .lesson-pick{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:54px;padding:8px 11px;font-size:var(--type-body,16px);gap:6px}.page.learning-catalog .lesson-pick>span{flex:1}.lesson-detail .lesson-heading{gap:9px;font-size:var(--type-title,18px);margin-bottom:9px}.page.lesson-detail .lesson-catalog-link{width:auto;min-height:44px;font-size:var(--type-helper,14px);font-weight:400;color:var(--blue);flex-shrink:0;padding:0 4px}.lesson-detail .learning-message{margin:0 0 9px;min-height:23px;font-size:var(--type-helper,14px)}.intro-rule{font-size:var(--type-title,18px);font-weight:500;text-align:center;margin-bottom:7px}.learning-instruction{font-size:var(--type-helper,14px);line-height:1.5;color:var(--muted);margin:10px 0 4px;text-align:center}.lesson-main-actions{margin-top:10px}.page.lesson-detail .lesson-direct{display:flex;justify-content:center;align-items:center;width:100%;min-height:44px;color:var(--blue);font-weight:400;font-size:var(--type-helper,14px)}.lesson-detail .lesson-tools{flex-wrap:wrap;justify-content:center}.lesson-detail .learning-choices{margin:9px 0}.lesson-pagination{display:flex;gap:10px;margin-top:11px}.page.lesson-detail .lesson-pagination button{flex:1;min-width:0;width:0;display:flex;flex-direction:column;gap:2.5px;align-items:flex-start;justify-content:center;min-height:58px;font-size:var(--type-helper,14px);text-align:left;color:var(--ink)}.lesson-pagination button:last-child{align-items:flex-end;text-align:right}.lesson-pagination button>span:first-child{font-size:var(--type-helper,14px);color:var(--muted)}.page.lesson-detail .intro-to-catalog{display:flex;justify-content:center;align-items:center;gap:8px;min-height:52px;width:100%;font-weight:400;font-size:var(--type-helper,14px);color:var(--blue);margin-top:6px}

.page.lesson-detail .lesson-catalog-link{margin:0 0 0 auto}.page.lesson-detail{padding-bottom:calc(28px + env(safe-area-inset-bottom))}

.teacher-builder{background:var(--surface);border-radius:13px;padding:15px}.builder-title{font-size:var(--type-title,18px);font-weight:500}.builder-label{font-size:var(--type-helper,14px);margin:12.5px 0 6px}.sheet-options{display:flex;gap:6px}.sheet-option{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;min-height:48px;font-size:var(--type-helper,14px);border:1px solid var(--line);border-radius:8px;background:var(--surface)}.sheet-option span{font-size:var(--type-helper,14px);color:var(--muted)}.sheet-option.active{background:var(--soft-blue);border-color:var(--blue);color:var(--blue)}.sheet-title-input{height:50px;background:var(--bg);border-radius:7px;padding:7.5px 10px;font-size:var(--type-body,16px);margin:13px 0 10px}.teacher-list-head{display:flex;align-items:center;justify-content:space-between;margin:15px 0 7px;font-size:var(--type-body,16px);font-weight:500}.teacher-list-head button{min-height:44px;display:flex;align-items:center;font-size:var(--type-helper,14px);color:var(--blue)}.sheet-history{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px;background:var(--surface);border-radius:10px;margin-bottom:7px;text-align:left;font-size:var(--type-body,16px)}.sheet-history span{font-size:var(--type-helper,14px);color:var(--muted);display:block;margin-top:2.5px}.teacher-empty{padding:14px 0;font-size:var(--type-helper,14px);color:var(--muted)}.sheet-error{display:flex;align-items:center;gap:7.5px;padding:10px;color:var(--gold-ink);background:var(--gold);border-radius:8px;margin-top:10px;font-size:var(--type-helper,14px)}.sheet-error button{min-height:44px;color:var(--blue);flex:none}

.teacher-builder .builder-label:first-child{margin-top:0}
.page.teacher-page .sheet-option{width:0;min-width:0;flex:1;font-weight:400}.page.teacher-page .sheet-history{width:100%;margin-left:0;margin-right:0;font-weight:400}.page.teacher-page .teacher-list-head button,.page.teacher-page .sheet-error button{width:auto;font-weight:400}

.sheet-placeholder{color:var(--muted);opacity:1}
.page.teacher-page[data-theme=dark] .teacher-builder>.btn{color:var(--surface)}

.sheet-options { flex-wrap: wrap; }
.sheet-option { flex-direction: column; padding: 10px 4px; line-height: 1.4; }
.sheet-history > div:first-child, .sheet-error > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.sheet-history .chevron { flex-shrink: 0; }

.worksheet-head{display:flex;align-items:center;gap:11px;margin:4px 0 14px}.worksheet-title{font-size:var(--type-heading,20px);font-weight:500;overflow-wrap:anywhere}.worksheet-meta{font-size:var(--type-meta,13px);color:var(--muted);margin-top:2.5px}.worksheet-symbol{width:34px;height:34px;display:grid;grid-template-columns:repeat(2,1fr);gap:2.5px;color:var(--blue);flex:none;transform:rotate(-6deg)}.worksheet-symbol div{border:1px solid currentColor;border-radius:2.5px}.worksheet-symbol div:first-child{background:var(--blue)}.teacher-sharing{display:flex;gap:8px;margin-bottom:13px}.teacher-sharing button{flex:1;width:0;font-size:var(--type-helper,14px);padding-left:6px;padding-right:6px;min-height:48px}.student-status{display:flex;justify-content:space-between;gap:6px;color:var(--muted);font-size:var(--type-helper,14px);margin:5px 0 11px}.worksheet-item{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:11.5px;margin-bottom:8px}.sheet-puzzle-mini{display:grid;width:42px;height:42px;background:#dce5f2;gap:1px;border:1px solid #bdcbe0;border-radius:2.5px;flex:none;overflow:hidden}.sheet-puzzle-mini div{background:var(--surface);font-size:7px;line-height:1;display:flex;align-items:center;justify-content:center;color:var(--blue)}.sheet-puzzle-info{flex:1;font-size:var(--type-body,16px)}.sheet-puzzle-info span{font-size:var(--type-helper,14px);color:var(--muted)}.sheet-puzzle-start{display:flex;gap:8.5px;align-items:center;color:var(--blue);font-size:var(--type-helper,14px)}.sheet-puzzle-start .chevron{width:5.5px;height:5.5px;border-width:1px}.teacher-results-heading{display:flex;align-items:center;justify-content:space-between;font-size:var(--type-body,16px);font-weight:500;margin:17px 0 6px}.teacher-results-heading button{min-height:44px;color:var(--blue);font-size:var(--type-helper,14px)}.class-summary{display:flex;gap:14px;background:var(--mint);color:var(--mint-ink);border-radius:8px;padding:10px;font-size:var(--type-helper,14px);margin-bottom:6px}.student-result{display:flex;align-items:center;gap:8px;min-height:80px;border-bottom:1px solid var(--line);font-size:var(--type-helper,14px)}.student-seat{display:flex;align-items:center;justify-content:center;width:27px;height:27px;background:var(--soft-blue);color:var(--blue);border-radius:6px;font-variant-numeric:tabular-nums}.student-result-info{flex:1;font-size:var(--type-helper,14px)}.student-progress{display:flex;gap:2.5px;margin-top:4px}.student-progress i{width:10px;height:6px;background:var(--line);border-radius:1px}.student-progress .done{background:#69ae92}.student-progress .started{background:var(--blue)}.student-hints{color:var(--muted);font-size:var(--type-helper,14px)}.end-sheet{min-height:48px;margin-top:7px;font-size:var(--type-helper,14px);color:var(--muted)}.worksheet-home{display:flex;align-items:center;justify-content:center;gap:11px;min-height:48px;margin:12px auto 0;color:var(--blue);font-size:var(--type-helper,14px)}.worksheet-empty{padding:17.5px 0;font-size:var(--type-helper,14px);color:var(--muted)}.sheet-error{display:flex;align-items:center;gap:7px;padding:10px;color:var(--gold-ink);background:var(--gold);border-radius:8px;margin-bottom:11px;font-size:var(--type-helper,14px)}.sheet-error button{min-height:44px;color:var(--blue);flex:none}
.page.worksheet-page .worksheet-item{width:100%;max-width:100%;margin-left:0;margin-right:0;font-weight:400}.page.worksheet-page .sheet-puzzle-info{min-width:0}.page.worksheet-page .sheet-puzzle-info span{white-space:nowrap}.page.worksheet-page .teacher-results-heading button,.page.worksheet-page .end-sheet,.page.worksheet-page .worksheet-home,.page.worksheet-page .sheet-error button{width:auto;font-weight:400}
.page.worksheet-page[data-theme=dark] .teacher-sharing>.btn:first-child{color:var(--surface)}

.archive-page{padding:10px 6px 30px}.archive-stages{display:flex;padding:2px;gap:4px;background:var(--surface);border-radius:10px;margin:0 8px 12px}.page.archive-page .archive-stage{width:auto;flex:1;min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:var(--type-body,16px);font-weight:400;color:var(--muted);border-radius:8px}.page.archive-page .archive-stage.active{background:var(--soft-blue);color:var(--blue)}.archive-stage span{font-size:var(--type-helper,14px)}.archive-month{display:flex;align-items:center;justify-content:space-between;margin:0 10px 10px;font-size:var(--type-title,18px);font-weight:500}.page.archive-page .archive-month button{width:48px;height:48px;display:flex;align-items:center;justify-content:center}.archive-month .previous{transform:rotate(225deg)}.archive-month button[disabled]{opacity:.35}.calendar-week{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;color:var(--muted);font-size:var(--type-helper,14px);margin-bottom:7px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px 0}.page.archive-page .calendar-day{position:relative;width:100%;min-width:0;min-height:56px;display:flex;align-items:center;justify-content:center;font-size:var(--type-title,18px);font-weight:400;color:var(--ink);border:1px solid transparent;border-radius:8px;background:var(--surface)}.page.archive-page .calendar-day.done{background:var(--mint);color:var(--mint-ink)}.page.archive-page .calendar-day.started{background:var(--soft-blue);color:var(--blue)}.page.archive-page .calendar-day.today{border-color:var(--blue)}.page.archive-page .calendar-day[disabled]{color:var(--muted);background:transparent;opacity:.5}.calendar-day img{position:absolute;width:10.5px;height:10.5px;bottom:3px;right:3px}.calendar-dot{width:4px;height:4px;border-radius:50%;background:var(--blue);position:absolute;bottom:5px}.calendar-blank{min-height:56px}.calendar-footer{display:flex;align-items:center;gap:10px;font-size:var(--type-helper,14px);color:var(--muted);margin:11px 10px}.calendar-footer>div{display:flex;align-items:center;gap:4.5px}.legend-dot{width:8px;height:8px;border-radius:2px;background:var(--mint-ink)}.legend-dot.started{background:var(--blue)}.calendar-footer button{margin-left:auto;color:var(--blue);min-width:44px;min-height:44px;font-size:var(--type-helper,14px);width:auto}

/* Visible clue geometry is shared with the browser and print output. */
.board,.learning-board,.print-board{position:relative}.rule-decoration{position:absolute;pointer-events:none;z-index:2;transform-origin:0 50%;box-sizing:border-box}.thermo-stem{background:var(--soft-blue);border:1px solid var(--blue);border-radius:20px}.thermo-bulb{background:var(--soft-blue);border:1px solid var(--blue);border-radius:50%;transform-origin:center}.arrow-stem,.arrow-tip{background:var(--muted)}.arrow-circle{background:var(--surface);border:1px solid var(--muted);border-radius:50%;transform-origin:center}.parity-mark{position:absolute;inset:16%;border:1px solid var(--muted);pointer-events:none;z-index:2}.parity-mark.odd{border-radius:50%}.cell .value,.cell .notes,.cell-value,.learning-cell>.learning-value,.learning-cell>.learning-question,.learning-notes{position:relative;z-index:3}.cell.window:not(.selected):not(.wrong):not(.focus):not(.related),.learning-cell.window:not(.target){background:var(--mint)}.learning-cell{position:relative}.learning-notes .struck{color:var(--gold-ink);text-decoration:line-through;text-decoration-thickness:2px}.learning-board.large-board .learning-value{font-size:var(--type-body,16px)}.learning-board.large-board .learning-question{font-size:var(--type-title,18px)}.learning-board.large-board .learning-notes{font-size:8px;display:grid;grid-template-columns:repeat(3,1fr);width:100%;height:100%;align-items:center;justify-items:center}.learning-board.large-board .learning-notes span{min-height:0}.learning-choices.large-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.learning-workspace .learning-choices.large-choices .learning-choice{min-height:44px}.learn-row{display:flex;align-items:center;gap:6px}.page.compact-home .learn-row .learn-teaser{flex:1;width:auto;min-width:0}.page.compact-home .calendar-short{display:flex;align-items:center;justify-content:center;gap:5px;min-width:65px;width:auto;min-height:44px;color:var(--blue);font-size:var(--type-helper,14px);font-weight:400}.calendar-short img{width:15px;height:15px}.page.compact-home .more-variants{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:4px 6px;margin:0 0 9px;color:var(--blue);font-size:var(--type-helper,14px);font-weight:400}.more-variants.active{background:var(--soft-blue);border-radius:7px}.more-variants .more-count{font-size:var(--type-meta,13px);color:var(--muted);display:flex;align-items:center;gap:7px}.more-variants .chevron{width:6px;height:6px}.variant-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:11px}.game-page .variant-picker button,.page .variant-picker button{width:100%;min-width:0;min-height:68px;font-size:var(--type-helper,14px);font-weight:400;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:9px}.variant-picker button.active{color:var(--blue);background:var(--soft-blue);border-color:var(--blue)}.variant-mini{position:relative}.variant-mini.window i:nth-child(5),.variant-mini.window div:nth-child(5){background:var(--mint)}.variant-mini.parity i:nth-child(odd),.variant-mini.parity div:nth-child(odd){border:1px solid var(--muted);border-radius:50%}.variant-mini.thermo:after,.variant-mini.arrow:after{content:'';position:absolute;top:48%;left:12%;width:76%;height:3px;background:var(--blue);transform:rotate(-35deg)}.variant-mini.thermo:before,.variant-mini.arrow:before{content:'';position:absolute;top:58%;left:9%;width:25%;height:25%;border-radius:50%;border:1px solid var(--blue);background:var(--surface);z-index:1}.week-footprint{margin-top:12px}.week-heading{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:var(--type-helper,14px)}.week-heading button{min-height:44px;width:auto;color:var(--blue);font-size:var(--type-helper,14px);font-weight:400}.week-days{display:flex;justify-content:space-between;gap:4px;margin-top:4px}.week-day{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:var(--type-helper,14px);color:var(--muted);flex:1;min-width:0}.week-square{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:var(--bg);color:var(--muted);font-size:var(--type-helper,14px);border:1px solid transparent}.week-day.done .week-square{background:var(--mint);color:var(--mint-ink)}.week-day.today .week-square{border-color:var(--blue)}.week-square img{width:13.5px;height:13.5px}
.rule-board{position:relative;aspect-ratio:1}.rule-board .demo-cell{position:relative}.rule-board.large-rule .demo-cell{font-size:var(--type-helper,14px)}.rule-board .cell-value{z-index:3}.rule-board .demo-cell.window{background:var(--mint)}.rule-board .demo-cell.diagonal{background:var(--soft-blue)}
.page.learn-page .learning-choices.large-choices .learning-choice{width:100%;max-width:none;height:44px;min-height:44px;font-size:var(--type-body,16px)}.page.learn-page .large-board .learning-notes{grid-template-columns:repeat(3,1fr)}
.daily-date{font-size:var(--type-meta,13px);font-weight:400;color:var(--muted)}

/* Browser composition and semantic HTML equivalents of native controls. */
.chevron{display:inline-block;width:7px;height:7px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);flex:none}
.compact-home .stage-switch{max-width:none}.compact-home .daily-feature{margin-bottom:0}.compact-home .daily-mini{display:grid;grid-auto-rows:1fr;width:112px;height:112px;border-radius:6px}.daily-mini>span{display:flex;align-items:center;justify-content:center;border-right:1px solid #dde4ef;border-bottom:1px solid #dde4ef;line-height:1;color:var(--blue)}.daily-mini>span.split-r{border-right-color:#91a4c1}.daily-mini>span.split-b{border-bottom-color:#91a4c1}.practice-title{margin:0}.practice{grid-column:auto}.practice .variant-tabs{display:flex;gap:4px}.practice .variant{min-width:0;width:0;flex:1}.practice .variant-mini{width:36px;height:36px}.practice .variant-mini i{display:flex;align-items:center;justify-content:center;font-style:normal;background:var(--surface);font-size:10px}.practice .variant-mini.diagonal i:nth-child(4n + 1){background:#e5e0f4}.practice .variant-mini.irregular i:nth-child(2),.practice .variant-mini.irregular i:nth-child(4),.practice .variant-mini.irregular i:nth-child(5){background:#d9eee5}.practice .variant-mini.calcudoku i:nth-child(1),.practice .variant-mini.calcudoku i:nth-child(2),.practice .variant-mini.calcudoku i:nth-child(5){background:#fff0d6;border:1px solid #9a7d4c}.practice .diff .icon{width:17px;height:17px}.learn-copy>span{display:block}.learn-copy strong{font-weight:400}.learn-teaser .skill-squares{width:26px;height:26px;color:var(--mint-ink);transform:rotate(-6deg)}.learn-teaser>.icon{width:18px;height:18px;color:var(--mint-ink)}.compact-home .resume-strip .book-thumb{width:36px;height:36px}.resume-info>span{display:block}.level-mark i,.skill-squares i{display:block;border:1px solid currentColor;border-radius:2px}.level-mark i.lit,.skill-squares i:first-child{background:currentColor}.diffs .diff{font-weight:400}.diff>span:nth-child(2){flex:1}.diff .level-mark{display:grid;flex:none}.stage-option:focus-visible,.lesson-pick:focus-visible{outline-offset:2px}
.guided-page{display:block}.lesson-heading h1{margin:0;font-size:24px;font-weight:500}.guided-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);gap:32px;align-items:start}.learning-main{min-width:0}.learning-message{margin-top:0}.learning-board{width:280px;height:280px}.learning-steps>span{flex:1;display:flex;align-items:center;justify-content:center;border-bottom:2px solid var(--line);color:var(--muted);font-size:13px;padding:5px 0}.learning-library{margin:0}.library-title{font-size:17px;font-weight:500;margin:0 0 12px}.lesson-pick .icon{width:15px;height:15px;margin-left:auto}.lesson-pick>.skill-squares{width:14px;height:14px;margin-left:0}.lesson-pick{font-size:13px}.lesson-pick>span:nth-child(2){flex:1}.learning-notes>span{display:flex;align-items:center;justify-content:center}.learning-cell{font-size:30px}.lesson-action{font-weight:400}.lesson-action .icon{width:18px;height:18px}.learning-choices .learning-choice:disabled{opacity:1}.learning-workspace{padding:18px 20px 20px}.course-grid .course-chapter{display:flex}.course-grid .course-chapter strong{font-weight:400}.course-nodes .level{padding:0}.course-toggle>.icon{width:18px;height:18px}.teacher-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;align-items:start}.builder-title{font-size:22px;font-weight:500;margin:0}.builder-label{margin-top:20px}.sheet-option small{font-size:12px;color:var(--muted)}.sheet-title-input{width:100%;border:1px solid transparent;color:var(--ink)}.teacher-list-head{margin-top:0}.teacher-list-head h2,.teacher-results-heading h2{font-size:17px;font-weight:500;margin:0}.sheet-history strong{font-weight:400}.sheet-history small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.sheet-history>.icon{width:18px;height:18px}.worksheet-head h1{margin:0}.worksheet-head p{margin:4px 0 0}.worksheet-symbol{width:34px;height:34px;transform:none}.worksheet-symbol .skill-squares{width:34px;height:34px;gap:3px;transform:rotate(-6deg)}.worksheet-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}.worksheet-item .book-thumb{width:44px;height:44px}.sheet-puzzle-info strong{font-weight:400;display:block}.sheet-puzzle-info small{font-size:12px;color:var(--muted);display:block}.sheet-puzzle-start .icon{width:17px;height:17px}.teacher-results-heading{margin-top:0}.student-result-info{display:block}.student-result-info .student-progress{display:flex}.student-progress i{display:block;width:10px;height:6px;background:var(--line);border-radius:1px}.student-progress i.done{background:#69ae92}.student-progress i.started{background:var(--blue)}.student-hints{white-space:nowrap}.teacher-sharing{max-width:420px}.teacher-sharing button{width:auto}.worksheet-home .icon{width:18px;height:18px}.worksheet-title{font-size:24px}.teacher-page .compact-page-heading{justify-content:flex-start;gap:22px}.teacher-page .compact-page-heading h1{margin:0;font-size:23px}
.learning-board.revealed .learning-cell.target .learning-value{animation:lesson-number-in 220ms ease-out}.learning-board.revealed .learning-cell.lit{transition:background-color 160ms ease-out}@keyframes lesson-number-in{from{transform:translateY(4px) scale(.92)}to{transform:none}}
#print-worksheet{display:none}.print-board{display:grid;border:2px solid #333;width:250px;aspect-ratio:1;grid-auto-rows:1fr}.print-cell{position:relative;display:flex;align-items:center;justify-content:center;border-right:1px solid #bbb;border-bottom:1px solid #bbb;font-size:22px}.print-cell.split-r{border-right:2px solid #333}.print-cell.split-b{border-bottom:2px solid #333}.print-cell small{position:absolute;top:2px;left:3px;font-size:9px}.print-puzzles{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}.print-puzzles article{break-inside:avoid}.print-puzzles article p{font-size:12px}.print-puzzles h2{font-size:16px;font-weight:400}.print-puzzles .learning-cage{border-color:#333}
@media(max-width:1100px){.guided-columns{grid-template-columns:1fr}.guided-page .learning-library{margin-top:28px}.guided-page .learning-main{max-width:540px;width:100%;margin:0 auto}.learning-board{width:260px;height:260px}.teacher-columns,.worksheet-columns{grid-template-columns:1fr}.teacher-existing{margin-top:4px}.teacher-results{margin-top:8px}}
@media(max-width:600px){.compact-home .stage-switch{margin-top:0}.compact-home .daily-mini{width:100px;height:100px}.compact-home .daily-feature{padding:18px 16px;gap:12px}.compact-home .feature-title{font-size:23px}.feature-start{font-size:14px;padding-left:14px;padding-right:14px}.stage-option{gap:5px}.compact-home .resume-strip{padding:9px 12px}.guided-page .lesson-heading h1{font-size:21px}.learning-board{width:230px;height:230px}.learning-cell{font-size:27px}.learning-workspace{padding:12px 14px 16px}.learning-message{font-size:14px;min-height:40px}.learning-library .lesson-library-grid{gap:9px}.learning-library .lesson-pick{padding:9px 10px;gap:7px;font-size:12px}.lesson-heading{margin-bottom:12px}.teacher-builder{padding:16px}.sheet-option{font-size:14px}.teacher-page .compact-page-heading h1{font-size:20px}.teacher-sharing button{font-size:14px}.worksheet-title{font-size:21px}.student-status{font-size:12px}.sheet-puzzle-info{font-size:15px}}
@media(prefers-reduced-motion:reduce){.learning-board.revealed .learning-cell.target .learning-value{animation:none}.learning-board.revealed .learning-cell.lit{transition:none}}
@media print{body{background:white;color:#000}.app-shell,.mobile-nav,dialog,#toast{display:none!important}#print-worksheet{display:block;margin:0;padding:16px}#print-worksheet h1{font-size:22px}.print-board{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.lesson-pick>.skill-squares{flex:none}.practice .variant{padding:8px 0;white-space:nowrap}.practice .variant>span:last-child{white-space:nowrap}.teacher-builder .builder-label:first-child{margin-top:0}[data-theme=dark] .learning-question{color:var(--ink)}

.print-cell{min-height:0;line-height:1;font-variant-numeric:tabular-nums}

.sheet-title-input::placeholder{color:var(--muted);opacity:1}
html[data-theme=dark] #main .teacher-builder>.btn,html[data-theme=dark] #main .teacher-sharing>.btn:first-child{background:var(--blue);color:var(--surface)}

.lesson-tools .icon{width:16px;height:16px}.learn-page .lesson-tools button{width:auto;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;padding:4px 5px;color:var(--blue);font-size:13px;font-weight:400;background:transparent;border:0;cursor:pointer}.hint-box .hint-learn-link{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--blue);font-size:13px;margin-top:6px}.hint-learn-link .icon{width:16px;height:16px}.hint-learn-link:focus-visible,.lesson-tools button:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:7px}

/* 0.3 additions retain the native surface geometry. */
.compact-home .learn-row .learn-teaser{flex:1;width:auto;min-width:0}.compact-home .calendar-short{width:auto;min-width:65px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:5px;color:var(--blue);font-size:13px}.calendar-short .icon{width:16px;height:16px}.compact-home .more-variants{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;color:var(--blue);font-size:13px;padding:4px 6px;margin-bottom:9px}.more-variants .icon{width:15px;height:15px}.variant-picker button{width:100%;min-width:0;min-height:68px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:9px;font-size:13px}.variant-picker button.active{background:var(--soft-blue);color:var(--blue);border-color:var(--blue)}.variant-picker .variant-mini{width:32px;height:32px}.learn-page .learning-choices.large-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.learn-page .learning-choices.large-choices .learning-choice{width:100%;max-width:none;min-height:44px;height:44px}.large-board .learning-notes{font-size:9px!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:0!important;width:100%;height:100%;align-items:center;justify-items:center}.learning-notes i{font-style:normal}.learning-cell.diagonal{background:var(--soft-blue)}.rule-help .learning-board{margin:14px auto}.rule-help details{margin:10px 0 16px;font-size:13px;color:var(--muted)}.rule-help summary{cursor:pointer;min-height:32px}.cell.window:not(.selected):not(.wrong):not(.focus):not(.related),.print-cell.window{background:var(--mint)}.archive-page{max-width:620px;margin:auto}.archive-month .icon{width:20px;height:20px}.calendar-footer>span{display:flex;align-items:center;gap:5px}.calendar-day .icon{width:11px;height:11px;position:absolute;bottom:3px;right:3px}.calendar-day:focus-visible,.archive-stage:focus-visible,.more-variants:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.week-square .icon{width:14px;height:14px}.week-heading button{font-size:12px;min-height:44px;color:var(--blue)}.week-day{font-size:10px}.account-card .week-days{margin-top:4px}.book-filter{min-width:0}.book-progress{white-space:nowrap}.print-cell{position:relative}.print-cell .parity-mark{inset:15%}.print-cell .cell-value{position:relative;z-index:3}
@media(max-width:600px){.archive-page{margin-left:-18px;margin-right:-18px;max-width:none}.archive-page .compact-page-heading{padding:0 10px}.archive-stages{margin-left:8px;margin-right:8px}.learn-copy strong{white-space:nowrap;font-size:13px}.learn-teaser{gap:8px}.calendar-short{padding:0}.book-row{gap:10px}.book-progress{font-size:12px}.filter-strip{gap:0}.book-filter{font-size:12px;padding:10px 2px}}
.learning-catalog{display:block;max-width:900px;margin:auto}.learning-catalog .intro-entry{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;text-align:left;background:var(--gold);color:var(--gold-ink);border-radius:12px;padding:20px;min-height:146px}.intro-entry-board>span{display:flex;align-items:center;justify-content:center;font-size:13px;background:var(--surface);color:var(--ink);border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.intro-entry-board>span:nth-child(2n){border-right-color:var(--gold-ink)}.intro-entry-board>span:nth-child(n+5):nth-child(-n+8){border-bottom-color:var(--gold-ink)}.intro-entry-action>.icon{width:16px;height:16px}.learning-catalog .lesson-resume{display:flex;align-items:center;gap:8px;width:100%;min-height:52px;text-align:left;font-size:13px}.lesson-resume>.icon{width:16px;height:16px}.catalog-heading h1{font-size:22px;font-weight:500;margin:0}.catalog-section-title{font-size:15px;font-weight:500}.learning-catalog .lesson-pick{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:54px;font-size:14px;padding:8px 12px}.learning-catalog .lesson-pick>span{flex:1}.learning-catalog .lesson-pick>.icon{width:16px;height:16px;margin-left:auto}.catalog-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px;align-items:start}.catalog-sections .catalog-section{margin-top:0}.lesson-detail .guided-columns{display:block;max-width:530px;margin:auto}.lesson-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.lesson-page-heading h1{font-size:23px;font-weight:500;margin:0}.lesson-page-heading .back-btn{white-space:nowrap;min-height:44px}.lesson-detail .learning-message{font-size:14px;min-height:24px}.lesson-detail .learning-board{max-width:100%}.lesson-detail .lesson-action{min-height:48px}.lesson-detail .lesson-tools{justify-content:center;flex-wrap:wrap}.lesson-detail .learning-instruction{font-size:12px;line-height:1.5;margin:12px 0 6px;text-align:center;color:var(--muted)}.lesson-detail .lesson-direct,.lesson-detail .intro-to-catalog{display:flex;align-items:center;justify-content:center;min-height:44px;color:var(--blue);font-size:13px;width:100%}.lesson-detail .intro-to-catalog{margin-top:10px}.lesson-detail .lesson-pagination{display:flex;gap:20px}.lesson-detail .lesson-pagination button{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:flex-start;min-height:58px;gap:4px;text-align:left;font-size:14px}.lesson-detail .lesson-pagination button:last-child{align-items:flex-end;text-align:right}.lesson-pagination button>span:first-child{color:var(--muted);font-size:12px}.intro-rule{font-size:18px;font-weight:500;margin:0 0 12px;text-align:center}@media(max-width:1100px){.catalog-sections{display:block}.catalog-sections .catalog-section+.catalog-section{margin-top:24px}}@media(max-width:360px){.intro-entry-board{width:82px;height:82px}.intro-entry-copy{gap:5px}.intro-entry-rule{font-size:11px}.lesson-page-heading{gap:8px}.lesson-page-heading h1{font-size:20px}}

.lesson-detail .lesson-page-heading{max-width:530px;margin:0 auto 18px}

/* The same task hierarchy as native: board, input, optional tools. */
.game-page .tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.game-page .input-prompt{min-height:22px;line-height:22px;margin:6px 0;color:var(--muted);font-size:13px;text-align:center}
.game-page .number-keys{margin-top:6px}.game-page .number-key{box-shadow:none}
.game-extras{display:flex;flex-wrap:wrap;padding:4px 0;margin:6px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.game-extras[hidden]{display:none}.game-extras button{width:50%;min-height:44px;font-size:13px;color:var(--blue)}
.has-hint>.input-toggle,.has-hint>.input-prompt,.has-hint>.number-keys,.has-hint>.tool-grid,.has-hint>.game-extras,.has-hint>.hint-trigger{display:none}
.hint-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.hint-heading h3{margin:0}.hint-heading>span{font-size:12px;color:var(--muted)}
.input-panel .hint-box{margin-top:0}.hint-box p{white-space:pre-line}.hint-box .buttons{flex-wrap:wrap}.hint-box .btn{min-height:44px}
.game-page button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(max-width:820px){.game-page .input-panel{margin-top:8px}.game-page .tool-btn{min-height:44px}.game-page .number-key{min-height:44px}.game-page .hint-trigger{min-height:44px}.game-page .board-foot{margin-bottom:0}}

.game-page .number-keys{grid-template-columns:repeat(5,minmax(0,1fr))}.game-page .number-key.erase-key{display:flex!important}

.game-page .notes .struck{text-decoration:line-through;text-decoration-thickness:2px;color:var(--gold-ink)}

@media(max-width:820px){.game-page .board{max-width:min(100%,max(255px,calc(100dvh - 450px)))}}

.game-page .cell.focus{background:var(--gold)}

/* Public mini-program code stays outside the game and selection workspace. */
.sidebar{overflow-y:auto}.sidebar-bottom{padding-top:24px}.miniapp-entry{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;padding:8px 0;min-height:44px;border-radius:12px;font-size:12px;color:var(--muted)}
.miniapp-entry img{display:block;width:128px;height:128px;background:#fff;border-radius:8px}.miniapp-entry:hover{color:var(--blue)}
.miniapp-code-dialog{text-align:center}.miniapp-code-dialog h2{margin:0 0 16px;font-size:21px;font-weight:500}.miniapp-code-dialog img{display:block;width:258px;height:auto;max-width:100%;margin:0 auto 20px;background:#fff}.miniapp-code-dialog .btn{min-width:120px;min-height:44px}
