/* 详情按内容自然排布，共用目录的纸面色彩，不改变作业、出勤及课时交互。 */
#learningCommunity .learning-community-shell:has(.learning-community-detail-workbench) {
    /* 网格默认 auto 最小值会继承表格宽度；把横向滚动留给表格容器。 */
    grid-template-columns: minmax(0, 1fr);
}

#learningCommunity .learning-community-role-view:has(.learning-community-detail-workbench) {
    min-width: 0;
}

#learningCommunity .learning-community-detail-workbench {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
    padding: 0 8px 32px;
}

#learningCommunity .learning-community-detail-top,
#learningCommunity .learning-community-detail-workbench.is-full-height .learning-community-detail-top {
    display: block;
    min-width: 0;
    min-height: 0;
    height: auto;
}

#learningCommunity .learning-community-detail-backbar {
    position: static;
    min-height: 30px;
    padding: 4px 0 0;
}

#learningCommunity .learning-community-back-button {
    min-width: 0;
    min-height: 30px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--community-muted);
    font-weight: 500;
    font-size: 13px;
}

#learningCommunity .learning-community-back-button:hover {
    color: var(--community-icon);
}

#learningCommunity .learning-community-assignment-key-info-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    margin: 0;
}

#learningCommunity .learning-community-assignment-key-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

#learningCommunity .learning-community-assignment-key-info > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

#learningCommunity .learning-community-assignment-key-info > div:last-child {
    padding-left: 52px;
    gap: 8px;
}

#learningCommunity .learning-community-assignment-key-info h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: var(--community-ink);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#learningCommunity .learning-community-assignment-key-info span,
#learningCommunity .learning-community-assignment-key-info strong {
    color: var(--community-muted);
    font-size: 13px;
    font-weight: 400;
}

#learningCommunity .learning-community-assignment-key-info .learning-community-overview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    height: 40px;
    border: 1px solid color-mix(in srgb, var(--community-icon) 15%, transparent);
    border-radius: 10px;
    background: var(--community-tint);
    color: var(--community-icon);
}

#learningCommunity .learning-community-overview-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

#learningCommunity .learning-community-board-editor {
    margin: 0;
    padding: 0;
    border: 0;
}

#learningCommunity .learning-community-board-editor[open] {
    grid-column: 1 / -1;
}

#learningCommunity .learning-community-board-editor > summary {
    gap: 7px;
    border-color: var(--community-border);
    background: var(--community-surface);
    color: var(--community-muted);
    font-weight: 500;
}

#learningCommunity .learning-community-board-editor[open] > form {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid var(--community-border);
    border-radius: 10px;
    background: var(--community-surface);
}

#learningCommunity .learning-community-assignment-board,
#learningCommunity .learning-community-student-board {
    min-height: 0;
    padding: 22px 24px;
    border: 1px solid var(--community-border);
    border-radius: 10px;
    background: var(--community-surface);
    box-shadow: none;
}

#learningCommunity .learning-community-assignment-board {
    display: block;
}

#learningCommunity .learning-community-board-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

#learningCommunity .learning-community-section-heading > span {
    width: 3px;
    height: 16px;
    background: var(--community-action);
    box-shadow: none;
}

#learningCommunity .learning-community-section-heading h2,
#learningCommunity .learning-community-members-heading h2 {
    margin: 0;
    color: var(--community-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

#learningCommunity .learning-community-detail-workbench .learning-community-board-action,
#learningCommunity .learning-community-detail-workbench .learning-community-mini-action {
    gap: 6px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--community-border);
    border-radius: 6px;
    background: transparent;
    color: var(--community-ink);
    box-shadow: none;
    font-size: 12px;
    font-weight: 500;
}

#learningCommunity .learning-community-detail-workbench .learning-community-board-action.btn-gh-primary {
    border-color: var(--community-action);
    background: var(--community-action);
    color: #fff;
}

#learningCommunity .learning-community-detail-workbench .learning-community-board-action:enabled:hover,
#learningCommunity .learning-community-detail-workbench .learning-community-mini-action:enabled:hover {
    border-color: var(--community-icon);
    background: var(--community-tint);
    color: var(--community-icon);
}

#learningCommunity .learning-community-detail-workbench button:focus-visible,
#learningCommunity .learning-community-detail-workbench summary:focus-visible {
    outline: 2px solid var(--community-accent);
    outline-offset: 3px;
}

#learningCommunity .learning-community-assignment-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 104px;
    padding: 24px;
    border: 1px dashed var(--community-border);
    border-radius: 8px;
    background: transparent;
    color: var(--community-muted);
    font-size: 13px;
}

#learningCommunity .learning-community-assignment-cards {
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 12px;
}

#learningCommunity .learning-community-assignment-card {
    grid-template-columns: 2px minmax(0, 1fr);
    min-height: 120px;
    padding: 16px;
    border-color: var(--community-border);
    background: var(--community-hover);
    box-shadow: none;
    transform: none;
}

#learningCommunity .learning-community-assignment-card:hover {
    border-color: var(--community-border-hover);
    box-shadow: 0 3px 12px rgba(50, 40, 25, .05);
    transform: none;
}

#learningCommunity .learning-community-assignment-card-accent {
    width: 2px;
    background: var(--community-icon);
    box-shadow: none;
    opacity: .65;
}

#learningCommunity .learning-community-assignment-title {
    color: var(--community-ink);
    font-size: 15px;
    font-weight: 600;
}

#learningCommunity .learning-community-assignment-description {
    color: var(--community-muted);
    font-size: 12px;
}

#learningCommunity .learning-community-assignment-progress-track {
    height: 4px;
    background: var(--community-border);
}

#learningCommunity .learning-community-assignment-progress-track span {
    background: var(--community-icon);
}

#learningCommunity .learning-community-assignment-progress strong {
    color: var(--community-muted);
    font-weight: 500;
}

#learningCommunity .learning-community-members-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

#learningCommunity .learning-community-members-heading > span {
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--community-tint);
    color: var(--community-icon);
    font-size: 12px;
}

#learningCommunity .learning-community-student-table {
    min-width: 640px;
    color: var(--community-ink);
    font-size: 13px;
}

#learningCommunity .learning-community-student-table th {
    padding: 10px 12px;
    background: var(--community-hover);
    color: var(--community-muted);
    font-size: 12px;
    font-weight: 400;
}

#learningCommunity .learning-community-student-table td {
    padding: 14px 12px;
    border-color: var(--community-border);
}

#learningCommunity .learning-community-student-name {
    color: var(--community-ink);
    font-weight: 600;
}

#learningCommunity .learning-community-student-meta {
    color: var(--community-muted);
}

#learningCommunity .learning-community-attendance-choice span {
    min-width: 36px;
    min-height: 28px;
    padding: 3px 7px;
    border-color: var(--community-border);
    background: transparent;
    color: var(--community-muted);
    font-weight: 400;
}

#learningCommunity .learning-community-attendance-choice input:checked + span {
    border-color: var(--community-icon);
    background: var(--community-tint);
    color: var(--community-icon);
    box-shadow: none;
}

#learningCommunity .learning-community-student-footer {
    padding-top: 18px;
}

#learningCommunity .learning-community-student-footer > div:first-child {
    color: var(--community-muted);
    font-size: 12px;
}

#learningCommunity .learning-community-student-footer strong {
    font-weight: 400;
}

@media (max-width: 640px) {
    #learningCommunity .learning-community-detail-workbench {
        gap: 20px;
        padding: 0 0 24px;
    }

    #learningCommunity .learning-community-assignment-key-info-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    #learningCommunity .learning-community-assignment-key-info h2 {
        font-size: 22px;
    }

    #learningCommunity .learning-community-assignment-board,
    #learningCommunity .learning-community-student-board {
        padding: 18px 16px;
    }

    #learningCommunity .learning-community-student-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    #learningCommunity .learning-community-assignment-card {
        transition: none;
    }
}

/* 资料和补课遮罩跨越侧栏层级。 */
.app-main-shell:has(#learningCommunity:not(.hidden) .learning-community-role-view:not(.hidden) :is([data-learning-student-profile-modal], [data-learning-student-makeup-modal])) {
    z-index: 110;
}

/* 资料弹窗沿用 OpenSTD 的暖纸色，将编辑区、页签和历史记录压成一张清晰的文稿。 */
#learningCommunity .learning-community-student-profile-dialog,
#learningCommunity .student-makeup-dialog {
    border: 1px solid var(--community-border);
    border-radius: 14px;
    background: var(--community-surface);
    color: var(--community-ink);
    box-shadow: 0 24px 64px rgb(31 27 21 / 22%);
}

#learningCommunity .learning-community-student-profile-dialog {
    display: flex;
    flex-direction: column;
    width: min(860px, 100%);
    max-height: calc(100vh - 48px);
    max-height: min(86dvh, 910px);
    padding: 0;
    overflow: hidden;
    --student-profile-gutter: clamp(16px, 3vw, 28px);
}

#learningCommunity .student-profile-header {
    flex: none;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 19px var(--student-profile-gutter) 14px;
}

#learningCommunity .student-profile-heading { flex: 1; min-width: 0; }

#learningCommunity .student-profile-heading h2,
#learningCommunity .student-makeup-dialog h2 {
    margin: 0;
    color: var(--community-ink);
    font-size: 20px;
    font-weight: 620;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#learningCommunity .student-profile-heading h2 {
    font-family: var(--openstd-font-display, inherit);
    font-size: clamp(19px, 3vw, 23px);
}

#learningCommunity .student-profile-heading small,
#learningCommunity .student-record-muted { color: var(--community-muted); font-size: 12px; }

#learningCommunity .student-profile-balance {
    display: flex;
    flex: none;
    align-items: baseline;
    gap: 7px;
    font-size: 12px;
    color: var(--community-muted);
}

#learningCommunity .student-profile-balance strong {
    color: var(--community-ink);
    font-size: 18px;
    font-weight: 620;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

#learningCommunity .student-profile-header .learning-community-modal-close,
#learningCommunity .student-makeup-dialog .learning-community-modal-close {
    flex: none;
    width: 32px;
    height: 32px;
    border: 1px solid var(--community-border);
    border-radius: 8px;
    color: var(--community-muted);
}

#learningCommunity .student-profile-nav {
    display: flex;
    flex: none;
    gap: 18px;
    overflow-x: auto;
    padding-inline: var(--student-profile-gutter);
    border-bottom: 1px solid var(--community-border);
}

#learningCommunity .student-profile-nav button {
    flex: none;
    padding: 7px 1px 9px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--community-muted);
    font-size: 13px;
    white-space: nowrap;
}

#learningCommunity .student-profile-nav button:hover { color: var(--community-ink); }

#learningCommunity .student-profile-nav button[aria-pressed="true"] {
    border-bottom-color: var(--community-action);
    color: var(--community-icon);
    font-weight: 620;
}

#learningCommunity .student-profile-nav button:focus-visible { outline-offset: -2px; }

#learningCommunity .student-profile-body {
    min-height: min(24dvh, 216px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 18px var(--student-profile-gutter) var(--student-profile-gutter);
}

#learningCommunity .learning-community-student-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 14px;
    padding: 0;
}

#learningCommunity .learning-community-student-profile-form > :is(.learning-community-dialog-actions,.learning-community-dialog-error,.learning-community-field-wide) {
    grid-column: 1 / -1;
}
#learningCommunity .learning-community-student-profile-form .learning-community-field-group { min-width: 0; }
#learningCommunity :is(.learning-community-student-profile-form,.student-record-editor) :is(input, select, textarea) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: 8px;
}

#learningCommunity :is(.learning-community-student-profile-form,.student-record-editor) select {
    min-height: 41px;
    padding: 8px 10px;
    border: 1px solid var(--community-border);
    background: var(--community-hover);
    color: var(--community-ink);
}

#learningCommunity .student-profile-draft-heading,
#learningCommunity .student-profile-draft-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

#learningCommunity .student-profile-draft-heading {
    justify-content: space-between;
    min-height: 30px;
}

#learningCommunity .student-profile-draft-heading label {
    color: var(--community-muted);
    font-size: 12px;
    font-weight: 600;
}

#learningCommunity .student-profile-quiet-button {
    padding: 4px 8px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--community-muted);
    font-size: 12px;
}

#learningCommunity .student-profile-polish {
    border-color: var(--community-border);
    color: var(--community-icon);
}

#learningCommunity .student-profile-quiet-button:hover:not(:disabled) { background: var(--community-hover); }
#learningCommunity .student-profile-quiet-button:disabled { opacity: .62; }

#learningCommunity .student-profile-draft textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.65;
}

#learningCommunity .learning-community-student-profile-dialog .learning-community-dialog-actions,
#learningCommunity .student-makeup-dialog .learning-community-dialog-actions { justify-content: flex-end; }

#learningCommunity .student-profile-actions {
    align-items: center;
    gap: 12px;
}

#learningCommunity .student-profile-notice {
    flex: none;
    white-space: nowrap;
    margin-right: auto;
    color: var(--community-muted);
    font-size: 12px;
}

#learningCommunity .student-profile-actions > .student-profile-save {
    flex: 0 0 auto;
    width: auto;
    min-height: 37px;
    border-radius: 8px;
    box-shadow: none;
}

#learningCommunity .learning-community-student-profile-form + .student-record-panel {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--community-border);
}

#learningCommunity .student-record-toolbar,
#learningCommunity .student-record-entry-meta,
#learningCommunity .student-record-pages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#learningCommunity .student-record-toolbar { min-height: 28px; margin-bottom: 8px; }
#learningCommunity .student-record-toolbar:not(:has(> *)) { display: none; }

#learningCommunity .student-record-toolbar h3,
#learningCommunity .student-record-editor h3 {
    margin: 0;
    color: var(--community-ink);
    font-size: 14px;
    font-weight: 650;
}

#learningCommunity .student-record-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    min-height: 58px;
    padding: 10px;
    color: var(--community-muted);
    font-size: 13px;
}

#learningCommunity .student-record-list { display: grid; gap: 0; }

#learningCommunity .student-record-entry {
    padding: 11px 0;
    border-bottom: 1px solid var(--community-border);
}

#learningCommunity .student-record-entry:last-child { border-bottom: 0; }

#learningCommunity .student-record-entry-meta { color: var(--community-muted); font-size: 12px; flex-wrap: wrap; }
#learningCommunity .student-record-entry p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#learningCommunity .student-record-editor {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--community-border);
    border-radius: 10px;
    background: var(--community-hover);
    padding: 13px 14px;
}
#learningCommunity .student-record-editor-competitions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#learningCommunity .student-record-editor-competitions > :is(h3,.student-record-actions) { grid-column: 1 / -1; }
#learningCommunity .student-record-actions { display: flex; gap: 6px; justify-content: flex-end; }
#learningCommunity .student-record-actions .btn-gh { white-space: nowrap; }
#learningCommunity .student-record-remove { color: var(--community-icon); }

#learningCommunity .student-record-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--community-border);
    border-radius: 8px;
}

#learningCommunity .student-record-table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
#learningCommunity .student-record-table-wrap th,
#learningCommunity .student-record-table-wrap td {
    padding: 9px 10px;
    text-align: left;
    border-bottom: 1px solid var(--community-border);
}

#learningCommunity .student-record-table-wrap th {
    background: var(--community-hover);
    color: var(--community-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

#learningCommunity .student-record-table-wrap tr:last-child td { border-bottom: 0; }
#learningCommunity .student-record-table-wrap td small { display: block; color: var(--community-muted); font-size: 11px; }
#learningCommunity .student-record-table-wrap td:first-child { white-space: nowrap; }

#learningCommunity .student-record-notice,
#learningCommunity .student-record-pages { margin: 8px 0; color: var(--community-muted); font-size: 13px; }

#learningCommunity .student-record-pages { justify-content: flex-end; }
#learningCommunity .student-makeup-dialog { width: min(460px, 100%); }
#learningCommunity .student-makeup-dialog p { margin: 12px 0; line-height: 1.6; }

@media (max-width: 600px) {
    #learningCommunity .learning-community-student-profile-modal { padding: 10px; }
    #learningCommunity .learning-community-student-profile-dialog { max-height: calc(100dvh - 20px); }
    #learningCommunity .student-profile-header { gap: 8px; }
    #learningCommunity .student-profile-balance { gap: 3px; flex-direction: column; }
    #learningCommunity .student-profile-nav { gap: 14px; }
    #learningCommunity .student-profile-body { min-height: 0; }
    #learningCommunity .student-record-editor-competitions { grid-template-columns: minmax(0, 1fr); }
}

/* 签到弹窗单独挂在 body 下，名单滚动时保留底部结算操作。 */
.class-checkin-overlay {
    --checkin-paper: #272723;
    --checkin-band: #2d2d28;
    --checkin-line: #48483f;
    --checkin-ink: #f3f0e8;
    --checkin-muted: #c0bdb3;
    --checkin-tile: #343430;
    --checkin-green: #9cdbb5;
    --checkin-green-tile: #243a2d;
    --checkin-green-line: #456b50;
    --checkin-accent: #af5437;
    --checkin-gutter: clamp(16px, 4vw, 28px);
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 12px;
    background: rgb(27 24 20 / 42%);
}
.theme-light .class-checkin-overlay {
    --checkin-paper: #fffefa;
    --checkin-band: #f7f5ef;
    --checkin-line: #dedbd2;
    --checkin-ink: #302e28;
    --checkin-muted: #68665d;
    --checkin-tile: #f3f2ee;
    --checkin-green: #246342;
    --checkin-green-tile: #eaf4eb;
    --checkin-green-line: #acceb4;
}
.class-checkin-dialog {
    display: flex;
    flex-direction: column;
    width: min(100%, 600px);
    min-width: 0;
    max-height: calc(100vh - 24px);
    max-height: min(82dvh, 740px);
    overflow: hidden;
    border: 1px solid var(--checkin-line);
    border-radius: 16px;
    background: var(--checkin-paper);
    box-shadow: 0 20px 64px rgb(24 22 18 / 22%);
    color: var(--checkin-ink);
}
.class-checkin-dialog-header,
.class-checkin-roster-header,
.class-checkin-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
}
.class-checkin-dialog-header {
    padding: 22px var(--checkin-gutter) 18px;
    border-bottom: 1px solid var(--checkin-line);
}
.class-checkin-heading { min-width: 0; }
.class-checkin-title {
    margin: 0;
    color: var(--checkin-ink);
    font-size: 23px;
    line-height: 1.35;
    font-weight: 650;
}
.class-checkin-community {
    margin: 4px 0 0;
    color: var(--checkin-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.class-checkin-close {
    flex: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--checkin-line);
    border-radius: 9px;
    background: transparent;
    color: var(--checkin-muted);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}
.class-checkin-close:hover { background: var(--checkin-tile); }
.class-checkin-roster-header {
    margin: 18px var(--checkin-gutter) 8px;
    font-size: 14px;
    font-weight: 600;
}
.class-checkin-progress {
    color: var(--checkin-muted);
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.class-checkin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
    gap: 10px;
    min-height: 0;
    padding: 4px var(--checkin-gutter) 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.class-checkin-card {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-width: 0;
    min-height: 74px;
    padding: 12px;
    border: 1px solid var(--checkin-line);
    border-radius: 9px;
    background: var(--checkin-tile);
    color: var(--checkin-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
}
.class-checkin-card:not(:disabled):hover { border-color: var(--checkin-muted); }
.class-checkin-card.is-checked {
    border-color: var(--checkin-green-line);
    background: var(--checkin-green-tile);
}
.class-checkin-card.is-checked:not(:disabled):hover { border-color: var(--checkin-green); }
.class-checkin-card-mark {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid var(--checkin-muted);
    border-radius: 50%;
}
.is-checked .class-checkin-card-mark {
    border-color: var(--checkin-green);
    background: var(--checkin-green);
    color: var(--checkin-paper);
}
.is-checked .class-checkin-card-mark::after {
    content: "";
    width: 9px;
    height: 5px;
    margin-top: -2px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}
.class-checkin-card-person { min-width: 0; }
.class-checkin-card-name, .class-checkin-card-id { display: block; overflow-wrap: anywhere; }
.class-checkin-card-name { font-size: 15px; font-weight: 650; }
.class-checkin-card-id, .class-checkin-card-status {
    color: var(--checkin-muted);
    font-size: 12px;
}
.class-checkin-card-id { margin-top: 3px; line-height: 1.4; }
.is-checked .class-checkin-card-status { color: var(--checkin-green); }
.class-checkin-footer {
    padding: 15px var(--checkin-gutter);
    border-top: 1px solid var(--checkin-line);
    background: var(--checkin-band);
}
.class-checkin-summary,
.class-checkin-error,
.class-checkin-hint {
    margin: 0;
    color: var(--checkin-muted);
    font-size: 13px;
    line-height: 1.55;
}
.class-checkin-error:not(:empty) { padding: 6px var(--checkin-gutter); color: #b04b32; }
.class-checkin-start, .class-checkin-confirm {
    flex: none;
    min-height: 40px;
    padding: 8px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--checkin-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.class-checkin-start:hover, .class-checkin-confirm:hover { background: #9d492f; }
.class-checkin-dialog button:disabled { opacity: .65; cursor: wait; }
.class-checkin-overlay button:focus-visible {
    outline: 2px solid var(--checkin-ink);
    outline-offset: 2px;
}
.class-checkin-student-dialog {
    width: min(100%, 360px);
    align-items: stretch;
    padding: 26px;
}
.class-checkin-student-text {
    margin: 10px 0 22px;
    color: var(--checkin-muted);
    font-size: 14px;
    line-height: 1.6;
}
@media (max-height: 480px) {
    .class-checkin-dialog { max-height: calc(100dvh - 24px); }
    .class-checkin-dialog-header, .class-checkin-footer { padding-block: 10px; }
    .class-checkin-roster-header { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .class-checkin-card { transition: none; }
}

#learningCommunity select[name="assignmentMode"] {
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--openstd-border);
    border-radius: 8px;
    background: var(--openstd-surface);
    color: var(--openstd-body);
}
