/* ==========================================================================
   AutoMarketing — design system do admin (base)
   Marca: Laranja Sinal #FF5B2E só para ação e destaque; Tinta #14161F para texto;
   fundo quase branco e superfícies brancas, linhas leves. Fonte Bricolage Grotesque
   (títulos e corpo) e JetBrains Mono só em dados/código.
   Princípios (leigos usam): 1 ação principal por tela, texto em português comum,
   sem jargão técnico à vista, estado em palavras ("Pronto", "Falhou"), muito respiro.
   CSS de cada tela fica em css/views/<área>.css. Os blocos de arte/preview/cena no
   fim deste arquivo são fixos: geram o PNG e o vídeo e usam a marca do cliente.
   ========================================================================== */
:root {
    --orange: #ff5b2e;
    --orange-hover: #f04a1c;
    --orange-soft: #fff1eb;
    --orange-line: #ffd0c2;
    --bg: #f7f6f2;
    --surface: #ffffff;
    --surface-2: #f1efe9;
    --surface-3: #f8f7f3;
    --line: #e7e3da;
    --line-strong: #d6d1c5;
    --ink: #14161f;
    --ink-2: #474a56;
    --muted: #767985;
    --accent: var(--orange);
    --accent-ink: var(--ink);
    --accent-soft: var(--orange-soft);
    --accent-mint: var(--orange-line);
    --ok: #1f7a46; --ok-soft: #e9f7ee; --ok-line: #bfe3cb;
    --warn: #9a6a12; --warn-soft: #fdf5e4; --warn-line: #f0dca5;
    --err: #b42318; --err-soft: #fdeeec; --err-line: #f4c6c0;
    --info: #2f5fb5; --info-soft: #ecf2fd; --info-line: #c6d7f5;
    --radius-xl: 20px; --radius-lg: 16px; --radius: 12px; --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(20,22,31,.05);
    --shadow: 0 1px 2px rgba(20,22,31,.04), 0 10px 30px rgba(20,22,31,.07);
    --shadow-lg: 0 20px 60px rgba(20,22,31,.18);
    --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    --sidebar: 244px;
    --ease: cubic-bezier(.2,.7,.2,1);
}

/* Peças e cenas de vídeo usam a marca do cliente, não a do AutoMarketing:
   o visual padrão delas fica fixo (é o mesmo do PNG e do frame do vídeo). */
.art, .scene, .pv-stories, .pv-feed {
    --accent: #6e7f1f; --accent-ink: #44511a; --accent-soft: #f6f8e4; --accent-mint: #cfe5c3;
    --ink: #161616; --ink-2: #4a4a46; --muted: #7b7b75; --line: #dcdcd5; --surface: #ffffff; --surface-2: #ebebe6;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --font-display: 'Oswald', 'Inter', sans-serif;
    font-family: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .35em; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 18px; } h3 { font-size: 15.5px; } h4 { font-size: 14.5px; }
p { margin: 0 0 .6em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.icon { flex: none; vertical-align: middle; }
code { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
pre.code, .code { font-family: var(--font-mono); font-size: 12px; }
pre.code { background: var(--surface-2); padding: 10px 12px; border-radius: 10px; white-space: pre-wrap; color: var(--ink); }
::selection { background: var(--orange-line); }

/* ---------- shell: menu claro à esquerda, conteúdo à direita ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px 14px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.brand { display: flex; align-items: center; text-decoration: none; padding: 6px 4px; }
.brand-logo { display: block; height: 26px; width: auto; min-width: 110px; }
.sidebar .sidebar-close { display: none; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group-label { font: 600 11px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 12px 6px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14.5px; transition: background .12s, color .12s; }
.nav-link .icon { color: var(--muted); transition: color .12s; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link:hover .icon { color: var(--ink); }
.nav-link.is-active { background: var(--ink); color: #fff; font-weight: 600; }
.nav-link.is-active .icon { color: var(--orange); }
.nav-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.nav-link-featured { margin-top: 2px; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--ink); font: 700 11.5px/20px var(--font); text-align: center; }
.nav-more { display: block; }
.nav-more > summary { cursor: pointer; list-style: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more .nav-more-chevron { margin-left: auto; transition: transform .15s; }
.nav-more[open] .nav-more-chevron { transform: rotate(180deg); }
.nav-more > a.nav-link { margin-top: 2px; padding-left: 38px; font-size: 13.5px; }
.sidebar-accounts { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px; text-decoration: none; }
.sidebar-acct { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px 4px 4px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 500; line-height: 1; }
.sidebar-acct > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.sidebar-acct img, .sidebar-acct i { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; font-style: normal; font-size: 8px; display: grid; place-items: center; }
.sidebar-acct.is-bad { background: var(--err-soft); color: var(--err); }
.sidebar-acct.is-empty { padding-left: 9px; color: var(--muted); }
.sidebar-accounts:hover .sidebar-acct { background: var(--surface-3); }
.sidebar-foot { margin-top: auto; }
.sidebar-help { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--orange-soft); border: 1px solid var(--orange-line); font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.sidebar-help .icon { color: var(--orange); margin-top: 1px; }
.sidebar-help strong { display: block; color: var(--ink); }
.sidebar-help a { color: var(--ink); font-weight: 600; }

/* seletor de projeto */
.switcher { position: relative; }
.switcher-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font: 500 14px var(--font); color: var(--ink); text-align: left; transition: background .12s, border-color .12s; }
.switcher-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.switcher-btn .icon { color: var(--muted); }
.switcher-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 50; }
.switcher-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 9px; font: 400 14px var(--font); color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.switcher-item:hover, .switcher-item.is-active { background: var(--surface-2); }
.switcher-item.is-active { font-weight: 600; }
.project-dot { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.project-dot-sm { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 4px 0; border-top: 1px solid var(--line); }
.me-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.me-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me-info strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-info small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { padding: 22px 36px 64px; min-width: 0; max-width: 1360px; }
/* abas da seção (Publicações · Calendário · Vídeos…), acima do título */
.subnav { display: flex; gap: 2px; flex-wrap: wrap; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.subnav-link { padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: background .12s, color .12s; }
.subnav-link:hover { background: var(--surface-2); color: var(--ink); }
.subnav-link.is-active { background: var(--ink); color: #fff; font-weight: 600; }
.subnav-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.topbar-title { min-width: 0; flex: 1; }
.topbar-title .kicker { margin-bottom: 4px; }
.page-title { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.03em; line-height: 1.15; }
.page-intro { margin: 6px 0 0; max-width: 720px; color: var(--ink-2); font-size: 14.5px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.mobilebar, .sidebar-backdrop { display: none; }

/* ---------- layout e caixas ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.panel-soft { background: var(--surface-3); box-shadow: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head .kicker, .panel-head h2, .panel-head h3 { margin-bottom: 0; }
.panel-title { font-size: 15.5px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.panel-title .icon { color: var(--orange); }
.panel-desc { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
/* rótulo pequeno de seção (sem o traço laranja no admin; o traço fica para a marca/landing) */
.kicker { display: flex; align-items: center; gap: 8px; font: 600 11.5px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.section-title { font-size: 16px; margin: 28px 0 12px; }
.label-sm { display: block; font: 600 11.5px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none; color: var(--ink); background: transparent; transition: background .12s, border-color .12s, box-shadow .12s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: .5; pointer-events: none; }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 1px 2px rgba(255,91,46,.25); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262a36; }
.btn-soft { background: var(--surface-2); }
.btn-soft:hover { background: #e6e2d9; }
.btn-outline { border-color: var(--line-strong); background: var(--surface); }
.btn-outline:hover { background: var(--surface-3); border-color: var(--ink); }
.btn-ghost { padding: 0 12px; font-weight: 500; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--err); }
.btn-danger:hover { background: var(--err-soft); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 9px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .12s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- selos, estados ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chip-sm { height: 22px; padding: 0 8px; font-size: 12px; }
.chip-muted { color: var(--muted); background: var(--surface-3); }
.chip-ok { color: var(--ok); border-color: var(--ok-line); background: var(--ok-soft); }
.chip-warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); }
.chip-err { color: var(--err); border-color: var(--err-line); background: var(--err-soft); }
.chip-info { color: var(--info); border-color: var(--info-line); background: var(--info-soft); }
.chip-accent { color: var(--ink); border-color: var(--orange-line); background: var(--orange-soft); }
.chip-dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.chip-soon { color: var(--muted); border-style: dashed; background: transparent; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-weight: 600; font-size: 12.5px; }
.badge-dark { background: var(--ink); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot-ok { background: var(--ok); } .dot-warn { background: var(--warn); } .dot-err { background: var(--err); } .dot-accent { background: var(--orange); }
.prio-alta { color: var(--err); border-color: var(--err-line); background: var(--err-soft); }
.prio-media { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); }
.prio-baixa { color: var(--ok); border-color: var(--ok-line); background: var(--ok-soft); }
.net { flex: none; font-size: 9.5px; font-weight: 700; color: #fff; border-radius: 4px; padding: 1px 4px; line-height: 1.3; }
.net-instagram { background: #d62976; } .net-facebook { background: #1877f2; } .net-linkedin { background: #0a66c2; }
.net-x { background: #111; } .net-tiktok { background: #010101; color: #25f4ee; } .net-youtube { background: #ff0000; }
.net-google_analytics { background: #e37400; } .net-search_console { background: #4285f4; } .net-google_ads { background: #34a853; } .net-meta_ads { background: #0866ff; }
.net-lg { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; }

/* ---------- avisos ---------- */
.note { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; margin-bottom: 14px; font-size: 13px; line-height: 1.4; width: fit-content; max-width: 100%; background: var(--surface-2); color: var(--ink-2); }
.note > .icon, .note > .spinner { flex: none; }
.note a { color: inherit; font-weight: 600; }
.note-success { background: var(--ok-soft); color: var(--ok); }
.note-error { background: var(--err-soft); color: var(--err); }
.note-warn { background: var(--warn-soft); color: var(--warn); }
.note-info { background: var(--info-soft); color: var(--info); }
.note-accent { background: var(--orange-soft); color: var(--ink); }
.note-accent > .icon { color: var(--orange); }
.note-block { border-radius: var(--radius); width: 100%; align-items: flex-start; padding: 12px 14px; }
.note .btn { margin-left: auto; }

/* ---------- formulários ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.label { display: block; margin-bottom: 6px; }
.field small.muted, .field-hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 9px 12px; font: 400 14.5px/1.4 var(--font); color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.input::placeholder, .textarea::placeholder { color: #a6a9b3; }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23767985' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,22,31,.08); }
.input-sm, .select-sm { padding: 6px 10px; font-size: 13.5px; border-radius: 9px; }
.select-sm { width: auto; padding-right: 30px; }
.field-error { color: var(--err); font-size: 12.5px; }
.has-error .input, .has-error .textarea, .has-error .select { border-color: var(--err); }
.input.is-suggested, .textarea.is-suggested { background: var(--warn-soft); border-color: var(--warn-line); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-addon { flex: none; padding: 0 12px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 10px 10px 0; background: var(--surface-3); font: 600 12.5px/1 var(--font); color: var(--ink-2); cursor: pointer; }
.input-addon:hover { background: var(--surface-2); }
.radio, .checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 6px 0; cursor: pointer; }
.radio input, .checkbox input { accent-color: var(--orange); width: 16px; height: 16px; margin-top: 2px; }
.check-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; }
.check-pill span { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 500; }
.check-pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.check-pill input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.segmented a, .segmented button { padding: 5px 14px; border-radius: 999px; border: 0; background: none; text-decoration: none; font: 500 13.5px var(--font); color: var(--ink-2); cursor: pointer; }
.segmented .is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 9px 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-color: var(--orange); }
.tab .chip-sm { height: 18px; padding: 0 6px; font-size: 11px; }
.status-pill { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.status-pill:hover { border-color: var(--ink); color: var(--ink); }
.status-pill.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.bulk-bar { display: flex; gap: 8px; align-items: center; margin-left: auto; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 6px 4px 14px; font-size: 13.5px; }
.bulk-bar .btn { height: 30px; }
.form-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 35%); z-index: 5; }
.repeater { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.repeater-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: center; }
.repeater-2 { grid-template-columns: 1fr 1fr; margin-bottom: 8px; }

/* ---------- tabelas e listas ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 11.5px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.bullets { margin: 0; padding-left: 18px; }
.bullets li { margin: 3px 0; }
.quotes { list-style: none; margin: 0; padding: 0; }
.quotes li { padding: 8px 12px; border-left: 2px solid var(--orange); background: var(--orange-soft); border-radius: 0 8px 8px 0; margin: 6px 0; font-size: 14px; }
.item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item p { margin: 4px 0 0; }
.mini-card { background: var(--surface-3); border-radius: var(--radius); padding: 14px 16px; }
.mini-card h4 { margin-bottom: 4px; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty .icon { color: var(--muted); }
.empty-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); margin-bottom: 6px; }
.empty h3 { margin: 0; }
.empty p { max-width: 420px; margin: 0 0 10px; color: var(--muted); }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { to { opacity: .3; } }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; min-width: 100px; }
.progress span { display: block; height: 100%; background: var(--orange); border-radius: 99px; transition: width .3s; }
.progress-inline { display: flex; align-items: center; gap: 10px; }
.perf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--surface-3); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi small { color: var(--muted); font-size: 12.5px; }
.kpi strong { font: 700 22px/1.2 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: 12px; font-weight: 600; }
.kpi-delta.is-up { color: var(--ok); } .kpi-delta.is-down { color: var(--err); }

/* passos (onboarding, guias) */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.steps li > div a { font-weight: 600; text-decoration: none; }
.step-n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; color: var(--ink-2); }
.steps li.is-done .step-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.is-next .step-n { border-color: var(--orange); background: var(--orange); color: var(--ink); }
.step-state { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.steps li.is-done .step-state { background: var(--ok-soft); color: var(--ok); }
.steps li.is-next .step-state { background: var(--orange-soft); color: var(--ink); }

/* ---------- modal, gaveta, toasts ---------- */
.modal { border: 0; border-radius: var(--radius-lg); padding: 22px; width: min(620px, 94vw); box-shadow: var(--shadow-lg); }
.modal-sm { width: min(420px, 94vw); }
.modal::backdrop { background: rgba(20,22,31,.45); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-foot { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; }
.modal[open] { animation: modal-in .18s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
/* aviso / confirmação: ícone grande, título curto, texto em palavras, botões à direita */
.modal-notice { width: min(480px, 94vw); padding: 26px 26px 22px; text-align: left; }
.modal-notice-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: var(--surface-2); color: var(--ink-2); }
.modal-notice.is-error .modal-notice-ic { background: var(--err-soft); color: var(--err); }
.modal-notice.is-success .modal-notice-ic { background: var(--ok-soft); color: var(--ok); }
.modal-notice.is-warn .modal-notice-ic { background: var(--warn-soft); color: var(--warn); }
.modal-notice.is-accent .modal-notice-ic { background: var(--orange-soft); color: var(--orange); }
.modal-notice h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.modal-notice p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.modal-notice ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.modal-notice ol strong { color: var(--ink); }
.modal-notice .modal-foot { margin-top: 20px; }
.modal-notice .btn:focus { outline: none; box-shadow: 0 0 0 3px var(--orange-soft); }
.btn-danger-solid { background: var(--err); color: #fff; border-color: var(--err); }
.btn-danger-solid:hover { filter: brightness(.92); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface); box-shadow: var(--shadow-lg); z-index: 90; display: flex; flex-direction: column; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow-y: auto; padding: 18px; background: var(--bg); flex: 1; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); max-width: 380px; font-size: 14px; line-height: 1.4; animation: toast-in .2s ease-out; }
.toast .icon { flex: none; color: var(--orange); }
.toast-success .icon { color: #4ade80; }
.toast-error { background: var(--err); }
.toast-error .icon { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; font-weight: 500; }
.tag button { border: 0; background: none; cursor: pointer; color: inherit; font-size: 15px; line-height: 1; padding: 0 4px; }
.tag-input { border: 1px dashed var(--line-strong); border-radius: 999px; padding: 4px 10px; font: 13px var(--font); width: 110px; }
.tag-mini { background: var(--surface-2); border-radius: 999px; padding: 0 7px; font-size: 11px; }

/* ---------- utilitários ---------- */
.gap-xs { gap: 4px; } .gap-sm { gap: 12px; }
.align-start { align-items: start; } .align-end { align-items: flex-end; }
.span-2 { grid-column: span 2; }
.grow { flex: 1; }
.mt { margin-top: 20px; } .mt-sm { margin-top: 8px; } .mb { margin-bottom: 12px; }
.text-right { text-align: right; } .text-err { color: var(--err); } .text-ok { color: var(--ok); font-size: 13px; }
.nowrap { white-space: nowrap; }
.narrow { max-width: 560px; }
.flip { transform: scaleX(-1); }
.blank { background: var(--bg); }
.error-page { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 20px; }
.error-code { font: 800 72px/1 var(--font-display); letter-spacing: -.04em; color: var(--orange); }
.sg-section { margin-bottom: 36px; }
.sg-title { font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
    /* linhas: barra do celular + conteúdo; sem o 1fr a sobra de altura em páginas curtas esticava a barra */
    .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; }
    .mobilebar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 80; padding: 8px 10px 8px 6px; background: var(--surface); border-bottom: 1px solid var(--line); }
    .mobilebar .brand-logo { height: 24px; }
    .mobilebar .mobilebar-btn { width: 40px; height: 40px; }
    .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .2s ease-out; }
    .is-nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
    .is-nav-open { overflow: hidden; }
    .sidebar .sidebar-close { display: inline-grid; }
    .sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 95; background: rgba(20,22,31,.45); }
    .main { padding: 18px 16px 40px; }
    .page-title { font-size: 22px; }
    .topbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .topbar-actions { padding-top: 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .repeater-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Peças (artes e molduras de rede) e cenas de vídeo — FIXO
   Mesmo HTML/CSS do card, do editor, do PNG (Chromium) e do frame do vídeo.
   Não mudar aqui por causa do admin: o visual é a marca do cliente.
   ========================================================================== */
/* ---------- previews (moldura de rede) ---------- */
.pv-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); flex: none; }
.pv-avatar-sm { width: 40px; height: 40px; }
.pv-avatar-xs { width: 22px; height: 22px; border-width: 0; box-shadow: none; }
.pv-time { color: var(--muted); font-weight: 400; }

.pv-stories { position: relative; width: 100%; max-width: 480px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #888; box-shadow: var(--shadow); }
.pv-stories-bars { position: absolute; inset: 12px 16px auto; display: flex; gap: 6px; z-index: 3; }
.pv-stories-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.45); }
.pv-stories-bars .is-on { background: #fff; }
.pv-stories-head { position: absolute; top: 26px; left: 16px; right: 16px; display: flex; align-items: center; gap: 10px; color: #fff; z-index: 3; }
.pv-stories-head .pv-time { color: rgba(255,255,255,.8); }
.pv-stories-art { position: absolute; inset: 0; }
.pv-stories-art .art { height: 100%; }
.pv-stories-art .art-body { padding-bottom: 96px; }
.pv-stories-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; display: flex; align-items: center; gap: 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.35)); z-index: 3; }
.pv-stories-reply { flex: 1; border: 1.5px solid rgba(255,255,255,.8); border-radius: 999px; padding: 10px 18px; }

.pv-feed { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.pv-feed-head { display: flex; align-items: center; gap: 12px; padding: 16px; }
.pv-feed-head > div { flex: 1; display: flex; flex-direction: column; }
.pv-feed-head strong { font-size: 18px; font-weight: 500; }
.pv-more { color: var(--ink-2); }
.pv-caption { padding: 0 16px 16px; font-size: 17px; line-height: 1.5; margin: 0; }
.pv-caption .more { color: var(--muted); cursor: pointer; }
.pv-feed-icons { display: flex; gap: 16px; padding: 12px 16px; }
.pv-linkedin-actions { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding: 12px 8px; color: var(--ink-2); }
.pv-linkedin-actions span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 500; font-size: 15px; }

/* ---------- artes (renderizáveis) ---------- */
.art { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--accent-soft); color: var(--ink); }
.art-photo { flex: 0 0 46%; background-size: cover; background-position: center; }
.art-body { flex: 1; padding: 9% 7% 7%; display: flex; flex-direction: column; justify-content: center; position: relative; }
.art-kicker { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 500; color: var(--accent-ink); margin-bottom: 14px; }
.art-kicker::before { content: ''; width: 20px; height: 1.5px; background: currentColor; }
.art-headline { font: 700 38px/1.08 var(--font-display); letter-spacing: -.005em; margin: 0 0 14px; }
.art-headline mark { background: none; color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.art-sub { font-size: 18px; color: var(--ink-2); margin: 0 0 18px; }
.art-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 500; font-size: 15px; }
.art-handle { margin-top: auto; align-self: flex-end; font-size: 12px; color: var(--ink-2); padding-top: 16px; }
.art-list { background: #f5f3ec; padding: 12% 8% 6%; justify-content: flex-start; }
.art-blob { position: absolute; top: -18%; right: -14%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #e3e6d0; }
.art-list .art-headline { position: relative; }
.art-items { list-style: none; padding: 0; margin: 4px 0 14px; position: relative; }
.art-items li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #ddd9cc; }
.art-items li:last-child { border-bottom: 0; }
.art-items strong { display: block; font-weight: 400; font-size: 16px; }
.art-items small { color: var(--muted); font-size: 13px; }
.art-item-ico { width: 26px; height: 26px; border-radius: 6px; background: #8a8a80; color: #fff; display: grid; place-items: center; flex: none; }
.art-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.art-foot .art-handle { margin: 0; padding: 0; }

.art { container-type: inline-size; height: 100%; width: 100%; }
.pv-feed-art { position: relative; overflow: hidden; }
.pv-feed-art .art { aspect-ratio: auto !important; min-height: 0 !important; position: absolute; inset: 0; }
.art-kicker { font-size: 2.8cqw; gap: 2.3cqw; margin-bottom: 3.2cqw; }
.art-kicker::before { width: 4.6cqw; }
.art-headline { font-size: 8.8cqw; margin-bottom: 3.2cqw; }
.art-headline mark { text-underline-offset: 1.4cqw; text-decoration-thickness: .5cqw; }
.art-sub { font-size: 4.2cqw; margin-bottom: 4.2cqw; }
.art-cta { font-size: 3.5cqw; gap: 1.8cqw; }
.art-cta .icon { width: 3.7cqw; height: 3.7cqw; }
.art-handle { font-size: 2.8cqw; padding-top: 3.7cqw; }
.art-list { padding: 11cqw 8cqw 6cqw; }
.art-list .art-headline { font-size: 7.4cqw; }
.art-items { margin: 1cqw 0 3.2cqw; }
.art-items li { gap: 3.2cqw; padding: 3.2cqw 0; }
.art-items strong { font-size: 3.7cqw; }
.art-items small { font-size: 3cqw; }
.art-item-ico { width: 6cqw; height: 6cqw; border-radius: 1.4cqw; }
.art-item-ico .icon { width: 3.7cqw; height: 3.7cqw; }
.art-foot { padding-top: 4.6cqw; }
.art-foot .pv-avatar-xs { width: 5cqw; height: 5cqw; }
.art-body { padding: 9cqw 7cqw 7cqw; }
.pv-avatar { background-color: var(--ink); background-size: cover; background-position: center; }

.art-quote { background: var(--ink); color: #fff; justify-content: center; }
.art-quote .art-bg, .art-photo-full .art-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.art-quote .art-bg { opacity: .28; }
.art-quote .art-body { position: relative; justify-content: center; padding: 12cqw 9cqw; }
.art-quote .art-headline { font-size: 11cqw; color: #fff; }
.art-quote .art-headline mark { color: #c9dc7a; }
.art-quote .art-kicker, .art-quote .art-cta { color: #c9dc7a; }
.art-quote .art-sub, .art-quote .art-handle { color: #dcdcd5; }
.art-dots { display: flex; gap: 1.4cqw; margin-top: 5cqw; }
.art-dots span { width: 2cqw; height: 2cqw; border-radius: 50%; background: rgba(255,255,255,.35); }
.art-dots span.is-on { background: #fff; }
.art-photo-full { background: #333; color: #fff; justify-content: flex-end; }
.art-photo-full .art-body { position: relative; justify-content: flex-end; background: linear-gradient(transparent, rgba(0,0,0,.72) 55%); padding-top: 30cqw; flex: none; }
.art-photo-full .art-headline { color: #fff; }
.art-photo-full .art-headline mark { color: #c9dc7a; }
.art-photo-full .art-kicker, .art-photo-full .art-cta { color: #c9dc7a; }
.art-photo-full .art-sub, .art-photo-full .art-handle { color: #eee; }
.art-photo-top .art-photo { flex: 0 0 46%; }
.art-photo-top:not(:has(.art-photo)) .art-body { justify-content: center; }

.pv-article { padding: 0 18px 18px; }
.pv-article h3 { font: 700 22px/1.2 var(--font-display); }
.pv-article p { font-size: 15px; color: var(--ink-2); }
.art-quote .art-handle { position: absolute; right: 9cqw; bottom: 7cqw; padding: 0; }
/* container da arte fica no wrapper: paddings em cqw da própria .art passam a ser relativos à largura total */
.art { container-type: normal; }
.art-wrap { container-type: inline-size; width: 100%; height: 100%; }
.pv-feed-art .art-wrap { position: absolute; inset: 0; }
.pv-feed-art .art { position: static; height: 100%; }
.pv-stories-art .art-wrap { height: 100%; }
.render-frame .art-wrap { width: 100%; height: 100%; }
/* @handle fixo no rodapé da arte, independente do conteúdo (permite centralizar o texto) */
.art-body { position: relative; }
.art-body .art-handle { position: absolute; right: 7cqw; bottom: 5cqw; margin: 0; padding: 0; }
.pv-stories-art .art-body .art-handle { bottom: calc(96px + 2cqw); }
.art-photo-top .art-body { justify-content: center; }
.pv-stories::before { content: ''; position: absolute; inset: 0 0 auto; height: 90px; background: linear-gradient(rgba(0,0,0,.35), transparent); z-index: 2; pointer-events: none; }
.pv-stories-head { text-shadow: 0 1px 3px rgba(0,0,0,.45); }

/* arte da cena (mesmo HTML no preview e no frame do vídeo) */
.scene { position: relative; width: 100%; height: 100%; overflow: hidden; background: radial-gradient(120% 80% at 20% 10%, color-mix(in srgb, var(--scene-bg) 70%, #6e7f1f), var(--scene-bg)); color: #fff; font-family: var(--font); }
.scene-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.85) 100%); }
.scene.no-photo .scene-shade { background: none; }
.scene-body { position: absolute; left: 8cqw; right: 8cqw; bottom: 22cqw; }
.scene-text { font: 700 11cqw/1.05 var(--font-display); margin: 0; text-shadow: 0 .6cqw 2.4cqw rgba(0,0,0,.35); letter-spacing: -.01em; }
.scene-first .scene-text { font-size: 12.5cqw; }
.scene-text mark { background: var(--scene-accent); color: #161616; padding: 0 1.6cqw; border-radius: 1.6cqw; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.scene.no-photo .scene-body { top: 50%; bottom: auto; transform: translateY(-50%); }
.scene-cta { display: inline-block; margin-top: 5cqw; background: #fff; color: #161616; font-weight: 700; font-size: 5cqw; padding: 3cqw 6cqw; border-radius: 999px; }
.scene-brand { position: absolute; left: 8cqw; bottom: 8cqw; display: flex; align-items: center; gap: 2.4cqw; font-size: 3.6cqw; font-weight: 600; opacity: .95; }
.scene-logo { width: 8cqw; height: 8cqw; border-radius: 50%; background: #fff center/cover; }
.render-frame .art-wrap { width: 100%; height: 100%; }
@media (max-width: 1200px) { .video-editor { grid-template-columns: 1fr; } }
.pv-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-text { line-height: 1.24; }
.scene-text mark { padding: .3cqw 1.8cqw; border-radius: 1.4cqw; }
.scene-text { line-height: 1.08; }
.scene-text mark { background: none; color: var(--scene-accent); padding: 0; border-radius: 0; text-decoration: underline; text-decoration-thickness: .7cqw; text-underline-offset: 1.6cqw; }
.scene-media .input.dur { flex: none; width: 70px; }

