/* Gestor de Marketing Elite — sistema visual (navy + dourado, Sora/Inter) */
:root {
  --gme-navy: #0b1f3a;
  --gme-navy-2: #12294b;
  --gme-navy-3: #1c3a63;
  --gme-gold: #c9a227;
  --gme-gold-2: #e0bd4f;
  --gme-gold-soft: #f7efd3;
  --gme-bg: #f5f6f8;
  --gme-surface: #ffffff;
  --gme-border: #e4e7ec;
  --gme-text: #101828;
  --gme-muted: #667085;
  --gme-ok: #127a3f;
  --gme-ok-soft: #e6f4ec;
  --gme-warn: #a15c07;
  --gme-warn-soft: #fdf3e2;
  --gme-err: #b42318;
  --gme-err-soft: #fdecea;
  --gme-radius: 12px;
  --gme-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--gme-text);
  --bs-body-bg: var(--gme-bg);
  --bs-primary: var(--gme-navy);
  --bs-primary-rgb: 11, 31, 58;
  --bs-link-color: var(--gme-navy-3);
  --bs-link-hover-color: var(--gme-navy);
  --bs-border-color: var(--gme-border);
}

body { background: var(--gme-bg); font-size: .935rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .gme-titulo { font-family: "Sora", "Inter", sans-serif; letter-spacing: -.01em; }
.text-muted, .gme-muted { color: var(--gme-muted) !important; }
a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--gme-gold-2); outline-offset: 2px; }

/* Botões */
.btn { border-radius: 10px; font-weight: 500; }
.btn-primary { --bs-btn-bg: var(--gme-navy); --bs-btn-border-color: var(--gme-navy); --bs-btn-hover-bg: var(--gme-navy-3); --bs-btn-hover-border-color: var(--gme-navy-3); --bs-btn-active-bg: var(--gme-navy-2); --bs-btn-disabled-bg: var(--gme-navy-3); }
.btn-gold { background: var(--gme-gold); border-color: var(--gme-gold); color: #1d1600; }
.btn-gold:hover, .btn-gold:focus { background: var(--gme-gold-2); border-color: var(--gme-gold-2); color: #1d1600; }
.btn-outline-primary { --bs-btn-color: var(--gme-navy); --bs-btn-border-color: #c7cfdb; --bs-btn-hover-bg: var(--gme-navy); --bs-btn-hover-border-color: var(--gme-navy); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--gme-border); }

/* Layout */
.gme-shell { display: flex; min-height: 100vh; }
.gme-sidebar { width: 252px; flex-shrink: 0; color: #c9d3e3; }
/* o .offcanvas-lg do Bootstrap zera o fundo no desktop (transparent !important) — o fundo vai aqui */
.gme-sidebar, .gme-sidebar .offcanvas-body { background-color: var(--gme-navy) !important; }
@media (min-width: 992px) {
  .gme-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.gme-sidebar .offcanvas-body { padding: 0; display: flex; flex-direction: column; }
.gme-marca { display: flex; align-items: center; gap: .65rem; padding: 1.25rem 1.25rem 1rem; color: #fff; font-family: Sora, sans-serif; font-weight: 600; line-height: 1.15; }
.gme-marca .selo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--gme-gold), #8a6d10); display: grid; place-items: center; color: var(--gme-navy); font-weight: 800; font-size: .95rem; }
.gme-marca small { display: block; font-family: Inter, sans-serif; font-weight: 400; color: #8fa1bd; font-size: .72rem; letter-spacing: .02em; }
.gme-nav { padding: .25rem .75rem 1rem; overflow-y: auto; flex: 1; }
.gme-nav .grupo { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #6f84a6; margin: 1.1rem .6rem .35rem; }
.gme-nav a { display: flex; align-items: center; gap: .7rem; padding: .52rem .65rem; border-radius: 9px; color: #c9d3e3; font-weight: 500; }
.gme-nav a i { font-size: 1.05rem; opacity: .85; }
.gme-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.gme-nav a.ativo { background: rgba(201, 162, 39, .14); color: var(--gme-gold-2); }
.gme-nav a.ativo i { opacity: 1; }
.gme-rodape-nav { padding: .9rem 1.1rem 1.2rem; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .8rem; }
.gme-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gme-topo { position: sticky; top: 0; z-index: 1020; background: rgba(245, 246, 248, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gme-border); padding: .7rem 1.5rem; display: flex; align-items: center; gap: .75rem; }
.gme-topo h1 { font-size: 1.15rem; margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gme-conteudo { padding: 1.5rem; max-width: 1280px; width: 100%; }
@media (max-width: 991.98px) {
  .gme-sidebar { width: 0; }
  .gme-sidebar.offcanvas-lg { width: 280px; background: var(--gme-navy); }
  .gme-topo { padding: .6rem 1rem; }
  .gme-conteudo { padding: 1rem; }
}

/* Seletor de projeto */
.gme-projeto-btn { border: 1px solid var(--gme-border); background: #fff; border-radius: 10px; padding: .35rem .7rem; display: flex; align-items: center; gap: .5rem; max-width: 260px; font-weight: 500; }
.gme-projeto-btn .nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gme-projeto-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gme-gold); flex-shrink: 0; }

/* Cards */
.card { border: 1px solid var(--gme-border); border-radius: var(--gme-radius); box-shadow: var(--gme-shadow); }
.card-header { background: transparent; border-bottom: 1px solid var(--gme-border); padding: .9rem 1.1rem; font-weight: 600; }
.card-body { padding: 1.1rem; }
.gme-kpi { padding: 1rem 1.1rem; }
.gme-kpi .rotulo { font-size: .78rem; color: var(--gme-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.gme-kpi .valor { font-family: Sora, sans-serif; font-size: 1.55rem; font-weight: 600; margin-top: .2rem; line-height: 1.2; }
.gme-kpi .sub { font-size: .8rem; color: var(--gme-muted); }
.gme-barra { height: 6px; border-radius: 99px; background: #edf0f4; overflow: hidden; margin-top: .55rem; }
.gme-barra > span { display: block; height: 100%; background: var(--gme-navy-3); border-radius: 99px; }
.gme-barra.aviso > span { background: var(--gme-gold); }
.gme-barra.critico > span { background: var(--gme-err); }

/* Etiquetas */
.gme-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem; border-radius: 99px; font-size: .74rem; font-weight: 600; background: #eef1f5; color: #344054; white-space: nowrap; }
.gme-tag.ok { background: var(--gme-ok-soft); color: var(--gme-ok); }
.gme-tag.aviso { background: var(--gme-warn-soft); color: var(--gme-warn); }
.gme-tag.erro { background: var(--gme-err-soft); color: var(--gme-err); }
.gme-tag.ouro { background: var(--gme-gold-soft); color: #7a5d06; }
.gme-tag.azul { background: #e8eef8; color: var(--gme-navy-3); }

/* Tabelas */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .65rem .8rem; border-bottom-color: var(--gme-border); }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gme-muted); font-weight: 600; background: #fafbfc; }
.table-hover tbody tr:hover > * { background: #fafbfd; }
@media (max-width: 767.98px) {
  .gme-tabela-cards thead { display: none; }
  .gme-tabela-cards tr { display: block; border-bottom: 1px solid var(--gme-border); padding: .5rem 0; }
  .gme-tabela-cards td { display: flex; justify-content: space-between; gap: 1rem; border: 0 !important; padding: .25rem .8rem !important; text-align: right; }
  .gme-tabela-cards td::before { content: attr(data-rotulo); font-weight: 600; color: var(--gme-muted); text-align: left; font-size: .8rem; }
  .gme-tabela-cards td[data-rotulo=""]::before { content: none; }
}

/* Formulários */
.form-control, .form-select { border-radius: 10px; border-color: #d0d5dd; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--gme-navy-3); box-shadow: 0 0 0 .2rem rgba(28, 58, 99, .12); }
.form-label { font-weight: 500; font-size: .87rem; margin-bottom: .3rem; }
.form-text { font-size: .78rem; }
.gme-secao-form { font-family: Sora, sans-serif; font-size: .95rem; font-weight: 600; margin: 1.4rem 0 .8rem; padding-bottom: .4rem; border-bottom: 1px solid var(--gme-border); }

/* Checklist de configuração */
.gme-passo { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--gme-border); }
.gme-passo:last-child { border-bottom: 0; }
.gme-passo .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: .8rem; }
.gme-passo.feito .ic { background: var(--gme-ok-soft); color: var(--gme-ok); }
.gme-passo.falta .ic { background: #eef1f5; color: var(--gme-muted); }
.gme-passo.feito .txt { color: var(--gme-muted); text-decoration: line-through; }

/* Vazio */
.gme-vazio { text-align: center; padding: 2.5rem 1rem; color: var(--gme-muted); }
.gme-vazio i { font-size: 2rem; color: #b9c2d0; display: block; margin-bottom: .5rem; }

/* Gráfico de barras simples */
.gme-grafico { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: .5rem; }
.gme-grafico .col { flex: 1; background: #dfe5ee; border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.gme-grafico .col.hoje { background: var(--gme-gold); }
.gme-grafico .col:hover { background: var(--gme-navy-3); }

/* Saída da IA */
.gme-saida { white-space: pre-wrap; background: #fbfbfc; border: 1px solid var(--gme-border); border-radius: 10px; padding: 1rem; font-size: .9rem; max-height: 60vh; overflow: auto; }
.gme-progresso { height: 8px; border-radius: 99px; background: #edf0f4; overflow: hidden; }
.gme-progresso > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gme-navy-3), var(--gme-gold)); transition: width .4s ease; }

/* Login / telas simples */
.gme-simples { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(1200px 500px at 10% -10%, #1c3a63 0%, transparent 60%), var(--gme-navy); }
.gme-simples .card { width: 100%; max-width: 440px; border: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.gme-simples.largo .card { max-width: 760px; }

/* Toasts */
.gme-toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 1090; display: flex; flex-direction: column; gap: .5rem; max-width: calc(100vw - 2rem); }
.gme-toast { background: var(--gme-navy); color: #fff; border-radius: 10px; padding: .7rem 1rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); font-size: .88rem; max-width: 380px; }
.gme-toast.erro { background: var(--gme-err); }
.gme-toast.ok { background: var(--gme-ok); }

.alert { border-radius: 10px; border: 0; }
.alert-success { background: var(--gme-ok-soft); color: var(--gme-ok); }
.alert-danger { background: var(--gme-err-soft); color: var(--gme-err); }
.alert-warning { background: var(--gme-warn-soft); color: var(--gme-warn); }
.alert-info { background: #e8eef8; color: var(--gme-navy-3); }

.gme-logo-mini { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--gme-border); }
.gme-iniciais { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gme-gold-soft); color: #7a5d06; font-weight: 700; font-family: Sora, sans-serif; flex-shrink: 0; }
code.gme-code { background: #f2f4f7; padding: .1rem .35rem; border-radius: 6px; color: #344054; font-size: .82rem; word-break: break-all; }

/* Estúdio — lista */
.gme-peca-prev { display: grid; place-items: center; background: repeating-conic-gradient(#eef1f5 0% 25%, #fff 0% 50%) 50% / 16px 16px; border-radius: var(--gme-radius) var(--gme-radius) 0 0; overflow: hidden; max-height: 320px; text-decoration: none; }
.gme-peca-prev img { width: 100%; height: 100%; object-fit: contain; }
.gme-mini-img { width: 64px; height: 64px; overflow: hidden; }
.gme-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.btn-check:checked + .gme-mini-img { outline: 3px solid var(--gme-gold); outline-offset: 1px; }
.gme-grade-img { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; }
.gme-grade-img .item { position: relative; border: 1px solid var(--gme-border); border-radius: 10px; overflow: hidden; background: #f2f4f7; aspect-ratio: 1; cursor: pointer; padding: 0; }
.gme-grade-img .item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gme-grade-img .item .selo { position: absolute; left: 4px; top: 4px; }
.gme-grade-img .item:hover, .gme-grade-img .item:focus-visible { outline: 3px solid var(--gme-gold); }

/* Estúdio — editor */
.gme-editor-topo { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.gme-editor-nome { max-width: 260px; font-weight: 600; }
.gme-editor { display: grid; grid-template-columns: 210px minmax(0, 1fr) 300px; gap: .75rem; align-items: start; }
.gme-ed-esq, .gme-ed-dir { display: flex; flex-direction: column; gap: .75rem; }
.gme-ed-bloco { background: #fff; border: 1px solid var(--gme-border); border-radius: var(--gme-radius); padding: .75rem; }
.gme-ed-titulo { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gme-muted); font-weight: 600; margin-bottom: .5rem; }
.gme-ed-centro { position: sticky; top: 72px; }
.gme-palco { background: repeating-conic-gradient(#e9edf2 0% 25%, #f6f7f9 0% 50%) 50% / 20px 20px; border: 1px solid var(--gme-border); border-radius: var(--gme-radius); height: calc(100vh - 190px); min-height: 420px; overflow: auto; display: flex; }
.gme-moldura { position: relative; margin: auto; box-shadow: 0 6px 24px rgba(16, 24, 40, .18); flex-shrink: 0; }
.gme-segura { position: absolute; left: 0; top: 0; pointer-events: none; }
.gme-segura.oculta { display: none; }
.gme-ed-logo { width: 56px; height: 56px; }
.gme-ed-logo img { width: 100%; height: 100%; object-fit: contain; }
.gme-cor { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, .15); cursor: pointer; padding: 0; }
.gme-cor:focus-visible { outline: 3px solid var(--gme-gold-2); }
.gme-camadas li { display: flex; align-items: center; gap: .35rem; padding: .3rem .4rem; border-radius: 8px; font-size: .82rem; cursor: pointer; }
.gme-camadas li:hover { background: #f5f6f8; }
.gme-camadas li.sel { background: var(--gme-gold-soft); }
.gme-camadas li .nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gme-camadas li.oculto .nome { opacity: .45; text-decoration: line-through; }
.gme-camadas button { border: 0; background: transparent; color: var(--gme-muted); padding: 0 .2rem; }
.gme-qc li { display: flex; gap: .45rem; font-size: .8rem; padding: .25rem 0; border-bottom: 1px dashed var(--gme-border); }
.gme-qc li:last-child { border-bottom: 0; }
.gme-qc li.erro i { color: var(--gme-err); }
.gme-qc li.aviso i { color: var(--gme-warn); }
.gme-qc li.ok i { color: var(--gme-ok); }
.gme-qc li[data-obj] { cursor: pointer; }
.gme-props .form-control, .gme-props .form-select { padding: .3rem .5rem; font-size: .84rem; }
.gme-props .form-label { font-size: .76rem; color: var(--gme-muted); margin-bottom: .15rem; }
@media (max-width: 1199.98px) {
  .gme-editor { grid-template-columns: minmax(0, 1fr) 280px; }
  .gme-ed-esq { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; order: 2; }
  .gme-ed-esq .gme-ed-bloco { flex: 1 1 200px; }
}
@media (max-width: 767.98px) {
  .gme-editor { grid-template-columns: 1fr; }
  .gme-ed-centro { position: static; }
  .gme-palco { height: 60vh; }
  .gme-editor-nome { max-width: 100%; flex: 1 1 100%; order: -1; }
}

/* Publicações — prévia estilo Instagram */
.gme-ig { background: #fff; border: 1px solid var(--gme-border); border-radius: 14px; overflow: hidden; max-width: 380px; margin: 0 auto; box-shadow: var(--gme-shadow); }
.gme-ig-topo { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; }
.gme-ig-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gme-gold-soft); color: #7a5d06; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex-shrink: 0; outline: 2px solid #e1306c; outline-offset: 1px; }
.gme-ig-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gme-ig-midia { position: relative; background: #111; width: 100%; }
.gme-ig-midia img, .gme-ig-midia video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gme-ig-seta { position: absolute; top: 50%; transform: translateY(-50%); border: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; }
.gme-ig-seta.esq { left: 8px; } .gme-ig-seta.dir { right: 8px; }
.gme-ig-contador { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; padding: .1rem .45rem; border-radius: 99px; }
.gme-ig-acoes { display: flex; gap: .9rem; padding: .55rem .75rem .2rem; font-size: 1.15rem; }
.gme-ig-legenda { padding: .2rem .75rem .8rem; word-break: break-word; }
.gme-pub-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f2f4f7; border: 1px solid var(--gme-border); flex-shrink: 0; }
.gme-pub-thumb.video { display: grid; place-items: center; color: var(--gme-muted); font-size: 1.4rem; }
.gme-linha-tempo { list-style: none; padding: 0; margin: 0; }
.gme-linha-tempo li { position: relative; padding: 0 0 .8rem 1.1rem; font-size: .82rem; border-left: 2px solid var(--gme-border); margin-left: .35rem; }
.gme-linha-tempo li::before { content: ''; position: absolute; left: -6px; top: .25rem; width: 10px; height: 10px; border-radius: 50%; background: var(--gme-navy-3); }
.gme-linha-tempo li:last-child { border-left-color: transparent; }
.gme-publico { background: var(--gme-bg); }
@media (min-width: 992px) { .gme-pub-previa { position: sticky; top: 76px; } }

/* Estúdio de Vídeo */
.gme-solta { border: 2px dashed var(--gme-border); border-radius: 14px; padding: 1.6rem 1rem; text-align: center; cursor: pointer; background: var(--gme-bg); color: var(--gme-navy-3); transition: border-color .15s, background .15s; }
.gme-solta:hover, .gme-solta:focus-visible, .gme-solta.ativa { border-color: var(--gme-gold); background: var(--gme-gold-soft); outline: none; }
.gme-card-link { transition: transform .12s, box-shadow .12s; }
.gme-card-link:hover { transform: translateY(-2px); box-shadow: var(--gme-shadow); }
.gme-player { background: #000; border-radius: 12px; overflow: hidden; margin: 0 auto; max-height: 70vh; }
.gme-player video { display: block; width: 100%; height: 100%; max-height: 70vh; background: #000; }
.gme-player.vertical { max-width: 340px; aspect-ratio: 9 / 16; }
.gme-player.quadrado { max-width: 520px; aspect-ratio: 1 / 1; }
.gme-player.paisagem { max-width: 100%; aspect-ratio: 16 / 9; }
.gme-sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gme-muted); font-weight: 600; margin-bottom: .4rem; }
.gme-legenda-previa { position: relative; background: linear-gradient(160deg, #26364a, #0f1a27); border-radius: 12px; height: 150px; display: flex; align-items: flex-end; justify-content: center; padding: 0 .8rem 1.2rem; overflow: hidden; }
.gme-legenda-previa.vertical { height: 190px; padding-bottom: 2.6rem; }
.gme-legenda-previa[data-posicao="meio"] { align-items: center; padding-bottom: 0; }
.gme-legenda-previa[data-posicao="alto"] { align-items: flex-start; padding-top: 1.2rem; }
.gme-legenda-previa .texto { font-family: 'DejaVu Sans', Arial, sans-serif; font-weight: 700; text-align: center; line-height: 1.25; border-radius: 6px; transition: font-size .1s; }
.gme-legenda-previa.desligada .texto { opacity: .15; }
.gme-trecho { display: grid; grid-template-columns: auto 5.4rem auto 5.4rem 4.2rem 1fr auto; gap: .4rem; align-items: center; padding: .35rem .5rem; border-radius: 8px; margin-bottom: .3rem; border: 1px solid var(--gme-border); }
.gme-trecho.mantido { background: #fff; }
.gme-trecho.removido { background: #f3f4f6; color: var(--gme-muted); }
.gme-trecho.removido .txt { text-decoration: line-through; }
.gme-trecho .txt { font-size: .78rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gme-trecho .t { padding: .15rem .3rem; font-size: .78rem; }
.gme-bloco { border: 1px solid var(--gme-border); border-radius: 8px; padding: .45rem .55rem; margin-bottom: .4rem; background: #fff; }
.gme-bloco.fora { opacity: .55; }
.gme-bloco.fora input[data-texto] { text-decoration: line-through; }
.gme-bloco.oculto { background: #f3f4f6; }
.gme-bloco .palavras { display: flex; flex-wrap: wrap; gap: .25rem; }
.gme-bloco .chip { border: 1px solid var(--gme-border); background: #fff; border-radius: 99px; padding: .05rem .5rem; font-size: .76rem; line-height: 1.4; }
.gme-bloco .chip.on { background: var(--gme-gold); border-color: var(--gme-gold); color: #1a1a1a; font-weight: 600; }
.gme-bloco .chip:disabled { opacity: .6; }
@media (max-width: 575.98px) {
  .gme-trecho { grid-template-columns: auto 1fr auto 1fr; }
  .gme-trecho .dur, .gme-trecho .txt { grid-column: 1 / -1; }
}

/* Painel: briefing do dia */
.gme-briefing .card-header .bi-sunrise { color: var(--gme-gold, #c9a227); }
.gme-prioridades { padding-left: 1.3rem; }
.gme-prioridades li { margin-bottom: .6rem; }
.gme-prioridades li::marker { font-weight: 700; color: var(--gme-gold, #c9a227); }
.gme-fatos li .bi { color: #667085; }
.gme-fato-aviso .bi { color: var(--gme-warn) !important; }
.gme-fato-erro .bi, .gme-fato-erro span { color: var(--gme-err) !important; }

/* Agente */
.gme-chat { display: flex; flex-direction: column; max-height: calc(100vh - 140px); }
.gme-chat-msgs { overflow-y: auto; min-height: 260px; max-height: 60vh; display: flex; flex-direction: column; gap: .55rem; }
.gme-msg { max-width: 88%; padding: .5rem .75rem; border-radius: 12px; font-size: .9rem; }
.gme-msg.usuario { align-self: flex-end; background: var(--gme-navy-3, #1d3b5c); color: #fff; border-bottom-right-radius: 4px; }
.gme-msg.agente { align-self: flex-start; background: #f2f4f7; color: #1d2939; border-bottom-left-radius: 4px; }
.gme-msg.sistema { align-self: center; background: #fff8e1; color: #6b4e00; font-size: .8rem; }
.gme-msg-texto { white-space: normal; word-break: break-word; }
.gme-msg-meta { font-size: .72rem; opacity: .7; margin-top: .25rem; }
.gme-msg.usuario .gme-tag { background: rgba(255,255,255,.18); color: #fff; }
.gme-meta-card:hover { box-shadow: 0 2px 10px rgba(16,24,40,.08); }
.gme-meta-card:focus-visible { outline: 3px solid var(--gme-gold, #c9a227); outline-offset: 2px; }
.gme-cartao-aprovacao { border-left: 4px solid var(--gme-gold, #c9a227); background: #fffdf5; padding: .5rem .75rem; border-radius: 6px; }
.gme-saude-num { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
@media (max-width: 991.98px) { .gme-chat { max-height: none; } .gme-chat-msgs { max-height: 50vh; } }

/* Pacote para aprovar: miniatura de cada arte */
.gme-mini { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 68px; border-radius: 8px; overflow: hidden; background: var(--bs-tertiary-bg, #f1f3f5); border: 1px solid var(--bs-border-color, #dee2e6); flex: 0 0 auto; text-decoration: none; }
.gme-mini img { width: 100%; height: 100%; object-fit: cover; }
.gme-mini span { font-size: .62rem; color: var(--bs-secondary-color, #6c757d); text-align: center; padding: 2px; }

/* ---------- Aplicativo instalável, celular/tablet e troca de página (0.14.1) ---------- */
html { -webkit-text-size-adjust: 100%; }
a, button, .btn, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img, video, canvas, svg { max-width: 100%; }
.gme-shell { min-height: 100dvh; }
/* texto comprido (link, e-mail, código) quebra em vez de empurrar a tela para o lado */
.gme-conteudo { overflow-wrap: anywhere; }
.gme-conteudo pre, .gme-conteudo code { white-space: pre-wrap; word-break: break-word; }
.gme-conteudo .table { overflow-wrap: normal; }
@media (max-width: 767.98px) {
  /* campo com letra menor que 16px faz o iPhone dar zoom sozinho ao tocar */
  .form-control, .form-select, .form-control-sm, .form-select-sm, input, select, textarea { font-size: 16px; }
  .btn-sm { padding: .4rem .7rem; }
  .gme-topo h1 { font-size: 1.02rem; }
  .gme-projeto-btn { max-width: 46vw; }
  .dropdown-menu { max-width: calc(100vw - 1.5rem); }
  .gme-toasts { left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .gme-toast { max-width: none; }
}
.min-w-0 { min-width: 0 !important; }
@media (max-width: 575.98px) {
  /* etiqueta comprida quebra a linha em vez de empurrar a tela */
  .gme-tag, .gme-tag.text-nowrap { white-space: normal !important; text-align: left; border-radius: 12px; }
}
@media (max-width: 767.98px) { .gme-props .form-control, .gme-props .form-select, .gme-trecho .t, .input-group-sm > .form-control, .input-group-sm > .form-select { font-size: 16px; } }
/* dedo: botão pequeno e item do menu com altura confortável */
@media (pointer: coarse) { .btn-sm { min-height: 34px; } .gme-nav a { padding-top: .62rem; padding-bottom: .62rem; } }
/* recorte/entalhe do aparelho (iPhone deitado, tela cheia do app instalado) */
@media (max-width: 991.98px) {
  .gme-topo { padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
  .gme-conteudo { padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .gme-sidebar .offcanvas-body { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
/* tablet em pé: o miolo usa a largura toda, sem coluna espremida */
@media (min-width: 768px) and (max-width: 991.98px) { .gme-conteudo { padding-top: 1.25rem; } }

/* Troca de página suave: o menu e o topo ficam parados e só o miolo troca (navegadores com View Transitions; os outros trocam normal) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; animation-timing-function: ease-out; }
@media (min-width: 992px) { .gme-sidebar { view-transition-name: gme-menu; } }
.gme-topo { view-transition-name: gme-topo; }
::view-transition-group(gme-menu), ::view-transition-group(gme-topo) { animation-duration: .14s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .gme-carregando::before { animation: none; background-size: 100% 100%; }
}
/* Faixa dourada no topo enquanto a próxima página carrega (aparece só se demorar) */
.gme-carregando::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 2000; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gme-gold-2), transparent) no-repeat; background-size: 45% 100%; animation: gme-carregando 1s linear infinite; }
@keyframes gme-carregando { from { background-position: -80% 0; } to { background-position: 180% 0; } }
