:root {
    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --dark: #0f172a;
    --sidebar-bg: #111827;
    --bg-light: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text-main: #1f2937;
    --text-muted: #64748b;
    --danger: #ef4444;
    --success: #16a34a;
    --warning: #f59e0b;
    --shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
    min-height: 100%;
}

body {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), rgba(248, 250, 252, 1));
    color: var(--text-main);
    overflow-x: auto;
    line-height: 1.6;
}

img, svg {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.hidden {
    display: none !important;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 48px 0 0;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    box-sizing: border-box;
}

.auth-landing-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 0 24px;
    flex: 1 0 auto;
}

.auth-landing-banner {
    width: min(100%, 760px);
    max-height: 140px;
    object-fit: contain;
}

.app-landing-banner--dashboard {
    flex: 1 1 auto;
    width: auto;
    max-width: min(380px, 42vw);
    max-height: 56px;
    object-fit: contain;
    margin: 0 auto;
    padding: 0;
}

.app-landing-banner[hidden] {
    display: none !important;
}

.login-card {
    width: min(100%, 420px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    padding: 40px 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.login-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-top: 4px;
}

.login-header:has(.auth-back-btn) {
    padding-top: 8px;
}

.auth-back-btn {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 38px;
    height: 38px;
    min-width: 0;
    padding: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.auth-back-btn:hover {
    background: #1d4ed8;
    transform: none;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32);
}

.auth-back-btn i {
    display: inline-flex;
    width: auto;
    height: auto;
    font-size: 0.95rem;
    margin: 0;
    border-radius: 0;
    background: none;
    color: inherit;
}

.login-header-icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.14);
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 18px;
}

.auth-brand[hidden] {
    display: none !important;
}

.auth-brand.auth-landing-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto;
    max-width: 100%;
    padding: 4px 8px;
}

.auth-landing-brand .auth-brand-logo {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    border-radius: 20px;
    object-fit: contain;
    display: block;
}

.auth-landing-brand .auth-brand-name {
    font-size: 2.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #385723;
    line-height: 1.15;
    white-space: nowrap;
}

.auth-landing-brand .auth-brand-name--kv {
    color: #0573df;
}

@media (max-width: 520px) {
    .auth-landing-brand .auth-brand-logo {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .auth-landing-brand .auth-brand-name {
        font-size: 1.7rem;
    }

    .auth-brand.auth-landing-brand {
        gap: 12px;
    }
}

.auth-partners-section {
    width: 100%;
    margin-top: auto;
    padding: 28px 0 36px;
    background:
        radial-gradient(ellipse 55% 90% at 8% 60%, rgba(134, 239, 172, 0.28) 0%, transparent 55%),
        linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #ffffff 28%);
}

.auth-partners-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.auth-partners-marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.auth-partners-track {
    display: flex;
    width: max-content;
    animation: auth-partners-scroll 42s linear infinite;
}

.auth-partners-group {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding-right: 20px;
}

.auth-partners-group img {
    height: 148px;
    width: auto;
    max-width: none;
    display: block;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    background: #fff;
    object-fit: contain;
}

.auth-partners-static {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
}

.auth-partners-static[hidden],
.auth-partners-marquee[hidden] {
    display: none !important;
}

.auth-partners-static > img {
    height: 148px;
    width: auto;
    max-width: min(360px, 42vw);
    display: block;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    background: #fff;
    object-fit: contain;
    box-sizing: border-box;
}

.auth-partner-card {
    height: 148px;
    min-width: 300px;
    max-width: min(380px, 90vw);
    padding: 16px 28px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    background: #fff;
    box-sizing: border-box;
}

.auth-partner-card-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: #3b9ddd;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
}

.auth-partner-card-body {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-vigyan-mark {
    width: 64px;
    height: auto;
    max-height: 92px;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.auth-vigyan-name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 0;
    line-height: 1.1;
    white-space: nowrap;
}

@keyframes auth-partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    .auth-partners-title {
        font-size: 1.15rem;
        margin-bottom: 14px;
    }

    .auth-partners-group img {
        height: 112px;
        border-radius: 14px;
    }

    .auth-partners-static > img {
        height: 112px;
        max-width: min(280px, 80vw);
        border-radius: 14px;
    }

    .auth-partner-card {
        height: 112px;
        min-width: 240px;
        padding: 10px 16px 12px;
        gap: 8px;
        border-radius: 14px;
    }

    .auth-partner-card-label {
        font-size: 1rem;
    }

    .auth-vigyan-mark {
        width: 48px;
        max-height: 72px;
    }

    .auth-vigyan-name {
        font-size: 1.2rem;
    }

    .auth-partner-card-body {
        gap: 6px;
    }

    .auth-partners-static {
        gap: 16px;
    }

    .auth-partners-group {
        gap: 14px;
        padding-right: 14px;
    }

    .auth-partners-track {
        animation-duration: 32s;
    }

    .auth-partners-section {
        padding: 22px 0 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-partners-track {
        animation: none;
    }
}

.login-header h2 {
    font-size: 1.95rem;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.input-group input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--text-main);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group input:focus,
textarea:focus,
select:focus {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.error-text {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--danger);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
    white-space: nowrap;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.18);
}

.btn-primary:disabled,
.btn-primary[disabled] {
    background: #94a3b8;
    color: #f8fafc;
    border-color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.85;
    transform: none;
}

.btn.btn-primary.btn-upload-progress {
    position: relative;
    overflow: hidden;
    min-width: 148px;
    isolation: isolate;
}

.btn.btn-primary.btn-upload-progress:disabled,
.btn.btn-primary.btn-upload-progress[disabled] {
    background: #94a3b8;
    opacity: 1;
}

.btn-upload-progress__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6%;
    background: linear-gradient(90deg, #15803d, #22c55e 55%, #4ade80);
    z-index: 0;
    pointer-events: none;
    will-change: width;
}

.btn-upload-progress--running .btn-upload-progress__fill {
    box-shadow: 2px 0 10px rgba(34, 197, 94, 0.45);
}

.btn-upload-progress__label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
}

.btn-primary:disabled:hover,
.btn-primary[disabled]:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 1px solid #e2e8f0;
}

.login-header .btn-secondary {
    padding: 0.5rem 0.85rem;
    font-size: 0.92rem;
    min-width: 0;
    line-height: 1.1;
    border-radius: 999px;
}

.login-header .btn-secondary i {
    font-size: 0.95rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(100, 116, 139, 0.18);
    color: var(--dark);
}

/* Role Selection Styles */
.role-selection-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.role-selection-body .role-btn[hidden] {
    display: none !important;
}

.role-selection-body--staff-only {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-selection-body--staff-only .role-btn[data-staff-role="mentor"] {
    grid-column: 1 / -1;
    width: min(100%, 340px);
    justify-self: center;
}

.role-selection-body--admin-only {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.role-selection-card {
    width: min(100%, 760px);
}

.role-btn {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
    min-height: 128px;
    padding: 20px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    background: white;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    box-shadow: none;
}

@media (max-width: 640px) {
    .role-selection-body {
        grid-template-columns: 1fr;
    }

    .role-selection-card {
        width: min(100%, 460px);
    }
}

.role-btn:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.role-btn i {
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.role-btn h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.25;
}

.role-btn p {
    margin: 5px 0 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-sm {
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.btn-action {
    min-width: 120px;
}

.app-grid {
    display: grid;
    grid-template-columns: clamp(220px, 22vw, 280px) minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

.sidebar {
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 30px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 1.25rem;
    font-weight: 800;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sidebar-brand-credit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sidebar-brand-credit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sidebar-brand-tagline--sub {
    color: rgba(148, 163, 184, 0.72);
}

.sidebar-brand-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}

.sidebar-brand-tagline {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.01em;
}

.sidebar-brand i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.env-test-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: #d97706;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    flex-shrink: 0;
}

.env-test-badge[hidden] {
    display: none !important;
}

.env-test-badge--header {
    align-self: center;
}

.admin-profile-box {
    padding: 24px 22px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    margin: 0 18px 26px;
    line-height: 1.6;
    font-size: 0.94rem;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 8px;
    flex: 1;
}

.menu-item {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    color: #cbd5e1;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(2px);
}

.menu-item.active {
    border-left: 4px solid var(--primary);
    background: rgba(37, 99, 235, 0.12);
    color: white;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-logout-header {
    white-space: nowrap;
}

.main-content {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    overflow-y: auto;
    min-width: 0;
}

.viewport-inner {
    width: 100%;
}

#main-render-area {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.table-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.announcement-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
    gap: 28px;
    align-items: start;
}

.ann-form-card,
.ann-history-container {
    background: white;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.ann-history-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ann-scroll-area {
    display: grid;
    gap: 18px;
}

.ann-list-pagination {
    margin-top: 4px;
    padding-top: 4px;
}

.ann-pagination-summary {
    margin: 0;
}

.ann-item {
    background: #f8fafc;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.ann-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.ann-app-tag {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.8rem;
}

.ann-school-tag {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.8rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ann-school-target {
    margin-top: 4px;
}

.ann-school-toolbar {
    align-items: center;
    gap: 8px;
}

.ann-school-picker-count {
    margin-left: auto;
    font-size: 0.8rem;
}

.ann-school-picker-list {
    max-height: 220px;
}

.ann-item-header .status-tag {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
}

.ann-item h4 {
    margin: 0 0 8px;
}

.ann-item p {
    margin: 0;
    color: var(--text-main);
    line-height: 1.7;
}

.ann-item-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.btn-broadcast {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    border: none;
    font-weight: 700;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(18px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: clamp(18px, 2.4vw, 24px) clamp(18px, 4vw, 40px);
}

.page-header-title {
    flex: 0 1 auto;
    min-width: 0;
}

.page-header h2 {
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.page-subtitle {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.clock-badge {
    flex-shrink: 0;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
    min-width: 120px;
    text-align: center;
}

.viewport-inner {
    padding: clamp(18px, 3vw, 36px) clamp(18px, 4vw, 40px) clamp(28px, 4vw, 48px);
    width: 100%;
}


.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
}

.module-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.school-student-count-cell {
    text-align: center;
    white-space: nowrap;
}

.school-student-count {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.school-student-count--zero {
    color: #94a3b8;
}

.school-student-count--link {
    appearance: none;
    border: none;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    min-width: 2rem;
    padding: 4px 10px;
    cursor: pointer;
    font: inherit;
    line-height: 1.3;
}

.school-student-count--link:hover {
    background: #dbeafe;
}

.school-students-modal__content {
    width: min(100%, 720px);
    max-height: min(88vh, 720px);
    overflow: auto;
}

.school-students-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.school-students-modal__header h3 {
    margin: 0;
}

.school-students-modal-count {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.92rem;
}

.school-student-name-link {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    color: #2563eb;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.school-student-name-link:hover {
    text-decoration: underline;
}

.log-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.log-controls .btn-action {
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: auto;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.log-controls .btn-action:hover {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.log-controls .btn-action:not(.outline):not(.danger):hover {
    background: #1d4ed8;
}

.log-controls .btn-action.outline {
    background: #fff;
    color: #2563eb;
    border: 1px solid #cbd5e1;
}

.log-controls .btn-action.outline:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.log-controls .btn-action.danger {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.log-controls .btn-action.danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.log-card {
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 14px;
    padding: 18px;
}

.log-search-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.log-search-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.log-search-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.activity-log-week-toolbar {
    margin-bottom: 14px;
}

.activity-log-week-picker {
    margin: 0;
}

.activity-log-week-picker label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.activity-log-week-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.activity-log-week-controls input[type='week'] {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    min-height: 38px;
}

.activity-log-week-range {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #64748b;
}

.log-source {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
}

.log-source--system {
    background: #e0f2fe;
    color: #0369a1;
}

.log-source--manual {
    background: #fef3c7;
    color: #b45309;
}

.log-source--session {
    background: #ecfeff;
    color: #0f766e;
}

.activity-log-manual-modal__content {
    width: min(100%, 520px);
}

.activity-log-manual-hint {
    margin: 0 0 14px;
    color: var(--text-muted, #64748b);
    font-size: 0.92rem;
}

.activity-log-manual-modal__content textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
}

.activity-log-manual-modal__content .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.log-time code {
    font-size: 0.82rem;
    color: #475569;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 6px;
}

.log-detail {
    color: #334155;
    line-height: 1.45;
}

.log-team-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}

.badge-teams,
.badge-manage-group {
    background: #ecfdf5;
    color: #047857;
}

.badge-meetings {
    background: #eff6ff;
    color: #1d4ed8;
}

.badge-config,
.badge-users {
    background: #f5f3ff;
    color: #6d28d9;
}

.badge-system,
.badge-general {
    background: #f8fafc;
    color: #64748b;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.users-pending-toolbar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.users-pending-toolbar .btn-sm {
    white-space: nowrap;
}

.head-school-filter select {
    min-width: 200px;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
}

.head-school-filter select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}

.filter-bar span {
    color: var(--text-muted);
    font-weight: 600;
}

.search-bar {
    display: flex;
    width: 100%;
    margin-top: 16px;
}

.search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 22px;
}

.post-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.post-tag {
    display: inline-flex;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    width: fit-content;
}

.post-body h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.post-body p {
    margin: 0;
    color: var(--text-muted);
}

.status-label {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #eff6ff;
    color: #2563eb;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
    background: white;
    border-radius: 28px;
    padding: 32px 34px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.dashboard-header h1 {
    margin: 0;
    font-size: 2rem;
}

.dashboard-header p {
    margin: 0;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.6;
}

.dashboard-config-btn {
    align-self: flex-start;
}

.dashboard-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-self: flex-start;
}

.master-data-export-sheet {
    width: min(100%, 820px);
}

.weekly-report-sheet {
    width: min(100%, 980px);
    max-height: min(90vh, 900px);
    overflow: auto;
}

.weekly-report-sub {
    margin: 4px 0 0;
    font-size: 0.88rem;
}

.weekly-report-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.weekly-report-controls .input-group {
    min-width: 140px;
    margin-bottom: 0;
}

.weekly-report-controls .input-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    min-height: 1.2em;
}

.weekly-report-controls .input-group select,
.weekly-report-controls .input-group input[type="date"] {
    height: 40px;
    padding: 8px 12px;
    line-height: 1.25;
    box-sizing: border-box;
}

.weekly-report-app-group {
    flex: 0 1 180px;
    min-width: 140px;
}

.weekly-report-app-group select {
    width: 100%;
}

.weekly-report-control-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-bottom: 0;
}

.weekly-report-control-actions .btn {
    height: 40px;
    padding: 0 14px;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.weekly-report-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.weekly-report-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
}

.weekly-report-overview-grid > .weekly-report-email-panel {
    margin: 0;
    min-width: 0;
}

.weekly-report-pie-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.weekly-report-pie {
    display: block;
    flex: 0 0 auto;
}

.weekly-report-pie-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 180px;
}

.weekly-report-pie-legend-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    font-size: 0.88rem;
}

.weekly-report-pie-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.weekly-report-pie-legend-label {
    color: #334155;
}

.weekly-report-kpis--progress {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-bottom: 0;
}

.weekly-report-app-progress {
    margin: 8px 0 22px;
    padding-top: 4px;
}

.weekly-report-app-progress-title {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 650;
    color: #0f172a;
}

.weekly-report-app-progress-hint {
    margin: 0 0 10px;
    font-size: 0.82rem;
}

.weekly-report-session-booking {
    margin: 18px 0 8px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.weekly-report-session-booking h4 {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 650;
    color: #0f172a;
}

.weekly-report-level-block {
    margin: 0 0 16px;
}

.weekly-report-level-block-title {
    margin: 0 0 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
}

.weekly-report-level-block-title .text-muted {
    font-weight: 500;
    font-size: 0.85rem;
}

.weekly-report-kpi {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
}

.weekly-report-kpi--clickable {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.weekly-report-kpi--clickable:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.weekly-report-kpi--clickable:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.weekly-report-kpi-hint {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #2563eb;
}

.weekly-report-kpi-detail-modal {
    width: min(100%, 960px);
    max-height: min(90vh, 800px);
    overflow: auto;
}

.weekly-report-kpi-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.weekly-report-kpi-detail-header h3 {
    margin: 0;
}

.weekly-report-kpi-detail-note {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.weekly-report-kpi-detail-count {
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.weekly-report-kpi-detail-tablewrap {
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    max-height: min(60vh, 520px);
}

.weekly-report-kpi h4 {
    margin: 0;
    font-size: 1.35rem;
}

.weekly-report-kpi p {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.weekly-report-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.weekly-report-kpi--green .weekly-report-kpi-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.weekly-report-kpi--orange .weekly-report-kpi-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.weekly-report-kpi--purple .weekly-report-kpi-icon {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.weekly-report-kpi--teal .weekly-report-kpi-icon {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
}

.weekly-report-kpi--red .weekly-report-kpi-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.weekly-report-session-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.weekly-report-session-cancel-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #475569;
    cursor: pointer;
    margin: 0;
}

.weekly-report-session-cancel-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.weekly-report-session-note {
    margin: 8px 0 0;
    font-size: 0.82rem;
}

.weekly-report-session-table-wrap {
    margin-top: 12px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.weekly-report-session-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 900px;
}

.weekly-report-session-table th,
.weekly-report-session-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.weekly-report-session-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.weekly-report-session-table tbody tr:last-child td {
    border-bottom: none;
}

.weekly-report-session-row--cancelled td {
    background: #fef2f2;
    color: #94a3b8;
}

.weekly-report-session-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: #e2e8f0;
    color: #475569;
}

.weekly-report-session-status--completed {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.weekly-report-session-status--planned {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.weekly-report-session-status--pending {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.weekly-report-session-status--cancelled {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.weekly-report-details-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.weekly-report-details-head h4 {
    margin: 0;
}

.weekly-report-export-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.weekly-report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.weekly-report-tab {
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
}

.weekly-report-tab.is-active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--primary);
}

.weekly-report-toolbar {
    margin-bottom: 10px;
}

.weekly-report-toolbar .search-box {
    max-width: 320px;
}

.weekly-report-table-wrap {
    max-height: 340px;
    overflow: auto;
}

.weekly-report-error {
    color: #b91c1c;
    margin: 8px 0;
}

.weekly-report-loading {
    margin: 12px 0;
}

.weekly-report-loading-box,
.sa-live-loading,
.cr-report__loading--inline,
.dashboard-stats-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 0.9rem;
}

.sa-load-progress {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sa-load-progress--done {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.sa-load-progress__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.84rem;
    line-height: 1.35;
}

.sa-load-progress__label {
    flex: 1;
    min-width: 0;
}

.sa-load-progress__pct {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #1d4ed8;
    flex-shrink: 0;
}

.sa-load-progress__track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.sa-load-progress__fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transition: width 0.25s ease;
    will-change: width;
}

/* Keeps the bar visually alive while Firestore / table work runs on the main thread. */
.sa-load-progress--busy .sa-load-progress__track::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 45%,
        transparent 90%
    );
    transform: translateX(-100%);
    animation: sa-load-shimmer 1.1s linear infinite;
    pointer-events: none;
}

@keyframes sa-load-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sa-load-progress--busy .sa-load-progress__track::after {
        animation: none;
        display: none;
    }
}

.weekly-report-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.weekly-report-skeleton-card {
    height: 88px;
    border-radius: 12px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: ui-busy-shimmer 1.2s ease-in-out infinite;
}

@keyframes ui-busy-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.ui-busy-banner {
    position: fixed;
    z-index: 4000;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(560px, calc(100vw - 24px));
    padding: 10px 16px;
    border-radius: 999px;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
    font-size: 0.85rem;
    pointer-events: none;
}

.ui-busy-banner[hidden] {
    display: none !important;
}

.ui-busy-banner .fa-spinner {
    color: #93c5fd;
}

.weekly-report-email-panel {
    margin: 16px 0 20px;
    padding: 14px 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: #f8fafc;
}

.weekly-report-email-panel--collapsible {
    padding: 0;
    overflow: hidden;
}

.weekly-report-email-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.weekly-report-email-toggle:hover {
    background: #f1f5f9;
}

.weekly-report-email-panel--collapsible.is-open .weekly-report-email-toggle {
    border-bottom: 1px solid #e2e8f0;
}

.weekly-report-email-toggle-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.weekly-report-email-toggle-main > .fas {
    margin-top: 3px;
    color: #2563eb;
}

.weekly-report-email-toggle-title {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    color: #0f172a;
}

.weekly-report-email-toggle-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.85rem;
    font-weight: 400;
}

.weekly-report-email-toggle-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.weekly-report-email-chevron {
    color: #64748b;
}

.weekly-report-email-body {
    padding: 12px 16px 16px;
}

.weekly-report-email-body[hidden] {
    display: none !important;
}

.weekly-report-level-app-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.weekly-report-email-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.weekly-report-email-head h4 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
}

.weekly-report-email-hint {
    margin: 0 0 12px;
    font-size: 0.85rem;
}

.weekly-report-email-panel textarea {
    width: 100%;
    resize: vertical;
    min-height: 72px;
    font: inherit;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.weekly-report-email-schedule {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 12px;
    font-size: 0.9rem;
    cursor: pointer;
}

.weekly-report-email-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weekly-report-email-status {
    margin: 10px 0 0;
    font-size: 0.88rem;
    color: #0f172a;
}

.weekly-report-email-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.weekly-report-email-badge--ok {
    background: #dcfce7;
    color: #166534;
}

.weekly-report-email-badge--warn {
    background: #ffedd5;
    color: #9a3412;
}

.weekly-report-email-schedule-block {
    margin: 14px 0 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.weekly-report-email-panel .weekly-report-scheduler-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

.weekly-report-email-panel .weekly-report-scheduler-head h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.weekly-report-scheduler-toggle {
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: 0.88rem;
    color: #334155;
    cursor: pointer;
    padding: 0;
}

.weekly-schedule-on {
    color: #15803d;
}

.weekly-schedule-off {
    color: #dc2626;
}

.weekly-report-scheduler-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.weekly-report-scheduler-row--time {
    grid-template-columns: 1fr 1fr 1fr;
}

.weekly-report-email-panel .weekly-report-scheduler-row .input-group {
    margin-bottom: 0;
}

.weekly-report-email-panel .weekly-report-scheduler-row .input-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.weekly-report-email-panel select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    background: #fff;
}

.weekly-schedule-save-btn {
    border-radius: 999px;
    padding-left: 18px;
    padding-right: 18px;
}

@media (max-width: 640px) {
    .weekly-report-scheduler-row,
    .weekly-report-scheduler-row--time {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .weekly-report-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .weekly-report-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .weekly-report-kpis {
        grid-template-columns: 1fr;
    }
}

.master-data-export-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.master-data-export-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.master-data-export-table th,
.master-data-export-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    vertical-align: middle;
}

.master-data-export-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.master-data-export-actions {
    text-align: right;
    white-space: nowrap;
}

.nmo-offline-admin-sheet h4 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.nmo-offline-admin-form {
    margin: 16px 0 20px;
    padding: 14px 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: #f8fafc;
}

.nmo-offline-admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.nmo-offline-admin-password-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nmo-offline-admin-password-row input {
    flex: 1;
}

.nmo-offline-admin-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-danger-text {
    color: #b91c1c;
}

.config-import-result-sheet {
    width: min(100%, 720px);
    max-height: min(85vh, 820px);
    display: flex;
    flex-direction: column;
}

.import-result-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 10px;
}

.import-result-stat {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.import-result-stat strong {
    font-size: 1.6rem;
    line-height: 1.1;
}

.import-result-stat span {
    font-size: 0.92rem;
    color: var(--text-muted, #64748b);
}

.import-result-stat--success strong {
    color: #15803d;
}

.import-result-stat--fail strong {
    color: #b91c1c;
}

.import-result-note {
    margin: 0 0 8px;
    font-size: 0.92rem;
}

.import-result-errors-title {
    margin: 12px 0 8px;
    font-size: 0.98rem;
}

.import-result-errors-wrap {
    flex: 1 1 auto;
    min-height: 120px;
    max-height: min(42vh, 360px);
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: #fff;
}

.import-result-errors-list {
    margin: 0;
    padding: 12px 16px 12px 28px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.import-result-errors-list li + li {
    margin-top: 6px;
}

.import-result-hint {
    margin: 12px 0 0;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.import-result-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.import-result-actions--preview {
    gap: 10px;
}

.config-import-preview-sheet {
    width: min(100%, 1100px);
    max-height: min(90vh, 920px);
}

.import-result-file-name {
    margin: 0 0 4px;
    font-size: 0.92rem;
}

.import-preview-section {
    margin: 14px 0 12px;
}

.import-preview-title {
    margin: 0 0 6px;
    font-size: 0.98rem;
}

.import-preview-desc {
    margin: 0 0 10px;
    font-size: 0.88rem;
}

.import-preview-table-wrap {
    max-height: min(42vh, 360px);
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
}

.btn-danger-outline {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.45);
}

.btn-danger-outline:hover:not(:disabled) {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

.config-import-batch-delete-sheet {
    width: min(100%, 720px);
    max-height: min(88vh, 760px);
}

.import-batch-delete-desc {
    margin: 0 0 12px;
    font-size: 0.9rem;
}

.import-batch-delete-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(48vh, 420px);
    overflow: auto;
    margin-bottom: 14px;
    padding-right: 4px;
}

.import-batch-delete-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    cursor: pointer;
}

.import-batch-delete-row--all {
    background: rgba(248, 250, 252, 0.9);
}

.import-batch-delete-row input {
    margin-top: 3px;
}

.import-batch-delete-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.import-batch-delete-meta {
    font-size: 0.86rem;
    color: #64748b;
    word-break: break-word;
}

.import-batch-delete-error {
    color: #dc2626;
    margin: 0 0 10px;
    font-size: 0.9rem;
}

.import-batch-delete-loading {
    margin: 12px 0;
}

.import-bulk-school-picker {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.85);
}

.import-bulk-school-picker--missing {
    border-color: rgba(251, 191, 36, 0.55);
}

.import-bulk-school-picker__label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.import-bulk-school-picker__select {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    font-size: 0.95rem;
}

.import-bulk-school-picker__hint {
    margin: 8px 0 0;
    font-size: 0.86rem;
}

.import-bulk-school-picker__locked {
    margin: 0;
    font-size: 0.92rem;
}

.import-bulk-school-picker__warn {
    margin: 0 0 8px;
    font-size: 0.88rem;
}

.import-preview-table {
    min-width: 960px;
}

.import-preview-table th,
.import-preview-table td {
    white-space: nowrap;
    font-size: 0.84rem;
}

.import-preview-table code {
    font-size: 0.8rem;
}

.import-preview-empty {
    margin: 12px 0;
}

.dashboard-details-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.details-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.details-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.activity-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
}

.side-panel .activity-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px;
}

.side-panel .activity-list .log-action {
    font-size: 0.92rem;
    line-height: 1.35;
}

.side-panel .activity-list .log-time {
    font-size: 0.82rem;
    color: #64748b;
    white-space: nowrap;
}

.side-panel .activity-list-empty {
    background: transparent;
    padding: 4px 0;
}

.status-item {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.status-item span {
    font-weight: 600;
}

.status-item:last-child {
    margin-bottom: 0;
}

.stats-grid,
.card-grid,
.dashboard-layout {
    display: grid;
    gap: 24px;
}

.stats-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.dashboard-layout {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
}

/* Laptop/tablet fit: reduce side paddings + stack dense dashboard blocks */
@media (max-width: 1400px) {
    .page-header {
        padding-left: 26px;
        padding-right: 26px;
    }
    .viewport-inner {
        padding-left: 26px;
        padding-right: 26px;
    }
    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .dashboard-details-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-header {
        flex-wrap: wrap;
        padding: 24px 22px;
    }
}

.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-panel {
    background: white;
    border-radius: 24px;
    padding: 26px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.side-panel h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.action-list {
    display: grid;
    gap: 14px;
}

.config-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
    padding: 22px;
    max-width: 100%;
    min-width: 0;
}

.config-demo-banner {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #1e40af;
    font-size: 0.92rem;
    line-height: 1.45;
}

.config-demo-banner i {
    margin-right: 8px;
    opacity: 0.9;
}

.config-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
}

.config-tab {
    border-radius: 999px;
    padding: 0.65rem 1rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.config-tab.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.config-card--hub {
    padding: 24px;
}

.config-hub-intro {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.config-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.config-hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    padding: 20px 18px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 148px;
}

.config-hub-card:hover,
.config-hub-card:focus-visible {
    transform: translateY(-3px);
    border-color: hsl(var(--hub-hue, 220), 55%, 78%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
    outline: none;
}

.config-hub-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: hsl(var(--hub-hue, 220), 45%, 38%);
    background: hsl(var(--hub-hue, 220), 70%, 94%);
}

.config-hub-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

.config-hub-card__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    flex: 1;
}

.config-hub-card__cta {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.config-section-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.config-section-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.config-section-nav__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.config-section-nav__title i {
    color: var(--primary);
    font-size: 1rem;
}

.config-section-nav__actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.config-hub-back {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .config-hub-grid {
        grid-template-columns: 1fr;
    }
}

.config-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cfg-app-institute-checks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
    padding: 8px 10px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: var(--surface, #fff);
}

.cfg-app-institute-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 6px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text, #0f172a);
}

.cfg-app-institute-option:hover {
    background: var(--surface-soft, #f8fafc);
}

.cfg-app-institute-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--primary, #2563eb);
}

.cfg-app-institute-multi {
    min-height: 7.5rem;
    width: 100%;
}

.config-section-header p {
    margin: 0;
    color: var(--text-muted);
}

.config-section-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.config-content-app-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.config-content-app-filter-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 2px;
}

/* Users header: title on top, toolbar full width below (avoids horizontal overflow on laptops). */
.config-section-header:has(.config-users-toolbar) {
    flex-direction: column;
    align-items: stretch;
}

.config-section-header .action-bar.config-users-toolbar {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
}

.config-section-header .action-bar.config-users-toolbar > * {
    min-height: 44px;
    flex: 0 1 auto;
    max-width: 100%;
}

.config-section-header .action-bar.config-users-toolbar .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #ffffff;
    flex: 1 1 240px;
    min-width: min(240px, 100%);
    max-width: 100%;
}

.config-section-header .action-bar.config-users-toolbar .search-box i {
    color: #64748b;
    font-size: 0.9rem;
}

.config-section-header .action-bar.config-users-toolbar .search-box input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #0f172a;
    font-size: 0.95rem;
}

.config-section-header .action-bar.config-users-toolbar .search-box input::placeholder {
    color: #94a3b8;
}

.config-section-header .action-bar.config-users-toolbar .btn,
.config-section-header .action-bar.config-users-toolbar .btn-primary,
.config-section-header .action-bar.config-users-toolbar .btn-secondary {
    height: 44px;
    border-radius: 12px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.config-section-header .action-bar.config-users-toolbar .head-school-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #ffffff;
    flex: 0 0 auto;
    width: auto;
    max-width: min(280px, 100%);
    box-sizing: border-box;
}

.config-section-header .action-bar.config-users-toolbar .head-school-filter select {
    min-width: 140px;
    width: auto;
    max-width: 220px;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #334155;
    flex: 0 1 auto;
}

@media (max-width: 680px) {
    .config-section-header .action-bar.config-users-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .config-section-header .action-bar.config-users-toolbar .btn {
        width: 100%;
        justify-content: center;
    }

    .config-section-header .action-bar.config-users-toolbar .head-school-filter {
        width: auto;
        max-width: 100%;
        align-self: flex-start;
    }
}

.config-placeholder {
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 18px;
    background: #f8fafc;
}

.insight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    color: var(--text-main);
    font-weight: 700;
}

.insight-item strong {
    font-size: 1.15rem;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

th,
td {
    padding: 18px 20px;
}

th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

td {
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

/* Match header alignment to cells (UA defaults center `th`, left `td` — causes skew in Config etc.). */
.modern-table th,
.modern-table td {
    text-align: left;
    vertical-align: middle;
}

.modern-table td.action-cells {
    white-space: nowrap;
}

.modern-table td.theme-task-capsules-cell {
    vertical-align: middle;
    min-width: 140px;
}

/* Project titles: fit fully in viewport — no horizontal scroll */
.topic-themes-card,
.topic-themes-table-wrap {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden !important;
}

.topic-themes-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
}

.topic-themes-table col.topic-themes-col-title {
    width: 18%;
}

.topic-themes-table col.topic-themes-col-grade {
    width: 8%;
}

.topic-themes-table col.topic-themes-col-tasks {
    width: 52%;
}

.topic-themes-table col.topic-themes-col-actions {
    width: 22%;
}

.topic-themes-table th,
.topic-themes-table td {
    overflow: hidden !important;
    vertical-align: middle;
}

.topic-themes-title-col {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.topic-themes-grade-col {
    white-space: nowrap;
}

.topic-themes-tasks-col,
.topic-themes-table .theme-task-capsules-cell {
    min-width: 0 !important;
    max-width: 100%;
}

.topic-themes-table .theme-task-capsules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
}

.topic-themes-table .theme-task-capsule {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.topic-themes-actions-col {
    width: 22%;
    max-width: 22%;
}

.topic-themes-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
}

.topic-themes-actions .btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
}

.topic-themes-actions .btn-icon {
    flex: 0 0 auto;
}

.theme-task-capsules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.theme-task-capsule {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: var(--primary-soft, #dbeafe);
    color: var(--primary, #2563eb);
    border: 1px solid rgba(37, 99, 235, 0.22);
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

button.theme-task-capsule {
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

button.theme-task-capsule:hover {
    filter: brightness(0.97);
    border-color: rgba(37, 99, 235, 0.42);
}

button.theme-task-capsule:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.theme-task-capsule--readonly {
    cursor: default;
}

.theme-task-capsules-empty {
    font-size: 0.84rem;
}

.content-label-mr {
    display: block;
    margin-top: 2px;
    font-size: 0.88em;
    font-weight: 500;
    color: #5b21b6;
    line-height: 1.35;
}

.content-instructions-mr {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #c4b5fd;
}

.content-instructions-mr h4 {
    margin: 0 0 8px;
    font-size: 0.92rem;
    color: #5b21b6;
}

.mentor-schools-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 280px;
}

.mentor-schools-cell .user-school {
    flex: 1 1 auto;
    min-width: 0;
}

button.mentor-schools-allot-capsule {
    flex: 0 0 auto;
    font-size: 0.72rem;
    padding: 3px 10px;
}

.mentor-school-allotment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1400;
}

.mentor-school-allotment-overlay.open {
    display: flex;
}

.mentor-school-allotment-sheet {
    width: min(100%, 760px);
    max-height: min(88vh, 820px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    padding: 22px 24px 20px;
}

#mentor-school-allotment-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.mentor-school-allotment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.mentor-school-allotment-header h3 {
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.mentor-school-allotment-sub {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.mentor-school-allotment-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 72px;
    overflow-y: auto;
    margin-bottom: 12px;
    flex-shrink: 0;
    padding: 2px 0;
}

.mentor-school-allotment-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid rgba(37, 99, 235, 0.2);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mentor-school-allotment-chip--empty {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
    font-weight: 500;
}

.mentor-school-allotment-search-wrap {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.mentor-school-allotment-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    flex-shrink: 0;
    min-height: 0;
}

.mentor-school-allotment-list {
    flex: 1;
    min-height: 200px;
    max-height: min(52vh, 480px);
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.institute-school-picker-list {
    min-height: 120px;
    max-height: min(36vh, 280px);
}

.mentor-school-allotment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #e8eef4;
    cursor: pointer;
    margin: 0;
    background: #fff;
    transition: background 0.15s ease;
}

.mentor-school-allotment-row:last-child {
    border-bottom: none;
}

.mentor-school-allotment-row:hover {
    background: #f8fafc;
}

.mentor-school-allotment-row.is-selected {
    background: #eff6ff;
}

.mentor-school-allotment-row.is-readonly {
    cursor: default;
}

.mentor-school-allotment-row-name {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--text-main, #0f172a);
}

.mentor-school-allotment-row input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.mentor-school-allotment-row.is-readonly input {
    cursor: default;
}

.mentor-school-allotment-empty {
    margin: 0;
    padding: 24px 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.mentor-school-allotment-footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8eef4;
    flex-shrink: 0;
}

.progress-bar {
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    height: 12px;
}

.progress {
    height: 100%;
    border-radius: 999px;
}

.progress.blue { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.progress.green { background: linear-gradient(90deg, #16a34a, #4ade80); }
.progress.yellow { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-pill.active { background: #dcfce7; color: #166534; }
.status-pill.deactivated { background: #fee2e2; color: #991b1b; }
.status-pill.pending { background: #fef3c7; color: #92400e; }

.certificate-download-table th:last-child,
.certificate-download-table td.action-cells {
    white-space: nowrap;
}

.certificate-download-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.certificate-result-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.certificate-result-filter__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.certificate-result-filter select {
    min-width: 160px;
    padding: 8px 10px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
}

.certificate-download-pagination {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.btn-filter {
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    border: 1px solid transparent;
    background: #f8fafc;
    color: var(--text-main);
}

.btn-filter.active,
.btn-filter:hover {
    background: white;
    border-color: rgba(37, 99, 235, 0.16);
    color: var(--primary);
}

.btn-mod,
.btn-text-edit,
.btn-text-delete,
.btn-save,
.btn-cancel,
.btn-edit-task,
.btn-icon {
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    min-width: 88px;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn-mod.delete,
.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-mod.hide,
.btn-cancel,
.btn-outline {
    background: #f8fafc;
    color: var(--text-main);
    border-color: #e2e8f0;
}

.btn-mod.approve {
    background: var(--success);
    color: white;
}

.btn-mod.reject {
    background: var(--danger);
    color: white;
}

/* Pending Approval Section Styles */
.pending-section {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 32px;
    border: 2px solid #fef3c7;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.pending-header {
    margin-bottom: 22px;
    border-bottom: 2px solid #fef3c7;
    padding-bottom: 16px;
}

.pending-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pending-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 22px;
}

.pending-post-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef9e7 100%);
    border: 2px solid #fcd34d;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pending-post-card::before {
    content: '⏳';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 3rem;
    opacity: 0.1;
}

.pending-post-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.15);
}

.pending-post-card .post-tag {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.pending-post-card .status-label.pending {
    background: #fde68a;
    color: #78350f;
    font-weight: 700;
}

.pending-post-card .post-body h3 {
    color: #78350f;
}

.pending-post-card .post-body p {
    color: #92400e;
}

.content-section {
    margin-bottom: 32px;
}

.content-section h3 {
    margin: 0 0 22px 0;
    font-size: 1.4rem;
    color: var(--text-main);
    padding: 0 0 16px 0;
    border-bottom: 2px solid #e2e8f0;
}

@media (max-width: 1024px) {
    .content-grid,
    .pending-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-grid,
    .pending-grid {
        grid-template-columns: 1fr;
    }
    
    .pending-section {
        padding: 20px;
    }
    
    .pending-post-card {
        padding: 18px;
    }
}

.btn-save,
.btn-success {
    background: var(--success);
    color: white;
}

.btn-text-edit,
.btn-action {
    background: #2563eb;
    color: white;
}

.btn-icon {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-main);
    padding: 0.75rem;
}

.btn-icon.edit { color: #2563eb; }
.btn-icon.delete { color: var(--danger); }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 24px;
    width: min(100%, 520px);
    box-shadow: var(--shadow);
}

textarea {
    width: 100%;
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #dbeafe;
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        width: 100%;
    }
    .main-content {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 84px);
    }
    .top-nav {
        grid-column: 1 / -1;
    }
    .page-header,
    .viewport-inner,
    .dashboard-right-panel {
        padding-left: 26px;
        padding-right: 26px;
    }
}

@media (max-width: 720px) {
    .login-card {
        padding: 32px 24px;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-header-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }
    .clock-badge {
        min-width: 0;
        flex: 1;
        text-align: center;
    }
    .sidebar-menu {
        gap: 6px;
    }
    .menu-item {
        padding: 14px 16px;
    }
    .viewport-inner {
        padding: 24px;
    }
}

/* Competitions (local module) */
.module-header-desc {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 640px;
}

.competition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.competition-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 24px 26px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.competition-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.competition-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.competition-badge--active {
    background: rgba(22, 163, 74, 0.12);
    color: var(--success);
}

.competition-track {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-muted);
}

.competition-track--nmo {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.competition-track--kb,
.competition-track--kv {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

/* Dynamic apps from Config → Apps (fallback badge color) */
.competition-track[class*="competition-track--"]:not(.competition-track--nmo):not(.competition-track--kv):not(.competition-track--kb):not(.competition-track--mcq):not(.competition-track--group):not(.competition-track--presentation) {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.config-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    vertical-align: middle;
}

.config-badge--warn {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.config-cmodal-hint {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Student Activity: level-kind badges on level picker cards */
.competition-track--mcq {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.competition-track--group {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.competition-track--presentation {
    background: rgba(139, 92, 246, 0.12);
    color: #6d28d9;
}

.competition-card--level {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.competition-card--level:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.text-muted {
    color: var(--text-muted);
}

.competition-card-title {
    margin: 8px 0 0;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.competition-card-meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.competition-card-meta i {
    width: 1.1em;
    color: var(--primary);
    opacity: 0.85;
}

.competition-card--disabled {
    opacity: 0.9;
    background: #f8fafc;
}

.competition-card--disabled .competition-card-meta i {
    color: var(--text-muted);
}

.competition-badge--disabled {
    background: rgba(100, 116, 139, 0.2);
    color: #475569;
}

.competition-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.competition-action-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    justify-content: center;
}

.track-stats-grid {
    margin-bottom: 18px;
}

.track-stat-btn {
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
}

.track-stat-btn .stat-card {
    width: 100%;
}

.track-stat-btn .stat-card:hover {
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.1);
}

.track-page-layout {
    display: block;
}

.track-main-column {
    min-width: 0;
}

.track-schools-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1200;
}

.track-schools-overlay.open {
    display: flex;
}

.track-schools-sheet {
    width: min(100%, 680px);
    max-height: min(80vh, 760px);
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
    padding: 24px;
}

.track-schools-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.track-schools-sheet-header h3 {
    margin: 0;
}

.student-activity-root {
    display: grid;
    gap: 18px;
}

.student-activity-view-only-note {
    margin: 8px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f0f4ff;
    color: #3b4a6b;
    font-size: 0.92rem;
}

.student-activity-section h3 {
    margin: 0 0 10px;
    font-size: 1.9rem;
}

.sa-attempts-collapse-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin: 0 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.sa-attempts-collapse-toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.sa-attempts-collapse-toggle--open {
    margin-bottom: 10px;
    background: #fff;
}

.sa-attempts-collapse-toggle__left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.sa-attempts-collapse-toggle__left > i {
    margin-top: 3px;
    color: #64748b;
    width: 1em;
    text-align: center;
}

.sa-attempts-collapse-toggle__left strong {
    display: block;
    font-size: 1.05rem;
}

.sa-attempts-collapse-toggle__hint {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
}

.sa-attempts-collapse-toggle__action {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
}

.student-activity-attempts .attempts-data-card {
    margin-top: 0;
}

.attempts-data-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.attempts-data-toolbar .log-search-wrapper {
    flex: 1 1 220px;
    margin-bottom: 0;
}

.attempts-data-download-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.attempts-data-school-filter {
    flex: 0 1 240px;
    min-width: 180px;
    margin: 0;
}

.attempts-data-school-filter select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    background: #fff;
}

.attempts-data-table th {
    white-space: nowrap;
    vertical-align: bottom;
}

.attempts-data-status-th {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 108px;
}

.attempts-data-status-th-label {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.2;
}

.attempts-data-status-filter {
    width: 100%;
    max-width: 120px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #fff;
    color: #334155;
}

.attempts-data-table-wrap {
    overflow: visible;
}

.attempt-pass-summary-cell {
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: nowrap;
}

.attempt-pass-summary-line {
    display: inline-block;
}

.mcq-attempts-summary-row {
    cursor: pointer;
}

.mcq-attempts-summary-row:hover td {
    background: rgba(37, 99, 235, 0.04);
}

.mcq-attempts-details-cell {
    white-space: nowrap;
}

.student-activity-mcq-attempts-modal-content {
    width: min(720px, 96vw);
    max-height: min(85vh, 720px);
    overflow: auto;
}

.attempts-data-pagination {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.attempts-data-pagination-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.attempts-data-pagination-summary {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.attempts-data-pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.attempts-data-page-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.attempts-data-page-btn {
    min-width: 2rem;
    height: 2rem;
    padding: 0 8px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.attempts-data-page-btn:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--primary);
}

.attempts-data-page-btn.is-active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.45);
    color: var(--primary);
}

.attempts-data-page-ellipsis {
    padding: 0 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.student-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 12px;
}

.sa-l2-funnel-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sa-l2-funnel-grid {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
}

.sa-l2-funnel-errors-wrap {
    display: flex;
    justify-content: flex-end;
}

.sa-l2-funnel-errors-btn {
    border-color: #f59e0b;
    color: #b45309;
    background: #fffbeb;
}

.sa-l2-funnel-errors-btn:hover {
    background: #fef3c7;
    border-color: #d97706;
    color: #92400e;
}

.sa-funnel-counts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0 8px;
}

.sa-funnel-count-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.sa-funnel-count-value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
}

.sa-funnel-count-line--teams .sa-funnel-count-value {
    font-size: 1.15rem;
    font-weight: 800;
}

.sa-funnel-count-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sa-l2-unclassified-modal-content {
    width: min(100%, 860px);
    max-height: min(88vh, 720px);
    overflow: auto;
}

.sa-l2-unclassified-actions {
    white-space: nowrap;
    width: 1%;
}

.sa-l2-unclassified-delete {
    color: #b91c1c;
    border-color: #fecaca;
}

.student-activity-quick h3 {
    font-size: 1.7rem;
}

.student-activity-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
}

.student-activity-quick-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.student-activity-quick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.student-activity-quick-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.student-activity-quick-badge {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 16px;
}

.student-activity-quick-card--purple .student-activity-quick-badge {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.student-activity-quick-card--green .student-activity-quick-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.student-activity-quick-card--orange .student-activity-quick-badge {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

.student-activity-quick-card h4 {
    margin: 0 0 4px;
    font-size: 1.08rem;
}

.student-activity-quick-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.35;
}

.student-activity-quick-btn {
    align-self: flex-end;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.student-activity-quick-btn--purple {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.student-activity-quick-btn--green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.student-activity-quick-btn--orange {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
}

.student-activity-quick-card--blue .student-activity-quick-badge {
    background: rgba(14, 165, 233, 0.14);
    color: #0284c7;
}

.student-activity-quick-btn--blue {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
}

.student-activity-quick-card--slate .student-activity-quick-badge {
    background: rgba(71, 85, 105, 0.14);
    color: #334155;
}

.student-activity-quick-btn--slate {
    background: linear-gradient(135deg, #64748b, #334155);
    color: white;
}

.reports-submission-answer {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    white-space: pre-wrap;
    line-height: 1.45;
}

.reports-fill-card {
    padding: 20px;
}

.reports-attachments {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.reports-attachments-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 650;
    color: #0f172a;
}

.reports-attachments-empty {
    margin: 0;
    font-size: 0.9rem;
}

.reports-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.reports-attachment-card {
    margin: 0;
}

.reports-attachment-card--image {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.reports-attachment-img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #e2e8f0;
}

.reports-attachment-caption {
    padding: 8px 10px;
    font-size: 0.82rem;
    word-break: break-word;
}

.reports-attachment-caption a {
    color: #0369a1;
    text-decoration: none;
}

.reports-attachment-caption a:hover {
    text-decoration: underline;
}

.reports-attachment-card--file {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.reports-attachment-path {
    font-size: 0.75rem;
    word-break: break-all;
}

.reports-fill-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #94a3b8;
    border-radius: 0;
    padding: 8px 0;
    font: inherit;
    background: transparent;
}

.reports-fill-input:focus {
    outline: none;
    border-bottom-color: #0284c7;
}

textarea.reports-fill-input {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    resize: vertical;
}

.reports-fill-status {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.reports-fill-status--done {
    color: #15803d;
}

@media (max-width: 980px) {
    .student-activity-quick-grid {
        grid-template-columns: 1fr;
    }
}

.student-activity-card {
    border-radius: 12px;
    padding: 14px 16px 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.student-activity-card--clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.student-activity-card--clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
    border-color: #cbd5e1;
}

.student-activity-card--clickable:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.student-activity-metric-list-modal-content {
    width: min(100%, 920px);
    max-height: min(90vh, 800px);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.student-activity-metric-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.student-activity-metric-list-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.student-activity-metric-list-header h3 {
    margin: 0;
}

.student-activity-metric-list-count {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.student-activity-metric-list-tablewrap {
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.student-activity-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    font-size: 11px;
}

.student-activity-card h2 {
    margin: 2px 0 4px;
    font-size: 1.95rem;
    line-height: 1;
}

.student-activity-card h4 {
    margin: 0 0 4px;
    font-size: 1.03rem;
}

.student-activity-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.student-activity-card--green {
    background: #f3faf5;
    border-color: #d9efe0;
}

.student-activity-card--green .student-activity-icon,
.student-activity-card--green h2 {
    color: #16a34a;
    background: #dff5e7;
}

.student-activity-card--green .sa-funnel-count-value {
    color: #16a34a;
}

.student-activity-card--blue {
    background: #f3f9fd;
    border-color: #dbeaf3;
}

.student-activity-card--blue .student-activity-icon,
.student-activity-card--blue h2 {
    color: #0891b2;
    background: #d9f2f6;
}

.student-activity-card--blue .sa-funnel-count-value {
    color: #0891b2;
}

.student-activity-card--yellow {
    background: #fffaf0;
    border-color: #f6ead1;
}

.student-activity-card--yellow .student-activity-icon,
.student-activity-card--yellow h2 {
    color: #f59e0b;
    background: #fef3c7;
}

.student-activity-card--yellow .sa-funnel-count-value {
    color: #f59e0b;
}

.student-activity-card--orange {
    background: #fff8ef;
    border-color: #f7e6cf;
}

.student-activity-card--orange .student-activity-icon,
.student-activity-card--orange h2 {
    color: #f97316;
    background: #fde8d1;
}

.student-activity-card--orange .sa-funnel-count-value {
    color: #f97316;
}

.student-activity-card--red {
    background: #fff6f6;
    border-color: #f4dddd;
}

.student-activity-card--red .student-activity-icon,
.student-activity-card--red h2 {
    color: #ef4444;
    background: #fee2e2;
}

.student-activity-card--red .sa-funnel-count-value {
    color: #ef4444;
}

.student-activity-card--slate {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.student-activity-card--slate .student-activity-icon,
.student-activity-card--slate h2 {
    color: #64748b;
    background: #e2e8f0;
}

.student-activity-card--slate .sa-funnel-count-value {
    color: #64748b;
}

.student-activity-card--teal {
    background: #f0fdfa;
    border-color: #ccfbf1;
}

.student-activity-card--teal .student-activity-icon,
.student-activity-card--teal h2 {
    color: #0d9488;
    background: #ccfbf1;
}

.student-activity-card--teal .sa-funnel-count-value {
    color: #0d9488;
}

.student-activity-card--purple {
    background: #faf5ff;
    border-color: #e9d5ff;
}

.student-activity-card--purple .student-activity-icon,
.student-activity-card--purple h2 {
    color: #7c3aed;
    background: #ede9fe;
}

.student-activity-card--purple .sa-funnel-count-value {
    color: #7c3aed;
}

.manage-groups-screen {
    display: grid;
    gap: 16px;
}

.manage-groups-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #065f46;
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
}

.manage-groups-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.manage-groups-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.manage-groups-approve-modal {
    width: min(100%, 640px);
    max-height: min(85vh, 720px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.manage-groups-approve-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.manage-groups-approve-list {
    display: grid;
    gap: 10px;
    overflow-y: auto;
    max-height: min(52vh, 480px);
    padding-right: 4px;
}

.manage-groups-approve-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.manage-groups-approve-row-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.manage-groups-approve-row-main strong {
    font-size: 0.98rem;
}

.manage-groups-approve-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

.manage-groups-rag {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px;
    overflow: hidden;
}

.manage-groups-rag-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.manage-groups-rag-btn:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.65);
}

.manage-groups-rag-btn.is-active.manage-groups-rag-btn--allocated {
    background: #bbf7d0;
    color: #14532d;
    box-shadow: 0 1px 4px rgba(22, 101, 52, 0.2);
}

.manage-groups-rag-btn.is-active.manage-groups-rag-btn--not_allocated {
    background: #fde68a;
    color: #78350f;
    box-shadow: 0 1px 4px rgba(180, 83, 9, 0.2);
}

.manage-groups-rag-btn.is-active.manage-groups-rag-btn--all {
    background: #e2e8f0;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.manage-groups-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
}

.manage-groups-search input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #f59e0b;
    background: #fff7ed;
    padding: 12px 14px;
}

.manage-groups-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 14px;
}

.manage-groups-pagination {
    margin-top: 16px;
}

.manage-group-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.manage-group-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    background: #4b5563;
    color: #fff;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.manage-group-card p {
    margin: 0 0 8px;
    line-height: 1.25;
}

.manage-group-root {
    display: grid;
    gap: 18px;
}

.manage-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
}

.manage-group-grid--three {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.manage-group-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.manage-group-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    margin-bottom: 10px;
}

.manage-group-card h3 {
    margin: 0 0 6px;
}

.manage-group-card-allot {
    margin-top: 12px;
    width: 100%;
    border: 1px solid transparent;
    font-weight: 600;
}

.manage-group-card-allot--allot {
    background: #fecaca;
    color: #991b1b;
    border-color: #fca5a5;
}

.manage-group-card-allot--allot:hover {
    background: #fca5a5;
    color: #7f1d1d;
    border-color: #f87171;
}

.manage-group-card-allot--change {
    background: #bbf7d0;
    color: #166534;
    border-color: #86efac;
}

.manage-group-card-allot--change:hover {
    background: #86efac;
    color: #14532d;
    border-color: #4ade80;
}

.manage-group-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.manage-group-card-edit {
    flex: 1 1 auto;
    min-width: 120px;
}

.manage-group-card-delete {
    flex: 1 1 auto;
    min-width: 120px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.manage-group-card-delete:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

.team-edit-modal h3 {
    margin-top: 0;
}

.team-edit-members-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.team-edit-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.92rem;
}

.team-edit-member-row:last-child {
    border-bottom: none;
}

.team-edit-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.team-edit-leader-tag {
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

.team-edit-empty {
    padding: 12px;
    color: var(--text-muted);
}

.team-edit-picker-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
}

.team-edit-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 6px;
    border-bottom: 1px solid #f1f5f9;
}

.team-edit-picker-row:last-child {
    border-bottom: none;
}

.team-edit-picker-row small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.manage-group-awaiting {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.manage-group-card p {
    margin: 0 0 12px;
    color: var(--text-muted);
}

.manage-group-placeholder-box {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.92rem;
}

.manage-group-card--clickable {
    cursor: pointer;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.manage-group-card--clickable:hover,
.manage-group-card--clickable:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12);
    outline: none;
}

.manage-group-card-icon--teams {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.manage-group-card-badge {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #059669;
}

.manage-group-card-badge i {
    margin-right: 6px;
}

.manage-group-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2563eb;
}

.my-teams-root {
    gap: 14px;
}

.my-teams-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-teams-back {
    align-self: flex-start;
}

.my-teams-header {
    margin: 0;
}

.my-teams-header h1 {
    margin: 0 0 4px;
}

.my-teams-search-wrap {
    margin-bottom: 4px;
}

.my-teams-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.my-teams-toolbar .my-teams-search-wrap {
    flex: 1 1 220px;
    margin-bottom: 0;
}

.my-teams-school-filter {
    flex: 0 1 240px;
    min-width: 180px;
    margin: 0;
}

.my-teams-school-filter select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    background: #fff;
}

.meet-setup-modal textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
    min-height: 72px;
}

.my-teams-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(68vh, 640px);
    overflow-y: auto;
    padding-right: 4px;
}

.my-teams-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
}

.my-teams-empty i {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #94a3b8;
}

.my-teams-empty h3 {
    margin: 0 0 6px;
    color: #334155;
}

.my-teams-empty p {
    margin: 0;
}

.my-teams-row.my-teams-row--clickable {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.my-teams-row.my-teams-row--clickable:hover,
.my-teams-row.my-teams-row--clickable:focus-visible {
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.my-teams-row-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.my-teams-row-title {
    font-size: 1rem;
    color: #0f172a;
}

.my-teams-row-meta {
    font-size: 0.82rem;
    color: #64748b;
}

.my-teams-row-summary {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-teams-row-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.my-teams-meet-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.my-teams-announce-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #f5c27a;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.my-teams-announce-btn:hover,
.my-teams-announce-btn:focus-visible {
    border-color: #fb923c;
    background: #ffedd5;
    color: #c2410c;
    outline: none;
}

.my-teams-meet-btn:hover,
.my-teams-meet-btn:focus-visible {
    border-color: #60a5fa;
    background: #eff6ff;
    color: #1d4ed8;
    outline: none;
}

.my-teams-eval-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.my-teams-eval-btn:hover,
.my-teams-eval-btn:focus-visible {
    border-color: #4ade80;
    background: #dcfce7;
    color: #14532d;
    outline: none;
}

.my-teams-remark-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #c4b5fd;
    background: #f5f3ff;
    color: #5b21b6;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.my-teams-remark-btn:hover,
.my-teams-remark-btn:focus-visible {
    border-color: #a78bfa;
    background: #ede9fe;
    color: #4c1d95;
    outline: none;
}

.team-remark-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.team-remark-badge--compact {
    font-size: 0.72rem;
    padding: 3px 8px;
}

.team-remark-badge--success {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.team-remark-badge--primary {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.team-remark-badge--teal {
    background: #f0fdfa;
    color: #0f766e;
    border-color: #99f6e4;
}

.team-remark-badge--warn {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.team-remark-badge--orange {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.team-remark-badge--danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.team-remark-badge--neutral {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.team-remark-display {
    margin-top: 10px;
}

.team-remark-comment {
    margin: 8px 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #475569;
    white-space: pre-wrap;
}

.remark-comment-field {
    margin-top: 16px;
}

.remark-comment-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.remark-comment-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 72px;
}

.remark-comment-input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.team-remark-action-btn {
    border-color: #c4b5fd;
    color: #5b21b6;
}

.team-remark-action-btn:hover {
    background: #f5f3ff;
    border-color: #a78bfa;
    color: #4c1d95;
}

.remark-modal {
    width: min(100%, 640px);
}

.remark-modal-subtitle {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.9rem;
}

.remark-modal-current {
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: #334155;
}

.remark-modal-current--empty {
    color: #94a3b8;
}

.remark-modal-hint {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 0.85rem;
}

.remark-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.remark-picker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.remark-picker-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.remark-picker-card--selected {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.remark-picker-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 2px;
}

.remark-picker-card-label {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1e293b;
}

.remark-picker-card-hint {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
}

.remark-picker-card--success .remark-picker-card-icon {
    background: #d1fae5;
    color: #047857;
}
.remark-picker-card--success.remark-picker-card--selected {
    border-color: #34d399;
    background: #ecfdf5;
}

.remark-picker-card--primary .remark-picker-card-icon {
    background: #dbeafe;
    color: #1d4ed8;
}
.remark-picker-card--primary.remark-picker-card--selected {
    border-color: #60a5fa;
    background: #eff6ff;
}

.remark-picker-card--teal .remark-picker-card-icon {
    background: #ccfbf1;
    color: #0f766e;
}
.remark-picker-card--teal.remark-picker-card--selected {
    border-color: #2dd4bf;
    background: #f0fdfa;
}

.remark-picker-card--warn .remark-picker-card-icon {
    background: #fef3c7;
    color: #b45309;
}
.remark-picker-card--warn.remark-picker-card--selected {
    border-color: #fbbf24;
    background: #fffbeb;
}

.remark-picker-card--orange .remark-picker-card-icon {
    background: #ffedd5;
    color: #c2410c;
}
.remark-picker-card--orange.remark-picker-card--selected {
    border-color: #fb923c;
    background: #fff7ed;
}

.remark-picker-card--danger .remark-picker-card-icon {
    background: #fee2e2;
    color: #b91c1c;
}
.remark-picker-card--danger.remark-picker-card--selected {
    border-color: #f87171;
    background: #fef2f2;
}

.remark-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.my-teams-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-teams-upload-capsule {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.my-teams-upload-capsule--yes {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.my-teams-upload-capsule--no {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.my-teams-upload-capsule--pending {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    min-width: 28px;
    justify-content: center;
}

.my-teams-chevron {
    color: #94a3b8;
}

.my-teams-subnav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
}

.my-teams-subnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.my-teams-subnav-btn:hover,
.my-teams-subnav-btn:focus-visible {
    color: #334155;
    background: #fff;
    outline: none;
}

.my-teams-subnav-btn.is-active {
    background: #fff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.mentor-cal-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mentor-cal-overlap-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.mentor-cal-overlap-banner i {
    margin-top: 2px;
    flex-shrink: 0;
}

.mentor-cal-overlap-banner strong {
    display: block;
    margin-bottom: 4px;
}

.mentor-cal-overlap-banner p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #b91c1c;
}

.mentor-cal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mentor-cal-month-label {
    margin: 0;
    flex: 1;
    min-width: 160px;
    text-align: center;
    font-size: 1.05rem;
    color: #0f172a;
}

.mentor-cal-loading {
    margin: 0;
    font-size: 0.88rem;
}

.mentor-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    text-align: center;
}

.mentor-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.mentor-cal-cell {
    min-height: 108px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mentor-cal-cell--empty {
    min-height: 0;
    padding: 0;
    border-color: transparent;
    background: transparent;
}

.mentor-cal-cell--today {
    border-color: #93c5fd;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.mentor-cal-cell--has-events {
    background: #f8fafc;
}

.mentor-cal-day-num {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.mentor-cal-cell--today .mentor-cal-day-num {
    color: #1d4ed8;
}

.mentor-cal-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    overflow: hidden;
}

.mentor-cal-event {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: 100%;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.mentor-cal-event:hover,
.mentor-cal-event:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.mentor-cal-event--online {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.mentor-cal-event--offline {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d;
}

.mentor-cal-event--overlap {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.mentor-cal-event--disabled {
    opacity: 0.55;
}

.mentor-cal-event-time {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

.mentor-cal-event-team {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.mentor-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.78rem;
    color: #64748b;
}

.mentor-cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mentor-cal-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.mentor-cal-legend-dot--online {
    background: #3b82f6;
}

.mentor-cal-legend-dot--offline {
    background: #22c55e;
}

.mentor-cal-legend-dot--overlap {
    background: #ef4444;
}

.mentor-cal-agenda h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #0f172a;
}

.mentor-cal-agenda-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(36vh, 320px);
    overflow-y: auto;
}

.mentor-cal-agenda-item {
    display: grid;
    grid-template-columns: 108px 108px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.84rem;
}

.mentor-cal-agenda-item--overlap {
    border-color: #fca5a5;
    background: #fef2f2;
}

.mentor-cal-agenda-item--disabled {
    opacity: 0.6;
}

.mentor-cal-agenda-date,
.mentor-cal-agenda-time {
    color: #64748b;
    font-size: 0.8rem;
}

.mentor-cal-agenda-mode {
    font-size: 0.76rem;
    color: #94a3b8;
    white-space: nowrap;
}

.mentor-cal-agenda-empty {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

@media (max-width: 900px) {
    .mentor-cal-cell {
        min-height: 88px;
    }

    .mentor-cal-agenda-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 640px) {
    .mentor-cal-grid,
    .mentor-cal-weekdays {
        gap: 4px;
    }

    .mentor-cal-cell {
        min-height: 72px;
        padding: 6px;
    }

    .mentor-cal-event-team {
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}

.meet-setup-modal {
    width: min(92vw, 600px);
}

.meet-setup-subtitle {
    margin: 0 0 14px;
    color: #64748b;
}

.meet-setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.meet-setup-grid > .input-group:first-child {
    grid-column: 1 / -1;
}

.meet-time-picker {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 48px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.meet-time-picker:focus-within {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.meet-time-segment {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border-right: 1px solid #e2e8f0;
    background: #fff;
    transition: background-color 0.15s ease;
}

.meet-time-segment:hover {
    background: #f8fafc;
}

.meet-time-segment:focus-within {
    background: rgba(37, 99, 235, 0.04);
}

.meet-time-segment--hour {
    flex: 1 1 28%;
}

.meet-time-segment--minute {
    flex: 1 1 32%;
    border-right: none;
}

.meet-time-picker .meet-time-input {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-main);
    font: inherit;
    text-align: center;
    -moz-appearance: textfield;
}

.meet-time-picker .meet-time-input::-webkit-outer-spin-button,
.meet-time-picker .meet-time-input::-webkit-inner-spin-button {
    opacity: 1;
    margin: 0 2px;
}

.meet-time-picker .meet-time-input:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.meet-time-picker .meet-time-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.meet-time-picker .meet-time-select {
    width: auto;
    flex: 0 0 auto;
    min-width: 4.8rem;
    margin: 0;
    padding: 12px 10px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: var(--text-main);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.meet-time-picker .meet-time-select:focus {
    border: none;
    outline: none;
    box-shadow: none;
    background-color: rgba(37, 99, 235, 0.04);
}

.meet-time-sep {
    flex: 0 0 auto;
    align-self: center;
    padding: 0 2px;
    margin: 0 -2px;
    color: #64748b;
    font-weight: 700;
    line-height: 1;
    user-select: none;
    z-index: 1;
}

.meet-setup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.meet-disable-btn {
    border-color: #fecaca;
    color: #b91c1c;
}

.meet-disable-btn:hover:not(:disabled) {
    border-color: #f87171;
    background: #fef2f2;
}

.meet-enable-btn {
    border-color: #bbf7d0;
    color: #166534;
}

.meet-enable-btn:hover:not(:disabled) {
    border-color: #4ade80;
    background: #f0fdf4;
}

@media (max-width: 760px) {
    .meet-setup-grid {
        grid-template-columns: 1fr;
    }
}

.team-detail-root {
    gap: 14px;
}

.team-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.team-detail-hero h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
}

.team-detail-hero-meta {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 0.92rem;
}

.team-detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin: 0 0 22px;
}

.team-detail-facts dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin: 0 0 4px;
}

.team-detail-facts dd {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.45;
}

.team-eval-section {
    margin-top: 8px;
    padding: 20px 0;
    border-top: 1px solid #e8eef4;
}

.team-eval-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-eval-hint,
.team-eval-meta {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: #64748b;
}

.team-eval-table-wrap {
    overflow-x: auto;
    margin-bottom: 14px;
}

.team-eval-table th,
.team-eval-table td {
    vertical-align: middle;
}

.team-eval-criteria {
    min-width: 200px;
}

.team-eval-marks-col {
    width: 72px;
    text-align: center;
}

.team-eval-input-col {
    width: 120px;
}

.team-eval-mark-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.team-eval-total-row td,
.team-eval-grade-row td {
    background: #f8fafc;
}

.team-eval-grade-value {
    color: #dc2626;
    font-size: 1.1rem;
}

.team-eval-scale-details {
    margin-bottom: 16px;
    font-size: 0.88rem;
}

.team-eval-scale-details summary {
    cursor: pointer;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-eval-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.manage-group-eval-grade {
    font-weight: 700;
    color: #059669;
}

.team-detail-uploads {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #e8eef4;
}

.team-detail-uploads-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.team-detail-uploads-title {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-detail-uploads-hint {
    margin: -8px 0 16px;
    font-size: 0.85rem;
    color: #64748b;
}

.team-detail-uploads--kv .team-uploads-group--kv-topic {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.team-detail-uploads--kv .team-uploads-group--kv-topic:last-of-type {
    border-bottom: none;
    margin-bottom: 1.25rem;
}

.team-detail-uploads-hint--kv {
    margin-top: 0.25rem;
}

.upload-queue-panel {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.users-import-queue-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(360px, calc(100vw - 40px));
    max-height: min(60vh, 420px);
    overflow-y: auto;
    z-index: 1400;
}

.users-import-queue-panel:empty {
    display: none;
}

.users-import-queue-panel .upload-queue-panel {
    margin: 0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    background: #ffffff;
}

.upload-queue-panel-close {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.upload-queue-panel-close:hover {
    color: #0f172a;
}

.upload-queue-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: #0f172a;
}

.upload-queue-panel-count {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.upload-queue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-queue-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 0.86rem;
}

.upload-queue-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f172a;
    font-weight: 600;
}

.upload-queue-item-status {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.upload-queue-item-error {
    grid-column: 1 / -1;
    color: #b91c1c;
    font-size: 0.78rem;
}

.upload-queue-item--queued .upload-queue-item-status {
    color: #64748b;
}

.upload-queue-item--uploading .upload-queue-item-status {
    color: #2563eb;
}

.upload-queue-item--processing .upload-queue-item-status {
    color: #d97706;
}

.upload-queue-item--done .upload-queue-item-status {
    color: #15803d;
}

.upload-queue-item--failed .upload-queue-item-status {
    color: #b91c1c;
}

.team-uploads-group {
    margin-bottom: 20px;
}

.team-uploads-group:last-child {
    margin-bottom: 0;
}

.team-uploads-group-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-uploads-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
}

.team-upload-thumb {
    position: relative;
}

.team-upload-source {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.team-upload-source--team {
    background: #dbeafe;
    color: #1e40af;
}

.team-upload-source--mentor {
    background: #d1fae5;
    color: #047857;
}

.team-upload-source--teacher {
    background: #fef3c7;
    color: #b45309;
}

.team-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.team-detail-panel-title {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-detail-panel-desc {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.team-detail-empty {
    margin: 0;
    padding: 24px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.team-upload-file-input {
    display: none;
}

.team-upload-pick-btn {
    align-self: flex-start;
}

.team-uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.team-upload-thumb {
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.team-upload-file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: #e2e8f0;
    text-decoration: none;
    color: inherit;
}

.team-upload-file-preview--image {
    padding: 0;
}

.team-upload-file-preview--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-upload-file-preview--video {
    flex-direction: column;
    padding: 0;
    background: #0f172a;
}

.team-upload-file-preview--video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.team-upload-file-preview--audio {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #f1f5f9;
}

.team-upload-file-preview--audio audio {
    width: 100%;
    max-width: 100%;
}

.team-upload-file-preview--doc {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
    font-weight: 700;
    color: #334155;
}

.team-upload-file-icon {
    font-size: 2rem;
    color: #2563eb;
}

.team-upload-file-preview--doc .fa-file-pdf {
    color: #dc2626;
}

.team-upload-open-link {
    display: block;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    text-align: center;
    text-decoration: none;
    border-top: 1px solid #e8eef4;
    background: #f8fafc;
}

.team-upload-open-link:hover {
    text-decoration: underline;
}

.team-upload-thumb figcaption {
    padding: 8px 10px;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.35;
}

.team-upload-thumb figcaption span {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-guide-screen {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-guide-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-guide-header h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-guide-subtitle {
    margin: 0;
    color: var(--text-muted, #64748b);
    font-size: 0.92rem;
}

.project-guide-enrich-hint {
    margin: 0 0 12px;
    font-size: 0.88rem;
}

.project-guide-thumb--pending {
    opacity: 0.88;
}

.project-guide-thumb-pending {
    cursor: pointer;
}

.project-guide-uploads {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.project-guide-upload-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.project-guide-browse {
    margin-top: 8px;
}

.project-guide-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 4px 0 12px;
}

.project-guide-back-btn {
    flex-shrink: 0;
}

.project-guide-crumb-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
}

.project-guide-crumb {
    border: none;
    background: transparent;
    padding: 0;
    color: #2563eb;
    cursor: pointer;
    font: inherit;
}

.project-guide-crumb:hover {
    text-decoration: underline;
}

.project-guide-crumb--current {
    color: #0f172a;
    font-weight: 600;
    cursor: default;
}

.project-guide-crumb-sep {
    color: #94a3b8;
}

.project-guide-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.project-guide-hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    padding: 18px 18px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    font: inherit;
    color: inherit;
}

.project-guide-hub-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.project-guide-hub-card--blue {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.project-guide-hub-card--green {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.project-guide-hub-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fff;
    font-size: 1.1rem;
}

.project-guide-hub-card--blue .project-guide-hub-icon {
    background: #2563eb;
}

.project-guide-hub-card--green .project-guide-hub-icon {
    background: #059669;
}

.project-guide-hub-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-guide-hub-body strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.project-guide-hub-body .text-muted {
    font-size: 0.84rem;
    line-height: 1.45;
}

.project-guide-hub-count {
    margin-top: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 999px;
}

.project-guide-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.project-guide-lang-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.project-guide-lang-card:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.project-guide-lang-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1d4ed8;
}

.project-guide-lang-count {
    font-size: 0.78rem;
    color: #64748b;
}

.project-guide-docs-group {
    margin-top: 4px;
}

.project-guide-doc-audience {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #0369a1;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 999px;
}

.project-guide-upload-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.project-guide-upload-dialog {
    max-width: 560px;
    width: calc(100% - 32px);
    height: auto;
    max-height: 90vh;
    overflow: auto;
    background: #ffffff;
    color: #0f172a;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
}

.project-guide-upload-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.project-guide-upload-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    color: #0f172a;
}

.project-guide-upload-modal-body {
    padding: 18px 20px 8px;
    overflow: visible;
    background: #ffffff;
    color: #0f172a;
    flex: none;
    min-height: auto;
}

.project-guide-upload-modal-body .input-group label,
.project-guide-upload-dialog label {
    color: #334155;
}

.project-guide-upload-modal-body select,
.project-guide-upload-dialog select {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.project-guide-upload-modal-hint,
.project-guide-upload-file-label {
    color: #64748b;
}

.project-guide-upload-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px 18px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.project-guide-upload-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.project-guide-upload-modal-hint {
    margin: 12px 0 10px;
    font-size: 0.86rem;
}

.project-guide-upload-file-label {
    margin: 8px 0 0;
    font-size: 0.84rem;
}

@media (max-width: 640px) {
    .project-guide-upload-modal-grid {
        grid-template-columns: 1fr;
    }
}

.project-guide-upload-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.project-guide-category {
    margin: 0;
    min-width: 160px;
}

.project-guide-category label {
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.project-guide-category select {
    min-width: 160px;
}

.project-guide-thumb-delete,
.team-upload-thumb-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: background 0.15s ease;
    pointer-events: auto;
}

.project-guide-thumb-delete:hover:not(:disabled),
.team-upload-thumb-delete:hover:not(:disabled) {
    background: #dc2626;
}

.project-guide-thumb-delete:disabled,
.team-upload-thumb-delete:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.project-guide-view-hint {
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
}

.project-guide-screen .team-upload-file-preview--doc {
    cursor: pointer;
    border: none;
    font: inherit;
    width: 100%;
    text-align: center;
}

.project-guide-viewer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.project-guide-viewer-dialog {
    background: #fff;
    border-radius: 16px;
    width: min(1100px, 100%);
    height: min(90vh, 860px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.project-guide-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.project-guide-viewer-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.project-guide-viewer-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.project-guide-viewer-body {
    flex: 1;
    min-height: 0;
    background: #0f172a;
    display: flex;
    flex-direction: column;
}

.project-guide-viewer-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}

.project-guide-viewer-media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    min-height: 0;
}

.project-guide-viewer-media video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    background: #000;
}

.project-guide-viewer-hint {
    margin: 0;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #cbd5e1;
    background: #1e293b;
    flex-shrink: 0;
}

/* Teachers/mentors: blank print output while Project Guide viewer is open (Ctrl+P / menu Print). */
@media print {
    body.project-guide-no-print,
    body.project-guide-no-print * {
        visibility: hidden !important;
    }
}

.resources-screen {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.resources-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.resources-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.resources-subtitle {
    margin: 0;
    color: var(--text-muted, #64748b);
    font-size: 0.92rem;
    max-width: 40rem;
}

.resources-app-tabs,
.resources-filter-tabs,
.resources-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.resources-upload-panel {
    margin-top: 0;
}

.resources-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.resources-upload-title {
    grid-column: 1 / -1;
}

.resources-upload-link {
    grid-column: 1 / -1;
}

.resources-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.resources-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.resources-card-media {
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.resources-card-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #0f172a;
}

.resources-card-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #0f172a;
}

.resources-card-placeholder {
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.75rem;
}

.resources-card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.resources-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.resources-card-top h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.resources-card-delete {
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.resources-card-delete:hover:not(:disabled) {
    background: #dc2626;
    color: #fff;
}

.resources-card-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.resources-card-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.4;
}

.resources-card-sub {
    margin: 0;
    font-size: 0.8rem;
}

.resources-pill {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.resources-card-actions {
    margin-top: 0.35rem;
}

.resources-hint {
    margin: 0 0 0.5rem;
}

@media (max-width: 900px) {
    .manage-group-grid--three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .team-detail-facts {
        grid-template-columns: 1fr;
    }

    .my-teams-pill {
        display: none;
    }

    .team-detail-uploads-head {
        flex-direction: column;
        align-items: stretch;
    }

    .team-detail-uploads-head .btn {
        width: 100%;
    }
}

.manage-group-guard {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px;
    text-align: center;
}

.manage-group-guard i {
    font-size: 1.5rem;
    color: #334155;
    margin-bottom: 10px;
}

.manage-group-guard h3 {
    margin: 0 0 6px;
}

.manage-group-guard p {
    margin: 0;
    color: var(--text-muted);
}

/* Group approval — teacher workspace */
.group-approval-root .module-header .header-info h1 {
    margin: 0 0 6px;
    font-size: 1.65rem;
}

.group-approval-approved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.group-approval-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
}

.group-approval-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.group-approval-empty p {
    margin: 0;
    font-size: 1rem;
}

.group-approval-team-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.group-approval-team-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.group-approval-team-card__header {
    padding: 18px 18px 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.group-approval-team-card__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.group-approval-team-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.group-approval-team-card__icon--pending {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.group-approval-team-card__title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    text-transform: capitalize;
}

.group-approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
}

.group-approval-badge--approved {
    background: #dcfce7;
    color: #15803d;
}

.group-approval-badge--pending {
    background: #fef3c7;
    color: #b45309;
}

.group-approval-team-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.group-approval-team-card__section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-approval-team-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.group-approval-team-card__label i {
    margin-right: 4px;
    color: var(--primary);
}

.group-approval-team-card__label em {
    font-style: normal;
    font-weight: 500;
    color: #94a3b8;
}

.group-approval-avatars {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.group-approval-avatar {
    width: 36px;
    height: 36px;
    margin-left: -8px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: hsl(var(--avatar-hue, 220), 65%, 48%);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.group-approval-avatars .group-approval-avatar:first-child {
    margin-left: 0;
}

.group-approval-avatar--more {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.65rem;
}

.group-approval-avatars-empty {
    font-size: 0.85rem;
    color: #94a3b8;
}

.group-approval-members-line {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.group-approval-topic {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: #1e40af;
    font-size: 0.88rem;
    font-weight: 600;
}

.group-approval-topic i {
    opacity: 0.85;
}

.group-approval-topic--empty {
    background: #f1f5f9;
    color: #64748b;
    font-weight: 500;
}

.group-approval-topic-theme {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.group-approval-theme {
    background: #ecfdf5;
    color: #047857;
}

.group-approval-theme--empty {
    background: #f1f5f9;
    color: #64748b;
}

.manage-groups-approve-topic-theme {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 6px;
    font-size: 0.88rem;
    color: var(--text-main);
}

.manage-groups-approve-topic-theme strong {
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 4px;
}

.group-approval-leader {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
}

.group-approval-leader i {
    color: #eab308;
    margin-right: 4px;
}

.group-approval-leader strong {
    color: #0f172a;
}

.group-approval-pending-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
}

.group-approval-pending-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.group-approval-pending-row.is-expanded {
    border-color: #93c5fd;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.14);
}

.group-approval-pending-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.group-approval-pending-title {
    display: block;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 6px;
    text-transform: capitalize;
}

.group-approval-pending-sub {
    margin: 0 0 10px !important;
    font-size: 0.85rem !important;
    color: #64748b !important;
}

.group-approval-pending-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.group-approval-pending-click {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    text-align: left;
    border-radius: 10px;
    margin: -6px;
    padding: 6px;
    outline: none;
}

.group-approval-pending-click:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.group-approval-pending-hint {
    margin: 8px 0 0 !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
}

.group-approval-pending-detail {
    display: none;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.group-approval-pending-row.is-expanded .group-approval-pending-detail {
    display: block;
}

.group-approval-pending-detail-dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-approval-pending-detail-dl div {
    margin: 0;
}

.group-approval-pending-detail-dl dt {
    margin: 0 0 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.group-approval-pending-detail-dl dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.35;
}

.group-approval-pending-row p {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.group-approval-pending-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .group-approval-approved-grid {
        grid-template-columns: 1fr;
    }

    .group-approval-pending-actions {
        width: 100%;
    }

    .group-approval-pending-actions .btn {
        flex: 1;
    }
}

.group-eval-box-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
}

.group-eval-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.group-eval-box-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    margin-bottom: 8px;
}

.group-eval-box h3 {
    margin: 0 0 6px;
}

.group-eval-box p {
    margin: 0;
    color: var(--text-muted);
}

.group-eval-box--clickable {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.group-eval-box--clickable:hover,
.group-eval-box--clickable:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12);
    outline: none;
}

.group-eval-box-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2563eb;
}

.eval-scores-root .my-teams-subnav {
    margin-bottom: 14px;
}

.eval-scores-root .mentor-cal-panel {
    margin-top: 4px;
}

.eval-scores-root .eval-scores-search {
    margin-bottom: 16px;
    max-width: 420px;
}

.eval-scores-table .eval-scores-row {
    cursor: pointer;
}

.eval-scores-table .eval-scores-row:hover td {
    background: #f8fafc;
}

.eval-scores-chevron {
    width: 36px;
    color: #94a3b8;
    text-align: right;
}

.eval-scores-grade {
    font-weight: 700;
    color: #059669;
}

.eval-scores-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.eval-scores-detail-facts {
    margin-bottom: 8px;
}

.admin-mentor-remark-panel {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
}

.admin-mentor-remark-panel--empty {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.admin-mentor-remark-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #5b21b6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-mentor-remark-panel--empty .admin-mentor-remark-title {
    color: #475569;
}

.manage-group-project-summary {
    display: block;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #475569;
    white-space: pre-wrap;
}

.eval-approval-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.eval-approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.eval-approval-hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
}

.eval-approval-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.eval-approval-status--pending {
    background: #fef3c7;
    color: #92400e;
}

.eval-approval-status--approved {
    background: #dcfce7;
    color: #166534;
}

.eval-approval-status--needs_reevaluation {
    background: #fee2e2;
    color: #991b1b;
}

.team-eval-approval-badge {
    font-weight: 600;
}

.team-eval-approval-badge--pending {
    color: #b45309;
}

.team-eval-approval-badge--approved {
    color: #15803d;
}

.team-eval-approval-badge--needs_reevaluation {
    color: #b91c1c;
}

.team-eval-section--kv .team-eval-kv-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-eval-kv-topic {
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    background: var(--card-bg, #fff);
}

.team-eval-kv-topic-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.team-eval-kv-topic-hint {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
}

.team-eval-kv-overall,
.team-eval-kv-overall-row {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color, #e2e8f0);
}

.team-eval-section--readonly .team-eval-actions {
    display: none;
}

.group-assignment-status-card {
    margin-top: 8px;
    display: grid;
    gap: 12px;
}

.group-assignment-status-card h3 {
    margin: 0;
}

.group-assignment-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.group-assignment-tile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.group-assignment-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.group-assignment-tile--assigned {
    background: #f7f8ff;
}

.group-assignment-tile--assigned .group-assignment-icon {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.12);
}

.group-assignment-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin: 6px 0 10px;
}

.group-assignment-tile p {
    margin: 0 0 6px;
    font-weight: 700;
}

.group-assignment-tile small {
    color: #64748b;
    font-size: 0.8rem;
}

.group-assignment-total {
    background: #5f7f90;
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.group-assignment-total span {
    display: block;
    font-size: 1.05rem;
    opacity: 0.95;
}

.group-assignment-total strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
}

.group-assignment-total i {
    font-size: 2.1rem;
    opacity: 0.9;
}

@media (max-width: 980px) {
    .manage-groups-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .manage-group-grid {
        grid-template-columns: 1fr;
    }

    .group-eval-box-grid {
        grid-template-columns: 1fr;
    }

    .group-assignment-top-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .manage-groups-filters {
        grid-template-columns: 1fr;
    }

    .manage-groups-grid {
        grid-template-columns: 1fr;
    }
}

.track-school-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-main);
}

.track-school-list li + li {
    margin-top: 6px;
}

@media (max-width: 1200px) {
    .track-schools-sheet {
        width: min(100%, 560px);
        max-height: 82vh;
    }

    .student-activity-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 760px) {
    .student-activity-grid {
        grid-template-columns: 1fr;
    }
}

.comp-create-layout {
    max-width: 720px;
}

.comp-form-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 28px 30px 32px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.comp-form-section-title {
    margin: 28px 0 12px;
    font-size: 1.05rem;
    color: var(--dark);
}

.comp-form-card .comp-form-section-title:first-child {
    margin-top: 0;
}

.comp-help {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comp-check-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comp-check-tile {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.comp-check-tile:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.03);
}

.comp-check-tile input {
    margin-top: 4px;
    width: auto;
}

.comp-check-tile-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comp-check-tile-body small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.comp-tick-dropdown {
    position: relative;
}

.comp-tick-toggle {
    width: 100%;
    justify-content: space-between;
}

.comp-tick-menu {
    display: none;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    max-height: 260px;
    overflow-y: auto;
    padding: 10px;
}

.comp-tick-menu.open {
    display: block;
}

.comp-dropdown-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 10px;
    cursor: pointer;
}

.comp-dropdown-option:hover {
    background: #f8fafc;
}

.comp-dropdown-option input {
    width: auto;
    margin-top: 3px;
}

.config-app-allot-cell {
    min-width: 140px;
    vertical-align: middle;
    position: relative;
    overflow: visible;
}

.config-app-allot-dropdown {
    min-width: 130px;
    position: relative;
    z-index: 1;
}

.config-app-allot-dropdown:has(.config-app-allot-menu.open) {
    z-index: 120;
}

.config-app-allot-toggle {
    width: 100%;
    min-width: 120px;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 6px 10px;
}

.config-app-allot-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 130;
    min-width: 160px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.config-app-allot-menu.open {
    display: block;
}

/* Config tables: fit card width; scroll only when truly needed */
.config-card .table-card {
    max-width: 100%;
    min-width: 0;
    overflow: visible;
}

.config-card .table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 6px;
    max-width: 100%;
}

.config-card .table-responsive > .modern-table,
.config-card .table-responsive > table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
}

.config-card table.modern-table {
    overflow: visible;
}

.config-card .modern-table tbody,
.config-card .modern-table tr,
.config-card .modern-table td {
    overflow: visible;
}

/* Project titles table must stay inside the card (override Config overflow:visible) */
.config-card .topic-themes-card {
    overflow: hidden;
}

.config-card .topic-themes-table-wrap {
    overflow-x: hidden !important;
    overflow-y: visible;
}

.config-card .topic-themes-table-wrap > .topic-themes-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
}

.config-card .topic-themes-table th,
.config-card .topic-themes-table td {
    overflow: hidden !important;
}

.config-card .modern-table tr:has(.config-app-allot-menu.open) {
    position: relative;
    z-index: 50;
}

.comp-empty-levels {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.school-participation-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.school-participation-block {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fafbfc;
}

.school-participation-main {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.school-participation-main input {
    width: auto;
}

.school-tier-toggles {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.school-tier-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    width: 100%;
}

.tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.tier-pill input {
    width: auto;
}

.comp-level-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.comp-form-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.comp-modal-wide {
    width: min(100%, 480px);
}

/* Config: add / edit master data (centered overlay, same family as level modals) */
.config-crud-modal-overlay {
    z-index: 1100;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 24px;
}

.config-cmodal-content {
    width: min(100%, 560px);
    max-height: min(90vh, 900px);
    overflow-y: auto;
    box-sizing: border-box;
}

.config-cmodal-content .input-group {
    overflow: visible;
}

.config-cmodal-content .config-app-allot-dropdown:has(.config-app-allot-menu.open) {
    z-index: 200;
}

.config-cmodal-top {
    margin-bottom: 8px;
}

.config-cmodal-top h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.config-cmodal-desc {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.config-cmodal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    padding-top: 4px;
}

.modal-content h3 {
    margin-bottom: 16px;
}

.btn-text-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: inherit;
    display: inline;
}

.btn-text-link:hover {
    color: #1d4ed8;
}

.level-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.level-template-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.level-template-card-top {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.level-status-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}

.level-status-badge--on {
    background: rgba(22, 163, 74, 0.12);
    color: var(--success);
}

.level-status-badge--off {
    background: rgba(100, 116, 139, 0.2);
    color: #475569;
}

.level-template-card--disabled {
    opacity: 0.92;
    background: #f8fafc;
}

.level-template-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.level-action-btn {
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

.level-passing-grades-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
}

.level-rating-criteria-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.level-rating-grade-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}

.level-rating-grade-check input {
    margin-top: 3px;
    flex-shrink: 0;
}

.level-rating-grade-label {
    line-height: 1.4;
    color: #334155;
}

.level-content-modal {
    width: min(100%, 760px);
    max-height: 90vh;
    overflow-y: auto;
}

.level-content-list-wrap {
    margin: 12px 0 18px;
    max-height: 320px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    padding: 12px;
}

.level-content-list {
    display: grid;
    gap: 10px;
}

.level-content-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.level-content-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.level-content-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: 700;
}

.level-option-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: grid;
    gap: 6px;
}

.level-option-list li {
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.level-option-list li.is-correct {
    background: #dcfce7;
    color: #166534;
}

.level-content-form {
    margin-top: 6px;
}

.level-content-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 760px) {
    .level-content-grid-2 {
        grid-template-columns: 1fr;
    }
}

.level-type-badge {
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.level-type-badge--mcq {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.level-type-badge--group {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.level-type-badge--presentation {
    background: rgba(147, 51, 234, 0.12);
    color: #7c3aed;
}

.level-type-badge--reports {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.level-type-badge--attendance {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.level-type-badge--syllabus {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.attendance-viewer-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.attendance-viewer-filters .input-group {
    margin-bottom: 0;
    min-width: 180px;
    flex: 1 1 200px;
}

.attendance-viewer-table td {
    vertical-align: top;
}

.attendance-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.attendance-role-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    padding: 20px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.attendance-role-card:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.attendance-role-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.attendance-role-card-icon--coord {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
}

.attendance-role-card-body h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.attendance-role-card-body p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.4;
}

.attendance-role-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 0.85rem;
    color: #475569;
}

.attendance-role-card-go {
    margin-top: auto;
    color: #2563eb;
    font-weight: 650;
    font-size: 0.9rem;
}

.attendance-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.attendance-summary-item {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
}

.attendance-summary-item--present {
    border-color: rgba(22, 163, 74, 0.35);
    background: rgba(22, 163, 74, 0.06);
}

.attendance-summary-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
}

.attendance-summary-item strong {
    font-size: 1.05rem;
}

.attendance-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.attendance-person-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attendance-person-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.attendance-person-card-main {
    min-width: 0;
    flex: 1;
}

.attendance-present-chip {
    flex-shrink: 0;
    min-width: 72px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.28);
    text-align: center;
}

.attendance-present-chip-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 750;
    color: #166534;
    line-height: 1.1;
}

.attendance-present-chip-label {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    color: #15803d;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.attendance-person-card-top h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.attendance-person-meta {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.attendance-person-meta span:not(:last-child)::after {
    content: '';
}

.attendance-person-info {
    margin-bottom: 16px;
}

.attendance-person-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px 16px;
}

.attendance-person-info-grid span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
}

.attendance-person-info-grid strong {
    font-size: 0.98rem;
}

.attendance-day-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attendance-day-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.attendance-day-row-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.attendance-day-status {
    text-transform: capitalize;
    font-size: 0.85rem;
    color: #64748b;
}

.attendance-day-status--ok {
    color: #166534;
    font-weight: 650;
}

.attendance-day-row-meta {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 600;
}

.attendance-person-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.attendance-person-stats div {
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px;
}

.attendance-person-stats span {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 2px;
}

.attendance-person-stats strong {
    font-size: 0.95rem;
}

.attendance-calendar-card {
    padding-bottom: 18px;
}

.attendance-cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.attendance-cal-toolbar h3 {
    margin: 0;
    font-size: 1.05rem;
}

.attendance-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: #64748b;
}

.attendance-leg {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
    background: #e2e8f0;
    vertical-align: -1px;
}

.attendance-leg--present {
    background: #16a34a;
}

.attendance-leg--other {
    background: #f59e0b;
}

.attendance-cal-weekdays,
.attendance-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.attendance-cal-weekdays {
    margin-bottom: 6px;
}

.attendance-cal-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.attendance-cal-day {
    min-height: 58px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.attendance-cal-day--empty {
    border: none;
    background: transparent;
}

.attendance-cal-day--present {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.35);
}

.attendance-cal-day--other {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}

.attendance-cal-num {
    font-size: 0.8rem;
    font-weight: 650;
    color: #334155;
}

.attendance-cal-hours {
    font-size: 0.72rem;
    color: #166534;
    font-weight: 600;
}

.attendance-cal-day--other .attendance-cal-hours {
    color: #b45309;
}

.syllabus-manager-card .input-group {
    margin-bottom: 12px;
}

.syllabus-title-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.syllabus-title-meta-row .input-group {
    margin-bottom: 0;
}

.syllabus-title-field {
    flex: 0 1 220px;
    min-width: 160px;
    max-width: 260px;
}

.syllabus-meta-field {
    flex: 0 1 150px;
    min-width: 130px;
}

.reports-title-field {
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 360px;
}

.syllabus-item-tags {
    margin: 0 0 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.syllabus-items-list {
    display: grid;
    gap: 12px;
}

.syllabus-item-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.syllabus-item-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.syllabus-item-card h4 {
    margin: 0;
    font-size: 1rem;
}

.syllabus-item-main-title {
    margin: 0 0 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f766e;
}

.reports-list-card {
    display: flex;
    justify-content: flex-start;
    padding: 28px 24px;
}

.reports-editor-card .input-group {
    margin-bottom: 12px;
}

.reports-cell-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 16px;
}

.reports-add-cell-btn {
    border-style: dashed;
}

.reports-cells {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 16px;
}

.reports-cells-empty {
    margin: 0 0 16px;
}

.reports-cell {
    display: grid;
    grid-template-columns: 120px 1fr;
    border-bottom: 1px solid #e2e8f0;
    min-height: 72px;
}

.reports-cell:last-child {
    border-bottom: none;
}

.reports-cell-gutter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 10px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.reports-cell--question .reports-cell-gutter {
    background: #eff6ff;
}

.reports-cell--point .reports-cell-gutter {
    background: #f0fdf4;
}

.reports-cell-kind {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.reports-cell-remove {
    padding: 4px 8px;
}

.reports-cell-body {
    padding: 10px 12px;
}

.reports-field-label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
}

.reports-answer-type-row {
    margin-top: 10px;
    max-width: 240px;
}

.reports-answer-type-select {
    width: 100%;
}

.reports-answer-preview-wrap {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.reports-answer-preview {
    width: 100%;
    border: none;
    border-bottom: 1px solid #cbd5e1;
    border-radius: 0;
    padding: 8px 0;
    font: inherit;
    background: transparent;
    color: #94a3b8;
}

.reports-answer-preview[disabled] {
    cursor: default;
    opacity: 1;
}

textarea.reports-answer-preview {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    resize: none;
}

.reports-mcq-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reports-mcq-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.92rem;
}

.reports-mcq-radio {
    width: 14px;
    height: 14px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    flex-shrink: 0;
}

.reports-mcq-hint {
    margin: 0;
    font-size: 0.8rem;
}

.reports-mcq-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reports-mcq-option-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reports-mcq-option-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #e2e8f0 !important;
    background: #fff;
}

.reports-mcq-option-remove {
    flex-shrink: 0;
    padding: 4px 8px;
}

.reports-mcq-add-option {
    align-self: flex-start;
}

.reports-fill-mcq {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.reports-fill-mcq-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
}

.reports-fill-mcq-option:has(input:checked) {
    border-color: #93c5fd;
    background: #f8fafc;
}

.reports-fill-mcq-option input {
    margin: 0;
    flex-shrink: 0;
}

.reports-subject-editor,
.reports-subject-table-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reports-subject-option-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reports-subject-index {
    flex-shrink: 0;
    min-width: 1.25rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
}

.reports-subject-option-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #e2e8f0 !important;
    background: #fff;
}

.reports-subject-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reports-subject-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
}

.reports-subject-table-wrap {
    overflow-x: auto;
}

.reports-subject-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}

.reports-subject-table th,
.reports-subject-table td {
    border: 1px solid #e2e8f0;
    padding: 6px 8px;
    text-align: left;
    vertical-align: middle;
}

.reports-subject-table thead th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

.reports-subject-serial-col {
    width: 2.5rem;
    text-align: center !important;
    color: #64748b;
    font-weight: 700;
}

.reports-fill-subject-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.reports-fill-subject-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    font-size: 0.92rem;
}

.reports-fill-subject-option:has(input:checked) {
    border-color: #93c5fd;
    background: #f8fafc;
}

.reports-fill-subject-option input {
    margin: 0;
}

.reports-fill-table-input {
    width: 100%;
    min-width: 100px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 6px 8px;
    background: transparent;
}

.reports-fill-table-input:focus {
    outline: none;
    border-color: #93c5fd;
    background: #fff;
}

.reports-subject-table-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.reports-question-prompt {
    font-weight: 600;
}

.reports-cell-input {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
    background: transparent;
}

.reports-cell-input:focus {
    outline: none;
    border-color: #93c5fd;
    background: #fff;
}

.reports-cell-text {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
    color: #0f172a;
}

.reports-save-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.reports-pages-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reports-page-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.reports-page-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.reports-page-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.reports-page-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.reports-page-meta {
    margin-left: 8px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.reports-page-card .reports-cells {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .reports-cell {
        grid-template-columns: 1fr;
    }

    .reports-cell-gutter {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}

.level-template-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.level-template-id {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.level-template-id code {
    font-size: 0.9em;
    background: var(--surface-soft);
    padding: 2px 6px;
    border-radius: 6px;
}

/* Config: theme tasks Excel toolbar */
.theme-subtasks-excel-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
}

.theme-subtasks-excel-hint {
    margin: 0;
    flex: 1 1 200px;
    font-size: 0.82rem;
}

/* Config: theme task instructions — Quill + rich HTML preview */
.input-group .field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.theme-subtask-quill-wrap .ql-toolbar.ql-snow {
    border-radius: 12px 12px 0 0;
    border-color: #e2e8f0;
    font-family: inherit;
}

.theme-subtask-quill-wrap .ql-container.ql-snow {
    border-radius: 0 0 12px 12px;
    border-color: #e2e8f0;
    min-height: 160px;
    font-size: 0.95rem;
    font-family: inherit;
}

.theme-subtask-quill-wrap .ql-editor {
    min-height: 140px;
    line-height: 1.55;
}

.theme-subtask-media-block {
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.theme-subtask-media-heading {
    margin: 0 0 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.theme-subtask-media-hint {
    margin: -4px 0 12px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.theme-subtask-media-block .input-group {
    margin-bottom: 10px;
}

.theme-subtask-media-block .input-group:last-child {
    margin-bottom: 0;
}

.theme-subtask-media-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.theme-subtask-media-controls input[type='url'] {
    flex: 1 1 220px;
    min-width: 0;
}

.theme-subtask-media-upload-btn,
.theme-subtask-media-clear-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.theme-subtask-media-clear-btn {
    color: #b91c1c;
    border-color: #fecaca;
}

.theme-subtask-media-clear-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.theme-subtask-media-links {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.theme-subtask-media-links h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.theme-subtask-media-links ul {
    margin: 0;
    padding-left: 1.15rem;
}

.theme-subtask-media-links li {
    margin: 0 0 6px;
    word-break: break-word;
}

.theme-task-instructions-rich {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-main);
}

.theme-task-instructions-rich p {
    margin: 0 0 0.5em;
}

.theme-task-instructions-rich p:last-child {
    margin-bottom: 0;
}

.theme-task-instructions-rich ul,
.theme-task-instructions-rich ol {
    margin: 0.35em 0 0.65em;
    padding-left: 1.35rem;
}

.theme-task-instructions-rich h1,
.theme-task-instructions-rich h2,
.theme-task-instructions-rich h3 {
    margin: 0.45em 0 0.3em;
    line-height: 1.25;
    font-weight: 600;
}

.theme-task-instructions-rich h1 {
    font-size: 1.2rem;
}

.theme-task-instructions-rich h2 {
    font-size: 1.08rem;
}

.theme-task-instructions-rich h3 {
    font-size: 1rem;
}

.theme-task-instructions-rich a {
    color: var(--primary);
    text-decoration: underline;
}

.theme-task-instructions-rich blockquote {
    margin: 0.5em 0;
    padding-left: 0.85rem;
    border-left: 3px solid var(--primary-soft, #dbeafe);
    color: var(--text-muted);
}

.theme-task-instructions-plain {
    white-space: pre-wrap;
    margin: 0;
}

.config-register-other-actions {
    min-width: 280px;
}

.config-register-other-quick-add {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.config-register-other-input {
    flex: 1 1 88px;
    min-width: 72px;
    max-width: 120px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font: inherit;
    font-size: 0.85rem;
}

.config-register-other-quick-btn,
.config-register-other-delete-btn {
    white-space: nowrap;
}
.team-topic-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.team-topic-filter {
    flex: 1 1 200px;
    min-width: 180px;
    margin: 0;
}

.team-topic-filter select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    background: #fff;
}

.manage-groups-filters {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.group-approval-filters {
    margin-bottom: 16px;
}

/* Ops Reports (super admin) */
.ops-reports-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ops-reports-intro h3 {
    margin: 0 0 4px;
}

.ops-reports-intro p {
    margin: 0;
}

.ops-reports-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.ops-reports-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 18px 16px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ops-reports-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.9);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.ops-reports-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
    border-radius: 14px;
    font-size: 1.2rem;
}

.ops-reports-tile-title {
    font-size: 1.02rem;
    font-weight: 650;
    color: #0f172a;
}

.ops-reports-tile-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
}

.ops-reports-tile-open {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
}

.ops-reports-tile-open .fas {
    margin-left: 4px;
    font-size: 0.75rem;
}

.ops-reports-tile--blue .ops-reports-tile-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.ops-reports-tile--violet .ops-reports-tile-icon {
    background: #ede9fe;
    color: #6d28d9;
}

.ops-reports-tile--green .ops-reports-tile-icon {
    background: #dcfce7;
    color: #15803d;
}

.ops-reports-tile--pink .ops-reports-tile-icon {
    background: #fce7f3;
    color: #9d174d;
}

.ops-reports-tile--teal .ops-reports-tile-icon {
    background: #ccfbf1;
    color: #0f766e;
}

/* ── Institute Directory ─────────────────────────────────────────────────── */
.inst-dir-wrap {
    padding: 0 0 2rem;
}
.inst-dir-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.25rem;
}
.inst-dir-summary-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f766e;
}
.inst-dir-summary-chip i {
    font-size: 0.85rem;
}
.inst-dir-search-row {
    margin-bottom: 1.25rem;
}
.inst-dir-search {
    width: 100%;
    max-width: 420px;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.inst-dir-search:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.inst-dir-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow .15s;
}
.inst-dir-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.inst-dir-card.is-open {
    border-color: #99f6e4;
    box-shadow: 0 2px 12px rgba(13,148,136,.1);
}
.inst-dir-card-head {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-align: left;
}
.inst-dir-card.is-open .inst-dir-card-head {
    background: #f0fdfa;
}
.inst-dir-card-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #ccfbf1;
    color: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.inst-dir-card-name {
    font-weight: 600;
    font-size: 0.97rem;
    color: #111827;
    flex: 1 1 0;
}
.inst-dir-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}
.inst-dir-chip {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}
.inst-dir-chip--school {
    background: #eff6ff;
    color: #1d4ed8;
}
.inst-dir-chip--coord {
    background: #faf5ff;
    color: #7e22ce;
}
.inst-dir-chip--teacher {
    background: #fff7ed;
    color: #c2410c;
}
.inst-dir-chevron {
    color: #9ca3af;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 4px;
}
.inst-dir-card-body {
    padding: 0 18px 18px;
    border-top: 1px solid #e5e7eb;
}
.inst-dir-section {
    margin-top: 14px;
}
.inst-dir-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .03em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.inst-dir-school-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.inst-dir-school-item {
    background: #eff6ff;
    color: #1e40af;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.inst-dir-coord-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.inst-dir-coord-card {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.inst-dir-coord-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #6b21a8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.inst-dir-coord-school {
    font-size: 0.78rem;
    color: #7c3aed;
    padding-left: 20px;
}
.inst-dir-teacher-table th,
.inst-dir-teacher-table td {
    font-size: 0.82rem;
}
.inst-dir-none {
    font-size: 0.83rem;
    color: #9ca3af;
    margin: 0;
}
.inst-dir-empty {
    padding: 2rem 0;
    text-align: center;
}

.ops-reports-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.ops-reports-back {
    flex-shrink: 0;
}

.ops-reports-detail-title h3 {
    margin: 0 0 4px;
}

.ops-reports-detail-title p {
    margin: 0;
    font-size: 0.88rem;
}

.ops-reports-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ops-reports-page--coord .ops-reports-detail-stack {
    gap: 14px;
}

.ops-coord-mail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ops-reports-page--coord .ops-coord-mail .ops-coord-email-strip,
.ops-reports-page--coord .ops-coord-mail .ops-reports-panel--schedule,
.ops-reports-page--coord .ops-coord-mail .ops-email-schedule-list {
    margin: 0;
}

.ops-reports-page--coord .ops-coord-mail .weekly-report-email-body {
    padding-top: 4px;
}

.ops-reports-page--coord .ops-coord-mail .ops-reports-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ops-reports-page--coord .ops-coord-email-people {
    max-height: 280px;
}

.ops-reports-page--coord .ops-ov {
    order: 0;
}

.ops-reports-page--coord .ops-reports-panel {
    padding: 14px 16px;
}

.ops-reports-page--coord .ops-reports-panel-head {
    margin-bottom: 8px;
}

.ops-reports-page--coord .ops-reports-panel-head p,
.ops-reports-page--coord .ops-reports-panel-aside {
    display: none;
}

.ops-reports-page--coord .ops-reports-range-summary {
    margin: 0 0 8px;
}

.ops-reports-page--coord .ops-reports-panel,
.ops-reports-page--coord .ops-reports-panel--view,
.ops-reports-page--coord .weekly-report-email-panel,
.ops-reports-page--coord .ops-coord-email-strip,
.ops-reports-page--coord .ops-ov {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: none;
}

.ops-reports-page--coord .weekly-report-email-panel {
    margin: 0;
}

.ops-coord-email-strip {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
}

.ops-coord-email-strip--open .ops-coord-email-strip__title {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.ops-coord-email-strip--open .ops-coord-email-strip__title h4 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    color: #0f172a;
}

.ops-coord-email-strip--open .ops-coord-email-strip__title p {
    margin: 0;
    font-size: 0.78rem;
}

.ops-coord-email-strip__body {
    padding: 14px 16px 16px;
}

.ops-coord-email-summary {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.ops-coord-email-summary__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 10px;
}

.ops-coord-email-summary__head strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.ops-coord-email-summary__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 720px) {
    .ops-coord-email-summary__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ops-coord-email-summary__card {
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.ops-coord-email-summary__card--students {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ops-coord-email-summary__card--l1 {
    background: #f0fdfa;
    border-color: #99f6e4;
}

.ops-coord-email-summary__card--l2 {
    background: #fffbeb;
    border-color: #fde68a;
}

.ops-coord-email-summary__card--l3 {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.ops-coord-email-summary__card span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.ops-coord-email-summary__card strong {
    font-size: 1.15rem;
    color: #0f172a;
}

.ops-coord-email-summary__card--students {
    border-color: #bae6fd;
    background: #f0f9ff;
}

.ops-coord-email-summary__card--l1 {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.ops-coord-email-summary__card--l2 {
    border-color: #fde68a;
    background: #fffbeb;
}

.ops-coord-email-summary__card--l3 {
    border-color: #e9d5ff;
    background: #faf5ff;
}

.ops-coord-email-summary__note,
.ops-coord-email-summary__empty {
    margin: 8px 0 0;
    font-size: 0.76rem;
}

.ops-coord-email-summary__empty {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

.ops-coord-email-strip__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 10px;
}

.ops-coord-email-strip__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.ops-coord-email-people {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px 10px;
    max-height: 180px;
    overflow: auto;
}

.ops-coord-email-people__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 8px;
    background: #f8fafc;
}

.ops-coord-email-people__item.is-viewing {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.ops-coord-email-people__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
}

.ops-coord-email-people__check span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-coord-email-people__view {
    border: 0;
    background: transparent;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 6px;
}

.ops-coord-email-people__view.is-active,
.ops-coord-email-people__view:hover {
    background: #ccfbf1;
    color: #0f766e;
}

.ops-coord-email-strip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-coord-email-strip__hint {
    margin: 8px 0 0;
    font-size: 0.78rem;
}

.ops-coord-filter {
    margin: 0;
}

.ops-coord-filter__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ops-coord-filter__panel {
    margin-top: 10px;
    padding: 10px 0 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
}

.ops-coord-filter__summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.ops-coord-filter__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.ops-coord-filter__summary strong {
    font-size: 0.92rem;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-coord-filter__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-reports-panel {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 18px;
}

.ops-reports-panel--view {
    border-color: #bfdbfe;
    box-shadow: inset 3px 0 0 #2563eb;
}

.ops-reports-view-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ops-reports-view-main {
    flex: 1;
    min-width: 0;
}

.ops-reports-panel-head--inline {
    margin-bottom: 8px;
}

.ops-reports-view-main > .ops-reports-panel-row {
    margin-bottom: 0;
}

.ops-reports-panel--schedule.weekly-report-email-panel--collapsible {
    padding: 0;
    overflow: hidden;
}

.ops-reports-panel--schedule .weekly-report-email-toggle {
    padding: 16px 18px;
}

.ops-reports-panel--schedule .weekly-report-email-toggle-main > .fas {
    color: #16a34a;
}

.ops-reports-panel--schedule .weekly-report-email-body {
    padding: 0 18px 18px;
}

.ops-schedule-recipients-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px 16px;
    align-items: start;
    margin-bottom: 12px;
}

.ops-schedule-recipients-field {
    margin-bottom: 0;
}

.ops-schedule-recipients-field textarea {
    min-height: 108px;
    resize: vertical;
}

.ops-schedule-window-preview {
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: none;
    min-height: 0;
}

.ops-schedule-window-preview-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    visibility: hidden;
}

.ops-schedule-window-preview-card {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ops-reports-panel-row--window {
    flex-wrap: nowrap;
    align-items: flex-end;
}

.ops-reports-schedule-toggle-group {
    flex: 0 0 auto;
    min-width: 0;
}

.ops-reports-schedule-toggle-label {
    display: block;
    min-height: 1.2em;
}

.ops-reports-panel--schedule .ops-reports-schedule-toggle-group .weekly-report-scheduler-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    white-space: nowrap;
    padding: 0 2px;
}

@media (max-width: 860px) {
    .ops-schedule-recipients-row {
        grid-template-columns: 1fr;
    }

    .ops-schedule-window-preview-label {
        display: none;
    }

    .ops-reports-panel-row--window {
        flex-wrap: wrap;
    }
}

.ops-reports-panel--schedule .ops-reports-panel-head {
    margin-bottom: 12px;
}

.ops-email-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 18px;
}

.ops-email-schedule-empty {
    margin: 0;
    padding: 12px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.ops-email-schedule-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 3px 0 0 #86efac;
}

.ops-email-schedule-card--collapsible {
    display: block;
    padding: 0;
    overflow: hidden;
}

.ops-email-schedule-card--collapsible.is-open .weekly-report-email-toggle {
    border-bottom: 1px solid #e2e8f0;
}

.ops-email-schedule-card--collapsible .weekly-report-email-body {
    padding: 12px 16px 14px;
}

.ops-email-schedule-card--collapsible .ops-email-schedule-card-actions {
    margin-top: 10px;
}

.ops-email-schedule-card.is-editing {
    border-color: #86efac;
    background: #f0fdf4;
}

.ops-email-schedule-card-main {
    min-width: 0;
    flex: 1 1 240px;
}

.ops-email-schedule-card-title {
    margin: 0 0 4px;
    font-weight: 600;
    color: #0f172a;
}

.ops-email-schedule-card-window,
.ops-email-schedule-card-recipients,
.ops-email-schedule-card-last {
    margin: 0 0 2px;
    font-size: 0.9rem;
}

.ops-email-schedule-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ops-email-schedule-state {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.ops-email-schedule-state.is-on {
    background: #dcfce7;
    color: #166534;
}

.ops-email-schedule-state.is-off {
    background: #fee2e2;
    color: #991b1b;
}

.ops-reports-mentor-sessions {
    border-color: #ddd6fe;
    box-shadow: inset 3px 0 0 #7c3aed;
}

.ops-reports-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ops-reports-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: #f8fafc;
}

.ops-reports-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.ops-reports-stat-label {
    font-size: 0.78rem;
    color: #64748b;
}

.ops-mr {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    background: #fff;
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ops-mr-toolbar h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #0f172a;
}

.ops-mr-toolbar p {
    margin: 0;
    font-size: 0.86rem;
}

.ops-mr-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
}

.ops-mr-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.ops-mr-stat--purple {
    background: #f5f3ff;
    border-color: #ddd6fe;
}
.ops-mr-stat--purple .ops-mr-stat-value { color: #6d28d9; }

.ops-mr-stat--green {
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.ops-mr-stat--green .ops-mr-stat-value { color: #047857; }

.ops-mr-stat--orange {
    background: #fff7ed;
    border-color: #fed7aa;
}
.ops-mr-stat--orange .ops-mr-stat-value { color: #c2410c; }

.ops-mr-stat--amber {
    background: #fffbeb;
    border-color: #fde68a;
}
.ops-mr-stat--amber .ops-mr-stat-value { color: #b45309; }

.ops-mr-stat--sky {
    background: #e0f2fe;
    border-color: #bae6fd;
}
.ops-mr-stat--sky .ops-mr-stat-value { color: #0369a1; }

.ops-mr-stat--teal {
    background: #f0fdfa;
    border-color: #99f6e4;
}
.ops-mr-stat--teal .ops-mr-stat-value { color: #0f766e; }

.ops-mr-stat--blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.ops-mr-stat--blue .ops-mr-stat-value { color: #1d4ed8; }

.ops-mr-stat-label {
    font-size: 0.75rem;
    color: #64748b;
}

.ops-mr-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.ops-mr-stat-bar {
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 4px;
}

.ops-mr-stat-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #2563eb;
}

.ops-mr-stat--sky .ops-mr-stat-bar span {
    background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.ops-mr-stat--teal .ops-mr-stat-bar span {
    background: linear-gradient(90deg, #2dd4bf, #0f766e);
}

.ops-mr-stat--offline .ops-mr-stat-bar span {
    background: #0f766e;
}

.ops-mr-graph {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ops-mr-graph-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ops-mr-graph-head h5 {
    margin: 0;
    font-size: 0.92rem;
}

.ops-mr-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.75rem;
    color: #64748b;
}

.ops-mr-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.ops-mr-simple {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    min-height: 110px;
    margin-bottom: 14px;
}

.ops-mr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 48px;
    font-size: 0.75rem;
    color: #64748b;
}

.ops-mr-col strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.ops-mr-col:nth-child(1) strong { color: #1d4ed8; }
.ops-mr-col:nth-child(2) strong { color: #64748b; }
.ops-mr-col:nth-child(4) strong { color: #0284c7; }
.ops-mr-col:nth-child(5) strong { color: #0f766e; }

.ops-mr-track {
    width: 28px;
    height: 88px;
    border-radius: 8px;
    background: #e2e8f0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.ops-mr-col:nth-child(1) .ops-mr-track { background: #dbeafe; }
.ops-mr-col:nth-child(2) .ops-mr-track { background: #f1f5f9; }
.ops-mr-col:nth-child(4) .ops-mr-track { background: #e0f2fe; }
.ops-mr-col:nth-child(5) .ops-mr-track { background: #ccfbf1; }

.ops-mr-fill {
    width: 100%;
    min-height: 3px;
    border-radius: 8px 8px 0 0;
}

.ops-mr-fill--done,
.ops-mr-dot.ops-mr-fill--done { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.ops-mr-fill--upcoming,
.ops-mr-dot.ops-mr-fill--upcoming { background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.ops-mr-fill--online,
.ops-mr-dot.ops-mr-fill--online { background: linear-gradient(180deg, #38bdf8, #0284c7); }
.ops-mr-fill--offline,
.ops-mr-dot.ops-mr-fill--offline { background: linear-gradient(180deg, #2dd4bf, #0f766e); }

.ops-mr-split {
    width: 1px;
    align-self: stretch;
    background: #e2e8f0;
}

.ops-mr-schools {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ops-mr-school-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) 2rem;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
}

.ops-mr-school-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #334155;
}

.ops-mr-school-track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.ops-mr-school-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 999px;
    min-width: 4px;
}

.ops-mr-school-total {
    text-align: right;
    font-weight: 600;
    color: #0f172a;
}

.ops-reports-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ops-reports-panel-head h4 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    color: #0f172a;
}

.ops-reports-panel-head p {
    margin: 0;
    font-size: 0.86rem;
}

.ops-reports-panel-aside {
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.ops-reports-panel-aside strong {
    display: block;
    margin-bottom: 2px;
}

.ops-reports-panel-aside--blue {
    background: #eff6ff;
    color: #1e3a8a;
}

.ops-reports-panel-aside--green {
    background: #f0fdf4;
    color: #14532d;
}

.ops-reports-panel-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.ops-reports-panel-row > .input-group {
    margin-bottom: 0;
}

.ops-reports-filter-actions-label {
    display: block;
    visibility: hidden;
}

.ops-reports-filter-actions .ops-reports-panel-actions {
    min-height: 48px;
}

.ops-reports-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ops-reports-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ops-reports-pill {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.ops-reports-pill:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.ops-reports-pill.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.ops-reports-pills--months {
    margin-top: -4px;
    align-items: center;
}
.ops-reports-pills--months .ops-reports-pill {
    padding: 6px 10px;
    min-width: 40px;
    text-align: center;
}
.ops-reports-year-select {
    display: inline-block;
    width: auto;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 6px 28px 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 14px) 50%,
        calc(100% - 8px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.ops-reports-range-summary {
    margin: 0 0 12px;
    font-size: 0.86rem;
}

.ops-reports-export-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-reports-window-group {
    min-width: 220px;
}

.ops-reports-detail-body {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 16px 18px 18px;
    min-height: 180px;
}

.ops-ov {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
}

.ops-ov-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.ops-ov-head__copy {
    flex: 1 1 200px;
    min-width: 0;
}

.ops-ov-head__copy h4 {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.ops-ov-head__copy p {
    margin: 0;
    font-size: 0.84rem;
}

.ops-ov-head .ops-coord-filter {
    margin: 0;
    flex: 1 1 280px;
    min-width: 0;
}

.ops-ov-filter-panel {
    padding: 12px 16px 14px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ops-ov-banners {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
}

.ops-ov-banners .cr-alert,
.ops-ov-banners .cr-report__loading--inline {
    margin: 0;
    border-radius: 12px;
}

.ops-ov .cr-report__loading {
    padding: 36px 16px;
}

.ops-ov-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 10px;
}

.ops-ov-toolbar .ops-ov-rating-mix {
    margin: 0;
}

.ops-ov-toolbar-copy h4 {
    margin: 0 0 2px;
    font-size: 1rem;
}

.ops-ov-toolbar-copy p {
    margin: 0;
    font-size: 0.84rem;
}

.ops-ov-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
}

.ops-ov-filters .input-group {
    margin: 0;
    min-width: 180px;
}

.ops-ov-filters-search {
    min-width: 200px;
}

.ops-ov-filter-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 2px;
}

.ops-ov-filters-search-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex: 1 1 220px;
    min-width: 0;
}

.ops-ov-filters-search-row .ops-ov-filters-search {
    flex: 1;
    min-width: 0;
}

.ops-ov-filters-search-row .ops-ov-filter-actions {
    flex-shrink: 0;
    padding-bottom: 0;
}

.ops-ov-filters--progress .input-group,
.ops-ov-filters--inline .input-group {
    min-width: 140px;
}

.ops-ov-filter-block {
    flex: 1 1 100%;
    min-width: 0;
}

.ops-ov-filter-block--full {
    width: 100%;
}

.ops-ov-filter-block__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ops-ov-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-ov-filter-pills--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.ops-ov-filter-pill {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ops-ov-filter-pill:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.ops-ov-filter-pill:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.ops-ov-filter-pill.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.ops-ov-filter-pills-empty {
    font-size: 0.82rem;
    padding: 6px 2px;
    white-space: nowrap;
}

.ops-ov-active-filters {
    margin: 0;
    padding: 10px 16px 12px;
    border: 0;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    background: #f8fafc;
}

.ops-ov-active-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ops-ov-active-filters__head strong {
    font-size: 0.84rem;
    color: #0f172a;
}

.ops-ov-active-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-ov-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.ops-ov-filter-chip.is-static {
    background: #e2e8f0;
    color: #334155;
}

.ops-ov-filter-chip.is-removable {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
}

.ops-ov-filter-chip.is-removable:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.ops-ov-filter-chip.is-removable i {
    font-size: 0.68rem;
    opacity: 0.85;
}

.ops-ov-hero {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.ops-ov-hero--report {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
}

.ops-ov-hero--sub {
    margin-top: -2px;
}

.ops-ov-stat--students {
    background: #faf5ff;
    border-color: #e9d5ff;
}

.ops-ov-stat--students .ops-ov-stat-value {
    color: #6d28d9;
}

.ops-ov-graph--students {
    margin-bottom: 0;
}

.ops-ov-stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 0;
}

.ops-ov-stat--l1 { background: #eff6ff; border-color: #bfdbfe; }
.ops-ov-stat--l2 { background: #f5f3ff; border-color: #ddd6fe; }
.ops-ov-stat--l3 { background: #f0fdfa; border-color: #99f6e4; }
.ops-ov-stat--online { background: #f0f9ff; border-color: #bae6fd; }
.ops-ov-stat--offline { background: #fffbeb; border-color: #fde68a; }

.ops-ov-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.01em;
}

.ops-ov-stat-value {
    display: block;
    font-size: 1.55rem;
    line-height: 1.2;
    margin: 4px 0 0;
    color: #0f172a;
}

.ops-ov-stat--l1 .ops-ov-stat-value,
.ops-ov-stat--l2 .ops-ov-stat-value,
.ops-ov-stat--l3 .ops-ov-stat-value,
.ops-ov-stat--online .ops-ov-stat-value,
.ops-ov-stat--offline .ops-ov-stat-value {
    font-size: 1.7rem;
}

.ops-ov-stat-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-top: 8px;
}

.ops-ov-stat-fill {
    height: 100%;
    border-radius: 999px;
    background: #2563eb;
}

.ops-ov-stat--l2 .ops-ov-stat-fill { background: #7c3aed; }
.ops-ov-stat--l3 .ops-ov-stat-fill { background: #0f766e; }
.ops-ov-stat--online .ops-ov-stat-fill { background: #0284c7; }
.ops-ov-stat--offline .ops-ov-stat-fill { background: #d97706; }

.ops-ov-note {
    margin: -6px 0 12px;
    font-size: 0.84rem;
}

.ops-ov-graph {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px 10px;
    margin-bottom: 0;
    background: #fff;
    min-width: 0;
}

.ops-ov-graph-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.ops-ov-graph-head h5 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

.ops-ov-graph-body {
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    gap: 8px 16px;
    align-items: start;
}

.ops-ov-simple {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 8px 4px 4px;
    overflow-x: auto;
}

.ops-ov-simple-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 56px;
    flex-shrink: 0;
}

.ops-ov-simple-col span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
}

.ops-ov-simple-split {
    width: 1px;
    height: 88px;
    margin: 0 4px 22px;
    background: #cbd5e1;
    align-self: flex-end;
    flex-shrink: 0;
}

.ops-ov-simple-track {
    width: 32px;
    height: 88px;
    border-radius: 8px 8px 0 0;
    background: #f1f5f9;
    border-bottom: 2px solid #94a3b8;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.ops-ov-simple-fill {
    width: 100%;
    min-height: 0;
    border-radius: 6px 6px 0 0;
}

.ops-ov-simple-col strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.ops-ov-fill--l1 { background: #2563eb; }
.ops-ov-fill--l2 { background: #7c3aed; }
.ops-ov-fill--l3 { background: #0f766e; }
.ops-ov-fill--other { background: #94a3b8; }
.ops-ov-fill--online { background: #0284c7; }
.ops-ov-fill--offline { background: #d97706; }

.ops-ov-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
}

.ops-ov-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    margin-right: 5px;
    vertical-align: middle;
}

.ops-ov-school-bars {
    max-height: 340px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 0;
}

.ops-ov-chart-row {
    display: grid;
    grid-template-columns: minmax(120px, 30%) minmax(0, 1fr) minmax(78px, auto);
    align-items: center;
    gap: 10px;
}

.ops-ov-chart-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-ov-chart-stack {
    display: flex;
    align-items: stretch;
    min-height: 22px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}

.ops-ov-seg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 22px;
}

.ops-ov-chart-total {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    text-align: right;
}

.ops-ov-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 14px;
    align-items: start;
}

.ops-ov-panel {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 12px 8px;
    background: #fff;
    min-width: 0;
}

.ops-ov-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.ops-ov-panel-head h5 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

.ops-ov-table-wrap {
    margin: 0;
    max-height: 420px;
    overflow: auto;
}

.ops-ov-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}

.ops-ov-grid-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}

.ops-ov-grid-table th:nth-child(n+2),
.ops-ov-grid-table td:nth-child(n+2) {
    text-align: center;
    width: 58px;
}

.ops-ov-fold {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2px 12px 6px;
    margin-bottom: 10px;
    background: #fff;
}

.ops-ov-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 340px);
    gap: 12px;
    align-items: start;
}

.ops-ov-charts {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 12px;
    margin: 0;
    padding: 0 16px 16px;
    border-top: 0;
}

.ops-ov-glance {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 4px 16px 16px;
    margin: 0;
    border-top: 0;
}

.ops-ov-glance__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 12px;
}

.ops-ov-rating-mix--top {
    margin: 0;
    max-width: 100%;
    text-align: right;
}

.ops-ov-glance__head h5 {
    margin: 0 0 2px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}

.ops-ov-glance__head p {
    margin: 0;
    font-size: 0.82rem;
}

.ops-ov-glance__head .ops-ov-rating-mix {
    margin: 0;
}

.ops-ov-glance__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
}

.ops-ov-glance-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px 14px 10px;
    min-width: 0;
    background: #fff;
}

.ops-ov-glance-card--completed {
    background: #f0fdfa;
    border-color: #99f6e4;
}

.ops-ov-glance-card--coordinators {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ops-ov-glance-card--students {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.ops-ov-glance-card--mode {
    background: #fffbeb;
    border-color: #fde68a;
}

.ops-ov-glance-card__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.ops-ov-glance-card__value {
    display: block;
    margin-top: 4px;
    font-size: 1.55rem;
    line-height: 1.1;
    color: #0f172a;
}

.ops-ov-glance-card--completed .ops-ov-glance-card__value { color: #0f766e; }
.ops-ov-glance-card--coordinators .ops-ov-glance-card__value { color: #1d4ed8; }
.ops-ov-glance-card--students .ops-ov-glance-card__value { color: #6d28d9; }
.ops-ov-glance-card--mode .ops-ov-glance-card__value { color: #b45309; }

.ops-ov-glance-card__note {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    color: #64748b;
}

.ops-ov-glance__charts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.ops-ov-glance-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 0;
}

.ops-ov-glance-panel h6 {
    margin: 0 0 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #334155;
}

.ops-ov-glance-bar {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ops-ov-glance-bar:last-child {
    margin-bottom: 0;
}

.ops-ov-glance-bar__label {
    font-size: 0.78rem;
    color: #475569;
}

.ops-ov-glance-bar__track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.ops-ov-glance-bar__fill {
    height: 100%;
    border-radius: 999px;
}

.ops-ov-glance-bar__value {
    font-size: 0.82rem;
    text-align: right;
    color: #0f172a;
}

.ops-ov-top-schools {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.ops-ov-top-schools__head h5 {
    margin: 0 0 2px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}

.ops-ov-top-schools__head p {
    margin: 0;
    font-size: 0.8rem;
}

.ops-ov-top-schools__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ops-ov-top-school {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px 10px 8px;
    min-width: 0;
}

.ops-ov-top-school strong {
    display: block;
    font-size: 0.8rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ops-ov-top-school__metric {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    color: #64748b;
}

.ops-ov-top-school__track {
    margin-top: 6px;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.ops-ov-top-school__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

@media (max-width: 1100px) {
    .ops-ov-glance__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-ov-glance__charts,
    .ops-ov-charts {
        grid-template-columns: 1fr;
    }

    .ops-ov-top-schools__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ops-ov-glance__cards,
    .ops-ov-top-schools__grid {
        grid-template-columns: 1fr;
    }
}

.ops-ov-lists {
    border: 0;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    margin: 0;
}

.ops-ov-lists__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 0;
    border-bottom: 0;
    background: transparent;
}

.ops-ov-list-tab {
    border: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 7px 14px;
    margin-bottom: 0;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.ops-ov-list-tab:hover {
    color: #0f172a;
    background: #fff;
    border-color: #cbd5e1;
}

.ops-ov-list-tab:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.ops-ov-list-tab.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.ops-ov-lists__body {
    padding: 12px 16px 16px;
}

.ops-ov-lists__body .ops-ov-table-wrap {
    max-height: 480px;
}

.ops-ov-chart-total {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    text-align: right;
}

.ops-ov-main:has(.ops-ov-fold[open]) {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 340px);
}

.ops-ov-main-chart,
.ops-ov-main-folds {
    min-width: 0;
}

.ops-ov-main-folds {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ops-ov-main-folds .ops-ov-fold {
    margin-bottom: 0;
}

.ops-ov-main-folds .ops-ov-table-wrap {
    max-height: 240px;
}

.ops-ov-main:has(.ops-ov-fold[open]) .ops-ov-table-wrap {
    max-height: 420px;
}

.ops-ov-main:has(.ops-ov-fold[open]) .ops-ov-table-wrap--people {
    max-height: 520px;
}

.ops-ov-person-detail .table-responsive {
    overflow-x: auto;
}

.ops-ov-fold > summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    color: #334155;
    padding: 8px 0;
    list-style: none;
}

.ops-ov-fold > summary::-webkit-details-marker {
    display: none;
}

.ops-ov-fold > summary::before {
    content: '';
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    margin-right: 8px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(-45deg);
    vertical-align: 2px;
}

.ops-ov-fold[open] > summary::before {
    transform: rotate(45deg);
    vertical-align: 3px;
}

.ops-ov-fold-body {
    padding: 0 0 6px;
}

.ops-ov-fold-body .ops-ov-filters {
    margin-bottom: 10px;
}

.ops-ov-progress-table td {
    vertical-align: middle;
    font-size: 0.82rem;
}

.ops-ov-cov {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.ops-ov-cov.is-yes {
    background: #ecfdf5;
    color: #047857;
}

.ops-ov-cov.is-no {
    background: #f8fafc;
    color: #94a3b8;
}

.ops-ov-sess-cell {
    white-space: nowrap;
}

.ops-ov-sess {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0 2px 2px 0;
    border-radius: 4px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
}

.ops-ov-sess.is-on {
    background: #0f766e;
    color: #fff;
}

.ops-ov-table-wrap--people {
    max-height: none;
}

.ops-ov-chevron {
    width: 12px;
    margin-right: 8px;
    color: #94a3b8;
    font-size: 0.72rem;
}

.ops-ov-people-table tbody tr.ops-ov-person-detail {
    cursor: default;
}

.ops-ov-people-table tbody tr.ops-ov-person-detail:hover {
    background: transparent;
}

.ops-ov-person-detail td {
    background: #f8fafc;
    padding: 10px 12px 14px !important;
    text-align: left !important;
    width: auto !important;
}

.ops-ov-person-detail .ops-ov-empty {
    margin: 4px 0 0;
}

.ops-ov-people-table tbody tr.ops-ov-person-row {
    cursor: pointer;
}

.ops-ov-people-table tbody tr.ops-ov-person-row:hover {
    background: #f8fafc;
}

.ops-ov-people-table tbody tr.ops-ov-person-row.is-open {
    background: #f5f3ff;
}

.ops-ov-person-name {
    font-weight: 600;
    color: #0f172a;
}

.ops-ov-rating-mix {
    margin: 0 0 10px;
    font-size: 0.84rem;
    color: #475569;
}

.ops-ov-rating-mix--top {
    margin: 0 0 8px;
}

.ops-ov-rating-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.ops-ov-rating-pill--high {
    background: #ecfdf5;
    color: #047857;
}

.ops-ov-rating-pill--medium {
    background: #fffbeb;
    color: #b45309;
}

.ops-ov-rating-pill--low {
    background: #fef2f2;
    color: #b91c1c;
}

.ops-ov-notes {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.ops-ov-notes h6 {
    margin: 0 0 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #334155;
}

.ops-ov-notes-table {
    min-width: 980px;
}

.ops-ov-notes-table td {
    vertical-align: top;
    font-size: 0.82rem;
}

.ops-ov-notes-table th:nth-child(1),
.ops-ov-notes-table td:nth-child(1),
.ops-ov-notes-table th:nth-child(3),
.ops-ov-notes-table td:nth-child(3),
.ops-ov-notes-table th:nth-child(4),
.ops-ov-notes-table td:nth-child(4),
.ops-ov-notes-table th:nth-child(5),
.ops-ov-notes-table td:nth-child(5) {
    white-space: nowrap;
}

.ops-ov-notes-table th:nth-child(7),
.ops-ov-notes-table td:nth-child(7),
.ops-ov-notes-table th:nth-child(9),
.ops-ov-notes-table td:nth-child(9),
.ops-ov-notes-table th:nth-child(10),
.ops-ov-notes-table td:nth-child(10) {
    min-width: 140px;
    white-space: normal;
}

.ops-ov-note-sub {
    font-size: 0.74rem;
    font-weight: 500;
    margin-top: 2px;
}

.ops-ov-empty {
    margin: 4px 0 8px;
    font-size: 0.84rem;
}

.ops-ov-logs-card {
    margin-bottom: 14px;
}

.ops-ov-logs-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.ops-ov-logs-hint {
    margin: 0 0 12px;
    font-size: 0.86rem;
}

@media (max-width: 1200px) {
    .ops-ov-hero {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .ops-ov-split {
        grid-template-columns: 1fr;
    }
    .ops-ov-graph-body,
    .ops-ov-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ops-ov-hero {
        grid-template-columns: 1fr 1fr;
    }
    .ops-ov-filters {
        width: 100%;
    }
    .ops-ov-filters-search {
        flex: 1;
    }
}

.ops-reports-activity-fold {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 8px 16px 12px;
}

.ops-reports-activity-fold > summary {
    cursor: pointer;
    font-weight: 700;
    padding: 8px 0;
    color: #334155;
}

.ops-reports-activity-fold-body {
    padding-top: 8px;
}

.ops-weekly-report-host {
    width: 100%;
}

.weekly-report-inline {
    width: 100%;
}

.weekly-report-inline-head {
    margin-bottom: 8px;
}

.ops-reports-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 16px 18px;
}

.ops-reports-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ops-reports-card-head h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.ops-reports-card-head p {
    margin: 0;
    font-size: 0.88rem;
}

.ops-reports-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.ops-reports-filters > .input-group {
    margin-bottom: 0;
}

.ops-reports-filters > .input-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    min-height: 1.2em;
}

.ops-reports-filters > .input-group select,
.ops-reports-filters > .input-group input[type="date"] {
    /* Match Weekly Report: no fixed height — global input-group padding must fit. */
    min-height: 48px;
    box-sizing: border-box;
    line-height: 1.35;
}

.ops-reports-app-group {
    flex: 0 1 140px;
    min-width: 120px;
}

.ops-reports-app-group select {
    width: 100%;
}

.ops-reports-state-group {
    flex: 0 1 180px;
    min-width: 150px;
}

.ops-reports-state-group select {
    width: 100%;
}

.ops-reports-staff-group {
    flex: 1 1 280px;
    min-width: 220px;
}

.ops-reports-staff-group select {
    width: 100%;
}

.ops-reports-role-group {
    flex: 0 1 180px;
    min-width: 140px;
}

.ops-reports-role-group select {
    width: 100%;
}

.ops-reports-range-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-height: 40px;
    margin-bottom: 0;
}

.ops-reports-range-actions .btn {
    height: 40px;
    padding: 0 14px;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ops-reports-people-panel {
    margin: 4px 0 14px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.ops-reports-people-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.ops-reports-people-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    margin: 0;
}

.ops-reports-people-hint {
    font-size: 0.82rem;
    margin: 0;
}

.ops-reports-people-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 6px 10px;
}

.ops-reports-people-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #f8fafc;
}

.ops-reports-people-item.is-viewing {
    border-color: #93c5fd;
    background: #eff6ff;
}

.ops-reports-people-item--all {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 4px;
    padding-bottom: 4px;
}

.ops-reports-people-name--all {
    font-weight: 600;
}

.ops-reports-people-check {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.ops-reports-people-name {
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    font: inherit;
    color: #0f172a;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.ops-reports-people-name:hover {
    text-decoration: underline;
}

.ops-reports-people-role {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.ops-reports-people-viewing {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ops-reports-send-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 14px;
}

.ops-reports-send-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ops-reports-send-hint {
    margin: 0;
    max-width: 52rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.ops-reports-send-status {
    margin: 0;
    font-size: 0.88rem;
    color: #0f766e;
    font-weight: 600;
}

.ops-reports-selected {
    margin: 0 0 10px;
    font-size: 0.9rem;
}

.ops-reports-empty {
    margin: 8px 0 0;
}

.ops-reports-table-wrap {
    max-height: min(55vh, 520px);
    overflow: auto;
}

/* —— Offline Field Duty (Config) —— */
.offline-duty-section {
    width: 100%;
}

.offline-duty-intro {
    margin-bottom: 4px;
}

.offline-duty-reminder {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.offline-duty-reminder-title {
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offline-duty-reminder ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88rem;
}

.offline-duty-reminder li {
    margin: 2px 0;
}

.offline-duty-lock-banner {
    margin: 0 18px 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.88rem;
}

.offline-duty-status-summary {
    margin: 0 18px 8px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.offline-duty-status-modal {
    width: min(480px, 94vw);
}

.offline-duty-who-went {
    margin: 0 18px 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.offline-duty-agenda-main .offline-duty-who-went,
.offline-duty-day-card .offline-duty-who-went {
    margin: 8px 0 0;
}

.offline-duty-who-went-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.offline-duty-who-went-label span {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.offline-duty-who-went-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
}

.offline-duty-who-went-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.offline-duty-who-went-name {
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.offline-duty-who-went-role {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 8px;
}

.offline-duty-who-went-role--lead {
    background: #dbeafe;
    color: #1d4ed8;
}

.offline-duty-who-went-role--team {
    background: #dcfce7;
    color: #15803d;
}

.offline-duty-who-went-empty {
    margin: 0;
    font-size: 0.86rem;
}

.offline-duty-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
    background: #e2e8f0;
    color: #334155;
}

.offline-duty-status-pill--planned {
    background: #e0f2fe;
    color: #075985;
}

.offline-duty-status-pill--pending {
    background: #ffedd5;
    color: #9a3412;
}

.offline-duty-status-pill--completed {
    background: #dcfce7;
    color: #166534;
}

.offline-duty-status-pill--cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.offline-duty-status-pill--lg {
    padding: 4px 12px;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.offline-duty-chip--planned {
    background: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

.offline-duty-chip--planned:hover {
    background: #dbeafe;
}

.offline-duty-chip--completed {
    background: #ecfdf5;
    color: #065f46;
    border-left-color: #22c55e;
}

.offline-duty-chip--completed:hover {
    background: #d1fae5;
}

.offline-duty-chip--pending {
    background: #fff7ed;
    color: #9a3412;
    border-left-color: #f97316;
}

.offline-duty-chip--pending:hover {
    background: #ffedd5;
}

.offline-duty-chip--cancelled {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
    opacity: 0.85;
}

.offline-duty-chip--cancelled:hover {
    background: #fee2e2;
}

.offline-duty-chip-status {
    display: inline-flex;
    margin-top: 2px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(15, 23, 42, 0.08);
}

.offline-duty-chip--planned .offline-duty-chip-status {
    background: #bfdbfe;
    color: #1e3a8a;
}

.offline-duty-chip--pending .offline-duty-chip-status {
    background: #fed7aa;
    color: #9a3412;
}

.offline-duty-chip--completed .offline-duty-chip-status {
    background: #bbf7d0;
    color: #14532d;
}

.offline-duty-chip--cancelled .offline-duty-chip-status {
    background: #fecaca;
    color: #7f1d1d;
}

.offline-duty-intro p {
    margin: 0;
    font-size: 0.9rem;
}

.offline-duty-cell {
    cursor: pointer;
}

.offline-duty-cell--selected {
    border-color: #f59e0b;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
    background: #fffbeb;
}

.offline-duty-events {
    gap: 4px;
}

.offline-duty-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: 100%;
    padding: 4px 6px;
    border: none;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
    text-align: left;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1.25;
}

.offline-duty-chip:hover {
    background: #dbeafe;
}

.offline-duty-chip-name {
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offline-duty-chip-time {
    opacity: 0.85;
}

.offline-duty-more {
    font-size: 0.7rem;
    color: #64748b;
    padding-left: 2px;
}

.offline-duty-day-panel {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offline-duty-day-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.offline-duty-day-panel-head h4 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.offline-duty-day-card {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #94a3b8;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.88rem;
}

.offline-duty-day-card--planned {
    border-left-color: #3b82f6;
}

.offline-duty-day-card--pending {
    border-left-color: #f97316;
}

.offline-duty-day-card--completed {
    border-left-color: #22c55e;
}

.offline-duty-day-card--cancelled {
    border-left-color: #ef4444;
}

.offline-duty-day-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.offline-duty-day-note {
    margin-top: 2px;
    font-size: 0.85rem;
    color: #475569;
}

.offline-duty-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 10px 0 4px;
    font-size: 0.8rem;
    color: #475569;
}

.offline-duty-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.offline-duty-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.offline-duty-legend-dot--planned {
    background: #3b82f6;
}

.offline-duty-legend-dot--pending {
    background: #f97316;
}

.offline-duty-legend-dot--completed {
    background: #22c55e;
}

.offline-duty-legend-dot--cancelled {
    background: #ef4444;
}

.offline-duty-agenda-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.offline-duty-agenda-head h4 {
    margin: 0;
}

.offline-duty-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.offline-duty-status-tab {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.offline-duty-status-tab:hover {
    background: #f1f5f9;
}

.offline-duty-status-tab.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.offline-duty-filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 2px;
}

.offline-duty-status-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.offline-duty-status-control-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.offline-duty-status-select {
    appearance: auto;
    min-width: 132px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
}

.offline-duty-status-select--planned {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1e40af;
}

.offline-duty-status-select--pending {
    border-color: #fdba74;
    background: #fff7ed;
    color: #9a3412;
}

.offline-duty-status-select--completed {
    border-color: #86efac;
    background: #ecfdf5;
    color: #166534;
}

.offline-duty-status-select--cancelled {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.offline-duty-quick-btn {
    font-weight: 700;
}

.offline-duty-quick-btn--done {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.offline-duty-quick-btn--done:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.offline-duty-quick-btn--pending {
    background: #ea580c;
    border-color: #ea580c;
    color: #fff;
}

.offline-duty-quick-btn--pending:hover {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
}

.offline-duty-agenda .offline-duty-agenda-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    list-style: none;
}

.offline-duty-agenda-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.88rem;
    min-width: 0;
    flex: 1;
}

.offline-duty-agenda-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.offline-duty-modal-overlay {
    z-index: 12000;
}

.offline-duty-modal {
    width: min(640px, 94vw);
    max-height: min(92vh, 820px);
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.offline-duty-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 8px;
}

.offline-duty-modal-head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.offline-duty-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    padding: 4px 20px 12px;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.offline-duty-form-grid .offline-duty-span-2 {
    grid-column: 1 / -1;
}

.offline-duty-duration-line {
    margin: -6px 0 0;
    color: #64748b;
}

.offline-duty-org-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.offline-duty-org-team {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 16px;
    min-width: 72px;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #334155;
    user-select: none;
}

.offline-duty-org-team.is-on {
    border-color: #0f766e;
    background: #ccfbf1;
    color: #0f766e;
    box-shadow: inset 0 0 0 1px #0f766e;
}

.offline-duty-org-team:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.offline-duty-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.offline-duty-rating-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 88px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.offline-duty-rating-btn:hover {
    border-color: #94a3b8;
    background: #fff;
}

.offline-duty-rating-btn.is-active {
    border-color: #0f766e;
    background: #ecfdf5;
    color: #115e59;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

.offline-duty-rating-face {
    font-size: 1.7rem;
    line-height: 1;
}

.offline-duty-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.82rem;
    background: #f1f5f9;
    color: #334155;
}

.offline-duty-rating-pill--low {
    background: #fef2f2;
    color: #991b1b;
}

.offline-duty-rating-pill--medium {
    background: #fffbeb;
    color: #92400e;
}

.offline-duty-rating-pill--high {
    background: #ecfdf5;
    color: #065f46;
}

.offline-duty-type-pills {
    display: flex;
    gap: 8px;
}

.offline-duty-type-pill {
    flex: 1;
    margin: 0;
    padding: 8px 10px;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.offline-duty-type-pill.is-on {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px #2563eb;
}

.offline-duty-type-pill:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.offline-duty-form-grid .input-group {
    margin: 0;
}

.offline-duty-form-grid label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.offline-duty-time-select {
    width: 100%;
    min-height: 40px;
    font-size: 0.95rem;
    font-weight: 600;
}

.offline-duty-mode-toggle {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.offline-duty-mode-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.offline-duty-mode-btn + .offline-duty-mode-btn {
    border-left: 1px solid #cbd5e1;
}

.offline-duty-mode-btn.is-active {
    background: #0f172a;
    color: #fff;
}

.offline-duty-mode-btn.is-active .fa-video,
.offline-duty-mode-btn.is-active .fa-map-marker-alt {
    color: #fff;
}

.offline-duty-toolbar {
    flex-wrap: wrap;
    gap: 8px;
}

.offline-duty-mode-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.offline-duty-mode-pill--online {
    background: #dbeafe;
    color: #1d4ed8;
}

.offline-duty-mode-pill--offline {
    background: #dcfce7;
    color: #166534;
}

.offline-duty-chip-mode--online {
    border-left-color: #3b82f6;
}

.offline-duty-chip-mode--offline {
    border-left-color: #10b981;
}

.offline-duty-time-wrap {
    width: 100%;
}

.offline-duty-time-wrap .meet-time-picker {
    width: 100%;
    max-width: 280px;
}

.offline-duty-hint {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.offline-duty-form-error {
    margin: 0 18px 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.88rem;
}

.offline-duty-selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 28px;
}

.offline-duty-team-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.offline-duty-team-filters select {
    flex: 0 1 160px;
    min-width: 140px;
}

.offline-duty-team-filters input[type="search"] {
    flex: 1 1 160px;
    min-width: 130px;
}

.offline-duty-chip-selected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.8rem;
}

.offline-duty-chip-selected button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #0c4a6e;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.offline-duty-team-list {
    margin-top: 8px;
    max-height: 240px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
}

.offline-duty-team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.86rem;
}

.offline-duty-team-row:hover {
    background: #f1f5f9;
}

.offline-duty-team-row.is-locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.offline-duty-team-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: #0f172a;
}

.offline-duty-team-role {
    font-size: 0.75rem;
    color: #64748b;
    max-width: 55%;
    text-align: right;
    line-height: 1.3;
}

.offline-duty-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px 16px;
    border-top: 1px solid #e2e8f0;
    margin: 0;
    flex-shrink: 0;
    background: #fff;
}

@media (max-width: 640px) {
    .offline-duty-form-grid {
        grid-template-columns: 1fr;
    }

    .mentor-cal-cell.offline-duty-cell {
        min-height: 72px;
    }
}

/* Global busy / buffering overlay */
.app-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(2px);
}

.app-busy-overlay[hidden] {
    display: none !important;
}

.app-busy-overlay__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    padding: 22px 28px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
}

.app-busy-overlay__spinner {
    font-size: 1.75rem;
    color: #0f766e;
}

.app-busy-overlay__msg {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}


/* School Feedback (Config) */
.sf-module { display: flex; flex-direction: column; gap: 16px; }
.sf-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.sf-list-toolbar__meta {
    flex: 1 1 auto;
    min-width: 0;
}
.sf-list-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.sf-export-btn {
    white-space: nowrap;
}
.sf-filter-btn {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 1.05rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.sf-filter-btn:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}
.sf-filter-btn.is-open,
.sf-filter-btn.has-active {
    border-color: #0f766e;
    color: #0f766e;
}
.sf-filter-btn__badge {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0f766e;
    color: #fff;
    font-size: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.sf-filters {
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.sf-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.sf-filters__head strong {
    font-size: 0.95rem;
    color: #0f172a;
}
.sf-filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 14px;
}
.sf-filters__grid .input-group {
    margin: 0;
}
.sf-filters__grid label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}
.sf-filters__grid select,
.sf-filters__grid input[type="date"] {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
}
.sf-filters__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.sf-list-summary {
    margin: 0;
    font-size: 0.88rem;
    color: #334155;
}
.sf-list-summary--muted {
    color: #64748b;
}
.sf-list-count {
    margin: 0 0 8px;
    font-size: 0.88rem;
    color: #64748b;
}
.sf-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px 22px;
}
.sf-card__header h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sf-card__header p { margin: 0 0 14px; }
.sf-subtitle {
    margin: 18px 0 10px;
    font-size: 0.95rem;
    color: #334155;
}
.sf-req {
    color: #dc2626;
    font-weight: 700;
    margin-left: 2px;
}
.sf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 16px;
}
.sf-bands {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sf-band {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(140px, 200px);
    align-items: end;
    gap: 12px 16px;
}
.sf-band--infra {
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 280px) minmax(140px, 220px);
}
.sf-band__choice,
.sf-band__count {
    margin: 0;
}
.sf-band__count input {
    width: 100%;
    min-height: 38px;
}
@media (max-width: 640px) {
    .sf-band,
    .sf-band--infra {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}
.sf-error {
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.88rem;
}
.sf-yesno {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sf-yesno__opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.88rem;
    color: #334155;
}
.sf-yesno__opt:hover {
    border-color: #94a3b8;
    background: #fff;
}
.sf-yesno__circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    background: #fff;
    box-sizing: border-box;
    flex-shrink: 0;
}
.sf-yesno__opt.is-active .sf-yesno__circle {
    border-width: 5px;
}
.sf-yesno__opt.is-active.is-yes {
    border-color: #0f766e;
    background: #ecfdf5;
    color: #115e59;
}
.sf-yesno__opt.is-active.is-yes .sf-yesno__circle {
    border-color: #0f766e;
}
.sf-yesno__opt.is-active.is-no {
    border-color: #b91c1c;
    background: #fef2f2;
    color: #991b1b;
}
.sf-yesno__opt.is-active.is-no .sf-yesno__circle {
    border-color: #b91c1c;
}
.sf-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.sf-rating__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 88px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.85rem;
    color: #334155;
}
.sf-rating__btn:hover { border-color: #94a3b8; background: #fff; }
.sf-rating__btn.is-active {
    border-color: #0f766e;
    background: #ecfdf5;
    color: #115e59;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}
.sf-rating__face { font-size: 1.6rem; line-height: 1; }
.sf-actions { margin-top: 18px; }
.sf-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.82rem;
    background: #f1f5f9;
}
.sf-rating-pill--low { background: #fef2f2; color: #991b1b; }
.sf-rating-pill--medium { background: #fffbeb; color: #92400e; }
.sf-rating-pill--high { background: #ecfdf5; color: #065f46; }
.sf-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    padding: 16px;
}
.sf-detail-modal {
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}
.sf-detail-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}
.sf-detail-modal__head h3 { margin: 0; font-size: 1.05rem; }
.sf-detail-modal__body { padding: 14px 16px 18px; }
.sf-detail-modal__body p { margin: 0 0 8px; font-size: 0.92rem; color: #334155; }

/* Coordinator report (cr-*) */
.cr-report {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cr-report__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 220px;
    color: #64748b;
}

.cr-report__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 16px;
    padding: 20px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f766e 100%);
    color: #f8fafc;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.cr-report__eyebrow {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.cr-report__hero-copy h3 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.cr-report__sub {
    margin: 0;
    font-size: 0.84rem;
    color: #cbd5e1;
}

.cr-report__hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
}

.cr-kpi {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
}

.cr-kpi span {
    display: block;
    font-size: 0.72rem;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.cr-kpi strong {
    font-size: 1.25rem;
    line-height: 1;
}

.cr-kpi--students { background: rgba(255, 255, 255, 0.12); }

.cr-featured-schools {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.cr-featured-schools__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cr-featured-schools__head strong {
    display: block;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.cr-featured-schools__head p {
    margin: 0;
    font-size: 0.82rem;
}

.cr-featured-schools__count {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.cr-featured-schools__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cr-featured-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    background: #f8fafc;
}

.cr-featured-card__head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.cr-featured-card__head strong {
    font-size: 0.86rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cr-featured-card__head span {
    font-size: 0.74rem;
    color: #64748b;
}

.cr-featured-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.cr-featured-card__pill {
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.cr-featured-card__pill--l1 { color: #1d4ed8; border-color: #bfdbfe; }
.cr-featured-card__pill--l2 { color: #6d28d9; border-color: #ddd6fe; }
.cr-featured-card__pill--l3 { color: #0f766e; border-color: #99f6e4; }

.cr-schools-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.84rem;
    color: #334155;
}

.cr-schools-summary__l1 strong { color: #2563eb; }
.cr-schools-summary__l2 strong { color: #7c3aed; }
.cr-schools-summary__l3 strong { color: #0d9488; }

.cr-report__coverage {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.84rem;
    color: #334155;
}

.cr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cr-tab {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.cr-tab.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.cr-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cr-panel__meta {
    margin: 0;
    font-size: 0.82rem;
}

.cr-empty {
    margin: 0;
    padding: 24px 12px;
    text-align: center;
}

.cr-alert {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.84rem;
}

.cr-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.cr-alert--warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.cr-school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.cr-school-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.cr-school-card__head h5 {
    margin: 0 0 4px;
    font-size: 0.98rem;
    color: #0f172a;
}

.cr-school-card__students {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.cr-school-card__foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.76rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.cr-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.76rem;
    color: #64748b;
    margin-bottom: 4px;
}

.cr-progress__meta strong {
    color: #0f172a;
    font-size: 0.78rem;
}

.cr-progress__track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.cr-progress__fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.25s ease;
}

.cr-progress--l1 .cr-progress__fill { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.cr-progress--l2 .cr-progress__fill { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.cr-progress--l3 .cr-progress__fill { background: linear-gradient(90deg, #14b8a6, #0d9488); }

.cr-coord-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cr-coord-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.cr-coord-card.is-open {
    border-color: #93c5fd;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.cr-coord-card__head {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.cr-coord-card__head strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
}

.cr-coord-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.76rem;
    color: #64748b;
}

.cr-coord-card__stats span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cr-coord-card__body {
    padding: 0 16px 16px;
    border-top: 1px solid #f1f5f9;
}

.cr-coord-schools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    padding-top: 14px;
}

.cr-coord-school {
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cr-coord-school__head {
    margin-bottom: 8px;
}

.cr-coord-school__head strong {
    display: block;
    font-size: 0.88rem;
}

.cr-coord-school__head span {
    font-size: 0.76rem;
    color: #64748b;
}

.cr-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.cr-table th,
.cr-table td {
    font-size: 0.82rem;
}

.cr-charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 14px;
    align-items: start;
}

.cr-charts-grid__main,
.cr-charts-grid__side {
    min-width: 0;
}

.cr-charts-grid__side .ops-ov-graph {
    margin: 0;
}

.cr-chart-metric {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cr-bar-chart {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.cr-bar-chart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.cr-bar-chart__head strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.cr-bar-chart__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow: auto;
}

.cr-bar-row {
    display: grid;
    grid-template-columns: minmax(110px, 34%) 1fr auto;
    gap: 10px;
    align-items: center;
}

.cr-bar-row__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cr-bar-row__track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.cr-bar-row__fill {
    height: 100%;
    border-radius: inherit;
    min-width: 0;
}

.cr-bar-row__fill--l1 { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.cr-bar-row__fill--l2 { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.cr-bar-row__fill--l3 { background: linear-gradient(90deg, #14b8a6, #0d9488); }
.cr-bar-row__fill--sessions { background: linear-gradient(90deg, #64748b, #475569); }

.cr-bar-row__val {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.cr-table-panel {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.cr-table-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cr-table-scroll {
    max-height: 520px;
    overflow: auto;
}

.cr-school-table th,
.cr-school-table td {
    font-size: 0.8rem;
    vertical-align: middle;
}

.cr-school-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    box-shadow: inset 0 -1px 0 #e2e8f0;
}

.cr-page-ellipsis {
    align-self: center;
    padding: 0 4px;
    color: #94a3b8;
    font-size: 0.82rem;
}

.cr-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cr-table-school {
    font-weight: 600;
    min-width: 180px;
}

.cr-table-pct {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
}

.cr-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cr-page-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 8px;
    min-width: 34px;
    height: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.cr-page-btn.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

@media (max-width: 1100px) {
    .cr-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .cr-bar-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .cr-bar-row__val {
        justify-self: start;
    }
    .cr-featured-schools__grid {
        grid-template-columns: 1fr;
    }
    .cr-featured-schools__head {
        flex-direction: column;
    }
    .cr-report__hero {
        grid-template-columns: 1fr;
    }
    .cr-report__hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cr-coord-card__head {
        grid-template-columns: 1fr auto;
    }
    .cr-coord-card__stats {
        display: none;
    }
}
