/* Local system fonts keep the wordmark available without a font download. */
.studio-brand {
    flex-shrink: 0;
    width: max-content;
    padding-block: 1px;
}

#control-panel-container .studio-brand-title,
body[data-theme="light"] #control-panel-container .studio-brand-title {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    background: none !important;
    color: #262039 !important;
    -webkit-text-fill-color: #262039 !important;
    white-space: nowrap;
    line-height: 1.08;
}

.studio-brand-art {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -1.7px;
}

.studio-brand-image {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -1.15px;
}

.studio-brand-version {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    overflow: hidden;
    width: 23px;
    height: 25px;
    margin: 1px 0 0 2px;
    border: 1px solid #ded3fa;
    border-radius: 8px;
    background: linear-gradient(135deg, #faf6ff 0%, #ede5ff 55%, #e5eaff 100%);
    box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(101, 68, 171, 0.08);
    color: #7450c5;
    -webkit-text-fill-color: #7450c5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.studio-brand-version::after {
    content: "";
    position: absolute;
    inset: -30% -60%;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
    transform: translateX(-100%);
    pointer-events: none;
}

.studio-brand-caption {
    margin: 7px 0 0 1px;
    color: #92899f;
    -webkit-text-fill-color: #92899f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 8px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 2.1px;
    text-transform: uppercase;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .studio-brand:hover .studio-brand-version {
        transform: translateY(-2px) rotate(-4deg);
        box-shadow: inset 0 1px 0 #fff, 0 5px 12px rgba(101, 68, 171, 0.15);
    }

    .studio-brand:hover .studio-brand-version::after {
        animation: studio-brand-shine 850ms ease-out both;
    }
}

@keyframes studio-brand-shine {
    to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .studio-brand-version { transition: none; }
}
