.editor{max-width:1050px}.test-banner{background:#fff2c8;border:2px solid #b67b16;border-radius:12px;padding:14px 18px;font-weight:700;line-height:1.5}.editor-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:25px 0}.editor-head h1{margin:4px 0}.eyebrow{font-size:12px;letter-spacing:1.4px;color:#007b83;font-weight:800}.test-tag{background:#d8edf0;color:#075c64;border-radius:30px;padding:9px 12px;font-size:12px;font-weight:bold}.panel{background:#fff;border:1px solid #d2dfe7;border-radius:14px;padding:22px;margin:18px 0}.panel h2,.section-title h2{font-size:23px;margin:0}.panel-title{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.panel-title span{font-size:13px;color:#51697a}.update-panel{border-top:5px solid #e5b344}.editor .update-panel textarea{min-height:90px}.section-title{margin-top:30px}.section-title p{margin:8px 0;color:#50677a}.editor #fields{display:block}.editor #fields .activity-panel{display:block;background:white;border:1px solid #cbdde7;border-radius:15px;margin:18px 0;padding:20px;min-width:0}.activity-panel legend{font-weight:800;font-size:20px;padding:0 8px;color:#12314d}.activity-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 20px}.activity-grid .field.wide{grid-column:1/-1}.editor .activity-grid label{margin-top:12px}.editor .activity-grid textarea{min-height:100px;resize:vertical}.editor .activity-grid input{min-height:45px}.editor .card-controls{margin-top:18px;display:flex;flex-wrap:wrap;gap:8px}.editor .card-controls button{background:#426179}.editor .add-button{width:100%;background:#007b83;margin:8px 0 20px}.editor .actions{padding:16px 0}.editor .actions button:disabled{background:#9aa7b1;cursor:not-allowed}.import-label{display:inline-block!important;margin:0!important;padding:11px 16px;border:1px solid #cad8e0;border-radius:8px;background:white;cursor:pointer}.import-label input{display:block;max-width:220px;font-size:12px;margin-top:8px}.editor-preview{margin-top:10px}.important-preview{background:#fff7db;border-left:5px solid #c99625;padding:18px 24px;border-radius:12px}.important-preview h3{margin-top:0}.important-preview p,.weekly-card p{line-height:1.6;overflow-wrap:anywhere}.preview-date{color:#007b83;font-weight:800}.weekly-card h4{margin-bottom:4px}.weekly-card p[lang]{white-space:normal}@media(max-width:700px){.activity-grid{grid-template-columns:1fr}.editor-head{align-items:flex-start;flex-direction:column}.editor #fields .activity-panel{padding:12px}}@media print{.test-banner,.editor-head,.editor-fields,#status,#preview-section>h2{display:none!important}#preview-section{display:block}.editor-preview{display:block}.weekly-card{break-inside:avoid}}

.extras-panel{border-top:5px solid #007b83}.extras-panel textarea{min-height:110px;resize:vertical}.extras-panel .hint{color:#52687a;font-size:14px}.contact-panel{background:#edf7f8}.weekly-extra,.weekly-contact{margin:18px 0;padding:18px 24px;border:1px solid #d3e1e9;border-radius:12px;background:white}.weekly-extra h3,.weekly-contact h3{margin-top:0}.weekly-extra p,.weekly-contact p{line-height:1.65;overflow-wrap:anywhere}.weekly-contact{background:#edf7f8}.weekly-contact a{color:#075b75}

/* v194: side-by-side bilingual fields and two-column important dates */
.bilingual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bilingual-grid>div{min-width:0}.bilingual-grid textarea{width:100%;box-sizing:border-box}.activity-grid .field.instruction-field{grid-column:auto}.activity-grid .field.instruction-field textarea{width:100%;box-sizing:border-box}.dates-header,.date-row{display:grid;grid-template-columns:minmax(105px,1fr) minmax(0,3fr);gap:12px;align-items:start}.dates-header{margin:16px 0 8px}.date-row{margin-bottom:12px}.date-row textarea{min-height:65px;box-sizing:border-box;width:100%}.date-row input{box-sizing:border-box;width:100%;min-width:0}.date-row button{grid-column:2;justify-self:start;background:#426179}.important-dates-table{width:100%;border-collapse:collapse;table-layout:fixed}.important-dates-table th,.important-dates-table td{border-bottom:1px solid #d3e1e9;padding:10px;text-align:left;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}.important-dates-table th:first-child{width:25%}.bilingual-preview{display:grid;grid-template-columns:1fr 1fr;gap:18px}.bilingual-preview>div{overflow-wrap:anywhere}@media(max-width:700px){.bilingual-grid,.bilingual-preview{grid-template-columns:1fr}.activity-grid .field.instruction-field{grid-column:1}.dates-header,.date-row{grid-template-columns:minmax(90px,1fr) minmax(0,2fr)}}

.absence-panel,.weekly-absence{border:1px solid #b9d2e4;border-radius:12px;padding:16px;background:#f3f8fc;margin:18px 0}.absence-panel a,.weekly-absence a{font-weight:700;color:#174a75;text-decoration:underline}.weekly-absence h3{margin-top:0}

/* v196 optional per-activity registration */
.registration-editor{border-top:1px solid #d1dfe7;margin-top:18px;padding-top:12px}.registration-editor h3{font-size:17px;margin:4px 0 12px}.registration-check{display:flex!important;align-items:center;gap:8px;font-weight:700}.registration-check input{width:20px!important;height:20px;min-height:0!important;flex:none}.registration-fields{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-top:10px}.registration-fields[hidden]{display:none}.registration-fields input{width:100%;box-sizing:border-box}.registration-preview{background:#f0f8fc;border-left:4px solid #147e8b;padding:12px 16px;margin-top:14px;border-radius:6px}.registration-preview a{font-weight:800;color:#075b75;overflow-wrap:anywhere}@media(max-width:700px){.registration-fields{grid-template-columns:1fr}}

/* v198: registration belongs to each important date */
.date-row{grid-template-columns:minmax(105px,1fr) minmax(0,3fr)}
.date-row .date-registration{grid-column:2;min-width:0;border-left:3px solid #b9d2e4;padding:8px 12px;background:#f6fafc;border-radius:5px}
.date-row .date-registration .registration-fields{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
@media(max-width:700px){.date-row .date-registration .registration-fields{grid-template-columns:1fr}}

/* v199: optional multi-location activity template */
.multi-toggle{display:flex!important;align-items:center;gap:10px;margin:14px 0;font-weight:700;color:#12314d}.multi-toggle input{width:20px;height:20px;min-height:0!important}.location-grid,.locations-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.location-panel,.location-preview{border:1px solid #cbdde7;border-radius:10px;padding:14px;min-width:0;background:#f8fbfd}.location-panel label{display:block;margin-top:9px}.location-panel input,.location-panel textarea{width:100%;box-sizing:border-box}.location-panel textarea{min-height:100px}.location-panel button{margin-top:10px;background:#426179}.location-add{margin-top:4px;background:#007b83}.location-preview h4{margin:0 0 8px}.location-preview p{margin:6px 0;overflow-wrap:anywhere}.location-preview{break-inside:avoid}@media(max-width:600px){.location-grid,.locations-preview{grid-template-columns:1fr}}@media print{.locations-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.location-preview{font-size:11px;padding:10px}}

/* v200: restricted rich text formatting for bilingual instructions */
.instruction-toolbar{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:6px;background:#eef4f8;border:1px solid #cbdde7;border-radius:8px 8px 0 0}.instruction-toolbar button{width:auto!important;min-width:34px;min-height:32px;padding:5px 9px;background:#fff!important;color:#17374d!important;border:1px solid #aebfcb;border-radius:5px;font-weight:700}.instruction-toolbar button:hover{background:#dcecf5!important}.instruction-colors{display:flex;gap:5px;margin-left:6px}.instruction-toolbar .color-swatch{width:24px!important;min-width:24px;min-height:24px;height:24px;padding:0;border:2px solid #fff;outline:1px solid #9aaeba;border-radius:50%}.instruction-editable{min-height:105px;padding:10px;border:1px solid #cbdde7;border-top:0;border-radius:0 0 8px 8px;background:#fff;overflow-wrap:anywhere;white-space:normal;line-height:1.5}.instruction-editable:focus{outline:2px solid #147e8b}.instruction-editable ul,.weekly-card ul{padding-left:23px;list-style:disc}.instruction-editable li,.weekly-card li{margin:3px 0}.instruction-editable div{margin:3px 0}

/* v201 compact letter-size duplex print stylesheet; never clips overflowing content. */
@page { size: letter portrait; margin: 0.38in 0.42in; }
@media print {
 html,body { background:#fff!important; color:#111!important; font-size:9pt!important; margin:0!important; padding:0!important; }
 .editor { width:100%!important; max-width:none!important; margin:0!important; padding:0!important; }
 #preview-section,#preview-content,.editor-preview,.weekly-shell { display:block!important; width:100%!important; max-width:none!important; margin:0!important; padding:0!important; border:0!important; box-shadow:none!important; }
 #preview-content { font-size:9pt!important; line-height:1.18!important; }
 #preview-content h1,#preview-content h2 { font-size:13pt!important; margin:3pt 0 5pt!important; }
 #preview-content h3 { font-size:10pt!important; margin:5pt 0 3pt!important; }
 #preview-content h4 { font-size:9pt!important; margin:3pt 0 2pt!important; }
 #preview-content p { font-size:9pt!important; line-height:1.18!important; margin:2pt 0!important; }
 #preview-content .weekly-card,#preview-content .weekly-extra,#preview-content .weekly-contact,#preview-content .weekly-absence,#preview-content .important-preview {
   margin:4pt 0!important; padding:5pt 7pt!important; border-radius:0!important; box-shadow:none!important; break-inside:avoid-page; page-break-inside:avoid;
 }
 #preview-content .weekly-card { border:1px solid #aaa!important; }
 #preview-content .locations-preview { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:5pt!important; margin:3pt 0!important; }
 #preview-content .location-preview { padding:4pt!important; font-size:8pt!important; background:#fff!important; border:1px solid #bbb!important; break-inside:avoid; }
 #preview-content .location-preview p { font-size:8pt!important; line-height:1.12!important; }
 #preview-content .bilingual-preview { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8pt!important; }
 #preview-content .important-dates-table th,#preview-content .important-dates-table td { padding:3pt 4pt!important; font-size:8.5pt!important; line-height:1.15!important; }
 #preview-content ul { margin:2pt 0!important; padding-left:14pt!important; }
 #preview-content li { margin:1pt 0!important; }
 #preview-content a { color:#111!important; }
 #preview-content * { overflow-wrap:anywhere!important; }
 .editor-preview { background:#fff!important; }
}

/* v202: English left / French right for all bilingual print sections. */
#preview-content .bilingual-preview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
#preview-content .bilingual-preview > div { min-width:0; overflow-wrap:anywhere; }
#preview-content .bilingual-preview > div:first-child { border-right:1px solid #d6e0e6; padding-right:10px; }
#preview-content .instructions-preview ul { margin:4px 0; padding-left:18px; }
@media print {
 #preview-content .bilingual-preview { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8pt!important; }
 #preview-content .bilingual-preview > div:first-child { border-right:1px solid #ccc!important; padding-right:6pt!important; }
 #preview-content .instructions-preview { break-inside:avoid-page; }
}
