.mk {
  --mk-ink: #1d2e31;
  --mk-muted: #596d70;
  --mk-line: #dce6e4;
  --mk-accent: #12675f;
  --mk-dark: #104640;
  --mk-wash: #ecf6f3;
  --mk-light: #f8fbfa;
  color: var(--mk-ink);
  display: grid;
  gap: 18px;
  min-width: 0;
}
.mk :where(h1, h2, h3, p) { margin: 0; }
.mk h1 { font-size: clamp(25px, 3vw, 36px); line-height: 1.2; font-weight: 720; }
.mk h2 { font-size: 18px; line-height: 1.35; }
.mk h3 { font-size: 16px; line-height: 1.4; }
.mk p { line-height: 1.65; overflow-wrap: anywhere; }
.mk-muted { color: var(--mk-muted); }
.mk-heading p { margin-top: 7px; }
.mk-card, .mk-progress {
  padding: clamp(15px, 2.5vw, 27px);
  border: 1px solid var(--mk-line);
  border-radius: 17px;
  background: #fff;
  display: grid;
  gap: 15px;
  min-width: 0;
}
.mk-progress { background: var(--mk-wash); border-color: #d2e8e2; }
.mk-between, .mk-inline, .mk-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.mk-between { justify-content: space-between; gap: 12px; }
.mk-actions { margin-top: 3px; }
.mk-row { border-top: 1px solid var(--mk-line); padding: 16px 0 1px; }
.mk-row .mk-muted { margin-top: 5px; }
.mk-row .mk-actions, .mk-follow-tools { margin-top: 11px; }
.mk-link-row { padding-top: 12px; }
.mk-link-row strong { margin-right: auto; }
.mk-poster-dialog { width: min(92vw,460px); max-height: 90vh; border: 1px solid var(--mk-line); border-radius: 17px; padding: 18px; color: var(--mk-ink); }
.mk-poster-dialog::backdrop { background: rgba(18,38,34,.5); }
.mk-poster-dialog canvas { width: min(100%,320px); height: auto; margin: 14px auto; display: block; border-radius: 9px; }
.mk-poster-dialog .mk-actions { justify-content: center; }
.mk-button, .mk select, .mk :where(input, textarea):not([type=checkbox]) {
  font: inherit;
  color: var(--mk-ink);
  border: 1px solid #c8d7d5;
  border-radius: 9px;
  background: #fff;
  padding: 8px 12px;
  min-height: 40px;
  max-width: 100%;
}
.mk-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; color: var(--mk-dark); font-weight: 650; }
.mk-button.primary { background: var(--mk-accent); border-color: var(--mk-accent); color: #fff; }
.mk-button:hover { border-color: var(--mk-accent); background: var(--mk-light); }
.mk-button.primary:hover { background: var(--mk-dark); }
.mk-button:disabled { opacity: .6; cursor: wait; }
.mk :where(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--mk-accent); outline-offset: 3px; }
.mk-badge {
  display: inline-flex;
  align-items: center;
  background: #f2f5f5;
  border-radius: 30px;
  color: #495f62;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 670;
}
.mk-badge.positive { background: #dceddf; color: #285938; }
.mk-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mk-metrics > div { display: grid; gap: 5px; background: rgba(255,255,255,.74); border: 1px solid #e1eee9; border-radius: 12px; padding: 12px; }
.mk-metrics span { color: var(--mk-muted); font-size: 13px; }
.mk-metrics strong { color: var(--mk-dark); font-size: 24px; }
.mk-fields, .mk form[data-mk-draft] { display: grid; gap: 13px; }
.mk-field { display: grid; gap: 6px; line-height: 1.5; min-width: 0; }
.mk-field span, .mk-inline-field span { font-weight: 625; }
.mk-inline-field { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.mk-field textarea { width: 100%; resize: vertical; }
.mk-field input, .mk-field select { width: 100%; }
.mk-checkbox { display: inline-flex; align-items: flex-start; gap: 7px; padding: 8px 10px; border: 1px solid var(--mk-line); border-radius: 9px; line-height: 1.4; }
.mk-checkbox input { margin-top: 3px; margin-right: 2px; accent-color: var(--mk-accent); }
.mk-store-choices { margin-top: 2px; }
.mk-templates, .mk-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.mk-templates { grid-template-columns: repeat(3,minmax(0,1fr)); }
.mk-templates .mk-card { align-content: start; }
.mk-templates .mk-button { justify-self: start; }
.mk-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.mk-steps li { padding: 8px 12px; border-radius: 7px; color: var(--mk-muted); background: #f4f7f6; }
.mk-steps li[aria-current] { font-weight: 700; background: #dbeee7; color: var(--mk-dark); }
.mk-team-entry { align-items: end; }
.mk-note, .mk-error { border-radius: 9px; background: #f5f8f2; color: #425d43; padding: 9px 12px; }
.mk-error { background: #fdefeb; color: #992c1e; }
.mk-empty { padding: 10px 0; color: var(--mk-muted); }
.mk-confirm { padding: 12px; color: #754c22; background: #fff4e5; border-radius: 10px; }
.mk-confirm .mk-button { margin: 8px 6px 0 0; }
.mk-review { align-items: start; }
.mk-phone, .mk-family-card { border: 1px solid var(--mk-line); border-radius: 20px; overflow: hidden; background: #fff; }
.mk-phone { max-width: 410px; width: 100%; justify-self: center; }
.mk-phone-cover { padding: 24px; display: grid; gap: 7px; color: #f6fffa; background: linear-gradient(140deg,#195a53,#10433d); }
.mk-phone-cover h1, .mk-phone-cover h2, .mk-phone-cover p { color: inherit; }
.mk-phone-cover .mk-badge { color: #d4f1e7; border: 1px solid #a9cebc; background: transparent; justify-self: start; }
.mk-phone-content, .mk-form-body { display: grid; gap: 14px; padding: 22px; }
.mk-preview-action { border-radius: 9px; background: #ebf3f0; text-align: center; color: var(--mk-accent); padding: 9px; font-weight: 700; }
.mk-family { background: var(--mk-wash); min-height: 100dvh; padding: clamp(14px,5vw,54px) 14px; align-content: start; justify-items: center; }
.mk-family-card { width: min(100%, 460px); box-shadow: 0 12px 32px rgba(22,62,54,.09); }
.mk-family-card .mk-fields, .mk-form-body { gap: 15px; }
.mk-family-card .mk-note { font-size: 13px; }
.mk-family-card .mk-field:has(input[name=phone]) + .mk-note { margin-top: -7px; }
.mk-signup-success { border: 1px solid #dbede1; background: #f4fbf6; color: #285938; border-radius: 11px; padding: 18px; display: grid; gap: 5px; }
.mk-offscreen { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .mk-templates, .mk-review { grid-template-columns: 1fr; }
  .mk-metrics { grid-template-columns: repeat(2,minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .mk-columns { grid-template-columns: 1fr; }
  .mk-between { align-items: start; }
  .mk-team-entry { display: grid; justify-content: stretch; }
}
