/* The Pickle MCP's /start page: the shared tokens and components, plus the
   pieces only this page has. The agent terminal is the one loud thing on the
   page; everything around it stays flat and quiet. Every colour is a --pickle-*
   token (a mask's #000 is an alpha channel, not paint).

   Motion lives in two places only, and both carry information: the terminal
   typing and answering, and the mini-block lane filling from the right. Under
   prefers-reduced-motion both switch off here, and start.js stops typing and
   stops animating the lane (it updates in place). */

.mcp [hidden] { display: none !important; }

.mcp-wrap {
  width: min(100%, var(--pickle-content));
  margin-inline: auto;
  padding-inline: var(--pickle-gutter);
}

.mcp code { font-size: .92em; }
.mcp-note { color: var(--pickle-muted); font-size: var(--pickle-text-sm); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ nav */

.mcp-navlinks { gap: var(--pickle-space-1); margin-left: auto; }
.mcp-navlinks a {
  padding-inline: var(--pickle-space-3);
  color: var(--pickle-muted);
  font-size: var(--pickle-text-sm);
  font-weight: 500;
}
.mcp-navlinks a:hover { color: var(--pickle-text); }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow-x: clip;
  padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(1.75rem, 2.5vw, 2.25rem);
}

/* The estate's blueprint grid, fading out from the terminal's corner. */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--pickle-text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--pickle-text) 5%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 80% at 78% 30%, #000 5%, transparent 72%);
}

.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy .ex-kicker { margin-bottom: var(--pickle-space-5); }

.hero-h {
  max-width: 11ch;
  font-size: clamp(2.6rem, 4.6vw, 4.5rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: var(--pickle-tracking-display);
}

.hero-lede {
  max-width: 44ch;
  margin-top: var(--pickle-space-5);
  color: var(--pickle-muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: var(--pickle-space-3);
  margin-top: var(--pickle-space-6);
  padding: var(--pickle-space-2) var(--pickle-space-2) var(--pickle-space-2) var(--pickle-space-4);
  background: var(--pickle-surface-input);
  border: 1px solid var(--pickle-mint-line);
  border-radius: var(--pickle-radius);
}

.endpoint-k {
  flex: 0 0 auto;
  padding-right: var(--pickle-space-3);
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  border-right: 1px solid var(--pickle-line);
}

.endpoint code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--pickle-accent-text);
  font-size: var(--pickle-text-md);
  line-height: 1.4;
}

.endpoint .endpoint-copy { flex: 0 0 auto; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pickle-space-2);
  margin: var(--pickle-space-3) 0 0;
  padding: 0;
  list-style: none;
}

.hero-installs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pickle-space-2);
  margin-top: var(--pickle-space-6);
}

.hero-installs .ex-btn { min-height: 2.75rem; padding-inline: var(--pickle-space-4); font-size: var(--pickle-text-sm); }

.hero-more { margin-top: var(--pickle-space-4); color: var(--pickle-muted); font-size: var(--pickle-text-sm); }

/* ------------------------------------------------------- agent terminal */

.term {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pickle-surface-1);
  border: 1px solid var(--pickle-line);
  border-top-color: var(--pickle-mint-line);
  border-radius: var(--pickle-radius);
}

.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pickle-space-3);
  min-height: 2.5rem;
  padding-inline: var(--pickle-space-4);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  border-bottom: 1px solid var(--pickle-line);
}

.term-title { color: var(--pickle-muted); }
.term-title span { margin-left: var(--pickle-space-2); color: var(--pickle-text); }

.term-state {
  display: inline-flex;
  align-items: center;
  gap: var(--pickle-space-2);
  color: var(--pickle-muted);
  white-space: nowrap;
}

.term-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pickle-faint);
}

.term-state.is-live { color: var(--pickle-accent-text); }
.term-state.is-live::before { background: var(--pickle-mint); animation: pickle-pulse 2.2s infinite; }
.term-state.is-down { color: var(--pickle-amber); }
.term-state.is-down::before { background: var(--pickle-amber); }

.term-log {
  display: flex;
  flex-direction: column;
  gap: var(--pickle-space-4);
  height: 23.5rem;
  padding: var(--pickle-space-5) var(--pickle-space-5) var(--pickle-space-4);
  scrollbar-width: thin;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.t-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--pickle-space-3);
  align-items: baseline;
}

.t-who {
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
}

.t-tool .t-who { color: var(--pickle-accent-text); }
.t-agent .t-who { color: var(--pickle-text); }

.t-say {
  color: var(--pickle-text);
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.012em;
}

.t-caret {
  display: inline-block;
  width: .5em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -.16em;
  background: var(--pickle-mint);
  animation: t-blink 1s steps(1) infinite;
}

@keyframes t-blink { 50% { opacity: 0; } }

.t-call {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pickle-space-1) var(--pickle-space-3);
  align-items: baseline;
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-sm);
}

.t-call code { color: var(--pickle-accent-text); overflow-wrap: anywhere; }
.t-status { color: var(--pickle-muted); font-size: var(--pickle-text-2xs); }
.t-status.is-err { color: var(--pickle-amber); }

.t-wait { display: inline-flex; gap: 3px; }
.t-wait i { width: 4px; height: 4px; border-radius: 50%; background: var(--pickle-mint); animation: pickle-pulse 900ms infinite; }
.t-wait i:nth-child(2) { animation-delay: 150ms; }
.t-wait i:nth-child(3) { animation-delay: 300ms; }

.t-note { color: var(--pickle-muted); font-size: var(--pickle-text-sm); }

.t-answer {
  color: var(--pickle-text);
  font-size: var(--pickle-text-md);
  line-height: 1.55;
}

.t-answer + * { margin-top: var(--pickle-space-3); }
.t-usd { color: var(--pickle-accent-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.t-num { font-family: var(--pickle-font-mono); font-size: .92em; }

.t-err {
  display: flex;
  gap: var(--pickle-space-2);
  align-items: baseline;
  color: var(--pickle-muted);
  font-size: var(--pickle-text-sm);
}

.t-err::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pickle-amber);
  transform: translateY(-1px);
}

.t-kind {
  display: inline-flex;
  align-items: center;
  height: 1.35rem;
  padding: 0 var(--pickle-space-2);
  color: var(--pickle-accent-text);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  vertical-align: 1px;
  border: 1px solid var(--pickle-mint-line);
  border-radius: var(--pickle-radius);
}

/* Figures: the estate's 1px-gap cell grid, at terminal scale. */
.t-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--pickle-line);
  border: 1px solid var(--pickle-line);
  border-radius: var(--pickle-radius);
  overflow: clip;
}

.t-fig { margin: 0; padding: var(--pickle-space-3); background: var(--pickle-surface-2); }

.t-fig dt {
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
}

.t-fig dd {
  margin: var(--pickle-space-1) 0 0;
  color: var(--pickle-text);
  font-family: var(--pickle-font-mono);
  font-size: clamp(.95rem, 1.35vw, 1.12rem);
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.t-fig.is-usd dd { color: var(--pickle-accent-text); }
.t-fig.is-small dd { font-size: var(--pickle-text-xs); font-weight: 400; }
.t-fig small { display: block; margin-top: 2px; color: var(--pickle-muted); font-family: var(--pickle-font-mono); font-size: var(--pickle-text-2xs); }

.t-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pickle-line); }

.t-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 var(--pickle-space-3);
  padding: var(--pickle-space-2) 0;
  border-bottom: 1px solid var(--pickle-line);
}

.t-rows .r-main { font-family: var(--pickle-font-mono); font-size: var(--pickle-text-xs); overflow-wrap: anywhere; }
.t-rows .r-main a { color: var(--pickle-text); }
.t-rows .r-main a:hover { color: var(--pickle-accent-text); }
.t-rows .r-meta { grid-column: 1; color: var(--pickle-muted); font-size: var(--pickle-text-xs); }
.t-rows .r-value { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-family: var(--pickle-font-mono); font-size: var(--pickle-text-xs); white-space: nowrap; }
.t-rows .r-value > span > * { display: block; }
.t-rows .r-value small { color: var(--pickle-muted); font-size: var(--pickle-text-2xs); }

.t-link {
  display: inline-flex;
  align-items: center;
  gap: var(--pickle-space-2);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
}

/* A drawn chevron, not U+2192, which no shipped face carries. */
.t-link::after {
  content: "";
  width: .38em;
  height: .38em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.t-raw summary {
  display: inline-flex;
  align-items: center;
  gap: var(--pickle-space-2);
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  cursor: pointer;
  list-style: none;
}

.t-raw summary::-webkit-details-marker { display: none; }
.t-raw summary::before,
.tool-more summary::before {
  content: "";
  width: .36em;
  height: .36em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--pickle-fast) var(--pickle-ease);
}

.t-raw[open] summary::before,
.tool-more[open] summary::before { transform: rotate(45deg); }
.t-raw summary:hover { color: var(--pickle-text); }

.t-raw pre {
  max-height: 16rem;
  margin-top: var(--pickle-space-2);
  padding: var(--pickle-space-3);
  overflow: auto;
  color: var(--pickle-muted);
  font-size: var(--pickle-text-2xs);
  line-height: 1.7;
  white-space: pre;
  background: var(--pickle-surface-input);
  border: 1px solid var(--pickle-line);
  border-radius: var(--pickle-radius);
}

/* An answer arriving: the parts land in order, once, in answer to the call. */
.t-in > * { animation: t-rise 360ms var(--pickle-ease) both; }
.t-in > :nth-child(2) { animation-delay: 70ms; }
.t-in > :nth-child(3) { animation-delay: 140ms; }
.t-in > :nth-child(4) { animation-delay: 210ms; }
.t-in > :nth-child(n + 5) { animation-delay: 280ms; }
@keyframes t-rise { from { opacity: 0; transform: translateY(6px); } }

/* Try it: the terminal's own input, under its log. */
.term-try {
  display: flex;
  align-items: baseline;
  gap: var(--pickle-space-3);
  padding: var(--pickle-space-4) var(--pickle-space-5) 0;
  border-top: 1px solid var(--pickle-line);
}

.term-try-h {
  flex: 0 0 3rem;
  margin: 0;
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  font-weight: 400;
  letter-spacing: 0;
}

.term-chips { display: flex; flex-wrap: wrap; gap: var(--pickle-space-2); }

.term-chip {
  min-height: 2.25rem;
  padding: 0 .7rem;
  color: var(--pickle-muted);
  font-size: var(--pickle-text-xs);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--pickle-line);
  border-radius: var(--pickle-radius);
  transition: color var(--pickle-fast) var(--pickle-ease), border-color var(--pickle-fast) var(--pickle-ease), background var(--pickle-fast) var(--pickle-ease);
}

.term-chip:hover { color: var(--pickle-text); border-color: var(--pickle-mint-line); background: var(--pickle-mint-soft); }
.term-chip[aria-pressed="true"] { color: var(--pickle-accent-text); border-color: var(--pickle-mint-line); background: var(--pickle-mint-soft); }

.term-ask {
  display: flex;
  align-items: center;
  gap: var(--pickle-space-2);
  padding: var(--pickle-space-3) var(--pickle-space-5) var(--pickle-space-4);
}

.term-sigil { color: var(--pickle-accent-text); font-family: var(--pickle-font-mono); }

.term-ask input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0 var(--pickle-space-3);
  color: var(--pickle-text);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
  background: var(--pickle-surface-input);
  border: 1px solid var(--pickle-line);
  border-radius: var(--pickle-radius);
  outline: none;
  transition: border-color var(--pickle-fast) var(--pickle-ease);
}

.term-ask input::placeholder { color: var(--pickle-muted); }
.term-ask input:focus { border-color: var(--pickle-mint); }
.term-ask input:focus-visible { outline: 2px solid var(--pickle-focus); outline-offset: 2px; }
.term-ask .ex-btn { min-height: 2.5rem; }

/* ---------------------------------------------------- mini-block lane */

.lane {
  padding-block: 1.25rem var(--pickle-space-5);
  background: var(--pickle-bg-deep);
  border-block: 1px solid var(--pickle-line);
}

.lane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--pickle-space-2) var(--pickle-space-5);
  margin-bottom: var(--pickle-space-4);
}

.lane-head h2 {
  display: inline-flex;
  align-items: center;
  gap: var(--pickle-space-2);
  font-size: var(--pickle-text-md);
  font-weight: 600;
  letter-spacing: -.01em;
}

.lane-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pickle-mint); animation: pickle-pulse 2.2s infinite; }
.lane.is-down .lane-dot { background: var(--pickle-amber); animation: none; }

.lane-state {
  flex: 1 1 16rem;
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
  font-variant-numeric: tabular-nums;
}

.lane-state b { margin-inline: .35em .1em; color: var(--pickle-accent-text); font-size: var(--pickle-text-md); font-weight: 500; }
.lane.is-down .lane-state { color: var(--pickle-amber); }

.lane-key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pickle-space-1) var(--pickle-space-4);
  margin: 0;
  padding: 0;
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  list-style: none;
}

.lane-key li { display: inline-flex; align-items: center; gap: var(--pickle-space-2); }
.lane-key li::before { content: ""; width: 8px; height: 8px; border-radius: 1px; }
.lane-key .k-tx::before { background: var(--pickle-lane-mini); }
.lane-key .k-empty::before { background: var(--pickle-lane-mini-idle); }
.lane-key .k-evm::before { background: var(--pickle-lane-evm); }

/* Newest on the right, at the content edge under the terminal; older ones leave
   by the left, through a fade. */
.lane-track {
  --lane-edge: max(var(--pickle-gutter), calc((100% - var(--pickle-content)) / 2 + var(--pickle-gutter)));
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  height: 4.75rem;
  padding-right: var(--lane-edge);
  overflow: clip;
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}

/* The "now" edge. */
.lane-track::after {
  content: "";
  flex: 0 0 2px;
  margin-left: 6px;
  background: var(--pickle-mint);
}

.lane-empty {
  align-self: center;
  margin-right: var(--pickle-space-4);
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
  white-space: nowrap;
}

.lane.is-down .lane-empty { color: var(--pickle-amber); }

.mb {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 7.1rem;
  margin-left: 4px;
  padding: 6px 8px 7px;
  overflow: hidden;
  font-family: var(--pickle-font-mono);
  line-height: 1.2;
  white-space: nowrap;
  background: var(--pickle-surface-1);
  border: 1px solid var(--pickle-line);
  border-top: 2px solid var(--pickle-lane-mini-idle);
  border-radius: var(--pickle-radius);
}

.mb-k { min-height: 1.2em; color: var(--pickle-lane-evm); font-size: var(--pickle-text-2xs); }
.mb-n { color: var(--pickle-text); font-size: var(--pickle-text-sm); font-variant-numeric: tabular-nums; }
.mb-t { color: var(--pickle-muted); font-size: var(--pickle-text-2xs); }

.mb.mb-tx { background: var(--pickle-mint-soft); border-top-color: var(--pickle-lane-mini); }
.mb.mb-tx .mb-t { color: var(--pickle-accent-text); }
.mb.mb-evm { border-left: 2px solid var(--pickle-lane-evm); }

.mb.mb-gap {
  width: 8.4rem;
  background: transparent;
  border: 1px dashed var(--pickle-line);
}

.mb-gap .mb-n { color: var(--pickle-muted); }

/* A mini-block arriving: it opens its own slot, and the lane shifts left. */
.mb.mb-in { animation: mb-grow 240ms var(--pickle-ease) both, mb-lit 900ms ease-out both; }
.mb.mb-gap.mb-in { animation: mb-grow 240ms var(--pickle-ease) both; }

@keyframes mb-grow {
  from { width: 0; margin-left: 0; padding-inline: 0; opacity: 0; }
}

@keyframes mb-lit {
  from { background: var(--pickle-mint-soft); border-color: var(--pickle-mint-line); }
}

/* ------------------------------------------------------------ sections */

.block { padding-top: clamp(3.5rem, 7vw, 5.5rem); }

.block-head {
  display: grid;
  gap: var(--pickle-space-2);
  margin-bottom: var(--pickle-space-5);
}

.block-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; }
.block-head p { max-width: 52ch; color: var(--pickle-muted); font-size: var(--pickle-text-sm); }
.block-head p code { color: var(--pickle-text); overflow-wrap: anywhere; }

/* --------------------------------------------------------------- tools */

.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--pickle-line);
  border: 1px solid var(--pickle-line);
  border-radius: var(--pickle-radius);
  overflow: clip;
}

.tool {
  display: flex;
  flex-direction: column;
  gap: var(--pickle-space-2);
  padding: var(--pickle-space-5);
  background: var(--pickle-ground);
}

.tool-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pickle-space-1) var(--pickle-space-3); min-height: 2.25rem; }
.tool-head h3 { flex: 0 0 auto; max-width: 100%; font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.tool-head h3 code { color: var(--pickle-accent-text); font-size: 1em; }
.tool-run { flex: 0 0 auto; }
.tool-needs { flex: 0 0 auto; color: var(--pickle-muted); font-family: var(--pickle-font-mono); font-size: var(--pickle-text-2xs); }
.tool-line { color: var(--pickle-text); font-size: var(--pickle-text-md); line-height: 1.5; }

.tool-more { margin-top: auto; padding-top: var(--pickle-space-2); }

.tool-more summary {
  display: inline-flex;
  align-items: center;
  gap: var(--pickle-space-2);
  min-height: 2rem;
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  cursor: pointer;
  list-style: none;
}

.tool-more summary::-webkit-details-marker { display: none; }
.tool-more summary:hover { color: var(--pickle-text); }
.tool-more > p { margin-top: var(--pickle-space-2); color: var(--pickle-muted); font-size: var(--pickle-text-sm); line-height: 1.6; }
.tool-more dl { margin: var(--pickle-space-3) 0 0; font-size: var(--pickle-text-sm); }
.tool-more dt { font-family: var(--pickle-font-mono); overflow-wrap: anywhere; }
.tool-more dt span { margin-left: var(--pickle-space-2); color: var(--pickle-muted); font-size: var(--pickle-text-xs); }
.tool-more dd { margin: 0 0 var(--pickle-space-3); color: var(--pickle-muted); }

/* ------------------------------------------------------------- install */

.inst {
  background: var(--pickle-surface-1);
  border: 1px solid var(--pickle-line);
  border-radius: var(--pickle-radius);
}

.inst.tabbed { display: grid; grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr); }

.inst-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--pickle-space-2);
  border-right: 1px solid var(--pickle-line);
}

.inst-tabs [role="tab"] {
  display: grid;
  gap: 2px;
  padding: var(--pickle-space-2) var(--pickle-space-3);
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: var(--pickle-radius);
  transition: background var(--pickle-fast) var(--pickle-ease), border-color var(--pickle-fast) var(--pickle-ease);
}

.inst-tabs [role="tab"] span { color: var(--pickle-text); font-size: var(--pickle-text-sm); font-weight: 500; }
.inst-tabs [role="tab"] small { color: var(--pickle-muted); font-family: var(--pickle-font-mono); font-size: var(--pickle-text-2xs); }
.inst-tabs [role="tab"]:hover { background: var(--pickle-surface-hover); }
.inst-tabs [role="tab"][aria-selected="true"] { background: var(--pickle-mint-soft); border-left-color: var(--pickle-mint); }
.inst-tabs [role="tab"][aria-selected="true"] small { color: var(--pickle-accent-text); }

.inst-panel { padding: var(--pickle-space-5) var(--pickle-space-6) var(--pickle-space-6); }
.inst-panel + .inst-panel { border-top: 1px solid var(--pickle-line); }
.inst.tabbed .inst-panel + .inst-panel { border-top: 0; }
.inst-panel h3 { margin-bottom: var(--pickle-space-4); font-size: var(--pickle-text-xl); font-weight: 600; }
.inst-panel .mcp-note { margin-top: var(--pickle-space-3); }

.inst-snippet { margin: 0 0 var(--pickle-space-4); }

.inst-snippet figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pickle-space-3);
  min-height: 2.25rem;
  margin-bottom: var(--pickle-space-2);
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
}

.inst-snippet pre {
  margin: 0;
  padding: var(--pickle-space-4);
  overflow-x: auto;
  color: var(--pickle-text);
  font-size: var(--pickle-text-sm);
  line-height: 1.7;
  white-space: pre;
  background: var(--pickle-surface-input);
  border: 1px solid var(--pickle-line);
  border-radius: var(--pickle-radius);
}

.inst-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }

.inst-steps li {
  position: relative;
  padding: var(--pickle-space-3) 0 var(--pickle-space-3) 2.5rem;
  counter-increment: step;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--pickle-line);
}

.inst-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: var(--pickle-space-3);
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--pickle-accent-text);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
  border: 1px solid var(--pickle-mint-line);
  border-radius: var(--pickle-radius);
}

.inst-hand { margin-top: var(--pickle-space-4); }

/* -------------------------------------------------------------- limits */

.limits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--pickle-line);
  border: 1px solid var(--pickle-line);
  border-radius: var(--pickle-radius);
  overflow: clip;
}

.limits li { padding: var(--pickle-space-5); background: var(--pickle-ground); }

.limits h3 {
  margin-bottom: var(--pickle-space-2);
  color: var(--pickle-accent-text);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
  font-weight: 500;
  letter-spacing: 0;
}

.limits p { color: var(--pickle-muted); font-size: var(--pickle-text-sm); line-height: 1.6; }

/* -------------------------------------------------------------- footer */

.mcp-foot {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-block: var(--pickle-space-5) var(--pickle-space-7);
  border-top: 1px solid var(--pickle-line);
}

.mcp-foot p {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pickle-space-2) var(--pickle-space-5);
  color: var(--pickle-muted);
  font-size: var(--pickle-text-sm);
}

/* -------------------------------------------------------------- focus */

.term-chip:focus-visible,
.inst-tabs [role="tab"]:focus-visible,
.mcp .ex-btn:focus-visible,
.mcp summary:focus-visible { outline: 2px solid var(--pickle-focus); outline-offset: 2px; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-h { max-width: 14ch; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .inst.tabbed { grid-template-columns: minmax(0, 1fr); }
  .inst-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--pickle-line);
    scrollbar-width: none;
  }
  .inst-tabs::-webkit-scrollbar { height: 0; }
  .inst-tabs [role="tab"] { flex: 0 0 auto; border-left: 0; border-bottom: 2px solid transparent; }
  .inst-tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--pickle-mint); }
  .inst-panel { padding: var(--pickle-space-4); }
}

@media (max-width: 640px) {
  .tools, .limits { grid-template-columns: minmax(0, 1fr); }
  .mcp-navlinks a:not(:last-child) { display: none; }
  .term-log { height: auto; min-height: 24rem; max-height: 34rem; padding: var(--pickle-space-4); }
  .t-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .t-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term-try { flex-direction: column; gap: var(--pickle-space-2); padding-inline: var(--pickle-space-4); }
  .term-try-h { flex: none; }
  .term-ask { padding-inline: var(--pickle-space-4); }
  .term-sigil { display: none; }
  .endpoint { flex-wrap: wrap; padding: var(--pickle-space-3); }
  .endpoint-k { display: none; }
  .endpoint .endpoint-copy { margin-left: auto; }
  .hero-installs .ex-btn { flex: 1 1 10rem; }
  .mb { width: 5.9rem; }
  .mb.mb-gap { width: 7.6rem; }
  .tool { padding: var(--pickle-space-4); }
}

@media (prefers-reduced-motion: reduce) {
  .t-caret, .t-wait i, .lane-dot, .term-state.is-live::before { animation: none; }
  .t-in > *, .mb.mb-in { animation: none; }
}
