.key-system-create-overview > [data-detail-field="format"] { order: 3; }
.key-system-create-overview > [data-detail-field="a2"] { order: 4; }

.key-system-create-layout [data-detail-field="a2"] > label {
  font-size: 0;
}
.key-system-create-layout [data-detail-field="a2"] > label::after {
  content: "Preset";
  font-size: var(--atom-font-size-sm, 12px);
}

/* v89 keeps the same Create Key System geometry while making the generator feel like one tool:
   Core Type is presented before Preset, and common Tech Specs stay visible. */

/* Unified SOP geometry.
   One renderer must look like one renderer whether the current Tech Specs describe
   5, 6, or 7 chambers. */
.focus-modal-card[data-modal-mode="mkgSop"] .mkg-sop-modal-shell.is-sop .mkg-sop-board {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(var(--mkg-columns), minmax(0, 1fr)) !important;
}

.focus-modal-card[data-modal-mode="mkgSop"] .mkg-sop-modal-shell.is-sop .mkg-sop-column,
.focus-modal-card[data-modal-mode="mkgSop"] .mkg-sop-modal-shell.is-sop .mkg-cut-list {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

/* Root cause of the apparent second-generator geometry:
   the legacy modal stylesheet makes the cut list a grid but leaves its implicit
   column at max-content width via justify-content:flex-start. Seven narrow
   chambers hid that almost perfectly; five and six chamber systems exposed a
   large empty rail on the right. Make the one implicit cut column explicitly
   consume the whole chamber for every chamber count. */
.focus-modal-card[data-modal-mode="mkgSop"] .mkg-sop-modal-shell.is-sop .mkg-cut-list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: stretch !important;
  justify-items: stretch !important;
  align-self: stretch;
}

.focus-modal-card[data-modal-mode="mkgSop"] .mkg-sop-modal-shell.is-sop .mkg-cut {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-inline: 0 !important;
  justify-self: stretch !important;
  box-sizing: border-box;
}

/* Diagnostics/status belong to ATOM's dock notification surface, not on top of the
   worksheet. Keep the SOP itself as the uninterrupted working surface. */
.focus-modal-card[data-modal-mode="mkgSop"] .mkg-sop-modal-shell.is-sop .mkg-validation {
  display: none !important;
}

.focus-modal-card[data-modal-mode="mkgSop"] .mkg-sop-modal-shell.is-sop .mkg-progression-pane {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

/* The lower bar remains the action bar. Detailed capacity/base diagnostics are sent
   to the dock; don't reserve worksheet width/height for a second status surface. */
.focus-modal-card[data-modal-mode="mkgSop"] .mkg-modal-generate-bar > div {
  display: none !important;
}
.focus-modal-card[data-modal-mode="mkgSop"] .mkg-modal-generate-bar {
  justify-content: flex-end;
}

/* The dock already says what the active modal is in the NOTICE row. The tiny modal
   breadcrumb in the upper-right corner is redundant visual noise. */
.dock-board-context {
  display: none !important;
}
