/* Ant Design Table expand icon — increase touch target */
.ant-table-row-expand-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  line-height: 22px !important;
}

/* Back / secondary action buttons — keep height reasonable on mobile */
.ant-btn-sm {
  min-height: 28px;
}

/* ─── AppShell responsive ──────────────────────────────────────────────────── */
.user-name-desktop,
.logo-name-desktop,
.role-tag-desktop {
  display: none !important;
}

@media (min-width: 640px) {
  .logo-name-desktop {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .user-name-desktop {
    display: block !important;
  }
  .role-tag-desktop {
    display: inline-flex !important;
  }
}

/* ─── LoginPage responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .login-brand-panel {
    display: none !important;
  }
  .login-mobile-brand {
    display: flex !important;
  }
}

/* ─── ProjectCard hover animation ──────────────────────────────────────────── */
.project-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10) !important;
}
.qzp-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(249, 250, 251, 1) 220px),
    #f9fafb;
}

.qzp-shell-header {
  height: 56px;
  line-height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(160%) blur(10px);
}

.qzp-shell-header__left,
.qzp-shell-header__right,
.qzp-shell-nav,
.qzp-user-trigger {
  display: flex;
  align-items: center;
}

.qzp-shell-header__left {
  flex: 1;
  min-width: 0;
  gap: 12px;
}

.qzp-shell-header__right {
  flex-shrink: 0;
  gap: 10px;
}

.qzp-shell-nav {
  gap: 6px;
}

.qzp-brand-mark {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #111827;
  cursor: default;
  font-family: inherit;
  font-size: inherit;
  line-height: normal;
  text-align: left;
}

button.qzp-brand-mark {
  cursor: pointer;
}

button.qzp-brand-mark:focus-visible,
.qzp-user-trigger:focus-visible,
.qzp-shell-icon-button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.qzp-brand-mark__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: transparent;
}

.qzp-brand-mark__logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.qzp-brand-mark__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.08;
}

.qzp-brand-mark__label {
  color: #111827;
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

.qzp-brand-mark__subtitle {
  margin-top: 3px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.qzp-brand-mark--dark .qzp-brand-mark__label {
  color: #f8fafc;
}

.qzp-brand-mark--dark .qzp-brand-mark__subtitle {
  color: #94a3b8;
}

.qzp-brand-mark--compact {
  justify-content: center;
}

.qzp-shell-page-separator {
  color: #d1d5db;
  font-size: 16px;
  flex-shrink: 0;
}

.qzp-shell-page-title {
  color: #374151;
  font-size: 14px;
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qzp-role-pill {
  margin: 0;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 560;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
}

.qzp-role-pill--teacher {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.qzp-role-pill--student {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.qzp-role-pill--admin {
  color: #334155;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.qzp-user-trigger {
  border: 0;
  background: transparent;
  padding: 2px;
  margin: 0;
  gap: 8px;
  cursor: pointer;
  border-radius: 999px;
  color: #374151;
  font-family: inherit;
  font-size: inherit;
  line-height: normal;
  min-height: 36px;
}

.qzp-user-trigger:hover {
  background: #f3f4f6;
}

.qzp-user-trigger__name {
  max-width: 120px;
  color: #374151;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qzp-shell-content {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px;
}

.qzp-shell-footer {
  text-align: center;
  padding: 12px 16px;
  background: transparent;
}

.qzp-impersonation-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 10px 16px;
}

.qzp-impersonation-banner__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.qzp-impersonation-banner__text {
  color: #d97706;
}

.qzp-admin-layout {
  min-height: 100vh;
}

.qzp-admin-sider {
  background: #101827 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.qzp-admin-sider .ant-layout-sider-children {
  display: flex;
  flex-direction: column;
}

.qzp-admin-brand {
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qzp-admin-brand--expanded {
  justify-content: flex-start;
  padding: 0 18px;
}

.qzp-admin-brand--collapsed {
  justify-content: center;
  padding: 0;
}

.qzp-admin-menu {
  background: transparent !important;
  border-right: none !important;
  margin-top: 8px;
}

.qzp-admin-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  background: #f9fafb;
}

.qzp-admin-header {
  height: 56px;
  line-height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  backdrop-filter: saturate(160%) blur(10px);
}

.qzp-admin-header__left,
.qzp-admin-header__right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.qzp-admin-header__left {
  gap: 12px;
}

.qzp-admin-header__right {
  gap: 10px;
  flex-shrink: 0;
}

.qzp-shell-icon-button {
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  font-size: 18px;
}

.qzp-shell-icon-button:hover {
  background: #f3f4f6;
}

.qzp-admin-title {
  color: #374151;
  font-size: 14px;
  font-weight: 620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qzp-admin-content {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(249, 250, 251, 1) 240px),
    #f9fafb;
}

@media (max-width: 767px) {
  .qzp-shell-header {
    padding: 0 12px;
  }

  .qzp-shell-nav {
    display: none;
  }

  .qzp-brand-mark__subtitle,
  .qzp-shell-page-separator {
    display: none;
  }

  .qzp-shell-page-title {
    font-size: 13px;
  }

  .qzp-shell-content {
    padding: 16px 12px 24px;
  }

  .qzp-admin-content {
    padding: 16px 12px 24px;
  }
}

@media (max-width: 639px) {
  .qzp-brand-mark__copy,
  .qzp-role-pill,
  .qzp-user-trigger__name {
    display: none;
  }

  .qzp-admin-brand .qzp-brand-mark__copy {
    display: flex;
  }
}
.public-site {
  min-height: 100vh;
  background: #f6f7f4;
  color: #172033;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

.public-site a {
  color: inherit;
  text-decoration: none;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 12px 40px;
  border-bottom: 1px solid #dfe5df;
  background: rgba(246, 247, 244, 0.96);
  backdrop-filter: blur(12px);
}

.public-brand,
.public-login-link,
.public-nav {
  display: inline-flex;
  align-items: center;
}

.public-brand {
  gap: 10px;
  min-width: 112px;
  font-weight: 700;
}

.public-brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  flex: 0 0 auto;
}

.public-brand-name {
  color: #172033;
  font-size: 18px;
}

.public-nav {
  justify-content: center;
  gap: 4px;
}

.public-nav-link,
.public-login-link {
  border-radius: 8px;
  color: #596579;
  font-size: 14px;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease;
}

.public-nav-link {
  padding: 10px 12px;
}

.public-nav-link:hover,
.public-nav-link-active {
  background: #e8eee8;
  color: #172033;
}

.public-login-link {
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #c8d1ca;
  background: #fff;
  color: #172033;
  font-weight: 600;
}

.public-login-link:hover {
  border-color: #1f5fbf;
  color: #1f5fbf;
}

.public-hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 64px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 40px 48px;
}

.public-eyebrow,
.public-section-kicker {
  margin: 0 0 14px;
  color: #1f5fbf;
  font-size: 14px;
  font-weight: 700;
}

.public-hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #111827;
  font-size: 64px;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

.public-hero-intro {
  max-width: 680px;
  margin: 24px 0 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.public-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.public-hero-proof span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid #d7ded8;
  border-radius: 999px;
  background: #fff;
  padding: 0 11px;
}

.public-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.public-button:hover {
  transform: translateY(-1px);
}

.public-button-primary {
  border: 1px solid #1f5fbf;
  background: #1f5fbf;
  color: #fff;
}

.public-button-secondary {
  border: 1px solid #c8d1ca;
  background: #fff;
  color: #172033;
}

.public-hero-visual {
  min-width: 0;
}

.public-hero-visual-media {
  overflow: hidden;
  border: 1px solid #d9e0da;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 22px 48px rgba(23, 32, 51, 0.16);
}

.public-hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.public-visual-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #111827;
  color: #dbeafe;
}

.public-visual-strip span {
  padding: 14px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.public-workbench {
  overflow: hidden;
  border: 1px solid #d9e0da;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.14);
}

.public-workbench-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #e3e8e3;
}

.public-workbench-topbar strong,
.public-rubric-heading strong {
  display: block;
  color: #111827;
}

.public-workbench-label {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.public-workbench-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.public-workbench-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 16px;
  padding: 18px;
  background: #f8fafc;
}

.public-evidence-pane,
.public-rubric-pane {
  min-width: 0;
  border: 1px solid #e1e7e1;
  border-radius: 8px;
  background: #ffffff;
}

.public-evidence-pane {
  padding: 14px;
}

.public-evidence-frame {
  display: grid;
  min-height: 240px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0) 46%),
    #172033;
  color: #e5eefb;
  font-weight: 800;
}

.public-evidence-frame .anticon,
.public-evidence-frame span[aria-hidden="true"] {
  margin-bottom: 8px;
  color: #93c5fd;
  font-size: 32px;
}

.public-evidence-timeline {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  margin: 14px 0 10px;
}

.public-evidence-timeline::before {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #dbe4ef;
  content: "";
}

.public-evidence-timeline span {
  height: 6px;
  border-radius: 999px;
  background: #2563eb;
}

.public-evidence-mark-long {
  width: 36%;
}

.public-evidence-mark-medium {
  width: 24%;
}

.public-evidence-mark-short {
  width: 18%;
}

.public-evidence-note {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
}

.public-evidence-note .anticon {
  margin-top: 3px;
}

.public-rubric-pane {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
}

.public-rubric-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.public-rubric-heading strong {
  color: #1f5fbf;
  font-size: 20px;
}

.public-rubric-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 12px;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

.public-rubric-row .anticon,
.public-rubric-row span[aria-hidden="true"] {
  color: #1b8a64;
}

.public-rubric-row strong {
  color: #64748b;
  font-size: 12px;
}

.public-ai-note {
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  padding: 13px;
}

.public-ai-note span {
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.public-ai-note p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.public-workbench-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e3e8e3;
}

.public-workbench-footer span {
  padding: 14px 10px;
  color: #475569;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.public-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 40px;
  border-top: 1px solid #dde3dd;
}

.public-band-compact {
  display: block;
  padding-top: 28px;
}

.public-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-highlight,
.public-related-link {
  border: 1px solid #d9e0da;
  border-radius: 8px;
  background: #fff;
}

.public-highlight {
  padding: 22px;
}

.public-highlight .anticon {
  color: #1b8a64;
  font-size: 20px;
}

.public-highlight h2 {
  margin: 16px 0 8px;
  color: #172033;
  font-size: 20px;
  line-height: 1.35;
}

.public-highlight p,
.public-section-copy p,
.public-list,
.public-related-link span,
.public-footer p {
  color: #596579;
}

.public-highlight p,
.public-section-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.public-section-copy h2 {
  margin: 0 0 16px;
  color: #172033;
  font-size: 32px;
  line-height: 1.25;
}

.public-list {
  display: grid;
  gap: 12px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #d9e0da;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  line-height: 1.65;
}

.public-list .anticon {
  margin-top: 3px;
  color: #b7791f;
}

.public-template-table {
  overflow: hidden;
  border: 1px solid #d9e0da;
  border-radius: 8px;
  background: #fff;
}

.public-template-row {
  display: grid;
  grid-template-columns: 88px minmax(130px, 0.75fr) minmax(220px, 1.3fr);
  border-top: 1px solid #e7ece7;
}

.public-template-row:first-child {
  border-top: 0;
}

.public-template-row span {
  padding: 14px 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.public-template-head {
  background: #eef4ef;
}

.public-template-head span {
  color: #172033;
  font-weight: 700;
}

.public-template-step {
  color: #1f5fbf !important;
  font-weight: 800;
}

.public-related-section {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.public-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.public-related-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 18px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.public-related-link:hover {
  transform: translateY(-1px);
  border-color: #1f5fbf;
}

.public-related-link span {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
}

.public-related-link strong {
  color: #172033;
  font-size: 17px;
  line-height: 1.35;
}

.public-related-link .anticon {
  color: #1f5fbf;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 40px 48px;
  border-top: 1px solid #dde3dd;
}

.public-footer strong {
  color: #172033;
}

.public-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.public-footer-logo {
  display: block;
  width: 32px;
  height: 32px;
}

.public-footer p {
  margin: 8px 0 0;
  font-size: 14px;
}

@media (max-width: 920px) {
  .public-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 20px;
  }

  .public-brand {
    grid-column: 1;
    min-width: 0;
  }

  .public-login-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .public-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .public-nav-link {
    white-space: nowrap;
  }

  .public-hero-section,
  .public-band,
  .public-related-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .public-hero-copy h1 {
    font-size: 40px;
  }

  .public-workbench-body {
    grid-template-columns: 1fr;
  }

  .public-evidence-frame {
    min-height: 220px;
  }

  .public-highlight-grid,
  .public-related-grid {
    grid-template-columns: 1fr;
  }

  .public-footer {
    flex-direction: column;
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 620px) {
  .public-brand-name,
  .public-login-link span {
    display: none;
  }

  .public-hero-section {
    padding-top: 44px;
  }

  .public-hero-copy h1 {
    font-size: 32px;
  }

  .public-hero-intro {
    font-size: 16px;
  }

  .public-workbench-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .public-workbench-body {
    padding: 12px;
  }

  .public-evidence-frame {
    min-height: 148px;
  }

  .public-rubric-pane {
    gap: 8px;
    padding: 12px;
  }

  .public-rubric-row {
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 9px 10px;
  }

  .public-rubric-row strong {
    grid-column: 2;
  }

  .public-button {
    width: 100%;
  }

  .public-template-row {
    grid-template-columns: 1fr;
  }

  .public-template-row span {
    padding: 10px 14px;
  }
}
