/* Health Scale Studio — folha de estilo única do painel.
   Fonte da verdade visual: docs/design-system.md (tokens, componentes, regras). Estudo da marca: docs/referencias/Health_Scale_Studio_Logo.dc.html.
   Escuro é o padrão (equipe); claro é opcional ([data-theme="light"]). Verde = ação, mono = dados. As páginas públicas de cada projeto
   (convite, portal, plateia, media kit) têm folha própria e a marca do projeto: nada daqui vale para elas. */

@font-face { font-family: "Archivo"; font-weight: 400 800; font-display: swap; src: url(/static/fonts/archivo-latin-wght-normal.woff2) format("woff2"); }
/* Space Grotesk e Inter não vestem mais o painel, mas continuam aqui: o motor das capas (public/design) desenha as peças do Pulso com elas. */
@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 (Health Scale): verde de ação, tinta e papel; valores fixos, não mudam com o tema */
  --accent: #9EDD55; --accent-hi: #C8E86A; --ink: #0E0F0D; --on-dark: #F4F4F0; --brand-deep: #3E4A33;
  --sig-1: #3E4A33; --sig-2: #6FCF4A; --sig-3: #9EDD55; --sig-4: #C8E86A; /* o Sinal: quatro barras, do verde escuro ao claro */
  --f-display: "Archivo", system-ui, sans-serif; --f-body: "Archivo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; --f-voice: "Instrument Serif", Georgia, serif;

  /* tema escuro (padrão) */
  --bg: #0E0F0D; --surface: #16180F; --raised: #1E211A; --line: #262A22; --line-strong: #3A3F34;
  --text: #F4F4F0; --text-2: #A8ABA1; --muted: #8A8D83; /* muted: 4,8:1 até sobre raised */
  --action: #9EDD55; --on-action: #0E0F0D; --focus: #9EDD55; --halo: rgba(158, 221, 85, .15);
  --external: #B9A6E8; --external-bg: #241A38;
  --paper: #F0EDE3; /* fundo claro para ver logos de patrocinadores (que são feitas para fundo claro) */
  --ok: #9EDD55; --ok-bg: #24301A; --warn: #FFC266; --warn-bg: #2E2412; --bad: #FF7A6B; --bad-bg: #2E1614;
  --shadow: none;

  /* status (chips) */
  --st-pauta-bg: #1E211A; --st-pauta-fg: #A8ABA1;
  --st-agendado-bg: #241A38; --st-agendado-fg: #B9A6E8;
  --st-gravado-bg: #262A22; --st-gravado-fg: #F4F4F0;
  --st-edicao-bg: #2E2412; --st-edicao-fg: #FFC266;
  --st-publicado-bg: #24301A; --st-publicado-fg: #9EDD55;
  --st-cancelado-bg: #2E1614; --st-cancelado-fg: #FF7A6B;

  --r-tag: 2px; --r-card: 6px; --r-field: 10px; --r-full: 999px;
  --control-h: 40px; /* campo, lista e botão na mesma altura (no toque, 44 px) */
  --ease: cubic-bezier(.2, .8, .2, 1); --t: 160ms;
  --sidebar: 248px;
}
:root[data-theme="light"] {
  --accent: #2E6B22; --accent-hi: #3E7F30; --brand-deep: #2E6B22; /* no claro o verde de marcar e contornar escurece para aparecer */
  --sig-1: #C9C9C1; --sig-2: #6FCF4A; --sig-3: #4FA83A; --sig-4: #2E6B22;
  --bg: #F4F4F0; --surface: #FFFFFF; --raised: #E8E8E1; --line: #DDDDD5; --line-strong: #C9C9C1;
  --text: #101210; --text-2: #54574F; --muted: #5E6159;
  --action: #101210; --on-action: #F4F4F0; --focus: #101210; --halo: rgba(16, 18, 16, .1);
  --external: #2D1B4E; --external-bg: #E9E3F5;
  --paper: #F0EDE3;
  --ok: #2E6B22; --ok-bg: #E2F3D0; --warn: #7A4E00; --warn-bg: #FBEFD9; --bad: #9E2A1E; --bad-bg: #FBE3E0;
  --shadow: 0 8px 24px rgba(16, 18, 16, .08);
  --st-pauta-bg: #E8E8E1; --st-pauta-fg: #54574F;
  --st-agendado-bg: #E9E3F5; --st-agendado-fg: #2D1B4E;
  --st-gravado-bg: #101210; --st-gravado-fg: #F4F4F0;
  --st-edicao-bg: #FBEFD9; --st-edicao-fg: #7A4E00;
  --st-publicado-bg: #9EDD55; --st-publicado-fg: #101210;
  --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: -.02em; } 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 */
/* marca do painel: Health Scale Studio (partials/brand.ejs). No menu: ícone + duas linhas em mono. Na assinatura (login, páginas
   sem menu): logotipo + filete + STUDIO na cor de ação; o logotipo é claro e, no tema claro, vira preto. */
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-menu { gap: 12px; min-width: 0; }
.brand-mark { flex: none; width: 36px; height: 36px; display: block; }
.brand-text { display: grid; gap: 5px; font-family: var(--f-mono); letter-spacing: .16em; line-height: 1; white-space: nowrap; }
.brand-house { font-size: 11px; color: var(--muted); }
.brand-menu .brand-name { font-size: 15px; font-weight: 500; }
.brand-sign { font-size: 34px; height: 1em; }
.brand-logo { flex: none; display: block; height: 1em; width: auto; }
.brand-rule { flex: none; width: 1px; height: 1.05em; margin: 0 .5em; background: var(--line-strong); }
.brand-sign .brand-name { font: 500 .46em/1 var(--f-mono); letter-spacing: .2em; margin-right: -.2em; color: var(--accent); white-space: nowrap; }
:root[data-theme="light"] .brand-logo { filter: brightness(0); }
/* o Sinal (partials/signal.ejs): quatro barras que crescem, símbolo de apoio do painel. Nas cores da marca no login; no estado vazio
   e sem conexão, baixo e apagado (nada aconteceu ainda). Nunca vira decoração de cartão. */
.signal { display: block; width: 34px; height: 30px; }
.signal .s1 { fill: var(--sig-1); } .signal .s2 { fill: var(--sig-2); } .signal .s3 { fill: var(--sig-3); } .signal .s4 { fill: var(--sig-4); }
.empty .signal, .signal.flat { width: 28px; height: 24px; }
.empty .signal rect, .signal.flat rect { fill: var(--line-strong); transform-box: fill-box; transform-origin: center; transform: scaleY(.3); }
@keyframes signal { 0% { background-size: 2px 30%, 2px 20%, 2px 20%, 2px 20%; } 25% { background-size: 2px 30%, 2px 55%, 2px 20%, 2px 20%; } 50% { background-size: 2px 30%, 2px 55%, 2px 80%, 2px 20%; } 75%, 100% { background-size: 2px 30%, 2px 55%, 2px 80%, 2px 100%; } }

/* ============ 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 .brand-menu { padding: 0 6px; }
.sidebar .sidebar-toggle { display: none; }
.nav { display: grid; gap: 2px; align-content: start; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } /* em tela baixa só a lista rola; usuário e "Sair" ficam à vista */
.nav a { display: flex; align-items: center; gap: 12px; padding: 7px 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: 12px 10px 4px; }
.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(--brand-deep); color: var(--on-dark); font: 700 12px var(--f-display); letter-spacing: 0; }
.foot-actions { display: flex; gap: 2px; padding: 0 4px; align-items: center; } .foot-actions .icon-btn { padding: 8px; } .foot-actions .icon-btn .foot-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .foot-actions .icon-btn.keep-label .foot-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; } .foot-actions .icon-btn.keep-label { margin-left: auto; padding: 8px 10px; }
.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); }
.icon-btn.row-del { padding: 6px; color: var(--muted); } .icon-btn.row-del:hover { color: var(--bad); }
.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) 104px; }
html { scrollbar-gutter: stable; } /* trocar de aba não muda a largura da página (o título não requebra) */
.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: url(/static/brand/studio/signal-bg.svg) no-repeat right 5vw bottom 0 / min(40vw, 440px) auto; } /* o Sinal, grande e apagado */
.auth-box { position: relative; width: min(100%, 420px); display: grid; gap: 28px; }
.auth-brand { display: grid; gap: 20px; justify-items: start; } .auth-brand .signal { width: 41px; height: 36px; }
.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; }
/* Cloudflare Turnstile: sem altura enquanto confirma sozinho; quando o Cloudflare pede a caixa (300×65), ela aparece centralizada */
.ts-box { display: flex; justify-content: center; }
.ts-box:empty { display: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; } /* sombra só em menus e janelas (design system): cartão é borda + superfície */
.nocaps { text-transform: none; letter-spacing: .02em; }
.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.row-tight { flex-wrap: nowrap; flex: none; } /* campo + botão que não se separam */
.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; align-content: start; 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:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), select { height: var(--control-h); padding-block: 0; }
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(--accent); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 20px; } .filters input[type=search] { flex: 1 1 260px; min-width: 0; } .filters select { width: auto; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text); align-self: end; padding-bottom: calc((var(--control-h) - 22px) / 2); }
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: var(--control-h); white-space: nowrap; flex-shrink: 0; max-width: 100%; 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); }
.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-family: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; cursor: pointer; padding: 0; }
button.link:hover { color: var(--action); } :root[data-theme="light"] button.link:hover { color: var(--text); }
.link.small, button.link.small { font-size: 12px; }
button.link:disabled, .link[aria-disabled="true"] { opacity: .4; cursor: not-allowed; text-decoration: none; }
.danger-link, .link.danger, button.link.danger-link, button.link.danger { color: var(--bad); } .danger-link:hover, button.link.danger-link:hover, button.link.danger:hover { color: var(--bad); text-decoration-thickness: 2px; }
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(--accent); } .flash-error { border-left-color: var(--bad); color: var(--bad); }
:root[data-theme="light"] .flash-ok { border-left-color: var(--text); }

/* ============ tabelas ============ */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
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-gravado-bg); color: var(--st-gravado-fg); } /* ok/ativo/aprovado: neutro forte; verde só em PUBLICADO (.b-st-publicado) */ .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, .b-st-pre_producao { 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-gravado-bg); color: var(--st-gravado-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: -.02em; }
.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); 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: -.02em; }
.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; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.upcoming li { display: flex; gap: 14px; align-items: center; }
.upcoming li > span:last-child { min-width: 0; } .upcoming-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.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 11px 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: -.02em; }
.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); }

/* ============ 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; gap: 8px; padding: 2px 4px 12px 2px; } .column header .badge { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .column header .count { flex: none; }
.count { font: 500 12px var(--f-mono); color: var(--muted); }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 60px; overflow-x: hidden; } .column.over { border-color: var(--accent); border-style: dashed; }
.kcard { display: grid; min-width: 0; overflow-wrap: anywhere; 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 11px 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); }
.seg > button { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 32px; border: 0; border-radius: var(--r-full); background: none; color: var(--text-2); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.seg > button.on { background: var(--raised); color: var(--text); } .seg > button:hover { color: var(--text); } .seg > button .mono { font-weight: 400; color: var(--muted); }
.req-filter { margin: 4px 0 12px; }
/* Integrações: cada cartão é uma coluna; o formulário de teste (último) desce para o pé, alinhado com o vizinho */
.int-cards > .card { display: flex; flex-direction: column; } .int-cards > .card > form:last-of-type { margin-top: auto; padding-top: 8px; }
.audit-meta { max-width: 420px; overflow-wrap: anywhere; }
.link.err, button.link.err { color: var(--bad); } /* link destrutivo: vermelho, como .danger-link */
/* Resumo do dia no Início: um painel só (sem caixa dentro de caixa). Dois caminhos desenhados como uma linha com pontos (do convite
   ao episódio; o conteúdo): o ponto aceso diz que algo aconteceu naquele passo no dia, o número zerado fica apagado. Embaixo, as
   redes e as tarefas em células separadas por filete. Sem verde nos números (medir não é ação): o único verde é o ponto "ao vivo". */
.day-sum { margin: 0 0 24px; scroll-margin-top: 16px; }
.day-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.day-sum-head h2 { margin: 0; display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
.day-when { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.day-live { width: 11px; height: 10px; animation: signal 1.2s ease-in-out infinite; /* ao vivo: o Sinal pequeno, as barras subindo em sequência */
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 2px 30% no-repeat, linear-gradient(var(--accent), var(--accent)) 3px 100% / 2px 55% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 6px 100% / 2px 80% no-repeat, linear-gradient(var(--accent), var(--accent)) 9px 100% / 2px 100% no-repeat; }
@keyframes day-live { 50% { opacity: .25; } }
.day-nav { display: flex; align-items: center; gap: 8px; --control-h: 32px; } /* o calendário com a altura das setas (.btn.sm) */
.day-nav .btn.sm { padding: 0 10px; } .day-nav [aria-disabled="true"] { opacity: .4; pointer-events: none; }
.day-nav input[type=date] { width: auto; padding: 0 10px; font: 500 13px var(--f-mono); letter-spacing: .04em; border-radius: var(--r-full); }
.day-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.day-band { padding: 16px 12px 14px; } .day-band + .day-band { border-top: 1px solid var(--line); }
.day-band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 12px; margin-bottom: 6px; }
.day-band-t { margin: 0; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.day-aside { font: 500 11px var(--f-mono); letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.day-aside b { color: var(--st-cancelado-fg); font-weight: 600; } .day-aside:hover { color: var(--text-2); text-decoration: none; }
/* o caminho: 5 passos lado a lado; cada passo ocupa 4 linhas da grade (ponto, rótulo, número, linha de baixo), e a subgrade mantém
   os números na mesma altura mesmo quando um rótulo quebra em duas linhas */
.day-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); }
.day-node, .day-cell { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 10px 12px 12px; border-radius: var(--r-card); color: var(--text); transition: background var(--t) var(--ease); }
.day-node:hover, .day-cell:hover { background: var(--raised); text-decoration: none; color: var(--text); }
.day-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); margin-bottom: 12px; position: relative; z-index: 1; }
.day-node.is-zero .day-dot { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.day-node:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: 25px; right: -6px; height: 1px; background: var(--line-strong); } /* liga este ponto ao próximo */
.day-l { font: 500 11px/15px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); align-self: end; }
.day-n { font: 700 36px/1 var(--f-display); letter-spacing: -.02em; margin: 8px 0 6px; }
.is-zero .day-n { color: var(--muted); } .day-cell.is-bad .day-n, .day-cell.is-down .day-n { color: var(--st-cancelado-fg); }
.day-sub { font: 400 11px/15px var(--f-mono); letter-spacing: .04em; color: var(--muted); }
.day-sub b { font-weight: 500; color: var(--text-2); } .day-sub b.bad { color: var(--st-cancelado-fg); }
.day-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); }
.day-cell { grid-row: span 4; } .day-cell::before { content: ""; } /* a 1ª linha da subgrade fica vazia: os números das células alinham com os do caminho */
.day-cell + .day-cell { box-shadow: inset 1px 0 0 var(--line); border-radius: 0; } .day-cell + .day-cell:hover { border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .day-live { animation: none; } }
@media (pointer: coarse) { .day-nav { --control-h: 40px; } }
@media (max-width: 860px) { .day-sum { scroll-margin-top: 72px; } } /* ao trocar de dia, o título não fica sob a barra de cima */
/* celular: o caminho fica em pé (a linha desce de ponto em ponto) e cada passo é uma linha: rótulo e linha de baixo à esquerda, número à direita */
@media (max-width: 640px) {
  .day-nav { width: 100%; } .day-nav input[type=date] { flex: 1 1 auto; }
  .day-band { padding: 14px 4px 8px; } .day-band-head { padding: 0 12px; margin-bottom: 2px; flex-wrap: wrap; }
  .day-flow, .day-cells { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .day-node, .day-cell { grid-row: auto; grid-template-rows: auto auto; grid-template-columns: 7px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 10px 12px; }
  .day-cell { grid-template-columns: minmax(0, 1fr) auto; } .day-cell::before { display: none; }
  .day-dot { grid-column: 1; grid-row: 1 / span 2; margin: 0; align-self: center; }
  .day-l { grid-column: 2; grid-row: 1; align-self: end; } .day-cell .day-l { grid-column: 1; }
  .day-sub { grid-column: 2; grid-row: 2; } .day-cell .day-sub { grid-column: 1; }
  .day-n { grid-column: 3; grid-row: 1 / span 2; margin: 0; font-size: 28px; text-align: right; } .day-cell .day-n { grid-column: 2; }
  .day-node:not(:last-child)::after { top: calc(50% + 4px); bottom: calc(-50% + 4px); left: 15px; right: auto; width: 1px; height: auto; } /* a linha desce até o próximo ponto */
  .day-cell + .day-cell { box-shadow: inset 0 1px 0 var(--line); }
}
/* Ordem de edição (Início do editor, Episódios, página do episódio): a posição (1º, 2º…) e quando o episódio vai ao ar, com a
   cor do prazo: vermelho = a data passou, âmbar = hoje ou nos próximos 2 dias, apagado = sem data. Nada de verde: a ordem
   informa; a ação é abrir o episódio. */
.edit-order { display: grid; margin: 0; padding: 0; list-style: none; } .edit-order-hint { margin: -8px 0 4px; }
.edit-order li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.edit-order li + li { border-top: 1px solid var(--line); }
.edit-pos { font: 700 22px/1 var(--f-display); letter-spacing: -.02em; color: var(--muted); }
.edit-order li.is-first .edit-pos { color: var(--text); }
.edit-main { display: grid; gap: 3px; min-width: 0; } .edit-main a { overflow-wrap: anywhere; }
.order-n { font-weight: 600; color: var(--text); }
.order-note { margin: 8px 0 0; color: var(--muted); }
.air-ok, .air-none { color: var(--muted); } .air-soon { color: var(--st-edicao-fg); } .air-late { color: var(--st-cancelado-fg); }
@media (max-width: 640px) { .edit-order li { grid-template-columns: 32px minmax(0, 1fr); row-gap: 6px; } .edit-order li > .badge { grid-column: 2; justify-self: start; } }
/* Metas (Início, Seu ritmo e Gestão > Metas): cada meta numa linha: o que conta e o período em mono, o número em display com o alvo,
   a barra (o verde só aparece na meta batida) e quanto falta. Na gestão, um cartão por pessoa; a janela tem uma moldura por meta. */
.goal-list { gap: 16px; }
.goal-item { display: grid; gap: 6px; }
.goal-item-l { font: 500 11px/15px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.goal-item-v { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.goal-item-n { font: 700 28px/1 var(--f-display); letter-spacing: -.02em; }
.goal-item-of { font: 500 15px/1 var(--f-display); color: var(--text-2); }
.goal-item-note { font: 400 11px/15px var(--f-mono); letter-spacing: .04em; color: var(--muted); }
.goal-item-p { font: 400 12px/16px var(--f-body); color: var(--muted); } .goal-item.is-met .goal-item-p { color: var(--text-2); }
.goal-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.goal-person { display: grid; gap: 16px; }
.goal-person-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.goal-person-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.goal-slot { border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 14px 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.goal-slot legend { padding: 0 6px; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.goal-slot legend .link { margin-left: 6px; text-transform: none; letter-spacing: 0; font-family: var(--f-body); }
.goal-add { justify-self: start; }
.today-goals { display: grid; gap: 12px; align-content: start; } .today-grid.one { grid-template-columns: minmax(0, 1fr); }
/* Seu ritmo (Início do editor): as células do Resumo do dia, quatro lado a lado; as metas dele na faixa de baixo */
.day-cells.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rhythm-goals { padding: 10px 12px 6px; } .rhythm-goals .goal-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; }
.day-n.day-n-text { font-size: 28px; } div.day-cell:hover { background: none; } /* célula sem link não acende */
@media (max-width: 640px) { .day-cells.c4 { grid-template-columns: minmax(0, 1fr); } .rhythm-goals .goal-list { grid-template-columns: minmax(0, 1fr); } }
/* Seu dia (Início da produtora): o plano do dia é feito de previsto (número grande = o feito, "de N" = o previsto ou a meta, barra de
   6 px neutra; verde só na meta batida), o mesmo painel do Resumo do dia. Motivos de perda: uma linha por motivo com barra neutra
   (a do mais comum na cor do texto), quantidade e porcentagem em mono. */
.day-head-r { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.day-cells.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.plan-n { display: grid; gap: 10px; margin: 8px 0 8px; align-content: start; }
.plan-v { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-v .day-n { margin: 0; }
.plan-of { font: 500 14px/1 var(--f-display); color: var(--text-2); white-space: nowrap; }
.plan-n .goal-bar { max-width: 150px; }
.loss-reasons { list-style: none; margin: 0; padding: 8px 12px 6px; display: grid; gap: 12px; }
.loss-reason { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 32px 40px; gap: 16px; align-items: center; }
.loss-reason-l { font-size: 13px; color: var(--text); }
.loss-reason-n { font: 500 13px var(--f-mono); text-align: right; }
.loss-reason-p { font: 400 11px var(--f-mono); letter-spacing: .04em; color: var(--muted); text-align: right; }
.loss-reason .goal-bar .fg { fill: var(--text-2); } .loss-reason:first-child .goal-bar .fg { fill: var(--text); }
.loss-empty { margin: 4px 12px 6px; }
.today-hot .today-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.today-warn { margin: 14px 0 0; padding: 8px 0 0 12px; border-left: 2px solid var(--st-edicao-fg); color: var(--text-2); }
.today-warn:first-child { margin-top: 0; } .today-warn b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
  .day-head-r { width: 100%; } .day-head-r .seg { align-self: flex-start; }
  .day-cells.c5 { grid-template-columns: minmax(0, 1fr); }
  .plan-n { grid-column: 2; grid-row: 1 / span 2; margin: 0; justify-items: end; gap: 8px; }
  .plan-v { justify-content: flex-end; }
  .plan-v .day-n { font-size: 28px; }
  .plan-n .goal-bar { width: 96px; }
  .loss-reason { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 12px; }
  .loss-reason .goal-bar { grid-column: 1 / -1; grid-row: 2; }
}
.kit-who > div { min-width: 0; overflow-wrap: anywhere; }
/* busca da lista enquanto a nova resposta não chega: o resultado anterior fica apagado e o Enter espera */
[data-palette-results].is-stale .palette-item { opacity: .45; }
/* filtro dentro de uma janela com lista longa (data-list-filter) */
.list-filter { margin: 0 0 8px; } .list-filter-count { margin-left: 8px; }
/* ação final de uma página longa (agendar, salvar configuração): fica presa no pé da tela */
.sticky-actions { position: sticky; bottom: 0; z-index: 6; margin-top: 16px; padding: 12px 0; background: var(--bg); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .sticky-actions { bottom: calc(var(--tabnav-h, 0px) + var(--safe-b, 0px)); } }
/* interruptor (liga/desliga uma regra): trilho neutro; ligado = trilho na cor do texto (configuração não é ação, então nada de verde) */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; flex: none; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 40px; height: 24px; border-radius: var(--r-full); background: var(--raised); border: 1px solid var(--line-strong); transition: background var(--t) var(--ease); }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform var(--t) var(--ease), background var(--t) var(--ease); }
.switch input:checked + .switch-track { background: var(--text); border-color: var(--text); } .switch input:checked + .switch-track::after { transform: translateX(16px); background: var(--bg); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--focus); outline-offset: 2px; } .switch-state { color: var(--text-2); letter-spacing: .1em; min-width: 80px; }
.kit-who { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; } .kit-who .guest-photo { width: 64px; }
.kit-nophoto { width: 64px; aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: var(--r-card); background: var(--raised); color: var(--muted); }
.trash-bundle { display: grid; gap: 0; } .trash-more { margin: -2px 0 0 16px; padding-left: 12px; border-left: 1px solid var(--line); }
.trash-more > summary { cursor: pointer; padding: 6px 0; } .trash-row.nested { background: transparent; border-color: var(--line); }
.profile-card { max-width: 720px; } .profile-pass { border-top: 1px solid var(--line); padding-top: 12px; }
td.u-name { min-width: 180px; } td.u-name strong { white-space: nowrap; } td.u-mail { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
/* abas dentro do conteúdo, abaixo de um menu de abas: controle segmentado, para não virar uma terceira barra sublinhada (Insights, Desempenho) */
.seg-tabs { margin-bottom: 16px; max-width: 100%; overflow-x: auto; scrollbar-width: none; } .seg-tabs > button { flex: 0 0 auto; white-space: nowrap; } .seg-tabs > button .count { margin-left: 2px; }

/* ============ detalhe do convidado ============ */
dl.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin: 0; } dl.kv.kv-wide { grid-template-columns: minmax(130px, max-content) 1fr; }
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(--accent); 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(--accent); } .ev-nota::before { background: var(--external); }
.ev-meta { font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; font-size: 11px; 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 .brand-menu { padding: 0; } .sidebar .brand-mark { width: 32px; height: 32px; }
  .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; }
  .brand-sign { font-size: 28px; }
}
@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(--action); 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(--accent); transition: width .2s linear; }
.upload-item.ok .u-state { color: var(--accent); } .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(--accent); cursor: pointer; }
.review-timeline .marker.resolved { background: var(--muted); }
.review-timeline .marker.range { margin-left: 0; min-width: 10px; opacity: .75; } .review-timeline .marker.range:hover { opacity: 1; }
.review-timeline { cursor: pointer; touch-action: none; user-select: none; }
.review-timeline .range-sel { position: absolute; top: 0; bottom: 0; border: 1px solid var(--text); border-radius: 2px; background: color-mix(in srgb, var(--text) 16%, transparent); pointer-events: none; }
.review-timeline .range-sel.open { width: 2px; padding: 0; border-width: 0; background: var(--text); }
.comment-list { display: grid; gap: 12px; } .comment { padding: 10px 12px; background: var(--raised); border-radius: var(--r-card); border-left: 3px solid var(--accent); }
.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(--accent); }
@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(--accent); 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(--accent); 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(--accent); } .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(--accent); } .cover-card img { width: 100%; height: auto; display: block; border-radius: 4px; background: var(--surface); }
.cover-card figcaption { display: grid; gap: 6px; }
/* Capas pelo guia de peças: um cartão por ângulo, com a miniatura do teste de redução, e a janela Ajustar com prévia ao vivo. */
.warn-text { color: var(--warn); }
.pieces { display: grid; gap: 14px; }
.pieces-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.pieces-empty > p { flex: 1 1 320px; max-width: 62ch; }
.pieces-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.pieces-sheet { display: flex; gap: 6px 28px; flex-wrap: wrap; margin: 0; }
.pieces-sheet dt { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pieces-sheet dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.pieces-note { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.piece-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); align-items: start; }
.piece-grid-sp { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 300px)); }
.piece-grid-vd { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 280px)); }
.video-card .video-poster { width: 100%; }
.video-blank { display: grid; place-items: center; aspect-ratio: 9 / 16; border-radius: 4px; background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); }
.video-blank.is-busy { border-style: solid; }
.video-missing { display: grid; gap: 4px; margin: 0; }
/* No celular o vídeo vira uma linha: a capa pequena à esquerda e o que fazer à direita (os dois cabem na tela). */
@media (max-width: 640px) {
  .piece-grid-vd { grid-template-columns: minmax(0, 1fr); }
  .video-card { grid-template-columns: 104px minmax(0, 1fr); align-items: start; }
}
.piece-card, .piece-missing { margin: 0; display: grid; gap: 10px; align-content: start; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--raised); }
.piece-card.approved { border-color: var(--text); }
.piece-missing { border-style: dashed; background: none; padding: 14px; }
.piece-missing ul { display: grid; gap: 4px; margin: 0; }
.piece-img img { width: 100%; height: auto; display: block; border-radius: 4px; background: var(--surface); }
.piece-card figcaption { display: grid; gap: 8px; padding: 0 4px 4px; }
.piece-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font: 500 11px var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.piece-model { margin: 0; }
.piece-read { display: flex; align-items: center; gap: 12px; }
.piece-mini { flex: 0 0 auto; width: 84px; height: auto; border-radius: 2px; background: var(--surface); border: 1px solid var(--line); }
.piece-mini-sp { width: 40px; }
.cover-pick .cover-model { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.adjust-preview [data-aj-mini][height="128"] { width: 60px; }
.piece-checks { display: grid; gap: 2px; min-width: 0; }
.piece-actions { align-items: center; gap: 8px; } .piece-actions .row-menu { margin-left: auto; }
dialog.modal.modal-adjust { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.adjust { display: grid; gap: 14px; }
.adjust-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .adjust-head h2 { margin: 0; }
.adjust-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.adjust-preview { display: grid; gap: 10px; position: sticky; top: 0; }
.adjust-preview > canvas { width: 100%; height: auto; max-height: 62dvh; object-fit: contain; display: block; border-radius: 4px; background: var(--raised); transition: opacity var(--t) var(--ease); }
.adjust-preview > canvas.is-off { opacity: .35; }
.adjust-preview .piece-mini { width: 84px; }
.adjust-side { display: grid; gap: 14px; min-width: 0; }
.adjust-side .seg { justify-self: start; max-width: 100%; }
.adjust-models { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.adjust-model { display: grid; gap: 4px; align-content: start; padding: 6px; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: none; color: var(--text); font: inherit; cursor: pointer; }
.adjust-model.on { border-color: var(--text); background: var(--raised); } .adjust-model.is-off { opacity: .55; }
.adjust-model-img { width: 100%; height: auto; display: block; border-radius: 2px; background: var(--raised); }
.adjust-face { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; align-items: start; }
.adjust-face canvas { width: 100%; height: auto; display: block; border-radius: 4px; cursor: crosshair; background: var(--raised); }
.adjust-frames { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: 260px; overflow: auto; }
.adjust-frame { position: relative; padding: 0; border: 2px solid transparent; border-radius: 4px; background: var(--raised); cursor: pointer; overflow: hidden; }
.adjust-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.adjust-frame.on { border-color: var(--text); } .adjust-frame.is-busy { opacity: .5; }
.adjust-frame-tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 4px; background: var(--bg); color: var(--warn); font-size: 10px; }
.adjust-actions { position: sticky; bottom: -20px; background: var(--surface); padding: 12px 0 4px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .adjust-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .adjust-preview { top: -20px; z-index: 2; background: var(--surface); padding: 8px 0; }
  .adjust-preview > canvas { max-height: 34dvh; }
  .adjust-face { grid-template-columns: 120px minmax(0, 1fr); }
  .piece-actions .btn { min-height: 44px; }
}
.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(--accent); } .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(--accent); }
.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(--accent); 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(--accent); } .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); }
.notice.notice-bad { border-left-color: var(--st-cancelado-fg); }
.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(--text); } .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; list-style: none; padding: 0; } .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(--accent); }
.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; }
/* rodapé da janela sempre à vista: em janela comprida, o botão não some lá embaixo */
dialog.modal > form > .modal-actions, dialog.modal > .stack > .modal-actions, dialog.modal .stack > .modal-actions { position: sticky; bottom: -20px; z-index: 3; background: var(--surface); padding: 12px 0 4px; margin-top: 8px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { dialog.modal .modal-actions { bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); } }
.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(--raised); color: var(--text); border: 1px solid var(--line-strong); font: 600 11px var(--f-mono); text-align: center; }
.nav-count[data-unread], .nav-count[data-chat-unread] { background: var(--bad); color: var(--ink); border-color: transparent; } /* texto escuro sobre o vermelho: 7:1 (branco dava 2,4:1) */
:root[data-theme="light"] .nav-count[data-unread], :root[data-theme="light"] .nav-count[data-chat-unread] { color: var(--on-dark); } /* no claro o vermelho é escuro: texto claro */
.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(--brand-deep); color: var(--on-dark); 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-filters { display: grid; gap: 12px; justify-items: start; margin: 0 0 16px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 6px; } .filter-list a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-full); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.filter-list a .icon { width: 14px; height: 14px; } .filter-list a.on { border-color: var(--line-strong); }
.notif-head-actions { flex-wrap: wrap; justify-content: flex-end; }
.notif-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-read { color: var(--muted); } .notif-read:hover { color: var(--text); }
.bulk-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-card); }
.check-col { width: 36px; } .check-col input { accent-color: var(--action); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.reminder-card { display: grid; gap: 8px; } .reminder-card.is-current { border-color: var(--line-strong); }
.reminder-sent li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.reminder-list { display: grid; gap: 4px; margin-top: 12px; }
.reminder-list li { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r-field); }
.reminder-list li.is-current { background: var(--raised); }
.reminder-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.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; } .push-box .row:not(:has(> :not([hidden]))) { display: none; }
.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: minmax(0, 1fr) 112px 48px 136px auto; grid-template-areas: "main due com status dot"; gap: 12px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tt-row .tt-main { grid-area: main; } .tt-row .tt-due { grid-area: due; } .tt-row .tt-com { grid-area: com; display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; } .tt-row .tt-status { grid-area: status; } .tt-row > .dot { grid-area: dot; }
/* status como chip que se troca: pílula mono, mesma família dos chips */
.tt-status select { height: 30px; border-radius: var(--r-full); padding: 0 26px 0 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); background-color: var(--raised); border-color: var(--line); }
.tt-row.st-bloqueada .tt-status select { color: var(--st-cancelado-fg); }
.tt-row:last-child { border-bottom: 0; } .tt-row:hover { background: var(--raised); }
.tt-status select { width: 100%; } .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; white-space: nowrap; }
.task-board { grid-template-columns: repeat(4, minmax(200px, 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; }
/* menu "Mover para" no cartão: abre dentro do próprio cartão (a coluna rola, e um menu flutuante ficaria cortado) */
.task-card { position: relative; }
.task-card .tc-top { padding-right: 26px; }
.task-card .tc-move { position: static; display: block; } /* .row-menu é relativo e vem depois na folha: aqui quem ancora o botão é o cartão */
.tc-move:not([open]) { margin-bottom: -6px; } /* fechado não ocupa linha: só o botão, preso no canto */
.tc-move > summary { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--r-full); color: var(--muted); cursor: pointer; }
.tc-move > summary:hover, .tc-move[open] > summary { background: var(--surface); color: var(--text); }
.tc-move .row-menu-list { position: static; width: 100%; min-width: 0; margin-top: 6px; box-shadow: none; }
.tc-move .row-menu-list .kicker { padding: 2px 10px 4px; }
.tc-move .row-menu-list form { margin: 0; } .tc-move .row-menu-list button { color: var(--text-2); } .tc-move .row-menu-list button:hover { background: var(--surface); color: var(--text); }
.task-board .column:has(.task-card) > .col-empty { display: none; }
.board .column:has(.kcard) > .col-empty { display: none; }
.task-board .col-more { display: block; padding: 8px 2px 0; }

/* ============ pauta e roteiro do vídeo ============ */
.pauta-list { display: grid; gap: 16px; }
.pauta-card { display: grid; gap: 10px; }
.pauta-head { align-items: flex-start; gap: 12px; } .pauta-head h3 { font-size: 16px; }
.pauta-body { max-height: 420px; overflow: auto; padding-right: 4px; }
.pauta-actions { gap: 8px; flex-wrap: wrap; align-items: center; }
.pauta-hist summary { cursor: pointer; } .pauta-hist ul { margin: 8px 0 0; display: grid; gap: 4px; }
.pauta-card .badge { vertical-align: middle; margin-left: 6px; }
/* link de aprovação (pauta, vídeo em revisão, capas): o estado em uma linha, a mensagem para copiar e o histórico */
.appr { display: grid; gap: 8px; justify-items: start; }
.appr-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-2); }
.appr-actions { gap: 12px; flex-wrap: wrap; align-items: center; }
.appr-note { margin: 0; padding: 6px 10px; border-left: 3px solid var(--line-strong); background: var(--raised); border-radius: 0 var(--r-card) var(--r-card) 0; color: var(--text-2); white-space: pre-wrap; }
.appr-hist summary { cursor: pointer; } .appr-hist ul { margin: 8px 0 0; display: grid; gap: 4px; }
.review-appr { margin: 12px 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.pauta-stuck { display: grid; gap: 6px; margin: 10px 0 0; } .pauta-stuck li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
@media (pointer: coarse) { .tc-move > summary { top: 4px; right: 4px; width: 36px; height: 36px; } .task-card .tc-top { padding-right: 34px; } .task-card { cursor: default; } }
.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); }
/* Calendário geral: filtros, visualizações e eventos de todos os tipos */
.cal-views { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.cal-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.cal-chip:hover { text-decoration: none; background: var(--raised); color: var(--text); } .cal-chip.on { background: var(--raised); color: var(--text); border-color: var(--text-2); }
.cal-chip.save { border-style: dashed; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.cal-types { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-check { position: relative; cursor: pointer; } .cal-check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cal-check span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--r-full); color: var(--muted); font-size: 13px; }
.cal-check input:checked + span { border-color: var(--text-2); color: var(--text); background: var(--raised); }
.cal-check input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.cal-resp { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); } .cal-resp select { padding: 5px 10px; }
.cal-count { margin-left: auto; }
.cal-month .cal-day, .cal-week .cal-day { min-width: 0; } .cal-week .cal-day { min-height: 220px; }
.cal-dl { display: none; } .cal-more { padding: 0 6px; }
@media (pointer: coarse) {
  .cal-more { display: block; padding: 10px 6px; } .badge-btn { min-height: 32px; padding-inline: 10px; }
  button.dot, span.dot[role="button"] { min-width: 36px; min-height: 36px; justify-content: center; }
  .acct-row a.small, .int-cards a.small, summary.small, .fin-list .plan-list-main a { display: inline-block; padding-block: 8px; }
  dd.handle a[href^="https://wa.me"] { display: inline-block; padding-block: 8px; }
}
.cal-ev { display: flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: var(--r-tag); font-size: 12px; background: var(--raised); color: var(--text); overflow: hidden; white-space: nowrap; min-width: 0; }
.cal-ev:hover { text-decoration: none; filter: brightness(1.2); } .cal-ev svg { flex-shrink: 0; }
.cal-ev-t { overflow: hidden; text-overflow: ellipsis; min-width: 0; } .cal-ev-time { font-size: 11px; color: var(--text-2); } .cal-ev-amt { margin-left: auto; font-size: 11px; padding-left: 4px; }
.cal-month .cal-ev-amt { display: none; } /* no mês o título vem primeiro; o valor fica na dica e nas visões de semana e lista */
.cal-month .cal-ev, .cal-week .cal-ev { min-height: 24px; }
.cal-ev.ev-gravacao { background: var(--st-agendado-bg); color: var(--st-agendado-fg); } .cal-ev.ev-lembrete { background: var(--st-edicao-bg); color: var(--st-edicao-fg); }
.cal-ev.ev-gravacao .cal-ev-time, .cal-ev.ev-lembrete .cal-ev-time { color: inherit; opacity: .8; }
.cal-ev.is-tentative { background: transparent; border: 1px dashed var(--line-strong); color: var(--text-2); }
.cal-ev.is-done { background: transparent; color: var(--muted); } .cal-ev.is-done .cal-ev-t { text-decoration: line-through; }
.cal-ev.is-late { background: var(--st-cancelado-bg); color: var(--st-cancelado-fg); }
.cal-list-day { margin-bottom: 20px; } .cal-list-day h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin: 0 0 6px; }
.cal-list-day.today h3 { color: var(--text); }
.cal-list-day li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); } .cal-list-day li:hover { background: var(--raised); }
.cal-li-time { color: var(--text-2); font-size: 12px; } .cal-li-amt { font-size: 12px; text-align: right; }
.cal-li-main { display: flex; gap: 10px; align-items: flex-start; color: var(--text); } .cal-li-main:hover { text-decoration: none; } .cal-li-main > span:last-child { display: grid; gap: 2px; min-width: 0; }
.cal-li-ic { color: var(--text-2); padding-top: 2px; }
.cal-list-day li.is-done strong { color: var(--muted); text-decoration: line-through; } .cal-list-day li.is-late strong { color: var(--bad); }
@media (max-width: 760px) { /* celular: uma coluna só com os dias que têm evento */
  .cal-month, .cal-week { grid-template-columns: 1fr; } .cal-month .cal-dow, .cal-week .cal-dow { display: none; }
  .cal-month .cal-day:not(.has-ev), .cal-week .cal-day:not(.has-ev) { display: none; } .cal-month .cal-day, .cal-week .cal-day { min-height: 0; scroll-margin-top: 72px; }
  .cal-month .cal-ev, .cal-week .cal-ev { min-height: 36px; font-size: 13px; } .cal-month .cal-ev-amt { display: inline; }
  .cal-day .cal-n { display: none; } .cal-dl { display: block; font-size: 11px; color: var(--text-2); }
  .cal-day.today .cal-dl { color: var(--on-action); background: var(--action); border-radius: var(--r-full); padding: 0 8px; width: fit-content; }
  .cal-count { margin-left: 0; width: 100%; }
}
.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) {
  .tt-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main dot" "status due"; row-gap: 8px; }
  .tt-row .tt-status select { width: auto; max-width: 100%; } .tt-row .tt-com { 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)); } .stepper.s8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 860px) { .stepper.s5, .stepper.s7, .stepper.s8 { 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; }
/* Insights: resumo por rede, gráfico de seguidores (barras neutras: medir não é ação) e os posts que mais renderam */
.ins-row { grid-template-columns: minmax(0, 1fr) auto; }
.platform-card .stat-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); } .platform-card .stat { align-content: start; } .platform-card .stat-n { font-size: 30px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ins-who { display: grid; gap: 2px; min-width: 0; } .ins-who .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-big { display: grid; justify-items: end; gap: 2px; text-align: right; } .ins-n { font: 600 24px var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ins-chart { display: block; width: 100%; height: 120px; margin: 12px 0 6px; } .ins-chart rect { fill: var(--line-strong); } .ins-chart rect:hover { fill: var(--text-2); }
.ins-top { display: grid; gap: 0; margin-top: 8px; }
.ins-post { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ins-post:first-child { border-top: 0; } .ins-post-main { display: grid; gap: 2px; min-width: 0; } .ins-post-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ins-post-n { display: flex; gap: 12px; text-align: right; }
@media (max-width: 640px) { .platform-card .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .platform-card .stat { padding: 12px; } .platform-card .stat-n { font-size: 22px; } .ins-post { grid-template-columns: minmax(0, 1fr) auto; } .ins-post-n { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; } .ins-n { font-size: 20px; } }
.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; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); } .results li:last-child { border-bottom: 0; }
.bad-text { color: var(--bad); }
/* Histórico de envio da publicação: uma tentativa por linha (data em mono, motivo, o que foi feito com o arquivo, chip por rede) */
.attempt-list { margin: 0; padding: 0; display: grid; gap: 0; }
.attempt-list > li { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); } .attempt-list > li:first-child { border-top: 0; }
.attempt-list p { margin: 0; }
.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); }
.toast.chat { padding: 14px 16px; border-left-width: 4px; font-size: 14px; animation: toast-in 240ms var(--ease); } .toast.chat strong { font: 600 15px var(--f-display); } .toast.chat .kicker { order: -1; color: var(--muted); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
:root[data-theme="light"] .toast { box-shadow: 0 8px 24px rgba(16, 18, 16, .08); border-left-color: var(--text); }
@media (prefers-reduced-motion: reduce) { .toast, .toast.chat { transition: none; animation: 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(--accent); }
.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(16, 18, 16, .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(16, 18, 16, .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)); }
/* Foto do convidado: moldura padrão 4:3, a mesma da plateia, do media kit e do portal do patrocinador */
.guest-photo { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 18%; border-radius: 6px; border: 1px solid var(--line); background: var(--raised); display: block; } .guest-photo.md { width: 200px; }
.crop-stage { position: relative; width: min(100%, calc(48vh * 4 / 3)); margin-inline: auto; aspect-ratio: 4 / 3; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.crop-stage:active { cursor: grabbing; } .crop-stage:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.crop-stage canvas { display: block; width: 100%; height: 100%; }
.crop-grid { position: absolute; inset: 0; pointer-events: none; --g: color-mix(in srgb, var(--text) 45%, transparent); filter: drop-shadow(0 0 .5px color-mix(in srgb, var(--bg) 80%, transparent));
  background: linear-gradient(to right, transparent calc(33.33% - .5px), var(--g) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), var(--g) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(to bottom, transparent calc(33.33% - .5px), var(--g) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), var(--g) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.crop-zoom { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; } .crop-zoom input { accent-color: var(--action); width: 100%; }
#modal-recorte .modal-actions { position: sticky; bottom: -20px; z-index: 2; background: var(--surface); padding: 12px 0 0; margin-top: 0; border-top: 1px solid var(--line); } /* o botão principal sempre à vista */
.crop-previews { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: center; } .crop-previews figure { margin: 0; display: grid; gap: 6px; }
.crop-previews canvas { display: block; border-radius: 6px; border: 1px solid var(--line); }
.crop-previews figcaption { font: 500 11px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat { align-content: start; }
.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; }

/* ============ projetos: seletor no topo do menu e sigla nos cartões ============ */
/* Escolher o recorte não é ação: nada de verde. O atual leva o check na cor do texto. */
.project-switch { display: block; margin: -10px 0 -14px; }
.project-switch > summary { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-field); color: var(--text); cursor: pointer; transition: background var(--t) var(--ease), border-color var(--t) var(--ease); }
.project-switch > summary:hover, .project-switch[open] > summary { background: var(--raised); border-color: var(--line-strong); }
.project-switch > summary .icon { flex: 0 0 auto; color: var(--muted); transition: transform var(--t) var(--ease); } .project-switch[open] > summary .icon { transform: rotate(180deg); }
.project-switch-txt { display: grid; gap: 1px; flex: 1; min-width: 0; } .project-switch-txt .kicker { margin: 0; }
.project-switch-txt strong { font: 600 14px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-switch-sigla { display: none; color: var(--text); letter-spacing: .08em; }
.project-switch-list { left: 0; right: 0; min-width: 0; }
.project-switch-list button { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--text-2); cursor: pointer; font-family: var(--f-body); }
.project-switch-list button > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-switch-list button:hover { background: var(--surface); color: var(--text); } .project-switch-list button.on { color: var(--text); font-weight: 600; }
.project-switch-code { color: var(--muted); letter-spacing: .08em; } .project-switch-list .icon { flex: 0 0 auto; color: var(--text); }
.project-now { display: none; }
.project-tag { color: var(--muted); letter-spacing: .08em; white-space: nowrap; }
h1 .project-tag { vertical-align: middle; font-weight: 500; }
/* Em outros projetos (cadastro do convidado e do patrocinador): uma linha por participação, resumo e nada mais. */
.other-proj { display: grid; gap: 8px; margin: 0; }
.other-proj li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.other-proj .op-name { font-weight: 600; }
.other-proj li .badge { flex: none; }
#outros-projetos .row { flex-wrap: wrap; gap: 8px; }
/* "Trazer do outro projeto": uma linha por arquivo, nome em cima e a pasta/projeto em mono embaixo. */
.bring-list { display: grid; gap: 10px; margin: 4px 0 0; max-height: 50vh; overflow: auto; }
.bring-list label.check { align-items: flex-start; padding-bottom: 0; }
.bring-list label.check .mono { display: block; }
.project-field { display: grid; gap: 6px; justify-items: start; } .project-field .seg-radio label { white-space: nowrap; } .project-field p { margin: 0; }
.proj-list { margin-top: 0; } .proj-list .cat-row:first-child { border-top: 0; padding-top: 0; }
.proj-mods { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; } .proj-note { margin: 16px 0 0; }
@media (min-width: 861px) {
  html[data-sidebar="collapsed"] .project-switch > summary { justify-content: center; padding: 6px 2px; }
  html[data-sidebar="collapsed"] .project-switch-txt, html[data-sidebar="collapsed"] .project-switch > summary .icon { display: none; }
  html[data-sidebar="collapsed"] .project-switch-sigla { display: block; font-size: 11px; }
  html[data-sidebar="collapsed"] .project-switch-list { right: auto; min-width: 220px; }
}
@media (max-width: 860px) {
  .project-switch { display: none; order: 3; flex-basis: 100%; margin: 12px 0 0; }
  .sidebar.open .project-switch { display: block; } .project-switch > summary { min-height: 44px; }
  .project-switch-list button { padding: 12px 10px; }
  .project-now { display: inline-block; margin-left: 10px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: var(--r-tag); color: var(--text-2); letter-spacing: .08em; }
}

/* ============ menu lateral recolhível (só no computador; no celular o menu já é a barra de cima) ============ */
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-collapse { padding: 6px; } .sidebar-collapse .icon { transition: transform var(--t) var(--ease); }
.app { transition: grid-template-columns var(--t) var(--ease); }
@media (max-width: 860px) { .sidebar-collapse { display: none; } }
@media (min-width: 861px) {
  html[data-sidebar="collapsed"] { --sidebar: 76px; }
  html[data-sidebar="collapsed"] .sidebar { padding: 20px 10px; }
  html[data-sidebar="collapsed"] .sidebar-top { flex-direction: column; gap: 10px; }
  html[data-sidebar="collapsed"] .sidebar .brand-menu { padding: 0; }
  html[data-sidebar="collapsed"] .brand-text { display: none; }
  html[data-sidebar="collapsed"] .sidebar-collapse .icon { transform: scaleX(-1); }
  html[data-sidebar="collapsed"] .search-trigger { justify-content: center; padding: 9px 0; }
  html[data-sidebar="collapsed"] .search-trigger span, html[data-sidebar="collapsed"] .search-trigger kbd { display: none; }
  html[data-sidebar="collapsed"] .nav a { position: relative; justify-content: center; padding: 10px 0; }
  html[data-sidebar="collapsed"] .nav a > span:not(.nav-count) { display: none; }
  html[data-sidebar="collapsed"] .nav a .nav-count { position: absolute; top: 1px; right: 4px; min-width: 16px; margin: 0; padding: 0 4px; font-size: 10px; line-height: 16px; }
  html[data-sidebar="collapsed"] .nav-group { height: 1px; margin: 10px 8px; padding: 0; overflow: hidden; font-size: 0; background: var(--line); }
  html[data-sidebar="collapsed"] .who { justify-content: center; padding: 6px 0; } html[data-sidebar="collapsed"] .who-txt { display: none; }
  html[data-sidebar="collapsed"] .foot-actions { flex-direction: column; align-items: center; padding: 0; }
  html[data-sidebar="collapsed"] .foot-actions .icon-btn > span:not(.theme-moon):not(.theme-sun) { display: none; }
}

/* ============ quadros (Kanban): ocupam a altura da tela, a barra horizontal fica no pé da tela e cada coluna rola sozinha ============ */
.board { scrollbar-gutter: stable; }
.board::-webkit-scrollbar { height: 14px; width: 14px; }
.board::-webkit-scrollbar-track { background: var(--surface); border-radius: var(--r-full); }
.board::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text) 34%, transparent); border: 3px solid var(--surface); border-radius: var(--r-full); }
.board::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--text) 58%, transparent); }
.cards::-webkit-scrollbar { width: 10px; }
.cards::-webkit-scrollbar-track { background: transparent; }
.cards::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text) 24%, transparent); border: 2px solid transparent; background-clip: padding-box; border-radius: var(--r-full); }
.cards::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--text) 46%, transparent); background-clip: padding-box; }
@supports not selector(::-webkit-scrollbar) { .board, .cards { scrollbar-width: auto; scrollbar-color: color-mix(in srgb, var(--text) 40%, transparent) var(--surface); } }
@media (min-width: 861px) {
  .main:is(:has(.board:not(.pboard)), :has(.pane:not([hidden]) .pboard)) { height: 100vh; height: 100dvh; padding-bottom: 10px; display: flex; flex-direction: column; overflow: hidden; }
  .main:is(:has(.board:not(.pboard)), :has(.pane:not([hidden]) .pboard)) > .container { flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0; display: flex; flex-direction: column; }
  .main:is(:has(.board:not(.pboard)), :has(.pane:not([hidden]) .pboard)) .board { flex: 1; min-height: 0; padding-bottom: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); overflow-x: scroll; overflow-y: hidden; }
  .main:is(:has(.board:not(.pboard)), :has(.pane:not([hidden]) .pboard)) .column { display: flex; flex-direction: column; min-height: 0; max-height: 100%; }
  .main:is(:has(.board:not(.pboard)), :has(.pane:not([hidden]) .pboard)) .column .cards { flex: 1; min-height: 60px; overflow-y: auto; overflow-x: hidden; align-content: start; padding-right: 2px; }
  .pboard { min-height: 340px; }
  .main:has(.pane:not([hidden]) .pboard) { overflow-y: auto; }
  .main:has(.pane:not([hidden]) .pboard) .tabs-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .main:has(.pane:not([hidden]) .pboard) .pane:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
}
@media (max-width: 860px) { .board .cards { max-height: 70dvh; overflow-y: auto; } }

/* ============ calendário: botão de filtros com painel ============ */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.cal-filter { position: relative; } .cal-filter > summary { list-style: none; cursor: pointer; } .cal-filter > summary::-webkit-details-marker { display: none; }
.cal-filter[open] > summary { background: var(--raised); border-color: var(--text-2); }
.cal-filter-panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(440px, calc(100vw - 32px)); display: grid; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); }
:root[data-theme="light"] .cal-filter-panel { box-shadow: 0 8px 24px rgba(16, 18, 16, .08); }
.cal-filter-panel fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; } .cal-filter-panel legend { padding: 0; margin-bottom: 6px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cal-filter-panel .cal-types { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-filter-bulk { display: flex; gap: 12px; }
/* Filtros combináveis (partials/filter-builder.ejs, no estilo do ClickUp): botão "Filtros" + painel com uma linha por filtro
   (ONDE / E | OU · campo · condição · valor · x). Nada de verde: filtrar não é a ação da tela. */
.fb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; min-width: 0; }
.fb-summary { min-width: 0; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-panel { width: min(700px, calc(100vw - 32px)); gap: 10px; }
.fb-rows { display: grid; gap: 8px; }
.fb-row { display: grid; grid-template-columns: 52px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.4fr) 28px; gap: 8px; align-items: center; }
.fb-row select, .fb-row input, .fb-pick-btn { height: 34px; min-height: 0; font-size: 13px; padding-top: 0; padding-bottom: 0; }
.fb-lead { font-size: 11px; letter-spacing: .14em; color: var(--muted); text-align: right; padding-right: 2px; }
.fb-mode { padding-left: 8px; padding-right: 4px; font: 500 11px var(--f-mono); letter-spacing: .1em; }
.fb-days { display: flex; align-items: center; gap: 6px; } .fb-days input { width: 84px; }
.fb-novalue { display: block; height: 34px; }
.fb-del { width: 28px; height: 28px; color: var(--muted); } .fb-del:hover { color: var(--text); background: var(--raised); }
.fb-foot { display: flex; align-items: center; gap: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.fb-foot .link { display: inline-flex; align-items: center; gap: 6px; padding-top: 8px; }
.fb-pick { position: relative; min-width: 0; }
.fb-pick > summary { list-style: none; } .fb-pick > summary::-webkit-details-marker { display: none; }
.fb-pick-btn { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--bg); color: var(--text); cursor: pointer; min-width: 0; }
.fb-pick-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-pick[open] > .fb-pick-btn { border-color: var(--text-2); }
.fb-pick-list { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; width: max(100%, 240px); max-height: 260px; overflow: auto; display: grid; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); }
:root[data-theme="light"] .fb-pick-list { box-shadow: 0 8px 24px rgba(16, 18, 16, .08); }
.fb-pick-search { height: 32px; margin-bottom: 4px; font-size: 13px; }
.fb-pick-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-tag); font-size: 13px; color: var(--text); cursor: pointer; }
.fb-pick-item:hover { background: var(--raised); } .fb-pick-item input { accent-color: var(--action); margin: 0; }
.fb-views .fb-view { display: inline-flex; align-items: center; gap: 2px; }
.fb-view-del { width: 22px; height: 22px; color: var(--muted); } .fb-view-del:hover { color: var(--text); background: var(--raised); }
.clip-category { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
/* "Campos do cartão" (partials/card-fields.ejs): parte desligada some mesmo quando a classe dela define display */
[data-cf][hidden] { display: none !important; }
.cf-panel { width: min(320px, calc(100vw - 32px)); gap: 8px; }
.cf-title { margin: 0; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.cf-list { display: grid; gap: 2px; }
.cf-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-tag); font-size: 13px; color: var(--text); cursor: pointer; }
.cf-item:hover { background: var(--raised); } .cf-item input { accent-color: var(--action); margin: 0; }
.cf .fb-foot { justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.board-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; } .board-tools .fb-bar { margin-bottom: 0; }
@media (max-width: 640px) {
  .fb-panel { position: fixed; left: 16px; right: 16px; top: auto; width: auto; max-height: 70vh; overflow: auto; }
  .fb-row { grid-template-columns: 64px minmax(0, 1fr) 28px; row-gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .fb-row .fb-mode { font-size: 13px; padding-left: 10px; }
  .fb-row > :nth-child(1) { grid-area: 1 / 1; } .fb-row > :nth-child(2) { grid-area: 1 / 2; } .fb-row > :nth-child(5) { grid-area: 1 / 3; }
  .fb-row > :nth-child(3) { grid-area: 2 / 2; } .fb-row > :nth-child(4) { grid-area: 3 / 2; }
  .fb-row select, .fb-row input, .fb-pick-btn { height: 44px; font-size: 16px; }
  .fb-summary { white-space: normal; }
}
.cal-filter-actions { display: flex; align-items: center; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.cal-summary { max-width: 100%; }

/* ============ novidades e versão ============ */
.version-link { font-size: 11px; letter-spacing: .12em; color: var(--muted); padding: 0 4px; } .version-link:hover { color: var(--text); text-decoration: none; }
html[data-sidebar="collapsed"] .version-link { text-align: center; padding: 0; font-size: 9px; letter-spacing: 0; }
.release { display: grid; gap: 12px; margin-bottom: 16px; }
.release-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .release-head h2 { margin: 0; flex: 1; min-width: 200px; }
.release-v { font-size: 12px; letter-spacing: .12em; color: var(--muted); } .release-now .release-v { color: var(--text); }
.release-items { display: grid; gap: 10px; } .release-items li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: baseline; font-size: 14px; color: var(--text-2); }
.release-toast { position: fixed; left: calc(var(--sidebar) + 20px); bottom: 20px; z-index: 61; display: flex; align-items: flex-start; gap: 4px; width: min(340px, calc(100vw - 32px)); padding: 12px 8px 12px 14px; background: var(--raised); border: 1px solid var(--line-strong); border-left: 2px solid var(--action); border-radius: var(--r-card); }
.release-toast-main { display: grid; gap: 2px; flex: 1; color: var(--text); } .release-toast-main:hover { text-decoration: none; } .release-toast-main .small { color: var(--text-2); }
.release-toast form { margin: 0; }
:root[data-theme="light"] .release-toast { box-shadow: 0 8px 24px rgba(16, 18, 16, .08); border-left-color: var(--text); }
@media (max-width: 860px) { .release-toast { left: 16px; right: 16px; width: auto; } .release-items li { grid-template-columns: 1fr; gap: 4px; } }

.gcal-types { display: grid; gap: 4px; } .gcal-types li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gcal-min { display: flex; align-items: center; gap: 6px; white-space: nowrap; } .gcal-min input { width: 72px; min-height: 32px; text-align: right; font-family: var(--f-mono); }

/* ============ cadência de abordagem ============ */
.seg-wrap { display: grid; gap: 6px; } .seg-label { font-weight: 500; font-size: 13px; color: var(--text-2); }
.outreach-list { display: grid; gap: 10px; margin-top: 10px; }
.outreach-list li { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); } .outreach-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.outreach-chip { display: inline-flex; align-items: center; gap: 4px; } .outreach-chip.warn { color: var(--st-edicao-fg); } .outreach-chip.bad { color: var(--st-cancelado-fg); } .outreach-chip.ok { color: var(--text); }
.kcard .meta .outreach-chip { text-transform: uppercase; }
@media (max-width: 860px) { .outreach-list li { grid-template-columns: 1fr auto; } .outreach-list li > :first-child { grid-column: 1 / -1; } }
.today { margin-bottom: 24px; } .today-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.today-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.today-list { display: grid; gap: 10px; margin-top: 8px; } .today-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); } .today-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.goal { display: grid; gap: 10px; align-content: start; } .goal-n { margin: 0; font: 700 40px/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; } .goal-l { margin: -6px 0 0; } .goal-n .mono { font: inherit; } .goal-n .hit { color: var(--action); }
.goal-bar { width: 100%; height: 6px; display: block; } .goal-bar .bg { fill: var(--raised); } .goal-bar .fg { fill: var(--text-2); } .goal-bar.hit .fg { fill: var(--action); }
/* banco de horas do estúdio (Financeiro): medir não é ação, nunca verde; âmbar acabando, vermelho no saldo devedor */
.bank-card { margin-bottom: 16px; display: grid; gap: 12px; }
.bank-n { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .bank-n .stat-n { white-space: nowrap; }
.bank-line { margin: 0; }
/* uma linha por projeto no banco de horas: "Pulso · 6,5 de 10 h" (cota é orçamento, nunca lime) */
.bank-projects { display: grid; gap: 4px; margin-top: 8px; }
.bank-projects > li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.bank-bar.is-low .fg { fill: var(--st-edicao-fg); } .bank-bar.is-neg .fg { fill: var(--st-cancelado-fg); }
.bank-use { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .bank-use h3 { margin-bottom: 4px; }
.bank-use .plan-list > li { grid-template-columns: auto minmax(0, 1fr) auto; } .bank-use .plan-list > li > .mono { grid-column: auto; }
@media (max-width: 860px) { .bank-use { grid-template-columns: 1fr; gap: 16px; } }
.bank-off { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-card); }
.bank-off p { margin: 0; }
@media (max-width: 860px) { .today-grid { grid-template-columns: 1fr; gap: 20px; } .today-list li { grid-template-columns: 1fr auto; } .today-list li > .mono { grid-column: 1 / -1; order: 3; } }
.stat-n.hl-bad { color: var(--st-cancelado-fg); }
.hbar { width: 100%; min-width: 56px; height: 6px; display: block; } .hbar .bg { fill: var(--raised); } .hbar .fg { fill: var(--text-2); }
.bar-col { width: 16%; } td.num, th.num { text-align: right; }
.checks { display: grid; gap: 12px; } .checks li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: baseline; }
.seg-wrap { min-width: 0; } .seg-wrap .seg-radio { max-width: 100%; flex-wrap: wrap; row-gap: 2px; } .seg-wrap .seg-radio label { white-space: nowrap; }
@media (max-width: 520px) { .seg-wrap .seg-radio { border-radius: 20px; } .seg-wrap .seg-radio label { padding: 0 12px; } }

/* ============ painel de gestão: grupos e abas internas ============ */
.subnav.subnav-groups { margin-bottom: 18px; } .subnav.subnav-groups:has(+ .subnav-inner) { margin-bottom: 12px; } .subnav-groups a { padding: 11px 16px; font-size: 14px; }
.subnav-inner { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.subnav-inner a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--line-strong); color: var(--text-2); font-weight: 600; font-size: 13px; }
.subnav-inner a:hover { color: var(--text); text-decoration: none; background: var(--surface); } .subnav-inner a.on { background: var(--raised); color: var(--text); border-color: var(--text-2); }

.today-list.two-col li { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }

.wait-line { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; } .wait-line .icon { flex: none; }

/* ============ revisão: controles do player ============ */
.player-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.player-controls .pc { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); color: var(--text-2); font: 600 13px var(--f-body); cursor: pointer; }
.player-controls .pc:hover { color: var(--text); border-color: var(--text-2); } .player-controls .pc:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.player-controls .pc-play { width: 40px; padding: 0; justify-content: center; color: var(--text); background: var(--raised); }
.pc-speed select { height: 36px; min-height: 36px; width: auto; padding: 0 28px 0 12px; border-radius: var(--r-full); font-size: 13px; }
.pc-time { margin-left: auto; font-size: 12px; color: var(--muted); } .pc-hint { margin: 6px 0 0; }
.comment.just-added { animation: justAdded 2.4s ease-out; } @keyframes justAdded { from { background: color-mix(in srgb, var(--action) 18%, var(--raised)); } to { background: var(--raised); } }
@media (prefers-reduced-motion: reduce) { .comment.just-added { animation: none; } }
@media (max-width: 520px) { .pc-time { margin-left: 0; width: 100%; } .player-controls .pc { padding: 0 10px; } }
@media (max-width: 860px) { .pc-hint { display: none; } }

/* ---------------------------------------------------------------- envio de material e envios em segundo plano */
.flash[hidden] { display: none; }
.uploader.quiet { border-style: dashed; background: transparent; }
[data-material-drop].dropping { outline: 2px dashed var(--action); outline-offset: -6px; }
.file-group-title { margin: 18px 0 0; font-size: 14px; } .file-group-title + .file-list { margin-top: 4px; }
.file-group { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.file-group > summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; }
.msec { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); } .msec:first-child { border-top: 0; padding-top: 0; }
.msec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .msec-bulk { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.msec-bulk select { min-height: 32px; padding: 4px 10px; }
.mlist { display: grid; gap: 6px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.mrow > .mrow-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mrow select, .mrow input[type="text"] { min-height: 34px; padding: 4px 10px; font-size: 13px; width: 100%; }
.mrow > .icon-btn { font-size: 18px; line-height: 1; padding: 4px 8px; }
.msec-more > summary { cursor: pointer; } .msec-more .mlist { margin-top: 8px; max-height: 240px; overflow: auto; }
.msec-more .mrow { grid-template-columns: minmax(0, 1fr) auto auto; }

.upl-shell { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; border: 0; background: var(--bg); }
body.upl-shell-on { overflow: hidden; }
body.upl-shell-on > :not(.upl-shell):not(.upl-tray) { display: none !important; }
.upl-tray { position: fixed; right: 84px; bottom: 20px; z-index: 58; width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; }
.upl-tray[hidden] { display: none; }
.upl-head { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px 14px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.upl-head-txt { display: grid; gap: 2px; flex: 1; min-width: 0; } .upl-title { font-size: 14px; font-weight: 600; } .upl-meta { color: var(--muted); }
.upl-chev { color: var(--text-2); display: grid; transition: transform var(--t) var(--ease); } .upl-tray.open .upl-chev { transform: rotate(180deg); }
.upl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--raised); } .upl-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s linear; }
.upl-tray.is-error .upl-title { color: var(--bad); }
.upl-body { border-top: 1px solid var(--line); max-height: min(46vh, 380px); overflow: auto; }
.upl-list { display: grid; }
.upl-item { display: grid; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); } .upl-item:last-child { border-bottom: 0; }
.upl-row { display: flex; align-items: center; gap: 8px; }
.upl-name { display: grid; gap: 1px; flex: 1; min-width: 0; } .upl-name .u-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.upl-act { display: inline-flex; } .upl-act .icon-btn { padding: 4px 6px; }
.upl-item .bar { height: 3px; background: var(--raised); border-radius: 2px; overflow: hidden; } .upl-item .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.upl-item.ok .u-state { color: var(--text-2); } .upl-item.err .u-state { color: var(--bad); } .upl-item.err .bar i { background: var(--bad); }
.upl-foot { padding: 8px 14px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .upl-tray { left: 8px; right: 8px; bottom: 76px; width: auto; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto auto; } .mrow > select, .mrow > input[type="text"] { grid-column: 1 / -1; order: 5; }
}
@media (prefers-reduced-motion: reduce) { .upl-bar i, .upl-item .bar i, .upl-chev { transition: none; } }
dialog[data-material-dialog] { max-height: calc(100vh - 32px); overflow: auto; }
dialog[data-material-dialog] .modal-actions { position: sticky; bottom: -20px; z-index: 2; background: var(--surface); padding: 12px 0 0; margin-top: 8px; border-top: 1px solid var(--line); } /* o botão de enviar sempre à vista */
.fin-filter input[type="search"] { flex: 1 1 220px; min-width: 180px; }
.fin-filter { flex-wrap: wrap; flex: 1 1 520px; }

/* ---------------------------------------------------------------- plateia: barra, tabela e cards */
.pbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.pbar-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 520px; min-width: 0; }
.pbar-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.pbar-search { position: relative; flex: 1 1 240px; min-width: 200px; max-width: 360px; display: block; }
.pbar-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pbar-search input { width: 100%; padding-left: 36px; }
.pbar-filters input, .pbar-filters select { height: 38px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.pbar-filters select { width: auto; max-width: 230px; }
.pbar .seg a { padding: 0 12px; display: inline-flex; align-items: center; height: 32px; }
.pbar .icon-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border: 1px solid var(--line); }
.pbar .icon-btn:hover { border-color: var(--line-strong); }
.ellipsis { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pact { display: inline-flex; align-items: center; gap: 2px; justify-content: flex-end; }
.pact form { display: inline-flex; margin: 0; }
.pact .icon-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
.pcard-head { display: flex; align-items: center; gap: 8px; min-width: 0; } .pcard-head strong { flex: 1; min-width: 0; }
.pchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; } .pchips:empty { display: none; }
.ptable { table-layout: fixed; min-width: 880px; }
.ptable th:nth-child(1) { width: 26%; } .ptable th:nth-child(2) { width: 17%; } .ptable th:nth-child(3) { width: 21%; } .ptable th:nth-child(4) { width: 17%; } .ptable th:nth-child(5) { width: 19%; }
.ptable td { padding-top: 14px; padding-bottom: 14px; } .ptable td.actions { text-align: right; }
.ptable td .row-menu > summary { cursor: pointer; display: inline-flex; align-items: center; }
.pwhen { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; } .pwhen .icon { vertical-align: -2px; }
.menu-sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.row-menu-list form { margin: 0; }
.pcard { grid-template-rows: auto; gap: 6px; padding: 14px; cursor: grab; }
.pcard .pcard-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 22px; margin-top: 2px; }
.pcard .pcard-meta .icon { vertical-align: -2px; }
.pcard .pcard-foot { display: flex; justify-content: flex-end; margin: 2px -6px -6px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.pboard .column header { padding: 2px 4px 12px; }
@media (max-width: 860px) { .pbar-tools { width: 100%; justify-content: space-between; } .pbar-search { max-width: none; flex-basis: 100%; } .pbar-filters select { flex: 1 1 140px; max-width: none; } }
.ptable .row-menu-list { left: 0; right: auto; }
.pbar-filters input[type="search"] { min-width: 0; }
.main:has(.pane:not([hidden]) .pboard) .lead { display: none; } /* no quadro o espaço é do quadro */

/* ---------------------------------------------------------------- tarefa por voz */
.voice-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); }
.voice-bar .btn { flex: none; } .voice-bar .small { min-width: 0; }
.voice-bar .voice-err { color: var(--bad); }
/* Nova tarefa vinda de uma mensagem: a escolha do que a IA lê (só com thread) e o andamento */
.tf-bar { flex-wrap: wrap; } .tf-bar[hidden] { display: none; }
.tf-bar.busy [data-tf-status]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--text-2); vertical-align: middle; animation: day-live 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .tf-bar.busy [data-tf-status]::before { animation: none; } }
.voice-bar.rec { border-color: var(--bad); border-style: solid; }
.voice-bar.rec .btn { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
.voice-bar.rec [data-voice-label]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--bad); animation: voice-pulse 1.2s ease-in-out infinite; }
.voice-bar.busy { opacity: .85; }
@keyframes voice-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .voice-bar.rec [data-voice-label]::before { animation: none; } }
@media (max-width: 700px) { .voice-bar { flex-direction: column; align-items: stretch; } }

/* ---------------------------------------------------------------- texto rico (tarefas e comentários), anexos e miniaturas de link */
.rte { position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--surface); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.rte:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 15%, transparent); }
.rte.dropping { border-style: dashed; border-color: var(--action); }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); } /* quebra linha quando falta espaço: todos os botões (inclusive o microfone) ficam à vista */
.rte-bar > * { flex: none; }
.rte-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--r-field); background: none; color: var(--text-2); cursor: pointer; transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.rte-btn:hover { background: var(--raised); color: var(--text); } .rte-btn.on { background: var(--raised); color: var(--action); }
.rte-btn.rec { color: var(--bad); background: var(--bad-bg); }
.rte-sep { width: 1px; height: 18px; margin: 0 6px; background: var(--line-strong); }
.rte-area { min-height: 140px; max-height: 55vh; overflow-y: auto; padding: 12px 14px; outline: none; }
.rte-sm .rte-area { min-height: 84px; }
.rte-area:empty::before, .rte-area:has(> br:only-child)::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.rte-area a[data-card]::after { content: "miniatura"; margin-left: 6px; padding: 0 5px; border-radius: var(--r-tag); background: var(--raised); color: var(--muted); font: 500 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.rte-linkbar, .rte-tablebar { padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--raised); }
.rte-linkbar[hidden], .rte-tablebar[hidden], .rte-linkrow[hidden] { display: none; }
.rte-linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .rte-linkrow input[type="url"] { flex: 1 1 220px; width: auto; padding: 6px 10px; }
.rte-linkrow label.check { padding-bottom: 0; align-self: center; }
.rte-tablebar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.rte-files { display: grid; gap: 8px; padding: 0 12px; } .rte-files:not(:empty) { padding-bottom: 10px; }
.rte-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--raised); }
.rte-chip.busy { opacity: .5; } .rte-chip .rte-chip-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rte-chip.is-audio { display: grid; } .rte-chip-head { display: flex; align-items: center; gap: 8px; } .rte-chip audio { width: 100%; height: 36px; }
.rte-chip .icon-btn { margin-left: auto; padding: 4px 6px; } .rte-ic { color: var(--text-2); display: inline-flex; }
.rte-transcript { margin: 0; padding-left: 10px; border-left: 2px solid var(--line-strong); color: var(--text-2); white-space: pre-wrap; }
.rte-status { margin: 0; padding: 0 12px 8px; min-height: 0; } .rte-status:empty { display: none; } .rte-status.err { color: var(--bad); }
.rte .mention-list { top: auto; bottom: 100%; margin: 0 0 4px; left: 12px; }

.rich-content { line-height: 1.6; overflow-wrap: anywhere; }
.rich-content > :first-child { margin-top: 0; } .rich-content > :last-child { margin-bottom: 0; }
.rich-content p { margin: 0 0 .7em; }
.rich-content h2 { font: 600 18px/1.3 var(--f-display); letter-spacing: -.02em; margin: 1em 0 .4em; } .rich-content h3 { font: 600 15px/1.3 var(--f-display); margin: .9em 0 .35em; }
.rich-content ul, .rich-content ol { margin: 0 0 .7em; padding-left: 1.4em; } .rich-content li { margin: .15em 0; }
.rich-content blockquote { margin: 0 0 .7em; padding: 2px 0 2px 12px; border-left: 3px solid var(--line-strong); color: var(--text-2); }
.rich-content code { font: 12.5px var(--f-mono); background: var(--raised); padding: 1px 5px; border-radius: var(--r-tag); }
.rich-content pre { margin: 0 0 .7em; padding: 10px 12px; overflow-x: auto; background: var(--raised); border-radius: var(--r-card); font: 12.5px var(--f-mono); white-space: pre-wrap; } .rich-content pre code { background: none; padding: 0; }
.rich-content a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; } .rich-content a:hover { color: var(--action); }
.rich-content hr { border: 0; border-top: 1px solid var(--line); margin: 1em 0; }
.rich-content img { max-width: 100%; max-height: 420px; height: auto; border-radius: var(--r-card); border: 1px solid var(--line); cursor: zoom-in; display: block; margin: .4em 0; }
.rich-content table { width: auto; max-width: 100%; display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 .8em; }
.rich-content th, .rich-content td { min-width: 70px; padding: 6px 10px; border: 1px solid var(--line-strong); text-align: left; vertical-align: top; font-size: 13px; }
.rich-content th { background: var(--raised); font-weight: 600; }
.rich-content .link-card { display: flex; gap: 12px; align-items: stretch; margin: .5em 0 .8em; max-width: 520px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--raised); text-decoration: none; color: var(--text); }
.rich-content .link-card:hover { border-color: var(--text-2); color: var(--text); }
.rich-content .link-card img { width: 112px; max-height: none; height: auto; min-height: 84px; object-fit: cover; border: 0; border-radius: 0; margin: 0; cursor: pointer; flex: none; }
.rich-content .link-card-body { display: grid; gap: 3px; padding: 10px 12px 10px 0; min-width: 0; align-content: center; } .rich-content .link-card:not(:has(img)) .link-card-body { padding-left: 12px; }
.rich-content .link-card-body strong { font: 600 14px/1.3 var(--f-display); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rich-content .link-card-body .small { color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.task-docs { display: grid; gap: 6px; margin-top: 10px; } .task-docs li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-card); }
.task-docs .doc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmt-media { display: grid; gap: 8px; margin-top: 8px; } .cmt-audio audio { width: min(420px, 100%); height: 36px; } .cmt-audio .rte-transcript { margin-top: 6px; }
.cmt-docs { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 700px) { .rte-bar { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .rte-btn, .rte-sep { flex: none; } .rich-content .link-card { flex-direction: column; } .rich-content .link-card img { width: 100%; height: 140px; } .rich-content .link-card-body { padding: 0 12px 10px; } }
.field { display: grid; gap: 6px; } .field-label { font-weight: 500; font-size: 13px; color: var(--text-2); }
.desc-view { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); }
[data-desc-editor][hidden] { display: none; }
.grid-2 > *, .field, .rte, .rte-area, .rte-files { min-width: 0; max-width: 100%; }
.rte-area table { display: block; overflow-x: auto; max-width: 100%; }
.rte-area img { max-width: 100%; height: auto; }
.field { grid-template-columns: minmax(0, 1fr); } .rte-bar { max-width: 100%; }

/* ============ celular como app (PWA): barra de baixo, barra de cima enxuta, menu em tela cheia, áreas seguras do aparelho ============ */
.tabnav { display: none; }
.toast.warn { color: var(--text); border-left-color: var(--warn); }
.app-card { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 12px 12px 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.app-card[hidden] { display: none; }
.app-card-ico { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-full); background: var(--raised); color: var(--text); }
.app-card-txt { display: grid; gap: 2px; flex: 1; min-width: 0; } .app-card-txt .small { color: var(--text-2); }
.app-card-act { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; } .app-card-act .icon-btn { padding: 6px; }
.pwa-steps { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 12px; counter-reset: pwa; }
.pwa-steps li { display: flex; align-items: center; gap: 12px; }
.pwa-step-ico { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-field); background: var(--raised); color: var(--text); }
@media (max-width: 860px) {
  :root { --tabnav-h: 60px; --safe-b: env(safe-area-inset-bottom, 0px); }
  .app { align-content: start; } /* página curta: a sobra da tela não estica a barra de cima */
  /* barra de cima: logo e busca (ícone). O menu completo sai da barra de baixo. */
  .sidebar { top: 0; padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
  .sidebar-top { order: 1; } .search-trigger { order: 2; } .nav { order: 3; } .sidebar-foot { order: 4; }
  .sidebar .sidebar-toggle { display: none; }
  .search-trigger { width: 40px; height: 40px; margin: 0 -8px 0 auto; padding: 0; justify-content: center; border: 0; background: none; color: var(--text-2); }
  .search-trigger span, .search-trigger kbd { display: none; } .search-trigger .icon { width: 20px; height: 20px; }
  .sidebar.open { position: fixed; inset: 0 0 calc(var(--tabnav-h) + var(--safe-b)) 0; z-index: 46; overflow-y: auto; overscroll-behavior: contain; align-content: flex-start; }
  .sidebar.open .nav { overflow: visible; padding: 8px 0 16px; } .sidebar.open .nav a { padding: 12px 10px; }
  .sidebar.open .sidebar-foot { padding-bottom: 16px; }
  html.menu-open { overflow: hidden; }
  /* barra de baixo: atalhos do dia a dia; o ativo ganha o ícone verde */
  .tabnav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 47; height: calc(var(--tabnav-h) + var(--safe-b)); padding: 0 env(safe-area-inset-right, 0px) var(--safe-b) env(safe-area-inset-left, 0px); background: var(--bg); border-top: 1px solid var(--line); }
  .tabnav a, .tabnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 6px 2px 4px; border: 0; background: none; color: var(--muted); font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabnav a > span:last-child, .tabnav button > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabnav a:hover { text-decoration: none; color: var(--text); }
  .tabnav .on, .tabnav [aria-expanded="true"] { color: var(--text); }
  .tabnav .on .icon, .tabnav [aria-expanded="true"] .icon { color: var(--action); }
  :root[data-theme="light"] .tabnav .on .icon, :root[data-theme="light"] .tabnav [aria-expanded="true"] .icon { color: var(--text); }
  html.menu-open .tabnav .on { color: var(--muted); } html.menu-open .tabnav .on .icon { color: inherit; }
  .tabnav-ico { position: relative; display: inline-flex; }
  .tabnav-count { position: absolute; top: -6px; left: 11px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-full); background: var(--bad); color: var(--ink); font: 600 10px/16px var(--f-mono); letter-spacing: 0; text-align: center; }
  .tabnav-count[hidden] { display: none; } :root[data-theme="light"] .tabnav-count { color: var(--on-dark); } /* no claro o vermelho é escuro: texto claro */
  /* o que flutua sobe acima da barra de baixo */
  .main { padding-bottom: calc(var(--tabnav-h) + var(--safe-b) + 80px); overflow-x: clip; }
  .assist-fab { bottom: calc(var(--tabnav-h) + var(--safe-b) + 12px); }
  .toasts { left: 16px; right: 16px; width: auto; bottom: calc(var(--tabnav-h) + var(--safe-b) + 76px); }
  .upl-tray { bottom: calc(var(--tabnav-h) + var(--safe-b) + 76px); }
  .release-toast { top: auto; bottom: calc(var(--tabnav-h) + var(--safe-b) + 76px); } /* embaixo, acima do assistente: em cima cobria os botões do topo da página */
  /* campos com 16px: o iPhone não dá zoom ao tocar */
  input, select, textarea, .rte-area, .combo-trigger { font-size: 16px; }
  /* etapas, abas e controles segmentados: uma linha que rola de lado, sem empurrar a tela */
  .stepper { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 0; }
  .stepper::-webkit-scrollbar, .tabbar::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
  .stepper li { flex: 0 0 auto; width: 116px; scroll-snap-align: start; }
  .tabbar, .subnav, .subnav-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tabbar > *, .subnav > *, .subnav-inner > * { flex: 0 0 auto; white-space: nowrap; }
  .subnav::-webkit-scrollbar, .subnav-inner::-webkit-scrollbar { display: none; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .seg a { flex: 0 0 auto; white-space: nowrap; }
  .cal-head { flex-wrap: wrap; } .cal-title { flex: 1; min-width: 0; margin: 0; font-size: 18px; text-align: center; } .cal-count { flex-basis: 100%; }
  .app-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ico txt x" ". go go"; align-items: start; gap: 10px 12px; margin-top: -8px; }
  .app-card-ico { grid-area: ico; } .app-card-txt { grid-area: txt; } .app-card-act { display: contents; }
  .app-card-act .btn { grid-area: go; justify-self: start; } .app-card-act .icon-btn { grid-area: x; margin: -10px -10px 0 0; width: 44px; height: 44px; display: grid; place-items: center; }
  /* cabeçalhos: botões em uma linha só e menores; título e ação descem quando não cabem */
  .btn { white-space: nowrap; }
  .page-head > .row { gap: 6px; } .page-head > .row .btn { padding: 0 14px; }
  .row.spread { flex-wrap: wrap; }
}
.offline-card { display: grid; gap: 12px; } .offline-card h1 { font-size: 24px; } .offline-card p { margin: 0; }
@media (hover: none) and (pointer: coarse) { .kbd-hint, .palette-input kbd, .palette-foot > span { display: none; } } /* toque: sem dicas de teclado */
@media (max-width: 600px) { /* celular: janelas sobem de baixo, como folha de app; o botão de ação fica acima da barra do aparelho */
  dialog.modal, dialog.modal.modal-wide, dialog.modal.modal-xl { width: 100%; max-width: 100%; margin: auto 0 0; max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px)); overflow: auto; overscroll-behavior: contain; border-radius: var(--r-card) var(--r-card) 0 0; border-width: 1px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .assist { height: 82dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* ---- comentários: ações em ícones, "editado" e janela de edição ---- */
.btn.icon-only { width: 40px; padding: 0; flex: 0 0 auto; } .btn.icon-only.sm { width: 32px; }
.cmt-actions { display: flex; align-items: center; gap: 2px; margin: 4px 0 0 -6px; }
.cmt-actions .icon-btn { padding: 6px; color: var(--muted); } .cmt-actions .icon-btn:hover { color: var(--text); }
.cmt-actions .icon-btn.danger-ic:hover { color: var(--bad); }
.cmt-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 0 -2px; } .cmt-foot .cmt-actions { margin: 0; }
.reacts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.react-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: transparent; color: var(--text-2); font-size: 12px; cursor: pointer; transition: border-color 160ms cubic-bezier(.2,.8,.2,1); }
.react-chip:hover:not(:disabled) { border-color: var(--text-2); } .react-chip:disabled { cursor: default; }
.react-chip.mine { border-color: var(--text); color: var(--text); } /* a sua reação: anel na cor do texto; o verde fica para a ação */
.react-emoji, .react-pick { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.react-add { padding: 6px; color: var(--muted); } .react-add:hover { color: var(--text); }
.react-pop { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); } .react-pop[hidden] { display: none; }
.react-pick { width: 32px; height: 28px; border: 0; border-radius: var(--r-full); background: transparent; font-size: 16px; line-height: 1; cursor: pointer; } .react-pick:hover, .react-pick:focus-visible { background: var(--raised); }
.cmt-edited { display: inline-flex; color: var(--muted); }
[data-resolve="1"] .ic-undo, [data-resolve="0"] .ic-do { display: none; }
.ce-files { display: grid; gap: 4px; margin: 8px 0 0; } .ce-files:empty { display: none; }
.ce-file { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 2px 10px; border: 1px solid var(--line); border-radius: var(--r-field); font-size: 13px; }
.ce-file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ce-file.removed span { text-decoration: line-through; color: var(--muted); }
.ce-file.removed .icon-btn { color: var(--bad); }

/* ---- pastas do episódio (material bruto e versões do vídeo editado) ---- */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; margin-top: 14px; }
.folder { display: grid; gap: 6px; align-content: start; justify-items: start; text-align: left; padding: 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--text); font: inherit; cursor: pointer; transition: border-color var(--t) var(--ease), background var(--t) var(--ease); }
.folder:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--raised) 70%, var(--surface)); } .folder:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.folder.older { opacity: .75; }
.folder-ic { color: var(--text-2); display: inline-flex; }
.folder-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; } .folder-name .icon { color: var(--muted); flex: 0 0 auto; } .folder-name strong { font-weight: 600; }
.folder-panel { margin-top: 10px; }
.folder-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.folder-crumb .icon-btn { margin-left: -8px; padding: 6px; } .folder-title { margin: 0; font-size: 15px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.folder-sub { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; font-size: 13px; font-weight: 600; color: var(--text-2); } .folder-sub + .file-list { margin-top: 4px; }
@media (max-width: 520px) { .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.folder-panel .file-list li { flex-wrap: wrap; } .folder-panel .file-list li > .row { flex-wrap: nowrap; margin-left: auto; }

/* ---- baixar vários arquivos: selecionar, barra de seleção e baixar tudo (baixar.js) ---- */
.dl-actions { margin-left: auto; gap: 8px; flex-wrap: wrap; }
input.dl-check { display: none; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--action); cursor: pointer; }
[data-dl].selecting input.dl-check { display: inline-block; }
.folder-panel .file-list li > .dl-check + span { flex: 1 1 0; min-width: 0; }
[data-dl-item].picked { background: var(--raised); box-shadow: -8px 0 0 var(--raised), 8px 0 0 var(--raised); }
.dl-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--raised); }
.dl-bar[hidden], .dl-note[hidden] { display: none; }
.dl-note { margin: 8px 0 0; }
.gal-bulk { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 20px 4px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--raised); }
.gal-bulk[hidden], .gal-note[hidden] { display: none; }
.gal-note { margin: 4px 20px 0; }
.gal-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.gal-head > div:first-child { min-width: 0; }
.g-check { position: absolute; top: 8px; left: 8px; display: none; place-items: center; width: 24px; height: 24px; border-radius: var(--r-full); border: 2px solid var(--text); background: rgba(16, 18, 16, .55); color: transparent; }
.gal-grid.selecting .g-check { display: grid; }
.g-tile.sel .g-pic { outline: 3px solid var(--text); outline-offset: -3px; }
.g-tile.sel .g-check { background: var(--text); border-color: var(--text); color: var(--bg); }
[data-dl].selecting [data-dl-item] { cursor: pointer; }
.dl-toolbar { gap: 8px; margin: 10px 0 0; justify-content: flex-end; }
.cover-card[data-dl-item] { position: relative; }
.cover-card input.dl-check { position: absolute; top: 16px; left: 16px; z-index: 2; }
.cover-card.picked { box-shadow: none; outline: 2px solid var(--text); outline-offset: -1px; }
.dl-bar { position: fixed; z-index: 56; bottom: 20px; left: calc(var(--sidebar) + (100vw - var(--sidebar)) / 2); transform: translateX(-50%); width: max-content; max-width: min(980px, calc(100vw - var(--sidebar) - 2 * clamp(16px, 3vw, 48px))); margin: 0; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
html[data-sidebar="collapsed"] .dl-bar { left: calc(76px + (100vw - 76px) / 2); max-width: min(980px, calc(100vw - 76px - 2 * clamp(16px, 3vw, 48px))); }
:root[data-theme="light"] .dl-bar { box-shadow: 0 8px 24px rgba(16, 18, 16, .12); }
@media (max-width: 860px) { .dl-bar { left: 16px; right: 16px; transform: none; width: auto; max-width: none; bottom: calc(var(--tabnav-h, 0px) + var(--safe-b, 0px) + 12px); } }
body:has([data-dl].selecting) .assist-fab { display: none; } /* com a seleção ativa, a barra fica no lugar do assistente */
[data-dl].selecting { padding-bottom: 88px; } @media (max-width: 860px) { [data-dl].selecting { padding-bottom: 240px; } }
@media (max-width: 640px) { .gal-head { flex-wrap: wrap; } .gal-head > div:first-child { flex: 1 1 0; } .gal-tools { order: 3; flex: 1 0 100%; justify-content: flex-start; } input.dl-check { width: 22px; height: 22px; } .gal-bulk, .gal-note { margin-left: 16px; margin-right: 16px; } .bulk-actions { margin-left: 0; width: 100%; } }

/* ---- envio de material: arquivos repetidos, envios parados e armazenamento cheio ---- */
.mdup { gap: 10px; } .mdup .m-0 { margin: 0; }
.mdup-choice { flex-wrap: wrap; max-width: 100%; }
.mdup-note { margin: 0; padding: 8px 12px; border-left: 2px solid var(--warn); background: var(--warn-bg); color: var(--text); border-radius: 0 var(--r-field) var(--r-field) 0; }
.mrow-dup { grid-template-columns: minmax(0, 1fr) auto; }
.mrow-tag { margin-right: 6px; vertical-align: 1px; font-size: 10px; }
.stalled-note { display: grid; gap: 4px; margin-top: 14px; padding: 10px 12px; border-left: 2px solid var(--bad); background: var(--bad-bg); border-radius: 0 var(--r-field) var(--r-field) 0; }
.stalled-note .m-0 { margin: 0; } .stalled-note form { justify-self: start; margin-top: 2px; }
/* Material do patrocinador (aba Material): as mesmas pastas do material do episódio; pasta vazia aparece apagada (é onde se vê o que
   falta). Cada arquivo: miniatura (imagem sobre xadrez neutro, para logo branca ou preta aparecer) ou o ícone da pasta, o nome em
   mono, os chips (principal, patrocinador, enviando) e as ações à direita. */
.folder.is-empty { opacity: .6; } .folder.is-empty:hover { opacity: .85; }
.folder-hint { margin: 8px 0 2px; }
.mfiles .mfile { justify-content: flex-start; } .folder-panel .mfiles .mfile > .mfile-thumb { flex: 0 0 auto; } /* não estica depois da caixa de marcar */
.mfile-thumb { flex: 0 0 auto; width: 56px; height: 40px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-tag);
  background: repeating-conic-gradient(var(--raised) 0 25%, var(--surface) 0 50%) 50% / 10px 10px; }
.mfile-ic { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: var(--raised); }
.mfile-info { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mfile-info .mono { overflow-wrap: anywhere; } .mfile-info .badge { gap: 4px; }
.mfile-actions { align-items: center; gap: 8px; }
@media (max-width: 640px) { .mfile-actions { width: 100%; justify-content: flex-end; } }
.upl-alert { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); border-left: 2px solid var(--bad); background: var(--bad-bg); color: var(--text); line-height: 1.45; }
.upl-foot { display: flex; justify-content: flex-end; gap: 14px; }

/* ---- galeria do material ---- */
dialog.modal.gallery { width: min(1180px, calc(100vw - 32px)); height: min(860px, calc(100dvh - 32px)); max-height: none; padding: 0; display: none; overflow: hidden; }
dialog.modal.gallery[open] { display: flex; flex-direction: column; }
.gal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; }
.gal-head h2 { margin: 2px 0 0; } .gal-head .kicker { display: block; max-width: 70vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-folders { display: flex; gap: 6px; padding: 0 20px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.gal-folders::-webkit-scrollbar { display: none; }
.gal-tab { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gal-tab:hover { color: var(--text); } .gal-tab.on { background: var(--raised); color: var(--text); border-color: var(--text-2); }
.gal-grid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; align-content: start; }
.gal-grid[hidden] { display: none; }
.g-tile { display: grid; gap: 6px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; min-width: 0; }
.g-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-card); }
.g-pic { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card); background: var(--raised); border: 1px solid var(--line); }
.g-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t) var(--ease); }
.g-tile:hover .g-pic img { transform: scale(1.03); }
.g-play { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-full); background: rgba(16, 18, 16, .62); color: var(--on-dark); border: 1px solid rgba(250, 250, 250, .25); }
.g-fallback { display: grid; place-items: center; color: var(--muted); }
.g-cap { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-view { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gal-view[hidden] { display: none; }
.gal-bar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.gal-bar .icon-btn { margin-left: -8px; padding: 6px; }
.gal-info { display: grid; min-width: 0; flex: 1; } .gal-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.gal-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 64px; background: var(--bg); gap: 10px; text-align: center; overflow: hidden; }
.gal-stage img, .gal-stage video { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: var(--r-card); display: block; }
.gal-stage video { width: 100%; background: var(--ink); }
.gal-stage audio { width: min(520px, 100%); }
.gal-nav { position: absolute; top: 55%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.gal-nav:hover:not(:disabled) { border-color: var(--text); } .gal-nav:disabled { opacity: .3; cursor: default; }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
:root[data-theme="light"] dialog.modal.gallery { box-shadow: 0 8px 24px rgba(16, 18, 16, .08); }
@media (max-width: 600px) {
  dialog.modal.gallery { width: 100%; height: calc(100dvh - 24px - env(safe-area-inset-top, 0px)); margin: auto 0 0; border-radius: var(--r-card) var(--r-card) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .gal-head, .gal-folders, .gal-bar { padding-left: 16px; padding-right: 16px; } .gal-grid { padding: 12px 16px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gal-stage { padding: 8px; } .gal-nav { top: auto; bottom: 12px; transform: none; } .gal-bar .btn { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .g-pic img { transition: none; } }
.provider-list { display: grid; gap: 10px; margin: 4px 0 0; } .provider-list li { display: grid; gap: 2px; }
.provider-pick { gap: 10px; flex-wrap: wrap; align-items: center; padding: 0; align-self: auto; } .provider-pick input:disabled + strong { color: var(--muted); }
.provider-hint { padding-left: 26px; } .provider-hint:empty { display: none; }

/* ---- Instagram na publicação: collab e marcação (busca com sugestões, chips, posição na imagem) ---- */
.igp { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px 14px; margin: 0; min-width: 0; }
.igp[hidden] { display: none; }
.igp-sub { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; } .igp-sub[hidden] { display: none; }
.igp-trial { display: grid; gap: 8px; } .igp-trial .check { margin: 0; } .igp-trial-mode { display: grid; gap: 6px; } .igp-trial-mode[hidden] { display: none; }
/* Reel de teste: chip tracejado e neutro (provisório até liberar para os seguidores; nunca verde) */
.b-trial { background: transparent; border: 1px dashed var(--line-strong); color: var(--text-2); padding: 2px 7px; }
.igp legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.igp-field { position: relative; display: grid; gap: 6px; min-width: 0; }
.igp-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .igp-head strong { font-size: 13px; }
.igp-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--surface); min-width: 0; }
.igp-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--halo); }
.igp-box input { flex: 1 1 160px; min-width: 120px; border: 0; padding: 4px 2px; background: transparent; box-shadow: none; }
.igp-box input:focus { box-shadow: none; } .igp-box input:disabled { opacity: .6; }
.igp-chips { display: contents; }
.igp-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--raised); font: 500 12px var(--f-mono); color: var(--text); max-width: 100%; }
.igp-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igp-chip.on { border-color: var(--text-2); }
.igp-chip button { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: var(--r-full); background: none; color: var(--muted); cursor: pointer; padding: 0; }
.igp-chip button:hover { color: var(--text); background: var(--surface); } .igp-chip .igp-pin { margin-left: -6px; }
.igp-list { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 260px; overflow-y: auto; padding: 4px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-card); }
:root[data-theme="light"] .igp-list { box-shadow: 0 8px 24px rgba(16, 18, 16, .08); }
.igp-opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r-field); cursor: pointer; min-width: 0; }
.igp-opt strong { font: 500 13px var(--f-mono); } .igp-opt .small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igp-opt:hover, .igp-opt.on { background: var(--surface); }
.igp-place { display: grid; gap: 6px; } .igp-place[hidden] { display: none; }
.igp-stage { position: relative; width: min(100%, 320px); cursor: crosshair; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
.igp-stage img { display: block; width: 100%; height: auto; }
.igp-dot { position: absolute; transform: translate(-50%, -50%); padding: 2px 8px; border-radius: var(--r-full); background: rgba(16, 18, 16, .78); color: var(--on-dark); font: 500 11px var(--f-mono); white-space: nowrap; pointer-events: none; border: 1px solid rgba(250, 250, 250, .3); }
.igp-dot.on { border-color: var(--accent); }
.pub-people { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.provider-modes { display: grid; gap: 10px; margin: 6px 0 0; }
.provider-mode { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-card); }
.provider-mode-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.provider-live > summary { cursor: pointer; color: var(--text-2); font-weight: 600; } .provider-live > summary:hover { color: var(--text); }
#redes .kicker { display: block; }

/* ---- editor de capas: grupos que abrem, sombra com lado, contorno, fundo por origem, girar/espelhar, ajustes da foto ---- */
.prop-group { border-top: 1px solid var(--line); padding-top: 8px; }
.prop-group > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); list-style: none; display: flex; align-items: center; gap: 6px; }
.prop-group > summary::-webkit-details-marker { display: none; }
.prop-group > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--t) var(--ease); margin-right: 2px; }
.prop-group[open] > summary::before { transform: rotate(45deg); }
.prop-group > summary:hover { color: var(--text); }
.prop-body { display: grid; gap: 10px; margin-top: 10px; } .prop-body input[type="range"] { padding: 0; accent-color: var(--accent); }
.shadow-ctl { display: flex; align-items: center; gap: 12px; }
.shadow-dirs { display: grid; grid-template-columns: repeat(3, 30px); grid-template-rows: repeat(3, 30px); gap: 4px; }
.shadow-dir { display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--surface); color: var(--muted); cursor: pointer; padding: 0; }
.shadow-dir:hover { color: var(--text); border-color: var(--text-2); }
.shadow-dir.on { border-color: var(--accent); color: var(--text); background: var(--raised); }
.shadow-dir .dot-mark { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
:root[data-theme="light"] .shadow-dir.on { border-color: var(--text); }
.bg-src { display: flex; flex-wrap: wrap; } .bg-src button { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 32px; border: 0; border-radius: var(--r-full); background: none; color: var(--text-2); font: inherit; font-weight: 600; font-size: 12px; cursor: pointer; }
.bg-src button.on { background: var(--raised); color: var(--text); }
.bg-adjust { display: grid; gap: 10px; } .bg-adjust[hidden] { display: none; }
.orient-row { display: flex; flex-wrap: wrap; gap: 6px; } .orient-row .btn.on { border-color: var(--text-2); background: var(--raised); }
.photo-picker img { aspect-ratio: 1 / 1 !important; }
.photo-picker button { position: relative; } .photo-picker button.busy::after { content: "Preparando…"; position: absolute; inset: 4px; display: grid; place-items: center; background: rgba(16, 18, 16, .7); color: var(--on-dark); font: 500 11px var(--f-mono); border-radius: 3px; }
#ep-editor .kicker, [data-pane="bg"] > .kicker, .bg-adjust > .kicker { display: block; margin-top: 4px; }
[data-pane="bg"] { display: grid; gap: 12px; } [data-pane="bg"][hidden] { display: none; }

/* ---- IA nos textos ---- */
.ai-bar { display: flex; align-items: center; gap: 10px; margin-top: -4px; }
.ai-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: transparent; color: var(--text-2); font: 600 12px var(--f-body, inherit); cursor: pointer; }
.ai-btn:hover, .ai-btn[aria-expanded="true"] { color: var(--text); border-color: var(--text-2); background: var(--raised); }
.ai-panel { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--raised); }
.ai-panel[hidden] { display: none; } .ai-panel.busy { opacity: .8; }
:root[data-theme="light"] .ai-panel { box-shadow: 0 8px 24px rgba(16, 18, 16, .08); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chip { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.ai-chip:hover { color: var(--text); border-color: var(--text-2); } .ai-chip:disabled { opacity: .5; cursor: default; }
.ai-own { display: flex; gap: 6px; align-items: center; } .ai-own input { flex: 1; min-width: 0; }
.ai-status { margin: 0; } .ai-options { display: grid; gap: 6px; }
.ai-option { width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; line-height: 1.4; cursor: pointer; white-space: pre-wrap; }
.ai-option:hover { border-color: var(--text-2); } .ai-option.on { border-color: var(--accent); }
:root[data-theme="light"] .ai-option.on { border-color: var(--text); }
[data-pane="bg"] input[type="range"] { padding: 0; accent-color: var(--accent); }
.photo-picker .handle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pick.used img, .pick.used .slides { opacity: .55; } .pick .row.small { gap: 6px; flex-wrap: wrap; }
/* ============ conteúdo: pedidos e quadro da linha de produção ============ */
.kind-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; } .kind-pick legend { padding: 0; margin-bottom: 6px; }
.chips-radio { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-radio { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-full); color: var(--text-2); font-weight: 600; font-size: 13px; transition: border-color var(--t) var(--ease), background var(--t) var(--ease); }
.chip-radio:hover span { color: var(--text); }
.chip-radio input:checked + span { background: var(--raised); border-color: var(--text); color: var(--text); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.kcard.has-thumb { grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.kcard.has-thumb > .kthumb { grid-row: 1 / span 4; width: 44px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; background: var(--surface); }
.kcard.has-thumb > .kthumb.wide { aspect-ratio: 4 / 5; }
.kcard.has-thumb > .kthumb.ph { display: grid; place-items: center; color: var(--muted); }
.kcard .ktype { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.kcard .late { color: var(--bad); }
.kcard .nets { font: 500 11px var(--f-mono); letter-spacing: .08em; color: var(--text-2); }
.board-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.req-list { display: grid; gap: 8px; } .req-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--text); }
.req-row:hover { border-color: var(--line-strong); text-decoration: none; color: var(--text); }
.req-row strong { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; }
.req-row .meta { display: flex; flex-wrap: wrap; gap: 10px; font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
.req-note { border-left: 2px solid var(--st-edicao-fg); padding: 8px 12px; background: var(--raised); border-radius: 0 var(--r-card) var(--r-card) 0; }
.delivery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.delivery-grid figure { margin: 0; display: grid; gap: 6px; padding: 8px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); }
.delivery-grid img { width: 100%; border-radius: 4px; background: var(--surface); object-fit: cover; }
.delivery-grid figcaption { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.next-step { display: grid; gap: 10px; }
.req-video { display: grid; gap: 8px; } .req-video video { width: 100%; max-height: 360px; border-radius: var(--r-card); background: var(--bg); } .req-video video.tall { max-width: 240px; }
.past-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }

/* ============ contas das redes: alerta, lista e rotas por rede ============ */
.conn-alert { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--bad); background: var(--surface); border-radius: 0 var(--r-card) var(--r-card) 0; color: var(--text-2); }
.conn-alert .icon { margin-top: 2px; color: var(--bad); flex: none; } .conn-alert strong { color: var(--text); }
.acct-list { display: grid; gap: 6px; margin: 4px 0 0; }
.acct-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--raised); }
.acct-state { display: flex; align-items: center; gap: 10px; flex: none; }
.route-list { display: grid; gap: 8px; margin: 0; } .route-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; } .route-list label { margin: 0; }

/* Lixeira: "Desfazer" no aviso depois de apagar e a lista do que pode voltar */
.flash-undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
a.icon-btn { text-decoration: none; } a.icon-btn.on { background: var(--raised); color: var(--text); }
.trash-actions { gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 640px) { .trash-row { grid-template-columns: 1fr; } .trash-actions { justify-content: flex-start; } }

/* Conteúdo: seleção em massa de cortes e pedidos (mesma barra de baixar.js) */
.clip-card[data-dl-item] { position: relative; }
.clip-card input.dl-check { position: absolute; top: 18px; left: 18px; z-index: 2; }
.clip-card.picked { box-shadow: none; outline: 2px solid var(--text); outline-offset: -1px; }
.req-pick { display: flex; align-items: center; gap: 10px; }
.req-pick > .req-row { flex: 1 1 0; min-width: 0; }
.req-pick.picked { background: none; box-shadow: none; }
.req-pick.picked > .req-row { background: var(--raised); border-color: var(--text); }
.dl-bar .link { padding: 0 4px; }

/* Publicação > Corrigir e reenviar: redes em chips com o estado de cada uma */
.resend-nets { display: flex; flex-wrap: wrap; gap: 8px; }
.resend-nets .chip-radio small { margin-left: 8px; font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.chip-radio.off { cursor: not-allowed; } .chip-radio.off span { opacity: .55; }
.resend-why { display: grid; gap: 4px; margin: 0; color: var(--text-2); }

/* Convidado > Página da plateia: endereço em mono, fotos da página na moldura 4:3 e os links de parceiro */
.page-url { margin: 4px 0 12px; overflow-wrap: anywhere; color: var(--text-2); }
.page-off p { max-width: 60ch; }
.page-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.page-photos li { display: grid; gap: 4px; justify-items: start; } .page-photos .guest-photo { width: 100%; height: auto; }
.partner-list { display: grid; gap: 12px; margin-top: 12px; }
.partner-list li { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.partner-list li.is-off { opacity: .6; }
.partner-list .display { font-family: var(--f-display); letter-spacing: -.02em; }
.partner-list .page-url { margin: 0; }
.partner-logo { align-items: center; }
.partner-logo-plate { display: inline-flex; padding: 6px 10px; border-radius: var(--r-card); background: var(--on-dark); } /* sempre claro, como no convite */
.partner-logo-plate img { display: block; max-width: 120px; max-height: 36px; object-fit: contain; }

/* Portal do convidado (aba no cadastro) */
.notice-card { border-left: 3px solid var(--st-edicao-fg); margin-bottom: 16px; }
.notice-card h2 { margin-bottom: 4px; }
.post-plan { display: grid; gap: 6px; } .post-plan li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; } .post-plan li.is-off { color: var(--muted); }
.plan-rows { display: grid; gap: 12px; }
.plan-row { display: grid; grid-template-columns: 150px 120px minmax(0, 1fr) auto; align-items: end; gap: 8px; } .plan-row label { min-width: 0; } .plan-row input { box-sizing: border-box; width: 100%; min-width: 0; height: 44px; } .plan-row .icon-btn { margin-bottom: 6px; }
@media (max-width: 600px) { .plan-row { grid-template-columns: minmax(0, 1fr) 112px auto; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .plan-row label:nth-child(3) { grid-column: 1 / -1; grid-row: 2; } .plan-row .icon-btn { grid-column: 3; grid-row: 1; } }
.portal-clips { display: grid; gap: 6px; margin-top: 8px; }
.portal-clips li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.portal-clips li form { margin-left: auto; }
.portal-clips li.is-off a { color: var(--muted); }
.portal-photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.portal-photo-pick label { position: relative; display: block; margin: 0; cursor: pointer; }
.portal-photo-pick img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); border: 2px solid transparent; }
.portal-photo-pick input { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; accent-color: var(--action); }
.portal-photo-pick label:has(input:checked) img { border-color: var(--text); }

/* ---------------------------------------------------------------- esqueleto de carregamento (skeleton.js)
   Ao trocar de página, o conteúdo dá lugar ao contorno da tela que vem. Blocos em `raised` sobre o fundo, com um brilho
   discreto que passa (sem brilho com movimento reduzido). Nada de verde: carregar não é ação. */
.main.is-loading > .container { display: none; }
.skel-page { max-width: 1180px; margin: 0 auto; display: grid; gap: 16px; }
.skel { display: block; position: relative; overflow: hidden; background: var(--raised); border-radius: var(--r-tag); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 6%, transparent), transparent); animation: skel-shine 1.4s var(--ease) infinite; }
@keyframes skel-shine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; display: none; } }
.skel-stack { display: grid; gap: 10px; min-width: 0; }
.skel-grow { flex: 1; }
.skel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.skel-kicker { width: 120px; height: 10px; }
.skel-title { width: min(340px, 70vw); height: 28px; border-radius: var(--r-card); }
.skel-btn { width: 140px; height: 40px; border-radius: var(--r-full); }
.skel-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.skel-pill { width: 88px; height: 32px; border-radius: var(--r-full); }
.skel-pill.w-pill2 { width: 160px; }
.skel-tab { width: 96px; height: 32px; border-radius: var(--r-full); }
.skel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: grid; gap: 12px; }
.skel-rows { padding: 4px 20px; gap: 0; }
.skel-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.skel-row:last-child { border-bottom: 0; }
.skel-avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.skel-line { height: 12px; }
.skel-line.skel-sm { height: 9px; }
.skel-line.skel-h { height: 16px; margin-bottom: 4px; }
.skel-chip { width: 72px; height: 20px; flex: none; }
.skel-num { width: 64px; height: 36px; border-radius: var(--r-card); }
.skel .w-25, .skel.w-25 { width: 25%; } .skel.w-35 { width: 35%; } .skel.w-40 { width: 40%; } .skel.w-45 { width: 45%; } .skel.w-50 { width: 50%; }
.skel.w-55 { width: 55%; } .skel.w-60 { width: 60%; } .skel.w-65 { width: 65%; } .skel.w-70 { width: 70%; } .skel.w-75 { width: 75%; }
.skel.w-85 { width: 85%; } .skel.w-90 { width: 90%; }
.skel-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.skel-col { display: grid; gap: 16px; }
.skel-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.skel-stat { padding: 16px 18px; gap: 14px; }
.skel-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow: hidden; }
.skel-colbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; display: grid; gap: 10px; align-content: start; }
.skel-tile { background: var(--raised); border-radius: var(--r-card); padding: 14px 12px; display: grid; gap: 10px; }
.skel-card .skel, .skel-colbox > .skel { background: var(--line); } /* dentro do cartão, um tom acima para aparecer */
.skel-tile .skel { background: var(--line-strong); }
.skel-cal { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; padding: 0; background: var(--line); overflow: hidden; }
.skel-day { background: var(--surface); min-height: 84px; padding: 10px; }
.skel-day .skel { width: 28%; }
.palette-skel { display: grid; gap: 6px; padding: 6px; }
.palette-skel .skel { height: 38px; border-radius: var(--r-field); }
@media (max-width: 860px) {
  .skel-split { grid-template-columns: 1fr; }
  .skel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skel-board { grid-template-columns: minmax(0, 1fr); }
  .skel-board .skel-colbox:nth-child(n+2) { display: none; } /* no celular o quadro abre numa coluna */
  .skel-cal { grid-template-columns: 1fr; }
  .skel-cal .skel-day { min-height: 0; }
  .skel-cal .skel-day:nth-child(n+8) { display: none; } /* no celular o calendário vira lista de dias */
  .skel-btn { width: 44px; }
}
/* Gestão > Desempenho: texto da consulta do banco quebra na largura da coluna */
code.query-text { display: block; white-space: normal; word-break: break-word; font-size: 11px; line-height: 1.5; background: none; border: 0; padding: 0; color: var(--text-2); }
/* Paginação das listas longas (partials/pager.ejs) */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
/* Listas longas (quadros com dezenas de cartões, listas de pedidos e da lixeira): o navegador só desenha o que está à vista,
   o resto entra quando a rolagem chega (virtualização nativa). A altura reservada evita a barra de rolagem pular. */
.kcard, .req-row { content-visibility: auto; contain-intrinsic-size: auto 88px; }

/* ---------------------------------------------------------------- revisão: ajustes que acompanham as versões
   Editor: caixa "feito" por ajuste (aba Material). Quem revisa: "Conferido" / "Ainda não" no comentário (aba Revisão).
   Estados sem verde: feito e falta conferir = âmbar; conferido = neutro e apagado. */
.fix-list { display: grid; gap: 0; margin-top: 8px; }
.fix-item { border-bottom: 1px solid var(--line); }
.fix-item:last-child { border-bottom: 0; }
.fix-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; margin: 0; cursor: pointer; }
.fix-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--action); }
.fix-main { display: grid; gap: 6px; min-width: 0; }
.fix-body { color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.fix-item.done .fix-body { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.review-bar { gap: 12px; flex-wrap: wrap; }
.review-bar .seg .mono { margin-left: 6px; color: var(--muted); }
.cmt-check { gap: 12px; margin-top: 8px; align-items: center; }
.comment.st-conferir { border-left: 3px solid var(--st-edicao-fg); padding-left: 12px; }
.icon-btn.is-locked { color: var(--muted); cursor: help; }
.mono.warn, .small.warn { color: var(--st-edicao-fg); }
#ajustes .row.spread .btn { white-space: nowrap; flex: none; }
/* controle segmentado com botões (filtros que não trocam de página) */
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 32px; border: 0; border-radius: var(--r-full); background: none; color: var(--text-2); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--raised); color: var(--text); } .seg button:hover { color: var(--text); }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
@media (max-width: 860px) { .review-bar .seg { max-width: 100%; overflow-x: auto; } }

/* ---------------------------------------------------------------- Mensagens */
.main:has(.chat) { height: 100vh; height: 100dvh; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.main:has(.chat) > .container { flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0; display: flex; flex-direction: column; }
body:has(.chat) .assist-fab { display: none; } /* o botão do assistente cobriria o de enviar */
.chat { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.chat:has(.chat-thread:not([hidden])) { grid-template-columns: 280px minmax(0, 1fr) 380px; }
.chat-side { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.chat-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 16px 12px; }
.chat-side-head h1 { margin: 0; font-size: 20px; }
.chat-convs { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 12px; display: grid; gap: 2px; align-content: start; }
.chat-convs:empty { display: none; } .chat-side > .empty { margin: auto 0; }
.chat-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--r-card); color: var(--text-2); }
.chat-item:hover { background: var(--raised); text-decoration: none; }
.chat-item.on { background: var(--raised); color: var(--text); }
.chat-item-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.chat-item-top strong { font-family: var(--f-display); font-size: 14px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item.unread .chat-item-top strong { font-weight: 700; }
.chat-item-top time { flex: none; font-size: 11px; }
.chat-item-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item.unread .chat-item-prev { color: var(--text-2); }
.chat-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.chat-pick { margin: auto; } .chat-pick.chat-pick-none { visibility: hidden; }
.chat-conv { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.chat-conv[hidden] { display: none; }
.chat-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 61px; }
.chat-back { display: none; }
.chat-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.chat-title-txt { flex: 1; min-width: 0; display: grid; }
.chat-title-txt strong { font-family: var(--f-display); font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Respostas não lidas das threads que a pessoa segue: faixa recolhida sob o cabeçalho; aberta, uma linha por thread (nunca verde) */
.chat-unread-threads { flex: none; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-unread-threads[hidden] { display: none; }
.chat-unread-threads > summary { display: flex; align-items: center; gap: 8px; padding: 8px 16px; cursor: pointer; list-style: none; font-size: 13px; color: var(--text-2); min-height: 40px; }
.chat-unread-threads > summary::-webkit-details-marker { display: none; }
.chat-unread-threads > summary .mono { color: var(--text); }
.chat-unread-threads > summary svg:last-child { margin-left: auto; transition: transform 160ms cubic-bezier(.2,.8,.2,1); }
.chat-unread-threads[open] > summary svg:last-child { transform: rotate(180deg); }
.chat-ut-list { max-height: 40vh; overflow-y: auto; padding: 0 8px 8px; display: grid; gap: 2px; }
.chat-ut-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: var(--r-card); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.chat-ut-item:hover, .chat-ut-item:focus-visible { background: var(--raised); }
.chat-ut-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-ut-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .chat-unread-threads > summary svg:last-child { transition: none; } }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px; }
.chat-older { display: flex; justify-content: center; }
.chat-msgs { list-style: none; margin: 0; padding: 0; display: grid; }
.chat-day, .chat-unread-line { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chat-day::before, .chat-day::after, .chat-unread-line::before, .chat-unread-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.chat-unread-line { color: var(--text); } .chat-unread-line::before, .chat-unread-line::after { border-color: var(--line-strong); }
.msg { position: relative; display: flex; gap: 10px; padding: 8px 8px 6px; border-radius: var(--r-card); }
/* Mensagens: @menções e itens citados com # (link interno, abre na mesma aba) */
.msg.mentions-me { background: var(--surface); box-shadow: inset 2px 0 0 var(--text-2); }
.msg-text .mention { font-weight: 600; color: var(--text); background: var(--raised); border-radius: 2px; padding: 0 3px; }
.rich-content a[data-ref] { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--raised); color: var(--text); text-decoration: none; font-weight: 500; vertical-align: baseline; }
.rich-content a[data-ref]:hover { border-color: var(--text-2); text-decoration: none; }
.rich-content a[data-ref]::before { font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rich-content a[data-ref="episodio"]::before { content: "Episódio"; } .rich-content a[data-ref="corte"]::before { content: "Corte"; } .rich-content a[data-ref="convidado"]::before { content: "Convidado"; }
.rich-content a[data-ref="patrocinador"]::before { content: "Patrocínio"; } .rich-content a[data-ref="publicacao"]::before { content: "Post"; } .rich-content a[data-ref="tarefa"]::before { content: "Tarefa"; }
.mention-list .ref-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: baseline; }
.mention-list .ref-kind { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); } .mention-list .ref-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-list .ref-sub { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mention-list .ref-hint { cursor: default; padding: 8px; }
.rte .mention-list { width: min(360px, calc(100% - 24px)); }
.chat-at { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-full); background: var(--text); color: var(--bg); font: 600 12px var(--f-mono); }
.chat-muted { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.msg.chat-event { justify-content: center; align-items: baseline; gap: 8px; padding: 6px 8px; color: var(--muted); text-align: center; } .msg.chat-event:hover { background: none; } .chat-event .small { color: var(--text-2); }
.msg:hover { background: var(--surface); }
.msg.cont { padding-top: 2px; } .msg.cont > .avatar { visibility: hidden; height: 0; } .msg.cont .msg-meta { display: none; }
.msg-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.msg-meta { display: flex; align-items: baseline; gap: 8px; } .msg-meta strong { font-size: 13px; } .msg-meta time, .msg-meta span { font-size: 11px; }
.msg-text > :first-child { margin-top: 0; } .msg-text > :last-child { margin-bottom: 0; } .msg-text img { max-width: min(360px, 100%); border-radius: var(--r-card); }
.msg-deleted { margin: 0; font-style: italic; }
.msg.pending { opacity: .72; } .msg.failed { opacity: 1; }
.msg-status { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; }
/* virou tarefa: linha pequena embaixo da mensagem (neutra, nunca verde) */
.msg-tasks { display: grid; gap: 2px; margin-top: 4px; }
.msg-task { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; color: var(--text-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-task .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.msg-task:hover { color: var(--text); text-decoration: underline; }
.msg-tools { position: absolute; top: -10px; right: 8px; display: none; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--raised); z-index: 2; }
.msg:hover .msg-tools, .msg:focus-within .msg-tools, .msg.show-tools .msg-tools { display: flex; }
.msg-tools .react-pop { position: absolute; top: calc(100% + 4px); right: 0; display: inline-flex; z-index: 3; }
.msg-replies { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r-full); background: none; color: var(--text-2); cursor: pointer; }
.msg-replies:hover { border-color: var(--line-strong); color: var(--text); }
.chat-reacts { margin: 0; }
.chat-new-pill { position: absolute; left: 50%; bottom: 136px; transform: translateX(-50%); height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--raised); color: var(--text); font-size: 11px; cursor: pointer; z-index: 3; }
.chat-offline { flex: none; margin: 0; padding: 8px 16px; border-left: 3px solid var(--st-edicao-fg); background: var(--raised); }
.chat-composer { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-composer .rte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-composer .rte-area { min-height: 40px; max-height: 180px; overflow-y: auto; order: 1; }
.chat-composer .rte-files { order: 2; } .chat-composer .rte-status { order: 3; }
.chat-composer .rte-linkbar { order: 4; } .chat-composer .rte-bar { order: 5; border-bottom: 0; border-top: 1px solid var(--line); padding: 2px 6px; }
.chat-composer .rte-status:empty { display: none; }
:is(.chat-composer, .chat-rte) .rte-sep, :is(.chat-composer, .chat-rte) .rte-btn:not([data-cmd="bold"], [data-cmd="italic"], [data-cmd="strike"], [data-cmd="ul"], [data-cmd="link"], [data-cmd="attach"], [data-cmd="mic"]) { display: none; }
.chat-send { flex: none; width: 40px; padding: 0; justify-content: center; }
.chat-thread { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.chat-thread[hidden] { display: none; }
.chat-thread-label { margin: 12px 0 0; }
.chat-people, .chat-checks, .chat-members { display: grid; gap: 4px; max-height: 44vh; overflow-y: auto; }
.chat-person { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: var(--r-card); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.chat-person:hover { background: var(--raised); }
.chat-checks .check { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.chat-members li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.chat-member-name { flex: 1; min-width: 120px; }
.chat-member-acts { display: inline-flex; gap: 12px; }
.chat-sum { display: grid; gap: 8px; } .chat-sum p { margin: 0; } .chat-sum ul { margin: 0; padding-left: 18px; }
.chat-side-head .btn { white-space: nowrap; }
@media (max-width: 1320px) {
  .chat:has(.chat-thread:not([hidden])) { grid-template-columns: minmax(0, 1fr) 360px; }
  .chat:has(.chat-thread:not([hidden])) .chat-side { display: none; }
}
@media (max-width: 1120px) {
  .chat { grid-template-columns: 260px minmax(0, 1fr); }
  .chat:has(.chat-thread:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .chat:has(.chat-thread:not([hidden])) .chat-main { display: none; }
}
@media (max-width: 860px) {
  .main:has(.chat) { height: auto; min-height: 0; overflow: visible; display: block; padding: 0 0 calc(var(--tabnav-h) + 16px); }
  .main:has(.chat) > .container { display: block; }
  .chat { display: block; }
  .chat-side { border-right: 0; } .chat-convs { overflow: visible; }
  .chat-main { display: none; }
  .chat:is([data-view="conv"], [data-view="thread"]) .chat-main { display: flex; position: fixed; inset: 0; z-index: 48; background: var(--bg); }
  .chat[data-view="thread"] .chat-thread { position: fixed; inset: 0; z-index: 49; background: var(--bg); border-left: 0; }
  .chat-back { display: inline-flex; }
  .chat-head, .chat-composer { padding-left: 12px; padding-right: 12px; }
  .chat-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .chat-composer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .chat-composer .rte-area { font-size: 16px; }
  .chat-scroll { padding: 8px 12px; }
  .msg-tools { position: static; align-self: flex-start; } .msg:hover .msg-tools { display: none; } .msg.show-tools .msg-tools { display: flex; }
  .msg.show-tools { flex-wrap: wrap; }
  .msg-tools .react-pop { position: absolute; right: 8px; top: 100%; }
}

/* Versão leve do vídeo: a frase pequena embaixo do player */
.video-quality { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 0; } .video-quality > * { white-space: nowrap; } .video-quality .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.clip-player { min-width: 0; }

@media (max-width: 860px) {
  .notif-filters { justify-items: stretch; }
  .filter-list { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; } .filter-list::-webkit-scrollbar { display: none; }
  .notif-list-card { padding: 4px 12px; } .notif { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; } .notif.unread::before { left: -8px; }
  .notif-head-actions { justify-content: flex-start; }
}

/* ============ reuniões com patrocinador (aba Reuniões) ============ */
.meet-card { margin-top: 12px; }
.meet-title { margin: 4px 0 0; font-family: var(--f-display); }
.meet-actions { flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.meet-people { display: grid; gap: 6px; } .meet-people li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meet-cancel { display: block; margin-top: 12px; }
.meet-next { display: flex; gap: 8px; align-items: center; color: var(--text); text-decoration: none; }
.meet-next:hover { border-color: var(--line-strong); text-decoration: none; color: var(--text); }
.meet-past { display: grid; gap: 8px; }
.meet-past details { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.meet-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.meet-row::-webkit-details-marker { display: none; }
.meet-row-title { font-family: var(--f-display); flex: 1 1 200px; }
.meet-summary { padding: 0 14px 14px; }

/* Duplicatas: aviso no formulário, faixa no cadastro, comparação e lista da gestão */
.dup-notice { margin: 0 0 8px; padding: 12px 14px; border-left: 3px solid var(--st-edicao-fg); background: var(--raised); border-radius: 0 var(--r-card) var(--r-card) 0; color: var(--text-2); display: grid; gap: 8px; justify-items: start; }
.dup-notice.sure { border-left-color: var(--bad); }
.dup-notice strong { color: var(--text); }
.dup-list { gap: 6px; width: 100%; }
.dup-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dup-name, .dup-card-name { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.dup-alert { align-items: center; flex-wrap: wrap; }
.dup-alert.maybe { border-left-color: var(--st-edicao-fg); } .dup-alert.maybe .icon { color: var(--st-edicao-fg); }
.dup-alert-text { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.dup-alert-actions { gap: 12px; align-items: center; }
.dup-compare { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dup-compare legend { margin-bottom: 8px; }
.dup-card { display: grid; gap: 10px; cursor: pointer; border: 1px solid var(--line); }
.dup-card:has(input:checked) { border-color: var(--text); background: var(--raised); }
.dup-card input[type=radio] { accent-color: var(--action); width: 18px; height: 18px; }
.dup-card-name { display: block; font-size: 20px; margin-top: 4px; }
.dup-card-meta { gap: 8px; align-items: center; }
.dup-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--text-2); }
.dup-choice label span { overflow-wrap: anywhere; }
.dup-row-actions { gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.dup-off li { gap: 8px; align-items: center; }
@media (max-width: 720px) {
  .dup-compare { grid-template-columns: 1fr; }
  .dup-row { grid-template-columns: 1fr; }
  .dup-row-actions { justify-content: flex-start; }
}

/* Link do estúdio: página pública de envio do material da gravação (/estudio/<token>) e o cartão no painel */
.studio-page { min-height: 100vh; background: var(--bg); }
.studio-main { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; display: grid; gap: 24px; }
.studio-main > .brand-sign { font-size: 28px; }
.studio-card { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.studio-card h1 { font-size: 28px; }
.studio-drop { display: grid; justify-items: center; gap: 10px; padding: 32px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); background: var(--bg); text-align: center; color: var(--text-2); transition: border-color var(--t) var(--ease), background var(--t) var(--ease); }
.studio-drop.over, .studio-drop:focus-visible { border-color: var(--text); background: var(--raised); outline: none; }
.studio-drop p { margin: 0; color: var(--text); }
.studio-pick { gap: 8px; justify-content: center; flex-wrap: wrap; }
.studio-note:empty { display: none; }
.studio-list .upl-tray.upl-inline { position: static; width: 100%; right: auto; bottom: auto; z-index: auto; }
.studio-list .upl-inline .upl-body { max-height: none; }
.studio-list .upl-inline .upl-chev { display: none; }
.studio-files { gap: 6px; } .studio-files li { display: flex; gap: 8px; align-items: center; color: var(--text-2); overflow-wrap: anywhere; }
.studio-finish { display: grid; gap: 8px; justify-items: start; padding-top: 8px; border-top: 1px solid var(--line); }
.studio-total { color: var(--text-2); }
.studio-link { display: grid; gap: 10px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card); }
.studio-link-url { overflow-wrap: anywhere; color: var(--text-2); }
.studio-link-actions { gap: 8px; flex-wrap: wrap; align-items: center; }
.file-tag { font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: var(--r-tag); padding: 1px 5px; }
@media (max-width: 720px) { .studio-main { padding-top: 24px; } .studio-card { padding: 18px; } }
.num-input { width: 5.5em; }

/* Chamada no fim da legenda, por rede (janela de publicar) */
.cta-box { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.cta-box > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.cta-box .cta-box-title { color: var(--text); }
.cta-box .cta-list { display: grid; gap: 8px; margin-top: 10px; }
.cta-box .cta-list label { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; margin: 0; }
@media (max-width: 640px) { .cta-box .cta-list label { grid-template-columns: 1fr; gap: 4px; } }
.column .col-more { display: block; padding: 8px 4px; }

/* Conteúdo: filtros da aba Cortes e do quadro, publicar em massa e capas em lote */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
.ep-filter, form.inline.ep-filter { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ep-filter select { width: auto; max-width: 320px; }
.agenda-day { margin-top: 24px; }
.agenda-day h2 { font-size: 15px; }
.agenda-row { display: grid; grid-template-columns: 210px 48px minmax(0, 1fr) auto; grid-template-areas: "when img txt trial"; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.agenda-row img, .agenda-row .poster-empty { grid-area: img; width: 48px; height: 85px; object-fit: cover; border-radius: 6px; background: var(--raised); display: flex; align-items: center; justify-content: center; }
.agenda-row > div { grid-area: txt; min-width: 0; } .agenda-row > div strong { font-family: var(--f-display); }
.agenda-row .when { grid-area: when; font-size: 13px; } .agenda-row .trial-cell { grid-area: trial; align-self: center; margin: 0; }
.agenda-row input[type="datetime-local"] { width: 100%; font-family: var(--f-mono); font-size: 12px; padding: 0 10px; }
.bulk-cover-row { display: grid; grid-template-columns: minmax(160px, 220px) 1fr minmax(240px, 360px); gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bulk-cover-row .cover-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-cover-row .cover-pick { position: relative; cursor: pointer; }
.bulk-cover-row .cover-pick input { position: absolute; opacity: 0; pointer-events: none; }
.bulk-cover-row .cover-pick img { width: 72px; height: 128px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; display: block; transition: transform var(--t) var(--ease); transform-origin: center top; }
/* capas em lote: a miniatura cresce ao passar o mouse (ou focar) para dar para ler o texto da capa sem abrir */
@media (hover: hover) and (min-width: 900px) { .bulk-cover-row .cover-pick:hover, .bulk-cover-row .cover-pick:focus-within { z-index: 5; } .bulk-cover-row .cover-pick:hover img, .bulk-cover-row .cover-pick input:focus-visible + img { transform: scale(2.2); outline: 1px solid var(--line-strong); } }
@media (prefers-reduced-motion: reduce) { .bulk-cover-row .cover-pick img { transition: none; } }
.bulk-cover-row .cover-pick input:checked + img { border-color: var(--text); }
.bulk-cover-row .cover-pick input:focus-visible + img { outline: 2px solid var(--text); outline-offset: 2px; }
@media (max-width: 900px) {
  .bulk-cover-row { grid-template-columns: 1fr; }
  .agenda-row { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "img txt" "img when" "img trial"; row-gap: 6px; align-items: start; }
  .agenda-row .when { max-width: 260px; }
}

/* ============ revisão de UI (nov/2026): acessibilidade, superfícies do navegador e lista com busca ============ */
/* pular o menu com o teclado */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: var(--r-full); background: var(--text); color: var(--bg); font-weight: 600; transition: top var(--t) var(--ease); }
.skip-link:focus { top: 12px; color: var(--bg); text-decoration: none; }
.main:focus { outline: none; }
/* número dentro de título ou frase: algarismo de dado, sem virar rótulo miúdo em caixa alta */
:is(h1, h2, h3, .lead, .page-head p) .mono { font-size: inherit; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
/* barras de rolagem, seleção de texto e cursor na cor do sistema */
* { scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--bg); } ::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::selection { background: color-mix(in srgb, var(--action) 35%, transparent); color: var(--text); }
:root[data-theme="light"] ::selection { background: color-mix(in srgb, var(--brand-deep) 22%, transparent); }
input, textarea, .rte-area { caret-color: var(--action); } :root[data-theme="light"] :is(input, textarea, .rte-area) { caret-color: var(--text); }
/* miniaturas: fundo enquanto carregam (antes, caixa preta vazia) */
img[loading="lazy"] { background: var(--raised); }
/* toque: alvos de pelo menos 44 px nos controles do dia a dia */
@media (pointer: coarse) {
  :root { --control-h: 44px; }
  .btn.sm { height: 40px; } .seg a, .subnav-inner a { height: 40px; }
  .icon-btn, .btn.icon-only, .rte-btn, .react-add, .igp-x { min-width: 44px; min-height: 44px; justify-content: center; }
  .btn.icon-only.sm { width: 40px; height: 40px; }
  label.check { min-height: 44px; }
  .link.small, button.link.small { display: inline-flex; align-items: center; min-height: 32px; }
}

/* lista com busca (combo.js): o <select> de verdade fica escondido no formulário; por cima, o botão e a busca */
.combo { position: relative; min-width: 0; }
.combo-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.combo-trigger { display: flex; align-items: center; gap: 8px; width: 100%; height: var(--control-h); padding: 0 12px; font: inherit; font-size: 14px; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-field); cursor: pointer; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.combo-trigger:focus-visible, .combo.is-open .combo-trigger { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px var(--halo); }
.combo-trigger:disabled { opacity: .5; cursor: not-allowed; }
.combo-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo.is-placeholder .combo-value { color: var(--muted); }
.combo-chev { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-2px) rotate(45deg); transition: transform var(--t) var(--ease); }
.combo.is-open .combo-chev { transform: translateY(2px) rotate(-135deg); }
.combo.is-invalid .combo-trigger { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent); }
.combo-pop { position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 6px); min-width: min(380px, calc(100vw - 32px)); display: grid; gap: 6px; padding: 8px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-card); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.combo.opens-up .combo-pop { top: auto; bottom: calc(100% + 6px); }
:root[data-theme="light"] .combo-pop { background: var(--surface); box-shadow: 0 8px 24px rgba(16, 18, 16, .12); }
.combo-search { height: 36px; font-size: 14px; background: var(--surface); }
:root[data-theme="light"] .combo-search { background: var(--bg); }
.combo-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 1px; }
.combo-opt { padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--text); cursor: pointer; overflow-wrap: anywhere; line-height: 1.35; }
.combo-opt.is-active { background: var(--surface); } :root[data-theme="light"] .combo-opt.is-active { background: var(--raised); }
.combo-opt[aria-selected="true"] { font-weight: 600; box-shadow: inset 2px 0 0 var(--text); }
.combo-opt[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.combo-opt.combo-placeholder { color: var(--muted); }
.combo-group { padding: 8px 10px 4px; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.combo-empty { margin: 4px 10px 6px; }
.filters .combo, .board-filter .combo, .ep-filter .combo { min-width: 240px; }
@media (max-width: 640px) { .filters { margin-bottom: 12px; } .filters input[type=search] { flex-basis: 100%; } .filters select, .filters .combo { flex: 1 1 140px; min-width: 0; width: auto; } } /* celular: os seletores lado a lado, a lista aparece antes */
@media (max-width: 600px) { .combo .combo-pop, .combo.opens-up .combo-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-height: 70dvh; min-width: 0; } .combo-list { max-height: calc(70dvh - 80px); } .combo-search { font-size: 16px; height: 44px; } }

.foot-actions form.push-right { margin-left: auto; }
/* grades de formulário: campos da mesma linha com larguras pensadas (antes, cada um do tamanho do próprio conteúdo) */
.form-grid { display: grid; gap: 12px 16px; align-items: start; }
/* campos lado a lado: o controle de cada um fica na mesma linha, mesmo quando um rótulo quebra em duas */
form .grid-2 > label, form .grid-3 > label, form .form-grid > label { align-self: stretch; align-content: end; }
.form-grid-4 { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid-3, .form-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.row > label > .combo, .row > .combo { min-width: 200px; } .form-grid .combo { min-width: 0; }
input[type=date], input[type=time], input[type=datetime-local] { min-width: 0; }
/* vídeo que carrega no clique: capa com o botão de play no lugar do player */
.video-poster { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--raised); cursor: pointer; aspect-ratio: 16 / 9; }
.video-poster.tall { aspect-ratio: 9 / 16; max-height: 420px; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(16, 18, 16, .72); color: var(--on-dark); border: 1px solid rgba(250, 250, 250, .25); transition: transform var(--t) var(--ease), background var(--t) var(--ease); }
.video-poster:hover .video-play, .video-poster:focus-visible .video-play { transform: translate(-50%, -50%) scale(1.06); background: rgba(16, 18, 16, .85); }
.video-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: var(--r-tag); background: rgba(16, 18, 16, .72); color: var(--on-dark); font-size: 11px; letter-spacing: .06em; }
.clip-media .video-poster { max-height: 420px; }
/* Novo post: busca e filtro acima da grade; escolhido, um resumo com "Trocar" */
.pick-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.pick-tools input[type=search] { flex: 1 1 260px; min-width: 0; }
.pick-tools .combo { flex: 0 1 280px; }
.pick-chosen { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); }
.pick-chosen img { width: 40px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; flex: none; }
.pick-chosen-txt { display: grid; gap: 2px; flex: 1; min-width: 0; } .pick-chosen-txt > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pick-chosen-txt strong { font-family: var(--f-display); }
[data-pick][hidden] { display: none; }
.cover-actions { align-items: center; gap: 6px; width: 100%; } .cover-actions form.push-right { margin-left: auto; } .cover-kind { letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.kind-groups { display: grid; gap: 10px; } .kind-group { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
.kind-group-l { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
@media (max-width: 640px) { .kind-group { grid-template-columns: 1fr; gap: 6px; } }
.col-empty { margin: 4px 2px; } .cards:has(.kcard) > .col-empty { display: none; }
.kcard .views { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); } .kcard .views .icon { margin: 0; }
.clip-views { color: var(--text-2); }
.best-list { display: grid; gap: 0; margin-top: 12px; }
.best-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.best-list li:first-child { border-top: 0; }
.best-txt { display: grid; gap: 2px; min-width: 0; color: inherit; text-decoration: none; } .best-txt strong { font-family: var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-txt:hover strong { text-decoration: underline; }
@media (max-width: 640px) { .best-list li { grid-template-columns: 24px minmax(0, 1fr); } .best-list .post-nums { grid-column: 2; } }
.post-nums { display: inline-flex; flex-wrap: wrap; gap: 10px; color: var(--text-2); } .post-nums > span { display: inline-flex; align-items: center; gap: 4px; } .post-nums .icon { margin: 0; color: var(--muted); }

/* Gestão > Categorias: uma linha por tipo de vídeo ou categoria de tarefa (nome, chips neutros "padrão" e "desativado", quanto já foi
   usado em mono, Renomear e o interruptor de ativo à direita). Desativado fica apagado. */
.cat-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cat-row.off .cat-name { opacity: .6; }
.cat-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cat-actions { align-items: center; gap: 12px; }
.task-repeat-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--text-2); margin: 6px 0 0; } .task-repeat-line .icon { color: var(--muted); }
@media (max-width: 640px) { .cat-row { grid-template-columns: minmax(0, 1fr) auto; } .cat-actions { grid-column: 1 / -1; justify-content: flex-end; } }

/* ---------------------------------------------------------------- Social > Comentários (respostas por IA) */
.subnav .nav-count { margin-left: 6px; }
.cmt-intro h2 { margin: 4px 0 8px; }
.cmt-rules { display: grid; gap: 10px; margin: 16px 0 4px; }
.cmt-rules li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.cmt-rules .icon { color: var(--muted); flex: none; margin-top: 2px; }
.cmt-setup { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cmt-setup-main { display: grid; gap: 4px; min-width: 0; }
.cmt-setup-actions { align-items: center; gap: 12px; position: relative; }
.cmt-filters { align-items: center; gap: 12px; flex-wrap: wrap; }
.cmt-post-filter select, .cmt-post-filter .combo-btn { min-width: 240px; }
.cmt-bulk { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.cmt-pace { display: flex; gap: 6px; align-items: center; margin: 12px 0; }
.cmt-list { display: grid; gap: 8px; margin-top: 12px; }
.cmt-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.cmt-row:hover { border-color: var(--line-strong); }
.cmt-thumb { display: grid; place-items: center; width: 54px; aspect-ratio: 9 / 16; border-radius: var(--r-tag, 2px); overflow: hidden; background: var(--raised); color: var(--muted); }
.cmt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmt-body { display: grid; gap: 6px; min-width: 0; }
.cmt-body > p { margin: 0; }
.cmt-post { display: flex; flex-wrap: wrap; gap: 4px 10px; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.cmt-post a { color: var(--text-2); text-transform: none; letter-spacing: 0; font-family: var(--f-body, inherit); font-size: 12px; }
.cmt-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.cmt-who .mono:first-child { color: var(--text); font-size: 12px; }
.cmt-handle { text-transform: none; letter-spacing: 0; } /* @ do Instagram: sempre como a pessoa escreve */
.cmt-text { color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }
.cmt-thread summary { cursor: pointer; }
.cmt-thread ul { display: grid; gap: 4px; margin: 6px 0 0; padding-left: 10px; border-left: 1px solid var(--line-strong); }
.cmt-reply { display: grid; gap: 4px; padding: 8px 10px; border-left: 2px solid var(--line-strong); background: var(--raised); border-radius: 0 var(--r-card) var(--r-card) 0; }
.cmt-reply-text { overflow-wrap: anywhere; }
.cmt-emoji { font-size: 18px; line-height: 1; }
.cmt-reply-warn { border-left-color: var(--st-edicao-fg); }
.cmt-reply-bad { border-left-color: var(--st-cancelado-fg); }
.cmt-reply-off { opacity: .6; } .cmt-reply-off .cmt-reply-text { text-decoration: line-through; }
.cmt-why { display: flex; gap: 6px; align-items: center; }
.cmt-dm { display: grid; gap: 4px; padding: 8px 10px; border-left: 2px dashed var(--line-strong); }
.cmt-dm-text { color: var(--text-2); overflow-wrap: anywhere; white-space: pre-line; }
.cmt-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cmt-ignorada .cmt-text, .cmt-respondida .cmt-text { color: var(--text-2); }
.cmt-quote { display: block; padding: 8px 10px; border-left: 2px solid var(--line-strong); background: var(--raised); color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; white-space: pre-line; max-height: 140px; overflow: auto; }
.cmt-quote:empty { display: none; }
.go-card { max-width: 560px; margin: 32px auto; }
.pub-ai-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Comentários > Números: o mesmo painel do Resumo do dia. Medir não é ação: barras e números neutros, vermelho só no erro. */
.cmt-tabs { display: flex; width: max-content; }
.cmt-nums .cmt-alert { display: flex; align-items: center; gap: 8px; }
.cmt-nums-empty, .cmt-nums-line { margin: 4px 12px 6px; }
.cmt-top { margin: 0; padding: 0 12px; }
.cmt-top-row { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; }
.cmt-top-row + .cmt-top-row { border-top: 1px solid var(--line); }
.cmt-top-row .cmt-thumb { width: 40px; }
.cmt-top-pos { font: 700 22px/1 var(--f-display); letter-spacing: -.02em; color: var(--muted); } .cmt-top-pos.first { color: var(--text); }
.cmt-top-title { display: block; font: 600 15px/1.3 var(--f-display); letter-spacing: -.02em; color: var(--text); overflow-wrap: anywhere; margin: 2px 0; }
.cmt-top-title:hover { text-decoration: underline; }
.cmt-top-nums { color: var(--muted); letter-spacing: .04em; } .cmt-top-nums b { color: var(--text-2); font-weight: 500; }
.cmt-top-net { text-align: right; white-space: nowrap; }
.cmt-health { padding: 4px 12px 6px; }
.cmt-reasons { margin: 0; display: grid; gap: 4px; font-size: 13px; } .cmt-reasons .mono { margin-right: 6px; }
.cmt-failed { margin-top: 6px; font-family: var(--f-body); letter-spacing: 0; }
.cmt-slots { padding: 4px 12px 0; } .cmt-slots svg { display: block; width: 100%; height: auto; }
.cmt-axis { stroke: var(--line-strong); stroke-width: 1; }
.cmt-bar-in { fill: var(--text-2); } .cmt-bar-out { fill: var(--muted); opacity: .55; }
.cmt-tick { font: 500 8px var(--f-mono); fill: var(--muted); letter-spacing: .06em; }
.cmt-legend { display: inline-flex; align-items: center; gap: 6px; }
.cmt-key { display: inline-block; width: 8px; height: 8px; border-radius: 1px; } .cmt-key-in { background: var(--text-2); } .cmt-key-out { background: var(--muted); opacity: .55; margin-left: 6px; }
@media (max-width: 640px) {
  .cmt-top-row { grid-template-columns: 22px 36px minmax(0, 1fr); }
  .cmt-top-row .cmt-thumb { width: 36px; }
  .cmt-top-net { grid-column: 3; text-align: left; white-space: normal; }
  .cmt-tick { font-size: 12px; }
  .cmt-row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .cmt-thumb { width: 40px; }
  .cmt-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
  .cmt-setup-actions { width: 100%; justify-content: space-between; }
  .cmt-post-filter, .cmt-post-filter select, .cmt-post-filter .combo-btn { width: 100%; min-width: 0; }
  .cmt-bulk .btn { width: 100%; justify-content: center; }
}

/* Acesso da pessoa (cadastro de usuário): onde ela trabalha e se vê o financeiro de cada projeto */
.user-access { border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.user-access legend { padding: 0 6px; }
.access-list { display: grid; gap: 8px; }
.access-list > li { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; }
.access-list > li:first-child { border-top: 0; padding-top: 0; }

/* ---- Sessão de gravação (/sessoes): a lista e a fila do dia ---- */
.sess-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
.sess-date { display: grid; justify-items: start; line-height: 1.2; }
.sess-date strong { font-size: 20px; }
.sess-date .mono { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.sess-main { display: grid; gap: 4px; min-width: 0; }
.sess-title { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; }
.check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 4px; border-radius: var(--r-tag); }
.check-row input { accent-color: var(--accent); }
.check-row:hover { background: var(--raised); }
.sess-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.sess-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); }
.sess-item.is-done { background: var(--surface); }
.sess-item.is-done .sess-name { color: var(--text-2); }
.sess-pos { font: 600 22px/1 var(--f-display); color: var(--muted); padding-top: 2px; }
.sess-item:not(.is-done) .sess-pos { color: var(--text); }
.sess-body { display: grid; gap: 8px; min-width: 0; }
.sess-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sess-name { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -.02em; color: var(--text); }
.sess-script summary { cursor: pointer; color: var(--text-2); }
.sess-read { margin-top: 8px; font-size: 17px; line-height: 1.65; max-width: 70ch; padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--line-strong); border-radius: 0 var(--r-card) var(--r-card) 0; }
.sess-note { display: flex; gap: 8px; align-items: center; }
.sess-note input { flex: 1; min-width: 0; }
.sess-acts { display: flex; gap: 6px; align-items: center; }
.sess-close { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sess-close p { flex: 1 1 280px; }
.sess-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto 240px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sess-file-name { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .sess-item { grid-template-columns: 24px minmax(0, 1fr); }
  .sess-acts { grid-column: 2; }
  .sess-acts .btn { min-height: 44px; }
  .sess-files li { grid-template-columns: minmax(0, 1fr); }
  .sess-read { font-size: 18px; }
}

/* ---- Parceria (Financeiro > Parceria): números sem lime; a transferência na cor do texto ---- */
.part-terms { display: grid; gap: 8px; margin-bottom: 16px; }
.part-transfer { font-variant-numeric: tabular-nums; }
.part-month { text-transform: capitalize; }
.part-months .plan-list-tools .stack { min-width: 240px; }
.stat-delta { font: 500 11px var(--f-mono); letter-spacing: .08em; color: var(--muted); }

/* ---- Gestão > Funções: uma moldura por área, com os atalhos de nível e as caixas ---- */
.role-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.role-area { margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: var(--r-card); display: grid; gap: 8px; min-width: 0; }
.role-area legend { padding: 0 6px; font-weight: 600; }
.role-presets { flex-wrap: wrap; }
.role-detail summary { cursor: pointer; }
.role-detail[open] summary { margin-bottom: 4px; }
.access-role { display: flex; align-items: center; gap: 8px; color: var(--text-2); } .access-role select { width: auto; min-width: 180px; }

/* ---- Boas-vindas à versão nova (partials/welcome.ejs): o Sinal sobe, o monograma entra e as frases vêm em sequência ---- */
.welcome-open { overflow: hidden; }
.welcome { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); overflow-y: auto;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: wl-fade 240ms var(--ease) both; }
.welcome-card { width: min(560px, 100%); padding: 32px 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); display: grid; gap: 14px; }
.welcome-mark { position: relative; height: 72px; display: flex; align-items: flex-end; gap: 16px; }
.welcome-signal { width: 68px; height: 60px; overflow: visible; }
.welcome-signal rect { transform-box: fill-box; transform-origin: bottom; animation: wl-bar 520ms var(--ease) both; }
.welcome-signal .s1 { fill: var(--sig-1); animation-delay: 120ms; } .welcome-signal .s2 { fill: var(--sig-2); animation-delay: 220ms; }
.welcome-signal .s3 { fill: var(--sig-3); animation-delay: 320ms; } .welcome-signal .s4 { fill: var(--sig-4); animation-delay: 420ms; }
.welcome-st { width: 56px; height: 56px; border-radius: 12px; animation: wl-pop 420ms var(--ease) 620ms both; }
.welcome-kicker { animation: wl-up 420ms var(--ease) 760ms both; }
.welcome-h { margin: 0; font: 700 clamp(30px, 6vw, 40px)/1.08 var(--f-display); letter-spacing: -.03em; animation: wl-up 480ms var(--ease) 860ms both; }
.welcome-voice { font: italic 400 1.08em/1 var(--f-voice, "Instrument Serif", serif); letter-spacing: 0; color: var(--text); }
.welcome-lede { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; animation: wl-up 480ms var(--ease) 960ms both; }
.welcome-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.welcome-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--text-2); font-size: 14px; line-height: 1.45; animation: wl-up 420ms var(--ease) both; }
.welcome-list li .icon { color: var(--accent); margin-top: 1px; }
.welcome-list li strong { color: var(--text); font-weight: 600; }
.welcome-list li:nth-child(1) { animation-delay: 1080ms; } .welcome-list li:nth-child(2) { animation-delay: 1160ms; }
.welcome-list li:nth-child(3) { animation-delay: 1240ms; } .welcome-list li:nth-child(4) { animation-delay: 1320ms; }
.welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; animation: wl-up 420ms var(--ease) 1420ms both; }
.welcome-actions form { margin: 0; }
.welcome.is-leaving { animation: wl-out 240ms var(--ease) both; }
@keyframes wl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wl-out { to { opacity: 0; } }
@keyframes wl-bar { from { transform: scaleY(.15); opacity: .2; } to { transform: scaleY(1); opacity: 1; } }
@keyframes wl-pop { from { transform: scale(.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes wl-up { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 560px) {
  .welcome { place-items: end center; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .welcome-card { padding: 24px 18px 18px; gap: 12px; }
  .welcome-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .welcome-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome, .welcome *, .welcome-signal rect { animation: none !important; }
}
