/* -------------------------------------------------------------------------- */
/*  Apple macOS / iOS Design System & HIG UI Tokens                           */
/* -------------------------------------------------------------------------- */
:root {
    --font-primary: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    
    /* Apple Core Colors */
    --apple-bg: #f5f5f7;
    --apple-card: #ffffff;
    --apple-blue: #007aff;
    --apple-blue-hover: #0062cc;
    --apple-blue-light: #e5f1ff;
    --apple-green: #34c759;
    --apple-green-light: #eafda6;
    --apple-amber: #ff9500;
    --apple-red: #ff3b30;
    --apple-red-light: #ffe5e5;

    /* Apple Neutral Palette */
    --apple-text-title: #1c1c1e;
    --apple-text-body: #3a3a3c;
    --apple-text-muted: #8e8e93;
    --apple-border: rgba(0, 0, 0, 0.06);
    --apple-border-strong: #d1d1d6;
    --apple-track: #e9e9eb;

    /* Apple Shadows & Glassmorphism */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.08);
    --shadow-button: 0 4px 14px rgba(0, 122, 255, 0.25);
    
    /* Apple Spherical Radii */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

/* 在线考核试卷 */
.task-submission-modal-card {
    width: min(980px, calc(100vw - 32px));
    max-width: 980px;
}

.assessment-exam-section {
    display: grid;
    gap: 18px;
}

.assessment-exam-section[hidden] { display: none; }

.assessment-exam-header,
.review-exam-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #eff6ff;
}

.assessment-exam-kicker,
.review-exam-header > div > span {
    display: block;
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.assessment-exam-header h3,
.review-exam-header h4 { margin: 0 0 6px; }
.assessment-exam-header p { margin: 0; color: #475569; line-height: 1.65; }

.assessment-exam-timer {
    min-width: 104px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    color: #1d4ed8;
    font: 800 24px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    text-align: center;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .12);
}

.assessment-exam-timer.is-urgent { color: #dc2626; background: #fff1f2; }

.assessment-exam-progress { display: grid; gap: 8px; color: #475569; font-size: 13px; }
.assessment-exam-progress > div { height: 8px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.assessment-exam-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #2563eb; transition: width .2s ease; }
.assessment-exam-time-warning { padding: 11px 14px; border-radius: 12px; background: #fff1f2; color: #b91c1c; font-weight: 700; }

.assessment-exam-question-list { display: grid; gap: 14px; }
.assessment-exam-question {
    padding: 18px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #fff;
}
.assessment-exam-question-heading,
.review-exam-question-title { display: flex; justify-content: space-between; gap: 12px; color: #1e3a8a; }
.assessment-exam-question-heading span,
.review-exam-question-title span { color: #64748b; font-size: 13px; }
.assessment-exam-question > p { margin: 10px 0 14px; color: #1f2937; font-weight: 700; line-height: 1.65; }
.assessment-exam-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.assessment-exam-fields label { display: grid; gap: 6px; color: #475569; font-size: 13px; font-weight: 700; }
.assessment-exam-field-wide { grid-column: 1 / -1; }
.assessment-exam-fields input,
.assessment-exam-fields select,
.assessment-exam-fields textarea { width: 100%; }
.assessment-exam-multi-select { margin: 0; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 12px; }
.assessment-exam-multi-select legend { padding: 0 6px; color: #475569; font-size: 13px; font-weight: 800; }
.assessment-exam-multi-select > div { display: flex; flex-wrap: wrap; gap: 10px; }
.assessment-exam-multi-select label { display: inline-flex; grid-template-columns: auto 1fr; align-items: center; gap: 7px; min-width: 130px; padding: 8px 10px; border-radius: 10px; background: #f8fafc; }
.assessment-exam-multi-select input { width: auto; }

.assessment-template-callout { display: grid; gap: 4px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: #eff6ff; color: #475569; }
.assessment-template-callout strong { color: #1d4ed8; }

.assessment-copy-row > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.assessment-built-in-summary,
.assessment-question-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #f8fbff;
}
.assessment-question-toolbar > div { display: grid; gap: 3px; }
.assessment-question-toolbar small { color: #64748b; }
.assessment-score-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding: 12px 14px; border: 1px solid #dbe3ef; border-radius: 14px; background: #f8fafc; }
.assessment-score-tools label { display: grid; grid-template-columns: minmax(120px, auto) 90px auto; align-items: center; gap: 8px; color: #475569; font-size: 13px; font-weight: 800; }
.assessment-score-tools input { width: 90px; }
.assessment-question-editor-list { display: grid; gap: 14px; margin-top: 14px; }
.assessment-question-editor {
    padding: 16px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.assessment-question-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.assessment-question-editor-heading > div { display: flex; flex-wrap: wrap; gap: 6px; }
.assessment-question-editor-heading .btn-secondary { min-width: 38px; padding: 7px 10px; }
.is-exam-options-muted { opacity: .68; }

.review-exam {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    margin-top: 6px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #f8fbff;
}
.review-exam-meta { display: grid; gap: 5px; color: #475569; font-size: 13px; text-align: right; }
.review-exam-question { padding: 14px; border: 1px solid #dbe3ef; border-radius: 14px; background: #fff; }
.review-exam-prompt { margin: 8px 0 12px; font-weight: 700; line-height: 1.6; }
.review-exam-answers { display: grid; gap: 8px; }
.review-exam-answers > div { padding: 9px 11px; border-radius: 10px; background: #f8fafc; }
.review-exam-answers b { display: block; margin-bottom: 4px; color: #64748b; font-size: 12px; }
.review-exam-answers p { margin: 0; white-space: pre-wrap; line-height: 1.6; }
.review-exam-scoring { display: grid; grid-template-columns: minmax(150px, .35fr) 1fr; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #cbd5e1; }
.review-exam-scoring label { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 13px; font-weight: 700; }
.review-exam-scoring input { min-width: 0; }
.review-exam-scoring input[type="number"] { width: 74px; }
.review-exam-scoring label:last-child input { flex: 1; }
.review-exam-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px; border-radius: 12px; background: #172554; color: #fff; }
.review-exam-summary strong { font-size: 20px; }
.review-exam-summary span { color: #dbeafe; }
.review-exam-summary em { margin-left: auto; padding: 5px 9px; border-radius: 999px; background: #fff; color: #1d4ed8; font-style: normal; font-weight: 800; }

@media (max-width: 720px) {
    .assessment-exam-header,
    .review-exam-header { flex-direction: column; }
    .assessment-exam-fields,
    .review-exam-scoring { grid-template-columns: 1fr; }
    .assessment-copy-row > div { grid-template-columns: 1fr; }
    .assessment-built-in-summary,
    .assessment-question-toolbar,
    .assessment-question-editor-heading { align-items: stretch; flex-direction: column; }
    .assessment-score-tools { align-items: stretch; flex-direction: column; }
    .assessment-score-tools label { grid-template-columns: 1fr 90px auto; }
    .review-exam-meta { text-align: left; }
    .review-exam-scoring label { align-items: flex-start; flex-direction: column; }
}

/* Mentor shared-management access */
.role-mentor .manager-only {
    display: none !important;
}

.role-employee .skill-content-editor-only {
    display: none !important;
}

.role-manager .mentor-outline-banner,
.role-employee .mentor-outline-banner {
    display: none !important;
}

.mentor-management-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 18px 22px;
    border: 1px solid #a7f3d0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    color: #065f46;
}

.mentor-management-banner[hidden] {
    display: none !important;
}

.mentor-management-banner > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mentor-management-banner strong {
    font-size: 16px;
}

.mentor-management-banner span {
    font-size: 13px;
}

.mentor-review-readonly-note,
.mentor-table-readonly,
.action-readonly-note {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.mentor-review-readonly-note {
    border: 1px solid #dbe4ef;
}

.review-attachment-locked {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    background: #f8fafc;
    font-size: 12px;
}

@media (max-width: 720px) {
    .mentor-management-banner {
        align-items: flex-start;
        flex-direction: column;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--apple-bg);
    color: var(--apple-text-body);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------------------- */
/*  Apple Style Login Modal Overlay                                           */
/* -------------------------------------------------------------------------- */
.login-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-modal-overlay.active {
    display: flex;
    animation: appleModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-float);
    padding: 36px;
    border: 1px solid var(--apple-border);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35);
}

.login-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--apple-text-title);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.login-header p {
    font-size: 13px;
    color: var(--apple-text-muted);
}

/* -------------------------------------------------------------------------- */
/*  Apple Dual-Layer Header Bar                                               */
/* -------------------------------------------------------------------------- */
.app-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--apple-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 32px 14px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 18px rgba(0, 122, 255, 0.3);
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--apple-text-title);
    letter-spacing: -0.4px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--apple-text-muted);
    margin-top: 1px;
}

.sync-indicator {
    color: var(--apple-green);
    font-weight: 600;
}

.header-bottom-row {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 4px;
}

.nav-tabs {
    display: flex;
    background: var(--apple-track);
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
    max-width: fit-content;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--apple-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn:hover {
    color: var(--apple-text-title);
}

.tab-btn.active {
    background: #ffffff;
    color: var(--apple-text-title);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* User Auth Badge & Switcher */
.user-auth-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--apple-border);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--apple-text-title);
    box-shadow: var(--shadow-subtle);
}

.role-badge-manager {
    background: #fff3e0;
    color: var(--apple-amber);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.role-badge-employee {
    background: var(--apple-blue-light);
    color: var(--apple-blue);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.btn-logout {
    background: #ffffff;
    border: 1px solid var(--apple-border);
    color: var(--apple-text-muted);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: var(--apple-red-light);
    border-color: rgba(255, 59, 48, 0.2);
    color: var(--apple-red);
}

.user-switch-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--apple-border);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-subtle);
}

.switch-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--apple-text-muted);
}

.employee-select {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--apple-blue);
    outline: none;
    cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/*  Main View Layout & Section Spacing                                        */
/* -------------------------------------------------------------------------- */
.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 32px 64px 32px;
    flex: 1;
    width: 100%;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: appleFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes appleFadeIn {
    from { opacity: 0; transform: scale(0.99) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* -------------------------------------------------------------------------- */
/*  🔥 Apple Health / Fitness 风格连续达标与待处理任务横幅                   */
/* -------------------------------------------------------------------------- */
.streak-pill-badge {
    background: linear-gradient(135deg, #ff9500 0%, #ff3b30 100%);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.achievement-badge-tag {
    background: linear-gradient(135deg, #34c759 0%, #007aff 100%);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.pending-punchin-banner {
    margin-bottom: 24px;
}

.pending-banner-card {
    background: #ffffff;
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.pending-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.pending-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pending-count-badge {
    background: #ff3b30;
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.pending-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.pending-item-card {
    background: #fdf2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* -------------------------------------------------------------------------- */
/*  Apple Dashboard Cards & Metric Cards                                      */
/* -------------------------------------------------------------------------- */
.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--apple-card);
    border: 1px solid var(--apple-border);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-float);
    border-color: rgba(0, 0, 0, 0.1);
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--apple-text-title);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.metric-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--apple-text-muted);
    margin-top: 4px;
}

.dashboard-panel {
    background: var(--apple-card);
    border: 1px solid var(--apple-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--apple-text-title);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

/* -------------------------------------------------------------------------- */
/*  Apple Minimalist Clean Table                                              */
/* -------------------------------------------------------------------------- */
.team-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.team-table th {
    background: rgba(245, 245, 247, 0.6);
    color: var(--apple-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--apple-border-strong);
    white-space: nowrap;
}

.team-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
    white-space: nowrap;
}

.team-table tbody tr {
    transition: background-color 0.15s ease;
}

.team-table tbody tr:hover {
    background-color: rgba(245, 245, 247, 0.8);
}

.table-select-control {
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--apple-text-title);
    background: var(--apple-track);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 180px;
}

.table-select-control:hover {
    background: #e2e2e7;
}

.table-select-control:focus {
    background: #ffffff;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.action-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.employee-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee-cell-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 11px;
    background: #eef2ff;
    font-size: 21px;
}

.employee-cell > span:last-child,
.table-info-stack,
.table-progress-cell {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.employee-cell strong,
.table-info-stack strong {
    color: var(--apple-text-title);
    font-size: 13px;
}

.employee-cell small,
.table-info-stack small,
.table-progress-cell small {
    color: var(--apple-text-muted);
    font-size: 11px;
}

.table-progress-cell {
    min-width: 210px;
}

.table-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.table-progress-top > strong {
    color: var(--apple-blue);
    font-size: 13px;
}

.btn-action-card {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid var(--apple-border-strong);
    background: #ffffff;
    color: var(--apple-text-title);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action-card:hover {
    background: var(--apple-blue-light);
    border-color: var(--apple-blue);
    color: var(--apple-blue);
    transform: scale(1.02);
}

.btn-action-card:active {
    transform: scale(0.97);
}

.btn-action-edit {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-edit:hover {
    background: #e0e7ff;
    border-color: #818cf8;
    transform: scale(1.02);
}

.btn-action-export {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-action-export:hover {
    background: #d1fadf;
    border-color: #47cd89;
    transform: scale(1.02);
}

.btn-action-export:disabled,
.btn-action-export.is-loading {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.btn-action-more {
    height: 34px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--apple-text-muted);
    border: 1px solid var(--apple-border-strong);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-action-more:hover {
    color: var(--apple-text-title);
    background: var(--apple-track);
}

.employee-action-menu {
    position: fixed;
    z-index: 2600;
    width: 236px;
    padding: 8px;
    display: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--apple-border);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(18px);
}

.employee-action-menu.active {
    display: grid;
    gap: 3px;
}

.employee-action-menu button {
    width: 100%;
    padding: 10px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--apple-text-title);
    text-align: left;
    cursor: pointer;
}

.employee-action-menu button:hover {
    background: var(--apple-track);
}

.employee-action-menu button > span:last-child {
    display: grid;
    gap: 2px;
}

.employee-action-menu b {
    font-size: 12px;
}

.employee-action-menu small {
    color: var(--apple-text-muted);
    font-size: 10px;
}

.employee-action-menu button.danger b {
    color: var(--apple-red);
}

.btn-action-pwd {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 149, 0, 0.3);
    background: #fff8ee;
    color: var(--apple-amber);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action-pwd:hover {
    background: #ffeacc;
    border-color: var(--apple-amber);
    transform: scale(1.02);
}

.btn-action-pwd:active {
    transform: scale(0.97);
}

.btn-action-del {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 59, 48, 0.2);
    background: var(--apple-red-light);
    color: var(--apple-red);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action-del:hover {
    background: #ffd1d1;
    border-color: var(--apple-red);
    transform: scale(1.02);
}

.btn-action-del:active {
    transform: scale(0.97);
}

.day-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.status-completed {
    background: #e6f9ed;
    color: #248a3d;
}

.status-today {
    background: var(--apple-blue-light);
    color: var(--apple-blue);
}

.status-delayed {
    background: var(--apple-red-light);
    color: var(--apple-red);
}

.progress-bar-container {
    width: 100%;
    height: 7px;
    background: var(--apple-track);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 6px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007aff 0%, #5856d6 100%);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.progress-bar-fill.warning {
    background: linear-gradient(90deg, #ff3b30 0%, #ff9500 100%);
}

.heatmap-panel-heading {
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.heatmap-filter-sync {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--apple-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.heatmap-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.heatmap-month-tabs {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(112px, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: var(--apple-track);
}

.heatmap-month-tabs button {
    display: grid;
    gap: 1px;
    min-height: 40px;
    padding: 6px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--apple-text-muted);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.heatmap-month-tabs button small {
    font-size: 10px;
    font-weight: 600;
}

.heatmap-month-tabs button.active {
    background: #fff;
    color: var(--apple-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.heatmap-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.heatmap-filters select {
    min-height: 40px;
    max-width: 170px;
    padding: 7px 30px 7px 10px;
    border: 1px solid var(--apple-border);
    border-radius: 10px;
    background: #fff;
    color: var(--apple-text-title);
    font-size: 12px;
}

.heatmap-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 13px 0 10px;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.heatmap-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--apple-text-muted);
    font-size: 10px;
    font-weight: 650;
}

.heatmap-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.heatmap-legend .legend-approved { background: #34c759; }
.heatmap-legend .legend-pending { background: #ffcc00; }
.heatmap-legend .legend-rejected { background: #ff3b30; }
.heatmap-legend .legend-overdue { background: #ff9500; }
.heatmap-legend .legend-available { background: #bfdbfe; }
.heatmap-legend .legend-future { background: #e5e7eb; }
.heatmap-legend .legend-today {
    border: 2px solid var(--apple-blue);
    background: #fff;
}

.heatmap-legend .heatmap-period-hint {
    padding-left: 10px;
    border-left: 1px solid var(--apple-border);
    color: var(--apple-text-title);
}

.heatmap-result-summary {
    color: var(--apple-text-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.matrix-grid-container {
    margin-top: 4px;
}

.heatmap-scroll-area {
    max-height: min(62vh, 680px);
    overflow: auto;
    border: 1px solid var(--apple-border);
    border-radius: 14px;
    background: #fff;
}

.heatmap-matrix-header,
.heatmap-matrix-row {
    display: grid;
    grid-template-columns: 220px minmax(900px, 1fr);
    min-width: 1120px;
}

.heatmap-matrix-header {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--apple-border-strong);
    background: #f8fafc;
}

.heatmap-matrix-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.heatmap-matrix-row:last-child {
    border-bottom: 0;
}

.heatmap-person-heading,
.heatmap-person-cell {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 220px;
    border: 0;
    border-right: 1px solid var(--apple-border);
    background: #fff;
}

.heatmap-person-heading {
    z-index: 7;
    padding: 12px 14px;
    background: #f8fafc;
    color: var(--apple-text-muted);
    font-size: 11px;
    font-weight: 750;
}

.heatmap-person-cell {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.heatmap-person-cell:hover {
    background: #f8fafc;
}

.heatmap-person-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--apple-blue-light);
    font-size: 18px;
}

.heatmap-person-main {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.heatmap-person-main strong,
.heatmap-person-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.heatmap-person-main strong {
    color: var(--apple-text-title);
    font-size: 12px;
}

.heatmap-person-main small {
    color: var(--apple-text-muted);
    font-size: 10px;
}

.heatmap-risk-label {
    padding: 3px 6px;
    border-radius: 999px;
    background: #e8f7ee;
    color: #16803c;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.heatmap-risk-label.status-delayed {
    background: #fff7e5;
    color: #a65f00;
}

.heatmap-risk-label.status-severe {
    background: #fff0ef;
    color: var(--apple-red);
}

.heatmap-risk-label.status-pending {
    background: #fffbe6;
    color: #8a6a00;
}

.heatmap-day-headings,
.heatmap-cells {
    display: grid;
    grid-template-columns: repeat(var(--heatmap-day-count, 30), minmax(28px, 1fr));
    min-width: max(900px, calc(var(--heatmap-day-count, 30) * 31px));
    gap: 3px;
    padding: 7px 8px;
}

.heatmap-day-headings {
    align-items: center;
}

.heatmap-day-headings span {
    color: var(--apple-text-muted);
    font-size: 9px;
    font-weight: 750;
    text-align: center;
}

.heatmap-cells {
    align-items: center;
}

.heatmap-day-cell {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 38px;
    gap: 2px;
    padding: 2px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #f8fafc;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.heatmap-day-cell:hover,
.heatmap-day-cell:focus-visible {
    z-index: 2;
    outline: 0;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
}

.heatmap-day-cell.is-current-day {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.18);
}

.heatmap-day-cell.is-assessment {
    border-color: #a78bfa;
    background: #f5f3ff;
}

.heatmap-half {
    display: block;
    flex: 1 1 0;
    min-height: 2px;
    border-radius: 3px;
}

.heatmap-half.status-approved { background: #34c759; }
.heatmap-half.status-pending { background: #ffcc00; }
.heatmap-half.status-rejected { background: #ff3b30; }
.heatmap-half.status-overdue { background: #ff9500; }
.heatmap-half.status-future { background: #e5e7eb; }
.heatmap-half.status-available { background: #bfdbfe; }

.heatmap-mobile-view {
    display: none;
}

.employee-header-card {
    background: var(--apple-card);
    border: 1px solid var(--apple-border);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.emp-profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.emp-avatar {
    width: 72px;
    height: 72px;
    background: var(--apple-blue-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border: 1px solid rgba(0, 122, 255, 0.15);
}

.emp-details h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--apple-text-title);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.emp-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--apple-blue);
    background: var(--apple-blue-light);
    padding: 3px 12px;
    border-radius: var(--radius-full);
}

.emp-meta {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--apple-text-muted);
    flex-wrap: wrap;
}

.emp-stats-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--apple-text-title);
    letter-spacing: -0.4px;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--apple-text-muted);
    margin-top: 2px;
}

.month-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.month-tabs {
    display: flex;
    background: var(--apple-track);
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
}

.month-tab {
    background: transparent;
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--apple-text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.month-tab:hover {
    color: var(--apple-text-title);
}

.month-tab.active {
    background: #ffffff;
    color: var(--apple-text-title);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.jump-today-btn {
    background: #ffffff;
    border: 1px solid var(--apple-border-strong);
    color: var(--apple-blue);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: var(--shadow-subtle);
}

.jump-today-btn:hover {
    background: var(--apple-blue-light);
    border-color: var(--apple-blue);
}

.calendar-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 20px;
}

.calendar-day-card {
    background: #ffffff;
    border: 1px solid var(--apple-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 155px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: var(--shadow-subtle);
}

.calendar-day-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(0, 0, 0, 0.12);
}

.calendar-day-card.completed {
    background: linear-gradient(180deg, #ffffff 0%, #f2fbf5 100%);
    border-color: #c6f6d5;
}

.calendar-day-card.is-today {
    border: 2px solid var(--apple-blue);
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15), var(--shadow-card);
}

.cal-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cal-day-num {
    font-size: 16px;
    font-weight: 800;
    color: var(--apple-text-title);
    background: var(--apple-track);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: -0.3px;
}

.is-today .cal-day-num {
    background: var(--apple-blue);
    color: white;
}

.green-checkmark-badge {
    width: 32px;
    height: 32px;
    background: var(--apple-green);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.35);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cal-topic-preview {
    font-size: 13px;
    font-weight: 700;
    color: var(--apple-text-title);
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.cal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 11px;
    color: var(--apple-text-muted);
}

.click-hint {
    color: var(--apple-blue);
    font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/*  Apple Modals System & Dual-Card Layout                                    */
/* -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
    animation: appleModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#taskSubmissionModal {
    z-index: 1200;
}

#reviewDecisionModal,
#editEmployeeModal {
    z-index: 1250;
}

#dingtalkCleanupModal {
    z-index: 1300;
}

#customOptionModal,
#deleteOptionModal {
    z-index: 1400;
}

@keyframes appleModalPop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-float);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--apple-border);
}

.modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(245, 245, 247, 0.8);
}

.dingtalk-logo-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--apple-text-title);
    letter-spacing: -0.3px;
}

.modal-close-btn {
    background: var(--apple-track);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    font-size: 18px;
    color: var(--apple-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #d1d1d6;
    color: var(--apple-text-title);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-periods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 14px;
}

.day-detail-card {
    max-width: 960px;
}

.day-learning-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.day-learning-summary-copy {
    min-width: 0;
}

.day-learning-summary-copy strong {
    display: block;
    color: var(--apple-text-title);
    font-size: 15px;
}

.day-learning-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin-top: 3px;
    color: var(--apple-text-muted);
    font-size: 12px;
}

.day-learning-meta span + span::before {
    content: "·";
    margin-right: 14px;
    color: #cbd5e1;
}

.day-review-progress {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.day-review-progress.in-progress {
    color: #344054;
    background: #eef2f6;
}

.day-review-progress.pending {
    color: #9a6700;
    background: #fff7d6;
}

.day-review-progress.completed {
    color: #067647;
    background: #ecfdf3;
}

@media (max-width: 768px) {
    .modal-periods-grid {
        grid-template-columns: 1fr;
    }

    .day-learning-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .day-learning-meta {
        display: grid;
        gap: 2px;
    }

    .day-learning-meta span + span::before {
        content: none;
    }
}

.task-card {
    background: #ffffff;
    border: 1px solid var(--apple-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 250px;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
    border-color: rgba(0, 0, 0, 0.1);
}

.task-card.completed {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.period-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--apple-text-title);
}

.task-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.task-card-detail-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 28px;
    padding: 3px 8px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fff;
    color: #475467;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.task-card-detail-button:hover {
    border-color: #b8c7d9;
    background: #f8fafc;
    color: var(--apple-blue);
}

.task-card-detail-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.task-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--apple-text-title);
    margin-bottom: 9px;
    letter-spacing: -0.3px;
    line-height: 1.35;
}

.type-badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.type-video { background: var(--apple-blue-light); color: var(--apple-blue); }
.type-document { background: #fff8ee; color: var(--apple-amber); }
.type-text { background: #f3e8ff; color: #9333ea; }

.task-desc {
    font-size: 13px;
    color: var(--apple-text-body);
    margin-bottom: 14px;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.task-trainer {
    margin-bottom: 9px;
    color: #475467;
    font-size: 12px;
    font-weight: 650;
}

.task-actions {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 8px;
    margin-top: auto;
}

.task-actions .btn-secondary,
.task-actions .btn-punchin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 9px 11px;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

.task-actions .link-action-btn {
    text-decoration: none;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--apple-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 11px 16px;
    background: #f2f2f7;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--apple-text-title);
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    background: #ffffff;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.btn-punchin {
    padding: 12px 20px;
    background: var(--apple-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-button);
    transition: all 0.2s ease;
}

.btn-punchin:hover {
    background: var(--apple-blue-hover);
    transform: translateY(-1px);
}

.btn-punchin:active {
    transform: scale(0.98);
}

.btn-punchin.done {
    background: var(--apple-green);
    box-shadow: 0 4px 14px rgba(52, 199, 89, 0.3);
}

.btn-secondary {
    padding: 11px 20px;
    background: #ffffff;
    border: 1px solid var(--apple-border-strong);
    color: var(--apple-text-title);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--apple-track);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.toast-container {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: appleToastUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s;
}

@keyframes appleToastUp {
    from { transform: translateY(24px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
/* v2：审核闭环与管理工具 */
.manager-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.review-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
}

.review-toolbar .manager-tools {
    width: 100%;
}

.review-toolbar .manager-search:not(.review-filter) {
    flex: 1 1 360px;
}

.manager-search {
    min-width: 240px;
    padding: 9px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    color: var(--apple-text-title);
    font: inherit;
}

.report-download {
    text-decoration: none;
    white-space: nowrap;
}

.review-list {
    display: grid;
    gap: 10px;
}

.review-item {
    display: grid;
    grid-template-columns: minmax(210px, 0.7fr) minmax(420px, 2fr);
    align-items: stretch;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.review-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.review-main span,
.review-main small {
    color: var(--apple-text-muted);
}

.review-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    grid-column: 2;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.review-empty {
    padding: 24px;
    text-align: center;
    color: var(--apple-text-muted);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.workflow-badge {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}

.workflow-badge.pending {
    color: #9a6700;
    background: #fff7d6;
}

.workflow-badge.rejected {
    color: #b42318;
    background: #fee4e2;
}

.workflow-badge.locked {
    color: #475467;
    background: #f2f4f7;
    border: 1px solid #d0d5dd;
}

.submission-task-summary {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.submission-task-summary span,
.submission-task-summary small,
.field-hint {
    color: var(--apple-text-muted);
    font-size: 12px;
}

.submission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.submission-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: sticky;
    bottom: -28px;
    z-index: 5;
    margin: 18px -28px -28px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--apple-border);
    backdrop-filter: blur(14px);
}

.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--apple-text-title);
    font: inherit;
    resize: vertical;
}

.task-card.locked {
    opacity: .7;
    background: #f8fafc;
    border-style: dashed;
}

.btn-punchin:disabled,
.btn-secondary:disabled,
.link-action-btn.disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

.calendar-day-card.locked {
    background: #f8fafc;
    border-style: dashed;
}

.calendar-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.calendar-status.locked { color: #667085; background: #f2f4f7; }
.calendar-status.pending { color: #9a6700; background: #fff7d6; }
.calendar-status.warning { color: #b54708; background: #fffaeb; }
.calendar-status.today { color: #4338ca; background: #eef2ff; }
.calendar-status.overdue { color: #b42318; background: #fef3f2; }

.progress-alert.warning {
    border-left: 4px solid #f59e0b;
}

.progress-alert.severe {
    border-left: 4px solid #ef4444;
    background: #fff7f7;
}

.pending-item-card small {
    display: block;
    margin-top: 4px;
    color: var(--apple-text-muted);
    font-size: 11px;
}

.review-filter {
    min-width: 112px;
}

.review-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.review-heading > div {
    display: grid;
    gap: 3px;
}

.review-task-id {
    font-size: 11px;
}

.review-task-title {
    margin: 0;
    color: var(--apple-text-title);
    font-size: 16px;
    line-height: 1.45;
}

.workflow-state {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.workflow-state.pending { color: #9a6700; background: #fff7d6; }
.workflow-state.approved { color: #067647; background: #ecfdf3; }
.workflow-state.rejected { color: #b42318; background: #fef3f2; }
.workflow-state.partially_mastered {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.review-status-partially_mastered {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 48%);
}

.review-partial-button,
.review-partial-submit {
    color: #92400e !important;
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
}

.review-partial-button:hover,
.review-partial-submit:hover {
    background: #fde68a !important;
}

.review-partial-history {
    border-color: #fcd34d !important;
    background: #fffbeb !important;
}

.review-partial-history small {
    display: block;
    margin-top: 6px;
    color: #92400e;
}

.workflow-history {
    margin-top: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.workflow-history > summary {
    padding: 11px 14px;
    color: #344054;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.workflow-history-list {
    display: grid;
    gap: 10px;
    max-height: 360px;
    padding: 12px;
    overflow-y: auto;
}

.workflow-history-event {
    display: grid;
    gap: 5px;
    padding: 11px 12px;
    border-left: 3px solid #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
}

.workflow-history-event.submission {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.workflow-history-event.review {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.workflow-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.workflow-history-heading span {
    padding: 2px 7px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 11px;
    font-weight: 800;
}

.workflow-history-event small {
    color: #667085;
    font-size: 11px;
}

.workflow-history-event p {
    margin: 0;
    color: #475467;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.workflow-badge.partial {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.task-card.partial {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 44%);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.12);
}

.day-review-progress.reinforcement,
.calendar-status.reinforcement,
.day-status-pill.status-reinforcement {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.calendar-day-card.reinforcement {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 58%);
}

.progress-alert.reinforcement {
    border-color: #fcd34d;
    background: #fffbeb;
}

.pending-item-card.reinforcement-item {
    border-color: #fcd34d;
    background: #fffdf5;
}

.reinforcement-stat .stat-number {
    color: #b45309;
}

.heatmap-half.status-partial {
    background: #f59e0b;
}

.heatmap-risk-label.status-reinforcement,
.heatmap-mobile-counts .status-partial,
.heatmap-mobile-issues .status-partial {
    color: #92400e;
    background: #fef3c7;
}

@media (max-width: 760px) {
    .assessment-alert-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .assessment-alert-actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .assessment-alert-actions button {
        flex: 1;
    }

    .assessment-modal-status {
        align-items: stretch;
        flex-direction: column;
    }

    .stage-editor-grid {
        grid-template-columns: 1fr;
    }

    .stage-editor-wide {
        grid-column: auto;
    }

    .stage-editor-heading,
    .stage-task-list-heading,
    .stage-task-editor-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .stage-task-editor-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-end;
    }

    .stage-task-list-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .stage-task-collapse-toggle {
        width: 100%;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .stage-task-completion {
        display: none;
    }

    .review-actions {
        flex-wrap: wrap;
    }

    .review-actions > button {
        flex: 1 1 130px;
    }
}

/* 导师账号与权限分层 */
.role-badge-mentor {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.mentor-scope-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 18px 22px;
    border: 1px solid #a7f3d0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 70%);
}

.mentor-scope-banner > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mentor-scope-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #d1fae5;
    font-size: 22px;
}

.mentor-scope-banner strong {
    display: block;
    color: var(--apple-text-title);
    font-size: 17px;
}

.mentor-scope-banner p {
    margin: 4px 0 0;
    color: var(--apple-text-muted);
    font-size: 13px;
}

.mentor-learner-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #a7f3d0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 72%);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.06);
}

.mentor-learner-toolbar[hidden] {
    display: none;
}

.mentor-learner-copy {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.mentor-learner-copy strong {
    display: block;
    color: var(--apple-text-title);
    font-size: 15px;
}

.mentor-learner-copy p {
    margin: 4px 0 0;
    color: var(--apple-text-muted);
    font-size: 12.5px;
}

.mentor-learner-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    background: #d1fae5;
    font-size: 21px;
}

.mentor-learner-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.mentor-learner-selector select,
.mentor-learner-search {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--apple-text-title);
    background: #ffffff;
    font: inherit;
    font-size: 13px;
}

.mentor-learner-selector select {
    min-width: 230px;
}

.mentor-learner-search {
    width: 170px;
}

.mentor-readonly-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 4px 9px;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.mentor-learning-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px;
}

.mentor-learning-empty > span {
    font-size: 30px;
}

.mentor-learning-empty strong {
    display: block;
    color: var(--apple-text-title);
}

.mentor-learning-empty p {
    margin: 5px 0 0;
    color: var(--apple-text-muted);
    font-size: 13px;
}

.mentor-metric .metric-icon {
    color: #047857;
    background: #d1fae5;
}

.mentor-account-summary {
    color: var(--apple-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.mentor-account-list {
    display: grid;
    gap: 12px;
}

.mentor-unassigned-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 14px;
    padding: 13px 16px;
    border: 1px solid #f3d28a;
    border-radius: 12px;
    background: #fff9e8;
    color: #8a5700;
}

.mentor-unassigned-notice span {
    min-width: 0;
    color: var(--apple-text-title);
    overflow-wrap: anywhere;
}

.mentor-unassigned-notice small {
    grid-column: 1 / -1;
    color: #9a6a13;
}

.mentor-account-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fff;
}

.mentor-account-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: #ecfdf5;
    font-size: 23px;
}

.mentor-account-main {
    min-width: 0;
}

.mentor-account-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mentor-account-main > span,
.mentor-account-main > small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--apple-text-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mentor-account-count {
    min-width: 74px;
    text-align: center;
}

.mentor-account-count b,
.mentor-account-count span {
    display: block;
}

.mentor-account-count b {
    color: #047857;
    font-size: 22px;
}

.mentor-account-count span {
    color: var(--apple-text-muted);
    font-size: 11px;
}

.mentor-account-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.mentor-account-actions .btn-secondary {
    padding: 7px 11px;
    font-size: 12px;
}

.mentor-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 110px;
    color: var(--apple-text-muted);
    text-align: left;
}

.mentor-empty > span {
    font-size: 30px;
}

.mentor-empty strong,
.mentor-empty small {
    display: block;
}

.mentor-empty small {
    margin-top: 4px;
}

.mentor-account-modal-card {
    width: min(780px, calc(100vw - 30px));
}

.mentor-account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mentor-assignment-section {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.mentor-assignment-heading strong,
.mentor-assignment-heading small {
    display: block;
}

.mentor-assignment-heading small {
    margin-top: 4px;
    color: var(--apple-text-muted);
}

.mentor-employee-assignment-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 310px;
    margin-top: 12px;
    overflow-y: auto;
}

.mentor-employee-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
}

.mentor-employee-option:has(input:checked) {
    border-color: #34d399;
    background: #ecfdf5;
}

.mentor-employee-option input {
    width: 17px;
    height: 17px;
    accent-color: #059669;
}

.mentor-employee-option strong,
.mentor-employee-option small {
    display: block;
}

.mentor-employee-option small {
    margin-top: 3px;
    color: var(--apple-text-muted);
}

@media (max-width: 820px) {
    .mentor-account-card {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .mentor-account-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 620px) {
    .mentor-scope-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .mentor-learner-toolbar,
    .mentor-learner-selector {
        align-items: stretch;
        flex-direction: column;
    }

    .mentor-learner-selector,
    .mentor-learner-selector select,
    .mentor-learner-search {
        width: 100%;
    }

    .mentor-account-form-grid,
    .mentor-employee-assignment-list {
        grid-template-columns: 1fr;
    }

    .mentor-account-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .mentor-account-count {
        grid-column: 1 / -1;
        display: flex;
        align-items: baseline;
        gap: 7px;
        text-align: left;
    }

    .mentor-account-actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .mentor-account-actions button {
        flex: 1 1 120px;
    }
}

/* -------------------------------------------------------------------------- */
/* 5.10 管理员历史培训补录                                                    */
/* -------------------------------------------------------------------------- */
#historicalCatchupModal {
    z-index: 1350;
}

.catchup-modal-card {
    max-width: 920px;
}

.catchup-modal-body {
    display: grid;
    gap: 18px;
}

.catchup-employee-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #f8fafc;
}

.catchup-employee-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #eaf2ff;
    font-size: 22px;
}

.catchup-employee-summary strong,
.catchup-employee-summary p {
    display: block;
    margin: 0;
}

.catchup-employee-summary strong {
    color: var(--apple-text-title);
    font-size: 16px;
}

.catchup-employee-summary p {
    margin-top: 3px;
    color: var(--apple-text-muted);
    font-size: 12px;
}

.catchup-current-day {
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: #eaf2ff;
    color: #175cd3;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.catchup-safety-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    border: 1px solid #b8ead5;
    border-radius: 13px;
    background: #f1fbf7;
}

.catchup-safety-note > span {
    font-size: 20px;
}

.catchup-safety-note strong,
.catchup-safety-note p {
    display: block;
    margin: 0;
}

.catchup-safety-note strong {
    color: #087d56;
    font-size: 13px;
}

.catchup-safety-note p {
    margin-top: 3px;
    color: #3f6257;
    font-size: 12px;
    line-height: 1.55;
}

.catchup-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    border: 0;
}

.catchup-mode-switch legend {
    grid-column: 1 / -1;
    margin-bottom: 1px;
    color: var(--apple-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.catchup-mode-switch label,
.catchup-confirm-options label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.catchup-mode-switch label:has(input:checked) {
    border-color: #84adff;
    background: #f3f7ff;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08);
}

.catchup-mode-switch input,
.catchup-confirm-options input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--apple-blue);
    flex: 0 0 auto;
}

.catchup-mode-switch span,
.catchup-confirm-options span {
    display: grid;
    gap: 3px;
}

.catchup-mode-switch b,
.catchup-confirm-options b {
    color: var(--apple-text-title);
    font-size: 13px;
}

.catchup-mode-switch small,
.catchup-confirm-options small {
    color: var(--apple-text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.catchup-target-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.catchup-target-grid .form-group {
    margin: 0;
}

.catchup-preview-button {
    min-height: 42px;
    margin-bottom: 18px;
    white-space: nowrap;
}

.catchup-preview {
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #fff;
}

.catchup-preview-placeholder,
.catchup-preview-error {
    padding: 28px 18px;
    color: var(--apple-text-muted);
    text-align: center;
}

.catchup-preview-placeholder.is-loading::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 2px solid #bfd4f7;
    border-top-color: var(--apple-blue);
    border-radius: 50%;
    vertical-align: -2px;
    animation: catchupSpin .75s linear infinite;
}

@keyframes catchupSpin {
    to { transform: rotate(360deg); }
}

.catchup-preview-error {
    color: #b42318;
    background: #fff5f4;
}

.catchup-preview-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #dbe4ee;
}

.catchup-preview-summary > div {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    background: #f8fafc;
}

.catchup-preview-summary.has-items > div:first-child {
    background: #ecfdf3;
}

.catchup-preview-summary span {
    color: var(--apple-text-muted);
    font-size: 11px;
}

.catchup-preview-summary strong {
    color: var(--apple-text-title);
    font-size: 20px;
}

.catchup-preview-summary.has-items > div:first-child strong {
    color: #087d56;
}

.catchup-preview-summary > p {
    grid-column: 1 / -1;
    margin: 0;
    padding: 8px 15px;
    background: #fff;
    color: var(--apple-text-muted);
    font-size: 11px;
}

.catchup-stage-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px 14px 4px;
}

.catchup-stage-chips > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #eef5ff;
    color: #344054;
    font-size: 11px;
}

.catchup-stage-chips b {
    color: #175cd3;
}

.catchup-stage-chips small {
    color: var(--apple-text-muted);
}

.catchup-item-details {
    margin: 10px 14px 14px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
}

.catchup-item-details + .catchup-item-details {
    margin-top: -5px;
}

.catchup-item-details summary {
    padding: 10px 12px;
    color: var(--apple-text-title);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.catchup-item-details.skipped summary {
    color: #7a5a08;
    background: #fffcf0;
}

.catchup-item-details ul {
    max-height: 220px;
    overflow: auto;
    margin: 0;
    padding: 0 30px 12px;
    color: #475467;
    font-size: 12px;
    line-height: 1.6;
}

.catchup-empty-small {
    padding: 13px;
    color: var(--apple-text-muted);
    font-size: 12px;
    text-align: center;
}

.catchup-reason-field {
    margin: 0;
}

.catchup-confirm-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.catchup-confirm-options .catchup-final-confirm {
    border-color: #f5cf76;
    background: #fffcf0;
}

.catchup-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 8px;
}

.catchup-section-heading > div {
    display: grid;
    gap: 2px;
}

.catchup-section-heading strong {
    color: var(--apple-text-title);
    font-size: 14px;
}

.catchup-section-heading small {
    color: var(--apple-text-muted);
    font-size: 11px;
}

.catchup-recent-list {
    display: grid;
    gap: 8px;
}

.catchup-batch-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 11px 12px;
    border: 1px solid #e4e7ec;
    border-radius: 11px;
    background: #fff;
}

.catchup-batch-card > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 3px 8px;
    min-width: 0;
}

.catchup-batch-card strong {
    color: var(--apple-text-title);
    font-size: 12px;
}

.catchup-batch-card small,
.catchup-batch-card p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--apple-text-muted);
    font-size: 11px;
}

.catchup-batch-status {
    padding: 3px 7px;
    border-radius: var(--radius-full);
    background: #eafaf3;
    color: #087d56;
    font-size: 10px;
    font-weight: 800;
}

.catchup-batch-card.status-rolled_back .catchup-batch-status {
    background: #f2f4f7;
    color: #667085;
}

.catchup-rollback-block {
    color: #b42318 !important;
}

.catchup-rollback-button,
.catchup-batch-locked {
    flex: 0 0 auto;
    white-space: nowrap;
}

.catchup-batch-locked {
    color: #98a2b3;
    font-size: 11px;
}

.catchup-actions {
    z-index: 7;
}

.day-learning-summary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.day-catchup-button {
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.workflow-badge.catchup,
.day-review-progress.catchup,
.calendar-status.catchup,
.workflow-state.catchup {
    color: #0f766e;
    background: #e6fffb;
    border-color: #99f6e4;
}

.heatmap-legend .legend-catchup,
.heatmap-half.status-catchup {
    background: #14b8a6;
}

.heatmap-mobile-counts .status-catchup {
    color: #0f766e;
    background: #e6fffb;
}

.review-status-admin-catchup {
    border-color: #99f6e4;
    background: linear-gradient(90deg, #f0fdfa 0, #fff 18%);
}

.review-catchup-banner {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    margin: 10px 0 12px;
    border: 1px solid #99f6e4;
    border-radius: 10px;
    background: #f0fdfa;
}

.review-catchup-banner > div {
    display: grid;
    gap: 2px;
}

.review-catchup-banner b {
    color: #0f766e;
    font-size: 12px;
}

.review-catchup-banner small {
    color: #3f625f;
    font-size: 11px;
}

@media (max-width: 720px) {
    .catchup-modal-body {
        gap: 14px;
    }

    .catchup-employee-summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .catchup-current-day {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .catchup-mode-switch,
    .catchup-confirm-options,
    .catchup-target-grid {
        grid-template-columns: 1fr;
    }

    .catchup-preview-button {
        width: 100%;
        margin-bottom: 0;
    }

    .catchup-preview-summary {
        grid-template-columns: 1fr;
    }

    .catchup-preview-summary > p {
        grid-column: auto;
    }

    .catchup-batch-card {
        align-items: stretch;
        flex-direction: column;
    }

    .catchup-rollback-button {
        width: 100%;
    }

    .day-learning-summary-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .day-review-progress,
    .day-catchup-button {
        text-align: center;
    }
}

.review-evidence {
    margin-top: 8px;
    padding: 12px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.review-field {
    padding: 10px 12px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
}

.review-field-full {
    grid-column: 1 / -1;
}

.review-field b {
    display: block;
    margin-bottom: 4px;
    color: var(--apple-text-muted);
    font-size: 11px;
}

.review-field p {
    margin: 0;
    color: var(--apple-text-title);
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.review-note-field {
    background: #fff9e8;
    border-color: #fde68a;
}

.review-person {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dbe3ef;
}

.review-person > div:first-of-type + div {
    display: grid;
    gap: 2px;
}

.review-person > div span {
    color: var(--apple-text-muted);
    font-size: 12px;
}

.review-person-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef2ff;
    font-size: 24px;
}

.review-person-meta {
    display: grid;
    gap: 7px;
    margin: 2px 0 0;
}

.review-person-meta div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 6px;
}

.review-person-meta dt,
.review-person-meta dd {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
}

.review-person-meta dt {
    color: var(--apple-text-muted);
}

.review-person-meta dd {
    color: var(--apple-text-title);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.review-audit-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--apple-text-muted);
    font-size: 11px;
}

.review-incomplete-warning {
    padding: 9px 12px;
    border-radius: 9px;
    background: #fff4ed;
    color: #b54708;
    border: 1px solid #fed7aa;
    font-size: 12px;
    font-weight: 700;
}

.review-reject-button,
.review-reject-submit {
    color: #b42318 !important;
    border-color: #fda29b !important;
    background: #fff !important;
}

.review-confirm-context {
    display: grid;
    gap: 5px;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
}

.review-confirm-context span {
    color: var(--apple-text-muted);
    font-size: 12px;
}

.notification-panel {
    border-color: rgba(22, 119, 255, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.notification-overall-status,
.notification-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--apple-text-muted);
    font-size: 11px;
    font-weight: 800;
}

.notification-overall-status.is-active,
.notification-status.is-ready {
    background: #e8f7ee;
    color: #16803c;
}

.notification-overall-status.is-error {
    background: #fff0ef;
    color: var(--apple-red);
}

.notification-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.notification-panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.notification-toggle-btn {
    min-width: 148px;
}

.notification-details.is-collapsed {
    display: none;
}

.notification-summary-grid > div {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--apple-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.notification-summary-grid b {
    font-size: 13px;
    color: var(--apple-text-title);
}

.notification-summary-grid span {
    color: var(--apple-text-muted);
    font-size: 12px;
}

.notification-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--apple-border);
    color: var(--apple-text-title);
    font-size: 13px;
}

.notification-log-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-link {
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: var(--apple-blue);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-link.is-danger {
    color: var(--apple-red);
}

.notification-cleanup-summary {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 122, 255, 0.18);
    border-radius: 12px;
    background: var(--apple-blue-light);
}

.notification-cleanup-summary b {
    color: var(--apple-text-title);
    font-size: 14px;
}

.notification-cleanup-summary span {
    color: var(--apple-text-muted);
    font-size: 12px;
}

.notification-cleanup-options {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--apple-border);
    border-radius: 12px;
    background: rgba(245, 245, 247, 0.65);
}

.notification-cleanup-options[hidden],
.notification-cleanup-confirm[hidden] {
    display: none;
}

.notification-cleanup-attention {
    padding: 0 2px 2px;
}

.notification-cleanup-confirm {
    margin-top: 14px;
}

.notification-cleanup-warning {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.6;
}

.notification-cleanup-warning.is-safe {
    border: 1px solid rgba(22, 128, 60, 0.16);
    background: #eefaf2;
    color: #166534;
}

.notification-cleanup-warning.is-danger {
    border: 1px solid rgba(255, 59, 48, 0.2);
    background: var(--apple-red-light);
    color: #b42318;
}

.btn-danger-action {
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--apple-red);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.btn-danger-action:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.notification-log-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.notification-log-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 11px;
    background: #fff;
}

.notification-log-state {
    padding: 4px 8px;
    border-radius: 8px;
    background: #eef2f7;
    color: var(--apple-text-muted);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.notification-log-state.status-sent {
    background: #e8f7ee;
    color: #16803c;
}

.notification-log-state.status-failed {
    background: #fff0ef;
    color: var(--apple-red);
}

.notification-log-state.status-retrying {
    background: #fff7e5;
    color: #a65f00;
}

.notification-log-main {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.notification-log-main b,
.notification-log-main span,
.notification-log-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-log-main b {
    color: var(--apple-text-title);
    font-size: 12px;
}

.notification-log-main span,
.notification-log-main small {
    color: var(--apple-text-muted);
    font-size: 11px;
}

.notification-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--apple-border);
    color: var(--apple-text-muted);
    font-size: 12px;
}

.notification-pagination-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.notification-pagination select {
    min-height: 34px;
    padding: 5px 30px 5px 10px;
    border: 1px solid var(--apple-border);
    border-radius: 9px;
    background: #fff;
    color: var(--apple-text-title);
}

.notification-pagination .btn-secondary {
    min-height: 34px;
    padding: 6px 12px;
}

.notification-pagination .btn-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.notification-master-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 122, 255, 0.18);
    border-radius: 12px;
    background: var(--apple-blue-light);
    cursor: pointer;
}

.notification-master-switch input {
    width: 18px;
    height: 18px;
}

.notification-master-switch span {
    display: grid;
    gap: 2px;
}

.notification-master-switch b {
    color: var(--apple-text-title);
    font-size: 14px;
}

.notification-master-switch small {
    color: var(--apple-text-muted);
    font-size: 11px;
}

.notification-config-section {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--apple-border);
    border-radius: 14px;
    background: #fff;
}

.notification-config-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-config-heading > div {
    display: grid;
    gap: 3px;
}

.notification-config-heading b {
    color: var(--apple-text-title);
    font-size: 14px;
}

.notification-config-heading small,
.notification-clear-option {
    color: var(--apple-text-muted);
    font-size: 11px;
}

.notification-clear-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.notification-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.notification-event-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #f8fafc;
    color: var(--apple-text-title);
    font-size: 12px;
    font-weight: 600;
}

.notification-test-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.notification-test-row select {
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid var(--apple-border);
    border-radius: 10px;
    background: #fff;
    color: var(--apple-text-title);
}

.profile-option-field {
    display: grid;
    gap: 8px;
}

.profile-option-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-option-actions button {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 8px;
    background: var(--apple-blue-light);
    color: var(--apple-blue);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.profile-option-actions button:hover {
    border-color: rgba(0, 122, 255, 0.38);
    background: #e4f1ff;
}

.profile-option-actions button:last-child {
    border-color: var(--apple-border);
    background: #fff;
    color: var(--apple-text-muted);
}

.syllabus-editor-heading {
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.syllabus-heading-actions,
.syllabus-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.syllabus-heading-actions .syllabus-heading-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 150px;
    height: 44px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
    transition: border-color 0.18s ease, background 0.18s ease,
        color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.syllabus-heading-button-icon {
    display: inline-grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    place-items: center;
    font-size: 17px;
    line-height: 1;
}

.syllabus-heading-actions .syllabus-heading-button.is-training {
    border-color: var(--apple-blue);
    background: var(--apple-blue);
    color: #fff;
}

.syllabus-heading-actions .syllabus-heading-button.is-training:hover {
    border-color: var(--apple-blue-hover);
    background: var(--apple-blue-hover);
    box-shadow: 0 7px 18px rgba(0, 122, 255, 0.24);
}

.syllabus-heading-actions .syllabus-heading-button.is-assessment {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
}

.syllabus-heading-actions .syllabus-heading-button.is-assessment:hover {
    border-color: #a78bfa;
    background: #ede9fe;
    box-shadow: 0 7px 18px rgba(109, 40, 217, 0.14);
}

.syllabus-heading-actions .syllabus-heading-button.is-archive {
    border-color: var(--apple-border-strong);
    background: #fff;
    color: var(--apple-text-title);
    box-shadow: none;
}

.syllabus-heading-actions .syllabus-heading-button.is-archive:hover {
    border-color: #b6bcc6;
    background: var(--apple-track);
}

.syllabus-heading-actions .syllabus-heading-button:hover {
    transform: translateY(-1px);
}

.syllabus-heading-actions .syllabus-heading-button:active {
    transform: scale(0.98);
}

.syllabus-help-toggle {
    min-width: 76px;
    min-height: 44px;
    padding: 0 4px;
    white-space: nowrap;
}

.syllabus-help {
    margin-bottom: 16px;
    padding: 11px 14px;
    border: 1px solid rgba(0, 122, 255, 0.16);
    border-radius: 11px;
    background: var(--apple-blue-light);
    color: var(--apple-text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.syllabus-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.syllabus-batch-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 9px 12px;
    border: 1px solid var(--apple-border);
    border-radius: 12px;
    background: #f8fafc;
}

.syllabus-select-all,
.syllabus-row-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--apple-text-title);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.syllabus-select-all input,
.syllabus-row-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--apple-blue);
    cursor: pointer;
}

#syllabusSelectedSummary {
    color: var(--apple-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.syllabus-batch-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.syllabus-batch-actions .is-danger {
    border-color: rgba(255, 59, 48, 0.28);
    color: var(--apple-red);
    background: #fff;
}

.syllabus-row-check {
    justify-content: center;
    width: 100%;
}

.syllabus-month-tabs {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: var(--apple-track);
}

.syllabus-month-tabs button {
    display: grid;
    gap: 1px;
    min-height: 42px;
    padding: 7px 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--apple-text-muted);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.syllabus-month-tabs button small {
    font-size: 10px;
    font-weight: 600;
}

.syllabus-month-tabs button.active {
    background: #fff;
    color: var(--apple-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.syllabus-search {
    display: flex;
    align-items: center;
    width: min(340px, 100%);
    min-height: 44px;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--apple-border);
    border-radius: 12px;
    background: #fff;
}

.syllabus-search:focus-within {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.syllabus-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--apple-text-title);
    font-size: 13px;
}

.syllabus-result-summary {
    margin-bottom: 10px;
    color: var(--apple-text-muted);
    font-size: 12px;
}

.syllabus-table-wrap {
    max-height: min(64vh, 720px);
    overflow: auto;
    border: 1px solid var(--apple-border);
    border-radius: 14px;
}

.syllabus-editor-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f5f5f7;
}

.syllabus-editor-table td {
    white-space: normal;
}

.syllabus-day-cell,
.syllabus-course-cell {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.syllabus-day-cell strong {
    color: var(--apple-text-title);
    font-size: 14px;
}

.syllabus-day-cell span {
    width: max-content;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--apple-text-muted);
    font-size: 10px;
    font-weight: 750;
}

.syllabus-day-cell span.is-customized {
    background: var(--apple-blue-light);
    color: var(--apple-blue);
}

.syllabus-course-cell {
    max-width: 460px;
}

.syllabus-course-cell strong,
.syllabus-course-cell small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.syllabus-course-cell strong {
    color: var(--apple-text-title);
    font-size: 13px;
}

.syllabus-course-cell small {
    color: var(--apple-text-muted);
    font-size: 11px;
}

.syllabus-edit-button {
    min-width: 72px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 750;
}

.syllabus-row-actions .btn-secondary,
.syllabus-row-actions .btn-link {
    min-width: 34px;
    min-height: 32px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 750;
}

.syllabus-row-actions .is-danger {
    border-color: rgba(255, 59, 48, 0.25);
    color: var(--apple-red);
}

.syllabus-edit-grid,
.syllabus-inline-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.syllabus-inline-fields {
    gap: 10px;
}

.syllabus-edit-navigation,
.syllabus-edit-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.syllabus-edit-navigation {
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--apple-border);
    border-radius: 12px;
    background: #f8fafc;
}

.syllabus-edit-navigation span {
    color: var(--apple-text-muted);
    font-size: 12px;
    font-weight: 750;
}

.day-copy-editor {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 159, 10, 0.32);
    border-radius: 14px;
    background: #fff9e8;
}

.day-copy-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.day-copy-editor-grid .form-group:last-child {
    grid-column: 1 / -1;
}

.stage-basic-editor,
.stage-task-editor {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--apple-border);
    border-radius: 16px;
    background: #fff;
}

.stage-basic-editor {
    margin-bottom: 18px;
    background: #f8fafc;
}

.stage-editor-heading,
.stage-task-list-heading,
.stage-task-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.stage-editor-heading h3 {
    margin: 3px 0 0;
    color: var(--apple-text-title);
}

.stage-editor-heading small,
.stage-task-list-heading small {
    display: block;
    margin-top: 3px;
    color: var(--apple-text-muted);
}

.stage-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stage-editor-wide {
    grid-column: 1 / -1;
}

.stage-day-range-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.stage-day-range-inputs span {
    color: var(--apple-text-muted);
    font-weight: 700;
}

.stage-task-list-heading {
    margin: 10px 0 12px;
}

.stage-task-list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.stage-task-editor-list {
    display: grid;
    gap: 14px;
}

.stage-task-editor-header {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--apple-border);
}

.stage-task-editor.is-collapsed {
    gap: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    background: #fbfcfe;
}

.stage-task-editor.is-collapsed .stage-task-editor-header {
    padding-bottom: 0;
    border-bottom-color: transparent;
}

.stage-task-editor-body {
    display: grid;
    gap: 16px;
}

.stage-task-editor-body[hidden] {
    display: none;
}

.stage-task-collapse-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--apple-text-title);
    text-align: left;
    cursor: pointer;
}

.stage-task-collapse-toggle:focus-visible {
    outline: 3px solid rgba(10, 132, 255, 0.22);
    outline-offset: 5px;
    border-radius: 10px;
}

.stage-task-header-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.stage-task-header-copy > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stage-task-header-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}

.stage-task-header-meta > span {
    padding: 2px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--apple-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.stage-task-header-meta > .is-exam {
    background: #ede9fe;
    color: #6d28d9;
}

.stage-task-completion {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.stage-task-completion.is-complete {
    background: #e9f9ef;
    color: #15803d;
}

.stage-task-completion.is-incomplete {
    background: #fff4df;
    color: #b45309;
}

.stage-task-editor-header > div,
.stage-task-editor-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stage-task-number {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: #eaf3ff;
    color: var(--apple-blue);
    font-weight: 800;
}

.stage-task-editor-actions .btn-secondary {
    min-width: 38px;
    padding: 7px 10px;
}

.stage-task-collapse-button {
    display: inline-grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin-left: 4px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    background: linear-gradient(145deg, #c8f3ff 0%, #79c8ff 42%, #4f8ff5 100%);
    color: #fff;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -4px 8px rgba(37, 99, 235, 0.18),
        0 5px 14px rgba(59, 130, 246, 0.24);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.stage-task-collapse-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px rgba(30, 64, 175, 0.22));
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-task-collapse-button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.stage-task-collapse-button:hover {
    filter: saturate(1.08) brightness(1.03);
    transform: translateY(-1px) scale(1.04);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.95),
        inset 0 -4px 8px rgba(37, 99, 235, 0.2),
        0 7px 18px rgba(59, 130, 246, 0.32);
}

.stage-task-collapse-button:active {
    transform: scale(0.96);
}

.stage-task-collapse-button:focus-visible {
    outline: 3px solid rgba(10, 132, 255, 0.24);
    outline-offset: 3px;
}

.stage-required-check {
    display: flex;
    align-items: center;
    gap: 9px;
    align-self: end;
    min-height: 42px;
    color: var(--apple-text-title);
    font-size: 13px;
    font-weight: 700;
}

.stage-required-check input {
    width: 17px;
    height: 17px;
}

.assessment-alert-banner {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.assessment-alert-banner:empty {
    display: none;
}

.assessment-alert-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid #c4b5fd;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.09);
}

.assessment-alert-card.warning {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
}

.assessment-alert-card.urgent {
    border-color: #fb7185;
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
    box-shadow: 0 10px 28px rgba(225, 29, 72, 0.13);
}

.assessment-alert-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: rgba(109, 40, 217, 0.1);
    font-size: 22px;
}

.assessment-alert-copy > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.assessment-alert-copy > div span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(109, 40, 217, 0.1);
    color: #6d28d9;
    font-size: 11px;
    font-weight: 800;
}

.assessment-alert-copy h3 {
    margin: 4px 0 2px;
    color: var(--apple-text-title);
    font-size: 16px;
}

.assessment-alert-copy p {
    margin: 0;
    color: var(--apple-text-muted);
    font-size: 12px;
}

.assessment-alert-actions {
    display: flex;
    gap: 8px;
}

.assessment-start-button {
    background: #7c3aed;
}

.assessment-stage-card {
    border-color: #c4b5fd;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 72%);
}

.assessment-stage-card .cal-day-num,
.syllabus-day-cell .is-assessment {
    color: #6d28d9;
}

.syllabus-day-cell .is-assessment {
    background: #ede9fe;
}

.assessment-modal-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0;
    padding: 14px 16px;
    border: 1px solid #c4b5fd;
    border-radius: 14px;
    background: #faf5ff;
}

.assessment-modal-status > div {
    display: grid;
    gap: 4px;
}

.assessment-modal-status span {
    color: var(--apple-text-muted);
    font-size: 12px;
}

.assessment-modal-status.started {
    border-color: #86efac;
    background: #f0fdf4;
}

.assessment-add-button {
    border-color: #c4b5fd;
    color: #6d28d9;
}

.syllabus-day-modal-card {
    width: min(1040px, calc(100vw - 40px));
    max-height: min(90vh, 900px);
    overflow-y: auto;
}

.syllabus-new-day-grid,
.syllabus-new-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.syllabus-new-day-grid {
    margin-bottom: 18px;
}

.syllabus-new-day-grid .form-group:last-child {
    grid-column: 1 / -1;
}

.syllabus-new-course-grid {
    align-items: start;
}

.syllabus-new-course-grid fieldset {
    display: grid;
    min-width: 0;
    gap: 12px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--apple-border);
    border-radius: 14px;
    background: #fafbfc;
}

.syllabus-new-course-grid legend {
    padding: 0 6px;
    color: var(--apple-text-title);
    font-size: 14px;
    font-weight: 800;
}

.archived-syllabus-modal-card {
    width: min(780px, calc(100vw - 40px));
    max-height: min(82vh, 760px);
    overflow-y: auto;
}

.archived-syllabus-list {
    display: grid;
    gap: 10px;
}

.archived-syllabus-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid var(--apple-border);
    border-radius: 13px;
    background: #fafbfc;
}

.archived-syllabus-item strong,
.archived-syllabus-item small {
    display: block;
}

.archived-syllabus-item small {
    margin-top: 4px;
    color: var(--apple-text-muted);
}

#syllabusDayModal,
#archivedSyllabusModal {
    z-index: 1300;
}

.btn-punchin:disabled,
.btn-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

@media (max-width: 960px) {
    .header-container {
        padding: 14px 20px 12px;
    }

    .header-top-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .user-auth-bar {
        min-width: 0;
        margin-left: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .user-switch-bar {
        min-width: 0;
        max-width: 100%;
    }

    .employee-select {
        min-width: 0;
        max-width: 220px;
    }

    .header-bottom-row {
        min-width: 0;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .header-bottom-row::-webkit-scrollbar {
        display: none;
    }

    .nav-tabs {
        width: max-content;
        max-width: none;
        margin: 0 auto;
    }

    .main-content {
        padding: 24px 20px 52px;
    }

    .dashboard-panel {
        padding: 22px;
    }

    .dashboard-panel > .panel-header {
        gap: 14px;
        flex-wrap: wrap;
    }

    .heatmap-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .heatmap-month-tabs {
        align-self: flex-start;
    }

    .heatmap-filters {
        justify-content: flex-start;
    }

    .people-table-wrap {
        overflow: visible;
    }

    .people-table,
    .people-table tbody {
        display: block;
    }

    .people-table thead {
        display: none;
    }

    .people-table tbody {
        display: grid;
        gap: 14px;
    }

    .people-table tbody tr {
        display: grid;
        padding: 8px 16px;
        border: 1px solid var(--apple-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow-card);
    }

    .people-table td {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        white-space: normal;
    }

    .people-table td:last-child {
        border-bottom: 0;
    }

    .people-table td::before {
        content: attr(data-label);
        color: var(--apple-text-muted);
        font-size: 11px;
        font-weight: 700;
    }

    .people-table .action-btn-group {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .people-table .table-progress-cell {
        min-width: 0;
    }

    .notification-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .header-container {
        padding: 12px 14px 10px;
        gap: 10px;
    }

    .header-top-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .brand-logo {
        min-width: 0;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        font-size: 20px;
    }

    .brand-title {
        overflow: hidden;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-subtitle {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-auth-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
        margin-left: 0;
        gap: 8px;
    }

    .current-user-info {
        min-width: 0;
        padding: 6px 10px;
        overflow: hidden;
    }

    .current-user-info > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-switch-bar {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        padding: 6px 10px;
        border-radius: 12px;
    }

    .employee-select {
        width: 100%;
        max-width: none;
    }

    .btn-logout {
        grid-column: 2;
        grid-row: 1;
        padding: 6px 12px;
    }

    .header-bottom-row {
        width: 100%;
    }

    .nav-tabs {
        margin: 0;
    }

    .tab-btn {
        padding: 9px 14px;
        font-size: 12.5px;
    }

    .review-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .review-item {
        grid-template-columns: 1fr;
    }

    .review-actions {
        grid-column: 1;
    }

    .manager-tools,
    .manager-search {
        width: 100%;
    }

    .manager-tools .report-download {
        width: 100%;
    }

    .review-actions button {
        flex: 1;
    }

    .submission-grid {
        grid-template-columns: 1fr;
    }

    .review-evidence {
        grid-template-columns: 1fr;
    }

    .review-field-full {
        grid-column: auto;
    }

    .submission-actions {
        gap: 8px;
    }

    .submission-actions button {
        flex: 1;
    }

    .people-table td {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .notification-event-grid,
    .notification-test-row {
        grid-template-columns: 1fr;
    }

    .notification-test-row .btn-secondary,
    .notification-test-row select {
        width: 100%;
    }

    .notification-log-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .notification-log-item > .btn-link {
        grid-column: 2;
        justify-self: start;
    }

    .notification-panel .panel-header,
    .notification-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-panel-actions,
    .notification-pagination-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .notification-toggle-btn {
        min-width: 0;
    }

    .notification-pagination-actions label,
    .notification-pagination-actions select {
        grid-column: span 1;
    }

    .notification-summary-grid {
        grid-template-columns: 1fr;
    }

    .syllabus-editor-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .syllabus-batch-bar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .syllabus-batch-actions {
        width: 100%;
        margin-left: 0;
    }

    .syllabus-batch-actions button {
        flex: 1;
    }

    .syllabus-editor-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .syllabus-heading-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .syllabus-heading-actions .syllabus-heading-button {
        flex: 1 1 150px;
    }

    .syllabus-help-toggle {
        flex: 1 1 100%;
        text-align: left;
    }

    .syllabus-month-tabs,
    .syllabus-search {
        width: 100%;
    }

    .syllabus-month-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .syllabus-month-tabs button {
        min-width: 0;
        padding-inline: 6px;
    }

    .syllabus-table-wrap {
        max-height: none;
        overflow: visible;
        border: 0;
    }

    .syllabus-editor-table,
    .syllabus-editor-table tbody {
        display: block;
    }

    .syllabus-editor-table thead {
        display: none;
    }

    .syllabus-editor-table tbody {
        display: grid;
        gap: 12px;
    }

    .syllabus-editor-table tbody tr {
        display: grid;
        padding: 8px 14px;
        border: 1px solid var(--apple-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow-card);
    }

    .syllabus-editor-table td {
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .syllabus-editor-table td::before {
        content: attr(data-label);
        color: var(--apple-text-muted);
        font-size: 11px;
        font-weight: 700;
    }

    .syllabus-editor-table td:last-child {
        border-bottom: 0;
    }

    .syllabus-course-cell {
        max-width: none;
    }

    .syllabus-edit-button {
        width: 100%;
    }

    .syllabus-row-actions {
        justify-content: stretch;
    }

    .syllabus-row-actions .btn-secondary,
    .syllabus-row-actions .btn-link {
        flex: 1;
    }

    .day-copy-editor-grid,
    .syllabus-new-day-grid,
    .syllabus-new-course-grid {
        grid-template-columns: 1fr;
    }

    .day-copy-editor-grid .form-group:last-child,
    .syllabus-new-day-grid .form-group:last-child {
        grid-column: auto;
    }

    .archived-syllabus-item {
        grid-template-columns: 1fr;
    }

    .syllabus-edit-grid,
    .syllabus-inline-fields {
        grid-template-columns: 1fr;
    }

    .syllabus-edit-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .syllabus-edit-actions button {
        width: 100%;
    }

    .heatmap-month-tabs {
        align-self: stretch;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .heatmap-month-tabs button {
        min-width: 0;
        padding-inline: 6px;
    }

    .heatmap-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .heatmap-filters select {
        width: 100%;
        max-width: none;
    }

    .heatmap-filters select:last-child {
        grid-column: 1 / -1;
    }

    .heatmap-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .heatmap-result-summary {
        white-space: normal;
    }

    .heatmap-desktop-view {
        display: none;
    }

    .heatmap-mobile-view {
        display: grid;
        gap: 12px;
    }

    .heatmap-mobile-card {
        display: grid;
        gap: 12px;
        padding: 14px;
        border: 1px solid var(--apple-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow-subtle);
    }

    .heatmap-mobile-person {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .heatmap-mobile-person > span:nth-child(2) {
        display: grid;
        min-width: 0;
        gap: 2px;
    }

    .heatmap-mobile-person strong,
    .heatmap-mobile-person small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .heatmap-mobile-person strong {
        color: var(--apple-text-title);
        font-size: 13px;
    }

    .heatmap-mobile-person small {
        color: var(--apple-text-muted);
        font-size: 10px;
    }

    .heatmap-mobile-person > b {
        color: var(--apple-blue);
        font-size: 15px;
    }

    .heatmap-mobile-progress {
        height: 7px;
        overflow: hidden;
        border-radius: 999px;
        background: var(--apple-track);
    }

    .heatmap-mobile-progress span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--apple-blue), var(--apple-green));
    }

    .heatmap-mobile-counts {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
        gap: 6px;
    }

    .heatmap-mobile-counts span {
        padding: 6px 4px;
        border-radius: 8px;
        font-size: 9px;
        font-weight: 750;
        text-align: center;
    }

    .heatmap-mobile-counts .status-approved {
        background: #e8f7ee;
        color: #16803c;
    }

    .heatmap-mobile-counts .status-pending {
        background: #fffbe6;
        color: #8a6a00;
    }

    .heatmap-mobile-counts .status-rejected {
        background: #fff0ef;
        color: var(--apple-red);
    }

    .heatmap-mobile-counts .status-overdue {
        background: #fff7e5;
        color: #a65f00;
    }

    .heatmap-mobile-issues {
        display: grid;
        gap: 6px;
    }

    .heatmap-mobile-issues button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 10px;
        border: 1px solid var(--apple-border);
        border-radius: 9px;
        background: #f8fafc;
        color: var(--apple-text-title);
        font-size: 11px;
        cursor: pointer;
    }

    .heatmap-mobile-issues button b {
        font-size: 10px;
    }

    .heatmap-mobile-issues button b.status-pending { color: #8a6a00; }
    .heatmap-mobile-issues button b.status-rejected { color: var(--apple-red); }
    .heatmap-mobile-issues button b.status-overdue { color: #a65f00; }

    .heatmap-mobile-issues > small,
    .heatmap-mobile-clear {
        color: var(--apple-text-muted);
        font-size: 10px;
        text-align: center;
    }

    .heatmap-mobile-open {
        width: 100%;
    }
}

/*
  v2.8 Modern Apple-inspired productivity UI refresh
  已按用户要求整体回退；保留为未启用的历史样式，浏览器不会应用以下规则。
html {
    background: var(--apple-bg);
}

body {
    background:
        radial-gradient(circle at 50% -240px, rgba(0, 113, 227, 0.07), transparent 440px),
        var(--apple-bg);
    font-size: 14px;
}

button,
input,
select,
textarea {
    font-family: var(--font-primary);
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(0, 113, 227, 0.28);
    outline-offset: 2px;
}

.app-header {
    background: rgba(250, 250, 252, 0.82);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
}

.header-container {
    display: grid;
    grid-template-columns: minmax(270px, 1fr) auto minmax(320px, 1fr);
    align-items: center;
    max-width: 1520px;
    min-height: 70px;
    gap: 20px;
    padding: 11px 28px;
}

.header-top-row {
    display: contents;
}

.brand-logo {
    grid-column: 1;
    grid-row: 1;
    gap: 11px;
    min-width: 0;
}

.logo-icon,
.login-logo {
    background: #1d1d1f;
    box-shadow: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    font-size: 21px;
}

.brand-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.35px;
}

.brand-subtitle {
    color: var(--apple-text-muted);
    font-size: 10.5px;
}

.header-bottom-row {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    padding: 0;
}

.nav-tabs {
    gap: 2px;
    padding: 3px;
    border-radius: 11px;
    background: rgba(118, 118, 128, 0.12);
}

.tab-btn {
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 9px;
    color: #636366;
    font-size: 12px;
    font-weight: 600;
}

.tab-btn.active {
    color: var(--apple-text-title);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.user-auth-bar {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 8px;
    min-width: 0;
}

.current-user-info,
.user-switch-bar {
    min-height: 36px;
    padding: 5px 11px;
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.btn-logout {
    min-height: 36px;
    padding: 6px 11px;
    border-radius: 10px;
    background: transparent;
}

.main-content {
    max-width: 1520px;
    padding: 28px 28px 64px;
}

.dashboard-metrics-grid {
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.metric-card {
    gap: 14px;
    min-height: 104px;
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-subtle);
}

.metric-card:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, 0.13);
    box-shadow: var(--shadow-card);
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f2f2f7 !important;
    font-size: 21px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.metric-title {
    font-size: 12px;
}

.dashboard-panel,
.employee-header-card {
    border-color: rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-subtle);
}

.dashboard-panel {
    padding: 24px;
    margin-bottom: 20px;
}

.panel-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.panel-title {
    gap: 8px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.25px;
}

.panel-title > span:first-child {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 9px;
    background: #f2f2f7;
    font-size: 14px;
}

.team-table th {
    padding: 11px 13px;
    border-bottom-color: rgba(0, 0, 0, 0.1);
    background: #f7f7f9;
    color: #6e6e73;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.team-table td {
    padding: 13px;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.team-table tbody tr:hover {
    background: #f7f7f9;
}

.table-responsive {
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
}

.people-table-wrap,
.syllabus-table-wrap {
    border-color: rgba(0, 0, 0, 0.08);
}

.employee-cell-avatar,
.heatmap-person-avatar {
    background: #f2f2f7;
}

.progress-bar-bg,
.heatmap-mobile-progress {
    background: rgba(118, 118, 128, 0.16);
}

.progress-bar-fill {
    background: var(--apple-blue);
}

.btn-punchin,
.btn-secondary,
.btn-login {
    min-height: 40px;
    border-radius: 10px !important;
    font-weight: 600;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.btn-punchin,
.btn-login {
    background: var(--apple-blue);
}

.btn-punchin:hover,
.btn-login:hover {
    background: var(--apple-blue-hover);
    transform: none;
}

.btn-secondary {
    border-color: rgba(0, 0, 0, 0.13);
    background: rgba(255, 255, 255, 0.92);
}

.btn-secondary:hover {
    border-color: rgba(0, 0, 0, 0.18);
    background: #f2f2f7;
}

.btn-action-card,
.btn-action-edit,
.btn-more-actions,
.profile-option-actions button {
    min-height: 34px;
    border-radius: 9px;
    box-shadow: none;
    transform: none;
}

.btn-action-card:hover,
.btn-action-edit:hover {
    transform: none;
}

.review-reject-button {
    border-color: rgba(255, 59, 48, 0.2);
    background: #fff;
    color: var(--apple-red);
}

.form-group {
    margin-bottom: 16px;
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.modal-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.modal-form-actions > :first-child {
    flex: 2;
}

.modal-form-actions > :last-child {
    flex: 1;
}

.form-group label {
    margin-bottom: 7px;
    color: #6e6e73;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.form-group input,
.form-group select,
.form-group textarea,
.manager-search,
.table-select-control,
.heatmap-filters select,
.notification-pagination select {
    min-height: 42px;
    padding: 10px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: rgba(118, 118, 128, 0.1) !important;
    color: var(--apple-text-title);
    font-size: 13px !important;
    font-weight: 500 !important;
    box-shadow: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.manager-search:focus,
.table-select-control:focus,
.heatmap-filters select:focus,
.notification-pagination select:focus {
    border-color: var(--apple-blue) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
    outline: none;
}

.syllabus-search {
    min-height: 42px;
    border-color: transparent;
    background: rgba(118, 118, 128, 0.1);
}

.month-tabs,
.syllabus-month-tabs,
.heatmap-month-tabs {
    background: rgba(118, 118, 128, 0.12);
}

.month-tab,
.syllabus-month-tabs button,
.heatmap-month-tabs button {
    font-weight: 600;
}

.month-tab.active,
.syllabus-month-tabs button.active,
.heatmap-month-tabs button.active {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.calendar-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 14px;
}

.calendar-day-card {
    min-height: 148px;
    padding: 17px;
    border-radius: 16px;
    box-shadow: none;
}

.calendar-day-card:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: var(--shadow-card);
}

.calendar-day-card.completed,
.task-card.completed {
    border-color: rgba(52, 199, 89, 0.3);
    background: #fbfffc;
}

.calendar-day-card.is-today {
    border: 1.5px solid var(--apple-blue);
    background: #f8fbff;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.cal-day-num {
    border-radius: 8px;
    background: #f2f2f7;
}

.streak-pill-badge {
    border: 1px solid rgba(255, 149, 0, 0.18);
    background: #fff5e8;
    color: #9a5700;
    box-shadow: none;
}

.achievement-badge-tag {
    border: 1px solid rgba(0, 113, 227, 0.12);
    background: #f0f7ff;
    color: var(--apple-blue);
    box-shadow: none;
}

.pending-banner-card,
.pending-item-card {
    border-radius: 14px;
    box-shadow: none;
}

.review-item {
    gap: 14px;
    padding: 16px;
    border-color: rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: #fff;
}

.review-evidence,
.review-field {
    border-color: rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    background: #f7f7f9;
}

.review-actions {
    border-top-color: rgba(0, 0, 0, 0.07);
}

.task-card {
    min-height: 250px;
    padding: 18px;
    border-radius: 16px;
    box-shadow: none;
}

.task-card:hover {
    transform: none;
    border-color: rgba(0, 0, 0, 0.13);
    box-shadow: var(--shadow-card);
}

.notification-summary-grid > div,
.notification-log-item,
.heatmap-mobile-card,
.syllabus-help {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

.modal-overlay,
.login-modal-overlay {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: saturate(140%) blur(20px);
    -webkit-backdrop-filter: saturate(140%) blur(20px);
}

.login-card,
.modal-card {
    border-color: rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-float);
}

.login-card {
    max-width: 420px;
    padding: 32px;
}

.modal-header {
    padding: 17px 24px;
    background: rgba(250, 250, 252, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.modal-body {
    padding: 24px;
}

.modal-close-btn {
    width: 30px;
    height: 30px;
    background: rgba(118, 118, 128, 0.12);
}

.submission-actions {
    bottom: -24px;
    margin: 18px -24px -24px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.9);
}

.toast {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(29, 29, 31, 0.92);
    font-size: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.view-section.active {
    animation-duration: 0.22s;
}

@media (max-width: 1180px) {
    .header-container {
        display: flex;
        min-height: 0;
        padding: 12px 20px 10px;
        gap: 10px;
    }

    .header-top-row {
        display: flex;
    }

    .header-bottom-row {
        width: 100%;
        padding: 0;
    }

    .user-auth-bar {
        margin-left: auto;
    }
}

@media (max-width: 960px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .main-content {
        padding: 22px 18px 48px;
    }

    .dashboard-panel {
        padding: 20px;
    }
}

@media (max-width: 720px) {
    body {
        background: var(--apple-bg);
    }

    .header-container {
        padding: 10px 12px 9px;
    }

    .header-top-row {
        display: grid;
    }

    .header-bottom-row {
        margin-inline: -2px;
    }

    .dashboard-metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-bottom: 14px;
    }

    .metric-card {
        min-height: 96px;
        padding: 14px;
    }

    .metric-icon {
        display: none;
    }

    .metric-value {
        font-size: 21px;
    }

    .main-content {
        padding: 14px 10px 40px;
    }

    .dashboard-panel,
    .employee-header-card {
        border-radius: 16px;
    }

    .dashboard-panel {
        padding: 15px;
        margin-bottom: 12px;
    }

    .panel-header {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .panel-title {
        font-size: 15px;
    }

    .calendar-grid-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .calendar-day-card {
        min-height: 132px;
        padding: 15px;
    }

    .people-table tbody tr,
    .syllabus-editor-table tbody tr,
    .heatmap-mobile-card {
        border-radius: 13px;
        box-shadow: none;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-card {
        max-height: 94vh;
        border-radius: 20px 20px 0 0;
        border-bottom: 0;
    }

    .modal-header {
        padding: 15px 16px;
    }

    .modal-body {
        padding: 18px 16px;
    }

    .submission-actions {
        bottom: -18px;
        margin: 16px -16px -18px;
        padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .manager-search {
        min-height: 44px;
    }

    .form-grid-two {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
*/

/* 5.0 管理异常中心、标准化提交与培训分析 */
.action-center-panel {
    border-color: #dbeafe;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.action-center-heading,
.analytics-heading {
    gap: 16px;
}

.action-center-filters,
.analytics-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.action-center-filters select {
    min-height: 40px;
    padding: 7px 34px 7px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--apple-text-title);
    background: #fff;
    font: inherit;
    font-size: 13px;
}

.action-center-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.action-summary-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 13px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.action-summary-item b {
    color: #475569;
    font-size: 22px;
}

.action-summary-item span {
    color: var(--apple-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.action-summary-item.is-urgent {
    border-color: #fecaca;
    background: #fff7f7;
}

.action-summary-item.is-urgent b {
    color: #dc2626;
}

.action-summary-item.is-high {
    border-color: #fed7aa;
    background: #fffaf5;
}

.action-summary-item.is-high b {
    color: #ea580c;
}

.action-summary-item.is-medium {
    border-color: #fde68a;
    background: #fffbeb;
}

.action-summary-item.is-medium b {
    color: #b45309;
}

.action-center-list {
    display: grid;
    gap: 9px;
}

.action-item {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 15px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #94a3b8;
    border-radius: 14px;
    background: #fff;
}

.action-item.severity-urgent {
    border-left-color: #ef4444;
}

.action-item.severity-high {
    border-left-color: #f97316;
}

.action-item.severity-medium {
    border-left-color: #eab308;
}

.action-item-severity {
    display: grid;
    gap: 4px;
}

.action-item-severity span {
    width: fit-content;
    padding: 3px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.severity-urgent .action-item-severity span {
    color: #b91c1c;
    background: #fee2e2;
}

.severity-medium .action-item-severity span {
    color: #92400e;
    background: #fef3c7;
}

.action-item-severity small,
.action-item-copy div {
    color: var(--apple-text-muted);
    font-size: 11.5px;
}

.action-item-copy strong {
    color: var(--apple-text-title);
    font-size: 14px;
}

.action-item-copy p {
    margin: 4px 0 6px;
    color: #475569;
    font-size: 12.5px;
}

.action-item-copy div {
    display: flex;
    gap: 14px;
}

.action-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-link.is-success {
    color: #15803d;
}

.analytics-panel {
    background: linear-gradient(180deg, #fff 0%, #fbfbff 100%);
}

.analytics-generated-at {
    color: var(--apple-text-muted);
    font-size: 11.5px;
    font-weight: 600;
}

.analytics-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.analytics-summary-grid > div {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.analytics-summary-grid b,
.analytics-summary-grid span {
    display: block;
}

.analytics-summary-grid b {
    color: #4f46e5;
    font-size: 22px;
}

.analytics-summary-grid span {
    margin-top: 4px;
    color: var(--apple-text-muted);
    font-size: 11.5px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.analytics-card {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
}

.analytics-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.analytics-card-title strong {
    color: var(--apple-text-title);
    font-size: 13.5px;
}

.analytics-card-title span {
    color: var(--apple-text-muted);
    font-size: 11px;
}

.analytics-trend {
    display: grid;
    grid-template-columns: repeat(30, minmax(5px, 1fr));
    align-items: end;
    height: 155px;
    gap: 3px;
    padding-top: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.analytics-trend-day {
    display: grid;
    grid-template-rows: 125px 18px;
    align-items: end;
    height: 100%;
}

.analytics-trend-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    height: 100%;
    gap: 1px;
}

.analytics-trend-bars i {
    display: block;
    width: 42%;
    min-height: 3px;
    border-radius: 3px 3px 0 0;
}

.analytics-trend-bars .is-submission {
    background: #60a5fa;
}

.analytics-trend-bars .is-review {
    background: #34d399;
}

.analytics-trend-day small {
    color: var(--apple-text-muted);
    font-size: 8px;
    transform: rotate(-35deg);
    transform-origin: center;
    white-space: nowrap;
}

.analytics-list {
    display: grid;
    gap: 7px;
}

.analytics-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid #f1f5f9;
}

.analytics-list-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.analytics-list-row div {
    min-width: 0;
}

.analytics-list-row strong,
.analytics-list-row span {
    display: block;
}

.analytics-list-row strong {
    overflow: hidden;
    color: var(--apple-text-title);
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-list-row span {
    margin-top: 2px;
    color: var(--apple-text-muted);
    font-size: 10.5px;
}

.analytics-list-row b {
    flex: 0 0 auto;
    color: #4f46e5;
    font-size: 12px;
}

.analytics-list-row b.is-risk {
    color: #dc2626;
}

.submission-checklist {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
}

.submission-checklist[hidden] {
    display: none;
}

.submission-section-title {
    margin-bottom: 9px;
    color: var(--apple-text-title);
    font-size: 13px;
    font-weight: 800;
}

#submissionChecklistContainer {
    display: grid;
    gap: 8px;
}

.submission-check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #334155;
    font-size: 13px;
}

.submission-check-item input {
    margin-top: 2px;
}

.submission-existing-attachments,
.review-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.submission-existing-attachments a,
.review-attachments a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 11.5px;
    text-decoration: none;
}

.review-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.review-checklist span {
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 11.5px;
}

.review-checklist .is-complete {
    color: #166534;
    background: #dcfce7;
}

.review-checklist .is-missing {
    color: #b91c1c;
    background: #fee2e2;
}

.review-mentor-confirmation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    color: #92400e;
    background: #fffbeb;
    font-size: 13px;
    font-weight: 700;
}

.review-mentor-confirmation[hidden] {
    display: none;
}

.task-submission-template {
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
}

.task-submission-template summary {
    cursor: pointer;
    color: #1e40af;
    font-size: 13px;
    font-weight: 800;
}

.task-submission-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
    margin: 14px 0;
}

.task-submission-template-grid label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #334155;
    font-size: 12px;
}

.task-submission-template-grid .template-min-summary {
    justify-content: space-between;
}

.task-submission-template-grid .template-min-summary input {
    width: 88px;
    min-height: 34px;
}

@media (max-width: 900px) {
    .action-item {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .action-item-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .analytics-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .action-center-heading,
    .analytics-heading,
    .action-center-filters,
    .analytics-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .action-center-summary,
    .analytics-summary-grid,
    .analytics-grid,
    .task-submission-template-grid {
        grid-template-columns: 1fr;
    }

    .action-item {
        grid-template-columns: 1fr;
    }

    .action-item-actions {
        grid-column: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .analytics-trend {
        overflow-x: auto;
        grid-template-columns: repeat(30, 12px);
    }
}

/* 5.2 人员管理工作区：信息优先级、折叠与排序 */
#managerView.active {
    display: flex;
    flex-direction: column;
}

#managerView > #mentorReadOnlyManagerBanner { order: 0; }
#managerView > #managerMetricsGrid { order: 10; }
#managerView > .manager-layout-toolbar { order: 20; }
#managerView > [data-manager-section="actions"] { order: 30; }
#managerView > [data-manager-section="people"] { order: 40; }
#managerView > [data-manager-section="reviews"] { order: 50; }
#managerView > [data-manager-section="heatmap"] { order: 60; }
#managerView > [data-manager-section="analytics"] { order: 70; }
#managerView > [data-manager-section="mentors"] { order: 80; }
#managerView > [data-manager-section="dingtalk"] { order: 90; }

.manager-layout-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -8px 0 20px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 113, 227, 0.13);
    border-radius: 14px;
    background: #f7faff;
}

.manager-layout-toolbar > div:first-child {
    display: grid;
    gap: 3px;
}

.manager-layout-toolbar strong {
    color: var(--apple-text-title);
    font-size: 13px;
}

.manager-layout-toolbar span {
    color: var(--apple-text-muted);
    font-size: 11.5px;
}

.manager-layout-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.manager-layout-actions .btn-secondary {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
}

.manager-section {
    position: relative;
}

.manager-section > .panel-header {
    padding-right: 42px;
}

.manager-section-toggle {
    position: absolute;
    z-index: 2;
    top: 19px;
    right: 19px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.11);
    border-radius: 9px;
    background: #fff;
    color: #6e6e73;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.manager-section-toggle:hover {
    border-color: rgba(0, 113, 227, 0.35);
    background: #f2f7ff;
    color: var(--apple-blue);
}

.manager-section.is-manager-collapsed {
    padding-top: 17px;
    padding-bottom: 17px;
}

.manager-section.is-manager-collapsed > :not(.panel-header):not(.manager-section-toggle) {
    display: none !important;
}

.manager-section.is-manager-collapsed > .panel-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.section-header-summary {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f2f2f7;
    color: #6e6e73;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.people-management-toolbar {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}

.people-management-toolbar > .manager-search {
    flex: 1 1 420px;
    min-width: 260px;
}

.people-sort-control {
    display: grid;
    flex: 0 0 220px;
    gap: 5px;
}

.people-sort-control > span {
    color: var(--apple-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.people-sort-control .manager-search {
    width: 100%;
    min-width: 0;
}

@media (max-width: 900px) {
    .manager-layout-toolbar,
    .people-management-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .manager-layout-actions {
        align-self: flex-end;
    }

    .people-management-toolbar > .manager-search,
    .people-sort-control {
        flex-basis: auto;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .manager-layout-toolbar {
        margin: 0 0 12px;
        padding: 12px;
    }

    .manager-layout-toolbar span {
        line-height: 1.45;
    }

    .manager-layout-actions {
        align-self: stretch;
    }

    .manager-layout-actions .btn-secondary {
        flex: 1;
    }

    .manager-section-toggle {
        top: 14px;
        right: 14px;
    }

    .manager-section > .panel-header {
        padding-right: 38px;
    }

    .manager-section.is-manager-collapsed {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .section-header-summary {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 岗位培养路径与三个月后的技能培养中心 */
.employee-form-modal {
    max-width: 580px;
}

.employee-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.employee-form .form-group {
    min-width: 0;
    margin-bottom: 16px;
}

.employee-form .form-group input,
.employee-form .form-group select,
.employee-form .form-group textarea {
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #d7dce4;
    border-radius: 10px;
    background: #f7f8fa;
    font-size: 13px;
    font-weight: 600;
}

.employee-form .form-group textarea {
    min-height: 74px;
    resize: vertical;
}

.employee-form .form-group input[readonly] {
    color: #7d8490;
    background: #eff1f4;
    cursor: not-allowed;
}

.employee-form .field-hint {
    display: block;
    margin-top: 6px;
    line-height: 1.45;
}

.employee-form .btn-link {
    margin-top: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--apple-blue);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.employee-password-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid #d7dce4;
    border-radius: 10px;
    background: #eff1f4;
}

.employee-password-control span {
    padding: 10px 13px;
    color: #7d8490;
    font-size: 15px;
    letter-spacing: 2px;
}

.employee-password-control button {
    align-self: stretch;
    padding: 0 13px;
    border: 0;
    border-left: 1px solid #d7dce4;
    background: #fff;
    color: var(--apple-blue);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.employee-password-control button:hover {
    background: #eef6ff;
}

.employee-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.employee-form-actions .btn-punchin {
    flex: 2;
}

.employee-form-actions .btn-secondary {
    flex: 1;
}

.employee-form-actions button {
    min-height: 44px;
}

.employee-training-path-preview {
    margin: 12px 0 16px;
    padding: 13px 15px;
    border: 1px solid #d9e5f5;
    border-radius: 12px;
    background: #f7faff;
    color: #405064;
    font-size: 13px;
    line-height: 1.55;
}

.employee-training-path-preview strong {
    display: block;
    margin-bottom: 3px;
    color: var(--apple-text);
    font-size: 14px;
}

.employee-training-path-preview.is-skill {
    border-color: #b8ead5;
    background: #f1fbf7;
}

.employee-training-path-preview.is-none {
    border-color: #e3e3e8;
    background: #f7f7f9;
}

.skill-eligibility-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #f0d48a;
    border-radius: 16px;
    background: #fff9e9;
}

.skill-eligibility-banner > div {
    display: grid;
    gap: 5px;
}

.skill-eligibility-banner strong {
    color: var(--apple-text);
    font-size: 17px;
}

.skill-eligibility-banner span {
    color: var(--apple-text-muted);
    font-size: 13px;
}

.skill-eligibility-banner.type-skill {
    border-color: #9de5c7;
    background: #effbf6;
}

.skill-eligibility-banner.type-none {
    border-color: #dedee4;
    background: #f6f6f8;
}

.training-type-badge {
    flex: 0 0 auto;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #4b5563 !important;
    font-size: 12px !important;
    font-weight: 800;
    white-space: nowrap;
}

.skill-program-admin-panel {
    margin-bottom: 18px;
}

.skill-program-panel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.skill-program-permission-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.skill-program-permission-badge.is-manager {
    background: #e8f1ff;
    color: #0a66d8;
}

.skill-program-permission-badge.is-mentor {
    background: #eafaf3;
    color: #087d56;
}

.skill-program-list {
    display: grid;
    gap: 12px;
}

.skill-program-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 17px;
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    background: #fff;
}

.skill-program-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--apple-text);
    font-size: 16px;
}

.skill-program-card p {
    margin: 0 0 7px;
    color: #525866;
    line-height: 1.55;
}

.skill-program-card small {
    color: var(--apple-text-muted);
}

.skill-program-card .skill-program-revision {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}

.skill-program-position-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.skill-program-position-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f3f6;
    color: #505766;
    font-size: 11px;
    font-weight: 700;
}

.skill-program-position-tags .is-auto {
    background: #e9f8f1;
    color: #087d56;
}

.skill-program-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-program-card-actions b {
    display: grid;
    min-width: 54px;
    color: #087d56;
    font-size: 21px;
    text-align: center;
}

.skill-program-card-actions b small {
    color: var(--apple-text-muted);
    font-size: 10px;
    font-weight: 700;
}

.skill-program-card-actions b.is-overdue {
    color: #d92d20;
}

.skill-program-modal-card {
    width: min(980px, calc(100vw - 32px));
    max-width: 980px;
}

.skill-editor-permission-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #d8e4f5;
    border-radius: 12px;
    background: #f5f9ff;
}

.skill-editor-permission-note strong {
    flex: 0 0 auto;
    color: #0a66d8;
}

.skill-editor-permission-note span {
    color: #526071;
    line-height: 1.55;
}

.skill-editor-permission-note.is-mentor {
    border-color: #bcebd6;
    background: #f1fcf7;
}

.skill-editor-permission-note.is-mentor strong {
    color: #087d56;
}

.skill-editor-version-note {
    margin: 8px 0 14px;
    color: var(--apple-text-muted);
    font-size: 12px;
    text-align: right;
}

.skill-position-options,
.skill-assignment-employees {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 230px;
    padding: 10px;
    overflow: auto;
    border: 1px solid #dde2e9;
    border-radius: 12px;
    background: #f8f9fb;
}

.skill-position-options label,
.skill-assignment-employees label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.skill-assignment-employees label span {
    display: grid;
    min-width: 0;
}

.skill-assignment-employees label small {
    color: var(--apple-text-muted);
}

.skill-stage-editor-list {
    display: grid;
    gap: 14px;
}

.skill-stage-editor-card {
    padding: 15px;
    border: 1px solid #dfe4eb;
    border-radius: 14px;
    background: #fafbfc;
}

.skill-stage-editor-header,
.skill-task-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.skill-stage-editor-header strong {
    color: var(--apple-text);
}

.skill-task-editor-list {
    display: grid;
    gap: 9px;
}

.skill-task-editor-row {
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 12px;
    background: #fff;
}

.skill-task-editor-row-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.skill-task-editor-row-heading::-webkit-details-marker {
    display: none;
}

.skill-task-editor-row-heading > span {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
}

.skill-task-editor-row-heading > span::before {
    content: '›';
    color: #7b8494;
    font-size: 20px;
    font-weight: 800;
    transform: rotate(0deg);
    transition: transform .16s ease;
}

.skill-task-editor-row[open] .skill-task-editor-row-heading > span::before {
    transform: rotate(90deg);
}

.skill-task-editor-row-heading small {
    overflow: hidden;
    color: var(--apple-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skill-task-editor-body {
    padding: 14px;
    border-top: 1px solid #edf0f4;
}

.skill-add-task-button {
    width: 100%;
    margin-top: 10px;
}

.skill-center-empty {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 52px 20px;
    border: 1px dashed #ced6e1;
    border-radius: 15px;
    color: var(--apple-text-muted);
    text-align: center;
}

.skill-center-empty > span {
    font-size: 34px;
}

.skill-center-empty strong {
    color: var(--apple-text);
    font-size: 17px;
}

.skill-center-empty p {
    margin: 0;
}

.skill-assignment-overview {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #b8ead5;
    border-radius: 15px;
    background: #f1fbf7;
}

.skill-assignment-supervision-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.skill-assignment-supervision-actions span {
    color: var(--apple-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.skill-assignment-overview.is-overdue {
    border-color: #f2c2bd;
    background: #fff5f4;
}

.skill-assignment-overview > div:first-child {
    display: grid;
    gap: 4px;
}

.skill-assignment-overview > div:first-child strong {
    color: var(--apple-text);
    font-size: 18px;
}

.skill-assignment-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.skill-assignment-metrics span {
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--apple-text-muted);
    font-size: 11px;
}

.skill-assignment-metrics b {
    color: var(--apple-text);
    font-size: 18px;
}

.skill-assignment-stage-list {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.skill-assignment-stage {
    padding: 17px;
    border: 1px solid #e0e4ea;
    border-radius: 15px;
    background: #fff;
}

.skill-assignment-stage > p {
    color: var(--apple-text-muted);
}

.skill-assignment-stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 11px;
}

.skill-assignment-stage-header > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.skill-assignment-stage-header span {
    padding: 4px 7px;
    border-radius: 7px;
    background: #eef5ff;
    color: var(--apple-blue);
    font-size: 11px;
    font-weight: 800;
}

.skill-assignment-stage-header small {
    color: var(--apple-text-muted);
}

.position-training-type-select {
    min-width: 190px;
    padding: 7px 9px;
    border: 1px solid #d6dae1;
    border-radius: 9px;
    background: #fff;
    color: var(--apple-text);
}

.training-path-onboarding,
.training-path-skill,
.training-path-none {
    display: grid;
    gap: 3px;
    min-width: 150px;
}

.training-path-onboarding strong { color: #9a6500; }
.training-path-skill strong { color: #087d56; }
.training-path-none strong { color: #6e6e73; }
.training-path-onboarding small,
.training-path-skill small,
.training-path-none small { color: var(--apple-text-muted); }

@media (max-width: 900px) {
    .skill-program-card {
        grid-template-columns: 1fr;
    }

    .skill-program-card-actions {
        flex-wrap: wrap;
    }

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

@media (max-width: 620px) {
    .employee-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .employee-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .employee-form-actions .btn-punchin,
    .employee-form-actions .btn-secondary {
        width: 100%;
        flex: none;
    }

    .skill-eligibility-banner,
    .skill-assignment-stage-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .skill-position-options,
    .skill-assignment-employees {
        grid-template-columns: 1fr;
    }

    .skill-program-panel-actions,
    .skill-program-panel-actions .btn-punchin {
        width: 100%;
    }

    .skill-program-panel-actions {
        align-items: stretch;
        justify-content: stretch;
    }

    .skill-program-permission-badge {
        text-align: center;
    }

    .skill-editor-permission-note {
        flex-direction: column;
    }
}
