.sell-manager{--sell-line:var(--line,#213654);--sell-muted:var(--muted,#8798b6);--sell-card:var(--card,#10213b);--sell-accent:#0ba5b3;color:var(--text,#e9effa);max-width:980px;margin:auto;padding:18px 16px 110px;box-sizing:border-box}
.sell-manager [hidden]{display:none!important}
.sell-manager button{width:auto}.sell-heading>div{flex-shrink:0}.sell-heading h2{white-space:nowrap}.sell-heading>button{margin:0;flex:0 0 auto}
.sell-manager *{box-sizing:border-box}.sell-manager h2,.sell-manager h3{margin:0}.sell-manager h2{font-size:25px;margin-top:4px}.sell-manager h3{font-size:17px;margin-bottom:16px}.sell-heading,.sell-toolbar,.sell-own-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.sell-heading small,.sell-hint,.sell-footnote,.sell-position small,.sell-current small{color:var(--sell-muted)}
.sell-manager button,.sell-manager select,.sell-manager input{font:inherit}.sell-manager button{cursor:pointer;border:1px solid var(--sell-line);border-radius:10px;background:transparent;color:inherit;padding:11px 14px;min-height:42px}.sell-manager button:disabled{opacity:.45;cursor:default}.sell-manager button:focus-visible,.sell-manager input:focus-visible,.sell-manager select:focus-visible{outline:2px solid #28bac7;outline-offset:2px}.sell-notice{background:#123b4580;border:1px solid #1c6675;border-radius:10px;padding:10px 13px;font-size:12px;line-height:1.5}.sell-status{font-size:12px;color:var(--sell-muted);padding:12px 0;min-height:44px;overflow-wrap:anywhere}.sell-status.error{color:#ff9b90}
.sell-toolbar{margin:2px 0 12px}.sell-tabs{display:flex;gap:4px}.sell-tabs button{font-size:13px;border:0;padding:9px 12px}.sell-tabs button.on{background:var(--sell-card);color:#43c5d0}.sell-toolbar label{font-size:12px;color:var(--sell-muted);white-space:nowrap}.sell-manager select{border:1px solid var(--sell-line);border-radius:8px;background:var(--sell-card);color:inherit;padding:8px 10px}.sell-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:22px;align-items:start}.sell-book{border-top:1px solid var(--sell-line)}
.sell-book-head,.sell-row{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;text-align:right}.sell-book-head{font-size:12px;color:var(--sell-muted);padding:16px 8px}.sell-book-head>:first-child,.sell-row>:first-child{text-align:left}.sell-manager .sell-row{width:100%;position:relative;border:0;border-radius:0;min-height:44px;padding:12px 8px;background:linear-gradient(to left,#ce574120 0 var(--depth),transparent var(--depth));font-variant-numeric:tabular-nums;font-size:15px}.sell-row>:first-child{color:#ef766b;font-weight:600}.sell-row:hover{outline:1px solid #ad5a49;outline-offset:-1px}.sell-current{border-top:1px solid var(--sell-line);border-bottom:1px solid var(--sell-line);padding:18px 8px;display:flex;gap:10px;justify-content:space-between;align-items:end}.sell-current small{display:block;font-size:12px;margin-bottom:7px}.sell-current strong{font-size:23px;color:#41c7b3;letter-spacing:-.5px}.sell-current>span{font-size:12px;color:var(--sell-muted);padding-bottom:3px}.sell-hint{font-size:12px;line-height:1.65;margin:12px 0}.sell-entry{background:var(--sell-card);border:1px solid var(--sell-line);border-radius:14px;padding:18px}.sell-entry label{display:block;font-size:13px;margin:14px 0 8px}.sell-entry input{display:block;width:100%;margin-top:8px;background:transparent;border:1px solid var(--sell-line);border-radius:10px;color:inherit;padding:12px;font-size:16px;min-height:48px;text-align:right;min-width:0}.sell-entry select{display:block;width:100%;margin-top:8px}.sell-entry input::placeholder{font-size:14px}
.sell-percent-row{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.sell-entry .sell-percent-row>label{margin:0;font-size:13px;white-space:nowrap;flex:0 0 auto}
.sell-percent-field{display:flex;align-items:center;gap:5px;flex:1 1 80px;min-width:80px}
.sell-entry .sell-percent-field input{width:100%;margin:0;padding:9px 8px;min-height:44px;font-size:16px}
.sell-percent-field>span{font-size:14px;color:var(--sell-muted)}
.sell-manager #sellPercentApply{min-height:44px;margin:0;padding:9px 14px;font-size:13px;flex:0 0 auto}
.sell-percent-hint{font-size:12px;line-height:1.5;color:var(--sell-muted);margin:6px 0 12px}
.sell-percent-hint.error{color:#ff9c91}
.sell-estimate{margin:22px 0 12px;font-size:12px}.sell-estimate>div{display:flex;align-items:start;justify-content:space-between;gap:10px;margin:13px 0}.sell-estimate dt{color:var(--sell-muted);flex-shrink:0}.sell-estimate dd{margin:0;text-align:right;line-height:1.5;overflow-wrap:anywhere}.sell-estimate>div:last-child dd{font-size:17px;font-weight:600}.sell-manager .sell-primary{background:#007e8d;color:#fff;border-color:transparent;width:100%;font-weight:600}.sell-own-heading{margin:28px 0 12px}.sell-own-heading h3{margin:0}.sell-own-heading button{font-size:12px}.sell-position{border:1px solid var(--sell-line);border-radius:12px;padding:16px;margin:10px 0}.sell-position strong{font-size:15px;display:block;margin-bottom:6px}.sell-position small{font-size:12px;display:block}.sell-position p{font-size:13px;line-height:1.7;margin:12px 0}.sell-position-actions{display:flex;gap:8px;margin-top:12px}.sell-position-actions button{font-size:12px;flex:1}.sell-empty{font-size:13px;color:var(--sell-muted);text-align:center;padding:48px 12px}.sell-footnote{font-size:12px;line-height:1.8;border-top:1px solid var(--sell-line);padding-top:18px;margin-top:22px}.sell-setup{border:1px solid #8b743d;border-radius:10px;padding:12px;font-size:13px;line-height:1.6;margin-bottom:14px}.sell-setup p{margin:0}.sell-setup button{width:100%;margin-top:10px}.sell-busy button:not([value]),.sell-busy input,.sell-busy select{pointer-events:none;opacity:.6}.sell-manager dialog{color:inherit;background:var(--sell-card);border:1px solid var(--sell-line);border-radius:18px;width:min(92vw,480px);padding:24px;max-height:90vh}.sell-manager dialog::backdrop{background:#000a}.sell-manager dialog pre{font:inherit;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.sell-review-buttons{display:flex;gap:10px;margin-top:20px}.sell-review-buttons button{flex:1}.sell-review-buttons .sell-primary{width:auto}
@media(max-width:640px){.sell-layout{grid-template-columns:1fr;gap:12px}.sell-manager{padding:18px 15px 100px}.sell-current strong{font-size:22px}.sell-entry{padding:16px}.sell-book .sell-hint{margin:9px 4px}.sell-heading{margin-bottom:14px}.sell-toolbar{gap:5px}}

.transaction-progress{padding:14px;margin:12px 0;border:1px solid #247b90;border-radius:12px;background:#10283d;color:#dcefff;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}.transaction-progress[hidden]{display:none}.transaction-progress[data-state="done"]{border-color:#32b68a}.transaction-progress[data-state="failed"],.transaction-progress[data-state="unknown"]{border-color:#d2a84b}

/* Recovery availability is also written in text; motion is optional. */
.sell-manager .sell-recoverable{border-color:#2fc995}
.sell-position .sell-recovery-label{color:#64e0b1}
.sell-recovery-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#42dc9d;margin-right:7px;vertical-align:middle;box-shadow:0 0 7px #42dc9d80;animation:sell-recovery-pulse 2s ease-in-out infinite}
@keyframes sell-recovery-pulse{0%,100%{opacity:1}50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.sell-recovery-dot{animation:none}}
