/* Coin page — "chart card" (design-refs/coin-skin: variant 3, header D, trade 4).
   One rounded card holds the header and the chart; the trade panel floats on its
   right edge; Trades / Holders / … run full width under both. The chart engine
   and its price / time scales are the live ones (js/chart.js) — only their frame
   changes here. Classes come from js/coin-terminal.js (.dv-spot) and
   js/coin-v3.js (.dv-c3). Loaded after every other coin-page sheet. */

html body #detailView.dv-c3.dv-spot{
  --c3-card:#FFFFFF; --c3-s2:#F2F7FC; --c3-s3:#E6EFF8;
  --c3-line:rgba(10,37,64,.10); --c3-line2:rgba(10,37,64,.18);
  --c3-ink:#0A2540; --c3-mute:#4F6B86;
  --c3-up:#16A34A; --c3-dn:#E5484D; --c3-upT:#0E7A3A; --c3-dnT:#C8243F; --c3-onup:#FFFFFF;
  --c3-tint:#3C6EF0; --c3-gold:#F5B83D;
  --c3-ease:cubic-bezier(.23,1,.32,1);
  --c3-glass:color-mix(in srgb,var(--c3-s2) 72%,transparent);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,sans-serif;
}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) body #detailView.dv-c3.dv-spot{
  --c3-card:#0F0F10; --c3-s2:#1A1A1A; --c3-s3:#232323;
  --c3-line:rgba(255,255,255,.08); --c3-line2:rgba(255,255,255,.16);
  --c3-ink:#EDEDE6; --c3-mute:#9A9A92;
  --c3-up:#22C27A; --c3-dn:#F0506E; --c3-upT:#3DDB8A; --c3-dnT:#FF7A8E; --c3-onup:#06120B;
  --c3-tint:#5B86FF;
}

/* ── frame ─────────────────────────────────────────────────────────────── */
html body #detailView.dv-c3.dv-spot .dv-spotlight{background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
html body #detailView.dv-c3.dv-spot .dv-grid{display:grid;grid-template-columns:minmax(0,1fr) 352px;grid-template-rows:auto 1fr auto;
  gap:0;position:relative;isolation:isolate;align-items:start}
html body #detailView.dv-c3.dv-spot .dv-grid::before{content:"";grid-column:1/-1;grid-row:1/3;align-self:stretch;z-index:-1;border-radius:28px;
  background:radial-gradient(80% 90% at 30% 0%,color-mix(in srgb,var(--c3-tint) 16%,transparent),transparent 60%),var(--c3-card);
  box-shadow:inset 0 0 0 1px var(--c3-line)}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .dv-grid::before{
  background:radial-gradient(80% 90% at 30% 0%,color-mix(in srgb,var(--c3-tint) 22%,transparent),transparent 60%),var(--c3-card)}
html body #detailView.dv-c3.dv-spot .dv-left{display:contents}
html body #detailView.dv-c3.dv-spot .dv-coin-topbar{grid-column:1;grid-row:1;display:block;padding:22px 24px 6px;background:transparent;border:0}
html body #detailView.dv-c3.dv-spot .dv-chart-wrap:not(.fs){grid-column:1;grid-row:2;align-self:stretch;display:flex;flex-direction:column;
  margin:0;padding:0 8px 14px 14px;background:transparent;border:0;box-shadow:none}
html body #detailView.dv-c3.dv-spot .dv-chart-wrap:not(.fs) .dv-chart-el{flex:1;height:auto;min-height:clamp(400px,56vh,600px);background:transparent}
html body #detailView.dv-c3.dv-spot .trades-wrap{grid-column:1/-1;grid-row:3;margin:18px 0 0}
html body #detailView.dv-c3.dv-spot .dv-right{grid-column:2;grid-row:1/3;align-self:start;display:flex;flex-direction:column;gap:12px;
  margin:14px 14px 14px 0;padding:14px;border:0;border-radius:22px;background:var(--c3-glass);
  backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);
  box-shadow:0 0 0 1px var(--c3-line),0 20px 50px -24px rgba(0,0,0,.4)}
html body #detailView.dv-c3.dv-spot .dv-right :is(.bs-card,.bond-card,.desc-card){padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}

/* ── header D ──────────────────────────────────────────────────────────── */
html body #detailView.dv-c3.dv-spot .dv-header-layout{display:flex;flex-direction:column;gap:14px;width:100%}
html body #detailView.dv-c3.dv-spot .dv-header{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 14px;min-width:0}
html body #detailView.dv-c3.dv-spot .dv-img{width:56px;height:56px;flex:0 0 56px;border-radius:16px}
html body #detailView.dv-c3.dv-spot .dv-hname{font-family:inherit;font-size:24px;font-weight:850;letter-spacing:-.02em;color:var(--c3-ink)}
html body #detailView.dv-c3.dv-spot .dv-htick{font-family:inherit;font-size:13.5px;font-weight:650;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot .dv-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}
html body #detailView.dv-c3.dv-spot .dv-actions .dv-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:40px;height:40px;min-height:40px;
  padding:0 12px;border:0;border-radius:12px;background:var(--c3-glass);box-shadow:inset 0 0 0 1px var(--c3-line);color:var(--c3-ink);
  transition:box-shadow .15s ease,transform .14s var(--c3-ease)}
html body #detailView.dv-c3.dv-spot .dv-actions .dv-btn:active{transform:scale(.95)}
@media(hover:hover){html body #detailView.dv-c3.dv-spot .dv-actions .dv-btn:hover{box-shadow:inset 0 0 0 1px var(--c3-line2);background:var(--c3-glass)}}
html body #detailView.dv-c3.dv-spot .dv-actions .dv-btn[hidden]{display:none}
html body #detailView.dv-c3.dv-spot .dv-actions .dv-btn .tm-ico{display:block;width:18px;height:18px;stroke-width:1.9}
html body #detailView.dv-c3.dv-spot .dv-actions .dv-btn:not(.dv-dev) .te{display:none}
/* order: creator · address · star · share */
html body #detailView.dv-c3.dv-spot #dvDev{order:1;padding:4px 14px 4px 4px;border-radius:999px}
html body #detailView.dv-c3.dv-spot #dvAddr{order:2}
html body #detailView.dv-c3.dv-spot #dvFav{order:3;width:40px;padding:0}
html body #detailView.dv-c3.dv-spot #dvShare{order:4;width:40px;padding:0}
html body #detailView.dv-c3.dv-spot #dvDev .tm-ico,html body #detailView.dv-c3.dv-spot :is(#dvFav,#dvShare) :is(.dv-btn-lbl,.dv-fav-lbl){display:none}
html body #detailView.dv-c3.dv-spot #dvDev .dv-btn-ico{display:block;width:32px;height:32px;border-radius:50%;object-fit:contain;background:var(--c3-s2)}
html body #detailView.dv-c3.dv-spot #dvDev .dv-btn-lbl{display:none}
html body #detailView.dv-c3.dv-spot .dv-dev-txt{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1}
html body #detailView.dv-c3.dv-spot .dv-dev-txt small{font-size:11px;font-weight:600;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot .dv-dev-txt b{font-size:13.5px;font-weight:750;color:var(--c3-ink)}
html body #detailView.dv-c3.dv-spot #dvAddr .dv-btn-lbl{display:inline;order:-1;font:600 12.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot #dvAddr .tm-ico{width:16px;height:16px;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot #dvFav.active{color:var(--c3-gold)}
html body #detailView.dv-c3.dv-spot #dvFav.active .tm-ico{fill:var(--c3-gold);stroke:var(--c3-gold)}

/* metrics + chart controls on one row */
html body #detailView.dv-c3.dv-spot .dv-spot-metrics{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 28px;width:100%;margin:0}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics :is(.dv-tstat,.dv-mc){display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:0;border:0}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics :is(.dv-tstat-lbl,.dv-mc-lbl){display:block;font-family:inherit;font-size:12.5px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics .dv-tstat-val{font-family:inherit;font-size:19px;font-weight:800;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--c3-ink)}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics .dv-tstat-val.up{color:var(--c3-upT)}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics .dv-tstat-val.dn{color:var(--c3-dnT)}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics .dv-mc-val{font-family:inherit;font-size:30px;font-weight:850;letter-spacing:-.02em;color:var(--c3-ink)}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl{position:static;inset:auto;transform:none;margin:0 0 2px auto;display:flex;align-items:center;gap:8px;z-index:auto;background:none;padding:0;box-shadow:none}
html body #detailView.dv-c3.dv-spot #dvChartCtrl :is(.dv-type-toggle,.dv-tf-btn,.dv-fs-btn){height:36px;border:0;border-radius:10px;background:var(--c3-glass);box-shadow:inset 0 0 0 1px var(--c3-line);color:var(--c3-ink)}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-type-toggle{display:inline-flex;gap:2px;padding:3px}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-type-seg{width:32px;height:30px;border:0;border-radius:8px;background:transparent;color:var(--c3-mute);display:grid;place-items:center}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-type-seg.active{background:var(--c3-card);color:var(--c3-ink);box-shadow:0 1px 2px rgba(0,0,0,.16)}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-type-seg svg{width:15px;height:15px}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-tf-btn{padding:0 12px;font:700 13px/1 inherit;font-family:inherit}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-fs-btn{width:36px;display:grid;place-items:center}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-fs-btn svg{width:15px;height:15px}

/* ── trade panel (variant 4: share-of-balance slider) ─────────────────── */
html body #detailView.dv-c3.dv-spot .bs-card-head{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px;margin:0 0 12px;padding:0;border:0}
html body #detailView.dv-c3.dv-spot .bs-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0;background:none;border:0}
html body #detailView.dv-c3.dv-spot .bs-tab{height:40px;min-height:40px;padding:0;border:0;border-radius:12px;background:var(--c3-s2);color:var(--c3-mute);font:800 15px/1 inherit;font-family:inherit;box-shadow:none}
html body #detailView.dv-c3.dv-spot .bs-tab.active[data-bs="buy"]{background:color-mix(in srgb,var(--c3-up) 18%,transparent);color:var(--c3-upT);box-shadow:inset 0 0 0 1.5px var(--c3-up)}
html body #detailView.dv-c3.dv-spot .bs-tab.active[data-bs="sell"]{background:color-mix(in srgb,var(--c3-dn) 18%,transparent);color:var(--c3-dnT);box-shadow:inset 0 0 0 1.5px var(--c3-dn)}
html body #detailView.dv-c3.dv-spot .bs-gear-btn{width:44px;height:40px;border:0;border-radius:12px;background:var(--c3-s2);color:var(--c3-ink);display:grid;place-items:center}
html body #detailView.dv-c3.dv-spot .bs-gear-btn svg{width:18px;height:18px}
html body #detailView.dv-c3.dv-spot .bs-preset-panel,html body #detailView.dv-c3.dv-spot .bs-presets,html body #detailView.dv-c3.dv-spot #bsMax{display:none!important}
html body #detailView.dv-c3.dv-spot .bs-body{display:flex;flex-direction:column;gap:12px;padding:0}

html body #detailView.dv-c3.dv-spot .bs-amount-card{padding:18px 18px 12px;border:0;border-radius:20px;background:var(--c3-s2);box-shadow:none}
html body #detailView.dv-c3.dv-spot .bs-amount-row{display:flex;align-items:center;gap:8px;min-height:62px}
html body #detailView.dv-c3.dv-spot #bsAmt{display:none}
html body #detailView.dv-c3.dv-spot .bs-c3-inp{flex:1 1 0;min-width:0;width:100%;padding:0;border:0;outline:0;background:transparent;color:var(--c3-ink);
  font-family:inherit;font-size:54px;font-weight:900;letter-spacing:-.04em;line-height:1.1;font-variant-numeric:tabular-nums}
html body #detailView.dv-c3.dv-spot .bs-c3-inp::placeholder{color:var(--c3-mute);opacity:.55}
html body #detailView.dv-c3.dv-spot .bs-cur-badge{flex:none;padding:0;border:0;background:none;box-shadow:none}
html body #detailView.dv-c3.dv-spot .bs-cur-badge span{font-family:inherit;font-size:16px;font-weight:800;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot .bs-amount-card.is-long .bs-amount-row{flex-wrap:wrap;row-gap:0}
html body #detailView.dv-c3.dv-spot .bs-amount-card.is-long .bs-c3-inp{flex-basis:100%}
html body #detailView.dv-c3.dv-spot .bs-amount-card.is-long .bs-cur-badge span{font-size:14px}
html body #detailView.dv-c3.dv-spot .bs-c3-sub{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 10px;margin-top:6px}
html body #detailView.dv-c3.dv-spot .bs-c3-sub #bsApproxRow{margin:0;font-family:inherit;font-size:13px;color:var(--c3-mute);white-space:nowrap}
html body #detailView.dv-c3.dv-spot .bs-c3-sub #bsRecvContent{display:flex;align-items:baseline;gap:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;white-space:nowrap}
html body #detailView.dv-c3.dv-spot .bs-c3-sub #bsRecvLbl{display:none}
html body #detailView.dv-c3.dv-spot .bs-c3-sub #bsRecv{font-family:inherit;font-size:13px;font-weight:800;color:var(--c3-ink)}
html body #detailView.dv-c3.dv-spot .bs-c3-sub #bsRecv::before{content:"→ ";font-weight:500;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot .bs-card.is-over #bsApproxRow{color:var(--c3-dnT)}

html body #detailView.dv-c3.dv-spot .bs-c3-sl{padding:12px 0 0}
html body #detailView.dv-c3.dv-spot .bs-c3-sl input{--p:0%;--c:var(--c3-up);display:block;width:100%;height:28px;margin:0;padding:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer}
html body #detailView.dv-c3.dv-spot:has(.bs-tab.active[data-bs="sell"]) .bs-c3-sl input{--c:var(--c3-dn)}
html body #detailView.dv-c3.dv-spot .bs-c3-sl input::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:linear-gradient(90deg,var(--c) var(--p),var(--c3-s3) var(--p))}
html body #detailView.dv-c3.dv-spot .bs-c3-sl input::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;margin-top:-8px;border-radius:50%;background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.35),0 0 0 4px color-mix(in srgb,var(--c) 35%,transparent)}
html body #detailView.dv-c3.dv-spot .bs-c3-sl input::-moz-range-track{height:6px;border-radius:3px;background:var(--c3-s3)}
html body #detailView.dv-c3.dv-spot .bs-c3-sl input::-moz-range-progress{height:6px;border-radius:3px;background:var(--c)}
html body #detailView.dv-c3.dv-spot .bs-c3-sl input::-moz-range-thumb{width:22px;height:22px;border:0;border-radius:50%;background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--c) 35%,transparent)}
html body #detailView.dv-c3.dv-spot .bs-c3-sl input:focus-visible{outline:2px solid var(--c3-ink);outline-offset:4px;border-radius:6px}
html body #detailView.dv-c3.dv-spot .bs-c3-ticks{display:flex;justify-content:space-between;margin-top:2px}
html body #detailView.dv-c3.dv-spot .bs-c3-ticks button{border:0;background:none;padding:6px 2px;font:750 12px/1 inherit;font-family:inherit;color:var(--c3-mute);cursor:pointer}
@media(hover:hover){html body #detailView.dv-c3.dv-spot .bs-c3-ticks button:hover{color:var(--c3-ink)}}

html body #detailView.dv-c3.dv-spot .bs-amt-err{margin:-4px 4px 0;font-size:12.5px}
html body #detailView.dv-c3.dv-spot .bs-bal-row{margin:0;padding:0 4px;justify-content:flex-start;font-size:13px}
html body #detailView.dv-c3.dv-spot .bs-bal-txt{font-family:inherit;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot .bs-bal-val{color:var(--c3-ink);font-weight:700}
html body #detailView.dv-c3.dv-spot .btn-trade-main{height:54px;min-height:54px;margin:0;padding:0 14px;border:0;border-radius:14px;box-shadow:none;
  font:850 17px/1 inherit;font-family:inherit;color:#fff;transition:transform .14s var(--c3-ease),filter .15s ease,opacity .15s ease}
html body #detailView.dv-c3.dv-spot .btn-trade-main.buy{background:var(--c3-up);color:var(--c3-onup)}
html body #detailView.dv-c3.dv-spot .btn-trade-main.sell{background:var(--c3-dn);color:#fff}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .btn-trade-main.sell{color:#1A0509}
html body #detailView.dv-c3.dv-spot .btn-trade-main:active{transform:scale(.98)}
html body #detailView.dv-c3.dv-spot .btn-trade-main:disabled{opacity:.55;cursor:not-allowed}
html body #detailView.dv-c3.dv-spot .bs-trade-settings-btn{min-height:46px;padding:0 12px;margin:0;border:0;border-radius:12px;background:transparent}
html body #detailView.dv-c3.dv-spot .bs-ts-ico{width:24px;height:24px}
html body #detailView.dv-c3.dv-spot :is(.bs-ts-label,.bs-ts-val){font-family:inherit;font-size:14.5px;font-weight:650;color:var(--c3-ink)}
html body #detailView.dv-c3.dv-spot .bs-ts-val{font-weight:800}
html body #detailView.dv-c3.dv-spot .bs-ts-arrow{color:var(--c3-mute)}

/* pool / bonding curve under the form */
html body #detailView.dv-c3.dv-spot .bond-title{font-family:inherit;font-size:15px;font-weight:800;color:var(--c3-ink);margin:0}
html body #detailView.dv-c3.dv-spot .bond-bar{height:6px;margin:10px 0 6px;border-radius:3px;background:var(--c3-s3)}
html body #detailView.dv-c3.dv-spot .bond-info{font-family:inherit;font-size:12.5px;color:var(--c3-mute);margin:0 0 4px}
html body #detailView.dv-c3.dv-spot .bond-row{padding:8px 0;border:0;font-family:inherit;font-size:13px}
html body #detailView.dv-c3.dv-spot .bond-row > span:first-child{color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot .bond-row > span:last-child{font-weight:700;color:var(--c3-ink);text-align:right}
html body #detailView.dv-c3.dv-spot .desc-card{padding-top:4px}

/* ── activity tabs + table ─────────────────────────────────────────────── */

@media(max-width:1100px){
  html body #detailView.dv-c3.dv-spot .dv-grid{grid-template-columns:minmax(0,1fr) 320px}
}
/* phone / narrow: header + chart card, then the trade panel, then activity */
@media(max-width:860px){
  html body #detailView.dv-c3.dv-spot .dv-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto}
  html body #detailView.dv-c3.dv-spot .dv-grid::before{grid-column:1;grid-row:1/3;border-radius:22px}
  html body #detailView.dv-c3.dv-spot .dv-coin-topbar{padding:16px 16px 6px}
  html body #detailView.dv-c3.dv-spot .dv-chart-wrap:not(.fs){padding:0 4px 10px 8px}
  html body #detailView.dv-c3.dv-spot .dv-chart-wrap:not(.fs) .dv-chart-el{min-height:340px}
  html body #detailView.dv-c3.dv-spot .dv-right{grid-column:1;grid-row:3;margin:14px 0 0}
  html body #detailView.dv-c3.dv-spot .trades-wrap{grid-row:4}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics{gap:12px 20px}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics .dv-mc-val{font-size:22px}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics .dv-tstat-val{font-size:16px}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl{margin-left:0;flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){
  html body #detailView.dv-c3.dv-spot :is(.dv-btn,.btn-trade-main){transition:none}
  html body #detailView.dv-c3.dv-spot :is(.dv-btn,.btn-trade-main):active{transform:none}
}

/* identity first, actions right after it, metrics row under both */
html body #detailView.dv-c3.dv-spot .dv-header-layout{display:flex;flex-direction:column;align-items:stretch}
html body #detailView.dv-c3.dv-spot .dv-header{display:flex!important;width:100%}
html body #detailView.dv-c3.dv-spot .dv-hleft{gap:12px}
/* older sheets pin these buttons to 28–40px squares with emoji icons; the cells win here */
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions{flex-wrap:wrap;gap:8px}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions .dv-btn{width:auto!important;min-width:40px!important;height:40px!important;min-height:40px!important;
  max-width:none!important;flex:none!important;padding:0 12px!important;border-radius:12px!important;background:var(--c3-glass)!important;box-shadow:inset 0 0 0 1px var(--c3-line)!important;border:0!important}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvFav,#dvShare){width:40px!important;padding:0!important}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvDev{padding:4px 14px 4px 4px!important;border-radius:999px!important}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions .dv-btn:not(.dv-dev) .te{display:none!important}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions .dv-btn:not(.dv-dev) .tm-ico{display:block!important}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvDev .dv-btn-ico{width:32px!important;height:32px!important}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvAddr .dv-btn-lbl{display:inline!important}
/* typing doesn't light the field (site rule); the caret is the cue */
html body #detailView.dv-c3.dv-spot .bs-c3-inp:is(:focus,:focus-visible){outline:0!important;box-shadow:none!important;border:0!important}
/* light theme: the same saturated buy/sell as dark (dark text on them: 8.3:1 / 5.7:1),
   a richer blue wash in the card, and the site's blue for the active activity tab */
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot{--c3-up:#22C27A;--c3-dn:#F0506E;--c3-onup:#06120B}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .btn-trade-main.sell{color:#1A0509}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .dv-grid::before{
  background:
    radial-gradient(80% 90% at 30% 0%,rgba(0,152,234,.24),transparent 62%),
    linear-gradient(180deg,#E6F4FD 0%,#FFFFFF 58%)}
/* over the balance: a quiet, readable disabled state instead of a faded colour */
html body #detailView.dv-c3.dv-spot .btn-trade-main:disabled{opacity:1;background:var(--c3-s3)!important;color:var(--c3-mute)!important}
@media(max-width:600px){
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions{flex:1 1 100%;min-width:0}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvDev{max-width:100%}
}

/* light: active Buy/Sell tabs a step stronger so their text clears 4.5:1 */
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .bs-tab.active[data-bs="buy"]{background:color-mix(in srgb,#22C27A 22%,#fff);color:#0A6630}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .bs-tab.active[data-bs="sell"]{background:color-mix(in srgb,#F0506E 18%,#fff);color:#A81B33}

/* the price scale sits on the card itself (no separate strip) in both themes */
html body #detailView.dv-c3.dv-spot .dv-chart-wrap:not(.fs) .dv-chart-el table tr > td:last-child{background:transparent!important}
/* no gear by Buy/Sell — Trade settings has its own row */
html body #detailView.dv-c3.dv-spot .bs-gear-btn{display:none!important}
html body #detailView.dv-c3.dv-spot .bs-card-head{grid-template-columns:minmax(0,1fr)}

/* viewers: a header cell after Share, same height and glass as the others */
html body #detailView.dv-c3.dv-spot .dv-actions .dv-viewers{order:5;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 13px 0 11px;
  border:0;border-radius:12px;background:var(--c3-glass);box-shadow:inset 0 0 0 1px var(--c3-line);color:var(--c3-ink);
  font:750 14px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,sans-serif;font-variant-numeric:tabular-nums}
html body #detailView.dv-c3.dv-spot .dv-actions .dv-viewers-ico{width:20px;height:16px;opacity:1}
html body #detailView.dv-c3.dv-spot .dv-actions .dv-viewers-tip{bottom:calc(100% + 8px)}

/* trade zone is part of the card (design-refs/trade-zone v1): no own surface or shadow,
   a hairline on its left is the only divider from the chart */
@media(min-width:861px){
  html body #detailView.dv-c3.dv-spot .dv-right{align-self:stretch;margin:0;padding:24px;border-radius:0;background:transparent;
    backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:inset 1px 0 0 var(--c3-line)}
}

/* chart overlays end where the plot ends (sizes measured by js/coin-v3.js) */
html body #detailView.dv-c3.dv-spot .dv-chart-wrap:not(.fs) :is(#dvEvLayer,#dvLineNow,#dvDayDiv,#dvXhMarks){
  clip-path:inset(0 var(--c3-psw,0px) var(--c3-tsh,26px) 0)!important}  /* chart.js clips #dvEvLayer inline on the right only */
/* live price tag: the whole number, the tag grows left over the plot instead of "…" */
html body #detailView.dv-c3.dv-spot .dv-ax-badge.is-on-scale{width:auto;min-width:calc(var(--ax-scale-w,58px) - 4px);right:2px;padding:2px 5px}
html body #detailView.dv-c3.dv-spot .dv-ax-badge.is-on-scale .dv-ax-v{overflow:visible;text-overflow:clip;width:auto}

/* the form keeps one height while typing: "Min received" always holds its line
   (just invisible while empty), and a long amount shrinks beside its unit
   instead of pushing the unit onto a new line */
html body #detailView.dv-c3.dv-spot #bsMinRecv[style*="none"]{display:flex!important;visibility:hidden}
html body #detailView.dv-c3.dv-spot .bs-amount-row{height:66px;min-height:66px;flex-wrap:nowrap!important}
html body #detailView.dv-c3.dv-spot .bs-amount-card.is-long .bs-c3-inp{flex-basis:0}
html body #detailView.dv-c3.dv-spot .bs-amount-card.is-long .bs-cur-badge span{font-size:16px}


/* Activity (Trades · Holders · Bubble Map · Chat · Signals): the original rows and
   tables, now in their own card like the chart's (design-refs/coin-tabs v5). */
html body #detailView.dv-c3.dv-spot .trades-wrap{margin-top:16px!important;padding:8px 18px 14px;border:0!important;border-radius:28px;overflow:hidden;
  background:radial-gradient(70% 120% at 0% 0%,color-mix(in srgb,var(--c3-tint) 12%,transparent),transparent 55%),var(--c3-card)!important;
  box-shadow:inset 0 0 0 1px var(--c3-line)!important}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .trades-wrap{
  background:radial-gradient(70% 120% at 0% 0%,rgba(0,152,234,.14),transparent 55%),#fff!important}
html body #detailView.dv-c3.dv-spot .trades-hdr{padding:10px 0 12px;margin:0;border:0;border-bottom:1px solid var(--c3-line);background:transparent}
html body #detailView.dv-c3.dv-spot .dv-vtabs{gap:6px}
html body #detailView.dv-c3.dv-spot .dv-vtab{height:40px;padding:0 14px;border:0;border-radius:12px;background:var(--c3-glass)!important;box-shadow:inset 0 0 0 1px var(--c3-line)!important;
  color:var(--c3-ink)!important;font:700 14px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,sans-serif}
html body #detailView.dv-c3.dv-spot .dv-vtab.active{background:var(--c3-ink)!important;color:var(--c3-card)!important;box-shadow:none!important}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .dv-vtab.active{background:#0077CC!important;color:#fff!important}
@media(max-width:860px){html body #detailView.dv-c3.dv-spot .trades-wrap{padding:6px 12px 12px;border-radius:22px}}

/* Inside the activity card (design-refs/coin-tabs v2): larger, calmer rows on the
   card itself — no grey striping, only hairlines between rows. */
html body #detailView.dv-c3.dv-spot :is(.trades-table,.dv-ht-table) thead th{background:transparent!important;font-size:12px}
html body #detailView.dv-c3.dv-spot :is(.trades-table,.dv-ht-table) tbody tr,
html body #detailView.dv-c3.dv-spot :is(.trades-table,.dv-ht-table) tbody tr:nth-child(even),
html body #detailView.dv-c3.dv-spot :is(.trades-table,.dv-ht-table) tbody td{background:transparent!important}
html body #detailView.dv-c3.dv-spot :is(.trades-table,.dv-ht-table) tbody tr + tr td{border:0!important;box-shadow:inset 0 1px 0 var(--c3-line)!important}
html body #detailView.dv-c3.dv-spot :is(.trades-table,.dv-ht-table) tbody td{padding-top:15px!important;padding-bottom:15px!important;font-size:16px}
html body #detailView.dv-c3.dv-spot :is(.tr-addr,.dv-ht-name){font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-size:15px;font-weight:600;color:var(--c3-ink)}
html body #detailView.dv-c3.dv-spot :is(.tr-av,.dv-ht-av){width:34px!important;height:34px!important}
html body #detailView.dv-c3.dv-spot .trades-table .tr-type{font-size:13.5px;padding:5px 12px}
html body #detailView.dv-c3.dv-spot .trades-table td:first-child::before{width:3px;border-radius:3px;top:16px;bottom:16px}
/* buy / sell rails in the chart's candle colours (user 2026-11-10: the text greens were too dark) */
html body #detailView.dv-c3.dv-spot .trades-table .tr-buy td:first-child::before{background:#20B26C}
html body #detailView.dv-c3.dv-spot .trades-table .tr-sell td:first-child::before{background:#EF454A}
html body #detailView.dv-c3.dv-spot .chat-msg-text{font-size:16.5px;color:var(--c3-ink)}
html body #detailView.dv-c3.dv-spot :is(.dv-ht-pct,.dv-ht-mc-val){font-size:16px}

/* TG / X Signals: the standalone feed's post (rail, big type, no badges), on a
   faint tint of the network's own colour instead of the standalone grey. */
html body #detailView.dv-c3.dv-spot #dvTgSignalsList{--post-accent:#0098EA}
html body #detailView.dv-c3.dv-spot #dvXSignalsList{--post-accent:#F0558E}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot #dvXSignalsList{--post-accent:#C2185B}
html body #detailView.dv-c3.dv-spot .tgt-dv-feed{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;display:flex;flex-direction:column;gap:10px;padding-top:12px}
html body #detailView.dv-c3.dv-spot .tgt-dv-post{margin:0!important;padding:18px 22px!important;gap:16px;border:0!important;border-left:8px solid var(--post-accent)!important;border-radius:19px!important;
  background:color-mix(in srgb,var(--post-accent) 9%,var(--c3-card))!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--post-accent) 16%,transparent)!important}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .tgt-dv-post{background:color-mix(in srgb,var(--post-accent) 7%,#fff)!important}
html body #detailView.dv-c3.dv-spot .tgt-dv-post :is(.tgt-first-badge,.tgt-sentiment){display:none}
html body #detailView.dv-c3.dv-spot .tgt-dv-post .tgt-post-av{width:46px;height:46px;font-size:19px}
html body #detailView.dv-c3.dv-spot .tgt-dv-post .tgt-channel{font-size:18px;font-weight:720;letter-spacing:-.04em;color:var(--c3-ink)}
html body #detailView.dv-c3.dv-spot .tgt-dv-post :is(.tgt-members,.xtr-handle){font-size:14px;font-weight:500;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot .tgt-dv-post .tgt-post-text{font-size:19px;line-height:1.45;letter-spacing:-.03em;font-weight:450;color:var(--c3-ink);margin:6px 0 10px}
html body #detailView.dv-c3.dv-spot .tgt-dv-post .tgt-time{font-size:16px;font-weight:550;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot .tgt-dv-post .tgt-link{font-size:16px;font-weight:600;color:var(--c3-ink)}
/* softer: the post takes the card's own trick — a faint glow from its corner
   over the card colour — and a thinner, quieter rail */
html body #detailView.dv-c3.dv-spot .tgt-dv-post,
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .tgt-dv-post{
  border-left:5px solid color-mix(in srgb,var(--post-accent) 70%,transparent)!important;
  background:radial-gradient(70% 160% at 0% 0%,color-mix(in srgb,var(--post-accent) 13%,transparent),transparent 62%),transparent!important;
  box-shadow:inset 0 0 0 1px var(--c3-line)!important}

/* Holders: bigger share bars */
html body #detailView.dv-c3.dv-spot .dv-ht-pct-bar-wrap{height:7px;border-radius:4px;margin-top:7px;background:color-mix(in srgb,var(--c3-ink) 9%,transparent)}
html body #detailView.dv-c3.dv-spot .dv-ht-pct-bar{border-radius:4px}
html body #detailView.dv-c3.dv-spot .dv-ht-conc-bar{height:10px;border-radius:5px}
html body #detailView.dv-c3.dv-spot .dv-ht-conc-fill{border-radius:5px}

/* Phones: activity tables fit the screen — no sideways scroll. Columns pack
   tighter, the Token amount column steps aside, names truncate instead of
   disappearing. */
@media(max-width:760px){
  html body #detailView.dv-c3.dv-spot .table-scroll{overflow-x:hidden}
  html body #detailView.dv-c3.dv-spot :is(.trades-table,.dv-ht-table){width:100%;table-layout:fixed}
  html body #detailView.dv-c3.dv-spot :is(.trades-table,.dv-ht-table) :is(th,td){min-width:0!important;padding-left:6px!important;padding-right:6px!important}
  html body #detailView.dv-c3.dv-spot :is(.trades-table,.dv-ht-table) tbody td{padding-top:11px!important;padding-bottom:11px!important;font-size:14px}
  /* Trades: Account | Type | Size | Time */
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td):nth-child(4){display:none}
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td):nth-child(1){width:44%}
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td):nth-child(2){width:22%}
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td):nth-child(3){width:22%;text-align:right}
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td):nth-child(5){display:table-cell!important;width:12%;text-align:right}
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td):nth-child(1){width:40%}
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td):nth-child(3){width:26%}
  html body #detailView.dv-c3.dv-spot .trades-table .tr-acc-cell{display:flex!important;align-items:center;gap:6px;min-width:0;max-width:100%;overflow:hidden}
  html body #detailView.dv-c3.dv-spot .trades-table .tr-addr{display:block!important;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
  html body #detailView.dv-c3.dv-spot .trades-table td{overflow:hidden}
  html body #detailView.dv-c3.dv-spot :is(.tr-av,.dv-ht-av){width:28px!important;height:28px!important;flex:none}
  html body #detailView.dv-c3.dv-spot .trades-table .tr-type{font-size:12px;padding:3px 8px}
  html body #detailView.dv-c3.dv-spot .trades-table .badge-pill{flex:none}
  /* Holders: Holder | % supply | MCAP */
  html body #detailView.dv-c3.dv-spot .dv-ht-table :is(th,td):nth-child(1){width:46%}
  html body #detailView.dv-c3.dv-spot .dv-ht-table :is(th,td):nth-child(2){width:30%}
  html body #detailView.dv-c3.dv-spot .dv-ht-table :is(th,td):nth-child(3){width:24%}
  html body #detailView.dv-c3.dv-spot .dv-ht-name{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
  html body #detailView.dv-c3.dv-spot .dv-ht-acc-info{min-width:0;overflow:hidden}
  html body #detailView.dv-c3.dv-spot .dv-ht-acc-cell{min-width:0}
  html body #detailView.dv-c3.dv-spot .dv-ht-badges{flex-wrap:wrap}
}
/* Size shows the GRAM mark instead of the word on phones; Time gets room */
html body #detailView .trades-table .tr-gram{display:none;width:1em;height:1em;margin-left:3px;vertical-align:-.15em}
@media(max-width:760px){
  html body #detailView.dv-c3.dv-spot .trades-table .tr-unit{display:none}
  html body #detailView.dv-c3.dv-spot .trades-table .tr-gram{display:inline-block}
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td):nth-child(1){width:38%}
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td):nth-child(2){width:22%}
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td):nth-child(3){width:24%}
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td):nth-child(5){width:16%}
  html body #detailView.dv-c3.dv-spot #dvTradesTableWrap .trades-table :is(th,td){white-space:nowrap}
}
/* Phones, Chat: the avatar alone names the sender (a tap opens their card);
   a fixed narrow first column so Account and Message never overlap */
@media(max-width:760px){
  html body #detailView.dv-c3.dv-spot #dvChatTabBody .trades-table :is(th,td):first-child{width:52px}
  html body #detailView.dv-c3.dv-spot #dvChatTabBody .trades-table :is(th,td):nth-child(2){width:auto;white-space:normal}
  html body #detailView.dv-c3.dv-spot #dvChatTabBody :is(.tr-addr,.tr-acc-cell > .badge-pill){display:none!important}
  html body #detailView.dv-c3.dv-spot #dvChatTabBody .trades-table thead th:first-child{font-size:0}
  html body #detailView.dv-c3.dv-spot #dvChatTabBody .chat-msg-text{font-size:15.5px}
}

/* X on the chart: the same raspberry as the X Tracker and X Signals (was orange) */
html body .dv-ev-x,html body .dv-ev-dot.dv-ev-x{background:#C2185B!important;border-color:#F0558E!important;color:#fff}
html body .dv-ev-x:is(:hover,.active){border-color:#FF8AB4!important;box-shadow:0 0 0 3px rgba(240,85,142,.3)!important}
html body .dv-ev-x:active{border-color:#F0558E!important;box-shadow:0 0 0 4px rgba(240,85,142,.3)!important}

/* ── Header «Капсула» (design-refs/coin-head v1, 2026-10-21) ─────────────────────────
   Only the market cap stays among the numbers. Creator · address · star · share sit in one
   glass capsule with hairline dividers. Wide: coin · capsule · market cap · chart controls on
   ONE row. Narrow: row 1 coin + capsule, row 2 market cap + chart controls. The capsule
   compacts step by step (address → copy icon, creator → avatar) so a row never wraps. */
html body #detailView.dv-c3.dv-spot .dv-coin-topbar{container:dvhead/inline-size}
html body #detailView.dv-c3.dv-spot .dv-header-layout{display:flex;flex-direction:column;align-items:stretch;gap:14px}
html body #detailView.dv-c3.dv-spot .dv-header{flex-wrap:nowrap!important;align-items:center;gap:14px;min-width:0}
html body #detailView.dv-c3.dv-spot .dv-hleft{flex:0 1 auto;min-width:0}
html body #detailView.dv-c3.dv-spot .dv-hinfo,html body #detailView.dv-c3.dv-spot .dv-hid{min-width:0}
html body #detailView.dv-c3.dv-spot :is(.dv-hname,.dv-htick){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics > :not(.dv-mc):not(#dvChartCtrl){display:none!important}
html body #detailView.dv-c3.dv-spot .dv-actions .dv-viewers{display:none!important}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics{flex-wrap:nowrap;align-items:center;gap:16px;min-width:0}
/* the cap keeps its width; a long coin name gives way instead (it has an ellipsis) — audit 2026-11-04 */
html body #detailView.dv-c3.dv-spot .dv-spot-metrics .dv-mc{flex:none;gap:2px}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics .dv-mc-val{font-size:32px!important;letter-spacing:-.035em;line-height:1.05;white-space:nowrap}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl{flex:none;margin:0 0 0 auto!important}

/* the capsule */
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions{flex:none!important;flex-wrap:nowrap!important;gap:0;padding:4px;border-radius:999px;margin:0;
  background:var(--c3-glass);box-shadow:inset 0 0 0 1px var(--c3-line),0 8px 24px -14px rgba(10,37,64,.35);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions .dv-btn{position:relative;height:44px!important;min-height:44px!important;background:transparent!important;box-shadow:none!important;border-radius:999px!important}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvAddr,#dvFav,#dvShare)::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:1px;background:var(--c3-line2)}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvFav,#dvShare){width:46px!important;min-width:46px!important}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvAddr{min-width:46px!important}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvDev{max-width:none!important;padding:4px 14px 4px 4px!important}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvDev .dv-btn-ico{width:36px!important;height:36px!important;box-shadow:0 0 0 2px var(--c3-card,#fff)}
@media(hover:hover){html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions .dv-btn:hover{background:var(--c3-s2)!important}}

/* wide: everything on one row */
@container dvhead (min-width:700px){
  html body #detailView.dv-c3.dv-spot .dv-header-layout{flex-direction:row;align-items:center;gap:20px}
  html body #detailView.dv-c3.dv-spot .dv-header{flex:0 1 auto;width:auto!important;min-width:0}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics{flex:1 1 0;width:auto!important;min-width:min-content}
}
/* step 1: the address shrinks to its copy icon */
@container dvhead (max-width:1059px){
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvAddr{width:46px!important;padding:0!important}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvAddr .dv-btn-lbl{display:none!important}
}
/* step 2: the creator shrinks to the avatar (its address stays in the tooltip) */
@container dvhead (min-width:700px) and (max-width:899px){
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvDev{padding:4px!important}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvDev .dv-dev-txt{display:none!important}
}
/* two rows, narrow: row 1 coin + capsule (creator as avatar), row 2 market cap + controls */
@container dvhead (max-width:519px){
  html body #detailView.dv-c3.dv-spot .dv-header{justify-content:space-between}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvDev{padding:4px!important}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvDev .dv-dev-txt{display:none!important}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics .dv-mc-val{font-size:28px!important}
}
@container dvhead (max-width:379px){
  html body #detailView.dv-c3.dv-spot .dv-img{width:46px!important;height:46px!important;flex-basis:46px!important;border-radius:14px}
  html body #detailView.dv-c3.dv-spot .dv-hname{font-size:20px}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions{padding:3px}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions .dv-btn{height:38px!important;min-height:38px!important}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvFav,#dvShare,#dvAddr){width:38px!important;min-width:38px!important}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvDev .dv-btn-ico{width:32px!important;height:32px!important}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvAddr,#dvFav,#dvShare)::before{top:10px;bottom:10px}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics .dv-mc-val{font-size:24px!important}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics{gap:10px}
}
/* very narrow (≤ ~340px card): smaller capsule so a short name still fits whole */
@container dvhead (max-width:319px){
  html body #detailView.dv-c3.dv-spot .dv-header{gap:10px}
  html body #detailView.dv-c3.dv-spot .dv-hleft{gap:10px!important}
  html body #detailView.dv-c3.dv-spot .dv-img{width:42px!important;height:42px!important;flex-basis:42px!important}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions .dv-btn{height:34px!important;min-height:34px!important}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvFav,#dvShare,#dvAddr){width:34px!important;min-width:34px!important}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvDev .dv-btn-ico{width:28px!important;height:28px!important}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions .dv-btn .tm-ico{width:16px!important;height:16px!important}
  html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvAddr,#dvFav,#dvShare)::before{top:9px;bottom:9px}
}
/* Favourite and Share wear stickers: the Watchlist medal (favourites live in Watchlist) and the
   «yes» sticker (user's pick, 2026-10-21). Both are always in colour. */
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvFav,#dvShare) .tm-ico{display:none!important}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvFav,#dvShare) .te{display:block!important;width:26px!important;height:26px!important;object-fit:contain;
  transition:transform .2s cubic-bezier(.2,0,0,1),filter .2s ease,opacity .2s ease}
/* in a list: the medal gets a soft blue glow */
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions #dvFav.active .te{filter:drop-shadow(0 2px 6px rgba(0,152,234,.45))}
@media(hover:hover){html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvFav,#dvShare):hover .te{transform:scale(1.12) rotate(-6deg)}}
html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvFav,#dvShare):active .te{transform:scale(.88)}
@media(prefers-reduced-motion:reduce){html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvFav,#dvShare) .te{transition:none}}
@container dvhead (max-width:379px){html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvFav,#dvShare) .te{width:24px!important;height:24px!important}}
@container dvhead (max-width:319px){html body #detailView.dv-c3.dv-spot .dv-header-layout .dv-actions :is(#dvFav,#dvShare) .te{width:22px!important;height:22px!important}}
/* chart trade markers: deeper green/red so the white B / S / count reads (was #22C55E 2.3:1 → 5.0:1, #EF4444 3.8:1 → 4.8:1) */
html body .dv-ev-dot:is(.dv-ev-creator,.dv-ev-me,.dv-ev-wallet).dv-ev-buy{background:#15803D!important;border-color:#4ADE80!important;color:#fff}
html body .dv-ev-dot:is(.dv-ev-creator,.dv-ev-me,.dv-ev-wallet).dv-ev-sell{background:#DC2626!important;border-color:#FF7A86!important;color:#fff}

/* ── Chart events filter (js/chart-filter.js; design-refs/chart-events variant 1, 2026-10-22) ── */
#detailView{--ef-pop:var(--c3-card);--ef-link:var(--c3-tint);--ef-mute:var(--c3-mute);--ef-set:var(--c3-tint);--ef-set-on:#0A0A0A}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #detailView{--ef-pop:var(--lb-solid,#D6E8FA);--ef-link:#005FA3;--ef-mute:#3A5571;--ef-set:#005FA3;--ef-set-on:#fff}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #detailView .ef-pop{--c3-s2:var(--lb-solid-field,#C4DDF6)}

/* кнопка в шапке: как кнопка полноэкранного режима */
html body #detailView.dv-c3.dv-spot #dvChartCtrl .ef-btn-open{position:relative;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:10px;background:var(--c3-glass);box-shadow:inset 0 0 0 1px var(--c3-line);color:var(--c3-ink);cursor:pointer;padding:0}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .ef-btn-open[aria-expanded="true"]{box-shadow:inset 0 0 0 2px var(--c3-tint)}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .ef-btn-open.is-filtered{color:var(--c3-tint)}
@media(hover:hover){html body #detailView.dv-c3.dv-spot #dvChartCtrl .ef-btn-open:hover{box-shadow:inset 0 0 0 1px var(--c3-line2)}}
#detailView .ef-dot{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:var(--c3-tint);color:#fff;font:800 10.5px/1 -apple-system,BlinkMacSystemFont,sans-serif;font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px var(--c3-card)}
#detailView .ef-dot[hidden]{display:none}

/* общие кусочки */
#detailView .ef-pop{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,sans-serif;color:var(--c3-ink);font-variant-numeric:tabular-nums}
#detailView .ef-pop{position:fixed;z-index:400;width:340px;max-height:min(70vh,560px);overflow:auto;overscroll-behavior:contain;padding:12px;border-radius:20px;background:var(--ef-pop);
  box-shadow:inset 0 0 0 1px var(--c3-line),0 24px 60px -20px rgba(10,37,64,.45);animation:efIn .16s cubic-bezier(.2,0,0,1)}
@keyframes efIn{from{opacity:0;transform:translateY(-4px)}}
#detailView .ef-pop.is-sheet{left:8px!important;right:8px;width:auto;top:auto!important;bottom:calc(var(--mnb-h,96px) + 12px);max-height:62vh;border-radius:24px;animation-name:efUp}
@keyframes efUp{from{opacity:0;transform:translateY(12px)}}
@media(prefers-reduced-motion:reduce){#detailView .ef-pop{animation:none}}
#detailView .ef-head{display:flex;align-items:baseline;gap:10px;padding:2px 6px 8px}
#detailView .ef-head b{font-size:15px;font-weight:800}
#detailView .ef-head span{font-size:12.5px;color:var(--ef-mute)}
#detailView .ef-link{margin-left:auto;border:0;background:none;padding:4px 2px;color:var(--ef-link);font:700 13px/1 inherit;font-family:inherit;cursor:pointer}
#detailView .ef-ico{width:22px;height:22px;object-fit:contain;flex:none}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) #detailView .ef-inv{filter:invert(1)}
#detailView .ef-badge{flex:none;min-width:30px;height:18px;padding:0 5px;border-radius:6px;display:inline-grid;place-items:center;font:900 9.5px/1 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:.04em;background:var(--c3-ink);color:var(--c3-card)}
#detailView .ef-badge-me{background:var(--c3-tint);color:#fff}
#detailView .ef-n{margin-left:auto;min-width:22px;text-align:right;font-size:13px;font-weight:700;color:var(--ef-mute)}
#detailView .ef-btn{height:36px;padding:0 14px;border:0;border-radius:11px;background:var(--c3-s2);color:var(--c3-ink);font:700 13px/1 inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
#detailView .ef-btn-pri{background:var(--c3-tint);color:#fff}
#detailView .ef-btn[disabled]{opacity:.45;cursor:default}
#detailView .ef-save{width:100%;margin-top:8px}
#detailView .ef-save-form{display:flex;gap:6px;margin-top:8px}
#detailView .ef-name{flex:1;min-width:0;height:36px;padding:0 12px;border:0;border-radius:11px;background:var(--c3-s2);color:var(--c3-ink);font:600 14px/1 inherit;font-family:inherit;outline:none;box-shadow:inset 0 0 0 1px var(--c3-line)}
#detailView .ef-name:focus{box-shadow:inset 0 0 0 2px var(--c3-tint)}
#detailView .ef-sets{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;padding:10px 4px 0;box-shadow:0 -1px 0 var(--c3-line)}
#detailView .ef-set{display:inline-flex;align-items:center;border-radius:999px;background:var(--c3-s2);box-shadow:inset 0 0 0 1px var(--c3-line)}
#detailView .ef-set > button{height:30px;padding:0 12px;border:0;background:none;color:var(--c3-ink);font:650 13px/1 inherit;font-family:inherit;cursor:pointer;border-radius:999px}
#detailView .ef-set .ef-set-x{width:26px;padding:0;margin-left:-6px;color:var(--c3-mute);display:grid;place-items:center}
#detailView .ef-set.is-on .ef-set-x{color:var(--ef-set-on)}
#detailView .ef-set.is-on{background:var(--ef-set);box-shadow:none}
#detailView .ef-set.is-on > button{color:var(--ef-set-on)}
#detailView .ef-pop button:focus-visible{outline:2px solid var(--c3-tint);outline-offset:2px}
#detailView .ef-chk{flex:none;width:20px;height:20px;border-radius:6px;display:grid;place-items:center;box-shadow:inset 0 0 0 2px var(--c3-line2);color:transparent;transition:background-color .15s,box-shadow .15s}

/* 1 · список с галочками */
#detailView .ef1-row{display:flex;align-items:center;border-radius:14px}
@media(hover:hover){#detailView .ef1-row:hover{background:var(--c3-s2)}}
#detailView .ef1-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:9px 8px;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;border-radius:14px}
#detailView .ef1-row:not(.is-off) .ef-chk{background:var(--c3-tint);box-shadow:none;color:#fff}
#detailView .ef1-row.is-off :is(.ef1-t,.ef-ico,.ef-badge){opacity:.5}
#detailView .ef1-t{font-size:14.5px;font-weight:650;white-space:nowrap}
#detailView .ef-only{flex:none;height:28px;padding:0 10px;margin-right:4px;border:0;border-radius:8px;background:none;color:var(--ef-link);font:700 12.5px/1 inherit;font-family:inherit;cursor:pointer;opacity:0;transition:opacity .12s}
#detailView .ef1-row:hover .ef-only,#detailView .ef-only:focus-visible{opacity:1}
@media(hover:none){#detailView .ef-only{opacity:1}}

/* narrow headers: one more 36px button in the controls row must not push into the market cap */
@container dvhead (max-width:519px){
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl{gap:6px}
}
@container dvhead (max-width:379px){
  html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-tf-btn{padding:0 8px!important}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl{gap:4px}
}
@container dvhead (max-width:319px){
  html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-type-seg{width:26px}
  html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-tf-btn{padding:0 6px!important}
  html body #detailView.dv-c3.dv-spot #dvChartCtrl :is(.dv-fs-btn,.ef-btn-open){width:34px}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics .dv-mc-val{font-size:19px!important}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics{gap:6px!important}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl{gap:3px}
}

/* ── Chart header controls: one capsule (design-refs/chart-ctrl variant 1, 2026-10-22) ── */
html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl{gap:0;padding:3px;border-radius:13px;background:var(--c3-glass);box-shadow:inset 0 0 0 1px var(--c3-line)}
html body #detailView.dv-c3.dv-spot #dvChartCtrl :is(.dv-type-toggle,.dv-tf-btn,.dv-fs-btn,.ef-btn-open){height:32px;background:transparent;box-shadow:none;border-radius:10px}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-type-toggle{padding:1px}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-type-seg{height:30px}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl > * + *{position:relative;margin-left:7px}
html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl > * + *::before{content:"";position:absolute;left:-4px;top:8px;bottom:8px;width:1px;background:var(--c3-line2);pointer-events:none}
@media(hover:hover){html body #detailView.dv-c3.dv-spot #dvChartCtrl :is(.dv-tf-btn,.dv-fs-btn,.ef-btn-open):hover{background:var(--c3-s2);box-shadow:none}}
html body #detailView.dv-c3.dv-spot #dvChartCtrl :is(.ef-btn-open,.dv-tf-btn)[aria-expanded="true"]{background:var(--c3-s2);box-shadow:none}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .ef-dot{top:-3px;right:-3px}
html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-tf-btn{display:inline-flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}
html body #detailView .dv-tf-btn .dv-tf-arr{width:10px;height:10px;opacity:.7;font-size:0;flex:none}

/* liquid glass: the interval menu and the events menu (user, 2026-10-22) */
#detailView{
  --lg-fill:linear-gradient(160deg,rgba(255,255,255,.11),rgba(255,255,255,.03) 45%,rgba(255,255,255,.07)),rgba(20,20,22,.6);
  --lg-edge:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.1);
  --lg-drop:0 30px 70px -24px rgba(0,0,0,.75);
  --lg-cell:rgba(255,255,255,.08);
}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #detailView{
  --lg-fill:linear-gradient(160deg,rgba(255,255,255,.62),rgba(255,255,255,.16) 50%,rgba(255,255,255,.4)),rgba(214,232,250,.58);
  --lg-edge:inset 0 1px 0 rgba(255,255,255,.9),inset 0 0 0 1px rgba(255,255,255,.55),0 0 0 1px rgba(0,95,163,.12);
  --lg-drop:0 30px 70px -24px rgba(10,37,64,.4);
  --lg-cell:rgba(255,255,255,.5);
}
html body #detailView.dv-c3.dv-spot .dv-tf-menu,
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body #detailView.dv-c3.dv-spot .dv-tf-menu{
  width:236px;padding:8px;border:0;border-radius:18px;gap:4px;grid-template-columns:repeat(4,1fr);
  background:var(--lg-fill)!important;box-shadow:var(--lg-edge),var(--lg-drop);
  -webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);transform-origin:top right}
html body #detailView.dv-c3.dv-spot .dv-tf-menu.open{animation:lgIn .18s cubic-bezier(.2,0,0,1)}
@keyframes lgIn{from{opacity:0;transform:translateY(-4px) scale(.96)}}
html body #detailView.dv-c3.dv-spot .dv-tf-grp{grid-column:1/-1;padding:6px 6px 2px;font:700 11.5px/1 -apple-system,BlinkMacSystemFont,sans-serif;color:var(--ef-mute)}
html body #detailView.dv-c3.dv-spot .dv-tf-grp:first-child{padding-top:2px}
html body #detailView.dv-c3.dv-spot .dv-tf-opt{height:34px;padding:0;border-radius:10px;font:650 13px/1 -apple-system,BlinkMacSystemFont,sans-serif;color:var(--c3-ink);background:transparent;font-variant-numeric:tabular-nums}
@media(hover:hover){html body #detailView.dv-c3.dv-spot .dv-tf-opt:hover{background:var(--lg-cell);color:var(--c3-ink)}}
html body #detailView.dv-c3.dv-spot .dv-tf-opt.active{background:var(--ef-set);color:var(--ef-set-on)}
html body #detailView.dv-c3.dv-spot .dv-tf-opt:focus-visible{outline:2px solid var(--c3-tint);outline-offset:2px}
#detailView .ef-pop,
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #detailView .ef-pop{
  --c3-s2:var(--lg-cell);background:var(--lg-fill);box-shadow:var(--lg-edge),var(--lg-drop);
  -webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);transform-origin:top right;animation-name:lgIn}
#detailView .ef-pop.is-sheet{transform-origin:bottom center;animation-name:efUp}
@media(prefers-reduced-motion:reduce){html body #detailView.dv-c3.dv-spot .dv-tf-menu.open,#detailView .ef-pop{animation:none}}
/* narrow headers: the capsule tightens before it can reach the market cap */
@container dvhead (max-width:379px){
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl > * + *{margin-left:5px}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl > * + *::before{left:-3px}
  html body #detailView.dv-c3.dv-spot #dvChartCtrl :is(.dv-fs-btn,.ef-btn-open){width:32px}
  html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-type-seg{width:28px}
}
@container dvhead (max-width:319px){
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl{padding:2px}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl > * + *{margin-left:3px}
  html body #detailView.dv-c3.dv-spot .dv-spot-metrics #dvChartCtrl > * + *::before{left:-2px}
  html body #detailView.dv-c3.dv-spot #dvChartCtrl :is(.dv-fs-btn,.ef-btn-open){width:30px}
  html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-type-seg{width:25px}
  html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-tf-btn{padding:0 6px!important;gap:4px}
}

/* both menus open in the middle of the screen over a dim layer (user, 2026-10-22) */
#detailView .dv-pop-scrim{position:fixed;inset:0;z-index:399;background:rgba(4,6,10,.42);animation:scrimIn .18s ease}
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #detailView .dv-pop-scrim{background:rgba(10,37,64,.22)}
@keyframes scrimIn{from{opacity:0}}
html body #detailView.dv-c3.dv-spot > .dv-tf-menu.is-center,
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) body #detailView.dv-c3.dv-spot > .dv-tf-menu.is-center{position:fixed;inset:auto;top:50%;left:50%;right:auto;bottom:auto;margin:0;transform:translate(-50%,-50%);z-index:400;width:min(288px,calc(100vw - 24px));height:auto;max-height:calc(100dvh - 24px);align-content:start;grid-auto-rows:auto;padding:10px;border-radius:22px;gap:6px;transform-origin:center}
html body #detailView.dv-c3.dv-spot > .dv-tf-menu.is-center .dv-tf-opt{height:42px;font-size:14px;border-radius:12px}
html body #detailView.dv-c3.dv-spot > .dv-tf-menu.is-center.open{animation:lgPop .2s cubic-bezier(.2,0,0,1)}
#detailView .ef-pop,
html:not([data-theme="dark"]):not([data-theme="voidtype"]):not([data-scheme="dark"]) #detailView .ef-pop{inset:auto;top:50%;left:50%;margin:0;transform:translate(-50%,-50%);width:min(360px,calc(100vw - 24px));height:auto;max-height:min(80vh,600px);border-radius:24px;transform-origin:center;animation-name:lgPop;animation-duration:.2s}
@keyframes lgPop{from{opacity:0;scale:.94}}
@media(prefers-reduced-motion:reduce){#detailView .dv-pop-scrim,html body #detailView.dv-c3.dv-spot > .dv-tf-menu.is-center.open,#detailView .ef-pop{animation:none}}
/* a quiet close button in both centred menus (user, 2026-10-22) */
#detailView :is(.dv-tf-x,.ef-x){flex:none;width:30px;height:30px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:var(--lg-cell);color:var(--ef-mute);cursor:pointer;transition:background-color .15s,color .15s}
@media(hover:hover){#detailView :is(.dv-tf-x,.ef-x):hover{color:var(--c3-ink);background:color-mix(in srgb,var(--lg-cell) 60%,var(--c3-ink) 12%)}}
#detailView :is(.dv-tf-x,.ef-x):focus-visible{outline:2px solid var(--c3-tint);outline-offset:2px}
#detailView .ef-head{align-items:center}
#detailView .ef-head .ef-x{margin-left:auto}
#detailView .ef-head .ef-link + .ef-x{margin-left:6px}
html body #detailView.dv-c3.dv-spot .dv-tf-x{display:none}
html body #detailView.dv-c3.dv-spot > .dv-tf-menu.is-center{padding-top:10px}
html body #detailView.dv-c3.dv-spot > .dv-tf-menu.is-center .dv-tf-x{display:grid;position:absolute;top:10px;right:10px}
html body #detailView.dv-c3.dv-spot > .dv-tf-menu.is-center > .dv-tf-grp:nth-child(2){min-height:30px;display:flex;align-items:center;padding:0 6px}
/* touch screens: ui-polish.css gives the chart-type buttons a 34px minimum, which made the active square taller
   than the capsule. The square stays inside the row; an invisible frame keeps the tap area as big as before. */
@media(hover:none) and (pointer:coarse){
  html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-type-seg{position:relative;min-width:0;min-height:0;height:30px}
  html body #detailView.dv-c3.dv-spot #dvChartCtrl .dv-type-seg::after{content:"";position:absolute;inset:-4px -2px}
}

/* ── Trade panel (user, 2026-10-23): nothing under Trade settings; black fields in the dark theme like Swap ── */
html body #detailView.dv-c3.dv-spot #bondCard{display:none!important}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .bs-amount-card{
  --c3-s3:#1C1C1C;background:#070707;box-shadow:inset 0 0 0 1px rgba(255,255,255,.13),inset 0 1px 0 rgba(255,255,255,.07)}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .bs-tab:not(.active){
  background:#070707;box-shadow:inset 0 0 0 1px rgba(255,255,255,.13)}
@media(hover:hover){html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) body #detailView.dv-c3.dv-spot .bs-tab:not(.active):hover{background:#101010}}

/* ── Your position (js/coin-position.js) — design-refs/coin-panel-zero round 2 variant 1 (user 2026-10-25):
   a coin card — the whole card is the coin's picture, blurred and darkened, white figures on top, no separate
   bottom strip. Same layout as before: worth + %, Invested / P&L; coin, Avg entry, Holding. --art is set by JS. */
#detailView .cpos{position:relative;isolation:isolate;border-radius:22px;overflow:hidden;color:#fff;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#10141C}
#detailView .cpos::before{content:"";position:absolute;inset:-24px;z-index:-2;background:var(--art,none) center/cover;filter:blur(20px) saturate(1.35)}
#detailView .cpos::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(160deg,rgba(0,0,0,.28),rgba(0,0,0,.72))}
#detailView .cpos[hidden]{display:none}
#detailView .cpos-gram{width:.78em;height:.78em;object-fit:contain;flex:none;margin-left:.12em}
#detailView .cpos-band{display:grid;gap:10px;padding:16px 18px 14px}
#detailView .cpos-t{font-size:14px;font-weight:600;line-height:1.3;color:rgba(255,255,255,.8)}
#detailView .cpos-big{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px;margin-top:-6px}
#detailView .cpos-num{display:inline-flex;align-items:center;font-size:44px;font-weight:700;line-height:1;letter-spacing:-.05em;white-space:nowrap}
#detailView .cpos-gain{font-size:17px;font-weight:700;letter-spacing:-.02em;white-space:nowrap}
#detailView .cpos .up{color:#9BF5C1}
#detailView .cpos .dn{color:#FFB3BE}
#detailView .cpos-meta{display:flex;gap:22px}
#detailView .cpos-m{font-size:13px;color:rgba(255,255,255,.75)}
#detailView .cpos-m b{display:flex;align-items:center;margin-top:2px;font-size:20px;font-weight:600;line-height:1.15;letter-spacing:-.03em;color:#fff;white-space:nowrap}
#detailView .cpos-m b.up{color:#9BF5C1}
#detailView .cpos-m b.dn{color:#FFB3BE}
#detailView .cpos-cap{display:flex;align-items:center;gap:12px;padding:4px 18px 16px;color:#fff}
#detailView .cpos-port{flex:0 0 46px;width:46px;height:46px;object-fit:cover;border-radius:13px;box-shadow:0 0 0 2px rgba(255,255,255,.4)}
#detailView .cpos-port-emoji{display:grid;place-items:center;font-size:24px;background:rgba(255,255,255,.14)}
#detailView .cpos-who{min-width:0}
#detailView .cpos-capt{font-size:12.5px;font-weight:600;color:rgba(255,255,255,.75)}
#detailView .cpos-nm{margin-top:1px;font-size:20px;font-weight:700;letter-spacing:-.03em;white-space:nowrap}
#detailView .cpos-hold{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto;min-width:0;text-align:right;font-size:15px;font-weight:700;white-space:nowrap}
#detailView .cpos-hold small{font-size:12.5px;font-weight:600;color:rgba(255,255,255,.75)}
#detailView :is(.cpos-hold,.cpos-nm){overflow:hidden;text-overflow:ellipsis}


/* average buy (green) / sell (red) tags on the price scale — the candles' own colours (user 2026-11-26), both themes */
html body :is(#detailView,#dvChartWrap) .dv-ax-badge.cpos-ax{border-color:transparent!important;box-shadow:none!important;z-index:3}
html body :is(#detailView,#dvChartWrap) .dv-ax-badge.cpos-ax-buy{background:#20B26C!important}
html body :is(#detailView,#dvChartWrap) .dv-ax-badge.cpos-ax-sell{background:#EF454A!important}
html body :is(#detailView,#dvChartWrap) .dv-ax-badge.cpos-ax .dv-ax-v{color:#fff!important;font-weight:700}
/* live price tag: light blue with dark text; on the light theme's blue chart a deeper blue with white text */
html body #dvChartWrap .dv-ax-badge.is-on-scale.is-now{background:#4DB8FF!important;color:#06121C!important;border:0!important;box-shadow:none!important}
html body #dvChartWrap .dv-ax-badge.is-on-scale.is-now .dv-ax-v{color:#06121C!important}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #dvChartWrap .dv-ax-badge.is-on-scale.is-now{background:#0077CC!important;color:#fff!important}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #dvChartWrap .dv-ax-badge.is-on-scale.is-now .dv-ax-v{color:#fff!important}

/* ── Chart event marks (design-refs/event-marks + chart-events, user 2026-10-25) ──
   Buy / sell colours = the candles (design-refs/chart-colors variant 5).
   One colour per mark: a 22px disc in the trade side (green buy / red sell) with the wallet's avatar,
   no ring, no backing, no gap, no hover animation. Creator = "DB" / "DS"; posts on their tab colour
   (TG blue + the TG Tracker picture, X raspberry + logo, DEX orange + power). Your own trades = a thin
   chevron under the candle (js/chart.js _renderChartEventLayer places them). */
/* #dvChartWrap: fullscreen moves the chart out of #detailView (js/chart.js _chartFsPortal), so the marks hang on the chart itself */
html body #dvChartWrap{--evm-buy:#20B26C;--evm-sell:#EF454A;--evm-x:#C2185B}
html:is([data-theme="dark"],[data-theme="voidtype"],[data-scheme="dark"]) body #dvChartWrap{--evm-buy:#20B26C;--evm-sell:#EF454A;--evm-x:#F0558E}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot{width:22px!important;height:22px!important;border:0!important;box-shadow:none!important;outline:0;
  background:var(--evm-buy)!important;color:#fff!important;overflow:visible!important;transition:none!important}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot:is(:hover,:active,.active){transform:translate(-50%,-50%)!important;box-shadow:none!important}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot:focus-visible{outline:2px solid currentColor;outline-offset:3px}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot.dv-ev-sell{background:var(--evm-sell)!important}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot.dv-ev-tg{background:#2AABEE!important}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot.dv-ev-x{background:var(--evm-x)!important}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot.dv-ev-grad{background:#FF8A3D!important}
/* faces fill the disc: avatars, stickers */
html body #dvChartWrap .dv-ev-layer .dv-ev-dot :is(img,img.dv-ev-av,img.dv-ev-sticker){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  border-radius:50%!important;outline:0!important;object-fit:cover!important;background:none!important}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot:is(.dv-ev-tg,.dv-ev-grad) img.dv-ev-sticker{inset:2px!important;width:calc(100% - 4px)!important;height:calc(100% - 4px)!important;object-fit:contain!important}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot.dv-ev-x img.dv-ev-sticker{inset:4px!important;width:calc(100% - 8px)!important;height:calc(100% - 8px)!important;object-fit:contain!important;filter:brightness(0) invert(1)}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot .dv-ev-fallback{font-size:10px;color:#fff}
/* the creator: DB / DS — the trade pills' deep fills with white text (2026-11-26, user): white on these is 5.4:1 and 5.4:1 */
html body #dvChartWrap .dv-ev-layer .dv-ev-dot.dv-ev-creator.dv-ev-buy{background:#0E7A41!important}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot.dv-ev-creator.dv-ev-sell{background:#C92A36!important}
html body #dvChartWrap .dv-ev-layer .dv-ev-dot.dv-ev-creator .dv-ev-dbs{font:900 9.5px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:.02em;color:#FFFFFF}
/* you: a thin chevron, no disc */
html body #dvChartWrap .dv-ev-layer .dv-ev-dot.dv-ev-me{width:14px!important;height:12px!important;border-radius:3px!important;background:none!important}
/* the chevron stays 14×12, the tap target is 24×24 (audit 2026-11-04) */
html body #dvChartWrap .dv-ev-layer .dv-ev-dot.dv-ev-me::after{content:"";position:absolute;inset:-6px -5px}
html body #dvChartWrap .dv-ev-layer .dv-ev-chev{width:9px;height:9px;border-left:2.5px solid;border-top:2.5px solid;border-radius:1px;color:var(--evm-buy);transform:translateY(2px) rotate(45deg)}
html body #dvChartWrap .dv-ev-layer .dv-ev-sell .dv-ev-chev{color:var(--evm-sell);transform:translateY(-2px) rotate(225deg)}
/* trades in one candle: count in the same side colour */
html body #dvChartWrap .dv-ev-layer .dv-ev-n{top:-6px!important;right:-7px!important;bottom:auto!important;min-width:13px!important;height:13px!important;padding:0 3px!important;border-radius:7px!important;
  box-shadow:none!important;background:var(--evm-buy)!important;color:#fff!important;font:800 9px/1 -apple-system,BlinkMacSystemFont,sans-serif!important}
html body #dvChartWrap .dv-ev-layer .dv-ev-sell .dv-ev-n{background:var(--evm-sell)!important}
html body #dvChartWrap .dv-ev-layer .dv-ev-me .dv-ev-n{right:-12px!important}
html body #dvChartWrap .dv-ev-layer :is(.dv-ev-devtag,.dv-ev-bs,.dv-ev-rail){display:none!important}

/* ── Chart card background (design-refs/chart-bg, user 2026-10-25): flat, no glow —
   dark = pure black, light = sky blue #CFE6FB. The chart itself is transparent, so this is what sits
   behind the candles; js/chart.js _volColors() mixes the opaque volume into the same two colours.
   Liquid glass keeps its own card (glass.css), so only the normal look changes. */
html:not([data-glass]):is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) body:not(#_cb) #detailView.dv-c3.dv-spot .dv-grid::before{background:#000!important}
html:not([data-glass]):not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body:not(#_cb) #detailView.dv-c3.dv-spot .dv-grid::before{background:#CFE6FB!important}
/* Line chart: your own trades are a small disc of the trade colour on the line, not a chevron */
html body #dvChartWrap .dv-ev-layer.is-line .dv-ev-dot.dv-ev-me{width:12px!important;height:12px!important;border-radius:50%!important;background:var(--evm-buy)!important}
html body #dvChartWrap .dv-ev-layer.is-line .dv-ev-dot.dv-ev-me.dv-ev-sell{background:var(--evm-sell)!important}
html body #dvChartWrap .dv-ev-layer.is-line .dv-ev-me .dv-ev-chev{display:none}
html body #dvChartWrap .dv-ev-layer.is-line .dv-ev-me .dv-ev-n{right:-9px!important;top:-8px!important}

/* ── Trade form «Ticket» (design-refs/coin-panel-zero round 2 variant 1, user 2026-10-25) ──
   Buy / Sell as centred pills, the amount big in the middle, quick amounts as four big keys, a big action
   button, balance and trade settings on one line. Desktop: the column runs the full card height — the form
   takes the free space (amount centred in it), the position card sits at the bottom edge. No tiles inside. */
html body #detailView.dv-c3.dv-spot{--tk-key:color-mix(in srgb,var(--c3-ink) 8%,transparent);--tk-c:var(--c3-up);--tk-cT:var(--c3-upT);--tk-on:var(--c3-onup)}
html body #detailView.dv-c3.dv-spot:has(.bs-tab.active[data-bs="sell"]){--tk-c:var(--c3-dn);--tk-cT:var(--c3-dnT);--tk-on:#fff}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) body #detailView.dv-c3.dv-spot:has(.bs-tab.active[data-bs="sell"]){--tk-on:#1A0509}
/* tabs */
html body #detailView.dv-c3.dv-spot .bs-card-head{margin:0 0 4px}
html body #detailView.dv-c3.dv-spot .bs-tabs{display:flex;justify-content:center;gap:6px}
html body #detailView.dv-c3.dv-spot .bs-tabs .bs-tab{width:auto;height:34px;min-height:34px;padding:0 16px;border-radius:999px;background:transparent;box-shadow:none;color:var(--c3-mute);font-size:15px;font-weight:800}
html body #detailView.dv-c3.dv-spot .bs-tabs .bs-tab.active[data-bs]{background:var(--tk-c);color:var(--tk-on);box-shadow:none}
/* amount: big, centred, no tile */
html body #detailView.dv-c3.dv-spot .bs-amount-card.bs-amount-card{padding:8px 0 0;border-radius:0;background:transparent!important;box-shadow:none!important}
html body #detailView.dv-c3.dv-spot .bs-amount-row{justify-content:center;align-items:baseline;gap:10px;min-height:84px}
html body #detailView.dv-c3.dv-spot .bs-c3-inp{--amt-max:64px;flex:0 1 auto;width:auto;min-width:0;max-width:100%;text-align:left;font-weight:800;letter-spacing:-.05em;padding:0}
html body #detailView.dv-c3.dv-spot .bs-c3-sub{justify-content:center;gap:2px 14px}
/* quick amounts: four big keys */
html body #detailView.dv-c3.dv-spot #bsPresets.bs-presets{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px;margin:0;padding:0}
html body #detailView.dv-c3.dv-spot #bsPresets .bs-pre{height:52px;min-width:0;padding:0 4px;border:0;border-radius:16px;background:var(--tk-key);box-shadow:none;color:var(--c3-ink);
  font:800 16px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-variant-numeric:tabular-nums;cursor:pointer}
html body #detailView.dv-c3.dv-spot #bsPresets .bs-pre.sel{background:var(--tk-c);color:var(--tk-on)}
html body #detailView.dv-c3.dv-spot #bsPresets .bs-pre:focus-visible{outline:2px solid var(--c3-ink);outline-offset:2px}
@media(hover:hover){html body #detailView.dv-c3.dv-spot #bsPresets .bs-pre:not(.sel):hover{background:color-mix(in srgb,var(--c3-ink) 13%,transparent)}}
/* action + balance / settings on one line */
html body #detailView.dv-c3.dv-spot .btn-trade-main{height:60px;min-height:60px;border-radius:18px;font-size:18px}
html body #detailView.dv-c3.dv-spot .bs-body{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-auto-rows:auto;gap:12px 10px}
html body #detailView.dv-c3.dv-spot .bs-body > *{grid-column:1/-1;margin:0}
html body #detailView.dv-c3.dv-spot .bs-body > .bs-amount-card{order:1}
html body #detailView.dv-c3.dv-spot .bs-body > #bsAmtErr{order:2}
html body #detailView.dv-c3.dv-spot .bs-body > #bsRecvBlock{order:3}
html body #detailView.dv-c3.dv-spot .bs-body > #bsPresets{order:4}
html body #detailView.dv-c3.dv-spot .bs-body > #btnTrade{order:5}
html body #detailView.dv-c3.dv-spot .bs-body > .bs-bal-row{order:6;grid-column:1;align-self:center;padding:0}
html body #detailView.dv-c3.dv-spot .bs-body > #bsSlipRow{order:6;grid-column:2}
html body #detailView.dv-c3.dv-spot #bsSlipRow .bs-trade-settings-btn{min-height:32px;width:auto;padding:0;gap:6px}
html body #detailView.dv-c3.dv-spot #bsSlipRow :is(.bs-ts-ico){width:18px;height:18px}
html body #detailView.dv-c3.dv-spot #bsSlipRow :is(.bs-ts-label,.bs-ts-val){font-size:13px;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot #bsSlipRow .bs-ts-val{color:var(--c3-ink)}
/* "Min received" shows once an amount is typed; while empty it keeps its line, invisible, so typing never makes
   the column taller (user, 2026-10-26 — the row appearing pushed the whole right column down) */
html body #detailView.dv-c3.dv-spot:has(.bs-c3-inp:placeholder-shown) #bsRecvBlock{visibility:hidden}
/* desktop: full-height column, amount centred in the free space, position at the bottom */
@media(min-width:861px){
  html body #detailView.dv-c3.dv-spot .dv-right{align-self:stretch}
  html body #detailView.dv-c3.dv-spot .dv-right > .bs-card{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
  html body #detailView.dv-c3.dv-spot .bs-card > .bs-body{flex:1 1 auto;grid-template-rows:1fr}
  html body #detailView.dv-c3.dv-spot .bs-body > .bs-amount-card{align-self:center}
  html body #detailView.dv-c3.dv-spot .dv-right > .cpos{margin-top:auto}
}
/* phones: form first, position under it */
html body #detailView.dv-c3.dv-spot .dv-right > .cpos{order:3}
/* fit at the column's 304px: quick-amount labels carry "GRAM", balance and settings share one line, avg entry never cut */
html body #detailView.dv-c3.dv-spot #bsPresets .bs-pre{font-size:13.5px;padding:0 2px;white-space:nowrap}
html body #detailView.dv-c3.dv-spot .bs-body > .bs-bal-row{font-size:12.5px;line-height:1.3}
html body #detailView.dv-c3.dv-spot #bsSlipRow .bs-ts-ico{display:none}
html body #detailView.dv-c3.dv-spot #bsSlipRow :is(.bs-ts-label,.bs-ts-val){font-size:12.5px}
#detailView .cpos-who{flex:none}
#detailView .cpos-nm{font-size:18px;overflow:visible;text-overflow:clip}
#detailView .cpos-hold{flex:1 1 auto;font-size:13.5px}
/* liquid glass paints the amount field as a glass tile — in the ticket it has no tile */
html[data-glass] body:not(#_g1):not(#_g2):not(#_g3) #detailView.dv-c3.dv-spot .bs-amount-card{background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* user 2026-10-25: no share slider; the currency right after the number (the field is as wide as its text,
   js/coin-v3.js fit); balance and slippage on one even line */
html body #detailView.dv-c3.dv-spot .bs-amount-card .bs-c3-sl{display:none}
html body #detailView.dv-c3.dv-spot .bs-amount-card.is-long .bs-amount-row{flex-wrap:nowrap}
html body #detailView.dv-c3.dv-spot .bs-amount-row .bs-cur-badge{position:static;flex:none}
html body #detailView.dv-c3.dv-spot .bs-amount-row .bs-cur-badge span{font-size:20px;font-weight:800;letter-spacing:-.01em}
html body #detailView.dv-c3.dv-spot .bs-body > .bs-bal-row,html body #detailView.dv-c3.dv-spot .bs-body > #bsSlipRow{align-self:center;min-height:24px;display:flex;align-items:center}
html body #detailView.dv-c3.dv-spot .bs-body > .bs-bal-row .bs-bal-txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
html body #detailView.dv-c3.dv-spot #bsSlipRow .bs-trade-settings-btn{min-height:24px;display:flex;align-items:center;gap:6px}
html body #detailView.dv-c3.dv-spot #bsSlipRow .bs-ts-left{display:flex;align-items:center;gap:0}
html body #detailView.dv-c3.dv-spot #bsSlipRow .bs-ts-label{font-size:0}
html body #detailView.dv-c3.dv-spot #bsSlipRow .bs-ts-label::before{content:"Slippage";font-size:13px;font-weight:600;color:var(--c3-mute)}
html body #detailView.dv-c3.dv-spot #bsSlipRow .bs-ts-right{display:flex;align-items:center;gap:4px}
html body #detailView.dv-c3.dv-spot #bsSlipRow .bs-ts-val{font-size:13px;font-weight:800;color:var(--c3-ink)}
/* "Token balance 803 883 $COIN" didn't fit next to slippage — one word, like on Buy */
html body #detailView.dv-c3.dv-spot .bs-body > .bs-bal-row #bsBalLbl{font-size:0}
html body #detailView.dv-c3.dv-spot .bs-body > .bs-bal-row #bsBalLbl::before{content:"Balance";font-size:13px}
/* GRAM next to the amount and on the quick-amount keys */
html body #detailView.dv-c3.dv-spot .bs-cur-badge .bs-cur-gem{display:block;width:34px;height:34px;object-fit:contain}
html body #detailView.dv-c3.dv-spot .bs-amount-row .bs-cur-badge:has(.bs-cur-gem){align-self:center}
html body #detailView.dv-c3.dv-spot #bsPresets .bs-pre{display:inline-flex;align-items:center;justify-content:center;gap:4px}
html body #detailView.dv-c3.dv-spot #bsPresets .bs-pre .bs-pre-gem{width:18px;height:18px;object-fit:contain;flex:none}
html body #detailView.dv-c3.dv-spot #bsPresets .bs-pre:has(.bs-pre-gem){font-size:16px}
/* GRAM next to the amount: its coin (Emodji/gram.webp), 64 px (design-refs/gram-size-five 3, user 2026-11-03) */
html body #detailView.dv-c3.dv-spot .bs-cur-badge .bs-cur-gem{width:64px;height:64px}
/* quick-amount keys: the number is the whole key — bigger and denser (user 2026-10-25) */
html body #detailView.dv-c3.dv-spot #bsPresets .bs-pre{height:56px;font-size:22px;font-weight:800;letter-spacing:-.02em}
/* long amounts: older rules squeezed the field to flex-basis 0 after 7 digits, so the number vanished;
   the ticket field is always as wide as its text (js/coin-v3.js fit shrinks the size instead) */
html body #detailView.dv-c3.dv-spot .bs-amount-card.is-long .bs-c3-inp.bs-c3-inp{flex:0 1 auto;flex-basis:auto}
html body #detailView.dv-c3.dv-spot .bs-amount-card.is-long .bs-cur-badge span{font-size:20px}
html body #detailView.dv-c3.dv-spot .bs-amount-row:has(.bs-cur-gem){align-items:center}
/* Sell: the coin's picture next to the amount, sized like the gem on Buy */
html body #detailView.dv-c3.dv-spot .bs-cur-badge .bs-cur-coin{display:block;width:44px;height:44px;border-radius:12px;object-fit:cover}
html body #detailView.dv-c3.dv-spot .bs-amount-row:has(.bs-cur-coin){align-items:center}
/* balance / slippage line a step bigger: quiet 15px labels, bold 17px values (design-refs/coin-panel-v2 variant 1, user 2026-10-26) */
html body #detailView.dv-c3.dv-spot .bs-body > .bs-bal-row .bs-bal-txt{font-size:15px}
html body #detailView.dv-c3.dv-spot .bs-body > .bs-bal-row #bsBalLbl::before{font-size:15px}
html body #detailView.dv-c3.dv-spot .bs-body > .bs-bal-row .bs-bal-val{font-size:17px;font-weight:800;letter-spacing:-.01em}
html body #detailView.dv-c3.dv-spot #bsSlipRow .bs-ts-label::before{font-size:15px}
html body #detailView.dv-c3.dv-spot #bsSlipRow .bs-ts-val{font-size:17px}
html body #detailView.dv-c3.dv-spot .bs-body > :is(.bs-bal-row,#bsSlipRow){min-height:30px}
html body #detailView.dv-c3.dv-spot .bs-bal-val .bs-bal-coin{display:inline-block;width:18px;height:18px;margin-left:5px;border-radius:5px;object-fit:cover;vertical-align:-3px}
#detailView .cpos [hidden]{display:none}

/* 2026-10-26 site pass: the old dark-theme sheet (port-void-type) gave the header min-height 88px and the chart
   min-height 460–560px, so in dark the coin page sat lower and the phone chart was ~200px taller than in light.
   Both themes now share the light layout */
html body #detailView.dv-c3.dv-spot .dv-header{min-height:0}
html body #detailView.dv-c3.dv-spot .dv-chart-wrap:not(.fs){min-height:0}

/* 2026-10-26 (user, stand chart-tags variant 1): the live price, avg buy and avg sell tags on the price scale were
   three different lengths. Now one column: every tag as wide as the scale, same right edge, text centred.
   #dvChartWrap so the fullscreen chart (moved out of #detailView) keeps it too.
   2026-11-26 (user, stand price-marker-five variant 3): the tag is the number only, sized to the column (the old
   88px tag stuck out 16px). 2026-11-26 (user, "like GMGN"): a square-cornered tag exactly as wide as the scale;
   captions are plain coloured text on the line, nothing behind them but the chart. */
html body #dvChartWrap .dv-ax-badge.is-on-scale.is-on-scale{right:auto!important;left:calc(100% - var(--ax-scale-w,72px))!important;width:var(--ax-scale-w,72px)!important;min-width:0!important;
  max-width:none!important;height:20px;padding:0!important;justify-content:center;border-radius:2px;box-sizing:border-box}
html body #dvChartWrap .dv-ax-badge.is-on-scale.is-on-scale .dv-ax-v{width:100%;text-align:center;font-size:12px;font-weight:600;line-height:20px;
  font-variant-numeric:tabular-nums;letter-spacing:0;white-space:nowrap;overflow:visible}

/* A coin that couldn't be opened: only the message. The page underneath belongs to the previous coin
   and its trade form still works, so it must not stay on screen. */
#detailView.dv-load-failed > :not(#dvLoadErr){display:none !important}
#detailView .dv-load-err-actions{display:flex;justify-content:center;gap:8px;margin-top:16px}
#detailView .dv-load-err-link{text-decoration:none}

/* phones: the coin page ends at the bottom bar's clearance — the light theme's 48px desktop bottom padding left a band (2026-11-04) */
@media(max-width:760px){html body #detailView.detail-view{padding-bottom:0}}

/* ── Trades tab (user 2026-11-12) ─────────────────────────────────────────────────────────────
   All / Buy / Sell is one segmented control: a track with three equal parts, the chosen one filled — Buy in the
   rails' green, Sell in their red, All like the chosen tab above. Buy / Sell labels and sizes in the same bright
   rail colours: labels as solid pills with dark ink; sizes 19px bold (large text, 3:1) — in light theme a step
   deeper than the rails, since #20B26C / #EF454A on the blue panel read at 2.2 / 2.9:1. */
html body #detailView.dv-c3.dv-spot{--tr-up:#20B26C;--tr-dn:#EF454A;--tr-up-ink:#03140A;--tr-dn-ink:#1C0409;--tr-up-txt:#20B26C;--tr-dn-txt:#EF454A}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot{--tr-up-txt:#12904F;--tr-dn-txt:#D93A40}
html body #detailView.dv-c3.dv-spot #tradesFilter.trades-filter{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px!important;width:240px;max-width:100%;padding:3px!important;
  border:0;border-radius:14px;background:var(--c3-glass)!important;box-shadow:inset 0 0 0 1px var(--c3-line)!important}
html body #detailView.dv-c3.dv-spot #tradesFilter .tf-btn{display:flex;align-items:center;justify-content:center;min-height:0;height:34px;margin:0;padding:0 10px;border:0;border-radius:11px;
  background:transparent!important;box-shadow:none!important;color:var(--c3-mute)!important;font-family:inherit;font-size:13.5px;font-weight:750;line-height:1;cursor:pointer;
  -webkit-backdrop-filter:none;backdrop-filter:none;transition:background-color .15s ease,color .15s ease}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot #tradesFilter .tf-btn:not(.active){color:var(--lb-text-2,#34506B)!important}
@media(hover:hover){html body #detailView.dv-c3.dv-spot #tradesFilter .tf-btn:not(.active):hover{color:var(--c3-ink)!important}}
html body #detailView.dv-c3.dv-spot #tradesFilter .tf-btn.active[data-tf="all"]{background:var(--c3-ink)!important;color:var(--c3-card)!important}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView.dv-c3.dv-spot #tradesFilter .tf-btn.active[data-tf="all"]{background:#0077CC!important;color:#fff!important}
html body #detailView.dv-c3.dv-spot #tradesFilter .tf-btn.active[data-tf="buy"]{background:var(--tr-up)!important;color:var(--tr-up-ink)!important}
html body #detailView.dv-c3.dv-spot #tradesFilter .tf-btn.active[data-tf="sell"]{background:var(--tr-dn)!important;color:var(--tr-dn-ink)!important}
/* 2026-11-26 (user): buy / sell pills take white text on the deeper fills (white on the bright rails was 2.75 and 3.74:1) */
html body #detailView.dv-c3.dv-spot .trades-table .tr-type.buy{background:#0E7A41!important;color:#FFFFFF!important;font-weight:800}
html body #detailView.dv-c3.dv-spot .trades-table .tr-type.sell{background:#C92A36!important;color:#FFFFFF!important;font-weight:800}
html body #detailView.dv-c3.dv-spot .trades-table .tr-buy .tr-ton{color:var(--tr-up-txt)!important;font-size:19px;font-weight:800}
html body #detailView.dv-c3.dv-spot .trades-table .tr-sell .tr-ton{color:var(--tr-dn-txt)!important;font-size:19px;font-weight:800}
html body #detailView.dv-c3.dv-spot .trades-table :is(.tr-buy,.tr-sell) .tr-unit{color:inherit!important}
@media(max-width:860px){
  html body #detailView.dv-c3.dv-spot #tradesFilter.trades-filter{width:100%}
  html body #detailView.dv-c3.dv-spot #tradesFilter .tf-btn{height:36px}
}

/* Coin tabs (user 2026-11-26): TG Signals is gone everywhere, as on desktop (the X Feed is the feed),
   and an About tab carries the whole description and the links. Phones: 6 tabs = two rows of three. */
html body #detailView :is(#dvTabTg,#dvTgSignalsTabBody){display:none!important}
html body #detailView .dv-about{max-width:72ch;padding:12px 4px 20px}
html body #detailView .dv-about-desc{margin:0;font-size:15px;line-height:1.6;color:#EDEDE6;white-space:pre-line;overflow-wrap:anywhere;text-wrap:pretty}
html body #detailView .dv-about-empty{margin:0;font-size:14.5px;color:#A6A8B0}
html body #detailView .dv-about-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView .dv-about-desc{color:#0A2540}
html:not([data-theme="dark"]):not([data-scheme="dark"]):not([data-theme="voidtype"]) body #detailView .dv-about-empty{color:#34506B}
/* the trade filter belongs to Trades only: _switchDetailTab hides it inline, the grid rule above is !important */
html body #detailView.dv-c3.dv-spot #tradesFilter.trades-filter[style*="display: none"]{display:none!important}
/* the old side card showed the first 100 characters; the About tab has the whole text and the links */
html body #detailView .desc-card{display:none!important}
