.mk-workspace {
  --mk-green: #008f62;
  --mk-ink: #18392e;
  color: var(--mk-ink);
  max-width: 1120px;
  margin: auto;
}
.mk-head,
.mk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.mk-head h2 {
  margin: 0;
}
.mk-sub {
  color: #62746d;
  font-size: 14px;
}
.mk-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 8px 0 16px;
}
.mk-tabs button {
  white-space: nowrap;
  background: #edf5f1;
  color: #264e3d;
  border: 1px solid #d9e8df;
  border-radius: 24px;
  padding: 10px 16px;
}
.mk-tabs button.active {
  background: var(--mk-green);
  color: #fff;
}
.mk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.mk-card {
  background: #fff;
  border: 1px solid #dce8e1;
  border-radius: 18px;
  padding: 20px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mk-card h3 {
  margin: 0 0 8px;
}
.mk-card p {
  margin: 8px 0;
}
.mk-card.mk-click {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--mk-ink);
}
.mk-card.mk-click:hover {
  border-color: var(--mk-green);
}
.mk-card.mk-click:focus-visible {
  outline: 3px solid #87cdb3;
  outline-offset: 2px;
}
.mk-stat {
  font-size: 30px;
  font-weight: 750;
  display: block;
}
.mk-badge {
  display: inline-block;
  border-radius: 14px;
  padding: 4px 10px;
  background: #eaf5ee;
  color: #1d6447;
  font-size: 12px;
}
.mk-due {
  background: #fff1db;
  color: #8c5312;
}
.mk-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.mk-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.mk-form input,
.mk-form select,
.mk-form textarea,
.mk-toolbar input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cdded4;
  border-radius: 10px;
  background: #fff;
  color: #173b2b;
  padding: 12px;
  font: inherit;
  min-width: 0;
}
.mk-form textarea {
  min-height: 110px;
  resize: vertical;
}
.mk-form button {
  justify-self: start;
}
.mk-form .mk-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.mk-check input {
  width: auto;
}
.mk-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.mk-event {
  padding: 14px 0;
  border-bottom: 1px solid #e1eae5;
}
.mk-event small {
  display: block;
  color: #61756a;
  margin-top: 6px;
}
.mk-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-family: inherit;
}
.mk-error {
  padding: 14px;
  border-radius: 12px;
  background: #fff0ee;
  color: #a22920;
}
.mk-info {
  padding: 14px;
  border-radius: 12px;
  background: #edf6f2;
  color: #315b48;
}
.mk-workspace button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.mk-empty {
  padding: 32px;
  text-align: center;
  color: #5d7467;
}
.mk-table {
  overflow: auto;
}
.mk-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.mk-table th,
.mk-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e1eae5;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.mk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.mk-workspace .ghost {
  color: #24553c;
}
.mk-preview {
  white-space: pre-wrap;
  border: 1px solid #dce8e1;
  border-radius: 12px;
  background: #fafcfb;
  padding: 20px;
  line-height: 1.6;
}
.mk-workspace button {
  min-height: 42px;
}
.mk-kicker {
  color: #008f62;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 620px) {
  .mk-columns {
    grid-template-columns: 1fr;
  }
  .mk-card {
    padding: 16px;
  }
  .mk-grid {
    grid-template-columns: 1fr;
  }
  .mk-head h2 {
    font-size: 24px;
  }
  .mk-tabs {
    margin: 0 -8px;
    padding-left: 8px;
  }
  .mk-head {
    align-items: flex-start;
  }
  .mk-head .ghost {
    font-size: 13px;
  }
  .mk-form {
    max-width: 100%;
  }
}

/* Match the existing Control forms, including buttons without utility classes. */
.mk-workspace button:not(.mk-click):not(.ghost) {
  font: inherit;
  border: 1px solid #008f62;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  background: #008f62;
  color: #fff;
}
.mk-workspace .mk-tabs button:not(.active) {
  background: #edf5f1;
  border-color: #d9e8df;
  color: #264e3d;
}
.mk-workspace .mk-tabs button { border-radius: 24px; }
.mk-workspace fieldset { border: 1px solid #dce8e1; border-radius: 12px; padding: 16px; min-width: 0; }
.mk-workspace legend { padding: 0 6px; font-weight: 600; }
