/* ======================================================================
   09-MODALS-FEEDBACK  -  Assessment/file components, AI feedback, modals, toasts
   ====================================================================== */

/* Assessment/file components, AI feedback, modal dialogs, and notifications. */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: safe center; overflow-y: auto; overscroll-behavior: contain; padding: 18px; background: #091a3699; }
.modal { width: min(720px, 100%); max-height: min(90vh, 850px); max-height: min(90dvh, 850px); min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: var(--shadow); }
.modal > form { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
.modal-head, .modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 19px; }
.modal-head { border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.modal-head > button { border: 0; color: var(--muted); background: transparent; font-size: 24px; }
.modal-body { min-height: 0; display: grid; flex: 1 1 auto; gap: 14px; overflow-y: auto; overscroll-behavior: contain; padding: 17px 19px; }
.modal-foot { justify-content: flex-end; border-top: 1px solid var(--line); }
.choice-fields { display: grid; gap: 8px; }
.choice-entry { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 8px; }
.choice-entry input[type=radio] { accent-color: var(--blue); }
.choice-entry input[type=text] { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; }
.field-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.inline-feedback:not(:empty) { display: grid; gap: 8px; margin-top: 10px; }
.inline-feedback ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 10px; }
.inline-feedback .suggestion { padding: 10px 12px; border-radius: 8px; background: #f5f8fc; }
.inline-feedback .suggestion p { margin-bottom: 0; }
.check-row { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 10px; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 8px; }
.toast { max-width: min(380px, calc(100vw - 36px)); padding: 12px 15px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); font-size: 12px; }
.mobile-menu, .sidebar-scrim { display: none; }
