/* Centered formal class rules with a crisp outline and bounded pin. */
#app .rules-bulletin{width:calc(100% - 24px)!important;margin-inline:auto!important}
#app .rules-letterhead{margin:8px auto!important;max-width:720px;border:3px solid #14616a!important;text-align:center!important}
#app .rules-letterhead:before{content:'';position:absolute;left:50%;top:-13px;transform:translateX(-50%);width:19px;height:19px;border-radius:50%;background:radial-gradient(circle at 33% 25%,#91b2e3 0 9%,#254b83 33%,#102d58 80%);border:1px solid #10264b;box-shadow:0 5px 0 -2px #183f71,1px 7px 2px #10233b40;z-index:2}
[data-rule-font=arial]{--rule-font:Arial,sans-serif}[data-rule-font=georgia]{--rule-font:Georgia,serif}[data-rule-font=hand]{--rule-font:Cubby,cursive}[data-rule-font=rounded]{--rule-font:'Trebuchet MS',sans-serif}[data-rule-font=mono]{--rule-font:'Courier New',monospace}
#app .rules-letterhead[data-rule-font] :is(p,h2,h3,footer){font-family:var(--rule-font,Arial,sans-serif)!important}
.individual-class-rules{list-style:none;padding:0;margin:26px auto;max-width:600px}.individual-class-rules li{display:flex;justify-content:center;align-items:baseline;gap:12px;margin:16px 0;font:18px/1.6 var(--rule-font,Arial,sans-serif);white-space:pre-line}.rule-bullet{color:#14616a;font-weight:bold;flex:none}.individual-class-rules li>span:last-child{overflow-wrap:anywhere}
.rules-style-editor{border:1px solid #b7ced2;border-radius:10px;padding:18px;margin:20px 0;background:#f2faf9}.rule-builder-row{background:#fff;border:1px solid #c6d8dc;border-radius:8px;padding:16px;margin:16px 0}
#app:is([data-page=lunchMenu],[data-page=lunchDay]){background:#e2f4f1!important;background-image:none!important;border:0!important}
.lunch-bulletin{box-sizing:border-box;width:calc(100% - 24px);max-width:800px;margin:20px auto;padding:15px 18px 26px;background:#caa779 url('art/classroom-v17/cork.svg') center/420px;border:9px solid #bc8d58;border-radius:4px;box-shadow:0 3px 9px #50371726}
#app .lunch-bulletin>.classroom-page-heading{width:100%!important;margin:8px auto 28px!important;max-width:680px!important}
#app .lunch-sticky{position:relative;box-sizing:border-box;background:#fff!important;background-image:none!important;border:3px solid #e67419!important;border-radius:5px;padding:25px;margin:28px auto;max-width:720px;box-shadow:0 3px 6px #4a321b22;color:#24343b}
#app .lunch-sticky:before{content:'';position:absolute;top:-10px;left:50%;width:15px;height:15px;transform:translateX(-50%);background:#25538b;border:1px solid #15365e;border-radius:50%;box-shadow:0 4px 0 -1px #193c6c}
#app .lunch-sticky h2{text-align:center;font:700 27px/1.25 Cubby,sans-serif!important;margin:0 0 18px;color:#24494c}
#app .lunch-sticky p{white-space:pre-line;overflow-wrap:anywhere}.lunch-editor>summary{font-size:24px;font-weight:bold;text-align:center;cursor:pointer}.lunch-editor>form{margin:18px 0 0!important}.lunch-bulletin>button{max-width:600px;margin:20px auto!important}
.lunch-month-nav{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px}.lunch-month-nav h3{text-align:center;margin:8px 0;font-size:23px}.lunch-month-nav button{padding:6px!important;min-width:0;margin:0!important}
.lunch-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.lunch-weekday{text-align:center;font:700 12px/1.3 Arial,sans-serif;padding:8px 0;background:#e4f2ee}.lunch-calendar-day{min-width:0;min-height:64px;border:1px solid #c9d8d4;border-radius:5px;padding:6px 2px;background:#fff;color:#253f44;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:flex-start;font:17px/1.2 Cubby,sans-serif}.lunch-calendar-day.has-menu{background:#fff3d6;border:2px solid #e67419}.lunch-calendar-day>span{font:10px/1.1 Arial,sans-serif;color:#745017}.lunch-calendar-day:hover{background:#e0f2f0}.lunch-empty{background:#f4f6f4;border-radius:4px}
@media(max-width:600px){.lunch-bulletin{padding:12px 10px 20px;border-width:6px}#app .lunch-sticky{padding:19px 13px}.lunch-calendar-day{min-height:58px}.lunch-month-nav h3{font-size:20px}.lunch-weekday{font-size:10px}}
@media print{#app .rules-letterhead:before{display:none!important}#app .rules-letterhead{border:0!important}.rules-bulletin{width:100%!important}#app .rules-letterhead{max-width:none!important}}
/* Portrait rules sheet with explicit teacher-controlled alignment and colors. */
#app .rules-letterhead{width:100%;max-width:640px;aspect-ratio:8.5/11;text-align:var(--rules-align,center)!important;color:var(--rules-color,#24494c)!important}
#app .rules-letterhead>header{text-align:var(--rules-align,center)!important}
#app .rules-letterhead :is(p,h3,footer){text-align:var(--rules-align,center)!important;color:var(--rules-color,#24494c)!important}
#app .rules-letterhead h2{color:var(--rules-title-color,#24494c)!important;text-align:var(--rules-align,center)!important}
#app .rules-letterhead .individual-class-rules li{justify-content:var(--rule-align,center);text-align:var(--rule-align,center)}
#app .rules-letterhead .individual-class-rules .rule-bullet{color:inherit}
.rules-style-editor input[type=color],.rule-builder-row input[type=color]{min-height:44px;width:100%;max-width:160px;padding:4px}
@page rulesSheet{size:letter portrait;margin:.65in}
@media print{.rules-letterhead{page:rulesSheet;aspect-ratio:auto!important}}

/* Small, undistorted cork tiles, teal paper outlines and pink pins. */
#app .lunch-bulletin{background-color:#c7a275!important;background-image:url('art/classroom-v17/cork.svg')!important;background-size:240px 240px!important;background-position:0 0!important;background-repeat:repeat!important;background-attachment:scroll!important;border-color:#a77b4e!important}
#app .lunch-sticky{border-color:#14636b!important}
#app .lunch-sticky:before{width:17px;height:17px;background:radial-gradient(circle at 32% 25%,#ffe9f1 0 12%,#e86a9b 35%,#af3569 85%)!important;border-color:#9d2d5b!important;box-shadow:0 5px 0 -2px #ae3567,1px 7px 2px #61233f35!important}
#app .lunch-calendar-day.has-menu{border-color:#14636b;background:#e2f4ef}
.lunch-food-doodles{display:flex;justify-content:space-around;align-items:center;gap:18px;width:100%;max-width:530px;margin:8px auto 20px;padding:0 10px;pointer-events:none}
.lunch-food-doodles img{display:block;width:68px;height:74px;object-fit:contain;filter:drop-shadow(0 1px 0 #fff8)}
.lunch-food-doodles .food-doodle-0{transform:rotate(-9deg)}.lunch-food-doodles .food-doodle-1{transform:rotate(7deg)}.lunch-food-doodles .food-doodle-2{transform:rotate(-5deg)}
@media(max-width:600px){.lunch-food-doodles{gap:12px;margin:5px auto 16px}.lunch-food-doodles img{width:53px;height:61px}}
@media print{.lunch-food-doodles{display:none!important}}
#app .rules-letterhead{border-width:6px!important;border-color:#12616b!important}
#app .rules-letterhead :is(p,footer){font-size:var(--rules-text-size,18px)!important;line-height:1.6!important}
#app .rules-letterhead h3{font-size:calc(var(--rules-text-size,18px) * 1.1)!important}
#app .rules-letterhead h2{font-size:var(--rules-title-size,28px)!important}
#app .rules-letterhead .individual-class-rules li{font-size:var(--individual-rule-size,var(--rules-text-size,18px))!important;line-height:1.55}
.rules-kindness-graphic{display:flex;justify-content:center;margin:0 auto 16px;max-width:100%;pointer-events:none}.rules-kindness-graphic img{width:125px;height:118px;object-fit:contain;max-width:100%}
#app .rules-chalk-banner{position:relative;box-sizing:border-box;display:block;width:calc(100% - 32px);max-width:680px;margin:24px auto 28px;padding:35px 28px 30px;background:url('art/classroom-v17/chalk-heading.svg') center/100% 100% no-repeat!important;border:0!important;box-shadow:0 3px 7px #26352d2a;text-align:center;color:#fffef6}
#app .rules-chalk-banner h1{font:700 clamp(27px,5vw,39px)/1.2 Cubby,sans-serif!important;color:#fffef6!important;margin:0 0 12px;text-shadow:none!important}
#app .rules-chalk-banner p{font:400 19px/1.3 Cubby,sans-serif!important;color:#fffef6!important;margin:15px 0 0}
.rules-chalk-line{height:5px;max-width:280px;width:65%;margin:0 auto;background:#edd473;border-radius:50%;transform:rotate(-1deg)}.rules-chalk-star{position:absolute;right:22px;top:17px;color:#edd473;font:32px/1 Cubby,sans-serif;transform:rotate(10deg)}
@media(max-width:600px){#app .rules-chalk-banner{padding:32px 23px 28px}.rules-chalk-star{right:15px;top:11px;font-size:25px}.rules-kindness-graphic img{width:100px;height:94px}}
@media print{#app .rules-letterhead{border:0!important}.rules-kindness-graphic img{width:90px;height:85px}}

#app .rule-edit-page{max-width:680px;margin:0 auto;padding:clamp(12px,4vw,22px);color:#29334a;font:400 1rem/1.45 system-ui,sans-serif}
#app .rule-edit-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:14px;border:1px solid #d8ccea;border-radius:16px;background:linear-gradient(115deg,#faf6ff,#eaf9f5)}
#app .rule-edit-heading h1{margin:0;color:#382754;font:750 clamp(20px,5.8vw,28px)/1.2 system-ui,sans-serif}
#app .rule-edit-heading p{margin:5px 0 0;color:#515b70;font-size:.88rem}
#app .rule-edit-heading img{width:50px;height:58px;flex:none;object-fit:contain}
#app .rule-edit-page form[data-form=classRules]{display:grid;gap:10px;margin:0;padding:0;border:0;background:none;box-shadow:none}
#app .rule-edit-page :is(label,h2,summary,button,input,select,textarea){font-family:inherit}
#app .rule-editor-main,#app .rule-editor-options,#app .rule-edit-page .rule-builder-row{padding:12px;border:1px solid #ddd3eb;border-radius:13px;background:#fff}
#app .rule-editor-main h2{font-size:1.06rem;margin:0 0 10px;color:#36284e}
#app .rule-editor-main [data-rule-rows]:empty{display:none}
#app .rule-edit-page .rule-builder-row{display:grid;gap:6px;margin:0 0 8px;background:#fcfaff}
#app .rule-edit-page label{display:block;margin:0;color:#39344e;font-size:.88rem;font-weight:650}
#app .rule-editor-main [data-add-rule]{margin:0 0 10px}
#app .rule-edit-page :is(input,select,textarea){font-size:1rem;min-height:44px}
#app .rule-edit-page textarea{width:100%;resize:vertical}
#app .rule-editor-options summary,#app .rule-row-style summary{cursor:pointer;color:#523682;font-weight:700}
#app .rule-row-style summary{font-size:.84rem}
#app .rule-option-fields{display:grid;gap:9px;margin-top:10px}
#app .rule-editor-sample{margin-top:9px;background:#f8f5fc}
#app .rule-editor-sample button{margin-top:8px}
#app .rule-editor-sample p{margin:6px 0 0;font-size:.84rem}
#app .rule-editor-actions{display:flex;flex-wrap:wrap;gap:8px}
#app .rule-editor-actions button{min-height:44px;margin:0;padding:9px 15px;border-radius:10px;font-weight:700}
