/* Home page sections under the hero: the canvas view and remote command (x-canvas.js).
   Loaded after x-live.css and builds on its .xl / .rx tokens. */

.xc-host { width: 100%; min-width: 0; }
.xl .xc-desk { position: absolute; left: 0; top: 0; width: 1600px; transform-origin: 0 0; }
.xl .xc-desk.xr { height: 842px; }
.xl .rx.xc-win { height: 900px; }
.xl .xc-desk * { box-sizing: border-box; }

/* ── Canvas window chrome ── */
.xl .xc-tb .xc-tbl { display: flex; align-items: center; gap: 2px; height: 40px; padding-left: 14px; }
.xl .xc-brand { display: flex; align-items: center; gap: 7px; margin: 0 4px 0 8px; font-size: 14px; font-weight: 600; color: var(--t1); }
.xl .xc-brand img { border-radius: 5px; display: block; }
.xl .xc-brand svg { color: var(--t2); }
.xl .xc-bell { position: relative; }
.xl .xc-bell > i { position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.xl .xc-tb .tasks { margin-left: 8px; }

.xl .xc-frame { position: absolute; left: 12px; right: 12px; top: 40px; bottom: 12px; border: 1px solid var(--sep); border-radius: 14px; background: #0f0f10; overflow: hidden; touch-action: pan-y; }
.xl .xc-frame.panning { cursor: grabbing; }
.xl .xc-frame.dragging .rx-ph { cursor: grabbing; }
.xl .xc-world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; transition: transform 0ms cubic-bezier(.5, .05, .2, 1); }
.xl .xc-dots { position: absolute; left: -3000px; top: -2400px; width: 9000px; height: 6600px; pointer-events: none; background-image: radial-gradient(circle, #2e2e32 1.6px, transparent 2px); background-size: 36px 36px; }

.xl .xc-group { position: absolute; border: 1.5px solid #2d3034; border-radius: 18px; background: rgba(255, 255, 255, .014); pointer-events: none; }
.xl .xc-gl { position: absolute; left: 4px; top: -38px; display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; color: #cfcfd3; white-space: nowrap; }
.xl .xc-gl i { width: 10px; height: 10px; border-radius: 50%; background: var(--run); flex: none; }
.xl .xc-bundle .xc-group:first-child { border-color: var(--acc); box-shadow: 0 0 0 6px rgba(81, 132, 255, .12); transition: border-color .3s, box-shadow .3s; }

/* A zero-size SVG viewport is not painted at all, so keep a 4px box and let the paths overflow it. */
.xl .xc-links, .xl .xc-fx { position: absolute; left: 0; top: 0; width: 4px; height: 4px; max-width: none; overflow: visible; pointer-events: none; }
.xl .xc-link .ln { fill: none; stroke: #3d62cc; stroke-width: 2.6; opacity: .8; transition: stroke .25s, opacity .25s; }
.xl .xc-link .ah { fill: #5184ff; }
.xl .xc-link .st { fill: #0f0f10; stroke: #5184ff; stroke-width: 2.4; }
.xl .xc-link .nd circle { fill: #0f0f10; stroke: #5184ff; stroke-width: 2.4; }
.xl .xc-link .nd .c { fill: #5184ff; stroke: none; }
.xl .xc-link.on .ln { stroke: #86a8ff; opacity: 1; }
.xl .xc-tail { fill: none; stroke: #a9c2ff; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(81, 132, 255, .95)); }
.xl .xc-tail.ok { stroke: #7df0b2; filter: drop-shadow(0 0 10px rgba(50, 213, 131, .95)); }
.xl .xc-pk .halo { fill: rgba(81, 132, 255, .3); }
.xl .xc-pk .core { fill: #fff; stroke: #5184ff; stroke-width: 3.5; }
.xl .xc-pk.ok .halo { fill: rgba(50, 213, 131, .3); }
.xl .xc-pk.ok .core { stroke: #32d583; }

/* ── Windows on the board ── */
.xl .xc-card { position: absolute; flex: none; border-radius: 10px; overflow: hidden; border: 1.5px solid #36393e; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); transition: border-color .3s, box-shadow .3s; }
.xl .xc-card[data-state="done"] { border-color: rgba(50, 213, 131, .62); }
.xl .xc-card[data-state="work"] { border-color: #5184ff; box-shadow: 0 0 0 1px rgba(81, 132, 255, .4), 0 0 36px rgba(81, 132, 255, .24), 0 14px 34px rgba(0, 0, 0, .45); }
.xl .xc-card[data-state="pause"] { border-color: #8e8e93; }
.xl .xc-card .rx-ph { height: 30px; gap: 6px; }
.xl .xc-card .rx-ph .cv { width: 12px; display: grid; place-items: center; color: var(--t3); }
.xl .xc-card .rx-ph .ttl { font-size: 11.5px; font-weight: 600; }
.xl .xc-card.xc-hit { animation: xcHit 1s ease-out; }
.xl .xc-card.xc-new { animation: xcNew .5s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes xcHit { 0% { box-shadow: 0 0 0 0 rgba(81, 132, 255, .95), 0 14px 34px rgba(0, 0, 0, .45); } 100% { box-shadow: 0 0 0 30px rgba(81, 132, 255, 0), 0 14px 34px rgba(0, 0, 0, .45); } }
@keyframes xcNew { from { opacity: 0; transform: scale(.86); } }
.xl .xc-chip { display: inline-flex; align-items: center; height: 17px; padding: 0 7px; border-radius: 5px; font: 600 10px/1 var(--ui); white-space: nowrap; flex: none; color: #8e8e93; background: rgba(142, 142, 147, .16); }
.xl .xc-chip[data-s="done"] { color: #3ee08f; background: rgba(50, 213, 131, .16); }
.xl .xc-chip[data-s="work"] { color: #9bb8ff; background: rgba(81, 132, 255, .2); }
.xl .xc-chip[data-s="wait"] { color: #ffb340; background: rgba(255, 159, 10, .18); }
.xl .xc-lane .xc-in { flex: 1; min-width: 0; color: #ececec; white-space: nowrap; overflow: hidden; }
.xl .xc-lane .rx-cc-in .xc-in::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #cfcfcf; animation: rxBlink 1.1s steps(1) infinite; }
.xl .xc-lane .xc-in.ph { color: #6b6b6b; }
.xl .xc-src { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 4px; font-weight: 700; color: #c2d4ff; background: rgba(81, 132, 255, .2); border: 1px solid rgba(81, 132, 255, .5); }
.xl .xc-src.grok { color: #ffd2b3; background: rgba(255, 106, 26, .18); border-color: rgba(255, 122, 40, .6); }
.xl .xc-web .url .u { flex: 1; min-width: 0; color: var(--t1); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Floating controls ── */
.xl .xc-hud { position: absolute; top: 12px; z-index: 20; display: flex; align-items: center; gap: 8px; }
.xl .xc-hud.tl { left: 12px; }
.xl .xc-hud.tr { right: 12px; }
.xl .xc-sq, .xl .xc-ws, .xl .xc-seg, .xl .xc-run, .xl .xc-ag, .xl .xc-zoom, .xl .xc-tools, .xl .xc-cmd, .xl .xc-acts button { background: #1b1b1d; border: 1px solid #2f2f33; color: var(--t1); }
.xl .xc-sq, .xl .xc-ws, .xl .xc-seg, .xl .xc-run, .xl .xc-ag { height: 30px; border-radius: 9px; display: inline-flex; align-items: center; font-size: 12px; white-space: nowrap; }
.xl .xc-sq { width: 34px; justify-content: center; color: var(--t2); }
.xl .xc-ws { gap: 7px; padding: 0 11px; font-weight: 600; }
.xl .xc-ws svg { color: var(--t2); }
.xl .xc-seg { padding: 3px; gap: 2px; }
.xl .xc-seg b { display: grid; place-items: center; height: 22px; padding: 0 11px; border-radius: 6px; font-weight: 500; color: var(--t2); }
.xl .xc-seg b.on { background: #343438; color: var(--t1); }
.xl .xc-run, .xl .xc-ag { gap: 7px; padding: 0 12px; font-weight: 600; }
.xl .xc-run i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.xl .xc-tools { position: absolute; left: 12px; top: 50%; z-index: 20; transform: translateY(-50%); display: grid; gap: 4px; padding: 5px; border-radius: 11px; }
.xl .xc-tools button { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--t2); }
.xl .xc-tools button:hover { background: var(--hover); color: var(--t1); }
.xl .xc-tools button.on { background: var(--acc); color: #fff; }
.xl .xc-tools > i { height: 1px; margin: 2px 4px; background: #2f2f33; }
.xl .xc-bottom { position: absolute; left: 50%; bottom: 14px; z-index: 20; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; }
.xl .xc-acts { display: flex; gap: 8px; }
.xl .xc-acts button { height: 30px; padding: 0 13px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.xl .xc-acts button:hover { background: #26262a; }
.xl .xc-halt .xc-acts [data-act="halt"] { color: var(--orange); border-color: rgba(255, 159, 10, .5); }
.xl .xc-cmd { width: 520px; height: 40px; border-radius: 11px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.xl .xc-cmd:focus-within { border-color: var(--acc); }
.xl .xc-cmd .at { display: grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 600; color: #a4bdff; background: rgba(81, 132, 255, .2); white-space: nowrap; }
.xl .xc-cmd input { flex: 1; font-size: 13px; }
.xl .xc-cmd input::placeholder { color: var(--t3); }
.xl .xc-cmd input:focus-visible { outline: none; }
.xl .xc-cmd .go { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--acc); color: #fff; }
.xl .xc-chips { position: absolute; left: 14px; bottom: 18px; z-index: 20; max-width: 500px; }
.xl .xc-zoom { position: absolute; right: 12px; bottom: 14px; z-index: 20; height: 32px; display: flex; align-items: center; gap: 2px; padding: 0 4px; border-radius: 9px; }
.xl .xc-zoom button { width: 26px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--t2); }
.xl .xc-zoom button:hover { background: var(--hover); color: var(--t1); }
.xl .xc-zoom span { width: 44px; text-align: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.xl .xc-toasts { position: absolute; right: 12px; top: 52px; z-index: 30; width: 310px; display: grid; gap: 8px; pointer-events: none; }
.xl .xc-toast { display: flex; gap: 10px; padding: 11px 13px; border-radius: 14px; background: rgba(36, 36, 36, .96); border: 1px solid #3a3a3a; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); animation: rxToast .4s cubic-bezier(.2, .8, .2, 1); transition: opacity .35s, transform .35s; }
.xl .xc-toast.out { opacity: 0; transform: translateY(-8px); }
.xl .xc-toast .ti { font-size: 12.5px; font-weight: 600; }
.xl .xc-toast .bd { margin-top: 2px; font-size: 11.5px; color: var(--t2); }

/* ── Video page in the browser window ── */
.xl .xc-yt { width: 1280px; min-height: 940px; background: #0f0f0f; color: #f1f1f1; font: 14px/1.4 var(--ui); }
.xl .xc-yt .yt-sp { flex: 1; }
.xl .xc-yt .yt-top { height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 22px; }
.xl .xc-yt .yt-menu { display: grid; gap: 4px; width: 20px; }
.xl .xc-yt .yt-menu i { height: 2px; border-radius: 1px; background: #f1f1f1; }
.xl .xc-yt .yt-logo { display: flex; align-items: center; gap: 5px; font-size: 19px; font-weight: 700; letter-spacing: -.045em; }
.xl .xc-yt .yt-logo > i { position: relative; width: 30px; height: 21px; border-radius: 6px; background: #f03; }
.xl .xc-yt .yt-logo > i::after { content: ""; position: absolute; left: 11px; top: 5.5px; border-left: 9px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.xl .xc-yt .yt-logo sup { margin-left: 2px; font-size: 9px; font-weight: 400; color: #aaa; }
.xl .xc-yt .yt-search { flex: 0 1 540px; height: 38px; margin-left: 130px; display: flex; align-items: center; overflow: hidden; border: 1px solid #303030; border-radius: 20px; }
.xl .xc-yt .yt-search span { flex: 1; padding: 0 16px; color: #ddd; }
.xl .xc-yt .yt-search b { width: 60px; height: 100%; display: grid; place-items: center; background: #222; border-left: 1px solid #303030; color: #ddd; }
.xl .xc-yt .yt-round { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #222; color: #eee; }
.xl .xc-yt .yt-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #5184ff; font-size: 13px; font-weight: 700; }
.xl .xc-yt .yt-main { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 22px; padding: 8px 22px 30px; }
.xl .xc-yt .yt-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; }
.xl .xc-yt .yt-player iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Full view (S.full in x-canvas-board.js): the window covers the board, its chrome is gone and the player fills it. */
.xl .xc-hud, .xl .xc-tools, .xl .xc-bottom, .xl .xc-chips, .xl .xc-zoom, .xl .xc-toasts, .xl .xc-links, .xl .xc-fx { transition: opacity .25s; }
.xl .xc-fs .xc-hud, .xl .xc-fs .xc-tools, .xl .xc-fs .xc-bottom, .xl .xc-fs .xc-chips, .xl .xc-fs .xc-zoom, .xl .xc-fs .xc-toasts, .xl .xc-fs .xc-links, .xl .xc-fs .xc-fx { opacity: 0; pointer-events: none; }
.xl .xc-card.full { border: 0; border-radius: 0; box-shadow: none; }
.xl .xc-card.full .rx-ph, .xl .xc-card.full .rx-bt { display: none; }
.xl .xc-card.full .rx-web { background: #000; }
.xl .xc-card.full .xc-yt .yt-player { position: absolute; left: 0; top: 0; z-index: 5; width: 1280px; height: calc(1280px * var(--fs-ratio, .54)); aspect-ratio: auto; border-radius: 0; }
/* No player yet (before it loads, and on phones where it is never loaded): a drawn still with a play button. */
.xl .xc-yt .yt-player:empty { background: radial-gradient(120% 90% at 18% 12%, #2b1c62 0, transparent 60%), radial-gradient(90% 80% at 86% 88%, #0b3d52 0, transparent 62%), #08080c; }
.xl .xc-yt .yt-player:empty::before { content: ""; position: absolute; left: 50%; top: 50%; width: 104px; height: 72px; margin: -36px 0 0 -52px; border-radius: 20px; background: rgba(255, 255, 255, .16); }
.xl .xc-yt .yt-player:empty::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -16px 0 0 -10px; border-left: 28px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.xl .xc-yt h3 { margin: 14px 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.xl .xc-yt .yt-ch { display: flex; align-items: center; gap: 12px; }
.xl .xc-yt .yt-ch .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1c1c1c; border: 1px solid #3a3a3a; font-size: 17px; font-weight: 800; font-style: normal; }
.xl .xc-yt .yt-ch b { display: block; font-size: 15px; }
.xl .xc-yt small { display: block; font-size: 12px; color: #aaa; }
.xl .xc-yt .sub { margin-left: 10px; padding: 8px 16px; border-radius: 20px; background: #f1f1f1; color: #0f0f0f; font-weight: 600; }
.xl .xc-yt .pill { padding: 8px 15px; border-radius: 20px; background: #272727; font-weight: 500; }
.xl .xc-yt .yt-desc { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #272727; color: #ddd; line-height: 1.5; }
.xl .xc-yt .yt-cm { margin-top: 18px; font-size: 19px; font-weight: 700; }
.xl .xc-yt .yt-right { display: grid; gap: 10px; align-content: start; }
.xl .xc-yt .yt-rec { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 10px; }
.xl .xc-yt .yt-rec .th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; background: radial-gradient(circle at 30% 30%, var(--a), transparent 62%), linear-gradient(135deg, var(--b), #0b0b0f); }
.xl .xc-yt .yt-rec em { position: absolute; right: 5px; bottom: 5px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .8); font-size: 11px; font-style: normal; font-weight: 600; }
.xl .xc-yt .yt-rec em.live { background: #f03; }
.xl .xc-yt .yt-rec b { display: block; margin-bottom: 4px; font-size: 14px; line-height: 1.3; }

/* ── Grok Bot window (layout and colours follow the real app) ── */
.xl .xg { position: absolute; display: flex; overflow: hidden; border-radius: 14px; background: #141415; color: #f5f5f7; font: 13.5px/1.45 var(--ui); box-shadow: 0 0 0 1px #2f2f32, 0 30px 80px rgba(0, 0, 0, .62); -webkit-font-smoothing: antialiased; user-select: none; text-align: left; }
.xl :where(.xg) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.xl :where(.xg) input { font: inherit; color: inherit; background: none; border: 0; outline: none; padding: 0; min-width: 0; }
.xl .xg .sp { flex: 1; }
.xl .xg .rx-lights { margin: 0; }
.xl .xg .rx-lights i:nth-child(1) { background: #ff5f57; }
.xl .xg .rx-lights i:nth-child(2) { background: #febc2e; }
.xl .xg .rx-lights i:nth-child(3) { background: #28c840; }
.xl .xg-sb { width: 252px; flex: none; display: flex; flex-direction: column; background: #1e1e20; border-right: 1px solid #29292c; }
.xl .xg-top { height: 58px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; }
.xl .xg-rb { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #2c2c2f; color: #e4e4e8; }
.xl .xg-rb.sq { border-radius: 10px; }
.xl .xg-list { flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; padding: 2px 8px; }
.xl .xg-row { height: 56px; display: flex; align-items: center; gap: 11px; padding: 0 10px; border-radius: 12px; }
.xl .xg-row.on { background: #303033; }
.xl .xg-row .av { width: 38px; height: 38px; flex: none; display: block; }
.xl .xg-row img.av { border-radius: 50%; box-shadow: 0 0 0 1px #3a3a3e; }
.xl .xg-row .grp { position: relative; }
.xl .xg-row .grp svg { position: absolute; width: 23px; height: 23px; }
.xl .xg-row .grp svg:nth-child(1) { left: 0; top: 0; }
.xl .xg-row .grp svg:nth-child(2) { right: 0; top: 7px; }
.xl .xg-row .grp svg:nth-child(3) { left: 5px; bottom: 0; }
.xl .xg-row > div { flex: 1; min-width: 0; }
.xl .xg-row b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .xg-row small { display: block; font-size: 12px; color: #98989f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .xg-row .un { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #3b8bff; }
.xl .xg-me { height: 60px; flex: none; display: flex; align-items: center; gap: 11px; padding: 0 12px 0 14px; }
.xl .xg-me .me { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #19191b; box-shadow: 0 0 0 1px #3a3a3e; font-size: 12.5px; font-weight: 600; }
.xl .xg-me b { font-size: 14px; font-weight: 600; }
.xl .xg-chat { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xl .xg-chat header { position: relative; z-index: 2; height: 58px; flex: none; display: flex; align-items: center; justify-content: center; }
.xl .xg-chat header .rx-lights { display: none; position: absolute; left: 14px; }
.xl .xg.compact .xg-sb { display: none; }
.xl .xg.compact .xg-chat header .rx-lights { display: flex; }
.xl .xg-pill { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px 0 8px; border-radius: 18px; background: #222224; border: 1px solid #343437; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.xl .xg-pill img { width: 22px; height: 22px; border-radius: 50%; display: block; }
.xl .xg-pill b { font-size: 13.5px; font-weight: 600; }
.xl .xg-share { position: absolute; right: 14px; height: 36px; display: grid; place-items: center; padding: 0 15px; border-radius: 18px; background: #222224; border: 1px solid #343437; font-size: 13px; font-weight: 600; }
/* Bottom-anchored: older messages run off the top, as in a scrolled conversation. */
.xl .xg-msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; margin-top: -14px; padding: 0 18px 12px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 44px); mask-image: linear-gradient(180deg, transparent 0, #000 44px); }
.xl .xg-msgs > * { flex: none; }
.xl .xg-time { align-self: center; margin: 8px 0 2px; font-size: 11.5px; color: #8d8d93; }
.xl .xg-b { max-width: 86%; padding: 9px 14px; border-radius: 17px; font-size: 13.5px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; animation: xgIn .28s cubic-bezier(.2, .8, .2, 1); }
.xl .xg-b.bot { align-self: flex-start; background: #232325; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035); }
.xl .xg-b.bot > b { font-weight: 600; }
.xl .xg-b.me { align-self: flex-end; background: #c8500c; color: #fff; }
@keyframes xgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.xl .xg-ses { display: grid; gap: 7px; margin: 9px 0 3px; }
.xl .xg-ses span { display: grid; grid-template-columns: 7px auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12.5px; }
.xl .xg-ses i { width: 6px; height: 6px; border-radius: 50%; background: #30d158; }
.xl .xg-ses i.work { background: #5184ff; animation: rxPulse 1.4s ease-in-out infinite; }
.xl .xg-ses i.wait { background: #ff9f0a; }
.xl .xg-ses b { font-weight: 600; }
.xl .xg-ses small { font-size: 11.5px; color: #8d8d93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .xg-ses em { font-size: 11px; font-style: normal; color: #8d8d93; }
.xl .xg-ses em.work { color: #9bb8ff; }
.xl .xg-ses em.wait { color: #ffb340; }
.xl .xg-imgs { align-self: flex-start; display: flex; align-items: center; gap: 6px; }
.xl .xg-thumb { position: relative; display: block; width: 214px; height: 128px; flex: none; overflow: hidden; border-radius: 12px; box-shadow: inset 0 0 0 1px #323236; background: #fff; }
.xl .xg-thumb .page { position: absolute; left: 0; top: 0; display: block; transform: scale(.1783); transform-origin: 0 0; }
.xl .xg-imgs .xg-thumb { width: 166px; height: 100px; border-radius: 11px; }
.xl .xg-imgs .xg-thumb .page { transform: scale(.1383); }
.xl .xg-thumb.term { display: grid; align-content: start; gap: 7px; padding: 22px 12px 0; background: #0f0f10; }
.xl .xg-thumb.term i { display: block; width: var(--w); height: 4px; border-radius: 2px; background: #4a4a50; }
.xl .xg-thumb.term i.hd { position: absolute; left: 0; top: 0; width: 100%; height: 13px; border-radius: 0; background: #1d1d20; }
.xl .xg-thumb.term i.g { background: #2f9d68; }
.xl .xg-thumb.term i.b { background: #4a72d8; }
.xl .xg-acts { display: flex; gap: 11px; margin-left: 8px; color: #8d8d93; }
.xl .xg-rc { width: 86%; padding: 11px 13px; box-shadow: inset 0 0 0 1px rgba(255, 122, 40, .5); background: linear-gradient(180deg, rgba(255, 122, 40, .12), rgba(255, 122, 40, .03)), #232327; }
.xl .xg-rc.done { box-shadow: inset 0 0 0 1px rgba(50, 213, 131, .5); background: linear-gradient(180deg, rgba(50, 213, 131, .12), rgba(50, 213, 131, .03)), #232327; }
.xl .xg-rc .rc-h { display: flex; align-items: center; gap: 10px; }
.xl .xg-rc .rc-h img { width: 28px; height: 28px; border-radius: 50%; display: block; }
.xl .xg-rc .rc-h b { display: block; font-size: 13px; }
.xl .xg-rc .rc-h small { display: block; font-size: 11.5px; color: #a5a5ab; }
.xl .xg-rc .rc-h .ses { color: #fff; font-weight: 600; }
.xl .xg-rc .xc-chip { margin-left: auto; }
.xl .xg-rc .rc-s { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .09); font: 12px var(--mono); color: #c9c9cf; }
.xl .xg-rc .rc-s .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #ff7a28; animation: rxPulse 1.1s ease-in-out infinite; }
.xl .xg-rc.done .rc-s .dot { background: #32d583; animation: none; }
.xl .xg-att { align-self: flex-start; display: flex; gap: 8px; animation: xgIn .3s cubic-bezier(.2, .8, .2, 1); }
.xl .xg-files { display: grid; gap: 6px; align-content: start; }
.xl .xg-files span { height: 29px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 10px; background: #232325; box-shadow: inset 0 0 0 1px #323236; font: 12px var(--mono); white-space: nowrap; }
.xl .xg-files b { font-weight: 500; }
.xl .xg-files .ok { color: #4ec98a; }
.xl .xg-files .bad { color: #f0716b; }
.xl .xg-files .open { font: 600 12px var(--ui); color: #a4bdff; box-shadow: inset 0 0 0 1px rgba(81, 132, 255, .5); background: rgba(81, 132, 255, .12); }
.xl .xg-chips { flex: none; padding: 0 16px 9px; }
.xl .xg .gx-chips .lb { color: #7d7d84; }
.xl .xg-in { flex: none; height: 48px; margin: 0 14px 14px; display: flex; align-items: center; gap: 9px; padding: 0 7px; border-radius: 24px; background: #1f1f21; border: 1px solid #343437; }
.xl .xg-in:focus-within { border-color: #e2640c; }
.xl .xg-in .xg-rb { width: 32px; height: 32px; background: #2e2e31; }
.xl .xg-in input { flex: 1; font-size: 13.5px; }
.xl .xg-in input::placeholder { color: #7d7d84; }
.xl .xg-in .mic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #29292c; color: #c2c2c8; }
.xl .xg-in .go { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e2640c; color: #fff; }

/* ── Remote command desk: Grok Bot beside a Waytive X session ── */
.xl .xr-grok { left: 4px; top: 26px; width: 702px; height: 790px; }
.xl .rx.xr-win { left: 728px; top: 0; width: 872px; height: 842px; }
/* Phone layout (440 x 822): the conversation above one session window. */
.xl .xc-desk.xr.xr-m { width: 440px; height: 822px; }
.xl .xr-m .xr-grok { left: 4px; top: 4px; width: 432px; height: 474px; }
.xl .xr-m .rx.xr-win { left: 4px; top: 492px; width: 432px; height: 326px; border-radius: 12px; overflow: hidden; background: var(--win); box-shadow: 0 0 0 1px #2f2f32, 0 22px 50px rgba(0, 0, 0, .55); }
.xl .xr-m .xr-win .xc-lane { position: absolute; left: 8px; right: 8px; top: 40px; bottom: 8px; border: 1px solid var(--sep); border-radius: 9px; overflow: hidden; }
.xl .xr-m .xr-win .xc-lane .rx-ph { height: 30px; gap: 6px; }
.xl .xr-m .xr-win .xc-lane .rx-ph .cv { width: 12px; display: grid; place-items: center; color: var(--t3); }
.xl .xr-m .xr-win .xc-lane .rx-ph .ttl { font-size: 11.5px; font-weight: 600; }
.xl .xr-m .xg-chips { display: none; }
.xl .rx-row.xr-ping { background: rgba(255, 106, 26, .18); box-shadow: inset 0 0 0 1px rgba(255, 122, 40, .65); }
.xl .rx-row.xr-ping::after { content: "Grok Bot"; margin-left: 6px; font-size: 9.5px; font-weight: 700; color: #ffb48a; }
.xl .xc-beams { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 60; overflow: visible; pointer-events: none; }
.xl .xc-beams .trail { fill: none; stroke: rgba(255, 140, 60, .45); stroke-width: 2; stroke-dasharray: 5 8; transition: opacity .6s; }
.xl .xc-beams .trail.ok { stroke: rgba(50, 213, 131, .45); }
.xl .xc-beams .trail.fade { opacity: 0; }
.xl .xc-beams .tail { fill: none; stroke: #ffb37a; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 9px rgba(255, 120, 30, .95)); }
.xl .xc-beams .tail.ok { stroke: #7df0b2; filter: drop-shadow(0 0 9px rgba(50, 213, 131, .95)); }
.xl .xc-beams .pk .halo { fill: rgba(255, 120, 30, .32); }
.xl .xc-beams .pk .core { fill: #fff; stroke: #ff7a1a; stroke-width: 3.5; }
.xl .xc-beams .pk.ok .halo { fill: rgba(50, 213, 131, .32); }
.xl .xc-beams .pk.ok .core { stroke: #32d583; }

/* ── Sections under the hero ── */
.xc-sec { padding: clamp(4rem, 7vw, 7rem) 0 clamp(3.5rem, 6vw, 6rem); border-top: 1px solid var(--wt-border, #1f1f22); background: var(--wt-bg-deep, #0a0a0b); overflow: hidden; }
.xc-sec-alt { background: var(--wt-bg, #0f0f0f); }
.xc-sec-copy { width: min(100% - 3rem, 46rem); margin: 0 auto 2.5rem; text-align: center; }
.xc-sec-copy h2 { margin: .75rem 0 0; color: var(--wt-text, #fff); font-family: var(--wt-font-sans, inherit); font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; word-break: keep-all; }
.xc-sec-copy p:not(.eyebrow) { max-width: 36rem; margin: 1rem auto 0; color: var(--wt-text-body, #b3b3b3); line-height: 1.75; word-break: keep-all; }
/* The host keeps roughly the stage's height before the scene mounts, so the page below does not jump. */
.xc-sec .xc-host { --xc-ratio: .5625; width: calc(100% - 3rem); max-width: 70rem; min-height: calc(min(100vw - 3rem, 70rem) * var(--xc-ratio)); margin: 0 auto; }
.xc-sec .xc-host[data-xc="remote"] { --xc-ratio: .526; }
.xc-sec .xc-host noscript p { margin: 0; padding: 3rem 1rem; text-align: center; color: var(--wt-text-muted, #8b8b90); }
@media (max-width: 760px) { .xc-sec .xc-host[data-xc="remote"] { --xc-ratio: 1.868; } }
.xc-sec-copy h2 .xc-nb { white-space: nowrap; }
.xc-sec-copy h2 .xc-br { display: none; }
@media (min-width: 761px) { .xc-sec-copy h2 .xc-br { display: inline; } }
@media (max-width: 760px) { .xc-root .gx-nudge { display: none; } }
.xc-sec-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .625rem; text-align: center; width: min(100% - 3rem, 46rem); margin: -1rem auto 2rem; color: var(--wt-text-muted, #8b8b90); font-size: .875rem; line-height: 1.5; word-break: keep-all; }
.xc-sec-note b { display: inline-flex; align-items: center; gap: .4rem; height: 1.75rem; padding: 0 .7rem; border: 1px solid #2c2c30; border-radius: 999px; background: #161618; color: #e8e8ec; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.xc-sec-note b i { width: .4rem; height: .4rem; border-radius: 50%; background: #ff6b1a; }

@media (prefers-reduced-motion: reduce) {
  .xl .xc-card.xc-hit, .xl .xc-card.xc-new { animation: none; }
}
