/* iT2Us — app mobile (/m). Só é carregado quando BRAND=it2us. Fundo quase branco, texto #141A18, botão principal preto.
   As variáveis da marca (--it2us-u, neutros, foco...) vêm de tokens.css, carregado antes deste arquivo. */
:root { --fundo: #FBFCFB; --papel: #FFFFFF; --texto: #141A18; --texto-2: #66706C; --linha: #E3E7E5; --suave: #F2F4F3; --acento: #141A18; }

/* ===== Detalhe colorido da marca (20-11-2026): o degradê do U como acento fino, os mesmos lugares do painel ===== */
/* 1. fio no topo da barra superior (também na tela de entrar) */
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: var(--sat); height: var(--it2us-u-fio); background: var(--it2us-u); pointer-events: none; }
/* 2. aba ativa da barra de baixo: um traço do U em cima do ícone (o grafite e o negrito continuam marcando a aba) */
.tabs a { position: relative; }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; margin-left: -14px; height: var(--it2us-u-fio-forte); border-radius: 0 0 3px 3px; background: var(--it2us-u); }
/* 3. anel de foco: contorno grafite com o lado de baixo no degradê do U (botões e campos, o mesmo desenho) */
:focus-visible { outline: 2px solid var(--it2us-foco); outline-offset: 2px; }
.row:focus-visible { outline-offset: -3px; }
:where(button:not(.row):focus-visible, .btn:focus-visible) { position: relative; }
:where(button:not(.row):focus-visible, .btn:focus-visible)::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -4px; height: var(--it2us-u-fio); border-radius: 2px; background: var(--it2us-u); pointer-events: none; }
.search input:focus, .field input:focus, .field textarea:focus, .composer textarea:focus {
  outline: none; border-color: var(--it2us-foco); box-shadow: 0 0 0 1px var(--it2us-foco);
  background-image: var(--it2us-u); background-size: 100% var(--it2us-u-fio); background-position: 0 100%; background-repeat: no-repeat; }
/* 4. carregando ("Abrindo…", "Carregando…"): o fio do U correndo em cima do texto */
p.state:not(:has(b))::before { content: ""; display: block; width: 72px; height: var(--it2us-u-fio); margin: 0 auto 16px; border-radius: 2px;
  background: var(--it2us-u) 0 0 / 200% 100%; animation: it2us-corre 1.4s linear infinite; }
/* 5. estado vazio e avisos da lista: o U com o ponto, em linha fina */
div.state::before, p.state:has(b)::before { content: ""; display: block; width: 48px; height: 40px; margin: 0 auto 14px; background: var(--it2us-u-marca-fundo);
  -webkit-mask: var(--it2us-u-marca) center / contain no-repeat; mask: var(--it2us-u-marca) center / contain no-repeat; }
/* 6. resumo do dia (cartão preto): o fio do U no topo, como o "resumo" do site */
.resumo-card { position: relative; overflow: hidden; }
.resumo-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: var(--it2us-u-fio); background: var(--it2us-u); }
/* 7. convite dos avisos e lembrete: o traço lateral vira o traço do U (o lembrete "agora" continua vermelho: é estado) */
.convite { border-left: 1px solid var(--linha); padding-left: 18px; background: var(--it2us-u-v) 0 0 / var(--it2us-u-fio-forte) 100% no-repeat, var(--papel); }
.lembrete-barra:not(.agora) { border-left: 0; padding-left: 20px; background: var(--it2us-u-v) 0 0 / 4px 100% no-repeat, var(--suave); }
@media (prefers-reduced-motion: reduce) { p.state:not(:has(b))::before { animation: none; background-size: 100% 100%; } }

/* entrada do celular: o convite do teste ganha o fio do U embaixo (public/m/m.css .entrar-u) */
.entrar-u .teste a { text-decoration: none; padding-bottom: 2px; background: var(--it2us-u) 0 100% / 100% 2px no-repeat; }
