.select-container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.exam-select-hidden { display: none; }

.welcome-section { text-align: center; margin-bottom: 44px; }
.welcome-logo { display: block; width: min(280px, 72vw); height: auto; object-fit: contain; margin: 0 auto 18px; }
.welcome-logo-tenant { width: 82px; max-height: 82px; }
.welcome-section h1 { font-size: 30px; color: var(--color-primary); margin-bottom: 8px; font-weight: 700; }
.subtitle { font-size: 17px; color: var(--color-text-secondary); margin: 0; }

.limit-warning { background: #DC2626; color: white; text-align: center; padding: 14px 20px; border-radius: 10px; font-size: 16px; font-weight: 600; margin-bottom: 28px; }

/* Tab 面板 */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeSlideUp .2s ease; }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* 作业区域 */
.hw-title { font-size: 20px; color: var(--color-text-primary); margin-bottom: 16px; font-weight: 700; }
.hw-subject-filter-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hw-subject-filter-btn {
    padding: 7px 14px; border: 1px solid #dbe4df; border-radius: 999px; background: #fff;
    color: #4b5563; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.hw-subject-filter-btn:hover { border-color: #8ec7ae; background: #f7fbf8; }
.hw-subject-filter-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* 日历 + 仪表盘 横排 */
.hw-top-row {
    display: flex; gap: 16px; margin-bottom: 16px; align-items: flex-start;
}

/* 学生日历组件 */
.hw-cal-widget {
    background: white; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 14px 16px; width: 320px; flex-shrink: 0;
}
.hw-cal-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hw-cal-title { font-size: 15px; font-weight: 600; color: var(--color-text-primary); min-width: 100px; text-align: center; }
.hw-cal-nav {
    width: 30px; height: 30px; border: 1px solid #e5e7eb; border-radius: 6px;
    background: white; font-size: 18px; color: #475569; cursor: pointer;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.hw-cal-nav:hover { background: #F1F5F9; border-color: #CBD5E1; }
.hw-cal-today-btn {
    margin-left: auto; padding: 5px 12px; border: 1px solid #e5e7eb;
    border-radius: 6px; background: white; font-size: 13px; color: #475569; cursor: pointer;
}
.hw-cal-today-btn:hover { background: #F1F5F9; border-color: #CBD5E1; }
.hw-cal-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    text-align: center; font-size: 12px; color: #94A3B8; margin-bottom: 4px;
}
.hw-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.hw-cal-day {
    position: relative; text-align: center; padding: 6px 0; font-size: 13px;
    border-radius: 6px; cursor: pointer; color: #334155; line-height: 1.4;
}
.hw-cal-day:hover { background: #F1F5F9; }
.hw-cal-day.other-month { color: #CBD5E1; }
.hw-cal-day.today { font-weight: 700; }
.hw-cal-day.today::after {
    content: ''; display: block; width: 4px; height: 4px; border-radius: 50%;
    background: var(--color-primary); margin: 1px auto 0;
}
.hw-cal-day.selected { background: var(--color-primary); color: white; font-weight: 600; }
.hw-cal-day.selected:hover { background: var(--color-primary); opacity: .9; }
.hw-cal-day.selected.today::after { background: white; }
.hw-cal-badge {
    position: absolute; top: 1px; right: 2px; min-width: 16px; height: 16px;
    padding: 0 4px; border-radius: 8px;
    font-size: 10px; font-weight: 600; line-height: 16px; text-align: center;
}
.hw-cal-badge-done { background: #16a34a; color: white; }
.hw-cal-badge-todo { background: #f59e0b; color: white; }
.hw-cal-day.selected .hw-cal-badge-done { background: white; color: #16a34a; }
.hw-cal-day.selected .hw-cal-badge-todo { background: white; color: #f59e0b; }
.hw-cal-overdue { background: #FEF2F2; }
.hw-cal-overdue:hover { background: #FEE2E2; }
.hw-cal-day.selected.hw-cal-overdue { background: var(--color-primary); }

/* 日历下方练习记录面板 */
.pcal-records {
    border-top: 1px solid #e5e7eb; margin-top: 10px; padding-top: 10px;
}
.pcal-records-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px; font-weight: 600; color: var(--color-text-primary);
}
.pcal-records-close {
    width: 22px; height: 22px; border: none; background: #f1f5f9;
    border-radius: 4px; font-size: 14px; color: #64748B; cursor: pointer;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.pcal-records-close:hover { background: #e2e8f0; }
.pcal-records-list { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.pcal-record-item {
    display: flex; align-items: center; gap: 8px; padding: 6px 8px;
    border-radius: 6px; font-size: 13px; cursor: pointer; transition: background .12s;
}
.pcal-record-item:hover { background: #f0fdf4; }
.pcal-record-item .hw-type-tag { font-size: 10px; padding: 1px 6px; }
.pcal-record-topic { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.pcal-record-score { font-size: 12px; font-weight: 600; color: #16a34a; white-space: nowrap; }
.pcal-record-status { font-size: 11px; color: #94A3B8; white-space: nowrap; }
.pcal-records-empty { font-size: 12px; color: #94A3B8; text-align: center; padding: 8px 0; }

.hw-columns { display: flex; gap: 16px; margin-bottom: 32px; align-items: flex-start; }
.hw-col {
    flex: 1; min-width: 0; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 10px; overflow: hidden;
}
.hw-col-header {
    padding: 10px 14px; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #e5e7eb;
}
.hw-col-header-todo { background: #FEF2F2; color: #991B1B; flex-wrap: wrap; }
.hw-col-header-done { background: #F0FDF4; color: #166534; }
.hw-filter-btns { display: flex; gap: 4px; margin-left: auto; }
.hw-filter-btn {
    padding: 2px 8px; border: 1px solid #e5e7eb; border-radius: 4px;
    font-size: 11px; font-weight: 600; cursor: pointer;
    background: #fff; color: #64748B; transition: all .15s; white-space: nowrap;
}
.hw-filter-btn:hover { border-color: #94A3B8; background: #f8fafc; }
.hw-filter-btn.active { background: #991B1B; color: #fff; border-color: #991B1B; }
.hw-filter-btn.hw-filter-overdue.active { background: #DC2626; border-color: #DC2626; }
.hw-filter-btn.hw-filter-active.active { background: #1E40AF; border-color: #1E40AF; }
.hw-col-icon { font-size: 15px; }
.hw-col-count { font-size: 12px; font-weight: 600; opacity: .7; margin-left: 2px; }
.hw-col-empty { text-align: center; color: #94A3B8; padding: 24px 14px; font-size: 13px; }
.hw-overdue-divider {
    font-size: 11px; font-weight: 700; color: #DC2626; padding: 6px 14px 2px;
    background: #FFF5F5;
}
.hw-subject-divider {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px; background: #f8fafc;
    border-top: 1px solid #eef2f7; font-size: 12px; font-weight: 800; color: #334155;
}
.hw-subject-divider:first-child { border-top: none; }
.hw-subject-badge { flex-shrink: 0; }
.hw-empty { text-align: center; color: var(--color-text-muted); padding: 24px 0; font-size: 14px; }

.hw-list { display: flex; flex-direction: column; gap: 0; }
.hw-card {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.hw-card:hover { background: #f8fdf9; }
.hw-card-link { cursor: pointer; }
.hw-card-link:hover { background: #f0fdf4; }
.hw-package-card { cursor: pointer; }
.hw-card-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
/* 题型颜色标签 */
.hw-type-tag {
    display: inline-block; padding: 3px 8px; border-radius: 5px;
    font-size: 12px; font-weight: 700; flex-shrink: 0; letter-spacing: .3px;
}
/* 托福阅读 - 蓝底 */
.hw-type-RAP { background: #dbeafe; color: #1e40af; }
.hw-type-CTW { background: #dbeafe; color: #be123c; }
.hw-type-RDP { background: #dbeafe; color: #7e22ce; }
/* 托福听力 - 紫底 */
.hw-type-ACT { background: #ede9fe; color: #1e40af; }
.hw-type-CON { background: #ede9fe; color: #be123c; }
.hw-type-ANN { background: #ede9fe; color: #166534; }
.hw-type-LCR { background: #ede9fe; color: #b45309; }
.hw-type-ACP { background: #e0f2fe; color: #0369a1; }
.hw-type-ACD { background: #ffedd5; color: #ea580c; }
/* 托福写作 - 橙底 */
.hw-type-WAD { background: #fdba74; color: #1e40af; }
.hw-type-WAE { background: #fdba74; color: #be123c; }
.hw-type-BAS { background: #fdba74; color: #7e22ce; }
/* 托福口语 - 青底 */
.hw-type-LAR { background: #99f6e4; color: #1e40af; }
.hw-type-TAR { background: #99f6e4; color: #be123c; }
/* 雅思阅读 - 黄底 */
.hw-type-IR1 { background: #fef3c7; color: #1e40af; }
.hw-type-IR2 { background: #fef3c7; color: #be123c; }
.hw-type-IR3 { background: #fef3c7; color: #7e22ce; }
/* 雅思听力 - 粉底 */
.hw-type-IL1 { background: #fce7f3; color: #1e40af; }
.hw-type-IL2 { background: #fce7f3; color: #166534; }
.hw-type-IL3 { background: #fce7f3; color: #b45309; }
.hw-type-IL4 { background: #fce7f3; color: #7e22ce; }
/* 雅思写作 - 绿底 */
.hw-type-IW { background: #dcfce7; color: #15803d; }
.hw-type-IW1 { background: #86efac; color: #1e40af; }
.hw-type-IW2 { background: #86efac; color: #be123c; }
/* 雅思口语 - 灰蓝底 */
.hw-type-INI { background: #c7d2fe; color: #be123c; }
.hw-type-LTD { background: #c7d2fe; color: #7e22ce; }
.hw-type-ORL_P1 { background: #e0e7ff; color: #4338ca; }
.hw-type-TOEFL_LCR { background: #ede9fe; color: #b45309; }
.hw-type-TOEFL_MOCK { background: #dcfce7; color: #166534; }
.hw-type-IELTS_MOCK { background: #ccfbf1; color: #0f766e; }
.hw-type-SAT_MOCK { background: #e0f2fe; color: #075985; }
.hw-type-SAT_PRACTICE { background: #dbeafe; color: #1d4ed8; }
.hw-type-LLK { background: #f0e6ff; color: #7c3aed; }
.hw-type-VEX { background: #e0f2fe; color: #0284c7; }
.hw-type-VOCAB { background: #ecfdf5; color: #047857; }
.hw-type-IELTS_L { background: #fef3c7; color: #92400e; }
.hw-type-TOEFL_C { background: #dbeafe; color: #1e40af; }
.hw-type-TOEFL_L { background: #e0e7ff; color: #4338ca; }
.hw-type-LANG { background: #dcfce7; color: #166534; }
.hw-type-WP_WA { background: #fef3c7; color: #b45309; }
.hw-type-WP_WI { background: #e0f2fe; color: #0369a1; }
.hw-type-WP_WAD { background: #fef3c7; color: #b45309; }
.hw-type-WP_WAE { background: #e0f2fe; color: #0369a1; }
.hw-type-WP_C { background: #dcfce7; color: #16a34a; }
.hw-type-WP_CLOZE { background: #dcfce7; color: #16a34a; }
.hw-type-WP_GAP { background: #ffedd5; color: #ea580c; }
.hw-type-WP_TYPING { background: #e0e7ff; color: #4338ca; }
.hw-type-WP_W2 { background: #ede9fe; color: #7c3aed; }
.hw-type-WP_TK { background: #ffedd5; color: #ea580c; }
.hw-type-WP_RE { background: #fce7f3; color: #db2777; }
.hw-type-PACKAGE { background: #f8fafc; color: #334155; border: 1px solid #cbd5e1; }

/* 仪表盘 */
.hw-dashboard {
    flex: 1; min-width: 0; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 16px 18px;
}
.hw-dash-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.hw-dash-title { font-size: 14px; font-weight: 700; color: var(--color-text-primary); }
.hw-dash-range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hw-dash-date {
    padding: 4px 8px; border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 12px; color: #334155; outline: none; background: #fff;
}
.hw-dash-date:focus { border-color: var(--color-primary); }
.hw-dash-sep { font-size: 12px; color: #94A3B8; }
.hw-dash-query {
    padding: 4px 12px; border: 1px solid var(--color-primary); border-radius: 6px;
    background: var(--color-primary); color: #fff; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: opacity .15s;
}
.hw-dash-query:hover { opacity: .85; }
.hw-dash-reset {
    padding: 4px 10px; border: 1px solid #e5e7eb; border-radius: 6px;
    background: #fff; color: #64748B; font-size: 12px; cursor: pointer;
}
.hw-dash-reset:hover { background: #f1f5f9; border-color: #CBD5E1; }
.hw-dash-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.hw-dash-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: #F8FAFC; border: 1px solid #f1f5f9; border-radius: 10px;
    min-width: 0; width: calc(50% - 5px);
}
.hw-dash-item .hw-type-tag { font-size: 11px; padding: 2px 7px; }
.hw-dash-nums { font-size: 13px; color: #475569; line-height: 1.5; }
.hw-dash-nums strong { font-size: 18px; font-weight: 700; color: var(--color-text-primary); }
.hw-dash-avg { font-size: 12px; color: #94A3B8; margin-top: 1px; }
.hw-dash-empty { font-size: 13px; color: #94A3B8; text-align: center; padding: 16px 0; }
.hw-info { flex: 1; min-width: 0; }
.hw-primary-line {
    font-size: 14px; font-weight: 600; color: var(--color-text-primary);
    line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hw-primary-line-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hw-primary-line-text {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.hw-secondary-line {
    font-size: 12px; color: #94A3B8; margin-top: 2px; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hw-secondary-line .hw-sep { margin: 0 4px; opacity: .5; }
.hw-redo-tag {
    display: inline-block; padding: 1px 6px; border-radius: 4px;
    font-size: 11px; font-weight: 600; background: #FEE2E2; color: #991B1B;
    margin-left: 6px; vertical-align: middle;
}
.hw-progress-tag {
    display: inline-block; padding: 1px 6px; border-radius: 4px;
    font-size: 11px; font-weight: 600; background: #DBEAFE; color: #1E40AF;
    margin-left: 6px; vertical-align: middle;
}
.hw-score-tag {
    display: inline-block; padding: 1px 6px; border-radius: 4px;
    font-size: 11px; font-weight: 600; background: #DCFCE7; color: #166534;
    margin-left: 6px; vertical-align: middle;
}
.hw-btn {
    padding: 6px 14px; background: var(--color-primary); color: white;
    border: none; border-radius: 6px; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap; flex-shrink: 0; text-decoration: none;
    transition: background .15s;
}
.hw-btn:hover { background: var(--color-primary-dark); }
.hw-btn-start {
    background: var(--color-primary); color: #fff;
}
.hw-btn-start:hover { background: var(--color-primary-dark); }
.hw-btn-continue {
    background: #2563EB; color: #fff;
}
.hw-btn-continue:hover { background: #1D4ED8; }
.hw-btn-redo {
    background: #DC2626; color: #fff;
}
.hw-btn-redo:hover { background: #B91C1C; }
.hw-btn-view {
    background: #0F766E; color: #fff;
}
.hw-btn-view:hover { background: #115E59; }
.hw-package-modal {
    position: fixed; inset: 0; z-index: 1000;
}
.hw-package-modal-backdrop {
    position: absolute; inset: 0; background: rgba(15, 23, 42, .38);
}
.hw-package-modal-panel {
    position: absolute; top: 24px; right: 24px; bottom: 24px;
    width: min(720px, calc(100vw - 48px)); background: #fff;
    border-radius: 10px; box-shadow: 0 20px 48px rgba(15, 23, 42, .22);
    display: flex; flex-direction: column; overflow: hidden;
}
.hw-package-modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-bottom: 1px solid #e5e7eb;
}
.hw-package-modal-head h3 {
    margin: 0; font-size: 16px; color: var(--color-text-primary);
}
.hw-package-modal-close {
    width: 30px; height: 30px; border: 1px solid #e5e7eb; border-radius: 6px;
    background: #fff; color: #475569; font-size: 18px; line-height: 1;
    cursor: pointer;
}
.hw-package-modal-close:hover { background: #f8fafc; }
.hw-package-modal-body {
    padding: 14px; overflow: auto; display: flex; flex-direction: column; gap: 8px;
}
.hw-package-task-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px;
    background: #fff;
}
.hw-package-task-row strong {
    display: block; color: var(--color-text-primary); font-size: 14px; margin-bottom: 4px;
}
.hw-package-task-row p {
    display: flex; gap: 6px; flex-wrap: wrap; margin: 0; color: #64748B; font-size: 12px;
}
.hw-package-module-tag,
.hw-package-task-row p > span:not(.hw-type-tag) {
    padding: 2px 6px; border-radius: 4px; background: #f8fafc;
}
.hw-package-task-row .hw-type-tag {
    padding: 2px 7px; border-radius: 5px; font-size: 12px; letter-spacing: 0;
}
.hw-package-status-tag {
    font-weight: 700;
}
.hw-package-status-pending {
    background: #fef3c7 !important; color: #92400e;
}
.hw-package-status-active {
    background: #dbeafe !important; color: #1e40af;
}
.hw-package-status-redo {
    background: #fee2e2 !important; color: #991b1b;
}
.hw-package-status-done {
    background: #dcfce7 !important; color: #166534;
}
.hw-package-status-muted {
    background: #f1f5f9 !important; color: #475569;
}
.hw-package-action {
    min-width: 58px; padding: 7px 14px; border-radius: 6px;
    font-size: 13px; font-weight: 700; text-align: center; text-decoration: none;
    white-space: nowrap; flex-shrink: 0; border: 1px solid transparent;
}
.hw-package-action-start {
    background: var(--color-primary); color: #fff;
}
.hw-package-action-start:hover { background: var(--color-primary-dark); }
.hw-package-action-redo {
    background: #fef2f2; border-color: #fecaca; color: #991b1b;
}
.hw-package-action-redo:hover { background: #fee2e2; }
.hw-package-action-continue {
    background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8;
}
.hw-package-action-continue:hover { background: #dbeafe; }
.hw-package-action-view {
    background: #f0fdf4; border-color: #bbf7d0; color: #166534;
}
.hw-package-action-view:hover { background: #dcfce7; }
.hw-package-action-muted {
    background: #f1f5f9; border-color: #cbd5e1; color: #64748b; cursor: not-allowed;
}
@media (max-width: 768px) {
    .hw-top-row { flex-direction: column; }
    .hw-cal-widget { width: 100%; }
    .hw-columns { flex-direction: column; }
    .hw-dash-item { width: 100%; }
    .hw-dash-header { flex-direction: column; align-items: flex-start; }
    .hw-package-modal-panel {
        top: 10px; right: 10px; bottom: 10px; width: calc(100vw - 20px);
    }
    .hw-package-task-row {
        align-items: stretch; flex-direction: column;
    }
}
@media (max-width: 480px) {
    .hw-card { flex-wrap: wrap; }
    .hw-card-left { width: 100%; }
    .hw-btn { width: 100%; text-align: center; padding: 10px; }
    .hw-primary-line-top { flex-wrap: wrap; }
}

/* ===== 题目浏览器 ===== */
.qbrowser { display: flex; gap: 0; min-height: 400px; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }

/* 左侧 sidebar */
.qb-sidebar {
    width: 240px; min-width: 240px; background: #eef8f4; border-right: 1px solid #e5e7eb;
    align-self: stretch;
    padding: 12px 0;
}
.qb-exam-toggle {
    display: flex; gap: 0; margin: 4px 12px 12px; border-radius: 8px;
    overflow: hidden; border: 1px solid #d1d5db;
}
.qb-exam-btn {
    flex: 1; padding: 7px 0; border: none; background: #fff; color: #64748B;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
    text-align: center;
}
.qb-exam-btn.active { background: var(--color-primary); color: #fff; }
.qb-exam-btn:hover:not(.active) { background: #f1f5f9; }

.qb-sidebar-section { margin-bottom: 4px; }
.qb-sidebar-heading {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px;
    font-weight: 700; color: #475569; cursor: pointer; user-select: none;
    width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left;
}
.qb-sidebar-heading:hover { background: rgba(74,188,153,.08); }
.qb-sidebar-heading .qb-icon { width: 16px; height: 16px; opacity: .6; }
.qb-sidebar-heading .qb-chevron {
    margin-left: auto; transition: transform .2s; font-size: 11px; opacity: .5;
}
.qb-sidebar-heading.collapsed .qb-chevron { transform: rotate(-90deg); }
.qb-sidebar-items { }
.qb-sidebar-heading.collapsed + .qb-sidebar-items { display: none; }
.qb-sidebar-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 16px 9px 24px; font-size: 14px; color: #334155; cursor: pointer;
    border-left: 3px solid transparent; transition: all .15s; text-decoration: none;
}
.qb-sidebar-item-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.qb-sidebar-item .qb-icon { width: 16px; height: 16px; opacity: .65; }
.qb-sidebar-item-standalone {
    padding-left: 16px;
    font-weight: 700;
}
.qb-sidebar-item:hover { background: rgba(74,188,153,.1); }
.qb-sidebar-item.active {
    border-left-color: var(--color-primary); background: rgba(74,188,153,.15);
    color: var(--color-primary); font-weight: 600;
}
.qb-sidebar-item .qb-item-count {
    font-size: 12px; color: #94A3B8; background: #fff; padding: 1px 8px;
    border-radius: 10px; font-weight: 500;
}
.qb-sidebar-item.active .qb-item-count { color: var(--color-primary); background: rgba(255,255,255,.8); }
.qb-llk-badge {
    font-size: 10px; padding: 1px 5px; border-radius: 4px;
    background: #e0f7ff; color: #00aaff; font-weight: 600; margin-left: 4px;
}

/* 右侧主内容 */
.qb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qb-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap;
}
.qb-toolbar-title { font-size: 15px; font-weight: 600; color: var(--color-text-primary); }
.qb-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.qb-search-input {
    padding: 5px 10px; border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 13px; color: #334155; background: #fff; outline: none; width: 120px;
    transition: border-color .2s;
}
.qb-search-input:focus { border-color: var(--color-primary); }
.qb-search-input::placeholder { color: #94A3B8; }
.qb-select {
    padding: 5px 10px; border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 13px; color: #334155; background: #fff; cursor: pointer; outline: none;
}
.qb-select:focus { border-color: var(--color-primary); }

.qb-sat-practice-controls {
    padding: 16px 20px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}
.qb-sat-practice-mode-row,
.qb-sat-practice-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.qb-sat-practice-form-row + .qb-sat-practice-form-row {
    margin-top: 12px;
}
.qb-sat-practice-form-row-common {
    padding-top: 12px;
    border-top: 1px solid #e8edf5;
}
.qb-sat-practice-mode-switch {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d1d5db;
}
.qb-sat-practice-mode-btn {
    min-width: 108px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.qb-sat-practice-mode-btn.active {
    background: var(--color-primary);
    color: #fff;
}
.qb-sat-practice-mode-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.qb-sat-practice-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    min-height: 38px;
}
.qb-sat-practice-inline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
}
.qb-sat-practice-inline-toggle input {
    margin: 0;
}
.qb-sat-practice-field-grow {
    flex: 1 1 320px;
}
.qb-sat-practice-textarea {
    min-width: 240px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font: inherit;
    color: #334155;
    resize: vertical;
    background: #fff;
}
.qb-sat-practice-textinput {
    min-width: 320px;
    height: 38px;
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font: inherit;
    color: #334155;
    background: #fff;
    width: 100%;
    max-width: 520px;
}
.qb-sat-practice-selection {
    padding: 12px 20px 16px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}
.qb-sat-practice-tree {
    margin: 8px 0 4px;
    padding-left: 12px;
}
.qb-sat-practice-tree-list,
.qb-sat-practice-tree-children {
    list-style: none;
    margin: 0;
    padding: 0;
}
.qb-sat-practice-tree-node {
    margin-top: 6px;
}
.qb-sat-practice-tree-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    text-align: left;
}
.qb-sat-practice-tree-toggle:hover {
    background: rgba(74,188,153,.1);
}
.qb-sat-practice-tree-toggle.is-selected {
    background: rgba(74,188,153,.15);
    color: var(--color-primary);
    font-weight: 700;
}
.qb-sat-practice-tree-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .18s ease;
    flex-shrink: 0;
}
.qb-sat-practice-tree-toggle.is-expanded .qb-sat-practice-tree-chevron {
    transform: rotate(45deg);
}
.qb-sat-practice-tree-chevron.is-hidden { visibility: hidden; }
.qb-sat-practice-tree-count {
    margin-left: auto;
    font-size: 12px;
    color: #64748b;
}
.qb-sat-practice-tree-children {
    margin-left: 14px;
    border-left: 1px solid rgba(100,116,139,.15);
    padding-left: 8px;
}
.qb-sat-practice-tree-children.is-collapsed { display: none; }
.qb-empty.qb-empty-compact { padding: 12px; }
.qb-sat-practice-check-cell {
    width: 36px;
    text-align: center;
}

/* 表格 */
.qb-table-wrap { flex: 1; overflow-x: auto; }
.qb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.qb-table thead th {
    padding: 10px 14px; text-align: left; font-weight: 600; color: #64748B;
    font-size: 13px; border-bottom: 1px solid #e5e7eb; background: #F8FAFC;
    white-space: nowrap;
}
.qb-table tbody td {
    padding: 11px 14px; border-bottom: 1px solid #f1f5f9; color: #334155;
    vertical-align: middle;
}
.qb-table tbody tr:hover { background: #f8fdf9; }
.qb-col-type { width: 55px; text-align: center; }
.qb-col-num { width: 55px; text-align: center; }
.qb-type-tag {
    display: inline-block; padding: 2px 7px; border-radius: 4px;
    font-size: 11px; font-weight: 700; white-space: nowrap;
}
/* 托福阅读 - 蓝底 */
.qb-type-RAP { background: #dbeafe; color: #1e40af; }
.qb-type-CTW { background: #dbeafe; color: #be123c; }
.qb-type-RDP { background: #dbeafe; color: #7e22ce; }
/* 托福听力 - 紫底 */
.qb-type-ACT { background: #ede9fe; color: #1e40af; }
.qb-type-CON { background: #ede9fe; color: #be123c; }
.qb-type-ANN { background: #ede9fe; color: #166534; }
.qb-type-LCR { background: #ede9fe; color: #b45309; }
/* 托福写作 - 橙底 */
.qb-type-WAD { background: #fdba74; color: #1e40af; }
.qb-type-WAE { background: #fdba74; color: #be123c; }
.qb-type-BAS { background: #fdba74; color: #7e22ce; }
/* 托福口语 - 青底 */
.qb-type-LAR { background: #99f6e4; color: #1e40af; }
.qb-type-TAR { background: #99f6e4; color: #be123c; }
.qb-type-TOEFL_MOCK { background: #dcfce7; color: #166534; }
.qb-type-SAT_MOCK { background: #e0f2fe; color: #075985; }
.qb-type-IELTS_MOCK { background: #ccfbf1; color: #0f766e; }
/* 雅思写作 - 绿底 */
.qb-type-IW1 { background: #86efac; color: #1e40af; }
.qb-type-IW2 { background: #86efac; color: #be123c; }
/* 雅思口语 - 灰蓝底 */
.qb-type-INI { background: #c7d2fe; color: #be123c; }
.qb-type-LTD { background: #c7d2fe; color: #7e22ce; }
/* 雅思阅读 - 黄底 */
.qb-type-IR1 { background: #fef3c7; color: #1e40af; }
.qb-type-IR2 { background: #fef3c7; color: #be123c; }
.qb-type-IR3 { background: #fef3c7; color: #7e22ce; }
/* 雅思听力 - 粉底 */
.qb-type-IL1 { background: #fce7f3; color: #1e40af; }
.qb-type-IL2 { background: #fce7f3; color: #166534; }
.qb-type-IL3 { background: #fce7f3; color: #b45309; }
.qb-type-IL4 { background: #fce7f3; color: #7e22ce; }
.qb-col-topic { width: 210px; }
.qb-col-tag { width: 78px; text-align: center; }
.qb-tag-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.qb-tag-l1 {
    font-size: 11px; font-weight: 700; line-height: 1.3;
    padding: 2px 8px; border-radius: 4px;
    white-space: nowrap;
}
.qb-tag-l2 {
    font-size: 10px; font-weight: 500;
    white-space: nowrap; line-height: 1.2;
}
.qb-tag-color-ls { color: #16a34a; }
.qb-tag-l1.qb-tag-color-ls { background: #16a34a12; border: 1px solid #16a34a30; }
.qb-tag-color-ss { color: #b45309; }
.qb-tag-l1.qb-tag-color-ss { background: #b4530912; border: 1px solid #b4530930; }
.qb-tag-color-ps { color: #2563eb; }
.qb-tag-l1.qb-tag-color-ps { background: #2563eb12; border: 1px solid #2563eb30; }
.qb-tag-color-ah { color: #9333ea; }
.qb-tag-l1.qb-tag-color-ah { background: #9333ea12; border: 1px solid #9333ea30; }
.qb-tag-color-cam { color: #0891b2; }
.qb-tag-l1.qb-tag-color-cam { background: #0891b212; border: 1px solid #0891b230; }
.qb-tag-color-liv { color: #65a30d; }
.qb-tag-l1.qb-tag-color-liv { background: #65a30d12; border: 1px solid #65a30d30; }
.qb-tag-color-wrk { color: #c2410c; }
.qb-tag-l1.qb-tag-color-wrk { background: #c2410c12; border: 1px solid #c2410c30; }
.qb-tag-color-trv { color: #0d9488; }
.qb-tag-l1.qb-tag-color-trv { background: #0d948812; border: 1px solid #0d948830; }
.qb-tag-color-hlt { color: #dc2626; }
.qb-tag-l1.qb-tag-color-hlt { background: #dc262612; border: 1px solid #dc262630; }
.qb-tag-color-com { color: #6366f1; }
.qb-tag-l1.qb-tag-color-com { background: #6366f112; border: 1px solid #6366f130; }
.qb-tag-color-default { color: #6b7280; }
.qb-tag-l1.qb-tag-color-default { background: #6b728012; border: 1px solid #6b728030; }
.qb-col-stars { width: 80px; text-align: center; }
.qb-col-count { width: 80px; text-align: center; }
.qb-col-status { width: 220px; text-align: left; }
.qb-col-action { width: 180px; text-align: center; }

.qb-cell-center { text-align: center; }
.qb-topic-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.qb-num-cell { font-family: 'Monaco','Menlo',monospace; font-size: 13px; font-weight: 500; color: #475569; text-align: center; }
.qb-count-cell { font-size: 13px; color: #94A3B8; }
.qb-muted { color: #ccc; }
.qb-diff { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.qb-cefr {
    font-size: 10px; font-weight: 700; line-height: 1;
    padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px;
}
.qb-cefr-A1 { background: #dcfce7; color: #166534; }
.qb-cefr-A2 { background: #d1fae5; color: #065f46; }
.qb-cefr-B1 { background: #fef9c3; color: #854d0e; }
.qb-cefr-B2 { background: #fed7aa; color: #9a3412; }
.qb-cefr-C1 { background: #fecaca; color: #991b1b; }
.qb-cefr-C2 { background: #e9d5ff; color: #6b21a8; }
.qb-dots { display: flex; gap: 3px; }
.qb-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #e5e7eb;
}
.qb-dot-on { background: #9ca3af; }
.qb-dot-on.qb-dot-level-1 { background: #4ade80; }
.qb-dot-on.qb-dot-level-2 { background: #a3e635; }
.qb-dot-on.qb-dot-level-3 { background: #facc15; }
.qb-dot-on.qb-dot-level-4 { background: #fb923c; }
.qb-dot-on.qb-dot-level-5 { background: #f87171; }
.qb-badge {
    display: inline-block; padding: 2px 8px; border-radius: 6px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.qb-badge-completed { background: #DCFCE7; color: #166534; }
.qb-badge-submitted, .qb-badge-grading { background: #FEF3C7; color: #92400E; }
.qb-badge-none { background: #F1F5F9; color: #94A3B8; }
.qb-go-btn {
    display: inline-block; padding: 5px 14px; background: var(--color-primary); color: #fff;
    border: none; border-radius: 6px; font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s;
}
.qb-go-btn:hover { background: var(--color-primary-dark); }
.qb-empty-action { margin-top: 14px; }
.qb-go-btn-secondary {
    background: #eef6f3;
    color: #2f6f5c;
}
.qb-go-btn-secondary:hover {
    background: #dfeee8;
}
.qb-go-btn-continue {
    background: #3e6ea8;
}
.qb-go-btn-continue:hover {
    background: #325d8d;
}
.qb-go-btn-restart {
    background: #fff4e5;
    color: #b45309;
}
.qb-go-btn-restart:hover {
    background: #fde7c7;
}
.qb-action-stack {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.qb-mock-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.45;
    align-items: flex-start;
    text-align: left;
}
.qb-mock-meta strong {
    color: #1f2937;
    font-size: 15px;
}
.qb-mock-sub {
    font-size: 12px;
    color: #64748b;
}
.qb-mock-paper-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}
.qb-mock-paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.qb-mock-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}
.qb-mock-chip-official {
    background: #e0f2fe;
    color: #0369a1;
}
.qb-mock-chip-real {
    background: #fef3c7;
    color: #92400e;
}
.qb-mock-chip-sample {
    background: #dcfce7;
    color: #166534;
}
.qb-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}
.qb-status-pill-not-started {
    background: #f1f5f9;
    color: #64748b;
}
.qb-status-pill-in-progress {
    background: #dbeafe;
    color: #1d4ed8;
}
.qb-status-pill-completed {
    background: #dcfce7;
    color: #166534;
}
.qb-mock-score {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    text-align: left;
}
.qb-mock-score strong {
    font-size: 14px;
    color: #1f2937;
}
.qb-mock-score-total {
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
}
.qb-mock-score-breakdown {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}
.qb-mock-progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    text-align: left;
}
.qb-loading { text-align: center; color: #94A3B8; padding: 40px 0; font-size: 14px; }
.qb-empty { text-align: center; color: #94A3B8; padding: 40px 0; }

/* 分页 */
.qb-pagination {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    padding: 14px 20px; border-top: 1px solid #e5e7eb;
}
.qb-page-btn {
    min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid #e5e7eb;
    border-radius: 6px; background: #fff; color: #334155; font-size: 13px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.qb-page-btn:hover:not(.active):not(:disabled) { background: #F1F5F9; border-color: #CBD5E1; }
.qb-page-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); font-weight: 600; }
.qb-page-btn:disabled { opacity: .4; cursor: default; }
.qb-page-ellipsis { padding: 0 4px; color: #94A3B8; font-size: 13px; }
.qb-page-jump {
    display: inline-flex; align-items: center; gap: 4px; margin-left: 10px;
    font-size: 13px; color: #64748B; white-space: nowrap;
}
.qb-page-input {
    width: 42px; height: 30px; text-align: center; border: 1px solid #e5e7eb;
    border-radius: 6px; font-size: 13px; color: #334155; outline: none;
    padding: 0 4px;
}
.qb-page-input:focus { border-color: var(--color-primary); }

/* ===== 词汇单元卡片 ===== */
.vocab-panel { padding: 20px; background: linear-gradient(180deg, #f8fbfa 0%, #ffffff 18%); }
.vocab-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vocab-panel-title { margin: 0; font-size: 20px; font-weight: 800; color: #1f2937; }
.vocab-panel-title-count { font-size: .85rem; color: #94a3b8; font-weight: 400; }
.vu-toolbar {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px;
    padding: 14px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}
.vu-toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vu-toolbar-label { min-width: 64px; font-size: 12px; font-weight: 700; color: #64748b; }
.vu-toolbar-label-smart { color: var(--color-primary); }
.vu-toolbar-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vu-btn {
    padding: 7px 12px; border: 1px solid #dbe4ea; border-radius: 999px; background: #fff;
    color: #334155; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.vu-btn:hover { border-color: #94a3b8; background: #f8fafc; }
.vu-btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.vu-btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.vu-btn-smart { background: rgba(74,188,153,.08); color: var(--color-primary); border-color: rgba(74,188,153,.18); }
.vu-toolbar-sep { width: 1px; height: 20px; background: #e5e7eb; }
.vu-toolbar-hint { font-size: 12px; color: #94a3b8; font-weight: 600; }
.vu-input {
    min-width: 120px; padding: 7px 10px; border: 1px solid #dbe4ea; border-radius: 10px;
    background: #fff; color: #334155; font-size: 13px; outline: none;
}
.vu-input:focus { border-color: var(--color-primary); }
.vu-input:disabled { opacity: .4; }
.vu-input-auto { min-width: auto; }
.vu-input-num { min-width: 72px; width: 72px; }
.vocab-units-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.vocab-unit-card {
    position: relative; display: block; cursor: pointer; border: 1px solid #dbe4ea; border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%); overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.vocab-unit-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: linear-gradient(90deg, var(--color-primary), #7dd3fc);
}
.vocab-unit-card:hover { transform: translateY(-3px); border-color: rgba(74,188,153,.3); box-shadow: 0 22px 44px rgba(15, 23, 42, 0.09); }
.vocab-unit-card input[type="checkbox"] { position: absolute; top: 16px; right: 16px; width: 17px; height: 17px; }
.vocab-unit-card input[type="checkbox"]:checked + .vu-card-body { background: linear-gradient(180deg, rgba(74,188,153,.12) 0%, #ffffff 100%); }
.vocab-unit-card input[type="checkbox"]:checked + .vu-card-body::after {
    content: ''; position: absolute; inset: 0; border: 2px solid rgba(74,188,153,.45); border-radius: 18px; pointer-events: none;
}
.vu-card-body { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 170px; padding: 18px 16px 16px; }
.vu-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 28px; }
.vu-card-seq {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--color-primary);
}
.vu-card-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(180deg, var(--color-primary), #7dd3fc);
    box-shadow: 0 0 0 4px rgba(74,188,153,.12);
}
.vu-card-name { font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1.45; }
.vu-card-title { display: flex; flex-direction: column; gap: 8px; }
.vu-card-subtitle { font-size: 12px; color: #64748b; line-height: 1.5; }
.vu-card-count {
    flex-shrink: 0; padding: 4px 8px; border-radius: 999px; background: #eff6ff;
    color: #1d4ed8; font-size: 12px; font-weight: 700;
}
.vu-card-progress {
    margin-top: auto; display: flex; flex-direction: column; gap: 8px;
    padding: 10px 12px; border-radius: 14px; background: rgba(248, 250, 252, .95); border: 1px solid #eef2f7;
}
.vu-bar { width: 100%; height: 7px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.vu-bar-fill { height: 100%; border-radius: inherit; background: var(--color-primary); }
.vu-progress-meter {
    width: 100%;
    height: 7px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
}
.vu-progress-meter::-webkit-progress-bar { background: #e5e7eb; border-radius: 999px; }
.vu-progress-meter::-webkit-progress-value { background: var(--color-primary); border-radius: 999px; }
.vu-progress-meter::-moz-progress-bar { background: var(--color-primary); border-radius: 999px; }
.vu-status-text { font-size: 12px; color: #64748b; font-weight: 600; }
.vu-status-text.vu-new { color: #94a3b8; }
.vu-card-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 2px; padding-top: 2px;
}
.vu-card-pdf-link, .vu-card-pdf-link:visited {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
    background: linear-gradient(180deg, #ecfeff, #e0f2fe); color: #0369a1; text-decoration: none; font-size: 12px; font-weight: 800;
    border: 1px solid rgba(3, 105, 161, .12);
}
.vu-card-pdf-link:hover { background: linear-gradient(180deg, #dff7ff, #d7efff); }
.vu-card-pdf-link.is-disabled {
    background: #f8fafc; color: #94a3b8; pointer-events: none; border-color: #e5e7eb;
}
.vu-card-index {
    font-size: 11px; color: #94a3b8; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
/* ===== 练习模式选择卡片 ===== */
.vu-mode-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px;
}
.vu-mode-card {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 10px 14px; border: 2px solid #e5e7eb; border-radius: 16px; background: #fff;
    cursor: pointer; transition: all .18s; text-align: center; user-select: none;
    font-family: inherit;
}
.vu-mode-card:hover { border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.06); }
.vu-mode-card.active {
    border-color: var(--color-primary); background: linear-gradient(180deg, rgba(74,188,153,.08) 0%, #fff 100%);
    box-shadow: 0 0 0 3px rgba(74,188,153,.12);
}
.vu-mode-icon { font-size: 28px; line-height: 1; }
.vu-mode-name { font-size: 14px; font-weight: 800; color: #1f2937; }
.vu-mode-desc { font-size: 11px; color: #94a3b8; line-height: 1.4; }
.vu-mode-card.active .vu-mode-name { color: var(--color-primary); }
.vu-mode-card.active::after {
    content: ''; position: absolute; top: -2px; left: -2px; right: -2px; height: 4px;
    background: var(--color-primary); border-radius: 16px 16px 0 0;
}
/* 预设模式提示条 */
.vu-preset-hint {
    display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
    padding: 12px 16px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(74,188,153,.06), rgba(56,189,248,.06));
    border: 1px solid rgba(74,188,153,.15); font-size: 13px; color: #475569; font-weight: 500;
}
.vu-preset-hint strong { color: var(--color-primary); font-weight: 700; }
/* 隐藏工具栏和模块区（预设模式下） */
.vocab-panel.preset-mode .vu-modules { display: none; }
.vocab-panel.preset-mode .vu-toolbar { display: none; }
/* 测试/复习模式：显示工具栏（只保留快捷操作行） */
.vocab-panel.preset-mode.preset-test .vu-toolbar,
.vocab-panel.preset-mode.preset-review .vu-toolbar { display: flex; }
.vocab-panel.preset-mode.preset-test .vu-toolbar .vu-toolbar-row:first-child,
.vocab-panel.preset-mode.preset-review .vu-toolbar .vu-toolbar-row:first-child { display: none; }
/* 学习模式：卡片整体不可交互但 PDF 链接可点击 */
.vocab-panel.preset-mode .vocab-units-grid { opacity: .55; }
.vocab-panel.preset-mode .vocab-unit-card { pointer-events: none; }
.vocab-panel.preset-mode .vu-card-pdf-link:not(.is-disabled) { pointer-events: auto; position: relative; z-index: 1; }
/* 学习模式选中卡片高亮 */
.vocab-panel.preset-mode.preset-learn .vocab-unit-card:has(input:checked) {
    opacity: 1; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74,188,153,.15), 0 12px 32px rgba(15,23,42,.08);
    animation: vu-pulse 1.5s ease-in-out;
}
@keyframes vu-pulse {
    0% { box-shadow: 0 0 0 0 rgba(74,188,153,.3); }
    50% { box-shadow: 0 0 0 10px rgba(74,188,153,0), 0 12px 32px rgba(15,23,42,.08); }
    100% { box-shadow: 0 0 0 3px rgba(74,188,153,.15), 0 12px 32px rgba(15,23,42,.08); }
}
/* 测试/复习模式：卡片完全可交互 */
.vocab-panel.preset-mode.preset-test .vocab-units-grid,
.vocab-panel.preset-mode.preset-review .vocab-units-grid { opacity: 1; }
.vocab-panel.preset-mode.preset-test .vocab-unit-card,
.vocab-panel.preset-mode.preset-review .vocab-unit-card { pointer-events: auto; }

.vocab-stats {
    margin: 14px 0 18px; padding: 12px 14px; border-radius: 12px;
    background: #f8fafc; border: 1px solid #e5e7eb; color: #475569; font-size: 14px; font-weight: 600;
}
.vu-modules { display: flex; flex-direction: column; gap: 12px; }
.vu-settings-title { margin-bottom: 2px; font-size: 16px; font-weight: 800; color: #1f2937; }
.vu-module { border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; overflow: hidden; }
.vu-module-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.vu-module-icon { font-size: 18px; }
.vu-module-name { font-size: 15px; font-weight: 700; color: #1f2937; }
.vu-module-desc { font-size: 12px; color: #94a3b8; }
.vu-module-toggle {
    margin-left: auto; color: #94a3b8; cursor: pointer; user-select: none; transition: transform .15s;
    border: 0; background: transparent; font-family: inherit; padding: 0;
}
.vu-module.expanded .vu-module-toggle { transform: rotate(0deg); }
.vu-module:not(.expanded) .vu-module-toggle { transform: rotate(-90deg); }
.vu-module-settings { display: none; padding: 0 16px 16px; border-top: 1px solid #f1f5f9; }
.vu-module.expanded .vu-module-settings { display: block; }
.vu-setting-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; }
.vu-setting-row > label:first-child { min-width: 68px; font-size: 13px; font-weight: 700; color: #475569; }
.vu-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #334155; }
.vu-check-spaced { margin-left: 6px; }
.vu-setting-hint { font-size: 12px; color: #94a3b8; }
.vocab-exam-start-btn {
    width: 100%; margin-top: 16px; padding: 14px 16px; border: none; border-radius: 12px;
    background: var(--color-primary); color: #fff; font-size: 16px; font-weight: 800;
    cursor: pointer; box-shadow: 0 10px 22px rgba(74,188,153,.2);
}
.vocab-exam-start-btn:disabled {
    background: #cbd5e1; cursor: not-allowed; box-shadow: none;
}

/* 平板竖屏 */
@media (max-width: 768px) {
    .select-container { padding: 24px 16px; }
    .welcome-section { margin-bottom: 28px; }
    .welcome-section h1 { font-size: 24px; }

    .qbrowser { flex-direction: column; }
    .qb-sidebar {
        width: 100%; min-width: 100%; position: static; max-height: none;
        display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden;
        border-right: none; border-bottom: 1px solid #e5e7eb; padding: 0; gap: 0;
        -webkit-overflow-scrolling: touch;
    }
    .qb-exam-toggle {
        margin: 0; border: none; border-right: 1px solid #e5e7eb; border-radius: 0;
        flex-shrink: 0; gap: 0;
    }
    .qb-exam-btn { padding: 10px 14px; border-radius: 0; font-size: 12px; }
    .qb-sidebar-section { display: contents; margin: 0; }
    .qb-sidebar-heading { display: none; }
    .qb-sidebar-heading.collapsed + .qb-sidebar-items { display: contents; }
    .qb-sidebar-items { display: contents; }
    .qb-sidebar-item {
        padding: 10px 16px; border-left: none; border-bottom: 3px solid transparent;
        white-space: nowrap; flex-shrink: 0;
    }
    .qb-sidebar-item.active { border-left-color: transparent; border-bottom-color: var(--color-primary); }
    .qb-sidebar-item .qb-item-count { display: none; }
    .qb-col-count { display: none; }
    .qb-table thead th.qb-col-count,
    .qb-table tbody td:nth-child(3) { display: none; }
    .vocab-panel { padding: 16px; }
    .vu-mode-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .vu-toolbar-row { align-items: flex-start; }
    .vu-toolbar-label { min-width: auto; width: 100%; }
}

/* 手机 */
@media (max-width: 480px) {
    .welcome-section h1 { font-size: 22px; }
    .welcome-logo { width: min(220px, 78vw); }
    .welcome-logo-tenant { width: 70px; max-height: 70px; }
    .qb-toolbar { padding: 10px 12px; }
    .qb-table thead th { padding: 8px 10px; }
    .qb-table tbody td { padding: 9px 10px; }
    .qb-col-status { display: none; }
    .qb-table thead th.qb-col-status,
    .qb-table tbody td:nth-child(4) { display: none; }
    .vocab-units-grid { grid-template-columns: 1fr; }
    .vu-card-actions { align-items: flex-start; flex-direction: column; }
.vu-module-header { align-items: flex-start; flex-wrap: wrap; }
}

.hw-overdue-divider-active {
    background: #F0F9FF;
    color: #1E40AF;
}

/* ===== Public subject landing: migrated selectexam visual system ===== */
body.exam-select-page {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    min-height: 100%;
    background: linear-gradient(180deg, #f4f8f6 0%, #f4f8f6 100%);
}

body.exam-select-page::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    height: 560px;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(222, 252, 240, .95) 0%, rgba(225, 250, 240, .88) 47%, rgba(244, 248, 246, .98) 100%),
        radial-gradient(circle at 82% 4%, rgba(67, 214, 181, .32) 0%, rgba(67, 214, 181, 0) 36%),
        radial-gradient(circle at 16% 35%, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 40%);
}

body.exam-select-page .main-content {
    position: relative;
    z-index: 1;
    background: transparent;
    padding-top: 62px;
}

body.exam-select-page .footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 26px 20px;
    background: transparent;
    border-top: none;
    color: #8a8f93;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

body.exam-select-page .footer::before {
    content: "\00a9  2026 百灵果 BilingGo";
}

body.exam-select-page .footer p {
    margin: 0;
}

body.exam-select-page .footer p:first-child {
    display: none;
}

body.exam-select-page .footer-beian-links,
body.exam-select-page .footer-legal-links {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px !important;
    flex-wrap: wrap;
    margin: 0 !important;
    font-size: 12px !important;
}

body.exam-select-page .footer a {
    color: #8a8f93;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.exam-select-page .footer-beian-links a {
    text-decoration: none;
}

body.exam-select-page .footer a:hover {
    color: #4abc99;
}

body.exam-select-page .exam-wordmark-watermark {
    position: absolute;
    left: max(57px, calc((100vw - 1400px) / 2 + 47px));
    top: 87px;
    width: 639px;
    min-width: 0;
    max-width: 840px;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

body.exam-select-page .exam-wordmark-watermark g {
    opacity: .42;
}

body.exam-select-page .select-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto 72px;
    padding: 0 40px;
}

body.exam-select-page #tabPractice.tab-panel.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 620px;
    gap: 28px;
    align-items: start;
    animation: fadeSlideUp .2s ease;
}

body.exam-select-page #tabPractice .welcome-section.exam-hero-card {
    grid-column: 1;
    grid-row: 1;
}

body.exam-select-page #practiceProgressRow {
    display: contents;
}

body.exam-select-page #practiceProgressRow .exam-hero-stats {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
}

body.exam-select-page #pCalWidget {
    grid-column: 2;
    grid-row: 1;
}

body.exam-select-page #pDashboard {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
}

body.exam-select-page #tabPractice .qbrowser {
    grid-column: 1 / -1;
}

body.exam-select-page #tabPractice.tab-panel.active:has(#pCalWidget.exam-select-hidden) {
    grid-template-columns: minmax(0, 1fr);
}

body.exam-select-page .welcome-section.exam-hero-card {
    position: relative;
    display: block;
    min-height: 284px;
    margin: 34px 0 0;
    padding: 0;
    text-align: left;
    overflow: visible;
}

body.exam-select-page .exam-hero-copy {
    position: absolute;
    left: 38px;
    top: 46px;
    z-index: 2;
    max-width: 430px;
    padding-top: 0;
    pointer-events: none;
}

body.exam-select-page .welcome-section .exam-hero-title {
    margin: 0;
    color: #2d3034;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0;
}

body.exam-select-page .exam-hero-wave {
    display: inline-block;
    margin-left: 8px;
    font-size: .82em;
    vertical-align: 7%;
}

body.exam-select-page .welcome-section .exam-hero-subtitle {
    margin: 12px 0 0;
    color: #4f6f80;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: 1.1px;
}

body.exam-select-page .exam-hero-mascot {
    position: absolute;
    left: 366px;
    top: 3px;
    z-index: 4;
    width: 316px;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 26px 32px rgba(4, 120, 87, .16));
    pointer-events: none;
}

body.exam-select-page .exam-hero-stats {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 135px 135px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 95px;
    margin: 0;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(225, 231, 235, .9);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.exam-select-page .exam-hero-stat {
    display: grid;
    align-content: center;
    min-height: 64px;
    padding: 0 28px;
    border-right: 1px solid rgba(15, 23, 42, .08);
}

body.exam-select-page .exam-hero-stat:last-child {
    border-right: none;
}

body.exam-select-page .exam-hero-stat-label {
    display: block;
    margin-bottom: 2px;
    color: #66788b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
}

body.exam-select-page .exam-hero-stat-value {
    display: flex;
    align-items: baseline;
    gap: 0;
    color: #303746;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.15;
}

body.exam-select-page .exam-hero-stat-value strong {
    display: inline-block;
    margin-top: 4px;
    color: #08bfa2;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

body.exam-select-page .exam-hero-stat-value small {
    margin-left: 4px;
    color: #66788b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

body.exam-select-page .exam-hero-stat-note {
    display: block;
    margin-top: 4px;
    color: #66788b;
    font-size: 11px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
}

body.exam-select-page .exam-hero-stat-link {
    cursor: pointer;
    transition: background-color .18s ease, box-shadow .18s ease;
}

body.exam-select-page .exam-hero-stat-link:hover,
body.exam-select-page .exam-hero-stat-link:focus-visible {
    background: rgba(8, 191, 162, .06);
    box-shadow: inset 0 0 0 1px rgba(8, 191, 162, .16);
    outline: none;
}

body.exam-select-page .exam-hero-stat-link .exam-hero-stat-note::after {
    content: "  去设置";
    color: #08bfa2;
    font-weight: 600;
}

body.exam-select-page .hw-cal-widget,
body.exam-select-page .hw-dashboard,
body.exam-select-page .qbrowser {
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(225, 231, 235, .9);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .045);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.exam-select-page .hw-dashboard {
    padding: 28px 27px 32px;
}

body.exam-select-page .hw-top-row {
    margin: 0;
}

body.exam-select-page .hw-cal-widget {
    position: static;
    z-index: 3;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 24px;
    width: 100%;
    min-height: 246px;
    flex: 0 0 620px;
    margin-top: 34px;
    padding: 28px 27px 32px;
}

body.exam-select-page .hw-cal-header {
    grid-column: 1;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px auto;
    align-items: center;
    gap: 10px;
    margin: 0 0 13px;
}

body.exam-select-page .hw-cal-title {
    min-width: 0;
    text-align: center;
    color: #303746;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

body.exam-select-page .hw-cal-nav {
    width: 30px;
    height: 30px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    color: #66788b;
    font-size: 18px;
    box-shadow: none;
}

body.exam-select-page .hw-cal-today-btn {
    height: 30px;
    margin-left: 10px;
    padding: 0 13px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    color: #66788b;
    font-size: 13px;
    line-height: 1;
    box-shadow: none;
}

body.exam-select-page .hw-cal-weekdays {
    grid-column: 1;
    margin: 0 0 8px;
    color: #98a3ae;
    font-size: 12px;
    line-height: 1.2;
}

body.exam-select-page .hw-cal-days {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px 7px;
}

body.exam-select-page .hw-cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    color: #303746;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

body.exam-select-page .hw-cal-day.other-month {
    color: #c6ccd4;
}

body.exam-select-page .hw-cal-day.today {
    font-weight: 500;
}

body.exam-select-page .hw-cal-day.today::after {
    content: none;
}

body.exam-select-page .hw-cal-day.selected {
    background: #38c4a5;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(56, 196, 165, .22);
}

body.exam-select-page .hw-cal-badge {
    display: none;
}

body.exam-select-page .pcal-records {
    grid-column: 2;
    grid-row: 1 / 4;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 30px;
    border-top: 0;
    border-left: 1px solid #e9ecef;
}

body.exam-select-page .pcal-records-header {
    display: block;
    margin: 0 0 14px;
    color: #303746;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

body.exam-select-page .pcal-records-close {
    display: none;
}

body.exam-select-page .pcal-records-list {
    gap: 16px;
    max-height: 193px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

body.exam-select-page .pcal-record-item {
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #303746;
    font-size: 13px;
    line-height: 1.2;
}

body.exam-select-page .pcal-record-item:hover {
    background: transparent;
}

body.exam-select-page .hw-dash-title {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-left: 23px;
    margin: 0 0 4px;
    color: #303746;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
}

body.exam-select-page .hw-dash-title::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 18%;
    width: 28px;
    height: 41px;
    transform: translateY(-52%);
    background: url("/static/home/gologo.svg") center / contain no-repeat;
    -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 24%, rgba(0, 0, 0, .72) 44%, rgba(0, 0, 0, .24) 68%, transparent 100%);
    mask-image: linear-gradient(135deg, #000 0%, #000 24%, rgba(0, 0, 0, .72) 44%, rgba(0, 0, 0, .24) 68%, transparent 100%);
}

body.exam-select-page .hw-dash-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 52px;
    margin-bottom: 6px;
}

body.exam-select-page .hw-dash-range {
    gap: 12px;
    margin-left: 0;
    transform: translateY(-8px);
}

body.exam-select-page .hw-dash-date {
    padding: 6px 11px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
}

body.exam-select-page .hw-dash-query,
body.exam-select-page .hw-dash-reset,
body.exam-select-page .qb-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
}

body.exam-select-page .hw-dash-query,
body.exam-select-page .hw-dash-reset {
    min-width: 58px;
    padding: 9px 25px;
}

body.exam-select-page .hw-dash-query {
    border-color: #08bfa2;
    background: #08bfa2;
}

body.exam-select-page .hw-dash-query:hover {
    background: #06aa91;
    border-color: #06aa91;
    opacity: 1;
}

body.exam-select-page .hw-dash-reset:hover,
body.exam-select-page .qb-page-btn:hover:not(.active):not(:disabled) {
    background: #f4f8fb;
    border-color: #d8e0e7;
    color: #303746;
}

body.exam-select-page .hw-dash-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.exam-select-page .hw-dash-item {
    width: auto;
}

body.exam-select-page .qbrowser {
    display: block;
    overflow: hidden;
}

body.exam-select-page .qb-sidebar {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px 27px 17px;
    background: transparent;
    border-right: 0;
    border-bottom: 1px solid rgba(225, 231, 235, .9);
    overflow: hidden;
}

body.exam-select-page .qb-sidebar-section {
    display: inline-block;
    margin: 0 34px 0 0;
    vertical-align: top;
}

body.exam-select-page .qb-sidebar-heading {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #66788b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

body.exam-select-page .qb-sidebar-heading:hover {
    background: transparent;
    color: #303746;
}

body.exam-select-page .qb-sidebar-heading .qb-icon {
    width: 14px;
    height: 14px;
    opacity: .62;
    transform: translateY(-1px);
}

body.exam-select-page .qb-sidebar-heading .qb-chevron {
    display: none;
}

body.exam-select-page .qb-sidebar-section:has(.qb-sidebar-item.active) .qb-sidebar-heading,
body.exam-select-page .qb-sidebar-section > .qb-sidebar-item-standalone.active {
    color: #08bfa2;
    border-bottom-color: #08bfa2;
}

body.exam-select-page .qb-sidebar-items {
    display: none;
}

body.exam-select-page .qb-sidebar-section:has(.qb-sidebar-item.active) .qb-sidebar-items {
    position: absolute;
    left: 27px;
    right: 27px;
    bottom: 17px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
}

body.exam-select-page .qb-sidebar-section:has(.qb-sidebar-item.active) .qb-sidebar-items::-webkit-scrollbar {
    display: none;
}

body.exam-select-page .qb-sidebar-section:has(.qb-sidebar-item.active) .qb-sidebar-items::before {
    content: "题型选择：";
    flex: 0 0 auto;
    color: #66788b;
    font-size: 14px;
    font-weight: 500;
}

body.exam-select-page .qb-sidebar-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #66788b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

body.exam-select-page .qb-sidebar-item:hover {
    background: #f4f8fb;
    color: #303746;
}

body.exam-select-page .qb-sidebar-item.active {
    border-color: #08bfa2;
    background: rgba(8, 191, 162, .08);
    color: #08bfa2;
    font-weight: 500;
}

body.exam-select-page .qb-sidebar-item .qb-item-count {
    display: none;
}

body.exam-select-page .qb-sidebar-item-standalone {
    justify-content: flex-start;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #66788b;
    font-weight: 500;
    line-height: 1.2;
}

body.exam-select-page .qb-sidebar-item-standalone:hover {
    background: transparent;
    color: #303746;
}

body.exam-select-page .qb-main {
    width: 100%;
    min-width: 0;
}

body.exam-select-page .qb-toolbar {
    gap: 14px;
    padding: 18px 27px;
}

body.exam-select-page .qb-toolbar-title {
    color: #303746;
    font-weight: 600;
}

body.exam-select-page .qb-pagination {
    gap: 8px;
    padding: 16px 20px;
}

body.exam-select-page .qb-page-btn {
    min-width: 34px;
    padding: 9px 13px;
}

body.exam-select-page .qb-page-btn.active {
    background: #08bfa2;
    color: #fff;
    border-color: #08bfa2;
    font-weight: 400;
}

body.exam-select-page .qb-page-jump {
    gap: 12px;
    margin-left: 0;
}

body.exam-select-page .qb-page-jump .qb-page-btn {
    min-width: 58px;
    padding: 9px 25px;
}

body.exam-select-page .qb-page-input {
    width: 42px;
    padding: 6px 11px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    body.exam-select-page::before {
        top: 56px;
        height: 430px;
    }

    body.exam-select-page .main-content {
        padding-top: 154px;
    }

    body.exam-select-page .exam-wordmark-watermark {
        left: 18px;
        top: 82px;
        width: min(210px, calc(100vw - 36px));
        min-width: 0;
        max-width: none;
    }

    body.exam-select-page .exam-wordmark-watermark g {
        opacity: .38;
    }

    body.exam-select-page .select-container {
        position: static;
        margin: 0 auto 72px;
        padding: 0 13px;
    }

    body.exam-select-page #tabPractice.tab-panel.active {
        display: block;
    }

    body.exam-select-page #practiceProgressRow {
        display: block;
    }

    body.exam-select-page .welcome-section.exam-hero-card {
        position: static;
        display: block;
        min-height: 0;
        margin: 24px 0 18px;
        padding: 0;
        text-align: left;
        overflow: visible;
    }

    body.exam-select-page .exam-hero-copy {
        left: 20px;
        top: 106px;
        padding-top: 0;
    }

    body.exam-select-page .welcome-section .exam-hero-title {
        font-size: 22px;
        line-height: 1.08;
    }

    body.exam-select-page .welcome-section .exam-hero-subtitle {
        max-width: 220px;
        margin-top: 9px;
        font-size: 11px;
        line-height: 1.45;
        letter-spacing: .4px;
    }

    body.exam-select-page .exam-hero-mascot {
        position: absolute;
        left: auto;
        right: 1px;
        top: 77px;
        width: 160px;
        height: 122px;
        opacity: .72;
    }

    body.exam-select-page .exam-hero-stats {
        grid-template-columns: 105px 105px minmax(0, 1fr);
        width: 100%;
        min-height: 72px;
        margin-top: 28px;
        margin-left: 0;
    }

    body.exam-select-page .exam-hero-stat {
        min-height: 58px;
        padding: 10px 20px;
    }

    body.exam-select-page .exam-hero-stat-label {
        font-size: 12px;
    }

    body.exam-select-page .exam-hero-stat-value {
        font-size: 18px;
    }

    body.exam-select-page .exam-hero-stat-value strong {
        font-size: 23px;
    }

    body.exam-select-page .exam-hero-stat-note {
        font-size: 10px;
    }

    body.exam-select-page .hw-cal-widget {
        display: block;
        width: 100%;
        min-height: 0;
        margin-top: 13px;
        padding: 16px 14px 18px;
    }

    body.exam-select-page .hw-cal-header {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 30px auto;
        gap: 7px;
        margin-bottom: 12px;
    }

    body.exam-select-page .hw-cal-weekdays {
        margin-bottom: 7px;
    }

    body.exam-select-page .hw-cal-days {
        gap: 5px 4px;
    }

    body.exam-select-page .pcal-records {
        margin-top: 14px;
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid #e9ecef;
    }

    body.exam-select-page .hw-dashboard {
        margin-top: 13px;
        padding: 18px 14px;
    }

    body.exam-select-page .hw-dash-header {
        gap: 10px;
    }

    body.exam-select-page .hw-dash-range {
        width: 100%;
        gap: 8px;
        transform: none;
    }

    body.exam-select-page .hw-dash-date {
        flex: 1 1 130px;
        min-width: 0;
    }

    body.exam-select-page .hw-dash-grid {
        grid-template-columns: 1fr;
    }

    body.exam-select-page .qbrowser {
        display: block;
        margin-top: 13px;
    }

    body.exam-select-page .qb-sidebar {
        display: block;
        width: 100%;
        min-width: 0;
        padding: 10px 14px 52px;
        border-right: 0;
        border-bottom: 1px solid rgba(225, 231, 235, .9);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    body.exam-select-page .qb-sidebar-section {
        display: inline-block;
        margin: 0 18px 0 0;
    }

    body.exam-select-page .qb-sidebar-heading {
        display: inline-flex;
        gap: 5px;
        padding: 0 0 7px;
        font-size: 12px;
    }

    body.exam-select-page .qb-sidebar-heading .qb-icon {
        width: 12px;
        height: 12px;
    }

    body.exam-select-page .qb-sidebar-items {
        display: none;
    }

    body.exam-select-page .qb-sidebar-section:has(.qb-sidebar-item.active) .qb-sidebar-items {
        left: 14px;
        right: 14px;
        bottom: 13px;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.exam-select-page .qb-sidebar-section:has(.qb-sidebar-item.active) .qb-sidebar-items::before {
        font-size: 11px;
    }

    body.exam-select-page .qb-sidebar-item {
        gap: 5px;
        padding: 7px 10px;
        font-size: 11px;
    }

    body.exam-select-page .qb-sidebar-item-standalone {
        padding: 0 0 7px;
        font-size: 12px;
    }

    body.exam-select-page .qb-toolbar {
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
        padding: 14px 18px;
    }

    body.exam-select-page .qb-toolbar-title {
        width: 100%;
        font-size: 14px;
        line-height: 1.35;
    }

    body.exam-select-page .qb-toolbar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    body.exam-select-page .qb-search-input {
        box-sizing: border-box;
        grid-column: 1 / -1;
        width: 100%;
        padding: 8px 10px;
        font-size: 12px;
    }

    body.exam-select-page .qb-select {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 8px 10px;
        font-size: 12px;
    }

    body.exam-select-page .qb-sat-practice-controls {
        padding: 12px 14px 14px;
    }

    body.exam-select-page .qb-sat-practice-mode-row,
    body.exam-select-page .qb-sat-practice-form-row {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        justify-content: stretch;
        gap: 10px;
    }

    body.exam-select-page .qb-sat-practice-form-row-common {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 10px;
    }

    body.exam-select-page .qb-sat-practice-mode-switch,
    body.exam-select-page .qb-sat-practice-mode-actions {
        width: 100%;
        min-width: 0;
    }

    body.exam-select-page .qb-sat-practice-mode-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 3px;
    }

    body.exam-select-page .qb-sat-practice-mode-btn {
        min-width: 0;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
    }

    body.exam-select-page .qb-sat-practice-mode-actions .qb-go-btn {
        width: 100%;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.exam-select-page .qb-sat-practice-field {
        width: 100%;
        min-width: 0;
        min-height: 0;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        font-size: 12px;
    }

    body.exam-select-page .qb-sat-practice-field-grow {
        flex: none;
    }

    body.exam-select-page .qb-sat-practice-textinput {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 38px;
        font-size: 13px;
    }

    body.exam-select-page .qb-sat-practice-inline-toggle {
        margin-left: 0;
    }

    body.exam-select-page .qb-table-wrap {
        overflow: visible;
    }

    body.exam-select-page .qb-table {
        display: block;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 13px;
    }

    body.exam-select-page .qb-table thead {
        display: none;
    }

    body.exam-select-page .qb-table tbody {
        display: grid;
        gap: 10px;
        padding: 12px 18px 14px;
    }

    body.exam-select-page .qb-table tbody tr {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-areas:
            "type num tag stars"
            "topic topic topic topic"
            "status status action action";
        align-items: center;
        gap: 8px 10px;
        min-width: 0;
        padding: 12px;
        border: 1px solid rgba(225, 231, 235, .9);
        border-radius: 10px;
        background: rgba(255, 255, 255, .84);
        box-shadow: 0 2px 8px rgba(15, 23, 42, .035);
    }

    body.exam-select-page .qb-table tbody td {
        display: flex;
        align-items: center;
        min-width: 0;
        padding: 0;
        border-bottom: 0;
    }

    body.exam-select-page .qb-table tbody td:nth-child(1) { grid-area: type; }
    body.exam-select-page .qb-table tbody td:nth-child(2) { grid-area: num; justify-content: flex-start; }
    body.exam-select-page .qb-table tbody td:nth-child(3) { display: flex !important; grid-area: topic; }
    body.exam-select-page .qb-table tbody td:nth-child(4) { grid-area: tag; justify-content: center; transform: translateX(-6px); }
    body.exam-select-page .qb-table tbody td:nth-child(5) { grid-area: stars; justify-content: flex-end; }
    body.exam-select-page .qb-table tbody td:nth-child(6) { display: none !important; }
    body.exam-select-page .qb-table tbody td:nth-child(7) { grid-area: status; justify-content: flex-start; }
    body.exam-select-page .qb-table tbody td:nth-child(8) { grid-area: action; justify-content: flex-end; }

    body.exam-select-page .qb-table tbody td:nth-child(7)::before {
        content: "我的答题：";
        margin-right: 4px;
        color: #66788b;
        font-size: 12px;
        font-weight: 500;
        line-height: 1;
    }

    body.exam-select-page .qb-topic-text {
        width: 100%;
        font-size: 13px;
        line-height: 1.35;
        color: #303746;
    }

    body.exam-select-page .qb-go-btn {
        padding: 6px 16px;
        font-size: 12px;
        border-radius: 6px;
    }

    body.exam-select-page .qb-pagination {
        gap: 7px;
        padding: 14px 18px;
        flex-wrap: wrap;
    }

    body.exam-select-page .qb-page-jump {
        width: 100%;
        justify-content: center;
        gap: 8px;
        margin-top: 4px;
        margin-left: 0;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body.exam-select-page .qb-sat-practice-form-row-common {
        grid-template-columns: 1fr;
    }

    body.exam-select-page .qb-sat-practice-field {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    body.exam-select-page .exam-hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    body.exam-select-page .exam-hero-stat:nth-child(2) {
        border-right: 0;
    }

    body.exam-select-page .exam-hero-stat:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(15, 23, 42, .08);
    }
}

/* Public subject home: migrated horizontal category rail. */
body.exam-select-page .qb-sidebar {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 12px 27px 16px;
    overflow: hidden;
}

body.exam-select-page .qb-sidebar-primary,
body.exam-select-page .qb-sidebar-secondary {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body.exam-select-page .qb-sidebar-primary::-webkit-scrollbar,
body.exam-select-page .qb-sidebar-secondary::-webkit-scrollbar {
    display: none;
}

body.exam-select-page .qb-sidebar-primary {
    gap: 34px;
}

body.exam-select-page .qb-sidebar-secondary {
    gap: 14px;
    min-height: 34px;
}

body.exam-select-page .qb-sidebar-secondary.is-empty {
    display: none;
}

body.exam-select-page .qb-sidebar-secondary::before {
    content: "题型选择：";
    flex: 0 0 auto;
    color: #66788b;
    font-size: 14px;
    font-weight: 500;
}

body.exam-select-page .qb-sidebar-secondary:has(.qb-sat-layered-tree)::before {
    content: none;
    display: none;
}

body.exam-select-page .qb-sidebar-primary .qb-sidebar-section {
    display: block;
    flex: 0 0 auto;
    margin: 0;
}

body.exam-select-page .qb-sidebar-primary .qb-sidebar-item-standalone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #66788b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

body.exam-select-page .qb-sidebar-primary .qb-sidebar-item-standalone.active {
    color: #08bfa2;
    border-bottom-color: #08bfa2;
    background: transparent;
}

body.exam-select-page .qb-sidebar-primary .qb-sidebar-item-standalone:hover {
    background: transparent;
    color: #303746;
}

body.exam-select-page .qb-sidebar-secondary .qb-sidebar-item {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #66788b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

body.exam-select-page .qb-sidebar-secondary .qb-sidebar-item:hover {
    background: #f4f8fb;
    color: #303746;
}

body.exam-select-page .qb-sidebar-secondary .qb-sidebar-item.active {
    border-color: #08bfa2;
    background: rgba(8, 191, 162, .08);
    color: #08bfa2;
}

body.exam-select-page .qb-sidebar-secondary .qb-item-count {
    display: none;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-practice-tree {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding-left: 0;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-practice-tree-list,
body.exam-select-page .qb-sidebar-secondary .qb-sat-practice-tree-children {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-practice-tree-node {
    flex: 0 0 auto;
    margin-top: 0;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-practice-tree-toggle {
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    white-space: nowrap;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-practice-tree-toggle.is-selected {
    border-color: #08bfa2;
    background: rgba(8, 191, 162, .08);
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-layered-tree {
    display: grid;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-layer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-layer-label {
    flex: 0 0 auto;
    min-width: 36px;
    color: #66788b;
    font-size: 13px;
    font-weight: 600;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-layer-items {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-layer-items::-webkit-scrollbar {
    display: none;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-layer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #66788b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-layer-btn:hover {
    background: #f4f8fb;
    color: #303746;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-layer-btn.is-selected {
    border-color: #08bfa2;
    background: rgba(8, 191, 162, .08);
    color: #08bfa2;
}

body.exam-select-page .qb-sidebar-secondary .qb-sat-layer-count {
    color: #98a3ae;
    font-size: 12px;
    font-weight: 500;
}

body.exam-select-page .qb-sidebar-section:has(.qb-sidebar-item.active) .qb-sidebar-items {
    position: static;
    display: none;
}

@media (max-width: 768px) {
    body.exam-select-page .qb-sidebar {
        padding: 10px 14px 14px;
        gap: 11px;
    }

    body.exam-select-page .qb-sidebar-primary {
        gap: 18px;
    }

    body.exam-select-page .qb-sidebar-secondary {
        gap: 8px;
    }

    body.exam-select-page .qb-sidebar-secondary::before {
        font-size: 11px;
    }

    body.exam-select-page .qb-sidebar-primary .qb-sidebar-item-standalone {
        padding-bottom: 7px;
        font-size: 12px;
    }

    body.exam-select-page .qb-sidebar-primary .qb-icon {
        width: 12px;
        height: 12px;
    }

    body.exam-select-page .qb-sidebar-secondary .qb-sidebar-item,
    body.exam-select-page .qb-sidebar-secondary .qb-sat-practice-tree-toggle {
        padding: 7px 10px;
        font-size: 11px;
    }

    body.exam-select-page .qb-sidebar-secondary .qb-sat-layered-tree {
        gap: 8px;
    }

    body.exam-select-page .qb-sidebar-secondary .qb-sat-layer-row {
        gap: 8px;
    }

    body.exam-select-page .qb-sidebar-secondary .qb-sat-layer-label {
        min-width: 30px;
        font-size: 11px;
    }

    body.exam-select-page .qb-sidebar-secondary .qb-sat-layer-btn {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 11px;
    }
}
