/* Three connected moments inside the user's own AI workspace. */
.run-demo { --rd-line: rgba(30, 27, 23, .09); --rd-muted: #6e6c69; width: min(1060px, 100% - var(--gutter) * 2); margin: clamp(96px, 9vw, 136px) auto 0; position: relative; text-align: left; }
.rd-heading { text-align: center; margin-bottom: 24px; }
.rd-heading .h2 { font-size: clamp(42px, 5vw, 64px); }
.rd-heading > p { margin-top: 10px; color: var(--ink-2); font-size: 18px; }
.rd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 0 18px; margin-bottom: 18px; }
.rd-step { min-width: 0; padding: 8px 0 0; text-align: left; color: #777573; }
.rd-step-label { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; line-height: 1.25; }
.rd-step-number { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #eeedeb; color: #777573; font-size: 15px; transition: background .25s, color .25s; }
.rd-step-detail { display: block; margin: 6px 0 12px 38px; font-size: 14px; font-weight: 400; white-space: nowrap; }
.rd-step-line { display: block; height: 3px; overflow: hidden; background: #e9e7e4; border-radius: 3px; }
.rd-step-line > i { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.rd-step[aria-selected="true"] { color: var(--ink); }
.rd-step[aria-selected="true"] .rd-step-number { background: var(--accent); color: white; }
.rd-step[aria-selected="true"] .rd-step-detail { color: var(--rd-muted); }
.rd-window { overflow: hidden; border: 1px solid rgba(40, 29, 21, .13); border-radius: 24px; background: white; box-shadow: 0 2px 3px rgba(44, 34, 27, .02), 0 18px 50px -30px rgba(44, 34, 27, .24), 0 55px 90px -65px rgba(214, 81, 11, .16); }
.rd-window-bar { display: flex; align-items: center; justify-content: space-between; min-height: 55px; padding: 14px 24px; border-bottom: 1px solid var(--rd-line); position: relative; }
.rd-window-dots { display: flex; gap: 6px; width: 110px; }
.rd-window-dots i { width: 8px; height: 8px; background: #e7e6e4; border-radius: 50%; }
.rd-wordmark { display: inline-block; width: 120px; position: relative; flex: none; vertical-align: middle; }
.rd-wordmark img { display: block; width: 100%; height: auto; }
.rd-wordmark-ink { filter: brightness(0); clip-path: inset(0 0 0 18%); }
.rd-wordmark-orange { position: absolute; inset: 0; clip-path: inset(0 82% 0 0); }
.rd-window-caption { width: 110px; text-align: right; font-size: 13px; color: var(--rd-muted); }
.rd-panels { position: relative; }
.rd-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); min-height: 422px; }
.rd-panel[hidden] { display: none; }
/* Step one owns the frame's natural height, including translated text. The other
   scenes use that same space; inactive content remains hidden and inert. */
.rd-panels > .rd-panel:first-child[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.rd-panels > .rd-panel:not(:first-child) { position: absolute; inset: 0; min-height: 0; }
.rd-panels > .rd-panel:not(:first-child) > :is(.rd-conversation, .rd-output) { min-width: 0; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #d8cbbf transparent; }
.rd-conversation { padding: 24px 28px; border-right: 1px solid var(--rd-line); background: linear-gradient(145deg, #fdfcfa, #faf9f7); }
.rd-eyebrow { font-size: 11px; line-height: 1.4; font-weight: 600; letter-spacing: .1em; color: var(--rd-muted); }
.rd-conversation > h3 { font-size: 22px; line-height: 1.28; font-weight: 500; letter-spacing: -.025em; margin-top: 8px; max-width: 15em; text-wrap: pretty; }
.rd-output { padding: 24px 28px; min-width: 0; background: radial-gradient(ellipse at 90% 0, rgba(249, 221, 199, .2), transparent 65%); }
.rd-ai-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.rd-ai-apps li { display: flex; gap: 8px; align-items: center; justify-content: flex-start; min-height: 40px; padding: 9px 13px; border: 1px solid var(--rd-line); border-radius: 10px; font-size: 15px; line-height: 1.2; background: #fff; box-shadow: 0 2px 3px rgba(22, 18, 15, .02); }
.rd-ai-apps .ai-ico { width: 19px; height: 19px; }
.rd-ai-apps .ai-ico--claude { width: 20px; }
.rd-chat-message { padding: 15px 17px; background: #fff; border: 1px solid rgba(214, 81, 11, .15); border-radius: 15px 15px 4px 15px; box-shadow: 0 3px 12px -7px rgba(59, 29, 8, .1); position: relative; }
.rd-message-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; line-height: 1.4; letter-spacing: .12em; font-weight: 600; color: #8f7766; margin-bottom: 8px; }
.rd-chat-message p { font-size: 16px; line-height: 1.55; }
.rd-message-send { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: 50%; color: white; background: var(--accent); }
.rd-message-send svg { width: 14px; height: 14px; }
.rd-chat-message:has(.rd-message-send) p { padding-right: 22px; }
.rd-helper { font-size: 14px; color: var(--rd-muted); margin-top: 12px; }
.rd-connection { display: flex; justify-content: center; align-items: center; width: 210px; margin: 2px auto 20px; }
.rd-connection-node { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid var(--rd-line); border-radius: 14px; background: white; box-shadow: 0 6px 12px -8px #aaa; }
.rd-connection-node > svg { width: 25px; height: 25px; color: #444; }
.rd-symbol { display: block; width: 28px; height: 23px; overflow: hidden; flex: none; }
.rd-symbol img { height: 23px; width: auto; max-width: none; }
.rd-connection-node .rd-symbol { width: 29px; height: 24px; }
.rd-connection-node .rd-symbol img { height: 24px; }
.rd-connection-line { flex: 1; position: relative; height: 1px; background: #e8d9ce; }
.rd-connection-line i { position: absolute; left: 0; top: -2px; width: 30px; height: 5px; background: linear-gradient(90deg, transparent, #eb8b4c); border-radius: 5px; }
.is-enhanced .rd-connection.is-shown .rd-connection-line i { animation: rd-connect 1.7s ease-in-out infinite; }
.rd-plugin-card { background: #fff; border: 1px solid var(--rd-line); border-radius: 16px; padding: 20px; box-shadow: 0 8px 20px -18px #806047; }
.rd-plugin-heading, .rd-card-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.rd-plugin-heading .rd-wordmark { width: 151px; }
.rd-tag { display: inline-flex; flex: none; padding: 4px 7px; border: 1px solid var(--rd-line); border-radius: 5px; background: #faf9f7; font-size: 10px; font-weight: 500; line-height: 1; letter-spacing: .06em; color: var(--rd-muted); }
.rd-plugin-card > p { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.rd-install-checks { display: grid; gap: 12px; margin-top: 21px; }
.rd-install-checks li { display: flex; gap: 9px; align-items: center; font-size: 15px; line-height: 1.35; }
.rd-check { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 19px; height: 19px; border-radius: 50%; background: #e9f3ec; color: #298354; }
.rd-check svg { width: 14px; height: 14px; stroke-width: 1.8; }
.rd-status-stack { display: grid; }
.rd-status-stack > * { grid-area: 1 / 1; }
.rd-status { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 15px; font-size: 14px; }
.rd-status--working { color: var(--rd-muted); }
.rd-status--ready { color: #287c50; }
.rd-live-dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: #2f8a57; box-shadow: 0 0 0 4px rgba(47, 138, 87, .08); }
.rd-spinner { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #d8d6d3; border-top-color: var(--accent); border-radius: 50%; }
.is-enhanced .rd-spinner { animation: rd-spin 1s linear infinite; }
.run-demo:not(.is-enhanced) [data-cue-until] { visibility: hidden; }
.rd-chat-message--goal { margin-top: 14px; }
.rd-goal-tag { letter-spacing: normal; font-size: 11px; line-height: 1.2; color: var(--accent); background: #fff3e9; padding: 4px 7px; border-radius: 5px; font-weight: 500; }
.rd-targets { margin-top: 23px; }
.rd-targets dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 9px; }
.rd-targets dl > div { padding-left: 12px; border-left: 2px solid #ead7c9; }
.rd-targets dt { font-size: 14px; color: var(--rd-muted); line-height: 1.25; }
.rd-targets dd { font-size: 29px; line-height: 1.25; letter-spacing: -.04em; margin-top: 4px; font-weight: 500; }
.rd-targets dd span { font-size: 13px; font-weight: 400; color: var(--rd-muted); letter-spacing: normal; margin-left: 5px; }
.rd-portfolio-card, .rd-run-card { width: 100%; min-width: 0; }
.rd-card-heading h3 { font-size: 21px; line-height: 1.2; font-weight: 500; letter-spacing: -.025em; margin-top: 5px; }
.rd-portfolio-card .rd-card-heading { align-items: flex-start; }
.rd-portfolio-card .rd-card-heading > div { min-width: 0; }
.rd-portfolio-scope { margin-top: 4px; font-size: 10px; color: var(--rd-muted); line-height: 1.4; }
.rd-portfolio-holdings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.rd-portfolio-holdings > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; min-width: 0; padding: 8px; border: 1px solid var(--rd-line); border-radius: 9px; background: linear-gradient(135deg, #fff, #fcfbf9); }
.rd-holding-identity { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rd-holding-identity img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.rd-holding-identity > div { min-width: 0; }
.rd-holding-identity strong { display: block; font-size: 11px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.rd-holding-identity small { display: block; margin-top: 3px; font-size: 9px; color: var(--rd-muted); line-height: 1.35; overflow-wrap: anywhere; }
.rd-holding-allocation { display: grid; justify-items: end; align-content: center; gap: 4px; }
.rd-holding-allocation > strong { font-size: 18px; font-weight: 500; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rd-holding-allocation > strong > span { margin-left: 1px; font-size: 10px; letter-spacing: 0; color: var(--rd-muted); }
.rd-holding-side { display: inline-flex; align-items: center; gap: 3px; padding: 3px 4px; border-radius: 4px; font-size: 9px; line-height: 1.2; }
.rd-holding-side svg { width: 10px; height: 10px; flex: none; }
.rd-holding-side--long { color: #287c50; background: #edf5ef; }
.rd-holding-side--short { color: #b75361; background: #fcf0f1; }
.rd-portfolio-balance { margin-top: 12px; }
.rd-balance-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px; font-size: 11px; color: #56534e; line-height: 1.4; }
.rd-balance-heading small { font-size: 9px; color: #948c83; }
.rd-balance-bar { display: flex; gap: 3px; height: 6px; margin-top: 7px; border-radius: 4px; overflow: hidden; }
.rd-balance-bar i { flex: var(--share); background: var(--tone); }
.rd-balance-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 10px; line-height: 1.3; }
.rd-balance-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.rd-balance-legend i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.rd-balance-legend strong { font-weight: 500; margin-left: 2px; }
.rd-balance-long { color: #318866; }
.rd-balance-short { color: #c16774; }
.rd-card-note { color: var(--rd-muted); border-top: 1px solid var(--rd-line); padding-top: 10px; margin-top: 12px; font-size: 11px; line-height: 1.5; }
.rd-exchanges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 24px 0; }
.rd-exchanges li { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 39px; padding: 8px; border: 1px solid var(--rd-line); border-radius: 8px; background: white; }
.rd-exchanges img { max-width: 100%; width: auto; max-height: 18px; object-fit: contain; }
.rd-exchanges li:first-child { color: #d9a406; font-size: 10px; font-weight: 600; padding-inline: 5px; }
.rd-exchanges .rd-binance { width: 15px; height: 15px; flex: none; }
.rd-exchanges li:nth-child(3) img { max-width: 44px; max-height: 17px; }
.rd-account-card { display: flex; gap: 11px; align-items: center; padding: 16px; border: 1px solid var(--rd-line); border-radius: 12px; background: white; }
.rd-account-icon { width: 32px; height: 36px; display: grid; place-items: center; flex: none; color: #8a8178; }
.rd-account-icon svg { width: 27px; height: 27px; }
.rd-account-card strong { font-size: 15px; line-height: 1.4; font-weight: 500; }
.rd-account-card .rd-status-stack { margin-top: 3px; font-size: 13px; line-height: 1.4; }
.rd-account-note { color: var(--rd-muted); }
.rd-account-connected { display: flex; gap: 4px; align-items: center; color: #287c50; }
.rd-account-connected svg { width: 14px; height: 14px; }
.rd-chat-message--compact { margin-top: 20px; }
.rd-run-output { display: block; }
.rd-run-card .rd-card-heading { align-items: flex-start; gap: 12px; }
.rd-run-card .rd-card-heading > div { min-width: 0; }
.rd-run-card .rd-card-heading h3 { max-width: 17em; font-size: 21px; line-height: 1.2; }
.rd-run-indicator { display: flex; flex: none; gap: 6px; align-items: center; font-size: 11px; color: #287c50; padding: 7px 9px; border-radius: 20px; background: #edf5ef; }
.rd-run-indicator .rd-live-dot { width: 5px; height: 5px; }
.rd-automation { --rd-ledger-columns: minmax(0, 1fr) 76px 108px 54px; --rd-ledger-gap: 10px; margin-top: 10px; }
.rd-auto-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rd-auto-stages li { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding: 5px; border: 1px solid #e9e5df; border-radius: 6px; background: #faf9f7; color: #817a72; font-size: 10px; line-height: 1.2; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.rd-auto-stages li > span { display: grid; place-items: center; flex: none; width: 14px; height: 14px; border-radius: 50%; background: #eeebe7; font-size: 9px; }
.rd-auto-stages li.is-active { border-color: #eec7b0; background: #fff1e7; color: var(--accent); }
.rd-auto-stages li.is-active > span { background: var(--accent); color: #fff; }
.rd-auto-stages li.is-complete { color: #4b7459; border-color: #e2eae1; background: #f5f8f3; }
.rd-auto-stages li.is-complete > span { background: #e1ebdd; color: #4b7459; }
.rd-auto-insight { display: flex; align-items: center; gap: 9px; min-height: 46px; margin-top: 9px; padding: 7px 9px; border: 1px solid #e5e9e0; border-radius: 8px; background: #f7f9f4; transition: background .2s, border-color .2s; }
.rd-auto-insight-icon { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid #e0e8dc; border-radius: 50%; color: #55764d; background: #edf3e8; transition: background .2s, border-color .2s, color .2s; }
.rd-auto-insight-icon svg { width: 15px; height: 15px; }
.rd-auto-insight > div { min-width: 0; flex: 1; }
.rd-auto-insight strong { display: block; font-size: 12px; line-height: 1.25; font-weight: 500; color: #36382f; }
.rd-auto-insight p { color: #777468; margin-top: 3px; font-size: 10px; line-height: 1.35; }
.rd-auto-count { flex: none; color: #55764d; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.rd-automation:is([data-phase="execute"], [data-phase="rebalance"], [data-phase="drift"]) .rd-auto-insight { border-color: #edcfb9; background: #fff5ec; }
.rd-automation:is([data-phase="execute"], [data-phase="rebalance"], [data-phase="drift"]) .rd-auto-insight-icon { border-color: #efcfb7; background: #ffeadb; color: var(--accent); }
.rd-automation:is([data-phase="execute"], [data-phase="rebalance"], [data-phase="drift"]) .rd-auto-count { color: var(--accent); }
.rd-allocation-heading { display: grid; grid-template-columns: var(--rd-ledger-columns); align-items: center; column-gap: var(--rd-ledger-gap); margin-top: 9px; padding: 0 4px 5px; border-bottom: 1px solid #eae5df; color: #8c8277; font-size: 9px; line-height: 1.25; }
.rd-allocation-heading > span:nth-child(2) { text-align: center; }
.rd-allocation-heading > span:nth-child(3), .rd-allocation-heading > span:nth-child(4) { text-align: right; }
.rd-auto-holdings { display: grid; }
.rd-auto-holding { display: grid; grid-template-columns: var(--rd-ledger-columns); align-items: center; column-gap: var(--rd-ledger-gap); min-width: 0; min-height: 31px; padding: 5px 4px; border-bottom: 1px solid #f0ece7; border-radius: 3px; transition: background .2s; }
.rd-auto-holding:last-child { border-bottom-color: transparent; }
.rd-auto-asset { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rd-auto-asset img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.rd-auto-asset > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 5px; min-width: 0; }
.rd-auto-asset strong { font-size: 12px; line-height: 1.2; font-weight: 500; white-space: nowrap; }
.rd-auto-side { display: inline-block; font-size: 9px; line-height: 1.2; }
.rd-auto-side--long { color: #438367; }
.rd-auto-side--short { color: #b76d77; }
.rd-auto-market { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; color: #a19990; transition: color .2s; }
.rd-auto-market svg { display: block; width: 32px; height: 14px; overflow: visible; flex: none; }
.rd-auto-market [data-auto-market] { font-size: 10px; line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rd-auto-holding.has-market-move[data-direction="up"] .rd-auto-market { color: #358367; }
.rd-auto-holding.has-market-move[data-direction="down"] .rd-auto-market { color: #c16774; }
.rd-auto-weight { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 11px; line-height: 1.3; }
.rd-auto-weight strong { color: #413b33; font-weight: 500; transition: color .2s; }
.rd-auto-weight > svg { width: 11px; height: 11px; color: #b4a99d; flex: none; }
.rd-auto-weight > span { color: #93897d; font-size: 10px; }
.rd-auto-order { display: inline-flex; justify-content: center; align-items: center; justify-self: end; min-width: 43px; min-height: 19px; max-width: 100%; padding: 3px 5px; border: 1px solid transparent; border-radius: 4px; background: #f2f0ec; color: #8c8277; font-size: 9px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; transition: background .2s, color .2s, border-color .2s; }
.rd-auto-holding.is-drifting { background: #fff7ee; }
.rd-auto-holding.is-drifting .rd-auto-weight strong { color: #ba6e22; }
.rd-auto-holding[data-order="working"] { background: #fff2e6; }
.rd-auto-holding[data-trade="buy"][data-order="working"] .rd-auto-order { background: #e8f4eb; border-color: #b9d8c2; color: #2c7b4e; }
.rd-auto-holding[data-trade="sell"][data-order="working"] .rd-auto-order { background: #fbeaec; border-color: #e7b9c0; color: #b04c60; }
.rd-auto-holding[data-order="filled"] .rd-auto-order { color: #537259; background: #f0f5ee; }
.rd-automation:is([data-phase="monitor"], [data-phase="drift"]) .rd-auto-order { padding-inline: 0; border-color: transparent; background: transparent; color: #9b9186; }
.rd-automation[data-phase="monitor"] .rd-auto-insight { border-color: #e3e7e9; background: #f6f8f9; }
.rd-automation[data-phase="monitor"] .rd-auto-insight-icon { border-color: #dfe6ea; color: #657d8a; background: #edf1f4; }
.rd-automation[data-phase="monitor"] .rd-auto-count { color: #73818a; }
.rd-auto-note { display: flex; gap: 6px; align-items: center; margin-top: 7px; font-size: 9px; line-height: 1.35; color: #74826e; }
.rd-controls { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 0; color: #868079; font-size: 12px; }
.rd-controls > div { display: flex; gap: 16px; }
.rd-controls button { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: 12px; }
.rd-controls button:hover { color: var(--ink); }
.rd-controls svg { width: 16px; height: 16px; }
.run-demo:not(.is-enhanced) .rd-controls > div { visibility: hidden; }
.run-demo.is-enhanced [data-cue] { opacity: 0; transform: translateY(7px); transition: opacity .42s ease, transform .55s cubic-bezier(.16, 1, .3, 1); }
.run-demo.is-enhanced [data-cue].is-shown { opacity: 1; transform: none; }
.run-demo.is-paused [data-cue] { transition: none; }
.run-demo.is-paused *, .run-demo[data-paused="true"] * { animation-play-state: paused !important; }
@keyframes rd-connect { from { transform: translateX(0); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } to { transform: translateX(86px); opacity: 0; } }
@keyframes rd-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .rd-steps { gap: 20px; padding-inline: 8px; }
  .rd-step-label { font-size: 16px; gap: 7px; }
  .rd-step-detail { margin-left: 35px; font-size: 11px; }
  .rd-conversation, .rd-output { padding: 24px 22px; }
  .rd-conversation > h3 { font-size: 21px; }
  .rd-plugin-card { padding: 17px; }
  .rd-plugin-heading .rd-wordmark { width: 135px; }
  .rd-exchanges { gap: 5px; }
  .rd-exchanges li { padding: 6px; }
  .rd-exchanges li:first-child span { font-size: 9px; }
  .rd-run-card .rd-card-heading h3 { font-size: 20px; }
  .rd-run-indicator { padding: 5px 7px; font-size: 10px; }
  .rd-automation { --rd-ledger-columns: minmax(0, 1fr) 44px 91px 54px; --rd-ledger-gap: 7px; }
  .rd-auto-stages li { gap: 4px; font-size: 9px; }
  .rd-auto-market { flex-direction: column; gap: 0; }
  .rd-auto-market svg { width: 30px; height: 11px; }
  .rd-auto-market [data-auto-market] { font-size: 9px; }
  .rd-auto-asset { gap: 6px; }
  .rd-auto-weight { gap: 4px; }
  .rd-auto-insight { gap: 7px; }
  .rd-auto-insight-icon { width: 24px; height: 24px; }
}
@media (max-width: 700px) {
  .run-demo { width: min(520px, 100% - 32px); margin-top: 80px; }
  .rd-heading { margin-bottom: 19px; }
  .rd-heading > p { font-size: 16px; margin-top: 8px; }
  .rd-steps { gap: 12px; padding: 0 3px; margin-bottom: 16px; }
  .rd-step { padding-top: 5px; }
  .rd-step-label { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.25; min-height: 70px; }
  .rd-step-number { width: 24px; height: 24px; font-size: 13px; }
  .rd-step-detail { display: none; }
  .rd-step-line { margin-top: 9px; }
  .rd-window { border-radius: 18px; }
  .rd-window-bar { min-height: 49px; padding: 13px 17px; }
  .rd-window-dots { width: 48px; gap: 4px; }
  .rd-window-dots i { width: 6px; height: 6px; }
  .rd-window-bar .rd-wordmark { width: 113px; }
  .rd-window-caption { width: 48px; font-size: 10px; line-height: 1.2; }
  .rd-panel { grid-template-columns: 1fr; min-height: 725px; }
  .rd-panels > .rd-panel:not(:first-child) { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .rd-conversation { padding: 22px 21px; border-right: none; border-bottom: 1px solid var(--rd-line); }
  .rd-output { padding: 23px 21px; }
  .rd-conversation > h3 { font-size: 22px; max-width: 17em; margin-top: 8px; }
  .rd-ai-apps { margin: 16px 0; gap: 8px; }
  .rd-ai-apps li { min-height: 40px; padding: 9px 12px; font-size: 14px; }
  .rd-chat-message { padding: 13px 15px; }
  .rd-chat-message p { font-size: 14px; line-height: 1.55; }
  .rd-helper { margin-top: 12px; font-size: 14px; }
  .rd-connection { margin-top: 0; margin-bottom: 16px; width: 188px; }
  .rd-connection-node { width: 41px; height: 41px; border-radius: 12px; }
  .rd-plugin-card { padding: 17px; }
  .rd-plugin-heading .rd-wordmark { width: 143px; }
  .rd-plugin-card > p { font-size: 14px; }
  .rd-install-checks { gap: 10px; margin-top: 16px; }
  .rd-install-checks li { font-size: 14px; }
  .rd-status { margin-top: 14px; }
  .rd-targets { margin-top: 17px; }
  .rd-targets dt { font-size: 14px; }
  .rd-targets dd { font-size: 28px; }
  .rd-card-heading h3 { font-size: 21px; }
  .rd-portfolio-holdings > li { padding: 8px; }
  .rd-exchanges { margin-block: 20px; gap: 8px; }
  .rd-exchanges li { height: 42px; }
  .rd-account-card { padding: 14px; }
  .rd-account-card strong { font-size: 14px; }
  .rd-chat-message--compact { margin-top: 15px; }
  .rd-run-card .rd-card-heading { gap: 10px; }
  .rd-automation { --rd-ledger-columns: minmax(0, 1fr) 37px 86px 54px; --rd-ledger-gap: 6px; }
  .rd-auto-holding { min-height: 28px; padding-block: 3px; }
  .rd-auto-asset img { width: 19px; height: 19px; }
  .rd-auto-asset > span { column-gap: 4px; }
  .rd-auto-weight { gap: 3px; }
  .rd-auto-weight > svg { width: 9px; height: 9px; }
  .rd-allocation-heading { font-size: 8px; }
  .rd-auto-stages li { padding-inline: 4px; }
  .rd-auto-insight { padding-inline: 8px; }
  .rd-auto-insight strong { font-size: 11px; }
  .rd-auto-insight p { font-size: 9px; }
  .rd-run-card .rd-card-heading h3 { font-size: 20px; }
  .rd-controls { font-size: 11px; }
  .rd-controls > div { gap: 10px; }
  .rd-controls button { font-size: 11px; }
}
@media (max-width: 370px) {
  .rd-step-label { font-size: 13px; }
  .rd-conversation, .rd-output { padding: 20px 16px; }
  .rd-plugin-card { padding: 15px; }
  .rd-ai-apps li { padding-inline: 9px; }
  .rd-portfolio-holdings { gap: 7px; }
  .rd-portfolio-holdings > li { padding: 7px; gap: 5px; }
  .rd-holding-identity { gap: 5px; }
  .rd-holding-identity img { width: 21px; height: 21px; }
  .rd-holding-side { font-size: 9px; }
  .rd-holding-side svg { display: none; }
  .rd-card-heading h3 { font-size: 19px; }
  .rd-run-indicator { font-size: 10px; gap: 5px; }
  .rd-automation { --rd-ledger-columns: minmax(0, 1fr) 32px 76px 54px; --rd-ledger-gap: 4px; }
  .rd-auto-stages { gap: 4px; }
  .rd-auto-stages li { padding: 6px 3px; font-size: 9px; }
  .rd-auto-stages li > span { display: none; }
  .rd-auto-asset { gap: 5px; }
  .rd-auto-asset img { width: 17px; height: 17px; }
  .rd-auto-asset strong { font-size: 11px; }
  .rd-auto-side { font-size: 8px; }
  .rd-auto-weight { font-size: 10px; gap: 2px; }
  .rd-auto-weight > span { font-size: 9px; }
  .rd-auto-order { min-width: 36px; padding-inline: 3px; font-size: 8px; }
  .rd-auto-insight-icon { width: 22px; height: 22px; }
  .rd-auto-insight { gap: 6px; }
  .rd-auto-count { font-size: 9px; }
  .rd-exchanges { gap: 5px; }
  .rd-exchanges li:first-child span { display: none; }
  .rd-exchanges .rd-binance { width: 19px; height: 19px; }
  .rd-controls { padding-inline: 0; }
  .rd-controls > div { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .run-demo *, .run-demo *::before, .run-demo *::after { animation: none !important; transition: none !important; }
}
