/* One activity at a time; shared by website and bundled Android screens. */
[hidden]{display:none!important}
body.app-shell,body.focused-page{background:#f5f8f4;color:#193e43;font-family:Arial,sans-serif;margin:0}
.app-shell a,.focused-page a{color:inherit}
.app-shell .primary,.focused-page .primary{background:#087b73;color:#fff;border:0;box-shadow:0 3px 0 #07594f;border-radius:14px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:13px 22px;font-size:16px;font-weight:700}
.app-shell .secondary,.focused-page .secondary{background:#fff;color:#24524f;box-shadow:none;border:1px solid #ccdcd4;border-radius:12px;padding:12px 16px;min-height:44px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.app-shell header.mobile-header,.focused-page header{max-width:1000px;margin:auto;background:transparent;color:#193e43;padding:16px 24px;display:flex;align-items:center;gap:12px;border:0}
.app-shell header .matesha-brand,.focused-page header .matesha-brand{display:flex;align-items:center;text-decoration:none;margin-right:auto;gap:9px;font-size:26px;white-space:nowrap}
.app-shell header .matesha-brand img,.focused-page header .matesha-brand img{width:44px;height:44px;object-fit:contain}
.app-shell header .secondary,.focused-page header .secondary{font-size:13px;padding:10px}
.app-shell .shell-nav{max-width:952px;margin:0 auto 20px;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:6px;background:white;border:1px solid #dce7df;border-radius:18px}
.shell-nav a{display:flex;gap:8px;align-items:center;justify-content:center;padding:13px 6px;text-decoration:none;font-size:15px;font-weight:700;border-radius:12px;min-height:48px}
.shell-nav a[aria-current]{background:#d9f2e7;color:#075e54}.shell-nav a span{font-size:22px;line-height:1}
.app-shell main{max-width:952px;margin:auto;padding:10px 0 28px;outline:none;min-height:55vh}
.app-shell h1{font-size:clamp(27px,4vw,36px);line-height:1.2;margin:12px 0 20px;letter-spacing:-.6px}.app-shell h2{font-size:23px;line-height:1.35}
.app-shell p{line-height:1.6}.app-shell .eyebrow{font-size:11px;color:#57776e;letter-spacing:1px}
.today-card{display:flex;align-items:center;gap:30px;background:#fff;padding:36px;border-radius:24px;border:1px solid #d5e4da}.today-card>img{width:120px;height:120px;object-fit:contain}.today-card h2{margin:0 0 10px}.today-card p{max-width:460px;margin:0 0 22px}.today-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 0;color:#46685f}.assignment-short{display:flex;flex-direction:column;gap:10px;background:#fff1cc;border-radius:16px;padding:20px;text-decoration:none}
.learn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.learn-card{display:flex;align-items:center;gap:14px;background:white;border:1px solid #d6e3dc;border-radius:16px;padding:20px 16px;text-decoration:none;min-height:100px}.learn-card b{flex:1;font-size:16px;line-height:1.4}.topic-icon{background:#e4f4e8;color:#18765a;min-width:44px;height:44px;display:grid;place-items:center;border-radius:13px;font-size:24px}.learn-card:nth-child(3n+2) .topic-icon{background:#fff1cb;color:#825b13}.learn-card:nth-child(3n) .topic-icon{background:#e7edff;color:#455a99}.learn-extras{display:flex;gap:12px;flex-wrap:wrap}
.back-link{display:inline-block;margin:0 0 14px;text-decoration:none;font-size:14px;padding:10px 0}.topic-choices{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.choice-card{background:white;border:1px solid #d5e4da;border-radius:20px;padding:24px;text-decoration:none}.choice-card>span{font-size:32px}.choice-card h2{margin:14px 0 8px}.choice-card p{margin:0;color:#5a746c}
.setup-card{max-width:540px!important;padding:24px;background:white;border:1px solid #d5e4da;border-radius:20px;display:grid;gap:20px!important;margin:20px 0!important}.setup-card label{font-weight:600;gap:8px}.app-shell select,.app-shell input{width:100%;font-size:16px}.game-card{display:flex;gap:24px;align-items:center;background:#e2f3e5;border:1px solid #c1dfc8;border-radius:24px;padding:30px;text-decoration:none}.game-card>span{font-size:75px}.game-card h2{margin-top:0}.game-card p{max-width:420px}.achievement{display:flex;align-items:center;gap:16px;margin:24px 0;background:#fff0c1;border-radius:16px;padding:22px}.achievement>b{font-size:38px}.app-shell .skill-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:24px 0}.history-details{margin:20px 0}.history-details li{padding:8px 0;line-height:1.6}.app-shell details{padding:16px;background:white;border-radius:14px;margin-bottom:16px}.app-shell summary{cursor:pointer;font-weight:700}.app-shell .shell-footer{display:flex;justify-content:center;gap:24px;padding:18px;font-size:13px;max-width:952px;margin:auto;border-top:1px solid #dce5df}.app-shell .mascot-home{max-width:540px;margin:10px 0}
.app-shell #session{background:white;border:1px solid #d5e4da;border-radius:22px;box-shadow:none;padding:24px;margin:0 auto;max-width:680px}.app-shell .card-progress{margin-bottom:22px}.app-shell .mobile-board{background:#f0f6ef}.app-shell .task-heading{font-size:13px}.app-shell .task-actions{margin-bottom:0}.app-shell #column-answer{gap:12px}.app-shell #column-answer input{width:120px}.app-shell #column-answer .story-slots input{width:100%}.app-shell .table-example input{width:88px}
.app-shell.lesson-session header,.app-shell.lesson-session .shell-nav,.app-shell.lesson-session .shell-footer{display:none}.app-shell.lesson-session main{padding-top:24px}.app-shell .celebration img{max-height:240px;object-fit:contain}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:12px;top:8px;background:white;z-index:100;padding:12px}
/* The existing explanation renderer now has its own full page, no iframe. */
.focused-page .hero,.focused-page .path-section,.focused-page .progress-section,.focused-page>#mascot-home,.focused-page .family-nav,.focused-page .brand-sub{display:none!important}
.focused-page main{max-width:1000px;padding:10px 24px;margin:auto}.focused-page #workspace{margin:0;padding:26px;border:1px solid #d5e4da;background:white;box-shadow:none;border-radius:22px}.focused-page #workspace .work-top{margin-bottom:16px}.focused-page .work-top .tabs{display:none}.focused-page #lesson-kicker{display:none}.focused-page .controls{gap:8px;margin:16px 0}.focused-page .controls>button,.focused-page .controls>.dino-entry{display:none}.focused-page .controls details{width:100%;border:1px solid #d9e4db;border-radius:12px;padding:12px}.focused-page .controls details>summary{cursor:pointer;color:#476b5e}.focused-page .controls details>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.focused-page .lesson-grid{gap:20px}.focused-page .tip{font-size:14px}.focused-page footer{max-width:952px;margin:auto;font-size:12px;padding:20px}.focused-page.family-page #workspace{display:none}.focused-page.family-page #family{border:0;padding:0;background:transparent}.focused-page.family-page #print-workspace{margin:0;padding:24px;background:white}.focused-page.family-page.print-open #family{display:none}.focused-page.family-page .parent-hero{padding:24px}.focused-page.family-page .parent-hero h3{font-size:28px}.focused-page.family-page .parent-hero img{width:92px}.focused-page .parent-topic-options{display:none}.focused-page .parent-topic-choice.selected .parent-topic-options{display:flex}.focused-page .wizard-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.wizard-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.wizard-top p{margin:0}.wizard-error{color:#a63726}.focused-page .wizard-choices .parent-topic-options{display:none!important}.focused-page .wizard-quantity .parent-topic-choice:not(.selected){display:none}.focused-page .wizard-quantity .parent-topic-title input{display:none}.focused-page .wizard-quantity .parent-topic-title{pointer-events:none}.focused-page .wizard-review .parent-topic-grid,.focused-page .wizard-review .family-fields{display:none}.focused-page .wizard-review .parent-compose-summary{display:none}.focused-page .wizard-presets{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px}.focused-page .wizard-topics-label{font-size:21px}.focused-page.child-session header .secondary,.focused-page.child-session .parent-tabs,.focused-page.child-session .assignment-list,.focused-page.child-session #family-content>.intro,.focused-page.child-session #family-content>.work-top{display:none}.focused-page.child-session .family-exercise{margin-top:16px}.focused-page .print-modes{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.focused-page .print-modes [aria-pressed=true]{background:#d9f2e7;border-color:#488775}.focused-page .print-pane{margin-bottom:20px}
@media(max-width:700px){.app-shell header.mobile-header,.focused-page header{padding:12px 16px;gap:8px}.app-shell header .matesha-brand,.focused-page header .matesha-brand{font-size:23px}.app-shell header .matesha-brand img,.focused-page header .matesha-brand img{width:36px;height:36px}.app-shell header .secondary,.focused-page header .secondary{font-size:11px;padding:8px}.app-shell .shell-nav{position:fixed;bottom:0;left:0;right:0;margin:0;border-radius:16px 16px 0 0;border-bottom:0;z-index:10;gap:2px;padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -3px 14px #1b42360b}.shell-nav a{flex-direction:column;gap:5px;font-size:11px;padding:7px 2px;min-height:54px}.app-shell{padding-bottom:90px}.app-shell main{padding:12px 16px 24px}.app-shell h1{font-size:28px}.today-card{padding:24px 20px;gap:16px;align-items:flex-start;flex-direction:column}.today-card>img{width:76px;height:76px}.today-card h2{font-size:24px}.today-card .primary{width:100%}.today-bottom{align-items:flex-start;flex-direction:column;padding:12px 0}.today-bottom p{margin:4px 0}.learn-grid{grid-template-columns:1fr 1fr;gap:10px}.learn-card{padding:16px 12px;min-height:114px;flex-direction:column;align-items:flex-start;gap:10px}.learn-card b{font-size:14px}.learn-card>span:last-child{display:none}.topic-choices{grid-template-columns:1fr}.choice-card{padding:20px}.choice-card h2{font-size:22px}.app-shell .skill-grid{grid-template-columns:1fr 1fr;gap:10px}.app-shell .skill-grid article{padding:16px}.app-shell #session{padding:18px 16px;border-radius:18px}.app-shell.lesson-session{padding-bottom:0}.app-shell.lesson-session main{padding:12px 10px}.app-shell .current-question{font-size:21px}.game-card{padding:24px 20px;flex-direction:column;align-items:flex-start;gap:12px}.game-card>span{font-size:58px}.focused-page main{padding:8px 12px}.focused-page #workspace{padding:18px 14px}.focused-page .lesson-grid{grid-template-columns:1fr}.focused-page .board{padding:12px}.focused-page h2{font-size:24px}.focused-page footer{display:none}.focused-page .parent-topic-grid{grid-template-columns:1fr 1fr}.focused-page .parent-topic-title{font-size:13px}.focused-page .parent-topic-options{flex-direction:column}.focused-page.family-page #print-workspace{padding:16px}.focused-page .family-exercise .lesson-grid{grid-template-columns:1fr}.focused-page .wizard-quantity .parent-topic-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

#parent-panel.composing>:not(.assignment-composer){display:none!important}.example-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.app-shell .geometry-picture{max-height:270px}.app-shell .discovery-card{padding:20px;box-shadow:none}.app-shell .discovery-intro h1{font-size:28px}.app-shell .lesson-check-toggle{margin:16px 0}.app-shell .discovery-check{margin-top:16px}.app-shell .geometry-lesson p{font-size:16px}.app-shell #olympiad>a.primary{display:none}.app-shell #olympiad>.discovery-card:last-child{font-size:14px}

.print-topic-title{display:flex!important;align-items:center;flex-direction:row!important;gap:12px!important}.print-topic-check{width:22px;height:22px;min-height:22px}.focused-page .assignment-row{grid-template-columns:1.5fr 1fr 1fr}.focused-page .print-review li{margin:12px 0}.focused-page #workspace>.dino-entry{margin-top:20px}.focused-page #workspace>.secondary{margin-top:18px}@media(max-width:700px){.focused-page .assignment-row{grid-template-columns:1fr}.focused-page .times-grid button{min-width:25px;min-height:30px;font-size:12px;padding:2px}.focused-page .times-grid th{padding:3px;font-size:12px}}

.focused-page.child-session header{display:none}.child-session .family-instruction{display:none}.child-session .family-exercise{background:white;border:1px solid #d5e4da;border-radius:20px;padding:22px;max-width:680px;margin:16px auto}.child-session .family-exercise>.intro{font-size:20px;line-height:1.6}.child-session .family-exercise[data-kind=table]>.intro{font-size:32px;font-weight:bold;text-align:center;padding:20px 0;background:#f0f6ef;border-radius:14px}.child-session .board{min-height:0;padding:16px}.child-session .family-form .board-caption{display:none}.child-session .family-progress{margin:16px 0}.child-session .family-progress progress{appearance:none;border:0;border-radius:12px;background:#e1e8d9;height:10px}.child-session .family-progress progress::-webkit-progress-bar{background:#e1e8d9;border-radius:12px}.child-session .family-progress progress::-webkit-progress-value{background:#087b73;border-radius:12px}.child-session .family-exercise:has(.family-instruction) .lesson-grid{display:block}.focused-page #parent-login[hidden],.focused-page #child-login[hidden]{display:none!important}.focused-page .lesson-grid:has(.parent-login-card){grid-template-columns:1fr;max-width:600px}

.today-card>.mascot-portrait{width:110px;height:110px;flex:none}.today-card>.mascot-portrait img{width:100%;height:100%}@media(max-width:700px){.today-card>.mascot-portrait{width:76px;height:76px}}

.focused-page .lesson-extra{padding:14px;border:1px solid #d5e4da;border-radius:12px;margin:14px 0}.focused-page .lesson-extra summary{font-size:14px;cursor:pointer;font-weight:600}.focused-page .place-intro h3{font-size:20px}.focused-page .notebook-guide{min-height:115px}.focused-page .example-pagination{display:flex;align-items:center;gap:10px;justify-content:space-between}.focused-page .notebook-guide li{font-size:16px}.focused-page .place-grid{margin-top:12px}
