/* The season calendar keeps the shared ATD type, surface and control scale. */
.co-season-summary,.co-season-month{min-width:0;max-width:100%;background:var(--white);color:var(--ink);border:1px solid var(--frame,#fff);border-radius:var(--radius);padding:var(--card-space);margin:0 0 var(--section-space);box-sizing:border-box}
.co-season-heading,.co-season-month-head,.co-season-agenda-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.co-season-heading h3,.co-season-month-title h4{font-family:var(--display);font-size:var(--section-title-size);line-height:1.3;margin:4px 0;font-weight:800}
.co-season-eyebrow{font-size:var(--text-label);letter-spacing:.02em;font-weight:600;color:var(--muted)}
.co-season-summary p{font-size:var(--text-body);line-height:1.5;margin:16px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.co-season-summary>small{display:block;font-size:var(--text-label);line-height:1.5;margin-top:12px;color:var(--muted)}
.co-season-facts{display:flex;gap:12px 24px;flex-wrap:wrap;margin-top:16px}
.co-season-facts>span{font-size:var(--text-label);line-height:1.5;min-width:0;overflow-wrap:anywhere}
.co-season-facts b{font-weight:700;margin-right:4px}
.co-season-summary .co-text-btn,.co-season-month .co-text-btn{color:var(--red);background:transparent;border:0;cursor:pointer;line-height:1.4}
.co-season-month{touch-action:pan-y}
.co-season-month-head{flex-wrap:wrap}
.co-season-month-head>div{display:flex;align-items:center;gap:8px;flex:none}
.co-season-month-head>.co-season-month-title{display:block;flex:1;min-width:0}
.co-season-month-title p{font-size:var(--text-label);line-height:1.4;margin:8px 0 0;color:var(--muted);overflow-wrap:anywhere}
.co-season-month-title .co-season-month-phase{font-weight:600;margin-top:4px;color:var(--ink)}
.co-season-weekdays,.co-season-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:0}
.co-season-weekdays{margin-top:16px;text-align:center;font-size:var(--text-label);font-weight:600;color:var(--muted);padding:0 0 12px}
.co-season-days{gap:4px}
.co-season-day{position:relative;isolation:isolate;font:inherit;min-width:0;max-width:100%;min-height:84px;border:1px solid transparent;border-radius:7px;background:var(--soft);color:var(--ink);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 2px;box-sizing:border-box;overflow:hidden}
.co-season-day b{font-size:var(--text-body);line-height:1.3;font-weight:600}
.co-season-day.is-outside{background:var(--white);color:var(--muted)}
.co-season-day.is-today b{font-weight:800;text-decoration:underline;text-underline-offset:4px}
.co-season-day.is-selected{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.co-season-month:focus-visible,.co-season-day:focus-visible,.co-season-event:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.co-season-day-markers{display:flex;justify-content:center;gap:3px;min-height:7px;margin:7px 0 4px}
.co-season-dot{height:6px;width:6px;border-radius:50%;background:var(--co-event-color,#111);display:block;flex:none}
:is(.co-season-dot,.co-season-event).is-game{--co-event-color:var(--red)}
:is(.co-season-dot,.co-season-event).is-club{--co-event-color:var(--gold)}
:is(.co-season-dot,.co-season-event).is-gym{--co-event-color:#111}
:is(.co-season-dot,.co-season-event).is-performance-test{--co-event-color:#0057b8}
:is(.co-season-dot,.co-season-event).is-assessment{--co-event-color:#d55e00}
:is(.co-season-dot,.co-season-event).is-feedback{--co-event-color:#00843d}
.co-season-agenda-head{padding-top:var(--section-space);margin-top:var(--section-space);border-top:1px solid var(--line)}
.co-season-agenda-head h4{font-size:var(--text-body);margin:0;font-weight:700}
.co-season-agenda{margin-top:12px}
.co-season-agenda>p{font-size:var(--text-label);line-height:1.5;color:var(--muted);padding:12px 0;margin:0}
.co-season-event{width:100%;font:inherit;display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:center;gap:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--white);color:var(--ink);text-align:left;padding:16px 0;cursor:pointer}
.co-season-event time{font-size:var(--text-label);color:var(--muted)}
.co-season-event strong{display:block;font-size:var(--text-body);font-weight:600;overflow-wrap:anywhere}
.co-season-event small{display:block;font-size:var(--text-label);line-height:1.45;margin-top:4px;color:var(--muted);overflow-wrap:anywhere}
.co-season-event{border-inline-start:3px solid var(--co-event-color,#111);padding-inline-start:10px}
.co-season-event.is-game strong{color:var(--co-event-color)}
.co-season-event-detail p{font-size:var(--text-body);line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}
.co-season-form,.co-season-event-form{min-width:0;max-width:100%}
.co-season-form>p{font-size:var(--text-body);line-height:1.5;color:var(--muted)}
.co-season-form>section{margin:var(--section-space) 0;padding:var(--section-space) 0 0;border-top:1px solid var(--line)}
.co-season-form fieldset{padding:0;margin:0;border:0;min-width:0}
.co-season-form legend{font-size:var(--text-body);font-weight:700;margin:0 0 16px;padding:0}
.co-season-inherit{display:flex;align-items:center;gap:8px;line-height:1.45;font-size:var(--text-label);margin:0 0 16px;color:var(--muted)}
.co-season-inherit input{width:18px;height:18px;accent-color:var(--red)}
.co-season-form fieldset:disabled{opacity:.45}
.co-season-phase-row{display:grid;grid-template-columns:100px minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center;margin:0 0 12px}
.co-season-phase-row>strong{font-size:var(--text-label)}
.co-season-phase-row .field,.co-season-edit-row .field{margin:0}
.co-season-edit-row{padding:var(--card-space);background:var(--soft);border-radius:var(--radius);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px;min-width:0}
.co-season-form .field,.co-season-event-form .field{min-width:0;max-width:100%}
.co-season-form .input,.co-season-event-form .input{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.co-season-dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding-top:var(--section-space);margin-top:var(--section-space);border-top:1px solid var(--line)}
.co-season-error{font-size:var(--text-label);line-height:1.5;color:var(--red)}
.co-season-form>small{display:block;margin-top:16px;color:var(--muted);font-size:var(--text-label)}
.co-season-form .co-text-btn{color:var(--red);cursor:pointer;background:transparent;border:0;padding:8px 0;text-align:left}
.co-season-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:16px}
.co-season-legend>span{display:flex;align-items:center;gap:6px;font-size:var(--text-label);color:var(--muted);line-height:1.45}
.co-season-legend+.co-season-weekdays{margin-top:16px}
.co-season-day-phase{position:absolute;inset:0;display:flex;z-index:-1}
.co-season-day-phase>i{display:block;flex:1;min-width:0}
.co-season-day-phase [data-season-phase=preseason]{background:color-mix(in srgb,var(--gold) 30%,var(--white))}
.co-season-day-phase [data-season-phase=inseason]{background:color-mix(in srgb,var(--red) 20%,var(--white))}
.co-season-day-phase [data-season-phase=offseason]{background:var(--line)}
.co-season-day.is-outside .co-season-day-phase{opacity:.45}
.co-prepare-schedule-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.co-prepare-schedule-fields .field{margin:0;min-width:0}
.co-prepare-schedule-fields input{width:100%;min-width:0}
.co-prepare-note{font-size:var(--text-label);color:var(--muted);line-height:1.5;margin:12px 0}
.co-prepare-activate-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.co-prepare-package-service{border-top:1px solid var(--line);padding:16px 0}
.co-prepare-package-service>summary{font-weight:600;cursor:pointer;margin-bottom:12px}
.co-prepare-calendar .co-season-month{margin-bottom:0}
.co-prepare-package-service[data-has-plan] .co-prepare-note{margin:0 0 12px}
@media(max-width:600px){
  .co-season-month-head{gap:12px}.co-season-month-head>div{gap:8px}
  .co-season-day{min-height:66px;padding:8px 2px 5px}.co-season-days{gap:3px}
  .co-season-phase-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.co-season-phase-row>strong{grid-column:1/-1}
  .co-season-dialog-actions>.btn{flex:1 1 130px}.co-season-event{grid-template-columns:40px minmax(0,1fr) 18px}
  .co-season-facts{gap:8px 16px}.co-prepare-schedule-fields{grid-template-columns:minmax(0,1fr)}
}
@media print{[data-season-action="context"],[data-season-action="event-new"]{display:none}.co-season-summary,.co-season-month{border:1px solid var(--frame,#fff);break-inside:avoid}}

.co-planning-calendar-tools{display:flex;justify-content:flex-end}
.co-planning-calendar-tools .co-planning-calendar-button{width:44px;height:44px;border:1px solid var(--line,#111);background:#fff;color:#111}
.co-planning-calendar-tools .co-planning-calendar-button:hover{color:var(--red,#d20a2e)}
.co-planning-calendar-tools .co-planning-calendar-button:focus-visible{outline:2px solid var(--red,#d20a2e);outline-offset:3px}
.co-planning-calendar-dialog.co-prepare .co-prepare-calendar{margin-top:0}
.co-planning-calendar-dialog [hidden]{display:none!important}

@media(max-width:600px){
 .co-prepare-schedule-fields.is-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
 .co-prepare-schedule-fields.is-compact>.co-prepare-camp-dates{grid-column:1/-1}
 .co-prepare-schedule-fields.is-compact>.field>span{overflow-wrap:anywhere}
}
