/* Reference fidelity: real stationery surfaces and rebuilt page composition. */
#app[data-classroom-style=mint]{background:url('art/classroom-v12/materials.webp') 0 0/200% 200%!important;border-inline:6px solid #c2a17d!important;box-shadow:inset 1px 0 #fff8,inset -1px 0 #fff8}
#app[data-classroom-style=cork]{background:url('art/classroom-v12/materials.webp') 100% 0/200% 200%!important;border-inline:7px solid #c49a68!important}
#app[data-classroom-style=notebook]{background:radial-gradient(circle at 13px 22px,#a78f7055 0 4px,#c0a98155 4px 6px,transparent 7px) 0 0/28px 39px repeat-y,linear-gradient(90deg,transparent 0 31px,#dfa5ab80 31px 32px,transparent 32px),repeating-linear-gradient(transparent 0 38px,#9dbddc66 38px 39px),linear-gradient(#ffffffbb,#ffffffbb),url('art/classroom-v12/materials.webp') 0 100%/200% 200%!important;border:0!important}
#app[data-classroom-style=directory]{background:linear-gradient(90deg,#ddd5ee 0 12px,transparent 12px),repeating-linear-gradient(#fff 0 46px,#e6e0f1 46px 47px)!important}
#app[data-classroom-style=chalk]{background:url('art/classroom-v12/materials.webp') 100% 100%/200% 200%!important;border:10px solid #bf9464!important;border-image:url('art/header-oak.webp') 24 stretch!important}
#app[data-classroom-style]:not([data-classroom-style=""]) .classroom-board-heading,#app .reference-chalk-heading{position:relative;min-height:116px;border:0!important;border-image:none!important;border-radius:0!important;background:url('art/classroom-v13/surfaces.webp') 0 0/200% 200% no-repeat!important;padding:22px 22px!important;margin:22px 16px 26px;color:#fff;box-shadow:1px 4px 5px #24322635!important;overflow:visible!important}
#app .reference-heading{display:flex;align-items:center;gap:10px;box-sizing:border-box;text-align:center}
#app .reference-heading>div{flex:1;min-width:0}
#app .reference-heading h1{font:700 clamp(27px,7vw,37px)/1.12 Cubby,'Trebuchet MS',sans-serif!important;letter-spacing:0!important;color:inherit!important;text-shadow:none!important;margin:0 0 10px!important}
#app .reference-heading p{font:17px/1.35 Cubby,sans-serif;margin:8px 0 0;color:inherit}
#app .reference-notebook-heading{margin:20px 16px 20px 38px;min-height:118px;text-align:left;color:#3d254f;background:none!important;border:0;padding:8px 0;overflow:visible}
#app .reference-notebook-heading h1{font-size:34px!important}
.reference-sketch{display:inline-block;width:105px;height:105px;flex:0 0 105px;background:url('art/classroom-v13/details.webp') var(--ref-x) var(--ref-y)/400% 200% no-repeat;mix-blend-mode:multiply;vertical-align:middle}
.reference-heading-art{width:90px;height:90px;flex-basis:90px}
#app .reference-chalk-heading .reference-heading-art{position:absolute;right:4px;top:0;width:60px;height:60px}
#app .reference-paper{position:relative;box-sizing:border-box;margin:21px 16px 26px;padding:26px 21px 23px;background:linear-gradient(#ffffffa8,#ffffffa8),url('art/classroom-v12/materials.webp') 0 100%/200% 200%!important;color:#25323c!important;border:0!important;border-radius:11px 8px 12px 9px!important;box-shadow:1px 4px 8px #24332933;isolation:isolate;overflow:visible}
#app .reference-paper:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 1px #ffffffb0}
#app .reference-tape{margin-top:28px}
#app .reference-tape:before,#app .reference-tape:after{content:'';position:absolute;inset:auto;z-index:2;top:-9px;left:9px;width:42px;height:19px;background:repeating-linear-gradient(91deg,#b299d04d 0 2px,#c5aedc73 2px 4px);box-shadow:0 1px 2px #2221;transform:rotate(-24deg);clip-path:polygon(0 4%,8% 0,15% 6%,23% 0,32% 5%,42% 0,53% 4%,63% 0,74% 5%,84% 0,94% 5%,100% 0,100% 96%,92% 100%,82% 94%,72% 100%,62% 96%,52% 100%,42% 94%,32% 100%,22% 95%,12% 100%,0 96%);border-radius:0}
#app .reference-tape:after{left:auto;right:9px;transform:rotate(25deg)}
#app .reference-tape:nth-of-type(2n):before{background:repeating-linear-gradient(90deg,#99bd7f55 0 2px,#bad7a270 2px 4px)}
#app .reference-pin:after{content:'';position:absolute;left:30px;top:-10px;width:15px;height:16px;border-radius:50% 50% 45% 45%;background:radial-gradient(circle at 32% 24%,#bcf3ef 0 12%,#48c1bf 20%,#139c9f 58%,#08747c 78%,#073f4b 100%);box-shadow:0 7px 0 -3px #19747c,2px 9px 3px #253a3855;z-index:2;transform:rotate(-9deg)}
#app .reference-pin:nth-of-type(3n):after{background:radial-gradient(circle at 32% 24%,#e9d5ff 0 12%,#b399de 20%,#9973c9 58%,#78519d 78%,#503266 100%);box-shadow:0 7px 0 -3px #78519d,2px 9px 3px #253a3855}
#app .reference-paper :is(h2,h3){font:700 24px/1.2 Cubby,sans-serif!important;color:#263540!important;margin:0 0 10px}
#app .reference-paper p{font:18px/1.45 Cubby,sans-serif!important;margin:7px 0 12px;color:#2c3a46!important;white-space:pre-line;overflow-wrap:anywhere}
#app .reference-paper .muted{font-size:15px!important;color:#53626c!important}
#app .reference-paper :is(.primary,.purple),#app[data-reference-layout]:not([data-reference-layout=""]) .primary{background:linear-gradient(#23a9b4,#05818c)!important;border:1px solid #057d89!important;color:white!important;border-radius:13px!important;font:700 19px/1.25 Cubby,sans-serif;box-shadow:inset 0 1px 1px #ffffff70,0 2px 3px #1f464624;min-height:44px;padding:10px 14px}
#app .reference-paper .outline{border:1.5px solid #167e88!important;border-radius:12px!important;color:#146c7c!important;background:#ffffff50!important;font:700 18px/1.2 Cubby,sans-serif;min-height:42px;padding:9px 13px}
#app .reference-tabs{display:flex;gap:9px;margin:0 19px 24px;padding:0;position:relative;z-index:1;background:none!important;border:0!important}
#app .reference-tabs>button{flex:1;min-width:0;min-height:43px;padding:10px 8px;font:700 18px/1.2 Cubby,sans-serif;color:#263a43;background:#fffdf7;border:1px solid #e3dccb;border-radius:6px;box-shadow:0 3px 4px #253c2e15}
#app .reference-tabs>button[aria-pressed=true],#app .reference-tabs>.reference-tab-active{background:#d5e9db!important;border-color:#b6d4c4!important}
#app[data-classroom-style=notebook] .reference-tabs>.reference-tab-active{background:#ddd3ef!important;border-color:#cabce4!important}
#app .reference-contact-card,#app .reference-assignment,#app .reference-form-card,#app .reference-meeting-card,#app .reference-learning-topic,#app .reference-history-row{display:flex;align-items:center;gap:16px;min-height:146px}
#app .reference-contact-card>div,#app .reference-assignment>div,#app .reference-form-card>div,#app .reference-meeting-card>div,#app .reference-learning-topic>div,#app .reference-history-row>div{min-width:0;flex:1}
#app .reference-contact-card .reference-sketch,#app .reference-contact-card .classroom-sketch{width:85px;height:85px;flex-basis:85px}
#app .reference-assignment{align-items:center;min-height:206px;padding:27px 16px}
#app .reference-assignment>.reference-sketch{width:114px;height:125px;flex-basis:114px}
#app .reference-form-card{min-height:180px}
#app .reference-status{display:inline-block;padding:5px 11px;background:#f6e4a5;border-radius:12px;color:#714a23;font:16px/1.2 Cubby,sans-serif;margin:0 0 7px}
#app .reference-paper-tab{display:table!important;width:auto!important;font:700 21px/1.15 Cubby,sans-serif!important;background:#e1d6ed;color:#382e48!important;padding:8px 15px;margin:-34px 0 17px!important;transform:rotate(-1deg);box-shadow:0 2px 3px #38323e25;border-radius:5px}
#app .reference-reading-entry .reference-paper-tab{background:#f5e295}
#app .reference-reading-total{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px}
#app .reference-reading-total strong{font:700 34px/1.15 Cubby,sans-serif;color:#44304e}
#app .reference-reading-total p{margin-top:8px}
#app .reference-paper progress{width:100%;height:17px;display:block;accent-color:#1999a7;border-radius:12px;overflow:hidden;margin-top:13px;background:#e6e5de;border:0}
#app .reference-paper progress::-webkit-progress-bar{background:#e6e5de;border-radius:12px}#app .reference-paper progress::-webkit-progress-value{background:linear-gradient(90deg,#49bac0,#138f9c);border-radius:12px}
#app .reference-reading-entry .form-card{margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important}
#app .reference-reading-entry label{font:16px/1.35 Arial,sans-serif;margin:13px 0 7px;color:#2d3e46}
#app .reference-reading-entry :is(input,select){width:100%;background:#fffefb!important;border:1px solid #b3bdc5!important;min-height:43px;padding:10px;border-radius:8px;font:16px/1.3 Arial,sans-serif;box-sizing:border-box}
#app .reference-reading-entry .field-2{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}
#app .reference-section-label{font:700 23px/1.3 Cubby,sans-serif;margin:22px 21px 12px;padding:7px 15px;background:#f6e7b4;display:table;border-radius:4px}
#app .reference-history-row{min-height:100px;padding:18px}.reference-history-row>.reference-sketch{width:66px;height:66px;flex-basis:66px}
#app .reference-privacy-note{margin:14px 20px;font:13px/1.5 Arial,sans-serif;color:#324d50;background:#ffffffa0;padding:9px;border-radius:6px}
#app .reference-compose{margin:0 16px 25px}#app .reference-compose>summary{text-align:center;cursor:pointer;list-style:none}#app .reference-compose>.reference-paper{margin-inline:0}
#app .reference-conversation{display:flex;width:100%;align-items:center;gap:13px;background:none;border:0;border-bottom:1px solid #d7d9d2;border-radius:0;padding:18px 0;text-align:left;color:#283944;min-height:82px}
#app .reference-conversation:last-child{border-bottom:0}
#app .reference-conversation>span:nth-child(2){flex:1;min-width:0}
#app .reference-conversation strong{display:block;font:700 19px/1.3 Arial,sans-serif;color:#243441}
#app .reference-conversation small{display:block;font:15px/1.4 Arial,sans-serif;color:#4b5c69;margin-top:6px}
#app .reference-conversation>span:last-child{font-size:27px;color:#47838a}
#app .reference-avatar{display:grid;place-items:center;border-radius:50%;width:51px;height:51px;flex:0 0 51px;background:#d7c8eb;font:23px/1 Arial,sans-serif;color:#3c3859}
#app .reference-avatar-1{background:#f3df9b;color:#675623}#app .reference-avatar-2{background:#b3d4c0;color:#2f5a48}
#app .reference-meeting-card{min-height:181px;align-items:center}#app .reference-meeting-card .reference-sketch{width:100px;height:112px;flex-basis:100px}
#app .reference-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:27px 13px;padding:0 16px;margin-top:10px}
#app .reference-photo-grid .polaroid{position:relative;display:flex;flex-direction:column;margin:0;padding:8px 8px 13px!important;background:#fffdf5!important;border:1px solid #ebdfc7!important;box-shadow:2px 5px 5px #3c2c2440!important;transform:none!important;border-radius:0!important;overflow:visible!important;min-width:0}
#app .reference-photo-grid .polaroid>img{position:static!important;aspect-ratio:1;width:100%!important;height:auto!important;max-height:none!important;object-fit:cover!important;display:block;margin:0!important;border-radius:0!important}
#app .reference-photo-grid .polaroid>span:last-child{font:16px/1.2 Cubby,sans-serif;display:block;padding-top:9px;color:#34313b}
#app .reference-photo-pin{position:absolute;top:-10px;left:50%;z-index:2;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 30% 20%,#b4fff9,#20a0ab 60%,#156471);box-shadow:1px 4px 2px #24373765}
#app .polaroid:nth-child(3n) .reference-photo-pin{background:radial-gradient(circle at 30% 20%,#eacaff,#a37bd3 60%,#6e468a)}
#app .reference-upload>summary{list-style:none;text-align:center;cursor:pointer}
#app .reference-topic-art{width:105px;height:105px;object-fit:contain;flex:0 0 105px;mix-blend-mode:multiply}
#app .reference-footer-note{font:18px/1.4 Cubby,sans-serif;text-align:center;margin:0!important}
/* Match the reference menu's paper tiles and meaningful graphic sizes. */
#app[data-reference-layout=menu] .class-menu-grid{margin:22px 16px!important;gap:20px 13px!important}
#app[data-reference-layout=menu] .menu-square{background:linear-gradient(#ffffffa8,#ffffffa8),url('art/classroom-v12/materials.webp') 0 100%/200% 200%!important;border:0!important;border-radius:4px 6px 3px 5px!important;min-height:162px!important;box-shadow:1px 4px 5px #253c2d35!important;padding:13px 8px 12px!important}
#app[data-reference-layout=menu] .menu-square:before{width:12px;height:13px;top:-8px;background:radial-gradient(circle at 30% 20%,#ffcdc8,#e77e85 60%,#a14b61);box-shadow:1px 5px 2px #24373755;z-index:2}
#app[data-reference-layout=menu] .menu-square:nth-child(2n):before{border-radius:0;left:42%;width:31px;height:13px;top:-6px;transform:rotate(-8deg);background:#baa4d47a;box-shadow:none}
#app[data-reference-layout=menu] .classroom-menu-sketch{width:105px;height:105px;min-height:105px}
#app[data-reference-layout=menu] .menu-square>span:not(.classroom-sketch):not(.daily-update-dot){font-size:20px!important;font-weight:bold!important;line-height:1.12!important;text-align:center}
#app[data-classroom-style=chalk] .announcement-outlined{background:transparent!important;border:2px solid #d6e2dc!important;border-radius:17px 12px 15px 11px!important;padding:24px 19px!important;margin:23px 16px!important;box-shadow:inset 0 0 0 1px #ffffff13!important}
#app[data-classroom-style=chalk] .announcement-outlined h2{font:700 28px/1.15 Cubby,sans-serif!important;letter-spacing:.2px;color:#fff!important}
#app[data-classroom-style=chalk] .announcement-outlined .note-message{font:21px/1.5 Cubby,sans-serif!important;color:#fff!important}
#app[data-classroom-style=chalk] .announcement-outlined .announcement-open{display:table;width:auto;background:transparent!important;border:2px solid #92d7d1!important;color:#b8f0e6!important;font:700 21px/1.2 Cubby,sans-serif!important;padding:10px 15px!important}
#app[data-classroom-style=chalk] .classroom-page-heading{background:none!important;border:0!important;box-shadow:none!important}
/* Child pages also receive taped paper, rather than generic flat white cards. */
#app[data-classroom-style=notebook]>.card,#app[data-classroom-style=mint]>.card{position:relative;background:linear-gradient(#ffffffb8,#ffffffb8),url('art/classroom-v12/materials.webp') 0 100%/200% 200%!important;border:0!important;box-shadow:1px 4px 7px #30302b25!important}
#app[data-classroom-style=notebook]>.card:before{content:'';position:absolute;top:-8px;left:15px;width:37px;height:15px;transform:rotate(-14deg);background:#baa4d485;box-shadow:0 1px 2px #0001}
#app[data-classroom-style=cork] :is(.card,.bubble){background:linear-gradient(#ffffffa8,#ffffffa8),url('art/classroom-v12/materials.webp') 0 100%/200% 200%!important;border:0!important;box-shadow:1px 4px 7px #30302b35!important}
@media(max-width:370px){#app .reference-paper{margin-inline:12px;padding:23px 15px 19px}#app .reference-heading h1{font-size:27px!important}#app .reference-paper :is(h2,h3){font-size:22px!important}#app .reference-sketch{width:83px;height:83px;flex-basis:83px}#app .reference-assignment>.reference-sketch{width:86px;height:105px;flex-basis:86px}#app .reference-form-card>.classroom-sketch{width:85px;height:85px;flex-basis:85px}#app .reference-contact-card{gap:10px}#app .reference-notebook-heading{margin-left:32px}#app .reference-heading-art{width:75px;height:75px;flex-basis:75px}}
@media(min-width:700px){#app[data-reference-layout]>.reference-paper,#app[data-reference-layout]>.reference-heading,#app[data-reference-layout]>.reference-tabs,#app[data-reference-layout]>.reference-compose{max-width:720px;margin-left:auto;margin-right:auto}#app .reference-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#app[data-reference-layout=menu] .class-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* Use the reconstructed reference artwork for the paper, torn perimeter, tape and pins themselves. */
#app .reference-tape,#app .reference-pin{background:transparent!important;box-shadow:none!important;border-radius:0!important;padding-top:32px;padding-bottom:25px}
#app .reference-tape:before,#app .reference-pin:before{content:'';position:absolute;inset:-5px;z-index:-1;width:auto;height:auto;background:url('art/classroom-v13/surfaces.webp') 0 100%/200% 200% no-repeat!important;border-radius:0;box-shadow:none;transform:none;clip-path:polygon(2% 4%,6% 3%,12% 4%,20% 3%,29% 4%,38% 3%,46% 4%,56% 3%,65% 4%,75% 3%,84% 4%,94% 3%,98% 5%,99% 94%,96% 97%,90% 96%,80% 97%,71% 96%,62% 97%,53% 96%,43% 97%,34% 96%,24% 97%,15% 96%,6% 97%,2% 94%);pointer-events:none}
#app .reference-pin:before{background-position:100% 0!important}
#app .reference-pin:nth-of-type(2n):before{background-position:100% 100%!important}
#app .reference-tape:after,#app .reference-pin:after{display:none!important}
#app .reference-tape{padding-top:32px}
#app[data-classroom-style=mint],#app[data-classroom-style=cork]{border-top:5px solid #c49a68!important;border-bottom:5px solid #c49a68!important;border-image:url('art/header-oak.webp') 24 stretch!important}
/* Menu uses the original approved graphics, each in an explicit SVG crop. */
#app[data-reference-layout=menu] .menu-square>.reference-menu-art{display:block;width:108px!important;height:108px!important;min-height:108px;flex:0 0 108px;align-self:center;background:none!important;overflow:hidden;mix-blend-mode:multiply}
#app[data-reference-layout=menu] .menu-square>.reference-sketch.reference-menu-art{background-image:url('art/classroom-v13/details.webp')!important;background-size:400% 200%!important;background-position:var(--ref-x) var(--ref-y)!important;background-repeat:no-repeat!important}
#app[data-reference-layout=menu] .menu-square>.art{display:block;width:108px!important;height:108px!important;max-width:108px!important;max-height:108px!important;flex:0 0 108px;margin:0!important;object-fit:contain!important;align-self:center}
#app[data-reference-layout=menu] .class-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:19px 14px!important;margin:21px 16px 28px!important}
#app[data-reference-layout=menu] .menu-square{min-height:170px!important;padding:10px 7px 14px!important}
#app[data-reference-layout=menu] .menu-square>span:not(.reference-menu-art):not(.daily-update-dot){width:100%;text-align:center;font:700 21px/1.15 Cubby,sans-serif!important}
#app[data-reference-layout=menu]>.reference-heading{margin:17px 18px 27px;min-height:125px}
@media(min-width:800px){#app[data-reference-layout=menu] .class-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:760px;margin-inline:auto!important}}

/* Mint belongs exclusively to Menu; messages use white textured stationery. */
#app[data-classroom-style=paper]{background:linear-gradient(#ffffffdc,#ffffffdc),url('art/classroom-v12/materials.webp') 0 100%/200% 200%!important;border:0!important}

/* Preserve the original announcement body; retain only its new framed heading. */
#app[data-classroom-section=announcements]>.reference-chalk-heading h1:after{content:'';display:block;width:55%;margin:12px auto 0;border-top:2px solid #e8cb6b;transform:rotate(-1deg)}
/* Complete stationery layouts: use cropped artwork at a stable scale, never stretch an atlas over a scrolling page. */
#app[data-classroom-style=mint]{background:#d8e7d5 url('art/classroom-v17/mint.svg') center top/460px 460px repeat!important}
#app[data-classroom-style=cork]{background:#c8a172 url('art/classroom-v17/cork.svg') center top/460px 460px repeat!important}
#app[data-classroom-style=notebook]{background:radial-gradient(circle at 13px 22px,#a78f7055 0 4px,#c0a98155 4px 6px,transparent 7px) 0 0/28px 39px repeat-y,linear-gradient(90deg,transparent 0 31px,#dfa5ab80 31px 32px,transparent 32px),repeating-linear-gradient(transparent 0 38px,#9dbddc66 38px 39px),linear-gradient(#ffffffb8,#ffffffb8),url('art/classroom-v17/paper.svg') center top/460px 460px repeat!important}
#app[data-classroom-style=paper],#app[data-classroom-style=supply],#app[data-classroom-style=celebration]{background:linear-gradient(#ffffffcc,#ffffffcc),url('art/classroom-v17/paper.svg') center top/460px 460px repeat!important}
#app[data-classroom-style]:not([data-classroom-style=""]) .classroom-board-heading,#app .reference-chalk-heading{background-image:url('art/classroom-v17/chalk-heading.svg')!important;background-size:100% 100%!important;background-position:center!important;min-height:126px;padding:24px 22px!important}
#app .reference-paper{background:linear-gradient(#ffffff99,#ffffff99),url('art/classroom-v17/paper.svg') center/420px 420px!important}
#app .reference-tape,#app .reference-pin{background:transparent!important}
#app .reference-tape:before{background:url('art/classroom-v17/taped-paper.svg') center/100% 100% no-repeat!important}
#app .reference-pin:before,#app .reference-pin:nth-of-type(2n):before{background:url('art/classroom-v17/pinned-paper.svg') center/100% 100% no-repeat!important}
#app[data-classroom-style]:not([data-classroom-style=""]) .reference-navigation-card{display:flex;align-items:center;gap:15px;min-height:146px;margin:25px 16px 30px!important;padding:27px 20px!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-align:left;width:calc(100% - 32px)}
#app .reference-navigation-card .circle{display:flex;align-items:center;justify-content:center;width:88px!important;height:88px!important;flex:0 0 88px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible!important}
#app .reference-navigation-card .circle>:is(.art,svg,.reference-menu-art){width:88px!important;height:88px!important;max-width:88px!important;object-fit:contain;mix-blend-mode:multiply}
#app .reference-navigation-card .grow{flex:1;min-width:0}
#app .reference-navigation-card h2{font:700 24px/1.18 Cubby,sans-serif!important;margin:0 0 8px!important;color:#312745!important}
#app .reference-navigation-card p{font:18px/1.35 Cubby,sans-serif!important;color:#364047!important;margin:0!important}
#app .reference-navigation-card .chev{font:28px Cubby,sans-serif;color:#137e89}
#app[data-classroom-style]:not([data-classroom-style=""]) :is(.primary,.purple){background:linear-gradient(#20a8b0,#078492)!important;border:1px solid #0c7d89!important;border-radius:12px!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff66,0 2px 3px #19484c20!important}
#app[data-classroom-style]:not([data-classroom-style=""]) .outline{background:#ffffffe0!important;border:1.5px solid #197d86!important;color:#176a77!important;border-radius:11px!important;box-shadow:none!important}
#app[data-classroom-style]:not([data-classroom-style=""]) .classroom-paper-heading{display:flex;flex-direction:row-reverse;gap:12px;align-items:center;margin:22px 18px 25px 34px;padding:7px 0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-align:left;min-height:104px}
#app[data-classroom-style]:not([data-classroom-style=""]) .classroom-paper-heading h1{color:#412851!important;font:700 34px/1.14 Cubby,sans-serif!important;text-align:left}
#app[data-classroom-style]:not([data-classroom-style=""]) .classroom-paper-heading p{color:#344048!important;font:17px/1.35 Cubby,sans-serif;text-align:left}
#app[data-classroom-style]:not([data-classroom-style=""]) .classroom-heading-sketch{flex:0 0 80px;width:80px;height:80px;mix-blend-mode:multiply}
#app[data-classroom-section=calendar]{background:linear-gradient(#ffffffbb,#ffffffbb),url('art/classroom-v17/paper.svg') center top/460px 460px repeat!important;border:7px solid #bb9468!important;border-image:url('art/header-oak.webp') 24 stretch!important}
#app[data-classroom-section=calendar] .classroom-page-heading{margin:0!important;padding:15px!important;min-height:130px;justify-content:center}
#app[data-classroom-section=calendar] .classroom-heading-copy{max-width:68%!important;background:none!important;padding:8px!important;text-align:center}
#app[data-classroom-section=calendar] .classroom-heading-copy h1{font-size:36px!important;text-align:center}
#app[data-classroom-section=calendar] .classroom-heading-copy p{display:none}
#app[data-classroom-section=calendar] .classroom-heading-copy h1:after{border-color:#507d54;max-width:160px}
#app[data-classroom-section=calendar] .card.calendar{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:10px 14px 18px!important}
#app[data-classroom-section=calendar] .calendar-top{background:#dfe8cbab!important;border-radius:20px!important;padding:9px 2px!important;margin-bottom:13px;min-height:52px}
#app[data-classroom-section=calendar] .calendar-top>button{background:transparent!important;color:#183b3c!important;font-size:36px}
#app[data-classroom-section=calendar] .calendar-month-label small{display:none}
#app[data-classroom-section=calendar] .calendar-month-label strong{font:700 28px/1.15 Cubby,sans-serif}
#app[data-classroom-section=calendar] .calendar-grid{background:#fffefa80!important;border-color:#c8c5ae!important}
#app[data-classroom-section=calendar] .calendar-grid>:is(button,span){border-color:#c8c5ae90!important}
#app[data-classroom-section=calendar] .calendar-grid>button,#app[data-classroom-section=calendar] .calendar-grid>.blank{min-height:65px!important;background:#fffefa50!important}
#app[data-classroom-section=calendar] .calendar-grid>.week{background:#e4e9d2a0!important;font:700 15px/1.2 Cubby,sans-serif}
#app[data-classroom-section=calendar] .calendar-grid>button.has-event{background:#fff7d9aa!important}
#app[data-classroom-section=calendar] .calendar-grid>button.chosen{background:#f9eaa7aa!important;box-shadow:inset 0 0 0 1px #e0c75d!important}
#app[data-classroom-section=calendar] .calendar-grid .date-number{font-size:22px}
#app[data-classroom-section=calendar] .classroom-upcoming{padding:0 14px 14px}
#app[data-classroom-section=calendar] .classroom-upcoming>h2{font-size:29px;color:#263f3d;margin:16px 0 23px}
#app[data-classroom-section=calendar] .classroom-event-note{margin:22px 0 28px!important;min-height:145px;padding:25px 17px!important}
#app[data-reference-layout=menu] .class-menu-grid{margin-top:24px!important}
#app[data-reference-layout=menu] .menu-square{background:linear-gradient(#ffffff99,#ffffff99),url('art/classroom-v17/paper.svg') center/420px 420px!important}
@media(max-width:370px){#app .reference-navigation-card .circle,#app .reference-navigation-card .circle>:is(.art,svg){width:72px!important;height:72px!important;flex-basis:72px!important}#app .reference-navigation-card h2{font-size:22px!important}}
/* Keep the illustrated paper layer visible over the legacy card rules. */
#app[data-classroom-style]:not([data-classroom-style=""]) :is(.reference-tape,.reference-pin){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
/* Button family from the approved stationery screens. Classroom controls stay untouched. */
#app[data-classroom-style]:not([data-classroom-style=""]) :is(button.primary,button.purple,a.primary,a.purple,summary.primary){font:700 21px/1.2 Cubby,'Trebuchet MS',sans-serif!important;letter-spacing:0!important;text-shadow:none!important;min-height:46px;padding:11px 18px!important;border:1px solid #117985!important;border-radius:12px 10px 12px 11px!important;background:linear-gradient(165deg,#22a9b1,#078592)!important;box-shadow:inset 0 1px 0 #ffffff85,0 2px 2px #24484620!important;color:#fff!important}
#app[data-classroom-style]:not([data-classroom-style=""]) :is(button.outline,a.outline){font:700 20px/1.2 Cubby,'Trebuchet MS',sans-serif!important;letter-spacing:0!important;text-shadow:none!important;min-height:44px;padding:10px 16px!important;border:2px solid #187e88!important;border-radius:12px 10px 13px 11px!important;background:linear-gradient(#ffffffd9,#ffffffd9),url('art/classroom-v17/paper.svg') center/420px 420px!important;color:#126a76!important;box-shadow:0 1px 2px #2f4a3e15!important}
#app[data-classroom-style]:not([data-classroom-style=""]) :is(.primary,.purple,.outline).small-btn{min-height:40px;font-size:17px!important;padding:8px 13px!important}
#app[data-classroom-style]:not([data-classroom-style=""]) .reference-tabs>button{font:700 19px/1.2 Cubby,sans-serif!important;min-height:45px;border:1px solid #d8d7d0!important;border-radius:5px 7px 5px 6px!important;box-shadow:1px 3px 4px #34403920!important;background:#fffdf7!important;color:#303748!important;padding:10px 8px!important}
#app[data-classroom-style]:not([data-classroom-style=""]) .reference-tabs>button[aria-pressed=true],#app[data-classroom-style]:not([data-classroom-style=""]) .reference-tabs>.reference-tab-active{background:#ded5f1!important;border-color:#c8bae1!important}
#app[data-classroom-style]:not([data-classroom-style=""]) .important-tools-button{font:700 21px/1.2 Cubby,sans-serif!important;min-height:48px;background:linear-gradient(#ffffffcc,#ffffffcc),url('art/classroom-v17/paper.svg') center/420px 420px!important;color:#245967!important;border:1px solid #b8cbc6!important;border-radius:6px!important;box-shadow:1px 3px 4px #34403920!important}
#app[data-classroom-style]:not([data-classroom-style=""]) :is(button,a,summary){touch-action:manipulation}
#app[data-classroom-style]:not([data-classroom-style=""]) :is(button,a,summary):focus-visible{outline:3px solid #b38bd5!important;outline-offset:3px}
#app[data-classroom-style]:not([data-classroom-style=""]) :is(.primary,.purple,.outline):active:not(:disabled){transform:translateY(1px)}
#app[data-classroom-style]:not([data-classroom-style=""]) :is(button.primary,button.outline,button.purple):disabled{opacity:.55;box-shadow:none!important}

/* Desktop headings and their content share one centered column.
   Keep these rules last so page-specific mobile margins cannot offset a banner. */
@media (min-width:700px){
  #app[data-reference-layout],
  #app[data-classroom-style]:not([data-classroom-style=""]){--classroom-content-width:720px}
  #app[data-reference-layout=menu]{--classroom-content-width:760px}
  #app[data-reference-layout] > :is(.reference-heading,.reference-paper,.reference-tabs,.reference-compose,.reference-photo-grid),
  #app[data-classroom-style]:not([data-classroom-style=""]) > :is(.classroom-page-heading,.reference-navigation-card){
    box-sizing:border-box;
    width:calc(100% - 36px);
    max-width:var(--classroom-content-width,720px);
    margin-left:auto!important;
    margin-right:auto!important;
  }
  #app[data-reference-layout=menu] > .class-menu-grid{
    box-sizing:border-box;
    width:calc(100% - 36px);
    max-width:var(--classroom-content-width);
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* Directory phones retain their illustration, in black. */
#app .reference-menu-art[data-menu-graphic="8"]{filter:grayscale(1) brightness(.85) contrast(2)}
/* Plain stationery replaces the full-panel bitmap containing an oversized pin. */
#app .reference-paper.reference-pin{background:#fff!important;background-image:none!important;border:1px solid #d9e2e3!important;border-radius:10px!important;box-shadow:0 2px 6px #203c4414!important}
#app .reference-paper.reference-pin:before,#app .reference-paper.reference-pin:nth-of-type(2n):before{display:none!important;content:none!important;background:none!important}
#app .reference-paper.reference-pin:after,#app .reference-paper.reference-pin:nth-of-type(3n):after{content:'';position:absolute;inset:auto;top:-8px;left:22px;width:38px!important;height:16px!important;background:#d7c7e9cc!important;box-shadow:none!important;border-radius:1px;transform:rotate(-8deg);clip-path:none}

/* Schedule notices on a bounded bulletin board, with simple white papers. */
#app[data-page=classSchedules]{background:#e3f4f2!important;background-image:none!important;border:0!important}
.schedules-bulletin{box-sizing:border-box;width:calc(100% - 24px);max-width:800px;margin:20px auto;padding:12px 12px 22px;background:#caa779 url('art/classroom-v17/cork.svg') center/420px;border:9px solid #bc8d58;border-radius:4px;box-shadow:0 3px 9px #50371726}
#app .schedules-bulletin>.reference-paper{background:#fff!important;background-image:none!important;border:1px solid #dfe3e4!important;border-radius:5px!important;box-shadow:0 2px 5px #3e2c1b22!important;margin:28px 12px!important;padding:25px!important}
#app .schedules-bulletin>.reference-paper:before{display:none!important;background:none!important}
#app .schedules-bulletin>.reference-paper:after{content:'';position:absolute;top:-8px;left:22px;width:38px!important;height:16px!important;background:#d7c7e9cc!important;box-shadow:none!important;transform:rotate(-8deg)}
#app .schedules-bulletin>.reference-heading{width:calc(100% - 24px)!important;margin:12px auto 28px!important}
#app .schedules-bulletin>button{width:calc(100% - 24px)!important;margin:20px auto!important}
@media(max-width:600px){.schedules-bulletin{padding:8px 4px 18px;border-width:6px}#app .schedules-bulletin>.reference-paper{padding:20px!important}}
/* White schedule stickies with crisp colored outlines and small matching pins. */
#app .schedule-sticky{--schedule-color:#14616a;position:relative;box-sizing:border-box;max-width:720px;margin:30px 12px!important;padding:28px 24px 22px!important;background:#fff!important;background-image:none!important;border:3px solid var(--schedule-color)!important;border-radius:4px!important;box-shadow:0 3px 6px #392a1c24;text-align:center;color:#263b42}
#app .schedule-sticky:before,#app .schedule-sticky:after{display:none!important}
#app .schedule-note-0{--schedule-color:#14616a}#app .schedule-note-1{--schedule-color:#582c83}#app .schedule-note-2{--schedule-color:#a32b68}#app .schedule-note-3{--schedule-color:#224c83}#app .schedule-note-4{--schedule-color:#b65312}#app .schedule-note-5{--schedule-color:#99740c}#app .schedule-editor{--schedule-color:#224c83}
.schedule-pin{position:absolute;top:-11px;left:50%;transform:translateX(-50%);width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 32% 24%,#ffffffc0 0 10%,transparent 32%),var(--schedule-color);border:1px solid #20343c55;box-shadow:0 5px 0 -2px var(--schedule-color),1px 7px 2px #18253430;pointer-events:none}
#app .schedule-sticky h2{margin:0 0 14px;font:700 27px/1.25 Cubby,sans-serif;color:var(--schedule-color)}
#app .schedule-sticky .note-message{white-space:pre-wrap;overflow-wrap:anywhere;text-align:center;font-size:20px;line-height:1.5}
.schedule-editor>summary{font-size:25px;font-weight:bold;cursor:pointer;color:var(--schedule-color)}.schedule-editor form{text-align:left}
@media(max-width:600px){#app .schedule-sticky{padding:25px 18px 20px!important;margin:28px 10px!important}}
/* Bounded sticky-note papers, with illustrated schedule cues and folded corners. */
.schedule-notes-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;padding:14px 12px 22px}
#app .schedule-notes-grid .schedule-sticky{width:100%;max-width:570px;min-height:250px;margin:0 auto!important;padding:28px 23px 32px!important;box-shadow:2px 6px 8px #3a291e30,0 1px 1px #fff9!important;background:linear-gradient(#ffffff 0 85%,#faf9f4 100%)!important;transform:rotate(-.5deg)}
#app .schedule-notes-grid .schedule-sticky:nth-child(even){transform:rotate(.5deg)}
#app .schedule-notes-grid .schedule-sticky:after{display:block!important;content:'';position:absolute;inset:auto;right:0;bottom:0;width:22px;height:22px;background:linear-gradient(135deg,#e8e8df 0 48%,#c8b18b 51%)!important;clip-path:polygon(100% 0,100% 100%,0 100%);border-radius:0;transform:none;box-shadow:-2px -2px 3px #20383313;pointer-events:none}
.schedule-note-graphic{display:flex;justify-content:center;margin:0 auto 10px}.schedule-note-graphic .classroom-sketch{width:76px!important;height:76px!important;flex:0 0 76px!important;mix-blend-mode:normal!important}
#app .schedule-notes-grid .schedule-sticky h2{font-size:25px}.schedule-editor{max-width:720px;margin-inline:auto!important}
@media(min-width:700px){.schedule-notes-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 22px}#app .schedule-notes-grid .schedule-sticky{min-height:280px}}
@media(prefers-reduced-motion:reduce){#app .schedule-notes-grid .schedule-sticky{transform:none!important}}

/* Yellow teacher schedule-edit control. */
html body #app[data-page="classSchedules"] .schedule-editor:not([open]){background:#ffe16a!important;background-image:none!important;border-color:#d3a126!important;box-shadow:0 4px 0 #b9922425!important}
html body #app[data-page="classSchedules"] .schedule-editor>summary{background:#ffe16a!important;color:#553c0c!important;border-radius:10px;padding:12px;box-sizing:border-box}
