/* Mathzem AI Tutor - Phase 9 Student Dashboard memory layer. */

.mz-dashboard-page .mz-tutor-memory-section {
  margin-top: 22px;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid #e7e5f4;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, .055), transparent 34%),
    linear-gradient(180deg, #ffffff, #fdfcff);
}

.mz-dashboard-page .mz-tutor-memory-section[hidden] { display: none !important; }

.mz-tutor-memory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.mz-tutor-memory-trust {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
}

.mz-tutor-memory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mz-tutor-memory-item {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e8eaf1;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .035);
}

.mz-tutor-memory-item.is-resolved { background: #fbfffc; border-color: #dcefe1; }
.mz-tutor-memory-item.is-improving { background: #fffdf8; border-color: #efe5c9; }

.mz-tutor-memory-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mz-tutor-memory-type {
  color: #7c3aed;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.mz-tutor-memory-skill {
  margin-top: 4px;
  color: #172033;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
}

.mz-tutor-memory-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  background: #fff1f2;
  color: #be123c;
}

.mz-tutor-memory-status.is-improving { background: #fffbeb; color: #a16207; }
.mz-tutor-memory-status.is-resolved { background: #ecfdf3; color: #15803d; }

.mz-tutor-memory-scope {
  margin-top: 9px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}

.mz-tutor-memory-summary {
  margin: 9px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
}

.mz-tutor-memory-evidence {
  margin-top: 10px;
  color: #7b8190;
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 700;
}

.mz-tutor-memory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.mz-tutor-memory-actions .mz-btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11.5px;
}

.mz-tutor-memory-empty {
  padding: 14px 15px;
  border: 1px dashed #ddd6fe;
  border-radius: 14px;
  background: #faf9ff;
  color: #687086;
  font-size: 12.5px;
  line-height: 1.55;
}

.mz-tutor-memory-empty[hidden] { display: none !important; }

.mz-tutor-memory-footnote {
  margin-top: 12px;
  color: #7b8190;
  font-size: 10.5px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .mz-dashboard-page .mz-tutor-memory-section { padding: 16px; }
  .mz-tutor-memory-head { display: block; }
  .mz-tutor-memory-trust { margin-top: 10px; }
  .mz-tutor-memory-list { grid-template-columns: 1fr; }
}
