/* ============================================================================
   MarkFlow 5.3 — pele "Studio" (referência: Portal Publicitário, escolhida pelo
   Franklin em 05/10/2026). Substitui o theme.css (Liquid). Camada POR CIMA do app.css.
   - Escuro por padrão, claro opcional (botão no rodapé do menu).
   - Laranja só onde importa: ação principal, item ativo, número em destaque.
   - Títulos grandes e finos; rótulos pequenos em caixa alta; números em pílulas.
   - Sem vidro, sem brilho, sem animação longa.
   ============================================================================ */
@font-face { font-family: InterVar; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: InterVar; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------------------------------------------------------------- tokens: ESCURO (padrão) */
:root {
  color-scheme: dark;
  --font: InterVar, Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --canvas: #0B0B0C; --surface: #151517; --surface-subtle: #19191C; --surface-muted: #202024; --raised: #1C1C20;
  --border: rgba(255,255,255,.07); --border-strong: rgba(255,255,255,.14);
  --text: #F4F4F5; --text-2: #C9C9CF; --text-muted: #9696A0; --text-disabled: #5C5C63;
  --fill: rgba(255,255,255,.05); --fill-2: rgba(255,255,255,.09);
  --solid: #F4F4F5; --solid-ink: #0B0B0C;                 /* pílula "cheia" (branca no escuro, preta no claro) */
  --p-50: rgba(255,107,0,.10); --p-100: rgba(255,107,0,.18); --p-200: rgba(255,107,0,.32); --p-400: #FF8A3D; --p-500: #FF6B00; --p-600: #FF6B00;
  --p-700: #FF9A57; --p-800: #FFB27F;                       /* laranja como TEXTO: tom claro, legível no escuro */
  --accent: #FF6B00; --accent-hover: #FF7D1F; --accent-ink: #0B0B0C;
  --success-bg: rgba(34,197,94,.12); --success: #4ADE80; --warning-bg: rgba(245,158,11,.13); --warning: #FBBF24;
  --danger-bg: rgba(239,68,68,.13); --danger: #F87171; --info-bg: rgba(96,165,250,.12); --info: #93C5FD; --violet-bg: rgba(167,139,250,.13); --violet: #C4B5FD;
  --success-solid: #15803D; --info-solid: #1D4ED8; --violet-solid: #6D28D9; --danger-solid: #DC2626;   /* 6.49.9: fundo de selo com texto branco (contraste ≥ 4,5 nos dois temas) */
  --rail-bg: #0F0F11; --rail-text: #8E8E96; --rail-text-on: #F4F4F5;
  --chart-spend: #FF6B00; --chart-result: #F4F4F5;
  --r-md: 10px; --r-lg: 18px; --r-xl: 22px;
  --sh-xs: none; --sh-sm: 0 12px 32px rgba(0,0,0,.4); --sh-md: 0 24px 60px rgba(0,0,0,.5); --sh-ov: 0 40px 100px rgba(0,0,0,.6);
  --scrim: rgba(0,0,0,.6);
  --hatch: repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 2px, transparent 2px 7px);
  --side-w: 92px; --top-h: 60px;
}
/* ---------------------------------------------------------------- tokens: CLARO */
:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #F3F2EF; --surface: #FFFFFF; --surface-subtle: #FAFAF8; --surface-muted: #F1F0ED; --raised: #FFFFFF;
  --border: rgba(10,10,10,.07); --border-strong: rgba(10,10,10,.15);
  --text: #0A0A0A; --text-2: #3F3F46; --text-muted: #62626A; --text-disabled: #A1A1AA;   /* 6.49.9: muted um tom mais escuro (≥ 4,5 sobre os fundos cinza) */
  --fill: rgba(10,10,10,.04); --fill-2: rgba(10,10,10,.07);
  --solid: #0A0A0A; --solid-ink: #FFFFFF;
  --p-50: #FFF4EC; --p-100: #FFE4CF; --p-200: #FFC79E; --p-700: #C2410C; --p-800: #9A3412;
  --success-bg: #ECFDF3; --success: #15803D; --warning-bg: #FFF7E6; --warning: #B45309;
  --danger-bg: #FEF2F2; --danger: #B91C1C; --info-bg: #EFF6FF; --info: #1D4ED8; --violet-bg: #F5F3FF; --violet: #6D28D9;
  --rail-bg: #FFFFFF; --rail-text: #6B6B72; --rail-text-on: #0A0A0A;
  --chart-result: #0A0A0A;
  --sh-xs: 0 1px 2px rgba(0,0,0,.04); --sh-sm: 0 10px 30px rgba(0,0,0,.08); --sh-md: 0 24px 60px rgba(0,0,0,.14); --sh-ov: 0 40px 100px rgba(0,0,0,.2);
  --scrim: rgba(10,10,10,.35);
  --hatch: repeating-linear-gradient(135deg, rgba(10,10,10,.09) 0 2px, transparent 2px 7px);
}

/* ---------------------------------------------------------------- base */
body { background: var(--canvas); font-family: var(--font); font-feature-settings: "cv11", "ss01"; letter-spacing: -.005em; }
b, strong { font-weight: 600; }
a { color: var(--p-700); }
::selection { background: var(--p-200); }
:focus-visible { outline: 2px solid var(--p-400); outline-offset: 2px; }
h1 { font-weight: 300; font-size: 34px; line-height: 40px; letter-spacing: -.025em; }
h2 { font-weight: 500; letter-spacing: -.015em; } h3 { font-weight: 600; letter-spacing: -.01em; }
.eyebrow { display: block; font: 600 11px/14px var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.muted { color: var(--text-muted); }
hr { border: 0; border-top: 1px solid var(--border); }

/* ---------------------------------------------------------------- botões */
.btn { height: 36px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 550;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease; }
.btn:hover { background: var(--surface-muted); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-sm { height: 32px; }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; box-shadow: none; }
.btn-primary:hover { background: var(--accent-hover); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; } .btn-ghost:hover, .icon-btn:hover { background: var(--fill); }
.btn-danger { color: var(--danger); }
.icon-btn { border-radius: 99px; color: var(--text-2); }
.btn-link { color: var(--p-700); }

/* ---------------------------------------------------------------- campos */
input[type=text], input[type=email], input[type=password], input[type=date], input[type=url], input[type=number], input[type=search], input[type=time], input[type=tel], select, textarea {
  height: 40px; border-radius: 12px !important; border: 1px solid var(--border-strong); background-color: var(--surface-subtle); color: var(--text); }
textarea { height: auto; }
input::placeholder, textarea::placeholder { color: var(--text-disabled); }
input:focus, select:focus, textarea:focus { border-color: var(--p-400) !important; box-shadow: 0 0 0 3px var(--p-100) !important; outline: none; }
select option { background: var(--surface); color: var(--text); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
input[type=date], input[type=time] { color-scheme: inherit; }
.field > span { font-size: 12px; font-weight: 550; color: var(--text-2); }
.row { row-gap: 0; }

/* ---------------------------------------------------------------- badges, chips, segmentado */
.badge { height: 24px; padding: 0 10px; background: var(--fill); color: var(--text-2); font-weight: 550; box-shadow: none; }
.badge .dot { width: 6px; height: 6px; }
.b-gray { background: var(--fill); color: var(--text-2); }
.b-blue { background: var(--info-bg); color: var(--info); box-shadow: none; }
.b-green { background: var(--success-bg); color: var(--success); }
.b-amber { background: var(--warning-bg); color: var(--warning); }
.b-red { background: var(--danger-bg); color: var(--danger); }
.b-purple { background: var(--violet-bg); color: var(--violet); }
.b-primary { background: var(--p-50); color: var(--p-700); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; border: 1px solid var(--p-200); color: var(--p-700); font: 550 11px/1 var(--font); }

/* filtros em pílula: o ativo fica laranja (como "Todos" na referência) */
.chips { gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.chip { height: 32px; padding: 0 14px; border: 0; border-radius: 99px; background: transparent; color: var(--text-muted); font-weight: 550; white-space: nowrap; }
.chip:hover { color: var(--text); background: var(--fill); text-decoration: none; }
.chip b { color: inherit; font-weight: 600; opacity: .8; }
/* 6.50: estado ativo em neutro (pílula escura no claro, clara no escuro); o laranja preenchido fica só para a ação principal da tela */
.chip.on { background: var(--solid); color: var(--solid-ink); }
.chip.on b { color: var(--solid-ink); }
.seg { border: 1px solid var(--border); border-radius: 99px; background: var(--surface); padding: 3px; gap: 2px; overflow: visible; }
.seg a, .seg button { height: 30px; border-radius: 99px; background: transparent; color: var(--text-muted); border: 0 !important; padding: 0 14px; }
.seg a:hover, .seg button:hover { color: var(--text); text-decoration: none; }
.seg .on { background: var(--solid); color: var(--solid-ink); font-weight: 600; }
.tabs { border-bottom: 1px solid var(--border); gap: 4px; }
.tabs a { color: var(--text-muted); font-weight: 550; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-color: var(--accent); }
.steps .on .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.toolbar { gap: 8px; }
.toolbar select, .toolbar input, .task-chips select, .task-chips input, .meta-row select, .meta-row input { height: 36px; border-radius: 99px !important; padding: 0 14px; font-size: 13px; }
.toolbar select, .task-chips select, .meta-row select { padding-right: 30px; text-overflow: ellipsis; }
@media (min-width: 768px) { .toolbar > select { width: auto; max-width: 200px; } .toolbar input[type=search] { min-width: 180px; flex: 0 1 220px; } }
.meta-row select, .meta-row input { border-radius: 10px !important; padding: 0 10px; }

/* avatar e logo */
.avatar { background: var(--surface-muted); color: var(--text); box-shadow: 0 0 0 1.5px var(--canvas); font-weight: 600; }
.avatar.has-img { background: var(--surface-muted); }
.clogo { background: #fff; box-shadow: inset 0 0 0 1px var(--border); border-radius: 10px; }
.clogo.none { background: var(--p-50); color: var(--p-700); box-shadow: none; }
.clogo.lg { border-radius: 16px; }
.clogo-btn .clogo-edit { background: var(--raised); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.4); }

/* ---------------------------------------------------------------- moldura: trilho de ícones à esquerda */
.shell { grid-template-columns: var(--side-w) minmax(0, 1fr); }
.side { width: var(--side-w); padding: 14px 8px; background: var(--rail-bg); color: var(--rail-text); border-right: 1px solid var(--border); align-items: center; gap: 0; }
.side .brand { justify-content: center; padding: 4px 0 18px; }
.side .brand > span:last-child, .org-name, .nav-sec { display: none; }
.brand-mark { position: relative; width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: #0B0B0C; font-weight: 800; font-size: 17px; box-shadow: none; }
.brand-mark::after { display: none; }
.nav { width: 100%; gap: 4px; align-items: stretch; }
.nav a { position: relative; flex-direction: column; justify-content: center; gap: 4px; height: auto; min-height: 56px; padding: 8px 2px; border-radius: 14px;
  color: var(--rail-text); font: 550 11px/12px var(--font); text-align: center; letter-spacing: 0; background: transparent; }
.nav a .lbl { display: block !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a svg { width: 20px; height: 20px; }
.nav a:hover { color: var(--rail-text-on); background: var(--fill); text-decoration: none; }
.nav a.on { background: var(--accent); color: #0B0B0C; font-weight: 650; box-shadow: none; }
.nav a.on svg { color: #0B0B0C; }
.nav a.on::before { display: none !important; }
.nav a .count { position: absolute; top: 5px; right: 14px; display: inline-grid !important; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; margin: 0;
  border-radius: 99px; background: var(--surface-muted); color: var(--text); font: 650 10px/16px var(--font); }
.nav a.on .count { background: #0B0B0C; color: #fff; }
.nav .sep { height: 1px; background: var(--border); margin: 6px 14px; }
.nav-pill { display: none !important; }
.side-foot { margin-top: auto; width: 100%; padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.side-foot .icon-btn { width: 40px; height: 40px; color: var(--rail-text); }
.side-foot .icon-btn:hover { color: var(--rail-text-on); }

/* topo: limpo, sem vidro */
.top { height: var(--top-h); background: var(--canvas); border-bottom: 1px solid var(--border); padding: 0 32px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.crumb { font-size: 13px; } .crumb a { color: var(--text-muted); } .crumb b { color: var(--text); font-weight: 550; }
.search-btn { height: 38px; min-width: 240px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.search-btn:hover { background: var(--surface-muted); }
.search-btn kbd { border-radius: 6px; background: var(--fill); border-color: var(--border); color: var(--text-muted); box-shadow: none; }
.top .btn-primary { height: 38px; padding: 0 16px; }
.top .icon-btn { width: 38px; height: 38px; }
.content { padding: 28px 32px 56px; }

/* ---------------------------------------------------------------- cabeçalho de página */
.page-head { align-items: flex-end; margin-bottom: 22px; }
.page-head h1 { font-weight: 300; }
.page-head p { color: var(--text-muted); font-size: 13px; margin-top: 6px; }
.ctx-head h1 { font-weight: 300; font-size: 32px; line-height: 38px; }

/* ---------------------------------------------------------------- cartões e superfícies */
.card, .tcard, .empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.card { padding: 18px 20px; }
.card-h h3 { flex: 0 1 auto; }
.card-h .sp, .card-h > .grow { flex: 1; }
.card > h3, .card-h h3 { font-size: 15px; }
.grid.g2 { align-items: start; }
.li { border-color: var(--border); }
.li:hover { background: var(--fill); }
.progress { background: var(--fill-2); border-radius: 99px; overflow: hidden; }
.progress i { background: var(--accent); border-radius: 99px; }
.setup .li.done .t { color: var(--text-muted); text-decoration: line-through; }
.setup .li.done svg { color: var(--success); }
.err { background: var(--danger-bg); color: var(--danger); border-radius: 12px; }
.okmsg { background: var(--success-bg); color: var(--success); border-radius: 12px; }

/* ---------------------------------------------------------------- números em pílulas (KPIs)
   rótulo pequeno em cima; o número dentro de uma pílula. 1ª cheia, 2ª laranja,
   3ª só contorno, 4ª hachurada — a assinatura visual da referência. */
.kpis { display: flex !important; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 22px; }
.kpis > .kpi { flex: 1 1 150px; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
.kpi > a, .kpi { color: inherit; text-decoration: none !important; }
.kpi > a { display: flex; flex-direction: column; }
.kpi span:first-child { order: 0; display: block; font: 550 12px/14px var(--font); color: var(--text-muted); margin: 0 0 7px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { order: 1; display: flex; align-items: center; height: 42px; padding: 0 18px; margin: 0; border-radius: 99px; font: 650 16px/1 var(--font); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; border: 1px solid var(--border-strong); background: transparent; color: var(--text); }
.kpi .small { order: 2; margin: 6px 0 0 2px; font-size: 12px; }
.kpis > .kpi:nth-child(4n+1) b { background: var(--solid); color: var(--solid-ink); border-color: transparent; }
.kpis > .kpi:nth-child(4n+2) b { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.kpis > .kpi:nth-child(4n+4) b { background: var(--hatch); }
.kpi a:hover b { filter: brightness(1.08); }
@media (max-width: 767px) { .kpis > .kpi { flex: 1 1 calc(50% - 6px); } .kpi b { height: 38px; font-size: 15px; } }

/* ---------------------------------------------------------------- tabelas */
.tcard { overflow: hidden; }
table.t th { background: transparent; color: var(--text-muted); font: 600 11px/14px var(--font); letter-spacing: .08em; text-transform: uppercase; border-color: var(--border); }
table.t td { border-color: var(--border); height: 54px; padding-block: 8px; }
table.t tbody tr:hover { background: var(--fill); }
table.t td a, table.t td > b a { color: var(--text); font-weight: 600; }
table.t td a b { font-weight: inherit; }
table.t td a:hover { color: var(--p-700); }
table.t tr.sel td { background: var(--p-50); }
th.bk, td.bk { width: 36px; padding-right: 0 !important; }

/* ---------------------------------------------------------------- kanban */
.board { gap: 14px; }
.col { background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 20px; padding: 10px; box-shadow: none; transition: background 120ms ease, box-shadow 120ms ease; }
.col.over { box-shadow: inset 0 0 0 2px var(--accent); background: var(--p-50); }
.col-h { padding: 4px 6px 8px; font: 600 13px/18px var(--font); }
.col-h .cdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.col-h .n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--fill-2); color: var(--text-2); font: 600 11px/20px var(--font); }
.tcardk { background: var(--raised); border: 1px solid var(--border); border-radius: 14px; padding: 12px 13px; box-shadow: none; transition: border-color 120ms ease, background 120ms ease; }
.tcardk:hover { border-color: var(--border-strong); background: var(--surface-muted); }
.tcardk.dragging { opacity: .9; box-shadow: var(--sh-md); }
.tcardk .tt { font-weight: 600; font-size: 14px; line-height: 19px; }
.tcardk .ft { color: var(--text-muted); }
.col-add { border-radius: 12px; color: var(--text-muted); }
.col-add:hover { background: var(--fill); color: var(--text); }
.dc-blue { background: #60A5FA; } .dc-gray { background: var(--text-disabled); } .dc-amber { background: #FBBF24; } .dc-red { background: #F87171; } .dc-purple { background: #A78BFA; } .dc-green { background: #4ADE80; }

/* ---------------------------------------------------------------- menus, diálogos, busca, toast */
.pop-menu { background: var(--raised); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--sh-sm); padding: 6px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pop-menu button, .pop-menu a { border-radius: 10px; color: var(--text); }
.pop-menu button:hover, .pop-menu a:hover { background: var(--fill); text-decoration: none; }
.dlg-root, .pal-root { background: var(--scrim); -webkit-backdrop-filter: none; backdrop-filter: none; }
.dlg, .pal { background: var(--raised); border: 1px solid var(--border-strong); border-radius: var(--r-xl); box-shadow: var(--sh-ov); -webkit-backdrop-filter: none; backdrop-filter: none; }
.dlg-h, .dlg-f { border-color: var(--border); }
.pal-in input, .pal-in input:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.pal-in input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.pal-item.sel { background: var(--p-50); }
.toast { background: var(--solid); color: var(--solid-ink); border-radius: 99px; padding: 10px 18px; box-shadow: var(--sh-md); }
.toast.erro { background: #DC2626; color: #fff; }

/* ---------------------------------------------------------------- login */
.login { background: radial-gradient(60vw 50vw at 85% -10%, rgba(255,107,0,.20), transparent 60%), var(--canvas); }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--sh-md); -webkit-backdrop-filter: none; backdrop-filter: none; }
.login-card .brand { color: var(--text); } .login-card .brand small { color: var(--text-muted); }
.login-card h1 { font-size: 32px; line-height: 38px; }

/* ---------------------------------------------------------------- avisos (sino) */
.notif-btn { position: relative; }
.notif-n { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #0B0B0C;
  font: 700 10px/16px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--canvas); }
.notif-menu { width: 380px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.notif-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.notif-list { max-height: min(60vh, 440px); overflow-y: auto; padding: 4px; }
.notif-it { display: flex !important; align-items: flex-start; gap: 10px; padding: 10px !important; height: auto !important; border-radius: 12px; color: var(--text) !important; text-decoration: none !important; }
.notif-it .grow { min-width: 0; flex: 1; } .notif-it .t { display: block; font-weight: 550; }
.notif-it .m { display: block; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-it.new { background: var(--p-50); }
.notif-it.new .t::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.notif-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); flex: none; }
.notif-menu .empty { border: 0; box-shadow: none; background: transparent; }
@media (max-width: 767px) { .notif-menu { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; } }

/* ---------------------------------------------------------------- ações em massa */
.bulk-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px 8px 16px; border-radius: 18px; width: max-content; max-width: calc(100vw - 24px);
  background: #18181B; color: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--sh-md); }
.bulk-bar b { margin-right: 6px; font-weight: 600; }
.bulk-bar select, .bulk-bar input { width: auto !important; max-width: 180px; height: 32px !important; font-size: 13px; background: rgba(255,255,255,.08) !important; color: #fff; border-color: rgba(255,255,255,.18) !important; border-radius: 99px !important; }
.bulk-bar select option { color: #111; background: #fff; }
.bulk-date { display: inline-flex; align-items: center; gap: 4px; color: rgba(255,255,255,.7); }
.bulk-date input { color-scheme: dark; }
.bulk-bar .btn { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.16); }
.bulk-bar .btn-ghost { background: transparent; color: rgba(255,255,255,.8); border-color: transparent; } .bulk-bar .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.bulk-bar .btn-danger { background: transparent; border-color: rgba(248,113,113,.6); color: #FCA5A5; }
.bulk-bar.busy { opacity: .6; pointer-events: none; }
@media (max-width: 767px) { .bulk-bar { left: 12px; right: 12px; transform: none; bottom: 12px; width: auto; } }

/* ---------------------------------------------------------------- vazio, atalhos, esqueleto */
.empty { padding: 32px 20px; }
.empty-ic { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 16px; background: var(--fill-2); color: var(--text-muted); }
.empty.ok .empty-ic { background: var(--success-bg); color: var(--success); }
.empty.ok b { color: var(--text); }
.kbd-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.kbd-list > div:last-child { border-bottom: 0; }
kbd { display: inline-block; min-width: 22px; padding: 2px 6px; border-radius: 6px; background: var(--fill-2); border: 1px solid var(--border); font: 600 11px/16px var(--font); text-align: center; color: var(--text); }
.skel-page .skel { background: linear-gradient(90deg, var(--fill), var(--fill-2), var(--fill)); background-size: 200% 100%; animation: sk 1.3s infinite; }
.skel-page { animation: fade 160ms ease 200ms both; }
.heat { background: rgba(255,107,0, calc(var(--h) * .28)); }
.blk { display: inline-flex; align-items: center; gap: 3px; color: var(--warning); font-size: 12px; font-weight: 550; }

/* ---------------------------------------------------------------- agenda */
.ag-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: start; }
.ag-day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 8px; min-height: 180px; display: flex; flex-direction: column; gap: 6px; }
.ag-day.past { opacity: .6; }
.ag-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ag-dh { display: flex; align-items: baseline; gap: 6px; padding: 2px 4px 4px; }
.ag-dh span { font: 600 11px/14px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); } .ag-dh b { font-size: 20px; font-weight: 300; letter-spacing: -.02em; }
.ag-day.today .ag-dh b { color: var(--p-700); font-weight: 500; }
.ag-dh .icon-btn { margin-left: auto; width: 26px; height: 26px; opacity: 0; transition: opacity 120ms ease; }
.ag-day:hover .ag-dh .icon-btn, .ag-dh .icon-btn:focus-visible { opacity: 1; }
.ag-items { display: flex; flex-direction: column; gap: 6px; }
.ag-m { display: block; padding: 7px 9px; border-radius: 12px; background: var(--accent); color: #0B0B0C !important; text-decoration: none !important; line-height: 1.3; }
.ag-m b { display: block; font-size: 11px; font-weight: 700; opacity: .75; }
.ag-m span { font-size: 13px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ag-m i { display: block; font-style: normal; font-size: 11px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-m:hover { background: var(--accent-hover); }
.ag-m.done { background: var(--fill-2); color: var(--text) !important; } .ag-m.done b { color: var(--success); opacity: 1; }
.ag-m.cancel { background: transparent; color: var(--text-muted) !important; box-shadow: inset 0 0 0 1px var(--border-strong); } .ag-m.cancel span { text-decoration: line-through; }
.ag-tl { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.ag-t { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--text-2) !important; padding: 3px 4px; border-radius: 6px; text-decoration: none !important; }
.ag-t span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; } .ag-t svg { flex: none; color: var(--text-muted); margin-top: 1px; }
.ag-t:hover { background: var(--fill); }
.ag-more { font-size: 11px; color: var(--text-muted); padding: 0 4px; }
.ag-empty { color: var(--text-disabled); font-size: 12px; padding: 0 4px; }
.ag-month { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.ag-mh, .ag-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ag-mh span { padding: 8px 10px; font: 600 11px/14px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.ag-cell { min-height: 104px; padding: 6px 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text) !important; text-decoration: none !important; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ag-cell:nth-child(7n) { border-right: 0; } .ag-cell:hover { background: var(--fill); }
.ag-cell b { font-size: 13px; font-weight: 550; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.ag-cell.out { background: var(--fill); } .ag-cell.out b { color: var(--text-disabled); }
.ag-cell.today b { background: var(--accent); color: #0B0B0C; }
.ag-chip { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--accent); color: #0B0B0C !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; font-weight: 600; }
.ag-chip.cancel { background: transparent; color: var(--text-muted) !important; text-decoration: line-through !important; box-shadow: inset 0 0 0 1px var(--border-strong); }
.ag-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ag-add input[name=text] { flex: 1 1 220px; min-width: 0; }
.ag-add select, .ag-add input[type=date] { width: auto !important; flex: 0 1 auto; }
.ag-main > section { margin-bottom: 16px; }
.ag-main .li.done .t { text-decoration: line-through; color: var(--text-muted); }
.ag-main .li > input[type=checkbox] { width: 18px; height: 18px; flex: none; }
#mtgNotes { width: 100%; resize: vertical; }
@media (max-width: 1279px) and (min-width: 768px) { .ag-week { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 8px; } }

/* ---------------------------------------------------------------- demanda: repetir / depende de */
.flow .li.dep { padding: 6px 0; }
.flow .li.dep a.t { color: var(--text); font-weight: 550; text-decoration: none; } .flow .li.dep a.t:hover { color: var(--p-700); }
.flow .li.dep.done a.t { color: var(--text-muted); text-decoration: line-through; }
.flow .li.dep > svg { flex: none; color: var(--warning); } .flow .li.dep.done > svg { color: var(--success); }
.flow select, .flow input[type=date] { width: 100% !important; }
.meta-row select { text-overflow: ellipsis; }
.mention { color: var(--p-700); font-weight: 600; }
.mention-pop { background: var(--raised); border: 1px solid var(--border-strong); box-shadow: var(--sh-sm); }
.mention-it { color: var(--text); } .mention-it.on, .mention-it:hover { background: var(--p-50); }
.comment { border-color: var(--border); }

/* ---------------------------------------------------------------- movimento: rápido e discreto */
:root { --spring: cubic-bezier(.2, .8, .2, 1); --out: cubic-bezier(.4, 0, 1, 1); }
.content.pg-out > * { opacity: .6; transition: opacity 90ms var(--out); }
.content.pg-in > * { animation: pgIn 180ms var(--spring) backwards; }
@keyframes pgIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.loading { animation: fade 160ms ease 200ms both; }
.dlg-root, .pal-root { animation: fade 120ms ease both; }
.dlg, .pal { animation: dlgIn 160ms var(--spring) both; }
.dlg-root.out, .pal-root.out { animation: fadeOut 110ms var(--out) both; pointer-events: none; }
.dlg-root.out .dlg, .pal-root.out .pal { animation: fadeOut 110ms var(--out) both; }
.pop-menu:not([hidden]) { animation: popIn 120ms var(--spring) both; transform-origin: top right; }
.toast:not([hidden]) { animation: toastIn 180ms var(--spring) both; }
@keyframes dlgIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html:not(.mf-motion) *, html:not(.mf-motion) *::before, html:not(.mf-motion) *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .content.pg-out > * { opacity: 1; }
}

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1279px) {
  :root { --side-w: 84px; }
  .side { padding: 12px 6px; }
  .side .brand > span:last-child { display: none; }
  .nav a { justify-content: center; padding: 8px 2px; }
  .search-btn { min-width: 0; }
  .top { padding: 0 20px; } .content { padding: 24px 24px 56px; }
}
/* ---------------------------------------------------------------- celular */
@media (max-width: 767px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 96px; z-index: 90; transform: translateX(-100%); transition: transform 200ms var(--ease); box-shadow: none; }
  body.nav-open .side { transform: none; box-shadow: var(--sh-ov); }
  body.nav-open::after { background: var(--scrim); }
  .nav a { min-height: 60px; }
  .nav a .count { display: inline-grid !important; }
  .top { padding: 0 8px; gap: 4px; }
  .top .btn-primary, .top .icon-btn, .menu-btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; }
  .top .btn-primary .hide-m { display: none; }
  .search-btn { width: 44px; height: 44px; min-width: 0; justify-content: center; padding: 0; }
  .content { padding: 18px 16px 56px; }
  h1, .page-head h1 { font-size: 28px; line-height: 34px; }
  .ctx-head h1 { font-size: 26px; line-height: 32px; }
  textarea.task-title { font-size: 22px !important; line-height: 28px; }
  .toolbar select, .toolbar input, .task-chips select, .task-chips input { height: 44px; }
  .task-chips > * { flex: 1 1 140px; }
  .chips { width: 100%; }
  .dlg, .dlg.wide { border-radius: 0; background: var(--surface); }
  .dlg-f { position: sticky; bottom: 0; background: var(--surface); }
  .steps li:not(.on) { display: none; }
  .ag-week { grid-template-columns: 1fr; } .ag-day { min-height: 0; }
  .ag-dh .icon-btn { opacity: 1; width: 36px; height: 36px; }
  .ag-cell { min-height: 64px; padding: 4px; } .ag-chip { display: none; } .ag-cell .ag-more { display: none; }
  .ag-cell:has(.ag-chip)::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 2px auto 0; }
}
@supports not (font-variation-settings: normal) { h1 { font-weight: 400; } }

/* ---------------------------------------------------------------- projetos em cartões */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; text-decoration: none !important; transition: border-color 120ms ease, background 120ms ease; }
.pcard:hover { border-color: var(--border-strong); background: var(--surface-subtle); }
.pc-h { display: flex; align-items: flex-start; gap: 12px; }
.pc-h .grow { min-width: 0; flex: 1; } .pc-h b { display: block; font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-h .m { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--p-50); color: var(--p-700); flex: none; }
.pc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.pc-row .late { color: var(--danger); }
.pc-own { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.pbar { height: 26px; border-radius: 99px; background: var(--fill-2); overflow: hidden; }
.pbar i { display: flex; align-items: center; height: 100%; padding: 0 10px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 700 11px/1 var(--font); font-style: normal; min-width: 0; }
.pc-n { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); padding-top: 12px; text-align: center; }
.pc-n b { display: block; font-size: 20px; font-weight: 300; letter-spacing: -.02em; } .pc-n span { font-size: 11px; color: var(--text-muted); }
.flow .meta-row { display: block; } .flow .meta-row select { flex: 1 1 160px; } .flow .meta-row input[type=date] { flex: 1 1 140px; }

/* ---------------------------------------------------------------- aprovação pelo cliente (página pública) */
#pub.portal { display: block; min-height: 100vh; background: radial-gradient(60vw 40vw at 90% -10%, rgba(255,107,0,.14), transparent 60%), var(--canvas); padding: 0; }
.portal-wrap { max-width: 1180px; margin: 0 auto; padding: 32px 24px 56px; }
.portal-h { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.portal-h .grow { flex: 1; min-width: 200px; } .portal-h h1 { margin-top: 4px; }
.portal-who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; padding: 14px 18px; }
.portal-who label { font-weight: 600; } .portal-who input { width: 260px; max-width: 100%; }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.pcard2 { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.pm { background: var(--surface-muted); }
.pm img, .pm-video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; cursor: zoom-in; background: #000; }
.pm-video { cursor: auto; object-fit: contain; }
.pm-imgs.multi { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; position: relative; }
.pm-imgs.multi img { flex: 0 0 100%; scroll-snap-align: start; }
.pm-imgs { position: relative; } .pm-n { position: absolute; display: none; }
.pm-frame { position: relative; aspect-ratio: 9 / 16; max-height: 560px; width: 100%; background: #000; }
.pm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pm-none { aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--text-muted); font-size: 13px; }
.pb { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.pb-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb h3 { font-size: 16px; line-height: 22px; }
.pb-cap { font-size: 14px; line-height: 20px; color: var(--text-2); max-height: 200px; overflow-y: auto; }
.pb-x { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-act { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }
.pb-act .btn { flex: 1 1 120px; }
.pb-act textarea { width: 100%; min-height: 84px; }
.pb-act .row-btns { display: flex; gap: 8px; width: 100%; } .pb-act .row-btns .btn { flex: 1; }
.portal-foot { text-align: center; margin-top: 28px; }
@media (max-width: 767px) { .portal-wrap { padding: 20px 14px 48px; } .portal-grid { grid-template-columns: minmax(0, 1fr); } .portal-who input { width: 100%; } }
.linkbox input { flex: 1; min-width: 0; }
.brand-mark { display: inline-grid; place-items: center; color: #0B0B0C; }
.brand-mark svg { width: 62%; height: 62%; display: block; }
.brand-mark.sm { width: 18px; height: 18px; border-radius: 6px; vertical-align: -4px; margin-right: 4px; }

/* ---------------------------------------------------------------- propostas (5.6) */
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
svg.i.i12 { width: 12px; height: 12px; }
.pe { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.pe-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pe-side { position: sticky; top: 76px; }
.pe .pe-co[hidden] { display: none; }
.pe-svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 14px; }
.pe-svc { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-subtle); color: var(--text); cursor: pointer; transition: border-color .15s, transform .15s; }
.pe-svc:hover { border-color: var(--accent); transform: translateY(-1px); }
.pe-svc b { font-weight: 600; font-size: 14px; line-height: 1.3; }
.pe-svc span { font: 650 13px/1 var(--font); color: var(--p-700); font-variant-numeric: tabular-nums; }
.pe-svc span i { font: 500 12px var(--font); color: var(--text-muted); font-style: normal; }
.pe-items { display: flex; flex-direction: column; gap: 10px; }
.pe-it { border: 1px solid var(--border-strong); border-radius: 16px; padding: 14px; background: var(--surface-subtle); display: flex; flex-direction: column; gap: 10px; }
.pe-it-h { display: flex; align-items: center; gap: 10px; }
.pe-n { font: 700 12px/1 var(--font); color: var(--p-700); font-variant-numeric: tabular-nums; }
.pe-name { flex: 1; font-weight: 600 !important; }
.pe-it-v { display: grid; grid-template-columns: 1.2fr .5fr 1fr 1fr; gap: 10px; }
.pe-it-v:not(:has(.pe-q)) { grid-template-columns: 1.2fr 1fr 1fr; }
.pe-disc { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pe-disc .chip { height: 28px; padding: 0 12px; border: 1px solid var(--border); font-size: 12px; }
.pe-dtag { display: inline-flex; align-items: center; gap: 5px; font: 600 12px var(--font); color: var(--success); margin-left: 4px; }
.pe-dtag.over { color: var(--danger); }
.pe-more summary { cursor: pointer; font-size: 13px; color: var(--text-muted); font-weight: 550; padding: 2px 0; }
.pe-more[open] summary { margin-bottom: 8px; }
.pe-more .row { margin-bottom: 8px; }
.pe-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px; color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: 16px; }
.pe-sum { display: flex; flex-direction: column; gap: 10px; }
.pe-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.pe-tot span { color: var(--text-muted); font-size: 13px; }
.pe-tot b { font: 700 20px/1.1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pe-tot.sm b { font-size: 14px; font-weight: 600; }
.pe-warn { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); background: var(--danger-bg); padding: 8px 10px; border-radius: 10px; font-size: 13px; margin: 0; }
.pe-act { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.btn-block { width: 100%; justify-content: center; }
@media (max-width: 1023px) { .pe { grid-template-columns: 1fr; } .pe-side { position: static; } .pe-it-v, .pe-it-v:not(:has(.pe-q)) { grid-template-columns: 1fr 1fr; } }
.ph-meta { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.pd-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.pd-left { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.pd-sbtn { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pd-tl { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; border-left: 2px solid var(--border); padding-left: 12px; }
.pd-tl > div { display: flex; flex-direction: column; position: relative; }
.pd-tl .dot { position: absolute; left: -17px; top: 5px; width: 8px; height: 8px; border-radius: 9px; background: var(--accent); }
.pd-tl b { font-size: 13px; }
.pd-preview { border-radius: 18px; overflow: auto; background: var(--surface-muted); padding: 18px; }
@media (max-width: 1023px) { .pd-grid { grid-template-columns: minmax(0, 1fr); } .pd-left { position: static; } .pd-preview { padding: 8px; } }
.br-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.br-slot { display: flex; flex-direction: column; gap: 8px; }
.br-l { font-size: 12px; font-weight: 550; color: var(--text-2); }
.br-img { height: 110px; border-radius: 14px; border: 1px dashed var(--border-strong); display: grid; place-items: center; padding: 14px;
  background: repeating-conic-gradient(#e9e9e9 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.br-img.dark { background: #2b2b2b; }
.br-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
@media (max-width: 640px) { .br-slots { grid-template-columns: 1fr; } }

/* folha da proposta (tela + PDF) */
#pub.pdview { display: block; min-height: 100vh; padding: 0; background: radial-gradient(60vw 40vw at 90% -10%, rgba(255,107,0,.12), transparent 60%), var(--canvas); }
.pd-bar-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: color-mix(in srgb, var(--canvas) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.pd-bar-top .grow { flex: 1; }
.pd-ag { display: flex; align-items: center; gap: 10px; }
.pd-ag img { height: 26px; background: #fff; border-radius: 6px; padding: 3px 6px; }
.pd-hint { max-width: 210mm; margin: 12px auto 0; padding: 0 16px; color: var(--text-muted); }
.pd-wrap { padding: 16px 16px 130px; }
.pd { --pc: #F5A623; position: relative; display: flex; flex-direction: column; width: 210mm; max-width: 100%; min-height: 297mm; margin: 0 auto; background: #fff; color: #1b1b1b;
  font: 400 10.5pt/1.55 var(--font); box-shadow: 0 30px 80px rgba(0,0,0,.35); border-radius: 4px; overflow: hidden; padding-left: 4.5mm; text-align: left; }
.pd * { color: inherit; }
.pd-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4.5mm; background: var(--pc); }
.pd-head { order: 0; display: flex; justify-content: center; align-items: center; height: 24mm; }
.pd-head img { height: 11mm; max-width: 60mm; object-fit: contain; opacity: .88; }
.pd-head b { font: 800 13pt var(--font); letter-spacing: .06em; text-transform: uppercase; }
.pd-tbl { order: 1; flex: 1; width: 100%; border-collapse: collapse; }
.pd-tbl td { padding: 0; border: 0; height: auto; }
.pd-sp-h, .pd-sp-f { display: none; }
.pd-body { padding: 2mm 16mm 12mm 15.5mm !important; vertical-align: top; }
.pd-foot { order: 2; display: flex; align-items: stretch; height: 21mm; background: #2b2b2b; color: #e8e8e8; margin-left: -4.5mm; padding-left: 9mm; }
.pd-foot-t { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1px; font-size: 8pt; line-height: 1.35; color: #d9d9d9; }
.pd-foot-t b { color: var(--pc); font-size: 10.5pt; font-weight: 700; margin-bottom: 2px; }
.pd-foot-t span { display: flex; align-items: center; gap: 5px; }
.pd-foot-t svg { opacity: .8; }
.pd-foot img { align-self: center; height: 14mm; max-width: 40mm; object-fit: contain; margin-right: 4mm; }
.pd-foot-n { align-self: center; margin-right: 5mm; color: #fff; font: 800 10pt var(--font); }
.pd-foot-c { width: 15mm; background: var(--pc); }
.pd-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 7mm; }
.pd-pill { display: inline-flex; align-items: center; height: 7mm; padding: 0 4mm; border-radius: 99px; border: 1.5px solid var(--pc); font: 700 7.5pt/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.pd-no { font-size: 8.5pt; color: #5f5f5f !important; font-variant-numeric: tabular-nums; }
.pd-title { font: 800 24pt/1.08 var(--font); letter-spacing: -.02em; margin: 0 0 6mm; color: #111; }
.pd-for { display: grid; grid-template-columns: repeat(auto-fit, minmax(38mm, 1fr)); gap: 4mm; padding: 4mm 0; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; margin-bottom: 6mm; }
.pd-for div { display: flex; flex-direction: column; }
.pd-for span { font: 600 7pt var(--font); letter-spacing: .12em; text-transform: uppercase; color: #666 !important; margin-bottom: 1mm; }
.pd-for b { font-size: 11pt; } .pd-for i { font-style: normal; color: #666 !important; font-size: 9pt; }
.pd-intro { margin: 0 0 7mm; font-size: 10.5pt; color: #333 !important; white-space: pre-line; }
.pd-h2 { font: 700 7.5pt var(--font); letter-spacing: .14em; text-transform: uppercase; color: #666 !important; margin: 0 0 3mm; }
.pd-item { break-inside: avoid; padding: 4.5mm 0; border-bottom: 1px solid #ececec; }
.pd-item-h { display: grid; grid-template-columns: 9mm 1fr auto; gap: 3mm; align-items: start; }
.pd-num { font: 800 11pt/1.4 var(--font); color: var(--pc) !important; }
.pd-item h3 { margin: 0; font: 700 12.5pt/1.3 var(--font); color: #111; }
.pd-item h3 small { font-weight: 500; color: #666; font-size: 9pt; }
.pd-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.2; }
.pd-price s { font-size: 8.5pt; color: #707070 !important; }
.pd-price b { font: 800 13pt var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-price span { font-size: 8pt; color: #5f5f5f !important; }
.pd-price em { font-style: normal; margin-top: 1mm; font: 700 6.5pt var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff !important; background: var(--pc); padding: .8mm 2mm; border-radius: 99px; }
.pd-inc { list-style: none; margin: 3mm 0 0 12mm; padding: 0; columns: 2; column-gap: 6mm; }
.pd-inc li { position: relative; padding-left: 5mm; margin-bottom: 1.2mm; break-inside: avoid; font-size: 9.5pt; color: #333 !important; }
.pd-inc li::before { content: ''; position: absolute; left: 0; top: 1.9mm; width: 2.4mm; height: 1.3mm; border-left: 1.6px solid var(--pc); border-bottom: 1.6px solid var(--pc); transform: rotate(-45deg); }
.pd-exc { margin: 2mm 0 0 12mm; font-size: 8.5pt; color: #5f5f5f !important; }
.pd-exc b { color: #555 !important; }
.pd-inv { break-inside: avoid; margin: 7mm 0 6mm; padding: 6mm; border-radius: 4mm; background: #1e1e1e; color: #fff; }
.pd-inv h2 { margin: 0 0 4mm; font: 700 7.5pt var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--pc) !important; }
.pd-inv-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(40mm, 1fr)); gap: 5mm; }
.pd-inv-g div { display: flex; flex-direction: column; }
.pd-inv-g span { font-size: 8pt; color: #bdbdbd !important; }
.pd-inv-g b { font: 800 18pt/1.2 var(--font); font-variant-numeric: tabular-nums; color: #fff !important; }
.pd-inv-g i { font-style: normal; font-size: 8pt; color: #9a9a9a !important; }
.pd-save { margin: 4mm 0 0; font-size: 8.5pt; color: var(--pc) !important; }
.pd-txt { break-inside: avoid; margin-bottom: 5mm; }
.pd-txt p { margin: 0; white-space: pre-line; font-size: 9.5pt; color: #333 !important; }
.pd-next ol { margin: 0; padding-left: 5mm; font-size: 9.5pt; color: #333 !important; }
.pd-next li { margin-bottom: 1mm; }
.pd-close { margin: 6mm 0 3mm; font-size: 10pt; color: #333 !important; }
.pd-sign { break-inside: avoid; display: flex; flex-direction: column; margin-top: 8mm; padding-top: 3mm; border-top: 2px solid var(--pc); width: 60mm; }
.pd-sign b { font-size: 11pt; } .pd-sign span { font-size: 9pt; color: #5f5f5f !important; }
.pd-accept { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; width: min(640px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 12px 18px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--border-strong); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.pd-accept > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pd-accept .small { color: var(--text-muted); }
.pd-accept.done { justify-content: center; } .pd-accept.done > span { flex: 1; }
@media (max-width: 640px) {
  .pd { font-size: 10pt; padding-left: 2.5mm; min-height: 0; }
  .pd-bar { width: 2.5mm; }
  .pd-body { padding: 2mm 5mm 8mm 5mm !important; }
  .pd-title { font-size: 19pt; }
  .pd-item-h { grid-template-columns: 7mm 1fr; } .pd-price { grid-column: 2; align-items: flex-start; text-align: left; margin-top: 1mm; }
  .pd-inc { columns: 1; margin-left: 7mm; } .pd-exc { margin-left: 7mm; }
  .pd-foot { margin-left: -2.5mm; padding-left: 5mm; height: auto; min-height: 20mm; }
  .pd-foot img { height: 11mm; } .pd-foot-c { width: 6mm; }
  .pd-accept { flex-wrap: wrap; } .pd-accept > div { flex-basis: 100%; }
  .pd-accept .btn { flex: 1; justify-content: center; }
}
@media print {
  @page { size: A4; margin: 0; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { background: #fff !important; }
  body > *:not(#pub) { display: none !important; }
  #pub.pdview { background: #fff !important; min-height: 0; }
  .no-print, .pd-hint { display: none !important; }
  .pd-wrap { padding: 0 !important; }
  .pd { display: block; width: 210mm; max-width: none; min-height: 0; box-shadow: none; border-radius: 0; overflow: visible; padding-left: 0; font-size: 10.5pt; }
  .pd-bar { position: fixed; left: 0; top: 0; bottom: 0; width: 4.5mm; }
  .pd-head { position: fixed; top: 0; left: 0; right: 0; }
  .pd-foot { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding-left: 13.5mm; height: 21mm; }
  .pd-sp-h { display: block; height: 26mm; } .pd-sp-f { display: block; height: 25mm; }
  .pd-body { padding: 0 16mm 0 20mm !important; }
}
.pe .form-col { max-width: none; }
.pd-pill { white-space: nowrap; }
@media (max-width: 640px) { .pd-hint, .hide-sm { display: none !important; } .pd-top { flex-wrap: wrap; } }
.br-img { overflow: hidden; } .br-img img { max-height: 80px; width: auto; height: auto; }
.meta-bar { display: inline-flex; align-items: center; gap: 8px; }
.meta-bar .small { display: inline-flex; align-items: center; gap: 5px; }
.meta-err { color: var(--danger); }
.meta-steps { margin: 8px 0 14px; padding-left: 18px; color: var(--text-2); } .meta-steps li { margin-bottom: 4px; }
/* relatório de tráfego (folha A4) */
.rp-head { display: flex; align-items: center; gap: 5mm; margin-bottom: 6mm; }
.rp-head img { width: 18mm; height: 18mm; object-fit: contain; border-radius: 3mm; border: 1px solid #eee; }
.rp-per { margin: 1.5mm 0 0; font-size: 10pt; color: #444 !important; } .rp-per span { font-size: 8.5pt; color: #666 !important; }
.rp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; margin: 0 0 6mm; break-inside: avoid; }
.rp-k { border: 1px solid #e7e7e7; border-radius: 3mm; padding: 3.5mm 4mm; display: flex; flex-direction: column; gap: .6mm; }
.rp-k:first-child { background: #1e1e1e; border-color: #1e1e1e; } .rp-k:first-child * { color: #fff !important; } .rp-k:first-child span { color: var(--pc) !important; }
.rp-k span { font: 600 7pt var(--font); letter-spacing: .1em; text-transform: uppercase; color: #666 !important; }
.rp-k b { font: 800 15pt/1.15 var(--font); font-variant-numeric: tabular-nums; }
.rp-k i { font-style: normal; font-size: 8pt; color: #666 !important; }
.rp-d { font-size: 7.5pt; font-weight: 600; } .rp-d.up { color: #15803d !important; } .rp-d.down { color: #b91c1c !important; } .rp-d.eq { color: #666 !important; }
.rp-k:first-child .rp-d.up { color: #4ade80 !important; } .rp-k:first-child .rp-d.down { color: #f87171 !important; }
.rp-facts { margin: 0; padding-left: 5mm; font-size: 9.5pt; color: #333 !important; } .rp-facts li { margin-bottom: 1.2mm; }
.rp-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; margin: 2mm 0 6mm; break-inside: avoid; }
.pd .chart { width: 100%; height: auto; display: block; }
.pd .chart .ax { fill: #888; font-size: 10px; } .pd .chart .grid { stroke: #ececec; }
.rp-camps { margin-bottom: 6mm; }
.rp-t { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
.rp-t th { text-align: left; font: 700 6.5pt var(--font); letter-spacing: .1em; text-transform: uppercase; color: #666 !important; padding: 0 2mm 2mm 0; border-bottom: 1.5px solid #1e1e1e; }
.rp-t td { padding: 2mm 2mm 2mm 0 !important; border-bottom: 1px solid #ececec !important; vertical-align: top; height: auto !important; font-variant-numeric: tabular-nums; }
.rp-t td div { font-size: 7.5pt; color: #666 !important; }
.rp-t tr { break-inside: avoid; }
.rp-notes { min-height: 22mm; white-space: pre-wrap; font-size: 9.5pt; line-height: 1.55; color: #222 !important; border: 1.5px dashed #d8d8d8; border-radius: 3mm; padding: 3mm 4mm; outline: none; }
.rp-notes:focus { border-color: var(--pc); }
.rp-notes:empty::before { content: attr(data-ph); color: #aaa; }
.rp-foot { font-size: 7.5pt; color: #707070 !important; margin: 4mm 0 0; }
@media (max-width: 640px) { .rp-kpis { grid-template-columns: 1fr 1fr; } .rp-charts { grid-template-columns: 1fr; } }
@media print {
  .rp-notes { border: 0; padding: 0; min-height: 0; }
  .rp-notes:empty, .rp-notes-s:has(.rp-notes:empty) { display: none; }
}
.rp-d { font-style: normal; display: block; margin-top: .6mm; }
.btn-link.danger { color: var(--danger); display: inline-flex; align-items: center; gap: 5px; }
.rp-per-c { white-space: nowrap; font-size: 7.5pt; color: #555 !important; }
@media (max-width: 640px) { .rp-t th:nth-child(6), .rp-t td:nth-child(6) { display: none; } }

.show-m { display: none; }
@media (max-width: 767px) { .show-m { display: inline; } }
.meta-camps { margin-top: 18px; }
tr.meta-orphan td { background: color-mix(in srgb, var(--warning-bg, #FFFBEB) 60%, transparent); }
/* gráficos por dia (5.9.2): leitura rápida */
.ch-sum { margin: -4px 0 8px; font-size: 13px; color: var(--text-muted); } .ch-sum b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.chart .avg { stroke: var(--text-muted); stroke-width: 1; opacity: .75; }
.chart .avg-l { fill: var(--text-muted); font: 500 10px var(--font); }
.chart .lbl { fill: var(--text); font: 650 11px var(--font); font-variant-numeric: tabular-nums; }
.chart .hit { cursor: default; outline: none; } .chart .hit:hover .bar, .chart .hit:focus .bar { opacity: .72; }
.chart .hit:focus rect:first-child { fill: color-mix(in srgb, var(--text) 6%, transparent); }
#chartTip { position: fixed; z-index: 80; pointer-events: none; display: flex; flex-direction: column; gap: 1px; padding: 8px 11px; border-radius: 10px;
  background: var(--raised); border: 1px solid var(--border-strong); box-shadow: 0 10px 28px rgba(0,0,0,.28); font: 400 12px/1.35 var(--font); color: var(--text-2); max-width: 260px; }
#chartTip[hidden] { display: none; } #chartTip b { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; } #chartTip .o { color: var(--text-muted); }
.pd .ch-sum { font-size: 8pt; color: #666 !important; margin: -1.5mm 0 1.5mm; } .pd .ch-sum b { color: #222 !important; }
.pd .chart .avg { stroke: #999; } .pd .chart .avg-l { fill: #888; } .pd .chart .lbl { fill: #222; }

/* ---------------------------------------------------------------- app no celular e tablet (5.9.2)
   iPhone/iPad/Android instalados na tela inicial: nada atrás do relógio/notch nem da barra de gestos,
   altura real da tela, sem zoom ao tocar num campo, toque sem "flash". */
:root { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
.shell, .login { min-height: 100vh; min-height: 100dvh; }
.side { height: 100vh; height: 100dvh; padding-top: calc(12px + var(--sat)); padding-bottom: calc(12px + var(--sab)); }
.top { height: calc(var(--top-h) + var(--sat)); padding-top: var(--sat); }
:root[data-theme="light"] .top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--sat); background: #0B0B0C; pointer-events: none; }   /* relógio branco do iPhone legível no tema claro */
.toast { bottom: calc(24px + var(--sab)); }
.login, #pub.portal .portal-wrap { padding-top: calc(20px + var(--sat)); }
.pd-bar-top { padding-top: calc(12px + var(--sat)); padding-left: calc(16px + var(--sal)); padding-right: calc(16px + var(--sar)); }
.pd-accept { bottom: calc(16px + var(--sab)); }
.pd-wrap { padding-bottom: calc(130px + var(--sab)); }
#pub.portal, #pub.pdview, .login { min-height: 100vh; min-height: 100dvh; }
@media (max-width: 767px) {
  .top { padding-left: calc(8px + var(--sal)); padding-right: calc(8px + var(--sar)); }
  .content { padding-left: calc(16px + var(--sal)); padding-right: calc(16px + var(--sar)); padding-bottom: calc(56px + var(--sab)); }
  .side { padding-left: calc(6px + var(--sal)); }
  .dlg-root { padding-top: var(--sat); }
  .dlg { min-height: calc(100dvh - var(--sat)); display: flex; flex-direction: column; }
  .dlg > form { flex: 1; display: flex; flex-direction: column; } .dlg .dlg-b { flex: 1; }
  .dlg-f { padding-bottom: calc(16px + var(--sab)); position: sticky; bottom: 0; background: var(--raised); }
  .pal-root { padding-top: calc(12px + var(--sat)); }
}
/* iPhone dá zoom em campo com letra menor que 16px: no toque, todo campo usa 16px */
@media (max-width: 1024px) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea:not(.task-title) { font-size: 16px !important; }
}
/* toque: alvo de no mínimo 40px nos botões pequenos */
@media (pointer: coarse) { .btn-sm { min-height: 40px; } .btn-link { min-height: 32px; } .icon-btn { min-width: 40px; min-height: 40px; } }
.chart .avg-l, .chart .lbl { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.pd .chart .avg-l, .pd .chart .lbl { stroke: #fff; }

/* ================================================================ 6.0: celular como app, abas e movimento
   Tudo curto (150–280 ms), com mola suave; "reduzir movimento" desliga (regra global acima). */
svg.i.i20 { width: 20px; height: 20px; }

/* ---- transição de página: entra subindo um pouco, em cascata curta */
.content.pg-out > * { opacity: .55; transition: opacity 100ms var(--out); }
.content.pg-in > * { animation: pgIn 240ms var(--spring) backwards; }
.content.pg-in > :nth-child(2) { animation-delay: 30ms; } .content.pg-in > :nth-child(3) { animation-delay: 60ms; }
.content.pg-in > :nth-child(4) { animation-delay: 85ms; } .content.pg-in > :nth-child(n+5) { animation-delay: 105ms; }
@keyframes pgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* filtro trocado / recarga depois de salvar: a tela fica, esmaecida, até a nova chegar */
.content.busy > * { opacity: .6; transition: opacity 140ms var(--out); pointer-events: none; }

/* ---- abas: risquinho que desliza; conteúdo da aba entra de lado (direção da aba) */
.tabs { position: relative; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs.has-ink a.on { border-color: transparent; }
.tab-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; border-radius: 2px; background: var(--accent); pointer-events: none;
  transition: transform 280ms var(--spring), width 280ms var(--spring); will-change: transform; }
.tabs a { transition: color 160ms ease; }
.content.tb-out .tabs ~ * { opacity: .5; transition: opacity 120ms var(--out); }
.tb-in { animation: tbIn 260ms var(--spring) both; }
.content.tb-clip { overflow-x: clip; }   /* 6.41: sem estouro lateral enquanto a aba entra */
@keyframes tbIn { from { opacity: 0; transform: translateX(calc(var(--dir, 0) * 18px)) translateY(calc((1 - var(--dir, 0) * var(--dir, 0)) * 6px)); } to { opacity: 1; transform: none; } }
.sw-in { animation: fadeUp 220ms var(--spring) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* faixa de abas rolável: sombra nas pontas avisa que tem mais */
@media (max-width: 1023px) {
  .tabs a { height: 44px; }
}
/* segmentado (Quadro/Lista, Semana/Mês): o item ativo acende suave */
.seg a, .seg button { transition: background 200ms var(--spring), color 160ms ease; }

/* ---- Tráfego: barra de filtros e ações organizada */
.tr-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; margin-bottom: 18px; }
.tr-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 560px; min-width: 0; }
.tr-bar select, .tr-bar input[type=date] { height: 36px; border-radius: 99px !important; padding: 0 14px; font-size: 13px; width: auto; max-width: 230px; text-overflow: ellipsis; }
.tr-bar select { padding-right: 30px; }
.tr-range { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-dates { display: inline-flex; align-items: center; gap: 6px; } .tr-dates span { font-size: 12px; color: var(--text-muted); }
.tr-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.tr-btns { display: inline-flex; gap: 8px; }
.meta-bar { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-bar .small { white-space: nowrap; }
/* campanhas em cartões (só no celular) */
.camp-cards { display: none; }
.cc { border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; background: var(--surface-subtle, var(--surface)); }
.cc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; } .cc-h b { font-size: 15px; line-height: 1.3; }
.cc-h .badge { flex: none; }
.cc-sub { margin-top: 3px; font-size: 12px; color: var(--text-muted); }
.cc-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 10px; margin: 12px 0 0; }
.cc-k dt { font-size: 11px; letter-spacing: .02em; color: var(--text-muted); margin-bottom: 2px; }
.cc-k dd { margin: 0; font: 650 14px/1.25 var(--font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cc-k dd small { display: block; font-weight: 450; font-size: 11px; color: var(--text-muted); }
.cc-note { margin-top: 8px; font-size: 12px; color: var(--text-muted); }

/* ---- tabelas: card empilhado não sobrepõe; tabela larga rola de lado */
.tcard.tscroll, .tcard:has(> table.t:not(.stack)) { overflow-x: auto; }
@media (max-width: 767px) {
  table.t.stack td { height: auto !important; min-height: 0; }
  table.t.stack tr { padding: 12px 14px; }
  table.t.stack td:first-child { padding-bottom: 4px; }
  table.t.stack td select, table.t.stack td input { width: 100%; }
}

/* ---- barra de baixo (celular) */
.tabbar { display: none; }
@media (max-width: 767px) {
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px calc(6px + var(--sar)) calc(6px + var(--sab)) calc(6px + var(--sal));
    background: color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
    border-top: 1px solid var(--border); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 0; border: 0; background: none;
    color: var(--text-muted); font: 600 11px/1 var(--font); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar .tb-ic { display: grid; place-items: center; width: 54px; height: 30px; border-radius: 99px; transition: background 240ms var(--spring), color 200ms ease, transform 160ms var(--spring); }
  .tabbar .on { color: var(--text); }
  .tabbar .on .tb-ic { background: var(--accent); color: var(--accent-ink); }
  .tabbar a:active .tb-ic, .tabbar button:active .tb-ic { transform: scale(.9); }
  .tabbar .tb-l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #app .menu-btn { display: none; }
  #app .top { padding-left: calc(14px + var(--sal)); }
  #app .content { padding-bottom: calc(92px + var(--sab)); }
  body:has(#app:not([hidden])) .toast { bottom: calc(84px + var(--sab)); }
  body:has(#app:not([hidden])) .bulk-bar { bottom: calc(80px + var(--sab)); }
  body.typing .tabbar { transform: translateY(110%); }
  .tabbar { transition: transform 200ms var(--spring); }
  body.nav-open .tabbar { z-index: 50; }

  /* menus "⋯" e "Mais" viram folha de baixo (como app), nunca saem da tela */
  .pop-menu:not(.notif-menu) { position: fixed; left: calc(10px + var(--sal)); right: calc(10px + var(--sar)); top: auto; bottom: calc(10px + var(--sab)); min-width: 0; width: auto;
    z-index: 96; border-radius: 22px; padding: 8px; box-shadow: 0 -10px 40px rgba(0,0,0,.35); max-height: 70dvh; overflow-y: auto; }
  .pop-menu:not(.notif-menu):not([hidden]) { animation: sheetUp 240ms var(--spring) both; }
  .pop-menu:not(.notif-menu) button, .pop-menu:not(.notif-menu) a { height: 50px; font-size: 15px; border-radius: 14px; }
  body:has(.pop-menu:not(.notif-menu):not([hidden]))::after { content: ""; position: fixed; inset: 0; z-index: 95; background: var(--scrim, rgba(0,0,0,.45)); animation: fade 160ms ease both; }
  .pop:has(.pop-menu:not(.notif-menu):not([hidden])) { z-index: 96; }
  .top:has(.pop-menu:not(.notif-menu):not([hidden])) { z-index: 97; }

  /* diálogo de tela cheia sobe de baixo */
  .dlg-root:not(.out) .dlg { animation: sheetUp 280ms var(--spring) both; }

  /* Tráfego no celular */
  .tr-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .tr-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; flex: none; }
  .tr-filters .tr-client, .tr-filters .tr-dates, .tr-filters .tr-camp { grid-column: 1 / -1; }
  .tr-filters .tr-range { justify-self: end; align-self: center; padding: 0 6px 0 0; font-size: 13px; }
  .tr-bar select, .tr-bar input[type=date] { width: 100%; max-width: none; height: 44px; }
  .tr-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .tr-actions { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .tr-actions .meta-bar { grid-column: 1 / -1; display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); }
  .tr-actions .meta-bar:empty { display: none; }
  .tr-actions .meta-bar .small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .tr-actions .meta-bar .btn { flex: none; }
  .tr-btns { display: contents; }
  .tr-btns .btn { width: 100%; justify-content: center; min-height: 44px; }
  .tr-btns .btn:only-child { grid-column: 1 / -1; }
  .ads-card .ads-tbl { display: none; }
  .ads-card { padding: 14px !important; }
  .camp-cards { display: grid; gap: 10px; margin-top: 10px; }
  .cc-showall { display: inline-flex; margin: 10px 0 4px; }
  .kpis { gap: 12px 10px; }
}
@keyframes sheetUp { from { opacity: .6; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* toque: botões com alvo confortável em celular e tablet */
@media (max-width: 1024px) and (pointer: coarse) {
  .btn { min-height: 44px; } .btn-sm { min-height: 40px; }
  .seg a, .seg button { min-height: 38px; }
}

/* editor de proposta: itens antes do catálogo, catálogo recolhido no celular, barra de total fixa */
.pe-cat-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }
.pe-items:empty + .pe-cat-h { margin-top: 0; }
.pe-more { display: none; }
.pe-bar { display: none; }
@media (max-width: 767px) {
  .pe-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pe-svc { padding: 10px 11px; } .pe-svc b { font-size: 13px; }
  .pe-svcs.collapsed .pe-svc:nth-child(n+7) { display: none; }
  .pe-more { display: inline-flex; width: 100%; justify-content: center; margin-top: 6px; }
  .pe-bar { display: flex; align-items: center; gap: 10px; position: fixed; left: calc(10px + var(--sal)); right: calc(10px + var(--sar)); bottom: calc(76px + var(--sab)); z-index: 55;
    padding: 8px 8px 8px 16px; border-radius: 99px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--raised) 92%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: sheetUp 240ms var(--spring) both; }
  .pe-bar-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
  .pe-bar-t b { font-size: 15px; } .pe-bar-t span { font-size: 12px; color: var(--text-muted); } .pe-bar-t i { font-style: normal; color: var(--text-muted); margin: 0 2px; }
  .pe-bar .btn { flex: none; }
  body.typing .pe-bar { bottom: calc(10px + var(--sab)); }
  #app .content:has(.pe-bar) { padding-bottom: calc(160px + var(--sab)); }
}
@media (max-width: 767px) { .task-chips select { padding-left: 12px; padding-right: 26px; } .card-h { flex-wrap: wrap; row-gap: 8px; } }
@media (max-width: 767px) { .card-h:has(> .btns) > h3, .card-h:has(> .ctx-actions) > h3 { flex: 1 1 100%; } .card-h > .btns { flex-wrap: wrap; } }
@media (max-width: 767px) {
  table.t.stack tr { position: relative; }
  table.t.stack td:last-child:has(> .icon-btn:only-child), table.t.stack td:last-child:has(> .btn-link:only-child) { position: absolute; top: 8px; right: 8px; padding: 0; }
}
.rp-foot { break-inside: avoid; }
@media (max-width: 767px) { .tr-filters:has(.tr-dates) .tr-per { grid-column: 1 / -1; } }

/* ================================================================ 6.1 */
/* financeiro */
.fin-seg { margin: 4px 0 6px; flex-wrap: wrap; }
.fin-list .li { flex-wrap: wrap; row-gap: 8px; }
.fin-ch .t b { font-weight: 650; }
.fin-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-variant-numeric: tabular-nums; flex: none; }
.fin-amt b { font-size: 15px; }
.fin-act { display: flex; align-items: center; gap: 6px; flex: none; }
.fin-ch.late .fin-amt b { color: var(--danger); }
.fin-pix { background: var(--surface-subtle, var(--fill)); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 12px; margin: 8px 0; }
.fin-pix code { display: block; font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; user-select: all; color: var(--text); }
.ct-items { margin: 4px 0 0; padding-left: 18px; } .ct-items li { margin: 2px 0; }
.ct-terms summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.ct-list { margin: 0 0 4mm; padding-left: 5mm; font-size: 9.5pt; } .ct-list li { margin-bottom: 1.6mm; } .ct-list li span { display: block; color: #555 !important; font-size: 8.5pt; }
.ct-terms-doc p { font-size: 9.2pt; line-height: 1.55; margin: 0 0 2.2mm; text-align: justify; }
.ct-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; margin-top: 14mm; break-inside: avoid; }
.ct-sign > div { display: flex; flex-direction: column; gap: 1mm; font-size: 9pt; }
.ct-sign .ct-line { display: block; border-top: 1px solid #222; margin-bottom: 1.5mm; }
.ct-sign i { font-style: normal; color: #777 !important; font-size: 8pt; }
.ct-ok { display: inline-flex; align-items: center; gap: 4px; color: #15803d !important; font-size: 8.5pt; margin-bottom: 1mm; }
#ctSign input[name=name] { height: 40px; }
@media (max-width: 640px) { .ct-sign { grid-template-columns: 1fr; gap: 8mm; } }

/* conteúdo do cliente: calendário do mês */
.cc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cc-head .sp { flex: 1; } .cc-title { margin: 0; }
.cc-sum { margin: 0 0 12px; } .cc-sum a { margin-left: 8px; white-space: nowrap; }
.cc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cc-wd { font: 650 11px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 0 4px 2px; }
.cc-day { min-height: 108px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cc-day.out { opacity: .45; } .cc-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cc-dh { display: flex; align-items: center; justify-content: space-between; font: 600 12px var(--font); color: var(--text-muted); }
.cc-day.today .cc-dh span { color: var(--p-700); }
.cc-add { width: 26px !important; height: 26px !important; min-width: 0 !important; min-height: 0 !important; opacity: 0; transition: opacity .15s; }
.cc-day:hover .cc-add, .cc-add:focus { opacity: 1; }
@media (pointer: coarse) { .cc-add { opacity: .7; } }
.cc-chip { display: flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: 8px; background: var(--fill); color: var(--text); text-decoration: none !important; font-size: 12px; line-height: 1.25; min-width: 0; }
.cc-chip:hover { background: var(--fill-2, var(--fill)); }
.cc-chip .cdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cc-chip .cc-ty { font-size: 11px; color: var(--text-muted); flex: none; }
.cc-chip .cc-tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-chip.done .cc-tt { text-decoration: line-through; color: var(--text-muted); }
.cc-more summary { font-size: 12px; color: var(--text-muted); cursor: pointer; padding: 2px 6px; list-style: none; }
.cc-more[open] { display: flex; flex-direction: column; gap: 4px; }
.cc-list { display: none; }
@media (max-width: 767px) {
  .cc-grid { display: none; } .cc-list { display: flex; flex-direction: column; gap: 12px; }
  .cc-ld { display: flex; flex-direction: column; gap: 6px; } .cc-ldh { font: 650 12px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
  .cc-ld.today .cc-ldh { color: var(--p-700); }
  .cc-chip { padding: 10px 12px; font-size: 14px; border-radius: 12px; } .cc-chip .cc-ty { font-size: 12px; }
  .cc-head .btn { flex: 1; justify-content: center; }
}
/* plano do mês e modelos */
.pl-prev { margin-top: 10px; } .pl-rows { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; padding-right: 2px; }
.pl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px 170px auto; gap: 6px; align-items: center; }
.pl-row input[type=text], .pl-row input[type=date], .pl-row select { height: 36px; }
@media (max-width: 767px) { .pl-row { grid-template-columns: auto minmax(0, 1fr); } .pl-row > input[type=date], .pl-row > select { grid-column: 2; } .pl-rows { max-height: none; } }
.pt-it { border: 1px solid var(--border); border-radius: 14px; padding: 10px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.pt-r1, .pt-r2, .pt-r3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pt-r1 input[type=text] { flex: 1 1 220px; } .pt-r1 select { flex: 0 0 150px; }
.pt-wd { display: inline-flex; gap: 4px; flex-wrap: wrap; } .pt-wd label { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 99px; }
.pt-n { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); } .pt-n input { width: 64px; height: 34px; }
.pt-it textarea { min-height: 52px; }
/* propostas */
.pe-tpl { min-width: 240px; margin: 0; } .page-head:has(.pe-tpl) { align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.prop-why { margin: 14px 0 0; }
/* tráfego: alertas */
.tr-alerts { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.tr-al { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid; }
.tr-al.crit { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 40%, transparent); } .tr-al.crit > svg { color: var(--danger); }
.tr-al.warn { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 40%, transparent); } .tr-al.warn > svg { color: var(--warning); }
.tr-al .grow { min-width: 0; } .tr-al .small { display: block; color: var(--text-2); margin-top: 2px; }
/* equipe */
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tm-card { display: flex; flex-direction: column; gap: 12px; }
.tm-h { display: flex; align-items: center; gap: 10px; } .tm-h .grow { display: flex; flex-direction: column; min-width: 0; }
.tm-bar { height: 10px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.tm-bar i { display: block; height: 100%; border-radius: 99px; transition: width .5s var(--spring); }
.tm-ok { background: var(--success); color: var(--success); } .tm-warn { background: var(--warning); color: var(--warning); } .tm-crit { background: var(--danger); color: var(--danger); } .tm-none { background: var(--text-disabled); color: var(--text-muted); }
.tm-lt { font-size: 13px; margin-top: 6px; color: var(--text-2); } .tm-lt b { color: var(--text); }
span.tm-lv { background: none !important; font-weight: 650; }
.tm-cs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tm-c { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--fill); color: var(--text-muted); font-size: 12px; text-decoration: none !important; }
.tm-c b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; } .tm-c.late b { color: var(--danger); } .tm-c.zero { opacity: .55; }
a.tm-c:hover { background: var(--fill-2, var(--fill)); }
/* avisos fora do app */
.np-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--border); border-radius: 14px; }
.np-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.rp-mnav { align-items: center; } .rp-mnav span { padding: 0 10px; font-size: 13px; }
.rp-saved { margin: 4px 0 0; min-height: 1em; }
@media (max-width: 767px) {
  .fin-list .li { align-items: flex-start; } .fin-ch .grow { flex: 1 1 100%; } .fin-amt { align-items: flex-start; flex-direction: row; align-items: center; gap: 8px; }
  .fin-act { margin-left: auto; } .fin-ch .t { white-space: normal; }
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
  .pe-tpl { min-width: 0; width: 100%; }
}
@media (max-width: 767px) { .fin-seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; } .fin-seg a { white-space: nowrap; } }
.only-sm { display: none; }
@media (max-width: 640px) { .only-sm { display: inline; } .pd-bar-top { flex-wrap: wrap; row-gap: 8px; } .rp-mnav { order: 5; flex: 1 1 100%; justify-content: space-between; } }
#ctSign input[name=name] { flex: 1 1 180px; min-width: 0; }
/* relatório no celular: a folha nunca fica mais larga que a tela */
.pd-tbl { table-layout: fixed; width: 100%; }
.rp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-charts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 640px) {
  .rp-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rp-charts { grid-template-columns: minmax(0, 1fr); }
  .rp-camps { overflow-x: auto; } .rp-t th:nth-child(2), .rp-t td:nth-child(2) { display: none; }
  .rp-k b { font-size: 13pt; overflow-wrap: anywhere; } .pd-top { flex-wrap: wrap; }
}

/* ============================================================== 6.2 */
/* entregas do mês */
.dv-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nav ring" "main ring" "act ring" "cells cells";
  gap: 0 24px; padding: 22px 24px; margin-bottom: 16px; border-radius: var(--r-xl); border: 1px solid var(--border); overflow: hidden;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-subtle) 60%, color-mix(in srgb, var(--accent) 9%, var(--surface)) 100%); }
.dv-hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); pointer-events: none; }
.dv-hero > * { position: relative; z-index: 1; }
.dv-nav { grid-area: nav; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dv-main { grid-area: main; min-width: 0; }
.dv-act { grid-area: act; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-self: end; }
.dv-ringbox { grid-area: ring; display: flex; align-items: center; justify-content: center; }
.dv-cells { grid-area: cells; }
.dv-seg a { padding: 0 10px; }
.dv-hero h2 { margin: 10px 0 2px; font-size: 30px; line-height: 36px; font-weight: 300; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dv-lead { margin: 6px 0 0; font-size: 17px; color: var(--text-2); } .dv-lead b { font-size: 22px; color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.dv-facts { margin: 4px 0 0; }
.dv-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.dv-cell { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--fill); color: var(--text-muted); text-decoration: none !important; min-width: 0; }
.dv-cell span { font: 550 12px/14px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-cell b { font: 650 24px/30px var(--font); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dv-cell i { font-style: normal; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-cell.ok b { color: var(--success); } .dv-cell.bad b { color: var(--danger); }
a.dv-cell:hover { background: var(--fill-2); }
.dv-row { margin-bottom: 16px; }
/* anel */
.ring { position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-width: 12; }
.ring-t { stroke: var(--fill-2); }
.ring-p { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 900ms cubic-bezier(.2, .8, .2, 1); }
.ring.full .ring-p { stroke: var(--success); }
.ring-n { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-n b { font: 650 30px/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-n span { font: 600 11px/14px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .ring-p { transition: none; } }
/* saúde da operação */
.hl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hl-c { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--fill); color: var(--text-muted); text-decoration: none !important; }
.hl-c > svg { grid-row: 1 / 4; margin-top: 2px; color: var(--text-muted); }
.hl-l { font: 550 12px/14px var(--font); }
.hl-c b { font: 650 22px/28px var(--font); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hl-c i { font-style: normal; font-size: 12px; line-height: 15px; }
.hl-c.warn b, .hl-c.warn > svg { color: var(--warning); }
a.hl-c:hover { background: var(--fill-2); }
/* por cliente */
.dv-cl { display: flex; flex-direction: column; gap: 2px; }
.dv-cr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) 52px 76px; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.dv-cr:hover { background: var(--fill); }
.dv-cn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.dv-cr .progress { height: 6px; } .dv-cr .progress i { display: block; height: 100%; }
.dv-cv { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-2); }
/* fechamento */
.mc-hero { grid-template-columns: minmax(0, 1fr) auto; }
.mc-steps { display: flex; flex-direction: column; gap: 0; padding: 6px 20px; }
.mc-step { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.mc-step > svg { margin-top: 2px; color: var(--accent); flex: none; }
.mc-step .grow { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mc-opts { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 2px; }
.mc-pend summary { cursor: pointer; color: var(--p-700); font-size: 13px; margin-top: 4px; }
.mc-foot { display: flex; align-items: center; gap: 8px; padding: 16px 0 12px; } .mc-foot .sp { flex: 1; }
.mc-act { text-align: right; white-space: nowrap; } .mc-act .btn { margin-left: 4px; }
/* onboarding do cliente */
.onb .card-h { gap: 8px; }
.onb-bar { height: 6px; margin: 2px 0 10px; } .onb-bar i { display: block; height: 100%; transition: width 400ms ease; }
.onb-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.onb-it { display: flex; align-items: center; gap: 6px; min-height: 36px; border-bottom: 1px solid var(--border); }
.onb-it .check { flex: 1; min-width: 0; } .onb-it .tx { overflow-wrap: anywhere; }
.onb-it.done .tx { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.onb-w { white-space: nowrap; }
.onb-add { gap: 8px; margin-top: 10px; }
.onb-ok { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--success-bg); color: var(--success); }
.onb-ok .grow { color: var(--text); min-width: 180px; }
.onb-e { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .onb-e > svg { color: var(--accent); } .onb-e .grow { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.onb-done summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; } .onb-done summary::-webkit-details-marker { display: none; }
.onb-done summary > svg { color: var(--success); } .onb-done .onb-list { margin-top: 10px; }
.onb-mini { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; vertical-align: middle; }
.onb-mini .progress { width: 46px; height: 5px; display: inline-block; } .onb-mini .progress i { display: block; height: 100%; }
/* nota da entrega */
.stars { display: flex; gap: 2px; }
.star { background: none; border: 0; padding: 3px; border-radius: 8px; color: var(--text-disabled); cursor: pointer; line-height: 0; }
.star:hover, .star:hover ~ .star { color: var(--text-disabled); }
.stars:hover .star { color: var(--p-400); } .stars .star:hover ~ .star { color: var(--text-disabled); }
.star.on { color: var(--accent); } .star.on svg { fill: currentColor; }
.stars.ro .star { cursor: default; }
@media (max-width: 900px) { .dv-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .dv-hero { grid-template-areas: "nav nav" "main ring" "act act" "cells cells"; gap: 0 12px; padding: 18px 16px; }
  .dv-nav { justify-content: space-between; }
  .dv-hero h2 { font-size: 24px; line-height: 30px; } .dv-lead { font-size: 15px; } .dv-lead b { font-size: 19px; }
  .dv-ringbox .ring { width: 92px !important; height: 92px !important; } .dv-ringbox .ring svg { width: 100%; height: 100%; }
  .dv-ringbox .ring-n b { font-size: 20px; } .dv-ringbox .ring-n span { font-size: 10px; letter-spacing: .06em; margin-top: 2px; }
  .dv-cell b { font-size: 20px; line-height: 26px; }
  .hl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hl-c { grid-template-columns: minmax(0, 1fr); } .hl-c > svg { display: none; }
  .hl-c b { font-size: 19px; line-height: 24px; }
  .onb-list { grid-template-columns: minmax(0, 1fr); }
  .dv-cr { grid-template-columns: minmax(0, 1fr) 60px 48px; } .dv-cr .badge, .dv-cr .dv-bl { display: none; }
  .mc-act { text-align: left; } .mc-act .btn { margin: 4px 4px 0 0; }
}
/* prévia do feed (grade igual ao perfil do Instagram: miniatura 3:4, mais nova no topo) */
.fg-wrap { max-width: 760px; }
.fg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border-radius: 12px; overflow: hidden; max-width: 760px; }
.fg-t { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; border: 0; padding: 0; margin: 0; background: var(--surface-muted); color: var(--text-muted); cursor: pointer; overflow: hidden; }
.fg-t img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.fg-t:hover img { transform: scale(1.03); }
.fg-t:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.fg-t.pend::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--accent); pointer-events: none; }
.fg-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; text-align: center; font-size: 12px; background: var(--hatch), var(--surface-muted); }
.fg-ph span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fg-k { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); line-height: 0; }
.fg-b { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding: 22px 8px 8px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.fg-s { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font: 600 11px/1 var(--font); white-space: nowrap; }
.fg-s-p { background: var(--accent); color: #0B0B0C; }
.fg-s-a { background: #22C55E; color: #052E16; }
.fg-s-d { background: rgba(255,255,255,.9); color: #0B0B0C; }
.fg-s-x { background: rgba(0,0,0,.55); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.fv-st .fg-s-x { background: var(--fill-2); color: var(--text); box-shadow: none; } .fv-st .fg-s-d { background: var(--fill-2); color: var(--text); }
.fg-d { color: #fff; font: 600 11px/1 var(--font); text-shadow: 0 1px 2px rgba(0,0,0,.7); white-space: nowrap; }
.fg-stories { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; max-width: 760px; }
.fg-st { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; background: none; border: 0; padding: 0; color: var(--text-2); cursor: pointer; }
.fg-stc { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: var(--border-strong); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fg-st.pend .fg-stc { background: conic-gradient(var(--accent), #FFB27F, var(--accent)); }
.fg-stc img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--canvas); }
.fg-stl { max-width: 72px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fg-prof, .pf-prof { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; } .fg-prof .grow, .pf-prof .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-view a { display: inline-flex; align-items: center; gap: 6px; }
/* visualizador da peça */
.fv-root { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.84); animation: fvIn 160ms ease; }
@keyframes fvIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fv-root { animation: none; } .fg-t img { transition: none; } }
.fv { display: grid; grid-template-columns: minmax(0, 1fr) 360px; width: min(1100px, 100%); max-height: calc(100vh - 48px); background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-ov); }
.fv-media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; max-height: calc(100vh - 48px); background: #000; }
.fv-media img, .fv-media video { display: block; max-width: 100%; max-height: calc(100vh - 48px); object-fit: contain; }
.fv-media iframe { width: 100%; height: min(80vh, 720px); border: 0; }
.fv-car { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.fv-sl { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #0B0B0C; cursor: pointer; }
.fv-sl.l { left: 12px; } .fv-sl.r { right: 12px; } .fv-sl:disabled { opacity: 0; pointer-events: none; }
.fv-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 5px; justify-content: center; }
.fv-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); } .fv-dots i.on { background: #fff; }
.fv-none { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.72); }
.fv-side { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; max-height: calc(100vh - 48px); overflow-y: auto; }
.fv-h { display: flex; align-items: center; gap: 10px; } .fv-h .grow { display: flex; flex-direction: column; min-width: 0; }
.fv-st { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fv-t { margin: 0; font-size: 17px; }
.fv-cap { font-size: 14px; line-height: 21px; color: var(--text-2); }
.fv-dl { display: flex; flex-wrap: wrap; gap: 8px; }
.fv-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.fv-act textarea { width: 100%; } .fv-act .row-btns { display: flex; gap: 8px; }
.fv-nav { display: flex; justify-content: space-between; }
/* link do cliente: abas e mês */
.pf-tabs { display: flex; gap: 6px; margin: 18px 0 14px; overflow-x: auto; scrollbar-width: none; }
.pf-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-nav .seg { display: inline-flex; align-items: center; } .pf-nav .seg button { display: flex; align-items: center; justify-content: center; width: 34px; padding: 0; }
.pf-m { padding: 0 10px; font-weight: 600; font-size: 14px; white-space: nowrap; }
@media (max-width: 767px) {
  .fv-root { padding: 0; align-items: stretch; }
  .fv { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100%; max-height: 100%; border-radius: 0; }
  .fv-media { min-height: 0; max-height: 56vh; } .fv-media img, .fv-media video { max-height: 56vh; }
  .fv-side { max-height: none; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .fg { gap: 2px; border-radius: 8px; }
  .fg-s { height: 18px; padding: 0 6px; font-size: 10px; } .fg-d { display: none; } .fg-b { padding: 14px 5px 5px; } .fg-k { top: 5px; right: 5px; }
}
/* central de processos */
.pr-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.chip.on .pr-dot { background: var(--accent); }
.pr-new { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 99px; background: var(--p-100); color: var(--p-700); font: 600 11px/1 var(--font); letter-spacing: 0; text-transform: none; vertical-align: middle; }
.pr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pr-card { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none !important; transition: border-color 120ms ease, transform 120ms ease; }
.pr-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.pr-t { font-size: 16px; font-weight: 600; } .pr-s { color: var(--text-2); font-size: 14px; line-height: 19px; }
.pr-who { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--text-2); }
.pr-rd { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pr-runp { display: inline-flex; align-items: center; gap: 8px; } .pr-runp .progress { width: 70px; height: 6px; } .pr-runp .progress i { display: block; height: 100%; }
.pr-mine { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--text); text-decoration: none !important; border-color: var(--p-200); }
.pr-mine > svg:first-child { color: var(--accent); } .pr-mine .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-mine .progress { width: 90px; height: 6px; flex: none; } .pr-mine .progress i { display: block; height: 100%; }
.pr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: -8px 0 16px; } .pr-meta .pr-who { margin: 0; padding: 0; }
.pr-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.pr-main, .pr-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pr-body { font-size: 15px; line-height: 24px; color: var(--text-2); }
.pr-body h3 { font-size: 16px; color: var(--text); margin: 18px 0 6px; } .pr-body h3:first-child { margin-top: 0; }
.pr-body p { margin: 0 0 10px; } .pr-body ul, .pr-body ol { margin: 0 0 10px; padding-left: 22px; } .pr-body li { margin: 3px 0; }
.pr-ol { margin: 0; padding-left: 22px; } .pr-ol li { padding: 6px 0; border-bottom: 1px solid var(--border); } .pr-ol li:last-child { border: 0; }
.pr-step { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.pr-step input { margin-top: 3px; } .pr-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--fill-2); display: inline-flex; align-items: center; justify-content: center; font: 600 12px/1 var(--font); }
.pr-step.done .tx { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--border-strong); } .pr-step.done .pr-n { background: var(--success-bg); color: var(--success); }
.pr-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pr-files .li { grid-column: 1 / -1; }
.pr-img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--fill); }
.pr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-read { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-color: var(--p-200); } .pr-read > svg { color: var(--accent); } .pr-read .grow { min-width: 200px; }
.pr-readok { display: flex; align-items: center; gap: 6px; margin: 0; } .pr-readok svg { color: var(--success); }
.pr-form textarea { font-family: var(--font); }
@media (max-width: 1000px) { .pr-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .pr-cards { grid-template-columns: minmax(0, 1fr); } .pr-mine .progress { width: 60px; } .pr-rd { display: none; } }
.pf-hint { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; }
.pr-side .card-h { flex-wrap: wrap; row-gap: 8px; }
.dv-nudge { display: flex; align-items: center; gap: 8px; text-decoration: none !important; } .dv-nudge span { flex: 1; } .dv-nudge b { white-space: nowrap; }
/* proposta: formatos (o cliente escolhe um) e mais de uma empresa */
.pe-mode { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; } .pe-mode .seg button { padding: 0 12px; }
.pe-also-d { margin: 2px 0 10px; } .pe-also-d summary { cursor: pointer; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.pe-also-d .pick { margin-top: 8px; }
.pe-sum-in { width: 100%; margin: 6px 0 2px; font-size: 13px; }
.pe-it.opt .pe-n { min-width: 64px; padding: 0 8px; border-radius: 99px; background: var(--p-100); color: var(--p-700); font-weight: 700; white-space: nowrap; }
.pe-tot.chosen b { color: var(--success); }
.pd-cos { display: flex; align-items: center; flex-wrap: wrap; gap: 3mm 4mm; margin: -2mm 0 5mm; }
.pd-co { display: inline-flex; align-items: center; gap: 2.5mm; padding: 1.8mm 3.5mm 1.8mm 1.8mm; border: 1px solid #e3e3e3; border-radius: 99px; background: #fff; }
.pd-co img { width: 9mm; height: 9mm; object-fit: contain; border-radius: 50%; background: #fff; }
.pd-co-i { width: 9mm; height: 9mm; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--pc); color: #111 !important; font: 800 8pt var(--font); }
.pd-co b { font-size: 10pt; color: #111 !important; }
.pd-co-plus { font: 700 12pt var(--font); color: #9a9a9a !important; }
.pd-opt .pd-item-h { grid-template-columns: 1fr auto; }
.pd-optl { display: block; width: max-content; margin-bottom: 1.5mm; padding: .8mm 2.6mm; border-radius: 99px; background: var(--pc); color: #111 !important; font: 800 7pt/1.4 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.pd-opt { padding: 5mm 5mm; margin: 3mm 0; border: 1px solid #e6e6e6; border-radius: 4mm; }
.pd-opt.chosen { border: 2px solid var(--pc); }
.pd-sum { margin: 1.5mm 0 0; font-size: 10pt; color: #444 !important; font-style: italic; }
.pd-note { font-style: italic; }
.pd-inv-g div.on b { color: var(--pc) !important; }
.pd-signs { margin-top: 12mm; }
.pp-opts { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; } .pp-opts legend { font-weight: 600; margin-bottom: 6px; }
.pp-opt { align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 12px; }
.pp-opt span { display: flex; flex-direction: column; gap: 2px; } .pp-opt i { font-style: normal; color: var(--text-muted); font-size: 13px; }
.pp-opt:has(input:checked) { border-color: var(--accent); background: var(--p-50); }
@media (max-width: 640px) { .pd-opt .pd-item-h { grid-template-columns: 1fr; } .pd-opt .pd-price { grid-column: 1; } }
.pd-opt .pd-inc, .pd-opt .pd-exc, .pd-opt .pd-sum { margin-left: 0; }
.ct-pl { display: grid; grid-template-columns: auto minmax(0, 1fr) 130px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.ct-pl-d { display: inline-flex; align-items: center; padding: 0 4px; }
.ct-m { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ct-mn { font-weight: 550; } .ct-m select { min-width: 0; width: 100%; }
@media (max-width: 640px) { .ct-m { grid-template-columns: minmax(0, 1fr) auto; } .ct-m select { grid-column: 1 / -1; grid-row: 2; } .ct-pl { grid-template-columns: auto minmax(0, 1fr) 100px auto; } }

/* ============ 6.3: vendas e retorno · criativos ============ */
.sl { margin-bottom: 14px; }
.sl-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sl-h h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.sl-h h3 > .i { color: var(--accent); }
.sl-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sl-ks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.sl-k { background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.sl-k span { display: block; font: 550 12px/14px var(--font); color: var(--text-muted); }
.sl-k b { display: block; font: 700 22px/1.15 var(--font); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sl-k i { display: block; font-style: normal; font-size: 12px; line-height: 1.35; color: var(--text-muted); margin-top: 4px; }
.sl-k.good b { color: var(--success); } .sl-k.bad b { color: var(--danger); }
.sl-miss { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; }
.sl-empty p { margin: 8px 0 0; max-width: 760px; }
.sl-list .li { gap: 8px; }
@media (max-width: 767px) { .sl-ks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sl-k { padding: 10px 12px; } .sl-k b { font-size: 18px; } }

.cr-card { margin-bottom: 14px; }
.cr-card .card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cr-card h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.cr-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: 100%; }
.cr-ctl select { height: 36px; width: auto; max-width: 100%; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.cr { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-subtle); overflow: hidden; min-width: 0; }
.cr.warn { border-color: color-mix(in srgb, var(--warning) 50%, var(--border)); }
.cr.best { border-color: color-mix(in srgb, var(--success) 50%, var(--border)); }
.cr-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface-muted); overflow: hidden; }
.cr-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms var(--spring, ease); }
a.cr-img:hover img { transform: scale(1.03); }
.cr-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); }
.cr-kind { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; background: rgba(0,0,0,.62); color: #fff; }
.cr-kind .i { fill: currentColor; }
.cr-bd { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.cr-bd .badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(11,11,12,.84); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.cr-bd .b-green { color: #4ADE80; } .cr-bd .b-amber { color: #FBBF24; } .cr-bd .b-red { color: #F87171; } .cr-bd .b-gray { color: #E5E5E5; }
.cr-b { padding: 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cr-n { font: 650 14px/1.3 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-s { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-st { color: var(--warning); }
.cr-k { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin: 8px 0 0; }
.cr-k dt { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-k dd { margin: 0; font: 650 13px/1.25 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-k dd small { font-weight: 450; font-size: 11px; color: var(--text-muted); }
.cr-bdm { display: none; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.cr-bdm .badge { display: inline-flex; align-items: center; gap: 4px; }
.cr-why { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--warning); background: var(--warning-bg); border-radius: 10px; padding: 7px 9px; }
.cr-rk { margin: 6px 0 0; font-size: 11px; line-height: 1.35; color: var(--text-muted); }
.cr-rk.low { color: var(--danger); }
.cr-more { text-align: center; margin-top: 10px; }
.cr-foot { margin: 12px 0 0; line-height: 1.45; }
@media (max-width: 767px) {
  .cr-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cr { flex-direction: row; align-items: flex-start; border-radius: 16px; }
  .cr-img { flex: 0 0 92px; width: 92px; height: 92px; margin: 10px 0 0 10px; border-radius: 12px; }
  .cr-bd { display: none; } .cr-bdm { display: flex; }
  .cr-b { padding: 10px 12px 12px; flex: 1 1 auto; }
  .cr-ctl, .cr-ctl .seg { width: 100%; } .cr-ctl .seg button { flex: 1 1 0; padding: 0 8px; }
}

/* relatório (folha A4) */
.rp-sales { margin: 0 0 6mm; break-inside: avoid; }
.rp-sales .rp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 2mm; }
.rp-src { font-size: 7.5pt; color: #666 !important; margin: 0 0 4mm; }
.rp-cr { margin: 0 0 6mm; break-inside: avoid; }
.rp-cr-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4mm; margin-bottom: 2mm; }
.rp-cr-i { display: flex; flex-direction: column; gap: .8mm; min-width: 0; font-size: 8.5pt; color: #444 !important; }
.rp-cr-i b { font-size: 9pt; color: #111 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-cr-img { aspect-ratio: 1 / 1; border-radius: 3mm; overflow: hidden; background: #f1f1f1; display: grid; place-items: center; color: #999; margin-bottom: 1.5mm; }
.rp-cr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .rp-sales .rp-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rp-cr-g { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2mm; } .rp-cr-i { font-size: 7.5pt; } }

/* ============ 6.4: reuniões do cliente · avisos · verba/meta · público · Instagram ============ */
.mt-row { align-items: center; gap: 12px; }
.mt-date { flex: 0 0 44px; height: 46px; border-radius: 12px; background: var(--surface-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.mt-date b { font: 700 17px/1 var(--font); } .mt-date span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

.notif-acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.notif-row { position: relative; display: flex; align-items: stretch; transition: opacity 160ms ease, transform 160ms ease; }
.notif-row.out { opacity: 0; transform: translateX(12px); }
.notif-row .notif-it { flex: 1 1 auto; min-width: 0; padding-right: 40px !important; }
.notif-x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--text-muted);
  display: grid; place-items: center; cursor: pointer; opacity: .55; }
.notif-x:hover, .notif-x:focus-visible { opacity: 1; background: var(--surface-muted); color: var(--text); }
.notif-foot { margin: 0; padding: 8px 12px 10px; border-top: 1px solid var(--border); }
@media (hover: none) { .notif-x { opacity: .9; } }

.gl-pace { margin-top: 12px; }
.gl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.gl-top .badge { display: inline-flex; align-items: center; gap: 4px; }
.gl-meter { position: relative; height: 12px; border-radius: 99px; background: var(--surface-muted); margin: 10px 0 8px; overflow: visible; }
.gl-meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent); max-width: 100%; }
.gl-meter i.bad { background: var(--danger); }
.gl-ideal { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.gl-txt { margin: 0; line-height: 1.5; }
.gl-tg { display: grid; gap: 8px; margin-top: 12px; }
.gl-t { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-subtle); border: 1px solid var(--border); font-size: 13px; }
.gl-t .i { vertical-align: -2px; }

.aud { margin-bottom: 14px; }
.aud h4 { margin: 14px 0 8px; font: 650 12px/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.aud-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.aud-gen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aud-gen .sl-k b { font-size: 18px; }
.aud-tip { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--success-bg); color: var(--text); font-size: 13px; }
.aud-tip ul { margin: 4px 0 0; padding-left: 18px; }
@media (max-width: 767px) { .aud-g { grid-template-columns: minmax(0, 1fr); } }

.ig-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ig-tools select { height: 40px; width: auto; max-width: 100%; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ig-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; color: var(--text) !important; text-decoration: none !important; transition: border-color 160ms ease, transform 160ms ease; }
.ig-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.ig-card-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ig-card-h .grow { min-width: 0; display: flex; flex-direction: column; }
.ig-card-h b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-card-h span { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-pic { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--surface-muted); }
.ig-pic.lg { width: 64px; height: 64px; } .ig-pic.sm { width: 28px; height: 28px; }
.ig-pic-ph { display: inline-grid; place-items: center; color: var(--text-muted); }
.ig-spark { width: 120px; height: 40px; flex: 0 0 auto; }
.ig-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ig-mid .ig-big { min-width: 0; }
.ig-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ig-big b { font: 750 30px/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ig-big span { color: var(--text-muted); font-size: 13px; }
.ig-big em { flex-basis: 100%; }
.ig-d { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ig-d.up { color: var(--success); } .ig-d.down { color: var(--danger); }
.ig-k { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.ig-k dt { font-size: 12px; color: var(--text-muted); } .ig-k dd { margin: 2px 0 0; font: 650 15px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.ig-card p { margin: 0; }
.ig-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.ig-head h2 { margin: 0 0 2px; font-size: 20px; }
.ig-head .grow { min-width: 200px; }
.ig-range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.ig-kpis .kpi b small { font-size: 13px; font-weight: 550; opacity: .8; }
.ig-kpi .ig-d { order: 3; margin: 4px 0 0 2px; }
.ig-note { margin: 8px 0 0; }
.ig-line .xh { stroke: var(--text-muted); stroke-width: 1; opacity: 0; }
.ig-line .hit:hover .xh, .ig-line .hit:focus .xh { opacity: .6; }
.ig-line .dot { opacity: 0; transition: opacity 120ms ease; }
.ig-line .hit:hover .dot, .ig-line .hit:focus .dot, .ig-line .hit:last-of-type .dot { opacity: 1; }
.ig-row { display: inline-flex; align-items: center; gap: 8px; }
.igp { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-subtle); overflow: hidden; min-width: 0; }
.igp.is-top { border-color: color-mix(in srgb, var(--success) 50%, var(--border)); }
.igp-img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-muted); overflow: hidden; }
.igp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igp-kind { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 99px; background: rgba(11,11,12,.8); color: #fff; font: 600 11px/1.3 var(--font); }
.igp-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.igp-cap { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 767px) {
  .ig-grid { grid-template-columns: minmax(0, 1fr); }
  .ig-head { gap: 10px; } .ig-head .grow { min-width: 0; flex: 1 1 60%; } .ig-tools { width: 100%; } .ig-tools select { flex: 1 1 auto; }
  .ig-posts .cr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .igp-b { padding: 8px 10px 10px; } .igp .cr-k { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .igp .cr-k div { display: flex; justify-content: space-between; gap: 6px; } .igp .cr-k dt { margin: 0; }
}
.rp-ig { margin: 0 0 6mm; break-inside: avoid; }

/* ============================================================================
   6.4 — passe de acessibilidade (celular e computador)
   Piso de 11,5 px para qualquer texto (12 px para texto de apoio), campos com
   16 px no celular (o iPhone não dá zoom ao tocar), alvos de toque de 44 px,
   menu lateral que cabe em telas baixas (notebook 1440×900).
   ============================================================================ */
.nav a { font-size: 12px; line-height: 14px; }
.nav a .count { font-size: 10px; }
.tabbar .tb-l { font-size: 11px; }
table.t th { font-size: 12px; letter-spacing: .05em; }
.cc-k dt, .cr-k dt, .ig-k dt { font-size: 12px; letter-spacing: 0; }
.cc-k dd small, .cr-k dd small { font-size: 12px; }
.chart .ax, .chart .avg-l { font-size: 11px; }
.eyebrow { font-size: 12px; letter-spacing: .07em; }
.kpi .small, .kpi span.small, .tm-c, .dv-cell i, .hl-c i, .onb-mini, .cc-note, .pe-bar-t span, .sl-k i, .cr-why, .cr-s, .cr-rk,
.ag-m b, .ag-m i, .ag-more, .ag-chip, .cc-more summary, .cc-chip .cc-ty, .igp-kind, .igp-cap, .fg-stl, .pc-n span, .li .m, .tcardk .cl, .tcardk .ft, .due { font-size: 12px; }
.cc-chip .cc-ty { font-size: 12px; }
.small { font-size: 13px; line-height: 18px; }
.li .t { font-size: 14px; }
/* menu lateral em tela baixa: itens mais compactos, sem esconder o "Ajustes" */
@media (min-width: 768px) and (max-height: 1100px) {   /* 6.51: era 980 — com 14 itens o "Ajustes" ficava embaixo do botão de tema no iPad (1024 de altura) */
  .side { padding-top: calc(10px + var(--sat)); padding-bottom: calc(10px + var(--sab)); }   /* 6.61.2: sem o espaço do relógio o logo ficava embaixo da barra do iPad */
  .side .brand { padding-bottom: 10px; }
  .nav { gap: 2px; }
  .nav a { min-height: 50px; padding: 6px 2px; gap: 3px; }
  .nav .sep { margin: 4px 14px; }
}
@media (min-width: 768px) and (max-height: 800px) { .nav a { min-height: 44px; } .nav a svg { width: 18px; height: 18px; } }
/* celular */
@media (max-width: 767px) {
  body { font-size: 15px; line-height: 22px; }
  input[type=text], input[type=email], input[type=password], input[type=date], input[type=url], input[type=number], input[type=search], input[type=time], input[type=tel], select, textarea { font-size: 16px; }
  .field > span { font-size: 13px; }
  .small { font-size: 13px; line-height: 19px; }
  .li .m { font-size: 13px; }
  .card { border-radius: 18px; }
  .page-head h1 { font-size: 26px; line-height: 1.15; }
  .page-head p { font-size: 14px; }
}
/* toque: alvos de 44 px (WCAG 2.5.5) */
@media (pointer: coarse) {
  .chip, .chips .chip, .state-tabs .chip, .subtabs .chip { min-height: 40px; display: inline-flex; align-items: center; }
  .seg a, .seg button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .cc-chip, .ag-t, .task-back, .card-h a.small { min-height: 44px; display: flex; align-items: center; }
  .dv-cr { min-height: 44px; }
  .card-h a.small { display: inline-flex; padding: 0 6px; }
  select, input[type=date], input[type=time], input[type=number], input[type=url], input[type=text], input[type=email], input[type=tel], input[type=search] { min-height: 44px; }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
  label.check { min-height: 44px; display: flex; align-items: center; gap: 10px; }
  .btn-link { min-height: 40px; display: inline-flex; align-items: center; }
  .col-add { min-height: 44px; }
  .notif-x { width: 44px; height: 44px; }
  .notif-it { min-height: 56px; }
}
/* foco visível também nos cartões e linhas clicáveis */
.ig-card:focus-visible, .cr-img:focus-visible, .igp-img:focus-visible, .li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dv-cv { text-align: right; font-variant-numeric: tabular-nums; } .dv-cr .badge { justify-self: end; }
@media (max-width: 767px) { .dv-cell i { white-space: normal; } }
/* barras horizontais: todas as linhas começam no mesmo ponto (colunas compartilhadas) */
@supports (grid-template-columns: subgrid) {
  .hbars { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; column-gap: 10px; row-gap: 8px; }
  .hbars .hb { grid-column: 1 / -1; grid-template-columns: subgrid; }
  @media (max-width: 767px) { .hbars { grid-template-columns: minmax(0, 1fr) auto; } .hbars .hb { grid-template-columns: subgrid; } }
}
.hb-v small { font-size: 12px; }
.gl-t b { color: var(--text); } .gl-t.good .gl-cur { color: var(--success); } .gl-t.bad .gl-cur { color: var(--danger); }

/* ============================================================================
   6.5 — Instagram completo: conclusões, entrega contratada, quem viu, stories
   ============================================================================ */
.ig-ins { margin: 14px 0 0; }
.ig-ins ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ig-in { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.ig-in svg { flex: none; margin-top: 3px; color: var(--text-muted); }
.ig-in.good svg { color: var(--success); } .ig-in.warn svg { color: var(--warning); }
.ig-dv { margin: 14px 0 0; }
.ig-dv-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px; }
.ig-dv-r { min-width: 0; }
.gl-meter i.mid { background: var(--warning); }
.ig-dv-pl { margin: 10px 0 0; }
.ig-wk { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: thin; }
.ig-wk-i { flex: 1 0 92px; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-subtle); }
.ig-wk-i span { font-size: 12px; color: var(--text-muted); }
.ig-wk-i b { font: 700 18px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.ig-wk-i b small { font-size: 12px; font-weight: 550; color: var(--text-muted); }
.ig-wk-i i { font-style: normal; font-size: 12px; color: var(--text-muted); }
.ig-wk-i.low { border-color: color-mix(in srgb, var(--warning) 55%, var(--border)); }
.ig-wk-i.low b { color: var(--warning); }
.ig-split { height: 14px; border-radius: 99px; background: var(--chart-result); overflow: hidden; margin: 10px 0 8px; }
.ig-split i { display: block; height: 100%; background: var(--chart-spend); border-right: 2px solid var(--surface); }
.ig-split-l { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-muted); }
.ig-split-l b { color: var(--text); }
.ig-h4 { margin: 14px 0 6px; font-size: 13px; font-weight: 650; }
.ig-pv { display: flex; gap: 8px; flex-wrap: wrap; }
.ig-pt td, .ig-kt td { font-variant-numeric: tabular-nums; }
.ig-pt-c { max-width: 260px; }
.ig-pt-c a { overflow-wrap: anywhere; }
.igp-task { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ig-sk { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 12px; }
.ig-sk .sl-k b { font-size: 18px; }
.igs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.igs { display: flex; flex-direction: row; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-subtle); overflow: hidden; min-width: 0; }
.igs.live { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.igs-img { position: relative; display: block; flex: none; width: 76px; aspect-ratio: 9 / 16; align-self: flex-start; background: var(--surface-muted); overflow: hidden; }
.igs-img .cr-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.igs-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igs-live { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--p-50); font: 650 11px/16px var(--font); }
.igs-b { flex: 1; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
/* 6.6.2: cartão do story no jeito do Instagram — visualizações em destaque, interações em ícone + número */
.igs-d { display: flex; align-items: center; flex-wrap: wrap; row-gap: 2px; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.igs-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
.igs-v b { font: 700 20px/1.15 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.igs-v span { font-size: 12px; color: var(--text-muted); }
.igs-r { margin-top: -4px; font-size: 12px; line-height: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.igs-x { white-space: nowrap; cursor: help; }
.igs-x.warn { color: var(--p-700); font-weight: 650; } .igs-x .i { vertical-align: -2px; margin-right: 2px; }
.igs-i { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 6px; margin-top: 1px; border-top: 1px solid var(--border); }
.igs-p { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.igs-m { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; color: var(--text); cursor: help; }
.igs-m .i { color: var(--text-2); flex: none; }
.igs-m b { font-weight: 650; font-variant-numeric: tabular-nums; }
.igs-m.z, .igs-m.z .i { color: var(--text-muted); } .igs-m.z b { font-weight: 500; }
.igs-best { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--success-bg); color: var(--success); font: 650 11px/16px var(--font); white-space: nowrap; }
.igs.is-top { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
.igs-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; }
.igs-leg span { display: inline-flex; align-items: center; gap: 4px; }
.sr { 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: 767px) {
  .ig-dv-g { grid-template-columns: minmax(0, 1fr); }
  .ig-sk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .igs-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ig-pt-c { max-width: none; }
}
@media (pointer: coarse) { .ig-pv .seg button { min-height: 44px; } }
.rp-ins { margin-bottom: 6mm; }
.rp-scroll { overflow-x: auto; }
.rp-igt th, .rp-igt td { display: table-cell !important; }
.rp-st-g .rp-st-img { aspect-ratio: 9 / 16; max-height: 60mm; }
.ig-posts .card-h, .ig-st .card-h { flex-wrap: wrap; gap: 8px; }
.ig-pv { min-width: 0; max-width: 100%; }
.ig-pv .seg, .ig-st .card-h .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 767px) { .ig-pv { width: 100%; } .ig-pv .seg:first-child { flex: 1 1 100%; } }
.tcard.ig-tw { overflow-x: auto; max-width: 100%; }
.ig-reach, .ig-posts, .ig-st { min-width: 0; }
@media (max-width: 1180px) { .grid.g2 > .ig-reach { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- 6.5.5: módulos (Ajustes → Agência) e chave liga/desliga */
.mod-card { margin-top: 16px; max-width: 760px; }
.mod-row { display: flex; align-items: center; gap: 12px; padding: 12px 0 2px; cursor: pointer; }
.mod-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mod-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-muted); color: var(--text-2); flex: none; }
input.sw { -webkit-appearance: none; appearance: none; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: var(--border-strong);
  position: relative; cursor: pointer; transition: background .18s ease; }
input.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s ease; }
input.sw:checked { background: var(--accent); }
input.sw:checked::after { transform: translateX(18px); }
input.sw:disabled { opacity: .55; cursor: progress; }
input.sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* ============================================================================
   6.5.5 — passe visual (auditoria de todas as telas em 393/820/1440, claro e escuro)
   Escala de texto só com números inteiros: 10 contadores · 11 rótulos em caixa alta ·
   12 apoio · 13 texto pequeno · 14 corpo · 15 títulos de cartão · 16+ destaques.
   ============================================================================ */
/* rótulos em caixa alta: 11 px com respiro (caixa alta já é maior que o texto comum) */
.eyebrow, table.t th, .ag-dh span, .ag-mh span, .ring-n span { font-size: 11px; letter-spacing: .07em; }
.dv-ringbox .ring-n span { font-size: 10px; }
/* "grow" ocupa o espaço que sobra em qualquer linha flex: ações e números alinham à direita */
.grow { flex: 1 1 0%; min-width: 0; }
/* cabeçalho de cartão: botão no fim vai para a direita (link "Ver todas" continua colado ao título) */
.card-h > .btn:last-child:not(:first-child), .card-h > label.btn:last-child:not(:first-child), .card-h > .pop:last-child:not(:first-child), .card-h > .btns:last-child:not(:first-child) { margin-left: auto; }
/* alertas de tráfego: horário sempre no canto, numa linha só */
.tr-al > .small { margin-left: auto; flex: none; white-space: nowrap; padding-left: 10px; }
/* Equipe: cartões com espaço para os números (3 por linha no notebook) e zeros legíveis */
.tm-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.tm-c.zero { opacity: 1; } .tm-c.zero b { color: var(--text-muted); font-weight: 500; }
.tm-c { min-width: 0; } .tm-c > :not(b) { overflow-wrap: anywhere; }
@media (max-width: 767px) { .tm-grid { grid-template-columns: minmax(0, 1fr); } }
/* dias passados e fora do mês: discretos sem perder contraste (nada de opacidade no texto) */
.ag-day.past { opacity: 1; background: var(--surface-subtle); }
.ag-day.past .ag-dh span, .ag-day.past .ag-dh b { color: var(--text-muted); }
.ag-day.past .ag-t { color: var(--text-2); }
.cc-day.out { opacity: 1; background: transparent; border-style: dashed; }
.cc-day.out .cc-dh span, .cc-day.out .cc-dh b { color: var(--text-muted); }
/* "no ar" do story: texto escuro sobre laranja, como os botões (contraste 7:1) */
.igs-live { color: var(--accent-ink); }
/* link dentro de frase: sublinhado discreto (não depende só da cor) */
p a:not(.btn):not(.chip):not(.badge), .small a:not(.btn):not(.chip):not(.badge), .muted a:not(.btn):not(.chip), .hint a, .li .m a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
p a:not(.btn):hover, .small a:not(.btn):hover, .muted a:not(.btn):hover, .hint a:hover { text-decoration-color: currentColor; }
/* links com ícone: o ícone não encosta no texto */
.btn-link { display: inline-flex; align-items: center; gap: 6px; }
.cl-st { white-space: nowrap; } .cl-st .onb-mini { display: flex; margin: 6px 0 0; }
/* tabela de clientes: gestor e serviço não quebram uma palavra por linha */
.cl-mgr { white-space: nowrap; }
@media (max-width: 767px) {
  .task-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: center; }
  .task-chips > label[for=tDue] { grid-column: 1 / -1; margin: 6px 0 -2px 4px !important; }
  .task-chips > * { min-width: 0; }
  .toolbar > span:empty { display: none; }
}
/* Ajustes → Agência: todos os cartões na mesma largura; botão de salvar com respiro */
#bkCard { max-width: 760px; }
#orgF > .btn-primary { margin-top: 6px; }
/* portal do cliente: coluna central (como o perfil do Instagram no computador), feed ocupando a largura toda */
.portal-wrap { max-width: 940px; }
.portal-wrap .fg-wrap, .portal-wrap .fg, .portal-wrap .fg-stories { max-width: none; }
/* tablet em pé (768–1023 px): tabela larga vira cartão em 2 colunas (antes espremia: 7 linhas por célula e coluna cortada) */
@media (min-width: 768px) and (max-width: 1023px) {
  table.t.stack, table.t.stack tbody { display: block; width: 100%; }
  table.t.stack thead { display: none; }
  table.t.stack tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--border); position: relative; }
  table.t.stack tr:last-child { border-bottom: 0; }
  table.t.stack td { display: block; border: 0; padding: 0; height: auto !important; min-width: 0; }
  table.t.stack td:first-child { grid-column: 1 / -1; padding-bottom: 2px; }
  table.t.stack td[data-l]::before { content: attr(data-l) ": "; color: var(--text-muted); font-size: 12px; }
  table.t.stack td select, table.t.stack td input:not([type=checkbox]) { width: 100%; }
  table.t.stack td:last-child:has(> .icon-btn:only-child), table.t.stack td:last-child:has(> .btn-link:only-child) { position: absolute; top: 10px; right: 12px; }
  .grid.g2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  /* lista de demandas: a caixinha de seleção fica no canto do cartão, sem ocupar uma linha sozinha */
  table.t.stack tr:has(> td.bk) { position: relative; padding-left: 52px; }
  table.t.stack td.bk { position: absolute; left: 16px; top: 14px; padding: 0; grid-column: auto; grid-row: auto; }
  table.t.stack td.bk input { margin: 0; }
  table.t.stack td.bk + td { grid-column: 1 / -1; }
}

/* 6.5.5: barras horizontais mais finas, ponta arredondada só no fim; ranking de custo num quadro só */
.hb-bar { height: 8px; border-radius: 2px; } .hb-bar i { border-radius: 0 4px 4px 0; }
.hb-rank { row-gap: 10px; --bar-ctx: #9C9CA2; --bar-hi: #E25B00; }
:root:not([data-theme="light"]) .hb-rank { --bar-ctx: #5E5E66; --bar-hi: #FF6B00; }
.hb-rank .hb-bar i { background: var(--bar-ctx); }
.hb-rank .hb-bar.solo { background: none; }   /* uma campanha só: barra não compara nada */
.hb-rank .hb.best .hb-bar i { background: var(--bar-hi); }
.hb-rank .hb.best .hb-l > span:first-child { font-weight: 600; color: var(--text); }
.hb-rank .hb-l { flex-direction: column; align-items: flex-start; gap: 1px; } .hb-rank .hb-l > span:first-child { max-width: 100%; }
.hb-tag { font: 600 12px/15px var(--font); color: var(--p-700); }
.hb-g { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border);
  font: 600 11px/14px var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.hb-g:first-child { margin-top: 0; padding-top: 2px; border-top: 0; }
.hb-g span { font: 500 12px/14px var(--font); letter-spacing: 0; text-transform: none; color: var(--text-muted); }

/* ============================================================================
   6.5.7 — relatório do mês (entregas + tráfego + Instagram) e entregas mais completas
   ============================================================================ */
.rp-ch { display: flex; align-items: center; gap: 4mm; margin: 10mm 0 5mm; padding-bottom: 3mm; border-bottom: 2px solid var(--pc); break-inside: avoid; break-after: avoid; }
.rp-ch-n { font: 800 22pt/1 var(--font); color: var(--pc) !important; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rp-ch h2 { margin: 0; font: 800 15pt/1.2 var(--font); color: #111 !important; letter-spacing: -.01em; }
.rp-ch p { margin: 1mm 0 0; font-size: 8.5pt; color: #5f5f5f !important; }
.rp-hbs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8mm; margin: 0 0 6mm; break-inside: avoid; }
.rp-hb { display: grid; grid-template-columns: 24mm minmax(0, 1fr) 9mm; align-items: center; gap: 3mm; font-size: 8.5pt; color: #333 !important; margin-bottom: 1.8mm; }
.rp-hb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-hb i { display: block; height: 2.2mm; background: #f0f0f0; border-radius: .6mm; overflow: hidden; }
.rp-hb b { display: block; height: 100%; background: var(--pc); border-radius: 0 1.1mm 1.1mm 0; }
.rp-hb em { font-style: normal; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: #111 !important; }
.rp-gal-s { margin: 0 0 6mm; }
.rp-gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3mm; }
.rp-gi { display: flex; flex-direction: column; gap: 1mm; text-decoration: none !important; color: #333 !important; break-inside: avoid; min-width: 0; }
.rp-gi img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2mm; border: 1px solid #eee; background: #f4f4f4; }
.rp-gi span { font-size: 7.5pt; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-wait { border: 1px solid color-mix(in srgb, var(--pc) 45%, #fff); background: color-mix(in srgb, var(--pc) 7%, #fff); border-radius: 3mm; padding: 3mm 4mm; margin: 0 0 6mm; break-inside: avoid; }
.rp-wait .rp-facts { margin-bottom: 0; }
.rp-st { font-size: 7.5pt; color: #5f5f5f !important; }
.rp-secs { display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: center; }
.rp-secs label.check { min-height: 32px; }
@media (max-width: 640px) {
  .rp-hbs { grid-template-columns: minmax(0, 1fr); gap: 4mm; }
  .rp-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-secs { order: 6; flex: 1 1 100%; }
}
.rp-hb.fut span, .rp-hb.fut em { color: #8a8a8a !important; font-weight: 500; } .rp-hb.fut i { background: repeating-linear-gradient(90deg, #ececec 0 4px, transparent 4px 7px); }

/* ============================================================================
   6.6 — Planejamento do mês (quadro de todos os clientes, plano do cliente, ideias)
   ============================================================================ */
.pl-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pl-bar select { width: auto; height: 36px; border-radius: 99px !important; padding: 0 30px 0 14px; font-size: 13px; }
.pl-filters { margin-bottom: 14px; }
.pl-board { display: flex; gap: 14px; overflow-x: auto; align-items: flex-start; padding-bottom: 12px; scroll-snap-type: x proximity; }
.pl-col { flex: 0 0 300px; display: flex; flex-direction: column; max-height: calc(100vh - 250px); background: var(--surface-subtle); border: 1px solid var(--border); border-radius: var(--r-lg); scroll-snap-align: start; }
.pl-col-h { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid var(--border); }
.pl-col-t { display: flex; align-items: center; gap: 10px; }
.pl-col-t > a { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none !important; }
.pl-col-t > a b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-col-t > a span { font-size: 12px; color: var(--text-muted); }
.pl-col-t > a:hover b { color: var(--p-700); }
.pl-col-b { display: flex; flex-direction: column; gap: 8px; padding: 10px; overflow-y: auto; }
.pl-col-empty { margin: 6px 4px; font-size: 13px; color: var(--text-muted); }
.pl-dir { margin: 0 -8px; padding: 6px 8px; border-radius: 10px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.pl-dir[role=button] { cursor: pointer; } .pl-dir[role=button]:hover { background: var(--fill); }
.pl-dir p { margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pl-dir.full { margin: 0; padding: 0; } .pl-dir.full[role=button]:hover { background: none; }
.pl-dir.full p { display: block; -webkit-line-clamp: unset; margin-bottom: 10px; font-size: 15px; line-height: 1.5; color: var(--text); }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--p-50); color: var(--p-700); font-size: 12px; font-weight: 600; }
.pl-dir-empty { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 10px; border: 1px dashed var(--border-strong); border-radius: 10px; background: none; color: var(--text-muted); font: 500 13px var(--font); cursor: pointer; }
.pl-dir-empty:hover { color: var(--text); border-color: var(--accent); }

.pl-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; min-width: 0; }
.pl-card:hover { border-color: var(--border-strong); }
.pl-card.picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pl-c-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pl-pick { margin: 0 2px 0 0; }
.pl-type { font: 600 11px/14px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.pl-fun, .pl-kw { padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 600; line-height: 16px; }
.pl-fun.f-atracao, .pl-funnel .f-atracao { background: var(--info-bg); color: var(--info); }
.pl-fun.f-conexao, .pl-funnel .f-conexao { background: var(--violet-bg); color: var(--violet); }
.pl-fun.f-conversao, .pl-funnel .f-conversao { background: var(--p-50); color: var(--p-700); }
.pl-kw { background: var(--fill); color: var(--text-2); }
.pl-c-t { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.pl-c-b { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pl-ref { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; padding: 4px 8px; border-radius: 8px; background: var(--fill); color: var(--text) !important; font-size: 12px; font-weight: 550; text-decoration: none !important; }
.pl-ref span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-ref:hover { background: var(--fill-2); }
.pl-c-foot { display: flex; align-items: center; gap: 8px; min-height: 22px; font-size: 12px; color: var(--text-muted); }
.pl-who { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.pl-who .avatar { width: 20px; height: 20px; font-size: 9px; }
.pl-due { display: inline-flex; align-items: center; gap: 3px; }
.pl-nobody { font-style: italic; }
.pl-c-foot .badge { text-decoration: none !important; }

.pl-dir-card { margin-bottom: 14px; }
.pl-meta { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.pl-meta .eyebrow { margin-bottom: 6px; }
.pl-funnel, .pl-scope { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-funnel span, .pl-sc { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--fill); color: var(--text-2); font-size: 13px; }
.pl-funnel b, .pl-sc b { font-size: 14px; }
.pl-sc b { color: var(--text); } .pl-sc.low b { color: var(--warning); }
.pl-notes { margin: 10px 0 0; white-space: pre-line; }
.pl-series { margin-bottom: 18px; }
.pl-s-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.pl-s-h h3 { margin: 0; font-size: 15px; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pl-acts { margin-top: 8px; }
.pl-acts .li .cdot { flex: none; }
.pl-acts .pl-nodue { color: var(--p-700); font-weight: 600; white-space: nowrap; }

.pl-bulk { position: fixed; left: 50%; bottom: 20px; z-index: 30; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; background: var(--raised); border: 1px solid var(--border-strong); border-radius: 99px; box-shadow: var(--sh-md); }
.pl-bulk[hidden] { display: none; }
.pl-bulk b { margin-right: 6px; font-size: 13px; white-space: nowrap; }
.pl-rows { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow: auto; }
.pl-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 150px 170px; gap: 8px; align-items: center; }
.pl-row-c { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-muted); }
.pl-now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.pl-linked { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--success-bg); font-size: 13px; }
.pl-insp { order: 0; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 12px 14px; background: var(--p-50); border: 1px solid var(--p-100); border-radius: 14px; }
.pl-insp > svg { flex: none; margin-top: 2px; color: var(--p-700); }
.pl-insp .grow { display: flex; flex-direction: column; gap: 2px; }
.pl-insp p { margin: 6px 0 0; font-size: 14px; }
@media (max-width: 767px) {
  .pl-board { margin: 0 -16px; padding: 0 16px 12px; }
  .pl-col { flex-basis: 86vw; max-height: none; }
  .pl-insp { flex-wrap: wrap; }
  .pl-bulk { left: 12px; right: 12px; bottom: calc(76px + var(--sab)); transform: none; flex-wrap: wrap; border-radius: 18px; }
  .pl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pl-row-c, .pl-row input[type=text] { grid-column: 1 / -1; }
}
/* Início: o mês por cliente */
.mo-card { margin-bottom: 16px; }
table.t.mo-t td { vertical-align: middle; }
table.t.mo-t th.num, table.t.mo-t td.num { text-align: center; }
.mo-n { display: inline-flex; min-width: 28px; justify-content: center; padding: 2px 8px; border-radius: 99px; background: var(--fill); color: var(--text) !important; font-weight: 650; font-variant-numeric: tabular-nums; text-decoration: none !important; }
.mo-n:hover { background: var(--fill-2); }
.mo-n.warn { background: var(--warning-bg); color: var(--warning) !important; }
.mo-n.crit { background: var(--danger-bg); color: var(--danger) !important; }
.mo-z { color: var(--text-disabled); }
.mo-dir { max-width: 320px; }
.mo-dir-b { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 2px; border: 0; background: none; color: var(--text-2); font: 400 13px/1.4 var(--font); text-align: left; cursor: pointer; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mo-dir-b:has(.pl-chip) { display: flex; }
.mo-act { width: 48px; text-align: right; }
.dv-none { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.dv-none > svg { flex: none; color: var(--p-700); } .dv-none > span { flex: 1; min-width: 0; font-size: 14px; color: var(--text-2); } .dv-none b { color: var(--text); }
@media (max-width: 767px) { .dv-none { flex-wrap: wrap; } .mo-act { position: absolute; top: 8px; right: 8px; } table.mo-t td.num { display: inline-block; margin-right: 14px; } }

/* ============================================================================
   6.6.2 — visão compacta do plano: o mês inteiro sem rolar nem arrastar para o lado
   ============================================================================ */
.ks-idea { --k: var(--text-disabled); } .ks-doing { --k: var(--info); } .ks-client { --k: var(--violet); } .ks-ready { --k: var(--success); }
.plx-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.plx-top > .card { margin: 0; }
.pl-notes-d { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.pl-notes-d summary { cursor: pointer; font: 600 11px/16px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.pl-notes-d .pl-notes { margin: 6px 0 0; line-height: 1.5; color: var(--text-2); }
.plx-acts { display: flex; flex-direction: column; }
.plx-act { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 2px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text) !important; text-decoration: none !important; }
.plx-act:last-child { border-bottom: 0; }
.plx-act:hover .plx-at { color: var(--p-700); }
.plx-act .cdot { flex: none; }
.plx-at { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plx-pri { font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--p-700); }
.plx-ck, .plx-due { flex: none; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.plx-act .pl-nodue { flex: none; font-size: 12px; font-weight: 600; color: var(--p-700); white-space: nowrap; }
.plx-bar-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.plx-bar-top .pl-filters { flex: 1; margin: 0; }
.plx-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; }
.plx-leg span { display: inline-flex; align-items: center; gap: 5px; }
.plx-leg-f { gap: 14px !important; padding-left: 14px; border-left: 1px solid var(--border); }
.plx-sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.plx-list { display: flex; flex-direction: column; gap: 6px; }
.plx-s { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; min-width: 0; }
.plx-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-height: 46px; padding: 6px 12px; }
.plx-tog { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 0; background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.plx-tog b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plx-tog .i { flex: none; color: var(--text-muted); transition: transform .15s; }
.plx-s:not(.open) .plx-tog .i { transform: rotate(-90deg); }
.plx-c { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plx-bar { display: flex; gap: 2px; width: 140px; height: 8px; flex: none; }
.plx-bar i { height: 100%; min-width: 4px; border-radius: 3px; background: var(--k); }
.plx-meta { flex: 1; min-width: 0; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.plx-fm { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; white-space: nowrap; }
.plx-f { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 99px; }
.plx-f.f-atracao { background: var(--info); } .plx-f.f-conexao { background: var(--violet); } .plx-f.f-conversao { background: var(--p-500); }
.plx-all { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.plx-all input, .plx-row .pl-pick, .plx-chip .pl-pick { margin: 0; }
.plx-add { flex: none; }
.plx-b { display: none; padding: 0 12px 12px; }
.plx-s.open .plx-b { display: flex; flex-direction: column; gap: 8px; }
.plx-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 6px; }
.plx-row, .plx-chip { border: 1px solid var(--border); border-left: 3px solid var(--k); background: var(--surface-subtle); cursor: pointer; }
.plx-row { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 42px; padding: 5px 8px 5px 10px; border-radius: 10px; }
.plx-row:hover, .plx-chip:hover { border-color: var(--border-strong); border-left-color: var(--k); }
.plx-row.picked, .plx-chip.picked { box-shadow: 0 0 0 2px var(--accent); }
.plx-n { flex: none; font: 650 12px/1 var(--font); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.plx-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plx-t b { font-size: 13px; font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plx-t small { font-size: 12px; line-height: 16px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plx-row .pl-kw, .plx-row .badge { flex: none; text-decoration: none !important; }
.plx-ref { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--text-2) !important; }
.plx-ref:hover { background: var(--fill); color: var(--text) !important; }
.plx-who { display: inline-flex; flex: none; } .plx-who .avatar { width: 20px; height: 20px; font-size: 9px; }
.plx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.plx-chip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 4px 0 8px; border-radius: 10px; font-size: 13px; }
.plx-chip b { min-width: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.plx-chip .plx-ref { width: 26px; height: 26px; }
.plx-x { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.plx-note { display: inline-flex; color: var(--text-muted); }
.plx-brief { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 13px; line-height: 18px; color: var(--text-2); }
.plx-brief .i { flex: none; margin-top: 3px; color: var(--text-muted); }
.plx-meta .pl-kw { padding: 0 7px; }
.pl-open-ref { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.pl-all { display: grid; grid-template-columns: 110px minmax(0, 1fr) 150px 170px; gap: 8px; align-items: center; margin-bottom: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pl-all b { grid-column: 1 / 3; } .pl-all input, .pl-all select { height: 36px; }
/* quadro de todos os clientes: colunas em grade (quebram de linha), séries resumidas */
.pl-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; overflow: visible; padding-bottom: 0; }
.pl-col { max-height: none; }
.pl-col-b { gap: 6px; overflow: visible; }
.pl-col .plx-s { border-radius: 12px; }
.pl-col .plx-h { gap: 4px 8px; min-height: 40px; padding: 6px 10px; }
.pl-col .plx-tog { flex: 1; }
.pl-col .plx-bar { width: 48px; height: 6px; }
.pl-col .plx-meta, .pl-col .plx-all span, .pl-col .plx-add span, .pl-col .plx-row .pl-kw, .pl-col .plx-t small, .pl-col .plx-brief { display: none; }
.pl-col .plx-b { padding: 0 10px 10px; }
.pl-col .plx-rows { grid-template-columns: minmax(0, 1fr); }
.pl-col .plx-row { flex-wrap: wrap; row-gap: 2px; } .pl-col .plx-t { flex-basis: calc(100% - 60px); } .pl-col .plx-x:empty { display: none; }
.pl-col .plx-x { margin-left: 22px; }
.pl-col .plx-s:not(.open) .plx-all { display: none; }
.plx-acts.clip > a:nth-child(n+6) { display: none; } .plx-more { margin-top: 6px; }
.pl-idle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }
.pl-idle-c { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.pl-idle-c .logo, .pl-idle-c .avatar { width: 22px; height: 22px; font-size: 9px; } .pl-idle-c a { color: var(--text) !important; font-weight: 550; padding: 0 2px 0 2px; }
.pl-idle-c .icon-btn { width: 26px; height: 26px; }
@media (max-width: 1023px) { .plx-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .pl-board { grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; }
  .pl-col { flex-basis: auto; }
  .plx-h { padding: 6px 10px; gap: 6px 10px; } .plx-tog { flex: 1 1 0%; } .plx-all { order: 2; } .plx-add { order: 3; } .plx-add span { display: none; }
  .plx-bar { order: 4; width: 100%; height: 6px; } .plx-meta { order: 5; flex-basis: 100%; }
  .plx-b { padding: 0 10px 10px; }
  .plx-row { flex-wrap: wrap; row-gap: 2px; } .plx-t { flex-basis: calc(100% - 60px); } .plx-x { margin-left: 22px; } .plx-x:empty { display: none; }
  .plx-row .pl-kw { display: none; }
  .plx-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .plx-chip { gap: 3px; padding: 0 2px 0 5px; justify-content: space-between; } .plx-chip b { min-width: 0; font-size: 12px; } .plx-chip .plx-ref { width: 22px; height: 22px; }
  .pl-idle { margin-top: 10px; }
  /* filtros em pílulas: no celular quebram de linha em vez de arrastar para o lado */
  .chips { flex-wrap: wrap; overflow-x: visible; border-radius: 18px; }
  .pl-all { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pl-all b { grid-column: 1 / -1; }
}

/* 6.6.2 — posts do Instagram: cartão deitado (miniatura ao lado), como os stories */
.igp-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.igp { flex-direction: row; border-radius: 14px; }
.igp-img { flex: none; width: 88px; aspect-ratio: 4 / 5; align-self: flex-start; }
.igp-img .cr-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.igp .igp-b { flex: 1; padding: 8px 10px 10px; gap: 5px; }
.igp .igp-cap { -webkit-line-clamp: 1; font-size: 12px; }
@media (max-width: 767px) { .ig-posts .igp-grid, .igp-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* ============================================================================
   6.6.3 — sem arrastar para o lado
   ============================================================================ */
/* 6.6.4 abas: uma linha só; o que não cabe vai para "Mais" (core.js tabsFit) — sem arrastar nem quebrar linha */
.tabs.fit { overflow: visible; -webkit-mask-image: none !important; mask-image: none !important; padding-right: 0 !important; }
.tabs-more { position: relative; flex: none; display: flex; }
.tabs-more[hidden] { display: none; }
.tabs-more-b { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-muted); font: 550 14px var(--font); cursor: pointer; white-space: nowrap; }
.tabs-more-b:hover { color: var(--text); }
.tabs-more-b b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--fill-2); color: var(--text-2); font-size: 11px; }
@media (min-width: 768px) { .tabs-more .pop-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 200px; display: flex; flex-direction: column; } }
.tabs-more .pop-menu[hidden] { display: none; }
.tabs .pop-menu a { height: auto; min-height: 40px; margin: 0; padding: 0 12px; border: 0; display: flex; align-items: center; color: var(--text); font-weight: 500; white-space: nowrap; }
@media (max-width: 1023px) { .tabs a, .tabs-more-b { height: 44px; } .tabs a { padding: 0 10px; } }
/* Demandas no celular: as etapas quebram de linha em vez de rolar para o lado */
@media (max-width: 767px) { .state-tabs { flex-wrap: wrap; overflow: visible; } .state-tabs .chip { flex: none; } }
/* 6.6.4 Instagram: ordenar vira lista no celular; Grade/Tabela ao lado, numa linha só */
.ig-sort-m { display: none; }
@media (max-width: 767px) {
  .ig-sort-m { display: block; width: auto; flex: 1 1 auto; min-width: 0; height: 40px; border-radius: 99px !important; padding: 0 30px 0 14px; font-size: 14px; }
  .ig-sort-d { display: none !important; }
  .ig-pv { width: 100%; flex-wrap: nowrap; align-items: center; }
  .ig-pv .seg { flex: none; } .ig-pv .seg button { min-height: 40px; padding: 0 12px; }
  .ig-st .card-h { flex-wrap: nowrap; } .ig-st .card-h .ig-sort-m { flex: 0 1 auto; margin-left: auto; }
}
/* 6.84: aqui havia uma chave "}" sobrando que fazia o navegador ignorar a regra de baixo (criativos ficavam em colunas estreitas) */
/* Tráfego: criativo em cartão deitado em qualquer tela (antes: imagem quadrada grande, ~400 px cada) */
.cr-card .cr-grid { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 10px; }
.cr-card .cr { flex-direction: row; align-items: flex-start; border-radius: 14px; }
.cr-card .cr-img { flex: 0 0 88px; width: 88px; height: 88px; aspect-ratio: auto; margin: 10px 0 10px 10px; border-radius: 10px; }
.cr-card .cr-bd { display: none; } .cr-card .cr-bdm { display: flex; }
.cr-card .cr-b { flex: 1 1 auto; padding: 9px 12px 10px; gap: 2px; }
.cr-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: 4px; }
.cr-v b { font: 700 18px/1.2 var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cr-v span { font-size: 12px; color: var(--text-muted); }
.cr-r { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cr-m { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cr-m span { cursor: help; white-space: nowrap; }
.cr-card .cr-why { margin-top: 6px; padding: 0 0 0 8px; background: none; border-left: 2px solid var(--warning); border-radius: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-card .cr-rk { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* avisos do tráfego: 3 à vista; o resto num toque */
.tr-alerts.clip > .tr-al:nth-child(n+4) { display: none; }
.tr-al .small { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-al-more { align-self: flex-start; margin-left: 4px; }
.tr-al { padding: 10px 12px; }
/* campanhas no celular: 3 números + uma linha com o resto; 5 à vista */
.cc-more { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.camp-cards.clip > .cc:nth-child(n+6) { display: none; }
@media (min-width: 768px) { .cc-showall { display: none; } }
.cr-foot summary { cursor: pointer; font-weight: 600; }
@media (max-width: 767px) { .cr-card .cr-img { flex-basis: 64px; width: 64px; height: 64px; } .cr-card .cr-b { padding: 8px 10px 9px; } }
/* Demandas no computador: etapa vazia vira uma faixa fina (cabem mais etapas sem rolar para o lado) */
@media (min-width: 768px) {
  .board { display: flex; align-items: flex-start; gap: 10px; }
  .board > .col { flex: 1 1 0; min-width: 180px; }
  .board > .col.empty { flex: 0 0 46px; min-width: 46px; padding: 10px 4px; align-items: center; }
  .board > .col.empty .col-h { writing-mode: vertical-rl; transform: rotate(180deg); flex-direction: row; gap: 8px; padding: 6px 0; white-space: nowrap; }
  .board > .col.empty .col-h .sp, .board > .col.empty .col-h .icon-btn { display: none; }
  .board > .col.empty .col-h .n { transform: rotate(90deg); }
  .board > .col.empty.over, .board > .col.empty.drag-over { flex-basis: 236px; }
}
/* lista de demandas no celular: duas linhas por demanda (título + etapa; cliente · prazo · quem) */
@media (max-width: 767px) {
  table.tl-t tr { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px !important; }
  table.tl-t tr:has(> td.bk) { padding-left: 44px !important; }
  table.tl-t td.bk { left: 14px !important; top: 12px !important; }
  table.tl-t td { display: block; padding: 0 !important; }
  table.tl-t td[data-l]::before { content: none !important; }
  table.tl-t td.tl-ti { flex: 1 1 calc(100% - 130px); min-width: 0; order: 1; }
  table.tl-t td.tl-ti b { font-size: 14px; }
  table.tl-t td.tl-s { order: 2; flex: none; margin-left: auto; }
  table.tl-t td.tl-c, table.tl-t td.tl-p, table.tl-t td.tl-d { order: 3; font-size: 12px; color: var(--text-muted); }
  table.tl-t td.tl-c::after, table.tl-t td.tl-p:not(.tl-pn)::after { content: " ·"; }
  table.tl-t td.tl-pn { display: none; }
  table.tl-t td.tl-p:not(.tl-pn) { color: var(--p-700); font-weight: 600; }
  table.tl-t td.tl-w { order: 4; margin-left: auto; }
  table.tl-t td.tl-w .avatar { width: 22px; height: 22px; font-size: 9px; }
}
@media (min-width: 768px) { .board > .col.empty.over .col-h { writing-mode: horizontal-tb; transform: none; } .board > .col.empty.over .col-h .n { transform: none; } }
@media (min-width: 768px) {
  .board > .col.fold { flex: 0 0 46px; min-width: 46px; padding: 10px 4px; align-items: center; cursor: pointer; }
  .board > .col.fold > .tcardk, .board > .col.fold > a { display: none; }
  .board > .col.fold .col-h { writing-mode: vertical-rl; transform: rotate(180deg); flex-direction: row; gap: 8px; padding: 6px 0; white-space: nowrap; cursor: pointer; }
  .board > .col.fold .col-h .sp { display: none; } .board > .col.fold .col-h .n { transform: rotate(90deg); }
  .board > .col.fold:hover { border-color: var(--border-strong); }
  .board > .col.fold.over { flex-basis: 190px; }
}
/* filtros das Demandas: no computador ficam como sempre; no celular, atrás de um botão */
.tk-tb .tb-f { display: contents; }
.tk-tb .tb-ft { display: none; }
@media (max-width: 767px) {
  .tk-tb { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
  .tk-tb > input[type=search] { grid-column: 1; }
  .tk-tb .tb-ft { display: inline-flex; grid-column: 2; grid-row: 1; height: 44px; }
  .tk-tb .tb-ft.on { border-color: var(--accent); color: var(--p-700); }
  .tk-tb .tb-ft b { min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11px; }
  .tk-tb .tb-f { display: none; }
  .tk-tb.f-open .tb-f { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .tk-tb > span[style] { display: none; }
  .tk-tb > .seg { grid-column: 3; grid-row: 1; }
  .tk-tb > .seg a { font-size: 0; gap: 0; padding: 0 12px; }
}
@media (max-width: 767px) { table.br-t { table-layout: fixed; width: 100%; } table.br-t th, table.br-t td { padding-left: 6px; padding-right: 6px; } table.br-t th:first-child { width: 40%; } table.br-t td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
/* agenda no tablet: a semana quebra em duas linhas (4 + 3 dias) em vez de rolar para o lado */
@media (max-width: 1279px) and (min-width: 768px) { .ag-week { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; } }
@media (max-width: 1279px) and (min-width: 1100px) { .ag-week { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
/* 6.6.4 cabeçalho do cliente no celular: logo, nome e ações numa linha só (antes: ~330 px até as abas) */
.ctx-actions .bm { display: none; }
@media (max-width: 767px) {
  .ctx-head:has(> .clogo-btn, > .clogo) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 12px; margin-bottom: 4px; }
  .ctx-head > .clogo.lg, .ctx-head > .clogo-btn .clogo.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
  .ctx-head > .clogo-btn .clogo-edit { width: 18px; height: 18px; right: -5px; bottom: -5px; }
  .ctx-head > .clogo-btn .clogo-edit .i { width: 10px; height: 10px; }
  .ctx-head .grow { min-width: 0; }
  .ctx-head:has(> .clogo-btn, > .clogo) h1 { font-size: 20px; line-height: 26px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
  .ctx-head:has(> .clogo-btn, > .clogo) .ctx-meta { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; gap: 10px; margin-top: 2px; font-size: 12px; }
  .ctx-head:has(> .clogo-btn, > .clogo) .ctx-meta > * { flex: none; }
  .ctx-head:has(> .clogo-btn, > .clogo) .ctx-meta .cm-svc, .ctx-head:has(> .clogo-btn, > .clogo) .ctx-meta > a { display: none; }
  .ctx-head:has(> .clogo-btn, > .clogo) .ctx-actions { flex-wrap: nowrap; gap: 6px; }
  .ctx-actions .btn:has(> .bl) { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .ctx-actions .bl { display: none; } .ctx-actions .bm { display: inline-block; }
  /* o "+" do topo já cria a demanda já com este cliente: aqui não precisa de outro botão laranja */
  .ctx-head:has(> .clogo-btn, > .clogo) .ctx-actions > [data-act="new-task"] { display: none; }
  /* "Mais" das abas no celular: duas colunas, menos altura */
  .tabs-more .pop-menu:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .tabs .pop-menu a { min-height: 46px; }
}
/* legendas: no computador sempre à vista; no celular recolhidas num toque */
.leg-d > summary { display: none; }
@media (max-width: 767px) {
  .leg-d { margin: 0 0 8px; } .leg-d:not([open]) { display: inline-block; }
  .leg-d > summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 12px; color: var(--text-muted); list-style: none; }
  .leg-d > summary::-webkit-details-marker { display: none; }
  .leg-d > summary::before { content: "?"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 99px; border: 1px solid var(--border-strong); font-size: 10px; font-weight: 700; }
  .leg-d[open] > summary { margin-bottom: 6px; }
}
/* 6.6.4 no celular: o texto de explicação embaixo do título some (o título basta; a explicação fica no computador) */
@media (max-width: 767px) { .page-head .ph-help { display: none; } .page-head { margin-bottom: 12px; } }
/* 6.6.4 Tráfego no celular: filtros em 2 linhas e ações em ícones numa linha (antes ~5 linhas antes do primeiro número) */
@media (max-width: 767px) {
  .tr-filters .tr-camp { grid-column: auto; }
  .tr-filters:has(.tr-plat) .tr-camp { grid-column: 1 / -1; }
  .tr-filters .tr-range { display: none; }
  .tr-actions { display: flex; align-items: center; gap: 6px; }
  .tr-actions .meta-bar { flex: 1 1 auto; min-width: 0; padding: 0; border: 0; background: none; }
  .tr-actions .meta-bar .btn, .tr-btns .btn { width: 40px; min-height: 40px; height: 40px; padding: 0; justify-content: center; flex: none; }
  .tr-actions .bl { display: none; }
  .tr-btns { display: flex; gap: 6px; }
}
/* 6.6.5 lixeira */
.btn-link-danger, .pop-menu .pop-danger { color: var(--danger) !important; }
.trash-list { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.trash-left { flex: none; font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.trash-left.soon { color: var(--danger); }
.trash-card .li { gap: 10px; }
.sec-h { margin: 20px 0 4px; font-size: 15px; }

/* ============================================================================
   6.7 — projeto como centro, miniaturas de links, inspirações e concorrentes
   ============================================================================ */
.pj-desc { max-width: 820px; margin: 0 0 12px; }
.pj-ks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.pj-k { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); min-width: 0; }
.pj-k > span { font: 550 12px/14px var(--font); color: var(--text-muted); }
.pj-k > b { font: 700 22px/1.15 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pj-k > b em { font-style: normal; font-size: 15px; font-weight: 500; color: var(--text-muted); }
.pj-k > small { font-size: 12px; line-height: 1.35; color: var(--text-muted); } .pj-k > small .late { color: var(--danger); }
.pj-kb { display: block; height: 6px; border-radius: 99px; background: var(--fill-2); overflow: hidden; } .pj-kb em { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.pj-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.pj-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; } .pj-col > .card { margin: 0; }
.pj-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 8px; }
.pj-post { position: relative; display: flex; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); overflow: hidden; min-width: 0; }
.pj-pi { position: relative; flex: none; width: 76px; aspect-ratio: 4 / 5; align-self: flex-start; background: var(--surface-muted); overflow: hidden; display: block; }
.pj-pi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-pk { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 99px; background: rgba(11,11,12,.78); color: #fff; font: 600 10px/1.4 var(--font); }
.pj-pb { flex: 1; min-width: 0; padding: 8px 30px 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.pj-pb .igs-i { padding-top: 4px; }
.pj-x { position: absolute; right: 2px; top: 2px; width: 28px; height: 28px; }
.pj-team { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.pj-pickg { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pj-pick { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--surface-muted); cursor: pointer; aspect-ratio: 4 / 5; }
.pj-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-pick input { position: absolute; left: 6px; top: 6px; z-index: 1; }
.pj-pick.on { border-color: var(--accent); }
.pj-pick-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 11px; font-weight: 600; }
.pj-pickl { display: flex; flex-direction: column; gap: 2px; } .pj-crow { padding: 8px 4px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.pj-crow .grow { display: flex; flex-direction: column; min-width: 0; } .pj-crow b { font-weight: 600; }
.pj-rp-posts .rp-gi span { line-height: 1.35; }
@media (max-width: 1023px) { .pj-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .pj-ks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pj-k > b { font-size: 19px; } }

/* miniaturas de link: prévia oficial do Instagram (recorte), YouTube, ícone */
.lt-ig { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--surface-muted); }
.lt-ig iframe { position: absolute; left: 0; top: 0; width: 326px; height: 560px; border: 0; pointer-events: none; transform-origin: 0 0; }
.lt-ig.mini iframe { transform: scale(.46); }
.lt-yt { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-ic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; color: var(--text-muted); font-size: 11px; }
.lk-card { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); min-width: 0; }
.lk-card + .lk-card { margin-top: 6px; }
.lk-t { flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; display: block; background: var(--surface-muted); }
.lk-t .lt-ig.mini iframe { transform: scale(.2); }
.lk-b { flex: 1; min-width: 0; display: flex; flex-direction: column; } .lk-b a { font-weight: 600; color: var(--text) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-b small { color: var(--text-muted); font-size: 12px; }
.ig-emb-big { width: 100%; max-width: 420px; margin: 0 auto; height: min(70vh, 640px); border-radius: 12px; overflow: hidden; background: var(--surface-muted); }
.ig-emb-big iframe { width: 100%; height: 100%; border: 0; }
/* plano: galeria de miniaturas por série */
.plx-galb { flex: none; } .plx-galb.on { color: var(--p-700); }
.plx-gal { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 8px; }
.plx-tile { display: flex; flex-direction: column; border: 1px solid var(--border); border-bottom: 3px solid var(--k); border-radius: 10px; overflow: hidden; background: var(--surface-subtle); cursor: pointer; }
.plx-tile:hover { border-color: var(--border-strong); border-bottom-color: var(--k); }

.plx-tb { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: 12px; min-width: 0; }
.plx-tb b { font-variant-numeric: tabular-nums; } .plx-tb > span:not(.plx-who) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.pl-prev { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.pl-prev-t { flex: none; width: 150px; height: 220px; border-radius: 10px; overflow: hidden; display: block; }
.pl-prev .pl-open-ref { margin: 0; flex-direction: column; align-items: flex-start; }

/* inspirações e concorrentes */
.ref-g + .ref-g { margin-top: 10px; } .ref-g .eyebrow b { color: var(--text-2); }
.ref-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ref-chip { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-subtle); font-size: 13px; }
.ref-chip a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 4px 5px 10px; color: var(--text) !important; text-decoration: none !important; }
.ref-chip a:hover span { color: var(--p-700); }
.ref-chip button { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; background: none; color: var(--text-muted); cursor: pointer; border-radius: 99px; }
.ref-chip button:hover { color: var(--danger); }
.ref-chip:not(:has(button)) a { padding-right: 10px; }
/* 6.7 cabeçalho do projeto no celular: nome na largura toda, dados numa linha, ações embaixo (antes o nome espremia em 4 linhas) */
@media (max-width: 767px) {
  .ctx-head:not(:has(> .clogo-btn, > .clogo)) { flex-direction: column; align-items: stretch; gap: 10px; }
  .ctx-head:not(:has(> .clogo-btn, > .clogo)) > .grow { width: 100%; }
  .ctx-head:not(:has(> .clogo-btn, > .clogo)) h1 { font-size: 24px; line-height: 30px; font-weight: 400; margin: 0; }
  .ctx-head:not(:has(> .clogo-btn, > .clogo)) .ctx-meta { gap: 4px 12px; font-size: 13px; margin-top: 4px; }
  .ctx-head:not(:has(> .clogo-btn, > .clogo)) .ctx-actions { flex-wrap: nowrap; gap: 6px; }
  .ctx-head:not(:has(> .clogo-btn, > .clogo)) .ctx-actions > .btn-ghost { margin-left: auto; }
}
/* 6.7.1 arquivos: miniatura, seleção e janela com Compartilhar / Baixar / Abrir */
.fl-row .fl-th { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface-muted); color: var(--text-muted); }
.fl-row .fl-th img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fl-row .fl-ck { display: none; flex: none; align-items: center; justify-content: center; width: 28px; height: 44px; margin-right: -4px; cursor: pointer; }
.fl-row .fl-ck input { width: 20px; height: 20px; accent-color: var(--accent); }
.fl-wrap.sel-mode .fl-ck, .fl-wrap.sel-on .fl-ck { display: flex; }
.fl-wrap.sel-mode .fl-row [data-act="file-dl"], .fl-wrap.sel-mode .fl-row [data-act="file-del"] { visibility: hidden; }
.fl-row.sel { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.fl-row .t a { overflow-wrap: anywhere; }
.fl-bar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.fl-bar[hidden] { display: none; }
.fl-bar .sp { flex: 1; }
.fl-bar b { font-weight: 600; font-size: 13px; white-space: nowrap; }
[data-fl-sel].on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.fl-bar { padding-left: 6px; }
.card-h.fl-h > h3 { flex: 1 1 auto; }
@media (max-width: 767px) { .fl-bar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } .fl-bar [data-fl="dl"] { width: 36px; padding: 0; justify-content: center; } .fl-bar .fl-l { display: none; }
  .fl-row [data-act="file-dl"] { width: 40px; height: 40px; } .fl-row .fl-th { width: 40px; height: 40px; } }
.fs-prev { display: grid; place-items: center; min-height: 160px; max-height: 52vh; border-radius: 12px; overflow: hidden; background: var(--surface-muted); }
.fs-prev img, .fs-prev video { display: block; max-width: 100%; max-height: 52vh; object-fit: contain; }
.fs-ic { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); }
.fs-ic b { font-size: 12px; letter-spacing: .04em; }
.fs-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fs-acts [data-fs="share"] { grid-column: 1 / -1; }
.fs-acts .btn { justify-content: center; min-height: 44px; }
.fs-hint { margin: 10px 0 0; }
/* 6.8 cargos e permissões: tabela (computador) / um cargo por vez (celular) */
.rm-intro { margin: 0 0 12px; max-width: 760px; }
.rm-wrap { padding: 0; overflow: clip; }
table.rm { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.rm th, table.rm td { padding: 8px 10px; border-top: 1px solid var(--border); text-align: center; vertical-align: middle; }
table.rm thead th { border-top: 0; position: sticky; top: calc(var(--top-h) + var(--sat, 0px)); background: var(--surface); z-index: 2; box-shadow: 0 1px 0 var(--border); }
table.rm .rm-l { text-align: left; width: 34%; font-weight: 500; }
table.rm .rm-l span { display: block; font-size: 14px; }
table.rm .rm-l small { display: block; color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 1.35; margin-top: 2px; }
.rm-h { position: relative; font-weight: 600; font-size: 13px; padding-top: 12px !important; }
.rm-h .rm-n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 20px 0 6px; }
.rm-h .rm-p { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); white-space: nowrap; }
.rm-h .rm-m { position: absolute; top: 6px; right: 2px; width: 26px; height: 26px; }
.rm-h.lk, .rm-c.lk { background: var(--surface-subtle); color: var(--text-muted); }
.rm-c.lk .i { opacity: .7; }
tr.rm-g th { text-align: left !important; background: var(--surface-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); padding: 7px 12px !important; }
tr.rm-g .i { vertical-align: -2px; margin-right: 4px; }
.rm-c input.sw { margin: 0 auto; display: block; }
input.sw.ro:disabled { cursor: default; }
.rm-pick { display: none; }
.rl-act { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.rl-act.danger { color: var(--danger, #c0392b); }
@media (max-width: 899px) {
  .rm-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
  .rm-pick .chip { border: 1px solid var(--border); }
  .rm-hide { display: none !important; }
  /* celular: vira lista de um cargo só (linha = permissão + chave), sem tabela larga */
  table.rm, table.rm thead, table.rm tbody { display: block; width: 100%; }
  table.rm tr { display: flex; align-items: center; width: 100%; }
  table.rm th, table.rm td { border-top: 0; }
  table.rm tbody tr { border-top: 1px solid var(--border); }
  table.rm thead th { position: static; box-shadow: none; }
  table.rm .rm-corner { display: none; }
  table.rm th.rm-h { flex: 1; position: relative; top: auto; text-align: left; padding: 12px 44px 10px 14px !important; }
  .rm-h .rm-n { padding: 0; font-size: 15px; } .rm-h .rm-m { top: 10px; right: 8px; width: 32px; height: 32px; }
  table.rm tr.rm-g th { flex: 1; }
  table.rm .rm-l { flex: 1; min-width: 0; width: auto; padding-left: 14px; }
  table.rm td.rm-c { flex: none; width: 68px; background: none; }
}

/* 6.8 Plano: miniatura = a inspiração (toque na imagem abre o link; no nome, edita) e botões da série agrupados */
.plx-ha { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.plx-vw { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); }
.plx-vw button { display: grid; place-items: center; width: 30px; height: 26px; border: 0; border-radius: 99px; background: transparent; color: var(--text-muted); cursor: pointer; }
.plx-vw button.on { background: var(--surface-muted); color: var(--text); cursor: default; }
.plx-vw button:not(.on):hover { color: var(--text); }
.plx-vall button { gap: 6px; }
.plx-tile { position: relative; }
.plx-tile.picked { outline: 2px solid var(--accent); outline-offset: -2px; }
.plx-tm { position: relative; display: block; width: 150px; height: 186px; overflow: hidden; background: var(--surface-muted); }
.plx-tile .lt-ig.mini iframe { transform: translateY(-22px) scale(.46); }   /* esconde o cabeçalho do embed: fica só a imagem */
.plx-tm .lt-yt { position: absolute; inset: 0; }
.plx-src { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-weight: 500; opacity: 0; transition: opacity .15s; pointer-events: none; }
.plx-tm:hover .plx-src, .plx-tm:focus-visible .plx-src { opacity: 1; }
/* seleção: no computador o quadradinho aparece ao passar o mouse ou quando já há algo marcado; no celular fica sempre, pequeno */
@media (hover: hover) { .plx-tpick { opacity: 0; transition: opacity .15s; } .plx-tile:hover .plx-tpick, .plx-tile.picked .plx-tpick, .pl-selecting .plx-tpick, .plx-tpick:focus-within { opacity: 1; } }
.pl-col .plx-s.open .plx-bar { display: none; }
.plx-nolink { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; border: 0; color: var(--text-muted); font: inherit; font-size: 12px; cursor: pointer; }
.plx-tpick { position: absolute; top: 6px; left: 6px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: 0 1px 4px rgba(0,0,0,.22); cursor: pointer; }
.plx-tpick input { margin: 0; width: 16px; height: 16px; accent-color: var(--accent); }
.plx-tst { position: absolute; top: 6px; right: 6px; z-index: 2; max-width: calc(100% - 44px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.94); color: #1f2937; font-size: 11px; font-weight: 500; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
button.plx-tb { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; font-size: 12px; color: inherit; cursor: pointer; }
button.plx-tb:hover { background: var(--surface-muted); }
.plx-tb .plx-ed { flex: none; color: var(--text-muted); opacity: .55; }
button.plx-tb:hover .plx-ed, button.plx-tb:focus-visible .plx-ed { opacity: 1; color: var(--accent); }
@media (max-width: 767px) {
  .plx-ha { order: 2; gap: 8px; }
  /* celular: 3 por linha, como a grade do Instagram */
  .plx-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .plx-tm { width: 100%; height: 134px; }
  .plx-tile .lt-ig.mini iframe { left: calc(50% - 54px); transform: translateY(-16px) scale(.33); }
  button.plx-tb { padding: 5px 6px; gap: 4px; font-size: 11px; }
  .plx-tb .plx-who { display: none; }
  .plx-src { left: 4px; bottom: 4px; padding: 1px 6px; font-size: 10px; }
  .plx-tpick { top: 4px; left: 4px; width: 24px; height: 24px; opacity: .92; }
  .plx-tst { display: none; }
}
/* 6.8 quadro geral (colunas de 300 px): série aberta = grade de 3 miniaturas, só o número embaixo; fechada = só o nome */
.pl-col .plx-s:not(.open) .plx-vw { display: none; }
.pl-col .plx-vw button { width: 26px; height: 24px; }
.pl-col .plx-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.pl-col .plx-tm { width: 100%; height: 102px; }
.pl-col .plx-tile .lt-ig.mini iframe { left: calc(50% - 41px); transform: translateY(-12px) scale(.25); }
.pl-col button.plx-tb { padding: 3px 6px; gap: 4px; font-size: 11px; justify-content: space-between; }
.pl-col .plx-tb > span, .pl-col .plx-src, .pl-col .plx-tst { display: none; }
.pl-col .plx-tpick { top: 3px; left: 3px; width: 24px; height: 24px; }
@media (max-width: 767px) { .pl-col .plx-tm { height: 122px; } .pl-col .plx-tile .lt-ig.mini iframe { left: calc(50% - 49px); transform: translateY(-14px) scale(.3); } }
/* 6.9 cofre de acessos */
.vt-how { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 4px; }
.vt-lock { max-width: 460px; margin: 0 auto; text-align: center; padding: 28px 20px; }
.vt-lock-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-muted); margin-bottom: 8px; }
.vt-lock h3 { margin: 0 0 4px; }
.vt-unlock { display: flex; gap: 8px; }
.vt-unlock input { flex: 1; min-width: 0; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.vt-g { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.vt-it { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.vt-h { display: flex; align-items: center; gap: 10px; }
.vt-h b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-h small { display: block; font-size: 12px; color: var(--text-muted); }
.vt-h .grow { min-width: 0; }
.vt-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-muted); color: var(--text-2); }
.vt-ic.k-instagram { background: linear-gradient(135deg, #feda75, #d62976 55%, #4f5bd5); color: #fff; }
.vt-ic.k-facebook, .vt-ic.k-meta { background: #1877f2; color: #fff; }
.vt-ic.k-email, .vt-ic.k-google { background: #ea4335; color: #fff; }
.vt-ic.k-tiktok { background: #111; color: #fff; }
.vt-f { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 8px; margin: 0; align-items: center; font-size: 13px; }
.vt-f dt { color: var(--text-muted); font-size: 12px; }
.vt-f dd { display: flex; align-items: center; gap: 2px; margin: 0; min-width: 0; }
.vt-f code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; background: none; padding: 0; }
.vt-f .icon-btn { width: 30px; height: 30px; flex: none; }
.vt-f .vt-cd { flex: 1; }
.vt-notes { color: var(--text-2); white-space: pre-wrap; }
.vt-acts { display: flex; gap: 8px; margin-top: auto; }
.vt-code { display: block; padding: 12px 14px; border-radius: 10px; background: var(--surface-muted); font: 600 17px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-align: center; user-select: all; overflow-wrap: anywhere; }
.vt-codes { font-size: 14px; font-weight: 500; text-align: left; white-space: pre-wrap; margin: 0; }
.vt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vt-pwin { display: flex; gap: 6px; align-items: center; }
.vt-pwin input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.vt-shbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vt-pick { max-height: none; }
.vt-pub { display: grid; gap: 10px; text-align: left; }
.vt-pub-r { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.vt-pub-r > span { flex: none; width: 64px; font-size: 12px; color: var(--text-muted); }
.vt-pub-r code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.vt-pub-r.col { flex-direction: column; align-items: stretch; }
.vt-pub-r.col > span { width: auto; }
@media (max-width: 767px) { .vt-grid { grid-template-columns: 1fr; } }
.card-h.vt-top > h3 { flex: 1 1 auto; }
/* 6.9.1 verificação em duas etapas */
.err-t { color: var(--danger); }
.mfa-in { font: 600 22px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .25em; text-align: center; }
.mfa-qr { display: grid; place-items: center; padding: 12px; margin: 0 auto 10px; width: 220px; max-width: 100%; border-radius: 12px; background: #fff; }
.mfa-qr svg { width: 196px; height: 196px; display: block; }
.mfa-key { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 12px; }
.mfa-key code { font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; overflow-wrap: anywhere; text-align: center; }
.mfa-codes { columns: 2; column-gap: 24px; text-align: center; }
.mfa-nag { display: flex; align-items: center; gap: 10px; margin: 12px 32px 0; padding: 10px 12px 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-size: 13px; }
.mfa-nag > span { flex: 1; min-width: 0; }
@media (max-width: 767px) { .mfa-nag { margin: 10px 16px 0; flex-wrap: wrap; } }
/* 6.28.4: entrou com código reserva / opção de e-mail visível na segunda etapa */
.mfa-nag-warn { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); background: var(--warning-bg); }
.mfa-alt { margin-top: 10px; gap: 8px; }
.mfa-rsv { margin: 12px 0 0; }
/* 6.9.2 entrar com segurança */
.mfa-rows { display: grid; gap: 2px; }
.mfa-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.mfa-row:first-child { border-top: 0; padding-top: 0; }
.mfa-row .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mfa-row .btn { flex: none; }
.mfa-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-muted); color: var(--text-2); }
.mfa-pks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.mfa-pks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; }
.mfa-pks small { color: var(--text-muted); font-size: 12px; }
.mfa-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--text-muted); font-size: 12px; }
.mfa-or::before, .mfa-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.mfa-opts { margin: 14px 0 0; text-align: center; line-height: 1.9; }
.mfa-pk { min-height: 48px; }
.mfa-here { font-style: normal; font-size: 11px; font-weight: 600; color: var(--success, #15803d); background: color-mix(in srgb, currentColor 12%, transparent); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.mfa-nouv { max-width: 190px; text-align: right; flex: none; }
@media (max-width: 767px) { .mfa-nouv { max-width: none; flex: 1 1 calc(100% - 48px); text-align: left; margin-left: 48px; } }
@media (max-width: 767px) { .mfa-row { flex-wrap: wrap; } .mfa-row .btn { margin-left: 48px; } }

/* ===== 6.10.1 Início: números da semana + cartões por cliente + o que pede ação ===== */
:root { --hm-acc: #FF6B00; --hm-prev: #5C5C63; }
:root[data-theme="light"] { --hm-acc: #E35D00; --hm-prev: #A1A1AA; }
.hm-head { margin-bottom: 18px; }
.hm-ks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.hm-k { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px 12px; min-width: 0; display: flex; flex-direction: column; }
.hm-kl { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.hm-kl .i14 { color: var(--text-muted); }
.hm-kv { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--text); margin: 8px 0 6px; }
.hm-kd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); min-height: 20px; }
.hm-k .hm-sp { margin-top: 10px; }
.hm-d { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.hm-d.up { color: var(--success); background: var(--success-bg); }
.hm-d.down { color: var(--danger); background: var(--danger-bg); }
.hm-d.nt, .hm-d.eq { color: var(--text-2); background: var(--fill-2); }
.hm-sp { display: block; width: 100%; height: 40px; overflow: visible; }
.hm-sp-none { height: 40px; }
.hm-sp-p, .hm-sp-c { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hm-sp-p { stroke: var(--hm-prev); }
.hm-sp-c { stroke: var(--hm-acc); }
.hm-sp-a { fill: var(--hm-acc); opacity: .10; }
.hm-sp rect:hover { fill: var(--fill-2); }
.hm-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto auto 1fr; grid-template-areas: "cl al" "cl ss" "cl tk"; gap: 16px 20px; align-items: start; }
.hm-clients { grid-area: cl; min-width: 0; }
.hm-alc { grid-area: al; min-width: 0; }
.hm-tkc { grid-area: tk; min-width: 0; }
.hm-ssc { grid-area: ss; min-width: 0; }
.hm-ss { display: flex; flex-direction: column; }
.hm-s1 { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--border); color: inherit; text-decoration: none !important; border-radius: 8px; }
.hm-s1:first-child { border-top: 0; }
.hm-s1:hover { background: var(--fill); }
.hm-s1 .grow { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hm-sd { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--p-50); color: var(--p-700); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.hm-sd b { font-size: 16px; } .hm-sd span { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.hm-sm { flex: none; width: 46px; height: 6px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.hm-sm i { display: block; height: 100%; background: var(--success); border-radius: 999px; }
/* 6.10.2 Datas comerciais */
.ssn-def { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.ssn-def span { flex: 1; min-width: 0; }
.ssn-m { margin-bottom: 18px; }
.ssn-m h2 { font-size: 15px; font-weight: 600; text-transform: capitalize; margin: 0 0 8px; }
.ssn-list { padding: 4px 16px; }
.ssn-r { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); }
.ssn-r:first-child { border-top: 0; }
.ssn-r.off { opacity: .6; }
.ssn-dt { flex: none; width: 48px; height: 52px; border-radius: 12px; background: var(--surface-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ssn-dt b { font-size: 20px; } .ssn-dt span { font-size: 11px; color: var(--text-muted); margin-top: 3px; text-transform: lowercase; }
.ssn-r.urgent .ssn-dt { background: var(--danger-bg); color: var(--danger); }
.ssn-r .grow { min-width: 0; flex: 1; }
.ssn-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ssn-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.ssn-w { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--fill-2); border-radius: 999px; padding: 2px 8px; }
.ssn-w.u { color: var(--danger); background: var(--danger-bg); }
.ssn-cs { display: flex; flex-wrap: wrap; gap: 6px; }
.ssn-c { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); text-decoration: none !important; }
.ssn-c b { font-weight: 600; color: var(--text); } .ssn-c span { color: var(--text-muted); }
.ssn-c.ok { border-color: color-mix(in srgb, var(--success) 40%, transparent); } .ssn-c.ok .i14 { color: var(--success); }
.ssn-c.doing .i14 { color: var(--warning); }
.ssn-c.late { border-color: color-mix(in srgb, var(--danger) 40%, transparent); } .ssn-c.late .i14 { color: var(--danger); }
.ssn-a { flex: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 300px; }
.ssn-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; margin: 4px 0 0 26px; }
@media (max-width: 767px) { .ssn-r { flex-wrap: wrap; } .ssn-a { flex: 1 1 calc(100% - 62px); justify-content: flex-start; max-width: none; margin-left: 62px; } .ssn-c { max-width: 100%; } }
.hm-nodata { margin: 12px 0 0; }
.hm-sh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.hm-sh h2 { margin: 0; font-size: 18px; font-weight: 600; }
.hm-ccg { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.hm-cc { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; color: inherit; text-decoration: none !important; transition: border-color var(--fast), box-shadow var(--fast); min-width: 0; }
.hm-cc:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.hm-cch { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hm-ccn { font-weight: 600; font-size: 15px; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; flex: none; }
.hm-pill.crit { color: var(--danger); background: var(--danger-bg); }
.hm-pill.warn { color: var(--warning); background: var(--warning-bg); }
.hm-pill.ok { color: var(--success); background: var(--success-bg); }
.hm-pill.none { color: var(--text-muted); background: var(--fill-2); }
.hm-ccb { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hm-cm { min-width: 0; display: flex; flex-direction: column; }
.hm-cml { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.hm-cmv { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--text); line-height: 1.2; }
.hm-cmv small { font-size: 12px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.hm-cmv .hm-d { align-self: center; }
.hm-cm .hm-sp { height: 34px; margin: 8px 0 6px; }
.hm-cms { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.hm-cms .hm-d { font-size: 11px; padding: 0 6px; }
.hm-cm.off { justify-content: flex-start; }
.hm-cm.off .hm-cms { color: var(--text-muted); }
.hm-side { padding: 16px 16px 12px; }
.hm-side .card-h { margin-bottom: 8px; }
.hm-als { display: flex; flex-direction: column; }
.hm-al { display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--border); color: inherit; text-decoration: none !important; border-radius: 8px; }
.hm-al:first-child { border-top: 0; }
.hm-al[hidden] { display: none; }
.hm-al:hover { background: var(--fill); }
.hm-al > .i14 { margin-top: 8px; color: var(--text-muted); flex: none; }
.hm-ali { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; margin-top: 1px; }
.hm-ali.crit { color: var(--danger); background: var(--danger-bg); }
.hm-ali.warn { color: var(--warning); background: var(--warning-bg); }
.hm-ali.good { color: var(--success); background: var(--success-bg); }
.hm-ali.info { color: var(--text-2); background: var(--fill-2); }
.hm-al .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-alt { font-size: 13.5px; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.hm-alw { font-size: 12.5px; line-height: 1.4; color: var(--text-muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-alw em { font-style: normal; font-weight: 600; margin-right: 2px; }
.hm-alw em.crit { color: var(--danger); } .hm-alw em.warn { color: var(--warning); } .hm-alw em.good { color: var(--success); }
.hm-showmore { margin-top: 6px; }
.hm-calm { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 8px; color: var(--success); }
.hm-calm b { color: var(--text); } .hm-calm span { font-size: 13px; color: var(--text-muted); }
@media (max-width: 1180px) {
  .hm-ks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "al" "ss" "cl" "tk"; }
}
@media (max-width: 767px) {
  .hm-ks { gap: 8px; margin-bottom: 16px; }
  .hm-k { padding: 12px 14px 10px; }
  .hm-kv { font-size: 24px; }
  .hm-ccg { grid-template-columns: minmax(0, 1fr); }
  .hm-cc { padding: 14px; }
}
@media (max-width: 380px) { .hm-ccb { grid-template-columns: minmax(0, 1fr); } }

/* 6.11: "Agora no Instagram" + hora de cada leitura */
.ig-now { margin: 0 0 14px; border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.ig-now .card-h { flex-wrap: wrap; row-gap: 6px; }
.ig-now .card-h h3 { display: inline-flex; align-items: center; gap: 8px; }
.ig-now-w { flex: 1 1 auto; min-width: 0; }
.ig-now-f { margin: 10px 0 0; }
.ig-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); animation: igPulse 2s ease-out infinite; }
@keyframes igPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .ig-pulse { animation: none; } }
.ig-rd { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; line-height: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ig-rd .i { flex: none; }
.ig-rd.ok { color: var(--success); }
.ig-rd.part { color: var(--warning); cursor: help; }
.ig-card-now { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.ig-card-now .i { color: var(--accent); flex: none; }
@media (max-width: 767px) { .ig-now-w { flex-basis: 100%; order: 3; } }
/* 6.11: Início — linha "agora/hoje" em cada cliente */
.hm-now { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); font-size: 12.5px; color: var(--text-2); }
.hm-now .i { color: var(--accent); flex: none; }
.hm-now b { font-weight: 650; color: var(--text); }
.hm-now i { font-style: normal; color: var(--text-muted); font-variant-numeric: tabular-nums; margin-left: 2px; }
/* 6.12: projeto de campanha de data comercial */
.pj-ssn { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.pj-ssn .i18 { color: var(--accent); flex: none; margin-top: 2px; }
.meta-sec { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.meta-sec > .i18 { color: var(--success); flex: none; margin-top: 2px; }
.meta-sec .row { gap: 8px; } .meta-sec .field { margin: 0; min-width: 220px; }
/* 6.12: tipo do story, filtro e "o que funciona" */
.igs-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.igs-tg { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--border); font: 600 11px/16px var(--font); color: var(--text-2); }
.igs-tg.re { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); color: var(--success); }
.igs-tb { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 99px; border: 1px dashed var(--border); background: transparent; color: var(--text-muted); font: 600 11px/16px var(--font); cursor: pointer; }
.igs-tb:hover, .igs-tb:focus-visible { color: var(--accent); border-color: var(--accent); }
.igtag-d { display: flex; gap: 12px; align-items: flex-start; }
.igtag-d img { width: 84px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; flex: none; }
.igtag-c { display: flex; flex-wrap: wrap; gap: 6px; }
.chk-chip { position: relative; display: inline-flex; cursor: pointer; }
.chk-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chk-chip span { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.chk-chip input:checked + span { background: var(--p-50); border-color: var(--accent); color: var(--text); font-weight: 600; }
.chk-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.igf-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.igf { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font: 500 12.5px/18px var(--font); cursor: pointer; }
.igf i { font-style: normal; color: var(--text-muted); margin-left: 2px; }
.igf.on { background: var(--p-50); border-color: var(--accent); color: var(--text); font-weight: 600; }
.igsa { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); }
.igsa summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.igsa summary b { display: inline-flex; align-items: center; gap: 6px; }
.igsa-i { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.igsa-g { margin: 6px 0 10px; }
.igsa-t td { font-variant-numeric: tabular-nums; }
.igsa-t tr.few td { color: var(--text-muted); } .igsa-t tr.few b { font-weight: 500; }
.igsa-t .up { color: var(--success); font-weight: 650; } .igsa-t .down { color: var(--p-700); font-weight: 650; }
.igsa-b { display: inline-block; width: 60px; height: 6px; margin-right: 8px; border-radius: 99px; background: var(--surface-muted); overflow: hidden; vertical-align: middle; }
.igsa-b i { display: block; height: 100%; border-radius: 99px; background: var(--chart-spend); }
@media (max-width: 767px) { .igsa-b { width: 40px; } .igtag-d img { width: 64px; } }
/* 6.12: resumo que começa com "Diferencial:" ganha destaque na proposta (tela, link do cliente e PDF) */
.pd-sum.pd-dif { font-style: normal; color: #222 !important; background: #FFF6E5; border-left: 3px solid #F5A623; padding: 2mm 3mm; border-radius: 0 2mm 2mm 0; margin-top: 2.5mm; }
.pd-sum.pd-dif b { color: #B86E00; }
.igsa-t tr.few .up, .igsa-t tr.few .down { color: inherit; font-weight: 500; }

/* ---------------------------------------------------------------- 6.12: celular e tablet */
/* botão nunca passa da caixa onde está: texto longo quebra em duas linhas em vez de vazar */
.btn { max-width: 100%; }
.btn-block { height: auto; min-height: 36px; white-space: normal; text-align: center; line-height: 1.3; padding-top: 7px; padding-bottom: 7px; }
.btn-block .i { flex: none; }
/* iPhone (iOS 26): o próprio sistema já escurece/clareia o relógio conforme o fundo; a faixa preta do tema claro virava uma "névoa" escura em cima do topo */
@supports (anchor-name: --a) { :root[data-theme="light"] .top::before { display: none; } }
/* no celular a lupa fica igual ao sino e à foto (sem círculo branco em volta) */
@media (max-width: 767px) { .top .search-btn { background: transparent; border-color: transparent; } }
/* tela de toque: o "passar o mouse" não fica preso depois do toque (era a mancha cinza em cima da lupa, do sino e da foto) */
@media (hover: none) {
  .icon-btn:hover, .btn-ghost:hover, .top .search-btn:hover { background: transparent; }
  .icon-btn:active, .btn-ghost:active, .top .search-btn:active { background: var(--fill); }
}
/* 6.12: alvos de toque do celular/tablet que a auditoria achou pequenos (menos de 30 px) */
@media (pointer: coarse) {
  .igs-tb { min-height: 30px; padding: 4px 10px; }
  .leg-d > summary, .pl-notes-d > summary, .ag-more, .mc-pend > summary, .igsa > summary { padding-top: 9px; padding-bottom: 9px; }
  .crumb a { display: inline-block; padding: 9px 2px; }
  .plx-vw button, .plx-tb, .plx-tog { min-height: 36px; min-width: 36px; }
  .ag-add input, input[type="color"] { min-height: 40px; }
}
/* 6.13: faixa vazia embaixo da barra de baixo no iPhone (app instalado): a barra se estende até o fim da tela */
@media (max-width: 767px) {
  .tabbar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 160px; background: color-mix(in srgb, var(--surface) 84%, var(--canvas)); pointer-events: none; }
  html.vgap .tabbar { padding-bottom: 8px; }
  html.vgap #app .content { padding-bottom: 76px; }
}
/* 6.14: aparelhos conectados */
.dev-ss { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.dev-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dev-l li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; }
.dev-l li[hidden] { display: none; }
.dev-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .dev-acts:empty { display: none; }
.dev-l li b { font-weight: 600; } .dev-l li small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 1px; }

/* 6.15: relatório de stories */
.str-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.str-dt { display: flex; align-items: center; gap: 6px; } .str-dt b { font: 650 15px/1.2 var(--font); min-width: 0; text-align: center; }
.str-dt .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.str-card { margin: 0 0 14px; }
.str-h { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; } .str-h .grow { min-width: 0; } .str-h .grow > b { display: block; font: 650 16px/1.25 var(--font); overflow-wrap: anywhere; }
.str-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.str-part { color: var(--warning); white-space: nowrap; } .str-part svg { vertical-align: -2px; margin-right: 2px; }
.str-ins { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.str-prev, .str-txt { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.str-prev > summary, .str-txt > summary { cursor: pointer; font-size: 14px; margin-bottom: 8px; padding: 8px 0; min-height: 36px; }
.str-txt pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 var(--font); background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 0; }
.str-days { display: grid; gap: 6px; margin: 0 0 4px; }
.str-day { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.str-dl { color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; } .str-dv { font-variant-numeric: tabular-nums; white-space: nowrap; }
.str-day.none .str-dv { color: var(--warning); }
.str-bar { height: 10px; border-radius: 99px; background: var(--surface-subtle); overflow: hidden; } .str-bar i { display: block; height: 100%; border-radius: 99px; background: var(--chart-spend, var(--accent)); min-width: 0; }
@media (max-width: 767px) {
  .str-h { flex-wrap: wrap; } .str-acts { width: 100%; justify-content: stretch; } .str-acts .btn-primary { flex: 1; }
  .str-hide-s { display: none; } .str-day { grid-template-columns: auto minmax(40px, 1fr) auto; gap: 8px; }
}
/* 6.16: projeto como central da campanha */
.tab-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--warning-bg, var(--fill-2)); color: var(--warning, var(--text)); font: 700 11px/1 var(--font); font-style: normal; }
#tabBody > .card, #tabBody > section { margin-bottom: 14px; }
.pj-desc { margin: 0 0 12px; }
.pj-k.warn { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); } .pj-k.warn > b { color: var(--warning); }
.pj-empty-g { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pjg-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.pjg-mini { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-subtle); color: inherit; min-width: 0; }
.pjg-mini:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.pjg-h { display: flex; align-items: center; gap: 8px; min-width: 0; } .pjg-h > b, .pjg-h > h3 { flex: 1; min-width: 0; overflow-wrap: anywhere; margin: 0; } .pjg-h .badge { flex: none; }
.pjg-n { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; } .pjg-n b { font: 700 20px/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .pjg-n span { font-size: 12px; color: var(--text-muted); }
.pjg-bar { position: relative; height: 8px; border-radius: 99px; background: var(--fill-2); margin-top: 2px; }
.pjg-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); max-width: 100%; }
.pjg-bar.ok i { background: var(--success); } .pjg-bar.warn i { background: var(--warning); }
.pjg-bar b { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; border-radius: 2px; background: var(--text); opacity: .55; }
.pjg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; } .pjg-top > p { flex: 1; min-width: 220px; }
.pj-tb { display: flex; gap: 6px; flex-wrap: wrap; }
.pjg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; align-items: start; } .pjg-grid > .card { margin: 0; }
.pjg { display: flex; flex-direction: column; gap: 10px; }
.pjg-acts { display: flex; gap: 2px; flex: none; }
.pjg-abc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pjg-abc > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--surface-subtle); border: 1px solid var(--border); min-width: 0; }
.pjg-abc span { font: 550 12px/14px var(--font); color: var(--text-muted); } .pjg-abc b { font: 700 18px/1.15 var(--font); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .pjg-abc small { font-size: 11px; color: var(--text-muted); }
.pjg-abc .r { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.pjg-src { margin: 0; }
.pjg-sp { width: 100%; max-width: 420px; height: 54px; display: block; } .pjg-l { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pjg-d { fill: var(--accent); } .pjg-t { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 4 4; }
.pjg-add { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; } .pjg-add input { min-width: 0; } .pjg-add input[name=note] { grid-column: 1 / -1; grid-row: 2; }
.pjg-ent > summary { cursor: pointer; font-size: 13px; padding: 6px 0; min-height: 32px; }
.pjg-ent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pjg-ent li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface-subtle); font-size: 13px; } .pjg-ent li small { display: block; color: var(--text-muted); font-size: 11px; }
.pj-tg { padding-top: 6px; } .pj-tgi > summary { cursor: pointer; list-style: none; } .pj-tgi > summary::-webkit-details-marker { display: none; }
.pj-tc { font-size: 12px; color: var(--text-muted); text-align: right; } .pj-tc b { color: var(--text); } .pj-tc .late { color: var(--danger); }
.pj-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pj-hist li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.4; } .pj-hist li:last-child { border-bottom: 0; }
.pj-hw { flex: none; width: 104px; color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .pjg-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pjg-add input[name=note] { grid-column: 1 / -1; grid-row: 2; } .pjg-add .btn { grid-column: 1 / -1; grid-row: 3; }
  .pjg-abc b { font-size: 16px; } .pj-hist li { flex-direction: column; gap: 0; } .pj-hw { width: auto; }
  .pj-grid { grid-template-columns: minmax(0, 1fr); }
}
.pjg-warn { margin: 2px 0 0; color: var(--warning); }
/* 6.17: verificação, Para mim, arquivos em grade, links do Drive, biblioteca do cliente */
.fs-prev iframe { width: 100%; height: 52vh; border: 0; background: #fff; }
.fm-n { background: var(--accent) !important; color: var(--accent-ink) !important; }
.fm-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 14px; align-items: start; } .fm-g > .card { margin: 0; }
.fm-m.new .t { font-weight: 700; } .fm-m.new { box-shadow: inset 3px 0 0 var(--accent); }
.rvb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-subtle); margin: 0 0 14px; }
.rvb > svg { flex: none; } .rvb .grow { display: flex; flex-direction: column; gap: 2px; min-width: 180px; } .rvb .grow b { font-weight: 650; }
.rvb-review { border-color: color-mix(in srgb, var(--warning) 50%, var(--border)); background: color-mix(in srgb, var(--warning) 8%, var(--surface)); } .rvb-review > svg { color: var(--warning); }
.rvb-changes { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); } .rvb-changes > svg { color: var(--danger); }
.rvb-ok { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); background: color-mix(in srgb, var(--success) 7%, var(--surface)); } .rvb-ok > svg { color: var(--success); }
.rvb-send { padding: 8px 12px; } .rvb-send > svg { color: var(--text-muted); }
.rvb-a { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.fx { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.task-side .fx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-it { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; min-width: 0; }
.fx-th { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--surface-muted); overflow: hidden; }
.fx-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-ic { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); } .fx-ic b { font: 700 11px/1 var(--font); letter-spacing: .04em; }
.fx-pdf { color: var(--danger); } .fx-video { color: var(--info, var(--accent)); }
.fx-play { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; }
.fx-b { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 34px; min-width: 0; }
.fx-n { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fx-m { font-size: 11px; color: var(--text-muted); }
.fx-t { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-acts { position: absolute; right: 4px; bottom: 2px; display: flex; gap: 2px; }
.fl-tag { display: flex; align-items: center; gap: 4px; margin-top: 4px; } .fl-tag select { min-width: 0; flex: 1; height: 30px; font-size: 12px; padding: 0 6px; }
.fl-star { color: var(--text-muted); } .fl-star.on { color: var(--warning); } .fl-star.on svg { fill: currentColor; }
div.lk { display: grid; gap: 8px; }   /* 6.38: era ".lk" e quebrava as colunas Owner/Admin da tabela de Cargos (td.lk virava grade) */
.lk-it { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.lk-th { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--surface-muted); overflow: hidden; color: var(--text-muted); }
.lk-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lk-b { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lk-n { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lk-m { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.lk-acts { display: flex; align-items: center; gap: 2px; flex: none; }
.lk-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 8px; } .lk-add input[name=title] { grid-column: 1; grid-row: 2; } .lk-add .btn { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
.lk-prev { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 70vh; border-radius: 12px; overflow: hidden; background: var(--surface-muted); }
.lk-prev iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) { .rvb-a { width: 100%; margin-left: 0; } .rvb-a .btn { flex: 1; } .lk-prev { aspect-ratio: 3 / 4; } }
.fm-ban { display: flex; align-items: center; gap: 10px; color: var(--text) !important; background: color-mix(in srgb, var(--accent) 10%, var(--surface)) !important; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); text-decoration: none; margin-bottom: 14px; }
.fm-ban > span { flex: 1; min-width: 0; } .fm-ban:hover { text-decoration: none; } .fm-ban[hidden] { display: none; }
.pjg-add input, .lk-add input { height: 38px; }
@media (pointer: coarse) { .igf-row .igf { min-height: 34px; display: inline-flex; align-items: center; } }
/* 6.18: contrato junto da proposta */
.ct-card .card-h { flex-wrap: wrap; }
.switch-l { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; cursor: pointer; }
.switch-l input { width: 38px; height: 22px; appearance: none; -webkit-appearance: none; border-radius: 99px; background: var(--fill-2); position: relative; cursor: pointer; transition: background 160ms; margin: 0; }
.switch-l input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform 160ms; }
.switch-l input:checked { background: var(--accent); } .switch-l input:checked::after { transform: translateX(16px); }
.ct-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.ct-mode { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-subtle); color: var(--text); cursor: pointer; min-width: 0; font: inherit; }
.ct-mode b { font-weight: 650; } .ct-mode span { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.ct-mode.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.ct-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 10px; align-items: start; }
.ct-in { display: flex; align-items: center; gap: 6px; } .ct-in input { min-width: 0; width: 100%; } .ct-in i { font-style: normal; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.ct-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 4px; } .ct-pay > span { margin-right: 4px; }
.ct-more { margin: 10px 0 0; } .ct-more > summary { cursor: pointer; font-size: 13px; padding: 6px 0; min-height: 32px; } .ct-more .ct-fields { margin-top: 6px; }
.ct-cl-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid var(--border); } .ct-cl-h > b { margin-right: auto; }
.ct-cl { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.ct-cl li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-cl li.off { opacity: .55; background: var(--surface-subtle); } .ct-cl li.off .ct-cl-p { display: none; }
.ct-cl-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ct-cl-t b { font-weight: 650; font-size: 14px; }
.ct-cl-p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2, var(--text-muted)); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ct-cl textarea { width: 100%; font-size: 13px; line-height: 1.5; }
.ct-x { display: grid; gap: 6px; padding: 10px 12px; border: 1px dashed var(--border-strong, var(--border)); border-radius: 12px; margin: 0 0 8px; }
.ct-legal { margin: 10px 0 0; }
.ct-doc .ct-c { margin: 0 0 12px; } .ct-doc h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; } .ct-doc p { margin: 0; white-space: pre-line; font-size: 13px; line-height: 1.55; }
.ct-pre { white-space: pre-line; font-size: 12.5px; line-height: 1.55; }
.ct-sec { break-before: page; page-break-before: always; } .ct-sec .ct-doc h4 { font-size: 12px; }
.ct-rec { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; margin: 10px 0 0; color: var(--success); }
.ct-st { display: flex; gap: 10px; align-items: flex-start; } .ct-st > div { display: flex; flex-direction: column; gap: 2px; }
.ct-agree { margin: 4px 0; font-weight: 550; }
@media (max-width: 767px) { .ct-modes { grid-template-columns: minmax(0, 1fr); } }
@media print { .ct-sec { break-before: page; } }
.ct-cls > summary { cursor: pointer; font-size: 14px; font-weight: 550; padding: 8px 0; min-height: 36px; } .ct-cls[open] > summary { margin-bottom: 6px; }
.ct-cl-p { -webkit-line-clamp: 2; }

/* ================================================================ 6.19 — fundação responsiva (auditoria 07/10/2026)
   Matriz testada: 320, 360, 375, 390, 393, 412, 430, 768, 820, 1024, 1280, 1440 e celular deitado (844×390).
   Causas tratadas na raiz (não tela por tela):
   1) diálogo crescia além da tela — no computador, tablet e celular deitado o título e o "Salvar" saíam da vista.
      Agora: altura máxima = área visível; cabeçalho e rodapé fixos; só o corpo rola.
   2) teclado do celular cobria campo e botão — a área visível vem do VisualViewport (--vvh/--vvt, ver core.js).
   3) fundo rolando atrás do diálogo no app instalado do iPhone (WebKit bug 259568) — trava no html + guarda de toque.
   4) gaveta lateral fechada no celular continuava recebendo Tab e leitor de tela — some de verdade quando fechada.
   5) menus fixos/folhas: rolagem não "vaza" para a página (overscroll-behavior).
   Escala de camadas (z-index) e alvos de toque documentados abaixo como tokens. */
:root {
  --tap: 44px; --tap-min: 36px;              /* Apple HIG 44 pt; WCAG 2.5.8 mínimo 24 px — usamos 36 como piso no toque */
  --gutter-d: 32px; --gutter-t: 24px; --gutter-m: 16px;
  --tabbar-h: 64px; --dlg-gap: max(20px, 6vh);
  --z-sticky: 20; --z-tabbar: 60; --z-drawer: 90; --z-sheet: 96; --z-dialog: 100; --z-palette: 110; --z-toast: 200;
  --vvh: 100dvh; --vvt: 0px; --kb: 0px;
}
h1, h2, h3, h4 { overflow-wrap: break-word; }
img, video, iframe { max-width: 100%; }

/* trava do fundo: qualquer coisa aberta por cima (diálogo, busca, visualizador, gaveta) */
html:has(> body > .dlg-root:not(.out)), html:has(> body > .pal-root:not(.out)), html:has(> body > .fv-root), html:has(> body.nav-open) { overflow: hidden; }
@media (max-width: 767px) { html:has(.pop-menu:not(.notif-menu):not([hidden])) { overflow: hidden; } }
html:has(> body > .dlg-root:not(.out)) > body, html:has(> body > .pal-root:not(.out)) > body, html:has(> body > .fv-root) > body { padding-right: var(--sbw, 0px); }   /* a barra de rolagem some ao travar: recuo igual, nada pula */
.dlg-root, .pal-root, .fv-root, .pop-menu, .notif-list, .pal-list, .side, .fv-side { overscroll-behavior: contain; }

/* ---- diálogo: cabe na área visível; só o corpo rola */
.dlg-root { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow: hidden;
  top: var(--vvt); bottom: auto; height: var(--vvh); padding: var(--dlg-gap) 16px 20px; }
.dlg { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; max-height: 100%; }
.dlg > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.dlg-h, .dlg-f { flex: none; }
.dlg-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dlg-b:focus-visible { outline-offset: -2px; }
@media (min-width: 768px) {
  .dlg-f { position: static; }
  html.kb .dlg-root { padding-top: 10px; padding-bottom: 10px; }
}
@media (min-width: 768px) and (max-height: 560px) { .dlg-root { padding: 10px 16px; } .dlg-h { padding-top: 12px; } .dlg-b { padding-top: 10px; padding-bottom: 10px; } .dlg-f { padding-top: 8px; padding-bottom: 10px; } }
/* celular: folha de baixo do tamanho do conteúdo (curta para confirmação, quase tela cheia para formulário) */
@media (max-width: 767px) {
  .dlg-root { justify-content: flex-end; padding: calc(var(--sat) + 10px) 0 0; }
  .dlg, .dlg.wide { min-height: 0; max-height: 100%; width: 100%; max-width: none; border-radius: 22px 22px 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .dlg > form { flex: 1 1 auto; } .dlg .dlg-b { flex: 1 1 auto; }
  .dlg-h { padding: 16px calc(16px + var(--sar)) 0 calc(20px + var(--sal)); }
  .dlg-b { padding-left: calc(20px + var(--sal)); padding-right: calc(20px + var(--sar)); }
  .dlg-f { position: static; padding: 12px calc(16px + var(--sar)) calc(14px + var(--sab)) calc(16px + var(--sal)); }
  .dlg-f:not(:has(.left)) > .btn { flex: 1 1 0; min-height: 46px; }
  html.kb .dlg-root { padding-top: 6px; }
  html.kb .dlg-f { padding-bottom: 10px; }
  /* gaveta lateral fechada: fora do Tab e do leitor de tela */
  .side { visibility: hidden; transition: transform 200ms var(--ease), visibility 0s linear 200ms; }
  body.nav-open .side { visibility: visible; transition: transform 200ms var(--ease), visibility 0s; }
  /* avisos: abaixo da barra de cima de verdade (inclui a área do relógio no app instalado) e cabem na tela */
  .notif-menu { top: calc(var(--top-h) + var(--sat) + 6px) !important; max-height: calc(var(--vvh) - var(--top-h) - var(--sat) - var(--tabbar-h) - var(--sab) - 16px); display: flex; flex-direction: column; }
  .notif-menu .notif-list { max-height: none; flex: 1 1 auto; min-height: 0; }
}
/* menu posicionado pelo JS (computador/tablet): rola por dentro quando não cabe */
.pop-menu[data-placed] { overflow-y: auto; z-index: var(--z-sheet); }
.notif-menu[data-placed] { display: flex; flex-direction: column; overflow: hidden; }
.notif-menu[data-placed] .notif-list { max-height: none; flex: 1 1 auto; min-height: 0; }

/* ---- barra de cima no celular estreito (320): botões não encolhem; o caminho é que corta */
.top > .search-btn, .top > .pop, .top > .icon-btn, .top > .menu-btn { flex: none; }
.top .crumb { min-width: 0; overflow: hidden; }

/* ---- toque: alvos confortáveis e nada que só aparece com mouse */
@media (pointer: coarse) {
  summary { min-height: 40px; align-content: center; }
  .igf-row .igf, .ssn-c { min-height: 40px; display: inline-flex; align-items: center; }
  table.t td .btn-link { min-width: 44px; min-height: 40px; }
  .igs-tb { min-height: 36px; }
}
@media (hover: none) { .ag-dh .icon-btn, .cc-add { opacity: 1; } }
.ag-dh .icon-btn:focus-visible, .cc-add:focus-visible { opacity: 1; }

/* ---- altura de tela: unidades dinâmicas (no iPhone 100vh inclui a barra do Safari e corta o fim) */
.fv { max-height: calc(100dvh - 48px); } .fv-media, .fv-media img, .fv-media video, .fv-side { max-height: calc(100dvh - 48px); }
@media (max-width: 767px) { .fv-side { max-height: none; } }
/* (6.24: a coluna do Plano não tem mais altura máxima — com ela, série aberta vazava por cima do resto da página) */
.pl-col-b { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }   /* sem min-height:0 o corpo da coluna não encolhia, vazava da coluna e esticava a página (cabeçalho fixo saía do lugar) */

/* ---- pontos que estouravam em 320 px */
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; }
.igsa-g { flex-wrap: nowrap; }
#ctPlans .btn { white-space: normal; height: auto; padding-top: 6px; padding-bottom: 6px; text-align: left; line-height: 1.3; }
.ig-head h2 { overflow-wrap: anywhere; }
/* links curtos dentro de linhas (cliente no cabeçalho do projeto, demanda no arquivo, histórico): área de toque maior sem mudar a linha */
@media (pointer: coarse) {
  .ctx-meta a, .meta-row a, td.tl-ti > a, .cname a { padding-block: 8px; margin-block: -8px; }   /* neutro no layout; só onde não encosta em outro link */
  textarea.task-title { padding-top: 5px; padding-bottom: 5px; }
}
/* proposta pública em celular estreito/baixo: a barra de aceite ocupava ~30% da tela — fica numa linha só com os botões */
@media (max-width: 400px), (max-height: 600px) and (max-width: 767px) {
  .pd-accept { padding: 8px; gap: 8px; border-radius: 18px; } .pd-accept > div .small { display: none; }
  .pd-accept > div { flex-basis: auto; flex: 0 1 auto; } .pd-accept > div b { font-size: 13px; }
  .pd-accept { flex-wrap: nowrap; } .pd-accept .btn { min-height: 44px; padding: 0 12px; }
  .pd-accept > div:first-child { display: none; }
}

/* ================================================================ 6.20 — avisos e e-mails */
/* sino: separado por dia, repetição vira "×3", ícone com cor por tipo (o que é com você salta à vista) */
.notif-day { margin: 10px 8px 4px; font: 600 11px/1.4 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.notif-day:first-child { margin-top: 4px; }
.notif-x2 { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--fill-2); font: 600 11px/18px var(--font); color: var(--text-2); vertical-align: 1px; }
.notif-ic.t-review, .notif-ic.t-changes, .notif-ic.t-mention, .notif-ic.t-assigned { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.notif-ic.t-overdue, .notif-ic.t-traffic, .notif-ic.t-charge { background: var(--danger-bg); color: var(--danger); }
.notif-ic.t-client_ok, .notif-ic.t-proposal_ok, .notif-ic.t-done, .notif-ic.t-approved { background: var(--success-bg); color: var(--success); }
.notif-foot a { color: inherit; text-decoration: underline; }

/* preferências: escolhas em cartão (dá para entender sem ler manual) */
.np-g { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.np-g legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.np-opts { display: grid; gap: 8px; }
.np-opts.np-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .np-opts.np-3 { grid-template-columns: minmax(0, 1fr); } }
.np-opt { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color 120ms ease, background 120ms ease; }
.np-opt:hover { border-color: var(--border-strong); }
.np-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.np-opt input { margin: 3px 0 0; accent-color: var(--accent); flex: none; width: 18px; height: 18px; }
.np-opt:has(input:focus-visible) { outline: 2px solid var(--p-400); outline-offset: 2px; }
.np-o { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.np-o b { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.np-o > span { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.np-hour { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--text-2); }
.np-hour select { width: auto; height: 32px; padding: 0 28px 0 10px; }
.np-quiet { align-items: flex-start; margin-top: 10px; } .np-quiet > span { display: flex; flex-direction: column; gap: 2px; } .np-quiet input { margin-top: 2px; }
#npF .btns { margin-top: 14px; align-items: center; }

/* e-mail para o cliente: escrever / ver como fica */
.ml-tabs { margin-bottom: 14px; }
.ml-frame { display: block; width: 100%; height: min(62vh, 640px); min-height: 360px; border: 1px solid var(--border); border-radius: 14px; background: #f4f4f5; }
.ml-from { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; }
.ml-log { margin-top: 8px; display: grid; gap: 4px; } .ml-log p { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--text-2); } .ml-log b { font-weight: 600; overflow-wrap: anywhere; }
/* 6.20 correção: o botão de arquivar herdava "largura 100%" dos itens de menu e cobria a linha inteira —
   clicar no aviso arquivava em vez de abrir. Agora é só o quadradinho da direita. */
.notif-menu .notif-x { width: 36px; height: 36px; padding: 0; left: auto; right: 4px; display: grid; place-items: center; }
@media (pointer: coarse) { .notif-menu .notif-x { width: 44px; height: 44px; } }

/* ================================================================ 6.21 — segurança: saúde da integração */
.meta-health { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 12px; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text-2); }
.meta-health b { display: inline-flex; align-items: center; gap: 6px; color: var(--text); flex: 1 0 100%; }

/* 6.22 — saúde do sistema (Ajustes → Agência, só o dono do sistema) */
.sys-h { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.sys-hh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sys-hh b { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.sys-it { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; }
.sys-it .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sys-t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--text); }
.sys-t b { font-weight: 600; }
.sys-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; background: var(--text-muted); }
.sys-st { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sys-it.st-ok .sys-dot { background: var(--success); } .sys-it.st-ok .sys-st { color: var(--success); }
.sys-it.st-warn .sys-dot { background: var(--warning); } .sys-it.st-warn .sys-st { color: var(--warning); }
.sys-it.st-bad .sys-dot { background: var(--danger); } .sys-it.st-bad .sys-st { color: var(--danger); }
.off-box .row-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.off-box .seg label, .dlg .seg label { display: inline-flex; align-items: center; gap: 6px; }

/* ---- 6.24 miniaturas de link: o ícone fica até a prévia chegar; imagem cobre o quadro; prévia do Instagram reduzida por JS */
.lt { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--surface-muted); }
.lt > .lt-ic { position: absolute; inset: 0; }
.lt .lt-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.lt .lt-ig { position: absolute; inset: 0; overflow: hidden; background: var(--surface-muted); }
.lt .lt-ifr { position: absolute; left: 0; top: 0; width: 326px; height: 640px; max-width: none; border: 0; pointer-events: none; transform-origin: 0 0; opacity: 0; transition: opacity .25s; }
.lt.has-ifr .lt-ifr { opacity: 1; }
.lk-t .lt { border-radius: 8px; }
/* Plano: a grade acompanha a largura da tela; série grande não estica a página por cima do resto */
.plx-gal { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.plx-tm { width: 100%; height: auto; aspect-ratio: 326 / 352; }
.pl-col .plx-gal { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.pl-col .plx-tm { height: auto; }
.pl-col .plx-tog b { white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .pl-board { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } }
@media (max-width: 767px) { .plx-gal, .pl-col .plx-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plx-tm, .pl-col .plx-tm { height: auto; } }

/* ============================ 6.25 portal do cliente ============================ */
.portal-mode .search-btn, .portal-mode #createBtn { display: none !important; }
.po-preview { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--info-bg); color: var(--text); font-size: 13px; }
.po-head { margin-bottom: 12px; }
.po-hi { display: flex; align-items: center; gap: 14px; min-width: 0; }
.po-hi .clogo { width: 48px; height: 48px; flex: none; }
.po-cl, .po-months { margin: 0 0 14px; }
.po-months .chip { gap: 6px; }
.po-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }
.po-sec { margin-bottom: 16px; }
.po-sec .card-h { flex-wrap: wrap; gap: 8px; }
.po-dir { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-subtle); }
.po-dir p { margin: 0 0 8px; white-space: pre-wrap; }
.po-dir p:last-child { margin-bottom: 0; }
.po-com { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-subtle); font-size: 14px; white-space: pre-wrap; }
.po-com.ch { background: var(--warning-bg); }
.po-com svg { flex: none; margin-top: 3px; }
.po-series { margin: 0 0 16px; }
.po-series h4 { margin: 0 0 8px; font-size: 14px; }
.po-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.po-idea { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.po-thumb { display: block; position: relative; aspect-ratio: 326 / 352; background: var(--surface-subtle); overflow: hidden; }
.po-thumb .lt { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.po-thumb .lt img, .po-thumb .lt-img { width: 100%; height: 100%; object-fit: cover; }
.po-nothumb { display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.po-ib { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; min-width: 0; }
.po-it { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.po-it b { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.po-ist { flex: none; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-subtle); color: var(--text-muted); white-space: nowrap; }
.po-ist.po-i-doing { background: var(--info-bg); color: var(--info); }
.po-ist.po-i-ready, .po-ist.po-i-done { background: var(--success-bg); color: var(--success); }
.po-script summary { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.po-script p, .pl-script p, .po-pre { white-space: pre-wrap; margin: 6px 0 0; font-size: 13px; line-height: 1.45; }
.pl-script { margin-top: 8px; }
.pl-script summary { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.po-insp { display: inline-flex; align-items: center; gap: 4px; }
.po-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.po-h4 { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 14px; }
.po-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.po-kpi { padding: 12px 14px; border-radius: 12px; background: var(--surface-subtle); min-width: 0; }
.po-kpi > span:first-child { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.po-kpi b { display: block; font-size: 20px; line-height: 1.2; font-weight: 650; }
.po-d { display: block; margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.po-d.up { color: var(--success); }
.po-d.down { color: var(--warning); }
.po-top { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 10px; margin: 0 0 14px; }
.po-top figure { margin: 0; min-width: 0; }
.po-top img, .po-top .po-nothumb { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--surface-subtle); }
.po-top figcaption { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.po-bar { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: var(--surface-subtle); overflow: hidden; max-width: 260px; }
.po-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.po-req { white-space: pre-wrap; }
.po-hint { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--info-bg); }
.po-hint svg { flex: none; margin-top: 2px; }
/* agência: enviar o plano */
.po-send { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.po-send.ch { border-color: var(--warning); }
.po-send-off { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.po-send-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.po-send-t .sp { flex: 1 1 auto; }
.po-send-c { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 14px; white-space: pre-wrap; }
.po-send-c svg { flex: none; margin-top: 3px; }
.po-tag { font-style: normal; font-weight: 600; }
.po-tag-w { color: var(--warning); }
.po-tag-ok { color: var(--success); }
.po-tag-ch { color: var(--danger, var(--warning)); }
@media (max-width: 600px) {
  .po-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .po-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-kpi b { font-size: 17px; }
  .po-act .btn { flex: 1 1 auto; }
  .po-send-t .btn { flex: 1 1 auto; }
}
/* 6.25: iPhone (Safari) às vezes não repinta o texto da gaveta depois que ela desliza: os nomes do menu ficavam cortados à esquerda.
   A gaveta vira uma camada própria (pintada inteira) e os nomes não criam recorte (cabem na largura). */
@media (max-width: 767px) {
  .side { will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  .nav a .lbl { overflow: visible; text-overflow: clip; }
}

/* ============================ 6.26 plano de tráfego ============================ */
.ap-budget { margin-bottom: 16px; }
.ap-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.ap-nums > div { padding: 12px 14px; border-radius: 12px; background: var(--surface-subtle); min-width: 0; }
.ap-nums span { display: block; font-size: 12px; color: var(--text-muted); }
.ap-nums b { display: block; font-size: 20px; font-weight: 650; margin-top: 2px; }
.ap-nums small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ap-bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-subtle); overflow: hidden; margin: 4px 0 8px; }
.ap-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.ap-bar.over i { background: var(--warning); }
.ap-warn { color: var(--warning); }
.ap-ok { color: var(--success); }
.ap-tip { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--info-bg); font-size: 13px; }
.ap-tip svg { flex: none; margin-top: 2px; }
.ap-notes { margin-top: 12px; }
.ap-notes textarea { width: 100%; margin: 4px 0 6px; }
.ap-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-bottom: 16px; align-items: start; }
.ap-line { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ap-lh { display: flex; align-items: flex-start; gap: 8px; }
.ap-lh h3 { margin: 0 0 6px; font-size: 16px; }
.ap-ty { font-size: 12px; }
.ap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ap-cols p { margin: 4px 0; }
.ap-how { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 12px; color: var(--text-muted); }
.ap-how svg { flex: none; margin-top: 2px; }
.ap-how-d { margin: -4px 0 10px; }
.ap-camps { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-camps .chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.ap-x { border: 0; background: none; padding: 0 0 0 2px; color: var(--text-muted); cursor: pointer; display: inline-flex; }
.ap-crs { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-cr { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--surface-subtle); display: inline-flex; align-items: center; justify-content: center; }
.ap-cr img, .ap-cr .lt, .ap-cr .lt img { width: 100%; height: 100%; object-fit: cover; }
.ap-ln { margin: 0; white-space: pre-wrap; color: var(--text-muted); }
.ap-empty .btns { flex-wrap: wrap; }
.ap-h4 { margin: 14px 0 8px; font-size: 14px; }
.ap-t td, .ap-t th { white-space: nowrap; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ap-fig { margin: 0; min-width: 0; }
.ap-fig img, .ap-fig .ap-ph, .ap-fig .lt { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--surface-subtle); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ap-fig figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; }
.ap-fig figcaption b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-fig figcaption span { color: var(--text-muted); }
.ap-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 6px; }
.ap-pick { display: flex; flex-direction: column; gap: 4px; position: relative; cursor: pointer; }
.ap-pick input { position: absolute; top: 6px; left: 6px; z-index: 1; }
.ap-pt { width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-subtle); display: flex; align-items: center; justify-content: center; border: 2px solid transparent; }
.ap-pick input:checked + .ap-pt { border-color: var(--accent); }
.ap-pt img, .ap-pt .lt, .ap-pt .lt img { width: 100%; height: 100%; object-fit: cover; }
.ap-card { margin: 14px 0; }
@media (max-width: 600px) {
  .ap-nums { grid-template-columns: 1fr 1fr; }
  .ap-nums > div:last-child { grid-column: span 2; }
  .ap-lines { grid-template-columns: minmax(0, 1fr); }
  .ap-cols { grid-template-columns: minmax(0, 1fr); }
}
/* 6.26: prévia do TikTok (player oficial) ocupa a miniatura inteira */
.lt .lt-ifr.lt-tt { width: 100%; height: 100%; transform: none !important; left: 0 !important; }

/* 6.27 — saldo de anúncios por cliente */
.af-neg { color: var(--danger); }
.af-tip-neg { background: var(--danger-bg); }
.af-off { opacity: .55; }
.af-note { margin: 4px 2px 18px; line-height: 1.6; }
.af-t td, .af-t th { white-space: nowrap; }
.af-split { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 767px) {
  .af-split { grid-template-columns: 1fr 1fr; }
  .af-split > div:last-child { grid-column: auto; }
}
.af-page > .card { margin-bottom: 14px; }

/* 6.28 — demanda: "já está pronto?" na criação e regras da marca recolhidas */
.tc-ready { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px 2px; margin: 4px 0 0; }
.tc-ready legend { padding: 0 6px; font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.brain-box.closed { padding-top: 10px; padding-bottom: 10px; }
.brain-box.closed h3 { margin-bottom: 2px; }
.sys-hh { flex-wrap: wrap; }
.sys-hh .sp { flex: 1; }
.upd-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 9999; display: flex; gap: 12px; align-items: center;
  background: var(--surface, #fff); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.18); font-size: 14px; max-width: calc(100vw - 32px); }
@media (max-width: 767px) { .upd-bar { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* 6.28 — relatório do projeto: metas com números, ritmo e evolução */
.rp-goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3mm; margin: 0 0 6mm; }
.rp-goal { border: 1px solid #e7e7e7; border-radius: 3mm; padding: 3.5mm 4mm; break-inside: avoid; display: flex; flex-direction: column; gap: 2mm; }
.rp-gl-h { display: flex; align-items: center; justify-content: space-between; gap: 2mm; }
.rp-gl-h b { font: 700 11pt var(--font); color: #1e1e1e; }
.rp-gl-nums { display: flex; gap: 4mm; }
.rp-gl-nums div { display: flex; flex-direction: column; }
.rp-gl-nums span { font: 600 6.5pt var(--font); letter-spacing: .1em; text-transform: uppercase; color: #777; }
.rp-gl-nums b { font: 800 13pt/1.2 var(--font); font-variant-numeric: tabular-nums; color: #1e1e1e; }
.rp-gbar { position: relative; height: 2.2mm; border-radius: 9px; background: #eee; overflow: visible; }
.rp-gbar i { display: block; height: 100%; border-radius: 9px; background: var(--pc, #ff6b00); }
.rp-gbar u { position: absolute; top: -1mm; width: .5mm; height: 4.2mm; background: #1e1e1e; text-decoration: none; }
.rp-gl-p { margin: 0; font-size: 8.5pt; line-height: 1.45; color: #333; }
.rp-spark { width: 100%; height: 16mm; }
.rp-sp-line { fill: none; stroke: var(--pc, #ff6b00); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rp-sp-goal { stroke: #bbb; stroke-width: 1.2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.rp-sub { font: 600 8pt var(--font); color: #666; margin: 0 0 2mm; }
@media (max-width: 767px) { .rp-goals { grid-template-columns: 1fr; } }

/* ============================================================================
   6.29 — auditoria de layout
   ============================================================================ */
/* barras sólidas: nada de vidro/desfoque por cima do conteúdo. No iPhone (iOS 26) a barra fixa do topo com cor sólida
   também é o que o sistema usa para pintar a faixa do relógio, em vez de mostrar o conteúdo borrado por trás. */
html { background: var(--canvas); }
.pd-bar-top { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--border); }
.pd-accept { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 767px) {
  .tabbar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pe-bar { background: var(--raised); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* contador escondido não aparece como "0" laranja no menu */
.nav a .count[hidden] { display: none !important; }
/* menu lateral em tela baixa: o rodapé (Ajustes e tema) fica sempre à vista */
@media (min-width: 768px) {
  .side { overflow-y: auto; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side-foot { position: sticky; bottom: -10px; background: var(--rail-bg); padding-bottom: 10px; z-index: 2; }
}
@media (min-width: 768px) and (max-height: 940px) { .nav a { min-height: 42px; padding: 4px 2px; gap: 2px; } .nav a svg { width: 18px; height: 18px; } }
/* financeiro no celular: as abas quebram linha em vez de esconder "Todas" */
@media (max-width: 767px) { .fin-seg { flex-wrap: wrap; overflow: visible; border-radius: 20px; } }
/* toque no celular não deixa a linha "acesa" (hover preso) */
@media (hover: none) {
  .li:hover, table.t tbody tr:hover, .chip:not(.on):hover { background: transparent; }
  .pcard:hover { background: var(--surface); border-color: var(--border); }
  .tcardk:hover { background: var(--raised); border-color: var(--border); }
}
/* contraste */
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: .85; }
.rp-k:first-child .rp-d.eq { color: rgba(255,255,255,.62) !important; }
.chip b { opacity: 1; }
:root[data-theme="light"] :focus-visible { outline-color: var(--p-700); }
/* alvos de toque */
@media (pointer: coarse) {
  .btn-block { min-height: 44px; }
  .seg > a, .seg > button { min-width: 44px; }
  .pl-pick, #content input[type=checkbox] { min-width: 22px; min-height: 22px; }
}

/* ============================================================================
   6.30 — navegação organizada: grupos (Dia a dia · Produção · Clientes e resultados · Comercial · Agência)
   ============================================================================ */
.nav-cap, .nav a .lbl-x, .nav-tabs-edit { display: none; }
/* celular: a gaveta vira uma lista de verdade (nome inteiro, ícone à esquerda, título de cada grupo) */
@media (max-width: 767px) {
  .side { width: min(86vw, 330px); align-items: stretch; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(14px + var(--sat)) 12px calc(12px + var(--sab)) calc(12px + var(--sal)); }
  .side .brand { justify-content: flex-start; gap: 12px; padding: 2px 8px 4px; }
  .side .brand > span:last-child { display: flex; flex-direction: column; font: 700 16px/1.15 var(--font); color: var(--text); }
  .side .brand small { font: 500 12px/1.3 var(--font); color: var(--text-muted); }
  .side .org-name { display: block; padding: 2px 8px 6px; font: 500 12px/1.3 var(--font); color: var(--text-muted); }
  .nav { gap: 2px; }
  .nav .sep { display: none; }
  .nav-cap { display: block; padding: 16px 12px 6px; font: 650 11px/1 var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 48px; padding: 0 12px; border-radius: 12px;
    font: 550 15px/20px var(--font); text-align: left; color: var(--text-2); }
  .nav a svg { flex: none; width: 20px; height: 20px; }
  .nav a .lbl { flex: 1; min-width: 0; text-align: left; }
  .nav a .lbl-x { display: inline; }
  .nav a .count { position: static; margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; font: 650 12px/22px var(--font); }
  .nav a .count.fm-n { background: var(--accent); color: var(--accent-ink); }
  .nav a.on .count.fm-n { background: #0B0B0C; color: #fff; }
  .nav-tabs-edit { display: flex; align-items: center; gap: 10px; width: 100%; margin: 14px 0 4px; padding: 12px; min-height: 44px; border: 1px dashed var(--border-strong);
    border-radius: 12px; background: transparent; color: var(--text-muted); font: 550 13px/18px var(--font); text-align: left; cursor: pointer; }
  .side-foot { flex-direction: row; justify-content: flex-start; align-items: center; padding-top: 10px; }
  /* barra de baixo: contador do "Para mim" no ícone */
  .tabbar .tb-ic { position: relative; }
  .tb-n { position: absolute; top: -3px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink);
    font: 700 11px/18px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--surface); }
  .tb-n[hidden] { display: none; }
}
/* escolher atalhos */
.tabs-pick { display: flex; flex-direction: column; gap: 2px; }
.tabs-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 6px; border-radius: 10px; cursor: pointer; }
.tabs-row:hover { background: var(--fill); }
.tabs-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.tabs-row input:disabled + svg, .tabs-row input:disabled ~ span { opacity: .45; }
/* 6.30: Início — "Para você aprovar" no topo; no celular, primeiro o que pede ação, os números da semana no fim */
.hm-apr { margin: 0 0 16px; border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.hm-apr h3 { display: flex; align-items: center; gap: 8px; }
.hm-wrap { display: flex; flex-direction: column; }
@media (max-width: 767px) {
  .hm-wrap .hm-main { order: 1; grid-template-areas: "al" "tk" "cl" "ss"; }
  .hm-wrap .hm-ks { order: 2; margin: 16px 0 0; }
}
/* 6.30: notebook com tela baixa — o menu inteiro cabe sem rolar */
@media (min-width: 768px) and (max-height: 860px) {
  .side { padding-top: calc(8px + var(--sat)); padding-bottom: calc(6px + var(--sab)); }
  .side .brand { padding: 0 0 6px; }
  .side .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .nav { gap: 0; }
  .nav a { min-height: 38px; padding: 3px 2px; gap: 1px; font-size: 10.5px; line-height: 11px; }
  .nav a svg { width: 17px; height: 17px; }
  .nav .sep { margin: 3px 14px; }
  .nav a .count { top: 1px; }
}
/* 6.30: números do topo das telas — sem "pílula" pintada pela posição (parecia botão/campo); vermelho só quando significa algo */
.kpis > .kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.kpi > a { padding: 12px 14px; border-radius: 14px; }
.kpi > a:hover { background: var(--fill); }
.kpi span:first-child { margin: 0 0 4px; }
.kpis > .kpi b, .kpis > .kpi:nth-child(n) b { height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text); font: 700 24px/1.1 var(--font); letter-spacing: -.02em; }
.kpis > .kpi.kpi-bad b { color: var(--danger); }
.kpi a:hover b { filter: none; }
@media (max-width: 767px) { .kpis { gap: 8px; } .kpis > .kpi b, .kpis > .kpi:nth-child(n) b { font-size: 20px; height: auto; } .kpi > a { padding: 10px 12px; } }
.kpis > .kpi:not(:has(> a)) { padding: 12px 14px; }
.hm-why { margin: -2px 0 10px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.hm-why.crit { color: var(--danger); } .hm-why.warn { color: var(--warning); }
/* 6.30: Nova demanda — "Mais detalhes" recolhido */
.tc-more { margin: 4px 0 0; border-top: 1px solid var(--border); padding-top: 10px; }
.tc-more > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); list-style: none; }
.tc-more > summary::-webkit-details-marker { display: none; }
.tc-more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--fill); font-weight: 700; }
.tc-more[open] > summary::before { content: "–"; }
.tc-more[open] > summary { margin-bottom: 8px; }
@media (max-width: 767px) {
  .side-foot .icon-btn { display: inline-flex; align-items: center; gap: 10px; width: auto; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text-2); }
  .side-foot .icon-btn::after { content: "Tema claro / escuro"; font: 550 14px/1 var(--font); }
}

/* 6.30.1 — histórico de mudanças das campanhas */
.chg-card { margin: 0 0 14px; }
.chg-list { display: flex; flex-direction: column; }
.chg { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.chg:first-child { border-top: 0; padding-top: 2px; }
.chg-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--fill); color: var(--text-2); }
.chg-ic.k-budget, .chg-ic.k-bid { background: var(--info-bg); color: var(--info); }
.chg-ic.k-target, .chg-ic.k-goal { background: var(--violet-bg); color: var(--violet); }
.chg-ic.k-creative, .chg-ic.k-create { background: var(--p-50); color: var(--p-700); }
.chg-ic.k-status, .chg-ic.k-limit { background: var(--warning-bg); color: var(--warning); }
.chg-t { font-size: 14px; line-height: 20px; color: var(--text); overflow-wrap: anywhere; }
.chg-m { font-size: 12px; line-height: 17px; color: var(--text-muted); margin-top: 2px; overflow-wrap: anywhere; }
.chg-imp { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-muted); font-size: 13px; }
.chg-imp.wait { color: var(--text-2); }
.chg-w { display: inline-flex; gap: 6px; align-items: center; font-weight: 550; }
.chg-ab { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 6px 10px; }
.chg-ab > .chg-v { grid-column: 1 / -1; justify-self: start; }
.chg-ab > span { display: flex; flex-direction: column; } .chg-ab i { font-style: normal; font-size: 11px; color: var(--text-muted); }
.chg-v { font-style: normal; font-weight: 650; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--fill); }
.chg-v.good { background: var(--success-bg, rgba(34,197,94,.13)); color: var(--success); } .chg-v.bad { background: var(--danger-bg); color: var(--danger); }
.chg-n { font-size: 12px; font-weight: 650; color: var(--text-muted); }
.chg-card .card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.chg-note { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.chg-why { margin-top: 6px; }
.chart .chg-mk { fill: var(--accent); }

/* ---------------------------------------------------------------- 6.30.4: Plano de tráfego arrumado
   Objetivos lado a lado com a mesma altura, números alinhados em 3 colunas, texto longo recolhido,
   link vira botão curto (nunca estoura a caixa), observações do plano em leitura (editar abre janela). */
.ap-sec { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 10px; font-size: 16px; font-weight: 650; }
.ap-sec .muted { font-weight: 500; font-size: 14px; }
.ap-lines { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); align-items: stretch; gap: 16px; }
.ap-line { gap: 14px; padding: 18px; }
.ap-lh { gap: 10px; }
.ap-lh h3 { margin: 0 0 8px; font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.ap-ty { height: 22px; font-size: 12px; }
.ap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ap-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-subtle); }
.ap-stats span { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.ap-stats b { font-size: 18px; line-height: 24px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-stats small { font-size: 12px; line-height: 16px; color: var(--text-muted); overflow-wrap: anywhere; }
.ap-stats small b { font-size: 12px; line-height: 16px; white-space: normal; }
.ap-stats .ap-bar { margin: 4px 0 2px; height: 6px; background: var(--fill); }
.ap-how { padding: 10px 12px; border-radius: 10px; background: var(--surface-subtle); line-height: 18px; }
.ap-camps { gap: 6px; }
.ap-camp { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 26px; padding: 2px 6px 2px 10px; border-radius: 99px; background: var(--fill); font-size: 12px; overflow-wrap: anywhere; }
.ap-crs { gap: 8px; }
.ap-det { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; }
.ap-det > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; min-height: 32px; font-size: 13px; }
.ap-det > summary::-webkit-details-marker { display: none; }
.ap-det-t { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 600; }
.ap-det-p { flex: 1 1 auto; min-width: 0; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-det-more { flex: none; color: var(--accent); font-weight: 600; font-size: 12px; }
.ap-det[open] .ap-det-p { visibility: hidden; }
.ap-det[open] .ap-det-more::before { content: 'recolher'; } .ap-det[open] .ap-det-more { font-size: 0; } .ap-det[open] .ap-det-more::before { font-size: 12px; }
.ap-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 20px; color: var(--text-2); }
.ap-det .ap-text { margin-top: 8px; }
.ap-url { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 99px; background: var(--info-bg); color: var(--info); font-size: 12px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; vertical-align: baseline; }
.ap-url:hover { text-decoration: underline; }
.ap-clamp { max-height: 200px; overflow: hidden; }
.ap-clamp.is-long { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.ap-clamp.open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.ap-more-btn { margin-top: 6px; font-weight: 600; }
.ap-fig figcaption .badge { align-self: flex-start; }
.ap-notes-add { margin: -4px 0 4px; }
.ap-free .li { flex-wrap: wrap; }
.ap-free .li .grow { flex: 1 1 260px; min-width: 0; }
.ap-free .li .t { overflow-wrap: anywhere; }
.ap-free .li select { flex: 0 0 220px; width: 220px; max-width: 100%; }
.ap-budget .ap-nums b { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .ap-line { padding: 14px; }
  .ap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-stats > div:last-child { grid-column: span 2; }
  .ap-free .li select { flex: 1 1 100%; width: 100%; }
  .ap-clamp { max-height: 180px; }
  /* criativos: faixa deslizante em vez de 3–6 linhas de fotos grandes */
  .ap-grid { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 10px; padding-bottom: 6px; margin-right: -14px; }
  .ap-grid > .ap-fig { flex: 0 0 128px; scroll-snap-align: start; }
}
.ap-lines:has(.ap-det[open]) { align-items: start; }   /* abriu o "Como montar": o card vizinho não estica junto */

/* ---------------------------------------------------------------- 6.31: Para postar (celular primeiro) */
.seg .seg-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--fill); font-size: 11px; font-weight: 650; }
.seg .seg-n.bad { background: var(--danger-bg); color: var(--danger); }
.pc-bar { flex-wrap: wrap; }
.pc-day { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; font-size: 15px; font-weight: 650; }
.pc-day .muted { font-size: 13px; font-weight: 500; }
.pc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 12px; }
.pc { display: flex; gap: 14px; padding: 12px; align-items: flex-start; min-width: 0; }
.pc-media { position: relative; flex: none; width: 96px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: var(--surface-subtle); display: grid; place-items: center; color: var(--text-muted); cursor: pointer; }
.pc-media.v { aspect-ratio: 9 / 16; }
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-media .pc-ph { position: relative; }
.pc-media img + .pc-ph { display: none; }
.pc-play { position: absolute; inset: auto auto 8px 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; }
.pc-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0; font-size: 12px; }
.pc-cl { font-weight: 600; color: var(--text-2); }
.pc-st { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-weight: 600; background: var(--fill); color: var(--text-2); }
.pc-st.st-today { background: var(--info-bg); color: var(--info); }
.pc-st.st-late { background: var(--danger-bg); color: var(--danger); }
.pc-st.st-done { background: var(--success-bg, rgba(34,197,94,.13)); color: var(--success); }
.pc-t { margin: 0; font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.pc-cap { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
.pc-warn, .pc-done, .pc-res { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12px; line-height: 17px; }
.pc-warn { color: var(--warning); } .pc-done { color: var(--success); } .pc-res { color: var(--text-2); }
.pc-warn svg, .pc-done svg, .pc-res svg { flex: none; margin-top: 2px; }
.pc-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pc-done.pc-done { font-weight: 600; }
.pc-who { margin-top: 18px; padding: 14px 16px; }
.pc-who > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; font-weight: 600; list-style: none; }
.pc-who > summary::-webkit-details-marker { display: none; }
.pc-who-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px 16px; margin-top: 10px; }
.pc-who-r { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pc-who-r span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-who-r select { flex: 0 0 170px; width: 170px; }
/* janela da peça */
.pd-post { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pd-play { border-radius: 14px; overflow: hidden; background: #000; display: grid; place-items: center; aspect-ratio: 4 / 5; }
.pd-play.v { aspect-ratio: 9 / 16; }
.pd-play .pd-vid, .pd-play .pd-drive { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.pd-imgs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; height: 100%; }
.pd-imgs img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.pd-none { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; text-align: center; font-size: 13px; color: rgba(255,255,255,.75); }
.pd-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-cap { padding: 10px 12px; border-radius: 12px; background: var(--surface-subtle); }
.pd-cap-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pd-cap-t { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 19px; max-height: 220px; overflow: auto; }
.pd-res-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 6px 0; }
.pd-res-g > div { padding: 8px 10px; border-radius: 10px; background: var(--surface-subtle); display: flex; flex-direction: column; }
.pd-res-g span { font-size: 11px; color: var(--text-muted); } .pd-res-g b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pd-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.pd-mark .btn-block { width: 100%; }
@media (max-width: 640px) {
  .pd-post { grid-template-columns: minmax(0, 1fr); }
  .pd-play { max-height: 62vh; aspect-ratio: auto; height: 62vh; }
  .pd-acts .btn { flex: 1 1 100%; justify-content: center; }
  .pc { gap: 12px; }
  .pc-media { width: 84px; }
  .pc-acts .btn { flex: 1 1 calc(50% - 6px); justify-content: center; }
}
/* agenda: posts com miniatura */
.ag-pl { display: flex; flex-direction: column; gap: 6px; }
.ag-p { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.ag-p:hover { border-color: var(--border-strong); }
.ag-p.st-late { border-color: var(--danger); }
.ag-pthumb { position: relative; flex: none; width: 34px; height: 44px; border-radius: 7px; overflow: hidden; background: var(--surface-subtle); display: grid; place-items: center; color: var(--text-muted); }
.ag-pthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ag-pthumb img + svg { display: none; }
.ag-ptx { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ag-ptx i { font-style: normal; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ptx b { font-size: 12px; font-weight: 600; line-height: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ag-pok { color: var(--success); flex: none; } .ag-plate { color: var(--danger); flex: none; }
.ag-pc { display: inline-flex; align-items: center; gap: 3px; margin: 2px 0; padding: 1px 6px; border-radius: 99px; background: var(--info-bg); color: var(--info); font-size: 11px; font-weight: 600; }
.ag-pc.ok { background: var(--success-bg, rgba(34,197,94,.13)); color: var(--success); } .ag-pc.late { background: var(--danger-bg); color: var(--danger); }
/* 6.31: convite para ativar os avisos neste aparelho (avisos são da conta, valem em todo aparelho) */
.push-ask { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(560px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.push-ask .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 18px; }
.push-ask .grow span { color: var(--text-2); }
.push-ask .pa-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--p-50); color: var(--p-700); }
.push-ask .pa-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
@media (max-width: 767px) { .push-ask { bottom: calc(76px + env(safe-area-inset-bottom)); flex-wrap: wrap; } .push-ask .pa-btns { flex-direction: row; width: 100%; } .push-ask .pa-btns .btn { flex: 1 1 0; justify-content: center; } }
.pc-bar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pc-bar .seg::-webkit-scrollbar { display: none; }
@media (max-width: 420px) { .pc-bar .seg a { padding: 0 10px; } .pc-bar select { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- 6.31: prévia do perfil (como o Instagram vai ficar) */
.pf-root { max-width: 760px; }
.pf-head { display: flex; align-items: center; gap: 18px; margin: 4px 0 14px; }
.pf-pic { flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-subtle); box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--border-strong); }
.pf-pic img { width: 100%; height: 100%; object-fit: cover; } .pf-pic .clogo { width: 100%; height: 100%; border-radius: 50%; }
.pf-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf-user { font-size: 17px; overflow-wrap: anywhere; }
.pf-nums { display: flex; gap: 18px; }
.pf-nums > div { display: flex; flex-direction: column; } .pf-nums b { font-size: 16px; font-variant-numeric: tabular-nums; } .pf-nums span { font-size: 12px; color: var(--text-muted); }
.pf-stories { margin-bottom: 4px; }
.pf-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; flex-wrap: wrap; }
.pf-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.pf-leg b { color: var(--text); margin-right: 10px; }
.pf-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .pf-dot.plan { background: var(--accent); } .pf-dot.live { background: var(--text-muted); }
.pf-simbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-subtle); font-size: 13px; color: var(--text-2); }
.pf-simbar.on { background: var(--p-50); color: var(--text); }
.pf-simbar span { flex: 1 1 260px; }
.pf-grid { position: relative; }
.pf-t { position: relative; min-width: 0; }
.pf-t .fg-t { width: 100%; }
.pf-t .fg-t::before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--accent); border-radius: inherit; pointer-events: none; z-index: 1; opacity: .9; }
.pf-t.sim { cursor: grab; } .pf-t.sim .fg-t { pointer-events: none; }
.pf-t.drag { opacity: .45; } .pf-t.over .fg-t::before { box-shadow: inset 0 0 0 4px var(--info); }
.pf-mv { position: absolute; left: 6px; right: 6px; top: 6px; display: flex; justify-content: space-between; z-index: 2; }
.pf-mv .icon-btn { width: 30px; height: 30px; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; }
.pf-mv .icon-btn:disabled { opacity: 0; }
.pf-nomedia { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font: 600 10px/16px var(--font); }
.pf-sep { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.pf-sep::before, .pf-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pf-live { text-decoration: none; }
.pf-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(0,0,0,.45); color: #fff; font-weight: 650; font-size: 14px; opacity: 0; transition: opacity 150ms; }
.pf-ov span { display: inline-flex; align-items: center; gap: 5px; }
.pf-live:hover .pf-ov, .pf-live:focus-visible .pf-ov { opacity: 1; }
.fg-s-late { background: var(--danger); color: #fff; }
.fv-edit { display: flex; flex-direction: column; gap: 8px; width: 100%; }
@media (max-width: 600px) {
  .pf-head { gap: 14px; } .pf-pic { width: 68px; height: 68px; } .pf-nums { gap: 12px; }
  .pf-mv .icon-btn { width: 26px; height: 26px; }
}
@media (hover: none) { .pf-ov { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); align-items: flex-end; padding-bottom: 6px; font-size: 12px; } }
.pd-up { align-self: flex-start; cursor: pointer; } .pc-up { cursor: pointer; text-decoration: underline; font-weight: 600; color: var(--accent); }
@media (max-width: 640px) { .pd-play, .pd-play.v { aspect-ratio: auto; width: 100%; } }

/* ===== 6.33 Agenda: Lista (era a Minha semana), Semana com o cliente no prazo, Mês com pontinhos no celular; substituir arquivo ===== */
.ag-you { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.ag-k { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); color: var(--text) !important; text-decoration: none !important; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ag-k b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ag-k span { font-size: 13px; color: var(--text-2); min-width: 0; }
.ag-k:hover:not([disabled]):not(.ok) { border-color: var(--border-strong); }
.ag-k[disabled], .ag-k.ok { cursor: default; } .ag-k[disabled] b { color: var(--text-muted); }
.ag-k.bad { border-color: var(--danger); } .ag-k.bad b { color: var(--danger); }
.ag-list { display: flex; flex-direction: column; gap: 10px; }
.ag-ld, .ag-ls { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2px 6px 6px; scroll-margin-top: 84px; }
.ag-ld.today { border-color: var(--accent); }
.ag-ld.empty { background: transparent; border-style: dashed; padding-bottom: 2px; }
.ag-lh { display: flex; align-items: center; gap: 8px; padding: 8px 8px 6px; min-height: 40px; min-width: 0; }
.ag-lh b { font-size: 15px; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ag-lh > span:not(.ag-lc) { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ag-lc { margin-left: auto; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.ag-ld.today .ag-lh b { color: var(--p-700); }
.ag-lh .icon-btn { width: 30px; height: 30px; flex: none; }
.ag-ld.empty .ag-lh { min-height: 34px; padding: 4px 8px; } .ag-ld.empty .ag-lh b { font-weight: 500; font-size: 14px; color: var(--text-2); }
.ag-rows { display: flex; flex-direction: column; gap: 2px; }
.ag-r { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--text) !important; text-decoration: none !important; min-width: 0; width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.ag-r:hover { background: var(--fill); }
.ag-rx { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ag-rx b { font-size: 14px; font-weight: 550; line-height: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-rx i { font-style: normal; font-size: 12px; line-height: 16px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-rt { flex: none; width: 46px; min-height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; border-radius: 8px; background: var(--accent); color: #0B0B0C; }
.ag-rt b { font-size: 13px; font-weight: 700; line-height: 16px; } .ag-rt i { font-style: normal; font-size: 11px; line-height: 14px; opacity: .7; }
.ag-rm.done .ag-rt { background: var(--fill-2); color: var(--text); }
.ag-rm.cancel .ag-rt { background: transparent; color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border-strong); } .ag-rm.cancel .ag-rx b { text-decoration: line-through; color: var(--text-muted); }
.ag-ri { flex: none; width: 46px; display: grid; place-items: center; color: var(--text-muted); }
.ag-rd.late .ag-ri { color: var(--danger); }
.ag-rp .ag-pthumb { width: 46px; height: 56px; border-radius: 8px; }
.ag-rs { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.ag-rs.ok, .ag-rs.st-done { color: var(--success); } .ag-rs.st-late { color: var(--danger); } .ag-rs.st-today { color: var(--p-700); }
.ag-re { flex: none; display: inline-flex; align-items: center; gap: 10px; }
.ag-who { display: inline-flex; align-items: center; }
.ag-who .avatar { width: 24px; height: 24px; border-radius: 50%; font-size: 10px; display: inline-grid; place-items: center; overflow: hidden; }
.ag-who .avatar img { width: 100%; height: 100%; object-fit: cover; }
.ag-who .avatar + .avatar { margin-left: -6px; } .ag-who i { font-style: normal; font-size: 11px; color: var(--text-muted); margin-left: 4px; }
.ag-ls.late { border-color: var(--danger); } .ag-ls.late .ag-lh b { color: var(--danger); }
details.ag-ls > summary, .ag-past > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px; min-height: 42px; }
details.ag-ls > summary::-webkit-details-marker, .ag-past > summary::-webkit-details-marker { display: none; }
details.ag-ls > summary b, .ag-past > summary b { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ag-past { border: 1px dashed var(--border-strong); border-radius: var(--r-lg); padding: 0 6px; }
.ag-past > summary > svg { color: var(--text-muted); transition: transform 120ms ease; } .ag-past[open] > summary > svg { transform: rotate(90deg); }
.ag-past[open] { padding-bottom: 6px; } .ag-past .ag-ld + .ag-ld { margin-top: 8px; }
.ag-foot { margin-top: 12px; }
.ag-cg { display: flex; flex-direction: column; gap: 2px; }
.ag-cg + .ag-cg, .ag-r + .ag-cg { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.ag-cgh { display: flex; align-items: baseline; gap: 8px; padding: 2px 8px 2px 66px; font-size: 12px; font-weight: 650; letter-spacing: .02em; color: var(--text-2); }
.ag-cgh span { font-weight: 400; color: var(--text-muted); }
@media (max-width: 767px) { .ag-cgh { padding-left: 54px; } }
/* Semana: o prazo mostra o cliente; o resto vai para a Lista */
.ag-t > span { display: flex; flex-direction: column; min-width: 0; -webkit-line-clamp: unset; }
.ag-t > span b { font-weight: 500; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ag-t > span i { font-style: normal; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-t.late svg { color: var(--danger); }
a.ag-more { color: var(--accent) !important; text-decoration: none !important; font-weight: 600; padding: 4px; }
/* Mês: legenda; no celular, pontinhos e a lista do dia tocado embaixo */
.ag-dots { display: none; }
.ag-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.ag-leg span { display: inline-flex; align-items: center; gap: 6px; }
.ag-leg i, .ag-dots i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--info); flex: none; }
.ag-leg i.ok, .ag-dots i.ok { background: var(--success); } .ag-leg i.late, .ag-dots i.late { background: var(--danger); }
.ag-leg i.d-m, .ag-dots i.d-m { background: var(--accent); } .ag-leg i.d-t, .ag-dots i.d-t { background: var(--text-muted); }
.ag-sel { display: none; }
@media (max-width: 767px) {
  .ag-you { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ag-k { padding: 8px 12px; } .ag-k b { font-size: 18px; } .ag-k span { font-size: 12px; }
  .ag-r { gap: 10px; padding: 8px 4px; }
  .ag-rt, .ag-ri { width: 40px; } .ag-rp .ag-pthumb { width: 40px; height: 50px; }
  .ag-rx b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ag-re .prio { display: none; }
  .ag-cell { min-height: 54px; align-items: center; cursor: pointer; }
  .ag-cell .ag-pc { display: none; }
  .ag-cell:has(.ag-chip)::after { display: none; }
  .ag-dots { display: flex; gap: 3px; justify-content: center; margin-top: 3px; } .ag-dots i { width: 6px; height: 6px; }
  .ag-cell.sel { background: var(--fill-2); } .ag-cell.sel:not(.today) b { box-shadow: inset 0 0 0 1.5px var(--text-2); }
  .ag-sel { display: block; margin-top: 12px; }
  .ag-leg { font-size: 11px; gap: 4px 10px; }
  .ag-acts { display: none; }   /* no celular, Demanda e Reunião ficam no "+" do topo */
  .ag-tb { gap: 8px; } .ag-tb .seg a { padding-left: 11px; padding-right: 11px; }
  .ag-tb > select { flex: 1 1 0; min-width: 0; }
}
/* substituir ou adicionar arquivo */
.up-old { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.up-o { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.up-o:has(input:checked) { border-color: var(--danger); background: var(--danger-bg); }
.up-o input { width: 18px; height: 18px; flex: none; margin: 0; }
.up-th { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--surface-subtle); display: grid; place-items: center; flex: none; color: var(--text-muted); }
.up-th img { width: 100%; height: 100%; object-fit: cover; }
.up-n { display: flex; flex-direction: column; min-width: 0; } .up-n b { font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .up-n i { font-style: normal; font-size: 12px; color: var(--text-muted); }
.up-q { display: flex; gap: 8px; align-items: center; margin-top: 8px; color: var(--text-muted); }

/* ===== 6.34 Topo: Para mim · Alertas · Avisos lado a lado, uma janelinha com 3 abas ===== */
.attn { display: flex; align-items: center; gap: 2px; }
.attn:has(.attn-x:not([hidden])) { padding: 1px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.attn .notif-n { top: 1px; right: -1px; box-shadow: 0 0 0 2px var(--surface); }
.attn .notif-btn { border-radius: 50%; }
.attn-x.on { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.notif-n.bad { background: var(--danger); color: #fff; }
.attn-tabs { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 1px solid var(--border); }
.attn-tabs button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; margin-bottom: -1px; padding: 0 8px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-muted); font: 600 13px/1 var(--font); cursor: pointer; border-radius: 8px 8px 0 0; white-space: nowrap; }
.attn-tabs button:hover { color: var(--text); background: var(--fill); }
.attn-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.attn-tabs i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--fill-2); color: var(--text-2); font: 700 11px/18px var(--font); text-align: center; }
.attn-tabs button.on i { background: var(--accent); color: #0B0B0C; }
.attn-tabs i.bad, .attn-tabs button.on i.bad { background: var(--danger); color: #fff; }
.notif-ic.sev-critical { background: var(--danger-bg); color: var(--danger); }
.notif-ic.sev-high { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }
.notif-ic.sev-medium { background: var(--fill-2); color: var(--text-2); }
.attn-more { display: block; padding: 6px 10px 8px 48px; font-size: 12px; font-weight: 600; color: var(--accent) !important; text-decoration: none !important; }
.notif-menu .notif-it .due { flex: none; align-self: center; }
.notif-menu .notif-it .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* o botão da aba aberta fica marcado */
.attn:has(#notifMenu:not([hidden])[data-open="forme"]) #fmBtn, .attn:has(#notifMenu:not([hidden])[data-open="alertas"]) #alBtn,
.attn:has(#notifMenu:not([hidden])[data-open="avisos"]) button.notif-btn[data-tab="avisos"] { background: var(--fill-2); color: var(--text); }
.notif-h.slim { justify-content: flex-end; padding: 6px 8px; }
.notif-acts { flex-wrap: nowrap; }
@media (max-width: 767px) {
  .attn-x { display: none !important; }   /* no celular: só o sino, com as 3 abas dentro (Material 3: até 3 ícones no topo) */
  .attn:has(.attn-x:not([hidden])) { padding: 0; background: transparent; }
  .attn-tabs button { height: 42px; font-size: 14px; }
}

/* ===== 6.35 Links públicos com validade + posts que o cliente ainda não vê ===== */
.lk-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--fill); }
.lk-box .grow { min-width: 180px; flex: 1 1 200px; font-size: 13px; }
.lk-box .lk-x { display: block; }
.lk-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--success); }
.lk-soon .lk-dot { background: var(--warning); } .lk-keep .lk-dot { background: var(--info); } .lk-off .lk-dot { background: var(--text-disabled, var(--text-muted)); }
.lk-acts { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lk-exp { height: 32px !important; width: auto !important; max-width: 170px; border-radius: 99px !important; padding: 0 28px 0 12px !important; font-size: 12px !important; }
.lk-head { margin-bottom: 14px; }
.lk-row { align-items: center; gap: 12px; flex-wrap: wrap; }
.lk-row .grow { min-width: 220px; flex: 1 1 260px; }
.lk-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--text-2); flex: none; }
.lk-st { display: flex; flex-direction: column; flex: 0 0 210px; min-width: 0; font-size: 12px; }
.lk-st b { font-size: 13px; font-weight: 600; } .lk-st span { color: var(--text-muted); }
.lk-row.lk-on .lk-st b { color: var(--success); } .lk-row.lk-soon .lk-st b { color: var(--warning); } .lk-row.lk-keep .lk-st b { color: var(--info); } .lk-row.lk-off .lk-st b { color: var(--text-muted); }
.lk-row.lk-off .t { color: var(--text-2); }
.pt-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.pt-note .grow { display: flex; flex-direction: column; gap: 2px; }
.pt-list .up-o:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
@media (max-width: 767px) { .lk-st { flex: 1 1 auto; padding-left: 44px; } .lk-row .lk-acts { width: 100%; justify-content: flex-start; padding-left: 44px; } }

/* ===== 6.36 Plano: etapas dentro de cada categoria, lista com miniatura, já feito e arquivadas ===== */
.ks-posted { --k: color-mix(in srgb, var(--success) 70%, var(--text)); } .ks-made { --k: color-mix(in srgb, var(--success) 45%, var(--text-muted)); } .ks-canceled { --k: var(--text-disabled, var(--text-muted)); }
.plx-sg { margin-top: 10px; } .plx-sg:first-child { margin-top: 0; }
.plx-sgh { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 600 11px/1.4 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.plx-sgh b { font-weight: 600; color: var(--text-2); letter-spacing: 0; }
details.plx-sg > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 2px; border-radius: 8px; color: var(--text-muted); }
details.plx-sg > summary::-webkit-details-marker { display: none; }
details.plx-sg > summary .plx-sgh { margin: 0; }
details.plx-sg > summary > svg { transition: transform 120ms ease; } details.plx-sg[open] > summary > svg { transform: rotate(90deg); }
details.plx-sg[open] > summary { margin-bottom: 6px; } details.plx-sg > summary:hover { background: var(--fill); }
.plx-lrs { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.plx-lr { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 60px; padding: 6px 10px 6px 8px; border: 1px solid var(--border); border-left: 3px solid var(--k); border-radius: 12px; background: var(--surface-subtle); cursor: pointer; }
.plx-lr:hover { border-color: var(--border-strong); border-left-color: var(--k); }
.plx-lr.picked { box-shadow: 0 0 0 2px var(--accent); }
.plx-lr .pl-pick { margin: 0; width: 18px; height: 18px; flex: none; } .plx-nopick { width: 18px; flex: none; }
.plx-rt { flex: none; width: 38px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--surface-muted); display: grid; place-items: center; color: var(--text-muted); }
.plx-rt .lt { width: 100%; height: 100%; } .plx-rt .lt-ic small { display: none; } .plx-rt .lt-ic svg { width: 16px; height: 16px; }
.plx-rt.none { background: var(--fill); }
.plx-lr .plx-t small { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plx-lr .plx-x { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.plx-lr .plx-x .badge { white-space: nowrap; }
.plx-tst.ks-posted, .plx-tst.ks-made, .plx-tst.ks-ready { background: var(--success); color: #fff; }
.plx-tst.ks-doing { background: var(--info); color: #fff; } .plx-tst.ks-client { background: var(--violet); color: #fff; }
.pl-made { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.pl-made .badge { display: inline-flex; align-items: center; gap: 4px; }
.pl-linkbox { flex-basis: 100%; } .pl-linkbox .linkbox select { flex: 1; min-width: 0; }
.chip-ghost { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); }
.pl-insp-t { flex: none; width: 64px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--surface-muted); display: block; }
.pl-insp-t .lt { width: 100%; height: 100%; }
.pl-arq .plx-rt { margin-right: 4px; }
@media (max-width: 767px) {
  .plx-lr { gap: 8px; padding-right: 8px; }
  .plx-lr .plx-x { gap: 6px; } .plx-lr .plx-x .plx-who, .plx-lr .plx-x .plx-f { display: none; }
  .plx-lr .plx-x .badge { font-size: 11px; padding: 2px 7px; }
  .pl-insp-t { width: 52px; height: 64px; }
}

/* ===== 6.37 Produção: demandas em blocos (como o Plano) + painel de trabalho ao lado ===== */
.wks-todo { --k: var(--text-disabled, var(--text-muted)); } .wks-doing { --k: var(--info); } .wks-changes { --k: var(--warning); } .wks-review { --k: var(--accent); }
.wks-client { --k: var(--violet); } .wks-approved { --k: var(--success); } .wks-done { --k: color-mix(in srgb, var(--success) 60%, var(--text)); }
.wk-list { display: flex; flex-direction: column; gap: 12px; }
.wk-c { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.wk-ch { display: flex; align-items: center; gap: 12px; padding: 10px 12px; flex-wrap: wrap; }
.wk-tog { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; padding: 2px 4px; border-radius: 8px; min-width: 0; }
.wk-tog > svg { transition: transform 120ms ease; color: var(--text-muted); } .wk-c:not(.open) .wk-tog > svg { transform: rotate(-90deg); }
.wk-tog b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-tog .clogo { width: 26px; height: 26px; }
.wk-n { font-size: 13px; color: var(--text-muted); }
.wk-bar { display: flex; gap: 2px; width: 120px; height: 6px; flex: none; }
.wk-bar i { height: 100%; min-width: 4px; border-radius: 3px; background: var(--k); }
.wk-sum { flex: 1 1 200px; font-size: 12px; color: var(--text-muted); min-width: 0; }
.wk-late { color: var(--danger); font-weight: 600; }
.wk-cb { padding: 0 12px 12px; } .wk-c:not(.open) .wk-cb { display: none; }
.wk-sg { margin-top: 10px; } .wk-sg:first-child { margin-top: 0; }
.wk-sh { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 600 11px/1.4 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.wk-sh i { width: 10px; height: 10px; border-radius: 3px; background: var(--k); } .wk-sh b { color: var(--text-2); }
details.wk-sg > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 2px; border-radius: 8px; color: var(--text-muted); }
details.wk-sg > summary::-webkit-details-marker { display: none; } details.wk-sg > summary .wk-sh { margin: 0; }
details.wk-sg > summary > svg { transition: transform 120ms ease; } details.wk-sg[open] > summary > svg { transform: rotate(90deg); } details.wk-sg[open] > summary { margin-bottom: 8px; }
.wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wk-t { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: var(--text); transition: border-color 120ms ease, transform 120ms ease; }
.wk-t:hover { border-color: var(--border-strong); } .wk-t.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.wk-m { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-muted); overflow: hidden; }
.wk-m > img, .wk-m .lt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); }
.wk-t.nc .wk-m { aspect-ratio: auto; height: 44px; } .wk-t.nc .wk-ph { justify-content: start; padding-left: 10px; } .wk-t.nc .wk-ph svg { width: 18px; height: 18px; }
.wk-tags { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.wk-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-weight: 600; }
.wk-chip.ok { background: var(--success); } .wk-chip.post { background: rgba(0,0,0,.72); } .wk-chip.ref { background: rgba(0,0,0,.5); }
.wk-b { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; min-width: 0; }
.wk-b b { font-size: 13px; font-weight: 600; line-height: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.wk-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); min-width: 0; }
.wk-meta i { font-style: normal; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-who { display: inline-flex; flex: none; } .wk-who .avatar { width: 20px; height: 20px; border-radius: 50%; font-size: 9px; display: inline-grid; place-items: center; overflow: hidden; } .wk-who .avatar + .avatar { margin-left: -5px; } .wk-who .avatar img { width: 100%; height: 100%; object-fit: cover; }
.wk-due { display: inline-flex; align-items: center; gap: 2px; flex: none; white-space: nowrap; } .wk-due.late { color: var(--danger); font-weight: 600; }
/* painel de trabalho */
.wk-p { position: fixed; z-index: 70; top: calc(var(--top-h) + var(--sat, 0px)); right: 0; bottom: 0; width: min(460px, 100vw); background: var(--raised, var(--surface)); border-left: 1px solid var(--border-strong); box-shadow: -12px 0 32px rgba(0,0,0,.18); display: flex; flex-direction: column; overflow: hidden; animation: wkIn 180ms ease both; }
@keyframes wkIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.wk-ph-h { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--border); flex: none; }
.wk-pb { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px 28px; overscroll-behavior: contain; }
.wk-title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 4px; }
.wk-who2 { margin: 0 0 12px; }
.wk-steps { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 12px; }
.wk-step { padding: 6px 10px; border-radius: 99px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font: 600 12px/1 var(--font); cursor: pointer; }
.wk-step.past { color: var(--text-2); background: var(--fill); }
.wk-step.on { background: var(--accent); color: var(--accent-ink, #0B0B0C); border-color: var(--accent); }
.wk-step[disabled]:not(.on) { cursor: default; opacity: .7; } .wk-step:not([disabled]):hover { border-color: var(--border-strong); color: var(--text); }
.wk-s { padding: 14px 0; border-top: 1px solid var(--border); } .wk-s h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; font-weight: 650; } .wk-s h4 .muted { font-weight: 400; }
.wk-ins { display: flex; gap: 12px; align-items: flex-start; } .wk-ins .grow { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .wk-ins p { margin: 0; }
.wk-ins-t { flex: none; width: 120px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface-muted); display: block; } .wk-ins-t .lt { width: 100%; height: 100%; }
.wk-script { margin-top: 10px; } .wk-script summary { cursor: pointer; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; } .wk-script p { font-size: 13px; margin: 6px 0 0; }
.wk-desc { margin: 0; max-height: 220px; overflow: auto; }
.wk-dl { display: flex; gap: 6px; } .wk-dl input { flex: 1; min-width: 0; height: 36px; }
.wk-dlx { margin: 6px 0 0; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; } .wk-dlx a { display: inline-flex; align-items: center; gap: 4px; }
.wk-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: 10px 0; }
.wk-f { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--surface-muted); display: grid; place-items: center; color: var(--text-muted); } .wk-f img { width: 100%; height: 100%; object-fit: cover; }
.wk-up { margin-top: 8px; cursor: pointer; }
.wk-post { display: flex; flex-direction: column; gap: 8px; } .wk-post .field { margin: 0; } .wk-post .btn { align-self: flex-start; }
.wk-ok { color: var(--success); display: flex; align-items: center; gap: 4px; margin: 0 0 8px; }
.wk-p .rvb { margin: 0 0 12px; }
@media (min-width: 1280px) { body.wk-on .content { padding-right: 484px; } }
@media (max-width: 767px) {
  .wk-p { top: 0; width: 100vw; border-left: 0; z-index: 120; padding-top: var(--sat, 0px); padding-bottom: var(--sab, 0px); }
  .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wk-bar { width: 70px; } .wk-sum { flex-basis: 100%; order: 3; }
  .wk-ins-t { width: 96px; }
}

/* 6.38 Agenda Lista: "Suas atrasadas" minimiza (o aparelho lembra) */
details.ag-ls.late > summary.ag-lh { cursor: pointer; list-style: none; flex-wrap: nowrap; }
details.ag-ls > summary .ag-lx { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; flex: none; }
details.ag-ls > summary .ag-lx i { font-style: normal; }
details.ag-ls > summary .ag-lx svg { transition: transform 140ms ease; }
details.ag-ls[open] > summary .ag-lx svg { transform: rotate(180deg); }
details.ag-ls[open] > summary .ag-lx .c, details.ag-ls:not([open]) > summary .ag-lx .o { display: none; }
details.ag-ls > summary:hover .ag-lx { color: var(--text); }
.ag-lold { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
details.ag-ls.late:not([open]) { padding-bottom: 2px; }
@media (max-width: 767px){ .ag-lold { display: none; } }
details.ag-ls > summary .ag-lc { margin-left: 0; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--text-2); }
details.ag-ls.late > summary .ag-lc { background: var(--danger-bg); color: var(--danger); }

/* 6.38 Agenda Semana/Mês: miniaturas dos posts */
.ag-p.ag-pcov { flex-direction: column; align-items: stretch; gap: 6px; padding: 5px; }
.ag-pimg { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 168px; border-radius: 7px; overflow: hidden; background: var(--surface-subtle); }
.ag-pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ag-pv { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; }
.ag-pst { position: absolute; left: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 99px; font-size: 10.5px; font-weight: 600; background: rgba(0,0,0,.62); color: #fff; }
.ag-pst.ok svg { color: #4ADE80; } .ag-pst.late { background: var(--danger); }
.ag-pcov .ag-ptx { padding: 0 2px 1px; }
.ag-mth { display: flex; gap: 4px; margin: 2px 0 1px; min-width: 0; }
.ag-mt { flex: none; width: 30px; height: 36px; padding: 0; border-radius: 6px; overflow: hidden; position: relative; display: grid; place-items: center; border: 1.5px solid var(--info); background: var(--surface-subtle); color: var(--text-muted); cursor: pointer; }
.ag-mt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ag-mt.st-done { border-color: var(--success); } .ag-mt.st-late { border-color: var(--danger); }
.ag-mt.more { border-style: dashed; border-color: var(--border-strong); font-size: 11px; font-weight: 600; color: var(--text-2); cursor: default; }
.ag-mt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ag-cell .ag-pc.has-th { display: none; }
@media (max-width: 767px){ .ag-mth { display: none; } }
.ag-mt.st-today { border-color: var(--accent); }
@media (max-width: 767px){
  .ag-p.ag-pcov { flex-direction: row; align-items: center; gap: 10px; }
  .ag-p.ag-pcov .ag-pimg { flex: none; width: 64px; height: 80px; aspect-ratio: auto; }
  .ag-p.ag-pcov .ag-pst { font-size: 0; padding: 2px; gap: 0; } .ag-p.ag-pcov .ag-pst svg { margin: 0; }
}
/* 6.38 transição entre páginas (Material motion): outra área = fade through; abrir item = entra da direita; voltar = da esquerda */
.content.pg-in { overflow-x: clip; }
.content.pg-out > * { opacity: .35; transition: opacity 90ms var(--out); }
.content.pg-in[data-pg="thru"] > * { animation: pgThru 280ms cubic-bezier(.2, 0, 0, 1) backwards; }
.content.pg-in[data-pg="fwd"] > * { animation: pgFwd 300ms cubic-bezier(.2, 0, 0, 1) backwards; }
.content.pg-in[data-pg="back"] > * { animation: pgBack 300ms cubic-bezier(.2, 0, 0, 1) backwards; }
@keyframes pgThru { from { opacity: 0; transform: scale(.975) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pgFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes pgBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .content.pg-in > * { animation: none !important; } .content.pg-out > * { opacity: 1; } }

/* 6.38 Projetos: um embaixo do outro, por empresa; a "cara" do projeto */
.pj-groups { display: flex; flex-direction: column; gap: 18px; }
.pj-grp { min-width: 0; }
.pj-gh { display: flex; align-items: center; gap: 10px; padding: 10px 4px 8px; margin-bottom: 8px; border-bottom: 2px solid var(--border-strong); }
.pj-gh b { font-size: 16px; font-weight: 650; } .pj-gh .muted { font-size: 13px; } .pj-gh a { margin-left: auto; white-space: nowrap; }
.pj-gh .clogo, .pj-gh .logo { flex: none; }
.pj-rows { display: flex; flex-direction: column; gap: 8px; }
.pj-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); color: var(--text) !important; text-decoration: none !important; min-width: 0; transition: border-color 120ms ease, background 120ms ease, transform 160ms var(--spring); }
.pj-row:hover { border-color: var(--border-strong); background: var(--fill); }
.pj-row:active { transform: scale(.995); }
.pj-row.late { border-left: 3px solid var(--danger); }
.pj-row.done { opacity: .75; }
.pj-face { flex: none; position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface-muted)), var(--surface-muted)); color: var(--accent); }
.pj-face > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj-face .lt.mini { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; margin: 0; }
.pj-face.big { width: 72px; height: 72px; border-radius: 16px; }
.pj-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pj-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pj-t b { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pj-t .badge { flex: none; }
.pj-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--text-muted); }
.pj-m > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pj-m .late { color: var(--danger); font-weight: 550; }
.pj-own .avatar { width: 18px; height: 18px; font-size: 9px; }
.pj-bar { display: block; height: 4px; border-radius: 99px; background: var(--surface-muted); overflow: hidden; max-width: 420px; }
.pj-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); min-width: 0; transition: width 400ms var(--spring); }
.pj-row.done .pj-bar i { background: var(--success); }
.pj-n { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.pj-n b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pj-n span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.pj-head { align-items: center; }
.pj-head .pj-face.big { align-self: flex-start; margin-top: 2px; }
.pj-kick { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--accent); text-transform: uppercase; margin-bottom: 2px; }
@media (max-width: 767px){
  .pj-row { gap: 10px; padding: 10px; }
  .pj-face { width: 46px; height: 46px; border-radius: 10px; }
  .pj-face.big { width: 52px; height: 52px; }
  .pj-t b { font-size: 15px; } .pj-t .badge { display: none; }
  .pj-n b { font-size: 16px; } .pj-n span { display: none; }
  .pj-gh a { display: none; }
  .pj-head .ctx-actions { width: 100%; }
}
/* "Projeto X" nas demandas */
.pj-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0; padding: 2px 8px 2px 2px; border-radius: 99px; background: var(--surface-muted); color: var(--text-2); font-size: 12px; font-weight: 550; line-height: 18px; vertical-align: middle; }
.pj-chip > img { flex: none; width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.pj-chip > svg.i { flex: none; width: 18px; height: 18px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.pj-chip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
a.pj-link { text-decoration: none !important; display: inline-flex; max-width: 100%; margin-top: 6px; } a.pj-link:hover .pj-chip { color: var(--text); background: var(--fill-2, var(--surface-subtle)); }
.tcardk .pj-chip { margin: 2px 0 4px; }
.wk-b .pj-chip { margin: 3px 0 1px; align-self: flex-start; }
.wk-title + .pj-link { margin: -2px 0 8px; }

/* 6.38 Início: Próximas datas em destaque, verba do mês e feed do mês nos clientes, visão rápida no celular */
.hm-today { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-lg); background: var(--info-bg); color: var(--text); font-size: 14px; }
.hm-today > svg { color: var(--info); } .hm-today > b { margin-right: 2px; }
.hm-today a { display: inline-flex; align-items: center; gap: 6px; color: var(--text) !important; text-decoration: none !important; padding: 2px 10px 2px 4px; border-radius: 99px; background: var(--surface); }
.hm-today a span { font-weight: 650; font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 99px; background: var(--surface-muted); }
.hm-today a i { font-style: normal; color: var(--text-muted); }
.hm-dates { margin: 0 0 18px; }
.hm-dates .hm-sh { align-items: center; } .hm-dates .hm-sh h2 { display: inline-flex; align-items: center; gap: 8px; } .hm-dates .hm-sh h2 svg { color: var(--accent); }
.hm-dates .hm-sh a { margin-left: auto; }
.hm-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.hm-dc { display: flex; gap: 12px; align-items: stretch; padding: 12px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); color: var(--text) !important; text-decoration: none !important; min-width: 0; transition: border-color 120ms ease, transform 160ms var(--spring); }
.hm-dc:hover { border-color: var(--border-strong); } .hm-dc:active { transform: scale(.99); }
.hm-dd { flex: none; width: 54px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface-muted); line-height: 1; padding: 8px 0; }
.hm-dd b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-dd span { margin-top: 4px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.hm-dc.soon .hm-dd { background: color-mix(in srgb, var(--accent) 16%, var(--surface-muted)); } .hm-dc.soon .hm-dd span { color: var(--accent); }
.hm-dc.hot { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 70%); }
.hm-dc.hot .hm-dd { background: var(--accent); color: #0B0B0C; } .hm-dc.hot .hm-dd span { color: #0B0B0C; opacity: .8; }
.hm-db { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.hm-dw { font-size: 12px; font-weight: 650; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.hm-dc.soon .hm-dw, .hm-dc.hot .hm-dw { color: var(--accent); }
.hm-dt { font-size: 15.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-dp { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-dbar { display: block; height: 4px; margin-top: 4px; border-radius: 99px; background: var(--surface-muted); overflow: hidden; }
.hm-dbar i { display: block; height: 100%; min-width: 4px; border-radius: 99px; background: var(--success); }
.hm-main { grid-template-areas: "cl al"; grid-template-rows: auto; }
.hm-bud { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 6px; }
.hm-bud.none { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; color: var(--text-2); }
.hm-bud.none .hm-bst { margin-left: auto; color: var(--text-muted); }
.hm-budh { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); min-width: 0; }
.hm-budh b { margin-left: auto; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; } .hm-budh small { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.hm-budbar { position: relative; height: 8px; border-radius: 99px; background: var(--surface-muted); }
.hm-budbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--accent); min-width: 4px; }
.hm-budbar u { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text); opacity: .75; }
.hm-bud.st-ok .hm-budbar i, .hm-bud.st-early .hm-budbar i { background: var(--success); }
.hm-bud.st-over .hm-budbar i, .hm-bud.st-done .hm-budbar i { background: var(--danger); }
.hm-bud.st-under .hm-budbar i { background: var(--warning); }
.hm-budf { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-muted); }
.hm-bst { font-weight: 600; } .hm-bud.st-ok .hm-bst { color: var(--success); } .hm-bud.st-over .hm-bst, .hm-bud.st-done .hm-bst { color: var(--danger); } .hm-bud.st-under .hm-bst { color: var(--warning); }
.hm-feed { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.hm-feed.none { flex-direction: row; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.hm-feedh { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.hm-feedh b { margin-left: auto; color: var(--text-2); font-weight: 600; }
.hm-fth { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; }
.hm-ft { position: relative; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--surface-muted); display: grid; place-items: center; color: var(--text-muted); }
.hm-ft img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-ft > i { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; }
.hm-ft > i svg { width: 8px; height: 8px; }
.hm-ft.more { font-size: 12px; font-weight: 650; color: var(--text-2); }
@media (max-width: 1180px) { .hm-main { grid-template-areas: "al" "cl"; } }
@media (max-width: 767px) {
  .hm-dates { margin: 0 -16px 16px; }
  .hm-dates .hm-sh { padding: 0 16px; }
  .hm-dl { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 4px; scroll-padding: 0 16px; scrollbar-width: none; }
  .hm-dl::-webkit-scrollbar { display: none; }
  .hm-dc { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; }
  .hm-wrap .hm-main { grid-template-areas: "al" "cl"; }
  .hm-cc .hm-sp { height: 30px; }
  .hm-today { font-size: 13px; }
}
.hm-budh { flex-wrap: wrap; row-gap: 2px; } .hm-budh > span { white-space: nowrap; } .hm-budh b { margin-left: 0; flex-basis: 100%; font-size: 15px; }
.hm-budf { flex-wrap: wrap; row-gap: 2px; } .hm-budf > span { white-space: nowrap; }

/* 6.38 Resumo da agenda de postagem no visual do MarkFlow */
.pr-vis { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.pr-ks { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.pr-k { padding: 10px 12px; border-radius: 12px; background: var(--surface-muted); display: flex; flex-direction: column; gap: 2px; }
.pr-k b { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pr-k span { font-size: 12px; color: var(--text-muted); }
.pr-k.done b { color: var(--success); } .pr-k.ready b { color: var(--info); } .pr-k.wait b { color: var(--warning); } .pr-k.late b { color: var(--danger); }
.pr-bar { display: flex; gap: 2px; height: 6px; border-radius: 99px; overflow: hidden; background: var(--surface-muted); }
.pr-bar i { display: block; min-width: 4px; } .pr-bar .done { background: var(--success); } .pr-bar .ready { background: var(--info); } .pr-bar .wait { background: var(--warning); } .pr-bar .late { background: var(--danger); }
.pr-cl { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px 12px 6px; }
.pr-cl header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .pr-cl header b { font-size: 15px; } .pr-cl header .muted { margin-left: auto; }
.pr-rows { display: flex; flex-direction: column; }
.pr-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); min-width: 0; }
.pr-row:first-child { border-top: 0; }
.pr-d { flex: none; width: 34px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.pr-d b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; } .pr-d span { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }
.pr-th { flex: none; position: relative; width: 34px; height: 42px; border-radius: 6px; overflow: hidden; background: var(--surface-muted); display: grid; place-items: center; color: var(--text-muted); }
.pr-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pr-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pr-tx i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.pr-tx b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-st { flex: none; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-muted); white-space: nowrap; }
.pr-st.st-done { color: var(--success); background: var(--success-bg); } .pr-st.st-ready { color: var(--info); background: var(--info-bg); }
.pr-st.st-wait { color: var(--warning); background: var(--warning-bg); } .pr-st.st-late { color: var(--danger); background: var(--danger-bg); }
.pr-btns { margin-top: 14px; flex-wrap: wrap; }
.pr-txtw { margin-top: 10px; } .pr-txtw summary { cursor: pointer; font-size: 13px; color: var(--text-muted); padding: 6px 0; }
.pr-txtw .pr-txt { width: 100%; margin-top: 6px; }
@media (max-width: 767px){ .pr-ks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pr-st { font-size: 11px; padding: 2px 6px; } .pr-tx b { font-size: 13.5px; } }
/* 6.38 Cargos: nome do cargo cabe (quebra em até 2 linhas) em vez de "Ges..." */
@media (min-width: 900px){
  table.rm .rm-l { width: 30%; }
  .rm-h .rm-n { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; padding: 0 16px 0 2px; font-size: 12.5px; }
  .rm-h .rm-p { white-space: normal; line-height: 1.25; margin-top: 2px; }
  .rm-h .rm-m { right: 0; }
}

/* 6.40 Avisos: abre já no tamanho de uso (linhas cinza no lugar do "Carregando…"), sem a janela pular */
.attn-skel { padding: 10px 14px 14px; min-height: 236px; display: flex; flex-direction: column; gap: 14px; }
.attn-sk { display: flex; gap: 10px; align-items: center; }
.attn-sk > i { flex: none; width: 30px; height: 30px; border-radius: 10px; }
.attn-sk > span { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.attn-sk b { display: block; height: 11px; border-radius: 6px; } .attn-sk b + b { width: 62%; height: 9px; }
.notif-menu.is-loading { min-height: 290px; }
.notif-menu.is-loading.few, .attn-skel.few { min-height: 0; }   /* 13/10: aba com pouca coisa não abre grande e depois encolhe */
/* 6.40: a janelinha dos avisos entra sem ficar transparente (antes aparecia "fantasma" por cima da página no primeiro instante) */
.pop-menu.notif-menu:not([hidden]) { animation: notifIn 130ms cubic-bezier(.2, 0, 0, 1) both; }
@keyframes notifIn { from { opacity: .92; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .pop-menu.notif-menu:not([hidden]) { animation: none; } }

/* 6.40 Horário de postar: bem visível (Postar, janela da peça, Agenda, painel e demanda) */
.pt-b { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 5px; border-radius: 99px; background: var(--info-bg); color: var(--info); font-size: 11.5px; font-weight: 650; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; }
.pt-b b { font-weight: 700; } .pt-b i { font-style: normal; font-weight: 500; opacity: .85; }
.pt-b.st-soon { background: var(--warning-bg); color: var(--warning); } .pt-b.st-late { background: var(--danger-bg); color: var(--danger); }
.pt-b.st-done { background: var(--surface-muted); color: var(--text-muted); } .pt-b.none { background: var(--surface-muted); color: var(--text-muted); font-weight: 500; }
.pt-b.big { font-size: 15px; padding: 5px 12px 5px 9px; gap: 6px; border-radius: 10px; } .pt-b.big b { font-size: 17px; letter-spacing: -.01em; } .pt-b.big i { font-size: 13px; }
.pt-b.big.st-soon { box-shadow: inset 0 0 0 1.5px var(--warning); } .pt-b.big.st-late { box-shadow: inset 0 0 0 1.5px var(--danger); }
.pc-when { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.pd-side .pc-when { margin: 8px 0 10px; }
.ag-ptx .pt-b { align-self: flex-start; margin-bottom: 2px; } .ag-rx b .pt-b { margin-right: 2px; }
.ag-mt .ag-mtt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; font-style: normal; font-size: 9px; font-weight: 700; line-height: 12px; text-align: center; background: rgba(0,0,0,.62); color: #fff; }
.pt-f { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.pt-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; } .pt-l em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 1px 6px; border-radius: 99px; }
.pt-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pt-row select { width: auto; min-width: 128px; } .pt-row input[type=time] { width: 116px; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pt-chip { height: 32px; } .pt-chip small { color: var(--text-muted); font-size: 11px; }
.pt-h { display: block; }
.pt-meta .pt-f { margin: 0; } .pt-meta .pt-l { display: none; }
.pt-defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pt-def { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; } .pt-def input { font-size: 16px; }
@media (max-width: 767px){ .pt-defs { grid-template-columns: 1fr 1fr; } .pt-row select { min-width: 0; flex: 1; } }

/* 6.40 Guia de atendimento — editor (dentro do cliente) */
.gd-li .gd-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--gc, var(--accent)) 16%, transparent); color: var(--gc, var(--accent)); }
.gd-ed { display: flex; flex-direction: column; gap: 12px; max-width: 920px; }
.gd-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: sticky; top: calc(var(--top-h, 60px) + 4px); z-index: 5; background: var(--bg, var(--surface)); padding: 6px 0; }
.gd-b { padding: 0; overflow: visible; }
.gd-bh { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.gd-bh b { font-size: 14.5px; } .gd-bic { color: var(--accent); display: inline-flex; }
.gd-bh .icon-btn:first-of-type svg, .gd-iacts .icon-btn:nth-child(1) svg { transform: rotate(90deg); } .gd-bh .icon-btn:nth-of-type(2) svg, .gd-iacts .icon-btn:nth-child(2) svg { transform: rotate(90deg); }
.gd-bb { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.gd-head { flex-direction: row; gap: 12px; align-items: flex-end; } .gd-head .gd-f:first-child { flex: 1; } .gd-color input { width: 56px; height: 40px; padding: 2px; }
.gd-f { margin: 0 0 8px; } .gd-f textarea { resize: vertical; }
.gd-list { border: 1px dashed var(--border-strong); border-radius: 12px; padding: 10px; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.gd-lh { display: flex; align-items: center; gap: 8px; } .gd-lh b { font-size: 13px; }
.gd-item { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 10px; background: var(--surface-muted); }
.gd-ifs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 10px; }
.gd-ifs .gd-f:has(textarea) { grid-column: 1 / -1; }
.gd-iacts { display: flex; flex-direction: column; gap: 2px; }
.gd-add { align-self: flex-start; }
.gd-media .gd-mrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-media img, .gd-media video, .gd-mph { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--surface-muted); display: grid; place-items: center; color: var(--text-muted); }
.gd-addb { padding: 12px 14px; } .gd-addb b { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .gd-addl { display: flex; flex-wrap: wrap; gap: 6px; }
.copybox { display: flex; gap: 6px; } .copybox input { flex: 1; min-width: 0; }
@media (max-width: 767px){ .gd-ifs { grid-template-columns: 1fr; } .gd-top { top: calc(var(--top-h, 56px)); } }

/* 6.40 Guia de atendimento — a página da equipe (#/g/…): clara, no jeito do WhatsApp */
/* 6.40: verba do mês não sai da caixa (o texto quebra em vez de vazar) */
.hm-budf > span, .hm-budh > span { white-space: normal; overflow-wrap: anywhere; } .hm-budh b { overflow-wrap: anywhere; }
.hm-cm { min-width: 0; } .hm-cmv, .hm-cms { overflow-wrap: anywhere; }
/* 6.40 painel de trabalho (Produção): no computador grande fica ao lado (a lista encolhe, nada fica coberto), com margem e cantos
   iguais aos cartões; em tela menor abre por cima com fundo escuro (tocar fora fecha). "Completa" e trocar de tela fecham o painel. */
.wk-scrim { display: none; }
@media (min-width: 1180px){
  .wk-p { top: calc(var(--top-h) + var(--sat, 0px) + 12px); right: 12px; bottom: 12px; width: 440px; border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.22); }
  body.wk-on .content { padding-right: 468px; }
}
@media (min-width: 768px) and (max-width: 1179.98px){
  body.wk-on .wk-scrim { display: block; position: fixed; inset: 0; z-index: 69; background: var(--scrim, rgba(0,0,0,.42)); animation: fade 160ms ease both; }
  body.wk-on .content { padding-right: 0; }
}
.ag-ptx .pt-b { font-size: 10.5px; padding: 0 6px 0 4px; gap: 3px; max-width: 100%; overflow: hidden; } .ag-ptx .pt-b svg { width: 11px; height: 11px; flex: none; }
.plx-lr > * { min-width: 0; }

/* 6.41 — portal do cliente: para postar, arquivos e Cargos → Cliente (portal) */
.po-pl { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.po-day { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; color: var(--text); }
.po-day svg { color: var(--accent); }
.po-pc { box-shadow: none; border: 1px solid var(--border); background: var(--surface); }
.po-pst { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-weight: 600; background: var(--fill); color: var(--text-2); white-space: nowrap; }
.po-pst.st-ready { background: var(--success-bg, rgba(34,197,94,.13)); color: var(--success); }
.po-pst.st-done { background: var(--success-bg, rgba(34,197,94,.13)); color: var(--success); }
.po-pst.st-client { background: var(--info-bg); color: var(--info); }
.po-more { margin-top: 12px; }
.po-done { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.po-done > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
.po-done > summary::-webkit-details-marker { display: none; }
.po-done[open] > summary { margin-bottom: 10px; }
.po-files .card-h .chips { margin: 0; }
.po-fg { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.po-f { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.po-fth { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--surface-subtle); color: var(--text-muted); border: 1px solid var(--border); }
.po-fth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.po-f figcaption { display: flex; flex-direction: column; min-width: 0; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.po-f figcaption b { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-f figcaption span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-f .btn { justify-content: center; }
.po-askl { margin: 0 0 16px; }
.rp-card { margin-top: 18px; padding: 16px; }
.rp-card .card-h { flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.rp-who { margin: 0 0 12px; }
.rp-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px 16px; }
.rp-r { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-subtle); cursor: pointer; min-width: 0; }
.rp-r > .rp-t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }   /* 6.51: era .rp-t solto e virava flex nas TABELAS dos relatórios (ficavam estreitas) */
.rp-r > .rp-t b { font-size: 14px; font-weight: 600; }
.rp-r > .rp-t small { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.rp-r .sw { flex: none; }
@media (max-width: 640px) { .po-fg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .po-files .card-h .chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; } }
.po-sec .li .t { white-space: normal; overflow-wrap: anywhere; }
/* 6.41: 7 ou mais números na mesma faixa (Tráfego): 4 por linha, simétrico — antes ficavam 8 de 150 px e o valor em R$ saía cortado */
@media (min-width: 768px) { .kpis:has(> .kpi:nth-child(7)) > .kpi { flex: 1 1 calc(25% - 9px); } }
.kpis > .kpi { container-type: inline-size; }
@container (max-width: 150px) { .kpis > .kpi b, .kpis > .kpi:nth-child(n) b { font-size: 19px; } }

/* 6.41.4: a página nunca anda para o lado no celular ("tela solta" no iPhone). html recorta o que passar da largura (vai para a janela, não cria rolagem
   própria, então os cabeçalhos fixos continuam funcionando); toque duplo não dá zoom (pinça continua). */
html { overflow-x: hidden; touch-action: manipulation; }
body { overflow-x: clip; }
.skel-page .skel { max-width: 100%; }   /* a linha de 360 px do carregamento passava 1 px da tela no iPhone de 375 */
@media (max-width: 767px) { .lk-exp { font-size: 16px !important; height: 36px !important; } }   /* campo com letra menor que 16 px faz o iPhone dar zoom ao tocar */

/* ============================================================================
   6.42 — Guia de atendimento no padrão dos documentos da agência (timbrado da proposta)
   papel branco, faixa da cor da marca à esquerda, logo no topo e rodapé escuro com os contatos;
   conversas de exemplo dentro de um celular; controle de vendas por tema e estampa.
   ============================================================================ */
#pub.pdview:has(.gx) { background: #ebe9e5; }
.gx { --pc: #F5A623; --ink: #1b1b1b; --mut: #666; --line: #e6e6e6; --soft: #f6f5f3; --bub-in: #fff; --bub-out: #dcf8c6; --chat: #efeae2;
  min-height: 100vh; color: var(--ink); font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color-scheme: light; padding-bottom: 40px; }
.gx * { box-sizing: border-box; }
.gx-load { padding: 60px 20px; color: var(--mut); }
.gx-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.gx-bc2 { display: flex; align-items: center; gap: 8px; flex: none; font-size: 14px; } .gx-bc2 img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.gx-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; } .gx-nav::-webkit-scrollbar { display: none; }
.gx-nav a { flex: none; padding: 6px 12px; border-radius: 99px; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.gx-nav a:hover { background: color-mix(in srgb, var(--pc) 16%, #fff); }
.gx-doc { position: relative; width: 100%; max-width: 1040px; margin: 24px auto 0; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.08); overflow: hidden; }
.gx-lbar { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--pc); }
.gx-lh { display: flex; justify-content: center; align-items: center; height: 92px; border-bottom: 1px solid var(--line); margin: 0 40px; }
.gx-lh img { height: 42px; max-width: 220px; object-fit: contain; } .gx-lh b { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gx-body { padding: 8px 48px 32px 54px; }
.gx-lf { display: flex; align-items: stretch; min-height: 86px; background: #2b2b2b; color: #e8e8e8; padding-left: 54px; }
.gx-lft { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 0; font-size: 12.5px; color: #d9d9d9; }
.gx-lft b { color: var(--pc); font-size: 15px; margin-bottom: 2px; } .gx-lft span { display: flex; align-items: center; gap: 6px; } .gx-lft svg { opacity: .8; }
.gx-lfi { color: #9a9a9a; margin-top: 4px; font-size: 11.5px; }
.gx-lf > img { align-self: center; height: 52px; max-width: 150px; object-fit: contain; margin: 0 18px; } .gx-lfn { align-self: center; margin: 0 18px; color: #fff; font-weight: 800; }
.gx-lfc { width: 56px; background: var(--pc); flex: none; }
/* capa */
.gx-hero { padding: 28px 0 8px; }
.gx-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.gx-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--pc); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gx-no { font-size: 13px; color: var(--mut); }
.gx h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; color: #111; }
.gx-for { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.gx-for div { display: flex; flex-direction: column; min-width: 0; } .gx-for span { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: 3px; }
.gx-for b { font-size: 16px; overflow-wrap: anywhere; } .gx-for i { font-style: normal; color: var(--mut); font-size: 13px; }
.gx-cli { display: flex; align-items: center; gap: 8px; } .gx-cli img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.gx-lead { font-size: 17px; color: #333; margin: 0 0 18px; max-width: 760px; }
.gx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0 0 16px; }
.gx-facts div { padding: 12px 14px; border-radius: 12px; background: var(--soft); border-left: 3px solid var(--pc); min-width: 0; }
.gx-facts span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); } .gx-facts b { font-size: 15.5px; overflow-wrap: anywhere; }
.gx-wa { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 14px; } .gx-wa > span { flex: 1 1 auto; }
.gx-hi { margin: 0 0 14px; display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 16px; align-items: end; }
.gx-hi img { width: 100%; border-radius: 12px; cursor: zoom-in; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
/* seções numeradas (como os itens da proposta) */
.gx-s { padding: 30px 0 6px; border-top: 1px solid var(--line); margin-top: 22px; scroll-margin-top: 64px; }
.gx-sh { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.gx-n { font-size: 13px; font-weight: 800; color: var(--pc); letter-spacing: .06em; } .gx-sh h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #111; }
.gx-p { margin: 0 0 14px; color: #3a3a3a; max-width: 780px; } .gx-mut { color: var(--mut); margin: 0; font-size: 14px; }
.gx-lab { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin-bottom: 6px; }
.gx-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gx-btn { appearance: none; border: 0; border-radius: 10px; min-height: 44px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none; background: #1b1b1b; color: #fff; }
.gx-btn:hover { background: #000; } .gx-btn.alt { background: #fff; color: var(--ink); border: 1px solid #d6d6d6; } .gx-btn.alt:hover { border-color: #999; }
.gx-btn.ok { background: #0b7d43 !important; color: #fff !important; } .gx-btn:active { transform: scale(.98); } .gx-btn:disabled { opacity: .55; cursor: default; }
.gx-btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; flex: none; background: var(--pc); color: #111; }
.gx-tip { border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: 15px; border-left: 4px solid; background: var(--soft); }
.gx-tip.ok { border-color: #1fa855; background: #effaf3; } .gx-tip.info { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 9%, #fff); } .gx-tip.alerta { border-color: #d92d20; background: #fff2f1; }
.gx-tag2 { display: inline-block; margin: 0 8px 4px 0; padding: 2px 9px; border-radius: 99px; background: #fff; border: 1px solid var(--pc); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.gx-mk { background: #fff1a8; color: inherit; padding: 0 2px; border-radius: 3px; font-weight: 700; }
/* cards */
.gx-when { display: grid; gap: 8px; margin-bottom: 16px; }
.gx-wr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.4fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.gx-wq { font-size: 14.5px; } .gx-wc { display: flex; align-items: center; gap: 6px; color: var(--pc); } .gx-wc b { color: var(--ink); } .gx-wh { font-size: 14px; color: #444; }
.gx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gx-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; min-width: 0; }
.gx-card > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; cursor: zoom-in; background: var(--soft); }
.gx-ct { font-size: 16px; line-height: 1.3; }
.gx-ctx { padding: 10px 12px; border-radius: 10px; background: var(--soft); } .gx-ctx p { margin: 0; font-size: 14px; color: #333; }
.gx-ctx.ig { margin-top: auto; } .gx-igt { font-size: 14px; line-height: 1.45; max-height: 300px; overflow: auto; overflow-wrap: anywhere; }
.gx-card .gx-btn { flex: 1 1 100%; white-space: normal; text-align: center; }
/* conversas no celular */
.gx-tabs { display: none; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; } .gx-tabs::-webkit-scrollbar { display: none; }
.gx-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; max-width: 260px; }
.gx-tab span, .gx-tab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-tab i, .gx-pwh i { font-style: normal; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); font-size: 12.5px; font-weight: 800; flex: none; }
.gx-tab.on { border-color: #1b1b1b; background: #1b1b1b; color: #fff; } .gx-tab.on i { background: var(--pc); color: #111; }
.gx-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.gx-phones.n1 { grid-template-columns: minmax(0, 340px); } .gx-phones.n2 { grid-template-columns: repeat(2, minmax(0, 340px)); }
.gx-pw { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gx-pwh b { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.25; } .gx-pwh i { background: var(--pc); color: #111; }
.gx-pwh p { margin: 6px 0 0; font-size: 13.5px; color: #555; min-height: 40px; }
.gx-ph { width: 100%; max-width: 320px; margin: 0 auto; padding: 9px; border-radius: 46px; background: #111; box-shadow: 0 0 0 2px #2c2c2c inset, 0 14px 36px rgba(0,0,0,.22); }
.gx-scr { position: relative; display: flex; flex-direction: column; height: 620px; border-radius: 38px; overflow: hidden; background: var(--chat); }
.gx-sb { position: relative; display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 22px 0 26px; background: #f6f6f6; font-size: 13px; flex: none; }
.gx-isl { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 20px; background: #111; }
.gx-sbi { display: flex; align-items: flex-end; gap: 2px; height: 11px; } .gx-sbi i { width: 3px; background: #111; border-radius: 1px; } .gx-sbi i:nth-child(1) { height: 4px; } .gx-sbi i:nth-child(2) { height: 6px; } .gx-sbi i:nth-child(3) { height: 8px; } .gx-sbi i:nth-child(4) { height: 10px; }
.gx-sbi em { width: 22px; height: 11px; margin-left: 6px; border-radius: 3px; border: 1.5px solid #111; background: linear-gradient(90deg, #111 70%, transparent 70%) content-box; padding: 1px; }
.gx-chd { display: flex; align-items: center; gap: 8px; padding: 6px 12px 8px 6px; background: #f6f6f6; border-bottom: 1px solid #e1e1e1; flex: none; color: #0a7cff; }
.gx-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d7dce0; color: #fff; flex: none; }
.gx-cn { display: flex; flex-direction: column; line-height: 1.15; color: #111; } .gx-cn b { font-size: 15px; } .gx-cn i { font-style: normal; font-size: 11.5px; color: #777; }
.gx-msgs { flex: 1; overflow-y: auto; padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 6px; background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px); background-size: 14px 14px; overscroll-behavior: contain; }
.gx-b { position: relative; max-width: 84%; padding: 6px 9px 18px; border-radius: 10px; font-size: 14px; line-height: 1.38; box-shadow: 0 1px .5px rgba(11,20,26,.13); overflow-wrap: anywhere; }
.gx-b.in { align-self: flex-start; background: var(--bub-in); border-top-left-radius: 3px; }
.gx-b.out { align-self: flex-end; background: var(--bub-out); border-top-right-radius: 3px; }
.gx-b.im { padding: 3px 3px 18px; } .gx-b.im img { display: block; width: 190px; max-width: 100%; border-radius: 8px; cursor: zoom-in; } .gx-b.im .gx-bt { display: block; padding: 4px 6px 0; }
.gx-bl { display: block; font-size: 11px; font-weight: 700; color: #0b7d43; margin-bottom: 1px; }
.gx-bm { position: absolute; right: 8px; bottom: 3px; display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; color: #667781; } .gx-bm svg { color: #34b7f1; }
.gx-bc { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 0; padding: 3px 9px; border: 1px solid rgba(0,0,0,.12); border-radius: 99px; background: rgba(255,255,255,.75); font: inherit; font-size: 12px; font-weight: 700; color: #1b1b1b; cursor: pointer; }
.gx-bc.ok { background: #0b7d43; color: #fff; border-color: transparent; }
.gx-pn { align-self: center; display: inline-flex; align-items: flex-start; gap: 6px; max-width: 92%; padding: 6px 12px; border-radius: 10px; background: #fff7d6; color: #6b5300; font-size: 12.5px; font-weight: 700; text-align: center; box-shadow: 0 1px .5px rgba(11,20,26,.1); }
.gx-pn svg { flex: none; margin-top: 2px; }
.gx-inp { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: #f6f6f6; flex: none; } .gx-inp span { flex: 1; padding: 8px 14px; border-radius: 20px; background: #fff; border: 1px solid #e1e1e1; color: #999; font-size: 14px; }
.gx-inp i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0b7d43; color: #fff; }
/* vendas */
.gx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.gx-kpis > div { padding: 12px 14px; border-radius: 12px; background: var(--soft); min-width: 0; } .gx-kpis span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.gx-kpis b { display: block; font-size: 26px; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; } .gx-kpis i { font-style: normal; font-size: 12.5px; color: var(--mut); }
.gx-sale-go { align-self: center; background: var(--pc); color: #111; } .gx-sale-go:hover { background: color-mix(in srgb, var(--pc) 85%, #000); }
.gx-adv { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--pc) 45%, #fff); background: color-mix(in srgb, var(--pc) 8%, #fff); margin-bottom: 16px; font-size: 14.5px; } .gx-adv svg { flex: none; margin-top: 2px; color: var(--pc); }
.gx-sg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 8px; }
.gx-sgc { padding: 14px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; } .gx-sgc h3, .gx-h3 { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #333; } .gx-sgc h3 + * { margin-top: 0; } .gx-sgc h3:not(:first-child) { margin-top: 14px; }
.gx-h3 { margin-top: 18px; }
.gx-tr { display: grid; grid-template-columns: minmax(0, 110px) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; } .gx-trn { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gx-trv { font-size: 14px; color: #444; white-space: nowrap; } .gx-trv b { color: #111; font-size: 15.5px; }
.gx-meter { height: 8px; border-radius: 99px; background: #ececec; overflow: hidden; } .gx-meter.big { height: 12px; } .gx-meter i { display: block; height: 100%; border-radius: 99px; background: var(--pc); min-width: 0; }
.gx-sizes { display: flex; flex-wrap: wrap; gap: 6px; } .gx-sizes span { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--soft); font-size: 14px; font-variant-numeric: tabular-nums; } .gx-sizes b { font-size: 12.5px; color: var(--mut); }
.gx-cols { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; }
.gx-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.gx-col i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--pc) 70%, #fff); }
.gx-col.today i { background: var(--pc); } .gx-cv { font-size: 10.5px; color: #555; font-variant-numeric: tabular-nums; min-height: 14px; } .gx-cl { font-size: 10.5px; color: var(--mut); margin-top: 3px; } .gx-col.today .gx-cl { color: #111; font-weight: 800; }
.gx-prs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gx-pr { position: relative; display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-width: 0; }
.gx-crop { display: block; flex: none; width: 74px; aspect-ratio: 3 / 4; border-radius: 10px; background-color: var(--soft); background-repeat: no-repeat; background-size: cover; background-position: center; }
.gx-crop.c-l, .gx-crop.c-c, .gx-crop.c-r { background-size: 300% auto; } .gx-crop.c-l { background-position: 0% 54%; } .gx-crop.c-c { background-position: 50% 54%; } .gx-crop.c-r { background-position: 100% 54%; }
.gx-crop.none { display: grid; place-items: center; color: #aaa; }
.gx-prb { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; } .gx-prt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); } .gx-prb > b { font-size: 16px; line-height: 1.2; }
.gx-prn { font-size: 13.5px; color: #444; } .gx-prn b { font-size: 18px; color: #111; font-variant-numeric: tabular-nums; }
.gx-tag { align-self: flex-start; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; } .gx-tag.top { background: #e7f6ec; color: #0b7d43; } .gx-tag.slow { background: #fff1e6; color: #b54708; }
.gx-rank { position: absolute; top: 8px; right: 10px; font-size: 12px; font-weight: 800; color: var(--pc); }
.gx-rec { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; } .gx-rec summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 700; list-style: none; } .gx-rec summary::-webkit-details-marker { display: none; } .gx-rec summary span { color: var(--mut); font-weight: 600; }
.gx-recl { padding: 0 14px 10px; } .gx-rr { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; } .gx-rr span { flex: 1; min-width: 0; } .gx-rr i { font-style: normal; color: var(--mut); font-size: 12.5px; white-space: nowrap; }
.gx-undo { border: 1px solid #d6d6d6; background: #fff; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.gx-fab { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; align-items: center; gap: 6px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 99px; background: var(--pc); color: #111; font: inherit; font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; }
/* lançar venda (folha de baixo no celular, janela no computador) */
.gx-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.45); animation: gxIn .18s ease; }
@keyframes gxIn { from { opacity: 0; } to { opacity: 1; } }
.gx-shp { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.gx-shh { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 17px; } .gx-x { border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.gx-shb { padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; } .gx-shb .gx-lab { margin-top: 12px; } .gx-shb .gx-lab:first-child { margin-top: 0; }
.gx-pkt > i { display: block; font-style: normal; font-size: 13px; font-weight: 700; margin: 8px 0 6px; }
.gx-pk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gx-pko { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--ink); min-width: 0; }
.gx-pko .gx-crop { width: 100%; max-width: 96px; } .gx-pko.on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 10%, #fff); box-shadow: 0 0 0 2px var(--pc); }
.gx-chips { display: flex; flex-wrap: wrap; gap: 8px; } .gx-chip { min-width: 52px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); } .gx-chip.on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, #fff); }
.gx-qty { display: inline-flex; align-items: center; gap: 4px; border: 2px solid var(--line); border-radius: 14px; padding: 4px; } .gx-qty button { width: 48px; height: 44px; border: 0; border-radius: 10px; background: var(--soft); cursor: pointer; display: grid; place-items: center; color: var(--ink); } .gx-qty b { min-width: 52px; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.gx-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; } .gx-two label { display: block; min-width: 0; }
.gx-two input, .gx-two select { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid #d6d6d6; border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.gx-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff2f1; color: #b42318; font-size: 14px; font-weight: 600; }
.gx-shf { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); } .gx-shf .gx-btn { flex: 1; } .gx-shf #gxSave { background: var(--pc); color: #111; }
.gx-toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 70; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: #1b1b1b; color: #fff; font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.gx-toast.on { opacity: 1; transform: translate(-50%, 0); } .gx-toast.bad { background: #b42318; }
/* mensagens prontas, dúvidas, checklist, vídeo */
.gx-ready { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.gx-rd { padding: 12px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; min-width: 0; } .gx-rd .gx-acts { margin-top: auto; padding-top: 10px; }
.gx-rdt { padding: 10px 12px; border-radius: 10px; background: var(--bub-out); font-size: 15px; overflow-wrap: anywhere; }
.gx-faq { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; } .gx-faq summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.gx-faq summary::-webkit-details-marker { display: none; } .gx-faq[open] summary svg { transform: rotate(180deg); } .gx-faq summary svg { flex: none; transition: transform .15s; color: var(--mut); }
.gx-fa { padding: 0 16px 14px; } .gx-fa p { margin: 0 0 8px; }
.gx-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.gx-ck { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--soft); cursor: pointer; } .gx-ck input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #1fa855; flex: none; }
.gx-ck b { display: block; } .gx-ck i { font-style: normal; color: var(--mut); font-size: 14px; } .gx-ck:has(input:checked) { background: #effaf3; } .gx-ck:has(input:checked) b { text-decoration: line-through; color: var(--mut); }
.gx-reset { margin-top: 12px; }
.gx-video { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }
.gx-embed { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; } .gx-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gx-gone { text-align: center; padding: 60px 20px; color: var(--mut); } .gx-gone b { display: block; color: var(--ink); font-size: 18px; margin: 8px 0; }
/* telas menores: um celular por vez (abas), papel ocupa a tela toda */
@media (max-width: 1080px) {
  .gx-tabs { display: flex; } .gx-phones, .gx-phones.n2 { grid-template-columns: minmax(0, 1fr); } .gx-pw:not(.on) { display: none; } .gx-pwh b { display: none; }
  .gx-pw { max-width: 360px; margin: 0 auto; width: 100%; } .gx-pwh p { min-height: 0; text-align: center; }
}
@media (max-width: 760px) {
  .gx-doc { margin: 0; box-shadow: none; } .gx-lbar { width: 4px; } .gx-lh { height: 70px; margin: 0 16px; } .gx-lh img { height: 34px; }
  .gx-body { padding: 4px 16px 24px 20px; } .gx-lf { padding-left: 20px; flex-wrap: wrap; } .gx-lf > img { height: 40px; margin: 0 12px; } .gx-lfc { width: 18px; }
  .gx-bar .gx-btn.sm { display: none; } .gx-fab { display: inline-flex; }
  .gx-hi { grid-template-columns: minmax(0, 1fr); } .gx-wr { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gx-kpis .gx-sale-go { grid-column: 1 / -1; } .gx-kpis b { font-size: 22px; }
  .gx-sg { grid-template-columns: minmax(0, 1fr); } .gx-ready, .gx-check { grid-template-columns: minmax(0, 1fr); }
  .gx-sheet { align-items: flex-end; padding: 0; } .gx-shp { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .gx-scr { height: min(640px, 76vh); } .gx-s { scroll-margin-top: 56px; }
  .gx-two { grid-template-columns: minmax(0, 1fr); }
}
@media print { .gx-bar, .gx-fab, .gx-acts, .gx-bc, .gx-reset, .gx-sale-go, .gx-tabs, .gx-undo { display: none !important; } #pub.pdview:has(.gx) { background: #fff; } .gx-doc { box-shadow: none; margin: 0; } .gx-pw { display: flex !important; } .gx-scr { height: auto; } .gx-msgs { overflow: visible; } }

/* 6.42: editor do guia — painel de vendas */
.gd-sales { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface-subtle); }
.gd-sh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .gd-sh .grow { flex: 1; }
.gd-sl summary { cursor: pointer; margin-top: 6px; } .gd-sl .list { margin-top: 6px; }

/* 6.42: ajustes do guia — cabeçalhos das conversas alinhados (os celulares começam na mesma altura) e botões do card em duas colunas */
.gx-phones { grid-template-rows: auto auto; } .gx-pw { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 10px; }
.gx-card .gx-acts .gx-btn { flex: 1 1 calc(50% - 4px); } .gx-card .gx-acts .gx-btn[data-gp-copy] { flex-basis: 100%; }
.gx-b { font-weight: 400; }
.gx-hi { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: center; }
.gx-hic { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .gx-hic p { margin: 0; font-size: 15px; color: #333; }
@media (max-width: 1080px) { .gx-phones { grid-template-rows: none; } .gx-pw { grid-row: auto; grid-template-rows: none; display: flex; } }
@media (max-width: 760px) { .gx-hi { grid-template-columns: minmax(0, 1fr); } .gx-hi img { max-width: 320px; } }
.gx-tag { display: inline-block; flex: none; height: auto; line-height: 1.5; }
.gx-tr { grid-template-columns: minmax(0, 40%) minmax(0, 1fr) auto; }
.gx-tab span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gx-tab { max-width: 300px; }

/* 6.43: arquivos que o cliente manda */
.po-upf { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; } .po-upf input[type=text] { flex: 1 1 240px; min-width: 0; }
.po-upl .li { gap: 10px; } .po-upt { flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--surface-subtle); display: grid; place-items: center; } .po-upt img { width: 100%; height: 100%; object-fit: cover; }
.up-card { margin-bottom: 14px; } .up-card.wait { border-color: var(--warning); }
.up-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.up-it { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.up-th { flex: none; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--surface-subtle); display: grid; place-items: center; } .up-th img { width: 100%; height: 100%; object-fit: cover; }
.up-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; } .up-b > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .up-note { white-space: pre-wrap; }
.up-b .btns { margin-top: 4px; flex-wrap: wrap; } .up-old { margin-top: 10px; } .up-old summary { cursor: pointer; }

/* 6.43: editor do guia mais simples — blocos fechados com resumo; preencher com o ChatGPT */
.gd-b .gd-bh { gap: 6px; } .gd-tog { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gd-tog > svg:last-child { flex: none; color: var(--text-muted); transition: transform .15s; } .gd-b.open .gd-tog > svg:last-child { transform: rotate(180deg); }
.gd-bt { display: flex; flex-direction: column; min-width: 0; } .gd-bt i { font-style: normal; font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-ai-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }

/* 6.44: guia conectado — quem está editando, guia no projeto, vendas no portal, código da equipe */
.gd-who { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--info-bg); color: var(--info); font-weight: 600; }
.pj-guides .pjg-g { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); } .pj-guides .pjg-g:first-of-type { border-top: 0; }
.pj-guides .pjg-g .grow { display: flex; flex-direction: column; gap: 2px; min-width: 220px; flex: 1; } .pj-guides .pjg-g .t { font-weight: 650; }
.po-gsr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 0; font-size: 14px; } .po-gsr .po-bar { margin: 0; max-width: none; } .po-gsr span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-pin { display: block; margin: 12px 0 0; } .gx-pin input { width: 100%; max-width: 240px; height: 46px; padding: 0 12px; border: 1.5px solid #d6d6d6; border-radius: 12px; font: inherit; font-size: 16px; letter-spacing: .3em; }
.gx-td { font-style: normal; font-size: 12px; color: #0b7d43; font-weight: 700; }

/* ============================================================================
   6.45 — central do Instagram: carteira (totais, atenção, comparativo, melhores posts) e o perfil em partes
   ============================================================================ */
.igo-kpis { margin-bottom: 14px; }
.igo-al { margin: 0 0 14px; }
.igo-al h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.igo-al h3 svg { color: var(--warning); }
.igo-al ul { margin-top: 10px; }
.igo-al > .btn { margin-top: 8px; }
.igo-al.ok { padding: 12px 16px; }
.ig-in a { font-weight: 650; margin-left: 4px; white-space: nowrap; }
.igo-list, .igo-top { margin-top: 14px; }
.igo-list .card-h, .igo-top .card-h { flex-wrap: wrap; gap: 8px; }
.igo-list .ig-pv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.igo-list .ig-pv select { height: 36px; width: auto; }
.igo-tw { overflow-x: auto; }
@media (min-width: 768px) { .igo-t { min-width: 1000px; } }
.igo-t th { white-space: nowrap; }
.igo-t td { font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .igo-t td { white-space: nowrap; } .igo-t tbody tr { cursor: pointer; } .igo-t tbody tr:hover td { background: var(--surface-subtle); } }
.igo-th { background: none; border: 0; padding: 0; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.igo-th:hover, .igo-th.on { color: var(--text); }
.igo-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.igo-who b { font-size: 14px; color: var(--text); }
.igo-t a.ig-row { text-decoration: none; }
.igo-g { font-weight: 650; } .igo-g.up { color: var(--success); } .igo-g.down { color: var(--danger); }
.igo-low { color: var(--warning); display: inline-flex; align-items: center; gap: 3px; font-weight: 650; }
.igo-dv { display: inline-flex; align-items: center; gap: 3px; font-weight: 650; }
.igo-dv.ok { color: var(--success); } .igo-dv.low { color: var(--warning); }
.igo-err { display: flex; align-items: center; gap: 3px; margin-top: 3px; }
.igp-who { display: flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12px; font-weight: 650; color: var(--text) !important; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 2px; }
.igp-who:hover { text-decoration: underline !important; }
.ig-pic.xs { width: 18px; height: 18px; }
.ig-pic.xs svg { width: 10px; height: 10px; }
.ig-secs { display: flex; width: max-content; max-width: 100%; overflow-x: auto; margin: 10px 0 14px; scrollbar-width: none; }
.ig-secs::-webkit-scrollbar { display: none; }
.ig-secs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.ig-secs button i { font-style: normal; font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }
.ig-sec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.ig-dvl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 12px 0 0; color: var(--text-muted); }
.ig-dvl svg { color: var(--text-muted); }
.ig-dvl b { color: var(--text); font-variant-numeric: tabular-nums; } .ig-dvl b.ok { color: var(--success); }
.linkish { background: none; border: 0; padding: 0; height: auto; color: var(--p-700); font: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ig-head-e { justify-content: flex-end; }
.ig-kpi b small { margin-left: 5px; }
@media (min-width: 768px) { .ig-hub .ig-tools select[data-ighub] { max-width: 300px; } }
.igo-t th, .igo-t td { padding-left: 8px !important; padding-right: 8px !important; }
.igo-t th:first-child, .igo-t td:first-child { padding-left: 14px !important; }
@media (min-width: 768px) { .igo-t { min-width: 940px; } }
@media (min-width: 768px) { .igo-t .igo-who { max-width: 170px; } .igo-t .igo-who b, .igo-t .igo-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.ig-cli { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-weight: 600; color: var(--text) !important; }
.ig-head .grow { display: flex; flex-direction: column; align-items: flex-start; }
@media (max-width: 767px) { .ig-secs button { padding: 0 10px; } .ig-secs .seg-n { display: none; } }
/* 6.46: parte das visualizações que veio de anúncio */
.igo-adp { display: block; font-size: 11.5px; line-height: 1.3; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.igo-t sup, .ig-k sup { font-size: 10px; color: var(--text-muted); margin-left: 1px; }
/* 6.47: prévia de link carregando: brilho suave por cima do ícone (some quando a imagem chega ou desiste) */
.lt.lt-load::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--surface) 55%, transparent) 50%, transparent 80%); background-size: 220% 100%; animation: ltShine 1.3s ease-in-out infinite; }
@keyframes ltShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .lt.lt-load::after { animation: none; opacity: .5; } }
/* 6.47: faixa sólida atrás do relógio do iPhone (app instalado). O iOS 26 desenha um desfoque no topo quando o que está ali não é
   uma faixa fixa e opaca — com o menu "Mais" aberto, o topo era o menu + o fundo escuro, e o desfoque aparecia por cima. */
#sbar { position: fixed; top: 0; left: 0; right: 0; height: var(--sat); z-index: 150; background: var(--canvas); pointer-events: none; }
:root[data-theme="light"] #sbar { background: #0B0B0C; }
@media print { #sbar { display: none; } }

/* ============================================================================
   6.49 — Portal do cliente de cara nova: topo com a marca, "precisa de você", as etapas do mês,
   próximas postagens, resultados, o que andou, projetos e entregas. Abas para não virar um rolo no celular.
   ============================================================================ */
.po-hero { position: relative; overflow: hidden; margin: 0 0 14px; padding: 22px 24px 18px; border-radius: var(--r-xl); border: 1px solid var(--border);
  background: radial-gradient(120% 170% at 100% 0%, var(--p-100) 0%, transparent 55%), var(--surface); }
.po-hero-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
.po-hero .clogo { width: 60px; height: 60px; flex: none; border-radius: 16px; font-size: 18px; }
.po-hero-t { flex: 1 1 auto; min-width: 0; }
.po-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-hero h1 { margin: 2px 0 4px; font-size: 32px; line-height: 38px; overflow-wrap: anywhere; }
.po-hero-s { margin: 0; font-size: 14px; color: var(--text-2); }
.po-hero-s > span { display: inline-flex; align-items: center; gap: 6px; }
.po-ok { color: var(--success); font-weight: 600; }
.po-pend { color: var(--warning); font-weight: 650; }
.po-hero .po-ask { flex: none; align-self: flex-start; }
.po-hero-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.po-mon { display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 0 3px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); }
.po-mon b { min-width: 150px; text-align: center; font-size: 14px; font-weight: 650; white-space: nowrap; }
.po-mon .icon-btn { width: 32px; height: 32px; }
.po-mon .icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.po-hero .po-cl { margin: 0; }
.po-tabs { margin: 0 0 14px; }
.po-tabs button { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; }
.po-tabs button svg { opacity: .8; }
.po-tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.po-tabs .on .po-tdot { background: var(--accent); }
.po-tab > .po-sec:last-child, .po-tab > .po-grid:last-child { margin-bottom: 0; }

/* precisa de você */
.po-need { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--p-50); border: 1px solid var(--p-200); }
.po-need-i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.po-need-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.po-need-b b { font-size: 15px; line-height: 1.3; }
.po-need-b span { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.po-need .btn { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.po-need.soft { background: var(--surface); border-color: var(--border); }
.po-need.soft .po-need-i { background: var(--warning-bg); color: var(--warning); }

/* as etapas do mês */
.po-flow .card-h > .small { margin-left: auto; text-align: right; }
.po-flow-s { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.po-flow-s b { color: var(--text); }
.po-prog { display: flex; gap: 2px; height: 10px; border-radius: 99px; background: var(--fill-2); overflow: hidden; margin: 0 0 16px; }
.po-prog i { display: block; height: 100%; }
.po-prog .p1 { background: var(--success); }
.po-prog .p2 { background: var(--success); opacity: .4; }
.po-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.po-step { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; border-radius: 14px; background: var(--surface-subtle); border: 1px solid var(--border); min-width: 0; }
.po-step:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 26px; width: 7px; height: 7px; border-top: 2px solid var(--text-disabled); border-right: 2px solid var(--text-disabled); transform: rotate(45deg); z-index: 1; }
.po-step-i { order: -2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; margin-bottom: 6px; background: var(--fill-2); color: var(--text-2); }
.po-step b { order: -1; font-size: 28px; line-height: 1.1; font-weight: 650; font-variant-numeric: tabular-nums; }
.po-step-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.po-step-l { font-size: 13px; font-weight: 650; }
.po-step-d { font-size: 12px; line-height: 1.35; color: var(--text-muted); }
.po-step.st-production .po-step-i { background: var(--info-bg); color: var(--info); }
.po-step.st-client .po-step-i { background: var(--violet-bg); color: var(--violet); }
.po-step.st-ready .po-step-i { background: var(--p-50); color: var(--p-700); }
.po-step.st-posted .po-step-i { background: var(--success-bg); color: var(--success); }
.po-step.st-posted:not(.zero) { border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.po-step.zero b { color: var(--text-disabled); }
.po-step.zero .po-step-i { background: var(--fill); color: var(--text-disabled); }
.po-flow-n { margin: 10px 0 0; }

/* duas colunas no computador */
.po-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 14px; margin-bottom: 14px; }
.po-grid > .po-sec { margin-bottom: 0; }
.po-sec .card-h .btn svg:last-child { margin-left: 2px; }

/* próximas postagens */
.po-nl { display: flex; flex-direction: column; gap: 2px; }
.po-nr { display: flex; align-items: center; gap: 12px; width: calc(100% + 12px); margin: 0 -6px; padding: 7px 6px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; min-width: 0; }
.po-nr:hover { background: var(--fill); }
.po-nth { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 58px; border-radius: 10px; overflow: hidden; background: var(--surface-muted); color: var(--text-muted); }
.po-nth img { width: 100%; height: 100%; object-fit: cover; }
.po-nth .po-nothumb { width: 100%; height: 100%; }
.po-nb { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.po-nb b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-nb > span { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-nr .po-pst { flex: none; font-size: 11px; }
.po-pst.st-production { background: var(--fill-2); color: var(--text-2); }
.po-k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }

/* o que andou */
.po-tl { list-style: none; margin: 0; padding: 0; }
.po-tl li { position: relative; display: flex; gap: 12px; padding: 0 0 14px; min-width: 0; }
.po-tl li:last-child { padding-bottom: 0; }
.po-tl li:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--border-strong); opacity: .6; }
.po-tl-dot { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fill-2); color: var(--text-2); }
.po-tl .k-posted .po-tl-dot { background: var(--success-bg); color: var(--success); }
.po-tl .k-ready .po-tl-dot { background: var(--p-50); color: var(--p-700); }
.po-tl .k-client .po-tl-dot { background: var(--violet-bg); color: var(--violet); }
.po-tl .k-plan .po-tl-dot, .po-tl .k-file .po-tl-dot { background: var(--info-bg); color: var(--info); }
.po-tl-b { flex: 1; min-width: 0; padding-top: 5px; display: flex; flex-direction: column; gap: 2px; }
.po-tl-b b { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.po-tl-b > span { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }

/* projetos */
.po-pj { display: flex; flex-direction: column; gap: 16px; }
.po-pj-i { min-width: 0; }
.po-pj-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.po-pj-t b { font-size: 14px; overflow-wrap: anywhere; }
.po-pj-t span { flex: none; font-weight: 650; font-variant-numeric: tabular-nums; }
.po-pj-m { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.po-pj .po-bar { max-width: none; height: 8px; margin-top: 8px; background: var(--fill-2); }

/* últimas entregas */
.po-dg { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.po-dth { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface-muted); }
.po-dth img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--spring); }
.po-dth:hover img { transform: scale(1.04); }
.po-dth .po-nothumb { width: 100%; height: 100%; }
.po-dcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 7px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* planejamento */
.po-isum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.po-isum-i { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; background: var(--fill); color: var(--text-2); }
.po-isum-i.st-production { background: var(--info-bg); color: var(--info); }
.po-isum-i.st-client { background: var(--violet-bg); color: var(--violet); }
.po-isum-i.st-ready { background: var(--p-50); color: var(--p-700); }
.po-isum-i.st-posted { background: var(--success-bg); color: var(--success); }
.po-ist.po-i-client { background: var(--violet-bg); color: var(--violet); }
.po-dec-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--p-50); border: 1px solid var(--p-200); font-size: 14px; }
.po-dec-top > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.po-dec-top > span:first-child svg { flex: none; color: var(--p-700); }
.po-dec-b { display: inline-flex; gap: 8px; }

/* agenda */
.po-leg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.po-leg .po-pst { font-size: 12px; }
.po-wk { margin: 16px 0 10px; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.po-wk .muted { font-weight: 500; }

/* resultados */
.po-res-h { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.po-rig .po-k2, .po-rad .po-k2 { margin-bottom: 4px; }
.po-topc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.po-topc figure { margin: 0; min-width: 0; }
.po-tth { display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface-muted); }
.po-tth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.po-tth .po-nothumb { width: 100%; height: 100%; }
.po-topc figcaption { margin-top: 6px; font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.po-topc figcaption b { color: var(--text); font-size: 14px; }
.po-topc figcaption span { display: block; }
.po-rig .po-h4 { margin-top: 14px; }
.po-sales { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; }

/* contrato e vazio */
.po-ct-b { display: inline-flex; gap: 6px; flex: none; }
.po-empty { display: flex; gap: 12px; align-items: flex-start; }
.po-empty > svg { flex: none; margin-top: 2px; color: var(--accent); }
.po-empty b { display: block; margin-bottom: 2px; }
.po-empty p { margin: 0; }

@media (max-width: 1100px) and (min-width: 768px) {
  .po-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .po-step-d { display: none; }
}
@media (max-width: 767px) {
  .po-hero { padding: 18px 16px 14px; border-radius: var(--r-lg); }
  .po-hero .clogo { width: 48px; height: 48px; border-radius: 13px; }
  .po-hero h1 { font-size: 26px; line-height: 31px; }
  .po-hero-row { align-items: flex-start; flex-wrap: wrap; }
  .po-hero .po-ask { order: 3; width: 100%; justify-content: center; margin-top: 4px; }
  .po-mon { flex: 1 1 auto; justify-content: space-between; }
  .po-mon b { min-width: 0; }
  .po-hero .po-cl { width: 100%; }
  .po-tabs { width: auto; margin-left: -2px; margin-right: -2px; }
  .po-tabs button { padding: 0 12px; }
  .po-need { flex-wrap: wrap; padding: 14px; }
  .po-need .btn { width: 100%; justify-content: center; }
  .po-steps { grid-template-columns: 1fr; gap: 0; }
  .po-step { flex-direction: row; align-items: center; gap: 12px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .po-step:last-child { border-bottom: 0; padding-bottom: 0; }
  .po-step::after { display: none; }
  .po-step-i { margin: 0; flex: none; }
  .po-step-tx { flex: 1 1 auto; order: -1; }
  .po-step b { order: 0; font-size: 22px; min-width: 32px; text-align: right; }
  .po-k2 { gap: 8px; }
  .po-dg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .po-dth:nth-child(n+7) { display: none; }
  .po-topc { gap: 6px; }
  .po-dec-b { width: 100%; } .po-dec-b .btn { flex: 1 1 auto; justify-content: center; }
  .po-ct-i { flex-wrap: wrap; }
  .po-ct-b { width: 100%; }
  .po-flow .card-h > .small { width: 100%; text-align: left; margin-left: 0; }
}
@media (max-width: 640px) {
  .po-fg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .po-f { gap: 4px; }
  .po-f figcaption span { display: none; }
  .po-f figcaption b { font-size: 12px; }
  .po-f .btn { height: 30px; padding: 0 6px; font-size: 12px; gap: 4px; }
}
.po-pst.st-planned { background: transparent; color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* 6.49 — gráfico do Instagram: tocar no dia mostra o que foi ao ar */
.chart .hit.pick { cursor: pointer; }
.chart .hit.pick:hover .bar, .chart .hit.pick:focus-visible .bar { filter: brightness(1.15); }
#chartTip .h { margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--p-700); }
.igd-ks { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 16px; }
.igd-k { padding: 10px 12px; border-radius: 12px; background: var(--surface-subtle); border: 1px solid var(--border); min-width: 0; }
.igd-k > span { display: block; font-size: 12px; color: var(--text-muted); }
.igd-k b { display: block; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.igd-k i { display: block; font-style: normal; font-size: 12px; color: var(--text-muted); }
.igd-k i .up { color: var(--success); font-weight: 600; } .igd-k i .down { color: var(--warning); font-weight: 600; }
.igd-l { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.igd-p, .igd-s { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: inherit; text-decoration: none !important; min-width: 0; }
a.igd-p:hover { background: var(--fill); }
.igd-p > svg { flex: none; color: var(--text-muted); }
.igd-th { flex: none; display: grid; place-items: center; width: 48px; height: 60px; border-radius: 9px; overflow: hidden; background: var(--surface-muted); color: var(--text-muted); }
.igd-s .igd-th { width: 38px; height: 62px; }
.igd-th img { width: 100%; height: 100%; object-fit: cover; }
.igd-pb { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.igd-pb > b { font-size: 13px; }
.igd-cap { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igd-n { font-size: 12px; color: var(--text-muted); }
.igd-n b { color: var(--text); font-weight: 650; }
.igd-h { margin-top: 6px; flex-wrap: wrap; }
.igd-none { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-subtle); }
.igd-note { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; }
.igd-note svg { flex: none; margin-top: 2px; }

/* ============================================================================
   6.49 — Plano de tráfego simples: verba e ritmo → onde vai a verba → quanto custa cada resultado
   ============================================================================ */
.ap-pace, .ap-plan, .ap-freed, .ap-hist { margin-bottom: 14px; }
.ap-pace .card-h, .ap-plan .card-h, .ap-hist .card-h { flex-wrap: wrap; gap: 8px; }
.ap-pace .card-h .badge { margin-right: auto; }
.ap-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 12px; }
.ap-big > b { font-size: 34px; line-height: 1.1; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ap-big > span { font-size: 16px; color: var(--text-2); }
.ap-big > small { flex-basis: 100%; font-size: 13px; color: var(--text-muted); }
.ap-pbar { position: relative; height: 12px; border-radius: 99px; background: var(--fill-2); margin: 0 0 6px; }
.ap-pbar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); max-width: 100%; }
.ap-pbar.over > i { background: var(--warning); }
.ap-ideal { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.ap-pleg { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.ap-ideal-k { display: inline-block; width: 3px; height: 12px; border-radius: 2px; background: var(--text); }
.ap-say { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.ap-say b { color: var(--text); }
.ap-done { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.ap-done-l { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.ap-dn { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--surface-subtle); min-width: 0; }
.ap-dn b { font-size: 22px; line-height: 1.15; font-weight: 650; font-variant-numeric: tabular-nums; }
.ap-dn span { font-size: 13px; color: var(--text-2); }
.ap-dn i { font-style: normal; font-size: 12px; color: var(--text-muted); }

.ap-split { display: flex; gap: 2px; height: 10px; border-radius: 99px; overflow: hidden; background: var(--fill-2); margin: 0 0 14px; }
.ap-split i { display: block; height: 100%; }
.ap-lines2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.ap-l2 { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); border-left: 4px solid var(--c); background: var(--surface-subtle); min-width: 0; }
.ap-l2-h { display: flex; align-items: flex-start; gap: 8px; }
.ap-l2-h h4 { margin: 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.ap-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--c); }
.ap-l2-say { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; font-size: 18px; }
.ap-l2-say svg { color: var(--text-muted); }
.ap-l2-why { margin: 0; }
.ap-l2-prog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.ap-pr { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 8px; min-width: 0; }
.ap-pr > span { font-size: 12px; color: var(--text-muted); }
.ap-pr > b { justify-self: end; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-pr > b small { font-weight: 500; font-size: 12px; color: var(--text-muted); }
.ap-pr .ap-bar { grid-column: 1 / -1; height: 6px; margin: 4px 0 0; background: var(--fill-2); }
.ap-pc { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--text-muted); }
.ap-pc b { color: var(--text); font-variant-numeric: tabular-nums; }
.ap-l2 .ap-det { margin-top: 4px; }
.ap-l2 .ap-det > summary svg:last-child { margin-left: auto; transition: transform .2s; }
.ap-l2 .ap-det[open] > summary svg:last-child { transform: rotate(180deg); }
.ap-det-n { min-width: 0; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-l2 .ap-det > summary > span:nth-child(2) { font-weight: 600; flex: none; }
.ap-l2 .ap-how { margin: 8px 0; }
.ap-l2 .ap-camps { margin-bottom: 8px; }
.ap-l2-notes { margin-top: 8px; }

.ap-steps { list-style: none; counter-reset: aps; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ap-steps li { counter-increment: aps; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 12px 46px; border-radius: 12px; background: var(--surface-subtle); min-width: 0; }
.ap-steps li::before { content: counter(aps); position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fill-2); font-size: 12px; font-weight: 700; }
.ap-steps li.ok::before { content: "✓"; background: var(--success-bg); color: var(--success); }
.ap-steps b { font-size: 14px; }
.ap-steps span { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.ap-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.ap-pick-tpl { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; min-width: 0; }
.ap-pick-tpl:hover { border-color: var(--accent); background: var(--p-50); }
.ap-pick-tpl > svg { flex: none; color: var(--accent); }
.ap-pick-tpl span { display: flex; flex-direction: column; min-width: 0; }
.ap-pick-tpl b { font-size: 14px; } .ap-pick-tpl small { font-size: 12px; color: var(--text-muted); }

.ap-freed > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.ap-freed > summary::-webkit-details-marker { display: none; }
.ap-freed > summary > svg:last-child { margin-left: 4px; transition: transform .2s; }
.ap-freed[open] > summary { margin-bottom: 10px; }
.ap-freed[open] > summary > svg:last-child { transform: rotate(180deg); }
.ap-sum-t { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; margin-right: auto; }

.ap-hist .card-h > .small { margin-left: auto; }
.ap-bench { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.ap-bn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface-subtle); min-width: 0; }
.ap-bn > span { font-size: 13px; color: var(--text-2); }
.ap-bn > b { font-size: 22px; line-height: 1.15; font-weight: 650; font-variant-numeric: tabular-nums; }
.ap-bn > small { font-size: 12px; color: var(--text-muted); }
.ap-bn .badge { margin-top: 4px; }
.ap-more { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.ap-more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; }
.ap-more > summary::-webkit-details-marker { display: none; }
.ap-more[open] > summary svg { transform: rotate(180deg); }
.ap-more[open] > summary { margin-bottom: 10px; }
@media (max-width: 767px) {
  .ap-big > b { font-size: 28px; }
  .ap-steps { grid-template-columns: 1fr; }
  .ap-l2-prog { grid-template-columns: 1fr; }
  .ap-hist .card-h > .small { margin-left: 0; width: 100%; }
}

/* 6.49 — Stories mais fáceis de mostrar */
.igs-say { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.igs-say b { color: var(--text); }
.igs-hls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; margin: 0 0 14px; }
.igs-hl { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-subtle); min-width: 0; }
.igs-hl.up { border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.igs-hl-i { flex: none; display: grid; place-items: center; width: 46px; height: 74px; border-radius: 9px; overflow: hidden; background: var(--surface-muted); color: var(--text-muted); }
.igs-hl-i img { width: 100%; height: 100%; object-fit: cover; }
.igs-hl-b { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.igs-hl-b small { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.igs-hl.up small { color: var(--success); } .igs-hl.down small { color: var(--warning); }
.igs-hl-b b { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.igs-hl-b b span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.igs-hl-b i { font-style: normal; font-size: 12px; color: var(--text-muted); }
.igs-how { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.igs-how > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.igs-how > summary::-webkit-details-marker { display: none; }
.igs-how[open] > summary { margin-bottom: 8px; }
.igs-how .igs-leg { margin: 0; }
.igsa { margin-top: 14px; }

/* 6.49 — Produção mais compacta: cartão não estica até a altura do vizinho; peça ainda sem imagem vira faixa baixa */
.wk-grid { align-items: start; }
/* 6.50: só duas variantes de cartão — com capa (quando há mídia) e sem capa (faixa baixa com o ícone do tipo, igual à tarefa) */
.wk-t.np .wk-m { aspect-ratio: auto; height: 44px; } .wk-t.np .wk-ph { justify-content: start; padding-left: 10px; } .wk-t.np .wk-ph svg { width: 18px; height: 18px; opacity: 1; }
/* 6.49 — cartão de aprovação: configurações recolhidas */
.pcard-seen { align-self: center; margin-left: 4px; }
.pcard-cfg { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.pcard-cfg > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pcard-cfg > summary::-webkit-details-marker { display: none; }
/* 6.49: "sem prazo" na lista de atividades do mês sem gritar (a lista inteira ficava laranja) */
.plx-act .pl-nodue { font-weight: 500; color: var(--text-muted); font-style: italic; }
/* 6.49.6: linha da lista do Plano — nome + (etapa, quem, prazo). Na coluna estreita e no celular, os detalhes vão para baixo do nome
   (antes o nome ficava com 3 letras: "Deg…") */
.plx-tx { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.pl-col .plx-tx { flex-direction: column; align-items: stretch; gap: 4px; }
.pl-col .plx-lr .plx-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pl-col .plx-lr .plx-x:empty { display: none; }
@media (max-width: 767px) {
  .plx-tx { flex-direction: column; align-items: stretch; gap: 4px; }
  .plx-lr .plx-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .plx-lr .plx-x:empty { display: none; }
}
.pl-filters .chip .plx-sq { margin-right: 6px; vertical-align: -1px; }
.pl-filters .chip.on .plx-sq { box-shadow: 0 0 0 1.5px var(--solid-ink); }
.plx-leg-f { padding-left: 0; border-left: 0; }
.plx-lr .plx-tx .plx-x { margin-left: 0; }
.rp-mnav .rp-mnav-off { display: inline-flex; align-items: center; padding: 6px 8px; opacity: .3; }
.pd-imgs video { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; background: #000; }
.ig-ins-more { margin-top: 8px; }
.ig-ins-more > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--p-700); list-style: none; padding: 4px 0; }
.ig-ins-more > summary::-webkit-details-marker { display: none; }
.ig-ins-more[open] > summary { color: var(--text-muted); }
/* 6.49.7: links enviados (aba Relatórios do cliente) */
.rl-acts { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.rl-off { margin-top: 10px; }
.rl-off > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 6px 0; }
.rl-off > summary::-webkit-details-marker { display: none; }
.rl-off[open] > summary .i { transform: rotate(90deg); }
@media (max-width: 767px) {
  .rl-li { flex-wrap: wrap; row-gap: 8px; }
  .rl-li > .grow { flex: 1 1 100%; min-width: 0; }
  .rl-li .t, .rl-li .m { white-space: normal; }
  .rl-acts { flex-wrap: wrap; width: 100%; min-width: 0; }
  .rl-acts .lk-exp { flex: 1 1 110px; min-width: 0; max-width: 200px; width: auto; }
}
/* 6.49.7: no celular o nome da série quebra em até 2 linhas (antes: "Reels de produ…", "Food porn (tráf…") */
@media (max-width: 767px) {
  .plx-tog b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
}

/* ================================================================ 6.49.9: passada de layout e design */
/* selos com texto branco: tom sólido (no escuro o tom de texto, claro, deixava o branco ilegível) */
.fg-s-late, .notif-n.bad, .attn-tabs i.bad, .attn-tabs button.on i.bad, .ag-pst.late { background: var(--danger-solid); color: #fff; }
.plx-tst.ks-posted, .plx-tst.ks-made, .plx-tst.ks-ready, .wk-chip.ok { background: var(--success-solid); color: #fff; }
.plx-tst.ks-doing { background: var(--info-solid); color: #fff; } .plx-tst.ks-client { background: var(--violet-solid); color: #fff; }
.wk-chip.ref { background: rgba(0,0,0,.62); }
/* laranja como TEXTO usa o tom de texto (o laranja puro sobre branco fica abaixo de 3:1) */
.hm-dc.soon .hm-dw, .hm-dc.hot .hm-dw, .hm-dc.soon .hm-dd span, a.ag-more, .attn-more, .ap-det-more, .pc-up, .pj-kick, .pr-tx i, [data-fl-sel].on, .pt-l em { color: var(--p-700) !important; }
.igs-live { color: var(--p-700); }
/* atividades do mês: no computador mostra 8 e "Ver as N" (antes 51 itens abriam um vazio de 1.500 px ao lado) */
.plx-acts.clip.clip8 > a:nth-child(n+6) { display: flex; } .plx-acts.clip.clip8 > a:nth-child(n+9) { display: none; }
/* cartão de demanda: o tipo nunca vira "R…" (encolhe a campanha antes) */
.wk-meta i { min-width: 4.5em; }
/* arquivos: o nome da demanda dentro da linha de detalhes quebra normal (herdava "nowrap" do nome do arquivo e passava por baixo do "Prévia") */
.lk-b .lk-m a { white-space: normal; overflow: visible; font-weight: 600; color: var(--text-2) !important; }
/* Minha conta → Entrar com segurança (celular): o texto ocupa a linha toda e a ação desce para baixo dele (antes: uma palavra por linha) */
@media (max-width: 767px) {
  .mfa-row .grow { flex: 1 1 calc(100% - 60px); }
  .mfa-row > :not(.mfa-ic):not(.grow) { margin-left: 48px; }
}
img.img-brk { object-fit: scale-down !important; padding: clamp(2px, 22%, 14px); box-sizing: border-box; background: var(--surface-muted); border: 0 !important; }   /* 6.51: padding em % é da LARGURA DO PAI — a foto de perfil expirada do Instagram virava um círculo de 280 px no iPad */
/* Início (celular): o ícone da carteira fica ao lado do valor, não sozinho numa linha */
.hm-bud.none > svg { flex: none; } .hm-bud.none > span:not(.hm-bst) { flex: 1 1 150px; min-width: 0; }
/* Plano do cliente: os filtros quebram de linha em vez de esconder "Arquivadas" atrás do Miniaturas/Lista */
.plx-bar-top .pl-filters { flex-wrap: wrap; min-width: 0; overflow-x: visible; border-radius: 18px; }
/* Datas comerciais (celular): pílula com texto em 2 linhas vira cartão de canto arredondado (antes ficava deformada) */
.ssn-c { border-radius: 12px; }
/* horário de postar (celular): "Postar às" e a hora não se espremem (antes "Posta…" e "12:00 F") */
@media (max-width: 767px) { .pt-row select { flex: 1 1 130px; min-width: 130px; } .pt-row input[type=time] { flex: 1 1 120px; min-width: 120px; } }
/* tráfego → visão por campanha (computador): a coluna Campanha tem largura mínima (antes o nome quebrava em 5–7 linhas com espaço sobrando) */
@media (min-width: 768px) { .ads-tbl table.ads td:first-child, .ads-tbl table.ads th:first-child { min-width: 220px; } .ads-tbl table.ads td:nth-last-child(2) { white-space: nowrap; } }
.fin-pay { border-color: color-mix(in srgb, var(--success) 45%, var(--border-strong)); color: var(--success); } .fin-pay:hover { background: var(--success-bg); }
.col-more { width: 100%; justify-content: center; margin-top: 4px; color: var(--text-2); }
/* na faixa baixa, as etiquetas (data de postar, Drive, inspiração) ficam à direita, sem cobrir o ícone */
.wk-t.np .wk-tags, .wk-t.nc .wk-tags { left: 36px; right: 6px; top: 50%; bottom: auto; transform: translateY(-50%); justify-content: flex-end; flex-wrap: nowrap; overflow: hidden; }

/* 6.50.1 — sem internet: faixa embaixo do topo (some sozinha quando a internet volta) */
.off-bar { display: flex; align-items: center; gap: 10px; margin: 16px 32px 0; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--warning-bg); color: var(--text); border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); font-size: 13px; line-height: 1.4; }
.off-bar > svg { flex: none; color: var(--warning); }
.off-bar > span { flex: 1; min-width: 0; }
.off-bar b { font-weight: 600; margin-right: 4px; }
.off-bar .btn { flex: none; }
.off-bar.back { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.off-bar.back > svg { color: var(--info); }
@media (max-width: 1279px) { .off-bar { margin: 12px 24px 0; } }
@media (max-width: 767px) { .off-bar { margin: 10px calc(16px + var(--sar, 0px)) 0 calc(16px + var(--sal, 0px)); font-size: 12.5px; padding: 7px 6px 7px 12px; } }

/* 6.50.3 — celular/tablet: áreas de toque das caixinhas de selecionar e do link "Calendário" com pelo menos ~34px
   (eram 22px: na Lista, errar por pouco abria a demanda em vez de selecionar) */
@media (max-width: 1023px) and (pointer: coarse) {
  table.t.stack td.bk::after { content: ''; position: absolute; inset: -12px -8px -12px -12px; }
  .plx-all, .plx-tpick { position: relative; }
  .plx-all::after { content: ''; position: absolute; inset: -6px 0; }
  .plx-tpick::after { content: ''; position: absolute; inset: -6px; }
  .hm-sh a.small { padding: 8px 4px; margin: -8px -4px; }
}

/* 6.50.5 — Tráfego: miniatura do anúncio no card de melhor campanha */
.best-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; min-width: 0; }
.best-hd .best-name { margin-bottom: 0; min-width: 0; }
.best-th { position: relative; flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--fill-2); border: 1px solid var(--border); }
.best-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.best-th em { position: absolute; left: 4px; top: 4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; }
.best-th i { position: absolute; right: 3px; bottom: 3px; font-style: normal; font-size: 10px; font-weight: 600; line-height: 1; padding: 3px 5px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; }
.best-th em svg { fill: currentColor; stroke-width: 1.5; }
.best-ths { display: flex; gap: 6px; margin-bottom: 8px; } .best-ths .best-th { width: 44px; height: 44px; border-radius: 8px; }

/* 6.50.5 — avisos de tráfego organizados: cliente em cima, título curto, explicação (toque abre o texto inteiro) e atalho */
.tr-al > svg { flex: none; margin-top: 1px; }
.tr-al .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tr-al-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tr-al-cl { font-size: 12px; font-weight: 600; color: var(--text-2); overflow-wrap: anywhere; }
.tr-al-ago { font-size: 12px; color: var(--text-muted); white-space: nowrap; flex: none; }
.tr-al-t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.tr-al-tx { font-size: 13px; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-al.open .tr-al-tx { display: block; -webkit-line-clamp: unset; }
.tr-al[data-tr-al] { cursor: pointer; }
.tr-al-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* 6.50.8 — Tráfego no celular: "Ligar cliente ao Meta" com o texto inteiro (era um botão de ícone de 40px e o texto vazava cortado para a esquerda) */
@media (max-width: 767px) {
  .tr-actions .meta-bar .btn.meta-link { width: auto; max-width: 100%; padding: 0 14px; gap: 6px; white-space: nowrap; }
  .tr-actions .meta-bar .btn.meta-link span { overflow: hidden; text-overflow: ellipsis; }
}

/* 6.50.9 — Propostas: nome de serviço comprido (ex.: "Organização/Profissionalização") quebra dentro do card em vez de vazar */
.pe-svc { min-width: 0; }
.pe-svc b { overflow-wrap: anywhere; hyphens: auto; }
/* 6.50.9 — buscar no catálogo de serviços (proposta e Ajustes → Serviços) */
.pe-svc-q { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; margin: 0 0 10px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text-muted); max-width: 420px; }
.pe-svc-q:focus-within { border-color: var(--accent); }
.pe-svc-q input { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; height: 38px; font-size: 14px; color: var(--text); outline: none; }
.pe-svc[hidden], #svcTbl tr[hidden] { display: none !important; }
.pe-svc-none { margin: 4px 0 10px; }
@media (max-width: 767px) { .pe-svc-q { max-width: none; height: 44px; } .pe-svc-q input { font-size: 16px; } }
/* 6.50.9 — avisos de tráfego mais calmos: só o crítico fica vermelho; "atenção" fica neutro com o ícone âmbar. "Já sei" ao lado do atalho */
.tr-al.warn { background: var(--surface); border-color: var(--border); }
.tr-al-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 2px; }
.tr-al-acts .tr-al-go { margin-top: 0; }
.tr-al-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 4px 0; }
.tr-al-muted { margin: 2px 4px 0; }
.tr-al-muted { font-size: 13px; }
.tr-al-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.tr-al-acts .tr-al-check { min-height: 32px; }

/* 6.51 — de onde vieram as mensagens (Tráfego) e "vieram de" no balão do gráfico */
#chartTip .w { margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: var(--text-2); white-space: pre-line; max-width: 260px; }
.msg-src { margin-bottom: 14px; }
.msg-src-l { display: flex; flex-direction: column; gap: 10px; }
.msg-src-i { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.msg-src-th { width: 44px; height: 44px; border-radius: 9px; overflow: hidden; background: var(--fill-2); display: grid; place-items: center; color: var(--text-muted); }
.msg-src-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-src-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msg-src-t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-src-t span { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-src-bar { display: block; height: 4px; border-radius: 99px; background: var(--fill-2); overflow: hidden; margin-top: 2px; }
.msg-src-bar i { display: block; height: 100%; border-radius: 99px; background: var(--chart-result, var(--accent)); }
.msg-src-n { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.msg-src-n b { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.msg-src-n span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* ===== 6.51: Demandas compactas — Quadro e Lista cabem na tela =====
   Números numa faixa fina; cartão com cliente+projeto numa linha e título em até 2 linhas;
   cada etapa do quadro rola por dentro (o quadro inteiro fica na tela); lista com linhas de ~44 px. */
.kpis.tk-kpis { gap: 8px; margin-bottom: 14px; }
.tk-kpis > .kpi { flex: 0 1 auto; container-type: normal; }
.tk-kpis .kpi > a { flex-direction: row; align-items: baseline; gap: 10px; padding: 8px 14px; }
.tk-kpis .kpi span:first-child { margin: 0; }
.kpis.tk-kpis > .kpi b, .kpis.tk-kpis > .kpi:nth-child(n) b { font-size: 17px; line-height: 20px; }
@media (max-width: 767px) { .tk-kpis > .kpi { flex: 1 1 calc(50% - 4px); } .tk-kpis .kpi > a { justify-content: space-between; padding: 8px 12px; } .kpis.tk-kpis > .kpi b, .kpis.tk-kpis > .kpi:nth-child(n) b { font-size: 16px; } }
@media (min-width: 768px) { .tk-tb .tb-f > select { width: auto; max-width: 170px; flex: 0 1 auto; } }

/* cartão */
.tcardk { padding: 8px 10px; border-radius: 11px; }
.tcardk .cl { display: flex; align-items: center; gap: 6px; min-width: 0; line-height: 16px; }
.tcardk .cl .cn { flex: 0 0 auto; max-width: 58%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcardk .cl .cn:only-child { max-width: 100%; flex-shrink: 1; }
.tcardk .cl .pj-chip { flex: 0 1 auto; min-width: 26px; margin: 0; font-size: 11px; line-height: 16px; padding: 1px 7px 1px 1px; }
.tcardk .cl .pj-chip > img, .tcardk .cl .pj-chip > svg.i { width: 14px; height: 14px; padding: 2px; }
.tcardk .cl .pj-chip > img { padding: 0; }
.tcardk .tt { font-size: 13px; line-height: 17px; margin: 3px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcardk .ft { gap: 8px; min-height: 20px; }
.tcardk .ft .avatar { width: 20px; height: 20px; font-size: 8px; }
.col { gap: 6px; }
.col-h { min-width: 0; }
.col-h > span:nth-child(2) { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: normal; word-break: normal; hyphens: auto; line-height: 17px; }
/* mouse: o "+" da etapa aparece ao passar por ela (sobra espaço para o nome); no toque fica sempre */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .board .col-h > .icon-btn[data-act="new-task"] { opacity: 0; transition: opacity 120ms ease; width: 0; min-width: 0; padding: 0; overflow: hidden; }
  .board .col:hover .col-h > .icon-btn[data-act="new-task"], .board .col-h > .icon-btn[data-act="new-task"]:focus-visible { opacity: 1; width: 28px; min-width: 28px; }
}
/* toque (iPad): o "+" de cada etapa sai do cabeçalho — o nome da etapa não cabia; "Nova demanda" no topo continua */
@media (hover: none) and (min-width: 768px) { .board .col-h > .icon-btn[data-act="new-task"] { display: none; } .board > .col:not(.empty):not(.fold) > .col-h { padding-inline: 10px; } }
@media (max-width: 767px) { .state-tabs { gap: 6px; } .state-tabs .chip { min-height: 34px; padding: 0 12px; font-size: 13px; } }

/* computador/tablet: o quadro ocupa a altura que sobra na tela e cada etapa rola sozinha */
@media (min-width: 768px) {
  .board > .col:not(.empty):not(.fold) { max-height: var(--bh, calc(100dvh - 200px)); overflow-y: auto; overscroll-behavior-y: auto; scrollbar-width: thin; padding-top: 0; }
  .board > .col:not(.empty):not(.fold) > .col-h { position: sticky; top: 0; z-index: 2; margin: 0 -8px; padding: 10px 14px 8px; background: inherit; border-radius: inherit; }
  .board > .col.empty, .board > .col.fold { max-height: var(--bh, none); }
}

/* lista */
@media (min-width: 1024px) {
  table.tl-t td { height: 44px; padding-block: 4px; }
  table.tl-t td.tl-ti { width: 44%; max-width: 0; }
  table.tl-t td.tl-c { white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
}
.tl-tw { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tl-tw > a { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-tw > .blk, .tl-tw > .muted { flex: none; display: inline-flex; }
.tl-tw > .pj-chip { flex: 0 1 auto; max-width: 45%; font-size: 11px; line-height: 16px; padding: 1px 7px 1px 1px; }
.tl-tw > .pj-chip > img, .tl-tw > .pj-chip > svg.i { width: 14px; height: 14px; }
.tl-tw > .pj-chip > svg.i { padding: 2px; }
/* celular e tablet em pé (até 1023 px): duas linhas por demanda — título + etapa; cliente · prioridade · prazo · quem */
@media (max-width: 1023px) {
  table.tl-t, table.tl-t tbody { display: block; width: 100%; }
  table.tl-t thead { display: none; }
  table.tl-t tr { display: flex !important; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 8px 12px !important; border-bottom: 1px solid var(--border); position: relative; }
  table.tl-t tr:has(> td.bk) { padding-left: 44px !important; }
  table.tl-t td { display: block; padding: 0 !important; border: 0; height: auto !important; min-width: 0; }
  table.tl-t td[data-l]::before { content: none !important; }
  table.tl-t td.bk { position: absolute; left: 14px !important; top: 50% !important; transform: translateY(-50%); }
  table.tl-t td.tl-ti { flex: 1 1 0; }
  table.tl-t td.tl-ti b { font-size: 14px; line-height: 20px; }
  table.tl-t td.tl-c, table.tl-t td.tl-p, table.tl-t td.tl-d { font-size: 12px; color: var(--text-muted); }
  table.tl-t td.tl-c::after, table.tl-t td.tl-p:not(.tl-pn)::after { content: " ·"; }
  table.tl-t td.tl-pn { display: none; }
  table.tl-t td.tl-p:not(.tl-pn) { color: var(--p-700); font-weight: 600; order: 3; }
  table.tl-t td.tl-d { order: 3; }
  table.tl-t td.tl-w { order: 4; margin-left: auto; }
  table.tl-t td.tl-s { max-width: 46%; min-width: 0; }
  table.tl-t td.tl-s .badge { max-width: 100%; overflow: hidden; white-space: nowrap; height: 22px; padding: 0 8px; font-size: 11.5px; }
  table.tl-t td.tl-s .badge .dot { flex: none; }
  table.tl-t td.tl-c, table.tl-t td.tl-d { line-height: 20px; }
  table.tl-t td.tl-c { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.tl-t td.tl-w .avatar { width: 20px; height: 20px; font-size: 8px; }
  table.tl-t td.tl-ti + td.tl-c { flex-basis: auto; }
  table.tl-t td.tl-s { order: 2; }
  table.tl-t td.tl-c { order: 3; }
  table.tl-t td.tl-ti { order: 1; }
  table.tl-t tr::after { content: ""; order: 2; flex-basis: 100%; height: 0; }   /* quebra: linha 1 = título + etapa; linha 2 = cliente · prazo · quem */
}
@media (max-width: 767px) { table.tl-t td.tl-ti .pj-chip { display: none; } }   /* no celular o projeto aparece ao abrir a demanda */

/* ===== 6.51: relatório da semana (folha branca, imprime igual) ===== */
.rpw-sum { background: #faf7f2; border-left: 3px solid var(--pc); border-radius: 0 3mm 3mm 0; padding: 4mm 5mm; margin: 0 0 6mm; break-inside: avoid; }
.rpw-sum .rp-facts { font-size: 10pt; line-height: 1.5; color: #222 !important; }
.rpw-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4mm; margin: 0 0 4mm; }
.rpw-p { display: flex; gap: 3.5mm; min-width: 0; padding: 3mm; border: 1px solid #ececec; border-radius: 3mm; break-inside: avoid; }
.rpw-p .rp-cr-img { flex: 0 0 24mm; width: 24mm; height: 24mm; aspect-ratio: auto; margin: 0; border-radius: 2mm; }
.rpw-pt { display: flex; flex-direction: column; gap: .8mm; min-width: 0; font-size: 8.5pt; color: #444 !important; }
.rpw-pt > b { font-size: 9pt; color: #111 !important; }
.rpw-pt span b { color: #111 !important; }
.rpw-cap { color: #777 !important; font-size: 8pt; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rpw-st { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rpw-st .rp-st-img { max-height: 48mm; }
.rpw-src { display: flex; flex-direction: column; gap: 2.5mm; margin: 0 0 4mm; }
.rpw-si { display: flex; align-items: center; gap: 3mm; break-inside: avoid; }
.rpw-th { flex: none; width: 11mm; height: 11mm; border-radius: 2mm; overflow: hidden; background: #f1f1f1; display: grid; place-items: center; color: #999 !important; }
.rpw-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rpw-sn { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .6mm; font-size: 8.5pt; }
.rpw-sn b { color: #111 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpw-sn i, .rpw-sv i { font-style: normal; font-size: 7.5pt; color: #777 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpw-bar { display: block; height: 1.6mm; border-radius: 99px; background: #eee; overflow: hidden; }
.rpw-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--pc); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rpw-sv { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .4mm; font-size: 9pt; color: #111 !important; text-align: right; }
.rpw-next li { margin-bottom: 1.6mm; }
.rpw-gl { margin: 6mm 0 3mm; padding: 3.5mm 4mm; border: 1px dashed #d9d9d9; border-radius: 3mm; break-inside: avoid; }
.rpw-gl dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2mm 6mm; }
.rpw-gl dt { font-weight: 700; font-size: 8.5pt; color: #111 !important; }
.rpw-gl dd { margin: 0; font-size: 8pt; color: #555 !important; }
@media (max-width: 640px) {
  .rpw-posts { grid-template-columns: minmax(0, 1fr); }
  .rpw-st { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpw-gl dl { grid-template-columns: minmax(0, 1fr); }
}
/* 6.51: números internos de produção — aparecem só na tela da agência (no-print) */
.rp-int { margin: 4mm 0; padding: 3.5mm 4mm 1mm; border: 1.5px dashed #c9c9c9; border-radius: 3mm; background: #fafafa; }
.rp-int-h { display: flex; align-items: center; gap: 1.5mm; margin: 0 0 3mm; font: 600 8pt var(--font); color: #777 !important; }
.rp-int .rp-k:first-child { background: #fff; border-color: #e7e7e7; } .rp-int .rp-k:first-child * { color: inherit !important; } .rp-int .rp-k:first-child span { color: #666 !important; }
/* 6.51: iPad em pé (768–1023) — a coluna de detalhes tinha 280 px e cortava os campos ("— Admin …", datas, link); uma coluna só, na ordem do celular */
@media (min-width: 768px) and (max-width: 1023px) {
  .task-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .task-main { display: contents; }
  .task-side { position: static; order: 4; margin-bottom: var(--s5); }
  .o-brain { order: 0; } .o-desc { order: 1; } .o-check { order: 2; } .o-subs { order: 3; } .o-talk { order: 5; }
}
/* ===== 6.51.1 — auditoria do celular ===== */
/* Plano do mês: os filtros ocupam a linha toda (antes viravam uma coluna estreita e o "Miniaturas | Lista" ficava por cima) */
@media (max-width: 767px) { .plx-bar-top .pl-filters { flex: 1 1 100%; } }
/* Postar: as 4 abas cabem em 360 px (nome em cima, número embaixo); antes "11Postados" grudava e o "3" cortava */
@media (max-width: 420px) {
  .pc-bar > .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .pc-bar > .seg > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 2px; min-height: 48px; font-size: 12.5px; line-height: 15px; text-align: center; }
  .pc-bar > .seg .seg-n { margin: 0; }
}
/* Produção (celular): o "+" do cliente fica na mesma linha do nome; a barrinha de etapas sai (o resumo em texto já diz) */
@media (max-width: 420px) {
  .wk-ch .wk-bar { display: none; }
  .wk-ch .wk-tog { flex: 0 1 auto; }
  .wk-ch [data-wk-new] { margin-left: auto; }
}
/* "×" de tirar concorrente/inspiração: área de toque maior sem mudar o desenho */
.ref-chip > button { position: relative; }
.ref-chip > button::after { content: ""; position: absolute; inset: -9px -8px; }
/* 6.51.1 — auditoria do computador/iPad */
@media (min-width: 768px) { select[data-iglink] { min-width: 210px; } }   /* Integrações → Instagram: "Tech Comunic…" cortava em 131 px */
/* iPad/celular: tocar não deixa cartão "aceso" (hover preso) — completa a lista de 6.30 */
@media (hover: none) {
  .ag-cell:not(.out):not(.sel):hover, .hm-al:hover, .kpi > a:hover { background: transparent; }
  .ag-cell.out:hover { background: var(--fill); }
  .ig-card:hover { border-color: var(--border); transform: none; }
  .hm-cc:hover { border-color: var(--border); box-shadow: none; }
  .wk-t:hover, .hm-dc:hover { border-color: var(--border); }
}

/* ===== 6.52: próximo passo no cartão, botão direito, desfazer e prévia em destaque ===== */
.wk-tw { position: relative; min-width: 0; display: flex; flex-direction: column; }
.wk-tw > .wk-t { flex: 1 1 auto; }
.wk-adv { position: absolute; top: 6px; right: 6px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border: 0; border-radius: 99px;
  background: var(--solid); color: var(--solid-ink); font: 600 11.5px/1 var(--font); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; white-space: nowrap; }
.wk-adv.fin { background: var(--accent); color: var(--accent-ink); }
.wk-adv:hover { filter: brightness(1.08); } .wk-adv:disabled { opacity: .5; cursor: progress; }
.wk-adv::after { content: ""; position: absolute; inset: -8px -6px; }   /* área de toque maior */
.wk-tw.has-adv .wk-t.np .wk-tags, .wk-tw.has-adv .wk-t.nc .wk-tags { right: auto; justify-content: flex-start; }
@media (hover: hover) and (pointer: fine) {   /* computador: aparece ao passar o mouse (sem poluir 50 cartões) */
  .wk-adv { opacity: 0; transform: translateY(-2px); transition: opacity 120ms ease, transform 120ms ease; }
  .wk-tw:hover .wk-adv, .wk-adv:focus-visible, .wk-tw:focus-within .wk-adv { opacity: 1; transform: none; }
}
.undo-bar { position: fixed; left: 50%; bottom: calc(24px + var(--sab, 0px)); transform: translateX(-50%); z-index: 400; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 10px 12px 10px 18px; border-radius: 99px; background: var(--solid); color: var(--solid-ink); box-shadow: var(--sh-md); font-size: 13.5px; }
.undo-bar[hidden] { display: none; }
.undo-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo-bar button { flex: none; border: 0; background: none; color: var(--accent); font: 700 13.5px var(--font); cursor: pointer; padding: 4px 8px; border-radius: 99px; }
.undo-bar button:hover { background: rgba(255,255,255,.1); }
@media (max-width: 767px) { .undo-bar { bottom: calc(84px + var(--sab, 0px)); } }
.ctx-menu { position: fixed; z-index: 500; min-width: 230px; max-width: 300px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 6px; border-radius: 14px;
  background: var(--raised, var(--surface)); border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0,0,0,.28); font-size: 13px; }
.ctx-menu > button, .ctx-menu > a { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none !important; cursor: pointer; }
.ctx-menu > button:hover, .ctx-menu > a:hover, .ctx-menu > button:focus-visible, .ctx-menu > a:focus-visible { background: var(--fill); outline: none; }
.ctx-menu svg { flex: none; color: var(--text-muted); } .ctx-menu .ctx-strong { font-weight: 650; } .ctx-menu .ctx-strong svg { color: var(--accent); }
.ctx-menu .cdot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin: 0 3px; }
.ctx-h { padding: 6px 10px 8px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.ctx-l { padding: 4px 10px 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.ctx-sep { height: 1px; margin: 5px 4px; background: var(--border); }
.ctx-tip { margin: 6px 10px 2px; font-size: 11px; color: var(--text-muted); }
.tp-g { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.tp-c { margin: 0; flex: 0 1 320px; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 8px; }
.tp-f { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.tp-drive { aspect-ratio: 9 / 16; max-height: 72vh; }
.tp-ig { height: 620px; background: #fff; }
.tp-f iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tp-c figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.tp-c figcaption b { display: inline-flex; align-items: center; gap: 6px; }
.tp-auto { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); font-weight: 600; }
.tp-n { margin: 8px 0 0; }
@media (max-width: 767px) { .tp-c { flex-basis: 100%; } .tp-drive { width: min(100%, 360px); max-height: 66vh; } .tp-ig { width: min(100%, 360px); } }

/* ---------------------------------------------------------------- 6.53: Sincronizar (tráfego + Instagram) no topo */
.top .sync-btn { position: relative; height: 38px; padding: 0 14px; gap: 7px; flex: none; min-width: 132px; justify-content: center; }
.sync-btn .i { flex: none; }
.sync-btn.busy { cursor: progress; opacity: 1; }
.sync-btn.busy .i { animation: sy-spin 1s linear infinite; }
.sync-btn.done { color: var(--success); border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
.sy-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--canvas); }
.sy-dot.warn { background: var(--warning); }
.sy-dot.bad { background: var(--danger); }
@keyframes sy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sync-btn.busy .i { animation: none; } }
@media (max-width: 800px) { .top .sync-btn .sy-l { display: none; } .top .sync-btn { width: 38px; min-width: 0; padding: 0; justify-content: center; border-radius: 50%; } }
@media (max-width: 767px) { .top .sync-btn { width: 44px; height: 44px; background: transparent; border-color: transparent; } .sy-dot { top: 8px; right: 8px; } }

/* ---------------------------------------------------------------- 6.54: lixeira de arquivos + prévia no cartão */
.wk-fw { position: relative; display: block; min-width: 0; }
.wk-fw > .wk-f { width: 100%; position: relative; }
.wk-fp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; }
.wk-fx { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.wk-fx::after { content: ""; position: absolute; inset: -6px; }
.wk-fx:hover, .wk-fx:focus-visible { background: var(--danger-solid); }
@media (hover: hover) and (pointer: fine) { .wk-fx { opacity: 0; transition: opacity 120ms ease; } .wk-fw:hover .wk-fx, .wk-fx:focus-visible { opacity: 1; } }
.ftr { margin: 10px 0 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ftr > summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.ftr > summary::-webkit-details-marker { display: none; }
.ftr-s { margin-left: auto; font-weight: 400; }
.ftr-l { border-top: 1px solid var(--border); }
.ftr-r { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.ftr-r + .ftr-r { border-top: 1px solid var(--border); }
.ftr-r .grow { min-width: 0; display: flex; flex-direction: column; }
.ftr-r b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftr-c .ftr-s { display: none; }
.wk-pv { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 4 / 5; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.wk-play { pointer-events: auto; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: transform 120ms ease, background 120ms ease; }
.wk-play .i { width: 20px; height: 20px; }
.wk-play:hover, .wk-play:focus-visible { background: rgba(0,0,0,.78); transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .wk-play { transition: none; } .wk-play:hover { transform: none; } }
.pv-m { position: relative; width: min(100%, calc(70vh * 9 / 16)); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; }
.pv-45 .pv-m { width: min(100%, calc(70vh * 4 / 5)); aspect-ratio: 4 / 5; }
.pv-ig .pv-m { width: min(100%, 420px); aspect-ratio: auto; height: min(70vh, 720px); background: var(--surface); }
.pv-m video, .pv-m iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.pv-ig .pv-m iframe { background: var(--surface); }
.pv-a { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.pv-n { text-align: center; margin: 8px 0 0; }
@media (max-width: 767px) { .pv-m { width: min(100%, calc(62vh * 9 / 16)); } .pv-45 .pv-m { width: min(100%, calc(62vh * 4 / 5)); } .pv-a .btn { flex: 1 1 auto; } }

/* ---------------------------------------------------------------- 6.54.1: Produção com todos os cartões do mesmo tamanho */
.wk-grid { align-items: stretch; }
.wk-tw > .wk-t { height: 100%; }
.wk-t .wk-b { flex: 1 1 auto; }
.wk-t .wk-meta { margin-top: auto; }
.wk-ph { grid-auto-flow: row; align-content: center; justify-items: center; gap: 6px; padding: 0 10px; text-align: center; }
.wk-ph small { font-size: 11px; line-height: 14px; color: var(--text-muted); }
.wk-ph svg { opacity: .7; }
.wk-ph.pv small { margin-top: 72px; }   /* embaixo do ▶ */

/* ---------------------------------------------------------------- 6.55: mesclar demandas */
.mg-q { width: 100%; margin-bottom: 8px; }
.mg-list { display: flex; flex-direction: column; gap: 6px; max-height: min(52vh, 460px); overflow: auto; padding: 2px; }
.mg-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.mg-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.mg-opt .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .mg-opt b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.mg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mg-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px 40px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; min-width: 0; }
.mg-card input { position: absolute; left: 14px; top: 15px; }
.mg-card.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.mg-card b { font-size: 14px; overflow-wrap: anywhere; }
.mg-k { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); } .mg-card.on .mg-k { color: var(--accent); }
.mg-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; } .mg-tags .badge { display: inline-flex; align-items: center; gap: 3px; }
.mg-h { margin: 16px 0 6px; font-size: 13px; }
.mg-f { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px 10px; margin: 0 0 8px; min-width: 0; }
.mg-f legend { font-size: 12px; font-weight: 600; padding: 0 4px; }
.mg-f label { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 13px; min-width: 0; }
.mg-f label span { min-width: 0; overflow-wrap: anywhere; } .mg-f em { display: block; font-style: normal; font-size: 11px; color: var(--text-muted); }
.mg-fill { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; }
.mg-arch { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; cursor: pointer; font-size: 13px; }
@media (max-width: 640px) { .mg-cards { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 6.55: visão geral do projeto mais enxuta */
.pj-ks { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
a.pj-k { color: inherit; text-decoration: none; transition: border-color 120ms ease; } a.pj-k:hover { border-color: var(--border-strong); }
.pj-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.pj-todo .card-h { margin-bottom: 4px; }
.pj-todo-l { display: flex; flex-direction: column; }
.pj-todo-r { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.pj-todo-r:first-child { border-top: 0; padding-top: 4px; }
.pj-todo-r .grow { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .pj-todo-r b { font-size: 14px; font-weight: 600; }
.pj-todo-r > .btn { flex: none; }
.pj-todo-i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.pj-todo-r.opt .pj-todo-i { background: var(--surface-muted); color: var(--text-muted); }
@media (max-width: 767px) { .pj-ks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pj-todo-r { flex-wrap: wrap; } .pj-todo-r > .btn { margin-left: 44px; } }

/* ---------------------------------------------------------------- 6.56: login mais rápido */
.login-card .field > label { font-size: 12px; font-weight: 550; color: var(--text-2); }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; min-width: 0; padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--text); background: var(--fill); }
.l-caps { margin: 2px 0 0; color: var(--warning); font-weight: 600; }
.l-who { margin: -10px 0 12px; }
.l-who .btn-link { font-size: 12px; }
.lg-pk { min-height: 48px; gap: 8px; }
/* 6.56: tráfego do cliente — verba, plano e vendas numa linha de atalhos */
.tr-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tr-tools .btn { flex: none; }
@media (max-width: 767px) { .tr-tools { display: grid; grid-template-columns: 1fr 1fr; } .tr-tools .btn { justify-content: center; } }
/* 6.56: mudanças nas campanhas em frases */
.cs-sum { margin: -2px 0 10px; font-size: 13px; color: var(--text-2); }
.cs-day { margin: 12px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.cs-day:first-child { margin-top: 0; }
.chg-list > .cs-day + .chg { border-top: 0; padding-top: 6px; }
.chg.cs { padding: 9px 0; }
.chg.cs .chg-t { font-size: 14px; line-height: 1.4; } .chg.cs .chg-t b { font-weight: 650; }
.chg-ic.cs-good { background: var(--success-bg); color: var(--success); }
.chg-ic.cs-warn { background: var(--warning-bg); color: var(--warning); }
.chg-ic.cs-bad { background: var(--danger-bg); color: var(--danger); }
.cs-foot { margin: 10px 0 0; }
/* 6.56: menu do topo (avisos, alertas, criar, conta) aberto fica por cima do painel da Produção (o topo prendia o menu atrás dele) */
@media (min-width: 768px) { .top:has(.pop-menu:not([hidden])) { z-index: 80; } }
.ctx-menu .ctx-danger, .pop-menu button.danger { color: var(--danger); }
.wk-del:hover, .wk-del:focus-visible { color: var(--danger); }
/* 6.57: retenção do vídeo no criativo */
.cr-vid { margin: 8px 0 0; padding: 8px 9px; border-radius: 10px; background: var(--fill); font-size: 11.5px; }
.cr-vh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; color: var(--text-2); font-weight: 600; } .cr-vh span { display: inline-flex; align-items: center; gap: 4px; }
.cr-vr { display: grid; grid-template-columns: 86px 1fr 40px; align-items: center; gap: 6px; line-height: 18px; color: var(--text-2); }
.cr-vr i { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.cr-vr u { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.cr-vr b { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.cr-vn { margin: 5px 0 0; color: var(--text-muted); line-height: 1.35; }
/* 6.58: vocês × concorrentes no Instagram */
.cmp { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.card > .cmp:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cmp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cmp-h h4 { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.cmp-read { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 4px; }
.cmp-read li { position: relative; padding-left: 14px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.cmp-read li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 99px; background: var(--text-muted); }
.cmp-read b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.cmp-w { overflow-x: auto; margin: 0 -2px; }
.cmp-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-t th, .cmp-t td { padding: 9px 8px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.cmp-t thead th { border-top: 0; padding-top: 2px; font-size: 11px; font-weight: 650; letter-spacing: .02em; color: var(--text-muted); white-space: nowrap; }
.cmp-t tbody th { font-weight: 400; min-width: 150px; }
.cmp-t tbody th a { color: var(--text) !important; text-decoration: none !important; } .cmp-t tbody th a:hover b { color: var(--p-700); }
.cmp-sub { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.35; margin-top: 1px; }
.cmp-sub .i { vertical-align: -2px; }
.cmp-you { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--p-100); color: var(--p-700); font-size: 11px; font-weight: 650; vertical-align: 1px; }
.cmp-v { display: block; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); white-space: nowrap; }
.cmp-bar { display: block; margin-top: 5px; height: 4px; border-radius: 99px; background: var(--fill); overflow: hidden; max-width: 110px; }
.cmp-bar i { display: block; height: 100%; border-radius: 99px; background: var(--text-muted); }
.cmp-me .cmp-bar i { background: var(--accent); }
.cmp-me > * { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.cmp-up { color: var(--success); } .cmp-down { color: var(--danger); }
.cmp-old { opacity: .75; }
.cmp-best { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cmp-e td { color: var(--text-muted); font-size: 12.5px; } .cmp-e td > .i { vertical-align: -3px; margin-right: 5px; } .cmp-e td span { vertical-align: top; }
.cmp-n { margin: 10px 0 0; line-height: 1.45; }
@media (max-width: 767px) {
  .cmp-w { overflow: visible; margin: 0; }
  .cmp-t thead { display: none; }
  .cmp-t, .cmp-t tbody, .cmp-t tr { display: block; width: 100%; }
  .cmp-t tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--border); }
  .cmp-t tr.cmp-me { padding: 10px; border-radius: 12px; border-top: 0; background: color-mix(in srgb, var(--accent) 6%, transparent); margin-bottom: 4px; }
  .cmp-me > * { background: none; }
  .cmp-t th, .cmp-t td { border-top: 0; padding: 4px 0; }
  .cmp-t tbody th { grid-column: 1 / -1; min-width: 0; padding-bottom: 6px; }
  .cmp-t td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
  .cmp-t td:last-child { grid-column: 1 / -1; }
  .cmp-e td { grid-column: 1 / -1; }
}
/* 6.59: Agência → Portfólio */
.pf-card { margin-bottom: 16px; }
.pf-st { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pf-st-t { display: flex; flex-direction: column; gap: 3px; flex: 1 1 260px; min-width: 0; }
.pf-st-t .badge { align-self: flex-start; margin-bottom: 4px; }
.pf-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-link input { flex: 1 1 240px; min-width: 0; height: 36px; }
.pf-st .btn-link { flex-basis: 100%; text-align: left; color: var(--text-muted); }
.pf-slug { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.pf-slug summary { cursor: pointer; color: var(--text-muted); } .pf-slug summary b { color: var(--text-2); font-weight: 600; word-break: break-all; }
.pf-slug .pf-link { margin-top: 10px; } .pf-slug .pf-link input { flex: 0 1 220px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pf-it { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface-subtle); }
.pf-it.ft { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.pf-im { position: relative; aspect-ratio: 4 / 5; background: var(--surface-muted); overflow: hidden; }
.pf-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-im.site img { object-position: top; }
.pf-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); }
.pf-cat { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(10,10,11,.66); color: #fff; font-size: 11px; font-weight: 600; }
.pf-star { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 99px; border: 0; display: grid; place-items: center; background: rgba(10,10,11,.6); color: #fff; cursor: pointer; }
.pf-star.on { background: var(--accent); color: var(--accent-ink); } .pf-star.on svg { fill: currentColor; }
.pf-tx { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px 4px; min-width: 0; }
.pf-tx b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-nm { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-nm svg + svg, .pf-nm .i + .i { margin-left: 6px; }
.pf-nm .i { color: var(--text-muted); }
.pf-ac { display: flex; justify-content: space-between; padding: 2px 4px 6px; margin-top: auto; }
.pf-photo { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-subtle); }
.pf-ph-b { flex: none; width: 76px; height: 95px; border-radius: 12px; overflow: hidden; background: var(--surface-muted); display: grid; place-items: center; text-align: center; }
.pf-ph-b img { width: 100%; height: 100%; object-fit: cover; }
.pf-row { display: grid; gap: 8px; margin-top: 6px; }
.pf-r2 { grid-template-columns: minmax(90px, .35fr) 1fr; } .pf-r2.pf-rs { grid-template-columns: minmax(160px, .7fr) 1fr; } .pf-r3 { grid-template-columns: 110px minmax(120px, .7fr) 1fr; }
.pf-row input { min-width: 0; }
.pf-hide summary { cursor: pointer; } .pf-hl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 12px; margin-top: 6px; }
.pf-pk-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; } .pf-pk-f select { width: auto; min-width: 0; flex: 0 1 200px; }
.pf-pk { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; max-height: 58vh; overflow: auto; padding: 2px; }
.pf-pi { position: relative; display: flex; flex-direction: column; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface-subtle); cursor: pointer; }
.pf-pi[hidden] { display: none; }
.pf-pi input { position: absolute; opacity: 0; pointer-events: none; }
.pf-pi-im { position: relative; aspect-ratio: 4 / 5; background: var(--surface-muted); }
.pf-pi-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-pi-im i { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; background: rgba(10,10,11,.55); border: 2px solid rgba(255,255,255,.7); color: transparent; }
.pf-pi-im em { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 99px; background: rgba(10,10,11,.7); color: #fff; font-style: normal; font-size: 11px; }
.pf-pi:has(input:checked) { border-color: var(--accent); }
.pf-pi:has(input:checked) .pf-pi-im i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pf-pi.in { opacity: .55; cursor: default; }
.pf-pi:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-pi-t { display: flex; flex-direction: column; padding: 7px 8px 8px; font-size: 12px; line-height: 1.35; min-width: 0; }
.pf-pi-t b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pf-pi-t > span { color: var(--text-muted); }
.pf-up { display: flex; gap: 12px; align-items: center; }
.pf-up-im { flex: none; width: 120px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--surface-muted); display: grid; place-items: center; text-align: center; }
.pf-up-im img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pd-pf { margin-left: 8px; }
@media (max-width: 767px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pf-r3 { grid-template-columns: 84px 1fr; } .pf-r3 input:nth-child(3) { grid-column: 1 / -1; }
  .pf-r2 { grid-template-columns: 76px 1fr; } .pf-r2.pf-rs { grid-template-columns: 1fr; gap: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); } .pf-r2.pf-rs input:first-child { font-weight: 600; }
  .pf-pk { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pf-st .pf-link .btn { flex: 1 1 auto; }
  .pd-pf span { display: none; }
}
/* 6.59.1: histórico de posts no seletor e prints de site */
.pf-pool { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-subtle); border: 1px solid var(--border); }
.pf-pool > span:first-child { flex: 1 1 260px; } .pf-pool .i { vertical-align: -2px; color: var(--success); }
.pf-pi-im.v { aspect-ratio: 9 / 16; }
.pf-pi-v { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: rgba(10,10,11,.72); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-pi-o { font-size: 11.5px; color: var(--p-700) !important; }
.pf-im.site { background: #fff; }
.pf-mob { position: absolute; right: 6px; bottom: 6px; width: 30%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: 8px; border: 3px solid #111; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.pf-im .pf-mob { width: 30%; height: auto; }
.pf-shot { margin-top: 4px; }
.pf-up + .pf-up { margin-top: 10px; }
.pf-up-im.mob { width: 60px; height: 110px; }
.pf-ph { font-size: 12px; text-align: center; padding: 8px; }
/* 6.59.4: vídeo principal do portfólio */
.pf-reel { display: grid; gap: 8px; }
.pf-reel video { width: 100%; max-width: 640px; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; display: block; }
.pf-reel p { margin: 0; }
/* 6.59.9: prévia de arte anexada (imagem) */
.pv-m img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ============================================================================
   6.60 — login com vitrine animada + entrada no sistema (referência: reel do Franklin, 12/10/2026).
   Tudo preso ao #login / #lxGo (o #pub também usa .login e não muda). O movimento é feito no s_login.js
   com Web Animations (só transform/opacity); aqui ficam o desenho, os ciclos simples e o "parado".
   ============================================================================ */
/* ícone novo: avião de papel */
.brand-mark svg { width: 70%; height: 70%; }
#login.lx { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 520px); padding: 16px; gap: 0; place-items: stretch; background: var(--canvas); }
#login.lx > .login-card { grid-column: 2; grid-row: 1; align-self: center; justify-self: center; width: 100%; max-width: 420px; background: transparent; border: 0; box-shadow: none; padding: 32px 28px; }
#login.lx > .login-card > .brand { display: none; }
#login.lx > .login-card h1 { font-size: 30px; line-height: 36px; letter-spacing: -.02em; }
#login .l-hint { color: var(--danger); margin: -6px 0 10px; }
#login .l-cred { margin: 28px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--text-muted); } #login .l-cred b { font-weight: 600; color: var(--text-2); } #login .l-cred span { display: block; }
#login #lBtn:disabled::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
#login.lx-in > .login-card > * { animation: lxUp .45s cubic-bezier(.2,.85,.25,1) both; }
#login.lx-in > .login-card > :nth-child(3) { animation-delay: .12s; } #login.lx-in > .login-card > :nth-child(4) { animation-delay: .17s; }
#login.lx-in > .login-card > :nth-child(5) { animation-delay: .22s; } #login.lx-in > .login-card > :nth-child(6) { animation-delay: .27s; }
#login.lx-in > .login-card > :nth-child(7) { animation-delay: .32s; } #login.lx-in > .login-card > :nth-child(8) { animation-delay: .37s; }
#login.lx-in > .login-card > :nth-child(n+9) { animation-delay: .42s; }

.lx-hero { grid-column: 1; grid-row: 1; position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px);
  background: linear-gradient(150deg, #FF9440 0%, #FF6B00 46%, #D94C00 100%); color: #0B0B0C; --lx-card: #121214; --lx-ink: #F4F4F5; --lx-mut: #A1A1AA; --px: 0; --py: 0; }
:root[data-theme="light"] .lx-hero { --lx-card: #FFFFFF; --lx-ink: #18181B; --lx-mut: #71717A; }
.lx-bg { position: absolute; inset: -20px; z-index: -1; pointer-events: none; transform: translate3d(calc(var(--px) * -12px), calc(var(--py) * -10px), 0); transition: transform .9s cubic-bezier(.2,.8,.2,1);
  background-image: radial-gradient(rgba(0,0,0,.13) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 60%, #000 20%, transparent 75%); mask-image: radial-gradient(120% 90% at 70% 60%, #000 20%, transparent 75%); }
.lx-bg i { position: absolute; border-radius: 50%; will-change: transform; }
.lx-o1 { width: 70%; aspect-ratio: 1; left: -18%; top: -30%; background: radial-gradient(closest-side, rgba(255,236,214,.55), transparent); animation: lxOrb 16s ease-in-out infinite alternate; }
.lx-o2 { width: 80%; aspect-ratio: 1; right: -30%; bottom: -40%; background: radial-gradient(closest-side, rgba(120,30,0,.38), transparent); animation: lxOrb 19s ease-in-out -6s infinite alternate-reverse; }
.lx-layer { position: absolute; inset: 0; transform: translate3d(calc(var(--px) * 16px), calc(var(--py) * 12px), 0); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.lx-sky, .lx-sky0 { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.lx-route { fill: none; stroke: rgba(11,11,12,.32); stroke-width: 1.6; stroke-dasharray: 2 8; stroke-linecap: round; }
.lx-trail { fill: none; stroke: rgba(255,250,244,.85); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lx-fly, .lx-mini { position: absolute; left: 0; top: 0; pointer-events: none; color: #0B0B0C; opacity: 0; will-change: transform; }
.lx-fly { width: 64px; height: 64px; z-index: 5; filter: drop-shadow(0 10px 14px rgba(70,20,0,.35)); }
.lx-mini { width: 30px; height: 30px; z-index: 4; opacity: 1; color: #FFF8F0; filter: drop-shadow(0 4px 6px rgba(70,20,0,.35)); transform: translate(-60px, -60px); }
.lx-hero:not(.lx-live) .lx-mini { opacity: 0; }
.lx-fly svg, .lx-mini svg, .lg-plane svg { width: 100%; height: 100%; transform: rotate(46.6deg); display: block; }

.lx-brand { position: absolute; left: 40px; top: 34px; display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.01em; }
.lx-word { display: inline-block; overflow: hidden; font-weight: 700; padding-bottom: 2px; } .lx-word > span { display: inline-block; } .lx-word i { font-style: normal; color: #FFF3E8; }
.lx-mark { width: 40px; height: 40px; border-radius: 12px; background: #0B0B0C; color: #FF6B00; display: grid; place-items: center; }
.lx-mark svg { width: 70%; height: 70%; }
.lx-copy { position: absolute; left: 40px; top: 104px; max-width: min(540px, 50%); }
.lx-tag { margin: 0; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.06; font-weight: 650; letter-spacing: -.025em; text-wrap: balance; }
.lx-tag .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; } .lx-tag .w > span { display: inline-block; }
.lx-sub { margin: 14px 0 0; font-size: 15px; line-height: 1.45; color: rgba(11,11,12,.74); max-width: 34ch; }

/* a "ilustração": cartões do próprio sistema */
.lx-art { position: absolute; left: 36px; right: 36px; top: 40%; bottom: 92px; max-width: 860px; margin: 0 auto; }
.lx-c { position: absolute; will-change: transform; --r: 0deg; transform: rotate(var(--r)); animation: lxFloat 9s ease-in-out 2.2s infinite alternate; }
.lx-k { position: relative; background: var(--lx-card); color: var(--lx-ink); border-radius: 16px; padding: 12px 14px; font-size: 12.5px; line-height: 1.3;
  box-shadow: 0 22px 48px rgba(70,22,0,.34), 0 2px 6px rgba(70,22,0,.18); }
.lx-glow { position: absolute; inset: -3px; border-radius: 19px; box-shadow: 0 0 0 2px #fff, 0 0 26px rgba(255,255,255,.45); opacity: 0; pointer-events: none; }
:root[data-theme="light"] .lx-glow { box-shadow: 0 0 0 2px #0B0B0C, 0 0 24px rgba(11,11,12,.25); }
.lx-lb { display: block; font-size: 11px; color: var(--lx-mut); font-weight: 550; letter-spacing: .01em; }
.lx-tx { display: grid; min-width: 0; } .lx-tx b { font-weight: 600; } .lx-tx small { color: var(--lx-mut); font-size: 11px; }
.lx-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255,107,0,.16); color: #FF7A1A; }
.lx-ic.ok { background: rgba(34,197,94,.16); color: #22C55E; }

.lx-post { left: 34.5%; top: -4%; width: min(31%, calc((60vh - 180px) / 1.1)); z-index: 3; --r: -2deg; animation-delay: 2.6s; }
.lx-post .lx-k { padding: 8px 8px 12px; display: grid; gap: 8px; }
.lx-th { position: relative; overflow: hidden; border-radius: 11px; aspect-ratio: 4 / 4.4; background: linear-gradient(160deg, #3B2A20, #1A1412 70%); }
.lx-th i { position: absolute; border-radius: 50%; }
.lx-th i:nth-child(1) { width: 70%; aspect-ratio: 1; left: -10%; top: 8%; background: radial-gradient(closest-side, #FF8A3D, transparent); opacity: .9; animation: lxDrift 7s ease-in-out infinite alternate; }
.lx-th i:nth-child(2) { width: 46%; aspect-ratio: 1; right: -6%; bottom: 4%; background: radial-gradient(closest-side, #FFD08A, transparent); opacity: .65; animation: lxDrift 9s ease-in-out -3s infinite alternate-reverse; }
.lx-th i:nth-child(3) { width: 30%; height: 8%; left: 10%; bottom: 12%; border-radius: 99px; background: rgba(255,255,255,.75); }
.lx-play { position: absolute; left: 50%; top: 46%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(255,255,255,.92); color: #0B0B0C; display: grid; place-items: center; }
.lx-badge { position: absolute; left: 8px; top: 8px; font-size: 10.5px; font-weight: 650; padding: 3px 8px; border-radius: 99px; background: rgba(11,11,12,.7); color: #fff; }
.lx-post b { font-size: 13px; padding: 0 4px; }
.lx-chip { justify-self: start; margin-left: 4px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: rgba(255,107,0,.16); color: #FF7A1A; }

.lx-chart { left: 0; top: 4%; width: 31%; z-index: 2; --r: 1.5deg; animation-delay: 3.1s; }
.lx-num { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 6px; } .lx-num b { font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lx-up { font-size: 11px; font-weight: 650; color: #22C55E; background: rgba(34,197,94,.14); padding: 2px 7px; border-radius: 99px; }
.lx-spark { display: block; width: 100%; height: 34px; color: #FF7A1A; } .lx-spark path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.lx-ok { right: 0; top: 0; width: 33%; z-index: 2; --r: -1deg; animation-delay: 3.6s; }
.lx-ok .lx-k, .lx-ring .lx-k, .lx-cal .lx-k { display: flex; align-items: center; gap: 10px; }
.lx-msgs { display: grid; min-width: 0; flex: 1; } .lx-msgs .m { grid-area: 1 / 1; display: grid; animation: lxMsg 15s ease-in-out infinite both; }
.lx-msgs .m:nth-child(2) { animation-delay: -10s; } .lx-msgs .m:nth-child(3) { animation-delay: -5s; }
.lx-msgs b { font-weight: 600; } .lx-msgs small { color: var(--lx-mut); font-size: 11px; }
.lx-kb { left: 0; top: 54%; width: 31.5%; z-index: 1; --r: -1.5deg; animation-delay: 2.9s; }
.lx-cols { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.lx-cols span { font-size: 10px; color: var(--lx-mut); text-align: center; padding: 4px 0 30px; border-radius: 8px; background: rgba(127,127,127,.12); }
.lx-mv { position: absolute; left: 0; bottom: 6px; width: calc((100% - 12px) / 3); text-align: center; font-style: normal; font-size: 10.5px; font-weight: 650; padding: 4px 0; border-radius: 7px;
  background: #FF6B00; color: #0B0B0C; will-change: transform; animation: lxKb 6s cubic-bezier(.6,0,.2,1) 2.2s infinite; }
.lx-ring { right: 2%; top: 38%; width: 29%; z-index: 2; --r: 1deg; animation-delay: 3.3s; }
.lx-dial { width: 46px; height: 46px; flex: none; transform: rotate(-90deg); }
.lx-dial circle { fill: none; stroke: rgba(127,127,127,.22); stroke-width: 5; } .lx-dial .fg { stroke: #FF6B00; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 38; }
.lx-ring .lx-tx b { font-size: 17px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lx-cal { right: 0; top: 74%; width: 31%; z-index: 1; --r: -1deg; animation-delay: 3.8s; }   /* 6.62.7: não fica mais embaixo do post (o ícone sumia) */

.lx-steps { position: absolute; left: 40px; bottom: 32px; display: grid; grid-template-columns: repeat(4, 96px); font-size: 13px; font-weight: 600; }
.lx-steps span { position: relative; text-align: center; padding: 8px 0; color: #0B0B0C; }
.lx-steps::after { content: ""; position: absolute; inset: 0; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(11,11,12,.18); pointer-events: none; }
.lx-pill { position: absolute; left: 0; top: 0; bottom: 0; width: 96px; border-radius: 99px; background: rgba(255,248,240,.95); box-shadow: 0 6px 16px rgba(90,30,0,.22); will-change: transform; }
.lx-pause { position: absolute; z-index: 6; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,248,240,.42); color: #0B0B0C; } .lx-pause:hover { background: rgba(255,248,240,.7); }
.lx-pause:focus-visible { outline: 2px solid #0B0B0C; outline-offset: 2px; }
#login.lx-stop .lx-hero *, #login.lx-stop .lx-hero *::after { animation-play-state: paused !important; }

/* entrada no sistema depois do login */
#lxGo { position: fixed; inset: 0; z-index: 9000; overflow: hidden; cursor: pointer; background: var(--canvas); }
.lg-bg { position: absolute; inset: 0; transform-origin: 0 0; background: linear-gradient(150deg, #FF9440 0%, #FF6B00 46%, #D94C00 100%); will-change: transform; }
.lg-sky { position: absolute; inset: 0; overflow: visible; }
.lg-trail { fill: none; stroke: rgba(255,250,244,.9); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lg-plane { position: absolute; left: 0; top: 0; width: 84px; height: 84px; z-index: 1; color: #0B0B0C; will-change: transform; filter: drop-shadow(0 14px 18px rgba(70,20,0,.35)); }
.lg-hi { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #0B0B0C; padding: 0 24px; }
.lg-t { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; font-weight: 650; letter-spacing: -.03em; }
.lg-t .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; } .lg-t .w > span { display: inline-block; }
.lg-s { margin: 12px 0 0; font-size: 16px; color: rgba(11,11,12,.72); }
@media (min-width: 768px) {   /* no celular o menu lateral é gaveta escondida: animar ele fazia a gaveta piscar na tela depois do login */
  #app.lx-enter .side { animation: lxSideIn .55s cubic-bezier(.2,.85,.25,1) backwards; }
  #app.lx-enter .side .brand-mark { animation: lxMarkIn .7s cubic-bezier(.2,.85,.25,1) .15s backwards; } }
#app.lx-enter .top { animation: lxTopIn .5s cubic-bezier(.2,.85,.25,1) .06s backwards; }
#app.lx-enter .tabbar { animation: lxBarIn .5s cubic-bezier(.2,.85,.25,1) .1s backwards; }

@keyframes lxUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes lxFloat { from { transform: translateY(0) rotate(var(--r)); } to { transform: translateY(-9px) rotate(var(--r)); } }
@keyframes lxKb { 0%, 28% { transform: translateX(0); } 36%, 61% { transform: translateX(calc(100% + 6px)); } 69%, 94% { transform: translateX(calc(200% + 12px)); } 100% { transform: translateX(0); } }
@keyframes lxOrb { from { transform: translate(0, 0) scale(1); } to { transform: translate(8%, 6%) scale(1.12); } }
@keyframes lxDrift { from { transform: translate(0, 0); } to { transform: translate(12%, -8%); } }
@keyframes lxMsg { 0% { opacity: 0; transform: translateY(8px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes lxSideIn { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes lxTopIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes lxBarIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lxMarkIn { 0% { transform: scale(.5) rotate(-20deg); } 60% { transform: scale(1.15) rotate(6deg); } 100% { transform: none; } }

/* telas menores do computador (notebook): sai só o cartão do engajamento; a agenda continua (é a etapa "Planeje" do aviãozinho).
   6.62.7: antes a agenda também saía e, sem ela, o aviãozinho e as etapas ficavam parados nos notebooks */
@media (max-height: 760px) and (min-width: 1024px) { .lx-ring { display: none; } .lx-cal { top: 62%; } .lx-sub { display: none; } .lx-copy { top: 96px; } }
@media (max-width: 1180px) and (min-width: 1024px) { .lx-ring { display: none; } .lx-cal { top: 62%; } }

/* celular e tablet: painel no topo (como no vídeo), formulário embaixo */
@media (max-width: 1023px) {
  #login.lx { grid-template-columns: minmax(0, 1fr); padding: 0; align-content: start; }
  #login.lx > .login-card { grid-column: 1; grid-row: 2; align-self: start; padding: 26px 22px 40px; max-width: 460px; }
  #login.lx > .login-card h1 { font-size: 27px; line-height: 33px; }
  .lx-hero { grid-column: 1; grid-row: 1; min-height: 0; height: clamp(250px, 37vh, 330px); height: clamp(250px, 37dvh, 330px); border-radius: 0 0 28px 28px; padding-top: var(--sat); }
  .lx-brand { left: 22px; top: calc(20px + var(--sat)); font-size: 18px; } .lx-mark { width: 36px; height: 36px; border-radius: 11px; }
  .lx-copy { left: 22px; top: calc(76px + var(--sat)); max-width: 46%; }
  .lx-tag { font-size: clamp(22px, 6.2vw, 30px); } .lx-sub, .lx-steps, .lx-kb, .lx-ring, .lx-cal, .lx-mini, .lx-route { display: none; }
  .lx-layer { transform: none; }
  .lx-art { inset: 0; max-width: none; }
  .lx-post { left: auto; right: 18px; top: calc(20px + var(--sat)); width: min(40%, 190px); --r: -3deg; } .lx-post b { font-size: 12px; } .lx-play { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .lx-post .lx-chip { font-size: 10.5px; padding: 3px 8px; }
  .lx-chart { left: 22px; top: auto; bottom: 22px; width: min(48%, 230px); --r: 1.5deg; } .lx-chart .lx-k { padding: 9px 12px; } .lx-num b { font-size: 17px; } .lx-spark { height: 22px; }
  .lx-ok { right: 26px; top: calc(146px + var(--sat)); width: auto; z-index: 4; --r: 2deg; } .lx-ok .lx-k { padding: 7px 12px 7px 8px; gap: 8px; } .lx-msgs b { font-size: 11.5px; white-space: nowrap; } .lx-msgs small { display: none; }
  .lx-ic { width: 24px; height: 24px; }
  .lx-pause { right: 12px; bottom: 12px; width: 30px; height: 30px; }
  .lg-plane { width: 56px; height: 56px; }
}
@media (max-width: 1023px) and (min-width: 600px) { .lx-copy { max-width: 50%; } .lx-sub { display: block; font-size: 14px; } .lx-chart { display: none; } .lx-ok { top: calc(160px + var(--sat)); } }
@media (max-width: 380px) { .lx-ok { display: none; } .lx-tag { font-size: 21px; } }
@media (max-width: 1023px) and (max-height: 640px) { .lx-chart { display: none; } }

/* quem pede menos movimento (iPhone/Mac/Windows): fica tudo parado, sem botão de pausa */
@media (prefers-reduced-motion: reduce) {   /* 6.62.6: menos as que a pessoa ligou em "Ver a animação" (html.mf-motion) */
  html:not(.mf-motion) #login.lx *, html:not(.mf-motion) #login.lx *::before, html:not(.mf-motion) #login.lx *::after, html:not(.mf-motion) #app.lx-enter * { animation: none !important; }
  html:not(.mf-motion) .lx-mini, html:not(.mf-motion) .lx-fly { display: none; } html:not(.mf-motion) .lx-msgs .m:not(:first-child) { visibility: hidden; }   /* parado: só a 1ª mensagem (as 3 ficavam uma por cima da outra) */ html:not(.mf-motion) .lx-layer, html:not(.mf-motion) .lx-bg { transform: none; transition: none; }
}
.lx-pause.lx-pb-calm { width: auto; height: 34px; padding: 0 14px 0 11px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--font); }
/* 6.60.2 — abertura antes do login (como no vídeo: primeiro só o avião, depois o login abre) */
#lxSp { position: fixed; inset: 0; z-index: 8500; background: var(--canvas); overflow: hidden; cursor: pointer; }
#lxSp::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60vw 50vw at 50% 42%, rgba(255,107,0,.16), transparent 70%); pointer-events: none; }
.sp-sky { position: absolute; inset: 0; overflow: visible; }
.sp-trail { fill: none; stroke: #FF6B00; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; }
.sp-plane { position: absolute; left: 0; top: 0; width: 128px; height: 128px; color: #FF6B00; will-change: transform; filter: drop-shadow(0 18px 22px rgba(255,107,0,.28)); }
.sp-bob, .sp-bob svg { width: 100%; height: 100%; display: block; } .sp-bob svg { transform: rotate(46.6deg); }
.sp-brand { position: absolute; left: 0; right: 0; top: calc(42% + 92px); text-align: center; color: var(--text); padding: 0 24px; }
.sp-word { margin: 0; display: inline-block; overflow: hidden; font-size: clamp(38px, 5vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; padding-bottom: 4px; }
.sp-word > span { display: inline-block; } .sp-word i { font-style: normal; color: #FF6B00; }
.sp-tag { margin: 6px 0 0; font-size: 16px; color: var(--text-muted); }
@media (max-width: 699px) { .sp-plane { width: 92px; height: 92px; } .sp-brand { top: calc(40% + 70px); } .sp-tag { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { html:not(.mf-motion) #lxSp { display: none; } }
.lg-p2 { opacity: .85; }
/* 6.61 — micro-animações do sistema (s_fx.js): camada por cima de tudo, sem pegar clique */
#fxL { position: fixed; inset: 0; z-index: 10000; pointer-events: none; overflow: hidden; }
#fxL > i { position: absolute; left: 0; top: 0; display: block; will-change: transform, opacity; }
.fx-c { width: 7px; height: 11px; border-radius: 2px; }
.fx-p { width: 18px; height: 18px; color: #FF6B00; } .fx-p svg, .fx-fly svg { width: 100%; height: 100%; display: block; }
#fxL > .fx-ring { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,107,0,.85), 0 0 28px rgba(255,107,0,.35); }
#fxL > .fx-ring.ok { width: 90px; height: 90px; box-shadow: 0 0 0 3px rgba(34,197,94,.85), 0 0 24px rgba(34,197,94,.3); }
.fx-sky { position: absolute; inset: 0; overflow: visible; }
.fx-sky path { fill: none; stroke: #FF6B00; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
#fxL > .fx-fly { width: 34px; height: 34px; color: #FF6B00; filter: drop-shadow(0 6px 10px rgba(255,107,0,.35)); }
.fx-fly svg { transform: rotate(46.6deg); }
/* troca de tema em círculo: o navegador não mistura as duas telas, só recorta a nova */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { #fxL { display: none; } }
/* 6.61.1 — iPhone/iPad com iOS 26 (tema claro): a faixa PRETA atrás do relógio era desfocada pelo vidro do sistema e virava
   uma névoa cinza por cima do topo (fotos do Franklin de 11/10, 09:57). No iOS 26 o próprio sistema escolhe a cor do relógio
   conforme o fundo (foto de 07/10, 12:04: topo claro e limpo). Então a faixa fica da mesma cor do topo do app.
   (iOS antigo, sem esse recurso, continua com a faixa preta para o relógio branco aparecer.) */
@supports (anchor-name: --a) { :root[data-theme="light"] #sbar { background: var(--canvas); } }
/* na tela de entrada do celular, a faixa do relógio acompanha o painel laranja */
@media (max-width: 1023px) { body:has(> #login.lx:not([hidden])) #sbar { background: #FF8F3A; } }   /* só onde o painel laranja fica no topo (celular/tablet em pé) */
/* tablet/computador com o menu lateral à mostra: a faixa do relógio continua a cor do menu em cima dele (sem "degrau") */
@media (min-width: 768px) { body:has(> #app:not([hidden])) #sbar { background-color: var(--canvas); background-image: linear-gradient(to right, var(--rail-bg) var(--side-w), transparent var(--side-w)); } }   /* cor sólida + faixa do menu: o iOS lê a cor sólida para pintar a barra do relógio */

/* ============================================================================
   6.62 — agenda do cliente para escolher o dia de postar (painel da demanda, janela e Postar)
   ============================================================================ */
.agd { margin: 2px 0 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); }
.agd-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.agd-h > b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; flex: 1 1 auto; min-width: 0; }
.agd-nav { display: inline-flex; align-items: center; gap: 2px; }
.agd-nav .icon-btn { width: 30px; height: 30px; }
.agd-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.agd-w { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted); padding-bottom: 2px; }
.agd-d { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 52px; padding: 4px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
.agd-d:hover:not(:disabled) { border-color: var(--border-strong); }
.agd-d:active:not(:disabled) { transform: scale(.96); }
.agd-d:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.agd-d.past { opacity: .42; cursor: default; background: transparent; }
.agd-d.hoje .agd-n { color: var(--accent); }
.agd-d.on { border-color: var(--accent); background: var(--p-50, rgba(255,107,0,.08)); box-shadow: 0 0 0 1px var(--accent) inset; }
.agd-n { font-size: 12px; font-weight: 700; line-height: 1.1; display: flex; align-items: baseline; gap: 3px; }
.agd-n small { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: lowercase; }
.agd-th { display: flex; align-items: center; gap: 2px; min-height: 22px; flex-wrap: wrap; }
.agd-p { width: 20px; height: 20px; border-radius: 5px; overflow: hidden; background: var(--fill); display: inline-grid; place-items: center; flex: none; }
.agd-p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agd-p.ok { box-shadow: 0 0 0 2px var(--success); }
.agd-th > b { font-size: 10px; color: var(--text-2); }
.agd-ic { display: inline-grid; place-items: center; color: var(--text-muted); font-style: normal; }
.agd-x { margin: 8px 0 0; }
.agd-x > p { margin: 0 0 6px; }
.agd-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.agd-l li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.agd-l li > img, .agd-l li > .agd-ic { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; flex: none; background: var(--fill); }
.agd-l li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agd-m { border: 0; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.agd-m legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.agd-m .ck { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.35; }
.agd-m .ck input { margin-top: 2px; flex: none; }
.agd-ok { margin-top: 10px; display: flex; justify-content: flex-end; }
.agd-open { margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#agdDlg.agd { margin: 0; }
.pc-nd-help { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 12px; }
.pc-st.st-ready { background: var(--success-bg, rgba(34,197,94,.13)); color: var(--success); }
.pc-st.st-wait { background: var(--warning-bg); color: var(--warning); }
a.pc-media { display: block; }
@media (max-width: 420px) {
  .agd { padding: 8px; }
  .agd-g { gap: 3px; }
  .agd-d { min-height: 46px; padding: 3px; border-radius: 8px; }
  .agd-p { width: 16px; height: 16px; border-radius: 4px; }
  .agd-th { min-height: 17px; }
}
@media (prefers-reduced-motion: reduce) { .agd-d { transition: none; } .agd-d:active:not(:disabled) { transform: none; } }
/* 6.62: Postar com 5 abas (entrou "Sem data"): as 5 cabem numa linha no celular */
@media (max-width: 420px) {
  .pc-bar > .seg { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pc-bar > .seg > a { padding: 4px 1px; font-size: 12px; letter-spacing: -.1px; }
}

/* ============================================================================
   6.62.1 — varredura de responsividade (12/10, noite)
   ============================================================================ */
/* Tráfego do cliente no celular: os botões da barra (Definir verba, Plano de tráfego, Informar vendas…) não cortam mais.
   Em 320–374 px viram uma coluna; de 375 a 767 px, duas colunas que quebram o texto em vez de vazar. */
@media (max-width: 767px) {
  .tr-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-tools .btn { min-width: 0; white-space: normal; text-align: center; line-height: 1.2; height: auto; min-height: 40px; padding-block: 6px; }
}
@media (max-width: 374px) { .tr-tools { grid-template-columns: minmax(0, 1fr); } }
/* Quadro (mouse): o "+" da etapa aparece por cima do canto, sem espremer o nome ("Aguardando cliente" cortava ao passar o mouse) */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .board > .col:not(.empty):not(.fold) > .col-h > .icon-btn[data-act="new-task"] { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 28px; min-width: 28px; padding: 0; background: inherit; pointer-events: none; }
  .board > .col:not(.empty):not(.fold):hover > .col-h > .icon-btn[data-act="new-task"], .board > .col:not(.empty):not(.fold) > .col-h > .icon-btn[data-act="new-task"]:focus-visible { pointer-events: auto; }
}
/* Demandas em celular pequeno (até 374 px): a busca ganha a linha toda (antes ficava "Busc" espremida entre Filtros e as vistas) */
@media (max-width: 374px) {
  .tk-tb { grid-template-columns: minmax(0, 1fr) auto; }
  .tk-tb > input[type=search] { grid-column: 1 / -1; grid-row: 1; }
  .tk-tb .tb-ft { grid-column: 1; grid-row: 2; justify-self: start; }
  .tk-tb > .seg { grid-column: 2; grid-row: 2; }
  .tk-tb.f-open .tb-f { grid-row: 3; }
}
/* Login com o celular deitado (tela baixa): o painel animado sai e o formulário aparece inteiro, sem precisar rolar até o botão */
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  #login.lx .lx-hero { display: none; }
  #login.lx > .login-card { grid-row: 1; justify-self: center; width: 100%; padding: calc(16px + var(--sat)) 22px 24px; }
}
/* Painel de avisos em celular pequeno (até 359 px): as 3 abas (Avisos, Para mim, Alertas) cabem; antes o número de Alertas saía da caixa */
@media (max-width: 359px) {
  .attn-tabs { gap: 2px; padding-inline: 6px; }
  .attn-tabs button { min-width: 0; padding: 0 4px; gap: 4px; font-size: 13px; letter-spacing: -.1px; }
  .attn-tabs i { padding: 0 4px; min-width: 16px; }
}

/* ===== 6.62.5 — demanda com prévia de uma peça só (vídeo em pé): a prévia vira uma coluna à esquerda e
   descrição, legenda, checklist e comentários sobem para o lado. Sem espaço: a coluna da direita desce sozinha (flex-wrap). ===== */
.tp-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 28px; }
.tp-l { flex: 0 0 300px; max-width: 100%; min-width: 0; }
.tp-r { flex: 1 1 360px; min-width: 0; }
.tp-l:has(.tp-ig) { flex-basis: 328px; }   /* o post do Instagram embutido pede uns 326 px */
.tp-l > section, .tp-r > section { margin-bottom: var(--s5); }
.tp-l .tp-c { flex-basis: 100%; }
.tp-l .tp-n { font-size: 12px; line-height: 1.45; }
@media (min-width: 1280px) and (min-height: 760px) { .tp-l { position: sticky; top: calc(var(--top-h) + 16px); } }
@media (min-width: 1024px) and (max-width: 1279px) { .tp-split { column-gap: 22px; } .tp-l { flex-basis: 248px; } .tp-r { flex-basis: 290px; } }
@media (max-width: 1023px) { .tp-split, .tp-l, .tp-r { display: contents; } }

/* ===== 6.62.6 — coluna de detalhes da demanda em grupos (Pessoas · Demanda · Publicação), rótulos na linha do texto
   e dia/horário de postar com a largura toda (antes o horário quebrava em 3 linhas e os rótulos ficavam soltos no meio) ===== */
.ts-meta .meta-g { display: block; margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.ts-meta .meta-g:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ts-meta .meta-row { grid-template-columns: 92px minmax(0, 1fr); align-items: baseline; min-height: 0; padding: 4px 0; }
.ts-meta .meta-row > span { line-height: 1.3; }
.ts-meta .meta-row > div { min-width: 0; }
.ts-meta .meta-row select, .ts-meta .meta-row input { width: 100%; }
.ts-meta .mr-av { display: flex; align-items: center; gap: 8px; min-height: 28px; } .ts-meta .mr-av > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-meta .mr-ppl > span { align-self: start; padding-top: 6px; }
.ts-meta .mr-vis { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; } .ts-meta .mr-vis svg { margin-right: 3px; vertical-align: -1px; }
.ts-meta .mr-url { display: flex; gap: 4px; align-items: center; } .ts-meta .mr-url input { flex: 1 1 auto; }
.ts-meta .mr-wide { display: block; padding: 6px 0 4px; }
.ts-meta .mr-wide > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ts-meta .mr-wide > span label { font: inherit; color: inherit; }
.ts-meta .agd-open { display: inline-flex; align-items: center; gap: 4px; }
.ts-meta .pt-row { flex-wrap: wrap; gap: 6px; }
.ts-meta .pt-row select { flex: 1 1 120px; min-width: 0; }
.ts-meta .pt-row input[type=time] { flex: 1 1 110px; width: auto; min-width: 0; }
.ts-meta .pt-chip { height: 30px; font-size: 12.5px; }
.ts-meta .pt-h { font-size: 12px; line-height: 1.4; margin-top: 2px; }
.ts-meta .stars { display: inline-flex; }
.ts-meta .pt-chip { border: 1px solid var(--border); background: transparent; padding: 0 10px; border-radius: 99px; color: var(--text-2, var(--text)); }
.ts-meta .pt-chip:hover { background: var(--fill); }
/* 6.62.6: relatório do projeto — quadro de post sem miniatura, legenda do gráfico da meta, título do capítulo ocupando a linha (no PDF ficava no meio) */
.rp-gi-ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 2mm; border: 1px solid #eee; }
.rp-sp-lg { margin: 0; font-size: 7.5pt; line-height: 1.3; color: #777 !important; }
.rp-sp-lg .lg-r { color: var(--pc, #ff6b00) !important; } .rp-sp-lg .lg-g { color: #bbb !important; margin-left: 2mm; } .rp-sp-lg .lg-d { margin-left: 2mm; color: #999 !important; }
.rp-ch > div { flex: 1 1 auto; min-width: 0; }
.rp-ch-n { flex: none; min-width: 12mm; }   /* 6.62.6: no PDF os algarismos não são da mesma largura ("02" quebrava em duas linhas) */
/* 6.62.6 — arquivos e links da demanda na coluna principal (debaixo da prévia ou depois da legenda) e "Rotina" compacta na lateral:
   a lateral ficava duas vezes mais comprida que a página */
.task-main > .o-files, .tp-l > .o-files { margin-bottom: var(--s5); }
.o-files .card-h { margin-bottom: 8px; } .o-files h3 { margin: 0; }
.tp-l .fx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-l .o-files .small.muted { font-size: 12px; line-height: 1.45; }
@media (max-width: 1023px) { .o-files { order: 2; } }
.ts-meta .mr-flow > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ts-meta .mr-flow select, .ts-meta .mr-flow input[type=date] { flex: 1 1 100%; }
.ts-meta .mr-hint { flex: 1 1 100%; font-size: 12px; line-height: 1.4; }
.ts-meta .mr-deps { flex: 1 1 100%; margin: 0; } .ts-meta .mr-deps .li { padding: 6px 0; min-height: 0; }
.ts-meta .mr-dep-add { display: inline-flex; align-items: center; gap: 4px; }

/* ===== 6.62.7 — versão e novidades ===== */
.acc-ver { margin: 6px 0 0; padding: 8px 10px 2px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-muted); }
#accMenu > button[data-nw] { display: flex; width: 100%; }
.side-ver { display: block; margin-top: 6px; font-size: 10.5px; color: var(--rail-muted, var(--text-muted)); text-align: center; opacity: .75; font-variant-numeric: tabular-nums; }
.nw-card { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 24px)); padding: 12px 12px 12px 14px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-ov, 0 18px 40px rgba(0,0,0,.25)); animation: nwIn .35s cubic-bezier(.2,.85,.25,1) both; }
.nw-card .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .nw-card .grow span { font-size: 13px; color: var(--text-muted); }
.nw-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); flex: none; }
@keyframes nwIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) { .nw-card { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; } }
.nw-list { display: flex; flex-direction: column; gap: 18px; }
.nw-it header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 6px; }
.nw-v { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-muted); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.nw-v.now { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.nw-it ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.nw-foot { margin: 16px 0 0; }

/* ---------------------------------------------------------------- 6.63 Guia de uso (#/ajuda) */
.hp-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0 14px; margin: 0 0 16px; max-width: 760px; }
.hp-search .i { color: var(--text-muted); flex: none; }
.hp-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.hp-inst { margin: 0 0 18px; border-color: var(--p-500, #FF6B00); }
.hp-inst-h { display: flex; gap: 14px; align-items: flex-start; }
.hp-inst-h h2 { font-size: 17px; margin: 0 0 4px; }
.hp-inst-h p { margin: 0; }
.hp-inst-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--p-50, rgba(255,107,0,.1)); color: var(--p-500, #FF6B00); }
.hp-ok { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--success, #22a06b); font-weight: 600; }
#hpInstallNow { margin: 14px 0 0; }
.hp-devs, .hp-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.hp-dev, .hp-cat { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; }
.hp-dev:hover, .hp-cat:hover { color: var(--text); }
.hp-dev.on, .hp-cat.on { background: var(--solid, var(--text)); color: var(--solid-ink, var(--surface)); border-color: transparent; }
.hp-cats { margin: 0 0 6px; }
.hp-steps { margin: 12px 0 0; padding: 0 0 0 4px; list-style: none; counter-reset: hp; display: grid; gap: 10px; }
.hp-steps li { counter-increment: hp; position: relative; padding-left: 34px; line-height: 1.5; color: var(--text); }
.hp-steps li::before { content: counter(hp); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--p-50, rgba(255,107,0,.12)); color: var(--p-500, #FF6B00); }
.hp-steps li .i { vertical-align: -2px; }
.hp-tip { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-subtle, rgba(127,127,127,.08)); color: var(--text-2, var(--text)); font-size: 13.5px; line-height: 1.5; }
.hp-tip .i { flex: none; margin-top: 2px; color: var(--p-500, #FF6B00); }
.hp-gh { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 22px 0 8px; }
.hp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.hp-a { padding: 0; scroll-margin-top: 80px; }
.hp-a > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.hp-a > summary::-webkit-details-marker { display: none; }
.hp-a > summary b { display: block; font-size: 14.5px; }
.hp-a > summary .small { display: block; margin-top: 2px; }
.hp-a .hp-chev { flex: none; color: var(--text-muted); transition: transform .2s ease; }
.hp-a[open] .hp-chev { transform: rotate(180deg); }
.hp-a[open] > summary { border-bottom: 1px solid var(--border); }
.hp-a > .hp-steps, .hp-a > .hp-tip, .hp-a > .btn, .hp-a > .hp-noacc { margin-left: 16px; margin-right: 16px; }
.hp-a > .btn { margin-top: 14px; margin-bottom: 16px; }
.hp-a > :last-child:not(summary):not(.btn) { margin-bottom: 16px; }
.hp-more { margin: 18px 0 0; }
/* 6.85: tema de outro cargo (link antigo ou "?" de outra tela) */
.hp-miss { display: flex; gap: 8px; align-items: center; padding: 10px 14px; margin: 0 0 14px; color: var(--muted); }
.hp-miss .i { flex: none; }
@media (max-width: 1023px) { .hp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .hp-inst-ic { display: none; } .hp-dev, .hp-cat { height: 32px; padding: 0 10px; } .hp-a > summary { padding: 13px 14px; } .hp-a > .hp-steps, .hp-a > .hp-tip, .hp-a > .btn, .hp-a > .hp-noacc { margin-left: 14px; margin-right: 14px; } }
/* ---------------------------------------------------------------- 6.64 Guia de uso por setor (cartões, vídeo, anterior/próximo) */
.hp-ph { flex-wrap: wrap; gap: 12px; }
.hp-ph-act { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-instb { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 16px; color: inherit; text-decoration: none; border-color: var(--p-500, #FF6B00); max-width: 760px; }
.hp-instb b { display: block; font-size: 14.5px; }
.hp-instb .small { display: block; margin-top: 2px; }
.hp-instb > .i:last-child { flex: none; color: var(--text-muted); }
.hp-okb { margin: 0 0 16px; }
.hp-secs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hp-sec { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.hp-sec:hover { border-color: var(--border-strong, var(--text-muted)); }
.hp-sec, .hp-sec:hover, .hp-instb, .hp-instb:hover, .hp-nav-a, .hp-nav-a:hover { text-decoration: none; }
.hp-sec:active { transform: scale(.99); }
.hp-th { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-subtle, rgba(127,127,127,.08)); border-bottom: 1px solid var(--border); overflow: hidden; }
.hp-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-th-ic { display: grid; place-items: center; color: var(--p-500, #FF6B00); }
.hp-play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; }
.hp-play .i { margin-left: 2px; fill: currentColor; }
.hp-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-sec-b { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.hp-sec-b b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.hp-sec-b b .i { color: var(--p-500, #FF6B00); flex: none; }
.hp-sec-m { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--text-muted); }
.hp-vid { margin: 0 0 8px; }
.hp-vid-box { border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--border); }
.hp-vid.is-h .hp-vid-box { max-width: 960px; aspect-ratio: 16 / 9; }
.hp-vid.is-v .hp-vid-box { max-width: 340px; aspect-ratio: 9 / 16; margin: 0 auto; }
.hp-vid video { width: 100%; height: 100%; display: block; background: #000; }
.hp-vid figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0 0; max-width: 960px; }
.hp-vid.is-v figcaption { justify-content: center; max-width: none; }
.hp-vid figcaption > span { display: inline-flex; align-items: center; gap: 6px; }
.hp-vid figcaption .btn-link { display: inline-flex; align-items: center; gap: 5px; }
.hp-tag { display: inline-block; margin: 0 0 4px; padding: 1px 8px; border-radius: 99px; background: var(--surface-subtle, rgba(127,127,127,.1)); color: var(--text-muted); font-size: 11.5px; font-weight: 600; }
.hp-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; }
.hp-nav-a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: inherit; text-decoration: none; }
.hp-nav-a b { display: block; font-size: 14px; }
.hp-nav-a .small { display: block; }
.hp-nav-a > .i { flex: none; color: var(--text-muted); }
.hp-nav-n { justify-content: flex-end; text-align: right; }
.hp-in .hp-inst { margin-top: 18px; }
@media (max-width: 1023px) { .hp-secs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hp-secs { grid-template-columns: minmax(0, 1fr); gap: 10px; } .hp-sec { flex-direction: row; align-items: stretch; } .hp-th { width: 116px; flex: none; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--border); } .hp-play { width: 32px; height: 32px; margin: -16px 0 0 -16px; } .hp-dur { right: 5px; bottom: 5px; font-size: 11px; } .hp-sec-b { padding: 10px 12px; } .hp-sec-b b { font-size: 14.5px; } .hp-ph-act { width: 100%; } .hp-ph-act .btn { flex: 1; justify-content: center; } }

/* ---------------------------------------------------------------- 6.64 "?" — como usar esta tela (s_v664.js) */
.hq-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 0 0 8px; padding: 0; border: 0; border-radius: 99px; background: transparent; color: var(--text-muted); vertical-align: middle; cursor: pointer; transition: color .15s, background-color .15s; }
.hq-btn:hover, .hq-btn[aria-expanded="true"] { color: var(--accent); background: var(--fill); }
.hq-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hq-btn.hq-task { margin: 0; }
@media (pointer: coarse) { .hq-btn { width: 36px; height: 36px; margin-left: 4px; } }
.hq-pop { position: absolute; z-index: 19; display: flex; flex-direction: column; background: var(--raised, var(--surface)); border: 1px solid var(--border-strong, var(--border)); border-radius: 16px; box-shadow: var(--sh-md, 0 18px 48px rgba(0,0,0,.35)); overflow: hidden; animation: notifIn 130ms cubic-bezier(.2, 0, 0, 1) both; }
.hq-pop:focus { outline: none; }
.hq-h { display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.hq-h > .i { flex: none; color: var(--accent); }
.hq-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 6px; }
.hq-vid { position: relative; display: block; width: 100%; aspect-ratio: 480 / 248; margin: 0 0 12px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--fill); cursor: pointer; }
.hq-vid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hq-vid:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hq-v { display: block; width: 100%; margin: 0 0 12px; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; }
.hq-v.is-v { width: auto; max-width: 100%; height: min(52vh, 460px); aspect-ratio: 9 / 16; margin: 0 auto 12px; }
.hq-t { margin: 0 0 6px; font-size: 14px; font-weight: 650; }
.hq-steps { margin: 0 0 8px; padding-left: 20px; font-size: 13.5px; line-height: 1.5; }
.hq-steps li + li { margin-top: 4px; }
.hq-b .hp-tip { margin: 4px 0 8px; }
.hq-o { margin: 12px 0 2px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.hq-ol { margin: 0; padding: 0; list-style: none; }
.hq-ol a { display: block; padding: 6px 0; font-size: 13px; }
.hq-f { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--border); }
.hq-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; width: auto; max-height: 86vh; max-height: 86dvh; border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: var(--sab, 0px); animation: sheetUp 240ms var(--spring) both; }
.hq-sheet .hq-f .btn { flex: 1; justify-content: center; height: 44px; }
.hq-scrim { position: fixed; inset: 0; z-index: 95; background: var(--scrim, rgba(0,0,0,.45)); animation: fade 160ms ease both; }
@media (prefers-reduced-motion: reduce) { .hq-pop, .hq-sheet, .hq-scrim { animation: none; } }

/* ---------------------------------------------------------------- 6.64 material gráfico (não vai ao ar) */
.mat-hint { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.mat-hint > .i, .mat-sug > .i { flex: none; color: var(--accent); }
.mat-hint b { display: block; font-size: 14px; }
.mat-hint .grow > span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); }
.mat-acts { display: flex; flex: none; flex-wrap: wrap; gap: 6px; }
.mat-sug { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; }
.mat-sug b { display: block; }
.mat-sug .grow { min-width: 0; }
.btn.mat-sus { color: var(--p-700, var(--accent)); }
.mat-l { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.mat-r { align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; }
.mat-r b { display: block; }
.tc-mat { margin: 6px 0 0; color: var(--p-700, var(--accent)); }
@media (max-width: 700px) { .mat-hint, .mat-sug { flex-wrap: wrap; } .mat-acts { width: 100%; } .mat-acts .btn { flex: 1; justify-content: center; } }

/* ---------------------------------------------------------------- 6.64 demanda mais limpa: seções opcionais recolhidas */
[data-tk-sec][hidden] { display: none !important; }
.tk-adds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 20px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--border); }
.tk-adds > .small { margin-right: 2px; }
.tk-adds + .o-talk { margin-top: 24px; }
.tk-adds { order: 3; }
@media (max-width: 1023px) { .tk-adds { margin-bottom: 16px; } }   /* celular/iPad em pé: a demanda vira uma coluna ordenada (6.51); fica antes dos detalhes e dos comentários */
.ts-more { margin: 12px 0 0; padding-top: 6px; border-top: 1px solid var(--border); }
.ts-more > summary { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 0; list-style: none; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.ts-more > summary::-webkit-details-marker { display: none; }
.ts-more > summary > b { flex: none; white-space: nowrap; font-weight: 600; }
.ts-more > summary .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.ts-more > summary > .i { flex: none; transition: transform .15s; }
.ts-more[open] > summary > .i { transform: rotate(90deg); }

/* ---------------------------------------------------------------- 6.65 conversa da demanda (s_v665.js) */
.tk-chat { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 10px; }
.tk-more { align-self: flex-start; margin: 0 0 6px; }
.tk-empty { margin: 4px 0 8px; }
.cmt { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 8px 8px 6px; border-radius: 12px; transition: background-color .4s ease; }
.cmt:hover { background: var(--fill); }
.cmt.mine { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.cmt.mine:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.cmt.hl { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.cmt-av { padding-top: 2px; }
.cmt-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--text-muted); }
.cmt-h b { color: var(--text); font-size: 13.5px; font-weight: 650; }
.cmt-t { margin-top: 2px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cmt-q { display: flex; align-items: baseline; gap: 6px; max-width: 100%; margin: 4px 0 2px; padding: 4px 8px; border: 0; border-left: 3px solid color-mix(in srgb, var(--accent) 60%, var(--border)); border-radius: 6px; background: var(--fill); color: var(--text-2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.cmt-q > .i { flex: none; align-self: center; color: var(--text-muted); }
.cmt-q b { flex: none; color: var(--text); font-weight: 600; }
.cmt-q span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmt-q.off { cursor: default; font-style: italic; color: var(--text-muted); }
.cmt-f { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.cmt-rx { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text); font-size: 13px; line-height: 1; cursor: pointer; }
.cmt-rx b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); }
.cmt-rx.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.cmt-acts { display: inline-flex; align-items: center; gap: 0; margin-left: auto; }
.cmt-pw { position: relative; display: inline-flex; }
.cmt-a { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 7px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cmt-a:hover, .cmt-a:focus-visible { background: var(--fill-2); color: var(--text); }
.cmt-a.dng:hover { color: var(--danger); }
.cmt-pick { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 99px; background: var(--raised, var(--surface)); box-shadow: var(--sh-sm); }
.cmt-pick[hidden] { display: none; }
.cmt-pick button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 17px; cursor: pointer; }
.cmt-pick button:hover { background: var(--fill-2); }
@media (hover: hover) and (pointer: fine) {
  .cmt .cmt-acts { opacity: 0; transition: opacity .12s; }
  .cmt:hover .cmt-acts, .cmt:focus-within .cmt-acts, .cmt-acts:has(.cmt-pick:not([hidden])) { opacity: 1; }
}
@media (max-width: 480px) { .cmt-al { display: none; } .cmt-a { padding: 0 8px; } }
.mention.me { padding: 0 3px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tk-new { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; color: var(--p-700, var(--accent)); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tk-new::before, .tk-new::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.tk-cmp { margin: 6px 0 0; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.tk-cmp:focus-within { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.tk-cmp textarea { width: 100%; min-height: 44px; border: 0; background: transparent; box-shadow: none; resize: vertical; padding: 6px 6px; }
.tk-cmp textarea:focus { outline: none; box-shadow: none; }
.tk-cmp-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 0; }
.tk-rp { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 6px 4px 6px 10px; border-left: 3px solid var(--accent); border-radius: 6px; background: var(--fill); font-size: 13px; }
.tk-rp[hidden] { display: none; }
.tk-rp .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-rp > .i { flex: none; color: var(--accent); }
@media (pointer: coarse) { .cmt-tip, .tk-tip { display: none; } .cmt-a, .cmt-rx { height: 32px; } .tk-cmp-f { justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { .cmt { transition: none; } }

/* ---------------------------------------------------------------- 6.66 descrição do arquivo (s_v666.js) */
.fx-d { margin: 3px 0 0; font-size: 12px; line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fx-d.ed { cursor: text; border-radius: 4px; }
.fx-d.ed:hover, .fx-d.ed:focus-visible { background: var(--fill); color: var(--text); outline: none; }
.fx-d.add { display: inline-flex; align-self: flex-start; align-items: center; gap: 3px; height: 22px; padding: 0 6px 0 3px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.fx-d.add:hover, .fx-d.add:focus-visible { background: var(--fill-2); color: var(--text); }
.fx-de { width: 100%; height: 30px; min-height: 0; margin: 3px 0 0; padding: 4px 7px; font-size: 12px; }
.fl-d { margin-top: 2px; font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.fs-note { margin: 10px 0 0; padding: 8px 10px; border-left: 3px solid color-mix(in srgb, var(--accent) 55%, var(--border)); border-radius: 6px; background: var(--fill); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
@media (pointer: coarse) { .fx-d.add { height: 30px; } .fx-de { height: 36px; font-size: 16px; } }

/* ---------------------------------------------------------------- 6.67 modo foco (s_v667.js) */
.tk-foc { flex: none; gap: 6px; }
.tk-foc.on { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--text); }
.tk-foc.on .i { color: var(--accent); }
@media (max-width: 480px) { .tk-foc-l { display: none; } .tk-foc { width: 36px; padding: 0; justify-content: center; } }
.fcb { position: fixed; z-index: 85; left: calc(var(--side-w) + 16px); bottom: calc(16px + var(--sab, 0px)); display: flex; align-items: center; gap: 2px;
  width: max-content; max-width: min(560px, calc(100vw - var(--side-w) - 32px)); padding: 6px 6px 6px 12px; border: 1px solid var(--border-strong); border-radius: 14px;
  background: var(--raised, var(--surface)); color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.22); animation: fcbIn .18s ease both; }
@keyframes fcbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fcb-dot { flex: none; width: 8px; height: 8px; margin-right: 6px; border-radius: 99px; background: var(--text-muted); }
.fcb-dot.run { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.fcb-t { display: flex; flex-direction: column; min-width: 0; max-width: 260px; margin-right: 8px; color: var(--text); text-decoration: none; line-height: 1.2; }
.fcb-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.fcb-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--text-muted); }
.fcb-t:hover b { text-decoration: underline; }
.fcb-n { flex: none; min-width: 58px; margin-right: 2px; font: 600 15px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: .01em; text-align: right; }
.fcb .icon-btn { width: 34px; height: 34px; flex: none; }
.fcb-play { color: var(--accent); }
.fcb-more { flex: none; height: 30px; padding: 0 8px; gap: 2px; font-size: 12px; }
.fcb-list { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); padding: 6px; border: 1px solid var(--border-strong); border-radius: 14px;
  background: var(--raised, var(--surface)); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.fcb-li { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.fcb-li.on { background: var(--fill); }
.fcb-li > button:first-child { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 7px 8px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.fcb-li > button:first-child:hover { background: var(--fill-2); }
.fcb-li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.fcb-li small { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fcb-all { display: block; margin: 4px 8px 2px; }
body.has-fcb #content::after { content: ""; display: block; height: 72px; }
body.has-fcb .toast, body.has-fcb .undo-bar { bottom: calc(80px + var(--sab, 0px)); }
/* demanda em foco: o resto do sistema apagado (volta ao passar o mouse ou focar com o teclado); nada muda de lugar */
.mf-foco .top > *, .mf-foco .tabbar { opacity: .38; transition: opacity .2s ease; }
.mf-foco .top:focus-within > *, .mf-foco .top:has(.pop-menu:not([hidden])) > *, .mf-foco .tabbar:focus-within { opacity: 1; }
@media (min-width: 768px) { .mf-foco .side { opacity: .4; transition: opacity .25s ease, filter .25s ease; } .mf-foco .side:focus-within { opacity: 1; filter: none; } }
/* mouse: desfoca o menu lateral e tudo volta ao passar o mouse (no toque não existe "passar", então só apaga) */
@media (hover: hover) and (pointer: fine) {
  .mf-foco .top:hover > *, .mf-foco .tabbar:hover { opacity: 1; }
  .mf-foco .side { filter: blur(1.2px) grayscale(.6); }
  .mf-foco .side:hover { opacity: 1; filter: none; }
}
@media (max-width: 767px) {
  .fcb { left: 10px; right: 10px; bottom: calc(var(--tabbar-h, 64px) + var(--sab, 0px) + 8px); width: auto; max-width: none; padding: 5px 4px 5px 10px; }
  .fcb-t { flex: 1; max-width: none; }
  .fcb-list { left: 0; right: 0; width: auto; }
  body.has-fcb .toast, body.has-fcb .undo-bar { bottom: calc(var(--tabbar-h, 64px) + var(--sab, 0px) + 66px); }
  body.has-fcb .nw-card { bottom: calc(var(--tabbar-h, 64px) + env(safe-area-inset-bottom) + 66px); }
  body.nav-open .fcb { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fcb { animation: none; } .mf-foco .side, .mf-foco .top > *, .mf-foco .tabbar { transition: none; } }
@media print { .fcb { display: none; } }

/* ---------------------------------------------------------------- 6.68 Guia em uma página: texto primeiro, vídeo compacto (s_help.js) */
a.hp-cat { text-decoration: none; }
.hp-cats { margin: 4px 0 2px; }
.hp-g { margin: 26px 0 0; scroll-margin-top: 80px; }
.hp-g:first-child { margin-top: 16px; }
.hp-gh2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.hp-gt { flex: 1; min-width: 0; }
.hp-gh2 h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.hp-gh2 p { margin: 2px 0 0; }
.hp-gi { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--p-50, rgba(255,107,0,.1)); color: var(--p-500, #FF6B00); }
.hp-vbtn { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease; }
.hp-vbtn:hover, .hp-vbtn:focus-visible { border-color: var(--border-strong, var(--text-muted)); }
.hp-vthumb { position: relative; flex: none; width: 76px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.hp-vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-vthumb .hp-play { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.hp-vtx b { display: block; font-size: 13px; font-weight: 600; }
.hp-vtx small { display: block; font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dlg .hp-vid { margin: 0; }
.dlg .hp-vid.is-v .hp-vid-box { height: min(68vh, 600px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; }
.hp-g > .hp-inst { margin: 0 0 12px; }
@media (max-width: 767px) {
  .hp-cats { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hp-cats::-webkit-scrollbar { display: none; }
  .hp-cat { flex: none; }
  .hp-gh2 { flex-wrap: wrap; }
  .hp-vbtn { order: 3; width: 100%; padding-right: 10px; }
}

/* ---------------------------------------------------------------- 6.68.1 rodapé dos documentos (proposta, contrato, relatório) */
/* 4 contatos em uma coluna passavam dos 21 mm do rodapé e a última linha (o site) era cortada: agora ficam em duas colunas */
.pd-foot-t { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 7mm; row-gap: 1.5px; align-content: center; justify-content: start; min-width: 0; padding: 2mm 0; }
.pd-foot-t b { grid-column: 1 / -1; }
.pd-foot-t span { min-width: 0; white-space: nowrap; }
@media (max-width: 640px) { .pd-foot-t { grid-template-columns: minmax(0, 1fr); } .pd-foot-t span { white-space: normal; overflow-wrap: anywhere; } }
/* 6.68.2 caixa do link (proposta/contrato/relatório na coluna estreita): "Desativar" + "Validade…" passavam 11 px da caixa cinza.
   As ações agora ocupam a largura que sobra e o menu encolhe (até 170 px), sem sair da caixa. */
.lk-box .lk-acts { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.lk-box .lk-exp { flex: 1 1 120px; min-width: 0; }
/* 6.69 proposta aceita: painel de agradecimento + PIX do sinal (topo da página do cliente) e comemoração (uma vez, logo depois do aceite).
   Cor da marca em --pc; texto em cima dela em --pc-ink (escuro ou claro, pelo contraste). Nada disso sai no PDF/impressão (.no-print). */
.pp9 { --pc: #F5A623; --pc-ink: #141414; width: 210mm; max-width: 100%; margin: 0 auto 18px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-md); scroll-margin-top: 76px; }
.pp9-hero { position: relative; padding: 18px 24px 24px; text-align: center; color: #fff; background: radial-gradient(120% 150% at 100% 0%, color-mix(in srgb, var(--pc) 42%, transparent), transparent 62%), radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--pc) 18%, transparent), transparent 60%), #141414; }
.pp9-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.pp9-logo { height: 26px; max-width: 160px; object-fit: contain; } .pp9-logo.light { background: #fff; border-radius: 6px; padding: 3px 6px; box-sizing: content-box; }
.pp9-ag { font: 800 13px var(--font); letter-spacing: .06em; text-transform: uppercase; }
.pp9-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(46, 204, 113, .16); color: #7EE2B8; white-space: nowrap; }
.pp9-hero h2 { margin: 4px 0 6px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: #fff; outline: none; }
.pp9-hero p { margin: 0 auto; max-width: 64ch; font-size: 14px; color: rgba(255, 255, 255, .74); }
.pp9-ck { display: block; margin: 0 auto; overflow: visible; }
.pp9-ck-f { fill: var(--pc); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pp9stamp .5s cubic-bezier(.2, 1.6, .4, 1) .55s forwards; }
.pp9-ck-c { fill: none; stroke: var(--pc-l, var(--pc)); stroke-width: 2.2; stroke-dasharray: 145; stroke-dashoffset: 145; transform: rotate(-90deg); transform-origin: 26px 26px; animation: pp9draw .65s cubic-bezier(.65, 0, .35, 1) .05s forwards; }
.pp9-ck-p { fill: none; stroke: var(--pc-ink); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 32; stroke-dashoffset: 32; animation: pp9draw .35s cubic-bezier(.65, 0, .35, 1) .78s forwards; }
.pp9-ck-s { width: 52px; height: 52px; margin: 14px auto 10px; }
@keyframes pp9draw { to { stroke-dashoffset: 0; } }
@keyframes pp9stamp { 0% { transform: scale(0); } 70% { transform: scale(1.14); } 100% { transform: scale(1); } }
.pp9 { animation: pp9rise .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pp9rise { from { opacity: 0; transform: translateY(12px); } }
.pp9-pay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 24px 18px; }
.pp9-eb { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.pp9-amt { display: block; margin: 2px 0; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.pp9-base { display: block; font-size: 13px; color: var(--text-muted); }
.pp9-copy { margin-top: 14px; width: 100%; max-width: 320px; min-height: 46px; justify-content: center; background: var(--pc); border-color: var(--pc); color: var(--pc-ink); font-weight: 600; }
.pp9-copy:hover { filter: brightness(1.05); } .pp9-copy.ok { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.pp9-how { margin: 8px 0 0; font-size: 12.5px; color: var(--text-muted); }
.pp9-qrt { display: none; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.pp9-dl { display: grid; gap: 6px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-muted); }
.pp9-dl > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.pp9-dl dt { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.pp9-dl dd { display: flex; align-items: center; gap: 2px; margin: 0; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.pp9-dl dd .icon-btn { width: 28px; height: 28px; flex: none; }
.pp9-code { margin-top: 8px; font-size: 12.5px; color: var(--text-muted); } .pp9-code summary { cursor: pointer; width: max-content; }
.pp9-code textarea { width: 100%; margin-top: 6px; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; resize: none; }
.pp9-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.pp9-qr-box { width: 196px; height: 196px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 20px rgba(0, 0, 0, .06); box-sizing: border-box; }
.pp9-qr-box svg { display: block; width: 100%; height: 100%; }
.pp9-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0 24px 16px; list-style: none; counter-reset: pp9s; }
.pp9-steps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 20px; }
.pp9-steps li { counter-increment: pp9s; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 12px 44px; position: relative; border-radius: 12px; background: var(--surface-subtle); border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.pp9-steps li::before { content: counter(pp9s); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--pc); color: var(--pc-ink); font-size: 12px; font-weight: 700; }
.pp9-steps li b { color: var(--text); font-size: 13.5px; }
.pp9-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 0 24px 22px; }
.pp9-foot:empty { display: none; }
.pp9-wa { min-height: 42px; }
.pp9-safe { display: flex; align-items: flex-start; gap: 6px; flex: 1 1 260px; margin: 0; font-size: 12px; color: var(--text-muted); } .pp9-safe .i { flex: none; margin-top: 2px; }
@media (max-width: 640px) {
  .pp9 { border-radius: 16px; margin-bottom: 14px; }
  .pp9-hero { padding: 14px 16px 20px; } .pp9-hero h2 { font-size: 21px; }
  .pp9-pay { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 16px 14px; }
  .pp9-amt { font-size: 30px; } .pp9-copy { max-width: none; }
  .pp9-qrt { display: inline; }
  .pp9-qr { display: none; } .pp9-qr.show { display: flex; }
  .pp9-steps, .pp9-steps.two { grid-template-columns: minmax(0, 1fr); padding: 0 16px 14px; }
  .pp9-steps.two { padding-top: 16px; }
  .pp9-foot { padding: 0 16px 18px; } .pp9-wa { flex: 1 1 100%; justify-content: center; }
}
/* comemoração */
html.pp9-lock, html.pp9-lock body { overflow: hidden; }
.pp9-cel { --pc: #F5A623; --pc-ink: #141414; position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(80vmax 80vmax at 50% 40%, color-mix(in srgb, var(--pc) 22%, #0e0e0e) 0%, #0a0a0a 70%); animation: pp9in .3s ease-out; }
.pp9-cel.out { opacity: 0; transform: scale(1.02); transition: opacity .22s ease-in, transform .22s ease-in; }
/* luz da marca atrás de tudo: entra uma vez e para (girando sem parar custava ~15% dos quadros sem placa de vídeo) */
.pp9-aura { position: absolute; left: 50%; top: 42%; width: 140vmax; height: 140vmax; margin: -70vmax 0 0 -70vmax; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side at 32% 38%, color-mix(in srgb, var(--pc) 40%, transparent), transparent 70%), radial-gradient(closest-side at 70% 64%, color-mix(in srgb, var(--pc-l, var(--pc)) 26%, transparent), transparent 70%);
  animation: pp9aura 1.4s cubic-bezier(.2, .8, .2, 1) .1s forwards; }
@keyframes pp9aura { from { opacity: 0; transform: scale(1.18) rotate(-12deg); } to { opacity: 1; transform: none; } }
.pp9-cf { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.pp9-cel-in { position: relative; z-index: 2; max-width: 460px; }
.pp9-cel-in > * { animation: pp9rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.pp9-duo { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px; animation-delay: .1s !important; }
.pp9-cel-logo { display: block; height: 38px; max-width: 200px; object-fit: contain; } .pp9-cel-logo.light { background: #fff; border-radius: 8px; padding: 5px 10px; box-sizing: content-box; }
.pp9-cel-ag { font: 800 15px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.pp9-x { font-size: 20px; font-weight: 300; color: rgba(255, 255, 255, .45); }
.pp9-cm { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.pp9-cm.ini { display: grid; place-items: center; background: var(--pc); color: var(--pc-ink); font: 800 15px var(--font); letter-spacing: .02em; }
.pp9-seal { position: relative; width: 112px; height: 112px; margin: 0 auto; animation: none !important; }
.pp9-ck-l { position: relative; z-index: 1; width: 112px; height: 112px; filter: drop-shadow(0 8px 28px color-mix(in srgb, var(--pc) 50%, transparent)); }
.pp9-cel .pp9-ck-c { animation-delay: .25s; animation-duration: .7s; }
.pp9-cel .pp9-ck-f { animation-delay: .82s; }
.pp9-cel .pp9-ck-p { animation-delay: .98s; }
.pp9-wave { position: absolute; inset: 6px; border-radius: 50%; border: 2px solid var(--pc-l, var(--pc)); opacity: 0; transform: scale(.7); animation: pp9wave 1s cubic-bezier(.1, .7, .3, 1) .95s forwards; }
.pp9-wave.w2 { animation-delay: 1.15s; border-width: 1px; }
@keyframes pp9wave { 0% { opacity: .7; transform: scale(.8); } 100% { opacity: 0; transform: scale(2.6); } }
.pp9-cel h2 { margin: 22px 0 8px; font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; color: #fff; animation-delay: 1.05s !important; }
.pp9-cel p { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .78); animation-delay: 1.17s !important; }
.pp9-pair { display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); animation-delay: 1.27s !important; }
.pp9-pair i { font-style: normal; color: var(--pc-l, var(--pc)); margin: 0 4px; }
.pp9-cel-go { display: flex; margin: 26px auto 0; min-height: 50px; padding: 0 24px; gap: 8px; border-radius: 999px; background: var(--pc); border-color: var(--pc); color: var(--pc-ink); font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--pc) 35%, transparent); animation-delay: 1.4s !important; }
.pp9-cel-go .i { animation: pp9nudge 1.4s ease-in-out 2.4s 3; }
@keyframes pp9nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.pp9-cel-go:focus-visible { outline: 2px solid rgba(255, 255, 255, .75); outline-offset: 4px; }
@keyframes pp9in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) { .pp9-cel h2 { font-size: 28px; } .pp9-seal, .pp9-ck-l { width: 96px; height: 96px; } .pp9-cel-logo { height: 32px; max-width: 160px; } .pp9-cm { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) {
  .pp9, .pp9-cel, .pp9-cel-in > *, .pp9-aura, .pp9-cel-go .i { animation: none !important; } .pp9-aura { opacity: 1; } .pp9-cel.out { transition: none; }
  .pp9-ck-c, .pp9-ck-p { animation: none; stroke-dashoffset: 0; } .pp9-ck-f { animation: none; transform: none; } .pp9-wave { display: none; }
}
.pp9-cel.calm, .pp9-cel.calm .pp9-cel-in > *, .pp9-cel.calm .pp9-aura, .pp9-cel.calm .pp9-cel-go .i { animation: none !important; } .pp9-cel.calm .pp9-aura { opacity: 1; }
.pp9-cel.calm .pp9-ck-c, .pp9-cel.calm .pp9-ck-p { animation: none; stroke-dashoffset: 0; } .pp9-cel.calm .pp9-ck-f { animation: none; transform: none; } .pp9-cel.calm .pp9-wave { display: none; }
/* 6.70 Marca e propostas: situação da chave PIX e a caixa de conferência na prévia */
.pp9-st { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 4px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.pp9-st .i { flex: none; margin-top: 2px; }
.pp9-st.ok { background: color-mix(in srgb, #1f9d55 12%, transparent); color: var(--text); } .pp9-st.ok .i { color: #1f9d55; }
.pp9-st.warn { background: color-mix(in srgb, #E8A317 14%, transparent); color: var(--text); } .pp9-st.warn .i { color: #C98500; }
.pp9-cf-box { margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, #E8A317 45%, var(--border)); background: color-mix(in srgb, #E8A317 8%, var(--surface)); font-size: 13.5px; }
.pp9-cf-box > b { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pp9-cf-box ol { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 4px; }
/* com o painel no topo, a barra flutuante "Proposta aceita… Obrigado!" repetia o mesmo (e cobria 3 linhas no celular) */
#pub.pdview:has(.pp9) .pd-accept.done { display: none; }
#pub.pdview:has(.pp9) .pd-wrap { padding-bottom: calc(40px + var(--sab, 0px)); }
@media print { .pp9, .pp9-cel { display: none !important; } }
/* 6.71 proposta: faixa da prévia da agência, cartão do link de pagamento (detalhe) e botão "Pagar no cartão" (cliente) */
.pv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; padding-top: calc(10px + var(--sat, 0px)); background: repeating-linear-gradient(-45deg, #2b2200, #2b2200 12px, #332800 12px, #332800 24px); color: #FFE7A3; border-bottom: 1px solid #5c4800; font-size: 13px; }
.pv-t { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 320px; min-width: 0; } .pv-t .i { flex: none; margin-top: 2px; } .pv-t b { color: #fff; }
.pv-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-bar .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; } .pv-bar .btn:hover { background: rgba(255, 255, 255, .16); }
.pv-bar + .pd-bar-top { top: 0; }
.pl-card h3 { display: flex; align-items: center; gap: 8px; } .pl-card h3 .small { font-weight: 400; }
.pl-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-muted); }
.pl-row > div { display: flex; flex-direction: column; min-width: 0; } .pl-row b { overflow-wrap: anywhere; }
.pl-ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: color-mix(in srgb, #009EE3 16%, transparent); color: #009EE3; }
.pl-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; }
.pp9-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 0 24px 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-subtle); }
.pp9-card.solo { margin-top: 20px; }
.pp9-card-t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; font-size: 12.5px; color: var(--text-muted); }
.pp9-card-t b { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.pp9-cardbtn { min-height: 44px; gap: 8px; font-weight: 600; }
.pp9-cardbtn.btn-primary { background: var(--pc); border-color: var(--pc); color: var(--pc-ink); }
@media (max-width: 640px) { .pp9-card { margin: 0 16px 14px; } .pp9-cardbtn { flex: 1 1 100%; justify-content: center; } .pv-acts .btn { flex: 1; justify-content: center; } }
/* 6.72 Plano do mês: campo Série com todas as séries e arrastar ideias entre séries (computador) */
.pls-pick { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pls-pick select, .pls-pick input { width: 100%; }
.plx-s { transition: box-shadow .12s ease, background-color .12s ease; }
body.pl-dragging .plx-s.pl-can { box-shadow: inset 0 0 0 1px var(--border-strong); }
body.pl-dragging .plx-s.pl-drop { box-shadow: inset 0 0 0 2px var(--p-500), 0 0 0 3px color-mix(in srgb, var(--p-500) 18%, transparent); background: color-mix(in srgb, var(--p-500) 6%, var(--surface)); }
body.pl-dragging .plx-s.pl-drop .plx-h::after { content: "Soltar aqui"; margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--p-600); background: color-mix(in srgb, var(--p-500) 14%, transparent); }
.pl-dragging-el { opacity: .45; }
@media (hover: hover) and (pointer: fine) { .plx-chip[draggable="true"], .plx-row[draggable="true"], .plx-lr[draggable="true"] { cursor: grab; } .plx-chip[draggable="true"]:active, .plx-row[draggable="true"]:active, .plx-lr[draggable="true"]:active { cursor: grabbing; } }
@media (prefers-reduced-motion: reduce) { .plx-s { transition: none; } }
/* 6.72 o cartão "Novidades" (z 900) ficava por cima do botão Salvar das janelas: some enquanto uma janela está aberta */
body:has(#dlgRoot) .nw-card, body:has(.pal-root) .nw-card, body:has(.pp9-cel) .nw-card { display: none; }
/* 6.73 Dia de gravação: marcas no plano e na demanda, cartão no plano do cliente, escolher vídeos, lista e a tela de gravação */
.gv-tag { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 99px; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--info, #2563EB); background: var(--info-bg, rgba(37,99,235,.1)); text-decoration: none; flex: none; }
.gv-tag.done { color: var(--success); background: var(--success-bg); }
.gv-tag.mini { width: 20px; padding: 0; justify-content: center; }
.gv-tag:hover { filter: brightness(.95); text-decoration: none; }
.plx-tile > .gv-tag { position: absolute; top: 6px; right: 6px; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,.2); background: rgba(255,255,255,.94); }
.plx-tile > .plx-tst + .gv-tag { top: 34px; }
.plx-tile > .gv-tag.done { color: #15803D; }
.gv-tchip { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 6px 0 2px; padding: 6px 10px; border-radius: 10px; background: var(--info-bg, rgba(37,99,235,.1)); color: var(--info, #2563EB); font-size: 13px; font-weight: 600; text-decoration: none; }
.gv-tchip.done { background: var(--success-bg); color: var(--success); }
.gv-tchip small { font-weight: 400; color: var(--text-muted); }
.gv-card { margin: 0 0 14px; padding: 12px 16px; }
.gv-card-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.gv-card-h > b { font-size: 14px; }
.gv-card-s { flex: 1 1 260px; }
.gv-chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.gv-chip { display: flex; align-items: center; gap: 8px; flex: none; max-width: 320px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-subtle); color: var(--text); text-decoration: none; font-size: 13px; }
.gv-chip:hover { border-color: var(--border-strong); text-decoration: none; }
.gv-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gv-chip.past { opacity: .7; }
.gv-cd { flex: none; font-size: 12px; font-weight: 600; color: var(--p-600); text-transform: capitalize; }
.gv-cn { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.gv-chip.ok .gv-cn { color: var(--success); font-weight: 600; }
.gv-pk-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.gv-pk-h .seg button { display: grid; place-items: center; }
.gv-pk-m { display: inline-flex; align-items: center; padding: 0 10px; font-weight: 600; min-width: 140px; justify-content: center; }
.gv-pk { display: grid; gap: 14px; max-height: min(52vh, 520px); overflow-y: auto; padding: 2px; }
.gv-pk-g { display: grid; gap: 6px; }
.gv-pk-r { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); cursor: pointer; }
.gv-pk-r:has(input:checked) { border-color: var(--p-500); background: var(--p-50); }
.gv-pk-r.dis { opacity: .6; cursor: default; }
.gv-pk-r input { width: 20px; height: 20px; flex: none; accent-color: var(--p-500); }
.gv-pk-th { position: relative; flex: none; width: 44px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--surface-muted); display: grid; place-items: center; color: var(--text-muted); }
.gv-pk-th .lt { position: absolute; inset: 0; }
.gv-pk-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gv-pk-t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-pk-t small { color: var(--text-muted); font-size: 12px; }
.gv-pk-e { margin: 8px 2px; }
.gv-list { display: grid; gap: 8px; }
.gv-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; }
.gv-row:hover { border-color: var(--border-strong); text-decoration: none; }
.gv-row.past { opacity: .75; }
.gv-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 52px; flex: none; border-radius: 10px; background: var(--p-50); color: var(--p-600); line-height: 1.05; }
.gv-date b { font-size: 20px; } .gv-date small { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.gv-row-t { display: flex; flex-direction: column; min-width: 0; flex: 1; } .gv-row-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gv-row-t small { color: var(--text-muted); }
.gv-prog { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; width: 150px; } .gv-prog small { color: var(--text-muted); font-size: 12px; }
.gv-bar { position: relative; display: block; width: 100%; height: 6px; border-radius: 99px; background: var(--surface-muted); overflow: hidden; }
.gv-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--success); transition: width .35s ease; }
.gv-past { margin-top: 18px; } .gv-past summary { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; list-style: none; }
.gv-past[open] summary .i { transform: rotate(90deg); }
@media (max-width: 640px) { .gv-row { gap: 10px; padding: 10px 12px; } .gv-row .clogo { display: none; } .gv-prog { width: 92px; } }
/* a tela de gravação: o resto do sistema sai da frente */
body.gv-mode .shell { grid-template-columns: minmax(0, 1fr); }
body.gv-mode .side, body.gv-mode .tabbar, body.gv-mode .top, body.gv-mode .nw-card { display: none !important; }
body.gv-mode .content { padding: 0 24px calc(96px + var(--sab)); padding-left: calc(24px + var(--sal)); padding-right: calc(24px + var(--sar)); max-width: 1220px; margin: 0 auto; }
.gv-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; margin: 0 -24px 12px; padding: calc(10px + var(--sat)) 24px 10px; background: color-mix(in srgb, var(--canvas) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.gv-tt { display: flex; flex-direction: column; min-width: 0; flex: 1; } .gv-tt b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gv-tt small { color: var(--text-muted); text-transform: none; }
.gv-pg { display: flex; flex-direction: column; gap: 4px; width: 170px; flex: none; } .gv-pg small { color: var(--text-muted); font-size: 12px; } .gv-pg small b { color: var(--text); font-size: 14px; }
.gv-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.gv-fs { position: relative; } .gv-fs small { position: absolute; right: 2px; bottom: 2px; font-size: 9px; font-weight: 700; color: var(--text-muted); }
.gv-wk.on { background: var(--warning-bg); border-color: transparent; color: var(--warning); }
.gv-notes, .gv-pend { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; white-space: pre-wrap; }
.gv-notes .i, .gv-pend .i { flex: none; margin-top: 2px; color: var(--text-muted); }
.gv-pend { background: var(--warning-bg); border-color: transparent; color: var(--text); } .gv-pend .i { color: var(--warning); }
.gv-f { margin: 0 0 12px; } .gv-f:empty { display: none; }
.gv-pg .gv-bar { background: var(--border-strong); }
.gv-card-h > .btn { margin-left: auto; }
.page-head .ph-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) { .page-head .ph-acts .btn > span { display: none; } }
.gv-all { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; background: var(--success-bg); color: var(--success); font-size: 15px; }
.gv-all span { color: var(--text); }
.gv-items { display: grid; gap: 14px; }
.gv-it { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; padding: 16px; border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 16px; background: var(--surface); scroll-margin-top: calc(84px + var(--sat)); transition: border-color .2s ease, background-color .2s ease; }
.gv-it.st-done { border-left-color: var(--success); background: color-mix(in srgb, var(--success-bg) 45%, var(--surface)); }
.gv-it.st-skip { border-left-color: var(--warning); }
.gv-it.gv-flash { animation: gvflash 1.2s ease; }
@keyframes gvflash { 0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-500) 40%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.gv-media { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gv-th { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; border-radius: 12px; overflow: hidden; background: var(--surface-muted); }
.gv-th .lt { position: absolute; inset: 0; }
.gv-th.none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-muted); aspect-ratio: 4 / 5; }
.gv-src { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.66); color: #fff; font-size: 12px; font-weight: 600; }
.gv-emb { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; border-radius: 12px; overflow: hidden; background: #000; }
.gv-emb.ig { aspect-ratio: auto; height: min(78vh, 760px); background: var(--surface-muted); }
.gv-emb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gv-ma { display: flex; flex-wrap: wrap; gap: 6px; } .gv-ma .btn { flex: 1 1 auto; justify-content: center; min-height: 40px; }
.gv-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gv-ih { display: flex; align-items: flex-start; gap: 12px; }
.gv-num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-muted); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.st-done .gv-num { background: var(--success); color: #fff; }
.gv-in { display: flex; flex-direction: column; min-width: 0; flex: 1; } .gv-in b { font-size: 18px; line-height: 1.3; } .gv-in small { color: var(--text-muted); font-size: 13px; }
.gv-st { flex: none; }
.gv-brief { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-subtle); color: var(--text-2); font-size: 14px; white-space: pre-wrap; }
.gv-sc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.gv-sc-t { font-size: var(--gv-fs, 16px); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.gv-sc-new { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 16px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: transparent; color: var(--text-muted); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.gv-sc-new:hover { border-color: var(--p-500); color: var(--text); } .gv-sc-new b { color: var(--p-600); }
.gv-sc-none { margin: 0; }
.gv-sc-ed { display: flex; flex-direction: column; gap: 6px; } .gv-sc-ed textarea { width: 100%; min-height: 180px; font-size: var(--gv-fs, 16px); line-height: 1.55; resize: vertical; }
.gv-sc-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.gv-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.gv-done { min-height: 48px; padding: 0 18px; gap: 8px; font-size: 15px; font-weight: 600; border-radius: 12px; }
.gv-done.on { background: var(--success); border-color: var(--success); color: #fff; }
.gv-done.pop { animation: gvpop .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes gvpop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.gv-skip { min-height: 48px; } .gv-skip.on { background: var(--warning-bg); color: var(--warning); }
.gv-who { margin: 0; font-size: 12px; color: var(--text-muted); } .gv-pw { display: flex; align-items: center; gap: 6px; color: var(--warning); }
.gv-next { position: fixed; right: calc(20px + var(--sar)); bottom: calc(20px + var(--sab)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--text); color: var(--canvas); font: inherit; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; }
.gv-next[hidden] { display: none; }
.gv-empty { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1100px) { .gv-it { grid-template-columns: 280px minmax(0, 1fr); gap: 18px; } }
@media (max-width: 760px) {
  body.gv-mode .content { padding-left: calc(12px + var(--sal)); padding-right: calc(12px + var(--sar)); }
  .gv-top { margin: 0 -12px 10px; padding-left: 12px; padding-right: 12px; gap: 8px; flex-wrap: wrap; }
  .gv-pg { order: 5; width: 100%; flex-direction: row; align-items: center; gap: 10px; } .gv-pg .gv-bar { flex: 1; } .gv-pg small { flex: none; }
  .gv-wk span { display: none; }
  .gv-it { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .gv-body { display: contents; }
  .gv-media { grid-row: 1; grid-column: 1; }
  .gv-ih { grid-row: 1; grid-column: 2; flex-wrap: wrap; gap: 8px; align-self: start; }
  .gv-num { width: 32px; height: 32px; font-size: 14px; border-radius: 10px; }
  .gv-st { display: none; }
  .gv-in b { font-size: 16px; }
  .gv-brief, .gv-sc, .gv-acts, .gv-who { grid-column: 1 / -1; }
  .gv-ma .btn { font-size: 12px; padding: 0 8px; min-height: 36px; }
  .gv-done { flex: 1 1 100%; justify-content: center; }
  .gv-it:has(.gv-emb) { grid-template-columns: minmax(0, 1fr); } .gv-it:has(.gv-emb) .gv-ih { grid-row: auto; grid-column: 1; }
  .gv-next { right: calc(12px + var(--sar)); bottom: calc(12px + var(--sab)); }
}
@media (prefers-reduced-motion: reduce) { .gv-it, .gv-bar i { transition: none; } .gv-done.pop, .gv-it.gv-flash { animation: none; } }
@media print { .gv-top, .gv-acts, .gv-next, .gv-ma { display: none !important; } }
/* 6.74 Link do planejamento: janela da agência e a página do cliente (série por série, com prévias) + modo Apresentar */
.ppv-lk { margin: 0 0 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); }
.ppv-lk-b { justify-content: flex-start; flex-wrap: wrap; margin-top: 10px; }
.ppv-lk-s { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; }
.ppv-lk-s .btn { margin-left: auto; }
.ppv-opt .row { align-items: flex-end; }
.ppv-ck { align-self: center; min-height: 40px; }
#pub.ppvw { background: var(--canvas); }
.ppv { max-width: 1160px; margin: 0 auto; padding: calc(12px + var(--sat)) 20px calc(40px + var(--sab)); }
.ppv-top { display: flex; align-items: center; gap: 12px; padding: 8px 0 14px; }
.ppv-ag { max-height: 34px; max-width: 160px; object-fit: contain; font-size: 15px; }
.ppv-hero { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--pc); margin-bottom: 18px; }
.ppv-hc { display: flex; align-items: center; gap: 14px; }
.ppv-hc .clogo { width: 56px; height: 56px; border-radius: 16px; flex: none; }
.ppv-hc h1 { margin: 2px 0 0; font-size: 28px; line-height: 1.15; }
.ppv-hc p { margin: 2px 0 0; color: var(--text-muted); font-size: 15px; }
.ppv-obj { margin: 16px 0 0; font-size: 16px; line-height: 1.5; white-space: pre-wrap; } .ppv-obj .eyebrow { margin-bottom: 4px; }
.ppv-kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .ppv-kw span { padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--pc) 12%, transparent); color: var(--text); font-size: 13px; font-weight: 600; }
.ppv-sum { margin: 14px 0 0; color: var(--text-muted); font-size: 14px; } .ppv-sum b { color: var(--text); }
.ppv-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ppv-nav button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-subtle); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ppv-nav button b { color: var(--text-muted); font-weight: 600; } .ppv-nav button:hover { border-color: var(--pc); }
.ppv-s { margin: 0 0 22px; scroll-margin-top: 12px; }
.ppv-sh { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 10px; } .ppv-sh h2 { margin: 0; font-size: 20px; } .ppv-sh span { color: var(--text-muted); font-size: 13px; }
.ppv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ppv-c { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; min-width: 0; }
.ppv-th { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-muted); overflow: hidden; }
.ppv-th .lt { position: absolute; inset: 0; }
.ppv-th.none { display: grid; place-items: center; color: var(--text-muted); aspect-ratio: 16 / 9; }
.ppv-src { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.66); color: #fff; font-size: 11px; font-weight: 600; }
.ppv-cb { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; min-width: 0; }
.ppv-n { font-size: 11px; font-weight: 700; color: var(--pc); letter-spacing: .04em; }
.ppv-cb b { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; } .ppv-cb small { color: var(--text-muted); font-size: 12.5px; }
.ppv-open { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--pc); text-decoration: none; } .ppv-open:hover { text-decoration: underline; }
.ppv-sc { margin-top: 6px; font-size: 14px; } .ppv-sc summary { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 600; color: var(--text-2); }
.ppv-sc p { margin: 6px 0 0; white-space: pre-wrap; line-height: 1.5; }
.ppv-more { margin-top: 10px; }
.ppv-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.ppv-foot b { color: var(--text); } .ppv-ct { display: flex; flex-wrap: wrap; gap: 6px 14px; } .ppv-ct span { display: inline-flex; align-items: center; gap: 5px; }
.ppv-pres { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--canvas); }
.ppv-ph { display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--sat)) 20px 12px; border-bottom: 1px solid var(--border); }
.ppv-ph h2 { margin: 0; font-size: 22px; } .ppv-pc { padding: 3px 10px; border-radius: 99px; background: var(--surface-muted); font-size: 12px; font-weight: 700; color: var(--text-muted); }
.ppv-pb { flex: 1; overflow-y: auto; padding: 18px 20px; }
.ppv-pb .ppv-grid { max-width: 1200px; margin: 0 auto; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ppv-pf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + var(--sab)); border-top: 1px solid var(--border); }
.ppv-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ppv-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--border-strong); cursor: pointer; }
.ppv-dots button.on { background: var(--pc); width: 22px; border-radius: 99px; }
@media (max-width: 640px) {
  .ppv { padding-left: 12px; padding-right: 12px; }
  .ppv-hero { padding: 16px; border-radius: 16px; } .ppv-hc h1 { font-size: 23px; } .ppv-hc .clogo { width: 46px; height: 46px; }
  .ppv-grid, .ppv-pb .ppv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ppv-cb { padding: 8px 10px 10px; } .ppv-cb b { font-size: 14px; }
  .ppv-pb { padding: 12px; } .ppv-ph { padding-left: 12px; padding-right: 12px; } .ppv-ph h2 { font-size: 18px; }
  .ppv-pf { padding-left: 12px; padding-right: 12px; } .ppv-pf .btn { padding: 0 12px; }
}
@media print { .ppv-top .btn, .ppv-nav, .ppv-more, .ppv-pres { display: none !important; } .ppv-c { break-inside: avoid; } }
/* 6.75 Tráfego: comparar pelo dia 1 + campanhas escolhidas no relatório. Cores das linhas: paleta categórica validada
   (daltonismo e contraste) para o fundo escuro (#151517) e o claro (#FFFFFF), sempre nesta ordem */
:root { --cmp-1: #3987e5; --cmp-2: #d95926; --cmp-3: #199e70; --cmp-4: #c98500; }
:root[data-theme="light"] { --cmp-1: #2a78d6; --cmp-2: #eb6834; --cmp-3: #1baf7a; --cmp-4: #eda100; }
.btn.v675-on { background: var(--fill-2); border-color: var(--border-strong); color: var(--text); font-weight: 600; }
.v675-m { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; }
.v675-m .check { min-height: 36px; }
.v675-q { display: flex; gap: 6px; margin: 0 0 8px; } .v675-q input { flex: 1; min-width: 0; }
.v675-list { max-height: min(44vh, 380px); overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.v675-c { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; min-height: 40px; }
.v675-c:hover { background: var(--fill); }
.v675-c span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.v675-c small { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.v675-c.old span { color: var(--text-2); }
.v675-foot { margin: 10px 0 0; }
.v675-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.v675-bar .seg { display: inline-flex; }
.v675-d { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.v675-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.v675-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 3px 3px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); font-size: 14px; font-weight: 600; }
.v675-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.v675-chip i, .v675-leg i, .v675-hd i, .v675-card h4 i { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; }
.v675-chip .icon-btn { width: 32px; height: 32px; flex: none; }
.v675-res { transition: opacity .15s; } .v675-res.v675-busy { opacity: .55; pointer-events: none; }
.v675-res > .card { margin-bottom: 12px; }
.v675-sum p { margin: 0; font-size: 15px; line-height: 1.55; }
.v675-sum .v675-note { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font-size: 13px; }
.v675-ch .card-h { flex-wrap: wrap; gap: 8px; }
.v675-ch h3, .v675-tb h3 { display: inline-flex; align-items: center; gap: 8px; }
.v675-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 2px 0 8px; font-size: 13px; color: var(--text-2); }
.v675-leg span { display: inline-flex; align-items: center; gap: 6px; }
.v675-svg { display: block; width: 100%; height: auto; }
.v675-svg path, .v675-svg circle, .v675-svg .v675-el { pointer-events: none; }
.v675-el { font-size: 11.5px; font-weight: 600; fill: var(--text-2); }
.v675-cap { margin: 6px 0 0; }
.v675-t th[scope="row"] { text-align: left; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.v675-t thead th { vertical-align: bottom; min-width: 150px; }
.v675-t td { vertical-align: top; }
.v675-t td.v675-best { background: color-mix(in srgb, var(--success) 9%, transparent); }
.v675-hd { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.v675-cards { display: none; }
.v675-pick summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; cursor: pointer; padding: 2px 0; }
.v675-s { width: 100%; margin: 10px 0 0; }
.v675-its { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; margin-top: 10px; }
.v675-it { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; min-width: 0; }
.v675-it.on { border-color: var(--border-strong); background: var(--fill); }
.v675-it.off { opacity: .5; cursor: not-allowed; }
.v675-it .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v675-it b { font-size: 14px; overflow-wrap: anywhere; } .v675-it small { color: var(--text-muted); font-size: 12px; }
.v675-th { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-muted); }
.v675-th.none { display: grid; place-items: center; color: var(--text-muted); }
@media (max-width: 640px) {
  .v675-tb .tscroll { display: none; }
  .v675-cards { display: grid; gap: 10px; }
  .v675-card { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
  .v675-card.best { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
  .v675-card h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; overflow-wrap: anywhere; }
  .v675-card dl { display: grid; gap: 7px; margin: 0; }
  .v675-card dl > div { display: flex; justify-content: space-between; gap: 12px; }
  .v675-card dt { color: var(--text-muted); font-size: 13px; } .v675-card dd { margin: 0; text-align: right; font-size: 14px; }
  .v675-its { grid-template-columns: 1fr; }
  .v675-ch .seg { width: 100%; } .v675-ch .seg button { flex: 1 1 0; padding: 0 6px; font-size: 13px; }
}
@media print { .v675-bar, .v675-pick, .v675-chip .icon-btn { display: none !important; } }
/* 6.75.1: nome inteiro embaixo do nome curto e aviso de poucos resultados na comparação */
.v675-warn { display: block; margin-top: 6px; color: var(--text-2); font-size: 13.5px; }
.v675-full { margin: 2px 0 0; font-weight: 400; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.v675-card .v675-full { margin: -4px 0 8px; }
/* 6.76 Cara de aplicativo: tela de abertura no F5 (só CSS, sem esperar o JavaScript) e barra fina de carregamento.
   A abertura some sozinha quando o app, o login ou uma página pública aparecem. O avião entra depois de 0,25 s (carga
   rápida nem chega a mostrar) e a barrinha só depois de 0,6 s. Sem movimento para quem pediu "reduzir movimento". */
.splash { position: fixed; inset: 0; z-index: 400; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--canvas); color: var(--accent); pointer-events: none; }
.splash-m { width: 60px; height: 60px; opacity: 0; transform: translateY(6px); animation: splIn .45s cubic-bezier(.2, .8, .2, 1) .25s forwards; }
.splash-m svg { display: block; width: 100%; height: 100%; }
.splash-b { position: relative; width: 120px; height: 3px; border-radius: 99px; background: var(--fill-2); overflow: hidden; opacity: 0; animation: splIn .3s ease .6s forwards; }
.splash-b i { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: inherit; background: var(--accent); animation: splBar 1.1s ease-in-out infinite; }
@keyframes splIn { to { opacity: 1; transform: none; } }
@keyframes splBar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
body:has(> #app:not([hidden])) > #splash, body:has(> #login:not([hidden])) > #splash, body:has(> #pub:not([hidden])) > #splash { display: none; }
.mf-load { position: fixed; top: var(--sat, 0px); left: 0; right: 0; z-index: 1200; height: 2px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.mf-load.on { opacity: 1; }
.mf-load i { position: absolute; top: 0; bottom: 0; left: 0; width: 35%; background: var(--accent); animation: splBar 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .splash-m, .splash-b { animation: none; opacity: 1; transform: none; } .splash-b i, .mf-load i { animation: none; width: 100%; opacity: .55; } }
@media print { #splash, .mf-load { display: none !important; } }
/* 6.77 Auditoria de 14/10 (UX):
   - aba escolhida não "some" depois de tocar no celular (o :hover preso no toque pintava o texto da cor do fundo)
   - criativos do Tráfego: rótulo e número na mesma linha e a barra embaixo (antes a barra ficava com 0 px e o número saía do cartão)
   - lista de Demandas no celular: título com até 2 linhas e a etapa na linha de baixo, sem cortar no meio da palavra
   - portal no celular: abas em grade (nenhuma escondida para o lado) e rótulo curto
   - Início no celular: os números da semana sobem para logo depois dos avisos; Próximas datas em grade de 2, até 4 */
.seg .on, .seg .on:hover, .seg a.on:hover, .seg button.on:hover { color: var(--solid-ink); }
.cr-vr { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; }
.cr-vr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-vr i { grid-column: 1 / -1; grid-row: 2; }
.cr-vh { flex-wrap: wrap; gap: 0 6px; } .cr-vh span, .cr-vh b { white-space: nowrap; }
.po-tsh { display: none; }
@media (pointer: coarse) { .seg a, .seg button { height: 36px; } }
@media (max-width: 767px) {
  table.tl-t td.tl-ti { flex: 1 1 100%; }
  table.tl-t td.tl-ti .tl-tw > a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  table.tl-t td.tl-s { order: 2; margin-left: 0; max-width: 44%; }
  table.tl-t td.tl-s .badge { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 22px; }
  table.tl-t td.tl-s .badge .dot { display: inline-block; vertical-align: middle; margin-right: 4px; }
  table.tl-t td.tl-c { max-width: 40%; }
  table.tl-t tr::after { display: none; }
  .po-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); border-radius: 16px; }
  .po-tabs button { justify-content: center; min-width: 0; padding: 0 6px; }
  .po-tabs button:has(.po-tsh) .po-tlab { display: none; }
  .po-tabs .po-tsh { display: inline; }
  .hm-wrap .hm-ks { order: 0; margin: 0 0 16px; }
  .hm-wrap .hm-main { order: 1; }
  .hm-dates { margin: 0 0 16px; }
  .hm-dates .hm-sh { padding: 0; }
  .hm-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding: 0; gap: 8px; scroll-snap-type: none; }
  .hm-dc { flex: none; max-width: none; min-width: 0; }
  .hm-dc:nth-child(n+5) { display: none; }
}
/* 6.77 Proposta (link do cliente): "Tirar dúvida" no WhatsApp ao lado do aceite; "Recusar" vira um link discreto */
.pd-accept .pd-no { flex: none; padding: 0 6px; color: var(--text-2); white-space: nowrap; }
@media (max-width: 440px) { .pd-accept .pd-lg { display: none; } }
@media (max-width: 340px) { .pd-accept .btn { padding: 0 8px; } .pd-accept .pd-no { padding: 0 2px; } }
.pd-accept .pd-ask { flex: none; white-space: nowrap; }
@media (max-width: 767px) { .pd-accept .pd-ask, .pd-accept .pd-no { flex: 0 0 auto; } .pd-accept .pd-ask { padding: 0 10px; } }
/* 6.77 Tráfego no notebook (até 1439 px): a tabela de campanhas cabe sem rolar para o lado. Alcance e CPM ficam no relatório
   e o período vai para baixo do nome da campanha */
@media (min-width: 768px) and (max-width: 1439px) { .ads-tbl .tc-x { display: none; } .ads-tbl .tc-xs { display: inline !important; } }
/* 6.77 Link de aprovação: aprovar todas de uma vez */
.pa-all { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 14px; }
.pa-all .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 767px) { .pa-all { flex-wrap: wrap; } .pa-all .btn { width: 100%; justify-content: center; } }
/* 6.78 Planejamento: dia em que a ideia entrou no plano (a ideia pode passar de um mês para outro) */
.pl-add { margin-left: auto; font-size: 11px; line-height: 16px; color: var(--text-muted); white-space: nowrap; }
.pl-add.old { color: var(--text-2); font-weight: 600; }
.pl-added-l { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
/* 6.78 Novidades: data e horário em que cada versão entrou no ar */
.nw-it header .nw-when { white-space: nowrap; }
/* 6.78 Janela do post: vídeo do Drive começa pela capa com o play (o player do Drive só carrega no toque) e, no celular,
   a área do vídeo fica em 9:16 (sem faixas pretas dos lados que deixavam os controles do Drive no meio da imagem) */
.pd-drv { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: #000; color: #fff; cursor: pointer; overflow: hidden; }
.pd-drv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pd-drv-p { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.pd-drv-p svg { width: 26px; height: 26px; margin-left: 3px; }
.pd-drv-t { position: absolute; left: 0; right: 0; bottom: 12px; font-size: 13px; font-weight: 600; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.pd-drv:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (max-width: 640px) { .pd-play.v { aspect-ratio: 9 / 16; height: min(62vh, calc((100vw - 40px) * 16 / 9)); width: auto; max-width: 100%; justify-self: center; } }
/* 6.78 Plataforma (MarkFlow para outras agências): painel do dono, pedido de acesso, criar agência, termos */
.v678-note { margin: 0 0 18px; }
.v678-sec { margin: 0 0 22px; }
.v678-h { font-size: 17px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.v678-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.v678-org { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.v678-org.off { opacity: .75; }
.v678-org p { margin: 0; }
.v678-oh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v678-oh b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v678-k { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); }
.v678-k span { display: inline-flex; align-items: center; gap: 4px; }
.v678-why { color: var(--danger, #b91c1c); }
.v678-req .m { display: block; }
.v678-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.login-card.v678-wide { max-width: 760px; }
.v678-doc h3 { font-size: 15px; margin: 18px 0 6px; }
.v678-doc p { margin: 0; line-height: 1.55; color: var(--text-2); }

/* 6.83: o CSS de "Site e Google" (6.78 e 6.80) saiu junto com a aba */
.v678-note .small { color: var(--text-2); display: block; margin-top: 2px; }
.v678-note b { color: var(--text); }
/* 6.78.1 Plataforma: página de apresentação (landing) com 3 posições */
.v678-lp { padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.v678-lp p { margin: 0; }
.v678-lp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.v678-lp-url { margin: 0; min-width: 0; }
.v678-lp-url code { overflow-wrap: anywhere; word-break: break-all; }
/* 6.79 Ajustes: segunda linha de abas (Equipe usa) */
.set-sub { margin: -6px 0 16px; display: inline-flex; flex-wrap: wrap; max-width: 100%; }
/* 6.81 Ajustes → Plataforma: texto e botão de convidar na mesma linha */
.v681-ph { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin: 0 0 14px; }
.v681-help { margin: 0 0 14px; max-width: 720px; }
.v681-ph .v681-help { margin: 0; flex: 1 1 300px; }
.tm-help { margin: 0 0 12px; }
/* 6.83 Plataforma: chave geral (MarkFlow para outras agências), no topo das duas partes */
.v683-sw { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 14px 16px; margin: 0 0 16px; min-width: 0; }
.v683-sw .grow { flex: 1 1 260px; min-width: 0; }
.v683-sw-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 2px; }
.v683-sw p { margin: 0; max-width: 720px; }
/* 6.84 Saldo: conta dividida em cartões por empresa + conferência com o Meta */
.af-acc-sub { margin: -4px 0 12px; }
.af-cos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 0 0 12px; min-width: 0; }
.af-co { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.af-co.me { border-color: var(--border-strong); box-shadow: inset 0 0 0 1px var(--border-strong); }
.af-co.tot { background: var(--surface-subtle); border-style: dashed; }
.af-co.neg { border-color: var(--danger); }
.af-co-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.af-co-h b { font-size: 14px; overflow-wrap: anywhere; }
.af-co-bal { font-size: 22px; line-height: 28px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
.af-co-s { color: var(--text-2); }
.af-co-l { margin: 6px 0 0; padding: 6px 0 0; border-top: 1px dashed var(--border); display: grid; gap: 2px; }
.af-co-l > div { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.af-co-l dt { color: var(--text-muted); }
.af-co-l dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--text); }
.af-co-f { margin: 4px 0 0; }
.af-chk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.af-chk .small { overflow-wrap: anywhere; }
.af-how { margin: 0 0 12px; padding-left: 18px; line-height: 1.6; color: var(--text-2); }
.afr-top { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-subtle); margin: 0 0 12px; }
.afr { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.afr-i { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-md); border: 1px solid var(--border); font-size: 13px; line-height: 18px; }
.afr-i > .i { flex: none; margin-top: 2px; }
.afr-i.ok > .i { color: var(--success); }
.afr-i.warn > .i { color: var(--warning); }
.afr-i .btn { flex: none; }
.afr-ex { margin: 0; padding-left: 18px; color: var(--text-2); }
/* 6.84 Mudanças nas campanhas: por dia e por campanha, filtros em cima */
.seg.cg-f { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; margin: 0 0 12px; height: auto; border-radius: 18px; overflow: visible; }
.seg.cg-f button { white-space: nowrap; }
.cg { display: grid; gap: 12px; min-width: 0; }
.cg-d { display: grid; gap: 8px; min-width: 0; }
.cg-d > .cs-day { margin: 0; }
.cg-g { min-width: 0; border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 12px 6px; background: var(--surface); }
.cg-c { display: flex; align-items: center; gap: 6px; padding: 6px 0 4px; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.cg-c b { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cg-c .i { flex: none; color: var(--text-muted); }
.cg-l { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--border); min-width: 0; }
.cg-c + .cg-l { border-top: 0; }
.cg-l > .chg-ic { width: 26px; height: 26px; border-radius: 8px; }
.cg-t { font-size: 13.5px; line-height: 19px; overflow-wrap: anywhere; }
.cg-t b { font-weight: 650; }
.cg-m { margin-top: 1px; font-size: 12px; line-height: 17px; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; overflow-wrap: anywhere; }
.cg-pill { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--fill); color: var(--text-2); }
.cg-pill.good { background: var(--success-bg); color: var(--success); }
.cg-pill.bad { background: var(--danger-bg); color: var(--danger); }
.cg-l .chg-why { font-size: 12px; }
.cg-m .chg-why { font-size: 12px; margin-left: 2px; color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-strong); }
.cg-m .chg-why:hover { color: var(--text); }
/* 6.84 criativos: nome em até 2 linhas (antes cortava em uma) */
.cr-card .cr-n { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* 6.84.2 entrada no sistema: o caminho-guia do 2º avião nunca aparece (antes virava um traço preto) */
.lg-guide { fill: none !important; stroke: none !important; }
/* 6.84.2 tela de abertura mais caprichada (só CSS): anel com brilho que gira em volta do avião, o avião flutua e o nome aparece.
   Mantém os atrasos: carga rápida nem mostra; quem pediu "reduzir movimento" vê tudo parado. */
.splash { gap: 18px; }
.splash-o { position: relative; width: 112px; height: 112px; display: grid; place-items: center; opacity: 0; transform: scale(.92); animation: splIn .5s cubic-bezier(.2, .8, .2, 1) .25s forwards; }
.splash-o::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%); animation: splGlow 2.4s ease-in-out infinite; }
.splash-r { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.spl-tr { fill: none; stroke: var(--fill-2); stroke-width: 3; }
.spl-arc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 22 78; transform-origin: 60px 60px; animation: splSpin 1.3s cubic-bezier(.55, .15, .45, .85) infinite; }
.splash-o .splash-m { position: relative; width: 50px; height: 50px; opacity: 1; transform: none; animation: splFloat 2.4s ease-in-out infinite; }
.splash-w { font: 650 15px/1 var(--font); letter-spacing: .02em; color: var(--text); opacity: 0; transform: translateY(4px); animation: splIn .45s ease .55s forwards; }
@keyframes splSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes splFloat { 0%, 100% { transform: translate(-1px, 2px) rotate(-2deg); } 50% { transform: translate(1px, -3px) rotate(2deg); } }
@keyframes splGlow { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .splash-o, .splash-w, .spl-arc, .splash-o::before, .splash-o .splash-m { animation: none !important; opacity: 1; transform: none; } }
/* 6.85 "Ver como": faixa flutuante embaixo (acima da barra do celular) e contorno discreto na tela */
#vaBar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1300; display: flex; align-items: center; gap: 10px;
  width: min(640px, calc(100vw - 24px)); padding: 8px 8px 8px 14px; border-radius: 16px; background: var(--solid); color: var(--solid-ink); box-shadow: 0 10px 30px rgba(0,0,0,.28); font-size: 13.5px; }
#vaBar .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#vaBar .btn { flex: none; background: transparent; color: inherit; border-color: color-mix(in srgb, var(--solid-ink) 35%, transparent); }
#vaBar .btn:hover { background: color-mix(in srgb, var(--solid-ink) 12%, transparent); }
html.va-on body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1299; box-shadow: inset 0 0 0 3px var(--accent); }
@media (max-width: 767px) { #vaBar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } #vaBar .va-s { display: none; } }

/* ============================================================ 6.86 Tráfego › Mês a mês */
.tr-tabs { margin: 0 0 16px; }
.trm-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 14px; }
.trm-bar select { width: auto; min-width: 220px; max-width: 100%; }
.trm-yc, .trm-mc, .trm-tc { margin: 0 0 16px; }
.trm-year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; }
.trm-mo { display: grid; gap: 4px; justify-items: center; align-content: end; min-width: 0; padding: 6px 2px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.trm-mo:hover:not([disabled]) { background: var(--fill); }
.trm-mo[disabled] { cursor: default; opacity: .55; }
.trm-mo.on { border-color: var(--border-strong); background: var(--surface-subtle); }
.trm-bar-v { width: 70%; max-width: 34px; border-radius: 4px 4px 2px 2px; background: var(--fill-2); }
.trm-bar-v.has { background: var(--text-muted); }
.trm-mo.on .trm-bar-v.has { background: var(--accent); }
.trm-ml { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.trm-mv { font-size: 10.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) { .trm-mv { display: none; } .trm-year { gap: 2px; } }
.trm-h { font-size: 18px; margin: 0; }
.trm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 14px; }
.trm-k { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); }
.trm-k > span:first-child { font-size: 12px; color: var(--text-muted); }
.trm-k b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trm-f { margin: 0 0 10px; }
.trm-g { display: grid; --days: 31; }
.trm-ax, .trm-r { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 14px; align-items: center; }
.trm-ax { padding: 0 0 6px; border-bottom: 1px solid var(--border); }
.trm-r { padding: 9px 0; border-bottom: 1px solid var(--border); }
.trm-nm { display: grid; gap: 3px; min-width: 0; }
.trm-cn { font-size: 13px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.trm-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.b-new { background: var(--p-50); color: var(--p-700); }
.trm-sc { position: relative; height: 16px; }
.trm-sc span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.trm-tr { position: relative; height: 26px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px calc(100% / var(--days))); }
.trm-b { position: absolute; top: 4px; height: 18px; min-width: 6px; border-radius: 5px; display: flex; align-items: center; justify-content: space-between; padding: 0 5px; overflow: hidden; font-style: normal; }
.trm-b em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--canvas); }
.trm-b.k-new, .trm-lg .k-new { background: var(--accent); }
.trm-b.k-from, .trm-lg .k-from { background: var(--info); }
.trm-b.k-cont, .trm-lg .k-cont { background: var(--text-2); }
.trm-b.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.trm-b.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.trm-b.fut { opacity: .32; background-image: var(--hatch); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.trm-today, .trm-lg .k-today { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--text); }
.trm-lg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: 12px; color: var(--text-muted); }
.trm-lg i { display: inline-block; position: static; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.trm-lg .k-today { width: 3px; height: 12px; }
.trm-t td, .trm-t th { white-space: nowrap; }
.trm-t td:first-child { white-space: normal; min-width: 200px; }
.trm-t tfoot td { border-bottom: 0; }
.trm-bad { color: var(--danger); font-weight: 600; } .trm-good { color: var(--success); font-weight: 600; }
@media (max-width: 680px) { .trm-ax, .trm-r { grid-template-columns: minmax(0, 1fr); gap: 6px; } .trm-ax .trm-nm { display: none; } }

/* ============================================================ 6.87 Tráfego › Detalhe da campanha + avisos */
.cpd-h1 { overflow-wrap: anywhere; }
.cpd-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 14px; }
.cpd-open { margin: 0 0 14px; display: grid; gap: 8px; }
.cpd-al { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--warning); font-size: 13.5px; }
.cpd-al.crit { color: var(--danger); }
.cpd-al span { color: var(--text-2); } .cpd-al b { color: var(--text); }
.cpd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.cpd-k { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.cpd-k > span:first-child { font-size: 12px; color: var(--text-muted); }
.cpd-k b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cpd-k.warn { border-color: color-mix(in srgb, var(--warning) 50%, transparent); }
.cpd-d { font-size: 12px; color: var(--text-muted); font-weight: 550; }
.cpd-d.ok { color: var(--success); } .cpd-d.bad { color: var(--danger); }
.cpd-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cpd-col { display: grid; gap: 16px; min-width: 0; }
.cpd-col > .card { margin: 0; }
@media (max-width: 960px) { .cpd-grid { grid-template-columns: minmax(0, 1fr); } }
.cpd-chart { min-height: 200px; }
.cpd-svg { display: block; overflow: visible; }
.cpd-lg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-muted); margin: 8px 0 0; }
.cpd-lg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.cpd-lg .l-c { background: var(--accent); } .cpd-lg .l-l { background: var(--danger); } .cpd-lg .l-z { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--danger); }
.cpd-ads { display: grid; gap: 12px; }
.cpd-ad { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-subtle); }
.cpd-th { position: relative; width: 96px; max-width: 100%; aspect-ratio: 4 / 5; border-radius: 9px; overflow: hidden; background: var(--fill-2); display: grid; place-items: center; color: var(--text-muted); }
.cpd-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpd-kd { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; }
.cpd-ab { display: grid; gap: 5px; min-width: 0; }
.cpd-at { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.cpd-at b { font-size: 14px; overflow-wrap: anywhere; }
.cpd-tt { margin: 0; font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.cpd-copy { margin: 0; color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cpd-dest { margin: 0; font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.cpd-n { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cpd-fat { margin: 0; }
@media (max-width: 480px) { .cpd-ad { grid-template-columns: 72px minmax(0, 1fr); } .cpd-th { width: 72px; } }
.cpd-rules { display: grid; gap: 8px; }
.cpd-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-subtle); }
.cpd-rt { display: grid; gap: 3px; min-width: 0; }
.cpd-rt b { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.cpd-rt > span { font-size: 12px; color: var(--text-muted); }
.cpd-rs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.cpd-ra { display: flex; gap: 4px; align-items: center; }
.cpd-sys { margin: 10px 0 0; }
.sw-t { position: relative; width: 40px; height: 24px; border-radius: 99px; border: 0; background: var(--fill-2); cursor: pointer; flex: none; }
.sw-t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted); transition: transform .18s var(--spring), background .18s; }
.sw-t[aria-checked="true"] { background: var(--accent); }
.sw-t[aria-checked="true"]::after { transform: translateX(16px); background: #fff; }
.cpd-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.cpd-form .fld { display: grid; gap: 4px; font-size: 12px; color: var(--text-muted); min-width: 0; }
.cpd-form .fld select, .cpd-form .fld input { width: 100%; min-width: 0; }
.cpd-form .cpd-test, .cpd-form .btns { grid-column: 1 / -1; margin: 0; }
.cpd-form .btns { justify-content: flex-end; }
.cpd-test { padding: 9px 12px; border-radius: 10px; background: var(--fill); }
.cpd-test.hit { background: var(--warning-bg); color: var(--warning); } .cpd-test.ok { background: var(--success-bg); color: var(--success); }
.cpd-how ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); font-size: 13px; }
.tr-cdl { color: inherit; } .tr-cdl:hover b { text-decoration: underline; }
.notif-ic.notif-img { padding: 0; overflow: hidden; background: var(--fill-2); }
.notif-ic.notif-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .sw-t::after { transition: none; } }

/* 6.88 — gasto programado x saldo */
.gp-card .gp-head { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--info-bg); font-size: 14px; line-height: 1.5; }
.gp-card .gp-head > svg { flex: none; margin-top: 3px; color: var(--info); }
.gp-card.gp-warn .gp-head { background: var(--warning-bg); } .gp-card.gp-warn .gp-head > svg { color: var(--warning); }
.gp-card.gp-bad .gp-head { background: var(--danger-bg); } .gp-card.gp-bad .gp-head > svg { color: var(--danger); }
.gp-card.gp-ok .gp-head { background: var(--success-bg); } .gp-card.gp-ok .gp-head > svg { color: var(--success); }
.gp-card .ap-nums b { font-variant-numeric: tabular-nums; }
.gp-days { margin: 4px 0 12px; }
.gp-bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; padding: 0 1px; border-bottom: 1px solid var(--border); }
.gp-bars span { flex: 1 1 0; min-width: 2px; background: var(--info); border-radius: 3px 3px 0 0; opacity: .85; }
.gp-bars span.over { background: var(--danger); }
.gp-ax { position: relative; height: 18px; font-size: 11px; color: var(--text-muted); }
.gp-ax i { position: absolute; top: 3px; transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.gp-ax i:first-child { transform: none; left: 0 !important; } .gp-ax i:last-child { transform: translateX(-100%); left: 100% !important; }
.gp-leg { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 0; }
.gp-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--info); } .gp-sw.over { background: var(--danger); margin-left: 8px; }
.gp-t td { vertical-align: top; } .gp-t td .badge { margin-left: 4px; vertical-align: 1px; }
.gp-note { margin: 10px 0 0; line-height: 1.5; }
.gp-tile { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; color: var(--text-2); }
.gp-tile > svg { flex: none; margin-top: 2px; }
.gp-tile.gp-warn { color: var(--warning); } .gp-tile.gp-bad { color: var(--danger); }
/* 6.88 — legenda direto no post */
.cap-box { display: grid; gap: 4px; min-width: 0; }
.cap-edit { display: inline-flex; align-items: center; gap: 4px; justify-self: start; }
.pd-cap-b { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cap-ed { display: grid; gap: 8px; }
.cap-ed textarea { width: 100%; min-height: 120px; resize: vertical; line-height: 1.45; }
.cap-ed-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cap-ed-a .grow { flex: 1; }

/* 6.89 — status e tipo da campanha */
.cc-bs { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex: 0 1 auto; max-width: 55%; }
.cc-type { margin-top: 4px; font-size: 12px; font-weight: 550; color: var(--text-2); overflow-wrap: anywhere; }
.cc-type-s { margin-top: 2px; overflow-wrap: anywhere; }
.upc-card { margin-bottom: 14px; } .upc-card .list { margin: 0; }
.upc-li .grow { display: grid; gap: 3px; min-width: 0; }
.upc-li .t, .upc-li .m { white-space: normal; overflow-wrap: anywhere; }
.upc-b { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.upc-note { margin: 10px 0 0; }
.cfg-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 16px; margin: 0; }
.cfg-dl div { min-width: 0; } .cfg-dl dt { font-size: 12px; color: var(--text-muted); } .cfg-dl dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.cfg-rv { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; color: var(--warning); }
.cfg-card .card-h > span { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
@media (max-width: 520px) { .cc-bs { max-width: 50%; } }
/* 6.89 (conferência de layout): no celular o seletor de categoria do arquivo tem 44 px e encostava nos botões de baixar/excluir */
@media (max-width: 700px), (pointer: coarse) { .fx-b { padding-bottom: 50px; } }

/* 6.107: o cartão de novidades não fica por cima de menus abertos (Criar, conta, Mais), do menu lateral nem do painel da demanda */
body:has(.pop-menu:not([hidden])) .nw-card, body.nav-open .nw-card, body:has(.wk-p) .nw-card { display: none; }
