/* zero2hero admin — Tests (page-scoped) */

/* Detail area dims while a product is loading */
#admin-tests .tst-detail { transition: opacity 0.15s ease; }
#admin-tests .tst-detail.is-loading { opacity: 0.55; pointer-events: none; }

/* Product list item */
#admin-tests .tst-item__meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
#admin-tests .tst-item__price { font-size: 0.78rem; margin-top: 0.35rem; }

/* Cover preview */
#admin-tests .tst-cover {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: var(--adm-radius-sm);
  border: 1px solid var(--adm-border);
  background: var(--adm-surface-2);
  margin-top: 0.5rem;
}

/* Bank health phase grid */
#admin-tests .tst-phases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 0.5rem;
}
#admin-tests .tst-phase {
  display: grid;
  gap: 0.1rem;
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-radius: var(--adm-radius-sm);
  border: 1px solid var(--adm-border);
  background: var(--adm-surface-2);
  color: var(--adm-muted);
}
#admin-tests .tst-phase__label { font-family: var(--adm-font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; }
#admin-tests .tst-phase__count { font-family: var(--adm-font-head); font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--adm-text); }
#admin-tests .tst-phase.is-ok { background: var(--adm-violet-soft); border-color: var(--adm-violet-line); }
#admin-tests .tst-phase.is-ok .tst-phase__count { color: var(--adm-violet-strong); }
#admin-tests .tst-phase.is-bad { background: var(--adm-danger-soft); border-color: var(--adm-danger); }
#admin-tests .tst-phase.is-bad .tst-phase__count { color: var(--adm-danger); }
#admin-tests .tst-invalid { margin: 0.9rem 0 0; padding-left: 1.1rem; font-size: 0.84rem; }
#admin-tests .tst-invalid li { margin-bottom: 0.2rem; }

/* Question table */
#admin-tests .tst-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 420px;
}
#admin-tests tr.is-open .tst-clamp { -webkit-line-clamp: unset; overflow: visible; }
#admin-tests .tst-q-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
#admin-tests .tst-expand { border-radius: 8px; min-width: 36px; min-height: 36px; padding: 0; }
#admin-tests .tst-qdetail > td { background: var(--adm-surface-2) !important; }
#admin-tests .tst-qdetail pre {
  margin: 0.25rem 0 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--adm-radius-sm);
  background: var(--adm-ink);
  color: #fff;
  font-family: var(--adm-font-mono);
  font-size: 0.78rem;
  white-space: pre-wrap;
}
#admin-tests .tst-qdetail ol, #admin-tests .tst-qdetail ul { margin: 0.2rem 0 0.6rem; padding-left: 1.2rem; font-size: 0.84rem; }
#admin-tests .tst-qdetail li.is-correct { color: var(--adm-ok); font-weight: 600; }
#admin-tests .tst-answer { font-size: 0.84rem; max-width: 220px; }

/* Activity panels */
#admin-tests .tst-panel[hidden] { display: none; }
#admin-tests .tst-more { display: flex; justify-content: center; padding: 0.7rem; border-top: 1px solid var(--adm-border); }

@media (min-width: 1200px) {
  #admin-tests .tst-aside { position: sticky; top: calc(var(--adm-top-h) + 1rem); }
}
@media (max-width: 767.98px) {
  #admin-tests .tst-clamp { max-width: 240px; }
  #admin-tests .tst-phases { grid-template-columns: repeat(5, 1fr); }
}
