/* 标题留在表格之外；样式只覆盖个人中心内的上课记录。 */
#personalCenter #profileLessonRecords {
    min-width: 0;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--profile-ink, #30302e);
}
#personalCenter #profileLessonRecords.hidden,
#personalCenter #profileLessonRecords[hidden],
#personalCenter #profileLessonRecords .personal-lesson-records__status[hidden] { display: none; }

#personalCenter #profileLessonRecords .personal-lesson-records__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
    padding: 0;
}
#personalCenter #profileLessonRecords .personal-lesson-records__header h3 {
    margin: 0;
    color: var(--profile-ink, #30302e);
    font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -.025em;
}
#personalCenter #profileLessonRecords .personal-lesson-records__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--profile-line, #e2e0d8);
    border-radius: 7px;
    background: var(--profile-paper, #fdfcf9);
    color: var(--profile-ink, #30302e);
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
#personalCenter #profileLessonRecords .personal-lesson-records__button:hover:not(:disabled) {
    border-color: var(--profile-accent, #a65338);
    background: var(--profile-tint, #f3e9e2);
    color: var(--profile-accent, #a65338);
}
#personalCenter #profileLessonRecords .personal-lesson-records__header .personal-lesson-records__button {
    padding-right: 2px;
    padding-left: 10px;
    border-color: transparent;
    background: transparent;
    color: var(--profile-muted, #6c6b64);
}
#personalCenter #profileLessonRecords .personal-lesson-records__header .personal-lesson-records__button:hover:not(:disabled) { color: var(--profile-accent, #a65338); }
#personalCenter #profileLessonRecords .personal-lesson-records__button:focus-visible,
#personalCenter #profileLessonRecords .personal-lesson-records__content:focus-visible { outline: 2px solid var(--profile-accent, #a65338); outline-offset: 3px; }
#personalCenter #profileLessonRecords .personal-lesson-records__button:disabled { opacity: .4; cursor: default; }

#personalCenter #profileLessonRecords .personal-lesson-records__status {
    margin: 0 0 16px;
    padding: 11px 14px;
    border-left: 2px solid var(--profile-accent, #a65338);
    border-radius: 0 5px 5px 0;
    background: var(--profile-tint, #f3e9e2);
    color: var(--profile-ink, #30302e);
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
#personalCenter #profileLessonRecords .personal-lesson-records__content {
    min-width: 0;
    max-height: 520px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--profile-line, #e2e0d8);
    border-radius: 10px;
    background: var(--profile-paper, #fdfcf9);
    scrollbar-width: thin;
    scrollbar-color: var(--profile-line, #e2e0d8) transparent;
}
#personalCenter #profileLessonRecords[aria-busy="true"] .personal-lesson-records__content { min-height: 96px; }
#personalCenter #profileLessonRecords .personal-lesson-records__table {
    width: 100%;
    min-width: 770px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    text-align: left;
}
#personalCenter #profileLessonRecords .personal-lesson-records__table caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#personalCenter #profileLessonRecords .personal-lesson-records__table th,
#personalCenter #profileLessonRecords .personal-lesson-records__table td { padding: 17px 18px; border-bottom: 1px solid var(--profile-line, #e2e0d8); line-height: 1.7; vertical-align: middle; }
#personalCenter #profileLessonRecords .personal-lesson-records__table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-top: 13px;
    padding-bottom: 13px;
    background: var(--profile-soft, #f5f3ee);
    color: var(--profile-muted, #6c6b64);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
#personalCenter #profileLessonRecords .personal-lesson-records__table th:first-child,
#personalCenter #profileLessonRecords .personal-lesson-records__table td:first-child { padding-left: 22px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#personalCenter #profileLessonRecords .personal-lesson-records__table td:first-child { color: var(--profile-muted, #6c6b64); }
#personalCenter #profileLessonRecords .personal-lesson-records__table th:last-child,
#personalCenter #profileLessonRecords .personal-lesson-records__table td:last-child { padding-right: 22px; }
#personalCenter #profileLessonRecords .personal-lesson-records__table td:nth-child(2),
#personalCenter #profileLessonRecords .personal-lesson-records__table td:nth-child(4) { min-width: 110px; max-width: 280px; white-space: pre-wrap; overflow-wrap: anywhere; }
#personalCenter #profileLessonRecords .personal-lesson-records__table th:nth-last-child(-n + 2),
#personalCenter #profileLessonRecords .personal-lesson-records__table td:nth-last-child(-n + 2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#personalCenter #profileLessonRecords .personal-lesson-records__table tbody tr:last-child td { border-bottom: 0; }
#personalCenter #profileLessonRecords .personal-lesson-records__table tbody tr:hover { background: var(--profile-tint, #f3e9e2); }
#personalCenter #profileLessonRecords .personal-lesson-records__type { display: inline-block; padding: 2px 8px; border: 0; border-radius: 4px; background: var(--profile-soft, #f5f3ee); color: var(--profile-muted, #6c6b64); font-size: 12px; white-space: nowrap; }

#personalCenter #profileLessonRecords .personal-lesson-records__empty {
    display: grid;
    min-height: 192px;
    margin: 0;
    padding: 28px 24px;
    align-content: center;
    justify-items: center;
    color: var(--profile-muted, #6c6b64);
    font-size: 13px;
    line-height: 1.7;
}
#personalCenter #profileLessonRecords .personal-lesson-records__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 2px 0; }
#personalCenter #profileLessonRecords .personal-lesson-records__footer p,
#personalCenter #profileLessonRecords .personal-lesson-records__pagination span { margin: 0; color: var(--profile-muted, #6c6b64); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
#personalCenter #profileLessonRecords .personal-lesson-records__pagination { display: flex; align-items: center; gap: 12px; }
#personalCenter #profileLessonRecords .personal-lesson-records__pagination span { min-width: 36px; text-align: center; white-space: nowrap; }

@media (max-width: 640px) {
    #personalCenter #profileLessonRecords .personal-lesson-records__header { gap: 12px; margin-bottom: 16px; }
    #personalCenter #profileLessonRecords .personal-lesson-records__header h3 { font-size: 23px; }
    #personalCenter #profileLessonRecords .personal-lesson-records__button { min-height: 40px; }
    #personalCenter #profileLessonRecords .personal-lesson-records__table th:first-child,
    #personalCenter #profileLessonRecords .personal-lesson-records__table td:first-child { padding-left: 18px; }
    #personalCenter #profileLessonRecords .personal-lesson-records__footer { padding-top: 14px; }
    #personalCenter #profileLessonRecords .personal-lesson-records__pagination { gap: 8px; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
    #personalCenter #profileLessonRecords .personal-lesson-records__button { transition: none; }
}