/* Trading desk. Price, ownership and performance share one reading order. */
.ad-product.desk29 {
  --desk-surface:#161b26;
  --desk-line:#ffffff14;
  --desk-muted:#aab3c5;
  --muted-copy:var(--desk-muted);
  --desk-positive:#40dcb1;
  --desk-negative:#ff808b;
  --desk-brand:#ff539e;
  color:#f6f7fb;
}
.desk29 :is(.ad-market,.ad-ticket,.ad-context-card) {
  background:var(--desk-surface);
  border:1px solid var(--desk-line);
  border-radius:16px;
  min-width:0;
}
.ad-product.desk29 .ad-market {
  background:linear-gradient(155deg,color-mix(in srgb,var(--mineral) 9%,#161b26),#161b26 34%);
  padding:0;
  scroll-margin-top:86px;
  --plot-height:clamp(210px,18vw,300px);
}
.desk29 .ad-breadcrumb{min-width:0}
.desk29 .ad-tools{margin-inline-start:auto}
.desk29 .ad-tools button{border-radius:12px;color:#c8d1e0}
.desk29 #asset-compare{color:#d5dcea}
.desk29 .desk-identity {
  display:flex;align-items:center;gap:14px;
  padding:var(--desk-gutter) var(--desk-gutter) 0;
}
.desk29 .desk-identity img {
  object-fit:contain;flex:none;width:64px;height:64px;
  filter:drop-shadow(0 5px 10px #0004);
}
.desk29 .desk-title {min-width:0;flex:1}
.desk29 .desk-title h1 {font-size:clamp(1.15rem,1.9vw,1.55rem);line-height:1.55;margin:0;overflow-wrap:anywhere}
.desk29 .desk-title p,.desk29 .desk-title summary {color:var(--desk-muted);font-size:.86rem;margin:0}
.desk29 .desk-title summary {min-height:34px;flex-wrap:wrap;gap:1px 12px}
.desk29 .desk-title summary span:last-child {display:inline-flex;align-items:center;gap:4px;color:#f5c4de}
.desk29 .ad-siblings nav {margin-top:7px;max-height:260px;padding:4px 12px;background:#0d1018;border-radius:12px}
.desk29 .ad-siblings a{gap:8px;flex-wrap:wrap;padding:7px 0}
.desk29 .ad-siblings a:first-child{border-top:0}
.desk29 .desk-identity .ai-trigger{margin-inline-start:auto;align-self:flex-start;min-height:44px;min-width:44px}
.desk29 .desk-quote{padding:18px var(--desk-gutter) 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:14px}
.desk29 .desk-caption{grid-column:1/-1;font-size:.87rem;color:var(--desk-muted)}
.ad-product.desk29 .ad-value{max-width:none;margin:0;gap:7px;line-height:1.45;overflow-wrap:anywhere}
.ad-product.desk29 .ad-value bdi{font-size:clamp(1.85rem,3vw,2.65rem);font-weight:740;letter-spacing:-.018em}
.desk29 .ad-value small{font-size:.88rem;font-weight:450;color:#c8d0df}
.desk29 .desk-move {display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:.79rem;color:var(--desk-muted)}
.desk29 .desk-move .change{display:inline-block;font-size:.96rem;font-weight:660;background:#ffffff08;padding:2px 10px;border-radius:40px}
.desk29 .desk-move .positive{color:var(--desk-positive);background:#40dcb117}
.desk29 .desk-move .negative{color:var(--desk-negative);background:#ff808b17}
.desk29 :is(.desk-reference,.desk-source,.desk-status){grid-column:1/-1;font-size:.8rem;line-height:1.85;color:var(--desk-muted)}
.desk29 .desk-reference span{display:inline-block;margin-inline-end:12px}
.desk29 .desk-reference p,.desk29 .desk-status{color:#ffce8a;margin:5px 0}
.desk29 .ad-market>.desk-status{padding-inline:var(--desk-gutter)}
.desk29 .desk-source summary{display:flex;align-items:center;flex-wrap:wrap;gap:3px 8px;min-height:36px;cursor:pointer;list-style:none}
.desk29 .desk-source summary::-webkit-details-marker{display:none}
.desk29 .desk-source strong{color:#ffce8a;font-weight:550}
.desk29 .desk-source[open] summary svg{transform:rotate(180deg)}
.desk29 .desk-rate-detail{padding:10px 15px;background:#0d10187a;border-radius:12px}
.desk29 .desk-rate-detail p{margin:0}
.desk29 .desk-rate-detail dl{display:flex;gap:20px;flex-wrap:wrap;margin-block:4px}
.desk29 .desk-rate-detail dd{margin:0;color:#f6f7fb}
.ad-product.desk29 .ad-holding {margin:0 var(--desk-gutter);padding:15px 18px;border:1px solid #ffffff0c;background:#0d10189c;border-radius:13px}
.desk29 .ad-position-title{gap:12px}
.desk29 .ad-worth{text-align:left}
.desk29 .ad-allocation{order:-1;display:flex;align-items:center;gap:7px}
.desk29 .ad-position-title>div:first-child{order:-2}
.desk29 .ad-holding .ad-quantity,.desk29 .ad-holding .ad-worth b{font-size:1.18rem}
.desk29 .ad-holding #income-link{margin-top:8px;border-top:1px solid var(--desk-line);width:100%;justify-content:space-between}
.ad-product.desk29 .ad-chart{padding:22px var(--desk-gutter)}
.desk29 .ad-chart .chart-header{gap:7px}
.desk29 .ad-chart .chart-header h2{display:block}
.desk29 .ad-chart .periods{order:4;width:100%;justify-content:space-between;gap:2px;margin:6px 0 0;padding:3px;background:#0d1018aa;border-radius:13px}
.ad-product.desk29 .ad-chart .periods button{flex:1;min-width:0;min-height:41px;padding:2px;color:#b9c2d3;border-radius:10px;font-size:.85rem}
.ad-product.desk29 .ad-chart .periods button[aria-pressed=true]{color:#fff;background:#343d50;font-weight:650}
.desk29 .ad-chart .ax-tools{margin-inline-start:auto}
.desk29 .ad-chart .ax-tools button{border:1px solid var(--desk-line);border-radius:11px}
.desk29 .ad-chart .archive-bar{margin:8px 0 12px}
.desk-series-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;font-size:.8rem;color:#aab3c5}
.desk-series-row select{font:inherit;color:#f6f7fb;background:#232b39;border:1px solid #ffffff17;border-radius:10px;min-height:40px;max-width:100%;padding-inline:10px;cursor:pointer}
.desk-series-row details{margin-inline-start:auto}
.desk-series-row details[open]{width:100%}
.desk-series-row summary{cursor:pointer;line-height:40px}
.desk-series-row details p{margin:0;background:#0d101877;padding:10px 14px;border-radius:10px}
.desk-period-change{display:inline-block;margin-right:9px;font-size:.9rem;font-weight:600;color:#aab3c5}
.desk-period-change.gain{color:#40dcb1}
.desk-period-change.loss{color:#ff808b}
.desk29 .ad-chart .archive-bar p{font-size:.8rem;color:var(--desk-muted);line-height:1.7}
.desk29 .ad-chart .ax-frame{margin-block-start:16px}
.desk29 .ad-chart .ax-prices,.desk29 .ad-chart .chart-axis{color:#adb8cc}
.desk29 .ad-chart .ax-stats{border-top:1px solid var(--desk-line)}
.desk29 .ad-chart-note{font-size:.79rem;color:var(--desk-muted)}
.desk29 .ad-ticket .ad-input-wrap,.desk29 .ad-modes,.desk29 .ad-select{border-radius:12px;background:#0d1018}
.desk29 .ad-ticket .ad-input-wrap:focus-within{border-color:var(--desk-brand)}
.desk29 .ad-modes button{font-weight:620}
.desk29 .ad-presets button{border-radius:10px;background:#232b39;color:#dce3ef}
.desk29 .ad-ticket .ad-submit{border-radius:12px;min-height:49px;background:#ff539e;color:#260b1b}
.desk29 .ad-ticket:is([data-side=buy],[data-side=deposit]) .ad-submit{background:#40dcb1;color:#06251d}
.desk29 .ad-ticket:is([data-side=sell],[data-side=withdraw]) .ad-submit{background:#ff808b;color:#2b1018}
.desk29 .ad-ticket .ad-submit:disabled{background:#333b4b;color:#adb6c7;opacity:1}
.desk29 .ad-ticket .ad-error{color:#ff9aa4;line-height:1.7}
.desk29 .ad-practice{font-size:.78rem;color:var(--desk-muted)}
.desk29 #desk-close{display:none}
.desk29 :is(summary,button,a):focus-visible{outline:2px solid #ff87be;outline-offset:2px}
@media(min-width:761px){
  .ad-product.desk-readonly{grid-template-rows:auto auto 1fr}
  .ad-product.desk-readonly .ad-market{grid-row:2/4}
  .ad-product.desk-readonly .ad-context>:first-child{grid-column:2;grid-row:2}
  .ad-product.desk-readonly .ad-context>:last-child{grid-column:2;grid-row:3}
}
@media(max-width:1030px){
  .desk29 .desk-quote{grid-template-columns:minmax(0,1fr);gap:3px}
  .desk29 .ad-position-title{flex-wrap:wrap}
  .desk29 .ad-allocation{width:100%;order:3;font-size:.78rem}
  .desk29 .ad-allocation .ad-weight{display:none}
  .desk29 .ad-allocation span:last-child{display:flex;flex-direction:row;align-items:center;gap:5px}
}
@media(max-width:760px){
  .ad-product.desk29 .ad-market{--plot-height:clamp(163px,45vw,245px)}
  .desk29 .desk-identity{gap:10px;padding-top:14px}
  .desk29 .desk-identity img{width:46px;height:46px}
  .desk29 .desk-identity .ai-trigger{padding:6px 9px;gap:5px}
  .desk29 .desk-identity .ai-trigger span{display:inline}
  .desk29 .desk-title h1{font-size:1.1rem}
  .desk29 .desk-title :is(summary,p){font-size:.77rem}
  .desk29 .desk-quote{padding-top:12px;padding-bottom:8px}
  .desk29 .desk-move{gap:7px}
  .desk29 .desk-move .change{font-size:.87rem}
  .desk29 .desk-caption,.desk29 .desk-source{font-size:.78rem}
  .ad-product.desk29 .ad-holding{padding:11px 13px}
  .desk29 .ad-holding .ad-quantity,.desk29 .ad-holding .ad-worth b{font-size:1.02rem}
  .ad-product.desk29 .ad-chart{padding-block:17px}
  .ad-product.desk29 .ad-chart .periods button{font-size:.78rem;min-height:41px}
  .ad-product.desk29:not(.desk-readonly){padding-bottom:calc(82px + env(safe-area-inset-bottom))}
  .ad-product.desk29 .ad-quick{
    position:fixed;inset:auto 0 0;display:flex;gap:9px;z-index:12;
    padding:12px max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
    background:#10141ff7;border-top:1px solid #ffffff15;box-shadow:0 -10px 30px #0003;
  }
  .desk29 .ad-quick button{min-height:48px;border:0;border-radius:12px;background:#313a4c;color:#f6f7fb;font-weight:660}
  .desk29 .ad-quick :is([data-desk-mode=buy],[data-desk-mode=deposit]){background:#40dcb1;color:#06251d}
  .desk29 .ad-quick :is([data-desk-mode=sell],[data-desk-mode=withdraw]){background:#542b37;color:#ffb2b9}
  .ad-product.desk29:not(.desk-order-open) .ad-ticket{display:none}
  .ad-product.desk29.desk-order-open.desk-ticket-visible .ad-quick{display:none}
  .ad-product.desk29.desk-order-open .ad-ticket{display:block;margin-top:14px;scroll-margin-top:74px}
  .desk29 #desk-close{display:inline-grid;place-items:center;min-width:44px;min-height:44px;border-radius:11px;background:#252d3c}
  .desk29 #desk-close span{font:24px/1 Arial;color:#f6f7fb}
  .desk29 .ad-ticket .ad-modes{display:flex;margin:10px 0 15px}
  .desk29 .ad-card-title{justify-content:flex-start}
  .desk29 .ad-card-title h2{font-size:1.05rem;flex:1}
  .desk29 .ad-ticket .ad-execution{font-size:.75rem}
}
@media(max-width:355px){
  .desk29 .desk-identity .ai-trigger span{display:none}
  .desk29 .desk-identity img{width:39px;height:39px}
  .desk29 .ad-tools{gap:0}
  .desk29 .ad-breadcrumb{font-size:.76rem}
  .desk29 .ad-tools button{min-width:38px}
  .desk29 #asset-compare{gap:3px;padding-inline:1px}
}

