.agent-page { background: white; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; padding-block: 64px; }
.agent-page h1 { font-size: 64px; line-height: 1.08; margin-bottom: 20px; color: var(--navy-deep); }
.agent-page h2 { font-size: 36px; line-height: 1.2; margin-bottom: 24px; }
.agent-page h3 { font-size: 23px; line-height: 1.3; }
.agent-page p { color: #52616b; }
.agent-page .status-label { color: #11747a; font-size: 13px; font-weight: 750; text-transform: uppercase; margin-bottom: 18px; }
.agent-intro { width: min(1400px, calc(100% - 64px)); padding-top: 112px; padding-bottom: 24px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: center; gap: 32px; }
.agent-intro-copy { min-width: 0; }
.agent-page .agent-intro-copy > .status-label { font-size: 20px; line-height: 1.4; }
.agent-intro-visual { margin: 0; min-width: 0; }
.agent-intro-visual img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.agent-intro-visual figcaption { color: #52616b; font-size: 12px; text-align: center; margin-top: 8px; }
.agent-intro h1 { font-size: 60px; }
.agent-intro .agent-actions { margin-bottom: 0; }
.agent-intro .agent-actions .button { font-size: 17px; padding: 18px 24px; }
@media (min-width: 761px) and (max-width: 1100px) { .agent-intro h1 { font-size: 44px; } }
.agent-page .agent-lead { color: var(--navy); font-size: 30px; margin-bottom: 20px; }
.intro-copy { max-width: 790px; font-size: 20px; }
.agent-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-block: 24px; }
.text-link { font-weight: 700; color: #116f77; text-decoration: underline; text-underline-offset: 5px; }
.agent-page .availability { font-size: 13px; margin: 18px 0 0; }
.agent-page .agent-evidence-note { margin: 24px 0 0; padding-left: 16px; border-left: 3px solid #168b91; font-size: 15px; line-height: 1.5; }
.foundation-link { display: inline-block; margin-top: 20px; }
.vision-band { background: #edf4f2; }
.vision-layout, .brief-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; }
.foundation-figure { margin: 24px 0 0; }
.brief-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; margin-top: 28px; }
.foundation-image { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.foundation-figure figcaption { margin-top: 10px; color: #52616b; font-size: 12px; }
.vision-tracks article { border-top: 2px solid #208b8a; padding: 24px 0 12px; }
.vision-tracks article + article { border-color: #ad4d43; }
.vision-tracks span, .agent-roadmap span { display: block; font-size: 13px; font-weight: 750; color: #53646d; margin-bottom: 14px; }
.agent-explain { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; align-items: start; margin-top: 24px; }
.agent-explain details { min-width: 0; border: 1px solid #c8ddda; border-top: 3px solid #168b91; border-radius: 6px; background: #fff; transition: transform 180ms ease, box-shadow 180ms ease; }
.agent-explain details:nth-child(2) { border-top-color: #c39a45; background: #faf7ef; }
.agent-explain details:nth-child(3) { border-top-color: #ad4d43; background: #fcf2f0; }
.agent-explain summary { position: relative; padding: 16px 14px 30px; cursor: pointer; list-style: none; min-height: 146px; }
.agent-explain summary::-webkit-details-marker { display: none; }
.agent-explain summary::after { content: '+'; position: absolute; right: 14px; bottom: 10px; font-size: 20px; color: #203653; }
.agent-explain details[open] summary::after { content: '-'; }
.agent-explain summary strong { display: block; font-size: 18px; color: #203653; margin-bottom: 8px; }
.agent-explain .explain-number { color: #11747a; margin-bottom: 10px; font-size: 12px; }
.agent-explain .explain-teaser { font-size: 13px; font-weight: 400; margin: 0; }
.explain-body { padding: 0 14px 16px; font-size: 13px; overflow-wrap: anywhere; }
.explain-body a { color: #116f77; text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
@media (hover:hover) and (pointer:fine) { .agent-explain details:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(18,36,58,.1); } }
@media (min-width:761px) and (max-width:1000px), (max-width:400px) { .agent-explain { grid-template-columns: 1fr; } .agent-explain summary { min-height: 0; padding: 16px 36px 16px 16px; } .agent-explain summary::after { top: 16px; bottom: auto; } }
@media (prefers-reduced-motion:reduce) { .agent-explain details { transition: none; } .agent-explain details:hover { transform: none; } }
.scenario-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.scenario-options button { padding: 14px 20px; background: white; border: 1px solid #bfcbd0; color: var(--navy); cursor: pointer; border-radius: 4px; }
.scenario-options button[aria-pressed="true"] { background: var(--navy); color: white; border-color: var(--navy); }
.scenario-result { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; padding: 28px 0; border-block: 1px solid #c8d6d5; margin-bottom: 24px; min-height: 220px; }
.scenario-result ol { margin: 0; padding-left: 24px; }
.scenario-result li { padding: 0 0 18px 10px; }
.scenario-result li::marker { color: #11747a; font-weight: bold; }
.scenario-boundary { border-left: 3px solid #c39a45; padding-left: 16px; font-size: 15px; }
.scenario-evidence { border-top: 1px solid #c8d6d5; padding-top: 18px; }
.scenario-evidence h4 { margin: 0 0 8px; color: #203653; font-size: 17px; }
.scenario-evidence p { margin: 0; }
.scenario-details { margin-top: 4px; border-top: 1px solid #c8d6d5; padding-top: 14px; }
.scenario-details summary { cursor: pointer; color: #116f77; font-weight: 650; }
.scenario-details .scenario-evidence { border: 0; padding-top: 16px; }
.scenario-details .scenario-boundary { margin: 14px 0 0; }
.cost-disclosure { border-block: 1px solid #c8d6d5; padding-block: 18px; }
.cost-disclosure > summary { cursor: pointer; color: #116f77; font-size: 18px; font-weight: 700; }
.cost-disclosure .agent-lab { margin-top: 20px; }
.roadmap-band { background: #f6f7f9; }
.agent-roadmap { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.agent-roadmap article { position: relative; min-width: 0; padding: 28px; border: 1px solid #c8ddda; border-top: 3px solid #168b91; border-radius: 6px; background: #edf7f5; display: flex; flex-direction: column; transition: transform 220ms ease, box-shadow 220ms ease; }
.agent-roadmap article:nth-child(2) { border-color: #e3d8bc; border-top-color: #c39a45; background: #faf5e8; }
.agent-roadmap article:nth-child(3) { border-color: #e4cecb; border-top-color: #ad4d43; background: #f9efed; }
.agent-roadmap article .text-link { margin-top: auto; align-self: flex-start; }
.agent-roadmap article:focus-within { outline: 2px solid #168b91; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
 .agent-roadmap article:hover { z-index: 1; transform: translateY(-4px) scale(1.025); box-shadow: 0 12px 24px rgba(18,36,58,.14); }
}
@media (prefers-reduced-motion: reduce) {
 .agent-roadmap article { transition: none; }
 .agent-roadmap article:hover { transform: none; }
}
#brief-form { display: grid; gap: 10px; min-width: 0; }
#brief-form label { font-weight: 700; margin-top: 10px; }
#brief-form select, #brief-form textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid #aebfc7; border-radius: 4px; font: inherit; color: var(--ink); background: white; }
#brief-form textarea { resize: vertical; }
#brief-form > button { margin-top: 12px; cursor: pointer; }
#brief-result { border-top: 2px solid #168b91; margin-top: 24px; padding-top: 24px; }
#brief-result[hidden] { display: none; }
#brief-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; color: #52616b; }
.download-button { background: white; padding: 12px; border: 1px solid #aebfc7; cursor: pointer; }
.agent-faq { padding-top: 16px; }
.agent-faq details { border-top: 1px solid #d5dfe0; padding: 20px 0; }
.agent-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.agent-faq details p { margin: 18px 0 0; max-width: 850px; }
.agent-page :focus-visible { outline: 3px solid #168b91; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.agent-page [hidden] { display: none !important; }
.monitoring-band { background: #f3f6f8; }
.agent-section-intro { max-width: 960px; font-size: 18px; }
.agent-value-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-block: 32px; }
.agent-value-points article { min-width: 0; border-top: 3px solid #168b91; padding-top: 20px; }
.agent-value-points article:nth-child(2) { border-color: #c39a45; }
.agent-value-points article:nth-child(3) { border-color: #ad4d43; }
.agent-value-points h3 { margin-bottom: 12px; }
.agent-value-points p { margin: 0; }
.agent-lab { margin-top: 28px; padding: 28px; border: 1px solid #c9d6da; border-radius: 8px; background: white; }
.agent-lab-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.agent-lab-heading h3 { flex: 1; margin: 0; }
.agent-lab-heading p { flex: 1; margin: 0; font-size: 14px; }
.agent-lab-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; }
.agent-controls { display: grid; align-content: start; gap: 10px; }
.agent-controls > label:not(.agent-checkbox) { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 650; }
.agent-controls output { color: #087b82; font-variant-numeric: tabular-nums; }
.agent-controls input[type="range"] { width: 100%; min-width: 0; height: 28px; margin: 0 0 12px; accent-color: #087f87; }
.agent-controls select, .cost-controls input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: #172231; background: white; border: 1px solid #aebfc7; border-radius: 4px; font: inherit; }
.agent-checkbox { display: flex; align-items: center; gap: 10px; margin-block: 12px; font-size: 16px; }
.agent-checkbox input { width: 20px; height: 20px; flex-shrink: 0; accent-color: #087f87; }
.agent-reset { justify-self: start; align-self: end; min-height: 44px; padding: 8px 16px; border: 1px solid #aebfc7; border-radius: 4px; color: #203653; background: white; font-weight: 650; cursor: pointer; }
.agent-reset:hover { background: #edf4f2; }
.alert-example { min-width: 0; border-left: 3px solid #c39a45; padding-left: 28px; }
.alert-example[data-state="quality"], .alert-example[data-state="conflict"] { border-left-color: #ad4d43; }
.alert-example[data-state="monitor"] { border-left-color: #168b91; }
.alert-example[data-state="pending"] { border-left-color: #697f91; }
.agent-page .alert-example h3 { font-size: 26px; margin-bottom: 14px; }
.alert-example dl { margin: 24px 0 0; }
.alert-example dl > div { border-top: 1px solid #d8e1e4; padding-block: 12px; }
.alert-example dt { font-size: 14px; font-weight: 750; color: #203653; }
.alert-example dd { margin: 4px 0 0; font-size: 15px; color: #52616b; }
.agent-page .agent-tool-note { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #d8e1e4; font-size: 14px; }
.cost-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 18px 16px; }
.cost-controls label { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 650; }
.cost-controls label:last-of-type { grid-column: 1 / -1; }
.cost-controls input[aria-invalid="true"] { border-color: #ad4d43; outline: 1px solid #ad4d43; }
.cost-results { min-width: 0; padding-left: 28px; border-left: 1px solid #d8e1e4; }
.cost-results dl { margin: 0; }
.cost-results dl > div { padding: 16px 0; border-bottom: 1px solid #d8e1e4; }
.cost-results dl > div:first-child { padding-top: 0; }
.cost-results dt { font-size: 15px; color: #52616b; }
.cost-results dd { margin: 4px 0 0; color: #203653; font-size: 28px; line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cost-results p { font-size: 14px; margin: 18px 0 0; }
.cost-method { margin-top: 20px; font-size: 14px; }
.cost-method summary { cursor: pointer; color: #203653; font-weight: 650; }
.cost-method p { margin: 12px 0 0; }
.agent-nojs-applications { margin-top: 24px; border-top: 1px solid #c8d6d5; padding-top: 16px; }
@media(max-width:960px) {
 .agent-lab-layout { grid-template-columns: minmax(0,1fr); gap: 28px; }
 .agent-lab-heading { flex-direction: column; gap: 12px; }
 .alert-example, .cost-results { padding-left: 20px; }
}
@media(max-width:480px) {
 .agent-lab { padding: 20px 16px; }
 .cost-controls { grid-template-columns: minmax(0,1fr); }
 .cost-results dd { font-size: 25px; }
 .agent-page .alert-example h3 { font-size: 23px; }
}
@media(max-width:760px) {
 .wrap { width: calc(100% - 36px); padding-block: 40px; }
 .agent-intro { width: calc(100% - 36px); padding-top: 96px; padding-bottom: 24px; grid-template-columns: 1fr; gap: 16px; }
 .intro-copy { font-size: 18px; }
 .agent-intro-visual { width: min(100%, 420px); justify-self: center; }
 .agent-page h1 { font-size: 42px; }
 .agent-page h2 { font-size: 28px; }
 .agent-page .agent-lead { font-size: 23px; }
 .vision-layout, .brief-layout, .scenario-result, .agent-roadmap, .agent-value-points { grid-template-columns: 1fr; gap: 28px; }
 .scenario-options { flex-direction: column; }
 .scenario-options button { text-align: left; }
 .scenario-result { min-height: 0; }
}
