.heredity-study-plan { min-width: 0; }
.study-summary { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(280px, 1fr); gap: 24px; align-items: center; margin-bottom: 14px; }
.study-summary h3 { margin: 4px 0 10px; }
.study-progress { width: 100%; min-width: 80px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2, #e8edf4); }
.study-progress > span { display: block; height: 100%; background: var(--blue, #3579c9); border-radius: inherit; }
.study-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.study-kpis > div { padding: 10px; border-radius: 10px; background: var(--surface-2, #eef2f7); }
.study-kpis strong, .study-kpis span { display: block; }
.study-kpis strong { font-size: 1.15rem; }
.study-kpis span { margin-top: 3px; font-size: .78rem; opacity: .75; }
.study-save-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: -2px 2px 14px; font-size: .84rem; }
.study-save-line strong { color: var(--blue, #3579c9); }
.study-intro { margin-bottom: 14px; }
.study-week-list { display: grid; gap: 12px; }
.study-week { overflow: hidden; }
.study-week > summary { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto auto; gap: 10px; align-items: center; padding: 15px 16px; cursor: pointer; list-style: none; }
.study-week > summary::-webkit-details-marker { display: none; }
.study-week > summary::before { content: '▸'; font-size: .9rem; }
.study-week[open] > summary::before { content: '▾'; }
.study-week-number { font-weight: 800; white-space: nowrap; }
.study-week-title { font-weight: 700; }
.study-level { justify-self: start; font-size: .75rem; border: 1px solid currentColor; border-radius: 999px; padding: 3px 8px; white-space: nowrap; opacity: .85; }
.study-level.extension { color: #7a4d00; background: #fff3d6; }
.study-level.core { color: #205c36; background: #e5f7eb; }
.study-week-count { font-weight: 800; min-width: 34px; text-align: right; }
.study-week-body { border-top: 1px solid var(--border, #d9e0e8); padding: 16px; display: grid; gap: 16px; }
.study-copy h4, .study-week-body h4 { margin: 0 0 6px; }
.study-copy p, .study-week-body p { margin: 0; line-height: 1.5; }
.study-resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; }
.study-resource-link { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border, #d9e0e8); border-radius: 9px; color: inherit; text-decoration: none; background: var(--surface-1, #fff); }
.study-resource-link:hover { border-color: var(--blue, #3579c9); }
.study-resource-link span { font-size: .76rem; opacity: .7; }
.study-checklist { border: 0; padding: 0; margin: 0; }
.study-checklist legend { font-weight: 700; margin-bottom: 8px; }
.study-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.study-checklist label { display: flex; gap: 8px; align-items: flex-start; }
.study-checklist input, .study-check-card input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--blue, #3579c9); }
.study-week-inputs { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 14px; align-items: start; }
.study-week-inputs label > span { display: block; font-weight: 700; margin-bottom: 5px; font-size: .86rem; }
.study-week-inputs input, .study-week-inputs textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border, #cfd8e3); border-radius: 8px; padding: 9px 10px; background: var(--surface-1, #fff); color: inherit; font: inherit; }
.study-notes textarea { resize: vertical; }
.study-section { margin-top: 16px; }
.study-section h3 { margin-top: 0; }
.study-check-grid, .study-mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.study-check-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border, #d9e0e8); border-radius: 10px; padding: 12px; }
.study-check-card span { min-width: 0; }
.study-check-card strong, .study-check-card small, .study-check-card em { display: block; }
.study-check-card small { margin-top: 2px; opacity: .7; }
.study-check-card em { margin-top: 6px; font-style: normal; font-size: .84rem; line-height: 1.4; }
.study-rule-note { padding: 10px 12px; border-left: 4px solid var(--blue, #3579c9); background: var(--surface-2, #eef2f7); }
.study-alignment { display: grid; gap: 9px; }
.study-alignment article { display: grid; grid-template-columns: minmax(180px, .45fr) auto minmax(240px, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border, #d9e0e8); }
.study-alignment article:last-child { border-bottom: 0; }
.study-alignment article p { margin: 0; }
.study-alignment article span { font-size: .82rem; opacity: .7; white-space: nowrap; }
.study-table-wrap { overflow-x: auto; }
.study-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.study-table th, .study-table td { padding: 9px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border, #d9e0e8); }
.study-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; opacity: .7; }
.study-table td .study-progress { margin-top: 5px; max-width: 150px; }

@media (max-width: 760px) {
  .study-summary { grid-template-columns: 1fr; }
  .study-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-week > summary { grid-template-columns: auto 1fr auto; }
  .study-level { grid-column: 2 / span 2; }
  .study-week-count { grid-column: 3; grid-row: 1; }
  .study-checklist, .study-check-grid, .study-mock-grid { grid-template-columns: 1fr; }
  .study-week-inputs { grid-template-columns: 1fr; }
  .study-alignment article { grid-template-columns: 1fr; gap: 4px; }
  .study-save-line { align-items: flex-start; flex-direction: column; }
}
