/* Dashboard surfaces inherit saved classroom colors and fonts. */
*{box-sizing:border-box}
body[data-page="home"]{margin:0;font-family:Jua,system-ui,sans-serif;font-size:1rem;line-height:1.65;background:var(--paper);color:var(--ink)}
body[data-page="home"]>.app{width:100%;max-width:none;padding:0}
body[data-page="home"] a{color:inherit;text-decoration:none}
body[data-page="home"] :is(h1,h2,p){margin:0;overflow-wrap:anywhere;word-break:keep-all}
body[data-page="home"] :is(h1,h2){font-weight:500;letter-spacing:-.035em;line-height:1.35}
body[data-page="home"] :focus-visible{outline:3px solid var(--green);outline-offset:4px}
body[data-page="home"] svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
body[data-page="home"] .home-symbols{position:absolute;width:0;height:0;overflow:hidden}
.home-skip{position:fixed;top:-100px;left:16px;padding:12px 18px;background:var(--panel,#fff);z-index:100;border-radius:8px}.home-skip:focus{top:12px}
body[data-page="home"] .site-header{display:flex;flex-direction:column;align-items:stretch;gap:18px;margin:0;padding:20px max(24px,calc((100vw - 1360px)/2));background:var(--panel,#fff);border-bottom:1px solid var(--line)}
.home-brand-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
.home-brand{display:inline-flex;align-items:center;gap:10px;font-size:1.5rem;line-height:1.25;letter-spacing:-.04em;min-height:44px}
.home-brand>span:first-child{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#fff;background:var(--green);flex-shrink:0}
.home-dot{color:var(--brand-dot,#d47142);margin-left:3px}.home-brand .home-dot{margin-left:-8px}
.home-teacher{font-size:.875rem;color:var(--muted)}
body[data-page="home"] .site-nav{gap:6px}
body[data-page="home"] .site-nav>a{border-color:transparent;background:transparent;color:var(--muted);border-radius:9px;font-size:.875rem}
body[data-page="home"] .site-nav>a[aria-current="page"],body[data-page="home"] .site-nav>a:hover{background:var(--green-soft);border-color:var(--accent-border);color:var(--green-dark)}
#homeMain{width:min(1280px,calc(100% - 48px));margin:36px auto 0}
.home-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}
.home-overline{color:var(--green-dark);font-size:.875rem;margin-bottom:10px!important}
.home-heading h1{font-size:clamp(1.7rem,3vw,2.25rem);margin-bottom:10px!important}
.home-heading>div>p:last-child{color:var(--muted)}
.home-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:10px 16px;background:var(--panel,#fff);color:var(--ink);font:inherit;font-size:.875rem;cursor:pointer;flex-shrink:0}
.home-button:hover{border-color:var(--green);background:var(--accent-tint)}.home-button:disabled{cursor:wait;opacity:.65}
.home-dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:24px;align-items:start}
.home-main-column,.home-aside{display:flex;flex-direction:column;gap:24px;min-width:0}
#homeMovableCards{display:flex;flex-direction:column;gap:24px;min-width:0}
.home-card-move{display:flex;gap:3px;margin-left:auto;flex-shrink:0}.home-card-move button{display:grid;place-items:center;width:24px;min-height:24px;padding:0;border:1px solid var(--line);border-radius:5px;font:inherit;font-size:.875rem;line-height:1;background:var(--panel,#fff);color:var(--green-dark);cursor:pointer}.home-card-move button:disabled{opacity:.3;cursor:default}
.home-sticky .home-surface-heading{margin-bottom:10px}.home-note-toolbar,.home-note-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.home-note-toolbar .home-button{min-height:30px;padding:3px 9px;border-radius:6px}.home-note-toolbar .home-button[aria-pressed=true]{background:var(--green-soft);border-color:var(--green)}
.home-note-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:230px;overflow-y:auto;padding:3px;margin-bottom:16px}.home-note-list>p{grid-column:1/-1}.home-note-item{min-height:48px;padding:10px 12px;text-align:left;overflow-wrap:anywhere;border:1px solid #dfce91;border-radius:8px;background:#fffdf2;color:#493f23;font:inherit;font-size:.875rem;cursor:pointer}.home-note-item[aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);background:#fff3bd}
.home-note-list.is-grid{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:14px;max-height:none;overflow:visible;padding:4px;margin-bottom:12px}.home-note-list.is-grid .home-note-item{display:flex;align-items:flex-start;min-height:180px;max-height:240px;padding:18px 16px;overflow:hidden;white-space:pre-wrap;border:1px solid #e4cc79;border-top:5px solid #e8d797;border-radius:3px;background:#fff0ab;color:#493f23;font-size:1rem;line-height:1.65;box-shadow:2px 4px 7px #4d3c1617}.home-note-list.is-grid .home-note-item:nth-child(4n+2){background:#e3f0fb;border-color:#c0d7e8}.home-note-list.is-grid .home-note-item:nth-child(4n+3){background:#fae1e6;border-color:#e8bdc7}.home-note-list.is-grid .home-note-item:nth-child(4n+4){background:#e3f2dc;border-color:#c2d8b7}.home-note-list.is-grid .home-note-item[aria-pressed=true]{outline:2px solid var(--green);outline-offset:1px}.home-note-list.is-grid .home-note-item:hover{box-shadow:2px 5px 10px #4d3c1629}
.home-note-editor-heading{justify-content:flex-end;gap:4px;margin-bottom:4px}#homeNoteDelete,#homeNoteEditorClose{border:0;padding:3px 6px;min-height:26px;background:transparent;color:#943f30;font:inherit;font-size:.875rem;cursor:pointer}#homeNoteEditorClose{color:var(--muted)}.home-note-editor-heading .home-note-label{margin:0}
.home-note-editor-heading{flex-wrap:wrap;row-gap:8px}.home-note-colors{display:flex;flex-wrap:wrap;gap:5px;margin-right:auto}.home-note-colors .home-note-swatch{width:26px;height:26px;min-height:26px;padding:0;border:1px solid;border-radius:50%;font:inherit;font-size:.875rem;line-height:1;cursor:pointer}.home-note-swatch[aria-pressed=true]{outline:2px solid var(--green);outline-offset:2px}.home-note-swatch:disabled{opacity:.5;cursor:default}.home-note-custom{display:inline-flex;align-items:center;gap:4px;margin:0 8px 0 4px;font-size:.875rem;color:var(--muted)}.home-note-custom input{width:28px;height:28px;min-height:28px;padding:2px;border:1px solid var(--line);border-radius:5px;cursor:pointer}.home-note-custom input:disabled{cursor:default;opacity:.5}
@media print{.home-note-colors,.home-note-custom{display:none!important}}
.home-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-ui-mode="dark"] .home-sticky{background:var(--panel);color:var(--ink)}html[data-ui-mode="dark"] .home-sticky :is(p,small,.home-note-toolbar>span){color:var(--muted)}html[data-ui-mode="dark"] .home-note-item[aria-pressed=true]{background:var(--green-soft);color:var(--ink)}
html[data-ui-mode="dark"] .home-note-list.is-grid .home-note-item{background:#51482b;border-color:#897647;color:#fff5cf}html[data-ui-mode="dark"] .home-note-list.is-grid .home-note-item:nth-child(4n+2){background:#283f52;border-color:#54738b;color:#e4f3ff}html[data-ui-mode="dark"] .home-note-list.is-grid .home-note-item:nth-child(4n+3){background:#50333d;border-color:#926173;color:#ffe7ef}html[data-ui-mode="dark"] .home-note-list.is-grid .home-note-item:nth-child(4n+4){background:#30462b;border-color:#638457;color:#eaf9e1}
@media(max-width:520px){.home-note-list{grid-template-columns:1fr}[data-home-card] .home-surface-heading{flex-wrap:nowrap;gap:8px}[data-home-card] .home-surface-heading>span{display:none}}
@media print{.home-card-move,.home-note-toolbar,#homeNoteDelete,#homeNoteEditorClose{display:none!important}.home-note-list.is-grid .home-note-item{max-height:none;overflow:visible;break-inside:avoid}}
.home-class-card{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:220px;background:var(--green);border-radius:18px;padding:30px 34px;color:white}
.home-class-content{min-width:0;flex:1}
.home-class-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#fff;font-size:.875rem}
.home-class-card h2{font-size:clamp(1.75rem,3vw,2.25rem);margin:10px 0!important}.home-class-card p{font-size:1rem;color:#fff}
.home-class-link{display:inline-flex;align-items:center;gap:18px;min-height:44px;margin-top:15px;border-bottom:1px solid #ffffff70;font-size:1rem;color:#fff!important}
body[data-page="home"] .home-class-icon{width:86px;height:86px;opacity:.25;stroke-width:1}
.home-class-picker{display:flex;gap:8px;align-items:center;font-size:.875rem}
.home-class-picker select{width:100%;max-width:210px;min-height:44px;min-width:0;border:1px solid #ffffff80;border-radius:8px;padding:8px;color:var(--ink);background:var(--panel,#fff);font:inherit}
.home-class-card:has(.home-class-picker:not([hidden])) .home-class-icon{display:none}
.home-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.home-stat{position:relative;min-width:0;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--panel,#fff)}
.home-stat>span:first-child{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:.875rem}.home-stat svg{width:19px!important;height:19px!important}
.home-stat strong{display:block;font-size:2rem;line-height:1.3;margin-top:14px;font-weight:500;font-variant-numeric:tabular-nums;padding-right:12px}
.home-stat small{font-size:.875rem;font-weight:400;margin-left:6px;color:var(--muted)}
.home-stat-arrow{position:absolute;right:18px;bottom:22px;color:var(--green)}.home-stat:hover{border-color:var(--green)}
.home-surface{min-width:0;padding:24px;border:1px solid var(--line);border-radius:17px;background:var(--panel,#fff)}
.home-surface h2{font-size:1.25rem}
.home-surface-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.home-surface-heading>a,.home-surface-heading>span{font-size:.875rem;color:var(--muted)}
.home-surface-heading>a{display:inline-flex;align-items:center;gap:8px;min-height:44px;flex-shrink:0}
.home-quick-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-quick-tools>a{display:flex;align-items:center;flex-direction:column;gap:10px;text-align:center;padding:10px 0;border-radius:10px;min-width:0}
.home-quick-tools>a:hover{background:var(--accent-tint)}
.home-quick-tools strong{font-size:1rem;font-weight:500;word-break:keep-all}
.home-quick-tools>a>span:last-child{font-size:.875rem;color:var(--muted);word-break:keep-all}
.home-feature-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;margin-bottom:2px}
body[data-page="home"] .home-feature-icon svg{width:26px;height:26px}
.home-feature-icon.green{background:#eaf3ef;color:#2f7564}.home-feature-icon.blue{background:#edf2fb;color:#517bad}.home-feature-icon.orange{background:#fff1e7;color:#bf692b}.home-feature-icon.purple{background:#f1ecfb;color:#7b60af}
.home-empty{font-size:.875rem;color:var(--muted);padding:16px 0;line-height:1.9;min-height:80px}
.home-assessment{padding:15px 0;border-top:1px solid var(--line)}.home-assessment:first-child{border-top:0;padding-top:0}
.home-assessment-meta{color:var(--muted);font-size:.875rem;margin-bottom:6px!important}
.home-assessment a{display:block;min-height:44px;font-size:1rem;word-break:keep-all;overflow-wrap:anywhere}
.home-assessment a:hover{text-decoration:underline;text-underline-offset:4px}
.home-assessment-more{margin-top:12px}.home-assessment-more>summary{min-height:44px;padding:10px 12px;border-radius:8px;background:var(--accent-tint);color:var(--green-dark);font-size:.875rem;cursor:pointer}
.home-assignment{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px 0;border-top:1px solid var(--line)}
.home-assignment:first-child{border-top:0;padding-top:0}.home-assignment .home-feature-icon{width:40px;height:44px}
.home-assignment-title{display:block;font-size:1rem;overflow-wrap:anywhere;word-break:keep-all}
.home-assignment-meta{color:var(--muted);font-size:.875rem;margin-top:4px!important}
.home-assignment-status{font-size:.875rem;color:var(--green-dark);background:var(--accent-tint);padding:4px 8px;border-radius:6px;white-space:nowrap}
.home-progress{display:block;width:100%;max-width:200px;height:5px;margin-top:8px;accent-color:var(--green);border:0;border-radius:3px;overflow:hidden;background:var(--green-soft)}
.home-progress::-webkit-progress-bar{background:var(--green-soft)}.home-progress::-webkit-progress-value{background:var(--green)}.home-progress::-moz-progress-bar{background:var(--green)}
.home-agenda-item{display:flex;align-items:flex-start;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.home-agenda-item:first-child{padding-top:4px}.home-date-tile{display:flex;align-items:center;flex-direction:column;flex-shrink:0;min-width:48px;border-radius:9px;background:var(--accent-tint);padding:5px 9px;color:var(--green-dark)}
.home-date-tile>span{font-size:.875rem}.home-date-tile>strong{font-size:1.1rem;font-weight:500}
.home-agenda-item a{display:block;overflow-wrap:anywhere}.home-agenda-item p{font-size:.875rem;color:var(--muted);margin-top:4px!important}
.home-subtle-link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-top:15px;font-size:.875rem;color:var(--green-dark)!important}
.home-sticky{background:#fff8d9;border-color:#e6d59e}.home-sticky textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:140px;border:0;border-radius:8px;padding:12px;background:#ffffff60;color:#493f23;font:inherit;line-height:1.7}.home-sticky textarea:focus-visible{outline:2px solid var(--green)}.home-note-label{display:block;margin-bottom:8px;font-size:.875rem}.home-sticky p,.home-sticky small{font-size:.8rem;color:#6c5c33}.home-sticky p{min-height:1.5em;margin:8px 0}.home-period{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;border-bottom:1px solid var(--line);font-size:.875rem}.home-period small{font-size:.75rem;color:var(--muted)}.home-period.is-now{background:var(--green-soft);border-radius:8px}.home-period strong{overflow-wrap:anywhere}.home-timetable .home-surface-heading{margin-bottom:12px}
.home-guide ol{list-style:none;padding:0;margin:24px 0}.home-guide li{display:flex;gap:14px;align-items:flex-start;margin:20px 0}
.home-guide li>span{display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;border-radius:50%;background:var(--green-soft);color:var(--green-dark);font-size:.875rem}
.home-guide li a{display:inline-block;font-size:1rem;min-height:30px}.home-guide li p{font-size:.875rem;color:var(--muted);line-height:1.9}
.home-guide>.home-button{width:100%}.home-settings-link{display:flex;justify-content:space-between;gap:12px;padding:0 12px;align-items:center;min-height:44px;color:var(--muted)!important;font-size:.875rem}
.home-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0 40px;color:var(--muted);font-size:.875rem;min-height:96px}
body[data-page="home"] [hidden]{display:none!important}
html[data-ui-mode="dark"] body[data-page="home"]{background:var(--paper)}
html[data-ui-mode="dark"] .home-feature-icon{background:var(--green-soft);color:var(--green-dark)}
@media(max-width:1000px){.home-dashboard{grid-template-columns:minmax(0,1fr) 285px;gap:18px}.home-class-card{padding:28px}.home-stats{gap:12px}.home-stat{padding:18px 14px}.home-surface{padding:21px}.home-quick-tools{gap:6px}}
@media(max-width:760px){body[data-page="home"] .site-header{padding:16px;gap:14px}#homeMain{width:calc(100% - 32px);margin-top:26px}.home-dashboard{grid-template-columns:1fr}.home-aside{display:grid;grid-template-columns:1fr 1fr;align-items:start}.home-settings-link{grid-column:1/-1}.home-teacher{display:none}.home-heading{gap:12px}.home-heading>.home-button{padding:10px}.home-brand{font-size:1.35rem}}
@media(max-width:520px){.home-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px}.home-aside{display:flex}.home-class-card{padding:24px}.home-class-picker{width:100%;align-items:start;flex-direction:column}.home-class-picker select{max-width:100%}.home-stats{gap:8px}.home-stat{padding:16px 10px}.home-stat>span:first-child{align-items:flex-start;flex-direction:column;gap:7px}.home-stat strong{font-size:1.65rem}.home-stat-arrow{right:10px;bottom:18px}.home-quick-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.home-surface{padding:20px}.home-surface-heading{flex-wrap:wrap;margin-bottom:16px}.home-assignment{grid-template-columns:36px minmax(0,1fr);gap:10px}.home-assignment-status{grid-column:2;justify-self:start}.home-footer{align-items:start;flex-direction:column}}
@media print{.site-nav,.home-skip,.home-footer button,#siteViewControls{display:none!important}.home-dashboard{grid-template-columns:2fr 1fr}.home-surface,.home-class-card,.home-stats{break-inside:avoid}}
.home-timetable-mode{display:flex;gap:4px;margin-bottom:12px}.home-timetable-mode button{min-height:30px;padding:3px 9px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--muted);font:inherit;font-size:.875rem;cursor:pointer}.home-timetable-mode button[aria-pressed=true]{color:var(--green-dark);border-color:var(--green);background:var(--green-soft)}.home-mini-timetable{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.875rem;line-height:1.5}.home-mini-timetable :is(th,td){padding:8px 3px;border:1px solid var(--line);text-align:center;overflow-wrap:anywhere;word-break:break-all}.home-mini-timetable th{font-weight:500;background:var(--panel)}.home-mini-timetable :is(th,td):first-child{width:32px;color:var(--muted)}.home-mini-timetable .is-today{background:var(--green-soft);color:var(--green-dark)}@media print{.home-timetable-mode{display:none}}
/* Monthly lunch source and today's compact menu. */
.home-meals #homeMealMenu ul{margin:0;padding:0;list-style:none;display:grid;gap:6px;font-size:1rem;line-height:1.6}
.home-meals #homeMealMenu>p{color:var(--muted);font-size:.875rem}
.home-meal-actions{display:flex;gap:8px;margin-top:14px}
.home-meal-actions .home-button{min-height:36px;padding:6px 10px;font-size:.875rem}
body[data-page="home"] .home-meal-notice{font-size:.8125rem;color:var(--muted);line-height:1.6;margin-top:12px}
.home-meal-notice:empty{display:none}
.home-meal-dialog{width:min(560px,calc(100vw / var(--site-zoom,1) - 24px));max-height:calc(100dvh / var(--site-zoom,1) - 24px);overflow:auto;box-sizing:border-box;border:1px solid var(--line);border-radius:20px;padding:24px;color:var(--ink);background:var(--panel,#fff)}
.home-meal-dialog::backdrop{background:#142e3a66}
.home-meal-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.home-meal-dialog label{display:grid;gap:8px;font-size:1rem;margin:16px 0 8px}
.home-meal-dialog input{width:100%;min-width:0;box-sizing:border-box;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel,#fff);color:var(--ink);font:inherit}
body[data-page="home"] .home-meal-dialog p{font-size:.875rem;line-height:1.6;color:var(--muted);margin:12px 0}
.home-meal-dialog #mealSubmit{background:var(--green);color:white;width:100%;margin-top:8px}
.home-meal-dialog button:disabled{opacity:.6;cursor:wait}
.home-meals [hidden]{display:none!important}
@media(min-width:521px) and (max-width:760px){.home-timetable,.home-meals{grid-column:1/-1}}
.home-meal-period{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:-4px 0 12px;font-size:.875rem}.home-meal-period strong{background:var(--green-soft);color:var(--green-dark);border-radius:6px;padding:4px 8px;font-weight:500}.home-meal-actions{flex-wrap:wrap}#homeMealLoadStatus:empty{display:none}
.home-meal-period[hidden]{display:none}
.home-material-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.home-material-grid>.home-empty{grid-column:1/-1}
.home-material-card{display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px;border:1px solid var(--line);border-top:3px solid var(--accent-border);border-radius:12px;background:var(--accent-tint);overflow-wrap:anywhere}
.home-material-card:hover{border-color:var(--green)}
.home-material-card h3{font-size:1rem;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body[data-page="home"] .home-material-meta{color:var(--material-label,var(--green-dark));font-size:.875rem;line-height:1.5}
body[data-page="home"] .home-material-preview{color:var(--muted);font-size:.875rem;line-height:1.6;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.home-material-saved{font-size:.8125rem;color:var(--muted);margin-top:auto;padding-top:2px}
.home-material-card[data-kind="quiz"]{background:#edf4ff;border-top-color:#779bd3;--material-label:#245d8a}
.home-material-card[data-kind="handout"]{background:#fff3e8;border-top-color:#dea06d;--material-label:#8a4a1f}
html[data-ui-mode="dark"] .home-material-card[data-kind="quiz"]{background:#203852;border-top-color:#83a9df;--material-label:#b7d8ff}
html[data-ui-mode="dark"] .home-material-card[data-kind="handout"]{background:#4b3425;border-top-color:#e7ac80;--material-label:#ffd5b5}
@media(max-width:1100px){.home-material-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.home-material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.home-material-grid{grid-template-columns:1fr}}
/* Right-weighted photo dissolves into the current class-card accent. */
.home-class-card{position:relative;isolation:isolate;overflow:hidden}
.home-class-photo{position:absolute;inset:0 0 0 auto;width:84%;height:100%;object-fit:cover;object-position:center;pointer-events:none;z-index:-1;-webkit-mask-image:linear-gradient(to right,transparent 0%,#0004 16%,#000 52%);mask-image:linear-gradient(to right,transparent 0%,#0004 16%,#000 52%)}
.home-class-content{position:relative;z-index:1}
.home-class-top{padding-right:172px}
.home-class-top .home-class-picker{max-width:100%}
.home-class-card.has-photo .home-class-content h2,.home-class-card.has-photo #homeClassMeta{max-width:54%;overflow-wrap:anywhere}
.home-class-card.has-photo .home-class-icon{visibility:hidden}
.home-class-photo-actions{position:absolute;right:14px;top:12px;z-index:2;display:flex;gap:5px}
.home-class-photo-actions button{min-height:32px;border:1px solid #ffffff80;border-radius:7px;padding:4px 8px;background:var(--green);color:#fff;font:inherit;font-size:.875rem;cursor:pointer}
.home-class-photo-actions button:hover{background:var(--green-dark)}
.home-class-photo-actions button:disabled{opacity:.55;cursor:default}
body[data-page="home"] .home-class-photo-status{position:absolute;z-index:2;bottom:8px;right:14px;max-width:60%;margin:0;font-size:.8125rem;line-height:1.4;border-radius:4px;background:var(--green);padding:2px 6px}
.home-class-photo-status:empty{display:none}
@media(max-width:520px){.home-class-card{padding-top:54px}.home-class-top{padding-right:0}.home-class-photo{width:82%;opacity:.75}.home-class-card.has-photo .home-class-content h2,.home-class-card.has-photo #homeClassMeta{max-width:68%}.home-class-photo-status{max-width:90%!important}}
@media print{.home-class-photo-actions,.home-class-photo-status{display:none!important}}

.home-class-photo-actions{flex-direction:column;align-items:flex-end}.home-photo-menu{display:flex;gap:5px;padding:6px;border-radius:10px;background:#142b4655;backdrop-filter:blur(8px)}.home-class-photo-actions .home-photo-toggle{width:36px;height:36px;padding:0;background:transparent;border:1px solid #ffffff66;font-size:27px;line-height:1;color:#fff;text-shadow:0 1px 4px #0009}.home-class-photo-actions .home-photo-toggle:hover{background:#ffffff22}.home-class-card.has-photo .home-class-top{padding-right:44px}

.home-photo-picker{position:relative;display:inline-flex}.home-photo-picker input[type=file]{position:absolute;inset:0;display:block!important;width:100%;height:100%;opacity:0;cursor:pointer;z-index:3;padding:0;margin:0}.home-photo-picker:focus-within{outline:2px solid white;outline-offset:3px;border-radius:7px}.home-photo-picker input:disabled{cursor:default}
