/* InteliPaceNews: barra preta, fundo off-white quente, vermelho só como destaque, cantos quase retos. */
:root {
  --bg: #f4f2f0; --card: #fff; --text: #151313; --muted: #6b6462; --faint: #9a9391; --border: #e7e3e0;
  --brand: #d9043f; --brand-2: #b00333; --track: #efebe8; --hover: #f7f5f4; --up: #15803d; --down: #b91c1c; --warn: #a16207;
  --side: 212px; --r: 6px; --r-sm: 4px; color-scheme: light;
}
@font-face { font-family: "Roboto Condensed"; src: url("/w/roboto-condensed-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.4 "Roboto Condensed", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.shell { display: flex; min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: #000; color: #fff; display: flex; flex-direction: column; z-index: 30;
  padding: calc(env(safe-area-inset-top) + 16px) 10px calc(env(safe-area-inset-bottom) + 10px); overflow-y: auto; transition: transform .18s; }
.marca { padding: 2px 8px 18px; }
.marca img { width: 140px; height: auto; display: block; }
.marca small { display: block; font-size: 11px; letter-spacing: .14em; opacity: .7; margin-top: 7px; }
.side-rot { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; padding: 12px 9px 5px; }
.nav-i { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: var(--r-sm); font-size: 15px; color: #fff; }
.nav-i:hover { background: rgba(255,255,255,.09); }
.nav-i.ativo { background: var(--brand); font-weight: 700; }
.nav-i svg { width: 16px; height: 16px; flex: none; }
.selo { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.nav-i.ativo .selo { background: #000; }
.side-pe { margin-top: auto; padding: 14px 9px 4px; font-size: 13px; opacity: .85; display: flex; justify-content: space-between; align-items: center; }
.side-pe a { text-decoration: underline; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 25; }

.main { flex: 1; min-width: 0; margin-left: var(--side); }
.topo { position: sticky; top: 0; z-index: 20; background: var(--bg); display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 22px; }
.topo h1 { font-size: 22px; font-weight: 700; margin: 0; }
.menu { display: none; width: 44px; height: 44px; margin-left: -10px; place-items: center; }
.menu svg { width: 22px; height: 22px; }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 8px; }
#conteudo { padding: 2px 22px calc(env(safe-area-inset-bottom) + 44px); max-width: 1240px; }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); overflow: hidden; }
.seg button { padding: 7px 12px; font-size: 13.5px; min-height: 36px; }
.seg button.ativo { background: #000; color: #fff; font-weight: 700; }

.grade { display: grid; gap: 12px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bloco { margin-top: 14px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 15px 16px; min-width: 0; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.card h3 small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 5px; }
.sec { font-size: 17px; font-weight: 700; margin: 24px 0 9px; display: flex; align-items: baseline; gap: 8px; }
.sec small { font-weight: 400; color: var(--muted); font-size: 13.5px; }

.kpi-r { font-size: 13px; color: var(--muted); }
.kpi-v { font-size: 30px; font-weight: 700; line-height: 1.12; margin-top: 3px; letter-spacing: -.3px; }
.kpi-s { font-size: 13px; color: var(--muted); margin-top: 3px; }
.sobe { color: var(--up); } .desce { color: var(--down); }
.nulo { color: var(--faint); }

.colunas { display: flex; align-items: flex-end; gap: 2px; height: 130px; border-bottom: 1px solid var(--border); }
.col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.col i { display: block; width: 100%; max-width: 26px; margin: 0 auto; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 0; }
.col.zero i { background: transparent; }
.col:hover i { background: var(--brand-2); }
.eixo { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 5px; }
.dica { position: fixed; z-index: 60; background: #000; color: #fff; padding: 5px 8px; border-radius: var(--r-sm); font-size: 13px; pointer-events: none; white-space: nowrap; }

.lin { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 14px; padding: 4px 0; }
.lin .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lin .trilho { height: 10px; background: var(--track); border-radius: 0 4px 4px 0; }
.lin .trilho i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.lin .val { text-align: right; font-variant-numeric: tabular-nums; }
.medidor { height: 10px; background: var(--track); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.medidor i { display: block; height: 100%; background: #151313; }
.medidor.alto i { background: var(--brand); }

.tab-env { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr.clica { cursor: pointer; } tbody tr.clica:hover { background: var(--hover); }
.tit { font-weight: 600; }
.meta { color: var(--muted); font-size: 13px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 13px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); font-size: 14px; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.pri { background: #000; color: #fff; border-color: #000; font-weight: 600; }
.btn.pri:hover { background: #1f1c1c; }
.btn.perigo { color: var(--brand); border-color: rgba(217,4,63,.4); }
.btn:disabled { opacity: .5; cursor: default; }
.acoes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.item { padding: 13px 0; border-bottom: 1px solid var(--border); }
.item:last-child { border-bottom: 0; padding-bottom: 2px; } .item:first-of-type { padding-top: 2px; }
.item-t { font-weight: 600; font-size: 16px; line-height: 1.25; }
.item-t a:hover { color: var(--brand); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 3px; background: var(--track); font-size: 12.5px; color: #3b3634; white-space: nowrap; }
.tag.ruim { background: var(--brand); color: #fff; } .tag.preto { background: #000; color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; align-items: center; }
.aviso { display: flex; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14.5px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid #151313; margin-bottom: 8px; }
.aviso.ruim { border-left-color: var(--brand); }
.vazio { color: var(--muted); padding: 12px 0; font-size: 14.5px; }
.corpo-m { white-space: pre-wrap; font-size: 15px; line-height: 1.55; max-height: 460px; overflow-y: auto; }
.prob { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; } .prob:last-child { border-bottom: 0; }
.fotos { display: flex; gap: 8px; flex-wrap: wrap; } .fotos img { height: 170px; border-radius: var(--r-sm); }
dl.campos { margin: 0; } dl.campos dt { font-size: 13px; color: var(--muted); margin-top: 10px; } dl.campos dd { margin: 2px 0 0; white-space: pre-wrap; }
.voltar { font-size: 14px; color: var(--muted); display: inline-block; margin-bottom: 10px; min-height: 28px; }

.inp { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; font-size: 16px; }
textarea.inp { min-height: 96px; resize: vertical; }
.campo { display: block; margin-top: 12px; } .campo > span { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.opc { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); margin-top: 7px; cursor: pointer; }
.opc input { margin-top: 4px; accent-color: #000; }
.modal-f { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--card); border-radius: var(--r); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; padding: 18px; }
.modal h3 { font-size: 18px; } .modal p.sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.modal .erro { color: var(--brand); font-size: 14px; margin-top: 10px; min-height: 18px; }
.modal-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 18px); background: #000; color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 70; font-size: 14.5px; max-width: 92vw; }
.faixa-fila { background: #000; color: #fff; padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 12px; }
.ok-p { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--up); margin-right: 7px; } .ok-p.nao { background: var(--brand); }

.entrar { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #000; }
.entrar .card { width: 100%; max-width: 360px; padding: 22px; }
.entrar img { width: 150px; filter: invert(1); display: block; margin-bottom: 8px; }
.entrar .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.entrar .btn { width: 100%; margin-top: 10px; }
.entrar .msg { font-size: 14px; color: var(--brand); margin-top: 10px; min-height: 18px; }

@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .side { transform: translateX(-100%); width: 250px; }
  .shell.aberto .side { transform: none; } .shell.aberto .scrim { display: block; }
  .main { margin-left: 0; }
  .menu { display: grid; }
  .topo { padding: calc(env(safe-area-inset-top) + 6px) 16px 8px; }
  #conteudo { padding-left: 16px; padding-right: 16px; }
  .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .kpi-v { font-size: 26px; }
  .nav-i { min-height: 44px; }
  .btn { min-height: 44px; }
  .lin { grid-template-columns: minmax(0, 96px) minmax(0, 1fr) 52px; }
  table.cartoes thead { display: none; }
  table.cartoes, table.cartoes tbody, table.cartoes tr, table.cartoes td { display: block; }
  table.cartoes tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  table.cartoes tr:last-child { border-bottom: 0; }
  table.cartoes td { border: 0; padding: 2px 0; text-align: left; }
  table.cartoes td[data-r] { display: inline-block; margin-right: 14px; font-size: 13.5px; color: var(--muted); }
  table.cartoes td[data-r]::before { content: attr(data-r) " "; }
  table.cartoes td[data-r] b, table.cartoes td[data-r] { font-weight: 400; }
}

/* Histórias: funil, abas, filtros e prévia do post */
.funil { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 14px; }
.funil-e { background: var(--card); padding: 12px 14px; min-width: 0; }
.funil-e .kpi-v { font-size: 24px; }
.abas { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 14px; scrollbar-width: none; }
.aba { padding: 10px 12px; min-height: 42px; font-size: 14.5px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.aba.ativa { color: var(--text); font-weight: 700; border-bottom-color: var(--brand); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { padding: 6px 11px; min-height: 36px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); font-size: 13.5px; }
.chip b { margin-left: 3px; }
.chip.ativa { background: #000; border-color: #000; color: #fff; }
.arte-post { display: block; width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); background: var(--track); }
.agenda-s.vaga .item-t { color: var(--muted); }
@media (max-width: 760px) { .funil { grid-template-columns: repeat(3, minmax(0, 1fr)); } .funil-e:nth-child(n+4) { grid-column: span 1; } }

/* Nova matéria e Colunas (16/11/2026) */
.nova-modos { margin-bottom: 4px; }
.nova-modo { text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 104px; cursor: pointer; border: 1px solid var(--border); }
.nova-modo strong { font-size: 18px; } .nova-modo span { color: var(--muted); font-size: 14px; }
.nova-modo:hover { border-color: #000; }
.ed-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 8px; }
.ed-foto { position: relative; display: flex; flex-direction: column; gap: 6px; }
.ed-foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); background: var(--track); }
.ed-foto .inp { font-size: 14px; padding: 6px 8px; }
.ed-foto .acoes { margin: 0; } .ed-foto .btn { min-height: 32px; padding: 0 9px; }
.ed-capa { position: absolute; top: 6px; left: 6px; }
.ed-barra { position: sticky; bottom: 8px; z-index: 5; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.btn.gravando { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
audio { width: 100%; max-width: 420px; margin-top: 6px; display: block; }
details summary { cursor: pointer; margin-top: 6px; }
.ed-fig { margin: 0; width: 220px; } .ed-fig img { width: 100%; height: auto; border-radius: var(--r-sm); }
.col-cab { display: flex; align-items: center; gap: 10px; }
.col-cab img, .col-sem-foto { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.col-sem-foto { display: grid; place-items: center; background: #000; color: #fff; font-weight: 700; font-size: 18px; }
.colunista .tags { margin-top: 8px; }
.modal.previa { max-width: 760px; padding: 0; }
.previa-barra { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: #000; color: #fff; font-size: 13.5px; z-index: 1; }
.previa-barra .btn { min-height: 32px; color: var(--text); }
.pv { padding: 18px 22px 26px; font-family: Georgia, "Times New Roman", serif; color: #111; }
.pv-kicker { font: 700 12.5px/1.2 "Roboto Condensed", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.pv h1 { font: 800 30px/1.12 "Roboto Condensed", system-ui, sans-serif; margin: 8px 0 8px; }
.pv-linha { font-size: 18px; line-height: 1.4; color: #444; }
.pv-por { font: 14px "Roboto Condensed", system-ui, sans-serif; color: var(--muted); margin-top: 10px; }
.pv figure { margin: 16px 0; } .pv figure img { width: 100%; height: auto; display: block; }
.pv figcaption { font: 13px/1.35 "Roboto Condensed", system-ui, sans-serif; color: var(--muted); margin-top: 5px; }
.pv-corpo, .pv-corpo p { font-size: 17.5px; line-height: 1.62; }
.pv-corpo p { margin: 0 0 1em; } .pv-corpo h2 { font: 800 21px/1.2 "Roboto Condensed", system-ui, sans-serif; margin: 1.3em 0 .5em; }
.pv-corpo a { color: var(--brand); text-decoration: underline; } .pv-corpo blockquote { margin: 1em 0; padding-left: 14px; border-left: 3px solid var(--brand); color: #333; }
.pv-galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pv-rodape { font: italic 14px/1.4 "Roboto Condensed", system-ui, sans-serif; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 14px; }
.pv-autor { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-family: "Roboto Condensed", system-ui, sans-serif; }
.pv-autor img, .pv-caixa-autor img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pv-autor span { display: block; color: var(--muted); font-size: 13.5px; }
.pv-caixa-autor { display: flex; gap: 12px; margin-top: 18px; padding: 14px; background: var(--hover); border-radius: var(--r-sm); font-family: "Roboto Condensed", system-ui, sans-serif; }
.pv-caixa-autor p { color: #444; font-size: 14.5px; margin-top: 3px; } .pv-caixa-autor span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .pv { padding: 14px 16px 22px; } .pv h1 { font-size: 25px; } .pv-galeria { grid-template-columns: 1fr; } .ed-fotos { grid-template-columns: 1fr 1fr; } }
