/* ================================================================
   问卷调查（survey.js / survey-admin.js）与成绩导出（grade-export.js）的样式 · 2026-10 新增
   沿用 styles.css 的变量：--primary 藏青 / --accent 金 / --secondary 墨绿 / --text / --text-light
   ================================================================ */

/* ---------------------------------------------------------------- 作答弹窗 */
.sv-overlay.modal-overlay {
    z-index: 10050;
    align-items: center;
    animation: svFade .18s ease-out;
}
.sv-overlay.sv-leaving { opacity: 0; transition: opacity .16s ease; }
@keyframes svFade { from { opacity: 0; } to { opacity: 1; } }

.sv-dialog {
    background: #fff;
    width: 100%;
    max-width: 640px;
    max-height: min(88vh, 900px);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(16, 28, 52, .28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    outline: none;
}
.sv-head {
    position: relative;
    padding: 22px 56px 16px 28px;
    border-bottom: 1px solid #e8edf3;
    border-top: 4px solid var(--accent, #c9a84c);
}
.sv-context { font-size: 13px; color: var(--text-light, #5a6a7a); margin: 0 0 6px; }
/* 2026-10：AI 问卷的“评价对象”（哪一份 AI 内容） */
.sv-target { display: inline-block; font-size: 12.5px; color: #2c4a7a; background: #eef3fa; border-radius: 6px; padding: 3px 9px; margin: 0 0 8px; line-height: 1.6; }
.sv-title { font-size: 19px; font-weight: 700; color: var(--primary, #1a2a4a); margin: 0; line-height: 1.4; }
.sv-desc { font-size: 14px; color: var(--text, #1e2a3a); margin: 8px 0 0; line-height: 1.7; }
.sv-meta { font-size: 12.5px; color: var(--text-light, #5a6a7a); margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sv-anon { padding: 1px 9px; border-radius: 10px; background: #eef4ef; color: var(--secondary, #2d5a4a); }
.sv-x {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 50%;
    border: none; background: transparent; color: var(--text-light, #5a6a7a);
    font-size: 15px; cursor: pointer;
}
.sv-x:hover { background: #f0f3f7; color: var(--primary, #1a2a4a); }

.sv-body { padding: 6px 28px 10px; overflow-y: auto; flex: 1 1 auto; overscroll-behavior: contain; }
.sv-q { padding: 18px 0 14px; border-bottom: 1px solid #f0f3f7; scroll-margin: 20px; }
.sv-q:last-child { border-bottom: none; }
.sv-q-head { display: flex; gap: 10px; align-items: flex-start; }
.sv-q-no {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    background: #eef2f8; color: var(--primary-light, #2c4a7a);
    font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.sv-q-title { font-size: 15px; font-weight: 600; color: var(--text, #1e2a3a); line-height: 1.6; }
.sv-req { color: #c0392b; margin-left: 3px; font-weight: 700; }
.sv-q-tip { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--text-light, #5a6a7a); }
.sv-q-hint { margin: 4px 0 0 34px; font-size: 13px; color: var(--text-light, #5a6a7a); }
.sv-q-err { margin: 6px 0 0 34px; font-size: 12.5px; color: #c0392b; min-height: 0; }
.sv-q-err:empty { display: none; }
.sv-q.sv-missing .sv-q-no { background: #fdecea; color: #c0392b; }

.sv-choices { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0 34px; }
.sv-choice {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 12px; border: 1.5px solid #e3e9f0; border-radius: 10px;
    cursor: pointer; font-size: 14px; line-height: 1.55; transition: border-color .12s, background .12s;
}
.sv-choice:hover { border-color: #c5d2e2; }
.sv-choice input { margin-top: 3px; accent-color: var(--primary, #1a2a4a); flex-shrink: 0; }
.sv-choice:has(input:checked) { border-color: var(--primary-light, #2c4a7a); background: #f4f7fc; }
.sv-choice:has(input:focus-visible) { outline: 2px solid var(--primary-light, #2c4a7a); outline-offset: 2px; }

/* 星级评分：整张弹窗里唯一用金色的地方 */
.sv-rating { display: flex; align-items: center; gap: 14px; margin: 10px 0 0 34px; flex-wrap: wrap; }
.sv-stars { display: inline-flex; gap: 4px; }
.sv-star {
    border: none; background: none; padding: 2px;
    font-size: 34px; line-height: 1; color: #dfe4ea; cursor: pointer;
    transition: transform .1s ease, color .1s ease;
}
.sv-star.on { color: var(--accent, #c9a84c); }
.sv-star.hover { color: #dcc37e; }
.sv-star:hover { transform: scale(1.08); }
.sv-star:focus-visible { outline: 2px solid var(--primary-light, #2c4a7a); outline-offset: 2px; border-radius: 6px; }
.sv-star-word { font-size: 14px; font-weight: 600; color: #8a6d1f; min-width: 4em; }
.sv-star-ends { display: flex; justify-content: space-between; max-width: 220px; margin: 2px 0 0 36px; font-size: 12px; color: var(--text-light, #5a6a7a); }

.sv-matrix-wrap { margin: 10px 0 0 34px; overflow-x: auto; }
.sv-matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sv-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;                        /* 必须不透明，否则下面行会透出来 */
    box-shadow: inset 0 -1px 0 #e8edf3;      /* border-collapse 下 sticky 元素的 border 不跟随，用内阴影画分隔线 */
    font-weight: 500; font-size: 12px; color: var(--text-light, #5a6a7a);
    padding: 6px 4px; text-align: center; vertical-align: bottom; min-width: 56px;
}
.sv-matrix thead th:first-child { min-width: 0; }
.sv-matrix-wrap { max-height: 60vh; overflow: auto; }
.sv-matrix tbody th { text-align: left; font-weight: 400; padding: 9px 10px 9px 0; line-height: 1.55; color: var(--text, #1e2a3a); }
.sv-matrix tbody tr { border-top: 1px solid #f0f3f7; }
.sv-matrix tbody tr:nth-child(odd) { background: #fafbfd; }
.sv-matrix td { text-align: center; padding: 4px; }
.sv-matrix td label { display: flex; justify-content: center; align-items: center; padding: 8px 4px; cursor: pointer; border-radius: 8px; }
.sv-matrix td label:hover { background: #eef2f8; }
.sv-matrix td input { width: 17px; height: 17px; accent-color: var(--primary, #1a2a4a); }
.sv-cell-text, .sv-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.sv-text {
    display: block; width: calc(100% - 34px); margin: 10px 0 0 34px;
    border: 1.5px solid #e3e9f0; border-radius: 10px; padding: 10px 12px;
    font: inherit; font-size: 14px; line-height: 1.6; resize: vertical; min-height: 76px;
}
.sv-text:focus { outline: none; border-color: var(--primary-light, #2c4a7a); }
.sv-count { text-align: right; font-size: 12px; color: var(--text-light, #5a6a7a); margin-top: 4px; }

.sv-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 28px 18px; border-top: 1px solid #e8edf3; background: #fbfcfd;
}
.sv-msg { font-size: 13px; color: var(--text-light, #5a6a7a); flex: 1 1 160px; }
.sv-msg.error { color: #c0392b; }
.sv-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.sv-btn {
    padding: 9px 18px; border-radius: 22px; border: 1.5px solid #d3dce7; background: #fff;
    color: var(--text, #1e2a3a); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.sv-btn:hover { border-color: var(--primary-light, #2c4a7a); }
.sv-btn:focus-visible { outline: 2px solid var(--primary-light, #2c4a7a); outline-offset: 2px; }
.sv-btn-quiet { border-color: transparent; color: var(--text-light, #5a6a7a); }
.sv-btn-primary { background: var(--primary, #1a2a4a); border-color: var(--primary, #1a2a4a); color: #fff; font-weight: 600; padding-left: 26px; padding-right: 26px; }
.sv-btn-primary:hover { background: var(--primary-light, #2c4a7a); }
.sv-btn:disabled { opacity: .55; cursor: default; }
.sv-hidden { display: none !important; }

.sv-thanks { padding: 46px 10px 40px; text-align: center; }
.sv-thanks-mark {
    display: inline-flex; width: 52px; height: 52px; border-radius: 50%;
    align-items: center; justify-content: center; font-size: 26px; font-weight: 700;
    background: #eef4ef; color: var(--secondary, #2d5a4a);
}
.sv-thanks p { margin-top: 14px; font-size: 15px; color: var(--text, #1e2a3a); }

@media (max-width: 640px) {
    .sv-overlay.modal-overlay { padding: 0; align-items: flex-end; }
    .sv-dialog { max-width: none; max-height: 94vh; border-radius: 18px 18px 0 0; }
    .sv-head { padding: 18px 50px 14px 18px; }
    .sv-body { padding: 4px 18px 8px; }
    .sv-foot { padding: 12px 18px 16px; }
    .sv-choices, .sv-rating, .sv-matrix-wrap, .sv-q-hint, .sv-q-err { margin-left: 0; }
    .sv-text { width: 100%; margin-left: 0; }
    .sv-star { font-size: 32px; }
    /* 矩阵在窄屏上改为"每个题项一块、选项横排成小块" */
    .sv-matrix thead { display: none; }
    .sv-matrix, .sv-matrix tbody, .sv-matrix tr, .sv-matrix th, .sv-matrix td { display: block; width: 100%; }
    .sv-matrix tbody tr { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; background: none !important; }
    .sv-matrix tbody th { padding: 0 0 4px; }
    .sv-matrix td { width: auto; padding: 0; }
    .sv-matrix td label { border: 1.5px solid #e3e9f0; padding: 6px 10px; gap: 6px; }
    .sv-matrix td label:has(input:checked) { border-color: var(--primary-light, #2c4a7a); background: #f4f7fc; }
    .sv-matrix td input { width: 15px; height: 15px; }
    .sv-cell-text { position: static; width: auto; height: auto; clip: auto; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .sv-overlay.modal-overlay, .sv-star, .sv-choice { animation: none; transition: none; }
    .sv-star:hover { transform: none; }
}

/* ---------------------------------------------------------------- 管理员端 */
.sva-page { max-width: 1080px; margin: 0 auto; padding-bottom: 40px; }
.sva-pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sva-pagehead h2 { font-size: 20px; font-weight: 600; color: var(--primary, #1a2a4a); margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sva-pagehead p { color: var(--text-light, #5a6a7a); font-size: 13.5px; margin: 4px 0 0; max-width: 64ch; }
.sva-back { border: none; background: none; color: var(--text-light, #5a6a7a); font: inherit; font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 8px; }
.sva-back:hover { color: var(--primary, #1a2a4a); }
.sva-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 18px; border-radius: 22px; border: 1.5px solid #d3dce7; background: #fff;
    color: var(--text, #1e2a3a); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.sva-btn:hover { border-color: var(--primary-light, #2c4a7a); }
.sva-btn-primary { background: var(--primary, #1a2a4a); border-color: var(--primary, #1a2a4a); color: #fff; font-weight: 600; }
.sva-btn-primary:hover { background: var(--primary-light, #2c4a7a); }
.sva-btn:disabled { opacity: .5; cursor: default; }
.sva-error { padding: 14px 16px; border-radius: 10px; background: #fdecea; color: #a5281b; font-size: 13.5px; }
.sva-warn { color: #9a6a12 !important; background: #fff6e5; padding: 6px 12px; border-radius: 8px; display: inline-block; }
.sva-help { font-size: 12.5px; color: var(--text-light, #5a6a7a); margin: 4px 0 0; }
.sva-empty { padding: 26px 22px; background: #fff; border: 1px dashed #d3dce7; border-radius: 14px; }
.sva-empty > p { color: var(--text-light, #5a6a7a); font-size: 14px; margin-bottom: 14px; }

.sva-status { font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.sva-status.draft { background: #eef1f4; color: #6f7c88; }
.sva-status.active { background: #e6f3ec; color: #22764a; }
.sva-status.paused { background: #fff3dd; color: #a8730f; }
.sva-status.closed { background: #f1eef4; color: #6e5a86; }
.sva-aud { font-size: 12px; padding: 2px 9px; border-radius: 10px; white-space: nowrap; font-weight: 500; }
.sva-aud.teacher { background: #eaf0f9; color: #2c4a7a; }
.sva-aud.student { background: #eaf4ef; color: #2d5a4a; }

.sva-table td { vertical-align: top; }
.sva-cell-main { min-width: 260px; }
.sva-row-title { font-weight: 600; color: var(--text, #1e2a3a); }
.sva-row-desc { font-size: 12.5px; color: var(--text-light, #5a6a7a); line-height: 1.6; margin-top: 3px; }
.sva-cell-num { white-space: nowrap; }
.sva-cell-num strong { font-size: 16px; color: var(--primary, #1a2a4a); }
.sva-cell-actions { text-align: right; white-space: nowrap; }
.sva-cell-actions .org-mini { margin-left: 4px; }
.sva-mini-go { color: #22764a !important; border-color: #9fd0b4 !important; }
.sva-more { display: inline-block; position: relative; }
.sva-more > summary { list-style: none; cursor: pointer; }
.sva-more > summary::-webkit-details-marker { display: none; }
.sva-more-menu {
    position: absolute; right: 0; top: calc(100% + 4px); z-index: 20;
    background: #fff; border: 1px solid #e3e9f0; border-radius: 10px; box-shadow: 0 10px 28px rgba(16, 28, 52, .14);
    padding: 4px; min-width: 120px; display: flex; flex-direction: column; text-align: left;
}
.sva-more-menu button { border: none; background: none; text-align: left; padding: 8px 12px; border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; }
.sva-more-menu button:hover { background: #f2f5f9; }
.sva-more-menu button.danger { color: #c0392b; }

.sva-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sva-tpl {
    text-align: left; border: 1.5px solid #e3e9f0; background: #fff; border-radius: 12px; padding: 14px 14px 12px;
    font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .12s;
}
.sva-tpl:hover, .sva-tpl:focus-visible { border-color: var(--primary-light, #2c4a7a); outline: none; }
.sva-tpl strong { font-size: 14.5px; color: var(--primary, #1a2a4a); }
.sva-tpl > span:last-child { font-size: 12.5px; color: var(--text-light, #5a6a7a); line-height: 1.6; }

/* 编辑器 */
.sva-section { background: #fff; border: 1px solid #e3e9f0; border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.sva-section h3 { font-size: 15.5px; font-weight: 600; color: var(--primary, #1a2a4a); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sva-section h3 em, .sva-label em { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--text-light, #5a6a7a); }
.sva-count-tag { font-size: 12px; font-weight: 500; background: #eef2f8; color: #2c4a7a; padding: 1px 9px; border-radius: 10px; }
.sva-label { display: block; font-size: 13px; font-weight: 600; color: var(--text, #1e2a3a); margin: 10px 0 5px; }
.sva-field { margin-top: 10px; }
.sva-input {
    width: 100%; border: 1.5px solid #e0e6ee; border-radius: 9px; padding: 8px 11px;
    font: inherit; font-size: 13.5px; color: var(--text, #1e2a3a); background: #fff;
}
.sva-input:focus { outline: none; border-color: var(--primary-light, #2c4a7a); }
textarea.sva-input { resize: vertical; line-height: 1.6; }
.sva-title-input { font-size: 16px; font-weight: 600; }
.sva-num { width: 76px; display: inline-block; padding: 6px 8px; }
.sva-inline { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 10px; font-size: 13.5px; }
.sva-inline label { display: inline-flex; align-items: center; gap: 6px; }
.sva-inline .sva-input:not(.sva-num) { width: auto; min-width: 140px; }
.sva-inline .sva-grow { flex: 1 1 260px; }
.sva-inline .sva-grow .sva-input { flex: 1; }
.sva-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sva-anon-box { display: flex; align-items: flex-end; padding-bottom: 6px; }
.sva-check, .sva-radio { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 8px; cursor: pointer; }
.sva-check input, .sva-radio input { accent-color: var(--primary, #1a2a4a); }
.sva-seg { display: inline-flex; border: 1.5px solid #e0e6ee; border-radius: 22px; padding: 3px; gap: 2px; }
.sva-seg label { padding: 6px 16px; border-radius: 18px; cursor: pointer; font-size: 13.5px; display: inline-flex; align-items: center; }
.sva-seg label input { position: absolute; opacity: 0; pointer-events: none; }
.sva-seg label.on { background: var(--primary, #1a2a4a); color: #fff; }
.sva-seg label:has(input:disabled) { cursor: not-allowed; opacity: .7; }
.sva-seg label:has(input:focus-visible) { outline: 2px solid var(--primary-light, #2c4a7a); }
.sva-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sva-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 16px;
    border: 1.5px solid #e0e6ee; font-size: 13px; cursor: pointer; user-select: none;
}
.sva-chip input { accent-color: var(--primary, #1a2a4a); margin: 0; }
.sva-chip.on { border-color: var(--primary-light, #2c4a7a); background: #f2f6fc; }

.sva-q { border: 1px solid #e8edf3; border-radius: 12px; padding: 12px 14px 14px; margin-bottom: 10px; background: #fcfdfe; }
.sva-q-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sva-q .sva-q-no {
    width: 24px; height: 24px; border-radius: 50%; background: var(--primary, #1a2a4a); color: #fff;
    font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.sva-q-type { width: auto; padding: 5px 10px; }
.sva-q-top .sva-check { margin-top: 0; }
.sva-q-tools { margin-left: auto; display: inline-flex; gap: 2px; }
.sva-q-tools button { border: 1px solid transparent; background: none; width: 30px; height: 28px; border-radius: 7px; cursor: pointer; color: var(--text-light, #5a6a7a); font-size: 13px; }
.sva-q-tools button:hover:not(:disabled) { border-color: #d3dce7; color: var(--primary, #1a2a4a); background: #fff; }
.sva-q-tools button:disabled { opacity: .3; cursor: default; }
.sva-q-tools button.danger:hover { color: #c0392b; border-color: #f0c4be; }
.sva-q-title { font-weight: 600; margin-bottom: 6px; }
.sva-q-hint { font-size: 13px; }
.sva-presets { margin-top: 6px; font-size: 12.5px; color: var(--text-light, #5a6a7a); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sva-add-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.sva-task-filter { margin-bottom: 6px; max-width: 320px; }
.sva-task-list { max-height: 260px; overflow-y: auto; border: 1px solid #e8edf3; border-radius: 10px; padding: 4px; }
.sva-task-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; cursor: pointer; }
.sva-task-row:hover { background: #f4f7fb; }
.sva-task-row input { accent-color: var(--primary, #1a2a4a); }
.sva-task-row em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--text-light, #5a6a7a); text-align: right; }
.sva-task-row.orphan em { color: #a8730f; }

.sva-trigger-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 6px; }
.sva-trigger {
    border: 1.5px solid #e0e6ee; border-radius: 12px; padding: 11px 13px; cursor: pointer;
    display: flex; flex-direction: column; gap: 2px;
}
.sva-trigger input { position: absolute; opacity: 0; pointer-events: none; }
.sva-trigger strong { font-size: 14px; color: var(--text, #1e2a3a); }
.sva-trigger span { font-size: 12.5px; color: var(--text-light, #5a6a7a); }
.sva-trigger.on { border-color: var(--primary, #1a2a4a); background: #f2f6fc; box-shadow: inset 3px 0 0 var(--accent, #c9a84c); }
.sva-trigger:has(input:focus-visible) { outline: 2px solid var(--primary-light, #2c4a7a); outline-offset: 2px; }

.sva-footbar {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
    background: rgba(255, 255, 255, .97); border: 1px solid #e3e9f0; border-radius: 14px;
    padding: 12px 16px; box-shadow: 0 -6px 20px rgba(16, 28, 52, .06);
}
.sva-summary { flex: 1 1 360px; font-size: 13px; color: var(--text, #1e2a3a); line-height: 1.7; margin: 0; }
.sva-summary strong { color: var(--primary, #1a2a4a); }
.sva-foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 结果 */
.sva-stat-line { font-size: 13.5px; color: var(--text-light, #5a6a7a); margin: -6px 0 14px; }
.sva-stat-line strong { font-size: 17px; color: var(--primary, #1a2a4a); }
.sva-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; font-size: 13.5px; }
.sva-filters label { display: inline-flex; align-items: center; gap: 6px; }
.sva-filters .sva-input { width: auto; min-width: 140px; }
.sva-rq { background: #fff; border: 1px solid #e3e9f0; border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
.sva-rq-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.sva-rq-head .sva-q-no {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #eef2f8; color: #2c4a7a;
    font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.sva-rq-title { font-size: 15px; font-weight: 600; color: var(--text, #1e2a3a); line-height: 1.55; }
.sva-bar { display: grid; grid-template-columns: minmax(120px, 30%) 1fr 96px; align-items: center; gap: 12px; padding: 5px 0; font-size: 13.5px; }
.sva-bar-label { line-height: 1.45; }
.sva-bar-track { height: 10px; border-radius: 5px; background: #eef2f6; overflow: hidden; }
.sva-bar-fill { display: block; height: 100%; background: var(--primary-light, #2c4a7a); border-radius: 5px; }
.sva-bar-val { text-align: right; font-variant-numeric: tabular-nums; }
.sva-bar-val em { font-style: normal; color: var(--text-light, #5a6a7a); margin-left: 6px; font-size: 12.5px; }
.sva-rating-avg { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.sva-avg-num { font-size: 30px; font-weight: 700; color: var(--primary, #1a2a4a); font-variant-numeric: tabular-nums; }
.sva-avg-stars { color: var(--accent, #c9a84c); font-size: 20px; letter-spacing: 2px; }
.sva-avg-stars em { color: #dfe4ea; font-style: normal; }
.sva-mtx-wrap { overflow-x: auto; }
.sva-mtx { border-collapse: collapse; width: 100%; font-size: 13px; }
.sva-mtx th, .sva-mtx td { border-bottom: 1px solid #eef2f6; padding: 7px 8px; text-align: center; }
.sva-mtx thead th { font-weight: 500; color: var(--text-light, #5a6a7a); font-size: 12px; vertical-align: bottom; }
.sva-mtx thead th em { display: block; font-style: normal; font-size: 11px; color: #9aa7b4; }
.sva-mtx tbody th { text-align: left; font-weight: 400; min-width: 200px; line-height: 1.5; }
.sva-mtx td { background: rgba(44, 74, 122, calc(var(--p, 0) * .55)); font-variant-numeric: tabular-nums; }
.sva-mtx td span { display: block; font-weight: 600; }
.sva-mtx td em { font-style: normal; font-size: 11px; opacity: .8; }
.sva-mtx td[style*="--p:0."] { color: var(--text, #1e2a3a); }
.sva-mtx td.sva-mtx-mean { background: none; font-weight: 700; color: var(--primary, #1a2a4a); }
.sva-mtx td:last-child { background: none; }
.sva-text-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.sva-text-list li { padding: 10px 0; border-bottom: 1px solid #f0f3f7; }
.sva-text-list li p { font-size: 14px; line-height: 1.7; margin: 0; white-space: pre-wrap; }
.sva-text-list li span { font-size: 12px; color: var(--text-light, #5a6a7a); }

@media (max-width: 720px) {
    .sva-two { grid-template-columns: 1fr; }
    .sva-bar { grid-template-columns: 1fr 72px; }
    .sva-bar-label { grid-column: 1 / -1; }
    .sva-cell-actions { white-space: normal; }
}

/* ---------------------------------------------------------------- 成绩导出弹窗（grade-export.js） */
.ge-head { font-size: 13.5px; color: var(--text, #1e2a3a); line-height: 1.7; margin-bottom: 12px; }
.ge-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; }
.ge-count { color: var(--text-light, #5a6a7a); }
.ge-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13.5px; }
.ge-check input, .ge-item input { accent-color: var(--primary, #1a2a4a); }
.ge-list { max-height: 320px; overflow-y: auto; border: 1px solid #e3e9f0; border-radius: 10px; padding: 4px; }
.ge-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.ge-item:hover { background: #f4f7fb; }
.ge-name { flex: 1; min-width: 0; }
.ge-draft { font-style: normal; font-size: 11px; margin-left: 6px; padding: 1px 7px; border-radius: 8px; background: #eef1f4; color: #6f7c88; }
.ge-meta { font-size: 12px; color: var(--text-light, #5a6a7a); white-space: nowrap; }
.ge-opts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.ge-note { font-size: 12.5px; color: var(--text-light, #5a6a7a); line-height: 1.7; margin-top: 10px; }
.org-btn.ge-primary { background: var(--primary, #1a2a4a); color: #fff; border-color: var(--primary, #1a2a4a); }
.org-btn.ge-primary:disabled { opacity: .6; }

/* 2026-10：问卷管理 · AI 相关设置与结果 */
.sva-sub { margin: 8px 0 0 22px; padding: 10px 12px; border-left: 3px solid #e3eaf3; background: #fafcfe; border-radius: 0 8px 8px 0; }
.sva-sub .sva-radio, .sva-sub .sva-check { margin-top: 4px; }
.sva-ai-tag { display: inline-block; font-size: 11.5px; color: #2c4a7a; background: #eef3fa; border-radius: 4px; padding: 0 6px; margin-left: 4px; }
