/*
 * 牛派讲堂主页面：与“羲黄实战”一致的内容外框和紧凑标签导航。
 * 单独置于主题样式之后，避免旧版按钮规则再次覆盖新版布局。
 */
body.blind-school-page:not(.blind-lesson-page) .school-main {
    width: 100%;
    min-width: 0;
    padding: 0 14px 16px;
    overflow: hidden;
    border: 1px solid #ddb27f;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    box-sizing: border-box;
}

body.blind-school-page:not(.blind-lesson-page) .school-content-panel.active {
    width: 100%;
    min-width: 0;
    gap: 14px;
    box-sizing: border-box;
}

/* “课程体系 / 关于盲派”和教学管理分栏统一为实战排名式文字标签。 */
body.blind-school-page:not(.blind-lesson-page) .course-subnav,
body.blind-school-page:not(.blind-lesson-page) .teaching-tabs,
body.blind-school-page:not(.blind-lesson-page) .school-section-label-tabs {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 28px;
    margin: 0 0 2px;
    padding: 0 2px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-bottom: 1px solid #ead4b8;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
    box-sizing: border-box;
}

body.blind-school-page:not(.blind-lesson-page) .course-subnav::-webkit-scrollbar,
body.blind-school-page:not(.blind-lesson-page) .teaching-tabs::-webkit-scrollbar,
body.blind-school-page:not(.blind-lesson-page) .school-section-label-tabs::-webkit-scrollbar {
    display: none;
}

body.blind-school-page:not(.blind-lesson-page) .course-subnav button,
body.blind-school-page:not(.blind-lesson-page) .teaching-tabs :is(button, .teaching-tab-link),
body.blind-school-page:not(.blind-lesson-page) .school-section-label-tabs :is(button, span) {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 50px;
    box-sizing: border-box;
    margin: 0;
    padding: 16px 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8b4513;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
}

body.blind-school-page:not(.blind-lesson-page) .school-section-label-tabs :is(button, span) {
    display: flex;
    align-items: center;
}

body.blind-school-page:not(.blind-lesson-page) .course-subnav button:hover,
body.blind-school-page:not(.blind-lesson-page) .teaching-tabs :is(button, .teaching-tab-link):hover {
    border: 0;
    background: transparent;
    color: #9d4d12;
    box-shadow: none;
}

body.blind-school-page:not(.blind-lesson-page) .course-subnav button.active,
body.blind-school-page:not(.blind-lesson-page) .teaching-tabs :is(button, .teaching-tab-link).active,
body.blind-school-page:not(.blind-lesson-page) .school-section-label-tabs :is(button, span).active {
    border: 0;
    background: transparent;
    color: #8b4513;
    font-weight: 800;
    box-shadow: none;
}

body.blind-school-page:not(.blind-lesson-page) .course-subnav button.active::after,
body.blind-school-page:not(.blind-lesson-page) .teaching-tabs :is(button, .teaching-tab-link).active::after,
body.blind-school-page:not(.blind-lesson-page) .school-section-label-tabs :is(button, span).active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    display: block;
    width: auto;
    height: 2px;
    border: 0;
    border-radius: 999px;
    background: #c58b4c;
}

.school-main:has(.usage-overview-tab-panel.active) {
    /* Leave just enough document range for the usage frame to reach its
       locked 8px viewport anchor without shrinking the table itself. */
    padding-bottom: 16px;
    overflow-anchor: none;
}

.usage-overview-tab-panel.active {
    min-height: calc(100vh - 96px);
    padding-bottom: 16px;
    overflow: hidden;
    overflow-anchor: none;
}

.usage-overview-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 96px);
    min-height: 719px;
    border: 0;
    background: transparent;
    overscroll-behavior: auto;
    overflow-anchor: none;
}

body.usage-overview-frame-pinned .usage-overview-frame {
    overscroll-behavior: contain;
    min-height: 0 !important;
    max-height: calc(100vh - 72px);
}

/* Desktop usage overview: turn the stacked bottom gutters into table
   viewport instead of leaving blank bands below the horizontal scrollbar. */
@media (min-width: 768px) and (any-pointer: fine) {
    body.blind-school-page:not(.blind-lesson-page) .school-main:has(.usage-overview-tab-panel.active) {
        padding-bottom: 4px !important;
    }

    .usage-overview-tab-panel.active {
        min-height: calc(100vh - 32px);
        padding-bottom: 0;
    }

    .usage-overview-frame {
        height: calc(100vh - 32px);
    }

    body.usage-overview-frame-pinned .usage-overview-frame {
        max-height: calc(100vh - 8px);
    }
}

body.blind-school-page:not(.blind-lesson-page) .school-section-label-tabs {
    margin-bottom: 0;
}

body.blind-school-page:not(.blind-lesson-page) .school-section-label-tabs + .section-heading {
    margin-top: 0;
    padding-top: 12px;
}

body.blind-school-page:not(.blind-lesson-page) .knowledge-subtab-panel > .section-heading {
    margin-top: 0;
    padding-top: 12px;
}

.knowledge-subtab-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.knowledge-subtab-panel[hidden] {
    display: none;
}

.term-encyclopedia {
    padding: 0 0 4px;
}

.term-encyclopedia-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: end;
    gap: 22px;
    padding: 12px 0 8px;
}

.term-encyclopedia-head h2 {
    margin: 6px 0 6px;
    color: #24585d;
    font-family: "STSong", "SimSun", "Noto Serif SC", "Microsoft YaHei", serif;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.16;
    letter-spacing: 0.02em;
}

.term-encyclopedia-head p {
    max-width: 720px;
    margin: 0;
    color: #6f665c;
    line-height: 1.75;
}

.term-encyclopedia-search {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(159, 200, 192, 0.82);
    border-radius: 15px;
    background: rgba(255, 253, 248, 0.96);
}

.term-encyclopedia-search > span {
    color: #6f8c8d;
    font-size: 24px;
}

.term-encyclopedia-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #27585d;
    font: inherit;
    font-size: 16px;
}

.term-encyclopedia-summary {
    min-height: 22px;
    color: #8f673e;
    font-size: 13px;
}

.term-directory-switch {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 42px;
    border-bottom: 1px solid rgba(159, 200, 192, 0.55);
}

.term-directory-switch[hidden] {
    display: none;
}

.term-directory-switch button {
    position: relative;
    align-self: stretch;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #6d7776;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}

.term-directory-switch button::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    content: "";
}

.term-directory-switch button.active {
    color: #24585d;
    font-weight: 800;
}

.term-directory-switch button.active::after {
    background: #3c8e83;
}

.term-directory-switch button:focus-visible {
    outline: 2px solid rgba(60, 142, 131, 0.45);
    outline-offset: 4px;
}

.term-encyclopedia-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.term-encyclopedia-categories[hidden],
.term-encyclopedia-summary[hidden],
.term-force-map[hidden] {
    display: none;
}

.term-force-map {
    display: grid;
    gap: 18px;
    padding: clamp(18px, 2.4vw, 28px);
    border: 1px solid rgba(221, 178, 127, 0.68);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 48%, rgba(207, 231, 241, 0.42), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 239, 210, 0.24));
    box-shadow: 0 14px 32px rgba(82, 67, 48, 0.07);
}

.term-force-map-head {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1.28fr);
    align-items: end;
    gap: 24px;
}

.term-force-map-head span,
.term-force-map footer {
    color: #a56c37;
    font-size: 13px;
}

.term-force-map-head h3 {
    margin: 4px 0 0;
    color: #24585d;
    font-size: clamp(24px, 2.5vw, 32px);
}

.term-force-map-head > p {
    margin: 0;
    color: #6f665c;
    line-height: 1.7;
}

.term-force-map-board {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 0.82fr) 132px minmax(460px, 1.55fr);
    grid-template-areas:
        "stems core branches"
        "self self branches";
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.term-force-map-board::before {
    display: none;
    position: absolute;
    content: "";
}

.term-force-map-core {
    grid-area: core;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    align-self: center;
    display: grid;
    place-content: center;
    min-height: 112px;
    padding: 16px;
    border: 2px solid rgba(60, 142, 131, 0.72);
    border-radius: 22px;
    background: linear-gradient(145deg, #24585d, #3c8e83);
    color: #fffdf8;
    text-align: center;
    box-shadow: 0 12px 24px rgba(36, 88, 93, 0.2);
}

.term-force-map-core::before {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: -22px;
    width: 22px;
    height: 2px;
    background: #3c8e83;
    box-shadow: 154px 0 0 #3c8e83;
    content: "";
    transform: translateY(-50%);
}

.term-force-map-core::after {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: -1;
    width: 2px;
    height: calc(100% + 24px);
    background: #3c8e83;
    content: "";
    transform: translateX(-50%);
}

.term-force-map-core span {
    font-size: 15px;
    letter-spacing: 0.16em;
}

.term-force-map-core strong {
    margin-top: 3px;
    font-size: 24px;
}

.term-force-map-branch {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(159, 200, 192, 0.68);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.96);
}

.term-force-map-branch::before {
    display: none;
    content: "";
}

.term-force-map-branch[hidden] {
    display: none;
}

.term-force-map-branch-stems {
    grid-area: stems;
}

.term-force-map-branch-branches {
    grid-area: branches;
}

.term-force-map-branch-self {
    grid-area: self;
    align-self: start;
}

.term-force-map-branch > header {
    border-left: 4px solid #3c8e83;
    padding-left: 11px;
}

.term-force-map-branch h4 {
    margin: 0;
    color: #24585d;
    font-size: 21px;
}

.term-force-map-branch header p {
    margin: 4px 0 0;
    color: #817366;
    font-size: 13px;
    line-height: 1.55;
}

.term-force-map-nodes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.term-force-map-branch-stems .term-force-map-nodes,
.term-force-map-branch-self .term-force-map-nodes {
    grid-template-columns: 1fr;
}

.term-force-map-branch-branches .term-force-map-nodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.term-force-map-nodes button {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 72px;
    padding: 11px 13px;
    border: 1px solid rgba(159, 200, 192, 0.62);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(207, 231, 241, 0.58), rgba(248, 239, 210, 0.48));
    color: #254f53;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.term-force-map-nodes button:hover,
.term-force-map-nodes button:focus-visible {
    border-color: #3c8e83;
    outline: 0;
    background: rgba(207, 231, 241, 0.84);
    box-shadow: 0 7px 16px rgba(36, 88, 93, 0.1);
    transform: translateY(-1px);
}

.term-force-map-nodes button[hidden] {
    display: none;
}

.term-force-map-nodes strong {
    color: #8b4513;
    font-size: 17px;
}

.term-force-map-nodes span {
    color: #597071;
    font-size: 13px;
    line-height: 1.45;
}

.term-force-map-empty {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    background: rgba(248, 239, 210, 0.46);
    color: #8f673e;
    text-align: center;
}

.term-force-map-empty[hidden] {
    display: none;
}

.term-category-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(221, 178, 127, 0.65);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 239, 210, 0.33));
    box-shadow: 0 12px 26px rgba(82, 67, 48, 0.06);
}

.term-category-card[hidden] {
    display: none;
}

.term-category-card > header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.term-category-card h3 {
    margin: 0;
    color: #285c61;
    font-size: 21px;
}

.term-category-card header p {
    margin: 6px 0 0;
    color: #817366;
    font-size: 13px;
    line-height: 1.55;
}

.term-category-card header > span {
    color: #a56c37;
    font-size: 14px;
    font-weight: 800;
}

.term-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.term-chip-grid button {
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid rgba(159, 200, 192, 0.46);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(207, 231, 241, 0.52), rgba(248, 239, 210, 0.44));
    color: #254f53;
    font: inherit;
    line-height: 1.35;
    cursor: pointer;
}

.term-chip-grid button[data-term-open="yang-day-food-god-officer"] {
    padding-inline: 3px;
    font-size: 11px;
    letter-spacing: -0.35px;
    white-space: nowrap !important;
    overflow-wrap: normal;
    word-break: keep-all;
}

.term-chip-grid button:hover,
.term-chip-grid button:focus-visible {
    border-color: #9fc8c0;
    outline: 0;
    background: rgba(207, 231, 241, 0.76);
    color: #8b4513;
}

.term-chip-grid button[hidden] {
    display: none;
}

.term-entry-reader {
    display: grid;
    gap: 14px;
}

.term-entry-reader[hidden],
.term-entry-detail[hidden] {
    display: none;
}

.term-entry-back {
    justify-self: start;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(159, 200, 192, 0.76);
    border-radius: 9px;
    background: #fffdf8;
    color: #285c61;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.term-entry-detail {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid rgba(221, 178, 127, 0.7);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
}

.term-entry-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #ead4b8;
    padding-bottom: 14px;
}

.term-entry-title-row span,
.term-entry-detail footer {
    color: #9b6a3e;
    font-size: 13px;
}

.term-entry-title-row h2 {
    margin: 5px 0 0;
    color: #24585d;
    font-size: clamp(26px, 3vw, 38px);
}

.term-entry-title-row > p {
    margin: 0;
    color: #7b6c60;
    font-size: 14px;
}

.term-entry-definition {
    margin: 0;
    color: #2f4f52;
    font-size: 17px;
    line-height: 1.9;
}

.term-entry-points {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 16px 18px 16px 38px;
    border-radius: 12px;
    background: rgba(248, 239, 210, 0.44);
    color: #4f5f5f;
    line-height: 1.72;
}

.term-entry-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(159, 200, 192, 0.62);
    border-radius: 12px;
    background: #fffdfa;
    -webkit-overflow-scrolling: touch;
}

.term-entry-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #35575a;
    font-size: 14px;
    line-height: 1.55;
}

.term-entry-table caption {
    padding: 14px 16px 10px;
    color: #24585d;
    font-size: 18px;
    font-weight: 800;
    text-align: left;
}

.term-entry-table th,
.term-entry-table td {
    padding: 12px 14px;
    border-top: 1px solid rgba(159, 200, 192, 0.42);
    border-right: 1px solid rgba(159, 200, 192, 0.32);
    vertical-align: middle;
    text-align: left;
    overflow-wrap: anywhere;
}

.term-entry-table th:last-child,
.term-entry-table td:last-child {
    border-right: 0;
}

.term-entry-table thead th {
    background: #285c61;
    color: #fffdf8;
    font-weight: 800;
}

.term-entry-table tbody th {
    width: 16%;
    background: rgba(248, 239, 210, 0.55);
    color: #9b4c16;
    font-weight: 800;
}

.term-entry-table tbody tr:nth-child(even) td {
    background: rgba(234, 246, 244, 0.35);
}

.term-entry-cell-stack {
    display: grid;
    justify-items: start;
    gap: 5px;
    white-space: nowrap;
}

.term-entry-cell-stack > span {
    display: block;
}

.term-entry-table-paired-stems {
    min-width: 900px;
}

.term-entry-table-paired-stems th:nth-child(1),
.term-entry-table-paired-stems th:nth-child(4) {
    width: 9%;
    text-align: center;
}

.term-entry-table-paired-stems th:nth-child(2),
.term-entry-table-paired-stems th:nth-child(3),
.term-entry-table-paired-stems th:nth-child(5),
.term-entry-table-paired-stems th:nth-child(6) {
    width: 20.5%;
}

.term-entry-table-paired-stems tbody th:nth-child(4) {
    background: rgba(248, 239, 210, 0.55);
    color: #9b4c16;
}

.term-entry-table-paired-stems .term-entry-cell-stack {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.term-entry-table-paired-stems .term-entry-cell-stack > span {
    display: inline-block;
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 1;
    letter-spacing: 2px;
}

.term-entry-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.term-entry-images figure {
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(159, 200, 192, 0.5);
    border-radius: 14px;
    background: #fffdfa;
    text-align: center;
}

.term-entry-images img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.term-entry-images figcaption {
    margin-top: 10px;
    color: #745c46;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .term-encyclopedia-head,
    .term-encyclopedia-categories,
    .term-force-map-head {
        grid-template-columns: 1fr;
    }

    .term-force-map-board {
        grid-template-columns: 1fr;
        grid-template-areas:
            "core"
            "stems"
            "self"
            "branches";
        align-items: stretch;
    }

    .term-force-map-board::before {
        display: block;
        top: 54px;
        right: 50%;
        bottom: 9%;
        left: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(#3c8e83, #d7b07a);
    }

    .term-force-map-core::before,
    .term-force-map-core::after,
    .term-force-map-branch::before {
        display: none;
    }

    .term-force-map-core {
        align-self: auto;
        justify-self: center;
        width: min(220px, 72%);
        min-height: 92px;
    }
}

@media (max-width: 560px) {
    .term-category-card {
        padding: 14px;
    }

    .term-directory-switch {
        gap: 20px;
    }

    .term-force-map {
        padding: 14px;
    }

    .term-force-map-nodes,
    .term-force-map-branch-stems .term-force-map-nodes,
    .term-force-map-branch-self .term-force-map-nodes,
    .term-force-map-branch-branches .term-force-map-nodes {
        grid-template-columns: 1fr;
    }

    .term-force-map-branch {
        padding: 14px;
    }

    .term-force-map-nodes button {
        min-height: 64px;
    }

    .term-chip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .term-chip-grid button {
        min-height: 44px;
        padding: 6px 4px;
        font-size: 13px;
    }

    .term-chip-grid button[data-term-open="yang-day-food-god-officer"] {
        padding-inline: 2px;
        font-size: 10px;
        letter-spacing: -0.5px;
    }

    .term-entry-title-row {
        display: grid;
        align-items: start;
    }

    .term-entry-table {
        min-width: 680px;
        font-size: 13px;
    }
}

body.blind-school-page:not(.blind-lesson-page) .course-subtab-panel,
body.blind-school-page:not(.blind-lesson-page) .teaching-tab-panel.active {
    min-width: 0;
}

body.blind-school-page:not(.blind-lesson-page) .class-management-title-row #class-add-toggle-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 82px;
}

body.blind-school-page:not(.blind-lesson-page) .class-create-fields {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(160px, 0.8fr) minmax(150px, 0.72fr) 96px 82px;
    gap: 10px;
    align-items: center;
}

body.blind-school-page:not(.blind-lesson-page) .class-management-panel > #class-manage-status:empty {
    display: none;
}

body.blind-school-page:not(.blind-lesson-page) .course-management-header-row {
    align-items: flex-start;
}

body.blind-school-page:not(.blind-lesson-page) .course-management-header-row #course-add-toggle-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 82px;
}

body.blind-school-page:not(.blind-lesson-page) .course-add-panel .course-fields {
    grid-template-columns: minmax(170px, 1.1fr) minmax(130px, 0.72fr) 142px 108px 96px 82px;
}

body.blind-school-page:not(.blind-lesson-page) .course-management-panel > #checkin-admin-status:empty {
    display: none;
}

@media (max-width: 760px) {
    body.blind-school-page:not(.blind-lesson-page) .school-main {
        padding: 0 9px 12px;
        border-radius: 16px;
    }

    body.blind-school-page:not(.blind-lesson-page) .course-subnav,
    body.blind-school-page:not(.blind-lesson-page) .teaching-tabs {
        gap: 20px;
        padding: 0 3px;
    }

    body.blind-school-page:not(.blind-lesson-page) .course-subnav button,
    body.blind-school-page:not(.blind-lesson-page) .teaching-tabs :is(button, .teaching-tab-link) {
        min-height: 44px;
        padding: 13px 0 10px;
        font-size: 14px;
    }

    body.blind-school-page:not(.blind-lesson-page) .class-create-fields {
        grid-template-columns: 1fr;
    }

    body.blind-school-page:not(.blind-lesson-page) .class-management-title-row #class-add-toggle-btn,
    body.blind-school-page:not(.blind-lesson-page) .course-management-header-row #course-add-toggle-btn {
        width: auto;
        min-width: 70px;
    }

    body.blind-school-page:not(.blind-lesson-page) .course-management-header-row {
        align-items: flex-start;
    }

    body.blind-school-page:not(.blind-lesson-page) .course-add-panel .course-fields {
        grid-template-columns: 1fr;
    }
}

/* 学员档案页内嵌复用教学管理：仅保留管理内容，避免重复品牌栏与左侧导航。 */
body.embedded-student-management-page {
    min-width: 0 !important;
    overflow-x: hidden !important;
    background: #fff !important;
}

body.embedded-student-management-page .blind-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.embedded-student-management-page .site-header,
body.embedded-student-management-page .school-sidebar,
body.embedded-student-management-page .teaching-tabs,
body.embedded-student-management-page .blind-ai-assistant {
    display: none !important;
}

body.embedded-student-management-page .school-workbench,
body.embedded-student-management-page .school-workbench:not(.sidebar-collapsed),
body.embedded-student-management-page .school-workbench.sidebar-collapsed {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.embedded-student-management-page .school-main {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 8px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
