/* Class Zaban | Student support ticket list, scoped visual refinement.
   Does not style generic cards, buttons, dialogs, teaching, exams, or admin pages. */
.phase5-page .phase5-support-grid {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}
.phase5-page .phase5-support-grid .phase5-ticket-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  align-content: start;
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "heading heading"
    "summary summary"
    "action timestamp";
  align-items: center;
  gap: 10px 12px;
  direction: rtl;
  text-align: right;
  min-width: 0;
  width: 100%;
  padding: 16px 18px 15px;
  overflow: hidden;
  border: 1px solid #dfe6f4;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #fafcff 100%);
  box-shadow: 0 3px 12px rgba(29, 53, 106, .045);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #a8b9fa;
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article:hover,
.phase5-page .phase5-support-grid .phase5-ticket-list > article:focus-within {
  border-color: #b7c7f2;
  box-shadow: 0 7px 24px rgba(29, 62, 145, .09);
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article > div:first-child {
  grid-area: heading;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-width: 0;
  margin: 0;
  text-align: right;
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article > div:first-child > strong {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.75;
  color: #1b2d56;
  overflow-wrap: anywhere;
  text-align: right;
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article > div:first-child > span {
  flex: 0 0 auto;
  max-width: 100%;
  border: 1px solid #d6e0f5;
  background: #eef3ff;
  color: #47618f;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.6;
  white-space: nowrap;
  margin: 0;
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article > p {
  grid-area: summary;
  margin: 0;
  min-width: 0;
  color: #586986;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.9;
  text-align: right;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article > small {
  grid-area: timestamp;
  align-self: center;
  justify-self: end;
  min-width: 0;
  color: #8592aa;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.75;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article > button.cz-support-open-ticket {
  grid-area: action;
  justify-self: start;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 14px;
  width: auto;
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
  border: 1px solid #c4d1f4;
  border-radius: 10px;
  background: #eaf0ff;
  color: #304eae;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  transition: background .17s ease, border-color .17s ease;
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article > button.cz-support-open-ticket::after {
  content: "‹";
  font-size: 20px;
  line-height: .6;
  font-weight: 500;
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article > button.cz-support-open-ticket:hover {
  background: #dee7ff;
  border-color: #aabcf0;
}
.phase5-page .phase5-support-grid .phase5-ticket-list > article > button.cz-support-open-ticket:focus-visible {
  outline: 2px solid #3e5dd1;
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .phase5-page .phase5-support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .phase5-page .phase5-support-grid .phase5-ticket-list > article {
    padding: 14px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "summary"
      "timestamp"
      "action";
    gap: 9px;
  }
  .phase5-page .phase5-support-grid .phase5-ticket-list > article > small {
    justify-self: start;
  }
  .phase5-page .phase5-support-grid .phase5-ticket-list > article > button.cz-support-open-ticket {
    width: 100%;
    justify-self: stretch;
  }
}