@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/estudio/static/vendor/fonts/plus-jakarta-sans-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/estudio/static/vendor/fonts/plus-jakarta-sans-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/estudio/static/vendor/fonts/plus-jakarta-sans-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/estudio/static/vendor/fonts/outfit-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/estudio/static/vendor/fonts/outfit-700.woff2') format('woff2');
}

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --accent: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --bg-dark: #0f172a;
    --bg-sidebar: rgba(15, 23, 42, 0.94);
    --bg-card: rgba(30, 41, 59, 0.72);
    --bg-card-solid: #1e293b;
    --bg-input: rgba(15, 23, 42, 0.75);
    --border-card: rgba(255, 255, 255, 0.11);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #38bdf8;
    --sidebar-w: 256px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

h1, h2, h3, .titulo-fonte {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.01em;
}

a { color: #67e8f9; text-decoration: none; }
a:hover { text-decoration: underline; }

.ambient-glow {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    opacity: 0.22;
    z-index: 0;
}
.glow-1 { top: -180px; left: -140px; background: var(--primary); }
.glow-2 { bottom: -180px; right: -140px; background: var(--accent); }

.app-shell {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

/* Barra lateral */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-card);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.marca-grupo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    padding: 0.25rem 0.35rem;
}
.marca-grupo:hover { text-decoration: none; }

.marca-icone {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
    flex-shrink: 0;
}

.marca-texto strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    line-height: 1.15;
}
.marca-texto small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.menu-lateral {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.menu-item-esq {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.menu-item i { width: 18px; text-align: center; }
.menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    text-decoration: none;
}
.menu-item.ativo {
    background: var(--accent-gradient);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.contador-menu {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 999px;
    padding: 0.08rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}
.menu-item.ativo .contador-menu {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

/* Área principal */
.main-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border-card);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 15;
}

.btn-menu-mobile {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    font-size: 1rem;
}

.usuario-barra {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    font-size: 0.9rem;
}

.perfil-tag {
    background: rgba(79, 70, 229, 0.22);
    border: 1px solid rgba(79, 70, 229, 0.45);
    color: #c7d2fe;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: capitalize;
}

main.conteudo {
    width: 100%;
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1.25rem 2.5rem;
}

/* Cartões e grade */
.cartao {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    margin-bottom: 1.25rem;
}

.grade-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.grade-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}
.grade-2 > *,
.cartao {
    min-width: 0;
}
.img-previa,
.img-questao-preview {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-card);
}

.kpi-titulo {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.kpi-valor {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    border-radius: 9px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s;
}
.btn:hover { opacity: 0.92; text-decoration: none; }
.btn-secundario {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-card);
    color: var(--text-main);
}
.btn-secundario:hover { background: rgba(255, 255, 255, 0.14); }
.btn-perigo {
    background: rgba(239, 68, 68, 0.88);
    color: #ffffff;
}
.btn-sm { padding: 0.32rem 0.65rem; font-size: 0.82rem; border-radius: 7px; }

/* Etiquetas / badges */
.etiqueta {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}
.etiqueta-azul { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
.etiqueta-verde { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.etiqueta-amarela { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.etiqueta-vermelha { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.etiqueta-roxa { background: rgba(79, 70, 229, 0.25); color: #c7d2fe; }

/* Alertas */
.alerta {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    border: 1px solid transparent;
}
.alerta-erro {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}
.alerta-aviso {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fde68a;
}
.alerta-info {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: #a5f3fc;
}
.alerta-sucesso {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.45);
    color: #a7f3d0;
}

/* Tabelas */
.tabela-wrap { overflow-x: auto; }
table.tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
table.tabela th, table.tabela td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--border-card);
    text-align: left;
    vertical-align: top;
}
table.tabela th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Formulários */
label.campo-rotulo {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #e2e8f0;
}
.campo-ajuda {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
    width: 100%;
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-card);
    border-radius: 9px;
    padding: 0.52rem 0.7rem;
    font-size: 0.92rem;
    font-family: inherit;
    line-height: 1.45;
}
textarea {
    min-height: 4.5rem;
    resize: vertical;
}
textarea[rows="2"] { min-height: 3.8rem; }
textarea[rows="3"] { min-height: 5.2rem; }
textarea[rows="4"] { min-height: 6.6rem; }
.bloco-alt-edicao {
    padding: 0.75rem;
    border: 1px solid var(--border-card);
    border-radius: 10px;
}
.mt-xs { margin-top: 0.25rem; }
.img-miniatura {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-card);
    display: block;
}
.linha-tempo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.etapa-tl {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid var(--border-card);
    color: var(--text-muted);
}
.etapa-tl.ativa {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}
.etapa-seta { color: var(--text-muted); }
.bloco-aprovacao {
    padding: 1rem;
    border: 1px solid var(--border-card);
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.06);
}
.abas-barra {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.aba-btn {
    padding: 0.55rem 1rem;
    border-radius: 9px;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 500;
}
.aba-btn.ativo {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.paginacao {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.alerta-sucesso {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #a7f3d0;
}
.campo-senha-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.campo-senha-wrap input {
    padding-right: 2.6rem;
}
.btn-olho-senha {
    position: absolute;
    right: 0.55rem;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem;
}
.btn-olho-senha:focus-visible {
    outline: 2px solid var(--accent);
    border-radius: 6px;
}
.overlay-geracao {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 15, 30, 0.84);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.overlay-geracao[hidden] {
    display: none;
}
.overlay-geracao-box {
    max-width: 440px;
    width: 100%;
    text-align: center;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

/* Assistente em etapas (Gerar) */
.wizard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}
.wizard-passos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
}
.passo-pill {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    cursor: pointer;
}
.passo-pill.ativo {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
}
.etapa-painel[hidden] { display: none; }

.resumo-lateral { position: sticky; top: 5rem; }
.resumo-lista { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.resumo-lista li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-card);
}

.lista-selecao {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-card);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    padding: 0.4rem;
}
.item-opcao {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.86rem;
}
.item-opcao:hover { background: rgba(255, 255, 255, 0.06); }

.progresso-trilha {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin: 0.75rem 0;
}
.progresso-barra {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    transition: width 0.25s ease;
}

.estado-vazio {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}
.login-cartao { width: 100%; max-width: 430px; }

/* Responsivo até 390px */
@media (max-width: 900px) {
    .wizard-grid { grid-template-columns: 1fr; }
    .resumo-lateral { position: static; }
}

@media (max-width: 768px) {
    .btn-menu-mobile { display: inline-flex; align-items: center; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 30;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.5);
    }
    .sidebar.aberta { transform: translateX(0); }
    main.conteudo { padding: 0 0.85rem 2rem; margin: 1rem auto; }
    .topbar { padding: 0.75rem 0.9rem; }
}

/* Utilitários e componentes da Fase 6C (sem style inline) */
.flex-linha { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.flex-entre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 0.9rem; }
.flex-col { display: flex; flex-direction: column; gap: 0.65rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.w-full { width: 100%; }
.check-linha { display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; cursor: pointer; }
.titulo-cartao { margin-top: 0; font-size: 1.08rem; }
.titulo-pagina { margin-top: 0; }
.enunciado-destaque { font-weight: 600; font-size: 1rem; margin: 0.75rem 0; }

.texto-base-box {
    background: rgba(15, 23, 42, 0.55);
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    margin: 0.85rem 0;
}

.img-previa {
    max-width: 100%;
    border: 1px solid var(--border-card);
    border-radius: 10px;
}

.img-pendente-box {
    background: rgba(245, 158, 11, 0.12);
    border: 1px dashed rgba(245, 158, 11, 0.5);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin: 0.85rem 0;
}

.lista-alternativas { list-style: none; padding-left: 0; margin: 0.6rem 0; }
.alt-item {
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.45rem;
    border: 1px solid var(--border-card);
    border-radius: 8px;
}
.alt-correta {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.5);
}
.alt-distrator {
    margin-top: 0.3rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.metadados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.6rem;
    font-size: 0.86rem;
}
.metadado-item {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
}
.metadado-item span { display: block; font-size: 0.75rem; color: var(--text-muted); }

.ficha-prompt {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.86rem;
}
.ficha-prompt-linha { margin-bottom: 0.45rem; }
.ficha-dados {
    white-space: pre-wrap;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    margin-top: 0.25rem;
    font-size: 0.84rem;
}

.upload-arquivo-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}
.input-arquivo-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.nome-arquivo-sel { font-size: 0.84rem; color: var(--text-muted); }

.bloco-recolhivel {
    margin: 0.75rem 0;
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    background: rgba(15, 23, 42, 0.45);
}
.bloco-recolhivel summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #67e8f9;
}

.linha-previa td {
    background: rgba(15, 23, 42, 0.55);
    padding: 0.9rem;
}
.campo-erro { border-color: var(--danger) !important; }
.texto-erro-campo { color: #fca5a5; font-size: 0.8rem; margin-top: 0.2rem; }
.contador-chars { font-size: 0.78rem; color: var(--text-muted); text-align: right; margin-top: 0.2rem; }
.m-0 { margin: 0; }

/* Tom Select dark theme */
.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: 9px;
    color: var(--text-main);
    padding: 0.45rem 0.65rem;
    box-shadow: none;
}
.ts-wrapper.single .ts-control input,
.ts-wrapper.multi .ts-control input {
    color: var(--text-main);
    background: transparent;
    border: none;
    padding: 0;
}
.ts-wrapper.multi .ts-control > div.item {
    background: rgba(79, 70, 229, 0.35);
    border: 1px solid rgba(79, 70, 229, 0.6);
    color: #e0e7ff;
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
}
.ts-dropdown {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    color: var(--text-main);
    z-index: 40;
}
.ts-dropdown .option { padding: 0.5rem 0.7rem; }
.ts-dropdown .active { background: rgba(6, 182, 212, 0.22); color: #ffffff; }
.ts-opcao-codigo { font-weight: 700; color: #67e8f9; margin-right: 0.35rem; }

/* Menu suspenso Ações */
.acoes-menu { position: relative; display: inline-block; }
.acoes-lista {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 190px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    padding: 0.35rem;
    z-index: 35;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.acoes-lista[hidden] { display: none; }
.acao-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 7px;
    padding: 0.45rem 0.65rem;
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}
.acao-item:hover, .acao-item:focus {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    outline: none;
}
.acao-perigo { color: #fca5a5; }
.acao-perigo:hover, .acao-perigo:focus { background: rgba(239, 68, 68, 0.18); }

/* Modal de confirmação */
dialog.modal-confirmacao {
    background: var(--bg-card-solid);
    color: var(--text-main);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.35rem;
    max-width: 440px;
    width: calc(100% - 2rem);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}
dialog.modal-confirmacao::backdrop {
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
}



/* Botão desativado (ex.: aprovar sem a imagem obrigatória) */
.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.4);
    box-shadow: none;
}

/* Tela de configurações administrativas */
.config-cabecalho-secao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.config-cabecalho-secao .titulo-cartao {
    margin: 0;
}
.config-grade-campos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}
@media (max-width: 820px) {
    .config-grade-campos {
        grid-template-columns: 1fr;
    }
}
.config-campo-largura-total {
    grid-column: 1 / -1;
}
.config-rotulo-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}
.config-rotulo-linha label.campo-rotulo {
    margin-bottom: 0;
}
.config-segredo-status {
    font-size: 0.84rem;
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.45rem;
}
.config-segredo-status.ilegivel {
    border-color: rgba(239, 68, 68, 0.55);
    color: #fecaca;
}
.config-checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.45rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    cursor: pointer;
}
.config-checkbox-inline input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.config-acoes-rodape {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
