/* Basira price chart (assets/chart.js). Uses the global tokens only; does not restyle the shell. */
.dgc{--dgc-h:clamp(360px,56vh,600px);position:relative;display:flex;flex-direction:column;gap:10px;
  background:var(--panel,#10151D);border:1px solid var(--line,#1E2530);border-radius:var(--r-lg,14px);padding:14px 14px 10px;min-width:0}
.dgc-mini{--dgc-h:220px;padding:10px 10px 8px;gap:8px}
.dgc-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;min-width:0}
.dgc-legend{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-width:0;font:500 12px/1.5 'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted,#A3ACBA);font-variant-numeric:tabular-nums}
.dgc-sym{font:600 13px/1.4 var(--ui,'Geist',system-ui,sans-serif);color:var(--text,#F3F5F8);letter-spacing:.01em}
.dgc-iv{color:var(--faint,#808A99);font-size:11px}
.dgc-iv:empty{display:none}
.dgc-ohlc{display:flex;flex-wrap:wrap;gap:4px 12px}
.dgc-ohlc span{white-space:nowrap}
.dgc-k{font-style:normal;color:var(--faint,#808A99);margin-right:4px}
.dgc-legend .up{color:var(--mint,#2BC48A)}.dgc-legend .down{color:var(--crimson,#F2564D)}
.dgc-sw{display:inline-block;width:10px;height:2px;border-radius:2px;margin-right:6px;vertical-align:middle}
.dgc-li{color:var(--muted,#A3ACBA)}
.dgc-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.dgc-tfs{display:flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:rgba(255,255,255,.035);border:1px solid var(--line,#1E2530);
  overflow-x:auto;scrollbar-width:none;max-width:100%}
.dgc-tfs::-webkit-scrollbar{display:none}
.dgc-sep{width:1px;height:14px;background:var(--line-2,#2E3846);margin:0 4px;flex:none}
.dgc-chip{appearance:none;border:0;background:transparent;color:var(--muted,#A3ACBA);font:500 12px/1 'Geist Mono',ui-monospace,monospace;
  padding:7px 10px;border-radius:999px;cursor:pointer;white-space:nowrap;flex:none;
  transition:background-color 160ms ease,color 160ms ease,transform 120ms cubic-bezier(.23,1,.32,1)}
.dgc-chip[aria-pressed="true"]{background:rgba(43,196,138,.14);color:var(--mint,#2BC48A)}
.dgc-chip:active{transform:scale(.96)}
.dgc-acts{display:flex;align-items:center;gap:4px}
.dgc-log{font-family:"Geist Mono",ui-monospace,monospace}
.dgc-ib{appearance:none;display:inline-flex;align-items:center;gap:6px;height:32px;min-width:32px;justify-content:center;padding:0 8px;border-radius:9px;
  border:1px solid var(--line,#1E2530);background:transparent;color:var(--muted,#A3ACBA);cursor:pointer;font:500 12px/1 var(--ui,'Geist',system-ui,sans-serif);
  transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease,transform 120ms cubic-bezier(.23,1,.32,1)}
.dgc-ib svg{width:16px;height:16px;flex:none}
.dgc-ib[aria-pressed="true"],.dgc-ib.on{color:var(--mint,#2BC48A);border-color:rgba(43,196,138,.4);background:rgba(43,196,138,.08)}
.dgc-ib:active{transform:scale(.96)}
@media (hover:hover) and (pointer:fine){
  .dgc-chip:hover{color:var(--text,#F3F5F8)}
  .dgc-ib:hover{color:var(--text,#F3F5F8);border-color:var(--line-2,#2E3846)}
}
.dgc-chip:focus-visible,.dgc-ib:focus-visible,.dgc-opt:focus-visible{outline:2px solid var(--mint,#2BC48A);outline-offset:2px}
.dgc-pop-w{position:relative}
.dgc-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:190px;padding:6px;border-radius:12px;background:var(--panel-2,#151B25);
  border:1px solid var(--line-2,#2E3846);box-shadow:0 18px 40px -16px rgba(0,0,0,.8);transform-origin:top right;
  animation:dgc-pop 160ms cubic-bezier(.23,1,.32,1)}
@keyframes dgc-pop{from{opacity:0;transform:scale(.96) translateY(-2px)}to{opacity:1;transform:none}}
.dgc-opt{display:flex;align-items:center;gap:9px;width:100%;padding:8px 9px;border-radius:8px;border:0;background:transparent;color:var(--text,#F3F5F8);
  font:500 13px/1.2 var(--ui,'Geist',system-ui,sans-serif);text-align:left;cursor:pointer}
.dgc-opt:hover{background:rgba(255,255,255,.05)}
.dgc-opt input{accent-color:var(--mint,#2BC48A);margin:0}
.dgc-opt i{width:12px;height:3px;border-radius:2px;flex:none}
.dgc-pop-note{margin:6px 9px 4px;font-size:11.5px;line-height:1.4;color:var(--faint,#808A99)}
.dgc-stage{position:relative;height:var(--dgc-h);min-height:0;border-radius:10px;overflow:hidden}
.dgc-canvas{position:absolute;inset:0}
.dgc-stage.loading .dgc-canvas{opacity:.35;transition:opacity 200ms ease}
.dgc-skel{position:absolute;inset:12% 6% 14% 2%;display:flex;align-items:flex-end;gap:2.2%;pointer-events:none}
.dgc-skel i{flex:1;border-radius:3px;background:rgba(255,255,255,.06);animation:dgc-sk 1.4s ease-in-out infinite}
.dgc-skel i:nth-child(odd){height:42%}.dgc-skel i:nth-child(even){height:60%}.dgc-skel i:nth-child(3n){height:30%}.dgc-skel i:nth-child(4n){height:72%}
.dgc-skel i:nth-child(2){animation-delay:.08s}.dgc-skel i:nth-child(3){animation-delay:.16s}.dgc-skel i:nth-child(4){animation-delay:.24s}
.dgc-skel i:nth-child(5){animation-delay:.32s}.dgc-skel i:nth-child(6){animation-delay:.4s}.dgc-skel i:nth-child(7){animation-delay:.48s}
@keyframes dgc-sk{0%,100%{opacity:.5}50%{opacity:1}}
.dgc-skel[hidden],.dgc-empty[hidden]{display:none}
.dgc-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center}
.dgc-empty p{max-width:420px;margin:0;color:var(--muted,#A3ACBA);font-size:14px;line-height:1.55}
.dgc-empty b{color:var(--text,#F3F5F8);font-weight:600}
.dgc-empty .dgc-chip{border:1px solid var(--line-2,#2E3846)}
.dgc-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-size:11.5px;line-height:1.45;color:var(--faint,#808A99)}
.dgc-foot a{color:var(--muted,#A3ACBA);text-decoration:underline;text-decoration-color:rgba(255,255,255,.2);text-underline-offset:2px}
.dgc-foot a:hover{color:var(--text,#F3F5F8)}
.dgc-mini .dgc-foot .dgc-src{display:none}
/* full screen (native when allowed, fixed overlay otherwise) */
.dgc-full{position:fixed;inset:0;z-index:2147483000;border-radius:0;border:0;padding:16px 18px 12px;--dgc-h:auto;background:var(--bg,#0A0E14)}
.dgc-full .dgc-stage{flex:1;height:auto}
.dgc-full:fullscreen{padding:16px 18px 12px}
html.dgc-lock,html.dgc-lock body{overflow:hidden}
/* phones */
@media (max-width:640px){
  .dgc{--dgc-h:360px;padding:12px 10px 8px;border-radius:var(--r-md,12px)}
  .dgc-mini{--dgc-h:200px}
  .dgc-tools{width:100%;justify-content:space-between}
  .dgc-tfs{flex:1 1 100%}
  .dgc-chip{padding:7px 9px}
  .dgc-txt span{display:none}
  .dgc-txt{padding:0 8px}
  .dgc-pop{right:auto;left:0;transform-origin:top left}
  .dgc-acts .dgc-pop-w:last-of-type .dgc-pop{left:auto;right:0}
}
@media (prefers-reduced-motion:reduce){
  .dgc-skel i{animation:none;opacity:.7}
  .dgc-pop{animation:none}
  .dgc-chip,.dgc-ib{transition:background-color 160ms ease,color 160ms ease}
  .dgc-chip:active,.dgc-ib:active{transform:none}
}
/* chart section on coin and stock pages */
.dgc-sec{margin-top:6px}
.dgc-sec .dgl-h2{margin-bottom:14px}
