/* 📊 배움 기록 화면(learning.html) */
#learning { min-width: 0; }
/* 넓은 표가 화면을 밀지 않게 — 표만 옆으로 밀린다 */
[data-teacher-page="learning"] .studio-teacher-layout > * { min-width: 0; }
.lr-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 14px 0 8px; }
.lr-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #5a6376; }
.lr-form select { min-height: 42px; min-width: 150px; padding: 0 10px; border: 2px solid #d5dbef; border-radius: 12px; background: #fff; color: #1d2433; font: inherit; font-size: 15px; }
.lr-form select:focus-visible { outline: 3px solid #ffd43b; outline-offset: 2px; }
.lr-status { min-height: 22px; margin: 6px 0 12px; color: #5a6376; font-size: 14px; font-weight: 700; }
.lr-empty, .lr-note { margin: 0 0 10px; color: #5a6376; font-size: 14px; line-height: 1.55; }

.lr-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0 0 14px; }
.lr-summary div { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #dde2ef; border-radius: 14px; background: #f7f8fc; }
.lr-summary strong { font-size: 24px; color: #1d2433; }
.lr-summary span { font-size: 13px; color: #5a6376; }

.lr-card { margin: 0 0 14px; padding: 16px 16px 12px; border: 1px solid #dde2ef; border-radius: 16px; background: #fff; min-width: 0; }
.lr-card h3 { margin: 0 0 10px; font-size: 17px; }

.lr-hard { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.lr-hard li { display: grid; gap: 3px; line-height: 1.45; }
.lr-meta { color: #5a6376; font-size: 13px; }
.lr-why { color: #9a3412; font-size: 14px; font-weight: 700; }
.lr-stuck { color: #c0392b; font-size: 13px; overflow-wrap: anywhere; }

.lr-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lr-table th, .lr-table td { padding: 8px 10px; border-bottom: 1px solid #edf0f6; text-align: left; vertical-align: top; white-space: nowrap; }
.lr-table td:has(.lr-chips) { white-space: normal; min-width: 140px; }
.lr-table th { position: sticky; top: 0; background: #f7f8fc; color: #5a6376; font-size: 12px; font-weight: 800; }
.lr-table tbody tr:hover { background: #fafbff; }

.lr-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.lr-chip { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.is-strong .lr-chip { background: #e6f6ec; color: #1f7a42; }
.is-weak .lr-chip { background: #fdecea; color: #b42318; }
.lr-none { color: #9aa3b5; }

.lr-downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.lr-danger { color: #b42318; }

@media (max-width: 520px) {
  .lr-form label, .lr-form select { width: 100%; }
  .lr-form .studio-btn { width: 100%; }
}
