/* ---------- one page: terminal fills the screen, sections below ---------- */
.nav-links button[aria-current="true"] { color: var(--fg); border-bottom-color: var(--brand); }
.center { min-height: 0; }
.center-split { flex: 1; }
@media (min-width: 1181px) and (min-height: 700px) {
  #view-firm { height: calc(100vh - 48px); display: flex; flex-direction: column; }
  #view-firm .grid { flex: 1; min-height: 0; }
  #view-firm .firms { height: auto; min-height: 0; overflow: hidden; }
  #view-firm .firm-list { flex: 1; min-height: 0; }
  #view-firm .center { overflow-y: auto; }
  #view-firm .ladder { position: static; align-self: stretch; min-height: 0; overflow-y: auto; }
}

/* ladder: every plan, cheapest size */
.ladder-all { border-top: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ladder-all-head { display: flex; justify-content: space-between; padding: 10px 12px 6px; color: var(--muted); font-size: 11px; }
.ladder-all-head .r { color: var(--dim); }
#ladder-all { list-style: none; margin: 0; padding: 0 0 8px; }
#ladder-all li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 12px; cursor: pointer; border-left: 2px solid transparent; }
#ladder-all li:hover { background: var(--hover); }
#ladder-all li.on { background: var(--brand-soft); border-left-color: var(--brand); }
#ladder-all li:focus-visible { outline: 1px solid var(--brand); outline-offset: -1px; }
#ladder-all .pn { display: block; font-size: 12px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
#ladder-all .ps { display: block; font: 11px var(--mono); color: var(--dim); margin-top: 1px; }
#ladder-all .pv { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
#ladder-all li.on .pv { color: var(--brand); }

/* stacked sections */
.sec { padding: 36px 4px 4px; scroll-margin-top: 44px; }
.sec-head { padding: 0 12px 14px; max-width: 92ch; }
.sec-head h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.sec-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.sec .bottom { margin: 0; }
.sec .tw { max-height: none; }
#body-plans, #body-coins { max-height: 78vh; }
.sec .tab-tools { border-bottom: 1px solid var(--line); }
#sections .sec:first-child { padding-top: 28px; }

/* share with your agent */
.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.agent-card { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.agent-card h3 { margin: 0; font-size: 15px; font-weight: 600; }
.agent-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.agent-card code { font-family: var(--mono); font-size: 11.5px; color: var(--brand); }
.copy-row { display: flex; gap: 6px; align-items: stretch; }
.copy-row .url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; color: var(--fg); font-size: 11.5px; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border-radius: 4px; background: var(--brand); color: #03211c; font-weight: 600; font-size: 12px; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--mint); }
.btn.sm { padding: 4px 9px; font-size: 11px; }
.btn.done { background: var(--up); color: #fff; }
.btn:focus-visible { outline: 1px solid var(--brand); outline-offset: 2px; }
.snip { position: relative; display: flex; flex-direction: column; gap: 4px; }
.snip > span { color: var(--dim); font-size: 11px; }
.snip pre { margin: 0; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px; font: 11.5px/1.5 var(--mono); color: var(--fg); white-space: pre-wrap; word-break: break-all; }
.snip .btn { position: absolute; right: 6px; top: 22px; }
.agent-foot { color: var(--dim); font-size: 12px; padding: 12px 12px 0; margin: 0; }
.agent-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.foot { padding-top: 28px; }

@media (max-width: 760px) {
  .sec { scroll-margin-top: 96px; padding-top: 28px; }
  #body-plans, #body-coins { max-height: 70vh; }
  #ladder-all .pn { max-width: 60vw; }
}
.center-split { flex: none; }
.voice { flex: 1; }
.voice .facts { grid-template-columns: 112px 1fr; }
.snip-head { display: flex; justify-content: space-between; align-items: center; }
.snip-head span { color: var(--dim); font-size: 11px; }
.snip .btn { position: static; }
.agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agent-card.mcp { grid-column: 2; grid-row: 1 / span 2; }
.agent-card .btn-row { margin-top: 2px; }
@media (max-width: 900px) { .agent-grid { grid-template-columns: 1fr; } .agent-card.mcp { grid-column: auto; grid-row: auto; } }
