/* Compact independent cards, scoped to My Plugins. */
#teacher-app .tp-my-plugins .tp-my-plugin-grid,
#teacher-app .tp-my-plugins .ps-fallback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 300px));
  grid-auto-rows: 1fr;
  justify-content: start;
  align-items: stretch;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#teacher-app .tp-my-plugins .tp-my-plugin-grid > .tp-my-plugin-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 78px;
  grid-template-rows: 40px minmax(40px, 1fr) minmax(34px, auto);
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 180px;
  padding: 16px;
  border: 1px solid #e0e4e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 5px rgb(17 24 39 / 2%);
  transform: none;
}

#teacher-app .tp-my-plugins .tp-my-plugin-card:hover {
  border-color: #c7cfd9;
  box-shadow: 0 3px 10px rgb(17 24 39 / 4%);
}

#teacher-app .tp-my-plugins .tp-my-plugin-card > .tp-plugin-brand {
  grid-area: 1 / 1;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 10px;
  box-shadow: none;
}

#teacher-app .tp-my-plugins .tp-my-plugin-card > .tp-plugin-brand svg {
  width: 25px;
  height: 25px;
}

#teacher-app .tp-my-plugins .tp-my-plugin-info,
#teacher-app .tp-my-plugins .tp-my-plugin-card > footer {
  display: contents;
}

#teacher-app .tp-my-plugins .tp-my-plugin-info h3 {
  grid-area: 1 / 2 / 2 / 4;
  min-width: 0;
  margin: 0;
  padding-right: 30px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #303a49;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

#teacher-app .tp-my-plugins .tp-my-plugin-desc {
  grid-area: 2 / 1 / 3 / 4;
  align-self: start;
  margin: 0;
  min-height: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #7b8491;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

#teacher-app .tp-my-plugins .tp-my-plugin-status {
  grid-area: 3 / 1 / 4 / 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

#teacher-app .tp-my-plugins .tp-my-plugin-status > span {
  font-size: 11px;
  line-height: 1.5;
}

#teacher-app .tp-my-plugins .tp-my-plugin-card > footer > .btn {
  grid-area: 3 / 3;
  justify-self: end;
  align-self: center;
  min-width: 72px;
  min-height: 32px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: none;
  white-space: nowrap;
}

#teacher-app .tp-my-plugins .tp-my-plugin-card > footer > .btn:hover:not(:disabled) {
  background: #f7f8fa;
  border-color: #aeb8c5;
  color: #303a49;
}

#teacher-app .tp-my-plugins .tp-my-plugin-tools {
  position: absolute;
  top: 13px;
  right: 10px;
  display: flex;
  gap: 0;
}

#teacher-app .tp-my-plugins .tp-plugin-more {
  margin: 0;
}

#teacher-app .tp-my-plugins .tp-plugin-more summary {
  color: #9aa2ae;
  border-radius: 6px;
}

#teacher-app .tp-my-plugins .tp-plugin-more summary:hover,
#teacher-app .tp-my-plugins .tp-plugin-more[open] summary {
  color: #5b6573;
  background: #f4f5f7;
}

#teacher-app .tp-my-plugins .tp-plugin-more > div {
  z-index: 20;
}

#teacher-app .tp-my-plugins .tp-plugin-more button:disabled {
  color: #a0a8b3;
  cursor: not-allowed;
}

#teacher-app .tp-my-plugins .tp-plugin-compact-ready .tp-my-plugin-tools > .tp-pin-button {
  display: none;
}

#teacher-app .tp-my-plugins .tp-my-plugin-card:not(.tp-plugin-compact-ready) h3 {
  padding-right: 58px;
}

#teacher-app .tp-my-plugins :is(.tp-my-plugin-grid, .ps-fallback-grid) > .ps-add-card {
  min-height: 180px;
  height: auto;
  max-width: none;
  width: 100%;
  align-self: stretch;
  padding: 16px;
  gap: 7px;
  border: 1px dashed #d6dce4;
  border-radius: 12px;
  background: #fff;
  color: #8b94a1;
  box-shadow: none;
  transform: none;
}

#teacher-app .tp-my-plugins :is(.tp-my-plugin-grid, .ps-fallback-grid) > .ps-add-card:hover {
  background: #fcfcfd;
  border-color: #aeb8c5;
  transform: none;
}

#teacher-app .tp-my-plugins .ps-add-card .ps-plus {
  font-size: 28px;
  color: #939ca9;
}

#teacher-app .tp-my-plugins .ps-add-card strong {
  font-size: 14px;
  color: #66717f;
}

#teacher-app .tp-my-plugins .ps-add-card > span:last-child {
  font-size: 11px;
  color: #a0a7b2;
}
