/* iatrust-v2 — outil LLM local (P0–P2) */
.it-llm-seo-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 52rem;
}
.it-llm-seo-lead a { color: var(--accent); }
.it-llm-app {
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.it-llm-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.it-llm-presets-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  margin-right: 0.25rem;
}
.it-llm-preset {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.it-llm-preset:hover,
.it-llm-preset:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.it-llm-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(12px);
}
.it-llm-zone-title {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.it-llm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}
.it-llm-grid-hw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.it-llm-field-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .it-llm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .it-llm-grid-hw { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .it-llm-grid-hw .it-llm-field-wide { grid-column: span 2; }
}
.it-llm-field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.it-llm-field select,
.it-llm-field input {
  width: 100%;
  background: var(--card2);
  border: 1px solid var(--border2);
  color: var(--text);
  border-radius: var(--r-btn);
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.92rem;
}
.it-llm-field select:focus,
.it-llm-field input:focus {
  outline: none;
  border-color: var(--accent);
}
.it-llm-combo { position: relative; }
.it-llm-gpu-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.it-llm-gpu-list li {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
}
.it-llm-gpu-list li.on,
.it-llm-gpu-list li:hover {
  background: var(--row-hover);
  color: var(--accent);
}
.it-llm-gpu-empty { color: var(--muted); cursor: default; }
.it-llm-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted2);
}
.it-llm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 0.9rem;
}
.it-llm-chk {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}
.it-llm-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.it-llm-status.is-err { color: #f87171; }
.it-llm-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--r-card);
}
.it-llm-summary {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.it-llm-summary strong { color: var(--text); }
.it-llm-meta { margin-bottom: 0.35rem; }
.it-llm-nofit-hint {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted2);
}
.it-llm-bucket {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
}
.it-llm-bucket h3 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.it-llm-bucket h3 span { font-weight: 500; opacity: 0.7; }
.it-llm-bucket.fits {
  background: rgba(74, 222, 128, 0.07);
  border-color: rgba(74, 222, 128, 0.28);
}
.it-llm-bucket.fits h3 { color: var(--green); }
.it-llm-bucket.tight {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
}
.it-llm-bucket.tight h3 { color: #fbbf24; }
.it-llm-bucket.no-fit {
  background: rgba(248, 113, 113, 0.06);
  border-color: rgba(248, 113, 113, 0.25);
}
.it-llm-bucket.no-fit h3 { color: #f87171; }
.it-llm-bucket.reco-wrap {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.3);
}
.it-llm-bucket.reco-wrap h3 { color: var(--accent); }
[data-theme="light"] .it-llm-bucket.reco-wrap {
  background: rgba(217, 85, 47, 0.08);
  border-color: rgba(217, 85, 47, 0.28);
}
[data-theme="light"] .it-llm-bucket.reco-wrap h3 { color: #D9552F; }
.it-llm-bucket ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.it-llm-card {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}
.it-llm-card.is-reco { border: 1px solid rgba(34, 211, 238, 0.35); }
[data-theme="light"] .it-llm-card { background: rgba(41, 41, 64, 0.04); }
[data-theme="light"] .it-llm-card.is-reco { border-color: rgba(217, 85, 47, 0.35); }
.it-llm-card-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.it-llm-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  align-items: center;
}
.it-llm-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
}
.it-llm-badge.reco {
  background: var(--grad);
  color: #0a1120;
}
[data-theme="light"] .it-llm-badge.reco { color: #fff; }
.it-llm-badge.quant {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
}
[data-theme="light"] .it-llm-badge.quant {
  background: rgba(217, 85, 47, 0.1);
  color: #D9552F;
}
.it-llm-badge.params {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.it-llm-badge.quality.tier-excellent { background: rgba(76, 175, 80, 0.15); color: #66bb6a; }
.it-llm-badge.quality.tier-great { background: rgba(33, 150, 243, 0.15); color: #42a5f5; }
.it-llm-badge.quality.tier-good { background: rgba(156, 39, 176, 0.15); color: #ab47bc; }
.it-llm-badge.quality.tier-fair { background: rgba(255, 167, 38, 0.15); color: #ffa726; }
.it-llm-badge.quality.tier-basic,
.it-llm-badge.quality.tier-na { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.it-llm-feat-vision { background: rgba(0, 188, 212, 0.15); color: #4dd0e1; }
.it-llm-feat-reasoning { background: rgba(233, 30, 99, 0.15); color: #f06292; }
.it-llm-feat-tool_use { background: rgba(255, 152, 0, 0.15); color: #ffb74d; }
.it-llm-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8rem;
}
.it-llm-score .l {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted2);
  letter-spacing: 0.03em;
}
.it-llm-score .v { font-weight: 700; }
.it-llm-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  align-items: center;
}
.it-llm-card-links a { color: var(--accent); }
.it-llm-tip { color: var(--muted2); }
.it-llm-variants {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
[data-theme="light"] .it-llm-variants { border-top-color: rgba(41, 41, 64, 0.08); }
.it-llm-variant {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  font-size: 0.84rem;
}
.it-llm-vstats {
  display: flex;
  gap: 0.9rem;
  margin-left: auto;
}
.it-llm-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}
.it-llm-stat .l {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted2);
}
.it-llm-stat .v { font-weight: 600; color: var(--accent); }
.it-llm-stat .v.speed { color: var(--green); }
.it-llm-need { color: var(--muted); font-size: 0.82rem; margin-left: auto; }
.it-llm-note {
  width: 100%;
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}
.it-llm-faq {
  margin: 2.5rem 0 1rem;
  display: grid;
  gap: 0.85rem;
}
.it-llm-faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.it-llm-faq summary {
  cursor: pointer;
  font-weight: 600;
}
.it-llm-faq p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.it-llm-credits {
  margin: 1.5rem 0 2rem;
  font-size: 0.8rem;
  color: var(--muted2);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .it-llm-grid,
  .it-llm-grid-hw { grid-template-columns: 1fr; }
  .it-llm-grid-hw .it-llm-field-wide { grid-column: auto; }
  .it-llm-vstats { margin-left: 0; width: 100%; justify-content: flex-start; }
  .it-llm-stat { align-items: flex-start; }
  .it-llm-score { align-items: flex-start; }
}
