:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#22334c;background:#f5f7fa;font-size:15px}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}p{line-height:1.5}h1,h2,h3{line-height:1.15;letter-spacing:-.025em}h1{font-size:clamp(1.65rem,3vw,2.2rem);margin:0 0 22px}h2{font-size:1.24rem;margin:0 0 20px}hr{border:0;border-top:1px solid #e7ebf1;margin:24px 0}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{min-height:74px;background:#071f3a;display:flex;align-items:center;gap:34px;padding:10px clamp(22px,4vw,70px);color:#fff}.logo{display:flex;align-items:center;gap:11px;white-space:nowrap;font-size:1.14rem;font-weight:700;letter-spacing:.04em}.logo-icon{width:35px;height:35px;background:#f4bd4d;color:#08213e;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;font-weight:1000}.logo strong{color:#f4bd4d}.topnav{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-left:auto}.topnav a{font-size:.89rem;color:#c6d4e5}.topnav a:hover{color:#fff}.user-chip{display:flex;align-items:center;gap:13px;border-left:1px solid #28405b;padding-left:24px;font-size:.83rem;white-space:nowrap}.inline-form{display:inline}.link-button{border:0;background:transparent;color:#f4bd4d;padding:0}.main{width:min(1320px,calc(100% - 48px));margin:42px auto;flex:1}.footer{text-align:center;color:#8792a3;font-size:.77rem;padding:24px}.btn{border:1px solid transparent;border-radius:11px;font-size:.9rem;font-weight:700;padding:13px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;white-space:normal}.btn.primary{background:#006c77;color:#fff}.btn.primary:hover{background:#00555f}.btn.secondary{background:white;color:#135268;border-color:#d9e4e9}.btn.secondary:hover{background:#f0f9fa}.btn.danger{color:#a32634;background:#fff1f2;border-color:#ffd6dc}.btn.tiny{padding:6px 10px;min-height:30px;font-size:.76rem;border-radius:7px}.btn.full{width:100%;margin-top:12px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 20px}.section-head p{color:#62718a}.eyebrow,.kicker{color:#00838f;font-weight:850;font-size:.74rem;letter-spacing:.11em;margin:0 0 10px;text-transform:uppercase}.muted,.hint{color:#8090a5;font-size:.84rem}.hint{line-height:1.5}.lead{font-size:1.02rem;color:#5c6d84;max-width:900px;margin-bottom:27px}.event-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:19px}.event-card,.panel,.quick-card,.event-summary,.report-round{background:#fff;border:1px solid #e2e7ef;box-shadow:0 7px 28px rgba(15,29,49,.035);border-radius:17px;overflow:hidden}.event-card{transition:transform .2s,box-shadow .2s}.event-card:hover{transform:translateY(-3px);box-shadow:0 13px 30px rgba(15,29,49,.08)}.event-card img{width:100%;height:195px;object-fit:cover}.event-placeholder{height:195px;background:linear-gradient(135deg,#06324f,#00646f);display:grid;place-items:center;color:#ffc568;font-size:3rem;font-weight:1000;letter-spacing:.1em}.event-content{padding:22px}.event-content h2{margin:0 0 12px}.event-content p{margin:0;color:#79869b}.empty-state{border:1px dashed #cbd5e1;border-radius:16px;padding:40px;text-align:center;color:#71829a}.event-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px;margin:20px 0 26px}.event-summary h2{font-size:1.8rem;margin:0}.event-summary p:not(.eyebrow){margin:11px 0 0;color:#8090a5}.quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px}.quick-card{padding:24px;display:flex;flex-direction:column;gap:12px;min-height:190px}.quick-card:hover{border-color:#00a0a6}.quick-card strong{font-size:1.05rem}.quick-card span:last-child{color:#8390a0;font-size:.87rem;line-height:1.5}.quick-icon{font-size:2.5rem;color:#00868c}.section-title{margin-top:42px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:.89rem}th{background:#edf3f7;color:#4e637b;font-size:.76rem;letter-spacing:.04em;text-transform:uppercase;font-weight:750;padding:14px 13px}td{border-bottom:1px solid #eaf0f4;padding:14px 13px;vertical-align:top}.status{border-radius:50px;display:inline-block;padding:5px 10px;font-size:.73rem;font-weight:800;background:#e4ebf8;color:#526485;white-space:nowrap}.status.active{background:#daf6ef;color:#08745c}.status.completed{background:#dcefe9;color:#08634d}.status.pending{background:#fff3d6;color:#856009}.two-cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:23px;align-items:start}.panel{padding:27px}.form-stack{display:flex;flex-direction:column;gap:18px}.form-stack label{font-size:.86rem;color:#4c6177;font-weight:650;display:flex;flex-direction:column;gap:8px}.form-stack input,.form-stack textarea,.form-stack select,.auth-box input{width:100%;border:1px solid #cdd8e1;background:#fff;border-radius:9px;padding:12px 13px;outline:0;color:#25354b}.form-stack input:focus,.form-stack textarea:focus,.form-stack select:focus,.auth-box input:focus{border-color:#0098a3;box-shadow:0 0 0 3px rgba(0,153,163,.12)}.form-stack textarea{resize:vertical;min-height:160px}.form-stack input[type=file]{padding:11px;background:#f9fbfc}.poster-preview{width:100%;max-height:260px;object-fit:contain;border:1px solid #e7eff4;border-radius:10px;background:#eff5f8}.side-link{display:flex;flex-direction:column;gap:4px;padding:13px 0;border-bottom:1px solid #e8eef3;font-weight:700}.side-link:hover{color:#00818a}.side-link span{font-size:.78rem;color:#90a0ad;font-weight:450}.image-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:13px 0}.image-mini{border:1px solid #e8eef3;border-radius:9px;padding:8px}.image-mini img{width:100%;height:105px;object-fit:contain}.image-mini p{margin:2px 0 9px;font-size:.74rem;color:#687889}.action-footer{display:flex;justify-content:flex-end;margin:22px 0}.form-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.stage-rows{display:flex;flex-direction:column;gap:12px}.stage-row{border:1px solid #e1e8ed;background:#f8fbfc;padding:13px;border-radius:12px;display:grid;grid-template-columns:1fr 1.2fr;gap:12px}.stage-row label:nth-child(3){grid-column:1/-1}.stage-row .remove-stage{justify-self:start}.round-list-item{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:15px 0;border-bottom:1px solid #edf1f5}.round-list-item>div{display:flex;align-items:center;flex:1;flex-wrap:wrap;gap:9px}.mt{margin-top:26px}.check-line{display:flex!important;flex-direction:row!important;align-items:center;gap:10px!important;font-weight:500!important;margin-bottom:10px}.check-line input{width:auto!important}.form-stack fieldset{border:1px solid #dce6ee;border-radius:12px;padding:15px}.form-stack legend{color:#456078;font-weight:800;font-size:.87rem}.flash{padding:14px 18px;margin-bottom:18px;border-radius:9px;background:#e0f5ee;color:#176651;font-weight:650}.flash.error{background:#fce8e8;color:#9b2731}.auth-body{min-height:100vh;background:radial-gradient(circle at 10% 10%,#0c5663 0,#092a47 35%,#05162c 100%);display:grid;place-items:center;padding:20px}.auth-box{width:min(460px,100%);padding:40px;background:#fff;border-radius:22px;box-shadow:0 25px 80px rgba(0,0,0,.26)}.auth-brand{font-size:1.8rem;color:#052b49;font-weight:900;margin:0 0 26px}.auth-brand strong{color:#bd8a31}.auth-box h1{margin:6px 0 26px}.auth-box>p:not(.eyebrow){color:#76879d}.auth-box label{display:flex;flex-direction:column;gap:7px;margin-bottom:17px;font-size:.87rem;font-weight:700;color:#56677c}.auth-box code{font-size:.8rem}.report-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}.report-actions h2{font-size:1.5rem;margin:0}.report-actions p:not(.eyebrow){color:#8491a2}.report-buttons{display:flex;flex-wrap:wrap;gap:9px}.report-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.report-stats>div{background:#fff;border-radius:13px;border:1px solid #e5edf2;padding:20px;display:flex;flex-direction:column;gap:8px}.report-stats span{color:#768a9c;font-size:.8rem}.report-stats strong{font-size:1.7rem;color:#064a5c}.report-round{margin-bottom:22px;break-inside:avoid}.report-round-head{padding:19px 24px;background:#edf4f6;display:flex;align-items:center;justify-content:space-between;gap:12px}.report-round-head h2{margin:0}.report-inner{padding:20px 24px}.report-stage{padding:20px 0;border-bottom:1px solid #e3eaee;break-inside:avoid}.report-stage-title{display:flex;justify-content:space-between;gap:10px;align-items:center}.report-stage-title strong{display:block;font-size:1.06rem}.report-stage-title small{display:block;color:#617488;font-size:.85rem;margin-top:6px}.winning-pill{background:#fff0bf;color:#764f00;padding:8px 12px;border-radius:50px;font-size:.82rem;font-weight:800}.report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:17px 0}.report-metrics div{padding:13px;border:1px solid #e5edf2;border-radius:9px;color:#78889c;font-size:.73rem}.report-metrics strong{display:block;font-size:1.25rem;color:#183c4c;margin-top:8px}.report-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.07em;color:#718397;font-weight:800;margin:17px 0 8px}.report-numbers{font-size:.87rem;line-height:1.75;color:#0d485c;font-weight:700;overflow-wrap:anywhere}.report-numbers.thin{font-weight:450;color:#50677c}.report-footnote{font-size:.82rem;color:#667b8a;margin-top:20px}@media(max-width:900px){.topbar{flex-wrap:wrap;gap:15px;padding:16px 22px}.topnav{margin-left:0}.user-chip{border:0;padding:0;margin-left:auto}.two-cols{grid-template-columns:1fr}.report-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:580px){.main{width:calc(100% - 24px);margin:24px auto}.topnav{order:3;overflow-x:auto;flex-wrap:nowrap;width:100%}.event-summary,.section-head,.report-actions{flex-direction:column;align-items:stretch}.stage-row,.report-metrics,.report-stats{grid-template-columns:1fr 1fr}.stage-row label{grid-column:1/-1}.panel{padding:18px}.report-buttons{flex-direction:column}.report-stage-title{flex-wrap:wrap}}@media print{@page{size:A4 portrait;margin:13mm}body{background:#fff;color:#111!important;font-size:10pt}.topbar,.footer,.report-buttons,.quick-grid,.report-actions+.report-stats+.quick-grid{display:none!important}.app-shell,.main{display:block;width:100%;margin:0!important;min-height:auto}.main>h1{display:none}.report-round{box-shadow:none;border:1px solid #ccd;break-inside:avoid}.report-round-head,.report-metrics>div,.report-stats>div{-webkit-print-color-adjust:exact;print-color-adjust:exact}.report-stats{gap:5px}.report-stats>div{padding:10px}.report-stats strong{font-size:1.1rem}.report-stage{padding:9px 0}.report-inner{padding:14px}.report-round-head{padding:12px}.report-metrics{gap:6px}.report-metrics div{padding:7px}.report-metrics strong{font-size:1rem}.report-numbers{font-size:.8rem}.report-footnote{font-size:8pt}}

/* BINGO SHOW — confirmação de arquivamento e relatório A4 otimizado */
.btn:disabled{opacity:.48;cursor:not-allowed}
.report-archive-panel{margin:24px 0;background:#f8fcfe;border:1px solid #d3e9e9}
.report-archive-panel h2{margin:0 0 10px}
.report-archive-panel p{color:#4c6177;line-height:1.5}
.archive-form{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:14px}
.archive-form label{display:flex;align-items:center;gap:10px;color:#3c5369;max-width:100%}
.archive-form input[type=checkbox]{width:17px;height:17px;flex-shrink:0}
.delete-event-form{margin-top:18px;padding-top:16px;border-top:1px solid #d6e5e9}
.delete-event-form label{align-items:flex-start;flex-direction:column;gap:9px;width:min(550px,100%)}
.delete-event-form input[type=text],.delete-event-form input:not([type]){width:100%;padding:12px;border:1px solid #b8cbd4;border-radius:10px}
.archive-ok{color:#08704d!important;font-weight:750}
.print-cover,.print-pages{display:none}
@media print{
 @page{size:A4 portrait;margin:9mm}
 body{background:#fff!important;color:#142a3a!important;font-size:8pt}
 .main{width:100%;margin:0!important}
 .topbar,.footer,.main>h1,.flash,.report-actions,.report-stats,.report-archive-panel,.report-rounds-screen,.empty-state,.report-footnote{display:none!important}
 .print-cover,.print-pages{display:block!important}
 .print-cover{min-height:270mm;position:relative;break-after:page;page-break-after:always;padding:9mm 5mm 10mm}
 .print-topline{font-size:10pt;font-weight:900;color:#0a5d68;letter-spacing:.14em;border-bottom:2px solid #d3e5e8;padding-bottom:5mm}
 .print-cover h1{font-size:23pt;line-height:1.12;letter-spacing:-.03em;color:#09283b;margin:13mm 0 4mm}
 .print-meta{font-size:9pt;color:#587083;margin-bottom:17mm}
 .print-cover h2{font-size:12pt;color:#173d54;margin:8mm 0 3mm}
 .print-summary-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3mm}
 .print-summary-stats>div{border:1px solid #cbdde4;border-radius:2mm;padding:4mm;font-size:7.5pt;color:#567083}
 .print-summary-stats strong{display:block;font-size:16pt;color:#072b40;margin-top:3mm}
 .print-summary-table{width:100%;border-collapse:collapse;font-size:8pt}
 .print-summary-table th{background:#e8f2f6!important;color:#163f52;font-size:7.5pt;padding:2.2mm 1.8mm;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .print-summary-table td{padding:2mm 1.8mm;border-bottom:1px solid #dbe4e8}
 .print-cover-note{font-size:8.5pt;color:#36596e;margin:9mm 0 0;line-height:1.5}
 .print-cover-foot{position:absolute;bottom:0;left:5mm;right:5mm;border-top:1px solid #bdcfd7;color:#607887;padding-top:3mm;font-size:7pt;text-align:center}
 .print-sheet{min-height:270mm;break-after:page;page-break-after:always;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:2mm;align-content:stretch}
 .print-sheet:last-child{break-after:auto;page-break-after:auto}
 .print-round{border:1px solid #bdcfd7;border-radius:2mm;overflow:visible;padding:2.2mm 3.2mm;break-inside:avoid;page-break-inside:avoid;min-height:0}
 .print-round-header{display:flex;justify-content:space-between;align-items:center;gap:6mm;background:#edf4f6!important;margin:-2.2mm -3.2mm 1.7mm;padding:2mm 3.2mm;font-size:9pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .print-round-header span{font-size:7pt;color:#405e71}
 .print-stage{padding:1.4mm 0;border-bottom:1px solid #e1e8eb;break-inside:avoid}
 .print-stage-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:2mm 5mm;font-size:8pt}
 .print-stage-title strong{color:#0d4559}
 .print-stage-title span{color:#425869;font-size:7.5pt}
 .print-stage-info{font-size:7pt;color:#243c4c;margin-top:.7mm;line-height:1.33}
 .print-stage-info b{font-weight:800}
 .print-stage-balls{font-size:7.2pt;line-height:1.25;letter-spacing:.005em;color:#1c4256;overflow-wrap:anywhere;margin-top:.8mm}
 .print-stage-balls>b{color:#63798b}
 .print-round-foot{font-size:6.8pt;color:#5e7585;margin:2mm 0 0}
}

/* Patrocinadores — cadastro individual de ordem e tempo */
.sponsor-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:17px}
.sponsor-admin-card{border:1px solid #dbe5ed;border-radius:13px;padding:15px;background:#f8fbfd;display:flex;flex-direction:column;gap:12px}
.sponsor-admin-card>img{display:block;width:100%;height:185px;object-fit:contain;background:#fff;border:1px solid #dde6ee;border-radius:10px}
.sponsor-admin-card .form-stack{gap:10px}
.sponsor-admin-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sponsor-admin-fields input{padding:9px}
.sponsor-delete-form{margin-top:auto}

/* Diagnóstico de uploads do BINGO SHOW (V3.1) */
.upload-status-list{display:grid;gap:10px;margin:18px 0 24px}
.upload-status{border-radius:10px;border:1px solid #cbd9e3;background:#f3f8fa;padding:14px 17px}
.upload-status strong{display:block;color:#17304a}
.upload-status span{font-size:.82rem;font-weight:800}
.upload-status.ok{border-color:#92c5a8;background:#ecfaf2}
.upload-status.ok span{color:#176b43}
.upload-status.error{border-color:#f0a0a4;background:#fff0f0}
.upload-status.error span{color:#a21f32}
.upload-status p{margin:.3rem 0 0;font-size:.9rem}

/* V3.3 — Painel aberto dentro da tela de projeção: sem cabeçalho duplicado. */
body.embedded-panel .topbar{min-height:43px;padding:7px clamp(12px,2.4vw,28px);gap:8px;background:#e9f1f7;color:#16384e;border-bottom:1px solid #cbdde8;justify-content:flex-start;box-shadow:none}
body.embedded-panel .topbar .logo{display:none!important}
body.embedded-panel .topbar .user-chip{display:flex!important;align-items:center;margin-left:auto;border:0;padding:0;background:transparent;color:#15465e;font-size:0}
body.embedded-panel .topbar .user-chip .link-button{font-size:.85rem;color:#15465e;font-weight:750}
body.embedded-panel .topbar .topnav{display:flex;flex:1;gap:clamp(10px,2vw,25px);align-items:center;margin:0;overflow-x:auto;white-space:nowrap}
body.embedded-panel .topbar .topnav a{font-size:.86rem;font-weight:750;color:#15465e;padding:6px 2px}
body.embedded-panel .topbar .topnav a:hover{color:#087a8b}
body.embedded-panel .main{margin-top:clamp(16px,2vw,26px)}
@media(max-width:600px){body.embedded-panel .topbar{padding:7px 12px}body.embedded-panel .topbar .topnav{order:initial;gap:13px}}
@media print{body.embedded-panel .topbar{display:none!important}}
