/* Portal Bulb Hub. Cores e fontes seguem o site (laranja #f37021, escuro #141414, claro #f0efef).
   A Futura vem do próprio site (assets/fonts); Jost fica de reserva. */
@font-face { font-family: "Futura CXB"; src: url("/fonts/FuturaCondensedExtraBold.otf") format("opentype"); font-weight: 400 900; font-style: normal; font-display: swap; }
:root {
  --side-bg: #141414;
  --side-linha: #141414;
  --laranja: #f37021;
  --laranja-escuro: #c85512;
  --laranja-suave: #fde3d2;
  --fundo: #f0efef;
  --superficie: #ffffff;
  --superficie-2: #e8e6e4;
  --tinta: #141414;
  --muted: #6a6560;
  --linha: #d9d5d1;
  --sobre-laranja: #141414;

  --st-todo-bg: #e6e3e0; --st-todo-fg: #4c4844;
  --st-prod-bg: #dce8f5; --st-prod-fg: #1f4e7a;
  --st-rev-bg: #e9e0f5;  --st-rev-fg: #55327f;
  --st-apr-bg: #fbefc4;  --st-apr-fg: #6e5200;
  --st-adj-bg: #fde3d2;  --st-adj-fg: #93400f;
  --st-ok-bg: #d7edd8;   --st-ok-fg: #1e5e2a;
  --st-cx-bg: #f3d6d6;   --st-cx-fg: #8a2323;
  --st-pub-bg: #d3e4f2;  --st-pub-fg: #194a73;

  --display: "Futura CXB", "Futura", "Jost", "Avenir Next", sans-serif;
  --corpo: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --acento: "Cormorant Garamond", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --side-bg: #0b0b0b;
    --side-linha: #2a2a2a;
    --laranja-suave: #3d2414;
    --fundo: #141414; --superficie: #1d1d1d; --superficie-2: #262626; --tinta: #f0efef; --muted: #a39d97; --linha: #333;
    --st-todo-bg: #2b2b2b; --st-todo-fg: #c8c3be;
    --st-prod-bg: #1c3046; --st-prod-fg: #a9cbee;
    --st-rev-bg: #302545;  --st-rev-fg: #d2bef0;
    --st-apr-bg: #3d3311;  --st-apr-fg: #f2d675;
    --st-adj-bg: #46261a;  --st-adj-fg: #f5b48e;
    --st-ok-bg: #1d3a22;   --st-ok-fg: #9fdba8;
    --st-cx-bg: #431f1f;   --st-cx-fg: #f2a7a7;
    --st-pub-bg: #1b3248;  --st-pub-fg: #a3c9ec;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--fundo); color: var(--tinta); font-family: var(--corpo); font-size: 15px; line-height: 1.5; letter-spacing: -0.01em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; letter-spacing: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }

/* Marca */
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marca-logo { width: 44px; height: auto; flex: none; display: block; fill: currentColor; }
.marca-logo .miolo { fill: var(--logo-fundo, var(--fundo)); }
.side { --logo-fundo: var(--side-bg); }
.login .marca-logo { width: 56px; }
.marca-texto { display: flex; flex-direction: column; gap: 3px; }
.marca-nome { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1; }
.marca-nome sup { font-size: 0.5em; }
.marca-sub { font-family: var(--acento); font-style: italic; font-weight: 400; font-size: 1.1rem; color: var(--laranja); line-height: 1; }

/* Botões e campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--linha); background: var(--superficie); cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--tinta); }
.btn.primary { background: var(--laranja); border-color: var(--laranja); color: var(--sobre-laranja); }
.btn.primary:hover { background: var(--laranja-escuro); border-color: var(--laranja-escuro); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--tinta); background: var(--superficie-2); }
.btn.small { padding: 6px 12px; font-size: 0.85rem; }
.btn.perigo { background: var(--superficie); border-color: var(--st-cx-fg); color: var(--st-cx-fg); }
.btn.perigo:hover { background: var(--st-cx-fg); color: #fff; }
.perigo-zona { padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; max-width: 760px; border-color: var(--st-cx-bg); }
.perigo-zona h2 { font-size: 1rem; }
.perigo-zona p { margin: 4px 0 0; max-width: 52ch; }
.lista-excluir { margin: 0; padding: 14px 20px 14px 36px; max-width: 760px; display: flex; flex-direction: column; gap: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend, .pilha > label { font-weight: 600; font-size: 0.88rem; }
.input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linha); background: var(--superficie); }
.input.curto { max-width: 240px; }
textarea.input { min-height: 96px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--linha); border-radius: 999px; cursor: pointer; font-weight: 500; }
.pilha { display: flex; flex-direction: column; gap: 10px; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Login */
.solo { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; padding-inline: 16px; }
.login { width: 100%; max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.login-marca { display: flex; flex-direction: column; gap: 18px; }
.login-marca h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.login-marca h1 em { display: block; font-family: var(--acento); font-style: italic; font-weight: 300; text-transform: none; color: var(--laranja); letter-spacing: -0.02em; }
.login-marca p { color: var(--muted); max-width: 40ch; margin: 0; }
.login-form { display: flex; flex-direction: column; gap: 14px; padding: 28px; }

/* Estrutura */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
/* A barra lateral é sempre escura, com cores próprias, nos dois temas. */
.side { background: var(--side-bg); color: #f0efef; border-right: 1px solid var(--side-linha); padding: 24px 14px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .marca { padding: 0 6px; }
.side .marca-nome { color: #f0efef; }
.side .eyebrow { color: #8f8a85; padding: 0 10px 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: #d8d5d2; }
.nav a:hover { background: #262626; color: #fff; }
.nav a[aria-current="page"] { background: var(--laranja); color: var(--sobre-laranja); font-weight: 600; }
.count { font-family: var(--mono); font-size: 0.75rem; padding: 1px 7px; border-radius: 99px; background: #2e2e2e; color: #d8d5d2; }
.nav a[aria-current="page"] .count { background: rgba(20, 20, 20, .18); color: var(--sobre-laranja); }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: #222; }
.me .who { min-width: 0; flex: 1; text-decoration: none; }
.me .who b { display: block; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.me .who span { font-size: 0.78rem; color: #a39d97; }
.me form { margin: 0; }
.me .btn.ghost { color: #a39d97; }
.me .btn.ghost:hover { background: #333; color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; background: var(--laranja); color: var(--sobre-laranja); flex: none; }
.main { min-width: 0; padding-block: 32px 72px; padding-inline: clamp(16px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; max-width: 1240px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-head .lead { color: var(--muted); max-width: 64ch; margin: 8px 0 0; }
.voltar { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.voltar:hover { color: var(--tinta); }
.flash { margin: 0; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.flash.ok { background: var(--st-ok-bg); color: var(--st-ok-fg); }
.flash.erro { background: var(--st-cx-bg); color: var(--st-cx-fg); }
.aviso { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--superficie-2); color: var(--muted); }

/* Cartões */
.card { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--r); }
.card.form, section.card.pilha { padding: 20px; }
.form { display: grid; gap: 16px; padding: 22px; max-width: 760px; }
.destaque { padding: 18px 20px; border-color: var(--laranja); background: var(--laranja-suave); display: flex; flex-direction: column; gap: 8px; }
.destaque p { margin: 0; }
.lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.lista li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.vazio { padding: 26px; text-align: center; color: var(--muted); margin: 0; }
.grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
@media (max-width: 1180px) { .grade { grid-template-columns: 1fr; } }
.grade > .card:first-child { padding: 20px; }

/* Status */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.s-todo { background: var(--st-todo-bg); color: var(--st-todo-fg); }
.s-prod { background: var(--st-prod-bg); color: var(--st-prod-fg); }
.s-rev  { background: var(--st-rev-bg);  color: var(--st-rev-fg); }
.s-apr  { background: var(--st-apr-bg);  color: var(--st-apr-fg); }
.s-adj  { background: var(--st-adj-bg);  color: var(--st-adj-fg); }
.s-ok   { background: var(--st-ok-bg);   color: var(--st-ok-fg); }
.s-cx   { background: var(--st-cx-bg);   color: var(--st-cx-fg); }
.s-pub  { background: var(--st-pub-bg);  color: var(--st-pub-fg); }
.s-wait { background: var(--superficie-2); color: var(--muted); }
.late { font-size: 0.72rem; font-weight: 700; color: var(--st-cx-fg); text-transform: uppercase; letter-spacing: .06em; }
.tag { font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--superficie-2); color: var(--muted); white-space: nowrap; }
.tag-admin { background: var(--laranja-suave); color: var(--tinta); }

/* Resumo e filtros */
.strip { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--superficie); border: 1px solid var(--linha); }
.tile b { font-family: var(--display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.filtros { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--linha); background: var(--superficie); text-decoration: none; font-size: 0.85rem; }
.chip[aria-pressed="true"] { background: var(--tinta); color: var(--fundo); border-color: var(--tinta); }

/* Tabelas */
.tabela { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--superficie-2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--fundo); }
.linha-link { text-decoration: none; }
.linha-link:hover { text-decoration: underline; text-decoration-color: var(--laranja); text-underline-offset: 3px; }
.matriz td, .matriz th { text-align: center; }
.matriz td:first-child, .matriz th:first-child { text-align: left; }
.sim { color: var(--st-ok-fg); font-weight: 700; }
.nao { color: var(--muted); }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-corpo { position: absolute; right: 0; z-index: 5; margin-top: 6px; width: 260px; padding: 14px; background: var(--superficie); border: 1px solid var(--linha); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); display: flex; flex-direction: column; gap: 10px; }

/* Pautas e peças */
.pauta-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; padding: 18px 20px; border-bottom: 1px solid var(--linha); }
.pauta-head .t { min-width: 0; flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.porta { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.peca { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; gap: 8px 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--linha); text-decoration: none; }
.peca:last-child { border-bottom: 0; }
.peca:hover { background: var(--fundo); }
.peca .nome { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.peca .meta { font-size: 0.84rem; color: var(--muted); }
.peca .direita { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.redes { display: flex; flex-wrap: wrap; gap: 6px; }
.rede { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--linha); white-space: nowrap; }
.rede i { width: 7px; height: 7px; border-radius: 50%; background: var(--linha); }
.rede.pub i { background: var(--st-pub-fg); }
.rede.ag i { background: var(--st-ok-fg); }

/* Para aprovar */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.peca-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.peca-card .topo { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.peca-card .acoes { margin-top: auto; }
.peca-card form { margin: 0; }
.resposta { padding: 20px; border-color: var(--laranja); background: var(--laranja-suave); display: flex; flex-direction: column; gap: 12px; }
.resposta p { margin: 0; }
.resposta form { margin: 0; }

/* Peça */
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px 14px; align-items: center; margin: 0; }
.kv dt { color: var(--muted); font-size: 0.86rem; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv form { margin: 0; }
.rede-linha { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px; border: 1px solid var(--linha); border-radius: 10px; margin: 0; }
.rede-linha b { flex: 1 0 100%; }
.rede-linha .mini { flex: 1 1 150px; min-width: 0; }
.rede-linha .largo { flex-basis: 100%; }
.rede-linha.leitura { align-items: center; }
.rede-linha.leitura b { flex: 1 1 auto; }
.mini { display: flex; flex-direction: column; gap: 4px; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.conversa { display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 14px; border-radius: 10px; background: var(--fundo); }
.msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.registro { background: transparent; border: 1px dashed var(--linha); color: var(--muted); font-size: 0.88rem; }
.msg .por { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; margin-bottom: 4px; }

/* Prévia dos arquivos */
.previa { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.previa-topo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.previa.vazia p { margin: 0; }
.carrossel { position: relative; border-radius: 10px; background: var(--superficie-2); overflow: hidden; }
.trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.trilho::-webkit-scrollbar { display: none; }
.slide { --alt: min(68vh, 640px); flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: flex; align-items: center; justify-content: center; height: var(--alt); padding: 16px; }
.slide img, .slide video { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(var(--alt) - 32px); object-fit: contain; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); background: #000; }
.slide img { background: transparent; }
.seta { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(20, 20, 20, .78); color: #fff; font-size: 1.1rem; cursor: pointer; }
.seta:hover { background: var(--laranja); color: #141414; }
.seta.ant { left: 12px; }
.seta.prox { right: 12px; }
.contador { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(20, 20, 20, .78); color: #fff; }
.capa { position: relative; display: block; margin: -18px -18px 0; aspect-ratio: 4 / 5; max-height: 320px; background: var(--superficie-2); border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.capa img, .capa video { width: 100%; height: 100%; object-fit: cover; display: block; }
.capa-v { position: absolute; bottom: 10px; right: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(20, 20, 20, .78); color: #fff; font-size: 0.75rem; font-weight: 700; }

/* Marcações sobre a prévia */
.palco { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.camada { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; touch-action: none; }
.camada .marca { pointer-events: visiblePainted; cursor: pointer; }
.camada .marca.resolvida { opacity: .45; }
.camada .marca.destaque .marca-num { stroke: #141414; stroke-width: 3; }
.camada .marca.rascunho { pointer-events: none; }
.desenhando .camada { pointer-events: all; cursor: crosshair; }
.desenhando .camada .marca { pointer-events: none; }
.desenhando .seta { opacity: .35; }

.anot { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--linha); }
.anot-barra { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.anot-grupo { display: inline-flex; gap: 4px; padding: 3px; border-radius: 99px; background: var(--superficie-2); }
.ferr { border: 0; background: transparent; padding: 6px 12px; border-radius: 99px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.ferr[aria-pressed="true"] { background: var(--tinta); color: var(--fundo); }
.cor { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; }
.cor[aria-pressed="true"] { border-color: var(--tinta); box-shadow: inset 0 0 0 2px var(--superficie-2); }
.anot-dica { flex: 1 1 220px; }
.anot-novo { display: flex; flex-direction: column; gap: 8px; }
.anot-novo textarea { min-height: 70px; }
.anot-alvo { font-weight: 600; }
.anot-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.anot-cab .chip { cursor: pointer; font: inherit; font-size: 0.82rem; }
.anot-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.anot-vazio { padding: 10px 0; }
.anot-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--linha); background: var(--superficie); }
.anot-item.destaque { border-color: var(--laranja); box-shadow: 0 0 0 2px var(--laranja-suave); }
.anot-item.resolvida { opacity: .7; }
.anot-num { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--c); color: #fff; font-weight: 700; font-size: 0.8rem; cursor: pointer; }
.anot-num.sem { background: var(--superficie-2); color: var(--muted); }
.anot-corpo { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.anot-meta { font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.anot-meta b { color: var(--tinta); }
.anot-lugar { align-self: flex-start; border: 0; padding: 0; background: none; color: var(--laranja-escuro); font-size: 0.78rem; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: .05em; }
.anot-texto { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.anot-resolvida { margin: 0; color: var(--st-ok-fg); font-weight: 600; }
.anot-resps { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding-left: 12px; border-left: 2px solid var(--linha); }
.anot-acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2px; }
.link-acao { border: 0; background: none; padding: 0; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.link-acao:hover { color: var(--tinta); text-decoration: underline; }
.link-acao.perigo:hover { color: var(--st-cx-fg); }
.anot-resposta { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.anot-resposta textarea { min-height: 60px; }
@media (prefers-color-scheme: dark) { .anot-lugar { color: var(--laranja); } }

/* Calendário */
.legenda { display: flex; flex-wrap: wrap; gap: 8px; }
.legenda .cal-item { pointer-events: none; display: inline-flex; }
.cal { overflow: hidden; }
.cal-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dia-semana { padding: 10px 12px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--superficie-2); }
.cal-dia { min-height: 118px; padding: 8px; border-top: 1px solid var(--linha); border-right: 1px solid var(--linha); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-dia:nth-child(7n) { border-right: 0; }
.cal-dia.fora { background: var(--fundo); }
.cal-dia.fora .cal-num { color: var(--linha); }
.cal-num { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); align-self: flex-start; padding: 1px 6px; border-radius: 99px; }
.cal-dia.hoje .cal-num { background: var(--laranja); color: var(--sobre-laranja); font-weight: 700; }
.cal-item { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 5px 7px; border-radius: 6px; font-size: 0.76rem; line-height: 1.25; text-decoration: none; border: 1px solid transparent; }
.cal-item:hover { border-color: var(--tinta); }
.cal-rede { font-weight: 700; font-size: 0.68rem; letter-spacing: .04em; }
.cal-nome { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.cal-cliente { display: block; font-size: 0.68rem; opacity: .75; }
.legenda .cal-item { flex-direction: row; align-items: center; gap: 6px; }
.cal-item.previsto { background: var(--superficie); border: 1px dashed var(--muted); }
.cal-item.agendado { background: var(--st-ok-bg); color: var(--st-ok-fg); }
.cal-item.publicado { background: var(--st-pub-bg); color: var(--st-pub-fg); }
.cal-lista { display: none; }
.cal-lista-dia { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--linha); }
.cal-lista-dia:first-child { border-top: 0; }
.cal-lista-dia.hoje b { color: var(--laranja); }
@media (max-width: 760px) {
  .cal-grade { display: none; }
  .cal-lista { display: block; }
  .cal-lista .cal-nome { white-space: normal; }
}

/* Celular */
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side, .main, .nav { min-width: 0; }
  .side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; overflow: visible; }
  .side .marca { margin-right: auto; }
  .nav { flex-direction: row; overflow-x: auto; width: 100%; order: 3; gap: 4px; }
  .side .eyebrow { display: none; }
  .nav a { white-space: nowrap; }
  .me { margin-top: 0; padding: 6px 8px; }
  .me .who { display: none; }
  .grade, .duas { grid-template-columns: 1fr; }
  .peca { grid-template-columns: 1fr; }
  .peca .direita { flex-direction: row; align-items: center; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Prévia lida do Drive */
.slide.doc { padding: 0; }
.previa-doc { width: 100%; height: 100%; border: 0; background: #fff; }
.versoes .chip { font-size: 0.8rem; }
.trocar-link { position: relative; }
.trocar-link summary { list-style: none; }
.trocar-link summary::-webkit-details-marker { display: none; }
.trocar-link[open] { flex: 1 0 100%; }
.trocar-link form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 14px; border: 1px solid var(--linha); border-radius: 10px; background: var(--fundo); }
.trocar-link .inline .input { flex: 1 1 280px; }
.capa .capa-txt { display: none; }
.capa.sem { display: grid; place-items: center; aspect-ratio: auto; height: 120px; }
.capa.sem img { display: none; }
.capa.sem .capa-txt { display: block; color: var(--muted); font-size: 0.85rem; }

/* Calendário: visão de semana e botão Hoje */
.page-head .acoes .anot-grupo .ferr { text-decoration: none; }
.hoje-ativo { border-color: var(--laranja); color: var(--laranja-escuro); }
.cal-semana .cal-dia { min-height: 280px; padding: 10px; }
.cal-semana .cal-nome { -webkit-line-clamp: 4; }
.cal-semana .cal-dia.hoje { background: var(--laranja-suave); }
.cal-hoje-num { display: inline-block; padding: 0 7px; border-radius: 99px; background: var(--laranja); color: var(--sobre-laranja); }
.cal-vazio { color: var(--muted); font-size: 0.78rem; opacity: .6; }
@media (prefers-color-scheme: dark) { .hoje-ativo { color: var(--laranja); } }

/* Prazo de aprovação (só a equipe vê) */
.prazo { display: inline-block; font-size: 0.74rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.prazo.vencido { color: var(--st-cx-fg); background: var(--st-cx-bg); padding: 2px 8px; border-radius: 99px; font-weight: 700; }

/* Hoje */
.hoje { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.hoje-grupo { overflow: hidden; }
.hoje-grupo > .hoje-cab { display: flex; align-items: center; gap: 10px; padding: 16px 20px 4px; }
.hoje-grupo > p.muted { margin: 0; padding: 0 20px 12px; border-bottom: 1px solid var(--linha); }
.hoje-grupo .vazio { padding: 14px 20px; margin: 0; }
.hoje-grupo .peca { grid-template-columns: minmax(0, 1fr) auto; }
.hoje-cab .count { font-family: var(--mono); font-size: 0.8rem; padding: 1px 8px; border-radius: 99px; background: var(--superficie-2); }

/* Para aprovar: o que espera resposta */
.esperando { display: flex; flex-wrap: wrap; gap: 6px; }
.esperando:empty { display: none; }

/* Prévia e legenda lado a lado */
.previa-lado { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.previa-lado > * { min-width: 0; }
@media (min-width: 1180px) {
  .previa-lado { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
  .legenda-box { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
}
.legenda-box { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.legenda-box form { margin: 0; }
textarea.legenda-campo { min-height: 240px; }
.legenda-texto { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; border-radius: 10px; background: var(--fundo); max-height: 420px; overflow-y: auto; }
.legenda-conversa { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--linha); }
.legenda-conversa textarea.input { min-height: 64px; }

/* Documentos (PDF, Docs, Slides): uma página por slide, com rolagem */
.doc-espera { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.slide.pagina { --alt: min(80vh, 900px); align-items: flex-start; overflow-y: auto; }
.slide.pagina .palco { width: 100%; max-width: 900px; margin: 0 auto; }
.slide.pagina img { width: 100%; height: auto; max-height: none; background: #fff; }
.slide.pagina.carregando .palco::after { content: "Preparando a página…"; position: absolute; top: 24px; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: rgba(20, 20, 20, .78); color: #fff; font-size: 0.8rem; line-height: 1.4; white-space: nowrap; }

/* Prévia no formato do Instagram e do LinkedIn */
.modos .ferr { font-size: 0.8rem; }
.previa .mock-ig, .previa .mock-li { display: none; }
.previa[data-modo-atual="ig"] .mock-ig, .previa[data-modo-atual="li"] .mock-li { display: flex; }
.previa[data-modo-atual="li"] p.mock-li { display: -webkit-box; }
.previa[data-modo-atual="ig"] .mock, .previa[data-modo-atual="li"] .mock {
  margin: 0 auto; width: 100%; background: #fff; color: #141414; border: 1px solid #dbdbdb; border-radius: 10px; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: 0;
}
.previa[data-modo-atual="ig"] .mock { max-width: 470px; }
.previa[data-modo-atual="li"] .mock { max-width: 555px; }
.previa[data-modo-atual="ig"] .carrossel, .previa[data-modo-atual="li"] .carrossel { border-radius: 0; background: #000; }
.previa[data-modo-atual="ig"] .slide, .previa[data-modo-atual="li"] .slide { --alt: auto; height: auto; padding: 0; }
.previa[data-modo-atual="ig"] .slide .palco, .previa[data-modo-atual="li"] .slide .palco { width: 100%; }
.previa[data-modo-atual="ig"] .slide img, .previa[data-modo-atual="ig"] .slide video,
.previa[data-modo-atual="li"] .slide img, .previa[data-modo-atual="li"] .slide video { width: 100%; max-height: 640px; border-radius: 0; box-shadow: none; }
.previa[data-modo-atual="ig"] .contador { display: none; }
.mock-cab { align-items: center; gap: 10px; padding: 10px 12px; }
.mock-avatar { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #f37021; color: #141414; font-size: 0.72rem; font-weight: 700; }
.mock-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.mock-li .mock-avatar { width: 48px; height: 48px; border-radius: 4px; font-size: 0.9rem; }
.mock-cab b { font-size: 0.88rem; }
.mock-mais { margin-left: auto; color: #262626; letter-spacing: 1px; }
.mock-quem { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mock-quem span { font-size: 0.76rem; color: #666; }
.mock-seguir { margin-left: auto; color: #0a66c2; font-weight: 600; font-size: 0.88rem; }
.mock-texto { margin: 0; padding: 0 12px 10px; font-size: 0.88rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.mock-rodape .mock-texto { -webkit-line-clamp: 2; padding: 4px 12px 14px; }
.previa[data-modo-atual] .mock-texto.aberto { -webkit-line-clamp: unset; display: block; }
.mock-texto.mock-sem { color: #8e8e8e; font-style: italic; cursor: default; }
.mock-rodape { flex-direction: column; }
.mock-icones { display: flex; align-items: center; gap: 14px; padding: 10px 12px 6px; position: relative; }
.mock svg { width: 24px; height: 24px; fill: none; stroke: #262626; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mock-salvar { margin-left: auto; display: flex; }
.mock-pontos { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.mock-pontos i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; }
.mock-pontos i.ativo { background: #0095f6; }
.mock-acoes-li { display: flex; justify-content: space-around; padding: 6px 4px; border-top: 1px solid #e8e8e8; margin: 0 12px; }
.mock-acoes-li span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: #666; padding: 8px 6px; }
.mock-acoes-li svg { width: 20px; height: 20px; stroke: #666; }

/* Aprovar pelo celular: botões presos embaixo da tela */
.barra-aprovar { display: none; }
@media (max-width: 760px) {
  .barra-aprovar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--superficie); border-top: 1px solid var(--linha); box-shadow: 0 -6px 24px rgba(0, 0, 0, .12); }
  .barra-aprovar form { flex: 1; margin: 0; }
  .barra-aprovar .btn { width: 100%; padding: 13px 16px; font-size: 1rem; }
  .barra-aprovar > a.btn { flex: 1; }
  .main:has(.barra-aprovar) { padding-bottom: 96px; }
}
@media (max-width: 760px) {
  .anot-grupo { flex-wrap: wrap; border-radius: 14px; }
  .mock-acoes-li span { font-size: 0; gap: 0; }
}

/* Fotos das pessoas (link do Drive) */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--superficie-2); }
.avatar.mini { width: 22px; height: 22px; font-size: 0.6rem; display: inline-grid; vertical-align: middle; margin-right: 6px; }
.avatar.grande { width: 72px; height: 72px; font-size: 1.3rem; }
.pessoa { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.acoes-linha { display: flex; gap: 6px; align-items: flex-start; }
