/*@pf start style id=pf-cb-css */

/* Accessible colors: losses move from orange-red to pink so gains/losses stay distinguishable
   for red-green colorblindness. Tokens cover almost everything; the rest are hard-coded spots. */
:root[data-cb="1"], :root[data-cb="1"][data-theme="light"], :root[data-cb="1"][data-theme="dark"] { --red: #fc4680; --red-ink: #fc4680; }
html[data-cb="1"] .trade-done.sell { background: #fc4680; }
html[data-cb="1"] body #hpOrderTicket[data-side="sell"] .hp-order-tabs button.on::after { background: #fc4680; }
html[data-cb="1"] body #hpOrderTicket[data-side="sell"] .hp-review-order { background: #fc4680; color: #2b0014; }

/*@pf end */
/*@pf start style id=ap-css */

.pfs-val-chev{display:inline-flex;align-items:center;gap:6px}
.pfs-val-chev svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

#pfAppearancePage{--ap-pane:#f3f4f6;--ap-line:rgba(0,0,0,.28);position:fixed;inset:0;z-index:9600;background:var(--bg);color:var(--text);overflow-y:auto;overscroll-behavior:contain;padding:env(safe-area-inset-top,0px) 0 calc(32px + env(safe-area-inset-bottom,0px))}
:root[data-theme="dark"] #pfAppearancePage{--ap-pane:#191b1f;--ap-line:#7c7e82}
#pfAppearancePage[hidden]{display:none}
#pfAppearancePage .ap-wrap{max-width:640px;margin:0 auto}
#pfAppearancePage .ap-top{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;height:56px;padding:0 8px}
#pfAppearancePage .ap-back{width:44px;height:44px;border:0;background:none;color:var(--green-ink);cursor:pointer;display:grid;place-items:center;border-radius:50%;-webkit-tap-highlight-color:transparent}
#pfAppearancePage .ap-back:active{opacity:.5}
#pfAppearancePage .ap-back svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
html body #pfAppearancePage .ap-top h1{margin:0;text-align:center;font-family:"Capsule Sans Text",Inter,system-ui,sans-serif!important;font-size:17px!important;font-weight:500!important;line-height:24px!important;letter-spacing:-.255px!important;color:var(--text)}

/* live preview: gain (green) / loss (red or accessible pink) */
#pfAppearancePage .ap-prev{display:block;width:100%;margin:6px 0 0;padding:0;border:0;border-top:1px solid var(--ap-line);border-bottom:1px solid var(--ap-line);background:none;font:inherit;text-align:left;cursor:pointer;color:var(--green);transition:color .5s ease;-webkit-tap-highlight-color:transparent}
#pfAppearancePage .ap-prev.down{color:var(--red)}
#pfAppearancePage .ap-tick{display:block;height:38px;overflow:hidden;background:var(--ap-pane);border-bottom:1px solid var(--ap-line)}
#pfAppearancePage .ap-track{display:flex;width:max-content;height:100%;align-items:center;animation:ap-scroll 24s linear infinite}
#pfAppearancePage .ap-unit{display:flex;flex:none;align-items:center}
#pfAppearancePage .ap-item{display:inline-flex;align-items:center;gap:6px;padding-right:26px;white-space:nowrap;font-family:"Capsule Sans Text",Inter,system-ui,sans-serif;font-size:15px;font-weight:500;line-height:1}
#pfAppearancePage .ap-item .ap-arr{width:15px;height:15px}
@keyframes ap-scroll{to{transform:translateX(-50%)}}
#pfAppearancePage .ap-arr{flex:none;transition:transform .45s ease}
#pfAppearancePage .ap-arr path{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
#pfAppearancePage .ap-prev.down .ap-arr{transform:rotate(90deg)}

#pfAppearancePage .ap-chart{display:block;position:relative;height:124px;background:var(--ap-pane)}
#pfAppearancePage .ap-chart svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
#pfAppearancePage .ap-chart path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1}
#pfAppearancePage .ap-dot{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:currentColor}
#pfAppearancePage .ap-dot::before{content:"";position:absolute;inset:-7px;border-radius:50%;background:currentColor;opacity:.22}

#pfAppearancePage .ap-actions{display:grid;grid-template-columns:33.333% 1fr;height:101px;background:var(--ap-pane);border-top:1px solid var(--ap-line)}
#pfAppearancePage .ap-cell{display:grid;place-items:center}
#pfAppearancePage .ap-cell + .ap-cell{border-left:1px solid var(--ap-line)}
#pfAppearancePage .ap-circle,#pfAppearancePage .ap-trade{position:relative;display:grid;place-items:center;border:2px solid #000;background:currentColor;box-shadow:inset 0 -6px 0 rgba(0,0,0,.18),inset 0 3px 0 rgba(255,255,255,.3);transition:background-color .5s ease}
#pfAppearancePage .ap-circle{width:49px;height:49px;border-radius:50%}
#pfAppearancePage .ap-circle .ap-arr{width:23px;height:23px;color:#000}
#pfAppearancePage .ap-trade{width:min(166px,80%);height:49px;border-radius:999px;color:inherit}
#pfAppearancePage .ap-trade::before{content:"";position:absolute;left:14px;top:5px;width:30px;height:7px;border-radius:99px;background:rgba(255,255,255,.4);transform:rotate(-5deg)}
#pfAppearancePage .ap-trade b{font-family:"Capsule Sans Text",Inter,system-ui,sans-serif;font-size:20px;font-weight:500;letter-spacing:-.3px;color:#000}

#pfAppearancePage .ap-list{padding:0 20px;margin-top:6px}
html body #pfAppearancePage .pfs-row small.ap-on{color:var(--green-ink);font-weight:700!important}
#pfAppearancePage .ap-chev{width:20px;height:20px;flex:none;color:var(--muted);fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#pfAppearancePage div.pfs-row{cursor:pointer}

@media (prefers-reduced-motion:reduce){
  #pfAppearancePage .ap-track{animation:none}
  #pfAppearancePage .ap-prev,#pfAppearancePage .ap-arr,#pfAppearancePage .ap-circle,#pfAppearancePage .ap-trade{transition:none}
}

/*@pf end */
