/* Focused mobile monitoring surface. No decorative frames; state is always text + color. */
.cd-page{--cd-text:#f0edf8;--cd-muted:#aaa2bd;--cd-surface:#1c182a;--cd-soft:#211a32;--cd-line:#ffffff0e;--cd-accent:#b496f5;--cd-green:#67cfb1;--cd-red:#ff949b;--cd-amber:#e9bd7c;color:var(--cd-text);font-family:var(--font-sans,"Segoe UI","Microsoft YaHei",sans-serif);font-size:14px;line-height:1.6;padding-bottom:35px;overflow-wrap:anywhere}
[data-theme="light"] .cd-page{--cd-text:#28213d;--cd-muted:#746c87;--cd-surface:#f3f0fa;--cd-soft:#eee8fa;--cd-line:#3421530d;--cd-accent:#7250bb;--cd-green:#147c61;--cd-red:#ba4557;--cd-amber:#93601d}
.mobile-app:has(.cd-page) .mobile-cosmos{opacity:.08}.mobile-app:has(.cd-page) .mobile-device{background:#100e19}.mobile-app:has(.cd-page) .mobile-footer{display:none}[data-theme="light"] .mobile-app:has(.cd-page) .mobile-device{background:#fdfcff}[data-theme="light"] .mobile-app:has(.cd-page) .mobile-cosmos{opacity:.03}
:is(.mobile-app,.desktop-app) .cd-page h1,:is(.mobile-app,.desktop-app) .cd-page h2,:is(.mobile-app,.desktop-app) .cd-page h3{font-family:inherit;color:var(--cd-text);letter-spacing:-.025em;line-height:1.4;margin:0;font-weight:650}:is(.mobile-app,.desktop-app) .cd-page p{margin:0}:is(.mobile-app,.desktop-app) .cd-page a{color:inherit;text-decoration:none}:is(.mobile-app,.desktop-app) .cd-page button{font-family:inherit;color:inherit;cursor:pointer}:is(.mobile-app,.desktop-app) .cd-page button:disabled{opacity:.45;cursor:not-allowed}.cd-page button:focus-visible,.cd-page a:focus-visible,.cd-page summary:focus-visible{outline:2px solid var(--cd-accent);outline-offset:4px}.cd-page-bar{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;margin:0 0 18px}:is(.mobile-app,.desktop-app) .cd-page-bar h1{font-size:18px;text-align:center}.cd-page-bar>a,.cd-page-bar>button{display:grid;place-items:center;width:40px;height:40px;font-size:23px;background:none;border:0}.cd-demo-label{display:flex;align-items:center;justify-content:space-between;color:var(--cd-accent);gap:8px;font-size:11px;padding:9px 12px;background:var(--cd-soft);border-radius:8px}.cd-demo-label button{background:none;border:0;font-size:11px;min-height:30px}.cd-scenarios{margin:8px 0 20px;color:var(--cd-muted);font-size:11px}.cd-scenarios summary{cursor:pointer;min-height:32px;display:flex;align-items:center}.cd-scenarios>div{display:flex;flex-wrap:wrap;gap:7px;padding:8px 0}.cd-scenarios button{background:var(--cd-surface);border:0;border-radius:7px;padding:9px 10px;min-height:38px}.cd-scenarios button[aria-pressed="true"]{background:var(--cd-accent);color:#fff}
.cd-identity{display:flex;align-items:center;gap:12px;margin:18px 0 12px}.cd-avatar{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;background:linear-gradient(130deg,#8769c5,#4e3481);color:#fff;border-radius:16px;font-size:20px}.cd-identity>div{min-width:0;flex:1}:is(.mobile-app,.desktop-app) .cd-identity h2{font-size:19px}.cd-identity p{color:var(--cd-muted);font-size:12px;margin-top:3px!important}.cd-free{font-size:10px;letter-spacing:.07em;color:var(--cd-accent)!important;flex-shrink:0}.cd-account{color:var(--cd-muted);font-size:12px;margin-bottom:20px}
.cd-status{background:var(--cd-surface);border-radius:12px;padding:14px 15px;margin-bottom:21px}.cd-status>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.cd-status>div:first-child>span:last-child:not(.cd-badge){font-size:10px;color:var(--cd-muted)}.cd-status p{font-size:12px;line-height:1.8;margin-top:8px!important;color:var(--cd-muted)}.cd-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;white-space:nowrap}.cd-badge i{width:6px;height:6px;background:currentColor;border-radius:50%}.cd-badge.ok{color:var(--cd-green)}.cd-badge.warn{color:var(--cd-amber)}.cd-badge.bad{color:var(--cd-red)}.cd-badge.muted{color:var(--cd-muted)}.cd-status.bad{background:color-mix(in srgb,var(--cd-red) 9%,var(--cd-surface))}.cd-status.warn{background:color-mix(in srgb,var(--cd-amber) 7%,var(--cd-surface))}.cd-sync-line{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:10px;color:var(--cd-muted);margin-top:10px}.cd-status.stale [data-cd-sync]{color:var(--cd-red)}
.cd-tabs{display:flex;gap:0;position:sticky;top:61px;z-index:5;background:#100e19;padding:5px 0 0;margin:0 -4px 23px}.cd-tabs button{flex:1;min-width:0;min-height:47px;padding:8px 2px 13px;border:0;background:none;font-size:13px;color:var(--cd-muted)!important;position:relative;white-space:nowrap}.cd-tabs button.selected{color:var(--cd-text)!important;font-weight:700}.cd-tabs button.selected:after{content:"";position:absolute;bottom:0;height:3px;border-radius:5px;width:23px;left:calc(50% - 11px);background:var(--cd-accent)}.cd-tabs small{font-size:10px;color:var(--cd-muted)}[data-theme="light"] .cd-tabs{background:#fdfcff}.cd-tab-content>section{margin-bottom:30px}.cd-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}:is(.mobile-app,.desktop-app) .cd-section-head h2{font-size:15px}.cd-section-head>a{font-size:11px;color:var(--cd-accent)!important}.cd-caption{font-size:11px!important;line-height:1.8!important;color:var(--cd-muted)!important}.cd-profit-label{font-size:12px;color:var(--cd-muted);margin-top:21px}.cd-profit{font-size:40px;font-weight:650;line-height:1.25;letter-spacing:-.05em;font-variant-numeric:tabular-nums;margin:5px 0 20px}.cd-profit small{display:inline-block;color:var(--cd-green);font-size:13px;letter-spacing:0;margin-left:5px}.cd-metrics{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cd-metrics span{display:block;font-size:11px;color:var(--cd-muted)}.cd-metrics strong{display:block;font-size:20px;font-weight:550;margin-top:4px;font-variant-numeric:tabular-nums}.cd-chart{margin:14px 0 13px}.cd-chart svg{display:block;width:100%;height:auto;overflow:visible}.cd-grid{stroke:var(--cd-line);stroke-width:1}.cd-chart>div{display:flex;justify-content:space-between;gap:8px;color:var(--cd-muted);font-size:9px}.cd-chart-empty{padding:35px 18px;text-align:center;color:var(--cd-muted);background:var(--cd-surface);margin:18px 0 12px;border-radius:10px}.cd-chart-empty small{display:block;font-size:11px;margin-top:8px}.cd-exposure-values{display:flex;align-items:baseline;gap:8px}.cd-exposure-values strong{font-size:26px;font-weight:550}.cd-exposure-values strong small{font-size:12px;font-weight:400}.cd-exposure-values>span{font-size:12px;color:var(--cd-muted)}.cd-meter{height:6px;border-radius:9px;background:var(--cd-soft);margin:10px 0}.cd-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7550c7,#bca1f0);transition:width .3s}.cd-pipeline{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:13px}.cd-pipeline>div{text-align:center;position:relative}.cd-pipeline>div:not(:last-child):after{content:"";position:absolute;top:16px;left:70%;width:60%;height:1px;background:var(--cd-soft)}.cd-pipeline b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--cd-soft);color:var(--cd-accent);margin:0 auto 9px;font-size:13px}.cd-pipeline strong{display:block;font-size:12px;font-weight:500}.cd-pipeline small{display:block;font-size:10px;color:var(--cd-muted);margin-top:4px}
.cd-position{background:var(--cd-surface);border-radius:12px;padding:16px;margin:12px 0}.cd-position summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:8px}.cd-position summary::-webkit-details-marker,.cd-event summary::-webkit-details-marker{display:none}.cd-instrument{display:flex;gap:10px;align-items:center}.cd-instrument>b{display:grid;place-items:center;width:30px;height:32px;border-radius:8px;font-size:11px}.cd-instrument>b.buy{background:color-mix(in srgb,var(--cd-green) 12%,transparent);color:var(--cd-green)}.cd-instrument>b.sell{background:color-mix(in srgb,var(--cd-red) 12%,transparent);color:var(--cd-red)}.cd-instrument strong{display:block;font-size:14px}.cd-instrument small{display:block;font-size:10px;color:var(--cd-muted);margin-top:4px}.cd-position-pnl{text-align:right;font-size:19px;font-weight:550;font-variant-numeric:tabular-nums}.cd-position-pnl small{display:block;font-size:10px;color:var(--cd-muted);font-weight:400}.cd-position-pnl.gain{color:var(--cd-green)}.cd-position-pnl.loss{color:var(--cd-red)}.cd-facts{margin:17px 0}.cd-facts>div{display:flex;justify-content:space-between;gap:18px;align-items:baseline;margin:0;padding:10px 0}.cd-facts dt{font-size:12px;color:var(--cd-muted);flex:1}.cd-facts dd{margin:0;text-align:right;font-size:12px;max-width:58%;font-variant-numeric:tabular-nums}.cd-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.cd-event{padding:18px 0;border-bottom:1px solid var(--cd-line)}.cd-event summary{display:flex;gap:11px;align-items:center;list-style:none;cursor:pointer}.cd-event summary>i{height:7px;width:7px;background:var(--cd-green);border-radius:50%;flex-shrink:0}.cd-event summary>i.warn{background:var(--cd-amber)}.cd-event summary>span{flex:1}.cd-event summary strong{display:block;font-size:13px;font-weight:550}.cd-event summary small{display:block;font-size:10px;color:var(--cd-muted);margin-top:5px}.cd-event em{font-size:11px;font-style:normal;color:var(--cd-muted)}.cd-event>p{font-size:12px;color:var(--cd-muted);margin:14px 0 0!important}.cd-note{color:var(--cd-muted);font-size:12px;line-height:1.9}.cd-empty{text-align:center;padding:30px 16px;color:var(--cd-muted)}.cd-empty>span{font-size:35px;color:var(--cd-accent)}:is(.mobile-app,.desktop-app) .cd-empty h3{font-size:16px;margin:9px 0}.cd-empty p{font-size:12px;line-height:1.8}
:is(.mobile-app,.desktop-app) .cd-button{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:6px;border:0;border-radius:10px;padding:12px 15px;font-size:13px;font-weight:550;min-height:44px;line-height:1.5;background:var(--cd-soft);color:var(--cd-accent);text-decoration:none}:is(.mobile-app,.desktop-app) .cd-button.primary{background:#7955cc;color:#fff}:is(.mobile-app,.desktop-app) .cd-button.secondary{background:var(--cd-soft);color:var(--cd-text)}:is(.mobile-app,.desktop-app) .cd-button.text{background:none;color:var(--cd-accent);min-height:30px;padding:3px 0;font-size:11px}.cd-action-dock{position:sticky;bottom:calc(77px + env(safe-area-inset-bottom));background:#100e19ed;backdrop-filter:blur(12px);padding:13px 0 9px;margin-top:25px;z-index:6}.cd-action-dock>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cd-action-dock>small{display:block;text-align:center;font-size:9px;color:var(--cd-muted);margin-top:8px}[data-theme="light"] .cd-action-dock{background:#fdfcfff0}.cd-simulation-tools{margin:20px 0;font-size:12px;color:var(--cd-muted)}.cd-simulation-tools summary{min-height:44px;cursor:pointer}.cd-simulation-tools>div{display:flex;gap:10px;margin-top:12px}.cd-dialog{--cd-muted:#aaa2bd;--cd-accent:#b496f5;--cd-soft:#281f3b;--cd-text:#f0edf8;font-size:14px;line-height:1.8}.cd-dialog-tag{font-size:10px;letter-spacing:.12em;color:var(--cd-accent)}:is(.mobile-app,.desktop-app) .cd-dialog h2{font-size:23px;margin:12px 0}.cd-dialog>p{font-size:13px;color:var(--cd-muted)}.cd-dialog-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:20px}.cd-dialog form{display:grid;gap:16px}.cd-dialog input{display:block;width:100%;margin-top:6px}.cd-dialog label{font-size:13px}.cd-dialog .form-error:empty{display:none}[data-theme="light"] .cd-dialog{--cd-muted:#746c87;--cd-accent:#7250bb;--cd-soft:#eee8fa;--cd-text:#28213d}
.cd-list-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0 26px}.cd-list-title p{font-size:10px;letter-spacing:.15em;color:var(--cd-accent)}:is(.mobile-app,.desktop-app) .cd-list-title h1{font-size:27px;margin-top:5px}.cd-preview-entry{display:flex;gap:12px;align-items:center;background:var(--cd-soft);padding:20px 17px;border-radius:14px}.cd-preview-symbol{font-size:27px;color:var(--cd-accent)}.cd-preview-entry>div{flex:1}.cd-preview-entry strong{font-size:15px}.cd-preview-entry p{font-size:11px;color:var(--cd-muted);margin-top:5px!important}.cd-preview-entry small{display:block;color:var(--cd-accent);font-size:10px;margin-top:8px}.cd-list-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:27px 0 12px}.cd-list-stats b{display:block;font-size:28px;font-weight:550}.cd-list-stats span{font-size:11px;color:var(--cd-muted)}.cd-list-stats+.cd-caption{margin-bottom:28px!important}.cd-copy-row{display:block;padding:20px 0;border-bottom:1px solid var(--cd-line)}.cd-copy-row>div,.cd-copy-row footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.cd-copy-row>div>strong{font-size:16px}.cd-copy-row>p{color:var(--cd-muted);font-size:12px;margin:6px 0 14px!important}.cd-copy-row footer{font-size:11px;color:var(--cd-muted)}.cd-copy-row footer b{color:var(--cd-text)}.cd-copy-row footer>span:last-child{color:var(--cd-accent)}.cd-list-links{display:flex;flex-direction:column;align-items:center;gap:20px;margin:24px 0}.cd-list-links>a{font-size:12px;color:var(--cd-accent)!important}
@media(max-width:360px){.cd-profit{font-size:34px}.cd-identity h2{font-size:17px!important}.cd-section-head{gap:6px}.cd-section-head .cd-caption{font-size:9px!important}.cd-tabs button{font-size:12px}.cd-event em{font-size:10px}.cd-facts dt,.cd-facts dd{font-size:11px}:is(.mobile-app,.desktop-app) .cd-button{padding:11px 9px;font-size:12px}.cd-identity{gap:9px}.cd-free{font-size:9px}}
@media(prefers-reduced-motion:reduce){.cd-page *{transition:none!important}}
/* Keep the status and personal P/L in the first screen; reserve space for fixed controls. */
.mobile-app:has([data-copy-detail]) .mobile-environment{display:none}
.mobile-app:has([data-copy-detail]) #main{padding-top:10px}
.cd-page:has(.cd-action-dock){padding-bottom:125px}
.cd-page *{text-shadow:none}
.cd-page-bar{margin-bottom:8px}
.cd-demo-label{padding:3px 10px}
.cd-scenarios{margin:4px 0 8px}
.cd-scenarios summary{min-height:26px}
.cd-identity{margin:12px 0 6px}
.cd-account{margin-bottom:12px}
.cd-status{padding:11px 13px;margin-bottom:9px}
.cd-status p{line-height:1.65;margin-top:6px!important}
.cd-sync-line{margin-top:6px}
.cd-tabs{margin-bottom:16px}
.cd-tabs button{min-height:42px}
.cd-profit-label{margin-top:12px}
.cd-profit{margin:2px 0 12px}
.cd-action-dock{position:fixed;left:50%;transform:translateX(-50%);width:calc(100% - 36px);max-width:424px;margin:0;bottom:calc(69px + env(safe-area-inset-bottom));padding:10px 0 8px}
@media(min-width:521px){.cd-action-dock{bottom:94px}}
.cd-quick-facts{padding:12px;background:var(--cd-soft);border-radius:9px;margin:10px 0}.cd-quick-facts>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:baseline;margin-bottom:7px;font-size:11px}.cd-quick-facts>div>span{color:var(--cd-muted)}.cd-quick-facts strong{font-size:12px;font-weight:600}.cd-quick-facts button{font:inherit;border:0;background:none;color:var(--cd-accent)!important;padding:2px}.cd-quick-facts .filled{color:var(--cd-green)}.cd-quick-facts .missed{color:var(--cd-red)}.cd-quick-facts .pending{color:var(--cd-amber)}.cd-quick-facts>p{font-size:11px;line-height:1.6;color:var(--cd-muted)}
