/* Google Agenda (google-agenda.js): a pergunta Sim/Não, o cartão do evento do Google no dia,
   o selo "G" e a página de Ajustes. Acima da Bia (230) e dos anúncios (240), abaixo do aviso (260). */
.gag-g {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; flex: none; border-radius: 50%;
    background: #0b57d0; color: #fff; font-size: 10px; font-weight: 800; line-height: 1;
}
body.dark-theme .gag-g { background: #a8c7fa; color: #062e6f; }

/* --- a pergunta --- */
.gag-perg { position: fixed; inset: 0; z-index: 250; display: flex; align-items: flex-end; justify-content: center; }
.gag-perg.hidden { display: none; }
.gag-perg-fundo { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.gag-perg-caixa {
    position: relative; width: 100%; max-width: 420px; margin: 0 auto;
    background: #fff; color: #0f172a; border-radius: 22px 22px 0 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 30px rgba(15, 23, 42, .18);
}
@media (min-width: 640px) {
    .gag-perg { align-items: center; }
    .gag-perg-caixa { border-radius: 22px; }
}
.gag-perg-marca { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .78rem; font-weight: 800; color: #475569; }
.gag-perg-tit { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.gag-perg-sub { margin: 6px 0 0; font-size: .9rem; color: #475569; line-height: 1.45; }
.gag-perg-estado { margin: 10px 0 0; min-height: 1.2em; font-size: .88rem; font-weight: 700; color: #4338ca; }
.gag-perg-estado:empty { min-height: 0; margin: 0; }
.gag-perg-acoes { display: flex; gap: 8px; margin-top: 16px; }
.gag-perg-acoes .cfg-btn { flex: 1 1 0; }
.gag-perg .cfg-btn-sec { background: #f1f5f9; color: #1e293b; }
.gag-perg .cfg-btn:focus-visible { outline: 3px solid #4338ca; outline-offset: 2px; }
body.dark-theme .gag-perg-caixa { background: #1e293b; color: #f8fafc; }
body.dark-theme .gag-perg-marca, body.dark-theme .gag-perg-sub { color: #cbd5e1; }
body.dark-theme .gag-perg-estado { color: #c7d2fe; }
body.dark-theme .gag-perg .cfg-btn-sec { background: #334155; color: #e2e8f0; }

/* --- evento do Google na lista do dia --- */
.gag-dia { border-left: 4px solid var(--gag-cor, #0b57d0) !important; }
.gag-selo { display: flex; align-items: center; gap: 5px; margin: 0 0 4px; font-size: .7rem; font-weight: 800; color: #0b57d0; }
/* Evento da Agenda Mel que também está no Google: chip pequeno (o do Google não aparece de novo) */
.gag-chip { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 2px 8px 2px 3px; border-radius: 999px; background: #eef3fe; font-size: .68rem; font-weight: 800; color: #0b57d0; }
body.dark-theme .gag-chip { background: rgba(168, 199, 250, .14); color: #a8c7fa; }
body.dark-theme .gag-selo { color: #a8c7fa; }
.gag-form { display: grid; gap: 8px; margin-top: 10px; }
.gag-form label { display: grid; gap: 4px; font-size: .75rem; font-weight: 700; color: #475569; }
.gag-form input { min-height: 44px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: .9rem; background: #fff; color: #0f172a; }
.gag-form-horas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gag-form-nota { margin: 0; font-size: .72rem; color: #64748b; }
.gag-form-acoes { display: flex; gap: 8px; }
.gag-form-acoes .cfg-btn { flex: 1 1 0; min-height: 44px; }
.gag-form .cfg-btn-sec { background: #f1f5f9; color: #1e293b; }
body.dark-theme .gag-form label { color: #cbd5e1; }
body.dark-theme .gag-form input { background: #0f172a; color: #f8fafc; border-color: #334155; }

/* --- Início: selo curto ao lado do título --- */
.gag-ini { display: inline-flex; align-items: center; gap: 3px; margin-right: 4px; font-size: .68rem; font-weight: 800; color: #0b57d0; vertical-align: 1px; }
body.dark-theme .gag-ini { color: #a8c7fa; }

/* --- Ajustes --- */
.gag-convite {
    margin: 0 0 14px; padding: 14px 16px; border-radius: 18px;
    background: #e8f0fe; border: 1px solid #c2d7fb; color: #0f172a;
}
.gag-convite[hidden] { display: none; }
.gag-convite-tit { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 800; }
.gag-convite-txt { margin: 4px 0 8px; font-size: .88rem; color: #334155; }
body.dark-theme .gag-convite { background: #172554; border-color: #1e3a8a; color: #f8fafc; }
body.dark-theme .gag-convite-txt { color: #cbd5e1; }
.gag-btn-largo { width: 100%; margin: 6px 0 10px; }
.gag-sub { margin: 14px 0 6px; font-size: .8rem; font-weight: 800; color: var(--cfg-sub, #475569); text-transform: uppercase; letter-spacing: .03em; }
.gag-cor { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-right: 10px; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .15); }
.gag-agenda { align-items: center; }
.gag-destino { display: grid; gap: 6px; margin: 14px 0 6px; font-size: .88rem; color: var(--cfg-txt, #1e293b); }
.gag-destino small { color: var(--cfg-ajuda, #64748b); font-size: .78rem; }
.gag-pagina .cfg-acoes { margin-top: 14px; }
