.mk-evidence-panel,
.mk-rubric-panel {
  margin-top: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
  padding: 18px;
}

.mk-evidence-head,
.mk-rubric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mk-evidence-head span,
.mk-rubric-head span,
.mk-evidence-subtitle {
  display: block;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #475569;
}

.mk-evidence-head h4,
.mk-rubric-head h4 {
  margin: 3px 0 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.mk-evidence-note,
.mk-rubric-panel > p {
  margin: 10px 0 14px;
  color: #475569;
  line-height: 1.55;
}

.mk-evidence-check {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: #e2e8f0;
  color: #334155;
  font-size: .77rem;
  font-weight: 900;
  text-align: center;
}

.mk-evidence-check.ok {
  background: #dcfce7;
  color: #166534;
}

.mk-evidence-check.observed {
  background: #dbeafe;
  color: #1d4ed8;
}

.mk-evidence-check.warn {
  background: #fef3c7;
  color: #92400e;
}

.mk-evidence-trace {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
  margin-bottom: 16px;
}

.mk-evidence-panel label,
.mk-evidence-link,
.mk-evidence-link label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: .9rem;
  font-weight: 800;
}

.mk-evidence-panel input,
.mk-evidence-panel select,
.mk-evidence-panel textarea,
.mk-evidence-link select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  padding: 10px 11px;
}

.mk-evidence-panel textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.45;
}

.mk-evidence-panel input:focus,
.mk-evidence-panel select:focus,
.mk-evidence-panel textarea:focus,
.mk-evidence-link select:focus {
  outline: 3px solid rgba(37, 99, 235, .18);
  border-color: #2563eb;
}

.mk-evidence-constraints {
  display: grid;
  gap: 12px;
}

.mk-evidence-constraint {
  display: grid;
  grid-template-columns: 1fr .8fr 1.35fr;
  gap: 12px;
  align-items: start;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.mk-evidence-constraint-title {
  display: grid;
  gap: 4px;
}

.mk-evidence-constraint-title b {
  color: #0f172a;
}

.mk-evidence-constraint-title span {
  color: #475569;
  font-size: .86rem;
  line-height: 1.45;
}

.mk-evidence-link {
  margin-top: 16px;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  background: #eff6ff;
  padding: 13px 14px;
}

.mk-evidence-link small {
  color: #475569;
  line-height: 1.45;
  font-weight: 700;
}

.mk-rubric-head #mkRubricScore {
  flex: 0 0 auto;
  min-width: 74px;
  border-radius: 14px;
  background: #e2e8f0;
  color: #334155;
  padding: 9px 12px;
  text-align: center;
  font-size: 1.02rem;
}

.mk-rubric-head #mkRubricScore.complete {
  background: #dcfce7;
  color: #166534;
}

.mk-rubric-items {
  display: grid;
  gap: 9px;
}

.mk-rubric-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 11px;
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  padding: 11px 12px;
}

.mk-rubric-mark {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: .8rem;
  font-weight: 900;
}

.mk-rubric-item.score-2 .mk-rubric-mark {
  background: #dcfce7;
  color: #166534;
}

.mk-rubric-item.score-1 .mk-rubric-mark {
  background: #fef3c7;
  color: #92400e;
}

.mk-rubric-item strong {
  display: block;
  color: #0f172a;
  font-size: .92rem;
}

.mk-rubric-item small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  line-height: 1.4;
}

.mk-rubric-status {
  margin-top: 12px;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: .88rem;
  font-weight: 900;
}

.mk-rubric-status.pending {
  background: #fff7ed;
  color: #9a3412;
}

.mk-rubric-status.complete {
  background: #ecfdf5;
  color: #166534;
}

@media (max-width: 820px) {
  .mk-evidence-head,
  .mk-rubric-head {
    display: grid;
  }

  .mk-evidence-check,
  .mk-rubric-head #mkRubricScore {
    justify-self: start;
  }

  .mk-evidence-trace,
  .mk-evidence-constraint {
    grid-template-columns: 1fr;
  }
}

@media print {
  .mk-evidence-panel,
  .mk-rubric-panel,
  .mk-evidence-link {
    break-inside: avoid;
  }
}
