:root {
    --campus-bg: #edf2f7;
    --campus-bg-mid: #f6f8fb;
    --campus-bg-end: #e8eef5;
    --campus-panel: #ffffff;
    --campus-panel-solid: #ffffff;
    --campus-panel-soft: #f5f7fb;
    --campus-line: #d9e1ec;
    --campus-line-strong: #aebed2;
    --campus-text: #172033;
    --campus-muted: #5f6d83;
    --campus-faint: #8793a6;
    --campus-blue: #1677ff;
    --campus-blue-dark: #0958d9;
    --campus-purple: #6f42d9;
    --campus-green: #059669;
    --campus-orange: #e56a22;
    --campus-red: #d9364f;
    --campus-radius: 8px;
    --campus-shadow: 0 7px 20px rgba(31, 45, 73, .08);
}

/* Last cascade layer: legacy inline styles and older compatibility rules must
   not split the three pages into different visual systems. */
body.campus-workbench.campus-page-vision > .header,
body.campus-workbench.campus-page-classroom > .page-header,
body.campus-workbench.campus-page-report > .header {
    color: #172033 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #d9e2ee !important;
}
body.campus-workbench.campus-page-vision > .header h1,
body.campus-workbench.campus-page-classroom > .page-header h1,
body.campus-workbench.campus-page-report > .header h1 {
    color: #1c3557 !important;
}
body.campus-workbench.campus-page-vision > .content,
body.campus-workbench.campus-page-classroom > .content,
body.campus-workbench.campus-page-report > .content {
    max-width: 1440px !important;
    padding: 20px 24px 34px !important;
}

body.campus-workbench.campus-page-vision .card,
body.campus-workbench.campus-page-classroom .stat-card,
body.campus-workbench.campus-page-classroom .panel,
body.campus-workbench.campus-page-report .report-card {
    color: #172033 !important;
    background: #ffffff !important;
    border: 1px solid #d7e1ed !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 16px rgba(31,45,73,.055) !important;
}
body.campus-workbench.campus-page-vision .card-title,
body.campus-workbench.campus-page-classroom .panel-title,
body.campus-workbench.campus-page-report .report-card .title {
    color: #29496f !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Keep a single dark service/empty-state surface to give the upload page a
   clear visual anchor without filling the whole workspace with dark cards. */
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .card {
    color: #eaf3ff !important;
    background: linear-gradient(145deg, #172c4b, #1b4665) !important;
    border-color: #2e607c !important;
}
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .card-title,
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state,
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state > div { color: #dceaff !important; }
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state > div + div { color: #a9bdd5 !important; }
body.campus-workbench.campus-page-vision .upload-zone {
    min-height: 196px;
    color: #49627f !important;
    background: #f7faff !important;
    border: 1px dashed #91b6e5 !important;
    border-radius: 7px !important;
}
body.campus-workbench.campus-page-vision .mode-switch .mode-btn {
    min-height: 34px;
    color: #49627f !important;
    background: #f7faff !important;
    border: 1px solid #cbd8e8 !important;
    border-radius: 6px !important;
}
body.campus-workbench.campus-page-vision .mode-switch .mode-btn.active {
    color: #ffffff !important;
    background: #246fd1 !important;
    border-color: #246fd1 !important;
}
body.campus-workbench.campus-page-vision .realtime-card,
body.campus-workbench.campus-page-vision .gauge-card,
body.campus-workbench.campus-page-vision .student-card {
    color: #172033 !important;
    background: #f7faff !important;
    border-color: #d3deec !important;
    box-shadow: none !important;
}

body.campus-workbench.campus-page-classroom .class-selector {
    color: #243d5f !important;
    background-color: #f7faff !important;
    border-color: #b9cbe1 !important;
}
body.campus-workbench.campus-page-classroom .stat-card .stat-value { color: #1d4f91 !important; }
body.campus-workbench.campus-page-classroom .stat-card .stat-label,
body.campus-workbench.campus-page-classroom .panel-title { color: #5b6f88 !important; }
body.campus-workbench.campus-page-classroom .chart-container {
    min-height: 258px;
    background: #f7faff !important;
    border: 1px solid #e0e8f2;
    border-radius: 6px;
}

body.campus-workbench.campus-page-report > .header > div:first-child { display: none !important; }
body.campus-workbench.campus-page-report .report-query label { color: #49627f !important; }
body.campus-workbench.campus-page-report .report-query input {
    color: #172033 !important;
    background: #f7faff !important;
    border-color: #b9cbe1 !important;
}
body.campus-workbench.campus-page-report .report-query input::placeholder { color: #7a8da4 !important; }
body.campus-workbench.campus-page-report .report-scope-note { color: #657991 !important; }
body.campus-workbench.campus-page-report .report-card .value { color: #1d4f91 !important; }
body.campus-workbench.campus-page-report .chart-container {
    background: #f7faff !important;
    border: 1px solid #e0e8f2;
    border-radius: 6px;
}
body.campus-workbench.campus-page-report .suggestion-box {
    color: #425b78 !important;
    background: #f7faff !important;
    border-color: #d4e1ee !important;
}
body.campus-workbench.campus-page-report .suggestion-box p { color: #425b78 !important; }

@media (max-width: 760px) {
    body.campus-workbench.campus-page-vision > .content,
    body.campus-workbench.campus-page-classroom > .content,
    body.campus-workbench.campus-page-report > .content { padding: 14px 12px 24px !important; }
}

/* Operational cards use a narrow left accent to communicate state at a glance.
   Decorative/content cards intentionally remain neutral. */
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:first-child > div:nth-child(1) .card-panel { border-left: 4px solid #2f72d8 !important; }
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:first-child > div:nth-child(2) .card-panel { border-left: 4px solid #24a982 !important; }
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:first-child > div:nth-child(3) .card-panel { border-left: 4px solid #8a9bb0 !important; }
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:first-child > div:nth-child(4) .card-panel { border-left: 4px solid #df5b69 !important; }

body.campus-workbench.campus-page-classroom .overview-cards .stat-card:nth-child(1) { border-left: 4px solid #e69a35 !important; }
body.campus-workbench.campus-page-classroom .overview-cards .stat-card:nth-child(2) { border-left: 4px solid #2f72d8 !important; }
body.campus-workbench.campus-page-classroom .overview-cards .stat-card:nth-child(3) { border-left: 4px solid #df5b69 !important; }
body.campus-workbench.campus-page-classroom .overview-cards .stat-card:nth-child(4) { border-left: 4px solid #24a982 !important; }

body.campus-workbench.campus-page-report .content > .row:first-child > div:nth-child(1) .report-card { border-left: 4px solid #e69a35 !important; }
body.campus-workbench.campus-page-report .content > .row:first-child > div:nth-child(2) .report-card { border-left: 4px solid #2f72d8 !important; }
body.campus-workbench.campus-page-report .content > .row:first-child > div:nth-child(3) .report-card { border-left: 4px solid #24a982 !important; }
body.campus-workbench.campus-page-report .content > .row:first-child > div:nth-child(4) .report-card { border-left: 4px solid #df5b69 !important; }

body.campus-workbench.campus-page-vision #streamRealtimeMetrics .realtime-card:nth-child(1),
body.campus-workbench.campus-page-vision #streamRealtimeMetrics .realtime-card:nth-child(6),
body.campus-workbench.campus-page-vision #temporalMetrics .realtime-card:nth-child(4),
body.campus-workbench.campus-page-vision #temporalMetrics .realtime-card:nth-child(6),
body.campus-workbench.campus-page-vision #temporalMetrics .realtime-card:nth-child(8) { border-left: 3px solid #2f72d8 !important; }
body.campus-workbench.campus-page-vision #streamRealtimeMetrics .realtime-card:nth-child(2),
body.campus-workbench.campus-page-vision #streamRealtimeMetrics .realtime-card:nth-child(7),
body.campus-workbench.campus-page-vision #temporalMetrics .realtime-card:nth-child(7) { border-left: 3px solid #24a982 !important; }
body.campus-workbench.campus-page-vision #streamRealtimeMetrics .realtime-card:nth-child(3),
body.campus-workbench.campus-page-vision #streamRealtimeMetrics .realtime-card:nth-child(8),
body.campus-workbench.campus-page-vision #temporalMetrics .realtime-card:nth-child(2) { border-left: 3px solid #e69a35 !important; }
body.campus-workbench.campus-page-vision #streamRealtimeMetrics .realtime-card:nth-child(4),
body.campus-workbench.campus-page-vision #temporalMetrics .realtime-card:nth-child(3) { border-left: 3px solid #e47d44 !important; }
body.campus-workbench.campus-page-vision #streamRealtimeMetrics .realtime-card:nth-child(5) { border-left: 3px solid #8166c9 !important; }
body.campus-workbench.campus-page-vision #temporalMetrics .realtime-card:nth-child(1),
body.campus-workbench.campus-page-vision #temporalMetrics .realtime-card:nth-child(5) { border-left: 3px solid #df5b69 !important; }

body.campus-workbench.campus-page-agent .inspect-panel > .inspect-card:nth-of-type(2) { border-left: 4px solid #2f72d8 !important; }
body.campus-workbench.campus-page-agent .inspect-panel > .inspect-card:nth-of-type(4) { border-left: 4px solid #8166c9 !important; }

html {
    min-height: 100%;
    background-color: var(--campus-bg);
    background-image: linear-gradient(135deg, var(--campus-bg) 0%, var(--campus-bg-mid) 48%, var(--campus-bg-end) 100%);
}
* { letter-spacing: 0; }
body.campus-themed {
    min-height: 100vh;
    background-color: var(--campus-bg) !important;
    background-image: linear-gradient(135deg, var(--campus-bg) 0%, var(--campus-bg-mid) 48%, var(--campus-bg-end) 100%) !important;
    background-attachment: scroll !important;
    color: var(--campus-text);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif !important;
}

.campus-global-nav {
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(200px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    color: #eaf2ff;
    background: rgba(12, 18, 34, .96);
    border-bottom: 1px solid rgba(107, 150, 218, .2);
    box-shadow: 0 5px 24px rgba(0, 0, 0, .2);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 1100;
}
.campus-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #edf5ff;
    text-decoration: none;
}
.campus-brand:hover { color: #fff; }
.campus-brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--campus-blue), #555fd8);
    border-radius: 8px;
    box-shadow: 0 7px 20px rgba(64, 158, 255, .24);
}
.campus-brand-mark svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.campus-brand-copy strong { display: block; font-size: 14px; line-height: 1.25; }
.campus-brand-copy span { display: block; margin-top: 2px; color: #8191ad; font-size: 10px; }
.campus-nav-links {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
}
.campus-nav-link {
    min-height: 35px;
    display: flex;
    align-items: center;
    padding: 0 11px;
    color: #aab8cf;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}
.campus-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .055); }
.campus-nav-link.active { color: #fff; background: #1677ff; box-shadow: 0 4px 12px rgba(22,119,255,.25); }
.campus-nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.campus-account { position: relative; }
.campus-account-trigger {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    color: #d4e1f5;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}
.campus-account-trigger:hover { color: #fff; border-color: rgba(154,192,242,.52); }
.campus-account-trigger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.campus-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1200;
    width: 196px;
    padding: 6px;
    color: #dce8fa;
    background: #172842;
    border: 1px solid rgba(146,180,228,.24);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0,0,0,.28);
}
.campus-account-state { padding: 8px 9px 10px; color: #aebfda; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 11px; line-height: 1.5; }
.campus-account-menu form { margin: 5px 0 0; }
.campus-account-menu form button { display: block; width: 100%; margin: 0; padding: 8px 9px; color: #f1f6ff; background: transparent; border: 0; border-radius: 5px; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.campus-account-menu form button:hover { background: rgba(255,255,255,.09); }
.campus-service-state {
    min-height: 33px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    color: #8ee2c6;
    background: rgba(30, 151, 113, .13);
    border: 1px solid rgba(50, 206, 158, .22);
    border-radius: 7px;
    font-size: 10px;
}
.campus-service-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--campus-green); }
.campus-more {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #a9b8cf;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    text-decoration: none;
}
.campus-more:hover { color: #fff; border-color: var(--campus-line-strong); }
.campus-more svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

body.campus-themed .header,
body.campus-themed .dashboard-header,
body.campus-themed .topbar,
body.campus-themed .nav-bar {
    background: rgba(255, 255, 255, .96) !important;
    border-color: var(--campus-line) !important;
    box-shadow: 0 3px 12px rgba(31,45,73,.05) !important;
    backdrop-filter: blur(14px);
}
body.campus-themed .nav-bar { position: static !important; }
body.campus-themed .nav-bar.fixed-top { position: static !important; }
body.campus-themed .dashboard-header .nav-back,
body.campus-themed .topbar > div:first-child,
body.campus-themed .nav-bar .navbar-collapse,
body.campus-themed .nav-bar .navbar-toggler { display: none !important; }
body.campus-themed .header .nav a,
body.campus-themed .header .nav-back { display: none !important; }
body.campus-page-classroom .nav-bar { display: none !important; }
body.campus-themed .header,
body.campus-themed .dashboard-header,
body.campus-themed .topbar {
    min-height: 64px;
    padding: 13px 24px !important;
}
body.campus-themed .header h1,
body.campus-themed .dashboard-header h1,
body.campus-themed .topbar h1 { color: var(--campus-text) !important; font-size: 1.18rem !important; margin: 0 !important; }

body.campus-themed .content,
body.campus-themed .dashboard-body,
body.campus-themed .wrap { max-width: 1480px; margin: 0 auto; padding: 20px 24px 32px !important; }
body.campus-themed .card,
body.campus-themed .card-panel,
body.campus-themed .panel,
body.campus-themed .report-card,
body.campus-themed .inspect-card,
body.campus-themed .chat-area,
body.campus-themed .stat-card,
body.campus-themed .tech-item,
body.campus-themed .feature-card,
body.campus-themed .cardx {
    background: var(--campus-panel) !important;
    border: 1px solid var(--campus-line) !important;
    border-radius: var(--campus-radius) !important;
    box-shadow: var(--campus-shadow) !important;
}
body.campus-themed .card-title,
body.campus-themed .panel-title,
body.campus-themed .report-card .title,
body.campus-themed .card-panel .card-title,
body.campus-themed .panel h2 { color: #21466f !important; }
body.campus-themed .subtitle,
body.campus-themed .hint,
body.campus-themed .note,
body.campus-themed .desc,
body.campus-themed .label,
body.campus-themed .card-unit { color: var(--campus-muted) !important; }

body.campus-themed input,
body.campus-themed textarea,
body.campus-themed select,
body.campus-themed .form-control {
    color: var(--campus-text) !important;
    background: #ffffff !important;
    border-color: #cbd5e3 !important;
    border-radius: 6px !important;
}
body.campus-themed input:focus,
body.campus-themed textarea:focus,
body.campus-themed select:focus,
body.campus-themed .form-control:focus {
    border-color: var(--campus-blue) !important;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, .13) !important;
    outline: 0;
}
body.campus-themed input[type="file"]::file-selector-button {
    min-height: 32px;
    margin-right: 10px;
    padding: 0 11px;
    color: #0958d9;
    background: #eaf3ff;
    border: 1px solid #b9d5fb;
    border-radius: 5px;
    cursor: pointer;
}
body.campus-themed button,
body.campus-themed .btn,
body.campus-themed .btn-outline,
body.campus-themed .btn-refresh,
body.campus-themed .btn-room,
body.campus-themed .quick-btn,
body.campus-themed .btn-linkish {
    border-radius: 6px !important;
}
body.campus-themed .btn-primary,
body.campus-themed .btn-main,
body.campus-themed .btn-gen,
body.campus-themed .btn-send,
body.campus-themed .btn-inspect,
body.campus-themed .cam-btn,
body.campus-themed .btn-enter {
    color: #fff !important;
    background: linear-gradient(135deg, var(--campus-blue), var(--campus-blue-dark)) !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: 0 7px 20px rgba(64, 158, 255, .22) !important;
}
body.campus-themed .btn-primary:hover,
body.campus-themed .btn-main:hover,
body.campus-themed .btn-gen:hover,
body.campus-themed .btn-send:hover,
body.campus-themed .btn-inspect:hover,
body.campus-themed .cam-btn:hover { filter: brightness(1.08); }
body.campus-themed .btn-outline,
body.campus-themed .btn-room,
body.campus-themed .btn-refresh {
    color: #0958d9 !important;
    background: #f7fbff !important;
    border: 1px solid #9fc5f5 !important;
    font-weight: 600 !important;
}
body.campus-themed .btn-outline:hover,
body.campus-themed .btn-room:hover,
body.campus-themed .btn-refresh:hover {
    color: #0958d9 !important;
    background: #eaf3ff !important;
    border-color: #4b8fe8 !important;
}

body.campus-themed .upload-zone,
body.campus-themed .qa-upload-zone {
    background: linear-gradient(135deg, #edf5ff, #f5f1ff) !important;
    border-color: #9dbce7 !important;
    border-radius: 8px !important;
}
body.campus-themed .upload-zone:hover,
body.campus-themed .qa-upload-zone:hover { border-color: var(--campus-blue) !important; }
body.campus-themed .result,
body.campus-themed .empty-state,
body.campus-themed .ai-summary-box,
body.campus-themed .chat-box,
body.campus-themed .input-area,
body.campus-themed .metric,
body.campus-themed .step {
    background: #f5f7fb !important;
    border-color: #e0e5ed !important;
}

body.campus-themed .badge-ok { color: #067a5a !important; background: #e8f8f2 !important; }
body.campus-themed .badge-wait { color: #a84b11 !important; background: #fff1e8 !important; }
body.campus-themed .notice { color: #89520d !important; background: #fff7e6 !important; border-color: #efcf91 !important; }
body.campus-themed a { color: #0958d9; }
body.campus-themed a:hover { color: #1677ff; }

/* Page-specific layout adaptations. */
body.campus-page-vision .header { align-items: center; }
body.campus-page-vision .header .nav { display: flex; align-items: center; }
body.campus-page-vision .mode-switch { display: flex; gap: 4px; }
body.campus-page-vision .mode-switch .mode-btn {
    min-height: 35px;
    padding: 0 13px !important;
    color: var(--campus-muted) !important;
    background: #ffffff !important;
    border: 1px solid var(--campus-line) !important;
    border-radius: 6px !important;
}
body.campus-page-vision .mode-switch .mode-btn.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--campus-blue), var(--campus-blue-dark)) !important;
    border-color: transparent !important;
}
body.campus-page-vision .mode-heading { padding: 2px 0 4px; }
body.campus-page-vision .mode-heading h2 { color: var(--campus-text) !important; }
body.campus-page-vision .realtime-card,
body.campus-page-vision .student-card,
body.campus-page-vision .person-summary-item,
body.campus-page-vision .gauge-card {
    background: #ffffff !important;
    border-color: #dce4ee !important;
    border-radius: 7px !important;
}
body.campus-page-vision .realtime-card .rt-label,
body.campus-page-vision .student-card .s-lbl,
body.campus-page-vision .gauge-card .gauge-lbl,
body.campus-page-vision .person-metrics { color: var(--campus-muted) !important; }
body.campus-page-vision .progress-line,
body.campus-page-vision .realtime-card .rt-bar { background: #e8edf4 !important; }
body.campus-page-vision .card { padding: 16px !important; margin-bottom: 14px !important; }
body.campus-page-vision .card-title { letter-spacing: 0 !important; text-transform: none !important; font-size: .82rem !important; }
body.campus-page-vision video,
body.campus-page-vision .annotated-stage { border-color: var(--campus-line) !important; }

body.campus-page-dashboard .dashboard-header { flex-wrap: wrap; gap: 10px; }
body.campus-page-dashboard .dashboard-header > div:first-child { min-width: 0; flex: 1; }
body.campus-page-dashboard .dashboard-header p { display: none; }
body.campus-page-dashboard .dashboard-header .info-bar { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
body.campus-page-dashboard .card-panel { padding: 15px !important; }
body.campus-page-dashboard .card-panel .card-title { letter-spacing: 0; }
body.campus-page-dashboard .classroom-selector { flex-wrap: wrap; }
body.campus-page-dashboard .classroom-selector .btn-room {
    padding: 5px 11px !important;
    color: var(--campus-muted) !important;
    background: #ffffff !important;
    border-color: var(--campus-line) !important;
}
body.campus-page-dashboard .classroom-selector .btn-room.active { color: #fff !important; background: #1677ff !important; border-color: #1677ff !important; }
body.campus-page-dashboard .ai-report { color: var(--campus-muted) !important; }

body.campus-page-classroom .content { padding-top: 18px !important; }
body.campus-page-classroom .page-header { margin-bottom: 15px; }
body.campus-page-classroom .page-header h1 { color: var(--campus-text) !important; }
body.campus-page-classroom .overview-cards { gap: 12px !important; }
body.campus-page-classroom .stat-card,
body.campus-page-classroom .panel,
body.campus-page-classroom .student-card { border-radius: 8px !important; }
body.campus-page-classroom .student-card { background: #ffffff !important; border-color: #dce4ee !important; }
body.campus-page-classroom .student-card .s-name,
body.campus-page-classroom .student-card .s-metric .val { color: var(--campus-text) !important; }
body.campus-page-classroom .student-card .s-meta,
body.campus-page-classroom .student-card .s-metric .lbl { color: var(--campus-muted) !important; }

body.campus-page-agent .layout { height: calc(100vh - 128px) !important; min-height: 620px; }
body.campus-page-agent .inspect-panel { background: #eef2f7 !important; border-right-color: var(--campus-line) !important; gap: 12px !important; }
body.campus-page-agent .inspect-card { padding: 14px !important; }
body.campus-page-agent .chat-area { background: transparent !important; box-shadow: none !important; border: 0 !important; }
body.campus-page-agent .chat-box { border-radius: 8px !important; }
body.campus-page-agent .message .bubble { border-radius: 8px !important; }
body.campus-page-agent .message.bot .bubble { color: var(--campus-text) !important; background: #ffffff !important; border-color: #dce4ee !important; }
body.campus-page-agent .message.user .bubble { background: linear-gradient(135deg, var(--campus-blue), var(--campus-blue-dark)) !important; }
body.campus-page-agent .quick-btn {
    color: #24466d !important;
    background: #ffffff !important;
    border: 1px solid #bdcfe3 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}
body.campus-page-agent .quick-btn:hover,
body.campus-page-agent .quick-btn:focus-visible {
    color: #0f5fc4 !important;
    border-color: #5b9ded !important;
    outline: none;
}
body.campus-page-agent .panel-title,
body.campus-page-agent .inspect-card .label,
body.campus-page-agent .log-item { color: var(--campus-muted) !important; }
body.campus-page-agent .inspect-card .value { color: #21466f !important; }
body.campus-page-agent .ai-summary-box { color: #34445d !important; }

body.campus-page-report .report-card { min-height: 100%; }
body.campus-page-report .suggestion-box { background: rgba(64,158,255,.09) !important; border-color: var(--campus-line) !important; }
body.campus-page-report #studentNo { min-height: 38px; }

body.campus-page-import .topbar,
body.campus-page-integrations .topbar { justify-content: flex-start !important; }
body.campus-page-import .wrap,
body.campus-page-integrations .wrap { max-width: 1240px; }
body.campus-page-import .steps { gap: 12px !important; }
body.campus-page-import .step { min-height: 112px !important; }
body.campus-page-integrations .cardx { padding: 16px !important; }
body.campus-page-integrations .runtime .metric { min-width: 180px; }

/* Workbench pages share the same restrained information hierarchy. */
body.campus-themed:not(.campus-page-home) { background: #edf2f8 !important; }
body.campus-themed:not(.campus-page-home) .content,
body.campus-themed:not(.campus-page-home) .dashboard-body,
body.campus-themed:not(.campus-page-home) .wrap {
    padding-top: 16px !important;
    background: transparent;
}

/* Scene recognition: operation and service state use different visual weights. */
body.campus-page-vision #uploadSection > div:first-child .card { background: #ffffff !important; }
body.campus-page-vision #uploadSection > div:last-child .card {
    color: #e9f2ff !important;
    background: linear-gradient(145deg, #15243e, #1c4167) !important;
    border-color: #315a82 !important;
    border-top-color: #31c4aa !important;
}
body.campus-page-vision #uploadSection > div:last-child .empty-state-title { color: #dceaff !important; }
body.campus-page-vision #uploadSection > div:last-child .empty-state-copy,
body.campus-page-vision #uploadSection > div:last-child .readiness-row span:first-child { color: #a9bdd5 !important; }
body.campus-page-vision #uploadSection > div:last-child .readiness-row { border-color: rgba(255,255,255,.12) !important; }
body.campus-page-vision #uploadSection > div:last-child .readiness-row span:last-child { color: #72e0be !important; }
body.campus-page-vision #uploadSection > div:last-child .empty-state {
    width: 100%;
    padding: 28px !important;
    color: #dceaff !important;
    background: transparent !important;
    border: 0 !important;
}
body.campus-page-vision #uploadSection > div:last-child .empty-state-shell {
    max-width: 420px;
    padding: 22px;
    background: rgba(7, 20, 38, .25);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
}
body.campus-page-vision .upload-zone {
    background: linear-gradient(135deg, #edf6ff, #f2eeff) !important;
    border-color: #84afe9 !important;
}
body.campus-page-vision .mode-switch .mode-btn {
    color: #ffffff !important;
    background: rgba(7, 27, 60, .42) !important;
    border-color: rgba(191,219,254,.72) !important;
    opacity: 1 !important;
}
body.campus-page-vision .mode-switch .mode-btn:hover,
body.campus-page-vision .mode-switch .mode-btn:focus-visible {
    color: #ffffff !important;
    background: rgba(7, 27, 60, .64) !important;
    border-color: #dbeafe !important;
    outline: none;
}
body.campus-page-vision .mode-switch .mode-btn:disabled {
    color: #9fb3cc !important;
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(159,179,204,.35) !important;
    opacity: .78 !important;
}
body.campus-page-vision .mode-switch .mode-btn.active { background: #2563eb !important; }
body.campus-page-vision #resultSection > .card:nth-child(odd),
body.campus-page-vision .video-results > .card:nth-child(odd) { background: #f7f9ff !important; }

/* A single blue/teal state language is enough for dashboard metrics and cards. */
body.campus-page-dashboard .dashboard-body > .row:first-child .card-panel,
body.campus-page-classroom .overview-cards .stat-card,
body.campus-page-report .content > .row:first-child .report-card,
body.campus-page-integrations .grid .cardx {
    background: #fff !important;
    border-top: 1px solid #d9e2ee !important;
}
body.campus-page-dashboard .dashboard-body > .row:first-child > div:first-child .card-panel,
body.campus-page-classroom .overview-cards .stat-card:first-child { border-left: 3px solid #2563eb !important; }
body.campus-page-dashboard .dashboard-body > .row:first-child > div:nth-child(2) .card-panel,
body.campus-page-classroom .overview-cards .stat-card:nth-child(2) { border-left: 3px solid #22a883 !important; }
body.campus-page-dashboard .dashboard-body > .row:first-child > div:nth-child(4) .card-panel,
body.campus-page-classroom .overview-cards .stat-card:nth-child(3) { border-left: 3px solid #d85b69 !important; }
body.campus-page-agent .layout { background: #edf2f8 !important; }
body.campus-page-agent .inspect-panel { background: #e8eff8 !important; }
body.campus-page-agent .chat-area { padding: 18px !important; }
body.campus-page-agent .chat-box { background: #fff !important; border: 1px solid #d9e2ee !important; box-shadow: none !important; }
body.campus-page-agent .quick-btn { border-color: #c9d9eb !important; background: #fff !important; }
body.campus-page-report .suggestion-box { background: #f7faff !important; border-color: #d9e5f3 !important; }
body.campus-page-import .wrap > .row > div:last-child .panel {
    color: #e9f2ff !important;
    background: linear-gradient(145deg, #16263e, #1c4b5c) !important;
    border-color: #315d6b !important;
}
body.campus-page-import .wrap > .row > div:last-child .panel h2 { color: #fff !important; }
body.campus-page-import .wrap > .row > div:last-child .result { color: #c8d8e8 !important; background: rgba(7,20,35,.35) !important; border-color: rgba(255,255,255,.1) !important; }
body.campus-page-import .steps .step:nth-child(3n+1) { border-top: 3px solid #1677ff !important; background: #f4f8ff !important; }
body.campus-page-import .steps .step:nth-child(3n+2) { border-top: 3px solid #059669 !important; background: #f3fbf8 !important; }
body.campus-page-import .steps .step:nth-child(3n) { border-top: 3px solid #6f42d9 !important; background: #f8f5ff !important; }
body.campus-page-integrations .grid .cardx:nth-child(4n+1) { border-top-color: #1677ff !important; background: #f7faff !important; }
body.campus-page-integrations .grid .cardx:nth-child(4n+2) { border-top-color: #059669 !important; background: #f4fbf8 !important; }
body.campus-page-integrations .grid .cardx:nth-child(4n+3) { border-top-color: #6f42d9 !important; background: #faf8ff !important; }
body.campus-page-integrations .grid .cardx:nth-child(4n) { border-top-color: #e56a22 !important; background: #fff8f3 !important; }
body.campus-page-integrations .runtime .metric:nth-child(2) { background: #edf5ff !important; }
body.campus-page-integrations .runtime .metric:nth-child(3) { background: #f2edff !important; }

@media (max-width: 680px) {
    body.campus-themed:not(.campus-page-home) .header,
    body.campus-themed:not(.campus-page-home) .dashboard-header,
    body.campus-themed:not(.campus-page-home) .topbar,
    body.campus-themed:not(.campus-page-home) .page-header { min-height: 76px; padding: 14px 15px !important; }
    body.campus-themed:not(.campus-page-home) .header::after,
    body.campus-themed:not(.campus-page-home) .dashboard-header::after,
    body.campus-themed:not(.campus-page-home) .topbar::after,
    body.campus-themed:not(.campus-page-home) .page-header::after { left: 15px; }
}

/* -------------------------------------------------------------------------
   Final workbench pass for the three legacy business pages.
   These pages keep their existing DOM and scripts; this layer only brings
   their visual hierarchy into the shared light workspace.
   ------------------------------------------------------------------------- */
body.campus-workbench.campus-page-vision,
body.campus-workbench.campus-page-classroom,
body.campus-workbench.campus-page-report {
    color: #172033 !important;
    background: #edf2f8 !important;
}

body.campus-workbench.campus-page-vision > .header,
body.campus-workbench.campus-page-classroom > .page-header,
body.campus-workbench.campus-page-report > .header {
    position: relative;
    z-index: 1;
    color: #172033 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #d9e2ee !important;
    box-shadow: 0 2px 8px rgba(31, 45, 73, .04) !important;
}

body.campus-workbench.campus-page-vision > .header {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 24px !important;
}
body.campus-workbench.campus-page-vision > .header h1 {
    flex: 0 0 auto;
    color: #1c3557 !important;
    font-size: 1.02rem !important;
    font-weight: 750;
    line-height: 1.4;
}
body.campus-workbench.campus-page-vision > .header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 14px;
}
body.campus-workbench.campus-page-vision > .header .nav > a { display: none; }
body.campus-workbench.campus-page-vision > .header .mode-switch { margin-left: auto; }
body.campus-workbench.campus-page-vision .mode-switch .mode-btn {
    min-height: 34px;
    color: #49627f !important;
    background: #f7faff !important;
    border: 1px solid #cbd8e8 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
body.campus-workbench.campus-page-vision .mode-switch .mode-btn:hover {
    color: #145fc2 !important;
    border-color: #78aef0 !important;
    background: #edf5ff !important;
}
body.campus-workbench.campus-page-vision .mode-switch .mode-btn.active {
    color: #ffffff !important;
    background: #246fd1 !important;
    border-color: #246fd1 !important;
}

body.campus-workbench.campus-page-vision > .content,
body.campus-workbench.campus-page-classroom > .content,
body.campus-workbench.campus-page-report > .content {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 20px 24px 34px !important;
}

/* Vision: analysis input is the primary surface; results use a calmer grid. */
body.campus-workbench.campus-page-vision .card {
    color: #172033 !important;
    background: #ffffff !important;
    border: 1px solid #d7e1ed !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 16px rgba(31, 45, 73, .055) !important;
}
body.campus-workbench.campus-page-vision #uploadSection > div:first-child .card,
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .card {
    min-height: 324px !important;
}
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .card {
    color: #eaf3ff !important;
    background: linear-gradient(145deg, #172c4b, #1b4665) !important;
    border-color: #2e607c !important;
    box-shadow: 0 8px 20px rgba(24, 57, 88, .12) !important;
}
body.campus-workbench.campus-page-vision .card-title {
    color: #29496f !important;
    font-size: .83rem !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .card-title { color: #dceaff !important; }
body.campus-workbench.campus-page-vision .upload-zone {
    min-height: 196px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px !important;
    color: #49627f !important;
    background: #f7faff !important;
    border: 1px dashed #91b6e5 !important;
    border-radius: 7px !important;
}
body.campus-workbench.campus-page-vision .upload-zone:hover {
    background: #f0f6ff !important;
    border-color: #3984dc !important;
}
body.campus-workbench.campus-page-vision .upload-zone.dragover { background: #edf9f5 !important; border-color: #22a883 !important; }
body.campus-workbench.campus-page-vision .upload-zone #uploadHint div:not(.upload-symbol),
body.campus-workbench.campus-page-vision #videoUploadHint div:not([style*="font-size:2.5rem"]) { color: #49627f !important; }
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state {
    color: #cfe0f2 !important;
    padding: 22px !important;
}
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state > div { color: #cfe0f2 !important; }
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state > div + div { color: #9eb8d2 !important; }
body.campus-workbench.campus-page-vision .btn-primary,
body.campus-workbench.campus-page-vision .cam-btn,
body.campus-workbench.campus-page-vision .btn-outline {
    min-height: 36px;
    padding: 0 14px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
body.campus-workbench.campus-page-vision .btn-primary,
body.campus-workbench.campus-page-vision .cam-btn { background: #246fd1 !important; }
body.campus-workbench.campus-page-vision .btn-outline { color: #145fc2 !important; background: #f7faff !important; border-color: #9fc5f5 !important; }
body.campus-workbench.campus-page-vision .result-grid { gap: 10px !important; }
body.campus-workbench.campus-page-vision .realtime-card,
body.campus-workbench.campus-page-vision .gauge-card,
body.campus-workbench.campus-page-vision .student-card {
    color: #172033 !important;
    background: #f7faff !important;
    border-color: #d3deec !important;
    box-shadow: none !important;
}
body.campus-workbench.campus-page-vision .realtime-card .rt-label,
body.campus-workbench.campus-page-vision .gauge-card .gauge-lbl,
body.campus-workbench.campus-page-vision .student-card .s-lbl { color: #5b6f88 !important; }
body.campus-workbench.campus-page-vision #modeVideo .card { min-height: 0 !important; }
body.campus-workbench.campus-page-vision #modeVideo .card:first-child,
body.campus-workbench.campus-page-vision #modeVideo .card:nth-child(2) { min-height: 310px !important; }
body.campus-workbench.campus-page-vision #modeVideo .upload-zone { min-height: 190px; }
body.campus-workbench.campus-page-vision #videoResultSection .card { box-shadow: 0 5px 15px rgba(31, 45, 73, .045) !important; }
body.campus-workbench.campus-page-vision #videoReplayCard,
body.campus-workbench.campus-page-vision #videoFusionAdvice,
body.campus-workbench.campus-page-vision #videoAssignmentCard { background: #ffffff !important; }
body.campus-workbench.campus-page-vision .video-replay-stage { background: #132238 !important; }
body.campus-workbench.campus-page-vision #videoCoverageSummary,
body.campus-workbench.campus-page-vision #videoAssignmentHint { color: #536985 !important; }

/* Classroom: make selection, freshness and student detail read as one flow. */
body.campus-workbench.campus-page-classroom > .page-header {
    min-height: 78px;
    padding: 16px 24px !important;
}
body.campus-workbench.campus-page-classroom .page-header h1 { color: #1c3557 !important; font-size: 1.08rem !important; }
body.campus-workbench.campus-page-classroom .page-header .subtitle { color: #62738a !important; }
body.campus-workbench.campus-page-classroom .class-selector {
    color: #243d5f !important;
    background-color: #f7faff !important;
    border-color: #b9cbe1 !important;
    border-radius: 6px !important;
}
body.campus-workbench.campus-page-classroom .class-selector option { color: #172033; background: #ffffff; }
body.campus-workbench.campus-page-classroom .btn-refresh,
body.campus-workbench.campus-page-classroom .btn-add-classroom { box-shadow: none !important; }
body.campus-workbench.campus-page-classroom .stat-card,
body.campus-workbench.campus-page-classroom .panel {
    color: #172033 !important;
    background: #ffffff !important;
    border: 1px solid #d7e1ed !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 16px rgba(31,45,73,.05) !important;
}
body.campus-workbench.campus-page-classroom .stat-card { min-height: 104px; padding: 17px !important; }
body.campus-workbench.campus-page-classroom .stat-card .stat-value { color: #1d4f91 !important; }
body.campus-workbench.campus-page-classroom .stat-card .stat-label,
body.campus-workbench.campus-page-classroom .panel-title { color: #5b6f88 !important; }
body.campus-workbench.campus-page-classroom .chart-container {
    min-height: 258px;
    background: #f7faff;
    border: 1px solid #e0e8f2;
    border-radius: 6px;
}
body.campus-workbench.campus-page-classroom #studentList { min-height: 258px; }
body.campus-workbench.campus-page-classroom .student-card { box-shadow: none !important; }
body.campus-workbench.campus-page-classroom .empty-state { color: #657991 !important; }
body.campus-workbench.campus-page-classroom .empty-state .empty-text { color: #425b78 !important; }

/* Report: a compact query header and explicit empty states avoid a broken-looking page. */
body.campus-workbench.campus-page-report > .header {
    min-height: 78px;
    padding: 14px 24px !important;
}
body.campus-workbench.campus-page-report > .header h1 { color: #1c3557 !important; font-size: 1.08rem !important; }
body.campus-workbench.campus-page-report .report-query label { color: #49627f !important; }
body.campus-workbench.campus-page-report .report-query input {
    color: #172033 !important;
    background: #f7faff !important;
    border-color: #b9cbe1 !important;
}
body.campus-workbench.campus-page-report .report-query input::placeholder { color: #7a8da4 !important; }
body.campus-workbench.campus-page-report .btn-gen { min-height: 36px; background: #246fd1 !important; box-shadow: none !important; }
body.campus-workbench.campus-page-report .report-scope-note { color: #657991 !important; }
body.campus-workbench.campus-page-report .report-card {
    color: #172033 !important;
    background: #ffffff !important;
    border: 1px solid #d7e1ed !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 16px rgba(31,45,73,.05) !important;
}
body.campus-workbench.campus-page-report .report-card .title { color: #29496f !important; }
body.campus-workbench.campus-page-report .report-card .value { color: #1d4f91 !important; }
body.campus-workbench.campus-page-report .report-trend-card,
body.campus-workbench.campus-page-report .report-analysis-card { min-height: 300px !important; }
body.campus-workbench.campus-page-report .chart-container { background: #f7faff; border: 1px solid #e0e8f2; border-radius: 6px; }
body.campus-workbench.campus-page-report .suggestion-box { color: #425b78 !important; background: #f7faff !important; border-color: #d4e1ee !important; }
body.campus-workbench.campus-page-report .suggestion-box p { color: #425b78 !important; }

@media (max-width: 760px) {
    body.campus-workbench.campus-page-vision > .header { align-items: stretch; flex-direction: column; gap: 9px; }
    body.campus-workbench.campus-page-vision > .header .nav { width: 100%; }
    body.campus-workbench.campus-page-vision > .header .mode-switch { width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.campus-workbench.campus-page-vision .mode-switch .mode-btn { min-width: 0; padding: 0 5px !important; font-size: .76rem; }
    body.campus-workbench.campus-page-vision > .content,
    body.campus-workbench.campus-page-classroom > .content,
    body.campus-workbench.campus-page-report > .content { padding: 14px 12px 24px !important; }
    body.campus-workbench.campus-page-report > .header { display: block !important; }
    body.campus-workbench.campus-page-report > .header > div:last-child { margin-top: 10px; }
}

@media (max-width: 980px) {
    .campus-global-nav { grid-template-columns: 1fr auto; }
    .campus-nav-links { display: none; }
}
@media (max-width: 680px) {
    .campus-global-nav { min-height: 58px; grid-template-columns: 1fr auto; padding: 8px 12px; }
    .campus-nav-links {
        grid-column: 1 / -1;
        width: 100%;
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .campus-nav-links::-webkit-scrollbar { display: none; }
    .campus-brand-copy span, .campus-service-state { display: none; }
    body.campus-themed .content,
    body.campus-themed .dashboard-body,
    body.campus-themed .wrap { padding: 14px 12px 24px !important; }
}

/* Confirmed workbench shell: shared by every business page. */
body.campus-workbench {
    --workbench-sidebar: 216px;
    padding-top: 64px;
    padding-left: var(--workbench-sidebar);
    background: #edf2f8 !important;
    background-image: none !important;
}
.campus-workbench-topbar {
    height: 64px;
    display: grid;
    grid-template-columns: var(--workbench-sidebar) minmax(0, 1fr) auto;
    align-items: center;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1300;
    color: #fff;
    background: #0b1324;
    border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 5px 16px rgba(3,9,20,.16);
}
.campus-workbench-topbar .campus-brand {
    height: 64px;
    padding: 0 18px;
    border-right: 1px solid rgba(255,255,255,.09);
}
.campus-task-title { min-width: 0; padding: 0 22px; }
.campus-task-title strong { display: block; color: #f8fbff; font-size: 13px; }
.campus-task-title span { display: block; margin-top: 3px; color: #7f90aa; font-size: 10px; }
.campus-workbench-actions { display: flex; align-items: center; gap: 9px; padding-right: 18px; }
.campus-workbench-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #aab8cc;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
}
.campus-workbench-icon:hover { color: #fff; background: rgba(255,255,255,.1); }
.campus-mobile-menu { display: none; padding: 0; cursor: pointer; }
.campus-sidebar-backdrop { display: none; }
.campus-workbench-icon svg,
.campus-sidebar-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.campus-workbench-sidebar {
    width: var(--workbench-sidebar);
    padding: 20px 11px;
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 1200;
    overflow-y: auto;
    color: #aebbd0;
    background: #111d33;
    border-right: 1px solid #24334c;
}
.campus-sidebar-label { padding: 0 10px 9px; color: #687994; font-size: 10px; font-weight: 700; }
.campus-sidebar-link {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    padding: 0 11px;
    color: #aebbd0 !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
}
.campus-sidebar-link:hover { color: #fff !important; background: rgba(255,255,255,.05); }
.campus-sidebar-link.active { color: #fff !important; background: #2563eb; }
.campus-sidebar-overview {
    margin-bottom: 0;
    color: #d7e3f4 !important;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
}
.campus-sidebar-overview:hover { background: rgba(37,99,235,.18); border-color: rgba(91,141,239,.45); }
.campus-sidebar-overview-divider { margin-top: 16px; }
.campus-sidebar-icon { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; }
.campus-sidebar-divider { height: 1px; margin: 16px 9px; background: rgba(255,255,255,.08); }
.campus-device-card { margin: 12px 3px 0; padding: 13px; background: #14243c; border: 1px solid #293a55; border-radius: 7px; }
.campus-device-card > div { display: flex; align-items: center; justify-content: space-between; color: #8494ae; font-size: 10px; }
.campus-device-card > div b { color: #45d3ae; font-size: 10px; }
.campus-device-card > strong { display: block; margin: 8px 0 4px; color: #e8eef7; font-size: 12px; }
.campus-device-card p { margin: 0; color: #7687a1; font-size: 10px; line-height: 1.6; }

body.campus-workbench > .header,
body.campus-workbench > .dashboard-header,
body.campus-workbench > .topbar,
body.campus-workbench > .page-header {
    width: min(1480px, 100%);
    min-height: 78px;
    margin: 0 auto;
    padding: 22px 24px 12px !important;
    color: var(--campus-text) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none;
}
body.campus-workbench > .header::after,
body.campus-workbench > .dashboard-header::after,
body.campus-workbench > .topbar::after,
body.campus-workbench > .page-header::after { display: none; }
body.campus-workbench > .header h1,
body.campus-workbench > .dashboard-header h1,
body.campus-workbench > .topbar h1,
body.campus-workbench > .page-header h1 {
    color: #172033 !important;
    font-size: 1.34rem !important;
    font-weight: 750 !important;
}
body.campus-workbench > .page-header .subtitle,
body.campus-workbench > .dashboard-header .time,
body.campus-workbench > .header #agentSource { color: #617086 !important; }
body.campus-workbench > .header .mode-switch .mode-btn {
    color: #607087 !important;
    background: #ffffff !important;
    border: 1px solid #d9e2ee !important;
    box-shadow: none !important;
}
body.campus-workbench > .header .mode-switch .mode-btn.active {
    color: #fff !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
}

/* Vision modes are actions, not unavailable controls. This must override the workbench header baseline. */
body.campus-workbench.campus-page-vision > .header .mode-switch .mode-btn {
    color: #ffffff !important;
    background: rgba(7, 27, 60, .42) !important;
    border-color: rgba(191,219,254,.72) !important;
    opacity: 1 !important;
}
body.campus-workbench.campus-page-vision > .header .mode-switch .mode-btn:hover,
body.campus-workbench.campus-page-vision > .header .mode-switch .mode-btn:focus-visible {
    color: #ffffff !important;
    background: rgba(7, 27, 60, .64) !important;
    border-color: #dbeafe !important;
    outline: none;
}
body.campus-workbench.campus-page-vision > .header .mode-switch .mode-btn.active {
    color: #ffffff !important;
    background: #2563eb !important;
    border-color: transparent !important;
}

body.campus-workbench .content,
body.campus-workbench .dashboard-body,
body.campus-workbench .wrap {
    max-width: 1480px;
    margin: 0 auto;
    padding: 10px 24px 30px !important;
}
body.campus-workbench .mode-heading {
    margin: 0 0 16px;
    padding: 0 !important;
    background: transparent !important;
    border: 0;
    border-radius: 0;
}
body.campus-workbench .mode-heading h2 { margin-bottom: 5px; color: #172033 !important; font-size: 1.08rem; }
body.campus-workbench .mode-heading p { color: #617086 !important; }
body.campus-workbench .card,
body.campus-workbench .card-panel,
body.campus-workbench .panel,
body.campus-workbench .report-card,
body.campus-workbench .inspect-card,
body.campus-workbench .cardx,
body.campus-workbench .stat-card {
    background: #fff !important;
    border: 1px solid #d9e2ee !important;
    border-top-width: 1px !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 22px rgba(23,32,51,.07) !important;
}
body.campus-workbench .card-title,
body.campus-workbench .panel-title,
body.campus-workbench .report-card .title,
body.campus-workbench .panel h2 { color: #172033 !important; }
body.campus-workbench .upload-zone,
body.campus-workbench .qa-upload-zone {
    background: #f4f8fd !important;
    border: 1px dashed #8fb6e9 !important;
    border-radius: 7px !important;
}
body.campus-workbench .btn-primary,
body.campus-workbench .btn-main,
body.campus-workbench .btn-gen,
body.campus-workbench .btn-send,
body.campus-workbench .btn-inspect,
body.campus-workbench .cam-btn {
    background: #2563eb !important;
    box-shadow: 0 7px 17px rgba(37,99,235,.18) !important;
}

body.campus-workbench.campus-page-vision #uploadSection > div:last-child .card {
    color: #172033 !important;
    background: #fff !important;
    border-color: #d9e2ee !important;
}
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state {
    background: transparent !important;
}
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state-shell {
    max-width: none;
    width: calc(100% - 34px);
    padding: 20px;
    color: #fff;
    background: #173654;
    border: 0;
    border-radius: 7px;
}
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state-title { color: #fff !important; }
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state-copy,
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .readiness-row span:first-child { color: #b9c8d9 !important; }
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .readiness-row { border-color: rgba(255,255,255,.13) !important; }
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .readiness-row span:last-child { color: #78e1c0 !important; }
body.campus-workbench.campus-page-vision .realtime-card,
body.campus-workbench.campus-page-vision .student-card,
body.campus-workbench.campus-page-vision .person-summary-item,
body.campus-workbench.campus-page-vision .gauge-card { background: #fff !important; border-color: #d9e2ee !important; }
body.campus-workbench.campus-page-vision .student-card .s-idx {
    min-width: 56px;
    color: #2563eb !important;
    font-size: 12px;
    white-space: nowrap;
}
body.campus-workbench.campus-page-vision .analysis-output { color: #334155 !important; }
body.campus-workbench.campus-page-vision .analysis-fusion-panel,
body.campus-workbench.campus-page-vision .analysis-report-panel {
    padding: 15px 16px;
    color: #334155 !important;
    background: #f8fafc !important;
    border: 1px solid #d8e2ef !important;
    border-radius: 7px;
}
body.campus-workbench.campus-page-vision .analysis-fusion-panel {
    background: #faf8ff !important;
    border-color: #ddd4fe !important;
}
body.campus-workbench.campus-page-vision .analysis-panel-heading {
    margin-bottom: 10px;
    color: #1677ff !important;
    font-size: 13px;
    font-weight: 700;
}
body.campus-workbench.campus-page-vision .analysis-report-body,
body.campus-workbench.campus-page-vision .analysis-report-body > div {
    color: #334155 !important;
}
body.campus-workbench.campus-page-vision .analysis-report-body {
    font-size: 14px;
    line-height: 1.9;
}
body.campus-workbench.campus-page-vision .analysis-report-body b { color: #1d4ed8 !important; }

/* Video results use light cards, so legacy pale-blue text needs light-theme contrast. */
body.campus-workbench.campus-page-vision #videoResultSection .card,
body.campus-workbench.campus-page-vision #videoResultSection .card > div,
body.campus-workbench.campus-page-vision #videoResultSection li,
body.campus-workbench.campus-page-vision #visionEvaluationCard td {
    color: #243b5a;
}
body.campus-workbench.campus-page-vision #videoFusionAdvice,
body.campus-workbench.campus-page-vision #videoFusionAdvice li,
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-intro,
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-status,
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-note {
    color: #3f5f86 !important;
}
body.campus-workbench.campus-page-vision #videoResultSection .alert-info {
    color: #315b83 !important;
    background: #eaf3fb !important;
    border-left-color: #3182ce !important;
}
body.campus-workbench.campus-page-vision #videoResultSection .alert-warn {
    color: #835018 !important;
    background: #fff6df !important;
}
body.campus-workbench.campus-page-vision #videoResultSection .alert-critical {
    color: #9f2f3c !important;
    background: #fff0f1 !important;
}
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-table-wrap {
    border-color: #cbd8e8 !important;
}
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-table th {
    color: #29496f !important;
    background: #e8eef6 !important;
    font-weight: 700;
}
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-table td {
    border-bottom-color: #dbe4ef !important;
}
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-table input,
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-table select {
    color: #172033 !important;
    background: #fff !important;
    border-color: #b9c9dc !important;
}
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-table input::placeholder {
    color: #687b94 !important;
    opacity: 1;
}
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-metric {
    background: #f4f7fb !important;
    border-color: #d4deeb !important;
}
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-metric strong { color: #172033 !important; }
body.campus-workbench.campus-page-vision #visionEvaluationCard .evaluation-metric span { color: #536985 !important; }
body.campus-workbench.campus-page-vision #visionEvaluationCard .btn-primary:disabled {
    color: #eaf1ff !important;
    background: #6f91c7 !important;
    border-color: #6f91c7 !important;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none !important;
}

body.campus-workbench.campus-page-dashboard .dashboard-body > .row:first-child .card-panel,
body.campus-workbench.campus-page-classroom .overview-cards .stat-card,
body.campus-workbench.campus-page-report .content > .row:first-child .report-card,
body.campus-workbench.campus-page-integrations .grid .cardx {
    background: #fff !important;
    border-top: 1px solid #d9e2ee !important;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:first-child > div:first-child .card-panel,
body.campus-workbench.campus-page-classroom .overview-cards .stat-card:first-child { border-left: 3px solid #2563eb !important; }
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:first-child > div:nth-child(2) .card-panel,
body.campus-workbench.campus-page-classroom .overview-cards .stat-card:nth-child(2) { border-left: 3px solid #22a883 !important; }
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:first-child > div:nth-child(4) .card-panel,
body.campus-workbench.campus-page-classroom .overview-cards .stat-card:nth-child(3) { border-left: 3px solid #d85b69 !important; }
body.campus-workbench.campus-page-dashboard .chart-container,
body.campus-workbench.campus-page-dashboard .chart-container > div,
body.campus-workbench.campus-page-dashboard .chart-container canvas {
    max-width: 100% !important;
}
body.campus-workbench.campus-page-dashboard .chart-container > div,
body.campus-workbench.campus-page-dashboard .chart-container canvas {
    width: 100% !important;
}
/* Dashboard: distinguish monitoring, interpretation and action without inventing data. */
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(2) .card-panel,
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(3) .card-panel {
    overflow: hidden;
    background: #f7fbff !important;
    border-color: #cbdbea !important;
    box-shadow: 0 8px 18px rgba(33, 73, 116, .055) !important;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(2) > div:first-child .card-panel {
    border-top: 3px solid #2d73d5 !important;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(2) > div:nth-child(2) .card-panel {
    border-top: 3px solid #4a91d9 !important;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(2) > div:nth-child(3) .card-panel {
    border-top: 3px solid #183f6c !important;
    background: #f4f8fd !important;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(3) > div:first-child .card-panel {
    border-top: 3px solid #d96a75 !important;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(3) > div:nth-child(2) .card-panel {
    border-top: 3px solid #4a91d9 !important;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(3) > div:nth-child(3) .card-panel {
    color: #dcecff !important;
    background: #163b67 !important;
    border-color: #214d7f !important;
    border-top-color: #5b9ff1 !important;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(3) > div:nth-child(3) .card-title,
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(3) > div:nth-child(3) #fusionStatus {
    color: #dcecff !important;
}
body.campus-workbench.campus-page-dashboard .chart-container {
    min-height: 260px;
    background: rgba(225, 238, 250, .36);
    border: 1px solid rgba(187, 207, 229, .7);
    border-radius: 6px;
}
body.campus-workbench.campus-page-dashboard .ai-report {
    min-height: 220px;
    padding: 14px !important;
    color: #405777 !important;
    background: #edf5ff !important;
    border-left: 3px solid #2b74d3;
    border-radius: 0 6px 6px 0;
}
body.campus-workbench.campus-page-dashboard #fusionPanel {
    min-height: 220px;
    padding: 12px;
    background: rgba(5, 22, 45, .17);
    border: 1px solid rgba(167, 203, 244, .2);
    border-radius: 6px;
}
body.campus-workbench.campus-page-dashboard #fusionPanel > div[style*="padding:12px"] {
    color: #dcecff !important;
    background: rgba(7, 27, 57, .46) !important;
    border-color: rgba(132, 183, 245, .34) !important;
}
body.campus-workbench.campus-page-dashboard #alertList {
    min-height: 220px;
    padding: 2px 1px;
}

/* Integration cards expose a usable service state, not raw transport diagnostics. */
body.campus-workbench.campus-page-integrations .status-overview {
    color: #dcecff !important;
    background: #153a66 !important;
    border-color: #285585 !important;
    border-left-color: #5b9ff1 !important;
}
body.campus-workbench.campus-page-integrations .overview-title { color: #ffffff !important; }
body.campus-workbench.campus-page-integrations .overview-summary { color: #c0d8ef !important; }
body.campus-workbench.campus-page-integrations .count-chip {
    color: #bdd1e6 !important;
    background: rgba(255,255,255,.075) !important;
    border-color: rgba(201,225,249,.22) !important;
}
body.campus-workbench.campus-page-integrations .count-chip b { color: #ffffff !important; }
body.campus-workbench.campus-page-integrations .grid .cardx {
    background: #f7fbff !important;
    border-color: #cbdbea !important;
}
body.campus-workbench.campus-page-integrations .grid .cardx.integration-sf-fastgpt {
    color: #dcecff !important;
    background: #173e6d !important;
    border-color: #286099 !important;
    border-top-color: #63a6ff !important;
}
body.campus-workbench.campus-page-integrations .grid .cardx.integration-sf-fastgpt .name { color: #ffffff !important; }
body.campus-workbench.campus-page-integrations .grid .cardx.integration-sf-fastgpt .service-kind { color: #a9c9e9 !important; }
body.campus-workbench.campus-page-integrations .grid .cardx.integration-sf-fastgpt .note { color: #c6dcf2 !important; }
body.campus-workbench.campus-page-integrations .grid .cardx.integration-deepseek-report {
    background: #eef6ff !important;
    border-top-color: #377fdd !important;
}
body.campus-workbench.campus-page-dashboard .error-toast {
    max-width: calc(100vw - 40px);
    visibility: hidden;
    transform: translateY(-10px);
}
body.campus-workbench.campus-page-dashboard .error-toast.show {
    visibility: visible;
    transform: translateY(0);
}

body.campus-workbench.campus-page-agent .layout {
    height: calc(100vh - 142px) !important;
    min-height: 620px;
    margin-top: 0;
    background: transparent !important;
}
body.campus-workbench.campus-page-agent .inspect-panel { background: #e7edf6 !important; }
body.campus-workbench.campus-page-agent .chat-box { background: #fff !important; box-shadow: none !important; }
body.campus-workbench.campus-page-agent .quick-btn { background: #fff !important; border-color: #d9e2ee !important; }
body.campus-workbench.campus-page-agent .status-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
body.campus-workbench.campus-page-agent .status-item {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Purposeful first-load states prevent report and chat pages from reading as broken blank space. */
body.campus-workbench.campus-page-agent .chat-area { min-width: 0; }
body.campus-workbench.campus-page-agent .chat-area {
    padding: 18px !important;
    background: #dfeaf6 !important;
}
body.campus-workbench.campus-page-agent .quick-actions { gap: 7px; margin-bottom: 10px; }
body.campus-workbench.campus-page-agent .quick-btn {
    min-height: 34px;
    padding: 6px 12px;
    color: #18477e !important;
    background: #eaf3ff !important;
    font-size: .8rem;
    font-weight: 700 !important;
    border-color: #bdd7f3 !important;
    border-radius: 6px !important;
}
body.campus-workbench.campus-page-agent .quick-btn:hover {
    color: #ffffff !important;
    background: #1b66c9 !important;
    border-color: #1b66c9 !important;
}
body.campus-workbench.campus-page-agent .chat-box {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 18px 20px !important;
    background: #edf5fc !important;
    border-color: #c7d9ea !important;
}
body.campus-workbench.campus-page-agent .agent-workspace-bar {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(140px, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    padding: 10px 12px;
    color: #eaf4ff;
    background: #16395f;
    border: 1px solid #244f7d;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(18, 51, 88, .13);
}
body.campus-workbench.campus-page-agent .agent-workspace-bar > div {
    min-width: 0;
    padding-right: 14px;
    border-right: 1px solid rgba(210, 229, 250, .18);
}
body.campus-workbench.campus-page-agent .agent-workspace-bar span {
    display: block;
    margin-bottom: 3px;
    color: #a8c3df;
    font-size: .7rem;
    line-height: 1.2;
}
body.campus-workbench.campus-page-agent .agent-workspace-bar strong {
    display: block;
    overflow: hidden;
    color: #f3f8ff;
    font-size: .84rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.campus-workbench.campus-page-agent .agent-analysis-trigger,
body.campus-workbench.campus-page-agent .agent-action-primary {
    min-height: 34px;
    padding: 0 13px;
    color: #fff;
    background: #2a7dea;
    border: 1px solid #4d96f3;
    border-radius: 6px;
    box-shadow: 0 5px 12px rgba(23, 105, 209, .16);
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
body.campus-workbench.campus-page-agent .agent-analysis-trigger:hover,
body.campus-workbench.campus-page-agent .agent-action-primary:hover { background: #1769d1; border-color: #2a7dea; }
body.campus-workbench.campus-page-agent .agent-start-screen {
    width: min(880px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(275px, .85fr);
    gap: 14px;
    margin: auto;
}
/* Before the first conversation, show a compact workspace instead of an empty chat canvas. */
body.campus-workbench.campus-page-agent .chat-box:has(.agent-start-screen) {
    flex: 0 0 auto;
    min-height: 0;
}
body.campus-workbench.campus-page-agent .chat-box:has(.agent-start-screen) .agent-start-screen { margin: 0; }
body.campus-workbench.campus-page-agent .agent-welcome,
body.campus-workbench.campus-page-agent .agent-readiness {
    min-width: 0;
    padding: 22px;
    color: #536985;
    border: 1px solid #c8dbea;
    border-radius: 8px;
}
body.campus-workbench.campus-page-agent .agent-welcome {
    color: #d3e5fa;
    text-align: left;
    background: #163e70;
    box-shadow: 0 9px 18px rgba(20, 58, 101, .15);
}
body.campus-workbench.campus-page-agent .agent-welcome-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin: 0 0 14px;
    color: #163e70;
    background: #91c5ff;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
}
body.campus-workbench.campus-page-agent .agent-welcome h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.04rem;
    font-weight: 750;
}
body.campus-workbench.campus-page-agent .agent-welcome p {
    max-width: 470px;
    margin: 9px 0 0;
    color: #c2daf1;
    font-size: .83rem;
    line-height: 1.75;
}
body.campus-workbench.campus-page-agent .agent-start-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 17px;
}
body.campus-workbench.campus-page-agent .agent-action-link {
    color: #a9d3ff;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}
body.campus-workbench.campus-page-agent .agent-action-link:hover { color: #ffffff; text-decoration: underline; }
body.campus-workbench.campus-page-agent .agent-readiness {
    background: #f7fbff;
    border-top: 3px solid #397de0;
}
body.campus-workbench.campus-page-agent .agent-readiness-title {
    margin-bottom: 8px;
    color: #233d60;
    font-size: .8rem;
    font-weight: 750;
}
body.campus-workbench.campus-page-agent .agent-readiness-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    border-top: 1px solid #e8eef5;
    color: #526a87;
    font-size: .76rem;
}
body.campus-workbench.campus-page-agent .agent-readiness-item b { color: #8aa0ba; font-size: .68rem; }
body.campus-workbench.campus-page-agent .agent-readiness-item span { min-width: 0; line-height: 1.35; }
body.campus-workbench.campus-page-agent .agent-readiness-item i {
    padding: 3px 7px;
    color: #08765a;
    background: #e9f8f2;
    border-radius: 99px;
    font-size: .68rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}
body.campus-workbench.campus-page-agent .agent-readiness-item i#agentReadinessData { color: #876210; background: #fff6dd; }
body.campus-workbench.campus-page-agent .input-area {
    align-items: stretch;
    padding: 9px;
    background: #cfdff0;
    border: 1px solid #b8cde4;
    border-radius: 8px;
}
body.campus-workbench.campus-page-agent .input-area textarea {
    min-height: 44px;
    height: 44px !important;
    border-color: #b5cde6 !important;
}
body.campus-workbench.campus-page-agent .btn-send { min-width: 82px; }
body.campus-workbench.campus-page-agent .input-area textarea {
    color: #172033 !important;
    background: #fff !important;
    border-color: #cbd8e8 !important;
    border-radius: 7px !important;
}
body.campus-workbench.campus-page-agent .input-area textarea::placeholder { color: #8090a5 !important; }
body.campus-workbench.campus-page-agent .btn-send,
body.campus-workbench.campus-page-agent .btn-inspect { color: #fff !important; opacity: 1 !important; }
body.campus-workbench.campus-page-agent .btn-send:disabled,
body.campus-workbench.campus-page-agent .btn-inspect:disabled {
    color: #fff !important;
    background: #84aaf0 !important;
    opacity: 1 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

body.campus-workbench.campus-page-report .content { padding-top: 14px !important; }
body.campus-workbench.campus-page-report .report-card { padding: 18px !important; }
body.campus-workbench.campus-page-report .report-card .title { margin-bottom: 12px; font-size: .88rem; font-weight: 750; }
body.campus-workbench.campus-page-report .content > .row:first-child .report-card {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
body.campus-workbench.campus-page-report .report-card .value { color: #1d4f91 !important; font-size: 1.7rem; }
body.campus-workbench.campus-page-report .report-trend-card,
body.campus-workbench.campus-page-report .report-analysis-card { min-height: 286px !important; }
body.campus-workbench.campus-page-report .report-suggestion-card { min-height: 128px !important; }
.report-empty-state {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #718198;
    text-align: center;
}
.report-empty-state::before {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    content: "";
    background: linear-gradient(135deg, #eaf3ff, #dbeafe);
    border: 1px solid #bfd8f8;
    border-radius: 7px;
}
.report-empty-state strong { color: #304562; font-size: .9rem; font-weight: 700; }
.report-empty-state span { font-size: .78rem; }
.report-empty-compact { min-height: 62px; align-items: flex-start; text-align: left; }
.report-empty-compact::before { display: none; }

body.campus-workbench.campus-page-import .wrap > .row > div:last-child .panel {
    color: #e9f2ff !important;
    background: #173654 !important;
    border-color: #31536f !important;
}
body.campus-workbench.campus-page-import .steps .step,
body.campus-workbench.campus-page-integrations .runtime .metric { background: #f5f8fc !important; border-top: 1px solid #d9e2ee !important; }

@media (max-width: 1020px) {
    body.campus-workbench { --workbench-sidebar: 70px; }
    .campus-workbench-topbar .campus-brand { justify-content: center; padding: 0; }
    .campus-workbench-topbar .campus-brand-copy,
    .campus-sidebar-label,
    .campus-sidebar-link > span:last-child,
    .campus-device-card { display: none; }
    .campus-sidebar-link { justify-content: center; padding: 0; }
}
@media (max-width: 680px) {
    body.campus-workbench { padding-top: 58px; padding-left: 0; }
    html, body { max-width: 100%; overflow-x: hidden; }
    .campus-workbench-topbar { height: 58px; grid-template-columns: minmax(0, 1fr) auto; }
    .campus-workbench-topbar .campus-brand { height: 58px; justify-content: flex-start; padding: 0 14px; border: 0; }
    .campus-workbench-topbar .campus-brand-copy { display: block; }
    .campus-task-title,
    .campus-workbench-topbar .campus-service-state,
    .campus-workbench-sidebar { display: none; }
    .campus-mobile-menu { display: grid; }
    .campus-workbench-sidebar.mobile-open {
        width: min(286px, calc(100vw - 54px));
        display: block;
        top: 58px;
        z-index: 1500;
        box-shadow: 14px 0 35px rgba(3,9,20,.3);
    }
    .campus-workbench-sidebar.mobile-open .campus-sidebar-label,
    .campus-workbench-sidebar.mobile-open .campus-sidebar-link > span:last-child,
    .campus-workbench-sidebar.mobile-open .campus-device-card { display: block; }
    .campus-workbench-sidebar.mobile-open .campus-sidebar-link { justify-content: flex-start; padding: 0 11px; }
    .campus-sidebar-backdrop.show {
        display: block;
        position: fixed;
        top: 58px;
        right: 0;
        bottom: 0;
        left: min(286px, calc(100vw - 54px));
        z-index: 1450;
        padding: 0;
        background: rgba(5,12,24,.48);
        border: 0;
    }
    .campus-workbench-actions { padding-right: 10px; }
    body.campus-workbench > .header,
    body.campus-workbench > .dashboard-header,
    body.campus-workbench > .topbar,
    body.campus-workbench > .page-header { min-height: 70px; padding: 18px 15px 9px !important; }
    body.campus-workbench .content,
    body.campus-workbench .dashboard-body,
    body.campus-workbench .wrap { padding: 9px 15px 24px !important; }
    body.campus-workbench.campus-page-agent .layout { height: auto !important; min-height: 0; }

    /* Keep the workbench pages inside the phone viewport instead of relying on clipped overflow. */
    body.campus-workbench.campus-page-dashboard > .dashboard-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 11px;
    }
    body.campus-workbench.campus-page-dashboard > .dashboard-header > div:first-child,
    body.campus-workbench.campus-page-dashboard > .dashboard-header .info-bar {
        width: 100%;
        min-width: 0;
    }
    body.campus-workbench.campus-page-dashboard > .dashboard-header h1 {
        white-space: nowrap;
        font-size: 1.16rem !important;
    }
    body.campus-workbench.campus-page-dashboard > .dashboard-header .info-bar {
        justify-content: flex-start !important;
        gap: 8px;
    }
    body.campus-workbench.campus-page-dashboard > .dashboard-header .time,
    body.campus-workbench.campus-page-dashboard > .dashboard-header .data-source-meta,
    body.campus-workbench.campus-page-dashboard > .dashboard-header #wsStatus { display: none !important; }
    body.campus-workbench.campus-page-dashboard > .dashboard-header .classroom-selector { min-width: 0; flex: 1 1 150px; }
    body.campus-workbench.campus-page-dashboard > .dashboard-header .classroom-selector select { min-width: 0; }
    body.campus-workbench.campus-page-dashboard .dashboard-body,
    body.campus-workbench.campus-page-dashboard .dashboard-body .row,
    body.campus-workbench.campus-page-dashboard .dashboard-body [class*="col-"] { min-width: 0; }

    body.campus-workbench.campus-page-classroom > .page-header {
        display: block;
        min-width: 0;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
    }
    body.campus-workbench.campus-page-classroom > .page-header > div:last-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 38px;
        width: 100%;
        min-width: 0;
        margin-top: 11px;
        gap: 8px !important;
    }
    body.campus-workbench.campus-page-classroom > .page-header .btn-refresh { grid-column: 1 / -1; width: 100%; }
    body.campus-workbench.campus-page-classroom .class-selector { width: 100%; min-width: 0; }
    body.campus-workbench.campus-page-classroom .content,
    body.campus-workbench.campus-page-classroom .overview-cards,
    body.campus-workbench.campus-page-classroom .charts-row,
    body.campus-workbench.campus-page-classroom .panel,
    body.campus-workbench.campus-page-classroom .chart-container { min-width: 0; max-width: 100%; box-sizing: border-box; }
    body.campus-workbench.campus-page-classroom .content { width: 100vw !important; max-width: 100vw !important; box-sizing: border-box; }
    body.campus-workbench.campus-page-classroom .overview-cards { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; }
    body.campus-workbench.campus-page-classroom .stat-card { padding: 14px 8px !important; }
    body.campus-workbench.campus-page-classroom .stat-card .stat-value { font-size: 1.75rem; }
    body.campus-workbench.campus-page-classroom .charts-row { grid-template-columns: minmax(0, 1fr); }
    body.campus-workbench.campus-page-classroom .chart-container,
    body.campus-workbench.campus-page-classroom .chart-container > div,
    body.campus-workbench.campus-page-classroom .chart-container canvas { width: 100% !important; max-width: 100% !important; }

    body.campus-workbench.campus-page-agent > .header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        min-width: 0;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
    }
    body.campus-workbench.campus-page-agent > .header h1 { margin-left: 0 !important; white-space: nowrap; font-size: 1.12rem !important; }
    body.campus-workbench.campus-page-agent > .header > div:last-child { width: 100%; min-width: 0; }
    body.campus-workbench.campus-page-agent #agentClassroomId { width: 100%; min-width: 0 !important; }
    body.campus-workbench.campus-page-agent .inspect-panel {
        width: 100%; min-width: 0 !important; max-height: none; padding: 14px 15px !important; overflow: visible;
    }
    body.campus-workbench.campus-page-agent .layout { width: 100vw; max-width: 100vw; overflow: hidden; box-sizing: border-box; }
    body.campus-workbench.campus-page-agent .status-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }
    body.campus-workbench.campus-page-agent .status-item { min-width: 0; font-size: .78rem; }
    body.campus-workbench.campus-page-agent .status-item:nth-child(3) { grid-column: 1 / -1; }
    body.campus-workbench.campus-page-agent .status-item .label { font-size: .68rem !important; line-height: 1.35; }
    body.campus-workbench.campus-page-agent #inspectStatusText { display: inline-block; font-size: .72rem !important; line-height: 1.35; }
    body.campus-workbench.campus-page-agent .chat-area { height: auto !important; padding: 14px 15px !important; min-width: 0; }
    body.campus-workbench.campus-page-agent .agent-workspace-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 9px;
        padding: 10px;
    }
    body.campus-workbench.campus-page-agent .agent-workspace-bar > div { padding-right: 8px; }
    body.campus-workbench.campus-page-agent .agent-workspace-bar > div:nth-child(2) { border-right: 0; }
    body.campus-workbench.campus-page-agent .agent-analysis-trigger { grid-column: 1 / -1; width: 100%; }
    body.campus-workbench.campus-page-agent .quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    body.campus-workbench.campus-page-agent .quick-btn { width: 100%; min-width: 0; padding: 8px 6px; white-space: normal; text-align: center; }
    body.campus-workbench.campus-page-agent .chat-box { min-height: 230px; flex: none; padding: 14px; }
    body.campus-workbench.campus-page-agent .chat-box:has(.agent-start-screen) { min-height: 0; }
    body.campus-workbench.campus-page-agent .agent-start-screen { grid-template-columns: minmax(0, 1fr); margin: 0; }
    body.campus-workbench.campus-page-agent .agent-welcome,
    body.campus-workbench.campus-page-agent .agent-readiness { padding: 17px; }
    body.campus-workbench.campus-page-agent .message .bubble,
    body.campus-workbench.campus-page-agent .message .message-stack { max-width: 100%; }
    body.campus-workbench.campus-page-agent .input-area { min-width: 0; }
    body.campus-workbench.campus-page-agent .input-area textarea { min-width: 0; }

    body.campus-workbench.campus-page-vision .content,
    body.campus-workbench.campus-page-vision #modeVideo,
    body.campus-workbench.campus-page-vision #modeVideo .row,
    body.campus-workbench.campus-page-vision #modeVideo [class*="col-"] { min-width: 0; max-width: 100%; }
    body.campus-workbench.campus-page-vision #modeVideo .row { margin-right: 0; margin-left: 0; }
    body.campus-workbench.campus-page-vision #modeVideo .row > [class*="col-"] { padding-right: 0; padding-left: 0; }
    body.campus-workbench.campus-page-vision .content { width: 100vw !important; max-width: 100vw !important; box-sizing: border-box; }
    body.campus-workbench.campus-page-vision .content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden;
    }
    body.campus-workbench.campus-page-vision .upload-zone,
    body.campus-workbench.campus-page-vision .upload-zone > *,
    body.campus-workbench.campus-page-vision .empty-state,
    body.campus-workbench.campus-page-vision .empty-state-shell {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    body.campus-workbench.campus-page-vision .upload-title,
    body.campus-workbench.campus-page-vision .upload-meta,
    body.campus-workbench.campus-page-vision .empty-state-copy {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
    body.campus-workbench.campus-page-vision .upload-zone,
    body.campus-workbench.campus-page-vision .upload-meta { overflow-wrap: anywhere; word-break: break-word; }

    /* Vision uses its own compact header; let each mode control wrap instead of clipping to the right. */
    body.campus-workbench.campus-page-vision > .header {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 9px;
        padding: 12px 15px !important;
    }
    body.campus-workbench.campus-page-vision > .header h1 {
        width: 100%;
        font-size: 1rem !important;
        line-height: 1.4;
    }
    body.campus-workbench.campus-page-vision > .header .nav,
    body.campus-workbench.campus-page-vision > .header .mode-switch {
        width: 100%;
        flex-wrap: wrap;
    }
    body.campus-workbench.campus-page-vision > .header .nav { gap: 6px 8px; }
    body.campus-workbench.campus-page-vision > .header .mode-switch { gap: 6px; }
    body.campus-workbench.campus-page-vision > .header .mode-switch .mode-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
        padding: 7px 8px !important;
        white-space: normal;
    }
    body.campus-workbench.campus-page-vision > .header .nav a {
        font-size: .76rem;
        white-space: nowrap;
    }

    /* Keep each student observation readable rather than letting metrics run past the viewport. */
    body.campus-workbench.campus-page-classroom .student-card {
        display: grid !important;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: center;
        gap: 9px 10px;
    }
    body.campus-workbench.campus-page-classroom .student-card .s-info { min-width: 0; }
    body.campus-workbench.campus-page-classroom .student-card .s-metrics {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 6px;
    }
    body.campus-workbench.campus-page-classroom .student-card .s-status {
        grid-column: 1 / -1;
        justify-self: start;
    }
    body.campus-workbench.campus-page-classroom .student-card .s-metric .val { font-size: .82rem; }
    body.campus-workbench.campus-page-classroom .student-card .s-metric .lbl { font-size: .62rem; white-space: nowrap; }

    /* The integration summary has three separate counters; retain all of them on a phone. */
    body.campus-workbench.campus-page-integrations .status-overview .overview-counts {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 7px;
    }
    body.campus-workbench.campus-page-integrations .status-overview .count-chip {
        min-width: 0;
        padding: 9px 5px;
        font-size: .67rem;
        text-align: center;
        overflow-wrap: anywhere;
    }
    body.campus-workbench.campus-page-integrations .status-overview .count-chip b {
        font-size: 1.1rem;
    }

    body.campus-workbench.campus-page-report > .header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 12px;
        width: 100% !important;
        min-width: 0 !important;
    }
    body.campus-workbench.campus-page-report > .header > div,
    body.campus-workbench.campus-page-report > .header > div:last-child {
        width: 100% !important;
        min-width: 0 !important;
    }
    body.campus-workbench.campus-page-report > .header h1 {
        display: inline-block !important;
        margin: 0 0 0 12px !important;
        white-space: nowrap;
    }
    body.campus-workbench.campus-page-report .report-query {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        width: 100%;
    }
    body.campus-workbench.campus-page-report .report-query label {
        grid-column: 1 / -1;
    }
    body.campus-workbench.campus-page-report .report-query input {
        width: 100%;
        min-width: 0;
    }
    body.campus-workbench.campus-page-report .report-query .btn-gen {
        width: 100%;
        margin-top: 8px;
    }
    body.campus-workbench.campus-page-report .report-scope-note { margin-top: 7px; }
    body.campus-workbench.campus-page-report > .header > div,
    body.campus-workbench.campus-page-report .report-query,
    body.campus-workbench.campus-page-report .report-query input {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Import is a narrow form on phones: keep its controls inside the viewport instead of clipping the right edge. */
    body.campus-workbench.campus-page-import .wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    body.campus-workbench.campus-page-import .page-heading,
    body.campus-workbench.campus-page-import .page-heading p,
    body.campus-workbench.campus-page-import .import-panel,
    body.campus-workbench.campus-page-import .import-step,
    body.campus-workbench.campus-page-import .step-content,
    body.campus-workbench.campus-page-import .room-row {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    body.campus-workbench.campus-page-import .page-heading p,
    body.campus-workbench.campus-page-import .step-hint { overflow-wrap: anywhere; }
    body.campus-workbench.campus-page-import .file-picker {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Final page-level overrides. Keep this block at the end so legacy page
   styles cannot undo the shared workbench hierarchy. */
body.campus-workbench.campus-page-vision > .header,
body.campus-workbench.campus-page-classroom > .page-header,
body.campus-workbench.campus-page-report > .header {
    color: #172033 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #d9e2ee !important;
}
body.campus-workbench.campus-page-vision > .header h1,
body.campus-workbench.campus-page-classroom > .page-header h1,
body.campus-workbench.campus-page-report > .header h1 { color: #1c3557 !important; }
body.campus-workbench.campus-page-vision > .content,
body.campus-workbench.campus-page-classroom > .content,
body.campus-workbench.campus-page-report > .content {
    max-width: 1440px !important;
    padding: 20px 24px 34px !important;
}
body.campus-workbench.campus-page-vision .card,
body.campus-workbench.campus-page-classroom .stat-card,
body.campus-workbench.campus-page-classroom .panel,
body.campus-workbench.campus-page-report .report-card {
    color: #172033 !important;
    background: #ffffff !important;
    border: 1px solid #d7e1ed !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 16px rgba(31,45,73,.055) !important;
}
body.campus-workbench.campus-page-vision .card-title,
body.campus-workbench.campus-page-classroom .panel-title,
body.campus-workbench.campus-page-report .report-card .title {
    color: #29496f !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .card {
    color: #eaf3ff !important;
    background: linear-gradient(145deg, #172c4b, #1b4665) !important;
    border-color: #2e607c !important;
}
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .card-title,
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state,
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state > div { color: #dceaff !important; }
body.campus-workbench.campus-page-vision #uploadSection > div:last-child .empty-state > div + div { color: #a9bdd5 !important; }
body.campus-workbench.campus-page-vision .upload-zone {
    min-height: 196px;
    color: #49627f !important;
    background: #f7faff !important;
    border: 1px dashed #91b6e5 !important;
    border-radius: 7px !important;
}
body.campus-workbench.campus-page-vision .mode-switch .mode-btn {
    min-height: 34px;
    color: #49627f !important;
    background: #f7faff !important;
    border: 1px solid #cbd8e8 !important;
    border-radius: 6px !important;
}
body.campus-workbench.campus-page-vision .mode-switch .mode-btn.active {
    color: #ffffff !important;
    background: #246fd1 !important;
    border-color: #246fd1 !important;
}
body.campus-workbench.campus-page-vision .realtime-card,
body.campus-workbench.campus-page-vision .gauge-card,
body.campus-workbench.campus-page-vision .student-card {
    color: #172033 !important;
    background: #f7faff !important;
    border-color: #d3deec !important;
    box-shadow: none !important;
}
body.campus-workbench.campus-page-classroom .class-selector {
    color: #243d5f !important;
    background-color: #f7faff !important;
    border-color: #b9cbe1 !important;
}
body.campus-workbench.campus-page-classroom .stat-card .stat-value { color: #1d4f91 !important; }
body.campus-workbench.campus-page-classroom .stat-card .stat-label,
body.campus-workbench.campus-page-classroom .panel-title { color: #5b6f88 !important; }
body.campus-workbench.campus-page-classroom .chart-container {
    min-height: 258px;
    background: #f7faff !important;
    border: 1px solid #e0e8f2;
    border-radius: 6px;
}
body.campus-workbench.campus-page-report > .header > div:first-child { display: none !important; }
body.campus-workbench.campus-page-report .report-query label { color: #49627f !important; }
body.campus-workbench.campus-page-report .report-query input {
    color: #172033 !important;
    background: #f7faff !important;
    border-color: #b9cbe1 !important;
}
body.campus-workbench.campus-page-report .report-query input::placeholder { color: #7a8da4 !important; }
body.campus-workbench.campus-page-report .report-scope-note { color: #657991 !important; }
body.campus-workbench.campus-page-report .report-card .value { color: #1d4f91 !important; }
body.campus-workbench.campus-page-report .chart-container {
    background: #f7faff !important;
    border: 1px solid #e0e8f2;
    border-radius: 6px;
}
body.campus-workbench.campus-page-report .suggestion-box {
    color: #425b78 !important;
    background: #f7faff !important;
    border-color: #d4e1ee !important;
}
body.campus-workbench.campus-page-report .suggestion-box p { color: #425b78 !important; }

/* Dashboard uses the same light work surface as the other operational pages.
   Chart canvases stay dark for data contrast, while all surrounding copy
   remains dark enough to read on white panels. */
body.campus-workbench.campus-page-dashboard {
    color: #172033 !important;
    background: #edf2f8 !important;
}
body.campus-workbench.campus-page-dashboard > .dashboard-header {
    color: #172033 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #d9e2ee !important;
}
body.campus-workbench.campus-page-dashboard > .dashboard-header h1 { color: #1c3557 !important; }
body.campus-workbench.campus-page-dashboard > .dashboard-header .time,
body.campus-workbench.campus-page-dashboard > .dashboard-header .data-source-meta,
body.campus-workbench.campus-page-dashboard > .dashboard-header .nav-back { color: #61738b !important; }
body.campus-workbench.campus-page-dashboard .dashboard-body {
    color: #172033 !important;
    background: #edf2f8 !important;
}
body.campus-workbench.campus-page-dashboard .card-panel {
    color: #172033 !important;
    background: #ffffff !important;
    border: 1px solid #d7e1ed !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 16px rgba(31,45,73,.055) !important;
}
body.campus-workbench.campus-page-dashboard .card-panel .card-title,
body.campus-workbench.campus-page-dashboard .card-title,
body.campus-workbench.campus-page-dashboard #fusionStatus { color: #29496f !important; }
body.campus-workbench.campus-page-dashboard .card-panel .card-unit,
body.campus-workbench.campus-page-dashboard .ai-report,
body.campus-workbench.campus-page-dashboard .alert-item,
body.campus-workbench.campus-page-dashboard .alert-item span,
body.campus-workbench.campus-page-dashboard #alertList > div,
body.campus-workbench.campus-page-dashboard #fusionPanel > div { color: #5b6f88 !important; }
body.campus-workbench.campus-page-dashboard .chart-container {
    background: #ffffff !important;
    border: 1px solid #e0e8f2 !important;
    border-radius: 6px !important;
}
body.campus-workbench.campus-page-dashboard .card-panel .btn,
body.campus-workbench.campus-page-dashboard .card-panel button { box-shadow: none !important; }

/* The fusion result is explanatory copy, not a chart. Keep it on the same
   light surface as the rest of the dashboard so every state is readable. */
body.campus-workbench.campus-page-dashboard #fusionPanel {
    min-height: 220px;
    padding: 12px !important;
    color: #425b78 !important;
    background: #f7faff !important;
    border: 1px solid #d9e5f1 !important;
    border-radius: 6px !important;
}
body.campus-workbench.campus-page-dashboard #fusionPanel > div,
body.campus-workbench.campus-page-dashboard #fusionPanel > div[style*="padding:12px"] {
    color: #425b78 !important;
    background: #ffffff !important;
    border: 1px solid #d9e5f1 !important;
    border-radius: 6px !important;
}
body.campus-workbench.campus-page-dashboard .fusion-summary-head strong,
body.campus-workbench.campus-page-dashboard .fusion-score-line span,
body.campus-workbench.campus-page-dashboard .fusion-summary-meta,
body.campus-workbench.campus-page-dashboard .fusion-summary-risk,
body.campus-workbench.campus-page-dashboard .fusion-details,
body.campus-workbench.campus-page-dashboard .fusion-details summary {
    color: #425b78 !important;
}
body.campus-workbench.campus-page-dashboard .fusion-score-line b { color: #1d4f91 !important; }
body.campus-workbench.campus-page-dashboard .fusion-score-label {
    color: #a85f12 !important;
    background: #fff4df !important;
    border-color: #f1d49d !important;
}

/* Do not leave one dark card inside an otherwise light operational page. */
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(3) > div:nth-child(3) .card-panel {
    color: #172033 !important;
    background: #f7fbff !important;
    border-color: #cbdbea !important;
    border-top-color: #183f6c !important;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(3) > div:nth-child(3) .card-title,
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(3) > div:nth-child(3) #fusionStatus {
    color: #29496f !important;
}

/* Layout consolidation pass. Preserve the established blue/navy palette and
   existing component structure; only reduce avoidable empty space. */
body.campus-workbench.campus-page-dashboard .dashboard-body {
    padding-bottom: 24px !important;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row {
    --bs-gutter-y: 12px;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(2) .card-panel {
    min-height: 0;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(3) .card-panel {
    min-height: 258px;
}
body.campus-workbench.campus-page-dashboard .dashboard-body > .row:nth-child(3) .card-title {
    margin-bottom: 8px;
}
body.campus-workbench.campus-page-dashboard .chart-container {
    height: 244px !important;
    min-height: 244px !important;
}
body.campus-workbench.campus-page-dashboard #alertList,
body.campus-workbench.campus-page-dashboard .ai-report,
body.campus-workbench.campus-page-dashboard #fusionPanel {
    min-height: 184px;
}
body.campus-workbench.campus-page-dashboard #fusionPanel {
    max-height: 218px !important;
}

/* 接入状态以“配置与可用性清单”为主，不以任一服务作视觉主角。 */
body.campus-workbench.campus-page-integrations .wrap {
    padding-top: 16px !important;
    padding-bottom: 24px !important;
}
body.campus-workbench.campus-page-integrations .status-overview {
    margin-bottom: 12px;
    min-height: 84px;
    padding: 14px 16px;
    gap: 18px;
}
body.campus-workbench.campus-page-integrations .services-heading {
    margin-bottom: 8px;
}
body.campus-workbench.campus-page-integrations .grid {
    gap: 10px;
}
body.campus-workbench.campus-page-integrations .grid .cardx,
body.campus-workbench.campus-page-integrations .grid .cardx.integration-sf-fastgpt,
body.campus-workbench.campus-page-integrations .grid .cardx.integration-deepseek-report {
    min-height: 166px;
    padding: 15px 16px !important;
    color: #172033 !important;
    background: #f7fbff !important;
    border-color: #cbdbea !important;
    border-left-width: 4px !important;
    box-shadow: 0 5px 14px rgba(33, 73, 116, .05) !important;
}
body.campus-workbench.campus-page-integrations .grid .cardx.integration-status-running,
body.campus-workbench.campus-page-integrations .grid .cardx.integration-status-verified { border-left-color: #23a67a !important; }
body.campus-workbench.campus-page-integrations .grid .cardx.integration-status-checking,
body.campus-workbench.campus-page-integrations .grid .cardx.integration-status-blocked { border-left-color: #e6943b !important; }
body.campus-workbench.campus-page-integrations .grid .cardx.integration-status-pending { border-left-color: #8294ab !important; }
body.campus-workbench.campus-page-integrations .grid .cardx.integration-status-error { border-left-color: #df5b69 !important; }
body.campus-workbench.campus-page-integrations .grid .cardx.integration-sf-fastgpt .name,
body.campus-workbench.campus-page-integrations .grid .cardx.integration-sf-fastgpt .service-kind,
body.campus-workbench.campus-page-integrations .grid .cardx.integration-sf-fastgpt .note {
    color: inherit !important;
}
body.campus-workbench.campus-page-integrations .grid .cardx .service-kind { margin-bottom: 4px; }
body.campus-workbench.campus-page-integrations .grid .cardx .note {
    margin-top: 9px;
    line-height: 1.58;
}
body.campus-workbench.campus-page-integrations .grid .cardx .card-actions {
    padding-top: 10px;
}
body.campus-workbench.campus-page-integrations .lower-grid {
    gap: 10px;
    margin-top: 10px;
}
body.campus-workbench.campus-page-integrations .panel {
    min-height: 126px;
    padding: 14px 16px;
}
body.campus-workbench.campus-page-integrations .panel-heading { margin-bottom: 9px; }
body.campus-workbench.campus-page-integrations .runtime { gap: 8px; }
body.campus-workbench.campus-page-integrations .metric { padding: 9px 11px; }
@media (max-width: 760px) {
    body.campus-workbench.campus-page-vision > .content,
    body.campus-workbench.campus-page-classroom > .content,
    body.campus-workbench.campus-page-report > .content { padding: 14px 12px 24px !important; }
}
