/*
 * Agents & MCP page (/agents/). Owner: page-agents (UX pass WP-D, Sep 27: 9 sections became 6).
 * Every class is prefixed "ag-". Tokens come from site.css; no raw brand hex here.
 */

/* Shared bits --------------------------------------------------------------------------------- */
.ag-file-meta { font-weight: 400; opacity: .9; margin-left: 5px; }
/* Tab frames: panels are grids, so hidden panels in the shared .tab-stack-md keep the same layout (--panel-display) */
.ag-frame {
  --panel-display: grid;
  min-width: 0; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-frame);
  background: var(--surface); box-shadow: var(--highlight), var(--shadow);
}

/* Hero ---------------------------------------------------------------------------------------- */
/* S3 hero rhythm: eyebrow to H1 14, H1 to lead 16, lead to actions 24 to 32, actions to note 12 */
.ag-hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.ag-hero-copy > * + * { margin-top: 16px; }
.ag-hero-copy > .eyebrow + h1 { margin-top: 14px; }
.ag-hero-copy h1 { max-width: 20ch; }
.ag-hero-copy .lead { max-width: 56ch; }
.ag-hero-copy .actions { margin-top: clamp(24px, 3vw, 32px); }
.ag-hero-copy .actions + .hero-note { margin-top: 12px; }
@media (min-width: 1024px) {
  .ag-hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: 56px; }
}
@media (min-width: 1440px) { .ag-hero-grid { gap: 72px; } }

/* Agent session visual */
.ag-session { margin: 0; min-width: 0; width: 100%; max-width: 620px; justify-self: start; }
@media (min-width: 1024px) { .ag-session { justify-self: end; } }
.ag-session-frame {
  border: 1px solid var(--line); border-radius: var(--r-frame); overflow: hidden;
  background: var(--surface); box-shadow: var(--highlight), var(--shadow-lg);
}
.ag-session-bar {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line-soft); background: var(--bg-2); font-size: 12.5px; color: var(--muted);
}
.ag-dots { display: inline-flex; gap: 6px; }
.ag-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.ag-session-title { font-weight: 500; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 399px) { .ag-session-title { display: none; } }
.ag-conn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  font: 500 12px/1 var(--mono); color: var(--ink-2); white-space: nowrap;
}
.ag-conn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.ag-session-body { display: grid; gap: 14px; padding: clamp(16px, 2.4vw, 24px); }
.ag-user {
  justify-self: end; max-width: 88%; padding: 11px 15px; border-radius: 14px 14px 4px 14px;
  background: var(--card-2); border: 1px solid var(--line-soft); color: var(--ink); font-size: 15px; line-height: 1.5;
}

.ag-calls { border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
:root[data-theme="light"] .ag-calls { background: var(--surface); border-color: var(--line); }
.ag-calls-head {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line-soft);
  font: 500 12px/1.3 var(--mono); color: var(--ink-2);
}
.ag-calls-head .icon { color: var(--accent); }
.ag-calls-count { margin-left: auto; font-family: var(--font); color: var(--muted); font-size: 12px; }
.ag-call-list { display: grid; padding: 6px 0; }
.ag-call {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center;
  padding: 6px 14px; font-size: 13px;
}
.ag-session .ag-call-list .ag-call code { font: 500 12.5px/1.4 var(--mono); color: var(--ink); background: none; border: 0; padding: 0; border-radius: 0; overflow-wrap: anywhere; }
.ag-call-out { grid-column: 2; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
@media (max-width: 479px) { .ag-call-out { display: none; } }
/* 320 to 359: keep the longest tool name on one line and the recommendation header on one row */
@media (max-width: 359px) {
  .ag-session-body { padding-inline: 12px; }
  .ag-call { padding-inline: 10px; column-gap: 8px; }
  .ag-session .ag-call-list .ag-call code { font-size: 12px; }
  .ag-rec-rank { display: none; }
}
@media (min-width: 480px) {
  .ag-call { grid-template-columns: 16px minmax(0, auto) minmax(0, 1fr); }
  .ag-call-out { grid-column: auto; text-align: right; }
}
.ag-call-state { position: relative; display: grid; place-items: center; width: 16px; height: 16px; }
.ag-check { color: var(--good); width: 14px; height: 14px; }
.ag-spin { display: none; }

.ag-reply { display: grid; gap: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.ag-reply strong { color: var(--ink); font-weight: 600; }
.ag-rec { padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.ag-rec-top { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.ag-rec-cat { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--accent-line); color: var(--accent-text); font-weight: 500; }
.ag-rec-rank { margin-left: auto; }
.ag-rec-title { margin-top: 8px; color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.ag-rec-step { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ag-rec-step .icon { margin-top: 3px; color: var(--accent); }
.ag-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-suggest span {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500;
}
.ag-suggest span:first-child { border-color: var(--accent-line); color: var(--accent-text); }
/* Phones: a shorter session (the lines that repeat the recommendation stay on bigger screens) */
@media (max-width: 767px) {
  .ag-reply-extra, .ag-rec-step { display: none; }
  .ag-suggest { display: none; }
  .ag-session-body { gap: 10px; }
}

/* Session animation. agents.js sets data-play="wait" (only when it can animate), then "run" once the card is in view. */
.ag-session[data-play="wait"] .ag-anim { opacity: 0; }
.ag-session[data-play="run"] .ag-anim { animation: ag-in .5s var(--ease) both; animation-delay: var(--d, 0s); }
.ag-d0 { --d: .1s; } .ag-d1 { --d: .5s; } .ag-d2 { --d: 1.1s; } .ag-d3 { --d: 1.7s; }
.ag-d4 { --d: 2.6s; } .ag-d5 { --d: 3.1s; } .ag-d6 { --d: 3.6s; } .ag-d7 { --d: 4.1s; } .ag-d8 { --d: 4.5s; }
.ag-done1 { --done: 1.1s; } .ag-done2 { --done: 1.7s; } .ag-done3 { --done: 2.4s; }
.ag-session[data-play="run"] .ag-spin {
  display: block; position: absolute; inset: 1px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); border-top-color: var(--accent);
  animation: ag-rot .8s linear infinite, ag-out .15s linear both; animation-delay: 0s, var(--done);
}
.ag-session[data-play="run"] .ag-check { animation: ag-pop .3s var(--ease) both; animation-delay: var(--done); }
.ag-session[data-play="wait"] .ag-check { opacity: 0; }
@keyframes ag-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
@keyframes ag-rot { to { transform: rotate(360deg); } }
@keyframes ag-out { to { opacity: 0; visibility: hidden; } }
@keyframes ag-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ag-session .ag-anim, .ag-session .ag-check { opacity: 1 !important; animation: none !important; }
  .ag-session .ag-spin { display: none !important; }
}

/* Segmented controls (tools and automate) ------------------------------------------------------ */
.ag-seg .tab-list { margin-bottom: 16px; }
.ag-count {
  padding: 2px 5px; border-radius: var(--r-pill); background: var(--card-2);
  font: 500 12px/1 var(--mono); color: var(--muted);
}
.ag-seg .tab[aria-selected="true"] .ag-count { background: var(--accent-soft); color: var(--accent-text); }
@media (max-width: 479px) {
  .ag-count { display: none; }
  /* Longer labels ("Agent skills") take the room they need instead of wrapping onto two lines */
  .ag-seg .tab-list-fill .tab { flex: 1 1 auto; white-space: nowrap; padding-inline: 10px; }
}

/* Tools ---------------------------------------------------------------------------------------
   Each tab is one short exchange: you ask, the tools it calls, a trimmed reply (fictional data).
   Phones and tablets read it top to bottom; from 1024 the ask and reply sit left, the tools right. */
.ag-step { display: grid; gap: 14px; align-content: start; }
.ag-ask {
  justify-self: end; max-width: 88%; padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  background: var(--card-2); border: 1px solid var(--line-soft); color: var(--ink); font-size: 15px; line-height: 1.5;
}
.ag-calls-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.ag-tool-list { display: grid; align-content: start; }
.ag-tool-list > li { display: grid; align-content: start; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.ag-tool-list > li:first-child { border-top: 0; padding-top: 0; }
.ag-tool-list code { justify-self: start; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.ag-tool-list p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
/* From 768 the six read tools sit in two columns (three rows); one or two tools stay in one column */
@media (min-width: 768px) {
  .ag-tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .ag-tool-list > li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
  .ag-tool-list.ag-tool-list-1 { grid-template-columns: minmax(0, 1fr); }
  .ag-tool-list.ag-tool-list-1 > li:nth-child(2) { border-top: 1px solid var(--line-soft); padding-top: 10px; }
}
/* 1024 to 1199 the tools column is narrow: keep get_geo_latest_prompt_details on one line */
@media (min-width: 1024px) and (max-width: 1199px) {
  .ag-tool-list { column-gap: 24px; }
  .ag-tool-list code { font-size: 12px; }
}
.ag-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ag-note .icon { flex: none; margin-top: 2px; color: var(--accent); }
.ag-step-text > p { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
/* Inline, so the label wraps with its arrow on narrow phones */
.ag-fix-link .btn-link { display: inline; line-height: 1.5; }
.ag-fix-link .btn-link .icon { margin-left: 6px; vertical-align: -3px; }

/* The trimmed reply and its small result card */
.ag-answer { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ag-answer > p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ag-answer strong { color: var(--ink); font-weight: 600; }
.ag-mini { border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--bg); font-size: 14px; }
.ag-mini-name { display: grid; gap: 1px; min-width: 0; margin-right: auto; color: var(--ink); font-weight: 500; line-height: 1.4; }
.ag-mini-name small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.ag-monitors li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; }
.ag-monitors li + li { border-top: 1px solid var(--line-soft); }
.ag-score {
  display: grid; place-items: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.ag-run { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.ag-run::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--caution); box-shadow: 0 0 0 3px color-mix(in srgb, var(--caution) 20%, transparent); }
.ag-draft { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ag-draft .icon-tile { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.ag-draft .icon-tile .icon { width: 18px; height: 18px; }
.ag-draft .badge { flex: none; }
.ag-confirm { display: grid; gap: 10px; padding: 12px 14px; }
.ag-confirm p { font-size: 14px; line-height: 1.5; color: var(--ink); }
.ag-confirm code { font-size: 12.5px; overflow-wrap: anywhere; }
.ag-confirm-btns { display: flex; gap: 8px; }
.ag-confirm-btns span {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 500;
}
.ag-confirm-btns span:first-child { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.ag-tools-cap { margin-top: 12px; }
/* Without JS every tab panel shows: a hairline between them keeps the exchanges apart */
html:not(.js) :is(.ag-step, .ag-auto-panel) + :is(.ag-step, .ag-auto-panel) { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
/* Below 1024 the exchange wrapper steps aside, so the panel reads: ask, tools, note, reply */
.ag-exchange { display: contents; }
.ag-ask { order: 1; }
.ag-calls-col { order: 2; }
.ag-exchange > .ag-note { order: 3; }
.ag-answer { order: 4; }
/* The Fix tab shows the recommendation it drafts from (the hero's card, without the step line) */
.ag-step-text .ag-rec-top { font-size: 12px; }
/* From 1024: the ask and reply on the left, the tools on the right, each centred in the frame */
@media (min-width: 1024px) {
  .ag-step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-content: center; align-items: center; column-gap: 48px; }
  .ag-exchange { display: grid; gap: 14px; align-content: center; min-width: 0; }
  .ag-exchange > * { order: 0; }
  .ag-exchange > .ag-note { margin-top: 4px; }
  .ag-ask { justify-self: start; max-width: 100%; }
  .ag-frame { padding: 28px; }
}

/* Connect ------------------------------------------------------------------------------------- */
.ag-connect { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.ag-connect-head { margin-bottom: 16px; }
@media (min-width: 1024px) {
  .ag-connect { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}
@media (min-width: 1024px) and (min-height: 820px) {
  .ag-connect-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
.ag-needs-list { display: grid; gap: 8px; }
.ag-needs-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ag-needs-list strong { color: var(--ink); font-weight: 600; }
.ag-url {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px;
  margin-top: 12px; padding: 10px 6px 10px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--code-bg);
}
.ag-url-label { grid-column: 1; font-size: 12px; color: var(--muted); }
.ag-url-value { grid-column: 1 / -1; grid-row: 2; font-size: 13px; color: var(--ink); background: none !important; border: 0 !important; padding: 0 !important; overflow-wrap: break-word; }
@media (max-width: 419px) { .ag-url-value { font-size: 12px; } }
.ag-url .copy-btn { grid-column: 2; grid-row: 1; margin-block: -6px; }
@media (min-width: 1024px) { .ag-url-value { grid-column: 1; } .ag-url .copy-btn { grid-row: 1 / span 2; margin-block: 0; } }

.ag-tabs .tab-list { margin-bottom: 14px; }
@media (max-width: 399px) { .ag-tabs .tab { padding-inline: 11px; } }
@media (max-width: 359px) { .ag-tabs .tab { padding-inline: 7px; font-size: 14px; } }
/* The server URL in the Claude Code command breaks inside itself on narrow phones, never after its indent */
.ag-break { word-break: break-all; }
.ag-panel > * + * { margin-top: 12px; }
.ag-panel > p { color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 68ch; }
.ag-panel-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px !important; color: var(--muted) !important; }
.ag-panel-check .icon { margin-top: 3px; color: var(--good); }
.ag-panel-info .icon { color: var(--note); }
.ag-more > summary { font-size: 14.5px; }
.ag-more > summary code { font-size: .9em; }
.ag-more[open] > .code-block { margin-top: 6px; }
/* Long configs are clamped on phones; agents.js adds the class and a "Show all N lines" button. Copy still copies everything. */
.ag-code-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--accent-text); font-size: 14.5px; font-weight: 500;
}
.ag-code-toggle::after {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--m-chevron-down) center / contain no-repeat; mask: var(--m-chevron-down) center / contain no-repeat;
  transition: transform var(--t) var(--ease);
}
.ag-code-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.ag-panel > .ag-code-toggle, .ag-more .ag-code-toggle { margin-top: 2px; }
@media (hover: hover) { .ag-code-toggle:hover { color: var(--accent-strong); } }
@media (max-width: 767px) {
  .ag-panel .code-block pre, .ag-more .code-block pre { font-size: 12px; padding: 14px 14px 16px; }
  .code-block.is-clamped pre {
    max-height: 152px; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 64%, transparent); mask-image: linear-gradient(#000 64%, transparent);
  }
}
@media (min-width: 768px) { .ag-code-toggle { display: none; } }
.ag-status { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ag-status li { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--ink); }
.ag-status li:first-child { border-top: 0; }
.ag-status-name { min-width: 0; line-height: 1.45; }
.ag-status-note { display: block; font-size: 13px; color: var(--muted); }
.ag-badge-limited { color: var(--caution); border-color: color-mix(in srgb, var(--caution) 40%, transparent); background: color-mix(in srgb, var(--caution) 9%, transparent); }
@media (max-width: 479px) { .ag-status li { flex-direction: column; align-items: flex-start; } }
.ag-connect-more { display: grid; gap: 0; margin-top: 10px; }
.ag-connect-more li { padding-block: 4px; }
/* Inline, so a long label wraps with its arrow instead of pushing it to the edge */
.ag-connect-more .btn-link { display: inline; line-height: 1.5; }
.ag-connect-more .btn-link .icon { margin-left: 6px; vertical-align: -3px; }

/* Automate: skills, Agent OS and the API ----------------------------------------------------- */
.ag-auto-panel { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1024px) { .ag-auto-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; align-content: center; } }
.ag-auto-copy > * + * { margin-top: 10px; }
.ag-auto-copy > p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ag-auto-copy .actions { margin-top: 18px; align-items: center; gap: 12px 20px; }
.ag-auto-title { font-size: var(--fs-title); line-height: 1.2; letter-spacing: -.02em; }
.ag-auto-copy > .ag-aos-fine { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 479px) { .ag-auto-copy .actions .btn-primary { width: 100%; } }

/* Skill rail: a swipe row below 768 (shared .snap-row), a 2-column grid from 768 */
.ag-skill-rail { --snap-w: min(64%, 220px); --snap-bleed: clamp(18px, 3vw, 32px); }
@media (min-width: 768px) { .ag-skill-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ag-skill-chip {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 10px; align-items: center;
  min-height: 64px; height: 100%; padding: 12px; border: 1px solid transparent; border-radius: var(--r-lg);
  background: var(--bg); color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.35; text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.ag-skill-chip .icon-tile { width: 32px; height: 32px; border-radius: 8px; }
.ag-skill-chip .icon-tile .icon { width: 18px; height: 18px; }
.ag-skill-text { display: grid; gap: 2px; min-width: 0; }
.ag-asks { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.ag-asks .icon { color: var(--caution); }
@media (hover: hover) { .ag-skill-chip:hover { border-color: var(--line-strong); } }

/* Agent OS: four steps on one rail */
.ag-canvas-label { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--mono); color: var(--ink-2); }
.ag-canvas-label .icon { color: var(--accent); }
.ag-flow { position: relative; display: grid; gap: 8px; }
.ag-flow::before { content: ""; position: absolute; left: 29px; top: 28px; bottom: 28px; width: 1px; background: var(--line); }
.ag-flow li {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 12px 14px; border: 1px solid transparent; border-radius: var(--r-lg); background: var(--bg);
}
.ag-flow .is-accent { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.ag-node-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.ag-flow h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; line-height: 1.35; letter-spacing: -.005em; }
.ag-flow p { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* Tablets: the four Agent OS steps sit two by two, so the three automate tabs keep a similar height */
@media (min-width: 768px) and (max-width: 1023px) {
  .ag-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-flow::before { display: none; }
}

/* API: a one-call example, then the REST API and the webhook trigger */
.ag-auto-copy > .ag-api-code { margin-top: 16px; }
/* The example wraps at every width: the copy column is narrow from 1024 */
.ag-api-code pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; }
@media (max-width: 767px) { .ag-api-code pre { font-size: 12px; padding: 14px 14px 16px; } }
.ag-api-list { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.ag-api-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.ag-api-h { font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.ag-api-list p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ag-api-list .btn-link { margin-top: 8px; }
@media (min-width: 768px) { .ag-api-list { gap: 24px; } }

/* FAQ ----------------------------------------------------------------------------------------- */
.ag-faq-more { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

/* Final CTA: Talk to us link --------------------------------------------------------------------- */
