/* Miah's Class tools theme (grammar-extras, writing-extras-free, writing task builders). Colour/font overrides only. Remove the <link> to revert. */
html:root{--ink:#1b2a49;--muted:#4a5675;--line:#e4d9bf;--sky:#efe3c4;--peach:#f6ecd3;--yellow:#faf0cf;--blue:#1b2a49;--teal:#8c2f39;--orange:#9a6f1c;--shadow:0 22px 54px rgba(27,42,73,.15);--bg:#faf7f0;--soft:#f3ece0;--brand:#8c2f39}
html body:not(.dark-mode){background:linear-gradient(135deg,#faf7f0 0%,#f3ece0 100%)}
html body::before,html body::after{border-color:rgba(27,42,73,.10)}
html body h1{color:#1b2a49;font-family:Georgia,'Times New Roman',serif}
html body h2{color:#1b2a49;font-family:Georgia,'Times New Roman',serif}
html body h3{color:#8c2f39}
html body header{border-color:rgba(228,217,191,.95)}
html body .bubble{background:#fbf8f1;border-color:#e4d9bf}
html body .bubble:nth-child(2n){background:#f6ecd3;border-color:#e0c98e}
html body .bubble strong{color:#1b2a49}
html body .word-card{border-color:#b8892b}
html body .paragraph-box{background:#fbf8f1;border-color:#e4d9bf}
html body .mixed-item{background:#fdfbf6;border-color:#e4d9bf}
html body .app button:hover{background:#2c3e66;box-shadow:0 10px 18px rgba(27,42,73,.18)}
html body .app .next:hover{background:#6e222b}
html body .app .light{color:#1b2a49;background:#efe3c4}
html body .app .light:hover{background:#e4d5ac}
html body .app .selected{background:#9a6f1c;box-shadow:0 0 0 3px rgba(184,137,43,.28)}
html body .app th{color:#1b2a49;background:#efe3c4}
html body .track{background:#e9e0cc}
html body button:focus-visible,html body input:focus-visible,html body select:focus-visible{outline:3px solid rgba(184,137,43,.55)}
html body .container{box-shadow:0 10px 40px rgba(27,42,73,.15);border-top:4px solid #b8892b}
html body .container h1{color:#1b2a49;text-align:center}
html body .container h2{border-bottom-color:#b8892b;color:#1b2a49}
html body .student-info h3,html body .word-bank h3,html body .essay-section h3,html body .review-section h4{color:#8c2f39}
html body .info-field input:focus,html body .framework-field:focus{border-color:#8c2f39}
html body .phase-btn{border-color:#1b2a49;color:#1b2a49}
html body .phase-btn.active{background:#1b2a49;color:#fff}
html body .phase-btn:hover{box-shadow:0 4px 12px rgba(27,42,73,.3)}
html body .word-bank{background:#f3ece0;border-left-color:#8c2f39}
html body .word-tag{color:#8c2f39;border-color:#8c2f39}
html body .blank-input{border-bottom-color:#8c2f39;background:#f7efdc}
html body .blank-input:focus{background:#efe3c4;border-bottom-color:#6e222b}
html body .blank-select{border-color:#8c2f39;background:#f7efdc}
html body .btn-action:not(.btn-secondary):not(.btn-success):not(.btn-info){background:#8c2f39}
html body .btn-action:not(.btn-secondary):not(.btn-success):not(.btn-info):hover{background:#6e222b;box-shadow:0 4px 12px rgba(140,47,57,.4)}
html body .hero{background:linear-gradient(135deg,#1b2a49 0%,#2c3e66 100%);box-shadow:0 18px 40px rgba(27,42,73,.25);border-bottom:4px solid #b8892b}
html body .hero h1,html body .hero p{color:#fff}
html body .hero h1{font-family:Georgia,'Times New Roman',serif}
html body .pill{background:#efe3c4;color:#1b2a49}
html body .chart-title,html body .data-table td:first-child,html body .writebox label{color:#1b2a49}
html body .data-table th{background:#1b2a49}
html body button.printpdf{background:#9a6f1c}
.mc-back{position:fixed;left:12px;bottom:12px;z-index:50;background:#1b2a49;color:#fff;padding:9px 15px;border-radius:999px;font:600 13px/1 system-ui,-apple-system,'Segoe UI',Arial,sans-serif;text-decoration:none;box-shadow:0 6px 18px rgba(27,42,73,.3)}
.mc-back:hover{background:#8c2f39}
.mc-back:focus-visible{outline:3px solid #b8892b;outline-offset:2px}
@media print{.mc-back{display:none}}
