/* Course planning: one quiet agenda, with the next action always easy to find. */
#lessonPage.v52-schedule{max-width:1240px;margin-inline:auto;color:var(--ink);--schedule-accent:var(--v51-purple,#6553c4);--schedule-soft:var(--v51-purple-soft,#f0ebff);--schedule-green:var(--v51-teal,#287b72);--schedule-green-soft:var(--v51-teal-soft,#e4f5ef)}
#lessonPage.v52-schedule [hidden]{display:none!important}
#lessonPage.v52-schedule .v52-schedule-head{align-items:center;gap:24px;margin-bottom:24px!important}
#lessonPage.v52-schedule .v52-schedule-head h1{font-size:30px;letter-spacing:-.04em;margin:0 0 8px;color:var(--ink)!important}
#lessonPage.v52-schedule .v52-schedule-head p{margin:0;color:var(--muted)!important;font-size:14px;line-height:1.8}
.v52-head-actions{display:flex;gap:9px;flex-shrink:0}.v52-head-actions button{min-height:44px;white-space:nowrap;padding:10px 16px}
#lessonPage .v52-schedule-overview{display:grid;grid-template-columns:repeat(3,minmax(90px,.65fr)) minmax(220px,1.6fr);align-items:center;gap:20px;padding:25px 28px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(110deg,var(--schedule-soft),var(--surface) 65%,var(--v51-blue-soft));margin-bottom:24px}
.v52-schedule-overview>div{display:flex;flex-direction:column;gap:5px;min-width:0}.v52-schedule-overview>div>strong{font-size:32px;line-height:1.2;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-1px;color:var(--ink)}.v52-schedule-overview>div>span{font-size:12px;color:var(--muted)}.v52-schedule-overview .v52-overview-note{padding-left:24px;border-left:1px solid var(--line);gap:7px}.v52-overview-note b{font-size:16px;line-height:1.6;font-weight:650;color:var(--schedule-accent)}
.v52-week-panel{border:1px solid var(--line);border-radius:22px;padding:20px 22px;background:var(--surface);margin-bottom:20px}.v52-week-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.v52-week-top>strong{font-size:15px;font-weight:650;color:var(--ink)}.v52-week-controls{display:flex;gap:6px;align-items:center}.v52-week-controls button{min-height:36px!important;min-width:36px;padding:6px 10px;font-size:12px;color:var(--muted)!important;background:var(--surface)!important;border-color:var(--line)!important;box-shadow:none!important}.v52-week-controls button:first-child,.v52-week-controls button:last-child{font-size:22px;line-height:1;padding:0}
.v52-week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}#lessonPage .v52-week-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:92px;padding:12px 5px;border:1px solid transparent;border-radius:15px;background:var(--surface-soft);color:var(--ink);box-shadow:none!important}.v52-week-day>span{font-size:12px;color:var(--muted)}.v52-week-day>strong{font-size:23px;line-height:1.1;font-weight:650;font-variant-numeric:tabular-nums}.v52-week-day>small{font-size:11px;color:var(--muted)}#lessonPage .v52-week-day.today{border-color:var(--schedule-accent)}#lessonPage .v52-week-day.today>span{color:var(--schedule-accent);font-weight:650}#lessonPage .v52-week-day[aria-pressed=true]{background:var(--schedule-soft)!important;border-color:var(--schedule-accent)!important;color:var(--schedule-accent)!important;box-shadow:inset 0 0 0 1px var(--schedule-accent)!important}#lessonPage .v52-week-day[aria-pressed=true]>span,#lessonPage .v52-week-day[aria-pressed=true]>small{color:inherit}
.v52-schedule-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 15px}.v52-course-modes{display:flex;gap:4px;align-items:center;padding:5px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}#lessonPage .v52-course-modes button{font-size:13px;min-height:40px;padding:8px 17px;border:0!important;background:transparent!important;color:var(--muted)!important;border-radius:10px!important;box-shadow:none!important;white-space:nowrap}#lessonPage .v52-course-modes button[aria-pressed=true]{background:var(--surface)!important;color:var(--schedule-accent)!important;box-shadow:0 2px 7px #2026400b!important;font-weight:700}
#lessonPage .v52-schedule-tools input{width:min(340px,42%);min-width:0;min-height:47px;padding:11px 15px;background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:13px!important;outline:none;font-size:14px}#lessonPage .v52-schedule-tools input::placeholder{color:var(--muted);opacity:1}#lessonPage .v52-schedule-tools input:focus{border-color:var(--schedule-accent)!important;box-shadow:0 0 0 3px var(--schedule-soft)}
.v52-list-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;margin:0 2px 12px;color:var(--muted);font-size:12px}.v52-list-summary button{min-height:34px!important;padding:5px 11px;font-size:12px;color:var(--schedule-accent)!important;background:var(--schedule-soft)!important;border:1px solid var(--line)!important}
/* The form stays folded until needed; records no longer compete with a long form. */
#lessonPage.v52-schedule .lesson-layout{display:flex!important;flex-direction:column;gap:18px!important;margin:0!important}#lessonPage.v52-schedule .kx-schedule-fold{order:-1;width:100%;border:1px solid var(--line);border-radius:18px;background:var(--surface);margin:0 0 2px;overflow:hidden}#lessonPage.v52-schedule .kx-schedule-fold>summary{padding:19px 22px;font-size:14px;font-weight:650;color:var(--schedule-accent);cursor:pointer;list-style-position:inside}#lessonPage.v52-schedule .kx-schedule-fold[open]>summary{border-bottom:1px solid var(--line);background:var(--schedule-soft)}#lessonPage.v52-schedule #scheduleLessonPanel{padding:24px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important}#lessonPage.v52-schedule #scheduleLessonPanel>.panel-heading{display:none!important}
#lessonPage.v52-schedule .v52-agenda-panel{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-width:0;width:100%;margin:0!important}#lessonPage.v52-schedule #lessonRecords{display:grid;grid-template-columns:1fr;gap:13px;min-width:0}#lessonPage.v52-schedule #lessonRecords>.v52-day-heading{grid-column:1/-1;margin:8px 3px 0;padding:0;font-size:14px;font-weight:650;color:var(--muted)!important;letter-spacing:0}
#lessonPage.v52-schedule .lesson-card{position:relative;border:1px solid var(--line)!important;border-left:3px solid var(--line)!important;border-radius:18px!important;padding:22px 24px!important;background:var(--surface)!important;color:var(--ink)!important;margin:0!important;box-shadow:0 5px 18px #24365003!important;min-width:0;opacity:1!important;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 22px;align-items:center}#lessonPage.v52-schedule .lesson-card[data-status=in_progress]{border-left-color:var(--schedule-green)!important}#lessonPage.v52-schedule .lesson-card.v52-next-lesson{border-color:var(--schedule-accent)!important;box-shadow:0 6px 22px #7162d70b!important}.v52-next-label{grid-column:1/-1;font-size:11px;font-weight:650;letter-spacing:.03em;color:var(--schedule-accent);margin-bottom:2px}#lessonPage.v52-schedule .lesson-card[data-status=in_progress] .v52-next-label{color:var(--schedule-green)}
#lessonPage.v52-schedule .lesson-card-head{grid-column:1/-1;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0}#lessonPage.v52-schedule .lesson-card-head>div{min-width:0}#lessonPage.v52-schedule .lesson-card-head h3{font-size:18px;line-height:1.5;font-weight:700;color:var(--ink)!important;margin:0 0 7px;overflow-wrap:anywhere}#lessonPage.v52-schedule .lesson-card-head small{color:var(--muted)!important;font-size:12px;line-height:1.7;display:block}#lessonPage.v52-schedule .lesson-pill{flex-shrink:0;border:0;border-radius:8px;background:var(--v51-blue-soft);color:var(--v51-blue);padding:5px 10px;font-size:11px;font-weight:600;white-space:nowrap}#lessonPage.v52-schedule [data-status=in_progress] .lesson-pill{background:var(--schedule-green-soft);color:var(--schedule-green)}#lessonPage.v52-schedule [data-status=completed] .lesson-pill{background:var(--surface-soft);color:var(--muted)}#lessonPage.v52-schedule [data-status=cancelled] .lesson-pill{background:var(--surface-soft);color:var(--muted)}
#lessonPage.v52-schedule .lesson-meta{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;margin:0!important;color:var(--muted)!important;font-size:12px;grid-column:1;min-width:0}#lessonPage.v52-schedule .lesson-meta strong{color:var(--ink)!important;font-size:19px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:.01em}.v52-duration{font-size:12px;color:var(--muted)}
#lessonPage.v52-schedule .lesson-actions{grid-column:2;display:flex!important;align-items:center;justify-content:flex-end;gap:8px!important;flex-wrap:wrap;margin:0!important}#lessonPage.v52-schedule .lesson-actions button{min-height:42px!important;padding:10px 15px!important;font-size:12px!important;white-space:normal;line-height:1.5}.v52-course-credit{grid-column:1/-1;justify-self:start;max-width:100%;margin:0!important;font-size:11px!important;padding:5px 9px!important;border-radius:7px!important;color:var(--schedule-green)!important;background:var(--schedule-green-soft)!important}#lessonPage.v52-schedule .v52-course-credit.low{color:var(--v51-orange)!important;background:var(--v51-orange-soft)!important}#lessonPage.v52-schedule .v52-credit-blocked .lesson-actions button:disabled{color:var(--muted)!important;background:var(--surface-soft)!important;border:1px solid var(--line)!important;opacity:1!important;box-shadow:none!important;cursor:not-allowed}
.v52-lesson-details{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;margin-top:2px;min-width:0}.v52-lesson-details>summary{font-size:12px;color:var(--muted);line-height:1.7;cursor:pointer;list-style-position:inside;padding:3px 0}.v52-lesson-details[open]>summary{color:var(--schedule-accent);font-weight:650}.v52-lesson-detail-body{display:grid;gap:12px;padding:15px 0 3px;font-size:13px;line-height:1.8;color:var(--ink)}#lessonPage.v52-schedule .v52-lesson-detail-body p{margin:0!important;color:var(--ink)!important;overflow-wrap:anywhere}#lessonPage.v52-schedule .v52-lesson-detail-body small{color:var(--muted)!important;font-size:11px}.v52-lesson-detail-body>details{border:1px solid var(--line);padding:12px 14px;border-radius:12px;background:var(--surface-soft)}.v52-lesson-detail-body>details summary{color:var(--muted);font-size:12px;cursor:pointer}.v52-lesson-detail-body>details p{padding-top:9px}.v52-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.v52-detail-actions button{min-height:38px!important;padding:8px 12px!important;font-size:12px!important}.v52-material{color:var(--muted)!important}#lessonPage.v52-schedule .kx-cancel-reason{padding:11px 14px;background:var(--v51-orange-soft);border-left:3px solid var(--v51-orange);border-radius:9px;color:var(--v51-orange)!important}
.v52-course-empty{border:1px dashed var(--line);background:var(--surface);border-radius:20px;padding:54px 24px;text-align:center;color:var(--muted);display:grid;justify-items:center;gap:10px}.v52-empty-symbol{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;color:var(--schedule-accent);background:var(--schedule-soft);font-size:28px}.v52-course-empty h3{font-size:17px!important;margin:5px 0!important;color:var(--ink)!important}.v52-course-empty p{margin:0 0 6px!important;color:var(--muted)!important;font-size:13px;line-height:1.8}#lessonPage .v52-more-lessons{display:block;margin:20px auto 0;font-size:13px;padding:11px 22px}
#lessonPage .v52-monthly-fold{margin-top:28px;padding-top:19px;border-top:1px solid var(--line)}.v52-monthly-fold>summary{font-size:13px;color:var(--muted);cursor:pointer;min-height:32px;line-height:1.7}#lessonPage .v52-monthly-fold .kx-month-panel{background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:18px;padding:22px;margin:12px 0 0}#lessonPage .v52-monthly-fold .kx-month-top h2{color:var(--ink)!important;font-size:18px}.v52-monthly-fold .kx-month-counters strong{color:var(--schedule-accent)!important}.v52-monthly-fold .kx-month-record{border-color:var(--line)}.v52-monthly-fold .kx-month-record small,.v52-monthly-fold .kx-month-panel small{color:var(--muted)!important}.v52-monthly-fold input{background:var(--surface-soft);border:1px solid var(--line);color:var(--ink);border-radius:10px;padding:8px 12px}
/* Form fields are moved, never recreated, so existing validation and updates stay attached. */
#lessonPage.v52-schedule #scheduleLessonForm{display:grid!important;grid-template-columns:1fr;gap:24px;max-width:none;margin:0}#lessonPage .v52-form-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px;margin:0;padding:20px;border:1px solid var(--line);border-radius:16px;min-width:0;background:var(--surface)}.v52-form-section legend{padding:0 9px;font-size:14px;font-weight:700;color:var(--ink)}.v52-form-section legend span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:8px;background:var(--schedule-soft);color:var(--schedule-accent);font-size:10px;letter-spacing:.04em;margin-right:8px}.v52-form-help{grid-column:1/-1;margin:0!important;font-size:12px!important;color:var(--muted)!important;line-height:1.7}.v52-form-field,.v52-form-section>label,.v52-form-section>#lessonTeacherWrap{min-width:0;margin:0!important;display:block}.v52-form-section label{color:var(--ink)!important;font-size:12px!important;font-weight:600!important;line-height:1.8;margin:0 0 6px!important}.v52-form-section .field-label{margin-top:0!important}#lessonPage .v52-form-section :is(input,select,textarea){width:100%;max-width:100%;min-width:0;min-height:44px;padding:11px 12px;background:var(--surface-soft)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:10px!important;font-size:14px!important;box-sizing:border-box}#lessonPage .v52-form-section :is(input,textarea)::placeholder{color:var(--muted)!important;opacity:1}.v52-form-section>label:has(textarea),.v52-form-section>#kxReadingSchedule,.v52-form-section>#kxPhoneticsSchedule,.v52-form-section>#kxLessonWordsWrap,.v52-form-section>#kxLessonVocabSourceWrap{grid-column:1/-1}.v52-form-section #kxScheduleCreditHint{font-size:11px!important;line-height:1.8;color:var(--v51-orange)!important;background:var(--v51-orange-soft)!important;margin:7px 0 0;padding:8px 11px;border-radius:9px;font-weight:400}.v52-form-section .kx-clock-selects{display:flex!important;gap:8px;margin-top:9px!important}.v52-clock-options{margin-top:8px}.v52-clock-options summary{font-size:11px;color:var(--muted);font-weight:400;cursor:pointer;line-height:1.8}.v52-clock-options .kx-clock-selects select{font-size:12px!important;min-height:40px}.v52-form-section .kx-time-hint{font-size:11px;color:var(--muted);margin:5px 0 0}.v52-form-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;position:sticky;bottom:12px;padding:14px 16px;border:1px solid var(--line);border-radius:15px;background:var(--surface);box-shadow:0 8px 30px #202b3510;z-index:2}.v52-form-footer>button[type=submit]{margin-left:auto;padding:11px 25px;min-height:46px}.v52-form-footer>#lessonScheduleStatus{flex-basis:100%;margin:0}.v52-form-footer>#lessonScheduleStatus:not(.show){display:none}.v52-form-footer>#lessonScheduleStatus.show{order:-1}.v52-schedule>.tip{margin-top:22px!important;color:var(--muted)!important;font-size:11px}
#lessonPage.v52-schedule :is(button,summary,input,select,textarea):focus-visible{outline:3px solid var(--schedule-accent)!important;outline-offset:3px}
@media(max-width:1100px){#lessonPage .v52-schedule-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.v52-schedule-overview .v52-overview-note{grid-column:1/-1;padding:14px 0 0;border-left:0;border-top:1px solid var(--line);display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:14px}.v52-schedule-overview .v52-overview-note b{font-size:14px}#lessonPage.v52-schedule .lesson-card{grid-template-columns:1fr}#lessonPage.v52-schedule .lesson-actions{grid-column:1;justify-content:flex-start}}
@media(max-width:700px){#lessonPage.v52-schedule .v52-schedule-head{align-items:flex-start;gap:14px;flex-wrap:wrap}#lessonPage.v52-schedule .v52-schedule-head h1{font-size:26px}#lessonPage.v52-schedule .v52-schedule-head p{font-size:12px}.v52-head-actions{gap:7px}.v52-head-actions button{min-height:40px!important;font-size:12px;padding:8px 12px}#lessonPage .v52-schedule-overview{padding:20px;gap:16px;margin-bottom:18px;border-radius:18px}.v52-schedule-overview>div>strong{font-size:28px}.v52-schedule-overview>div>span{font-size:11px}.v52-schedule-overview .v52-overview-note{gap:9px}.v52-schedule-overview .v52-overview-note b{font-size:13px;text-align:right}.v52-week-panel{padding:16px 14px;border-radius:18px;margin-bottom:16px}.v52-week-top{gap:8px;margin-bottom:13px}.v52-week-top>strong{font-size:13px}.v52-week-controls{gap:4px}.v52-week-controls button{min-height:32px!important;min-width:28px;padding:5px 7px;font-size:10px}.v52-week-days{gap:5px}#lessonPage .v52-week-day{min-height:79px;padding:10px 2px;border-radius:11px;gap:6px}.v52-week-day>span{font-size:10px}.v52-week-day>strong{font-size:20px}.v52-week-day>small{font-size:10px}.v52-schedule-tools{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:10px}.v52-course-modes{width:100%;justify-content:stretch}#lessonPage .v52-course-modes button{flex:1;padding:8px 10px;font-size:12px}#lessonPage .v52-schedule-tools input{width:100%;min-height:45px;font-size:16px}.v52-list-summary{font-size:11px;gap:8px}.v52-list-summary button{font-size:10px;padding:5px 8px}#lessonPage.v52-schedule .lesson-card{padding:18px!important;gap:12px;border-radius:16px!important}#lessonPage.v52-schedule .lesson-card-head{gap:10px}#lessonPage.v52-schedule .lesson-card-head h3{font-size:16px}#lessonPage.v52-schedule .lesson-card-head small{font-size:11px}#lessonPage.v52-schedule .lesson-pill{font-size:10px;padding:4px 7px}#lessonPage.v52-schedule .lesson-meta strong{font-size:18px}#lessonPage.v52-schedule .lesson-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px!important}#lessonPage.v52-schedule .lesson-actions button{width:100%;padding:10px 9px!important;font-size:11px!important;min-height:44px!important}#lessonPage.v52-schedule .lesson-actions button:only-child{grid-column:1/-1}.v52-lesson-detail-body{font-size:12px}.v52-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v52-detail-actions button{font-size:11px!important;padding:8px!important;min-height:40px!important}.v52-course-empty{padding:38px 20px}.v52-course-empty h3{font-size:16px!important}.v52-course-empty p{font-size:12px!important}#lessonPage.v52-schedule #scheduleLessonPanel{padding:15px!important}#lessonPage.v52-schedule .kx-schedule-fold>summary{padding:16px;font-size:12px}#lessonPage .v52-form-section{padding:16px 13px;grid-template-columns:1fr;gap:13px}.v52-form-section legend{font-size:13px}.v52-form-section>label,.v52-form-section>.v52-form-field,.v52-form-section>#lessonTeacherWrap{grid-column:1/-1}#lessonPage .v52-form-section :is(input,select,textarea){font-size:16px!important}.v52-form-footer{bottom:8px;padding:12px;gap:8px}.v52-form-footer>button{flex:1;min-width:0;font-size:13px;padding:10px!important}.v52-monthly-fold .kx-month-record{grid-template-columns:1fr;gap:7px}.v52-monthly-fold .kx-month-record button{justify-self:start}#lessonPage .v52-monthly-fold .kx-month-panel{padding:17px}.v52-monthly-fold .kx-month-counters{gap:18px;font-size:12px}.v52-monthly-fold .kx-month-counters strong{font-size:25px}}
@media(max-width:380px){.v52-week-top{align-items:flex-start;flex-direction:column}.v52-week-controls{align-self:flex-end}.v52-overview-note{flex-wrap:wrap}.v52-list-summary{flex-wrap:wrap}.v52-schedule-head .v52-head-actions{width:100%}.v52-head-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){#lessonPage.v52-schedule *,#lessonPage.v52-schedule *:before,#lessonPage.v52-schedule *:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* A direct jump keeps the active lesson within one tap on a small screen. */
#lessonPage .v52-schedule-overview .v52-overview-note{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px}.v52-overview-note>span,.v52-overview-note>b{grid-column:1}.v52-overview-note>.v52-jump-lesson{grid-column:2;grid-row:1/3;min-height:40px!important;font-size:11px!important;white-space:nowrap;padding:8px 11px!important;background:var(--surface)!important;color:var(--schedule-accent)!important;border-color:var(--line)!important}.v52-schedule .lesson-card{scroll-margin-top:24px}
@media(max-width:700px){#lessonPage .v52-schedule-overview{padding:16px 18px;margin-bottom:15px;gap:12px}.v52-schedule-overview>div>strong{font-size:26px}#lessonPage .v52-schedule-overview .v52-overview-note{padding-top:12px;gap:4px 9px}.v52-schedule-overview .v52-overview-note b{text-align:left;font-size:13px}.v52-overview-note>.v52-jump-lesson{font-size:10px!important;padding:7px 10px!important;min-height:38px!important}.v52-week-panel{padding:13px 12px;margin-bottom:14px}.v52-week-top{margin-bottom:10px}#lessonPage .v52-week-day{min-height:72px;padding:8px 2px;gap:5px}.v52-course-modes{padding:4px}#lessonPage .v52-course-modes button{min-height:36px!important}.v52-schedule-tools{gap:10px}}
