/* Account screens share one live session and preserve filters while navigating. */
.ce-account-app .ce-site-footer,.ce-account-app .ce-site-header .ce-nav{display:none}
.ce-account-app .account-main{padding:28px 0 60px;min-height:calc(100vh - 80px)}
.ce-account-app #accountRoot{display:grid;grid-template-columns:196px minmax(0,1fr);gap:30px;width:min(1320px,calc(100% - 48px));margin:auto;align-items:start}
#ceAccountMain{min-width:0}
.ce-account-screen[hidden],.ce-screen-pane[hidden]{display:none!important}
.ce-cabinet-nav{position:sticky;top:110px;padding:16px 12px;background:#0c1725;border:1px solid #23374d;border-radius:16px;min-width:0}
.ce-cabinet-nav-label{font-size:13px;font-weight:650;color:#718eaf;letter-spacing:.1em;margin:2px 12px 17px}
.ce-cabinet-nav nav{display:grid;gap:7px}
.ce-cabinet-nav nav a{display:flex;align-items:center;gap:12px;padding:13px 12px;color:#90a6c0;text-decoration:none;border:1px solid transparent;border-radius:10px;font-size:14px;font-weight:650;min-width:0;transition:background .15s,color .15s}
.ce-cabinet-nav nav a:hover{background:#14243a;color:#e0ecfa}
.ce-cabinet-nav nav a.is-current{background:#183453;color:#cde4ff;border-color:#315479}
.ce-cabinet-nav svg,.ce-settings-link svg,.ce-overview-copy-link svg{width:21px;height:21px;flex:none}
.ce-cabinet-nav-extra{display:grid;gap:15px;margin:22px 8px 2px;padding-top:20px;border-top:1px solid #22374e}
.ce-cabinet-nav-extra a{display:flex;align-items:center;gap:9px;font-size:13px;color:#91aaca;text-decoration:none}
.ce-cabinet-nav-extra svg{width:15px;height:15px}
.ce-cabinet-nav-extra small{color:#6f89a9;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.ce-screen-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:2px 0 25px}
.ce-screen-heading .ce-eyebrow{color:#7cb29f;font-size:13px;font-weight:700;letter-spacing:.14em}
.ce-screen-heading h1{font-size:34px;letter-spacing:-.035em;line-height:1.2;margin:8px 0 8px;outline:none;color:#edf5ff}
.ce-screen-heading p{color:#889eb9;font-size:14px;line-height:1.6;margin:0}
.ce-settings-link{box-sizing:border-box;display:flex;width:44px;height:44px;align-items:center;justify-content:center;flex:none;border:1px solid #304861;border-radius:12px;background:#112033;color:#a5c3e8;text-decoration:none}
.ce-settings-link.is-current{background:#234363;border-color:#5880af;color:#e4f2ff}
.ce-cabinet-nav a:focus-visible,.ce-screen-tabs a:focus-visible,.ce-settings-link:focus-visible,.ce-overview-copy-link:focus-visible{outline:2px solid #8ab7f5;outline-offset:3px}
#ceAccountMain .ce-account-screen>:first-child{margin-top:0}
#ceAccountMain .ce-copy-panel,#ceAccountMain .ce-insight-panel,#ceAccountMain .card.attempts{margin:0 0 16px}
#ceAccountMain .ce-fold-head{gap:12px}
#ceAccountMain .ce-performance-tabs{display:none}
#ceAccountMain .ce-account-nav{display:none}
.ce-screen-tabs{display:flex;gap:6px;padding:5px;margin:0 0 20px;border:1px solid #243b54;border-radius:12px;background:#0b1726}
.ce-screen-tabs a{display:flex;align-items:center;justify-content:center;min-height:38px;flex:1;min-width:0;padding:7px 12px;box-sizing:border-box;border:1px solid transparent;border-radius:8px;color:#869fbd;text-decoration:none;font-size:14px;font-weight:650;text-align:center}
.ce-screen-tabs a.is-current{background:#1c3552;border-color:#375d82;color:#e1edfc}
.ce-screen-tabs a:hover{color:#d8eaff}
.ce-shared-filters{border:1px solid #263d55;border-radius:14px;background:#0d1b2a;margin:0 0 18px;overflow:hidden}
.ce-scope-trader{display:flex;align-items:center;gap:14px;padding:15px 18px;color:#a8bed7;font-size:14px;font-weight:600;border-bottom:1px solid #23394f}
.ce-scope-trader select{box-sizing:border-box;flex:1;min-width:0;max-width:330px;min-height:39px;background:#091524;border:1px solid #344d6a;border-radius:8px;padding:8px 12px;color:#d6e7fd;font:14px system-ui}
#ceSharedPeriod .ce-period-panel{margin:0;border:0;border-radius:0;background:none;padding:16px 18px}
#ceSharedPeriod .ce-period-note{display:none}
#ceSharedPeriod .ce-section-intro>small{font-size:13px}
#ceSharedPeriod .ce-period-buttons{margin-bottom:10px}
#ceSharedPeriod .ce-period-status{font-size:13px;line-height:1.6;color:#8da8c7}
.ce-overview-period{padding:16px 18px;min-width:0}
.ce-overview-status{margin:12px 0 0;color:#8da8c7;font-size:14px;line-height:1.6}
.ce-overview-status:empty{display:none}
.ce-overview-filters .ce-date-range input{box-sizing:border-box;width:100%;min-height:40px}
.ce-overview-filters .ce-date-range [role="alert"]{flex-basis:100%;font-size:14px}
#ceSharedPeriod .ce-section-actions>.ce-section-toggle{height:32px;min-height:32px;min-width:112px;font-size:13px}
#ceSharedPeriod .ce-fold-head{margin-bottom:12px;grid-template-columns:minmax(0,1fr) auto}
.ce-account-app #walletCard .ce-wallet-top>div:first-child{display:none}
.ce-account-app #walletCard .ce-wallet-top{display:block;margin:0}
.ce-account-app #walletCard{border:0;background:none;padding:0;box-shadow:none}
.ce-account-app #walletCard .ce-wallet-metrics{gap:12px;max-width:none;grid-template-columns:repeat(4,minmax(0,1fr))}
.ce-account-app #walletCard .ce-wallet-metric{padding:17px 13px;border-radius:13px;background:#0d1c2b}
.ce-account-app #walletCard .ce-wallet-metric strong{font-size:27px;line-height:1.15;margin:0 0 9px;letter-spacing:-.04em;grid-row:auto;grid-column:auto}
.ce-account-app #walletCard .ce-wallet-metric small{font-size:13px;line-height:1.6}
.ce-account-app #walletCard .ce-wallet-metric-label{font-size:13px;margin-bottom:8px}
.ce-account-app #walletCard .ce-redeem-capital{display:block}
.ce-account-app #walletCard .ce-redeem-capital strong{display:block}
#ceOverviewWallet{margin-bottom:18px}
.ce-overview-result{border:1px solid #2a405a;border-radius:16px;padding:21px;background:linear-gradient(125deg,#14263c,#0c1928)}
.ce-overview-result-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}
.ce-overview-result-head small{display:block;color:#90acca;font-size:13px;font-weight:650;letter-spacing:.07em}
.ce-overview-result-head strong{display:block;font-size:32px;letter-spacing:-.04em;margin:8px 0}
.ce-overview-result-head span{display:block;color:#829bb9;font-size:13px;line-height:1.5}
.ce-overview-result-head a{color:#a3c5f1;font-size:13px;white-space:nowrap;text-decoration:none;padding:5px 0}
.ce-overview-chart{display:block;width:100%;height:150px;margin-top:10px;overflow:visible}
.ce-overview-chart-dates{display:flex;justify-content:space-between;color:#6e89ab;font-size:13px}
.ce-overview-result-foot{display:flex;justify-content:space-between;gap:12px;padding-top:17px;margin-top:17px;border-top:1px solid #273d58;font-size:13px;color:#8ca3c0}
.ce-overview-result-foot b{color:#d2e3f7;margin-left:5px;font-weight:600}
.ce-overview-chart-empty{padding:44px 10px;text-align:center;color:#839bb8;font-size:14px;line-height:1.6}
.ce-overview-alerts:empty{display:none}
.ce-overview-alert{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 18px;border:1px solid #665737;background:#272419;border-radius:12px;margin:0 0 14px;color:#e6c996}
.ce-overview-alert b{display:block;font-size:14px;margin-bottom:5px}
.ce-overview-alert span{display:block;color:#bdab8c;font-size:13px;line-height:1.55}
.ce-overview-alert a{font-size:13px;color:#e6c996;text-decoration:none;white-space:nowrap}
.ce-overview-copy-link{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:16px;padding:19px;border:1px solid #29425c;border-radius:13px;background:#0e1d2d;text-decoration:none;color:#b9d6fa}
.ce-overview-copy-link>span:first-child{display:flex;align-items:center;gap:15px}
.ce-overview-copy-link b{font-size:14px;font-weight:600}
.ce-overview-copy-link small{display:block;color:#7f99b8;margin-top:6px;font-size:13px}
.ce-settings-email{color:#c5daf4;font-size:14px;overflow-wrap:anywhere;line-height:1.5}
.ce-settings-status{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}
.ce-settings-status span{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #2c435d;border-radius:9px;color:#8eadce;font-size:13px}
#ceSettingsIdentity h2,.ce-settings-support h2{font-size:18px;margin:0 0 15px}
.ce-settings-support>div,.ce-settings-support nav{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:18px;line-height:1.6}
.ce-settings-support a{color:#99bde8;font-size:14px;text-decoration:none}
.ce-settings-support nav{border-top:1px solid #273d54;padding-top:17px}
.ce-settings-support nav a{font-size:13px;color:#7c98b9}
@media(max-width:1150px) and (min-width:801px){
 .ce-account-app #accountRoot{grid-template-columns:176px minmax(0,1fr);gap:22px;width:calc(100% - 36px)}
 .ce-account-app #walletCard .ce-wallet-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 #ceAccountMain .ce-fold-head{grid-template-columns:minmax(0,1fr)}
 #ceAccountMain .ce-section-actions{justify-self:end}
 #ceSharedPeriod .ce-fold-head{grid-template-columns:minmax(0,1fr) auto}
}
@media(max-width:800px){
 .ce-account-app .account-main{padding:23px 0 calc(105px + env(safe-area-inset-bottom,0px))}
 .ce-account-app #accountRoot{display:block;width:calc(100% - 26px)}
 .ce-cabinet-nav{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:320;border-radius:0;border:0;border-top:1px solid #29425b;padding:7px 6px calc(7px + env(safe-area-inset-bottom,0px));background:rgba(10,23,38,.98);backdrop-filter:blur(14px)}
 .ce-cabinet-nav-label,.ce-cabinet-nav-extra{display:none}
 .ce-cabinet-nav nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
 .ce-cabinet-nav nav a{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:9px 1px 8px;min-height:54px;font-size:13px;line-height:1.2;border-radius:9px}
 .ce-cabinet-nav svg{width:20px;height:20px}
 .ce-screen-heading{margin:0 0 21px;gap:16px}
 .ce-screen-heading h1{font-size:29px;margin:7px 0}
 .ce-screen-heading p{font-size:14px;line-height:1.55}
 .ce-screen-heading .ce-eyebrow{font-size:13px}
 .ce-settings-link{width:44px;height:44px;border-radius:10px}
 .ce-settings-link svg{width:22px;height:22px}
 #ceAccountMain .ce-copy-panel,#ceAccountMain .ce-insight-panel,#ceAccountMain .card.attempts{padding:16px 14px}
 #ceAccountMain .ce-fold-head{grid-template-columns:minmax(0,1fr)}
 #ceAccountMain .ce-section-intro h2{font-size:17px}
 #ceAccountMain .ce-section-intro p{font-size:13px}
 #ceSharedPeriod .ce-fold-head{grid-template-columns:minmax(0,1fr) auto;gap:9px}
 #ceSharedPeriod .ce-section-actions{width:auto;display:flex}
 #ceSharedPeriod .ce-section-intro b{font-size:14px}
 #ceSharedPeriod .ce-period-panel{padding:13px}
 .ce-overview-period{padding:13px}
 #ceSharedPeriod .ce-section-intro>small{font-size:13px}
 .ce-scope-trader{padding:13px;gap:10px;font-size:13px}
 .ce-scope-trader select{max-width:none;font-size:14px}
 .ce-screen-tabs{gap:4px;margin-bottom:16px;padding:4px}
 .ce-screen-tabs a{font-size:13px;padding:7px 4px;min-height:39px}
 .ce-account-app #walletCard .ce-wallet-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .ce-account-app #walletCard .ce-wallet-metric{padding:14px 11px}
 .ce-account-app #walletCard .ce-wallet-metric strong{font-size:25px}
 .ce-account-app #walletCard .ce-wallet-metric small{font-size:13px}
 .ce-overview-result{padding:17px 14px}
 .ce-overview-result-head strong{font-size:29px}
 .ce-overview-result-head small{font-size:13px}
 .ce-overview-result-head a{font-size:13px}
 .ce-overview-chart{height:125px}
 .ce-overview-result-foot{font-size:13px;gap:10px;line-height:1.5}
 .ce-overview-result-foot span{display:flex;flex-direction:column;gap:4px}
 .ce-overview-result-foot b{margin:0;font-size:14px}
 .ce-overview-alert{align-items:flex-start;flex-direction:column;gap:12px;padding:14px}
 .ce-overview-copy-link{padding:16px 13px}
 .ce-overview-copy-link>span:first-child{gap:10px}
 .ce-overview-copy-link b{font-size:13px}
 .ce-overview-copy-link small{font-size:13px}
 .ce-settings-status{display:grid;grid-template-columns:1fr;gap:8px}
 #ceAccountMain .ce-data-table,#ceAccountMain .ce-data-table tbody{display:block;width:100%;min-width:0}
 #ceAccountMain .ce-data-table thead{display:none}
 #ceAccountMain .ce-data-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 15px;padding:16px 0;border-bottom:1px solid #2b425c}
 #ceAccountMain .ce-data-table td{display:block;min-width:0;max-width:none;padding:0;border:0;white-space:normal!important;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
 #ceAccountMain .ce-data-table td::before{content:attr(data-label);display:block;color:#6f8aa9;font-size:13px;margin-bottom:4px}
 #ceAccountMain .ce-data-table td:first-child,#ceAccountMain .ce-data-table td:nth-child(2),#ceAccountMain .ce-data-table td:last-child{grid-column:1/-1}
 /* Keep the leader and copy amounts side by side in mobile signal cards. */
 #ceAccountMain #attempts .ce-data-table td.ce-signal-status{grid-column:1/-1}
 #ceAccountMain .ce-data-table td small{font-size:13px;overflow-wrap:anywhere}
 /* Settled rows are bordered cards, so keep their inner padding and outer gap. */
 #ceAccountMain .ce-settled-table tbody{display:grid;gap:12px;margin-top:14px}
 #ceAccountMain .ce-settled-table tr{min-width:0;padding:16px}
 #ceAccountMain .ce-table-scroll{min-width:0}
 .ce-settings-support>div,.ce-settings-support nav{flex-direction:column;gap:10px}
}
@media(prefers-reduced-motion:reduce){.ce-cabinet-nav a{transition:none}}

.ce-account-app .ce-header-row{display:flex;justify-content:space-between}
.ce-account-app .ce-auth-actions{margin-left:auto}
.ce-account-app .ce-auth-actions>a[href="/app/account.html"]{display:none}
.ce-account-app .ce-menu-button{margin-left:auto}

/* The overview uses the trader card's grid, line, area and floating tooltip. */
.ce-overview-plot{position:relative;height:300px;margin-top:18px;cursor:crosshair;touch-action:pan-y;scroll-margin-block:140px;user-select:none;-webkit-user-select:none;border-radius:8px}
.ce-overview-plot:focus-visible{outline:2px solid #8ab7f5;outline-offset:-2px}
.ce-overview-plot .ce-overview-chart{width:100%;height:100%;margin:0;overflow:visible;pointer-events:none;display:block}
.ce-chart-grid{stroke:#213043;stroke-width:1;vector-effect:non-scaling-stroke}
.ce-chart-axis{fill:#718197;font:13px system-ui,-apple-system,sans-serif}
.ce-chart-line{stroke:#77a7ff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.ce-chart-endpoint{fill:#9bd5ff}
.ce-chart-guide{stroke:#77a7ff;stroke-width:1;stroke-dasharray:4 4;opacity:0}
.ce-chart-dot{fill:#42d986;stroke:#0b1119;stroke-width:3;opacity:0}
.ce-overview-chart-tip{box-sizing:border-box;position:absolute;pointer-events:none;min-width:150px;max-width:calc(100% - 12px);padding:9px 11px;border:1px solid #2b4058;border-radius:10px;background:#070c13f5;z-index:3}
.ce-overview-chart-tip[hidden]{display:none}
.ce-overview-chart-tip time,.ce-overview-chart-tip span{display:block;color:#8291a5;font-size:13px;line-height:1.5}
.ce-overview-chart-tip b{display:block;font-size:16px;margin:3px 0;font-variant-numeric:tabular-nums}
#ceChartDates{margin:6px 0 0;gap:16px;color:#718197;font-size:13px}
#ceChartDates span:last-child{text-align:right}
#ceChartHelp{display:block;margin-top:12px;color:#8291a5;font-size:13px;line-height:1.6}
.ce-chart-touch-help{display:none}
.ce-chart-explanation{font-size:13px;line-height:1.65;color:#819cbd;margin:9px 0 0;max-width:660px}
.is-revealing .ce-chart-line{stroke-dasharray:1;animation:ce-chart-draw .9s ease-out both}
.is-revealing .ce-chart-area{animation:ce-chart-fade .8s ease-out both}
@keyframes ce-chart-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes ce-chart-fade{from{opacity:0}to{opacity:1}}
@media(pointer:coarse),(max-width:800px){.ce-chart-mouse-help{display:none}.ce-chart-touch-help{display:inline}}
@media(max-width:800px){.ce-overview-plot{height:240px}.ce-chart-axis{font-size:13px}#ceChartDates{font-size:13px}.ce-chart-explanation{font-size:13px}}
@media(prefers-reduced-motion:reduce){.is-revealing .ce-chart-line,.is-revealing .ce-chart-area{animation:none}}

/* Measured slippage stays readable beside the two amounts on narrow screens. */
.ce-signal-slippage b{font-variant-numeric:tabular-nums;white-space:nowrap}
.ce-slippage-report{margin:20px 0 8px;padding-top:16px;border-top:1px solid #283b51}
.ce-slippage-report h3{margin:0 0 12px;font-size:16px}
@media(max-width:800px){#ceAccountMain #attempts .ce-data-table td.ce-signal-slippage{grid-column:1/-1}}

/* Durable exit queue and ownership warnings. */
.ce-exit-control-list{display:grid;gap:12px}.ce-exit-control-list article{display:grid;gap:8px;padding:18px;border:1px solid #30455b;border-radius:14px;overflow-wrap:anywhere}.ce-exit-control-list article small,.ce-exit-control-list article span{color:#92a8bd;line-height:1.5}.ce-exit-control-list article b{color:#a9c9ec}.ce-exit-control-list .ce-exit-orphan{border-color:#86633f}.ce-exit-control-list .ce-exit-orphan b{color:#edc48d}@media(max-width:600px){.ce-exit-control-list article{padding:16px}.ce-exit-mode{align-items:start}}

/* Exit control is a separate journal view; residuals are informational. */
.ce-exit-filter{margin:20px 0}.ce-exit-status{padding:16px 18px;margin:16px 0;border:1px solid #30455b;border-radius:12px;color:#c5d8e9;line-height:1.5}.ce-exit-residuals{margin-top:20px;padding:18px;border:1px solid #30455b;border-radius:14px}.ce-exit-residuals summary{cursor:pointer;line-height:1.5;font-weight:650;color:#b8cde0}.ce-exit-residuals>p,.ce-exit-note{color:#92a8bd;line-height:1.6;font-size:14px}.ce-exit-control a{color:#9dcefa}.ce-exit-residuals .ce-exit-control-list{margin-top:16px}#ceScreen-journal .ce-screen-tabs a{font-size:14px;line-height:1.3;min-height:44px}@media(max-width:600px){.ce-exit-residuals{padding:16px}.ce-exit-filter{align-items:start}}
.ce-exit-partial{padding:18px;margin:16px 0;border:1px solid #86633f;border-radius:14px;overflow-wrap:anywhere}.ce-exit-partial p{color:#b8cde0;line-height:1.5}
