body#loeschwerk-app {--flow-dock-space:calc(158px + env(safe-area-inset-bottom,0px));}
body#loeschwerk-app::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:55;background:var(--bg,var(--app-bg));backdrop-filter:blur(12px);pointer-events:none}
body#loeschwerk-app :is(.muted,.eyebrow,.staff-label,.staff-save-state,.storage-note,.youth-footer,.role-muted){font-size:max(.75rem,12px)}
body#loeschwerk-app :is(.muted,.storage-note,.staff-save-state,.youth-footer,.role-muted){color:var(--text-muted,var(--app-muted))}
body#loeschwerk-app :is(.staff-hero,.role-hero) :is(.muted,.staff-label,small){color:inherit}
body#loeschwerk-app :is(.staff-filter,.role-segments,.flow-chips){gap:8px}
body#loeschwerk-app :is(.staff-filter,.role-segments,.flow-chips,.knowledge-heading,.calendar-head) button{min-height:44px}
body#loeschwerk-app :is(.role-youth-tabs,.staff-filter,.role-segments,.flow-chips) button{font-size:max(.75rem,12px)}
body#loeschwerk-app .flow-chips{display:flex;overflow:auto;padding:4px;margin:0 0 12px;scrollbar-width:thin}
body#loeschwerk-app .flow-chips button{flex:none;white-space:nowrap}
body#loeschwerk-app .flow-chips button[aria-pressed=true]{background:var(--accent-tint);color:var(--accent-text);box-shadow:inset 0 0 0 2px var(--accent-text);font-weight:800}
body#loeschwerk-app .staff-more-menu [hidden]{display:none!important}
body#loeschwerk-app .staff-more-menu .staff-row{width:100%}
body#loeschwerk-app .staff-more-menu :is(.staff-logout,.staff-logout:hover){color:var(--staff-error)}
body#loeschwerk-app .flow-install summary{list-style:none;display:flex;gap:8px;align-items:center;min-height:44px}
body#loeschwerk-app .flow-install summary::-webkit-details-marker{display:none}
body#loeschwerk-app .flow-install[open] summary svg:last-child{transform:rotate(90deg)}
body#loeschwerk-app .flow-install summary span{flex:1}
body#loeschwerk-app .flow-prep-row{display:grid;gap:6px;text-align:left;min-width:0;width:100%}
body#loeschwerk-app .flow-prep-row progress{width:100%}
body#loeschwerk-app .flow-attendance-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
body#loeschwerk-app .flow-attendance-buttons button{min-width:44px;min-height:44px;padding:4px;font-size:.75rem;white-space:normal}
body#loeschwerk-app .flow-status{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
body#loeschwerk-app .flow-status .role-chip{font-size:.75rem}
@media(max-width:850px){
 body#loeschwerk-app:not(.youth-mode):not(.role-admin) main,
 body#loeschwerk-app.role-youth main{padding-top:calc(20px + env(safe-area-inset-top,0px));padding-bottom:var(--flow-dock-space);scroll-padding-bottom:var(--flow-dock-space)}
 body#loeschwerk-app :is(.knowledge-compact-heading,.knowledge-compact-heading .toolbar,.section-head){min-width:0;flex-wrap:wrap;gap:8px}
 body#loeschwerk-app .knowledge-compact-heading label{flex:1 1 100px;min-width:100px}
 body#loeschwerk-app .staff-calendar .calendar-grid{gap:0}
 body#loeschwerk-app .staff-calendar .calendar-cell{min-height:44px;padding-inline:0}
 body#loeschwerk-app .staff-calendar .calendar-head h2{min-width:0;overflow-wrap:anywhere}
 body#loeschwerk-app .flow-attendance-row{grid-template-columns:auto minmax(0,1fr)}
 body#loeschwerk-app .flow-attendance-row .flow-attendance-buttons{grid-column:1/-1}
 body#loeschwerk-app .staff-stack,.role-stack{min-width:0}
}
@media(max-width:639px){body#loeschwerk-app.role-admin main{padding-top:calc(20px + env(safe-area-inset-top,0px));padding-bottom:var(--flow-dock-space);scroll-padding-bottom:var(--flow-dock-space)}}
@media(max-width:360px){body#loeschwerk-app .role-youth-tabs{inset-inline:8px}body#loeschwerk-app .role-youth-tabs button{padding-inline:2px}body#loeschwerk-app .staff-calendar{padding-inline:6px}body#loeschwerk-app .staff-calendar .calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr))}}
body#loeschwerk-app .guardian-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
body#loeschwerk-app .flow-install-steps li{margin-block:8px}
body#loeschwerk-app.attendance-offline main{width:min(100%,760px);max-width:760px;margin:0 auto;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
body#loeschwerk-app.attendance-offline .staff-sticky-save{position:static}
@media(max-width:360px){
 body#loeschwerk-app .staff-card.staff-calendar{margin-inline:-18px;padding-inline:2px}
 body#loeschwerk-app .staff-calendar .calendar-cell{min-width:44px}
}
body#loeschwerk-app.attendance-offline main>header{display:flex;flex-wrap:wrap;gap:8px}
body#loeschwerk-app.attendance-offline main>header .muted{display:block}
body#loeschwerk-app :is(.youth-footer,.storage-note) a{display:inline-flex;align-items:center;min-height:44px}
body#loeschwerk-app .flow-attendance-reset{grid-column:1/-1;justify-self:end}
