/*
  Mídia Sara Interlagos — identidade visual
  Preto quente + laranja em degradê, tipografia geométrica (Outfit),
  cartões escuros com borda fina, ícones de traço, rótulos pequenos em caixa alta.
*/
:root {
  --fundo: #0C0705;
  --card: #160F0B;
  --card-2: #1E1510;
  --borda: rgba(255, 128, 72, 0.11);
  --borda-forte: rgba(255, 128, 72, 0.28);
  --laranja: #FF6B2C;
  --laranja-claro: #FF9A4D;
  --degrade: linear-gradient(135deg, #FFA154 0%, #FF6B2C 55%, #F2481F 100%);
  --texto: #F7F1EC;
  --texto-2: #A99B91;
  --texto-3: #6E625A;
  --verde: #3DDC84;
  --amarelo: #FFC14D;
  --vermelho: #FF4D4D;
  --raio: 20px;
  --raio-p: 14px;
  --seguro-baixo: env(safe-area-inset-bottom, 0px);
  --seguro-topo: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; min-width: 0; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); }
body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.4;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 120% 40% at 50% -8%, rgba(255, 107, 44, 0.16), transparent 70%),
    var(--fundo);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--laranja); outline-offset: 2px; }
a { color: var(--laranja-claro); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
small { color: var(--texto-2); }
.ic { width: 22px; height: 22px; flex: none; }

.rotulo { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--texto-2); }
.rotulo.laranja { color: var(--laranja); }
.mt { margin: 22px 0 10px; }
.centro-txt { text-align: center; }
.centro { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.carregando { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--card-2); border-top-color: var(--laranja); animation: gira .9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.faixa-demo { background: var(--degrade); color: #1B0D06; text-align: center; font-size: .74rem; padding: 5px 8px; font-weight: 600; letter-spacing: .02em; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px;
  margin: 10px 12px 0; padding: 10px 12px; padding-top: calc(10px + var(--seguro-topo) * 0);
  background: rgba(22, 15, 11, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--borda); border-radius: 22px;
}
.topo-nome { display: flex; flex-direction: column; flex: 1; line-height: 1.15; }
.topo-nome b { font-weight: 600; font-size: 1.02rem; }
.topo-marca { height: 30px; width: auto; opacity: .95; }
.btn-redondo { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--borda); background: var(--card-2); display: grid; place-items: center; color: var(--texto-2); flex: none; }
.btn-redondo .ic { width: 19px; height: 19px; }
.btn-redondo.pq { width: 34px; height: 34px; }
.btn-redondo.pq .ic { width: 16px; height: 16px; }
.btn-redondo.perigo { color: var(--vermelho); }
.btn-redondo.ligado { color: var(--laranja); border-color: var(--borda-forte); }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--degrade); color: #1B0D06; font-weight: 700; font-size: .82rem; flex: none; letter-spacing: .02em; }
.avatar.anel { width: 44px; height: 44px; font-size: .95rem; box-shadow: 0 0 0 2px var(--fundo), 0 0 0 3.5px var(--laranja); }
.avatar.mini { width: 22px; height: 22px; font-size: .6rem; margin-right: 6px; vertical-align: middle; }
.avatar.cheio { width: 44px; height: 44px; }

.conteudo { max-width: 620px; margin: 0 auto; padding: 18px 16px calc(120px + var(--seguro-baixo)); }

/* ---------- Barra de abas com botão central ---------- */
.abas {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--seguro-baixo)); z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: rgba(22, 15, 11, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--borda); border-radius: 24px; padding: 8px 4px; max-width: 600px; margin: 0 auto;
}
.aba { position: relative; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--texto-3); padding: 4px 0; }
.aba small { font-size: .68rem; color: inherit; font-weight: 500; }
.aba.ativa { color: var(--laranja); }
.aba-central { background: none; border: 0; display: grid; place-items: center; margin-top: -30px; }
.aba-central span { width: 62px; height: 62px; border-radius: 50%; background: var(--degrade); color: #1B0D06; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(255, 107, 44, .45), 0 0 0 5px var(--fundo); transition: transform .15s; }
.aba-central .ic { width: 27px; height: 27px; stroke-width: 2; }
.aba-central:active span { transform: scale(.94); }
.bolinha { position: absolute; top: -2px; right: calc(50% - 20px); background: var(--vermelho); color: #fff; font-style: normal; font-size: .62rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--degrade); color: #1B0D06; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 600; min-height: 44px; box-shadow: 0 6px 20px rgba(255, 107, 44, .25); }
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.btn:active { transform: scale(.97); }
.btn.pequeno { padding: 8px 14px; min-height: 38px; font-size: .9rem; box-shadow: none; }
.btn.grande { padding: 15px 28px; font-size: 1.05rem; width: 100%; max-width: 340px; }
.btn.claro { background: transparent; color: var(--texto); border: 1px solid var(--borda-forte); box-shadow: none; }
.btn.perigo { background: transparent; color: var(--vermelho); border: 1px solid rgba(255, 77, 77, .4); box-shadow: none; }
.btn.largo { width: 100%; margin-bottom: 14px; }
.ver-todos { background: none; border: 0; color: var(--texto-2); font-size: .78rem; display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; }
.ver-todos .ic { width: 14px; height: 14px; }

/* ---------- Login ---------- */
.login { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 40px 26px; }
.login-brilho { position: absolute; width: 520px; height: 520px; border-radius: 50%; top: 8%; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 107, 44, .28), transparent 65%); pointer-events: none; }
.login > *:not(.login-brilho) { position: relative; }
.login-logo { width: min(300px, 78vw); height: auto; margin-bottom: 18px; }
.login h1 { font-size: 1.8rem; }
.login-txt { color: var(--texto-2); max-width: 320px; font-size: 1.02rem; margin-bottom: 14px; }
.email-destaque { background: var(--card); border: 1px solid var(--borda-forte); color: var(--laranja-claro); padding: 10px 16px; border-radius: 12px; font-size: .95rem; word-break: break-all; user-select: all; }

/* ---------- Início ---------- */
.boas-vindas { text-align: center; padding: 10px 0 18px; }
.titulo-marca { font-size: 2.5rem; font-weight: 600; letter-spacing: -.01em; margin-top: 8px; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.traco { display: block; width: 56px; height: 2px; border-radius: 2px; background: var(--degrade); margin: 14px auto 0; opacity: .8; }
.atalhos-redondos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 8px; }
.atalhos-redondos button { background: var(--card); border: 1px solid var(--borda); border-radius: 18px; padding: 12px 2px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.atalhos-redondos span { width: 46px; height: 46px; border-radius: 50%; background: var(--degrade); color: #1B0D06; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(255, 107, 44, .3); }
.atalhos-redondos .ic { width: 21px; height: 21px; stroke-width: 1.9; }
.atalhos-redondos small { font-size: .7rem; color: var(--texto); }

.linha-card { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px; margin-bottom: 10px; }
.linha-card.destaque { border-color: var(--borda-forte); background: linear-gradient(120deg, rgba(255, 107, 44, .14), var(--card) 60%); }
.tile { width: 46px; height: 46px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--borda); color: var(--laranja); display: grid; place-items: center; flex: none; }
.tile.grande { width: 64px; height: 64px; border-radius: 20px; }
.tile.grande .ic { width: 30px; height: 30px; }
.lc-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.lc-txt b { font-weight: 600; font-size: 1.02rem; }
.lc-txt small { font-size: .82rem; }
.chev { color: var(--texto-3); width: 18px; height: 18px; }

.numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 6px; }
.numeros button { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px 16px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.numeros b { font-size: 2rem; font-weight: 600; line-height: 1.1; }
.numeros span { font-size: .8rem; color: var(--texto-2); }
.numeros .alerta { border-color: rgba(255, 77, 77, .45); }
.numeros .alerta b { color: var(--vermelho); }

/* ---------- Seções ---------- */
.secao { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 26px 0 12px; }
.conteudo > .secao:first-child { margin-top: 6px; }
.secao h2 { font-size: 1.32rem; text-transform: uppercase; letter-spacing: .05em; }
.secao p { color: var(--texto-2); font-size: .82rem; margin-top: 4px; }
.contador { font-size: .8rem; color: var(--laranja); vertical-align: middle; margin-left: 4px; }

.card { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px; margin-bottom: 12px; }
.card .rotulo { display: block; margin-bottom: 12px; }
.vazio { color: var(--texto-3); text-align: center; padding: 18px 0; font-size: .95rem; }
.dica { color: var(--texto-3); font-size: .82rem; margin: 8px 0 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.dica .ic { width: 15px; height: 15px; }
.obs { color: var(--texto-2); font-size: .9rem; margin-top: 6px; white-space: pre-wrap; }

/* Seletor segmentado */
.segmentado { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border: 1px solid var(--borda); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.segmentado.duplo { grid-template-columns: 1fr 1fr; }
.segmentado button { background: none; border: 0; border-radius: 999px; padding: 9px 6px; color: var(--texto-2); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.segmentado button i { font-style: normal; font-size: .75rem; opacity: .7; margin-left: 2px; }
.segmentado button.ativo { background: var(--degrade); color: #1B0D06; font-weight: 600; }

/* ---------- Fotos ---------- */
.seletor { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.seletor::-webkit-scrollbar { display: none; }
.seletor button { flex: none; background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; text-align: left; gap: 1px; }
.seletor button b { font-weight: 600; font-size: .92rem; }
.seletor button small { font-size: .74rem; }
.seletor button.ativo { border-color: var(--laranja); background: linear-gradient(140deg, rgba(255, 107, 44, .2), var(--card)); }
.envio { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.envio-txt { flex: 1; display: flex; flex-direction: column; }
.envio-txt .rotulo { margin-bottom: 4px; }
.envio-txt b { font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.envio-txt b span { font-size: .85rem; color: var(--texto-2); font-weight: 400; }
.barra { height: 5px; background: var(--card-2); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.barra i { display: block; height: 100%; background: var(--degrade); border-radius: 3px; }
.btn-arquivo { white-space: nowrap; cursor: pointer; }
.selo-cheio { font-size: .82rem; color: var(--laranja-claro); font-weight: 600; white-space: nowrap; }
.autores { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.autores span { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--borda); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: .82rem; }
.autores b { color: var(--laranja); margin-left: 6px; font-weight: 600; }
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 8px; }
@media (min-width: 560px) { .galeria { grid-template-columns: repeat(4, 1fr); } }
.miniatura { position: relative; border: 0; padding: 0; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--card-2); }
.miniatura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.miniatura.escolhida { box-shadow: inset 0 0 0 2px var(--laranja); }
.miniatura.escolhida img { border-radius: 10px; }
.miniatura.postada img { opacity: .4; }
.m-estrela { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--degrade); color: #1B0D06; display: grid; place-items: center; }
.m-estrela .ic { width: 14px; height: 14px; fill: currentColor; }
.m-postada { position: absolute; bottom: 6px; left: 6px; background: var(--verde); color: #04170C; font-size: .62rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; }
.vazio-grande { text-align: center; padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vazio-grande b { font-size: 1.1rem; font-weight: 600; }
.vazio-grande p { color: var(--texto-2); font-size: .9rem; margin-bottom: 6px; }

/* Visor de foto */
.visor { position: fixed; inset: 0; z-index: 30; background: #060302; display: flex; flex-direction: column; }
.visor-topo { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + var(--seguro-topo)) 14px 10px; }
.visor-autor { display: inline-flex; align-items: center; font-size: .9rem; color: var(--texto-2); }
.visor-img { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; padding: 0 10px; }
.visor-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.visor-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--borda); background: rgba(22, 15, 11, .8); color: var(--texto); display: grid; place-items: center; }
.visor-nav.esq { left: 14px; } .visor-nav.dir { right: 14px; }
.visor-acoes { display: flex; justify-content: center; gap: 10px; padding: 14px 14px calc(18px + var(--seguro-baixo)); }
.visor-acoes button { width: 76px; background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--texto); }
.visor-acoes small { font-size: .72rem; color: inherit; }
.visor-acoes .ligado { background: var(--degrade); color: #1B0D06; border-color: transparent; }
.visor-acoes .ligado .ic { fill: currentColor; }
.visor-acoes .ligado.verde { background: var(--verde); }
.visor-acoes .ligado.verde .ic { fill: none; }
.visor-acoes .perigo { color: var(--vermelho); }

/* Progresso */
.progresso { position: fixed; inset: 0; z-index: 40; background: rgba(6, 3, 2, .8); display: grid; place-items: center; }
.progresso-caixa { background: var(--card); border: 1px solid var(--borda); padding: 26px 30px; border-radius: var(--raio); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.progresso-caixa p { font-weight: 500; }

/* ---------- Escala ---------- */
.escala-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.data-bloco { width: 52px; height: 56px; border-radius: 14px; background: var(--degrade); color: #1B0D06; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.data-bloco b { font-size: 1.45rem; font-weight: 700; }
.data-bloco small { color: inherit; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-top: 2px; }
.escala-titulo { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.escala-titulo .rotulo { margin: 0; }
.escala-titulo b { font-size: 1.1rem; font-weight: 600; }
.acoes-mini { display: flex; gap: 6px; align-items: center; }
.funcoes { list-style: none; padding: 0; margin: 0; }
.funcoes li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--borda); font-size: .93rem; }
.funcoes li span { color: var(--texto-2); }
.funcoes li b { display: inline-flex; align-items: center; font-weight: 500; }
.funcoes li em { color: var(--texto-3); font-style: normal; font-size: .85rem; }
.funcoes li.eu b { color: var(--laranja-claro); }

/* ---------- Pautas ---------- */
.tarefa { display: flex; align-items: flex-start; gap: 12px; background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio-p); padding: 14px; margin-bottom: 10px; }
.check { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--texto-3); background: none; display: grid; place-items: center; flex: none; margin-top: 1px; padding: 0; }
.check .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.tarefa-info { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tarefa-info b { font-weight: 500; }
.tarefa-info small { font-size: .8rem; }
.tarefa-acoes { display: flex; align-items: center; gap: 6px; flex: none; }
.pilula { border: 1px solid var(--borda-forte); background: transparent; color: var(--laranja-claro); border-radius: 999px; padding: 5px 12px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.pilula::first-letter { text-transform: uppercase; }
.st-fazendo .check { border-color: var(--amarelo); box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 12px var(--amarelo); }
.st-fazendo .pilula { color: var(--amarelo); border-color: rgba(255, 193, 77, .4); }
.st-feito { opacity: .55; }
.st-feito .check { background: var(--verde); border-color: var(--verde); color: #04170C; }
.st-feito .pilula { color: var(--verde); border-color: rgba(61, 220, 132, .4); }
.st-feito .tarefa-info b { text-decoration: line-through; }
.atrasada { color: var(--vermelho); font-weight: 600; }

/* ---------- Avisos ---------- */
.aviso p { font-size: 1rem; line-height: 1.5; }
.aviso.fixado { border-color: var(--borda-forte); background: linear-gradient(150deg, rgba(255, 107, 44, .1), var(--card) 55%); }
.selo { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--laranja); margin-bottom: 10px; }
.selo .ic { width: 13px; height: 13px; }
.aviso-base { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.aviso-base small { display: inline-flex; align-items: center; font-size: .8rem; }

/* ---------- Problemas ---------- */
.problema { position: relative; overflow: hidden; }
.problema::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amarelo); }
.problema.urg-alta::before { background: var(--vermelho); }
.problema.urg-baixa::before { background: var(--verde); }
.problema.pst-resolvido { opacity: .7; }
.problema.pst-resolvido::before { background: var(--verde); }
.prob-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.problema h3 { font-size: 1.08rem; font-weight: 600; }
.etiqueta { background: var(--card-2); border: 1px solid var(--borda); padding: 3px 10px; border-radius: 999px; font-size: .74rem; color: var(--texto-2); }
.urg { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amarelo); }
.urg i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.urg-alta .urg { color: var(--vermelho); }
.urg-baixa .urg { color: var(--verde); }
.prob-foto { border: 0; padding: 0; background: none; margin-top: 12px; display: block; }
.prob-foto img { width: 120px; height: 90px; border-radius: 12px; object-fit: cover; }
.solucao { color: var(--verde); font-size: .9rem; margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; }
.solucao .ic { width: 16px; height: 16px; margin-top: 2px; }
.pst-em-andamento .pilula { color: var(--amarelo); border-color: rgba(255, 193, 77, .4); }
.pst-resolvido .pilula { color: var(--verde); border-color: rgba(61, 220, 132, .4); }

/* ---------- Menu / Kit / Equipe ---------- */
.rodape-logo { display: block; width: 170px; margin: 36px auto 0; opacity: .5; }
.cores { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cor { background: var(--card-2); border: 1px solid var(--borda); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; }
.cor b { font-weight: 500; font-size: .88rem; }
.cor small { font-size: .74rem; letter-spacing: .04em; }
.amostra { width: 100%; height: 54px; border-radius: 9px; margin-bottom: 6px; border: 1px solid rgba(255, 255, 255, .1); }
.lista { margin: 0; padding: 0; list-style: none; }
.lista li { padding: 9px 0; border-top: 1px solid var(--borda); }
.lista li:first-child { border-top: 0; padding-top: 0; }
.lista.links a, .lista.links span { display: inline-flex; align-items: center; gap: 8px; }
.lista.links .ic { width: 17px; height: 17px; color: var(--laranja); }
.membro { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio-p); padding: 12px 14px; margin-bottom: 8px; }
.membro .rotulo { font-size: .6rem; }

/* ---------- Modal ---------- */
.modal-fundo { position: fixed; inset: 0; z-index: 20; background: rgba(6, 3, 2, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--card); border: 1px solid var(--borda); border-bottom: 0; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 22px 18px calc(22px + var(--seguro-baixo)); display: flex; flex-direction: column; gap: 14px; animation: sobe .22s ease-out; }
.modal::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--texto-3); align-self: center; margin: -8px 0 2px; opacity: .6; }
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } }
.modal h3 { font-size: 1.25rem; font-weight: 600; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); }
.modal input, .modal select, .modal textarea { font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--texto); background: var(--card-2); border: 1px solid var(--borda); border-radius: 12px; padding: 12px 13px; width: 100%; min-height: 46px; }
.modal input[type=file] { padding: 10px; font-size: .9rem; }
.modal select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texto-2) 50%), linear-gradient(135deg, var(--texto-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: none; border-color: var(--laranja); }
.modal-acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal-acoes .perigo { margin-right: auto; }
@media (min-width: 600px) { .modal-fundo { align-items: center; } .modal { border-radius: 26px; border-bottom: 1px solid var(--borda); } .modal::before { display: none; } }

.toast { position: fixed; left: 50%; bottom: calc(104px + var(--seguro-baixo)); transform: translateX(-50%); z-index: 50; background: var(--texto); color: #1B0D06; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); max-width: calc(100vw - 32px); text-align: center; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- WhatsApp ---------- */
.btn-redondo.whats { color: #3DDC84; }
.btn.claro .ic { color: var(--laranja); }

/* ---------- Escala: ordem, indisponível, checklist da equipe ---------- */
.funcoes li b i { font-style: normal; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; margin-left: 8px; }
.funcoes li b i.fora { background: rgba(255, 77, 77, .15); color: var(--vermelho); }
.funcoes li b i.pronto { background: var(--card-2); color: var(--texto-2); border: 1px solid var(--borda); }
.funcoes li b i.pronto.ok { background: rgba(61, 220, 132, .15); color: var(--verde); border-color: transparent; }
details.ordem { margin-top: 10px; border-top: 1px solid var(--borda); padding-top: 10px; }
details.ordem summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; font-size: .93rem; color: var(--laranja-claro); }
details.ordem summary::-webkit-details-marker { display: none; }
details.ordem summary .ic { width: 17px; height: 17px; }
details.ordem summary small { margin-left: auto; font-size: .76rem; }
details.ordem ol { list-style: none; margin: 12px 0 2px; padding: 0 0 0 6px; border-left: 1px solid var(--borda-forte); }
details.ordem li { position: relative; display: flex; gap: 12px; padding: 6px 0 6px 16px; font-size: .92rem; }
details.ordem li::before { content: ""; position: absolute; left: -4px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--laranja); }
details.ordem time { color: var(--laranja-claro); font-weight: 600; min-width: 46px; font-variant-numeric: tabular-nums; }

/* ---------- Checklist ---------- */
.ck-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ck-topo > div { display: flex; flex-direction: column; gap: 2px; }
.ck-topo .rotulo { margin: 0; }
.ck-topo b { font-size: 1.08rem; font-weight: 600; }
.ck-num { font-size: 1.3rem; font-weight: 600; color: var(--laranja); font-variant-numeric: tabular-nums; }
.ck-num.ok { color: var(--verde); }
.checklist .barra { margin: 10px 0 8px; }
.ck-funcao { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--laranja); margin: 12px 0 2px; }
.ck-item { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; border-top: 1px solid var(--borda); padding: 11px 0; text-align: left; font-size: .94rem; min-height: 44px; }
.ck-item.ok { color: var(--texto-2); text-decoration: line-through; text-decoration-color: var(--texto-3); }
.ck-item.ok .check { background: var(--verde); border-color: var(--verde); color: #04170C; }

/* ---------- Tema da pregação ---------- */
.tema blockquote { margin: 12px 0 6px; padding-left: 12px; border-left: 2px solid var(--laranja); color: var(--texto); font-size: 1rem; line-height: 1.5; }
.tema > small { display: block; margin-bottom: 12px; }
.tema .btn.largo { margin: 12px 0 0; }
.tema-vazio { border-style: dashed; }

/* ---------- Disponibilidade ---------- */
.dias { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.dia { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--borda-forte); border-radius: 999px; padding: 7px 8px 7px 14px; font-size: .9rem; }
.dia button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--card-2); color: var(--texto-2); display: grid; place-items: center; padding: 0; }
.dia .ic { width: 14px; height: 14px; }
.data-bloco.mini { width: 44px; height: 46px; border-radius: 12px; }
.data-bloco.mini b { font-size: 1.15rem; }

/* ---------- Guias ---------- */
details.guia { padding: 0; }
details.guia summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; }
details.guia summary::-webkit-details-marker { display: none; }
details.guia[open] summary .chev { transform: rotate(90deg); }
.guia-texto { padding: 0 16px 6px; color: var(--texto-2); line-height: 1.65; font-size: .95rem; border-top: 1px solid var(--borda); padding-top: 14px; }
details.guia .btn.largo { margin: 12px 16px 16px; width: calc(100% - 32px); }

/* ---------- Escala: mapa do mês ---------- */
.chips-mini { display: flex; gap: 8px; margin-bottom: 12px; }
.chips-mini button { background: none; border: 1px solid var(--borda); border-radius: 999px; padding: 6px 14px; color: var(--texto-2); font-size: .84rem; }
.chips-mini button.ativo { border-color: var(--laranja); color: var(--laranja-claro); }
.mes-nav { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 12px; }
.mes-nav div { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.mes-nav b { font-size: 1.35rem; font-weight: 600; }
.mes-nav small { font-size: .78rem; letter-spacing: .2em; }
.mes-resumo { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 8px; margin-bottom: 12px; }
.mes-resumo > div { background: var(--card); border: 1px solid var(--borda); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.mes-resumo b { font-size: 1.35rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mes-resumo b i { font-style: normal; font-size: .85rem; color: var(--texto-2); font-weight: 400; }
.mes-resumo small { font-size: .72rem; }
.mes-resumo .barra { margin-top: 6px; display: block; }
.mapa-wrap { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); margin: 0 0 10px; }
.mapa { width: 100%; border-collapse: collapse; min-width: 430px; }
.mapa thead th { font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-2); padding: 12px 4px 10px; text-align: center; border-bottom: 1px solid var(--borda-forte); }
.mapa thead th:first-child { text-align: left; padding-left: 12px; }
.mapa tbody th { text-align: left; padding: 0; position: sticky; left: 0; background: var(--card); z-index: 1; }
.mapa td { padding: 4px 2px; text-align: center; }
.mapa tr + tr th, .mapa tr + tr td { border-top: 1px solid rgba(255, 128, 72, .05); }
.mapa tr.novo-dia th, .mapa tr.novo-dia td { border-top: 1px solid var(--borda-forte); }
.mapa tr.passado { opacity: .42; }
.mapa tr.proximo th .mapa-data b { color: var(--laranja-claro); }
.mapa-data { background: none; border: 0; padding: 8px 6px 8px 12px; display: flex; flex-direction: column; text-align: left; line-height: 1.15; width: 100%; min-height: 48px; justify-content: center; }
.mapa-data b { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.mapa-data small { font-size: .7rem; white-space: nowrap; }
.vaga { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 38px; border-radius: 10px; font-size: .8rem; font-weight: 500; padding: 4px 3px; border: 1px solid transparent; background: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 76px; margin: 0 auto; }
.vaga.cheio { background: var(--card-2); border-color: var(--borda); }
.vaga.vazio { color: var(--texto-3); border: 1px dashed rgba(255, 128, 72, .22); font-size: 1rem; }
span.vaga.vazio { border: 0; font-size: .85rem; }
.vaga.eu { background: var(--degrade); color: #1B0D06; font-weight: 600; border-color: transparent; }
.vaga.fora { border-color: rgba(255, 77, 77, .6); color: #FF8A8A; }
.legenda-mapa { display: flex; flex-wrap: wrap; gap: 14px; font-size: .76rem; color: var(--texto-2); margin: 4px 2px 14px; }
.legenda-mapa span { display: inline-flex; align-items: center; gap: 6px; }
.legenda-mapa i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legenda-mapa i.l-eu { background: var(--degrade); }
.legenda-mapa i.l-fora { border: 1px solid rgba(255, 77, 77, .7); }
.legenda-mapa i.l-vazio { border: 1px dashed rgba(255, 128, 72, .4); }
.btn.claro.largo + .btn.claro.largo { margin-top: -4px; }

/* Escolher pessoa da vaga */
.sub-modal { color: var(--texto-2); font-size: .9rem; margin-top: -8px; }
.escolhas { display: flex; flex-direction: column; gap: 6px; }
.escolha { display: flex; align-items: center; gap: 12px; background: var(--card-2); border: 1px solid var(--borda); border-radius: 14px; padding: 10px 12px; text-align: left; min-height: 56px; }
.escolha.atual { border-color: var(--laranja); }
.escolha .chev { color: var(--laranja); }
.tag { font-style: normal; font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--card); color: var(--texto-2); border: 1px solid var(--borda); white-space: nowrap; }
.tag.fora { background: rgba(255, 77, 77, .14); color: var(--vermelho); border-color: transparent; }
/* mapa cabe inteiro na tela do celular */
.mapa { min-width: 0; table-layout: fixed; }
.mapa thead th:first-child, .mapa tbody th { width: 64px; }
.mapa thead th { font-size: .58rem; letter-spacing: .06em; padding: 12px 1px 10px; }
.mapa-data { padding: 8px 4px 8px 10px; }
.mapa-data b { font-size: .84rem; }
.vaga { max-width: none; font-size: .74rem; padding: 4px 2px; min-height: 40px; border-radius: 9px; }
.mapa td { padding: 3px 2px; }
@media (min-width: 520px) { .mapa thead th:first-child, .mapa tbody th { width: 84px; } .vaga { font-size: .82rem; } .mapa thead th { font-size: .64rem; letter-spacing: .12em; } }
.mapa tr.passado .vaga.vazio { border-color: transparent; }

/* Vaga: digitar nome livre */
.digitar { display: flex; gap: 8px; }
.digitar input { flex: 1; font: inherit; font-size: 1rem; color: var(--texto); background: var(--card-2); border: 1px solid var(--borda-forte); border-radius: 12px; padding: 11px 13px; min-height: 46px; }
.digitar input:focus { outline: none; border-color: var(--laranja); }
.digitar .btn { min-height: 46px; }
.atalhos-nomes { display: flex; flex-wrap: wrap; gap: 8px; }
.nome-chip { background: var(--card-2); border: 1px solid var(--borda); border-radius: 999px; padding: 8px 14px; font-size: .9rem; min-height: 38px; }
.nome-chip.eu-chip { background: var(--degrade); color: #1B0D06; border-color: transparent; font-weight: 600; }
.nome-chip.atual { border-color: var(--laranja); color: var(--laranja-claro); }
.modal > .rotulo { margin: 4px 0 -4px; }
.voltar-btn { color: var(--texto); }
