/* ================================================================ qy-mcp-page (2026-09-27): /ai/mcp, the QynTro connector page.
   Everything is scoped to #qmcp and built on qyntro-premium.css's own tokens (--qp-*: studio black, acid lime, pink
   kickers, Space Grotesk display), with fallbacks so the page still holds if that sheet arrives late. The header above
   the page is fixed, so the page owns its top clearance.

   ONE PAGE, FOUR APPS: #qmcp[data-client] is the app picked in the tabs; anything marked data-for="<apps>" shows only
   for those apps. The server renders ?tab= straight into data-client, so the right page shows without JavaScript. */

#qmcp {
  --qm-bg: var(--qp-bg, #0f1113);
  --qm-deep: var(--qp-bg-deep, #0a0b0d);
  --qm-card: var(--qp-card, #17191d);
  --qm-card-2: var(--qp-card-hover, #1d2025);
  --qm-line: var(--qp-border, #26292e);
  --qm-line-2: var(--qp-border-strong, #34383f);
  --qm-text: var(--qp-text, #f7f7f8);
  --qm-muted: var(--qp-text-muted, #9b9ea6);
  --qm-faint: var(--qp-text-faint, #6b6e76);
  --qm-lime: var(--qp-lime, #d1fe17);
  --qm-lime-soft: var(--qp-lime-soft, rgba(209, 254, 23, 0.12));
  --qm-ink: var(--qp-lime-ink, #131517);
  --qm-pink: var(--qp-pink, #f72fa0);
  --qm-display: var(--qp-display, 'Space Grotesk', 'Poppins', sans-serif);
  --qm-mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --qm-radius: 16px;
  position: relative;
  background: var(--qm-bg);
  color: var(--qm-text);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

/* the app switch: whatever is not for the picked app is not there */
#qmcp[data-client="claude"] [data-for]:not([data-for~="claude"]),
#qmcp[data-client="chatgpt"] [data-for]:not([data-for~="chatgpt"]),
#qmcp[data-client="claude-code"] [data-for]:not([data-for~="claude-code"]),
#qmcp[data-client="other"] [data-for]:not([data-for~="other"]) { display: none !important; }

/* the theme's and Bootstrap's element rules, undone inside the page */
#qmcp *, #qmcp *::before, #qmcp *::after { box-sizing: border-box; }
#qmcp h1, #qmcp h2, #qmcp h3, #qmcp p, #qmcp ul, #qmcp ol, #qmcp li, #qmcp figure, #qmcp figcaption { margin: 0; padding: 0; }
#qmcp ul, #qmcp ol { list-style: none; }
#qmcp a { color: inherit; text-decoration: none; }
#qmcp a:hover { color: inherit; }
#qmcp code { padding: 0; background: none; color: inherit; font-family: var(--qm-mono); font-size: 0.92em; word-wrap: normal; }
#qmcp button { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: inherit; cursor: pointer; }
#qmcp img, #qmcp video { display: block; max-width: 100%; }
#qmcp :focus { outline: none; }
#qmcp :focus-visible { outline: 2px solid var(--qm-lime); outline-offset: 3px; }

#qmcp .qm-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
#qmcp .qm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- buttons, address and command chips */
#qmcp .qm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1.1; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
#qmcp .qm-btn-lg { min-height: 52px; padding: 0 26px; font-size: 15.5px; }
#qmcp .qm-btn-lime { background: var(--qm-lime); color: var(--qm-ink); box-shadow: 0 12px 34px -14px rgba(209, 254, 23, 0.6); }
#qmcp .qm-btn-lime:hover { color: var(--qm-ink); transform: translateY(-1px); box-shadow: 0 16px 40px -14px rgba(209, 254, 23, 0.75); }
#qmcp .qm-btn-ghost { border-color: var(--qm-line-2); background: rgba(255, 255, 255, 0.02); color: var(--qm-text); }
#qmcp .qm-btn-ghost:hover { border-color: var(--qm-muted); background: rgba(255, 255, 255, 0.05); color: var(--qm-text); }
#qmcp .qm-btn-ghost.is-done { border-color: rgba(209, 254, 23, 0.5); color: var(--qm-lime); }
#qmcp .qm-btn .fa-arrow-up-right { font-size: 0.85em; }

#qmcp .qm-addr {
  display: flex; align-items: center; gap: 12px; max-width: 540px; margin-top: 18px;
  padding: 6px 6px 6px 16px; border: 1px solid var(--qm-line); border-radius: 14px; background: var(--qm-card);
}
#qmcp .qm-addr-k { flex: none; color: var(--qm-faint); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
#qmcp .qm-addr-v, #qmcp .qm-cmd code {
  flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--qm-text); font-size: 14px;
  scrollbar-width: none;
}
#qmcp .qm-addr-v::-webkit-scrollbar, #qmcp .qm-cmd code::-webkit-scrollbar { display: none; }
#qmcp .qm-copy {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 10px; background: var(--qm-card-2); color: var(--qm-text); font-size: 13px; font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}
#qmcp .qm-copy:hover { background: #272b32; }
#qmcp .qm-copy.is-done { color: var(--qm-lime); }

#qmcp .qm-cmd {
  display: flex; align-items: center; gap: 10px; max-width: 620px;
  padding: 7px 7px 7px 16px; border: 1px solid var(--qm-line); border-radius: 14px; background: var(--qm-deep);
  font-family: var(--qm-mono);
}
#qmcp .qm-cmd-prompt { flex: none; color: var(--qm-lime); font-size: 14px; }
#qmcp .qm-cmd code { font-size: 13.5px; }
#qmcp .qm-cmd .qm-copy { font-family: inherit; }

#qmcp .qm-note { max-width: 540px; margin-top: 14px; color: var(--qm-muted); font-size: 13.5px; line-height: 1.6; }
#qmcp .qm-note code, #qmcp .qm-steps p code { padding: 1px 6px; border-radius: 6px; background: var(--qm-lime-soft); color: var(--qm-lime); }

#qmcp .qm-status { display: inline-flex; align-items: center; gap: 9px; color: var(--qm-lime); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
#qmcp .qm-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--qm-lime); animation: qm-pulse 2.2s ease-out infinite; }
@keyframes qm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(209, 254, 23, 0.45); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(209, 254, 23, 0); }
}

/* ---------------------------------------------------------------- hero */
#qmcp .qm-hero { position: relative; isolation: isolate; padding: 108px 0 80px; }
#qmcp .qm-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 80% 46%, rgba(209, 254, 23, 0.09), transparent 70%),
    radial-gradient(520px 340px at 6% 0%, rgba(247, 47, 160, 0.07), transparent 70%);
}
#qmcp .qm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 56px; align-items: center; }

#qmcp .qm-apps {
  display: inline-flex; flex-wrap: nowrap; gap: 4px; max-width: 100%; padding: 5px;
  border: 1px solid var(--qm-line); border-radius: 999px; background: rgba(23, 25, 29, 0.85);
  overflow-x: auto; scrollbar-width: none;
}
#qmcp .qm-apps::-webkit-scrollbar { display: none; }
#qmcp .qm-app {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border-radius: 999px;
  color: var(--qm-muted); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
#qmcp .qm-app:hover { color: var(--qm-text); background: var(--qm-card-2); }
#qmcp .qm-app[aria-selected="true"], #qmcp .qm-app[aria-selected="true"]:hover { background: var(--qm-text); color: var(--qm-ink); }
#qmcp .qm-soon { padding: 3px 7px; border-radius: 999px; background: var(--qm-lime-soft); color: var(--qm-lime); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
#qmcp .qm-app[aria-selected="true"] .qm-soon { background: var(--qm-ink); }

#qmcp .qm-title {
  margin-top: 30px; color: var(--qm-text); font-family: var(--qm-display); font-weight: 700;
  font-size: clamp(34px, 9vw, 60px); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase;
}
#qmcp .qm-title-line { display: block; }
#qmcp .qm-title em { font-style: normal; color: var(--qm-lime); }
#qmcp .qm-sub { max-width: 540px; margin-top: 24px; color: var(--qm-muted); font-size: 17px; line-height: 1.6; }
#qmcp .qm-panel { margin-top: 32px; }
#qmcp .qm-soon-box { max-width: 540px; margin-bottom: 18px; padding: 18px 20px; border: 1px dashed var(--qm-line-2); border-radius: var(--qm-radius); background: rgba(23, 25, 29, 0.6); }
#qmcp .qm-soon-box p { margin-top: 8px; color: var(--qm-muted); font-size: 14.5px; }

/* the demo: a request, the tool call, the real clip */
#qmcp .qm-demo {
  position: relative; overflow: hidden; border: 1px solid var(--qm-line); border-radius: 22px;
  background: linear-gradient(180deg, #17191d 0%, #121417 100%);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
#qmcp .qm-demo-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--qm-line); font-size: 13px; }
#qmcp .qm-demo-dots { display: inline-flex; gap: 6px; }
#qmcp .qm-demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c3036; }
#qmcp .qm-demo-app { color: var(--qm-text); font-weight: 700; }
#qmcp .qm-demo-on { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: var(--qm-lime-soft); color: var(--qm-lime); font-size: 12px; font-weight: 600; white-space: nowrap; }
#qmcp .qm-demo-body { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
#qmcp .qm-msg { font-size: 14px; line-height: 1.55; }
#qmcp .qm-msg-you { align-self: flex-end; max-width: 90%; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--qm-card-2); color: var(--qm-text); }
#qmcp .qm-msg-you > span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
#qmcp .qm-call {
  align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--qm-line); border-radius: 12px; background: var(--qm-deep);
  color: var(--qm-muted); font-size: 12.5px;
}
#qmcp .qm-call > i { color: var(--qm-lime); }
#qmcp .qm-call code { color: var(--qm-text); }
#qmcp .qm-call-ok { color: var(--qm-lime); font-weight: 600; }
#qmcp .qm-msg-ai > p { color: var(--qm-text); }
#qmcp .qm-demo-media { position: relative; margin-top: 12px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; }
#qmcp .qm-demo-media > img, #qmcp .qm-demo-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#qmcp .qm-demo-media > video { opacity: 0; transition: opacity 0.4s ease; }
#qmcp .qm-demo-media.is-playing > video { opacity: 1; }
#qmcp .qm-hero-play {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(10, 11, 13, 0.7); color: #fff; font-size: 13px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#qmcp .qm-hero-play:hover { background: var(--qm-lime); color: var(--qm-ink); }
#qmcp .qm-demo-media.is-broken .qm-hero-play { display: none; }
#qmcp .qm-demo-cap { padding: 0 20px 18px; color: var(--qm-faint); font-size: 12.5px; line-height: 1.5; }

/* ---------------------------------------------------------------- sections */
#qmcp .qm-section { padding: 92px 0; }
#qmcp .qm-head { max-width: 720px; margin-bottom: 36px; }
#qmcp .qm-kicker { color: var(--qm-pink); font-size: 12.5px; font-weight: 700; font-style: italic; letter-spacing: 0.14em; text-transform: uppercase; }
#qmcp .qm-h2 {
  margin-top: 10px; color: var(--qm-lime); font-family: var(--qm-display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance;
}
#qmcp .qm-h2 span { color: var(--qm-text); }
#qmcp .qm-lede { max-width: 640px; margin-top: 14px; color: var(--qm-muted); font-size: 16px; }
#qmcp .qm-foot { margin-top: 28px; color: var(--qm-faint); font-size: 13.5px; }
#qmcp .qm-foot a { margin-left: 4px; color: var(--qm-lime); font-weight: 600; white-space: nowrap; }
#qmcp .qm-foot code { color: var(--qm-muted); }

/* ---------------------------------------------------------------- gallery */
#qmcp .qm-gallery { padding-top: 40px; }
#qmcp .qm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
#qmcp .qm-filters { display: flex; flex-wrap: wrap; gap: 8px; scrollbar-width: none; }
#qmcp .qm-filters::-webkit-scrollbar { display: none; }
#qmcp .qm-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px;
  border: 1px solid var(--qm-line); border-radius: 999px; color: var(--qm-muted); font-size: 13.5px; font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
#qmcp .qm-chip span { color: var(--qm-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
#qmcp .qm-chip:hover { border-color: var(--qm-line-2); color: var(--qm-text); }
#qmcp .qm-chip.is-on, #qmcp .qm-chip.is-on:hover { border-color: var(--qm-lime); background: var(--qm-lime); color: var(--qm-ink); }
#qmcp .qm-chip.is-on span { color: rgba(19, 21, 23, 0.6); }
#qmcp .qm-search { position: relative; display: flex; align-items: center; width: 290px; max-width: 100%; margin: 0; }
#qmcp .qm-search > i { position: absolute; left: 15px; color: var(--qm-faint); font-size: 13px; pointer-events: none; }
#qmcp .qm-search input {
  width: 100%; height: 40px; margin: 0; padding: 0 16px 0 40px; border: 1px solid var(--qm-line); border-radius: 999px;
  background: var(--qm-card); color: var(--qm-text); font-size: 14px; box-shadow: none; outline: none;
  -webkit-appearance: none; appearance: none;
}
#qmcp .qm-search input::placeholder { color: var(--qm-faint); opacity: 1; }
#qmcp .qm-search input:focus { border-color: var(--qm-lime); }

#qmcp .qm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
#qmcp .qm-card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--qm-line); border-radius: var(--qm-radius);
  background: var(--qm-card); transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
#qmcp .qm-card[hidden] { display: none; }
#qmcp .qm-card:hover { border-color: var(--qm-line-2); transform: translateY(-2px); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.9); }
#qmcp .qm-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #0b0c0e; }
#qmcp .qm-media > img, #qmcp .qm-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#qmcp .qm-media > video { opacity: 0; transition: opacity 0.3s ease; }
#qmcp .qm-media.is-playing > video { opacity: 1; }
#qmcp .qm-tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
#qmcp .qm-tag {
  padding: 5px 9px; border-radius: 8px; background: rgba(10, 11, 13, 0.74); color: var(--qm-text);
  font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: 0.03em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#qmcp .qm-tag-paid { margin-left: auto; color: var(--qm-lime); }
#qmcp .qm-src { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: none; }
#qmcp .qm-src > img { width: 58px; height: 58px; object-fit: cover; border: 2px solid rgba(247, 247, 248, 0.9); border-radius: 10px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55); }
#qmcp .qm-src > span { padding: 2px 7px; border-radius: 6px; background: rgba(10, 11, 13, 0.78); color: var(--qm-text); font-size: 10px; font-weight: 600; white-space: nowrap; }
#qmcp .qm-play {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 38px; height: 38px; padding: 0 13px; border-radius: 999px; background: rgba(10, 11, 13, 0.74); color: var(--qm-text);
  font-size: 12.5px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, color 0.2s ease;
}
#qmcp .qm-play:hover, #qmcp .qm-media.is-sounding .qm-play { background: var(--qm-lime); color: var(--qm-ink); }
#qmcp .qm-play-snd { font-size: 11px; opacity: 0.8; }
#qmcp .qm-media.is-broken .qm-play { display: none; }
#qmcp .qm-progress {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--qm-lime);
  transform: scaleX(var(--qm-p, 0)); transform-origin: 0 50%; opacity: 0; transition: opacity 0.2s ease;
}
#qmcp .qm-media.is-sounding .qm-progress { opacity: 1; }

#qmcp .qm-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; padding: 16px 16px 18px; }
#qmcp .qm-name { font-family: var(--qm-display); font-size: 18px; font-weight: 700; line-height: 1.2; }
#qmcp .qm-name a { color: var(--qm-text); transition: color 0.2s ease; }
#qmcp .qm-name a:hover { color: var(--qm-lime); }
#qmcp .qm-by { margin-top: 3px; color: var(--qm-muted); font-size: 13px; line-height: 1.35; }
#qmcp .qm-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; color: var(--qm-muted); font-size: 12.5px; line-height: 1.3; }
#qmcp .qm-slash { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; background: var(--qm-lime-soft); color: var(--qm-lime); font-family: var(--qm-mono); font-size: 11.5px; }
#qmcp .qm-slash b { color: rgba(209, 254, 23, 0.5); font-weight: 400; }
#qmcp .qm-cost { margin-left: auto; color: var(--qm-text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
#qmcp .qm-ask {
  color: var(--qm-muted); font-size: 13.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
#qmcp .qm-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
#qmcp .qm-actions .qm-btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
#qmcp .qm-actions .qm-try { flex: 1 1 auto; min-width: 0; }
#qmcp .qm-actions .qm-copy-ask { flex: none; }
#qmcp:not([data-client="claude"]) .qm-actions .qm-copy-ask { flex: 1 1 auto; }
#qmcp .qm-card.is-folded { display: none; }
#qmcp .qm-unfold { margin-top: 22px; text-align: center; }
#qmcp .qm-unfold .qm-btn span { color: var(--qm-faint); font-variant-numeric: tabular-nums; }
#qmcp .qm-empty { padding: 40px 0 8px; color: var(--qm-muted); text-align: center; }
#qmcp .qm-linkish { color: var(--qm-lime); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- connect */
#qmcp .qm-connect { border-top: 1px solid var(--qm-line); }
#qmcp .qm-connect-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
#qmcp .qm-steps { display: grid; gap: 14px; counter-reset: qm-step; }
#qmcp .qm-steps > li {
  position: relative; padding: 22px 24px 22px 88px; border: 1px solid var(--qm-line); border-radius: var(--qm-radius);
  background: var(--qm-card); counter-increment: qm-step;
}
#qmcp .qm-steps > li::before {
  content: counter(qm-step, decimal-leading-zero); position: absolute; left: 24px; top: 19px;
  color: var(--qm-lime); font-family: var(--qm-display); font-size: 34px; font-weight: 700; line-height: 1;
}
#qmcp .qm-steps h3 { color: var(--qm-text); font-family: var(--qm-display); font-size: 19px; font-weight: 700; line-height: 1.25; }
#qmcp .qm-steps p { max-width: 64ch; margin-top: 6px; color: var(--qm-muted); font-size: 14.5px; }
#qmcp .qm-steps .qm-btn, #qmcp .qm-steps .qm-cmd, #qmcp .qm-steps .qm-addr { margin-top: 14px; }
#qmcp .qm-steps-soon { padding: 28px; border: 1px dashed var(--qm-line-2); border-radius: var(--qm-radius); }
#qmcp .qm-steps-soon > h3 { margin-top: 14px; color: var(--qm-text); font-family: var(--qm-display); font-size: 24px; font-weight: 700; line-height: 1.2; }
#qmcp .qm-steps-soon > p { max-width: 60ch; margin-top: 8px; color: var(--qm-muted); }
#qmcp .qm-steps-soon > .qm-row { margin-top: 20px; }
#qmcp .qm-need {
  position: sticky; top: 104px; padding: 24px; border: 1px solid var(--qm-line); border-radius: var(--qm-radius);
  background: linear-gradient(180deg, #17191d 0%, #131518 100%);
}
#qmcp .qm-need > h3 { color: var(--qm-text); font-family: var(--qm-display); font-size: 17px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
#qmcp .qm-need ul { display: grid; gap: 13px; margin-top: 16px; }
#qmcp .qm-need li { display: flex; gap: 12px; color: var(--qm-muted); font-size: 14px; line-height: 1.5; }
#qmcp .qm-need li > i { flex: none; width: 18px; margin-top: 3px; color: var(--qm-lime); text-align: center; }
#qmcp .qm-need li a { color: var(--qm-lime); font-weight: 600; }
#qmcp .qm-addr-sm { max-width: none; margin-top: 20px; }
#qmcp .qm-addr-sm .qm-addr-v { font-size: 13px; }
#qmcp .qm-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--qm-lime); font-size: 14px; font-weight: 600; }
#qmcp .qm-more:hover { color: var(--qm-lime); }

/* ---------------------------------------------------------------- tools: a table of tiles, not more cards */
#qmcp .qm-tools { border-top: 1px solid var(--qm-line); border-bottom: 1px solid var(--qm-line); background: var(--qm-deep); }
#qmcp .qm-tool-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  border: 1px solid var(--qm-line); border-radius: var(--qm-radius); background: var(--qm-line);
}
#qmcp .qm-tool { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; background: var(--qm-bg); }
#qmcp .qm-tool > i { color: var(--qm-lime); font-size: 20px; }
#qmcp .qm-tool h3 { margin-top: 6px; color: var(--qm-text); font-family: var(--qm-display); font-size: 17px; font-weight: 700; line-height: 1.25; }
#qmcp .qm-tool p { color: var(--qm-muted); font-size: 14px; line-height: 1.55; }
#qmcp .qm-tool code { margin-top: auto; padding-top: 8px; color: var(--qm-faint); font-size: 12px; }

/* ---------------------------------------------------------------- trust */
#qmcp .qm-trust { padding: 60px 0; }
#qmcp .qm-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
#qmcp .qm-trust-grid > div > i { color: var(--qm-lime); font-size: 18px; }
#qmcp .qm-trust h3 { margin-top: 12px; color: var(--qm-text); font-family: var(--qm-display); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
#qmcp .qm-trust p { margin-top: 6px; color: var(--qm-muted); font-size: 14px; }

/* ---------------------------------------------------------------- faq */
#qmcp .qm-faq { border-top: 1px solid var(--qm-line); }
#qmcp .qm-faq-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: start; }
#qmcp .qm-faq .qm-head { position: sticky; top: 112px; margin-bottom: 0; }
#qmcp .qm-qa details { border-bottom: 1px solid var(--qm-line); }
#qmcp .qm-qa details:first-child { border-top: 1px solid var(--qm-line); }
#qmcp .qm-qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0;
  color: var(--qm-text); font-size: 17px; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none;
}
#qmcp .qm-qa summary::-webkit-details-marker { display: none; }
#qmcp .qm-qa summary::after {
  content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--qm-line-2); border-radius: 50%; color: var(--qm-lime); font-size: 18px; line-height: 1;
  transition: transform 0.2s ease;
}
#qmcp .qm-qa details[open] > summary::after { transform: rotate(45deg); }
#qmcp .qm-qa details > p { max-width: 70ch; padding: 0 44px 22px 0; color: var(--qm-muted); font-size: 15px; }

/* ---------------------------------------------------------------- final call */
#qmcp .qm-final { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0 120px; border-top: 1px solid var(--qm-line); }
#qmcp .qm-final-strip { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); opacity: 0.2; }
#qmcp .qm-final-strip > img { width: 100%; height: 100%; object-fit: cover; }
#qmcp .qm-final::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--qm-bg) 0%, rgba(15, 17, 19, 0.5) 42%, rgba(15, 17, 19, 0.5) 58%, var(--qm-bg) 100%);
}
#qmcp .qm-final-in { text-align: center; }
#qmcp .qm-final-title {
  color: var(--qm-lime); font-family: var(--qm-display); font-weight: 700;
  font-size: clamp(34px, 6vw, 76px); line-height: 0.96; letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance;
}
#qmcp .qm-final-title span { display: block; color: var(--qm-text); }
#qmcp .qm-row-center { justify-content: center; margin-top: 32px; }
#qmcp .qm-final-note { margin-top: 18px; color: var(--qm-muted); font-size: 14px; }
#qmcp .qm-final-note a { color: var(--qm-lime); font-weight: 600; }

#qmcp .qm-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- the tool page (/app/user/mcp, #qmcp.qm-in-app)
   Same parts, dashboard proportions: no hero, the setup box beside the account box, tighter sections, and a gallery
   that fills whatever the sidebar leaves. The dashboard paints its own ground. */
#qmcp.qm-in-app { background: transparent; padding-bottom: 24px; }
#qmcp.qm-in-app .qm-wrap { max-width: 1320px; padding: 0 12px; }
#qmcp .qm-app-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 20px; align-items: start; }
#qmcp .qm-box { padding: 24px; border: 1px solid var(--qm-line); border-radius: 20px; background: var(--qm-card); }
#qmcp .qm-box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
#qmcp .qm-box-title { color: var(--qm-text); font-family: var(--qm-display); font-size: 19px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
#qmcp.qm-in-app .qm-panel { margin-top: 22px; }
#qmcp.qm-in-app .qm-addr, #qmcp.qm-in-app .qm-note, #qmcp.qm-in-app .qm-soon-box { max-width: none; }
#qmcp .qm-setup-steps { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--qm-line); }
#qmcp.qm-in-app .qm-steps { gap: 0; }
#qmcp.qm-in-app .qm-steps > li { padding: 18px 0 18px 64px; border: 0; border-radius: 0; background: none; }
#qmcp.qm-in-app .qm-steps > li + li { border-top: 1px dashed var(--qm-line); }
#qmcp.qm-in-app .qm-steps > li::before { left: 0; top: 16px; font-size: 28px; }
#qmcp.qm-in-app .qm-steps-soon { margin-top: 18px; }
#qmcp .qm-side { display: grid; gap: 20px; min-width: 0; }
#qmcp.qm-in-app .qm-need { position: static; border-radius: 20px; }
#qmcp .qm-balance { color: var(--qm-lime); font-weight: 700; font-variant-numeric: tabular-nums; }
#qmcp.qm-in-app .qm-demo { border-radius: 20px; }
#qmcp.qm-in-app .qm-section { padding: 64px 0 0; }
#qmcp.qm-in-app .qm-head { margin-bottom: 26px; }
#qmcp.qm-in-app .qm-h2 { font-size: clamp(24px, 2.4vw, 34px); }
#qmcp.qm-in-app .qm-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
#qmcp.qm-in-app .qm-tools { border: 0; background: none; }
#qmcp.qm-in-app .qm-tool { background: var(--qm-card); }
#qmcp.qm-in-app .qm-trust { padding: 48px 0 0; }
#qmcp.qm-in-app .qm-faq { border-top: 0; }
#qmcp.qm-in-app .qm-faq .qm-head { position: static; }

/* ---------------------------------------------------------------- widths */
@media (min-width: 992px) {
  #qmcp .qm-title { font-size: clamp(46px, 4.9vw, 64px); }
}
@media (max-width: 1199px) {
  #qmcp .qm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #qmcp .qm-app-grid { grid-template-columns: minmax(0, 1fr); }
  #qmcp.qm-in-app .qm-side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
}
@media (max-width: 991px) {
  #qmcp .qm-hero { padding: 96px 0 56px; }
  #qmcp .qm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  #qmcp .qm-demo { max-width: 640px; }
  #qmcp .qm-section { padding: 68px 0; }
  #qmcp .qm-gallery { padding-top: 24px; }
  #qmcp .qm-connect-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #qmcp .qm-need { position: static; }
  #qmcp .qm-tool-grid, #qmcp .qm-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #qmcp .qm-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #qmcp .qm-faq .qm-head { position: static; margin-bottom: 24px; }
}
@media (max-width: 899px) {
  #qmcp .qm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  #qmcp.qm-in-app .qm-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
@media (max-width: 575px) {
  #qmcp .qm-wrap { padding: 0 16px; }
  #qmcp.qm-in-app .qm-wrap { padding: 0 4px; }
  #qmcp .qm-box { padding: 18px 16px; }
  #qmcp.qm-in-app .qm-steps > li { padding-left: 50px; }
  #qmcp.qm-in-app .qm-steps > li::before { font-size: 22px; top: 18px; }
  #qmcp.qm-in-app .qm-grid { grid-template-columns: minmax(0, 1fr); }
  #qmcp .qm-hero { padding: 88px 0 44px; }
  #qmcp .qm-app { padding: 9px 13px; font-size: 13.5px; }
  #qmcp .qm-sub { font-size: 16px; }
  #qmcp .qm-row .qm-btn-lg { flex: 1 1 100%; }
  #qmcp .qm-addr-k { display: none; }
  #qmcp .qm-demo-body { padding: 16px; }
  #qmcp .qm-demo-on { display: none; }
  #qmcp .qm-bar { display: grid; grid-template-columns: minmax(0, 1fr); }   /* a wrapping flex line would grow to the chips' full width */
  #qmcp .qm-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  #qmcp .qm-search { width: 100%; }
  #qmcp .qm-grid { grid-template-columns: minmax(0, 1fr); }
  #qmcp .qm-steps > li { padding: 18px 18px 18px 64px; }
  #qmcp .qm-steps > li::before { left: 18px; top: 17px; font-size: 26px; }
  #qmcp .qm-steps-soon { padding: 22px 18px; }
  #qmcp .qm-need { padding: 20px 18px; }
  #qmcp .qm-addr-sm { padding-left: 12px; }
  #qmcp .qm-tool-grid, #qmcp .qm-trust-grid { grid-template-columns: minmax(0, 1fr); }
  #qmcp .qm-trust-grid { gap: 24px; }
  #qmcp .qm-qa details > p { padding-right: 0; }
  #qmcp .qm-final { padding: 84px 0 92px; }
  #qmcp .qm-final-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #qmcp *, #qmcp *::before, #qmcp *::after { animation: none !important; transition: none !important; }
  #qmcp .qm-card:hover, #qmcp .qm-btn-lime:hover { transform: none; }
}

/* ================================================================ qy-mcp-logos (2026-09-27): the apps' marks.
   Uddhab, with Higgsfield's page beside ours: "also in our mcp all logo icon like they have". Each app's mark in its
   tab, on a tile in the headline, and on the buttons that open it; QynTro's own mark after "with" and before each
   example's request. The files are in qy-mcp/logos/ (the Claude and OpenAI marks the site already uses, Uddhab's
   Claude Code mark, QynTro's app icon). Every mark here is decoration beside its name: alt="" throughout. */
#qmcp .qm-app-ic { flex: none; width: 16px; height: 16px; object-fit: contain; }
#qmcp i.qm-app-ic { width: auto; height: auto; font-size: 13px; line-height: 1; }
#qmcp .qm-app .qm-ic-on { display: none; }
#qmcp .qm-app[aria-selected="true"] .qm-ic-on { display: inline-block; }
#qmcp .qm-app[aria-selected="true"] .qm-ic-off { display: none; }

#qmcp .qm-tl { white-space: nowrap; }
#qmcp .qm-tile {
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  width: 0.9em; height: 0.9em; margin: 0 0.16em 0 0.04em; border-radius: 0.2em; vertical-align: -0.1em;
}
#qmcp .qm-tile img { display: block; width: 64%; height: 64%; object-fit: contain; }
#qmcp .qm-tile-claude { background: #d97757; }
#qmcp .qm-tile-chatgpt { background: #f7f7f8; }
#qmcp .qm-tile-code { background: #1b1d21; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
#qmcp .qm-tile-code img { width: 74%; height: 74%; }
#qmcp .qm-tile-other { background: var(--qm-lime-soft); color: var(--qm-lime); font-size: 0.46em; }
#qmcp .qm-tile-qyntro { background: #0b0c0e; }
#qmcp .qm-tile-qyntro img { width: 100%; height: 100%; }

#qmcp .qm-btn-ic { flex: none; width: 18px; height: 18px; object-fit: contain; }
#qmcp .qm-btn:not(.qm-btn-lg) .qm-btn-ic { width: 16px; height: 16px; }

#qmcp .qm-demo-app > span { display: inline-flex; align-items: center; gap: 7px; }
#qmcp .qm-demo-ic { flex: none; width: 16px; height: 16px; object-fit: contain; }
#qmcp i.qm-demo-ic { width: auto; height: auto; font-size: 13px; color: var(--qm-lime); }
#qmcp .qm-demo-q { flex: none; width: 16px; height: 16px; border-radius: 4px; }

#qmcp .qm-by-q { display: inline-flex; align-items: center; gap: 5px; margin-right: 2px; color: var(--qm-lime); font-weight: 700; vertical-align: -3px; }
#qmcp .qm-by-q img { width: 16px; height: 16px; border-radius: 4px; }

#qmcp .qm-need li > img { flex: none; width: 18px; height: 18px; margin-top: 2px; object-fit: contain; }
