.agent-main { padding-bottom: 3rem; }
.agent-main h1 { margin: .2rem 0 1.15rem; line-height: .98; }
.directory-head, .profile-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; padding: clamp(2.5rem,6vw,5.5rem) 0 2.4rem; border-bottom: 2px solid var(--ink); }
.directory-head .deck, .profile-head .deck { max-width: 42rem; }
.directory-count { display: flex; flex-direction: column; align-items: end; line-height: 1.2; }
.directory-count strong { font: 4rem/.95 Georgia, serif; color: var(--green); }
.directory-count span, .meta, .maker, .card-platforms, .install-label { font: .875rem/1.5 'IBM Plex Mono', Menlo, monospace; }
.directory-grid { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 4fr); gap: clamp(1.5rem, 4.5vw, 4.5rem); padding-top: 2.3rem; }
.side-index { display: flex; align-self: start; flex-direction: column; gap: 0; }
.side-index h2 { font: 650 1rem/1.3 'Helvetica Neue', Arial, sans-serif; letter-spacing: 0; margin-bottom: .7rem; }
.side-index a { padding: .55rem 0; display: flex; justify-content: space-between; gap: 1rem; color: var(--green); border-bottom: 1px solid var(--line); }
.side-index a span { font-variant-numeric: tabular-nums; }
.tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.tool-card { display: flex; flex-direction: column; border: 1px solid var(--line); padding: clamp(1.15rem,2.3vw,1.8rem); background: white; }
.card-top { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.tool-mark { display: inline-grid; place-content: center; background: var(--ink); color: var(--accent); font: 600 1.05rem Menlo, monospace; min-width: 2.65rem; height: 2.65rem; }
.maker,.meta,.card-platforms { color: #40584f; }
.agent-main h3 { font: 500 1.65rem/1.15 'Iowan Old Style', Georgia, serif; margin: .5rem 0; }
.tool-card h3 { font-size: 2.1rem; }
.tool-card h3 a { color: var(--ink); text-decoration: none; }
.tool-card h3 a:hover { text-decoration: underline; }
.tool-card p { margin: .4rem 0 .75rem; }
.tool-card .card-platforms { margin-top: auto; padding-top: .6rem; }
.card-links { border-top: 1px solid var(--line); padding-top: .85rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.agent-main section { scroll-margin-top: 1rem; }
.compare caption { font-size: 1rem; }
.crumb { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: 1.5rem; color: #546c60; }
.crumb a { color: var(--green); }
.profile-head { padding-top: 1.4rem; }
.install-panel { background: var(--ink); color: white; padding: 1.3rem; display: grid; gap: .6rem; min-width: 14rem; font-size: .9rem; }
.install-button { background: var(--accent); padding: .65rem .85rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.guide-body { max-width: 50rem; }
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 10rem minmax(0,1fr); gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.install-list { padding-left: 1.25rem; }
.install-list li { margin-block: .6rem; }
.agent-main pre { background: #172e27; color: #ecf6e7; padding: 1rem 1.25rem; white-space: pre-wrap; overflow-wrap: anywhere; border-left: .28rem solid var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 48rem) {
 .directory-grid { grid-template-columns: 1fr; }
 .side-index { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; }
 .side-index h2 { flex-basis: 100%; margin-bottom: .15rem; }
}
@media (max-width: 38rem) {
 .directory-head,.profile-head,.tool-grid { grid-template-columns: 1fr; gap: 1rem; }
 .directory-count { flex-direction: row; align-items: baseline; gap: .5rem; }
 .directory-count strong { font-size: 1.8rem; }
 .facts div { grid-template-columns: 1fr; gap: .15rem; }
}
