/* ==========================================================================
   Autoral — app (painel, criação, marca)
   ========================================================================== */

.app-body { background: var(--bg); min-height: 100vh; }
.app-body.no-scroll { overflow: hidden; }
#app { min-height: 100vh; }
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 14px 14px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  z-index: 40;
}
.sb-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 4px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.sb-close { display: none; }
.sb-create { height: 42px; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.sb-group { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); padding: 16px 10px 6px; }
.sb-link {
  display: flex; align-items: center; gap: 11px;
  height: 38px; padding: 0 10px; border-radius: 10px;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.sb-link svg { width: 17px; height: 17px; flex: none; opacity: 0.85; }
.sb-link:hover { background: var(--surface-2); color: var(--text); }
.sb-link.is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.sb-link.is-active svg { color: var(--accent-2); opacity: 1; }
.sb-foot { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t); }
.sb-brand:hover { border-color: var(--line-2); }
.sb-brand strong { display: block; font-size: 13px; font-weight: 600; }
.sb-brand small { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.sb-meter { display: block; height: 3px; border-radius: 3px; background: var(--surface-4); margin-top: 6px; overflow: hidden; }
.sb-meter span { display: block; height: 100%; background: var(--grad); border-radius: 3px; transition: width 0.6s var(--ease-out); }
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.avatar-txt { display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); }
.avatar-txt svg { width: 16px; height: 16px; }
.sb-overlay { display: none; }

/* ---------- Topbar ---------- */
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  min-height: 68px; padding: 12px clamp(16px, 3vw, 36px);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.sb-open { display: none; }
.tb-h { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.tb-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.tb-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.engine-badge { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: var(--r-full); border: 1px solid var(--line); font-size: 12px; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: border-color var(--t); }
.engine-badge:hover { border-color: var(--line-3); }
.engine-badge .dot { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); animation: pulseDot 2.4s ease-in-out infinite; }

/* ---------- Página ---------- */
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(18px, 3vw, 34px) clamp(16px, 3vw, 36px) 80px; }
.page-wide { max-width: none; }
.section { margin-top: 36px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.025em; }
.section-head p { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.split-left { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.split-300 { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.cal-add { display: inline-flex; align-items: center; gap: 4px; }
.cal-add svg { width: 12px; height: 12px; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.sticky-col { position: sticky; top: 88px; }

/* Barra de filtros */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.toolbar .select, .toolbar .input { width: auto; height: 38px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.toolbar .grow { flex: 1 1 180px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }

/* Abas */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: all var(--t-fast); }
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--white); color: #0b0b0b; }

/* Segmentado (rádio) */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: all var(--t-fast); }
.seg span svg { width: 15px; height: 15px; }
.seg input:checked + span { background: var(--white); color: #0b0b0b; }
.seg input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 1px; }

/* ---------- Cards de saída (ideias, ganchos, roteiros) ---------- */
.out-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t), transform var(--t) var(--ease), background var(--t); }
.out-card:hover { border-color: var(--line-2); }
.out-card.is-fav { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(232, 96, 12, 0.07), transparent 60%), var(--surface); }
.out-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.out-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.out-hook { font-size: 14px; color: var(--text-2); line-height: 1.55; padding-left: 12px; border-left: 2px solid var(--accent); }
.out-why { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.out-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.out-actions .btn { height: 32px; font-size: 12.5px; padding: 0 11px; }
.icon-toggle { color: var(--text-3); }
.icon-toggle.on { color: var(--accent-2); }
.icon-toggle.on svg { fill: currentColor; }
.hook-text { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.hook-text[contenteditable]:focus { outline: none; box-shadow: 0 2px 0 var(--accent); }

/* Hooks de vídeo */
.vh { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.vh-phone { aspect-ratio: 9/16; border-radius: 14px; background: linear-gradient(160deg, #1c1a18, #0c0b0a); border: 1px solid var(--line-2); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 10px; }
.vh-phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 30px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); transform: translateX(-50%); }
.vh-screen { font-family: var(--font-display); font-weight: 800; font-size: 11px; line-height: 1.15; text-align: center; color: #fff; background: rgba(232, 96, 12, 0.92); padding: 5px 6px; border-radius: 5px; text-transform: uppercase; letter-spacing: -0.01em; }
.vh-rows { display: flex; flex-direction: column; gap: 10px; }
.vh-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.5; }
.vh-row b { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }

/* ---------- Painel ---------- */
.hero-panel { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px); background: radial-gradient(120% 140% at 100% 0%, rgba(255, 140, 0, 0.2), transparent 50%), radial-gradient(90% 120% at 0% 100%, rgba(232, 96, 12, 0.14), transparent 55%), var(--surface); border: 1px solid var(--line); }
.hero-panel .h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 360px); }
.hero-panel .stat { background: rgba(0, 0, 0, 0.35); }
.stat { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.stat-n { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat-l { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }
.stat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
.stat-ic svg { width: 17px; height: 17px; }
.next-step { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t), background var(--t); }
.next-step:hover { border-color: var(--accent-line); background: var(--surface-2); }
.next-step .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 12px; color: var(--text-2); flex: none; }
.next-step.done .num { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.next-step strong { display: block; font-size: 14px; font-weight: 600; }
.next-step small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-day { min-height: 128px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.week-day.today { border-color: var(--accent-line); }
.week-day header { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.week-day header b { font-family: var(--font-display); font-size: 18px; color: var(--text); letter-spacing: -0.03em; }
.cal-item { display: block; padding: 7px 8px; border-radius: 8px; background: var(--surface-3); font-size: 11.5px; line-height: 1.35; border-left: 2px solid var(--accent); transition: background var(--t-fast); }
.cal-item:hover { background: var(--surface-4); }
.cal-item small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.cal-item.t-reels { border-left-color: var(--accent-2); }
.cal-item.t-post { border-left-color: var(--gray); }
.cal-item.s-publicado { opacity: 0.55; }
.pillar-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.pillar-bar span { height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Lista de conteúdos */
.c-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t), background var(--t); }
.c-row:hover { border-color: var(--line-2); background: var(--surface-2); }
.c-thumb { width: 54px; height: 66px; border-radius: 9px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--text-3); position: relative; }
.c-thumb svg { width: 20px; height: 20px; }
.c-thumb .mini-slide { position: absolute; inset: 0; }
.c-title { font-weight: 600; font-size: 14px; line-height: 1.35; }
.c-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin-top: 5px; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-2); color: var(--text-2); background: transparent; }
.status .dot { width: 6px; height: 6px; }
.status.s-ideia { color: var(--text-3); }
.status.s-rascunho { color: #ffc27a; }
.status.s-pronto { color: #93e2b7; }
.status.s-agendado { color: #ffb066; border-color: var(--accent-line); }
.status.s-publicado { color: var(--text-3); }
select.status { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 9px; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.k-col { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; min-height: 240px; display: flex; flex-direction: column; gap: 8px; }
.k-col.drag-over { border-color: var(--accent-line); background: rgba(232, 96, 12, 0.05); }
.k-col > header { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; font-size: 12.5px; font-weight: 600; }
.k-card { padding: 11px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); cursor: grab; font-size: 13px; line-height: 1.4; transition: border-color var(--t-fast), transform var(--t-fast); }
.k-card:hover { border-color: var(--line-3); }
.k-card.dragging { opacity: 0.4; }
.k-card small { display: flex; gap: 6px; align-items: center; color: var(--text-3); font-size: 11.5px; margin-top: 7px; }
.k-card small svg { width: 12px; height: 12px; }

/* Calendário mensal */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding: 0 8px 4px; }
.cal-cell { min-height: 118px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; transition: border-color var(--t-fast), background var(--t-fast); }
.cal-cell.muted-day { opacity: 0.4; }
.cal-cell.today { border-color: var(--accent-line); }
.cal-cell.drag-over { background: rgba(232, 96, 12, 0.07); border-color: var(--accent-line); }
.cal-cell .d { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-2); }
.cal-cell.today .d { color: var(--accent-2); }
.cal-cell .cal-item { cursor: grab; }

/* ---------- Detector / análise ---------- */
.score-ring { --v: 0; --c: var(--ok); width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--surface-3) 0); position: relative; transition: --v 0.8s; }
.score-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.04em; }
.score-ring small { position: absolute; bottom: 26px; font-size: 10px; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.hl-view { white-space: pre-wrap; word-wrap: break-word; font-size: 15px; line-height: 1.75; padding: 18px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); min-height: 220px; }
.hl-view mark { background: rgba(255, 91, 74, 0.14); color: inherit; border-bottom: 2px solid var(--danger); padding: 1px 1px; border-radius: 3px; cursor: help; }
.hl-view mark.sev-2 { background: rgba(255, 140, 0, 0.14); border-bottom-color: var(--accent-2); }
.hl-view mark.sev-1 { background: rgba(186, 186, 186, 0.12); border-bottom-color: var(--gray); }
.rule-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.rule-item:last-child { border-bottom: 0; }
.rule-item .sev { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-family: var(--font-mono); }
.rule-item .sev-3 { background: var(--danger-soft); color: #ffb3a9; }
.rule-item .sev-2 { background: var(--warn-soft); color: #ffc27a; }
.rule-item .sev-1 { background: var(--surface-3); color: var(--text-2); }
.rule-item strong { font-size: 13.5px; }
.rule-item p { font-size: 12.5px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }

/* Escalas de voz */
.slider-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; gap: 14px; align-items: center; }
.slider-row .l { font-size: 13px; color: var(--text-2); }
.slider-row .r { font-size: 13px; color: var(--text-2); text-align: right; }
.arch { text-align: left; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: all var(--t); display: flex; flex-direction: column; gap: 8px; }
.arch:hover { border-color: var(--line-3); }
.arch.is-active { border-color: var(--accent); background: linear-gradient(180deg, rgba(232, 96, 12, 0.1), transparent 70%), var(--surface); }
.arch strong { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.02em; }
.arch p { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.arch blockquote { font-size: 13px; color: var(--text-2); line-height: 1.5; padding-left: 10px; border-left: 2px solid var(--line-3); font-style: italic; }
.tagbox { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; min-height: 46px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); cursor: text; }
.tagbox:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.tagbox input { flex: 1 1 120px; min-width: 100px; background: transparent; border: 0; outline: none; font-size: 13.5px; padding: 4px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 6px 0 11px; border-radius: var(--r-full); background: var(--surface-4); font-size: 12.5px; }
.tag button { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); }
.tag button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.tag button svg { width: 12px; height: 12px; }
.tagbox.danger .tag { background: var(--danger-soft); color: #ffcbc4; }
.example-pair { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: start; }

/* ---------- Cadastro da marca ---------- */
.wizard { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.steps-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; }
.steps-nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-align: left; color: var(--text-2); font-size: 14px; font-weight: 500; transition: background var(--t-fast), color var(--t-fast); }
.steps-nav button:hover { background: var(--surface-2); color: var(--text); }
.steps-nav button .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 11px; flex: none; }
.steps-nav button.is-active { background: var(--surface-3); color: var(--text); }
.steps-nav button.is-active .n { background: var(--accent); border-color: transparent; color: #fff; }
.steps-nav button.is-done .n { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.steps-nav small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 400; }
.wz-panel { display: flex; flex-direction: column; gap: 20px; }
.wz-card { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.wz-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.wz-card > p { color: var(--text-2); font-size: 14px; margin-top: 6px; max-width: 70ch; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.triple { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); }
.triple-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.niche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.niche { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 4/3; border: 1px solid var(--line-2); text-align: left; transition: transform var(--t) var(--ease), border-color var(--t); }
.niche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.niche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85)); }
.niche span { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-weight: 600; font-size: 14px; }
.niche:hover { transform: translateY(-2px); border-color: var(--line-3); }
.niche:hover img { transform: scale(1.05); }
.niche.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.niche.is-active::before { content: "✓"; position: absolute; top: 8px; right: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.niche-other { display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.niche-other::after { display: none; }
.niche-other span { position: static; }
.wz-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.preview-strip { display: flex; flex-direction: column; gap: 10px; }
.preview-line { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; line-height: 1.5; color: var(--text-2); border-left: 2px solid var(--accent); }
.palette-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch-in { position: relative; width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; cursor: pointer; }
.swatch-in input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); border: 0; padding: 0; cursor: pointer; background: none; }
.swatch-label { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 4px; }

/* ---------- Roteiro ---------- */
.scene { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.scene:last-child { border-bottom: 0; }
.scene-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); padding-top: 4px; }
.scene-time strong { display: block; font-family: var(--font-display); font-size: 14px; color: var(--accent-ink); letter-spacing: -0.01em; margin-bottom: 3px; }
.scene-fields { display: grid; gap: 10px; }
.scene-field { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; }
.scene-field > span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); padding-top: 8px; }
.scene-field > span svg { width: 13px; height: 13px; }
.editable { width: 100%; padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 14px; line-height: 1.55; resize: none; overflow: hidden; transition: border-color var(--t-fast), background var(--t-fast); }
.editable:hover { background: var(--surface-2); }
.editable:focus { outline: none; background: var(--surface-2); border-color: var(--accent-line); }
.editable.fala { font-size: 15.5px; color: var(--text); }
.editable.input-needed { border: 1px dashed var(--accent-line); background: rgba(232, 96, 12, 0.06); }
.guide-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--accent-ink); line-height: 1.5; }
.guide-note svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.timeline { display: flex; height: 10px; border-radius: 10px; overflow: hidden; gap: 2px; }
.timeline span { height: 100%; background: var(--surface-4); transition: background var(--t); }
.timeline span:first-child { background: var(--accent); }
.timeline span:last-child { background: var(--accent-2); }
.caption-box { white-space: pre-wrap; font-size: 14px; line-height: 1.65; color: var(--text-2); }

/* Teleprompter */
.prompter { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; }
.prompter-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.prompter-view { flex: 1; overflow: hidden; position: relative; }
.prompter-view::before, .prompter-view::after { content: ""; position: absolute; left: 0; right: 0; height: 22%; z-index: 2; pointer-events: none; }
.prompter-view::before { top: 0; background: linear-gradient(#000, transparent); }
.prompter-view::after { bottom: 0; background: linear-gradient(transparent, #000); }
.prompter-text { position: absolute; left: 50%; width: min(900px, 90vw); transform: translateX(-50%); font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 5vw, 56px); line-height: 1.35; letter-spacing: -0.02em; text-align: center; padding: 45vh 0; }
.prompter-text p { margin-bottom: 1.1em; }
.prompter-text p.label { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4em; }
.prompter.mirror .prompter-text { transform: translateX(-50%) scaleX(-1); }
.prompter-line { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: rgba(232, 96, 12, 0.5); z-index: 3; pointer-events: none; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 32px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: #1a1817; border: 1px solid var(--line-2); box-shadow: var(--shadow-3); font-size: 13.5px; animation: fadeUp 0.3s var(--ease-out); width: 100%; }
.toast svg { width: 17px; height: 17px; flex: none; }
.toast-ok svg { color: var(--ok); }
.toast-error svg { color: var(--danger); }
.toast-warn svg { color: var(--accent-2); }
.toast-info svg { color: var(--gray); }
.toast span { flex: 1; }
.toast-act { font-weight: 600; color: var(--accent-2); font-size: 13px; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all 0.25s; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fadeIn 0.2s; }
.modal-back.out { opacity: 0; transition: opacity 0.2s; }
.modal { width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow-3); animation: scaleIn 0.25s var(--ease-out); }
.modal-sm { max-width: 420px; }
.modal-md { max-width: 580px; }
.modal-lg { max-width: 860px; }
.modal-xl { max-width: 1120px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.qc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qc-item { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); transition: all var(--t-fast); }
.qc-item:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.qc-item > svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; margin-top: 2px; }
.qc-item strong { display: block; font-size: 14px; }
.qc-item small { display: block; font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.ap-step { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 13.5px; color: var(--text-2); border-bottom: 1px solid var(--line); animation: fadeUp 0.3s var(--ease-out); }
.ap-step svg { width: 17px; height: 17px; flex: none; }
.ap-step.done svg { color: var(--ok); }
.ap-step.fail svg { color: var(--danger); }
.ap-form { display: grid; gap: 18px; }

/* ---------- Vazio / portão ---------- */
.empty { text-align: center; padding: 48px 20px; border-radius: var(--r-xl); border: 1px dashed var(--line-2); background: var(--bg-2); }
.empty-ic { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.empty-ic svg { width: 24px; height: 24px; }
.empty .muted { max-width: 46ch; margin: 8px auto 0; }
.gate { display: grid; place-items: center; min-height: 60vh; }
.gate-card { max-width: 620px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); }
.sk-card { padding: 18px; }

/* ---------- Diversos ---------- */
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(232, 96, 12, 0.22); font-size: 13px; color: #ffd3ad; line-height: 1.5; }
.note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent-2); }
.note.neutral { background: var(--surface-2); border-color: var(--line); color: var(--text-2); }
.note.neutral svg { color: var(--text-3); }
.link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 176, 102, 0.4); }
.link:hover { text-decoration-color: currentColor; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-4); font-size: 11px; font-weight: 600; color: var(--text-2); }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .split, .split-300 { grid-template-columns: minmax(0, 1fr); }
  .split-left { grid-template-columns: minmax(0, 1fr); }
  .sticky-col { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform 0.3s var(--ease-out); box-shadow: var(--shadow-3); }
  .sidebar.open { transform: none; }
  .sb-close, .sb-open { display: inline-flex; }
  .sb-overlay { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .sb-overlay.open { opacity: 1; pointer-events: auto; }
  .wizard { grid-template-columns: minmax(0, 1fr); }
  .steps-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .steps-nav::-webkit-scrollbar { display: none; }
  .steps-nav button { flex: none; }
  .steps-nav small { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; min-height: 60px; gap: 10px; }
  .tb-sub { display: none; }
  .tb-h { font-size: 18px; }
  .tb-actions { width: 100%; justify-content: flex-start; order: 3; }
  .tb-auto span, .engine-badge { font-size: 11.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .qc-grid { grid-template-columns: minmax(0, 1fr); }
  .slider-row { grid-template-columns: 1fr 1fr; }
  .slider-row .range { grid-column: 1 / -1; grid-row: 2; }
  .vh { grid-template-columns: 84px minmax(0, 1fr); }
  .scene { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .scene-field { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .scene-field > span { padding-top: 0; }
  .example-pair { grid-template-columns: minmax(0, 1fr); }
  .cal { gap: 3px; }
  .cal-cell { min-height: 74px; padding: 5px; }
  .cal-cell .cal-item { font-size: 0; padding: 0; height: 6px; border-left: 0; background: var(--accent); }
  .cal-cell .cal-item.t-reels { background: var(--accent-2); }
  .cal-cell .cal-item.t-post { background: var(--gray); }
  .c-row { grid-template-columns: 44px minmax(0, 1fr); }
  .c-row > :last-child { grid-column: 1 / -1; justify-content: flex-start; }
  .c-thumb { width: 44px; height: 54px; }
  .modal-back { padding: 10px; align-items: end; }
  .modal { max-height: calc(100vh - 20px); border-radius: 22px; }
}

/* Ícones dentro de texto corrido */
svg.i-inline, .out-why svg, .c-meta svg, .label .hint svg { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; }
.c-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.c-meta .pill { height: 22px; font-size: 11px; }

.faq-mini { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.faq-mini summary { cursor: pointer; font-size: 13.5px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-mini summary::after { content: "+"; color: var(--accent-2); font-weight: 700; }
.faq-mini[open] summary::after { content: "–"; }
.faq-mini summary::-webkit-details-marker { display: none; }

/* ---------- Conta, plano e login ---------- */
.sb-plan { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.sb-sync { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); padding: 0 10px; }
.sb-sync svg { width: 12px; height: 12px; }
.acct-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px clamp(16px, 3vw, 36px) 0; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(232, 96, 12, 0.3); font-size: 13.5px; color: #ffd3ad; }
.acct-banner > svg { width: 17px; height: 17px; color: var(--accent-2); flex: none; }
.acct-banner span { flex: 1 1 260px; }
.acct-banner.warn { background: var(--danger-soft); border-color: rgba(255, 91, 74, 0.3); color: #ffcbc4; }
.acct-banner.warn > svg { color: var(--danger); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.plan-card.is-highlight { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(232, 96, 12, 0.1), transparent 45%), var(--surface); }
.plan-card.is-current { border-color: var(--ok); }
.plan-flag { position: absolute; top: 18px; right: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .cur { font-size: 15px; color: var(--text-2); }
.plan-price strong { font-family: var(--font-display); font-size: 42px; letter-spacing: -0.04em; line-height: 1; }
.plan-price .per { font-size: 14px; color: var(--text-3); }
.plan-feats { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.plan-feats li { display: flex; gap: 9px; align-items: flex-start; }
.plan-feats svg { width: 15px; height: 15px; color: var(--accent-2); flex: none; margin-top: 3px; }
.auth-body { overflow-x: hidden; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-form { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(24px, 5vw, 56px); }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-card .tabs { width: 100%; }
.auth-card .tabs .tab { flex: 1; justify-content: center; }
.auth-msg { text-align: left; }
.auth-msg > svg { width: 40px; height: 40px; color: var(--accent-2); }
.auth-side { position: relative; overflow: hidden; border-left: 1px solid var(--line); }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.85)); }
.auth-quote { position: absolute; left: clamp(24px, 4vw, 48px); right: clamp(24px, 4vw, 48px); bottom: clamp(24px, 4vw, 48px); z-index: 1; }
.auth-quote p { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-top: 12px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 12px; color: var(--text-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
button.hint.link { font-size: 12px; font-weight: 500; }
@media (max-width: 1024px) { .plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } }

/* Filtros: os botões de chip ganham uma linha própria e rolam na horizontal */
.toolbar > .chips-scroll { flex: 1 1 100%; min-width: 0; order: -1; }
.tab svg { flex: none; }

/* Menu "Transformar em" dos cartões de ideia */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 13px; height: 13px; }
.menu-list { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 190px; padding: 6px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); display: flex; flex-direction: column; }
.menu-list a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.menu-list a:hover { background: var(--surface-4); color: var(--text); }
.menu-list svg { width: 15px; height: 15px; }

/* Painel no celular: números numa faixa compacta */
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .hero-panel .stat { padding: 10px 8px; border-radius: 12px; }
  .hero-panel .stat-ic { display: none; }
  .hero-panel .stat-n { font-size: 22px; }
  .hero-panel .stat-l { font-size: 10.5px; line-height: 1.3; margin-top: 4px; }
}
