html.presentation-route-entering #app-root {
    min-height: 100dvh;
}

html.presentation-route-entering main.presentation-page {
    opacity: 0;
}

html.presentation-route-ready main.presentation-page {
    opacity: 1;
    transition: opacity .18s ease;
}

.presentation-page {
    padding-top: calc(env(safe-area-inset-top, 0px) + 28px) !important;
}

.presentation-sidebar-menu-row {
    margin-bottom: 14px;
}

.presentation-progress.presentation-progress-legacy-source {
    display: none !important;
}

.presentation-progress-visual {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    padding: 24px 22px 22px;
    border: 1px solid rgba(93, 148, 239, .28) !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 50% -15%, rgba(73, 135, 255, .22), transparent 45%),
        linear-gradient(180deg, rgba(13, 29, 55, .98), rgba(6, 18, 37, .98)) !important;
    box-shadow: 0 26px 75px rgba(0, 0, 0, .28);
}

.presentation-progress-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, .035) 48%, transparent 60%);
    transform: translateX(-130%);
    animation: presentation-card-sheen 3.8s ease-in-out infinite;
}

.presentation-progress-ai {
    width: 132px;
    height: 132px;
    margin: -2px auto 2px;
}

.presentation-native-loader {
    position: relative;
}

.presentation-native-ring {
    position: absolute;
    inset: 8px;
    border: 4px solid rgba(84, 145, 255, .17);
    border-top-color: #75aaff;
    border-right-color: #49d7d2;
    border-radius: 50%;
    animation: presentation-native-spin 1.08s linear infinite;
}

.presentation-native-orbit {
    position: absolute;
    inset: 28px;
    border: 3px solid rgba(87, 203, 221, .15);
    border-left-color: #63d8d3;
    border-radius: 50%;
    animation: presentation-native-spin-reverse 1.62s linear infinite;
}

.presentation-native-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0 7%, #9bcbff 24%, #4c8cf3 56%, #173f86 100%);
    box-shadow: 0 0 0 10px rgba(63, 125, 237, .07), 0 0 36px rgba(77, 149, 255, .5);
    animation: presentation-native-pulse 1.4s ease-in-out infinite;
}

.presentation-progress-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.presentation-progress-animated-title {
    min-width: 0;
    color: transparent;
    background: linear-gradient(90deg, #dbe9ff 0%, #79aaff 35%, #ffffff 52%, #79aaff 70%, #dbe9ff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    font-size: clamp(18px, 4.6vw, 24px);
    font-weight: 850;
    letter-spacing: -.025em;
    animation: presentation-title-shimmer 2.4s linear infinite;
}

.presentation-progress-dots::after {
    content: '';
    display: inline-block;
    width: 22px;
    text-align: left;
    animation: presentation-dots 1.2s steps(4, end) infinite;
}

.presentation-progress-percent {
    flex: 0 0 auto;
    min-width: 52px;
    color: #dce9ff;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    text-align: right;
}

.presentation-progress-bar {
    position: relative;
    overflow: hidden;
    height: 14px;
    border: 1px solid rgba(126, 166, 231, .18);
    border-radius: 999px;
    background: rgba(3, 13, 29, .74);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .34);
}

.presentation-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    min-width: 3px;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f73f3 0%, #619cff 58%, #9cc1ff 100%);
    box-shadow: 0 0 20px rgba(79, 140, 255, .48);
    transition: width .46s cubic-bezier(.22, .61, .36, 1);
}

.presentation-progress-glow {
    position: absolute;
    inset: 1px auto 1px 0;
    width: 34%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent);
    transform: translateX(-130%);
    animation: presentation-progress-glow 2.1s ease-in-out infinite;
    pointer-events: none;
}

.presentation-progress-note {
    color: #88a1c4;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.presentation-create-standalone {
    margin: 2px 0 22px;
}

.presentation-create-standalone-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    border: 1px solid rgba(93, 151, 255, .48);
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(100deg, #286fe9 0%, #397ff5 46%, #2769d8 100%);
    box-shadow: 0 13px 34px rgba(37, 104, 221, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transform: translateZ(0);
    animation: presentation-create-breathe 2.8s ease-in-out infinite;
}

.presentation-create-standalone-button::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -35%;
    bottom: -35%;
    left: -42%;
    width: 28%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
    animation: presentation-create-shine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.presentation-create-standalone-button:active {
    transform: scale(.99);
}

.presentation-page .presentation-library {
    margin-top: 0;
}

.presentation-library-card .presentation-library-cost-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    padding-top: 11px;
    border-top: 1px solid rgba(126, 165, 225, .12);
    color: #829aba;
    font-size: 12px;
}

.presentation-library-cost-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dce9ff;
    font-size: 14px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.presentation-coin-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

@keyframes presentation-native-spin { to { transform: rotate(360deg); } }
@keyframes presentation-native-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes presentation-native-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(.88); opacity: .8; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
@keyframes presentation-title-shimmer {
    to { background-position: -220% 0; }
}
@keyframes presentation-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75%, 100% { content: '...'; }
}
@keyframes presentation-progress-glow {
    0% { transform: translateX(-130%); opacity: 0; }
    18% { opacity: 1; }
    75% { opacity: .72; }
    100% { transform: translateX(310%); opacity: 0; }
}
@keyframes presentation-card-sheen {
    0%, 58% { transform: translateX(-130%); }
    82%, 100% { transform: translateX(130%); }
}
@keyframes presentation-create-shine {
    0%, 46% { left: -42%; opacity: 0; }
    56% { opacity: 1; }
    78%, 100% { left: 118%; opacity: 0; }
}
@keyframes presentation-create-breathe {
    0%, 100% { box-shadow: 0 13px 34px rgba(37, 104, 221, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
    50% { box-shadow: 0 16px 40px rgba(49, 119, 244, .36), 0 0 24px rgba(66, 135, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .14); }
}

@media (max-width: 560px) {
    .presentation-page {
        padding-top: calc(env(safe-area-inset-top, 0px) + 22px) !important;
    }

    .presentation-progress-visual {
        padding: 20px 16px 18px;
        border-radius: 18px !important;
    }

    .presentation-progress-ai {
        width: 112px;
        height: 112px;
    }

    .presentation-native-orbit { inset: 24px; }

    .presentation-create-standalone {
        margin-bottom: 18px;
    }

    .presentation-create-standalone-button {
        min-height: 52px;
        border-radius: 14px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.presentation-route-ready main.presentation-page,
    .presentation-progress-fill {
        transition: none !important;
    }

    .presentation-progress-visual::after,
    .presentation-progress-animated-title,
    .presentation-progress-dots::after,
    .presentation-progress-glow,
    .presentation-create-standalone-button,
    .presentation-create-standalone-button::after,
    .presentation-native-ring,
    .presentation-native-orbit,
    .presentation-native-core {
        animation: none !important;
    }

    .presentation-progress-animated-title {
        color: #e7efff;
        background: none;
        -webkit-background-clip: border-box;
        background-clip: border-box;
    }

    .presentation-progress-dots::after {
        content: '...';
    }
}
