:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #1c1917;
  background: #f8fafc;
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #0369a1;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 3px;
}
.mp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px max(20px, calc((100vw - 1150px) / 2));
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.mp-brand {
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
  color: #1c1917;
}
.mp-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.mp-header button {
  border: 0;
  background: none;
  color: #57534e;
  padding: 0;
}
.mp-main {
  max-width: 1150px;
  margin: auto;
  padding: 36px 20px 70px;
}
.mp-main h1 {
  font-size: 30px;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.mp-main h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.mp-main h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
.mp-main p {
  line-height: 1.7;
  margin: 8px 0 18px;
}
.mp-muted {
  color: #64748b;
  font-size: 14px;
}
.mp-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid #cbd5e1;
  padding: 16px 0;
  margin-bottom: 24px;
}
.mp-tab {
  padding: 10px 15px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
}
.mp-tab[aria-selected="true"] {
  background: #e0f2fe;
  color: #075985;
  font-weight: 700;
}
.mp-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 2px 7px #0f172a04;
}
.mp-fields {
  border: 0;
  padding: 0;
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 26px;
}
.mp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}
.mp-field input,
.mp-field select,
.mp-field textarea,
.mp-search {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: #1c1917;
  font-weight: 400;
}
.mp-field input:disabled {
  background: #f8fafc;
  color: #475569;
  opacity: 1;
}
.mp-wide {
  grid-column: 1/-1;
}
.mp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.mp-button {
  padding: 10px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}
.mp-primary {
  background: #0369a1;
  color: #fff;
  border-color: #0369a1;
}
.mp-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.mp-notice {
  padding: 14px 16px;
  border: 1px solid #bae6fd;
  border-radius: 9px;
  background: #f0f9ff;
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mp-notice:empty {
  display: none;
}
.mp-notice[role="alert"] {
  border-color: #fda4af;
  background: #fff1f2;
  color: #9f1239;
}
.mp-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
  margin-left: 7px;
}
.mp-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.mp-stat {
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 15px;
  background: #f8fafc;
}
.mp-stat strong {
  display: block;
  font-size: 23px;
  margin-bottom: 7px;
}
.mp-stat span {
  font-size: 13px;
  color: #64748b;
}
.mp-member-list {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}
.mp-member {
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 20px;
  overflow-wrap: anywhere;
}
.mp-member-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.mp-member h3 {
  margin-bottom: 6px;
}
.mp-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin: 14px 0;
}
.mp-small {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
}
.mp-credentials {
  border-top: 1px solid #e2e8f0;
  margin-top: 16px;
  padding-top: 15px;
}
.mp-credential {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.mp-context {
  border-left: 4px solid #7c3aed;
  padding: 12px 18px;
  background: #f5f3ff;
  color: #5b21b6;
  margin-bottom: 22px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.mp-dialog {
  width: min(600px, calc(100vw - 32px));
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 26px;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 24px 90px #0f172a44;
}
.mp-dialog::backdrop {
  background: #0f172a88;
}
.mp-dialog h2 {
  font-size: 20px;
  margin-top: 0;
}
.mp-dialog p {
  line-height: 1.7;
  color: #475569;
}
.mp-dialog label {
  margin: 20px 0;
}
.mp-dialog textarea {
  min-height: 100px;
}
.mp-dialog .mp-field {
  display: flex;
}
.mp-dirty {
  color: #b45309;
  font-weight: 650;
}
@media (max-width: 650px) {
  .mp-header {
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }
  .mp-header nav {
    gap: 12px;
    font-size: 12px;
  }
  .mp-main {
    padding: 25px 16px 50px;
  }
  .mp-card {
    padding: 20px;
  }
  .mp-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .mp-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mp-main h1 {
    font-size: 26px;
  }
  .mp-actions .mp-button {
    flex-grow: 1;
  }
}
