@font-face {
    font-family: 'Inter';
    src: url('vendor/fonts/inter/Inter-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('vendor/fonts/space-grotesk/SpaceGrotesk-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

        body {
            font-family: 'Space Grotesk', sans-serif;
        }

        #app-sidebar {
            font-family: 'Inter', sans-serif;
        }

        #app-sidebar .sidebar-label {
            font-family: 'Inter', sans-serif;
        }

        #app-sidebar .sidebar-icon i,
        #app-sidebar .sidebar-icon .fa,
        #app-sidebar .sidebar-icon .fa-solid,
        #app-sidebar .sidebar-icon .fa-regular,
        #app-sidebar .sidebar-icon .fa-brands {
            line-height: 1;
        }

        body.exams-mode #app-header > div.flex-1,
        body[data-route="/exams"] #app-header > div.flex-1 {
            display: none !important;
        }

        body.exams-mode #search-suggestions,
        body.exams-mode #clear-search,
        body[data-route="/exams"] #search-suggestions,
        body[data-route="/exams"] #clear-search {
            display: none !important;
        }

        body.exams-mode #app-header,
        body[data-route="/exams"] #app-header {
            justify-content: flex-end;
        }

        #app-header {
            display: flex !important;
            align-items: center !important;
        }

        #app-header > .flex-1 {
            height: 100%;
            display: flex;
            align-items: center;
        }

        #header-search-group {
            height: 100%;
            display: flex;
            align-items: center;
        }

        #app-header .header-search-shell {
            display: flex;
            align-items: center;
            align-self: center;
            margin-top: calc((64px - 40px) / -1);
        }

        #app-header .header-search-input {
            height: 40px;
        }

        .app-switcher {
            position: relative;
        }

        .app-switcher-panel {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%) translateY(-10px);
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid #e2e8f0;
            border-radius: 22px;
            padding: 0.7rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
            transition: transform 0.25s ease, opacity 0.25s ease;
            z-index: 40;
            min-width: 250px;
        }

        .dark .app-switcher-panel {
            background: rgba(15, 23, 42, 0.98);
            border-color: #1e293b;
            box-shadow: 0 20px 45px rgba(2, 6, 23, 0.35);
        }

        .app-switcher-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 0.35rem;
            border-radius: 16px;
            text-decoration: none;
            color: #0f172a;
            background: #f8fafc;
            border: 1px solid transparent;
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .dark .app-switcher-item {
            background: #0b1220;
            color: #e2e8f0;
        }

        .app-switcher-item:hover {
            border-color: #c7d2fe;
            transform: translateY(-2px);
            box-shadow: 0 12px 20px rgba(79, 70, 229, 0.15);
        }

        .app-switcher-logo {
            width: 60px;
            height: 60px;
            object-fit: contain;
        }

        .app-switcher.app-switcher-open .app-switcher-panel,
        .app-switcher:hover .app-switcher-panel,
        .app-switcher:focus-within .app-switcher-panel {
            opacity: 1;
            pointer-events: auto;
            transform: translateX(-50%) translateY(-10px);
        }

        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
        }

        .custom-scrollbar::-webkit-scrollbar-track {
            background: transparent;
        }

        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #e2e8f0;
            border-radius: 10px;
        }

        .dark .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #334155;
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            width: 100%;
        }

        .scale-up {
            animation: scaleUp 0.3s ease-out forwards;
        }

        @keyframes scaleUp {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .action-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .action-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 20px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
        }

        .dropzone-active {
            border-color: #4e46e5 !important;
            background: rgba(78, 70, 229, 0.08) !important;
        }

        #user-modal {
            z-index: 220;
        }

        .status-badge {
            font-size: 10px;
            font-weight: 800;
            padding: 4px 12px;
            border-radius: 99px;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        /* Focus Mode Styles */
        .focus-mode #app-sidebar,
        .focus-mode #app-header {
            display: none !important;
        }

        .focus-mode #app-main {
            padding: 0 !important;
        }

        @keyframes fade-in {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes flame {
            0% {
                transform: scale(1) translateY(0);
                opacity: 0.8;
            }

            50% {
                transform: scale(1.1) translateY(-2px);
                opacity: 1;
            }

            100% {
                transform: scale(1) translateY(0);
                opacity: 0.8;
            }
        }

        .animate-flame {
            animation: flame 2s infinite ease-in-out;
        }

        .metric-card {
            background: white;
            border-radius: 2rem;
            padding: 2rem;
            border: 1px solid #f1f5f9;
            transition: all 0.3s ease;
        }

        .dark .metric-card {
            background: #0f172a;
            border-color: #1e293b;
        }

        .metric-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in {
            animation: fadeIn 0.4s ease-out forwards;
        }

        /* Dropdown custom styles - Click based */
        .filter-dropdown-container {
            position: relative;
        }

        .filter-dropdown-content {
            display: none;
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            z-index: 100;
            min-width: 180px;
            background: white;
            border-radius: 1.5rem;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
            overflow: hidden;
            animation: dropdownSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .dark .filter-dropdown-content {
            background: #0f172a;
            border-color: #1e293b;
        }

        .filter-dropdown-content.show {
            display: block;
        }

        @keyframes dropdownSlideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .exercise-card-dimmed {
            opacity: 0.6;
            filter: grayscale(0.4);
        }

        .status-band {
            position: absolute;
            left: 0;
            top: 40px;
            bottom: 40px;
            width: 4px;
            border-radius: 0 4px 4px 0;
            z-index: 20;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
        }

        .status-nuevo {
            background-color: #3b82f6;
        }

        .offiweb-home,
        .offiweb-exercise,
        .offiweb-classes {
            --home-ink: #111827;
            --home-ink-soft: #3d4957;
            --home-muted: #757b79;
            --home-muted-soft: #b6b8bc;
            --home-base: #f8fafc;
            --home-soft: #f3f7fb;
            --home-soft-2: #ebf2fa;
            --home-tint: #e1e9f8;
            --home-line: #dddedf;
            --home-line-strong: #c5cada;
            --home-accent: #4e46e5;
            --home-accent-soft: #746be4;
            --home-accent-cyan: #14a1d5;
            --home-teal: #36797a;
            --home-amber: #f3a019;
            --home-green: #22c05d;
            --home-blue-deep: #2034a1;
            font-family: 'Space Grotesk', sans-serif;
            color: var(--home-ink);
        }

        .offiweb-home .home-display {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 600;
            letter-spacing: -0.02em;
        }

        .offiweb-home .home-kicker {
            text-transform: uppercase;
            font-size: 0.7rem;
            letter-spacing: 0.25em;
            color: var(--home-accent);
            font-weight: 600;
        }

        .offiweb-home .home-hero {
            position: relative;
            border-radius: 32px;
            border: 1px solid var(--home-line);
            padding: 2.75rem;
            overflow: hidden;
            background:
                radial-gradient(circle at 12% 20%, rgba(78, 70, 229, 0.12), transparent 55%),
                radial-gradient(circle at 80% 10%, rgba(20, 161, 213, 0.12), transparent 45%),
                linear-gradient(120deg, var(--home-soft) 0%, var(--home-soft-2) 100%);
        }

        .offiweb-home .home-hero::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
            background-size: 28px 28px;
            opacity: 0.35;
            pointer-events: none;
        }

        .offiweb-home .home-hero > * {
            position: relative;
            z-index: 1;
        }

        .offiweb-home .home-hero--compact {
            padding: 1.25rem 1.5rem;
        }

        .offiweb-home .home-hero-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding-right: 2.75rem;
        }

        .offiweb-home .home-hero-copy {
            min-width: 0;
            flex: 1 1 auto;
        }

        .offiweb-home .home-hero--compact .home-display {
            line-height: 1.12;
        }

        .offiweb-home .home-hero-metrics {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 0.65rem;
            flex: 0 1 auto;
        }

        .offiweb-home .home-metric-pill {
            display: inline-flex;
            align-items: baseline;
            gap: 0.45rem;
            padding: 0.55rem 0.8rem;
            border-radius: 999px;
            border: 1px solid var(--home-line-strong);
            background: rgba(255, 255, 255, 0.78);
            backdrop-filter: blur(8px);
            box-shadow: 0 8px 24px -20px rgba(15, 23, 42, 0.35);
        }

        .offiweb-home .home-metric-label {
            font-size: 0.62rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: var(--home-ink-soft);
            white-space: nowrap;
        }

        .offiweb-home .home-metric-value {
            font-size: 0.95rem;
            font-weight: 800;
            color: var(--home-ink);
            white-space: nowrap;
        }

        .offiweb-home .home-hero .home-hero-close {
            position: absolute;
            z-index: 2;
        }

        .home-hero-toggle {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            border-radius: 999px;
            border: 1px solid #c5cada;
            background: #f3f7fb;
            padding: 0.45rem 0.9rem;
            font-size: 0.7rem;
            font-weight: 700;
            color: #111827;
            white-space: nowrap;
            transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
            font-family: 'Space Grotesk', sans-serif;
        }

        .home-hero-toggle.hidden {
            display: none;
        }

        .home-hero-toggle:hover {
            border-color: #4e46e5;
            color: #4e46e5;
        }

        .home-hero-toggle-icon {
            color: #4e46e5;
            font-size: 0.8rem;
        }

        .offiweb-home .home-lead {
            font-size: 1.05rem;
            line-height: 1.6;
            color: var(--home-ink-soft);
        }

        .offiweb-home .home-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .offiweb-home .home-btn {
            border-radius: 999px;
            padding: 0.75rem 1.6rem;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            border: 1px solid transparent;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .offiweb-home .home-btn-primary {
            background: var(--home-accent);
            color: #fff;
            box-shadow: 0 14px 25px -18px rgba(78, 70, 229, 0.6);
        }

        .offiweb-home .home-btn-primary:hover {
            transform: translateY(-2px);
        }

        .offiweb-home .home-btn-ghost {
            background: transparent;
            border-color: var(--home-ink);
            color: var(--home-ink);
        }

        .offiweb-home .home-btn-ghost:hover {
            transform: translateY(-2px);
        }

        .offiweb-home .home-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 0.75rem;
        }

        .offiweb-home .home-stat {
            background: #ffffff;
            border: 1px solid var(--home-line);
            border-radius: 18px;
            padding: 0.8rem 1rem;
            backdrop-filter: blur(6px);
        }

        .offiweb-home .home-stat-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: var(--home-muted);
        }

        .offiweb-home .home-stat-value {
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--home-ink);
        }

        .offiweb-home .home-panel {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 24px;
            border: 1px solid var(--home-line);
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            box-shadow: 0 18px 50px -40px rgba(15, 23, 42, 0.3);
        }

        .offiweb-home .home-panel-item {
            display: block;
            padding: 0.9rem 1rem;
            border-radius: 18px;
            border: 1px solid var(--home-line);
            background: #fff;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            text-decoration: none;
            color: inherit;
        }

        .offiweb-home .home-panel-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 20px -16px rgba(15, 23, 42, 0.35);
        }

        .offiweb-home .home-panel-tag {
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.22em;
            color: var(--home-accent);
        }

        .offiweb-home .home-panel-title {
            font-size: 0.95rem;
            font-weight: 700;
            margin-top: 0.35rem;
            color: var(--home-ink);
        }

        .offiweb-home .home-panel-meta {
            font-size: 0.7rem;
            color: var(--home-muted);
            margin-top: 0.35rem;
        }

        .offiweb-home .home-section-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--home-ink);
        }

        .offiweb-home .home-section-subtitle {
            color: var(--home-ink-soft);
            font-size: 0.95rem;
        }

        .offiweb-home .home-filter-bar {
            border: 1px solid var(--home-line);
            border-radius: 24px;
            padding: 1rem;
            background: #ffffff;
            box-shadow: 0 12px 25px -22px rgba(15, 23, 42, 0.25);
        }

        .offiweb-home .home-filter-bar button {
            font-family: 'Space Grotesk', sans-serif;
        }

        .offiweb-home .home-filter-bar .fa-caret-down {
            font-size: 0.7rem;
        }

        .offiweb-home .filter-dropdown-container > button {
            background: var(--home-soft) !important;
            border: 1px solid var(--home-line-strong);
            color: var(--home-ink);
        }

        .offiweb-home .filter-dropdown-content {
            background: #ffffff !important;
            border: 1px solid var(--home-line-strong) !important;
            box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.3);
        }

        .offiweb-classes .home-filter-bar {
            border: 1px solid var(--home-line);
            border-radius: 24px;
            padding: 1rem;
            background: #ffffff;
            box-shadow: 0 12px 25px -22px rgba(15, 23, 42, 0.25);
        }

        .offiweb-classes .home-filter-bar button,
        .offiweb-classes .home-filter-bar input {
            font-family: 'Space Grotesk', sans-serif;
        }

        .offiweb-classes .home-filter-bar .fa-caret-down {
            font-size: 0.7rem;
        }

        .offiweb-classes .filter-dropdown-container > button {
            background: var(--home-soft) !important;
            border: 1px solid var(--home-line-strong);
            color: var(--home-ink);
        }

        .offiweb-classes .filter-dropdown-content {
            background: #ffffff !important;
            border: 1px solid var(--home-line-strong) !important;
            box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.3);
        }

        .offiweb-home .text-primary-600 {
            color: var(--home-accent) !important;
        }

        .offiweb-home .bg-primary-50 {
            background-color: rgba(78, 70, 229, 0.12) !important;
        }

        .offiweb-home .border-primary-100 {
            border-color: rgba(78, 70, 229, 0.2) !important;
        }

        .offiweb-home .home-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 1.4rem;
        }

        .offiweb-home .home-feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1rem;
            margin-bottom: 1.4rem;
        }

        .offiweb-home .home-feature-card--disabled {
            opacity: 0.6;
            pointer-events: none;
        }

        .offiweb-home .home-card {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            padding: 1.5rem;
            border-radius: 26px;
            border: 1px solid var(--home-line-strong);
            background: #fff;
            box-shadow: 0 18px 40px -35px rgba(15, 23, 42, 0.3);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            min-height: 240px;
            text-decoration: none;
            color: inherit;
        }

        .offiweb-home .home-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 50px -32px rgba(15, 23, 42, 0.45);
        }

        .offiweb-home .home-card-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .offiweb-home .home-card-id {
            font-size: 0.65rem;
            letter-spacing: 0.16em;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--home-ink-soft);
        }

        .offiweb-home .home-card-status {
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            padding: 0.3rem 0.7rem;
            border-radius: 999px;
            background: #f3f7fb;
            color: var(--home-muted);
        }

        .offiweb-home .home-card-status--realizado {
            background: rgba(34, 192, 93, 0.18);
            color: #117a3d;
        }

        .offiweb-home .home-card-status--en-progreso {
            background: rgba(243, 160, 25, 0.22);
            color: #a45a00;
        }

        .offiweb-home .home-card-status--pendiente {
            background: rgba(197, 202, 218, 0.4);
            color: #5b6777;
        }

        .offiweb-home .home-card-status--nuevo {
            background: rgba(20, 161, 213, 0.2);
            color: #0b6f9d;
        }

        .offiweb-home .home-card-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--home-ink);
            line-height: 1.4;
        }

        .offiweb-home .home-card-preview {
            padding: 1rem;
            border-radius: 18px;
            background: var(--home-soft);
            border: 1px solid var(--home-line);
            color: var(--home-ink-soft);
            min-height: 110px;
            max-height: 140px;
            overflow: hidden;
            word-break: break-word;
            overflow-wrap: anywhere;
        }

        .offiweb-home .home-card-preview .math-preview {
            display: -webkit-box;
            -webkit-line-clamp: 6;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .offiweb-home .home-card-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .offiweb-home .home-chip {
            padding: 0.35rem 0.7rem;
            border-radius: 999px;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            background: rgba(78, 70, 229, 0.12);
            color: var(--home-blue-deep);
        }

        .offiweb-home .home-chip-muted {
            background: rgba(54, 121, 122, 0.18);
            color: var(--home-teal);
        }

        .offiweb-home .home-feature-card {
            border-radius: 28px;
            padding: 1.4rem;
            min-height: 180px;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            color: #0f172a;
            border: 1px solid var(--home-line);
            background: var(--home-soft);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
        }

        .offiweb-home .home-feature-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.4);
        }

        .offiweb-home .home-feature-card--ink {
            background: linear-gradient(140deg, #e7f5ec 0%, #d9efe4 100%);
            color: #0f172a;
            border-color: #bfe6cc;
        }

        .offiweb-home .home-feature-card--sage {
            background: linear-gradient(140deg, #fbe7e7 0%, #f6d7d7 100%);
            border-color: #f5c4c4;
        }

        .offiweb-home .home-feature-card--amber {
            background: linear-gradient(140deg, #fff6db 0%, #f9ebc2 100%);
            border-color: #f2e0a1;
        }

        .offiweb-home .home-feature-card--rose {
            background: linear-gradient(140deg, #e6f3ff 0%, #d7eafd 100%);
            border-color: #bcdaf6;
        }

        .offiweb-home .home-feature-kicker {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            font-weight: 700;
        }

        .offiweb-home .home-feature-card--sage .home-feature-kicker {
            color: #b91c1c;
        }

        .offiweb-home .home-feature-card--amber .home-feature-kicker {
            color: #a16207;
        }

        .offiweb-home .home-feature-card--rose .home-feature-kicker {
            color: #0284c7;
        }

        .offiweb-home .home-feature-card--ink .home-feature-kicker {
            color: #166534;
        }

        .offiweb-home .home-feature-title {
            font-size: 1.2rem;
            font-weight: 700;
        }

        .offiweb-home .home-feature-cta {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            font-weight: 700;
            margin-top: 0.4rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .offiweb-exercise .text-primary-600,
        .offiweb-classes .text-primary-600 {
            color: var(--home-accent) !important;
        }

        .offiweb-exercise .bg-primary-50,
        .offiweb-classes .bg-primary-50 {
            background: rgba(78, 70, 229, 0.12) !important;
        }

        .offiweb-exercise .border-primary-100,
        .offiweb-classes .border-primary-100 {
            border-color: rgba(78, 70, 229, 0.2) !important;
        }

        .offiweb-exercise .bg-primary-600,
        .offiweb-classes .bg-primary-600 {
            background: var(--home-accent) !important;
        }

        .offiweb-exercise .bg-primary-700,
        .offiweb-classes .bg-primary-700 {
            background: #3f38c8 !important;
        }

        .offiweb-exercise .bg-slate-100,
        .offiweb-classes .bg-slate-100 {
            background: var(--home-soft) !important;
        }

        .offiweb-exercise .bg-slate-50,
        .offiweb-classes .bg-slate-50 {
            background: var(--home-soft-2) !important;
        }

        .offiweb-exercise .border-slate-200,
        .offiweb-classes .border-slate-200 {
            border-color: var(--home-line-strong) !important;
        }

        .offiweb-exercise .border-slate-100,
        .offiweb-classes .border-slate-100 {
            border-color: var(--home-line) !important;
        }

        .offiweb-exercise .text-slate-600,
        .offiweb-classes .text-slate-600 {
            color: var(--home-ink-soft) !important;
        }

        .offiweb-exercise .text-slate-700,
        .offiweb-classes .text-slate-700 {
            color: var(--home-ink) !important;
        }

        .offiweb-exercise .text-slate-500,
        .offiweb-classes .text-slate-500 {
            color: var(--home-muted) !important;
        }

        .offiweb-exercise .text-slate-400,
        .offiweb-classes .text-slate-400 {
            color: var(--home-muted-soft) !important;
        }

        .offiweb-exercise .exercise-header {
            border-color: var(--home-line-strong);
        }

        .offiweb-exercise .exercise-chip {
            padding: 0.35rem 0.7rem;
            border-radius: 999px;
            border: 1px solid var(--home-line);
            background: var(--home-soft);
            color: var(--home-ink-soft);
        }

        .offiweb-exercise .exercise-chip--primary {
            background: rgba(78, 70, 229, 0.14);
            border-color: rgba(78, 70, 229, 0.25);
            color: var(--home-accent);
        }

        .offiweb-exercise .exercise-chip--muted {
            background: var(--home-soft);
            color: var(--home-ink-soft);
        }

        .offiweb-exercise .exercise-chip--neutral {
            background: #f8fafc;
            color: var(--home-muted);
        }

        .offiweb-exercise .exercise-toggle {
            background: var(--home-soft);
            border: 1px solid var(--home-line);
        }

        .offiweb-exercise .exercise-toggle-btn {
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .offiweb-exercise .exercise-btn {
            font-weight: 700;
        }

        .offiweb-exercise .exercise-btn-primary {
            background: var(--home-accent);
            color: #fff;
            border: 1px solid transparent;
        }

        .offiweb-exercise .exercise-btn-primary:hover {
            background: #3f38c8;
        }

        .offiweb-exercise .exercise-btn-ghost {
            background: #ffffff;
            color: var(--home-ink);
        }

        .offiweb-exercise .exercise-btn-ghost:hover {
            background: var(--home-soft);
        }

        .offiweb-exercise .exercise-btn-muted {
            background: var(--home-soft);
            color: var(--home-ink-soft);
        }

        .offiweb-exercise .exercise-btn-muted:hover {
            background: var(--home-soft-2);
        }

        .offiweb-exercise .exercise-btn-success {
            background: var(--home-green);
            color: #ffffff;
        }

        .offiweb-exercise .exercise-btn-link {
            color: var(--home-accent);
        }

        .offiweb-exercise .exercise-btn-link:hover {
            color: #3f38c8;
        }

        .offiweb-exercise .exercise-step-indicator {
            color: var(--home-muted);
            border-color: var(--home-line);
        }

        .offiweb-exercise .exercise-step-nav {
            background: var(--home-soft);
            border: 1px solid var(--home-line);
        }

        .offiweb-exercise .exercise-step-btn {
            min-width: 180px;
        }

        .offiweb-exercise .exercise-progress {
            background: var(--home-soft);
        }

        .offiweb-exercise .exercise-progress-bar {
            background: var(--home-accent);
        }

        .offiweb-exercise .exercise-panel {
            border-color: var(--home-line-strong);
            box-shadow: 0 16px 36px -32px rgba(15, 23, 42, 0.35);
        }

        .offiweb-exercise .exercise-audio-wrap,
        .offiweb-classes .exercise-audio-wrap {
            display: flex;
            justify-content: flex-end;
            width: 100%;
        }

        .offiweb-exercise .exercise-audio,
        .offiweb-classes .exercise-audio {
            background: var(--home-soft);
            border-color: var(--home-line);
        }

        .offiweb-exercise .exercise-audio .exercise-btn,
        .offiweb-classes .exercise-audio .exercise-btn {
            font-weight: 700;
        }

        .offiweb-exercise .exercise-audio #exercise-audio-status,
        .offiweb-classes .exercise-audio #exercise-audio-status {
            font-size: 9px;
            letter-spacing: 0.18em;
        }

        .offiweb-exercise .exercise-audio.audio-player,
        .offiweb-classes .exercise-audio.audio-player {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 390px;
            padding: 10px 14px;
            background: var(--home-base);
            border: 1px solid var(--home-accent-soft);
            border-radius: 26px;
            box-shadow: 0 12px 24px -20px rgba(79, 70, 229, 0.28);
        }

        .offiweb-classes .exercise-audio.audio-player {
            width: fit-content;
            min-width: 0;
            transform: scale(0.75);
            transform-origin: right center;
        }

        .offiweb-exercise .exercise-audio.audio-player .audio-actions,
        .offiweb-classes .exercise-audio.audio-player .audio-actions {
            display: flex;
            gap: 8px;
        }

        .offiweb-exercise .exercise-audio.audio-player .audio-btn,
        .offiweb-classes .exercise-audio.audio-player .audio-btn {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            border: 1px solid var(--home-line-strong);
            background: var(--home-base);
            color: #1f2b38;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            transition: all 0.2s ease;
        }

        .offiweb-exercise .exercise-audio.audio-player .audio-btn:hover,
        .offiweb-classes .exercise-audio.audio-player .audio-btn:hover {
            border-color: var(--home-accent);
            color: var(--home-accent);
            box-shadow: 0 8px 16px -12px rgba(79, 70, 229, 0.4);
        }

        .offiweb-exercise .exercise-audio.audio-player .audio-body,
        .offiweb-classes .exercise-audio.audio-player .audio-body {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
            min-width: 0;
        }

        .offiweb-exercise .exercise-audio.audio-player .audio-title,
        .offiweb-classes .exercise-audio.audio-player .audio-title {
            text-align: right;
        }

        .offiweb-exercise .exercise-audio.audio-player .audio-timeline,
        .offiweb-classes .exercise-audio.audio-player .audio-timeline {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .offiweb-exercise .exercise-audio.audio-player .audio-time,
        .offiweb-classes .exercise-audio.audio-player .audio-time {
            font-size: 8px;
            font-weight: 700;
            color: #64748b;
            min-width: 28px;
            text-align: center;
        }

        .offiweb-exercise .exercise-audio.audio-player input[type="range"],
        .offiweb-classes .exercise-audio.audio-player input[type="range"] {
            -webkit-appearance: none;
            width: 100%;
            height: 4px;
            border-radius: 999px;
            background: #e2e8f0;
            outline: none;
            accent-color: var(--home-accent);
        }

        .offiweb-exercise .exercise-audio.audio-player input[type="range"]::-webkit-slider-thumb,
        .offiweb-classes .exercise-audio.audio-player input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--home-accent);
            border: 2px solid #fff;
            box-shadow: 0 4px 10px -4px rgba(79, 70, 229, 0.5);
            cursor: pointer;
        }

        .offiweb-exercise .exercise-audio.audio-player .audio-volume,
        .offiweb-classes .exercise-audio.audio-player .audio-volume {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #64748b;
        }

        .offiweb-exercise .exercise-audio.audio-player .audio-volume input[type="range"],
        .offiweb-classes .exercise-audio.audio-player .audio-volume input[type="range"] {
            max-width: 105px;
        }

        @media (max-width: 768px) {
            .offiweb-exercise .exercise-audio.audio-player,
            .offiweb-classes .exercise-audio.audio-player {
                flex-direction: column;
                align-items: stretch;
                min-width: unset;
            }

            .offiweb-exercise .exercise-audio.audio-player .audio-title,
            .offiweb-classes .exercise-audio.audio-player .audio-title {
                text-align: left;
            }

            .offiweb-classes .exercise-audio.audio-player {
                width: 100%;
                transform: none;
            }
        }

        .offiweb-home .home-stagger > * {
            opacity: 0;
            animation: homeRise 0.6s ease forwards;
        }

        .offiweb-home .home-stagger > *:nth-child(1) { animation-delay: 0.05s; }
        .offiweb-home .home-stagger > *:nth-child(2) { animation-delay: 0.1s; }
        .offiweb-home .home-stagger > *:nth-child(3) { animation-delay: 0.15s; }
        .offiweb-home .home-stagger > *:nth-child(4) { animation-delay: 0.2s; }
        .offiweb-home .home-stagger > *:nth-child(5) { animation-delay: 0.25s; }
        .offiweb-home .home-stagger > *:nth-child(6) { animation-delay: 0.3s; }

        @keyframes homeRise {
            from {
                opacity: 0;
                transform: translateY(12px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 900px) {
            .offiweb-home .home-hero {
                padding: 2rem;
            }

            .offiweb-home .home-hero--compact {
                padding: 1rem 1.1rem;
            }

            .offiweb-home .home-hero-row {
                align-items: flex-start;
                flex-direction: column;
                padding-right: 2.2rem;
            }

            .offiweb-home .home-hero-metrics {
                justify-content: flex-start;
            }
        }

        .status-realizado {
            background-color: #10b981;
        }

        .status-en-progreso {
            background-color: #f59e0b;
        }

        .status-pendiente {
            background-color: #94a3b8;
        }

        /* Table sticky header */
        .sticky-header th {
            position: sticky;
            top: 0;
            background: #ffffff;
            z-index: 40;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        .dark .sticky-header th {
            background: #0f172a;
        }

        .status-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
        }

        /* Quick Access Widgets */
        .qa-card {
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .qa-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        .qa-btn {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: all 0.2s ease;
        }

        .qa-btn:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: scale(1.05);
        }

        .bg-pastel-teal {
            background: linear-gradient(135deg, #a7f3d0 0%, #bbf7d0 100%);
        }

        .bg-pastel-amber {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        }

        .bg-pastel-rose {
            background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
        }

        .dark .bg-pastel-teal {
            background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
        }

        .dark .bg-pastel-amber {
            background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
        }

        .dark .bg-pastel-rose {
            background: linear-gradient(135deg, #9f1239 0%, #881337 100%);
        }

        /* Heatmap Styles */
        .heatmap-container {
            display: grid;
            grid-template-columns: repeat(53, 1fr);
            gap: 3px;
        }

        .heatmap-day {
            width: 10px;
            height: 10px;
            border-radius: 2px;
            background: #f1f5f9;
        }

        .dark .heatmap-day {
            background: #1e293b;
        }

        .heatmap-day-lvl-1 {
            background: #dcfce7;
        }

        .heatmap-day-lvl-2 {
            background: #86efac;
        }

        .heatmap-day-lvl-3 {
            background: #22c55e;
        }

        .heatmap-day-lvl-4 {
            background: #166534;
        }

        .dark .heatmap-day-lvl-1 {
            background: #064e3b;
        }

        .dark .heatmap-day-lvl-2 {
            background: #065f46;
        }

        .dark .heatmap-day-lvl-3 {
            background: #10b981;
        }

        .dark .heatmap-day-lvl-4 {
            background: #34d399;
        }

        /* Help/Onboarding Styles */
        /* Help/Onboarding Styles - Box Shadow Method */
        #help-overlay {
            display: none;
            /* Disabled in favor of spotlight */
        }

        #help-spotlight {
            position: fixed;
            z-index: 9998;
            opacity: 0;
            /* Hidden by default */
            /* The shadow IS the backdrop. The element itself is the clear hole. */
            box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.65);
            border-radius: 12px;
            pointer-events: none;
            /* Allow clicks to pass through - or handle blocking differently if needed */
            transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            /* Add a glowing ring to emphasize the active area */
            outline: 2px solid #6366f1;
            outline-offset: 4px;
        }

        #help-modal {
            position: fixed;
            z-index: 10000;
            width: min(600px, 90vw);
            background: white;
            padding: 32px;
            border-radius: 32px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .dark #help-modal {
            background: #1e293b;
            color: white;
        }

        .help-progress-dots {
            display: flex;
            gap: 6px;
        }

        .help-dot {
            width: 6px;
            height: 6px;
            border-radius: 100%;
            background: #e2e8f0;
            transition: all 0.3s ease;
        }


        .dark .help-dot {
            background: #334155;
        }

        .help-dot.active {
            width: 18px;
            background: #6366f1;
        }


        .help-stacking-context-fix {
            position: relative !important;
            z-index: 10001 !important;
        }
