    /* Revealable Speech Bubble Component */
    .shadow-reveal {
        width: 100%;
        max-width: 800px;
        margin: 40px auto;
        position: relative;
        cursor: pointer;
        min-width: 430px;
    }

    /* The Card (Summary) */
    .shadow-reveal summary {
        list-style: none;
        background: #ffffff;
        padding: 25px 40px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        font-weight: 800;
        font-size: 1.25rem;
        color: #1e293b;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        border: 1px solid rgba(0, 0, 0, 0.03);
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 2;
    }

    .shadow-reveal summary:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
        background: #fffdf0;
    }

    .shadow-reveal summary::-webkit-details-marker {
        display: none;
    }

    .shadow-reveal summary::after {
        content: '➔';
        font-size: 1rem;
        transition: transform 0.4s ease;
        opacity: 0.4;
    }

    .shadow-reveal[open] summary::after {
        transform: rotate(90deg);
    }

    /* The Speech Bubble (Content) - Using div:first-of-type */
    .shadow-reveal div:first-of-type {
        background: #ffffff;
        margin-top: 30px;
        padding: 35px;
        border-radius: 30px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
        position: relative;
        border: 1px solid rgba(0, 0, 0, 0.05);
        transform-origin: top center;
        
        /* Smooth Animation Logic */
        transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                    display 0.5s allow-discrete;
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    /* 1. State when fully closed */
    .shadow-reveal:not([open]) div:first-of-type {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
        display: none;
    }

    /* 2. State when animating out (still technically open) */
    .shadow-reveal[open].is-closing div:first-of-type {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }

    /* Initial state when opening */
    @starting-style {
        .shadow-reveal[open] div:first-of-type {
            opacity: 0;
            transform: scale(0.8) translateY(-20px);
        }
    }

    /* Speech Bubble Tail */
    .shadow-reveal div:first-of-type::before {
        content: '';
        position: absolute;
        top: -18px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 0 20px 20px 20px;
        border-style: solid;
        border-color: transparent transparent #ffffff transparent;
        filter: drop-shadow(0 -5px 5px rgba(0, 0, 0, 0.03));
    }

    .shadow-reveal pre {
        background: #f8fafc;
        padding: 25px;
        border-radius: 15px;
        margin: 0;
        font-family: 'Fira Code', 'Cascadia Code', monospace;
        font-size: 0.9rem;
        line-height: 1.6;
        color: #334155;
        overflow-x: auto;
        border: 1px inset rgba(0, 0, 0, 0.02);
        max-height: 550px;
    }

    /* Scrollbar */
    .shadow-reveal pre::-webkit-scrollbar { width: 8px; height: 8px; }
    .shadow-reveal pre::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

    /* Dark Mode Overrides */
    body:has(#toggle:checked) .shadow-reveal summary {
        background: #1e293b;
        color: #f1f5f9;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.05);
    }
    body:has(#toggle:checked) .shadow-reveal div:first-of-type {
        background: #0f172a;
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.1);
    }
    body:has(#toggle:checked) .shadow-reveal div:first-of-type::before {
        border-color: transparent transparent #0f172a transparent;
    }
    body:has(#toggle:checked) .shadow-reveal pre {
        background: #020617;
        color: #94a3b8;
        border-color: rgba(255, 255, 255, 0.05);
    }