.volume-profile-panel {
  min-width: 0;
}

.volume-profile-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.volume-profile-source-pill {
  white-space: nowrap;
}

.volume-profile-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #d6dce4;
  border-radius: 9px;
  background: #fff;
  color: #253142;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.open-interest-panel {
  min-width: 0;
}

.open-interest-profile-card {
  margin-top: 0;
}

.main-open-interest-profile-card {
  margin-top: 0;
}

.volume-profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px 10px;
  border-bottom: 1px solid #eef1f4;
}

.volume-profile-card-head h3 {
  margin: 0;
  color: #303846;
  font-size: 1.05rem;
  font-weight: 700;
}

.volume-profile-card-head p {
  margin: 4px 0 0;
  color: #7b8490;
  font-size: .76rem;
}

.volume-profile-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #525d6b;
  font-size: .76rem;
  white-space: nowrap;
}

.volume-profile-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.volume-profile-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.volume-profile-legend .legend-put i { background: #f2a900; }
.volume-profile-legend .legend-call i { background: #0b6fdc; }
.volume-profile-legend .legend-iv i {
  width: 20px;
  height: 0;
  border-radius: 0;
  border-top: 2px dashed #cf6666;
}

.volume-profile-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 14px;
  min-height: 34px;
  padding: 8px 16px 4px;
  background: #fff;
  color: #4b5563;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

.profile-metric b { font-weight: 700; }
.profile-put { color: #d89700; }
.profile-call { color: #0966cb; }
.profile-iv { color: #b65252; }
.profile-future { color: #4c5561; }

.profile-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.chart-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #f8fafc;
}

.chart-zoom-button {
  width: 30px;
  height: 28px;
  border: 1px solid #c9d1dc;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.chart-zoom-button:hover:not(:disabled) {
  background: #eef4fb;
  border-color: #9eb3ca;
}

.chart-zoom-button:disabled {
  opacity: .4;
  cursor: default;
}

.chart-zoom-level {
  min-width: 42px;
  color: #667085;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.chart-scroll-control {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  margin: 10px 14px 4px;
  min-height: 38px;
  user-select: none;
}

.chart-scroll-edge {
  display: grid;
  place-items: center;
  color: #667085;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.chart-scroll-control input[type="range"] {
  width: 100%;
  min-width: 0;
  height: 34px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
  accent-color: #4c7ea8;
  -webkit-appearance: none;
  appearance: none;
}

.chart-scroll-control input[type="range"]::-webkit-slider-runnable-track {
  height: 14px;
  border: 1px solid #aab5c3;
  border-radius: 999px;
  background: #e7ebf0;
}

.chart-scroll-control input[type="range"]::-webkit-slider-thumb {
  width: 48px;
  height: 30px;
  margin-top: -9px;
  border: 3px solid #f8fafc;
  border-radius: 999px;
  background: #536f8d;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .28);
  -webkit-appearance: none;
  appearance: none;
}

.chart-scroll-control input[type="range"]::-moz-range-track {
  height: 14px;
  border: 1px solid #aab5c3;
  border-radius: 999px;
  background: #e7ebf0;
}

.chart-scroll-control input[type="range"]::-moz-range-thumb {
  width: 48px;
  height: 30px;
  border: 3px solid #f8fafc;
  border-radius: 999px;
  background: #536f8d;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .28);
}

.chart-scroll-control.is-disabled {
  opacity: .45;
}

.chart-scroll-control.is-disabled input[type="range"] {
  cursor: default;
}

@media (max-width: 900px), (pointer: coarse) {
  .chart-scroll-control {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 10px;
    margin: 12px 10px 5px;
    min-height: 52px;
  }

  .chart-scroll-edge {
    font-size: 1.5rem;
  }

  .chart-scroll-control input[type="range"] {
    height: 48px;
  }

  .chart-scroll-control input[type="range"]::-webkit-slider-runnable-track {
    height: 18px;
  }

  .chart-scroll-control input[type="range"]::-webkit-slider-thumb {
    width: 64px;
    height: 40px;
    margin-top: -12px;
  }

  .chart-scroll-control input[type="range"]::-moz-range-track {
    height: 18px;
  }

  .chart-scroll-control input[type="range"]::-moz-range-thumb {
    width: 64px;
    height: 40px;
  }
}

.chart-pan-hint {
  margin: 7px 14px 11px;
  color: #7b8490;
  font-size: .7rem;
  line-height: 1.35;
}

.volume-profile-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 500px;
  min-height: 320px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  scrollbar-gutter: stable;
  scrollbar-color: #718096 #e7ebf0;
  contain: inline-size;
  box-sizing: border-box;
  background: #fff;
}

.volume-profile-canvas-wrap::-webkit-scrollbar {
  height: 16px;
}

.volume-profile-canvas-wrap::-webkit-scrollbar-track {
  background: #e7ebf0;
  border-radius: 999px;
}

.volume-profile-canvas-wrap::-webkit-scrollbar-thumb {
  min-width: 72px;
  border: 3px solid #e7ebf0;
  border-radius: 999px;
  background: #718096;
  background-clip: padding-box;
}

.volume-profile-canvas-wrap::-webkit-scrollbar-thumb:hover {
  background: #53657a;
  background-clip: padding-box;
}

@media (max-width: 900px), (pointer: coarse) {
  .volume-profile-canvas-wrap {
    scrollbar-width: none;
  }

  .volume-profile-canvas-wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
}

.volume-profile-canvas-wrap.is-chart-zoomed {
  cursor: grab;
}

.volume-profile-canvas-wrap.is-chart-zoomed.is-dragging {
  cursor: grabbing;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  .volume-profile-canvas-wrap.is-chart-zoomed canvas {
    cursor: grab;
  }
}

.volume-profile-canvas-wrap.is-chart-zoomed.is-dragging canvas {
  cursor: grabbing;
}

#intradayVolumeCanvas,
#openInterestCanvas,
#mainOpenInterestCanvas {
  display: block !important;
  width: auto;
  max-width: none !important;
  min-width: 100%;
  height: 100% !important;
  box-sizing: border-box !important;
  background: #fff;
  cursor: crosshair;
  touch-action: pan-y;
}

.volume-profile-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 28px;
  background: rgba(255, 255, 255, .92);
  color: #667085;
  text-align: center;
  z-index: 3;
}

.volume-profile-empty.hidden {
  display: none;
}

.volume-profile-tooltip {
  position: absolute;
  z-index: 5;
  width: 170px;
  display: grid;
  gap: 4px;
  pointer-events: none;
  border: 1px solid #ced5de;
  border-radius: 7px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
  color: #3f4855;
  font-size: .72rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.volume-profile-tooltip strong {
  color: #1f2937;
  font-size: .78rem;
}

.volume-profile-tooltip .tooltip-put { color: #d89700; }
.volume-profile-tooltip .tooltip-call { color: #0966cb; }
.volume-profile-tooltip.hidden { display: none; }

@media (max-width: 900px) {
  .volume-profile-card-head {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .volume-profile-legend {
    justify-content: flex-start;
  }

  .profile-card-actions {
    align-items: flex-start;
    width: 100%;
  }

  .volume-profile-canvas-wrap {
    height: 430px;
  }
}

@media (max-width: 620px) {
  .volume-profile-head-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .volume-profile-card-head {
    padding: 12px 12px 8px;
  }

  .volume-profile-metrics {
    justify-content: flex-start;
    gap: 5px 11px;
    padding: 7px 12px 2px;
    font-size: .74rem;
  }

  .volume-profile-legend {
    gap: 9px;
    font-size: .7rem;
  }

  .volume-profile-canvas-wrap {
    height: 365px;
  }
}


.volume-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.volume-analysis-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(56 189 248 / 34%);
  border-radius: 10px;
  background: rgb(9 22 32 / 92%);
  color: var(--text);
  box-shadow: var(--shadow);
  font-family: Inter, "Leelawadee UI", Tahoma, "Segoe UI", system-ui, sans-serif;
}

.volume-analysis-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 2px;
  background: var(--primary);
  box-shadow: 0 0 14px rgb(56 189 248 / 62%);
  pointer-events: none;
}

.analysis-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px 11px;
  border-bottom: 1px solid var(--border);
  background: rgb(9 22 32 / 96%);
}

.analysis-card-head h3 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.2;
}

.analysis-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.analysis-bias-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
}

.bias-bullish {
  border-color: rgb(45 212 191 / 40%);
  background: rgb(45 212 191 / 10%);
  color: var(--bull);
}

.bias-bearish {
  border-color: rgb(251 113 133 / 40%);
  background: rgb(251 113 133 / 10%);
  color: var(--bear);
}

.bias-neutral {
  border-color: rgb(145 164 183 / 34%);
  background: rgb(145 164 183 / 8%);
  color: var(--muted);
}

.bias-attention {
  border-color: rgb(56 189 248 / 42%);
  background: rgb(56 189 248 / 10%);
  color: var(--primary);
}

.analysis-card-body {
  display: grid;
  gap: 11px;
  padding: 13px 15px 14px;
  background: transparent;
}

.analysis-muted,
.analysis-caution {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
}

.analysis-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.analysis-summary-row > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 9px;
  background: rgb(7 16 24 / 55%);
}

.analysis-summary-row span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: .63rem;
}

.analysis-summary-row strong {
  display: block;
  color: var(--text);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.analysis-equations {
  display: grid;
  gap: 7px;
}

.analysis-equation {
  border-left: 3px solid var(--primary);
  border-radius: 7px;
  padding: 8px 9px;
  background: rgb(7 16 24 / 58%);
}

.analysis-equation-muted {
  border-left-color: var(--muted);
  background: rgb(7 16 24 / 42%);
}

.analysis-equation-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #cbd8e4;
  font-size: .69rem;
}

.analysis-equation-title strong {
  color: var(--primary);
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
}

.analysis-equation-detail {
  margin-top: 4px;
  color: var(--text);
  font-size: .70rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.analysis-equation-detail span {
  margin: 0 4px;
  color: var(--muted);
}

.analysis-equation-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: .62rem;
  font-variant-numeric: tabular-nums;
}

.analysis-formula-note {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 9px;
  background: rgb(7 16 24 / 55%);
  color: #cbd8e4;
  font-size: .68rem;
  line-height: 1.45;
}

.analysis-formula-note b {
  color: var(--text);
}

.analysis-conclusion {
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 9px 10px;
  background: rgb(7 16 24 / 42%);
}

.analysis-conclusion.bias-bullish {
  border-color: rgb(45 212 191 / 48%);
  background: rgb(45 212 191 / 8%);
  color: var(--bull);
}

.analysis-conclusion.bias-bearish {
  border-color: rgb(251 113 133 / 48%);
  background: rgb(251 113 133 / 8%);
  color: var(--bear);
}

.analysis-conclusion.bias-neutral {
  border-color: rgb(145 164 183 / 36%);
  background: rgb(145 164 183 / 7%);
  color: var(--muted);
}

.analysis-conclusion strong {
  display: block;
  margin-bottom: 4px;
  font-size: .78rem;
}

.analysis-conclusion p {
  margin: 0;
  color: var(--text);
  font-size: .72rem;
  line-height: 1.55;
}

.attention-lead {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgb(56 189 248 / 24%);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgb(56 189 248 / 7%);
  color: var(--text);
}

.attention-lead strong {
  font-size: .76rem;
}

.attention-lead span {
  color: var(--muted);
  font-size: .68rem;
}

.attention-list {
  display: grid;
  gap: 7px;
}

.attention-strike-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: rgb(7 16 24 / 55%);
}

.attention-rank {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgb(56 189 248 / 10%);
  color: var(--primary);
  font-size: .69rem;
  font-weight: 800;
}

.attention-strike-main {
  min-width: 0;
}

.attention-strike-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.attention-strike-title strong {
  color: var(--text);
  font-size: .76rem;
}

.attention-side {
  border-radius: 999px;
  padding: 2px 6px;
  font-size: .59rem;
  font-weight: 800;
  white-space: nowrap;
}

.attention-call {
  background: rgb(45 212 191 / 10%);
  color: var(--bull);
}

.attention-put {
  background: rgb(251 113 133 / 10%);
  color: var(--bear);
}

.attention-mixed {
  background: rgb(145 164 183 / 8%);
  color: var(--muted);
}

.attention-volume-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 11px;
  margin-top: 5px;
  color: var(--muted);
  font-size: .67rem;
  font-variant-numeric: tabular-nums;
}

.attention-volume-grid b {
  color: var(--text);
}

.attention-reason {
  margin-top: 4px;
  color: var(--muted);
  font-size: .61rem;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .volume-analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .analysis-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .analysis-bias-pill {
    align-self: flex-start;
  }

  .analysis-summary-row {
    grid-template-columns: 1fr;
  }

  .attention-strike-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
