body { 
    background-color: #121212; 
    color: #ffffff; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
}

.cover-variant-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.cover-variant-button {
    min-height: 4.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.cover-variant-button:hover {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.22);
    background: rgba(255, 255, 255, 0.07);
}

.cover-variant-button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0), rgba(236, 72, 153, 0.85), rgba(249, 115, 22, 0.95));
    opacity: 0.55;
    transition: opacity 180ms ease;
}

.cover-variant-button:hover::after,
.cover-variant-button.is-active::after {
    opacity: 1;
}

.cover-variant-button.is-active {
    border-color: rgba(244, 114, 182, 0.35);
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.9), rgba(249, 115, 22, 0.88));
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(244, 114, 182, 0.18);
}

.cover-variant-button.is-active .cover-variant-button__meta {
    color: rgba(255, 255, 255, 0.78);
}

.cover-variant-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cover-variant-button__label {
    display: block;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.1;
}

.cover-variant-button__meta {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.72rem;
    color: #9ca3af;
}

.cover-variant-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.55rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(10px);
}

.cover-frame-square {
    aspect-ratio: 1 / 1;
}

.cover-frame-tall {
    aspect-ratio: 3 / 4;
}

.glass-panel { 
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

.history-item {
    transition: transform 0.3s ease-out, background-color 0.3s ease-out, box-shadow 0.3s ease-out !important;
    transform: scale(1) !important;
    will-change: transform;
}

.history-item:hover {
    transform: scale(1.03) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
    z-index: 10;
}

.history-fade-wrapper {
    position: relative;
    padding-bottom: 2rem;
}

.history-fade-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -10%;
    right: -10%;
    height: 140px;
    background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(18, 18, 18, 0.8) 50%,
            rgba(18, 18, 18, 1) 90%,
            #121212 100%
    );
    pointer-events: none;
    z-index: 20;
}

.tab-inactive {
    background: transparent !important;
    color: #9ca3af !important;
    box-shadow: none !important;
}