/* Generated from scripts/script_manifest_source.js by scripts/generate_script_manifest.js. */
/* CSS bundle entry: assets/styles/platform-home.css */
/* 首页首屏样式入口：只保留平台首页必要结构 */

/* Source: assets/styles/platform-workspaces-layout-shell-grid.css */
/* 平台工作区：壳层网格与基础显示 */

.section { display: none; }
.section.active { display: block; }
body.app-booting .section { display: none !important; }
.view-pane { display: none; }
.view-pane.active { display: block; }

.home-hero,
.module-placeholder {
    padding: 22px 24px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.28), transparent 30%),
        linear-gradient(135deg, #16324f, #2563eb 58%, #0ea5e9);
    color: #fff;
    margin-bottom: 12px;
}

.home-hero h2,
.module-placeholder h2 {
    font-size: 24px;
    margin-bottom: 6px;
    letter-spacing: .4px;
}

.home-hero p,
.module-placeholder p {
    font-size: 12px;
    color: rgba(255,255,255,.86);
    line-height: 1.8;
    max-width: 720px;
}

.home-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.home-module-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 208px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #dbe5f3;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
/* Source: assets/styles/platform-workspaces-platform-home.css */
/* 平台工作区：首页模块卡片 */

/* Source: assets/styles/platform-workspaces-platform-home-admission.css */
/* 首页招生卡片：目标条与小矩阵 */

.home-admission-target-strip {
    --home-admission-target-border: #cbd5e1;
    --home-admission-target-progress: 0%;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 0;
    min-height: 16px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f8fbff;
    color: #123057;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.home-admission-target-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border: 1px solid var(--home-admission-target-border);
    border-radius: inherit;
}

.home-admission-target-strip.is-weekly {
    --home-admission-target-border: #fde68a;
    background: #fffaf0;
    color: #713f12;
}

.home-admission-target-strip.is-empty {
    --home-admission-target-border: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.home-admission-target-track {
    position: absolute;
    inset: 1px;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    background: rgba(255, 255, 255, .58);
}

.home-admission-target-track span {
    display: block;
    width: var(--home-admission-target-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #dbeafe, #93c5fd);
}

.home-admission-target-strip.is-weekly .home-admission-target-track span {
    background: linear-gradient(90deg, #fef3c7, #fbbf24);
}

.home-admission-target-strip.is-empty .home-admission-target-track span {
    width: 0;
}

.home-admission-target-copy {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: inherit;
    padding: 0 6px;
    line-height: 1;
    white-space: nowrap;
}

.home-admission-target-copy strong,
.home-admission-target-copy em {
    font-size: inherit;
    font-style: normal;
    font-weight: 900;
    line-height: inherit;
}

.home-admission-target-strip .home-admission-target-copy strong,
.home-admission-target-strip .home-admission-target-copy em {
    font-size: inherit;
    line-height: inherit;
}

.home-admission-matrix-wrap {
    max-width: 100%;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.home-admission-matrix {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.home-admission-matrix th,
.home-admission-matrix td {
    box-sizing: border-box;
    min-width: 78px;
    padding: 5px 4px;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    text-align: center;
    vertical-align: middle;
}

.home-admission-matrix th:last-child,
.home-admission-matrix td:last-child {
    border-right: 0;
}

.home-admission-matrix tbody tr:last-child th,
.home-admission-matrix tbody tr:last-child td {
    border-bottom: 0;
}

.home-admission-matrix thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
}

.home-admission-matrix thead th > span {
    display: block;
    overflow: visible;
    margin-bottom: 5px;
    line-height: 1.15;
    text-overflow: clip;
    white-space: normal;
}

.home-admission-matrix-label,
.home-admission-division-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    max-width: 100%;
    min-width: 0;
}

.home-admission-matrix-label {
    margin-bottom: 4px;
}

.home-admission-matrix-label > span,
.home-admission-division-label > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-admission-delta-badge {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.home-admission-delta-badge.is-positive { color: #0f766e; }

.home-admission-delta-badge.is-negative { color: #dc2626; }

.home-admission-delta-badge.is-neutral { color: #64748b; }

.home-admission-matrix th.is-grade,
.home-admission-matrix tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 72px;
    min-width: 72px;
    max-width: 76px;
    background: #ffffff;
    color: #1e293b;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
}

.home-admission-matrix thead th.is-grade {
    z-index: 2;
    background: #f8fafc;
}

.home-admission-matrix-row-head {
    background: #fbfdff;
}

.home-admission-division-stack {
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 3px;
    min-width: 0;
}

.home-admission-division-name {
    display: block;
    flex: 0 0 auto;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    color: #1e293b;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
}

.home-admission-division-label > .home-admission-division-name {
    min-width: max-content;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.home-admission-division-stack .home-admission-matrix-value {
    justify-items: center;
}

.home-admission-division-stack .home-admission-target-strip {
    justify-self: center;
    width: var(--home-admission-mini-target-width, 58px);
    max-width: calc(100% - 6px);
    min-width: 0;
    min-height: 12px;
    margin-inline: auto;
    overflow: hidden;
    font-size: 7.5px;
}

.home-admission-division-stack .home-admission-target-copy {
    min-width: 0;
    gap: 2px;
    max-width: 100%;
    overflow: visible;
    padding: 0 4px;
}

.home-admission-matrix thead .home-admission-target-strip {
    width: var(--home-admission-mini-target-width, 58px);
    max-width: calc(100% - 6px);
    min-width: 0;
    min-height: 12px;
    margin-inline: auto;
    font-size: 7.5px;
}

.home-admission-matrix thead .home-admission-target-copy {
    display: grid;
    align-self: stretch;
    min-width: 0;
    min-height: inherit;
    padding: 0 4px;
    place-items: center;
}

.home-admission-matrix-value {
    display: grid;
    place-items: center;
    justify-items: center;
    gap: 2px;
    width: 100%;
    min-height: 34px;
    min-width: 0;
    align-content: center;
    justify-content: center;
    text-align: center;
}

.home-admission-matrix-value strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.home-admission-matrix-value span {
    color: #0f766e;
    font-size: 11px;
    font-weight: 900;
}

.home-admission-matrix-value strong.is-positive { color: #0f766e; }

.home-admission-matrix-value strong.is-negative { color: #dc2626; }

.home-admission-matrix-value strong.is-neutral { color: #64748b; }

.home-admission-matrix-value.is-weekly span { color: #64748b; font-weight: 750; }

.home-admission-matrix-value.is-total strong {
    color: #1d4ed8;
}

@media (max-width: 560px) {
    .home-admission-matrix th,
    .home-admission-matrix td {
        min-width: 68px;
        padding: 5px 3px;
        text-align: center;
    }

    .home-admission-matrix th.is-grade,
    .home-admission-matrix tbody th {
        width: 88px;
        min-width: 88px;
        max-width: 92px;
    }

    .home-admission-matrix-label,
    .home-admission-division-label {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .home-admission-matrix thead .home-admission-target-strip,
    .home-admission-division-stack .home-admission-target-strip {
        width: var(--home-admission-mini-target-width, 58px);
        max-width: calc(100% - 6px);
        min-height: 12px;
        margin-inline: auto;
        font-size: 7.5px;
    }

    .home-admission-matrix thead .home-admission-target-copy,
    .home-admission-division-stack .home-admission-target-copy {
        padding-inline: 3px;
    }

    .home-admission-matrix-value span,
    .home-admission-delta-badge {
        font-size: 11px;
    }
}
/* Source: assets/styles/platform-workspaces-platform-home-summary-edit.css */
/* 首页摘要卡排序显隐编辑 */

.home-summary-card-shell {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-summary-card-shell.is-editing {
    gap: 8px;
}

.home-summary-card-shell > .home-teacher-card {
    flex: 1 1 auto;
    height: 100%;
    min-height: 236px;
}

.home-summary-card-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 8px;
}

.home-summary-card-tools span {
    flex: 1 1 120px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.home-summary-card-tools button,
.home-summary-hidden-row button {
    min-height: 36px;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    padding: 0 12px;
}

.home-summary-card-tools button:disabled,
.home-summary-hidden-row button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.home-summary-edit-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.home-summary-edit-trigger {
    min-height: 36px;
}

.home-summary-edit-error {
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: #b91c1c;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
}

.home-summary-hidden-list {
    display: grid;
    gap: 8px;
}

.home-summary-hidden-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    border: 1px dashed #dbe3f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
}

.home-summary-hidden-row span {
    min-width: 0;
    overflow: hidden;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-summary-hidden-row strong {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

@media (max-width: 560px) {
    .home-ops-section .home-section-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .home-ops-section .home-section-head > div {
        flex: 1 1 auto;
        min-width: 0;
    }

    .home-ops-section .home-section-head h3 {
        font-size: 16px;
        line-height: 1.25;
    }

    .home-ops-section .home-summary-edit-trigger {
        flex: 0 0 auto;
        width: auto;
        min-height: 44px;
        padding-inline: 12px;
        white-space: nowrap;
    }

    .home-ops-section .home-summary-edit-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        width: auto;
        justify-content: flex-end;
    }

    .home-ops-section .home-summary-edit-actions .home-module-btn {
        min-height: 44px;
        padding-inline: 12px;
        white-space: nowrap;
    }

    .home-summary-edit-actions,
    .home-summary-edit-trigger {
        width: 100%;
    }

    .home-summary-edit-actions .home-module-btn,
    .home-summary-edit-trigger,
    .home-summary-card-tools button,
    .home-summary-hidden-row button {
        min-height: 44px;
    }

    .home-summary-card-tools {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-summary-card-tools span {
        grid-column: 1 / -1;
    }

    .home-summary-card-tools button {
        padding-inline: 8px;
    }

    .home-summary-hidden-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .home-summary-hidden-row strong {
        grid-column: 1;
    }

    .home-summary-hidden-row button {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 1100px) {
    .home-ops-section .home-teacher-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-ops-section .home-teacher-summary-grid {
        grid-template-columns: 1fr;
    }
}
/* Source: assets/styles/platform-workspaces-platform-home-wq.css */
/* 首页小测错题排名摘要 */

.home-wq-ranking-block {
    display: grid;
    gap: 8px;
}

.home-wq-ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.home-wq-ranking-head span {
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 900;
}

.home-wq-ranking-link {
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
    padding: 5px 9px;
}

.home-wq-ranking-list {
    display: grid;
    gap: 6px;
}

.home-wq-ranking-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
    align-items: center;
    gap: 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    cursor: pointer;
    padding: 9px 10px;
    text-align: left;
}

.home-wq-ranking-row:hover,
.home-wq-ranking-link:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.home-wq-ranking-class,
.home-wq-ranking-values {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.home-wq-ranking-class strong,
.home-wq-ranking-values strong {
    overflow: hidden;
    color: #172554;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-wq-ranking-class em,
.home-wq-ranking-values em {
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-wq-ranking-values {
    text-align: right;
}

@media (max-width: 560px) {
    .home-wq-ranking-row {
        grid-template-columns: 1fr;
    }

    .home-wq-ranking-values {
        text-align: left;
    }
}

.home-dashboard {
    --spark-purple: #7050a0;
    --spark-purple-deep: #4c3b82;
    --spark-blue: #2f7cc0;
    --spark-yellow: #f3bd35;
    --spark-line: #e7e1f1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto;
}

.home-work-card:hover,
.home-manager-card:hover {
    border-color: rgba(112, 80, 160, .26);
}

.home-work-section {
    display: grid;
    gap: 12px;
}

.home-teacher-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}

.home-teacher-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
    height: 100%;
    min-height: 236px;
}

.home-teacher-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.home-teacher-card-head span {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.home-teacher-card-head strong {
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
}

.home-admission-card {
    gap: 9px;
    padding: 10px 9px 10px 6px;
}

.home-admission-card-head {
    display: grid;
    grid-template-columns: 132px auto auto minmax(0, 1fr) 54px;
    align-items: center;
    justify-content: stretch;
    gap: 6px;
}

.home-admission-card-title {
    display: inline-grid;
    align-content: center;
    gap: 3px;
    min-width: 118px;
    width: 132px;
    max-width: 100%;
    margin-left: 0;
    text-align: left;
}

.home-admission-card-heading {
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-admission-card-period {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    min-width: 0;
}

.home-admission-card-period strong {
    min-width: 0;
    overflow: hidden;
    color: #475569;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-admission-card-period em {
    flex: 0 0 auto;
    border: 1px solid #dbe3f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 9px;
    font-style: normal;
    font-weight: 850;
    line-height: 1;
    padding: 2px 5px;
}

.home-admission-card-target-line {
    display: grid;
    gap: 1px;
    width: 108px;
    min-width: 0;
}

.home-admission-card-target-line .home-admission-target-strip {
    width: 100%;
    min-height: 9px;
    font-size: 7px;
}

.home-admission-card-target-line .home-admission-target-copy {
    min-width: 0;
    padding-inline: 4px;
}

.home-admission-card-target-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 2px;
}

.home-admission-card-target-row > span {
    color: #64748b;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
}

.home-admission-card-stat {
    display: grid;
    align-content: center;
    justify-items: center;
    justify-content: center;
    gap: 1px;
    min-width: max-content;
    min-height: 42px;
    color: #0f172a;
    text-align: center;
}

.home-admission-card-stat strong {
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.home-admission-card-stat.is-delta strong {
    font-size: 16px;
}

.home-admission-card-stat span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
}

.home-admission-card-stat .is-positive { color: #0f766e; }

.home-admission-card-stat .is-negative { color: #dc2626; }

.home-admission-card-stat .is-neutral { color: #64748b; }

.home-admission-view-toggle {
    display: inline-grid;
    grid-column: 5;
    grid-template-columns: repeat(2, 24px);
    align-self: center;
    justify-self: end;
    flex: 0 0 auto;
    box-sizing: border-box;
    min-width: 54px;
    width: 54px;
    min-height: 28px;
    gap: 2px;
    border: 0;
    border-radius: 999px;
    background: #f3f0f7;
    padding: 2px;
}

.home-admission-view-toggle button {
    display: grid;
    min-width: 0;
    min-height: 24px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #66507f;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.home-admission-view-toggle button.is-active {
    background: #7050a0;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(112, 80, 160, .18);
}

.home-teacher-metrics,
.home-followup-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.home-management-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-teacher-metric,
.home-followup-status {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
}

.home-teacher-metric span,
.home-followup-status span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.home-teacher-metric strong,
.home-followup-status strong {
    display: block;
    margin-top: 4px;
    color: #152238;
    font-size: 16px;
    font-weight: 900;
}

.home-teacher-metric small,
.home-followup-status small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
}

.home-wq-class-list,
.home-rank-list,
.home-admission-scope-list {
    display: grid;
    gap: 6px;
}

.home-wq-class-list {
    max-height: 260px;
    overflow: auto;
    padding-right: 2px;
}

.home-wq-class-row,
.home-rank-row,
.home-admission-scope-row {
    display: grid;
    align-items: center;
    gap: 8px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #ffffff;
    padding: 9px 10px;
}

.home-wq-class-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.home-admission-scope-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.home-wq-class-main,
.home-wq-class-values,
.home-admission-scope-row > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.home-wq-class-main strong,
.home-rank-row strong,
.home-admission-scope-row strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-wq-class-main span,
.home-wq-class-tail,
.home-rank-row em,
.home-admission-scope-row span {
    color: #64748b;
    font-size: 11px;
    font-style: normal;
    font-weight: 650;
}

.home-wq-class-values {
    text-align: right;
}

.home-admission-scope-row > div:last-child {
    text-align: right;
}

.home-admission-scope-row > div:last-child span {
    color: #0f766e;
    font-weight: 900;
}

.home-wq-class-values span {
    color: #475569;
    font-size: 11px;
    font-weight: 750;
}

.home-wq-class-values strong {
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
}

.home-card-subhead {
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
}

.home-rank-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
}

.home-rank-row span {
    color: #7050a0;
    font-size: 12px;
    font-weight: 900;
}

.home-rank-row em {
    text-align: right;
}

.home-tutorial-leaderboard-card {
    min-height: 268px;
}

.home-tutorial-leaderboard-list {
    min-height: 0;
}

.home-tutorial-leaderboard-row em {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-leaderboard-details {
    display: grid;
    gap: 8px;
}

.home-leaderboard-details summary {
    min-height: 32px;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    line-height: 30px;
    padding: 0 10px;
}

.home-leaderboard-details[open] summary {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.home-followup-status.is-complete {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.home-followup-status.is-complete strong {
    color: #15803d;
}

.home-followup-status.is-pending {
    border-color: #fed7aa;
    background: #fff7ed;
}

.home-followup-status.is-pending strong {
    color: #c2410c;
}

.home-teacher-empty {
    border: 1px dashed #dbe3f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    padding: 12px;
    font-size: 12px;
    font-weight: 750;
}

.home-teacher-error p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.home-teacher-skeleton div {
    min-height: 18px;
    border-radius: 8px;
    background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%);
}

.home-teacher-skeleton div:first-child {
    width: 46%;
}

.home-teacher-skeleton div:nth-child(2) {
    min-height: 64px;
}

.home-teacher-skeleton div:nth-child(3) {
    min-height: 112px;
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.home-section-head span {
    display: inline-flex;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.home-section-head h3 {
    margin: 0;
    color: #151225;
    font-size: 18px;
    letter-spacing: 0;
}

.home-teacher-grid,
.home-manager-grid {
    display: grid;
    gap: 16px;
}

.home-teacher-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-manager-grid {
    grid-template-columns: minmax(260px, 420px);
}

.home-work-card,
.home-manager-card {
    border: 1px solid var(--spark-line);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(61, 42, 92, .05);
    padding: 16px;
}

.home-work-card,
.home-manager-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.home-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    min-height: 66px;
}

.home-card-head h3 {
    margin: 3px 0 4px;
}

.home-card-head p {
    margin: 0;
}

.home-card-eyebrow {
    color: var(--spark-purple);
    font-size: 11px;
    font-weight: 900;
}

.home-low-frequency:not(.home-module-card) {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px dashed #dbe3f0;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}

.home-low-frequency:not(.home-module-card) span {
    color: #334155;
    font-weight: 800;
}

.home-low-frequency:not(.home-module-card) p {
    margin: 0;
    max-width: 680px;
    line-height: 1.6;
}

.home-module-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.home-module-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5efff;
    color: var(--spark-purple);
    font-size: 18px;
    font-weight: 900;
}

.home-module-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.home-module-name {
    font-size: 16px;
    font-weight: 800;
    color: #151225;
}

.home-module-desc {
    color: #746b83;
    font-size: 12px;
    line-height: 1.7;
    flex: 1;
}

.home-module-meta {
    color: #1e293b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.home-module-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.home-module-actions.is-spaced-top {
    margin-top: 18px;
}

.home-module-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.home-module-btn.secondary {
    border-color: #dbe3f0;
    background: #fff;
    color: #475569;
}

.home-module-btn:hover {
    filter: brightness(.98);
}

@media (max-width: 900px) {
    .home-low-frequency:not(.home-module-card) {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 560px) {
    .home-section-head {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .home-admission-card {
        padding: 10px 8px;
    }

    .home-admission-card-head {
        grid-template-columns: 118px auto auto 54px;
        align-items: center;
        gap: 4px;
    }

    .home-admission-card-title {
        min-width: 0;
        width: 118px;
        gap: 2px;
    }

    .home-admission-card-heading {
        font-size: 13px;
    }

    .home-admission-card-period {
        gap: 3px;
    }

    .home-admission-card-period strong {
        max-width: 58px;
        font-size: 10px;
        font-weight: 850;
    }

    .home-admission-card-period em {
        font-size: 9px;
        padding-inline: 4px;
    }

    .home-admission-card-target-line {
        width: 108px;
        max-width: none;
    }

    .home-admission-card-target-line .home-admission-target-strip {
        width: 100%;
        max-width: none;
        min-height: 9px;
        font-size: 7px;
    }

    .home-admission-card-target-line .home-admission-target-copy {
        padding-inline: 4px;
    }

    .home-admission-card-stat {
        min-width: 42px;
        min-height: 40px;
        gap: 2px;
    }

    .home-admission-card-stat strong {
        font-size: 18px;
    }

    .home-admission-card-stat.is-delta strong {
        font-size: 14px;
    }

    .home-admission-card-stat span {
        font-size: 10px;
    }

    .home-admission-view-toggle {
        grid-column: 4;
        grid-template-columns: repeat(2, 24px);
        justify-self: end;
        min-width: 54px;
        width: 54px;
        min-height: 28px;
    }

    .home-admission-view-toggle button {
        min-height: 24px;
    }

    .home-teacher-metrics,
    .home-followup-block {
        grid-template-columns: 1fr;
    }

    .home-wq-class-row,
    .home-rank-row {
        grid-template-columns: 1fr;
    }

    .home-wq-class-values,
    .home-rank-row em {
        text-align: left;
    }

    .home-tutorial-leaderboard-row em {
        max-width: 100%;
        white-space: normal;
    }

    .home-teacher-grid,
    .home-manager-grid {
        grid-template-columns: 1fr;
    }
}
/* Source: assets/styles/platform-home-ui-theme.css */
/* 首页分片：UI 支线工作台视觉覆盖 */

body:not(.phone-shell) .home-section-head span {
    color: #7050a0;
}

body:not(.phone-shell) .home-section-head h3 {
    color: #151225;
}

body:not(.phone-shell) .home-module-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

body:not(.phone-shell) .home-module-card {
    min-height: 236px;
    padding: 18px;
    border-color: #e7e1f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
    box-shadow: 0 12px 30px rgba(61, 42, 92, .07);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body:not(.phone-shell) .home-module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(112, 80, 160, .28);
    box-shadow: 0 18px 42px rgba(61, 42, 92, .10);
}

body:not(.phone-shell) .home-manager-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(47, 124, 192, .13), transparent 34%),
        linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

body:not(.phone-shell) .home-module-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f1ecfa;
    color: #7050a0;
    box-shadow: inset 0 0 0 1px rgba(112, 80, 160, .08);
}

body:not(.phone-shell) .home-module-status {
    border-color: #e2d7f3;
    background: #f3eefb;
    color: #4c3b82;
    font-weight: 900;
}

body:not(.phone-shell) .home-module-name {
    color: #151225;
    font-size: 18px;
    letter-spacing: 0;
}

body:not(.phone-shell) .home-module-desc {
    color: #746b83;
    line-height: 1.75;
}

body:not(.phone-shell) .home-module-meta {
    color: #3f3654;
}

body:not(.phone-shell) .home-module-actions {
    margin-top: auto;
}

body:not(.phone-shell) .home-module-btn {
    min-height: 34px;
    border-color: #7050a0;
    background: #7050a0;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(112, 80, 160, .18);
}

body:not(.phone-shell) .home-module-btn.secondary {
    border-color: #e2d7f3;
    background: #ffffff;
    color: #5f3fa0;
    box-shadow: none;
}

body:not(.phone-shell) .home-module-btn:hover {
    filter: none;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    body.phone-shell .home-module-card {
        border-radius: 18px;
    }
}
