@import url('/assets/tools/aurora-ui.css');

/* ── Contador de tokens ────────────────────────────────── */

#tk .ft-textarea { min-height:280px; font-size:14.5px; line-height:1.65; }

#tk #tk-busca::placeholder { color:#6B7A8F; }
#tk #tk-busca:focus, #tk #tk-modelo:focus {
  border-color:rgba(96,165,250,.55);
  box-shadow:0 0 0 4px rgba(96,165,250,.12);
}
#tk #tk-modelo option { background:#0C1420; color:#E8EDF4; }
#tk #tk-modelo {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%238FA0B5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Régua do cache */
#tk input[type="range"] {
  -webkit-appearance:none; appearance:none; height:6px; border-radius:99px; background:rgba(37,99,235,.12);
  outline:none; cursor:pointer; margin:6px 0 2px;
}
#tk input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance:none; appearance:none; width:18px; height:18px; border-radius:50%;
  background:linear-gradient(180deg,#3B77F0,#2058D8); border:2px solid #fff; cursor:pointer;
  box-shadow:0 2px 8px rgba(37,99,235,.45);
}
#tk input[type="range"]::-moz-range-thumb {
  width:16px; height:16px; border-radius:50%; border:2px solid #fff;
  background:linear-gradient(180deg,#3B77F0,#2058D8); cursor:pointer;
  box-shadow:0 2px 8px rgba(37,99,235,.45);
}

/* Precisão da contagem */
#tk .tk-tag {
  font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase;
  border:1px solid var(--ft-line-s); border-radius:99px; padding:3px 9px; color:var(--stone); white-space:nowrap;
}
#tk .tk-tag-exata { border-color:rgba(16,163,74,.35); color:var(--green); background:rgba(16,163,74,.06); }
#tk .tk-tag-aprox { border-color:rgba(245,158,11,.35); color:#B45309; background:rgba(245,158,11,.08); }

/* Tabela de comparação */
#tk .tk-nome { display:flex; align-items:center; gap:8px; min-width:0; }
#tk .tk-nome b { font-weight:600; font-size:13.5px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:230px; }
#tk .tk-nome small { display:block; font-family:var(--font-mono); font-size:10.5px; color:var(--stone-light); }
#tk .tk-rm {
  border:0; background:none; cursor:pointer; color:var(--stone-light); font-size:16px; line-height:1;
  padding:2px 4px; border-radius:6px; flex-shrink:0;
}
#tk .tk-rm:hover { color:var(--red); background:rgba(239,68,68,.08); }
#tk .tk-melhor td { background:rgba(16,163,74,.05); }
#tk .tk-melhor td:first-child { box-shadow:inset 2px 0 0 var(--green); }

/* Números não podem quebrar em duas linhas */
#tk .ft-table th, #tk .ft-table td.num { white-space:nowrap; }
#tk .ft-table td.num { font-size:13px; }
#tk .ft-table th:first-child, #tk .ft-table td:first-child { min-width:230px; }

/* Escolha de modelo para comparar */
#tk .tk-picker { display:flex; gap:8px; padding:12px; background:var(--paper-warm); border-top:1px solid var(--ft-line); }
#tk .tk-picker input, #tk .tk-picker select { flex:1; min-width:0; }
