/* MC DIGITAL — sistema visual
   Layout: barra superior fina + coluna de trabalho larga; agenda agrupada por dia, como uma pauta de redação. */
:root {
  --bg: #EBEBE6;
  --surface: #FAFAF7;
  --surface-2: #F2F2ED;
  --ink: #2B2B2B;
  --muted: #6B6A63;
  --line: #D9D8CF;
  --accent: #2B2B2B;        /* grafite: ações (identidade MC Digital) */
  --accent-ink: #EBEBE6;
  --gold: #7A6200;          /* dourado: detalhes, títulos pequenos, links */
  --accent-soft: #E4E1D3;
  /* estados (semânticos, separados do acento) */
  --s-draft: #6B7280;     --s-draft-bg: #E4E3DC;
  --s-wait: #8A5A00;      --s-wait-bg: #FCF1D9;
  --s-ok: #17703F;        --s-ok-bg: #E2F4E9;
  --s-change: #B23C17;    --s-change-bg: #FCE7DF;
  --s-pub: #2B2B2B;       --s-pub-bg: #E4E1D3;
  --s-fail: #B4232F;      --s-fail-bg: #FBE3E5;
  --shadow: 0 1px 2px rgba(20,22,27,.06), 0 8px 24px rgba(20,22,27,.06);
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A18; --surface: #232320; --surface-2: #2A2A27; --ink: #EBEBE6; --muted: #A6A499; --line: #3A3934;
    --accent: #E6E1CF; --accent-ink: #1A1A18; --gold: #D6BC6A; --accent-soft: #34312A;
    --s-draft: #A3A9B4; --s-draft-bg: #23272F;
    --s-wait: #F1BE5C;  --s-wait-bg: #33280F;
    --s-ok: #6DD39A;    --s-ok-bg: #12301F;
    --s-change: #FF9873; --s-change-bg: #3A1D12;
    --s-pub: #D6BC6A;   --s-pub-bg: #34312A;
    --s-fail: #FF7C86;  --s-fail-bg: #3A161B;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--gold); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--body); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ── barra superior */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .04em; display: flex; align-items: center; gap: 7px; }
.brand-mark { display: inline-grid; place-items: center; height: 26px; padding: 0 7px; border-radius: 7px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.tabs { display: flex; gap: 4px; }
.tab { border: 0; background: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; cursor: pointer; }
.tab[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.spacer { flex: 1; }

.page { max-width: 1120px; margin: 0 auto; padding: 28px 20px 80px; display: grid; gap: 22px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; }
.page-head .spacer { min-width: 0; }

/* ── botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 9px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.danger { color: var(--s-fail); }
.btn.wa { background: #1F8F4E; border-color: #1F8F4E; color: #fff; }
.btn.sm { padding: 6px 10px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: progress; }

/* ── resumo por status */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-align: left; cursor: pointer; display: grid; gap: 2px; }
.sum b { font-size: 26px; font-family: var(--display); font-variant-numeric: tabular-nums; line-height: 1.1; }
.sum[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.sum .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── pílulas de status */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-draft { color: var(--s-draft); background: var(--s-draft-bg); }
.st-pending_approval { color: var(--s-wait); background: var(--s-wait-bg); }
.st-approved { color: var(--s-ok); background: var(--s-ok-bg); }
.st-changes_requested { color: var(--s-change); background: var(--s-change-bg); }
.st-publishing, .st-published { color: var(--s-pub); background: var(--s-pub-bg); }
.st-failed { color: var(--s-fail); background: var(--s-fail-bg); }

/* ── agenda */
.day { display: grid; gap: 8px; }
.day-head { display: flex; align-items: baseline; gap: 10px; padding: 0 2px; }
.day-head h2 { font-size: 16px; }
.day-head .rule { flex: 1; height: 1px; background: var(--line); }
.row { display: grid; grid-template-columns: 64px 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 10px 10px; cursor: pointer; text-align: left; width: 100%; }
.row:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.row .thumb { width: 64px; height: 80px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.row .time { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.row .main { min-width: 0; display: grid; gap: 3px; }
.row .client { font-weight: 700; }
.row .cap { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .note { font-size: 13.5px; color: var(--s-change); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .note.fail { color: var(--s-fail); }
.row .side { display: grid; justify-items: end; gap: 6px; }
.late { font-size: 12px; color: var(--s-fail); font-weight: 600; }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 36px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty h3 { font-size: 18px; }

/* ── clientes */
.grid-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card h3 { font-size: 19px; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; align-items: center; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.linkbox { display: flex; gap: 6px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 10px; min-width: 0; }
.linkbox code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ig-ok { color: var(--s-ok); font-weight: 700; }
.ig-warn { color: var(--s-wait); font-weight: 700; }
.ig-off { color: var(--s-fail); font-weight: 700; }

/* ── formulários / painel lateral */
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
input:not([type]), input[type=number], input[type=month], input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=time], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; min-height: 42px;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.counter { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.counter.bad { color: var(--s-fail); }

.scrim { position: fixed; inset: 0; background: rgba(10,12,16,.45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); z-index: 41; display: grid; grid-template-rows: auto 1fr auto; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
.drawer-head { padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer-head h2 { font-size: 19px; flex: 1; }
.drawer-body { overflow-y: auto; padding: 20px; display: grid; gap: 18px; align-content: start; }
.drawer-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.drop { border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, var(--line)); border-radius: var(--r); background: var(--surface); padding: 22px; text-align: center; cursor: pointer; display: grid; gap: 6px; justify-items: center; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.preview { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: start; }
.preview img { width: 140px; border-radius: 10px; border: 1px solid var(--line); }

.feedback { background: var(--s-change-bg); color: var(--ink); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; }
.feedback b { color: var(--s-change); }
.errorbox { background: var(--s-fail-bg); border-radius: 10px; padding: 12px 14px; color: var(--ink); }
.errorbox b { color: var(--s-fail); }
.banner { background: var(--s-wait-bg); border-radius: var(--r); padding: 12px 16px; font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.err { background: var(--s-fail); color: #fff; }

/* ── login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login form { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.login h1 { font-size: 24px; }

@media (max-width: 640px) {
  .page { padding-top: 20px; }
  .page-head h1 { font-size: 24px; }
  .row { grid-template-columns: 52px minmax(0, 1fr); padding: 10px; }
  .row .thumb { width: 52px; height: 65px; grid-row: span 2; }
  .row .time { font-size: 13px; }
  .row .main { grid-column: 2; }
  .row .side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; }
  .two { grid-template-columns: 1fr; }
  .preview { grid-template-columns: 96px minmax(0, 1fr); }
  .preview img { width: 96px; }
  .topbar-in { gap: 8px 10px; flex-wrap: wrap; padding: 10px 16px; }
  .tabs { order: 3; width: 100%; }
  .tab { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .drawer { animation: slide .18s ease-out; }
  @keyframes slide { from { transform: translateX(24px); opacity: .6; } }
}

/* ── novas etapas do fluxo */
.st-idea { color: #6B4FC4; background: #EEE9FB; }
.st-internal_review { color: #0F6E7A; background: #DFF3F5; }
@media (prefers-color-scheme: dark) {
  .st-idea { color: #B9A5FF; background: #2A2347; }
  .st-internal_review { color: #7FD6E0; background: #12343A; }
}
.thumb-empty { display: grid; place-items: center; background: var(--surface-2); border: 1px dashed var(--line); font-size: 20px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick .chip:disabled { cursor: default; opacity: 1; }
.pick .chip:disabled[aria-pressed="false"] { display: none; }

/* ── IA */
.btn.ai { justify-self: start; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); color: var(--accent); }
.ai-panel { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.ai-row { display: flex; gap: 8px; }
.ai-row input { flex: 1; min-width: 0; }
.ai-results { display: grid; gap: 10px; }
.ai-opt { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.ai-opt .btn { justify-self: start; }

/* ── calendário */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; transition: opacity .15s; }
.cal.loading { opacity: .5; }
.cal-wd { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.cal-day { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 118px; padding: 6px; display: grid; align-content: start; gap: 4px; cursor: pointer; min-width: 0; }
.cal-day:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.cal-day.out { background: transparent; border-style: dashed; }
.cal-day.out .cal-num { color: var(--muted); }
.cal-day.today .cal-num { background: var(--accent); color: var(--accent-ink); border-radius: 999px; }
.cal-day.sel { box-shadow: 0 0 0 2px var(--accent) inset; }
.cal-num { font-weight: 700; font-size: 13.5px; justify-self: start; min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 6px; font-variant-numeric: tabular-nums; }
.cal-list { display: grid; gap: 4px; min-width: 0; }
.cal-chip { display: flex; align-items: center; gap: 5px; border: 0; border-radius: 6px; padding: 3px 5px; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; min-width: 0; }
.cal-chip .mono { font-size: 11px; flex: none; }
.cal-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-more { border: 0; background: none; color: var(--muted); font-size: 12px; text-align: left; padding: 0 5px; cursor: pointer; }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; }
.cal-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor !important; display: block; }

/* ── fluxo (quadro) */
.page.wide { max-width: 1480px; }
.board-wrap { overflow-x: auto; padding-bottom: 8px; margin: 0 -4px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; padding: 0 4px; min-width: min-content; }
.col { background: color-mix(in srgb, var(--surface-2) 70%, var(--bg)); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; grid-template-rows: auto 1fr; gap: 10px; min-height: 340px; align-content: start; }
.col.over { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.col-head { display: flex; align-items: center; gap: 8px; }
.col-body { display: grid; gap: 8px; align-content: start; }
.col-empty { margin: 0; font-size: 13px; text-align: center; padding: 18px 6px; border: 1px dashed var(--line); border-radius: 10px; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; cursor: grab; }
.bcard:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.bcard.dragging { opacity: .5; }
.bcard .btn { justify-self: start; }
.bcard-top { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; }
.bthumb { width: 44px; height: 55px; border-radius: 6px; object-fit: cover; }
.bcard-txt { display: grid; gap: 2px; min-width: 0; font-size: 13.5px; }
.bcard-txt b { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@media (max-width: 640px) {
  .tab { font-size: 13px; padding: 7px 4px; }
  .cal { gap: 3px; }
  .cal-wd { padding: 0; text-align: center; font-size: 10px; letter-spacing: 0; }
  .cal-day { min-height: 52px; padding: 4px 2px; justify-items: center; }
  .cal-num { font-size: 12.5px; justify-self: center; min-width: 22px; height: 22px; padding: 0 4px; }
  .cal-list { display: none; }
  .cal-dots { display: flex; justify-content: center; }
  .hint-desk { display: none; }
  .board { grid-auto-columns: 78vw; }
}

/* ── calendário: modos Miniaturas / Lista */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg-btn { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.cal.mode-thumbs .cal-day { min-height: 150px; }
.cal-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.cal-thumbs:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 70%; }
.cal-tile { position: relative; border: 0; padding: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; cursor: pointer; background: var(--surface-2); display: block; }
.cal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-tile-empty { display: grid; place-items: center; height: 100%; padding: 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.2; overflow: hidden; }
.cal-tile-time { position: absolute; left: 3px; bottom: 3px; font-size: 10px; font-weight: 500; padding: 1px 4px; border-radius: 4px; background: rgba(10,12,16,.72); color: #fff; }
.cal-tile-dot { position: absolute; right: 4px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.cal-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-tile-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,12,16,.6); color: #fff; font-weight: 800; font-size: 14px; }
.cal-tile.st-draft, .cal-tile.st-idea, .cal-tile.st-internal_review, .cal-tile.st-pending_approval, .cal-tile.st-approved,
.cal-tile.st-changes_requested, .cal-tile.st-published, .cal-tile.st-publishing, .cal-tile.st-failed { background-color: var(--surface-2); }

.cal-chip { background: var(--surface-2); color: var(--ink); }
.cal-chip-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cal-chip.st-idea .cal-chip-dot { background: #6B4FC4; }
.cal-chip.st-draft .cal-chip-dot { background: var(--s-draft); }
.cal-chip.st-internal_review .cal-chip-dot { background: #0F6E7A; }
.cal-chip.st-pending_approval .cal-chip-dot { background: var(--s-wait); }
.cal-chip.st-changes_requested .cal-chip-dot { background: var(--s-change); }
.cal-chip.st-approved .cal-chip-dot { background: var(--s-ok); }
.cal-chip.st-publishing .cal-chip-dot, .cal-chip.st-published .cal-chip-dot { background: var(--s-pub); }
.cal-chip.st-failed .cal-chip-dot { background: var(--s-fail); }
.cal-mini { display: none; }

@media (max-width: 640px) {
  .cal-thumbs { display: none; }
  .cal.mode-thumbs .cal-day { min-height: 74px; }
  .cal.mode-thumbs .cal-dots { display: none; }
  .cal.mode-thumbs .cal-mini { display: block; position: relative; width: 30px; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; justify-self: center; }
  .cal-mini img, .cal-mini .thumb-empty { width: 100%; height: 100%; object-fit: cover; display: block; font-size: 0; }
  .cal-badge { position: absolute; right: 0; bottom: 0; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 4px 0 4px 0; background: var(--accent); color: var(--accent-ink); font-size: 9.5px; font-weight: 800; display: grid; place-items: center; }
  .page-head .actions { width: 100%; }
  .seg { margin-right: auto; }
}

/* ── pasta privada do cliente */
.back { text-decoration: none; display: inline-block; margin-bottom: 4px; }
.back:hover { color: var(--accent); }
.lock { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.folder-tabs { justify-self: start; align-self: start; flex-wrap: wrap; }
.seg-n { margin-left: 6px; font-size: 11.5px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--line); color: var(--ink); display: inline-grid; place-items: center; }
.seg-n.bad { background: var(--s-fail); color: #fff; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-2.tight { gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; }
.stat-v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat.bad .stat-v { color: var(--s-fail); }
.stat.good .stat-v { color: var(--s-ok); }
.months { display: grid; gap: 6px; }
.month-row { display: grid; grid-template-columns: 170px 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.month-row.is-late { border-color: color-mix(in srgb, var(--s-fail) 45%, var(--line)); }
.month-name { font-weight: 700; }
.month-sub { font-size: 13.5px; min-width: 0; }
.month-act { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.dropzone.over { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.files-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.files-head .month-in { width: auto; flex: none; min-height: 36px; padding: 6px 10px; }
.files { display: grid; gap: 6px; }
.files-month { margin-top: 8px; }
.files-empty { margin: 0; font-size: 14px; padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }
.file { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.file-ic { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 600; background: var(--s-draft-bg); color: var(--s-draft); }
.file-ic.ic-pdf { background: var(--s-fail-bg); color: var(--s-fail); }
.file-ic.ic-img { background: var(--s-pub-bg); color: var(--s-pub); }
.file-ic.ic-xls { background: var(--s-ok-bg); color: var(--s-ok); }
.file-main { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.file-name { font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name:hover { color: var(--accent); text-decoration: underline; }
.file-act { display: flex; gap: 4px; }
.tpl { min-height: 380px; font-size: 13px; line-height: 1.55; }
.tpl-fields .chip { font-size: 12px; padding: 4px 10px; font-weight: 600; }
@media (max-width: 640px) {
  .grid-2, .stats { grid-template-columns: minmax(0, 1fr); }
  .month-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .month-sub { grid-column: 1 / -1; }
  .month-act { grid-column: 1 / -1; justify-content: flex-start; }
  .file { grid-template-columns: 34px minmax(0, 1fr); }
  .file-ic { width: 34px; height: 34px; }
  .file-act { grid-column: 2; }
  .lock { order: -1; }
}

/* ── Canva */
.canva-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn.canva { display: inline-flex; align-items: center; gap: 7px; }
.canva-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #00C4CC, #7D2AE8); }

/* ── relatórios do Instagram */
.reports { display: grid; gap: 10px; }
.report-row { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.report-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-top > :first-child { flex: 1; }
.rmetrics { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rmetric { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; display: grid; gap: 1px; min-width: 0; }
.rmetric b { font-size: 16px; font-variant-numeric: tabular-nums; }
.rmetric span { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .rmetrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rmetrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── formatos: carrossel e Reels */
.media-box { display: grid; gap: 8px; }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.car-item { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.car-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-n { position: absolute; left: 4px; top: 4px; background: rgba(10,12,16,.75); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; }
.car-act { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(transparent, rgba(10,12,16,.7)); }
.car-act button { border: 0; background: rgba(255,255,255,.92); color: #2B2B2B; border-radius: 6px; width: 26px; height: 24px; font-weight: 800; cursor: pointer; font-size: 12px; }
.car-act button:disabled { opacity: .35; cursor: default; }
.car-add { aspect-ratio: 4 / 5; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; display: grid; place-content: center; gap: 2px; color: var(--muted); font: inherit; font-size: 12.5px; }
.car-add b { font-size: 26px; color: var(--accent); line-height: 1; }
.reel-wrap { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 14px; align-items: start; }
.reel-video { width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; object-fit: contain; }
.reel-side { display: grid; gap: 8px; align-content: start; }
.reel-side .btn { justify-self: start; }
.reel-cover { width: 96px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; }
.reel-side input[type=range] { width: 100%; display: block; margin-top: 4px; }
.type-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--ink); color: var(--bg); }
@media (max-width: 640px) { .reel-wrap { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); } }

/* ── aprovação: Reels, carrossel e prévia do feed */
.ap-reel, .ap-car { position: relative; background: #000; }
.ap-reel video, .ap-reel img { display: block; width: 100%; max-height: 78vh; aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.ap-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ap-track::-webkit-scrollbar { display: none; }
.ap-track img { flex: 0 0 100%; width: 100%; scroll-snap-align: center; display: block; height: auto; }
.ap-badge { position: absolute; right: 10px; top: 10px; background: rgba(10,12,16,.72); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.ap-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.ap-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.ap-dots span.on { background: #fff; }
.g-wrap { display: grid; gap: 10px; }
.g-wrap > .btn { justify-self: start; }
.g-card { gap: 10px; }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.g-tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2); }
.g-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-tile.new { outline: 3px solid var(--accent); outline-offset: -3px; }
.g-tile.new.approved { outline-color: var(--s-ok); }
.g-tile.new.changes_requested { outline-color: var(--s-change); }
.g-tag { position: absolute; left: 4px; bottom: 4px; background: rgba(10,12,16,.75); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 999px; }

/* ── financeiro com parcelas e cobranças */
.month-block { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.month-block.is-late { border-color: color-mix(in srgb, var(--s-fail) 45%, var(--line)); }
.month-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.parcels { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.parcel { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.parcel.is-late { border-color: color-mix(in srgb, var(--s-fail) 40%, var(--line)); }
.parcel-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.parcel-sub { font-size: 12.5px; }
.parcel-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.parts { display: grid; gap: 6px; }
.part-row { display: grid; grid-template-columns: 28px 1fr 1.4fr; gap: 8px; align-items: center; font-size: 13.5px; }
.part-row label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.part-row input { min-height: 36px; padding: 6px 8px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.charges { border-color: color-mix(in srgb, var(--s-wait) 45%, var(--line)); }
.charge-list { display: grid; gap: 6px; }
.charge { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.charge.is-late { border-color: color-mix(in srgb, var(--s-fail) 40%, var(--line)); }

/* ── contador de entregas */
.deliv { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4px 14px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.deliv .eyebrow { grid-column: 1 / -1; font-size: 10.5px; }
.deliv.big { background: var(--surface); grid-template-columns: 1fr 1fr; font-size: 14px; }
.dl { display: grid; gap: 4px; min-width: 0; }
.dl-top b { font-size: 15px; font-variant-numeric: tabular-nums; }
.deliv.big .dl-top b { font-size: 18px; }
.dl-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dl-bar span { display: block; height: 100%; background: var(--s-ok); border-radius: inherit; }
.dl.over .dl-bar span { background: var(--s-wait); }
.dl.over .dl-top b { color: var(--s-wait); }

/* ── histórico, marca e pedidos */
.events { display: grid; gap: 6px; }
.event { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.event img, .event .thumb-empty { width: 44px; height: 55px; border-radius: 6px; object-fit: cover; font-size: 12px; }
.ev-cap { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px 4px 4px; }
.swatch input[type=color] { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.swatch code { font-size: 12px; }
.linkish { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; padding: 2px 4px; }
.reqs { display: grid; gap: 8px; }
.req { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.req.done { opacity: .65; }
.req-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req-text { margin: 0; white-space: pre-wrap; font-size: 14.5px; }
.req-files { display: flex; flex-wrap: wrap; gap: 6px; }
.best { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.best .label { font-size: 13px; font-weight: 700; margin-right: 2px; }
.best .hint { flex-basis: 100%; font-size: 12px; }
.g-tile.new.current { outline: 3px solid var(--s-wait); }
.story-img { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 10px; background: #000; }
.type-badge.story { background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); color: #fff; }
.deliv:has(> .dl:nth-of-type(3)) { grid-template-columns: repeat(3, 1fr); }

/* ── Início */
.brand { text-decoration: none; color: inherit; }
.home-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--ink); color: var(--bg); border-radius: 20px; padding: 24px 26px; position: relative; overflow: hidden; }
.home-hero::after { content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%); pointer-events: none; }
.home-mark { width: 64px; height: 64px; border-radius: 16px; background: var(--bg); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 24px; letter-spacing: .02em; }
.home-hello h1 { font-size: clamp(24px, 4vw, 34px); margin: 2px 0 4px; }
.home-hello .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); text-transform: none; letter-spacing: .04em; }
.home-hello p { margin: 0; color: color-mix(in srgb, var(--bg) 75%, transparent); }
.home-quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; position: relative; z-index: 1; }
.home-quick .btn:not(.primary) { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.home-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat.warn .stat-v { color: var(--s-wait); }
.home-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.home-col { display: grid; gap: 16px; }
.home-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.home-card-head a { font-size: 13px; text-decoration: none; }
.home-today { display: grid; gap: 6px; }
.ht { display: grid; grid-template-columns: 40px 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 6px 6px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.ht-img { width: 40px; height: 50px; border-radius: 6px; object-fit: cover; }
.ht-main { min-width: 0; display: grid; }
.ht-cap { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alerts { display: grid; gap: 6px; }
.alert { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.alert:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.al-main { display: grid; min-width: 0; font-size: 14px; }
.al-main .muted { font-size: 12.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--s-draft); }
.dot.bad { background: var(--s-fail); } .dot.warn { background: var(--s-wait); } .dot.good { background: var(--s-ok); }
.dtable { display: grid; gap: 4px; }
.drow { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 1fr; gap: 8px; align-items: center; font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.drow:last-child { border-bottom: 0; }
.drow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pace { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pace.ok { color: var(--s-ok); } .pace.bad { color: var(--s-fail); }
.pp-items { display: grid; gap: 6px; }
.pp-item { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 6px; align-items: center; }
.pp-item input { min-height: 38px; padding: 7px 10px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1fr); } .home-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .home-hero { grid-template-columns: auto 1fr; } .home-quick { grid-column: 1 / -1; justify-content: flex-start; } .home-mark { width: 48px; height: 48px; font-size: 18px; } .ht { grid-template-columns: 40px 44px minmax(0, 1fr); } .ht .pill { display: none; } .drow { grid-template-columns: 1fr 1fr; } .drow b { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .tabs { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 7px 8px; }
}
.more-row { justify-self: start; }
.pix-box { display: grid; gap: 12px; }
.pix-qr { width: 220px; height: 220px; justify-self: center; image-rendering: pixelated; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--line); }

/* ── atualização 9: datas, notificações, segurança, e-mails, backup, planejamento, banco de mídia, modelos */
.cal-date { font-size: 11px; line-height: 1.25; font-weight: 600; color: var(--s-wait); background: var(--s-wait-bg); border-radius: 6px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; justify-self: start; }
.cal-date.major { color: var(--s-change); background: var(--s-change-bg); }
@media (max-width: 640px) { .cal-day .cal-date { font-size: 0; padding: 0; width: 6px; height: 6px; border-radius: 99px; background: var(--s-change); justify-self: end; margin-top: -26px; } }
.dates-list { display: grid; gap: 6px; }
.date-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.date-day { font-weight: 600; color: var(--muted); font-size: 13px; }
.date-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.push-prompt { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(90deg, var(--accent-soft), var(--surface) 60%); }
.push-ico { font-size: 26px; line-height: 1; padding-top: 2px; }
.steps-ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
input.otp { width: 140px; letter-spacing: .25em; font-size: 18px; text-align: center; }
.login input.otp { width: 100%; }
.qr { justify-self: start; background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--line); min-height: 40px; }
.qr img, .qr canvas { display: block; }
.toggles { display: grid; gap: 8px; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.mail-log { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.backup-list { display: grid; gap: 6px; }
.backup-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.plan-out { display: grid; gap: 12px; }
.plan-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 10px 0; }
.spinner { width: 18px; height: 18px; border-radius: 99px; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan-list { display: grid; gap: 8px; }
.plan-item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; opacity: .6; }
.plan-item.on { opacity: 1; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--surface); }
.plan-item input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.plan-main { display: grid; gap: 5px; min-width: 0; font-size: 14px; }
.plan-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; }
.plan-idea { font-size: 13.5px; line-height: 1.5; }
.plan-main summary { cursor: pointer; font-size: 13px; }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.bank-item { margin: 0; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 4 / 5; }
.bank-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bank-item figcaption { position: absolute; inset: auto 0 0 0; display: flex; gap: 6px; justify-content: space-between; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.bank-item figcaption .btn.ghost { background: rgba(255,255,255,.9); color: #2B2B2B; }
.snip-bar { display: grid; gap: 6px; }
.snip-bar:empty { display: none; }
.snip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.snip-row .label { margin-right: 2px; }
.snip-row .linkish { font-size: 13px; color: var(--accent); }
.snip-save { display: flex; gap: 8px; }
.snip-save[hidden] { display: none; }
.snip-name { flex: 1; min-width: 0; }
.snip-list { display: grid; gap: 8px; }
.snip-item { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.snip-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.snip-head .spacer { flex: 1; }
.snip-text { margin: 0; white-space: pre-line; font-size: 13.5px; color: var(--muted); }
.snip-text.tags { color: var(--accent); font-size: 12.5px; }

.fb-audio { display: grid; gap: 6px; }
.fb-audio audio { width: 100%; max-width: 420px; height: 40px; }

/* ── Fluxo no estilo Trello */
.tboard-wrap { overflow-x: auto; margin: 0; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #2B2B2B 0%, #5B3FC4 55%, #8A3FB0 100%); min-height: 560px; scrollbar-color: rgba(255,255,255,.5) transparent; }
.tboard { display: flex; gap: 12px; align-items: flex-start; min-width: min-content; }
.tlist { width: 272px; flex: none; background: #F1F2F4; border-radius: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 260px); min-height: 80px; box-shadow: 0 1px 1px rgba(9,30,66,.25); }
.tlist.over { box-shadow: 0 0 0 3px #fff, 0 6px 18px rgba(0,0,0,.25); }
.tlist-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 6px 14px; }
.tlist-head h2 { font-size: 14px; font-weight: 700; margin: 0; flex: 1; color: #172B4D; }
.tlist-dot { width: 10px; height: 10px; border-radius: 3px; background: currentColor; flex: none; }
.tlist-n { font-size: 12px; font-weight: 700; color: #44546F; background: rgba(9,30,66,.08); border-radius: 99px; padding: 1px 8px; }
.tlist-cards { display: flex; flex-direction: column; gap: 8px; padding: 4px 8px 4px; overflow-y: auto; min-height: 8px; }
.tlist-foot { font-size: 12.5px; padding: 8px 14px 12px; color: #626F86; }
.tcard { background: #fff; color: #172B4D; border-radius: 8px; box-shadow: 0 1px 1px rgba(9,30,66,.25), 0 0 1px rgba(9,30,66,.31); cursor: pointer; overflow: hidden; outline: none; transition: box-shadow .12s, transform .12s; }
.tcard:hover, .tcard:focus-visible { box-shadow: 0 0 0 2px #7A6200, 0 4px 8px rgba(9,30,66,.15); }
.tcard.dragging { opacity: .45; transform: rotate(2deg); }
.tcard.failed { box-shadow: 0 0 0 2px #F87168; }
.tcover { background: #DCDFE4; height: 150px; }
.tcover.tall { height: 190px; }
.tcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard-in { padding: 8px 10px 8px; display: grid; gap: 6px; }
.tlabels { display: flex; flex-wrap: wrap; gap: 4px; }
.tlabel { font-size: 11.5px; font-weight: 700; line-height: 16px; padding: 0 8px; border-radius: 4px; background: var(--lc, #DCDFE4); color: #172B4D; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlabel.fmt { background: #DCDFE4; color: #44546F; }
.tlabel.ia { background: #DFD8FD; color: #5E4DB2; }
.ttitle { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.tnote { font-size: 12.5px; background: #FFF3EB; color: #A54800; border-radius: 6px; padding: 6px 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tnote.fail { background: #FFECEB; color: #AE2E24; }
.tbadges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #44546F; }
.tbadge { display: inline-flex; align-items: center; border-radius: 4px; padding: 1px 4px; }
.tbadge.late { background: #FFECEB; color: #AE2E24; font-weight: 600; }
.tbadge.soon { background: #FFF7D6; color: #7F5F01; font-weight: 600; }
.tbadge.ok { background: #DCFFF1; color: #216E4E; font-weight: 600; }
.tavatar { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--lc); color: #172B4D; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: none; }
.tcard-act { display: flex; gap: 6px; border-top: 1px solid #EBECF0; padding-top: 6px; margin-top: 2px; }
.tnext { border: 0; background: none; color: #7A6200; font: inherit; font-size: 12.5px; font-weight: 600; padding: 2px 0; cursor: pointer; }
.tnext:hover { text-decoration: underline; }
.tadd { padding: 4px 8px 8px; }
.tadd-btn { width: 100%; text-align: left; border: 0; background: none; color: #44546F; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 8px; border-radius: 8px; cursor: pointer; }
.tadd-btn:hover { background: rgba(9,30,66,.08); color: #172B4D; }
.tadd-form { display: grid; gap: 8px; }
.tadd-ta { resize: none; border: 0; border-radius: 8px; box-shadow: 0 1px 1px rgba(9,30,66,.25); padding: 8px 10px; font: inherit; font-size: 14px; background: #fff; color: #172B4D; min-height: 64px; }
.tadd-sel { font-size: 13px; padding: 6px 8px; border-radius: 6px; background: #fff; color: #172B4D; }
.tadd-act { display: flex; align-items: center; gap: 8px; }
.tadd-x { border: 0; background: none; font-size: 18px; color: #44546F; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.tadd-x:hover { background: rgba(9,30,66,.08); }
.tsearch { width: 200px; }
@media (prefers-color-scheme: dark) {
  .tboard-wrap { background: linear-gradient(135deg, #1C2B6B 0%, #2E2366 55%, #3F1F55 100%); }
  .tlist { background: #101204; background: #16181D; }
  .tlist-head h2 { color: #DEE4EA; } .tlist-n { color: #9FADBC; background: rgba(255,255,255,.08); } .tlist-foot { color: #8C9BAB; }
  .tcard { background: #22272B; color: #DEE4EA; box-shadow: 0 1px 1px rgba(0,0,0,.5); }
  .tcard-act { border-color: #2C333A; } .tbadges { color: #9FADBC; } .tnext { color: #D6BC6A; }
  .tlabel.fmt { background: #2C333A; color: #B6C2CF; }
  .tadd-btn { color: #9FADBC; } .tadd-btn:hover { background: rgba(255,255,255,.08); color: #DEE4EA; }
  .tadd-ta, .tadd-sel { background: #22272B; color: #DEE4EA; }
  .tnote { background: #3A2A1D; color: #FEC195; } .tnote.fail { background: #42221F; color: #FD9891; }
}
@media (max-width: 640px) { .tboard-wrap { margin: 0 -16px; border-radius: 0; } .tlist { width: 84vw; max-height: none; } .tsearch { width: 100%; } }

/* ── Calendário: agenda do dia por horário */
.cal-day.drop-over { box-shadow: 0 0 0 2px var(--accent) inset; background: var(--accent-soft); }
.cal-tile[draggable="true"], .cal-chip[draggable="true"] { cursor: grab; }
.dayplan { display: grid; gap: 12px; }
.dayplan-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.dayplan-dates .cal-date { font-size: 12.5px; padding: 3px 8px; }
.slots { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.slot { display: grid; grid-template-columns: 62px minmax(0, 1fr); border-top: 1px solid var(--line); min-height: 46px; }
.slot:first-child { border-top: 0; }
.slot.best { background: color-mix(in srgb, var(--s-ok-bg) 55%, var(--surface)); }
.slot.drop-over { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent) inset; }
.slot-time { padding: 12px 8px 0 12px; font-size: 12.5px; color: var(--muted); border-right: 1px solid var(--line); display: flex; gap: 3px; align-items: flex-start; }
.slot-star { color: var(--s-ok); font-size: 12px; }
.slot-body { padding: 6px 8px; display: grid; gap: 6px; align-content: start; }
.slot-add { border: 0; background: none; text-align: left; color: var(--muted); font: inherit; font-size: 13px; padding: 8px 6px; border-radius: 8px; cursor: pointer; opacity: .55; }
.slot:hover .slot-add, .slot-add:focus-visible { opacity: 1; background: var(--surface-2); color: var(--accent); }
.slot-post { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--surface); border-left-width: 4px; border-radius: 8px; padding: 6px 8px; cursor: pointer; font: inherit; color: inherit; }
.slot-post:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.slot-post[draggable="true"] { cursor: grab; }
.slot-post img, .slot-noimg { width: 40px; height: 50px; object-fit: cover; border-radius: 5px; background: var(--surface-2); display: grid; place-items: center; }
.slot-main { display: grid; min-width: 0; font-size: 13px; color: var(--ink); }
.slot-main b { font-size: 12.5px; }
.slot-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.slot-post .pill { font-size: 11px; }
.slot-form { display: grid; gap: 8px; padding: 6px 0; }
.slot-form-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.slot-form select { flex: 1; min-width: 0; }
.slot-form select:last-child { flex: none; width: 96px; }
@media (max-width: 640px) { .slot-post { grid-template-columns: 34px minmax(0, 1fr); } .slot-post .pill { display: none; } }


/* ── identidade MC Digital (bege, grafite e dourado dos slides) */
h1, h2, h3 { font-weight: 800; letter-spacing: -.015em; }
.page-head h1 { text-shadow: 0 2px 6px rgba(43,43,43,.12); }
.brand-logo { display: block; width: 46px; height: 46px; }
.brand-logo.dark { display: none; }
@media (prefers-color-scheme: dark) { .brand-logo.light { display: none; } .brand-logo.dark { display: block; } }
.topbar-in { padding: 6px 20px; }
.tab[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold), var(--shadow); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--gold)); }
.btn.ai { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 14%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); color: var(--gold); }
.home-hero { background: #2B2B2B; color: #EBEBE6; }
.home-hero::after { background: radial-gradient(circle, rgba(122,98,0,.55), transparent 70%); }
.home-hero .eyebrow { color: #CDB66B; }
.home-mark { background: transparent; width: 86px; height: 86px; }
.home-mark img { width: 100%; height: 100%; display: block; }
.home-hero .btn.primary { background: #EBEBE6; color: #2B2B2B; border-color: #EBEBE6; }
.home-hero .btn:not(.primary) { color: #EBEBE6; border-color: rgba(235,235,230,.35); background: transparent; }
.tboard-wrap { background: linear-gradient(135deg, #2B2B2B 0%, #3D3726 55%, #7A6200 100%); }
.tlist { background: #EBEBE6; }
.tadd-ta, .tadd-sel { background: #FAFAF7; }
@media (prefers-color-scheme: dark) { .tboard-wrap { background: linear-gradient(135deg, #141413 0%, #2A261B 60%, #4A3C08 100%); } .tlist { background: #1F1F1C; } }
.login .brand-logo { width: 96px; height: 96px; margin: 0 auto 4px; }

/* onboarding no painel */
.onb-sec { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--surface-2); }
.onb-sec summary { cursor: pointer; font-weight: 700; }
.onb-dl { margin: 10px 0 2px; display: grid; gap: 4px; }
.onb-dl dt { font-weight: 600; font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.onb-dl dd { margin: 0; white-space: pre-line; font-size: 14.5px; }
.onb-photo { display: flex; gap: 14px; align-items: center; }
.onb-photo img, .onb-photo-empty { width: 84px; height: 112px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; font-size: 12px; color: var(--muted); }

/* cartão do cliente: nome em cima, etiquetas embaixo (quebram linha sem empurrar o cartão) */
.client-name { overflow-wrap: anywhere; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.card-tags:empty { display: none; }
.card-tags .pill { white-space: nowrap; }
.grid-clients > .card { min-width: 0; }

/* revisor */
.review { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px; display: grid; gap: 10px; }
.review-head { display: flex; gap: 10px; align-items: center; } .review-head .linkish { margin-left: auto; }
.rev-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; font-size: 14px; }
.rev-item > div { display: grid; gap: 2px; } .rev-item .pill { font-size: 11px; white-space: nowrap; }
.rev-ai { display: grid; gap: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.rev-fix { display: grid; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.rev-changes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
/* vendas */
.lead-diag { gap: 8px; padding: 14px; }
.diag-areas { display: flex; flex-wrap: wrap; gap: 6px; }

/* permissões da equipe */
.perm-box { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.perm-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .perm-head .muted { font-size: 13px; }
.perm { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; padding: 6px 0; border-top: 1px solid var(--line); }
.perm:first-of-type { border-top: 0; }
.perm input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.perm small { display: block; color: var(--muted); font-size: 12.5px; }
.perm-sum { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .perm-sum .pill { font-size: 11px; }

/* Ajustes → links para a revisão da Meta */
.meta-urls { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.meta-urls[open] { display: grid; }
.meta-urls summary { cursor: pointer; font-weight: 600; color: var(--gold); }
.meta-urls[open] > *:not(summary) { margin-top: 2px; }
