* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f6fa;
    color: #222;
}
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 48px;
    background: #1677ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.25);
}
.app-header-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.modal-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}
.modal-select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    background: #fff;
}
.page { padding: 12px; max-width: 720px; margin: 0 auto; }
.card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
}
.header-back {
    border: 0;
    background: transparent;
    color: #1677ff;
    font-size: 14px;
    padding: 4px 2px;
}
.view-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}
.view-header-placeholder {
    width: 44px;
}
.menu-module {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid #e6ebf2;
    background: #fff;
    color: #1f2d3d;
    text-align: left;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}
.menu-module:last-child { margin-bottom: 0; }
.menu-module-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #1677ff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.menu-module-text {
    min-width: 0;
    flex: 1;
}
.menu-module-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 3px;
}
.menu-module-desc {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
.menu-module-arrow {
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    margin-left: 4px;
}
.menu-module:active {
    transform: translateY(1px);
}
h1 { margin: 0 0 8px; font-size: 20px; }
.muted { color: #666; font-size: 13px; line-height: 1.5; }
#examInfo {
    line-height: 1.9;
    font-size: 14px;
}
.search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.search-row input {
    flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 10px; font-size: 14px;
}
button {
    border: 0; border-radius: 8px; padding: 10px 14px; background: #1677ff; color: #fff; font-size: 14px;
}
button:disabled { background: #c7ccd8; color: #fff; }
button.light { background: #e9ecf2; color: #333; }
.goScoreBtn.light { background: #c7ccd8; color: #fff; }
.list { list-style: none; padding: 0; margin: 0; }
.list li {
    padding: 10px 12px;
    border: 1px solid #edf1f6;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.list li:last-child { margin-bottom: 0; }
.user-entry {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}
.user-entry strong {
    font-size: 15px;
    color: #0f172a;
    line-height: 1.4;
}
.student-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 84px;
}
.student-meta { font-size: 12px; color: #6b7280; margin-top: 4px; line-height: 1.4; }
.status { font-size: 12px; color: #0f9d58; text-align: center; margin-bottom: 4px; width: 100%; }
.status.todo { color: #999; }
.hidden { display: none; }
.student-info { margin-bottom: 10px; line-height: 1.6; }
.selected-user-wrap {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.selected-user-tag {
    display: inline-block;
    background: #eef5ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
}
.topic-item {
    padding: 10px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 8px;
}
.topic-title { font-size: 14px; margin-bottom: 8px; }
.topic-score {
    width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 8px; font-size: 14px;
}
.batch-topic-score {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    appearance: none;
}
.topic-score:disabled {
    background: #f3f4f6;
    color: #888;
    border-color: #e3e5e8;
}
.batch-topic-score:disabled {
    background: #f3f4f6;
    color: #888;
    border-color: #e3e5e8;
}
.label { display: block; margin: 10px 0 6px; font-size: 14px; }
.form-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    appearance: none;
}
.form-input:disabled {
    background: #f3f4f6;
    color: #888;
    border-color: #e3e5e8;
}
.sign-wrap {
    border: 1px dashed #bbb; border-radius: 8px; overflow: hidden; background: #fff;
}
#signCanvas { display: block; width: 100%; height: 140px; touch-action: none; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; }
#readonlyTip { margin-bottom: 8px; color: #1677ff; }
.readonly-signature {
    margin-top: 12px;
}
.readonly-signature-img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    display: block;
    margin-top: 8px;
}
.detail-header-row { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; }
.score-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}
.score-table th,
.score-table td {
    border: 1px solid #e5e7eb;
    padding: 8px;
    vertical-align: top;
}
.score-table th { background: #f8fafc; white-space: nowrap; }
.line-score-input {
    width: 88px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px;
}