/* Dedicated Vol Desk. Keep Workspace chart presentation unchanged. */
.vol-desk-page {
  margin: 0;
  background: var(--banana-background);
  color: var(--banana-text-body);
  font-family: var(--banana-font-body);
}

.vol-desk-page .legend-app.legend-app--iv-surface-page {
  --legend-accent: var(--banana-primary-fixed);
  --legend-bg-widget: #000;
  --legend-bg-elevated: #101010;
  --legend-surface: #0a0a0a;
  --legend-border: #292929;
  --legend-text: var(--banana-on-surface);
  --legend-text-muted: var(--banana-on-surface-variant);
  height: auto;
  overflow: visible;
  background: var(--banana-background);
}

.vol-desk-page .iv-surface-page-main {
  padding: 26px 28px 40px;
  overflow: visible;
}

.vol-desk-page .vol-desk-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-bottom: 23px;
}

.vol-desk-page .vol-desk-heading h1 {
  margin: 0;
  color: var(--banana-on-surface);
  font-family: var(--banana-font-heading);
  font-size: clamp(27px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.vol-desk-page .vol-desk-heading p {
  margin: 0;
  color: var(--banana-on-surface-variant);
  font-size: 13px;
  line-height: 1.5;
}

.vol-desk-page .iv-surface-page {
  height: clamp(620px, calc(100dvh - 146px), 980px);
  min-height: 620px;
  max-height: none;
}

.vol-desk-page .legend-app .legend-widget--iv-surface-page,
.vol-desk-page .legend-app .legend-widget--iv-surface-page .legend-widget-body {
  background: #000;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vol-desk-page .legend-app .legend-widget--iv-surface-page .legend-widget-header {
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--legend-border);
  border-bottom: 1px solid var(--legend-border);
  background: var(--banana-background);
  box-shadow: none;
}

.vol-desk-page .legend-app .legend-widget--iv-surface-page::before,
.vol-desk-page .legend-app .legend-widget--iv-surface-page::after {
  content: none;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.vol-desk-page .legend-app .legend-widget--iv-surface-page .legend-widget-body {
  padding: 0;
  overflow: hidden;
}

.vol-desk-page .legend-widget--iv-surface-page .legend-widget-ticker-input {
  box-sizing: border-box;
  width: 86px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--legend-border);
  border-radius: 5px;
  background: #000;
  color: var(--banana-on-surface);
  font-family: var(--banana-font-mono);
  font-size: 14px;
  font-weight: 600;
}

.vol-desk-page .legend-iv-surface-ctrls {
  gap: 8px 12px;
  padding: 0;
}

.vol-desk-page .legend-iv-surface-ctrls :is(select, input[type="number"]) {
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid var(--legend-border);
  border-radius: 5px;
  background: #000;
  color: var(--banana-text-body);
  font: 11px var(--banana-font-body);
  box-shadow: none;
}

.vol-desk-page .legend-iv-surface-ctrls input[type="number"] {
  box-sizing: border-box;
  width: 55px;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .legend-iv-surface-ctrls :is(label, .legend-iv-window-wrap) {
  font-size: 11px;
  color: var(--banana-on-surface-variant);
  white-space: nowrap;
}

.vol-desk-page .legend-iv-surface-ctrls__row-label {
  color: var(--banana-on-surface-variant);
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 400;
}

.vol-desk-page .legend-iv-cockpit {
  gap: 0;
}

.vol-desk-page .legend-iv-tabs--top {
  gap: 24px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--legend-border);
  border-radius: 0;
  background: #000;
}

.vol-desk-page .legend-iv-tabs--top .legend-iv-tab {
  align-self: stretch;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--banana-on-surface-variant);
  font: 500 12px var(--banana-font-body);
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  box-shadow: none;
  transform: none;
}

.vol-desk-page .legend-iv-tabs--top .legend-iv-tab:hover {
  color: var(--banana-on-surface);
  background: transparent;
  transform: none;
}

.vol-desk-page .legend-iv-tabs--top .legend-iv-tab--active {
  color: var(--banana-primary-fixed);
  border-bottom-color: var(--banana-primary-fixed);
  box-shadow: none;
}

.vol-desk-page .legend-iv-tabs--top .legend-iv-tab::after {
  content: none;
}

.vol-desk-page .legend-widget--iv-surface-page .legend-iv-cockpit__body {
  gap: 0;
  padding-top: 14px;
}

.vol-desk-page .legend-iv-rail {
  flex-basis: 340px;
  gap: 12px;
  padding: 0 0 0 18px;
  margin-left: 18px;
  border-left-color: var(--legend-border);
}

.vol-desk-page .legend-iv-sidebar-selection {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--legend-border);
  border-radius: 0;
  padding: 0 0 14px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.vol-desk-page .legend-iv-sidebar-selection--idle {
  color: var(--banana-on-surface-variant);
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
  opacity: 1;
}

.vol-desk-page .legend-iv-angle {
  gap: 4px;
  padding: 3px;
  background: #111;
  border-radius: 6px;
}

.vol-desk-page .legend-iv-angle-btn {
  border: 0;
  background: transparent;
  color: var(--banana-on-surface-variant);
  padding: 7px 8px;
  text-transform: none;
  letter-spacing: 0;
  font: 500 11px var(--banana-font-body);
  box-shadow: none;
}

.vol-desk-page .legend-iv-angle-btn--active {
  background: #262626;
  color: var(--banana-on-surface);
}

.vol-desk-page .legend-iv-card {
  background: transparent;
  border-color: var(--legend-border);
  box-shadow: none;
}

.vol-desk-page .legend-iv-card__title {
  color: var(--banana-on-surface-variant);
  font-family: var(--banana-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.vol-desk-page .legend-iv-card__sub {
  color: var(--banana-on-surface-variant);
  line-height: 1.5;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] {
  padding: 4px 14px 24px;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash {
  gap: 22px;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__metrics {
  gap: 0;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__metrics .legend-iv-card {
  min-width: 0;
  padding: 12px 18px 16px;
  border: 0;
  border-left: 1px solid var(--legend-border);
  border-bottom: 1px solid var(--legend-border);
  border-radius: 0;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__metrics .legend-iv-card:nth-child(4n+1) {
  border-left: 0;
  padding-left: 0;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__metrics .legend-iv-card--iv-rank {
  grid-column: auto;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__metrics .legend-iv-card__value {
  font-family: var(--banana-font-heading);
  font-size: clamp(21px, 2.1vw, 29px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__lower {
  gap: 22px;
  padding-top: 0;
  border-top: 0;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] :is(.legend-iv-overview-dash__charts, .legend-iv-overview-dash__detail) {
  gap: 20px;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__charts > .legend-iv-card:only-child {
  grid-column: 1 / -1;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] :is(.legend-iv-overview-dash__charts, .legend-iv-overview-dash__detail) .legend-iv-card {
  padding: 0;
  border: 0;
  border-radius: 0;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] :is(.legend-iv-overview-dash__curve .legend-iv-spark, .legend-iv-overview-dash__charts .legend-iv-spark--vc) {
  height: 158px;
  min-height: 158px;
}

.vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__charts > .legend-iv-card:only-child .legend-iv-spark {
  height: 210px;
  min-height: 210px;
}

.vol-desk-page :is(button, input, select, a):focus-visible {
  outline: 2px solid var(--banana-primary-fixed);
  outline-offset: 3px;
}

@container iv-surface (max-width: 860px) {
  .vol-desk-page .legend-widget--iv-surface-page .legend-iv-cockpit__body {
    flex-direction: column;
    overflow-y: auto;
  }

  .vol-desk-page .legend-iv-stage {
    flex: 1 0 420px;
    min-height: 420px;
  }

  .vol-desk-page .legend-iv-rail {
    flex: 0 0 auto;
    max-height: 420px;
    margin: 18px 14px 0;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--legend-border);
  }

  .vol-desk-page .legend-iv-rail .legend-iv-ideas {
    flex-basis: auto;
  }
}

@media (max-width: 1100px) {
  .vol-desk-page .iv-surface-page-main {
    padding-inline: 18px;
  }

  .vol-desk-page .legend-iv-tabs--top {
    gap: 20px;
  }

  .vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vol-desk-page .iv-surface-page-main {
    padding: 20px 12px 28px;
  }

  .vol-desk-page .vol-desk-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 18px;
  }

  .vol-desk-page .legend-app .legend-widget--iv-surface-page .legend-widget-header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .vol-desk-page .legend-iv-surface-ctrls {
    flex-basis: 100%;
    gap: 8px;
  }

  .vol-desk-page .iv-surface-page {
    height: 1000px;
  }

  .vol-desk-page .legend-iv-tabs--top {
    gap: 20px;
    padding-inline: 8px;
  }

  .vol-desk-page .legend-iv-stack--top .legend-iv-grid-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__metrics .legend-iv-card {
    padding: 12px;
    border-left: 1px solid var(--legend-border);
  }

  .vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] .legend-iv-overview-dash__metrics .legend-iv-card:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"] :is(.legend-iv-overview-dash__charts, .legend-iv-overview-dash__detail) {
    grid-template-columns: 1fr;
  }
}

/* Overview is a market desk: readings, analysis, and context share one view. */
.vol-desk-page .vd-overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  color: var(--banana-on-surface);
}

.vol-desk-page .vd-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 0 0 auto;
  border-bottom: 1px solid var(--legend-border);
}

.vol-desk-page .vd-metric {
  min-width: 0;
  padding: 12px 18px 13px;
  border-left: 1px solid var(--legend-border);
}

.vol-desk-page .vd-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.vol-desk-page .vd-metric__label {
  margin-bottom: 5px;
  color: var(--banana-on-surface-variant);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.vol-desk-page .vd-metric__value {
  color: var(--banana-on-surface);
  font-family: var(--banana-font-heading);
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-metric__value--accent {
  color: var(--banana-primary-fixed);
}

.vol-desk-page .vd-metric__meta {
  margin-top: 5px;
  color: var(--banana-on-surface-variant);
  font-size: 10px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: 22px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.vol-desk-page .vd-plots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  min-width: 0;
  min-height: 0;
}

.vol-desk-page .vd-plot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.vol-desk-page .vd-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
  flex: 0 0 auto;
  min-width: 0;
  margin-bottom: 7px;
}

.vol-desk-page :is(.vd-panel-head, .vd-context, .vd-note-group) h3 {
  margin: 0;
  font-family: var(--banana-font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--banana-on-surface);
}

.vol-desk-page .vd-panel-meta {
  color: var(--banana-on-surface-variant);
  font-size: 10px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--banana-on-surface-variant);
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}

.vol-desk-page .vd-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vol-desk-page .vd-legend i {
  display: inline-block;
  width: 11px;
  height: 2px;
  background: currentColor;
}

.vol-desk-page .vd-legend__key--iv {
  color: #f2d14e;
}

.vol-desk-page .vd-legend__key--rv {
  color: #35a7ff;
}

.vol-desk-page .vd-chart {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
}

.vol-desk-page .vd-empty {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--legend-border) 65%, transparent);
  color: var(--banana-on-surface-variant);
  font-size: 11px;
  line-height: 1.5;
}

.vol-desk-page .vd-aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
  min-width: 0;
  min-height: 0;
  padding-left: 20px;
  border-left: 1px solid var(--legend-border);
}

.vol-desk-page .vd-context {
  min-width: 0;
}

.vol-desk-page .vd-context h3 {
  margin-bottom: 7px;
}

.vol-desk-page .vd-context :is(dl, p) {
  margin: 0;
}

.vol-desk-page .vd-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 3px 0;
  font-size: 11px;
  line-height: 1.35;
}

.vol-desk-page .vd-row dt {
  margin: 0;
  color: var(--banana-on-surface-variant);
}

.vol-desk-page .vd-row dd {
  margin: 0;
  color: var(--banana-on-surface);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-row__meta {
  display: block;
  margin-top: 1px;
  color: var(--banana-on-surface-variant);
  font-size: 9px;
  line-height: 1.35;
}

.vol-desk-page .vd-context small {
  color: var(--banana-on-surface-variant);
  font-size: 9px;
  line-height: 1.4;
}

.vol-desk-page .vd-move-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 11px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-move-table :is(th, td) {
  padding: 4px 0 4px 8px;
  text-align: right;
  border-bottom: 1px solid color-mix(in srgb, var(--legend-border) 60%, transparent);
  white-space: nowrap;
}

.vol-desk-page .vd-move-table :is(th, td):first-child {
  padding-left: 0;
  text-align: left;
}

.vol-desk-page .vd-move-table th {
  color: var(--banana-on-surface-variant);
  font-size: 9px;
  font-weight: 400;
}

.vol-desk-page .vd-move-table tr:last-child td {
  border-bottom: 0;
}

.vol-desk-page .vd-notes {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 22px;
  flex: 0 0 auto;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--legend-border);
}

.vol-desk-page .vd-notes:empty {
  display: none;
}

.vol-desk-page .vd-note-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.vol-desk-page .vd-note-group h3 {
  flex: 0 0 auto;
  color: var(--banana-on-surface-variant);
  font-size: 10px;
}

.vol-desk-page .vd-note-items {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
  color: var(--banana-on-surface-variant);
  font-size: 10px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-event {
  display: inline-flex;
  gap: 5px;
  color: var(--banana-text-body);
}

.vol-desk-page .vd-event__days {
  color: var(--banana-on-surface-variant);
}

/* Size the desk from the actual viewport, rather than a 620px card minimum.
   Content remains measurable; the browser checks that every populated section fits. */
@media (min-width: 1024px) and (min-height: 700px) {
  .vol-desk-page:has(.legend-iv-cockpit) .app-shell,
  .vol-desk-page:has(.legend-iv-cockpit) .app-shell__main {
    height: 100dvh;
    min-height: 0;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .legend-app--iv-surface-page {
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .iv-surface-page-main {
    min-height: 0;
    height: 100%;
    padding: 14px 22px 16px;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .vol-desk-heading {
    padding-bottom: 10px;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .vol-desk-heading > div {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .vol-desk-heading h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .vol-desk-heading p {
    font-size: 11px;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .iv-surface-page {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .legend-widget--iv-surface-page .legend-widget-header {
    padding-block: 8px;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .legend-iv-tabs--top {
    min-height: 39px;
    padding-inline: 0;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .legend-iv-tabs--top .legend-iv-tab {
    padding-block: 10px;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .legend-widget--iv-surface-page .legend-iv-cockpit__body {
    padding-top: 0;
    overflow: visible;
    flex-direction: row;
  }

  .vol-desk-page:has(.legend-iv-cockpit) .legend-iv-stage {
    min-height: 0;
    flex: 1 1 auto;
  }

  .vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"]:has(.vd-overview) {
    padding: 0;
    overflow: visible;
  }
}

@media (min-width: 1024px) and (min-height: 700px) and (max-height: 780px) {
  .vol-desk-page .vd-overview {
    gap: 12px;
  }

  .vol-desk-page .vd-metric {
    padding-block: 9px;
  }

  .vol-desk-page .vd-metric__value {
    font-size: 25px;
  }

  .vol-desk-page .vd-aside {
    gap: 12px;
  }

  .vol-desk-page .vd-row {
    padding-block: 2px;
  }
}

/* On a narrow or unusually short screen, keep every reading reachable.
   Natural stacking is preferable to shrinking text or clipping the context. */
@media (max-width: 1023px), (max-height: 699px) {
  .vol-desk-page:has(.legend-iv-stage-pane--active[data-tab-id="overview"] .vd-overview) .iv-surface-page {
    height: auto;
    min-height: 0;
  }

  .vol-desk-page:has(.legend-iv-stage-pane--active[data-tab-id="overview"] .vd-overview) .legend-widget--iv-surface-page {
    height: auto;
  }

  .vol-desk-page:has(.legend-iv-stage-pane--active[data-tab-id="overview"] .vd-overview) .legend-widget--iv-surface-page .legend-widget-body,
  .vol-desk-page:has(.legend-iv-stage-pane--active[data-tab-id="overview"] .vd-overview) .legend-widget--iv-surface-page .legend-iv-cockpit__body {
    overflow: visible;
  }

  .vol-desk-page:has(.legend-iv-stage-pane--active[data-tab-id="overview"] .vd-overview) .legend-iv-stage {
    flex: 1 1 auto;
    min-height: 0;
  }

  .vol-desk-page .legend-iv-stage-pane[data-tab-id="overview"]:has(.vd-overview) {
    position: relative;
    inset: auto;
    padding: 0 8px 12px;
    overflow: visible;
  }

  .vol-desk-page .vd-overview {
    height: auto;
  }

  .vol-desk-page .vd-chart,
  .vol-desk-page .vd-empty {
    min-height: 170px;
  }

  .vol-desk-page .vd-plots {
    grid-template-rows: auto;
  }
}

@media (max-width: 760px) {
  .vol-desk-page .vd-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .vol-desk-page .vd-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
    border-left: 0;
    gap: 18px;
  }

  .vol-desk-page .vd-notes {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .vol-desk-page .vd-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vol-desk-page .vd-metric {
    padding: 10px;
  }

  .vol-desk-page .vd-metric:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .vol-desk-page .vd-metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--legend-border);
  }

  .vol-desk-page .vd-metric__value {
    font-size: 24px;
  }

  .vol-desk-page .vd-plots,
  .vol-desk-page .vd-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .vol-desk-page .vd-note-group {
    align-items: flex-start;
  }
}

/* The research rail is a compact reading surface, with controls and optional
   ranked results sharing the same space rather than stacking another feed. */
.vol-desk-page .legend-iv-rail--compact {
  gap: 7px;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-ideas {
  flex: 0 0 auto;
  overflow: visible;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-sidebar-selection {
  gap: 2px;
  padding-bottom: 7px;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-sidebar-selection--idle {
  font-size: 11px;
  line-height: 1.35;
  padding-bottom: 5px;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-sidebar-selection__title {
  margin-bottom: 1px;
  padding-bottom: 2px;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-sidebar-selection__title-txt {
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-sel__head {
  align-items: flex-start;
  gap: 8px;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-sel__strike,
.vol-desk-page .legend-iv-rail--compact .legend-iv-sel__iv {
  font-size: 14px;
  line-height: 1.2;
}

.vol-desk-page .legend-iv-rail--compact :is(.legend-iv-sel__money, .legend-iv-sel__expiry, .legend-iv-sidebar-selection__offset) {
  font-size: 10px;
  line-height: 1.3;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-sel__chips {
  margin-top: 2px;
  gap: 4px;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-chip {
  padding: 1px 4px;
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.2;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-sel__greeks {
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.3;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-angle {
  padding: 2px;
  gap: 3px;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-angle-btn {
  padding: 5px 7px;
  font-size: 11px;
}

.vol-desk-page .vd-rail-readings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 0;
}

.vol-desk-page .vd-rail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.vol-desk-page .vd-rail-toolbar .legend-iv-recs-btn {
  padding: 4px 7px;
  border-color: #57503a;
  background: transparent;
  color: var(--banana-primary-fixed);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.vol-desk-page .vd-rail-toolbar .legend-iv-recs-btn:hover {
  background: #19170d;
  border-color: var(--banana-primary-fixed);
}

.vol-desk-page .vd-rail-status {
  color: var(--banana-on-surface-variant);
  font-size: 10px;
  line-height: 1.2;
}

.vol-desk-page .vd-rail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid var(--legend-border);
}

.vol-desk-page .vd-rail-readings [data-vd-reading] {
  min-width: 0;
  margin: 0;
  padding: 5px 0 6px;
  border: 0;
  border-bottom: 1px solid var(--legend-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.vol-desk-page .vd-rail-metrics [data-vd-reading] {
  border-bottom: 0;
}

.vol-desk-page .vd-rail-readings .legend-iv-card__title {
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 1.25;
}

.vol-desk-page .vd-rail-readings .legend-iv-card__value {
  font-size: 18px;
  line-height: 1.15;
}

.vol-desk-page .vd-rail-readings .legend-iv-card__sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
}

.vol-desk-page .vd-rail-readings .legend-iv-card__row {
  padding: 1px 0;
  font-size: 11px;
  line-height: 1.25;
}

.vol-desk-page .vd-rail-readings .legend-iv-gauge {
  height: 3px;
  margin: 4px 0 0;
}

.vol-desk-page .vd-rail-readings .legend-iv-evrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px;
  padding: 2px 0;
  font-size: 11px;
  line-height: 1.25;
}

.vol-desk-page .vd-rail-readings .legend-iv-evdte {
  margin-left: 0;
  white-space: nowrap;
}

.vol-desk-page .vd-rail-picks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.vol-desk-page .vd-rail-picks :is(.legend-iv-recs-list, .legend-iv-hedger-recs) {
  margin: 0;
  padding: 0;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.vol-desk-page .vd-rail-picks .legend-iv-recs-list__title {
  padding: 2px 0;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.vol-desk-page .vd-rail-picks .legend-iv-rec-row {
  padding: 7px 8px;
  gap: 3px;
  background: #080808;
  border-color: var(--legend-border);
  border-radius: 4px;
}

.vol-desk-page .vd-rail-picks .legend-iv-rec-row--top {
  border-color: #665a2e;
  background: #121108;
}

.vol-desk-page .vd-rail-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.vol-desk-page .vd-rail-pager button {
  padding: 4px 8px;
  min-height: 26px;
  border: 1px solid var(--legend-border);
  border-radius: 4px;
  background: #0b0b0b;
  color: var(--banana-on-surface);
  font: 11px var(--banana-font-body);
}

.vol-desk-page .vd-rail-pager button:hover:not(:disabled) {
  border-color: var(--banana-primary-fixed);
}

.vol-desk-page .vd-rail-pager button:disabled {
  opacity: 0.35;
}

.vol-desk-page .vd-rail-page-status {
  color: var(--banana-on-surface-variant);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-rail-readings [data-vd-reading="shares"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 6px;
}

.vol-desk-page .vd-rail-readings [data-vd-reading="shares"] .legend-iv-card__title {
  margin: 0;
}

.vol-desk-page .vd-rail-readings .legend-iv-hedger-input {
  box-sizing: border-box;
  width: 92px;
  min-height: 30px;
  margin-top: 0;
  padding: 4px 7px;
  font-size: 12px;
}

.vol-desk-page .vd-rail-readings .legend-iv-hedger-rec {
  padding: 7px 8px;
  border-color: var(--legend-border);
  border-radius: 4px;
  background: #080808;
}

.vol-desk-page .vd-rail-readings .legend-iv-hedger-rec--top {
  border-color: #665a2e;
  background: #121108;
}

.vol-desk-page .vd-rail-readings .legend-iv-hedger-rec__head {
  margin-bottom: 3px;
}

.vol-desk-page .vd-rail-readings .legend-iv-hedger-rec__label {
  font-size: 12px;
}

.vol-desk-page .vd-rail-readings .legend-iv-hedger-rec__strike {
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 1.3;
}

.vol-desk-page .vd-rail-readings .legend-iv-hedger-rec__reasons {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.3;
}

@media (min-width: 1024px) and (min-height: 700px) {
  .vol-desk-page .legend-widget--iv-surface-page .legend-iv-rail--compact {
    box-sizing: border-box;
    flex: 0 0 clamp(298px, 28vw, 340px);
    max-height: none;
    gap: 7px;
    padding: 0 0 0 12px;
    margin-left: 12px;
    border-left: 1px solid var(--legend-border);
    border-top: 0;
  }
}

.vol-desk-page .vd-rail-play-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.vol-desk-page .vd-rail-play-tabs button {
  padding: 5px 7px;
  border: 1px solid var(--legend-border);
  border-radius: 4px;
  background: transparent;
  color: var(--banana-on-surface-variant);
  font: 11px var(--banana-font-body);
  line-height: 1.25;
}

.vol-desk-page .vd-rail-play-tabs button[aria-pressed="true"] {
  background: #1b190f;
  border-color: #665a2e;
  color: var(--banana-primary-fixed);
}

.vol-desk-page .vd-rail-play-tabs button:hover {
  color: var(--banana-on-surface);
}

.vol-desk-page .vd-rail-hedgeslist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vol-desk-page .vd-rail-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.vol-desk-page .vd-rail-picks[hidden],
.vol-desk-page .vd-rail-readings [hidden] {
  display: none;
}

/* Readout labels and numbers share rows; the events retain their complete names. */
.vol-desk-page .vd-rail-toolbar .legend-iv-recs-header {
  margin: 0;
  gap: 0;
}

.vol-desk-page .vd-rail-readings {
  gap: 4px;
}

.vol-desk-page .vd-rail-metrics [data-vd-reading],
.vol-desk-page .vd-rail-readings [data-vd-reading="richness"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 6px;
  padding-block: 4px;
}

.vol-desk-page .vd-rail-metrics .legend-iv-card__title,
.vol-desk-page .vd-rail-readings [data-vd-reading="richness"] .legend-iv-card__title {
  margin: 0;
}

.vol-desk-page .vd-rail-metrics .legend-iv-card__sub,
.vol-desk-page .vd-rail-metrics .legend-iv-gauge,
.vol-desk-page .vd-rail-readings [data-vd-reading="richness"] .legend-iv-card__sub {
  grid-column: 1 / -1;
}

.vol-desk-page .vd-rail-readings :is([data-vd-reading="theta"], [data-vd-reading="leverage"]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 3px 8px;
  padding-block: 4px;
}

.vol-desk-page .vd-rail-readings :is([data-vd-reading="theta"], [data-vd-reading="leverage"]) > .legend-iv-card__title {
  grid-column: 1 / -1;
  margin: 0;
}

.vol-desk-page .vd-rail-readings :is([data-vd-reading="theta"], [data-vd-reading="leverage"]) .legend-iv-card__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-rail-readings :is([data-vd-reading="theta"], [data-vd-reading="leverage"]) .legend-iv-card__row > span:first-child {
  min-height: 25px;
  font-size: 10px;
  line-height: 1.25;
}

.vol-desk-page .vd-rail-readings :is([data-vd-reading="theta"], [data-vd-reading="leverage"]) .legend-iv-card__row > span:last-child {
  font-size: 12px;
}

.vol-desk-page .vd-rail-readings [data-vd-reading="hint"] {
  font-size: 11px;
  line-height: 1.3;
}

.vol-desk-page .vd-rail-readings [data-vd-reading="hint"] .legend-iv-card__title,
.vol-desk-page .vd-rail-readings [data-vd-reading="hint"] .legend-iv-card__sub {
  display: inline;
  margin: 0;
}

.vol-desk-page .vd-rail-readings [data-vd-reading="hint"] .legend-iv-card__title {
  margin-right: 6px;
}

.vol-desk-page .vd-rail-readings .legend-iv-evrow {
  line-height: 1.2;
}

@media (min-width: 1024px) and (min-height: 700px) {
  .vol-desk-page .legend-widget--iv-surface-page .legend-iv-rail--compact {
    flex-basis: clamp(320px, 29vw, 360px);
  }
}

.vol-desk-page .vd-rail-readings .legend-iv-verdict {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  margin: 0;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid var(--legend-border);
  border-radius: 0;
  background: transparent;
}

.vol-desk-page .vd-rail-readings .legend-iv-verdict__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.vol-desk-page .vd-rail-readings .legend-iv-verdict__sub {
  font-size: 10px;
  line-height: 1.3;
}

.vol-desk-page .vd-rail-readings [data-vd-reading="leverage"] .legend-iv-card__row > span:first-child {
  min-height: 0;
}

/* Score detail is a focused reading surface, not more height inside the rail. */
.vol-desk-page .vd-rail-breakdown {
  box-sizing: border-box;
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid #414141;
  border-radius: 6px;
  background: #080808;
  color: var(--banana-on-surface);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
  overflow: auto;
}

.vol-desk-page .vd-rail-breakdown::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.vol-desk-page .vd-rail-breakdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--legend-border);
}

.vol-desk-page .vd-rail-breakdown__head h2 {
  margin: 0;
  font: 600 16px var(--banana-font-heading);
  letter-spacing: -0.02em;
}

.vol-desk-page .vd-rail-breakdown__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--legend-border);
  border-radius: 4px;
  background: transparent;
  color: var(--banana-on-surface-variant);
  font: 22px/1 var(--banana-font-body);
}

.vol-desk-page .vd-rail-breakdown__close:hover {
  border-color: #777;
  color: var(--banana-on-surface);
}

.vol-desk-page .vd-rail-breakdown__body {
  min-width: 0;
  padding: 16px;
}

.vol-desk-page .vd-rail-breakdown__body :is(.legend-iv-rec-row, .legend-iv-rec-idea) {
  margin: 0;
  padding: 0;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}

.vol-desk-page .vd-rail-breakdown .legend-iv-rec-row__strike,
.vol-desk-page .vd-rail-breakdown .legend-iv-rec-idea__name {
  font-size: 15px;
}

.vol-desk-page .vd-rail-breakdown :is(.legend-iv-rec-row__meta, .legend-iv-rec-idea__meta) {
  font-size: 12px;
  line-height: 1.45;
}

.vol-desk-page .vd-rail-breakdown :is(.legend-iv-rec-row__reasons, .legend-iv-rec-idea__reasons) {
  font-size: 11px;
  line-height: 1.4;
  font-style: normal;
}

.vol-desk-page .vd-rail-breakdown .legend-iv-rec-bd {
  gap: 7px;
  margin-top: 10px;
  padding: 12px 0 0;
  border-top: 1px solid var(--legend-border);
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}

.vol-desk-page .vd-rail-breakdown .legend-iv-rec-bd__row {
  grid-template-columns: minmax(120px, 1fr) minmax(0, 1.8fr) 52px;
  gap: 10px;
}

.vol-desk-page .vd-rail-breakdown :is(.legend-iv-rec-bd__intro, .legend-iv-rec-bd__label, .legend-iv-rec-bd__stale) {
  font-size: 11px;
  line-height: 1.35;
}

.vol-desk-page .vd-rail-breakdown .legend-iv-rec-bd__bar {
  height: 5px;
}

.vol-desk-page .vd-rail-breakdown .legend-iv-rec-bd__total {
  margin-top: 5px;
  padding-top: 9px;
}

.vol-desk-page .vd-rail-breakdown__tip {
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--legend-border);
  color: var(--banana-on-surface-variant);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .vol-desk-page .vd-rail-breakdown__body {
    padding: 12px;
  }

  .vol-desk-page .vd-rail-breakdown .legend-iv-rec-bd__row {
    grid-template-columns: minmax(100px, 1fr) minmax(0, 1fr) 44px;
    gap: 7px;
  }
}

/* Source information stays visible without taking space from the surface. */
.vol-desk-page .vd-quality-host[hidden] {
  display: none;
}

.vol-desk-page .vd-data-quality {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 16px;
  min-height: 24px;
  margin-bottom: 8px;
  color: var(--banana-on-surface-variant);
  font-size: 11px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-data-quality__status {
  color: #d7c69c;
}

.vol-desk-page .vd-data-quality__status[data-quality-state="known"] {
  color: var(--banana-on-surface);
}

.vol-desk-page .vd-data-quality__status[data-quality-state="over-limit"] {
  color: #ffac91;
}

.vol-desk-page .vd-data-quality__item::before {
  content: "·";
  margin-right: 12px;
  color: #666;
}

.vol-desk-page .vd-data-quality__details {
  margin-left: auto;
}

.vol-desk-page .vd-data-quality__details > summary {
  padding-block: 3px;
  color: var(--banana-on-surface-variant);
  cursor: pointer;
}

.vol-desk-page .vd-data-quality__details > summary:hover,
.vol-desk-page .vd-data-quality__details[open] > summary {
  color: var(--banana-on-surface);
}

.vol-desk-page .vd-data-quality__details > summary:focus-visible {
  outline: 2px solid var(--banana-primary-fixed);
  outline-offset: 3px;
}

.vol-desk-page .vd-data-quality__popover {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 40;
  box-sizing: border-box;
  width: min(500px, calc(100vw - 40px));
  max-height: min(440px, 60dvh);
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid #414141;
  border-radius: 5px;
  background: #101010;
  box-shadow: 0 14px 35px #0009;
  color: var(--banana-on-surface);
  font-size: 11px;
  line-height: 1.45;
}

.vol-desk-page .vd-data-quality__popover dl {
  margin: 0;
}

.vol-desk-page .vd-data-quality__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding-block: 6px;
  border-bottom: 1px solid #292929;
}

.vol-desk-page .vd-data-quality__row dt {
  color: var(--banana-on-surface-variant);
}

.vol-desk-page .vd-data-quality__row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.vol-desk-page .vd-data-quality__note {
  margin: 10px 0 0;
  color: var(--banana-on-surface-variant);
  line-height: 1.5;
}

.vol-desk-page .vd-inspector-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 3px;
}

.vol-desk-page .legend-iv-rail--compact .legend-iv-sidebar-selection--idle {
  display: none;
}

.vol-desk-page .vd-surface-inspector {
  gap: 4px;
}

.vol-desk-page .vd-inspector-selection {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 10px;
  color: var(--banana-on-surface-variant);
  font-size: 10px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-inspector-selection strong {
  color: var(--banana-on-surface);
  font-weight: 600;
  font-size: 12px;
}

.vol-desk-page .vd-inspector-heading h3 {
  margin: 0;
  color: var(--banana-on-surface);
  font: 600 13px var(--banana-font-body);
}

.vol-desk-page .vd-inspector-heading > span,
.vol-desk-page .vd-inspector-reference {
  color: var(--banana-on-surface-variant);
  font-size: 10px;
  line-height: 1.4;
}

.vol-desk-page .vd-surface-inspector [data-vd-reading="richness"] {
  display: block;
}

.vol-desk-page .vd-inspector-greek-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-inspector-greek-values > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vol-desk-page .vd-inspector-greek-values span {
  color: var(--banana-on-surface-variant);
  font-size: 10px;
}

.vol-desk-page .vd-inspector-greek-values strong {
  color: var(--banana-on-surface);
  font: 500 12px var(--banana-font-mono);
}

.vol-desk-page .vd-quote-quality {
  padding-block: 6px;
  border-bottom: 1px solid var(--legend-border);
  color: var(--banana-on-surface-variant);
  font-size: 10px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-quote-quality__source {
  margin-bottom: 5px;
  color: var(--banana-on-surface);
  font-size: 11px;
  font-weight: 500;
}

.vol-desk-page .vd-quote-quality__side + .vd-quote-quality__side {
  margin-top: 7px;
}

.vol-desk-page .vd-quote-quality__market {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--banana-on-surface);
  font-size: 11px;
}

.vol-desk-page .vd-quote-quality__market strong {
  font-weight: 500;
}

.vol-desk-page .vd-quote-quality__condition {
  color: #ffac91;
}

.vol-desk-page .vd-quote-quality__unknown {
  margin: 0;
}

@media (min-width: 1024px) and (min-height: 700px) and (max-height: 780px) {
  .vol-desk-page .vd-surface-inspector {
    gap: 2px;
  }

  .vol-desk-page .vd-surface-inspector [data-vd-reading],
  .vol-desk-page .vd-quote-quality {
    padding-block: 3px;
  }
}

/* Everyday controls stay in one line. Model/display settings open on demand. */
.vol-desk-page .legend-iv-surface-ctrls {
  flex: 1 1 auto;
  min-width: 0;
}

.vol-desk-page .legend-iv-surface-ctrls__row--filters {
  width: 100%;
  gap: 12px;
}

.vol-desk-page .vd-expiry,
.vol-desk-page .vd-expiry__label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vol-desk-page .vd-expiry__label > span {
  color: var(--banana-on-surface-variant);
  font-size: 11px;
}

.vol-desk-page .vd-expiry__shortcut,
.vol-desk-page .vd-sizing-trigger {
  padding: 3px 5px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--banana-on-surface-variant);
  font: 11px var(--banana-font-body);
  cursor: pointer;
}

.vol-desk-page .vd-expiry__shortcut[aria-pressed="true"] {
  background: #1a1a1a;
  color: var(--banana-primary-fixed);
}

.vol-desk-page .vd-expiry__shortcut:hover,
.vol-desk-page .vd-sizing-trigger:hover {
  color: var(--banana-on-surface);
}

.vol-desk-page .vd-advanced {
  position: relative;
  margin-left: auto;
  color: var(--banana-on-surface-variant);
  font-size: 11px;
}

.vol-desk-page .vd-advanced > summary {
  padding: 6px 3px;
  cursor: pointer;
  white-space: nowrap;
}

.vol-desk-page .vd-advanced[open] > summary {
  color: var(--banana-on-surface);
}

.vol-desk-page .vd-advanced__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  box-sizing: border-box;
  width: min(340px, calc(100vw - 32px));
  max-height: min(570px, 75dvh);
  padding: 16px;
  overflow: auto;
  border: 1px solid #414141;
  border-radius: 5px;
  background: #101010;
  box-shadow: 0 14px 35px #0009;
  color-scheme: dark;
}

.vol-desk-page .vd-advanced__panel > .legend-iv-surface-ctrls__row--display,
.vol-desk-page .vd-advanced__panel > .legend-iv-window-wrap,
.vol-desk-page .vd-advanced__panel > .legend-iv-interpolate-wrap {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.vol-desk-page .vd-advanced__panel > .legend-iv-surface-ctrls__row--display select {
  width: 100%;
}

.vol-desk-page .vd-advanced__panel .legend-iv-window-wrap {
  gap: 16px;
}

.vol-desk-page .vd-fit-details {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid #333;
}

.vol-desk-page .vd-fit-details h3 {
  margin: 0 0 8px;
  color: var(--banana-on-surface);
  font-size: 11px;
  font-weight: 500;
}

.vol-desk-page .vd-fit-details dl {
  margin: 0;
}

.vol-desk-page .vd-fit-details dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 4px;
  font-size: 10px;
}

.vol-desk-page .vd-fit-details dd {
  margin: 0;
  color: var(--banana-on-surface);
  font-variant-numeric: tabular-nums;
}

.vol-desk-page .vd-fit-details p {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.5;
  white-space: normal;
}

.vol-desk-page .vd-surface-projection {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 4px;
  background: #080808e6;
}

.vol-desk-page .vd-surface-projection button {
  padding: 4px 7px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--banana-on-surface-variant);
  font: 10px var(--banana-font-body);
  cursor: pointer;
}

.vol-desk-page .vd-surface-projection button[aria-pressed="true"] {
  background: #242424;
  color: var(--banana-primary-fixed);
}

.vol-desk-page .vd-surface-projection button:disabled {
  opacity: 0.4;
  cursor: default;
}

.vol-desk-page .legend-iv-stage-pane:has(.vd-surface-projection) .legend-iv-chart-cameras-wrap {
  top: 40px;
}

.vol-desk-page :is(.vd-advanced > summary, .vd-expiry__shortcut):focus-visible {
  outline: 2px solid var(--banana-primary-fixed);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .vol-desk-page .legend-iv-surface-ctrls__row--filters,
  .vol-desk-page .vd-expiry {
    flex-wrap: wrap;
  }
}

.vol-desk-page .vd-smile-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 22px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--banana-on-surface-variant);
  cursor: pointer;
}

.vol-desk-page .vd-smile-expand:hover {
  color: var(--banana-on-surface);
}

.vd-smile-dialog {
  box-sizing: border-box;
  width: min(1200px, calc(100vw - 36px));
  height: min(760px, calc(100dvh - 36px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #414141;
  border-radius: 6px;
  background: #080808;
  color: var(--banana-on-surface);
  font-family: var(--banana-font-body);
  box-shadow: 0 18px 70px #0009;
}

.vd-smile-dialog[open] {
  display: flex;
  flex-direction: column;
}

.vd-smile-dialog::backdrop {
  background: #000b;
}

.vd-smile-dialog__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #292929;
}

.vd-smile-dialog__head h2 {
  margin: 0;
  color: var(--banana-on-surface);
  font: 600 16px/1.3 var(--banana-font-heading);
}

.vd-smile-dialog__head p {
  margin: 4px 0 0;
  color: var(--banana-on-surface-variant);
  font-size: 11px;
}

.vd-smile-dialog__close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--banana-on-surface-variant);
  font: 24px/1 sans-serif;
  cursor: pointer;
}

.vd-smile-dialog__close:hover {
  color: var(--banana-on-surface);
}

.vd-smile-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 18px 10px;
}

.vd-smile-dialog__body .legend-iv-slice-body {
  min-height: 0;
}
