/* Painel de social media — LCA Corretora de Seguros
   Identidade: preto azulado #101820, azul #174A78, ciano #00D1FF, verde limão. Montserrat. */

:root {
  --ink: #101820;
  --ink-2: #16222d;
  --ink-3: #1d2b38;
  --navy: #174a78;
  --cyan: #00d1ff;
  --cyan-ink: #0079a8;     /* ciano legível sobre claro */
  --lime: #bdec8f;
  --lime-ink: #3d7a14;
  --grad: linear-gradient(90deg, #00b7ee 0%, #00cfc9 48%, #d0e638 100%);

  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --line: #dbe2ea;
  --line-2: #e8edf2;
  --text: #101820;
  --muted: #5a6a7c;
  --muted-2: #8594a5;

  --ok: #2f8a3c;
  --ok-bg: #e9f7e2;
  --warn: #b26a00;
  --warn-bg: #fff2dc;
  --info: #0b6f9c;
  --info-bg: #e0f6fd;
  --danger: #b3261e;

  --r: 6px;
  --r-lg: 10px;
  --shadow: 0 18px 50px rgba(16, 24, 32, .12);
  --shadow-sm: 0 2px 10px rgba(16, 24, 32, .06);
  --font: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan-ink);
}
.eyebrow--light { color: var(--cyan); }
.accent-line { height: 3px; background: var(--grad); }

/* ---------- topo ---------- */
.top { background: var(--ink); color: #fff; }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 92px; }
.brand img { height: 58px; width: auto; }
.top__title { display: flex; flex-direction: column; gap: 2px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.top__title strong { font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.monthnav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.monthnav select {
  appearance: none;
  background: var(--ink-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300d1ff' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: var(--r);
  padding: 10px 40px 10px 16px;
  font-weight: 600;
  font-size: 15px;
  min-width: 210px;
}
.monthnav select option { color: var(--text); background: #fff; }

.iconbtn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--ink-3);
  color: #fff;
  border-radius: var(--r);
  padding: 0;
}
.iconbtn:hover { border-color: var(--cyan); }
.iconbtn:disabled { opacity: .35; cursor: default; border-color: rgba(255,255,255,.12); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn--light { background: var(--surface); border-color: var(--line); color: var(--text); }
.iconbtn--light:hover { border-color: var(--navy); }
.iconbtn--dark { background: rgba(16,24,32,.7); }

/* ---------- barra de visão ---------- */
.viewbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.viewbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; }
.seg button {
  border: 0; background: transparent; padding: 8px 18px; border-radius: 4px;
  font-weight: 600; font-size: 14px; color: var(--muted);
}
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.admintools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admintag {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--lime); padding: 5px 10px; border-radius: 3px;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 14px; color: var(--text);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--navy); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--navy); border-color: var(--navy); }
.btn--ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn--ok:hover { background: #276f31; border-color: #276f31; }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--danger); }
.btn--danger:hover { border-color: var(--danger); }
.btn--lg { min-height: 50px; padding: 12px 22px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.linkbtn:hover { color: var(--text); }

/* ---------- conteúdo ---------- */
main.wrap { flex: 1; padding-top: 32px; padding-bottom: 48px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.intro h1 { margin: 6px 0 4px; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.intro p { margin: 0; color: var(--muted); max-width: 560px; }
.stats { display: flex; gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats div { padding: 12px 20px; border-left: 1px solid var(--line-2); min-width: 110px; }
.stats div:first-child { border-left: 0; }
.stats dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats dd small { font-size: 14px; color: var(--muted); font-weight: 600; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- calendário ---------- */
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.cal__head, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__head div {
  padding: 12px 14px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.day { min-height: 128px; padding: 10px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; position: relative; }
.day:nth-child(7n) { border-right: 0; }
.day--out { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(16,24,32,.02) 8px 9px); }
.day--today .day__n { background: var(--ink); color: #fff; }
.day__top { display: flex; align-items: center; justify-content: space-between; }
.day__n { font-size: 13px; font-weight: 700; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.day--out .day__n { color: var(--muted-2); font-weight: 500; }
.day__add { opacity: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px dashed var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; padding: 0; }
.day__add svg { width: 14px; height: 14px; }
.day:hover .day__add, .day__add:focus-visible { opacity: 1; }
.day__add:hover { border-color: var(--navy); color: var(--navy); }

.chip {
  display: block; width: 100%; text-align: left; padding: 0; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #b9c6d3; }
.chip__thumb { position: relative; aspect-ratio: 4 / 5; background: var(--ink-2); overflow: hidden; }
.chip__thumb img, .chip__thumb video { width: 100%; height: 100%; object-fit: cover; }
.chip__fmt {
  position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(16,24,32,.78); color: #fff; padding: 3px 7px; border-radius: 3px; backdrop-filter: blur(4px);
}
.chip__fmt svg { width: 11px; height: 11px; }
.chip__play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.chip__play span { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.chip__play svg { width: 14px; height: 14px; margin-left: 2px; }
.chip__body { padding: 7px 9px 9px; display: flex; flex-direction: column; gap: 4px; }
.chip__title { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(120% 90% at 20% 0%, #1d3a59 0%, var(--ink) 70%); color: rgba(255,255,255,.55); }
.placeholder svg { width: 28px; height: 28px; }
.placeholder::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); opacity: .8; }

/* status */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status--rascunho { color: var(--muted-2); }
.status--producao { color: #6b7a8c; }
.status--aprovacao { color: var(--info); }
.status--ajuste { color: var(--warn); }
.status--aprovado { color: var(--ok); }
.status--agendado { color: var(--navy); }
.status--publicado { color: var(--ink); }
.pill { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.pill.status--aprovacao { background: var(--info-bg); }
.pill.status--ajuste { background: var(--warn-bg); }
.pill.status--aprovado { background: var(--ok-bg); }

/* agenda (mobile) */
.agenda { display: none; flex-direction: column; gap: 18px; }
.agenda__day h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.arow { display: grid; grid-template-columns: 76px 1fr; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; align-items: center; }
.arow + .arow { margin-top: 8px; }
.arow .chip__thumb { aspect-ratio: 4/5; border-radius: var(--r); }
.arow__title { font-weight: 600; font-size: 14px; line-height: 1.3; margin: 4px 0; }
.arow__meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- estados ---------- */
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 56px 24px; text-align: center; color: var(--muted); }
.empty h2 { margin: 0 0 6px; color: var(--text); font-size: 20px; }
.empty p { margin: 0 auto 18px; max-width: 460px; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }
.loading::before { content: ''; display: block; width: 28px; height: 28px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--cyan-ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- painel avançado ---------- */
.strategy { background: var(--ink); color: #e9eef3; border-radius: var(--r-lg); padding: 28px 32px; margin-bottom: 28px; position: relative; overflow: hidden; }
.strategy::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }
.strategy h2 { margin: 6px 0 12px; font-size: 22px; color: #fff; }
.strategy__text { white-space: pre-wrap; max-width: 860px; color: #c7d2dd; }
.strategy__actions { position: absolute; right: 20px; top: 20px; }
.strategy .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.2); }

.overview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 28px; overflow-x: auto; }
.overview table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.overview th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.overview td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.overview tr:last-child td { border-bottom: 0; }
.overview a { color: var(--text); font-weight: 600; text-decoration: none; }
.overview a:hover { color: var(--navy); text-decoration: underline; }
.overview .num { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fchip { border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.dossier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 24px; overflow: hidden; scroll-margin-top: 90px; }
.dossier__head { display: flex; gap: 18px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.datebox { width: 62px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; flex: none; }
.datebox b { display: block; font-size: 24px; line-height: 1.1; padding: 6px 0 2px; font-variant-numeric: tabular-nums; }
.datebox span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 3px 0; }
.dossier__titles { flex: 1; min-width: 220px; }
.dossier__titles h3 { margin: 2px 0 6px; font-size: 19px; line-height: 1.25; }
.metarow { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.metarow .fmt { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text); }
.fmt { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text); }
.fmt svg { width: 14px; height: 14px; color: var(--cyan-ink); flex: none; }
.dossier__actions { display: flex; gap: 8px; }
.dossier__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.dossier__media { padding: 22px; border-right: 1px solid var(--line-2); background: var(--surface-2); }
.dossier__text { padding: 22px 26px; display: flex; flex-direction: column; gap: 22px; }
.block h4 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-ink); display: flex; align-items: center; gap: 8px; }
.block h4::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.prose--script { font-size: 14.5px; line-height: 1.7; max-height: 520px; overflow: auto; padding-right: 6px; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.why > div { padding: 20px 22px; border-right: 1px solid var(--line-2); }
.why > div:last-child { border-right: 0; }
.why .block h4 { color: var(--navy); }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ref { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); background: var(--surface); }
a.ref:hover { border-color: var(--navy); }
.ref__src { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-ink); display: flex; align-items: center; gap: 6px; }
.ref__src svg { width: 12px; height: 12px; }
.ref__note { font-size: 13.5px; }
.ref__url { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-mini { color: var(--muted-2); font-size: 13px; font-style: italic; }

/* mosaico */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 118px; gap: 8px; }
.mosaic__tile { position: relative; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.mosaic__tile:first-child { grid-column: span 2; grid-row: span 3; }
.mosaic__tile img, .mosaic__tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mosaic__tile:hover img, .mosaic__tile:hover video { transform: scale(1.03); }
.mosaic__tag { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; background: rgba(16,24,32,.78); color: #fff; }
.mosaic__tag--peca { background: var(--lime); color: var(--ink); }
.mosaic__file { display: grid; place-items: center; height: 100%; color: #fff; font-size: 12px; padding: 8px; text-align: center; }
.mosaic--single { grid-auto-rows: auto; }
.mosaic--single .mosaic__tile:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4/5; max-height: 560px; }
.mosaic--single .mosaic__tile:first-child video, .mosaic--single .mosaic__tile:first-child img { object-fit: contain; background: #000; }
.mosaic__empty { display: grid; place-items: center; text-align: center; height: 100%; min-height: 240px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted-2); font-size: 13px; padding: 20px; }

/* conversa */
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13.5px; }
.msg--agencia { background: #eef6fb; border-color: #d4e8f3; }
.msg__head { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.msg__head b { color: var(--text); font-weight: 700; }
.msg__tag { font-weight: 700; }
.msg__tag--aprovar { color: var(--ok); }
.msg__tag--ajuste { color: var(--warn); }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .linkbtn { font-size: 11px; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(16,24,32,.55); animation: fade .2s ease; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%);
  background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column;
  animation: slide .25s cubic-bezier(.2,.8,.2,1);
}
.drawer--wide .drawer__panel { width: min(980px, 100%); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer__body { overflow-y: auto; flex: 1; }
.dhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.dhead h2 { margin: 0; font-size: 15px; font-weight: 600; }
.dsec { padding: 20px 22px; border-bottom: 1px solid var(--line-2); }
.dsec:last-child { border-bottom: 0; }
.dtitle { margin: 8px 0 0; font-size: 22px; line-height: 1.25; }

.viewer { background: #0b1117; }
.viewer__main { aspect-ratio: 4/5; max-height: 62vh; width: 100%; display: grid; place-items: center; }
.viewer__main img, .viewer__main video { width: 100%; height: 100%; object-fit: contain; }
.viewer__strip { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #0b1117; }
.viewer__strip button { flex: none; width: 54px; height: 66px; border: 2px solid transparent; border-radius: 4px; padding: 0; overflow: hidden; background: var(--ink-3); opacity: .6; }
.viewer__strip button[aria-current="true"] { border-color: var(--cyan); opacity: 1; }
.viewer__strip img, .viewer__strip video { width: 100%; height: 100%; object-fit: cover; }
.viewer__note { color: #9fb0c0; font-size: 12px; padding: 8px 14px 12px; }

.approve { display: flex; flex-direction: column; gap: 12px; }
.approve__row { display: flex; gap: 10px; flex-wrap: wrap; }
.approve__row .btn { flex: 1; min-width: 180px; }
.done { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--ok-bg); color: #1f5e28; font-size: 14px; }
.done--warn { background: var(--warn-bg); color: #7a4a00; }
.done svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* formulários */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.field small { color: var(--muted-2); font-size: 12px; }
.input, .field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  padding: 10px 12px; font-size: 14px;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.field textarea.tall { min-height: 260px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 3px rgba(0, 209, 255, .18); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.edhint { font-size: 12.5px; color: var(--muted); margin: -4px 0 0; }
.refedit { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: start; }
.refedit + .refedit { margin-top: 8px; }
.refedit textarea { min-height: 42px !important; }

.dropzone { border: 1.5px dashed #b8c5d2; border-radius: var(--r-lg); padding: 16px; background: var(--surface-2); transition: border-color .15s, background .15s; }
.dropzone.is-over { border-color: var(--cyan-ink); background: var(--info-bg); }
.dropzone__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dropzone__head b { font-size: 14px; }
.dropzone__head small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.mitem { position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.mitem img, .mitem video { width: 100%; height: 100%; object-fit: cover; }
.mitem__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 4px; gap: 2px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.mitem__bar button { width: 26px; height: 26px; border: 0; border-radius: 4px; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; padding: 0; }
.mitem__bar button:hover { background: #fff; }
.mitem__bar svg { width: 13px; height: 13px; }
.mitem__name { position: absolute; top: 0; left: 0; right: 0; font-size: 10px; color: #fff; padding: 4px 6px; background: linear-gradient(rgba(0,0,0,.6), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upl { aspect-ratio: 4/5; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; font-size: 11px; color: var(--muted); gap: 6px; overflow: hidden; }
.upl__bar { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.upl__bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.upl--err { border-color: var(--danger); color: var(--danger); }

.dfoot { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 14px 22px; display: flex; gap: 10px; justify-content: space-between; align-items: center; z-index: 2; }
.dfoot__right { display: flex; gap: 10px; }

/* modal pequeno */
.modal { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.modal h2 { margin: 0; font-size: 20px; }
.modal p { margin: 0; color: var(--muted); }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 0; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(8,12,16,.94); display: grid; place-items: center; animation: fade .2s ease; }
.lightbox__stage { width: min(92vw, 1100px); height: 86vh; display: grid; place-items: center; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #9fb0c0; font-size: 13px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; max-width: calc(100% - 32px); }
.toast--err { background: var(--danger); }

/* ---------- rodapé ---------- */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 28px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .dossier__grid { grid-template-columns: 1fr; }
  .dossier__media { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .top__title { display: none; }
}
@media (max-width: 860px) {
  .cal { display: none; }
  .agenda { display: flex; }
  .legend { display: none; }
  .stats { width: 100%; }
  .stats div { flex: 1; min-width: 0; padding: 10px 12px; }
  .stats dd { font-size: 20px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top__in { min-height: 72px; gap: 12px; }
  .brand img { height: 42px; }
  .monthnav select { min-width: 0; width: 182px; padding: 9px 30px 9px 12px; font-size: 13.5px; background-position: right 10px center; }
  .monthnav { gap: 4px; }
  .monthnav .iconbtn { width: 36px; height: 36px; }
  .intro h1 { font-size: 24px; }
  .stats dt { font-size: 10px; letter-spacing: .04em; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .refedit { grid-template-columns: 1fr 40px; }
  .refedit textarea { grid-column: 1; }
  .strategy { padding: 22px 18px; }
  .strategy__actions { position: static; margin-top: 14px; }
  .dossier__head { padding: 16px; }
  .dossier__media, .dossier__text { padding: 16px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic__tile:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .seg button { padding: 8px 12px; font-size: 13px; }
  .viewbar { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- troca de painel (calendário | anúncios) ---------- */
.apps { display: flex; gap: 6px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.apps[hidden] { display: none; }
.apps a { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: var(--r-lg, 10px); color: rgba(255,255,255,.58); text-decoration: none; transition: background .15s, color .15s; }
.apps a strong { font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.apps a .eyebrow { color: rgba(0,209,255,.55); }
.apps a:hover { color: #fff; background: rgba(255,255,255,.05); }
.apps a[aria-current="page"] { color: #fff; background: var(--ink-3); box-shadow: inset 0 -2px 0 var(--lime); }
.apps a[aria-current="page"] .eyebrow { color: var(--cyan); }
.apps a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 1080px) { .apps a .eyebrow { display: none; } .apps a { justify-content: center; } }
@media (max-width: 640px) {
  .top__in:has(.apps:not([hidden])) { flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .apps { order: 3; width: 100%; padding: 8px 0 10px; border-left: 0; gap: 4px; }
  .apps a { flex: 1; align-items: center; padding: 9px 10px; min-height: 44px; }
  .apps a strong { font-size: 14.5px; }
}

/* ---------- entrada do painel ---------- */
.gate { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.gate::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.gate[hidden] { display: none; }
.gate__card { width: min(400px, 100%); background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); padding: 32px 28px; display: grid; gap: 18px; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.gate__card img { height: 58px; width: auto; }
.gate__card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.gate__card p { margin: 0; color: #a9b8c7; font-size: 14.5px; line-height: 1.55; }
.gate__card .field > span { color: #a9b8c7; }
.gate__card .field input { background: var(--ink-3); border-color: rgba(255,255,255,.14); color: #fff; min-height: 48px; font-size: 16px; }
.gate__card .err { color: #ff9b94; min-height: 0; }
.gate__card .err:empty { display: none; }
.gate__btn { background: var(--cyan); border-color: var(--cyan); color: var(--ink); font-weight: 700; }
.gate__btn:hover { filter: brightness(1.08); }
