/* ============================================================================
   zz_studio_chart_choice.css — the Post studio read-only CHART card (UX program
   2026-09, backlog 1.3b; decisions D-4 / D-23; mockups A7 / A8).

   Scope: #new-content-shell .sp-studio-card--chart-choice — the settings-group
   card (zz_studio_output.css grammar) that sits ABOVE the inspector tabs in
   #config-card (layout.py `_chart_choice_card`): "Bar · Aggregate off" +
   "Change". The row #studio-chart-choice carries `is-explore` (written by
   `_chart_choice_chip`, callbacks/workspace_shell.py) for an explore-born
   dataset only — the kind is Chart's decision there (D-4):
   * the card is drawn only then;
   * the canvas-toolbar strip (.sp-studio-canvas-toolbar, plan C-6b) is not
     drawn then — the SAME `visual-type-step-wrapper` stays mounted with every
     id, writer and reader (zz_studio_canvas_toolbar.css is untouched; this
     rule keys on the shell so it beats that file's ≤640 re-show band, which
     only re-shows #preview-action-panel — an empty block once the strip is
     hidden). Manual / upload / legacy database datasets keep the strip: they
     have no Chart page until backlog 1.4 / 1.5 (P2).
   Cascade: sorts after zz_studio_canvas_toolbar.css ("zz_studio_ch" >
   "zz_studio_ca"); !important only against that file's !important.
   ========================================================================== */

#new-content-shell .sp-studio-card--chart-choice {
  margin-bottom: 12px;
}

/* hidden unless the row says explore-born */
#new-content-shell .sp-studio-card--chart-choice:not(:has(#studio-chart-choice.is-explore)) {
  display: none;
}

#new-content-shell .sp-studio-chart-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

#new-content-shell .sp-studio-chart-choice-text {
  min-width: 0;
  font-family: var(--st-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--bc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "Change" = a quiet pill (DS §4 filter chip), not a second accent */
#new-content-shell .sp-studio-chart-choice-change {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--bc-border);
  border-radius: 999px;
  background: transparent;
  color: var(--bc-text);
  font-family: var(--st-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

#new-content-shell .sp-studio-chart-choice-change:hover {
  border-color: var(--bc-text2);
  background: var(--bc-border-soft);
}

#new-content-shell .sp-studio-chart-choice-change:focus-visible {
  outline: 2px solid var(--bc-accent);
  outline-offset: 2px;
}

/* an explore-born dataset: the strip above the canvas is Chart's now */
#new-content-shell:has(#studio-chart-choice.is-explore) .sp-studio-canvas-toolbar {
  display: none !important;
}
