/* The generated frame supplies the artwork; crisp live titles remain editable and accessible. */
#app .modern-illustrated-banner,#app[data-office-style=true]>.modern-illustrated-banner,#app .school-links-stationery>.modern-illustrated-banner,#app .lunch-bulletin>.modern-illustrated-banner{position:relative!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:5px!important;background:#242726 url('art/banner-modern/chalkboard.webp') center/100% 100% no-repeat!important;border:0!important;border-image:none!important;border-radius:3px!important;box-shadow:0 4px 8px #2b352024!important;color:#fffdf4!important;width:calc(100% - 36px)!important;max-width:720px!important;min-height:0!important;aspect-ratio:3/1!important;margin:22px auto 26px!important;padding:34px 55px 58px!important;text-align:center!important;overflow:visible!important;transform:none!important}
#app .modern-illustrated-banner:before,#app .modern-illustrated-banner:after,#app .modern-illustrated-banner h1:before,#app .modern-illustrated-banner h1:after{display:none!important;content:none!important}
#app .modern-illustrated-banner h1{font:400 clamp(25px,5vw,40px)/1.08 Cubby,sans-serif!important;color:#fffef6!important;text-shadow:none!important;text-decoration:none!important;letter-spacing:.2px!important;margin:0!important;overflow-wrap:break-word;text-wrap:balance}
#app .modern-illustrated-banner p{font:400 clamp(13px,2.7vw,19px)/1.2 Cubby,sans-serif!important;color:#f1f2e7!important;margin:7px 0 0!important;text-align:center!important;text-wrap:balance}
#app .modern-illustrated-banner .classroom-heading-copy,#app .modern-illustrated-banner>div{flex:0 1 auto!important;min-width:0;width:100%}
#app .modern-illustrated-banner .ann-newsletter-doodle,#app .modern-illustrated-banner .ann-newsletter-rays{display:none!important}
#app .rules-letterhead{border:7px solid #f4ff00!important;box-shadow:0 0 0 2px #fcffb8,0 0 15px #f0ff00d9,0 0 30px #eaff005e,0 5px 12px #25394324!important}
.communication-top-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:720px;width:calc(100% - 40px);margin:20px auto 8px;padding:0;background:none;border:0;box-shadow:none;min-height:0;position:relative;z-index:1}
#app .communication-top-tabs .communication-tab{display:flex;justify-content:center;align-items:center;min-height:58px;background:#fffef4!important;color:#286a70!important;border:2px solid #32828a!important;border-radius:8px!important;margin:0!important;padding:12px 8px!important;font:700 26px/1.1 Cubby,sans-serif;box-shadow:0 3px 5px #315a4e18;flex:none}
#app .communication-top-tabs .communication-tab.active{background:#167e88!important;color:white!important;border-color:#12636c!important;box-shadow:0 3px 5px #315a4e2b}
#app .shared-messaging-panel{box-sizing:border-box;background:#fdfbf0;border:1px solid #c5d8cc;border-radius:12px;margin:22px auto;width:calc(100% - 48px);max-width:680px;padding:20px;text-align:center}
.communication-class-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px auto 22px}.communication-class-actions>button{width:100%;margin:0!important}
.communication-contact-actions{margin:12px 0 18px}.message-student-card{background:#fffef7!important;border:1px solid #b9d7d0!important;border-radius:10px!important;margin:14px 0;padding:18px!important;min-width:0}.message-student-card>summary{font-size:24px;font-weight:bold;cursor:pointer;color:#28626a}.message-student-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
#app .connected-message-account,#app .connected-message-note,#app .connected-thread,#app .connected-contact,#app>.communication-class-actions{box-sizing:border-box;max-width:680px;width:calc(100% - 48px);margin:18px auto}
.connected-message-account{padding:15px 18px;background:#f8f8e9;border:1px solid #c9dac7;border-radius:9px;text-align:center}.shared-message-unread,.inbox-unread-count{display:inline-block;background:#d12851;color:white;border-radius:12px;padding:2px 8px;font:700 12px/1.4 Arial,sans-serif;white-space:nowrap}.shared-message-unread:empty{display:none}
.connected-contact,.connected-thread{background:#fffdf4;border:1px solid #c9dbd0;border-radius:12px;padding:22px}.connected-contact h3{font-size:23px;color:#2c5c62}.connected-message{background:#f3f5eb;border:1px solid #d5dfcf;border-radius:12px;padding:16px;margin:14px 0;overflow-wrap:anywhere}.connected-message.sent{background:#dff2eb;border-color:#a9cbc0;margin-left:24px}.connected-message.received{margin-right:24px}.connected-message p{white-space:pre-wrap}.connected-message small{font:12px/1.4 Arial,sans-serif;color:#516a66}.connected-thread form{margin-inline:0!important;width:100%!important;box-shadow:none!important;border:0!important;padding:12px 0!important;background:none!important}
@media(max-width:600px){#app .modern-illustrated-banner,#app[data-office-style=true]>.modern-illustrated-banner{aspect-ratio:2.7/1!important;padding:26px 32px 35px!important}#app .modern-illustrated-banner h1{font-size:clamp(23px,6vw,32px)!important}#app .modern-illustrated-banner p{font-size:14px!important;margin-top:5px!important}.communication-top-tabs{gap:10px;margin-top:16px}#app .communication-top-tabs .communication-tab{font-size:24px;min-height:55px}.communication-class-actions{grid-template-columns:minmax(0,1fr)}.connected-message.sent{margin-left:12px}.connected-message.received{margin-right:12px}}
@media print{#app .rules-letterhead{border:0!important;box-shadow:none!important}.communication-top-tabs{display:none!important}}

#app .communication-top-tabs .communication-tab:after{display:none!important}
/* Override older high-specificity theme selectors on every page, including compose screens. */
html body #app[data-page][data-classroom-style] .modern-illustrated-banner{background:#242726 url('art/banner-modern/chalkboard.webp') center/100% 100% no-repeat!important;border:0!important;border-image:none!important;min-height:0!important;padding:34px 55px 58px!important;aspect-ratio:3/1!important;color:#fffef6!important;transform:none!important}
html body #app[data-page][data-classroom-style] .modern-illustrated-banner :is(h1,p){color:#fffef6!important;text-shadow:none!important}
@media(max-width:600px){html body #app[data-page][data-classroom-style] .modern-illustrated-banner{aspect-ratio:2.7/1!important;padding:26px 32px 35px!important}}

/* Restore the established clean oak chalkboard, without baked-in generic artwork. */
html body #app[data-page][data-classroom-style] .restored-chalk-banner{position:relative!important;box-sizing:border-box!important;background:url('art/classroom-v17/chalk-heading.svg') center/100% 100% no-repeat!important;border:0!important;border-image:none!important;border-radius:0!important;color:#fffef6!important;width:calc(100% - 36px)!important;max-width:720px!important;min-height:155px!important;margin:22px auto 26px!important;padding:32px 52px!important;text-align:center!important;box-shadow:0 3px 7px #26352d26!important;transform:none!important;overflow:visible!important}
html body #app .restored-chalk-banner :is(h1,p){color:#fffef6!important;text-shadow:none!important}
html body #app .restored-chalk-banner h1{font:700 clamp(27px,5vw,39px)/1.15 Cubby,sans-serif!important;margin:0 0 12px!important;text-wrap:balance}
html body #app .restored-chalk-banner .banner-page-doodle{position:absolute!important;width:28px!important;height:28px!important;bottom:20px!important;color:#f3db87!important;opacity:1!important}
html body #app .communication-top-tabs .communication-tab:first-child{background:#7943b6!important;border-color:#6837a4!important;color:#fff!important}
html body #app .communication-top-tabs .communication-tab:last-child{background:#138c95!important;border-color:#10757c!important;color:#fff!important}
html body #app .communication-top-tabs .communication-tab.active{outline:3px solid #e5b956;outline-offset:3px}
@media(max-width:600px){html body #app[data-page][data-classroom-style] .restored-chalk-banner{padding:29px 38px!important;min-height:145px!important}html body #app .restored-chalk-banner .banner-page-doodle{width:23px!important;height:23px!important;bottom:17px!important}}
