/* Área de Cliente RB */
:root { --bg:#0a0a0a; --panel:#141414; --panel-2:#1b1b1b; --line:rgba(255,255,255,.1); --line-2:rgba(255,255,255,.2); --text:#f4f4f4; --muted:#a3a3a3; --pink:#eb1471; --violet:#a714eb; --grad:linear-gradient(100deg,#eb1471,#c418b6 55%,#a714eb); --ok:#3ecf8e; --err:#ff6b6b; }
* { box-sizing: border-box; margin: 0; padding: 0; }
/* no telemóvel a página nunca anda para os lados: o que for mais largo que o ecrã é cortado em vez de criar scroll
   (clip, e não hidden, para não estragar os cabeçalhos que ficam presos ao topo) */
html, body { overflow-x: clip; max-width: 100%; }
body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
h1, h2, h3, p, td, .t, .s, .chip, .code, .muted { overflow-wrap: anywhere; } /* emails e links compridos não rebentam o ecrã */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 36px 16px 70px; flex: 1; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: rgba(10,10,10,.85); position: sticky; top: 0; z-index: 10; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.brand img { height: 34px; }
.brand b { color: var(--pink); font-weight: 600; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-size: .88rem; color: #cfcfcf; padding: 8px 13px; border-radius: 999px; }
.top nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.top nav a.on { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 640px) { .brand span { display: none; } }
h1 { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 8px; }
h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 14px; }
h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.1rem; }
.eyebrow { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); font-weight: 600; }
p, .muted { color: var(--muted); }
.lead { color: var(--muted); margin-bottom: 30px; max-width: 60ch; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 18px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 800px) { .g2, .g-main { grid-template-columns: 1fr; } }
label { display: block; font-size: .8rem; color: var(--muted); margin: 12px 0 6px; }
input, select, textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: #fff; font: inherit; font-size: 16px; } /* 16px evita o zoom automático do iPhone */
select option { background: #111; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(235,20,113,.15); }
input[type=file] { padding: 9px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; padding: 11px 19px; border-radius: 999px; text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -12px rgba(235,20,113,.8); }
.btn-ghost { background: none; color: #fff; border: 1px solid var(--line-2); }
.btn-danger { background: none; color: var(--err); border: 1px solid rgba(255,107,107,.4); }
.btn-sm { padding: 6px 12px; font-size: .78rem; }
.btn:hover { filter: brightness(1.12); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.flash { padding: 13px 16px; border-radius: 12px; margin-bottom: 22px; font-size: .92rem; }
.flash.ok { background: rgba(62,207,142,.1); border: 1px solid rgba(62,207,142,.4); color: #b8f5d8; }
.flash.err { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.4); color: #ffc9c9; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--line-2); color: #ddd; white-space: nowrap; }
.st-preparacao { border-color: rgba(255,200,80,.5); color: #ffd98a; }
.st-producao { border-color: rgba(235,20,113,.6); color: #ff8cbf; }
.st-revisao { border-color: rgba(167,20,235,.6); color: #d49bff; }
.st-entregue { border-color: rgba(62,207,142,.6); color: #8ff0c3; }
.st-aprovado { border-color: rgba(62,207,142,.45); color: #b9f5d8; }
.st-alteracoes { border-color: rgba(255,90,90,.6); color: #ff9a9a; }
.list { list-style: none; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .t { color: #fff; font-weight: 500; }
.list .s { font-size: .8rem; color: var(--muted); }
.proj { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); padding: 22px; margin-bottom: 16px; }
.proj-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.proj p.desc { white-space: pre-line; margin: 6px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); text-decoration: none; font-size: .88rem; color: #fff; }
.chip:hover { border-color: var(--pink); }
.chip small { color: var(--muted); white-space: nowrap; }
.list li > div { flex: 1; min-width: 0; }
.list li .btn, .list li form, .acts { flex-shrink: 0; }
.acts { display: flex; gap: 6px; }
.acts .btn { justify-content: center; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 8px; border-bottom: 1px solid var(--line); }
td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td a { color: #fff; }
.empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.login { max-width: 420px; margin: 6vh auto 0; }
.login .card { padding: 30px; }
.note { font-size: .8rem; color: #8a8a8a; margin-top: 8px; }
.code { font-family: ui-monospace, monospace; font-size: .8rem; background: #0d0d0d; border: 1px solid var(--line); border-radius: 10px; padding: 12px; word-break: break-all; color: #fff; }
.foot { text-align: center; font-size: .8rem; color: #666; padding: 26px 16px; border-top: 1px solid var(--line); }
.foot a { color: #999; }

/* ---------- Telemóvel ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.show-sm { display: none !important; }
.search input { width: 240px; }
@media (max-width: 640px) {
  .wrap { padding: 24px 14px 50px; }
  .top { padding: 12px 14px; }
  .top { gap: 10px; }
  .top nav { gap: 2px; flex-wrap: nowrap; overflow-x: auto; min-width: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 18px; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { padding: 8px 10px; font-size: .84rem; white-space: nowrap; flex-shrink: 0; }
  .brand { flex-shrink: 0; }
  .card, .proj { padding: 18px; border-radius: 16px; }
  .between > div, .search { width: 100%; }
  .search input { flex: 1; width: auto; min-width: 0; }
  .hide-sm { display: none; }
  .show-sm { display: inline-flex !important; }
  .acts { flex-direction: column; }
  td, th { padding: 10px 6px; }
  .proj-h { flex-direction: column; gap: 8px; }
  .chip { width: 100%; }
  .login { margin-top: 2vh; }
  .login .card { padding: 22px; }
  .btn { padding: 12px 18px; }
  .foot { font-size: .75rem; }
}

/* ---------- Painel da equipa ---------- */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 30px; }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .2s, transform .2s; }
.tool:hover { border-color: var(--pink); transform: translateY(-2px); }
.tool b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.08rem; color: #fff; }
.tool span { font-size: .86rem; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: center; color: #ddd; margin: 8px 0 0; font-size: .9rem; cursor: pointer; }
label.check input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--pink); }
.perm-grupo { margin: 16px 0 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); font-weight: 600; }
details.edit { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.edit summary { cursor: pointer; font-size: .86rem; color: #ddd; }
details.edit[open] summary { margin-bottom: 4px; }
[hidden] { display: none !important; }
.info-card { border-color: rgba(167,20,235,.45); background: linear-gradient(160deg, rgba(167,20,235,.08), var(--panel) 60%); }
.info-text { color: #ddd; font-size: .95rem; overflow-wrap: anywhere; }
.info-text a { color: #fff; text-decoration-color: var(--pink); }

/* ---------- Aprovações e conversa ---------- */
.ap-pendente { border-color: rgba(255,200,80,.6); color: #ffd98a; }
.ap-aprovado { border-color: rgba(62,207,142,.6); color: #8ff0c3; }
.ap-alteracoes { border-color: rgba(255,107,107,.55); color: #ffb0b0; }
.approve-box { border-color: rgba(235,20,113,.55); background: linear-gradient(160deg, rgba(235,20,113,.1), var(--panel) 65%); }
.quote { border-left: 3px solid var(--violet); padding: 8px 12px; background: rgba(255,255,255,.03); border-radius: 0 10px 10px 0; color: #ddd; font-size: .92rem; overflow-wrap: anywhere; margin-bottom: 12px; }
.thread { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; max-height: 520px; overflow-y: auto; }
.msg { padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.05); border: 1px solid var(--line); max-width: 92%; }
.msg.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(167,20,235,.12); border-color: rgba(167,20,235,.35); }
.msg-h { font-size: .76rem; color: var(--muted); margin-bottom: 3px; }
.msg-h b { color: #fff; font-weight: 600; }
.msg-h .tag { font-size: .62rem; font-weight: 700; color: var(--pink); border: 1px solid rgba(235,20,113,.5); border-radius: 6px; padding: 0 5px; }
.msg-ev { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 2px; }
.t-pedido .msg-ev { color: #ffd98a; }
.t-aprovado .msg-ev { color: #8ff0c3; }
.t-alteracoes .msg-ev { color: #ffb0b0; }
.msg-b { font-size: .92rem; color: #e6e6e6; overflow-wrap: anywhere; }
.msg-b a { color: #fff; }
.reply { border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Mapa de conteúdos ---------- */
.fs-ideia { border-color: rgba(255,255,255,.25); color: #bbb; }
.fs-guiao { border-color: rgba(167,20,235,.6); color: #d49bff; }
.fs-filmagens { border-color: rgba(235,20,113,.6); color: #ff8cbf; }
.fs-edicao { border-color: rgba(255,200,80,.6); color: #ffd98a; }
.fs-aprovacao { border-color: rgba(255,150,60,.65); color: #ffba85; }
.fs-recusado { border-color: rgba(255,80,80,.65); color: #ff9a9a; }
.fs-aprovado { border-color: rgba(70,200,120,.65); color: #8fe3b0; }
.fs-agendado { border-color: rgba(40,200,200,.6); color: #8be6e6; }
.fs-concluido { border-color: rgba(80,160,255,.6); color: #9cc8ff; }
.fs-arquivo { border-color: rgba(255,255,255,.15); color: #777; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar select { width: auto; min-width: 200px; flex: 1 1 200px; max-width: 320px; }
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: .88rem; color: #cfcfcf; }
.tabs a.on { background: rgba(255,255,255,.1); color: #fff; }
h2.month { font-size: 1.05rem; margin: 22px 0 10px; color: #ddd; }
.clist li { justify-content: flex-start; }
.clist li > input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--pink); }
.clist .nosel { width: 18px; flex-shrink: 0; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; flex-shrink: 0; max-width: 55%; }
.batch { margin-top: 18px; }
@media (min-width: 801px) { .batch { position: sticky; bottom: 10px; box-shadow: 0 20px 40px -20px #000; } }
.space { margin-top: 30px; font-size: .85rem; color: var(--muted); }
.bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
/* calendário */
.cal-nav { margin-bottom: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-d { min-height: 104px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-d.out { background: transparent; border-color: transparent; }
.cal-d.today { border-color: var(--pink); }
.cal-d .n { font-size: .78rem; color: var(--muted); }
.cal-d .n em { display: none; font-style: normal; }
.cal-i { display: block; font-size: .74rem; line-height: 1.3; padding: 4px 6px; border-radius: 7px; border: 1px solid var(--line-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(255,255,255,.03); }
@media (max-width: 760px) {
  .cal:not(.cal-pontos) { grid-template-columns: 1fr; gap: 8px; }
  .cal:not(.cal-pontos) .cal-h, .cal:not(.cal-pontos) .cal-d.out, .cal:not(.cal-pontos) .cal-d:not(.has) { display: none; }
  .cal:not(.cal-pontos) .cal-d { min-height: 0; padding: 10px 12px; }
  .cal:not(.cal-pontos) .cal-d .n { font-weight: 600; color: #fff; }
  .cal:not(.cal-pontos) .cal-d .n em { display: inline; color: var(--muted); font-weight: 400; }
  .cal:not(.cal-pontos) .cal-i { white-space: normal; font-size: .86rem; padding: 7px 9px; }
}
/* grid estilo Instagram */
.ig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; max-width: 620px; border-radius: 10px; overflow: hidden; }
.tile { position: relative; aspect-ratio: 3 / 4; background: #1d1d1d; overflow: hidden; display: block; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tile:hover img { transform: scale(1.04); }
.tile.dim { opacity: .45; }
.tile .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; font-size: .8rem; color: #ddd; background: linear-gradient(150deg, rgba(235,20,113,.35), rgba(167,20,235,.35)); overflow-wrap: anywhere; }
.tile .fmt { position: absolute; top: 6px; right: 7px; font-size: .8rem; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.tile .dt { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; font-size: .68rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); display: flex; align-items: center; gap: 5px; }
.tile .dot { width: 7px; height: 7px; border-radius: 50%; border: 2px solid; display: inline-block; }
/* editor */
.media-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.media-item video, .media-item img { width: 100%; max-height: 70vh; object-fit: contain; background: #000; border-radius: 12px; display: block; }
.media-bar { margin-top: 6px; font-size: .78rem; }
.media-bar .muted { overflow-wrap: anywhere; }
.gone { padding: 16px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: .88rem; }
.uploader .drop { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 22px 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; cursor: pointer; margin: 0; color: #ddd; }
.uploader .drop.small { padding: 12px; }
.uploader .drop:hover { border-color: var(--pink); }
.uploader .drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.uploader .drop span { font-size: .8rem; color: var(--muted); }
.uploader .bar { visibility: hidden; }
.uploader.busy .bar { visibility: visible; }
.uploader.busy .drop { opacity: .5; pointer-events: none; }
.uploader.err [data-msg] { color: var(--err); }
.cover-prev { width: 140px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; margin: 12px 0; display: block; }
.stage { padding: 10px 0; border-top: 1px solid var(--line); }
.stage:first-of-type { border-top: 0; }
.stage b { display: block; font-size: .9rem; margin-bottom: 4px; }
.ready { border-color: rgba(62,207,142,.5); background: linear-gradient(160deg, rgba(62,207,142,.09), var(--panel) 60%); }
.script { white-space: normal; color: #ddd; font-size: .93rem; background: rgba(255,255,255,.03); border-radius: 12px; padding: 14px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .pills { max-width: 100%; }
  .clist li { flex-wrap: wrap; }
  .clist li > div { flex: 1 1 calc(100% - 40px); }
  .clist li .pills { justify-content: flex-start; margin-left: 30px; max-width: calc(100% - 30px); }
  .toolbar select { max-width: none; }
  .tabs { width: 100%; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: 1 0 auto; text-align: center; padding: 8px 12px; }
  .fin-topo-ctl { flex-wrap: nowrap; width: 100%; }
  .fin-topo-ctl .tabs { width: auto; flex: 1 1 auto; min-width: 0; }
  .fin-topo-ctl .btn { flex: none; }
}
.uploader .drop { position: relative; }
.tile .dot { background: #fff; border-color: rgba(0,0,0,.4); }
.tile.fs-guiao .dot { background: #d49bff; } .tile.fs-filmagens .dot { background: #ff8cbf; } .tile.fs-edicao .dot { background: #ffd98a; }
.tile.fs-aprovacao .dot { background: #ffba85; } .tile.fs-recusado .dot { background: #ff9a9a; } .tile.fs-aprovado .dot { background: #8fe3b0; } .tile.fs-agendado .dot { background: #8be6e6; } .tile.fs-concluido .dot { background: #9cc8ff; } .tile.fs-ideia .dot { background: #bbb; }

/* ---------- Revisão interna, lote e calendário ---------- */
.badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--pink); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; }
.batch-create summary { cursor: pointer; list-style: none; }
.batch-create summary::-webkit-details-marker { display: none; }
.batch-create summary .muted { font-size: .85rem; }
.batch-create[open] summary { margin-bottom: 8px; }
.qtd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.qtd label { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days label { margin: 0; cursor: pointer; }
.days input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.days span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; color: #ddd; }
.days input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.days input:focus-visible + span { outline: 2px solid var(--pink); }
.cal-d .n { display: flex; justify-content: space-between; align-items: center; }
.cal-d .add { opacity: 0; text-decoration: none; color: var(--muted); font-size: 1rem; line-height: 1; padding: 0 4px; border-radius: 6px; }
.cal-d:hover .add, .cal-d .add:focus { opacity: 1; }
.cal-d .add:hover { color: #fff; background: rgba(255,255,255,.08); }
.cal-d { cursor: default; user-select: none; }
.cal-tip { margin: -6px 0 10px; }
.internal { border-color: rgba(255,200,80,.35); }
.tag-int { font-family: Inter, sans-serif; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: #ffd98a; border: 1px solid rgba(255,200,80,.45); border-radius: 6px; padding: 2px 6px; vertical-align: middle; margin-left: 6px; }
.rev { margin-bottom: 28px; }
.rev h2 .muted { font-size: .95rem; font-weight: 500; }
@media (max-width: 760px) {
  .cal-tip { display: none; }
  .cal-d .add { opacity: 1; }
  .qtd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- O que o cliente vê ---------- */
.visibility { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: #ccc; margin-bottom: 22px; }
.dotv { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dotv.ok { background: var(--ok); } .dotv.warn { background: #ffb347; } .dotv.int { background: #888; }
.vis-ok { border-color: rgba(62,207,142,.6); color: #8ff0c3; }
button.pill.toggle { background: none; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 600; }
button.pill.toggle.on { border-color: rgba(167,20,235,.6); color: #d49bff; }
.media-bar { flex-wrap: wrap; row-gap: 8px; }

/* ---------- Arrastar no calendário ---------- */
@media (min-width: 761px) {
  .cal-i { cursor: grab; touch-action: none; -webkit-user-drag: none; }
}
.cal-i.dragging { opacity: .25; outline: 1px dashed rgba(255,255,255,.35); outline-offset: -1px; }
/* o cartão "bambo" que segue o rato */
.cal-ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform; }
.cal-ghost .cal-i { display: block; background: #262626; border-color: rgba(235,20,113,.7); white-space: nowrap;
  transform: rotate(var(--lean, 0deg)) scale(1.07); transition: transform .12s ease-out;
  box-shadow: 0 22px 34px -14px rgba(0,0,0,.9), 0 0 0 1px rgba(235,20,113,.35), 0 0 24px -6px rgba(235,20,113,.45);
  animation: bambo .55s ease-in-out infinite; }
@keyframes bambo { 0%, 100% { rotate: -2.5deg; translate: 0 0; } 50% { rotate: 2.5deg; translate: 0 -2px; } }
.cal-ghost.landing { transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.cal-ghost.landing .cal-i { animation: none; transform: rotate(0deg) scale(1); box-shadow: none; }
.cal-i.landed { animation: pousa .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pousa { 0% { transform: scale(.88); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
@media (prefers-reduced-motion: reduce) { .cal-ghost .cal-i, .cal-i.landed { animation: none; } }
.cal-d.drop-over { border-color: var(--pink); background: rgba(235,20,113,.08); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #1f1f1f; border: 1px solid var(--line-2); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: .9rem; transition: opacity .2s, transform .2s; z-index: 50; box-shadow: 0 14px 30px -12px #000; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.longo { width: max-content; max-width: min(560px, calc(100vw - 32px)); border-radius: 16px; text-align: center; line-height: 1.45; }

/* ---------- Seleção múltipla no calendário ---------- */
.cal-i.selected { background: rgba(235,20,113,.16); border-color: var(--pink); color: #fff; box-shadow: 0 0 0 1px var(--pink) inset; }
.cal-i.selected .ci-t::before { content: '✓ '; color: var(--pink); font-weight: 700; }
.marquee { position: absolute; z-index: 55; pointer-events: none; border: 1px solid var(--pink); background: rgba(235,20,113,.1); border-radius: 6px; }
body.is-selecting, body.is-selecting * { user-select: none; -webkit-user-select: none; cursor: crosshair !important; }
.selbar { position: fixed; left: 0; right: 0; bottom: 18px; margin: 0 auto; width: max-content; z-index: 45; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 24px); padding: 10px 12px 10px 18px; border-radius: 18px; background: rgba(24,24,24,.96); border: 1px solid var(--line-2);
  box-shadow: 0 24px 48px -16px #000, 0 0 0 1px rgba(235,20,113,.25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: sobe .22s ease-out; }
.selbar[hidden] { display: none !important; }
.selbar b { font-size: .9rem; white-space: nowrap; }
.selbar-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.selbar select { width: auto; padding: 6px 10px; font-size: .82rem; border-radius: 999px; }
.grid-pdf { margin: 0 0 14px; gap: 8px; }
.grid-pdf select { width: auto; padding: 6px 10px; font-size: .82rem; border-radius: 999px; }
.selbar input[type=time] { width: auto; padding: 5px 10px; font-size: .82rem; border-radius: 999px; color-scheme: dark; }
.selbar .nowrap { flex-wrap: nowrap; gap: 6px; }
.selbar-x { background: none; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.selbar-x:hover { color: #fff; background: rgba(255,255,255,.08); }
body.has-selbar .foot { padding-bottom: 110px; }
@keyframes sobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
/* vários cartões arrastados: pilha com contador */
.cal-ghost.pilha .cal-i { box-shadow: 4px 4px 0 -1px #262626, 4px 4px 0 0 rgba(235,20,113,.45), 8px 8px 0 -1px #202020, 8px 8px 0 0 rgba(235,20,113,.3), 0 22px 34px -14px rgba(0,0,0,.9); }
.ghost-n { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.5); }

/* ---------- Pacote do mês ---------- */
.pacote { padding: 16px 20px; }
.pacote-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pacote-n { font-size: 1rem; margin-top: 2px; }
.pacote-n b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.6rem; margin-right: 2px; }
.pacote-stats { display: flex; gap: 14px; font-size: .86rem; color: var(--muted); flex-wrap: wrap; }
.pacote-stats b { color: #fff; }
.pacote .bar { margin: 12px 0 2px; }
.pacote-cli { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.pacote-cli b { color: #fff; }
.pacote-fora { margin-top: 10px; font-size: .86rem; }
.pacote-fora summary { cursor: pointer; color: #ffd98a; }
.mref { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .06em; padding: 1px 4px; margin-right: 4px; border-radius: 4px; background: rgba(255,200,80,.18); color: #ffd98a; vertical-align: 1px; }

/* ---------- Calendário do cliente ---------- */
.cal-i.pede { border-color: var(--pink); background: rgba(235,20,113,.12); color: #fff; }
.aprovar-tag { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 5px; margin-right: 5px; border-radius: 4px; background: var(--grad); color: #fff; vertical-align: 1px; }
.legenda-fases { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.legenda-fases .cal-i { display: inline-block; cursor: default; }
.estado-cli p { display: flex; gap: 8px; align-items: center; font-size: .92rem; color: #ddd; }
.row.nowrap { flex-wrap: nowrap; }
.mesref { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }

/* ---------- Criar vários: dias por formato ---------- */
.lote-formatos { display: flex; flex-direction: column; gap: 10px; }
.lote-f { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.lote-n { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 190px; color: #ddd; font-size: .9rem; }
.lote-n span { flex: 1; }
.lote-n input { width: 72px; text-align: center; }
.lote-f .days span { padding: 6px 10px; font-size: .8rem; }
@media (max-width: 640px) { .lote-n { min-width: 0; width: 100%; } }

/* ---------- Capa + legenda lado a lado ---------- */
.capa-legenda { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 22px; align-items: start; }
.capa-legenda .cover-prev { width: 100%; max-width: 200px; }
.cl-legenda textarea { margin-top: 12px; }
@media (max-width: 640px) { .capa-legenda { grid-template-columns: 1fr; } .capa-legenda .cover-prev { max-width: 160px; } }

/* ---------- Cartões do calendário com mais informação ---------- */
.fs-filmagens { border-color: rgba(235,20,113,.6); color: #ff8cbf; }
.cal-i { --fc: #777; padding: 6px 8px 6px 9px; border-left: 3px solid var(--fc); }
.cal-i.fs-ideia { --fc: #8a8a8a; } .cal-i.fs-filmagens { --fc: #eb1471; } .cal-i.fs-edicao { --fc: #ffb347; } .cal-i.fs-agendado { --fc: #2cc6c6; } .cal-i.fs-concluido { --fc: #5aa9ff; }
.cal-i.fs-aprovacao { --fc: #ff9640; } .cal-i.fs-recusado { --fc: #ff5050; } .cal-i.fs-aprovado { --fc: #46c878; }
.cal-d .cal-i { color: #eee; border-color: var(--line-2); border-left-color: var(--fc); }
.ci-t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: .78rem; }
.ci-m { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 5px; margin-top: 3px; font-size: .64rem; color: var(--muted); line-height: 1.3; }
.ci-m .fmt { font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 0 4px; border-radius: 4px; font-size: .6rem; }
.fmt.f-reel, .fmt.f-reel_edicao { background: rgba(235,20,113,.22); color: #ff9dc8; }
.fmt.f-post { background: rgba(167,20,235,.25); color: #dcb0ff; }
.fmt.f-carrossel { background: rgba(80,160,255,.22); color: #a9d0ff; }
.ci-m .mr { font-weight: 600; letter-spacing: .04em; }
.ci-m .mr.fora { color: #ffd98a; }
.ci-m .fz::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fc); margin-right: 3px; vertical-align: 1px; }
.ci-m .ap { font-size: .72rem; }
.ci-m .ap-pendente { color: #ffd98a; } .ci-m .ap-aprovado { color: var(--ok); } .ci-m .ap-alteracoes { color: #ffb0b0; }
.ci-m .cn { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* mensagens por ler: o cartão brilha até a pessoa o abrir (cada uma tem o seu "lido") */
.ci-m .nl { order: -1; font-weight: 700; color: #fff; background: var(--pink); border-radius: 999px; padding: 0 6px; font-size: .62rem; line-height: 1.5; }
.cal-i:has(.nl):not(.cal-ghost *) { border-top-color: rgba(235,20,113,.8); border-right-color: rgba(235,20,113,.8); border-bottom-color: rgba(235,20,113,.8); animation: por-ler 1.8s ease-in-out infinite; }
@keyframes por-ler { 0%, 100% { box-shadow: 0 0 0 0 rgba(235,20,113,0); } 50% { box-shadow: 0 0 14px 1px rgba(235,20,113,.55); } }
@media (prefers-reduced-motion: reduce) { .cal-i:has(.nl):not(.cal-ghost *) { animation: none; box-shadow: 0 0 10px rgba(235,20,113,.45); } }
.pts i.nl { box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 3.5px var(--pink); }
.pill.pill-nl { background: var(--pink); border-color: var(--pink); color: #fff; }
.cal-i .aprovar-tag + .ci-t { display: inline; }
.legenda-fases .cal-i { color: #ddd; border-color: var(--line-2); border-left-color: var(--fc); }
@media (max-width: 760px) { .ci-t { font-size: .88rem; white-space: normal; } .ci-m { font-size: .72rem; } }

/* ---------- Kits de marca ---------- */
.tool-destaque { border-color: rgba(235,20,113,.45); background: linear-gradient(160deg, rgba(235,20,113,.1), var(--panel) 65%); }
.marcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.marca-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .2s, transform .2s; }
.marca-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.marca-card b { color: #fff; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.02rem; margin-top: 6px; }
.marca-card .muted { font-size: .8rem; }
/* fundo quadriculado: vê-se bem um logo branco, preto ou transparente */
.marca-img, .logo-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background-color: #f2f2f2; background-image: linear-gradient(45deg, #e2e2e2 25%, transparent 25%), linear-gradient(-45deg, #e2e2e2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e2e2e2 75%), linear-gradient(-45deg, transparent 75%, #e2e2e2 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.marca-img img, .logo-img img { max-width: 82%; max-height: 82%; object-fit: contain; }
.marca-ini { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2rem; color: #777; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 8px; }
.logo { padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.logo-img { text-decoration: none; }
.logo-img.sem { background: rgba(255,255,255,.04); }
.logo-img.sem span { font-weight: 700; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; font-size: .8rem; }
.logo-n { font-size: .8rem; color: #ddd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-a { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .75rem; }
.logo-a .btn-sm { padding: 5px 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: #ddd; font: inherit; font-size: .82rem; cursor: pointer; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.kit-link { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.kit-link .marca-img { width: 110px; flex-shrink: 0; }
@media (max-width: 640px) { .marcas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

body.logos-escuro .logo-img:not(.sem) { background-color: #2a2a2a; background-image: linear-gradient(45deg, #333 25%, transparent 25%), linear-gradient(-45deg, #333 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #333 75%), linear-gradient(-45deg, transparent 75%, #333 75%); }
.marca-ini { color: #999; }
.logo-a .btn.on { border-color: #ffd98a; color: #ffd98a; }

/* faturação */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat > span { font-size: .8rem; }
.stat b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.6rem; line-height: 1.15; overflow-wrap: anywhere; }
.card .stats { margin-bottom: 14px; }
.card .stats .stat { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; }
table.fat td, table.fat th { font-size: .88rem; }
.fat-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 8px; }
.fat-form .wide { grid-column: 1 / -1; }
.fat-form p.wide { margin-top: 12px !important; }
@media (max-width: 560px) { .fat-form { grid-template-columns: 1fr; } }

/* pasta do Google Drive no painel do cliente */
.drive-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; transition: border-color .2s; }
.drive-card:hover { border-color: rgba(235,20,113,.5); }
.drive-ico { font-size: 1.6rem; line-height: 1; }
.drive-seta { margin-left: auto; font-size: 1.2rem; color: var(--pink, #eb1471); }

/* faturas do FIZ por associar */
.fiz-pend { display: grid; gap: 10px; }
.fiz-pend form.row { flex-wrap: nowrap; }
@media (max-width: 560px) { .fiz-pend form.row { flex-wrap: wrap; } }
.fiz-novo summary { cursor: pointer; font-size: .88rem; color: var(--muted); }
.fiz-novo form { margin-top: 10px; }

/* proposta (igual ao PDF da ferramenta de orçamentos) */
.proposta-doc .doc { background: #fff; color: #161616; border-radius: 14px; padding: 42px 44px; font-family: Inter, Arial, sans-serif; font-size: 12.5px; line-height: 1.5; max-width: 820px; }
.proposta-doc .dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid #111; }
.proposta-doc .dh img { height: 46px; filter: invert(1); }
.proposta-doc .dh .meta { text-align: right; font-size: 11px; color: #555; }
.proposta-doc .dh .meta b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; color: #111; letter-spacing: -.02em; line-height: 1; margin-bottom: 6px; }
.proposta-doc .bar { height: 4px; background: linear-gradient(90deg, #eb1471, #a714eb); margin: -2px 0 22px; width: 90px; }
.proposta-doc .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.proposta-doc .parties small { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #eb1471; font-weight: 700; margin-bottom: 4px; }
.proposta-doc .parties p { color: #222; margin: 0; }
.proposta-doc .proj { font-family: 'Bricolage Grotesque', sans-serif; font-size: 19px; color: #111; margin-bottom: 14px; }
.proposta-doc table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.proposta-doc th { text-align: left; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #777; font-weight: 700; padding: 8px 6px; border-bottom: 1px solid #ddd; background: none; }
.proposta-doc th.r, .proposta-doc td.r { text-align: right; white-space: nowrap; }
.proposta-doc td { padding: 10px 6px; border-bottom: 1px solid #eee; vertical-align: top; color: #222; }
.proposta-doc td .dn { font-weight: 600; color: #111; }
.proposta-doc td ul { margin: 4px 0 0 14px; padding: 0; color: #666; font-size: 11px; }
.proposta-doc .tot { margin-left: auto; width: 270px; max-width: 100%; }
.proposta-doc .tot div { display: flex; justify-content: space-between; padding: 4px 6px; color: #333; }
.proposta-doc .tot .disc { color: #eb1471; }
.proposta-doc .tot .big { margin-top: 6px; padding: 10px 6px; border-top: 2px solid #111; font-weight: 700; font-size: 16px; color: #111; }
.proposta-doc tr.sep td { padding: 16px 6px 6px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #eb1471; font-weight: 700; border-bottom: 1px solid #ddd; }
.proposta-doc td .op { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 999px; background: #fde7f1; color: #c0105c; font-size: 10px; font-weight: 700; letter-spacing: .04em; vertical-align: 1px; }
.proposta-doc .tot .opt { margin-top: 0; border-top: 1px solid #ddd; }
.proposta-doc .tot .nota { color: #777; font-size: 11px; }
.proposta-doc .cond { margin-top: 26px; padding-top: 16px; border-top: 1px solid #eee; white-space: pre-line; color: #444; font-size: 11.5px; }
.proposta-doc .cond small { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #777; font-weight: 700; margin-bottom: 6px; }
.proposta-doc .df { margin-top: 30px; display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; color: #777; border-top: 1px solid #eee; padding-top: 12px; flex-wrap: wrap; }
.proposta-doc .sec { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; color: #111; margin: 22px 0 10px; letter-spacing: -.01em; }
.proposta-doc .sec:first-child, .proposta-doc .parties + .sec, .proposta-doc .proj + .sec { margin-top: 4px; }
.proposta-doc .packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.proposta-doc .pack { border: 1px solid #e3e3e3; border-radius: 12px; padding: 16px 18px 14px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.proposta-doc .pack::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #eb1471, #a714eb); }
.proposta-doc .pack small { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #777; font-weight: 700; }
.proposta-doc .pack h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; color: #111; margin: 4px 0 6px; letter-spacing: -.01em; }
.proposta-doc .pack p { color: #666; margin: 0 0 14px; }
.proposta-doc .pack ul { margin: 0 0 14px 14px; padding: 0; color: #666; }
.proposta-doc .pack .pp { margin-top: auto; padding-top: 12px; border-top: 1px solid #eee; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.proposta-doc .pack .pp b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; color: #111; letter-spacing: -.02em; line-height: 1; }
.proposta-doc .pack .pp span { color: #777; font-size: 11px; }
.proposta-doc .pnota { color: #777; font-size: 11px; margin: 10px 0 0; }
.proposta-doc .incl { margin-top: 14px; padding: 14px 18px; border-radius: 12px; background: #f5f5f5; }
.proposta-doc .incl small { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #eb1471; font-weight: 700; margin-bottom: 8px; }
.proposta-doc .incl ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; color: #222; }
.proposta-doc .incl li { padding: 1px 0 1px 18px; position: relative; break-inside: avoid; }
.proposta-doc .incl li::before { content: '✓'; position: absolute; left: 0; color: #eb1471; font-weight: 700; }
.proposta-doc table.mini td .dn { font-weight: 600; color: #111; }
.proposta-doc table.mini td { color: #555; }
.proposta-doc .cond.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.proposta-doc .cond.duas small { color: #eb1471; }
@media (max-width: 600px) { .proposta-doc .doc { padding: 24px 18px; overflow-x: auto; } .proposta-doc .parties, .proposta-doc .cond.duas { grid-template-columns: 1fr; } .proposta-doc .incl ul { columns: 1; } .proposta-doc th, .proposta-doc td { padding-left: 4px; padding-right: 4px; } }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; }
  header.top, footer.foot, .flash, .nao-imprimir { display: none !important; }
  /* o menu de baixo, a bolha das mensagens, o sino e os avisos nunca vão para o papel */
  .tabbar, .tabbar-mais, .chat-bolha, [class^="chat-"], .sino-painel, .toast, .rb-aviso, .selbar, .sel-flut, .splash, [data-guia-bolha] { display: none !important; }
  body.so-leitura::before, html.rb-a-gravar body::after { display: none !important; }
  main.wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .proposta-doc .doc { border-radius: 0; max-width: none; padding: 15mm 16mm 12mm; font-size: 11.5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .proposta-doc thead { display: table-header-group; }
  .proposta-doc tr, .proposta-doc .dh, .proposta-doc .parties, .proposta-doc .tot, .proposta-doc .cond, .proposta-doc .df, .proposta-doc .pack, .proposta-doc .incl { break-inside: avoid; page-break-inside: avoid; }
}
.lista-prop { list-style: none; margin: 0; padding: 0; }
.lista-prop li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lista-prop li:last-child { border-bottom: 0; }

/* clientes de Social Media: interruptor na ficha e selo na lista */
.social-toggle { display: inline-block; margin: 10px 0 0; }
.sw { display: inline-flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); color: #cfcfcf; border-radius: 999px; padding: 6px 14px 6px 6px; font: inherit; font-size: .85rem; cursor: pointer; transition: border-color .25s, color .25s; }
.sw .knob { position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.14); transition: background .3s; }
.sw .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .3s cubic-bezier(.6,.05,.2,1); }
.sw.on { color: #fff; border-color: rgba(235,20,113,.5); }
.sw.on .knob { background: var(--grad); }
.sw.on .knob::after { transform: translateX(14px); }
.social-pill { color: #fff; border-color: transparent; background: linear-gradient(100deg, rgba(235,20,113,.35), rgba(167,20,235,.35)); font-size: .68rem; vertical-align: middle; }

/* seletor de cliente em Conteúdos (como os filtros do portfólio, com o destaque a deslizar) */
.cli-switch { position: relative; display: flex; gap: 4px; padding: 6px; margin-bottom: 18px; border-radius: 999px; width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; background: rgba(20,20,20,.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); }
.cli-switch::-webkit-scrollbar { display: none; }
.cli-switch a { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: #cfcfcf; text-decoration: none; white-space: nowrap; transition: color .3s; }
.cli-switch a:hover { color: #fff; }
.cli-switch a.on { color: #fff; }
.cli-switch .ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--grad);
  box-shadow: 0 8px 24px -10px rgba(235,20,113,.7); transition: transform .38s cubic-bezier(.6,.05,.2,1), width .38s cubic-bezier(.6,.05,.2,1); }
.cli-switch.sem-anim .ind { transition: none; }
@media (max-width: 700px) { .cli-switch { border-radius: 18px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .cli-switch .ind { transition: none; } }

/* marcas de um cliente (ficha) */
.perfil-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.perfil-row:last-of-type { border-bottom: 0; }

/* Pacotes por mês de referência */
.pacote { margin-bottom: 16px; }
.pacote.atual { border-color: rgba(235,20,113,.35); }
.pacote.tem-atraso { border-color: rgba(255,170,60,.45); }
.pac-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.pac-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 12px; }
.pac-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .6s cubic-bezier(.6,.05,.2,1); }
.pac-fmts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pac-fmt { font-size: .82rem; color: #cfcfcf; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; }
.pac-fmt.ok { border-color: rgba(62,207,142,.4); color: #fff; }
.pac-t td, .pac-t th { font-size: .88rem; }
.pac-t tr.feito td { opacity: .55; }
.pac-t tr.atrasado td { background: rgba(255,170,60,.07); }
.pill.pac-atraso { color: #ffb14a; border-color: rgba(255,177,74,.5); }
.pill.pac-ok { color: var(--ok); border-color: rgba(62,207,142,.5); }
.pac-alerta { border-color: rgba(255,170,60,.45); background: rgba(255,170,60,.06); }
.pac-alerta a { color: #ffb14a; margin-left: 6px; }
.pac-antigos summary { cursor: pointer; margin: 6px 0 14px; }
.badge.badge-warn { background: #ffb14a; color: #111; }

.pac-resumo { margin-bottom: 18px; }
.pac-meses { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pac-meses::-webkit-scrollbar { display: none; }
.pac-mes { flex: 0 0 auto; min-width: 74px; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: #cfcfcf; transition: border-color .2s, transform .2s; }
.pac-mes:hover { border-color: var(--line-2); transform: translateY(-1px); }
.pac-mes .pm-n { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.pac-mes .pm-c { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.05rem; color: #fff; }
.pac-mes .pm-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.pac-mes .pm-bar span { display: block; height: 100%; background: var(--grad); }
.pac-mes.ok { border-color: rgba(62,207,142,.35); }
.pac-mes.atr { border-color: rgba(255,170,60,.55); background: rgba(255,170,60,.06); }
.pac-mes.atr .pm-n { color: #ffb14a; }
.pac-mes.atual { border-color: rgba(235,20,113,.55); }

/* calendário: dias do mês anterior/seguinte (semanas completas; aceitam cartões arrastados) */
.cal-d.outro-mes { background: rgba(255,255,255,.015); }
.cal-d.outro-mes > .n { opacity: .5; }
.cal-d.outro-mes .cal-i { opacity: .6; }
.cal-d.outro-mes:hover > .n, .cal-d.outro-mes:hover .cal-i { opacity: 1; }
@media (max-width: 760px) { .cal-d.outro-mes { display: none; } }

/* tabuleiro ao lado do calendário (ideias, sem data, em atraso, arquivo) */
main.wrap:has(.cal-area), main.wrap:has(.ag-duas) { max-width: 1400px; } /* páginas com duas colunas largas: mais espaço nos ecrãs grandes */
.cal-area { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; align-items: start; }
.tabuleiro { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 10px; }
.tab-nova { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.tab-nova input, .tab-nova select { padding: 8px 10px; font-size: .85rem; }
.tab-nova .row { gap: 6px; }
.tab-nova select { flex: 1; min-width: 0; }
.tab-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.tab-sec h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #ddd; margin: 0 0 2px; }
.tab-nota { font-size: .72rem; color: var(--muted); margin: 0 0 8px; line-height: 1.35; }
.tab-lista { display: flex; flex-direction: column; gap: 5px; min-height: 8px; }
.tab-drop { border-style: dashed; }
.tab-drop.drop-over { border-color: var(--pink); background: rgba(235,20,113,.08); }
.tab-drop .tab-lista:empty::after { content: 'Larga aqui'; display: block; text-align: center; font-size: .75rem; color: var(--muted); padding: 10px 0; border-radius: 8px; border: 1px dashed var(--line-2); }
.tab-atraso { border-color: rgba(255,170,60,.45); }
.tab-arq .cal-i { opacity: .8; }
.cal-i.ideia { border-style: dashed; border-color: rgba(167,20,235,.55); background: rgba(167,20,235,.07); }
.pill.est-ok { color: var(--ok); border-color: rgba(62,207,142,.5); }
.pill.est-warn { color: #ffb14a; border-color: rgba(255,177,74,.5); }
@media (max-width: 1100px) { .cal-area { grid-template-columns: 1fr; } .tabuleiro { position: static; max-height: none; } }

.tab-agendar { border-color: rgba(62,207,142,.4); }
.tab-ag { display: flex; gap: 6px; align-items: stretch; }
.tab-ag .cal-i { flex: 1; min-width: 0; }
.tab-ag .btn { padding: 4px 10px; }
.tab-ag-f { display: flex; margin: 0; } .tab-ag-f .btn { white-space: nowrap; }
.tab-ag-tudo { margin: 0 0 10px; } .tab-ag-tudo .btn { width: 100%; }
.pill.est-agendar { color: #7fe3b4; border-color: rgba(62,207,142,.5); }
.tab-sec.tab-drop .tab-lista:empty::after { content: 'Larga aqui'; display: block; text-align: center; font-size: .75rem; color: var(--muted); padding: 10px 0; border-radius: 8px; border: 1px dashed var(--line-2); }
.tab-sec.tab-drop.drop-over { border-color: var(--pink); background: rgba(235,20,113,.08); }

/* mapa de conteúdos (mesmo documento branco das propostas) */
.mapa-btn { float: right; margin-top: -4px; }
.cal-area { clear: both; } /* (o botão do mapa flutua à direita: o calendário começa por baixo dele) */
@media (max-width: 760px) { .mapa-btn { float: none; display: flex; justify-content: center; margin: 0 0 12px; white-space: normal; text-align: center; } }
.mapa-estado.est-aprovado { border-color: rgba(62,207,142,.45); }
.mapa-estado.est-alteracoes { border-color: rgba(255,170,60,.45); }
.proposta-doc .mapa-resumo { color: #444; margin: 0 0 18px; }
.proposta-doc .mapa-item { display: grid; grid-template-columns: 86px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid #eee; break-inside: avoid; page-break-inside: avoid; }
.proposta-doc .mi-data b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; line-height: 1; color: #111; }
.proposta-doc .mi-data span { font-size: 10.5px; color: #777; text-transform: uppercase; letter-spacing: .08em; }
.proposta-doc .mi-fmt { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #eb1471; margin-bottom: 2px; }
.proposta-doc .mi-fmt.f-post, .proposta-doc .mi-fmt.f-carrossel { color: #a714eb; }
.proposta-doc .mapa-item h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; color: #111; margin: 0 0 6px; }
.proposta-doc .mi-guiao { font-size: 11.5px; color: #444; white-space: normal; background: #f7f7f7; border-radius: 8px; padding: 10px 12px; }
.proposta-doc .mi-vazio { font-size: 11.5px; color: #999; margin: 0; font-style: italic; }
@media (max-width: 600px) { .proposta-doc .mapa-item { grid-template-columns: 1fr; gap: 6px; } }

/* painel lateral do calendário (computador) */
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(600px, 44vw); background: var(--bg); border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 60px -30px rgba(0,0,0,.9); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.6,.05,.2,1); }
body.gaveta-aberta .gaveta { transform: none; }
.gaveta-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.gaveta iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }
@media (min-width: 1100px) {
  body.gaveta-aberta main.wrap { width: auto; max-width: none; margin-left: 16px; margin-right: calc(min(600px, 44vw) + 8px); transition: margin .28s; }
  body.gaveta-aberta .tabuleiro { display: none; }
  body.gaveta-aberta .cal-area { grid-template-columns: 1fr; }
}
.cal-i.aberto { border-color: var(--pink) !important; box-shadow: 0 0 0 2px rgba(235,20,113,.35); }
@media (max-width: 1099px) { .gaveta { display: none; } }
/* a página dentro do painel: sem margens grandes */
body.embed main.wrap { padding: 14px 16px 30px; max-width: none; }
body.embed .grid.g-main { grid-template-columns: 1fr; }
.autosave-estado { font-size: .8rem; color: var(--muted); margin-left: 6px; }
.autosave-estado.ok { color: var(--ok); }
.autosave-estado.err { color: var(--err); }

/* cartão de conteúdo (equipa): pela ordem do trabalho — uma coluna no telemóvel e na gaveta, duas no ecrã largo (em baixo) */
.cartao-col { max-width: 860px; }
.cartao-col > .card, .cartao-col > form.card, .cartao-col > div > .card, .cartao-col > div > form.card, .cartao-tab .card, .cartao-tab form.card { margin-bottom: 14px; }
.ficha-tab.cartao-tab { max-width: none; }
.cartao-tab .card .card { margin-bottom: 0; }
/* faixa de estado do cartão: o essencial à vista, cada pedaço abre o separador certo */
.cartao-estado { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.cchip { border: 1px solid var(--line); background: var(--panel); color: #d8d8d8; border-radius: 999px; padding: 5px 11px; font-family: inherit; font-weight: 600; font-size: .78rem; line-height: 1.2; cursor: pointer; }
.cchip:hover { border-color: rgba(235,20,113,.5); color: #fff; }
.cchip.ok { border-color: rgba(34,197,94,.35); color: #86efac; }
.cchip.warn { border-color: rgba(234,179,8,.4); color: #fde68a; }
.cchip.err { border-color: rgba(239,68,68,.45); color: #fca5a5; }
.cchip.vio { border-color: rgba(167,20,235,.45); color: #d9b6ff; }
.cartao-tabs { margin-bottom: 16px; }
.cartao-tabs .badge { margin-left: 4px; }
/* ⋯ ao lado do título: arquivar / apagar */
.cartao-mais { position: relative; }
.cartao-mais > summary { list-style: none; cursor: pointer; padding: 5px 11px !important; min-height: 0 !important; line-height: 1.2; }
.cartao-mais > summary::-webkit-details-marker { display: none; }
.cartao-mais > .fim-cartao { position: absolute; right: 0; top: calc(100% + 6px); width: min(420px, 86vw); z-index: 20; box-shadow: 0 18px 40px rgba(0,0,0,.5); margin: 0; }
@media (max-width: 760px) { /* no telemóvel abre por cima da barra de baixo, a toda a largura (ao lado do título saía do ecrã) */
  .cartao-mais > .fim-cartao { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(var(--tabbar) + var(--casa) + 12px); width: auto; max-height: 70dvh; overflow-y: auto; z-index: 80; } /* por cima da bolha do chat */
}
.cartao-col .sec-t { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pink); margin: 26px 0 10px; }
.cartao-col .sec-t:first-child { margin-top: 6px; }
/* ecrã largo: duas colunas — detalhes, ficheiros e métricas à esquerda; equipa, cliente e conversa à direita (na gaveta e no telemóvel fica uma coluna) */
@media (min-width: 1180px) {
  main.wrap:has(.cartao-2col) { max-width: 1440px; }
  .cartao-col:has(.cartao-2col) { max-width: none; }
  .cartao-2col { max-width: none; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); gap: 0 22px; align-items: start; }
  .cartao-2col .cartao-lado .sec-t:first-child { margin-top: 6px; }
  /* Cliente e Equipa são uma coluna só (a conversa primeiro): não esticam até à largura toda */
  .cartao-tab[data-tab="cliente"], .cartao-tab[data-tab="equipa"] { max-width: 860px; }
}
.fim-cartao { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; justify-content: space-between; }
.fim-cartao > form:first-child { flex: 1 1 320px; }
body.embed .cartao-col { max-width: none; }

/* mapa: escolher as vistas e as vistas calendário/grid */
.mapa-vistas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.mapa-vistas .check { margin: 0; }
.proposta-doc .mapa-sec { font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; color: #111; margin: 26px 0 12px; letter-spacing: -.01em; }
.proposta-doc .mapa-vista + .mapa-vista { margin-top: 10px; }
.proposta-doc .mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.proposta-doc .mcal-h { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #888; text-align: center; font-weight: 700; padding: 2px 0; }
.proposta-doc .mcal-d { min-height: 70px; border: 1px solid #eee; border-radius: 6px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.proposta-doc .mcal-d.vazio { border-color: transparent; }
.proposta-doc .mcal-d.tem { background: #fafafa; }
.proposta-doc .mcal-n { font-size: 10px; color: #999; }
.proposta-doc .mcal-i { font-size: 9.5px; line-height: 1.25; color: #222; border-left: 3px solid #eb1471; padding: 2px 4px; background: #fff; border-radius: 3px; overflow-wrap: anywhere; }
.proposta-doc .mcal-i.f-post, .proposta-doc .mcal-i.f-carrossel { border-left-color: #a714eb; }
.proposta-doc .mcal-i b { display: block; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: #eb1471; }
.proposta-doc .mcal-i.f-post b, .proposta-doc .mcal-i.f-carrossel b { color: #a714eb; }
.proposta-doc .mcal-sem { font-size: 11px; color: #555; margin: 10px 0 0; }
.proposta-doc .mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; max-width: 460px; }
.proposta-doc .mgrid-t { position: relative; aspect-ratio: 3 / 4; background: #eee; overflow: hidden; }
.proposta-doc .mgrid-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proposta-doc .mgrid-t .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 10.5px; color: #fff; background: linear-gradient(150deg, #eb1471, #a714eb); overflow-wrap: anywhere; }
.proposta-doc .mgrid-t .fmt { position: absolute; top: 5px; right: 6px; font-size: 11px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.proposta-doc .mgrid-t .dt { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 4px; font-size: 9px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
@media print {
  .mapa-vistas { display: none !important; }
  .proposta-doc .mapa-vista + .mapa-vista { break-before: page; page-break-before: always; padding-top: 4mm; }
  .proposta-doc .mcal-d, .proposta-doc .mgrid-t { break-inside: avoid; }
  .proposta-doc .mgrid-t .ph, .proposta-doc .mcal-d.tem { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 600px) { .proposta-doc .mcal-d { min-height: 46px; } .proposta-doc .mcal-i { font-size: 8.5px; } }

/* ---------- Janela de confirmação (em vez do aviso do browser) ---------- */
.rbc { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); animation: rbc-in .15s ease-out; }
.rbc-box { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.rbc-box p { margin: 0 0 18px; font-size: .95rem; line-height: 1.5; color: #eee; }
.rbc-bt { display: flex; justify-content: flex-end; gap: 8px; }
.rbc-perigo { background: var(--err); color: #fff; border-color: var(--err); }
@keyframes rbc-in { from { opacity: 0; } }

/* ---------- Escolher entre várias sugestões ---------- */
.media-item { position: relative; }
.msel { position: absolute; top: 10px; left: 10px; z-index: 2; cursor: pointer; }
.msel input { position: absolute; opacity: 0; }
.msel span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,.6); border: 2px solid rgba(255,255,255,.7); }
.msel input:checked + span { background: var(--grad, #eb1471); border-color: #fff; }
.msel input:checked + span::after { content: '✓'; color: #fff; font-weight: 700; }
.media-item:has(.msel input:checked) img, .media-item:has(.msel input:checked) video { outline: 3px solid #eb1471; outline-offset: -3px; }
.media-sel { position: sticky; top: 10px; z-index: 5; background: var(--panel); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: .85rem; }
.rb-aviso { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1001; background: var(--panel); border: 1px solid var(--line-2); color: #eee; padding: 10px 16px; border-radius: 999px; font-size: .88rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: rbc-in .15s ease-out; }
.rb-aviso.err { border-color: var(--err); color: #ffb3b3; }

/* grid com a janela ao lado aberta: o post aberto fica marcado */
.ig .tile.aberto { outline: 3px solid #eb1471; outline-offset: -3px; z-index: 1; }

/* Início: atividade */
.pill.ap-enviado { border-color: rgba(255,255,255,.2); color: #aaa; }
.atividade .at-nota { font-style: italic; color: #bbb; margin-top: 2px; overflow-wrap: anywhere; }

/* ---------- Cliente: Revisão, Lista e Calendário com pontos ---------- */
.tabs .tab-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .68rem; }
.rever-vazio { text-align: center; padding: 34px 20px; line-height: 1.6; }
.rever-aviso { display: block; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--pink); background: rgba(235,20,113,.1); color: #fff; text-decoration: none; font-size: .9rem; }
.cal-d .pts { display: none; }
/* Lista: um dia por linha, em qualquer ecrã */
.cal-lista { grid-template-columns: 1fr; }
.cal-lista .cal-h, .cal-lista .cal-d.out, .cal-lista .cal-d:not(.has) { display: none; }
.cal-lista .cal-d { min-height: 0; padding: 10px 12px; }
.cal-lista .cal-d .n { font-weight: 600; color: #fff; }
.cal-lista .cal-d .n em { display: inline; color: var(--muted); font-weight: 400; }
.cal-lista .cal-i { white-space: normal; font-size: .86rem; padding: 7px 9px; }
/* Calendário no telemóvel: dias com pontos; tocar num dia mostra os conteúdos por baixo */
@media (max-width: 760px) {
  .cal-pontos { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .cal-pontos .cal-h { font-size: .62rem; letter-spacing: .04em; padding: 2px 0; }
  .cal-pontos .cal-d { min-height: 0; aspect-ratio: 1; padding: 4px 2px; border-radius: 10px; align-items: center; justify-content: flex-start; gap: 3px; }
  .cal-pontos .cal-d .n { justify-content: center; font-size: .8rem; }
  .cal-pontos .cal-d .n em, .cal-pontos .cal-d > .cal-i { display: none; }
  .cal-pontos .cal-d .pts { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
  .cal-pontos .pts i { width: 6px; height: 6px; border-radius: 50%; background: var(--fc, #888); }
  .cal-pontos .pts i.fs-ideia { --fc: #8a8a8a; } .cal-pontos .pts i.fs-filmagens { --fc: #eb1471; } .cal-pontos .pts i.fs-edicao { --fc: #ffb347; }
  .cal-pontos .pts i.fs-aprovacao { --fc: #ff9640; } .cal-pontos .pts i.fs-recusado { --fc: #ff5050; } .cal-pontos .pts i.fs-aprovado { --fc: #46c878; } .cal-pontos .pts i.fs-agendado { --fc: #2cc6c6; } .cal-pontos .pts i.fs-concluido { --fc: #5aa9ff; }
  .cal-pontos .pts i.pede { box-shadow: 0 0 0 2px rgba(235,20,113,.45); }
  .cal-pontos .cal-d.has { cursor: pointer; }
  .cal-pontos .cal-d.sel { border-color: #fff; background: rgba(255,255,255,.08); }
  .cal-pontos .cal-d.today .n { color: var(--pink); font-weight: 700; }
  .dia-sel { margin-top: 14px; }
  .dia-sel h3 { margin: 0 0 8px; font-size: .95rem; }
  .dia-sel > div { display: flex; flex-direction: column; gap: 8px; }
  .dia-sel .cal-i { white-space: normal; font-size: .9rem; padding: 10px 12px; color: #eee; border-color: var(--line-2); border-left-color: var(--fc); }
}
@media (min-width: 761px) { .dia-sel { display: none; } }
.tabs a { white-space: nowrap; }
@media (max-width: 640px) {
  .tabs .tab-n { min-width: 16px; height: 16px; font-size: .62rem; margin-left: 3px; vertical-align: 1px; }
  .approve-box .list li { flex-wrap: wrap; gap: 10px; }
  .approve-box .list li > div:first-child { flex: 1 1 100%; }
  .approve-box .list li > .row { width: 100%; }
  .approve-box .list li > .row > * { flex: 1; }
  .approve-box .list li > .row .btn { width: 100%; justify-content: center; }
}

/* grid: arrastar para trocar */
[data-grid-area][data-trocar] .ig { overflow: visible; }
[data-grid-area][data-trocar] .tile { cursor: grab; user-select: none; -webkit-user-drag: none; }
[data-grid-area][data-trocar] .tile img { -webkit-user-drag: none; pointer-events: none; }
.ig.a-arrastar .tile:not(.a-arrastar) { transition: transform .2s, filter .2s; }
.ig.a-arrastar { cursor: grabbing; }
.tile.a-arrastar { z-index: 20; cursor: grabbing; box-shadow: 0 24px 50px -12px rgba(0,0,0,.85); transition: none; border-radius: 6px; }
.tile.alvo { transform: scale(.92); filter: brightness(1.15); outline: 3px dashed #eb1471; outline-offset: -3px; }
.tile.trocou .dt { animation: trocou .7s ease-out; }
@keyframes trocou { 0%, 40% { background: linear-gradient(transparent, rgba(235,20,113,.85)); } }



/* mensagem da RB ao enviar para aprovação: em destaque para o cliente */
.msg-rb { margin: 12px 0 4px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(235,20,113,.18), rgba(167,20,235,.18)); border: 1px solid rgba(235,20,113,.55); }
.msg-rb b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #ff9dc8; margin-bottom: 6px; }
.msg-rb div { font-size: 1.02rem; line-height: 1.5; color: #fff; overflow-wrap: anywhere; }
.rever-msg { margin-top: 6px; font-size: .85rem; color: #ffc2dc; font-style: italic; overflow-wrap: anywhere; }

/* voltar atrás num envio ao cliente */
.ap-retirado, .pill.ap-retirado { border-color: rgba(255,255,255,.2); color: #999; }
.stage .retirar { margin-top: 8px; }

/* ---------- Finanças (só o administrador) ---------- */
.fin-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.fin-kpis .kpi { margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fin-kpis .kpi span { font-size: .76rem; color: var(--muted); }
.fin-kpis .kpi b { font-family: var(--display, inherit); font-size: 1.45rem; line-height: 1.15; overflow-wrap: anywhere; }
.fin-kpis .kpi small { font-size: .74rem; color: var(--muted); }
.fin-kpis .ok, .fin-tabela .ok { color: #8ff0c3; } .fin-kpis .warn, .fin-tabela .warn { color: #ffd98a; }
.fin-atraso-t { color: #ff9a9a; }
@media (max-width: 1000px) { .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fin-novo summary { cursor: pointer; }
.fin-form { margin-top: 14px; }
.fin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
.fin-grid .span2 { grid-column: span 2; } .fin-grid .span4 { grid-column: 1 / -1; }
.fin-grid label.check { margin: 0 0 6px; }
@media (max-width: 700px) { .fin-grid { grid-template-columns: 1fr 1fr; } .fin-grid .span2 { grid-column: 1 / -1; } }
.fin-previa { min-height: 1.2em; margin-top: 10px; color: #fff; }
.fin-tabela-wrap { padding: 0; overflow-x: auto; }
.fin-tabela { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.fin-tabela th { text-align: right; font-size: .72rem; color: var(--muted); font-weight: 500; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fin-tabela td { text-align: right; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fin-tabela th:first-child, .fin-tabela td:first-child { text-align: left; padding-left: 18px; }
.fin-tabela tr.vazio td { color: #666; }
.fin-tabela tr.atual td:first-child a { color: var(--pink); }
.fin-tabela tr.aberto td { background: rgba(235,20,113,.08); }
.fin-tabela td a { color: #fff; text-decoration: none; font-weight: 500; }
.fin-tabela tfoot td { font-weight: 700; border-bottom: 0; }
.fin-tabela tr.fin-mes td { text-align: left; white-space: normal; padding: 4px 18px 10px; background: rgba(235,20,113,.04); }
.fin-li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.fin-li .t { font-weight: 500; }
.fin-li.desp .fin-tot { color: #ff9a9a; }
.fin-nota { font-style: italic; }
.fin-li-d { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fin-tot { font-variant-numeric: tabular-nums; }
.pill.fin-pago { border-color: rgba(62,207,142,.6); color: #8ff0c3; }
.pill.fin-a_pagar { border-color: rgba(255,200,80,.6); color: #ffd98a; }
.pill.fin-aguarda_fatura { border-color: rgba(167,20,235,.6); color: #d49bff; }
.pill.fin-orcamento { border-color: rgba(80,160,255,.6); color: #9cc8ff; }
.pill.fin-arquivo { border-color: rgba(255,255,255,.2); color: #888; }
.pill.fin-atraso { border-color: rgba(255,90,90,.7); color: #ff9a9a; }
.fin-menu { position: relative; }
.fin-menu summary { list-style: none; cursor: pointer; padding: 2px 8px; border-radius: 8px; color: var(--muted); font-size: 1.1rem; line-height: 1; }
.fin-menu summary::-webkit-details-marker { display: none; }
.fin-menu[open] summary { background: rgba(255,255,255,.08); color: #fff; }
.fin-menu > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; gap: 6px; padding: 10px; min-width: 190px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.fin-menu > div .btn { width: 100%; justify-content: center; }
.fin-lembrete { display: block !important; padding-top: 0 !important; border-top: 0 !important; }
.fin-lembrete summary { cursor: pointer; font-size: .82rem; color: #ffc2dc; }
.fin-lembrete textarea { margin-top: 8px; }
.fin-tri { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fin-t { margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.fin-t b { font-size: 1.3rem; }
.fin-t small { font-size: .74rem; color: var(--muted); }
.fin-t small.fin-todo { color: var(--text); border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 2px; } .fin-t small.fin-todo b { font-size: inherit; }
.fin-t.agora { border-color: var(--pink); background: rgba(235,20,113,.08); }
.fin-t.aberto { opacity: .7; }
@media (max-width: 800px) { .fin-tri { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fin-li { flex-wrap: wrap; } .fin-li-d { width: 100%; justify-content: flex-end; } }

/* Finanças: despesas */
.fin-origem { font-size: .7rem; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: #bbb; }
.fin-conf { align-items: center; }
.fin-conf-f { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.fin-conf-f select { width: auto; padding: 6px 8px; font-size: .8rem; }
.fin-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fin-cats .pill b { margin-left: 4px; }
.fin-desp summary { cursor: pointer; padding: 12px 0; font-size: .9rem; }
@media (max-width: 640px) { .fin-conf { flex-wrap: wrap; } .fin-conf-f { width: 100%; justify-content: flex-start; } }

.fin-forn { display: block !important; }
.fin-forn-d summary { cursor: pointer; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.fin-forn-d .list li { padding: 6px 0; }

.fin-credito { font-size: .7rem; color: #8ff0c3; font-weight: 500; }

/* ---------- Finanças: separadores, gráfico, barras, listas ---------- */
.fin-seps { display: flex; gap: 4px; flex-wrap: wrap; margin: 18px 0 6px; border-bottom: 1px solid var(--line); }
.fin-seps a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.fin-seps a.on { color: #fff; border-bottom-color: var(--pink); }
.fin-seps a:hover { color: #fff; }
.fin-kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .fin-kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fin-graf-card .between { flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.fin-graf { width: 100%; height: auto; display: block; }
.fin-graf .g { stroke: rgba(255,255,255,.07); }
.fin-graf .gl { fill: #666; font-size: 10px; text-anchor: end; }
.fin-graf .f { fill: url(#x) #c418b6; fill: #c418b6; opacity: .85; transition: opacity .15s; }
.fin-graf .f.top { fill: #eb1471; opacity: 1; }
.fin-graf .d { fill: #555; }
.fin-graf a:hover .f { opacity: 1; } .fin-graf a:hover .d { fill: #777; }
.fin-graf .ml { fill: #999; font-size: 11px; text-anchor: middle; letter-spacing: .05em; }
.fin-graf .tl { fill: #ffd98a; font-size: 12px; text-anchor: middle; }
.fin-leg { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fin-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.fin-leg i.f { background: #c418b6; } .fin-leg i.d { background: #555; margin-left: 8px; }
.fin-leg b { color: #ffd98a; font-weight: 500; }
.fin-barras { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fin-barras li { display: grid; grid-template-columns: minmax(0, 38%) 1fr auto; align-items: center; gap: 10px; font-size: .85rem; }
.fin-barras .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-barras .b { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.fin-barras .b i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.fin-barras .v { font-variant-numeric: tabular-nums; color: #ddd; }
.fin-prox { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; }
.fin-prox li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.fin-prox li:last-child { border-bottom: 0; }
.fin-prox .q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-prox .w { font-size: .76rem; color: var(--muted); } .fin-prox .w.late { color: #ff9a9a; }
@media (max-width: 640px) { .fin-prox li { grid-template-columns: 1fr auto; } .fin-prox .w, .fin-prox .pill { display: none; } }
.fin-mes-card { padding: 0; margin-bottom: 12px; }
.fin-mes-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; }
.fin-mes-card > summary::-webkit-details-marker { display: none; }
.fin-mes-card > summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.fin-mes-card[open] > summary::before { transform: rotate(90deg); }
.fin-mes-card .mn { font-weight: 600; font-size: 1.02rem; min-width: 130px; }
.fin-mes-card .mv { flex: 1; } .fin-mes-card .mv b { font-size: 1.05rem; }
.fin-mes-card > .list, .fin-mes-card > .fin-dlist { padding: 0 20px 12px; }
.fin-cli { display: block !important; }
.fin-cli > details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.fin-cli > details > summary::-webkit-details-marker { display: none; }
.fin-cli .q { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-cli > details > .list { margin: 8px 0 0 12px; padding-left: 12px; border-left: 2px solid var(--line); }
.fin-dlist { list-style: none; margin: 0; }
.fin-dl { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.fin-dl[hidden] { display: none; }
.fin-dl .d { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .78rem; }
.fin-dl .q { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-dl .tags { margin-left: 6px; }
.fin-dl .iva { font-size: .76rem; color: #8ff0c3; font-variant-numeric: tabular-nums; } .fin-dl .iva s { color: #777; }
.fin-dl .v { font-variant-numeric: tabular-nums; }
.tag { font-style: normal; font-size: .66rem; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: #bbb; margin-right: 4px; white-space: nowrap; }
.tag.p { border-color: rgba(255,200,80,.5); color: #ffd98a; } .tag.n { border-color: rgba(255,107,107,.4); color: #ffb0b0; } .tag.i { border-color: rgba(80,160,255,.5); color: #9cc8ff; }
@media (max-width: 640px) { .fin-dl { grid-template-columns: 38px minmax(0, 1fr) auto auto; } .fin-dl .iva, .fin-dl .tags { display: none; } }
.fin-clip { cursor: pointer; font-size: .82rem; text-decoration: none; color: #666; padding: 2px 4px; border-radius: 6px; white-space: nowrap; }
.fin-clip:hover { color: #fff; background: rgba(255,255,255,.06); }
.fin-clip.on { color: #fff; }
.fin-clip-f { display: inline; margin: 0; }
.fin-filtros { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.fin-filtros input { flex: 1; min-width: 200px; } .fin-filtros select { width: auto; }
.fin-drop h2 { margin-bottom: 6px; }
.fin-semmes { font-size: .76rem; margin-top: 4px; }
.fin-form[data-tipo="despesa"] .so-rend, .fin-form[data-tipo="rendimento"] .so-desp { display: none; }
.fin-rend .g-main, .grid.g-main.fin-rend { align-items: start; }
.fin-mes-card .mv { white-space: nowrap; }
.fin-mes-card .ms { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.fin-drop .drop { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 16px 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; cursor: pointer; margin: 8px 0 0; color: #ddd; transition: border-color .15s, background .15s; }
.fin-drop .drop:hover, .fin-drop .drop.over { border-color: var(--pink); background: rgba(235,20,113,.06); }
.fin-drop .drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fin-drop.busy .drop { opacity: .5; pointer-events: none; }
.fin-drop.busy .drop b::after { content: ' · a ler…'; }
@media (max-width: 640px) {
  .fin-seps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fin-seps::-webkit-scrollbar { display: none; }
  .fin-kpis .kpi b { font-size: 1.15rem; }
}

/* ---------- Agenda ---------- */
.ag-form .span3 { grid-column: span 3; }
@media (max-width: 700px) { .ag-form .span3 { grid-column: 1 / -1; } }
.ag-dia { padding: 14px 20px; margin-bottom: 12px; }
.ag-dia h3 { margin: 0 0 6px; font-size: .95rem; font-weight: 500; color: #ddd; }
.ag-dia h3 b { color: var(--pink); }
.ag-item { display: grid !important; grid-template-columns: 58px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.ag-hora b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ag-hora span { font-size: .72rem; color: var(--muted); }
.ag-info { min-width: 0; }
.ag-tipo { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; margin-right: 4px; vertical-align: 1px; }
.ag-tipo.t-filmagem { background: rgba(235,20,113,.18); color: #ff9dc8; } .ag-tipo.t-reuniao { background: rgba(255,196,64,.18); color: #ffd98a; }
.ag-resp { margin-top: 6px; font-size: .84rem; padding: 6px 10px; border-radius: 8px; background: rgba(255,200,80,.1); color: #ffd98a; }
.ag-resp.ok { background: rgba(62,207,142,.08); color: #8ff0c3; }
.pill.ag-marcado { border-color: rgba(255,200,80,.6); color: #ffd98a; } .pill.ag-confirmado { border-color: rgba(62,207,142,.6); color: #8ff0c3; }
.pill.ag-remarcar { border-color: rgba(255,90,90,.7); color: #ff9a9a; } .pill.ag-cancelado { border-color: rgba(255,255,255,.2); color: #888; }
.ag-item.est-cancelado { opacity: .55; }
@media (max-width: 640px) { .ag-item { grid-template-columns: 48px minmax(0, 1fr) auto; } .ag-item .pill { grid-column: 2; justify-self: start; } }
.ag-publico p { margin: 0 0 14px; line-height: 1.5; }

.cal-ev { display: block; font-size: .7rem; padding: 3px 6px; border-radius: 6px; text-decoration: none; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(80,160,255,.14); border: 1px dashed rgba(80,160,255,.5); }
.cal-ev.ev-filmagem { background: rgba(235,20,113,.12); border-color: rgba(235,20,113,.5); }
.cal-ev.ev-remarcar { border-color: #ff5050; }

/* Finanças: arquivo de faturas */
.fin-upload .drop { padding: 22px 14px; }
.fin-tris { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.fin-tri-c { margin: 0; padding: 14px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s; }
.fin-tri-c span { font-size: .76rem; color: var(--muted); } .fin-tri-c b { font-size: 1.15rem; } .fin-tri-c small { font-size: .72rem; color: var(--muted); }
.fin-tri-c.on { border-color: var(--pink); background: rgba(235,20,113,.06); }
.fin-tri-c:hover { border-color: var(--line-2); }
@media (max-width: 800px) { .fin-tris { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fin-dhead, .fin-dl { display: grid; grid-template-columns: 44px minmax(0, 1fr) 86px 72px 90px auto; gap: 10px; align-items: center; }
.fin-dhead { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 20px 6px; }
.fin-dhead span:nth-child(n+3):nth-child(-n+5), .fin-dl .n { text-align: right; font-variant-numeric: tabular-nums; }
.fin-dl .acoes { display: flex; align-items: center; gap: 2px; }
.tag.g { border-color: rgba(62,207,142,.5); color: #8ff0c3; }
@media (max-width: 700px) { .fin-dhead { display: none; } .fin-dl { grid-template-columns: 38px minmax(0, 1fr) auto auto; } .fin-dl .n:not(b) { display: none; } }
.pill.ag-marcado { border-color: rgba(255,255,255,.3); color: #ddd; }
.pill.ag-marcado.ag-espera { border-color: rgba(255,200,80,.6); color: #ffd98a; }

/* Agenda: duas colunas e semana de disponibilidade */
.ag-duas { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 20px; align-items: start; }
.ag-dir { position: sticky; top: 16px; }
@media (max-width: 1100px) { .ag-duas { grid-template-columns: 1fr; } .ag-dir { position: static; } }
.ag-semana { padding: 14px; }
.ag-grid { display: grid; grid-template-columns: 30px repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 10px; }
.ag-horas { display: flex; flex-direction: column; }
.ag-horas span { height: 30px; }
.ag-horas i { flex: 1; font-style: normal; font-size: .6rem; color: #666; height: 30px; line-height: 1; }
.ag-col { display: flex; flex-direction: column; min-width: 0; }
.ag-dn { height: 30px; font-size: .64rem; color: var(--muted); text-align: center; line-height: 1.2; text-transform: uppercase; }
.ag-dn b { display: block; font-size: .85rem; color: #ddd; }
.ag-col.hoje .ag-dn b { color: var(--pink); }
.ag-area { position: relative; height: calc(30px * 13); border-radius: 6px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 30px); cursor: copy; }
.ag-col.passado .ag-area { opacity: .45; }
.ag-b { --c: #888; position: absolute; left: 0; width: 100%; box-sizing: border-box; border: 1px solid rgba(0,0,0,.35); border-radius: 4px; background: color-mix(in srgb, var(--c) 32%, #1a1a1a); border-left: 3px solid var(--c); font-size: .56rem; line-height: 1.15; padding: 2px 3px; overflow: hidden; color: #ccc; cursor: default; text-decoration: none; }
.ag-b.todo { position: relative; display: block; margin: 1px 0 2px; white-space: nowrap; text-overflow: ellipsis; }
.ag-b small { opacity: .7; font-size: .95em; }
.ag-b.ev { background: rgba(235,20,113,.35); border-left-color: #eb1471; color: #fff; cursor: pointer; }
.ag-b.ev.t-reuniao { background: rgba(255,196,64,.32); border-left-color: #ffc440; }
.ag-b.ev.est-remarcar { outline: 1px dashed #ff5050; }
.ag-leg { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
.ag-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; } .ag-leg .o { background: rgba(255,255,255,.3); } .ag-leg .f { background: #eb1471; } .ag-leg .r { background: #ffc440; } .ag-leg .r-antigo { background: #5aa9ff; }
.fin-filtros { align-items: center; }
.fin-filtros input[type=search] { flex: 1 1 260px; }
.fin-filtros .check { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .85rem; }
.fin-filtros .check input { width: auto; margin: 0; }

/* agenda: semana | mês */
.ag-vistas { display: inline-flex; background: rgba(255,255,255,.06); border-radius: 8px; padding: 2px; margin-bottom: 8px; }
.ag-vistas a { padding: 4px 12px; border-radius: 6px; font-size: .8rem; color: var(--muted); text-decoration: none; }
.ag-vistas a.on { background: rgba(255,255,255,.12); color: #fff; }
.ag-mes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 10px; }
.ag-mdn { font-size: .62rem; color: var(--muted); text-transform: uppercase; text-align: center; padding-bottom: 2px; }
.ag-md { min-height: 78px; background: rgba(255,255,255,.03); border-radius: 6px; padding: 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: copy; }
.ag-md > b { font-size: .72rem; color: #ccc; font-weight: 600; }
.ag-md.hoje > b { color: var(--pink); }
.ag-md.fora { opacity: .35; }
.ag-md.passado:not(.fora) { opacity: .6; }
.ag-mi { --c: #888; display: block; font-size: .58rem; line-height: 1.25; padding: 1px 3px; border-radius: 3px; border-left: 2px solid var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; cursor: default; }
.ag-mi i { font-style: normal; opacity: .7; }
.ag-mi.todo { background: color-mix(in srgb, var(--c) 45%, transparent); }
.ag-mi.ev { --c: #eb1471; color: #fff; cursor: pointer; } .ag-mi.ev.t-reuniao { --c: #ffc440; }
.ag-leg { flex-wrap: wrap; font-size: .7rem; color: var(--muted); margin-left: 0; }
.ag-extra { border-top: 1px solid rgba(255,255,255,.08); padding: 8px 0; }
.ag-cor { display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: middle; }
/* agenda: mais legível */
@media (min-width: 1101px) { .ag-duas { grid-template-columns: minmax(0, 1fr) minmax(430px, 46%); } }
.ag-duas.largo { grid-template-columns: 1fr; }
.ag-duas.largo .ag-dir { order: -1; position: static; }
.ag-duas.largo .ag-area { height: calc(44px * 13); background-size: auto; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 44px); }
.ag-duas.largo .ag-grid .ag-horas i { height: 44px; }
.ag-duas.largo .ag-b { font-size: .7rem; }
.ag-duas.largo .ag-md { min-height: 110px; } .ag-duas.largo .ag-mi { font-size: .68rem; }
.ag-topo { height: var(--topo, 0px); overflow: hidden; }
.ag-grid .ag-horas span { height: calc(30px + var(--topo, 0px)); }
.ag-b.todo { height: 15px; margin: 0 0 2px; box-sizing: border-box; }
.ag-b { font-size: .6rem; line-height: 1.2; padding: 2px 3px; word-break: normal; overflow-wrap: anywhere; hyphens: auto; }
.ag-b small { display: block; font-size: .9em; white-space: nowrap; }
.ag-b span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.ag-b.todo { font-size: .58rem; padding: 1px 3px; }
#ag-cal.a-carregar { opacity: .55; pointer-events: none; transition: opacity .15s; }
.ev-cli li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ev-cli li a { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0; }
.ev-cli li a .muted { font-size: .85rem; }
/* remarcar */
.pill.ag-proposta { border-color: rgba(255,200,80,.6); color: #ffd98a; }
.ag-resp.esp { color: #ffd98a; }
.ag-propor { margin-top: 6px; font-size: .85rem; }
.ag-propor summary { cursor: pointer; color: var(--muted); }
.ag-propor-f { display: grid; gap: 6px; margin-top: 8px; max-width: 420px; }
.ev-msg { background: rgba(255,255,255,.05); border-left: 3px solid var(--pink); padding: 8px 12px; border-radius: 6px; }
.ev-dias { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scroll-snap-type: x mandatory; }
.ev-dia { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 4px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: inherit; cursor: pointer; font: inherit; }
.ev-dia small { font-size: .68rem; color: var(--muted); text-transform: uppercase; }
.ev-dia b { font-size: 1.1rem; }
.ev-dia.on { border-color: var(--pink); background: rgba(235,20,113,.15); }
.ev-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.ev-hora input { position: absolute; opacity: 0; pointer-events: none; }
.ev-hora span { display: block; text-align: center; padding: 8px 0; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); cursor: pointer; }
.ev-hora input:checked + span { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 600; }
.ev-hora input:focus-visible + span { outline: 2px solid #fff; }
/* pedidos e agendar */
.pill.ag-pedido { border-color: rgba(120,200,255,.6); color: #9fd4ff; }
.ag-pedido { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(120,200,255,.07); border: 1px solid rgba(120,200,255,.25); font-size: .88rem; }
.ag-pedido-txt { margin: 6px 0 0; white-space: pre-line; color: #ddd; }
.ag-ficha { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(62,207,142,.06); border: 1px solid rgba(62,207,142,.25); font-size: .88rem; }
.ag-ficha-falta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-ficha-falta .btn { padding: 4px 10px; }
/* histórico da marcação (emails, lembretes, respostas) */
.ag-hist { margin-top: 8px; font-size: .84rem; }
#ver, #editar { scroll-margin-top: 130px; } /* (o menu de cima é fixo) */
.ag-ver-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ag-ver-topo h2 { margin: 0; min-width: 0; }
.ag-ver-topo .btn { flex-shrink: 0; }
@media (max-width: 640px) { .ag-ver-topo h2 { font-size: 1.15rem; } }
.ag-ver .ag-lista { margin: 8px 0 0; }
.ag-ver .ag-lista > li { border-top: 0; }
.ag-ver-editar { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.ag-ver-editar > summary { cursor: pointer; width: max-content; max-width: 100%; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; font-size: .85rem; list-style: none; }
.ag-ver-editar > summary::-webkit-details-marker { display: none; }
.ag-ver-editar[open] > summary { margin-bottom: 10px; }
.ag-hist summary { cursor: pointer; color: var(--muted); width: max-content; max-width: 100%; }
.ag-hist ol { list-style: none; margin: 6px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); }
.list .ag-hist li { display: flex; justify-content: flex-start; align-items: baseline; gap: 10px; padding: 3px 0; border-top: 0; min-width: 0; }
.ag-hist time { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.ag-hist li > span { min-width: 0; overflow-wrap: anywhere; }
.ag-hist .note { margin: 6px 0 0; }
@media (max-width: 640px) { .list .ag-hist li { flex-direction: column; gap: 0; padding: 4px 0; } .ag-hist time { font-size: .76rem; } }
.ag-re { margin: 14px 0 0; padding: 6px 14px 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ag-re legend { padding: 0 6px; font-weight: 600; font-size: .92rem; }
label.check.ag-ficha-op { align-items: flex-start; }
.ev-ficha summary { cursor: pointer; }
.ev-ficha summary .muted { font-size: .85rem; font-weight: 400; }
.ag-pedido select { width: auto; padding: 6px 8px; }
.ag-recusar summary { list-style: none; } .ag-recusar summary::-webkit-details-marker { display: none; }
.ag-b.ev.est-pedido { opacity: .7; outline: 1px dashed #9fd4ff; }
.agd { max-width: 720px; }
.agd-tabs { margin: 6px 0 14px; }
.agd-armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agd-formato { gap: 16px; }
.agd-ok h2 { font-size: 1.3rem; }
.btn-agendar { display: inline-flex; align-items: center; gap: 8px; }
body.embed .agd { max-width: none; }
body.embed:has(.agd) { background: transparent; }
.ev-dias { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.ev-dias::-webkit-scrollbar { height: 6px; } .ev-dias::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; } .ev-dias::-webkit-scrollbar-track { background: transparent; }
.agd-parte { border: 0; padding: 0; margin: 0; min-width: 0; }
.ev-hora { position: relative; }
.ev-hora input { width: 1px; height: 1px; left: 0; top: 0; margin: 0; }
@media (max-width: 1100px) { .ag-duas > * { min-width: 0; } .ag-dir { order: -1; } .ag-semana { overflow-x: auto; } }
@media (max-width: 760px) {
  .ag-dir { order: 0; } /* no telemóvel: primeiro os pedidos e a lista (lê-se melhor), depois o calendário */
  body.staff .lead { display: none; } /* a equipa já conhece as páginas: a explicação ocupava meio ecrã */
}
@media (max-width: 1100px) { [data-ag-largo] { display: none; } }
@media (max-width: 760px) { .cal:not(.cal-pontos) .cal-ev { white-space: normal; font-size: .82rem; padding: 6px 9px; } }
@media (max-width: 640px) { .list li.fin-li { display: flex; flex-wrap: wrap; } .fin-li > div:first-child { flex: 1 1 100%; min-width: 0; } .fin-li-d { width: 100%; justify-content: flex-end; flex-wrap: wrap; } }
.doc-proj { width: auto; max-width: 220px; padding: 5px 8px; font-size: .82rem; }
/* ---------- Seleção de fotos ---------- */
.sel-card > summary { list-style: none; cursor: pointer; gap: 10px; flex-wrap: wrap; } .sel-card > summary::-webkit-details-marker { display: none; }
.pill.sel-preparar { color: #ccc; } .pill.sel-aberta { border-color: rgba(255,200,80,.6); color: #ffd98a; } .pill.sel-fechada { border-color: rgba(62,207,142,.6); color: #8ff0c3; }
.sel-up .drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 1px dashed var(--line-2); border-radius: 12px; cursor: pointer; text-align: center; }
.sel-up .drop input { display: none; }
.sel-up .drop:hover { border-color: var(--pink); }
.sel-prog { margin: 8px 0 0; font-size: .88rem; }
.sel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sel-admin { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-height: 520px; overflow-y: auto; padding-right: 4px; }
.sel-f { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #111; aspect-ratio: 3 / 2; cursor: zoom-in; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s; }
.sel-f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sel-f.on { outline-color: var(--pink); }
.sel-f figcaption { position: absolute; left: 0; right: 0; bottom: 0; font-size: .64rem; padding: 2px 6px; background: rgba(0,0,0,.6); color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-admin .sel-f.on::after { content: '♥'; position: absolute; top: 4px; left: 6px; color: var(--pink); font-size: .9rem; text-shadow: 0 0 4px #000; }
.sel-x { position: absolute; top: 3px; right: 3px; } .sel-x button { background: rgba(0,0,0,.65); color: #fff; border: 0; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; line-height: 1; opacity: 0; } .sel-f:hover .sel-x button { opacity: 1; }
.sel-sem { display: grid; place-items: center; height: 100%; font-size: .7rem; color: var(--muted); }
.sel-cor { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: rgba(255,255,255,.75); font-size: 1rem; cursor: pointer; display: grid; place-items: center; }
.sel-f.on .sel-cor { background: var(--pink); color: #fff; }
.sel-cli.cheia .sel-f:not(.on) .sel-cor { opacity: .35; }
.sel-barra { position: sticky; top: 8px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; background: rgba(20,20,20,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; }
.sel-barra b { color: var(--pink); font-size: 1.1rem; }
.sel-lr textarea { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; margin-top: 6px; }
.sel-lb { position: fixed; inset: 0; z-index: 90; background: #050505; opacity: 0; transition: opacity .22s ease; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.sel-lb[hidden] { display: none; }
.sel-lb.on { opacity: 1; }
html.sel-lb-aberto, html.sel-lb-aberto body { overflow: hidden; overscroll-behavior: none; }
.sel-lb-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 14px 10px 18px; color: #bbb; font-size: .9rem; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.sel-lb-palco { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.sel-lb-trilho { position: absolute; inset: 0; will-change: transform; }
.sel-lb-s { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px 12px calc(96px + env(safe-area-inset-bottom)); }
.sel-lb-s img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; transform: scale(.97); transition: transform .28s cubic-bezier(.2,.75,.15,1); pointer-events: none; -webkit-user-drag: none; }
.sel-lb.on .sel-lb-s img { transform: scale(1); }
.sel-lb-x, .sel-lb-p, .sel-lb-n { background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 44px; height: 44px; font-size: 1.5rem; line-height: 1; touch-action: manipulation; display: grid; place-items: center; }
.sel-lb-p, .sel-lb-n { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); transition: background .15s; }
.sel-lb-p { left: 14px; } .sel-lb-n { right: 14px; }
.sel-lb-p:hover, .sel-lb-n:hover, .sel-lb-x:hover { background: rgba(255,255,255,.2); }
.sel-lb.so-uma .sel-lb-p, .sel-lb.so-uma .sel-lb-n { display: none; }
.sel-lb-b { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.sel-lb-esc { display: inline-flex; align-items: center; gap: 10px; min-width: 190px; justify-content: center; padding: 14px 26px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; touch-action: manipulation; transition: background .2s, border-color .2s; }
.sel-lb-esc .c { font-size: 1.25rem; line-height: 1; }
.sel-lb-esc.on { background: var(--pink); border-color: var(--pink); }
.sel-lb-esc.pop .c { animation: sel-pop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes sel-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.sel-cor { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { .sel-lb, .sel-lb-s img { transition: none; } .sel-lb-esc.pop .c { animation: none; } }
@media (max-width: 760px) { .sel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .sel-admin { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sel-lb-p, .sel-lb-n { display: none; } .sel-x button { opacity: 1; } }
.sel-conta { display: inline-flex; flex-direction: column; gap: 5px; min-width: 150px; }
.sel-prog-l { display: block; height: 4px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.sel-prog-l > i { display: block; height: 100%; background: var(--grad, var(--pink)); border-radius: 99px; transition: width .3s ease; }
.sel-barra { position: static; }
.sel-flut { position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); display: flex; align-items: center; gap: 16px; width: min(560px, calc(100% - 24px));
  justify-content: space-between; padding: 12px 14px 12px 18px; border-radius: 16px; background: rgba(22,22,22,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); box-shadow: 0 14px 40px -12px rgba(0,0,0,.8);
  transition: transform .3s cubic-bezier(.2,.75,.15,1), opacity .3s; opacity: 0; pointer-events: none; }
.sel-flut.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.sel-flut b, .sel-barra b { color: var(--pink); font-size: 1.1rem; }
body.sel-flut-on .foot { padding-bottom: 100px; }
.sel-lb-top { flex-wrap: wrap; row-gap: 8px; }
.sel-lb-conta { color: #fff; font-weight: 600; } .sel-lb-conta b { color: var(--pink); }
.sel-lb-pl { flex-basis: 100%; height: 3px; }
@media (prefers-reduced-motion: reduce) { .sel-flut, .sel-prog-l > i { transition: none; } }
.chip.chip-conf { border-color: var(--pink); background: rgba(235,20,113,.12); }
.ciencia-ok { border-color: rgba(62,207,142,.45); }
.doc-colab { margin-top: 4px; font-size: .82rem; } .doc-colab summary { cursor: pointer; color: var(--muted); }
.doc-colab form { display: grid; gap: 6px; margin-top: 6px; max-width: 420px; }
.cal-area:not(:has(> .tabuleiro)) { grid-template-columns: 1fr; } /* sem tabuleiro (vista Todos sem nada por agendar): calendário na largura toda */

/* guião em PDF: atalho ao lado do rótulo */
.guiao-pdf { float: right; font-size: .78rem; font-weight: 500; color: var(--pink); text-decoration: none; text-transform: none; letter-spacing: 0; }
.guiao-pdf:hover { text-decoration: underline; }

/* ficha do cliente: pacote mensal combinado */
.pacote-campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pacote-campos label { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pacote-campos input { text-align: center; }
.pacote-marca { margin-top: 10px; } .pacote-marca b { display: block; font-size: .85rem; margin-bottom: 4px; }
@media (max-width: 560px) { .pacote-campos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Tours 360 (admin/tour.php) ---------- */
.tour-up { border-style: dashed; }
.tour-up.sobre { border-color: var(--pink); background: rgba(235,20,113,.06); }
.tour-fila { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tour-fila li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; font-size: .85rem; }
.tour-fila .tf-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-fila .tf-estado { color: var(--muted); text-align: right; }
.tour-fila li.ok .tf-estado { color: var(--ok); } .tour-fila li.erro .tf-estado { color: var(--err); grid-column: 1 / -1; text-align: left; }
.tour-fila .tf-barra { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tour-fila .tf-barra i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }
.tour-cenas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tour-cena { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.tour-cena[draggable="true"] { cursor: grab; }
.tour-cena.a-arrastar { opacity: .45; }
.tour-cena.sem-nome { border-color: rgba(235,20,113,.55); }
.tour-cena img { width: 150px; height: 75px; object-fit: cover; border-radius: 8px; display: block; }
.tc-nome { margin-bottom: 8px; }
.tc-tipos { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-tipos .chip { padding: 5px 10px; font-size: .78rem; border-radius: 999px; cursor: pointer; }
.tc-tipos .chip.on { background: var(--grad); border-color: transparent; }
.tc-outro { display: inline-flex; gap: 4px; }
.tc-outro input { width: 130px; padding: 5px 10px; font-size: .78rem; border-radius: 999px; }
.tc-acoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tour-tabs .chip { padding: 5px 12px; font-size: .8rem; border-radius: 999px; cursor: pointer; }
.tour-tabs .chip.on { background: var(--grad); border-color: transparent; }
.card .tour-editor { position: relative; height: min(62vh, 560px); border-radius: 14px; overflow: hidden; background: #000; }
.tour-menu { position: absolute; z-index: 5; width: 240px; padding: 12px; border-radius: 12px; background: #1b1b1b; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -12px #000; display: grid; gap: 8px; font-size: .85rem; }
.card:has(> .tour-menu) { position: relative; }
.tour-menu select { width: 100%; }
.tour-pendente { margin-bottom: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(235,20,113,.14); border: 1px solid rgba(235,20,113,.4); font-size: .88rem; }
.ed-porta { width: 34px; height: 34px; border-radius: 50%; background: var(--pink); border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(235,20,113,.3); cursor: pointer; }
.ed-porta span { visibility: visible !important; }
.tour-aviso { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.35); font-size: .88rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tour-resumo { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tour-resumo img { width: 120px; height: 60px; object-fit: cover; border-radius: 8px; }
.tour-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.tour-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) {
  .tour-cena { grid-template-columns: 1fr; }
  .tour-cena img { width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .tc-acoes { justify-content: flex-start; }
  .tour-embed { aspect-ratio: 4 / 5; }
}
.tour-ficha { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tour-ficha-foto { width: 64px; height: 76px; object-fit: contain; object-position: bottom; background: repeating-conic-gradient(#222 0 25%, #2a2a2a 0 50%) 0 0 / 12px 12px; border-radius: 8px; }

/* Conteúdos só leitura: sem botões de ação, barras de seleção nem carregadores */
body.so-leitura main form[method="post" i] button, body.so-leitura main form[method="post" i] .btn,
body.so-leitura .selbar, body.so-leitura .uploader, body.so-leitura [data-tour-up], body.so-leitura details.lote-criar,
body.so-leitura .cal-d .add, body.so-leitura [data-autosave-estado] { display: none !important; }
body.so-leitura .cal-i { cursor: pointer; }
body.so-leitura::before { content: "Só leitura"; position: fixed; z-index: 60; right: 14px; bottom: 14px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(20,20,20,.9); border: 1px solid var(--line-2); color: var(--muted); pointer-events: none; }

/* Cobranças (equipa) */
.cob-li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 0; }
.cob-valor { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cob-dias { font-size: .78rem; color: var(--muted); }
.cob-dias.atraso { color: #ffb347; } .cob-dias.muito { color: var(--err); font-weight: 600; }
.cob-lembrete { grid-column: 1 / -1; }
.cob-lembrete summary { list-style: none; display: inline-flex; cursor: pointer; }
.cob-lembrete summary::-webkit-details-marker { display: none; }
.cob-lembrete[open] summary { margin-bottom: 8px; }

/* ---------- Início (hub) ---------- */
.hub-bloco { margin-bottom: 30px; min-width: 0; }
.hub-cab { margin-bottom: 12px; }
.hub-cab h2, h2.hub-cab { margin: 0; }
.hub-cab h2 .muted { font-size: .8rem; font-weight: 400; }
.hub-lista { padding: 6px 22px; }
.hub-aviso { display: block; text-decoration: none; color: inherit; margin-bottom: 12px; padding: 14px 18px; }
.hub-dia { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.hub-dia:first-child { border-top: 0; }
.hub-dia-t { font-size: .85rem; color: var(--pink); padding-top: 12px; }
.hub-dia .list li { padding: 8px 0; }
.hub-numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.hub-num { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: inherit; text-decoration: none; transition: border-color .2s; }
.hub-num:hover { border-color: rgba(235,20,113,.55); }
.hub-num b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.9rem; line-height: 1.1; }
.hub-num span { font-size: .82rem; color: var(--muted); }
.hub-duo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.hub-pend .t { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hub-pend .s a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); }
.hub-pend .s a:hover { color: #fff; }
.hub-ico { width: 22px; display: inline-block; }
/* to do list */
.todo { padding: 16px 18px; }
.todo-nova input[name="texto"] { margin: 0; }
.todo-opcoes { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.todo-opcoes input, .todo-opcoes select { margin: 0; width: auto; flex: 1; min-width: 0; font-size: .85rem; padding: 7px 10px; }
.todo-opcoes .btn { flex-shrink: 0; }
.todo-lista { list-style: none; margin-top: 12px; }
.todo-li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.todo-li:first-child { border-top: 0; }
.todo-li form { margin: 0; }
.todo-check { width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-2); background: transparent; color: #fff; font-size: .75rem; line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0; transition: background .2s, border-color .2s; }
.todo-check:hover { border-color: var(--pink); }
.todo-li.feita .todo-check { background: var(--pink); border-color: var(--pink); }
.todo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; font-size: .92rem; }
.todo-txt small { font-size: .76rem; color: var(--muted); }
.todo-li.feita .todo-txt span { text-decoration: line-through; color: var(--muted); }
.todo-prazo { font-weight: 500; color: #ddd; }
.todo-prazo.atraso { color: var(--err); }
.todo-mais summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .85rem; padding: 0 4px; }
.todo-mais summary::-webkit-details-marker { display: none; }
.todo-mais[open] { flex-basis: 100%; }
.todo-li:has(.todo-mais[open]) { flex-wrap: wrap; }
.todo-editar { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.todo-editar form { display: flex; gap: 6px; flex-wrap: wrap; }
.todo-editar input { margin: 0; flex: 1; min-width: 120px; font-size: .85rem; padding: 7px 10px; }
.todo-vazio { font-size: .85rem; margin: 14px 0 2px; text-align: center; }
/* conteúdos da semana */
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.semana-dia { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 10px 8px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.semana-dia.hoje { border-color: rgba(235,20,113,.6); }
.semana-dia.vazio { opacity: .55; }
.semana-cab { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.semana-cab b { color: #fff; font-size: .95rem; letter-spacing: 0; }
.semana-dia.hoje .semana-cab b { color: var(--pink); }
.semana-chip { display: flex; flex-direction: column; padding: 6px 8px; border: 1px solid; border-left-width: 3px; border-radius: 8px; text-decoration: none; background: rgba(255,255,255,.02); min-width: 0; }
.semana-chip span { font-size: .78rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.semana-chip small { font-size: .68rem; color: var(--muted); }
@media (max-width: 960px) {
  .hub-duo { grid-template-columns: 1fr; gap: 0; }
  .hub-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .semana { grid-template-columns: 1fr; gap: 6px; }
  .semana-dia { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .semana-dia.vazio { display: none; }
  .semana-cab { width: 100%; }
}
@media (max-width: 560px) {
  .hub-lista { padding: 4px 16px; }
  .hub-dia { grid-template-columns: 1fr; gap: 0; }
  .hub-dia-t { padding-top: 4px; }
}

/* ---------- Ficheiros dos conteúdos: miniaturas + visualizador ---------- */
.media-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.media-grid:has(> .mtile:only-child) { grid-template-columns: minmax(0, 260px); }
.mtile { position: relative; min-width: 0; }
.mtile-img { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #000; cursor: zoom-in; position: relative;
  -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.mtile-img img, .mtile-img video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mtile-img:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.mtile-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); pointer-events: none; }
.mtile-n { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: rgba(0,0,0,.7); color: #fff; font-size: .72rem; font-weight: 600; display: grid; place-items: center; pointer-events: none; }
.mtile .msel { top: 6px; left: auto; right: 6px; }
.mtile .msel span { width: 24px; height: 24px; border-radius: 7px; }
.mtile:has(.msel input:checked) .mtile-img { outline: 3px solid #eb1471; outline-offset: -3px; }
.mtile-bar { display: flex; align-items: center; gap: 4px; margin-top: 6px; min-height: 28px; }
.mtile-bar form { margin: 0; }
.mtile-bar .pill.toggle { font-size: .68rem; padding: 3px 8px; white-space: nowrap; }
.mtile-vis { font-size: .8rem; opacity: .85; }
.mtile-mais { margin-left: auto; position: relative; }
.mtile-mais summary { list-style: none; cursor: pointer; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.mtile-mais summary::-webkit-details-marker { display: none; }
.mtile-mais[open] summary { background: var(--panel-2); color: #fff; }
.mtile-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 6; width: 200px; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.mtile-menu .muted { font-size: .72rem; overflow-wrap: anywhere; }
.mtile-menu .btn { width: 100%; justify-content: center; }
.mtile-gone .gone { aspect-ratio: 1; display: grid; place-items: center; text-align: center; font-size: .72rem; padding: 8px; }
.media-dica { margin: -4px 0 14px; font-size: .78rem; }
[data-ordenar] .mtile-img { cursor: grab; }
.a-ordenar .mtile-img { cursor: grabbing; }
.mtile.a-arrastar .mtile-img { opacity: .18; outline: 2px dashed rgba(255,255,255,.35); outline-offset: -2px; }
.mtile.a-arrastar .mtile-bar, .mtile.a-arrastar .mtile-n, .mtile.a-arrastar .msel { opacity: .2; }
.mtile-voar { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; will-change: transform; }
.mtile-voar .mtile-img { cursor: grabbing; transition: transform .22s cubic-bezier(.22,.9,.24,1), box-shadow .22s; }
.mtile-voar.no-ar .mtile-img { transform: scale(1.08) rotate(-2deg); box-shadow: 0 22px 44px rgba(0,0,0,.6), 0 0 0 2px var(--pink); }
@media (prefers-reduced-motion: reduce) { .visor, .visor-pontos i, .mtile-voar .mtile-img { transition: none; } .visor.entrar .visor-slide.atual .visor-media { animation: none; } }
.so-leitura .mtile-bar form, .so-leitura .mtile-mais { display: none; }
@media (max-width: 700px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
/* visualizador */
html.visor-aberto { overflow: hidden; }
.visor { position: fixed; inset: 0; z-index: 1000; background: rgba(5,5,5,var(--visor-a, .97)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .22s ease; }
.visor.on { opacity: 1; }
.visor[hidden] { display: none; }
.visor-topo { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 10px; }
.visor-n { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.visor-acoes { display: flex; gap: 8px; align-items: center; }
.visor-x { width: 38px; height: 38px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: #fff; font-size: 1rem; cursor: pointer; }
.visor-palco { grid-column: 2; grid-row: 2; position: relative; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; }
.visor-palco:active { cursor: grabbing; }
.visor-trilho { position: absolute; inset: 0; will-change: transform; }
.visor-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 0 8px; will-change: transform; }
.visor-media { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; min-height: 0; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.visor.entrar .visor-slide.atual .visor-media { animation: visor-entrar .34s cubic-bezier(.22,.9,.24,1); }
@keyframes visor-entrar { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.visor-seta { grid-row: 2; align-self: center; width: 46px; height: 46px; margin: 0 auto; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s, transform .15s; }
.visor-seta:not(:disabled):hover { background: rgba(255,255,255,.14); }
.visor-seta:not(:disabled):active { transform: scale(.92); }
.visor-seta.ant { grid-column: 1; } .visor-seta.seg { grid-column: 3; }
.visor-seta:disabled { opacity: .2; cursor: default; }
.visor.so-um .visor-seta { visibility: hidden; }
.visor-pontos { grid-column: 2; grid-row: 3; display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 30px; padding: 4px 0 14px; }
.visor-pontos i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.3); transition: width .3s cubic-bezier(.22,.9,.24,1), background .3s; }
.visor-pontos i.on { width: 18px; background: #fff; }
@media (max-width: 700px) {
  .visor { grid-template-columns: 0 1fr 0; }
  .visor-palco { padding: 0; }
  .visor-slide { padding: 0 12px 8px; }
  .visor-seta { position: fixed; bottom: 18px; width: 44px; height: 44px; z-index: 2; }
  .visor-seta.ant { left: 18px; } .visor-seta.seg { right: 18px; }
  .visor-pontos { padding-bottom: 30px; min-height: 56px; }
}


.hub-aniv .t { color: #ff9dc8; }
.hub-aniv-linha { margin: -14px 0 24px; font-size: .9rem; color: var(--muted); }
/* aviso "Instala a app RB" (painel do cliente) */
.app-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 22px; border-color: rgba(235,20,113,.4); background: linear-gradient(120deg, rgba(235,20,113,.10), rgba(167,20,235,.06)); }
.app-banner img { border-radius: 12px; flex: none; }
.app-banner .app-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: var(--muted); }
.app-banner .app-txt > b { color: #fff; font-size: .98rem; }
.app-banner .app-acoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .app-banner { flex-wrap: wrap; } .app-banner .app-acoes { width: 100%; justify-content: flex-start; } }

/* calendário de conteúdos do painel no telemóvel: mês com pontinhos, como o do cliente (os dias do mês ao lado ficam esbatidos) */
@media (max-width: 760px) {
  .cal-pontos .cal-d.outro-mes { display: flex; opacity: .35; }
  .cal-pontos .pts i.ev { --fc: #eb1471; border-radius: 2px; } .cal-pontos .pts i.ev-reuniao { --fc: #ffc440; }
  .cal-pontos .cal-d > .cal-ev, .cal-pontos .cal-d .n .add { display: none; }
  .dia-sel .cal-ev { display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); font-size: .9rem; }
  .cal-area .cal-tip { display: none; }
}
@media (max-width: 760px) { .cal-pontos .cal-d .om { display: none; } }
@media (min-width: 761px) { .dia-sel { display: none !important; } } /* a lista do dia escolhido é só para o calendário do telemóvel */
.aviso-linha { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.aviso-linha:first-of-type { border-top: 0; padding-top: 4px; }
.aviso-linha form { margin: 0; }
.push-resultados { list-style: none; margin: 10px 0 0; padding: 0; font-size: .85rem; display: flex; flex-direction: column; gap: 4px; }
.push-resultados .ok { color: var(--ok); } .push-resultados .erro { color: var(--err); overflow-wrap: anywhere; }
.push-ajuda { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.push-ajuda summary { cursor: pointer; color: var(--fg, #ddd); }
.push-ajuda ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* intro da app (ao abrir pelo ícone): logo, nome e uma linha em gradiente; sai em fade */
.splash { display: none; }
.splash.on { display: grid; place-items: center; position: fixed; inset: 0; z-index: 5000; background: #0a0a0a; transition: opacity .55s ease; }
.splash.sai { opacity: 0; pointer-events: none; }
.splash-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.splash img { width: 96px; height: auto; opacity: 0; transform: scale(.86); animation: splash-logo .9s cubic-bezier(.22,.9,.24,1) .1s forwards; }
.splash-nome { font: 700 1.05rem/1 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: .02em; color: #f4f4f4; opacity: 0; transform: translateY(6px); animation: splash-sobe .7s ease .55s forwards; }
.splash-linha { display: block; width: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #eb1471, #c418b6 55%, #a714eb); animation: splash-linha .8s cubic-bezier(.22,.9,.24,1) .75s forwards; }
@keyframes splash-logo { to { opacity: 1; transform: none; } }
@keyframes splash-sobe { to { opacity: 1; transform: none; } }
@keyframes splash-linha { to { width: 120px; } }

/* ---------- Início personalizável (widgets) ---------- */
.wg-topo { align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.wg-topo h1 { margin-bottom: 0; }
.wgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; align-items: start; }
.wg { position: relative; min-width: 0; }
.wg[data-tam="inteiro"] { grid-column: 1 / -1; }
.wg .hub-cab { margin-bottom: 12px; }
.wg .hub-numeros { margin-bottom: 0; }
.wg-ctl { display: none; align-items: center; gap: 6px; margin-bottom: 10px; padding: 6px 8px; border: 1px solid rgba(235,20,113,.45); border-radius: 12px; background: rgba(235,20,113,.08); }
.wgs.editar .wg-ctl { display: flex; }
.wgs.editar .wg-corpo { pointer-events: none; opacity: .55; max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.wg-pega { cursor: grab; touch-action: none; border: 0; background: transparent; color: #fff; font-size: 1.1rem; padding: 2px 6px; border-radius: 8px; line-height: 1; }
.wg-pega:active { cursor: grabbing; }
.wg-nome { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-tam, .wg-tirar { border: 1px solid var(--line-2); background: var(--panel); color: #fff; border-radius: 99px; font: 600 .75rem/1 var(--body, inherit); padding: 6px 10px; cursor: pointer; }
.wg-tirar { color: var(--err); }
.wg.a-mover { z-index: 3; }
.wg.a-mover .wg-ctl { box-shadow: 0 14px 30px rgba(0,0,0,.5); background: rgba(235,20,113,.2); }
.wg-novo { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px; border: 1.5px dashed rgba(255,255,255,.22); border-radius: 18px; background: transparent; color: var(--muted); cursor: pointer; text-align: center; font: inherit; transition: border-color .2s, background .2s; }
.wg-novo b { color: #fff; font-size: 1.05rem; }
.wg-novo:hover { border-color: var(--pink); background: rgba(235,20,113,.06); }
.wg-novo.vazio { padding: 70px 24px; }
.wg-novo.vazio b { font: 800 1.6rem/1.1 'Bricolage Grotesque', system-ui, sans-serif; background: linear-gradient(100deg, #eb1471, #c418b6 55%, #a714eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wg-novo.vazio span { max-width: 46ch; }
.wg-escolher { margin: auto; inset: 0; width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px); border: 1px solid var(--line-2); border-radius: 20px; background: var(--panel); color: var(--text, #f4f4f4); padding: 20px; }
.wg-escolher::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.wg-opcoes { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.wg-opcoes form { margin: 0; }
.wg-opcao { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); color: inherit; font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.wg-opcao:hover { border-color: rgba(235,20,113,.55); background: rgba(235,20,113,.07); }
.wg-opcao-ico { font-size: 1.4rem; width: 32px; text-align: center; flex: none; }
.wg-opcao b { display: block; font-size: .95rem; }
.wg-opcao small { color: var(--muted); font-size: .8rem; }
.wg-notas { width: 100%; min-height: 150px; resize: vertical; margin: 0; background: transparent; border: 0; padding: 0; font: inherit; color: inherit; line-height: 1.55; }
.wg-notas:focus { outline: none; }
.wg-notas-estado { font-size: .78rem; }
.wg-tools .tools { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (max-width: 860px) { .wgs { grid-template-columns: 1fr; } }

/* ---------- Ficha de cliente: contacto no topo + separadores ---------- */
.ficha-topo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; margin: 10px 0 22px; }
.ficha-quem h1 { margin-bottom: 4px; }
.ficha-empresa { color: var(--muted); font-size: 1.02rem; margin-bottom: 12px; }
.ficha-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ficha-pills .social-toggle { margin: 0; }
.ficha-contacto { padding: 14px 18px; display: flex; flex-direction: column; }
.fc-l { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.fc-l:first-child { border-top: 0; }
.fc-r { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.fc-v { min-width: 0; overflow-wrap: anywhere; }
.fc-a { display: flex; gap: 6px; }
.fc-btn { border: 1px solid var(--line-2); background: transparent; color: #ddd; border-radius: 8px; padding: 3px 8px; font-family: inherit; font-weight: 500; font-size: .75rem; line-height: 1.3; cursor: pointer; text-decoration: none; }
.fc-btn:hover { border-color: var(--pink); color: #fff; }
.fc-editar { align-self: flex-start; margin-top: 10px; }
.ficha-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; scrollbar-width: none; position: sticky; top: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 4; }
.ficha-tabs::-webkit-scrollbar { display: none; }
.ficha-tabs button { flex: none; border: 0; background: transparent; color: var(--muted); font-family: inherit; font-weight: 600; font-size: .92rem; line-height: 1; padding: 12px 14px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.ficha-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--pink); }
.ficha-tab { max-width: 900px; }
.ficha-tab > .card, .ficha-tab > form.card, .ficha-tab > details { margin-bottom: 16px; }
.ficha-h { margin: 22px 0 12px; }
.ficha-tab > .ficha-h:first-child, .ficha-tab > details + .ficha-h { margin-top: 6px; }
.ficha-novo { margin-bottom: 16px; }
.ficha-novo > summary { list-style: none; display: inline-flex; }
.ficha-novo > summary::-webkit-details-marker { display: none; }
.ficha-novo[open] > summary { margin-bottom: 12px; }
@media (max-width: 860px) { .ficha-topo { grid-template-columns: 1fr; } .fc-l { grid-template-columns: 96px minmax(0, 1fr) auto; } }
/* a gravar em segundo plano: só um indicador discreto (sem recarregar a página) */
html.rb-a-gravar, html.rb-a-gravar * { cursor: progress; }
html.rb-a-gravar body::after { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 6000; background: linear-gradient(90deg, transparent, #eb1471, #a714eb, transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: rb-a-gravar 1s linear infinite; }
@keyframes rb-a-gravar { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* ---------- clientes: etiquetas com cor, prioritários, notas internas, documentos arquivados ---------- */
.tag-pill { --tc: #9ca3af; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; vertical-align: middle;
  color: #fff; background: color-mix(in srgb, var(--tc) 22%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); }
.tag-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tc); }
.sw-destaque.on { border-color: rgba(234,179,8,.6); }
.sw-destaque.on .knob { background: linear-gradient(100deg, #eab308, #f97316); }
.destaque-pill { color: #fde68a; border-color: rgba(234,179,8,.5); background: rgba(234,179,8,.12); }
.tags-edit { position: relative; }
.tags-edit > summary { list-style: none; cursor: pointer; }
.tags-edit > summary::-webkit-details-marker { display: none; }
.tags-add { border-style: dashed; color: var(--muted); }
.tags-add:hover { color: #fff; border-color: var(--pink); }
.tags-caixa { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(320px, 86vw); margin: 0; box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); }
.tags-lista { display: grid; gap: 4px; margin-top: 10px; max-height: 220px; overflow: auto; }
.tags-op { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tags-op label.check { gap: 8px; }
.tags-x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; font: inherit; }
.tags-x:hover { color: var(--err); background: rgba(255,107,107,.1); }
.tags-cores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tags-cor { position: relative; margin: 0; cursor: pointer; }
.tags-cor input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tags-cor span { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 2px var(--panel), 0 0 0 2px transparent; transition: box-shadow .2s, transform .2s; }
.tags-cor input:checked + span { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px #fff; transform: scale(1.05); }
.tags-cor input:focus-visible + span { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--pink); }
.tags-filtro { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; }
.tags-f { --tc: var(--line-2); display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); color: #cfcfcf; text-decoration: none; font-size: .82rem; transition: border-color .2s, color .2s, background .2s; }
.tags-f i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.tags-f .muted { font-size: .75rem; }
.tags-f:hover { color: #fff; border-color: var(--line-2); }
.tags-f.on { color: #fff; border-color: color-mix(in srgb, var(--tc) 70%, transparent); background: color-mix(in srgb, var(--tc) 14%, transparent); }
tr.cli-prio td:first-child { box-shadow: inset 3px 0 0 #eab308; }
.cli-estrela { font-size: .85rem; }
.ficha-notas { margin: 0 0 22px; padding: 14px 18px; }
.ficha-notas textarea { margin-top: 8px; resize: vertical; min-height: 52px; background: transparent; }
.doc-acoes { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.doc-acoes form { margin: 0; }
.doc-arquivo { margin-top: 14px; padding: 12px 18px; }
.doc-arquivo > summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.doc-arq { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.doc-arq:first-of-type { margin-top: 10px; }
.ficha-topo { position: relative; z-index: 6; } /* a caixa das etiquetas abre por cima das notas */

/* mapa de conteúdos: do mês ou do pack */
.mapa-tipo { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.mapa-tipo a { display: flex; flex-direction: column; padding: 7px 14px; border-radius: 10px; color: #cfcfcf; text-decoration: none; font-weight: 600; font-size: .88rem; line-height: 1.25; transition: background .2s, color .2s; }
.mapa-tipo a small { font-weight: 400; font-size: .72rem; color: var(--muted); }
.mapa-tipo a:hover { color: #fff; }
.mapa-tipo a.on { background: rgba(235,20,113,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(235,20,113,.45); }
.mapa-btns { gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.mcal-mes { margin: 18px 0 8px; font-size: 1rem; }
.mcal-mes:first-child { margin-top: 0; }
.mi-pack { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 600; border: 1px solid currentColor; opacity: .7; }
@media print { .mi-pack { color: #6b21a8; } }

/* Claude ligado ao painel */
.claude-cartao { display: block; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.claude-cartao:hover { border-color: var(--pink); transform: translateY(-2px); }
.claude-pode { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.claude-pode li { display: flex; gap: 10px; align-items: baseline; }
.claude-passos { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 10px; }
.claude-url { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.claude-url code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: .85rem; }
.claude-autorizar { margin-bottom: 22px; }
/* nome do ficheiro por baixo da miniatura (toque = copiar) */
.mtile-nome { display: block; width: 100%; margin: 6px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: .74rem; line-height: 1.3; color: var(--muted);
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: copy; user-select: text; transition: color .2s; }
.mtile-nome:hover { color: #fff; }
.mtile-nome.copiado { color: var(--ok); }
.mtile-nome.copiado::before { content: '✓ Copiado · '; }
/* arrastar ficheiros para a caixa de carregar */
.uploader .drop { transition: border-color .2s, background .2s, transform .2s; }
.uploader .drop.sobre { border-color: var(--pink); border-style: solid; background: rgba(235,20,113,.08); transform: scale(1.01); }
.uploader .drop.sobre b::after { content: ' — larga aqui'; color: var(--pink); }

/* ---------- métricas da Meta (ficha do cliente e cartão do conteúdo; só o admin) ---------- */
.meta-filtro { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 6px; }
.meta-periodos { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.meta-datas { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.meta-datas.on { box-shadow: inset 0 0 0 1px rgba(235,20,113,.45); }
.meta-datas label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .82rem; color: var(--muted); }
.meta-datas input[type=date] { width: auto; padding: 5px 8px; font-size: .82rem; }
.meta-intervalo { margin: 0 0 12px; }
.meta-desde { margin: 8px 0 0; }
.meta-contas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 14px; align-items: start; }
.meta-contas > .card { margin: 0; }
.ficha-tab#metricas { max-width: none; } /* as duas contas lado a lado precisam da largura toda */
.meta-periodos a { padding: 6px 12px; border-radius: 9px; color: #cfcfcf; text-decoration: none; font-size: .85rem; font-weight: 600; }
.meta-periodos a:hover { color: #fff; }
.meta-periodos a.on { background: rgba(235,20,113,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(235,20,113,.45); }
.meta-conta h3 { font-size: 1.05rem; }
.meta-rede { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; vertical-align: middle; color: #fff; }
.meta-rede.ig { background: linear-gradient(100deg, #eb1471, #a714eb); }
.meta-rede.fb { background: #1877f2; }
.meta-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-top: 12px; }
.meta-card { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta-card .mc-r { font-size: .74rem; color: var(--muted); }
.meta-card b { font-size: 1.15rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.meta-card .mc-s { font-size: .72rem; color: var(--muted); }
.meta-graf-c { margin-top: 14px; }
.meta-graf { display: block; width: 100%; height: 170px; margin-top: 6px; }
.meta-graf .mg-b { fill: rgba(235,20,113,.55); }
.meta-graf .mg-b:hover { fill: #eb1471; }
.meta-graf .mg-l { fill: none; stroke: #c9a7ff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.meta-graf .mg-t { fill: var(--muted); font-size: 11px; }
.mg-leg-l { color: #c9a7ff; font-weight: 600; }
.meta-erro { color: var(--err); font-size: .85rem; margin: 8px 0 0; }
.meta-cand { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: .86rem; }
.meta-cand input { margin-top: 3px; }
.meta-post .meta-cards { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.meta-post { max-width: 980px; }
/* esta publicação contra a média da conta (separador Métricas do cartão) */
.mp-comp { margin-top: 18px; }
.mp-comp h3 { font-size: .95rem; margin: 0 0 10px; }
.mp-l { display: grid; grid-template-columns: 130px minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 5px 0; }
.mp-r { font-size: .82rem; color: var(--muted); }
.mp-b { display: grid; gap: 3px; }
.mp-b i, .mp-leg i { display: block; height: 9px; border-radius: 5px; }
.mp-b .mp-media { height: 5px; }
.mp-este { background: var(--grad); }
.mp-media { background: rgba(255,255,255,.22); }
.mp-v { text-align: right; white-space: nowrap; }
.mp-v small { font-weight: 700; margin-left: 4px; } .mp-v .up { color: var(--ok); } .mp-v .down { color: #ff8080; }
.mp-leg { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); margin: 8px 0 0; }
.mp-leg i { width: 18px; height: 6px; display: inline-block; } .mp-leg i + i, .mp-leg .mp-media { margin-left: 10px; }
@media (max-width: 600px) { .mp-l { grid-template-columns: 92px minmax(0, 1fr) 88px; gap: 8px; } }
.mp-h { font-size: .95rem; margin: 20px 0 8px; }
.mp-frase { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--pink); background: rgba(235,20,113,.07); border-radius: 0 10px 10px 0; font-size: .9rem; }
.mp-svg { display: block; width: 100%; height: auto; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 12px; }
.mp-svg .mp-grid { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.mp-svg .mp-ax { fill: var(--muted); font-size: 11px; font-family: Inter, sans-serif; }
.mp-svg .mp-ax.mp-hoje, .mp-svg .mp-pico { fill: #ff8cbf; font-weight: 700; font-size: 12px; font-family: Inter, sans-serif; }
.meta-filtro .meta-pdf { margin-left: auto; }
.meta-top-t { font-size: 1rem; margin: 22px 0 10px; }
.meta-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.meta-top-i { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; color: inherit; min-width: 0; transition: border-color .2s; }
.meta-top-i:hover { border-color: rgba(235,20,113,.5); }
.meta-top-i img, .meta-top-ph { width: 56px; height: 70px; border-radius: 8px; object-fit: cover; flex: none; background: linear-gradient(150deg, #eb1471, #a714eb); }
.meta-top-ph { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .8rem; }
.meta-top-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .84rem; }
.meta-top-txt b { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-top-txt .meta-rede { align-self: flex-start; }

/* publicar no Instagram / Facebook a partir do cartão do conteúdo (só o admin) */
.pub-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.pub-linha .pub-info { flex: 1 1 200px; min-width: 0; }
.pub-linha form { margin: 0; }
.pub-mudar > summary { list-style: none; }
.pub-mudar > summary::-webkit-details-marker { display: none; }
.pub-mudar[open] { flex-basis: 100%; order: 10; }
.pub-mudar[open] > summary { margin-bottom: 8px; }
.pub-mudar form { padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.pub-mudar form .row input { flex: 1 1 200px; margin: 0; }
.pub-mudar form .note { margin: 8px 0 0; }
.pub-erro { color: var(--err); font-size: .8rem; }
.pub-segue { font-size: .8rem; }
.pill.pub-ag { background: rgba(167,20,235,.16); color: #d9b6ff; }
.pill.pub-ok { background: rgba(34,197,94,.16); color: #86efac; }
.pill.pub-err { background: rgba(239,68,68,.16); color: #fca5a5; }
.pill.pub-can { opacity: .6; }
.pub-contas { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
.pub-passo { margin: 14px 0 0; font-size: .82rem; font-weight: 600; color: #fff; }
/* quando sai: só se confirma aqui (muda-se no Info) */
.pub-quando { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(235,20,113,.35); background: rgba(235,20,113,.06); font-size: .92rem; }
.pub-quando.mau { border-color: rgba(234,179,8,.45); background: rgba(234,179,8,.07); color: #fde68a; }
.pub-opcoes { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.pub-opcoes > summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: #fff; }
.pub-opcoes[open] > summary { margin-bottom: 4px; }
.pub-conta { align-items: flex-start; margin: 0; font-size: .86rem; }
.pub-conta.off { opacity: .55; }
/* trial reel: só para quem não segue a conta */
.pub-trial { display: flex; flex-direction: column; gap: 6px; }
.pub-trial .check { align-items: flex-start; margin: 0; font-size: .86rem; }
.pub-trial .check input { margin-top: 4px; }
.pill.pub-trial-pill { padding: 2px 8px; font-size: .66rem; background: rgba(234,179,8,.14); color: #fde68a; border-color: rgba(234,179,8,.35); }
.pub-conta input { margin-top: 4px; }
.linkish { background: none; border: 0; padding: 0; color: var(--pink); cursor: pointer; font: inherit; text-decoration: underline; }
.ficha-tab.cartao-info { max-width: 820px; }
.pub-aviso { color: #fde68a; margin: 4px 0 8px; }

/* recortar fotos para publicar (separador Publicar) */
.pub-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.pub-img { position: relative; border: 1px solid var(--line); border-radius: 10px; background: #0d0d0d; padding: 0; cursor: pointer; width: 92px; overflow: hidden; }
.pub-img:hover { border-color: rgba(235,20,113,.6); }
.pub-img-caixa { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; }
.pub-img-caixa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-img-tag { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.72); color: #fff; font-family: inherit; font-weight: 700; font-size: .66rem; line-height: 1; padding: 3px 6px; border-radius: 999px; }
.pub-img-tag.on { background: linear-gradient(100deg, #eb1471, #a714eb); }
.pub-img-tag.mau { background: #c4352b; }
.pub-img:has(.pub-img-tag.mau) { border-color: rgba(255,107,107,.7); }
.recorte-dlg { box-sizing: border-box; width: min(860px, 96vw); max-height: 96vh; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #141414; color: #fff; padding: 14px; }
.recorte-dlg::backdrop { background: rgba(0,0,0,.75); }
.rc-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rc-razoes { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.rc-razoes button { border: 1px solid var(--line); background: transparent; color: #d8d8d8; border-radius: 999px; padding: 6px 12px; font-family: inherit; font-weight: 600; font-size: .8rem; line-height: 1; cursor: pointer; }
.rc-razoes button.on { background: rgba(235,20,113,.16); color: #fff; border-color: rgba(235,20,113,.6); }
.rc-palco { position: relative; display: flex; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.rc-palco img { display: block; max-width: 100%; max-height: 62vh; pointer-events: none; }
.rc-caixa { position: absolute; left: 0; top: 0; box-shadow: 0 0 0 9999px rgba(0,0,0,.6); outline: 2px solid #fff; cursor: move; }
.rc-moldura { position: relative; line-height: 0; }
.rc-palco { overflow: hidden; }
.rc-grelha { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 33.333% 33.333%; background-position: -1px -1px; pointer-events: none; }
.rc-h { position: absolute; width: 22px; height: 22px; border: 3px solid #fff; background: transparent; }
.rc-nw { left: 0; top: 0; border-right: 0; border-bottom: 0; cursor: nwse-resize; }
.rc-ne { right: 0; top: 0; border-left: 0; border-bottom: 0; cursor: nesw-resize; }
.rc-sw { left: 0; bottom: 0; border-right: 0; border-top: 0; cursor: nesw-resize; }
.rc-se { right: 0; bottom: 0; border-left: 0; border-top: 0; cursor: nwse-resize; }
.rc-nota { margin: 10px 0 8px; }
.rc-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc-estado { font-size: .82rem; color: var(--muted); }

/* ---------- barra de baixo no telemóvel (como numa app) ---------- */
/* --tabbar: altura da barra sem a zona da barra de casa do iPhone; --casa: essa zona (viewport-fit=cover), no mínimo 8px */
:root { --tabbar: 62px; --casa: max(8px, env(safe-area-inset-bottom, 0px)); }
.tabbar, .tabbar-mais { display: none; }
@media (max-width: 760px) {
  .top .nav-topo { display: none; }
  .top { justify-content: center; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
  .brand span { display: inline; }
  body { padding-bottom: calc(var(--tabbar) + var(--casa) + 8px); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) var(--casa) max(6px, env(safe-area-inset-left, 0px)); background: rgba(12,12,12,.96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; padding: 6px 2px; border: 0; background: none; color: #9a9a9a;
    font-family: inherit; font-weight: 600; font-size: .74rem; line-height: 1.1; text-decoration: none; border-radius: 14px; cursor: pointer; min-width: 0;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; transition: transform .12s, background .12s; }
  .tabbar svg { width: 26px; height: 26px; }
  .tabbar a:active, .tabbar button:active { transform: scale(.92); background: rgba(255,255,255,.06); }
  .tabbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabbar .on { color: #fff; }
  .tabbar .on svg { color: var(--pink); }
  .tabbar-mais:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.55); }
  .tabbar-folha { position: absolute; left: 10px; right: 10px; bottom: calc(var(--tabbar) + var(--casa) + 10px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
    padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #161616; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
  .tabbar-folha a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 6px; border-radius: 12px; color: #ddd; text-decoration: none; font-size: .82rem; font-weight: 600; background: rgba(255,255,255,.03);
    touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .tabbar-folha svg { width: 26px; height: 26px; }
  .tabbar-folha a.on, .tabbar-folha a:active { background: rgba(235,20,113,.14); color: #fff; }
}

/* "Precisa de ti" no início do cliente: tudo o que espera por ele, no topo */
.tratar { margin: 0 0 14px; }
.tratar-t { font-size: 1rem; margin: 0 0 8px; }
.tratar-i { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-bottom: 8px; padding: 14px 16px; }
.tratar-i:hover { border-color: rgba(235,20,113,.6); }
.tratar-ico { font-size: 1.3rem; flex: none; }
.tratar-txt { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.4; }
.tratar-seta { flex: none; color: var(--pink); font-weight: 700; }
.aprovar-atalho { display: block; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(235,20,113,.5); background: rgba(235,20,113,.08); color: #fff; text-decoration: none; font-size: .9rem; }
.aprovar-atalho b { color: #ff7ab8; font-weight: 600; }
#aprovar { scroll-margin-top: 80px; }
.hub-mais > summary { list-style: none; cursor: pointer; padding: 12px 0 2px; color: var(--pink); font-weight: 600; font-size: .86rem; text-align: center; }
.hub-mais > summary::-webkit-details-marker { display: none; }
.hub-mais[open] > summary { display: none; }
@media (max-width: 760px) {
  /* o que flutua no fundo do ecrã fica por cima da barra de baixo */
  body:has(.tabbar) .toast, body:has(.tabbar) .rb-aviso { bottom: calc(var(--tabbar) + var(--casa) + 14px); }
  body:has(.tabbar) .selbar, body:has(.tabbar) .sel-flut { bottom: calc(var(--tabbar) + var(--casa) + 8px); }
  body.so-leitura:has(.tabbar)::before { bottom: calc(var(--tabbar) + var(--casa) + 10px); }
  /* etiquetas do cliente: no telemóvel abrem em baixo, a toda a largura (ao lado do nome saíam do ecrã) */
  .tags-caixa { position: fixed; top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; z-index: 70; }
  body:has(.tabbar) .tags-caixa { bottom: calc(var(--tabbar) + var(--casa) + 8px); }
}

/* ---------- o sino 🔔 (notificações) no topo ---------- */
.top .nav-topo { margin-left: auto; }
.sino { position: relative; flex: none; }
.sino-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: #cfcfcf; cursor: pointer; }
.sino-btn:hover, .sino-btn[aria-expanded="true"] { background: rgba(255,255,255,.08); color: #fff; }
.sino-n { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff;
  font-size: .66rem; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #0a0a0a; }
.sino-n[hidden] { display: none; }
.sino-painel { position: fixed; top: 70px; right: 16px; z-index: 60; width: min(400px, calc(100vw - 16px)); max-height: min(72vh, 580px); display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 16px; background: #151515; box-shadow: 0 24px 60px -16px rgba(0,0,0,.9); overflow: hidden; }
.sino-painel[hidden] { display: none; }
.sino-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.sino-acoes { display: flex; align-items: center; gap: 2px; }
.sino-acoes button, .sino-acoes a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: #cfcfcf;
  font-family: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; text-decoration: none; touch-action: manipulation; }
.sino-acoes button:hover, .sino-acoes a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sino-acoes [data-sino-limpar] { color: #ff8f8f; }
.sino-acoes [hidden] { display: none; }
.sino-lista { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.sino-i { display: grid; gap: 3px; padding: 11px 12px 11px 24px; border-radius: 12px; color: inherit; text-decoration: none; position: relative; }
.sino-i:hover { background: rgba(255,255,255,.05); }
.sino-i b { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.sino-txt { font-size: .82rem; color: #bdbdbd; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sino-quando { font-size: .72rem; color: var(--muted); }
.sino-i.nova { background: rgba(235,20,113,.07); }
.sino-i.nova::before { content: ''; position: absolute; left: 10px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.sino-vazio { padding: 22px 14px; color: var(--muted); font-size: .86rem; text-align: center; line-height: 1.5; }
.push-aparelhos { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: .84rem; }
.push-aparelhos li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; }
.push-aparelhos .ok { color: var(--ok); }
.push-aparelhos .err { color: var(--err); }
@media (max-width: 760px) {
  /* no telemóvel o sino fica à direita do topo e a lista abre a toda a largura, por baixo */
  .sino { position: absolute; right: max(8px, env(safe-area-inset-right, 0px)); top: 0; bottom: 0; display: flex; align-items: center; }
  .sino-painel { width: calc(100vw - 16px); max-height: calc(100dvh - 76px - var(--tabbar) - var(--casa) - 16px); }
  /* campos com letra abaixo de 16px fazem o iPhone dar zoom ao tocar (e depois a página anda para os lados) */
  input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 760px) {
  /* seletor de vista (Calendário, Revisão, Grid…): no telemóvel parte em linhas e mostra tudo, em vez de ficar cortado à direita */
  .toolbar .tabs { flex-wrap: wrap; overflow: visible; border-radius: 18px; gap: 2px; }
  .toolbar .tabs a { flex: 1 1 auto; padding: 9px 10px; }
  .toolbar .tabs.vistas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } /* as 6–7 vistas da equipa: grelha certinha */
  .toolbar .tabs.vistas a { padding: 9px 4px; overflow: hidden; text-overflow: ellipsis; }
}
#notificacoes { scroll-margin-top: 84px; }
.ag-fresco { margin: 8px 0 0; font-size: .78rem; text-align: right; } .ag-fresco a { color: var(--muted); }

/* mudar de página sem "piscar": o topo e a barra de baixo ficam parados, só o conteúdo muda (Safari 18.2+, Chrome 126+) */
@view-transition { navigation: auto; }
.top { view-transition-name: rb-topo; }
.tabbar { view-transition-name: rb-barra; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Atividade: histórico da equipa, por dia */
.ativ-dia { font-size: .95rem; margin: 18px 0 8px; }
.ativ-lista { padding: 4px 18px; }
.list .ativ-i { display: grid; grid-template-columns: 44px 22px 1fr; gap: 6px; align-items: baseline; justify-content: stretch; padding: 9px 0; text-align: left; }
.ativ-hora { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ativ-ico { font-size: .9rem; text-align: center; }
.ativ-txt { font-size: .9rem; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.ativ-txt a { color: inherit; text-decoration: none; }
.ativ-txt a:hover { text-decoration: underline; }
.ativ-email .ativ-txt { color: #fff; }
.meta-aviso { position: relative; padding-right: 44px; }
.aviso-fechar { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; font-size: .95rem; }
.aviso-fechar:hover { background: rgba(255,255,255,.1); }

/* ---------- projeto: secções que se ligam (seleção de fotos, tour 360, tráfego pago) ---------- */
.seccoes { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.seccoes legend { padding: 0 6px; font-size: .85rem; font-weight: 600; color: #fff; }
.sec-grupo { display: flex; flex-direction: column; gap: 6px; }
.sw-sec { position: relative; width: 100%; border-radius: 12px; padding: 8px 12px 8px 8px; margin: 0; }
.sw-sec input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; } /* sem tamanho: ficava da largura do ecrã e a página andava para os lados */
.sw-sec small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.sw-sec.sub { width: calc(100% - 26px); margin-left: 26px; }
.sw-sec input:checked + .knob { background: var(--grad); }
.sw-sec input:checked + .knob::after { transform: translateX(14px); }
.sw-sec input:indeterminate + .knob { background: rgba(235,20,113,.45); }
.sw-sec input:indeterminate + .knob::after { transform: translateX(7px); }
.sw-sec input:focus-visible + .knob { outline: 2px solid #c418b6; outline-offset: 2px; }
.sw-sec .knob { flex: none; }

/* ---------- projeto: tráfego pago (números, leads por dia e a lista das leads) ---------- */
.trafego-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.trafego-graf { display: flex; align-items: flex-end; gap: 2px; height: 90px; margin-top: 16px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.trafego-graf span { flex: 1; min-width: 2px; border-radius: 3px 3px 0 0; background: var(--grad); }
.trafego-camp { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; }
.leads { display: flex; flex-direction: column; gap: 6px; }
.lead-item { border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.lead-item > summary { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }
.lead-item > summary::-webkit-details-marker { display: none; }
.lead-quando { font-size: .8rem; color: var(--muted); }
.lead-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-tel { font-size: .85rem; color: #cfcfcf; white-space: nowrap; }
.lead-corpo { padding: 0 12px 12px; }
.lead-resp { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 4px 12px; margin: 0 0 8px; font-size: .88rem; }
.lead-resp dt { color: var(--muted); }
.lead-resp dd { margin: 0; }
.lead-num { font-weight: 600; letter-spacing: .01em; user-select: all; -webkit-user-select: all; }
/* filtros das leads: um por pergunta do formulário da campanha (mudam a lista logo) */
.lead-filtro { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; margin: 0 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.lead-filtro label { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; flex: 0 1 190px; font-size: .74rem; color: var(--muted); }
.lead-filtro label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-filtro select, .lead-filtro input { width: 100%; min-width: 0; padding: 7px 9px; font-size: .86rem; }
.lead-filtro .lead-filtro-txt { flex: 1 1 220px; }
.lead-filtro-n { margin: -2px 0 10px; }
.pill.lead-nova { color: #fde68a; border-color: rgba(234,179,8,.5); background: rgba(234,179,8,.12); }
.pill.lead-contactada { color: #bfdbfe; border-color: rgba(59,130,246,.5); }
.pill.lead-visita { color: #d49bff; border-color: rgba(167,20,235,.6); }
.pill.lead-fechada { color: #86efac; border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.12); }
.pill.lead-perdida, .pill.lead-sem_resposta, .pill.lead-mais_tarde { color: #a3a3a3; }
.pill.lead-mais_tarde { border-style: dashed; }
.pill.lead-comprador { color: #5eead4; border-color: rgba(20,184,166,.55); }
.pill.lead-vendedor { color: #fcd34d; border-color: rgba(245,158,11,.55); }
.pill.lead-arrendamento { color: #67e8f9; border-color: rgba(6,182,212,.55); }
.pill.lead-investidor { color: #c7d2fe; border-color: rgba(99,102,241,.6); }
.pill.lead-negociacao { color: #fdba74; border-color: rgba(249,115,22,.6); background: rgba(249,115,22,.1); }
@media (max-width: 560px) {
  .lead-item > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .lead-quando { grid-column: 1 / -1; }
  .lead-tel { display: none; }
  .lead-filtro label { flex: 1 1 calc(50% - 5px); }
  .lead-filtro select, .lead-filtro input { font-size: 16px; } /* menos não: o iPhone fazia zoom */
}

/* ---------- Admin › Espaço ---------- */
.tabela-espaco { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabela-espaco td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela-espaco td.num { text-align: right; white-space: nowrap; width: 1%; padding-right: 14px; }
.tabela-espaco td.barra { width: 32%; }
.tabela-espaco td.barra span { display: block; height: 8px; border-radius: 99px; background: var(--grad); }
@media (max-width: 560px) { .tabela-espaco td.barra { display: none; } }
.tabela-espaco.grandes td { padding: 9px 6px; }
.tabela-espaco tr.bloq { opacity: .6; }
.espaco-barra { position: sticky; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }

/* ---------- Automações (comentários e mensagens do Instagram e Facebook) ---------- */
.auto-preparar { border-color: rgba(235,20,113,.35); }
.auto-passos { margin: 0 0 0 20px; display: grid; gap: 10px; color: #ddd; font-size: .92rem; }
.auto-passos li.feito { color: var(--muted); }
.auto-passos form { margin-left: 8px; }
.auto-lista { display: grid; gap: 12px; }
.auto-item { margin: 0; padding: 18px 20px; border-left: 3px solid var(--line-2); }
.auto-item.on { border-left-color: var(--pink); }
.auto-item-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.auto-item h3 a { text-decoration: none; }
.auto-item h3 a:hover { text-decoration: underline; }
.auto-resumo { font-size: .86rem; margin-top: 4px; }
.auto-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--muted); margin-top: 10px; }
.auto-stats b { color: #fff; font-size: 1rem; }
.auto-interruptor { flex: none; width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.08); cursor: pointer; position: relative; padding: 0; }
.auto-interruptor i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #9a9a9a; transition: left .15s, background .15s; }
.auto-interruptor.on { background: var(--grad); border-color: transparent; }
.auto-interruptor.on i { left: 23px; background: #fff; }
@media (max-width: 640px) { .auto-link, .auto-fich { grid-template-columns: 1fr; } }
.auto-telefone { background: #050505; border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: grid; gap: 14px; font-size: .86rem; }
.auto-bolha { max-width: 85%; padding: 10px 13px; border-radius: 16px; background: rgba(255,255,255,.07); color: #eee; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.auto-bolha.out { justify-self: end; margin-left: auto; background: linear-gradient(100deg, rgba(235,20,113,.85), rgba(167,20,235,.85)); color: #fff; border-bottom-right-radius: 6px; }
.auto-bolha.in { border-bottom-left-radius: 6px; }
.auto-bolha.erro { background: rgba(255,107,107,.15); border: 1px solid rgba(255,107,107,.4); }
.auto-bolha a { color: inherit; }
.auto-bolha-q { display: block; font-size: .7rem; opacity: .7; margin-top: 4px; }
.auto-coms { display: grid; gap: 12px; }
.auto-com { margin: 0; padding: 16px 18px; }
.auto-com-top { display: flex; gap: 12px; align-items: flex-start; }
.auto-com-q { flex: 1; min-width: 0; font-size: .9rem; }
.auto-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem; }
.auto-com-txt { color: #eee; margin: 10px 0 0 48px; font-size: .96rem; }
.auto-com-txt.escondido { opacity: .5; }
.auto-com-resp { margin: 6px 0 0 62px; font-size: .86rem; }
.auto-com .note, .auto-responder, .auto-com-acoes { margin-left: 48px; }
.auto-responder { margin-top: 10px; }
.auto-responder summary { cursor: pointer; color: var(--pink); font-weight: 600; font-size: .88rem; }
.auto-com-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pill.auto-st-novo { background: var(--pink); border-color: var(--pink); color: #fff; }
.pill.auto-st-falhou { color: var(--err); border-color: rgba(255,107,107,.5); }
.pill.auto-st-respondido { color: var(--ok); border-color: rgba(62,207,142,.5); }
@media (max-width: 640px) { .auto-com-txt, .auto-com .note, .auto-responder, .auto-com-acoes { margin-left: 0; } .auto-com-resp { margin-left: 14px; } }
.auto-msgs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 18px; align-items: start; }
@media (max-width: 800px) { .auto-msgs { grid-template-columns: 1fr; } }
.auto-convs { padding: 8px; max-height: 70vh; overflow-y: auto; }
.auto-conv { display: flex; gap: 10px; padding: 10px; border-radius: 12px; text-decoration: none; }
.auto-conv:hover { background: rgba(255,255,255,.04); }
.auto-conv.on { background: rgba(255,255,255,.08); }
.auto-conv-t { display: grid; min-width: 0; font-size: .86rem; gap: 1px; }
.auto-conv-t .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auto-fio { display: grid; gap: 10px; margin: 14px 0; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.auto-escrever { display: flex; gap: 8px; align-items: flex-end; }
.auto-escrever textarea { flex: 1; }
.auto-coms, .auto-lista { grid-template-columns: minmax(0, 1fr); }
.auto-com-q, .auto-item-top > div { min-width: 0; }
@media (max-width: 640px) {
  .auto-msgs + *, .toolbar .tabs { max-width: 100%; }
  .toolbar .tabs { overflow-x: auto; scrollbar-width: none; }
  .toolbar .tabs a { white-space: nowrap; padding: 8px 12px; }
  .auto-com-top .pill { font-size: .66rem; padding: 3px 8px; }
}

/* ---------- automações: cliente, modelos e lista ---------- */
.auto-cliente { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.auto-cliente label { margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.auto-cliente select { width: auto; min-width: 240px; max-width: 100%; }
.auto-nova { max-width: 760px; }
.auto-modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.auto-modelo { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.02); color: #fff; font-size: .9rem; }
.auto-modelo:has(input:checked) { border-color: var(--pink); background: rgba(235,20,113,.08); }
.auto-modelo input { width: auto; margin-top: 3px; accent-color: var(--pink); }
.auto-modelo span { display: grid; gap: 4px; }
.auto-modelo small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.auto-fluxo-res { font-size: .86rem; margin-top: 6px; }
.auto-fluxo-q { color: #eee; }
.auto-abrir { margin-left: auto; color: var(--pink); text-decoration: none; font-weight: 600; }
.auto-relatorio { margin-left: auto; color: var(--muted); text-decoration: none; font-weight: 600; }
.auto-relatorio:hover { color: #fff; }
.auto-relatorio + .auto-abrir { margin-left: 0; }

/* ---------- editor das automações em mapa ---------- */
main.wrap:has(.fx) { max-width: none; padding: 12px clamp(10px, 2vw, 22px) 14px; }
body:has(.fx) .foot { display: none; }
.fx { display: flex; flex-direction: column; gap: 10px; height: calc(100dvh - 100px); min-height: 520px; }
.fx-barra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-barra select, .fx-barra input { width: auto; padding: 8px 11px; font-size: 14px; }
.fx-nome { flex: 1 1 200px; min-width: 160px; font-weight: 600; font-size: 15px !important; }
.fx-barra select { max-width: 230px; }
.fx-fim { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .8rem; white-space: nowrap; }
.fx-ligar { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: #ddd; }
.fx-estado { font-size: .8rem; color: var(--muted); min-width: 88px; text-align: right; }
.fx-estado.sujo { color: #f5a524; }
.fx-apagar { margin: 0; }
.fx-palco { position: relative; flex: 1; min-height: 300px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; touch-action: none; cursor: grab; outline: none;
  background-color: #0c0c0c; background-image: radial-gradient(rgba(255,255,255,.11) 1px, transparent 1.3px); -webkit-user-select: none; user-select: none; }
.fx-palco.a-andar { cursor: grabbing; }
.fx-mundo { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.fx-linhas { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.fx-lig { fill: none; stroke: rgba(255,255,255,.38); stroke-width: 2.2; pointer-events: none; }
.fx-lig.sel { stroke: var(--pink); stroke-width: 3; }
.fx-lig.temp { stroke: var(--pink); stroke-dasharray: 6 6; }
.fx-lig-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
.fx-lig-x { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--pink); color: #fff; font-size: .8rem; cursor: pointer; transform-origin: 13px 13px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.fx-no { position: absolute; left: 0; top: 0; width: 272px; background: #181818; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 14px 34px -18px rgba(0,0,0,.9); cursor: pointer; --c: #a714eb; }
.fx-no:hover { border-color: rgba(255,255,255,.32); }
.fx-no.sel { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 14px 34px -18px rgba(0,0,0,.9); }
.fx-no.erro { border-color: var(--err); }
.fx-no.alerta { border-color: rgba(245,165,36,.6); }
.fx-no.alvo { box-shadow: 0 0 0 3px var(--pink); }
.fx-no.a-mover { cursor: grabbing; box-shadow: 0 24px 50px -16px rgba(0,0,0,.95); z-index: 2; }
.fx-no-cab { display: flex; align-items: center; gap: 8px; padding: 11px 14px 0; font-size: .82rem; color: #fff; }
.fx-no-cab b { font-weight: 600; }
.fx-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); flex: none; }
.fx-no-av { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--err); color: #fff; font-size: .72rem; font-weight: 700; }
.fx-no.alerta .fx-no-av { background: #f5a524; color: #111; }
.fx-no-corpo { padding: 8px 14px 4px; font-size: .84rem; color: #ddd; line-height: 1.45; overflow-wrap: anywhere; }
.fx-no-corpo p { margin: 0 0 4px; color: inherit; }
.fx-q { color: var(--muted) !important; font-size: .8rem; }
.fx-sub { color: var(--muted) !important; font-size: .78rem; }
.fx-cit { font-style: italic; }
.fx-falta { color: #f5a524 !important; font-size: .8rem; }
.fx-chip { display: inline-block; padding: 2px 8px; margin: 0 2px 3px 0; border-radius: 999px; background: rgba(235,20,113,.16); color: #ff7ab4; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.fx-bolha { background: linear-gradient(100deg, rgba(235,20,113,.22), rgba(167,20,235,.22)); border-radius: 12px 12px 4px 12px; padding: 8px 10px; font-size: .8rem; color: #f2f2f2; }
.fx-anexos { display: block; margin-top: 6px; color: #ddd; font-size: .76rem; }
.fx-no-est { padding: 0 14px 4px; font-size: .72rem; color: var(--ok); }
.fx-saidas { padding: 4px 0 8px; display: grid; gap: 2px; }
.fx-saida { position: relative; display: flex; justify-content: flex-end; align-items: center; padding: 5px 22px 5px 14px; font-size: .76rem; color: #eee; }
.fx-saida:not(.base) span:first-child { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-saida.base { color: var(--muted); }
.fx-porta { position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #0c0c0c; border: 2px solid var(--c); cursor: crosshair; transition: transform .12s; }
.fx-porta:hover { transform: scale(1.3); }
.fx-porta.lig { background: var(--c); }
.fx-entrada { position: absolute; left: -8px; top: 17px; width: 16px; height: 16px; border-radius: 50%; background: #0c0c0c; border: 2px solid rgba(255,255,255,.5); }
.t-gatilho { --c: #eb1471; } .t-resposta { --c: #4ea1ff; } .t-mensagem { --c: #b44cf5; } .t-espera { --c: #f5a524; } .t-tempo { --c: #a3a3a3; } .t-avisar { --c: #3ecf8e; }
.fx-no.t-gatilho { background: linear-gradient(180deg, rgba(235,20,113,.12), #181818 60%); }
.fx-paleta { position: absolute; left: 12px; top: 12px; display: grid; gap: 4px; padding: 8px; background: rgba(20,20,20,.92); border: 1px solid var(--line); border-radius: 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 3; }
.fx-paleta-t { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 2px 6px 4px; }
.fx-paleta button, .fx-menu button { display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border: 0; border-radius: 10px; background: none; color: #fff; font: inherit; font-size: .82rem; cursor: pointer; text-align: left; }
.fx-paleta button:hover, .fx-menu button:hover { background: rgba(255,255,255,.07); }
.fx-zoom { position: absolute; right: 86px; bottom: 12px; display: flex; align-items: center; gap: 2px; padding: 4px; background: rgba(20,20,20,.92); border: 1px solid var(--line); border-radius: 12px; z-index: 3; }
.fx-zoom button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: #fff; font-size: 1.05rem; cursor: pointer; }
.fx-zoom button:hover { background: rgba(255,255,255,.08); }
.fx-zoom span { min-width: 46px; text-align: center; font-size: .76rem; color: var(--muted); }
.fx-palco:has(.fx-avisos:not([hidden])) .fx-dica { display: none; }
.fx-dica { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; font-size: .74rem; color: #777; pointer-events: none; white-space: nowrap; }
.fx-avisos { position: absolute; left: 12px; bottom: 12px; max-width: min(420px, calc(100% - 200px)); display: grid; gap: 4px; padding: 8px 12px; background: rgba(20,20,20,.95); border: 1px solid rgba(255,107,107,.35); border-radius: 12px; font-size: .78rem; z-index: 3; }
.fx-av-t { color: #fff !important; font-weight: 600; }
.fx-avisos:not(.aberto) .fx-av-l { display: none; }
.fx-av-l { display: grid; gap: 2px; max-height: 30vh; overflow-y: auto; }
.fx-avisos button { border: 0; background: none; padding: 2px 0; text-align: left; color: #f5a524; font: inherit; font-size: .78rem; cursor: pointer; }
.fx-avisos button.grave { color: var(--err); }
.fx-avisos button:hover { text-decoration: underline; }
.fx-menu { position: absolute; z-index: 5; width: 220px; display: grid; gap: 2px; padding: 8px; background: #1b1b1b; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.fx-menu b { font-size: .74rem; color: var(--muted); padding: 2px 6px 6px; font-weight: 600; }
.fx-painel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(400px, calc(100% - 20px)); overflow-y: auto; padding: 16px 18px 20px; background: #141414; border: 1px solid var(--line-2); border-radius: 16px; z-index: 4; box-shadow: -20px 0 50px -20px rgba(0,0,0,.8); cursor: default; -webkit-user-select: text; user-select: text; overscroll-behavior: contain; touch-action: pan-y; }
.fx-painel[hidden] { display: none; }
.fx-p-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 1rem; }
.fx-p-x { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; color: #fff; cursor: pointer; }
.fx-p-av { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(255,107,107,.08); }
.fx-p-av p { margin: 2px 0; font-size: .82rem; }
.fx-painel textarea, .fx-painel input, .fx-painel select { font-size: 15px; }
.fx-painel label { margin-top: 14px; }
.fx-painel .check { margin-top: 10px; }
.fx-painel .btn-sm { margin-top: 6px; }
.fx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; }
.fx-seg button { padding: 8px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: .84rem; cursor: pointer; }
.fx-seg button.on { background: var(--grad); color: #fff; font-weight: 600; }
.fx-linha { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.fx-linha input, .fx-linha select { flex: 1 1 120px; min-width: 0; }
.fx-resp { align-items: flex-start; flex-wrap: nowrap; }
.fx-resp textarea { flex: 1 1 auto; min-width: 0; min-height: 64px; resize: vertical; field-sizing: content; }
.fx-link input:first-child { flex-basis: 100%; }
.fx-del { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.fx-del:hover { color: var(--err); border-color: rgba(255,107,107,.4); }
.fx-cliq { flex-basis: 100%; margin: 0; font-size: .74rem; }
.fx-subir { display: inline-flex; cursor: pointer; }
.fx-cont { float: right; font-size: .72rem; color: var(--muted); }
.fx-cont.mais { color: var(--err); }
.fx-pv-botoes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.fx-pv-botoes span { padding: 6px 12px; border-radius: 999px; border: 1px solid #b44cf5; color: #e2b8ff; font-size: .8rem; }
.fx-p-acoes { display: flex; gap: 8px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  main.wrap:has(.fx) { padding: 8px 8px 6px; }
  .fx { height: calc(100dvh - 74px - var(--tabbar) - var(--casa)); min-height: 440px; gap: 8px; }
  .fx-barra { gap: 6px; }
  .fx-barra select, .fx-barra input { padding: 7px 10px; font-size: 16px; }
  .fx-voltar { padding: 7px 12px; }
  .fx-nome { flex-basis: 0; }
  .fx-barra select { flex: 1 1 40%; max-width: none; min-width: 0; }
  .fx-fim { flex: 1 1 auto; }
  .fx-fim input { width: 100%; min-width: 0; }
  .fx-ligar span { display: none; }
  .fx-estado { display: none; }
  .fx-paleta { top: auto; bottom: 8px; left: 8px; right: 76px; grid-auto-flow: column; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
  .fx-paleta-t { display: none; }
  .fx-paleta button { flex-direction: column; gap: 3px; font-size: .68rem; padding: 6px; text-align: center; white-space: nowrap; }
  .fx-zoom { bottom: auto; top: 8px; right: 8px; }
  .fx-dica { display: none; }
  .fx-avisos { bottom: auto; top: 8px; left: 8px; max-width: calc(100% - 180px); }
  .fx-painel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 72%; border-radius: 18px 18px 0 0; }
}

/* ---------- Agentes ao vivo (admin/agente.php) ---------- */
.ag-vivo { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--ok); border: 1px solid rgba(62,207,142,.35); padding: 5px 12px; border-radius: 999px; }
.ag-vivo i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: ag-pulsa 1.6s ease-in-out infinite; }
.ag-vivo.ag-off { color: var(--muted); border-color: var(--line-2); }
.ag-vivo.ag-off i { background: var(--muted); animation: none; }
@keyframes ag-pulsa { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.ag-equipa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
@media (max-width: 1000px) and (min-width: 641px) { .ag-equipa { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ag-equipa { grid-template-columns: 1fr; } }
.ag-quem { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; transition: border-color .3s, box-shadow .3s; min-width: 0; }
.ag-quem > div:last-child { min-width: 0; }
.ag-quem b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.1rem; }
.ag-estado { display: block; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: var(--panel-2); border: 1px solid var(--line-2); }
.ag-quem[data-agente="criador"].ag-ativo { border-color: rgba(167,20,235,.6); box-shadow: 0 0 0 1px rgba(167,20,235,.25), 0 10px 30px -14px rgba(167,20,235,.8); }
.ag-quem[data-agente="pesquisador"].ag-ativo { border-color: rgba(91,184,255,.6); box-shadow: 0 0 0 1px rgba(91,184,255,.25), 0 10px 30px -14px rgba(91,184,255,.8); }
.ag-quem[data-agente="diretor"].ag-ativo { border-color: rgba(235,20,113,.6); box-shadow: 0 0 0 1px rgba(235,20,113,.25), 0 10px 30px -14px rgba(235,20,113,.8); }
.ag-quem.ag-ativo .ag-avatar { animation: ag-respira 2s ease-in-out infinite; }
.ag-quem.ag-ativo .ag-estado { color: var(--text); }
@keyframes ag-respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.ag-trab { padding: 0; overflow: hidden; }
.ag-trab > summary { list-style: none; cursor: pointer; padding: 18px 22px; }
.ag-trab > summary::-webkit-details-marker { display: none; }
.ag-trab[open] > summary { border-bottom: 1px solid var(--line); }
.ag-trab-decorrer { border-color: rgba(167,20,235,.45); }
.ag-trab-espera { border-color: rgba(235,20,113,.55); }
.ag-trab-erro { border-color: rgba(255,107,107,.5); }
.ag-cab { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.ag-cab h3 { margin: 2px 0 4px; }
.ag-quando { font-size: .8rem; }
.ag-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-est { display: inline-flex; align-items: center; gap: 6px; }
.ag-est i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ag-pulsa 1.6s ease-in-out infinite; }
.ag-est-vivo { color: #d79bff; border-color: rgba(167,20,235,.55); }
.ag-est-espera { color: #fff; background: var(--pink); border-color: var(--pink); }
.ag-est-ok, .ag-ver-ok { color: var(--ok); border-color: rgba(62,207,142,.5); }
.ag-est-erro, .ag-ver-corrigir { color: #ffb14a; border-color: rgba(255,177,74,.5); }
.ag-lista { list-style: none; padding: 8px 22px 16px; margin: 0; }
.ag-ev { display: grid; grid-template-columns: 42px 30px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); align-items: start; }
.ag-ev:last-child { border-bottom: 0; }
.ag-hora { color: var(--muted); font-size: .78rem; padding-top: 3px; font-variant-numeric: tabular-nums; }
.ag-mini { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; background: var(--panel-2); border: 1px solid var(--line-2); }
.ag-criador .ag-mini { border-color: rgba(167,20,235,.5); }
.ag-diretor .ag-mini { border-color: rgba(235,20,113,.5); }
.ag-pesquisador .ag-mini { border-color: rgba(91,184,255,.5); }
.ag-pesquisador .ag-nome { color: #8fd0ff; }
.ag-scout .ag-mini { border-color: rgba(255,177,74,.5); }
.ag-scout .ag-nome { color: #ffc46b; }
.ag-quem[data-agente="scout"].ag-ativo { border-color: rgba(255,177,74,.6); box-shadow: 0 0 0 1px rgba(255,177,74,.25), 0 10px 30px -14px rgba(255,177,74,.8); }
.ag-corpo { font-size: .92rem; color: #ddd; padding-top: 3px; }
.ag-nome { font-weight: 600; margin-right: 2px; }
.ag-criador .ag-nome { color: #d79bff; }
.ag-diretor .ag-nome { color: #ff7ab5; }
.ag-t-correcao .ag-txt::before { content: '↺ '; color: #d79bff; }
.ag-t-pergunta .ag-corpo { color: #fff; }
.ag-t-pergunta .ag-txt { background: rgba(235,20,113,.14); border-radius: 6px; padding: 1px 6px; }
.ag-t-erro .ag-txt { color: var(--err); }
.ag-t-fim .ag-txt { color: var(--ok); }
.ag-acoes { display: flex; gap: 12px; margin-top: 4px; }
.ag-acoes:empty { display: none; }
.ag-cartao, .ag-det-btn { font-size: .8rem; color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; cursor: pointer; }
.ag-cartao:hover, .ag-det-btn:hover { color: #fff; }
.ag-det { font-size: .9rem; line-height: 1.55; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-top: 8px; max-height: 520px; overflow: auto; color: #ddd; }
.ag-det h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1rem; color: #fff; margin: 14px 0 6px; }
.ag-det h4:first-child { margin-top: 0; }
.ag-det p { color: #ddd; margin: 4px 0; }
.ag-det ul { margin: 4px 0 8px 18px; }
.ag-det li { margin: 3px 0; }
.ag-det a { color: #ff7ab5; }
.ag-pdf { display: inline-block; margin-top: 8px; font-size: .82rem; color: var(--muted); text-decoration: none; }
.ag-pdf:hover { color: #fff; }
.ag-novo { animation: ag-entra .5s ease-out; }
@keyframes ag-entra { from { opacity: 0; transform: translateY(-6px); background: rgba(167,20,235,.12); } to { opacity: 1; transform: none; background: transparent; } }
.ag-escreve { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.ag-escreve i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: ag-salta 1.2s infinite; }
.ag-escreve i:nth-child(2) { animation-delay: .15s; }
.ag-escreve i:nth-child(3) { animation-delay: .3s; }
@keyframes ag-salta { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.ag-ligacao > summary { cursor: pointer; }
.pill.selo-diretor { color: var(--ok); border-color: rgba(62,207,142,.5); text-decoration: none; }
.pill.selo-corrigir { color: #ffb14a; border-color: rgba(255,177,74,.5); }
@media (prefers-reduced-motion: reduce) { .ag-vivo i, .ag-est i, .ag-quem.ag-ativo .ag-avatar, .ag-novo, .ag-escreve i { animation: none; } }
.ag-vivo-dot { width: 8px; height: 8px; border-radius: 50%; background: #c56bff; animation: ag-pulsa 1.6s ease-in-out infinite; }
