.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.market-page {
  background: #f4f2ec;
}

.market-page .site-header {
  background: rgba(244, 242, 236, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
}

.market-page .nav-current {
  color: var(--ink);
}

.market-page .nav-current::after {
  transform: scaleX(1);
}

.market-hero {
  padding: 102px 20px 28px;
}

.market-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  align-items: center;
  min-height: 700px;
  overflow: hidden;
  padding: 80px clamp(40px, 6vw, 88px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 20%, rgba(120, 156, 129, 0.19), transparent 28%),
    radial-gradient(circle at 9% 86%, rgba(171, 103, 72, 0.11), transparent 26%),
    #19211b;
  color: #f1f3ef;
  box-shadow: 0 38px 110px rgba(44, 55, 47, 0.18), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.market-hero-panel::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 70px 70px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, black 35%, black 80%, transparent);
  opacity: 0.65;
  pointer-events: none;
}

.market-hero-copy,
.package-vignette {
  position: relative;
  z-index: 2;
}

.market-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 26px;
  color: #9eb4a4;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.market-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #86aa8f;
  box-shadow: 0 0 0 6px rgba(134, 170, 143, 0.1);
}

.market-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(66px, 7.4vw, 108px);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.89;
}

.market-hero-summary {
  max-width: 620px;
  margin: 34px 0 0;
  color: #b8c2bb;
  font-size: clamp(17px, 1.7vw, 21px);
  letter-spacing: -0.02em;
  line-height: 1.58;
}

.market-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  color: #79857d;
  font-family: var(--mono);
  font-size: 9px;
}

.market-hero-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #56625a;
}

.package-vignette {
  min-height: 510px;
  perspective: 1100px;
}

.package-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(173, 197, 178, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one { width: 490px; height: 490px; }
.orbit-two { width: 380px; height: 380px; }

.package-sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(340px, 72vw);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.26);
}

.sheet-back {
  min-height: 280px;
  padding: 28px;
  background: #2a332c;
  color: #8d9c92;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  transform: translate(-40%, -57%) rotate(13deg);
}

.sheet-back i {
  display: block;
  width: 65%;
  height: 8px;
  margin-top: 25px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.sheet-back i:nth-of-type(2) { width: 85%; }
.sheet-back i:nth-of-type(3) { width: 52%; }

.sheet-middle {
  min-height: 310px;
  padding: 30px;
  background: #eee8dc;
  color: #536057;
  transform: translate(-57%, -52%) rotate(-8deg);
}

.sheet-middle span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.sheet-middle strong {
  display: block;
  margin-top: 180px;
  color: #778279;
  font-size: 12px;
  font-weight: 550;
}

.sheet-front {
  min-height: 360px;
  padding: 32px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), #f2f1ec);
  color: var(--ink);
  transform: translate(-50%, -50%) rotate(1.5deg);
}

.vignette-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 56px;
  border-radius: 19px;
  background: var(--moss-dark);
  color: white;
  font-size: 20px;
  font-weight: 680;
  box-shadow: 0 14px 30px rgba(47, 72, 56, 0.24);
  place-items: center;
}

.sheet-front small {
  color: var(--moss);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.sheet-front strong {
  display: block;
  margin-top: 9px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.sheet-front p {
  margin: 12px 0 25px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.sheet-front footer {
  display: flex;
  gap: 7px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.sheet-front footer span {
  padding: 5px 8px;
  border-radius: 99px;
  background: #e7ece7;
  color: #68766c;
  font-family: var(--mono);
  font-size: 7px;
}

.market-browse {
  padding: 108px 0 150px;
}

.browse-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  min-height: 28px;
}

.browse-heading h1 {
  margin: 0;
  color: var(--moss);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.browse-heading h1 i {
  margin: 0 8px;
  color: #9aa49c;
  font-style: normal;
}

.browse-heading-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portable-copy h2,
.publish-panel h2 {
  margin: 0;
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 540;
  letter-spacing: -0.068em;
  line-height: 0.96;
}

.browse-heading-tools > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
  text-align: right;
}

.browse-shelf {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  margin-top: 21px;
  padding: 19px 0;
  border-top: 1px solid #d3d8d2;
  border-bottom: 1px solid #d3d8d2;
}

.agent-search {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(80, 98, 85, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 white inset;
}

.agent-search:focus-within {
  border-color: rgba(70, 111, 83, 0.46);
  box-shadow: 0 0 0 3px rgba(79, 107, 87, 0.09), 0 1px 0 white inset;
}

.agent-search svg {
  width: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: #7b877e;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.agent-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.agent-search input::placeholder { color: #8c958e; }

.agent-search kbd {
  padding: 4px 7px;
  border: 1px solid #d5d9d4;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: #899189;
  font-family: var(--mono);
  font-size: 8px;
  box-shadow: 0 1px 0 white inset;
}

.runtime-filters {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  background: #e7e8e2;
}

.runtime-filters button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #737d75;
  cursor: pointer;
  font-size: 11px;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.runtime-filters button:hover { color: var(--ink); }

.runtime-filters button.is-selected {
  background: #fafaf7;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(52, 64, 55, 0.08), 0 1px 0 white inset;
}

.result-count {
  min-width: 86px;
  margin: 0;
  color: #7f8881;
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
}

.result-count strong {
  color: var(--moss);
  font-size: 13px;
  font-weight: 600;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.agent-card {
  grid-column: span 4;
  min-height: 455px;
}

.agent-card-featured {
  grid-column: span 8;
  min-height: 455px;
}

.agent-card[hidden] {
  display: none;
}

.agent-card-button {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  padding: 27px;
  border: 1px solid rgba(78, 95, 82, 0.17);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 227, 216, 0.48), transparent 34%),
    rgba(251, 251, 247, 0.82);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  text-align: left;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.agent-card:nth-child(3n) .agent-card-button {
  background:
    radial-gradient(circle at 100% 0%, rgba(235, 219, 201, 0.48), transparent 34%),
    rgba(251, 251, 247, 0.82);
}

.agent-card:nth-child(4n) .agent-card-button {
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 222, 228, 0.48), transparent 34%),
    rgba(251, 251, 247, 0.82);
}

.team-package-card {
  grid-column: span 4;
  min-height: 455px;
}

.team-package-card .agent-card-button {
  border-color: rgba(69, 96, 77, 0.22);
  background:
    linear-gradient(135deg, rgba(219, 229, 220, 0.82), rgba(250, 250, 246, 0.92) 52%),
    #f7f8f4;
  box-shadow: 0 3px 0 rgba(68, 101, 77, 0.48) inset, 0 1px 0 white;
}

.team-package-clay .agent-card-button {
  border-color: rgba(153, 100, 72, 0.2);
  background:
    linear-gradient(135deg, rgba(237, 222, 211, 0.82), rgba(250, 250, 246, 0.92) 52%),
    #f8f6f1;
  box-shadow: 0 3px 0 rgba(162, 99, 68, 0.46) inset, 0 1px 0 white;
}

.team-package-card .agent-card-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 99px;
  background: rgba(65, 96, 74, 0.1);
  color: #496554;
}

.team-package-clay .agent-card-topline span {
  background: rgba(166, 100, 68, 0.1);
  color: #8f583f;
}

.team-member-stack {
  display: flex;
  min-height: 68px;
  align-items: center;
  padding-left: 7px;
}

.team-member-stack span {
  display: grid;
  width: 62px;
  height: 62px;
  margin-left: -8px;
  border: 4px solid #f2f5ef;
  border-radius: 19px;
  color: white;
  font-size: 12px;
  font-weight: 680;
  box-shadow: 0 11px 25px rgba(49, 62, 53, 0.14);
  place-items: center;
}

.team-package-clay .team-member-stack span { border-color: #f6efe9; }
.member-moss { background: #41604b; }
.member-clay { background: #ad6748; }
.member-slate { background: #66747e; }
.member-rust { background: #8f5d49; }
.member-ochre { background: #aa873d; }

.team-package-card h3 {
  margin-top: 24px;
  font-size: clamp(31px, 3vw, 41px);
}

.team-package-inventory {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 27px;
  color: #6c776f;
  font-family: var(--mono);
  font-size: 8px;
}

.team-package-inventory span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.team-package-inventory strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 590;
}

.team-package-inventory i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a2aaa3;
}

.team-package-chip {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  border-radius: 99px;
  background: #dce8de;
  color: #46604e;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 650;
}

.team-package-clay .team-package-chip {
  background: #efe0d6;
  color: #8a563f;
}

.team-runtimes {
  color: #79847c;
  font-family: var(--mono);
  font-size: 7px;
}

.agent-card-button:hover {
  border-color: rgba(73, 104, 82, 0.31);
  box-shadow: 0 24px 64px rgba(47, 62, 51, 0.13), 0 1px 0 white inset;
  transform: translateY(-5px);
}

.agent-card-button:focus-visible {
  outline: 3px solid rgba(65, 112, 86, 0.3);
  outline-offset: 3px;
}

.agent-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 38px;
  color: #818b83;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.agent-card-topline i {
  color: #a5aca6;
  font-style: normal;
}

.agent-symbol {
  display: grid;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: white;
  font-size: 16px;
  font-weight: 690;
  letter-spacing: -0.03em;
  box-shadow: 0 13px 28px rgba(52, 65, 55, 0.16), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
  place-items: center;
}

.symbol-moss { background: #3f604a; }
.symbol-clay { background: #ae6849; }
.symbol-ochre { background: #aa873d; }
.symbol-slate { background: #657680; }
.symbol-moss-soft { background: #6d8b75; }
.symbol-rust { background: #8f5d49; }
.symbol-team { background: linear-gradient(145deg, #41604b, #687a6d); }

.agent-card h3 {
  margin: 26px 0 0;
  font-size: 29px;
  font-weight: 570;
  letter-spacing: -0.052em;
  line-height: 1.03;
}

.agent-card-button > p,
.agent-featured-layout p {
  max-width: 390px;
  margin: 17px 0 0;
  color: #69746c;
  font-size: 13px;
  line-height: 1.62;
}

.agent-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 27px;
}

.agent-skill-list span {
  padding: 7px 9px;
  border: 1px solid rgba(79, 107, 87, 0.12);
  border-radius: 99px;
  background: rgba(236, 240, 235, 0.75);
  color: #68766c;
  font-family: var(--mono);
  font-size: 7px;
}

.agent-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 25px;
  border-top: 1px solid rgba(88, 101, 91, 0.13);
}

.runtime-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 0 10px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 600;
}

.runtime-chip img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.runtime-chip b { font-size: 14px; font-weight: 500; }
.runtime-codex { background: #e3ebe4; color: #496452; }
.runtime-codex img { filter: invert(33%) sepia(10%) saturate(1144%) hue-rotate(82deg); }
.runtime-claude { background: #f0e4dc; color: #91583e; }
.runtime-pi { background: #eee8d8; color: #886d32; }

.skill-stack {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7f8981;
  font-family: var(--mono);
  font-size: 7px;
}

.skill-stack i {
  font-style: normal;
}

.skill-stack i:last-child {
  padding: 5px 7px;
  border-radius: 99px;
  background: rgba(232, 235, 230, 0.85);
}

.package-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid #d8dcd7;
  border-radius: 50%;
  color: var(--moss);
  font-size: 15px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  place-items: center;
}

.agent-card-button:hover .package-arrow {
  background: var(--moss-dark);
  color: white;
  transform: rotate(10deg);
}

.agent-featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  align-items: end;
  gap: 50px;
}

.agent-featured-layout h3 {
  margin-top: 26px;
  font-size: clamp(38px, 4vw, 55px);
}

.agent-manifest {
  border-top: 1px solid #d7dcd6;
}

.agent-manifest > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid #d7dcd6;
}

.agent-manifest small {
  color: #8a938c;
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.agent-manifest strong {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 550;
}

.market-empty {
  margin-top: 28px;
  padding: 95px 30px;
  border: 1px dashed #c7cec7;
  border-radius: 24px;
  text-align: center;
}

.market-empty[hidden] { display: none; }

.market-empty span {
  color: #8d978f;
  font-family: var(--mono);
  font-size: 9px;
}

.market-empty h3 {
  margin: 16px 0 0;
  font-size: 34px;
  font-weight: 560;
  letter-spacing: -0.045em;
}

.market-empty p { margin: 10px 0 24px; color: var(--muted); }

.market-empty button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #ccd3cc;
  border-radius: 99px;
  background: white;
  cursor: pointer;
  font-size: 11px;
}

.portable-story {
  padding: 170px 0;
  background: #1c231d;
  color: #f1f3ef;
}

.portable-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 100px;
}

.portable-copy .eyebrow { color: #95b09c; }

.portable-copy > p:not(.eyebrow) {
  max-width: 510px;
  margin: 30px 0 0;
  color: #a8b3ab;
  font-size: 16px;
  line-height: 1.7;
}

.portable-ledger {
  overflow: hidden;
  border: 1px solid rgba(215, 227, 217, 0.13);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.ledger-head,
.ledger-row {
  display: grid;
  align-items: center;
}

.ledger-head {
  grid-template-columns: 1fr auto;
  min-height: 62px;
  padding: 0 23px;
  border-bottom: 1px solid rgba(215, 227, 217, 0.1);
  color: #7f8c82;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.ledger-row {
  grid-template-columns: 42px 1fr auto;
  min-height: 92px;
  padding: 0 23px;
  border-bottom: 1px solid rgba(215, 227, 217, 0.1);
}

.ledger-row:last-child { border-bottom: 0; }

.ledger-row > span {
  color: #5f6d63;
  font-family: var(--mono);
  font-size: 8px;
}

.ledger-row strong,
.ledger-row small { display: block; }
.ledger-row strong { font-size: 13px; }
.ledger-row small { margin-top: 5px; color: #78857b; font-family: var(--mono); font-size: 7px; }

.ledger-row b {
  padding: 6px 9px;
  border-radius: 99px;
  background: rgba(123, 161, 132, 0.1);
  color: #91af99;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 550;
}

.ledger-row.stays-local b {
  background: rgba(182, 116, 83, 0.1);
  color: #c58a6e;
}

.publish-callout {
  padding: 145px 0;
  background: #e5e9e2;
}

.publish-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 95px;
  padding: 78px;
  border: 1px solid rgba(79, 101, 85, 0.14);
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.8), transparent 35%),
    rgba(247, 248, 244, 0.6);
  box-shadow: 0 25px 70px rgba(52, 68, 56, 0.08), 0 1px 0 white inset;
}

.publish-panel h2 { font-size: clamp(48px, 5.4vw, 76px); }

.publish-copy > p {
  margin: 0 0 27px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.68;
}

.publish-copy button,
.agent-install {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0 19px;
  border: 0;
  border-radius: 14px;
  background: var(--moss-dark);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 620;
}

.publish-copy button span,
.agent-install span {
  color: #9eb3a3;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-detail-dialog {
  position: fixed;
  width: min(620px, calc(100% - 28px));
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(67, 86, 72, 0.2);
  border-radius: 27px;
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 228, 217, 0.54), transparent 34%),
    #fafaf7;
  color: var(--ink);
  box-shadow: 0 45px 120px rgba(24, 33, 27, 0.35);
}

.agent-detail-dialog::backdrop {
  background: rgba(26, 31, 27, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.agent-detail-dialog[open] {
  animation: dialog-in 300ms cubic-bezier(.2,.8,.2,1);
}

.agent-detail-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #e8ece7;
  color: #69736b;
  cursor: pointer;
  font-size: 21px;
  place-items: center;
}

.agent-detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 38px;
}

.agent-detail-head .agent-symbol {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.agent-detail-head small {
  color: var(--moss);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-detail-head h2 {
  margin: 7px 0 0;
  font-size: 34px;
  font-weight: 570;
  letter-spacing: -0.052em;
  line-height: 1;
}

.agent-detail-identity {
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.68;
}

.agent-detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 26px;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.agent-detail-fields > span {
  min-height: 74px;
  padding: 15px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.agent-detail-fields small,
.agent-detail-fields strong { display: block; }
.agent-detail-fields small { color: #8b948c; font-family: var(--mono); font-size: 7px; text-transform: uppercase; }
.agent-detail-fields strong { margin-top: 8px; font-family: var(--mono); font-size: 10px; font-weight: 550; }

.agent-detail-skills {
  margin-top: 25px;
}

.agent-detail-members {
  margin-top: 25px;
}

.agent-detail-members[hidden] { display: none; }

.agent-detail-members > small {
  color: #8b948c;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.agent-detail-members > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.agent-detail-members span {
  padding: 8px 10px;
  border: 1px solid #d9ded9;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.64);
  color: #536057;
  font-size: 9px;
  font-weight: 560;
}

.agent-detail-skills > small {
  color: #8b948c;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.agent-detail-skills > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.agent-detail-skills span {
  padding: 8px 10px;
  border-radius: 99px;
  background: #e6ece6;
  color: #5d6e61;
  font-family: var(--mono);
  font-size: 8px;
}

.agent-detail-package {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
  color: #8a938c;
  font-family: var(--mono);
  font-size: 7px;
}

.agent-install { margin-top: 10px; }
.agent-install strong { font: inherit; }

@media (max-width: 1100px) {
  .market-hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
    padding-inline: 52px;
  }

  .package-vignette { transform: scale(0.86); }
  .agent-card { grid-column: span 6; }
  .agent-card-featured { grid-column: span 12; }
  .portable-grid { grid-template-columns: 1fr; }
  .portable-copy { max-width: 720px; }
}

@media (max-width: 820px) {
  .market-hero { padding: 88px 10px 18px; }
  .market-hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 70px 36px 30px;
    border-radius: 27px;
  }

  .market-hero h1 { font-size: clamp(64px, 14vw, 92px); }
  .package-vignette { min-height: 500px; transform: scale(0.9); }
  .market-browse { padding: 96px 0 125px; }
  .browse-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .browse-heading-tools { width: 100%; justify-content: space-between; }
  .browse-heading-tools > p { max-width: 620px; text-align: left; }
  .browse-shelf { grid-template-columns: 1fr auto; }
  .agent-search { grid-column: 1 / -1; }
  .runtime-filters { overflow-x: auto; }
  .result-count { justify-self: end; }
  .agent-card, .agent-card-featured { grid-column: span 6; }
  .agent-featured-layout { grid-template-columns: 1fr; gap: 24px; }
  .agent-manifest { display: none; }
  .agent-featured-layout h3 { font-size: 34px; }
  .portable-story { padding: 120px 0; }
  .portable-grid { gap: 60px; }
  .publish-callout { padding: 100px 0; }
  .publish-panel { grid-template-columns: 1fr; gap: 45px; padding: 50px 38px; }
}

@media (max-width: 560px) {
  .market-hero-panel { padding: 58px 24px 12px; }
  .market-hero h1 { font-size: 61px; }
  .market-hero-summary { font-size: 16px; }
  .market-hero-meta { flex-wrap: wrap; }
  .package-vignette { min-height: 440px; margin: -12px -42px 0; transform: scale(0.76); }
  .browse-heading h1 { font-size: 10px; }
  .browse-heading-tools { align-items: flex-start; flex-direction: column; gap: 12px; }
  .portable-copy h2, .publish-panel h2 { font-size: 48px; }
  .browse-shelf { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
  .runtime-filters { width: 100%; }
  .runtime-filters button { flex: 1 0 auto; }
  .result-count { justify-self: start; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-card, .agent-card-featured { grid-column: 1; min-height: 430px; }
  .agent-card-button { padding: 23px; border-radius: 20px; }
  .agent-featured-layout h3 { font-size: 33px; }
  .skill-stack { display: none; }
  .portable-ledger { border-radius: 20px; }
  .ledger-row { grid-template-columns: 32px 1fr; padding: 13px 16px; }
  .ledger-row b { grid-column: 2; justify-self: start; margin-top: 9px; }
  .publish-panel { padding: 38px 23px; border-radius: 24px; }
  .agent-detail-dialog { padding: 31px 22px 24px; }
  .agent-detail-head { align-items: flex-start; flex-direction: column; }
  .agent-detail-head h2 { font-size: 31px; }
  .agent-detail-fields { grid-template-columns: 1fr; }
  .agent-detail-package { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .agent-card-button:hover,
  .package-vignette {
    transform: none;
  }
}
