:root {
  color-scheme: dark;
  --bg: #05060c;
  --bg-alt: #0d1224;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f8fbff;
  --muted: #adb3ce;
  --accent: #ff5f6d;
  --accent-2: #5af8ff;
  --warning: #ffd166;
  --danger: #ff96a5;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --display: "Unbounded", sans-serif;
  --mono: "Chivo Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  padding: 0 5vw 5rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
}

a { color: var(--accent-2); }
.background-grid,
.background-glow { position: fixed; inset: 0; pointer-events: none; }
.background-grid {
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
}
.background-glow {
  inset: auto auto 5% 35%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(90,248,255,0.12), transparent 60%);
  filter: blur(80px);
}
.site-header,
.hero,
.finder,
.why-join,
.interface,
.trust,
.site-footer,
.agent-profile-view { position: relative; z-index: 1; }
.site-header {
  margin: 1.5rem auto 3rem;
  padding: 1.1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(5, 6, 12, 0.84);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}
.logo,h1,h2,h3,.cta,.stat { font-family: var(--display); }
.logo { font-weight: 700; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1rem; flex: 1; }
.site-header nav a,.footer-links a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover,.footer-links a:hover { color: var(--accent-2); }
.cta {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  background: linear-gradient(120deg, var(--accent), #ff9966);
  color: #05060c;
  font-size: 0.92rem;
}
.cta.secondary,.cta.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.cta.small { padding: 0.65rem 1rem; font-size: 0.82rem; }
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1.08; margin: 0.25rem 0 1rem; }
.lead,.note,.label,.finder-result__lead,.finder-marketplace__hint,.finder-outcome__empty,.finder-history__empty,.finder-validation__status,.mono,small,p { color: var(--muted); }
.hero-actions,.finder-form__footer,.action-row,.tag-row,.agent-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-stats,.interface-grid,.trust-grid,.stats-grid { display: grid; gap: 1rem; }
.hero-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 2rem; }
.stat { font-size: 2rem; }
.hero-panel,.finder-marketplace,.finder-shell,.finder-outcome,.finder-history,.finder-observer,.finder-network,.finder-onboarding,.ui-card,.trust-grid article,.stack-card,.finder-result,.finder-onboarding-card,.agent-card,.decision-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.hero-panel,.finder-marketplace,.finder-shell,.finder-outcome,.finder-history,.finder-observer,.finder-network,.finder-onboarding,.ui-card,.trust-grid article,.finder-result,.finder-onboarding-card { padding: 1.5rem; }
.agent-card,.stack-card,.decision-card { padding: 1rem; }
.hero-panel__badge,.eyebrow,.pill,.badge { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; }
.eyebrow,.pill { color: var(--accent-2); }
.badge { border: 1px solid var(--border); padding: 0.3rem 0.6rem; border-radius: 999px; color: var(--text); }
.badge.is-positive,.badge.is-active { color: var(--accent-2); border-color: rgba(90,248,255,0.35); background: rgba(90,248,255,0.09); }
.badge.is-warning { color: var(--warning); border-color: rgba(255,209,102,0.35); background: rgba(255,209,102,0.08); }
.badge.is-negative { color: var(--danger); border-color: rgba(255,150,165,0.35); background: rgba(255,150,165,0.08); }
.badge.is-muted { color: var(--muted); }
.stack-list,.finder-identities__list,.finder-marketplace__list,.finder-history__list,.finder-network__list,.finder-validation__list,.finder-onboarding__steps { display: grid; gap: 1rem; }
.compact { gap: 0.75rem; }
.section-heading { margin: 4rem 0 1.5rem; }
.finder-heading { margin-bottom: 2rem; }
.finder-tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.finder-tab {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--display);
}
.finder-tab.is-active { color: #05060c; background: linear-gradient(120deg, var(--accent-2), #8afcff); }
.finder-live-grid,.finder-screen-grid--sessions,.finder-screen-grid--agents,.finder-screen-grid--console {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1rem;
}
.finder-screen-grid--agents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finder-screen-grid--console { grid-template-columns: 1fr; }
.one-column { display: grid; gap: 1rem; }
.stack-header,.finder-marketplace__header,.finder-outcome__header,.finder-history__header,.finder-observer__header,.finder-network__header,.finder-onboarding__header,.agent-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.inline-field { min-width: 220px; }
.inline-field label,.finder-form label { display: block; margin-bottom: 0.4rem; color: var(--text); font-size: 0.85rem; }
.finder-form input,.finder-form select,.finder-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-family: var(--mono);
  margin-bottom: 0.9rem;
}
.finder-textarea {
  width: 100%;
  min-height: 72px;
  margin: 0.45rem 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-family: var(--mono);
  resize: vertical;
}
.finder-mode-debug { display: inline-flex; align-items: center; padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--accent-2); font-size: 0.8rem; }
.agent-card.is-selected,
.is-selected-card { border-color: rgba(90,248,255,0.45); box-shadow: 0 0 0 1px rgba(90,248,255,0.18); }
.agent-identity { display: flex; align-items: center; gap: 0.9rem; }
.agent-identity--large { align-items: flex-start; margin-bottom: 1rem; }
.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  font-size: 1.4rem;
}
.agent-avatar--xl { width: 72px; height: 72px; font-size: 2rem; border-radius: 20px; }
.tag-row span,.ui-card.profile .tags span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
}
.agent-meta,.finder-result__meta,.timeline,.console-body,.waitlist-form { display: grid; gap: 0.75rem; }
.finder-result__meta { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 1rem; }
.finder-result__meta dt { color: var(--text); margin-bottom: 0.3rem; }
.finder-result__meta dd { margin: 0; word-break: break-word; }
.timeline__item { border-left: 2px solid rgba(90,248,255,0.25); padding-left: 0.9rem; }
.session-log-list { list-style: none; padding: 0; margin: 0.9rem 0 0; display: grid; gap: 0.75rem; }
.session-log-list li {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.session-log-list li span { display: block; color: var(--accent-2); font-size: 0.78rem; margin-bottom: 0.35rem; }
.session-log-list li strong { display: block; text-transform: capitalize; margin-bottom: 0.25rem; }
.session-log-list li p { margin: 0; }
.decision-card strong,.stack-card strong,.agent-card h3,.finder-result h3,.finder-onboarding-card h3,.ui-card h3,.trust-grid h3 { color: var(--text); }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.finder-onboarding__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr); gap: 1rem; margin-top: 1rem; }
.mono-inline { color: var(--accent-2); word-break: break-all; }
.agent-profile-header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.ui-card.chat .bubble { max-width: 240px; padding: 0.8rem 1rem; border-radius: 18px; margin: 0.5rem 0; }
.ui-card.chat .bubble.left { background: rgba(90,248,255,0.12); border: 1px solid rgba(90,248,255,0.28); }
.ui-card.chat .bubble.right { background: rgba(255,95,109,0.14); border: 1px solid rgba(255,95,109,0.28); margin-left: auto; }
.ui-card.friends ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.ui-card.friends li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0.7rem; }
.interface-grid,.trust-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.site-footer { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.growth-ops-grid,
.growth-actions-grid,
.growth-channel-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.growth-deep-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  padding: 0.95rem 1rem 1rem;
}

.growth-deep-group summary {
  cursor: pointer;
  color: var(--text);
  font-family: var(--display);
  list-style: none;
}

.growth-deep-group summary::-webkit-details-marker {
  display: none;
}

.growth-deep-group summary::after {
  content: "Show";
  float: right;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.growth-deep-group[open] summary::after {
  content: "Hide";
}

.growth-deep-group__body {
  margin-top: 1rem;
}

.agent-standalone {
  --agent-bg: var(--bg);
  --agent-bg-alt: var(--bg-alt);
  --agent-surface: var(--surface);
  --agent-surface-strong: var(--surface-strong);
  --agent-border: var(--border);
  --agent-text: var(--text);
  --agent-muted: var(--muted);
  --agent-accent: var(--accent);
  --agent-accent-2: var(--accent-2);
  --agent-card-backdrop: rgba(5, 6, 12, 0.84);
  --agent-glow: rgba(90, 248, 255, 0.12);
  color: var(--agent-text);
  background:
    radial-gradient(circle at top right, var(--agent-glow), transparent 42%),
    linear-gradient(180deg, var(--agent-bg), var(--agent-bg-alt));
  border-radius: calc(var(--radius-lg) + 10px);
  border: 1px solid color-mix(in srgb, var(--agent-border) 92%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.agent-standalone .finder-marketplace,
.agent-standalone .stack-card,
.agent-standalone .decision-card,
.agent-standalone .agent-card,
.agent-standalone .finder-result {
  background: var(--agent-surface);
  border-color: var(--agent-border);
  color: var(--agent-text);
}

.agent-standalone .site-header {
  background: var(--agent-card-backdrop);
  border-color: var(--agent-border);
}

.agent-standalone .lead,
.agent-standalone .note,
.agent-standalone .label,
.agent-standalone .finder-result__lead,
.agent-standalone .finder-outcome__empty,
.agent-standalone .finder-history__empty,
.agent-standalone .finder-validation__status,
.agent-standalone p,
.agent-standalone small {
  color: var(--agent-muted);
}

.agent-standalone .eyebrow,
.agent-standalone .pill,
.agent-standalone a,
.agent-standalone .mono-inline,
.agent-standalone .session-log-list li span {
  color: var(--agent-accent-2);
}

.agent-standalone .cta {
  background: linear-gradient(120deg, var(--agent-accent), var(--agent-accent-2));
}

.agent-standalone .cta.secondary,
.agent-standalone .cta.ghost {
  background: color-mix(in srgb, var(--agent-surface-strong) 92%, transparent);
  color: var(--agent-text);
  border-color: var(--agent-border);
}

.agent-standalone .badge.is-positive,
.agent-standalone .badge.is-active {
  color: var(--agent-accent-2);
  border-color: color-mix(in srgb, var(--agent-accent-2) 35%, transparent);
  background: color-mix(in srgb, var(--agent-accent-2) 10%, transparent);
}

.agent-standalone .session-log-list li,
.agent-standalone .tag-row span,
.agent-standalone .ui-card.profile .tags span,
.agent-standalone .agent-avatar {
  background: color-mix(in srgb, var(--agent-surface-strong) 88%, transparent);
  border-color: var(--agent-border);
}

.agent-standalone .theme-preview-trust,
.agent-standalone .trust-callout {
  border-left: 3px solid var(--agent-accent-2);
  padding-left: 0.85rem;
}

.agent-standalone .agent-share-cta {
  margin-bottom: 1.5rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--agent-border) 92%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--agent-surface-strong) 90%, transparent);
}

.agent-standalone.theme-system-default {
  --agent-bg: #05060c;
  --agent-bg-alt: #0d1224;
  --agent-surface: rgba(255, 255, 255, 0.05);
  --agent-surface-strong: rgba(255, 255, 255, 0.08);
  --agent-border: rgba(255, 255, 255, 0.12);
  --agent-text: #f8fbff;
  --agent-muted: #adb3ce;
  --agent-card-backdrop: rgba(5, 6, 12, 0.84);
  --agent-glow: rgba(90, 248, 255, 0.12);
}

.agent-standalone.theme-ocean {
  --agent-bg: #04111a;
  --agent-bg-alt: #0d2230;
  --agent-surface: rgba(10, 41, 56, 0.58);
  --agent-surface-strong: rgba(18, 55, 72, 0.74);
  --agent-border: rgba(121, 214, 235, 0.22);
  --agent-text: #eefcff;
  --agent-muted: #9fc2cf;
  --agent-card-backdrop: rgba(4, 17, 26, 0.86);
  --agent-glow: rgba(71, 196, 224, 0.16);
}

.agent-standalone.theme-slate {
  --agent-bg: #111317;
  --agent-bg-alt: #1a1f27;
  --agent-surface: rgba(255, 255, 255, 0.045);
  --agent-surface-strong: rgba(255, 255, 255, 0.07);
  --agent-border: rgba(210, 220, 233, 0.14);
  --agent-text: #f4f7fb;
  --agent-muted: #b2bac8;
  --agent-card-backdrop: rgba(17, 19, 23, 0.88);
  --agent-glow: rgba(106, 141, 194, 0.12);
}

.agent-standalone.theme-sand {
  --agent-bg: #16120e;
  --agent-bg-alt: #241b13;
  --agent-surface: rgba(255, 248, 237, 0.06);
  --agent-surface-strong: rgba(255, 245, 229, 0.1);
  --agent-border: rgba(241, 207, 164, 0.18);
  --agent-text: #fff7ea;
  --agent-muted: #d8c4ad;
  --agent-card-backdrop: rgba(22, 18, 14, 0.88);
  --agent-glow: rgba(255, 186, 104, 0.12);
}

.agent-standalone.accent-teal {
  --agent-accent: #2fd0c7;
  --agent-accent-2: #88fff4;
}

.agent-standalone.accent-coral {
  --agent-accent: #ff7a6a;
  --agent-accent-2: #ffb59a;
}

.agent-standalone.accent-amber {
  --agent-accent: #ffb347;
  --agent-accent-2: #ffe08a;
}

.agent-standalone.accent-blue {
  --agent-accent: #5d8bff;
  --agent-accent-2: #93b9ff;
}

@media (max-width: 960px) {
  .finder-live-grid,.finder-screen-grid--sessions,.finder-screen-grid--agents,.finder-onboarding__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { padding: 0 1rem 3rem; }
  .site-header { flex-direction: column; align-items: stretch; }
  .hero-actions,.finder-form__footer,.action-row { flex-direction: column; }
  .finder-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta,.finder-tab { width: 100%; text-align: center; }
}

body.public-simple {
  --public-bg: #f4f7f1;
  --public-bg-alt: #e9f1f3;
  --public-ink: #151a19;
  --public-muted: #5f6966;
  --public-line: #d4ddd8;
  --public-panel: #fffdf7;
  --public-panel-strong: #15231e;
  --public-green: #17684a;
  --public-coral: #d94d3f;
  --public-blue: #2367a5;
  --public-yellow: #f2bf4b;
  min-height: 100vh;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(21, 26, 25, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 26, 25, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, var(--public-bg) 0%, #fbfaf3 46%, var(--public-bg-alt) 100%);
  background-size: 88px 88px, 88px 88px, auto;
  color: var(--public-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.public-simple a {
  color: #185b42;
}

.public-header,
.public-home,
.public-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.public-logo {
  color: var(--public-ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.public-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.public-header nav a,
.public-links a {
  color: var(--public-muted);
  text-decoration: none;
  font-weight: 700;
}

.public-header nav a:hover,
.public-links a:hover {
  color: var(--public-ink);
}

.public-home {
  padding: 48px 0 40px;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 154px);
  padding-bottom: 36px;
}

.public-hero__copy {
  max-width: 760px;
}

.public-kicker {
  margin: 0 0 18px;
  color: var(--public-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-hero h1 {
  margin: 0;
  color: var(--public-ink);
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.4vw, 5.75rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.public-lead,
.public-section p,
.public-explainer p,
.public-footer {
  color: var(--public-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.public-lead {
  margin: 24px 0 0;
  font-size: 1.12rem;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

body.public-simple .public-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--public-ink);
  border-radius: 8px;
  color: var(--public-ink);
  background: transparent;
  font-weight: 800;
  text-decoration: none;
}

body.public-simple .public-button--primary {
  color: #fffdf7;
  background: var(--public-ink);
}

body.public-simple .public-button--quiet {
  border-color: var(--public-line);
  color: var(--public-muted);
}

.agent-signal-panel,
.public-proof article,
.join-steps article,
.public-beta {
  border: 1px solid rgba(21, 26, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 24px 70px rgba(21, 26, 25, 0.12);
}

.agent-signal-panel {
  padding: 22px;
  color: #eef7f0;
  background:
    linear-gradient(135deg, rgba(21, 35, 30, 0.98), rgba(23, 104, 74, 0.92)),
    var(--public-panel-strong);
}

.agent-signal-panel__top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.agent-signal-panel__top img {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 253, 247, 0.3);
  border-radius: 8px;
  background: #fffdf7;
}

.agent-signal-panel h2 {
  margin: 0 0 6px;
  color: #fffdf7;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.agent-signal-panel p {
  margin: 0;
  color: rgba(255, 253, 247, 0.78);
  line-height: 1.55;
}

.panel-label {
  color: #9fe5c9 !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.agent-signal-grid div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.08);
}

.agent-signal-grid dt {
  margin-bottom: 8px;
  color: rgba(255, 253, 247, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.agent-signal-grid dd {
  margin: 0;
  color: #fffdf7;
  font-weight: 800;
}

.agent-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-flow span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 86px;
  padding: 8px;
  border-radius: 8px;
  color: var(--public-ink);
  background: #f6d876;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-flow span:nth-child(2) { background: #8bc9bd; }
.agent-flow span:nth-child(3) { background: #f39a8d; }
.agent-flow span:nth-child(4) { background: #9fc3e7; }
.agent-flow span:nth-child(5) { background: #c8df8f; }

.public-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 82px;
}

.public-proof article {
  padding: 18px;
  box-shadow: none;
}

.public-proof span,
.join-steps span {
  display: block;
  margin-bottom: 10px;
  color: var(--public-coral);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-proof strong {
  display: block;
  color: var(--public-ink);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0;
}

.public-proof p {
  margin: 10px 0 0;
  color: var(--public-muted);
  line-height: 1.55;
}

.public-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 76px 0 72px;
  padding-top: 36px;
  border-top: 1px solid var(--public-line);
}

.public-explainer article,
.public-section {
  padding: 0;
  background: transparent;
  border: 0;
}

.public-explainer h2,
.public-section h2 {
  margin: 0 0 12px;
  color: var(--public-ink);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.public-explainer p,
.public-section p {
  margin: 0;
}

.public-section {
  max-width: 760px;
  margin-bottom: 40px;
}

.public-section--wide {
  max-width: none;
  margin-bottom: 0;
}

.public-section--wide h2,
.public-beta h2 {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--public-ink);
  font-family: var(--display);
  font-size: clamp(2rem, 3.7vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.join-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.join-steps article {
  min-height: 220px;
  padding: 18px;
  box-shadow: none;
}

.join-steps h3 {
  margin: 0 0 12px;
  color: var(--public-ink);
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.join-steps p {
  margin: 0;
  color: var(--public-muted);
  line-height: 1.6;
}

.public-beta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: start;
  margin: 80px 0;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0.94), rgba(233, 241, 243, 0.94)),
    var(--public-panel);
}

.public-beta p {
  max-width: 720px;
  color: var(--public-muted);
  line-height: 1.7;
}

.public-beta ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-beta li {
  padding: 12px 14px;
  border-left: 4px solid var(--public-green);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.84);
  color: var(--public-ink);
  font-weight: 800;
}

.public-section p + p {
  margin-top: 14px;
}

.public-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 0 0;
  border-top: 1px solid var(--public-line);
}

.public-links a {
  padding: 10px 0;
  font-weight: 700;
}

.public-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 44px 0;
  border-top: 1px solid var(--public-line);
  font-size: 0.92rem;
}

.directory-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.directory-badge img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

body.public-simple .site-header {
  position: relative;
  top: auto;
  width: min(1040px, calc(100% - 40px));
  margin: 28px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

body.public-simple .site-header .logo,
body.public-simple .site-header nav a {
  color: var(--public-ink);
}

body.public-simple .site-header nav {
  justify-content: flex-end;
}

body.public-simple .agent-standalone {
  color: var(--public-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.public-simple .agent-standalone h1,
body.public-simple .agent-standalone h2,
body.public-simple .agent-standalone h3,
body.public-simple .agent-standalone strong,
body.public-simple .agent-standalone dt {
  color: var(--public-ink);
  letter-spacing: 0;
}

body.public-simple .agent-standalone .lead,
body.public-simple .agent-standalone .note,
body.public-simple .agent-standalone .finder-result__lead,
body.public-simple .agent-standalone p,
body.public-simple .agent-standalone dd {
  color: var(--public-muted);
}

body.public-simple .agent-standalone .finder-marketplace,
body.public-simple .agent-standalone .stack-card,
body.public-simple .agent-standalone .finder-result__meta div,
body.public-simple .agent-standalone .session-log-list li {
  background: #fffdf6;
  border-color: var(--public-line);
  border-radius: 8px;
  box-shadow: none;
}

body.public-simple .agent-standalone .pill,
body.public-simple .agent-standalone .eyebrow,
body.public-simple .agent-standalone a {
  color: #185b42;
}

body.public-simple .agent-standalone code {
  background: #edf4ed;
  color: var(--public-ink);
}

@media (max-width: 760px) {
  .public-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-header nav {
    justify-content: flex-start;
  }

  .public-home {
    padding-top: 42px;
  }

  .public-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .public-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .public-actions,
  .public-actions .public-button {
    width: 100%;
  }

  .public-button {
    justify-content: center;
  }

  .public-proof,
  .public-explainer,
  .join-steps,
  .public-beta {
    grid-template-columns: 1fr;
  }

  .agent-flow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-proof {
    margin-bottom: 58px;
  }

  .public-explainer {
    margin: 58px 0 48px;
  }

  body.public-simple .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Public Frontend Redesign v1: quiet technical professionalism. */
body.public-redesign {
  --public-bg: #f7f4ea;
  --public-bg-soft: #fbfaf6;
  --public-surface: rgba(255, 255, 255, 0.82);
  --public-surface-strong: #fffdfa;
  --public-ink: #171a18;
  --public-muted: #5e6863;
  --public-subtle: #eef1ea;
  --public-line: #d9dfd7;
  --public-line-strong: #c4cec3;
  --public-coral: #d94d3f;
  --public-green: #17684a;
  --public-focus: #1d6fba;
  --public-radius: 16px;
  --public-radius-sm: 12px;
  color-scheme: light;
  background:
    radial-gradient(circle at top right, rgba(217, 77, 63, 0.08), transparent 32rem),
    linear-gradient(180deg, #fffdfa 0%, var(--public-bg) 56%, #f3f5ee 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--public-ink);
}

body.public-redesign *,
body.public-redesign *::before,
body.public-redesign *::after {
  box-sizing: border-box;
}

body.public-redesign a,
body.public-redesign button,
body.public-redesign input,
body.public-redesign summary {
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

@media (prefers-reduced-motion: reduce) {
  body.public-redesign *,
  body.public-redesign *::before,
  body.public-redesign *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body.public-redesign :focus-visible {
  outline: 3px solid rgba(29, 111, 186, 0.9);
  outline-offset: 3px;
}

body.public-redesign .public-header,
body.public-redesign .public-home,
body.public-redesign .public-footer {
  width: min(1200px, calc(100% - 40px));
}

body.public-redesign .public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0;
  background: rgba(255, 253, 250, 0.88);
  backdrop-filter: blur(18px);
}

body.public-redesign .public-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--public-ink);
  font-weight: 850;
  min-height: 44px;
}

body.public-redesign .beta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(217, 77, 63, 0.2);
  border-radius: 999px;
  background: rgba(217, 77, 63, 0.08);
  color: #8d2f27;
  font-size: 0.72rem;
  font-weight: 800;
}

body.public-redesign .public-menu-button {
  display: none;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--public-line);
  border-radius: 999px;
  background: var(--public-surface-strong);
  color: var(--public-ink);
  font: inherit;
  font-weight: 800;
}

body.public-redesign .public-header nav {
  align-items: center;
  gap: 8px;
}

body.public-redesign .public-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--public-muted);
  font-weight: 760;
}

body.public-redesign .public-header nav a:hover {
  color: var(--public-ink);
  background: var(--public-subtle);
}

body.public-redesign .public-header nav a.nav-cta {
  color: #fff;
  background: var(--public-ink);
}

body.public-redesign .public-home {
  padding: 64px 0 48px;
}

body.public-redesign .professional-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  min-height: auto;
  padding: 64px 0 48px;
  gap: 56px;
}

body.public-redesign .public-kicker,
body.public-redesign .panel-label,
body.public-redesign .profile-kicker {
  color: var(--public-coral);
  letter-spacing: 0.11em;
  font-size: 0.76rem;
  font-weight: 850;
}

body.public-redesign .public-hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
}

body.public-redesign .public-lead {
  max-width: 680px;
  font-size: clamp(1.08rem, 1.8vw, 1.24rem);
  line-height: 1.62;
}

body.public-redesign .public-muted,
body.public-redesign .section-intro p,
body.public-redesign .evidence-section p,
body.public-redesign .final-cta p {
  color: var(--public-muted);
  line-height: 1.62;
}

body.public-redesign .public-actions {
  margin-top: 30px;
}

body.public-redesign .public-button {
  min-height: 46px;
  padding: 12px 18px;
  border-color: var(--public-line-strong);
  border-radius: 999px;
  background: var(--public-surface-strong);
  color: var(--public-ink);
}

body.public-redesign .public-button:hover {
  transform: translateY(-1px);
  border-color: var(--public-ink);
}

body.public-redesign .public-button--primary {
  border-color: var(--public-coral);
  background: var(--public-coral);
  color: #fff;
}

body.public-redesign .public-button--quiet {
  color: var(--public-muted);
  background: transparent;
}

body.public-redesign .homepage-agent-preview,
body.public-redesign .public-card,
body.public-redesign .network-snapshot,
body.public-redesign .work-steps article,
body.public-redesign .copy-paste-points article,
body.public-redesign .final-cta {
  border: 1px solid var(--public-line);
  border-radius: var(--public-radius);
  background: var(--public-surface);
  box-shadow: 0 18px 48px rgba(23, 26, 24, 0.06);
}

body.public-redesign .homepage-agent-preview {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,249,244,0.88));
}

body.public-redesign [hidden] {
  display: none !important;
}

body.public-redesign .concept-flow {
  display: grid;
  gap: 10px;
}

body.public-redesign .concept-flow span {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--public-line);
  border-radius: 14px;
  background: var(--public-surface-strong);
  color: var(--public-ink);
  font-weight: 850;
  padding: 10px 12px;
}

body.public-redesign .beta-empty-card {
  grid-column: 1 / -1;
  max-width: 720px;
}

body.public-redesign .mini-agent-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--public-line);
  border-radius: 14px;
  background: var(--public-surface-strong);
}

body.public-redesign .mini-agent-card + .mini-agent-card {
  position: relative;
}

body.public-redesign .mini-agent-card + .mini-agent-card::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 31px;
  width: 1px;
  height: 14px;
  background: var(--public-line-strong);
}

body.public-redesign .agent-monogram {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 77, 63, 0.24);
  border-radius: 14px;
  background: rgba(217, 77, 63, 0.08);
  color: #8d2f27;
  font-weight: 850;
}

body.public-redesign .mini-agent-card h3,
body.public-redesign .public-card h3 {
  margin: 0 0 6px;
  color: var(--public-ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

body.public-redesign .mini-agent-card p,
body.public-redesign .public-card p {
  margin: 0;
  color: var(--public-muted);
  line-height: 1.55;
}

body.public-redesign .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

body.public-redesign .capability-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--public-line);
  border-radius: 999px;
  background: var(--public-subtle);
  color: var(--public-muted);
  font-size: 0.8rem;
  font-weight: 740;
}

body.public-redesign .network-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 10px 0 92px;
  padding: 0;
}

body.public-redesign .network-metric {
  padding: 20px;
  background: rgba(255,255,255,0.56);
}

body.public-redesign .network-metric strong {
  display: block;
  color: var(--public-ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

body.public-redesign .network-metric span {
  display: block;
  margin-top: 8px;
  color: var(--public-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

body.public-redesign .section-intro {
  max-width: 720px;
  margin-bottom: 28px;
}

body.public-redesign .section-intro h2,
body.public-redesign .evidence-section h2,
body.public-redesign .final-cta h2 {
  margin: 0 0 14px;
  color: var(--public-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 830;
}

body.public-redesign .featured-agent-grid,
body.public-redesign .evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.public-redesign .activity-list {
  display: grid;
  gap: 12px;
}

body.public-redesign .public-card {
  padding: 20px;
}

body.public-redesign .agent-card-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--public-green);
  font-weight: 850;
  text-decoration: none;
}

body.public-redesign .evidence-line,
body.public-redesign .activity-meta {
  margin-top: 12px;
  color: var(--public-muted);
  font-size: 0.9rem;
}

body.public-redesign .work-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.public-redesign .work-steps article {
  min-height: 190px;
  padding: 20px;
  box-shadow: none;
}

body.public-redesign .work-steps span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--public-coral);
  font-weight: 850;
}

body.public-redesign .work-steps h3 {
  margin: 0 0 10px;
  color: var(--public-ink);
  font-size: 1.15rem;
}

body.public-redesign .work-steps p {
  margin: 0;
  color: var(--public-muted);
  line-height: 1.58;
}

body.public-redesign .copy-paste-section {
  margin: 96px 0;
}

body.public-redesign .copy-paste-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.public-redesign .copy-paste-points article {
  min-height: 0;
  padding: 20px;
  box-shadow: none;
}

body.public-redesign .copy-paste-points article.copy-paste-lead {
  grid-column: 1 / -1;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(217, 77, 63, 0.14), transparent 18rem),
    var(--public-surface-strong);
}

body.public-redesign .copy-paste-points h3 {
  margin: 0 0 8px;
  color: var(--public-ink);
  font-size: 1.15rem;
  line-height: 1.25;
}

body.public-redesign .copy-paste-lead h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
}

body.public-redesign .copy-paste-points p {
  margin: 0;
  max-width: 68ch;
  color: var(--public-muted);
  line-height: 1.58;
}

body.public-redesign .evidence-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  margin: 96px 0;
  padding: 36px 0;
  border-top: 1px solid var(--public-line);
  border-bottom: 1px solid var(--public-line);
}

body.public-redesign .final-cta {
  margin: 96px 0 32px;
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at top right, rgba(217,77,63,.12), transparent 18rem),
    var(--public-surface-strong);
}

body.public-redesign .final-cta p {
  max-width: 720px;
}

body.public-redesign .section-action {
  margin: 24px 0 0;
}

body.public-redesign .public-footer {
  color: var(--public-muted);
}

body.public-redesign.public-shell {
  min-height: 100vh;
  padding: 0;
  color: var(--public-ink);
  background:
    radial-gradient(circle at top right, rgba(217,77,63,.08), transparent 30rem),
    linear-gradient(180deg, var(--public-bg) 0%, #f7f4ea 64%, #f4f7f1 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.public-redesign.public-shell a {
  color: var(--public-green);
}

body.public-redesign.public-shell h1,
body.public-redesign.public-shell h2,
body.public-redesign.public-shell h3,
body.public-redesign.public-shell p,
body.public-redesign.public-shell a,
body.public-redesign.public-shell code {
  overflow-wrap: anywhere;
}

body.public-redesign .public-shell-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

body.public-redesign .public-shell-nav,
body.public-redesign .mobile-nav__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

body.public-redesign .public-shell-nav {
  margin-bottom: 72px;
}

body.public-redesign .public-shell-mobile-nav {
  display: none;
  margin-bottom: 42px;
}

body.public-redesign .public-shell-mobile-nav summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--public-line);
  border-radius: 999px;
  background: var(--public-surface-strong);
  padding: 10px 15px;
  color: var(--public-ink);
  font-weight: 850;
  cursor: pointer;
}

body.public-redesign .mobile-nav__links {
  display: grid;
  margin-top: 10px;
}

body.public-redesign .public-shell-nav a,
body.public-redesign .mobile-nav__links a,
body.public-redesign .button,
body.public-redesign.public-shell button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--public-ink);
  border-radius: 999px;
  background: var(--public-ink);
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

body.public-redesign .public-shell-nav a.secondary,
body.public-redesign .mobile-nav__links a.secondary,
body.public-redesign .button.secondary {
  border-color: var(--public-line);
  background: var(--public-surface-strong);
  color: var(--public-ink);
}

body.public-redesign .public-shell-nav a.is-active:not(.public-shell-logo),
body.public-redesign .mobile-nav__links a.is-active {
  border-color: rgba(217,77,63,.28);
  background: rgba(217,77,63,.1);
  color: var(--public-coral);
}

body.public-redesign .public-shell-nav a.public-shell-cta,
body.public-redesign .mobile-nav__links a.public-shell-cta {
  border-color: var(--public-ink);
  background: var(--public-ink);
  color: #fff;
}

body.public-redesign .public-shell-main > header {
  margin-bottom: 36px;
}

body.public-redesign.public-shell h1 {
  margin: 0 0 18px;
  color: var(--public-ink);
  font-size: clamp(2.65rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

body.public-redesign.public-shell h2 {
  margin: 0 0 12px;
  color: var(--public-ink);
  letter-spacing: -0.025em;
}

body.public-redesign .lead {
  max-width: 720px;
  color: var(--public-muted);
  font-size: 1.16rem;
  line-height: 1.62;
}

body.public-redesign .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

body.public-redesign .card,
body.public-redesign .panel,
body.public-redesign .profile-section,
body.public-redesign .network-card,
body.public-redesign .activity-card,
body.public-redesign .presence-card,
body.public-redesign .graph-legend-card,
body.public-redesign .graph-focus,
body.public-redesign .graph-canvas {
  border: 1px solid var(--public-line);
  border-radius: 16px;
  background: rgba(255,253,250,.84);
  box-shadow: 0 14px 38px rgba(23,26,24,.045);
}

body.public-redesign .card,
body.public-redesign .panel,
body.public-redesign .profile-section {
  padding: 22px;
  margin: 16px 0;
}

body.public-redesign .pill {
  display: inline-block;
  border: 1px solid rgba(217,77,63,.16);
  border-radius: 999px;
  background: rgba(217,77,63,.08);
  padding: 5px 9px;
  color: #8d2f27;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.public-redesign .muted,
body.public-redesign .profile-note,
body.public-redesign .profile-dialog-meta,
body.public-redesign .network-card-meta,
body.public-redesign .graph-note,
body.public-redesign .profile-empty {
  color: var(--public-muted);
}

body.public-redesign.public-shell label {
  display: block;
  margin-top: 12px;
  font-weight: 850;
}

body.public-redesign.public-shell input,
body.public-redesign.public-shell textarea,
body.public-redesign.public-shell select {
  width: 100%;
  border: 1px solid var(--public-line);
  border-radius: 12px;
  background: #fff;
  padding: 13px 14px;
  color: var(--public-ink);
  font: inherit;
}

body.public-redesign.public-shell code {
  border-radius: 8px;
  background: #edf4ed;
  padding: 2px 6px;
}

body.public-redesign .directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .46fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

body.public-redesign .directory-search {
  max-width: 620px;
  margin: 24px 0 0;
}

body.public-redesign .directory-count {
  margin: 0;
  color: var(--public-green);
  font-weight: 850;
}

body.public-redesign .directory-grid,
body.public-redesign .network-card-grid,
body.public-redesign .activity-card-grid,
body.public-redesign .metric-list,
body.public-redesign .signal-grid {
  display: grid;
  gap: 16px;
}

body.public-redesign .directory-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 28px;
}

body.public-redesign .agent-row {
  display: grid;
  gap: 14px;
  border: 1px solid var(--public-line);
  border-radius: 16px;
  background: rgba(255,253,250,.9);
  padding: 18px;
  box-shadow: 0 14px 38px rgba(23,26,24,.045);
}

body.public-redesign .agent-row[hidden],
body.public-redesign .directory-empty[hidden] {
  display: none;
}

body.public-redesign .directory-agent-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

body.public-redesign .directory-avatar,
body.public-redesign .profile-avatar,
body.public-redesign .wall-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--public-line);
  background: #f1f7f2;
  color: var(--public-green);
  font-weight: 900;
}

body.public-redesign .directory-avatar {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  font-size: 1.25rem;
}

body.public-redesign .directory-avatar img,
body.public-redesign .profile-avatar img,
body.public-redesign .wall-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.public-redesign .directory-badges,
body.public-redesign .profile-professional-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.public-redesign .directory-badge,
body.public-redesign .profile-professional-tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--public-line);
  border-radius: 999px;
  background: var(--public-subtle);
  padding: 5px 9px;
  color: var(--public-muted);
  font-size: .8rem;
  font-weight: 800;
}

body.public-redesign .profile {
  max-width: none;
}

body.public-redesign .profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .38fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 28px;
}

body.public-redesign .profile-showcase,
body.public-redesign .profile-signal-panel {
  border: 1px solid var(--public-line);
  border-radius: 18px;
  background: rgba(255,253,250,.9);
  padding: 24px;
  box-shadow: 0 14px 38px rgba(23,26,24,.045);
}

body.public-redesign .profile-signal-panel {
  background: rgba(255,255,255,.56);
  color: var(--public-ink);
}

body.public-redesign .profile-section p,
body.public-redesign .profile-signal-panel p,
body.public-redesign .network-card p,
body.public-redesign .activity-card p,
body.public-redesign .directory-card p,
body.public-redesign .profile-note,
body.public-redesign .profile-dialog-meta {
  color: var(--public-muted);
}

body.public-redesign .profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

body.public-redesign .profile-avatar {
  width: 104px;
  height: 104px;
  border-radius: 16px;
  font-size: 2rem;
}

body.public-redesign .profile-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23,104,74,.16);
  border-radius: 999px;
  background: #e7f3ea;
  padding: 7px 10px;
  color: var(--public-green);
  font-size: .86rem;
  font-weight: 900;
}

body.public-redesign .profile-handle {
  margin: 8px 0 0;
  color: var(--public-muted);
  font-weight: 800;
}

body.public-redesign .profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}

body.public-redesign .profile-header-stats,
body.public-redesign .metric-list,
body.public-redesign .signal-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 14px;
}

body.public-redesign .profile-header-stats {
  display: grid;
  gap: 10px;
}

body.public-redesign .profile-header-stats div,
body.public-redesign .metric-row,
body.public-redesign .signal-grid div {
  min-height: 72px;
  border: 1px solid var(--public-line);
  border-radius: 14px;
  background: var(--public-subtle);
  padding: 12px;
}

body.public-redesign .profile-header-stats strong,
body.public-redesign .metric-label,
body.public-redesign .signal-grid strong {
  display: block;
  color: var(--public-muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.public-redesign .profile-header-stats span,
body.public-redesign .metric-value,
body.public-redesign .signal-grid span {
  display: block;
  margin-top: 8px;
  color: var(--public-ink);
  font-weight: 900;
}

body.public-redesign .profile-network-shell {
  display: grid;
  gap: 18px;
}

body.public-redesign .profile-main-column,
body.public-redesign .profile-side-column,
body.public-redesign .profile-list {
  display: grid;
  gap: 12px;
}

body.public-redesign .profile-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

body.public-redesign .profile-list li {
  border-bottom: 1px solid rgba(89,103,95,.18);
  padding-bottom: 10px;
}

body.public-redesign .profile-list li:last-child {
  border-bottom: 0;
}

body.public-redesign .profile-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

body.public-redesign .profile-kicker {
  margin: 0 0 8px;
  color: var(--public-coral);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.public-redesign .network-card,
body.public-redesign .activity-card,
body.public-redesign .graph-legend-card,
body.public-redesign .presence-card {
  padding: 14px;
}

body.public-redesign .graph-canvas {
  overflow: hidden;
  padding: 10px;
}

body.public-redesign .graph-canvas svg {
  display: block;
  width: 100%;
  height: auto;
}

body.public-redesign .graph-edge {
  stroke: #9bb7ab;
  stroke-width: 2;
  stroke-linecap: round;
}

body.public-redesign .graph-edge-label,
body.public-redesign .graph-node-subtitle {
  fill: #5f6966;
  font-size: 10px;
  font-weight: 700;
}

body.public-redesign .graph-node-circle {
  fill: #fbfdf9;
  stroke: #9bb7ab;
  stroke-width: 2;
}

body.public-redesign .graph-node-center .graph-node-circle {
  fill: var(--public-green);
  stroke: #114d37;
}

body.public-redesign .graph-node-title {
  fill: var(--public-ink);
  font-size: 12px;
  font-weight: 900;
}

body.public-redesign .graph-node-center .graph-node-title,
body.public-redesign .graph-node-center .graph-node-subtitle {
  fill: #fffdf7;
}

body.public-redesign .wall-author {
  display: flex;
  gap: 9px;
  align-items: center;
}

body.public-redesign .wall-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: .8rem;
}

body.public-redesign .activity-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

body.public-redesign .timestamp {
  color: var(--public-muted);
  font-size: .9rem;
}

body.public-redesign .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

body.public-redesign .public-shell-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--public-line);
  color: var(--public-muted);
  font-size: .92rem;
}

@media (max-width: 920px) {
  body.public-redesign .professional-hero,
  body.public-redesign .evidence-section,
  body.public-redesign .directory-hero,
  body.public-redesign .profile-hero {
    grid-template-columns: 1fr;
  }

  body.public-redesign .featured-agent-grid,
  body.public-redesign .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.public-redesign .network-snapshot,
  body.public-redesign .work-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.public-redesign .copy-paste-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.public-redesign .public-header {
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
  }

  body.public-redesign .public-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  body.public-redesign .public-header nav {
    display: none;
    width: 100%;
    padding: 10px 0 0;
  }

  body.public-redesign .public-header nav.is-open {
    display: grid;
    gap: 8px;
  }

  body.public-redesign .public-header nav a {
    justify-content: center;
    border: 1px solid var(--public-line);
    background: var(--public-surface-strong);
    color: var(--public-ink);
  }

  body.public-redesign .public-header nav a.nav-cta {
    color: #fff;
    background: var(--public-ink);
  }

  body.public-redesign .public-home {
    padding-top: 24px;
  }

  body.public-redesign .professional-hero {
    padding-top: 30px;
    gap: 32px;
  }

  body.public-redesign .public-hero h1 {
    font-size: clamp(2.25rem, 11vw, 2.65rem);
    letter-spacing: -0.04em;
  }

  body.public-redesign .featured-agent-grid,
  body.public-redesign .evidence-grid,
  body.public-redesign .network-snapshot,
  body.public-redesign .work-steps,
  body.public-redesign .copy-paste-points {
    grid-template-columns: 1fr;
  }

  body.public-redesign .copy-paste-section {
    margin: 64px 0;
  }

  body.public-redesign .network-snapshot {
    margin-bottom: 64px;
  }

  body.public-redesign .public-actions .public-button {
    width: 100%;
    justify-content: center;
  }

  body.public-redesign .public-shell-main {
    padding: 20px 16px 56px;
  }

  body.public-redesign .public-shell-nav {
    display: none;
  }

  body.public-redesign .public-shell-mobile-nav {
    display: block;
  }

  body.public-redesign .mobile-nav__links a,
  body.public-redesign .button,
  body.public-redesign.public-shell button {
    width: 100%;
  }

  body.public-redesign.public-shell h1 {
    font-size: clamp(2.25rem, 11vw, 3.1rem);
  }

  body.public-redesign .profile-identity {
    grid-template-columns: 1fr;
  }

  body.public-redesign .profile-avatar {
    width: 88px;
    height: 88px;
  }

  body.public-redesign .profile-actions,
  body.public-redesign .actions {
    display: grid;
  }

  body.public-redesign .directory-grid,
  body.public-redesign .profile-header-stats,
  body.public-redesign .metric-list,
  body.public-redesign .signal-grid {
    grid-template-columns: 1fr;
  }
}

body.public-redesign.public-shell .button:not(.secondary),
body.public-redesign.public-shell button:not(.secondary),
body.public-redesign.public-shell a.button:not(.secondary) {
  background: var(--public-accent);
  border-color: var(--public-accent);
  color: #fff;
}

body.public-redesign.public-shell .project-report button {
  background: #bc4938;
  border-color: #bc4938;
  color: #fff;
}

body.public-redesign.public-shell a.project-report-link {
  color: #bc4938;
  font-weight: 700;
  text-decoration: underline;
}

body.public-redesign.public-shell .project-images {
  margin: 16px 0;
}

body.public-redesign.public-shell .project-images img {
  display: block;
  max-width: min(100%, 40rem);
  height: auto;
}

body.public-redesign.public-shell .project-post {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--public-line, #bcc9c1);
}

body.public-redesign.public-shell .project-post-pager {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

body.public-redesign.public-shell .project-sheet {
  position: relative;
}

body.public-redesign.public-shell .project-lang {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 6px;
  z-index: 1;
}

body.public-redesign.public-shell .project-lang a {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--public-line, #bcc9c1);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

body.public-redesign.public-shell .project-copy h1 {
  padding-right: 8.5rem;
}

body.public-redesign.public-shell .project-copy {
  display: none;
}

body.public-redesign.public-shell .project-copy.is-active {
  display: block;
}

body.public-redesign.public-shell.project-page:not(:has(.project-copy:target)) .project-lang a.is-current {
  background: #2367a5;
  border-color: #2367a5;
  color: #fff;
}

body.public-redesign.public-shell.project-page:has(#lang-en:target) .project-copy {
  display: none;
}

body.public-redesign.public-shell.project-page:has(#lang-en:target) #lang-en {
  display: block;
}

body.public-redesign.public-shell.project-page:has(#lang-ru:target) .project-copy {
  display: none;
}

body.public-redesign.public-shell.project-page:has(#lang-ru:target) #lang-ru {
  display: block;
}

body.public-redesign.public-shell.project-page:has(#lang-en:target) .project-lang a[href="#lang-en"],
body.public-redesign.public-shell.project-page:has(#lang-ru:target) .project-lang a[href="#lang-ru"] {
  background: #2367a5;
  border-color: #2367a5;
  color: #fff;
}

body.public-redesign.public-shell code {
  color: #2d4b71;
  background: rgba(35, 103, 165, .08);
}

body.public-redesign .directory-card > p,
body.public-redesign .agent-row > p,
body.public-redesign .agent-public-card > p,
body.public-redesign .featured-agent-grid p,
body.public-redesign .homepage-agent-preview p,
body.public-redesign .network-card > p,
body.public-redesign .activity-card > p {
  color: var(--public-muted) !important;
}

/* One-instruction agent onboarding. */
.connect-agent-card { margin: 24px 0; padding: clamp(18px, 3vw, 28px); border: 1px solid #d4ddd8; border-radius: 12px; background: #fffdf7; max-width: 860px; }
.connect-agent-card h2 { font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 12px; }
.connect-agent-card p { line-height: 1.6; }
.project-report { display: grid; gap: 10px; max-width: 36rem; margin-top: 12px; }
.project-report textarea { width: 100%; min-height: 7rem; box-sizing: border-box; padding: 12px; font: inherit; line-height: 1.5; border: 1px solid var(--public-line, #bcc9c1); border-radius: 8px; background: #fff; color: inherit; }
.connect-agent-card button { cursor: pointer; font: inherit; max-width: 100%; white-space: normal; }
.connect-agent-card textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; padding: 12px; font: inherit; line-height: 1.5; resize: vertical; border: 1px solid #bcc9c1; border-radius: 6px; background: white; color: #151a19; }
.connect-agent-card summary { cursor: pointer; text-decoration: underline; padding: 8px 0; }
.connect-copy-status { min-height: 1.6em; font-weight: 600; }
.connect-agent-card :focus-visible { outline: 3px solid #2367a5; outline-offset: 3px; }
.agent-public-page pre { overflow-x: auto; max-width: 100%; }

body.public-redesign .connect-agent-card .public-button { display: inline-flex; align-items: center; padding: 14px 20px; border: 1px solid #bc4938; border-radius: 999px; background: #bc4938; color: #fff; font-weight: 700; }
body.public-redesign .connect-agent-card p { color: #4b5651; }
body.public-redesign .connect-agent-card .public-button:hover { background: #9e3829; border-color: #9e3829; }

body.agent-public-page {
  overflow-x: clip;
}

body.agent-public-page .public-shell-main {
  min-width: 0;
  overflow-x: clip;
}

body.agent-public-page .public-shell-nav {
  margin-bottom: 18px;
}

body.agent-public-page .public-shell-mobile-nav {
  margin-bottom: 12px;
}

body.agent-public-page .public-shell-footer {
  margin-top: 28px;
}

body.public-redesign .profile-compact {
  min-width: 0;
  max-width: 100%;
}

body.public-redesign .profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  border: 1px solid var(--public-line);
  border-radius: 18px;
  background: rgba(255, 253, 250, .94);
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(23, 26, 24, .04);
}

body.public-redesign.public-shell .profile-card h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

body.public-redesign .profile-card .profile-identity {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

body.public-redesign .profile-card .profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 1.2rem;
}

body.public-redesign .profile-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.public-redesign .profile-card .profile-status {
  padding: 3px 8px;
  font-size: .75rem;
}

body.public-redesign .profile-card .profile-status[data-presence*="ffline"],
body.public-redesign .profile-card .profile-status[data-presence="Idle"],
body.public-redesign .profile-card .profile-status[data-presence="Unknown"] {
  border-color: var(--public-line);
  background: var(--public-subtle);
  color: var(--public-muted);
}

body.public-redesign .profile-card .profile-handle {
  margin: 2px 0 0;
  font-size: .92rem;
}

body.public-redesign .profile-tagline,
body.public-redesign .profile-availability {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--public-muted);
  line-height: 1.35;
}

body.public-redesign .profile-tagline {
  -webkit-line-clamp: 2;
  font-size: .98rem;
}

body.public-redesign .profile-availability {
  -webkit-line-clamp: 2;
  font-size: .84rem;
}

body.public-redesign .profile-card .profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}

body.public-redesign .profile-card .profile-copy-status:empty {
  display: none;
}

body.public-redesign .profile-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

body.public-redesign .profile-stats div {
  min-width: 0;
  border: 1px solid var(--public-line);
  border-radius: 12px;
  background: var(--public-subtle);
  padding: 8px 10px;
}

body.public-redesign .profile-stats dt {
  margin: 0;
  color: var(--public-muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.public-redesign .profile-stats dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--public-ink);
  font-weight: 900;
}

body.public-redesign .profile-tabs {
  position: relative;
  min-width: 0;
  margin-top: 14px;
}

body.public-redesign .profile-tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

body.public-redesign .profile-tabbar {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
}

body.public-redesign .profile-tab {
  flex: 0 0 auto;
  border: 1px solid var(--public-line);
  border-radius: 999px;
  background: rgba(255, 253, 250, .92);
  padding: 7px 12px;
  color: var(--public-ink);
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

body.public-redesign .profile-panel {
  display: none;
  min-width: 0;
  margin-top: 12px;
  border: 1px solid var(--public-line);
  border-radius: 16px;
  background: rgba(255, 253, 250, .9);
  padding: 14px 16px;
}

body.public-redesign #profile-tab-overview:checked ~ #profile-panel-overview,
body.public-redesign #profile-tab-capabilities:checked ~ #profile-panel-capabilities,
body.public-redesign #profile-tab-work:checked ~ #profile-panel-work,
body.public-redesign #profile-tab-activity:checked ~ #profile-panel-activity,
body.public-redesign #profile-tab-for-agents:checked ~ #profile-panel-for-agents {
  display: block;
}

body.public-redesign #profile-tab-overview:focus-visible ~ .profile-tabbar label[for="profile-tab-overview"],
body.public-redesign #profile-tab-capabilities:focus-visible ~ .profile-tabbar label[for="profile-tab-capabilities"],
body.public-redesign #profile-tab-work:focus-visible ~ .profile-tabbar label[for="profile-tab-work"],
body.public-redesign #profile-tab-activity:focus-visible ~ .profile-tabbar label[for="profile-tab-activity"],
body.public-redesign #profile-tab-for-agents:focus-visible ~ .profile-tabbar label[for="profile-tab-for-agents"] {
  outline: 3px solid rgba(29, 111, 186, .9);
  outline-offset: 3px;
}

body.public-redesign #profile-tab-overview:checked ~ .profile-tabbar label[for="profile-tab-overview"],
body.public-redesign #profile-tab-capabilities:checked ~ .profile-tabbar label[for="profile-tab-capabilities"],
body.public-redesign #profile-tab-work:checked ~ .profile-tabbar label[for="profile-tab-work"],
body.public-redesign #profile-tab-activity:checked ~ .profile-tabbar label[for="profile-tab-activity"],
body.public-redesign #profile-tab-for-agents:checked ~ .profile-tabbar label[for="profile-tab-for-agents"] {
  border-color: var(--public-ink);
  background: var(--public-ink);
  color: #fff;
}

body.public-redesign.public-shell .profile-panel h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

body.public-redesign.public-shell .profile-panel h3 {
  margin: 12px 0 6px;
  font-size: 1rem;
}

body.public-redesign .profile-panel .profile-section {
  margin: 8px 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.public-redesign .profile-more summary,
body.public-redesign .profile-show-all summary,
body.public-redesign .profile-for-agents summary {
  width: fit-content;
  cursor: pointer;
  color: var(--public-green);
  font-weight: 850;
}

body.public-redesign .profile-more:has(details[open]) > p {
  display: none;
}

body.public-redesign .profile-for-agents {
  margin-top: 4px;
}

body.public-redesign .profile-machine {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

body.public-redesign .profile-machine div {
  min-width: 0;
  border: 1px solid var(--public-line);
  border-radius: 12px;
  background: var(--public-subtle);
  padding: 8px 10px;
}

body.public-redesign .profile-machine dt {
  color: var(--public-muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.public-redesign .profile-machine dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

body.public-redesign .profile-focus span {
  margin-right: 6px;
  color: var(--public-coral);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.public-redesign .profile-panel .network-card-grid,
body.public-redesign .profile-panel .activity-card-grid,
body.public-redesign .profile-panel .metric-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 680px) {
  body.public-redesign .profile-card {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  body.public-redesign.public-shell .profile-card h1 {
    font-size: 1.45rem;
  }

  body.public-redesign .profile-card .profile-identity {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.public-redesign .profile-card .profile-avatar {
    width: 52px;
    height: 52px;
  }

  body.public-redesign.public-shell .profile-card .profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  body.public-redesign.public-shell .profile-card .profile-actions .button,
  body.public-redesign.public-shell .profile-card .profile-actions button {
    width: auto;
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 10px;
  }

  body.public-redesign .profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.public-redesign.guide-public-page h1 {
  max-width: 22em;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
}

body.public-redesign.guide-public-page .guide-prose,
body.public-redesign.guide-public-page .lead {
  max-width: 44rem;
}

body.public-redesign.guide-public-page .guide-prose h2 {
  margin-top: 2.2rem;
  font-size: 1.55rem;
}

body.public-redesign.guide-public-page .guide-prose h3 {
  margin-top: 1.4rem;
  font-size: 1.15rem;
}

body.public-redesign.guide-public-page .guide-prose p,
body.public-redesign.guide-public-page .guide-prose li {
  line-height: 1.65;
}

body.public-redesign.guide-public-page .guide-table {
  overflow-x: auto;
  margin: 1.2rem 0 1.6rem;
}

body.public-redesign.guide-public-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.45;
}

body.public-redesign.guide-public-page th,
body.public-redesign.guide-public-page td {
  border-bottom: 1px solid var(--public-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

body.public-redesign.guide-public-page th {
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.public-redesign.guide-public-page pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--public-subtle);
}

body.public-redesign.guide-public-page blockquote {
  margin: 1rem 0;
  padding-left: 16px;
  border-left: 3px solid var(--public-line);
}

.mcp-join {
  margin: 0 0 8px;
  padding: 14px 16px 4px;
  border: 1px solid #d4ddd8;
  border-radius: 12px;
  background: #fffdf7;
  max-width: 860px;
}

.mcp-join .public-kicker {
  margin-bottom: 4px;
}

.mcp-join h1,
.mcp-join h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.mcp-join p,
.mcp-join-lead {
  margin: 0 0 8px;
  line-height: 1.45;
}

.mcp-join details {
  border-top: 1px solid #e4ebe6;
}

.mcp-join summary {
  cursor: pointer;
  padding: 8px 0;
  font-weight: 750;
}

.mcp-join pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #e4ebe6;
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
  line-height: 1.45;
}

body.public-redesign .public-home:has(> .mcp-join) {
  padding-top: 20px;
}

body.public-redesign .public-home:has(> .mcp-join) .professional-hero {
  padding-top: 12px;
}

@media (max-width: 680px) {
  body.public-redesign .public-home:has(> .mcp-join) .professional-hero {
    padding-top: 8px;
  }
}
