/* Scoped trading, exchange, learning and referral extensions. Brand/nav remain unchanged. */
#phone .cp-order-inline{grid-column:1/-1;min-width:0;margin:-3px 0 14px}
#phone .cp-order-inline:empty{display:none}
#phone .cp-inline-modal{max-height:none;overflow:visible;border:1px solid var(--cp-border);border-radius:16px;box-shadow:none;overscroll-behavior:auto}
#phone .cp-inline-modal .cp-modal-head{position:static;border-radius:16px 16px 0 0}
#phone .cp-inline-modal .cp-footer{position:static;margin-top:20px;box-shadow:none}
#phone .cp-asset-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--cp-border)}
#phone .cp-asset-row .cp-icon{min-width:44px}
#phone .cp-asset-row .cp-asset-option{flex:1;border:0;min-width:0}
#phone .cp-asset-row .cp-asset-option strong{min-width:0;overflow-wrap:anywhere}
#phone .cp-asset-row .cp-asset-option>span{margin-left:8px;flex-shrink:0}
#phone .cp-leverage-control{margin:18px 0 6px}
#phone .cp-leverage-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:14px;font-weight:600}
#phone .cp-leverage-head strong{font-size:20px;font-variant-numeric:tabular-nums}
#phone .cp-leverage-row{display:flex;align-items:center;gap:8px}
#phone .cp-leverage-row input{flex:1;min-width:0}
#phone .cp-lev-adjust{width:44px;min-width:44px;min-height:44px;border:1px solid var(--cp-edge);background:var(--cp-soft);border-radius:10px;color:var(--cp-text);font-size:22px}
#phone .cp-protection-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
#phone .cp-protection-heading h3{margin:0}
#phone .cp-toggle{min-width:74px;min-height:44px;padding:6px 10px;border-radius:12px;border:1px solid var(--cp-edge);background:var(--cp-soft);color:var(--cp-muted);font-size:13px;font-weight:600}
#phone .cp-toggle[aria-pressed="true"]{background:var(--cp-tint);border-color:var(--cp-accent);color:var(--cp-accent)}
#phone .cp-chart-markers{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;border:1px dashed var(--cp-accent);background:var(--cp-tint);padding:9px;border-radius:12px;margin:-8px 0 10px}
#phone .cp-chart-markers span{display:flex;justify-content:space-between;gap:4px;font-size:11px;font-variant-numeric:tabular-nums}
#phone .cp-chart-markers b{font-weight:500;color:var(--cp-muted)}
#phone .v5-contract-back,#phone .v5-order-fund{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--cp-muted);font-size:12px;margin-bottom:10px}
#phone .v5-order-fund{padding:10px;border:1px solid var(--cp-border);border-radius:12px;background:var(--cp-tint)}
#phone .v5-page{color:var(--cp-text);font-size:14px;line-height:1.55;padding-bottom:12px}
#phone .v5-page h1{font-size:22px;line-height:1.35;letter-spacing:0}
#phone .v5-page h3{font-size:15px;line-height:1.5}
#phone .v5-page p{margin:0}
#phone .v5-disclaimer,#phone .v5-hint{font-size:12px;line-height:1.65;color:var(--cp-muted);margin:8px 0 14px!important}
#phone .v5-disclaimer{border-left:3px solid var(--cp-accent);padding-left:10px}
#phone .v5-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:var(--cp-soft);border-radius:12px;padding:4px;margin:12px 0}
#phone .v5-switch button{min-height:44px;border-radius:9px;color:var(--cp-muted);font-weight:600}
#phone .v5-switch button.active{color:var(--cp-accent);background:var(--cp-card);box-shadow:0 1px 6px #14283012}
#phone .v5-link{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;color:var(--cp-accent);font-size:13px;font-weight:600;text-align:center}
#phone .v5-pending{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--cp-tint);padding:8px 12px;border-radius:12px;margin:12px 0;font-size:12px;overflow-wrap:anywhere}
#phone .v5-token-card,#phone .v5-quote-card{border-radius:18px;background:var(--cp-soft);padding:16px;margin:12px 0;border:1px solid var(--cp-border)}
#phone .v5-token-top,#phone .v5-token-bottom,#phone .v5-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
#phone .v5-token-top{font-size:13px;color:var(--cp-muted)}
#phone .v5-token-bottom{font-size:11px;line-height:1.5;color:var(--cp-muted);align-items:flex-start;flex-wrap:wrap;margin-top:10px}
#phone .v5-token-bottom>span:last-child{text-align:right;margin-left:auto}
#phone .v5-token-main{display:flex;align-items:center;gap:8px;margin-top:14px;min-width:0}
#phone .v5-token-main input,#phone .v5-token-main output{border:0;background:transparent;color:var(--cp-text);font-size:27px;font-weight:600;line-height:1.3;min-width:0;flex:1;max-width:100%;font-variant-numeric:tabular-nums}
#phone .v5-token-main input:focus-visible{outline-offset:2px}
#phone .v5-token-button{background:var(--cp-card);border:1px solid var(--cp-edge);border-radius:24px;padding:4px 11px;min-height:44px;min-width:88px;font-weight:600;white-space:nowrap}
#phone .v5-flip-wrap{display:flex;justify-content:center;height:10px;position:relative;z-index:1}
#phone .v5-flip{min-width:48px;min-height:48px;background:var(--cp-card);border:1px solid var(--cp-edge);border-radius:50%;font-size:21px;transform:translateY(-19px)}
#phone .v5-quote-card{background:var(--cp-card)}
#phone .v5-quote-card .v5-row{font-size:12px;color:var(--cp-muted)}
#phone .v5-quote-card .v5-row strong{color:var(--cp-text);font-size:15px}
#phone .v5-quote-card h3{margin:8px 0 12px}
#phone .v5-quote-card h3 small{display:block;color:var(--cp-muted);font-size:11px;font-weight:400}
#phone .v5-quote-card summary,#phone .v5-rules summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:13px;font-weight:600}
#phone .v5-quote-card details{margin-top:12px;border-top:1px solid var(--cp-border)}
#phone .v5-quote-card .kv,#phone .v5-job-sheet .kv,#phone .v5-level-card .kv{font-size:12px;gap:8px}
#phone .v5-quote-card .kv strong,#phone .v5-job-sheet .kv strong{max-width:60%;overflow-wrap:anywhere}
#phone .v5-error{font-size:12px;color:var(--cp-down);line-height:1.5}
#phone .v5-page .sticky-action{background:linear-gradient(transparent,var(--cp-bg) 14px)}
#phone .v5-picker{display:grid;gap:10px}
#phone .v5-picker .text-field{background:var(--cp-soft);color:var(--cp-text);font-size:16px}
#phone .v5-chip-scroll{display:flex;gap:6px;overflow:auto;scrollbar-width:thin;padding-bottom:3px}
#phone .v5-chip{flex:none;min-height:44px;padding:5px 11px;border-radius:10px;background:var(--cp-soft);color:var(--cp-muted);font-size:12px;border:1px solid var(--cp-border)}
#phone .v5-chip.selected{background:var(--cp-tint);border-color:var(--cp-accent);color:var(--cp-accent)}
#phone .v5-choice{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:4px;padding:12px;border:1px solid var(--cp-border);background:var(--cp-card);border-radius:12px;min-height:62px}
#phone .v5-choice.selected{border-color:var(--cp-accent);background:var(--cp-tint)}
#phone .v5-choice strong{font-size:14px;font-weight:600;line-height:1.4}
#phone .v5-choice small{font-size:12px;color:var(--cp-muted);line-height:1.5}
#phone .v5-choice strong small{font-size:12px;font-weight:400}
#phone .v5-job-sheet .secondary{margin-top:8px}
#phone .v5-job-sheet .primary{margin-top:20px}
#phone .v5-permission{padding:12px;border:1px solid var(--cp-border);border-radius:12px;margin:14px 0}
#phone .v5-reward{padding:20px;border-radius:20px;background:var(--cp-tint);border:1px solid var(--cp-border)}
#phone .v5-overline{display:block;font-size:11px;letter-spacing:.06em;color:var(--cp-accent);font-weight:600;margin-bottom:8px}
#phone .v5-reward p{font-size:12px;color:var(--cp-muted);line-height:1.7;margin:10px 0 16px}
#phone .v5-progress{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:8px}
#phone .v5-reward progress{width:100%;height:10px;accent-color:var(--cp-accent)}
#phone .v5-task{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid var(--cp-border)}
#phone .v5-task-num{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--cp-tint);color:var(--cp-accent);font-weight:600}
#phone .v5-task p,#phone .v5-task small{font-size:12px;color:var(--cp-muted);line-height:1.6}
#phone .v5-task .v5-link{max-width:70px;line-height:1.2}
#phone .v5-rules{margin:18px 0;color:var(--cp-muted);font-size:12px;line-height:1.7}
#phone .v5-level-card{background:var(--cp-tint);border:1px solid var(--cp-border);border-radius:16px;padding:16px;margin-top:20px}
#phone .v5-level-card p,#phone .v5-referral .v5-hint{font-size:12px;color:var(--cp-muted);line-height:1.7}
#phone .v5-level-track{height:8px;border-radius:8px;background:var(--cp-border);margin:12px 0 18px}
#phone .v5-level-track span{display:block;width:0;height:100%}
#phone .v5-empty{border:1px dashed var(--cp-border);background:var(--cp-soft);padding:18px;border-radius:14px;color:var(--cp-muted);font-size:12px;line-height:1.7}
#phone .v5-funding-check{margin-top:18px;padding:12px;border-radius:12px;background:var(--cp-tint);font-size:12px}
#phone .v5-funding-check p{line-height:1.6}
#phone .v5-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#phone .cp-modal .cp-details summary{min-height:44px}
@media(max-width:365px){#phone .v5-task{grid-template-columns:28px minmax(0,1fr)}#phone .v5-task .v5-link{grid-column:2;justify-self:start}#phone .v5-token-bottom>span:last-child{text-align:left;margin-left:0}}
@media(prefers-reduced-motion:reduce){#phone .v5-flip{transform:translateY(-19px)}#phone .cp-order-inline *{animation:none!important;scroll-behavior:auto!important}}
