/* Extraido de index.html (<style> base, tema inicial, responsividade e print). */

/* Tokens canônicos consolidados em css/avance-tokens.css. */
        body { background: radial-gradient(circle at 20% 0%, rgba(91,31,126,.32), transparent 30rem), linear-gradient(135deg, #12071A, #1F1F1F) !important; color: #FFFFFF !important; }
        .content-gradient { background: linear-gradient(90deg, #5B1F7E, #D4AF37, #7A35A3) !important; }
        .bg-blue-600, .bg-blue-700, .bg-blue-500, .hover\:bg-blue-700:hover, .hover\:bg-blue-600:hover, .hover\:bg-blue-500:hover { background-color: #5B1F7E !important; }
        .text-blue-400, .text-blue-300, .text-indigo-300, .text-purple-200 { color: #D4AF37 !important; }
        .bg-blue-500\/10, .bg-blue-500\/20, .bg-blue-950\/20, .bg-blue-950\/30, .bg-blue-950\/40, .bg-purple-950\/20, .bg-purple-950\/40 { background-color: rgba(91,31,126,.16) !important; }
        .border-blue-500\/20, .border-blue-500\/30, .border-blue-700, .border-blue-900\/40, .border-blue-900\/50, .focus\:border-blue-500:focus { border-color: rgba(212,175,55,.6) !important; }
        #loginScreen { background: radial-gradient(circle at 20% 18%, rgba(212,175,55,.14), transparent 22rem), radial-gradient(circle at 82% 0%, rgba(91,31,126,.56), transparent 28rem), linear-gradient(135deg, #12071A, #1F1F1F) !important; }
        body:not(.theme-light) #loginScreen .login-card, body:not(.theme-light) #sessionRestoreCard { background: linear-gradient(145deg, #26212A, #1E1724) !important; border-color: rgba(212,175,55,.35) !important; }
        body.theme-light #sessionRestoreCard { background: #ffffff !important; color: #1F1F1F !important; border-color: rgba(91,31,126,.18) !important; box-shadow: 0 22px 70px rgba(31,31,31,.16) !important; }
        body.theme-light #sessionRestoreCard h2, body.theme-light #sessionRestoreCard p { color: #1F1F1F !important; }
        body.theme-light { background: radial-gradient(circle at 0% 0%, rgba(91,31,126,.08), transparent 34rem), linear-gradient(135deg, #ffffff, #F8F6FA) !important; color: #1F1F1F !important; }
        body.theme-light .bg-gray-950, body.theme-light .bg-gray-900 { background-color: #F8F6FA !important; }
        body.theme-light .bg-gray-900\/50, body.theme-light .bg-gray-900\/30 { background-color: rgba(248,246,250,.82) !important; }
        body.theme-light .bg-gray-800, body.theme-light .bg-gray-700, body.theme-light .bg-gray-800\/40, body.theme-light .bg-gray-800\/50 { background-color: #ffffff !important; }
        body.theme-light .border-gray-800, body.theme-light .border-gray-700, body.theme-light .divide-gray-700 > :not([hidden]) ~ :not([hidden]) { border-color: #D8CDDF !important; }
        body.theme-light .text-white, body.theme-light .text-gray-50, body.theme-light .text-gray-100, body.theme-light .text-gray-200, body.theme-light .text-gray-300, body.theme-light table, body.theme-light th, body.theme-light td { color: #1F1F1F !important; }
        body.theme-light .text-gray-400, body.theme-light .text-gray-500, body.theme-light label { color: #51455A !important; }
        body.theme-light input, body.theme-light select, body.theme-light textarea { background-color: #ffffff !important; color: #1F1F1F !important; border-color: #D8CDDF !important; }
        body.theme-light input::placeholder, body.theme-light textarea::placeholder { color: #7A6D82 !important; opacity: 1 !important; }
        body.theme-light option { background: #ffffff !important; color: #1F1F1F !important; }
        body.theme-light table thead tr { background-color: #F1ECF5 !important; }
        body.theme-light .hover\:bg-gray-800\/40:hover, body.theme-light .hover\:bg-gray-900:hover, body.theme-light .nav-item:hover { background-color: #F1ECF5 !important; color: #1F1F1F !important; }
        body.theme-light [disabled], body.theme-light .opacity-50 { color: rgba(31,31,31,.72) !important; opacity: .75 !important; }
    

        /* ==================== AJUSTES MOBILE / RESPONSIVIDADE ==================== */
        #mobileSidebarOverlay { display: none; }
        .meeting-card { position: relative; overflow: hidden; }
        .meeting-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at top right, rgba(59,130,246,.12), transparent 45%); }
        .meeting-insight { border-left: 3px solid rgba(59,130,246,.75); }
        .meeting-print-page { page-break-inside: avoid; }

        @media (max-width: 1023px) {
            body.sidebar-open { overflow: hidden; }
            #mainPanel { display: block !important; }
            #mainPanel.hidden { display: none !important; }
            #mobileSidebarOverlay { display: none; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.56); backdrop-filter: blur(2px); }
            body.sidebar-open #mobileSidebarOverlay { display: block; }
            #mainPanel > aside { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(82vw, 20rem); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 0 25px 80px rgba(0,0,0,.45); }
            body.sidebar-open #mainPanel > aside { transform: translateX(0); }
            #mainPanel > div.flex-1 { min-height: 100vh; width: 100%; }
            header.h-16 { height: auto !important; min-height: 64px; padding: .75rem 1rem !important; gap: .75rem; align-items: flex-start !important; }
            header.h-16 > div { flex-wrap: wrap; justify-content: flex-end; gap: .5rem !important; }
            #pageTitleDisplay { font-size: .95rem; max-width: 48vw; line-height: 1.2; }
            main.p-8 { padding: 1rem !important; }
            .mobile-scroll-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
            table { min-width: 720px; }
            .tab-view { padding-bottom: 5rem; }
            .rounded-2xl { border-radius: 1rem; }
            .p-6 { padding: 1rem; }
            .p-5 { padding: .9rem; }
            .grid { min-width: 0; }
        }

        @media (max-width: 640px) {
            #pageTitleDisplay { max-width: 60vw; }
            header .bg-gray-950 { padding: .35rem .5rem !important; }
            #btnToggleTema, #selectAnoDados { font-size: .7rem; }
            .text-3xl { font-size: 1.55rem !important; }
            .text-2xl { font-size: 1.35rem !important; }
            .sm\:grid-cols-2, .md\:grid-cols-2, .md\:grid-cols-3, .md\:grid-cols-4, .lg\:grid-cols-3, .lg\:grid-cols-4, .xl\:grid-cols-2, .xl\:grid-cols-3 { grid-template-columns: 1fr !important; }
            body { font-size: 14px; }
            #mainPanel > aside { width: min(88vw, 18rem); }
            #mainPanel > div.flex-1 { min-width: 0; }
            header.h-16 { min-height: 54px; padding: .55rem .75rem !important; }
            main.p-8 { padding: .65rem !important; }
            .tab-view { gap: .75rem; }
            .space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: .85rem !important; }
            .space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem !important; }
            .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: .65rem !important; }
            .rounded-2xl, .rounded-xl { border-radius: .75rem !important; }
            .p-10 { padding: 1.25rem !important; }
            .p-8 { padding: 1rem !important; }
            .p-6 { padding: .85rem !important; }
            .p-5, .p-4 { padding: .75rem !important; }
            .px-5, .px-4 { padding-left: .75rem !important; padding-right: .75rem !important; }
            .py-3, .py-2\.5 { padding-top: .55rem !important; padding-bottom: .55rem !important; }
            #mainPanel :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 1rem !important; min-height: 2.75rem; }
            #mainPanel :where(button, a[role="button"]) { min-height: 2.75rem; min-width: 2.75rem; }
            .nav-item { padding: .62rem .75rem !important; font-size: .82rem !important; border-radius: .75rem !important; }
            h2, h3, h4 { line-height: 1.18 !important; }
            .text-xl { font-size: 1.08rem !important; }
            .text-lg { font-size: 1rem !important; }
            .text-sm { font-size: .875rem !important; }
            .text-xs { font-size: .75rem !important; }
            #gridAulas { gap: .75rem; }
            #view-aulas .aula-playlist-folder h3 { font-size: 1.02rem !important; }
            #view-aulas iframe { border-radius: .65rem !important; }
            #modalAoVivo .max-w-7xl { max-height: 96vh; border-radius: .9rem !important; }
            #modalAoVivo .grid { display: block !important; }
            #modalAoVivo aside { max-height: 42vh; }
            #aoVivoPlayer { border-radius: .75rem !important; }
            table { min-width: 640px; }
        }

        /* Mobile forte: transforma a tela em uma experiencia de app, nao desktop espremido. */
        @media (max-width: 768px) {
            html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
            body { -webkit-text-size-adjust: 100%; }

            #loginScreen { align-items: center !important; padding: 8px !important; height: 100dvh; overflow: hidden; }
            #sessionRestoreCard { max-width: 100% !important; margin-top: .75rem; padding: 1rem !important; border-radius: 1rem !important; }
            #brandLoginLogoSlot { width: 3rem !important; height: 3rem !important; margin-bottom: .75rem !important; }
            #brandLoginTitle { font-size: 1.25rem !important; }
            #brandLoginSubtitle { font-size: .62rem !important; letter-spacing: .08em !important; }
            #loginForm { gap: .65rem !important; }

            #mainPanel { background: #0b1220; }
            #mainPanel > div.flex-1 { min-height: 100dvh !important; }
            #mainPanel > aside { width: min(78vw, 17rem) !important; }
            #mainPanel > aside .p-6 { padding: .9rem !important; }
            #mainPanel > aside nav { padding: .65rem !important; }
            #mainPanel > aside .nav-item i { font-size: .86rem !important; width: 1.1rem !important; }
            #mainPanel > aside .nav-item { gap: .55rem !important; }

            header.h-16 {
                position: sticky;
                top: 0;
                z-index: 30;
                min-height: 48px !important;
                padding: .45rem .6rem !important;
                background: rgba(17,24,39,.96) !important;
                backdrop-filter: blur(12px);
            }
            header.h-16 #pageTitleDisplay {
                font-size: .86rem !important;
                max-width: 52vw !important;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            header.h-16 button,
            header.h-16 select,
            header.h-16 .bg-gray-950 {
                min-height: 2.75rem !important;
                height: auto;
                border-radius: .65rem !important;
                font-size: .875rem;
            }
            header.h-16 .fa-bell + span,
            header.h-16 .absolute { transform: scale(.82); transform-origin: top right; }

            main.p-8 {
                padding: .55rem !important;
                padding-bottom: 4.5rem !important;
                gap: .65rem !important;
            }
            .tab-view { padding-bottom: 4.5rem !important; }
            .tab-view > .bg-gray-800,
            .tab-view > .bg-gray-800\/40,
            .tab-view > .bg-gray-900,
            .tab-view > div:not([id*="grid"]):not([id*="Conteudo"]):not(.pg-tab-strip) {
                border-radius: .8rem !important;
                box-shadow: none !important;
            }

            .grid { gap: .55rem !important; }
            .gap-6, .gap-5, .gap-4 { gap: .6rem !important; }
            .mb-6, .mb-5, .mb-4 { margin-bottom: .65rem !important; }
            .mt-6, .mt-5, .mt-4 { margin-top: .65rem !important; }
            .pb-4, .pb-3 { padding-bottom: .55rem !important; }
            .pt-4, .pt-3 { padding-top: .55rem !important; }

            .p-10, .p-8, .p-7, .p-6, .p-5, .p-4 { padding: .7rem !important; }
            .px-6, .px-5, .px-4, .px-3 { padding-left: .65rem !important; padding-right: .65rem !important; }
            .py-4, .py-3, .py-2\.5, .py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
            .rounded-3xl, .rounded-2xl, .rounded-xl { border-radius: .72rem !important; }
            .shadow-2xl, .shadow-xl, .shadow-lg { box-shadow: none !important; }

            h1, .text-3xl { font-size: 1.28rem !important; line-height: 1.15 !important; }
            h2, .text-2xl { font-size: 1.14rem !important; line-height: 1.16 !important; }
            h3, .text-xl { font-size: 1rem !important; line-height: 1.18 !important; }
            h4, .text-lg { font-size: .92rem !important; line-height: 1.2 !important; }
            .text-base { font-size: 1rem !important; }
            .text-sm { font-size: .875rem !important; }
            .text-xs { font-size: .75rem !important; }
            .text-\[11px\], .text-\[10px\] { font-size: .62rem !important; }
            .uppercase.tracking-wider, .uppercase.tracking-widest { letter-spacing: .045em !important; }

            #mainPanel :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
                min-height: 2.75rem;
                padding: .5rem .62rem !important;
                border-radius: .65rem !important;
                font-size: 1rem !important;
            }
            textarea { min-height: 5rem !important; }
            input[type="checkbox"], input[type="radio"] {
                min-height: auto !important;
                width: .9rem !important;
                height: .9rem !important;
                padding: 0 !important;
            }
            #mainPanel :where(button, a[role="button"]):not(.acc3-overlay *) {
                min-height: 2.75rem;
                min-width: 2.75rem;
                border-radius: .65rem !important;
            }

            #dashboardCardsPremios,
            #novidadesResumo,
            #resumoAoVivo,
            .grid.grid-cols-2,
            .sm\:grid-cols-2 {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }
            #dashboardCardsPremios > *,
            #novidadesResumo > *,
            #resumoAoVivo > * {
                min-height: auto !important;
            }

            #novidadesConteudo,
            #gridAulas,
            #gridAoVivo,
            #gridSimulados,
            #gridMateriais {
                gap: .65rem !important;
            }
            #novidadesConteudo article,
            #gridAulas article,
            #gridAulas section,
            #gridAulas .aula-playlist-folder,
            #gridAoVivo article,
            .plat-card {
                padding: .72rem !important;
                border-radius: .78rem !important;
            }
            .plat-card {
                gap: .48rem !important;
            }
            .plat-card-title { font-size: .86rem !important; }
            .plat-card-desc { font-size: .7rem !important; line-height: 1.25 !important; }
            .plat-badge {
                padding: .18rem .42rem !important;
                font-size: .55rem !important;
            }
            .plat-meta { font-size: .6rem !important; gap: .08rem !important; }

            .overflow-x-auto { border-radius: .75rem; }
            table { min-width: 560px !important; }
            th, td { padding: .48rem .55rem !important; font-size: .68rem !important; }
            /* Conter SÓ os gráficos (Chart.js) no celular. Era `canvas` global e
               !important — esmagava confete (#av-anim-confete, tela cheia), leitor
               de e-book e recorte de PDF. Todos os gráficos se chamam chart* (+ pgChart). */
            canvas[id^="chart"], #pgChart { max-height: 240px !important; }
            iframe, video { max-height: 56vh; }

            .fixed.inset-0[class*="z-"] {
                padding: .5rem !important;
            }
            .fixed.inset-0[class*="z-"] > .relative {
                width: 100% !important;
                max-width: 100% !important;
                max-height: calc(100dvh - 1rem) !important;
                border-radius: .9rem !important;
            }
            #modalAtividadePlataforma > .relative,
            #modalVisualizadorGenerico > .relative,
            #modalAoVivo > .relative,
            #modalInscricaoAluno > .relative {
                height: calc(100dvh - 1rem) !important;
                overflow-y: auto !important;
            }
            #modalAtividadePlataformaConteudo > div,
            #modalVisualizadorGenericoConteudo > div {
                padding: .75rem !important;
            }

            .min-h-\[78vh\], .min-h-\[90vh\] { min-height: auto !important; }
            .h-\[78vh\] { height: 55vh !important; }
            .max-h-\[94vh\], .max-h-\[92vh\] { max-height: calc(100dvh - 1rem) !important; }
        }

        @media (max-width: 420px) {
            main.p-8 { padding: .45rem !important; padding-bottom: 4.5rem !important; }
            #pageTitleDisplay { max-width: 46vw !important; }
            #dashboardCardsPremios,
            #novidadesResumo,
            #resumoAoVivo {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }
            #mainPanel > aside { width: min(84vw, 16rem) !important; }
            .flex.flex-wrap { gap: .35rem !important; }
            button i, a i { margin-right: .28rem !important; }
        }

        #modalAtividadePlataforma.plataforma-drawer-lateral {
            align-items: stretch !important;
            justify-content: flex-end !important;
            padding: 0 !important;
        }
        #modalAtividadePlataforma.plataforma-drawer-lateral > .relative {
            width: min(94vw, 1120px) !important;
            max-width: none !important;
            max-height: 100vh !important;
            height: 100vh !important;
            border-radius: 1rem 0 0 1rem !important;
            overflow-y: auto !important;
            animation: plataformaDrawerIn .18s ease-out;
        }
        @keyframes plataformaDrawerIn {
            from { transform: translateX(18px); opacity: .82; }
            to { transform: translateX(0); opacity: 1; }
        }

        #modalAtividadePlataforma .plataforma-lista-contexto-grid {
            background: #0f172a;
        }
        #modalAtividadePlataforma.plataforma-lista-modal > .relative {
            width: min(98vw, 1500px) !important;
            max-width: min(98vw, 1500px) !important;
            max-height: 96vh !important;
            overflow: hidden !important;
        }
        #modalAtividadePlataforma .plataforma-lista-contexto-principal {
            background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(17, 24, 39, .98));
            scrollbar-width: thin;
            scrollbar-color: #334155 transparent;
        }
        #modalAtividadePlataforma .plataforma-lista-contexto-principal > .border-b:first-child {
            margin: -4px -4px 0;
            padding: 18px 18px 20px;
            border: 1px solid rgba(55, 65, 81, .8);
            border-radius: 18px;
            background: rgba(2, 6, 23, .38);
        }
        #modalAtividadePlataforma .plataforma-lista-contexto-principal .rounded-2xl {
            border-color: rgba(71, 85, 105, .75);
            background-color: rgba(15, 23, 42, .72);
        }
        #modalAtividadePlataforma .plataforma-lista-contexto-lateral {
            background: #e5e7eb;
            scrollbar-width: thin;
            scrollbar-color: #94a3b8 transparent;
        }
        #modalAtividadePlataforma .plataforma-lista-lateral-topo {
            position: sticky;
            top: 0;
            z-index: 2;
            margin: -14px -14px 12px;
            padding: 14px 16px;
            background: rgba(241, 245, 249, .96);
            border-bottom: 1px solid #cbd5e1;
            backdrop-filter: blur(8px);
        }
        #modalAtividadePlataforma .plataforma-lista-lateral-topo-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
        }
        #modalAtividadePlataforma .plataforma-lista-lateral-topo h4 {
            margin: 0;
            color: #0f172a;
            font-size: .8rem;
            font-weight: 900;
            text-transform: uppercase;
        }
        #modalAtividadePlataforma .plataforma-lista-lateral-topo p {
            margin-top: 2px;
            color: #64748b;
            font-size: .68rem;
            font-weight: 700;
        }
        #modalAtividadePlataforma .plataforma-lista-zoom {
            display: inline-flex;
            align-items: center;
            gap: .3rem;
            padding: .25rem;
            border: 1px solid #cbd5e1;
            border-radius: 999px;
            background: #fff;
        }
        #modalAtividadePlataforma .plataforma-lista-zoom button {
            width: 1.9rem;
            height: 1.9rem;
            border-radius: 999px;
            color: #1e293b;
            font-size: .72rem;
            font-weight: 900;
        }
        #modalAtividadePlataforma .plataforma-lista-zoom button:hover {
            background: #e2e8f0;
        }
        #modalAtividadePlataforma .plataforma-lista-zoom span {
            min-width: 3rem;
            text-align: center;
            color: #475569;
            font-size: .68rem;
            font-weight: 900;
        }
        #modalAtividadePlataforma .plataforma-lista-preview-card {
            border: 1px solid #cbd5e1;
            border-radius: 18px;
            background: #f8fafc;
            padding: 10px;
            box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
        }
        #modalAtividadePlataforma .plataforma-lista-preview-card > .flex:first-child {
            margin: -2px -2px 10px;
            padding: 8px 8px 10px;
            border-bottom-color: #cbd5e1 !important;
        }
        #modalAtividadePlataforma .plataforma-lista-preview-card [id^="listaPdfOficialWrap_"],
        #modalAtividadePlataforma .plataforma-lista-preview-card [id^="listaInlineWrap_"] {
            max-height: none !important;
            overflow: visible !important;
            border-color: #cbd5e1 !important;
            border-radius: 14px !important;
            box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
        }
        @media (max-width: 900px) {
            #modalAtividadePlataforma.plataforma-drawer-lateral > .relative {
                width: 100vw !important;
                border-radius: 0 !important;
            }
            .plataforma-lista-contexto-grid {
                grid-template-columns: 1fr !important;
            }
            #modalAtividadePlataforma .plataforma-lista-contexto-lateral {
                border-left: 0 !important;
                border-top: 1px solid #334155;
            }
        }

        @media (max-width: 640px) {
            #modalAtividadePlataforma.plataforma-lista-modal > .relative {
                width: 100vw !important;
                max-width: 100vw !important;
                height: 100vh !important;
                max-height: 100vh !important;
                height: 100dvh !important;           /* altura visível real (barra do Android) */
                max-height: 100dvh !important;
                overflow-y: auto !important;          /* destrava o scroll no celular (desktop é hidden) */
                -webkit-overflow-scrolling: touch;
                border-radius: 0 !important;
            }
            #modalAtividadePlataforma .plataforma-lista-contexto-grid {
                height: auto !important;
                min-height: 100dvh !important;
            }
            #modalAtividadePlataforma .plataforma-lista-contexto-principal,
            #modalAtividadePlataforma .plataforma-lista-contexto-lateral {
                max-height: none !important;
                overflow: visible !important;
                padding: 14px !important;
                position: static !important;
            }
            /* respiro p/ o último elemento não ficar atrás da barra de 3 botões do Android */
            #modalAtividadePlataforma .plataforma-lista-contexto-lateral {
                padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
            }
            #modalAtividadePlataforma .plataforma-lista-preview-card {
                margin: 0 -6px 12px !important;
                padding: 6px !important;
                border-radius: 14px !important;
            }
            #modalAtividadePlataforma .plataforma-lista-preview-card [id^="listaPdfOficialWrap_"],
            #modalAtividadePlataforma .plataforma-lista-preview-card [id^="listaInlineWrap_"] {
                overflow: hidden !important;
                width: 100% !important;
            }
            #modalAtividadePlataforma .plataforma-lista-lateral-topo {
                margin: -6px -6px 8px !important;
                padding: 10px 12px !important;
            }
            #modalAtividadePlataforma .plataforma-lista-lateral-topo-row {
                align-items: flex-start !important;
                flex-direction: column !important;
            }
            #modalAtividadePlataforma .plataforma-lista-zoom {
                width: 100% !important;
                justify-content: center !important;
            }
        }

        @media print {
            aside, header, #mobileSidebarOverlay, .no-print { display: none !important; }
            #mainPanel, #mainPanel > div, main { display: block !important; padding: 0 !important; overflow: visible !important; }
            body { background: white !important; color: #111827 !important; }
            .tab-view { display: none !important; }
            #view-reuniao { display: block !important; }
            #view-reuniao, #view-reuniao * {
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }
            #view-reuniao {
                padding: 0 !important;
                color: #111827 !important;
                background: white !important;
            }
            #view-reuniao .meeting-card,
            #view-reuniao .meeting-print-page,
            #view-reuniao table,
            #view-reuniao tr {
                break-inside: avoid !important;
                page-break-inside: avoid !important;
            }
            #view-reuniao .meeting-card {
                border: 1px solid #d1d5db !important;
                background: #f8fafc !important;
            }
            #view-reuniao table thead tr {
                background: #111827 !important;
                color: white !important;
            }
        }

        .brand-banner-preview { min-height: 120px; background-size: cover; background-position: center; }
        #brandLoginLogoSlot img, #brandSidebarLogoSlot img { width: 100%; height: 100%; object-fit: cover; }
    
/* Segurança: impede tela branca se algum patch antigo esquecer de liberar o login. */
body.login-final-ready #loginScreen {
  opacity: 1 !important;
  visibility: visible !important;
}
