:root{--cat-math: #3b82c8;--cat-math-light: #eef4fb;--cat-math-mid: #b3d1f0;--cat-reading: #5a9fd4;--cat-reading-light: #f0f6fb;--cat-reading-mid: #bedcf2;--cat-motor: #4a94bd;--cat-motor-light: #edf5fa;--cat-motor-mid: #b0d4ea;--cat-logic: #6b8fc2;--cat-logic-light: #f0f4fa;--cat-logic-mid: #c2d3ea;--bg: #f4f8fc;--bg-warm: #eaf1f8;--surface: #ffffff;--surface-raised: #ffffff;--text: #1e3a52;--text-muted: #6889a5;--text-faint: #9db5c9;--border: #d4e2ee;--border-light: #e6eff6;--accent: #3b82c8;--accent-hover: #2d6aab;--font-display: "Fredoka", sans-serif;--font-body: "Atkinson Hyperlegible Next", system-ui, sans-serif;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 16px;--radius-xl: 20px;--shadow-sm: 0 1px 3px rgba(58, 50, 42, .06);--shadow-md: 0 4px 12px rgba(58, 50, 42, .08);--shadow-lg: 0 8px 30px rgba(58, 50, 42, .1);--shadow-hover: 0 6px 20px rgba(58, 50, 42, .12)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-body);background:var(--bg);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased}body:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;background-image:radial-gradient(circle,var(--border) .8px,transparent .8px);background-size:28px 28px;opacity:.35;pointer-events:none;z-index:0}.app{position:relative;z-index:1}.app-header{background:linear-gradient(135deg,#3b82c8,#5a9fd4,#7ab8e0);color:#fff;padding:1.75rem 2rem 3rem;position:relative;overflow:hidden}.app-header:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:24px;background:var(--bg);border-radius:24px 24px 0 0}.app-header-inner{display:flex;align-items:center;gap:1rem}.app-logo{width:200px;height:auto}.app-header h1{font-family:var(--font-display);font-size:1.85rem;font-weight:700;letter-spacing:-.01em;text-shadow:0 2px 8px rgba(0,0,0,.15)}.app-header p{font-family:var(--font-body);font-size:.95rem;opacity:.9;margin-top:.15rem;font-weight:500}.app-main{display:flex;gap:2rem;padding:1.5rem 2rem 2rem;max-width:1440px;margin:0 auto}.app-main aside{width:340px;flex-shrink:0}.preview-area{flex:1;min-width:0}.config-panel{background:var(--surface);border-radius:var(--radius-lg);padding:1.5rem;box-shadow:var(--shadow-md);display:flex;flex-direction:column;gap:1rem;overflow-y:auto;border:1px solid var(--border-light);position:sticky;top:1.5rem;max-height:calc(100vh - 3rem)}.config-panel h2{font-family:var(--font-display);font-size:1.2rem;font-weight:600;color:var(--text);margin-bottom:.25rem}.config-panel label{display:flex;flex-direction:column;gap:.3rem;font-size:.8rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.config-panel input[type=text],.config-panel input[type=number],.config-panel select{padding:.55rem .7rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-family:var(--font-body);font-size:.9rem;font-weight:500;color:var(--text);width:100%;background:var(--surface);transition:border-color .2s,box-shadow .2s}.config-panel input:focus,.config-panel select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #3b82c826}.checkbox-group{display:flex;flex-direction:column;gap:.3rem;font-size:.8rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.checkbox-label{display:flex;flex-direction:row!important;align-items:center;gap:.5rem;font-weight:500!important;font-size:.88rem;text-transform:none;letter-spacing:0;color:var(--text);cursor:pointer;padding:.15rem 0;transition:color .15s}.checkbox-label:hover{color:var(--accent)}.checkbox-label input[type=checkbox]{accent-color:var(--accent);width:15px;height:15px}.sections-header{display:flex;flex-direction:column;gap:.6rem;margin-top:.5rem}.sections-header h3{font-family:var(--font-display);font-size:1rem;font-weight:600;color:var(--text)}.add-section-buttons{display:flex;flex-wrap:wrap;gap:.25rem}.add-section-categories{display:flex;flex-direction:column;gap:.25rem}.category-group{display:flex;flex-direction:column;border-radius:var(--radius-md);border:1.5px solid var(--border-light);overflow:hidden;transition:border-color .2s,box-shadow .2s}.category-group:hover{border-color:var(--border)}.category-group.expanded{box-shadow:var(--shadow-sm)}.category-toggle{display:flex;align-items:center;gap:.5rem;width:100%;padding:.55rem .7rem;border:none;background:none;cursor:pointer;transition:background .15s}.category-toggle:hover{background:var(--bg-warm)}.category-chevron{font-size:.7rem;width:.9rem;text-align:center;flex-shrink:0}.category-label{font-family:var(--font-display);font-size:.85rem;font-weight:600;letter-spacing:.01em}.category-buttons{display:flex;flex-direction:column;gap:.35rem;padding:0 .7rem .6rem 2.1rem}.category-group[data-category=math] .category-label,.category-group[data-category=math] .category-chevron{color:var(--cat-math)}.category-group[data-category=math].expanded{border-color:var(--cat-math-mid);background:var(--cat-math-light)}.category-group[data-category=reading] .category-label,.category-group[data-category=reading] .category-chevron{color:var(--cat-reading)}.category-group[data-category=reading].expanded{border-color:var(--cat-reading-mid);background:var(--cat-reading-light)}.category-group[data-category=motor-skills] .category-label,.category-group[data-category=motor-skills] .category-chevron{color:var(--cat-motor)}.category-group[data-category=motor-skills].expanded{border-color:var(--cat-motor-mid);background:var(--cat-motor-light)}.category-group[data-category=logic] .category-label,.category-group[data-category=logic] .category-chevron{color:var(--cat-logic)}.category-group[data-category=logic].expanded{border-color:var(--cat-logic-mid);background:var(--cat-logic-light)}.category-group[data-category=math] .btn-small{border-color:var(--cat-math);color:var(--cat-math)}.category-group[data-category=math] .btn-small:hover{background:var(--cat-math);color:#fff}.category-group[data-category=reading] .btn-small{border-color:var(--cat-reading);color:var(--cat-reading)}.category-group[data-category=reading] .btn-small:hover{background:var(--cat-reading);color:#fff}.category-group[data-category=motor-skills] .btn-small{border-color:var(--cat-motor);color:var(--cat-motor)}.category-group[data-category=motor-skills] .btn-small:hover{background:var(--cat-motor);color:#fff}.category-group[data-category=logic] .btn-small{border-color:var(--cat-logic);color:var(--cat-logic)}.category-group[data-category=logic] .btn-small:hover{background:var(--cat-logic);color:#fff}.btn-small{padding:.3rem .65rem;border:1.5px solid var(--accent);border-radius:var(--radius-sm);background:none;color:var(--accent);font-family:var(--font-body);font-size:.72rem;font-weight:600;cursor:pointer;transition:all .2s;align-self:flex-start}.btn-small:hover{background:var(--accent);color:#fff;transform:translateY(-1px);box-shadow:var(--shadow-sm)}.section-config{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-md);padding:.85rem;transition:border-color .2s,box-shadow .2s;border-left-width:4px}.section-config:hover{box-shadow:var(--shadow-sm)}.section-config[data-category=math]{border-left-color:var(--cat-math);background:var(--cat-math-light)}.section-config[data-category=reading]{border-left-color:var(--cat-reading);background:var(--cat-reading-light)}.section-config[data-category=motor-skills]{border-left-color:var(--cat-motor);background:var(--cat-motor-light)}.section-config[data-category=logic]{border-left-color:var(--cat-logic);background:var(--cat-logic-light)}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem}.section-type-badge{font-family:var(--font-display);font-size:.72rem;font-weight:600;color:#fff;padding:.2rem .65rem;border-radius:20px}.section-type-badge[data-category=math]{background:var(--cat-math)}.section-type-badge[data-category=reading]{background:var(--cat-reading)}.section-type-badge[data-category=motor-skills]{background:var(--cat-motor)}.section-type-badge[data-category=logic]{background:var(--cat-logic)}.btn-remove{background:none;border:none;font-size:1.3rem;color:var(--text-faint);cursor:pointer;padding:0 .3rem;line-height:1;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;transition:all .15s}.btn-remove:hover{color:#e44;background:#e4444414}.section-options{display:flex;flex-direction:column;gap:.5rem}.inline-fields{display:flex;gap:.5rem}.inline-fields label{flex:1}.empty-hint{font-family:var(--font-display);font-size:.95rem;color:var(--text-faint);text-align:center;padding:1.5rem 1rem;line-height:1.6}.worksheet-section-wrapper{position:relative;margin-bottom:1.5rem}.worksheet-section-wrapper:last-child{margin-bottom:0}.worksheet-section-remove{position:absolute;top:0;right:0;border:none;background:var(--bg-warm);color:var(--text-muted);font-family:var(--font-body);font-size:.75rem;font-weight:600;padding:.25rem .6rem;border-radius:var(--radius-sm);cursor:pointer;transition:color .15s,background .15s;z-index:1}.worksheet-section-remove:hover{color:#e44;background:#e444441a}.worksheet-section{margin-bottom:0}.empty-worksheet{text-align:center;color:var(--text-faint);font-family:var(--font-display);font-size:1.05rem;padding:4rem 2rem;line-height:1.6}.button-group{display:flex;gap:.5rem;margin-top:.5rem}.btn{padding:.65rem 1.2rem;border:none;border-radius:var(--radius-md);font-family:var(--font-display);font-size:.88rem;font-weight:600;cursor:pointer;flex:1;transition:all .2s}.btn:active{transform:scale(.97)}.btn-primary{background:var(--accent);color:#fff;box-shadow:0 2px 8px #3b82c84d}.btn-primary:hover{background:var(--accent-hover);transform:translateY(-1px);box-shadow:0 4px 14px #3b82c859}.btn-secondary{background:var(--bg-warm);color:var(--text);border:1.5px solid var(--border)}.btn-secondary:hover{background:var(--border-light);transform:translateY(-1px)}.worksheet-preview{background:#fff;border-radius:var(--radius-lg);padding:2.5rem;box-shadow:var(--shadow-lg);min-height:11in;border:1px solid var(--border-light);position:relative}.worksheet-header{text-align:center;margin-bottom:2rem;padding-bottom:1.25rem;border-bottom:2.5px solid var(--bg-warm)}.worksheet-title{font-family:var(--font-display);font-size:1.75rem;font-weight:700;color:var(--text)}.worksheet-grade{font-family:var(--font-display);font-size:.95rem;color:var(--text-muted);margin-top:.2rem;font-weight:500}.worksheet-name-line{display:flex;justify-content:center;gap:2.5rem;margin-top:1.25rem;font-size:.95rem;font-weight:500;color:var(--text-muted)}.name-underline{display:inline-block;width:200px;border-bottom:1.5px solid var(--text)}.name-underline.short{width:120px}.arithmetic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.6rem;padding:1rem 0}.problem{display:flex;align-items:center;gap:.5rem;font-size:1.1rem;padding:.55rem .6rem;border-radius:var(--radius-sm);transition:background .15s}.problem:hover{background:var(--cat-math-light)}.problem-number{color:var(--text-faint);font-size:.82rem;min-width:1.5rem;font-weight:600}.answer{color:var(--accent);font-weight:700}.answer-blank{letter-spacing:2px;color:var(--text-faint)}.fractions-list{display:flex;flex-direction:column;gap:1rem;padding:1rem 0}.fractions-item{display:flex;gap:.75rem;align-items:flex-start;padding:.5rem .6rem;border-radius:var(--radius-sm);transition:background .15s}.fractions-item:hover{background:var(--cat-math-light)}.fractions-content{display:flex;flex-direction:column;gap:.3rem;flex:1}.fractions-instruction{font-size:1rem;font-weight:500}.fractions-display{font-size:1.15rem;font-weight:600;font-family:Courier New,monospace;letter-spacing:1px}.counting-list{display:flex;flex-direction:column;gap:1.25rem;padding:1rem 0}.counting-item{display:flex;gap:.75rem;align-items:flex-start;padding:.5rem .6rem;border-radius:var(--radius-sm);transition:background .15s}.counting-item:hover{background:var(--cat-math-light)}.counting-content{display:flex;flex-direction:column;gap:.4rem;flex:1}.counting-instruction{font-size:.9rem;color:var(--text-muted);font-weight:500}.counting-sequence{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.counting-cell{display:flex;align-items:center;justify-content:center;width:3rem;height:2.4rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:1.05rem;font-weight:600;background:var(--surface)}.counting-blank{border-style:dashed;border-color:var(--cat-math);background:var(--cat-math-light);color:var(--cat-math);font-weight:700}.time-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1.5rem;padding:1rem 0}.time-item{display:flex;gap:.5rem;align-items:flex-start}.time-content{display:flex;flex-direction:column;align-items:center;gap:.4rem;flex:1}.clock-face{width:110px;height:110px}.time-instruction{font-size:.85rem;color:var(--text-muted);text-align:center;font-weight:500}.time-blank{font-size:1.1rem;font-weight:600;letter-spacing:2px;color:var(--text-faint)}.money-list{display:flex;flex-direction:column;gap:1.25rem;padding:1rem 0}.money-item{display:flex;gap:.75rem;align-items:flex-start;padding:.5rem .6rem;border-radius:var(--radius-sm);transition:background .15s}.money-item:hover{background:var(--cat-math-light)}.money-content{display:flex;flex-direction:column;gap:.4rem;flex:1}.money-instruction{font-size:.9rem;color:var(--text-muted);font-weight:500}.money-coins{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.coin-icon{flex-shrink:0}.tracing-grid{display:flex;flex-direction:column;gap:.5rem}.tracing-row{display:flex;align-items:center;gap:1rem;border-bottom:1.5px dashed var(--border);padding-bottom:.5rem;transition:background .15s;padding:.25rem .5rem .5rem;border-radius:var(--radius-sm)}.tracing-row:hover{background:var(--cat-motor-light)}.tracing-model{font-size:2.5rem;font-weight:700;color:var(--text);min-width:3rem;text-align:center}.tracing-practice{display:flex;gap:1.5rem;flex:1}.tracing-ghost{font-size:2.5rem;color:var(--border);font-weight:300}.maze-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:2rem;padding:1rem 0;justify-items:center}.maze-item{display:flex;justify-content:center}.maze-svg{width:100%;max-width:400px;height:auto}.spelling-list{display:flex;flex-direction:column;gap:1rem;padding:1rem 0}.spelling-item{display:flex;gap:.75rem;align-items:flex-start;padding:.5rem .6rem;border-radius:var(--radius-sm);transition:background .15s}.spelling-item:hover{background:var(--cat-reading-light)}.spelling-content{display:flex;flex-direction:column;gap:.25rem;flex:1}.spelling-prompt{font-size:1.05rem}.spelling-hint{font-size:.85rem;color:var(--text-muted);font-style:italic}.blanked-word{letter-spacing:3px;font-family:Courier New,monospace;font-size:1.1rem}.answer-line{display:block;width:200px;border-bottom:1.5px solid var(--text);height:1.5rem}.sight-words-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.75rem;padding:1rem 0}.sight-word-item{display:flex;flex-direction:column;gap:.3rem;padding:.6rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);transition:background .15s}.sight-word-item:hover{background:var(--cat-reading-light)}.sight-word-model{font-family:var(--font-display);font-size:1.3rem;font-weight:600;color:var(--text);text-align:center}.sight-word-practice{display:flex;justify-content:center}.sight-word-line{display:block;width:100%;border-bottom:1.5px dashed var(--border);height:1.8rem}.sight-word-written{font-size:1.1rem;color:var(--text-muted);font-style:italic}.vocab-list{display:flex;flex-direction:column;gap:1.25rem;padding:1rem 0}.vocab-item{display:flex;gap:.75rem;align-items:flex-start;padding:.5rem .6rem;border-radius:var(--radius-sm);transition:background .15s}.vocab-item:hover{background:var(--cat-reading-light)}.vocab-content{display:flex;flex-direction:column;gap:.4rem;flex:1}.vocab-word{font-family:var(--font-display);font-size:1.15rem;font-weight:600;color:var(--text)}.vocab-options{display:flex;flex-direction:column;gap:.25rem;padding-left:.25rem}.vocab-option{font-size:.92rem;color:var(--text);padding:.25rem .5rem;border-radius:var(--radius-sm);transition:background .15s}.vocab-option-letter{font-weight:600;color:var(--text-muted);margin-right:.4rem}.vocab-correct{background:var(--cat-reading-light);color:var(--cat-reading);font-weight:600}.logic-list{display:flex;flex-direction:column;gap:1.5rem;padding:1rem 0}.logic-item{display:flex;gap:.75rem;align-items:flex-start;padding:.5rem .6rem;border-radius:var(--radius-sm);transition:background .15s}.logic-item:hover{background:var(--cat-logic-light)}.logic-content{display:flex;flex-direction:column;gap:.5rem;flex:1}.logic-instruction{font-size:1rem;font-weight:500;color:var(--text)}.logic-choices{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.25rem}.logic-choice{padding:.4rem .85rem;border:1.5px solid var(--border);border-radius:20px;font-size:.93rem;background:var(--surface);font-weight:500;transition:all .15s}.logic-answer-highlight{border-color:var(--cat-logic);background:var(--cat-logic-light);color:var(--cat-logic);font-weight:700}.logic-answer-row{margin-top:.25rem}.logic-blanks{display:flex;flex-direction:column;gap:.35rem;margin-top:.25rem;font-size:.95rem;color:var(--text-muted)}.logic-blank-slot{font-size:.95rem}.logic-sequence{margin-top:.25rem}.logic-sequence-items{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.logic-sequence-item{padding:.45rem .85rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:1.05rem;background:var(--surface);font-weight:500}.logic-sequence-blank{border-style:dashed;border-color:var(--cat-logic);background:var(--cat-logic-light);font-weight:700;min-width:3rem;text-align:center;color:var(--cat-logic)}.logic-sorting{display:flex;flex-direction:column;gap:.5rem}.answer-key{margin-top:2.5rem;padding-top:2rem;border-top:2.5px dashed var(--border);page-break-before:always}.answer-key h2{text-align:center;font-family:var(--font-display);font-size:1.3rem;font-weight:600;margin-bottom:1.25rem;color:var(--text-muted)}@media print{.no-print{display:none!important}body{background:#fff}body:before{display:none}.app-main{padding:0;display:block}.worksheet-preview{box-shadow:none;border-radius:0;border:none;padding:.5in;min-height:0}.problem:hover,.tracing-row:hover,.spelling-item:hover,.logic-item:hover{background:transparent}.answer-key{page-break-before:always}.print-without-answers .answer-key{display:none!important}}@media(max-width:768px){.app-main{flex-direction:column;padding:1rem}.app-main aside{width:100%}.app-logo{width:100px}.config-panel{position:static}}
