.participation-page{display:grid;gap:.7rem}
.participation-form{display:grid;gap:.85rem;margin:.75rem 0}
.participation-form label{display:block}
.participation-form input:not([type=radio]),.participation-form select,.participation-form textarea{width:100%;margin-top:.25rem}
.participation-food{min-width:0;margin:.45rem 0;padding:.65rem .8rem;border:1px solid #e2dce8;border-radius:14px;background:#fff}
.participation-food legend{padding:0 .25rem;font-weight:700;overflow-wrap:anywhere}
.participation-food p{margin:.15rem 0 .45rem;overflow-wrap:anywhere}
.participation-food-icon{display:inline-grid;place-items:center;background:#fff0df;border-radius:10px;margin-right:.5rem;padding:.25rem;font-size:1.2rem}
.participation-policy{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.35rem}
.participation-policy label,.participation-choice{display:flex!important;align-items:center;gap:.35rem;padding:.48rem;background:#f7f2fa;border-radius:9px;font-size:.88rem}
.participation-choice{margin-block:.35rem}
.participation-form input[type=radio]{width:auto;flex:none;margin:0;accent-color:#713db3}
#app .participation-menu-art{display:block;width:100%;height:100%;background-image:url('/art/menu-v37/allergy-and-vote.webp');background-repeat:no-repeat;background-size:200% auto}
#app[data-reference-layout=menu] .menu-square>.participation-menu-art.reference-menu-art{background-image:url('/art/menu-v37/allergy-and-vote.webp')!important;background-repeat:no-repeat!important;background-size:200% auto!important}
#app .participation-allergy-art,#app[data-reference-layout=menu] .menu-square>.participation-allergy-art.reference-menu-art{background-position:left center!important}
#app .participation-vote-art,#app[data-reference-layout=menu] .menu-square>.participation-vote-art.reference-menu-art{background-position:right center!important}
.allergy-settings{padding:clamp(12px,4vw,24px)}
.allergy-settings>p{line-height:1.55;color:#625b70}
.allergy-editor-row{position:relative;min-width:0;margin:0;padding:3.7rem .65rem .65rem;border:1px solid #e4dfe8;border-radius:15px;background:#fff}
.allergy-editor-row legend{position:absolute;top:.6rem;left:.65rem;max-width:calc(100% - 1.3rem);font-weight:700}
.allergy-settings .participation-policy{grid-template-columns:auto 1fr 1.35fr;gap:.15rem;padding:.2rem;border-radius:12px;background:#f3f0f7}
.allergy-settings .participation-policy label{position:relative;display:block!important;padding:0;background:none;text-align:center;font-size:.88rem}
.allergy-settings .participation-policy input{position:absolute;opacity:0;inset:0}
.allergy-settings .participation-policy span{display:grid;place-items:center;min-height:48px;height:100%;padding:.35rem .4rem;border-radius:9px;color:#554d64;line-height:1.15;cursor:pointer}
.allergy-settings .participation-policy input:checked+span{background:white;color:#332a44;box-shadow:0 2px 5px #32264024;font-weight:700}
.allergy-settings .participation-policy input:focus-visible+span{outline:2px solid #713db3;outline-offset:-2px}
.allergy-settings [data-custom-allergens]{display:grid;gap:.65rem}
.allergy-settings [data-custom-allergens]:empty{display:none}
.allergy-settings [data-custom-allergens] .allergy-editor-row{padding-top:2.5rem}
.allergy-settings [data-custom-allergens] .participation-policy{margin:.5rem 0}
.allergy-custom-button{justify-self:start}
.allergy-settings .allergy-picture-toggle{display:flex;gap:.55rem;align-items:flex-start}
.allergy-settings .allergy-picture-toggle input[type=checkbox]{width:1.1rem;height:1.1rem;flex:none;accent-color:#713db3}
.allergy-family-list{list-style:none;padding:0;margin:0;display:grid;gap:.55rem}
.allergy-family-list li{display:flex;align-items:center;border:1px solid #e4dfe8;border-radius:12px;padding:.6rem .75rem;background:#fff}
.allergy-family-list small{display:block;color:#554d64}
.allergy-family-note{white-space:pre-wrap;overflow-wrap:anywhere}

#app[data-page=classAllergies] :is(.allergy-banner,.allergy-settings,.allergy-family-list,.allergy-family-note){font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#253248}
#app[data-page=classAllergies] :is(.allergy-banner h1,.allergy-banner p,.allergy-settings button,.allergy-settings input,.allergy-settings textarea,.allergy-settings legend){font-family:inherit}
#app[data-page=classAllergies] .allergy-banner{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,36%);align-items:center;gap:.4rem;margin:1rem 0;padding:.9rem clamp(.85rem,4vw,1.3rem);border:1px solid #d6c6eb;border-radius:22px;background:linear-gradient(115deg,#fbfaff 10%,#f0e9fe 66%,#fcf2de);box-shadow:0 6px 18px #4a367514}
#app[data-page=classAllergies] .allergy-banner h1{font-size:clamp(1.3rem,5.5vw,2rem);font-weight:760;line-height:1.08;letter-spacing:-.025em;margin:0;color:#38265b}
#app[data-page=classAllergies] .allergy-banner p{font-size:.92rem;margin:.45rem 0 0;color:#51466a}
#app .allergy-banner-art{width:min(100%,124px);aspect-ratio:1;justify-self:end;display:grid;place-items:center;border:1px solid #fff;border-radius:50%;background:radial-gradient(circle,#fffaf0 42%,#f8e8c5 75%);box-shadow:0 0 0 4px #ffffff60,0 0 16px #dbb17955}
#app .allergy-banner-art .participation-menu-art{width:91%;height:91%;filter:drop-shadow(0 3px 3px #79471835)}
#app[data-page=classAllergies] .allergy-settings{padding:0;font-size:1rem}
#app[data-page=classAllergies] .allergy-settings>p{font-size:.94rem;margin:.1rem 0 .55rem;color:#465468}
#app .allergy-policy-help{font-size:.87rem;color:#453865;background:#faf7ff;border-radius:10px;padding:.55rem .75rem}
#app .allergy-policy-help summary{cursor:pointer;font-weight:650}
#app .allergy-policy-help p{margin:.45rem 0 .15rem;line-height:1.5}
#app[data-page=classAllergies] .allergy-editor-row,#app[data-page=classAllergies] .allergy-family-list li{border-color:#c8b7e4;border-radius:17px;box-shadow:0 0 0 2px #c8a8f328,0 2px 11px #a176d42b}
#app[data-page=classAllergies] .allergy-editor-row:has(input[value=lunch]:checked){border-color:#cda65a;box-shadow:0 0 0 2px #dcb76a42,0 0 12px #e6bf673b}
#app[data-page=classAllergies] .allergy-editor-row:has(input[value=restricted]:checked){border-color:#c181a9;box-shadow:0 0 0 2px #dc9cc446,0 0 12px #e399c449}
#app[data-page=classAllergies] .participation-policy input:checked+span{background:#fff;color:#36295c;box-shadow:inset 0 0 0 1px #b599dd,0 0 8px #a982ce43}
#app[data-page=classAllergies] .participation-policy input:is([value=lunch],[value=restricted]):checked+span{color:#fff;background:#604093;box-shadow:0 0 9px #9366ca5e}

#app:is([data-page=classPolls],[data-page=ptoPolls]) :is(.poll-banner,.participation-page){
 font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#29324a
}
#app:is([data-page=classPolls],[data-page=ptoPolls]) :is(.poll-banner h1,.participation-page h2,.participation-page h3,.participation-page summary,.participation-page legend,.participation-page button,.participation-page input,.participation-page select,.participation-page textarea){font-family:inherit}
#app .poll-banner{display:grid;grid-template-columns:1fr minmax(85px,32%);align-items:center;gap:.75rem;margin:1rem 0;padding:clamp(.85rem,4vw,1.4rem);border:1px solid #c8bee5;border-radius:22px;background:linear-gradient(112deg,#fbfaff,#f1e9fc 60%,#dcf4f1);box-shadow:0 6px 18px #48377b17}
#app .poll-banner h1{margin:0;color:#3d285e;font-size:clamp(1.4rem,6vw,2rem);line-height:1.12;letter-spacing:-.02em}
#app .poll-banner p{margin:.45rem 0 0;color:#514667;font-size:.94rem}
#app .poll-banner-art{aspect-ratio:1;width:min(100%,116px);justify-self:end;border-radius:50%;background:#ffffff86;box-shadow:0 0 0 4px #fff6,0 0 18px #8c67cb36}
#app .poll-card,#app .poll-editor{min-width:0;padding:clamp(.8rem,4vw,1.25rem);border:1px solid #d7c9ed;border-radius:17px;background:#fff}
#app .poll-card{box-shadow:0 0 0 2px #a47dd41c,0 3px 16px #8d62bd25}
#app .poll-card-finished{border-color:#ab90d8;box-shadow:0 0 0 3px #b797e136,0 0 22px #ad84df4a}
#app .poll-card h2{font-size:clamp(1.15rem,4.7vw,1.45rem);margin:.55rem 0;overflow-wrap:anywhere}
#app .poll-card h3{font-size:1rem;margin:.65rem 0;color:#3d285e}
#app .poll-status{display:flex;flex-wrap:wrap;gap:.36rem}
#app .poll-status span{border-radius:999px;background:#f1ebfa;padding:.3rem .55rem;color:#524169;font-size:.72rem;font-weight:650}
#app .poll-status .poll-open{background:#ddf5ed;color:#1b604e}
#app .poll-status .poll-closed{background:#ece8f4;color:#56476d}
#app .poll-editor>summary{cursor:pointer;color:#503482;font-size:1rem;font-weight:700;min-height:24px}
#app .poll-question-editor,#app .poll-ballot-question{min-width:0;margin:0;padding:.75rem;border:1px solid #e3dbee;border-radius:12px}
#app .poll-question-editor{margin-bottom:.5rem}
#app .poll-question-editor label+label{margin-top:.6rem}
#app .poll-ballot-question legend,#app .poll-question-editor legend{padding:0 .25rem;font-weight:700;overflow-wrap:anywhere}
#app .poll-help{font-size:.84rem;color:#574e66;margin:.35rem 0}
#app label .poll-help{display:block}
#app .poll-choice{display:flex;gap:.55rem;align-items:center;min-height:44px;margin:.3rem 0;padding:.5rem .65rem;border:1px solid #e5d9f1;border-radius:9px;background:#faf7ff;overflow-wrap:anywhere}
#app .poll-choice:has(input:checked){border-color:#8358b9;background:#f1e8ff}
#app .poll-results{padding-top:.15rem}
#app .poll-results fieldset+fieldset{margin-top:.6rem}
#app .poll-results ul{list-style:none;padding:0;margin:.45rem 0;display:grid;gap:.65rem}
#app .poll-result-label{display:flex;justify-content:space-between;align-items:baseline;gap:.55rem;margin-bottom:.25rem;overflow-wrap:anywhere;font-size:.9rem}
#app .poll-result-label span:last-child{flex:none;font-variant-numeric:tabular-nums;font-weight:700;color:#4c326b}
#app .poll-result-label small{color:#30644f;font-weight:650}
#app .poll-result-track{height:.43rem;border-radius:999px;background:#eee7f6;overflow:hidden}
#app .poll-result-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#7041ab,#22998f)}
#app .poll-confirmation{color:#1b604e;font-size:.88rem;font-weight:650;margin:.55rem 0}
#app .poll-own-answers{margin:.35rem 0;padding-left:1.3rem;overflow-wrap:anywhere}
#app .poll-actions{margin-top:.8rem;display:grid;gap:.55rem}
#app .poll-actions .poll-editor{padding:.75rem;background:#faf7ff}
#app .poll-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#app .room-stage .classroom-participation-signs{position:absolute;z-index:16;inset:auto 0 0;display:flex;justify-content:center;gap:4px;pointer-events:none}
#app .room-stage .classroom-participation-signs button{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;pointer-events:auto}
#app .room-stage .classroom-participation-signs button:focus-visible{outline:2px solid #6638ab;outline-offset:-2px;background:#fff8}
#app .room-stage .classroom-participation-signs .participation-menu-art{width:36px;height:36px;border-radius:50%;background-color:#fff9ed;box-shadow:0 1px 4px #45315662;pointer-events:none}

#app .poll-card.poll-dropdown{padding:0;overflow:hidden}
#app .poll-dropdown>summary{display:flex;align-items:center;justify-content:space-between;gap:.7rem;min-height:53px;padding:.65rem .85rem;list-style:none;color:#29233d;font-size:1rem;font-weight:700;cursor:pointer}
#app .poll-dropdown>summary::-webkit-details-marker{display:none}
#app .poll-dropdown>summary span{min-width:0;overflow-wrap:anywhere}
#app .poll-dropdown>summary:focus-visible{outline:2px solid #744ca9;outline-offset:-3px;border-radius:inherit}
#app .poll-dropdown[open]>summary{background:linear-gradient(110deg,#f4ebfc,#f2faf8)}
#app .poll-dropdown-chevron{position:relative;display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:9px;background:#ede6f9;color:#563789}
#app .poll-dropdown-chevron::before{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg)}
#app .poll-dropdown[open] .poll-dropdown-chevron::before{transform:translateY(2px) rotate(225deg)}
#app .poll-dropdown-body{padding:.8rem .85rem 1rem;border-top:1px solid #e9dff1}

#app[data-page=tankView]>.app-page-footer,#app[data-page=tankView]>.classroom-save-status{display:none}

#app[data-page=home] .allergy-home{margin:8px 12px;padding:8px 10px;border:1px solid #decdea;border-radius:10px;background:#fff;color:#34304a;font:400 12px/1.35 system-ui,sans-serif}
#app[data-page=home] .allergy-home h2{margin:0 0 4px;color:#563482;font:700 14px/1.25 system-ui,sans-serif}
#app[data-page=home] .allergy-home .allergy-family-list{gap:0}
#app[data-page=home] .allergy-home .allergy-family-list li{padding:4px 0;border:0;border-radius:0;background:transparent}
#app[data-page=home] .allergy-home .allergy-family-list li+li{border-top:1px solid #eee6f4}
#app[data-page=home] .allergy-home .allergy-family-list li>span:last-child{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 7px}
#app[data-page=home] .allergy-home .allergy-family-list small{font:inherit;color:#554d64}
#app[data-page=home] .allergy-home .participation-food-icon{font:inherit;padding:2px;margin-right:5px}
#app[data-page=home] .allergy-home .allergy-family-note{margin:4px 0 0;font:inherit}
