/* R52L12: only Royal creation dialogs. No table/card/chat rules. */
body.sb-royal-create #create-table-drawer .r52l12-requirements-open{display:inline-block;max-width:100%;text-align:left;overflow-wrap:anywhere;white-space:normal;background:#293b2b;border:1px solid #bca16b;border-radius:6px;color:#ffe5a7;padding:4px 8px;min-height:28px;font:700 11px/1.3 system-ui,sans-serif;cursor:pointer;}
body.sb-royal-create #create-table-drawer .r52l12-requirements-open:disabled{opacity:.55;cursor:not-allowed;}
body.sb-royal-create #create-table-drawer .drawer-header>div{min-width:0;}
#r52l12-requirements-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(460px,calc(100vw - 20px));max-height:calc(100dvh - 16px);overflow:auto;padding:16px;border:1px solid #bca16b;border-radius:12px;background:#1a2e24;color:#fff4db;box-shadow:0 12px 40px #0009;font:400 14px/1.4 system-ui,sans-serif;}
#r52l12-requirements-dialog::backdrop{background:#06140cc7;}
#r52l12-requirements-dialog h2{margin:0 0 10px;color:#f2d59d;font:700 21px/1.2 Georgia,serif;}
#r52l12-requirements-dialog fieldset{margin:0;padding:0;border:0;min-width:0;}
#r52l12-requirements-dialog legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
#r52l12-requirements-dialog .sb-r52-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#r52l12-requirements-dialog label{display:grid;gap:4px;min-width:0;font-weight:600;}
#r52l12-requirements-dialog :is(select,input){box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:7px;border:1px solid #9a956d;border-radius:7px;background:#10231a;color:#fff4db;font:400 16px/1.2 system-ui,sans-serif;}
#r52l12-requirements-dialog :is(select,input,button):focus-visible,#r52l12-open:focus-visible{outline:2px solid #efcb82;outline-offset:2px;}
#r52l12-requirements-dialog .sb-r52-hint{margin:10px 0;font-size:12px;color:#d9d4c4;}
#r52l12-error{margin:6px 0;font-size:12px;color:#ffd2c5;overflow-wrap:anywhere;}
#r52l12-requirements-dialog .r52l12-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
#r52l12-requirements-dialog .r52l12-actions button{min-height:42px;padding:7px 8px;font-size:13px;}
@media(max-width:380px){#r52l12-requirements-dialog .sb-r52-fields{grid-template-columns:1fr;}#r52l12-requirements-dialog{padding:12px;}body.sb-royal-create #create-table-drawer .r52l12-requirements-open{font-size:10px;}}
/* Short narrow displays: keep the original controls, compact only this popup. */
@media (max-width:480px) and (max-height:560px){
 body.sb-royal-create #create-table-drawer.open{padding:7px!important;}
 body.sb-royal-create #create-table-drawer .drawer-header{margin-bottom:3px!important;padding-bottom:3px!important;}
 body.sb-royal-create #create-table-drawer .r52l12-requirements-open{min-height:24px;padding:2px 6px;}
 body.sb-royal-create #create-table-form{gap:4px!important;}
 body.sb-royal-create #create-table-form .choice-grid.deals-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card>span{padding:3px!important;min-height:34px!important;}
 body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card:has(input:checked)>span{padding-right:3px!important;}
 body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card:has(input:checked)>span::after{display:none!important;}
 body.sb-royal-create #create-table-form .switch-row{padding:4px 6px!important;min-height:36px!important;}
 body.sb-royal-create #create-table-form .switch-row small{display:none!important;}
 body.sb-royal-create #create-table-form>fieldset:nth-of-type(4){padding:4px!important;}
 body.sb-royal-create #create-table-form .sb-r24-pairs{display:none!important;}
 body.sb-royal-create #create-table-form .seat-selector>.sb-inv21-slot{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:3px!important;gap:3px!important;min-width:0!important;}
 body.sb-royal-create #create-table-form .seat-selector>.sb-inv21-slot::before{grid-column:1/-1;}
 body.sb-royal-create #create-table-form .seat-selector>.sb-inv21-slot>.seat-button,body.sb-royal-create #create-table-form .seat-selector>.sb-inv21-slot>.sb-inv21-seat-invite,body.sb-royal-create #create-table-form .seat-selector>.sb-inv21-slot>.sb-inv21-own-label{min-width:0!important;width:100%!important;height:30px!important;min-height:30px!important;padding:2px!important;font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
 body.sb-royal-create #create-table-form #seat-hint{margin:2px 0 0!important;}
}
@media (max-width:480px) and (max-height:560px){body.sb-royal-create #create-table-drawer #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .sb-r24-pairs{display:none!important;}}
