/* LLM Cost Calculator — layers on top of /api-key-tester/public/style.css (loaded first).
   Reuses that design system's CSS variables (--primary-*, --gray-*, --emerald-*, etc.). */

.lcc-card { padding: 4px 2px; }
.lcc-card h2 { margin: 0 0 6px; color: var(--gray-900); font-size: 1.35rem; }
.lcc-muted { color: var(--gray-500); }
.lcc-tiny { font-size: 0.82rem; }

/* Token counter */
.lcc-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    color: var(--gray-900);
    background: var(--gray-50);
}
.lcc-textarea:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px var(--primary-100); background: var(--white); }
.lcc-tc-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; }
.lcc-tc-stat { font-size: 1.05rem; color: var(--gray-700); }
.lcc-tc-count { font-size: 1.7rem; font-weight: 700; color: var(--primary-700); }
.lcc-tc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lcc-badge-exact { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.lcc-badge-exact.is-exact { background: #d1fae5; color: var(--emerald-600); }
.lcc-badge-exact.is-estimate { background: #fef3c7; color: var(--amber-600); }

/* Inputs */
.lcc-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 4px 0 8px; }
.lcc-inputs label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.lcc-inputs input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--gray-900);
}
.lcc-inputs input:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px var(--primary-100); }
.lcc-adv { color: var(--gray-500); }

/* Tables */
.lcc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.lcc-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
.lcc-table th, .lcc-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.lcc-table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gray-500); background: var(--gray-50); position: sticky; top: 0; }
.lcc-table tbody tr:hover { background: var(--primary-50); }
.lcc-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lcc-table a { color: var(--primary-700); text-decoration: none; }
.lcc-table a:hover { text-decoration: underline; }
.lcc-best { background: #ecfdf5 !important; }
.lcc-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; background: var(--emerald-500); color: #fff; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.lcc-note { color: var(--primary-500); cursor: help; margin-left: 4px; font-size: 0.8rem; }

@media (max-width: 640px) {
    .lcc-inputs { grid-template-columns: repeat(2, 1fr); }
    .lcc-hide-sm { display: none; }
}
