/* 学生快捷操作的浅色展示层，不改变提交、校验或幂等状态。 */
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) {
    --academic-bg: #FAF9F5;
    --academic-panel: #FAF9F5;
    --academic-panel-raised: #F5F4ED;
    --academic-text: #302e29;
    --academic-muted: #706d65;
    --academic-line: #dfdcd3;
    --academic-hairline: #e9e6de;
    --academic-brand: #C96442;
    --academic-active-tint: rgb(201 100 66 / 8%);
    --academic-focus: 0 0 0 3px rgb(201 100 66 / 14%);
    color: var(--academic-text);
    background: #FAF9F5;
    border: 1px solid #dfdcd3;
    border-radius: 14px;
    box-shadow: 0 22px 72px rgb(48 46 41 / 18%);
    max-height: calc(100dvh - 40px);
    overflow: auto;
}
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog)::backdrop {
    background: rgb(35 32 28 / 28%);
    backdrop-filter: blur(3px);
}
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) header {
    align-items: flex-start;
    gap: 16px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #e9e6de;
    background: #FAF9F5;
}
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) h2 {
    margin: 0 0 8px;
    font: 500 26px/1.3 var(--academic-font-display);
    letter-spacing: .02em;
}
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) header p {
    font-size: 12px;
    line-height: 1.7;
    color: #706d65;
}
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog)
:is(.academic-primary, .academic-secondary, .academic-icon-button) {
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #cfc8ba;
    border-radius: 6px;
    background: #FAF9F5;
    color: #625f58;
    font-size: 12px;
    font-weight: 500;
    box-shadow: none;
    transform: none;
}
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) .academic-primary {
    border-color: #C96442;
    background: #C96442;
    color: #fffdf9;
}
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) .academic-primary:hover:not(:disabled) {
    background: #b75a3a;
    border-color: #b75a3a;
}
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog)
:is(.academic-secondary, .academic-icon-button):hover:not(:disabled) {
    background: #F5F4ED;
    border-color: #bfb5a5;
}
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) button:disabled { opacity: .55; cursor: default; }
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) :is(button, input, select, textarea):focus-visible {
    outline: 2px solid #C96442;
    outline-offset: 2px;
}
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) footer {
    position: sticky;
    bottom: 0;
    gap: 8px;
    padding: 16px 26px;
    border-top: 1px solid #e4e0d7;
    background: #F5F4ED;
}
body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) :is(input, select, textarea) {
    border: 1px solid #d6d0c4;
    border-radius: 7px;
    background: #F5F4ED;
    color: #302e29;
    font: 13px/1.5 var(--academic-font-body);
    min-height: 40px;
}
body.theme-light #academicLessonAdditionDialog { width: min(600px, calc(100vw - 32px)); }
body.theme-light #academicLessonAdditionDialog .lesson-addition-body { padding: 20px 26px 24px; }
body.theme-light #academicLessonAdditionDialog .lesson-addition-guide { margin-bottom: 16px; font-size: 12px; }
body.theme-light #academicLessonAdditionDialog .lesson-addition-choices { gap: 10px; }
body.theme-light #academicLessonAdditionDialog .lesson-addition-choices button {
    position: relative;
    gap: 7px;
    padding: 16px 32px 16px 16px;
    border: 1px solid #d6d0c4;
    border-radius: 8px;
    background: #F5F4ED;
    transition: background 140ms ease, border-color 140ms ease;
}
body.theme-light #academicLessonAdditionDialog .lesson-addition-choices strong { font-size: 14px; color: #302e29; }
body.theme-light #academicLessonAdditionDialog .lesson-addition-choices button::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 18px;
    width: 13px;
    height: 13px;
    border: 1px solid #c4bcad;
    border-radius: 50%;
    background: #FAF9F5;
}
body.theme-light #academicLessonAdditionDialog .lesson-addition-choices button[aria-pressed="true"] {
    border-color: #C96442;
    background: #F7ECE5;
}
body.theme-light #academicLessonAdditionDialog .lesson-addition-choices button[aria-pressed="true"]::after {
    border-color: #C96442;
    background: #C96442;
    box-shadow: inset 0 0 0 3px #FAF9F5;
}
body.theme-light #academicLessonAdditionDialog fieldset { margin-top: 22px; }
body.theme-light #academicLessonAdditionDialog legend { margin-bottom: 16px; font-size: 13px; }
body.theme-light #academicLessonAdditionDialog .lesson-addition-fields { gap: 16px; }
body.theme-light #academicLessonAdditionDialog .lesson-addition-fields label { font-size: 12px; gap: 8px 4px; }
/* 表单已提供显式星号，压过共享 required 选择器，避免重复显示。 */
body.theme-light #academicLessonAdditionDialog .lesson-addition-fields label > span::after { content: none; }
body.theme-light #academicLessonAdditionDialog .lesson-addition-fields textarea { min-height: 72px; }

body.theme-light #academicStudentPasswordDialog { width: min(480px, calc(100vw - 32px)); }
body.theme-light #academicStudentPasswordDialog .academic-kicker { margin-bottom: 8px; font-size: 10px; font-weight: 500; letter-spacing: .16em; }
body.theme-light #academicStudentPasswordDialog header .academic-icon-button { width: 34px; height: 34px; padding: 0; font-size: 22px; }
body.theme-light #academicStudentPasswordDialog .academic-password-fields { gap: 18px; padding: 24px 26px; }
body.theme-light #academicStudentPasswordDialog .academic-password-fields label { font-size: 12px; gap: 8px; font-weight: 500; }
body.theme-light #academicStudentPasswordDialog .academic-password-fields input { min-height: 42px; padding: 10px 12px; }
body.theme-light #academicStudentPasswordDialog [data-password-message]:empty { display: none; }
@media (max-width: 540px) {
    body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 24px);
        border-radius: 12px;
    }
    body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) header { padding: 20px 18px 16px; }
    body.theme-light :is(#academicLessonAdditionDialog, #academicStudentPasswordDialog) footer { padding: 14px 18px; }
    body.theme-light #academicLessonAdditionDialog .lesson-addition-body,
    body.theme-light #academicStudentPasswordDialog .academic-password-fields { padding: 18px; }
    body.theme-light #academicLessonAdditionDialog .lesson-addition-fields { grid-template-columns: 1fr; gap: 12px; }
    body.theme-light #academicLessonAdditionDialog .lesson-addition-choices button { padding: 12px 28px 12px 12px; }
    body.theme-light #academicLessonAdditionDialog .lesson-addition-choices button::after { right: 9px; top: 15px; }
}
