body.marketplace-app {
  background: var(--bg-white);
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.marketplace-auth-strip {
  background: var(--accent-soft);
  border-bottom: 1px solid rgba(196, 92, 38, 0.15);
  padding: 10px 20px;
  text-align: center;
}

.marketplace-auth-strip p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.marketplace-auth-strip a {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: none;
}

.marketplace-auth-strip a:hover {
  text-decoration: underline;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(10px);
}

.app-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.app-search input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
}

.app-search input:focus {
  outline: none;
  border-color: #b8b2a6;
  background: #fff;
}

.app-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
  pointer-events: none;
}

.app-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-nav-actions .user-nav {
  gap: 4px;
}

@media (max-width: 900px) {
  .app-nav-actions .btn-ghost:not(.nav-keep) {
    display: none;
  }
}

.app-nav-actions span[data-auth-out],
.app-nav-actions span[data-auth-in] {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
  overflow: hidden;
}

.marketplace-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 1101px) {
  .app-layout.detail-open {
    grid-template-columns: 240px 1fr 460px;
  }

  .app-layout:not(.detail-open) .app-detail {
    display: none;
  }

  .app-layout.detail-open .app-detail {
    display: flex;
  }
}

.app-sidebar {
  padding: 24px 16px 24px 24px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  min-height: 0;
}

.filter-group {
  margin-bottom: 28px;
}

.filter-group h3 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.filter-options {
  list-style: none;
}

.filter-options li button {
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: none;
  background: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-options li button:hover {
  background: var(--bg);
  color: var(--text);
}

.filter-options li button.active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 500;
}

.filter-count {
  font-size: 0.75rem;
  color: var(--text-light);
}

.filter-options li button.active .filter-count {
  color: var(--accent);
}

.filter-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-checks input {
  accent-color: var(--accent);
}

.app-main {
  padding: 24px;
  overflow-y: auto;
  min-width: 0;
  min-height: 0;
  scroll-behavior: smooth;
}

.main-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.main-toolbar h1 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.main-toolbar-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 2px;
}

.main-toolbar-hint {
  font-size: 0.6875rem;
  color: var(--text-light);
  margin-top: 4px;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .main-toolbar-hint {
    display: none;
  }
}

.toolbar-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-sort label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.toolbar-sort select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--text);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.catalog-pagination[hidden] {
  display: none !important;
}

.pagination-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin: 0;
}

.pagination-controls {
  display: flex;
  gap: 4px;
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #b8b2a6;
  color: var(--text);
}

.pagination-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.marketplace-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 24px;
}

.marketplace-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.marketplace-footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
}

.marketplace-footer-inner a:hover {
  color: var(--text);
}

.marketplace-footer-inner span:last-child {
  margin-left: auto;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  min-width: 0;
}

.catalog-card:hover {
  border-color: rgba(196, 92, 38, 0.35);
  background: rgba(244, 241, 234, 0.4);
}

.catalog-card.selected {
  border-color: rgba(196, 92, 38, 0.45);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 1px 0 rgba(196, 92, 38, 0.08);
}

.catalog-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.author-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.author-line svg {
  width: 13px;
  height: 13px;
  color: #2d5a2d;
  flex-shrink: 0;
}

.author-link {
  color: inherit;
  text-decoration: none;
}

.author-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.detail-expert-link {
  margin: -4px 0 12px;
}

.detail-expert-link a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.detail-expert-link a:hover {
  text-decoration: underline;
}

.detail-author {
  margin-bottom: 12px;
}

.connected-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e3efe3;
  color: #2d5a2d;
}

.catalog-card h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.catalog-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.catalog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.catalog-foot .price {
  font-size: 0.9375rem;
  font-weight: 600;
}

.catalog-foot .price small {
  font-weight: 400;
  color: var(--text-muted);
}

.rating {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rating strong {
  color: var(--text);
}

/* Detail panel — sticky master-detail */
.app-detail {
  border-left: 1px solid var(--border);
  background: var(--bg);
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  transition: opacity 0.18s ease;
}

.detail-content.is-switching {
  opacity: 0.55;
}

.detail-head {
  flex-shrink: 0;
  padding: 20px 48px 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.detail-head h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.detail-head-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.detail-head-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 0;
  scroll-behavior: smooth;
}

.detail-foot {
  flex-shrink: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(8px);
}

.detail-foot .detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-foot .detail-actions .btn-primary:only-child,
.detail-foot .detail-actions .btn:first-child:last-child {
  grid-column: 1 / -1;
}

.detail-foot .detail-note {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.45;
  text-align: center;
}

.detail-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

.detail-empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.detail-content[hidden],
.detail-empty[hidden] {
  display: none !important;
}

.detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.detail-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-stat {
  padding: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.detail-stat span {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.detail-stat strong {
  font-size: 1rem;
  font-weight: 600;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.strength-line {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.connect-block {
  background: var(--bg-dark);
  color: #d8d4cc;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.connect-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.connect-block-header span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a8680;
}

.btn-copy {
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: inherit;
  background: #2e2c28;
  color: #e8e6e1;
  border: 1px solid #3d3a35;
  border-radius: 4px;
  cursor: pointer;
}

.btn-copy:hover {
  background: #3d3a35;
}

.connect-block pre {
  font-size: 0.6875rem;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-actions .btn {
  width: 100%;
}

.detail-foot .detail-actions .btn {
  width: auto;
}

.connect-block-locked p:first-child {
  font-size: 0.8125rem;
  color: #b8b4ac;
  margin-bottom: 12px;
  line-height: 1.5;
}

.connect-block-locked pre {
  opacity: 0.55;
  filter: blur(0.5px);
}

.detail-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.5;
}

.no-results {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.no-results p {
  margin-bottom: 16px;
}

.catalog-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary:disabled {
  background: #2d5a2d;
  cursor: default;
}

@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 220px 1fr;
  }

  .app-detail {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(460px, 100vw);
    z-index: 60;
    box-shadow: -8px 0 32px rgba(28, 27, 25, 0.14);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .app-detail.open {
    transform: translateX(0);
  }

  .detail-close {
    display: flex;
  }

  body.detail-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .app-search {
    max-width: none;
  }

  .app-nav-actions .btn-ghost {
    display: none;
  }
}

.detail-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-white);
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--text-muted);
  z-index: 3;
}

.detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 25, 0.3);
  z-index: 55;
}

.detail-overlay.visible {
  display: block;
}

@media (min-width: 1101px) {
  .app-layout.detail-open .detail-close {
    display: flex;
  }

  .detail-overlay {
    display: none !important;
  }
}

/* ========================================================================== */
/*  Credential dossier — each expert is a certified, named expert's judgment.   */
/* ========================================================================== */
.cred-card {
  --accent: #8a8680;
  --accent-soft: rgba(138, 134, 128, 0.12);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 16px 26px;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, #fffefb, #fbf9f3);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(28, 27, 25, 0.04);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease;
  overflow: hidden;
}
.cred-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(28, 27, 25, 0.32);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
}
.cred-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 36px -22px rgba(28, 27, 25, 0.3);
}
.cred-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* The left bar marks the SELECTED expert (the one whose dossier is open).
   Domain colour lives in the signet / seal / chip — not here. */
.cred-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.cred-card.selected .cred-spine {
  transform: none;
}

/* The Proven seal — a certificate medallion, the marketplace's signature mark. */
.cred-rating {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cred-rating i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.9em;
  line-height: 1;
}

/* Expert identity — the human credential, celebrated. */
.cred-expert {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 72px;
  margin-bottom: 14px;
}
.cred-signet {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.cred-expert-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cred-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.cred-verified {
  display: inline-flex;
  color: #2d7d4f;
}
.cred-verified svg {
  width: 13px;
  height: 13px;
}
.cred-role {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cred-title {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}
.cred-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cred-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
}
.cred-domain {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.cred-cardstats {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cred-price {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-hover);
}
.cred-price.is-free {
  color: #2d7d4f;
}
@media (prefers-reduced-motion: reduce) {
  .cred-card { transition: none; }
  .cred-card:hover { transform: none; }
}

/* ---- Detail dossier ---- */
.cred-detail-head {
  position: relative;
  padding: 22px 22px 18px;
  background:
    radial-gradient(120% 70% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--bg);
}
.cred-detail-head .detail-close { z-index: 4; }
.cred-detail-head .cred-expert {
  padding-right: 40px;
  margin-bottom: 16px;
}
.cred-detail-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cred-detail-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.cred-detail-sub .detail-expert-link {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-hover);
  text-decoration: none;
}
.cred-detail-sub .detail-expert-link:hover { text-decoration: underline; }

/* Credential block — the dossier's spec strip, one cohesive panel. */
.cred-credential {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(140% 130% at 0% 0%, var(--accent-soft), transparent 58%),
    var(--bg-white);
  overflow: hidden;
}

.cred-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cred-specs > div {
  padding: 18px 8px;
  text-align: center;
  border-left: 1px solid var(--border);
}

.cred-specs > div:first-child {
  border-left: none;
}

.cred-specs dd {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.cred-specs dd small {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--text-light);
  margin-left: 1px;
}

.cred-specs dt {
  margin-top: 5px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

/* Decision-style radar — the expert's "decision fingerprint" in the dossier. */
.cred-style {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(130% 120% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--bg-white);
  padding: 16px 18px 14px;
}
.cred-style h3 { margin-bottom: 6px; }
.radar-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}
.style-radar {
  display: block;
  width: 100%;
  max-width: 270px;
  margin: 4px auto 0;
}
.radar-axis {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  fill: var(--text-light);
}

/* Connect snippet — a finished, real-config code card. */
.connect-block {
  background: #faf8f1;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.connect-block-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #f1ece2;
  border-bottom: 1px solid var(--border);
}
.cb-file {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.cb-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  color: var(--text-light);
}
.connect-block pre {
  margin: 0;
  padding: 13px 14px;
  overflow-x: auto;
}
.connect-block pre code {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 0.72rem;
  line-height: 1.7;
  color: #6b5e4f;
  white-space: pre;
}
.cb-note {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.btn-copy {
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-copy:hover {
  background: var(--bg);
  color: var(--text);
}
