/* Pulso Gestão — folha de estilo única.
   Fonte da verdade visual: docs/design-system.md (tokens, componentes, regras) e docs/manual-de-marca.md.
   Escuro é o padrão (equipe); claro é opcional ([data-theme="light"]). Lime = ação, plum = externo, mono = dados. */

@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url(/static/fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(/static/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url(/static/fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(/static/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/static/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/static/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/static/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(/static/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/static/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/static/fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); }

:root {
  /* marca */
  --lime: #C8FF42; --black: #0A0A0A; --plum: #2D1B4E; --white: #FAFAFA;
  --f-display: "Space Grotesk", system-ui, sans-serif; --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; --f-voice: "Instrument Serif", Georgia, serif;

  /* tema escuro (padrão) */
  --bg: #0A0A0A; --surface: #121212; --raised: #1A1A1A; --line: #262626; --line-strong: #333333;
  --text: #FAFAFA; --text-2: #B5B5B5; --muted: #6B6B6B;
  --action: #C8FF42; --on-action: #0A0A0A; --focus: #C8FF42; --halo: rgba(200, 255, 66, .15);
  --external: #B9A6E8; --external-bg: #241A38;
  --paper: #F0EDE3; /* bone da marca: fundo para ver logos de patrocinadores (que são feitas para fundo claro) */
  --ok: #C8FF42; --ok-bg: #2A3311; --warn: #FFC266; --warn-bg: #2E2412; --bad: #FF7A6B; --bad-bg: #2E1614;
  --shadow: none;

  /* status (chips) */
  --st-pauta-bg: #1F1F1F; --st-pauta-fg: #B5B5B5;
  --st-agendado-bg: #241A38; --st-agendado-fg: #B9A6E8;
  --st-gravado-bg: #262626; --st-gravado-fg: #FAFAFA;
  --st-edicao-bg: #2E2412; --st-edicao-fg: #FFC266;
  --st-publicado-bg: #2A3311; --st-publicado-fg: #C8FF42;
  --st-cancelado-bg: #2E1614; --st-cancelado-fg: #FF7A6B;

  --r-tag: 2px; --r-card: 6px; --r-field: 10px; --r-full: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1); --t: 160ms;
  --sidebar: 248px;
}
:root[data-theme="light"] {
  --bg: #F4F2EC; --surface: #FFFFFF; --raised: #E9E5DA; --line: #E2DED3; --line-strong: #D6D1C4;
  --text: #0A0A0A; --text-2: #4A4A4A; --muted: #6B6B6B;
  --action: #0A0A0A; --on-action: #FAFAFA; --focus: #0A0A0A; --halo: rgba(10, 10, 10, .1);
  --external: #2D1B4E; --external-bg: #E9E3F5;
  --paper: #F0EDE3;
  --ok: #3E5A00; --ok-bg: #C8FF42; --warn: #7A4E00; --warn-bg: #FBEFD9; --bad: #9E2A1E; --bad-bg: #FBE3E0;
  --shadow: 0 8px 24px rgba(10, 10, 10, .08);
  --st-pauta-bg: #E9E5DA; --st-pauta-fg: #4A4A4A;
  --st-agendado-bg: #E9E3F5; --st-agendado-fg: #2D1B4E;
  --st-gravado-bg: #0A0A0A; --st-gravado-fg: #FAFAFA;
  --st-edicao-bg: #FBEFD9; --st-edicao-fg: #7A4E00;
  --st-publicado-bg: #C8FF42; --st-publicado-fg: #0A0A0A;
  --st-cancelado-bg: #FBE3E0; --st-cancelado-fg: #9E2A1E;
}

* { box-sizing: border-box; }
html { color-scheme: dark; } html[data-theme="light"] { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--action); } :root[data-theme="light"] a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.03em; margin: 0; line-height: 1.1; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.04em; } h2 { font-size: 20px; margin-bottom: 14px; } h3 { font-size: 15px; margin-bottom: 8px; }
code { font-family: var(--f-mono); font-size: 12px; background: var(--raised); border: 1px solid var(--line); padding: 1px 6px; border-radius: var(--r-tag); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
strong { font-weight: 600; }
.icon { flex: none; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.muted { color: var(--muted); } .small { font-size: 12px; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; } .grow { flex: 1; min-width: 0; } .top-gap { margin-top: 16px; }
/* camada técnica da marca: dados, datas, rótulos */
.mono, .kicker { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.kicker { color: var(--muted); display: block; margin-bottom: 8px; }
.voz { font-family: var(--f-voice); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* marca */
.wordmark { font-family: var(--f-display); font-weight: 700; letter-spacing: -.06em; line-height: 1; color: var(--text); font-size: 24px; }
.wordmark .dot { color: var(--lime); }
.wordmark:hover { color: var(--text); text-decoration: none; }
.pulse-line { display: block; width: 100%; height: 36px; }

/* ============ shell: barra lateral + conteúdo ============ */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 24px 16px; background: var(--bg); border-right: 1px solid var(--line); }
.sidebar .wordmark { padding: 0 10px; font-size: 26px; }
.sidebar .sidebar-toggle { display: none; }
.nav { display: grid; gap: 2px; align-content: start; flex: 1; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-field); color: var(--text-2); font-weight: 500; transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.nav a:hover { background: var(--raised); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--raised); color: var(--text); }
.nav a.active .icon { color: var(--action); } :root[data-theme="light"] .nav a.active .icon { color: var(--text); }
.nav-group { padding: 16px 10px 6px; }
.sidebar-foot { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.who { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--r-field); color: var(--text); min-width: 0; }
.who:hover { background: var(--raised); color: var(--text); text-decoration: none; }
.who-txt { display: grid; min-width: 0; line-height: 1.25; } .who-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--plum); color: var(--white); font: 700 12px var(--f-display); letter-spacing: 0; }
.foot-actions { display: flex; gap: 4px; padding: 0 4px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text-2); font: inherit; font-size: 13px; padding: 8px 10px; border-radius: var(--r-field); cursor: pointer; transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.icon-btn:hover { background: var(--raised); color: var(--text); }
.theme-sun { display: none; } html[data-theme="light"] .theme-sun { display: inline; } html[data-theme="light"] .theme-moon { display: none; }

.main { min-width: 0; padding: 32px clamp(16px, 3vw, 48px) 80px; }
.container { max-width: 1180px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 8px 0 0; color: var(--text-2); }
.lead { color: var(--text-2); max-width: 680px; margin: 0 0 24px; }

/* telas sem login (entrar, senha, erro) */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.auth::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1.2px, transparent 1.4px); background-size: 22px 22px; opacity: .9; }
.auth-box { position: relative; width: min(100%, 420px); display: grid; gap: 28px; }
.auth-box .wordmark { font-size: 64px; }
.auth-tag { font-family: var(--f-voice); font-style: italic; font-size: 24px; line-height: 1.15; color: var(--text); margin: 0; }
.auth-card { padding: 28px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow); }
.form-card { max-width: 560px; } .form-card.wide { max-width: 860px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; } .grid-2.tight { margin-top: 0; }
.align-start { align-items: start; } .editor-grid { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 800px) { .grid-2, .editor-grid { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; } .stack-lg { display: grid; gap: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.spread { justify-content: space-between; flex-wrap: nowrap; gap: 12px; } .row.spread > :first-child { min-width: 0; }

/* ============ formulários ============ */
label { display: grid; gap: 6px; font-weight: 500; font-size: 13px; color: var(--text-2); }
input, select, textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-field); padding: 10px 12px; width: 100%; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px var(--halo); }
input:disabled, select:disabled { opacity: .5; } textarea.code { font: 12px/1.6 var(--f-mono); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; padding: 0; accent-color: var(--lime); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; } .filters input[type=search] { flex: 1; min-width: 220px; } .filters select { width: auto; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text); align-self: end; padding-bottom: 10px; }
label.check input { width: auto; }

/* ============ botões ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 13px; background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-full); padding: 0 20px; height: 40px; cursor: pointer; transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease); }
.btn:hover { background: var(--raised); color: var(--text); text-decoration: none; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 12px; } .btn.lg { height: 48px; padding: 0 28px; font-size: 14px; }
.btn.primary { background: var(--action); color: var(--on-action); border-color: var(--action); }
.btn.primary:hover { background: var(--action); color: var(--on-action); filter: brightness(1.08); }
:root[data-theme="light"] .btn.primary::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.btn.ghost { border-color: transparent; color: var(--text-2); } .btn.ghost:hover { color: var(--text); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.btn:disabled, .btn.disabled { opacity: .4; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; padding: 0; }
button.link:hover { color: var(--action); }
form.inline { display: inline; margin: 0; }

/* feedback */
.flash { padding: 12px 16px; border-radius: var(--r-card); margin-bottom: 20px; font-weight: 500; border: 1px solid var(--line); border-left-width: 3px; background: var(--surface); }
.flash-ok { border-left-color: var(--lime); } .flash-error { border-left-color: var(--bad); color: var(--bad); }
:root[data-theme="light"] .flash-ok { border-left-color: #0A0A0A; }

/* ============ tabelas ============ */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; } th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
tbody tr { transition: background var(--t) var(--ease); } tbody tr:hover { background: var(--raised); } tr:last-child td { border-bottom: 0; }
td.actions { white-space: nowrap; text-align: right; } td.actions .btn { margin-left: 4px; }
td.num, th.num { text-align: right; } td.mono, td .mono-text { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }

/* ============ chips e tags ============ */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--r-tag); font: 500 11px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; background: var(--raised); color: var(--text-2); vertical-align: middle; white-space: nowrap; }
.b-green { background: var(--st-publicado-bg); color: var(--st-publicado-fg); } .b-red { background: var(--st-cancelado-bg); color: var(--st-cancelado-fg); }
.b-amber { background: var(--st-edicao-bg); color: var(--st-edicao-fg); } .b-gray { background: var(--st-pauta-bg); color: var(--st-pauta-fg); }
.b-ext { background: var(--external-bg); color: var(--external); }
/* etapas do convidado → chips de status do design system (mapeamento em docs/design-system.md) */
.b-st-prospect { background: var(--st-pauta-bg); color: var(--st-pauta-fg); }
.b-st-convite_enviado { background: var(--st-agendado-bg); color: var(--st-agendado-fg); }
.b-st-em_agendamento { background: var(--st-edicao-bg); color: var(--st-edicao-fg); }
.b-st-agendado { background: var(--st-agendado-bg); color: var(--st-agendado-fg); }
.b-st-gravado { background: var(--st-gravado-bg); color: var(--st-gravado-fg); }
.b-st-publicado { background: var(--st-publicado-bg); color: var(--st-publicado-fg); }
.b-st-negociacao { background: var(--st-edicao-bg); color: var(--st-edicao-fg); }
.b-st-ganho { background: var(--st-gravado-bg); color: var(--st-gravado-fg); }
.b-st-ativo { background: var(--st-publicado-bg); color: var(--st-publicado-fg); }
.b-st-inativo { background: var(--st-pauta-bg); color: var(--st-pauta-fg); }
.b-st-perdido { background: var(--st-cancelado-bg); color: var(--st-cancelado-fg); }
.b-st-perdido, .b-st-cancelado { background: var(--st-cancelado-bg); color: var(--st-cancelado-fg); }
h1 .badge { font-size: 11px; margin-left: 8px; position: relative; top: -4px; }

/* ============ dashboard ============ */
.hello { margin-bottom: 32px; }
.hello h1 { font-size: clamp(32px, 4vw, 40px); letter-spacing: -.05em; }
.hello .voz { font-size: 24px; color: var(--text-2); margin: 10px 0 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin: 0 0 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; display: grid; gap: 6px; color: var(--text); box-shadow: var(--shadow); transition: border-color var(--t) var(--ease), background var(--t) var(--ease); }
.stat:hover { border-color: var(--line-strong); background: var(--raised); text-decoration: none; color: var(--text); }
.stat-label { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.stat-n { font: 700 40px/1 var(--f-display); letter-spacing: -.05em; }
.stat-n.hl { color: var(--action); } :root[data-theme="light"] .stat-n.hl { color: var(--text); }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.upcoming li { display: flex; gap: 14px; align-items: center; }
.date-block { flex: none; width: 48px; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 6px 0; line-height: 1; }
.date-block .m { display: block; font: 500 10px var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.date-block .d { display: block; font: 700 20px var(--f-display); margin-top: 3px; letter-spacing: -.04em; }
.feed li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line); }
.empty { text-align: center; padding: 32px 16px; color: var(--text-2); display: grid; gap: 8px; justify-items: center; }
.empty strong { font-family: var(--f-display); font-size: 16px; color: var(--text); } .empty .pulse-line { height: 24px; max-width: 280px; opacity: .8; }

/* ============ quadro (kanban) ============ */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.column { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; min-height: 160px; transition: border-color var(--t) var(--ease); }
.column header { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 12px; }
.count { font: 500 12px var(--f-mono); color: var(--muted); }
.cards { display: grid; gap: 8px; min-height: 60px; } .column.over { border-color: var(--lime); border-style: dashed; }
.kcard { display: grid; gap: 4px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; color: var(--text); transition: border-color var(--t) var(--ease); }
.kcard:hover { border-color: var(--line-strong); text-decoration: none; color: var(--text); } .kcard.dragging { opacity: .4; }
.kcard strong { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
.kcard .meta { display: flex; gap: 10px; flex-wrap: wrap; font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
.kcard .meta .icon { margin-right: 3px; vertical-align: -2px; width: 12px; height: 12px; }
.kcard .owner { color: var(--external); font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-full); padding: 3px; background: var(--surface); }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 32px; border-radius: var(--r-full); color: var(--text-2); font-weight: 600; font-size: 13px; }
.seg a.on { background: var(--raised); color: var(--text); } .seg a:hover { text-decoration: none; color: var(--text); }

/* ============ detalhe do convidado ============ */
dl.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin: 0; }
dl.kv dt { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-top: 3px; } dl.kv dd { margin: 0; overflow-wrap: anywhere; }
dl.vars { grid-template-columns: 1fr; gap: 2px; } dl.vars dd { margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.quote { font-family: var(--f-voice); font-style: italic; font-size: 20px; line-height: 1.3; }
.quote::before { content: "\201C"; color: var(--lime); font-family: var(--f-display); font-style: normal; font-weight: 700; margin-right: 2px; }
:root[data-theme="light"] .quote::before { color: var(--text); }
.timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 20px; border-left: 1px solid var(--line-strong); display: grid; gap: 18px; }
.ev { position: relative; } .ev::before { content: ""; position: absolute; left: -25px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); border: 2px solid var(--surface); box-sizing: content-box; }
.ev-resposta::before { background: var(--lime); } .ev-nota::before { background: var(--external); }
.ev-meta { font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; font-size: 10px; margin-top: 2px; }
.copy-field .row input { font-family: var(--f-mono); font-size: 12px; }

/* ============ mobile ============ */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .wordmark { padding: 0; font-size: 24px; }
  .sidebar .sidebar-toggle { display: inline-flex; margin-left: auto; }
  .nav, .sidebar-foot { display: none; flex-basis: 100%; }
  .sidebar.open .nav { display: grid; padding: 12px 0; } .sidebar.open .sidebar-foot { display: grid; }
  .main { padding-top: 24px; }
  .auth-box .wordmark { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- CRM: formulário por etapa, importação CSV ---- */
[hidden] { display: none !important; }
.form-section { font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 8px 0 -4px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 16px 16px; margin: 0; min-width: 0; }
fieldset legend { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 0 6px; }
fieldset label.check { padding-bottom: 0; }
.stage-hint { display: flex; gap: 8px; align-items: center; color: var(--text-2); margin: 0; }
.stage-hint .icon { flex: none; }
.kcard .topic { color: var(--text-2); }
input[type="file"] { padding: 8px 12px; }
.handle { font-family: var(--f-mono); font-size: 12px; text-transform: none; letter-spacing: 0; }

/* ---- patrocinadores ---- */
.column-total { margin: -6px 2px 10px; }
.logo-preview { display: block; max-width: 180px; max-height: 90px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 6px; }
.deliv-list, .file-list, .audio-list, .ep-pick { display: grid; gap: 10px; margin-top: 12px; }
.deliv-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.deliv-row input[type="number"] { width: 84px; } .deliv-row select { width: auto; } .deliv-row input[type="text"] { flex: 1; min-width: 140px; }
.deliv-list li { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ep-pick li, .file-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ep-pick select { width: auto; }
.audio-list li { display: grid; gap: 6px; } .audio-list audio { width: 100%; max-width: 420px; height: 36px; }

/* ---- produção de episódios ---- */
.b-st-planejado, .b-st-disponivel_edicao { background: var(--st-pauta-bg); color: var(--st-pauta-fg); }
.b-st-em_edicao, .b-st-em_revisao { background: var(--st-edicao-bg); color: var(--st-edicao-fg); }
.b-st-em_finalizacao, .b-st-pronto_publicar { background: var(--st-gravado-bg); color: var(--st-gravado-fg); }
.board-wide { grid-auto-columns: minmax(230px, 1fr); }
.kcard .warn { color: var(--st-edicao-fg); }
.btn.on { border-color: var(--action); }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; padding: 0; margin: 0 0 16px; }
.stepper li { display: grid; gap: 2px; padding: 8px 8px 10px; border-top: 2px solid var(--line-strong); color: var(--muted); }
.stepper li.done { border-top-color: var(--text-2); color: var(--text-2); }
.stepper li.now { border-top-color: var(--lime); color: var(--text); }
.stepper .step-n { font-size: 10px; letter-spacing: .12em; } .stepper .step-l { font-size: 12px; line-height: 1.25; }
.moves .move-list { display: grid; gap: 10px; }
.move { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.move .blocked { display: inline-flex; gap: 6px; align-items: center; color: var(--st-edicao-fg); }
.anchors { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.sponsor-box { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.sponsor-box:last-child { border-bottom: 0; }
.asset-links { display: grid; gap: 4px; } .asset-links .icon { vertical-align: -2px; margin-right: 4px; }
.restrict { border-left: 2px solid var(--st-cancelado-fg); padding-left: 10px; }
.uploader { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); }
.upload-queue { display: grid; gap: 8px; }
.upload-item { display: grid; gap: 4px; } .upload-item .bar { height: 4px; background: var(--raised); border-radius: 2px; overflow: hidden; }
.upload-item .bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .2s linear; }
.upload-item.ok .u-state { color: var(--lime); } .upload-item.err .u-state { color: var(--bad); }
.checklist { display: grid; gap: 6px; } .checklist li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.checklist label.check { align-self: flex-start; padding-bottom: 0; }
.req { font: 500 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); padding: 1px 5px; border-radius: 2px; margin-left: 6px; }
.review video { width: 100%; max-height: 520px; background: #000; border-radius: var(--r-card); }
.review-timeline { position: relative; height: 18px; margin-top: 4px; }
.review-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line-strong); }
.review-timeline .marker { position: absolute; top: 3px; width: 10px; height: 12px; margin-left: -5px; padding: 0; border: 0; border-radius: 2px; background: var(--lime); cursor: pointer; }
.review-timeline .marker.resolved { background: var(--muted); }
.comment-list { display: grid; gap: 12px; } .comment { padding: 10px 12px; background: var(--raised); border-radius: var(--r-card); border-left: 3px solid var(--lime); }
.comment.resolved { opacity: .6; border-left-color: var(--muted); }
.comment p { margin: 6px 0; } .seek { background: none; border: 1px solid var(--line-strong); border-radius: var(--r-tag); color: var(--text); padding: 2px 8px; cursor: pointer; }
.seek:hover { border-color: var(--lime); }
@media (max-width: 860px) { .stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- IA de finalização ---- */
.ia-status { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--raised); }
.ia-status .bar { height: 4px; background: var(--surface); border-radius: 2px; overflow: hidden; } .ia-status .bar i { display: block; height: 100%; background: var(--lime); transition: width .4s; }
.suggest-list { display: grid; gap: 8px; }
.suggest { display: grid; gap: 2px; text-align: left; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-field); color: var(--text); cursor: pointer; font: inherit; }
.suggest:hover, .suggest:focus-visible { border-color: var(--lime); outline: none; } .suggest small { font-size: 11px; }
.counter { font: 500 11px var(--f-mono); color: var(--muted); margin-left: 8px; } .counter.warn { color: var(--st-edicao-fg); } .counter.bad { color: var(--bad); }
.frame-pick { margin: 0; } .frame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.frame { display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-card); cursor: pointer; align-content: start; }
.frame.on { border-color: var(--lime); } .frame img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; background: var(--surface); }
.frame input { position: absolute; opacity: 0; pointer-events: none; }
.quote-list li { margin-bottom: 8px; } .voz { font-family: var(--f-voice); font-style: italic; font-size: 17px; }

/* ---- capas e posts + editor visual ---- */
.capas .spread { justify-content: space-between; } .capas-kind { margin: 18px 0 8px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cover-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.cover-youtube_thumb { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cover-card { margin: 0; display: grid; gap: 8px; align-content: start; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--raised); }
.cover-card.approved { border-color: var(--lime); } .cover-card img { width: 100%; height: auto; display: block; border-radius: 4px; background: var(--surface); }
.cover-card figcaption { display: grid; gap: 6px; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.stage-wrap { display: grid; gap: 10px; min-width: 0; }
.stage { position: relative; width: 100%; aspect-ratio: var(--ratio, 16 / 9); background: #000; border-radius: var(--r-card); overflow: hidden; touch-action: none; }
.stage.portrait { max-width: 460px; margin: 0 auto; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; } .stage .overlay { cursor: default; }
.panel { display: grid; gap: 14px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.tabs { display: flex; gap: 6px; } .tabs button { flex: 1; padding: 8px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: transparent; color: var(--text-2); cursor: pointer; font: inherit; font-weight: 600; font-size: 13px; }
.tabs button.on { background: var(--raised); color: var(--text); border-color: var(--text-2); }
.layer-list { display: grid; gap: 4px; margin-bottom: 10px; } .layer-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 8px; border-radius: var(--r-field); }
.layer-list li.on { background: var(--raised); outline: 1px solid var(--lime); } .layer-list li > button:first-child { background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.props { display: grid; gap: 10px; margin-top: 12px; } .props input[type="range"] { padding: 0; accent-color: var(--lime); }
.swatches { display: flex; gap: 8px; margin-top: 6px; } .swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); cursor: pointer; } .swatches button.on { border-color: var(--lime); box-shadow: 0 0 0 2px var(--bg); }
.small-frames { grid-template-columns: repeat(3, 1fr); } .small-frames button { display: grid; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); cursor: pointer; color: var(--text-2); }
.small-frames button.on { border-color: var(--lime); } .small-frames img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 3px; }
.editor-actions { padding-top: 10px; border-top: 1px solid var(--line); align-items: center; }
.lint p { margin: 0 0 4px; font-size: 13px; } .lint-bad { color: var(--bad); } .lint-warn { color: var(--st-edicao-fg); } .lint-ok { color: var(--text-2); }
.stage-hint { justify-content: center; text-align: center; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } .panel { position: static; max-height: none; } }

/* utilidades mínimas (a CSP não aceita style= inline) */
.mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mt-20 { margin-top: 20px; } .mb-0 { margin-bottom: 0; } .m-0 { margin: 0; }

/* ---- cortes e publicação ---- */
.notice { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--st-edicao-fg, #FFC266); background: var(--raised); border-radius: 0 var(--r-card) var(--r-card) 0; color: var(--text-2); }
.err { color: var(--bad); }
.clip { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--raised); display: grid; gap: 8px; }
.clip h4 { margin: 0 0 2px; }
.clip-media { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 16px; align-items: start; }
.clip-media video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 6px; max-height: 420px; }
.clip-covers { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cover-pick { display: grid; gap: 4px; justify-items: center; padding: 4px; background: var(--surface); border: 2px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--text-2); }
.cover-pick.on { border-color: var(--lime); } .cover-pick img { width: 108px; height: 192px; object-fit: cover; border-radius: 4px; display: block; }
.channels { border: 1px solid var(--line); border-radius: var(--r-field); padding: 8px 12px; display: grid; gap: 4px; } .channels legend { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
label.check.off { color: var(--muted); }
.pubs { display: grid; gap: 10px; margin-top: 12px; } .pubs li { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); } .pubs p { margin: 4px 0; }
@media (max-width: 700px) { .clip-media { grid-template-columns: 1fr; } }

/* ---- abas por etapa, janelas (modal) e conteúdo ---- */
.tabbar { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabbar button { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 14px; color: var(--text-2); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.tabbar button:hover { color: var(--text); } .tabbar button.on { color: var(--text); border-bottom-color: var(--lime); }
.tabbar .count { font: 500 11px var(--f-mono); letter-spacing: .08em; padding: 1px 6px; border-radius: var(--r-tag); background: var(--raised); color: var(--text-2); }
.pane[hidden] { display: none; }
dialog.modal { width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); color: var(--text); padding: 20px; }
dialog.modal::backdrop { background: rgba(0, 0, 0, .62); }
dialog.modal h2 { margin: 0 0 4px; } .modal-actions { align-items: center; margin-top: 4px; }
.task-list { display: grid; gap: 8px; } .task-row { display: grid; gap: 4px; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); }
.task-row.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-quick { display: flex; gap: 12px; align-items: center; justify-content: space-between; } .task-quick select { width: auto; min-width: 150px; }
.task-title { font-weight: 600; } .task-meta { overflow-wrap: anywhere; }
.file-compact li { padding: 8px 0; } .file-compact li.older { opacity: .7; }
details > summary { cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 13px; } details[open] > summary { margin-bottom: 10px; }
.link.danger, button.danger { color: var(--bad); }
.assign-row { display: flex; gap: 8px; align-items: center; } .assign-row select { flex: 1; min-width: 0; }
.clip-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); margin-top: 10px; }
.clip-card { display: grid; grid-template-columns: 108px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.clip-poster { display: block; width: 108px; height: 192px; border-radius: 6px; overflow: hidden; background: var(--raised); } .clip-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.clip-body { display: grid; gap: 6px; align-content: start; min-width: 0; } .clip-body p { margin: 0; }
.moment-list { display: grid; gap: 6px; }
.stack-lg { display: grid; gap: 16px; align-content: start; }
@media (max-width: 700px) { .clip-card { grid-template-columns: 84px 1fr; } .clip-poster { width: 84px; height: 150px; } .task-quick { flex-wrap: wrap; } }
.pane .grid-2 { margin-top: 0; }
.uploader { display: grid; gap: 10px; justify-items: start; } .uploader .upload-queue { width: 100%; }

/* ---- andamento do formulário do patrocinador (equipe) ---- */
.form-progress { display: grid; gap: 8px; margin-bottom: 14px; }
.fp-steps { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; padding: 0; margin: 0; }
.fp-steps li { padding: 6px 4px 8px; border-top: 4px solid var(--line-strong); font: 500 10px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-steps li.fp-respondida, .fp-steps li.fp-nao_se_aplica { border-top-color: var(--text-2); color: var(--text-2); }
.fp-steps li.fp-pendente { border-top-color: var(--warn); color: var(--warn); background: repeating-linear-gradient(135deg, var(--warn-bg) 0 6px, transparent 6px 12px); }
.warn { color: var(--warn); }
@media (max-width: 700px) { .fp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ===================== colaboração: busca, notificações, responsável, comentários, tarefas, gestão ===================== */
/* busca global */
.search-trigger { display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0 14px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--raised); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.search-trigger span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .search-trigger:hover { color: var(--text); border-color: var(--text-2); }
kbd { font: 500 10px var(--f-mono); letter-spacing: .06em; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: var(--r-tag); color: var(--muted); background: var(--surface); }
.nav-count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: var(--r-full); background: var(--action); color: var(--on-action); font: 600 11px var(--f-mono); text-align: center; }
.nav-count[hidden] { display: none; } .nav-count.muted-count { background: var(--raised); color: var(--text-2); border: 1px solid var(--line-strong); }
dialog.palette { width: min(640px, calc(100vw - 24px)); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); color: var(--text); }
dialog.palette::backdrop { background: rgba(0, 0, 0, .55); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.palette-input input { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; padding: 4px 0; }
.palette-results { max-height: min(60vh, 460px); overflow: auto; padding: 6px; }
.palette-group { padding: 10px 10px 4px; font: 500 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.palette-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: var(--r-field); color: var(--text); }
.palette-item:hover { text-decoration: none; } .palette-item.on { background: var(--raised); }
.pi-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pi-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.palette-empty { padding: 18px; color: var(--muted); font-size: 14px; }
.palette-foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); } .palette-foot a[hidden] { display: none; }

/* bolinha de responsável */
.dot { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; vertical-align: middle; }
span.dot:not([data-dot]) { cursor: default; }
.dot-av { flex: none; width: 26px; height: 26px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--plum); color: var(--white); font: 700 10px var(--f-display, inherit); letter-spacing: .02em; border: 2px solid var(--surface); transition: box-shadow var(--t) var(--ease); }
.dot.is-empty .dot-av, .dot-av.is-empty { background: transparent; color: var(--text-2); border: 1.5px dashed var(--muted); font-size: 14px; font-weight: 500; }
.dot[data-dot]:hover .dot-av, .dot[data-dot]:focus-visible .dot-av { box-shadow: 0 0 0 2px var(--action); }
.dot-name { font-size: 13px; color: var(--text-2); }
.dot-pop { position: absolute; z-index: 80; width: 250px; padding: 8px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.dot-pop input { width: 100%; margin-bottom: 6px; }
.dot-pop ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; }
.dot-pop button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: var(--r-field); background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.dot-pop button:hover, .dot-pop button.on { background: var(--raised); }
.card-foot { display: flex; justify-content: flex-end; margin-top: 4px; }

/* comentários */
.comment-thread { display: grid; gap: 14px; margin: 6px 0 16px; }
.cmt { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.avatar.sm { width: 28px; height: 28px; font-size: 10px; }
.cmt-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .cmt-text { margin-top: 2px; overflow-wrap: anywhere; line-height: 1.55; }
.mention { color: var(--text); font-weight: 600; background: var(--raised); padding: 0 4px; border-radius: var(--r-tag); }
.comment-form { display: grid; gap: 8px; } .mention-wrap { position: relative; }
.mention-list { position: absolute; z-index: 40; left: 0; top: 100%; margin: 4px 0 0; padding: 4px; width: 260px; list-style: none; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.mention-list[hidden] { display: none; }
.mention-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-field); cursor: pointer; font-size: 14px; } .mention-list li.on { background: var(--raised); }
.mention-list .dot-av { width: 22px; height: 22px; font-size: 9px; }

/* notificações */
.notif-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.filter-list { display: grid; gap: 2px; } .filter-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-field); color: var(--text-2); font-weight: 500; }
.push-box { border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; display: grid; gap: 8px; }
.push-box h3 { display: flex; align-items: center; gap: 8px; margin: 0; } .push-box p { margin: 0; }
.filter-list a:hover { background: var(--raised); text-decoration: none; } .filter-list a.on { background: var(--raised); color: var(--text); } .filter-list a.on .icon { color: var(--action); }
.notif-list { display: grid; } .notif { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif-ic { width: 32px; height: 32px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--raised); color: var(--text-2); }
.notif-main { display: grid; gap: 2px; color: var(--text-2); } .notif-main:hover { text-decoration: none; } .notif-main strong { color: var(--text-2); font-weight: 500; }
.notif.unread .notif-main strong { color: var(--text); font-weight: 600; } .notif.unread .notif-ic { color: var(--action); box-shadow: inset 0 0 0 1px var(--line-strong); }
.notif.unread { position: relative; } .notif.unread::before { content: ""; position: absolute; left: -10px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--action); }

/* gestão */
.subnav { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 0 18px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 9px 12px; color: var(--text-2); font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--text); text-decoration: none; } .subnav a.on { color: var(--text); border-bottom-color: var(--action); }
.gestao-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gestao-card { display: grid; gap: 6px; color: var(--text); transition: border-color var(--t) var(--ease); } .gestao-card:hover { border-color: var(--line-strong); text-decoration: none; }
.gestao-card h2 { margin: 4px 0 0; } .stat-line { margin: 0; color: var(--text-2); font-size: 14px; } .stat-line .mono { font-size: 15px; color: var(--text); }
.notif-setting h2 { margin: 0; } .roles-pick { border: 1px solid var(--line); border-radius: var(--r-field); padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.roles-pick legend { font-size: 12px; color: var(--muted); padding: 0 6px; }
.routine-list { display: grid; gap: 10px; } .routine-list li { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--raised); } .routine-list li.off { opacity: .6; }
.routine-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; } .routine-row p { margin: 4px 0 0; }
.tip-list, .shortcut-list { display: grid; gap: 12px; } .tip-list li, .shortcut-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--raised); }
.tip-list p { margin: 6px 0; } .shortcut-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; } .shortcut-list p { margin: 2px 0 0; }
.top-list { display: grid; gap: 4px; } .top-list li { display: flex; justify-content: space-between; font-size: 14px; }

/* tarefas */
.task-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.tabbar.compact { margin-bottom: 0; } .tabbar a { padding: 10px 14px; color: var(--text-2); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.tabbar a:hover { color: var(--text); text-decoration: none; } .tabbar a.on { color: var(--text); border-bottom-color: var(--action); }
.task-search input { width: 240px; }
.badge.tb-a_fazer { background: var(--st-pauta-bg); color: var(--st-pauta-fg); } .badge.tb-fazendo { background: var(--st-edicao-bg); color: var(--st-edicao-fg); }
.badge.tb-feito { background: var(--st-gravado-bg); color: var(--st-gravado-fg); } .badge.tb-bloqueada { background: var(--st-cancelado-bg); color: var(--st-cancelado-fg); }
.task-section { margin-bottom: 18px; } .task-section-h { font-size: 14px; font-weight: 600; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.task-section-h .count, .column .count { font: 500 11px var(--f-mono); color: var(--muted); }
.task-table { display: grid; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.tt-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 70px 80px auto; gap: 12px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tt-row:last-child { border-bottom: 0; } .tt-row:hover { background: var(--raised); }
.tt-status select { width: 100%; padding: 5px 8px; font-size: 13px; } .tt-main { display: grid; gap: 2px; min-width: 0; }
.tt-title { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-main .small a { color: var(--text-2); margin-right: 10px; }
.tt-row.st-feito .tt-title { color: var(--muted); text-decoration: line-through; } .tt-due { text-align: right; }
.task-board { grid-template-columns: repeat(4, minmax(240px, 1fr)); }
.task-card { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--raised); cursor: grab; }
.task-card.dragging { opacity: .5; } .task-card.late { border-left: 3px solid var(--bad); } .task-card.is-blocked { border-color: var(--bad); }
.task-card.st-feito .tc-title { color: var(--muted); text-decoration: line-through; }
.tc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; } .tc-title { color: var(--text); font-weight: 600; font-family: var(--f-display, inherit); }
.tc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10px; color: var(--muted); }
.column.drop { outline: 2px dashed var(--action); outline-offset: -4px; } .col-hint { padding: 0 10px 10px; margin: 0; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .cal-title { margin: 0 6px; min-width: 200px; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--surface); padding: 8px; font: 500 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cal-day { background: var(--surface); min-height: 108px; padding: 6px; display: grid; align-content: start; gap: 3px; }
.cal-day.out { background: var(--bg); } .cal-day.out .cal-n { color: var(--muted); } .cal-day.today .cal-n { color: var(--on-action); background: var(--action); border-radius: var(--r-full); width: 22px; text-align: center; }
.cal-n { font-size: 11px; }
.cal-task { display: block; padding: 2px 6px; border-radius: var(--r-tag); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--st-pauta-bg); color: var(--st-pauta-fg); }
.cal-task:hover { text-decoration: none; filter: brightness(1.15); }
.cal-task.st-fazendo { background: var(--st-edicao-bg); color: var(--st-edicao-fg); } .cal-task.st-feito { background: var(--st-gravado-bg); color: var(--st-gravado-fg); text-decoration: line-through; }
.cal-task.st-bloqueada, .cal-task.late { background: var(--st-cancelado-bg); color: var(--st-cancelado-fg); }
.mini-tasks { display: grid; gap: 6px; } .mini-tasks li { display: flex; justify-content: space-between; gap: 10px; } .mini-tasks li.st-feito a { color: var(--muted); text-decoration: line-through; }
@media (max-width: 900px) {
  .notif-layout { grid-template-columns: 1fr; } .tt-row { grid-template-columns: 1fr auto; } .tt-row .tt-status { grid-column: 1 / -1; }
  .tt-row .tt-due, .tt-row > .handle.muted { display: none; } .task-board { grid-template-columns: repeat(4, 80vw); overflow-x: auto; }
  .calendar { font-size: 11px; } .cal-day { min-height: 70px; } .task-search input { width: 100%; }
}

/* ---- jornada guiada: passo a passo + "Próximo passo" (convidado, patrocinador) ---- */
.stepper.s6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stepper.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.next-step { display: grid; gap: 10px; }
.next-step h2 { margin: 0; font-family: var(--f-display); letter-spacing: -.03em; }
.next-step p { margin: 0; }
.next-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.big-date { font-size: 18px; letter-spacing: .1em; color: var(--text); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.big-date .rel { font-size: 11px; color: var(--text-2); letter-spacing: .14em; }
.mono-line { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; }
.more-actions { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.more-actions[open] { display: grid; gap: 10px; } .more-actions select { width: auto; min-width: 180px; }
.confirm-list { border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 12px 14px; }
.agenda-summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.agenda-summary.warn { color: var(--warn); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 860px) { .stepper.s6, .stepper.s4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stepper.s5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .stepper.s7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 860px) { .stepper.s5, .stepper.s7 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-card); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--text); background: var(--raised); }
.choice span { display: grid; gap: 2px; } .choice input { margin-top: 3px; }
[data-when][hidden] { display: none !important; }

/* ---- Social ---- */
.test-mode { display: flex; gap: 8px; align-items: center; color: var(--text-2); border-left: 2px solid var(--warn); padding: 6px 10px; margin: -6px 0 16px; background: var(--surface); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; } .toolbar .btn.primary { margin-left: auto; }
.tag-mono { font: 500 11px var(--f-mono); letter-spacing: .12em; color: var(--text-2); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pick { position: relative; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); cursor: pointer; }
.pick:hover { border-color: var(--line-strong); } .pick:has(input:checked) { border-color: var(--text); background: var(--raised); }
.pick input { position: absolute; top: 10px; right: 10px; }
.pick img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; background: var(--raised); }
.pick img.sq { aspect-ratio: 4 / 5; } .pick .ph { display: grid; place-items: center; aspect-ratio: 9 / 16; border-radius: 4px; background: var(--raised); color: var(--muted); }
.pick strong { font-size: 13px; line-height: 1.3; } .pick .slides { display: flex; gap: 4px; } .pick .slides img { width: 32%; aspect-ratio: 4 / 5; }
.idea { display: grid; gap: 8px; padding: 16px 18px; } .idea h3 { margin: 0; font-family: var(--f-display); letter-spacing: -.02em; }
.idea .voz { color: var(--text); } .idea ol { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.idea-list { display: grid; gap: 12px; } .idea-ep { margin: 20px 0 8px; }
.check-list { display: grid; gap: 6px; max-height: 340px; overflow: auto; padding: 4px 2px; }
.platform-card { display: grid; gap: 12px; } .platform-card .stat-grid { margin: 0; }
.delta { font: 500 11px var(--f-mono); letter-spacing: .08em; color: var(--muted); } .delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.rule-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.rule-row:last-child { border-bottom: 0; } .rule-row h3 { margin: 0 0 2px; font-size: 15px; }
.pub-media { display: flex; gap: 8px; flex-wrap: wrap; } .pub-media img { width: 140px; border-radius: 4px; background: var(--raised); }
.results li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); } .results li:last-child { border-bottom: 0; }
.bad-text { color: var(--bad); }
.p-0 { padding: 0; }
dialog.modal.modal-wide { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }

/* ---- avisos flutuantes (tempo real) ---- */
.toasts { position: fixed; right: 16px; bottom: 88px; z-index: 60; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: grid; gap: 2px; padding: 12px 14px; background: var(--raised); border: 1px solid var(--line-strong); border-left: 2px solid var(--action); border-radius: 0; color: var(--text); font-size: 13px; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.toast span { color: var(--text-2); } .toast:hover { text-decoration: none; border-color: var(--text); border-left-color: var(--action); }
.toast.out { opacity: 0; transform: translateY(6px); } .toast.bad { border-left-color: var(--bad); }
:root[data-theme="light"] .toast { box-shadow: 0 8px 24px rgba(10, 10, 10, .08); border-left-color: var(--text); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.quote-note { border-left: 2px solid var(--bad); padding-left: 10px; margin: 0; }

/* ---- assistente flutuante ---- */
.assist-fab { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 52px; height: 52px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--raised); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color var(--t) var(--ease); }
.assist-fab:hover { border-color: var(--text); } .assist-fab[hidden] { display: none; }
.assist-dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.assist { position: fixed; right: 20px; bottom: 20px; z-index: 56; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); }
.assist[hidden] { display: none; }
:root[data-theme="light"] .assist { box-shadow: 0 8px 24px rgba(10, 10, 10, .08); }
.assist-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.assist-titles { display: grid; gap: 2px; min-width: 0; } .assist-titles .kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.assist-tools { display: flex; gap: 2px; } .assist-tools .icon-btn { padding: 6px 8px; }
.assist-msgs, .assist-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.assist-msgs[hidden], .assist-list[hidden] { display: none; }
.assist-msg { max-width: 88%; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.assist-msg p { margin: 0 0 6px; } .assist-msg p:last-child { margin-bottom: 0; } .assist-msg ul { margin: 4px 0; padding-left: 18px; }
.assist-msg.user { align-self: flex-end; background: var(--raised); border: 1px solid var(--line); padding: 8px 12px; border-radius: var(--r-card); white-space: pre-wrap; }
.assist-msg.assistant { align-self: flex-start; color: var(--text); }
.assist-msg.err { color: var(--bad); }
.assist-tag { display: block; margin-top: 4px; font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.assist-msg.typing { display: flex; gap: 4px; padding: 6px 0; } .assist-msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: assist-dot 1.2s infinite ease-in-out; }
.assist-msg.typing span:nth-child(2) { animation-delay: .15s; } .assist-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes assist-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .assist-msg.typing span { animation: none; } }
.assist-hello { font-family: var(--f-voice); font-style: italic; font-size: 22px; line-height: 1.25; margin: 8px 0 4px; }
.assist-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { appearance: none; border: 1px solid var(--line-strong); background: none; color: var(--text-2); border-radius: var(--r-full); padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--text); }
.assist-conv { display: flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.assist-conv-open { flex: 1; display: grid; gap: 2px; text-align: left; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 4px 0; }
.assist-conv-open:hover strong { text-decoration: underline; }
.assist-form { display: flex; align-items: flex-end; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.assist-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; overflow-y: hidden; }
.assist-mic.on { color: var(--bad); background: var(--bad-bg); }
@media (max-width: 700px) {
  .assist { right: 0; bottom: 0; width: 100vw; height: 82vh; border-radius: var(--r-card) var(--r-card) 0 0; }
  .assist-fab { right: 16px; bottom: 16px; }
}
.badge-btn { appearance: none; border: 0; cursor: pointer; gap: 6px; font-family: var(--f-mono); vertical-align: middle; }
.badge-btn:hover { outline: 1px solid var(--text-2); } .badge-btn .icon { opacity: .8; }
.stage-pick { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.stage-pick .choice small { display: block; }
.btn.danger[type="submit"] { white-space: nowrap; }
.sponsor-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.chip-link { display: inline-flex; gap: 6px; align-items: center; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-full); color: var(--text); font-size: 13px; }
.chip-link:hover { border-color: var(--text); text-decoration: none; } .chip-link .mono { font-size: 10px; color: var(--muted); } .chip-link .warn .icon { vertical-align: -1px; }

/* ---- planos de patrocínio (gestão) e entregáveis do patrocinador ---- */
.plan-items { display: grid; gap: 10px; } .plan-items > li { display: grid; gap: 4px; }
.plan-item { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; align-items: center; }

.plan-item-tools { display: flex; gap: 12px; padding-left: 2px; }
.deliv-card { display: grid; gap: 8px; padding: 12px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); }
.deliv-card .deliv-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; align-items: center; }
.deliv-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) { .plan-item, .plan-item.plan-choice, .deliv-card .deliv-row { grid-template-columns: 1fr; } }
.plan-list { display: grid; }
.plan-list > li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plan-list > li:last-child { border-bottom: 0; }
.plan-list-main { display: grid; gap: 2px; } .plan-list-tools { display: flex; gap: 4px; align-items: center; }
.danger-link { color: var(--bad); } .push-right { margin-left: auto; }
@media (max-width: 700px) { .plan-list > li { grid-template-columns: 1fr auto; } .plan-list > li > .mono { grid-column: 1; } }
.row-menu { position: relative; display: inline-block; } .row-menu > summary { list-style: none; } .row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: grid; gap: 2px; min-width: 190px; padding: 6px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-card); text-align: left; }
.row-menu-list .link, .row-menu-list button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 4px; font-size: 13px; }
.row-menu-list .link:hover { background: var(--surface); }
:root[data-theme="light"] .row-menu-list { box-shadow: 0 8px 24px rgba(10, 10, 10, .08); }
.table-wrap:has(.row-menu[open]) { overflow: visible; }

/* ---- financeiro ---- */
.stat-n.money { font-size: 26px; letter-spacing: -.03em; }
.fin-list > li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main amt" "when tools"; row-gap: 6px; }
.fin-list > li > .plan-list-main { grid-area: main; } .fin-list > li > .fin-amt { grid-area: amt; } .fin-list > li > .fin-when { grid-area: when; } .fin-list > li > .plan-list-tools { grid-area: tools; justify-self: end; }
.fin-row.is-off, .is-off { opacity: .55; }
.fin-when { white-space: nowrap; text-align: left; align-self: center; }
.fin-amt { white-space: nowrap; text-align: right; font-weight: 500; }
.fin-table th.num, .fin-table td.num { text-align: right; }
.table-wrap.flat { border: 0; box-shadow: none; background: none; }
.fin-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .fin-filter input[type=search] { width: 180px; } .fin-filter select { width: auto; min-width: 170px; }
.month-nav { margin: 8px 0 16px; }
.stock-list { display: grid; gap: 12px; }
.stock-item h3 { margin: 0; }
.stock-qty { display: grid; justify-items: end; gap: 2px; }
.seg-radio { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-full); padding: 3px; background: var(--surface); width: fit-content; }
.seg-radio label { display: inline-flex; margin: 0; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span, .seg-radio label { padding: 0 14px; height: 32px; align-items: center; border-radius: var(--r-full); color: var(--text-2); font-weight: 600; font-size: 13px; }
.seg-radio label:has(input:checked) { background: var(--raised); color: var(--text); }
.seg-radio label:has(input:focus-visible) { outline: 2px solid var(--focus); }
details.more > summary { cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 600; }
details.more > summary:hover { color: var(--text); }
.money-strip { display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; color: var(--text); padding: 14px 18px; }
.money-strip:hover { border-color: var(--line-strong); background: var(--raised); text-decoration: none; color: var(--text); }
.money-strip .warn { color: var(--st-edicao-fg); }

/* ---- finalização em passos ---- */
dialog.modal.modal-xl { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.final-steps { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
.final-step { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.final-step:first-child { border-top: 0; }
.final-step > .step-n { font: 500 12px var(--f-mono); letter-spacing: .1em; color: var(--muted); padding-top: 3px; }
.final-step.is-done > .step-n { color: var(--text); }
.final-body h3 { margin: 0; font-size: 16px; }
.final-body .final-sum { margin: 6px 0 2px; }
.final-body p { margin: 4px 0 0; }
.final-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.final-more, .final-step > .pubs, .final-step > ul.pubs { grid-column: 2 / -1; }
.final-more { margin-top: 8px; }
.final-more > summary { cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 600; }
.final-more > summary:hover { color: var(--text); }
.final-more[open] > summary { margin-bottom: 12px; }
.more-card > summary { cursor: pointer; }
@media (max-width: 700px) { .final-step { grid-template-columns: 28px minmax(0, 1fr); } .final-actions { grid-column: 2; justify-content: flex-start; } }
dialog.modal.modal-xl .modal-actions { position: sticky; bottom: -20px; background: var(--surface); padding: 12px 0 4px; margin-top: 8px; border-top: 1px solid var(--line); }

.final-step > * { min-width: 0; } .frame-grid { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.guest-thumb { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.stat { align-content: space-between; }
.conv-list { display: grid; gap: 0; margin: 4px 0 8px; } .conv-list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* lista dentro de cartão (ul.plain.card): o ul.plain zerava o padding do cartão e as linhas ficavam coladas na borda */
ul.plain.card, ol.plain.card { padding: 8px 24px; gap: 0; }
ul.plain.card > li { padding-top: 16px; padding-bottom: 16px; }
.fin-list > li { padding-top: 16px; padding-bottom: 16px; }
@media (max-width: 700px) { ul.plain.card, ol.plain.card { padding: 6px 16px; } }
.mono.raw { text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.tabs-wrap > .pane > p.small.muted:first-child { margin: 0 0 16px; }
.seg + .stat-grid, .row + .stat-grid.top-gap { margin-top: 20px; }
.conv-list { margin: 0; }
