/* =====================================================================================================
   TELAS ILUSTRATIVAS · console e IA — telas-ia.v1.css (site agratech.com.br)
   T01 hero (console + AIA + tablet) · T02 conversa com a AIA · T03 "Fixar no painel" · T04 painel ·
   T13 console do AGRATECH Web · T14 Portal Agratech no celular · T15 editor de mapa.
   Fonte de cada tela: ferramentas/telas/Txx-*.html (trecho <figure class="figura-tela">…</figure>).
   Inspiradas no visual real do console (cartões brancos, cabeçalho verde-claro, indicadores com degradê),
   SEMPRE com nomes e números fictícios.
   Escala por container queries: .t-palco é o contêiner; .ti-cena tem a fonte em cqw e tudo dentro é em em.
   Três arranjos, pela largura do palco (o mesmo corte das telas de automação):
     larga    (≥ 875 px)  → a tela inteira, 62,5em de largura, 1em = 14 px;
     média    (480–874 px) → 1em = 2% do palco, entre 11 e 14 px (43 a 62,5em): menu só com ícones, menos colunas;
     estreita (< 480 px)  → só um RECORTE da tela, em uma coluna, sem menu, 1em = 12 a 14 px; nenhum texto visível
                            abaixo de .84em (≥ 10 px). Gráficos do recorte em HTML (.ti-barras, .ti-mapa-ed), porque o
                            texto dentro do SVG encolhe junto com o desenho.
   Letra mínima em todos os arranjos: 10 px na tela. Toda letra menor que 1em é "max(.NNem, 10px)" (vale em cada nível,
   então o texto dentro de outro já reduzido também fica com 10 px); a letra dos gráficos em SVG cresce nas faixas em
   que o desenho encolhe (blocos de 640, 560 e 520 px).
   Classes de recorte: .ti-oculta-estreito (some abaixo de 480 px), .ti-so-estreito (só aparece abaixo de 480 px).
   Classes internas com prefixo ti- (não esbarram no site nem nas telas de automação). Sem style inline.
   Indicadores com degradê em tons que passam AA com texto branco (o tom mais claro de cada um ≥ 4,5:1).
   Movimento só com "prefers-reduced-motion: no-preference", no máximo 3 ciclos.
   ===================================================================================================== */

/* ---------- palco e cena ---------- */
.t-palco { container-type: inline-size }

.ti-cena {
  --ti-verde: var(--agra-600, #2f9e41);
  --ti-verde-700: var(--agra-700, #22772f);
  --ti-verde-800: var(--agra-800, #1e5e2a);
  --ti-verde-50: var(--agra-50, #f1f9f1);
  --ti-verde-100: var(--agra-100, #dcefdd);
  --ti-lima: var(--lima, #8cc63f);
  --ti-lima-claro: #eef7e2;
  --ti-tinta: var(--tinta, #17211b);
  --ti-texto: var(--texto, #3f4a44);
  --ti-suave: var(--suave, #5f6b65);
  --ti-linha: var(--linha, #e5e9e7);
  --ti-linha-forte: var(--linha-forte, #d2d8d5);
  --ti-fundo: #eef2f1;
  --ti-claro: #f6f8f7;
  /* gráficos: a mesma paleta do console (cor por série, em ordem fixa) */
  --ti-azul: #2a78d6;
  --ti-laranja: #eb6834;
  --ti-verde-graf: #1baf7a;
  --ti-sombra: 0 .1em .25em rgba(16, 24, 20, .06), 0 .7em 2em rgba(16, 24, 20, .12);
  position: relative;
  font-family: var(--fonte, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: clamp(11px, 2cqw, 14px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ti-tinta);
  text-align: left;
  /* acima de 875 px a cena para de crescer (62,5em × 14 px) e fica centrada; abaixo disso a letra nunca fica
     menor que 11 px: a cena fica mais estreita em em e os arranjos "média" e "estreita" (no fim) reorganizam a tela */
  max-width: 62.5em;
  margin-inline: auto;
  padding: .8em;
}
.ti-cena *, .ti-cena *::before, .ti-cena *::after { box-sizing: border-box }
/* telas estreitas (painel do assistente) e celular: a mesma regra, com o fator do tamanho real delas */
.ti-cena--estreita { font-size: clamp(10px, 2.6cqw, 14px); max-width: 38.5em }
.ti-cena--celular { font-size: clamp(10px, 3.6cqw, 14px); max-width: 27.8em; display: flex; justify-content: center }

.t-tela--hero-console, .t-tela--conversa-agra, .t-tela--fixar-painel, .t-tela--painel,
.t-tela--console-plataforma, .t-tela--portal-produtor, .t-tela--editor-mapa {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

/* ícones (Lucide, ISC) */
.ti-ic {
  display: block;
  flex: none;
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- janela (moldura de navegador, sem endereço) ---------- */
.ti-janela {
  background: #fff;
  border: 1px solid var(--ti-linha-forte);
  border-radius: .9em;
  box-shadow: var(--ti-sombra);
  overflow: hidden;
  min-width: 0;
}
.ti-janela__barra {
  display: flex;
  align-items: center;
  gap: .4em;
  height: 1.9em;
  padding: 0 .9em;
  background: #f1f4f3;
  border-bottom: 1px solid var(--ti-linha);
}
.ti-janela__barra > span { width: .62em; height: .62em; border-radius: 50%; background: #d3dad6 }

/* ---------- console (menu lateral verde + área principal) ---------- */
.ti-console { display: grid; grid-template-columns: 11.5em minmax(0, 1fr) }
.ti-menu {
  display: flex;
  flex-direction: column;
  gap: .1em;
  padding: .8em 0 1em;
  background: var(--ti-verde-800);
  color: #fff;
  min-width: 0;
}
.ti-menu__marca {
  margin: 0 .8em .6em;
  padding-bottom: .6em;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
}
.ti-logo {
  display: block;
  height: 2.6em;
  border-radius: .5em;
  background: #fff url("../img/logo-agratech.v1.webp") center / auto 72% no-repeat;
}
.ti-menu__sub {
  display: block;
  margin-top: .55em;
  font-size: max(.7em, 10px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d3e3d6;
}
.ti-menu__item {
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .55em .8em .55em .7em;
  border-left: .25em solid transparent;
  font-size: max(.84em, 10px);
  color: #e8f0e9;
  white-space: nowrap;
  overflow: hidden;
}
.ti-menu__item--ativo { background: rgba(255, 255, 255, .15); border-left-color: #fff; color: #fff; font-weight: 600 }
.ti-menu__usuario {
  margin: auto .8em 0;
  padding-top: .7em;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: max(.78em, 10px);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
}
.ti-menu__usuario > span { display: block }
.ti-menu__usuario > span + span { font-size: max(.88em, 10px); color: #d3e3d6 }

/* menu só com ícones (painel, telas estreitas) */
.ti-console--compacto { grid-template-columns: 3.7em minmax(0, 1fr) }
.ti-console--compacto .ti-menu__item > span,
.ti-console--compacto .ti-menu__sub,
.ti-console--compacto .ti-menu__usuario { display: none }
.ti-console--compacto .ti-menu__item { justify-content: center; padding: .6em 0; font-size: max(.9em, 10px) }
.ti-console--compacto .ti-menu__marca { margin: 0 .45em .6em }
.ti-console--compacto .ti-logo { height: 2.3em; background-image: url("../img/agra-folha.v1.webp"); background-size: auto 62% }

.ti-principal { min-width: 0; padding: 1em 1.2em 1.2em; background: var(--ti-fundo) }

/* cabeçalho da página e abas */
.ti-topo { display: flex; align-items: center; gap: .5em; margin-bottom: .6em; color: var(--ti-verde-700); min-width: 0 }
.ti-topo .ti-ic { width: 1.5em; height: 1.5em }
.ti-topo__titulo { font-size: 1.3em; font-weight: 650; color: var(--ti-verde-800); white-space: nowrap }
.ti-topo__fim { margin-left: auto; display: flex; gap: .5em; align-items: center }
.ti-abas { display: flex; gap: .3em; margin-bottom: .8em; border-bottom: 1px solid var(--ti-linha-forte) }
.ti-aba {
  margin-bottom: -1px;
  padding: .45em .9em;
  border-bottom: .2em solid transparent;
  font-size: max(.86em, 10px);
  color: var(--ti-suave);
  white-space: nowrap;
}
.ti-aba--ativa { border-bottom-color: var(--ti-verde); color: var(--ti-verde-800); font-weight: 650 }
.ti-nota { display: flex; align-items: center; gap: .4em; margin: -.2em 0 .7em; font-size: max(.76em, 10px); color: var(--ti-suave) }

/* botões (desenho; nada aqui é clicável) */
.ti-botao {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .4em .75em;
  border-radius: .55em;
  font-size: max(.82em, 10px);
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
}
.ti-botao .ti-ic { width: 1.15em; height: 1.15em }
.ti-botao--contorno { border: 1px solid var(--ti-verde); background: #fff; color: var(--ti-verde-700) }
.ti-botao--primario { background: var(--ti-verde-700); color: #fff }
.ti-botao--sec { border: 1px solid #cdd5d1; background: #fff; color: #374151 }
.ti-mini-botao {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  height: 2em;
  padding: 0 .5em;
  border: 1px solid var(--ti-verde-100);
  border-radius: .5em;
  background: #fff;
  color: var(--ti-verde-800);
  font-size: max(.74em, 10px);
  font-weight: 550;
  white-space: nowrap;
}
.ti-mini-botao .ti-ic { width: 1.2em; height: 1.2em }
.ti-mini-botao--ativo { border-color: var(--ti-lima); background: var(--ti-lima-claro) }

/* ---------- quadros (cartão branco, cabeçalho verde-claro) ---------- */
.ti-grade { display: grid; gap: .7em; min-width: 0 }
.ti-quadro {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e7e4;
  border-radius: .8em;
  box-shadow: 0 1px 2px rgba(16, 24, 20, .05);
}
.ti-quadro__cabeca {
  display: flex;
  align-items: center;
  gap: .55em;
  padding: .55em .65em;
  background: var(--ti-verde-50);
  border-bottom: 1px solid var(--ti-verde-100);
}
.ti-quadro__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.1em;
  height: 2.1em;
  border-radius: .5em;
  background: #fff;
  color: var(--ti-verde-700);
  box-shadow: 0 0 0 1px var(--ti-verde-100);
}
.ti-quadro__ic .ti-ic { width: 1.15em; height: 1.15em }
.ti-quadro__textos { flex: 1; min-width: 0 }
.ti-quadro__titulo {
  display: block;
  font-size: max(.86em, 10px);
  font-weight: 650;
  line-height: 1.25;
  color: var(--ti-verde-800);
}
.ti-quadro__periodo {
  display: flex;
  align-items: center;
  gap: .3em;
  margin-top: .2em;
  font-size: max(.74em, 10px);
  color: var(--ti-suave);
  white-space: nowrap;
}
.ti-quadro__periodo .ti-ic { width: 1.1em; height: 1.1em }
.ti-quadro__acoes { display: flex; flex: none; gap: .3em; align-items: center }
.ti-quadro__corpo { flex: 1; padding: .6em .7em; min-width: 0 }
.ti-quadro__corpo--kpi { display: flex; align-items: center }
.ti-quadro__rodape {
  padding: .35em .7em;
  border-top: 1px solid var(--ti-linha);
  font-size: max(.72em, 10px);
  color: var(--ti-suave);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ti-selo-exemplo {
  padding: .05em .5em;
  border-radius: 999px;
  background: #e2f1cf;
  color: var(--ti-verde-800);
  font-size: max(.9em, 10px);
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* indicadores coloridos (degradê; texto branco ≥ 4,5:1 nos dois tons) */
.ti-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.2em, 1fr)); gap: .55em; width: 100% }
.ti-kpi {
  min-width: 0;
  padding: .7em .8em .65em;
  border-radius: .9em;
  color: #fff;
  box-shadow: 0 .25em .7em rgba(16, 24, 20, .14);
}
.ti-kpi__valor {
  display: block;
  font-size: 1.75em;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ti-kpi__rotulo { display: block; margin-top: .4em; font-size: max(.78em, 10px); line-height: 1.2 }
.ti-kpi--verde { background: linear-gradient(135deg, #22772f, #1e5e2a) }
.ti-kpi--azul { background: linear-gradient(135deg, #0369a1, #075985) }
.ti-kpi--petroleo { background: linear-gradient(135deg, #0f766e, #115e59) }
.ti-kpi--ardosia { background: linear-gradient(135deg, #475569, #334155) }
.ti-kpis--grandes .ti-kpi { padding: .9em 1em .85em }
.ti-kpis--grandes .ti-kpi__valor { font-size: 2.3em }

/* ---------- gráficos em SVG (texto em unidades do desenho) ---------- */
.ti-g { display: block; width: 100%; height: auto; overflow: visible }
.ti-g text { font-family: inherit; font-size: 9px; fill: #64748b }
.ti-g .ti-g-meio { text-anchor: middle }
.ti-g .ti-g-fim { text-anchor: end }
.ti-g .ti-g-val { fill: #475569; font-weight: 600 }
.ti-g .ti-g-grade { stroke: #e9eef2; stroke-width: 1 }
.ti-g .ti-g-base { stroke: #cbd5e1; stroke-width: 1 }
.ti-g .ti-g-barra { fill: var(--ti-azul) }
.ti-g .ti-g-linha { fill: none; stroke: var(--ti-azul); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.ti-g .ti-g-area { fill: var(--ti-azul); fill-opacity: .1 }
.ti-g .ti-g-ponto { fill: var(--ti-azul); stroke: #fff; stroke-width: 2 }
.ti-g .ti-g-fatia { fill: none }
.ti-g .ti-g-c1 { stroke: var(--ti-azul) }
.ti-g .ti-g-c2 { stroke: var(--ti-laranja) }
.ti-g .ti-g-c3 { stroke: var(--ti-verde-graf) }
.ti-g .ti-g-p1 { fill: var(--ti-azul) }
.ti-g .ti-g-p2 { fill: var(--ti-laranja) }
.ti-g .ti-g-p3 { fill: var(--ti-verde-graf) }
.ti-g .ti-g-total { font-size: 17px; font-weight: 700; fill: #0f172a }
.ti-g .ti-g-leg { font-size: 10px; fill: #334155 }
/* assistente (T02/T03): o gráfico ocupa quase toda a largura do painel, então a letra do SVG pode ser um pouco maior */
.ti-cena--estreita .ti-g text { font-size: 10px }

/* ---------- tabela (grade de divs; colunas definidas por tela) ---------- */
.ti-tabela { display: grid; min-width: 0; font-size: max(.78em, 10px) }
.ti-tabela__linha { display: grid; align-items: center; border-top: 1px solid var(--ti-linha) }
.ti-tabela__linha:first-child { border-top: 0 }
.ti-tabela__cab { background: #f8fafc; color: var(--ti-suave); font-weight: 600 }
.ti-tabela__c { min-width: 0; padding: .5em .55em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.ti-num { text-align: right; font-variant-numeric: tabular-nums }
.ti-selo {
  display: inline-block;
  padding: .12em .6em;
  border-radius: 999px;
  font-size: max(.92em, 10px);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.ti-selo--ok { background: #dcefdd; color: #1e5e2a }
.ti-selo--espera { background: #eceff3; color: #475569 }
.ti-selo--andamento { background: #dff0fb; color: #075985 }

/* ---------- T01 · hero: console + AIA + tablet ---------- */
.ti-hero { padding: .8em .8em .6em }
/* tablet na frente do canto de baixo à esquerda (cobre só o fim do menu lateral) e a AIA no canto de baixo à direita */
.ti-hero__janela { margin-left: 13%; margin-bottom: 7em }
.ti-grade--hero { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.ti-grade--hero .ti-quadro--largo { grid-column: 1 / -1 }
.ti-hero__agra {
  position: absolute;
  right: 3.5%;
  bottom: 3em;
  display: flex;
  align-items: flex-end;
  gap: .6em;
  max-width: 50%;
}
.ti-hero__balao {
  position: relative;
  margin-bottom: 1.6em;
  padding: .6em .85em .65em;
  background: #fff;
  border: 1px solid #b8dc8a;
  border-radius: .9em;
  border-bottom-right-radius: .25em;
  box-shadow: var(--ti-sombra);
  font-size: max(.86em, 10px);
  line-height: 1.35;
  color: var(--ti-tinta);
}
.ti-hero__balao > span { display: block }
.ti-hero__ola { font-weight: 650; color: var(--ti-verde-800) }
.ti-hero__dica { margin-top: .25em; font-size: max(.88em, 10px); color: var(--ti-suave) }
.ti-hero__avatar.ia-av { width: 5em; height: 5em; filter: drop-shadow(0 .3em .6em rgba(16, 24, 20, .22)) }

/* tablet da empilhadeira (8") com o mapa */
.ti-tablet {
  padding: .7em;
  border-radius: 1.15em;
  background: #1c2420;
  box-shadow: 0 .9em 2.2em rgba(16, 24, 20, .28), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.ti-hero__tablet { position: absolute; left: .8em; bottom: .6em; width: 31% }
.ti-tablet__tela {
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: .45em;
  background: #fff;
}
.ti-app-topo {
  display: flex;
  align-items: center;
  gap: .45em;
  padding: .45em .7em;
  background: var(--ti-verde-800);
  color: #fff;
  font-size: max(.8em, 10px);
  font-weight: 650;
  white-space: nowrap;
}
.ti-app-topo .ti-ic { width: 1.25em; height: 1.25em }
.ti-app-online { display: inline-flex; align-items: center; gap: .35em; margin-left: auto; color: #dcefdd; font-weight: 500 }
.ti-ponto { display: block; width: .6em; height: .6em; border-radius: 50%; background: var(--ti-lima) }
.ti-mini-mapa {
  flex: 1;
  display: grid;
  align-content: center;
  gap: .28em;
  padding: .4em .6em;
  background: #f7f9f8;
}
.ti-ala { display: grid; grid-template-columns: 2.4em repeat(8, minmax(0, 1fr)); gap: .2em; align-items: center }
.ti-ala__nome { font-size: max(.66em, 10px); font-weight: 700; color: var(--ti-texto); white-space: nowrap }
.ti-q { display: block; height: 1em; border-radius: .14em; background: #fff; box-shadow: inset 0 0 0 1px #d3dad6 }
.ti-q--entrada { background: #82c341; box-shadow: none }
.ti-q--saida { background: #f44d42; box-shadow: none }
.ti-q--despejo { background: #ff8430; box-shadow: none }
.ti-q--resultado { background: #085b9f; box-shadow: none }
.ti-q--separacao { background: #7c3aed; box-shadow: none }
.ti-q--ocupada { background: #ffeb00; box-shadow: inset 0 0 0 1px #e0cd00 }
.ti-corredor { display: flex; align-items: center; gap: 3.2em; height: 1.1em; padding-left: 4.2em }
.ti-emp {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  border: .15em solid #fff;
  background: #1e293b;
  color: #fff;
  font-size: max(.66em, 10px);
  font-weight: 700;
  box-shadow: 0 .1em .3em rgba(0, 0, 0, .3);
}
.ti-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: .2em .8em;
  padding: .4em .7em .45em;
  border-top: 1px solid var(--ti-linha);
  font-size: max(.7em, 10px);
  color: var(--ti-texto);
}
.ti-legenda__item { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap }
.ti-legenda .ti-q { width: 1.2em; height: .9em }

/* ---------- T02/T03 · assistente (conversa e "Fixar no painel") ---------- */
.ti-assistente {
  width: 100%;
  max-width: 46em;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ti-verde-100);
  border-radius: 1.1em;
  box-shadow: var(--ti-sombra);
}
.ti-assistente__cabeca {
  display: flex;
  align-items: center;
  gap: .65em;
  padding: .5em .6em .5em .75em;
  background: var(--ti-verde-800);
  color: #fff;
}
.ti-assistente__cabeca .ia-av { width: 2.6em; height: 2.6em }
.ti-assistente__textos { min-width: 0 }
.ti-assistente__nome { display: block; font-size: max(.95em, 10px); font-weight: 650; line-height: 1.2 }
.ti-assistente__estado { display: block; font-size: max(.76em, 10px); color: #d3e3d6; white-space: nowrap }
.ti-assistente__botoes { display: flex; gap: .2em; margin-left: auto; color: #e8f0e9 }
.ti-assistente__botoes .ti-ic { width: 2.1em; height: 2.1em; padding: .5em; border-radius: .5em }
.ti-conversa { display: flex; flex-direction: column; gap: .7em; padding: .9em .9em 1em }
.ti-balao { max-width: 86%; padding: .55em .8em; border-radius: 1.1em; font-size: max(.86em, 10px); line-height: 1.4 }
.ti-balao--pessoa { align-self: flex-end; border-bottom-right-radius: .35em; background: var(--ti-verde-700); color: #fff }
.ti-balao--agra {
  align-self: flex-start;
  border: 1px solid var(--ti-verde-100);
  border-bottom-left-radius: .35em;
  background: var(--ti-verde-50);
  color: #1f2a24;
}
.ti-pergunta { display: flex; align-items: center; gap: .5em; padding: .65em .8em .3em; border-top: 1px solid var(--ti-linha) }
.ti-pergunta__campo {
  flex: 1;
  min-width: 0;
  padding: .55em .8em;
  border: 1px solid #cdd5d1;
  border-radius: .8em;
  background: var(--ti-claro);
  font-size: max(.84em, 10px);
  color: var(--ti-suave);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ti-enviar {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  flex: none;
  padding: .55em .85em;
  border-radius: .8em;
  background: var(--ti-verde-700);
  color: #fff;
  font-size: max(.84em, 10px);
  font-weight: 550;
}
.ti-enviar .ti-ic { width: 1.15em; height: 1.15em }
.ti-aviso { padding: .25em .8em .65em; font-size: max(.74em, 10px); color: var(--ti-suave); text-align: center }

/* faixa do "Fixar no painel" */
.ti-fixar { display: grid; gap: .65em; padding: .7em .75em .8em; background: #f8fafc; border-top: 1px solid var(--ti-linha) }
.ti-fixar__nota {
  display: flex;
  align-items: flex-start;
  gap: .45em;
  padding: .45em .65em;
  border-radius: .6em;
  background: var(--ti-lima-claro);
  color: var(--ti-verde-800);
  font-size: max(.8em, 10px);
}
.ti-fixar__nota .ti-ic { margin-top: .05em; color: var(--ti-verde-700) }
.ti-rotulo {
  display: block;
  margin-bottom: .4em;
  font-size: max(.74em, 10px);
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ti-suave);
}
.ti-segmento { display: flex; gap: .25em; padding: .25em; border-radius: .6em; background: #e9edeb }
.ti-segmento__opcao {
  flex: 1;
  padding: .4em .6em;
  border-radius: .45em;
  font-size: max(.82em, 10px);
  font-weight: 550;
  color: var(--ti-suave);
  text-align: center;
  white-space: nowrap;
}
.ti-segmento__opcao--ativa { background: #fff; color: var(--ti-verde-800); box-shadow: 0 0 0 1px var(--ti-lima), 0 1px 2px rgba(0, 0, 0, .06) }
.ti-dica { display: flex; align-items: center; gap: .35em; margin-top: .4em; font-size: max(.76em, 10px); color: var(--ti-suave) }
.ti-campo {
  display: flex;
  align-items: center;
  gap: .45em;
  padding: .45em .65em;
  border: 1px solid #cdd5d1;
  border-radius: .55em;
  background: #fff;
  font-size: max(.84em, 10px);
  color: #1f2a24;
  white-space: nowrap;
  overflow: hidden;
}
.ti-campo .ti-ic { color: #7b8680 }
.ti-campo .ti-ic:last-child { margin-left: auto }
.ti-fixar__acoes { display: flex; align-items: center; gap: .45em }

/* toque sugerido no "Fixar": um anel que se abre 3 vezes (só sem "reduzir movimento") */
.ti-pulso { position: relative }
.ti-pulso::after {
  content: "";
  display: none;
  position: absolute;
  inset: -.1em;
  border-radius: inherit;
  box-shadow: 0 0 0 .2em var(--ti-lima);
  pointer-events: none;
}

/* ---------- T04 · painel com os 5 tipos de quadro ---------- */
.ti-grade--painel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "kpi bar piz" "lin lin tab";
}
.ti-area-kpi { grid-area: kpi }
.ti-area-bar { grid-area: bar }
.ti-area-piz { grid-area: piz }
.ti-area-lin { grid-area: lin }
.ti-area-tab { grid-area: tab }
.ti-tabela--guias .ti-tabela__linha { grid-template-columns: 4em minmax(0, 1fr) 8.6em }

/* ---------- T13 · console do AGRATECH Web ---------- */
.ti-web { background: var(--ti-claro) }
.ti-web__topo {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .5em 1em;
  background: #fff;
  border-bottom: 1px solid var(--ti-linha);
}
.ti-web__logo { flex: none; width: 5.6em; height: 2.2em; background: url("../img/logo-agratech.v1.webp") left center / contain no-repeat }
.ti-web__produto {
  padding: .15em .65em;
  border: 1px solid var(--ti-verde-100);
  border-radius: 999px;
  background: var(--ti-verde-50);
  color: var(--ti-verde-700);
  font-size: max(.72em, 10px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ti-web__busca {
  display: flex;
  align-items: center;
  gap: .45em;
  flex: 1;
  max-width: 24em;
  margin-left: auto;
  padding: .4em .7em;
  border: 1px solid var(--ti-linha-forte);
  border-radius: .6em;
  background: var(--ti-claro);
  color: var(--ti-suave);
  font-size: max(.76em, 10px);
  white-space: nowrap;
  overflow: hidden;
}
.ti-web__sino { color: var(--ti-texto) }
.ti-web__usuario {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: var(--ti-verde-700);
  color: #fff;
  font-size: max(.72em, 10px);
  font-weight: 700;
}
.ti-web__corpo { display: grid; grid-template-columns: 13.5em minmax(0, 1fr) }
.ti-web__menu { padding: .7em .5em; background: #fff; border-right: 1px solid var(--ti-linha); min-width: 0 }
.ti-web__grupo {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .45em .55em;
  font-size: max(.8em, 10px);
  font-weight: 650;
  color: var(--ti-verde-800);
  white-space: nowrap;
}
.ti-web__grupo .ti-ic:last-child { margin-left: auto; color: var(--ti-suave); width: 1em; height: 1em }
.ti-web__item {
  display: block;
  padding: .3em .55em .3em 2.25em;
  border-radius: .45em;
  font-size: max(.74em, 10px);
  color: var(--ti-texto);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ti-web__item--ativo { background: var(--ti-verde-50); color: var(--ti-verde-800); font-weight: 650; box-shadow: inset .22em 0 0 var(--ti-verde) }
.ti-web__principal { min-width: 0; padding: .85em 1.1em 1em }
.ti-trilha { display: flex; align-items: center; gap: .35em; margin-bottom: .3em; font-size: max(.74em, 10px); color: var(--ti-suave) }
.ti-trilha .ti-ic { width: 1em; height: 1em }
.ti-web__linha { display: grid; grid-template-columns: 14em minmax(0, 1fr); gap: .7em; margin-top: .75em }
.ti-balanca {
  display: flex;
  flex-direction: column;
  gap: .4em;
  padding: .85em .9em;
  border-radius: .8em;
  background: #17211b;
  color: #fff;
}
.ti-balanca__nome { display: flex; align-items: center; gap: .4em; font-size: max(.76em, 10px); color: #d3e3d6 }
.ti-balanca__peso { font-size: 2.1em; font-weight: 750; line-height: 1.05; color: #a6d46a; font-variant-numeric: tabular-nums; white-space: nowrap }
.ti-balanca__estado { display: flex; align-items: center; gap: .4em; font-size: max(.74em, 10px); color: #dcefdd }
.ti-balanca__det { margin-top: .2em; padding-top: .55em; border-top: 1px solid rgba(255, 255, 255, .14); font-size: max(.74em, 10px); color: #d3e3d6 }
.ti-balanca__det > span { display: block }
.ti-tabela--balanca .ti-tabela__linha { grid-template-columns: 4.4em minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.3fr) }
.ti-web__chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: .75em;
  padding: .3em .75em;
  border: 1px solid var(--ti-verde-100);
  border-radius: 999px;
  background: var(--ti-verde-50);
  color: var(--ti-verde-800);
  font-size: max(.76em, 10px);
}

/* ---------- T14 · Portal Agratech no celular ---------- */
.ti-celular {
  width: min(100%, 24em);
  padding: .65em;
  border-radius: 2.5em;
  background: #141b18;
  box-shadow: 0 1em 2.4em rgba(16, 24, 20, .25), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.ti-celular__tela {
  display: flex;
  flex-direction: column;
  min-height: 44em;
  overflow: hidden;
  border-radius: 1.95em;
  background: var(--ti-claro);
}
.ti-celular__status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4em;
  height: 2.4em;
  padding: 0 1.5em;
  background: var(--ti-verde-800);
  color: #fff;
}
.ti-celular__status::before {
  content: "";
  position: absolute;
  left: 50%;
  top: .55em;
  width: 6.5em;
  height: 1.3em;
  border-radius: 999px;
  background: #141b18;
  transform: translateX(-50%);
}
.ti-celular__status .ti-ic { width: 1em; height: 1em }
.ti-portal-topo { display: flex; align-items: center; gap: .6em; padding: .35em 1.1em 1.6em; background: var(--ti-verde-800); color: #fff }
.ti-portal-topo__marca {
  flex: none;
  width: 2.2em;
  height: 2.2em;
  border-radius: .65em;
  background: #fff url("../img/agra-folha.v1.webp") center / 64% auto no-repeat;
}
.ti-portal-topo__titulo { font-size: max(.95em, 10px); font-weight: 650; line-height: 1.2 }
.ti-portal-topo .ti-ic:last-child { margin-left: auto; width: 1.3em; height: 1.3em; color: #e8f0e9 }
.ti-portal-corpo { display: flex; flex-direction: column; gap: .7em; margin-top: -1em; padding: 0 .85em 1em }
.ti-estoque { padding: .85em .9em .9em; border-radius: 1em; background: #fff; box-shadow: 0 .2em .8em rgba(16, 24, 20, .1) }
.ti-estoque__ola { display: block; font-size: max(.9em, 10px); font-weight: 650; color: var(--ti-verde-800) }
.ti-estoque__sub { display: block; margin-bottom: .65em; font-size: max(.76em, 10px); color: var(--ti-suave) }
.ti-estoque__numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em }
.ti-estoque__valor { display: block; font-size: 1.5em; font-weight: 750; line-height: 1.05; color: var(--ti-tinta); font-variant-numeric: tabular-nums }
.ti-estoque__valor--disp { color: var(--ti-verde-700) }
.ti-estoque__rotulo { display: block; margin-top: .2em; font-size: max(.74em, 10px); color: var(--ti-suave) }
.ti-estoque__barra { display: flex; height: .6em; margin-top: .75em; overflow: hidden; border-radius: 999px; background: #e5e9e7 }
.ti-estoque__disp { width: 73.3%; background: var(--ti-verde) }
.ti-estoque__comp { width: 26.7%; background: #94a3b8 }
.ti-portal-secao { display: flex; align-items: baseline; justify-content: space-between; margin-top: .2em; padding: 0 .15em }
.ti-portal-secao > span:first-child { font-size: max(.86em, 10px); font-weight: 650; color: var(--ti-tinta) }
.ti-portal-secao > span:last-child { font-size: max(.76em, 10px); font-weight: 600; color: var(--ti-verde-700) }
.ti-lote {
  display: flex;
  align-items: center;
  gap: .65em;
  padding: .6em .7em;
  border: 1px solid var(--ti-linha);
  border-radius: .85em;
  background: #fff;
}
.ti-lote__ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: .65em;
  background: var(--ti-verde-50);
  color: var(--ti-verde-700);
}
.ti-lote__textos { min-width: 0 }
.ti-lote__nome { display: block; font-size: max(.84em, 10px); font-weight: 650; color: var(--ti-tinta) }
.ti-lote__det { display: block; font-size: max(.76em, 10px); color: var(--ti-suave); white-space: nowrap }
.ti-lote .ti-selo { margin-left: auto; font-size: max(.74em, 10px) }
.ti-movs { display: grid; overflow: hidden; border: 1px solid var(--ti-linha); border-radius: .85em; background: #fff }
.ti-mov { display: flex; align-items: center; gap: .65em; padding: .55em .7em }
.ti-mov + .ti-mov { border-top: 1px solid var(--ti-linha) }
.ti-mov__ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: #e3f2e0;
  color: var(--ti-verde-800);
}
.ti-mov__ic--saida { background: #fde7e5; color: #9f1d14 }
.ti-mov__ic .ti-ic { width: 1em; height: 1em }
.ti-nav-baixo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: auto;
  padding: .55em .3em 1em;
  border-top: 1px solid var(--ti-linha);
  background: #fff;
}
.ti-nav-baixo__item { display: flex; flex-direction: column; align-items: center; gap: .25em; font-size: max(.74em, 10px); color: var(--ti-suave) }
.ti-nav-baixo__item .ti-ic { width: 2em; height: 2em }
.ti-nav-baixo__item--ativo { color: var(--ti-verde-700); font-weight: 650 }

/* ---------- T15 · editor de mapa ---------- */
.ti-editor__barra {
  display: flex;
  align-items: center;
  gap: .65em;
  padding: .55em .9em;
  border-bottom: 1px solid var(--ti-linha);
  background: #fff;
  color: var(--ti-verde-700);
}
.ti-editor__barra .ti-ic { width: 1.35em; height: 1.35em }
.ti-editor__titulo { font-size: 1.05em; font-weight: 650; color: var(--ti-verde-800); white-space: nowrap }
.ti-editor__barra .ti-campo { margin-left: .6em; font-size: max(.78em, 10px) }
.ti-editor__barra .ti-campo .ti-ic, .ti-editor__barra .ti-botao .ti-ic { width: 1.1em; height: 1.1em }
.ti-editor__barra .ti-botao { margin-left: auto }
.ti-editor__corpo { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) 12.5em; background: var(--ti-claro) }
.ti-ferramentas { display: flex; flex-direction: column; gap: .3em; padding: .6em .4em; background: #fff; border-right: 1px solid var(--ti-linha) }
.ti-ferramenta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25em;
  padding: .5em .2em;
  border-radius: .55em;
  font-size: max(.66em, 10px);
  color: var(--ti-texto);
  text-align: center;
}
.ti-ferramenta .ti-ic { width: 2em; height: 2em }
.ti-ferramenta--ativa { background: var(--ti-verde-50); color: var(--ti-verde-800); font-weight: 650; box-shadow: inset 0 0 0 1px var(--ti-verde-100) }
.ti-desenho {
  min-width: 0;
  padding: .7em;
  background-color: #fbfcfb;
  background-image: radial-gradient(circle, #d3dad6 .09em, transparent .1em);
  background-size: 1.25em 1.25em;
}
.ti-g .ti-m-q { fill: #e6f3e8; stroke: #9fcaa6; stroke-width: 1 }
.ti-g .ti-m-q--sel { fill: #e2f1cf; stroke: #6f9f38 }
.ti-g .ti-m-sel { fill: none; stroke: #4d7c1d; stroke-width: 1.4; stroke-dasharray: 5 4 }
.ti-g .ti-m-alca { fill: #fff; stroke: #4d7c1d; stroke-width: 1.2 }
.ti-g .ti-m-eq { fill: #eef2f6; stroke: #94a3b8; stroke-width: 1 }
.ti-g .ti-m-corredor { fill: #eef1f0 }
.ti-g .ti-m-rot { font-size: 9.5px; font-weight: 700; fill: #1e5e2a }
.ti-g .ti-m-eqrot { font-size: 9px; font-weight: 600; fill: #334155 }
.ti-g .ti-m-cor { font-size: 9px; fill: #475569; letter-spacing: .12em }
.ti-g .ti-m-cursor { fill: #17211b; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round }
.ti-props { display: flex; flex-direction: column; gap: .6em; min-width: 0; padding: .8em; background: #fff; border-left: 1px solid var(--ti-linha) }
.ti-props__nome { display: flex; align-items: center; gap: .45em; font-size: max(.95em, 10px); font-weight: 700; color: var(--ti-verde-800) }
.ti-props__nome .ti-q { width: 1.1em; height: 1.1em; background: #e2f1cf; box-shadow: inset 0 0 0 1px #6f9f38 }
.ti-props .ti-rotulo { margin-bottom: .3em }
.ti-props .ti-campo { font-size: max(.78em, 10px) }
.ti-props .ti-botao { justify-content: center; margin-top: .2em }
.ti-editor__status {
  display: flex;
  flex-wrap: wrap;
  gap: .3em 1.1em;
  padding: .4em .9em;
  border-top: 1px solid var(--ti-linha);
  background: #fff;
  font-size: max(.74em, 10px);
  color: var(--ti-suave);
}
.ti-editor__status > span { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap }
.ti-editor__status .ti-ic { width: 1.1em; height: 1.1em; color: var(--ti-verde-700) }

/* ---------- gráficos do recorte estreito, em HTML (a letra acompanha a cena; no SVG ela encolhe com o desenho) ---------- */
/* barras horizontais: nome · barra · valor; a largura de cada barra vem de uma classe .ti-b-NN (sem style inline) */
.ti-barras {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55em .6em;
  font-size: max(.86em, 10px);
  line-height: 1.2;
  color: var(--ti-texto);
}
.ti-barras__nome { white-space: nowrap }
.ti-barras__trilho { display: block; height: 1em; overflow: hidden; border-radius: .25em; background: #eef2f6 }
.ti-barras__barra { display: block; height: 100%; border-radius: .25em; background: var(--ti-azul) }
.ti-barras__valor { min-width: 2.2em; font-weight: 650; color: #475569; text-align: right; font-variant-numeric: tabular-nums }
.ti-b-40 { width: 40% }
.ti-b-47 { width: 46.7% }
.ti-b-50 { width: 50% }
.ti-b-60 { width: 60% }
.ti-b-63 { width: 63.3% }
.ti-b-67 { width: 66.7% }
.ti-b-70 { width: 70% }
.ti-b-80 { width: 80% }
.ti-b-93 { width: 93.3% }

/* mapa do editor (T15) no recorte estreito: 4 alas de 8 quadras, corredor, moega e embegadora; a ALA 3 selecionada */
.ti-mapa-ed { display: grid; gap: .3em }
.ti-mapa-ed__ala {
  display: grid;
  grid-template-columns: 3.3em repeat(8, minmax(0, 1fr));
  gap: .25em;
  align-items: center;
  padding: .25em .3em;
  border: .1em solid transparent;
  border-radius: .35em;
}
.ti-mapa-ed__ala--sel { border-color: #4d7c1d; border-style: dashed; background: #f4faec }
.ti-mapa-ed__nome { font-size: max(.86em, 10px); font-weight: 700; color: var(--ti-verde-800); white-space: nowrap }
.ti-mapa-ed__q { display: block; height: 1.5em; border-radius: .2em; background: #e6f3e8; box-shadow: inset 0 0 0 1px #9fcaa6 }
.ti-mapa-ed__ala--sel .ti-mapa-ed__q { background: #e2f1cf; box-shadow: inset 0 0 0 1px #6f9f38 }
.ti-mapa-ed__corredor {
  padding: .3em;
  border-radius: .3em;
  background: #eef1f0;
  font-size: max(.86em, 10px);
  letter-spacing: .12em;
  color: #475569;
  text-align: center;
}
.ti-mapa-ed__eqs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .5em; margin-top: .4em }
.ti-mapa-ed__eq {
  padding: .65em .4em;
  border-radius: .4em;
  background: #eef2f6;
  box-shadow: inset 0 0 0 1px #94a3b8;
  font-size: max(.86em, 10px);
  font-weight: 600;
  color: #334155;
  text-align: center;
  white-space: nowrap;
}

/* ---------- adaptação ao espaço (largura do palco) ---------- */
/* o que é só do recorte estreito fica escondido a partir de 480 px */
@container (min-width: 480px) {
  .ti-so-estreito { display: none }
}

/* MÉDIA e ESTREITA (abaixo de 875 px) */
@container (max-width: 874px) {
  /* T01: menu só com ícones; o tablet e a AIA descem para uma faixa abaixo da janela (nada cobre os gráficos) */
  .ti-hero .ti-console { grid-template-columns: 3.7em minmax(0, 1fr) }
  .ti-hero .ti-menu__item > span,
  .ti-hero .ti-menu__sub,
  .ti-hero .ti-menu__usuario { display: none }
  .ti-hero .ti-menu__item { justify-content: center; padding: .6em 0; font-size: max(.9em, 10px) }
  .ti-hero .ti-menu__marca { margin: 0 .45em .6em }
  .ti-hero .ti-logo { height: 2.3em; background-image: url("../img/agra-folha.v1.webp"); background-size: auto 62% }
  .ti-hero { display: grid; grid-template-columns: 50% minmax(0, 1fr); align-items: center; column-gap: 3% }
  .ti-hero__janela { grid-column: 1 / -1; margin: 0 }
  .ti-hero__tablet { grid-column: 1; grid-row: 2; position: relative; left: auto; bottom: auto; width: auto; margin-top: -1.4em }
  .ti-hero__agra { grid-column: 2; grid-row: 2; position: relative; right: auto; bottom: auto; max-width: none; flex-direction: column-reverse; align-items: center; margin-top: 1em }
  /* o balão da AIA é a mensagem da tela: nunca menor que 12 px */
  .ti-hero__balao { margin-bottom: 0; border-bottom-right-radius: .9em; border-top-right-radius: .25em; font-size: max(1.05em, 12px) }
  .ti-hero__dica { font-size: max(.9em, 10px) }

  /* T04: duas colunas (resumo e barras; pizza e tabela; linha embaixo); os gráficos param de crescer numa altura
     (o desenho fica centrado), para a letra do SVG não passar da letra da tela */
  .ti-grade--painel { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "kpi bar" "piz tab" "lin lin" }
  .ti-grade--painel .ti-g { max-height: 10em }
  .ti-grade--painel .ti-area-lin .ti-g { max-height: 11em }
  /* tabela de guias mais justa: com a letra mínima de 10 px, "Depositante A" e o selo cabem sem corte */
  .ti-tabela--guias .ti-tabela__linha { grid-template-columns: 3.2em minmax(0, 1fr) 8.8em }
  .ti-tabela--guias .ti-tabela__c { padding-inline: .3em }

  /* T13: sem a busca; a balança fica em cima da tabela */
  .ti-web__busca { display: none }
  .ti-web__sino { margin-left: auto }
  .ti-web__linha { grid-template-columns: minmax(0, 1fr) }
  .ti-balanca { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .4em 1.6em }
  .ti-balanca__nome { grid-column: 1 / -1 }
  .ti-balanca__det { grid-column: 2; grid-row: 2 / 4; margin: 0; padding: .2em 0 .2em 1.2em; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .14) }

  /* T15: ferramentas só com ícones; o painel de propriedades sai */
  .ti-editor__corpo { grid-template-columns: 3.8em minmax(0, 1fr) }
  .ti-props { display: none }
  .ti-ferramenta > span { display: none }
  .ti-ferramenta .ti-ic { width: 1.6em; height: 1.6em }
  .ti-ferramenta { font-size: max(.8em, 10px); padding: .55em .2em }
}
@container (max-width: 640px) {
  /* T01: o tablet ganha letra maior e a altura acompanha o conteúdo (a proporção 16:10 cortaria a legenda) */
  .ti-hero__tablet { font-size: 1.2em }
  .ti-hero__tablet .ti-tablet__tela { aspect-ratio: auto }

  .ti-web__corpo { grid-template-columns: minmax(0, 1fr) }
  .ti-web__menu { display: none }

  /* T04: os gráficos encolhem (até ~93%); a letra do SVG cresce para dar ≥ 10 px na tela */
  .ti-grade--painel .ti-g text { font-size: 10.8px }
}
@container (max-width: 560px) {
  /* T01: os gráficos ficam com menos de 20em (até ~83%); a letra do SVG cresce para dar ≥ 10 px na tela */
  .ti-hero .ti-g text { font-size: 12.2px }
  /* T15: o desenho em SVG ficaria com letra de 7 px; entra o mesmo mapa em HTML do recorte estreito */
  .ti-desenho > .ti-g { display: none }
  .ti-desenho > .ti-mapa-ed.ti-so-estreito { display: grid }
}
@container (max-width: 520px) {
  .ti-console--compacto { grid-template-columns: minmax(0, 1fr) }
  .ti-console--compacto .ti-menu { display: none }
  /* T02/T03: o gráfico da conversa fica com ~99% do tamanho */
  .ti-cena--estreita .ti-g text { font-size: 10.4px }
}

/* ESTREITA (abaixo de 480 px): só o recorte de cada tela, uma coluna, sem menu, letra ≥ 10 px */
@container (max-width: 479px) {
  .ti-cena, .ti-cena--estreita { font-size: clamp(12px, 3.6cqw, 14px); padding: .6em }
  .ti-cena--celular { font-size: clamp(12px, 4.2cqw, 14px); padding: .4em }
  .ti-cena .ti-oculta-estreito { display: none }

  /* letra mínima do recorte: .86em da cena (12 px × .86 ≈ 10 px) */
  .ti-quadro__titulo, .ti-quadro__periodo, .ti-quadro__rodape, .ti-nota, .ti-mini-botao, .ti-botao, .ti-aba, .ti-kpi__rotulo,
  .ti-assistente__estado, .ti-aviso, .ti-rotulo, .ti-dica, .ti-fixar__nota, .ti-segmento__opcao, .ti-campo,
  .ti-trilha, .ti-web__produto, .ti-web__usuario, .ti-web__chip, .ti-balanca__nome, .ti-balanca__estado, .ti-balanca__det,
  .ti-editor__status, .ti-estoque__sub, .ti-estoque__rotulo, .ti-lote__det, .ti-nav-baixo__item,
  .ti-portal-secao > span:last-child { font-size: .86em }
  .ti-lote .ti-selo { font-size: .84em }

  .ti-principal, .ti-web__principal { padding: .8em .7em .9em }
  .ti-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .ti-quadro__corpo { padding: .7em .7em .8em }

  /* T01: só o console (sem o tablet e sem o balão): indicadores e barras por operador */
  .ti-hero { display: block }
  .ti-hero__agra, .ti-hero__tablet, .ti-hero .ti-menu { display: none }
  .ti-hero .ti-console { grid-template-columns: minmax(0, 1fr) }
  .ti-grade--hero { grid-template-columns: minmax(0, 1fr) }

  /* T02 e T03: conversa curta; no cabeçalho do assistente ficam só os botões de abrir e minimizar */
  .ti-assistente__botoes .ti-ic:nth-child(-n+2) { display: none }
  .ti-conversa { padding: .75em .6em .85em }
  .ti-balao { max-width: 92% }
  .ti-pergunta { padding: .6em .6em .3em }
  .ti-pergunta__campo { white-space: normal }
  .ti-fixar { padding: .7em .6em .8em }

  /* T04: o resumo e as barras por empilhadeira */
  .ti-grade--painel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kpi" "bar" }

  /* T13: indicadores e a balança (em coluna, como no computador) */
  .ti-web__topo { padding: .5em .7em }
  .ti-balanca { display: flex }
  .ti-balanca__det { margin-top: .2em; padding: .55em 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14) }

  /* T14: o celular ocupa a largura toda */
  .ti-celular { width: 100%; padding: .5em; border-radius: 2em }
  .ti-celular__tela { min-height: 0; border-radius: 1.6em }
  .ti-portal-topo { padding-inline: .9em }
  .ti-portal-corpo { padding: 0 .6em .9em }
  .ti-estoque { padding: .75em .7em .8em }
  .ti-estoque__numeros { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: .3em }

  /* T15: o mapa, o botão de salvar (só o ícone) e o aviso dos tablets */
  .ti-editor__barra .ti-campo { display: none }
  .ti-editor__barra .ti-botao > span { display: none }
  .ti-editor__corpo { grid-template-columns: minmax(0, 1fr) }
  .ti-ferramentas { display: none }
  .ti-desenho { padding: .6em }
  .ti-editor__status { padding: .5em .7em }
  .ti-editor__status > span { white-space: normal }
}

/* ---------- movimento (só sem "reduzir movimento"; no máximo 3 ciclos) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ti-pulso::after { display: block; animation: ti-anel 1.6s ease-out .8s 3 both }
  .ti-balanca__estado .ti-ponto { animation: ti-piscar 1.4s ease-in-out 3 }
  .ti-g .ti-m-sel { animation: ti-formigas 1.2s linear 3 }
}
@keyframes ti-anel { 0% { opacity: .9; transform: scale(1) } 100% { opacity: 0; transform: scale(1.18) } }
@keyframes ti-piscar { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes ti-formigas { to { stroke-dashoffset: -18 } }
@media (prefers-reduced-motion: reduce) {
  .ti-cena *, .ti-cena *::after { animation: none !important; transition: none !important }
}
