/* ── Shared page title (collections, creations standalone pages) ── */
.ii-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ii-text-primary, #111827);
    font-family: var(--ii-font-body, Inter, sans-serif);
    margin: 0 0 20px;
    padding: 0;
    line-height: 1.3;
}

.ii-page-title.no-margin {
    margin: 0;
}

@media (max-width: 768px) {
    .ii-page-title {
        font-size: 1.5rem;
    }
}

/* Disable all transitions during theme switch to prevent visible color flicker */
.ii-no-transition,
.ii-no-transition *,
.ii-no-transition *::before,
.ii-no-transition *::after {
    transition: none !important;
    animation-duration: 0.001ms !important;
}

/* ---------- Global Scrollbar Styles ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--ii-bg-active);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ii-text-tertiary);
}

body.is-main-page #page,
body.is-studio-page #page,
body.is-creations-page #page,
body.is-collections-page #page,
body.is-wishlist-page #page,
body.is-logs-page #page {
    height: 100svh;
    display: flex;
    flex-direction: column;
}

/* ---------- App Shell ---------- */
.ii-app {
    display: flex;
    height: calc(100svh - 60px);
    flex: 1;
    width: 100%;
    background: var(--ii-bg-primary);
    color: var(--ii-text-primary);
    font-family: var(--ii-font-body);
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Placeholder item color when dragging */
/* .sortable-ghost {
    opacity: 0.4;
    background-color: #f0f0f0;
}

/* The item currently being dragged */
/* .sortable-drag {
    background-color: #e0e0e0;
} */