/* Connect your AI, in the new look (js/views/connect-ai.js): a cinematic band, the AI tiles, one action inline. */
.cx2 { max-width: 1040px; }
.cx2-hero { position: relative; height: 260px; overflow: hidden; border-radius: 24px; background: #1a1f2a; }
.cx2-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.cx2-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 220px; opacity: 0.2; mix-blend-mode: overlay; }
.cx2-cap { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 28px; color: #fff; text-shadow: 0 2px 20px rgb(0 0 0 / 0.45); }
.cx2-live { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgb(255 255 255 / 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 600; text-shadow: none; }
.cx2-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.cx2-cap h1 { margin: 14px 0 0; font: 400 clamp(32px, 4vw, 48px)/1.02 var(--font-display); letter-spacing: -0.045em; }
.cx2-cap p { margin: 8px 0 0; max-width: 520px; font-size: 15.5px; line-height: 1.5; opacity: 0.92; }

.cx2-sec { display: flex; align-items: baseline; gap: 10px; margin: 34px 0 14px; }
.cx2-sec h2 { margin: 0; font: 600 17px/1.2 var(--font-display); letter-spacing: -0.01em; }
.cx2-sec span { font-size: 13.5px; color: var(--muted); }

.cx2-ais { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cx2-ai { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px 14px; border-radius: 20px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.15s var(--ease), box-shadow 0.15s; }
.cx2-ai:hover { transform: translateY(-2px); }
.cx2-ai .ai.lg { border-radius: 12px; }
.cx2-ai b { font-size: 14px; font-weight: 600; text-align: center; }
.cx2-ai small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 550; color: var(--muted); }
.cx2-ai.on { box-shadow: inset 0 0 0 2px var(--ink); }
.cx2-ai.done small { color: #12a150; }

.cx2-how { margin-top: 12px; padding: 22px; border-radius: 22px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--line); animation: view-in 0.25s var(--ease); }
.cx2-how ol { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.cx2-how li { display: flex; align-items: flex-start; gap: 12px; }
.cx2-how li > span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft, #eef0fe); color: var(--accent, #3d44e5); font-size: 12px; font-weight: 700; }
.cx2-how li p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; }
.cx2-copy { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 8px 8px 16px; border-radius: 16px; background: #0e1726; color: #e3e6ff; }
.cx2-copy code { flex: 1; min-width: 0; overflow-x: auto; padding: 6px 0; font: 500 13px/1.5 var(--mono); white-space: pre; scrollbar-width: none; }
.cx2-copy button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.cx2-line { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-top: 16px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 14px; font-weight: 600; }
.cx2-status { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cx2-status.connected { color: #0b7a3b; }
.cx2-status.connected svg { color: #12a150; }
.cx2-dots { display: inline-flex; flex: none; gap: 3px; font-style: normal; }
.cx2-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #3d44e5); animation: cx2-blink 1s infinite; }
.cx2-dots i:nth-child(2) { animation-delay: 0.15s; }
.cx2-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cx2-blink { 0%, 60%, 100% { opacity: 0.45; } 30% { opacity: 1; } }

.cx2-list { border-radius: 20px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--line); }
.cx2-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px 110px 100px; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.cx2-row:first-child { border-top: 0; }
.cx2-row .ai.md { border-radius: 9px; }
.cx2-who b { display: block; font-size: 14px; font-weight: 600; }
.cx2-who small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.cx2-person { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.cx2-last { font-size: 13px; color: var(--muted); }
.cx2-off { justify-self: end; font-size: 13.5px; font-weight: 600; color: var(--red, #e5484d); }
.cx2-off:hover { text-decoration: underline; text-underline-offset: 3px; }
.cx2-empty { margin: 0; padding: 18px; color: var(--muted); }
.cx2-any { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; font-size: 13.5px; color: var(--muted); }
.cx2-any code { padding: 4px 10px; border-radius: 8px; background: var(--sunken, #f3f4f7); color: var(--ink); font: 500 13px var(--mono); }
.cx2-any button { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }

@media (max-width: 760px) {
  .cx2-hero { height: 220px; border-radius: 20px; }
  .cx2-cap { left: 20px; right: 20px; bottom: 20px; }
  .cx2-ais { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx2-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cx2-person, .cx2-last { display: none; }
}
