
  .gx-pub { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-2);
      color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
  .gx-pub:hover { border-color: var(--accent); color: var(--bright); }
  .gx-pub svg, .gx-pubd svg, .gx-xp svg { width: 14px; height: 14px; flex: none; }
  .gx-pubd { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--muted); font-size: 12px; }
  .gx-xp { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); color: var(--muted); font-size: 12px; border: 0; font: inherit; font-size: 12px; cursor: default; }
  .gx-xp.go { cursor: pointer; } .gx-xp.go:hover { color: var(--bright); }
  .gx-xp b { color: var(--text); font-weight: 600; }
  /* follow + webhooks dialogs */
  .gx-fl-row, .gx-wh-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); margin-bottom: 8px; }
  .gx-fl-row > div, .gx-wh-row > div { flex: 1; min-width: 0; }
  .gx-fl-row b, .gx-wh-row b { display: block; color: var(--bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gx-fl-row small, .gx-wh-row small { color: var(--muted); font-size: 12px; }
  .gx-wh-row button, .gx-fl-row button { flex: none; }
  .gx-fl-pick { display: grid; gap: 8px; margin: 10px 0 14px; }
  .gx-fl-pick select { width: 100%; }
  .gx-sub { color: var(--muted); font-size: 13px; margin: 0 0 10px; line-height: 1.5; }
  .gx-h4 { margin: 14px 0 8px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .gx-url { display: flex; gap: 6px; margin: 8px 0; }
  .gx-url input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; direction: ltr; }
  .gx-code { background: var(--bg-3, var(--bg-2)); border-radius: 8px; padding: 10px; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; direction: ltr; text-align: left; color: var(--text); }
  .gx-warn { color: var(--yellow, #faa61a); font-size: 12.5px; margin: 6px 0; }
  /* discover */
  #gx-disc { display: none; flex: 1; min-width: 0; min-height: 0; flex-direction: column; background: var(--bg-2); color: var(--text); overflow: hidden; position: relative; }
  .app.disc-on > aside, .app.disc-on > main { display: none !important; }
  .app.disc-on > #gx-disc { display: flex; }
  #gx-disc .gx-dc-grid { width: 100%; max-width: 1280px; margin-inline: auto; }
  #gx-disc .gx-dc-cats { width: 100%; max-width: 1280px; margin-inline: auto; }
  #gx-disc .gx-dc-hero { padding-inline: max(28px, calc((100% - 1224px) / 2)); }
  #gx-disc-btn.on { background: var(--accent); color: var(--on-accent, #fff); }
  .gx-dc-wrap { display: flex; flex-direction: column; height: 100%; width: 100%; flex: 1; min-width: 0; }
  .gx-dc-hero { position: relative; padding: 34px 28px 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, #000) 0%, color-mix(in srgb, var(--accent) 35%, #12131a) 100%); color: #fff; }
  .gx-dc-hero h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
  .gx-dc-hero p { margin: 0 0 16px; opacity: .85; font-size: 14px; }
  .gx-dc-hero input { width: min(560px, 100%); padding: 11px 14px; border-radius: 10px; border: 0; background: rgba(255,255,255,.95); color: #111; font: inherit; font-size: 15px; }
  .gx-dc-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.25); color: #fff; cursor: pointer; font-size: 16px; }
  .gx-dc-cats { display: flex; gap: 8px; padding: 14px 28px 4px; overflow-x: auto; scrollbar-width: none; }
  .gx-dc-cats button { flex: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
  .gx-dc-cats button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
  .gx-dc-grid { flex: 1; overflow-y: auto; padding: 14px 28px 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; align-content: start; }
  .gx-dc-card { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); transition: transform .15s, box-shadow .15s; }
  .gx-dc-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
  .gx-dc-bn { height: 96px; background-size: cover; background-position: center; position: relative; }
  .gx-dc-ic { position: absolute; bottom: -22px; inset-inline-start: 14px; width: 48px; height: 48px; border-radius: 14px; border: 4px solid var(--bg-2); background: var(--accent) center/cover; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; }
  .gx-dc-body { padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .gx-dc-body b { color: var(--bright); font-size: 15px; display: flex; align-items: center; gap: 6px; }
  .gx-dc-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
  .gx-dc-st { display: flex; gap: 12px; color: var(--muted); font-size: 12px; align-items: center; }
  .gx-dc-st i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 4px; background: var(--green, #3ba55c); }
  .gx-dc-st i.g { background: var(--muted); }
  .gx-dc-card .btn { margin-top: 8px; width: 100%; }
  .gx-dc-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 10px; }
  .gx-dc-empty b { display: block; color: var(--bright); font-size: 16px; margin-bottom: 6px; }
  .gx-dc-ver { color: var(--accent); }
  .gx-dc-ver svg { width: 15px; height: 15px; }
  @media (max-width: 600px) {
    .gx-dc-hero { padding: 26px 16px 16px; } .gx-dc-cats { padding: 12px 16px 4px; } .gx-dc-grid { padding: 12px 16px 20px; grid-template-columns: 1fr; }
  }
  .gx-ds-prev { margin-top: 12px; max-width: 280px; }
