.mv-mk,
.mv-mk * {
  box-sizing: border-box;
}

.mv-mk {
  --mv-mk-color: #287c77;
  --mv-mk-bg: #e8f4f2;
  --mv-mk-border: #ddd;
  --mv-mk-text: #111;
  --mv-mk-muted: #555;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--mv-mk-border);
  border-radius: 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1rem;
  background: var(--mv-mk-bg);
  color: var(--mv-mk-text);
}

.mv-mk__title {
  margin: 0;
  text-align: center;
  font-size: 1.45rem;
  line-height: 1.22;
  font-weight: 800;
  color: var(--mv-mk-text);
}

.mv-mk__subtitle {
  margin: 14px 0 0;
  color: var(--mv-mk-muted);
  font-size: .95rem !important;
  line-height: 1.45;
}

.mv-mk__form {
  margin-top: 16px;
}

.mv-mk__label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 1rem;
}

.mv-mk__control {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  color: var(--mv-mk-text);
}

.mv-mk__control:focus {
  outline: 2px solid rgba(40, 124, 119, .18);
  border-color: var(--mv-mk-color);
}

.mv-mk__input--error {
  border-color: #a10000 !important;
  outline-color: rgba(161, 0, 0, .18) !important;
}

.mv-mk__button {
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--mv-mk-color);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.mv-mk__button:hover {
  filter: brightness(.95);
}

.mv-mk__result {
  margin-top: 16px;
}

.mv-mk__result[hidden] {
  display: none !important;
}

.mv-mk__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.mv-mk__summary-item {
  min-width: 0;
}

.mv-mk__summary-label {
  margin: 0;
  color: var(--mv-mk-muted);
  font-size: .95rem;
  line-height: 1.3;
}

.mv-mk__amount,
.mv-mk__badge {
  margin-top: 3px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--mv-mk-text);
}

.mv-mk__bar-wrap {
  height: 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .08);
  overflow: hidden;
  margin: 16px 0 0;
}

.mv-mk__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #db4848;
  transition: width .25s ease;
}

.mv-mk__stat {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
}

.mv-mk__main {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 700;
}

.mv-mk__secondary {
  margin: 8px 0 0;
  color: var(--mv-mk-muted);
  line-height: 1.45;
}

.mv-mk__message {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-left: 5px solid var(--mv-mk-color);
  border-radius: 14px;
  background: #fff;
}

.mv-mk__message-label {
  margin: 0 0 6px;
  color: var(--mv-mk-color);
  font-size: .95rem;
  font-weight: 700;
}

.mv-mk__message-text {
  margin: 0;
  line-height: 1.48;
  font-weight: 700;
}

.mv-mk__note {
  margin: 14px 0 0;
  color: var(--mv-mk-muted);
  font-size: .82rem !important;
  line-height: 1.4;
}

@media (min-width: 641px) {
  .mv-mk__summary-label {
    font-size: .82rem !important;
  }

  .mv-mk__amount,
  .mv-mk__badge {
    font-size: 1.05rem !important;
  }

  .mv-mk__main {
    font-size: .92rem !important;
    line-height: 1.4 !important;
  }

  .mv-mk__secondary {
    font-size: .84rem !important;
    line-height: 1.4 !important;
  }

  .mv-mk__message-label {
    font-size: .82rem !important;
  }

  .mv-mk__message-text {
    font-size: .86rem !important;
    line-height: 1.42 !important;
    font-weight: 600 !important;
  }

  .mv-mk__note {
    font-size: .76rem !important;
    line-height: 1.35 !important;
  }
}

.mv-mk-admin .mv-mk-admin-range {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #ccd0d4;
  background: #fff;
  border-radius: 8px;
}

.mv-mk-admin textarea.large-text {
  min-height: 96px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

@media (max-width: 640px) {
  .mv-mk {
    padding: 16px;
    border-radius: 12px;
  }

  .mv-mk__title {
    font-size: 1.32rem;
  }

  .mv-mk__summary {
    grid-template-columns: 1fr;
  }

  .mv-mk__button {
    width: 100%;
  }
}
