/* The dialog owns its header/footer; only the middle step scrolls. */
.table-wizard-dialog{width:calc(100% - 24px);max-width:min(760px,calc(100vw - 24px - var(--app-safe-left,0px) - var(--app-safe-right,0px)));height:min(760px,calc(100dvh - 24px - var(--app-safe-top,0px) - var(--app-safe-bottom,0px)));max-height:calc(100dvh - 24px - var(--app-safe-top,0px) - var(--app-safe-bottom,0px));padding:0;border:1px solid #d6b36b66;border-radius:12px;background:#20291f;color:var(--ivory);overflow:hidden;box-shadow:0 20px 70px #0009}
.table-wizard-dialog[open]{display:flex;flex-direction:column}
.table-wizard-dialog::backdrop{background:#0b180fdb;backdrop-filter:blur(4px)}
.wizard-header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:0 0 auto;padding:18px 22px 12px}
.wizard-header>div{min-width:0}.wizard-header h2{font:normal 27px/1.15 Georgia,serif;margin:3px 0 0;overflow-wrap:anywhere}
.wizard-header .wizard-step-count{margin:0;font-size:11px;line-height:15px;color:var(--gold)}
.wizard-close{flex:0 0 auto;min-width:64px;min-height:44px;padding:8px 11px;font-size:13px}
.wizard-progress{display:flex;justify-content:space-between;gap:8px;list-style:none;flex:0 0 auto;margin:0;padding:0 22px 12px;border-bottom:1px solid #d6b36b26}
.wizard-progress li{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px;color:var(--muted)}
.wizard-progress li>span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;border:1px solid #d6b36b44;font-size:11px}
.wizard-progress [aria-current=step]{color:var(--gold);font-weight:700}.wizard-progress [aria-current=step]>span{color:#1b3025;background:var(--gold)}
.wizard-content{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 22px;scroll-padding:16px}
.wizard-fieldset{min-width:0;margin:0 0 18px;padding:12px 14px 14px;border:1px solid #d6b36b33;border-radius:8px}
.wizard-fieldset>legend{padding:0 6px;font-size:12px;color:var(--gold)}
.wizard-content label{font-size:13px;margin:8px 0 14px}.wizard-content label:last-child{margin-bottom:0}
.wizard-content :is(input,select){font-size:16px;min-height:44px;min-width:0;max-width:100%;margin-top:6px}
.wizard-content .wizard-help{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0 0}
.wizard-content .wizard-intro{font-size:14px;line-height:1.5;margin:0 0 16px;color:var(--ivory)}
.wizard-settings{min-width:0}.wizard-settings fieldset{min-width:0}.wizard-settings .config-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.wizard-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wizard-presets>button{min-height:44px;min-width:44px;padding:8px;font-size:12px;line-height:16px;text-align:center}
.wizard-presets [aria-pressed=true]{border-color:var(--gold);background:#d6b36b1c;color:#f6e7bc}
.wizard-seat-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:'. front .' 'left center right' '. host .';gap:10px;align-items:stretch;max-width:650px;margin:0 auto}
.wizard-seat-map-2{grid-template-columns:minmax(0,1fr);grid-template-areas:'front' 'center' 'host';max-width:300px}
.wizard-seat-map-2 .wizard-table-center{min-height:48px}
.wizard-seat-map-4 .wizard-seat-position-0,.wizard-seat-map-2 .wizard-seat-position-0{grid-area:host}
.wizard-seat-map-4 .wizard-seat-position-1{grid-area:right}.wizard-seat-map-4 .wizard-seat-position-2{grid-area:front}.wizard-seat-map-4 .wizard-seat-position-3{grid-area:left}.wizard-seat-map-2 .wizard-seat-position-1{grid-area:front}
.wizard-table-center{grid-area:center;display:grid;place-items:center;min-height:110px;border:2px solid #856945;border-radius:45%;background:radial-gradient(ellipse,#23543c,#143627);color:#dfc68c;font:italic 17px Georgia,serif}
.wizard-seat{min-width:0;margin:0;padding:9px;border:1px solid #d6b36b44;border-radius:8px;background:#263125}
.wizard-seat>legend{max-width:100%;padding:0 3px;font-size:11px;line-height:15px;color:var(--gold)}
.wizard-seat-role{display:block;font-size:10px;line-height:14px;color:var(--muted);margin-bottom:5px}
.wizard-seat .wizard-seat-label{font-size:10px;margin:4px 0 0}.wizard-seat select{width:100%;min-width:0;padding:8px 22px 8px 5px;font-size:13px;line-height:16px;background-position:calc(100% - 14px) 50%,calc(100% - 9px) 50%}
.wizard-host-seat{width:100%;min-height:44px;padding:6px;font-size:15px;font-weight:700}.wizard-host-seat:disabled{opacity:1;cursor:default;border-color:#d6b36b77;color:#e7d3a4}.wizard-host-seat>span{display:block;font-size:10px;font-weight:400;line-height:14px;margin-top:3px}
.wizard-seat-person{display:block;font-size:11px;line-height:15px;overflow-wrap:anywhere;margin-top:6px;color:var(--ivory)}
.wizard-content .wizard-seat-count{font-size:13px;line-height:18px;color:var(--gold);margin:16px 0;text-align:center}
.wizard-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.wizard-teams>p{font-size:12px;line-height:1.5;margin:0;padding:9px;background:#ffffff05;border:1px solid #d6b36b26;border-radius:6px;overflow-wrap:anywhere}.wizard-teams strong{display:block;color:var(--gold)}
.wizard-review{margin-bottom:18px}.wizard-review-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.wizard-review h3{font:normal 23px Georgia,serif;margin:0}.wizard-review-heading .wizard-seat-count{margin:0;text-align:left}
.wizard-review-seats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;list-style:none;padding:0;margin:12px 0}
.wizard-review-seats>li{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:44px;padding:7px 0;border-bottom:1px solid #d6b36b22;font-size:13px}
.wizard-review-seats>li>span{font-size:11px;color:var(--muted)}.wizard-review-seats strong{overflow-wrap:anywhere}
.wizard-name-options{margin:0;border-top:1px solid #d6b36b26}.wizard-name-options>summary{display:list-item;min-height:44px;padding:12px 0;cursor:pointer;font-size:13px;color:var(--gold)}.wizard-name-options>label{display:block;margin-top:0}
.table-wizard-dialog>.wizard-footer{display:flex;justify-content:space-between;gap:10px;flex:0 0 auto;width:100%;max-width:none;margin:0;padding:12px 22px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #d6b36b33;background:#20291f;font-size:13px;letter-spacing:0}
.wizard-footer>button{min-height:44px;min-width:44px;margin:0;padding:9px 14px;font-size:14px}.wizard-footer>.primary{flex:1;max-width:330px}
.wizard-waiting-layout{max-width:650px;margin:12px auto}
.wizard-seat-preview{min-width:44px;min-height:88px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:10px;background:#263125}
.wizard-seat-preview:disabled{opacity:1;cursor:default}.wizard-seat-preview>.wizard-seat-position{font-size:10px;color:var(--gold)}.wizard-seat-preview>strong{font-size:13px;line-height:17px;overflow-wrap:anywhere}.wizard-seat-preview>.wizard-seat-role{margin:0}
.wizard-edit-layout{display:block;min-height:44px;min-width:44px;margin:14px auto 0;font-size:13px}
@media(max-width:650px){
 .table-wizard-dialog{width:calc(100% - 16px);max-width:calc(100vw - 16px - var(--app-safe-left,0px) - var(--app-safe-right,0px));height:calc(100dvh - 16px - var(--app-safe-top,0px) - var(--app-safe-bottom,0px));max-height:calc(100dvh - 16px - var(--app-safe-top,0px) - var(--app-safe-bottom,0px))}
 .wizard-header{padding:12px 14px 8px;gap:8px}.wizard-header h2{font-size:23px}.wizard-header .wizard-step-count{font-size:10px;line-height:13px}
 .wizard-progress{padding:0 14px 9px;gap:6px}.wizard-progress li{font-size:11px;gap:4px}.wizard-progress li>span{width:21px;height:21px;font-size:10px}
 .wizard-content{padding:14px}.wizard-fieldset{padding:10px}.wizard-content .wizard-intro{font-size:13px}.wizard-settings .config-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wizard-seat-map{gap:7px}.wizard-seat{padding:7px 5px}.wizard-seat>legend{font-size:9px;line-height:13px}.wizard-seat-role{font-size:9px;line-height:12px}.wizard-seat select{font-size:16px;padding-left:3px}.wizard-host-seat{font-size:13px}.wizard-host-seat>span{font-size:9px;line-height:12px}.wizard-table-center{min-height:100px;font-size:14px}
 .wizard-seat-person{font-size:10px;line-height:13px}.wizard-teams{gap:7px}.wizard-teams>p{font-size:11px;padding:7px}.wizard-content .wizard-seat-count{font-size:12px}
 .table-wizard-dialog>.wizard-footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom));gap:8px}.wizard-footer>button{font-size:13px;padding:8px 10px}
 .wizard-seat-preview{padding:8px 5px;min-height:88px}.wizard-seat-preview>strong{font-size:11px;line-height:15px}
}
.wizard-invite-actions{display:flex;gap:4px;margin-top:6px}.wizard-invite-actions>button{min-height:44px;min-width:44px;padding:4px;font-size:11px;flex:1}.wizard-invite-actions>[data-clear-seat-invite]{flex:0 0 44px}
.invite-seat-dialog .invite-seat-choices{display:grid;gap:10px;margin:18px 0}.invite-seat-dialog button{min-height:44px}.invite-seat-dialog #cancel-invite-seat{width:100%}
