/* FIX210 · Presentation visual alignment.
   Scoped to the existing Studio step; uses NOVOGEX design tokens/geometry from
   core/00 (spacing/type) and core/18 (shared studio controls). No viewer changes. */
.cs-presentation-step .cs-presentation-body { min-width: 0; width: 100%; }
.cs-presentation-step .presentation-workspace {
  display: grid;
  grid-template-columns: minmax(216px, 242px) minmax(0, 1fr) minmax(272px, 320px);
  align-items: stretch;
  gap: var(--ng-panel-gap, 12px);
  width: 100%; min-width: 0;
  height: clamp(580px, calc(100dvh - 270px), 780px);
  min-height: 580px;
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--ng-font-sm, 12px);
  line-height: var(--ng-line-body, 1.5);
  color: var(--app-text, #e8eef8);
}
.cs-presentation-step .presentation-workspace > :is(.presentation-list, .presentation-center, .presentation-details) {
  min-width: 0; min-height: 0;
  box-sizing: border-box;
  border: 1px solid var(--studio-component-border, var(--app-border, #263950));
  border-radius: var(--ng-radius-md, 12px);
  background: var(--app-card, #111d2d);
  padding: var(--ng-space-3, 12px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--app-border-strong, #344861) transparent;
}
.cs-presentation-step .presentation-workspace > .presentation-center {
  display: flex; flex-direction: column;
  gap: var(--ng-space-2, 8px); overflow: hidden;
}
.cs-presentation-step .presentation-pane-title {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0; margin: 0 0 var(--ng-space-3, 12px);
  padding: 2px 2px var(--ng-space-3, 12px);
  border-bottom: 1px solid var(--app-border, #293d53);
}
.cs-presentation-step .presentation-pane-title strong {
  font-size: var(--ng-font-md, 14px); font-weight: 750; line-height: 1.3;
  letter-spacing: -.01em; color: var(--app-text, #e8eef8);
}
.cs-presentation-step .presentation-pane-title small,
.cs-presentation-step .presentation-details small {
  display: block; font-size: var(--ng-font-xs, 11px);
  font-weight: 400; line-height: 1.45;
  color: var(--app-text-muted, #a9bbcf);
}
/* Navigation: fixed icon slot at the LEFT of every row; identical text baseline.
   Keep the icon out of inline layout (Material Icons have different intrinsic widths). */
.cs-presentation-step .presentation-list-item {
  display: grid; grid-template-columns: 28px minmax(0, 1fr);
  align-items: center; column-gap: var(--ng-space-2, 8px);
  width: 100%; min-width: 0; min-height: 58px;
  padding: 8px 10px; margin: 0 0 var(--ng-space-2, 8px);
  border: 1px solid var(--studio-component-border, var(--app-border, #30445d));
  border-radius: var(--studio-component-radius, 9px);
  background: var(--app-control-bg, #132237);
  color: var(--app-text, #e8eef8);
  text-align: left; font: inherit; cursor: pointer;
  transition: border-color var(--ng-transition-fast, 150ms ease), background var(--ng-transition-fast, 150ms ease);
}
.cs-presentation-step .presentation-list-item:last-child { margin-bottom: 0; }
.cs-presentation-step .presentation-list-item:hover {
  border-color: var(--studio-component-border-hover, #4a7dac);
  background: var(--studio-component-surface-hover, #1b2d43);
}
.cs-presentation-step .presentation-list-item.active {
  border-color: var(--ng-primary, #1677ff);
  background: var(--studio-component-surface-selected, #132e4d);
  box-shadow: inset 3px 0 0 var(--ng-primary, #1677ff);
}
.cs-presentation-step .presentation-nav-icon {
  width: 28px; height: 28px; min-width: 28px;
  display: grid; place-items: center;
  color: var(--ng-primary-light, #75b6ff);
}
.cs-presentation-step .presentation-nav-icon .mud-icon-root {
  display: block; flex: none; width: 21px; height: 21px;
  font-size: 21px; line-height: 1;
}
.cs-presentation-step .presentation-nav-copy {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  align-items: flex-start; justify-content: center;
}
.cs-presentation-step .presentation-nav-copy b,
.cs-presentation-step .presentation-nav-copy small {
  display: block; min-width: 0; max-width: 100%; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: left; font-style: normal;
}
.cs-presentation-step .presentation-nav-copy b {
  font-size: var(--ng-font-sm, 12px); line-height: 1.25; font-weight: 700;
}
.cs-presentation-step .presentation-nav-copy small {
  font-size: var(--ng-font-xs, 11px); line-height: 1.3;
  color: var(--app-text-muted, #a9bbcf); font-weight: 450;
}
.cs-presentation-step :is(.presentation-list-item, .presentation-choice, .presentation-floor-choice,
  .presentation-minor-action, .presentation-save, .presentation-details select):focus-visible {
  outline: 2px solid var(--ng-primary-light, #75b6ff); outline-offset: 2px;
}
/* Viewer owns its canvas and toolbar; leave the 3D layout and controls untouched. */
.cs-presentation-step .presentation-center > .presentation-pane-title { margin-bottom: 0; flex: 0 0 auto; }
.cs-presentation-step .presentation-center .shared-3d-engine-shell.presentation-viewer-shell {
  flex: 1 1 auto; min-width: 0; min-height: 0 !important;
  height: 100% !important; max-height: none;
  overflow: hidden; border: 1px solid var(--app-border, #2a4057);
  border-radius: var(--studio-component-radius, 9px); background: #e9edf2;
}
.cs-presentation-step .presentation-center .shared-3d-engine-shell .presentation-viewer {
  height: 100% !important; min-height: 0 !important;
}
.cs-presentation-step .presentation-message {
  flex: 0 0 auto; margin: 0; padding: 8px 10px;
  font-size: var(--ng-font-xs, 11px); line-height: 1.4;
  color: #b7ddff; background: #152b43;
  border: 1px solid #28517b; border-radius: var(--ng-radius-sm, 8px);
}
/* Detail controls match Studio's 38px inputs and 12/14px type scale. */
.cs-presentation-step .presentation-details > label:not(.presentation-toggle) {
  display: block; margin: var(--ng-space-4, 16px) 0 7px;
  font-weight: 700; font-size: var(--ng-font-sm, 12px); line-height: 1.35;
}
.cs-presentation-step .presentation-details > .presentation-pane-title + label { margin-top: 3px; }
.cs-presentation-step .presentation-details > small { margin: 5px 0 0; }
.cs-presentation-step .presentation-details select {
  display: block; width: 100%; height: var(--studio-component-height, 38px);
  min-width: 0; padding: 0 34px 0 11px;
  border: 1px solid var(--studio-component-border, var(--app-border, #415570));
  border-radius: var(--studio-component-radius, 9px);
  background: var(--app-control-bg, #18283c);
  color: var(--app-text, #e6eefb); font-family: inherit;
  font-size: var(--ng-font-sm, 12px); line-height: 1.35;
}
.cs-presentation-step .presentation-details input[type=file] {
  display: block; width: 100%; max-width: 100%;
  padding: 7px; margin: 5px 0 9px;
  border: 1px solid var(--studio-component-border, var(--app-border, #415570));
  border-radius: var(--ng-radius-sm, 8px);
  background: var(--app-control-bg, #18283c);
  color: var(--app-text-muted, #a9bbcf); font-size: var(--ng-font-xs, 11px);
}
.cs-presentation-step .presentation-details input[type=file]::file-selector-button {
  margin-right: 8px; padding: 5px 9px;
  border: 1px solid var(--app-border-strong, #415570);
  border-radius: 6px; background: var(--app-card, #111d2d);
  color: var(--app-text, #e6eefb); font: inherit; cursor: pointer;
}
.cs-presentation-step .presentation-details input[type=range] {
  display: block; width: 100%; margin: 8px 0;
  accent-color: var(--ng-primary, #1677ff);
}
.cs-presentation-step .presentation-details input[type=range]:disabled { opacity: .45; cursor: not-allowed; }
.cs-presentation-step .presentation-toggle {
  display: flex; align-items: center; gap: var(--ng-space-2, 8px);
  margin: var(--ng-space-4, 16px) 0 5px;
  font-size: var(--ng-font-sm, 12px); font-weight: 650;
  line-height: 1.35; cursor: pointer; user-select: none;
}
.cs-presentation-step .presentation-toggle input[type=checkbox] {
  flex: 0 0 16px; width: 16px; height: 16px;
  margin: 0; accent-color: var(--ng-primary, #1677ff); cursor: pointer;
}
.cs-presentation-step .presentation-toggle span { line-height: 1.35; }
.cs-presentation-step .presentation-choice-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px;
}
.cs-presentation-step .presentation-choice {
  min-width: 0; display: flex; flex-direction: column; align-items: center;
  gap: 7px; padding: 6px 5px 8px;
  border: 1px solid var(--studio-component-border, var(--app-border, #30445d));
  border-radius: var(--ng-radius-sm, 8px);
  background: var(--app-control-bg, #152337);
  color: var(--app-text, #e6eefb);
  font-family: inherit; font-size: var(--ng-font-xs, 11px);
  line-height: 1.25; text-align: center; cursor: pointer;
}
.cs-presentation-step .presentation-choice.active {
  border-color: var(--ng-primary, #1677ff);
  background: var(--studio-component-surface-selected, #132e4d);
  box-shadow: inset 0 0 0 1px var(--ng-primary, #1677ff);
}
.cs-presentation-step .presentation-choice:disabled { opacity: .45; cursor: not-allowed; }
.cs-presentation-step .presentation-swatch {
  display: block; width: 100%; height: 61px;
  border-radius: 6px; background-size: cover; background-position: center;
}
.cs-presentation-step .presentation-swatch.light { background: linear-gradient(125deg, #d8e1eb, #f7f9fc); }
.cs-presentation-step .presentation-swatch.dark { background: linear-gradient(125deg, #111827, #354961); }
.cs-presentation-step .presentation-swatch.custom { background-color: #4a5565; }
.cs-presentation-step .presentation-floor-materials {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px;
  max-height: 230px; overflow: auto; padding: 2px 3px 5px 1px;
  scrollbar-width: thin;
}
.cs-presentation-step .presentation-floor-choice {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 5px; min-width: 0; padding: 5px;
  border: 1px solid var(--studio-component-border, var(--app-border, #364a60));
  border-radius: var(--ng-radius-sm, 8px);
  background: var(--app-control-bg, #142338);
  color: var(--app-text, #eaf1fb); font-family: inherit;
  font-size: var(--ng-font-xs, 11px); text-align: left; cursor: pointer;
}
.cs-presentation-step .presentation-floor-choice.active {
  border-color: var(--ng-primary, #1677ff);
  box-shadow: inset 0 0 0 1px var(--ng-primary, #1677ff);
}
.cs-presentation-step .presentation-floor-choice img,
.cs-presentation-step .presentation-floor-swatch {
  display: block; width: 100%; height: 46px; object-fit: cover; border-radius: 5px;
}
.cs-presentation-step .presentation-floor-choice span:last-child {
  min-width: 0; font-size: var(--ng-font-xs, 11px); line-height: 1.35;
  overflow-wrap: anywhere;
}
.cs-presentation-step .presentation-floor-swatch--studio {
  background: linear-gradient(125deg, #252e39 0%, #7c848b 100%);
}
.cs-presentation-step .presentation-minor-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--studio-component-height-sm, 32px);
  margin-top: var(--ng-space-3, 12px); padding: 6px 11px;
  border: 1px solid var(--studio-component-border, var(--app-border, #40526a));
  border-radius: var(--studio-component-radius, 9px);
  background: var(--studio-component-surface, var(--app-card, #111d2d));
  color: var(--app-text, #b9d5ff); font: inherit;
  font-size: var(--ng-font-sm, 12px); font-weight: 650; line-height: 1.25;
  cursor: pointer;
}
.cs-presentation-step .presentation-minor-action:hover {
  border-color: var(--studio-component-border-hover, #4a7dac);
  background: var(--studio-component-surface-hover, #1b2d43);
}
.cs-presentation-step .presentation-fixed-help {
  margin: var(--ng-space-3, 12px) 0 8px; padding: 10px 12px;
  border: 1px solid #30516d; border-radius: var(--ng-radius-sm, 8px);
  background: #172c43; color: #c6d9ee;
  font-size: var(--ng-font-xs, 11px); line-height: 1.5;
}
.cs-presentation-step .presentation-capture {
  display: flex; width: 100%; margin: 10px 0;
  border-color: #3b86cf; background: #163e69;
  color: #e8f2ff; font-weight: 700;
}
.cs-presentation-step .presentation-actions {
  margin-top: var(--ng-space-5, 20px);
  border-top: 1px solid var(--app-border, #293d53);
  padding-top: var(--ng-space-3, 12px);
}
.cs-presentation-step .presentation-save {
  display: block; width: 100%; min-height: var(--studio-component-height, 38px);
  border: 1px solid var(--ng-primary, #1677ff);
  border-radius: var(--studio-component-radius, 9px);
  padding: 9px 12px; background: var(--ng-primary, #1677ff);
  color: #fff; font-family: inherit; font-size: var(--ng-font-sm, 12px);
  font-weight: 750; line-height: 1.35; cursor: pointer;
}
.cs-presentation-step .presentation-save:hover:not(:disabled) { background: var(--ng-primary-hover, #0f6fe8); }
.cs-presentation-step .presentation-save:disabled { opacity: .55; cursor: wait; }
@media (max-width: 1350px) {
  .cs-presentation-step .presentation-workspace {
    grid-template-columns: minmax(200px, 230px) minmax(0, 1fr);
    height: auto; min-height: 580px;
  }
  .cs-presentation-step .presentation-center { min-height: 530px !important; }
  .cs-presentation-step .presentation-details { grid-column: 1 / -1; }
}
@media (max-width: 730px) {
  .cs-presentation-step .presentation-workspace { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cs-presentation-step .presentation-center { min-height: 400px !important; }
  .cs-presentation-step .presentation-details { grid-column: auto; }
}

/* QS232 · one universal native colour picker; no preset swatch grid. */
.cs-presentation-step .presentation-palette-label {
  margin: 17px 0 7px; font-weight: 700; font-size: var(--ng-font-sm, 12px);
}
.cs-presentation-step .presentation-custom-colour {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-width: 0; min-height: 64px;
  padding: 9px 10px; margin: 0 0 8px; box-sizing: border-box;
  border: 1px solid var(--studio-component-border, #415570);
  border-radius: 9px; background: var(--app-control-bg, #142338);
  color: var(--app-text, #eaf1fb); cursor: pointer;
}
.cs-presentation-step .presentation-custom-colour:hover,
.cs-presentation-step .presentation-custom-colour:focus-within { border-color: #74b6ff; }
.cs-presentation-step .presentation-custom-colour:focus-within { outline: 2px solid #74b6ff; outline-offset: 2px; }
.cs-presentation-step .presentation-custom-colour-wheel {
  width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%;
  background: conic-gradient(#f43f5e, #f59e0b, #facc15, #22c55e, #06b6d4, #3b82f6, #a855f7, #f43f5e);
  border: 1px solid rgba(255,255,255,.23);
}
.cs-presentation-step .presentation-custom-colour-copy {
  display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 2px;
}
.cs-presentation-step .presentation-custom-colour-copy b { font-size: 12px; line-height: 1.25; }
.cs-presentation-step .presentation-custom-colour-copy small { font-size: 11px; line-height: 1.3; }
.cs-presentation-step .presentation-custom-colour input[type=color] {
  width: 46px; height: 39px; flex: 0 0 46px; padding: 3px;
  border: 1px solid var(--studio-component-border, #415570); border-radius: 7px;
  background: var(--app-control-bg, #142338); cursor: pointer;
}
.cs-presentation-step .presentation-custom-colour input[type=color]:disabled { opacity: .55; cursor: wait; }
.cs-presentation-step .presentation-custom-colour-hex {
  font-size: 10px; font-variant-numeric: tabular-nums; color: var(--app-text-muted, #a9bbcf);
  white-space: nowrap;
}
@media (max-width: 380px) {
  .cs-presentation-step .presentation-custom-colour-hex { display: none; }
}

/* QS241: preview controls aligned with the other Studio model editors. */
.cs-presentation-step .presentation-preview-heading {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; min-width: 0; flex: 0 0 auto;
}
.cs-presentation-step .presentation-preview-heading .presentation-pane-title {
  flex: 1 1 auto; min-width: 0; margin-bottom: 0;
}
.cs-presentation-step .presentation-reset-view {
  flex: 0 0 auto; min-height: 34px; padding: 5px 11px; margin: 0;
  border: 1px solid var(--studio-component-border, #415570);
  border-radius: 8px; background: var(--app-control-bg, #18283c);
  color: var(--app-text, #e6eefb); font: inherit; font-weight: 650;
  cursor: pointer;
}
.cs-presentation-step .presentation-reset-view:hover:not(:disabled) { border-color: var(--ng-primary, #1677ff); }
.cs-presentation-step .presentation-reset-view:focus-visible { outline: 2px solid var(--ng-primary-light, #75b6ff); outline-offset: 2px; }
.cs-presentation-step .presentation-reset-view:disabled { opacity: .5; cursor: not-allowed; }
.cs-presentation-step .presentation-reset-scene { width: 100%; margin-bottom: 8px; }
@media (max-width: 600px) {
  .cs-presentation-step .presentation-preview-heading { align-items: center; }
  .cs-presentation-step .presentation-reset-view { font-size: 11px; }
}
