.bundle-intro{padding:12px 16px;background:#f4f8ff;border:1px solid #dfe9fb;border-radius:8px;color:#526d94;font-size:13px}.bundle-intro p{margin:8px 0 0}.bundle-card{display:flex;align-items:center;gap:24px;padding:20px;border:1px solid #e2e9f4;border-radius:12px;margin:12px 0}.bundle-card>div:first-child{flex:1}.bundle-card h3{font-size:16px}.bundle-card ul{padding-left:20px;color:#526887;font-size:13px;line-height:1.8}.bundle-card li small{color:#93a0b1}.bundle-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;max-width:280px}.bundle-item{padding:16px;border:1px solid #e2e9f4;border-radius:10px;margin:14px 0}.bundle-item .ct-toolbar{margin:0 0 12px}.bundle-slot-table th,.bundle-slot-table td{padding:6px 10px!important;height:28px;text-align:center}.bundle-mode{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:12px}.bundle-name{display:flex;align-items:center;gap:12px;margin:12px 0}.bundle-name input{width:320px}.bundle-task-list{overflow:auto;max-height:430px;border:1px solid #e2e9f4;border-radius:8px}.bundle-task-list th{position:sticky;top:0;z-index:1}.bundle-task-list td{padding:9px 12px;height:auto}.bundle-import-list{max-height:450px;overflow:auto}.bundle-import-list label{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #e7edf5}.bundle-import-list small{display:block;color:#8191a7;margin-top:4px}.bundle-ack{display:flex;align-items:center;gap:10px;margin:16px 0;color:#9d6628}.bundle-entry{font-size:12px;margin-left:auto}.prep-tools .bundle-entry{grid-column:1/-1;justify-self:start;margin:0}.bundle-dialog .modalbody{scrollbar-width:thin}@media(max-width:800px){.bundle-card{flex-direction:column;align-items:stretch}.bundle-actions{max-width:none}.bundle-name input{max-width:70%}}

/* 常用组：创建操作独立，三步选择已有条件。 */
.bundle-library-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 20px}.bundle-library-heading h2{font-size:18px;margin:0 0 8px}.bundle-library-heading p{margin:0;color:#7b8ba1;font-size:13px}.bundle-library-heading .btn{flex-shrink:0}.bundle-library-search{margin:18px 0}.bundle-library-search label,.bundle-source-search{display:flex;align-items:center;gap:12px;font-size:13px;color:#667891}.bundle-library-search input{width:300px}.bundle-steps{display:flex;list-style:none;padding:16px 20px;margin:0 0 24px;background:#f5f8fd;border-radius:8px;gap:24px}.bundle-steps li{flex:1;display:flex;gap:10px;align-items:center;color:#8895a8;font-size:14px}.bundle-steps li>span{display:grid;place-items:center;border:1px solid #d6dfed;border-radius:50%;width:28px;height:28px;flex-shrink:0}.bundle-steps li.active{color:#1764ff;font-weight:600}.bundle-steps li.active>span{background:#1764ff;color:white;border-color:#1764ff}.bundle-steps li.done{color:#4874af}.bundle-step-title{font-size:16px;margin:0 0 12px}.bundle-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.bundle-type-card{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid #e1e8f3;border-radius:8px;text-align:left;background:white;min-height:150px}.bundle-type-card strong{font-size:15px;color:#304865}.bundle-type-card>span{font-size:12px;line-height:1.7;color:#7c8ba0;flex:1}.bundle-type-card small{color:#4773b4}.bundle-type-card.active{border-color:#3473ff;background:#f3f7ff;box-shadow:0 0 0 1px #3473ff}.bundle-type-card:not(:disabled):hover{border-color:#7fa7ef}.bundle-condition-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px}.bundle-type-list{padding:14px;background:#f7f9fc;border:1px solid #e4eaf3;border-radius:8px;max-height:430px;overflow:auto}.bundle-type-list h3{font-size:12px;color:#8a98ab;margin:0 0 10px}.bundle-type-list button{display:flex;width:100%;justify-content:space-between;text-align:left;gap:8px;padding:12px 8px;font-size:13px;border-radius:5px;margin:3px 0}.bundle-type-list button.active{background:#e9f0ff;color:#1764ff}.bundle-type-list small{color:#8291a7}.bundle-condition-main{min-width:0}.bundle-source-search{margin-bottom:16px}.bundle-source-search input{flex:1;min-width:0}.bundle-condition-main .bundle-import-list{max-height:345px}.bundle-source-card{border:1px solid #e1e8f3!important;border-radius:8px;align-items:flex-start!important;margin-bottom:10px;padding:16px!important;gap:12px!important}.bundle-source-card.selected{background:#f4f8ff;border-color:#9bbcf8!important}.bundle-source-card>input{flex-shrink:0;margin-top:4px}.bundle-source-card>span{min-width:0;overflow-wrap:anywhere}.bundle-source-condition{display:block;font-size:13px;line-height:1.8;color:#415c7f;margin:10px 0}.bundle-source-scope-note{color:#96a3b5}.bundle-selection-summary{display:flex;gap:12px;flex-wrap:wrap;align-items:center;background:#f5f8fd;border-radius:6px;padding:12px 14px;margin-top:18px;color:#41618c;font-size:13px}.bundle-selection-summary>span{margin-left:auto;font-size:12px;color:#7c8da4}@media(max-width:800px){.bundle-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bundle-condition-layout{grid-template-columns:170px minmax(0,1fr);gap:14px}.bundle-steps{gap:12px;padding:12px}.bundle-steps li{font-size:12px;gap:6px}.bundle-library-heading{align-items:flex-start}}@media(max-width:560px){.bundle-library-heading{flex-direction:column}.bundle-type-grid{grid-template-columns:1fr}.bundle-condition-layout{grid-template-columns:1fr}.bundle-type-list{display:flex;gap:6px;max-height:none;overflow:auto}.bundle-type-list h3{display:none}.bundle-type-list button{white-space:nowrap;width:auto;flex-shrink:0}.bundle-steps li{flex-direction:column;text-align:center}.bundle-library-search input{width:100%;min-width:0}}

/* 分类页头：常用组与学期一行，标题与查询一行。 */
.page .rule-header-row{align-items:center;min-height:40px;margin-bottom:18px}.rule-header-row .bundle-entry{font-size:14px;font-weight:500;padding:9px 20px;min-height:40px;margin:0}.rule-category-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin:0 0 20px}.page .rule-category-toolbar>.category-intro{margin:0;padding:0;min-height:0;border:0}.rule-category-toolbar>.filters{margin:0;gap:12px}.rule-category-toolbar #query{width:300px;max-width:100%}.rule-category-toolbar>.category-intro h2{white-space:nowrap}@media(max-width:1100px){.rule-category-toolbar{gap:12px}.rule-category-toolbar>.filters{flex-wrap:wrap}.rule-category-toolbar #query{width:250px}}

.bundle-source-term{padding:14px 16px;background:#f7f9fc;border:1px solid #e2e9f3;border-radius:8px;margin:0 0 20px}.bundle-source-term label{display:flex;align-items:center;gap:12px;font-size:13px;color:#365472;flex-wrap:wrap}.bundle-source-term p{margin:9px 0 0;font-size:12px;color:#7a8ba1;line-height:1.7}.bundle-item-origin{display:block;color:#8392a6;margin-top:8px}

/* 常用组入口直接解释用途，问号支持悬停、聚焦和点击。 */
.bundle-entry-intro{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.bundle-entry-intro .bundle-entry{margin:0}.bundle-entry-note{font-size:13px;color:#70839d;line-height:1.7}.bundle-entry-help{position:relative;display:inline-flex;align-items:center}.bundle-help-trigger{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid #9db9e7;color:#4778be;font-size:14px;background:#f5f8ff;cursor:help}.bundle-entry-tooltip{position:absolute;left:0;top:calc(100% + 9px);z-index:50;width:340px;max-width:calc(100vw - 80px);background:#fff;border:1px solid #d4e1f3;box-shadow:0 6px 22px #203d6b26;border-radius:8px;padding:16px;visibility:hidden;opacity:0;color:#536d8d;font-size:13px;line-height:1.8;text-align:left}.bundle-entry-tooltip strong,.bundle-entry-tooltip>span,.bundle-entry-tooltip small{display:block}.bundle-entry-tooltip strong{color:#29496d;margin-bottom:8px}.bundle-entry-tooltip>span+span{margin-top:8px}.bundle-entry-tooltip small{color:#8594a7;margin-top:10px;border-top:1px solid #e6edf6;padding-top:8px}.bundle-entry-help:hover .bundle-entry-tooltip,.bundle-entry-help:focus-within .bundle-entry-tooltip,.bundle-entry-help.is-open .bundle-entry-tooltip{visibility:visible;opacity:1}.prep-tools .bundle-entry-intro{grid-column:1/-1;justify-self:start}.rule-header-row>div:first-child{min-width:0}@media(max-width:1100px){.bundle-entry-intro{gap:8px}.bundle-entry-note{max-width:240px}.bundle-entry-tooltip{left:auto;right:0}}@media(max-width:700px){.bundle-entry-note{font-size:12px;max-width:180px}.page .rule-header-row{flex-wrap:wrap}}

/* 子规则只保留左侧返回，标题与新增设置同排。 */
#page>.rule-current-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0 16px}#page>.rule-current-heading>.rule-current-title{display:block;flex:1;min-width:0}#page>.rule-current-heading>.rule-current-title h2{font-size:18px;line-height:1.5;margin:0;color:#253e5d}#page>.type-management-heading.rule-current-heading>div:empty{display:none}@media(max-width:700px){#page>.rule-current-heading{flex-wrap:wrap}}

#page>.type-management-heading.rule-current-heading>.rule-current-title{display:block}

/* 第二步优先给条件列表留空间：宽窗口、顶部类型标签、单一列表滚动。 */
.modal.bundle-source-dialog{width:min(1480px,96vw);height:94vh;max-height:94vh}.bundle-source-dialog>.modalbody{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:18px 22px}.bundle-source-dialog .bundle-steps{flex-shrink:0;margin-bottom:12px;padding:10px 16px}.bundle-source-dialog .bundle-source-term{display:flex;align-items:center;gap:16px;flex-wrap:wrap;flex-shrink:0;padding:10px 14px;margin-bottom:12px}.bundle-source-dialog .bundle-source-term p{margin:0}.bundle-source-dialog .bundle-condition-layout{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0}.bundle-source-dialog .bundle-type-list{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 10px;border:0;border-bottom:1px solid #e3eaf4;border-radius:0;background:white;max-height:none;overflow:visible;flex-shrink:0}.bundle-source-dialog .bundle-type-list button{width:auto;align-items:center;justify-content:center;gap:10px;padding:9px 14px;margin:0;border:1px solid #e0e7f2;background:#f8faff;font-size:13px}.bundle-source-dialog .bundle-type-list button.active{background:#edf3ff;border-color:#9dbdf4;color:#1764ff}.bundle-source-dialog .bundle-condition-main{display:flex;flex-direction:column;min-height:0;flex:1}.bundle-source-dialog .bundle-step-title{font-size:15px;margin-bottom:10px;flex-shrink:0}.bundle-source-dialog .bundle-source-search{margin-bottom:12px;flex-shrink:0}.bundle-source-dialog .bundle-source-search input{flex:0 1 420px}.bundle-source-dialog .bundle-import-list{max-height:none;min-height:0;flex:1;overflow:auto;padding-right:8px;scrollbar-width:thin;overscroll-behavior:contain}.bundle-source-dialog .bundle-source-card{padding:12px 16px!important;margin-bottom:8px}.bundle-source-dialog .bundle-source-condition{margin:6px 0;line-height:1.7}.bundle-source-dialog .bundle-selection-summary{flex-shrink:0;margin-top:10px;padding:9px 12px}.bundle-source-dialog .bundle-selection-summary>span:empty{display:none}.bundle-source-dialog .modalerror{flex-shrink:0;margin-bottom:0}.bundle-source-dialog>.modalhead,.bundle-source-dialog>.modalfoot{flex-shrink:0}@media(max-width:800px){.modal.bundle-source-dialog{width:98vw;height:96vh;max-height:96vh}.bundle-source-dialog>.modalbody{padding:12px 14px}.bundle-source-dialog .bundle-source-term{gap:6px}.bundle-source-dialog .bundle-type-list{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}.bundle-source-dialog .bundle-type-list button{flex-shrink:0}.bundle-source-dialog .bundle-source-term p{font-size:11px}.bundle-source-dialog .bundle-source-card{padding:10px 12px!important}}

.bundle-source-dialog .bundle-conditions-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:12px;flex-shrink:0}.bundle-source-dialog .bundle-conditions-heading .bundle-step-title,.bundle-source-dialog .bundle-conditions-heading .bundle-source-search{margin:0}.bundle-source-dialog .bundle-conditions-heading .bundle-source-search input{width:320px;flex:auto}.bundle-source-dialog .bundle-source-card small{margin-top:3px}@media(max-width:700px){.bundle-source-dialog .bundle-conditions-heading{gap:8px}.bundle-source-dialog .bundle-conditions-heading .bundle-source-search input{width:220px}}

.bundle-description{font-size:13px;line-height:1.8;color:#536d8d;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 12px}.bundle-description-field{display:flex;align-items:flex-start;gap:12px;margin:14px 0;font-size:14px}.bundle-description-field textarea{width:min(620px,85%);min-height:88px;resize:vertical}.bundle-card .bundle-actions{max-width:260px}

.bundle-application-context{padding:16px 18px;border:1px solid #dce6f6;background:#f7faff;border-radius:8px;margin-bottom:20px}.bundle-application-context h2{font-size:18px;margin:0 0 8px}.bundle-application-context p{color:#647e9f;line-height:1.7;margin:8px 0;white-space:pre-wrap}.bundle-application-context>div{margin-top:10px;color:#536c8d;font-size:13px}.bundle-application-context>div>span{display:inline-block;width:80px;color:#8595ac}.bundle-application-context ul{color:#536c8d;font-size:13px;line-height:1.8;padding-left:20px;margin-bottom:0}.bundle-result-table{overflow:auto;border:1px solid #e1e8f3;border-radius:6px}.bundle-result-table th,.bundle-result-table td{padding:12px;white-space:normal;line-height:1.7}.bundle-result-table th:first-child{width:30%}.bundle-result-table th:last-child{width:110px}.bundle-application-details{margin:16px 0;border:1px solid #e2e9f3;border-radius:6px;padding:12px 14px}.bundle-application-details summary{cursor:pointer;color:#5475a4;font-size:13px}.bundle-application-details li{line-height:1.8;font-size:13px;margin:8px 0}.bundle-apply-impact{padding:14px 16px;background:#f7f9fc;border-radius:6px;color:#5e7592;font-size:13px;margin-top:16px}.bundle-apply-impact ul{padding-left:20px;line-height:1.9;margin:6px 0 0}

.bundle-simple-term{color:#74869f;font-size:13px;margin:0 0 16px}.bundle-target-requirements th:first-child{width:20%}.bundle-target-requirements th:last-child{width:45%}.bundle-requirement-name{margin:5px 0;color:#36577f}.bundle-requirement-name small{margin-left:10px;font-size:12px}

.campus-gap-field{display:flex;align-items:center;gap:10px;margin:24px 0 10px}.campus-gap-field input{width:90px}.campus-gap-example{padding:14px 16px;background:#edf4ff;border:1px solid #d8e5fa;border-radius:6px;color:#41638f;margin:16px 0}

.campus-choice-list{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.campus-choice-list label{display:flex;align-items:center;gap:10px;padding:12px 18px;border:1px solid #d8e3f3;border-radius:6px;background:white;cursor:pointer}.campus-choice-list label:has(input:checked){border-color:#7da9f5;background:#edf4ff;color:#1764ff}.campus-link-editor .inline-rule-footer{justify-content:flex-end}

.audit-compact-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 14px}.audit-compact-heading h2{margin:0;font-size:19px}.audit-compact-heading label{display:flex;align-items:center;gap:10px;font-size:13px}.audit-compact-heading input{width:300px}.audit-categories.audit-category-tabs{margin:0 0 16px;border-bottom:1px solid #e2e9f3;gap:4px}.audit-category-tabs button{padding:10px 16px;border-bottom:2px solid transparent;color:#70829b}.audit-category-tabs button.active{color:#1764ff;border-color:#1764ff;background:#f7faff}.audit-category-tabs small{font-size:12px;margin-left:5px;color:#8596af}#auditResults>.teacher-matrix-panel,#auditResults>.class-matrix-panel{margin-top:0}@media(max-width:700px){.audit-compact-heading input{width:230px}}

.matrix-inline-editor{padding:8px 4px;min-width:130px}.matrix-inline-value{display:flex;align-items:center;gap:5px;justify-content:center;font-size:12px;margin:4px 0}.matrix-inline-value input{width:65px;min-height:32px;padding:5px 6px}.matrix-inline-editor select{max-width:130px;font-size:12px}.matrix-save-feedback{display:block;font-size:11px;line-height:1.5;margin-top:5px;white-space:normal}.matrix-scope-label{display:block;color:#8291a8;font-size:11px;line-height:1.5;margin-bottom:5px}.matrix-inline-editor input[aria-invalid="true"]{border-color:#dc5252}.matrix-inline-editor+.matrix-inline-editor{border-top:1px solid #e7edf5}

.teacher-matrix th .block-field-help{min-width:18px;height:18px;font-weight:400}.matrix-pending{display:block;color:#9aa4b4;background:#f4f5f7;padding:12px;font-size:12px}

/* 首页复用入口与操作引导放在顶部同一操作区。 */
.prep-welcome>.prep-header-actions{flex-direction:row;align-items:center;gap:12px;flex-wrap:wrap}.prep-header-actions .bundle-entry-intro{gap:8px;flex-wrap:nowrap}.prep-header-actions .bundle-entry{font-size:14px;padding:10px 16px;min-height:42px;margin:0}.prep-header-actions .bundle-entry-note{display:none}.prep-header-actions .bundle-entry-tooltip{left:auto;right:0}@media(max-width:1100px){#page .prep-welcome{flex-direction:column;align-items:flex-start}.prep-welcome>.prep-header-actions{align-self:flex-start}}

.bundle-entry-help>.bundle-entry{display:inline-flex;align-items:center;justify-content:center;gap:8px}.bundle-inline-question{display:inline-grid;place-items:center;width:17px;height:17px;border:1px solid currentColor;border-radius:50%;font-size:11px;font-weight:400;line-height:1}
