/* The timetable's native dialogs share the same centred, bounded layout. */
html body dialog.tt-dialog{position:fixed;inset:0;margin:auto!important;box-sizing:border-box;width:min(680px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:18px;overflow:hidden}
html body dialog.tt-dialog:has(.td-plan-heading){width:min(800px,calc(100% - 24px))}
html body dialog.tt-dialog .tt-dialog-head{flex:none;min-width:0;gap:12px}
html body dialog.tt-dialog .tt-dialog-head h2{min-width:0;overflow-wrap:anywhere}
html body dialog.tt-dialog .tt-dialog-head>button{flex:none;min-width:44px;min-height:44px}
html body dialog.tt-dialog .tt-dialog-content{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scroll-padding:16px 16px 100px}
html body dialog.tt-dialog input,html body dialog.tt-dialog select,html body dialog.tt-dialog textarea{box-sizing:border-box;min-width:0;max-width:100%}
html body dialog.member-dialog:not(.social-dialog):not(.sah-camera):not(.booking-dialog){position:fixed;inset:0;margin:auto!important}
.tt-role-placement{min-width:0;display:grid;gap:12px;padding-bottom:8px}
.tt-role-placement .tt-field{display:grid;gap:6px;margin:0;font-weight:700;font-size:14px}
.tt-role-placement select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:48px;border:1px solid #aeb8bf;border-radius:10px;background:#fff;color:#171717;padding:10px;font:inherit;font-size:16px}
.tt-role-placement p{margin:0;overflow-wrap:anywhere}
.tt-role-placement-actions{display:flex;gap:10px;justify-content:flex-end;padding:16px 0;position:sticky;bottom:0;background:#fff}
.tt-role-placement-actions>button{min-height:48px;flex:1;min-width:0;white-space:normal}
.tt-class-role-actions .tt-role-fill{display:contents!important}
.tt-class-role-actions .tt-role-change-button{min-height:44px;padding:8px 12px}
@supports(padding:max(0px)){html body dialog.tt-dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}}
