/* Modals live outside the main shell: size their icons explicitly. */
.modal [hidden]{display:none!important}
.modal button>svg,.modal a>svg{width:20px;height:20px;min-width:20px;flex:0 0 20px}
.modal .modal-head>[data-close]{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;min-width:40px;max-width:40px;height:40px;min-height:40px;padding:0}
.more-dialog34{max-width:520px!important}
.more-dialog34 .modal-head{flex-shrink:0}
.more-list34{display:flex;flex-direction:column;gap:7px;min-width:0}
.more-row34{width:100%;display:flex;align-items:center;gap:12px;min-height:54px;padding:10px 14px;border:1px solid #e2e8f2;border-radius:13px;background:#f7f9fd;text-align:left;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;color:#243d60;cursor:pointer;box-sizing:border-box}
.more-row34:hover,.more-row34:focus-visible{background:#edf2ff;border-color:#a9bdf2}
.more-icon34{display:flex;width:34px;height:34px;min-width:34px;flex:0 0 34px;align-items:center;justify-content:center;background:#eaf0fc;border-radius:10px;color:#4368ad}
.more-icon34 svg{display:block;width:21px!important;height:21px!important;min-width:21px;max-width:21px;flex:none}
.more-row34>span:nth-child(2){min-width:0;overflow-wrap:break-word;flex:1}
.more-arrow34{font-size:22px;color:#8393ad}
.portal-shell31 .student-settings34{position:absolute;right:12px;top:12px;display:flex;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;padding:9px;border:1px solid var(--edge33,#cbd6e8);border-radius:12px;background:#ffffffd9;color:var(--accent33,#385d9c);cursor:pointer}
.student-settings34 svg{display:block;width:21px!important;height:21px!important;flex:0 0 21px}
.portal-shell31 .student-card31 .student-head31{padding-right:44px}
.portal-shell31 .student-head31>div{min-width:0}
.student-options34{display:flex;flex-direction:column;gap:9px}
.student-options34>.btn{width:100%;justify-content:flex-start;min-height:46px;gap:10px;text-align:left}
.time-dialog34{display:flex;flex-direction:column;overflow:hidden!important;max-height:calc(100dvh - 32px);min-height:0}
.time-dialog34>.modal-head{flex:0 0 auto;align-items:flex-start;gap:12px}
.time-dialog34>.modal-head h2{font-size:24px;line-height:1.25;min-width:0}
.time-dialog34>.modal-head [data-close]{flex-shrink:0}
.time-dialog34 #timeForm34{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden;margin:0}
.time-fields34{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 3px 0 0}
.time-fields34>.muted{margin:0 0 16px;font-size:13px;line-height:1.5}
.time-dialog34 input,.time-dialog34 select,.time-dialog34 textarea{box-sizing:border-box;min-width:0;max-width:100%;width:100%;font-size:16px}
.time-dialog34 input[type=date]{display:block;-webkit-appearance:none;appearance:none;text-align:left;min-height:46px}
.time-dialog34 input[type=date]::-webkit-date-and-time-value{text-align:left}
.time-dialog34 .form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.time-dialog34 .field{min-width:0;margin-bottom:12px}
.time-dialog34 .presets32{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.time-dialog34 .presets32 .btn{width:auto;flex:0 0 auto;min-height:40px;white-space:nowrap;font-size:12px;padding:9px 12px}
.time-dialog34 textarea{min-height:72px}
.time-dialog34 .note31{font-size:12px;line-height:1.5;padding:12px;margin:10px 0}
.time-footer34{position:relative;z-index:1;flex:0 0 auto;border-top:1px solid #e0e7f1;background:#fff;padding-top:12px;margin-top:6px}
.time-error34{color:#ab2944;font-size:13px;line-height:1.5;margin:0 0 10px;overflow-wrap:break-word}
.time-error34:empty{display:none}
.time-footer34 .actions31{display:flex;flex-wrap:wrap;gap:8px}
.time-footer34 .actions31>.btn{min-height:46px}
.time-conflict34{border:1px solid #e5c787;background:#fff9eb;padding:12px;border-radius:12px;margin-bottom:0}
.time-conflict34 h3{font-size:15px;margin:0 0 6px;color:#715014}
.time-conflict34 p{font-size:13px;line-height:1.45;margin:0 0 10px;color:#695a40}
.time-conflict34 .btn{width:100%;min-height:44px;margin-top:6px;white-space:normal}
@media(max-width:700px){
 .time-dialog34{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:18px 16px!important}
 .time-dialog34>.modal-head h2{font-size:21px}
 .time-dialog34 .form-grid{grid-template-columns:minmax(0,1fr)}
 .time-footer34 .actions31>.btn{width:100%}
 .portal-shell31 .student-settings34{top:10px;right:10px}
}
