/* ITEM-CARD-AGENTS: agent card extras on top of asset-card.css + item-card.css (templates/agent_card.html) */
.it-agent .ac-sec > .section, .it-agent .ac-sec > div > .section, .it-agent .it-more .section { margin-top: 0; margin-bottom: 0; }
.it-agent .ac-sec .section-head { margin-top: 0; }
.it-agent-old > .card { margin: 0; }
.it-hero-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.it-hero-links a { color: var(--link); padding: 10px 0; margin: -10px 0; }
.it-bars { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.it-bars figcaption { display: flex; flex-direction: column; gap: 2px; }
.it-bars figcaption b { font-size: 16px; line-height: 1.35; text-wrap: balance; }
.it-bars figcaption span { color: var(--meta); font-size: 13px; }
.it-bars ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.it-bar { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr) 4.2em; gap: 10px; align-items: center; font-size: 14px; }
.it-bar-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-bar-l .ac-muted { font-size: 12.5px; }
.it-bar-t { height: 12px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.it-bar-t i { display: block; height: 100%; border-radius: 4px; background: var(--border-strong); }
.it-bar.is-me .it-bar-t i { background: var(--ac-action); }
.it-bar-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.it-bar:not(.is-me) .it-bar-v { color: var(--ink-2); font-weight: 500; }
@media (max-width: 600px) {
  .it-bar { grid-template-columns: minmax(0, 1fr) 4.2em; row-gap: 4px; }
  .it-bar-l { grid-column: 1 / -1; white-space: normal; }
  .it-bar-t { grid-column: 1; }
}
.it-agent .it-more summary .ac-chev { display: inline-flex; }
.it-agent .it-more[open] summary .ac-chev { transform: rotate(180deg); }
.ac-side table.facts { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; table-layout: fixed; }
.ac-side table.facts th { text-align: left; color: var(--meta); font-weight: 500; padding: 7px 10px 7px 0; vertical-align: top; width: 42%; }
.ac-side table.facts td { padding: 7px 0; overflow-wrap: anywhere; color: var(--ink); }
.ac-side table.facts tr + tr th, .ac-side table.facts tr + tr td { border-top: 1px solid var(--border); }
.it-kpis { margin: 0 0 4px; }
.it-facets { align-items: center; }
/* phones: the old blocks inside the card get 44 px tap targets without changing the layout (padding + negative margin) */
@media (max-width: 600px) {
  .it-agent .range button { min-height: 44px; padding: 0 12px; }
  .it-agent .chart-foot .linkish, .it-agent .gs-what, .it-agent .release .tag { display: inline-block; padding: 13px 0; margin: -13px 0; }
  .it-agent .faq summary, .it-agent .rel-more summary { min-height: 44px; display: flex; align-items: center; }
  .it-agent .btn { min-height: 44px; }
  .it-agent .star-input button { min-width: 44px; min-height: 44px; }
  .it-agent #ac-start table.facts th[style*="width"] { width: auto !important; white-space: nowrap; }
  .it-agent .ac-sec table.facts td code { overflow-wrap: anywhere; }
}
