/* 4.1.5 — Compact editors and tables in every reserved workflow. */
body.ftaps-app dialog.ft415-dialog { position:fixed; inset:0; margin:auto; padding:16px; border:0; background:transparent; color:inherit; width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; box-sizing:border-box; overflow:auto; }
body.ftaps-app dialog.ft415-dialog[open] { display:flex; align-items:center; justify-content:center; }
body.ftaps-app dialog.ft415-dialog::backdrop { background:rgba(15,23,42,.58); }
body.ftaps-app dialog.ft415-dialog .ft415-modal { width:min(920px,100%); max-width:100%; background:#fff; box-shadow:0 20px 70px #0f172a33; margin:auto; }
body.ftaps-app dialog.ft415-dialog .ft415-modal-wide { width:min(1180px,100%); }
body.ftaps-app.ftaps-app form.ft415-popup-form { display:block!important; min-width:0!important; width:100%!important; max-width:100%!important; padding:12px!important; gap:0!important; }
body.ftaps-app .ft415-popup-form > .ft411-editor-launch { margin:0!important; }
body.ftaps-app .ft415-launch-info { min-width:0; flex:1 1 220px; }
body.ftaps-app .ft415-form-summary { margin:4px 0 0!important; font-size:12px; color:#475569; line-height:1.5; overflow-wrap:anywhere; }
body.ftaps-app .ft415-launch-info [data-dirty=true] { color:#8a5800; }
body.ftaps-app .ft415-editor-body { display:flex; flex-direction:column; gap:14px; padding:20px 24px; min-width:0; width:100%; box-sizing:border-box; }
body.ftaps-app .ft415-editor-body > :is(h2,h3,h4) { margin:0; }
body.ftaps-app .ft415-editor-body > :is(.eyebrow,.ft415-hidden-heading) { display:none; }
body.ftaps-app .ft415-editor-body :is(fieldset,details,section) { min-width:0; max-width:100%; box-sizing:border-box; }
body.ftaps-app .ft415-editor-body fieldset { border:1px solid #e2e8f0; border-radius:10px; padding:14px; margin:0; }
body.ftaps-app .ft415-editor-body legend { font-size:13px; font-weight:700; padding:0 6px; color:#334155; }
body.ftaps-app .ft415-editor-body details > summary { cursor:pointer; padding:10px 0; font-weight:650; }
body.ftaps-app .ft415-editor-footer { position:sticky; bottom:0; z-index:5; display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; padding:12px 24px; border-top:1px solid #e2e8f0; background:#fff; }
body.ftaps-app .ft415-editor-footer small { flex:1 1 220px; color:#64748b; font-size:12px; }
body.ftaps-app details.ft415-editor-details > summary { display:none; }
body.ftaps-app .ft415-editor-launch button { text-align:left; }
body.ftaps-app .ft415-dialog button:focus-visible { outline:2px solid #2563eb; outline-offset:3px; }
body.ftaps-app.ftaps-app :is(.ftaps-content,.ftaps-modal,.ftaps-auth-content) form .ft411-fields > .ft411-field[data-ft411-size=check] { flex:1 1 13rem; align-self:center; }
body.ftaps-app.ftaps-app :is(.ftaps-content,.ftaps-modal,.ftaps-auth-content) form .ft411-fields > .ft411-field[data-ft411-size=file] { flex:1 1 20rem; }
body.ftaps-app form .ft411-fields > br { display:none; }
body.ftaps-app .ft411-field { box-sizing:border-box; }
body.ftaps-app .ft411-field > label { display:block; font-weight:600; margin-bottom:5px; }
body.ftaps-app .ft415-editor-body :is(.ftdoc-savebar,.ftm-row-actions,.form-actions,.ftm-form-actions,.oq-calendar-form-actions,.ftaps-form-footer) { display:flex!important; flex-wrap:wrap!important; gap:10px!important; align-items:center; }
body.ftaps-app .ft415-editor-body :is(.ftdoc-savebar,.form-actions,.ftm-form-actions,.oq-calendar-form-actions) { position:sticky; bottom:0; background:#fff; z-index:3; padding-block:10px; }
body.ftaps-app .ft415-editor-body table { width:100%; border-collapse:collapse; }
body.ftaps-app .ft415-editor-body :is(td,th) { padding:10px 12px; vertical-align:top; }
body.ftaps-app .ft415-editor-body td :is(input,select) { min-width:110px!important; }
body.ftaps-app .ft415-editor-body td input[type=number] { min-width:80px!important; max-width:120px!important; }
body.ftaps-app .ft415-editor-body td :is(input[type=checkbox],input[type=radio]) { min-width:18px!important; }
body.ftaps-app .ft415-table-scroll-tools { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin:8px 0; }
body.ftaps-app .ft415-table-scroll-tools[hidden] { display:none!important; }
body.ftaps-app .ft415-table-scroll-tools small { flex:1 1 180px; color:#64748b; }
body.ftaps-app .ft415-table-scroll-tools button { min-width:42px; min-height:42px; }
body.ftaps-app .ft415-overflow { border-inline-end:2px solid #cbd5e1; }
body.ftaps-app :is(.ft-table-tools,.ft-table-meta,.ft-table-pager) { min-width:0; max-width:100%; flex-wrap:wrap!important; gap:10px!important; }
body.ftaps-app .ft-table-tools { display:flex!important; align-items:flex-end; }
body.ftaps-app .ft-table-tools > .ft-table-search { flex:1 1 240px; min-width:0!important; max-width:520px; }
body.ftaps-app .ft-table-meta label { display:flex; align-items:center; gap:8px; }
body.ftaps-app .ft-table-meta select { width:auto!important; min-width:80px; }
body.ftaps-app .ft415-document-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); align-items:start; min-width:0; }
body.ftaps-app .ft415-document-layout > .ftdoc-preview-column { min-width:0; padding:16px; }
body.ftaps-app .ft415-document-layout .ftdoc-paper { width:100%; min-width:0; padding:24px 18px; }
@media(max-width:760px) {
 body.ftaps-app .ft415-document-layout { grid-template-columns:minmax(0,1fr); }
 body.ftaps-app .ft415-editor-body { padding:14px; }
 body.ftaps-app .ft415-editor-footer { padding:10px 14px; }
 body.ftaps-app .ft415-editor-launch > button { flex:1 1 100%; }
 body.ftaps-app .ft415-launch-info { flex-basis:100%; }
 body.ftaps-app .ft415-editor-body fieldset { padding:10px; }
}
@media(max-width:420px) {
 body.ftaps-app.ftaps-app :is(.ftaps-content,.ftaps-modal,.ftaps-auth-content) form .ft411-fields > .ft411-field[data-ft411-size=text],
 body.ftaps-app.ftaps-app :is(.ftaps-content,.ftaps-modal,.ftaps-auth-content) form .ft411-fields > .ft411-field[data-ft411-size=file] { flex-basis:100%; }
 body.ftaps-app .ft415-dialog .ft415-editor-body input,body.ftaps-app .ft415-dialog .ft415-editor-body select,body.ftaps-app .ft415-dialog .ft415-editor-body textarea { font-size:16px!important; }
}
@media print {
 body.ftaps-app .ft415-table-scroll-tools,body.ftaps-app .ft415-editor-footer,body.ftaps-app .ft415-editor-launch { display:none!important; }
 body.ftaps-app dialog.ft415-dialog[open] { position:static; height:auto; max-height:none; padding:0; }
 body.ftaps-app .ft415-document-layout { display:block; }
}

body.ftaps-app.ftaps-app :is(.ftaps-content,.ftaps-modal,.ftaps-auth-content) form .ft411-fields { flex-direction:row!important; }

/* Wonderbox management shares the reserved shell; the public prize page is unchanged. */
body.ftaps-workspace .staff-wonderbox-panel { width:100%; max-width:100%; min-width:0; }
body.ftaps-workspace .staff-wonderbox-panel > h2 { font-size:20px; color:var(--ink); margin:16px 0 8px; }
body.ftaps-workspace .wonderbox-participants-dashboard { background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:14px; padding:19px; margin:20px 0; box-shadow:0 2px 6px #16324d08; min-width:0; }
body.ftaps-workspace .wonderbox-dashboard-heading { flex-direction:row; align-items:center; flex-wrap:wrap; gap:16px; margin-bottom:16px; }
body.ftaps-workspace .wonderbox-dashboard-heading > div:first-child { flex:1 1 260px; min-width:0; }
body.ftaps-workspace .wonderbox-dashboard-heading h3 { color:var(--ink); font-size:18px; line-height:1.4; margin:4px 0; }
body.ftaps-workspace .wonderbox-dashboard-heading p:not(.eyebrow) { color:var(--muted); font-size:13px; }
body.ftaps-workspace .wonderbox-total-counter { flex:0 1 140px; min-width:0; min-height:78px; padding:14px; background:#eaf3fc; color:var(--blue); border:1px solid #d6e8fa; border-radius:11px; box-shadow:none; }
body.ftaps-workspace .wonderbox-total-counter strong { font-size:28px; font-weight:750; line-height:1.1; }
body.ftaps-workspace .wonderbox-total-counter span { font-size:12px; text-transform:none; letter-spacing:0; margin-top:4px; }
body.ftaps-workspace .wonderbox-dashboard-table code { background:#eef4fa; color:#175ca7; border-radius:6px; padding:5px 8px; font-size:13px; font-weight:650; letter-spacing:0; }
body.ftaps-workspace .wonderbox-dashboard-table tbody tr:hover { background:#f3f8fe; }
body.ftaps-workspace .wonderbox-staff-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:14px; width:100%; min-width:0; }
body.ftaps-workspace .wonderbox-admin-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))!important; gap:16px; margin:20px 0; }
body.ftaps-workspace .wonderbox-admin-grid > article { min-width:0; }
body.ftaps-workspace .wonderbox-admin-grid h3 { color:var(--ink); font-size:17px; line-height:1.4; }
body.ftaps-workspace .wonderbox-draw-card .winner-ticket { background:#eef6fd; color:var(--ink); border:1px solid #d6e8fa; border-radius:10px; padding:16px; }
body.ftaps-workspace .wonderbox-draw-card .winner-ticket span { color:var(--blue); letter-spacing:0; text-transform:none; font-size:13px; }
body.ftaps-workspace .wonderbox-draw-card .winner-ticket strong { font-size:22px; overflow-wrap:anywhere; }
body.ftaps-workspace .wonderbox-draw-card .winner-ticket small { color:var(--muted); }
body.ftaps-workspace .wonderbox-management-heading { flex-direction:row; align-items:center; flex-wrap:wrap; gap:12px; margin:24px 0 14px; }
body.ftaps-workspace .wonderbox-management-heading h3 { color:var(--ink); font-size:18px; }
body.ftaps-workspace .wonderbox-management-heading .staff-actions { width:auto; max-width:100%; }
body.ftaps-workspace .wonderbox-row-actions { gap:8px; }
body.ftaps-workspace .wonderbox-row-actions form { padding:0; background:transparent; border:0; box-shadow:none; }
@media(max-width:600px) {
 body.ftaps-workspace .wonderbox-participants-dashboard { padding:14px; }
 body.ftaps-workspace .wonderbox-dashboard-heading { align-items:stretch; }
 body.ftaps-workspace .wonderbox-total-counter { flex-basis:100%; flex-direction:row; gap:10px; min-height:60px; }
 body.ftaps-workspace .wonderbox-total-counter span { margin:0; }
 body.ftaps-workspace .wonderbox-admin-grid { grid-template-columns:minmax(0,1fr)!important; }
 body.ftaps-workspace .wonderbox-management-heading .staff-actions { width:100%; }
}
