.document-select,.sr-inline{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:16px 0}.document-select label{width:100%;font-weight:700}.document-select select{min-width:260px;max-width:100%}.document-select select,.sr-inline select{padding:12px;border:1px solid #cdd8d5;border-radius:10px;background:#fff}.sr-months,.sr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sr-months textarea,.sr-grid input{width:100%}.sr-months textarea,textarea[name=temat]{display:block;width:100%;padding:12px;border:1px solid #cdd8d5;border-radius:10px;font:inherit;margin:8px 0 18px}.sr-session{padding:16px 0;border-bottom:1px solid #dbe4e0}.sr-session summary{cursor:pointer;font-weight:700;margin-bottom:12px}.sr-inline .field{min-width:180px;margin:0}.sr-months+button{margin-top:18px}@media(max-width:700px){.sr-months,.sr-grid{grid-template-columns:1fr}.document-select select{min-width:0;width:100%}}
.school-panel .sidebrand{text-decoration:none;color:inherit}.school-panel .sidebrand img{object-fit:contain}.school-panel .side-foot>a{display:block;margin:12px 0}.school-panel main [id^=szkolka-]{scroll-margin-top:100px}.school-panel .nav-link[aria-current]{background:#e9f0d8;color:#263f2e;font-weight:700}.school-login{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;max-width:1100px;padding:48px 28px;margin:4vh auto}.school-welcome h1{font-size:clamp(2.5rem,5vw,4.5rem);line-height:1.08;color:#263b2e;margin:24px 0}.school-welcome>.kicker{margin-top:52px}.school-login .tile{padding:36px}.school-login .field{display:block;margin-bottom:18px}.school-login [hidden]{display:none!important}.school-panel .sr-inline{row-gap:18px}.school-panel .sidebrand{display:flex;gap:12px}.school-panel .sidebrand small{display:block}.school-panel .school-login button{width:100%}@media(max-width:760px){.school-login{grid-template-columns:1fr;gap:24px;margin:0 auto;padding:24px 16px}.school-welcome>.kicker{margin-top:24px}.school-login .tile{padding:24px}.school-panel .dashbar>a{display:none}}

/* A common baseline for both actions and the document picker on the athlete card. */
body .tools.athlete-actions {
  --control-height: 2.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .65rem .75rem;
  margin-block: 1rem;
}
body .athlete-actions .document-select {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: .35rem .65rem;
  margin: 0;
  max-width: 100%;
  min-width: 0;
}
body .athlete-actions .document-select label {grid-column: 1 / -1; margin: 0}
body .athlete-actions > a,
body .athlete-actions .document-select :is(select, button) {
  box-sizing: border-box;
  height: var(--control-height);
  min-height: var(--control-height);
  margin: 0;
  padding-block: 0;
  line-height: 1.25;
}
body .athlete-actions > a, body .athlete-actions .document-select button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body .athlete-actions .document-select select {width: 100%;min-width: 0}
@media (max-width: 720px) {
  body .athlete-actions .document-select {flex: 1 0 100%}
}
#school-workspace[aria-busy="true"] {cursor: progress}
#szkolka-komunikat:empty {display:none}

/* Czytelny roczny plan szkółki: pełna szerokość pola i wyraźny wybór miesięcy. */
.sr-months {grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px}
.sr-month {min-width:0;margin:0;padding:16px;border:1px solid #d4dfda;border-radius:14px;background:#fbfcfa}
.sr-month legend {float:none;width:auto;padding:0 8px;font-weight:800;font-size:1.1rem;color:#183d35}
.sr-month .sr-active {display:flex;align-items:flex-start;gap:10px;margin:2px 0 14px;font-weight:650;line-height:1.4}
.sr-month .sr-active input {flex:0 0 auto;width:1.15rem;height:1.15rem;margin-top:.12rem;accent-color:#126f63}
.sr-month .sr-active-state {margin:0 0 12px;font-weight:700;color:#52645f}
.sr-month .sr-topic-label {display:block;font-weight:700;line-height:1.4}
.sr-month textarea[name^="temat_"] {box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;min-height:18rem;padding:14px;border:1px solid #aebfba;border-radius:10px;background:#fff;font:inherit;font-size:1rem;line-height:1.55;resize:vertical;white-space:pre-wrap}
.sr-month textarea[name^="temat_"]:focus {outline:3px solid #d27a32;outline-offset:2px;border-color:#126f63}
.sr-session textarea[name="temat"] {box-sizing:border-box;display:block;width:100%;max-width:100%;min-height:11rem;line-height:1.55;resize:vertical}
@media(max-width:800px){.sr-months{grid-template-columns:1fr}.sr-month textarea[name^="temat_"]{min-height:15rem}}

/* Roczny plan tematów zajmuje całą szerokość, a tekst do edycji pozostaje czytelny i niepogrubiony. */
#szkolka-plan {width:100%;max-width:none}
#szkolka-plan .sr-months {display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:18px}
#szkolka-plan .sr-month {width:100%;box-sizing:border-box}
#szkolka-plan .sr-month .sr-topic-label {font-weight:400}
#szkolka-plan .sr-month textarea[name^="temat_"] {font-weight:400!important;font-size:1rem;line-height:1.55;min-height:28rem}
.sr-session textarea[name="temat"] {font-weight:400!important;font-size:1rem;line-height:1.55;min-height:16rem}
@media(max-width:800px){#szkolka-plan .sr-month textarea[name^="temat_"]{min-height:23rem}}

#szkolka-plan .club-form{display:block;width:100%;max-width:none}
#szkolka-plan .sr-months{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
#szkolka-plan .sr-month textarea[name^=temat_]{min-height:8rem;height:11rem;margin-bottom:0}
#szkolka-terminy .sr-day-topic{grid-column:1;display:block;width:100%;max-width:none}
#szkolka-terminy .sr-day-topic textarea{box-sizing:border-box;width:100%;max-width:none;height:7rem;min-height:5rem;font-weight:400;resize:vertical}
@media(max-width:720px){#szkolka-plan .sr-months{grid-template-columns:minmax(0,1fr)}}
.club-toast{position:fixed;right:1rem;bottom:1rem;z-index:99999;max-width:min(27rem,calc(100vw - 2rem));padding:.75rem 1rem;border-radius:.6rem;color:white;background:#384b37;box-shadow:0 .3rem 1.5rem #19231e33;font:600 .94rem/1.4 system-ui}
.club-toast-error{background:#a52a34}
