/* Cycle UI v1 — GERADO por bin/kit-build.php. Não editar: editar as fontes e rodar o build.
 * Fontes: public/css/hub-ui.css + public/css/hub-shell.css + kit/src/components.css */

/* ═════ public/css/hub-ui.css ═════ */
/*
 * Cycle Hub — sistema visual único (Pedro 18/11/2026: "premium clean").
 * Escuro, quase monocromático: painéis translúcidos com borda fina, rótulos
 * pequenos em caixa alta e monoespaçados, números brancos. Cor só no que
 * significa algo (variação verde/vermelha e um destaque no gráfico).
 * Toda tela revista usa estas peças em vez de montar cartão/tabela à mão.
 */
:root {
  --ui-panel: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012)), #111113;
  --ui-panel-hover: #18181b;
  --ui-line: rgba(255, 255, 255, .075);
  --ui-line-soft: rgba(255, 255, 255, .055);
  --ui-text: #f4f4f5;
  --ui-text-2: #d4d4d8;
  --ui-muted: #a1a1aa;
  --ui-faint: #8b8b93;   /* 5,6:1 no painel escuro (era #6b6b73, 3,6:1: apagado) */
  --ui-up: #4ade80;
  --ui-down: #f87171;
  --ui-warn: #facc15;
  --ui-accent: #f08a4b;   /* destaque de gráfico; não é cor de interface */
  --ui-radius: 14px;
  /* Uma fonte só (Pedro 23/11/2026: "várias fontes diferentes, não era pra").
     --ui-mono continua existindo por compatibilidade, mas aponta para a mesma
     fonte do texto; números alinham por tabular-nums, não por outra fonte. */
  --ui-mono: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ── Sistema completo (Pedro 23/11/2026: "mapear tudo por trás antes de
     continuar"). Fonte única de cor, texto, tamanho e raio do Hub. Nenhuma tela
     escreve hex de cor de interface: usa estes tokens. Ver docs/design-system.md
     e a referência viva em /sistema/ui. ── */
  /* Fundos, do mais fundo ao mais alto */
  --ui-bg: #09090b;          /* página */
  --ui-bg-2: #0c0c0e;        /* barra do topo, menu, campo e gatilho de filtro */
  --ui-surface: #111113;     /* painel, barra de filtros, tabela, modal */
  --ui-raised: #18181b;      /* hover, menu aberto, item ativo neutro */
  --ui-raised-2: #1f1f23;    /* hover dentro de menu */
  --ui-line-strong: rgba(255, 255, 255, .14); /* borda em hover/foco neutro */
  /* Azul = só seleção, ação principal e link */
  --ui-brand: #3b82f6;
  --ui-brand-strong: #2563eb;
  --ui-brand-text: #93c5fd;
  --ui-brand-soft: rgba(59, 130, 246, .14);
  --ui-brand-line: rgba(96, 165, 250, .45);
  /* Texto */
  --ui-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Tamanhos */
  --ui-h: 36px;              /* altura de todo controle: botão, campo, filtro, aba */
  --ui-r-sm: 8px;            /* chip, botão de ícone, item de menu */
  --ui-r: 10px;              /* botão, campo, filtro */
  --ui-r-lg: 14px;           /* painel, barra, modal (= --ui-radius) */
  --ui-shadow-pop: 0 24px 60px rgba(0, 0, 0, .55);
  /* Espaço (Pedro 23/11/2026: "padding e responsivo para qualquer dimensão").
     Escala fixa para dentro das peças; fluida (clamp) para página, painel e
     vão entre blocos — cresce e encolhe com a tela, sem regra por aparelho. */
  --ui-s1: 4px; --ui-s2: 8px; --ui-s3: 12px; --ui-s4: 16px; --ui-s5: 20px; --ui-s6: 24px; --ui-s8: 32px;
  --ui-page-x: clamp(14px, 2.6vw, 28px);   /* lateral da página */
  --ui-page-y: clamp(14px, 2.2vw, 24px);   /* topo/rodapé da página */
  --ui-gap: clamp(8px, 1.2vw, 12px);       /* entre cartões e painéis */
  --ui-pad: clamp(12px, 1.5vw, 18px);      /* dentro de painel */
}
html:not(.dark) {
  --ui-bg: #ffffff; --ui-bg-2: #f8fafc; --ui-surface: #ffffff; --ui-raised: #f1f5f9; --ui-raised-2: #e2e8f0;
  --ui-line-strong: rgba(15, 23, 42, .18); --ui-brand-text: #1d4ed8; --ui-brand-soft: rgba(37, 99, 235, .1);
  --ui-panel: rgba(15, 23, 42, .025);
  --ui-panel-hover: rgba(15, 23, 42, .045);
  --ui-line: rgba(15, 23, 42, .09);
  --ui-line-soft: rgba(15, 23, 42, .06);
  --ui-text: #0f172a;
  --ui-text-2: #334155;
  /* Claro (Pedro 24/11/2026: "trocar para white, tem coisa que não dá para enxergar").
     Todo texto ≥ 4,5:1 sobre branco E sobre o painel (#ecf0f4). */
  --ui-muted: #475569;
  --ui-faint: #556070;
  --ui-up: #047857;
  --ui-down: #b91c1c;
  --ui-warn: #92400e;
  --ui-brand-line: rgba(37, 99, 235, .45);
}

/* Painel */
.ui-panel { position: relative; min-width: 0; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-panel);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.ui-panel--pad { padding: 16px 18px; }
.ui-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ui-panel__title { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ui-text); letter-spacing: -.005em; }
.ui-panel__aside { margin-left: auto; font: 500 10.5px/1 var(--ui-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ui-faint); }
.ui-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); font: 600 11px/1 var(--ui-mono); color: var(--ui-text-2); }

/* Rótulo, número, linha de apoio */
.ui-label-s { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ui-muted); }
.ui-delta { font: 500 12.5px/18px var(--ui-mono); color: var(--ui-faint); font-variant-numeric: tabular-nums; }
.ui-label { font: 500 11px/14px var(--ui-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ui-muted); }
.ui-value { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; color: var(--ui-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui-sub { font-size: 12.5px; line-height: 18px; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.ui-up { color: var(--ui-up); } .ui-down { color: var(--ui-down); } .ui-warn { color: var(--ui-warn); }

/* Lista (itens do painel) */
.ui-list { display: flex; flex-direction: column; }
.ui-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 0; border-top: 1px solid var(--ui-line-soft); }
.ui-item:first-child { border-top: 0; }
.ui-item__name { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--ui-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-item__name a { color: inherit; text-decoration: none; } .ui-item__name a:hover { color: var(--ui-text); }
.ui-item__meta { flex: none; font: 500 11.5px/16px var(--ui-mono); color: var(--ui-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ui-item__meta b { font-weight: 600; color: var(--ui-text-2); }
.ui-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); }
.ui-code { flex: none; display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--ui-line); font: 600 10.5px/1 var(--ui-mono); letter-spacing: .04em; color: var(--ui-text-2); }

/* Linha que abre e fecha */
.ui-acc { border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-panel); }
.ui-acc > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--ui-text); }
.ui-acc > summary::-webkit-details-marker { display: none; }
.ui-acc > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ui-muted); border-bottom: 1.5px solid var(--ui-muted); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.ui-acc[open] > summary::before { transform: rotate(45deg); }
.ui-acc > summary .ui-sub { font-weight: 400; }
.ui-acc__body { padding: 0 16px 10px 36px; }
.ui-acc > summary:focus-visible { outline: 2px solid rgba(255, 255, 255, .4); outline-offset: -2px; border-radius: 12px; }

/* Botões e controles */
.ui-btn { display: inline-flex; align-items: center; gap: 8px; height: var(--ui-h); padding: 0 14px; border: 1px solid var(--ui-line); border-radius: 10px; background: var(--ui-panel); color: var(--ui-text-2); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.ui-btn:hover { background: var(--ui-panel-hover); color: var(--ui-text); }
.ui-btn--primary { background: var(--ui-brand-strong); border-color: var(--ui-brand-strong); color: #fff; font-weight: 600; }
.ui-btn--primary:hover { background: #1d4ed8; color: #fff; }
.ui-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
select.ui-btn { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238b919c' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.ui-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, .45); outline-offset: 2px; }


/* ══════════════════════════════════════════════════════════════════════
   Componentes (23/11/2026). Cada um: quando usar → classe. Markup de exemplo
   em /sistema/ui e em docs/design-system.md.
   ══════════════════════════════════════════════════════════════════════ */

/* Cabeçalho da página — toda tela: título + subtítulo à esquerda; calendário,
   seletor de produto e ação principal à direita (nessa ordem). */
.hub-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; min-height: 44px; margin-bottom: 20px; }
.hub-page-head__title { min-width: 0; }
.hub-page-head__title h1 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; color: var(--ui-text); }
.hub-page-head__title p { margin: 3px 0 0; font-size: 13px; line-height: 18px; color: var(--ui-muted); }
.hub-page-head__end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* Abas da tela (Copy/Edição/Tráfego, Páginas/Desempenho) — segmentado.
   Só a aba atual em azul; as outras pretas. */
.ui-tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-bg-2); }
.ui-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; color: var(--ui-muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .15s, background .15s; }
.ui-tab:hover { color: var(--ui-text); background: var(--ui-raised); }
.ui-tab.is-on, .ui-tab[aria-selected="true"] { color: #fff; background: var(--ui-brand-soft); border-color: var(--ui-brand-line); }
.ui-tab__count { min-width: 18px; padding: 0 5px; border-radius: 6px; background: rgba(255, 255, 255, .08); font: 600 11px/18px var(--ui-mono); text-align: center; color: var(--ui-text-2); }
.ui-tab.is-on .ui-tab__count { background: rgba(59, 130, 246, .28); color: #dbeafe; }
/* Claro: selecionado = azul sólido, texto branco (texto branco sobre azul-claro sumia). */
html:not(.dark) .ui-tab.is-on, html:not(.dark) .ui-tab[aria-selected="true"] { color: #fff; background: var(--ui-brand-strong); border-color: var(--ui-brand-strong); }
html:not(.dark) .ui-tab.is-on .ui-tab__count { background: rgba(15, 23, 42, .28); color: #fff; }
html:not(.dark) .ui-tab__count { background: rgba(15, 23, 42, .07); }

/* Barra de filtros — busca + filtros + ações. Fundo neutro, nunca azul. */
.ui-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--ui-line); border-radius: var(--ui-r-lg); background: var(--ui-surface); }

/* Campo de busca */
.ui-search { position: relative; display: flex; align-items: center; min-width: 0; }
.ui-search > svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--ui-faint); pointer-events: none; }
.ui-search input { width: 100%; height: var(--ui-h); padding: 0 32px 0 34px; border: 1px solid var(--ui-line); border-radius: var(--ui-r); background: var(--ui-bg-2); color: var(--ui-text); font-size: 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.ui-search input::placeholder { color: var(--ui-faint); }
.ui-search input::-webkit-search-cancel-button { display: none; }
.ui-search input:focus { border-color: var(--ui-brand); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }

/* Filtro em dropdown — TODO filtro é este botão (rótulo + valor + seta).
   Filtrado = azul claro. Ação de gerenciar = .ui-icon-btn colado à direita. */
.ui-trigger { display: inline-flex; align-items: center; gap: 6px; height: var(--ui-h); max-width: 240px; padding: 0 10px 0 12px; border: 1px solid var(--ui-line); border-radius: var(--ui-r); background: var(--ui-bg-2); text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.ui-trigger:hover, .ui-trigger[aria-expanded="true"] { background: var(--ui-raised); border-color: var(--ui-line-strong); }
.ui-trigger__label { flex: none; color: var(--ui-muted); font-size: 12px; font-weight: 500; }
.ui-trigger__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ui-text-2); font-size: 12.5px; font-weight: 500; }
.ui-trigger > svg { flex: none; width: 13px; height: 13px; color: var(--ui-faint); }
.ui-trigger.is-on { background: var(--ui-brand-soft); border-color: var(--ui-brand-line); }
.ui-trigger.is-on .ui-trigger__label { color: var(--ui-brand-text); }
.ui-trigger.is-on .ui-trigger__value { color: #dbeafe; font-weight: 600; }
html:not(.dark) .ui-trigger.is-on .ui-trigger__value { color: #1e3a8a; }

/* Menu suspenso (opções de filtro, "Novo AD", seletor de produto). Abre
   embaixo do botão, alinhado à borda mais perto da beirada da tela. */
.ui-menu { position: absolute; top: calc(100% + 6px); z-index: 60; min-width: 220px; max-height: min(420px, 70vh); overflow-y: auto; padding: 5px; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-raised); box-shadow: var(--ui-shadow-pop); }
.ui-menu__opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border-radius: var(--ui-r-sm); color: var(--ui-text-2); font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.ui-menu__opt:hover { background: var(--ui-raised-2); color: var(--ui-text); }
.ui-menu__opt.is-on { color: var(--ui-text); font-weight: 600; }
.ui-menu__opt.is-on::after { content: ""; margin-left: auto; width: 9px; height: 5px; border-left: 2px solid var(--ui-brand-text); border-bottom: 2px solid var(--ui-brand-text); transform: rotate(-45deg) translateY(-2px); }
.ui-menu__foot { margin-top: 4px; padding: 8px 10px 4px; border-top: 1px solid var(--ui-line-soft); color: var(--ui-faint); font-size: 11.5px; }

/* Botão de ícone (engrenagem, copiar, abrir, editar) */
.ui-icon-btn { display: inline-grid; place-items: center; width: var(--ui-h); height: var(--ui-h); border: 1px solid var(--ui-line); border-radius: var(--ui-r); background: var(--ui-bg-2); color: var(--ui-muted); cursor: pointer; transition: background .15s, color .15s; }
.ui-icon-btn--ghost { width: 30px; height: 30px; border-color: transparent; background: transparent; border-radius: var(--ui-r-sm); }
.ui-icon-btn:hover { background: var(--ui-raised); color: var(--ui-text); }
.ui-icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Produto — SEMPRE foto em quadrado branco + nome curto + sigla. Nunca letra
   em bolinha, nunca o título longo da Shopify. Helper: ui_product() em
   src/Views/components/ui.php. */
.ui-thumb { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--ui-r-sm); background: #fff; overflow: hidden; }
.ui-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ui-thumb b { font: 800 11px/1 var(--ui-mono); }
.ui-thumb--s { width: 24px; height: 24px; border-radius: 6px; }
.ui-thumb--l { width: 48px; height: 48px; border-radius: 11px; }
.ui-product { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ui-product__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ui-text); font-size: 13.5px; font-weight: 600; }

/* Selo / etiqueta curta (tipo de página, nicho, status) */
.ui-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--ui-text-2); font-size: 11px; font-weight: 600; white-space: nowrap; }
.ui-chip--brand { background: var(--ui-brand-soft); color: var(--ui-brand-text); }
.ui-chip--up { background: rgba(74, 222, 128, .12); color: var(--ui-up); }
.ui-chip--down { background: rgba(248, 113, 113, .12); color: var(--ui-down); }
.ui-chip--warn { background: rgba(250, 204, 21, .12); color: var(--ui-warn); }
/* Claro: selo com fundo próprio e texto um tom mais escuro (≥ 4,5:1 sobre o tom do selo). */
html:not(.dark) .ui-chip { background: rgba(15, 23, 42, .06); color: #334155; }
html:not(.dark) .ui-chip--brand { background: rgba(37, 99, 235, .1); color: #1e40af; }
html:not(.dark) .ui-chip--up { background: rgba(16, 185, 129, .14); color: #065f46; }
html:not(.dark) .ui-chip--down { background: rgba(239, 68, 68, .12); color: #991b1b; }
html:not(.dark) .ui-chip--warn { background: rgba(245, 158, 11, .16); color: #78350f; }

/* Linha de lista com valor à direita (produtos do Início, páginas). O valor
   nunca quebra linha; o texto de apoio corta com reticências. */
.ui-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 0; border-top: 1px solid var(--ui-line-soft); }
.ui-row:first-child { border-top: 0; }
.ui-row__main { flex: 1 1 auto; min-width: 0; }
.ui-row__title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ui-text); font-size: 13.5px; font-weight: 500; }
.ui-row__sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; color: var(--ui-faint); font: 500 11.5px/16px var(--ui-mono); font-variant-numeric: tabular-nums; }
.ui-row__value { flex: none; white-space: nowrap; color: var(--ui-text); font: 600 13px/1 var(--ui-mono); font-variant-numeric: tabular-nums; text-align: right; }
.ui-row__value small { margin-left: 3px; color: var(--ui-faint); font-weight: 500; font-size: 11px; }

/* Tabela de números */
.ui-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ui-table th { padding: 8px 10px; border-bottom: 1px solid var(--ui-line); color: var(--ui-faint); font: 500 10.5px/14px var(--ui-mono); letter-spacing: .08em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.ui-table td { padding: 10px; border-bottom: 1px solid var(--ui-line-soft); color: var(--ui-text-2); }
.ui-table .num { text-align: right; font-family: var(--ui-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui-table tr:hover td { background: rgba(255, 255, 255, .02); }

/* Estado vazio */
.ui-empty { padding: 28px 16px; color: var(--ui-faint); font-size: 13px; text-align: center; }
.ui-empty b { display: block; margin-bottom: 4px; color: var(--ui-text-2); font-size: 14px; font-weight: 600; }

/* Título de seção dentro de painel */
.ui-section-title { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; color: var(--ui-faint); font: 500 11px/14px var(--ui-mono); letter-spacing: .1em; text-transform: uppercase; }

/* Modal — no meio da tela; no celular, tela cheia. z-index 1100 (abaixo da
   confirmação 2147483646). Esconde o botão de suporte enquanto aberto. */
.ui-modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); }
.ui-modal__box { width: min(560px, 100%); max-height: 85vh; display: flex; flex-direction: column; border: 1px solid var(--ui-line); border-radius: var(--ui-r-lg); background: var(--ui-surface); box-shadow: var(--ui-shadow-pop); overflow: hidden; }
.ui-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--ui-line); font-size: 14px; font-weight: 600; color: var(--ui-text); }
.ui-modal__body { padding: 16px; overflow-y: auto; }
.ui-modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--ui-line); }
@media (max-width: 720px) { .ui-modal { padding: 0; } .ui-modal__box { width: 100%; height: 100dvh; max-height: none; border-radius: 0; } }
html:has(.ui-modal:not([hidden]):not([style*="display: none"])) .sp-fab { display: none; }


/* ══════════════════════════════════════════════════════════════════════
   Responsivo (23/11/2026). Vale para TODA tela e TODO pop-up: nada tem
   largura fixa maior que a tela, nada vaza, e cada peça já sabe como se
   comportar no estreito. As telas não reescrevem isto.
   Regra: cortes pela largura do CONTEÚDO (@container), não da tela — com o
   menu lateral aberto, 800 px de tela viram ~520 px de conteúdo. Pop-ups que
   flutuam sobre a página (menu, modal) usam a largura da tela (@media).
   ══════════════════════════════════════════════════════════════════════ */

/* Página: lateral e topo fluidos (o <main> do layout). */
body > main.px-6, body .cy-main.px-6 { padding-left: var(--ui-page-x) !important; padding-right: var(--ui-page-x) !important; padding-top: var(--ui-page-y); padding-bottom: var(--ui-page-y); }
main img, main svg, main video { max-width: 100%; }
main :where(.ui-panel, .ui-row, .ui-table td) { overflow-wrap: anywhere; }

/* CABEÇALHO DA TELA — versão C, escolhida pelo Pedro em 24/11/2026: setor do menu em
   cima do título, à esquerda; calendário com o Atualizar grudado, à direita; SEMPRE na
   mesma linha e sem subtítulo. Falta espaço: o título encolhe com reticências.
   Montado por ui_page_head() (components/ui.php). */
.hub-page-head { flex-wrap: nowrap; align-items: center; min-height: 0; }
.hub-page-head__title { flex: 1 1 auto; min-width: 0; }
.hub-page-head__crumb { display: block; color: var(--ui-faint); font: 500 11px/14px var(--ui-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.hub-page-head__title h1 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-page-head__crumb--plain { text-transform: none; letter-spacing: 0; font: 500 13px/16px Inter, system-ui, sans-serif; }
.hub-page-head__title > p { display: none; }
.hub-page-head__end { flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-end; margin-left: auto; }
.hub-page-head__end:empty { display: none; }
@media (max-width: 480px) { .hub-page-head__end .mp-arrows { display: none; } }
/* Um <script> no começo do conteúdo não pode empurrar o cabeçalho 24px para baixo (space-y do Tailwind). */
main .space-y-6 > script:first-child + *, main .space-y-6 > script:first-child + script + * { margin-top: 0 !important; }
/* PRIMEIRA LINHA ÚNICA (Pedro 24/11/2026): toda tela abre com UMA linha — contexto da
   tela à esquerda (abas, seletor, saudação, busca), período/ação principal à direita.
   Nunca uma linha com um lado só. */
.ui-pagebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.ui-pagebar > :first-child:not(.ui-sr), .ui-pagebar > .ui-sr + * { min-width: 0; }
.ui-pagebar__end { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.ui-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
/* Calendário: regra única em kit/src/components.css (.ui-dp) — sempre à direita, compacto, Atualizar grudado. */

/* Painel: padding fluido. */
.ui-panel--pad { padding: var(--ui-pad); }

/* Grade automática — cartões, KPIs, painéis lado a lado. Quantos couberem
   com no mínimo --ui-col (padrão 220px); quebra sozinha, sem media query. */
.ui-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--ui-col, 220px), 100%), 1fr)); gap: var(--ui-gap); }
.ui-stack { display: flex; flex-direction: column; gap: var(--ui-gap); }

/* Abas: se não couberem, deslizam (com esmaecido na borda), nunca quebram. */
.ui-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ui-tabs::-webkit-scrollbar { display: none; }
.ui-tabs--fill { display: flex; }
.ui-tabs--fill .ui-tab { flex: 1 0 auto; }

/* Barra de filtros: busca ocupa o que sobra; no estreito, busca na linha toda
   e filtros dois por linha. */
.ui-toolbar { container: toolbar / inline-size; }
.ui-toolbar > .ui-search { flex: 1 1 220px; }
@container toolbar (max-width: 640px) {
  .ui-toolbar > .ui-search { flex-basis: 100%; }
  .ui-toolbar > .ui-trigger { flex: 1 1 calc(50% - 4px); max-width: none; justify-content: space-between; }
}

/* Menu suspenso: SEMPRE abre logo embaixo de quem foi tocado, em qualquer
   largura (Pedro 23/11/2026: "clica no menu lá em cima e aparece lá embaixo,
   não tem sentido"). No estreito ocupa a largura do gatilho e rola por dentro. */
@media (max-width: 640px) {
  .ui-menu { max-height: min(420px, 60vh); }
  .ui-menu__opt { min-height: 44px; }
}
html:has(.ui-menu:not([hidden]):not([style*="display: none"])) .sp-fab { display: none; }

/* Tabela larga demais para qualquer painel (muitas colunas): envolva em
   .ui-table-wrap e ela rola de lado. A regra comum está no ESQUELETO. */
.ui-table-wrap { max-width: 100%; overflow-x: auto; }

/* Seletor em dropdown (produto e afins): botão com foto + nome + seta que abre
   .ui-menu com as opções. É o mesmo do topo da Produção. */
.ui-picker { position: relative; min-width: 0; }
.ui-picker__btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 12px 0 6px; border: 1px solid var(--ui-line); border-radius: var(--ui-r); background: var(--ui-bg-2); color: var(--ui-text); font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.ui-picker__btn:hover, .ui-picker__btn[aria-expanded="true"] { background: var(--ui-raised); border-color: var(--ui-line-strong); }
.ui-picker__btn > .ui-picker__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-picker__btn > svg { flex: none; width: 14px; height: 14px; color: var(--ui-faint); fill: none; stroke: currentColor; stroke-width: 2; }
.ui-picker .ui-menu { left: 0; right: 0; }

/* Toque (celular/tablet): alvos maiores. */
@media (pointer: coarse) {
  .ui-btn, .ui-trigger, .ui-icon-btn, .ui-search input, .ui-tab { min-height: 40px; }
  .ui-icon-btn--ghost { width: 36px; height: 36px; }
}


/* ══════════════════════════════════════════════════════════════════════
   ESQUELETO DE TELA (23/11/2026). Pedro: "como no GTA: primeiro o código
   por trás, depois as cores". Toda tela é montada com estes moldes; o CSS da
   tela só cuida do conteúdo dela, nunca de largura, quebra ou espaçamento.

   .ui-page                       a tela
     .hub-page-head               cabeçalho (título | calendário, seletor, ação)
     .ui-bar                      abas à esquerda + ação principal à direita
     .ui-toolbar                  busca + filtros
     corpo, um destes:
       .ui-split                  lista + detalhe (vira seletor no estreito)
       .ui-grid                   cartões/painéis lado a lado (quebra sozinho)
       .ui-stack                  um embaixo do outro
     blocos: .ui-panel (com .ui-table, .ui-row, .ui-empty), KPI (.ui-kpi)

   Toda caixa do esqueleto tem min-width:0 (nada empurra a coluna vizinha) e é
   container de largura (quem está dentro quebra pela largura dela).
   ══════════════════════════════════════════════════════════════════════ */
.ui-page { container: page / inline-size; display: flex; flex-direction: column; gap: var(--ui-gap); min-width: 0; }
/* Regra do CSS: um contêiner não consulta a própria largura — só os filhos.
   Por isso o molde (.ui-split) quebra pela largura da TELA (.ui-page) e o que
   está dentro dele quebra pela largura dele. Todo molde vive dentro de .ui-page. */
.ui-page > .hub-page-head { margin-bottom: 0; }
.ui-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--ui-s3); flex-wrap: wrap; min-width: 0; }
.ui-bar > .ui-tabs { flex: 0 1 auto; min-width: 0; }
@media (max-width: 560px) { .ui-bar > * { flex: 1 1 100%; } .ui-bar > .ui-btn { justify-content: center; } }

.ui-grid > *, .ui-stack > *, .ui-split > *, .ui-bar > * { min-width: 0; }

/* Lista + detalhe. A lista fica à esquerda; quando o espaço do conteúdo
   fica estreito, some a lista e aparece o seletor (.ui-split__picker). */
.ui-split { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); border: 1px solid var(--ui-line); border-radius: var(--ui-r-lg); background: var(--ui-surface); }
/* Sem overflow:hidden no molde: menu suspenso de dentro não pode ser cortado. */
.ui-split > :first-child { border-radius: var(--ui-r-lg) 0 0 var(--ui-r-lg); }
.ui-split__list { min-width: 0; padding: var(--ui-s3); border-right: 1px solid var(--ui-line); background: var(--ui-bg-2); }
.ui-split__picker { display: none; }
.ui-split__detail { container: detail / inline-size; min-width: 0; }
@container page (max-width: 820px) {
  .ui-split { grid-template-columns: minmax(0, 1fr); }
  .ui-split__list { border-right: 0; border-bottom: 1px solid var(--ui-line); }
  /* No estreito a lista some; o cabeçalho do detalhe vira o seletor (.ui-split__head-pick). */
  .ui-split__list { display: none; }
}

/* Painel é container: tabela e lista dentro dele quebram pela largura dele. */
.ui-panel { container: panel / inline-size; }

/* KPI: rótulo, número, apoio. Número encolhe com o cartão. */
.ui-kpi { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: var(--ui-pad); border: 1px solid var(--ui-line); border-radius: var(--ui-r-lg); background: var(--ui-panel); container: kpi / inline-size; }
.ui-kpi .ui-value { font-size: clamp(18px, 2vw, 26px); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }

/* Tabela que NUNCA vaza o painel: a 1ª coluna (nome) absorve o espaço e corta
   com reticências; números não quebram. Painel estreito → cada linha vira
   cartão (td dos números precisam de data-l). */
.ui-table td:first-child, .ui-table th:first-child { width: 100%; max-width: 0; }
.ui-table td:first-child > * { max-width: 100%; }
.ui-table td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-table th:not(:first-child), .ui-table td:not(:first-child) { white-space: nowrap; }
/* Tabela curta (nome + 1 número + botões) cabe no celular: .ui-table--keep não vira cartão. */
@container panel (max-width: 320px) {
  .ui-table:not(.ui-table--keep) thead { display: none; }
  .ui-table:not(.ui-table--keep) tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--ui-line-soft); }
  .ui-table:not(.ui-table--keep) tr:last-child { border-bottom: 0; }
  .ui-table:not(.ui-table--keep) td { display: block; padding: 0 !important; border: 0 !important; width: auto !important; max-width: none !important; }
  .ui-table:not(.ui-table--keep) td:first-child { grid-column: 1 / -1; padding-bottom: 4px !important; white-space: normal; }
  .ui-table:not(.ui-table--keep) td[data-l] { display: flex; justify-content: space-between; gap: 8px; text-align: left !important; }
  .ui-table:not(.ui-table--keep) td[data-l]::before { content: attr(data-l); color: var(--ui-faint); font: 500 11.5px var(--ui-sans); }
  .ui-table:not(.ui-table--keep) td:empty { display: none; }
}


/* Números sempre com largura fixa (alinham em coluna sem trocar de fonte). */
main, .ui-panel, .ui-table, .ui-value, .ui-delta, .ui-row__value { font-variant-numeric: tabular-nums; }
/* Rótulos em caixa alta ficam no mesmo tipo do texto, só menores. */
.ui-label, .ui-section-title, .ui-panel__aside, .ui-table th { letter-spacing: .06em; }


/* Dica (tooltip) — qualquer elemento com data-tip="linha 1\nlinha 2". A 1ª linha
   vai em destaque. Segue o mouse; no toque, aparece ao tocar. Gráficos usam uma
   zona invisível por dia (.ui-chart-hit) para a dica valer no dia inteiro. */
.ui-tip { position: fixed; z-index: 2147483641; pointer-events: none; max-width: 260px; padding: 8px 10px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-r-sm); background: var(--ui-raised); box-shadow: var(--ui-shadow-pop); color: var(--ui-text-2); font-size: 12px; line-height: 1.45; white-space: pre-line; }
.ui-tip b { display: block; color: var(--ui-text); font-weight: 600; }
.ui-chart-hit { fill: transparent; cursor: crosshair; }
/* Destaque discreto: uma linha fina no dia (não uma faixa). A linha vem logo
   depois da zona no SVG (<rect class="ui-chart-hit"/><line class="ui-chart-guide"/>). */
.ui-chart-guide { stroke: rgba(255, 255, 255, .28); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; vector-effect: non-scaling-stroke; }
.ui-chart-hit:hover + .ui-chart-guide { opacity: 1; }

/* Tabela que vira cartão no celular (<table data-cards>, 24/11/2026): mesmo cartão de
   Contas — primeira coluna em cima, o resto em pares rótulo/valor. */
@media (max-width: 1100px) {
  table[data-cards] { display: block; width: 100% !important; }
  table[data-cards] tbody tr:hover td { background: none; }
  table[data-cards] thead { display: none; }
  table[data-cards] tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; padding: 10px; }
  table[data-cards] tbody tr:not([style*="display: none"]) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 12px 14px; border: 1px solid var(--ui-line-soft); border-radius: var(--ui-r); background: var(--ui-bg-2); }
  table[data-cards] tbody td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; width: auto !important; max-width: none !important; overflow: visible !important; white-space: normal !important; }
  table[data-cards] tbody td:first-child { grid-column: 1 / -1; }
  table[data-cards] tbody td[data-l]:not(:first-child)::before { content: attr(data-l); display: block; color: var(--ui-faint); font: 400 11px/1.4 Inter, system-ui, sans-serif; margin-bottom: 3px; }
  table[data-cards] tbody td:empty { display: none; }
  table[data-cards] tbody td[colspan] { grid-column: 1 / -1; }
  table[data-cards] tbody td { text-align: left !important; }
  table[data-cards] tbody td .flex, table[data-cards] tbody td .inline-flex { flex-wrap: wrap; }
  table[data-cards] tbody td > * { max-width: 100%; }
  table[data-cards] tbody td[data-l="#"] { display: none !important; }
  table[data-cards] tbody td[data-l="#"] + td { grid-column: 1 / -1; }
  table[data-cards] tbody td[data-l="#"] + td::before { display: none !important; }
  table[data-cards] tfoot { display: none; }
}

/* data-cards="sempre": cartão em qualquer largura (lista de pessoas, como Avatares e Contas). */

  table[data-cards="sempre"] { display: block; width: 100%; }
  table[data-cards="sempre"] thead { display: none; }
  table[data-cards="sempre"] tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; padding: 10px; }
  table[data-cards="sempre"] tbody tr:not([style*="display: none"]) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 12px 14px; border: 1px solid var(--ui-line-soft); border-radius: var(--ui-r); background: var(--ui-bg-2); }
  table[data-cards="sempre"] tbody td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; white-space: normal !important; }
  table[data-cards="sempre"] tbody td:first-child { grid-column: 1 / -1; }
  table[data-cards="sempre"] tbody td[data-l]:not(:first-child)::before { content: attr(data-l); display: block; color: var(--ui-faint); font: 400 11px/1.4 Inter, system-ui, sans-serif; margin-bottom: 3px; }
  table[data-cards="sempre"] tbody td:empty { display: none; }
  table[data-cards="sempre"] tbody td[colspan] { grid-column: 1 / -1; }



/* ═════ public/css/hub-shell.css ═════ */
/*
 * Cycle UI — esqueleto (barra do topo, menu lateral, seletor de dashboards, conta e sino).
 * Saiu de dentro de src/Views/layouts/main.php em 24/11/2026 para virar parte do kit
 * único (/kit/v1/cycle-ui.css): o Hub e os outros dashboards usam este mesmo arquivo.
 * Não editar o kit gerado: editar aqui e rodar `php bin/kit-build.php`.
 */
        /* Dark theme (default) */
        /* Preto neutro (Pedro 18/11/2026, padrão "premium clean"): sem o azul-marinho. */
        .dark {
            --bg: #09090b;
            --card: #111113;
            --border: #222226;
            --hover: #18181b;
            --text: #ffffff;
            --text-secondary: #9ca3af;
            --text-muted: #6b7280;
            --nav-bg: rgba(17, 17, 19, 0.95);
            --input-bg: #09090b;
        }
        .dark body { background-color: var(--bg); color: var(--text); }

        /* Overlay full-screen (Pedro 2026-07-12): modais `fixed inset-0` sao
           filhos de containers `.space-y-*` nas views, e o Tailwind aplica
           `margin-top:1.5rem` em todo filho nao-primeiro (regra `> * + *`).
           Num position:fixed esse margin EMPURRA o overlay ~24px pra baixo,
           deixando uma faixa no topo da tela sem escurecer — aparecia em
           QUALQUER modal (bug "na dash inteira"). Overlay que cobre a viewport
           nunca deve ter margem de fluxo. */
        .fixed.inset-0 { margin-top: 0 !important; }

        /* Light theme */
        .light {
            --bg: #f1f5f9;
            --card: #ffffff;
            --border: #e2e8f0;
            --hover: #f8fafc;
            --text: #0f172a;
            --text-secondary: #475569;
            --text-muted: #94a3b8;
            --nav-bg: rgba(255, 255, 255, 0.95);
            --input-bg: #f8fafc;
        }
        .light body { background-color: var(--bg); color: var(--text); }
        .light .text-white { color: #0f172a; }
        .light .text-gray-300 { color: #334155; }
        .light .text-gray-400 { color: #64748b; }
        .light .text-gray-500 { color: #94a3b8; }
        .light .text-gray-600 { color: #94a3b8; }
        /* Pedro 2026-07-18: AS LINHAS BRANCAS.
           `dark.border` está no tailwind.config como 'var(--border)' — uma
           variável CSS, não um hex. O modificador de opacidade do Tailwind
           (border-dark-border/45) precisa converter a cor pra rgb(... /
           <alpha>), e com uma var crua ele NÃO consegue: a classe não gera
           regra nenhuma. Sobra só o `border-b`, que cai na cor padrão do
           Tailwind — #e5e7eb, cinza claro. Numa tela de fundo var(--ui-bg-2) isso
           vira risco branco. Eram 53 ocorrências em 10+ telas (Membros,
           Métricas, Comissão, BI, Registros...), todas desenhando errado.
           Aqui as variantes passam a existir de verdade, derivadas da própria
           --border, então acompanham o tema em vez de brigar com ele. */
        .border-dark-border\/15 { border-color: color-mix(in srgb, var(--border) 15%, transparent); }
        .border-dark-border\/20 { border-color: color-mix(in srgb, var(--border) 20%, transparent); }
        .border-dark-border\/30 { border-color: color-mix(in srgb, var(--border) 30%, transparent); }
        .border-dark-border\/40 { border-color: color-mix(in srgb, var(--border) 40%, transparent); }
        .border-dark-border\/45 { border-color: color-mix(in srgb, var(--border) 45%, transparent); }
        .border-dark-border\/50 { border-color: color-mix(in srgb, var(--border) 50%, transparent); }
        .border-dark-border\/60 { border-color: color-mix(in srgb, var(--border) 60%, transparent); }
        .border-dark-border\/70 { border-color: color-mix(in srgb, var(--border) 70%, transparent); }
        /* Navegadores sem color-mix: cai no --border cheio, que é discreto do
           mesmo jeito. Melhor do que o cinza claro do fallback do Tailwind. */
        @supports not (color: color-mix(in srgb, red 50%, transparent)) {
            [class*="border-dark-border/"] { border-color: var(--border); }
        }

        .light .border-dark-border { border-color: var(--border); }
        .light .bg-dark-bg { background-color: var(--bg); }
        .light .bg-dark-card { background-color: var(--card); }
        .light .bg-dark-hover { background-color: var(--hover); }
        .light nav.sticky { background-color: var(--nav-bg); backdrop-filter: blur(12px); }
        .light .bg-dark-card\/95 { background-color: var(--nav-bg); }
        .light input, .light select, .light textarea {
            background-color: var(--input-bg); border-color: var(--border); color: var(--text);
        }
        .light input::placeholder, .light textarea::placeholder { color: #94a3b8; }
        .light .bg-gradient-to-r { background: linear-gradient(to right, var(--card), var(--hover)); }
        .light .bg-dark-bg\/50 { background-color: rgba(241,245,249,0.5); }
        .light .border-dark-border\/30 { border-color: rgba(226,232,240,0.3); }
        .light .hover\:bg-dark-hover\/50:hover { background-color: rgba(248,250,252,0.5); }
        .light .bg-dark-border { background-color: #e2e8f0; }
        .light .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); }
        /* A Home usava um gradiente escuro inline. No tema claro o texto era
           corretamente escurecido, mas o fundo continuava azul-marinho e o
           cumprimento praticamente desaparecia. */
        .light .dashboard-hero {
            background:
                radial-gradient(560px 150px at 100% 0, var(--dashboard-hero-tint, transparent), transparent 62%),
                linear-gradient(90deg, #ffffff, #f8fafc) !important;
        }

        .scrollbar-hide::-webkit-scrollbar { display: none; }
        .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

        /* Auto-grow textareas — no scrollbar, no resize handle, height follows content */
        textarea.autogrow { field-sizing: content; resize: none; overflow: hidden; min-height: 40px; }

        /* Chunky, visible scrollbars for dropdown menus */
        .funnel-menu-scroll::-webkit-scrollbar { width: 10px; }
        .funnel-menu-scroll::-webkit-scrollbar-track { background: transparent; }
        .funnel-menu-scroll::-webkit-scrollbar-thumb { background: #3a4150; border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
        .funnel-menu-scroll::-webkit-scrollbar-thumb:hover { background: #4a5260; border: 2px solid transparent; background-clip: padding-box; }
        .funnel-menu-scroll { scrollbar-width: thin; scrollbar-color: #3a4150 transparent; }

        /* Global scrollbar styling — all scrollable elements herdam o
           visual gray do scrollbar principal. Antes ficavam no default branco
           do browser, que destoava de tudo. Aplicado em html/body + qualquer
           elemento (universal selector) sem afetar .scrollbar-hide nem
           .funnel-menu-scroll porque essas têm specificity maior por classe. */
        ::-webkit-scrollbar { width: 10px; height: 10px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #3a4150; border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
        ::-webkit-scrollbar-thumb:hover { background: #4a5260; border: 2px solid transparent; background-clip: padding-box; }
        ::-webkit-scrollbar-corner { background: transparent; }
        html, body { scrollbar-width: thin; scrollbar-color: #3a4150 transparent; }
        * { scrollbar-width: thin; scrollbar-color: #3a4150 transparent; }

        /* Mantem o gesto horizontal dentro das tabelas/carrosseis. No Chrome do
           macOS, chegar ao inicio/fim de um overflow horizontal podia propagar o
           restante do gesto para a pagina e acionar Voltar/Avancar. A regra CSS
           bloqueia esse encadeamento sem instalar um listener wheel global.
           Boards virtuais (Produção e Fluxo) cancelam somente o gesto recebido
           dentro do próprio board, preservando o scroll geral no compositor. */
        .overflow-x-auto,
        .overflow-x-scroll,
        .prod-fixed-scrollbar,
        .acct-fixed-scrollbar,
        [style*="overflow-x:auto"],
        [style*="overflow-x: auto"] {
            overscroll-behavior-x: contain;
            overscroll-behavior-inline: contain;
        }

        [x-cloak] { display: none !important; }

        /* ── MENU: padrão único dos dashboards da Cycle (Tracking 1:1) ───────────
           Pedro 2026-11-17: "todo menu de dashboard tem que ser um padrão só: o
           da Tracking". Valores copiados de tracking assets/dashboard.css
           (.sidebar, .sidebar-brand, .model-switch, .nav-item, .sidebar-footer,
           .mnav-*). Os tokens do menu apontam para os do Hub, que no modo escuro
           têm exatamente os mesmos valores da Tracking (var(--ui-surface), #141d35,
           var(--ui-line), #9ca3af, #6b7280), e assim o modo claro do Hub continua
           funcionando. Tudo é CSS explícito: não depende do tailwind.css.

           Barra escondida por padrão em TODAS as larguras, aberta pelo botão
           fixo no canto superior esquerdo (desenho do Claude, ver "Botão da
           barra" abaixo): no computador com mouse o hover mostra por cima e o
           clique/⌘B fixa ao lado do conteúdo; no toque é gaveta (botão ou
           arrasto da borda abre; arrastar para a esquerda, tocar fora, Esc ou
           escolher uma página fecha). A página preenche a largura inteira e
           começa onde sempre começou: o bloco do cabeçalho (título e o que
           mora com ele: selo, eyebrow, subtítulo) ganha 50px à esquerda para o
           botão (script "Gaveta do menu"); sem título no topo, uma folga de 56px. */
        #app-sidebar, .mnav-toggle, .apptop {
            --m-raised: var(--card);
            --m-hover: var(--hover);
            --m-border: var(--border);
            --m-border-l: #3a4150;
            --m-text: var(--text);
            --m-dim: var(--text-secondary);
            --m-muted: var(--text-muted);
            --m-accent: #3b82f6;
            --m-accent-h: #60a5fa;
            --m-accent-bg: var(--hover);
            --m-red: #ef4444;
            --m-red-bg: rgba(239,68,68,.08);
            --m-t: .15s ease;
        }
        .light .mnav-toggle { --m-border-l: #cbd5e1; }
        #app-sidebar {
            position: fixed; left: 0; top: 0; bottom: 0; height: 100dvh; z-index: 1000;
            width: min(84vw, 280px); min-width: 0;
            display: flex; flex-direction: column;
            background: var(--m-raised); border-right: 1px solid var(--m-border); color: var(--m-text);
            font-size: 14px; line-height: 1.5;
            transform: translateX(-102%); box-shadow: none; touch-action: pan-y;
            /* fechado = fora do Tab/leitor de tela; a visibilidade só some
               depois que a gaveta terminou de deslizar */
            visibility: hidden; transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s linear .26s;
        }
        #app-sidebar.sidebar--banner { top: 44px; height: auto; }
        body.mnav-open #app-sidebar {
            transform: none; box-shadow: 24px 0 60px rgba(0,0,0,.55);
            visibility: visible; transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s;
        }
        #app-sidebar .nav-icon, #app-sidebar .nav-item > svg, .apptop .nav-icon {
            width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none;
            stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
        }

        /* Marca + seletor de dashboards */
        .apptop .sidebar-brand {
            height: 64px; min-height: 64px; padding: 0 12px; display: flex; align-items: center;
            justify-content: space-between; gap: 2px; border-bottom: 1px solid var(--m-border);
        }
        .apptop .sidebar-brand-main {
            min-width: 0; height: 44px; padding: 0 4px 0 0; border: 0; border-radius: 8px;
            display: flex; flex: 1; align-items: center; gap: 10px; background: transparent; color: inherit;
            text-align: left; cursor: pointer; font: inherit; font-size: 13.3333px; line-height: normal;
            transition: background var(--m-t);
        }
        .apptop .sidebar-brand-main:hover,
        .apptop .sidebar-brand-main[aria-expanded="true"] { background: var(--m-hover); }
        .apptop .logo-icon {
            background: var(--m-accent); color: #fff; width: 36px; height: 36px; border-radius: 9px;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .apptop .brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
        .apptop .brand-copy strong { font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--m-text); }
        .apptop .brand-copy small {
            display: block; margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
            color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        /* 18px: na Tracking o .nav-icon (18px) vence o 15px declarado antes */
        .apptop .brand-chevron { width: 18px; height: 18px; margin-left: auto; color: var(--m-muted); transition: transform .18s ease; }
        .apptop .sidebar-brand-main[aria-expanded="true"] .brand-chevron { transform: rotate(180deg); }

        /* Geometria crítica junto do HTML: um bundle Tailwind antigo em cache
           não pode deixar o painel sem posição. Ancorado na gaveta (que é o
           bloco de contenção), igual à Tracking: 60px do topo, 12px da borda. */
        #cycle-app-switcher {
            position: absolute; z-index: 120; top: 60px; left: 12px; width: 280px; max-width: calc(100vw - 24px);
            max-height: calc(100vh - 80px);
            max-height: calc(100dvh - 80px);
            overflow-y: auto; overscroll-behavior: contain;
            background: var(--m-raised); border: 1px solid var(--m-border); border-radius: 13px;
            box-shadow: 0 22px 60px rgba(0,0,0,.52), 0 0 0 1px rgba(59,130,246,.04);
        }
        .apptop .cycle-app-switcher-head { padding: 16px 18px 13px; border-bottom: 1px solid var(--m-border); display: flex; flex-direction: column; gap: 3px; line-height: 1.5; }
        .apptop .cycle-app-switcher-head span { font-size: 12px; font-weight: 750; letter-spacing: 1.4px; text-transform: uppercase; color: #60a5fa; }
        .apptop .cycle-app-switcher-head strong { font-size: 14px; font-weight: 650; color: var(--m-text); }
        .apptop .cycle-app-switcher-list { padding: 10px; }
        .apptop .cycle-app-link {
            min-height: 62px; padding: 8px 9px; display: flex; align-items: center; gap: 11px; border-radius: 10px;
            color: var(--m-text); text-decoration: none; transition: background var(--m-t);
        }
        .apptop .cycle-app-link:hover, .apptop .cycle-app-link.is-current { background: var(--m-hover); }
        .apptop .cycle-app-icon {
            width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; background: rgba(59,130,246,.12); color: #60a5fa;
        }
        .apptop .cycle-app-icon--copy { background: rgba(168,85,247,.13); color: #a78bfa; }
        .apptop .cycle-app-icon--editing { background: rgba(6,182,212,.13); color: #22d3ee; }
        .apptop .cycle-app-icon--traffic { background: rgba(234,179,8,.13); color: #fbbf24; }
        .apptop .cycle-app-icon--tracking { background: rgba(244,63,94,.13); color: #fb7185; }
        .apptop .cycle-app-icon .nav-icon { width: 19px; height: 19px; }
        .apptop .cycle-app-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; line-height: 1.25; }
        .apptop .cycle-app-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--m-text); }
        .apptop .cycle-app-title small { font-size: 11px; font-weight: 750; letter-spacing: .7px; text-transform: uppercase; color: var(--m-accent-h); }
        .apptop .cycle-app-description { margin-top: 4px; font-size: 11px; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .apptop .cycle-app-arrow { width: 15px; height: 15px; color: var(--m-muted); }
        .apptop .cycle-app-switcher footer { padding: 12px 18px; border-top: 1px solid var(--m-border); font-size: 12px; color: var(--m-muted); line-height: 1.5; }

        /* Navegação */
        #app-sidebar .sidebar-nav { flex: 1; min-height: 0; padding: 12px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; overflow-x: hidden; }
        #app-sidebar .nav-group { display: flex; flex-direction: column; gap: 2px; }
        #app-sidebar .nav-group-label {
            padding: 0 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .85px; line-height: 15px;
            color: var(--m-muted); text-transform: uppercase; white-space: nowrap;
        }
        #app-sidebar .nav-item {
            position: relative; height: 36px; min-height: 36px; display: flex; align-items: center; gap: 10px; padding: 8px 10px;
            border-radius: 8px; color: var(--m-dim); font-size: 14px; font-weight: 500; line-height: 21px;
            text-decoration: none; transition: all var(--m-t); cursor: pointer;
        }
        #app-sidebar .nav-item:hover { background: var(--m-hover); color: var(--m-text); }
        #app-sidebar .nav-item.active { background: var(--m-accent-bg); color: var(--m-text); }
        #app-sidebar .nav-item-primary { font-weight: 600; }
        #app-sidebar .nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        /* Rodapé: sino · usuário · tema · sair (ações-fantasma de 32px) */
        .apptop .sidebar-footer {
            min-height: 57px; padding: 12px; border-top: 1px solid var(--m-border); flex-shrink: 0;
            display: grid; grid-template-columns: 32px minmax(0,1fr) 32px 32px; align-items: center; gap: 8px;
            background: var(--m-raised);
        }
        .apptop .sidebar-footer-cell { position: relative; width: 32px; height: 32px; }
        .apptop .sidebar-footer-action {
            -webkit-appearance: none; appearance: none; border: 0; padding: 0; margin: 0; background: transparent; font: inherit; cursor: pointer;
            position: relative; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
            color: var(--m-muted); text-decoration: none; transition: background var(--m-t), color var(--m-t);
        }
        .apptop .sidebar-footer-action:hover { background: var(--m-hover); color: var(--m-text); }
        .apptop .logout-btn:hover { background: var(--m-red-bg); color: var(--m-red); }
        .apptop .sidebar-alert-badge {
            position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
            /* #dc2626: branco sobre ele dá 4,8:1 (o vermelho anterior dava 3,8:1, abaixo do mínimo). */
            display: flex; align-items: center; justify-content: center; background: #dc2626; color: #fff;
            border: 2px solid var(--m-raised); font-size: 11px; font-weight: 750; line-height: 1;
        }
        .apptop .user-info { min-width: 0; display: flex; align-items: center; gap: 8px; }
        .apptop .user-avatar {
            width: 32px; height: 32px; border-radius: 50%; background: #334155; display: flex; align-items: center; justify-content: center;
            font-size: 12px; font-weight: 600; line-height: 18px; color: #fff; flex-shrink: 0;
        }
        .apptop .user-detail { min-width: 0; }
        .apptop .user-name { font-size: 12px; font-weight: 600; line-height: 18px; color: var(--m-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        /* Posição do painel do sino no próprio kit (antes vinha da classe absolute do Tailwind do Hub e,
           em outro dash, o painel saía da tela). */
        .apptop .sidebar-footer-cell { position: relative; }
        .apptop .sidebar-notif-panel { position: absolute; z-index: 60; width: min(380px, calc(100vw - 24px)); }

        /* Botão da barra + fundo (Pedro, 18/11; mesmo desenho da Copy).
           UM botão só, fixo no canto superior esquerdo, por cima da barra e
           da página: fica no MESMO ponto da tela com a barra aberta ou
           fechada, como no Claude ("o ícone onde ele tava não é o mesmo onde
           o meu mouse fica"). No computador com mouse, passar o mouse nele
           (ou encostar na borda esquerda, .mnav-edge) mostra a barra por cima
           sem escurecer (body.mnav-peek) e ela some ~180ms depois que o mouse
           sai; clicar (ou ⌘B) FIXA a barra ao lado do conteúdo
           (body.mnav-pinned), e a escolha fica salva (localStorage
           cycle-sidebar-pinned). No toque o mesmo botão abre/fecha a gaveta. */
        body > main, body .cy-main { margin-left: 0; }
        /* O menu sempre tem lugar próprio (Pedro 18/11/2026): no computador é a
           coluna do menu (aberta ou recolhida em ícones); no celular, a barra do
           topo. Nada boia por cima do conteúdo e nada é calculado ao carregar. */
        /* Cabeçalho único das telas (Pedro 18/11/2026: "unificar todas as abas de
           um único jeito"): título + subtítulo à esquerda, ao lado do botão do
           menu; calendário e controles da página no canto direito. */
        /* .hub-page-head mora em public/css/hub-ui.css (sistema único, 23/11/2026). */
        .mnav-toggle {
            display: flex; position: fixed; left: 12px; top: max(14px, env(safe-area-inset-top)); z-index: 1002;
            width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0;
            border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--m-dim);
            cursor: pointer; transition: background .15s, color .15s, border-color .15s;
        }
        .mnav-toggle:hover { background: var(--m-hover); color: var(--m-text); }
        .mnav-toggle:focus-visible { outline: 2px solid var(--m-accent-h); outline-offset: 2px; }
        .mnav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        /* A página do Hub rola no documento: com a página rolada (e a barra
           solta) o botão ganha fundo para não ficar ilegível em cima do texto. */
        body.mnav-scrolled:not(.mnav-pinned):not(.mnav-peek):not(.mnav-open) .mnav-toggle {
            background: var(--m-raised); border-color: var(--m-border); box-shadow: 0 6px 18px rgba(0,0,0,.28);
        }
        .light body.mnav-scrolled:not(.mnav-pinned):not(.mnav-peek):not(.mnav-open) .mnav-toggle { box-shadow: 0 6px 18px rgba(15,23,42,.12); }
        .mnav-has-banner .mnav-toggle { top: calc(44px + 14px); }
        .mnav-edge { display: none; position: fixed; left: 0; top: 0; bottom: 0; width: 8px; z-index: 998; }
        .mnav-backdrop {
            display: block; position: fixed; inset: 0; z-index: 999; background: rgba(3,6,14,.6);
            opacity: 0; pointer-events: none; transition: opacity .26s;
        }
        body.mnav-open .mnav-backdrop { opacity: 1; pointer-events: auto; }
        body.mnav-peek #app-sidebar {
            transform: none; box-shadow: 24px 0 60px rgba(0,0,0,.45);
            visibility: visible; transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s;
        }
        .light body.mnav-peek #app-sidebar { box-shadow: 24px 0 60px rgba(15,23,42,.18); }
        @media (max-width: 640px) {
            body.mnav-open { overflow: hidden; }
            /* Banner de preview numa linha só (44px): quebrado em duas linhas ele
               ficava atrás do botão do menu e do topo da gaveta. */
            .mnav-banner { height: 44px; padding: 0 .75rem !important; gap: .5rem !important; font-size: 12px !important; justify-content: space-between !important; }
            .mnav-banner > svg { display: none; }
            .mnav-banner > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
            .mnav-banner form button { margin-left: 0 !important; white-space: nowrap; }
        }
        @media (min-width: 900px) and (hover: hover) {
            body.mnav-pinned #app-sidebar {
                transform: none; visibility: visible; box-shadow: none; width: 280px; transition: none;
            }
            body.mnav-pinned > main, body.mnav-pinned .cy-main { margin-left: 280px; }
            body.mnav-pinned .mnav-backdrop { display: none; }
            /* Abrir e fechar deslizando (Pedro 24/11/2026: "abre no seco"). Só depois do
               primeiro quadro (body.mnav-anim, posto pelo kit): ao carregar a página o menu
               já aparece no lugar, sem deslizar a cada navegação. A tela acompanha junto. */
            body.mnav-anim.mnav-pinned #app-sidebar { transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s; }
            body.mnav-anim > main, body.mnav-anim .cy-main { transition: margin-left .28s cubic-bezier(.2,.8,.2,1); }
        }

        /* ── Menu "premium clean" (Pedro 18/11/2026; referência Ember/Kestrel) ──
           Preto neutro, marca com o símbolo da Cycle, busca ⌘K, seções em mono
           pequeno e item ativo numa pílula discreta. No computador o menu fica
           fixo por padrão e o botão de recolher mora no topo dele, à direita. */
        #app-sidebar, .apptop {
            --m-raised: #0c0c0e; --m-border: rgba(255,255,255,.07); --m-hover: rgba(255,255,255,.045);
            --m-dim: #a1a1aa; --m-muted: #8b8b93; --m-accent-bg: rgba(255,255,255,.07);
        }
        .light #app-sidebar, .light .apptop { --m-raised: #fff; --m-border: #e4e4e7; --m-hover: #f4f4f5; --m-dim: #52525b; --m-muted: #a1a1aa; --m-accent-bg: #f4f4f5; }
        .apptop .sidebar-brand { height: 60px; min-height: 60px; border-bottom: 0; }
        .apptop .sidebar-brand-main { flex: 0 1 auto; height: 40px; padding: 0 8px 0 6px; gap: 10px; }
        .apptop .logo-icon { width: 28px; height: 28px; background: none; border-radius: 0; }
        .apptop .logo-icon img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(124,58,237,.35)); }
        .apptop .brand-copy strong { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
        .apptop .brand-copy small { display: none; }
        .apptop .brand-chevron { width: 14px; height: 14px; margin-left: 2px; }
        .apptop .sb-search, #app-sidebar .sb-search {
            display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); height: 40px; margin: 2px 12px 12px; padding: 0 8px 0 12px;
            border: 1px solid var(--m-border); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--m-muted);
            font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background var(--m-t), color var(--m-t); flex-shrink: 0;
        }
        .apptop .sb-search:hover, #app-sidebar .sb-search:hover { background: rgba(255,255,255,.05); color: var(--m-dim); }
        .apptop .sb-search:focus-visible, #app-sidebar .sb-search:focus-visible { outline: 2px solid rgba(255,255,255,.4); outline-offset: 2px; }
        .apptop .sb-search > svg, #app-sidebar .sb-search > svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
        .apptop .sb-search kbd, #app-sidebar .sb-search kbd { margin-left: auto; display: inline-flex; gap: 3px; font: inherit; }
        .apptop .sb-search kbd span, #app-sidebar .sb-search kbd span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 5px; background: rgba(255,255,255,.07); color: var(--m-dim); font: 600 10.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
        #app-sidebar .sidebar-nav { padding: 16px 12px; gap: 20px; }
        #app-sidebar .nav-group-label { padding: 0 10px 7px; font: 500 10.5px/16px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: var(--m-muted); }
        #app-sidebar .nav-item { height: 36px; min-height: 36px; padding: 0 10px; gap: 11px; border: 1px solid transparent; color: var(--m-dim); font-weight: 450; }
        #app-sidebar .nav-item > svg, #app-sidebar .nav-item .nav-icon { width: 17px; height: 17px; stroke-width: 1.7; }
        #app-sidebar .nav-item:hover { background: var(--m-hover); color: var(--m-text); }
        #app-sidebar .nav-item.active { background: var(--m-accent-bg); border-color: rgba(255,255,255,.08); color: #fafafa; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.35); }
        .light #app-sidebar .nav-item.active { color: #09090b; border-color: #e4e4e7; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
        .apptop .sidebar-footer { border-top-color: var(--m-border); }


        @media (prefers-reduced-motion: reduce) {
            #app-sidebar, .mnav-backdrop, .mnav-toggle { transition: none !important; }
        }
            /* ── Barra do topo (Pedro 18/11/2026: "igual tem no Claude") ──────────
           Menu e marca à esquerda, busca no meio, modelo/sino/login à direita.
           O menu lateral começa embaixo dela e só abre/fecha pelo botão. */
        .apptop {
            position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 1001;
            display: grid; grid-template-columns: 268px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 12px 0 10px;
            background: rgba(12,12,14,.9); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
            border-bottom: 1px solid var(--m-border); color: var(--m-text); font-size: 14px; line-height: 1.5;
        }
        .light .apptop { background: rgba(255,255,255,.9); }
        .apptop.apptop--banner { top: 44px; }
        .apptop-left { position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; }
        .apptop .mnav-toggle { position: static !important; flex: none; width: 36px; height: 36px; }
        .apptop .sidebar-brand { position: static; height: auto; min-height: 0; padding: 0; border: 0; }
        .apptop .sidebar-brand-main { height: 36px; }
        .apptop #cycle-app-switcher { top: calc(100% + 10px); left: 0; }
        .apptop-center { display: flex; justify-content: center; min-width: 0; }
        .apptop .sb-search, #app-sidebar .sb-search { width: min(460px, 100%); height: 36px; margin: 0; }
        .apptop-right { display: flex; align-items: center; gap: 6px; }
        /* Barra do MRR no topo (desktop) */
        .mrr-bar { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 230px; height: 36px; margin-right: 8px; }
        .mrr-bar__top { display: flex; align-items: center; gap: 6px; line-height: 16px; }
        .mrr-bar__icon { width: 15px; height: 15px; color: #60a5fa; flex: none; }
        .mrr-bar__label { font-size: 12.5px; font-weight: 650; color: #93c5fd; }
        .mrr-bar__info { width: 15px; height: 15px; flex: none; display: grid; place-items: center; border: 1.5px solid #6b7280; border-radius: 50%; color: #9ca3af; font: 700 9px/1 ui-sans-serif, system-ui; cursor: help; }
        .mrr-bar__val { margin-left: auto; font: 500 12px var(--ui-mono, ui-monospace, monospace); color: #9ca3af; white-space: nowrap; }
        .mrr-bar__val b { color: #f4f4f5; font-weight: 650; }
        .mrr-bar__track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
        .mrr-bar__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #60a5fa); }
        @media (max-width: 1099.98px) { .apptop .mrr-bar { display: none; } }
        .apptop .sidebar-footer { display: flex; align-items: center; gap: 2px; min-height: 0; padding: 0; border: 0; background: transparent; }
        .apptop .user-info { padding: 0 4px 0 6px; }
        .apptop .sidebar-notif-panel { top: calc(100% + 10px) !important; bottom: auto !important; left: auto !important; right: 0; margin: 0 !important; }
        .apptop .umenu { position: relative; }
        .apptop .umenu-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
        .apptop .umenu-btn:hover .user-avatar, .apptop .umenu-btn[aria-expanded="true"] .user-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
        .apptop .umenu-btn:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: 1px; }
        .apptop .umenu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 248px; padding: 6px; border: 1px solid var(--m-border); border-radius: 12px; background: #141416; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
        .light .apptop .umenu-panel { background: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.16); }
        .apptop .umenu-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--m-border); }
        .apptop .umenu-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
        .apptop .umenu-who strong { font-size: 13.5px; font-weight: 600; color: var(--m-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .apptop .umenu-who small { font-size: 12px; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .apptop .umenu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--m-dim); font: inherit; font-size: 13.5px; text-align: left; text-decoration: none; cursor: pointer; }
        .apptop .umenu-item:hover { background: var(--m-hover); color: var(--m-text); }
        .apptop .umenu-item svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
        .apptop .umenu-item--danger:hover { background: var(--m-red-bg); color: var(--m-red); }
        .apptop .umenu-sep { height: 1px; margin: 4px 2px; background: var(--m-border); }
        /* Abas do item juntado (Contas, Financeiro, Equipe, API) no topo da página */
        .hub-subtabs {
            display: inline-flex; align-items: center; gap: 2px; max-width: 100%; margin: 0 0 20px; padding: 3px;
            border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.025);
            overflow-x: auto; scrollbar-width: none;
        }
        .hub-subtabs::-webkit-scrollbar { display: none; }
        .hub-subtab {
            display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 7px;
            color: var(--text-secondary); font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap;
            text-decoration: none; transition: background .15s ease, color .15s ease;
        }
        .hub-subtab:hover { background: var(--hover); color: var(--text); }
        .hub-subtab.is-on { background: var(--hover); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.35); }
        .light .hub-subtabs { background: #fafafa; }
        .light .hub-subtab.is-on { background: #fff; box-shadow: 0 0 0 1px #e4e4e7, 0 1px 2px rgba(0,0,0,.05); }
        .sb-mobile-tools { display: none; }
        @media (max-width: 899.98px), (hover: none) {
            .apptop-center { display: none !important; }
            /* Painéis do topo no celular: largura da tela com margem, nunca colados na borda. */
            .apptop .sidebar-notif-panel, .apptop .umenu-panel, .apptop #cycle-app-switcher { position: fixed !important; left: 12px !important; right: 12px !important; top: 64px !important; width: auto !important; max-width: none !important; max-height: calc(100dvh - 80px); overflow-y: auto; }
            .apptop-right { justify-self: end; }
            .sb-mobile-tools { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 14px; border-bottom: 1px solid var(--m-border); }
            #app-sidebar .sb-mobile-tools .sb-search { width: 100%; margin: 0; }
        }
        .apptop .sidebar-brand { display: flex; align-items: center; gap: 2px; }
        .apptop .sidebar-brand-main { text-decoration: none; }
        .apptop .brand-switch { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--m-muted); cursor: pointer; }
        .apptop .brand-switch:hover, .apptop .brand-switch[aria-expanded="true"] { background: var(--m-hover); color: var(--m-text); }
        .apptop .brand-switch[aria-expanded="true"] .brand-chevron { transform: rotate(180deg); }
        .apptop .brand-switch:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: 1px; }
        @media (max-width: 899.98px), (hover: none) {
            .apptop-left { position: static; }
            .apptop .sidebar-brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
            .apptop .brand-switch .brand-chevron { display: block !important; }
            .apptop #cycle-app-switcher { left: 8px; right: 8px; width: auto; top: calc(100% + 6px); }
        }
        /* Troca de dashboard: lista enxuta (Pedro 18/11/2026: "zuado"). */
        .apptop #cycle-app-switcher { width: 300px; padding: 6px; border-radius: 14px; background: #141416; border-color: var(--m-border); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
        .light .apptop #cycle-app-switcher { background: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.16); }
        .apptop .cycle-app-switcher-head { padding: 8px 10px 6px; border: 0; }
        .apptop .cycle-app-switcher-head span { font: 500 10.5px/16px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--m-muted); }
        .apptop .cycle-app-switcher-list { padding: 0; display: flex; flex-direction: column; gap: 2px; }
        .apptop .cycle-app-link { min-height: 52px; padding: 8px 10px; gap: 12px; border-radius: 10px; }
        .apptop .cycle-app-icon { width: 32px; height: 32px; border-radius: 9px; }
        .apptop .cycle-app-icon .nav-icon { width: 16px; height: 16px; }
        .apptop .cycle-app-title { font-size: 13.5px; font-weight: 600; }
        .apptop .cycle-app-description { margin-top: 1px; font-size: 12px; }
        .apptop .cycle-app-current { flex: none; padding: 2px 8px; border-radius: 99px; background: var(--m-hover); border: 1px solid var(--m-border); font: 600 10.5px/16px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--m-dim); }
        .apptop .cycle-app-arrow { width: 15px; height: 15px; flex: none; color: var(--m-muted); opacity: 0; transition: opacity .15s; }
        .apptop .cycle-app-link:hover .cycle-app-arrow { opacity: 1; }
        @media (max-width: 899.98px), (hover: none) {
            .apptop .sidebar-brand { left: 0; right: 0; top: 0; bottom: 0; margin: auto; width: max-content; height: 40px; transform: none; }
            .apptop #cycle-app-switcher { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; max-width: none; }
            .apptop .cycle-app-arrow { opacity: 1; }
        }
        #app-sidebar { top: 56px; height: calc(100dvh - 56px); }
        #app-sidebar.sidebar--banner { top: 100px; height: auto; }
        .mnav-backdrop { top: 56px; }
        .mnav-edge { display: none !important; }
        body > main, body .cy-main { padding-top: 80px !important; }
        @media (max-width: 899.98px), (hover: none) {
            .apptop { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; padding: 0 8px; }
            .apptop .apptop-center { justify-content: flex-end; }
            .apptop .sb-search { width: 40px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
            .apptop .sb-search .nav-label { display: none; }
            .apptop .user-detail, .apptop .theme-btn, .apptop .brand-chevron { display: none; }
            body > main, body .cy-main { padding-top: 72px !important; }
        }

    /* Sino (Pedro 23/11/2026). Mesmo painel sólido do suporte, dark-first. */
    .nf-panel { --nf-bg:#121214; --nf-raised:#18181b; --nf-line:rgba(255,255,255,.08); --nf-text:#f4f4f5; --nf-dim:#a1a1aa; --nf-muted:#71717a;
        width:min(380px, calc(100vw - 24px)); background:var(--nf-bg); border:1px solid var(--nf-line); border-radius:14px; box-shadow:0 24px 60px rgba(0,0,0,.55); overflow:hidden; color:var(--nf-text); }
    .light .nf-panel { --nf-bg:#fff; --nf-raised:#f4f4f5; --nf-line:#e4e4e7; --nf-text:#09090b; --nf-dim:#52525b; --nf-muted:#a1a1aa; }
    .nf-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 12px 12px 16px; border-bottom:1px solid var(--nf-line); }
    .nf-head__title { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; min-width:0; }
    .nf-head__count { padding:2px 7px; border-radius:99px; background:rgba(59,130,246,.16); color:#93c5fd; font-size:11px; font-weight:600; }
    .nf-head__actions { display:flex; align-items:center; gap:4px; flex:none; }
    .nf-link { padding:5px 8px; border-radius:8px; color:#93c5fd; font-size:12px; font-weight:600; white-space:nowrap; }
    .nf-link:hover { background:rgba(59,130,246,.12); color:#dbeafe; }
    .nf-icon { display:grid; place-items:center; width:30px; height:30px; border-radius:8px; color:var(--nf-dim); }
    .nf-icon svg { width:16px; height:16px; }
    .nf-icon:hover, .nf-icon.is-on { background:var(--nf-raised); color:var(--nf-text); }
    .nf-list { max-height:min(460px, calc(100dvh - 140px)); overflow-y:auto; overscroll-behavior:contain; padding:4px 0 6px; }
    .nf-sec { padding:10px 16px 4px; color:var(--nf-muted); font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
    .nf-item { position:relative; display:flex; gap:12px; padding:10px 16px; }
    .nf-item.is-click { cursor:pointer; }
    .nf-item.is-click:hover, .nf-item.is-click:focus-visible { background:var(--nf-raised); outline:none; }
    .nf-item.is-read .nf-title { color:var(--nf-dim); font-weight:500; }
    .nf-item.is-read .nf-ico { opacity:.55; }
    .nf-ico { flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:9px; }
    .nf-ico svg { width:16px; height:16px; }
    .nf-ico--blue { background:rgba(59,130,246,.14); color:#93c5fd; }
    .nf-ico--green { background:rgba(16,185,129,.14); color:#6ee7b7; }
    .nf-ico--amber { background:rgba(245,158,11,.14); color:#fcd34d; }
    .nf-ico--red { background:rgba(239,68,68,.16); color:#fca5a5; }
    .nf-body { flex:1; min-width:0; }
    .nf-row { display:flex; align-items:baseline; gap:6px; }
    .nf-title { flex:1; min-width:0; font-size:13px; font-weight:600; line-height:18px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .nf-count { flex:none; padding:0 6px; border-radius:99px; background:var(--nf-raised); color:var(--nf-dim); font-size:11px; font-weight:600; line-height:18px; }
    .nf-time { flex:none; color:var(--nf-muted); font-size:11px; }
    .nf-desc { margin-top:2px; color:var(--nf-dim); font-size:12px; line-height:17px; white-space:pre-line; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    .nf-dot { position:absolute; top:16px; right:7px; width:6px; height:6px; border-radius:50%; background:#3b82f6; }
    .nf-actions { display:flex; gap:6px; margin-top:8px; }
    .nf-btn { height:28px; padding:0 10px; border-radius:8px; border:1px solid rgba(59,130,246,.4); background:rgba(59,130,246,.14); color:#bfdbfe; font-size:12px; font-weight:600; white-space:nowrap; }
    .nf-btn:hover { background:rgba(59,130,246,.24); }
    .nf-btn:disabled { opacity:.45; }
    .nf-btn--ghost { border-color:var(--nf-line); background:transparent; color:var(--nf-dim); }
    .nf-btn--off { border-color:rgba(239,68,68,.35); background:transparent; color:#fca5a5; }
    .nf-empty { display:flex; flex-direction:column; align-items:center; gap:4px; padding:34px 20px 30px; text-align:center; }
    .nf-empty__ico { display:grid; place-items:center; width:40px; height:40px; margin-bottom:6px; border-radius:12px; background:rgba(16,185,129,.12); color:#6ee7b7; }
    .nf-empty__ico svg { width:20px; height:20px; }
    .nf-empty b { font-size:14px; }
    .nf-empty small { color:var(--nf-muted); font-size:12px; }
    .nf-settings { padding:6px 0 10px; }
    .nf-set { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; }
    .nf-set--col { flex-direction:column; align-items:stretch; gap:8px; }
    .nf-set__txt { min-width:0; }
    .nf-set__ctl { display:flex; align-items:center; gap:6px; flex:none; }
    .nf-set__txt b { display:block; font-size:13px; font-weight:600; }
    .nf-set__txt small { display:block; margin-top:2px; color:var(--nf-muted); font-size:12px; line-height:16px; }
    .nf-msg { margin:0 16px 6px; color:#fcd34d; font-size:12px; }
    .nf-checks { display:grid; grid-template-columns:1fr 1fr; gap:6px 12px; font-size:12.5px; color:var(--nf-dim); }
    .nf-checks label { display:flex; align-items:center; gap:6px; cursor:pointer; }
    .nf-checks input { accent-color:#3b82f6; }
    .nf-switch { position:relative; flex:none; width:38px; height:22px; border-radius:99px; background:#3f3f46; transition:background .15s; }
    .nf-switch i { position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .15s; }
    .nf-switch.is-on { background:#2563eb; }
    .nf-switch.is-on i { transform:translateX(16px); }

/* ══════════════════════════════════════════════════════════════════════
   LEGIBILIDADE NOS DOIS TEMAS (Pedro 24/11/2026: "se eu troco para white, vai ter
   coisas que eu não vou conseguir enxergar"). Regra: todo texto com pelo menos
   4,5:1 sobre o fundo onde ele está. As telas antigas escrevem cores do Tailwind
   pensadas para o escuro (text-*-300/400, text-white, bg-black/20); aqui elas ganham
   o tom certo do tema, numa regra só, para todas as telas e todos os dashs.
   ══════════════════════════════════════════════════════════════════════ */
/* Escuro: cinzas de apoio que ficavam abaixo de 4,5:1 no painel #111113 e no detalhe do AD
   (fundo elevado ~#2b2b30, revisão final 24/11/2026). */
.dark .text-gray-500 { color: #969ca6; }
.dark .text-gray-600 { color: #8f96a1; }
/* Escuro: selo "bg-X-500/20 text-X-400" (sigla, status) ficava em ~4,2:1 sobre fundo elevado;
   o texto vai para o tom 300 da mesma cor. */
.dark .bg-purple-500\/20.text-purple-400 { color: #d8b4fe; }
.dark .bg-blue-500\/20.text-blue-400 { color: #93c5fd; }
.dark .bg-emerald-500\/20.text-emerald-400 { color: #6ee7b7; }
.dark .bg-green-500\/20.text-green-400 { color: #86efac; }
.dark .bg-amber-500\/20.text-amber-400 { color: #fcd34d; }
.dark .bg-yellow-500\/20.text-yellow-400 { color: #fde047; }
.dark .bg-red-500\/20.text-red-400 { color: #fca5a5; }
.dark .bg-rose-500\/20.text-rose-400 { color: #fda4af; }
.dark .bg-sky-500\/20.text-sky-400 { color: #7dd3fc; }
.dark .bg-cyan-500\/20.text-cyan-400 { color: #67e8f9; }
.dark .bg-teal-500\/20.text-teal-400 { color: #5eead4; }
.dark .bg-orange-500\/20.text-orange-400 { color: #fdba74; }
.dark .bg-pink-500\/20.text-pink-400 { color: #f9a8d4; }
.dark .bg-violet-500\/20.text-violet-400 { color: #c4b5fd; }
.dark .bg-indigo-500\/20.text-indigo-400 { color: #a5b4fc; }
.dark .bg-gray-500\/20.text-gray-400 { color: #d1d5db; }
.dark .text-zinc-500 { color: #8b8b93; }
.dark .text-zinc-600, .dark .text-slate-600 { color: #7c8491; }

/* Claro: cinzas. */
.light .text-gray-100, .light .text-zinc-100, .light .text-slate-100 { color: #0f172a; }
.light .text-gray-200, .light .text-zinc-200, .light .text-slate-200 { color: #1e293b; }
.light .text-gray-300, .light .text-zinc-300, .light .text-slate-300 { color: #334155; }
.light .text-gray-400, .light .text-zinc-400, .light .text-slate-400 { color: #475569; }
.light .text-gray-500, .light .text-zinc-500, .light .text-slate-500,
.light .text-gray-600, .light .text-zinc-600, .light .text-slate-600 { color: #556070; }

/* Claro: cores de destaque. Os tons 200–500 são feitos para fundo escuro; no claro
   viram o tom 700/800 da mesma cor (mesma leitura de significado, contraste certo). */
.light :is(.text-blue-200, .text-blue-300, .text-blue-400, .text-blue-500) { color: #1d4ed8; }
.light :is(.text-sky-200, .text-sky-300, .text-sky-400, .text-sky-500) { color: #0369a1; }
.light :is(.text-cyan-200, .text-cyan-300, .text-cyan-400, .text-cyan-500) { color: #155e75; }
.light :is(.text-teal-200, .text-teal-300, .text-teal-400, .text-teal-500) { color: #115e59; }
.light :is(.text-emerald-200, .text-emerald-300, .text-emerald-400, .text-emerald-500) { color: #065f46; }
.light :is(.text-green-200, .text-green-300, .text-green-400, .text-green-500) { color: #166534; }
.light :is(.text-lime-200, .text-lime-300, .text-lime-400, .text-lime-500) { color: #3f6212; }
.light :is(.text-yellow-200, .text-yellow-300, .text-yellow-400, .text-yellow-500) { color: #854d0e; }
.light :is(.text-amber-200, .text-amber-300, .text-amber-400, .text-amber-500) { color: #92400e; }
.light :is(.text-orange-200, .text-orange-300, .text-orange-400, .text-orange-500) { color: #9a3412; }
.light :is(.text-red-200, .text-red-300, .text-red-400, .text-red-500) { color: #b91c1c; }
.light :is(.text-rose-200, .text-rose-300, .text-rose-400, .text-rose-500) { color: #be123c; }
.light :is(.text-pink-200, .text-pink-300, .text-pink-400, .text-pink-500) { color: #9d174d; }
.light :is(.text-fuchsia-200, .text-fuchsia-300, .text-fuchsia-400, .text-fuchsia-500) { color: #a21caf; }
.light :is(.text-purple-200, .text-purple-300, .text-purple-400, .text-purple-500) { color: #7e22ce; }
.light :is(.text-violet-200, .text-violet-300, .text-violet-400, .text-violet-500) { color: #6d28d9; }
.light :is(.text-indigo-200, .text-indigo-300, .text-indigo-400, .text-indigo-500) { color: #4338ca; }
.light .text-brand-blue { color: #1d4ed8; }

/* Claro: texto branco SOBRE COR SÓLIDA continua branco (botão azul, selo verde, pílula
   "Todas"). A regra antiga ".light .text-white" escurecia tudo, inclusive isso. */
.light :is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-sky-600, .bg-cyan-600, .bg-cyan-700, .bg-teal-600,
  .bg-emerald-500, .bg-emerald-600, .bg-emerald-700, .bg-green-600, .bg-green-700, .bg-amber-600, .bg-amber-700,
  .bg-orange-600, .bg-red-500, .bg-red-600, .bg-red-700, .bg-rose-600, .bg-rose-700, .bg-pink-600,
  .bg-purple-500, .bg-purple-600, .bg-purple-700, .bg-violet-600, .bg-indigo-600, .bg-slate-800, .bg-slate-900,
  .bg-gray-800, .bg-gray-900, .bg-black, .bg-\[\#3d82f0\], .ui-btn--primary, .ui-btn--danger):is(.text-white, :not([class*="text-"])),
.light :is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-emerald-600, .bg-emerald-700, .bg-green-600, .bg-red-600,
  .bg-red-700, .bg-purple-600, .bg-purple-700, .bg-indigo-600, .bg-violet-600, .bg-cyan-600, .bg-amber-600) .text-white { color: #fff; }
/* Azul fixo "bg-[#3d82f0]" das telas antigas: 3,7:1 com branco. Vira o azul do sistema (5,2:1). */
.bg-\[\#3d82f0\] { background-color: var(--ui-brand-strong) !important; }

/* Claro: fundos translúcidos pensados para o escuro. Faixas e cartões "bg-black/10–40"
   viravam cinza chapado (texto cinza sobre cinza); camadas de tela cheia (60+) ficam. */
.light :is(.bg-black\/10, .bg-black\/20, .bg-black\/25, .bg-black\/30, .bg-black\/40):not(.fixed) { background-color: rgba(15, 23, 42, .045); }
.light :is(.bg-white\/5, .bg-white\/10, .bg-white\/\[0\.02\], .bg-white\/\[0\.03\], .bg-white\/\[0\.04\]) { background-color: rgba(15, 23, 42, .04); }

/* Claro: barra do topo (MRR) e menu lateral — rótulos que estavam em cinza 2,6:1. */
.light .mrr-bar__label { color: #1d4ed8; }
.light .mrr-bar__val, .light .mrr-bar__val b { color: #0f172a; }
.light .mrr-bar__info { color: #475569; border-color: #94a3b8; }
.light #app-sidebar, .light .apptop { --m-muted: #5b6577; --m-dim: #3f3f46; }
.light .nav-group-label, .light .apptop .sb-search .nav-label, .light .apptop .sb-search kbd { color: #5b6577; }
/* Claro: etiqueta escura por cima de foto/vídeo (bg-black/50+ que não é a camada da janela)
   continua com letra clara — o fundo dela não muda com o tema. */
.light :is(.bg-black\/50, .bg-black\/60, .bg-black\/65, .bg-black\/70, .bg-black\/75, .bg-black\/80, .bg-black\/90):not(.fixed):is(.text-white, [class*="text-gray-"], [class*="text-zinc-"]),
.light :is(.bg-black\/50, .bg-black\/60, .bg-black\/65, .bg-black\/70, .bg-black\/75, .bg-black\/80, .bg-black\/90):not(.fixed) :is(.text-white, [class*="text-gray-"], [class*="text-zinc-"]) { color: #f4f4f5; }
/* Azul-marinho antigo escrito à mão (#0a0e1a, #0f1629, #141d35, #1a2340): o padrão é neutro
   e acompanha o tema. Era por isso que a busca ⌘K ficava escura com texto escuro no claro. */
.bg-\[\#0a0e1a\] { background-color: var(--ui-bg) !important; }
.bg-\[\#0f1629\], .bg-\[\#141d35\] { background-color: var(--ui-surface) !important; }
.bg-\[\#1a2340\] { background-color: var(--ui-raised) !important; }
.border-\[\#1a2340\] { border-color: var(--ui-line) !important; }
/* Sino: texto de apoio no tom certo dos dois temas. */
.nf-panel { --nf-muted: #8b8b93; }
.light .nf-panel { --nf-muted: #5b6577; --nf-dim: #3f3f46; }


/* ═════ kit/src/components.css ═════ */
/* ══════════════════════════════════════════════════════════════════════
   Cycle UI — peças do kit que não moravam no hub-ui.css (24/11/2026):
   calendário, confirmação, aviso curto, alça de coluna e o encaixe do
   esqueleto nos dashs que não são o Hub (.cy-main, .cy-shell).
   ══════════════════════════════════════════════════════════════════════ */

/* Atributo hidden sempre vence (peças que abrem e fecham sem framework). */
.ui-dp__pop[hidden], .ui-dialog[hidden], .ui-menu[hidden], .cy-shell .cycle-app-switcher[hidden],
.cy-shell .umenu-panel[hidden], .cy-shell .nf-panel[hidden], .cy-shell .sidebar-alert-badge[hidden] { display: none !important; }

/* ── Tela do dash dentro do esqueleto ── */
.cy-shell { margin: 0; min-height: 100vh; background: var(--ui-bg); color: var(--ui-text-2); font-family: var(--ui-sans); }
.cy-main { box-sizing: border-box; min-width: 0; padding-left: var(--ui-page-x); padding-right: var(--ui-page-x); padding-bottom: var(--ui-page-y); transition: margin-left .2s ease; }
/* Barra de rolagem do menu lateral: some até passar o mouse (Pedro 25/11/2026: o risco cinza na borda do
   menu parecia bug numa janela baixa). Vale nos 5 dashs. */
#app-sidebar #sb-scroll { scrollbar-width: thin; scrollbar-color: transparent transparent; }
#app-sidebar #sb-scroll:hover, #app-sidebar #sb-scroll:focus-within { scrollbar-color: var(--ui-line) transparent; }
#app-sidebar #sb-scroll::-webkit-scrollbar { width: 6px; }
#app-sidebar #sb-scroll::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
#app-sidebar #sb-scroll:hover::-webkit-scrollbar-thumb { background: var(--ui-line); }
.cy-shell #app-sidebar .nav-count { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--ui-muted); font: 600 10.5px/18px var(--ui-sans); text-align: center; }
.cy-shell .cy-nf-list { max-height: min(420px, 60vh); overflow-y: auto; padding: 4px 6px; }
.cy-shell .cy-nf-item { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 9px; color: var(--ui-text-2); text-decoration: none; font-size: 13px; }
.cy-shell .cy-nf-item:hover { background: var(--ui-raised-2); }
.cy-shell .cy-nf-item b { color: var(--ui-text); font-weight: 600; }
.cy-shell .cy-nf-item span { color: var(--ui-muted); font-size: 12.5px; }
.cy-shell .cy-nf-item small { color: var(--ui-faint); font-size: 11.5px; }
.cy-shell .cy-nf-item.is-new b::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ui-brand); vertical-align: middle; }
.cy-shell .cy-nf-all { display: block; padding: 11px 14px; border-top: 1px solid var(--ui-line); color: var(--ui-brand-text); font-size: 12.5px; text-decoration: none; }

/* ── Botão de ação destrutiva ── */
.ui-btn--danger, .ui-btn--primary.ui-btn--danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.ui-btn--danger:hover, .ui-btn--primary.ui-btn--danger:hover { background: #b91c1c; color: #fff; }

/* ── Confirmação / aviso / pergunta (appConfirm, appAlert, appPrompt) ── */
.ui-dialog { position: fixed; inset: 0; z-index: 2147483646; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ui-dialog__card { width: 100%; max-width: 440px; box-sizing: border-box; padding: 20px 22px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-r-lg); background: var(--ui-raised); box-shadow: var(--ui-shadow-pop); font-family: var(--ui-sans); animation: ui-pop .14s ease-out; }
.ui-dialog__title { margin-bottom: 6px; color: var(--ui-text); font-size: 15px; font-weight: 600; }
.ui-dialog__msg { margin-bottom: 16px; color: var(--ui-text-2); font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ui-dialog__input { display: block; width: 100%; box-sizing: border-box; height: var(--ui-h); margin-bottom: 16px; padding: 0 12px; border: 1px solid var(--ui-line); border-radius: var(--ui-r); background: var(--ui-bg-2); color: var(--ui-text); font: 13.5px var(--ui-sans); outline: none; }
.ui-dialog__input:focus { border-color: var(--ui-brand); box-shadow: 0 0 0 3px var(--ui-brand-soft); }
.ui-dialog__input[hidden], .ui-dialog__cancel[hidden] { display: none; }
.ui-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 480px) { .ui-dialog { align-items: flex-end; } .ui-dialog__actions .ui-btn { flex: 1; justify-content: center; } }
@keyframes ui-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Aviso curto no canto (toast) ── */
.ui-toasts { position: fixed; top: 16px; right: 16px; z-index: 2147483647; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ui-toast { pointer-events: auto; max-width: 380px; padding: 10px 14px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-r); background: var(--ui-raised); color: var(--ui-text-2); font: 500 12.5px/1.45 var(--ui-sans); box-shadow: var(--ui-shadow-pop); opacity: 0; transform: translateX(16px); transition: opacity .2s ease, transform .2s ease; }
.ui-toast.is-in { opacity: 1; transform: none; }
.ui-toast--success { border-color: rgba(74, 222, 128, .35); color: #bbf7d0; }
.ui-toast--error { border-color: rgba(248, 113, 113, .4); color: #fecaca; }
html:not(.dark) .ui-toast--success { color: #047857; } html:not(.dark) .ui-toast--error { color: #b91c1c; }
@media (max-width: 480px) { .ui-toasts { left: 12px; right: 12px; } .ui-toast { max-width: none; } }

/* ── Alça de largura de coluna (<table data-col-resize>) ── */
.ui-col-grip { position: absolute; top: 0; right: 0; width: 8px; height: 100%; cursor: col-resize; touch-action: none; z-index: 2; }
.ui-col-grip::after { content: ''; position: absolute; right: 3px; top: 30%; height: 40%; width: 1px; background: var(--ui-line); }
.ui-col-grip:hover::after, .ui-col-resizing .ui-col-grip::after { background: var(--ui-text-2); width: 2px; }
body.ui-col-resizing { cursor: col-resize; user-select: none; }

/* ── Calendário (PADRÃO, Pedro 24/11/2026): sempre do lado DIREITO, compacto,
   com o Atualizar grudado (uma peça só). Nenhuma tela escreve regra própria. ── */
.ui-dp { position: relative; display: inline-flex; align-items: stretch; flex: 0 0 auto; margin-left: auto; font-family: var(--ui-sans); }
.ui-dp__btn { display: inline-flex; align-items: center; gap: 10px; min-height: var(--ui-h); padding: 6px 12px; border: 1px solid var(--ui-line); border-radius: var(--ui-r); background: var(--ui-bg-2); color: var(--ui-text-2); text-align: left; cursor: pointer; user-select: none; transition: background .15s, border-color .15s; }
.ui-dp__btn:hover, .ui-dp__btn[aria-expanded="true"] { background: var(--ui-raised); border-color: var(--ui-line-strong); }
.ui-dp__btn > svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ui-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-dp__txt { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.ui-dp__txt b { color: var(--ui-text); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ui-dp__txt small { color: var(--ui-faint); font-size: 11px; }
.ui-dp__refresh { display: grid; place-items: center; margin-left: -1px; padding: 0 11px; border: 1px solid var(--ui-line); border-radius: 0 var(--ui-r) var(--ui-r) 0; background: var(--ui-bg-2); color: var(--ui-muted); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.ui-dp__refresh:hover { background: var(--ui-raised); color: var(--ui-text); }
.ui-dp__refresh svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-dp__btn:has(+ .ui-dp__refresh) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ui-dp__pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1200; display: flex; gap: 16px; width: 560px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 14px; border: 1px solid var(--ui-line); border-radius: var(--ui-r-lg); background: var(--ui-raised); box-shadow: var(--ui-shadow-pop); animation: ui-pop .12s ease-out; }
.ui-dp__cal { flex: 1 1 auto; min-width: 0; }
.ui-dp__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--ui-text); font-size: 13.5px; font-weight: 600; }
.ui-dp__nav .ui-icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-dp__dow, .ui-dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.ui-dp__dow span { padding: 4px 0; color: var(--ui-faint); font-size: 11.5px; text-align: center; }
.ui-dp__grid { row-gap: 2px; }
.ui-dp__day { height: 32px; border: 0; border-radius: var(--ui-r-sm); background: transparent; color: var(--ui-text-2); font: 500 12.5px var(--ui-sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.ui-dp__day:hover { background: var(--ui-raised-2); color: var(--ui-text); }
.ui-dp__day.is-out { color: var(--ui-faint); }
.ui-dp__day.is-today { box-shadow: inset 0 0 0 1px var(--ui-brand-line); color: var(--ui-brand-text); }
.ui-dp__day.is-in { border-radius: 0; background: var(--ui-brand-soft); color: var(--ui-brand-text); }
.ui-dp__day.is-start, .ui-dp__day.is-end { background: var(--ui-brand-strong); color: #fff; font-weight: 600; }
.ui-dp__day.is-start:not(.is-end) { border-radius: var(--ui-r-sm) 0 0 var(--ui-r-sm); }
.ui-dp__day.is-end:not(.is-start) { border-radius: 0 var(--ui-r-sm) var(--ui-r-sm) 0; }
.ui-dp__sel { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ui-line-soft); color: var(--ui-faint); font-size: 12px; }
.ui-dp__sel b { color: var(--ui-text); font-weight: 600; }
.ui-dp__side { display: flex; flex-direction: column; gap: 2px; width: 148px; flex: none; padding-left: 14px; border-left: 1px solid var(--ui-line-soft); }
.ui-dp__side-t { margin-bottom: 4px; color: var(--ui-faint); font: 500 10.5px/14px var(--ui-sans); letter-spacing: .1em; text-transform: uppercase; }
.ui-dp__range { padding: 7px 10px; border: 1px solid transparent; border-radius: var(--ui-r-sm); background: transparent; color: var(--ui-muted); font: 500 12.5px var(--ui-sans); text-align: left; cursor: pointer; }
.ui-dp__range:hover { background: var(--ui-raised-2); color: var(--ui-text); }
.ui-dp__range.is-on { border-color: var(--ui-brand-line); background: var(--ui-brand-soft); color: var(--ui-brand-text); }
.ui-dp__apply { margin-top: auto; justify-content: center; }
/* Celular: abre embaixo do botão, alinhado à direita; atalhos em 2 colunas, Aplicar na largura toda. */
@media (max-width: 640px) {
  .ui-dp__pop { flex-direction: column; width: min(360px, calc(100vw - 24px)); }
  .ui-dp__side { width: auto; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--ui-line-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .ui-dp__side-t, .ui-dp__apply { grid-column: 1 / -1; }
  .ui-dp__apply { margin-top: 6px; }
  html:has(.ui-dp__pop:not([hidden])) .sp-fab { display: none; }
}
@media (max-width: 420px) { .ui-dp__btn { padding-left: 10px; padding-right: 10px; gap: 8px; } .ui-dp__refresh { padding: 0 9px; } }
@media (pointer: coarse) { .ui-dp__day { height: 38px; } .ui-dp__range { padding: 9px 10px; } }

/* ── Cor de destaque vinda do dado (status, fornecedor, rail) ──
   A tela passa só a cor: <span class="ui-tint" style="--c:#10b981">Ativa</span>.
   O kit mistura a cor com o texto do tema: no escuro ela clareia, no claro escurece,
   e o texto fica sempre legível (≥ 4,5:1). Nunca escrever style="color:#hex" na tela. */
.ui-tint, .ui-tint-text { color: color-mix(in srgb, var(--c, var(--ui-brand)) 62%, var(--ui-text)); }
.ui-tint { background: color-mix(in srgb, var(--c, var(--ui-brand)) 13%, transparent); }

/* ── Peças pedidas pela Copy (24/11/2026), para todos os dashs ── */
/* Campo de texto e rótulo. */
.cy-label { display: flex; flex-direction: column; gap: 6px; color: var(--ui-muted); font-size: 12.5px; font-weight: 500; }
.cy-field { width: 100%; box-sizing: border-box; min-height: var(--ui-h); padding: 8px 12px; border: 1px solid var(--ui-line); border-radius: var(--ui-r); background: var(--ui-bg-2); color: var(--ui-text); font: 13.5px/1.45 var(--ui-sans); outline: none; transition: border-color .15s, box-shadow .15s; }
.cy-field::placeholder { color: var(--ui-faint); }
.cy-field:focus { border-color: var(--ui-brand); box-shadow: 0 0 0 3px var(--ui-brand-soft); }
textarea.cy-field { resize: vertical; }
/* Tela de altura cheia com rolagem própria (chat, cérebro). */
.cy-main--app { display: flex; flex-direction: column; height: 100dvh; padding-bottom: 0; overflow: hidden; }
.cy-main--app > .ui-page { flex: 1 1 auto; min-height: 0; }
.cy-app-head { flex: none; }
/* Filtro que encolhe numa linha apertada; some no celular. */
.cy-shrink { min-width: 0; flex: 0 1 auto; }
.cy-shrink .ui-trigger { max-width: 100%; }
@media (max-width: 640px) { .cy-hide-narrow { display: none !important; } }

/* ── Pacote pedido pelos dashs (24/11/2026) ── */
/* Tamanhos de letra do sistema (sem px solto nas telas). */
:root { --ui-fs-11: 11px; --ui-fs-12: 12px; --ui-fs-13: 13px; --ui-fs-14: 14px; --ui-fs-15: 15px; --ui-fs-17: 17px; --ui-fs-21: 21px; }
/* Botões do kit feitos com <button> não herdam o cinza do navegador. */
:where(button.ui-tab, button.ui-menu__opt, button.ui-trigger, button.ui-icon-btn, button.ui-dp__day, button.ui-dp__range) { -webkit-appearance: none; appearance: none; font: inherit; }
:where(button.ui-tab, button.ui-menu__opt) { background: transparent; border: 0; }
/* Utilitários. */
.ui-push { margin-left: auto; }
.ui-nowrap { white-space: nowrap; }
.ui-btn--sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--ui-r-sm); }
.ui-btn--danger-ghost { background: transparent; border-color: rgba(248,113,113,.35); color: var(--ui-down); }
.ui-btn--danger-ghost:hover { background: rgba(248,113,113,.1); color: var(--ui-down); }
/* Aviso dentro da tela (erro, atenção, informação). */
.ui-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--ui-line); border-radius: var(--ui-r); background: var(--ui-surface); color: var(--ui-text-2); font-size: 13px; line-height: 1.45; }
.ui-note--error { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); color: var(--ui-down); }
.ui-note--warn { border-color: rgba(250,204,21,.35); background: rgba(250,204,21,.08); color: var(--ui-warn); }
/* Interruptor (liga/desliga). <button class="ui-switch" role="switch" aria-checked="true"><i></i></button> */
.ui-switch { position: relative; flex: none; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 99px; background: var(--ui-line-strong); cursor: pointer; transition: background .15s; }
.ui-switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.ui-switch[aria-checked="true"] { background: var(--ui-brand-strong); }
.ui-switch[aria-checked="true"] i { transform: translateX(16px); }
.ui-switch:disabled { opacity: .5; cursor: default; }
/* Filtro na largura toda (formulário) e bloqueado. */
.ui-picker--block, .ui-picker--block .ui-trigger { width: 100%; max-width: none; }
.ui-picker--block .ui-trigger__value { margin-right: auto; }
.ui-trigger:disabled { opacity: .55; cursor: default; }
/* Escolhas em botões (select dentro de janela). */
.ui-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-choice { height: 30px; padding: 0 12px; border: 1px solid var(--ui-line); border-radius: var(--ui-r-sm); background: var(--ui-bg-2); color: var(--ui-text-2); font: 500 12.5px var(--ui-sans); cursor: pointer; }
.ui-choice[aria-pressed="true"] { border-color: var(--ui-brand-strong); background: var(--ui-brand-strong); color: #fff; }
/* Busca ⌘K do esqueleto nos outros dashs. */
.cy-palette { position: fixed; inset: 0; z-index: 2147483640; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(0,0,0,.55); }
.cy-palette[hidden] { display: none; }
.cy-palette__box { width: min(560px, 100%); border: 1px solid var(--ui-line-strong); border-radius: var(--ui-r-lg); background: var(--ui-raised); box-shadow: var(--ui-shadow-pop); overflow: hidden; }
.cy-palette__in { width: 100%; box-sizing: border-box; height: 48px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--ui-line); background: transparent; color: var(--ui-text); font: 15px var(--ui-sans); outline: none; }
.cy-palette__list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.cy-palette__opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--ui-r-sm); color: var(--ui-text-2); font-size: 13.5px; text-decoration: none; }
.cy-palette__opt small { margin-left: auto; color: var(--ui-faint); font-size: 11.5px; }
.cy-palette__opt.is-on, .cy-palette__opt:hover { background: var(--ui-raised-2); color: var(--ui-text); }

/* ── Pedidos do Tracking (24/11/2026) ── */
/* O atributo hidden sempre vence o display das peças. */
.ui-modal[hidden], .ui-btn[hidden], .ui-trigger[hidden], .ui-picker[hidden], .ui-chip[hidden], .ui-tabs[hidden], .ui-panel[hidden], .ui-note[hidden], .ui-switch[hidden] { display: none !important; }
/* Selo colorido no claro: mais perto da cor do texto (contraste ≥ 4,5:1 com laranja/amarelo). */
html:not(.dark) .ui-tint, html:not(.dark) .ui-tint-text { color: color-mix(in srgb, var(--c, var(--ui-brand)) 45%, var(--ui-text)); }
/* Texto de ajuda na pergunta (appPrompt(msg, {hint})). */
.ui-dialog__hint { margin: -8px 0 10px; color: var(--ui-faint); font-size: 12px; line-height: 1.45; }
.ui-dialog__hint[hidden] { display: none; }
/* Só o Atualizar, para tela sem período. */
.ui-dp--refresh-only .ui-dp__refresh { margin-left: 0; border-radius: var(--ui-r); height: var(--ui-h); }

/* ── Rede da Cycle (83-network.js): a logo animada no centro ──
   Login e abertura das boas-vindas. A cena põe --cx/--cy; .is-in faz a logo entrar, .is-beat acende. */
.cy-net__logo { position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); width: var(--cy-net-logo, 250px); height: var(--cy-net-logo, 250px); transform: translate(-50%, -50%); pointer-events: none; }
.cy-net__in { position: absolute; inset: 0; opacity: 0; }
.cy-net__logo.is-in .cy-net__in { animation: cyNetIn var(--cy-net-dur, 1.5s) cubic-bezier(.2,.8,.2,1) var(--cy-net-delay, 0s) both; }
.cy-net__float { position: absolute; inset: 0; animation: cyNetFloat 7s ease-in-out 1.9s infinite; }
.cy-net__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 40px rgba(109,40,217,.55)); transition: filter .5s; }
.cy-net__sheen { position: absolute; inset: 0; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
    background: linear-gradient(112deg, transparent 38%, rgba(255,244,214,.75) 48%, rgba(255,255,255,.15) 54%, transparent 62%); background-size: 320% 100%; background-position: 130% 0;
    mix-blend-mode: screen; animation: cyNetSheen 6.5s ease-in-out 2.2s infinite; }
.cy-net__logo.is-beat img { filter: drop-shadow(0 0 34px rgba(167,139,250,.95)) drop-shadow(0 0 10px rgba(251,191,36,.5)) brightness(1.18); transition: filter .12s; }
@keyframes cyNetIn { 0% { opacity: 0; transform: scale(.7) rotate(-14deg); filter: blur(14px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes cyNetFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes cyNetSheen { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) {
    .cy-net__logo.is-in .cy-net__in { animation: none; opacity: 1; }
    .cy-net__float, .cy-net__sheen { animation: none; }
}

/* ── Boas-vindas do ecossistema (85-welcome.js, Pedro 25/11/2026) ──
   Uma experiência por cima da tela: abertura (cena escura), idioma, tour com recorte na peça de
   verdade, celular desenhado e fim. A cena é sempre escura; balão e cartões seguem o tema. */
html.cy-wl-open { overflow: hidden; }
html.cy-wl-open .sp-fab { display: none; }
.cy-wl { position: fixed; inset: 0; z-index: 2147483005; font-family: var(--ui-sans); color: var(--ui-text-2); --wl-dim: rgba(4, 4, 7, .7); --wl-ease: cubic-bezier(.2, .8, .2, 1); }
html:not(.dark) .cy-wl { --wl-dim: rgba(15, 23, 42, .6); }
/* Dash sem reset global (o Hub tem o do Tailwind): a medida das peças não pode depender dele. */
.cy-wl, .cy-wl *, .cy-wl *::before, .cy-wl *::after, .cy-wl-page, .cy-wl-page *, .cy-wl-page *::before, .cy-wl-page *::after { box-sizing: border-box; }
.cy-wl.is-out { opacity: 0; transition: opacity .25s ease; }
.cy-wl [hidden] { display: none !important; }
.cy-wl-sp { flex: 1 1 auto; }
.cy-wl-ico { width: 18px; height: 18px; flex: none; }
.cy-wl-ghost { height: 32px; padding: 0 8px; margin-left: -8px; border: 0; border-radius: var(--ui-r-sm); background: none; color: var(--ui-muted); font: 500 13px var(--ui-sans); cursor: pointer; }
.cy-wl-ghost:hover { color: var(--ui-text); }
.cy-wl :focus-visible { outline: 2px solid var(--ui-brand); outline-offset: 2px; }

/* 1. abertura e 2. idioma: tela cheia escura */
.cy-wl-scene { position: absolute; inset: 0; background: #08080a; color: #e4e4e7; overflow: hidden; transition: opacity .6s ease, visibility .6s; }
.cy-wl:not([data-phase="intro"]):not([data-phase="lang"]) .cy-wl-scene { opacity: 0; visibility: hidden; pointer-events: none; }
.cy-wl-scene__stage { position: absolute; inset: 0; transform-origin: 50% 0; transition: transform 1s var(--wl-ease); }
.cy-wl-scene__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cy-wl-scene .cy-net__logo { --cy-net-logo: 172px; --cy-net-dur: 1.1s; }
.cy-wl-scene__stage.is-narrow .cy-net__logo { --cy-net-logo: 128px; }
.cy-wl[data-phase="lang"] .cy-wl-scene__stage { transform: translateY(-9vh) scale(.72); }
.cy-wl-intro { position: absolute; z-index: 1; left: 16px; right: 16px; top: calc(40% + 150px); display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s var(--wl-ease); pointer-events: none; }
.cy-wl.is-phrase .cy-wl-intro { opacity: 1; transform: none; pointer-events: auto; }
/* um véu escuro atrás da frase: os nós da rede passam por trás sem disputar a leitura */
.cy-wl-intro::before { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(980px, 140%); height: 260px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(8,8,10,.92), rgba(8,8,10,.75) 55%, rgba(8,8,10,0)); pointer-events: none; }
.cy-wl[data-phase="lang"] .cy-wl-intro { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.cy-wl-intro__h { margin: 0; max-width: 760px; font-size: clamp(27px, 3.6vw, 44px); font-weight: 650; line-height: 1.12; letter-spacing: -.028em; color: #fafafa; background: linear-gradient(180deg, #fff 30%, #b4b4bd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cy-wl-intro__p { margin: 14px 0 0; max-width: 520px; color: #a1a1aa; font-size: 15px; line-height: 1.55; }
.cy-wl-intro__go { display: inline-flex; align-items: center; gap: 6px; height: 38px; margin-top: 24px; padding: 0 14px 0 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; background: rgba(255,255,255,.05); color: #f4f4f5; font: 500 13.5px var(--ui-sans); cursor: pointer; transition: background .2s, border-color .2s; }
.cy-wl-intro__go svg { width: 16px; height: 16px; }
.cy-wl-intro__go:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
.cy-wl-skip { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: 16px; z-index: 2; height: 34px; padding: 0 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; background: rgba(255,255,255,.04); color: #d4d4d8; font: 500 13px var(--ui-sans); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, color .2s; }
.cy-wl-skip:hover { background: rgba(255,255,255,.1); color: #fff; }
.cy-wl-lang { position: absolute; left: 16px; right: 16px; top: 43%; display: flex; flex-direction: column; align-items: center; gap: 22px; animation: cyWlUp .7s var(--wl-ease) .25s both; }
.cy-wl-lang__t { margin: 0; color: #fafafa; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.015em; text-align: center; line-height: 1.3; }
.cy-wl-lang__dot { color: #52525b; padding: 0 4px; }
.cy-wl-lang__opts { display: flex; gap: 14px; justify-content: center; width: 100%; }
.cy-wl-lang__opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; width: 240px; height: 132px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); color: #fafafa; font-family: var(--ui-sans); text-align: left; cursor: pointer; transition: transform .2s var(--wl-ease), border-color .2s, background .2s; }
.cy-wl-lang__opt::before { content: attr(data-code); position: absolute; top: 16px; left: 20px; color: #8b8b93; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; }
.cy-wl-lang__opt::after { content: ''; position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; border: 1.5px solid rgba(255,255,255,.22); border-radius: 50%; transition: border-color .2s, background .2s, box-shadow .2s; }
.cy-wl-lang__opt b { font-size: 23px; font-weight: 650; letter-spacing: -.02em; }
.cy-wl-lang__opt small { color: #a1a1aa; font-size: 13px; }
.cy-wl-lang__opt:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.26); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); }
.cy-wl-lang__opt.is-on { border-color: rgba(96,165,250,.65); box-shadow: 0 0 0 1px rgba(96,165,250,.35) inset, 0 18px 40px -18px rgba(59,130,246,.55); }
.cy-wl-lang__opt.is-on::after { border-color: #60a5fa; background: #60a5fa; box-shadow: inset 0 0 0 3px #0b0b10; }
.cy-wl-lang__opt.is-busy { opacity: .7; cursor: progress; }
.cy-wl-lang__note { margin: 0; color: #8b8b93; font-size: 12.5px; text-align: center; }
.cy-wl-lang__note span[aria-hidden] { padding: 0 4px; }

/* 3. tour: escurece tudo menos a peça (o recorte), que pulsa */
.cy-wl-hole { position: fixed; left: 50%; top: 50%; width: 0; height: 0; border-radius: 12px; box-shadow: 0 0 0 200vmax var(--wl-dim); pointer-events: none; transition: left .45s var(--wl-ease), top .45s var(--wl-ease), width .45s var(--wl-ease), height .45s var(--wl-ease), border-radius .3s, opacity .6s ease; }
.cy-wl[data-phase="intro"] .cy-wl-hole, .cy-wl[data-phase="lang"] .cy-wl-hole { opacity: 0; }
.cy-wl-scene:focus { outline: none; }
.cy-wl-hole.is-flat { border-radius: 0 14px 14px 0; }
.cy-wl-hole::before, .cy-wl-hole::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; transition: opacity .3s; }
.cy-wl-hole::before { border: 1.5px solid rgba(96,165,250,.95); box-shadow: 0 0 0 4px rgba(59,130,246,.16), 0 0 26px rgba(59,130,246,.35); }
.cy-wl-hole::after { border: 2px solid rgba(96,165,250,.7); animation: cyWlRing 1.9s ease-out infinite; }
.cy-wl:not([data-phase="tour"]) .cy-wl-hole::before, .cy-wl:not([data-phase="tour"]) .cy-wl-hole::after, .cy-wl-hole.is-gone::before, .cy-wl-hole.is-gone::after { opacity: 0; animation: none; }
.cy-wl-tip { position: fixed; left: 50%; top: 50%; width: min(344px, calc(100vw - 24px)); border: 1px solid var(--ui-line-strong); border-radius: 16px; background: var(--ui-surface); color: var(--ui-text-2); box-shadow: 0 28px 70px -16px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.25); transition: left .45s var(--wl-ease), top .45s var(--wl-ease); }
html:not(.dark) .cy-wl-tip { box-shadow: 0 28px 70px -20px rgba(15,23,42,.45), 0 2px 8px rgba(15,23,42,.12); }
.cy-wl-tip.is-in .cy-wl-tip__in { animation: cyWlFade .35s ease both; }
.cy-wl-tip__in { position: relative; padding: 16px 18px 14px; }
.cy-wl-tip__arrow { position: absolute; width: 14px; height: 14px; background: var(--ui-surface); border: 1px solid var(--ui-line-strong); transform: rotate(45deg); }
.cy-wl-tip[data-side="bottom"] .cy-wl-tip__arrow { top: -8px; margin-left: -7px; border-right: 0; border-bottom: 0; }
.cy-wl-tip[data-side="top"] .cy-wl-tip__arrow { bottom: -8px; margin-left: -7px; border-left: 0; border-top: 0; }
.cy-wl-tip[data-side="right"] .cy-wl-tip__arrow { left: -8px; margin-top: -7px; border-top: 0; border-right: 0; }
.cy-wl-tip[data-side="left"] .cy-wl-tip__arrow { right: -8px; margin-top: -7px; border-bottom: 0; border-left: 0; }
.cy-wl-tip__bar { display: flex; gap: 4px; margin-bottom: 12px; }
.cy-wl-tip__bar i { flex: 1 1 0; height: 3px; border-radius: 99px; background: var(--ui-line-strong); transition: background .3s; }
.cy-wl-tip__bar i.is-done { background: var(--ui-muted); }
.cy-wl-tip__bar i.is-on { background: var(--ui-brand); }
.cy-wl-tip__count { color: var(--ui-faint); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.cy-wl-tip__t { margin: 4px 0 6px; color: var(--ui-text); font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.cy-wl-tip__p { margin: 0 0 14px; color: var(--ui-text-2); font-size: 13.5px; line-height: 1.55; }
.cy-wl-tip__foot { display: flex; align-items: center; gap: 8px; }
.cy-wl-tip.is-sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; border-bottom: 0; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); transition: none; animation: cyWlSheet .4s var(--wl-ease) both; }
.cy-wl-tip.is-sheet::before { content: ''; display: block; width: 36px; height: 4px; margin: 8px auto 0; border-radius: 99px; background: var(--ui-line-strong); }
.cy-wl-tip.is-sheet .cy-wl-tip__in { padding: 12px 16px 14px; }
.cy-wl-tip.is-sheet.is-top { top: 0 !important; bottom: auto; border-top: 0; border-bottom: 1px solid var(--ui-line-strong); border-radius: 0 0 20px 20px; padding: env(safe-area-inset-top, 0px) 0 0; animation-name: cyWlSheetTop; }
.cy-wl-tip.is-sheet.is-top::before { display: none; }
.cy-wl-tip.is-sheet.is-top::after { content: ''; display: block; width: 36px; height: 4px; margin: 0 auto 8px; border-radius: 99px; background: var(--ui-line-strong); }
.cy-wl-tip.is-sheet .cy-wl-tip__foot .ui-btn { height: 40px; padding: 0 16px; }

/* 4. celular e 5. fim: cartão no meio (tela cheia no celular) */
.cy-wl-card { position: fixed; left: 50%; top: 50%; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 26px 22px; border: 1px solid var(--ui-line-strong); border-radius: 20px; background: var(--ui-surface); color: var(--ui-text-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.65); transform: translate(-50%, -50%); }
html:not(.dark) .cy-wl-card { box-shadow: 0 30px 80px -24px rgba(15,23,42,.45); }
.cy-wl-card.is-in .cy-wl-card__in { animation: cyWlFade .4s ease both; }
.cy-wl-card.is-in { animation: cyWlPop .45s var(--wl-ease) both; }
.cy-wl-card__x { position: absolute; top: 12px; right: 12px; z-index: 1; }
.cy-wl-card__head { display: flex; align-items: center; min-height: 20px; margin-bottom: 4px; }
.cy-wl-kicker { color: var(--ui-brand-text); font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.cy-wl-h { margin: 4px 0 8px; color: var(--ui-text); font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.cy-wl-p { margin: 0; color: var(--ui-text-2); font-size: 14px; line-height: 1.6; }
.cy-wl-p b { color: var(--ui-text); font-weight: 600; }
.cy-wl-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.cy-wl-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.cy-wl-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 22px 12px 18px; border: 1px solid var(--ui-line); border-radius: 16px; background: var(--ui-bg-2); color: var(--ui-text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .2s var(--wl-ease); }
.cy-wl-choice:hover { border-color: var(--ui-line-strong); background: var(--ui-raised); transform: translateY(-1px); }
.cy-wl-choice.is-on { border-color: var(--ui-brand); background: var(--ui-brand-soft); box-shadow: 0 0 0 1px var(--ui-brand) inset; }
.cy-wl-choice b { font-size: 15px; font-weight: 600; }
.cy-wl-choice small { color: var(--ui-muted); font-size: 12px; }
.cy-wl-choice__art { position: relative; width: 44px; height: 76px; margin-bottom: 8px; border: 2px solid currentColor; border-radius: 12px; color: var(--ui-muted); }
.cy-wl-choice__art--android { border-radius: 9px; }
.cy-wl-choice__art i { position: absolute; top: 5px; left: 50%; width: 14px; height: 4px; margin-left: -7px; border-radius: 99px; background: currentColor; }
.cy-wl-choice__art--android i { width: 5px; height: 5px; margin-left: -2.5px; }
.cy-wl-choice.is-on .cy-wl-choice__art { color: var(--ui-brand-text); }
.cy-wl-card--guide { width: min(860px, calc(100vw - 32px)); padding: 28px 30px 26px; }
.cy-wl-card--done { width: min(440px, calc(100vw - 32px)); padding: 34px 30px 26px; text-align: center; }
.cy-wl-done__logo { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 18px; }
.cy-wl-done__logo img { position: relative; width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 10px 26px rgba(109,40,217,.5)); animation: cyNetFloat 6s ease-in-out infinite; }
.cy-wl-done__logo i { position: absolute; inset: 6px; border: 1.5px solid rgba(167,139,250,.6); border-radius: 50%; animation: cyWlPulse 2.4s ease-out infinite; }
.cy-wl-done__logo i + i { animation-delay: 1.2s; }
.cy-wl-card--done .cy-wl-p { max-width: 340px; margin: 0 auto; }
.cy-wl-done__btn { width: 100%; justify-content: center; margin-top: 24px; height: 42px; }
.cy-wl-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Guia do celular: o aparelho desenhado à esquerda, o passo à direita */
.cy-wl-guide { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; }
.cy-wl-guide__side { display: flex; flex-direction: column; min-width: 0; }
.cy-wl-guide__side.is-swap > :not(.cy-wl-guide__top) { animation: cyWlFade .35s ease both; }
.cy-wl-guide__top { display: flex; margin-right: 40px; }
.cy-wl-guide__count { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 0 0; color: var(--ui-faint); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.cy-wl-guide__p { min-height: 3.2em; }
.cy-wl-guide__nav { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.cy-wl-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--ui-line); border-radius: 11px; background: var(--ui-bg-2); }
.cy-wl-seg__opt { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--ui-muted); font: 600 13px var(--ui-sans); cursor: pointer; transition: background .15s, color .15s; }
.cy-wl-seg__opt:hover { color: var(--ui-text); }
.cy-wl-seg__opt.is-on { background: var(--ui-brand-soft); color: #fff; box-shadow: 0 0 0 1px var(--ui-brand-line, rgba(96,165,250,.4)) inset; }
.cy-wl-seg__opt small { color: inherit; opacity: .75; font-size: 11px; font-weight: 500; }
html:not(.dark) .cy-wl-seg__opt.is-on { background: var(--ui-brand-strong); color: #fff; box-shadow: none; }
.cy-wl-gdots { display: flex; align-items: center; }
.cy-wl-gdots button { position: relative; width: 18px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.cy-wl-gdots button::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 99px; background: var(--ui-line-strong); transform: translate(-50%, -50%); transition: width .25s var(--wl-ease), background .25s; }
.cy-wl-gdots button.is-done::before { background: var(--ui-muted); }
.cy-wl-gdots button.is-on { width: 30px; }
.cy-wl-gdots button.is-on::before { width: 22px; background: var(--ui-brand); }
.cy-wl-play svg { width: 15px; height: 15px; }
.cy-wl-note { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--ui-line); border-radius: var(--ui-r); color: var(--ui-text-2); font-size: 12.5px; line-height: 1.5; }
.cy-wl-note .cy-wl-ico { width: 16px; height: 16px; margin-top: 1px; color: var(--ui-warn); }
.cy-wl-push { margin-top: 14px; padding: 14px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-r); background: var(--ui-bg-2); }
.cy-wl-push__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cy-wl-push__head b { color: var(--ui-text); font-size: 13.5px; font-weight: 600; }
.cy-wl-push__msg { margin: 8px 0 0; color: var(--ui-muted); font-size: 12.5px; line-height: 1.5; }
.cy-wl-push__btn { width: 100%; justify-content: center; margin-top: 12px; text-decoration: none; }
.cy-wl-push__btn svg { width: 16px; height: 16px; }
.cy-wl-push__btn[disabled] { opacity: .6; cursor: progress; }
a.ui-btn.ui-btn--primary { text-decoration: none; }

/* O celular desenhado (sem print de terceiros). 260×540 no desenho; --s escala. */
.cy-ph-wrap { --s: .92; flex: none; width: calc(260px * var(--s)); height: calc(540px * var(--s)); margin: 0 auto; }
.cy-ph { position: relative; width: 260px; height: 540px; padding: 10px; box-sizing: border-box; border-radius: 46px; background: linear-gradient(150deg, #34343a, #111114 55%, #2a2a30); box-shadow: 0 0 0 1.5px #46464e, inset 0 0 0 1px rgba(255,255,255,.07), 0 36px 70px -26px rgba(0,0,0,.7); transform: scale(var(--s)); transform-origin: 0 0; }
.cy-ph--android { border-radius: 36px; }
.cy-ph__screen { position: relative; width: 240px; height: 520px; overflow: hidden; border-radius: 36px; background: #000; color: #f4f4f5; font-family: var(--ui-sans); font-size: 12px; line-height: 1.3; }
.cy-ph--android .cy-ph__screen { border-radius: 27px; }
.cy-ph__status { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 22px 0 26px; color: #fff; font-size: 11.5px; font-weight: 600; }
.cy-ph--android .cy-ph__status { padding: 0 16px; font-weight: 500; }
.cy-ph__cam { position: absolute; left: 50%; top: 8px; width: 74px; height: 22px; margin-left: -37px; border-radius: 99px; background: #000; }
.cy-ph--android .cy-ph__cam { top: 11px; width: 11px; height: 11px; margin-left: -5.5px; background: #0a0a0a; box-shadow: 0 0 0 1.5px #1c1c1f; }
.cy-ph__sig { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.cy-ph__sig i { width: 3px; border-radius: 1px; background: #fff; }
.cy-ph__sig i:nth-child(1) { height: 4px; } .cy-ph__sig i:nth-child(2) { height: 6.5px; } .cy-ph__sig i:nth-child(3) { height: 9px; }
.cy-ph__sig b { width: 19px; height: 9px; margin-left: 5px; border: 1px solid rgba(255,255,255,.55); border-radius: 3px; background: linear-gradient(90deg, #fff 70%, transparent 70%) 1px 1px / calc(100% - 2px) calc(100% - 2px) no-repeat; }
.cy-ph__homebar { position: absolute; bottom: 7px; left: 50%; z-index: 7; width: 88px; height: 4px; margin-left: -44px; border-radius: 99px; background: rgba(255,255,255,.75); }
.cy-ph__homebar--android { width: 64px; height: 3px; margin-left: -32px; }
.cy-ph__scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .45s ease, transform .5s var(--wl-ease, ease), visibility 0s linear .5s; }
.cy-ph__scr.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cy-ph__scr.is-prev { transform: translateX(-16px); }
.cy-ph__i { display: block; width: 20px; height: 20px; }
.cy-ph__i--sm { width: 13px; height: 13px; }
/* página do Cycle dentro do navegador */
.cy-ph__site { position: absolute; inset: 34px 0 0; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; background: #09090b; transition: filter .4s ease; }
.cy-ph--android .cy-ph__site:not(.cy-ph__site--app) { top: 80px; }
.cy-ph__site.is-dim { filter: brightness(.45); }
.cy-ph__sitebar { display: flex; align-items: center; gap: 8px; height: 26px; }
.cy-ph__sitebar img { width: 20px; height: 20px; object-fit: contain; }
.cy-ph__sitebar b { font-size: 12px; font-weight: 650; }
.cy-ph__sitebar i { width: 20px; height: 20px; margin-left: auto; border-radius: 50%; background: #27272a; }
.cy-ph__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cy-ph__kpis span, .cy-ph__chart, .cy-ph__rows i, .cy-ph__pushcard { border: 1px solid #222226; border-radius: 12px; background: #131316; }
.cy-ph__kpis span { height: 56px; padding: 10px; box-sizing: border-box; }
.cy-ph__kpis em { display: block; width: 50%; height: 6px; border-radius: 3px; background: #3f3f46; }
.cy-ph__kpis strong { display: block; width: 72%; height: 12px; margin-top: 11px; border-radius: 4px; background: #d4d4d8; }
.cy-ph__chart { display: flex; align-items: flex-end; gap: 7px; height: 96px; padding: 12px; box-sizing: border-box; }
.cy-ph__chart i { flex: 1 1 0; border-radius: 4px; background: linear-gradient(180deg, #60a5fa, #2563eb); opacity: .9; }
.cy-ph__rows { display: flex; flex-direction: column; gap: 8px; }
.cy-ph__rows i { height: 30px; }
/* Safari (barra embaixo) */
.cy-ph__safari { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 98px; padding: 8px 10px 0; box-sizing: border-box; border-top: 1px solid rgba(255,255,255,.08); background: rgba(28,28,30,.96); }
.cy-ph__omni { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 36px; padding: 0 12px; border-radius: 12px; background: #3a3a3c; color: #f4f4f5; font-size: 12px; white-space: nowrap; }
.cy-ph__omni small { font-size: 10px; font-weight: 700; }
.cy-ph__tools { display: grid; grid-template-columns: repeat(5, 1fr); justify-items: center; align-items: center; height: 36px; margin-top: 4px; color: #0a84ff; }
.cy-ph__tools .is-off { color: #5b5b60; }
.cy-ph__share { display: grid; place-items: center; }
/* folha de compartilhar */
.cy-ph__sheet { position: absolute; left: 6px; right: 6px; bottom: 6px; top: 146px; z-index: 4; padding: 14px 12px; border-radius: 24px; background: #1c1c1e; transform: translateY(105%); transition: transform .6s var(--wl-ease, ease) .15s; }
.cy-ph__scr.is-on .cy-ph__sheet { transform: none; }
.cy-ph__sheet-head, .cy-ph__cell, .cy-ph__adlg-app { display: flex; align-items: center; gap: 10px; }
.cy-ph__sheet-head img, .cy-ph__adlg-app img { width: 38px; height: 38px; padding: 4px; box-sizing: border-box; border-radius: 10px; background: #0b0b0e; object-fit: contain; }
.cy-ph__sheet-head span, .cy-ph__adlg-app span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cy-ph__sheet-head strong, .cy-ph__adlg-app strong { font-size: 12.5px; font-weight: 600; }
.cy-ph__sheet-head small, .cy-ph__adlg-app small { color: #a1a1aa; font-size: 10.5px; }
.cy-ph__sheet-head > i { display: grid; place-items: center; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; background: #2c2c2e; color: #a1a1aa; }
.cy-ph__sheet-apps { display: flex; justify-content: space-between; margin: 14px 2px; }
.cy-ph__sheet-apps i { width: 38px; height: 38px; border-radius: 50%; background: #3a3a3c; }
.cy-ph__sheet-apps i:nth-child(1) { background: linear-gradient(145deg, #34d399, #059669); } .cy-ph__sheet-apps i:nth-child(2) { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.cy-ph__sheet-apps i:nth-child(3) { background: linear-gradient(145deg, #fbbf24, #d97706); } .cy-ph__sheet-apps i:nth-child(4) { background: linear-gradient(145deg, #f472b6, #db2777); }
.cy-ph__sheet-list { overflow: hidden; border-radius: 12px; background: #2c2c2e; }
.cy-ph__srow { position: relative; display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 12.5px; }
.cy-ph__srow:last-child { border-bottom: 0; }
.cy-ph__srow .cy-ph__i { width: 17px; height: 17px; }
.cy-ph__srow.is-hl, .cy-ph__arow.is-hl { background: #3d3d42; color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1.5px #0a84ff; border-radius: 10px; }
/* tela "Adicionar à Tela de Início" */
.cy-ph__ios-add { position: absolute; inset: 34px 0 0; background: #000; }
.cy-ph__nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 46px; padding: 0 10px; font-size: 11.5px; }
.cy-ph__nav b { flex: 1 1 auto; min-width: 0; font-size: 11.5px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cy-ph__nav em { flex: none; }
.cy-ph__nav em, .cy-ph__perm em, .cy-ph__adlg em { position: relative; font-style: normal; }
.cy-ph__nav em { color: #0a84ff; }
.cy-ph__nav em.is-hl { min-width: 40px; font-weight: 650; text-align: center; }
.cy-ph__cell { margin: 14px 12px 10px; padding: 12px; border-radius: 12px; background: #1c1c1e; }
.cy-ph__cell img { width: 54px; height: 54px; padding: 6px; box-sizing: border-box; border-radius: 13px; background: #0b0b0e; object-fit: contain; }
.cy-ph__cell span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.cy-ph__cell strong { display: flex; align-items: center; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; font-weight: 500; }
.cy-ph__cell small { margin-top: 8px; color: #8e8e93; font-size: 10.5px; }
.cy-ph__caret { width: 1.5px; height: 14px; margin-left: 2px; background: #0a84ff; animation: cyPhBlink 1s steps(1) infinite; }
.cy-ph__ios-add p { margin: 0; padding: 0 20px; color: #8e8e93; font-size: 10.5px; line-height: 1.45; }
/* tela inicial */
.cy-ph__home { position: absolute; inset: 0; padding: 54px 14px 0; background: radial-gradient(120% 70% at 15% 5%, #5b21b6 0%, transparent 60%), radial-gradient(110% 70% at 95% 95%, #1d4ed8 0%, transparent 60%), #0b0b14; }
.cy-ph__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; justify-items: center; }
.cy-ph__app { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cy-ph__app > i, .cy-ph__dock i { display: block; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, var(--t), color-mix(in srgb, var(--t) 55%, #000)); }
.cy-ph__home--android .cy-ph__app > i, .cy-ph__home--android .cy-ph__dock i { border-radius: 50%; }
.cy-ph__app small { display: block; width: 30px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.32); }
.cy-ph__app--cycle small { width: auto; height: auto; background: none; color: #fff; font-size: 9px; font-weight: 500; white-space: nowrap; }
.cy-ph__app--cycle img { display: block; width: 44px; height: 44px; padding: 5px; box-sizing: border-box; border-radius: 12px; background: #050507; box-shadow: 0 0 0 1px rgba(255,255,255,.12); object-fit: contain; }
.cy-ph__home--android .cy-ph__app--cycle img { border-radius: 50%; }
.cy-ph__scr.is-on .cy-ph__app--cycle { animation: cyPhPop .7s cubic-bezier(.3, 1.5, .5, 1) .35s both; }
.cy-ph__dock { position: absolute; left: 10px; right: 10px; bottom: 16px; display: flex; align-items: center; justify-content: space-around; height: 66px; border-radius: 26px; background: rgba(255,255,255,.14); }
.cy-ph__dock--android { bottom: 62px; height: 52px; background: none; }
.cy-ph__gsearch { position: absolute; left: 16px; right: 16px; bottom: 18px; height: 36px; border-radius: 99px; background: rgba(255,255,255,.16); }
.cy-ph__gsearch span { position: absolute; left: 14px; top: 50%; width: 80px; height: 6px; margin-top: -3px; border-radius: 3px; background: rgba(255,255,255,.35); }
/* Chrome (Android) */
.cy-ph__chrome { position: absolute; top: 34px; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 12px; background: #1f1f23; color: #e4e4e7; }
.cy-ph__chrome .cy-ph__omni { flex: 1 1 auto; justify-content: flex-start; height: 32px; padding: 0 10px; border-radius: 99px; background: #2f2f35; font-size: 11.5px; }
.cy-ph__tabsn { display: grid; place-items: center; flex: none; width: 17px; height: 17px; border: 1.5px solid #e4e4e7; border-radius: 4px; font-size: 9.5px; font-weight: 700; }
.cy-ph__menu { display: grid; place-items: center; flex: none; width: 28px; height: 32px; }
.cy-ph__amenu { position: absolute; top: 40px; right: 6px; z-index: 4; width: 178px; padding: 4px 0 6px; border-radius: 14px; background: #2b2b30; box-shadow: 0 14px 34px rgba(0,0,0,.55); opacity: 0; transform: scale(.6); transform-origin: top right; transition: opacity .3s ease .15s, transform .4s var(--wl-ease, ease) .15s; }
.cy-ph__scr.is-on .cy-ph__amenu { opacity: 1; transform: none; }
.cy-ph__amenu-top { display: flex; justify-content: space-around; padding: 8px 6px 10px; border-bottom: 1px solid rgba(255,255,255,.08); color: #e4e4e7; }
.cy-ph__amenu-top .cy-ph__i { width: 16px; height: 16px; }
.cy-ph__arow { position: relative; display: flex; align-items: center; gap: 12px; height: 34px; margin: 2px 4px; padding: 0 10px; color: #e4e4e7; font-size: 12px; }
.cy-ph__arow .cy-ph__i { width: 16px; height: 16px; }
.cy-ph__arow.is-hl { box-shadow: inset 0 0 0 1.5px #8ab4f8; }
.cy-ph__adlg { position: absolute; left: 16px; right: 16px; top: 180px; z-index: 4; padding: 20px 18px 14px; border-radius: 24px; background: #2b2b30; box-shadow: 0 14px 40px rgba(0,0,0,.55); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .35s ease .15s, transform .45s var(--wl-ease, ease) .15s; }
.cy-ph__scr.is-on .cy-ph__adlg { opacity: 1; transform: none; }
.cy-ph__adlg > b { font-size: 15px; font-weight: 500; }
.cy-ph__adlg-app { margin: 16px 0 18px; }
.cy-ph__adlg-btns { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.cy-ph__adlg em { padding: 8px 12px; border-radius: 99px; color: #8ab4f8; font-size: 12.5px; font-weight: 600; }
.cy-ph__adlg em.is-hl, .cy-ph__perm--android em.is-hl { background: #8ab4f8; color: #0b1a33; }
/* o Cycle aberto pelo ícone e o pedido de permissão */
.cy-ph__site--app { inset: 34px 0 0; }
.cy-ph__scr.is-on .cy-ph__site--app { animation: cyPhDim .4s ease 1s both; }
.cy-ph__pushcard { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.cy-ph__pushcard-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(59,130,246,.18); color: #60a5fa; }
.cy-ph__pushcard-ico .cy-ph__i { width: 16px; height: 16px; }
.cy-ph__pushcard b { font-size: 12.5px; font-weight: 600; }
.cy-ph__pushcard em { display: grid; place-items: center; height: 32px; border-radius: 9px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 600; font-style: normal; }
.cy-ph__perm { position: absolute; z-index: 4; opacity: 0; }
.cy-ph__scr.is-on .cy-ph__perm { animation: cyPhIn .45s var(--wl-ease, ease) 1s both; }
.cy-ph__perm--ios { left: 28px; right: 28px; top: 176px; overflow: hidden; border-radius: 14px; background: rgba(48,48,52,.97); text-align: center; }
.cy-ph__perm--ios b { display: block; padding: 16px 14px 4px; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.cy-ph__perm--ios small { display: block; padding: 0 14px 14px; color: #d4d4d8; font-size: 10.5px; line-height: 1.35; }
.cy-ph__perm-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.14); }
.cy-ph__perm-btns em { display: grid; place-items: center; height: 40px; color: #0a84ff; font-size: 13px; }
.cy-ph__perm-btns em:first-child { border-right: 1px solid rgba(255,255,255,.14); }
.cy-ph__perm-btns em.is-hl { font-weight: 650; }
.cy-ph__perm--android { left: 14px; right: 14px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; padding: 20px 16px 14px; border-radius: 26px; background: #2b2b30; text-align: center; }
.cy-ph__perm-ico { margin: 0 auto 2px; color: #8ab4f8; }
.cy-ph__perm--android b { margin-bottom: 6px; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.cy-ph__perm--android em { display: grid; place-items: center; height: 36px; border-radius: 99px; color: #8ab4f8; font-size: 12.5px; font-weight: 600; }
/* o toque: anel que abre e o dedo */
.cy-ph__t { position: relative; }
.cy-ph__t::before, .cy-ph__t::after { content: ''; position: absolute; left: 50%; top: 50%; z-index: 5; border-radius: 50%; opacity: 0; pointer-events: none; }
.cy-ph__t::before { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 2px solid rgba(255,255,255,.9); }
.cy-ph__t::after { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: rgba(255,255,255,.6); box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 4px 12px rgba(0,0,0,.4); }
.cy-ph__scr.is-on .cy-ph__t::before { animation: cyPhRing 1.8s ease-out .6s infinite; }
.cy-ph__scr.is-on .cy-ph__t::after { animation: cyPhTouch 1.8s ease-out .6s infinite; }
.cy-ph__scr.is-on .cy-ph__t--late::before, .cy-ph__scr.is-on .cy-ph__t--late::after { animation-delay: 1.1s; }
.cy-ph__scr.is-on .cy-ph__t--later::before, .cy-ph__scr.is-on .cy-ph__t--later::after { animation-delay: 1.7s; }

/* Página /help/welcome: rever o tour e o guia do celular para consulta */
.cy-wl-page { display: flex; flex-direction: column; }
.cy-wl-replay { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--ui-line); }
.cy-wl-replay__logo { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--ui-line); border-radius: 12px; background: var(--ui-bg-2); }
.cy-wl-replay__logo img { width: 28px; height: 28px; object-fit: contain; }
.cy-wl-replay__txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.cy-wl-replay__txt b { color: var(--ui-text); font-size: 14px; font-weight: 600; }
.cy-wl-replay__txt span { color: var(--ui-muted); font-size: 12.5px; }
.cy-wl-page__guide { padding: 24px 22px; scroll-margin-top: 70px; }
.cy-wl-page .cy-wl-guide { max-width: 860px; margin: 0 auto; }
.cy-wl-page .cy-wl-guide__top { margin-right: 0; }

@keyframes cyWlFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cyWlUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cyWlPop { from { opacity: 0; transform: translate(-50%, -50%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes cyWlSheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cyWlSheetTop { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes cyWlRing { 0% { inset: -1px; opacity: .85; } 100% { inset: -14px; opacity: 0; } }
@keyframes cyWlPulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes cyPhRing { 0% { opacity: 0; transform: scale(.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes cyPhTouch { 0% { opacity: 0; transform: scale(1.35); } 15% { opacity: 1; transform: scale(1); } 40% { opacity: 1; transform: scale(.88); } 65%, 100% { opacity: 0; transform: scale(.88); } }
@keyframes cyPhPop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes cyPhIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes cyPhDim { to { filter: brightness(.45); } }
@keyframes cyPhBlink { 50% { opacity: 0; } }

@media (max-width: 720px) {
    .cy-wl-card--guide { padding: 24px 20px 20px; }
    .cy-wl-guide { gap: 24px; }
}
@media (max-width: 640px) {
    .cy-wl-intro { top: calc(37% + 116px); }
    .cy-wl-intro__p { font-size: 14px; }
    .cy-wl-lang { top: 36%; gap: 18px; }
    .cy-wl-lang__t span { display: block; } .cy-wl-lang__t .cy-wl-lang__dot { display: none; }
    .cy-wl-lang__note span { display: block; } .cy-wl-lang__note span[aria-hidden] { display: none; }
    .cy-wl-choice { padding: 30px 12px 26px; }
    .cy-wl-lang__opts { flex-direction: column; align-items: center; gap: 10px; }
    .cy-wl-lang__opt { width: min(100%, 360px); height: 104px; padding: 14px 18px; }
    .cy-wl-lang__opt::before { top: 14px; left: 18px; }
    .cy-wl-lang__opt b { font-size: 20px; }
    .cy-wl-card { inset: 0; left: 0; top: 0; width: 100% !important; max-height: none; height: 100dvh; padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important; border: 0; border-radius: 0; transform: none; display: flex; flex-direction: column; }
    .cy-wl-card.is-in { animation: cyWlFade .35s ease both; }
    .cy-wl-card__in { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
    .cy-wl-card--choice .cy-wl-card__in, .cy-wl-card--done .cy-wl-card__in { justify-content: center; }
    .cy-wl-card__foot { margin-top: auto; padding-top: 18px; }
    .cy-wl-card--done .cy-wl-done__btn { margin-top: 28px; }
    .cy-wl-gh { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
    .cy-wl-card .cy-wl-guide { display: flex; flex-direction: column; align-items: stretch; gap: 10px; flex: 1 1 auto; }
    .cy-wl-card .cy-wl-guide__nav { margin-top: auto !important; padding-top: 12px; }
    .cy-wl-card .cy-wl-guide .cy-ph-wrap { order: 2; --s: .72; }
    /* último passo (aviso do iOS + caixa dos avisos): o aparelho encolhe para tudo caber */
    .cy-wl-card .cy-wl-guide:has(.cy-wl-push) .cy-ph-wrap { --s: .5; }
    .cy-wl-card .cy-wl-guide__side { display: contents; }
    .cy-wl-card .cy-wl-guide__top { order: 1; margin: 0 40px 4px 0; }
    .cy-wl-card .cy-wl-guide__side > :not(.cy-wl-guide__top) { order: 3; }
    .cy-wl-card .cy-wl-guide__count { margin-top: 8px; }
    .cy-wl-card .cy-wl-h { font-size: 19px; }
    .cy-wl-card .cy-wl-guide__p { min-height: 0; font-size: 13.5px; }
    .cy-wl-card .cy-wl-guide__nav { margin-top: 12px; }
    .cy-wl-page .cy-wl-guide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .cy-wl-page .cy-wl-guide .cy-ph-wrap { --s: .7; }
    .cy-wl-page__guide { padding: 18px 14px; }
    .cy-wl-replay { flex-wrap: wrap; }
    .cy-wl-replay .ui-btn { width: 100%; justify-content: center; }
}
@media (max-width: 640px) and (max-height: 760px) { .cy-wl-card .cy-wl-guide .cy-ph-wrap { --s: .58; } .cy-wl-card .cy-wl-guide:has(.cy-wl-push) .cy-ph-wrap { --s: .42; } }
@media (min-width: 641px) and (max-height: 720px) { .cy-wl-card .cy-ph-wrap { --s: .74; } .cy-wl-card--guide { padding-top: 20px; padding-bottom: 18px; } }
@media (prefers-reduced-motion: reduce) {
    .cy-wl *, .cy-wl *::before, .cy-wl *::after, .cy-wl-page *, .cy-wl-page *::before { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }
    .cy-wl-hole::after, .cy-ph__scr.is-on .cy-ph__t::after { animation: none !important; opacity: 0 !important; }
    .cy-ph__scr.is-on .cy-ph__t::before { animation: none !important; opacity: 1; }
    .cy-ph__caret { animation: none !important; }
}
/* teclado genérico da tela "Adicionar" (iPhone) */
.cy-ph__kb { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 7px; padding: 8px 3px 28px; background: #2b2b2f; }
.cy-ph__kb-row { display: flex; justify-content: center; gap: 4px; }
.cy-ph__kb-row.is-mid { padding: 0 11px; } .cy-ph__kb-row.is-low { padding: 0 30px; }
.cy-ph__kb-row i { display: grid; place-items: center; flex: 1 1 0; height: 30px; border-radius: 5px; background: #5b5b60; color: #fff; font-size: 12px; font-style: normal; box-shadow: 0 1px 0 rgba(0,0,0,.5); }
.cy-ph__kb-row.is-bottom i { flex: 0 0 auto; padding: 0 9px; background: #46464b; font-size: 10.5px; }
.cy-ph__kb-row.is-bottom i.is-space { flex: 1 1 auto; background: #5b5b60; }
.cy-ph__kb-row.is-bottom i.is-done { background: #0a84ff; }
/* lista dos passos do guia (computador); no celular ficam os pontinhos */
.cy-wl-gsteps { display: flex; flex-direction: column; gap: 2px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: none; }
.cy-wl-gsteps button { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px 0 6px; border: 0; border-radius: var(--ui-r-sm); background: none; color: var(--ui-muted); font: 500 13px var(--ui-sans); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.cy-wl-gsteps button:hover { background: var(--ui-raised); color: var(--ui-text); }
.cy-wl-gsteps__n { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid var(--ui-line-strong); border-radius: 50%; color: var(--ui-faint); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .2s, border-color .2s, color .2s; }
.cy-wl-gsteps button.is-done .cy-wl-gsteps__n { border-color: transparent; background: var(--ui-raised-2); color: var(--ui-text-2); }
.cy-wl-gsteps button.is-on { background: var(--ui-raised); color: var(--ui-text); font-weight: 600; }
.cy-wl-gsteps button.is-on .cy-wl-gsteps__n { border-color: var(--ui-brand); background: var(--ui-brand); color: #fff; }
.cy-wl-guide .cy-wl-gdots { display: none; }
@media (max-width: 640px) {
    .cy-wl-gsteps { display: none; }
    .cy-wl-guide .cy-wl-gdots { display: flex; }
}

/* ── Carregando = anel da Cycle (Pedro, 26/11/2026) ──────────────────────────
   As fitas do logo da Cycle desenroladas num anel, girando em loop. É o único
   carregador do ecossistema: Hub, Tracking, Tráfego, Edição e Copy.
   Uso: <span class="ui-loader" aria-hidden="true"></span>; tamanho por
   --ui-loader-size (padrão 16px) ou width/height. A imagem traz as cores da
   marca e funciona igual no escuro e no claro. */
.ui-loader {
    display: inline-block; flex: none; vertical-align: middle;
    width: var(--ui-loader-size, 16px); height: var(--ui-loader-size, 16px);
    background: url("cycle-ring.png") center / contain no-repeat;
    animation: ui-loader-spin 1.4s linear infinite;
}
.ui-loader--lg { --ui-loader-size: 56px; }
@keyframes ui-loader-spin { to { transform: rotate(360deg); } }
/* Os carregadores antigos de cada dash viram o anel sem mexer tela por tela:
   o aro do Tailwind (div redondo com animate-spin), o ícone LoaderCircle/Loader2
   do lucide e o SVG de círculo + arco. Ícone de "atualizar" girando não é tocado. */
.animate-spin.rounded-full,
svg.lucide-loader-circle,
svg.animate-spin:has(> circle) {
    border-color: transparent !important;
    background: url("cycle-ring.png") center / contain no-repeat !important;
    background-origin: border-box !important;
    animation: ui-loader-spin 1.4s linear infinite !important;
}
svg.lucide-loader-circle > *,
svg.animate-spin:has(> circle) > * { visibility: hidden; }
/* No escuro o roxo das fitas some no fundo quase preto: clareia um pouco. */
html:not(.light) .ui-loader, html:not(.light) .animate-spin.rounded-full,
html:not(.light) svg.lucide-loader-circle, html:not(.light) svg.animate-spin:has(> circle) { filter: brightness(1.45) saturate(1.15); }
@media (prefers-reduced-motion: reduce) {
    .ui-loader, .animate-spin.rounded-full, svg.lucide-loader-circle, svg.animate-spin:has(> circle) { animation-duration: 3s !important; }
}

