/* School v313. Keep the portal palette and scope the mockup's green to the checklist. */
.sh6-checklist-codex {
  --green: #1F9D6B;
  --green-bg: #E6F6EF;
}

.sh6-checklist-codex .onb-section-title { margin-bottom: 4px; }

.sh6-checklist-codex .sh6-meta-codex {
  margin: 0 0 20px;
  gap: 2px 10px;
}

.sh6-checklist-codex .sec { margin-top: 20px; }
.sh6-checklist-codex .sh6-group-head-codex { margin: 0 0 8px; }
.sh6-checklist-codex .sh6-group-head-codex h4 { font-size: 14px; }
.sh6-checklist-codex .sh6-group-head-codex .btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
}
.sh6-checklist-codex .sh6-group-head-codex .btn-outline:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
}

.sh6-checklist-codex .sh6-group-head-codex .count,
.sh6-checklist-codex .sh6-optional-head-codex .count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 8px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
}

.sh6-checklist-codex .sh6-material-summary-codex {
  margin: 0 0 8px;
  color: var(--ink-mid);
  font-size: 12px;
}
.sh6-checklist-codex .sh6-material-summary-codex b {
  color: var(--purple);
  font-weight: 600;
}

.sh6-checklist-codex .sh6-row-codex {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 16px;
}
.sh6-checklist-codex .sh6-row-codex .row-main {
  min-width: 0;
  line-height: inherit;
  overflow-wrap: anywhere;
}
.sh6-checklist-codex .sh6-row-codex div.row-main { cursor: default; }
.sh6-checklist-codex .sh6-row-codex .row-name { font-size: 14px; font-weight: 600; }
.sh6-checklist-codex .sh6-row-codex .row-meta { font-size: 12px; color: var(--ink-soft); }
.sh6-checklist-codex .sh6-row-codex .row-badges { align-items: center; justify-content: flex-end; }
.sh6-checklist-codex .sh6-row-codex .badge {
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  white-space: nowrap;
}

.sh6-checklist-codex .sh6-required-codex { background: var(--orange-soft); color: #B86A00; }
.sh6-checklist-codex .sh6-optional-badge-codex { background: var(--line-soft); color: var(--ink-mid); }
.sh6-checklist-codex .sh6-collected-codex { background: var(--green-bg); color: var(--green); }
.sh6-checklist-codex .sh6-change-codex { background: var(--purple-soft); color: var(--purple); }
.sh6-checklist-codex .sh6-missing-codex {
  background: var(--bg-card);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.sh6-checklist-codex .sh6-action-codex {
  flex: none;
  padding: 0;
  margin-left: 6px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  line-height: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.sh6-checklist-codex .sh6-action-codex:hover,
.sh6-checklist-codex .sh6-action-codex:focus-visible { color: var(--purple); }
.sh6-checklist-codex .sh6-action-codex:focus-visible {
  outline: 1px solid var(--purple);
  outline-offset: 3px;
}
.sh6-checklist-codex .sh6-row-del-codex { min-width: 16px; }

.sh6-checklist-codex .sh3-more-codex > summary.more { color: var(--purple); }

.sh6-checklist-codex .sh6-optional-codex { margin-top: 16px; }
.sh6-checklist-codex .sh6-optional-codex > summary { padding: 12px 16px; }
.sh6-checklist-codex .sh6-optional-codex > summary .count { color: #B86A00; }
.sh6-checklist-codex .sh6-optional-body-codex .list { border: 0; border-radius: 0; }
.sh6-checklist-codex .sh6-optional-head-codex {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.sh6-checklist-codex .sh6-optional-section-codex > summary.sh6-optional-head-codex {
  display: flex !important;
  list-style: none;
  margin: 0;
}
.sh6-checklist-codex .sh6-optional-head-codex::-webkit-details-marker { display: none; }
.sh6-checklist-codex .sh6-optional-section-codex > summary::before {
  content: '▸';
  display: inline-block;
}
.sh6-checklist-codex .sh6-optional-section-codex[open] > summary::before { transform: rotate(90deg); }

.sh6-checklist-codex .sh6-records-codex.group {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.sh6-checklist-codex .sh6-records-codex.group > summary {
  padding: 10px 14px;
  color: var(--ink-mid);
  font-size: 12px;
  font-weight: 600;
}
.sh6-checklist-codex .sh6-records-codex.group > summary > span:first-child { flex: none; }
.sh6-checklist-codex .sh6-records-codex.group > summary::after { flex: none; }
.sh6-checklist-codex .sh6-records-codex[open] .sh6-record-meta-codex { display: none; }
.sh6-checklist-codex .sh6-records-codex .sh6-record-meta-codex { font-weight: 400; }
.sh6-checklist-codex .sh6-records-codex .sh3-records-body-codex { padding: 10px 14px; }
.sh6-checklist-codex .sh6-records-codex .sh3-records-body-codex > .card-desc { font-size: 12px; }

@media (max-width: 640px) {
  .sh6-checklist-codex .sh6-meta-codex {
    flex-direction: column;
    align-items: flex-start;
  }

  .sh6-checklist-codex .sh6-row-codex { grid-template-columns: minmax(0, 1fr); }
  .sh6-checklist-codex .sh6-row-codex .row-badges { justify-content: flex-start; }
}
