#quote-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  color: #f0f6f2;
  border: 1px solid #8bad993e;
  border-top-color: #b4debf68;
  border-radius: 22px;
  background: radial-gradient(ellipse at 70% -30%,#285742 0,transparent 59%),#131b18;
  box-shadow: 0 24px 84px #020805a8,inset 0 1px #e5ffec16;
}
#quote-dialog::backdrop { background: #040a08ba; backdrop-filter: blur(7px); }
#quote-dialog .quote-toolbar { margin: 0; padding: 12px 19px 0; color: #b7c8be; font-size: 12px; }
#quote-dialog #close-chart { width: 34px; height: 34px; }
#quote-dialog .price-panel {
  margin: 0;
  padding: 3px 22px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#quote-dialog .board-head { margin-bottom: 14px; }
#quote-dialog .board-head h2 { font-size: clamp(20px,2vw,24px); font-weight: 620; color: #eff7f2; }
#quote-dialog .board-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #a5cfb32d;
  border-radius: 18px;
  color: #c2e8cb;
  font: 500 12px/1.5 Vazirmatn,sans-serif;
}
#quote-dialog .market-tabs {
  display: flex;
  justify-content: start;
  gap: 3px;
  padding: 4px;
  border: 1px solid #a0c9b021;
  border-radius: 12px;
  background: #09100c70;
}
#quote-dialog .market-tab {
  flex: 1 0 auto;
  min-width: 40px;
  min-height: 31px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #a3b4aa;
  font: 630 12.5px/1.3 system-ui,sans-serif;
  letter-spacing: .015em;
}
#quote-dialog .market-tab[aria-pressed=true] { border-color: #b7f7ce41; background: #2e4638; color: #ddffe7; }
#quote-dialog .chart-info { margin-top: 20px; gap: 8px; }
#quote-dialog .chart-identity { gap: 3px 9px; }
#quote-dialog .chart-identity strong { justify-self: start; color: #edf4ef; font-size: clamp(15px,2vw,19px); }
#quote-dialog .chart-identity small, #quote-dialog .quote-updated { color: #a9bbb0; font: 450 12px/1.5 Vazirmatn,sans-serif; }
#quote-dialog .mark-price b { color: #f4f8f5; font: 560 clamp(24px,3.4vw,41px)/1.2 system-ui,sans-serif; letter-spacing: -.045em; }
#quote-dialog .mark-price small { font: 550 11px/1 system-ui,sans-serif; color: #b4c7ba; }
#quote-dialog .chart-sub { margin: 8px 0 16px; color: #bccbc2; font: 450 12px/1.5 Vazirmatn,sans-serif; }
#quote-dialog .market-delta { padding: 2px 6px; font-size: 12px; border-radius: 6px; }
#quote-dialog .quote-plot-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 0 7px;
  border-top: 1px solid #acc5b52b;
}
#quote-dialog .quote-plot-controls > strong { color: #d0ddd5; font: 550 13px/1.6 Vazirmatn,sans-serif; }
#quote-dialog .range-control { gap: 3px; }
#quote-dialog .range-button { padding: 3px 8px; min-height: 28px; font-size: 12px; color: #afbdb4; border-radius: 7px; }
#quote-dialog .range-button[aria-pressed=true] { color: #d5f6df; background: #344a3c; }
#quote-dialog .market-tab:hover, #quote-dialog .range-button:hover { color: #effff4; background: #28392f; }
#quote-dialog .market-plot { padding: 0; border-radius: 10px; }
#quote-dialog .quote-interaction {
  padding: 8px 6px 1px;
  border: 1px solid #d2edda14;
  border-radius: 12px;
  background: linear-gradient(180deg,#09130eb8,#0e181366);
  cursor: crosshair;
  touch-action: pan-y;
}
#quote-dialog .market-plot svg { min-height: 0; overflow: hidden; }
#quote-dialog .market-plot svg text { fill: #adc0b2; font: 500 11.5px/1 Vazirmatn,sans-serif; }
#quote-dialog .market-plot svg .quote-axis-price { font: 500 11.5px/1 system-ui,sans-serif; font-variant-numeric: tabular-nums; }
#quote-dialog .plot-rule { stroke: #adc2b135; stroke-width: 1; stroke-dasharray: 2 4; }
#quote-dialog .price-line { stroke: #8be3ae; stroke-width: 2.1; }
#quote-dialog .price-cursor { stroke: #d9f1dfad; }
#quote-dialog .quote-point { fill: #b6fbc8; stroke: #234631; stroke-width: 2; }
#quote-dialog .plot-readout { margin: 11px 0 0; color: #b9c9be; }
#quote-dialog .quote-readout-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; font: 500 12px/1.5 Vazirmatn,sans-serif; }
#quote-dialog .quote-moment { color: #bac9bf; }
#quote-dialog .quote-ohlc { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 6px 0 0; }
#quote-dialog .quote-ohlc > div { min-width: 0; padding-inline-start: 10px; border-inline-start: 1px solid #c3dccb26; }
#quote-dialog .quote-ohlc > div:first-child { border: 0; padding-inline-start: 0; }
#quote-dialog .quote-ohlc dt { color: #9eafa4; font: 450 11px/1.6 Vazirmatn,sans-serif; }
#quote-dialog .quote-ohlc dd {
  margin: 0;
  color: #e2ece5;
  text-align: right;
  font: 550 14px/1.45 system-ui,sans-serif;
  font-variant-numeric: tabular-nums;
}
#quote-dialog .quote-ohlc > div:last-child dd { color: #b8efcb; }
#quote-dialog :is(.range-button,.market-tab,.market-plot,.board-link):focus-visible { outline: 2px solid #b9f6cd; outline-offset: 2px; }
@media (max-width: 570px) {
  #quote-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 17px; }
  #quote-dialog .quote-toolbar { padding: 7px 11px 0; }
  #quote-dialog .price-panel { padding: 0 11px 12px; }
  #quote-dialog .board-head { margin-bottom: 9px; }
  #quote-dialog .market-tabs { gap: 1px; }
  #quote-dialog .market-tab { padding: 3px 4px; min-height: 33px; }
  #quote-dialog .chart-info { margin-top: 12px; }
  #quote-dialog .chart-identity > svg { width: 30px; height: 30px; }
  #quote-dialog .chart-identity { gap: 2px 5px; }
  #quote-dialog .chart-identity small, #quote-dialog .quote-updated { font-size: 11px; }
  #quote-dialog .chart-sub { margin-block: 6px 10px; }
  #quote-dialog .range-button { min-height: 32px; }
  #quote-dialog .quote-interaction { padding-inline: 3px; }
  #quote-dialog .quote-ohlc { gap: 4px; }
  #quote-dialog .quote-ohlc > div { padding-inline-start: 5px; }
  #quote-dialog .quote-ohlc dd { font-size: 12px; }
}
@media (max-width: 355px) {
  #quote-dialog .mark-price b { font-size: 21px; }
  #quote-dialog .chart-identity strong { font-size: 14px; }
  #quote-dialog .market-tab { min-width: 36px; }
  #quote-dialog .range-control { gap: 0; }
}
