/* Cahier, copie et correction partagent les repères bleu clair de Yechiva. */
.homework-page{min-width:0}.homework-page .button:disabled{cursor:default}.homework-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.homework-main,.homework-aside{display:grid;gap:22px;min-width:0}.homework-page .panel h2{font-size:16px;line-height:1.6}.homework-page .panel-pad{padding:23px 25px}.homework-page .panel-title{gap:14px;flex-wrap:wrap}.homework-context{display:grid;gap:18px;margin:0}.homework-context dt{font-size:11px;color:var(--muted);margin-bottom:5px}.homework-context dd{margin:0;font-size:13px;font-weight:600;line-height:1.7;overflow-wrap:anywhere}.homework-muted{color:var(--muted);font-size:12px;line-height:1.85}.homework-guidance h2{margin-bottom:10px}.homework-guidance p{font-size:12px;color:var(--muted);line-height:1.9}.homework-table-wrap{overflow-x:auto;border-radius:0 0 16px 16px}.homework-table{border-collapse:collapse;width:100%;table-layout:auto}.homework-table th,.homework-table td{padding:17px 18px;text-align:left;border-bottom:1px solid #DFEBF4;vertical-align:middle}.homework-table thead th{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);background:#F3F8FD;font-weight:650}.homework-table tbody th{font-size:13px;line-height:1.7;overflow-wrap:anywhere;min-width:120px}.homework-table tbody td{font-size:12px;line-height:1.7}.homework-table tbody td:last-child{width:1%;white-space:nowrap}.homework-table .homework-table-date{font-size:11px;color:var(--muted)}.homework-table tr:last-child th,.homework-table tr:last-child td{border-bottom:0}.homework-selected-row{background:#ECF6FD}.homework-selected-row th{box-shadow:inset 3px 0 0 var(--blue)}.homework-table-note{padding:17px 21px;border-top:1px solid #DFEBF4;font-size:11px;line-height:1.85;color:var(--muted)}.homework-status{white-space:normal;text-align:left;line-height:1.5}.homework-draft{background:#EDF5FC;color:#37617F}.homework-submitted,.homework-corrected{background:#DFEFFB;color:#145184}.homework-needs_revision{background:#FFF4D9;color:#795617}.homework-not_started{background:#F0F4F8;color:#4E687E}.homework-selection{min-width:0;display:grid;gap:20px}.homework-selection>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:2px 2px 0}.homework-selection>header h2{font-size:21px;line-height:1.5;overflow-wrap:anywhere}.homework-selection .eyebrow{font-size:10px;display:block;margin-bottom:5px}.homework-context-note,.homework-archive-note,.homework-confirm-note{padding:16px 18px;border-radius:11px;border:1px solid #BDD8EB;background:#EDF7FF;font-size:12px;line-height:1.9}.homework-archive-note{background:#F3F7FA;color:var(--muted)}.homework-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.95}.homework-editor .form-grid{gap:22px}.homework-editor .field{min-width:0}.homework-editor textarea{min-height:230px;resize:vertical;font-size:14px;line-height:1.85}.homework-editor select{font-size:14px;min-height:43px}.homework-editor label small{color:var(--muted);font-size:11px;line-height:1.8;margin-top:7px;display:block}.homework-editor input[type=file]{display:none}.homework-copy-files{margin-top:25px;padding-top:22px;border-top:1px solid #DFEBF4}.homework-copy-files h3{margin-bottom:14px}.homework-copy-files>.homework-muted{margin:13px 0}.homework-copy-files>.button{margin-top:8px}.homework-files{list-style:none;padding:0;margin:14px 0;display:grid;gap:12px}.homework-files>li{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #CBDDEA;border-radius:10px;background:#FAFCFE;min-width:0}.homework-file-kind{display:flex;align-items:center;justify-content:center;flex:0 0 42px;min-height:44px;border-radius:8px;background:#E4F1FB;color:var(--blue-dark);font-size:10px;font-weight:700}.homework-files>li>div:not(.homework-file-actions){flex:1;min-width:0}.homework-files strong{display:block;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.homework-files small{display:block;color:var(--muted);font-size:10px;line-height:1.7;margin-top:3px}.homework-file-actions{display:flex;gap:8px;flex-wrap:wrap}.homework-file-actions .button{font-size:11px;min-height:36px}.homework-savebar{border-top:1px solid #C5DBEA;background:#F3F9FD;padding:20px 23px;border-radius:0 0 16px 16px;display:flex;flex-direction:column;gap:15px}.homework-savebar>p{font-size:12px;line-height:1.85;color:var(--muted)}.homework-savebar>div{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.homework-savebar .button{white-space:normal;text-align:center}.homework-feedback{border:1px solid #BBD8EB;background:#EDF7FF;border-radius:12px;padding:20px;margin:17px 0 0}.homework-feedback h3{font-size:14px;margin-bottom:12px;line-height:1.6}.homework-feedback .homework-muted{margin-top:13px}.homework-feedback>p:last-child{font-size:12px;line-height:1.85;margin-top:13px}.homework-saved-copy .homework-feedback{margin-top:23px}.homework-classroom-action{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#EDF7FF;border:1px solid #BDD8EB;border-radius:12px;padding:20px}.homework-classroom-action p{font-size:12px;line-height:1.85}.homework-classroom-action .button{white-space:normal;flex-shrink:0;max-width:50%}.homework-instructions>summary,.homework-attempts>summary{cursor:pointer;padding:21px 24px;font-size:14px;line-height:1.8;font-weight:600}.homework-instructions[open]>summary,.homework-attempts[open]>summary{border-bottom:1px solid #DFEBF4}.homework-instructions .panel-pad>h3{margin-top:23px}.homework-instructions .panel-pad>.homework-muted{margin-top:20px}.homework-attempts article+article{padding-top:24px;margin-top:24px;border-top:1px solid #CBDDEA}.homework-attempts article>h3{margin-bottom:5px}.homework-attempts article>.homework-muted{margin-bottom:15px}.homework-recovery{padding:20px 22px;border:1px solid #DEC99F;background:#FFF8E8;border-radius:12px}.homework-recovery h2{font-size:15px;line-height:1.7}.homework-recovery p{font-size:12px;line-height:1.9;color:#715527;margin-top:8px}.homework-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}.homework-recovery>.button{margin-top:17px;white-space:normal}.homework-comparison{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.homework-comparison>section{padding:18px;border:1px solid var(--line);border-radius:10px;min-width:0}.homework-comparison h3{margin-bottom:12px}.homework-comparison .homework-text{max-height:280px;overflow:auto;font-size:12px}.homework-comparison .homework-files>li{flex-wrap:wrap}.homework-history{display:grid;gap:18px}.homework-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}.homework-history .panel-pad>p{font-size:12px;line-height:1.9;margin-top:8px}.homework-history .panel-pad>.button{margin-top:18px}.homework-page :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--blue);outline-offset:4px}.learning-homework-access{margin-top:23px;padding-top:19px;border-top:1px solid #CCDDEA}.learning-homework-access p{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:12px}.learning-homework-access .button{max-width:100%;white-space:normal}.learning-form select[name=submission_mode]{width:100%;font-size:14px;min-height:43px}.learning-form #learning-submission-help{display:block;color:var(--muted);font-size:11px;line-height:1.9;margin-top:8px}.homework-history-link{margin-top:16px;display:inline-flex;align-items:center;gap:8px;font-size:12px;line-height:1.8}
@media(max-width:1100px){.homework-layout{grid-template-columns:minmax(0,1fr)}.homework-aside{grid-template-columns:1fr 1fr}.homework-context{grid-template-columns:1fr 1fr;gap:16px}.homework-table th,.homework-table td{padding:16px}}
@media(max-width:640px){.homework-page .page-heading h1{font-size:25px}.homework-page .page-subtitle{font-size:12px;line-height:1.85}.homework-page .heading-actions{width:100%}.homework-page .heading-actions .button{width:100%;white-space:normal;min-height:44px}.homework-layout,.homework-main,.homework-aside{gap:19px}.homework-aside{grid-template-columns:1fr}.homework-page .panel-pad{padding:20px}.homework-page .panel-title{padding:19px 20px}.homework-context{grid-template-columns:1fr 1fr;gap:17px 15px}.homework-context dt{font-size:10px}.homework-context dd{font-size:12px}.homework-table{table-layout:fixed}.homework-table th,.homework-table td{padding:13px 9px}.homework-table thead th:first-child{width:35%}.homework-table thead th:nth-child(2){width:33%}.homework-table thead th:nth-child(3),.homework-table-date{display:none}.homework-table tbody th{font-size:12px;min-width:0}.homework-table tbody td:last-child{width:auto;white-space:normal}.homework-table .tag{font-size:10px}.homework-table .button{padding:8px 9px;min-height:42px;font-size:11px;white-space:normal}.homework-table .button .icon{display:none}.homework-table-note{padding:16px 18px}.homework-selection>header{align-items:flex-start;gap:10px}.homework-selection>header h2{font-size:19px}.homework-selection>header .tag{max-width:110px;flex-shrink:0}.homework-context-note,.homework-archive-note{font-size:11px;padding:15px 17px}.homework-editor textarea,.homework-editor select,.learning-form select[name=submission_mode]{font-size:16px}.homework-editor textarea{min-height:240px}.homework-editor .form-grid{gap:20px}.homework-text{font-size:13px}.homework-files>li{flex-wrap:wrap;padding:13px;gap:11px}.homework-file-actions{width:100%;padding-left:53px}.homework-file-actions .button{min-height:42px;flex:1;white-space:normal}.homework-savebar{padding:19px 20px;gap:16px}.homework-savebar>p{font-size:11px}.homework-savebar>div{gap:10px}.homework-savebar .button{width:100%;min-height:45px;font-size:12px}.homework-copy-files>.button{width:100%;min-height:44px}.homework-feedback{padding:18px}.homework-feedback h3{font-size:13px}.homework-classroom-action{display:block;padding:18px}.homework-classroom-action .button{margin-top:17px;width:100%;max-width:none;min-height:45px}.homework-instructions>summary,.homework-attempts>summary{padding:19px 20px;font-size:13px}.homework-recovery{padding:18px}.homework-recovery .button{min-height:43px;font-size:11px;white-space:normal}.homework-actions>.button{width:100%}.homework-comparison{grid-template-columns:1fr}.homework-history-heading{flex-wrap:wrap;gap:11px}.homework-history .panel-pad>.button{width:100%;min-height:44px}.learning-homework-access .button{width:100%;min-height:44px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.homework-page *{scroll-behavior:auto;transition:none;animation:none}}
@media print{.homework-page>.back-link,.homework-page .heading-actions,.homework-savebar,.homework-copy-files input,.homework-copy-files>.button,.homework-file-actions,.homework-recovery,.homework-classroom-action,.homework-table tbody td:last-child,.homework-table thead th:last-child{display:none!important}.homework-layout,.homework-aside{display:block}.homework-page .panel{box-shadow:none;break-inside:avoid;border-color:#aaa;margin-bottom:20px}.homework-feedback,.homework-context-note{background:none}.homework-text{font-size:11pt}.homework-aside{margin-top:20px}}
