/* Product identity, position, then a single interactive market plot. */
.ad-product.desk30 .ad-market {
  --art-size:clamp(112px,12vw,160px);
  --plot-height:clamp(210px,18vw,290px);
  border-radius:23px;
  background:radial-gradient(ellipse 48% 240px at 12% 5%,color-mix(in srgb,var(--mineral) 15%,transparent),transparent),
             linear-gradient(170deg,#1b202c,#131722 42%,#131722);
}
.desk30 .d30-hero {position:relative;min-height:calc(var(--art-size) + 38px)}
.desk30 .desk-identity {padding-top:16px}
.desk30 .desk-identity .d30-art {
  position:absolute;left:var(--desk-gutter);top:17px;width:var(--art-size);height:var(--art-size);
  filter:drop-shadow(0 14px 12px #0006);pointer-events:none;
}
.desk30 .desk-title h1 {font-size:clamp(1.2rem,2vw,1.62rem);line-height:1.4;color:#fff}
.desk30 .desk-title :is(summary,p),.desk30 .desk-title>h1 {max-width:calc(100% - var(--art-size) - 6px)}
.desk30 .desk-title summary {cursor:pointer;gap:7px;justify-content:flex-start;flex-wrap:nowrap;min-height:42px}
.desk30 .desk-title summary svg {flex:none;border-radius:50%;padding:4px;width:24px;height:24px;background:#ffffff10;color:#edf0f9}
.desk30 .ad-siblings nav {position:relative;z-index:1;margin:4px 0 12px;padding:4px 12px;background:#10141e;border:1px solid #ffffff19}
.desk30 .ad-siblings a {justify-content:flex-start;min-height:52px}
.desk30 .ad-siblings a img {width:34px;height:34px}
.desk30 .ad-siblings small {margin-inline-start:auto}
.desk30 .desk-quote {display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;padding-block:9px 13px}
.desk30 .desk-quote .desk-caption {width:100%;color:#bdc5d3}
.ad-product.desk30 .ad-value {width:calc(100% - var(--art-size));line-height:1.27}
.ad-product.desk30 .ad-value bdi {font-size:clamp(2.05rem,3.4vw,3rem)}
.desk30 .desk-move {flex:0 1 auto;gap:7px}
.desk30 .desk-quote .ad-value {flex-basis:100%}
.desk30 .desk-move .change {font-size:.9rem;padding:2px 9px}
.desk30 .desk-source {margin-inline-start:auto}
.desk30 .desk-source[open] {width:100%}
.desk30 .desk-source summary {justify-content:end;gap:5px}
.desk30 .desk-source summary::before {content:"نرخ و منبع";color:#cbd3e2}
.desk30 .desk-rate-detail {margin-top:5px}
.desk30 .desk-reference {width:100%;margin-top:6px}
.desk30 .ad-top .ad-tools button.ai-trigger {background:#ffffff08;border:1px solid #ffffff12;color:#f6f7fb;padding-inline:11px}
.desk30 .ad-tools button.ai-trigger span {display:inline}
.desk30 .ad-tools button:hover {background:#ffffff12}
.ad-product.desk30 .ad-holding {background:linear-gradient(105deg,#ffffff09,#ffffff04);border:1px solid #ffffff14;padding:13px 18px;border-radius:16px}
.desk30 .ad-position-title {gap:7px 12px}
.desk30 .ad-position-title>div {min-width:0}
.desk30 .ad-allocation {gap:10px}
.desk30 .ad-allocation small {max-width:145px}
.desk30 .ad-holding .ad-worth b,.desk30 .ad-holding .ad-quantity {font-size:1.2rem;line-height:1.55}
.ad-product.desk30 .ad-holding.d30-income {padding-block:2px}
.ad-product.desk30 .d30-income #income-link {margin:0;border:0}
.ad-product.desk30 .ad-chart {padding-block:15px 7px}
.desk30 .ad-chart .chart-header {justify-content:flex-start;gap:5px 12px;min-height:44px}
.desk30 .ad-chart .chart-header h2 {font-size:.93rem;margin:0}
.desk30 .ad-chart .archive-bar {margin:0}
.desk30 .ad-chart .archive-bar:empty {display:none}
.desk30 .desk-series-row {gap:6px}
.desk30 .desk-series-row select {background:#222937;min-height:42px;font-size:.89rem;padding-inline:9px;border-radius:12px}
.desk30 .desk-series-row:has(select)>span {display:none}
.desk30 .ad-chart .ax-tools {margin-inline-start:auto}
.desk30 .ad-chart .ax-tools button {background:transparent;border-color:#ffffff14}
.desk30 .ad-chart .ax-tools button:hover {background:#ffffff0a}
.desk30 .d30-delta {display:flex;align-items:center;flex-wrap:wrap;gap:5px;color:#c4cbd8;font-size:.82rem}
.desk30 .desk-period-change {margin:0;font-size:1rem}
.desk30 .d30-warnings p,.desk30 .d30-stats p {margin:6px 0;color:#b6c0d0;font-size:.8rem;line-height:1.9;overflow-wrap:anywhere}
.desk30 .d30-warnings p {color:#ffcf8b}
.desk30 #chart .ax-frame {margin-block:18px}
.desk30 #chart .chart-plot>svg {color:#323949}
.desk30 #chart .price-line {filter:drop-shadow(0 3px 6px color-mix(in srgb,var(--mineral) 30%,transparent))}
.desk30 #chart .chart-plot output {white-space:pre-line;background:#0e111bf7;border-color:#ffffff28;border-radius:12px;line-height:1.85}
.desk30 #chart .chart-plot:focus-visible {outline:2px solid var(--mineral);outline-offset:5px}
.ad-product.desk30 .ad-chart .periods {margin:10px 0 4px;gap:0;background:#0a0e17;padding:3px}
.ad-product.desk30 .ad-chart .periods button[aria-pressed=true] {color:#fff;background:#30384a;box-shadow:0 1px 4px #0003}
.ad-product.desk30 .ad-chart .periods button:hover {color:white}
.desk30 .d30-stats summary {list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:44px;cursor:pointer;color:var(--desk-muted);font-size:.79rem}
.desk30 .d30-stats summary::-webkit-details-marker {display:none}
.desk30 .d30-stats summary span {margin-inline-start:auto;color:#e4e8ef}
.desk30 .d30-stats summary span::after {content:"";display:inline-block;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 9px 4px 3px}
.desk30 .d30-stats[open] summary span::after {transform:rotate(225deg);margin-bottom:0}
.desk30 .d30-stats .ax-stats {margin-top:0}
.desk30 .ad-context-card:has(.product-guide) {padding-block:9px}
.desk30 .ad-context-card .product-guide {margin:0;padding:0;border:0}
.desk30 .ad-context-card .product-guide summary {color:#f2f4fa;font-size:1rem;font-weight:600}
.desk30 .ad-chart .ad-cash-chart {padding-bottom:14px}
.desk30 .ad-chart .ax-zoom {--plot-height:min(48dvh,520px)}
@media(min-width:1031px){
  .ad-product.desk30 .ad-market {--plot-height:clamp(190px,26dvh,290px)}
  .ad-product.desk30 .ad-value {padding-inline-end:var(--art-size)}
  .desk30 .d30-hero {min-height:calc(var(--art-size) + 24px)}
  .desk30 .desk-identity .d30-art {top:7px}
  .desk30 .desk-quote {padding-block:4px 9px}
}
@media(max-width:1030px){
  .ad-product.desk30 .ad-market {--art-size:100px}
  .desk30 .ad-allocation {order:3;width:100%;gap:6px}
  .desk30 .ad-allocation .ad-weight {display:block;width:17px;mask:radial-gradient(farthest-side,transparent 63%,#000 67%)}
  .desk30 .ad-allocation small {max-width:none}
  .desk30 .ad-position-title .ad-allocation b {font-size:.81rem}
  .desk30 .ad-position-title .ad-allocation small {font-size:.75rem}
  .ad-product.desk30 .ad-value {width:100%}
  .desk30 .desk-identity .d30-art {top:13px}
  .desk30 .desk-quote .ad-value {padding-top:4px}
}
@media(max-width:760px){
  .ad-product.desk30 .ad-market {--plot-height:clamp(150px,42vw,220px);--art-size:88px;border-radius:19px}
  .desk30 .desk-identity {padding-top:10px}
  .desk30 .desk-title summary {min-height:42px}
  .desk30 .desk-quote {padding-block:7px 10px}
  .ad-product.desk30 .ad-value bdi {font-size:clamp(1.75rem,7.8vw,2.25rem)}
  .desk30 .desk-source summary::before {content:none}
  .desk30 .desk-source summary {min-height:38px}
  .desk30 .desk-move {flex:0 1 auto}
  .desk30 .desk-move .change {font-size:.84rem}
  .desk30 .ad-top {gap:4px}
  .desk30 .ad-breadcrumb {flex-wrap:nowrap;overflow:hidden}
  .desk30 .ad-breadcrumb a {min-width:0;overflow-wrap:anywhere}
  .desk30 .ad-breadcrumb svg {flex:none}
  .desk30 .ad-top .ad-tools {gap:1px}
  .desk30 .ad-top .ad-tools button.ai-trigger {padding-inline:8px;font-size:.79rem}
  .desk30 .ad-top #asset-compare {font-size:0;gap:0;padding:0;justify-content:center}
  .ad-product.desk30 .ad-holding {padding:10px 13px}
  .desk30 .ad-holding .ad-worth b,.desk30 .ad-holding .ad-quantity {font-size:1.03rem}
  .ad-product.desk30 .ad-chart {padding-top:12px}
  .desk30 .ad-chart .chart-header {gap:4px 8px}
  .desk30 .desk-period-change {font-size:.9rem}
  .desk30 .d30-stats summary {font-size:.73rem}
  .ad-product.desk30 .ad-quick {gap:8px;background:#10141ff0;backdrop-filter:blur(18px);padding-top:11px;padding-bottom:calc(11px + env(safe-area-inset-bottom))}
  .ad-product.desk30 .ad-quick button {min-height:51px;border-radius:15px;font-size:1rem;gap:8px;border:1px solid #ffffff10}
  .ad-product.desk30 .ad-quick :is([data-desk-mode=buy],[data-desk-mode=deposit]) {background:#41dfb1;color:#06251d}
  .ad-product.desk30 .ad-quick :is([data-desk-mode=sell],[data-desk-mode=withdraw]) {background:#ff8994;color:#321019}
  .ad-product.desk30 .ad-quick [data-desk-mode=convert] {background:#2c3344;color:#f6f7fb}
}
@media(max-width:355px){
  .desk30 .ad-breadcrumb:has(a+a) :is(span,a:last-child){display:none}
  .desk30 .ad-top .ad-tools button.ai-trigger {padding-inline:5px}
  .desk30 .d30-stats summary {font-size:.69rem}
}
