/* Agent settings: neutral gray segmented controls, unlike the blue on/off switch of a search. */
.agent-settings { display: grid; gap: 48px; }
.agent-setting { display: grid; gap: 20px; }
.agent-state { display: grid; justify-items: start; gap: 16px; color: var(--muted); font-size: 16px; }

/* same as section headings on the subscription tab */
.agent-setting h2 { color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }

.segmented { display: grid; grid-template-columns: repeat(var(--segments), minmax(0, 1fr)); width: min(100%, calc(var(--segments) * 210px)); padding: 4px; border-radius: 999px; background: var(--surface-card); }
.segment { position: relative; display: grid; place-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 16px; font-weight: 600; text-align: center; cursor: pointer; transition: background .15s, color .15s; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment:hover { color: #ddd; }
.segment:has(input:checked) { background: var(--fill-control); color: #fff; }
.segment:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: -2px; }

/* the same rows on every level: only the answerer changes, so a level switch reads at a glance */
.autonomy-card { width: min(100%, 630px); padding: 18px 24px 6px; border-radius: 28px; background: var(--surface-card); }
.autonomy-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; color: #777; font-size: 13px; font-weight: 600; }
.autonomy-list { margin: 0; padding: 0; list-style: none; }
.autonomy-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.autonomy-question { display: grid; gap: 3px; color: #f1f1f1; font-size: 17px; line-height: 1.3; }
.autonomy-question small { color: var(--muted); font-size: 14px; }
.answerer { flex: none; color: #8a8a8a; font-size: 15px; font-weight: 600; }
.is-agent .answerer { color: #fff; }

@media (max-width: 600px) {
  .agent-settings { gap: 40px; }
  .segment { min-height: 42px; padding: 0 8px; font-size: 14px; }
  .autonomy-card { padding: 16px 18px 4px; border-radius: 24px; }
  .autonomy-question { font-size: 16px; }
  .autonomy-question small { font-size: 13px; }
}
