/* Trade X — feature workspace (js/suite.js). Site tokens only; no new palette. */
.sx-wrap{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:start}
.sx-side{position:sticky;top:112px;max-height:calc(100vh - 140px);max-height:calc(100dvh - 140px);overflow-y:auto;display:flex;flex-direction:column;gap:2px;padding-bottom:12px}
.sx-side-h{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--text3);padding:4px 12px 8px}
.sx-cat{font-size:11px;font-weight:700;color:var(--text3);padding:12px 12px 4px;border-top:1px solid var(--border);margin-top:6px}
.sx-cat:first-of-type{border-top:0;margin-top:0}
.sx-item{display:block;width:100%;text-align:left;padding:8px 12px;border-radius:9px;color:var(--text2);font-size:13px;font-weight:500}
.sx-item:hover{background:var(--surface2);color:var(--text)}
.sx-item.on{background:var(--surface3);color:var(--text);font-weight:700}
.sx-side-f{padding:14px 12px 0;font-size:12px}
.sx-side-f a{color:var(--accent);cursor:pointer;font-weight:700}
.sx-main{min-width:0}
.sx-head{margin-bottom:12px}
.sx-head h2{font-size:clamp(22px,3vw,30px);margin:6px 0 6px}
.sx-sub{color:var(--text2);font-size:13px;line-height:1.7;margin:4px 0 10px}
.sx-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px 18px;margin:12px 0}
.sx-card h4{font-size:15px;margin:0 0 8px;font-weight:700}
.sx-kv{display:flex;justify-content:space-between;gap:14px;font-size:13px;color:var(--text2);padding:7px 0;border-bottom:1px dashed var(--border)}
.sx-kv b{color:var(--text);font-weight:600;text-align:right;font-family:var(--ff-mono)}
.sx-kv b .badge{font-family:var(--ff)}
.sx-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.sx-li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;padding:9px 12px;background:var(--surface2);border-radius:10px}
.sx-li.unread{border-left:3px solid var(--accent)}
.sx-li small{color:var(--text3);font-size:11.5px}
.sx-li .btn{padding:5px 10px;font-size:12px}
.sx-grow{flex:1;min-width:180px;word-break:break-word}
.sx-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0 10px;font-size:13px;color:var(--text2)}
.sx-toolbar .btn{padding:6px 12px;font-size:12.5px}
.sx-row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}
.sx-check{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text2);padding:6px 0;cursor:pointer}
.sx-hint{display:block;color:var(--text3);font-size:11.5px;margin-top:4px}
.sx-out{margin-top:12px}
.sx-status{font-size:16px;font-weight:700;padding:12px 14px;border-radius:10px;margin-bottom:8px}
.sx-status.ok{background:var(--up-soft);color:var(--up)}
.sx-status.warn{background:var(--warn-soft);color:var(--warn)}
#view-suite .field select{background:none;border:none;color:var(--text);font-family:inherit;font-size:14px;width:100%;outline:none}
#view-suite .field select option{background:var(--surface);color:var(--text)}
#view-suite .field input[type=file]{font-size:12.5px;color:var(--text2);width:100%}
@media(max-width:900px){.sx-wrap{grid-template-columns:minmax(0,1fr)}.sx-side{position:static;max-height:none;flex-direction:row;flex-wrap:wrap;gap:6px}.sx-cat{width:100%}.sx-item{width:auto;background:var(--surface2)}}
@media(max-width:680px){.sx-row3{grid-template-columns:minmax(0,1fr)}}
.sx-cam video{width:100%;max-width:480px;border-radius:12px;background:#000;display:block}
.sx-step{font-weight:700;margin:10px 0;color:var(--accent)}
.sx-shots{display:flex;gap:8px;flex-wrap:wrap}.sx-shots img{width:120px;border-radius:8px;border:1px solid var(--border)}
.sx-files{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.sx-files .btn{padding:5px 10px;font-size:12px}
.sx-preview img{max-width:100%;border-radius:10px;margin-top:8px}.sx-preview iframe{width:100%;height:420px;border:1px solid var(--border);border-radius:10px;margin-top:8px}
.sx-mini{width:110px;background:var(--surface2);border:1px solid var(--border);border-radius:7px;padding:4px 8px;color:var(--text);font-family:var(--ff-mono);font-size:12.5px}
.sx-rule{padding:10px 0;border-bottom:1px dashed var(--border)}.sx-rule:last-of-type{border-bottom:0}.sx-rule .sx-check{padding:2px 0 6px}
.sx-adl{display:inline-flex;gap:2px;vertical-align:middle}.sx-adl i{display:inline-block;width:6px;height:12px;border-radius:2px;background:var(--surface3)}.sx-adl i.on{background:var(--warn)}
.sx-scroll{overflow-x:auto;margin:6px 0}
.sx-tbl{width:100%;border-collapse:collapse;font-size:12.5px;font-family:var(--ff-mono)}
.sx-tbl th,.sx-tbl td{padding:6px 8px;text-align:right;border-bottom:1px solid var(--border);white-space:nowrap}
.sx-tbl th{color:var(--text3);font-weight:600;font-family:var(--ff)}.sx-tbl tr.sub th{text-align:center;font-size:11.5px}
.sx-tbl td.itm{background:var(--surface2)}.sx-tbl td.worst{color:var(--down);font-weight:700}
.sx-chain td.k,.sx-chain th.k{text-align:center;color:var(--text);font-weight:700;background:var(--surface3)}
.sx-chain td.pick{cursor:pointer;color:var(--accent)}.sx-chain td.pick:hover{background:var(--surface3)}
.sx-leg{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:6px 0;border-bottom:1px dashed var(--border)}
.sx-leg select{background:var(--surface2);border:1px solid var(--border);border-radius:7px;padding:4px 8px;color:var(--text);font-size:12.5px}
.sx-leg .btn{padding:4px 10px}
.sx-chart{width:100%;height:auto;display:block;margin:10px 0 4px;background:var(--surface2);border-radius:10px}
.sx-chart path{fill:none;stroke-width:2}.sx-chart path.exp,.sx-chart path.surf{stroke:var(--accent)}.sx-chart path.scen{stroke:var(--text2);stroke-dasharray:5 4}
.sx-chart line.ax{stroke:var(--border);stroke-width:1}.sx-chart line.now,.sx-chart line.scen-x{stroke:var(--text3);stroke-width:1;stroke-dasharray:3 3}
.sx-chart text{fill:var(--text3);font-size:11px;font-family:var(--ff-mono)}
.sx-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11.5px;color:var(--text3);margin-bottom:6px}
.sx-legend span::before{content:'';display:inline-block;width:14px;height:2px;margin-right:6px;vertical-align:middle;background:var(--text3)}
.sx-legend span.exp::before,.sx-legend span.surf::before{background:var(--accent)}.sx-legend span.scen::before{background:var(--text2)}
#view-suite input[type=range]{width:100%;accent-color:var(--accent)}
/* D-102 chart tools */
.sx-chartbox{position:relative;width:100%;height:460px;margin:6px 0 2px;background:var(--surface2);border-radius:10px;overflow:hidden}
.sx-credit{margin:2px 0 8px;font-size:10.5px;color:var(--text3)}.sx-credit a{color:inherit}
#view-suite textarea.sx-code{width:100%;box-sizing:border-box;font-family:var(--ff-mono);font-size:12.5px;line-height:1.5;padding:10px 12px;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:10px;resize:vertical;tab-size:2}
.sx-widget{display:block;width:100%;border:1px solid var(--border);border-radius:10px;background:var(--surface2)}
@media(max-width:680px){.sx-chartbox{height:340px}}
/* D-103 custody */
.sx-steps{margin:4px 0 10px;padding-left:20px;font-size:13px;color:var(--text2);line-height:1.7}.sx-steps li{margin:3px 0}
#view-suite .sx-li input[data-wdn]{margin-top:6px;width:100%;max-width:360px}
/* D-104 P2P and OTC */
.sx-seg{display:inline-flex;gap:4px}
.sx-toolbar select{background:var(--surface2);border:1px solid var(--border);border-radius:7px;padding:5px 8px;color:var(--text);font-size:12.5px}
.sx-li.on{box-shadow:inset 0 0 0 1px var(--accent)}
.sx-px{font-family:var(--ff-mono);font-size:15px;color:var(--text)}
.sx-p2form{flex-basis:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end;padding-top:10px;border-top:1px dashed var(--border)}
.sx-p2form[hidden]{display:none}
.sx-chat{max-height:340px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:10px;background:var(--surface2);border-radius:10px;margin:8px 0}
.sx-chat-ev{align-self:center;font-size:11.5px;color:var(--text3);text-align:center}
.sx-chat-m{max-width:78%;align-self:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:6px 10px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.sx-chat-m.me{align-self:flex-end;border-color:var(--accent)}
.sx-chat-m small{display:block;color:var(--text3);font-size:11px;margin-bottom:2px}
.sx-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.sx-chips .btn{padding:4px 10px;font-size:12px}
.sx-send{display:flex;gap:8px;align-items:end}.sx-send .field{flex:1;min-width:0;margin:0}
.sx-checks{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--text2)}.sx-checks label{display:flex;align-items:center;gap:6px;cursor:pointer}
.sx-desk{font-family:var(--ff-mono);font-size:20px;letter-spacing:.06em;color:var(--text)}
@media(max-width:680px){.sx-p2form{grid-template-columns:minmax(0,1fr)}.sx-chat-m{max-width:92%}}
/* D-105 earn and loans */
.sx-bar{height:6px;background:var(--surface3);border-radius:4px;overflow:hidden;margin-top:6px}.sx-bar i{display:block;height:100%;background:var(--accent)}
.sx-ltv{position:relative;height:10px;background:var(--surface3);border-radius:5px;margin:10px 0 24px}
.sx-ltv i{position:absolute;left:0;top:0;bottom:0;border-radius:5px;background:var(--up)}.sx-ltv i.call{background:#e0a33a}.sx-ltv i.liquidate{background:var(--down)}
.sx-ltv b{position:absolute;top:-3px;width:2px;height:16px;background:var(--text3)}
.sx-ltv b span{position:absolute;top:16px;left:-16px;font-size:10px;color:var(--text3);font-weight:400;white-space:nowrap;font-family:var(--ff)}
.sx-cal-day{font-size:12px;color:var(--text3);margin:12px 0 4px;font-weight:600}
