/* Independent UI review: preserve readable filter values on small screens. */
@media(max-width:760px){
 .finance-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
 .finance-toolbar>label{min-width:0}
 .finance-toolbar select{width:100%;min-width:0}
 .finance-toolbar>a{grid-column:1/-1;justify-self:start;margin-left:0}
}
.portal-history{margin-top:32px;border-top:1px solid var(--line,#d5d1c7);padding-top:8px}
.portal-history>summary{padding:16px 4px;min-height:48px;font-weight:800;overflow-wrap:anywhere}
.portal-history[open]>summary{margin-bottom:16px}
@media(max-width:650px){
 .cal-month .cal-day-events{padding:0;gap:0}
 .cal-month .cal-day .cal-event{width:100%;height:24px;min-height:24px;border-radius:4px;background:transparent;pointer-events:auto;align-items:center;justify-content:center}
 .cal-month .cal-day .cal-event::before{content:'';width:7px;height:7px;border-radius:50%;background:#e4572e;flex:none}
 .cal-month .cal-day .cal-course::before{background:#46644c}
 .cal-month .cal-day .cal-google::before{background:#526d99}
 .cal-month .cal-day .cal-event:hover{background:#dedbd2}
 .cal-month .cal-day .cal-event:focus-visible{outline-offset:-2px}
}
.cal-detail>.primary{color:var(--night,#1c1d1a)}
@media(max-width:760px){.finance-actions button{align-self:stretch}}

.school-selector{display:flex;flex-direction:column;gap:8px;margin:0}.school-selector select{width:100%;max-width:100%;min-width:0;min-height:44px;border:1px solid #777b6b;background:#262821;color:#efebe3;font:inherit;padding:9px 8px;border-radius:5px}.school-selector select:focus-visible{outline:3px solid #e4572e;outline-offset:3px}

@media(max-width:900px){.sidebar.menu-open .workspace{display:block;width:100%;margin:0;padding:12px 0}.sidebar.menu-open .school-selector{max-width:480px}}

/* Platzmodus: readable progress, explicit dog identity and touch-sized steps. */
#main .field-progress{overflow-x:auto;padding:6px 4px}
#main .field-progress button{min-height:44px;min-width:44px}
.field-step-status{font-size:13px;color:var(--muted);margin:12px 0 8px}
.session-team,.summary-heading p{overflow-wrap:anywhere}
.field-card .note-save{min-height:44px;margin:0 0 12px}
.field-card [data-session-step-title]:focus{outline:2px solid var(--pine,#2f3b2f);outline-offset:5px;border-radius:3px}
@media(max-width:760px){
 .field-card .note-save{width:100%}
 #editor>.section-head:first-child,#editor>form>.section-head:first-child{position:sticky;top:0;z-index:5;background:var(--paper,#fff);padding-block:8px}
 #editor>.section-head [data-close],#editor>form>.section-head [data-close]{min-height:44px;min-width:44px}
}
