/* Shared illustrated-worksheet theme. See STYLE_GUIDE.md before adding lessons. */
.worksheet-theme{--paper-ink:#302a38;--paper-blue:#dceffd;--paper-yellow:#fff0bc;--paper-green:#e6f1d5;color:var(--paper-ink)}.worksheet-theme>h1{color:#302a38;font-size:36px;line-height:1.25;text-align:center;background:#e0f0fb;border:2.5px solid #37303c;border-radius:7px 10px 12px 6px;padding:18px 22px;margin:22px 0 30px;box-shadow:4px 5px 0 #f1dfb3;transform:rotate(-1deg)}.worksheet-theme>.eyebrow{background:#fff1bd;color:#756039;border:0}.worksheet-theme .panel{border:2.5px solid #39313e;border-bottom-width:3px;border-radius:26px 21px 25px 20px;box-shadow:3px 5px 0 #e9e1d0;background:#fff}.worksheet-theme .math-homework{background:#fff;grid-template-columns:1.3fr 1fr}.worksheet-theme .math-homework h2{font-size:32px;color:#302a38;background:linear-gradient(transparent 55%,#dceefa 55%);display:inline;padding:0 6px}.worksheet-theme .math-homework>div>p{font-size:17px}.math-art-window{position:relative;overflow:hidden;aspect-ratio:1;background:#fff;max-width:250px;width:100%;margin:0 auto}.math-art-window>img{position:absolute;width:200%;height:300%;max-width:none;object-fit:fill}.math-art-window.small-art{width:110px;max-width:100%;margin:12px auto}.math-worksheet-tile{background:#fff!important;border:2.3px solid #3d3442!important;border-radius:24px 19px 23px 22px!important;box-shadow:3px 4px 0 #e9decd!important;padding:15px!important;min-height:255px!important}.math-worksheet-tile .math-art-window{height:105px;width:130px;aspect-ratio:auto;margin:0 auto 14px}.math-worksheet-tile h3{color:#312a38;background:linear-gradient(transparent 50%,#dceefa 50%);padding:0 5px;font-size:20px;display:inline;max-width:none}.math-worksheet-tile:nth-child(3n+2) h3{background:linear-gradient(transparent 50%,#fff0bc 50%)}.math-worksheet-tile:nth-child(3n) h3{background:linear-gradient(transparent 50%,#e5efd5 50%)}.math-worksheet-tile p{margin-top:10px;font-size:12px;font-weight:700;color:#756a7d}.worksheet-theme .math-classroom{border-style:dashed}.worksheet-theme .table-poster{border:2.5px solid #3a323f;border-radius:22px 26px 20px 23px;box-shadow:3px 4px 0 #e8dfce;padding:18px 14px}.worksheet-theme .table-poster h2{background:#dceefa;border:0;border-radius:20px 12px 18px 12px;padding:11px;font-size:23px;color:#332b3b}.worksheet-theme .table-5 h2{background:#fff1c0}.worksheet-theme .table-6 h2{background:#e5efd5}.worksheet-theme .table-poster li{font-size:21px;color:#3b3049;padding:8px 9px}.worksheet-theme .table-poster li b{color:#312738;border:1.5px solid #e2d3bb;background:#fff6d7}.worksheet-theme .table-poster li:nth-child(odd){background:#f5faff}.worksheet-theme .table-5 li:nth-child(odd){background:#fffdf2}.worksheet-theme .table-6 li:nth-child(odd){background:#f7fbf1}.worksheet-theme .table-symbol{display:none}.worksheet-theme .memory-box{background:#fff8de;border:2px solid #b7a16c;border-radius:17px 21px 18px 20px}.worksheet-theme .math-table-tabs .selected{border:2px solid #3b3244;background:#dceefa;color:#3b3244;box-shadow:0 4px 0 #b6cfe1}.worksheet-theme .math-equation{color:#33253e}.worksheet-theme .math-equation b{background:#fff0b4;border:2px solid #c4a85b;box-shadow:2px 3px 0 #e4d3a0}.worksheet-theme .strategy-step{border:2px solid #3d3443;background:#fffdf4}.worksheet-theme .strategy-step>b{border:2px solid #4c3d55;background:#dceefa;color:#3e324a}.worksheet-theme .math-game-preview>span{border:2px solid #41344b;background:#fff5d7}.worksheet-theme .math-game-icon{font-size:38px}.worksheet-theme .math-tip>.math-art-window{width:180px}.worksheet-theme .table-poster>.math-art-window{width:105px}.worksheet-theme .fruit-basket{border-color:#b28e5b;background:#fff5df}.worksheet-theme .math-homework .eyebrow{display:inline-block;background:#fff0be;border-radius:15px;padding:8px 14px;margin-bottom:15px}.worksheet-theme .sectiontitle h2{font-size:25px;color:#3b3047}.worksheet-theme .bottomnote{background:#fff5d3;border:2px solid #493a52}.worksheet-theme .math-classroom h2{background:linear-gradient(transparent 60%,#e2eff8 60%);display:inline;padding:0 5px}.worksheet-theme .math-classroom p{margin-top:16px}.worksheet-theme .feedback{background:#f3fae9;border:2px solid #b0cb95}.worksheet-theme .math-review-chips button{border:2px solid #a68cbe!important}.worksheet-theme button{font-weight:900}.worksheet-theme .math-homework>.math-art-window{max-width:260px}
@media(max-width:800px){.worksheet-theme>h1{font-size:29px;padding:16px}.worksheet-theme .math-homework{grid-template-columns:1fr}.worksheet-theme .math-homework>.math-art-window{max-width:190px;grid-row:1}.math-worksheet-tile{min-height:235px!important}.math-worksheet-tile .math-art-window{height:95px;width:115px}.math-worksheet-tile h3{font-size:18px}.worksheet-theme .table-poster>.math-art-window{width:115px}}@media print{.worksheet-theme .panel{box-shadow:none}.worksheet-theme>h1{transform:none;box-shadow:none}}

.worksheet-theme .math-art-window{aspect-ratio:var(--math-art-ratio,1.4)}.worksheet-theme .math-worksheet-tile .math-art-window{height:auto;width:138px;aspect-ratio:var(--math-art-ratio,1.4)}@media(max-width:600px){.worksheet-theme .math-worksheet-tile .math-art-window{width:120px}}
.parent-workshop input:not([type=checkbox]),.parent-workshop select,.parent-workshop textarea{display:block;width:100%;box-sizing:border-box;padding:12px;margin:8px 0 18px;border:2px solid #bdb1cd;border-radius:12px;font:inherit;background:white;color:#302a38}.parent-workshop label{display:block;margin-top:12px;font-weight:700}.parent-subjects{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.parent-library-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #ddd;padding:14px 0}.parent-documents{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.parent-documents img{max-height:220px;max-width:100%;object-fit:contain;display:block}.parent-workshop .panel{margin:24px 0}.parent-workshop button{margin:8px 8px 8px 0}.added-step-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.added-number{display:inline-grid;place-items:center;background:#dceffd;border:3px solid #302a38;width:48px;height:48px;border-radius:50%;font-size:28px;font-weight:900}.added-cue{display:block;text-align:center;font-size:90px;margin:20px}.added-point p{font-size:22px;line-height:1.7}.added-point h2{background:#dceffd;border-radius:20px;padding:12px}.added-point[hidden]{display:none!important}
.retained-illustrations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.progress-subject{margin:24px 0}.progress-subject .memory-box p{margin:0}.progress-subject>p>span{display:inline-block;margin:8px}.worksheet-theme .controls{flex-wrap:wrap}.worksheet-theme button,.worksheet-theme .download{min-height:44px}.parent-workshop input[type=checkbox]{width:22px;height:22px;vertical-align:middle}@media(max-width:650px){.retained-illustrations{grid-template-columns:1fr}.retained-illustrations .lesson-picture{max-width:260px;margin:auto}.progress-subject .memory-box{display:block}.progress-subject button{max-width:100%;white-space:normal}}
.homework-board{margin:24px 0 30px}.homework-board>.panel{padding:22px}.homework-banner{display:flex;align-items:center;gap:14px;margin-bottom:20px}.homework-banner h2{background:#dceffd;padding:10px 18px;border-radius:16px 24px 17px 22px;color:#302a38;margin:0}.homework-note{display:grid;grid-template-columns:76px minmax(0,1fr);gap:20px;padding:20px 0;border-top:2px dashed #e0d7c8}.homework-note h3{display:inline;background:linear-gradient(transparent 50%,#fff0bc 50%);font-size:20px;line-height:1.5}.homework-calendar{border:2.5px solid #302a38;border-radius:12px 8px 13px 10px;align-self:start;text-align:center;overflow:hidden;background:#fff;box-shadow:3px 4px 0 #e9dfc7;transform:rotate(-3deg)}.homework-calendar>span{display:block;background:#dceffd;border-bottom:2px solid #302a38;font-weight:800;padding:5px}.homework-calendar>b{display:block;font-size:30px;padding:3px}.homework-calendar>small{display:block;padding-bottom:5px}.homework-exact{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.homework-note .homework-exact{font-size:19px;margin:12px 0 0}.homework-empty{display:flex;align-items:center;gap:20px}.homework-parent .parent-library-row>div{min-width:0;flex:1}.homework-parent .parent-library-row button{flex-shrink:0}@media(max-width:600px){.homework-note{grid-template-columns:60px minmax(0,1fr);gap:14px}.homework-note h3{font-size:18px}.homework-note .homework-exact{font-size:17px}.homework-banner h2{font-size:23px;padding:10px}.homework-board>.panel{padding:17px}.homework-empty{flex-direction:column}}
.parent-workshop{padding-bottom:110px}.parent-feedback{position:fixed;z-index:1000;bottom:18px;left:50%;transform:translateX(-50%);box-sizing:border-box;width:min(620px,calc(100vw - 28px));padding:16px 20px;background:#fff5d5;border:2.5px solid #493855;border-radius:18px;box-shadow:3px 5px 0 #d9c9ad;font-weight:800;font-size:16px;line-height:1.5;color:#302a38;max-height:30vh;overflow:auto}.parent-feedback:empty{display:none}.parent-feedback.success{background:#edf8df;border-color:#527a3c}.parent-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.parent-shortcuts button{font-size:15px;min-height:44px}.parent-workshop section[id]{scroll-margin-top:24px}.parent-subjects>div{padding:8px;border:1px solid #e3d8e9;border-radius:14px}.parent-workshop details>summary{font-weight:800;cursor:pointer;min-height:44px;padding:12px 0}.homework-documents figure{margin:0;padding:12px;border:2px solid #dccde3;border-radius:15px;background:#fff;min-width:0}.homework-documents figcaption{overflow-wrap:anywhere;font-size:14px;margin:8px 0}.homework-documents .download{display:inline-block;font-size:14px;padding:9px;margin:5px 0;min-height:auto}.document-pdf{display:block;font-size:28px;padding:16px}.install-panel #parent-install{min-height:48px}.parent-workshop #child-save-status:empty{display:none}
.subject-image{display:inline-block;object-fit:contain;background:#fff;border:2px solid #3e3346;border-radius:20px 15px 19px 16px;padding:7px;box-sizing:border-box}.subject-image-tile{width:115px;height:110px;margin:0 0 12px}.subject-image-heading{width:60px;height:60px;vertical-align:middle;margin-right:12px}.subject-image-preview{width:95px;height:90px}.subject-icon-preview{display:block;font-size:46px;margin:12px 0}.subject-icon-heading{margin-right:10px}.subject-artwork-editor{padding:12px 0;border-top:1px dashed #dccfe3}.subject-artwork-editor select{font-size:24px!important}.subject-artwork-editor input[type=file]{font-size:14px!important}.subject-artwork-editor .small{line-height:1.5}.subject-actions{display:flex;flex-wrap:wrap;gap:5px}.subject-actions button{font-size:14px!important;margin-right:0!important}@media(max-width:600px){.subject-image-tile{width:95px;height:90px}}

.brand .logo .subject-image-brand{width:100%;height:100%;max-width:64px;max-height:64px;object-fit:contain;border-radius:14px}

/* Personal photographs stay behind opaque reading surfaces, never in print. */
body.custom-wallpaper{background-image:var(--personal-wallpaper);background-size:cover;background-position:center top;background-repeat:no-repeat;background-color:#f5f0fa;min-height:100vh}
.custom-wallpaper header,.custom-wallpaper footer{background:#fff}
.custom-wallpaper main{background:rgba(255,255,255,.32);border-radius:26px;padding:24px;box-sizing:border-box}
.custom-wallpaper main>.welcome,.custom-wallpaper main>h1,.custom-wallpaper main>.back,.custom-wallpaper main>.sectiontitle,.custom-wallpaper main>.bottomnote,.custom-wallpaper main>.journey-link{background:#fff;border-radius:20px;padding:18px;color:#302a38}
.custom-wallpaper main .panel,.custom-wallpaper main .tile,.custom-wallpaper main .hero{background:#fff!important;color:#302a38}
.wallpaper-setting{border-top:2px dashed #e1d5e8;padding:16px 0;margin-top:16px}.wallpaper-preview{display:block;width:100%;max-width:320px;height:160px;object-fit:cover;border:2.5px solid #39313e;border-radius:20px}
@media(max-width:600px){.custom-wallpaper main{padding:14px}.wallpaper-preview{height:130px}}
@media print{body.custom-wallpaper{background:#fff!important}.custom-wallpaper main{background:#fff!important}}
.custom-wallpaper main>.activity{background:#fff;border-radius:24px;padding:20px;box-sizing:border-box}
.revision-question{border:2.5px solid #39313e;border-radius:24px 18px 22px 20px;margin-top:24px;padding:22px;background:#fff;box-shadow:3px 4px 0 #e9dfca}.revision-question h3{background:#dceffd;border-radius:16px;padding:12px}.revision-question p{font-size:20px;line-height:1.6;overflow-wrap:anywhere}.revision-question .controls{display:flex;flex-wrap:wrap;gap:12px}.revision-question button{min-height:48px;white-space:normal}.revision-question textarea{display:block;width:100%;box-sizing:border-box;font:inherit;padding:14px;border:2px solid #bfb1ce;border-radius:16px}.revision-question .memory-box{background:#fff4d8;color:#302a38;padding:16px;border-radius:16px}@media(max-width:600px){.revision-question{padding:15px}.revision-question p{font-size:18px}}
