/* Only page chrome; the simulator retains its existing stylesheet and layout. */
.cw-demo { background: var(--color-paper); color: var(--color-ink-2); }
.cw-demo .container { max-width: 1280px; }
.demo-intro { padding-top: 44px; padding-bottom: 20px; }
.demo-intro h1 { font-size: clamp(2rem,4vw,3rem); margin: 12px 0; }
.demo-intro p { margin-bottom: 12px; }
.cw-demo .section-head { margin-bottom: 26px; }
.cw-demo .section-title { font-size: clamp(1.5rem,3vw,2.3rem); }
.cw-demo .site-footer { padding: 24px 0; }
.cw-demo .nojs-nav a { min-height: 44px; }

.cw-demo .theme-toggle { min-width: 44px; min-height: 44px; }
@media(max-width:360px) { .cw-demo .site-header .container { gap:8px; } .cw-demo .site-header .cw-wordmark { width:96px; } }

/* Topics progressively enhance ordinary anchor navigation. */
.demo-topics{display:flex;flex-wrap:wrap;gap:8px;padding-block:12px 24px;scroll-margin-top:90px}.demo-topics a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 18px;border:1px solid var(--color-rule);border-radius:30px;color:var(--color-ink);text-decoration:none;font-size:.9rem;background:var(--color-paper-2)}.demo-topics a[aria-selected=true]{background:var(--color-accent);color:var(--color-accent-ink,#fff);border-color:var(--color-accent)}.demo-topics a small{font-size:.65rem;text-transform:uppercase;letter-spacing:.06em}.demo-topics a:focus-visible{outline:3px solid var(--color-focus);outline-offset:4px}.demo-topics a:active{transform:scale(.97)}.demo-topic{scroll-margin-top:60px}.demo-topic[hidden]{display:none!important}.demo-walkthrough{padding-block:32px 64px}.demo-walkthrough h2{font-size:clamp(2rem,4vw,3rem);line-height:1.12;letter-spacing:-.04em;color:var(--color-ink);margin-bottom:24px}.demo-topic-lede{max-width:64ch;font-size:1.05rem;line-height:1.7}.demo-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:32px 0}.demo-info-card{background:var(--color-paper-2);border:1px solid var(--color-rule);border-radius:16px;padding:28px}.demo-info-card h3{font-size:1.25rem;line-height:1.3;color:var(--color-ink);margin:12px 0 16px}.demo-info-card p{font-size:.95rem;line-height:1.7;margin-bottom:16px}.demo-info-card a{color:var(--color-accent-link);text-decoration:underline;text-underline-offset:4px}.demo-equation{font-family:var(--font-mono);padding:18px 0;border-block:1px solid var(--color-rule)}.demo-evidence{display:grid;gap:14px}.demo-evidence div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--color-rule);padding:12px 0}.demo-evidence dd{margin:0;color:var(--color-ink);font-family:var(--font-mono)}
html.cw-embedded-demo .demo-topics,html.cw-embedded-demo .demo-walkthrough,html.cw-embedded-demo main>noscript{display:none!important}
@media(max-width:680px){.demo-card-grid{grid-template-columns:1fr;gap:16px;margin:24px 0}.demo-info-card{padding:22px}.demo-intro{padding-top:28px}.demo-topics{gap:8px}.demo-topics a{font-size:.8rem;padding:10px 13px}.demo-walkthrough{padding-top:20px}.demo-evidence div{flex-wrap:wrap}.cw-demo #simulator{padding-bottom:2rem!important}}
.cw-demo{--color-paper:#f6efe4;--color-paper-2:#fffbf5;--color-ink:#34111a;--color-ink-2:#6a4a4e;--color-rule:#e2d3c0;--color-accent:#b91f2b;--color-accent-link:#a51926;--color-accent-ink:#fff;--color-focus:#a51926;--header-bg:#fffbf5;--color-btn-bg:#b91f2b;--color-btn-hover:#8e1621;--color-btn-text:#fff}
/* Keep scrolling page text from peeking through the sticky header’s top gutter. */
.cw-demo::before{content:"";position:fixed;inset:0 0 auto;height:20px;background:var(--color-paper);z-index:99;pointer-events:none}
.cw-demo .site-header{position:sticky;top:12px;margin:12px auto 0;width:min(1240px,calc(100% - 32px));border-radius:40px;background:var(--header-bg);border:1px solid var(--color-rule);z-index:100}.cw-demo .site-header .container{width:100%;padding-inline:20px;justify-content:space-between}.cw-demo .demo-intro{padding-top:40px}.cw-demo .site-header .btn{white-space:normal;text-align:center;min-width:96px;max-width:none;line-height:1.15}.cw-demo .demo-intro .eyebrow,.cw-demo .demo-walkthrough .eyebrow{font-size:.75rem;text-transform:uppercase;letter-spacing:.09em;color:var(--color-accent-link)}
body.site-page.cw-demo{display:block;align-items:initial;padding:0;background:var(--color-paper);color:var(--color-ink-2)}.cw-demo .nav-mobile-cta{flex:0 0 96px;max-width:none;min-height:44px;white-space:normal;justify-content:center;line-height:1.2}.cw-demo .header-actions{flex-shrink:0;gap:8px}
@media(max-width:680px){.cw-demo .cw-wordmark{width:105px}.cw-demo .site-header .container{padding-inline:13px;gap:12px}}
@media(max-width:680px){.demo-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.demo-topics a{padding:10px 8px;font-size:.78rem;gap:4px;flex-wrap:wrap}.demo-topics a small{font-size:.6rem}}

/* Native ChartWise screenshots switch in one frame. Transparent tab targets sit over the captured sidebar. */
.demo-app-shot{margin:28px 0 0}.demo-app-shot__surface{position:relative;overflow:hidden;border:1px solid var(--color-rule);border-radius:14px;background:#f8f9fc;box-shadow:0 12px 32px rgba(36,25,48,.12)}.demo-app-shot__panel img{display:block;width:100%;height:auto;aspect-ratio:1920/1050}.demo-app-shot__hotspots{position:absolute;inset:0;pointer-events:none}.demo-app-shot__hotspots [role=tab]{position:absolute;top:var(--nav-top);left:.2%;width:11.1%;height:var(--nav-height);overflow:hidden;border:0;border-radius:5px;background:transparent;color:transparent;font-size:0;cursor:pointer;pointer-events:auto}.demo-app-shot__hotspots [role=tab]:hover{background:rgba(111,73,174,.16);box-shadow:inset 0 0 0 1px rgba(111,73,174,.35)}.demo-app-shot__hotspots [role=tab]:focus-visible{outline:3px solid #a51926;outline-offset:1px;background:rgba(165,25,38,.12)}.demo-app-shot figcaption{margin-top:10px;color:#76686a;font-size:.75rem}.demo-app-shot__hotspots [role=tab]:active{background:rgba(111,73,174,.22)}
@media(max-width:680px){.demo-app-shot{margin-top:22px}.demo-app-shot__surface{display:flex;flex-direction:column;border-radius:9px}.demo-app-shot__panel{order:2}.demo-app-shot__hotspots{position:relative;inset:auto;order:1;display:flex;gap:6px;overflow-x:auto;padding:7px;background:#f2eff8;border-bottom:1px solid #e3dfeb;pointer-events:auto;scrollbar-width:thin}.demo-app-shot__hotspots [role=tab]{position:static;flex:0 0 auto;width:auto;height:auto;min-width:44px;min-height:44px;padding:8px 10px;border:1px solid #e3dfeb;border-radius:7px;background:#fff;color:#5e5b69;font-size:.73rem;white-space:nowrap}.demo-app-shot__hotspots [role=tab][aria-selected=true]{border-color:#d5c5eb;background:#7042be;color:#fff}.demo-app-shot__hotspots [role=tab]:hover{background:#f4effb;color:#4d397c}.demo-app-shot__hotspots [role=tab][aria-selected=true]:hover{background:#6540aa;color:#fff}.demo-app-shot__hotspots [role=tab]:focus-visible{outline:3px solid #a51926;outline-offset:1px;background:#fff;color:#5e5b69}}
/* Replace personal display names inside the captured previews with one generic identity. */
.demo-app-shot__redactions{position:absolute;inset:0;z-index:2;pointer-events:none}.demo-name-mask{position:absolute;display:none;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden;padding:0 2px;border:1px solid #e4dfeb;border-radius:3px;background:rgba(255,255,255,.98);color:#554e64;font:500 clamp(6px,.45vw,9px)/1.1 Inter,Arial,sans-serif;white-space:nowrap;border:0;border-radius:0}.demo-app-shot[data-active-screen] .demo-name-mask--profile{display:flex}.demo-app-shot[data-active-screen="dashboard"] .demo-name-mask--dashboard-account,.demo-app-shot[data-active-screen="trades"] .demo-name-mask--trades-account,.demo-app-shot[data-active-screen="pair-phone"] .demo-name-mask--pair-linked,.demo-app-shot[data-active-screen="pair-phone"] .demo-name-mask--pair-account,.demo-app-shot[data-active-screen="pair-phone"] .demo-name-mask--pair-device,.demo-app-shot[data-active-screen="bridge-setup"] .demo-name-mask--bridge-user{display:flex}.demo-name-mask--profile{left:3%;top:92.1%;width:6.5%;height:2.4%;background:#fff}.demo-name-mask--dashboard-account{left:73.2%;top:5.55%;width:8.1%;height:1.8%;background:#f2f1f6}.demo-name-mask--trades-account{right:3.1%;top:11.6%;width:7.6%;height:1.9%;background:#f2f1f6}.demo-name-mask--pair-linked{left:18%;top:12.4%;width:12%;height:2.1%;background:#fff}.demo-name-mask--pair-account{right:1.5%;top:21.1%;width:14%;height:2.1%;background:#fff}.demo-name-mask--pair-device{right:1.5%;top:17%;width:24%;height:2.1%;background:#f3f2f6}.demo-name-mask--bridge-user{left:42.5%;top:30.7%;width:6.2%;height:2.1%;background:#f1eef7}

/* The EA Intelligence topic hosts the same synthetic evidence explorer inline. */
.demo-evidence-embed{--bg:var(--color-paper);--bg-paper:var(--color-paper);--card-bg:var(--color-paper-2);--ink:var(--color-ink);--ink-soft:var(--color-ink-2);--accent:var(--color-accent);--line:var(--color-rule);--font-display:var(--font-display);--font-body:var(--font-body);--font-mono:var(--font-mono)}
.demo-evidence-embed .cw-evidence{padding:30px 0 40px;background:transparent}
.demo-evidence-embed .cw-evidence>.container{max-width:1240px;padding-inline:0}
html:not(.cw-evidence-ready) .demo-evidence-embed .cw-ea-tabs,html:not(.cw-evidence-ready) .demo-evidence-embed .cw-event-controls,html:not(.cw-evidence-ready) .demo-evidence-embed #cw-event-focus,html:not(.cw-evidence-ready) .demo-evidence-embed #cw-coverage{display:none!important}
.cw-demo .site-footer{width:100%;padding:20px 0}.cw-demo .site-footer .container{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:14px;width:100%;max-width:1280px;margin:0 auto;padding:0 24px}
@media(max-width:480px){.cw-demo .site-footer .container{flex-wrap:wrap;gap:10px}}
