/**
 * OLAMI Master Manager — Admin Common Styles
 * File: assets/css/admin-common.css
 * Reduced in Phase 22 (v428) — checkin-page + settings-unified extracted
 *
 * Contains: Student DB, mentoring, mail center, search fixes, AI, reports, tools, auth
 */

/* === Mobile student database (style.css lines 748-946) === */
        /* --- 2. MOBILE STUDENT DATABASE (PRESERVED) --- */
        @media (max-width: 768px) {
            .olami-desktop-only {
                display: none !important;
            }

            #wpadminbar {
                position: absolute !important;
            }

            .wp-heading-inline {
                font-size: 20px !important;
            }
        }

        @media (min-width: 769px) {
            .olami-mobile-only {
                display: none !important;
            }
        }

        .olami-student-card {
            background: var(--surface);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            border: 1px solid var(--border-light);
            margin-bottom: 15px;
            overflow: hidden;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .osc-header {
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            border-bottom: 1px solid var(--border-light);
        }

        .osc-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--surface);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .osc-info {
            flex-grow: 1;
        }

        .osc-name {
            font-size: 16px;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 4px;
        }

        .osc-badges {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .osc-coin-badge {
            background: var(--coin-bg);
            color: #fbc02d;
            font-size: 10px;
            font-weight: 800;
            padding: 3px 8px;
            border-radius: 50px;
            border: 1px solid #fff3e0;
        }

        .osc-btn-icon {
            background: none !important;
            background-color: transparent !important;
            box-shadow: none !important;
            border: none !important;
            font-size: 20px;
            cursor: pointer;
            padding: 0 !important;
            margin: 0 !important;
            color: var(--border) !important;
            width: auto !important;
            height: auto !important;
            display: inline-block !important;
        }

        .osc-btn-icon:hover {
            color: var(--primary) !important;
            transform: scale(1.1);
        }

        .osc-actions {
            display: flex;
            padding: 12px;
            gap: 10px;
            background: var(--surface);
        }

        .osc-action-btn {
            flex: 1;
            background: var(--surface) !important;
            background-color: var(--surface) !important;
            border: 1px solid var(--border) !important;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
            padding: 10px 0 !important;
            font-size: 12px;
            font-weight: 700;
            text-align: center;
            cursor: pointer;
            text-decoration: none !important;
            border-radius: var(--radius);
            transition: transform 0.1s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: var(--text-secondary);
            height: auto !important;
            line-height: normal !important;
        }

        .osc-action-btn:active {
            transform: scale(0.96);
            background: var(--surface-hover) !important;
        }

        .btn-wa {
            color: #25D366 !important;
            border-color: #e7fce3 !important;
            background: #fafffa !important;
        }

        .btn-call {
            color: var(--info) !important;
            border-color: var(--info-bg) !important;
            background: #fafdff !important;
        }

        .btn-more {
            color: var(--text-secondary) !important;
            border-color: var(--border-light) !important;
            background: var(--surface) !important;
        }

        .osc-drawer {
            background: var(--surface-hover);
            padding: 15px;
            border-top: 1px solid var(--border-light);
            font-size: 13px;
            color: var(--text-secondary);
        }

        .osc-row {
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            border-bottom: 1px dashed var(--border);
            padding-bottom: 8px;
        }

        .os-tag {
            padding: 3px 8px;
            border-radius: var(--radius-sm);
            font-size: 9px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .os-tag-green {
            background: var(--success-bg);
            color: var(--success);
        }

        .os-tag-yellow {
            background: var(--warning-bg);
            color: var(--warning-text);
        }

        .os-tag-blue {
            background: var(--info-bg);
            color: var(--info-text);
        }

        .os-tag-gray {
            background: var(--surface-active);
            color: var(--text-secondary);
        }

        .os-tag-olive {
            background: #556b2f;
            color: var(--text-inverse);
        }


/* === Stats & mail center (style.css lines 2644-2676) === */
        /* --- 5. NEW: SHARP / PROFESSIONAL STATS & MAIL CENTER --- */
        .olami-stats-wrap {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            color: var(--text);
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .os-grid-4 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
        }

        .os-grid-2 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        /* THE SAFETY SPACER (Fixes the "Slipping" Issue) */
        .os-spacer {
            display: block;
            width: 100%;
            height: 40px;
            clear: both;
        }


/* === Check-in cleanup (style.css lines 4256-4411) === */
        /* 5. CHECK-IN SPECIFIC CLEANUP */
        .olami-checkin-wrap .oc-toolbar {
            background: transparent !important;
            border: none !important;
            padding: 0 !important;
            box-shadow: none !important;
        }

        .olami-checkin-wrap .oc-select-area {
            background: var(--surface);
            padding: 20px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            margin-bottom: 20px;
        }

        .olami-checkin-wrap .nav-tab-wrapper {
            border-bottom: none !important;
            margin-bottom: 15px !important;
            padding-left: 0 !important;
        }

        .olami-checkin-wrap .nav-tab {
            background: transparent !important;
            border: none !important;
            font-size: 16px !important;
            font-weight: 700 !important;
            color: var(--text-secondary) !important;
            margin-right: 15px !important;
            padding: 0 !important;
        }

        .olami-checkin-wrap .nav-tab-active {
            color: var(--text) !important;
        }

        /* HIDE WP JUNK */
        .olami-checkin-wrap h1 {
            display: none !important;
        }

        .olami-checkin-wrap hr {
            display: none !important;
        }

        /* .tablenav.top { display: none !important; } */
        /* DISABLED to fix Master Roster */

        /* MOBILE OPTIMIZATIONS */
        @media (max-width: 600px) {
            .oma-canvas {
                padding: 6px !important;
            }
            
            .oma-shell {
                padding: 0 !important;
            }

            .olami-app table.wp-list-table tbody tr {
                display: flex;
                flex-direction: column;
                padding: 15px;
                height: auto !important;
            }

            .olami-app table.wp-list-table td {
                padding: 5px 0 !important;
                display: block;
                text-align: left !important;
            }

            .olami-app table.wp-list-table thead {
                display: none;
            }
        }

        /* Force override just in case the stylesheet loads late */
        .mobile-app-menu a.olami-active-tab {
            color: #c41551 !important;
            transform: translateY(-3px) !important;
            opacity: 1 !important;
        }

        /* Ensure SVG strokes inherit the red color */
        .mobile-app-menu a.olami-active-tab svg * {
            stroke: #c41551 !important;
        }

        #olami-shabbat-popup {
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 99999999;
            background: rgba(255, 255, 255, 0.20);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            padding: 8px 12px;
            border-radius: 50px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            animation: slideInBottom 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .osp-icon {
            font-size: 25px;
            line-height: 1;
            margin-bottom: 2px;
        }

        .osp-info {
            display: flex;
            flex-direction: column;
            line-height: 1;
            justify-content: center;
        }

        .osp-label {
            font-size: 8px;
            text-transform: uppercase;
            font-weight: 800;
            color: var(--text-secondary);
            margin-bottom: 2px;
        }

        .osp-time {
            font-size: 16px;
            font-weight: 900;
            color: var(--text);
            line-height: 0.9;
        }

        @keyframes slideInBottom {
            from {
                transform: translateY(60px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @media (max-width: 600px) {
            #olami-shabbat-popup {
                bottom: 75px;
                left: 20px;
            }
        }


/* === 1:1 mentoring dashboard (style.css lines 4981-5432) === */
        /* =========================================
   1:1 MENTORING DASHBOARD STYLES
   ========================================= */
        .om-wrapper {
            max-width: 900px;
            margin: 0 auto;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            box-sizing: border-box;
            padding: 10px;
        }

        .om-greeting-box {
            margin-bottom: 25px;
            padding: 0 5px;
        }

        .om-greet-title {
            font-size: 28px;
            font-weight: 800;
            color: var(--text);
            letter-spacing: -0.5px;
            margin-bottom: 5px;
        }

        .om-greet-sub {
            font-size: 15px;
            font-weight: 500;
        }

        /* Stats Bar */
        .om-pulse-bar {
            display: flex;
            gap: 20px;
            margin-bottom: 25px;
            background: var(--surface);
            padding: 25px 20px;
            border-radius: 20px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-md);
        }

        .om-pulse-item {
            flex: 1;
            text-align: center;
        }

        .om-pulse-val {
            font-size: 36px;
            font-weight: 800;
            color: var(--text);
            line-height: 1;
            margin-bottom: 8px;
        }

        .om-pulse-lbl {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            color: var(--text-secondary);
            letter-spacing: 0.5px;
        }

        /* Search Bar */
        .om-search-container {
            position: relative;
            margin-bottom: 30px;
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .om-search-input {
            flex-grow: 1;
            height: 50px !important;
            padding: 0 20px !important;
            font-size: 16px !important;
            border-radius: 14px !important;
            border: 1px solid var(--border) !important;
            background-color: var(--surface) !important;
            transition: all 0.2s;
            box-sizing: border-box;
        }

        .om-search-input:focus {
            background-color: var(--surface) !important;
            box-shadow: 0 0 0 4px rgba(0, 125, 250, 0.1) !important;
            outline: none;
        }

        .om-btn-new {
            height: 50px !important;
            padding: 0 25px !important;
            border-radius: 14px !important;
            font-weight: 700 !important;
            font-size: 14px !important;
            flex-shrink: 0;
            background: var(--surface) !important;
            color: var(--text) !important;
            border: 1px solid var(--border) !important;
            cursor: pointer;
        }

        /* Search Dropdown */
        .om-search-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--surface);
            border-radius: var(--radius-md);
            margin-top: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            z-index: 100;
            max-height: 300px;
            overflow-y: auto;
            display: none;
            border: 1px solid var(--border-light);
        }

        .om-result-row {
            padding: 15px;
            border-bottom: 1px solid var(--bg);
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }

        .om-result-row:hover {
            background: var(--surface-hover);
        }

        /* The Grid */
        .om-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 16px;
        }
        
        /* Mobile Search & Grid Styles */
        @media (max-width: 768px) {
            .om-search-container {
                flex-direction: column;
                gap: 12px;
            }

            .om-search-input {
                width: 100% !important;
                height: 46px !important;
                font-size: 16px !important;
            }

            .om-btn-new {
                width: 100% !important;
                height: 46px !important;
            }

            .om-search-dropdown {
                position: fixed;
                top: auto;
                bottom: 0;
                left: 0;
                right: 0;
                border-radius: var(--radius-lg) var(--radius-lg) 0 0;
                max-height: 60vh;
            }

            /* v432: Force 2 columns for all phones/tablets ≤768px.
               auto-fill with minmax(140px) created 3 cramped columns
               on phones with viewports 481-600px. */
            .om-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 14px;
                padding: 0 10px;
                max-width: 360px;
                margin-left: auto;
                margin-right: auto;
            }
        }

        @media (max-width: 480px) {
            .om-grid {
                gap: 12px;
                padding: 0 6px;
                max-width: 320px;
            }

            .om-card {
                padding: 14px 6px;
                border-radius: 26px;
            }

            .om-avatar-container {
                width: 52px !important;
                height: 52px !important;
            }
        }

        /* The Card */
        .om-card {
            background: var(--surface);
            border-radius: 22px;
            padding: 16px 12px;
            text-align: center;
            position: relative;
            box-shadow: var(--shadow);
            border: 2px solid transparent;
            transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s;
            /* v432: Fix unequal grid columns. CSS Grid items default to min-width:auto,
               so white-space:nowrap in .om-name forces the column to the text's full width.
               min-width:0 lets 1fr distribute space equally; overflow:hidden clips content. */
            min-width: 0;
            overflow: hidden;
        }

        .om-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
            z-index: 10;
        }

        /* Status Colors */
        .om-card.status-green {
            border-color: var(--success);
        }

        .om-card.status-yellow {
            border-color: #ffcc00;
        }

        .om-card.status-red {
            border-color: var(--danger);
            background: var(--danger-bg);
        }

        /* Avatar */
        .om-avatar-container {
            width: 64px !important;
            height: 64px !important;
            margin: 0 auto 10px auto !important;
            position: relative !important;
            border-radius: 50% !important;
            border: 3px solid var(--bg) !important;
            padding: 2px !important;
            cursor: pointer !important;
            background: var(--surface) !important;
            box-sizing: content-box !important;
        }

        .om-avatar {
            width: 100% !important;
            height: 100% !important;
            border-radius: 50% !important;
            object-fit: cover !important;
            display: block !important;
            margin: 0 !important;
            padding: 0 !important;
            border: none !important;
            box-shadow: none !important;
            max-width: none !important;
            min-height: 100% !important;
        }

        .om-status-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            position: absolute;
            bottom: 2px;
            right: 2px;
            border: 2px solid var(--surface);
        }

        .om-card.status-green .om-status-dot {
            background: var(--success);
        }

        .om-card.status-yellow .om-status-dot {
            background: #ffcc00;
        }

        .om-card.status-red .om-status-dot {
            background: var(--danger);
        }

        /* Text */
        .om-name {
            font-weight: 700;
            color: var(--text);
            font-size: 14px;
            margin-bottom: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .om-meta {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 12px;
            font-weight: 500;
        }

        /* Button */
        .om-btn-log {
            width: 100%;
            padding: 10px;
            background: var(--text);
            color: var(--text-inverse);
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            min-height: 40px;
            transition: background 0.2s;
        }

        .om-btn-log:hover {
            background: var(--text);
        }

        /* Card Menu */
        .om-card-menu {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
            color: var(--border);
            padding: 5px;
            transition: 0.2s;
            font-size: 14px;
        }

        .om-card-menu:hover {
            color: var(--text);
            transform: scale(1.1);
        }

        /* Modals */
        .om-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 99999;
            backdrop-filter: blur(5px);
            display: none;
            align-items: center;
            justify-content: center;
        }

        .om-modal {
            background: var(--surface);
            width: 90%;
            max-width: 450px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
            animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .om-modal-header {
            padding: 18px 25px;
            background: var(--bg);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
        }

        .om-modal-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
        }

        .om-modal-close {
            font-size: 22px;
            cursor: pointer;
            color: var(--text-secondary);
            line-height: 1;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .om-modal-close:hover {
            background: rgba(0, 0, 0, 0.08);
            color: var(--text);
        }

        .om-modal-body {
            padding: 25px;
        }

        .om-input {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 10px;
            font-family: inherit;
            font-size: 14px;
            margin-bottom: 10px;
            box-sizing: border-box;
            background: var(--surface);
        }

        .om-hist-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-light);
            font-size: 13px;
        }

        @keyframes popIn {
            from {
                transform: scale(0.9);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .om-pop-in {
            animation: popIn 0.4s;
        }

        /* RECURRING FIRE BADGE */
        .om-fire-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            font-size: 18px;
            background: var(--danger-bg);
            border: 1px solid var(--danger-bg);
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 20;
            box-shadow: 0 2px 5px rgba(255, 0, 0, 0.15);
            cursor: help;
            /* Shows the tooltip on hover */
            animation: pulseFire 2s infinite;
        }

        @keyframes pulseFire {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
            }

            70% {
                transform: scale(1.1);
                box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
            }
        }


/* === Email central touch-ups (style.css lines 5433-5501) === */
        /* =========================================
   EMAIL CENTRAL TOUCH-UPS
   ========================================= */

        /* 1. More breathing room for the table rows */
        .olami-stats-wrap .os-clean-table th,
        .olami-stats-wrap .os-clean-table td {
            padding: 18px 25px !important;
            /* Increased from 12px 15px */
        }

        /* 2. Style the Pagination (Bottom Buttons) */
        /* This targets the standard WP pagination and makes it look like your custom buttons */
        .olami-stats-wrap .page-numbers {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 36px;
            padding: 0 14px;
            margin: 0 4px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 600;
            font-size: 13px;
            transition: all 0.2s ease;
            line-height: 1;
        }

        /* Hover State */
        .olami-stats-wrap .page-numbers:hover:not(.current) {
            background: var(--surface-hover);
            border-color: var(--text-muted);
            color: var(--text);
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm);
        }

        /* Active State (Current Page) */
        .olami-stats-wrap .page-numbers.current {
            background: var(--text);
            color: var(--text-inverse);
            border-color: var(--text);
            cursor: default;
        }

        /* 3. Style the "View Body" Link inside the table */
        /* Note: You might need to add class='view-body-link' to the PHP anchor tag for this to work perfectly, 
   but this targets the <a> inside the subject cell generally if not */
        .os-clean-table a[onclick*="alert"] {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            color: var(--secondary) !important;
            background: var(--info-bg);
            padding: 3px 8px;
            border-radius: var(--radius-sm);
            text-decoration: none;
            margin-left: 8px;
            transition: background 0.2s;
            text-transform: uppercase;
        }

        .os-clean-table a[onclick*="alert"]:hover {
            background: var(--info-bg);
        }


/* === Floating admin gear (style.css lines 5575-5632) === */
        /* =========================================
   FLOATING ADMIN GEAR (FORCE POSITION)
   ========================================= */
        .olami-smart-gear {
            position: fixed !important;
            bottom: 20px !important;
            right: 20px !important;
            left: auto !important;
            /* Forces it away from the left */
            z-index: 999999 !important;
            background: rgba(255, 255, 255, 0.20);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px) !important;
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
            color: var(--text-inverse) !important;
            width: 50px !important;
            height: 50px !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            text-decoration: none !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
            transition: transform 0.2s ease !important;
            font-size: 24px !important;
            border: 2px solid var(--surface) !important;
        }

        .olami-smart-gear:hover {
            transform: scale(1.1) rotate(90deg) !important;
        }

        /* MOBILE OVERRIDE */
        @media (max-width: 600px) {
            .olami-smart-gear {
                bottom: 75px !important;
                right: 15px !important;
                left: auto !important;
            }
        }

        /* Ensure the container handles scrolling correctly */
        #olami_feed_container {
            display: flex;
            overflow-x: auto;
            scroll-behavior: smooth;
            /* Native smooth scroll support */
            position: relative;
            /* Important for calculations */
            white-space: nowrap;
            flex-wrap: nowrap;
            /* Smooth scroll on iOS */
            padding-bottom: 20px;
            /* Space for scrollbar if visible */
            width: 100%;
        }


/* === Student DB upgrade (style.css lines 5846-6001) === */
        /* =================================================================
   STUDENT DB UPGRADE (Sorting & Inline Edit)
   ================================================================= */

        /* 1. Sortable Headers */
        th.sortable {
            cursor: pointer;
            position: relative;
            padding-right: 20px !important;
            /* Space for arrow */
        }

        th.sortable:hover {
            color: var(--primary);
            background: var(--surface-hover);
        }

        th.sortable::after {
            content: 'â†•';
            position: absolute;
            right: 5px;
            opacity: 0.3;
            font-size: 12px;
        }

        th.sortable:hover::after {
            opacity: 1;
        }

        th.sortable.sorted-asc::after {
            content: 'â†‘';
            opacity: 1;
            color: var(--primary);
        }

        th.sortable.sorted-desc::after {
            content: 'â†“';
            opacity: 1;
            color: var(--primary);
        }

        /* 2. Editable Fields */
        .olami-editable {
            transition: background 0.3s ease;
            border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
            /* Subtle hint */
            padding-bottom: 1px;
        }

        .olami-editable:hover {
            background: var(--warning-bg);
            /* Highlight on hover */
            border-bottom: 1px dashed var(--text-muted);
            color: var(--text);
        }

        /* 3. The Input/Select Field Itself */
        .olami-edit-input {
            width: 100%;
            box-sizing: border-box;
            border: 2px solid var(--secondary) !important;
            border-radius: 4px;
            padding: 4px 8px;
            font-size: 13px;
            background: var(--surface);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            outline: none;
        }

        /* 4. Tags & Badges */
        .os-tag {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            line-height: 1.5;
        }

        .os-tag-gray {
            background: var(--border-light);
            color: var(--text-secondary);
        }

        .os-tag-green {
            background: var(--success-bg);
            color: var(--success-text);
        }

        .os-tag-yellow {
            background: var(--warning-bg);
            color: var(--warning-text);
        }

        .os-tag-blue {
            background: var(--info-bg);
            color: var(--info-text);
        }

        .os-tag-olive {
            background: #556B2F;
            color: var(--text-inverse);
        }

        /* 5. Mobile Tweaks */
        .olami-editable-mobile {
            border-bottom: 1px dashed var(--border);
        }

        .osc-info .olami-edit-input {
            margin-top: 5px;
            font-size: 16px;
            /* Larger text for mobile inputs */
        }

        /* 6. Success Animation */
        @keyframes flashGreen {
            0% {
                background-color: var(--success-bg);
            }

            100% {
                background-color: transparent;
            }
        }

        .flash-success {
            animation: flashGreen 1s ease-out;
        }

        /* Search result row layout */
        .om-search-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid var(--border-light);
        }

        /* Fix Search Result Buttons */
        .om-search-item button.button-small {
            padding: 4px 10px !important;
            font-size: 11px !important;
            line-height: 1.5 !important;
            height: auto !important;
            min-height: 28px !important;
            cursor: pointer;
        }

        /* Style the white 'Log' button */
        .om-search-item .om-log-btn {
            border: 1px solid var(--secondary) !important;
            color: var(--secondary) !important;
            background: var(--surface) !important;
        }

        /* Ensure container allows buttons to sit side-by-side */
        .om-search-item>div:last-child {
            display: flex;
            align-items: center;
        }


/* === Mentoring header controls (style.css lines 6083-6148) === */
        /* =================================================================
   1:1 MENTORING PAGE - HEADER CONTROLS
   ================================================================= */
        .om-header-controls {
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: flex-end;
        }

        .om-history-dropdown {
            font-size: 12px;
            border-radius: var(--radius-sm);
            height: 34px;
            padding: 0 10px;
            border: 1px solid var(--border);
            background: var(--surface);
            min-width: 120px;
        }

        .om-btn-row {
            display: flex;
            gap: 6px;
            flex-wrap: nowrap;
        }

        .om-action-btn {
            font-size: 11px !important;
            height: 34px !important;
            padding: 0 10px !important;
            white-space: nowrap;
            flex-shrink: 0;
            border-radius: var(--radius-sm) !important;
        }

        .om-btn-primary {
            background: var(--primary) !important;
            border-color: var(--primary) !important;
            color: var(--text-inverse) !important;
        }

        /* Mobile: Stack header controls and keep buttons in one row */
        @media (max-width: 768px) {
            .om-header-controls {
                width: 100%;
                align-items: stretch;
            }

            .om-history-dropdown {
                width: 100%;
                max-width: none;
            }

            .om-btn-row {
                width: 100%;
                justify-content: space-between;
            }

            .om-action-btn {
                flex: 1;
                font-size: 10px !important;
                padding: 0 6px !important;
                min-width: 0;
            }
        }


/* === Mobile compact styles (style.css lines 11845-11958) === */
/* ==========================================
   MOBILE COMPACT STYLES
   ========================================== */
@media screen and (max-width: 768px) {
    /* Dual engagement mobile */
    .sec-dual-engagement {
        grid-template-columns: 1fr !important;
    }
    
    .sec-dual-engagement .od-engagement-col,
    .sec-dual-engagement .od-wallet-col,
    .sec-dual-engagement .od-right-col {
        grid-column: span 1;
    }
    
    .od-engagement-stack {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* COMPACT MOBILE CARDS */
    .sec-dual-engagement .od-engagement-stack .sec-poll-card,
    .sec-dual-engagement .od-engagement-stack .sec-trivia-card,
    .sec-active-layout .od-poll-col .sec-poll-card,
    .sec-active-layout .od-poll-col .sec-trivia-card,
    .sec-poll-card,
    .sec-trivia-card {
        max-height: none;
        min-height: auto;
        height: auto;
        padding: 16px !important;
        margin-bottom: 12px;
        border-radius: var(--radius-lg);
    }
    
    /* Compact question text */
    .sec-poll-q,
    .sec-trivia-question,
    .sec-dual-engagement .od-engagement-stack .sec-poll-q,
    .sec-dual-engagement .od-engagement-stack .sec-trivia-question,
    .sec-active-layout .od-poll-col .sec-trivia-question {
        font-size: 15px !important;
        margin-bottom: 12px !important;
        line-height: 1.3;
    }
    
    /* Compact options */
    .sec-poll-opt,
    .sec-dual-engagement .od-engagement-stack .sec-poll-opt,
    .sec-active-layout .od-poll-col .sec-poll-opt {
        padding: 10px 14px !important;
        font-size: 13px !important;
        margin-bottom: 6px !important;
        border-radius: 10px;
    }
    
    .sec-trivia-options,
    .sec-dual-engagement .od-engagement-stack .sec-trivia-options,
    .sec-active-layout .od-poll-col .sec-trivia-options {
        gap: 6px !important;
    }
    
    .sec-trivia-opt,
    .sec-dual-engagement .od-engagement-stack .sec-trivia-opt,
    .sec-active-layout .od-poll-col .sec-trivia-opt {
        padding: 10px 12px !important;
        font-size: 13px !important;
        gap: 10px !important;
        border-radius: 10px;
    }
    
    .sec-trivia-opt-letter,
    .sec-dual-engagement .od-engagement-stack .sec-trivia-opt-letter,
    .sec-active-layout .od-poll-col .sec-trivia-opt-letter {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-radius: var(--radius);
        flex-shrink: 0;
    }
    
    /* Compact header badges */
    .sec-trivia-header {
        margin-bottom: 10px !important;
    }
    
    .sec-trivia-badge {
        font-size: 10px !important;
        padding: 4px 10px !important;
    }
    
    .sec-trivia-category {
        font-size: 9px !important;
    }
    
    .sec-trivia-reward {
        top: 8px !important;
        left: 8px !important;
        font-size: 10px !important;
        padding: 4px 10px !important;
    }
    
    .sec-trivia-timer {
        top: 8px !important;
        right: 8px !important;
        font-size: 11px !important;
    }
    
    /* Hide streak on mobile */
    .sec-trivia-streak {
        display: none;
    }
}


/* === Mobile search fixes v280 (style.css lines 11959-12072) === */
/* =================================================================
   MOBILE SEARCH FIXES (v280)
   ================================================================= */

/* Prevent auto-zoom on iOS by ensuring font-size is at least 16px */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Fix dropdown z-index to show above keyboard */
    .om-search-dropdown,
    #om_search_results,
    #oc-search-results {
        z-index: 99999 !important;
    }
    
    /* Make check-in search input larger and match other inputs */
    #user_search_input {
        width: 100% !important;
        height: 48px !important;
        font-size: 16px !important;
        padding: 12px 16px !important;
        border-radius: var(--radius-md) !important;
        border: 2px dashed var(--border) !important;
        background: var(--surface) !important;
    }
    
    #user_search_input:focus {
        border-color: #6366f1 !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    }
    
    /* Fix quick-add row on mobile */
    .oc-quick-add {
        position: relative;
    }
    
    .oc-quick-add .oc-quick-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .oc-quick-add .oc-quick-btn {
        width: 100% !important;
        height: 44px !important;
    }
    
    /* Search results dropdown for check-in page */
    #oc-search-results {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--surface) !important;
        border: 1px solid var(--border-light) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
        max-height: 250px !important;
        overflow-y: auto !important;
        margin-top: 8px !important;
    }
    
    #oc-search-results .oc-result-item {
        padding: 12px 16px !important;
        border-bottom: 1px solid var(--border-light) !important;
        cursor: pointer !important;
    }
    
    #oc-search-results .oc-result-item:active {
        background: var(--surface-active) !important;
    }
    
    /* Roster page search dropdown - slide up from bottom on mobile */
    .om-search-dropdown {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-height: 50vh !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2) !important;
        z-index: 99999 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
    
    /* Add handle for mobile dropdown */
    .om-search-dropdown::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border);
        border-radius: 2px;
        margin: 12px auto;
    }
}

/* Desktop: Keep dropdown positioned normally */
@media screen and (min-width: 769px) {
    .om-search-dropdown {
        position: absolute !important;
        top: 100% !important;
        bottom: auto !important;
    }
}


/* === Mobile search fixes v282 (style.css lines 12073-12232) === */
/* =================================================================
   MOBILE SEARCH FIXES v282 - MINIMAL & SAFE
   ================================================================= */

/* 1. PREVENT iOS AUTO-ZOOM: Ensure all inputs are 16px+ */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* 2. CHECK-IN PAGE: Search dropdown */
@media screen and (max-width: 768px) {
    /* Container needs relative positioning */
    .oc-quick-add {
        position: relative;
    }
    
    /* Make input full width and properly sized */
    #user_search_input {
        width: 100% !important;
        min-height: 44px !important;
        font-size: 16px !important;
        padding: 10px 14px !important;
        box-sizing: border-box !important;
    }
    
    /* Dropdown stays below input, not fixed/modal */
    #oc-search-results {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 200px !important;
        overflow-y: auto !important;
        background: var(--surface) !important;
        border: 1px solid var(--border-light) !important;
        border-radius: var(--radius) !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
        z-index: 9999 !important;
        margin-top: 4px !important;
    }
    
    #oc-search-results .oc-result-item {
        padding: 14px 16px !important;
        font-size: 15px !important;
        border-bottom: 1px solid var(--border-light) !important;
    }
}

/* 3. ROSTER PAGE (My 1:1s): Search dropdown */
@media screen and (max-width: 768px) {
    .om-search-container {
        position: relative;
    }
    
    .om-search-input {
        width: 100% !important;
        min-height: 44px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }
    
    /* Keep dropdown below input - simple positioning */
    #om_search_results,
    .om-search-dropdown {
        position: absolute !important;
        top: 55px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 250px !important;
        overflow-y: auto !important;
        background: var(--surface) !important;
        border: 1px solid var(--border-light) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
        z-index: 99999 !important;
        margin-top: 0 !important;
        display: none;
    }
    
    #om_search_results[style*="display: block"],
    #om_search_results[style*="display:block"] {
        display: block !important;
    }
    
    /* Remove the ::before pseudo-element that was causing issues */
    #om_search_results::before,
    .om-search-dropdown::before {
        display: none !important;
    }
    
    .om-search-item {
        padding: 12px 16px !important;
        border-bottom: 1px solid var(--border-light) !important;
    }
    
    .om-search-item button {
        min-height: 36px !important;
        padding: 6px 12px !important;
    }
}

/* 4. PULSE BAR: Keep side by side on mobile */
@media screen and (max-width: 768px) {
    .om-pulse-bar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        gap: 15px !important;
        background: var(--surface) !important;
        border-radius: var(--radius-md) !important;
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .om-pulse-item {
        text-align: center !important;
        flex: 1 !important;
    }
    
    .om-pulse-val {
        font-size: 24px !important;
        font-weight: 700 !important;
    }
    
    .om-pulse-lbl {
        font-size: 10px !important;
        text-transform: uppercase !important;
        color: var(--text-secondary) !important;
        white-space: nowrap !important;
    }
}

/* 5. Fix z-index stacking - ensure dropdowns appear above everything */
#oc-search-results,
#om_search_results,
.om-search-dropdown {
    z-index: 99999 !important;
}

/* v284 FIX: Ensure search dropdown can overflow parent */
/* v417: z-index keeps container above backdrop (#om_search_backdrop at z-index:99) */
.om-search-container {
    overflow: visible !important;
    position: relative !important;
    z-index: 100;
}

/* v417: Removed `:not(:empty) { display: block !important }` rule.
   It overrode jQuery .hide() and prevented ALL dismiss mechanisms from working.
   JS .show()/.hide() now controls visibility directly. */


/* === v286: Roster dropdown (style.css lines 12233-12327) === */
/* =================================================================
   v286 FIX: Roster search dropdown spacing & iOS zoom
   ================================================================= */

/* Fix iOS auto-zoom - ensure 16px font on roster search input */
#om_global_search,
.om-search-input {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100% !important;
}

/* Make dropdown wider and less cramped */
@media screen and (max-width: 768px) {
    #om_search_results {
        left: -10px !important;
        right: -10px !important;
        width: calc(100% + 20px) !important;
        padding: 8px 0 !important;
    }
    
    /* More padding on search items */
    #om_search_results .om-search-item {
        padding: 14px 16px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
        border-bottom: 1px solid var(--border-light) !important;
    }
    
    /* User info section */
    #om_search_results .om-search-item > div:first-child {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* Avatar */
    #om_search_results .om-search-item img {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }
    
    /* Name text */
    #om_search_results .om-search-item div[style*="font-weight"] {
        font-size: 15px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Email text */
    #om_search_results .om-search-item div[style*="color:#64748b"],
    #om_search_results .om-search-item div[style*="color: var(--text-secondary)"] {
        font-size: 12px !important;
        color: var(--text-secondary) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Buttons container */
    #om_search_results .om-search-item > div:last-child {
        display: flex !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    
    /* Buttons */
    #om_search_results .om-search-item button {
        min-width: 44px !important;
        min-height: 38px !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        border-radius: var(--radius) !important;
        white-space: nowrap !important;
    }
    
    /* No results message */
    #om_search_results > div[style*="padding:16px"] {
        padding: 20px !important;
        text-align: center !important;
        font-size: 14px !important;
    }
}

/* Desktop also needs some breathing room */
@media screen and (min-width: 769px) {
    #om_search_results .om-search-item {
        padding: 12px 16px !important;
    }
}


/* === v287: Roster dropdown height (style.css lines 12328-12424) === */
/* =================================================================
   v287 FIX: Roster dropdown height & button sizing
   ================================================================= */

@media screen and (max-width: 768px) {
    /* Make dropdown MUCH taller */
    #om_search_results,
    .om-search-dropdown {
        max-height: 350px !important;
        min-height: 80px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Each search result item - more height */
    #om_search_results .om-search-item,
    .om-search-dropdown .om-search-item {
        min-height: 60px !important;
        padding: 12px 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }
    
    /* Fix buttons - proper square sizing */
    #om_search_results .om-search-item button,
    .om-search-dropdown .om-search-item button,
    #om_search_results button.button-small,
    .om-search-dropdown button.button-small,
    .om-log-btn,
    .om-add-btn {
        min-width: 50px !important;
        width: auto !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        padding: 0 14px !important;
        font-size: 14px !important;
        line-height: 40px !important;
        border-radius: var(--radius) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Button container - keep buttons from squishing */
    #om_search_results .om-search-item > div:last-child,
    .om-search-dropdown .om-search-item > div:last-child {
        display: flex !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        align-items: center !important;
    }
    
    /* Avatar sizing */
    #om_search_results .om-search-item img,
    .om-search-dropdown .om-search-item img {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }
    
    /* Name/email container - allow text to truncate */
    #om_search_results .om-search-item > div:first-child,
    .om-search-dropdown .om-search-item > div:first-child {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    /* Name text */
    #om_search_results .om-search-item div[style*="font-weight:600"],
    #om_search_results .om-search-item div[style*="font-weight: 600"] {
        font-size: 14px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 140px !important;
    }
    
    /* Email text */
    #om_search_results .om-search-item div[style*="font-size:12px"],
    #om_search_results .om-search-item div[style*="font-size: 12px"] {
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 140px !important;
    }
}


/* === v288: Taller dropdown (style.css lines 12425-12451) === */
/* =================================================================
   v288 FIX: Make dropdown TALLER to show more results
   ================================================================= */

@media screen and (max-width: 768px) {
    /* Force dropdown to be much taller */
    #om_search_results {
        max-height: 55vh !important;
        min-height: 200px !important;
        height: auto !important;
    }
    
    /* Only the search container needs overflow visible */
    .om-search-container {
        overflow: visible !important;
        position: relative !important;
        z-index: 1000 !important;
    }
}

/* Desktop too */
@media screen and (min-width: 769px) {
    #om_search_results {
        max-height: 400px !important;
    }
}


/* === INLINE STYLES FROM admin-pages-inline.css === */
/**
 * Extracted Inline Styles → temp/admin-pages-inline.css
 * Generated: 2026-02-07 20:48
 * Blocks: 6
 */


/* Source: includes/admin-pages.php line 205 (block 1/6) */
/* Container */
        .olami-roster-container {
            background: var(--surface);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow);
            overflow: hidden; /* Rounded corners clip */
            overflow-x: auto; /* Horizontal Scroll */
            margin-top: 20px;
        }

        /* Table Reset */
        .olami-table {
            width: 100%;
            border-collapse: collapse;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
            min-width: 800px; /* Force scroll on small screens */
        }
        
        .olami-table thead {
            background: var(--bg);
            border-bottom: 2px solid var(--border);
        }
        
        .olami-table th {
            text-align: left;
            padding: 10px 12px;
            font-weight: 600;
            color: var(--text-muted);
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .olami-table td {
            padding: 8px 12px;
            border-bottom: 1px solid var(--border-light);
            vertical-align: middle;
            color: var(--text);
            font-size: 14px;
        }
        
        .olami-table tr:hover {
            background-color: var(--surface-hover);
        }

        /* Date Badge */
        .date-badge {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 4px 8px;
            min-width: 40px;
        }
        .date-badge .day { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1; }
        .date-badge .month { font-size: 10px; text-transform: uppercase; color: var(--primary); font-weight: 600; }

        /* Student Pill */
        .student-pill {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .student-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid var(--border-light);
        }
        .student-name { font-weight: 500; }

        /* Status Tags */
        .status-tag {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }
        .status-registered { background: var(--info-bg); color: var(--secondary); }
        .status-present { background: var(--success-bg); color: var(--success); }
        .status-pending { background: var(--coin-bg); color: var(--warning); }
        .status-declined { background: var(--danger-bg); color: var(--danger); }
        .status-trash { background: var(--surface-hover); color: var(--text-secondary); text-decoration: line-through; }

        /* Mobile Tweaks */
        @media screen and (max-width: 782px) {
            .olami-table {
                min-width: 100%; /* Allow squeezing if possible, depends on content */
            }
            /* Checkbox */
            .check-column { width: 30px; padding: 10px !important; }
            
            /* Hide less important columns */
            .col-notes { display: none; }
            
            /* Stack Event Info */
            .event-meta-mobile { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
            .col-date { display: none; } /* Use mobile meta instead */
            
            .student-name { font-size: 13px; }
            .event-title { font-size: 13px; font-weight: 600; white-space: normal; }
            
            .icon-btn { padding: 4px 8px !important; font-size: 12px !important; }
        }
        @media screen and (min-width: 783px) {
            .event-meta-mobile { display: none; }
        }


/* Source: includes/admin-pages.php line 866 (block 2/6) */
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
            #olami_bulk_bar select:focus { outline:none; box-shadow:0 0 0 3px rgba(255,255,255,0.3); }


/* Source: includes/admin-pages.php line 918 (block 3/6) */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }



/* Source: includes/admin-pages.php line 2939 (block 5/6) */
';
        html += '@page { margin: 15mm; }';
        html += 'body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 0; margin: 0; color: #1a1a1a; }';
        html += '.header { border-bottom: 3px solid #1a1a1a; padding-bottom: 15px; margin-bottom: 25px; }';
        html += '.header h1 { margin: 0 0 5px 0; font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.5px; }';
        html += '.header .subtitle { font-size: 14px; color: #666; font-weight: 600; }';
        html += '.stats { display: flex; gap: 20px; margin-bottom: 25px; padding: 15px; background: #f8f9fa; border-radius: var(--radius); }';
        html += '.stat { text-align: center; }';
        html += '.stat-num { font-size: 28px; font-weight: 800; color: #1a1a1a; }';
        html += '.stat-label { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 1px; }';
        html += 'table { width: 100%; border-collapse: collapse; }';
        html += 'thead th { text-align: left; padding: 10px 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #666; border-bottom: 2px solid #1a1a1a; }';
        html += 'tbody td { padding: 12px 8px; border-bottom: 1px solid #eee; vertical-align: middle; }';
        html += '.guest-name { font-weight: 600; font-size: 14px; }';
        html += '.guest-meta { font-size: 11px; color: #888; }';
        html += '.check-box { width: 16px; height: 16px; border: 2px solid #333; border-radius: 3px; display: inline-block; }';
        html += '.check-box.checked { background: var(--success); border-color: var(--success); position: relative; }';
        html += '.check-box.checked::after { content: "✓"; color: #fff; font-size: 11px; position: absolute; top: -1px; left: 2px; }';
        html += '.family-divider { background: var(--surface-active); padding: 8px 10px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); }';
        html += '.footer { margin-top: 30px; padding-top: 15px; border-top: 2px solid #1a1a1a; text-align: right; font-size: 12px; color: #666; }';
        html += '


/* Source: includes/admin-pages.php line 3425 (block 6/6) */
@media screen {
            .olami-stats-wrap { padding: 10px; box-sizing: border-box; max-width: 100%; overflow-x: hidden; }
            @media (max-width: 600px) {
                .os-header-row { flex-direction: column !important; align-items: flex-start !important; gap: 15px !important; }
                .os-title-group { width: 100%; justify-content: space-between; flex-wrap: wrap; }
                .os-filter-bar { width: 100%; margin-top: 5px; }
                .print-btn-hidden { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--border) !important; font-size: 12px !important; padding: 6px 12px !important; white-space: nowrap; }
            }
        }
        @media print {
            @page { size: A4 portrait; margin: 1.5cm; }
            body { background: var(--surface) !important; }
            body * { visibility: hidden; }
            #wpcontent, #wpfooter, #adminmenumain, #wpadminbar, .update-nag, .os-filter-bar, button { display: none !important; }
            .olami-stats-wrap, .olami-stats-wrap * { visibility: visible; }
            .olami-stats-wrap { position: absolute; top: 0; left: 0; width: 100%; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--text); padding: 0 !important; margin: 0 !important; }
            .olami-stats-wrap, .olami-stats-wrap * { visibility: visible; }
            .olami-stats-wrap { position: absolute; top: 0; left: 0; width: 100%; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--text); padding: 0 !important; margin: 0 !important; }
            h1 { font-size: 24px !important; margin-bottom: 20px !important; border-bottom: 2px solid var(--primary); padding-bottom: 10px; }
            h3 { font-size: 16px !important; margin: 30px 0 15px 0 !important; text-transform: uppercase; color: var(--text-secondary) !important; border-bottom: 1px solid var(--border-light); }
            h3 { font-size: 16px !important; margin: 30px 0 15px 0 !important; text-transform: uppercase; color: var(--text-secondary) !important; border-bottom: 1px solid var(--border-light); }
            .os-grid-4 { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; margin-bottom: 20px !important; }
            .os-grid-2 { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 20px !important; margin-bottom: 20px !important; }
            .os-card { border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important; padding: 15px !important; box-shadow: none !important; break-inside: avoid; }
            .os-chart-container { max-height: 250px !important; width: 100% !important; }
            canvas { max-height: 250px !important; }
            table { width: 100% !important; border-collapse: collapse; }
            th { text-align: left; font-size: 11px; border-bottom: 2px solid var(--border-light); padding-bottom: 5px; }
            td { padding: 6px 0 !important; font-size: 12px; border-bottom: 1px solid var(--border-light); }
        }


/* === INLINE STYLES FROM ai-inline.css === */
/**
 * Extracted Inline Styles → temp/ai-inline.css
 * Generated: 2026-02-07 20:48
 * Blocks: 3
 */


/* Source: includes/ai-insights.php line 321 (block 1/3) */
/* AI Modal - Shared */
    .ai-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 99999; }
    .ai-modal.hidden { display: none; }
    .ai-modal-content { background: var(--surface); border-radius: var(--radius-lg); padding: 30px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }
    .ai-modal h2 { margin: 0 0 20px; font-size: 20px; }
    .ai-form-row { margin-bottom: 20px; }
    .ai-form-row label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
    .ai-form-row select, .ai-form-row input, .ai-form-row textarea { width: 100%; padding: 12px; border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 14px; box-sizing: border-box; font-family: inherit; }
    .ai-form-row .hint { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
    .ai-form-row .hint a { color: #6366f1; }
    
    /* AI Buttons - Shared */
    .ai-btn { padding: 12px 24px; border-radius: var(--radius); border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; user-select: none; box-sizing: border-box; }
    .ai-btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: var(--text-inverse); }
    .ai-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
    .ai-btn-outline { background: var(--surface); border: 2px solid var(--border-light); color: var(--text-secondary); }
    .ai-btn-outline:hover { border-color: #6366f1; color: #6366f1; }


/* Source: includes/ai-insights.php line 2868 (block 2/3) */
.ai-front { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 15px; width: 100%; max-width: 100%; }
        .ai-front * { box-sizing: border-box; }
        
        /* Stats Row */
        .ai-stats-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 15px; }
        .ai-stat-mini { background: var(--surface); border-radius: 10px; padding: 12px 15px; text-align: center; min-width: 70px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
        .ai-stat-mini .num { font-size: 22px; font-weight: 700; }
        .ai-stat-mini .lbl { font-size: 9px; color: var(--text-secondary); text-transform: uppercase; margin-top: 2px; }
        .ai-stat-mini.danger .num { color: var(--danger); }
        .ai-stat-mini.warning .num { color: var(--warning); }
        .ai-stat-mini.success .num { color: var(--success); }
        .ai-stat-mini.purple .num { color: #8b5cf6; }
        
        /* Setup Banner */
        .ai-setup-banner { background: linear-gradient(135deg, var(--warning-bg), var(--warning-bg)); border-radius: var(--radius-md); padding: 15px; margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
        .ai-setup-banner .icon { font-size: 28px; }
        .ai-setup-banner .txt { flex: 1; }
        .ai-setup-banner h4 { margin: 0 0 4px; font-size: 14px; }
        .ai-setup-banner p { margin: 0; font-size: 12px; color: var(--warning-text); }
        .ai-setup-banner .ai-setup-btn { padding: 8px 16px; border-radius: var(--radius); background: var(--text); color: var(--text-inverse); font-size: 12px; font-weight: 600; cursor: pointer; user-select: none; }
        .ai-setup-banner .ai-setup-btn:hover { background: var(--text); }
        
        /* Chat Interface */
        .ai-chat-wrap { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow); overflow: hidden; }
        .ai-chat-header { padding: 15px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
        .ai-chat-header h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
        .ai-chat-messages { height: 300px; overflow-y: auto; padding: 15px; background: var(--bg); }
        .ai-chat-welcome { text-align: center; padding: 30px 15px; }
        .ai-chat-welcome .icon { font-size: 36px; margin-bottom: 10px; }
        .ai-chat-welcome h4 { margin: 0 0 8px; font-size: 15px; }
        .ai-chat-welcome p { margin: 0 0 15px; color: var(--text-secondary); font-size: 13px; }
        .ai-example-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
        .ai-example-btn { background: var(--surface); border: 1px solid var(--border-light); border-radius: 20px; padding: 6px 12px; font-size: 11px; cursor: pointer; color: var(--text-secondary); user-select: none; }
        .ai-example-btn:hover { border-color: #6366f1; color: #6366f1; }
        .ai-example-btn:active { transform: scale(0.98); }
        
        .ai-msg { margin-bottom: 12px; display: flex; gap: 10px; }
        .ai-msg.user { flex-direction: row-reverse; }
        .ai-msg-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
        .ai-msg.user .ai-msg-avatar { background: #6366f1; color: var(--text-inverse); }
        .ai-msg.ai .ai-msg-avatar { background: linear-gradient(135deg, #8b5cf6, #6366f1); color: var(--text-inverse); }
        .ai-msg-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
        .ai-msg.user .ai-msg-bubble { background: #6366f1; color: var(--text-inverse); border-bottom-right-radius: 4px; }
        .ai-msg.ai .ai-msg-bubble { background: var(--surface); color: var(--text); border: 1px solid var(--border-light); border-bottom-left-radius: 4px; }
        
        .ai-chat-input { display: flex; gap: 8px; padding: 12px; background: var(--surface); border-top: 1px solid var(--border-light); }
        .ai-chat-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--border-light); border-radius: 20px; font-size: 13px; }
        .ai-chat-input input:focus { outline: none; border-color: #6366f1; }
        .ai-send-btn { padding: 10px 18px; border-radius: 20px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: var(--text-inverse); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; user-select: none; }
        .ai-send-btn:hover { opacity: 0.9; }
        .ai-send-btn:active { transform: scale(0.98); }
        
        .ai-typing { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 12px; padding: 8px 0; }
        .ai-typing-dots { display: flex; gap: 3px; }
        .ai-typing-dots span { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; animation: aiTyping 1.4s infinite; }
        .ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
        .ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes aiTyping { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
        
        /* Student Cards */
        .ai-section { margin-top: 20px; }
        .ai-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .ai-section-header h4 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; }
        .ai-section-header .count { background: var(--danger-bg); color: var(--danger-text); font-size: 11px; padding: 2px 8px; border-radius: 10px; }
        
        .ai-student-list { display: flex; flex-direction: column; gap: 8px; }
        .ai-student-card { background: var(--surface); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); }
        .ai-student-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: var(--text-inverse); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
        .ai-student-info { flex: 1; min-width: 0; }
        .ai-student-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .ai-student-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
        .ai-student-badge { padding: 3px 8px; border-radius: var(--radius-md); font-size: 10px; font-weight: 600; white-space: nowrap; }
        .ai-badge-danger { background: var(--danger-bg); color: var(--danger-text); }
        .ai-badge-warning { background: var(--warning-bg); color: var(--warning-text); }
        .ai-student-actions { display: flex; gap: 6px; }
        .ai-btn-sm { padding: 6px 10px; border-radius: var(--radius-sm); font-size: 11px; cursor: pointer; background: #6366f1; color: var(--text-inverse); user-select: none; display: flex; align-items: center; justify-content: center; }
        .ai-btn-sm:hover { opacity: 0.9; }
        .ai-btn-outline-sm { padding: 6px 10px; border-radius: var(--radius-sm); font-size: 11px; cursor: pointer; background: var(--surface); border: 1px solid var(--border-light); color: var(--text-secondary); user-select: none; }
        .ai-btn-outline-sm:hover { border-color: #6366f1; color: #6366f1; }
        
        /* Settings Modal - Frontend specific classes */
        .ai-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 20px; }
        .ai-modal-overlay.hidden { display: none; }
        .ai-modal-box { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; width: 100%; max-width: 400px; max-height: 80vh; overflow-y: auto; }
        .ai-modal-box h3 { margin: 0 0 15px; font-size: 18px; }
        .ai-form-group { margin-bottom: 15px; }
        .ai-form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
        .ai-form-group select, .ai-form-group input { width: 100%; padding: 10px; border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 13px; }
        .ai-form-group .hint { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
        .ai-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
        .ai-modal-actions button { flex: 1; padding: 10px; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; }
        .ai-modal-actions .primary { background: #6366f1; color: var(--text-inverse); border: none; }
        .ai-modal-actions .secondary { background: var(--surface); border: 1px solid var(--border-light); color: var(--text-secondary); }
        
        /* Settings Modal - Shared modal classes (used by olami_render_ai_settings_modal) */
        .ai-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 99999; }
        .ai-modal.hidden { display: none; }
        .ai-modal-content { background: var(--surface); border-radius: var(--radius-lg); padding: 25px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
        .ai-modal h2 { margin: 0 0 20px; font-size: 20px; }
        .ai-form-row { margin-bottom: 18px; }
        .ai-form-row label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 13px; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; }
        .ai-form-row select, .ai-form-row input, .ai-form-row textarea { width: 100%; padding: 12px; border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 14px; box-sizing: border-box; font-family: inherit; }
        .ai-form-row select:focus, .ai-form-row input:focus, .ai-form-row textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
        .ai-form-row .hint { font-size: 12px; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }
        .ai-form-row .hint a { color: #6366f1; }
        .ai-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; user-select: none; }
        .ai-btn-primary { background: #6366f1; color: var(--text-inverse); }
        .ai-btn-primary:hover { background: #4f46e5; }
        .ai-btn-outline { background: var(--surface); border: 1px solid var(--border-light); color: var(--text-secondary); }
        .ai-btn-outline:hover { border-color: #6366f1; color: #6366f1; }
        
        /* Mobile optimizations */
        @media (max-width: 768px) {
            .ai-front { padding: 8px; }
            .ai-stats-row { gap: 6px; margin-bottom: 10px; }
            .ai-stat-mini { padding: 8px 10px; min-width: 58px; }
            .ai-stat-mini .num { font-size: 18px; }
            .ai-stat-mini .lbl { font-size: 8px; }
            .ai-chat-wrap { border-radius: 10px; }
            /* Chat fills most of the viewport — stats ~60px + header ~50px + input ~55px + padding */
            .ai-chat-messages { height: calc(100vh - 230px); min-height: 320px; }
            .ai-chat-input input { font-size: 16px; } /* prevents iOS zoom on focus */
            .ai-student-actions { flex-direction: column; }
            .ai-student-actions .ai-btn-sm { padding: 5px 8px; font-size: 10px; }
        }


/* Source: includes/ai-insights.php line 3375 (block 3/3) */
.ai-wrap { max-width: 1200px; margin: 20px auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
        .ai-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
        .ai-header h1 { margin: 0; font-size: 28px; }
        .ai-header-actions { display: flex; gap: 10px; }
        
        /* Stats Grid */
        .ai-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; margin-bottom: 25px; }
        .ai-stat { background: var(--surface); border-radius: var(--radius-md); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
        .ai-stat .num { font-size: 32px; font-weight: bold; }
        .ai-stat .label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; margin-top: 4px; }
        .ai-stat.danger .num { color: var(--danger); }
        .ai-stat.warning .num { color: var(--warning); }
        .ai-stat.info .num { color: var(--info); }
        .ai-stat.success .num { color: var(--success); }
        .ai-stat.purple .num { color: #8b5cf6; }
        
        /* Cards */
        .ai-card { background: var(--surface); border-radius: var(--radius-md); padding: 25px; box-shadow: var(--shadow); margin-bottom: 20px; }
        .ai-card h2 { margin: 0 0 15px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
        .ai-card h3 { margin: 20px 0 10px; font-size: 15px; color: var(--text); }
        
        /* Tabs */
        .ai-tabs { display: flex; gap: 0; margin-bottom: 20px; background: var(--surface-active); border-radius: 10px; padding: 4px; }
        .ai-tab { flex: 1; padding: 12px 20px; text-align: center; cursor: pointer; font-weight: 600; font-size: 14px; border-radius: var(--radius); color: var(--text-secondary); transition: all 0.2s; }
        .ai-tab:hover { color: var(--text); }
        .ai-tab.active { background: var(--surface); color: #6366f1; box-shadow: var(--shadow-sm); }
        
        /* Student List */
        .student-list { max-height: 500px; overflow-y: auto; }
        .student-item { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid var(--border-light); gap: 15px; }
        .student-item:hover { background: var(--surface-hover); }
        .student-item:last-child { border-bottom: none; }
        .student-avatar { width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: var(--text-inverse); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; }
        .student-info { flex: 1; }
        .student-name { font-weight: 600; font-size: 15px; }
        .student-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
        .student-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
        .badge-danger { background: var(--danger-bg); color: var(--danger-text); }
        .badge-warning { background: var(--warning-bg); color: var(--warning-text); }
        .badge-info { background: var(--info-bg); color: var(--info-text); }
        .badge-success { background: var(--success-bg); color: var(--success-text); }
        .badge-purple { background: #f3e8ff; color: #6b21a8; }
        .student-actions { display: flex; gap: 8px; }
        .student-actions button { padding: 6px 12px; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; transition: all 0.2s; }
        .btn-primary { background: #6366f1; color: var(--text-inverse); }
        .btn-primary:hover { background: #4f46e5; }
        .btn-outline { background: var(--surface); border: 1px solid var(--border-light); color: var(--text-secondary); }
        .btn-outline:hover { border-color: #6366f1; color: #6366f1; }
        
        /* AI Response */
        .ai-response { background: linear-gradient(135deg, var(--info-bg), #f5f3ff); border-radius: var(--radius-md); padding: 20px; margin: 20px 0; border-left: 4px solid #6366f1; }
        .ai-response h4 { margin: 0 0 10px; font-size: 14px; color: #6366f1; }
        .ai-response-content { font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
        .ai-response-content strong { color: var(--text); }
        
        /* Buttons */
        .ai-btn { padding: 12px 24px; border-radius: var(--radius); border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
        .ai-btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: var(--text-inverse); }
        .ai-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
        .ai-btn-outline { background: var(--surface); border: 2px solid var(--border-light); color: var(--text-secondary); }
        .ai-btn-outline:hover { border-color: #6366f1; color: #6366f1; }
        .ai-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
        
        /* Settings Modal */
        .ai-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 99999; }
        .ai-modal.hidden { display: none; }
        .ai-modal-content { background: var(--surface); border-radius: var(--radius-lg); padding: 30px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }
        .ai-modal h2 { margin: 0 0 20px; }
        .ai-form-row { margin-bottom: 20px; }
        .ai-form-row label { display: block; font-weight: 600; margin-bottom: 8px; }
        .ai-form-row select, .ai-form-row input { width: 100%; padding: 12px; border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 14px; }
        .ai-form-row .hint { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
        
        /* Message Generator */
        .message-gen { background: var(--bg); border-radius: var(--radius-md); padding: 20px; margin-top: 20px; }
        .message-gen textarea { width: 100%; padding: 12px; border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 14px; min-height: 80px; resize: vertical; }
        .message-output { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 15px; margin-top: 15px; min-height: 60px; }
        
        /* Loading */
        .ai-loading { display: flex; align-items: center; justify-content: center; padding: 40px; color: var(--text-secondary); }
        .ai-loading .spinner { width: 24px; height: 24px; border: 3px solid var(--border-light); border-top-color: #6366f1; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 12px; }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        /* Setup Banner */
        .setup-banner { background: linear-gradient(135deg, var(--warning-bg), var(--warning-bg)); border-radius: var(--radius-md); padding: 25px; margin-bottom: 25px; display: flex; align-items: center; gap: 20px; }
        .setup-banner .icon { font-size: 40px; }
        .setup-banner .content { flex: 1; }
        .setup-banner h3 { margin: 0 0 8px; }
        .setup-banner p { margin: 0; color: var(--warning-text); }
        
        /* Tab panels */
        .tab-panel { display: none; }
        .tab-panel.active { display: block; }
        
        /* Chat Interface */
        .chat-container { border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; }
        .chat-messages { height: 400px; overflow-y: auto; padding: 20px; background: var(--bg); }
        .chat-welcome { text-align: center; padding: 40px 20px; }
        .chat-welcome h3 { margin: 0 0 10px; color: var(--text); }
        .chat-welcome p { color: var(--text-secondary); margin-bottom: 20px; }
        .example-questions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 600px; margin: 0 auto; }
        .example-q { background: var(--surface); border: 1px solid var(--border-light); border-radius: 20px; padding: 8px 16px; font-size: 13px; cursor: pointer; transition: all 0.2s; color: var(--text-secondary); user-select: none; }
        .example-q:hover { border-color: #6366f1; color: #6366f1; background: var(--surface-hover); }
        .example-q:active { transform: scale(0.98); }
        
        .chat-message { margin-bottom: 16px; display: flex; gap: 12px; }
        .chat-message.user { flex-direction: row-reverse; }
        .chat-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
        .chat-message.user .chat-avatar { background: #6366f1; color: var(--text-inverse); }
        .chat-message.ai .chat-avatar { background: linear-gradient(135deg, #8b5cf6, #6366f1); color: var(--text-inverse); }
        .chat-bubble { max-width: 80%; padding: 12px 16px; border-radius: var(--radius-lg); line-height: 1.5; }
        .chat-message.user .chat-bubble { background: #6366f1; color: var(--text-inverse); border-bottom-right-radius: 4px; }
        .chat-message.ai .chat-bubble { background: var(--surface); color: var(--text); border: 1px solid var(--border-light); border-bottom-left-radius: 4px; }
        .chat-bubble p { margin: 0 0 10px; }
        .chat-bubble p:last-child { margin: 0; }
        .chat-bubble strong { color: inherit; }
        
        .chat-input-area { display: flex; gap: 10px; padding: 15px; background: var(--surface); border-top: 1px solid var(--border-light); }
        .chat-input-area input { flex: 1; padding: 12px 16px; border: 1px solid var(--border-light); border-radius: var(--radius-xl); font-size: 14px; }
        .chat-input-area input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
        .chat-input-area button { border-radius: var(--radius-xl); padding: 12px 24px; }
        
        .chat-typing { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 14px; padding: 10px 0; }
        .typing-dots { display: flex; gap: 4px; }
        .typing-dots span { width: 8px; height: 8px; background: var(--text-muted); border-radius: 50%; animation: typing 1.4s infinite; }
        .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
        .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }


/* === INLINE STYLES FROM settings-inline.css === */
/**
 * Extracted Inline Styles → temp/settings-inline.css
 * Generated: 2026-02-07 20:48
 * Blocks: 3
 */


/* Source: includes/class-olami-settings.php line 761 (block 1/3) */
/* Minimal preview styles to match frontend */
                    .olami-master-card {
                        background: var(--card-bg-dark);
                        border: 1px solid rgba(255, 255, 255, 0.1);
                        border-top: 1px solid rgba(255, 255, 255, 0.2);
                        border-bottom: 3px solid var(--card-accent);
                        border-radius: 20px;
                        padding: 30px;
                        text-align: center;
                        position: relative;
                        color: var(--text-inverse); /* Fallback */
                        color: var(--text-body);
                        font-family: system-ui, sans-serif;
                    }
                    .olami-card-glow {
                        position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
                        width: 105%; height: 105%;
                        background: linear-gradient(45deg, var(--card-secondary), var(--card-accent), var(--card-secondary));
                        filter: blur(40px); opacity: var(--shine-opacity); z-index: -1;
                        border-radius: 30px;
                    }
                    .om-tagline {
                        color: var(--card-accent); font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
                        margin-bottom: 10px; display: inline-block; background: rgba(255,255,255,0.05);
                        padding: 4px 10px; border-radius: 20px; border: 1px solid var(--card-accent);
                    }
                    .om-title { font-size: 28px; margin: 0 0 5px 0; font-weight: 800; text-transform: uppercase; line-height:1; color: var(--text-title); }
                    .om-subtitle { font-size: 14px; opacity:0.8; font-weight: 300; margin-bottom: 20px; color: var(--text-body);}
                    .om-desc { color: var(--text-body); font-size: 0.95rem; line-height: 1.6; margin-bottom: 30px; opacity: 0.9; }
                    .om-info-grid { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
                    .om-info-item { text-align: center; }
                    .om-label { display: block; font-size: 9px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
                    .om-value { display: block; font-size: 13px; font-weight: 600; color: var(--text-body); }
                    .om-value.highlight { color: var(--card-accent); }
                    .om-cta-area { background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 15px; border: 1px dashed rgba(255,255,255,0.2); }
                    .om-button { display: inline-block; background: var(--card-accent); color: var(--text); padding: 10px 20px; font-weight: 700; text-transform: uppercase; border-radius: 4px; font-size: 12px; }


/* Source: includes/class-olami-settings.php line 912 (block 2/3) */
.cap-shimmer-preview {
                        position: absolute;
                        top: 0;
                        left: -100%;
                        width: 100%;
                        height: 100%;
                        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
                        animation: cap-shimmer-anim 2s infinite;
                    }
                    @keyframes cap-shimmer-anim {
                        0% { left: -100%; }
                        100% { left: 200%; }
                    }


/* Source: includes/class-olami-settings.php line 1429 (block 3/3) */
/* Toggle Switch Styles */
        .om-toggle {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }
        .om-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .om-toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--border);
            transition: .3s;
            border-radius: 26px;
        }
        .om-toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        .om-toggle input:checked + .om-toggle-slider {
            background-color: var(--success);
        }
        .om-toggle input:checked + .om-toggle-slider:before {
            transform: translateX(24px);
        }
        
        /* Ticket Preview Styles */
        .ticket-preview-wrap {
            flex: 0 0 auto;
        }
        .ticket-preview {
            display: flex;
            width: 280px;
            height: 120px;
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        .ticket-body {
            flex: 1;
            position: relative;
            background: linear-gradient(135deg, #8B2346 0%, #5c1a2e 100%);
            display: flex;
            align-items: center;
            mask-image: radial-gradient(circle at right center, transparent 8px, black 8.5px);
            -webkit-mask-image: radial-gradient(circle at right center, transparent 8px, black 8.5px);
        }
        .ticket-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 1;
        }
        .ticket-content {
            position: relative;
            z-index: 2;
            padding: 15px;
            color: var(--text-inverse);
        }
        .ticket-date {
            font-size: 9px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.9;
            margin-bottom: 4px;
        }
        .ticket-title {
            font-size: 16px;
            font-weight: 800;
            margin-bottom: 6px;
            letter-spacing: -0.3px;
        }
        .ticket-meta {
            font-size: 11px;
            opacity: 0.85;
        }
        .ticket-stub {
            width: 45px;
            background: #924d61;
            display: flex;
            align-items: center;
            justify-content: center;
            mask-image: radial-gradient(circle at left center, transparent 8px, black 8.5px);
            -webkit-mask-image: radial-gradient(circle at left center, transparent 8px, black 8.5px);
        }
        .ticket-stub span {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            color: var(--text-inverse);
            font-weight: 800;
            font-size: 10px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }
        .ticket-stub-pending {
            background: #b8860b;
        }
        .ticket-stub-rejected {
            background: var(--text-secondary);
        }
        
        /* Range slider styling */
        input[type="range"] {
            -webkit-appearance: none;
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: var(--border);
            outline: none;
        }
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--text);
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }
        input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--text);
            cursor: pointer;
            border: none;
        }


/* Source: includes/ajax-handlers.php line 3599 (block 1/1) */
/* V310 Clean Matrix Design */
    .om-matrix-wrap { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
    .om-matrix-card { background:var(--surface); border-radius:var(--radius-lg); box-shadow:var(--shadow-xs); overflow:hidden; margin-bottom:24px; }
    .om-matrix-header { display:flex; justify-content:space-between; align-items:center; padding:20px 24px; border-bottom:1px solid var(--border-light); flex-wrap:wrap; gap:12px; }
    .om-matrix-title { font-size:15px; font-weight:600; color:var(--text); display:flex; align-items:center; gap:10px; }
    .om-matrix-stats { display:flex; gap:12px; flex-wrap:wrap; }
    .om-stat { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--text-secondary); }
    .om-stat-num { font-weight:600; color:var(--text); background:var(--surface-active); padding:4px 10px; border-radius:20px; }
    .om-stat-male { color:var(--info); background:var(--info-bg); }
    .om-stat-female { color:#ec4899; background:#fce7f3; }
    .om-stat-latino { color:var(--warning); background:var(--warning-bg); }
    
    .om-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .om-table { width:100%; border-collapse:collapse; min-width:600px; }
    .om-table th { padding:14px 12px; text-align:left; font-size:11px; font-weight:600; color:var(--text-secondary); text-transform:uppercase; letter-spacing:0.5px; background:var(--surface-hover); border-bottom:1px solid var(--border-light); white-space:nowrap; }
    .om-table th.session { text-align:center; min-width:50px; }
    .om-table th.total-col { background:var(--surface-active); text-align:center; }
    .om-table th.status-col { background:var(--surface-active); text-align:center; min-width:90px; }
    
    .om-table td { padding:14px 12px; border-bottom:1px solid var(--border-light); vertical-align:middle; }
    .om-table tr:last-child td { border-bottom:none; }
    .om-table tr:hover { background:var(--surface-hover); }
    
    .om-student { display:flex; align-items:center; gap:10px; }
    .om-student-name { font-size:14px; font-weight:500; color:var(--text); }
    .om-gender-tag { font-size:10px; padding:3px 8px; border-radius:12px; font-weight:500; }
    .om-gender-tag.m { background:var(--info-bg); color:var(--info-text); }
    .om-gender-tag.f { background:#fce7f3; color:#be185d; }
    .om-gender-tag.unknown { background:var(--surface-active); color:var(--text-secondary); }
    .om-latino-tag { font-size:10px; padding:3px 8px; border-radius:12px; font-weight:500; background:var(--warning-bg); color:var(--warning-text); }
    
    .om-table td.session { text-align:center; }
    .om-check { color:var(--success); font-size:16px; }
    .om-miss { color:var(--border-light); font-size:14px; }
    .om-future { color:var(--border); font-size:10px; }
    
    .om-table td.total-col { text-align:center; font-weight:600; font-size:15px; color:var(--text); background:var(--surface-hover); }
    .om-table td.status-col { text-align:center; background:var(--surface-hover); }
    
    .om-status { display:inline-block; padding:5px 12px; border-radius:20px; font-size:11px; font-weight:600; }
    .om-status.eligible { background:var(--success-bg); color:var(--success-text); }
    .om-status.at-risk { background:var(--warning-bg); color:var(--warning-text); }
    .om-status.behind { background:var(--danger-bg); color:var(--danger); }
    
    .om-row-eligible { background:var(--success-bg) !important; }
    .om-row-eligible:hover { background:var(--success-bg) !important; }
    .om-row-risk { background:var(--warning-bg) !important; }
    .om-row-risk:hover { background:var(--warning-bg) !important; }
    .om-row-behind { background:var(--danger-bg) !important; }
    .om-row-behind:hover { background:var(--danger-bg) !important; }
    
    .om-trip-cell { font-size:12px; color:var(--text-secondary); white-space:nowrap; }
    
    .om-empty { padding:48px 24px; text-align:center; color:var(--text-muted); }
    
    @media (max-width: 768px) {
        .om-matrix-header { padding:16px; }
        .om-matrix-title { font-size:14px; }
        .om-matrix-stats { gap:8px; }
        .om-table th, .om-table td { padding:10px 8px; }
        .om-student-name { font-size:13px; }
        .om-table th.session { min-width:40px; font-size:10px; }
    }

/* Source: includes/analytics-hub.php line 83 (block 1/1) */
.analytics-hub-wrap {
        max-width: 1600px;
        margin: 20px auto;
    }
    
    .analytics-hub-header {
        margin-bottom: 20px;
    }
    
    .analytics-hub-header h1 {
        font-size: 28px;
        font-weight: 700;
        margin: 0 0 5px 0;
    }
    
    .analytics-hub-header .description {
        color: var(--text-secondary);
        font-size: 14px;
        margin: 0;
    }
    
    .analytics-hub-nav {
        display: flex;
        gap: 5px;
        background: var(--surface-active);
        padding: 5px;
        border-radius: var(--radius);
        margin-bottom: 20px;
        max-width: 350px;
    }
    
    .analytics-tab {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: transparent;
        border: none;
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s;
    }
    
    .analytics-tab:hover {
        background: var(--border);
        color: var(--text);
    }

    .analytics-tab.active {
        background: var(--surface);
        color: var(--text);
        box-shadow: var(--shadow-xs);
    }
    
    .analytics-tab .tab-icon {
        font-size: 18px;
    }
    
    .analytics-hub-content {
        background: var(--surface);
        padding: 25px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-xs);
    }
    
    /* Override child page wrap styles */
    .analytics-hub-content .wrap {
        margin: 0;
        padding: 0;
    }
    
    .analytics-hub-content .wrap h1:first-child,
    .analytics-hub-content .olami-stats-wrap > h1:first-child {
        display: none; /* Hide redundant titles */
    }
    
    .analytics-hub-content .olami-reports-wrap > h1:first-child {
        display: none;
    }
    
    .analytics-hub-content .wp-header-end {
        display: none;
    }
    
    @media (max-width: 782px) {
        .analytics-hub-nav {
            max-width: 100%;
        }
        
        .analytics-tab {
            flex: 1;
            justify-content: center;
        }
    }

/* Source: includes/bulk-user-creator.php line 55 (block 1/1) */
.olami-bulk-wrap { max-width: 1000px; margin: 20px auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
        .olami-bulk-card { background: var(--surface); border-radius: var(--radius-md); padding: 30px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
        .olami-bulk-card h2 { margin-top: 0; }
        .olami-textarea { width: 100%; min-height: 300px; font-family: monospace; font-size: 13px; padding: 15px; border: 1px solid var(--border-light); border-radius: var(--radius); line-height: 1.6; }
        .olami-btn { padding: 12px 24px; border-radius: var(--radius); border: none; cursor: pointer; font-size: 14px; font-weight: 600; }
        .olami-btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: var(--text-inverse); }
        .olami-btn-success { background: linear-gradient(135deg, var(--success), var(--success-text)); color: var(--text-inverse); }
        .olami-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 20px 0; }
        .olami-stat { background: var(--bg); border-radius: var(--radius); padding: 15px; text-align: center; }
        .olami-stat-num { font-size: 28px; font-weight: bold; }
        .olami-stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; }
        .olami-stat.success .olami-stat-num { color: var(--success); }
        .olami-stat.warning .olami-stat-num { color: var(--warning); }
        .olami-stat.info .olami-stat-num { color: var(--info); }
        .olami-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
        .olami-table th { background: var(--surface-active); padding: 10px 12px; text-align: left; font-size: 11px; text-transform: uppercase; }
        .olami-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-light); }
        .olami-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; }
        .olami-badge-success { background: var(--success-bg); color: var(--success-text); }
        .olami-badge-warning { background: var(--warning-bg); color: var(--warning-text); }
        .olami-badge-info { background: var(--info-bg); color: var(--info-text); }
        .olami-alert { padding: 12px 16px; border-radius: var(--radius); margin: 15px 0; font-size: 13px; }
        .olami-alert-info { background: var(--info-bg); color: var(--info-text); }
        .olami-alert-success { background: var(--success-bg); color: var(--success-text); }
        .olami-format-example { background: var(--bg); padding: 15px; border-radius: var(--radius); font-family: monospace; font-size: 12px; margin: 10px 0; white-space: pre-line; }

/* Source: includes/communication-hub.php line 89 (block 1/1) */
.communication-hub-wrap {
        max-width: 1600px;
        margin: 20px auto;
    }
    
    .communication-hub-header {
        margin-bottom: 20px;
    }
    
    .communication-hub-header h1 {
        font-size: 28px;
        font-weight: 700;
        margin: 0 0 5px 0;
    }
    
    .communication-hub-header .description {
        color: var(--text-secondary);
        font-size: 14px;
        margin: 0;
    }
    
    .communication-hub-nav {
        display: flex;
        gap: 5px;
        background: var(--surface-active);
        padding: 5px;
        border-radius: var(--radius);
        margin-bottom: 20px;
        max-width: 350px;
    }
    
    .communication-tab {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: transparent;
        border: none;
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s;
    }
    
    .communication-tab:hover {
        background: var(--border);
        color: var(--text);
    }

    .communication-tab.active {
        background: var(--surface);
        color: var(--text);
        box-shadow: var(--shadow-xs);
    }
    
    .communication-tab .tab-icon {
        font-size: 18px;
    }
    
    .communication-hub-content {
        background: var(--surface);
        padding: 25px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-xs);
    }
    
    /* Override child page wrap styles */
    .communication-hub-content .wrap {
        margin: 0;
        padding: 0;
    }
    
    .communication-hub-content > h1:first-child,
    .communication-hub-content > h2:first-child,
    .communication-hub-content .wrap > h1:first-child {
        display: none;
    }
    
    @media (max-width: 782px) {
        .communication-hub-nav {
            max-width: 100%;
        }
        
        .communication-tab {
            flex: 1;
            justify-content: center;
        }
    }

/* Source: includes/db-maintenance.php line 70 (block 1/1) */
.olami-db-manager { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
    .olami-db-manager h1 { font-size: 28px; font-weight: 600; margin-bottom: 20px; }
    .db-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 25px 0; }
    .db-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 25px; text-align: center; }
    .db-stat-card.highlight { border-color: var(--info); background: linear-gradient(135deg, var(--info-bg) 0%, #fff 100%); }
    .db-stat-card.warning { border-color: var(--warning); background: linear-gradient(135deg, #fffbeb 0%, #fff 100%); }
    .db-stat-value { font-size: 36px; font-weight: 700; color: var(--text); line-height: 1.2; }
    .db-stat-card.highlight .db-stat-value { color: var(--info); }
    .db-stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 5px; }
    .db-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 25px; margin: 20px 0; }
    .db-section h2 { margin: 0 0 15px 0; font-size: 18px; font-weight: 600; }
    .db-table { width: 100%; border-collapse: collapse; }
    .db-table th { background: var(--bg); padding: 12px 15px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
    .db-table td { padding: 12px 15px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
    .db-table tr:hover { background: var(--surface-hover); }
    .db-table .size-col { text-align: right; font-weight: 600; font-family: monospace; }
    .db-table .rows-col { text-align: right; color: var(--text-secondary); }
    .table-type-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
    .badge-wp { background: var(--info-bg); color: var(--info-text); }
    .badge-olami { background: #fce4ec; color: #c2185b; }
    .badge-plugin { background: #f3e5f5; color: #7b1fa2; }
    .badge-staging { background: #fff3e0; color: #e65100; }
    .btn-action { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
    .btn-primary { background: var(--info); color: var(--text-inverse); }
    .btn-primary:hover { background: var(--secondary); }
    .btn-secondary { background: var(--bg); color: var(--text); }
    .btn-secondary:hover { background: var(--border); }
    .action-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
    .cleanup-rule { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: var(--bg); border-radius: var(--radius); margin-bottom: 10px; }
    .cleanup-rule-info { flex: 1; }
    .cleanup-rule-name { font-weight: 600; color: var(--text); }
    .cleanup-rule-desc { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
    .cleanup-rule-retention { background: var(--success-bg); color: var(--success); padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
    .results-box { background: var(--success-bg); border: 1px solid var(--success); border-radius: var(--radius); padding: 15px; margin-top: 15px; display: none; }
    .results-box.error { background: var(--danger-bg); border-color: var(--danger); }
    .results-box pre { margin: 10px 0 0 0; font-size: 12px; white-space: pre-wrap; background: var(--surface); padding: 10px; border-radius: var(--radius-sm); }
    .schedule-info { background: linear-gradient(135deg, var(--info-bg) 0%, var(--info-bg) 100%); border: 1px solid var(--info); border-radius: var(--radius-md); padding: 20px; margin: 20px 0; }
    .schedule-info h3 { margin: 0 0 10px 0; color: var(--info-text); }
    .schedule-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(14, 165, 233, 0.2); }
    .schedule-item:last-child { border-bottom: none; }

/* Source: includes/google-auth.php line 331 (block 1/2) */
.olami-login-wrapper {
        max-width: 420px;
        margin: 0 auto;
        padding: 20px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    .olami-login-card {
        background: var(--surface);
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
        padding: 40px;
        position: relative;
        overflow: hidden;
    }
    .olami-login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), rgba(var(--primary-rgb), 0.67));
    }
    .olami-login-header {
        text-align: center;
        margin-bottom: 32px;
    }
    .olami-login-header h2 {
        font-size: 26px;
        font-weight: 700;
        color: var(--text);
        margin: 0 0 8px 0;
    }
    .olami-login-header p {
        font-size: 14px;
        color: var(--text-secondary);
        margin: 0;
    }
    
    /* Google Button */
    .olami-google-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        padding: 14px 20px;
        background: var(--surface);
        border: 2px solid var(--border-light);
        border-radius: var(--radius-md);
        font-size: 15px;
        font-weight: 600;
        color: var(--text);
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
    }
    .olami-google-btn:hover {
        border-color: #4285f4;
        background: var(--bg);
        box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
        transform: translateY(-1px);
    }
    .olami-google-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Divider */
    .olami-login-divider {
        display: flex;
        align-items: center;
        margin: 28px 0;
        color: var(--text-muted);
        font-size: 13px;
    }
    .olami-login-divider::before,
    .olami-login-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border-light);
    }
    .olami-login-divider span {
        padding: 0 16px;
    }
    
    /* Form Fields */
    .olami-login-field {
        margin-bottom: 20px;
    }
    .olami-login-field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 8px;
    }
    .olami-login-field input {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid var(--border-light);
        border-radius: var(--radius-md);
        font-size: 15px;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }
    .olami-login-field input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.13);
    }
    
    /* Remember & Forgot */
    .olami-login-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        font-size: 13px;
    }
    .olami-login-options label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-secondary);
        cursor: pointer;
    }
    .olami-login-options input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--primary);
    }
    .olami-login-options a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
    }
    .olami-login-options a:hover {
        text-decoration: underline;
    }
    
    /* Submit Button */
    .olami-login-submit {
        width: 100%;
        padding: 16px;
        background: var(--primary);
        border: none;
        border-radius: var(--radius-md);
        font-size: 16px;
        font-weight: 700;
        color: var(--text-inverse);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .olami-login-submit:hover {
        opacity: 0.9;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
    }
    
    /* Register Link */
    .olami-login-register {
        text-align: center;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid var(--border-light);
        font-size: 14px;
        color: var(--text-secondary);
    }
    .olami-login-register a {
        color: var(--primary);
        font-weight: 600;
        text-decoration: none;
    }
    .olami-login-register a:hover {
        text-decoration: underline;
    }
    
    /* Error Messages */
    .olami-login-error {
        background: var(--danger-bg);
        border: 1px solid var(--danger-bg);
        color: var(--danger);
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 13px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    /* Mobile */
    @media (max-width: 480px) {
        .olami-login-card {
            padding: 28px 20px;
        }
    }

/* Source: includes/google-auth.php line 642 (block 2/2) */
.olami-google-standalone {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 14px 28px;
        background: var(--surface);
        border: 2px solid var(--border-light);
        border-radius: var(--radius-md);
        font-size: 15px;
        font-weight: 600;
        color: var(--text);
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    .olami-google-standalone:hover {
        border-color: #4285f4;
        background: var(--bg);
        box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
        transform: translateY(-1px);
        color: var(--text);
        text-decoration: none;
    }
    .olami-google-standalone svg {
        width: 20px;
        height: 20px;
    }

/* Source: includes/import-hub.php line 1212 (block 1/1) */
.import-hub-wrap { max-width: 900px; margin: 20px auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
        
        /* Tabs */
        .hub-tabs { display: flex; gap: 0; margin-bottom: 0; }
        .hub-tab { padding: 14px 28px; background: var(--surface-active); cursor: pointer; font-weight: 600; font-size: 14px; border-radius: 10px 10px 0 0; color: var(--text-secondary); transition: all 0.2s; }
        .hub-tab:hover { background: var(--border-light); }
        .hub-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
        
        /* Cards */
        .hub-card { background: var(--surface); border-radius: 0 12px 12px 12px; padding: 30px; box-shadow: var(--shadow); }
        .hub-card.standalone { border-radius: var(--radius-md); }
        .hub-card h2 { margin: 0 0 8px; font-size: 22px; }
        .hub-card .subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
        
        /* Form */
        .hub-form-row { margin-bottom: 20px; }
        .hub-form-row label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
        .hub-form-row select, .hub-form-row input[type="file"] { width: 100%; padding: 12px; border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 14px; }
        .hub-form-row select:focus { border-color: #6366f1; outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
        .hub-form-row .hint { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
        
        /* Date mode */
        .date-mode-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
        .date-mode-opt { border: 2px solid var(--border-light); border-radius: 10px; padding: 16px; cursor: pointer; transition: all 0.2s; text-align: center; }
        .date-mode-opt:hover { border-color: #6366f1; background: var(--surface-hover); }
        .date-mode-opt.active { border-color: #6366f1; background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05)); }
        .date-mode-opt.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
        .date-mode-opt .icon { font-size: 24px; margin-bottom: 6px; }
        .date-mode-opt .title { font-weight: 600; font-size: 13px; }
        .date-mode-opt .desc { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
        
        /* Session picker */
        .session-picker { margin-top: 15px; display: none; }
        .session-picker.show { display: block; }
        
        /* Options */
        .hub-options { background: var(--bg); border-radius: 10px; padding: 20px; margin: 20px 0; }
        .hub-options h4 { margin: 0 0 12px; font-size: 14px; }
        .hub-options label { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; cursor: pointer; }
        .hub-options input[type="checkbox"] { width: 18px; height: 18px; accent-color: #6366f1; }
        
        /* Buttons */
        .hub-btn { padding: 12px 24px; border-radius: var(--radius); border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.2s; }
        .hub-btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: var(--text-inverse); }
        .hub-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
        .hub-btn-success { background: linear-gradient(135deg, var(--success), var(--success-text)); color: var(--text-inverse); }
        .hub-btn-success:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34,197,94,0.3); }
        .hub-btn-danger { background: linear-gradient(135deg, var(--danger), var(--danger)); color: var(--text-inverse); }
        .hub-btn-outline { background: var(--surface); border: 2px solid var(--border-light); color: var(--text-secondary); }
        .hub-btn-outline:hover { border-color: #6366f1; color: #6366f1; }
        .hub-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
        
        /* Stats */
        .stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 20px 0; }
        .stat-box { background: var(--bg); border-radius: 10px; padding: 16px; text-align: center; }
        .stat-box .num { font-size: 26px; font-weight: bold; }
        .stat-box .label { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; margin-top: 4px; }
        .stat-box.success .num { color: var(--success); }
        .stat-box.info .num { color: var(--info); }
        .stat-box.warning .num { color: var(--warning); }
        .stat-box.purple .num { color: #8b5cf6; }
        
        /* Table */
        .results-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
        .results-table th { background: var(--surface-active); padding: 12px; text-align: left; font-size: 11px; text-transform: uppercase; font-weight: 600; }
        .results-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); }
        .results-table tbody tr:hover { background: var(--surface-hover); }
        
        /* Badges */
        .badge { display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; }
        .badge-success { background: var(--success-bg); color: var(--success-text); }
        .badge-info { background: var(--info-bg); color: var(--info-text); }
        .badge-warning { background: var(--warning-bg); color: var(--warning-text); }
        .badge-danger { background: var(--danger-bg); color: var(--danger-text); }
        
        /* Alerts */
        .hub-alert { padding: 14px 18px; border-radius: 10px; margin: 15px 0; font-size: 14px; display: flex; align-items: flex-start; gap: 12px; }
        .hub-alert-info { background: var(--info-bg); color: var(--info-text); }
        .hub-alert-success { background: var(--success-bg); color: var(--success-text); }
        .hub-alert-warning { background: var(--warning-bg); color: var(--warning-text); }
        
        /* Column mapper */
        .column-mapper { background: var(--bg); border-radius: 10px; padding: 20px; margin: 20px 0; }
        .column-mapper h4 { margin: 0 0 15px; }
        .column-map-row { display: grid; grid-template-columns: 180px 40px 1fr; gap: 10px; align-items: center; margin: 10px 0; }
        .column-map-row .arrow { text-align: center; color: var(--text-secondary); }
        .column-map-row select { padding: 8px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
        
        /* History */
        .history-item { border: 1px solid var(--border-light); border-radius: 10px; padding: 20px; margin-bottom: 15px; }
        .history-item.undone { opacity: 0.6; background: var(--bg); }
        .history-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
        .history-title { font-weight: 600; font-size: 15px; }
        .history-meta { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
        .history-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
        .history-stat { font-size: 13px; }
        .history-stat strong { color: var(--text); }
        
        /* Steps */
        .steps-indicator { display: flex; gap: 0; margin-bottom: 25px; }
        .step-ind { flex: 1; text-align: center; padding: 12px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--text-muted); position: relative; }
        .step-ind:first-child { border-radius: 8px 0 0 8px; }
        .step-ind:last-child { border-radius: 0 8px 8px 0; }
        .step-ind.active { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: var(--text-inverse); }
        .step-ind.done { background: var(--success-bg); color: var(--success-text); }
        
        /* Panels */
        .tab-panel { display: none; }
        .tab-panel.active { display: block; }
        .import-step { display: none; }
        .import-step.active { display: block; }
        
        /* Event banner */
        .event-info-banner { background: linear-gradient(135deg, var(--info-bg), var(--info-bg)); border-radius: 10px; padding: 16px 20px; margin: 20px 0; display: none; align-items: center; gap: 15px; }
        .event-info-banner.show { display: flex; }
        .event-info-banner .icon { font-size: 28px; }
        .event-info-banner .details { flex: 1; }
        .event-info-banner .event-name { font-weight: 600; font-size: 16px; }
        .event-info-banner .event-type { font-size: 13px; color: var(--info-text); margin-top: 2px; }
        
        /* Loading */
        .loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; z-index: 9999; }
        .loading-overlay.hidden { display: none; }
        .spinner { width: 40px; height: 40px; border: 4px solid var(--border-light); border-top-color: #6366f1; border-radius: 50%; animation: spin 1s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }

/* Source: includes/registration-form-builder.php line 125 (block 1/2) */
.olami-reg-wrap { max-width: 640px; margin: 0 auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
    .olami-reg-card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 40px; position: relative; overflow: hidden; }
    .olami-reg-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--primary), rgba(var(--primary-rgb), 0.60)); }
    .olami-reg-header { text-align: center; margin-bottom: 30px; }
    .olami-reg-avatar { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, var(--surface-hover), var(--border-light)); display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden; border: 3px solid var(--surface); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
    .olami-reg-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .olami-reg-header h2 { font-size: 26px; font-weight: 800; color: var(--text); margin: 0 0 8px 0; }
    .olami-reg-header p { font-size: 14px; color: var(--text-secondary); margin: 0; }
    .olami-reg-fields { display: flex; flex-wrap: wrap; gap: 20px 16px; }
    .olami-reg-field { flex: 1 1 calc(50% - 8px); min-width: 200px; display: flex; flex-direction: column; }
    .olami-reg-field.full-width { flex: 1 1 100%; }
    .olami-reg-field.hidden { display: none !important; }
    .olami-reg-field > label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px !important; margin-top: 0 !important; padding: 0 !important; display: block; }
    .olami-reg-field label .req { color: var(--danger); margin-left: 2px; }
    .olami-reg-field > input, .olami-reg-field > select { padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-md); font-size: 15px; transition: all 0.2s; background: var(--surface); width: 100%; box-sizing: border-box; margin-top: 0 !important; }
    .olami-reg-field > input:focus, .olami-reg-field > select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08); }
    .olami-phone-wrap { display: flex; gap: 10px; }
    .olami-phone-wrap select { width: 140px; flex-shrink: 0; padding: 14px 12px; border: 2px solid var(--border); border-radius: var(--radius-md); font-size: 14px; background: var(--surface); margin-top: 0 !important; }
    .olami-phone-wrap input { flex: 1; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-md); font-size: 15px; background: var(--surface); min-width: 0; margin-top: 0 !important; }
    .olami-phone-wrap select:focus, .olami-phone-wrap input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08); }
    .olami-reg-checkbox { display: inline-flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius-md); cursor: pointer; }
    .olami-reg-checkbox input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); }
    .olami-reg-checkbox span { font-weight: 500; color: var(--text); font-size: 14px; }
    .olami-reg-submit { width: 100%; padding: 16px; background: var(--primary); border: none; border-radius: 14px; font-size: 16px; font-weight: 700; color: var(--text-inverse); cursor: pointer; transition: all 0.2s; margin-top: 20px; }
    .olami-reg-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.31); }
    .olami-reg-success { background: linear-gradient(135deg, var(--success-bg), var(--success-bg)); border: 1px solid var(--success); color: var(--success-text); padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
    .olami-reg-error { background: linear-gradient(135deg, #fef2f2, var(--danger-bg)); border: 1px solid var(--danger-bg); color: var(--danger-text); padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
    @media (max-width: 540px) { .olami-reg-card { padding: 28px 20px; } .olami-reg-field { flex: 1 1 100%; } .olami-phone-wrap { flex-direction: column; } .olami-phone-wrap select { width: 100%; } }

/* Source: includes/registration-form-builder.php line 446 (block 2/2) */
* { box-sizing: border-box; }
    .ofb-wrap { display: flex; gap: 24px; max-width: 1400px; margin: 20px auto; padding: 0 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
    .ofb-sidebar { width: 380px; flex-shrink: 0; }
    .ofb-main { flex: 1; min-width: 0; }
    .ofb-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
    .ofb-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
    .ofb-card-header h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
    .ofb-card-body { padding: 16px; }
    .ofb-header { background: var(--surface); border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; position: sticky; top: 32px; z-index: 100; }
    .ofb-header h1 { margin: 0; font-size: 20px; color: var(--text); }
    .ofb-header-actions { display: flex; gap: 10px; align-items: center; }
    .ofb-status { font-size: 13px; padding: 6px 12px; border-radius: var(--radius-sm); opacity: 0; transition: opacity 0.3s; }
    .ofb-status.show { opacity: 1; }
    .ofb-status.success { background: var(--success-bg); color: var(--success-text); }
    .ofb-status.error { background: var(--danger-bg); color: var(--danger); }
    .ofb-btn { padding: 10px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s; }
    .ofb-btn-primary { background: var(--primary); color: var(--text-inverse); }
    .ofb-btn-secondary { background: var(--surface-active); color: var(--text-secondary); }
    .ofb-btn-danger { background: var(--danger-bg); color: var(--danger); }
    .ofb-btn-sm { padding: 6px 12px; font-size: 12px; }
    .ofb-fields { max-height: 500px; overflow-y: auto; }
    .ofb-field-item { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--bg); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; border: 2px solid transparent; }
    .ofb-field-item:hover { background: var(--surface-active); }
    .ofb-field-item.selected { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.03); }
    .ofb-field-item.disabled { opacity: 0.5; }
    .ofb-field-drag { color: var(--text-muted); cursor: grab; padding: 4px; }
    .ofb-field-info { flex: 1; min-width: 0; }
    .ofb-field-label { font-weight: 600; font-size: 13px; color: var(--text); }
    .ofb-field-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
    .ofb-field-meta code { background: var(--border-light); padding: 1px 4px; border-radius: 3px; font-size: 10px; }
    .ofb-toggle { width: 36px; height: 20px; background: var(--border); border-radius: 10px; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
    .ofb-toggle.on { background: var(--primary); }
    .ofb-toggle::after { content: ''; position: absolute; width: 16px; height: 16px; background: var(--surface); border-radius: 50%; top: 2px; left: 2px; transition: transform 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
    .ofb-toggle.on::after { transform: translateX(16px); }
    .ofb-edit { display: none; }
    .ofb-edit.show { display: block; }
    .ofb-form-group { margin-bottom: 14px; }
    .ofb-form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
    .ofb-form-group input, .ofb-form-group select, .ofb-form-group textarea { width: 100%; padding: 9px 11px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 13px; }
    .ofb-form-group input:focus, .ofb-form-group select:focus { outline: none; border-color: var(--primary); }
    .ofb-form-group textarea { min-height: 70px; resize: vertical; }
    .ofb-form-row { display: flex; gap: 12px; }
    .ofb-form-row .ofb-form-group { flex: 1; }
    .ofb-checkbox { display: flex; align-items: center; gap: 8px; }
    .ofb-checkbox input { width: 16px; height: 16px; }
    .ofb-add-btn { width: 100%; padding: 12px; border: 2px dashed var(--border); border-radius: 10px; background: transparent; color: var(--text-secondary); font-weight: 600; cursor: pointer; }
    .ofb-add-btn:hover { border-color: var(--primary); color: var(--primary); }
    .ofb-preview-wrap { background: var(--surface-active); border-radius: var(--radius-md); padding: 30px; }
    .ofb-preview { max-width: 640px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 40px; position: relative; }
    .ofb-preview::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--primary), rgba(var(--primary-rgb), 0.60)); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
    .ofb-preview-header { text-align: center; margin-bottom: 30px; }
    .ofb-preview-avatar { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, var(--surface-hover), var(--border-light)); display: flex; align-items: center; justify-content: center; font-size: 36px; }
    .ofb-preview-header h2 { font-size: 26px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
    .ofb-preview-header p { font-size: 14px; color: var(--text-secondary); margin: 0; }
    .ofb-preview-fields { display: flex; flex-wrap: wrap; gap: 16px; }
    .ofb-preview-field { flex: 1 1 calc(50% - 8px); min-width: 200px; }
    .ofb-preview-field.full { flex: 1 1 100%; }
    .ofb-preview-field.cond { opacity: 0.5; position: relative; }
    .ofb-preview-field.cond::before { content: '⚡'; position: absolute; top: -8px; right: 0; font-size: 12px; }
    .ofb-preview-field > label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
    .ofb-preview-field .req { color: var(--danger); }
    .ofb-preview-field input, .ofb-preview-field select { width: 100%; padding: 13px 15px; border: 2px solid var(--border); border-radius: var(--radius-md); font-size: 14px; }
    .ofb-preview-cb { display: inline-flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius-md); }
    .ofb-preview-cb input { width: 20px; height: 20px; }
    .ofb-preview-cb span { font-weight: 500; color: var(--text); }
    .ofb-preview-submit { width: 100%; padding: 16px; background: var(--primary); border: none; border-radius: 14px; font-size: 16px; font-weight: 700; color: var(--text-inverse); margin-top: 20px; }
    @media (max-width: 1100px) { .ofb-wrap { flex-direction: column; } .ofb-sidebar { width: 100%; } }

/* Source: includes/reports-admin.php line 217 (block 1/1) */
/* Apple-Like Clean Design */
        .olami-reports-wrap {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            max-width: 1200px; 
            margin: 20px auto;
        }
        .olami-reports-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        .report-card {
            background: var(--surface);
            border-radius: 18px;
            padding: 25px;
            box-shadow: var(--shadow-md);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            cursor: pointer;
            border: 1px solid transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .report-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.08);
            border-color: var(--border-light);
        }
        .card-icon {
            font-size: 42px;
            margin-bottom: 15px;
            background: var(--bg);
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
        .card-content h3 {
            margin: 0 0 8px;
            font-size: 18px;
            font-weight: 600;
            color: var(--text);
        }
        .card-content p {
            margin: 0;
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.4;
        }
        .card-action {
            margin-top: 20px;
            width: 100%;
        }
        .card-action button {
            width: 100%;
            border-radius: 10px !important;
            height: 36px !important;
            line-height: 34px !important;
            background: var(--secondary) !important;
            border-color: var(--secondary) !important;
            font-weight: 500 !important;
        }
        
        /* Modal Overlay */
        .olami-modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.4);
            backdrop-filter: blur(5px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .olami-modal {
            background: var(--surface);
            width: 400px;
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.2);
            animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        @keyframes modalPop {
            0% { transform: scale(0.8); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .modal-header h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text); }
        .close-modal { font-size: 28px; cursor: pointer; color: var(--text-muted); line-height: 20px; }
        .close-modal:hover { color: var(--text); }
        
        .date-options label {
            display: block;
            margin-bottom: 12px;
            font-size: 15px;
            color: var(--text);
            cursor: pointer;
        }
        .date-options input { margin-right: 10px; }
        
        .export-actions { margin-top: 25px; text-align: center; }
        .export-actions button { width: 100%; border-radius: var(--radius-md) !important; }

        /* Recent Activity Feed */
        .olami-recent-activity {
            margin-top: 30px;
            background: var(--surface);
            border-radius: 18px;
            padding: 20px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
        }
        .activity-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-height: 260px; /* Helper: Show approx 4 items */
            overflow-y: auto;
            padding-right: 5px; /* Space for scrollbar */
        }
        /* Custom Scrollbar for Webkit */
        .activity-list::-webkit-scrollbar { width: 5px; }
        .activity-list::-webkit-scrollbar-track { background: var(--surface-hover); border-radius: 4px; }
        .activity-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
        .activity-list::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
        .activity-item {
            display: flex;
            align-items: center;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-light);
        }
        .activity-item:last-child { border-bottom: none; padding-bottom: 0; }
        .act-icon {
            font-size: 20px;
            width: 36px;
            height: 36px;
            background: var(--bg);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
        }
        .act-details {
            flex-grow: 1;
        }
        .act-title {
            font-size: 13px;
            color: var(--text);
        }
        .act-meta {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }
        
        /* Mobile Updates */
        @media (max-width: 600px) {
            .olami-reports-grid {
                grid-template-columns: 1fr; /* Full width cards on mobile */
            }
            .report-card {
                padding: 20px;
            }
        }

/* Source: includes/students-hub.php line 104 (block 1/2) */
.students-hub-wrap {
        max-width: 1600px;
        margin: 20px auto;
    }
    
    .students-hub-header {
        margin-bottom: 20px;
    }
    
    .students-hub-header h1 {
        font-size: 28px;
        font-weight: 700;
        margin: 0 0 5px 0;
    }
    
    .students-hub-header .description {
        color: var(--text-secondary);
        font-size: 14px;
        margin: 0;
    }
    
    .students-hub-nav {
        display: flex;
        gap: 5px;
        background: var(--surface-active);
        padding: 5px;
        border-radius: var(--radius);
        margin-bottom: 20px;
        max-width: 500px;
    }
    
    .students-tab {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: transparent;
        border: none;
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s;
    }
    
    .students-tab:hover {
        background: var(--border);
        color: var(--text);
    }

    .students-tab.active {
        background: var(--surface);
        color: var(--text);
        box-shadow: var(--shadow-xs);
    }
    
    .students-tab .tab-icon {
        font-size: 18px;
    }
    
    .students-hub-content {
        background: var(--surface);
        padding: 25px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-xs);
    }
    
    /* Override child page wrap styles */
    .students-hub-content .wrap {
        margin: 0;
        padding: 0;
    }
    
    .students-hub-content > h1:first-child,
    .students-hub-content > h2:first-child,
    .students-hub-content .wrap > h1:first-child {
        display: none;
    }
    
    @media (max-width: 782px) {
        .students-hub-nav {
            max-width: 100%;
            flex-wrap: wrap;
        }
        
        .students-tab {
            flex: 1 1 calc(50% - 5px);
            justify-content: center;
            padding: 10px 12px;
        }
    }

/* Source: includes/students-hub.php line 257 (block 2/2) */
.user-tools-subtabs {
        display: flex;
        gap: 8px;
        border-bottom: 2px solid var(--border);
        padding-bottom: 10px;
    }
    
    .user-tools-subtabs .subtab {
        padding: 8px 16px;
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 13px;
        font-weight: 500;
        border-radius: 6px 6px 0 0;
        transition: all 0.2s;
    }
    
    .user-tools-subtabs .subtab:hover {
        color: var(--text);
        background: var(--surface-active);
    }
    
    .user-tools-subtabs .subtab.active {
        color: var(--text);
        background: var(--info-bg);
        border-bottom: 2px solid #6366f1;
        margin-bottom: -2px;
    }


/* Source: includes/user-matcher.php line 52 (block 1/1) */
.olami-match-wrap { max-width: 1400px; margin: 20px auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
        .olami-match-card { background: var(--surface); border-radius: var(--radius-md); padding: 30px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
        .olami-match-card h2 { margin-top: 0; }
        .olami-textarea { width: 100%; min-height: 200px; font-family: monospace; font-size: 13px; padding: 15px; border: 1px solid var(--border-light); border-radius: var(--radius); line-height: 1.6; }
        .olami-btn { padding: 12px 24px; border-radius: var(--radius); border: none; cursor: pointer; font-size: 14px; font-weight: 600; }
        .olami-btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: var(--text-inverse); }
        .olami-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 20px 0; }
        .olami-stat { background: var(--bg); border-radius: var(--radius); padding: 15px; text-align: center; }
        .olami-stat-num { font-size: 28px; font-weight: bold; }
        .olami-stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; }
        .olami-stat.success .olami-stat-num { color: var(--success); }
        .olami-stat.warning .olami-stat-num { color: var(--warning); }
        .olami-stat.info .olami-stat-num { color: var(--info); }
        .olami-match-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
        .olami-match-table th { background: var(--surface-active); padding: 12px; text-align: left; font-size: 11px; text-transform: uppercase; }
        .olami-match-table td { padding: 12px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
        .olami-match-table tr:hover { background: var(--bg); }
        .olami-match-table tr.has-match { background: var(--warning-bg); }
        .olami-match-table tr.has-match:hover { background: var(--warning-bg); }
        .olami-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; }
        .olami-badge-success { background: var(--success-bg); color: var(--success-text); }
        .olami-badge-warning { background: var(--warning-bg); color: var(--warning-text); }
        .olami-badge-info { background: var(--info-bg); color: var(--info-text); }
        .olami-alert { padding: 12px 16px; border-radius: var(--radius); margin: 15px 0; font-size: 13px; }
        .olami-alert-info { background: var(--info-bg); color: var(--info-text); }
        .olami-alert-success { background: var(--success-bg); color: var(--success-text); }
        .olami-alert-warning { background: var(--warning-bg); color: var(--warning-text); }
        .match-candidate { background: var(--success-bg); padding: 8px 12px; border-radius: var(--radius-sm); margin: 4px 0; border-left: 3px solid var(--success); }
        .match-candidate.low { background: var(--warning-bg); border-left-color: var(--warning); }
        .match-score { font-size: 10px; color: var(--text-secondary); float: right; }
        .no-match { color: var(--text-muted); font-style: italic; }

/* Source: includes/user-merge.php line 73 (block 1/1) */
.olami-merge-wrap { max-width: 1000px; margin: 20px auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
        .olami-merge-card { background: var(--surface); border-radius: var(--radius-md); padding: 30px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
        .olami-merge-card h2 { margin-top: 0; }
        .olami-btn { padding: 12px 24px; border-radius: var(--radius); border: none; cursor: pointer; font-size: 14px; font-weight: 600; }
        .olami-btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: var(--text-inverse); }
        .olami-btn-danger { background: linear-gradient(135deg, var(--danger), var(--danger)); color: var(--text-inverse); }
        .olami-alert { padding: 12px 16px; border-radius: var(--radius); margin: 15px 0; font-size: 13px; }
        .olami-alert-info { background: var(--info-bg); color: var(--info-text); }
        .olami-alert-success { background: var(--success-bg); color: var(--success-text); }
        .olami-alert-warning { background: var(--warning-bg); color: var(--warning-text); }
        .olami-alert-danger { background: var(--danger-bg); color: var(--danger-text); }
        .olami-form-row { margin: 20px 0; }
        .olami-form-row label { display: block; font-weight: 600; margin-bottom: 8px; }
        .olami-form-row select { width: 100%; padding: 12px; border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 14px; }
        .olami-merge-comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; margin: 20px 0; align-items: start; }
        .olami-user-box { background: var(--bg); border-radius: var(--radius-md); padding: 20px; }
        .olami-user-box.keep { border: 3px solid var(--success); background: var(--success-bg); }
        .olami-user-box.delete { border: 3px solid var(--danger); background: var(--danger-bg); }
        .olami-user-box h3 { margin-top: 0; font-size: 14px; }
        .olami-user-box .name { font-size: 18px; font-weight: bold; margin-bottom: 5px; }
        .olami-user-box .email { color: var(--text-secondary); font-size: 13px; }
        .olami-user-box .stats { margin-top: 15px; font-size: 12px; }
        .olami-user-box .stat-row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--border-light); }
        .olami-merge-arrow { font-size: 32px; color: #6366f1; display: flex; align-items: center; justify-content: center; padding-top: 60px; }
        .olami-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; }
        .olami-badge-success { background: var(--success-bg); color: var(--success-text); }
        .olami-badge-danger { background: var(--danger-bg); color: var(--danger-text); }

/* Source: includes/user-tools.php line 105 (block 1/2) */
.user-tools-wrap {
        max-width: 1400px;
        margin: 20px auto;
    }
    
    .user-tools-header {
        margin-bottom: 20px;
    }
    
    .user-tools-header h1 {
        font-size: 28px;
        font-weight: 700;
        margin: 0 0 5px 0;
    }
    
    .user-tools-header .description {
        color: var(--text-secondary);
        font-size: 14px;
        margin: 0;
    }
    
    .user-tools-nav {
        display: flex;
        gap: 5px;
        background: var(--surface-active);
        padding: 5px;
        border-radius: var(--radius);
        margin-bottom: 20px;
    }
    
    .user-tools-tab {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: transparent;
        border: none;
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s;
    }
    
    .user-tools-tab:hover {
        background: var(--border);
        color: var(--text);
    }

    .user-tools-tab.active {
        background: var(--surface);
        color: var(--text);
        box-shadow: var(--shadow-xs);
    }
    
    .user-tools-tab .tab-icon {
        font-size: 18px;
    }
    
    .user-tools-content {
        background: var(--surface);
        padding: 25px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-xs);
    }
    
    /* Override child page wrap styles */
    .user-tools-content .wrap {
        margin: 0;
        padding: 0;
    }
    
    .user-tools-content .wrap h1:first-child,
    .user-tools-content .wrap h2:first-child {
        display: none; /* Hide redundant titles from child pages */
    }
    
    @media (max-width: 782px) {
        .user-tools-nav {
            flex-wrap: wrap;
        }
        
        .user-tools-tab {
            flex: 1 1 calc(50% - 5px);
            justify-content: center;
        }
    }

/* Source: includes/user-tools.php line 219 (block 2/2) */
.duplicates-wrap { max-width: 1000px; }
    .dup-header { margin-bottom: 25px; }
    .dup-header h2 { margin: 0 0 10px; font-size: 22px; }
    .dup-header p { color: var(--text-secondary); margin: 0; }
    .dup-actions { margin-bottom: 20px; }
    
    .dup-loading { text-align: center; padding: 40px; color: var(--text-secondary); }
    .dup-loading .spinner { display: inline-block; width: 30px; height: 30px; border: 3px solid var(--border-light); border-top-color: #6366f1; border-radius: 50%; animation: dupspin 1s linear infinite; margin-right: 10px; vertical-align: middle; }
    @keyframes dupspin { to { transform: rotate(360deg); } }
    
    .dup-success { text-align: center; padding: 50px; background: var(--success-bg); border-radius: var(--radius-md); }
    .dup-success .icon { font-size: 48px; margin-bottom: 15px; }
    .dup-success h3 { margin: 0 0 10px; color: var(--success-text); }
    .dup-success p { color: var(--text-secondary); margin: 0; }
    
    .dup-toolbar { background: var(--text); color: var(--text-inverse); padding: 15px 20px; border-radius: 10px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
    .dup-toolbar-left { display: flex; align-items: center; gap: 15px; }
    .dup-toolbar-left label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
    .dup-toolbar-left input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
    .dup-count { background: rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 15px; font-size: 13px; }
    .dup-merge-btn { background: linear-gradient(135deg, var(--success), var(--success-text)); border: none; color: var(--text-inverse); padding: 10px 24px; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
    .dup-merge-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .dup-merge-btn:hover:not(:disabled) { filter: brightness(1.1); }
    
    .dup-section { margin-bottom: 30px; }
    .dup-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
    .dup-section-header h4 { margin: 0; font-size: 15px; color: var(--text); }
    .dup-section-header .badge { background: var(--danger-bg); color: var(--danger-text); padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
    
    .dup-card { background: var(--surface); border: 2px solid var(--border-light); border-radius: var(--radius-md); padding: 0; margin-bottom: 12px; overflow: hidden; transition: border-color 0.2s; }
    .dup-card.selected { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
    .dup-card-header { background: var(--bg); padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border-light); }
    .dup-card-header input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; }
    .dup-card-header .match-info { flex: 1; font-size: 13px; color: var(--text-secondary); }
    .dup-card-header .confidence { background: var(--info-bg); color: var(--info-text); padding: 4px 10px; border-radius: var(--radius-md); font-size: 12px; font-weight: 600; }
    .dup-card-header .not-dup-btn { background: none; border: 1px solid var(--border-light); color: var(--text-secondary); padding: 5px 12px; border-radius: var(--radius-sm); font-size: 12px; cursor: pointer; }
    .dup-card-header .not-dup-btn:hover { background: var(--surface-active); }
    
    .dup-card-body { display: flex; }
    .dup-user-panel { flex: 1; padding: 16px; cursor: pointer; transition: background 0.2s; position: relative; }
    .dup-user-panel:hover { background: var(--bg); }
    .dup-user-panel.recommended { background: var(--success-bg); }
    .dup-user-panel.recommended:hover { background: var(--success-bg); }
    .dup-user-panel.keep-selected { background: var(--info-bg); border: 2px solid var(--info); margin: -2px; border-radius: var(--radius); }
    .dup-user-panel .rec-badge { position: absolute; top: 8px; right: 8px; background: var(--success); color: var(--text-inverse); font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
    .dup-user-panel .user-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
    .dup-user-panel .user-email { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
    .dup-user-panel .user-stats { display: flex; gap: 12px; flex-wrap: wrap; }
    .dup-user-panel .stat { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
    .dup-user-panel .stat.highlight { color: var(--success); font-weight: 600; }
    .dup-user-panel .radio-indicator { position: absolute; bottom: 12px; right: 12px; width: 24px; height: 24px; border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
    .dup-user-panel.keep-selected .radio-indicator { border-color: var(--info); background: var(--info); }
    .dup-user-panel.keep-selected .radio-indicator::after { content: '✓'; color: var(--text-inverse); font-size: 14px; font-weight: bold; }
    
    .dup-vs { display: flex; align-items: center; justify-content: center; width: 50px; background: var(--surface-active); font-size: 18px; color: var(--text-muted); flex-shrink: 0; }
    
    .dup-results-msg { padding: 20px; border-radius: 10px; margin-bottom: 20px; }
    .dup-results-msg.success { background: var(--success-bg); border: 1px solid var(--success); }
    .dup-results-msg.error { background: var(--danger-bg); border: 1px solid var(--danger); }
    .dup-results-msg h4 { margin: 0 0 10px; }
    .dup-results-msg ul { margin: 10px 0 0; padding-left: 20px; font-size: 13px; }
    
    @media (max-width: 768px) {
        .dup-card-body { flex-direction: column; }
        .dup-vs { width: 100%; height: 30px; }
        .dup-toolbar { flex-direction: column; text-align: center; }
        .dup-toolbar-left { flex-direction: column; }
    }

