/* Ustaad-X v0.10 — curiosity learning, trusted resources and tutor-owned material */

.v10-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

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

.v10-interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 8px;
}

.v10-interest-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
}

.v10-interest-grid input { accent-color: var(--teal); }

.v10-card-list {
  display: grid;
  gap: 12px;
}

.v10-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 7px 20px rgba(17, 45, 56, .05);
}

.v10-card-head,
.v10-curiosity-header,
.v10-resource-meta,
.v10-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.v10-card h4,
.v10-card h3 { margin: 0; color: var(--navy); }
.v10-card p { color: var(--muted); line-height: 1.55; }

.v10-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0;
}

.v10-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.v10-tag.tier-a { background: #e6f4ea; color: #176a35; }
.v10-tag.tier-b { background: #e6f0ff; color: #26548c; }
.v10-tag.status-draft,
.v10-tag.status-candidate { background: #fff5d9; color: #805e13; }
.v10-tag.status-rejected,
.v10-tag.status-suspended,
.v10-tag.status-unavailable { background: #fee9e8; color: #993f3a; }
.v10-tag.status-approved,
.v10-tag.status-published { background: var(--mint); color: var(--teal-dark); }
.v10-tag.status-missing { background: #edf1f3; color: #53616a; }
.v10-tag.status-outdated { background: #f0ecff; color: #61548d; }
.v10-tag.status-pending,
.v10-tag.status-processing { background: #e8efff; color: #365b91; }

.v10-enrichment-panel {
  margin-bottom: 18px;
  border-left: 5px solid var(--teal);
  background: linear-gradient(125deg, rgba(223,243,237,.55), #fff 56%);
}

.v10-enrichment-panel h3 { margin: 0 0 10px; color: var(--navy); font-size: 25px; }
.v10-enrichment-panel > p { font-size: 15px; line-height: 1.72; color: #31444d; }

.v10-enrichment-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.v10-enrichment-section {
  padding: 14px;
  border: 1px solid rgba(13,118,110,.15);
  border-radius: 13px;
  background: rgba(255,255,255,.78);
}

.v10-enrichment-section h4 { margin: 0 0 8px; color: var(--navy); }
.v10-enrichment-section ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }

.v10-resource-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
}

.v10-resource-thumb {
  width: 132px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 11px;
  background: var(--navy);
}

.v10-resource-placeholder {
  width: 132px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--lime);
  font-weight: 900;
}

.v10-resource-meta { color: var(--muted); font-size: 10px; }
.v10-resource-meta strong { color: var(--teal-dark); }

.v10-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #000;
  margin-top: 12px;
}

.v10-feedback-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.v10-feedback-row button,
.v10-mini-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
}

.v10-feedback-row button:hover,
.v10-mini-button:hover { border-color: var(--teal); background: var(--mint); }

.v10-lesson-curiosity {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(13,118,110,.22);
  background: linear-gradient(120deg, rgba(216,235,116,.22), rgba(223,243,237,.62), #fff);
  box-shadow: var(--shadow-small);
}

.v10-curiosity-header small { color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.v10-curiosity-header h3 { margin: 5px 0 0; color: var(--navy); font-size: 23px; }
.v10-lesson-curiosity > p { max-width: 1000px; line-height: 1.7; color: #31444d; }
.v10-context-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 12px 0; }
.v10-context-card { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.78); border: 1px solid rgba(13,118,110,.13); }
.v10-context-card strong { display: block; color: var(--navy); margin-bottom: 4px; font-size: 12px; }
.v10-context-card span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.v10-portfolio-form { margin-bottom: 20px; }
.v10-portfolio-entry { border-left: 4px solid var(--yellow); }

.v10-status-note {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7df;
  color: #705819;
  font-size: 11px;
  line-height: 1.5;
}

.v10-domain-list {
  display: grid;
  gap: 7px;
  max-height: 330px;
  overflow: auto;
  margin-top: 14px;
}

.v10-domain-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
}

.v10-admin-json {
  white-space: pre-wrap;
  background: #f4f7f5;
  border-radius: 10px;
  padding: 12px;
  max-height: 270px;
  overflow: auto;
  font-size: 11px;
  color: #31444d;
}

.v10-review-note {
  width: 100%;
  min-height: 72px;
  margin-top: 10px;
}

.v10-progress-action {
  display: flex;
  align-items: end;
  min-height: 100%;
}

.v10-progress-action .button {
  width: 100%;
}

.v10-card-actions { align-items: center; margin-top: 12px; }
.v10-card-actions .button { padding: 9px 12px; font-size: 11px; }

.v10-coverage-panel { margin-bottom: 18px; }

.v10-coverage-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.v10-coverage-metric {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfa;
}

.v10-coverage-metric small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.v10-coverage-metric strong { color: var(--navy); font-size: 20px; }
.v10-coverage-metric span { color: var(--muted); font-size: 10px; line-height: 1.35; }

.v10-coverage-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
  margin: 15px 0 20px;
}

.v10-coverage-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 9px;
}

.v10-coverage-section-heading small {
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.v10-coverage-section-heading h4 { margin: 4px 0 0; color: var(--navy); }

.v10-coverage-table-wrap {
  max-height: 590px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.v10-coverage-table { min-width: 1040px; }
.v10-coverage-lesson-table { min-width: 1120px; }

.v10-coverage-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f8f6;
}

.v10-coverage-table td { vertical-align: top; }
.v10-coverage-table td strong { display: block; color: var(--navy); }
.v10-coverage-table td small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.35; }
.v10-coverage-table tr.v10-coverage-needs td { background: rgba(255, 247, 223, .38); }

.v10-coverage-progress {
  display: grid;
  gap: 5px;
  min-width: 130px;
}

.v10-coverage-progress progress {
  width: 100%;
  height: 9px;
  accent-color: var(--teal);
}

.v10-coverage-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 115px;
}

.v10-coverage-number { font-weight: 900; color: var(--navy); }

.v10-coverage-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.v10-coverage-pagination .button { padding: 8px 11px; font-size: 10px; }

@media (max-width: 920px) {
  .v10-two-column { grid-template-columns: 1fr; }
  .v10-resource-card { grid-template-columns: 1fr; }
  .v10-resource-thumb,
  .v10-resource-placeholder { width: 100%; max-width: 320px; }
  .v10-coverage-pagination { justify-content: space-between; }
}

@media (max-width: 620px) {
  .v10-form-grid { grid-template-columns: 1fr; }
  .v10-lesson-curiosity { padding: 15px; }
  .v10-card-head,
  .v10-curiosity-header { display: grid; }
}

/* Approved resources attached deterministically to AI replies. */
.chat-resource-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}

.chat-resource-heading {
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.chat-resource-card {
  display: grid;
  gap: 0.32rem;
  padding: 0.72rem;
  border: 1px solid var(--line, #d9e3e8);
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--surface, #ffffff) 92%, #e5f6f3);
}

.chat-resource-card p {
  margin: 0.15rem 0 0.3rem;
}

.chat-resource-card .button {
  justify-self: start;
  text-decoration: none;
}
