
    @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;900&family=Inter:wght@400;500&display=swap');

    body {
        background: #08080f;
        color: #fff;
        font-family: 'Inter', sans-serif;
        overflow: hidden;
        height: 100vh;
    }

    /* Ambient background orbs for glassmorphism depth */
    .bg-ambient {
        position: fixed;
        inset: 0;
        z-index: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .bg-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(100px);
        animation: drift 25s ease-in-out infinite;
    }

    .bg-orb-1 {
        width: 500px;
        height: 500px;
        background: rgba(99, 102, 241, 0.12);
        top: -10%;
        left: -5%;
        animation-delay: 0s;
    }

    .bg-orb-2 {
        width: 400px;
        height: 400px;
        background: rgba(6, 182, 212, 0.08);
        bottom: -15%;
        right: 15%;
        animation-delay: -8s;
    }

    .bg-orb-3 {
        width: 350px;
        height: 350px;
        background: rgba(236, 72, 153, 0.06);
        top: 50%;
        right: -5%;
        animation-delay: -16s;
    }

    @keyframes drift {
        0%, 100% { transform: translate(0, 0) scale(1); }
        33% { transform: translate(30px, -20px) scale(1.05); }
        66% { transform: translate(-20px, 15px) scale(0.95); }
    }

    /* App layout */
    .app {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    /* Header */
    .app-header {
        display: flex;
        align-items: center;
        padding: 16px 24px;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        flex-shrink: 0;
        position: relative;
    }

    .app-header::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    }

    .header-left {
        display: flex;
        align-items: baseline;
        gap: 12px;
        flex: 1;
    }

    .logo {
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        font-weight: 900;
        margin: 0;
        letter-spacing: -0.02em;
    }

    .tagline {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.3);
        margin: 0;
    }

    .header-link {
        color: rgba(255, 255, 255, 0.3);
        text-decoration: none;
        transition: color 0.2s;
        display: flex;
        align-items: center;
    }

    .header-link:hover {
        color: rgba(255, 255, 255, 0.6);
    }

    /* Main split */
    .app-main {
        display: flex;
        flex: 1;
        min-height: 0;
    }

    /* Preview pane */
    .preview-pane {
        flex: 3;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .preview-frame {
        position: relative;
        width: 100%;
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .preview-frame::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.15) 50%, transparent 90%);
        z-index: 2;
    }

    .preview-frame iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: none;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .preview-frame iframe.fade-out {
        opacity: 0;
    }

    .preview-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: rgba(8, 8, 15, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        z-index: 2;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .preview-frame:hover .preview-bar {
        opacity: 1;
    }

    .preview-info {
        min-width: 0;
    }

    .preview-title {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.82rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .preview-desc {
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.4);
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .preview-open {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 600;
        padding: 6px 14px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .preview-open:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
    }

    .preview-open:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
    }

    /* Sidebar */
    .sidebar {
        flex: 2;
        min-width: 320px;
        max-width: 420px;
        display: flex;
        flex-direction: column;
        min-height: 0;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        position: relative;
    }

    .sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.1));
        z-index: 1;
    }

    .sidebar-scroll {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
    }

    .sidebar-scroll::-webkit-scrollbar { width: 3px; }
    .sidebar-scroll::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 2px;
    }

    /* Section divider */
    .section-divider {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.6rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: rgba(255, 255, 255, 0.2);
        padding: 16px 12px 8px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .section-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.06);
    }

    /* Card */
    .card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        margin-bottom: 2px;
        border-radius: 10px;
        border: 1px solid transparent;
        background: transparent;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
        color: #fff;
        width: 100%;
        text-align: left;
        font-family: inherit;
        font-size: inherit;
    }

    .card:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.06);
    }

    .card.active {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .card:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 1px;
    }

    .card-year {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.68rem;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.18);
        min-width: 36px;
        flex-shrink: 0;
    }

    .card-icon {
        font-size: 1.1rem;
        min-width: 36px;
        text-align: center;
        flex-shrink: 0;
    }

    .card-body {
        flex: 1;
        min-width: 0;
    }

    .card-title {
        font-family: 'Montserrat', sans-serif;
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.3;
    }

    .card-desc {
        font-size: 0.68rem;
        color: rgba(255, 255, 255, 0.3);
        margin-top: 1px;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card.active .card-year {
        color: rgba(255, 255, 255, 0.35);
    }

    .card.active .card-desc {
        color: rgba(255, 255, 255, 0.45);
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        .bg-orb { animation: none !important; }
        .preview-frame iframe { transition: none !important; }
        .preview-bar { transition: none !important; opacity: 1 !important; }
        .card { transition: none !important; }
    }

    /* Mobile */
    @media screen and (max-width: 768px) {
        .app-main {
            flex-direction: column;
        }

        .app-header {
            padding: 12px 16px;
        }

        .tagline {
            display: none;
        }

        .preview-pane {
            flex: none;
            height: 38vh;
            padding: 12px;
        }

        .preview-frame {
            border-radius: 12px;
        }

        .preview-bar {
            opacity: 1;
            padding: 10px 16px;
        }

        .sidebar {
            flex: 1;
            min-width: 0;
            max-width: none;
            border-left: none;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .sidebar::before {
            display: none;
        }

        .sidebar-scroll {
            padding: 8px;
        }

        .card {
            padding: 10px;
        }
    }

    @media screen and (max-width: 480px) {
        .preview-pane {
            height: 32vh;
            padding: 8px;
        }

        .card-desc {
            display: none;
        }
    }
