.mx-tool-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.mx-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.mx-progress-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid #dbe5df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.mx-progress-label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mx-progress-panel > strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.1;
}

.mx-progress-track {
  height: 10px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.mx-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
  transition: width .25s ease;
}

.mx-progress-panel p {
  margin: 0;
  color: #334155;
  line-height: 1.55;
}

.mx-progress-panel small {
  display: block;
  margin-top: 16px;
  color: #64748b;
  line-height: 1.45;
}

.mx-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.mx-actions .btn {
  width: 100%;
  min-width: 0;
  padding-inline: 12px;
}

.mx-checklist-list {
  min-width: 0;
  background: #fff;
  border-top: 3px solid #2563eb;
}

.mx-phase {
  min-width: 0;
  margin: 0;
  padding: 32px 0 18px;
  border: 0;
  border-bottom: 1px solid #dbe5df;
}

.mx-phase:first-child {
  padding-top: 26px;
}

.mx-phase legend {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.25;
}

.mx-phase legend span {
  display: inline-flex;
  width: 42px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 12px;
}

.mx-phase label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 8px;
  border-bottom: 1px solid #edf1f5;
  color: #475569;
  cursor: pointer;
  line-height: 1.5;
}

.mx-phase label:last-child {
  border-bottom: 0;
}

.mx-phase label:hover {
  background: #f8fafc;
}

.mx-phase input {
  width: 21px;
  height: 21px;
  margin: 2px 0 0;
  accent-color: #0f766e;
}

.mx-phase label > span {
  min-width: 0;
}

.mx-phase label strong {
  display: block;
  margin-bottom: 3px;
  color: #0f172a;
  font-size: 16px;
}

.mx-phase label:has(input:checked) {
  color: #64748b;
  background: #f0fdf4;
}

.mx-phase label:has(input:checked) strong {
  color: #166534;
}

.mx-warning-list {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.mx-warning-list > div {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.mx-warning-list strong {
  color: #fff;
  font-size: 16px;
}

.mx-warning-list span {
  color: #cbd5e1;
  line-height: 1.5;
}

.mx-related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 960px;
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid #dbe5df;
  border-radius: 8px;
  background: #dbe5df;
}

.mx-related-links a {
  display: block;
  min-width: 0;
  padding: 20px;
  background: #fff;
  color: #0f172a;
}

.mx-related-links a:hover {
  background: #f8fafc;
}

.mx-related-links strong,
.mx-related-links span {
  display: block;
}

.mx-related-links strong {
  margin-bottom: 7px;
  font-size: 16px;
}

.mx-related-links span {
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .mx-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mx-progress-panel {
    position: static;
  }

  .mx-related-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .mx-actions,
  .mx-warning-list > div {
    grid-template-columns: 1fr;
  }

  .mx-phase legend {
    font-size: 20px;
  }

  .mx-phase label {
    padding-inline: 2px;
  }
}

@media print {
  .nav,
  .nav-overlay,
  .commercial-hero,
  .mx-actions,
  .seo-band,
  .mx-page main > .section:first-child,
  .mx-page main > .section:last-child,
  .footer {
    display: none !important;
  }

  .mx-tool-section {
    padding: 0;
    border: 0;
    background: #fff;
  }

  .mx-layout {
    display: block;
  }

  .mx-progress-panel {
    position: static;
    margin-bottom: 18px;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 2px solid #0f172a;
    box-shadow: none;
  }

  .mx-progress-panel small,
  .mx-progress-track {
    display: none;
  }

  .mx-phase {
    break-inside: avoid;
    padding-top: 18px;
  }

  .mx-phase label {
    padding: 8px 0;
  }
}
