:root {
  --wizard-accent: #2563eb;
  --wizard-soft: rgba(37, 99, 235, .08);
}
body { background: linear-gradient(180deg, rgba(37,99,235,.05), transparent 18rem), var(--bs-body-bg); }
.side-card { top: 5rem; }
.stepper-vertical { display: grid; gap: .5rem; }
.stepper-item { border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: .75rem; background: var(--bs-body-bg); cursor: pointer; transition: .18s ease; }
.stepper-item:hover, .stepper-item.active { border-color: var(--wizard-accent); background: var(--wizard-soft); }
.stepper-item .num { width: 1.75rem; height: 1.75rem; display: inline-grid; place-items: center; border-radius: 999px; background: var(--bs-secondary-bg); font-weight: 700; margin-right: .5rem; }
.stepper-item.active .num { background: var(--wizard-accent); color: white; }
.wizard-step .card { border: 1px solid rgba(0,0,0,.08); }
.result-panel:empty::before { content: 'Belum ada data.'; color: var(--bs-secondary-color); font-style: italic; }
.result-panel { min-height: 2.5rem; }
.mono-lite { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: .92rem; }
.item-field textarea { min-height: 5.5rem; }
.badge-soft { background: var(--wizard-soft); color: var(--wizard-accent); border: 1px solid rgba(37,99,235,.2); }
.table-sticky th { position: sticky; top: 0; background: var(--bs-body-bg); z-index: 1; }
.issue-critical { border-left: .35rem solid #dc3545; }
.issue-major { border-left: .35rem solid #fd7e14; }
.issue-minor { border-left: .35rem solid #6c757d; }
pre.json-preview { max-height: 28rem; overflow: auto; background: var(--bs-tertiary-bg); padding: 1rem; border-radius: .75rem; }
@media (max-width: 1199.98px) { .side-card { position: static !important; } }
.stepper-item.done { opacity: .82; }
.stepper-item.done .num { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.metric-card { border: 1px solid var(--bs-border-color); border-radius: .85rem; padding: 1rem; background: var(--bs-body-bg); min-height: 5rem; }
.metric-value { font-size: 1.65rem; font-weight: 750; line-height: 1; }
.metric-label { color: var(--bs-secondary-color); font-size: .9rem; margin-top: .35rem; }
.preline { white-space: pre-line; }
.choices__inner { min-height: 38px; border-color: var(--bs-border-color); background: var(--bs-body-bg); }
[data-bs-theme="dark"] .choices__inner,
[data-bs-theme="dark"] .choices__list--dropdown,
[data-bs-theme="dark"] .choices__list[aria-expanded] { background: var(--bs-body-bg); color: var(--bs-body-color); border-color: var(--bs-border-color); }
[data-bs-theme="dark"] .choices__item--choice { color: var(--bs-body-color); }
.progress { height: 1.35rem; }

/* v4 media/markdown/math preview refinements */
.preview-sticky { top: 5.25rem; }
.live-preview { min-height: 420px; max-height: calc(100vh - 10rem); overflow: auto; background: var(--bs-body-bg); }
.live-preview .item-preview-card { border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: 1rem; margin-bottom: 1rem; background: var(--bs-tertiary-bg); }
.live-preview .preview-section { margin-bottom: 1rem; }
.live-preview .preview-section-title { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: 0; color: var(--bs-secondary-color); margin-bottom: .35rem; }
.live-preview img.asset-img, .markdown-body img.asset-img { max-width: 100%; height: auto; border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .25rem; background: var(--bs-body-bg); }
.asset-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.asset-card { border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: .75rem; background: var(--bs-body-bg); }
.asset-thumb { width: 100%; height: 96px; object-fit: contain; background: var(--bs-tertiary-bg); border-radius: .5rem; border: 1px solid var(--bs-border-color); }
.markdown-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.markdown-toolbar .btn { --bs-btn-padding-y: .15rem; --bs-btn-padding-x: .45rem; --bs-btn-font-size: .78rem; }
.markdown-body { color: var(--bs-body-color); background: transparent; }
.markdown-body table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: .9em; }
.markdown-body table th, .markdown-body table td { border: 1px solid var(--bs-border-color); padding: .35rem .5rem; }
.markdown-body table th { background: var(--bs-tertiary-bg); }
/* Live preview tables must follow the active Bootstrap theme, not the GitHub Markdown default table palette. */
.live-preview.markdown-body table,
.live-preview .markdown-body table {
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
}
.live-preview.markdown-body table th,
.live-preview.markdown-body table td,
.live-preview .markdown-body table th,
.live-preview .markdown-body table td,
.live-preview .table th,
.live-preview .table td {
  --bs-table-color: var(--bs-body-color);
  --bs-table-bg: var(--bs-body-bg);
  --bs-table-striped-bg: var(--bs-tertiary-bg);
  --bs-table-striped-color: var(--bs-body-color);
  --bs-table-hover-bg: var(--bs-secondary-bg);
  --bs-table-hover-color: var(--bs-body-color);
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: var(--bs-border-color);
}
.live-preview.markdown-body table th,
.live-preview .markdown-body table th,
.live-preview .table th {
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
}
.item-field .form-text code { user-select: all; }
.session-controls-mobile { display: none; }
@media (max-width: 767.98px) {
  .preview-sticky { position: static !important; }
  .live-preview { max-height: 70vh; }
  .session-controls-mobile { display: flex; }
}
@media (min-width: 1400px) {
  .container-fluid { max-width: 1920px; }
  .item-field textarea { min-height: 8.5rem; }
}

/* v5 exam-like preview and media-url refinements */
.exam-preview-shell { border: 1px solid var(--bs-border-color); border-radius: .9rem; overflow: hidden; background: var(--bs-body-bg); box-shadow: 0 .25rem 1rem rgba(0,0,0,.04); }
.exam-topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .85rem 1rem; background: var(--bs-primary); color: #fff; }
.exam-timer { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: 700; border: 1px solid rgba(255,255,255,.45); border-radius: .5rem; padding: .35rem .65rem; min-width: 7.5rem; text-align: center; }
.exam-layout { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); min-height: 520px; }
.exam-side { border-right: 1px solid var(--bs-border-color); padding: 1rem; background: var(--bs-tertiary-bg); }
.exam-nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.15rem, 1fr)); gap: .4rem; }
.exam-nav-btn { border: 1px solid var(--bs-border-color); border-radius: .45rem; background: var(--bs-body-bg); padding: .35rem .25rem; font-weight: 700; line-height: 1; min-height: 2.1rem; }
.exam-nav-btn.active { border-color: var(--bs-primary); background: var(--bs-primary); color: #fff; }
.exam-question { padding: 1.1rem; background: var(--bs-body-bg); }
.exam-question-no { font-weight: 800; font-size: 1.05rem; }
.exam-options { display: grid; gap: .65rem; }
.exam-option { display: grid; grid-template-columns: 1.3rem 2.1rem minmax(0, 1fr); align-items: start; gap: .45rem; padding: .7rem .75rem; border: 1px solid var(--bs-border-color); border-radius: .65rem; background: var(--bs-body-bg); }
.live-preview input[type="radio"]:disabled:not(:checked) {
  /* Radio pada live preview bersifat contoh jawaban, jadi radio disabled yang kosong harus tetap tampak kosong. */
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  margin: .15rem;
  border: 2px solid var(--bs-border-color);
  border-radius: 999px;
  background: var(--bs-body-bg);
  box-shadow: inset 0 0 0 .18rem var(--bs-body-bg);
  opacity: 1;
}
.live-preview input[type="radio"]:disabled:checked {
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: var(--bs-primary);
  opacity: .85;
}
.exam-option-letter { display: inline-grid; place-items: center; border-radius: 999px; width: 1.65rem; height: 1.65rem; background: var(--bs-tertiary-bg); font-weight: 800; }
.exam-option-content > p:last-child { margin-bottom: 0; }
.exam-answer-box { max-width: 28rem; background: var(--bs-body-bg) !important; }
.exam-key { border-top: 1px dashed var(--bs-border-color); padding-top: .75rem; color: var(--bs-secondary-color); }
.media-embed { border: 1px solid var(--bs-border-color); border-radius: .65rem; padding: .65rem; background: var(--bs-tertiary-bg); margin: .75rem 0; }
.media-embed audio, .media-embed video { width: 100%; max-height: 320px; display: block; }
@media (max-width: 991.98px) {
  .exam-layout { grid-template-columns: 1fr; }
  .exam-side { border-right: 0; border-bottom: 1px solid var(--bs-border-color); }
  .exam-topbar { align-items: flex-start; flex-direction: column; }
  .exam-timer { width: 100%; }
}


.usage-mini {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: var(--bs-tertiary-bg);
}
.usage-mini strong { font-variant-numeric: tabular-nums; }



/* v8.2 export repair: keep PDF source renderable. Do not move it to a far negative coordinate; browser-side canvas PDF conversion can produce blank pages for such nodes. */
.pdf-render-host {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  min-height: 1px;
  background: #fff;
  color: #111827;
  overflow: visible;
  pointer-events: none;
  z-index: 2147483000;
  transform: none !important;
}
.pdf-render-host * {
  box-sizing: border-box;
}

/* v7 editable TP, blueprint, and PDF export */
.tp-card textarea,
.blueprint-editor-table textarea { resize: vertical; }
.blueprint-editor-table th,
.blueprint-editor-table td { vertical-align: top; }
.blueprint-editor-table textarea.form-control-sm { min-height: 3.2rem; }
.blueprint-pdf-sheet { position: static; width: 267mm; min-height: 180mm; background: #fff; color: #111827; z-index: auto; box-sizing: border-box; }
.bp-pdf-doc { font-family: Arial, Helvetica, sans-serif; font-size: 9.5px; line-height: 1.35; }
.bp-pdf-header { display: flex; justify-content: space-between; gap: 14px; border-bottom: 2px solid #111827; padding-bottom: 8px; margin-bottom: 10px; }
.bp-pdf-header h1 { font-size: 18px; letter-spacing: 0; margin: 0 0 4px; }
.bp-pdf-header p { margin: 0; font-size: 11px; }
.bp-pdf-meta { display: grid; grid-template-columns: repeat(2, minmax(92px, 1fr)); gap: 4px 10px; font-size: 8.5px; text-align: left; }
.bp-pdf-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bp-pdf-table th,
.bp-pdf-table td { border: 0.5px solid #374151; padding: 3px 4px; vertical-align: top; word-break: break-word; overflow-wrap: anywhere; }
.bp-pdf-table th { background: #e5e7eb; font-weight: 700; text-align: center; }
.bp-pdf-table th:nth-child(1), .bp-pdf-table td:nth-child(1) { width: 24px; text-align: center; }
.bp-pdf-table th:nth-child(2), .bp-pdf-table td:nth-child(2) { width: 52px; }
.bp-pdf-table th:nth-child(3), .bp-pdf-table td:nth-child(3) { width: 62px; }
.bp-pdf-table th:nth-child(4), .bp-pdf-table td:nth-child(4) { width: 58px; }
.bp-pdf-table th:nth-child(8), .bp-pdf-table td:nth-child(8) { width: 72px; }
.bp-pdf-table th:nth-child(9), .bp-pdf-table td:nth-child(9) { width: 58px; }
.bp-pdf-footer { margin-top: 8px; font-size: 8.5px; color: #4b5563; }
@media print {
  .blueprint-pdf-sheet { position: static; width: auto; }
}


/* v8 paper based test PDF export and efficient backup status */
.pbt-pdf-sheet { position: static; width: 180mm; min-height: 267mm; background: #fff; color: #111827; z-index: auto; box-sizing: border-box; }
.pbt-doc { font-family: Arial, Helvetica, sans-serif; font-size: 10.5px; line-height: 1.34; color: #111827; }
.pbt-header { display: flex; justify-content: space-between; gap: 14px; border-bottom: 2px solid #111827; padding-bottom: 7px; margin-bottom: 9px; }
.pbt-header h1 { font-size: 17px; margin: 0 0 3px; letter-spacing: 0; }
.pbt-header p { margin: 0; font-size: 10px; color: #374151; }
.pbt-meta { border-collapse: collapse; font-size: 8.5px; min-width: 72mm; }
.pbt-meta th, .pbt-meta td { border: .5px solid #6b7280; padding: 2px 4px; text-align: left; vertical-align: top; }
.pbt-meta th { background: #f3f4f6; width: 30mm; }
.pbt-instructions { border: .7px solid #9ca3af; background: #f9fafb; padding: 6px 8px; margin: 7px 0 10px; }
.pbt-question { break-inside: avoid; page-break-inside: avoid; border-top: .8px solid #d1d5db; padding-top: 7px; margin-top: 8px; }
.pbt-q-head { display: flex; gap: 6px; align-items: center; font-weight: 700; margin-bottom: 5px; }
.pbt-q-no { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; border: 1px solid #111827; }
.pbt-stimulus { border-left: 3px solid #9ca3af; padding: 5px 7px; background: #f9fafb; margin: 5px 0 7px; }
.pbt-stem { font-weight: 600; margin-bottom: 5px; }
.pbt-options { margin: 4px 0 0 18px; padding: 0; }
.pbt-options li { margin: 3px 0; padding-left: 2px; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 4px; }
.pbt-bubble { font-family: Arial, Helvetica, sans-serif; }
.pbt-pgkk-table, .pbt-answer-table, .pbt-scoring-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pbt-pgkk-table th, .pbt-pgkk-table td, .pbt-answer-table th, .pbt-answer-table td, .pbt-scoring-table th, .pbt-scoring-table td { border: .5px solid #374151; padding: 3px 4px; vertical-align: top; overflow-wrap: anywhere; }
.pbt-pgkk-table th, .pbt-answer-table th, .pbt-scoring-table th { background: #e5e7eb; text-align: center; }
.pbt-choice-cell { text-align: center; width: 22mm; font-size: 13px; }
.pbt-answer-space { margin-top: 7px; display: grid; grid-template-columns: 24mm 1fr; align-items: end; gap: 6px; }
.pbt-answer-space span, .pbt-short-row span { display: block; border-bottom: .8px solid #111827; height: 8mm; }
.pbt-id-box { display: grid; grid-template-columns: 1.7fr .7fr .9fr .7fr; gap: 6px; border: .7px solid #9ca3af; padding: 7px; margin: 8px 0 10px; }
.pbt-answer-section { break-inside: avoid; page-break-inside: avoid; margin: 8px 0 12px; }
.pbt-answer-section h2, .pbt-score-summary h2, .pbt-rubric-card h2 { font-size: 12.5px; margin: 0 0 5px; }
.pbt-bubble-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; row-gap: 3px; }
.pbt-answer-row { display: grid; grid-template-columns: 18px 48px repeat(6, minmax(25px, 1fr)); gap: 3px; align-items: center; border-bottom: .5px solid #e5e7eb; min-height: 16px; }
.pbt-answer-no { font-weight: 700; text-align: right; }
.pbt-answer-code { color: #4b5563; }
.pbt-mark { white-space: nowrap; font-size: 10px; }
.pbt-short-row { display: grid; grid-template-columns: 42mm 1fr; gap: 8px; align-items: end; margin: 5px 0; }
.pbt-scoring-table { font-size: 8.7px; }
.pbt-scoring-table th:nth-child(1), .pbt-scoring-table td:nth-child(1) { width: 7mm; text-align: center; }
.pbt-scoring-table th:nth-child(2), .pbt-scoring-table td:nth-child(2) { width: 18mm; }
.pbt-scoring-table th:nth-child(3), .pbt-scoring-table td:nth-child(3) { width: 24mm; }
.pbt-scoring-table th:nth-child(6), .pbt-scoring-table td:nth-child(6) { width: 22mm; }
.pbt-rubric-card { break-inside: avoid; page-break-inside: avoid; border: .7px solid #9ca3af; border-radius: 4px; padding: 6px 7px; margin: 7px 0; }
.pbt-rubric-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: 8px; margin-bottom: 5px; }
.pbt-md p { margin: 0 0 4px; }
.pbt-md ul, .pbt-md ol { margin: 2px 0 4px 16px; padding: 0; }
.pbt-md table { width: 100%; border-collapse: collapse; margin: 4px 0; font-size: .95em; }
.pbt-md th, .pbt-md td { border: .5px solid #6b7280; padding: 2px 3px; }
.pbt-md th { background: #f3f4f6; }
.pbt-md img.asset-img { max-width: 100%; max-height: 70mm; object-fit: contain; border: .5px solid #9ca3af; padding: 2px; display: block; margin: 4px auto; }
.pbt-page-break { break-before: page; page-break-before: always; }
@media print { .pbt-pdf-sheet { position: static; width: auto; } }

/* v8.3 UI and PDF stability repairs */
#workspacePanel { transition: max-width .18s ease, flex-basis .18s ease; }
#btnToggleSideCard { white-space: nowrap; }

.pdf-render-host {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 1px;
  min-height: 1px;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  color: #111827 !important;
  overflow: visible !important;
  pointer-events: none !important;
  z-index: 2147483647 !important;
  transform: translateZ(0) !important;
  contain: none !important;
}
.pdf-render-host[data-orientation="portrait"] { width: 210mm !important; }
.pdf-render-host[data-orientation="landscape"] { width: 297mm !important; }
.pdf-render-host .blueprint-pdf-sheet,
.pdf-render-host .pbt-pdf-sheet {
  display: block !important;
  margin: 0 !important;
  background: #fff !important;
  color: #111827 !important;
  overflow: visible !important;
  box-shadow: none !important;
  transform: none !important;
}
.pdf-render-host .blueprint-pdf-sheet {
  width: 297mm !important;
  min-height: 210mm !important;
  padding: 15mm !important;
}
.pdf-render-host .pbt-pdf-sheet {
  width: 210mm !important;
  min-height: 297mm !important;
  padding: 15mm !important;
}
.pdf-render-host .bp-pdf-doc,
.pdf-render-host .pbt-doc {
  width: 100% !important;
  max-width: none !important;
}
.pdf-render-host .bp-pdf-table tr,
.pdf-render-host .pbt-answer-table tr,
.pdf-render-host .pbt-pgkk-table tr,
.pdf-render-host .pbt-scoring-table tr {
  break-inside: avoid;
  page-break-inside: avoid;
}
.pdf-render-host .bp-pdf-table,
.pdf-render-host .pbt-pgkk-table,
.pdf-render-host .pbt-answer-table,
.pdf-render-host .pbt-scoring-table {
  max-width: 100% !important;
}
.pdf-render-host .pbt-md mjx-container,
.pdf-render-host .pbt-md svg,
.pdf-render-host mjx-container {
  max-width: 100% !important;
  overflow: visible !important;
}
.pdf-render-host .pbt-question,
.pdf-render-host .pbt-answer-section,
.pdf-render-host .pbt-rubric-card {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Slightly more compact export typography prevents avoid-all pagebreaks from creating sparse pages. */
.pdf-render-host .pbt-doc { font-size: 10px; line-height: 1.28; }
.pdf-render-host .bp-pdf-doc { font-size: 9px; line-height: 1.28; }
.pdf-render-host .bp-pdf-header h1 { font-size: 16px; }
.pdf-render-host .pbt-header h1 { font-size: 15px; }
.pdf-render-host .bp-pdf-table th,
.pdf-render-host .bp-pdf-table td,
.pdf-render-host .pbt-scoring-table th,
.pdf-render-host .pbt-scoring-table td { padding: 2px 3px; }


/* v8.4 print-preview export notes. Actual printed documents are rendered in a dedicated print-preview window. */
.print-preview-note { font-size: .875rem; color: var(--bs-secondary-color); }
@media print {
  .app-shell, .navbar, .side-card, .wizard-step, .modal, .swal2-container { display: none !important; }
}

/* v8.5 AI + LaTeX editor hardening */
.rich-field-toolbar {
  margin-top: .35rem;
}
.rich-field-preview {
  max-height: 16rem;
  overflow: auto;
  background: var(--bs-body-bg);
}
.mathquill-editor {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
}
.mathquill-editable-field {
  min-width: 100%;
  min-height: 2.25rem;
  font-size: 1.15rem;
}
.latex-editor-preview {
  min-height: 3rem;
  overflow-x: auto;
}
.latex-editor-preview mjx-container {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.format-warning-list {
  border-left: 3px solid var(--bs-warning);
  padding-left: .75rem;
}
@media (max-width: 575.98px) {
  .rich-field-toolbar .btn { width: 100%; }
}

/* v8.6 UX and accuracy dashboard */
.hero-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 1.1rem;
  background: radial-gradient(circle at top left, rgba(37,99,235,.14), transparent 38rem), linear-gradient(135deg, var(--bs-body-bg), var(--bs-tertiary-bg));
  box-shadow: 0 .75rem 2.5rem rgba(15,23,42,.06);
}
.hero-workspace .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: .35rem;
  color: var(--bs-primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.quality-dashboard:empty { display: none; }
.quality-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(320px, 1fr) minmax(240px, .95fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-left-width: .4rem;
  border-radius: 1rem;
  background: var(--bs-body-bg);
  box-shadow: 0 .5rem 1.75rem rgba(15,23,42,.055);
}
.quality-score { display: flex; align-items: center; gap: .85rem; }
.score-circle {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.quality-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
}
.quality-metrics > div {
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  padding: .65rem .55rem;
  background: var(--bs-tertiary-bg);
  text-align: center;
}
.quality-metrics strong { display: block; font-size: 1.15rem; line-height: 1; }
.quality-metrics span { display: block; margin-top: .25rem; font-size: .76rem; color: var(--bs-secondary-color); }
.quality-details { max-height: 9rem; overflow: auto; font-size: .85rem; }
.quality-details summary { cursor: pointer; font-weight: 700; }
.wizard-step .card { border-radius: 1rem; overflow: hidden; }
.form-label { font-weight: 650; }
.btn { border-radius: .7rem; }
.item-field textarea:focus, .item-field input:focus, .blueprint-editor-table textarea:focus {
  box-shadow: 0 0 0 .25rem rgba(37,99,235,.13);
}
.rich-field-toolbar {
  padding: .35rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .7rem;
  background: var(--bs-tertiary-bg);
}
@media (max-width: 1199.98px) {
  .hero-workspace, .quality-card { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
}
@media (max-width: 575.98px) {
  .quality-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-workspace { padding: .85rem; }
}

/* v8.9 UI/UX polish: governed visual system, focused workspace, and comfort controls */
:root {
  --mcs-surface-rgb: 255, 255, 255;
  --mcs-ink: #0f172a;
  --mcs-muted: #64748b;
  --mcs-primary: #2563eb;
  --mcs-primary-2: #7c3aed;
  --mcs-success: #16a34a;
  --mcs-warning: #d97706;
  --mcs-danger: #dc2626;
  --mcs-card-radius: 1.1rem;
  --mcs-soft-shadow: 0 18px 48px rgba(15, 23, 42, .08);
  --mcs-focus-ring: 0 0 0 .25rem rgba(37, 99, 235, .18);
}
[data-bs-theme="dark"] {
  --mcs-surface-rgb: 17, 24, 39;
  --mcs-ink: #f8fafc;
  --mcs-muted: #94a3b8;
  --mcs-soft-shadow: 0 18px 48px rgba(0, 0, 0, .32);
}
html { scroll-padding-top: 5.25rem; }
body {
  color: var(--bs-body-color);
  background:
    radial-gradient(circle at 16% -10%, rgba(37, 99, 235, .16), transparent 28rem),
    radial-gradient(circle at 100% 8%, rgba(124, 58, 237, .11), transparent 26rem),
    linear-gradient(180deg, rgba(15, 23, 42, .025), transparent 22rem),
    var(--bs-body-bg);
}
.navbar {
  backdrop-filter: blur(18px) saturate(1.22);
  background: rgba(var(--mcs-surface-rgb), .83) !important;
  box-shadow: 0 1px 0 rgba(148, 163, 184, .18), 0 14px 32px rgba(15, 23, 42, .045);
}
.navbar-brand {
  letter-spacing: 0;
}
.navbar .btn-sm, .navbar .badge {
  min-height: 2rem;
}
.ui-modern-shell {
  max-width: 1880px;
}
.hero-workspace {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .20);
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, .16), transparent 24rem),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .12), transparent 22rem),
    linear-gradient(135deg, rgba(var(--mcs-surface-rgb), .94), rgba(var(--mcs-surface-rgb), .78));
  box-shadow: var(--mcs-soft-shadow);
}
.hero-workspace::after {
  content: '';
  position: absolute;
  inset: auto -7rem -11rem auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
  pointer-events: none;
}
.hero-main, .hero-actions { position: relative; z-index: 1; }
.hero-workspace h2 { letter-spacing: 0; }
.alert-modern {
  border-radius: 1rem;
  border-color: rgba(37, 99, 235, .24);
  background: rgba(37, 99, 235, .075);
}
.ux-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.ux-guide-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon title" "icon desc";
  gap: .15rem .75rem;
  align-items: start;
  padding: .9rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: rgba(var(--mcs-surface-rgb), .82);
  box-shadow: 0 .45rem 1.25rem rgba(15, 23, 42, .045);
}
.ux-guide-card > i {
  grid-area: icon;
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .75rem;
  background: rgba(37, 99, 235, .10);
  color: var(--mcs-primary);
  font-size: 1.08rem;
}
.ux-guide-card strong { grid-area: title; letter-spacing: 0; }
.ux-guide-card span { grid-area: desc; color: var(--bs-secondary-color); font-size: .86rem; }
.workflow-card {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.6fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: var(--mcs-card-radius);
  background: linear-gradient(135deg, rgba(var(--mcs-surface-rgb), .94), rgba(var(--mcs-surface-rgb), .74));
  box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .055);
}
.workflow-card-main {
  padding: .15rem .25rem;
}
.workflow-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: .25rem;
  color: var(--mcs-primary);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
.workflow-title {
  font-weight: 850;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  letter-spacing: 0;
}
.workflow-caption {
  margin-top: .45rem;
  color: var(--bs-secondary-color);
  font-size: .86rem;
}
.workflow-progress {
  height: .55rem;
  margin-top: .65rem;
  border-radius: 999px;
  background: var(--bs-tertiary-bg);
}
.workflow-progress .progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mcs-primary), var(--mcs-primary-2));
}
.workflow-checkpoints {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
}
.workflow-chip {
  display: grid;
  gap: .15rem;
  justify-items: start;
  padding: .72rem .72rem;
  min-height: 5.2rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .9rem;
  background: var(--bs-tertiary-bg);
}
.workflow-chip i {
  color: var(--bs-secondary-color);
  font-size: 1.05rem;
}
.workflow-chip span {
  color: var(--bs-secondary-color);
  font-size: .75rem;
  font-weight: 700;
}
.workflow-chip strong {
  font-size: .95rem;
  line-height: 1.1;
}
.workflow-chip.is-ok {
  border-color: rgba(22, 163, 74, .34);
  background: rgba(22, 163, 74, .08);
}
.workflow-chip.is-ok i { color: var(--mcs-success); }
.card, .account-card, .quality-card, .side-card {
  border-radius: var(--mcs-card-radius) !important;
}
.wizard-step .card {
  border: 1px solid rgba(148, 163, 184, .28);
  box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .055) !important;
}
.wizard-step .card-body {
  padding: clamp(1rem, 1.35vw, 1.45rem);
}
.form-control, .form-select, .choices__inner {
  border-radius: .78rem;
}
.form-control:focus, .form-select:focus, .choices.is-focused .choices__inner {
  box-shadow: var(--mcs-focus-ring);
}
.form-text {
  color: var(--bs-secondary-color);
}
.btn {
  font-weight: 650;
  letter-spacing: 0;
}
.btn-primary, .btn-success, .btn-danger {
  box-shadow: 0 .5rem 1.25rem rgba(37, 99, 235, .12);
}
.btn:focus-visible, .stepper-item:focus-visible, .exam-nav-btn:focus-visible {
  outline: 0;
  box-shadow: var(--mcs-focus-ring);
}
.stepper-item {
  border-radius: .95rem;
  background: rgba(var(--mcs-surface-rgb), .72);
}
.stepper-item.active {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08), 0 .55rem 1.4rem rgba(37, 99, 235, .09);
}
.stepper-item .num {
  transition: transform .16s ease;
}
.stepper-item.active .num { transform: scale(1.04); }
.result-panel:not(:empty), .table-responsive.result-panel:not(:empty) {
  border-radius: 1rem;
}
.item-field, .tp-card, .asset-card, .metric-card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.asset-card:hover, .metric-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 .65rem 1.5rem rgba(15,23,42,.07);
}
.live-preview {
  border-radius: .95rem;
  border: 1px solid var(--bs-border-color);
  padding: .75rem;
}
.exam-preview-shell {
  border-radius: 1rem;
  box-shadow: 0 .85rem 2rem rgba(15, 23, 42, .075);
}
.exam-topbar {
  background: linear-gradient(90deg, #1d4ed8, #2563eb 48%, #4f46e5);
}
.exam-option:hover {
  border-color: rgba(37, 99, 235, .45);
  background: rgba(37, 99, 235, .035);
}
.rich-field-toolbar {
  gap: .35rem;
}
.rich-field-toolbar .btn {
  border-radius: .6rem;
}
.swal2-popup {
  border-radius: 1.15rem !important;
}
body.comfort-mode .wizard-step .card-body { padding: clamp(1.25rem, 1.8vw, 1.85rem); }
body.comfort-mode .form-control,
body.comfort-mode .form-select { min-height: 2.75rem; }
body.comfort-mode .item-field textarea { min-height: 9.5rem; line-height: 1.58; }
body.comfort-mode .live-preview { font-size: 1rem !important; line-height: 1.62; }
body.comfort-mode .ux-guide-grid,
body.comfort-mode .workflow-card,
body.comfort-mode .row.g-3 { row-gap: 1.15rem !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 1199.98px) {
  .workflow-card { grid-template-columns: 1fr; }
  .workflow-checkpoints { grid-template-columns: repeat(5, minmax(7rem, 1fr)); overflow-x: auto; padding-bottom: .25rem; }
  .ux-guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .navbar .container-fluid { align-items: flex-start; gap: .5rem; }
  .navbar-brand { width: 100%; }
  .workflow-checkpoints { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: visible; }
  .workflow-chip { min-height: 4.5rem; }
  .hero-actions .btn, .d-flex.flex-wrap.gap-2 .btn { width: 100%; justify-content: center; }
  .ux-guide-card { padding: .8rem; }
}

/* v9.0 operational gates */
#prevStep[hidden], #nextStep[hidden] { display: none !important; }
#introWorkspace.d-none, #providerInfo.d-none, #uxGuideGrid.d-none, #livePreviewCard.d-none, #itemFormatHelp.d-none, #exportPanel.d-none { display: none !important; }
#nextStep:disabled, #btnGenerateItems:disabled { cursor: not-allowed; opacity: .62; }

/* v9.1 compact workspace status and richer AI feedback */
:root {
  --mcs-compact-radius: .75rem;
}
.account-panel,
.workflow-summary {
  margin-bottom: .75rem !important;
}
.min-w-0 { min-width: 0 !important; }
.account-card {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) minmax(16rem, 1.25fr) auto auto;
  gap: .55rem .75rem;
  align-items: center;
  padding: .55rem .65rem;
  min-height: 3.2rem;
  border: 1px solid rgba(148, 163, 184, .28);
  border-left: .28rem solid var(--bs-secondary);
  border-radius: var(--mcs-compact-radius) !important;
  background: rgba(var(--mcs-surface-rgb), .88);
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .045);
}
.account-card.is-premium { border-left-color: var(--mcs-success); }
.account-card.is-free { border-left-color: var(--mcs-primary); }
.account-identity {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.account-avatar {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: .65rem;
  background: rgba(37, 99, 235, .1);
  color: var(--mcs-primary);
}
.account-card.is-premium .account-avatar {
  background: rgba(22, 163, 74, .1);
  color: var(--mcs-success);
}
.account-kicker {
  color: var(--bs-secondary-color);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.account-name {
  margin-top: .12rem;
  font-size: .94rem;
  font-weight: 780;
  line-height: 1.15;
}
.account-meta,
.account-limits {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  min-width: 0;
}
.account-chip,
.account-limit {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  max-width: 100%;
  min-height: 1.7rem;
  padding: .2rem .45rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .55rem;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  font-size: .76rem;
  line-height: 1;
  white-space: nowrap;
}
.account-chip i { color: var(--mcs-primary); }
.account-chip.is-live {
  border-color: rgba(22, 163, 74, .26);
  background: rgba(22, 163, 74, .08);
  color: var(--bs-success-text-emphasis);
}
.account-chip.is-demo {
  border-color: rgba(217, 119, 6, .28);
  background: rgba(217, 119, 6, .08);
  color: var(--bs-warning-text-emphasis);
}
.account-limit strong {
  color: var(--bs-body-color);
  font-size: .68rem;
}
.account-limit.is-total {
  border-color: rgba(37, 99, 235, .24);
  background: rgba(37, 99, 235, .08);
}
.account-actions {
  display: flex;
  justify-content: flex-end;
}
.account-actions .btn {
  min-height: 1.95rem;
  border-radius: .6rem;
  white-space: nowrap;
}
.workflow-card {
  grid-template-columns: minmax(12rem, .8fr) minmax(0, 2fr);
  gap: .65rem;
  align-items: center;
  padding: .65rem;
  border-radius: var(--mcs-compact-radius);
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .045);
}
.workflow-card.is-busy {
  grid-template-columns: minmax(12rem, .78fr) minmax(0, 1.6fr) minmax(18rem, .85fr);
  border-color: rgba(37, 99, 235, .36);
}
.workflow-card-main {
  min-width: 0;
  padding: 0;
}
.workflow-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.workflow-step-index {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  border-radius: .65rem;
  background: rgba(37, 99, 235, .11);
  color: var(--mcs-primary);
  font-size: .74rem;
  font-weight: 850;
}
.workflow-kicker {
  margin-bottom: .12rem;
  font-size: .66rem;
  line-height: 1;
  letter-spacing: 0;
}
.workflow-title {
  font-size: .98rem;
  line-height: 1.12;
}
.workflow-caption {
  margin-top: .32rem;
  font-size: .76rem;
}
.workflow-progress {
  height: .38rem;
  margin-top: .45rem;
}
.workflow-checkpoints {
  grid-template-columns: repeat(5, minmax(4.8rem, 1fr));
  gap: .35rem;
}
.workflow-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value";
  gap: .08rem .35rem;
  align-items: center;
  min-height: 2.65rem;
  padding: .38rem .45rem;
  border-radius: .6rem;
}
.workflow-chip i {
  grid-area: icon;
  font-size: .95rem;
}
.workflow-chip span {
  grid-area: label;
  font-size: .66rem;
  line-height: 1;
}
.workflow-chip strong {
  grid-area: value;
  max-width: 100%;
  font-size: .84rem;
  line-height: 1.08;
}
.workflow-live {
  display: grid;
  gap: .35rem;
  min-width: 0;
  padding: .45rem .55rem;
  border: 1px solid rgba(37, 99, 235, .24);
  border-radius: .65rem;
  background: rgba(37, 99, 235, .075);
}
.workflow-live strong {
  font-size: .8rem;
  line-height: 1;
}
.workflow-live-text {
  color: var(--bs-secondary-color);
  font-size: .74rem;
}
.workflow-live-progress {
  height: .32rem;
  background: rgba(37, 99, 235, .13);
}
.swal-ai-busy {
  width: min(38rem, calc(100vw - 2rem)) !important;
}
.swal-ai-busy .swal2-html-container {
  margin-top: .75rem !important;
}
.ai-busy-panel {
  text-align: left;
}
.ai-busy-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .55rem .75rem;
  align-items: start;
}
.ai-busy-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-grid;
  place-items: center;
  border-radius: .7rem;
  background: rgba(37, 99, 235, .1);
  color: var(--mcs-primary);
}
.ai-busy-text {
  min-width: 0;
}
.ai-busy-main {
  font-weight: 750;
}
.ai-busy-detail,
.ai-busy-tip,
.ai-busy-elapsed,
.ai-busy-log {
  color: var(--bs-secondary-color);
  font-size: .82rem;
}
.ai-busy-progress {
  height: .48rem;
  margin-top: .65rem;
}
.ai-busy-progress .progress-bar,
.workflow-live-progress .progress-bar {
  background: linear-gradient(90deg, var(--mcs-primary), var(--mcs-success));
}
.ai-busy-meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .55rem;
}
.ai-busy-tip {
  margin-top: .6rem;
  padding: .5rem .6rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .65rem;
  background: var(--bs-tertiary-bg);
}
.ai-tip-kicker {
  color: var(--bs-secondary-color);
  font-size: .72rem;
  font-weight: 750;
}
.ai-tip-title {
  margin-top: .1rem;
  color: var(--bs-body-color);
  font-weight: 800;
  line-height: 1.2;
}
.ai-tip-text {
  margin-top: .2rem;
  color: var(--bs-secondary-color);
  line-height: 1.35;
}
.ai-tip-action {
  margin-top: .35rem;
  color: var(--bs-success-text-emphasis);
  font-size: .78rem;
  line-height: 1.3;
}
.ai-busy-log {
  max-height: 4.6rem;
  overflow: auto;
  margin-top: .55rem;
  padding-left: 1.1rem;
}
.ai-busy-log li {
  margin-bottom: .18rem;
}
@media (max-width: 1399.98px) {
  .account-card {
    grid-template-columns: minmax(13rem, 1fr) minmax(16rem, 1.35fr) auto;
  }
  .account-limits {
    grid-column: 1 / -1;
  }
  .workflow-card.is-busy {
    grid-template-columns: minmax(12rem, .8fr) minmax(0, 1.5fr);
  }
  .workflow-live {
    grid-column: 1 / -1;
  }
}
@media (max-width: 991.98px) {
  .account-card,
  .workflow-card,
  .workflow-card.is-busy {
    grid-template-columns: 1fr;
  }
  .account-actions {
    justify-content: flex-start;
  }
  .workflow-checkpoints {
    grid-template-columns: repeat(5, minmax(6rem, 1fr));
    overflow-x: auto;
    padding-bottom: .1rem;
  }
}
@media (max-width: 575.98px) {
  .account-card {
    padding: .55rem;
  }
  .account-meta,
  .account-limits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-chip,
  .account-limit {
    justify-content: center;
  }
  .account-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .workflow-checkpoints {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }
}

/* v9.2 compact pipeline and quality audit surfaces */
.pipeline-compact {
  display: grid;
  grid-template-columns: minmax(13rem, .95fr) minmax(16rem, 1.25fr) auto;
  gap: .55rem .75rem;
  align-items: center;
  padding: .55rem .65rem;
  border: 1px solid rgba(148, 163, 184, .28);
  border-left: .28rem solid var(--mcs-primary);
  border-radius: var(--mcs-compact-radius);
  background: rgba(var(--mcs-surface-rgb), .88);
}
.pipeline-status {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.pipeline-icon {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: .65rem;
  background: rgba(37, 99, 235, .1);
  color: var(--mcs-primary);
}
.pipeline-title {
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.1;
}
.pipeline-sub {
  margin-top: .12rem;
  color: var(--bs-secondary-color);
  font-size: .74rem;
}
.pipeline-progress {
  min-width: 0;
  color: var(--bs-secondary-color);
}
.pipeline-progress .progress {
  height: .42rem;
  margin-top: .25rem;
  background: var(--bs-tertiary-bg);
}
.pipeline-progress .progress-bar {
  background: linear-gradient(90deg, var(--mcs-primary), var(--mcs-success));
}
.pipeline-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
}
.pipeline-metrics span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 1.75rem;
  padding: .2rem .48rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .55rem;
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  font-size: .76rem;
  white-space: nowrap;
}
.pipeline-metrics strong {
  color: var(--bs-body-color);
}
.quality-card.quality-compact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(14rem, .95fr) minmax(16rem, 1.1fr) minmax(12rem, 1fr) auto;
  gap: .55rem .75rem;
  align-items: center;
  padding: .55rem .65rem;
  border-radius: var(--mcs-compact-radius) !important;
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .045);
}
.quality-main {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.quality-compact .score-circle {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  font-size: .92rem;
}
.quality-title {
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.1;
}
.quality-sub {
  margin-top: .15rem;
  color: var(--bs-secondary-color);
  font-size: .74rem;
}
.quality-metrics.quality-metrics-compact {
  grid-template-columns: repeat(4, minmax(3.75rem, 1fr));
  gap: .35rem;
}
.quality-metrics.quality-metrics-compact > div {
  min-height: 2.35rem;
  padding: .34rem .42rem;
  border-radius: .55rem;
}
.quality-metrics.quality-metrics-compact strong {
  font-size: .92rem;
}
.quality-metrics.quality-metrics-compact span {
  margin-top: .1rem;
  font-size: .66rem;
}
.quality-issue {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  color: var(--bs-secondary-color);
  font-size: .78rem;
}
.quality-issue .badge {
  flex: 0 0 auto;
}
.quality-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .35rem;
}
.quality-actions .btn {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.quality-compact .quality-details {
  max-height: none;
  overflow: visible;
  font-size: .78rem;
}
.quality-compact .quality-details[open] {
  position: absolute;
  right: 1rem;
  left: 1rem;
  z-index: 20;
  margin-top: 2.4rem;
  padding: .75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  background: var(--bs-body-bg);
  box-shadow: var(--mcs-soft-shadow);
}
@media (max-width: 1199.98px) {
  .pipeline-compact,
  .quality-card.quality-compact {
    grid-template-columns: 1fr;
  }
  .pipeline-metrics,
  .quality-actions {
    justify-content: flex-start;
  }
  .quality-compact .quality-details[open] {
    position: static;
    margin-top: 0;
    box-shadow: none;
  }
}
@media (max-width: 575.98px) {
  .pipeline-metrics,
  .quality-metrics.quality-metrics-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .pipeline-metrics span {
    justify-content: center;
  }
  .quality-actions {
    width: 100%;
  }
}
