:root {
  --roxo: #4F25FF; --roxo-2: #6F4BFF; --roxo-claro: #EEE9FF; --tinta: #0E0B1F; --tinta-2: #2A2640;
  --cinza: #6B6880; --linha: #E7E5EF; --fundo: #F7F6FB; --card: #fff; --luz: #FFD166;
  --verde: #12805C; --verde-f: #E3F6EE; --amarelo: #9A6700; --amarelo-f: #FFF4D6; --vermelho: #C4314B; --vermelho-f: #FDE8EC;
  --raio: 16px; --sombra: 0 1px 2px rgba(14,11,31,.04), 0 8px 24px rgba(14,11,31,.06);
  --fonte: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box }
html, body { margin: 0; background: var(--fundo); color: var(--tinta); font: 15px/1.5 var(--fonte); -webkit-font-smoothing: antialiased }
a { color: var(--roxo); text-decoration: none }
button { font: inherit; cursor: pointer }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--roxo) 45%, transparent); outline-offset: 2px; border-radius: 8px }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em }
h1 { font-size: 26px } h2 { font-size: 19px } h3 { font-size: 15px }
.mudo { color: var(--cinza) } .peq { font-size: 13px } .num { font-variant-numeric: tabular-nums }

/* estrutura */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh }
.app > div { min-width: 0 }
.lado { background: var(--tinta); color: #fff; padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px }
.marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px }
.marca b { font-size: 20px; letter-spacing: -.02em }
.marca small { display: block; color: #B7B2D6; font-size: 12px; margin-top: 1px }
.lado a.item { display: flex; align-items: center; gap: 10px; color: #D8D4F0; padding: 9px 10px; border-radius: 10px; font-size: 14px }
.lado a.item:hover { background: rgba(255,255,255,.06); color: #fff }
.lado a.item.ativo { background: var(--roxo); color: #fff }
.lado .grupo { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8C86B0; margin: 14px 10px 4px }
.lado .rodape { margin-top: auto; padding: 10px; font-size: 12px; color: #8C86B0 }
.lado .rodape img { width: 120px; filter: invert(1) brightness(2); opacity: .9; display: block; margin-top: 6px }
.principal { padding: 28px 36px 60px; max-width: 1180px; width: 100%; min-width: 0 }
.topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap }
.topo .sub { color: var(--cinza); margin-top: 4px; overflow-wrap: anywhere }
.topo > div { min-width: 0 } .topo h1 { overflow-wrap: anywhere }
.barra-mob { display: none }

/* cartões */
.grade { display: grid; gap: 16px }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)) } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)) } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)) }
.card { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px; box-shadow: var(--sombra); min-width: 0 }
.card h2 { margin-bottom: 4px }
.card .cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap }
.kpi { display: flex; flex-direction: column; gap: 2px }
.kpi .v { font-size: 30px; font-weight: 700; letter-spacing: -.02em }
.kpi .r { color: var(--cinza); font-size: 13px }
.vazio { text-align: center; padding: 34px 16px; color: var(--cinza) }
.vazio svg { color: var(--roxo); margin-bottom: 8px }

/* botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--linha); background: #fff; color: var(--tinta); padding: 9px 14px; border-radius: 11px; font-weight: 600; font-size: 14px; min-height: 40px; transition: transform .12s, background .15s, box-shadow .15s }
.btn:hover { background: #FAF9FE } .btn:active { transform: scale(.98) }
.btn.pri { background: var(--roxo); border-color: var(--roxo); color: #fff; box-shadow: 0 6px 16px rgba(79,37,255,.25) }
.btn.pri:hover { background: var(--roxo-2) }
.btn[disabled] { opacity: .55; cursor: progress }
.btn.peq { min-height: 32px; padding: 5px 10px; font-size: 13px }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px }
.campo label { font-weight: 600; font-size: 13px }
input, textarea { font: inherit; border: 1px solid var(--linha); border-radius: 11px; padding: 10px 12px; background: #fff; color: var(--tinta); width: 100%; min-height: 42px }
input:focus, textarea:focus { outline: none; border-color: var(--roxo); box-shadow: 0 0 0 3px var(--roxo-claro) }
.linha-form { display: flex; gap: 8px; flex-wrap: wrap } .linha-form input { flex: 1; min-width: 180px }

/* selos */
.selo { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap }
.s-alta { background: var(--vermelho-f); color: var(--vermelho) } .s-media { background: var(--amarelo-f); color: var(--amarelo) } .s-baixa { background: #EEF1F6; color: #4B5468 }
.s-ok { background: var(--verde-f); color: var(--verde) } .s-roxo { background: var(--roxo-claro); color: var(--roxo) }
.i-informacional { background: #E8F1FF; color: #1F5FBF } .i-comercial { background: #FFF1E6; color: #B4540A } .i-transacional { background: var(--verde-f); color: var(--verde) } .i-navegacional { background: #F1EEF8; color: #5B4F80 }

/* tabela */
.tabela { width: 100%; border-collapse: collapse; font-size: 14px }
.tabela th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--cinza); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--linha); white-space: nowrap }
.tabela td { padding: 10px; border-bottom: 1px solid var(--linha); vertical-align: top }
.tabela tr:last-child td { border-bottom: 0 }
.rolar { overflow-x: auto; margin: 0 -18px; padding: 0 18px }
.quebra { word-break: break-word }

/* medidores */
.anel { --v: 0; --c: var(--roxo); width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), #EEECF5 0); display: grid; place-items: center; flex: none }
.anel::after { content: attr(data-v); width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700 }
.aneis { display: flex; gap: 18px; flex-wrap: wrap }
.aneis .a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--cinza) }
.barras { display: inline-flex; gap: 2px; vertical-align: middle } .barras i { width: 5px; height: 14px; border-radius: 2px; background: #E2DEF2 } .barras i.on { background: var(--roxo) }
.dif { display: inline-flex; align-items: center; gap: 6px } .dif .t { width: 54px; height: 6px; border-radius: 3px; background: #EEECF5; overflow: hidden } .dif .t i { display: block; height: 100% }

/* problemas */
.prob { border: 1px solid var(--linha); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff }
.prob summary { cursor: pointer; display: flex; gap: 10px; align-items: center; list-style: none }
.prob summary::-webkit-details-marker { display: none }
.prob .area { color: var(--cinza); font-size: 12px; margin-left: auto; white-space: nowrap }
.prob .corpo { margin-top: 10px; font-size: 14px }
.prob .resolver { background: var(--roxo-claro); border-radius: 10px; padding: 10px 12px; margin-top: 8px }
.prob ul { margin: 8px 0 0; padding-left: 18px; color: var(--cinza); font-size: 13px }

/* andamento */
.andamento { display: flex; align-items: center; gap: 10px; background: var(--roxo-claro); color: var(--roxo); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px }
.giro { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: g .8s linear infinite; flex: none }
@keyframes g { to { transform: rotate(360deg) } }
.esqueleto { background: linear-gradient(90deg, #EEECF5 25%, #F7F6FB 50%, #EEECF5 75%); background-size: 200% 100%; animation: brilho 1.2s infinite; border-radius: 10px; height: 18px; margin: 8px 0 }
@keyframes brilho { to { background-position: -200% 0 } }

/* projetos */
.proj { display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform .15s, box-shadow .15s }
.proj:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14,11,31,.1) }
.proj .dom { color: var(--cinza); font-size: 13px; word-break: break-all }
.heroi { background: radial-gradient(120% 140% at 100% 0%, #3A1FD0 0%, var(--tinta) 55%); color: #fff; border-radius: 22px; padding: 28px; position: relative; overflow: hidden; margin-bottom: 20px }
.heroi h1 { font-size: 30px; max-width: 620px }
.heroi p { color: #CFCAEB; max-width: 620px; margin: 10px 0 18px }
.heroi .feixe { position: absolute; right: -40px; top: -30px; width: 360px; height: 260px; background: conic-gradient(from 200deg at 0% 50%, transparent 0deg, rgba(255,209,102,.35) 18deg, transparent 36deg); filter: blur(6px); animation: varrer 6s ease-in-out infinite alternate; pointer-events: none }
@keyframes varrer { from { transform: rotate(-8deg) } to { transform: rotate(8deg) } }
@media (prefers-reduced-motion: reduce) { .heroi .feixe, .giro, .esqueleto { animation: none } }

/* abas do projeto */
.abas { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 2px; scrollbar-width: none }
.abas a { padding: 8px 13px; border-radius: 99px; color: var(--tinta-2); background: #fff; border: 1px solid var(--linha); font-size: 14px; font-weight: 600; white-space: nowrap }
.abas a.ativo { background: var(--tinta); color: #fff; border-color: var(--tinta) }

.spark { display: block }
pre.cod { background: var(--tinta); color: #E9E6FF; padding: 14px; border-radius: 12px; overflow-x: auto; font-size: 12.5px; line-height: 1.55 }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em }
.chip-lista { display: flex; flex-wrap: wrap; gap: 6px }
.chip { background: #F1EFF8; border-radius: 99px; padding: 3px 10px; font-size: 13px }
.aviso { background: var(--amarelo-f); color: #6B4A00; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 12px; opacity: 0; transition: .25s; z-index: 50; pointer-events: none; max-width: 90vw }
#toast.on { opacity: 1; transform: translate(-50%, 0) }
.cmp { display: grid; grid-template-columns: 150px repeat(var(--n), minmax(150px, 1fr)); gap: 0; font-size: 13.5px }
.cmp > div { padding: 9px 10px; border-bottom: 1px solid var(--linha) }
.cmp .h { font-weight: 700; background: #FAF9FE }
.cmp .eu { background: var(--roxo-claro) }

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr) }
  .lado { display: none }
  .barra-mob { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; background: var(--tinta); color: #fff; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)) }
  .barra-mob b { font-size: 18px }
  .barra-mob a { color: #D8D4F0; font-size: 14px }
  .principal { padding: 16px 14px 90px }
  .g2, .g3, .g4 { grid-template-columns: 1fr }
  .g4.kpis { grid-template-columns: 1fr 1fr }
  h1 { font-size: 22px } .heroi { padding: 20px; border-radius: 18px } .heroi h1 { font-size: 23px }
  .anel { width: 74px; height: 74px } .anel::after { width: 58px; height: 58px; font-size: 19px }
  .tabela.resp thead { display: none }
  .tabela.resp tr { display: block; border-bottom: 1px solid var(--linha); padding: 8px 0 }
  .tabela.resp td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 4px 0 }
  .tabela.resp td::before { content: attr(data-r); color: var(--cinza); font-size: 12px; flex: none }
  .tabela.resp td:first-child { font-weight: 600 } .tabela.resp td:first-child::before { content: none }
  .cmp { grid-template-columns: 110px repeat(var(--n), minmax(130px, 1fr)) }
}

/* ───────── Faz-Tudo ───────── */
.heroi-txt .selo { background: rgba(255,255,255,.12); color: #fff; margin-bottom: 12px }
.heroi-txt .selo svg { color: var(--luz) }
.g-nova { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start }
.btn.grande { width: 100%; min-height: 48px; font-size: 15px; margin-top: 6px }
select { font: inherit; border: 1px solid var(--linha); border-radius: 11px; padding: 9px 12px; background: #fff; color: var(--tinta); min-height: 42px; width: 100% }
select:focus { outline: none; border-color: var(--roxo); box-shadow: 0 0 0 3px var(--roxo-claro) }
.modos { border: 0; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px }
.modos legend { font-weight: 600; font-size: 13px; margin-bottom: 6px }
.modo { display: block; cursor: pointer; position: relative }
.modo input { position: absolute; opacity: 0; pointer-events: none; width: 1px; min-height: 0; height: 1px; left: 0; top: 0 }
.modo span { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; row-gap: 2px; border: 1.5px solid var(--linha); border-radius: 14px; padding: 12px 14px; transition: border-color .15s, background .15s }
.modo span svg { grid-row: span 2; color: var(--cinza); margin-top: 2px }
.modo small { color: var(--cinza); font-size: 13px }
.modo input:checked + span { border-color: var(--roxo); background: #FAF8FF }
.modo input:checked + span svg { color: var(--roxo) }
.modo input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--roxo) 45%, transparent); outline-offset: 2px }
.bloco-cred { background: var(--fundo); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--tinta-2) }
.check input { width: 18px; min-height: 18px; margin-top: 2px; flex: none }
.exemplos { display: grid; gap: 8px; margin-top: 10px }
.exemplo { text-align: left; border: 1px solid var(--linha); background: #fff; border-radius: 12px; padding: 11px 13px; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, transform .12s }
.exemplo:hover { border-color: var(--roxo) } .exemplo:active { transform: scale(.99) }
.exemplo span { color: var(--cinza); font-size: 13px }
.regras ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px }
.regras li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px }
.regras li svg { color: var(--roxo); margin-top: 2px }
.lista-t { list-style: none; padding: 0; margin: 0 }
.lista-t li { border-bottom: 1px solid var(--linha); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; flex-wrap: wrap }
.lista-t li:last-child { border-bottom: 0 }
.lista-t li > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: inherit; width: 100% }
.lt-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 }
.lt-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pulso { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulso 1.2s ease-in-out infinite }
@keyframes pulso { 50% { opacity: .25 } }
.g-vivo { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; margin-bottom: 16px }
.tela { position: relative; aspect-ratio: 16 / 10; background: #13101F; border-radius: 12px; overflow: hidden }
.tela img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; transition: opacity .2s }
.tela img.on { opacity: 1 }
.tela-vazia { position: absolute; inset: 0; display: grid; place-items: center; color: #8C86B0; font-size: 14px }
.passos { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-height: 560px; overflow-y: auto }
.passos li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start }
.passos li > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere }
.passos li span { color: var(--tinta-2); font-size: 13px }
.passos li small { color: var(--cinza); font-size: 12px }
.passos li small.aviso { color: var(--amarelo) }
.ver-foto { width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--linha); background: var(--roxo-claro); color: var(--roxo); font-weight: 700; font-size: 12px }
.ver-foto[disabled] { background: #F1EFF8; color: var(--cinza); cursor: default }
.passos li.d-aprovado .ver-foto, .passos li.d-login .ver-foto { background: var(--verde-f); color: var(--verde) }
.passos li.d-recusado .ver-foto, .passos li.d-sem .ver-foto { background: var(--vermelho-f); color: var(--vermelho) }
.passos .pensando { display: flex; gap: 8px; align-items: center; color: var(--roxo); font-size: 13px }
.eventos { margin-top: 12px; font-size: 13px } .eventos summary { cursor: pointer; color: var(--amarelo); font-weight: 600 }
.eventos ul { padding-left: 18px; margin: 6px 0 0; color: var(--tinta-2) }
.aprovar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 18px; background: #FFFBF0; border: 1.5px solid #F2C14E; border-radius: var(--raio); padding: 18px; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(154,103,0,.12) }
.aprovar h2 { margin: 8px 0 6px }
.aprovar p { margin: 0 0 8px }
.ap-foto { width: 100%; border-radius: 10px; border: 1px solid var(--linha) }
.resumo { margin-bottom: 16px } .resumo.ok { border-left: 4px solid var(--verde) } .resumo.ruim { border-left: 4px solid var(--amarelo) }
.resumo p { margin: 6px 0 0; white-space: pre-line }
.arquivos { list-style: none; padding: 0; margin: 8px 0 0 }
.arquivos li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linha); overflow-wrap: anywhere }
dialog { border: 0; border-radius: 18px; padding: 18px; max-width: min(960px, 94vw); box-shadow: 0 30px 80px rgba(14,11,31,.35) }
dialog::backdrop { background: rgba(14,11,31,.55) }
dialog img { max-width: 100%; border-radius: 10px; display: block; margin-bottom: 12px }
#f-rotina { width: min(440px, 86vw) } #f-rotina h2 { margin-bottom: 4px }
.linha-form [hidden] { display: none }
@media (max-width: 900px) {
  .g-nova, .g-vivo, .aprovar { grid-template-columns: minmax(0, 1fr) }
  .barra-mob span { gap: 10px !important; font-size: 13px }
  .passos { max-height: none }
  .topo .linha-form { width: 100% } .topo .linha-form .btn { flex: 1 }
}
@media (prefers-reduced-motion: reduce) { .pulso { animation: none } }
.lt-txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.lista-t li, .lista-t li > a { min-width: 0 }
.g-nova > *, .g-vivo > * { min-width: 0 }
@media (max-width: 900px) {
  .barra-mob { gap: 12px }
  .barra-mob span { overflow-x: auto; white-space: nowrap; scrollbar-width: none; min-width: 0 }
}
.envio { background: #fff; border: 1px solid #F2D48A; border-radius: 12px; padding: 10px 12px; margin: 6px 0 10px }
.envio-dest { margin: 6px 0; overflow-wrap: anywhere } .envio code { font-size: 13px }
.envio .tabela td { padding: 5px 8px; font-size: 13px; overflow-wrap: anywhere } .envio .tabela td:first-child { color: var(--cinza); white-space: nowrap }

/* Auditoria BaitaOS 13/10/2026 (celular): sem "elástico" no iPhone e campo com 16 px no toque (o iOS não dá zoom ao digitar). */
html, body { overscroll-behavior: none; }
@media (pointer: coarse), (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), textarea, select { font-size: max(16px, 1em) !important; }
}
