.quick-assignment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#quick-assignment-list-main [data-quick-search],
#quick-assignment-list-main [data-quick-type-filter],
#quick-assignment-list-main [data-quick-status-filter] {
  min-height: 44px;
  height: 44px;
}

a.quick-assignment-card.qa-card {
  --qa-type: #79d4b0;
  --qa-type-soft: rgba(75, 190, 145, 0.12);
  position: relative;
  min-width: 0;
  height: 146px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(218, 231, 247, 0.13);
  border-radius: 15px;
  padding: 13px 14px 12px 17px;
  color: #f9fbff;
  background: linear-gradient(145deg, rgba(19, 29, 46, 0.76), rgba(7, 11, 20, 0.86));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms var(--akee-ease);
}

#quick-assignment-grid > a.quick-assignment-card.qa-card {
  height: 146px;
  min-height: 146px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 9px;
  padding: 13px 14px 12px 17px;
  background: linear-gradient(145deg, rgba(19, 29, 46, 0.76), rgba(7, 11, 20, 0.86));
}

#quick-assignment-grid > a.quick-assignment-card.qa-card .qa-card-copy h3 {
  grid-column: auto;
  font-size: 15px;
}

a.quick-assignment-card.qa-card.type-custom {
  --qa-type: #79d4b0;
  --qa-type-soft: rgba(75, 190, 145, 0.12);
}

a.quick-assignment-card.qa-card.type-presentation {
  --qa-type: #ef9aa4;
  --qa-type-soft: rgba(239, 154, 164, 0.12);
}

a.quick-assignment-card.qa-card.type-reflection {
  --qa-type: #c7a5ef;
  --qa-type-soft: rgba(180, 135, 233, 0.13);
}

a.quick-assignment-card.qa-card.type-report {
  --qa-type: #7fc7ee;
  --qa-type-soft: rgba(86, 169, 216, 0.13);
}

a.quick-assignment-card.qa-card.type-essay {
  --qa-type: #ff9f66;
  --qa-type-soft: rgba(255, 115, 36, 0.13);
}

a.quick-assignment-card.qa-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 3px;
  height: auto;
  border-radius: 0 3px 3px 0;
  background: var(--qa-type);
  box-shadow: 0 0 16px color-mix(in srgb, var(--qa-type) 45%, transparent);
  transform: none;
  transition: none;
}

a.quick-assignment-card.qa-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: -22%;
  left: -55%;
  width: 32%;
  height: 150%;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 30%, rgba(191, 219, 254, 0.24) 48%, rgba(255, 163, 102, 0.08) 55%, transparent 64%);
  mix-blend-mode: screen;
  transform: rotate(14deg);
  transition: transform 1050ms var(--akee-ease);
}

a.quick-assignment-card.qa-card:hover {
  border-color: color-mix(in srgb, var(--qa-type) 48%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.27), 0 0 24px var(--qa-type-soft);
  transform: translateY(-3px);
}

a.quick-assignment-card.qa-card:hover::after,
a.quick-assignment-card.qa-card:focus-visible::after {
  transform: translateX(530%) rotate(14deg);
}

a.quick-assignment-card.qa-card:active {
  transform: translateY(-1px) scale(0.995);
}

a.quick-assignment-card.qa-card:focus-visible {
  outline: 2px solid #86cee3;
  outline-offset: 2px;
}

.qa-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qa-type-label {
  min-width: 0;
  overflow: hidden;
  color: var(--qa-type);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.qa-card-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #a5efd0;
  font-size: 11px;
  font-weight: 730;
  white-space: nowrap;
}

.qa-card-status::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.qa-card-status[data-tone="danger"] {
  color: #ffaaa3;
}

.qa-card-status[data-tone="warning"] {
  color: #ffd49d;
}

.qa-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

a.quick-assignment-card.qa-card .qa-card-copy h3 {
  margin: 0;
  overflow: hidden;
  color: #f9fbff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.quick-assignment-card.qa-card .qa-course-name {
  margin: 0;
  overflow: hidden;
  color: #c1cbda;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-card-footer {
  display: grid;
  grid-template-columns: minmax(116px, 0.62fr) minmax(0, 1.38fr);
  align-items: end;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(218, 231, 247, 0.09);
}

.qa-stage {
  display: grid;
  gap: 2px;
}

.qa-stage span {
  color: #8d9aae;
  font-size: 9px;
  font-weight: 740;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-stage strong {
  overflow: hidden;
  color: #e2e9f2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-dates {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
}

.qa-meta-item {
  color: #8d9aae;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.45;
  white-space: nowrap;
}

.qa-meta-item time,
.qa-meta-item strong {
  color: #cbd6e5;
  font-weight: 680;
}

@media (max-width: 980px) {
  .qa-card-footer {
    grid-template-columns: 1fr;
  }

  .qa-dates {
    grid-column: 1;
  }

  .qa-stage {
    display: none;
  }
}

@media (max-width: 720px) {
  .quick-assignment-grid {
    grid-template-columns: 1fr;
  }

  a.quick-assignment-card.qa-card {
    height: auto;
    min-height: 144px;
  }

  #quick-assignment-grid > a.quick-assignment-card.qa-card {
    height: auto;
    min-height: 144px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.quick-assignment-card.qa-card {
    transition-duration: 0.01ms;
  }

  a.quick-assignment-card.qa-card:hover,
  a.quick-assignment-card.qa-card:active {
    transform: none;
  }

  a.quick-assignment-card.qa-card::after {
    display: none;
  }
}
