/* Waytive X interactive demo. All widget styles stay inside the .xl root. */
.xl {
  --ui: var(--wt-font-body, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif);
  --mono: var(--wt-font-mono, ui-monospace, "SF Mono", Menlo, monospace);
  --xl-surface: #111317; --xl-line: #22262D; --xl-fg: #ECEEF2; --xl-fg2: #9AA1AD; --xl-accent: #5184FF;
  width: 100%; min-width: 0; position: relative; color: var(--xl-fg); font: 14px/1.6 var(--ui); text-align: left;
}
@media (min-width: 761px) {
  .xl { width: calc(min(calc(var(--xl-viewport-width, 100vw) - 64px), 1600px) * .9); left: 50%; transform: translateX(-50%); }
}
.xl, .xl *, .xl *::before, .xl *::after { box-sizing: border-box; }
.xl button, .xl input, .xl textarea { font-family: inherit; }
.xl button:focus-visible { outline: 2px solid var(--xl-accent); outline-offset: 2px; }

/* Waytive X 1:1 replica — sizes/colors mirror WaytiveX/App/Theme.swift, SessionView PaneHeaderChrome,
   AgentDashboardPanel/Cards, measured against a 0.1.89 screenshot (1920×1050 @1x). */
.xl .rx {
  --win: #0D0D0D; --side: #202123; --content: #141414; --term: #1E1E1E; --card: #1C1C1C; --elev: #222222;
  --sel: #2C2C2C; --hover: #202020; --sep: #303030; --sep2: #252525; --focus: #585858;
  --t1: #F3F3F3; --t2: #A3A3A3; --t3: #737373; --acc: #5184FF; --acc-soft: #3159B8;
  --red: #FF5F57; --orange: #FF9F0A; --green: #32D583; --gray: #8E8E93; --run: #30D158;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", var(--wt-font-body, "Pretendard Variable"), sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, var(--wt-font-mono, "JetBrains Mono"), monospace;
  position: absolute; left: 0; top: 0; width: 1600px; height: 100%; transform-origin: 0 0;
  background: var(--win); color: var(--t1); font: 13px/1.35 var(--ui); overflow: hidden;
  border-radius: 12px; box-shadow: 0 0 0 1px #2a2a2a, 0 30px 80px rgba(0,0,0,.55);
  -webkit-font-smoothing: antialiased; user-select: none; letter-spacing: -.003em;
}
.xl .rx *, .xl .rx *::before, .xl .rx *::after { box-sizing: border-box; }
.xl :where(.rx) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.xl :where(.rx) input { font: inherit; color: inherit; background: none; border: 0; outline: none; padding: 0; min-width: 0; }
.xl .rx input:focus-visible, .xl .rx textarea:focus-visible { outline: 1px solid var(--acc); outline-offset: 2px; }
.xl .rx-dsearch:focus-within, .xl .rx-cc-in .row:focus-within, .xl .rx-cx-in .box:focus-within, .xl .rx-bt .url:focus-within { outline: 1px solid var(--acc); outline-offset: 1px; }
.xl .rx-dsearch input:focus-visible, .xl .rx-cc-in input:focus-visible, .xl .rx-cx-in input:focus-visible, .xl .rx-bt .url input:focus-visible, .xl .rx-comp textarea:focus-visible { outline: none; }
.xl .rx svg { display: block; flex: none; }
.xl .rx .lg { width: 12px; height: 12px; object-fit: contain; flex: none; display: block; }
.xl .rx .tnum { font-variant-numeric: tabular-nums; }

/* ── Title bar (40pt) ── */
.xl .rx-tb { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; z-index: 5; }
.xl .rx-tb .side { width: 240px; height: 40px; background: var(--side); display: flex; align-items: center; gap: 2px; padding-left: 14px; flex: none; }
.xl .rx-lights { display: flex; gap: 8px; margin-right: 22px; }
.xl .rx-lights i { width: 12px; height: 12px; border-radius: 50%; background: #4a4a4c; }
.xl .rx-tb .ib { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: var(--t2); }
.xl .rx-tb .ib:hover { background: var(--hover); color: var(--t1); }
.xl .rx-tb .ib.dim { color: #4d4d4d; }
.xl .rx-tb .mid { flex: 1; display: flex; align-items: center; padding-left: 16px; gap: 6px; }
.xl .rx-tb .tasks { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 9px; border-radius: 6px; color: var(--t2); font-size: 12px; }
.xl .rx-tb .tasks:hover, .xl .rx-tb .tasks.on { background: var(--sel); color: var(--t1); }
.xl .rx-tb .right { display: flex; align-items: center; gap: 6px; padding-right: 14px; }
.xl .rx-usage { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--t1); }
.xl .rx-usage:hover { background: var(--hover); }
.xl .rx-usage .stk { display: flex; align-items: center; }
.xl .rx-usage .stk img { width: 15px; height: 15px; margin-left: -3px; }
.xl .rx-usage .stk img:first-child { margin-left: 0; }
.xl .rx-ring { width: 14px; height: 14px; }
.xl .rx-voice { width: 26px; height: 26px; display: grid; place-items: center; }
.xl .rx-voice i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8fb0ff, #3d6dff 55%, #2448c6); display: grid; place-items: center; }

/* ── Sidebar (#202123) ── */
.xl .rx-sb { position: absolute; left: 0; top: 40px; bottom: 0; width: 240px; background: var(--side); display: flex; flex-direction: column; z-index: 2; }
.xl .rx-sb .brand { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px 0 20px; }
.xl .rx-sb .brand b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.xl .rx-sb .brand b svg { color: var(--t2); }
.xl .rx-sb .brand .acts { display: flex; gap: 2px; color: var(--t2); }
.xl .rx-sb .brand .acts span { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; }
.xl .rx-sb .brand .acts span:hover { background: var(--hover); color: var(--t1); }
.xl .rx-sb .brand .acts .dot { position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.xl .rx-sb .quick { padding: 6px 12px 10px; display: grid; gap: 2px; }
.xl .rx-sb .scroll { flex: 1; min-height: 0; overflow: hidden auto; padding: 4px 12px 8px; position: relative; }
.xl .rx-sb .scroll, .xl .rx-agrows, .xl .rx-threads { overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.xl .rx-sb .scroll:hover, .xl .rx-sb .scroll:focus-within, .xl .rx-agrows:hover, .xl .rx-agrows:focus-within, .xl .rx-threads:hover, .xl .rx-threads:focus-within { scrollbar-color: #4b4b50 transparent; }
.xl .rx-row { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px 0 9px; border-radius: 8px; font-size: 13px; color: var(--t1); width: 100%; text-align: left; white-space: nowrap; }
.xl .rx-row:hover { background: rgba(255,255,255,.045); }
.xl .rx-row.on { background: var(--sel); }
.xl .rx-row .ic { width: 16px; display: grid; place-items: center; color: var(--t2); flex: none; }
.xl .rx-row .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.xl .rx-row .ct { font-size: 10.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.xl .rx-row .badge { font-size: 10px; font-weight: 600; color: #0a2b18; background: var(--green); border-radius: 20px; padding: 2px 7px; }
.xl .rx-row.ws { margin-top: 10px; font-weight: 500; }
.xl .rx-row.ws .ic { color: var(--t2); }
.xl .rx-row.ses { padding-left: 30px; height: 32px; }
.xl .rx-row.ses .sd { width: 5px; height: 5px; border-radius: 50%; background: var(--t3); flex: none; margin-right: 1px; }
.xl .rx-row.ses .sd.run { background: var(--run); }
.xl .rx-row.ses .sd.work { background: var(--run); animation: rxPulse 1.4s ease-in-out infinite; }
.xl .rx-row .wd { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-right: 6px; }
.xl .rx-row .wd.y { background: #FFD60A; } .xl .rx-row .wd.g { background: var(--run); }
.xl .rx-sb .acct { height: 56px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-top: 1px solid transparent; }
.xl .rx-sb .acct .av { width: 24px; height: 24px; border-radius: 50%; background: var(--acc); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.xl .rx-sb .acct .who { flex: 1; line-height: 1.15; }
.xl .rx-sb .acct .who b { display: block; font-size: 13px; font-weight: 500; }
.xl .rx-sb .acct .who small { font-size: 10px; color: var(--t3); }
.xl .rx-sb .acct .ib { width: 26px; height: 26px; display: grid; place-items: center; color: var(--t2); border-radius: 6px; }
@keyframes rxPulse { 50% { opacity: .35; } }

/* ── Work area ── */
.xl .rx-main { position: absolute; top: 40px; bottom: 14px; left: 254px; right: 358px; z-index: 1; }
.xl .rx.no-panel .rx-main { right: 14px; }
.xl .rx-session { position: absolute; inset: 0; border-radius: 14px; border: 1px solid var(--sep); overflow: hidden; background: var(--term); display: flex; }
.xl .rx-split { display: flex; flex: 1; min-width: 0; min-height: 0; position: relative; }
.xl .rx-split.v { flex-direction: column; }
.xl .rx-split > .cell { position: relative; display: flex; min-width: 0; min-height: 0; overflow: hidden; }
.xl .rx-div { flex: none; background: var(--sep); position: relative; z-index: 3; }
.xl .rx-split.h > .rx-div { width: 1px; cursor: col-resize; }
.xl .rx-split.v > .rx-div { height: 1px; cursor: row-resize; }
.xl .rx-div::before { content: ""; position: absolute; inset: 0 -8px; }
.xl .rx-split.v > .rx-div::before { inset: -8px 0; }
.xl .rx-div:hover, .xl .rx-div.drag { background: var(--acc); }

.xl .rx-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--term); position: relative; }
.xl .rx-pane::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s; z-index: 4; }
.xl .rx-pane.focus::after { box-shadow: inset 0 0 0 1px var(--focus); }
.xl .rx-pane.lock::after { box-shadow: inset 0 0 0 2px var(--acc), inset 0 0 24px rgba(81,132,255,.25); }
.xl .rx-pane.done::after { box-shadow: inset 0 0 0 2px rgba(50,213,131,.75); }
.xl .rx-ph { height: 28px; flex: none; background: var(--content); border-bottom: 1px solid var(--sep); display: flex; align-items: center; gap: 4px; padding: 0 8px; cursor: grab; }
.xl .rx-ph .ttl { font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 40px; }
.xl .rx-ph .ttl small { color: var(--t3); font-weight: 400; margin-left: 4px; }
.xl .rx-ph .sp { flex: 1; }
.xl .rx-ph .st { width: 4px; height: 4px; border-radius: 50%; background: var(--run); flex: none; margin: 0 3px; }
.xl .rx-ph .st.work { animation: rxPulse 1.4s ease-in-out infinite; }
.xl .rx-ph .st.wait { background: var(--orange); }
.xl .rx-ph .hb { width: 20px; height: 20px; display: grid; place-items: center; color: var(--t3); border-radius: 5px; }
.xl .rx-ph .hb:hover { color: var(--t1); background: var(--hover); }
.xl .rx-pb { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }

/* Terminal text */
.xl .rx-term { flex: 1; min-height: 0; overflow: hidden; padding: 10px 14px 6px 12px; font: 12px/1.62 var(--mono); color: #D4D4D4; display: flex; flex-direction: column; }
.xl .rx-term > * { flex: none; }
.xl .rx-term .l { white-space: pre-wrap; word-break: break-word; min-height: 1.62em; }
.xl .rx-term .g { color: #8A8A8A; } .xl .rx-term .dim { color: #6B6B6B; } .xl .rx-term .b { font-weight: 700; color: #ECECEC; }
.xl .rx-term .cl { color: #D97757; } .xl .rx-term .ok { color: #4EC98A; } .xl .rx-term .bad { color: #F0716B; } .xl .rx-term .acc { color: #7CA2FF; }
.xl .rx-term .cy { color: #5FC7D9; } .xl .rx-term .ye { color: #E5C07B; } .xl .rx-term .mg { color: #C792EA; }
.xl .rx-term .it { font-style: italic; }
.xl .rx-term .gap { height: 8px; min-height: 0; }
.xl .rx-term .bul { display: grid; grid-template-columns: 14px 1fr; }
.xl .rx-term .sub { display: grid; grid-template-columns: 30px 1fr; color: #9A9A9A; }
.xl .rx-term .df { display: grid; grid-template-columns: 30px 34px 1fr; }
.xl .rx-term .df.add { background: rgba(46,160,67,.16); color: #B5E8C4; } .xl .rx-term .df.del { background: rgba(248,81,73,.15); color: #F3B1AC; }
.xl .rx-term .df .n { color: #6B6B6B; text-align: right; padding-right: 8px; }
.xl .rx-term .user { background: #2A2A2A; margin: 2px -14px 2px -12px; padding: 1px 14px 1px 12px; color: #E8E8E8; }
.xl .rx-term .spin { color: #D97757; }
.xl .rx-term table { border-collapse: collapse; margin: 4px 0; }
.xl .rx-term td { border: 1px solid #555; padding: 1px 8px; }
.xl .caret { display: inline-block; width: .6em; height: 1.15em; background: #D4D4D4; vertical-align: -0.2em; animation: rxBlink 1.05s steps(1) infinite; }
@keyframes rxBlink { 50% { opacity: 0; } }

/* Claude Code prompt + status line */
.xl .rx-cc-in { flex: none; padding: 0 14px 8px 12px; font: 12px/1.62 var(--mono); color: #D4D4D4; }
.xl .rx-cc-in .rule { height: 1px; background: #5a5a5a; margin: 5px 0; position: relative; }
.xl .rx-cc-in .rule span { position: absolute; right: 8px; top: -9px; background: var(--term); padding: 0 6px; color: #8A8A8A; font-size: 11.5px; }
.xl .rx-cc-in .row { display: flex; align-items: flex-start; gap: 8px; min-height: 1.62em; }
.xl .rx-cc-in .row input { flex: 1; font: inherit; color: #ECECEC; caret-color: #ECECEC; }
.xl .rx-cc-in .row input::placeholder { color: #6B6B6B; }
.xl .rx-cc-in .sl { color: #8A8A8A; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .rx-cc-in .sl .m { color: #5FA8E6; } .xl .rx-cc-in .sl .c { color: #4EC98A; } .xl .rx-cc-in .sl .bp { color: #E46876; }
.xl .rx-cc-in .bar { display: inline-block; width: 70px; height: 9px; border: 1px solid #4EC98A; vertical-align: -1px; margin: 0 2px; position: relative; }
.xl .rx-cc-in .bar i { position: absolute; left: 1px; top: 1px; bottom: 1px; background: #4EC98A; }
.xl .rx-history { position: absolute; top: 8px; right: 10px; height: 24px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border-radius: 6px; background: rgba(44,44,44,.92); font-size: 11px; color: var(--t1); z-index: 3; backdrop-filter: blur(8px); }
.xl .rx-history:hover { background: #363636; }

/* Codex composer */
.xl .rx-cx-in { flex: none; padding: 0 12px 8px; font: 12px/1.62 var(--mono); color: #D4D4D4; }
.xl .rx-cx-in .box { border-left: 2px solid #3a3a3a; background: #262626; padding: 6px 10px; display: flex; gap: 8px; }
.xl .rx-cx-in .box b { color: #ECECEC; font-weight: 700; }
.xl .rx-cx-in .box input { flex: 1; font: inherit; color: #ECECEC; caret-color: #ECECEC; }
.xl .rx-cx-in .box input::placeholder { color: #6B6B6B; }
.xl .rx-cx-in .ft { color: #6B6B6B; font-size: 11px; padding: 4px 2px 0; display: flex; justify-content: space-between; white-space: nowrap; overflow: hidden; }
.xl .rx-cx-head { border: 1px solid #4a4a4a; border-radius: 4px; padding: 6px 12px; margin: 2px 0 10px; width: max-content; max-width: 100%; }
.xl .rx-ask { border: 1px solid #4a4a4a; border-left: 2px solid var(--orange); padding: 6px 10px; margin: 6px 0; background: rgba(255,159,10,.05); }
.xl .rx-ask .opt { display: block; width: 100%; text-align: left; padding: 0 4px; border-radius: 3px; font: inherit; color: #BDBDBD; }
.xl .rx-ask .opt.sel { color: #7CA2FF; font-weight: 700; }
.xl .rx-ask .opt:hover { background: rgba(255,255,255,.06); color: #fff; }

/* Browser pane */
.xl .rx-bt { height: 36px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: var(--content); border-bottom: 1px solid var(--sep); }
.xl .rx-bt .tb { width: 24px; height: 24px; display: grid; place-items: center; color: var(--t2); border-radius: 5px; }
.xl .rx-bt .tb:hover { background: var(--hover); color: var(--t1); }
.xl .rx-bt .tb.dis { color: #4a4a4a; }
.xl .rx-bt .url { flex: 1; height: 24px; border-radius: 6px; background: var(--elev); display: flex; align-items: center; gap: 6px; padding: 0 9px; font-size: 12px; color: var(--t2); min-width: 0; }
.xl .rx-bt .url input { flex: 1; color: var(--t1); font-size: 12px; }
.xl .rx-bprog { position: absolute; left: 0; top: 0; height: 2px; background: var(--acc); width: 0; z-index: 4; transition: width .5s ease, opacity .3s; }
.xl .rx-web { flex: 1; min-height: 0; overflow: hidden; background: #fff; position: relative; }
.xl .rx-web .page { transform-origin: 0 0; position: absolute; left: 0; top: 0; }

/* ── Right panel ── */
.xl .rx-rp { position: absolute; top: 40px; bottom: 14px; right: 14px; width: 330px; border: 1px solid var(--sep); border-radius: 14px; background: var(--content); overflow: hidden; display: flex; flex-direction: column; transition: width .45s cubic-bezier(.3,.1,.2,1); z-index: 3; }
.xl .rx.no-panel .rx-rp { display: none; }
.xl .rx-rp-handle { position: absolute; top: 40px; bottom: 14px; right: 351px; width: 1px; z-index: 4; cursor: col-resize; }
.xl .rx-rp-handle::before { content: ""; position: absolute; inset: 0 -7px; }
.xl .rx-rp-handle:hover { background: var(--acc); }
.xl .rx.max-panel .rx-rp { width: calc(1600px - 254px - 14px); }
.xl .rx.max-panel .rx-rp-handle { display: none; }
.xl .rx-tabs { height: 31px; flex: none; background: var(--term); border-bottom: 1px solid var(--sep); display: flex; align-items: center; gap: 2px; padding: 0 6px; }
.xl .rx-tab { height: 22px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; color: var(--t2); }
.xl .rx-tab.on { background: var(--sel); color: var(--t1); font-weight: 600; }
.xl .rx-tab .x { color: var(--t3); margin-left: 2px; }
.xl .rx-tabs .sp { flex: 1; }
.xl .rx-tabs .ib { width: 24px; height: 22px; display: grid; place-items: center; color: var(--t2); border-radius: 5px; }
.xl .rx-tabs .ib:hover { background: var(--hover); color: var(--t1); }
.xl .rx-rpbody { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }

/* Dashboard */
.xl .rx-dh { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--sep); }
.xl .rx-dh .gd { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.xl .rx-dh b { font-size: 13px; font-weight: 600; }
.xl .rx-dh .cnt { font-size: 10px; font-weight: 600; color: var(--t2); background: var(--elev); border-radius: 20px; padding: 3px 7px; }
.xl .rx-dh .sp { flex: 1; }
.xl .rx-dh .ib { width: 24px; height: 24px; display: grid; place-items: center; color: var(--t3); border-radius: 6px; }
.xl .rx-dh .ib:hover { color: var(--t1); background: var(--hover); }
.xl .rx-dscroll { flex: 1; min-height: 0; overflow: hidden auto; padding: 14px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.xl .rx-dscroll::-webkit-scrollbar { width: 6px; } .xl .rx-dscroll::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
.xl .rx-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.xl .rx-max .rx-stats { grid-template-columns: repeat(4, 1fr); }
.xl .rx-stat { text-align: left; background: var(--card); border: 1px solid var(--sep); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, background .2s; }
.xl .rx-stat:hover { border-color: #444; }
.xl .rx-stat .lb { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 500; color: var(--t2); }
.xl .rx-stat .lb i { width: 5px; height: 5px; border-radius: 50%; }
.xl .rx-stat .n { font: 600 20px/1.1 ui-rounded, -apple-system, "SF Pro Rounded", var(--ui); font-variant-numeric: tabular-nums; }
.xl .rx-stat.sel { background: color-mix(in srgb, var(--tint) 12%, var(--card)); border-color: color-mix(in srgb, var(--tint) 60%, transparent); }
.xl .rx-stat.bump .n { animation: rxBump .5s ease; }
@keyframes rxBump { 40% { transform: scale(1.18); color: var(--tint); } }
.xl .rx-dsearch { margin-top: 14px; height: 32px; border-radius: 8px; background: var(--elev); display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--t2); }
.xl .rx-dsearch input { flex: 1; font-size: 12px; color: var(--t1); }
.xl .rx-dsearch input::placeholder { color: var(--t3); }
.xl .rx-seg { margin: 10px auto 0; width: 200px; height: 24px; background: var(--elev); border-radius: 7px; display: grid; grid-template-columns: 1fr 1fr; padding: 2px; }
.xl .rx-seg button { border-radius: 5px; font-size: 11.5px; color: var(--t2); }
.xl .rx-seg button.on { background: #4B4B4B; color: var(--t1); font-weight: 500; }
.xl .rx-sec { margin: 18px 0 8px; display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: var(--t3); }
.xl .rx-sec i { width: 5px; height: 5px; border-radius: 50%; }
.xl .rx-sec .wsn { font-size: 12px; font-weight: 600; color: var(--t1); }
.xl .rx-sec .wsp { font: 10px var(--mono); color: var(--t3); font-weight: 400; }
.xl .rx-cards { display: grid; gap: 8px; }
.xl .rx-max .rx-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.xl .rx-card { text-align: left; background: var(--card); border: 1px solid var(--sep); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, background .2s, transform .35s, opacity .35s; position: relative; }
.xl .rx-card:hover { background: var(--elev); border-color: color-mix(in srgb, var(--tint) 45%, transparent); }
.xl .rx-card.flash { animation: rxFlash 1.2s ease; }
@keyframes rxFlash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tint) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.xl .rx-card .id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.xl .rx-eic { position: relative; width: 28px; height: 28px; border-radius: 7px; background: var(--elev); display: grid; place-items: center; flex: none; }
.xl .rx-eic img { width: 16px; height: 16px; }
.xl .rx-eic.sm { width: 24px; height: 24px; border-radius: 6px; } .xl .rx-eic.sm img { width: 13px; height: 13px; }
.xl .rx-eic i { position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--card); }
.xl .rx-card .tt { flex: 1; min-width: 0; }
.xl .rx-card .tt b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .rx-card .tt small { display: block; font-size: 10.5px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .rx-pill { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 20px; font-size: 10px; font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--tint) 14%, transparent); flex: none; }
.xl .rx-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--tint); }
.xl .rx-pill i.pulse { animation: rxPulse 1.2s ease-in-out infinite; }
.xl .rx-card .live { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ink); }
.xl .rx-card .live .lo { flex: 1; text-align: right; font-size: 10px; color: var(--t3); }
.xl .rx-card .orb { width: 46px; height: 46px; margin: -12px -4px -8px 0; }
.xl .rx-card .wp { font: 11px var(--mono); color: var(--ink); padding: 7px 8px; border-radius: 6px; background: color-mix(in srgb, var(--tint) 8%, transparent); border: 1px solid color-mix(in srgb, var(--tint) 25%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .rx-card .resp .tm { display: flex; align-items: center; gap: 5px; color: var(--ink); }
.xl .rx-card .resp { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--t2); }
.xl .rx-card .resp b { color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.xl .rx-card .nr { font-size: 10.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 5px; }
.xl .rx-card .nr i { width: 5px; height: 5px; border-radius: 50%; background: var(--tint); }
.xl .rx-card .meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--t2); margin-top: -4px; }
.xl .rx-mini { text-align: left; height: 46px; background: var(--card); border: 1px solid var(--sep); border-radius: 10px; padding: 0 10px; display: flex; align-items: center; gap: 10px; transition: background .2s; }
.xl .rx-mini:hover { background: var(--elev); }
.xl .rx-mini .tt { flex: 1; min-width: 0; }
.xl .rx-mini .tt b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .rx-mini .tt small { display: block; font-size: 10.5px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .rx-mini .ago { font-size: 10.5px; color: var(--t3); flex: none; }
.xl .rx-enter { animation: rxEnter .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rxEnter { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* Files tab */
.xl .rx-files { padding: 12px 14px; display: grid; gap: 2px; font-size: 12px; }
.xl .rx-files .f { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; }
.xl .rx-files .f:hover { background: var(--hover); }
.xl .rx-files .f .p { flex: 1; color: var(--t1); font-family: var(--mono); font-size: 11.5px; }
.xl .rx-files .f .m { font: 600 10px var(--mono); width: 14px; } .xl .rx-files .M { color: #E5C07B; } .xl .rx-files .A { color: #4EC98A; }
.xl .rx-files .f .d { font: 10.5px var(--mono); color: var(--t3); }
.xl .rx-files h4 { margin: 4px 8px 8px; font-size: 10px; color: var(--t3); font-weight: 700; }

/* Notification toast (top-right, like the app banner) */
.xl .rx-toast { position: absolute; right: 372px; top: 52px; width: 330px; background: rgba(36,36,36,.96); border: 1px solid #3a3a3a; border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; z-index: 60; box-shadow: 0 18px 40px rgba(0,0,0,.5); animation: rxToast .4s cubic-bezier(.2,.8,.2,1); backdrop-filter: blur(16px); }
.xl .rx-toast .ti { font-size: 12.5px; font-weight: 600; flex: 1; }
.xl .rx-toast .tm { font-size: 10.5px; color: var(--t3); }
.xl .rx-toast .bd { font-size: 11.5px; color: var(--t2); margin-top: 2px; }
@keyframes rxToast { from { opacity: 0; transform: translateY(-10px); } }

/* Fake pointer */
.xl .rx-cursor { position: absolute; left: 0; top: 0; width: 24px; height: 24px; z-index: 100; pointer-events: none; transition: transform .7s cubic-bezier(.45,.05,.2,1), opacity .25s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.xl .rx-cursor.off { opacity: 0; }
.xl .rx-ripple { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid rgba(81,132,255,.9); z-index: 99; pointer-events: none; animation: rxRipple .5s ease-out forwards; }
@keyframes rxRipple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.xl .rx-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 70; background: rgba(20,20,20,.92); border: 1px solid #333; color: var(--t1); padding: 9px 16px; border-radius: 999px; font-size: 13px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: rxToast .35s ease; pointer-events: none; white-space: nowrap; }
.xl .rx-hint b { color: #8fb0ff; font-weight: 600; }

/* Website rendered inside the browser pane (a sample product page on localhost) */
.xl .rx-site { width: 1200px; font: 15px/1.5 var(--ui); color: #0f172a; background: #fff; }
.xl .rx-site .rxs-nav { height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 56px; border-bottom: 1px solid #eef0f4; font-size: 14px; color: #475569; }
.xl .rx-site .rxs-nav b { color: #0f172a; font-size: 18px; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.xl .rx-site .rxs-nav b i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #f97316, #fb7185); }
.xl .rx-site .rxs-nav .rxs-cta { background: #0f172a; color: #fff; border-radius: 8px; padding: 8px 14px; }
.xl .rx-site .rxs-hero { padding: 72px 56px 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; transition: background .6s; }
.xl .rx-site .rxs-hero .rxs-ey { font-size: 13px; font-weight: 600; color: #f97316; letter-spacing: .02em; }
.xl .rx-site .rxs-hero .rxs-title { font-size: 50px; line-height: 1.12; letter-spacing: -.03em; margin: 12px 0 16px; font-weight: 700; }
.xl .rx-site .rxs-hero p { font-size: 17px; color: #475569; margin: 0 0 26px; max-width: 30em; }
.xl .rx-site .rxs-hero .rxs-btns { display: flex; gap: 10px; }
.xl .rx-site .rxs-hero .rxs-btns span { padding: 13px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.xl .rx-site .rxs-hero .rxs-btns .rxs-p { background: #0f172a; color: #fff; } .xl .rx-site .rxs-hero .rxs-btns .rxs-s { background: #f1f5f9; color: #0f172a; }
.xl .rx-site .rxs-shot { height: 300px; border-radius: 16px; background: linear-gradient(160deg, #fff7ed, #ffe4e6); border: 1px solid #fde1d3; position: relative; overflow: hidden; }
.xl .rx-site .rxs-shot i { position: absolute; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(249,115,22,.15); }
.xl .rx-site .rxs-logos { display: flex; gap: 44px; padding: 10px 56px 34px; color: #94a3b8; font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.xl .rx-site .rxs-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 56px 60px; }
.xl .rx-site .rxs-feat div { border: 1px solid #eef0f4; border-radius: 14px; padding: 22px; }
.xl .rx-site .rxs-feat b { display: block; margin-bottom: 6px; font-size: 16px; }
.xl .rx-site .rxs-feat span { color: #64748b; font-size: 14px; }
.xl .rx-site.rxs-v2 .rxs-hero { background: radial-gradient(1200px 400px at 20% 0%, #fff7ed, transparent 60%); }
.xl .rx-site.rxs-v2 .rxs-hero .rxs-btns .rxs-p { background: linear-gradient(135deg, #f97316, #ef4444); box-shadow: 0 8px 22px rgba(239,68,68,.3); }
.xl .rx-site .rxs-new { outline: 3px solid rgba(81,132,255,.0); transition: outline-color .4s; }
.xl .rx-site .rxs-new.rxs-hl { outline-color: rgba(81,132,255,.7); outline-offset: 6px; border-radius: 8px; }
.xl .rx-site .rxs-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 56px 60px; }
.xl .rx-site .rxs-pricing div { border: 1px solid #eef0f4; border-radius: 16px; padding: 24px; }
.xl .rx-site .rxs-pricing div.rxs-pop { border-color: #f97316; box-shadow: 0 10px 30px rgba(249,115,22,.15); }
.xl .rx-site .rxs-pricing b { font-size: 30px; display: block; margin: 6px 0; letter-spacing: -.02em; }
.xl .rx-term .shimmer { background: linear-gradient(90deg, #8a8a8a 20%, #fff 50%, #8a8a8a 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rxSh 1.8s linear infinite; }
@keyframes rxSh { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.xl .rx-shade { position: absolute; inset: 0; z-index: 90; cursor: pointer; }

.xl .rx-site .rxs-quote { margin: 0 56px 56px; padding: 40px; border-radius: 18px; background: #f8fafc; text-align: center; }
.xl .rx-site .rxs-quote p { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; }
.xl .rx-site .rxs-quote span { color: #64748b; font-size: 14px; }
.xl .rx-site .rxs-footer { display: flex; gap: 24px; align-items: center; padding: 28px 56px 40px; border-top: 1px solid #eef0f4; color: #64748b; font-size: 14px; }
.xl .rx-site .rxs-footer b { color: #0f172a; margin-right: auto; } .xl .rx-site .rxs-footer small { margin-left: 24px; }
.xl .rx-cx-in .ft span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.xl .rx-cx-in .ft { gap: 12px; } .xl .rx-cx-in .ft span:last-child { flex: none; }


/* Waytive Agent / Waytive Chat modes — mirrors SidebarView (ProductModeSwitcher, AgentContextSection,
   ChatContextSection), AgentView, AgentWorkspaceView and ChatView. */

/* Product mode switcher (sidebar header) */
.xl .rx-sb .brand { padding: 0 12px 0 11px; }
.xl .rx-switch { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 9px; border-radius: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; transition: background .15s; }
.xl .rx-switch:hover, .xl .rx-switch.open { background: var(--sel); }
.xl .rx-switch svg { color: var(--t2); transition: transform .22s; }
.xl .rx-switch.open svg { transform: rotate(180deg); }
.xl .rx-switch .nm { transition: opacity .2s; }
.xl .rx-modemenu { position: absolute; left: 12px; top: 92px; width: 260px; padding: 7px; background: var(--elev); border: 1px solid #3a3a3a; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.55); z-index: 80; display: grid; gap: 3px; transform-origin: 60px -6px; animation: rxPop .18s cubic-bezier(.2,.8,.2,1); }
.xl .rx-modemenu::before { content: ""; position: absolute; top: -7px; left: 52px; width: 12px; height: 12px; background: var(--elev); border-left: 1px solid #3a3a3a; border-top: 1px solid #3a3a3a; transform: rotate(45deg); }
.xl .rx-modemenu button { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 11px; border-radius: 8px; text-align: left; position: relative; }
.xl .rx-modemenu button:hover, .xl .rx-modemenu button.kb { background: var(--sel); }
.xl .rx-modemenu b { display: block; font-size: 13px; font-weight: 500; }
.xl .rx-modemenu small { display: block; font-size: 11px; color: var(--t2); margin-top: 4px; }
.xl .rx-modemenu .ck { margin-left: auto; opacity: 0; }
.xl .rx-modemenu button.on .ck { opacity: 1; }
@keyframes rxPop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }

/* Mode containers */
.xl .rx .sbm, .xl .rx .mm { transition: opacity .22s ease, transform .22s ease; }
.xl .rx .sbm.off, .xl .rx .mm.off { opacity: 0; transform: translateY(6px); pointer-events: none; visibility: hidden; }
.xl .rx-sb .sbm { position: absolute; left: 0; right: 0; top: 44px; bottom: 56px; display: flex; flex-direction: column; }
.xl .rx-sb .sbm.agent { bottom: 14px; left: 14px; right: 0; top: 52px; background: var(--content); border: 1px solid var(--sep); border-radius: 14px; overflow: hidden; }
.xl .rx-sb .acct { position: absolute; left: 0; right: 0; bottom: 0; }
.xl .rx.mode-agent .rx-sb > .acct { opacity: 0; pointer-events: none; }
.xl .rx-sb .sbm.agent .acct { position: static; margin-top: auto; border-top: 1px solid var(--sep2); }
.xl .rx .mm { position: absolute; top: 40px; bottom: 14px; left: 254px; right: 358px; border: 1px solid var(--sep); border-radius: 14px; background: var(--content); overflow: hidden; z-index: 1; display: flex; flex-direction: column; }
.xl .rx.no-panel .mm { right: 14px; }
.xl .rx .rx-main.off { opacity: 0; transform: translateY(6px); pointer-events: none; visibility: hidden; }
.xl .rx .rx-main { transition: opacity .22s ease, transform .22s ease; }

/* Sidebar section header */
.xl .rx-sech { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; height: 22px; font-size: 11px; font-weight: 600; color: var(--t2); }
.xl .rx-sech button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--t2); }
.xl .rx-sech button:hover { color: var(--t1); background: rgba(255,255,255,.06); }

/* Agent faces */
.xl .rx-face { flex: none; display: block; }

/* Agent sidebar rows */
.xl .rx-agrows { padding: 14px 8px 20px; flex: 0 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; overflow: hidden auto; }
.xl .rx-agrow { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px; border-radius: 8px; text-align: left; width: 100%; position: relative; }
.xl .rx-agrow:hover { background: rgba(255,255,255,.045); }
.xl .rx-agrow.on { background: var(--sel); }
.xl .rx-agrow .fw { position: relative; flex: none; }
.xl .rx-agrow .fw i { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--run); border: 1.5px solid var(--content); display: none; }
.xl .rx-agrow.run .fw i { display: block; }
.xl .rx-agrow .tx { flex: 1; min-width: 0; }
.xl .rx-agrow .l1 { display: flex; align-items: center; gap: 4px; }
.xl .rx-agrow .l1 b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .rx-agrow .l1 .ap { color: var(--orange); display: none; }
.xl .rx-agrow.ask .l1 .ap { display: block; animation: rxPulse 1.2s ease-in-out infinite; }
.xl .rx-agrow .l1 .sp { flex: 1; }
.xl .rx-agrow .l1 .rn { display: none; font-size: 9px; font-weight: 600; color: var(--run); background: rgba(48,209,88,.12); border-radius: 8px; min-width: 16px; height: 16px; padding: 0 4px; place-items: center; }
.xl .rx-agrow.run .l1 .rn { display: grid; }
.xl .rx-agrow .l1 time { font-size: 10px; color: var(--t3); flex: none; }
.xl .rx-agrow small { display: block; font-size: 11px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* Agent home grid */
.xl .rx-ahome { flex: 1; overflow: hidden auto; padding: 28px; scrollbar-width: none; }
.xl .rx-ahome .in { max-width: 860px; margin: 0 auto; display: grid; gap: 20px; }
.xl .rx-ahome .hd { display: flex; align-items: center; gap: 12px; }
.xl .rx-ahome h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.xl .rx-ahome .hd p { margin: 3px 0 0; font-size: 12px; color: var(--t2); }
.xl .rx-ahome .hd .sp { flex: 1; }
.xl .rx-newag { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 7px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 600; }
.xl .rx-newag:hover { filter: brightness(1.08); }
.xl .rx-agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.xl .rx-agcard { text-align: left; min-height: 150px; padding: 16px; border-radius: 13px; background: var(--card); border: 1px solid var(--sep); display: flex; flex-direction: column; gap: 13px; transition: border-color .15s; }
.xl .rx-agcard:hover { border-color: rgba(81,132,255,.65); }
.xl .rx-agcard .top { display: flex; align-items: center; gap: 12px; }
.xl .rx-agcard .top b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.xl .rx-agcard .top .sp { flex: 1; }
.xl .rx-agcard .top > svg:last-child { color: var(--t3); }
.xl .rx-agcard p { margin: 0; font-size: 12px; color: var(--t2); line-height: 1.45; min-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xl .rx-agcard time { font-size: 10px; color: var(--t3); }
.xl .rx-ebadge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--elev); font-size: 10px; font-weight: 500; color: var(--t2); }
.xl .rx-ebadge img, .xl .rx-ebadge .lg { width: 10px; height: 10px; }

/* Agent workspace */
.xl .rx-awh { height: 54px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.xl .rx-awh .fw { position: relative; }
.xl .rx-awh .fw i { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--run); border: 1.5px solid var(--content); display: none; }
.xl .rx-awh.run .fw i { display: block; }
.xl .rx-awh b { display: block; font-size: 13px; font-weight: 600; }
.xl .rx-awh small { display: block; font-size: 11px; color: var(--t2); margin-top: 2px; }
.xl .rx-awh .sp { flex: 1; }
.xl .rx-awh .wk { display: flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 20px; background: var(--card); border: 1px solid var(--sep); font-size: 10px; font-weight: 500; color: var(--t2); }
.xl .rx-awh .wk i { width: 5px; height: 5px; border-radius: 50%; background: var(--t3); }
.xl .rx-awh.run .wk i { background: var(--run); }
.xl .rx-awh .gb { width: 28px; height: 28px; display: grid; place-items: center; color: var(--t2); border-radius: 6px; }
.xl .rx-awh .gb:hover { background: var(--hover); color: var(--t1); }
.xl .rx-atabs { height: 34px; flex: none; display: flex; align-items: stretch; border-bottom: 1px solid var(--sep); padding-left: 4px; }
.xl .rx-atab { display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 11px; font-weight: 600; color: var(--t2); position: relative; white-space: nowrap; }
.xl .rx-atab:hover { color: var(--t1); }
.xl .rx-atab.on { color: var(--t1); }
.xl .rx-atab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--t1); }
.xl .rx-atab i { width: 5px; height: 5px; border-radius: 50%; background: var(--run); display: none; }
.xl .rx-atab.run i { display: block; }
.xl .rx-atabs .plus { width: 32px; display: grid; place-items: center; color: var(--t2); }
.xl .rx-atabs .plus:hover { color: var(--t1); }

/* Chat transcript */
.xl .rx-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.xl .rx-tr { flex: 1; min-height: 0; overflow: hidden auto; scrollbar-width: none; }
.xl .rx-tr::-webkit-scrollbar { display: none; }
.xl .rx-tr .col { max-width: 760px; margin: 0 auto; padding: 28px 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.xl .rx-chat.agent .rx-tr .col { max-width: 720px; }
.xl .rx-msg { display: flex; }
.xl .rx-msg.me { justify-content: flex-end; padding-left: 100px; }
.xl .rx-msg.me .bub { background: var(--acc); color: #fff; border-radius: 14px; padding: 10px 14px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.xl .rx-chat.agent .rx-msg.me { justify-content: flex-start; padding-left: 0; }
.xl .rx-chat.agent .rx-msg.me .bub { background: var(--elev); color: var(--t1); border-radius: 8px; font-weight: 600; width: 100%; }
.xl .rx-msg.ai { padding-right: 100px; }
.xl .rx-chat.agent .rx-msg.ai { padding-right: 0; }
.xl .rx-md { font-size: 13px; line-height: 1.65; color: var(--t1); min-width: 0; }
.xl .rx-md p { margin: 0 0 10px; } .xl .rx-md p:last-child { margin-bottom: 0; }
.xl .rx-md ul, .xl .rx-md ol { margin: 0 0 10px; padding-left: 20px; } .xl .rx-md li { margin: 2px 0; }
.xl .rx-md h4 { margin: 12px 0 6px; font-size: 13.5px; font-weight: 700; }
.xl .rx-md code { font: 12px var(--mono); background: var(--elev); border-radius: 4px; padding: 1px 5px; }
.xl .rx-md blockquote { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid #3d3d3d; background: rgba(255,255,255,.03); border-radius: 0 6px 6px 0; color: #d9d9d9; }
.xl .rx-md table { border-collapse: collapse; margin: 4px 0 12px; font-size: 12.5px; width: 100%; }
.xl .rx-md th, .xl .rx-md td { border: 1px solid var(--sep); padding: 7px 10px; text-align: left; }
.xl .rx-md th { background: var(--card); font-weight: 600; }
.xl .rx-md .cur { display: inline-block; width: 7px; height: 14px; background: var(--t2); vertical-align: -2px; margin-left: 2px; animation: rxBlink 1s steps(1) infinite; }
.xl .rx-item { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 10px; background: rgba(34,34,34,.4); font-size: 12px; color: var(--t2); line-height: 1.5; }
.xl .rx-item.tool { font-family: var(--mono); font-size: 11.5px; }
.xl .rx-item svg { margin-top: 2px; flex: none; }
.xl .rx-item .tx { flex: 1; min-width: 0; white-space: pre-wrap; }
.xl .rx-working { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--t2); font-variant-numeric: tabular-nums; }
.xl .rx-working i { width: 4px; height: 4px; border-radius: 50%; background: var(--run); }
.xl .rx-perm { border-radius: 10px; background: var(--elev); padding: 12px; display: grid; gap: 8px; border: 1px solid transparent; transition: border-color .3s, opacity .3s; }
.xl .rx-perm.live { border-color: rgba(255,159,10,.45); box-shadow: 0 0 0 3px rgba(255,159,10,.08); }
.xl .rx-perm .h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.xl .rx-perm .h svg { color: var(--orange); }
.xl .rx-perm .tn { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.xl .rx-perm details { font-size: 11px; color: var(--t2); }
.xl .rx-perm summary { cursor: pointer; }
.xl .rx-perm pre { margin: 6px 0 0; font: 11px/1.5 var(--mono); color: #cfcfcf; background: var(--card); border-radius: 6px; padding: 8px; white-space: pre-wrap; }
.xl .rx-perm .bt { display: flex; justify-content: flex-end; gap: 8px; }
.xl .rx-perm .bt button { height: 26px; padding: 0 12px; border-radius: 6px; font-size: 12px; font-weight: 500; border: 1px solid #444; }
.xl .rx-perm .bt button:hover { background: var(--sel); }
.xl .rx-perm .bt .ok { background: var(--acc); border-color: var(--acc); color: #fff; }
.xl .rx-perm .bt .ok:hover { background: #6593ff; }
.xl .rx-perm.done { opacity: .7; }
.xl .rx-perm .res { font-size: 11.5px; color: var(--t2); display: flex; align-items: center; gap: 6px; }

/* Chat composer */
.xl .rx-comp-wrap { flex: none; padding: 0 20px 18px; }
.xl .rx-comp-wrap .in { max-width: 760px; margin: 0 auto; }
.xl .rx-chat.agent .rx-comp-wrap .in { max-width: 720px; }
.xl .rx-comp { min-height: 104px; border-radius: 16px; background: var(--card); border: 1px solid var(--sep); box-shadow: 0 4px 20px rgba(0,0,0,.28); display: flex; flex-direction: column; transition: border-color .2s; position: relative; }
.xl .rx-comp:focus-within { border-color: var(--acc); }
.xl .rx-comp textarea { font: 14px/1.45 var(--ui); color: var(--t1); background: none; border: 0; outline: none; resize: none; min-height: 38px; padding: 11px 16px 0; width: 100%; }
.xl .rx-comp textarea::placeholder { color: var(--t3); }
.xl .rx-ctool { display: flex; align-items: center; gap: 2px; padding: 0 14px 12px; margin-top: auto; }
.xl .rx-ctool .sp { flex: 1; }
.xl .rx-cbtn { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px; border-radius: 7px; font-size: 12px; color: var(--t2); white-space: nowrap; }
.xl .rx-cbtn:hover, .xl .rx-cbtn.open { background: var(--sel); color: var(--t1); }
.xl .rx-cbtn img { width: 13px; height: 13px; }
.xl .rx-cbtn.plan { color: var(--t1); font-weight: 600; }
.xl .rx-cbtn.plan.on { background: var(--sel); }
.xl .rx-voice2 { width: 34px; height: 34px; border-radius: 50%; background: rgba(34,34,34,.65); display: grid; place-items: center; color: var(--t3); margin-left: 4px; }
.xl .rx-send { width: 34px; height: 34px; border-radius: 50%; background: var(--elev); display: grid; place-items: center; color: var(--t3); margin-left: 6px; transition: background .15s, transform .1s; }
.xl .rx-send.can { background: var(--acc); color: #fff; }
.xl .rx-send.can:active { transform: scale(.94); }
.xl .rx-send.stop { background: var(--acc); color: #fff; }
.xl .rx-menu { position: absolute; bottom: 46px; min-width: 220px; padding: 5px; background: var(--elev); border: 1px solid #3a3a3a; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 30; animation: rxPop .15s ease; }
.xl .rx-menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 5px 9px; border-radius: 6px; text-align: left; font-size: 12.5px; }
.xl .rx-menu button:hover { background: var(--sel); }
.xl .rx-menu button small { display: block; font-size: 10.5px; color: var(--t2); }
.xl .rx-menu button .ck { margin-left: auto; color: var(--t1); opacity: 0; }
.xl .rx-menu button.on .ck { opacity: 1; }
.xl .rx-menu h5 { margin: 4px 9px 4px; font-size: 10px; color: var(--t3); font-weight: 600; }

/* Chat empty state */
.xl .rx-cempty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: stretch; padding: 24px 20px; }
.xl .rx-cempty h2 { margin: 0; text-align: center; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.xl .rx-cempty p { margin: 8px 0 28px; text-align: center; font-size: 13px; color: var(--t2); }
.xl .rx-cempty .rx-comp-wrap { padding: 0; }

/* Chat sidebar */
.xl .rx-cquick { padding: 6px 12px 20px; display: grid; gap: 2px; }
.xl .rx-threads { padding: 0 12px; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; overflow: hidden auto; }
.xl .rx-thr { display: block; text-align: left; height: 47px; padding: 0 8px; border-radius: 8px; width: 100%; }
.xl .rx-thr:hover { background: rgba(255,255,255,.045); }
.xl .rx-thr.on { background: var(--sel); }
.xl .rx-thr .l1 { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--t2); padding-top: 7px; }
.xl .rx-thr .l1 img { width: 12px; height: 12px; }
.xl .rx-thr .l1 .wk { width: 5px; height: 5px; border-radius: 50%; background: var(--run); display: none; animation: rxPulse 1.2s infinite; margin-left: auto; }
.xl .rx-thr.run .l1 .wk { display: block; }
.xl .rx-thr b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.xl .rx-thr.enter { animation: rxEnter .4s ease; }


/* Click invitations layered on the replica: beacons, guided tour, mission checklist, prompt chips. */
.xl .gx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 85; }

/* Beacons */
.xl .gx-b { position: absolute; width: 0; height: 0; transition: opacity .3s; }
.xl .gx-b .ring, .xl .gx-b .dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; }
.xl .gx-b .dot { left: -5px; top: -5px; width: 10px; height: 10px; background: #5184FF; box-shadow: 0 0 0 2px #0D0D0D, 0 0 12px rgba(81,132,255,.9); }
.xl .gx-b .ring { border: 2px solid rgba(81,132,255,.85); animation: gxRing 1.6s ease-out infinite; }
.xl .gx-b .ring.r2 { animation-delay: .8s; }
@keyframes gxRing { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.xl .gx-b .lbl { position: absolute; left: 12px; top: -30px; white-space: nowrap; background: #5184FF; color: #fff; font: 600 11.5px/1 var(--ui); padding: 6px 9px; border-radius: 7px; box-shadow: 0 6px 18px rgba(81,132,255,.35); animation: gxBob 2.2s ease-in-out infinite; }
.xl .gx-b .lbl::after { content: ""; position: absolute; left: 6px; bottom: -4px; width: 8px; height: 8px; background: #5184FF; transform: rotate(45deg); }
.xl .gx-b.left .lbl { left: auto; right: 12px; } .xl .gx-b.left .lbl::after { left: auto; right: 6px; }
.xl .gx-b.below .lbl { top: 14px; } .xl .gx-b.below .lbl::after { bottom: auto; top: -4px; }
.xl .gx-b.hide { opacity: 0; }
.xl .gx-b.ok .dot { background: #32D583; box-shadow: 0 0 0 2px #0D0D0D, 0 0 12px rgba(50,213,131,.9); }
.xl .gx-b.ok .ring { display: none; } .xl .gx-b.ok .lbl { background: #32D583; color: #06210f; }
.xl .gx-b.ok .lbl::after { background: #32D583; }
@keyframes gxBob { 50% { transform: translateY(-3px); } }

/* Guided tour */
.xl .gx-spot { position: absolute; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0,0,0,.52); border: 2px solid #5184FF; transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease, opacity .25s; pointer-events: none; z-index: 86; }
.xl .gx-spot::after { content: ""; position: absolute; inset: -6px; border-radius: 14px; border: 2px solid rgba(81,132,255,.5); animation: gxPulse 1.6s ease-out infinite; }
@keyframes gxPulse { from { transform: scale(.98); opacity: 1; } to { transform: scale(1.06); opacity: 0; } }
.xl .gx-card { position: absolute; width: 300px; background: #1C1C1C; border: 1px solid #3a3a3a; border-radius: 14px; padding: 14px 16px; box-shadow: 0 24px 60px rgba(0,0,0,.6); z-index: 87; pointer-events: auto; transition: left .35s ease, top .35s ease, opacity .2s; color: var(--t1); }
.xl .gx-card .stp { display: flex; align-items: center; gap: 8px; font: 600 10.5px var(--ui); color: #8fb0ff; letter-spacing: .02em; }
.xl .gx-card .bar { flex: 1; height: 3px; border-radius: 2px; background: #2c2c2c; overflow: hidden; }
.xl .gx-card .bar i { display: block; height: 100%; background: #5184FF; transition: width .35s; }
.xl .gx-card h4 { margin: 9px 0 5px; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.xl .gx-card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--t2); }
.xl .gx-card p b { color: var(--t1); }
.xl .gx-card .act { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.xl .gx-card .act .sp { flex: 1; }
.xl .gx-card .act button { height: 28px; padding: 0 12px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.xl .gx-card .act .skip { color: var(--t3); font-weight: 500; padding: 0 4px; }
.xl .gx-card .act .nx { background: #2c2c2c; color: var(--t1); }
.xl .gx-card .act .nx.pri { background: #5184FF; color: #fff; }
.xl .gx-card .wait { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #FF9F0A; margin-top: 10px; }
.xl .gx-card .wait i { width: 6px; height: 6px; border-radius: 50%; background: #FF9F0A; animation: rxPulse 1.2s infinite; }
.xl .gx-card.yay { border-color: rgba(50,213,131,.6); }
.xl .gx-cta { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 88; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 20px; border-radius: 999px; background: rgba(20,20,20,.94); border: 1px solid #3a3a3a; color: #fff; font: 600 14px var(--ui); box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 0 0 rgba(81,132,255,.6); animation: gxCta 2s ease-out infinite; cursor: pointer; pointer-events: auto; backdrop-filter: blur(10px); }
.xl .gx-cta b { height: 32px; padding: 0 14px; border-radius: 999px; background: #5184FF; display: grid; place-items: center; font-size: 13px; }
.xl .gx-cta small { color: var(--t2); font-weight: 500; font-size: 12.5px; }
@keyframes gxCta { 0% { box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 0 0 rgba(81,132,255,.55); } 70% { box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 0 14px rgba(81,132,255,0); } 100% { box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 0 0 rgba(81,132,255,0); } }

/* Mission checklist */
.xl .gx-check { position: absolute; left: 12px; bottom: 64px; width: 216px; z-index: 84; pointer-events: auto; background: rgba(28,28,28,.97); border: 1px solid #3a3a3a; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); overflow: hidden; backdrop-filter: blur(12px); }
.xl .gx-check .hd { padding: 12px 14px 10px; display: grid; gap: 7px; cursor: pointer; }
.xl .gx-check .t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.xl .gx-check .t span { margin-left: auto; font: 600 11px var(--mono); color: #8fb0ff; }
.xl .gx-check .pg { height: 4px; border-radius: 2px; background: #2c2c2c; overflow: hidden; }
.xl .gx-check .pg i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5184FF, #32D583); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.xl .gx-check .sub { font-size: 11px; color: var(--t2); }
.xl .gx-check ul { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 2px; }
.xl .gx-check li button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 7px 6px; border-radius: 8px; font-size: 12px; color: var(--t1); }
.xl .gx-check li button:hover { background: rgba(255,255,255,.05); }
.xl .gx-check li .bx { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #555; flex: none; display: grid; place-items: center; transition: background .3s, border-color .3s; }
.xl .gx-check li .md { font-size: 9.5px; font-weight: 600; color: var(--t3); border: 1px solid #3a3a3a; border-radius: 4px; padding: 1px 4px; margin-left: auto; flex: none; }
.xl .gx-check li.done button { color: var(--t3); text-decoration: line-through; }
.xl .gx-check li.done .bx { background: #32D583; border-color: #32D583; color: #06210f; }
.xl .gx-check li.next .bx { border-color: #5184FF; box-shadow: 0 0 0 3px rgba(81,132,255,.2); }
.xl .gx-check li.pop .bx { animation: gxPop .5s ease; }
@keyframes gxPop { 40% { transform: scale(1.4); } }
.xl .gx-check.min ul, .xl .gx-check.min .sub { display: none; }
.xl .gx-check.idle { opacity: .92; }
.xl .gx-check .fin { padding: 0 14px 12px; font-size: 12px; color: #32D583; display: none; }
.xl .gx-check.all .fin { display: block; }
.xl .gx-confetti { position: absolute; inset: 0; z-index: 89; pointer-events: none; }

/* Prompt chips */
.xl .gx-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xl .gx-chips .lb { font-size: 11px; color: var(--t3); display: flex; align-items: center; gap: 4px; margin-right: 2px; }
.xl .gx-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(81,132,255,.45); background: rgba(81,132,255,.10); color: #b9ccff; font: 500 11.5px var(--ui); white-space: nowrap; transition: background .15s, transform .1s, border-color .15s; cursor: pointer; }
.xl .gx-chip:hover { background: rgba(81,132,255,.22); border-color: #5184FF; color: #fff; }
.xl .gx-chip:active { transform: scale(.97); }
.xl .gx-chip.used { opacity: .45; }
.xl .gx-chip.glow { animation: gxChip 2.4s ease-in-out infinite; }
@keyframes gxChip { 50% { box-shadow: 0 0 0 4px rgba(81,132,255,.18); } }
.xl .rx-cc-in .gx-chips, .xl .rx-cx-in .gx-chips { padding: 6px 0 8px; }
.xl .rx-comp-wrap .gx-chips { margin-top: 10px; justify-content: center; }
.xl .rx-chat .rx-comp-wrap .gx-chips { justify-content: flex-start; margin: 0 0 8px; }
.xl .rx-ahome .gx-chips { margin-top: 2px; }

.xl .gx-nudge { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: #9AA1AD; min-height: 20px; }
.xl .gx-nudge b { color: #ECEEF2; font-weight: 600; }
.xl .gx-nudge i { width: 7px; height: 7px; border-radius: 50%; background: #5184FF; box-shadow: 0 0 0 4px rgba(81,132,255,.15); flex: none; }


.xl .mx-view { position: relative; overflow: hidden; border-radius: 12px; }
.xl .mx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; }
.xl .mx-bar .gx-nudge { flex: 1 1 420px; margin: 0; }
.xl .mx-state { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--xl-fg2); }
.xl .mx-state i { width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 4px rgba(61,214,140,.15); }
.xl .mx-state[data-s="user"] i { background: var(--xl-accent); box-shadow: 0 0 0 4px rgba(81,132,255,.15); }
.xl .mx-state[data-s="paused"] i { background: #646B77; box-shadow: none; }
.xl .mx-replay { font: 500 12.5px var(--ui); color: var(--xl-fg); background: var(--xl-surface); border: 1px solid var(--xl-line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.xl .mx-replay:hover { border-color: #3a414c; }
.xl .mx-replay:focus-visible { outline: 2px solid var(--xl-accent); outline-offset: 2px; }


/* The browser's fictional page must not inherit the host site's heading treatments. */
.xl .rx-site .rxs-section { min-height: 0; text-align: left; }
.xl .rx-site .rxs-quote { text-align: center; }
.xl .rx-site .rxs-title, .xl .rx-site p, .xl .rx-site b, .xl .rx-site span {
  letter-spacing: normal; background: none; -webkit-text-fill-color: currentColor; text-align: inherit;
}
.xl .rx-site .rxs-title { color: #0f172a; font-family: var(--ui); max-width: none; }
.xl .rx-site p { font-family: var(--ui); font-weight: 400; }
.xl .rx-site .rxs-hero .rxs-title { letter-spacing: -.03em; }
.xl .rx-site .rxs-logos { letter-spacing: .04em; }
.xl .rx-site .rxs-pricing b, .xl .rx-site .rxs-quote p { letter-spacing: -.02em; }
.xl .rx-sb .brand { gap: normal; color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }

/* AccountUsagePopover — native 456pt roster, 88pt values, 44pt trend, 10pt gaps. */
.xl .rx-usage[aria-expanded="true"] { background: var(--sel); }
.xl .rx-upop { position: absolute; width: 456px; z-index: 92; display: flex; flex-direction: column; background: rgba(31,34,41,.98); border: 1px solid #414145; border-radius: 11px; box-shadow: 0 12px 40px #0009, 0 2px 8px #0008; color: var(--t1); font: 12px/1.35 var(--ui); text-align: left; }
.xl .rx-upop::before { content: ""; position: absolute; left: calc(var(--rx-u-arrow, 380px) - 5px); top: -6px; width: 10px; height: 10px; border-top: 1px solid #414145; border-left: 1px solid #414145; background: #1f2229; transform: rotate(45deg); }
.xl .rx-upop[hidden], .xl .rx-ucursor-detail[hidden], .xl .rx-utoast[hidden] { display: none; }
.xl .rx-upop b { font-weight: 600; }
.xl .rx-upop small { font-size: 10.5px; }
.xl .rx-ulogo { width: 15px; height: 15px; object-fit: contain; flex: none; }
.xl .rx-uheader { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; flex: none; }
.xl .rx-uheader > div:first-child { flex: 1; min-width: 0; }
.xl .rx-uheader > div > b { display: block; font-size: 15px; margin-bottom: 3px; }
.xl .rx-ucurrent { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .rx-ucurrent .rx-ulogo { width: 13px; height: 13px; }
.xl .rx-ufresh { text-align: right; color: #929296; font-size: 11px; font-variant-numeric: tabular-nums; }
.xl .rx-ufresh > span { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-bottom: 3px; }
.xl .rx-upop .rx-ufresh button { width: 18px; height: 16px; display: grid; place-items: center; border-radius: 3px; }
.xl .rx-upop button:disabled { cursor: default; opacity: .4; }
.xl .rx-udot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #3fb968; }
.xl .rx-ulist { padding: 0 8px 6px; overflow-y: auto; max-height: 470px; min-height: 0; scrollbar-width: thin; scrollbar-color: #4b4b50 transparent; }
.xl .rx-ugroup + .rx-ugroup { margin-top: 2px; }
.xl .rx-uheading, .xl .rx-uaccount { display: grid; grid-template-columns: minmax(0,1fr) 88px 88px 44px; gap: 10px; align-items: center; }
.xl .rx-uheading { padding: 8px 8px 3px; position: relative; color: #929296; }
.xl .rx-uheading > span:not(.rx-ureorder) { font-size: 9.5px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
.xl .rx-upop .rx-ugroup-handle { display: flex; align-items: center; gap: 7px; min-width: 0; text-align: left; cursor: grab; }
.xl .rx-ugroup-handle b { font-size: 11px; color: var(--t2); }
.xl .rx-ugroup-handle small { font-family: var(--mono); font-size: 10.5px; }
.xl .rx-ugrip { font-size: 12px; color: #717175; }
.xl .rx-urow { position: relative; }
.xl .rx-upop .rx-uaccount { width: 100%; padding: 4px 8px; border-radius: 8px; text-align: left; height: 42px; min-height: 42px; position: relative; }
.xl .rx-uaccount:hover { background: #ffffff08; }
.xl .rx-uaccount.current { background: rgba(81,132,255,.16); }
.xl .rx-uaccount.current::before { content: ""; position: absolute; top: 7px; bottom: 7px; left: 0; width: 2px; background: #5184ff; border-radius: 2px; }
.xl .rx-uidentity { min-width: 0; display: grid; gap: 2px; }
.xl .rx-uemail { display: flex; align-items: center; gap: 6px; }
.xl .rx-uemail b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .rx-utags { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.xl .rx-uplan { border: 1px solid #454549; border-radius: 4px; padding: 0 4px; color: var(--t2); font-size: 9.5px; }
.xl .rx-uactive { color: #929296; font-size: 10.5px; }
.xl .rx-uactive.filled { border-radius: 4px; padding: 0 5px; background: #5184ff; color: #fff; font-size: 9.5px; font-weight: 600; }
.xl .rx-uvalue { display: grid; gap: 3px; min-width: 0; color: #9a9aa0; }
.xl .rx-unumbers { display: flex; align-items: baseline; gap: 4px; justify-content: space-between; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.xl .rx-unumbers b { color: var(--t1); font-size: 11.5px; }
.xl .rx-unumbers small { color: #929296; font-size: 10px; }
.xl .rx-umeter { display: block; height: 3px; background: #ffffff14; border-radius: 4px; overflow: hidden; }
.xl .rx-umeter i { display: block; height: 100%; background: currentColor; border-radius: inherit; }
.xl .rx-unil { color: #929296; font: 11px var(--mono); }
.xl .rx-uspark { color: #9a9aa0; }
.xl .rx-upop .warning, .xl .rx-upop .warning b { color: #e3a43b; }
.xl .rx-udot.warning { background: #e3a43b; }
.xl .rx-ureorder { display: flex; position: absolute; left: 118px; top: 17px; gap: 2px; opacity: 0; pointer-events: none; }
.xl .rx-uheading > .rx-ureorder { top: 5px; left: 114px; }
.xl .rx-urow:hover > .rx-ureorder, .xl .rx-urow:focus-within > .rx-ureorder, .xl .rx-uheading:hover > .rx-ureorder, .xl .rx-uheading:focus-within > .rx-ureorder { opacity: 1; pointer-events: auto; }
.xl .rx-upop .rx-ureorder button { width: 18px; height: 20px; background: #29292e; border: 1px solid #454549; color: var(--t2); border-radius: 4px; font-size: 11px; }
.xl .rx-upop button:hover:not(:disabled) { color: var(--t1); }
.xl .rx-uothers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 8px 0; margin-top: 6px; border-top: 1px solid #39393d; }
.xl .rx-upop .rx-uchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border: 1px solid #3c3c40; border-radius: 7px; background: #242426; color: var(--t2); font-size: 11px; }
.xl .rx-uchip .rx-ulogo { width: 14px; height: 14px; }
.xl .rx-uchip b { color: var(--t1); font-size: 11px; }
.xl .rx-uchev { color: #929296; }
.xl .rx-uchev.expanded { transform: rotate(180deg); }
.xl .rx-ucursor-detail { margin: 6px 8px 0; padding: 10px; background: #242426; border-radius: 7px; display: grid; gap: 8px; font-size: 11px; color: var(--t2); }
.xl .rx-ucursor-detail > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.xl .rx-ucursor-detail .rx-uvalue { width: 88px; }
.xl .rx-ufooter { flex: none; border-top: 1px solid #39393d; padding: 9px 16px; }
.xl .rx-ufooter > span { display: block; color: #929296; font-size: 10.5px; margin-bottom: 7px; }
.xl .rx-ufooter > div { display: flex; align-items: center; gap: 14px; }
.xl .rx-ufooter label { display: flex; align-items: center; gap: 5px; margin-right: auto; color: var(--t2); font-size: 11px; cursor: pointer; }
.xl .rx-upop input[type="checkbox"] { width: 12px; height: 12px; accent-color: #5184ff; cursor: pointer; appearance: auto; }
.xl .rx-upop input:focus-visible { outline: 2px solid var(--xl-accent); outline-offset: 2px; }
.xl .rx-upop .rx-ufooter button { font-size: 12px; font-weight: 500; color: #7ca2ff; white-space: nowrap; }
.xl .rx-uhistory-head { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 12px; flex: none; }
.xl .rx-uhistory-head > span { color: var(--t2); font-size: 11px; }
.xl .rx-upop .rx-uhistory-head button { margin-left: auto; color: #7ca2ff; font-size: 11px; }
.xl .rx-uhistory-list { padding: 0 16px 10px; overflow-y: auto; min-height: 0; }
.xl .rx-uhistory-row { display: grid; grid-template-columns: minmax(0,1fr) 154px; gap: 18px; align-items: center; padding: 6px 0; border-bottom: 1px solid #ffffff08; }
.xl .rx-uhistory-row > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.xl .rx-uhistory-row b { font-size: 11px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.xl .rx-uhbars { height: 30px; display: flex; align-items: flex-end; gap: 5px; }
.xl .rx-uhbar { display: block; width: 17px; min-height: 1px; background: #6d8bc7; border-radius: 2px 2px 0 0; }
.xl .rx-uhbar.warning { background: #e3a43b; }
.xl .rx-utoast { position: absolute; z-index: 94; top: 48px; left: 50%; transform: translateX(-50%); max-width: 440px; padding: 10px 15px; border: 1px solid #454549; border-radius: 9px; background: #242426; box-shadow: 0 8px 24px #0007; color: var(--t1); font-size: 12px; }

/* Unified tasks — native content surface, workspace lanes and execution sheets. */
.xl .rx-tasks-host { position: absolute; top: 40px; bottom: 14px; left: 254px; right: 14px; z-index: 4; min-width: 0; background: var(--content); }
.xl .rx-tasks-host[hidden], .xl .rx-tasks [hidden], .xl .rx-task-menu [hidden], .xl .rx-task-overlay [hidden] { display: none; }
.xl .rx.tasks-open > .rx-main, .xl .rx.tasks-open > .mm, .xl .rx.tasks-open > .rx-rp, .xl .rx.tasks-open > .rx-rp-handle { visibility: hidden; pointer-events: none; }
.xl .rx.tasks-open .rx-tb .tasks.on { color: var(--acc); background: #5184ff1a; }
.xl .rx-tb button:disabled { opacity: .35; cursor: default; }
.xl .rx-tasks { height: 100%; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; color: var(--t1); background: var(--content); font: 12px/1.4 var(--ui); }
.xl .rx-task-header { display: flex; align-items: flex-start; gap: 12px; flex: none; }
.xl .rx-task-header > div { flex: 1; min-width: 270px; }
.xl .rx-tasks h2, .xl .rx-task-sheet h2 { margin: 0; font: 600 18px/1.35 var(--ui); letter-spacing: normal; color: var(--t1); background: none; -webkit-text-fill-color: currentColor; text-align: left; }
.xl .rx-task-header h2 { font-size: 13px; }
.xl .rx-task-header h2 span { font-weight: 400; color: var(--t2); }
.xl .rx-task-header p { max-width: 670px; margin: 7px 0 0; font-size: 12px; color: var(--t2); }
.xl .rx-task-search { width: 190px; height: 30px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--sep); border-radius: 7px; background: var(--card); color: var(--t2); }
.xl .rx-task-search input { flex: 1; width: 0; }
.xl .rx-task-search:focus-within { outline: 1px solid var(--acc); outline-offset: 1px; }
.xl .rx-task-search input:focus-visible { outline: none; }
.xl .rx-task-search button { width: 16px; height: 20px; display: grid; place-items: center; }
.xl .rx .rx-task-primary { color: white; background: var(--acc); border: 1px solid var(--acc); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 5px 12px; font-weight: 600; white-space: nowrap; }
.xl .rx-task-close { width: 30px; height: 30px; display: grid; place-items: center; color: var(--t2); border-radius: 6px; }
.xl .rx-task-close:hover { background: var(--hover); }
.xl .rx-task-toolbar { display: flex; gap: 12px; align-items: center; flex: none; min-height: 30px; }
.xl .rx-task-filters { display: flex; flex: 1; min-width: 0; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.xl .rx-task-filters button { display: flex; align-items: center; gap: 6px; border: 1px solid var(--sep); border-radius: 20px; min-height: 28px; padding: 4px 10px; white-space: nowrap; color: var(--t2); }
.xl .rx-task-filters button[aria-pressed="true"] { background: var(--elev); font-weight: 600; color: var(--t1); }
.xl .rx-task-filters button span { color: var(--t2); font-variant-numeric: tabular-nums; }
.xl .rx-task-layout { display: flex; flex: none; gap: 2px; border: 1px solid var(--sep); border-radius: 7px; padding: 2px; background: var(--card); }
.xl .rx-task-layout button { border-radius: 5px; padding: 4px 10px; color: var(--t2); white-space: nowrap; }
.xl .rx-task-layout button[aria-pressed="true"] { background: var(--elev); color: var(--t1); font-weight: 600; }
.xl .rx-task-scroll { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4b4b50 transparent; }
.xl .rx-task-grid { min-width: 900px; }
.xl .rx-task-columns { display: grid; grid-template-columns: 154px repeat(4,minmax(170px,1fr)); gap: 10px; position: sticky; top: 0; z-index: 2; padding: 8px 10px; color: var(--t2); background: var(--content); }
.xl .rx-task-grid.board .rx-task-columns { grid-template-columns: repeat(4,minmax(190px,1fr)); }
.xl .rx-task-column-heading { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.xl .rx-task-column-heading > span { margin-left: 2px; color: var(--t2); font-variant-numeric: tabular-nums; }
.xl .rx-task-column-heading > i, .xl .rx-task-status-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--t2); display: inline-block; flex: none; }
.xl .rx-task-column-heading.inProgress > i, .xl .rx-task-status-dot.inProgress { border-color: #eabf37; background: linear-gradient(90deg,#eabf37 50%,transparent 50%); }
.xl .rx-task-column-heading.review > i, .xl .rx-task-status-dot.review { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--content); background: var(--green); }
.xl .rx-task-column-heading.done > i, .xl .rx-task-status-dot.done { border-color: var(--acc); background: var(--acc); }
.xl .rx-task-lane { display: grid; grid-template-columns: 154px repeat(4,minmax(170px,1fr)); align-items: stretch; gap: 10px; padding: 10px; margin-bottom: 8px; border: 1px solid #30303099; border-radius: 10px; background: var(--card); }
.xl .rx-task-lane-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 3px 2px; color: var(--t2); }
.xl .rx-task-lane-heading > b { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--t1); }
.xl .rx-task-lane-heading > span { font-size: 11px; }
.xl .rx-task-lane-heading button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid var(--sep); border-radius: 5px; font-size: 11px; text-align: left; }
.xl .rx-task-drop { min-height: 74px; min-width: 0; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; border-radius: 9px; padding: 2px; }
.xl .rx-task-drop.drop-target { border-color: var(--acc); background: #5184ff15; }
.xl .rx-task-drop.drop-target::after { content: "＋"; text-align: center; min-height: 30px; color: var(--acc); border: 1px dashed #5184ff88; border-radius: 6px; }
.xl .rx-task-empty { display: grid; place-items: center; min-height: 64px; color: var(--t3); border: 1px dashed var(--sep); border-radius: 8px; font-size: 11px; }
.xl .rx-task-card { position: relative; min-width: 0; border: 1px solid #30303099; border-radius: 8px; background: var(--elev); box-shadow: 0 1px 3px #0002; }
.xl .rx-task-card:hover { border-color: #505050; }
.xl .rx-task-card.drag-source { opacity: .35; }
.xl .rx .rx-task-open { display: flex; flex-direction: column; align-items: stretch; width: 100%; padding: 11px; text-align: left; gap: 7px; touch-action: none; cursor: grab; border-radius: 8px; }
.xl .rx-task-title { font-size: 12px; font-weight: 500; line-height: 1.4; padding-right: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xl .rx-task-notes { font-size: 11px; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xl .rx-task-workspace { display: flex; align-items: center; align-self: flex-start; gap: 4px; padding: 2px 6px; border-radius: 10px; background: #ffffff07; color: var(--t2); font-size: 10px; }
.xl .rx-task-card-footer { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--t2); font-size: 10px; }
.xl .rx-task-card-footer > span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl .rx-task-card-footer time { flex: none; font-variant-numeric: tabular-nums; }
.xl .rx-task-grid.lanes .rx-task-open { padding: 9px; gap: 6px; }
.xl .rx-task-drop.drop-invalid { border-color: #737373; cursor: not-allowed; background: #ffffff05; }
.xl .rx-task-drop.drop-invalid::after { content: "⊘"; color: var(--t2); text-align: center; }
.xl .rx-task-ghost.invalid { border-color: #777; opacity: .75; }
.xl .rx-task-spinner { width: 10px; height: 10px; display: inline-block; border-radius: 50%; border: 1.5px solid #ffffff30; border-top-color: #eabf37; animation: rxTaskSpin .9s linear infinite; }
@keyframes rxTaskSpin { to { transform: rotate(360deg); } }
.xl .rx:not(.tasks-open) .rx-task-spinner { animation: none; }
.xl .rx .rx-task-more { position: absolute; right: 3px; top: 4px; width: 24px; height: 24px; border-radius: 5px; color: var(--t2); background: var(--elev); font-size: 18px; line-height: 1; }
.xl .rx-task-more:hover { background: var(--sel); color: var(--t1); }
.xl .rx-task-board-columns { display: grid; grid-template-columns: repeat(4,minmax(190px,1fr)); gap: 10px; }
.xl .rx-task-board-columns > .rx-task-drop { background: var(--card); min-height: 400px; }
.xl .rx-task-footer { display: flex; justify-content: space-between; flex: none; color: var(--t3); font-size: 10px; }
.xl .rx-task-toast { position: absolute; z-index: 110; left: 55%; top: 48px; transform: translateX(-50%); width: max-content; max-width: 620px; padding: 10px 14px; border: 1px solid #454549; background: var(--elev); border-radius: 8px; color: var(--t1); box-shadow: 0 8px 24px #0007; opacity: 0; pointer-events: none; font-size: 12px; }
.xl .rx-task-toast.on { opacity: 1; }
.xl .rx-task-menu { position: absolute; z-index: 106; width: 238px; max-height: calc(100% - 56px); overflow-y: auto; padding: 5px; border: 1px solid #454549; border-radius: 8px; background: #252527; color: var(--t1); box-shadow: 0 10px 30px #0008; }
.xl .rx-task-menu button { display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px 9px; text-align: left; font-size: 12px; border-radius: 4px; }
.xl .rx-task-menu button:hover, .xl .rx-task-menu button:focus-visible { background: var(--acc); color: white; }
.xl .rx-task-menu button:disabled { color: var(--t3); cursor: default; }
.xl .rx-task-menu [data-task-status-options] { padding-left: 12px; }
.xl .rx-task-menu hr { border: 0; border-top: 1px solid #414145; margin: 5px 0; }
.xl .rx-task-menu .danger, .xl .rx-task-sheet .danger { color: #ff817b; }
.xl .rx-task-overlay { position: absolute; inset: 40px 0 0; z-index: 104; background: #0008; display: flex; align-items: center; justify-content: center; padding: 18px; }
.xl .rx-task-sheet { display: flex; flex-direction: column; gap: 14px; width: 508px; max-width: calc(100% - 48px); max-height: 100%; padding: 24px; overflow-y: auto; border: 1px solid #414145; border-radius: 12px; background: var(--card); box-shadow: 0 20px 70px #0009; font: 12px/1.45 var(--ui); user-select: text; scrollbar-width: thin; scrollbar-color: #505050 transparent; }
.xl .rx-task-sheet form { display: flex; flex-direction: column; gap: 14px; }
.xl .rx-task-sheet label { display: flex; flex-direction: column; align-items: stretch; gap: 6px; font-weight: 500; }
.xl .rx-task-sheet input, .xl .rx-task-sheet textarea, .xl .rx-task-sheet select { width: 100%; min-height: 30px; margin: 0; border: 1px solid var(--sep); border-radius: 6px; background: var(--elev); color: var(--t1); padding: 6px 8px; font: 12px/1.4 var(--ui); color-scheme: dark; }
.xl .rx-task-sheet textarea { resize: vertical; min-height: 64px; }
.xl .rx-task-sheet select:focus-visible { outline: 1px solid var(--acc); outline-offset: 2px; }
.xl .rx-task-sheet select:disabled { opacity: .6; cursor: not-allowed; }
.xl .rx-task-help { font-size: 11px; line-height: 1.5; color: var(--t2); margin: 0; }
.xl .rx-task-error { margin: 0; color: #ff817b; font-size: 12px; }
.xl .rx-task-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: none; }
.xl .rx-task-actions > span { flex: 1; }
.xl .rx-task-sheet button:not(.rx-task-primary) { padding: 5px 9px; min-height: 28px; border: 1px solid var(--sep); border-radius: 6px; }
.xl .rx-task-history { display: flex; flex-direction: column; gap: 5px; }
.xl .rx-task-history button { display: flex; align-items: center; justify-content: space-between; }
.xl .rx-task-history > span { color: var(--t2); font-size: 10px; }
.xl .rx-task-sheet.review { width: 760px; padding: 20px; gap: 12px; }
.xl .rx-task-review-heading { display: flex; align-items: center; gap: 12px; }
.xl .rx-task-review-heading h2 { flex: 1; font-size: 16px; }
.xl .rx-task-run-controls { display: flex; align-items: center; gap: 10px; }
.xl .rx-task-running { display: inline-flex; align-items: center; gap: 5px; color: #eabf37; }
.xl .rx-task-review-scroll { min-height: 100px; overflow-y: auto; overscroll-behavior: contain; padding: 1px 4px 1px 1px; }
.xl .rx-task-evidence { border: 1px solid var(--sep); border-radius: 8px; background: var(--elev); padding: 12px; margin-bottom: 10px; }
.xl .rx-task-evidence > header { display: flex; gap: 10px; align-items: center; }
.xl .rx-task-evidence time { color: var(--t2); font-size: 11px; }
.xl .rx-task-evidence h3 { font-size: 12px; font-weight: 600; margin: 12px 0 5px; color: var(--t1); }
.xl .rx-task-evidence p { margin: 6px 0; }
.xl .rx-task-evidence pre { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--t2); font: 10.5px/1.5 var(--mono); }
.xl .rx-task-evidence details { padding: 5px 0; font-size: 11px; }
.xl .rx-task-evidence summary { cursor: pointer; color: var(--t2); }
.xl .rx-task-evidence .rx-task-accepted, .xl .rx-task-evidence .rx-task-pending { color: var(--green); }
.xl .rx-task-ghost { position: absolute; z-index: 108; pointer-events: none; max-width: 260px; padding: 12px 16px; color: var(--t1); background: #28334b; border: 1px solid var(--acc); border-radius: 8px; box-shadow: 0 8px 30px #0008; font-size: 12px; }

/* Hidden controls do no animation work; visible controls resume with the scene clock. */
.xl .gx-b.hide .ring, .xl .gx-b.hide .lbl { animation: none; }
.xl .rx .off, .xl .rx .off *, .xl .rx .off::before, .xl .rx .off::after, .xl .rx .off *::before, .xl .rx .off *::after { animation: none !important; }
.xl.xl-paused, .xl.xl-paused::before, .xl.xl-paused::after, .xl.xl-paused *, .xl.xl-paused *::before, .xl.xl-paused *::after { animation-play-state: paused !important; }

/* Keep the resting scene legible without pulsing beacons, cursors, or transitions. */
@media (prefers-reduced-motion: reduce) {
  .xl, .xl *, .xl *::before, .xl *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .xl .rx-term .shimmer { background: none; color: #8a8a8a; }
}
