.mup-configuration-page {
  --config-ink: var(--mup-navy, #10233d);
  --config-muted: var(--mup-muted, #64748b);
  --config-blue: var(--mup-blue, #0b63f6);
  --config-border: var(--mup-border, #cbd6e2);
  --config-surface: #fff;
  --config-soft: #f5f8fc;
  min-width: 320px;
}

.mup-configuration-page *,
.mup-configuration-page *::before,
.mup-configuration-page *::after {
  box-sizing: border-box;
}

.mup-configuration-page button,
.mup-configuration-page input,
.mup-configuration-page select {
  font: inherit;
}

.mup-configuration-page button,
.mup-configuration-page a {
  -webkit-tap-highlight-color: transparent;
}

.mup-config-main {
  position: relative;
  z-index: 1;
  padding: 34px 0 72px;
}

.mup-config-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.mup-config-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--config-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 10%, rgba(11, 99, 246, .09), transparent 26%),
    linear-gradient(135deg, #fff 0%, #fbfdff 58%, #edf5ff 100%);
  box-shadow: var(--mup-shadow, 0 16px 38px rgba(30, 52, 79, .11));
}

.mup-config-eyebrow,
.mup-config-section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--config-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mup-config-eyebrow::before,
.mup-config-section-label::before {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.mup-config-intro h1 {
  margin: 13px 0 12px;
  color: var(--config-ink);
  font-size: clamp(32px, 4.4vw, 51px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.mup-config-intro-copy > p {
  max-width: 630px;
  margin: 0;
  color: var(--config-muted);
  font-size: 15px;
  line-height: 1.65;
}

.mup-config-doc-switcher {
  display: grid;
  gap: 9px;
}

.mup-config-doc-switcher a {
  position: relative;
  display: flex;
  min-height: 67px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 48px 12px 17px;
  overflow: hidden;
  border: 1px solid #d5dfeb;
  border-radius: 14px;
  color: var(--config-ink);
  background: rgba(255, 255, 255, .86);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mup-config-doc-switcher a::after {
  position: absolute;
  right: 16px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--config-blue);
  background: #edf4ff;
  content: "→";
  font-weight: 900;
}

.mup-config-doc-switcher a:hover {
  transform: translateY(-2px);
  border-color: #a8c7ed;
  box-shadow: 0 10px 24px rgba(30, 52, 79, .09);
}

.mup-config-doc-switcher a.active {
  border-color: #9dc3f4;
  background: #eef5ff;
}

.mup-config-doc-switcher small {
  margin-bottom: 3px;
  color: var(--config-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mup-config-doc-switcher strong {
  font-size: 14px;
}

.mup-config-view {
  margin-top: 28px;
}

.mup-config-toolbar,
.mup-guide-catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: 28px 30px;
  border: 1px solid var(--config-border);
  border-radius: 19px;
  background: #fff;
}

.mup-config-toolbar h2,
.mup-guide-catalog-head h2 {
  margin: 9px 0 7px;
  color: var(--config-ink);
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.mup-config-toolbar p,
.mup-guide-catalog-head p {
  margin: 0;
  color: var(--config-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mup-config-filters {
  display: grid;
  grid-template-columns: 185px minmax(220px, 1fr);
  gap: 12px;
  width: min(500px, 100%);
  flex: 0 0 auto;
}

.mup-config-filters.compact {
  width: min(510px, 100%);
}

.mup-config-filters label {
  display: grid;
  gap: 7px;
  color: #4e6075;
  font-size: 11px;
  font-weight: 900;
}

.mup-config-filters input,
.mup-config-filters select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #bfcddd;
  border-radius: 11px;
  outline: 0;
  color: var(--config-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mup-config-filters input::placeholder {
  color: #8c9aad;
  font-weight: 600;
}

.mup-config-result-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 3px 14px;
  color: var(--config-muted);
  font-size: 12px;
  font-weight: 700;
}

.mup-config-result-line span:first-child {
  color: var(--config-ink);
  font-weight: 900;
}

.mup-system-grid,
.mup-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mup-system-card,
.mup-guide-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #c5d2e0;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(30, 52, 79, .07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mup-system-card:not(.is-planned):hover,
.mup-guide-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tone, #0b63f6) 48%, #c5d2e0);
  box-shadow: 0 18px 34px rgba(30, 52, 79, .13);
}

.mup-system-visual {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tone) 86%, #08182c), var(--tone2));
}

.mup-system-visual::before {
  position: absolute;
  right: -44px;
  bottom: -62px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  content: "";
}

.mup-system-visual::after {
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(100deg, #000, transparent 75%);
  content: "";
}

.mup-system-visual-top,
.mup-system-mark {
  position: relative;
  z-index: 1;
}

.mup-system-visual-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.mup-system-visual-top span {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(5, 19, 39, .2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mup-system-visual-top small {
  max-width: 120px;
  text-align: right;
  color: rgba(255, 255, 255, .8);
  font-size: 10px;
  font-weight: 800;
}

.mup-system-mark {
  display: block;
  margin-top: 35px;
  font-size: 44px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.055em;
}

.mup-system-body,
.mup-guide-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px;
}

.mup-system-body h3,
.mup-guide-body h3 {
  margin: 0 0 8px;
  color: var(--config-ink);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.018em;
}

.mup-system-body > p,
.mup-guide-body > p {
  margin: 0;
  color: var(--config-muted);
  font-size: 13px;
  line-height: 1.58;
}

.mup-system-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}

.mup-system-tags span {
  padding: 6px 9px;
  border: 1px solid #d3deea;
  border-radius: 8px;
  color: #617287;
  background: #f4f7fa;
  font-size: 10px;
  font-weight: 800;
}

.mup-system-foot,
.mup-guide-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e0e7ef;
  color: #7a899a;
  font-size: 10px;
  font-weight: 800;
}

.mup-system-open,
.mup-guide-open,
.mup-config-back,
.mup-copy-button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.mup-system-open,
.mup-guide-open {
  padding: 0;
  color: var(--config-blue);
  background: transparent;
  font-size: 11px;
}

.mup-system-open:hover,
.mup-guide-open:hover {
  color: #0849b9;
  transform: translateX(2px);
}

.mup-system-card.is-planned {
  opacity: .72;
  box-shadow: none;
}

.mup-system-card.is-planned .mup-system-visual {
  filter: saturate(.55);
}

.mup-system-card.is-planned .mup-system-foot strong {
  color: #758498;
}

.mup-guide-hero {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  padding: 31px 34px;
  border-radius: 22px 22px 0 0;
  color: #fff;
  background: linear-gradient(128deg, var(--tone, #0b63f6), var(--tone2, #5269d9));
  box-shadow: 0 18px 40px rgba(30, 52, 79, .14);
}

.mup-guide-hero::after {
  position: absolute;
  right: -85px;
  top: -105px;
  width: 330px;
  height: 330px;
  border: 48px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
}

.mup-guide-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.mup-config-back {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.38);
  color: #fff;
  background: rgba(8, 24, 48, .16);
  font-size: 11px;
}

.mup-config-back:hover {
  background: rgba(8, 24, 48, .3);
}

.mup-guide-hero small {
  display: block;
  margin-top: 27px;
  color: rgba(255,255,255,.77);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mup-guide-hero h1 {
  margin: 8px 0 9px;
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -.045em;
}

.mup-guide-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  line-height: 1.58;
}

.mup-guide-catalog {
  padding: 28px;
  border: 1px solid var(--config-border);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: rgba(255,255,255,.92);
}

.mup-guide-catalog-head {
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid #dbe4ed;
  border-radius: 0;
  background: transparent;
}

.mup-guide-card {
  --tone: #0b63f6;
  min-height: 290px;
  border-top: 4px solid var(--tone);
}

.mup-guide-number {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  margin-bottom: 21px;
  border-radius: 14px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 11%, white);
  font-size: 13px;
  font-weight: 950;
}

.mup-guide-outcome {
  margin: 15px 0 18px;
  color: #40556f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.48;
}

.mup-config-detail {
  --tone: #0b63f6;
  --tone2: #5269d9;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--config-border);
  border-radius: 23px;
  background: #fff;
  box-shadow: var(--mup-shadow, 0 16px 38px rgba(30, 52, 79, .11));
}

.mup-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 31px 34px 34px;
  color: #fff;
  background: linear-gradient(128deg, var(--tone), var(--tone2));
}

.mup-detail-hero::after {
  position: absolute;
  right: -70px;
  bottom: -145px;
  width: 350px;
  height: 350px;
  border: 52px solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
}

.mup-detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.mup-detail-hero .mup-config-back {
  margin-bottom: 25px;
}

.mup-detail-hero small {
  display: block;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mup-detail-hero h1 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(35px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.mup-detail-hero p {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.6;
}

.mup-detail-content {
  padding: 26px 34px 36px;
}

.mup-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.mup-detail-summary span {
  padding: 8px 11px;
  border: 1px solid #dbe3ec;
  border-radius: 9px;
  color: #4e6076;
  background: #f3f6f9;
  font-size: 10px;
  font-weight: 900;
}

.mup-detail-hint {
  margin: 0 0 14px;
  color: var(--config-muted);
  font-size: 12px;
  text-align: right;
}

.mup-module-list {
  overflow: hidden;
  border: 1px solid #d7e0ea;
  border-radius: 17px;
}

.mup-module + .mup-module {
  border-top: 1px solid #dce4ed;
}

.mup-module > summary,
.mup-field-section > summary {
  list-style: none;
  cursor: pointer;
}

.mup-module > summary::-webkit-details-marker,
.mup-field-section > summary::-webkit-details-marker {
  display: none;
}

.mup-module > summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  gap: 16px;
  align-items: center;
  min-height: 91px;
  padding: 14px 21px;
  background: #fff;
}

.mup-module[open] > summary {
  background: color-mix(in srgb, var(--tone) 7%, white);
}

.mup-module-number {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 12px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, white);
  font-size: 11px;
  font-weight: 950;
}

.mup-module-label strong {
  display: block;
  margin-bottom: 4px;
  color: var(--config-ink);
  font-size: 16px;
}

.mup-module-label small {
  color: var(--config-muted);
  font-size: 11px;
  font-weight: 600;
}

.mup-module-toggle {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, white);
  font-size: 18px;
  font-weight: 800;
}

.mup-module-toggle::before { content: "+"; }
.mup-module[open] .mup-module-toggle::before { content: "−"; }

.mup-module-content {
  padding: 25px 28px 30px;
  border-top: 1px solid #dfe7ef;
  background: #fbfcfe;
}

.mup-file-list {
  counter-reset: file;
}

.mup-file-row {
  display: grid;
  grid-template-columns: 36px minmax(210px, .85fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e1e7ee;
}

.mup-file-row:last-child { border-bottom: 0; }

.mup-file-row::before {
  counter-increment: file;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, white);
  content: counter(file, decimal-leading-zero);
  font-size: 9px;
  font-weight: 950;
}

.mup-field-name,
.mup-event-field dt,
.mup-example-file {
  overflow-wrap: anywhere;
  color: #16345d;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 800;
}

/* Las rutas son referencias cortas. Se aíslan del estilo oscuro global de <code>. */
.mup-file-row > code {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 6px 9px;
  overflow-wrap: anywhere;
  border: 1px solid #d1dce8;
  border-radius: 7px;
  color: #16345d;
  background: #eef3f8;
  box-shadow: none;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  white-space: normal;
}

.mup-file-row p {
  margin: 0;
  color: var(--config-muted);
  font-size: 12px;
  line-height: 1.5;
}

.mup-step-list {
  margin: 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.mup-step-list li {
  position: relative;
  min-height: 45px;
  padding: 5px 0 18px 47px;
  color: #3d5169;
  font-size: 13px;
  line-height: 1.58;
}

.mup-step-list li:not(:last-child)::after {
  position: absolute;
  top: 36px;
  bottom: 1px;
  left: 16px;
  width: 1px;
  background: #d4deea;
  content: "";
}

.mup-step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  counter-increment: steps;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--tone);
  content: counter(steps);
  font-size: 10px;
  font-weight: 950;
}

.mup-step-list code,
.mup-field-row code,
.mup-event-field code,
.mup-field-values code,
.mup-example-notes code,
.mup-check-list code,
.mup-warning code {
  display: inline;
  margin: 0;
  padding: 2px 5px;
  border: 1px solid #d5dfeb;
  border-radius: 5px;
  color: #17345b;
  background: #f0f4f8;
  box-shadow: none;
  font-family: Consolas, "Courier New", monospace;
  font-size: .92em;
  font-weight: inherit;
  line-height: inherit;
  white-space: normal;
}

.mup-field-section {
  overflow: hidden;
  border-bottom: 1px solid #dfe6ee;
  background: #fff;
}

.mup-field-section:first-child { border-radius: 13px 13px 0 0; }
.mup-field-section:last-child { border-bottom: 0; border-radius: 0 0 13px 13px; }

.mup-field-section > summary {
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  color: var(--config-ink);
  font-size: 13px;
  font-weight: 900;
}

.mup-field-section > summary::after {
  color: var(--tone);
  content: "+";
  font-size: 18px;
}

.mup-field-section[open] > summary::after { content: "−"; }
.mup-field-section[open] > summary { background: color-mix(in srgb, var(--tone) 6%, white); }

.mup-field-section-intro {
  margin: 0;
  padding: 16px 18px;
  border-top: 1px solid #e1e8ef;
  color: var(--config-muted);
  background: #fbfcfe;
  font-size: 12px;
  line-height: 1.55;
}

.mup-field-row {
  display: grid;
  grid-template-columns: minmax(150px, .62fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid #e3e9f0;
  background: #fff;
}

.mup-field-row small,
.mup-event-field dd small {
  display: block;
  margin-bottom: 5px;
  color: #8491a2;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mup-field-row p,
.mup-event-field dd {
  margin: 0;
  color: #4d6076;
  font-size: 12px;
  line-height: 1.55;
}

.mup-event-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 13px;
  background: #fff;
}

.mup-event-field {
  margin: 0;
  padding: 17px;
  border-bottom: 1px solid #e3e9f0;
}

.mup-event-field:nth-child(odd) { border-right: 1px solid #e3e9f0; }
.mup-event-field dt { margin-bottom: 8px; }
.mup-event-field dd { margin-left: 0; }

.mup-section-example {
  padding: 17px 18px 19px;
  border-top: 1px solid #dfe6ee;
  background: #f7f9fc;
}

.mup-section-example > small {
  display: block;
  margin-bottom: 8px;
  color: #718197;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mup-section-example pre {
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  border: 0;
  border-radius: 10px;
  color: #dfeaff;
  background: #1a2941;
  box-shadow: none;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.58;
}

.mup-example {
  overflow: hidden;
  border: 1px solid #cfd9e5;
  border-radius: 15px;
  background: #14223a;
}

.mup-example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 19px;
  background: #f4f7fb;
}

.mup-example-head strong {
  display: block;
  margin-bottom: 4px;
  color: var(--config-ink);
  font-size: 13px;
}

.mup-example-file {
  color: #66778d;
  font-size: 10px;
}

.mup-copy-button {
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid #a9c5eb;
  color: var(--config-blue);
  background: #fff;
  font-size: 10px;
}

.mup-copy-button:hover { background: #eaf2ff; }

.mup-example pre {
  max-height: 520px;
  margin: 0;
  padding: 24px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  color: #e8f0ff;
  background: #14223a;
  box-shadow: none;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.65;
  tab-size: 4;
}

/* Un bloque multilínea usa el fondo del <pre>; el <code> interior no dibuja cajas por línea. */
.mup-section-example pre > code,
.mup-example pre > code {
  display: block;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  white-space: pre;
}

.mup-example-notes {
  margin: 0;
  padding: 15px 19px 17px 38px;
  color: #50647c;
  background: #fff8e7;
  font-size: 11px;
  line-height: 1.52;
}

.mup-check-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mup-check-list li {
  position: relative;
  padding: 13px 0 13px 39px;
  border-bottom: 1px solid #e1e7ee;
  color: #40536a;
  font-size: 12px;
  line-height: 1.52;
}

.mup-check-list li:last-child { border-bottom: 0; }

.mup-check-list li::before {
  position: absolute;
  top: 12px;
  left: 0;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #a5d7c8;
  border-radius: 7px;
  color: #087a60;
  background: #eaf9f4;
  content: "✓";
  font-size: 11px;
  font-weight: 950;
}

.mup-warning-list {
  display: grid;
  gap: 11px;
}

.mup-warning {
  position: relative;
  padding: 15px 17px 15px 45px;
  border: 1px solid #eed7a0;
  border-radius: 12px;
  color: #6c5322;
  background: #fff8e8;
  font-size: 12px;
  line-height: 1.55;
}

.mup-warning::before {
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #c58a17;
  content: "!";
  font-size: 10px;
  font-weight: 950;
}

.mup-config-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed #b9c8d8;
  border-radius: 17px;
  color: var(--config-muted);
  background: rgba(255,255,255,.75);
  text-align: center;
  font-size: 13px;
}

.mup-configuration-page [hidden] { display: none !important; }

.mup-configuration-page button:focus-visible,
.mup-configuration-page a:focus-visible,
.mup-configuration-page summary:focus-visible {
  outline: 3px solid rgba(11,99,246,.25);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .mup-config-intro { grid-template-columns: 1fr; }
  .mup-config-doc-switcher { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mup-config-doc-switcher a { min-height: 82px; padding-right: 16px; }
  .mup-config-doc-switcher a::after { display: none; }
  .mup-config-toolbar,
  .mup-guide-catalog-head { align-items: stretch; flex-direction: column; gap: 22px; }
  .mup-config-filters,
  .mup-config-filters.compact { width: 100%; }
  .mup-system-grid,
  .mup-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .mup-config-main { padding: 20px 0 50px; }
  .mup-config-shell { width: min(100% - 20px, 1180px); }
  .mup-config-intro { padding: 24px 20px; border-radius: 18px; }
  .mup-config-doc-switcher { grid-template-columns: 1fr; }
  .mup-config-doc-switcher a { min-height: 58px; }
  .mup-config-toolbar { padding: 23px 20px; }
  .mup-config-filters { grid-template-columns: 1fr; }
  .mup-config-result-line { align-items: flex-start; flex-direction: column; gap: 4px; }
  .mup-system-grid,
  .mup-guide-grid { grid-template-columns: 1fr; }
  .mup-system-visual { min-height: 152px; }
  .mup-guide-hero,
  .mup-detail-hero { padding: 24px 20px 28px; }
  .mup-guide-catalog,
  .mup-detail-content { padding: 20px 14px 24px; }
  .mup-guide-catalog-head { padding-bottom: 20px; }
  .mup-module > summary { grid-template-columns: 42px minmax(0, 1fr) 30px; gap: 11px; min-height: 82px; padding: 12px; }
  .mup-module-number { width: 39px; height: 39px; }
  .mup-module-label strong { font-size: 14px; }
  .mup-module-label small { display: none; }
  .mup-module-content { padding: 20px 15px 23px; }
  .mup-file-row { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .mup-file-row p { grid-column: 2; }
  .mup-field-row { grid-template-columns: 1fr; gap: 11px; }
  .mup-event-fields { grid-template-columns: 1fr; }
  .mup-event-field:nth-child(odd) { border-right: 0; }
  .mup-example-head { align-items: flex-start; flex-direction: column; }
  .mup-copy-button { width: 100%; }
  .mup-detail-hint { text-align: left; }
}

@media (max-width: 430px) {
  .mup-config-intro h1 { font-size: 31px; }
  .mup-system-body,
  .mup-guide-body { padding: 19px; }
  .mup-system-foot,
  .mup-guide-foot { align-items: flex-start; flex-direction: column; }
  .mup-system-open,
  .mup-guide-open { width: 100%; text-align: left; }
  .mup-detail-summary { display: grid; grid-template-columns: 1fr; }
  .mup-example pre { padding: 18px 14px; font-size: 11px; }
}

@media print {
  .mup-configuration-page > .header,
  .mup-configuration-page > .mup-footer,
  .mup-config-intro,
  .mup-config-back,
  .mup-detail-hint { display: none !important; }
  .mup-config-main { padding: 0; }
  .mup-config-shell { width: 100%; }
  .mup-config-detail { border: 0; box-shadow: none; }
  .mup-module { break-inside: avoid; }
  .mup-module > .mup-module-content { display: block !important; }
}
